aboutsummaryrefslogtreecommitdiff
path: root/libgloss/aarch64/Makefile.inc
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2022-12-13 21:54:54 -0500
committerMike Frysinger <vapier@gentoo.org>2023-01-09 21:49:50 -0500
commit13a7b16ea3ad64794b1cd7651ecfef9c258f3a6c (patch)
treead90b183d676a4c7cc758dd1ccc51af1f03cfa57 /libgloss/aarch64/Makefile.inc
parent9ee1e1b693ad7785e07f126ec725279fe605d621 (diff)
downloadnewlib-13a7b16ea3ad64794b1cd7651ecfef9c258f3a6c.zip
newlib-13a7b16ea3ad64794b1cd7651ecfef9c258f3a6c.tar.gz
newlib-13a7b16ea3ad64794b1cd7651ecfef9c258f3a6c.tar.bz2
libgloss: merge aarch64 into top-level Makefile
Avoid a recursive make to speed things up a bit.
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