-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.template
18 lines (16 loc) · 965 Bytes
/
Makefile.template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
MY_INCLUDE_PATH=include
MY_SRC_PATH=src
MY_LIB_PATH=lib
MY_BIN_PATH=bin
MY_TESTS_PATH=test
MY_CXX_URL_INC_PATH=ThirdParty/CxxUrl/
MY_CXX_URL_LIB_PATH=ThirdParty/CxxUrl/
all : getSystemTime cppTest beast_webserver
getSystemTime:
g++ -std=c++11 -I $(MY_INCLUDE_PATH) -I $(MY_PYTHON_INC) -I $(MY_BOOST_INC) $(MY_SRC_PATH)/getSystemTime.cpp -o $(MY_LIB_PATH)/libSystemInfo.so -fPIC -shared -lpython3.5m -L$(MY_BOOST_LIBS) -l$(BOOST_PYTHON_LIB_NAME)
cppTest:
g++ -I $(MY_INCLUDE_PATH) $(MY_TESTS_PATH)/testLib.cpp -o $(MY_BIN_PATH)/testLibcpp -L $(MY_LIB_PATH) -lSystemInfo -lpython3.5m -L$(MY_BOOST_LIBS) -l$(BOOST_PYTHON_LIB_NAME)
beast_webserver:
g++ -std=c++11 -I $(MY_INCLUDE_PATH) -I $(MY_BOOST_INC) -I $(MY_CXX_URL_INC_PATH) $(MY_SRC_PATH)/http_server_async.cpp -o $(MY_BIN_PATH)/boost_webserver -lpthread -L$(MY_BOOST_LIBS) -lboost_system -L$(MY_LIB_PATH) -lSystemInfo -L$(MY_CXX_URL_LIB_PATH) -lCxxUrl -l$(BOOST_PYTHON_LIB_NAME)
clean:
rm -rf lib/* bin/*