update test cases
[c11tester.git] / libcdsTest / ms-queue / Makefile
index 8df2ca5f423f1f41d6d336e7a7bd90bf9564c06a..a2b45572d4172ebc174dc77c2fefbd0eb454e09c 100644 (file)
@@ -1,15 +1,21 @@
 all: intrusive_msqueue_hp.o
 
+CXX = clang++
+
 #%.o : %.cc 
 #      $(CXX) -c $@
 
-CFLAGS=-I. -I /scratch/benchmarks/libcds -std=c++11
+INCLUDE = -I. -I /scratch/benchmarks/libcds
+
+INCLUDE += -Xclang -load -Xclang /scratch/llvm/build/lib/libCDSPass.so -I. -I /scratch/benchmarks/libcds
+
+CPPFLAGS = $(INCLUDE) -g -O1 -std=c++11
 
 CDSDIR=/scratch/benchmarks/libcds/build-release/bin
 CDSLIB=-lcds_d -lpthread
 
 intrusive_msqueue_hp.o: intrusive_msqueue_hp.cc
-       $(CXX) -o msqueue intrusive_msqueue_hp.cc $(CFLAGS) -L $(CDSDIR) $(CDSLIB)
+       $(CXX) -o msqueue intrusive_msqueue_hp.cc $(CPPFLAGS) -L $(CDSDIR) $(CDSLIB)
 
 clean:
        rm -f *.o