aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: d51eefef24a98c8d53a7084ed1f0e776f0108df1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
MCU = atmega88

all: sanduhr.hex

sanduhr.elf: main.c i2c.c i2c.h uart.c uart.h
	avr-gcc -std=gnu99 -mmcu=$(MCU) -Os -o $@ $^

sanduhr.hex: sanduhr.elf
	avr-objcopy -O ihex -R .eeprom $< $@

program: sanduhr.hex
	avrdude -p m88 -c avrispmkII -U flash:w:sanduhr.hex  -v -P usb