Skip to content
Snippets Groups Projects
Commit b98f97e9 authored by Kaspar Schleiser's avatar Kaspar Schleiser
Browse files

pkg: ccn-lite: adapt to use pkg.mk

parent 19cf3ed2
No related branches found
No related tags found
No related merge requests found
PKG_NAME=ccn-lite PKG_NAME=ccn-lite
PKG_URL=https://github.com/OlegHahm/ccn-lite/ PKG_URL=https://github.com/OlegHahm/ccn-lite/
PKG_VERSION=39b1406c11de9de364220909488eebabe7e81613 PKG_VERSION=39b1406c11de9de364220909488eebabe7e81613
PKG_DIR=$(CURDIR)/$(PKG_NAME)
.PHONY: all clean distclean .PHONY: all
export RIOT_CFLAGS = ${CFLAGS} ${INCLUDES} export RIOT_CFLAGS = ${CFLAGS} ${INCLUDES}
all: $(PKG_DIR)/Makefile all: download
"$(MAKE)" -BC $(PKG_DIR)/src lib-ccn-lite.a "$(MAKE)" -BC $(PKG_BUILDDIR)/src lib-ccn-lite.a
"$(MAKE)" -BC $(PKG_DIR)/src lib-ccn-lite-utils.a "$(MAKE)" -BC $(PKG_BUILDDIR)/src lib-ccn-lite-utils.a
cp $(PKG_DIR)/src/lib-ccn-lite.a ${BINDIR}/ccn-lite.a cp $(PKG_BUILDDIR)/src/lib-ccn-lite.a ${BINDIR}/ccn-lite.a
cp $(PKG_DIR)/src/lib-ccn-lite-utils.a ${BINDIR}/ccn-lite-utils.a cp $(PKG_BUILDDIR)/src/lib-ccn-lite-utils.a ${BINDIR}/ccn-lite-utils.a
$(PKG_DIR)/Makefile: $(PKG_DIR)/.git/config include $(RIOTBASE)/pkg/pkg.mk
$(PKG_DIR)/.git/config:
test -d "$(PKG_DIR)" || $(GITCACHE) clone "$(PKG_URL)" "$(PKG_VERSION)" "$(PKG_DIR)"
clean::
@echo "Cleaning up CCN-Lite package..."
@cd "$(PKG_DIR)" 2> /dev/null > /dev/null && \
git clean -x -f && \
git reset --hard "$(PKG_VERSION)"
distclean::
rm -rf "$(PKG_DIR)"
Makefile.include:
@true
INCLUDES += -I$(RIOTPKG)/ccn-lite -I$(RIOTPKG)/ccn-lite/ccn-lite/src INCLUDES += -I$(RIOTPKG)/ccn-lite -I$(BINDIR)/pkg/ccn-lite/src
INCLUDES += -I$(RIOTBASE)/sys/posix/include INCLUDES += -I$(RIOTBASE)/sys/posix/include
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment