aboutsummaryrefslogtreecommitdiff
path: root/binutils/Makefile.in
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1994-10-14 18:57:57 +0000
committerIan Lance Taylor <ian@airs.com>1994-10-14 18:57:57 +0000
commit5903dfae1f1438f057b2ac5455b1e2c46d06da6d (patch)
tree261071bf794e46a8fd34598a18596e370ae37717 /binutils/Makefile.in
parent3aba335daf402c5c9e68bbd7b798e2e8c55e00ce (diff)
downloadgdb-5903dfae1f1438f057b2ac5455b1e2c46d06da6d.zip
gdb-5903dfae1f1438f057b2ac5455b1e2c46d06da6d.tar.gz
gdb-5903dfae1f1438f057b2ac5455b1e2c46d06da6d.tar.bz2
* configure.in (configdirs): Remove definition--testsuite is no
longer configured. * Makefile.in (testsuite): Remove target. (site.exp): New target. (check): Rewrite. (clean, distclean): Don't recur into testsuite directory.
Diffstat (limited to 'binutils/Makefile.in')
-rw-r--r--binutils/Makefile.in58
1 files changed, 41 insertions, 17 deletions
diff --git a/binutils/Makefile.in b/binutils/Makefile.in
index 9d25819..34eefdc 100644
--- a/binutils/Makefile.in
+++ b/binutils/Makefile.in
@@ -168,16 +168,46 @@ FLAGS_TO_PASS = \
all: $(ADDL_LIBS) $(PROGS)
-testsuite:
- if [ -f testsuite/Makefile.in ]; then \
- (rootme=`pwd`/ ; export rootme ; \
- rootsrc=`cd $(srcdir); pwd`/ ; export rootsrc ; \
- cd testsuite; $(MAKE) FLAGS_TO_PASS=$(FLAGS_TO_PASS)); \
- else true ; fi
-
-check: force
- rootme=`pwd`; export rootme; cd testsuite ; \
- $(MAKE) check $(FLAGS_TO_PASS)
+# These targets are for the dejagnu testsuites. The file site.exp
+# contains global variables that all the testsuites will use.
+
+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 "# HOST AND TARGET INFO" >> ./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 "# DIRECTORY INFO" >> ./tmp0
+ @echo "set objdir `pwd`" >> ./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: site.exp
+ r=`pwd`; export r; \
+ srcroot=`cd ${srcdir}; pwd` ; export srcroot ; \
+ EXPECT=${EXPECT} ; export EXPECT ; \
+ if [ -f $$r/../expect/expect ] ; then \
+ TCL_LIBRARY=$${srcroot}/../tcl/library ; \
+ export TCL_LIBRARY ; fi ; \
+ $(RUNTEST) --tool binutils --srcdir $(srcdir)/testsuite \
+ $(RUNTESTFLAGS)
installcheck:
/bin/sh $(srcdir)/sanity.sh $(bindir)
@@ -307,7 +337,7 @@ srconv: srconv.o coffgrok.o $(ADDL_LIBS)
coffdump: coffdump.o coffgrok.o $(ADDL_LIBS)
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ coffdump.o coffgrok.o $(ADDL_LIBS) $(EXTRALIBS)
-sysdump.o: sysdump.c sysroff.h
+sysdump.o: sysdump.c sysroff.h sysroff.c
sysdump: sysdump.o $(ADDL_LIBS)
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ sysdump.o $(ADDL_LIBS) $(EXTRALIBS)
@@ -486,14 +516,8 @@ binutils.me: $(srcdir)/binutils.texi
mostlyclean:
-rm -f *.o *~ \#* core binutils.?? binutils.???
clean: mostlyclean
- @if [ -d testsuite ] ; then \
- cd testsuite ; $(MAKE) $(FLAGS_TO_PASS) clean ; \
- else true; fi
-rm -f $(PROGS) underscore.c
distclean:
- @if [ -d testsuite ] ; then \
- cd testsuite ; $(MAKE) $(FLAGS_TO_PASS) distclean ; \
- else true; fi
-rm -f Makefile config.status sysdep.h *.o *~ \#* core y.* \
binutils.?? binutils.??s binutils.aux binutils.log binutils.toc
-rm -f $(PROGS) underscore.c