diff options
author | ipkn <ipknhama@gmail.com> | 2014-07-09 09:23:37 +0900 |
---|---|---|
committer | ipkn <ipknhama@gmail.com> | 2014-07-09 09:23:37 +0900 |
commit | 31d2e07bc2e8660f6a8e4fe5f29b5d3b9e275ed1 (patch) | |
tree | 7a31668e507d40a90cbc2487274ec1b252baa8cf /Makefile | |
parent | e02e1d33900b4b120998bcbc366144d421e3b760 (diff) | |
parent | b4ec0017604b89676230de2177658b9ce44c0978 (diff) | |
download | crow-31d2e07bc2e8660f6a8e4fe5f29b5d3b9e275ed1.tar.gz crow-31d2e07bc2e8660f6a8e4fe5f29b5d3b9e275ed1.zip |
Merge pull request #4 from dZkF9RWJT6wN8ux/master
Some fixes
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -1,6 +1,9 @@ +binaries=covtest example + all: covtest example + 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/ + ${CXX} -Wall -g -O3 -std=c++1y -o example example.cpp http-parser/http_parser.c -pthread -lboost_system -lboost_thread -ltcmalloc_minimal -I http-parser/ test: covtest @@ -11,12 +14,15 @@ runtest: example pkill example 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/ + ${CXX} -Wall -g -std=c++1y -o unittest unittest.cpp http-parser/http_parser.c -pthread -lboost_system -lboost_thread -I http-parser/ ./unittest 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 - g++ -Wall -g -std=c++11 -o covtest --coverage unittest.cpp http-parser/http_parser.c -pthread -lboost_system -lboost_thread -I http-parser/ + ${CXX} -Wall -g -std=c++1y -o covtest --coverage unittest.cpp http-parser/http_parser.c -pthread -lboost_system -lboost_thread -I http-parser/ ./covtest gcov -r unittest.cpp +.PHONY: clean +clean: + rm -f $(binaries) *.o |