pcm4/stage2/Makefile

33 lines
444 B
Makefile
Raw Permalink Normal View History

2020-12-26 19:48:07 +00:00
BOARD := m4
2020-12-22 01:38:22 +00:00
FIRMWARE := .pioenvs/$(BOARD)/firmware.bin
SOURCES := \
src/main.cc
PIO := pio run -e $(BOARD)
$(FIRMWARE): $(SOURCES)
$(PIO)
PHONY: all
all: $(FIRMWARE)
.PHONY: upload
upload: $(FIRMWARE)
$(PIO) -t upload
.PHONY: monitor
monitor:
$(PIO) -t monitor
.PHONY: deploy
deploy: $(FIRMWARE)
$(PIO) -t upload && sleep 0.5 && $(PIO) -t monitor
.PHONY: clean
clean:
$(PIO) -t clean
.PHONY: cloc
cloc:
cloc include lib src