Move clock to CPPFLAGS.
[bertos.git] / wizard / mktemplates / template.mk
index 26a26d1ef6de0d37eb2bfe607430a8b60ce6d985..c151ce155f72641cd42f9ee9f5164799d8db6e2b 100644 (file)
@@ -18,9 +18,7 @@ $pname_PREFIX = $prefix
 
 $pname_SUFFIX = $suffix
 
-$pname_CROSS = $cross
-
-$pname_MCU = $cpuname
+$pname_$cpuflag = $cpuname
 
 # Files automatically generated by the wizard. DO NOT EDIT, USE $pname_USER_CSRC INSTEAD!
 $pname_WIZARD_CSRC = \
@@ -49,7 +47,7 @@ $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
+       $cppasrc
        #
 
 # Files included by the user.
@@ -59,5 +57,34 @@ $pname_USER_CPPASRC = \
 # Automatically generated by the wizard. PLEASE DO NOT EDIT!
 $pname_CPPASRC = $($pname_WIZARD_CPPASRC) $($pname_USER_CPPASRC)
 
+# Files automatically generated by the wizard. DO NOT EDIT, USE $pname_USER_CXXSRC INSTEAD!
+$pname_WIZARD_CXXSRC = \
+       $cxxsrc
+       #
+
+# Files included by the user.
+$pname_USER_CXXSRC = \
+       #
+
+# Automatically generated by the wizard. PLEASE DO NOT EDIT!
+$pname_CXXSRC = $($pname_WIZARD_CXXSRC) $($pname_USER_CXXSRC)
+
+# Files automatically generated by the wizard. DO NOT EDIT, USE $pname_USER_ASRC INSTEAD!
+$pname_WIZARD_ASRC = \
+       $asrc
+       #
+
+# Files included by the user.
+$pname_USER_ASRC = \
+       #
+
+# Automatically generated by the wizard. PLEASE DO NOT EDIT!
+$pname_ASRC = $($pname_WIZARD_ASRC) $($pname_USER_ASRC)
+
 $pname_CFLAGS = $cflags
 $pname_LDFLAGS = $ldflags
+$pname_CPPFLAGS = -D'CPU_FREQ=($cpuclockfreq)' $cppflags
+$pname_CPPAFLAGS = $cppaflags
+$pname_CXXFLAGS = $cxxflags
+$pname_ASFLAGS = $asflags
+$pname_ARFLAGS = $arflags