summaryrefslogtreecommitdiff
path: root/sysroot/Makefile.am
diff options
context:
space:
mode:
authorkx <kx@radix-linux.su>2026-10-09 18:00:15 +0300
committerkx <kx@radix-linux.su>2026-10-09 18:00:15 +0300
commit065da3509019b15dd0e678072e6be629e5330bef (patch)
tree69c934c9e786ac048b4fbe8f4c4c5571661521f4 /sysroot/Makefile.am
parentd130fe27fa753be02ed76fd9b277aa3c3d928eb9 (diff)
downloadlibmcpu-0.4.0.tar.xz
Version 0.4.00.4.0
Diffstat (limited to 'sysroot/Makefile.am')
-rw-r--r--sysroot/Makefile.am41
1 files changed, 41 insertions, 0 deletions
diff --git a/sysroot/Makefile.am b/sysroot/Makefile.am
new file mode 100644
index 0000000..6285067
--- /dev/null
+++ b/sysroot/Makefile.am
@@ -0,0 +1,41 @@
+
+mcpuconfdir = @MCPU_ETCDIR@
+
+dist_mcpuconf_DATA = etc/mcpu-ld.conf
+
+crt_srcdir = $(srcdir)/usr/src/mcpu/crt
+crt_builddir = $(builddir)/lib/mcpu
+
+crt_objects = $(crt_builddir)/crt0.o \
+ $(crt_builddir)/crt1.o \
+ $(crt_builddir)/crti.o \
+ $(crt_builddir)/crtn.o
+
+mcpucrtobjectsdir = @MCPU_ROOT@/lib/mcpu
+nodist_mcpucrtobjects_DATA = $(crt_objects)
+
+all-local: $(crt_objects)
+
+$(crt_builddir)/crt0.o: $(crt_srcdir)/crt0.S $(top_builddir)/utils/mcpu-as
+ $(MKDIR_P) $(crt_builddir)
+ $(top_builddir)/utils/mcpu-as -o $@ $(crt_srcdir)/crt0.S
+
+$(crt_builddir)/crt1.o: $(crt_srcdir)/crt1.S $(top_builddir)/utils/mcpu-as
+ $(MKDIR_P) $(crt_builddir)
+ $(top_builddir)/utils/mcpu-as -o $@ $(crt_srcdir)/crt1.S
+
+$(crt_builddir)/crti.o: $(crt_srcdir)/crti.S $(top_builddir)/utils/mcpu-as
+ $(MKDIR_P) $(crt_builddir)
+ $(top_builddir)/utils/mcpu-as -o $@ $(crt_srcdir)/crti.S
+
+$(crt_builddir)/crtn.o: $(crt_srcdir)/crtn.S $(top_builddir)/utils/mcpu-as
+ $(MKDIR_P) $(crt_builddir)
+ $(top_builddir)/utils/mcpu-as -o $@ $(crt_srcdir)/crtn.S
+
+EXTRA_DIST = README \
+ usr/src/mcpu/crt/crt0.S \
+ usr/src/mcpu/crt/crt1.S \
+ usr/src/mcpu/crt/crti.S \
+ usr/src/mcpu/crt/crtn.S
+
+CLEANFILES = $(crt_objects)