check targets reimplemented to old way.
authorJeffrey Wheat <cassidy@cygnus>
Thu, 12 Aug 1993 15:54:30 +0000 (15:54 +0000)
committerJeffrey Wheat <cassidy@cygnus>
Thu, 12 Aug 1993 15:54:30 +0000 (15:54 +0000)
ld/ChangeLog
ld/Makefile.in

index 219862bdda474e9c0b7b3d99e04f8b31f6e65a6c..b5cc0cd93bcdaf6c46bc97bdd4484433d3b775e4 100644 (file)
@@ -1,3 +1,7 @@
+Thu Aug 12 08:52:29 1993  Jeffrey Wheat  (cassidy@cygnus.com)
+
+       * Makefile.in: check targets reimplemented to old way.
+
 Wed Aug 11 08:26:11 1993  Ian Lance Taylor  (ian@cygnus.com)
 
        * config/i386v.mh, config/irix4.mh: Use gcc
index c47fc47389d6fc7d469354b735e0bbe619aaec58..ebdc8144849259b31dc799a0e489f3975184e5b3 100644 (file)
@@ -253,7 +253,7 @@ em_a29k.c: $(srcdir)/emulparams/a29k.sh \
   $(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}
@@ -310,10 +310,49 @@ em_mipsidtl.c: $(srcdir)/emulparams/mipsidtl.sh \
 $(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.
@@ -344,6 +383,7 @@ cdtest: cdtest-main.o cdtest-func.o cdtest-foo.o ld.new
 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,
@@ -505,7 +545,7 @@ mostlyclean:
 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)