Attempt to automatize the creation of the mk files
[bertos.git] / wizard / mktemplates / template.mk
index dc2d3ea0b89e347bc3872f0aee10c4ecee31628e..155b8f95b4d3acd14b515d2592440d8b113fb90f 100644 (file)
@@ -8,26 +8,48 @@
 #
 #
 
-# Set to 1 for debug builds
-$pname_DEBUG = 1
+# Include the mk file generated by the wizard
+include $pname/$pname_wiz.mk
 
-# Our target application
-TRG += $pname
-
-$pname_PREFIX = $prefix
+# Files included by the user.
+$pname_USER_CSRC = \
+       $main \
+       #
 
-$pname_SUFFIX = $suffix
+# Files included by the user.
+$pname_USER_PCSRC = \
+       #
 
-$pname_CROSS = $cross
+# Files included by the user.
+$pname_USER_CPPASRC = \
+       #
 
-$pname_MCU = $cpuname
+# Files included by the user.
+$pname_USER_CXXSRC = \
+       #
 
-$pname_CSRC = \
-       $csrc
+# Files included by the user.
+$pname_USER_ASRC = \
        #
 
-$pname_PCSRC += $pcsrc
+# 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