wizard: add -fomit-frame-pointer when we are not in debug mode.
authorarighi <arighi@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 10 May 2010 14:42:53 +0000 (14:42 +0000)
committerarighi <arighi@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 10 May 2010 14:42:53 +0000 (14:42 +0000)
This closes #128.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3643 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/mktemplates/template.mk

index ef9d934d2d438fe3aa6acf8287d375230aa75eab..1a219774d61e79a85eade71c0188e7958fc31d8d 100644 (file)
@@ -42,13 +42,23 @@ $pname_WIZARD_ASRC = \
        $asrc
        #
 
-$pname_CPPFLAGS = -D'CPU_FREQ=($cpuclockfreqUL)' -D'ARCH=(ARCH_DEFAULT)' -D'WIZ_AUTOGEN' -I$($pname_HW_PATH) -I$($pname_SRC_PATH) $($pname_CPU_CPPFLAGS) $($pname_USER_CPPFLAGS)
+ifeq ($($pname_DEBUG),1)
+       $pname_CPPFLAGS = -D'CPU_FREQ=($cpuclockfreqUL)' -D'ARCH=(ARCH_DEFAULT)' -D'WIZ_AUTOGEN' -I$($pname_HW_PATH) -I$($pname_SRC_PATH) $($pname_CPU_CPPFLAGS) $($pname_USER_CPPFLAGS)
+else
+       $pname_CPPFLAGS = -D'CPU_FREQ=($cpuclockfreqUL)' -D'ARCH=(ARCH_DEFAULT)' -D'WIZ_AUTOGEN' -I$($pname_HW_PATH) -I$($pname_SRC_PATH) $($pname_CPU_CPPFLAGS) $($pname_USER_CPPFLAGS) -fomit-frame-pointer
+endif
 
 # Automatically generated by the wizard. PLEASE DO NOT EDIT!
 $pname_LDFLAGS = $($pname_CPU_LDFLAGS) $($pname_WIZARD_LDFLAGS) $($pname_USER_LDFLAGS)
 
 # Automatically generated by the wizard. PLEASE DO NOT EDIT!
-$pname_CPPAFLAGS = $($pname_CPU_CPPAFLAGS) $($pname_WIZARD_CPPAFLAGS) $($pname_USER_CPPAFLAGS)
+ifeq ($($pname_DEBUG),1)
+       # Production options
+       $pname_CPPAFLAGS = $($pname_CPU_CPPAFLAGS) $($pname_WIZARD_CPPAFLAGS) $($pname_USER_CPPAFLAGS)
+else
+       # Debug options
+       $pname_CPPAFLAGS = $($pname_CPU_CPPAFLAGS) $($pname_WIZARD_CPPAFLAGS) $($pname_USER_CPPAFLAGS) -fomit-frame-pointer
+endif
 
 # Automatically generated by the wizard. PLEASE DO NOT EDIT!
 $pname_CSRC = $($pname_CPU_CSRC) $($pname_WIZARD_CSRC) $($pname_USER_CSRC)