diff options
Diffstat (limited to 'ld/Makefile.in')
-rw-r--r-- | ld/Makefile.in | 137 |
1 files changed, 70 insertions, 67 deletions
diff --git a/ld/Makefile.in b/ld/Makefile.in index 4076594..2d42565 100644 --- a/ld/Makefile.in +++ b/ld/Makefile.in @@ -18,13 +18,15 @@ # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -srcdir = . +VPATH = @srcdir@ +srcdir = @srcdir@ objdir = . -prefix = /usr/local +target_alias = @target_alias@ +prefix = @prefix@ -program_transform_name = -exec_prefix = $(prefix) +program_transform_name = @program_transform_name@ +exec_prefix = @exec_prefix@ bindir = $(exec_prefix)/bin libdir = $(exec_prefix)/lib tooldir = $(exec_prefix)/$(target_alias) @@ -57,15 +59,17 @@ INSTALL_XFORM1 = $(INSTALL_XFORM) -b=.1 AR = ar AR_FLAGS = qv -CC = cc -CFLAGS = -g +CC = @CC@ +CFLAGS = @CFLAGS@ MAKEINFO = makeinfo TEXI2DVI = texi2dvi RANLIB = ranlib -CC_FOR_BUILD=$(CC) BISON = `if [ -f ../bison/bison ] ; then echo ../bison/bison -y -L../bison/bison ; else echo bison -y ; fi` LEX = `if [ -f ../flex/flex ] ; then echo ../flex/flex ; else echo flex ; fi` +EMUL = @EMUL@ +EMULATION_OFILES = @EMULATION_OFILES@ + # Seach path to override the default search path for -lfoo libraries. # If LIB_PATH is empty, the ones in the script (if any) are left alone. # (The default is usually /lib:usr/lib:/usr/local/lib, unless building @@ -74,10 +78,6 @@ LEX = `if [ -f ../flex/flex ] ; then echo ../flex/flex ; else echo flex ; fi` # which may have the form: LIB_PATH=/lib:/usr/local/lib LIB_PATH = -# Additional libraries which are used when ld is built native. This -# is set by some host makefile fragments. -NATIVE_LIB_DIRS = - BASEDIR = $(srcdir)/.. BFDDIR = $(BASEDIR)/bfd INCDIR = $(BASEDIR)/include @@ -104,8 +104,8 @@ TEXI2ROFF=texi2roff ROFF = groff #stuff for self hosting (can be overridden in config file). -HOSTING_CRT0 = /lib/crt0.o -HOSTING_LIBS = `if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else gcc -print-libgcc-file-name; fi` -lc +HOSTING_CRT0 = @HOSTING_CRT0@ +HOSTING_LIBS = @HOSTING_LIBS@ HOSTING_EMU = -m $(EMUL) # These were used by `make check-cdtest' @@ -169,9 +169,6 @@ LD_PROG = ld.new all: $(LD_PROG) .PHONY: all -### Host, target, and site specific Makefile fragments come in here. -#### - LINTFLAGS = $(INCLUDES) $(EXTRA_DEF) # The .cc suffix was used by `make check-cdtest'. @@ -185,7 +182,7 @@ LINTFLAGS = $(INCLUDES) $(EXTRA_DEF) #.cc.o: # $(CXX) -c -I$(srcdir) $(CXXFLAGS) $(CFLAGS) $< -ALL_CFLAGS = $(INCLUDES) $(HDEFINES) $(TDEFINES) $(CDEFINES) $(CFLAGS) +ALL_CFLAGS = $(INCLUDES) @HDEFINES@ $(CFLAGS) .c.o: $(CC) -c $(ALL_CFLAGS) $< @@ -193,7 +190,6 @@ ALL_CFLAGS = $(INCLUDES) $(HDEFINES) $(TDEFINES) $(CDEFINES) $(CFLAGS) BFDLIB = ../bfd/libbfd.a LIBIBERTY = ../libiberty/libiberty.a - ALL_EMULATIONS = ea29k.o ealpha.o earmaoutl.o earmaoutb.o \ ecoff_sparc.o eebmon29k.o \ eelf32_sparc.o eelf32bmip.o eelf32lmip.o eelf32ppc.o eelf32lppc.o \ @@ -206,7 +202,7 @@ ALL_EMULATIONS = ea29k.o ealpha.o earmaoutl.o earmaoutb.o \ emipsidt.o emipsidtl.o emipslit.o enews.o ens32knbsd.o eppcnw.o \ eriscix.o esa29200.o eshl.o esh.o esparclynx.o esparcnbsd.o \ est2000.o esun3.o esun4.o evanilla.o evax.o evsta.o \ - ez8001.o ez8002.o ei386pe.o earmpe.o + ez8001.o ez8002.o ei386pe.o earmpe.o eelf32vr4300.o eelf32vr4300el.o CFILES = ldctor.c ldemul.c ldexp.c ldfile.c ldlang.c \ ldmain.c ldmisc.c ldver.c ldwrite.c lexsup.c \ @@ -217,7 +213,7 @@ HFILES = config.h ld.h ldctor.h ldemul.h ldexp.h ldfile.h \ ldwrite.h mri.h GENERATED_CFILES = ldgram.c ldlex.c -GENERATED_HFILES = ldgram.h ldemul-list.h +GENERATED_HFILES = ldgram.h ldemul-list.h config.h OFILES = ldgram.o ldlex.o lexsup.o ldlang.o mri.o ldctor.o ldmain.o \ ldwrite.o ldexp.o ldemul.o ldver.o ldmisc.o \ @@ -239,14 +235,8 @@ ldgram.c: ldgram.y # both ldgram.c and ldgram.h simultaneously. ldgram.h: ldgram.c -# EMUL is the name of a file in the emulparams subdir, without the .sh. ldmain.o: ldmain.c config.status - if [ -z "$(EMUL)" ] ; then \ - echo "you must set a default emulation" 1>&2 ; \ - exit 1 ; \ - else \ - $(CC) -c $(INCLUDES) $(HDEFINES) $(TDEFINES) $(CDEFINES) -DDEFAULT_EMULATION='"$(EMUL)"' -DSCRIPTDIR='"$(scriptdir)"' $(CFLAGS) $< ; \ - fi + $(CC) -c -DDEFAULT_EMULATION='"$(EMUL)"' -DSCRIPTDIR='"$(scriptdir)"' $(ALL_CFLAGS) $< ldemul-list.h: Makefile (echo "/* This file is automatically generated. DO NOT EDIT! */";\ @@ -274,7 +264,7 @@ ldlex.c: ldlex.l # These all start with e so 'make clean' can find them. -GENSCRIPTS = $(SHELL) $(srcdir)/genscripts.sh ${srcdir} ${libdir} ${host_alias} ${target_alias} ${EMUL} "$(NATIVE_LIB_DIRS)" +GENSCRIPTS = $(SHELL) $(srcdir)/genscripts.sh ${srcdir} ${libdir} @host_alias@ @target_alias@ ${EMUL} "@NATIVE_LIB_DIRS@" GEN_DEPENDS = $(srcdir)/genscripts.sh $(srcdir)/emultempl/stringify.sed esun4.c: $(srcdir)/emulparams/sun4.sh \ @@ -284,7 +274,7 @@ esun3.c: $(srcdir)/emulparams/sun3.sh \ $(srcdir)/emultempl/sunos.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS} ${GENSCRIPTS} sun3 earmpe.c: $(srcdir)/emulparams/armpe.sh \ - $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/armpe.sc ${GEN_DEPENDS} + $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS} ${GENSCRIPTS} armpe evsta.c: $(srcdir)/emulparams/vsta.sh \ $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS} @@ -305,7 +295,7 @@ ehp3hpux.c: $(srcdir)/emulparams/hp3hpux.sh \ $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS} ${GENSCRIPTS} hp3hpux ei386pe.c: $(srcdir)/emulparams/i386pe.sh \ - $(srcdir)/emultempl/i386pe.em $(srcdir)/scripttempl/i386pe.sc ${GEN_DEPENDS} + $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS} ${GENSCRIPTS} i386pe ehppaelf.c: $(srcdir)/emulparams/hppaelf.sh \ $(srcdir)/emultempl/hppaelf.em $(srcdir)/scripttempl/hppaelf.sc ${GEN_DEPENDS} @@ -421,6 +411,12 @@ eelf32bmip.c: $(srcdir)/emulparams/elf32bmip.sh \ eelf32lmip.c: $(srcdir)/emulparams/elf32lmip.sh \ $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} ${GENSCRIPTS} elf32lmip +eelf32vr4300.c: $(srcdir)/emulparams/elf32vr4300.sh \ + $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} + ${GENSCRIPTS} elf32vr4300 +eelf32vr4300el.c: $(srcdir)/emulparams/elf32vr4300el.sh \ + $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} + ${GENSCRIPTS} elf32vr4300el ealpha.c: $(srcdir)/emulparams/alpha.sh \ $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/alpha.sc ${GEN_DEPENDS} ${GENSCRIPTS} alpha @@ -506,8 +502,8 @@ $(LD_PROG): $(OFILES) $(BFDLIB) $(LIBIBERTY) $(CC) $(CFLAGS) $(LDFLAGS) -o $(LD_PROG) $(OFILES) $(BFDLIB) $(LIBIBERTY) $(EXTRALIBS) # The generated emulation files mostly have the same dependencies. -$(EMULATION_OFILES): ../bfd/bfd.h ../bfd/sysdep.h $(INCDIR)/bfdlink.h \ - ld.h ldmain.h ldemul.h ldfile.h ldmisc.h ldexp.h ldlang.h config.h \ +$(EMULATION_OFILES): ../bfd/bfd.h sysdep.h config.h $(INCDIR)/bfdlink.h \ + ld.h ldmain.h ldemul.h ldfile.h ldmisc.h ldexp.h ldlang.h \ ldctor.h ldexp.h ldlang.h # These targets are for the dejagnu testsuites. The file site.exp @@ -522,16 +518,16 @@ site.exp: ./config.status Makefile @echo "# Do not edit here. If you wish to override these" >> ./tmp0 @echo "# values, add them to the last section" >> ./tmp0 @echo "# HOST AND TARGET INFO" >> ./tmp0 - @echo "set host_os $(host_os)" >> ./tmp0 - @echo "set host_alias $(host_alias)" >> ./tmp0 - @echo "set host_cpu $(host_cpu)" >> ./tmp0 - @echo "set host_vendor $(host_vendor)" >> ./tmp0 - @echo "set target_os $(target_os)" >> ./tmp0 - @echo "set target_alias $(target_alias)" >> ./tmp0 - @echo "set target_cpu $(target_cpu)" >> ./tmp0 - @echo "set target_vendor $(target_vendor)" >> ./tmp0 - @echo "set host_triplet $(host_canonical)" >> ./tmp0 - @echo "set target_triplet $(target_canonical)" >> ./tmp0 + @echo "set host_os @host_os@" >> ./tmp0 + @echo "set host_alias @host_alias@" >> ./tmp0 + @echo "set host_cpu @host_cpu@" >> ./tmp0 + @echo "set host_vendor @host_vendor@" >> ./tmp0 + @echo "set target_os @target_os@" >> ./tmp0 + @echo "set target_alias @target_alias@" >> ./tmp0 + @echo "set target_cpu @target_cpu@" >> ./tmp0 + @echo "set target_vendor @target_vendor@" >> ./tmp0 + @echo "set host_triplet @host@" >> ./tmp0 + @echo "set target_triplet @target@" >> ./tmp0 @echo "# DIRECTORY INFO" >> ./tmp0 @echo "set objdir `pwd`" >> ./tmp0 @echo "" >> ./tmp0 @@ -834,7 +830,7 @@ clean-info: dep.sed: dep-in.sed config.status sed <$(srcdir)/dep-in.sed >dep.sed \ -e 's!@INCDIR@!$(INCDIR)!' \ - -e 's!@srcdir@!$(srcdir)!' + -e 's!@SRCDIR@!$(srcdir)!' dep: .dep sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < Makefile > tmp-Makefile @@ -854,8 +850,15 @@ force: .PHONY: force -Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag) - $(SHELL) ./config.status +Makefile: Makefile.in config.status + CONFIG_FILES=Makefile CONFIG_HEADERS= $(SHELL) ./config.status + +config.h: stamp-h ; @true +stamp-h: config.h.in config.status + CONFIG_FILES= CONFIG_HEADERS=config.h $(SHELL) ./config.status + +config.status: configure configure.host + $(SHELL) ./config.status --recheck # What appears below is generated by a hacked mkdep using gcc -MM. @@ -863,56 +866,56 @@ Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag) # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. ldctor.o: ldctor.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ - $(INCDIR)/obstack.h ../bfd/sysdep.h $(INCDIR)/fopen-same.h \ + $(INCDIR)/obstack.h sysdep.h config.h $(INCDIR)/fopen-same.h \ $(INCDIR)/bfdlink.h ld.h ldexp.h ldlang.h ldmisc.h \ ldgram.h ldmain.h ldctor.h ldemul.o: ldemul.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ - $(INCDIR)/obstack.h ../bfd/sysdep.h $(INCDIR)/fopen-same.h \ - config.h ld.h ldemul.h ldmisc.h ldexp.h ldlang.h ldfile.h \ - ldmain.h ldemul-list.h + $(INCDIR)/obstack.h sysdep.h config.h $(INCDIR)/fopen-same.h \ + ld.h ldemul.h ldmisc.h ldexp.h ldlang.h ldfile.h ldmain.h \ + ldemul-list.h ldexp.o: ldexp.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ - $(INCDIR)/obstack.h ../bfd/sysdep.h $(INCDIR)/fopen-same.h \ + $(INCDIR)/obstack.h sysdep.h config.h $(INCDIR)/fopen-same.h \ $(INCDIR)/bfdlink.h ld.h ldmain.h ldmisc.h ldexp.h \ ldgram.h ldlang.h ldfile.o: ldfile.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ - $(INCDIR)/obstack.h ../bfd/sysdep.h $(INCDIR)/fopen-same.h \ + $(INCDIR)/obstack.h sysdep.h config.h $(INCDIR)/fopen-same.h \ $(INCDIR)/bfdlink.h ld.h ldmisc.h ldexp.h ldlang.h \ ldfile.h ldmain.h ldgram.h ldlex.h ldemul.h ldlang.o: ldlang.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ - $(INCDIR)/obstack.h ../bfd/sysdep.h $(INCDIR)/fopen-same.h \ + $(INCDIR)/obstack.h sysdep.h config.h $(INCDIR)/fopen-same.h \ $(INCDIR)/libiberty.h $(INCDIR)/bfdlink.h ld.h ldmain.h \ ldgram.h ldexp.h ldlang.h ldemul.h ldlex.h ldmisc.h \ ldctor.h ldfile.h ldmain.o: ldmain.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ - $(INCDIR)/obstack.h ../bfd/sysdep.h $(INCDIR)/fopen-same.h \ + $(INCDIR)/obstack.h sysdep.h config.h $(INCDIR)/fopen-same.h \ $(INCDIR)/libiberty.h $(INCDIR)/progress.h $(INCDIR)/bfdlink.h \ - config.h ld.h ldmain.h ldmisc.h ldwrite.h ldgram.h \ - ldexp.h ldlang.h ldemul.h ldlex.h ldfile.h ldctor.h + ld.h ldmain.h ldmisc.h ldwrite.h ldgram.h ldexp.h ldlang.h \ + ldemul.h ldlex.h ldfile.h ldctor.h ldmisc.o: ldmisc.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ - $(INCDIR)/obstack.h ../bfd/sysdep.h $(INCDIR)/fopen-same.h \ + $(INCDIR)/obstack.h sysdep.h config.h $(INCDIR)/fopen-same.h \ ld.h ldmisc.h ldexp.h ldlang.h ldgram.h ldlex.h ldmain.h \ ldfile.h ldver.o: ldver.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ - $(INCDIR)/obstack.h ../bfd/sysdep.h $(INCDIR)/fopen-same.h \ + $(INCDIR)/obstack.h sysdep.h config.h $(INCDIR)/fopen-same.h \ ld.h ldver.h ldemul.h ldmain.h ldwrite.o: ldwrite.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ - $(INCDIR)/obstack.h ../bfd/sysdep.h $(INCDIR)/fopen-same.h \ + $(INCDIR)/obstack.h sysdep.h config.h $(INCDIR)/fopen-same.h \ $(INCDIR)/bfdlink.h ld.h ldexp.h ldlang.h ldwrite.h \ ldmisc.h ldgram.h ldmain.h lexsup.o: lexsup.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ - $(INCDIR)/obstack.h ../bfd/sysdep.h $(INCDIR)/fopen-same.h \ - $(INCDIR)/getopt.h $(INCDIR)/bfdlink.h config.h ld.h \ - ldmain.h ldmisc.h ldexp.h ldlang.h ldgram.h ldlex.h \ - ldfile.h ldver.h + $(INCDIR)/obstack.h sysdep.h config.h $(INCDIR)/fopen-same.h \ + $(INCDIR)/getopt.h $(INCDIR)/bfdlink.h ld.h ldmain.h \ + ldmisc.h ldexp.h ldlang.h ldgram.h ldlex.h ldfile.h \ + ldver.h ldemul.h mri.o: mri.c ../bfd/bfd.h $(INCDIR)/ansidecl.h $(INCDIR)/obstack.h \ - ../bfd/sysdep.h $(INCDIR)/fopen-same.h ld.h ldexp.h \ + sysdep.h config.h $(INCDIR)/fopen-same.h ld.h ldexp.h \ ldlang.h ldmisc.h mri.h ldgram.h ldgram.o: ldgram.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ - $(INCDIR)/obstack.h ../bfd/sysdep.h $(INCDIR)/fopen-same.h \ + $(INCDIR)/obstack.h sysdep.h config.h $(INCDIR)/fopen-same.h \ $(INCDIR)/bfdlink.h ld.h ldexp.h ldver.h ldlang.h ldemul.h \ ldfile.h ldmisc.h ldmain.h mri.h ldlex.h -ldlex.o: ldlex.c ../bfd/bfd.h $(INCDIR)/obstack.h ../bfd/sysdep.h \ - $(INCDIR)/fopen-same.h ld.h ldgram.h ldmisc.h ldexp.h \ - ldlang.h ldfile.h ldlex.h ldmain.h +ldlex.o: ldlex.c ../bfd/bfd.h $(INCDIR)/obstack.h sysdep.h \ + config.h $(INCDIR)/fopen-same.h ld.h ldgram.h ldmisc.h \ + ldexp.h ldlang.h ldfile.h ldlex.h ldmain.h # IF YOU PUT ANYTHING HERE IT WILL GO AWAY |