$(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/a29k.sc ${GEN_DEPENDS}
${GENSCRIPTS} a29k
em_m88kbcs.c: $(srcdir)/emulparams/m88kbcs.sh \
- $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/m88kbcs.sc ${GEN_DEPENDS}
+ $(srcdir)/emultempl/m88kbcs.em $(srcdir)/scripttempl/m88kbcs.sc ${GEN_DEPENDS}
${GENSCRIPTS} m88kbcs
em_h8300.c: $(srcdir)/emulparams/h8300.sh \
$(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8300.sc ${GEN_DEPENDS}
$(LD_PROG): $(OFILES) $(BFDLIB) $(LIBIBERTY)
$(CC) $(INCLUDES) $(HDEFINES) $(TDEFINES) $(CDEFINES) $(LDFLAGS) -o $(LD_PROG) $(OFILES) $(BFDLIB) $(LIBIBERTY) $(LOADLIBES) $(CFLAGS)
-
-# CHECK TARGETS
+# START OF CHECK TARGETS
+site.exp: ./config.status Makefile
+ @echo "Making a new config file..."
+ -@rm -f ./tmp?
+ @touch site.exp
+
+ -@mv site.exp site.bak
+ @echo "## variables are automatically generated by make ##" > ./tmp0
+ @echo "# Do not edit here. If you wish to override these" >> ./tmp0
+ @echo "# values, add them to the last section" >> ./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 srcdir ${srcdir}/testsuite" >> ./tmp0
+ @echo "set objdir `pwd`" >> ./tmp0
+ @echo "set tool ld" >> ./tmp0
+ @echo "" >> ./tmp0
+ @echo "# LD DEPENDANCIES" >> ./tmp0
+ @echo "set OFILES \"${OFILES}\"" >> ./tmp0
+ @echo "set BFDLIB \"${BFDLIB}\"" >> ./tmp0
+ @echo "set LIBIBERTY \"${LIBIBERTY}\"" >> ./tmp0
+ @echo "set HOSTING_EMU \"${HOSTING_EMU}\"" >> ./tmp0
+ @echo "set HOSTING_CRT0 \"${HOSTING_CRT0}\"" >> ./tmp0
+ @echo "set HOSTING_LIBS \"${HOSTING_LIBS}\"" >> ./tmp0
+ @echo "" >> ./tmp0
+ @echo "## Variables generated by configure. Do Not Edit ##" >> ./tmp0
+ @cat ./tmp0 > site.exp
+ @cat site.bak | sed \
+ -e '1,/^## Variables generated by.*##/ d' >> site.exp
+ -@rm -f ./tmp?
check: bootstrap check-cdtest
+
+new-check: ld.new site.exp
+ $(RUNTEST) $(RUNTESTFLAGS)
+
installcheck:
# Rules for testing by relinking ld itself.
check-cdtest: cdtest $(srcdir)/cdtest.exp
./cdtest >cdtest.out
diff $(srcdir)/cdtest.exp cdtest.out
+# END OF CHECK TARGETS
# DOCUMENTATION TARGETS
# Manual configuration file; not usually attached to normal configuration,
clean: mostlyclean
-rm -f $(LD_PROG)
distclean: clean
- -rm -fr Makefile config.status TAGS sysdep.h ldscripts
+ -rm -fr Makefile config.status TAGS sysdep.h ldscripts site.exp
realclean: distclean
-rm -f $(LDDISTSTUFF)