5 WARNING = -pedantic -Wall -Wstrict-prototypes
6 DEFS = -D$(call uc, $(subst -,_,$(MCU_TARGET)))
7 FLASHCMD = $(TOOLCHAIN)gdb -x gdb-flash #
11 TESTSRC_DIR = test_src/
13 TESTPORT = /dev/ttyUSB1
14 TESTPORTBAUDR = 115200
15 TESTLOG_DIR = testlog/#
17 SPEEDTOOL = host/get_performance.rb
18 SPEEDLOG_DIR = speed_log/
20 SPEEDCMD = performance
24 AUTOASM_DIR = autoasm/#
29 override CFLAGS_A = -fomit-frame-pointer \
30 -mthumb -ffunction-sections -fdata-sections -MMD \
31 -MF$(DEP_DIR)$(patsubst %.o,%.d,$(notdir $(1))) \
32 $(DEBUG) $(WARNING) -std=$(CSTD) $(OPTIMIZE) \
33 -mcpu=$(MCU_TARGET) -Wa,-mthumb $(DEFS)
34 override CFLAGS = -fomit-frame-pointer \
35 -mthumb -ffunction-sections -fdata-sections -MMD \
36 -MF$(DEP_DIR)$(patsubst %.o,%.d,$(notdir $@)) \
37 $(DEBUG) $(WARNING) -std=$(CSTD) $(OPTIMIZE) \
38 -mcpu=$(MCU_TARGET) -Wa,-mthumb $(DEFS)
40 override LDFLAGS = -g -T lm3s9b90.ld -Wl,--gc-sections \
41 -Wl,--entry=reset_isr -lc -lgcc \
42 -Wl,-Map,# no space at the end
43 override ASFLAGS = -mthumb -mcpu=$(MCU_TARGET) -Wa,--g -Wa,-mthumb
45 SIZESTAT_FILE = sizestats.txt
47 OBJCOPY = $(TOOLCHAIN)objcopy
48 OBJDUMP = $(TOOLCHAIN)objdump
49 SIZE = $(TOOLCHAIN)size
52 GET_TEST = host/get_test.rb
54 MAKE2GRAPH = ~/bin/make2graph.rb