LPC2: add LPC2378 example project.
[bertos.git] / examples / lpc2378 / lpc2378_wiz.mk
1 #
2 # Copyright 2009 Develer S.r.l. (http://www.develer.com/)
3 # All rights reserved.
4 #
5 # Makefile template for BeRTOS wizard.
6 #
7 # Author: Lorenzo Berni <duplo@develer.com>
8 #
9 #
10
11 # Constants automatically defined by the selected modules
12 lpc2378_DEBUG = 1
13
14 # Our target application
15 TRG += lpc2378
16
17 lpc2378_PREFIX = "arm-none-eabi-"
18
19 lpc2378_SUFFIX = ""
20
21 # Files automatically generated by the wizard. DO NOT EDIT, USE lpc2378_USER_CSRC INSTEAD!
22 lpc2378_WIZARD_CSRC = \
23         bertos/mware/hex.c \
24         bertos/mware/formatwr.c \
25         #
26
27 # Files automatically generated by the wizard. DO NOT EDIT, USE lpc2378_USER_PCSRC INSTEAD!
28 lpc2378_WIZARD_PCSRC = \
29          \
30         #
31
32 # Files automatically generated by the wizard. DO NOT EDIT, USE lpc2378_USER_CPPASRC INSTEAD!
33 lpc2378_WIZARD_CPPASRC = \
34          \
35         #
36
37 # Files automatically generated by the wizard. DO NOT EDIT, USE lpc2378_USER_CXXSRC INSTEAD!
38 lpc2378_WIZARD_CXXSRC = \
39          \
40         #
41
42 # Files automatically generated by the wizard. DO NOT EDIT, USE lpc2378_USER_ASRC INSTEAD!
43 lpc2378_WIZARD_ASRC = \
44          \
45         #
46
47 lpc2378_CPPFLAGS = -D'CPU_FREQ=(72000000UL)' -D'ARCH=(ARCH_DEFAULT)' -D'WIZ_AUTOGEN' -Iexamples/lpc2378/ $(lpc2378_CPU_CPPFLAGS) $(lpc2378_USER_CPPFLAGS)
48
49 # Automatically generated by the wizard. PLEASE DO NOT EDIT!
50 lpc2378_LDFLAGS = $(lpc2378_CPU_LDFLAGS) $(lpc2378_WIZARD_LDFLAGS) $(lpc2378_USER_LDFLAGS)
51
52 # Automatically generated by the wizard. PLEASE DO NOT EDIT!
53 lpc2378_CPPAFLAGS = $(lpc2378_CPU_CPPAFLAGS) $(lpc2378_WIZARD_CPPAFLAGS) $(lpc2378_USER_CPPAFLAGS)
54
55 # Automatically generated by the wizard. PLEASE DO NOT EDIT!
56 lpc2378_CSRC = $(lpc2378_CPU_CSRC) $(lpc2378_WIZARD_CSRC) $(lpc2378_USER_CSRC)
57
58 # Automatically generated by the wizard. PLEASE DO NOT EDIT!
59 lpc2378_PCSRC = $(lpc2378_CPU_PCSRC) $(lpc2378_WIZARD_PCSRC) $(lpc2378_USER_PCSRC)
60
61 # Automatically generated by the wizard. PLEASE DO NOT EDIT!
62 lpc2378_CPPASRC = $(lpc2378_CPU_CPPASRC) $(lpc2378_WIZARD_CPPASRC) $(lpc2378_USER_CPPASRC)
63
64 # Automatically generated by the wizard. PLEASE DO NOT EDIT!
65 lpc2378_CXXSRC = $(lpc2378_CPU_CXXSRC) $(lpc2378_WIZARD_CXXSRC) $(lpc2378_USER_CXXSRC)
66
67 # Automatically generated by the wizard. PLEASE DO NOT EDIT!
68 lpc2378_ASRC = $(lpc2378_CPU_ASRC) $(lpc2378_WIZARD_ASRC) $(lpc2378_USER_ASRC)
69
70 # CPU specific flags and options, defined in the CPU definition files.
71 # Automatically generated by the wizard. PLEASE DO NOT EDIT!
72 lpc2378_CPU_CPPASRC = bertos/cpu/arm/hw/crt_arm7tdmi.S bertos/cpu/arm/hw/vectors_lpc2.S
73 lpc2378_CPU_CPPAFLAGS = -g -gdwarf-2
74 lpc2378_CPU_CPPFLAGS = -O0 -g3 -gdwarf-2 -fverbose-asm -Ibertos/cpu/arm/ -D__ARM_LPC2378__
75 lpc2378_CPU_CSRC = bertos/cpu/arm/hw/init_lpc2.c
76 lpc2378_PROGRAMMER_CPU = lpc2378
77 lpc2378_STOPFLASH_SCRIPT = bertos/prg_scripts/arm/stopopenocd.sh
78 lpc2378_CPU = arm7tdmi
79 lpc2378_STOPDEBUG_SCRIPT = bertos/prg_scripts/arm/stopopenocd.sh
80 lpc2378_DEBUG_SCRIPT = bertos/prg_scripts/arm/debug.sh
81 lpc2378_CPU_LDFLAGS = -nostartfiles -Wl,--no-warn-mismatch -T bertos/cpu/arm/scripts/lpc2378.ld
82 lpc2378_FLASH_SCRIPT = bertos/prg_scripts/arm/flash.sh