aboutsummaryrefslogtreecommitdiff
path: root/ld/Makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'ld/Makefile.in')
-rw-r--r--ld/Makefile.in36
1 files changed, 28 insertions, 8 deletions
diff --git a/ld/Makefile.in b/ld/Makefile.in
index 926766b..4c4ccb4 100644
--- a/ld/Makefile.in
+++ b/ld/Makefile.in
@@ -71,7 +71,7 @@ LIB_PATH =
BASEDIR = ../..
INCLUDE = $(srcdir)/../include
-INCLUDES = -I. -I$(srcdir) -I$(INCLUDE)
+INCLUDES = -I. -I$(srcdir) -I$(srcdir)/../bfd -I$(INCLUDE)
# Where to find texinfo.tex to format docn with TeX
TEXIDIR = $(srcdir)/../texinfo/fsf
@@ -119,7 +119,7 @@ ALL_EMULATIONS=em_lnk960.o em_sun3.o em_i386aout.o em_go32.o \
em_m88kbcs.o em_a29k.o em_news.o em_hp300bsd.o \
em_h8300hms.o em_ebmon29k.o em_sun4.o em_gld960.o \
em_m68kcoff.o em_h8300xray.o em_st2000.o em_sa29200.o \
- em_vanilla.o em_i386coff.o em_z8ksim.o
+ em_vanilla.o em_i386coff.o em_z8ksim.o em_mipslit.o
EMULATION_OFILES=${ALL_EMULATIONS}
#EMULATION_OFILES=em_${EMUL}.o ${OTHER_EMULATIONS}
@@ -151,7 +151,7 @@ LINTSOURCES= $(LDCSOURCES) $(BFDSOURCES) $(GENERATED_SOURCES)
STAGESTUFF = *.x *.x[runN] *.sc[runN] $(GENERATED_SOURCES) $(GENERATED_HEADERS) $(OFILES) mkscript
-all: Makefile $(LD_PROG)
+all: $(LD_PROG)
check: bootstrap check-cdtest
info: ld.info
@@ -161,10 +161,19 @@ ldgram.h ldgram.c: ldgram.y
mv -f y.tab.c ldgram.c
mv -f y.tab.h ldgram.h
+
+DEF_EMUL = ` if [ -z "$(EMUL)" ] ; then \
+ echo "you must set a default emulation" 1>&2 ; \
+ exit 1 ; \
+ else \
+ echo -DDEFAULT_EMULATION='"$(EMUL)"' ; \
+ fi`
+
+
ldmain.o: ldmain.c
- $(CC) $(CFLAGS) $(INCLUDES) $(HDEFINES) $(TDEFINES) $(CDEFINES) -DDEFAULT_EMULATION='"$(EMUL)"' -c $<
+ $(CC) $(CFLAGS) $(INCLUDES) $(HDEFINES) $(TDEFINES) $(CDEFINES) $(DEF_EMUL) -c $<
-ldemul-list.h: Makefile
+ldemul-list.h:
(echo "/* This file is automatically generated. DO NOT EDIT! */";\
for f in `echo " " ${EMULATION_OFILES} "" \
| sed -e 's/em_/ld/g' -e 's/ ld/ /g' -e 's/[.]o//g'`; do \
@@ -180,7 +189,7 @@ ldemul-list.h: Makefile
ldemul.o: ldemul-list.h
-ldlex.c: ldlex.l
+ldlex.c: ldlex.l ldgram.h
$(LEX) -I -Cem $(srcdir)/ldlex.l
mv lex.yy.c ldlex.c
@@ -246,6 +255,9 @@ em_m68kcoff.c: $(srcdir)/m68kcoff.sh \
em_i386coff.c: $(srcdir)/i386coff.sh \
$(srcdir)/generic.em $(srcdir)/i386coff.sc-sh ${GEN_DEPENDS}
${GENSCRIPTS} i386coff.sh
+em_mipslit.c: $(srcdir)/mipslit.sh \
+ $(srcdir)/generic.em $(srcdir)/mips.sc-sh ${GEN_DEPENDS}
+ ${GENSCRIPTS} mipslit.sh
$(LD_PROG): $(OFILES) $(BFDLIB) $(LIBIBERTY)
$(CC) $(CFLAGS) $(INCLUDES) $(HDEFINES) $(TDEFINES) $(CDEFINES) $(LDFLAGS) -o $(LD_PROG) $(OFILES) $(BFDLIB) $(LIBIBERTY) $(LOADLIBES)
@@ -376,10 +388,17 @@ ld-index.me: ld.me
./mkscript: $(srcdir)/mkscript.c
$(HOST_CC) -o mkscript $(srcdir)/mkscript.c
-ldlex.c: ldlex.l ldgram.h
ldlex.o: ldlex.c ldgram.h
ldgram.o: ldgram.c
ldgram.c:ldgram.y
+ldexp.o: ldexp.c ldgram.h
+ldctor.o: ldctor.c ldgram.h
+ldlang.o: ldlang.c ldgram.h
+ldmain.o: ldmain.c ldgram.h
+ldwrite.o: ldwrite.c ldgram.h
+lexsup.o: lexsup.c ldgram.h
+mri.o: mri.c ldgram.h
+relax.o: relax.c ldgram.h
h8300hms.o:h8300hms.c
h8300xray.o:h8300xray.c
@@ -431,7 +450,7 @@ mostlyclean:
clean: mostlyclean
-rm -f $(LD_PROG)
distclean: clean
- -rm -f Makefile config.status TAGS
+ -rm -f Makefile config.status TAGS sysdep.h
realclean: distclean
-rm -f $(LDDISTSTUFF)
@@ -470,6 +489,7 @@ install: $(LD_PROG)
rm -f $(tooldir)/bin/ld; \
ln $(bindir)/$$n $(tooldir)/bin/ld \
|| $(INSTALL_PROGRAM) ld.new $(tooldir)/bin/ld; \
+ ln $(tooldir)/bin/ld $(tooldir)/bin/gld; \
else true; fi
install-info: info