extend "spminterface.h" to additional checks on "BOOTLOADER_ADDRESS" (atmega8)
[pub/USBaspLoader.git] / firmware / Makefile
index fb1db72..9afd680 100644 (file)
@@ -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