]> git.cryptolib.org Git - avr-crypto-lib.git/blob - avr-makefile.inc
nessie for the rest (skipjack seems broken, shabea req. more testing)
[avr-crypto-lib.git] / avr-makefile.inc
1
2 OBJ = $(SERPENT_OBJ)
3 MCU_TARGET     = atmega644
4 OPTIMIZE       = -Os
5 DEFS           = -D$(call uc, $(MCU_TARGET))
6 FLASHCMD       = avrdude -p $(MCU_TARGET) -P /dev/ttyUSB0 -c avr911 -U flash:w:# no space at the end
7 DEP_DIR        = deps/
8 BIN_DIR        = bin/
9 TESTBIN_DIR    = test_bin/
10 #uisp -dprog=bsd -dlpt=/dev/parport1 --upload if=$(PRG).hex
11 ERASECMD       = 
12
13 CC           = avr-gcc
14
15 override CFLAGS = -MMD -MF$(DEP_DIR)$(patsubst %.c,%.d,$<) -pedantic -std=c99 -Wall -Wstrict-prototypes  $(OPTIMIZE) -mmcu=$(MCU_TARGET) $(DEFS)
16
17 override LDFLAGS       = -Wl,-Map,
18 override ASFLAGS           = -mmcu=$(MCU_TARGET)
19
20 SIZESTAT_FILE = sizestats.txt
21
22 OBJCOPY = avr-objcopy
23 OBJDUMP = avr-objdump
24 SIZE = avr-size
25 RUBY = ruby