projects
/
SXSI
/
libbp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Silence a printf warning for %lu on 32bits archs.
[SXSI/libbp.git]
/
Makefile
diff --git
a/Makefile
b/Makefile
index
ec8d5b2
..
f639648
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-1,8
+1,9
@@
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
else
else
+ #POPCOUNT_FLAG=-DHAS_POPCOUNT_TABLE
POPCOUNT_FLAG=
endif
POPCOUNT_FLAG=
endif
@@
-13,20
+14,26
@@
else
endif
ifeq ($(DEBUG), true)
endif
ifeq ($(DEBUG), true)
- OPT_FLAGS=-O0 -g $(POPCOUNT_FLAG) -
fno-PIC -
static
+ OPT_FLAGS=-O0 -g $(POPCOUNT_FLAG) -static
else
else
- OPT_FLAGS=-O
4 $(POPCOUNT_FLAG) -fno-PIC
-static
+ OPT_FLAGS=-O
3 $(POPCOUNT_FLAG)
-static
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)
-CC=g
cc
+CFLAGS= $(INC_FLAGS) $(OPT_FLAGS)
$(PROF_FLAGS)
+CXXFLAGS= $(INC_FLAGS) $(OPT_FLAGS)
$(PROF_FLAGS)
+CC=g
++
-OBJECTS_BP=bp.o
darray.o bp
core.o
+OBJECTS_BP=bp.o
bp-utils.o bp-darray.o bp-
core.o
LIB_BP=libbp.a
all: depend $(LIB_BP)
LIB_BP=libbp.a
all: depend $(LIB_BP)