mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-05 01:12:55 +03:00
21 lines
589 B
Makefile
21 lines
589 B
Makefile
ZEPHYR_PROJECT?=~/zephyrproject
|
|
|
|
all: coap-client
|
|
|
|
coap-client: client-src/src/main.c client-src/*
|
|
@LIBCOAP_DIR=`pwd`/../.. ;\
|
|
(. $(ZEPHYR_PROJECT)/.venv/bin/activate ;\
|
|
cd $(ZEPHYR_PROJECT)/zephyr ;\
|
|
west build -p always -b native_sim \
|
|
$${LIBCOAP_DIR}/examples/zephyr/client-src -- \
|
|
-DCONF_FILE=prj.conf \
|
|
-DEXTRA_ZEPHYR_MODULES=$${LIBCOAP_DIR} \
|
|
-DEXTRA_CONF_FILE=$${LIBCOAP_DIR}/zephyr/libcoap-mbedtls.conf \
|
|
--fresh ;\
|
|
deactivate)
|
|
@cp -f $(ZEPHYR_PROJECT)/zephyr/build/zephyr/zephyr.exe coap-client
|
|
|
|
clean:
|
|
@rm -rf $(ZEPHYR_PROJECT)/zephyr/build
|
|
@rm -f coap-client
|