1VPATH = @srcdir@ 2srcdir = @srcdir@ 3prefix = @prefix@ 4exec_prefix = @exec_prefix@ 5host = @host@ 6bindir = @bindir@ 7libdir = @libdir@ 8tooldir = $(libdir)/$(target_alias) 9 10includedir = @includedir@ 11gxx_includedir = $(tooldir)/g++-include 12targetdir = $(datadir)/$(target_alias) 13 14SHELL = /bin/sh 15 16CC = @CC@ 17TCL_SRC_DIR = @TCL_SRC_DIR@ 18 19CC_FOR_TARGET = ` \ 20 if [ -f $${rootme}../gcc/Makefile ] ; then \ 21 echo $${rootme}../gcc/xgcc -B$${rootme}../gcc/; \ 22 else \ 23 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \ 24 echo $(CC); \ 25 else \ 26 t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \ 27 fi; \ 28 fi` 29 30EXPECT = `if [ -f $${rootme}/expect ] ; \ 31 then echo $${rootme}/expect ; \ 32 else echo expect; fi` 33 34RUNTEST = ` \ 35 if [ -f ${srcdir}/../../dejagnu/runtest ] ; then \ 36 echo ${srcdir}/../../dejagnu/runtest ; \ 37 else echo runtest ; fi` 38RUNTESTFLAGS = 39 40all: 41 42binaries: 43 44libraries: 45 46.PHONY: info install-info check installcheck 47info: 48install-info: 49check: 50installcheck: 51.NOEXPORT: 52 53check: exp_test site.exp 54 rootme=`cd .. && pwd`; export rootme; \ 55 EXPECT=${EXPECT}; export EXPECT; \ 56 if [ -f ../expect ] ; then \ 57 TCL_LIBRARY=`@CYGPATH@ $(TCL_SRC_DIR)/library` ; \ 58 export TCL_LIBRARY ; \ 59 else true ; fi ; \ 60 $(RUNTEST) $(RUNTESTFLAGS) --tool expect EXPECT=$$EXPECT --srcdir $(srcdir) 61 62install: 63uninstall: force 64 65exp_test.o: ${srcdir}/exp_test.c 66 67site.exp: ./config.status 68 @echo "Making a new config file..." 69 -@rm -f ./tmp? 70 @touch site.exp 71 -@mv site.exp site.bak 72 @echo "## these variables are automatically generated by make ##" > ./tmp0 73 @echo "# Do not edit here. If you wish to override these values" >> ./tmp0 74 @echo "# add them to the last section" >> ./tmp0 75 @echo "set tool expect" >> ./tmp0 76 @echo "set srcdir ${srcdir}" >> ./tmp0 77 @echo "set objdir `pwd`" >> ./tmp0 78 @echo "set host_triplet ${host}" >> ./tmp0 79 @echo "## All variables above are generated by configure. Do Not Edit ##" >> ./tmp0 80 @cat ./tmp0 > site.exp 81 @cat site.bak | sed \ 82 -e '1,/^## All variables above are.*##/ d' >> site.exp 83 @rm -f ./tmp1 ./tmp0 84 85clean mostlyclean: 86 -rm -f *~ core *.o a.out *.x 87 88distclean realclean: clean 89 -rm -f *~ core 90 -rm -f Makefile config.status 91 -rm -fr *.log summary detail 92 93Makefile : $(srcdir)/Makefile.in $(host_makefile_frag) 94 $(SHELL) ./config.status 95 96# Original aclocal.m4 comes from DejaGnu 97# CYGNUS LOCAL: this hack lets "make -f Makefile.in" produce a configure file 98configure: force 99 @echo "Rebuilding configure..." 100 if [ x"${srcdir}" = x"@srcdir@" ] ; then \ 101 srcdir=. ; export srcdir ; \ 102 else true ; fi ; \ 103 (cd $${srcdir}; autoconf --localdir=$${srcdir}/..) 104 105config.status: $(srcdir)/configure 106 @echo "Rebuilding config.status..." 107 $(SHELL) ./config.status --recheck 108 109force: 110