]> git.cryptolib.org Git - avr-crypto-lib.git/blob - avr-makefile.inc
integrated automatic testing scrips (1/2)
[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 TESTPORT       = /dev/ttyUSB1
13 TESTPORTBAUDR  = 9600
14 TESTLOG_DIR    = testlog/
15 TESTPREFIX     = nessie-
16 CC           = avr-gcc
17
18 override CFLAGS = -MMD -MF$(DEP_DIR)$(patsubst %.c,%.d,$<) -pedantic -std=c99 -Wall -Wstrict-prototypes  $(OPTIMIZE) -mmcu=$(MCU_TARGET) $(DEFS)
19
20 override LDFLAGS       = -Wl,-Map,
21 override ASFLAGS           = -mmcu=$(MCU_TARGET)
22
23 SIZESTAT_FILE = sizestats.txt
24
25 OBJCOPY = avr-objcopy
26 OBJDUMP = avr-objdump
27 SIZE = avr-size
28 RUBY = ruby