Rename myself
[bertos.git] / app / triface / triface.mk
1 #
2 # $Id$
3 # Copyright 2006 Develer S.r.l. (http://www.develer.com/)
4 # All rights reserved.
5 #
6 # Makefile fragment for DevLib triface application.
7 #
8 # Author: Bernie Innocenti <bernie@codewiz.org>
9 #
10 #
11
12 # This is an embedded project
13 triface_EMBEDDED_TGT = 1
14
15 # Set to 1 for debug builds
16 triface_DEBUG = 1
17
18 # Our target application
19 TRG += triface
20
21 triface_hfuse = 0x88
22 triface_lfuse = 0xff
23 triface_efuse = 0xff
24 triface_lock = 0x2f
25 triface_CSRC = \
26         app/triface/triface.c \
27         app/triface/protocol.c \
28         app/triface/hw/hw_adc.c \
29         bertos/drv/timer.c \
30         bertos/drv/ser.c \
31         bertos/drv/buzzer.c \
32         bertos/cpu/avr/drv/ser_avr.c \
33         bertos/cpu/avr/drv/sipo.c \
34         bertos/mware/formatwr.c \
35         bertos/mware/hex.c \
36         bertos/mware/hashtable.c \
37         bertos/mware/readline.c \
38         bertos/mware/parser.c \
39         bertos/mware/event.c \
40         bertos/kern/kfile.c \
41         bertos/net/keytag.c \
42         #
43
44 triface_PCSRC += bertos/mware/formatwr.c
45
46
47 triface_CFLAGS = -O2 -D'ARCH=(ARCH_TRIFACE)' -fno-strict-aliasing -Iapp/triface -Ibertos/cpu/avr
48 triface_LDFLAGS = -Wl
49
50 triface_MCU = atmega64
51 triface_CROSS = avr-
52
53 # Debug stuff
54 ifeq ($(triface_DEBUG),1)
55         triface_CFLAGS += -D_DEBUG
56         triface_PCSRC += bertos/drv/kdebug.c
57 endif
58
59
60 boot_EMBEDDED_TGT = 1
61 # Set to 1 for debug builds
62 boot_DEBUG = 0
63
64 # Our target application
65 TRG += boot
66
67 boot_MCU = atmega64
68 boot_CSRC = \
69         app/triface/boot/main.c \
70         bertos/net/xmodem.c \
71         bertos/drv/ser.c \
72         bertos/cpu/avr/drv/ser_avr.c \
73         bertos/cpu/avr/drv/flash_avr.c \
74         bertos/drv/timer.c \
75         bertos/algo/crc.c \
76         bertos/mware/hex.c \
77     bertos/kern/kfile.c \
78     #
79 boot_CROSS = avr-
80 boot_CPPFLAGS = -D'ARCH=(ARCH_TRIFACE|ARCH_BOOT)' -Iapp/triface/boot -Ibertos/cpu/avr
81 boot_CFLAGS = -Os -mcall-prologues
82 boot_LDSCRIPT = app/triface/boot/boot.ld
83 boot_LDFLAGS = -Wl,--relax
84
85 # Debug stuff
86 ifeq ($(boot_DEBUG),1)
87         boot_CFLAGS += -D_DEBUG
88         boot_PCSRC += bertos/drv/kdebug.c bertos/mware/formatwr.c
89 endif
90