3 # Copyright 2006 Develer S.r.l. (http://www.develer.com/)
6 # Makefile fragment for DevLib triface application.
8 # Author: Bernie Innocenti <bernie@codewiz.org>
12 # Set to 1 for debug builds
15 # Our target application
23 app/triface/triface.c \
24 app/triface/protocol.c \
25 app/triface/hw/hw_adc.c \
29 bertos/cpu/avr/drv/ser_avr.c \
30 bertos/cpu/avr/drv/sipo.c \
31 bertos/mware/formatwr.c \
33 bertos/struct/hashtable.c \
34 bertos/mware/readline.c \
35 bertos/mware/parser.c \
36 bertos/mware/event.c \
41 triface_PCSRC += bertos/mware/formatwr.c
44 triface_CFLAGS = -O2 -D'ARCH=(ARCH_TRIFACE)' -fno-strict-aliasing -Iapp/triface -Ibertos/cpu/avr
47 triface_MCU = atmega64
50 # Set to 1 for debug builds
53 # Our target application
58 app/triface/boot/main.c \
61 bertos/cpu/avr/drv/ser_avr.c \
62 bertos/cpu/avr/drv/flash_avr.c \
69 boot_CPPFLAGS = -D'ARCH=(ARCH_TRIFACE|ARCH_BOOT)' -Iapp/triface/boot -Ibertos/cpu/avr
70 boot_CFLAGS = -Os -mcall-prologues
71 boot_LDSCRIPT = app/triface/boot/boot.ld
72 boot_LDFLAGS = -Wl,--relax