Attempt to automatize the creation of the mk files
[bertos.git] / wizard / mktemplates / template.mk
index 4c3b886c3a7a17698e8aab61ac6cc773e4e60498..155b8f95b4d3acd14b515d2592440d8b113fb90f 100644 (file)
@@ -8,29 +8,48 @@
 #
 #
 
-# Constants automatically defined by the selected modules
-$constants
+# Include the mk file generated by the wizard
+include $pname/$pname_wiz.mk
 
-# Our target application
-TRG += $pname
-
-$pname_PREFIX = $prefix
-
-$pname_SUFFIX = $suffix
+# Files included by the user.
+$pname_USER_CSRC = \
+       $main \
+       #
 
-$pname_CROSS = $cross
+# Files included by the user.
+$pname_USER_PCSRC = \
+       #
 
-$pname_MCU = $cpuname
+# Files included by the user.
+$pname_USER_CPPASRC = \
+       #
 
-$pname_CSRC = \
-       $csrc
-       $main \
+# Files included by the user.
+$pname_USER_CXXSRC = \
        #
 
-$pname_PCSRC += \
-       $pcsrc
+# Files included by the user.
+$pname_USER_ASRC = \
        #
 
+# Programmer interface configuration, see http://dev.bertos.org/wiki/ProgrammerInterface for help
+$pname_PROGRAMMER_TYPE = none
+$pname_PROGRAMMER_PORT = none
+
+####### End of configurable section, do not edit the lines below! #######
+
+# Automatically generated by the wizard. PLEASE DO NOT EDIT!
+$pname_CSRC = $($pname_WIZARD_CSRC) $($pname_USER_CSRC)
+
+# Automatically generated by the wizard. PLEASE DO NOT EDIT!
+$pname_PCSRC = $($pname_WIZARD_PCSRC) $($pname_USER_PCSRC)
+
+# Automatically generated by the wizard. PLEASE DO NOT EDIT!
+$pname_CPPASRC = $($pname_WIZARD_CPPASRC) $($pname_USER_CPPASRC)
+
+# Automatically generated by the wizard. PLEASE DO NOT EDIT!
+$pname_CXXSRC = $($pname_WIZARD_CXXSRC) $($pname_USER_CXXSRC)
+
+# Automatically generated by the wizard. PLEASE DO NOT EDIT!
+$pname_ASRC = $($pname_WIZARD_ASRC) $($pname_USER_ASRC)
 
-$pname_CFLAGS = $cflags
-$pname_LDFLAGS = $ldflags