From: Stephan Baerwolf Date: Sat, 10 Nov 2012 08:26:31 +0000 (+0100) Subject: remove "hexfiles"-residuals in firmware/Makefile X-Git-Tag: v0.85~5 X-Git-Url: http://git.linex4red.de/pub/USBaspLoader.git/commitdiff_plain/e818fbb5f39d790ab62316ab5800c9c9c0b46ac3 remove "hexfiles"-residuals in firmware/Makefile Signed-off-by: Stephan Baerwolf --- diff --git a/firmware/Makefile b/firmware/Makefile index 9afd680..75eeacf 100644 --- a/firmware/Makefile +++ b/firmware/Makefile @@ -28,9 +28,6 @@ OBJECTS = usbdrv/usbdrvasm.o usbdrv/oddebug.o main.o # symbolic targets: all: main.hex -install: main.hex - cp -Rvp main.hex ./hexfiles/usbasploader.hex - .c.o: $(CC) $(CFLAGS) -c $< -o $@ @@ -79,23 +76,3 @@ disasm: main.bin cpp: $(CC) $(CFLAGS) -E main.c - -# Special rules for generating hex files for various devices and clock speeds -ALLHEXFILES = hexfiles/mega8_12mhz.hex hexfiles/mega8_15mhz.hex hexfiles/mega8_16mhz.hex \ - hexfiles/mega88_12mhz.hex hexfiles/mega88_15mhz.hex hexfiles/mega88_16mhz.hex hexfiles/mega88_20mhz.hex\ - hexfiles/mega168_12mhz.hex hexfiles/mega168_15mhz.hex hexfiles/mega168_16mhz.hex hexfiles/mega168_20mhz.hex\ - hexfiles/mega328p_12mhz.hex hexfiles/mega328p_15mhz.hex hexfiles/mega328p_16mhz.hex hexfiles/mega328p_20mhz.hex - -allhexfiles: $(ALLHEXFILES) - $(MAKE) clean - $(SIZ) hexfiles/*.hex - -$(ALLHEXFILES): - @[ -d hexfiles ] || mkdir hexfiles - @device=`echo $@ | sed -e 's|.*/mega||g' -e 's|_.*||g'`; \ - clock=`echo $@ | sed -e 's|.*_||g' -e 's|mhz.*||g'`; \ - addr=`echo $$device | sed -e 's/\([0-9]\)8/\1/g' | awk '{printf("%x", ($$1 - 2) * 1024)}'`; \ - echo "### Make with F_CPU=$${clock}000000 DEVICE=atmega$$device BOOTLOADER_ADDRESS=$$addr"; \ - $(MAKE) clean; \ - $(MAKE) main.hex F_CPU=$${clock}000000 DEVICE=atmega$$device BOOTLOADER_ADDRESS=$$addr DEFINES=-DUSE_AUTOCONFIG=1 - mv main.hex $@ diff --git a/firmware/hexfiles/.keep b/firmware/hexfiles/.keep deleted file mode 100644 index e69de29..0000000