4 DEFS = -D$(call uc, $(subst -,_,$(MCU_TARGET)))
5 FLASHCMD = arm-elf-gdb -x gdb-flash #
9 TESTBIN_DIR = test_bin/
10 TESTSRC_DIR = test_src/
12 TESTPORT = /dev/ttyUSB1
13 TESTPORTBAUDR = 115200
14 TESTLOG_DIR = testlog/#
16 SPEEDTOOL = host/get_performance.rb
17 SPEEDLOG_DIR = speed_log/
19 SPEEDCMD = performance
23 AUTOASM_DIR = autoasm/#
28 override CFLAGS_A = -mthumb -ffunction-sections -fdata-sections -MMD \
29 -MF$(DEP_DIR)$(patsubst %.o,%.d,$(notdir $(1))) \
30 -I. -Itest_src -g -pedantic -std=$(CSTD) \
31 -Wall $(OPTIMIZE) -Wstrict-prototypes \
32 -mcpu=$(MCU_TARGET) $(DEFS)
33 override CFLAGS = -mthumb -ffunction-sections -fdata-sections -MMD \
34 -MF$(DEP_DIR)$(patsubst %.o,%.d,$(notdir $@)) \
35 -I. -Itest_src -g -pedantic -std=$(CSTD) \
36 -Wall $(OPTIMIZE) -Wstrict-prototypes \
37 -mcpu=$(MCU_TARGET) $(DEFS)
39 override LDFLAGS = -g -T lm3s9b90.ld -Wl,--gc-sections \
40 -Wl,--entry=reset_isr -lc -lgcc \
41 -Wl,-Map,# no space at the end
42 override ASFLAGS = -mthumb -mcpu=$(MCU_TARGET) -Wa,--g
44 SIZESTAT_FILE = sizestats.txt
46 OBJCOPY = arm-elf-objcopy
47 OBJDUMP = arm-elf-objdump
51 GET_TEST = host/get_test.rb
53 MAKE2GRAPH = ~/bin/make2graph.rb