aboutsummaryrefslogtreecommitdiff
path: root/ld/Makefile.in
diff options
context:
space:
mode:
authorSteve Chamberlain <sac@cygnus>1992-02-01 00:50:35 +0000
committerSteve Chamberlain <sac@cygnus>1992-02-01 00:50:35 +0000
commitd20fb44510eb361bdc1f4551857e46324d3f2121 (patch)
treecee9c294dffd9ecea6bf7cc216384b00c1b245bb /ld/Makefile.in
parent17cd0f82c17f0fae6680e1877b07457278fd0804 (diff)
downloadgdb-d20fb44510eb361bdc1f4551857e46324d3f2121.zip
gdb-d20fb44510eb361bdc1f4551857e46324d3f2121.tar.gz
gdb-d20fb44510eb361bdc1f4551857e46324d3f2121.tar.bz2
A change to the makefile got lost; ldmain. forgot that it should set
DEFAULT_EMULATION, so ld didn't know who it was.
Diffstat (limited to 'ld/Makefile.in')
-rw-r--r--ld/Makefile.in17
1 files changed, 10 insertions, 7 deletions
diff --git a/ld/Makefile.in b/ld/Makefile.in
index ada503b..c4ff521 100644
--- a/ld/Makefile.in
+++ b/ld/Makefile.in
@@ -199,6 +199,9 @@ ldgram.h ldgram.c: ldgram.y
mv -f y.tab.c ldgram.c
mv -f y.tab.h ldgram.h
+ldmain.o: ldmain.c
+ $(CC) $(CFLAGS) -DDEFAULT_EMULATION=$(EMUL) -c $<
+
ldlex.c: ldlex.l
/lib/cpp -E -P $(INCLUDES) $(HDEFINES) $(TDEFINES) $(CDEFINES) $(VPATH)/ldlex.l >ldlex.p
lex -t ldlex.p >ldlex.q
@@ -268,19 +271,19 @@ $(LD_PROG): $(OFILES) $(BFDLIB) $(LIBIBERTY)
ld1: ld.new
- $(HOSTING_EMU); ./ld.new -o ld1 $(HOSTING_CRT0) $(OFILES) $(BFDLIB) $(LIBIBERTY) $(HOSTING_LIBS)
+ $(HOSTING_EMU); ./ld.new -o foo.o -r $(OFILES)
+ $(HOSTING_EMU); ./ld.new -o ld1 $(HOSTING_CRT0) foo.o $(BFDLIB) $(LIBIBERTY) $(HOSTING_LIBS)
-ld2: ld1
- #try and make life a bit harder
- $(HOSTING_EMU); ./ld1 -o foo.o -r $(OFILES)
- $(HOSTING_EMU); ./ld1 -o ld2 $(HOSTING_CRT0) foo.o $(BFDLIB) $(LIBIBERTY) $(HOSTING_LIBS)
-bootstrap: ld3
- cmp ld2 ld3
+ld2: ld1
+ $(HOSTING_EMU); ./ld1 -o ld2 $(HOSTING_CRT0) $(OFILES) $(BFDLIB) $(LIBIBERTY) $(HOSTING_LIBS)
ld3: ld2
$(HOSTING_EMU); ./ld2 -o ld3 $(HOSTING_CRT0) $(OFILES) $(BFDLIB) $(LIBIBERTY) $(HOSTING_LIBS)
+bootstrap: ld3
+ cmp ld2 ld3
+
######################################################################
# DOCUMENTATION TARGETS
# TeX output