From ee676c5982a04f241ceff64544e013c2b396d0cd Mon Sep 17 00:00:00 2001 From: Amritanshu Date: Thu, 8 Oct 2020 11:27:32 +0530 Subject: Modified build make file Change-Id: I9784039d057eabbe4d2d955a975a1f8ae03d7df7 Signed-off-by: Amritanshu --- Build/flags.mk | 59 ++++++++++++++++++++++++++++++++++------------------------ 1 file changed, 35 insertions(+), 24 deletions(-) diff --git a/Build/flags.mk b/Build/flags.mk index dfaffbe..0eb7e41 100755 --- a/Build/flags.mk +++ b/Build/flags.mk @@ -1,24 +1,35 @@ - -DEBUG_OP = -g3 -D_DEBUG -CPP_DEBUG_OP = -D_DEBUG - -OPTIMIZATION_OP = -O0 -CPP_OPTIMIZATION_OP = - -COMPILE_FLAGS = $(DEBUG_OP) $(OPTIMIZATION_OP) -Wall -c -fmessage-length=0 - -CPP_COMPILE_FLAGS = $(CPP_DEBUG_OP) $(CPP_OPTIMIZATION_OP) - -LINK_FLAGS = - -ifeq ($(STRIP_INFO),off) -LINK_FLAGS = -else -ifeq ($(STRIP_INFO),on) -LINK_FLAGS = -s -endif -endif - -AR_FLAGS = - -EDC_COMPILE_FLAGS = \ No newline at end of file +# Add tools flags defines + +ifeq ($(strip $(BUILD_CONFIG)),Debug) +OPTIMIZATION_OP := -O0 +DEBUG_OP := -g3 -D_DEBUG +CPP_OPTIMIZATION_OP := -O0 +CPP_DEBUG_OP := -g3 -D_DEBUG +LINK_OP := +else +ifeq ($(strip $(BUILD_CONFIG)),Release) +OPTIMIZATION_OP := -O3 +DEBUG_OP := +CPP_OPTIMIZATION_OP := -O3 +CPP_DEBUG_OP := +LINK_OP := -s +endif +endif + +ifeq ($(STRIP_INFO),off) +LINK_OP := +else +ifeq ($(STRIP_INFO),on) +LINK_OP := -s +endif +endif + +COMPILE_FLAGS = $(DEBUG_OP) $(OPTIMIZATION_OP) -Wall -c -fmessage-length=0 + +CPP_COMPILE_FLAGS = $(CPP_DEBUG_OP) $(CPP_OPTIMIZATION_OP) -Wall -c -fmessage-length=0 -std=c++11 + +LINK_FLAGS = -L"$(PROJ_PATH)/lib" -Wl,--no-undefined $(LINK_OP) + +AR_FLAGS = + +EDC_COMPILE_FLAGS = -id "$(PROJ_PATH)/edje/images" -sd "$(PROJ_PATH)/edje/sounds" -fd "$(PROJ_PATH)/edje/fonts" -- cgit v1.2.3