blob: ec919f8c2d2e04b4a162e18b34c16ddcded5961a (
plain) (
tree)
|
|
CC = avr-gcc
CFLAGS = -std=gnu99 -Wpedantic -Wall -Werror -mmcu=avr25 -D__AVR_ATtiny828__
OBJCOPY = avr-objcopy
all: tamper.hex
%.elf: %.c
$(CC) $(CFLAGS) -o $@ $^
%.hex: %.elf
$(OBJCOPY) -O ihex $< $@
clean:
rm -f *.o *.elf *.hex
|