Rename CLOCK_FREQ macro to CPU_FREQ: now clock frequency has to be set in the makefile.
[bertos.git] / wizard / mktemplates / template.mk
index 281b772aab3b34586b25b46e0522086a887dabd2..b778e67362f7556bcf070b01d99effc7ac022342 100644 (file)
@@ -8,26 +8,83 @@
 #
 #
 
-# Set to 1 for debug builds
-pname_DEBUG = 1
+# Constants automatically defined by the selected modules
+$constants
 
 # Our target application
-TRG += pname
-CPU = cpuname
-BOOT_ADDR_START = 0x1E000
+TRG += $pname
 
-pname_PREFIX = prefix
+$pname_PREFIX = $prefix
 
-pname_SUFFIX = suffix
+$pname_SUFFIX = $suffix
 
-pname_MCU = $(CPU)
+$pname_$cpuflag = $cpuname
 
-pname_CSRC = \
-       csrc
+# Files automatically generated by the wizard. DO NOT EDIT, USE $pname_USER_CSRC INSTEAD!
+$pname_WIZARD_CSRC = \
+       $csrc
        #
 
-pname_PCSRC += pcsrc
+# Files included by the user.
+$pname_USER_CSRC = \
+       $main \
+       #
+
+# Automatically generated by the wizard. PLEASE DO NOT EDIT!
+$pname_CSRC = $($pname_WIZARD_CSRC) $($pname_USER_CSRC)
+
+# Files automatically generated by the wizard. DO NOT EDIT, USE $pname_USER_PCSRC INSTEAD!
+$pname_WIZARD_PCSRC = \
+       $pcsrc
+       #
+
+# Files included by the user.
+$pname_USER_PCSRC = \
+       #
+
+# Automatically generated by the wizard. PLEASE DO NOT EDIT!
+$pname_PCSRC = $($pname_WIZARD_PCSRC) $($pname_USER_PCSRC)
+
+# Files automatically generated by the wizard. DO NOT EDIT, USE $pname_USER_CPPASRC INSTEAD!
+$pname_WIZARD_CPPASRC = \
+       $cppasrc
+       #
+
+# Files included by the user.
+$pname_USER_CPPASRC = \
+       #
+
+# Automatically generated by the wizard. PLEASE DO NOT EDIT!
+$pname_CPPASRC = $($pname_WIZARD_CPPASRC) $($pname_USER_CPPASRC)
+
+# Files automatically generated by the wizard. DO NOT EDIT, USE $pname_USER_CXXSRC INSTEAD!
+$pname_WIZARD_CXXSRC = \
+       $cxxsrc
+       #
+
+# Files included by the user.
+$pname_USER_CXXSRC = \
+       #
+
+# Automatically generated by the wizard. PLEASE DO NOT EDIT!
+$pname_CXXSRC = $($pname_WIZARD_CXXSRC) $($pname_USER_CXXSRC)
+
+# Files automatically generated by the wizard. DO NOT EDIT, USE $pname_USER_ASRC INSTEAD!
+$pname_WIZARD_ASRC = \
+       $asrc
+       #
+
+# Files included by the user.
+$pname_USER_ASRC = \
+       #
 
+# Automatically generated by the wizard. PLEASE DO NOT EDIT!
+$pname_ASRC = $($pname_WIZARD_ASRC) $($pname_USER_ASRC)
 
-pname_CFLAGS = cflags
-pname_LDFLAGS = ldflags
+$pname_CFLAGS = $cflags
+$pname_LDFLAGS = $ldflags
+$pname_CPPFLAGS = $cppflags
+$pname_CPPAFLAGS = -D'CPU_FREQ=($cpuclockfreq)' $cppaflags
+$pname_CXXFLAGS = $cxxflags
+$pname_ASFLAGS = $asflags
+$pname_ARFLAGS = $arflags