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/mware/formatwr.c \
22 bertos/mware/sprintf.c \
23 bertos/mware/event.c \
24 bertos/struct/heap.c \
26 bertos/kern/monitor.c \
27 bertos/kern/proc_test.c \
30 bertos/kern/preempt.c \
31 bertos/kern/signal.c \
32 bertos/cpu/cortex-m3/drv/irq_lm3s.c \
33 bertos/cpu/cortex-m3/drv/timer_lm3s.c \
34 bertos/cpu/cortex-m3/drv/clock_lm3s.c \
35 bertos/cpu/cortex-m3/drv/kdebug_lm3s.c \
36 bertos/cpu/cortex-m3/hw/startup_lm3s.c
39 bertos/cpu/cortex-m3/hw/switch_ctx_cm3.S \
42 # This is an hosted application
43 lm3s1968_PREFIX = arm-none-eabi-
45 lm3s1968_CPPAFLAGS = -g -gdwarf-2 -mthumb -fno-strict-aliasing -fwrapv
46 lm3s1968_CPPFLAGS = -O0 -D'ARCH=0' -D__ARM_LM3S1968__ -D'CPU_FREQ=(50000000L)' -D'WIZ_AUTOGEN' -g3 -gdwarf-2 -fverbose-asm -mthumb -Iexamples/lm3s1968 -Ibertos/cpu/cortex-m3 -fno-strict-aliasing -fwrapv
47 lm3s1968_LDFLAGS = -nostartfiles -T bertos/cpu/cortex-m3/scripts/lm3s1968_rom.ld -Wl,--no-warn-mismatch -fno-strict-aliasing -fwrapv
49 lm3s1968_CPU = cortex-m3
51 lm3s1968_PROGRAMMER_CPU = lm3s1968
52 lm3s1968_PROGRAMMER_TYPE = lm3s1968
53 lm3s1968_FLASH_SCRIPT = bertos/prg_scripts/arm/flash-cortex.sh
54 lm3s1968_STOPFLASH_SCRIPT = bertos/prg_scripts/arm/stopopenocd.sh
55 lm3s1968_DEBUG_SCRIPT = bertos/prg_scripts/arm/debug.sh
56 lm3s1968_STOPDEBUG_SCRIPT = bertos/prg_scripts/arm/stopopenocd.sh
59 ifeq ($(demo_DEBUG),0)
60 demo_CFLAGS += -Os -fomit-frame-pointer
61 demo_CXXFLAGS += -Os -fomit-frame-pointer