diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -1,7 +1,7 @@ .PHONY: love flash love: sublab77.ihex -CFLAGS=-Wall -Wextra -pedantic -std=c99 -Os -DF_CPU=1000000 -mmcu=attiny26 +CFLAGS=-Wall -Wextra -pedantic -std=c99 -DF_CPU=1000000UL -Os -fshort-enums -fno-move-loop-invariants -fno-tree-loop-optimize -mmcu=attiny26 %.o: %.c avr-gcc $(CFLAGS) -c -o $@ $< @@ -16,4 +16,7 @@ sublab77.elf: clock.o dcf77.o lcd.o main.o timebase.o endif sublab77.ihex: sublab77.elf - objcopy -Oihex $^ $@ + avr-objcopy -Oihex $^ $@ + +clean: + rm *.o *.elf *.ihex |