X-Git-Url: http://git.linex4red.de/pub/USBaspLoader.git/blobdiff_plain/fa0b51823454caae26a476ec1e156a73377b4546..0ffede4c2c9c9986a88a32ca27f2a047f7f62cea:/firmware/Makefile diff --git a/firmware/Makefile b/firmware/Makefile index fb1db72..9afd680 100644 --- a/firmware/Makefile +++ b/firmware/Makefile @@ -60,22 +60,22 @@ read_fuses: $(UISP) --rd_fuses deepclean: clean - rm -f *~ + $(RM) *~ clean: - rm -f main.hex main.bin *.o usbdrv/*.o main.s usbdrv/oddebug.s usbdrv/usbdrv.s + $(RM) main.hex main.bin *.o usbdrv/*.o main.s usbdrv/oddebug.s usbdrv/usbdrv.s # file targets: main.bin: $(OBJECTS) $(CC) $(CFLAGS) -o main.bin $(OBJECTS) $(LDFLAGS) main.hex: main.bin - rm -f main.hex main.eep.hex - avr-objcopy -j .text -j .data -O ihex main.bin main.hex - avr-size main.bin + $(RM) main.hex main.eep.hex + $(OBC) -j .text -j .data -O ihex main.bin main.hex + $(SIZ) main.bin disasm: main.bin - avr-objdump -d main.bin + $(OBD) -d main.bin cpp: $(CC) $(CFLAGS) -E main.c @@ -88,7 +88,7 @@ ALLHEXFILES = hexfiles/mega8_12mhz.hex hexfiles/mega8_15mhz.hex hexfiles/mega8_1 allhexfiles: $(ALLHEXFILES) $(MAKE) clean - avr-size hexfiles/*.hex + $(SIZ) hexfiles/*.hex $(ALLHEXFILES): @[ -d hexfiles ] || mkdir hexfiles