Add -DNDEBUG to makefile.
[SXSI/XMLTree.git] / makefile
index ada8264..f486f14 100644 (file)
--- a/makefile
+++ b/makefile
@@ -1,22 +1,24 @@
-CFLAGS= -g -O0 -I./libcds/includes/ -I.\r
+CFLAGS= -O3 -DNDEBUG -I./libcds/includes/ -fno-PIC -I.\r
 FLAGS= -std=c++0x $(CFLAGS)\r
 \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/RLCSABuilder.o \\r
+             TextCollection/FMIndex.o TextCollection/FMIndexBuilder.o TextCollection/Tools.o \\r
+             TextCollection/TextStorage.o TextCollection/Query.o TextCollection/EditDistance.o TextCollection/ResultSet.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