]> git.cryptolib.org Git - avr-crypto-lib.git/blob - Makefile_m644_conf.inc
switching uart header file
[avr-crypto-lib.git] / Makefile_m644_conf.inc
1
2 MCU_TARGET     = atmega644
3 F_CPU          = 20000000
4 OPTIMIZE       = -Os # -Os
5 EXTRALINK      = 
6 DEFS           = -D$(call uc, $(MCU_TARGET)) -DF_CPU=$(F_CPU)
7 BOARD_NAME     = pollin_eval_m644
8
9 override CFLAGS_A       = -MMD -MF$(DEP_DIR)$(patsubst %.o,%.d,$(notdir $(1))) $(DEBUG) $(WARNING) -std=$(CSTD) $(OPTIMIZE) -mmcu=$(MCU_TARGET) $(DEFS)
10 override CFLAGS         = -MMD -MF$(DEP_DIR)$(patsubst %.o,%.d,$(notdir $@))   $(DEBUG) $(WARNING) -std=$(CSTD) $(OPTIMIZE) -mmcu=$(MCU_TARGET) $(DEFS)
11
12 override LDFLAGS       = -gdwarf-2 -Wl,-Map,
13 override ASFLAGS           = -mmcu=$(MCU_TARGET) -Wa,--gdwarf-2
14
15 #PROGRAMMER     = avr911
16 #PROG_PORT      = /dev/ttyUSB1
17 PROGRAMMER     = avrispmkII
18 PROG_PORT      = usb
19 DEFS           = -D$(call uc, $(MCU_TARGET)) -DF_CPU=$(F_CPU)
20 FLASHCMD       = avrdude -p $(MCU_TARGET) -P $(PROG_PORT) -c $(PROGRAMMER) -U flash:w:# no space at the end
21 #FLASHCMD       = avrdude -p $(MCU_TARGET) -c usbasp -U flash:w:# no space at the end
22 RESETCMD       = avrdude -p $(MCU_TARGET) -P $(PROG_PORT) -c $(PROGRAMMER)