final
[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  \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         cp libcds/lib/libcds.a XMLTree.a\r
12         rm -rf .objs\r
13         mkdir .objs\r
14         cd .objs; ar x ../$(OBJECTS_TCA)\r
15         ar rvcs XMLTree.a XMLTree.o bp.o darray.o bpcore.o $(OBJECTS_TCO) .objs/*.o\r
16         rm -rf .objs\r
17 \r
18 XMLTree.o: bp.c bp.h bpcore.c XMLTree.cpp XMLTree.h\r
19         g++ $(FLAGS) -c XMLTree.cpp\r
20 \r
21 bp.o: bp.c bpcore.c darray.c bp.h darray.h\r
22         g++ $(FLAGS) -c bp.c\r
23 \r
24 darray.o: darray.c darray.h bpcore.c\r
25         g++ $(FLAGS) -c darray.c\r
26 \r
27 bpcore.o: bpcore.c\r
28         g++ $(FLAGS) -c bpcore.c\r
29 \r
30 text_collection:\r
31         make -C TextCollection/\r
32 \r
33 libcds:\r
34         make -C libcds/\r
35 \r
36 clean:\r
37         rm -f *.[oa]\r