Added the testCase and memory profiler
[SXSI/TextCollection.git] / makefile
index 0d90342..7c5bf06 100644 (file)
--- a/makefile
+++ b/makefile
@@ -1,10 +1,12 @@
 CC = g++
-CPPFLAGS = -Wall -ansi -pedantic -g
+CPPFLAGS = -Wall -ansi -pedantic -g -O2 -DNDEBUG
 
-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 handle.o pos.o rbtree.o dynFMI.o 
 
-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