]> Git Repo - binutils.git/blob - gdb/testsuite/Makefile.in
*** empty log message ***
[binutils.git] / gdb / testsuite / Makefile.in
1 # Makefile for regression testing the GNU debugger.
2 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000
3 # Free Software Foundation, Inc.
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
21 VPATH = @srcdir@
22 srcdir = @srcdir@
23 prefix = @prefix@
24 exec_prefix = @exec_prefix@
25
26 host_alias = @host_alias@
27 target_alias = @target_alias@
28 program_transform_name = @program_transform_name@
29 build_canonical = @build@
30 host_canonical = @host@
31 target_canonical = @target@
32 target_cpu = @gdb_target_cpu@
33
34 SHELL = @SHELL@
35 EXEEXT = @EXEEXT@
36 SUBDIRS = @subdirs@
37 RPATH_ENVVAR = @RPATH_ENVVAR@
38 ALL_SUBDIRS = gdb.arch gdb.asm gdb.base gdb.c++ gdb.disasm gdb.java gdb.mi \
39         gdb.threads gdb.trace $(SUBDIRS)
40
41 EXPECT = `if [ -f $${rootme}/../../expect/expect ] ; then \
42           echo $${rootme}/../../expect/expect ; \
43           else echo expect ; fi`
44
45 RUNTEST = $(RUNTEST_FOR_TARGET)
46
47 RUNTESTFLAGS =
48
49 RUNTEST_FOR_TARGET = `\
50   if [ -f $${srcdir}/../../dejagnu/runtest ]; then \
51     echo $${srcdir}/../../dejagnu/runtest; \
52   else \
53     if [ "$(host_canonical)" = "$(target_canonical)" ]; then \
54       echo runtest; \
55     else \
56       t='$(program_transform_name)'; echo runtest | sed -e '' $$t; \
57     fi; \
58   fi`
59
60 #### host, target, and site specific Makefile frags come in here.
61
62 # The use of $$(x_FOR_TARGET) reduces the command line length by not
63 # duplicating the lengthy definition.
64
65 TARGET_FLAGS_TO_PASS = \
66         "prefix=$(prefix)" \
67         "exec_prefix=$(exec_prefix)" \
68         "against=$(against)" \
69         'CC=$$(CC_FOR_TARGET)' \
70         "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
71         "CFLAGS=$(TESTSUITE_CFLAGS)" \
72         'CXX=$$(CXX_FOR_TARGET)' \
73         "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \
74         "CXXFLAGS=$(CXXFLAGS)" \
75         "MAKEINFO=$(MAKEINFO)" \
76         "INSTALL=$(INSTALL)" \
77         "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
78         "INSTALL_DATA=$(INSTALL_DATA)" \
79         "LDFLAGS=$(LDFLAGS)" \
80         "LIBS=$(LIBS)" \
81         "RUNTEST=$(RUNTEST)" \
82         "RUNTESTFLAGS=$(RUNTESTFLAGS)"
83
84 all:
85         @echo "Nothing to be done for all..."
86
87 .NOEXPORT:
88 INFODIRS=doc
89 info:
90 install-info:
91 dvi:
92 html:
93 install-html:
94
95 install:
96
97 uninstall: force
98
99 site.exp: ./config.status Makefile
100         @echo "Making a new config file..."
101         -@rm -f ./tmp?
102         @touch site.exp
103         -@mv site.exp site.bak
104         @echo "## these variables are automatically generated by make ##" > ./tmp0
105         @echo "# Do not edit here. If you wish to override these values" >> ./tmp0
106         @echo "# add them to the last section" >> ./tmp0
107         @echo "set host_alias $(host_alias)" >> ./tmp0
108         @echo "set host_triplet ${host_canonical}" >> ./tmp0
109         @echo "set target_alias $(target_alias)" >> ./tmp0
110         @echo "set target_triplet ${target_canonical}" >> ./tmp0
111         @echo "set build_triplet ${build_canonical}" >> ./tmp0
112         @echo "set srcdir ${srcdir}" >> ./tmp0
113         @echo "set tool gdb" >> ./tmp0
114         @echo "## All variables above are generated by configure. Do Not Edit ##" >> ./tmp0
115                 @cat ./tmp0 > site.exp
116         @cat site.bak | sed \
117                         -e '1,/^## All variables above are.*##/ d' >> site.exp
118         -@rm -f ./tmp?
119
120 installcheck:
121
122 check: site.exp all just-check
123
124 just-check:
125         rootme=`pwd`; export rootme; \
126         srcdir=${srcdir} ; export srcdir ; \
127         EXPECT=${EXPECT} ; export EXPECT ; \
128         EXEEXT=${EXEEXT} ; export EXEEXT ; \
129         $(RPATH_ENVVAR)=$$rootme/../../expect:$$rootme/../../libstdc++:$$rootme/../../tk/unix:$$rootme/../../tcl/unix:$$rootme/../../bfd:$$rootme/../../opcodes:$$$(RPATH_ENVVAR); \
130         export $(RPATH_ENVVAR); \
131         if [ -f $${rootme}/../../expect/expect ] ; then  \
132           TCL_LIBRARY=$${srcdir}/../../tcl/library ; \
133           export TCL_LIBRARY ; fi ; \
134         $(RUNTEST) $(RUNTESTFLAGS) 
135
136 subdir_do: force
137         @for i in $(DODIRS); do \
138                 if [ -d ./$$i ] ; then \
139                         if (rootme=`pwd`/ ; export rootme ; \
140                             rootsrc=`cd $(srcdir); pwd`/ ; export rootsrc ; \
141                                 cd ./$$i; \
142                                 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(DO)) ; then true ; \
143                         else exit 1 ; fi ; \
144                 else true ; fi ; \
145         done
146
147 force:;
148
149 subdirs:
150         for dir in ${ALL_SUBDIRS} ; \
151         do \
152                 echo "$$dir:" ; \
153                 if [ -d $$dir ] ; then \
154                         (rootme=`pwd`/ ; export rootme ; \
155                          rootsrc=`cd $(srcdir); pwd`/ ; export rootsrc ; \
156                          cd $$dir; $(MAKE) $(TARGET_FLAGS_TO_PASS)); \
157                 fi; \
158         done
159
160 clean mostlyclean:
161         -rm -f *~ core *.o a.out xgdb *.x *.grt
162         if [ x"${ALL_SUBDIRS}" != x ] ; then \
163             for dir in ${ALL_SUBDIRS}; \
164             do \
165                     echo "$$dir:"; \
166                     if [ -d $$dir ]; then \
167                             (cd $$dir; $(MAKE) clean); \
168                     fi; \
169             done ; \
170         else true; fi
171
172 distclean maintainer-clean realclean: clean
173         -rm -f *~ core
174         -rm -f Makefile config.status *-init.exp
175         -rm -fr *.log summary detail *.plog *.sum *.psum site.*
176         if [ x"${ALL_SUBDIRS}" != x ] ; then \
177             for dir in ${ALL_SUBDIRS}; \
178             do \
179                     echo "$$dir:"; \
180                     if [ -d $$dir ]; then \
181                             (cd $$dir; $(MAKE) distclean); \
182                     fi; \
183             done ; \
184         else true; fi
185
186 Makefile : Makefile.in config.status $(host_makefile_frag) $(target_makefile_frag)
187         $(SHELL) config.status
188
189 config.status: configure
190         $(SHELL) config.status --recheck
This page took 0.03667 seconds and 4 git commands to generate.