Add debug test.
[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 = 1
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         mware/formatwr.c \
25         mware/hex.c
26         
27
28 at91sam7s_CPPASRC = cpu/arm/hw/crtat91sam7s256_rom.S
29
30 at91sam7s_CPPAFLAGS = -O0 -g -gdwarf-2 -g -gen-debug
31 at91sam7s_CPPFLAGS = -O0 -D'ARCH=0' -D__ARM_AT91SAM7S256__ -g3 -gdwarf-2 -fverbose-asm -Iapp/at91sam7s/hw -Iapp/at91sam7s -Icpu/arm
32 at91sam7s_LDFLAGS = -nostartfiles -T cpu/arm/scripts/at91sam7s256_ram.ld -Wl,--no-warn-mismatch
33
34 at91sam7s_CPU = arm7tdmi
35
36 # Debug stuff
37 ifeq ($(at91sam7s_DEBUG),1)
38         at91sam7s_CFLAGS += -D_DEBUG
39         at91sam7s_CSRC += drv/kdebug.c
40 endif
41