diff options
Diffstat (limited to 'sysroot/Makefile.am')
| -rw-r--r-- | sysroot/Makefile.am | 41 |
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) |
