Update arduino kernel template, make it compile
[bertos.git] / boards / arduino / templates / arduino_kernel / arduino_kernel.mk
1 #
2 # Wizard autogenerated makefile.
3 # DO NOT EDIT, use the arduino_kernel_user.mk file instead.
4 #
5
6 # Constants automatically defined by the selected modules
7 arduino_kernel_DEBUG = 1
8
9 # Our target application
10 TRG += arduino_kernel
11
12 arduino_kernel_PREFIX = "avr-"
13
14 arduino_kernel_SUFFIX = ""
15
16 arduino_kernel_SRC_PATH = boards/arduino/templates/arduino_kernel
17
18 arduino_kernel_HW_PATH = boards/arduino
19
20 # Files automatically generated by the wizard. DO NOT EDIT, USE arduino_kernel_USER_CSRC INSTEAD!
21 arduino_kernel_WIZARD_CSRC = \
22         bertos/cpu/avr/drv/ser_avr.c \
23         bertos/cpu/avr/drv/ser_mega.c \
24         bertos/cpu/avr/drv/timer_avr.c \
25         bertos/cpu/avr/drv/timer_mega.c \
26         bertos/drv/ser.c \
27         bertos/drv/timer.c \
28         bertos/io/kfile.c \
29         bertos/kern/monitor.c \
30         bertos/kern/proc.c \
31         bertos/kern/sem.c \
32         bertos/kern/signal.c \
33         bertos/mware/event.c \
34         bertos/mware/formatwr.c \
35         bertos/mware/hex.c \
36         bertos/struct/heap.c \
37         #
38
39 # Files automatically generated by the wizard. DO NOT EDIT, USE arduino_kernel_USER_PCSRC INSTEAD!
40 arduino_kernel_WIZARD_PCSRC = \
41         bertos/mware/formatwr.c \
42         #
43
44 # Files automatically generated by the wizard. DO NOT EDIT, USE arduino_kernel_USER_CPPASRC INSTEAD!
45 arduino_kernel_WIZARD_CPPASRC = \
46         bertos/cpu/avr/hw/switch_ctx_avr.S \
47         #
48
49 # Files automatically generated by the wizard. DO NOT EDIT, USE arduino_kernel_USER_CXXSRC INSTEAD!
50 arduino_kernel_WIZARD_CXXSRC = \
51          \
52         #
53
54 # Files automatically generated by the wizard. DO NOT EDIT, USE arduino_kernel_USER_ASRC INSTEAD!
55 arduino_kernel_WIZARD_ASRC = \
56          \
57         #
58
59 arduino_kernel_CPPFLAGS = -D'CPU_FREQ=(16000000UL)' -D'ARCH=(ARCH_DEFAULT)' -D'WIZ_AUTOGEN' -I$(arduino_kernel_HW_PATH) -I$(arduino_kernel_SRC_PATH) $(arduino_kernel_CPU_CPPFLAGS) $(arduino_kernel_USER_CPPFLAGS)
60
61 # Automatically generated by the wizard. PLEASE DO NOT EDIT!
62 arduino_kernel_LDFLAGS = $(arduino_kernel_CPU_LDFLAGS) $(arduino_kernel_WIZARD_LDFLAGS) $(arduino_kernel_USER_LDFLAGS)
63
64 # Automatically generated by the wizard. PLEASE DO NOT EDIT!
65 arduino_kernel_CPPAFLAGS = $(arduino_kernel_CPU_CPPAFLAGS) $(arduino_kernel_WIZARD_CPPAFLAGS) $(arduino_kernel_USER_CPPAFLAGS)
66
67 # Automatically generated by the wizard. PLEASE DO NOT EDIT!
68 arduino_kernel_CSRC = $(arduino_kernel_CPU_CSRC) $(arduino_kernel_WIZARD_CSRC) $(arduino_kernel_USER_CSRC)
69
70 # Automatically generated by the wizard. PLEASE DO NOT EDIT!
71 arduino_kernel_PCSRC = $(arduino_kernel_CPU_PCSRC) $(arduino_kernel_WIZARD_PCSRC) $(arduino_kernel_USER_PCSRC)
72
73 # Automatically generated by the wizard. PLEASE DO NOT EDIT!
74 arduino_kernel_CPPASRC = $(arduino_kernel_CPU_CPPASRC) $(arduino_kernel_WIZARD_CPPASRC) $(arduino_kernel_USER_CPPASRC)
75
76 # Automatically generated by the wizard. PLEASE DO NOT EDIT!
77 arduino_kernel_CXXSRC = $(arduino_kernel_CPU_CXXSRC) $(arduino_kernel_WIZARD_CXXSRC) $(arduino_kernel_USER_CXXSRC)
78
79 # Automatically generated by the wizard. PLEASE DO NOT EDIT!
80 arduino_kernel_ASRC = $(arduino_kernel_CPU_ASRC) $(arduino_kernel_WIZARD_ASRC) $(arduino_kernel_USER_ASRC)
81
82 # CPU specific flags and options, defined in the CPU definition files.
83 # Automatically generated by the wizard. PLEASE DO NOT EDIT!
84 arduino_kernel_MCU = atmega328p
85 arduino_kernel_CPU_CPPFLAGS = -Os -Ibertos/cpu/avr/
86 arduino_kernel_PROGRAMMER_CPU = atmega328p
87 arduino_kernel_STOPFLASH_SCRIPT = bertos/prg_scripts/avr/stopflash.sh
88 arduino_kernel_STOPDEBUG_SCRIPT = bertos/prg_scripts/none.sh
89 arduino_kernel_DEBUG_SCRIPT = bertos/prg_scripts/nodebug.sh
90 arduino_kernel_FLASH_SCRIPT = bertos/prg_scripts/avr/flash.sh
91
92 include $(arduino_kernel_SRC_PATH)/arduino_kernel_user.mk