mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
cc5005857b
Bug: https://github.com/RIOT-OS/RIOT/issues/6241 Change-Id: If430d37dff38a1e6d6b103b1a6966b6e309dd3a2 Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
31 lines
725 B
Makefile
31 lines
725 B
Makefile
PKG_NAME=iotivity-constrained
|
|
PKG_URL=https://github.com/iotivity/iotivity-constrained
|
|
PKG_VERSION=830bb7a42d2804830a57dfe8bc469fac1317c46a
|
|
PKG_LICENSE=Apache-2.0
|
|
|
|
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
|