X-Git-Url: http://git.nguyen.vg/gitweb/?a=blobdiff_plain;f=Makefile;h=0727f78fda9b3c04a5f6a61841c4730471313940;hb=aad0ef1d1e05d23d3466e263160cda0a8fdf6866;hp=2eb36625b1b9754b01a24cb491833b9c5639bc00;hpb=19534e3089bc0c36bc50e5e522c145e73dcda9cc;p=SXSI%2FXMLTree.git diff --git a/Makefile b/Makefile index 2eb3662..0727f78 100644 --- a/Makefile +++ b/Makefile @@ -12,13 +12,20 @@ else HIDE=@ endif -OPT_FLAGS=-O4 $(POPCOUNT_FLAG) -fno-PIC -static +ifeq ($(DEBUG), true) + OPT_FLAGS=-O0 -g $(POPCOUNT_FLAG) -fno-PIC -static +else + OPT_FLAGS=-O4 $(POPCOUNT_FLAG) -fno-PIC -static +endif + + + INC_FLAGS=-I./libcds/includes/ -I. CFLAGS= $(INC_FLAGS) $(OPT_FLAGS) CXXFLAGS= -std=c++0x $(INC_FLAGS) $(OPT_FLAGS) CC=g++ -LIBCDS_A=libcds/lib/libcds.a +LIBCDS_A=libcds/lib/libcds.a OBJECTS_TCO= TextCollection/TextCollection.o \ TextCollection/TextCollectionBuilder.o \ TextCollection/RLCSABuilder.o \