2 # $Id: lm3s1968.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 lm3s1968 application.
8 # Author: Manuele Fanelli <qwert@develer.com>
12 # Set to 1 for debug builds
15 # Our target application
19 examples/lm3s1968/lm3s1968.c \
20 bertos/cpu/cortex-m3/drv/irq.c \
21 bertos/cpu/cortex-m3/drv/timer.c \
22 bertos/cpu/cortex-m3/startup_lm3s.c
24 # This is an hosted application
25 lm3s1968_PREFIX = arm-none-eabi-
27 lm3s1968_CPPAFLAGS = -O0 -g -gdwarf-2 -g -gen-debug -mthumb -fno-strict-aliasing -fwrapv
28 lm3s1968_CPPFLAGS = -O0 -D'ARCH=0' -D__ARM_LM3S1968__ -D'CPU_FREQ=(48023000L)' -g3 -gdwarf-2 -fverbose-asm -mthumb -Iexamples/lm3s1968 -Ibertos/cpu/cortex-m3 -fno-strict-aliasing -fwrapv
29 lm3s1968_LDFLAGS = -nostartfiles -T bertos/cpu/cortex-m3/scripts/lm3s1968_rom.ld -Wl,--no-warn-mismatch -fno-strict-aliasing -fwrapv
31 lm3s1968_CPU = cortex-m3
33 lm3s1968_PROGRAMMER_CPU = lm3s1968
34 lm3s1968_PROGRAMMER_TYPE = lm3s1968
35 lm3s1968_FLASH_SCRIPT = bertos/prg_scripts/arm/flash-cortex.sh
36 lm3s1968_STOPFLASH_SCRIPT = bertos/prg_scripts/arm/stopopenocd.sh
37 lm3s1968_DEBUG_SCRIPT = bertos/prg_scripts/arm/debug.sh
38 lm3s1968_STOPDEBUG_SCRIPT = bertos/prg_scripts/arm/stopopenocd.sh
41 ifeq ($(demo_DEBUG),0)
42 demo_CFLAGS += -Os -fomit-frame-pointer
43 demo_CXXFLAGS += -Os -fomit-frame-pointer