X-Git-Url: http://git.nguyen.vg/gitweb/?a=blobdiff_plain;f=makefile;h=046043b94b98dad77155ec6c50452819f143fa88;hb=7499c996b739914abd5651dc8b4bf8f234306f56;hp=0d90342c14f86a677cccafc9187a97998efd8abf;hpb=7d27a4450ed429e3b63e9d3ba7217a28cbbf9a31;p=SXSI%2FTextCollection.git diff --git a/makefile b/makefile index 0d90342..046043b 100644 --- a/makefile +++ b/makefile @@ -1,15 +1,40 @@ CC = g++ -CPPFLAGS = -Wall -ansi -pedantic -g +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 handle.o pos.o rbtree.o dynFMI.o +dcover_obs = dcover/difference_cover.o -testTextCollection: $(testTextCollection_obs) - $(CC) -o testTextCollection $(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 + +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