2 # Copyright 2010 Develer S.r.l. (http://www.develer.com/)
5 # Author: Andrea Righi <arighi@develer.com>
8 # Set to 1 for debug builds
11 include bertos/fonts/fonts.mk
13 # Our target application
17 examples/develgps/develgps.c \
18 examples/develgps/logo.c \
19 examples/develgps/compass.c \
24 bertos/gfx/text_format.c \
27 bertos/fonts/luBS14.c \
29 bertos/mware/formatwr.c \
31 bertos/mware/sprintf.c \
32 bertos/mware/event.c \
33 bertos/struct/heap.c \
37 bertos/drv/lcd_rit128x96.c \
39 bertos/kern/monitor.c \
41 bertos/kern/signal.c \
43 bertos/net/nmeap/src/nmeap01.c \
44 bertos/cpu/cortex-m3/drv/flash_lm3s.c \
45 bertos/cpu/cortex-m3/drv/gpio_lm3s.c \
46 bertos/cpu/cortex-m3/drv/clock_lm3s.c \
47 bertos/cpu/cortex-m3/drv/ser_lm3s.c \
48 bertos/cpu/cortex-m3/drv/kdebug_lm3s.c \
49 bertos/cpu/cortex-m3/drv/ssi_lm3s.c \
50 bertos/cpu/cortex-m3/drv/timer_cm3.c \
51 bertos/cpu/cortex-m3/drv/irq_cm3.c \
52 bertos/cpu/cortex-m3/hw/switch_ctx_cm3.c \
53 bertos/cpu/cortex-m3/hw/init_cm3.c
56 bertos/cpu/cortex-m3/hw/vectors_cm3.S \
57 bertos/cpu/cortex-m3/hw/crt_cm3.S \
60 # This is an hosted application
61 develgps_PREFIX = arm-none-eabi-
63 develgps_CPPAFLAGS = -mthumb -mno-thumb-interwork
64 develgps_CPPFLAGS = -D'ARCH=0' -D__ARM_LM3S1968__ -D'CPU_FREQ=(50000000L)' -D'WIZ_AUTOGEN' -mthumb -mno-thumb-interwork -Iexamples/develgps -Ibertos/cpu/cortex-m3 -fno-strict-aliasing -fwrapv
65 develgps_LDFLAGS = -nostartfiles -T bertos/cpu/cortex-m3/scripts/lm3s1968_rom.ld -Wl,--no-warn-mismatch -mthumb -mno-thumb-interwork
67 develgps_CPU = cortex-m3
69 develgps_PROGRAMMER_CPU = lm3s
70 develgps_PROGRAMMER_TYPE = luminary
71 develgps_FLASH_SCRIPT = bertos/prg_scripts/arm/flash-lm3s.sh
72 develgps_STOPFLASH_SCRIPT = bertos/prg_scripts/arm/stopopenocd.sh
73 develgps_DEBUG_SCRIPT = bertos/prg_scripts/arm/debug.sh
74 develgps_STOPDEBUG_SCRIPT = bertos/prg_scripts/arm/stopopenocd.sh
76 ifeq ($(develgps_DEBUG),0)
78 develgps_CFLAGS += -O2 -fomit-frame-pointer
79 develgps_CXXFLAGS += -O2 -fomit-frame-pointer
82 develgps_CPPAFLAGS += -g -gdwarf-2
83 develgps_CPPFLAGS += -O0 -g3 -gdwarf-2 -fverbose-asm