]> git.cryptolib.org Git - avr-crypto-lib.git/blob - avr-makefile.inc
+bad optimisation (doesn't improve anything)
[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
8 #uisp -dprog=bsd -dlpt=/dev/parport1 --upload if=$(PRG).hex
9 ERASECMD       = 
10
11 CC           = avr-gcc
12
13 override CFLAGS = -pedantic -std=c99 -Wall -Wstrict-prototypes  $(OPTIMIZE) -mmcu=$(MCU_TARGET) $(DEFS)
14
15 override LDFLAGS       = -Wl,-Map,
16 override ASFLAGS           = -mmcu=$(MCU_TARGET)
17
18 SIZESTAT_FILE = sizestats.txt
19
20 OBJCOPY = avr-objcopy
21 OBJDUMP = avr-objdump
22 SIZE = avr-size
23 RUBY = ruby