wizard: add -fomit-frame-pointer when we are not in debug mode.
[bertos.git] / wizard / mktemplates / template.mk
1 #
2 # Wizard autogenerated makefile.
3 # DO NOT EDIT, use the $pname_user.mk file instead.
4 #
5
6 # Constants automatically defined by the selected modules
7 $constants
8
9 # Our target application
10 TRG += $pname
11
12 $pname_PREFIX = "$prefix"
13
14 $pname_SUFFIX = "$suffix"
15
16 $pname_SRC_PATH = $ppath
17
18 $pname_HW_PATH = $hwpath
19
20 # Files automatically generated by the wizard. DO NOT EDIT, USE $pname_USER_CSRC INSTEAD!
21 $pname_WIZARD_CSRC = \
22         $csrc
23         #
24
25 # Files automatically generated by the wizard. DO NOT EDIT, USE $pname_USER_PCSRC INSTEAD!
26 $pname_WIZARD_PCSRC = \
27         $pcsrc
28         #
29
30 # Files automatically generated by the wizard. DO NOT EDIT, USE $pname_USER_CPPASRC INSTEAD!
31 $pname_WIZARD_CPPASRC = \
32         $cppasrc
33         #
34
35 # Files automatically generated by the wizard. DO NOT EDIT, USE $pname_USER_CXXSRC INSTEAD!
36 $pname_WIZARD_CXXSRC = \
37         $cxxsrc
38         #
39
40 # Files automatically generated by the wizard. DO NOT EDIT, USE $pname_USER_ASRC INSTEAD!
41 $pname_WIZARD_ASRC = \
42         $asrc
43         #
44
45 ifeq ($($pname_DEBUG),1)
46         $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)
47 else
48         $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
49 endif
50
51 # Automatically generated by the wizard. PLEASE DO NOT EDIT!
52 $pname_LDFLAGS = $($pname_CPU_LDFLAGS) $($pname_WIZARD_LDFLAGS) $($pname_USER_LDFLAGS)
53
54 # Automatically generated by the wizard. PLEASE DO NOT EDIT!
55 ifeq ($($pname_DEBUG),1)
56         # Production options
57         $pname_CPPAFLAGS = $($pname_CPU_CPPAFLAGS) $($pname_WIZARD_CPPAFLAGS) $($pname_USER_CPPAFLAGS)
58 else
59         # Debug options
60         $pname_CPPAFLAGS = $($pname_CPU_CPPAFLAGS) $($pname_WIZARD_CPPAFLAGS) $($pname_USER_CPPAFLAGS) -fomit-frame-pointer
61 endif
62
63 # Automatically generated by the wizard. PLEASE DO NOT EDIT!
64 $pname_CSRC = $($pname_CPU_CSRC) $($pname_WIZARD_CSRC) $($pname_USER_CSRC)
65
66 # Automatically generated by the wizard. PLEASE DO NOT EDIT!
67 $pname_PCSRC = $($pname_CPU_PCSRC) $($pname_WIZARD_PCSRC) $($pname_USER_PCSRC)
68
69 # Automatically generated by the wizard. PLEASE DO NOT EDIT!
70 $pname_CPPASRC = $($pname_CPU_CPPASRC) $($pname_WIZARD_CPPASRC) $($pname_USER_CPPASRC)
71
72 # Automatically generated by the wizard. PLEASE DO NOT EDIT!
73 $pname_CXXSRC = $($pname_CPU_CXXSRC) $($pname_WIZARD_CXXSRC) $($pname_USER_CXXSRC)
74
75 # Automatically generated by the wizard. PLEASE DO NOT EDIT!
76 $pname_ASRC = $($pname_CPU_ASRC) $($pname_WIZARD_ASRC) $($pname_USER_ASRC)
77
78 # CPU specific flags and options, defined in the CPU definition files.
79 # Automatically generated by the wizard. PLEASE DO NOT EDIT!
80 $cpuparameters
81
82 include $($pname_SRC_PATH)/$pname_user.mk