b7c19cc41968a156bff22fe71fa5f5f104645e6d
[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: Bernardo Innocenti <bernie@develer.com>
9 #
10 #
11
12
13 # Set to 1 for debug builds
14 triface_DEBUG = 1
15
16 # Our target application
17 TRG += triface
18
19 triface_hfuse = 0x88
20 triface_lfuse = 0xff
21 triface_efuse = 0xff
22 triface_lock = 0x2f
23 triface_CSRC = \
24         app/triface/triface.c \
25         app/triface/protocol.c \
26         drv/timer.c \
27         drv/ser.c \
28         cpu/avr/drv/ser_avr.c \
29         cpu/avr/drv/sipo.c \
30         mware/formatwr.c \
31         mware/hex.c \
32         mware/hashtable.c \
33         mware/readline.c \
34         mware/parser.c \
35         mware/event.c \
36         net/keytag.c \
37         hw/hw_adc.c \
38         drv/buzzer.c \
39
40 triface_PCSRC += mware/formatwr.c
41
42
43 triface_CFLAGS = -O2 -D'ARCH=0' -Iapp/triface/hw -Iapp/triface -Icpu/avr
44 triface_LDFLAGS = -Wl
45
46 triface_MCU = atmega64
47
48 # Debug stuff
49 ifeq ($(triface_DEBUG),1)
50         triface_CFLAGS += -D_DEBUG
51         triface_PCSRC += drv/kdebug.c
52 endif
53