X-Git-Url: http://git.nguyen.vg/gitweb/?a=blobdiff_plain;f=makefile;fp=makefile;h=53e9fadcec7d524c6ecd2b506dfc59c512355ae6;hb=8cf42d24d87813ecf494bd2e12e66a5a78f155c0;hp=e1705ef2fb5461a1100930b489b0da0bcc5787af;hpb=deeb5434b7e061741700eff08588539d34b717a6;p=SXSI%2FXMLTree.git diff --git a/makefile b/makefile index e1705ef..53e9fad 100644 --- a/makefile +++ b/makefile @@ -1,14 +1,15 @@ FLAGS =-std=c++0x -O3 -I./libcds/includes/ -OBJECTS=libcds/lib/libcds.a -OBJECTS_TC= TextCollection/TextCollection.o TextCollection/TextCollectionBuilder.o TextCollection/TCImplementation.o TextCollection/Tools.o TextCollection/BitRank.o TextCollection/BSGAP.o TextCollection/incbwt/rlcsa.a +LIBCDS_A=libcds/lib/libcds.a +OBJECTS_TCO= TextCollection/TextCollection.o TextCollection/TextCollectionBuilder.o TextCollection/TCImplementation.o TextCollection/Tools.o TextCollection/BitRank.o TextCollection/BSGAP.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 - cp libcds/lib/libcds.a XMLTree.a - ar vrcs XMLTree.a XMLTree.o bp.o darray.o bpcore.o $(OBJECTS_TC) +all: libcds text_collection XMLTree +XMLTree: XMLTree.o bp.o darray.o bpcore.o $(LIBCDS_A) $(OBJECTS_TCO) $(OBJECTS_TCA) + ar rvcs XMLTree.a XMLTree.o bp.o darray.o bpcore.o $(OBJECTS_TCO) + echo -e "OPEN XMLTree.a\n ADDLIB " $(OBJECTS_TCA) "\n ADDLIB " $(LIBCDS_A) "\n SAVE" | ar -M XMLTree.o: bp.c bp.h bpcore.c XMLTree.cpp XMLTree.h g++ $(FLAGS) -c XMLTree.cpp @@ -29,4 +30,4 @@ libcds: make -C libcds/ clean: - rm -f *.o + rm -f *.[oa]