For regmove if we could not improve code by changing the source to the destination...
[official-gcc.git] / libstdc++ / testsuite / Makefile.in
blobb279d729c579badea90518c10aafb982dc232314
1 # Copyright (C) 1997 Free Software Foundation
2 #
3 # This file is part of the GNU IO Library. This library is free
4 # software; you can redistribute it and/or modify it under the
5 # terms of the GNU General Public License as published by the
6 # Free Software Foundation; either version 2, or (at your option)
7 # any later version.
8 #
9 # This library is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with GNU CC; see the file COPYING. If not, write to
16 # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
18 srcdir = libstdc++.tests
20 EXPECT = `if [ -f $${rootme}/../../expect/expect ] ; then \
21 echo $${rootme}/../../expect/expect ; \
22 else echo expect ; fi`
24 RUNTEST = `if [ -f $${srcdir}/../../dejagnu/runtest ] ; then \
25 echo $${srcdir}/../../dejagnu/runtest ; \
26 else echo runtest; fi`
27 RUNTESTFLAGS =
29 #### package, host, target, and site dependent Makefile fragments come in here.
32 .PHONY: all
33 all:
35 .PHONY: check
36 check: all just-check
38 site.exp: ./config.status Makefile
39 @echo "Making a new config file..."
40 -@rm -f ./tmp?
41 @touch site.exp
42 -@mv site.exp site.bak
43 @echo "## these variables are automatically generated by make ##" > ./tmp0
44 @echo "# Do not edit here. If you wish to override these values" >> ./tmp0
45 @echo "# add them to the last section" >> ./tmp0
46 @echo "set host_alias $(host_alias)" >> ./tmp0
47 @echo "set host_triplet ${host_canonical}" >> ./tmp0
48 @echo "set target_alias $(target_alias)" >> ./tmp0
49 @echo "set target_triplet ${target_canonical}" >> ./tmp0
50 @echo "set build_triplet ${build_canonical}" >> ./tmp0
51 @echo "set srcdir ${srcdir}" >> ./tmp0
52 @echo "set tool libstdc++" >> ./tmp0
53 @echo "## All variables above are generated by configure. Do Not Edit ##" >> ./tmp0
54 @cat ./tmp0 > site.exp
55 @cat site.bak | sed \
56 -e '1,/^## All variables above are.*##/ d' >> site.exp
57 -@rm -f ./tmp?
59 just-check: site.exp
60 rootme=`pwd`; export rootme; \
61 srcdir=${srcdir} ; export srcdir ; \
62 EXPECT=${EXPECT} ; export EXPECT ; \
63 if [ -f $${rootme}/../../expect/expect ] ; then \
64 TCL_LIBRARY=$${srcdir}/../../tcl/library ; \
65 export TCL_LIBRARY ; fi ; \
66 $(RUNTEST) $(RUNTESTFLAGS)