From 0189b7cfe970b88aeb1a4fb2aa328eeee42079a8 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 5 Oct 2013 00:16:44 +0200 Subject: move READ ROM code to separate directory --- Makefile | 45 --------------------------------------------- 1 file changed, 45 deletions(-) delete mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile deleted file mode 100644 index 0b9e15c..0000000 --- a/Makefile +++ /dev/null @@ -1,45 +0,0 @@ -MCU ?= attiny2313 -AVRDUDE_PROGRAMMER ?= usbasp - -AVRCC ?= avr-gcc -AVRFLASH ?= avrdude -AVRNM ?= avr-nm -AVROBJCOPY ?= avr-objcopy -AVROBJDUMP ?= avr-objdump - -CFLAGS += -mmcu=attiny2313 -DF_CPU=20000000UL -#CFLAGS += -gdwarf-2 -fverbose-asm -save-temps -CFLAGS += -I. -std=gnu99 -O2 -Wall -Wextra -pedantic -CFLAGS += -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -CFLAGS += -fwhole-program -flto -mstrict-X - -AVRFLAGS += -U lfuse:w:0xe4:m -U hfuse:w:0xdf:m -U efuse:w:0xff:m -AVRFLAGS += -U flash:w:main.hex -# AVRFLAGS += -U eeprom:w:main.eep - -%.hex: %.elf - ${AVROBJCOPY} -O ihex -R .eeprom $< $@ - -%.eep: %.elf - ${AVROBJCOPY} -j .eeprom --set-section-flags=.eeprom="alloc,load" \ - --change-section-lma .eeprom=0 -O ihex $< $@ - -main.elf: main.c - ${AVRCC} ${CFLAGS} -o $@ ${@:.elf=.c} -Wl,-Map=main.map,--cref - avr-size -d $@ - -program: main.hex main.eep - ${AVRFLASH} -p ${MCU} -c ${AVRDUDE_PROGRAMMER} ${AVRFLAGS} - -secsize: main.elf - ${AVROBJDUMP} -hw -j.text -j.bss -j.data main.elf - -funsize: main.elf - ${AVRNM} --print-size --size-sort main.elf - -.PHONY: program secsize funsize - -# Listing of phony targets. -.PHONY : all begin finish end sizebefore sizeafter gccversion \ -build elf hex eep lss sym coff extcoff \ -clean clean_list program debug gdb-config -- cgit v1.2.3