summaryrefslogtreecommitdiff
path: root/testsuite/Makefile.in
blob: 9823315c6c70f29f0b0c8d19b83dd5164a9f7cde (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
VPATH = @srcdir@
srcdir = @srcdir@
prefix = @prefix@
exec_prefix = @exec_prefix@
host = @host@
bindir = @bindir@
libdir = @libdir@
tooldir = $(libdir)/$(target_alias)

includedir = @includedir@
gxx_includedir = $(tooldir)/g++-include
targetdir = $(datadir)/$(target_alias)

SHELL = /bin/sh

CC = @CC@
TCL_SRC_DIR	= @TCL_SRC_DIR@

CC_FOR_TARGET = ` \
  if [ -f $${rootme}../gcc/Makefile ] ; then \
    echo $${rootme}../gcc/xgcc -B$${rootme}../gcc/; \
  else \
    if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
      echo $(CC); \
    else \
      t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \
    fi; \
  fi`

EXPECT = `if [ -f $${rootme}/expect ] ; \
	then echo $${rootme}/expect ; \
	else echo expect; fi`

RUNTEST = ` \
  if [ -f ${srcdir}/../../dejagnu/runtest ] ; then \
    echo ${srcdir}/../../dejagnu/runtest ; \
  else echo runtest ;  fi`
RUNTESTFLAGS =

all:

binaries:

libraries:

.PHONY: info install-info check installcheck
info:
install-info:
check:
installcheck:
.NOEXPORT:

check:	exp_test site.exp
	rootme=`cd .. && pwd`; export rootme; \
	EXPECT=${EXPECT}; export EXPECT; \
	if [ -f ../expect ] ; then  \
	   TCL_LIBRARY=`@CYGPATH@ $(TCL_SRC_DIR)/library` ; \
	   export TCL_LIBRARY ; \
	else true ; fi ; \
	$(RUNTEST) $(RUNTESTFLAGS) --tool expect EXPECT=$$EXPECT --srcdir $(srcdir)

install:
uninstall: force

exp_test.o: ${srcdir}/exp_test.c

site.exp: ./config.status
	@echo "Making a new config file..."
	-@rm -f ./tmp?
	@touch site.exp
	-@mv site.exp site.bak
	@echo "## these variables are automatically generated by make ##" > ./tmp0
	@echo "# Do not edit here. If you wish to override these values" >> ./tmp0
	@echo "# add them to the last section" >> ./tmp0
	@echo "set tool expect" >> ./tmp0
	@echo "set srcdir ${srcdir}" >> ./tmp0
	@echo "set objdir `pwd`" >> ./tmp0
	@echo "set host_triplet ${host}" >> ./tmp0
	@echo "## All variables above are generated by configure. Do Not Edit ##" >> ./tmp0
	        @cat ./tmp0 > site.exp
	@cat site.bak | sed \
	                -e '1,/^## All variables above are.*##/ d' >> site.exp
	@rm -f ./tmp1 ./tmp0

clean mostlyclean:
	-rm -f *~ core *.o a.out *.x

distclean realclean: clean
	-rm -f *~ core
	-rm -f Makefile config.status
	-rm -fr *.log summary detail

Makefile : $(srcdir)/Makefile.in $(host_makefile_frag)
	$(SHELL) ./config.status

# Original aclocal.m4 comes from DejaGnu
# CYGNUS LOCAL: this hack lets "make -f Makefile.in" produce a configure file
configure: force
	@echo "Rebuilding configure..."
	if [ x"${srcdir}" = x"@srcdir@" ] ; then \
	  srcdir=. ; export srcdir ; \
	else true ; fi ; \
	(cd $${srcdir}; autoconf --localdir=$${srcdir}/..)
     
config.status: $(srcdir)/configure
	@echo "Rebuilding config.status..."
	$(SHELL) ./config.status --recheck

force: