X-Git-Url: http://git.nguyen.vg/gitweb/?a=blobdiff_plain;f=Makefile;h=feb8ae01eae7fe776fb4a3965a7f77d001ee3ee7;hb=HEAD;hp=5cc06f89f6e65d530322b9ff32a3f33e1184caa0;hpb=58aa6c1117e13edd366329cdcac4ba7388faed95;p=SXSI%2FXMLTree.git diff --git a/Makefile b/Makefile index 5cc06f8..feb8ae0 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,10 @@ -INC_FLAGS=-I.. -I../libcds/includes/ +INC_FLAGS=-I.. -I../libcds/includes/ -I. +ifeq ($(POPCOUNT), 1) + POPCOUNT_FLAG=-DHAS_NATIVE_POPCOUNT -mpopcnt +else + POPCOUNT_FLAG= +endif ifeq ($(VERBOSE), true) HIDE= @@ -8,16 +13,25 @@ else endif ifeq ($(DEBUG), true) - OPT_FLAGS=-O0 -g $(POPCOUNT_FLAG) -fno-PIC -static + OPT_FLAGS=-O0 -g $(POPCOUNT_FLAG) -static +else + OPT_FLAGS=-O3 $(POPCOUNT_FLAG) -static +endif + +ifeq ($(PROFILE), true) + PROF_FLAGS=-pg -g else - OPT_FLAGS=-O4 $(POPCOUNT_FLAG) -fno-PIC -static + PROF_FLAGS= endif -CXXFLAGS= -std=c++0x $(INC_FLAGS) $(OPT_FLAGS) + +CXXFLAGS=-std=c++0x $(INC_FLAGS) $(OPT_FLAGS) $(PROF_FLAGS) CXX=g++ -OBJECTS_XMLTREE=XMLTree.o XMLTreeBuilder.o -XMLTREE_A=libXMLTree.a +#OBJECTS_XMLTREE=XMLTree.o XMLTreeBuilder.o +#XMLTREE_A=libXMLTree.a +OBJECTS_XMLTREE=bit-vector.o xml-tree.o xml-tree-builder.o +XMLTREE_A=libxml-tree.a