Remove spurious debugging message.
[SXSI/XMLTree.git] / Makefile
1 INC_FLAGS=-I.. -I../libcds/includes/ -I.
2
3
4 ifeq ($(VERBOSE), true)
5         HIDE=
6 else
7         HIDE=@
8 endif
9
10 ifeq ($(DEBUG), true)
11         OPT_FLAGS=-O0 -g $(POPCOUNT_FLAG) -static
12 else
13         OPT_FLAGS=-O3 $(POPCOUNT_FLAG) -static -flto
14 endif
15
16 ifeq ($(PROFILE), true)
17         PROF_FLAGS=-pg -g
18 else
19         PROF_FLAGS=
20 endif
21
22
23 CXXFLAGS=-std=c++0x $(INC_FLAGS) $(OPT_FLAGS) $(PROF_FLAGS)
24 CXX=g++
25
26 #OBJECTS_XMLTREE=XMLTree.o XMLTreeBuilder.o
27 #XMLTREE_A=libXMLTree.a
28 OBJECTS_XMLTREE=bit-vector.o xml-tree.o xml-tree-builder.o
29 XMLTREE_A=libxml-tree.a
30
31
32
33 all: depend $(XMLTREE_A)
34
35 $(XMLTREE_A): $(OBJECTS_XMLTREE)
36         @echo [Link] $@
37         $(HIDE) ar rcs $@ $(OBJECTS_XMLTREE)
38
39 %o: %cpp
40         @echo [C++] $@
41         $(HIDE) $(CXX) -c $(CXXFLAGS)  $< -o $@
42
43
44 depend:
45         @echo [DEPEND]
46         $(HIDE) ($(CXX) -MM $(CXXFLAGS) *.cpp) > $@
47
48 clean:
49         @echo [CLEAN]
50         $(HIDE) rm -f *.[oa] depend
51
52 -include depend