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
18 BOOT_ADDR_START = 0x1E000
22 ifeq ($(CPU), atmega1281)
37 examples/triface/triface.c \
38 examples/triface/protocol.c \
39 examples/triface/hw/hw_adc.c \
43 bertos/cpu/avr/drv/ser_avr.c \
44 bertos/cpu/avr/drv/sipo.c \
45 bertos/mware/formatwr.c \
47 bertos/struct/hashtable.c \
48 bertos/mware/readline.c \
49 bertos/mware/parser.c \
50 bertos/mware/event.c \
55 triface_PCSRC += bertos/mware/formatwr.c
58 triface_CFLAGS = -O2 -D'ARCH=(ARCH_TRIFACE)' -fno-strict-aliasing -Iexamples/triface -Ibertos/cpu/avr
62 # Set to 1 for debug builds
65 # Our target application
70 examples/triface/boot/main.c \
73 bertos/cpu/avr/drv/ser_avr.c \
74 bertos/cpu/avr/drv/flash_avr.c \
81 boot_CPPFLAGS = -D'ARCH=(ARCH_TRIFACE|ARCH_BOOT)' -Iexamples/triface/boot -Ibertos/cpu/avr
82 boot_CFLAGS = -Os -mcall-prologues
83 boot_LDFLAGS = -Wl,--relax -Wl,--section-start=.text=$(BOOT_ADDR_START)