genode/repos/libports/recipes/api/spark/content.mk
Alexander Senier 5ccae43552 Rename Ada runtime to SPARK runtime
The minimal-footprint Ada runtime for implementing library-like
functionality in SPARK is now called "spark" runtime.

The full Ada runtime for entire components written in Ada and using the
libc as glue to the underlying system will move to the world repository
as "ada" runtime.

Issue #3144
2019-02-19 11:08:17 +01:00

68 lines
1.3 KiB
Makefile

ADA_RT_DIR := $(call port_dir,$(GENODE_DIR)/repos/libports/ports/ada-runtime)
ADA_ALI_DIR := $(call port_dir,$(GENODE_DIR)/repos/libports/ports/ada-runtime)/ada-runtime-alis/alis
MIRROR_FROM_ADA_RT_DIR := \
$(addprefix ada-runtime/contrib/gcc-6.3.0/,\
ada.ads \
system.ads \
s-stoele.ads \
a-unccon.ads \
gnat.ads \
g-io.ads \
)\
$(addprefix ada-runtime/src/minimal/,\
s-stalib.ads \
a-except.ads \
s-secsta.ads \
s-parame.ads \
s-soflin.ads \
)\
$(addprefix ada-runtime/src/lib/,\
ss_utils.ads \
)
MIRROR_FROM_ADA_ALI_DIR := \
ada.ali \
ada_exceptions.ali \
a-except.ali \
g-io.ali \
gnat.ali \
interfac.ali \
platform.ali \
s-imgint.ali \
s-parame.ali \
s-secsta.ali \
s-soflin.ali \
s-stalib.ali \
s-stoele.ali \
ss_utils.ali \
string_utils.ali \
s-unstyp.ali \
system.ali \
content: $(MIRROR_FROM_ADA_RT_DIR) $(MIRROR_FROM_ADA_ALI_DIR)
$(MIRROR_FROM_ADA_RT_DIR):
mkdir -p include
cp $(ADA_RT_DIR)/$@ include/
$(MIRROR_FROM_ADA_ALI_DIR):
mkdir -p lib/ali/spark
cp $(ADA_ALI_DIR)/$@ lib/ali/spark/
MIRROR_FROM_REP_DIR := \
lib/import/import-spark.mk \
include/ada \
lib/symbols/spark \
content: $(MIRROR_FROM_REP_DIR)
$(MIRROR_FROM_REP_DIR):
$(mirror_from_rep_dir)
content: lib/mk/spark.mk
lib/mk/spark.mk:
mkdir -p $(dir $@)
cp -r $(REP_DIR)/lib/mk/spark.inc $@