mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-06 01:42:53 +03:00
Tidy up the general proxy logic by moving common functionality into libcoap. New functions coap_proxy_forward_request(), coap_proxy_forward_response() and coap_proxy_is_supported() added. New --enable-proxy-code support added to configure. New ENABLE_PROXY_CODE support added to CMakeLists.txt. Support for common shared connection to next hop. Support for round-robin balancing across multiple next hops.
40 lines
1.2 KiB
Makefile
40 lines
1.2 KiB
Makefile
CONTIKI=contiki-ng
|
|
TARGET?=native
|
|
|
|
WITH_CONTIKI_NG_BRANCH=release/v4.9
|
|
|
|
all: $(CONTIKI) check-version server
|
|
|
|
$(CONTIKI):
|
|
git clone --depth 1 https://github.com/contiki-ng/contiki-ng.git $@
|
|
echo "Updating $(CONTIKI) to ${WITH_CONTIKI_NG_BRANCH}"
|
|
(cd ${CONTIKI} ; git pull --tags 2> /dev/null ; git checkout ${WITH_CONTIKI_NG_BRANCH})
|
|
cd $(CONTIKI)/os/net/app-layer && rm -rf libcoap && ln -s ../../../../../.. libcoap
|
|
|
|
check-version:
|
|
@(if [ -d $(CONTIKI) ] ; then \
|
|
cd $(CONTIKI) ; \
|
|
TAG=`git describe --tags --all`; \
|
|
if [ "$$TAG" != ${WITH_CONTIKI_NG_BRANCH} ] ; then \
|
|
if [ "$$TAG" != "tags/${WITH_CONTIKI_NG_BRANCH}" ] ; then \
|
|
git pull --tags 2> /dev/null ; \
|
|
echo "Updating $(CONTIKI) to ${WITH_CONTIKI_NG_BRANCH}" ; \
|
|
git checkout ${WITH_CONTIKI_NG_BRANCH} ; \
|
|
cd os/net/app-layer && rm -rf libcoap && ln -s ../../../../../.. libcoap ; \
|
|
fi ; \
|
|
fi ; \
|
|
fi)
|
|
|
|
server: $(CONTIKI)
|
|
$(MAKE) -f Makefile.contiki CONTIKI=$(CONTIKI) TARGET=$(TARGET) server
|
|
|
|
clean:
|
|
$(MAKE) -f Makefile.contiki CONTIKI=$(CONTIKI) TARGET=$(TARGET) clean
|
|
rm -rf build
|
|
|
|
distclean:
|
|
$(MAKE) -f Makefile.contiki CONTIKI=$(CONTIKI) TARGET=$(TARGET) distclean
|
|
|
|
viewconf:
|
|
$(MAKE) -f Makefile.contiki CONTIKI=$(CONTIKI) TARGET=$(TARGET) viewconf
|