projects
/
SXSI
/
libcds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add optimization flags to g++
[SXSI/libcds.git]
/
src
/
Makefile
diff --git
a/src/Makefile
b/src/Makefile
index
aaec1e9
..
9812eac
100644
(file)
--- a/
src/Makefile
+++ b/
src/Makefile
@@
-1,6
+1,14
@@
CPP=g++
CPP=g++
+POPCOUNT=$(shell grep -q popcnt /proc/cpuinfo && echo 1)
-CPPFLAGS=-O3 -Wall -DNDEBUG -fno-PIC
+ifeq ($(POPCOUNT), 1)
+ POPCOUNT_FLAG=-DHAS_NATIVE_POPCOUNT -mpopcnt
+else
+#POPCOUNT_FLAG=-DHAS_POPCOUNT_TABLE
+ POPCOUNT_FLAG=
+endif
+
+CPPFLAGS=-O3 -Wall -DNDEBUG -fno-PIC $(POPCOUNT_FLAG) -g -msse
INCL=-I../includes/
INCL=-I../includes/