2 # $Id: armtest.mk 18234 2007-10-08 13:39:48Z rasky $
3 # Copyright 2006 Develer S.r.l. (http://www.develer.com/)
6 # Makefile fragment for DevLib armtest application.
8 # Author: Bernardo Innocenti <bernie@develer.com>
12 # Set to 1 for debug builds
15 # Our target application
18 #include arm c and asm sources
19 include ./app/test/arm_src.mk
21 armtest_CSRC = $(arm_CSRC) app/test/empty_main.c
23 armtest_CPPASRC = $(arm_ASRC)
25 armtest_CROSS = arm-elf-
27 armtest_CPPAFLAGS = -O0 -g -gdwarf-2 -g -gen-debug
28 armtest_CPPFLAGS = -O0 -D'ARCH=0xFFFFFF' -D__ARM_AT91SAM7S256__ -g3 -gdwarf-2 -fverbose-asm -Iapp/test -Ibertos/cpu/arm
29 armtest_LDFLAGS = -nostartfiles -T bertos/cpu/arm/scripts/at91sam7_256_rom.ld -Wl,--no-warn-mismatch
31 armtest_CPU = arm7tdmi
34 ifeq ($(armtest_DEBUG),1)
35 armtest_CFLAGS += -D_DEBUG