lm3s1968: add debugging functionality on UART0.
[bertos.git] / examples / lm3s1968 / lm3s1968.mk
1 #
2 # $Id: lm3s1968.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 lm3s1968 application.
7 #
8 # Author: Manuele Fanelli <qwert@develer.com>
9 #
10 #
11
12 # Set to 1 for debug builds
13 lm3s1968_DEBUG = 1
14
15 # Our target application
16 TRG += lm3s1968
17
18 lm3s1968_CSRC = \
19         examples/lm3s1968/lm3s1968.c \
20         bertos/cpu/cortex-m3/drv/irq_lm3s.c \
21         bertos/cpu/cortex-m3/drv/timer_lm3s.c \
22         bertos/cpu/cortex-m3/drv/clock_lm3s.c \
23         bertos/cpu/cortex-m3/drv/kdebug_lm3s.c \
24         bertos/cpu/cortex-m3/hw/startup_lm3s.c
25
26 # This is an hosted application
27 lm3s1968_PREFIX = arm-none-eabi-
28
29 lm3s1968_CPPAFLAGS = -O0 -g -gdwarf-2 -g -gen-debug -mthumb -fno-strict-aliasing -fwrapv
30 lm3s1968_CPPFLAGS = -O0 -D'ARCH=0' -D__ARM_LM3S1968__ -D'CPU_FREQ=(50000000L)' -g3 -gdwarf-2 -fverbose-asm -mthumb  -Iexamples/lm3s1968 -Ibertos/cpu/cortex-m3 -fno-strict-aliasing -fwrapv
31 lm3s1968_LDFLAGS = -nostartfiles -T bertos/cpu/cortex-m3/scripts/lm3s1968_rom.ld -Wl,--no-warn-mismatch -fno-strict-aliasing -fwrapv
32
33 lm3s1968_CPU = cortex-m3
34
35 lm3s1968_PROGRAMMER_CPU = lm3s1968
36 lm3s1968_PROGRAMMER_TYPE = lm3s1968
37 lm3s1968_FLASH_SCRIPT = bertos/prg_scripts/arm/flash-cortex.sh
38 lm3s1968_STOPFLASH_SCRIPT = bertos/prg_scripts/arm/stopopenocd.sh
39 lm3s1968_DEBUG_SCRIPT = bertos/prg_scripts/arm/debug.sh
40 lm3s1968_STOPDEBUG_SCRIPT = bertos/prg_scripts/arm/stopopenocd.sh
41
42 # Debug stuff
43 ifeq ($(demo_DEBUG),0)
44         demo_CFLAGS += -Os -fomit-frame-pointer
45         demo_CXXFLAGS += -Os -fomit-frame-pointer
46 endif