blob: 0bed033109e410f7718d2e6d1678a20eadc961e9 (
plain) (
tree)
|
|
CC = avr-gcc
CFLAGS = -std=gnu99 -Wpedantic -Wall -Werror -mmcu=attiny828 -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
|