aboutsummaryrefslogtreecommitdiff
path: root/ld/Makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'ld/Makefile.in')
-rw-r--r--ld/Makefile.in82
1 files changed, 48 insertions, 34 deletions
diff --git a/ld/Makefile.in b/ld/Makefile.in
index 34c55e7..2c3f1f0 100644
--- a/ld/Makefile.in
+++ b/ld/Makefile.in
@@ -115,12 +115,14 @@ LD_PROG = ld.new
BFDLIB=./../bfd/libbfd.a
LIBIBERTY=./../libiberty/libiberty.a
-ALL_EMULATIONS=ld__lnk960.o ld__sun3.o ld__i386aout.o \
- ld__go32.o ld__m88kbcs.o ld__a29k.o ld__news.o ld__hp300bsd.o ld__h8300hms.o ld__ebmon29k.o \
- ld__sun4.o ld__gld960.o ld__vanilla.o ld__h8300xray.o ld__st2000.o ld__sa29200.o
+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
EMULATION_OFILES=${ALL_EMULATIONS}
-#EMULATION_OFILES=ld__${EMUL}.o ${OTHER_EMULATIONS}
+#EMULATION_OFILES=em_${EMUL}.o ${OTHER_EMULATIONS}
OFILES= ldgram.o ldlex.o lexsup.o ldlang.o mri.o ldctor.o ldmain.o ldindr.o \
ldwarn.o ldwrite.o ldexp.o ldemul.o ldver.o ldmisc.o ldsym.o \
@@ -133,11 +135,11 @@ HEADERS=config.h ldmain.h ldmain.h ldwarn.h ldmisc.h ldindr.h \
MANSOURCES=ld.tex
LDCSOURCES=ldlang.c lexsup.c ldctor.c mri.c ldindr.c ldmain.c ldwrite.c ldwarn.c ldlnk960.c \
- ld__gld.c ld__sun3.c ld__go32.c ld__m88k.c ld__ebmon29k.c \
+ em_gld.c em_sun3.c em_go32.c em_m88k.c em_ebmon29k.c \
ldgld960.c ldemul.c ldver.c ldmisc.c ldexp.c ldsym.c ldfile.c \
relax.c lderror.c
-GENERATED_SOURCES=ldgram.c ldlex.c ld__*.c ldemul-list.h
+GENERATED_SOURCES=ldgram.c ldlex.c em_*.c ldemul-list.h
GENERATED_HEADERS=ldgram.h ldemul-list.h
LDSOURCES=$(LDCSOURCES) ldgram.y ldlex.l ldgram.h
@@ -147,7 +149,7 @@ BFDSOURCES=../../bfd/common/*.c
SOURCES= $(LDSOURCES) $(BFDSOURCES)
LINTSOURCES= $(LDCSOURCES) $(BFDSOURCES) $(GENERATED_SOURCES)
-STAGESTUFF = *.x *.x[runN] *.sc[runN] $(GENERATED_SOURCES) $(GENERATED_HEADERS) $(OFILES) $(LD_PROG) mkscript
+STAGESTUFF = *.x *.x[runN] *.sc[runN] $(GENERATED_SOURCES) $(GENERATED_HEADERS) $(OFILES) mkscript
all: Makefile $(LD_PROG)
@@ -165,13 +167,13 @@ ldmain.o: ldmain.c
ldemul-list.h: Makefile
(echo "/* This file is automatically generated. DO NOT EDIT! */";\
for f in `echo " " ${EMULATION_OFILES} "" \
- | sed -e 's/ld__/ld/g' -e 's/ ld/ /g' -e 's/[.]o//g'`; do \
+ | sed -e 's/em_/ld/g' -e 's/ ld/ /g' -e 's/[.]o//g'`; do \
echo "extern ld_emulation_xfer_type ld_$${f}_emulation;"; \
done;\
echo "";\
echo "#define EMULATION_LIST \\";\
for f in `echo " " ${EMULATION_OFILES} "" \
- | sed -e 's/ld__/ld/g' -e 's/ ld/ /g' -e 's/[.]o//g'`; do \
+ | sed -e 's/em_/ld/g' -e 's/ ld/ /g' -e 's/[.]o//g'`; do \
echo " &ld_$${f}_emulation, \\"; \
done;\
echo " 0") >ldemul-list.h
@@ -182,59 +184,62 @@ ldlex.c: ldlex.l
$(LEX) -I -Cem $(srcdir)/ldlex.l
mv lex.yy.c ldlex.c
-# These all start with ld__ so 'make clean' can find them.
+# These all start with em_ so 'make clean' can find them.
GENSCRIPTS=sh $(srcdir)/genscripts.sh ${srcdir} ${host_alias} ${target_alias}
GEN_DEPENDS=./mkscript $(srcdir)/genscripts.sh
-ld__sun4.c: $(srcdir)/sun4.sh \
+em_sun4.c: $(srcdir)/sun4.sh \
$(srcdir)/generic.em $(srcdir)/aout.sc-sh ${GEN_DEPENDS}
${GENSCRIPTS} sun4.sh
-ld__sun3.c: $(srcdir)/sun3.sh \
+em_sun3.c: $(srcdir)/sun3.sh \
$(srcdir)/generic.em $(srcdir)/aout.sc-sh ${GEN_DEPENDS}
${GENSCRIPTS} sun3.sh
-ld__go32.c: $(srcdir)/go32.sh \
+em_go32.c: $(srcdir)/go32.sh \
$(srcdir)/generic.em $(srcdir)/aout.sc-sh ${GEN_DEPENDS}
${GENSCRIPTS} go32.sh
-ld__news.c: $(srcdir)/news.sh \
+em_news.c: $(srcdir)/news.sh \
$(srcdir)/generic.em $(srcdir)/aout.sc-sh ${GEN_DEPENDS}
${GENSCRIPTS} news.sh
-ld__hp300bsd.c: $(srcdir)/hp300bsd.sh \
+em_hp300bsd.c: $(srcdir)/hp300bsd.sh \
$(srcdir)/generic.em $(srcdir)/aout.sc-sh ${GEN_DEPENDS}
${GENSCRIPTS} hp300bsd.sh
-ld__i386aout.c: $(srcdir)/i386aout.sh \
+em_i386aout.c: $(srcdir)/i386aout.sh \
$(srcdir)/generic.em $(srcdir)/aout.sc-sh ${GEN_DEPENDS}
${GENSCRIPTS} i386aout.sh
-ld__ebmon29k.c: $(srcdir)/ebmon29k.sh \
+em_ebmon29k.c: $(srcdir)/ebmon29k.sh \
$(srcdir)/generic.em $(srcdir)/ebmon29k.sc-sh ${GEN_DEPENDS}
${GENSCRIPTS} ebmon29k.sh
-ld__sa29200.c: $(srcdir)/sa29200.sh \
+em_sa29200.c: $(srcdir)/sa29200.sh \
$(srcdir)/generic.em $(srcdir)/sa29200.sc-sh ${GEN_DEPENDS}
${GENSCRIPTS} sa29200.sh
-ld__a29k.c: $(srcdir)/a29k.sh \
+em_a29k.c: $(srcdir)/a29k.sh \
$(srcdir)/generic.em $(srcdir)/a29k.sc-sh ${GEN_DEPENDS}
${GENSCRIPTS} a29k.sh
-ld__m88kbcs.c: $(srcdir)/m88kbcs.sh \
+em_m88kbcs.c: $(srcdir)/m88kbcs.sh \
$(srcdir)/generic.em $(srcdir)/h8300hms.sc-sh ${GEN_DEPENDS}
${GENSCRIPTS} m88kbcs.sh
-ld__h8300hms.c: $(srcdir)/h8300hms.sh \
+em_h8300hms.c: $(srcdir)/h8300hms.sh \
$(srcdir)/h8300hms.em $(srcdir)/h8300hms.sc-sh ${GEN_DEPENDS}
${GENSCRIPTS} h8300hms.sh
-ld__h8300xray.c: $(srcdir)/h8300xray.sh \
+em_h8300xray.c: $(srcdir)/h8300xray.sh \
$(srcdir)/h8300xray.em $(srcdir)/h8300xray.sc-sh ${GEN_DEPENDS}
${GENSCRIPTS} h8300xray.sh
-ld__st2000.c: $(srcdir)/st2000.sh \
+em_st2000.c: $(srcdir)/st2000.sh \
$(srcdir)/st2000.em $(srcdir)/st2000.sc-sh ${GEN_DEPENDS}
${GENSCRIPTS} st2000.sh
-ld__vanilla.c: $(srcdir)/vanilla.sh \
+em_vanilla.c: $(srcdir)/vanilla.sh \
$(srcdir)/vanilla.em $(srcdir)/vanilla.sc-sh ${GEN_DEPENDS}
${GENSCRIPTS} vanilla.sh
-ld__lnk960.c: $(srcdir)/lnk960.sh \
+em_lnk960.c: $(srcdir)/lnk960.sh \
$(srcdir)/lnk960.em $(srcdir)/i960.sc-sh ${GEN_DEPENDS}
${GENSCRIPTS} lnk960.sh
-ld__gld960.c: $(srcdir)/gld960.sh \
+em_gld960.c: $(srcdir)/gld960.sh \
$(srcdir)/gld960.em $(srcdir)/i960.sc-sh ${GEN_DEPENDS}
${GENSCRIPTS} gld960.sh
+em_m68kcoff.c: $(srcdir)/m68kcoff.sh \
+ $(srcdir)/generic.em $(srcdir)/m68kcoff.sc-sh ${GEN_DEPENDS}
+ ${GENSCRIPTS} m68kcoff.sh
$(LD_PROG): $(OFILES) $(BFDLIB) $(LIBIBERTY)
$(CC) $(CFLAGS) $(INCLUDES) $(HDEFINES) $(TDEFINES) $(CDEFINES) $(LDFLAGS) -o $(LD_PROG) $(OFILES) $(BFDLIB) $(LIBIBERTY) $(LOADLIBES)
@@ -363,7 +368,7 @@ ld-index.me: ld.me
######################################################################
./mkscript: $(srcdir)/mkscript.c
- $(HOST_CC) -o mkscript $(srcdir)/mkscript.c
+ $(HOST_CC) -o mkscript $(srcdir)/mkscript.c
ldlex.c: ldlex.l ldgram.h
ldlex.o: ldlex.c ldgram.h
@@ -376,23 +381,23 @@ st2000.o:st2000.c
stage1: force
-mkdir stage1
- -mv -f $(STAGESTUFF) stage1
+ -mv -f $(STAGESTUFF) $(LD_PROG) stage1
-(cd stage1 ; ln -s $(LD_PROG) ld)
stage2: force
-mkdir stage2
- -mv -f $(STAGESTUFF) stage2
+ -mv -f $(STAGESTUFF) $(LD_PROG) stage2
-(cd stage2 ; ln -s $(LD_PROG) ld)
stage3: force
-mkdir stage3
- -mv -f $(STAGESTUFF) stage3
+ -mv -f $(STAGESTUFF) $(LD_PROG) stage3
-(cd stage3 ; ln -s $(LD_PROG) ld)
against=stage2
comparison: force
- for i in $(STAGESTUFF) ; do cmp $$i $(against)/$$i ; done
+ for i in $(STAGESTUFF) $(LD_PROG) ; do cmp $$i $(against)/$$i ; done
de-stage1: force
-(cd stage1 ; mv -f * ..)
@@ -409,10 +414,19 @@ de-stage3: force
-rm ld
-rmdir stage3
-clean:
- -rm -f TAGS $(STAGESTUFF)
- -rm -f ld.?? ld.??? ldlex.[qp]
+# Stuff that should be included in a distribution:
+LDDISTSTUFF=ldgram.c ldgram.h ldlex.c ld.mm
+diststuff: $(LDDISTSTUFF)
+
+mostlyclean:
+ -rm -f $(STAGESTUFF) ld.?? ld.??? ldlex.[qp]
-rm -f ld ld1 ld2 ld3 *.o y.output cdtest cdtest.out
+clean: mostlyclean
+ -rm -f $(LD_PROG)
+distclean: clean
+ -rm -f Makefile config.status TAGS
+realclean: distclean
+ -rm -f $(LDDISTSTUFF)
lintlog:$(SOURCES) Makefile
$(LINT) -abhxzn $(LINTFLAGS) $(LINTSOURCES) \