X-Git-Url: http://git.nguyen.vg/gitweb/?a=blobdiff_plain;f=makefile;h=04c5f6454ed52457bee2b298524f5b96529f46eb;hb=95fded64d90aca79f7179f147a5184e9ba3176af;hp=0d90342c14f86a677cccafc9187a97998efd8abf;hpb=7d27a4450ed429e3b63e9d3ba7217a28cbbf9a31;p=SXSI%2FTextCollection.git diff --git a/makefile b/makefile index 0d90342..04c5f64 100644 --- a/makefile +++ b/makefile @@ -1,11 +1,20 @@ 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) +timeTextCollection_obs = timeTextCollection.o TextCollection.o CSA.o Tools.o BitRank.o bittree.o rbtree.o dynFMI.o RLWaveletTree.o GapEncode.o BSGAP.o ${LIBCDSA} + +all: $(testTextCollection_obs) + +testTextCollection: $(testTextCollection_obs) HeapProfiler.o + $(CC) -o testTextCollection $(testTextCollection_obs) HeapProfiler.o + +timeTextCollection: $(timeTextCollection_obs) + $(CC) -o timeTextCollection $(timeTextCollection_obs) clean: rm -f core *.o *~ testTextCollection