Crow/Makefile

29 lines
1.1 KiB
Makefile
Raw Normal View History

2014-07-08 10:00:50 +00:00
binaries=covtest example
all: covtest example
2014-07-08 10:00:50 +00:00
2014-05-20 16:17:56 +00:00
example: example.cpp settings.h crow.h http_server.h http_connection.h parser.h http_response.h routing.h common.h utility.h json.h datetime.h logging.h
g++ -Wall -g -O3 -std=c++11 -o example example.cpp http-parser/http_parser.c -pthread -lboost_system -lboost_thread -ltcmalloc_minimal -I http-parser/
test: covtest
runtest: example
2014-04-01 12:25:16 +00:00
pkill example || exit 0
./example &
2014-04-01 12:25:16 +00:00
python test.py || exit 0
pkill example
2014-05-20 16:17:56 +00:00
unittest: unittest.cpp routing.h utility.h crow.h http_server.h http_connection.h parser.h http_response.h common.h json.h datetime.h logging.h
g++ -Wall -g -std=c++11 -o unittest unittest.cpp http-parser/http_parser.c -pthread -lboost_system -lboost_thread -I http-parser/
./unittest
2014-05-20 16:17:56 +00:00
covtest: unittest.cpp routing.h utility.h crow.h http_server.h http_connection.h parser.h http_response.h common.h json.h datetime.h logging.h
2014-04-18 22:12:56 +00:00
g++ -Wall -g -std=c++11 -o covtest --coverage unittest.cpp http-parser/http_parser.c -pthread -lboost_system -lboost_thread -I http-parser/
./covtest
gcov -r unittest.cpp
2014-07-08 10:00:50 +00:00
.PHONY: clean
2014-04-02 16:38:08 +00:00
2014-07-08 10:00:50 +00:00
clean:
rm -f $(binaries) *.o