Refactor makefile variables architecture.
[bertos.git] / wizard / mktemplates / template.mk
index 26a26d1ef6de0d37eb2bfe607430a8b60ce6d985..35896c47af8609d14bf8db8d3c939d9e72dde630 100644 (file)
@@ -8,56 +8,33 @@
 #
 #
 
-# Constants automatically defined by the selected modules
-$constants
-
-# Our target application
-TRG += $pname
-
-$pname_PREFIX = $prefix
-
-$pname_SUFFIX = $suffix
-
-$pname_CROSS = $cross
-
-$pname_MCU = $cpuname
-
-# Files automatically generated by the wizard. DO NOT EDIT, USE $pname_USER_CSRC INSTEAD!
-$pname_WIZARD_CSRC = \
-       $csrc
-       #
+# Include the mk file generated by the wizard
+include $pname/$pname_wiz.mk
 
 # 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 included by the user.
+$pname_USER_CPPASRC = \
+       #
 
-# Files automatically generated by the wizard. DO NOT EDIT, USE $pname_USER_CPPASRC INSTEAD!
-$pname_WIZARD_CPPASRC = \
-       $asrc
+# Files included by the user.
+$pname_USER_CXXSRC = \
        #
 
 # Files included by the user.
-$pname_USER_CPPASRC = \
+$pname_USER_ASRC = \
        #
 
-# Automatically generated by the wizard. PLEASE DO NOT EDIT!
-$pname_CPPASRC = $($pname_WIZARD_CPPASRC) $($pname_USER_CPPASRC)
+# Programmer interface configuration, see http://dev.bertos.org/wiki/ProgrammerInterface for help
+$pname_PROGRAMMER_TYPE = none
+$pname_PROGRAMMER_PORT = none
+
 
-$pname_CFLAGS = $cflags
-$pname_LDFLAGS = $ldflags
+$cpuparameters