projects
/
SXSI
/
libbp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Various fixes and cosmetic changes.
[SXSI/libbp.git]
/
Makefile
diff --git
a/Makefile
b/Makefile
index
3effd67
..
59e83a1
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-1,7
+1,7
@@
POPCOUNT=$(shell grep -q popcnt /proc/cpuinfo && echo 1)
ifeq ($(POPCOUNT), 1)
POPCOUNT=$(shell grep -q popcnt /proc/cpuinfo && echo 1)
ifeq ($(POPCOUNT), 1)
- POPCOUNT_FLAG=-DHAS_NATIVE_POPCOUNT
+ POPCOUNT_FLAG=-DHAS_NATIVE_POPCOUNT
-mpopcnt -mtune=corei7 -march=corei7
else
#POPCOUNT_FLAG=-DHAS_POPCOUNT_TABLE
POPCOUNT_FLAG=
else
#POPCOUNT_FLAG=-DHAS_POPCOUNT_TABLE
POPCOUNT_FLAG=
@@
-16,14
+16,20
@@
endif
ifeq ($(DEBUG), true)
OPT_FLAGS=-O0 -g $(POPCOUNT_FLAG) -static
else
ifeq ($(DEBUG), true)
OPT_FLAGS=-O0 -g $(POPCOUNT_FLAG) -static
else
- OPT_FLAGS=-O
4
$(POPCOUNT_FLAG) -static -flto
+ OPT_FLAGS=-O
3
$(POPCOUNT_FLAG) -static -flto
endif
endif
+ifeq ($(PROFILE), true)
+ PROF_FLAGS=-pg -g
+else
+ PROF_FLAGS=
+endif
+
INC_FLAGS=-I.
INC_FLAGS=-I.
-CFLAGS= $(INC_FLAGS) $(OPT_FLAGS)
-CXXFLAGS= $(INC_FLAGS) $(OPT_FLAGS)
+CFLAGS= $(INC_FLAGS) $(OPT_FLAGS)
$(PROF_FLAGS)
+CXXFLAGS= $(INC_FLAGS) $(OPT_FLAGS)
$(PROF_FLAGS)
CC=g++
CC=g++