]> git.cryptolib.org Git - arm-crypto-lib.git/blob - arm-makefile.inc
including even/odd-trick for BMW
[arm-crypto-lib.git] / arm-makefile.inc
1
2 MCU_TARGET     = cortex-m3  
3 OPTIMIZE       = -O2
4 DEFS           = -D$(call uc, $(subst -,_,$(MCU_TARGET)))
5 FLASHCMD       = arm-elf-gdb -x gdb-flash  #
6 DEP_DIR        = deps/
7 TEST_DIR       = test/
8 BIN_DIR        = bin/
9 TESTSRC_DIR    = test_src/
10 ERASECMD       =
11 TESTPORT       = /dev/ttyUSB1
12 TESTPORTBAUDR  = 115200
13 TESTLOG_DIR    = testlog/#
14 TESTPREFIX     = nessie-
15 SPEEDTOOL      = host/get_performance.rb
16 SPEEDLOG_DIR   = speed_log/
17 SPEEDPREFIX    =
18 SPEEDCMD       = performance
19 SIZE_DIR       = size_log/#
20 LIST_DIR       = listings/#
21 STAT_DIR       = stats/#
22 AUTOASM_DIR    = autoasm/#
23 AUTOASM_OPT    = -S
24 CC             = arm-elf-gcc
25 CSTD           = gnu99
26
27 override CFLAGS_A       = -fomit-frame-pointer  \
28                       -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) -Wa,-mthumb $(DEFS) 
33 override CFLAGS         = -fomit-frame-pointer   \
34                       -mthumb -ffunction-sections -fdata-sections -MMD \
35                       -MF$(DEP_DIR)$(patsubst %.o,%.d,$(notdir $@))    \
36                       -I. -Itest_src -g -pedantic -std=$(CSTD)         \
37                       -Wall   $(OPTIMIZE) -Wstrict-prototypes          \
38                       -mcpu=$(MCU_TARGET) -Wa,-mthumb $(DEFS)  
39
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
44
45 SIZESTAT_FILE = sizestats.txt
46
47 OBJCOPY         = arm-elf-objcopy
48 OBJDUMP         = arm-elf-objdump
49 SIZE            = arm-elf-size
50 READELF         = readelf
51 RUBY            = ruby
52 GET_TEST        = host/get_test.rb
53 MAKE            = make
54 MAKE2GRAPH      = ~/bin/make2graph.rb
55 TWOPI           = twopi