X-Git-Url: http://git.nguyen.vg/gitweb/?a=blobdiff_plain;f=Makefile;h=feb8ae01eae7fe776fb4a3965a7f77d001ee3ee7;hb=HEAD;hp=1e054aad523facf760cb7e7d86cc41f72a6babba;hpb=c6266d8fd1872fad45b18d3d554410d080b65099;p=SXSI%2FXMLTree.git diff --git a/Makefile b/Makefile index 1e054aa..feb8ae0 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,10 @@ INC_FLAGS=-I.. -I../libcds/includes/ -I. +ifeq ($(POPCOUNT), 1) + POPCOUNT_FLAG=-DHAS_NATIVE_POPCOUNT -mpopcnt +else + POPCOUNT_FLAG= +endif ifeq ($(VERBOSE), true) HIDE= @@ -10,7 +15,7 @@ endif ifeq ($(DEBUG), true) OPT_FLAGS=-O0 -g $(POPCOUNT_FLAG) -static else - OPT_FLAGS=-O3 $(POPCOUNT_FLAG) -static -flto + OPT_FLAGS=-O3 $(POPCOUNT_FLAG) -static endif ifeq ($(PROFILE), true)