4 OPTIMIZE = -Os -fomit-frame-pointer
6 WARNING = -pedantic -Wall -Wstrict-prototypes -Werror
7 DEFS = -D$(call uc, $(subst -,_,$(MCU_TARGET)))
8 FLASHCMD = $(OPENOCD) -f openocd.cfg \
11 -c "flash write_image erase $(1) 0 bin" \
17 TESTSRC_DIR = test_src/#
19 TESTPORT = /dev/ttyUSB2
20 TESTPORTBAUDR = 115200
21 TESTLOG_DIR = testlog/#
23 SPEEDTOOL = host/get_performance.rb
24 SPEEDLOG_DIR = speed_log/#
26 SPEEDCMD = performance
30 AUTOASM_DIR = autoasm/#
32 LIB_NAME = libcrypto.a
37 COMMON_FLAGS = -ffunction-sections -fdata-sections \
38 $(DEBUG) $(WARNING) -std=$(CSTD) $(OPTIMIZE) \
39 -mcpu=$(MCU_TARGET) $(MCU_OPTS) $(DEFS) -MMD
41 override CFLAGS_A = $(COMMON_FLAGS) \
42 -MF$(DEP_DIR)$(patsubst %.o,%.d,$(notdir $(1)))
43 override CFLAGS = $(COMMON_FLAGS) \
44 -MF$(DEP_DIR)$(patsubst %.o,%.d,$(notdir $@))
46 override LDFLAGS = -g -T lm3s9b90.ld -Wl,--gc-sections \
47 -Wl,--entry=reset_isr \
48 -Wl,-Map,# no space at the end
50 override ASFLAGS = -mcpu=$(MCU_TARGET)
52 SIZESTAT_FILE = sizestats.txt
55 OBJCOPY = $(TOOLCHAIN)objcopy
56 OBJDUMP = $(TOOLCHAIN)objdump
57 SIZE = $(TOOLCHAIN)size
66 GET_TEST = host/get_test.rb
68 MAKE2GRAPH = ~/bin/make2graph.rb