Import boot from triface, not working for now.
[bertos.git] / app / triface / boot / boot.mk
1 #
2 # $Id: boot.mk 15184 2007-02-16 15:09:23Z batt $
3 # Copyright 2002, 2003, 2004 Develer S.r.l. (http://www.develer.com/)
4 # All rights reserved.
5 #
6 # Makefile fragment for boot application.
7 #
8 # Author: Bernardo Innocenti <bernie@develer.com>
9 #
10
11
12 # Set to 1 for debug builds
13 boot_DEBUG = 1
14
15 # Our target application
16 TRG += boot
17
18 boot_MCU = atmega64
19 boot_CSRC = \
20         boot/main.c \
21         mware/xmodem.c \
22         drv/ser.c \
23         cpu/avr/drv/ser_avr.c \
24         cpu/avr/drv/flash_avr.c \
25         drv/timer.c \
26         algos/crc.c
27
28 boot_CROSS = avr-
29 boot_CPPFLAGS = -D'ARCH=(ARCH_TRIFACE|ARCH_BOOT)' -Iboot -Icpu/avr
30 boot_CFLAGS = -Os -mcall-prologues
31 boot_LDSCRIPT = boot/boot.ld
32 boot_LDFLAGS = -Wl,--relax
33
34 # Debug stuff
35 ifeq ($(boot_DEBUG),1)
36         boot_CFLAGS += -D_DEBUG
37         boot_PCSRC += drv/kdebug.c mware/formatwr.c
38 endif
39