summaryrefslogtreecommitdiff
path: root/tix/tests/Makefile.in
blob: 771f6deaa5a88fe7cff0c98a100ce215c313eda6 (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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
#	This file is a Makefile for Tix. If it has the name
#	"Makefile.in" Then it is a template for a Makefile; to
#	generate the actual Makefile, run "./configure", which is a
#	configuration script generated by the "autoconf" program
#	(constructs like "@foo@" will get replaced in the actual
#	Makefile.
#
#	See the file README for information about executing the test
#	suites.
#
# Copyright (c) 1996, Expert Interface Technologies
#
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
#
@SET_MAKE@

BINSRC_DIR	=	@SRC_DIR@
SRC_DIR		=	@SRC_DIR@
LIBRARY_DIR	=	@SRC_DIR@/library
DEMOS_DIR	=	@SRC_DIR@/demos
MANUAL_DIR	=	@SRC_DIR@/man
VPATH		=	@SRC_DIR@

all: @TIX_TARGETS@ @TIX_TEST_LOAD@

test: all

unix-tk4.0:: tk40

unix-tk4.1:: tk41

unix-tk4.2:: tk42

unix-itcl2.0:: itcl20

unix-itcl2.1:: itcl21

# There are no test for the following targets (they don't really need
# tests)
unix-et-tk4.0::

unix-et-tk4.1::

demos-c::

# Some versions of make, like SGI's, use the following variable to
# determine which shell to use for executing commands:
SHELL = @SHELL@

SUBSETS=

ENVIRON_74 = TEST_TCL_LIBRARY=@TCL74_SRC_DIR@/library \
	TEST_TK_LIBRARY=@TK40_SRC_DIR@/library \
	TEST_ITCL_LIBRARY=@ITCL20_SRC_DIR@/itcl/library \
	TEST_ITK_LIBRARY=@ITCL20_SRC_DIR@/itk/library \
	IWIDGETS_LIBRARY=@ITCL20_SRC_DIR@/iwidgets2.0.0 \
	TIX_LIBRARY=@SRC_DIR@/library \
	TEST_BINSRC_DIR=$(BINSRC_DIR) \
	TEST_LDPATHS=""


ENVIRON_75 = TEST_TCL_LIBRARY=@TCL75_SRC_DIR@/library \
	TEST_TK_LIBRARY=@TK41_SRC_DIR@/library \
	TEST_ITCL_LIBRARY=@ITCL20_SRC_DIR@/itcl/library \
	TEST_ITK_LIBRARY=@ITCL20_SRC_DIR@/itk/library \
	IWIDGETS_LIBRARY=@ITCL20_SRC_DIR@/iwidgets2.0.0 \
	TIX_LIBRARY=@SRC_DIR@/library \
	TEST_BINSRC_DIR=$(BINSRC_DIR) \
	TEST_LDPATHS=@TCL75_SRC_DIR@/unix:@TK41_SRC_DIR@/unix:$(BINSRC_DIR)/unix-tk4.1


ENVIRON_76 = TEST_TCL_LIBRARY=@TCL76_SRC_DIR@/library \
	TEST_TK_LIBRARY=@TK42_SRC_DIR@/library \
	TEST_ITCL_LIBRARY=@ITCL20_SRC_DIR@/itcl/library \
	TEST_ITK_LIBRARY=@ITCL20_SRC_DIR@/itk/library \
	IWIDGETS_LIBRARY=@ITCL20_SRC_DIR@/iwidgets2.0.0 \
	TIX_LIBRARY=@SRC_DIR@/library \
	TEST_BINSRC_DIR=$(BINSRC_DIR) \
	TEST_LDPATHS=@TCL76_SRC_DIR@/unix:@TK42_SRC_DIR@/unix:$(BINSRC_DIR)/unix-tk4.2

ENVIRON_ITCL_20 = TEST_TCL_LIBRARY=@ITCL20_SRC_DIR@/tcl7.4/library \
	TEST_TK_LIBRARY=@ITCL20_SRC_DIR@/tk4.0/library \
	TEST_ITCL_LIBRARY=@ITCL20_SRC_DIR@/itcl/library \
	TEST_ITK_LIBRARY=@ITCL20_SRC_DIR@/itk/library \
	IWIDGETS_LIBRARY=@ITCL20_SRC_DIR@/iwidgets2.0.0 \
	TIX_LIBRARY=@SRC_DIR@/library \
	TEST_BINSRC_DIR=$(BINSRC_DIR) \
	TEST_LDPATHS=""

ENVIRON_ITCL_21 = TEST_TCL_LIBRARY=@ITCL21_SRC_DIR@/tcl7.5/library \
	TEST_TK_LIBRARY=@ITCL21_SRC_DIR@/tk4.1/library \
	TEST_ITCL_LIBRARY=@ITCL21_SRC_DIR@/itcl/library \
	TEST_ITK_LIBRARY=@ITCL21_SRC_DIR@/itk/library \
	IWIDGETS_LIBRARY=@ITCL21_SRC_DIR@/iwidgets2.1.0 \
	TIX_LIBRARY=@SRC_DIR@/library \
	TEST_BINSRC_DIR=$(BINSRC_DIR) \
	TEST_LDPATHS=@ITCL21_SRC_DIR@/itk/unix:@ITCL21_SRC_DIR@/itcl/unix:@ITCL21_SRC_DIR@/tcl7.5/unix:@ITCL21_SRC_DIR@/tk4.1/unix:$(BINSRC_DIR)/unix-itcl2.1

tk40::
	@$(ENVIRON_74) \
	tclsh Test.tcl tk40 $(SUBSETS)

tk41::
	@$(ENVIRON_75) \
	tclsh Test.tcl tk41 $(SUBSETS)

tk42::
	@$(ENVIRON_76) \
	tclsh Test.tcl tk42 $(SUBSETS)

itcl20::
	@$(ENVIRON_ITCL_20) \
	tclsh Test.tcl itcl20 $(SUBSETS)

itcl21::
	@$(ENVIRON_ITCL_21) \
	tclsh Test.tcl itcl21 $(SUBSETS)

load::
	@$(ENVIRON_75) \
	tclsh Test.tcl load $(SUBSETS)

Makefile: Makefile.in
	cd $(SRC_DIR); $(SHELL) config.status

distclean:
	- rm -f Makefile

#----------------------------------------------------------------------
#
#	Testing the files in the binary distribution
#
#----------------------------------------------------------------------

dist: dist_tk40 dist_tk41 dist_itcl20 dist_itcl21

BDIST=$(TIX_BIN_DIST_DIR)
SDIST=$(TIX_SRC_DIST_DIR)

ENV_TK40_DIST = \
	TIX_LIBRARY=$(SDIST)/library \
	TCL_LIBRARY=@TCL74_SRC_DIR@/library \
	TK_LIBRARY=@TK40_SRC_DIR@/library \
	LD_LIBRARY_PATH=$(SITE_LDPATH)

ENV_TK41_DIST = \
	TIX_LIBRARY=$(SDIST)/library \
	TCL_LIBRARY=@TCL75_SRC_DIR@/library \
	TK_LIBRARY=@TK41_SRC_DIR@/library \
	LD_LIBRARY_PATH=$(BDIST)/unix-tk4.1:$(SITE_LDPATH)

ENV_ITCL20_DIST = \
	TIX_LIBRARY=$(SDIST)/library \
	TCL_LIBRARY=@ITCL20_SRC_DIR@/tcl7.4/library \
	TK_LIBRARY=@ITCL20_SRC_DIR@/tk4.0/library \
	ITCL_LIBRARY=@ITCL20_SRC_DIR@/itcl/library \
	ITK_LIBRARY=@ITCL20_SRC_DIR@/itk/library \
	IWIDGETS_LIBRARY=@ITCL20_SRC_DIR@/iwidgets2.0.0 \
	LD_LIBRARY_PATH=$(SITE_LDPATH)

ENV_ITCL21_DIST = \
	TIX_LIBRARY=$(SDIST)/library \
	TCL_LIBRARY=@ITCL21_SRC_DIR@/tcl7.5/library \
	TK_LIBRARY=@ITCL21_SRC_DIR@/tk4.1/library \
	ITCL_LIBRARY=@ITCL21_SRC_DIR@/itcl/library \
	ITK_LIBRARY=@ITCL21_SRC_DIR@/itk/library \
	IWIDGETS_LIBRARY=@ITCL21_SRC_DIR@/iwidgets2.1.0 \
	LD_LIBRARY_PATH=$(BDIST)/unix-itcl2.1:$(SITE_LDPATH)

dist_tk40:
	@echo
	@echo ======================== tk40_dist
	@echo
	-$(ENV_TK40_DIST) ldd $(BDIST)/unix-tk4.0/tixwish
	$(ENV_TK40_DIST) $(BDIST)/unix-tk4.0/tixwish Driver.tcl $(SUBSETS)

dist_tk41:
	@echo
	@echo ======================== tk41_dist
	@echo
	-$(ENV_TK41_DIST) ldd $(BDIST)/unix-tk4.1/tixwish
	$(ENV_TK41_DIST) $(BDIST)/unix-tk4.1/tixwish Driver.tcl $(SUBSETS)

dist_itcl20:
	@echo
	@echo ======================== itcl20_dist
	@echo
	-$(ENV_ITCL20_DIST) ldd $(BDIST)/unix-itcl2.0/itixwish
	$(ENV_ITCL20_DIST) $(BDIST)/unix-itcl2.0/itixwish Driver.tcl $(SUBSETS)

dist_itcl21:
	@echo
	@echo ======================== itcl21_dist
	@echo
	-$(ENV_ITCL21_DIST) ldd $(BDIST)/unix-itcl2.1/itixwish
	$(ENV_ITCL21_DIST) $(BDIST)/unix-itcl2.1/itixwish Driver.tcl $(SUBSETS)