Make BWizard generic: now it can be used for both creating and editing projects
[bertos.git] / wizard / mktemplates / template.mk
index e55bd89be3d09f02e9f7684c1f53e3ec24dfc6c1..8c2f31b8a4c3645f6077d2e7e9549cdfaa6f50b6 100644 (file)
@@ -8,26 +8,32 @@
 #
 #
 
-# 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
 
 $pname_PREFIX = $prefix
 
 $pname_SUFFIX = $suffix
 
-$pname_MCU = $(CPU)
+$pname_CROSS = $cross
+
+$pname_MCU = $cpuname
 
 $pname_CSRC = \
        $csrc
+       $main \
        #
 
-$pname_PCSRC += $pcsrc
+$pname_PCSRC += \
+       $pcsrc
+       #
 
+$pname_CPPASRC += \
+       $asrc
+       #
 
 $pname_CFLAGS = $cflags
 $pname_LDFLAGS = $ldflags