Split csrc, pcsrc and cppasrc in user-created and wizard-created.
[bertos.git] / wizard / mktemplates / template.mk
index 8c2f31b8a4c3645f6077d2e7e9549cdfaa6f50b6..26a26d1ef6de0d37eb2bfe607430a8b60ce6d985 100644 (file)
@@ -22,18 +22,42 @@ $pname_CROSS = $cross
 
 $pname_MCU = $cpuname
 
-$pname_CSRC = \
+# Files automatically generated by the wizard. DO NOT EDIT, USE $pname_USER_CSRC INSTEAD!
+$pname_WIZARD_CSRC = \
        $csrc
+       #
+
+# Files included by the user.
+$pname_USER_CSRC = \
        $main \
        #
 
-$pname_PCSRC += \
+# 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
        #
 
-$pname_CPPASRC += \
+# 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 = \
        $asrc
        #
 
+# 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)
+
 $pname_CFLAGS = $cflags
 $pname_LDFLAGS = $ldflags