CC = g++
-CPPFLAGS = -Wall -ansi -pedantic -g
+LIBCDSPATH = ../libcds
+CPPFLAGS = -Wall -ansi -g -O2 -I$(LIBCDSPATH)/includes/ -DNDEBUG
+LIBCDSA = $(LIBCDSPATH)/lib/libcds.a
-testTextCollection_obs = testTextCollection.o TextCollection.o CSA.o Tools.o BitRank.o bittree.o handle.o pos.o rbtree.o dynFMI.o
+testTextCollection_obs = testTextCollection.o TextCollection.o CSA.o Tools.o BitRank.o bittree.o rbtree.o dynFMI.o RLWaveletTree.o GapEncode.o BSGAP.o ${LIBCDSA}
-testTextCollection: $(testTextCollection_obs)
- $(CC) -o testTextCollection $(testTextCollection_obs)
+all: $(testTextCollection_obs)
+
+testTextCollection: $(testTextCollection_obs) HeapProfiler.o
+ $(CC) -o testTextCollection $(testTextCollection_obs) HeapProfiler.o
clean:
rm -f core *.o *~ testTextCollection