Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2023-12-27 04:59:58 +0300
committerMike Frysinger <vapier@gentoo.org>2024-01-03 11:49:10 +0300
commit6bbeed74ca571b98af19dc7d52ce286f40c75229 (patch)
tree651bc873fef8ed009437c4134a8678da9120dc66 /libgloss/i960
parent6879bfa7c24467a85d3c0aa5b84c2f8f5fb92f33 (diff)
libgloss: merge i960 into top-level Makefile
Avoid a recursive make to speed things up a bit. I can't test this as current versions of binutils doesn't support i960.
Diffstat (limited to 'libgloss/i960')
-rw-r--r--libgloss/i960/Makefile.in107
-rw-r--r--libgloss/i960/Makefile.inc16
2 files changed, 16 insertions, 107 deletions
diff --git a/libgloss/i960/Makefile.in b/libgloss/i960/Makefile.in
deleted file mode 100644
index 0d1b80029..000000000
--- a/libgloss/i960/Makefile.in
+++ /dev/null
@@ -1,107 +0,0 @@
-#
-#
-
-DESTDIR =
-VPATH = @srcdir@ @srcdir@/..
-srcdir = @srcdir@
-objdir = .
-srcroot = $(srcdir)/../..
-objroot = $(objdir)/../..
-
-prefix = @prefix@
-exec_prefix = @exec_prefix@
-
-host_alias = @host_alias@
-target_alias = @target_alias@
-
-bindir = @bindir@
-libdir = @libdir@
-tooldir = $(exec_prefix)/$(target_alias)
-
-INSTALL = @INSTALL@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_DATA = @INSTALL_DATA@
-
-# Multilib support variables.
-# TOP is used instead of MULTI{BUILD,SRC}TOP.
-MULTIDIRS =
-MULTISUBDIR =
-
-SHELL = /bin/sh
-
-mkinstalldirs = $(SHELL) $(srcroot)/mkinstalldirs
-
-CC = @CC@
-
-AS = @AS@
-AR = @AR@
-LD = @LD@
-RANLIB = @RANLIB@
-
-OBJDUMP = `if [ -f ${objroot}/../binutils/objdump ] ; \
- then echo ${objroot}/../binutils/objdump ; \
- else t='$(program_transform_name)'; echo objdump | sed -e $$t ; fi`
-OBJCOPY = `if [ -f ${objroot}/../binutils/objcopy ] ; \
- then echo ${objroot}/../binutils/objcopy ; \
- else t='$(program_transform_name)'; echo objcopy | sed -e $$t ; fi`
-
-OBJS = putnum.o unlink.o
-CFLAGS = -g
-SCRIPTS =
-
-# Here is all of the mon960 stuff
-MON_LDFLAGS =
-MON_BSP = libmon960.a
-MON_CRT0 = crt0.o
-MON_OBJS = mon-read.o mon-write.o mon-syscalls.o mon960.o
-MON_SCRIPTS = mon960.ld
-MON_INSTALL = install-mon
-
-# Host specific makefile fragment comes in here.
-@host_makefile_frag@
-
-#
-# build a test program for each target board. Just trying to get
-# it to link is a good test, so we ignore all the errors for now.
-#
-all: ${MON_CRT0} ${MON_BSP}
-
-#
-# here's where we build the board support packages for each target
-#
-${MON_BSP}: ${OBJS} ${MON_OBJS}
- ${AR} ${ARFLAGS} ${MON_BSP} ${MON_OBJS} ${OBJS}
- ${RANLIB} ${MON_BSP}
-
-#
-#
-#
-.c.S:
- ${CC} ${CFLAGS_FOR_TARGET} -c $<
-
-mvme-crt0.o: mvme-crt0.S
-mvme-exit.o: mvme-exit.S
-mvme-inbyte.o: mvme-inbyte.S
-mvme-outbyte.o: mvme-outbyte.S
-
-clean mostlyclean:
- rm -f a.out core *.i *.o *-test *.srec *.dis *.x
-
-distclean maintainer-clean realclean: clean
- rm -f Makefile *~
-
-.PHONY: install info install-info clean-info
-install: ${MON_INSTALL}
-
-install-mon:
- ${mkinstalldirs} ${DESTDIR}${tooldir}/lib${MULTISUBDIR}
- set -e; for x in ${MON_CRT0} ${MON_BSP}; do ${INSTALL_DATA} $$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/$$x; done
- set -e; for x in ${MON_SCRIPTS}; do ${INSTALL_DATA} ${srcdir}/$$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/$$x; done
-
-doc:
-info:
-install-info:
-clean-info:
-
-Makefile: Makefile.in ../config.status
- cd .. && $(SHELL) config.status
diff --git a/libgloss/i960/Makefile.inc b/libgloss/i960/Makefile.inc
new file mode 100644
index 000000000..3d1f58bb1
--- /dev/null
+++ b/libgloss/i960/Makefile.inc
@@ -0,0 +1,16 @@
+multilibtool_DATA += \
+ %D%/crt0.o
+libobjs_a_SOURCES += \
+ %D%/crt0.c
+
+multilibtool_DATA += \
+ %D%/mon960.ld
+
+multilibtool_LIBRARIES += %D%/libmon960.a
+%C%_libmon960_a_SOURCES = \
+ putnum.c \
+ unlink.c \
+ %D%/mon-read.c \
+ %D%/mon-write.c \
+ %D%/mon-syscalls.S \
+ %D%/mon960.c