projects
/
pub
/
USBaspLoader.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
extend "spminterface.h" for support of ATmega128
[pub/USBaspLoader.git]
/
firmware
/
Makefile
diff --git
a/firmware/Makefile
b/firmware/Makefile
index
fb1db72
..
9afd680
100644
(file)
--- a/
firmware/Makefile
+++ b/
firmware/Makefile
@@
-60,22
+60,22
@@
read_fuses:
$(UISP) --rd_fuses
deepclean: clean
$(UISP) --rd_fuses
deepclean: clean
-
rm -f
*~
+
$(RM)
*~
clean:
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
# 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
disasm: main.bin
-
avr-objdump
-d main.bin
+
$(OBD)
-d main.bin
cpp:
$(CC) $(CFLAGS) -E main.c
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
allhexfiles: $(ALLHEXFILES)
$(MAKE) clean
-
avr-size
hexfiles/*.hex
+
$(SIZ)
hexfiles/*.hex
$(ALLHEXFILES):
@[ -d hexfiles ] || mkdir hexfiles
$(ALLHEXFILES):
@[ -d hexfiles ] || mkdir hexfiles