mongoose/examples/zephyr/websocket-server/Makefile

18 lines
373 B
Makefile
Raw Normal View History

2022-05-16 18:10:01 +08:00
PROJECT_DIR ?= /mnt
ZEPHYR_DIR ?= /zephyrproject
2022-04-20 13:43:55 +08:00
BOARD ?= nucleo_f746zg
2022-05-16 18:10:01 +08:00
DOCKER ?= docker run -v $(realpath $(CURDIR)):/mnt mdashnet/zephyr
2022-04-07 20:29:42 +08:00
example:
true
build:
cp ../../../mongoose.c ../../../mongoose.h src/
2022-05-16 18:10:01 +08:00
$(DOCKER) /bin/sh -c 'cd $(ZEPHYR_DIR) && west build -b $(BOARD) -p auto $(PROJECT_DIR)'
2022-04-07 20:29:42 +08:00
flash:
cd $(ZEPHYR_DIR) && west flash
clean:
rm -rf */*/mongoose.*