1 # Makefile for regression testing Chill support for the GNU debugger.
2 # Copyright (C) 1992, 1993, 1994 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; see the file COPYING. If not, write to
18 # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, 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
)
56 EXPECT
= `if [ -f $${rootme}../../../expect/expect ] ; then \
57 echo $${rootme}../../../expect/expect ; \
58 else echo expect ; fi`
60 RUNTEST_FOR_TARGET
= ` \
61 if [ -f $${rootme}../../../dejagnu/site.exp ] ; then \
62 echo $${rootme}../../../dejagnu/runtest ; \
64 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
67 t='$(program_transform_name)'; echo runtest | sed -e '' $$t; \
72 CHILLFLAGS
= $(CFLAGS
)
74 CHILL_FOR_TARGET
= ` \
75 if [ -f $${rootme}../../../gcc/Makefile ] ; then \
76 echo $${rootme}../../../gcc/xgcc -B$${rootme}../../../gcc/; \
78 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
81 t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \
85 CHILL
= $(CHILL_FOR_TARGET
)
88 if [ -f $${rootme}../../../gcc/ch/runtime/libchill.a ] ; then \
89 echo $${rootme}../../../gcc/ch/runtime/chillrt0.o \
90 $${rootme}../../../gcc/ch/runtime/libchill.a; \
96 if [ -f $${rootme}../../gdb ] ; \
97 then echo $${rootme}../../gdb; \
103 #### host, target, and site specific Makefile frags come in here.
105 EXECUTABLES
= chillvars.exe result.exe \
106 pr-4975.exe pr-5016.exe pr-5020.exe pr-5022.exe pr-5646.exe pr-5984.exe
110 # To force pr-4975-grt to be compiled before pr-4975, so the
111 # latter can use the former's grant file.
112 pr-4975.o
: pr-4975-grt.o
113 pr-5646.o
: pr-5646-grt.o
115 .SUFFIXES
: .ch .exe .
check
118 $(CHILL_FOR_TARGET
) $(CHILLFLAGS
) $(LDFLAGS
) -o
$*.exe
$*.o
$(CHILL_LIB
) $(LIBS
)
121 $(CHILL_FOR_TARGET
) $(CHILLFLAGS
) -fspecial_UC
-c
$<
123 # Do 'make chillvars.check' to run just the chillvars.{ch,exp} test.
126 rootme
=`pwd`/; export rootme
; \
128 $(MAKE
) just-check RUNTESTFLAGS
="${RUNTESTFLAGS} $*.exp" \
129 GDB
=${GDB} EXPECT
=${EXPECT}
141 site.exp
: .
/config.status Makefile
142 @echo
"Making a new config file..."
145 -@mv site.exp site.bak
146 @echo
"## these variables are automatically generated by make ##" > .
/tmp0
147 @echo
"# Do not edit here. If you wish to override these values" >> .
/tmp0
148 @echo
"# add them to the last section" >> .
/tmp0
149 @echo
"set GDBFLAGS \"${GDBFLAGS}\"" >> .
/tmp0
150 @echo
"set host_os ${host_os}" >> .
/tmp0
151 @echo
"set host_alias ${host_alias}" >> .
/tmp0
152 @echo
"set host_cpu ${host_cpu}" >> .
/tmp0
153 @echo
"set host_vendor ${host_vendor}" >> .
/tmp0
154 @echo
"set target_os ${target_os}" >> .
/tmp0
155 @echo
"set target_alias ${target_alias}" >> .
/tmp0
156 @echo
"set target_cpu ${target_cpu}" >> .
/tmp0
157 @echo
"set target_vendor ${target_vendor}" >> .
/tmp0
158 @echo
"set host_triplet ${host_canonical}" >> .
/tmp0
159 @echo
"set target_triplet ${target_canonical}" >> .
/tmp0
160 @echo
"set srcdir ${srcdir}" >> .
/tmp0
161 @echo
"set objdir `pwd`" >> .
/tmp0
162 @echo
"set tool gdb" >> .
/tmp0
163 @echo
"## All variables above are generated by configure. Do Not Edit ##" >> .
/tmp0
164 @cat .
/tmp0
> site.exp
165 @cat site.bak | sed \
166 -e
'1,/^## All variables above are.*##/ d' >> site.exp
170 check: site.exp
all just-check
172 tests
=`cd ${srcdir}; echo *.exp` ; \
173 rootme
=`pwd`/; export rootme
; \
175 $(MAKE
) just-check RUNTESTFLAGS
="${RUNTESTFLAGS} $${tests}" \
176 GDB
=${GDB} EXPECT
=${EXPECT}
179 -rm -f
*~ core
*.o a.out xgdb
*.x
$(EXECUTABLES
)
181 distclean realclean: clean
182 -rm -f
*~ core
*.log
*.plog
*.sum
*.psum site.
*
183 -rm -f Makefile config.status
*-init.exp
184 -rm -fr
*.log summary detail
*.plog
*.sum
*.psum site.
*
186 Makefile
: $(srcdir)/Makefile.in
$(srcdir)/configure.in
$(host_makefile_frag
) $(target_makefile_frag
)
187 $(SHELL
) .
/config.status