]> git.cryptolib.org Git - avr-crypto-lib.git/blob - avr-makefile.inc
small update (integrating NOEKEON_OMAC and SEED_C)
[avr-crypto-lib.git] / avr-makefile.inc
1
2 MCU_TARGET     = atmega644
3 OPTIMIZE       = -Os
4 DEFS           = -D$(call uc, $(MCU_TARGET))
5 FLASHCMD       = avrdude -p $(MCU_TARGET) -P /dev/ttyUSB0 -c avr911 -U flash:w:# no space at the end
6 #FLASHCMD       = avrdude -p $(MCU_TARGET) -c usbasp -U flash:w:# no space at the end
7 DEP_DIR        = deps/
8 BIN_DIR        = bin/
9 TESTBIN_DIR    = test_bin/
10 TESTSRC_DIR    = test_src/
11 #uisp -dprog=bsd -dlpt=/dev/parport1 --upload if=$(PRG).hex
12 ERASECMD       = 
13 TESTPORT       = /dev/ttyUSB1
14 TESTPORTBAUDR  = 38400
15 TESTLOG_DIR    = testlog/
16 TESTPREFIX     = nessie-
17 LIST_DIR       = listings/
18 STAT_DIR       = stats/
19 CC             = avr-gcc
20
21 override CFLAGS = -MMD -MF$(DEP_DIR)$(patsubst %.c,%.d,$(patsubst $(TESTSRC_DIR)%,%,$<)) -I. -gdwarf-2 -pedantic -std=c99 -Wall -Wstrict-prototypes  $(OPTIMIZE) -mmcu=$(MCU_TARGET) $(DEFS)
22
23 override LDFLAGS       = -gdwarf-2 -Wl,-Map,
24 override ASFLAGS           = -mmcu=$(MCU_TARGET) -Wa,--gdwarf-2
25
26 SIZESTAT_FILE = sizestats.txt
27
28 OBJCOPY = avr-objcopy
29 OBJDUMP = avr-objdump
30 SIZE = avr-size
31 RUBY = ruby
32 GET_TEST = host/get_test.rb
33 MAKE = make
34 MAKE2GRAPH = ~/bin/make2graph.rb
35 TWOPI = twopi