summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorChristian Koch <christian_koch@gmx.de>2012-05-06 15:29:24 +0200
committerChristian Koch <christian_koch@gmx.de>2012-05-06 15:29:24 +0200
commitf7a48dc590f5e8bf2d6d9d92248734566c175cf2 (patch)
treeb8c5f2f5b60ec9e39a5f3dd80566533ad74e86ea /Makefile
parentf714cacefc9a04fbae7249cc4b707a27cedabc36 (diff)
added hardware documentation, minor software changesHEADmaster
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 38b4e72..aa38b02 100644
--- a/Makefile
+++ b/Makefile
@@ -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