hw-rollerderby-scoreboard/Makefile

28 lines
398 B
Makefile
Raw Normal View History

2013-03-27 21:50:31 -06:00
CC = avr-gcc
CFLAGS += -mmcu=atmega328p
CFLAGS += -DF_CPU=16000000UL
2013-03-07 23:55:05 -07:00
CFLAGS += -Os
2013-03-27 21:50:31 -06:00
CFLAGS += -w
2013-03-07 23:55:05 -07:00
2013-03-27 21:50:31 -06:00
AVDFLAGS += -p m328p
AVDFLAGS += -c arduino
AVDFLAGS += -b 115200
AVDFLAGS += -P /dev/ttyACM0
upload: .upload
.upload: blink.hex
avrdude $(AVDFLAGS) -U flash:w:$<
touch $@
blink.hex: blink
avr-objcopy -O ihex -R .eeprom -R .fuse -R .lock -R .signature $< $@
clean:
rm -f blink.hex blink