Clean up build and remove generated files
[c11concurrency-benchmarks.git] / gdax-orderbook-hpp / demo / Makefile
index 363b112..158fb8d 100644 (file)
@@ -23,37 +23,13 @@ demo: demo.cpp ../gdax-orderbook.hpp \
       | dependencies/libcds-2.3.2/build-release/bin/libcds.so \
         dependencies/rapidjson-1.1.0 \
         dependencies/websocketpp-0.7.0
-       clang++ demo.cpp -std=c++11 -o demo $(INCDIRS) -L $(CDSLIBDIR) $(LIBS)
+       ./clang++ demo.cpp -std=c++11 -o demo $(INCDIRS) $(LIBS) -L $(CDSLIBDIR)
 
 dependencies/libcds-2.3.2/build-release/bin/libcds.so: \
                | dependencies/libcds-2.3.2
        cd dependencies/libcds-2.3.2 ; if [ ! -d build-release ]; then mkdir build-release; fi
-       cd dependencies/libcds-2.3.2/build-release ; cmake -DCMAKE\_BUILD_TYPE=RELEASE ../
-       cd dependencies/libcds-2.3.2/build-release ; make -j4
-
-dependencies/libcds-2.3.2: | dependencies/libcds-2.3.2.tar.gz
-       #tar xzvf dependencies/libcds-2.3.2.tar.gz -C dependencies
-
-dependencies/libcds-2.3.2.tar.gz: dependencies
-       #wget -O $@ https://github.com/khizmax/libcds/archive/v2.3.2.tar.gz
-
-
-dependencies/rapidjson-1.1.0: | dependencies/rapidjson-1.1.0.tar.gz
-       #tar xzvf dependencies/rapidjson-1.1.0.tar.gz -C dependencies
-
-dependencies/rapidjson-1.1.0.tar.gz: dependencies
-       #wget -O $@ https://github.com/Tencent/rapidjson/archive/v1.1.0.tar.gz
-
-
-dependencies/websocketpp-0.7.0: | dependencies/websocketpp-0.7.0.tar.gz
-       #tar xzvf dependencies/websocketpp-0.7.0.tar.gz -C dependencies
-
-dependencies/websocketpp-0.7.0.tar.gz: dependencies
-       #wget -O $@ https://github.com/zaphoyd/websocketpp/archive/0.7.0.tar.gz
-
-
-dependencies:
-       #mkdir dependencies
+       cd dependencies/libcds-2.3.2/build-release ; export PATH=`pwd`:$(PATH); CC=clang CXX=clang++ cmake -DCMAKE\_BUILD_TYPE=RELEASE ../
+       cd dependencies/libcds-2.3.2/build-release ; export PATH=`pwd`:$(PATH); make -j4
 
 clean:
-       rm -rf demo dependencies/libcds-2.3.2.tar.gz dependencies/rapidjson-1.1.0.tar.gz dependencies/websocketpp-0.7.0.tar.gz     #dependencies
+       rm -rf demo dependencies/libcds-2.3.2/build-release