]> git.cryptolib.org Git - avr-crypto-lib.git/blob - avr-makefile.inc
clean up
[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 TESTSRC_DIR    = test_src/
12 #uisp -dprog=bsd -dlpt=/dev/parport1 --upload if=$(PRG).hex
13 ERASECMD       =
14 TESTPORT       = /dev/ttyUSB1
15 TESTPORTBAUDR  = 38400
16 TESTLOG_DIR    = testlog/#
17 TESTPREFIX     = nessie-
18 SPEEDTOOL      = host/get_performance.rb
19 SPEEDLOG_DIR   = speed_log/
20 SPEEDPREFIX    =
21 SPEEDCMD       = performance
22 SIZE_DIR       = size_log/#
23 LIST_DIR       = listings/#
24 STAT_DIR       = stats/#
25 AUTOASM_DIR    = autoasm/#
26 AUTOASM_OPT    = -S
27 CC             = avr-gcc
28 CSTD           = c99
29
30 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)
31 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)
32
33 override LDFLAGS       = -gdwarf-2 -Wl,-Map,
34 override ASFLAGS           = -mmcu=$(MCU_TARGET) -Wa,--gdwarf-2
35
36 SIZESTAT_FILE = sizestats.txt
37
38 OBJCOPY         = avr-objcopy
39 OBJDUMP         = avr-objdump
40 SIZE            = avr-size
41 READELF         = readelf
42 RUBY            = ruby
43 GET_TEST        = host/get_test.rb
44 MAKE            = make
45 MAKE2GRAPH      = ~/bin/make2graph.rb
46 TWOPI           = twopi