2016-11-09 16:42:21 +01:00
|
|
|
PKG_NAME=iotivity-constrained
|
|
|
|
PKG_URL=https://github.com/iotivity/iotivity-constrained
|
2017-01-17 19:45:31 +01:00
|
|
|
PKG_VERSION=830bb7a42d2804830a57dfe8bc469fac1317c46a
|
2017-01-08 21:55:46 +01:00
|
|
|
PKG_LICENSE=Apache-2.0
|
2016-11-09 16:42:21 +01:00
|
|
|
|
|
|
|
PKG_LIB=$(BINDIRBASE)/pkg/$(BOARD)/$(PKG_NAME)
|
|
|
|
|
|
|
|
MODULE_MAKEFILE := $(PKG_DIR)/Makefile.module
|
|
|
|
|
|
|
|
export PKG_DIR
|
|
|
|
export PKG_LIB
|
|
|
|
export PKG_NAME
|
|
|
|
|
|
|
|
export RIOT_CFLAGS = ${CFLAGS} ${INCLUDES}
|
|
|
|
|
|
|
|
all: git-download submodules-download copy_makefile
|
|
|
|
@"$(MAKE)" -BC $(PKG_BUILDDIR) lib-iotivity.a
|
|
|
|
@cp $(PKG_BUILDDIR)/lib-iotivity.a ${BINDIR}/iotivity.a
|
|
|
|
|
|
|
|
copy_makefile:
|
|
|
|
@cp ./Makefile.tomove $(PKG_LIB)/Makefile
|
|
|
|
|
|
|
|
|
|
|
|
submodules-download:
|
|
|
|
@git -C $(PKG_LIB) submodule update --init
|
|
|
|
|
|
|
|
include $(RIOTBASE)/pkg/pkg.mk
|
|
|
|
|
|
|
|
clean:: copy_makefile
|
|
|
|
@"$(MAKE)" -BC $(PKG_BUILDDIR) clean
|