]> git.cryptolib.org Git - arm-crypto-lib.git/blob - arm-makefile.inc
AES makestub added
[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 TESTBIN_DIR    = test_bin/
10 TESTSRC_DIR    = test_src/
11 ERASECMD       =
12 TESTPORT       = /dev/ttyUSB1
13 TESTPORTBAUDR  = 115200
14 TESTLOG_DIR    = testlog/#
15 TESTPREFIX     = nessie-
16 SPEEDTOOL      = host/get_performance.rb
17 SPEEDLOG_DIR   = speed_log/
18 SPEEDPREFIX    =
19 SPEEDCMD       = performance
20 SIZE_DIR       = size_log/#
21 LIST_DIR       = listings/#
22 STAT_DIR       = stats/#
23 AUTOASM_DIR    = autoasm/#
24 AUTOASM_OPT    = -S
25 CC             = arm-elf-gcc
26 CSTD           = gnu99
27
28 override CFLAGS_A       = -fomit-frame-pointer  \
29                       -mthumb -ffunction-sections -fdata-sections -MMD \
30                       -MF$(DEP_DIR)$(patsubst %.o,%.d,$(notdir $(1)))  \
31                       -I. -Itest_src -g -pedantic -std=$(CSTD)         \
32                       -Wall  $(OPTIMIZE) -Wstrict-prototypes           \
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                       -I. -Itest_src -g -pedantic -std=$(CSTD)         \
38                       -Wall   $(OPTIMIZE) -Wstrict-prototypes          \
39                       -mcpu=$(MCU_TARGET) -Wa,-mthumb $(DEFS)  
40
41 override LDFLAGS       = -g -T lm3s9b90.ld -Wl,--gc-sections    \
42                          -Wl,--entry=reset_isr -lc -lgcc        \
43                           -Wl,-Map,# no space at the end
44 override ASFLAGS           = -mthumb -mcpu=$(MCU_TARGET) -Wa,--g -Wa,-mthumb
45
46 SIZESTAT_FILE = sizestats.txt
47
48 OBJCOPY         = arm-elf-objcopy
49 OBJDUMP         = arm-elf-objdump
50 SIZE            = arm-elf-size
51 READELF         = readelf
52 RUBY            = ruby
53 GET_TEST        = host/get_test.rb
54 MAKE            = make
55 MAKE2GRAPH      = ~/bin/make2graph.rb
56 TWOPI           = twopi