more fixes, macros conflicts
[SXSI/XMLTree.git] / makefile
1 FLAGS =-std=c++0x -O3 -I./libcds/includes/\r
2 \r
3 LIBCDS_A=libcds/lib/libcds.a \r
4 OBJECTS_TCO= TextCollection/TextCollection.o TextCollection/TextCollectionBuilder.o TextCollection/TCImplementation.o TextCollection/Tools.o TextCollection/BitRank.o TextCollection/BSGAP.o \r
5 OBJECTS_TCA=TextCollection/incbwt/rlcsa.a\r
6 \r
7 \r
8 all: libcds text_collection XMLTree\r
9 \r
10 XMLTree: XMLTree.o bp.o darray.o bpcore.o $(LIBCDS_A) $(OBJECTS_TCO) $(OBJECTS_TCA)\r
11         ar rvcs XMLTree.a XMLTree.o bp.o darray.o bpcore.o $(OBJECTS_TCO)\r
12         echo -e "OPEN XMLTree.a\n ADDLIB " $(OBJECTS_TCA) "\n ADDLIB " $(LIBCDS_A) "\n SAVE" | ar -M\r
13 \r
14 XMLTree.o: bp.c bp.h bpcore.c XMLTree.cpp XMLTree.h\r
15         g++ $(FLAGS) -c XMLTree.cpp\r
16 \r
17 bp.o: bp.c bpcore.c darray.c bp.h darray.h\r
18         g++ $(FLAGS) -c bp.c\r
19 \r
20 darray.o: darray.c darray.h bpcore.c\r
21         g++ $(FLAGS) -c darray.c\r
22 \r
23 bpcore.o: bpcore.c\r
24         g++ $(FLAGS) -c bpcore.c\r
25 \r
26 text_collection:\r
27         make -C TextCollection/\r
28 \r
29 libcds:\r
30         make -C libcds/\r
31 \r
32 clean:\r
33         rm -f *.[oa]\r