aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 3764fe45cc559c8198645d1a9737b99838a98b70 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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 *.o *.elf *.hex