-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
42 lines (28 loc) · 1.7 KB
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
CPPFLAGS=-std=c++17 -Wall -Wextra -ggdb3
all: jerry tests runtests staticanalysis
tests: handlers.o HttpRequest.o HttpResponse.o ThreadPool.o Logger.o test.o util.o
g++ HttpRequest.o HttpResponse.o handlers.o test/tests.o ThreadPool.o util.o Logger.o -lpthread -o test/tests
test.o: test/catch.hpp test/tests.cpp handlers.h HttpRequest.h config.h Logger/Logger.h util.h Logger/loglvl.h
g++ $(CPPFLAGS) -c test/tests.cpp -o test/tests.o
jerry: handlers.o HttpRequest.o HttpResponse.o jerry.o ThreadPool.o util.o Logger.o
g++ HttpRequest.o HttpResponse.o handlers.o ThreadPool.o jerry.o util.o Logger.o -lpthread -o jerry_the_http_server
Logger.o: Logger/Logger.h Logger/loglvl.h config.h Logger/Logger.cpp util.h
g++ $(CPPFLAGS) -c Logger/Logger.cpp
util.o: util.h util.cpp config.h Logger/Logger.h Logger/loglvl.h
g++ $(CPPFLAGS) -c util.cpp
ThreadPool.o: ThreadPool.h ThreadPool.cpp config.h Logger/Logger.h Logger/loglvl.h
g++ $(CPPFLAGS) -c ThreadPool.cpp
handlers.o: handlers.cpp handlers.h config.h HttpRequest.h HttpResponse.h ThreadPool.h util.h Logger/Logger.h Logger/loglvl.h
g++ $(CPPFLAGS) -c handlers.cpp
HttpRequest.o: HttpRequest.cpp HttpRequest.h config.h Logger/Logger.h Logger/loglvl.h
g++ $(CPPFLAGS) -c HttpRequest.cpp
HttpResponse.o: HttpResponse.cpp HttpResponse.h config.h Logger/Logger.h Logger/loglvl.h
g++ $(CPPFLAGS) -c HttpResponse.cpp
jerry.o: jerry.cpp config.h ThreadPool.h util.h handlers.h Logger/Logger.h Logger/loglvl.h
g++ $(CPPFLAGS) -c jerry.cpp
runtests: tests
cd test;./tests
staticanalysis: jerry
cppcheck --enable=all -itest .
clean:
rm handlers.o HttpRequest.o HttpResponse.o jerry.o test/tests.o jerry_the_http_server test/tests ThreadPool.o util.o Logger.o