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