projects
/
SXSI
/
XMLTree.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
883743a
)
Split debugging and profiling mode.
author
Kim Nguyễn
<kn@lri.fr>
Thu, 29 Mar 2012 12:04:34 +0000
(14:04 +0200)
committer
Kim Nguyễn
<kn@lri.fr>
Thu, 29 Mar 2012 12:04:34 +0000
(14:04 +0200)
Makefile
patch
|
blob
|
history
diff --git
a/Makefile
b/Makefile
index
03d3fdb
..
36637de
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-10,10
+10,17
@@
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=-O4 $(POPCOUNT_FLAG) -static
+ OPT_FLAGS=-O4 $(POPCOUNT_FLAG) -static
-flto
endif
endif
-CXXFLAGS=-std=c++0x $(INC_FLAGS) $(OPT_FLAGS)
+ifeq ($(PROFILE), true)
+ PROF_FLAGS=-pg -g
+else
+ PROF_FLAGS=
+endif
+
+
+CXXFLAGS=-std=c++0x $(INC_FLAGS) $(OPT_FLAGS) $(PROF_FLAGS)
CXX=g++
OBJECTS_XMLTREE=XMLTree.o XMLTreeBuilder.o
CXX=g++
OBJECTS_XMLTREE=XMLTree.o XMLTreeBuilder.o