1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

pkg/relic: add custom prepared target

This custom prepared target create an include directory in the build directory which is set globally in the INCLUDES variables.
This commit is contained in:
Alexandre Abadie 2020-06-15 10:51:19 +02:00
parent 3cdc337c22
commit f869354c76
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405

View File

@ -3,6 +3,8 @@ PKG_URL=https://github.com/relic-toolkit/relic.git
PKG_VERSION=0b0442a8218df8d309266923f2dd5b9ae3b318ce
PKG_LICENSE=LGPL-2.1
PKG_CUSTOM_PREPARED = $(PKGDIRBASE)/$(PKG_NAME)/build/include
include $(RIOTBASE)/pkg/pkg.mk
.PHONY: ..cmake_version_supported
@ -18,6 +20,10 @@ TOOLCHAIN_FILE = $(RELIC_SOURCE_DIR)/xcompile-toolchain.cmake
all: $(BINDIR)/$(PKG_NAME).a
$(PKG_CUSTOM_PREPARED):
$(info [INFO] Relic: create include directory in build)
mkdir -p $(PKG_CUSTOM_PREPARED)
$(BINDIR)/$(PKG_NAME).a: $(RELIC_BUILD_DIR)/lib/librelic_s.a
cp $< $@