Skript file: /~heha/basteln/Haus/Licht/vf_rel/vf_rel.zip/Makefile

P=vf_rel
D=attiny24

all: $P.elf
disasm: $P.lst
zip: $P.zip


$P.elf: $P.c Makefile
	avr-gcc -Wall -Wno-parentheses -Os -o $@ $< -mmcu=$D
	avr-size -C --mcu=$D $@

$P.lst: $P.elf
	avr-objdump -d $< > $@
	
$P.zip: $P.elf $P.c Makefile
	avr-strip -s $<
	zip $@ $^

flash: $P.elf
	avrpp $<

program: $P.elf
	avrpp -ff $<
Detected encoding: ASCII (7 bit)2