aboutsummaryrefslogtreecommitdiff
path: root/libgloss/m32r
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2023-12-27 00:54:13 -0500
committerMike Frysinger <vapier@gentoo.org>2024-01-19 20:26:52 -0500
commitaf075aed1d6fcd51405247654bc68365352ab367 (patch)
tree97fa761fcf2ecc13264288d6c9839ba8294e3c8b /libgloss/m32r
parent4172a3c618bb8dc2311a63ecb5c56bcc21a30f22 (diff)
downloadnewlib-af075aed1d6fcd51405247654bc68365352ab367.zip
newlib-af075aed1d6fcd51405247654bc68365352ab367.tar.gz
newlib-af075aed1d6fcd51405247654bc68365352ab367.tar.bz2
libgloss: merge m32r into top-level Makefile
Avoid a recursive make to speed things up a bit. A m32r-elf build shows installed objects & libs produce same code.
Diffstat (limited to 'libgloss/m32r')
-rw-r--r--libgloss/m32r/Makefile.in141
-rw-r--r--libgloss/m32r/Makefile.inc60
2 files changed, 60 insertions, 141 deletions
diff --git a/libgloss/m32r/Makefile.in b/libgloss/m32r/Makefile.in
deleted file mode 100644
index 786502e..0000000
--- a/libgloss/m32r/Makefile.in
+++ /dev/null
@@ -1,141 +0,0 @@
-# Makefile for libgloss/m32r
-# Copyright (c) 1996, 1998 Cygnus Support.
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms are permitted
-# provided that the above copyright notice and this paragraph are
-# duplicated in all such forms and that any documentation,
-# and/or other materials related to such
-# distribution and use acknowledge that the software was developed
-# at Cygnus Support, Inc. Cygnus Support, Inc. may not be used to
-# endorse or promote products derived from this software without
-# specific prior written permission.
-# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
-# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
-# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
-
-DESTDIR =
-VPATH = @srcdir@ @srcdir@/..
-srcdir = @srcdir@
-objdir = .
-srcroot = $(srcdir)/../..
-objroot = $(objdir)/../..
-
-host_alias = @host_alias@
-target_alias = @target_alias@
-prefix = @prefix@
-exec_prefix = @exec_prefix@
-bindir = @bindir@
-libdir = @libdir@
-tooldir = $(exec_prefix)/$(target_alias)
-
-TOP = ../..
-SRCTOP = ../..
-
-# Multilib support variables.
-# TOP is used instead of MULTI{BUILD,SRC}TOP.
-MULTISRCTOP =
-MULTIBUILDTOP =
-MULTIDIRS =
-MULTISUBDIR =
-MULTIDO = true
-MULTICLEAN = true
-
-INSTALL = @INSTALL@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_DATA = @INSTALL_DATA@
-
-SHELL = /bin/sh
-
-CC = @CC@
-
-AS = @AS@
-AR = @AR@
-LD = @LD@
-RANLIB = @RANLIB@
-
-AR_FLAGS = qv
-BISON = bison
-MAKEINFO = makeinfo
-
-.NOEXPORT:
-MAKEOVERRIDES=
-
-TARGETDOC = ../../targetdep.tex
-
-CRT0 = crt0.o
-GDBLIB = m32r-lib.o
-GDBSTUB = m32r-stub.o
-EVASCRIPT = eva.ld
-STUBSCRIPT = eva-stub.ld
-
-GENERIC_LIBOBJS = \
- chmod.o close.o exit.o fstat.o getpid.o isatty.o kill.o lseek.o \
- open.o raise.o read.o sbrk.o stat.o unlink.o utime.o write.o
-
-LIBOBJS = trap0.o $(GENERIC_LIBOBJS)
-LIBGLOSS = libgloss.a
-
-MONLIBOBJS = trapmon0.o $(GENERIC_LIBOBJS)
-MONLIBGLOSS = libmon.a
-MONSPECS = mon.specs
-
-# Host specific makefile fragment comes in here.
-@host_makefile_frag@
-
-all: $(CRT0) $(LIBGLOSS) $(MONLIBGLOSS) $(GDBLIB) $(GDBSTUB)
-
-libgloss.a: $(LIBOBJS)
- $(AR) $(ARFLAGS) $@ $(LIBOBJS)
- $(RANLIB) $@
-
-libmon.a: $(MONLIBOBJS)
- $(AR) $(ARFLAGS) $@ $(MONLIBOBJS)
- $(RANLIB) $@
-
-install:
- mkdir -p $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}
- $(INSTALL_DATA) $(CRT0) $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/$(CRT0)
- $(INSTALL_DATA) $(LIBGLOSS) $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/$(LIBGLOSS)
- $(INSTALL_DATA) $(MONLIBGLOSS) $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/$(MONLIBGLOSS)
- $(INSTALL_DATA) $(GDBLIB) $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/$(GDBLIB)
- $(INSTALL_DATA) $(GDBSTUB) $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/$(GDBSTUB)
- $(INSTALL_DATA) $(srcdir)/$(EVASCRIPT) $(DESTDIR)$(tooldir)/lib/$(EVASCRIPT)
- $(INSTALL_DATA) $(srcdir)/$(STUBSCRIPT) $(DESTDIR)$(tooldir)/lib/$(STUBSCRIPT)
- $(INSTALL_DATA) $(srcdir)/$(MONSPECS) $(DESTDIR)$(tooldir)/lib/$(MONSPECS)
-
-clean mostlyclean:
- rm -f *~ *.[oa]
-
-distclean maintainer-clean realclean: clean
- rm -f Makefile
-
-info doc:
-install-info:
-clean-info:
-
-Makefile: Makefile.in ../config.status
- cd .. && $(SHELL) config.status
-
-# to support SunOS VPATH
-crt0.o: crt0.S
-m32r-lib.o: m32r-lib.c
-m32r-stub.o: m32r-stub.c
-chmod.o: chmod.c
-close.o: close.c
-exit.o: exit.c
-fstat.o: fstat.c
-getpid.o: getpid.c
-isatty.o: isatty.c
-kill.o: kill.c
-lseek.o: lseek.c
-open.o: open.c
-raise.o: raise.c
-read.o: read.c
-sbrk.o: sbrk.c
-stat.o: stat.c
-unlink.o: unlink.c
-utime.o: utime.c
-write.o: write.c
-trap0.o: trap0.S
-trapmon0.o: trapmon0.c
diff --git a/libgloss/m32r/Makefile.inc b/libgloss/m32r/Makefile.inc
new file mode 100644
index 0000000..7870cf8
--- /dev/null
+++ b/libgloss/m32r/Makefile.inc
@@ -0,0 +1,60 @@
+## Makefile for libgloss/m32r
+## Copyright (c) 1996, 1998 Cygnus Support.
+## All rights reserved.
+##
+## Redistribution and use in source and binary forms are permitted
+## provided that the above copyright notice and this paragraph are
+## duplicated in all such forms and that any documentation,
+## and/or other materials related to such
+## distribution and use acknowledge that the software was developed
+## at Cygnus Support, Inc. Cygnus Support, Inc. may not be used to
+## endorse or promote products derived from this software without
+## specific prior written permission.
+## THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
+## IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+## WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+
+if !HAVE_MULTISUBDIR
+multilibtool_DATA += \
+ %D%/eva.ld \
+ %D%/eva-stub.ld \
+ %D%/mon.specs
+endif
+
+multilibtool_DATA += %D%/crt0.o
+libobjs_a_SOURCES += %D%/crt0.S
+
+%C%_common_lib_sources = \
+ %D%/chmod.c \
+ %D%/close.c \
+ %D%/exit.c \
+ %D%/fstat.c \
+ %D%/getpid.c \
+ %D%/isatty.c \
+ %D%/kill.c \
+ %D%/lseek.c \
+ %D%/open.c \
+ %D%/raise.c \
+ %D%/read.c \
+ %D%/sbrk.c \
+ %D%/stat.c \
+ %D%/unlink.c \
+ %D%/utime.c \
+ %D%/write.c
+
+multilibtool_LIBRARIES += %D%/libgloss.a
+%C%_libgloss_a_SOURCES = \
+ %D%/trap0.S \
+ $(%C%_common_lib_sources)
+
+multilibtool_LIBRARIES += %D%/libmon.a
+%C%_libmon_a_SOURCES = \
+ %D%/trapmon0.c \
+ $(%C%_common_lib_sources)
+
+multilibtool_DATA += \
+ %D%/m32r-lib.o \
+ %D%/m32r-stub.o
+libobjs_a_SOURCES += \
+ %D%/m32r-lib.c \
+ %D%/m32r-stub.c