mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-07 02:02:54 +03:00
The new structure of libcoap allows to clone Contiki in a subdirectory. The example build now uses Makefile to first clone Contiki and then invoke Makefile.contiki for the actual build. The TARGET is set to minimal-net by default but can be changed to any other (tested) target.
12 lines
280 B
Makefile
12 lines
280 B
Makefile
CONTIKI=contiki
|
|
TARGET?=minimal-net
|
|
|
|
all: server
|
|
|
|
$(CONTIKI):
|
|
git clone https://github.com/contiki-os/contiki.git $@
|
|
cd $(CONTIKI)/apps && ln -s ../../../.. libcoap
|
|
|
|
server: $(CONTIKI)
|
|
$(MAKE) -f Makefile.contiki V=1 CONTIKI=$(CONTIKI) TARGET=$(TARGET) NODE_ADDR=0x1000 server
|