kimodem/Makefile

44 lines
604 B
Makefile
Raw Permalink Normal View History

2023-10-07 20:38:17 +00:00
#BOARD := featheresp32
2023-10-06 03:19:12 +00:00
BOARD := sparkfun_esp32micromod
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
rm -rf *.bin unpacked_fs
2023-10-06 03:19:12 +00:00
.PHONY: cloc
cloc:
cloc include lib src
.PHONY: test
test:
$(PIO) -t test
.PHONY: downloadfs
downloadfs:
$(PIO) -t downloadfs