X-Git-Url: http://git.linex4red.de/pub/USBaspLoader.git/blobdiff_plain/a93ee833f02abfd9cbd22cc14be1cbe630f9103e..3bf774b6f1f9db533349ff2eebffccfef392f858:/firmware/Makefile diff --git a/firmware/Makefile b/firmware/Makefile index 094fc2f..04bec88 100644 --- a/firmware/Makefile +++ b/firmware/Makefile @@ -17,8 +17,6 @@ include ../Makefile.inc -# Options: -DEFINES = #-DDEBUG_LEVEL=2 # Remove the -fno-* options when you use gcc 3, it does not understand them CFLAGS = -Wall -Os -fno-move-loop-invariants -fno-tree-scev-cprop -fno-inline-small-functions -I. -mmcu=$(DEVICE) -DBOOTLOADER_ADDRESS=$(BOOTLOADER_ADDRESS) -DF_CPU=$(F_CPU) $(DEFINES) LDFLAGS = -Wl,--relax,--gc-sections -Wl,--section-start=.text=$(BOOTLOADER_ADDRESS) @@ -42,16 +40,31 @@ all: main.hex $(CC) $(CFLAGS) -S $< -o $@ flash: all + $(ECHO) "." $(AVRDUDE) -U flash:w:main.hex:i + $(ECHO) "." + $(ECHO) "." readflash: + $(ECHO) "." $(AVRDUDE) -U flash:r:read.hex:i + $(ECHO) "." + $(ECHO) "." + fuse: + $(ECHO) "." $(AVRDUDE) $(FUSEOPT) + $(ECHO) "." + $(ECHO) "." + lock: + $(ECHO) "." $(AVRDUDE) $(LOCKOPT) + $(ECHO) "." + $(ECHO) "." + read_fuses: $(UISP) --rd_fuses