Skript file: /~heha/ewa/PowerZ/PowerZu8.zip/makefile

PROJECT = PowerZ
DEVICE  = attiny25
F_CPU   = 16000000
COMPILE = avr-gcc.exe -Wall -Os  -DF_CPU=$(F_CPU) -mmcu=$(DEVICE)

all: PowerZ.hex PowerZ.lst

%.elf: PowerZ.cpp
	$(COMPILE) -o $@ $^

%.hex: $(PROJECT).elf
	avr-objcopy -j .text -j .data -j .fuse -O ihex $< $@
	@avr-size -C --mcu=$(DEVICE) $<

%.lst: $(PROJECT).elf
	avr-objdump -d $< > $@

fuse: $(PROJECT).hex
	avrpp -8 -ff $<

flash: $(PROJECT).hex
	avrpp -8 $<

Detected encoding: ASCII (7 bit)2