mirror of
https://github.com/cesanta/mongoose.git
synced 2024-12-15 09:49:19 +08:00
18 lines
373 B
Makefile
18 lines
373 B
Makefile
PROJECT_DIR ?= /mnt
|
|
ZEPHYR_DIR ?= /zephyrproject
|
|
BOARD ?= nucleo_f746zg
|
|
DOCKER ?= docker run -v $(realpath $(CURDIR)):/mnt mdashnet/zephyr
|
|
|
|
example:
|
|
true
|
|
|
|
build:
|
|
cp ../../../mongoose.c ../../../mongoose.h src/
|
|
$(DOCKER) /bin/sh -c 'cd $(ZEPHYR_DIR) && west build -b $(BOARD) -p auto $(PROJECT_DIR)'
|
|
|
|
flash:
|
|
cd $(ZEPHYR_DIR) && west flash
|
|
|
|
clean:
|
|
rm -rf */*/mongoose.*
|