2 INCDIRS += -I ./dependencies/libcds-2.3.2
3 INCDIRS += -I ./dependencies/rapidjson-1.1.0/include
4 INCDIRS += -I ./dependencies/websocketpp-0.7.0
6 CDSLIBDIR = ./dependencies/libcds-2.3.2/build-release/bin
8 LIBS = -lboost_system # needed for boost::asio, used by websocketpp
9 # according to https://groups.google.com/forum/#!topic/websocketpp/Ou30S05FKoM
10 # one could use standalone Asio from think-async.com
12 LIBS += -lssl # needed for websocketpp's TLS support (req'd by GDAX)
13 LIBS += -lcrypto # needed for websocketpp's TLS support (req'd by GDAX)
17 LD_LIBRARY_PATH=$(CDSLIBDIR) ./demo
20 LD_LIBRARY_PATH=$(CDSLIBDIR) gdb ./demo
22 demo: demo.cpp ../gdax-orderbook.hpp \
23 | dependencies/libcds-2.3.2/build-release/bin/libcds.so \
24 dependencies/rapidjson-1.1.0 \
25 dependencies/websocketpp-0.7.0
26 ../../clang++ demo.cpp -std=c++11 -o demo $(INCDIRS) $(LIBS) -L $(CDSLIBDIR)
28 dependencies/libcds-2.3.2/build-release/bin/libcds.so: \
29 | dependencies/libcds-2.3.2
30 cd dependencies/libcds-2.3.2 ; if [ ! -d build-release ]; then mkdir build-release; fi
31 cd dependencies/libcds-2.3.2/build-release ; export PATH=`pwd`/../..:$(PATH); CC=clang CXX=clang++ cmake -DCMAKE\_BUILD_TYPE=RELEASE ../
32 cd dependencies/libcds-2.3.2/build-release ; export PATH=`pwd`/../..:$(PATH); make -j4
35 rm -rf demo dependencies/libcds-2.3.2/build-release