c1d095dccef8eb111165a11964103468a2a6af9f
[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 # $Log$
11 # Revision 1.3  2006/06/12 21:37:02  marco
12 # implemented some commands (ver and sleep)
13 #
14 # Revision 1.2  2006/06/01 12:29:21  marco
15 # Add first simple protocol command (version request).
16 #
17 # Revision 1.1  2006/05/18 00:41:47  bernie
18 # New triface devlib application.
19 #
20 #
21
22
23 # Set to 1 for debug builds
24 triface_DEBUG = 1
25
26 # Our target application
27 TRG += triface
28
29 triface_CSRC = \
30         app/triface/triface.c \
31         app/triface/protocol.c \
32         drv/timer.c \
33         drv/ser.c \
34         drv/ser_avr.c \
35         mware/formatwr.c \
36         mware/hex.c \
37         mware/hashtable.c \
38         mware/readline.c \
39         mware/parser.c \
40
41 #       drv/buzzer.c
42
43 triface_PCSRC += mware/formatwr.c
44
45 #triface_CFLAGS = -O3 -D'ARCH=0' -Iapp/triface/hw -Iapp/triface
46 triface_CFLAGS = -O0 -D'ARCH=0' -Iapp/triface/hw -Iapp/triface
47 triface_MCU = atmega128
48
49 # Debug stuff
50 ifeq ($(triface_DEBUG),1)
51         triface_CFLAGS += -D_DEBUG
52         triface_PCSRC += drv/kdebug.c
53 endif
54