From c97b9003b07835716e68c0b22b14fe13e99e09f3 Mon Sep 17 00:00:00 2001 From: "David D. Zuhn" Date: Wed, 16 Jun 1993 00:03:44 +0000 Subject: remove parentdir support; use INSTALL_XFORM --- ld/Makefile.in | 30 +++++++++++++----------------- 1 file changed, 13 insertions(+), 17 deletions(-) (limited to 'ld/Makefile.in') diff --git a/ld/Makefile.in b/ld/Makefile.in index 7178b4b..3449dc1 100644 --- a/ld/Makefile.in +++ b/ld/Makefile.in @@ -46,9 +46,12 @@ gcclibdir = $(libdir)/gcc/$(target_alias) SHELL = /bin/sh -INSTALL = install -c +INSTALL = $(srcdir)/../install.sh -c INSTALL_PROGRAM = $(INSTALL) INSTALL_DATA = $(INSTALL) +INSTALL_XFORM = $(INSTALL) -t=$(program_transform_name) +INSTALL_XFORM1 = $(INSTALL_XFORM) -b=.1 + AR = ar AR_FLAGS = qv CFLAGS = -g @@ -72,7 +75,7 @@ LIB_PATH = BASEDIR = ../.. INCLUDE = $(srcdir)/../include -INCLUDES = -I. -I$(srcdir) -I$(srcdir)/../bfd -I$(INCLUDE) +INCLUDES = -I. -I$(srcdir) -I../bfd -I$(srcdir)/../bfd -I$(INCLUDE) # What version of the manual to build DOCVER = gen @@ -95,6 +98,8 @@ HOSTING_CRT0=/lib/crt0.o HOSTING_LIBS=`if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else echo $(libdir)/libgcc.a; fi` -lc HOSTING_EMU=LDEMULATION=$(EMUL); export LDEMULATION +C++ = g++ -fgnu-linker + ### Host, target, and site specific Makefile fragments come in here. #### @@ -105,6 +110,9 @@ LINTFLAGS = $(INCLUDES) $(EXTRA_DEF) .c.o: $(CC) -c $(CFLAGS) $(INCLUDES) $(HDEFINES) $(TDEFINES) $(CDEFINES) $< +.cc.o: + $(C++) -c $(CFLAGS) -I$(srcdir) $< + # go directly to ld.new in case this ld isn't capable of # linking native object on this host. It can be renamed on # install. @@ -507,29 +515,17 @@ objdump:objdump.c .PHONY: install install: - -parent=`echo $(bindir)|sed -e 's@/[^/]*$$@@'`; \ - if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi - -if [ -d $(bindir) ] ; then true ; else mkdir $(bindir) ; fi - -parent=`echo $(man1dir)|sed -e 's@/[^/]*$$@@'`; \ - if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi - -if [ -d $(man1dir) ] ; then true ; else mkdir $(man1dir) ; fi + $(INSTALL_XFORM) ld.new $(bindir)/ld; \ + $(INSTALL_XFORM1) $(srcdir)/ld.1 $(man1dir)/ld.1; \ + -n=`t='$(program_transform_name)'; echo ld | sed -e "" $$t`; \ - rm -f $(bindir)/$$n; \ - $(INSTALL_PROGRAM) ld.new $(bindir)/$$n; \ - $(INSTALL_DATA) $(srcdir)/ld.1 $(man1dir)/$$n.1; \ - if [ -d $(tooldir) ]; then \ - if [ -d $(tooldir)/bin ] ; then true ; else mkdir $(tooldir)/bin ; fi; \ rm -f $(tooldir)/bin/ld; \ ln $(bindir)/$$n $(tooldir)/bin/ld \ || $(INSTALL_PROGRAM) ld.new $(tooldir)/bin/ld; \ rm -f $(tooldir)/bin/gld; \ ln $(tooldir)/bin/ld $(tooldir)/bin/gld; \ - else true; fi install-info: - -parent=`echo $(infodir)|sed -e 's@/[^/]*$$@@'`; \ - if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi - -if [ -d $(infodir) ] ; then true ; else mkdir $(infodir) ; fi for i in ld.info* ; do \ $(INSTALL_DATA) $$i $(infodir)/$$i ; \ done -- cgit v1.1