X-Git-Url: http://git.nguyen.vg/gitweb/?a=blobdiff_plain;f=makefile;h=046043b94b98dad77155ec6c50452819f143fa88;hb=1c0ccf5923b31eceae88afc64f1b4727cd488643;hp=737484a246e4ad058e21fa01a41a37b488e90321;hpb=d08b029fac7b0763f87aa2dcc269a7489d16c26a;p=SXSI%2FTextCollection.git diff --git a/makefile b/makefile index 737484a..046043b 100644 --- a/makefile +++ b/makefile @@ -1,17 +1,40 @@ CC = g++ -CPPFLAGS = -Wall -ansi -pedantic -g -O2 -DNDEBUG +LIBCDSPATH = ../libcds +CPPFLAGS = -Wall -ansi -g -I$(LIBCDSPATH)/includes/ -O3 -DNDEBUG +LIBCDSA = $(LIBCDSPATH)/lib/libcds.a +LIBRLCSA = incbwt/rlcsa.a +LIBLZTRIE = lzindex/lztrie.a -testTextCollection_obs = testTextCollection.o TextCollection.o CSA.o Tools.o BitRank.o bittree.o rbtree.o dynFMI.o +dcover_obs = dcover/difference_cover.o -all: $(testTextCollection_obs) +TextCollection_obs = TextCollection.o TextCollectionBuilder.o TCImplementation.o Tools.o BitRank.o \ + TextStorage.o ${LIBRLCSA} ${LIBCDSA} ${LIBLZTRIE} +TCDebug_obs = bittree.o rbtree.o dynFMI.o -testTextCollection: $(testTextCollection_obs) HeapProfiler.o - $(CC) -o testTextCollection $(testTextCollection_obs) HeapProfiler.o +all: testTextCollection + +testTextCollection: testTextCollection.o $(TextCollection_obs) $(TCDebug_obs) HeapProfiler.o + $(CC) -o testTextCollection testTextCollection.o $(TextCollection_obs) $(TCDebug_obs) HeapProfiler.o + +timeTextCollection: timeTextCollection.o $(TextCollection_obs) $(TCDebug_obs) + $(CC) -o timeTextCollection timeTextCollection.o $(TextCollection_obs) $(TCDebug_obs) + +test2dRange: test2dRange.o ${LIBCDSA} + $(CC) -o test2dRange test2dRange.o ${LIBCDSA} + +incbwt/rlcsa.a: + @make -C incbwt + +lzindex/lztrie.a: + @make -C lzindex clean: - rm -f core *.o *~ testTextCollection + @make clean -C incbwt + @make clean -C lzindex + rm -f core *.o *~ testTextCollection timeTextCollection dcover/*.o dcover/*~ depend: - $(CC) -MM *.cpp *.c > dependencies.mk + @make depend -C incbwt + $(CC) -MM *.cpp > dependencies.mk include dependencies.mk