aboutsummaryrefslogtreecommitdiff
path: root/gas/testsuite
diff options
context:
space:
mode:
authorRob Savoye <rob@cygnus>1993-05-26 01:44:49 +0000
committerRob Savoye <rob@cygnus>1993-05-26 01:44:49 +0000
commit2a775d5158650960c81c460030d4aa05291ef98f (patch)
tree02d7f7fceedfa646b5a7a61e824f4e490eb1d878 /gas/testsuite
parent63cef7d78f93d35f34abff5a44c152c249b38e40 (diff)
downloadgdb-2a775d5158650960c81c460030d4aa05291ef98f.zip
gdb-2a775d5158650960c81c460030d4aa05291ef98f.tar.gz
gdb-2a775d5158650960c81c460030d4aa05291ef98f.tar.bz2
Makefile fragment that supports *only* make check. (for releases)
Diffstat (limited to 'gas/testsuite')
-rw-r--r--gas/testsuite/config/makefile.rel.in76
1 files changed, 76 insertions, 0 deletions
diff --git a/gas/testsuite/config/makefile.rel.in b/gas/testsuite/config/makefile.rel.in
new file mode 100644
index 0000000..2a27671
--- /dev/null
+++ b/gas/testsuite/config/makefile.rel.in
@@ -0,0 +1,76 @@
+srcdir = .
+prefix = /usr/local
+
+SHELL = /bin/sh
+
+CFLAGS = -g
+SUBDIRS =
+
+FLAGS_TO_PASS = \
+ "CC=$(CC)" \
+ "CFLAGS=$(CFLAGS)" \
+ "LDFLAGS=$(LDFLAGS)" \
+ "RUNTEST=$(RUNTEST)" \
+ "RUNTESTFLAGS=$(RUNTESTFLAGS)"
+
+#### host, target, and site specific Makefile frags come in here.
+
+all: subdirs
+
+.PHONY: check installcheck
+check:
+installcheck:
+
+.NOEXPORT:
+MAKEOVERRIDES=
+
+check: force
+ rootme=`pwd`; export rootme; $(MAKE) DO=check DODIRS=testsuite subdir_do
+
+subdir_do: force
+ @for i in $(DODIRS); do \
+ if [ -d ./$$i ] ; then \
+ if (rootme=`pwd`/ ; export rootme ; \
+ rootsrc=`cd $(srcdir); pwd`/ ; export rootsrc ; \
+ cd ./$$i; \
+ $(MAKE) $(FLAGS_TO_PASS) $(DO)) ; then true ; \
+ else exit 1 ; fi ; \
+ else true ; fi ; \
+ done
+force:
+
+
+subdirs:
+ @for dir in ${SUBDIRS}; \
+ do \
+ echo "$$dir:"; \
+ if [ -d $$dir ]; then \
+ (rootme=`pwd`/ ; export rootme ; \
+ rootsrc=`cd $(srcdir); pwd`/ ; export rootsrc ; \
+ cd $$dir; $(MAKE) $(FLAGS_TO_PASS)); \
+ fi; \
+ done
+
+clean:
+ -rm -f *~ core *.o a.out xgdb *.x
+ for dir in ${SUBDIRS}; \
+ do \
+ echo "$$dir:"; \
+ if [ -d $$dir ]; then \
+ (cd $$dir; $(MAKE) clean); \
+ fi; \
+ done
+
+distclean: clean
+ -rm -f *~ core
+ -rm -f Makefile config.status *-init.exp site.*
+ -rm -fr *.log summary detail
+ for dir in ${SUBDIRS}; \
+ do \
+ echo "$$dir:"; \
+ (cd $$dir; $(MAKE) distclean); \
+ done
+
+Makefile : $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
+ $(SHELL) ./config.status
+