16 lines
233 B
Makefile
16 lines
233 B
Makefile
|
BOARD ?= arduino:avr:diecimila
|
||
|
PORT ?= /dev/ttyUSB0
|
||
|
|
||
|
CCFLAGS += -Icfg
|
||
|
|
||
|
.PHONY: build flash
|
||
|
|
||
|
build:
|
||
|
arduino-cli compile -v -e --libraries coppino -b $(BOARD)
|
||
|
|
||
|
flash:
|
||
|
arduino-cli -b $(BOARD) -p $(PORT) -v upload
|
||
|
|
||
|
clean:
|
||
|
rm -r build
|