* rs6000.c (output_function_profiler): Put label address in r0, and
[official-gcc.git] / libio / testsuite / Makefile.in
blob75465243d4ad064c2cee0e6cc092899b2ca55a19
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 = libio.tests
20 CFLAGS = -g
21 C_FLAGS = $(CFLAGS) -I. -I.. -I$(srcdir) -I$(srcdir)/..
22 CXXFLAGS = -g
23 CC = gcc
24 CXX = gcc
26 EXPECT = `if [ -f $${rootme}/../../expect/expect ] ; then \
27 echo $${rootme}/../../expect/expect ; \
28 else echo expect ; fi`
30 RUNTEST = $(RUNTEST_FOR_TARGET)
32 RUNTESTFLAGS =
34 RUNTEST_FOR_TARGET = `\
35 if [ -f $${srcdir}/../../dejagnu/runtest ]; then \
36 echo $${srcdir}/../../dejagnu/runtest; \
37 else \
38 if [ "$(host_canonical)" = "$(target_canonical)" ]; then \
39 echo runtest; \
40 else \
41 t='$(program_transform_name)'; echo runtest | sed -e '' $$t; \
42 fi; \
43 fi`
45 #### package, host, target, and site dependent Makefile fragments come in here.
48 # See ${MOSTLYCLEAN} in configure.in
49 JUNK_TO_CLEAN = tFile tiomisc hounddog putbackdog tiomanip \
50 t?format *.out streamfile ftmp* tstdiomisc foo.dat
52 .PHONY: info
53 info:
54 .PHONY: clean-info
55 clean-info:
56 .PHONY: install-info
57 install-info:
59 check: all just-check
61 site.exp: ./config.status Makefile
62 @echo "Making a new config file..."
63 -@rm -f ./tmp?
64 @touch site.exp
65 -@mv site.exp site.bak
66 @echo "## these variables are automatically generated by make ##" > ./tmp0
67 @echo "# Do not edit here. If you wish to override these values" >> ./tmp0
68 @echo "# add them to the last section" >> ./tmp0
69 @echo "set host_alias $(host_alias)" >> ./tmp0
70 @echo "set host_triplet ${host_canonical}" >> ./tmp0
71 @echo "set target_alias $(target_alias)" >> ./tmp0
72 @echo "set target_triplet ${target_canonical}" >> ./tmp0
73 @echo "set build_triplet ${build_canonical}" >> ./tmp0
74 @echo "set srcdir ${srcdir}" >> ./tmp0
75 @echo "set tool libio" >> ./tmp0
76 @echo "## All variables above are generated by configure. Do Not Edit ##" >> ./tmp0
77 @cat ./tmp0 > site.exp
78 @cat site.bak | sed \
79 -e '1,/^## All variables above are.*##/ d' >> site.exp
80 -@rm -f ./tmp?
82 just-check: site.exp
83 rootme=`pwd`; export rootme; \
84 srcdir=${srcdir} ; export srcdir ; \
85 EXPECT=${EXPECT} ; export EXPECT ; \
86 if [ -f $${rootme}/../../expect/expect ] ; then \
87 TCL_LIBRARY=$${srcdir}/../../tcl/library ; \
88 export TCL_LIBRARY ; fi ; \
89 $(RUNTEST) $(RUNTESTFLAGS)