2015-10-26 17:41:01 +01:00
|
|
|
PKG_NAME=ccn-lite
|
2016-03-23 12:14:45 +01:00
|
|
|
PKG_URL=https://github.com/cn-uofbasel/ccn-lite/
|
2018-03-02 10:04:00 +01:00
|
|
|
PKG_VERSION=dbf3e1a8935cfc4b6bcfa1a5baa477553ffdafec
|
2017-01-08 21:54:34 +01:00
|
|
|
PKG_LICENSE=ISC
|
2015-10-26 17:41:01 +01:00
|
|
|
|
2016-03-22 18:29:45 +01:00
|
|
|
.PHONY: all
|
2015-10-26 17:41:01 +01:00
|
|
|
|
2018-03-22 09:12:12 +01:00
|
|
|
export RIOT_CFLAGS = $(CFLAGS) $(INCLUDES)
|
2015-10-26 17:41:01 +01:00
|
|
|
|
2018-03-27 19:03:27 +02:00
|
|
|
TOOLCHAIN_FILE=$(PKG_BUILDDIR)/xcompile-toolchain.cmake
|
|
|
|
|
|
|
|
all: $(PKG_BUILDDIR)/src/Makefile
|
|
|
|
$(MAKE) -C $(PKG_BUILDDIR)/src && \
|
|
|
|
cp $(PKG_BUILDDIR)/src/lib/libccnl-riot.a ${BINDIR}/ccn-lite.a
|
|
|
|
|
|
|
|
$(PKG_BUILDDIR)/src/Makefile: $(TOOLCHAIN_FILE)
|
|
|
|
cd $(PKG_BUILDDIR)/src && \
|
|
|
|
cmake -DCMAKE_TOOLCHAIN_FILE=$(TOOLCHAIN_FILE) \
|
|
|
|
-DCCNL_RIOT=1 -DRIOT_CFLAGS="${RIOT_CFLAGS}" -DBUILD_TESTING=OFF .
|
|
|
|
|
|
|
|
$(TOOLCHAIN_FILE): git-download
|
|
|
|
$(RIOTBASE)/dist/tools/cmake/generate-xcompile-toolchain.sh > $(TOOLCHAIN_FILE)
|
2015-10-26 17:41:01 +01:00
|
|
|
|
2016-03-22 18:29:45 +01:00
|
|
|
include $(RIOTBASE)/pkg/pkg.mk
|