Update test apps.
[bertos.git] / app / at91sam7s / at91sam7s.mk
1 #
2 # $Id: at91sam7s.mk 18234 2007-10-08 13:39:48Z rasky $
3 # Copyright 2006 Develer S.r.l. (http://www.develer.com/)
4 # All rights reserved.
5 #
6 # Makefile fragment for DevLib at91sam7s application.
7 #
8 # Author: Bernardo Innocenti <bernie@develer.com>
9 #
10 #
11
12
13 # Set to 1 for debug builds
14 at91sam7s_DEBUG = 0
15
16 # Our target application
17 TRG += at91sam7s
18
19 at91sam7s_CSRC = \
20         app/at91sam7s/at91sam7s.c \
21         drv/timer.c \
22         cpu/arm/drv/sysirq_at91.c \
23         mware/event.c
24
25 at91sam7s_CPPASRC = cpu/arm/hw/crtat91sam7s256_rom.S
26
27 at91sam7s_CPPAFLAGS = -O0 -g -gdwarf-2 -g -gen-debug
28 at91sam7s_CPPFLAGS = -O0 -D'ARCH=0' -D__ARM_AT91SAM7S256__ -g3 -gdwarf-2 -fverbose-asm -Iapp/at91sam7s/hw -Iapp/at91sam7s -Icpu/arm
29 at91sam7s_LDFLAGS = -nostartfiles -T cpu/arm/scripts/at91sam7s256_rom.ld -Wl,--no-warn-mismatch
30
31 at91sam7s_CPU = arm7tdmi
32
33 # Debug stuff
34 ifeq ($(at91sam7s_DEBUG),1)
35         at91sam7s_CFLAGS += -D_DEBUG
36         at91sam7s_PCSRC += drv/kdebug.c
37 endif
38