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
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