aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorAlex Butum <alexbutum@linux.com>2014-07-08 13:04:42 +0300
committerAlex Butum <alexbutum@linux.com>2014-07-08 13:07:10 +0300
commit61cecef606a4875478e6a72172c03b624639580c (patch)
treec72a1d6083cec4c2c014d0b271ef7c57aa3d84a7 /Makefile
parent362567fc1a2f7553d1bbea0eb11971de3759ca27 (diff)
downloadcrow-61cecef606a4875478e6a72172c03b624639580c.tar.gz
crow-61cecef606a4875478e6a72172c03b624639580c.zip
Use the ${CXX} environment variable instead of hard coding the compiler
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 3b7be62..cc7f9d6 100644
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,7 @@ 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++1y -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
@@ -14,11 +14,11 @@ 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++1y -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++1y -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