aboutsummaryrefslogtreecommitdiff
path: root/gas/testsuite/config/makefile.rel.in
blob: 9ab11d5f575a209191854326c7376347db6b67e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
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
info:
install:
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