X-Git-Url: http://git.nguyen.vg/gitweb/?a=blobdiff_plain;f=makefile;h=cd4b721107364e8becf192ae3f47f4e99e4961db;hb=41ca14161f53191521d3ea3967ea9184a5a2ae39;hp=4f06f3bda96bee0128498ad8e131a887fc47ed32;hpb=b6f779e236950176bab71fce980ac1685e8661c0;p=SXSI%2FXMLTree.git diff --git a/makefile b/makefile index 4f06f3b..cd4b721 100644 --- a/makefile +++ b/makefile @@ -1,16 +1,22 @@ FLAGS =-std=c++0x -O3 -I./libcds/includes/ -OBJECTS=libcds/lib/libcds.a -OBJECTS_TC= TextCollection/TextCollection.o TextCollection/CSA.o TextCollection/Tools.o TextCollection/BitRank.o TextCollection/bittree.o TextCollection/rbtree.o TextCollection/dynFMI.o TextCollection/RLWaveletTree.o TextCollection/GapEncode.o TextCollection/BSGAP.o +LIBCDS_A=libcds/lib/libcds.a +OBJECTS_TCO= TextCollection/TextCollection.o TextCollection/TextCollectionBuilder.o TextCollection/TCImplementation.o TextCollection/Tools.o TextCollection/BitRank.o +OBJECTS_TCA=TextCollection/incbwt/rlcsa.a + all: libcds text_collection XMLTree -XMLTree: XMLTree.o bp.o darray.o bpcore.o libcds/lib/libcds.a +XMLTree: XMLTree.o XMLTreeBuilder.o bp.o darray.o bpcore.o\ + $(LIBCDS_A) $(OBJECTS_TCO) $(OBJECTS_TCA) cp libcds/lib/libcds.a XMLTree.a - ar vrcs XMLTree.a XMLTree.o bp.o darray.o bpcore.o $(OBJECTS_TC) - + rm -rf .objs + mkdir .objs + cd .objs; ar x ../$(OBJECTS_TCA) + ar rvcs XMLTree.a XMLTree.o XMLTreeBuilder.o bp.o darray.o bpcore.o $(OBJECTS_TCO) .objs/*.o + rm -rf .objs -XMLTree.o: bp.c bp.h bpcore.c XMLTree.cpp XMLTree.h +XMLTree.o: bp.c bp.h bpcore.c XMLTree.cpp XMLTree.h basics.h g++ $(FLAGS) -c XMLTree.cpp bp.o: bp.c bpcore.c darray.c bp.h darray.h @@ -22,6 +28,9 @@ darray.o: darray.c darray.h bpcore.c bpcore.o: bpcore.c g++ $(FLAGS) -c bpcore.c +XMLTreeBuilder.o: XMLTree.h XMLTreeBuilder.h XMLTreeBuilder.cpp basics.h + g++ $(FLAGS) -c XMLTreeBuilder.cpp + text_collection: make -C TextCollection/ @@ -29,4 +38,4 @@ libcds: make -C libcds/ clean: - rm -f *.o + rm -f *.[oa]