From 0a60a76afcf938c6885395fb16b6c168179921e5 Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Sun, 1 Apr 2012 00:22:16 +0200 Subject: adapted to ATtiny26 / sublab setup --- Makefile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..38b4e72 --- /dev/null +++ b/Makefile @@ -0,0 +1,19 @@ +.PHONY: love flash +love: sublab77.ihex + +CFLAGS=-Wall -Wextra -pedantic -std=c99 -Os -DF_CPU=1000000 -mmcu=attiny26 + +%.o: %.c + avr-gcc $(CFLAGS) -c -o $@ $< +ifdef WHOPR +sublab77.elf: main.c + avr-gcc $(CFLAGS) -DWHOPR -o $@ $^ + avr-size $@ +else +sublab77.elf: clock.o dcf77.o lcd.o main.o timebase.o + avr-gcc -Os -mmcu=attiny26 -o $@ $^ + avr-size $@ +endif + +sublab77.ihex: sublab77.elf + objcopy -Oihex $^ $@ -- cgit v1.2.1