-FLAGS =-std=c++0x -O9 -I./libcds/includes/ -I. -fno-PIC\r
+CFLAGS= -g -O0 -I./libcds/includes/ -I.\r
+FLAGS= -std=c++0x $(CFLAGS)\r
\r
LIBCDS_A=libcds/lib/libcds.a \r
-OBJECTS_TCO= TextCollection/TextCollection.o TextCollection/TextCollectionBuilder.o TextCollection/TCImplementation.o TextCollection/Tools.o TextCollection/BitRank.o TextCollection/TextStorage.o\r
+OBJECTS_TCO= TextCollection/TextCollection.o TextCollection/TextCollectionBuilder.o TextCollection/FMIndex.o TextCollection/FMIndexBuilder.o TextCollection/Tools.o TextCollection/TextStorage.o\r
\r
LIBRLCSA_TCA=TextCollection/incbwt/rlcsa.a\r
LIBLZTRIE_TCA=TextCollection/lzindex/lztrie.a\r
-\r
+LIBSWCSA_TCA=TextCollection/swcsa/swcsa.a\r
\r
all: libcds text_collection XMLTree\r
\r
XMLTree: XMLTree.o XMLTreeBuilder.o bp.o darray.o bpcore.o\\r
- $(LIBCDS_A) $(OBJECTS_TCO) $(LIBRLCSA_TCA) $(LIBLZTRIE_TCA)\r
+ $(LIBCDS_A) $(OBJECTS_TCO) $(LIBRLCSA_TCA) $(LIBLZTRIE_TCA) $(LIBSWCSA_TCA)\r
cp libcds/lib/libcds.a XMLTree.a\r
rm -rf .objs\r
mkdir .objs\r
- cd .objs; ar x ../$(LIBRLCSA_TCA)\r
- cd .objs; ar x ../$(LIBLZTRIE_TCA)\r
+ cd .objs; ar x ../$(LIBRLCSA_TCA); ar x ../$(LIBLZTRIE_TCA); ar x ../$(LIBSWCSA_TCA)\r
ar rvcs XMLTree.a XMLTree.o XMLTreeBuilder.o bp.o darray.o bpcore.o $(OBJECTS_TCO) .objs/*.o\r
rm -rf .objs\r
\r