projects
/
SXSI
/
libcds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove suprious printing.
[SXSI/libcds.git]
/
src
/
Makefile
diff --git
a/src/Makefile
b/src/Makefile
index
033d2db
..
b1165d6
100644
(file)
--- a/
src/Makefile
+++ b/
src/Makefile
@@
-1,14
+1,20
@@
CPP=g++
POPCOUNT=$(shell grep -q popcnt /proc/cpuinfo && echo 1)
CPP=g++
POPCOUNT=$(shell grep -q popcnt /proc/cpuinfo && echo 1)
+SSE=$(shell grep -q sse /proc/cpuinfo && echo 1)
ifeq ($(POPCOUNT), 1)
ifeq ($(POPCOUNT), 1)
- POPCOUNT_FLAG=-DHAS_NATIVE_POPCOUNT
+ POPCOUNT_FLAG=-DHAS_NATIVE_POPCOUNT
-mpopcnt
else
else
-#POPCOUNT_FLAG=-DHAS_POPCOUNT_TABLE
POPCOUNT_FLAG=
endif
POPCOUNT_FLAG=
endif
-CPPFLAGS=-O3 -Wall -DNDEBUG -fno-PIC $(POPCOUNT_FLAG) -flto
+ifeq ($(SSE), 1)
+ SSE_FLAG=-DHAS_NATIVE_POPCOUNT -mpopcnt
+else
+ SSE_FLAG=-msse
+endif
+
+CPPFLAGS=-O3 -Wall -DNDEBUG -fno-PIC $(POPCOUNT_FLAG) $(SSE_FLAG) -g
INCL=-I../includes/
INCL=-I../includes/