1 # Copyright (C) 1997 Free Software Foundation
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)
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.
21 C_FLAGS
= $(CFLAGS
) -I.
-I..
-I
$(srcdir) -I
$(srcdir)/..
26 EXPECT
= `if [ -f $${rootme}/../../expect/expect ] ; then \
27 echo $${rootme}/../../expect/expect ; \
28 else echo expect ; fi`
30 RUNTEST
= $(RUNTEST_FOR_TARGET
)
34 RUNTEST_FOR_TARGET
= `\
35 if [ -f $${srcdir}/../../dejagnu/runtest ]; then \
36 echo $${srcdir}/../../dejagnu/runtest; \
38 if [ "$(host_canonical)" = "$(target_canonical)" ]; then \
41 t='$(program_transform_name)'; echo runtest | sed -e '' $$t; \
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
61 site.exp
: .
/config.status Makefile
62 @echo
"Making a new config file..."
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
79 -e
'1,/^## All variables above are.*##/ d' >> 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
)