]> mj.ucw.cz Git - misc.git/blob - sphinx/Makefile
Sphinx Secunda: zpětná vazba o otevřených dveřích, LEDka do chodby
[misc.git] / sphinx / Makefile
1 all: sphinx.flash
2
3 GCF=-Os -mmcu=attiny13 -std=gnu99 -Wall -W -Wno-parentheses
4
5 %.flash: %.hex
6         avrdude -p t13 -c usbtiny -v -U flash:w:$<:i
7
8 %.hex: %.exe
9         avr-objcopy -j .text -j .data -O ihex $< $@
10
11 %.exe: %.c
12         avr-gcc $< -o $@ $(GCF)
13
14 %.s: %.c
15         avr-gcc $< -o $@ $(GCF) -S
16
17 clean:
18         rm -f *~ *.o *.s *.exe *.hex
19
20 .SECONDARY:
21 .PHONY: all clean