Fix whitespace problem in my most recent entry.
[deliverable/binutils-gdb.git] / gdb / testsuite / Makefile.in
CommitLineData
c906108c
SS
1# Makefile for regression testing the GNU debugger.
2# Copyright (C) 1992, 1993, 1994, 1995, 1999 Free Software Foundation, Inc.
3
4# This file is part of GDB.
5
6# GDB is free software; you can redistribute it and/or modify
7# it under the terms of the GNU General Public License as published by
8# the Free Software Foundation; either version 2, or (at your option)
9# any later version.
10
11# GDB is distributed in the hope that it will be useful,
12# but WITHOUT ANY WARRANTY; without even the implied warranty of
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14# GNU General Public License for more details.
15
16# You should have received a copy of the GNU General Public License
17# along with this program; if not, write to the Free Software
18# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19
20VPATH = @srcdir@
21srcdir = @srcdir@
22prefix = @prefix@
23exec_prefix = @exec_prefix@
24
25host_alias = @host_alias@
26target_alias = @target_alias@
27program_transform_name = @program_transform_name@
28build_canonical = @build@
29host_canonical = @host@
30target_canonical = @target@
31target_cpu = @gdb_target_cpu@
32
33SHELL = @SHELL@
93076499 34EXEEXT = @EXEEXT@
c906108c
SS
35SUBDIRS = @subdirs@
36RPATH_ENVVAR = @RPATH_ENVVAR@
37
38EXPECT = `if [ -f $${rootme}/../../expect/expect ] ; then \
39 echo $${rootme}/../../expect/expect ; \
40 else echo expect ; fi`
41
42RUNTEST = $(RUNTEST_FOR_TARGET)
43
44RUNTESTFLAGS =
45
46RUNTEST_FOR_TARGET = `\
47 if [ -f $${srcdir}/../../dejagnu/runtest ]; then \
48 echo $${srcdir}/../../dejagnu/runtest; \
49 else \
50 if [ "$(host_canonical)" = "$(target_canonical)" ]; then \
51 echo runtest; \
52 else \
53 t='$(program_transform_name)'; echo runtest | sed -e '' $$t; \
54 fi; \
55 fi`
56
57#### host, target, and site specific Makefile frags come in here.
58
59# The use of $$(x_FOR_TARGET) reduces the command line length by not
60# duplicating the lengthy definition.
61
62TARGET_FLAGS_TO_PASS = \
63 "prefix=$(prefix)" \
64 "exec_prefix=$(exec_prefix)" \
65 "against=$(against)" \
66 'CC=$$(CC_FOR_TARGET)' \
67 "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
68 "CFLAGS=$(TESTSUITE_CFLAGS)" \
69 "CHILLFLAGS=$(CHILLFLAGS)" \
70 'CHILL=$$(CHILL_FOR_TARGET)' \
71 "CHILL_FOR_TARGET=$(CHILL_FOR_TARGET)" \
72 "CHILL_LIB=$(CHILL_LIB)" \
73 'CXX=$$(CXX_FOR_TARGET)' \
74 "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \
75 "CXXFLAGS=$(CXXFLAGS)" \
76 "MAKEINFO=$(MAKEINFO)" \
77 "INSTALL=$(INSTALL)" \
78 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
79 "INSTALL_DATA=$(INSTALL_DATA)" \
80 "LDFLAGS=$(LDFLAGS)" \
81 "LIBS=$(LIBS)" \
82 "RUNTEST=$(RUNTEST)" \
83 "RUNTESTFLAGS=$(RUNTESTFLAGS)"
84
85all:
86 @echo "Nothing to be done for all..."
87
88.NOEXPORT:
89INFODIRS=doc
90info:
91install-info:
92dvi:
085dd6e6
JM
93html:
94install-html:
c906108c
SS
95
96install:
97
98uninstall: force
99
100site.exp: ./config.status Makefile
101 @echo "Making a new config file..."
102 -@rm -f ./tmp?
103 @touch site.exp
104 -@mv site.exp site.bak
105 @echo "## these variables are automatically generated by make ##" > ./tmp0
106 @echo "# Do not edit here. If you wish to override these values" >> ./tmp0
107 @echo "# add them to the last section" >> ./tmp0
108 @echo "set host_alias $(host_alias)" >> ./tmp0
109 @echo "set host_triplet ${host_canonical}" >> ./tmp0
110 @echo "set target_alias $(target_alias)" >> ./tmp0
111 @echo "set target_triplet ${target_canonical}" >> ./tmp0
112 @echo "set build_triplet ${build_canonical}" >> ./tmp0
113 @echo "set srcdir ${srcdir}" >> ./tmp0
114 @echo "set tool gdb" >> ./tmp0
115 @echo "## All variables above are generated by configure. Do Not Edit ##" >> ./tmp0
116 @cat ./tmp0 > site.exp
117 @cat site.bak | sed \
118 -e '1,/^## All variables above are.*##/ d' >> site.exp
119 -@rm -f ./tmp?
120
121installcheck:
122
123check: site.exp all just-check
124
125just-check:
126 rootme=`pwd`; export rootme; \
127 srcdir=${srcdir} ; export srcdir ; \
128 EXPECT=${EXPECT} ; export EXPECT ; \
93076499 129 EXEEXT=${EXEEXT} ; export EXEEXT ; \
c906108c
SS
130 $(RPATH_ENVVAR)=$$rootme/../../expect:$$rootme/../../libstdc++:$$rootme/../../tk/unix:$$rootme/../../tcl/unix:$$rootme/../../bfd:$$rootme/../../opcodes:$$$(RPATH_ENVVAR); \
131 export $(RPATH_ENVVAR); \
132 if [ -f $${rootme}/../../expect/expect ] ; then \
133 TCL_LIBRARY=$${srcdir}/../../tcl/library ; \
134 export TCL_LIBRARY ; fi ; \
135 $(RUNTEST) $(RUNTESTFLAGS)
136
137subdir_do: force
138 @for i in $(DODIRS); do \
139 if [ -d ./$$i ] ; then \
140 if (rootme=`pwd`/ ; export rootme ; \
141 rootsrc=`cd $(srcdir); pwd`/ ; export rootsrc ; \
142 cd ./$$i; \
143 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(DO)) ; then true ; \
144 else exit 1 ; fi ; \
145 else true ; fi ; \
146 done
147
148force:;
149
150subdirs:
151 for dir in ${SUBDIRS} ; \
152 do \
153 echo "$$dir:" ; \
154 if [ -d $$dir ] ; then \
155 (rootme=`pwd`/ ; export rootme ; \
156 rootsrc=`cd $(srcdir); pwd`/ ; export rootsrc ; \
157 cd $$dir; $(MAKE) $(TARGET_FLAGS_TO_PASS)); \
158 fi; \
159 done
160
161clean mostlyclean:
162 -rm -f *~ core *.o a.out xgdb *.x *.grt
163 if [ x"${SUBDIRS}" != x ] ; then \
164 for dir in ${SUBDIRS}; \
165 do \
166 echo "$$dir:"; \
167 if [ -d $$dir ]; then \
168 (cd $$dir; $(MAKE) clean); \
169 fi; \
170 done ; \
171 else true; fi
172
173distclean maintainer-clean realclean: clean
174 -rm -f *~ core
175 -rm -f Makefile config.status *-init.exp
176 -rm -fr *.log summary detail *.plog *.sum *.psum site.*
177 if [ x"${SUBDIRS}" != x ] ; then \
178 for dir in ${SUBDIRS}; \
179 do \
180 echo "$$dir:"; \
181 if [ -d $$dir ]; then \
182 (cd $$dir; $(MAKE) distclean); \
183 fi; \
184 done ; \
185 else true; fi
186
187Makefile : Makefile.in config.status $(host_makefile_frag) $(target_makefile_frag)
188 $(SHELL) config.status
189
190config.status: configure
191 $(SHELL) config.status --recheck
This page took 0.102805 seconds and 4 git commands to generate.