genode/repos/libports/recipes/api/jitterentropy/content.mk
Norman Feske df9eb55c5a depot: recipe for api/jitterentropy
The API archive makes the library usable for src/gpt_write.
2018-05-30 13:36:24 +02:00

26 lines
969 B
Makefile

MIRROR_FROM_REP_DIR := lib/mk/jitterentropy.inc \
lib/import/import-jitterentropy.mk \
$(foreach SPEC,arm_v6 arm_v7 x86_32 x86_64,\
lib/mk/spec/$(SPEC)/jitterentropy.mk) \
src/lib/jitterentropy
PORT_DIR := $(call port_dir,$(REP_DIR)/ports/jitterentropy)
MIRROR_FROM_PORT_DIR := src/lib/jitterentropy/jitterentropy-base.c \
include/jitterentropy/jitterentropy.h
content: $(MIRROR_FROM_REP_DIR) $(MIRROR_FROM_PORT_DIR) LICENSE
$(MIRROR_FROM_PORT_DIR):
mkdir -p $(dir $@)
cp -r $(PORT_DIR)/$@ $@
$(MIRROR_FROM_REP_DIR):
$(mirror_from_rep_dir)
LICENSE:
( echo "The contrib sources"; \
echo " include/jitterentropy/jitterentropy.h"; \
echo " src/lib/jitterentropy/jitterentropy-base.c"; \
echo "by Stephan Mueller are licensed under a BSD-style license (please"; \
echo "see the corresponding copyright header in the files)." ) > $@