aboutsummaryrefslogtreecommitdiff
path: root/libgloss/aarch64/Makefile.inc
diff options
context:
space:
mode:
Diffstat (limited to 'libgloss/aarch64/Makefile.inc')
-rw-r--r--libgloss/aarch64/Makefile.inc34
1 files changed, 34 insertions, 0 deletions
diff --git a/libgloss/aarch64/Makefile.inc b/libgloss/aarch64/Makefile.inc
new file mode 100644
index 0000000..b9c8d98
--- /dev/null
+++ b/libgloss/aarch64/Makefile.inc
@@ -0,0 +1,34 @@
+multilibtool_LIBRARIES += %D%/librdimon.a
+%C%_librdimon_a_SOURCES = \
+ %D%/_exit.c \
+ %D%/_kill.c \
+ %D%/ftruncate.c \
+ %D%/libcfunc.c \
+ %D%/syscalls.c \
+ %D%/truncate.c
+%C%_librdimon_a_CPPFLAGS = \
+ $(AM_CPPFLAGS) \
+ -DSEMIHOST_V2 -DARM_RDI_MONITOR
+
+%C%_SPECS = \
+ %D%/aem-v8-r.specs \
+ %D%/aem-validation.specs \
+ %D%/aem-ve.specs \
+ %D%/rdimon.specs
+multilibtool_DATA += \
+ %D%/crt0.o \
+ %D%/rdimon-crt0.o \
+ $(%C%_SPECS)
+
+%D%/crt0.$(OBJEXT): %D%/crt0.S
+ $(AM_V_CPPAS)$(CPPASCOMPILE) -DSEMIHOST_V2 -o $@ -c $<
+%D%/rdimon-crt0.$(OBJEXT): %D%/crt0.S
+ $(AM_V_CPPAS)$(CPPASCOMPILE) -DSEMIHOST_V2 -DARM_RDI_MONITOR -o $@ -c $<
+
+## Make copies of the scripts to facilitate in-tree bootstrapping.
+%D%/%.specs: %D%/$(AARCH64_OBJTYPE)%.specs
+ $(AM_V_GEN)cp $< $@
+
+CLEANFILES += $(%C%_SPECS)
+
+include %D%/cpu-init/Makefile.inc