]> git.cryptolib.org Git - arm-crypto-lib.git/blob - arm-makefile.inc
some importannt files
[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       = -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)  
38
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
43
44 SIZESTAT_FILE = sizestats.txt
45
46 OBJCOPY         = arm-elf-objcopy
47 OBJDUMP         = arm-elf-objdump
48 SIZE            = arm-elf-size
49 READELF         = readelf
50 RUBY            = ruby
51 GET_TEST        = host/get_test.rb
52 MAKE            = make
53 MAKE2GRAPH      = ~/bin/make2graph.rb
54 TWOPI           = twopi