1 # Makefile for regression testing the GNU debugger.
2 # Copyright (C) 1992, 1993, 1994, 1995 Free Software Foundation, Inc.
4 # This file is part of GDB.
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)
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.
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.
22 program_transform_name
=
24 exec_prefix = $(prefix)
25 bindir = $(exec_prefix)/bin
26 libdir = $(exec_prefix)/lib
27 tooldir
= $(libdir)/$(target_alias
)
29 datadir = $(exec_prefix)/lib
/dejagnu
30 mandir = $(prefix)/man
31 man1dir = $(mandir)/man1
32 man2dir = $(mandir)/man2
33 man3dir = $(mandir)/man3
34 man4dir = $(mandir)/man4
35 man5dir = $(mandir)/man5
36 man6dir = $(mandir)/man6
37 man7dir = $(mandir)/man7
38 man8dir = $(mandir)/man8
39 man9dir = $(mandir)/man9
40 infodir = $(prefix)/info
41 includedir = $(prefix)/include
42 gxx_includedir
= $(tooldir
)/g
++-include
43 docdir
= $(datadir)/doc
44 targetdir
= $(datadir)/$(target_alias
)
49 INSTALL_PROGRAM
= $(INSTALL
)
50 INSTALL_DATA
= $(INSTALL
)
52 # Do not use CFLAGS, that is set in the top-level config/mh-hp300 to not
53 # contain -g. In general, the flags to be used for building the tools and
54 # the flags to be used to build the testsuite probably don't have much to
57 CHILLFLAGS
= $(TESTSUITE_CFLAGS
)
58 # This should probably be consistent with the top-level Makefile.in,
59 # gdb/Makefile.in, and gdb/testsuite/gdb.t2*/Makefile.in, so that "make check"
60 # has the same effect no matter where it is run.
66 EXPECT
= `if [ -f $${rootme}/../../expect/expect ] ; then \
67 echo $${rootme}/../../expect/expect ; \
68 else echo expect ; fi`
70 RUNTEST
= $(RUNTEST_FOR_TARGET
)
74 RUNTEST_FOR_TARGET
= `\
75 if [ -f $${srcdir}/../../dejagnu/runtest ]; then \
76 echo $${srcdir}/../../dejagnu/runtest; \
78 if [ "$(host_canonical)" = "$(target_canonical)" ]; then \
81 t='$(program_transform_name)'; echo runtest | sed -e '' $$t; \
86 if [ -f $${rootme}/../../gcc/xgcc ] ; then \
87 if [ -f $${rootme}/../../newlib/Makefile ]; then \
88 echo $${rootme}/../../gcc/xgcc -B$${rootme}/../../gcc/ -idirafter $${rootme}/../../newlib/targ-include -idirafter $${rootsrc}/../../newlib/libc/include -nostdinc -L$${rootme}/../../newlib -B$${rootme}/../../newlib/; \
90 echo $${rootme}/../../gcc/xgcc -B$${rootme}/../../gcc/; \
93 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
96 t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \
102 if [ -f $${rootme}/../../gcc/xgcc ] ; then \
103 if [ -f $${rootme}/../../newlib/Makefile ]; then \
104 echo $${rootme}/../../gcc/xgcc -B$${rootme}/../../gcc/ -idirafter $${rootme}/../../newlib/targ-include -idirafter $${rootsrc}/../../newlib/libc/include -nostdinc -L$${rootme}/../../newlib -B$${rootme}/../../newlib/; \
106 echo $${rootme}/../../gcc/xgcc -B$${rootme}/../../gcc/; \
109 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
112 t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \
116 CHILLFLAGS
= $(TESTSUITE_CFLAGS
)
118 CHILL_FOR_TARGET
= ` \
119 if [ -f $${rootme}/../../gcc/xgcc ] ; then \
120 echo $${rootme}/../../gcc/xgcc -B$${rootme}../../gcc/; \
122 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
125 t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \
130 if [ -f $${rootme}/../../gcc/ch/runtime/libchill.a ] ; then \
131 echo $${rootme}/../../gcc/ch/runtime/chillrt0.o \
132 $${rootme}/../../gcc/ch/runtime/libchill.a; \
137 #### host, target, and site specific Makefile frags come in here.
139 # The use of $$(x_FOR_TARGET) reduces the command line length by not
140 # duplicating the lengthy definition.
142 TARGET_FLAGS_TO_PASS
= \
144 "exec_prefix=$(exec_prefix)" \
145 "against=$(against)" \
146 'CC=$$(CC_FOR_TARGET)' \
147 "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
148 "CFLAGS=$(TESTSUITE_CFLAGS)" \
149 "CHILLFLAGS=$(CHILLFLAGS)" \
150 'CHILL=$$(CHILL_FOR_TARGET)' \
151 "CHILL_FOR_TARGET=$(CHILL_FOR_TARGET)" \
152 "CHILL_LIB=$(CHILL_LIB)" \
153 'CXX=$$(CXX_FOR_TARGET)' \
154 "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \
155 "CXXFLAGS=$(CXXFLAGS)" \
156 "MAKEINFO=$(MAKEINFO)" \
157 "INSTALL=$(INSTALL)" \
158 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
159 "INSTALL_DATA=$(INSTALL_DATA)" \
160 "LDFLAGS=$(LDFLAGS)" \
162 "RUNTEST=$(RUNTEST)" \
163 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
178 site.exp
: .
/config.status Makefile
179 @echo
"Making a new config file..."
182 -@mv site.exp site.bak
183 @echo
"## these variables are automatically generated by make ##" > .
/tmp0
184 @echo
"# Do not edit here. If you wish to override these values" >> .
/tmp0
185 @echo
"# add them to the last section" >> .
/tmp0
186 @echo
"set host_alias $(host_alias)" >> .
/tmp0
187 @echo
"set host_triplet ${host_canonical}" >> .
/tmp0
188 @echo
"set target_alias $(target_alias)" >> .
/tmp0
189 @echo
"set target_triplet ${target_canonical}" >> .
/tmp0
190 @echo
"set srcdir ${srcdir}" >> .
/tmp0
191 @echo
"set tool gdb" >> .
/tmp0
192 @echo
"## All variables above are generated by configure. Do Not Edit ##" >> .
/tmp0
193 @cat .
/tmp0
> site.exp
194 @cat site.bak | sed \
195 -e
'1,/^## All variables above are.*##/ d' >> site.exp
200 check: site.exp
all just-check
203 rootme
=`pwd`; export rootme
; \
204 srcdir=${srcdir} ; export srcdir ; \
205 EXPECT
=${EXPECT} ; export EXPECT
; \
206 if
[ -f
$${rootme}/..
/..
/expect
/expect
] ; then \
207 TCL_LIBRARY
=$${srcdir}/..
/..
/tcl
/library
; \
208 export TCL_LIBRARY
; fi
; \
209 $(RUNTEST
) $(RUNTESTFLAGS
)
212 @for i in
$(DODIRS
); do \
213 if
[ -d .
/$$i ] ; then \
214 if
(rootme
=`pwd`/ ; export rootme
; \
215 rootsrc
=`cd $(srcdir); pwd`/ ; export rootsrc
; \
217 $(MAKE
) $(TARGET_FLAGS_TO_PASS
) $(DO
)) ; then true
; \
226 for
dir in
${SUBDIRS}; \
229 if
[ -d
$$dir ]; then \
230 (rootme
=`pwd`/ ; export rootme
; \
231 rootsrc
=`cd $(srcdir); pwd`/ ; export rootsrc
; \
232 cd
$$dir; $(MAKE
) $(TARGET_FLAGS_TO_PASS
)); \
237 -rm -f
*~ core
*.o a.out xgdb
*.x
238 if
[ x
"${SUBDIRS}" != x
] ; then \
239 for
dir in
${SUBDIRS}; \
242 if
[ -d
$$dir ]; then \
243 (cd
$$dir; $(MAKE
) clean); \
248 distclean realclean: clean
249 -rm -f
*~ core
*.log
*.plog
*.sum
*.psum site.
*
250 -rm -f Makefile config.status
*-init.exp
251 -rm -fr
*.log summary detail
*.plog
*.sum
*.psum site.
*
252 if
[ x
"${SUBDIRS}" != x
] ; then \
253 for
dir in
${SUBDIRS}; \
256 if
[ -d
$$dir ]; then \
257 (cd
$$dir; $(MAKE
) distclean); \
262 Makefile
: $(srcdir)/Makefile.in
$(srcdir)/configure.in
$(host_makefile_frag
) $(target_makefile_frag
)
263 $(SHELL
) .
/config.status
This page took 0.035223 seconds and 4 git commands to generate.