Fix source path and include flag for Contiki build

As the libcoap sources have been moved to the sub-directory src it
must be added to the vpath. The header files now reside in include/coap,
so we need an additional -I compiler flag for this.

The root path for libcoap is derived from the variable APPDS which is
set by $(CONTIKI)/Makefile.include. This is a bit fragile but the best
we have...
This commit is contained in:
Olaf Bergmann committed 2015-03-04 13:22:05 +01:00
1 parent 4b249f3739
commit f1b8a48bfc
1 file changed
+6
+6
View File
@@ -1 +1,7 @@
libcoap_src = pdu.c net.c debug.c encode.c uri.c subscribe.c resource.c hashkey.c str.c option.c async.c block.c mem.c coap_io.c
libcoap_dir := $(filter %libcoap,$(APPDS))
vpath %c $(libcoap_dir)/src
# set include path for coap sources
CFLAGS += -I$(libcoap_dir)/include/coap