From 03125db103d98200f7a313a38db54c56748283d1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Kim=20Nguy=E1=BB=85n?= Date: Thu, 29 Mar 2012 14:04:34 +0200 Subject: [PATCH] Split debugging and profiling mode. --- Makefile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 03d3fdb..36637de 100644 --- a/Makefile +++ b/Makefile @@ -10,10 +10,17 @@ endif 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 -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 -- 2.17.1