]> git.cryptolib.org Git - avr-crypto-lib.git/blob - avr-makefile.inc
fixing some bugs of performance measurment
[avr-crypto-lib.git] / avr-makefile.inc
1
2 MCU_TARGET     = atmega644
3 OPTIMIZE       = -Os # -Os
4 PROGRAMMER     = avr911
5 DEFS           = -D$(call uc, $(MCU_TARGET))
6 FLASHCMD       = avrdude -p $(MCU_TARGET) -P /dev/ttyUSB0 -c $(PROGRAMMER) -U flash:w:# no space at the end
7 #FLASHCMD       = avrdude -p $(MCU_TARGET) -c usbasp -U flash:w:# no space at the end
8 DEP_DIR        = deps/
9 TEST_DIR       = test/
10 BIN_DIR        = bin/
11 TESTBIN_DIR    = test_bin/
12 TESTSRC_DIR    = test_src/
13 #uisp -dprog=bsd -dlpt=/dev/parport1 --upload if=$(PRG).hex
14 ERASECMD       =
15 TESTPORT       = /dev/ttyUSB1
16 TESTPORTBAUDR  = 38400
17 TESTLOG_DIR    = testlog/#
18 TESTPREFIX     = nessie-
19 SPEEDTOOL      = host/get_performance.rb
20 SPEEDLOG_DIR   = speed_log/
21 SPEEDPREFIX    =
22 SPEEDCMD       = performance
23 SIZE_DIR       = size_log/#
24 LIST_DIR       = listings/#
25 STAT_DIR       = stats/#
26 AUTOASM_DIR    = autoasm/#
27 AUTOASM_OPT    = -S
28 CC             = avr-gcc
29 CSTD           = c99
30
31 override CFLAGS_A       = -MMD -MF$(DEP_DIR)$(patsubst %.o,%.d,$(notdir $(1))) -I. -Itest_src -gdwarf-2 -pedantic -std=$(CSTD) -Wall -Wstrict-prototypes  $(OPTIMIZE) -mmcu=$(MCU_TARGET) $(DEFS)
32 override CFLAGS         = -MMD -MF$(DEP_DIR)$(patsubst %.o,%.d,$(notdir $@)) -I. -Itest_src -gdwarf-2 -pedantic -std=$(CSTD) -Wall -Wstrict-prototypes  $(OPTIMIZE) -mmcu=$(MCU_TARGET) $(DEFS)
33
34 override LDFLAGS       = -gdwarf-2 -Wl,-Map,
35 override ASFLAGS           = -mmcu=$(MCU_TARGET) -Wa,--gdwarf-2
36
37 SIZESTAT_FILE = sizestats.txt
38
39 OBJCOPY         = avr-objcopy
40 OBJDUMP         = avr-objdump
41 SIZE            = avr-size
42 READELF         = readelf
43 RUBY            = ruby
44 GET_TEST        = host/get_test.rb
45 MAKE            = make
46 MAKE2GRAPH      = ~/bin/make2graph.rb
47 TWOPI           = twopi