fifobuf: introduce DECLARE_FIFO() macro
[bertos.git] / wizard / mktemplates / template.mk
index 51688df446486a65b31ca943fb056b743e7926b8..ef9d934d2d438fe3aa6acf8287d375230aa75eab 100644 (file)
@@ -1,11 +1,6 @@
 #
-# Copyright 2009 Develer S.r.l. (http://www.develer.com/)
-# All rights reserved.
-#
-# Makefile template for BeRTOS wizard.
-#
-# Author: Lorenzo Berni <duplo@develer.com>
-#
+# Wizard autogenerated makefile.
+# DO NOT EDIT, use the $pname_user.mk file instead.
 #
 
 # Constants automatically defined by the selected modules
@@ -14,77 +9,64 @@ $constants
 # Our target application
 TRG += $pname
 
-$pname_PREFIX = $prefix
+$pname_PREFIX = "$prefix"
 
-$pname_SUFFIX = $suffix
+$pname_SUFFIX = "$suffix"
 
-$pname_$cpuflag = $cpuname
+$pname_SRC_PATH = $ppath
+
+$pname_HW_PATH = $hwpath
 
 # 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 \
-       #
-
-# 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 automatically generated by the wizard. DO NOT EDIT, USE $pname_USER_CPPASRC INSTEAD!
 $pname_WIZARD_CPPASRC = \
        $cppasrc
        #
 
-# 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)
-
 # 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 = \
-       #
+$pname_CPPFLAGS = -D'CPU_FREQ=($cpuclockfreqUL)' -D'ARCH=(ARCH_DEFAULT)' -D'WIZ_AUTOGEN' -I$($pname_HW_PATH) -I$($pname_SRC_PATH) $($pname_CPU_CPPFLAGS) $($pname_USER_CPPFLAGS)
+
+# Automatically generated by the wizard. PLEASE DO NOT EDIT!
+$pname_LDFLAGS = $($pname_CPU_LDFLAGS) $($pname_WIZARD_LDFLAGS) $($pname_USER_LDFLAGS)
+
+# Automatically generated by the wizard. PLEASE DO NOT EDIT!
+$pname_CPPAFLAGS = $($pname_CPU_CPPAFLAGS) $($pname_WIZARD_CPPAFLAGS) $($pname_USER_CPPAFLAGS)
+
+# Automatically generated by the wizard. PLEASE DO NOT EDIT!
+$pname_CSRC = $($pname_CPU_CSRC) $($pname_WIZARD_CSRC) $($pname_USER_CSRC)
 
 # 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 = $cppflags
-$pname_CPPAFLAGS = $cppaflags
-$pname_CXXFLAGS = $cxxflags
-$pname_ASFLAGS = $asflags
-$pname_ARFLAGS = $arflags
+$pname_PCSRC = $($pname_CPU_PCSRC) $($pname_WIZARD_PCSRC) $($pname_USER_PCSRC)
+
+# Automatically generated by the wizard. PLEASE DO NOT EDIT!
+$pname_CPPASRC = $($pname_CPU_CPPASRC) $($pname_WIZARD_CPPASRC) $($pname_USER_CPPASRC)
+
+# Automatically generated by the wizard. PLEASE DO NOT EDIT!
+$pname_CXXSRC = $($pname_CPU_CXXSRC) $($pname_WIZARD_CXXSRC) $($pname_USER_CXXSRC)
+
+# Automatically generated by the wizard. PLEASE DO NOT EDIT!
+$pname_ASRC = $($pname_CPU_ASRC) $($pname_WIZARD_ASRC) $($pname_USER_ASRC)
+
+# CPU specific flags and options, defined in the CPU definition files.
+# Automatically generated by the wizard. PLEASE DO NOT EDIT!
+$cpuparameters
+
+include $($pname_SRC_PATH)/$pname_user.mk