1 TOOLCHAIN = arm-none-eabi-#
5 WARNING = -pedantic -Wall -Wstrict-prototypes -Werror
6 DEFS = -D$(call uc, $(subst -,_,$(MCU_TARGET)))
7 FLASHCMD = $(OPENOCD) -f openocd.cfg \
10 -c "flash write_image erase $(1) 0 bin" \
16 TESTSRC_DIR = test_src/
18 TESTPORT = /dev/ttyUSB1
19 TESTPORTBAUDR = 115200
20 TESTLOG_DIR = testlog/#
22 SPEEDTOOL = host/get_performance.rb
23 SPEEDLOG_DIR = speed_log/
25 SPEEDCMD = performance
29 AUTOASM_DIR = autoasm/#
34 override CFLAGS_A = -fomit-frame-pointer \
35 -mthumb -ffunction-sections -fdata-sections -MMD \
36 -MF$(DEP_DIR)$(patsubst %.o,%.d,$(notdir $(1))) \
37 $(DEBUG) $(WARNING) -std=$(CSTD) $(OPTIMIZE) \
38 -mcpu=$(MCU_TARGET) $(DEFS)
39 override CFLAGS = -fomit-frame-pointer \
40 -mthumb -ffunction-sections -fdata-sections -MMD \
41 -MF$(DEP_DIR)$(patsubst %.o,%.d,$(notdir $@)) \
42 $(DEBUG) $(WARNING) -std=$(CSTD) $(OPTIMIZE) \
43 -mcpu=$(MCU_TARGET) $(DEFS)
45 override LDFLAGS = -g -T lm3s9b90.ld -Wl,--gc-sections \
46 -Wl,--entry=reset_isr -lc -lgcc \
47 -Wl,-Map,# no space at the end
48 override ASFLAGS = -mcpu=$(MCU_TARGET)
50 SIZESTAT_FILE = sizestats.txt
52 OBJCOPY = $(TOOLCHAIN)objcopy
53 OBJDUMP = $(TOOLCHAIN)objdump
54 SIZE = $(TOOLCHAIN)size
58 GET_TEST = host/get_test.rb
60 MAKE2GRAPH = ~/bin/make2graph.rb