1 |
578 |
markom |
# Makefile --
|
2 |
|
|
#
|
3 |
|
|
# This file is a Makefile to compile Tix with Tk version
|
4 |
|
|
# 4.2. If it has the name "Makefile.in" then it is a
|
5 |
|
|
# template for a Makefile; to generate the actual Makefile, run
|
6 |
|
|
# "./configure", which is a configuration script generated by the
|
7 |
|
|
# "autoconf" program (constructs like "@foo@" will get replaced in the
|
8 |
|
|
# actual Makefile.
|
9 |
|
|
|
10 |
|
|
# CYGNUS LOCAL: Set VPATH.
|
11 |
|
|
VPATH = @srcdir@
|
12 |
|
|
srcdir = @srcdir@
|
13 |
|
|
|
14 |
|
|
#----------------------------------------------------------------
|
15 |
|
|
# Things you can change to personalize the Makefile for your own
|
16 |
|
|
# site (you can make these changes in either Makefile.in or
|
17 |
|
|
# Makefile, but changes to Makefile will get lost if you re-run
|
18 |
|
|
# the configuration script).
|
19 |
|
|
#----------------------------------------------------------------
|
20 |
|
|
|
21 |
|
|
# Default top-level directories in which to install architecture-
|
22 |
|
|
# specific files (exec_prefix) and machine-independent files such
|
23 |
|
|
# as scripts (prefix). The values specified here may be overridden
|
24 |
|
|
# at configure-time with the --exec-prefix and --prefix options
|
25 |
|
|
# to the "configure" script.
|
26 |
|
|
|
27 |
|
|
prefix = @prefix@
|
28 |
|
|
exec_prefix = @exec_prefix@
|
29 |
|
|
TIX_VERSION = @TIX_VERSION@
|
30 |
|
|
|
31 |
|
|
@SET_MAKE@
|
32 |
|
|
|
33 |
|
|
# Directory in which to install the library of Tix scripts and demos
|
34 |
|
|
# (note: you can set the TIX_LIBRARY environment variable at run-time to
|
35 |
|
|
# override the compiled-in location):
|
36 |
|
|
TIX_LIBRARY = $(prefix)/lib/tix$(TIX_VERSION)
|
37 |
|
|
|
38 |
|
|
# Directory in which to install the archive libtix.a:
|
39 |
|
|
LIB_DIR = $(exec_prefix)/lib
|
40 |
|
|
LIB_INSTALL_DIR = $(LIB_DIR)
|
41 |
|
|
LIB_RUNTIME_DIR = $(LIB_DIR)
|
42 |
|
|
|
43 |
|
|
# Directory in which to install the program tixwish:
|
44 |
|
|
BIN_DIR = $(exec_prefix)/bin
|
45 |
|
|
|
46 |
|
|
# To change the compiler switches, for example to change from -O
|
47 |
|
|
# to -g, change the following line:
|
48 |
|
|
CFLAGS = -O
|
49 |
|
|
|
50 |
|
|
# To disable ANSI-C procedure prototypes reverse the comment characters
|
51 |
|
|
# on the following lines:
|
52 |
|
|
PROTO_FLAGS =
|
53 |
|
|
#PROTO_FLAGS = -DNO_PROTOTYPE
|
54 |
|
|
|
55 |
|
|
# To enable memory debugging reverse the comment characters on the following
|
56 |
|
|
# lines. Warning: if you enable memory debugging, you must do it
|
57 |
|
|
# *everywhere*, including all the code that calls Tcl, and you must use
|
58 |
|
|
# ckalloc and ckfree everywhere instead of malloc and free.
|
59 |
|
|
MEM_DEBUG_FLAGS =
|
60 |
|
|
#MEM_DEBUG_FLAGS = -DTCL_MEM_DEBUG
|
61 |
|
|
|
62 |
|
|
# Some versions of make, like SGI's, use the following variable to
|
63 |
|
|
# determine which shell to use for executing commands:
|
64 |
|
|
SHELL = /bin/sh
|
65 |
|
|
|
66 |
|
|
# Location of the Tcl 7.6 source directory.
|
67 |
|
|
#
|
68 |
|
|
TCL_SRC_DIR = @TCL_SRC_DIR@
|
69 |
|
|
TCL_GENERIC_DIR = $(TCL_SRC_DIR)/generic
|
70 |
|
|
TCL_BIN_DIR = @TCL_BIN_DIR@
|
71 |
|
|
|
72 |
|
|
# Location of the Tk 4.2 source directory.
|
73 |
|
|
#
|
74 |
|
|
TK_SRC_DIR = @TK_SRC_DIR@
|
75 |
|
|
TK_GENERIC_DIR = $(TK_SRC_DIR)/generic
|
76 |
|
|
|
77 |
|
|
# Libraries to use when linking:
|
78 |
|
|
LIBS = @ITK_BUILD_LIB_SPEC@ @ITCL_BUILD_LIB_SPEC@ \
|
79 |
|
|
@TK_BUILD_LIB_SPEC@ @TCL_BUILD_LIB_SPEC@ @TK_LIBS@
|
80 |
|
|
|
81 |
|
|
# Libraries for building a stand-alone Tclsh.
|
82 |
|
|
#
|
83 |
|
|
LIBS_TCLONLY = @TCL_BUILD_LIB_SPEC@ @TCL_LIBS@
|
84 |
|
|
|
85 |
|
|
RUN_TCLSH = TCL_LIBRARY=$(TCL_SRC_DIR)/library \
|
86 |
|
|
TK_LIBRARY=$(TK_SRC_DIR)/library \
|
87 |
|
|
$(TCL_BIN_DIR)/unix/tclsh
|
88 |
|
|
|
89 |
|
|
|
90 |
|
|
#----------------------------------------------------------------
|
91 |
|
|
# The information below is modified by the configure script when
|
92 |
|
|
# Makefile is generated from Makefile.in. You shouldn't normally
|
93 |
|
|
# modify any of this stuff by hand.
|
94 |
|
|
#----------------------------------------------------------------
|
95 |
|
|
|
96 |
|
|
CC = @CC@
|
97 |
|
|
|
98 |
|
|
SHLIB_CFLAGS = @SHLIB_CFLAGS@
|
99 |
|
|
SHLIB_LD = @SHLIB_LD@
|
100 |
|
|
SHLIB_SUFFIX = @SHLIB_SUFFIX@
|
101 |
|
|
SHLIB_VERSION = @SHLIB_VERSION@
|
102 |
|
|
TIX_SHLIB_CFLAGS = @TIX_SHLIB_CFLAGS@
|
103 |
|
|
TK_XINCLUDES = @TK_XINCLUDES@
|
104 |
|
|
|
105 |
|
|
ITCL_EXT =
|
106 |
|
|
|
107 |
|
|
SRC_DIR = @TIX_SRC_DIR@
|
108 |
|
|
GENERIC_DIR = $(SRC_DIR)/generic
|
109 |
|
|
UNIX_DIR = $(SRC_DIR)/unix
|
110 |
|
|
AC_FLAGS = @DEFS@ @TIX_DEFS@
|
111 |
|
|
RANLIB = @RANLIB@
|
112 |
|
|
INSTALL = @TIX_SRC_DIR@/install.sh -c
|
113 |
|
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
114 |
|
|
INSTALL_DATA = @INSTALL_DATA@
|
115 |
|
|
|
116 |
|
|
TIX_LIB_FILE = @TIX_LIB_FILE@
|
117 |
|
|
TIX_EXE_FILE = @TIX_EXE_FILE@
|
118 |
|
|
TCL_SAM_FILE = @TCL_SAM_FILE@
|
119 |
|
|
TK_SAM_FILE = @TK_SAM_FILE@
|
120 |
|
|
TIX_SAM_FILE = @TIX_SAM_FILE@
|
121 |
|
|
TCL_SAMEXE_FILE = @TCL_SAMEXE_FILE@
|
122 |
|
|
TK_SAMEXE_FILE = @TK_SAMEXE_FILE@
|
123 |
|
|
TIX_SAMEXE_FILE = @TIX_SAMEXE_FILE@
|
124 |
|
|
|
125 |
|
|
INST_EXE = $(TIX_EXE_FILE)$(TIX_VERSION).7.6$(ITCL_EXT)
|
126 |
|
|
INST_TIX_SAMEXE = $(TIX_SAMEXE_FILE)$(TIX_VERSION).7.6$(ITCL_EXT)
|
127 |
|
|
INST_TK_SAMEXE = $(TK_SAMEXE_FILE)4.2
|
128 |
|
|
INST_TCL_SAMEXE = $(TCL_SAMEXE_FILE)7.6
|
129 |
|
|
|
130 |
|
|
SAM_TARGETS = $(TCL_SAM_FILE) $(TK_SAM_FILE) $(TIX_SAM_FILE) \
|
131 |
|
|
$(TCL_SAMEXE_FILE) $(TK_SAMEXE_FILE) $(TIX_SAMEXE_FILE)
|
132 |
|
|
|
133 |
|
|
TIX_SAM_TARGETS = @TIX_SAM_TARGETS@
|
134 |
|
|
SAM_INSTALL = @TIX_SAM_INSTALL@
|
135 |
|
|
|
136 |
|
|
ITCL_CFLAGS =
|
137 |
|
|
|
138 |
|
|
CC_SWITCHES = $(CFLAGS) $(AC_FLAGS) -I$(TCL_GENERIC_DIR) \
|
139 |
|
|
-I$(TCL_SRC_DIR)/unix -I$(TK_GENERIC_DIR) -I$(TK_SRC_DIR)/unix \
|
140 |
|
|
$(ITCL_CFLAGS) \
|
141 |
|
|
-I$(GENERIC_DIR) -I$(UNIX_DIR) $(TK_XINCLUDES) $(TIX_SHLIB_CFLAGS)
|
142 |
|
|
|
143 |
|
|
#----------------------------------------------------------------
|
144 |
|
|
# The information below should be usable as is. You shouldn't need
|
145 |
|
|
# to modify it.
|
146 |
|
|
#----------------------------------------------------------------
|
147 |
|
|
|
148 |
|
|
CORE_OBJS = \
|
149 |
|
|
tixClass.o \
|
150 |
|
|
tixCmds.o \
|
151 |
|
|
tixCompat.o \
|
152 |
|
|
tixError.o \
|
153 |
|
|
tixGeometry.o \
|
154 |
|
|
tixInit.o \
|
155 |
|
|
tixItcl.o \
|
156 |
|
|
tixList.o \
|
157 |
|
|
tixMethod.o \
|
158 |
|
|
tixOption.o \
|
159 |
|
|
tixScroll.o \
|
160 |
|
|
tixSmpLs.o \
|
161 |
|
|
tixUtils.o \
|
162 |
|
|
tixWidget.o
|
163 |
|
|
|
164 |
|
|
DITEM_OBJS = \
|
165 |
|
|
tixDItem.o \
|
166 |
|
|
tixDiITxt.o \
|
167 |
|
|
tixDiImg.o \
|
168 |
|
|
tixDiStyle.o \
|
169 |
|
|
tixDiText.o \
|
170 |
|
|
tixDiWin.o
|
171 |
|
|
|
172 |
|
|
MANAGER_OBJS = \
|
173 |
|
|
tixForm.o \
|
174 |
|
|
tixFormMisc.o
|
175 |
|
|
|
176 |
|
|
WIDGET_OBJS = \
|
177 |
|
|
tixGrid.o \
|
178 |
|
|
tixGrData.o \
|
179 |
|
|
tixGrFmt.o \
|
180 |
|
|
tixGrRC.o \
|
181 |
|
|
tixGrSel.o \
|
182 |
|
|
tixGrSort.o \
|
183 |
|
|
tixGrUtl.o \
|
184 |
|
|
tixHList.o \
|
185 |
|
|
tixHLCol.o \
|
186 |
|
|
tixHLInd.o \
|
187 |
|
|
tixHLHdr.o \
|
188 |
|
|
tixInputO.o \
|
189 |
|
|
tixNBFrame.o \
|
190 |
|
|
tixTList.o
|
191 |
|
|
|
192 |
|
|
MISC_OBJS = \
|
193 |
|
|
tixImgCmp.o \
|
194 |
|
|
tixImgXpm.o \
|
195 |
|
|
tixMwm.o
|
196 |
|
|
|
197 |
|
|
UNIX_OBJS = \
|
198 |
|
|
tixUnixDraw.o \
|
199 |
|
|
tixUnixXpm.o \
|
200 |
|
|
tixUnixWm.o
|
201 |
|
|
|
202 |
|
|
OBJS = $(CORE_OBJS) $(DITEM_OBJS) $(MANAGER_OBJS) $(MISC_OBJS) \
|
203 |
|
|
$(WIDGET_OBJS) $(UNIX_OBJS)
|
204 |
|
|
|
205 |
|
|
TCL_SAM_OBJS = \
|
206 |
|
|
tclUnixSam76.o
|
207 |
|
|
|
208 |
|
|
TK_SAM_OBJS = \
|
209 |
|
|
tkUnixSam42.o
|
210 |
|
|
|
211 |
|
|
TIX_SAM_OBJS = \
|
212 |
|
|
$(OBJS) tixUnixSam.o
|
213 |
|
|
|
214 |
|
|
#----------------------------------------------------------------------
|
215 |
|
|
# These are the scripts that we'll compile into the SAM's. The
|
216 |
|
|
# scripts of TK must be included in the fixed order.
|
217 |
|
|
#----------------------------------------------------------------------
|
218 |
|
|
|
219 |
|
|
TCL_SCRIPTS = $(TCL_SRC_DIR)/library/*.tcl
|
220 |
|
|
|
221 |
|
|
TK_SCRIPTS = \
|
222 |
|
|
$(TK_SRC_DIR)/library/bgerror.tcl \
|
223 |
|
|
$(TK_SRC_DIR)/library/dialog.tcl \
|
224 |
|
|
$(TK_SRC_DIR)/library/focus.tcl \
|
225 |
|
|
$(TK_SRC_DIR)/library/obsolete.tcl \
|
226 |
|
|
$(TK_SRC_DIR)/library/optMenu.tcl \
|
227 |
|
|
$(TK_SRC_DIR)/library/palette.tcl \
|
228 |
|
|
$(TK_SRC_DIR)/library/tearoff.tcl \
|
229 |
|
|
$(TK_SRC_DIR)/library/clrpick.tcl \
|
230 |
|
|
$(TK_SRC_DIR)/library/comdlg.tcl \
|
231 |
|
|
$(TK_SRC_DIR)/library/msgbox.tcl \
|
232 |
|
|
$(TK_SRC_DIR)/library/tkfbox.tcl \
|
233 |
|
|
$(TK_SRC_DIR)/library/xmfbox.tcl \
|
234 |
|
|
$(SRC_DIR)/generic/tk4.2/tk.tcl \
|
235 |
|
|
$(TK_SRC_DIR)/library/button.tcl \
|
236 |
|
|
$(TK_SRC_DIR)/library/entry.tcl \
|
237 |
|
|
$(TK_SRC_DIR)/library/listbox.tcl \
|
238 |
|
|
$(TK_SRC_DIR)/library/menu.tcl \
|
239 |
|
|
$(TK_SRC_DIR)/library/scale.tcl \
|
240 |
|
|
$(TK_SRC_DIR)/library/scrlbar.tcl \
|
241 |
|
|
$(TK_SRC_DIR)/library/text.tcl \
|
242 |
|
|
$(SRC_DIR)/generic/tk4.2/console.tcl
|
243 |
|
|
|
244 |
|
|
TIX_SCRIPTS = \
|
245 |
|
|
$(SRC_DIR)/library/pref/*.fsc \
|
246 |
|
|
$(SRC_DIR)/library/pref/*.csc \
|
247 |
|
|
$(SRC_DIR)/library/*.tcl
|
248 |
|
|
|
249 |
|
|
all: $(TIX_LIB_FILE) $(TIX_EXE_FILE) @TIX_SAM_TARGETS@
|
250 |
|
|
|
251 |
|
|
$(TIX_LIB_FILE): $(OBJS)
|
252 |
|
|
rm -f $(TIX_LIB_FILE)
|
253 |
|
|
@TIX_MAKE_LIB@
|
254 |
|
|
$(RANLIB) $(TIX_LIB_FILE)
|
255 |
|
|
|
256 |
|
|
$(TCL_SAM_FILE): $(TCL_SAM_OBJS)
|
257 |
|
|
rm -f $(TCL_SAM_FILE)
|
258 |
|
|
@TCL_MAKE_SAM@
|
259 |
|
|
$(RANLIB) $(TCL_SAM_FILE)
|
260 |
|
|
|
261 |
|
|
$(TK_SAM_FILE): $(TK_SAM_OBJS)
|
262 |
|
|
rm -f $(TK_SAM_FILE)
|
263 |
|
|
@TK_MAKE_SAM@
|
264 |
|
|
$(RANLIB) $(TK_SAM_FILE)
|
265 |
|
|
|
266 |
|
|
$(TIX_SAM_FILE): $(TIX_SAM_OBJS)
|
267 |
|
|
rm -f $(TIX_SAM_FILE)
|
268 |
|
|
@TIX_MAKE_SAM@
|
269 |
|
|
$(RANLIB) $(TIX_SAM_FILE)
|
270 |
|
|
|
271 |
|
|
$(TIX_EXE_FILE): tixAppInit.o $(TIX_LIB_FILE)
|
272 |
|
|
$(CC) @LD_FLAGS@ tixAppInit.o @TIX_BUILD_LIB_SPEC@ $(LIBS) \
|
273 |
|
|
@TIX_LD_SEARCH_FLAGS@ -o $(TIX_EXE_FILE)
|
274 |
|
|
|
275 |
|
|
$(TCL_SAMEXE_FILE): $(UNIX_DIR)/samAppInit.c $(TCL_SAM_FILE)
|
276 |
|
|
$(CC) $(CC_SWITCHES) @LD_FLAGS@ -DUSE_TCL $(UNIX_DIR)/samAppInit.c \
|
277 |
|
|
@TCL_BUILD_SAM_SPEC@ $(LIBS_TCLONLY) \
|
278 |
|
|
@TIX_LD_SEARCH_FLAGS@ -o $(TCL_SAMEXE_FILE)
|
279 |
|
|
|
280 |
|
|
$(TK_SAMEXE_FILE): $(UNIX_DIR)/samAppInit.c $(TCL_SAM_FILE) $(TK_SAM_FILE)
|
281 |
|
|
$(CC) $(CC_SWITCHES) @LD_FLAGS@ -DUSE_TK $(UNIX_DIR)/samAppInit.c \
|
282 |
|
|
@TK_BUILD_SAM_SPEC@ @TCL_BUILD_SAM_SPEC@ $(LIBS) \
|
283 |
|
|
@TIX_LD_SEARCH_FLAGS@ -o $(TK_SAMEXE_FILE)
|
284 |
|
|
|
285 |
|
|
$(TIX_SAMEXE_FILE): $(UNIX_DIR)/samAppInit.c $(TCL_SAM_FILE) $(TK_SAM_FILE) \
|
286 |
|
|
$(TIX_SAM_FILE)
|
287 |
|
|
$(CC) $(CC_SWITCHES) @LD_FLAGS@ -DUSE_TIX $(UNIX_DIR)/samAppInit.c \
|
288 |
|
|
@TIX_BUILD_SAM_SPEC@ \
|
289 |
|
|
@TK_BUILD_SAM_SPEC@ @TCL_BUILD_SAM_SPEC@ \
|
290 |
|
|
$(LIBS) \
|
291 |
|
|
@TIX_LD_SEARCH_FLAGS@ -o $(TIX_SAMEXE_FILE)
|
292 |
|
|
|
293 |
|
|
|
294 |
|
|
#----------------------------------------------------------------------
|
295 |
|
|
#
|
296 |
|
|
# .o file rules
|
297 |
|
|
#
|
298 |
|
|
#----------------------------------------------------------------------
|
299 |
|
|
tixAppInit.o : tixAppInit.c
|
300 |
|
|
$(CC) -c $(CC_SWITCHES) $(srcdir)/tixAppInit.c
|
301 |
|
|
|
302 |
|
|
tixClass.o : $(GENERIC_DIR)/tixClass.c
|
303 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixClass.c
|
304 |
|
|
|
305 |
|
|
tixCmds.o: $(GENERIC_DIR)/tixCmds.c
|
306 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixCmds.c
|
307 |
|
|
|
308 |
|
|
tixCompat.o: $(GENERIC_DIR)/tixCompat.c
|
309 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixCompat.c
|
310 |
|
|
|
311 |
|
|
tixDItem.o: $(GENERIC_DIR)/tixDItem.c
|
312 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixDItem.c
|
313 |
|
|
|
314 |
|
|
tixDiImg.o: $(GENERIC_DIR)/tixDiImg.c
|
315 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixDiImg.c
|
316 |
|
|
|
317 |
|
|
tixDiITxt.o: $(GENERIC_DIR)/tixDiITxt.c
|
318 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixDiITxt.c
|
319 |
|
|
|
320 |
|
|
tixDiStyle.o: $(GENERIC_DIR)/tixDiStyle.c
|
321 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixDiStyle.c
|
322 |
|
|
|
323 |
|
|
tixDiText.o: $(GENERIC_DIR)/tixDiText.c
|
324 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixDiText.c
|
325 |
|
|
|
326 |
|
|
tixDiWin.o: $(GENERIC_DIR)/tixDiWin.c
|
327 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixDiWin.c
|
328 |
|
|
|
329 |
|
|
tixError.o: $(GENERIC_DIR)/tixError.c
|
330 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixError.c
|
331 |
|
|
|
332 |
|
|
tixForm.o: $(GENERIC_DIR)/tixForm.c
|
333 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixForm.c
|
334 |
|
|
|
335 |
|
|
tixFormMisc.o: $(GENERIC_DIR)/tixFormMisc.c
|
336 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixFormMisc.c
|
337 |
|
|
|
338 |
|
|
tixGeometry.o: $(GENERIC_DIR)/tixGeometry.c
|
339 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixGeometry.c
|
340 |
|
|
|
341 |
|
|
tixGrid.o: $(GENERIC_DIR)/tixGrid.c
|
342 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixGrid.c
|
343 |
|
|
|
344 |
|
|
tixGrData.o: $(GENERIC_DIR)/tixGrData.c
|
345 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixGrData.c
|
346 |
|
|
|
347 |
|
|
tixGrFmt.o: $(GENERIC_DIR)/tixGrFmt.c
|
348 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixGrFmt.c
|
349 |
|
|
|
350 |
|
|
tixGrRC.o: $(GENERIC_DIR)/tixGrRC.c
|
351 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixGrRC.c
|
352 |
|
|
|
353 |
|
|
tixGrSel.o: $(GENERIC_DIR)/tixGrSel.c
|
354 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixGrSel.c
|
355 |
|
|
|
356 |
|
|
tixGrSort.o: $(GENERIC_DIR)/tixGrSort.c
|
357 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixGrSort.c
|
358 |
|
|
|
359 |
|
|
tixGrUtl.o: $(GENERIC_DIR)/tixGrUtl.c
|
360 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixGrUtl.c
|
361 |
|
|
|
362 |
|
|
tixHLCol.o: $(GENERIC_DIR)/tixHLCol.c
|
363 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixHLCol.c
|
364 |
|
|
|
365 |
|
|
tixHLHdr.o: $(GENERIC_DIR)/tixHLHdr.c
|
366 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixHLHdr.c
|
367 |
|
|
|
368 |
|
|
tixHLInd.o: $(GENERIC_DIR)/tixHLInd.c
|
369 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixHLInd.c
|
370 |
|
|
|
371 |
|
|
tixHList.o: $(GENERIC_DIR)/tixHList.c
|
372 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixHList.c
|
373 |
|
|
|
374 |
|
|
tixImgCmp.o: $(GENERIC_DIR)/tixImgCmp.c
|
375 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixImgCmp.c
|
376 |
|
|
|
377 |
|
|
tixImgXpm.o: $(GENERIC_DIR)/tixImgXpm.c
|
378 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixImgXpm.c
|
379 |
|
|
|
380 |
|
|
tixInit.o: $(GENERIC_DIR)/tixInit.c
|
381 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixInit.c
|
382 |
|
|
|
383 |
|
|
tixItcl.o: $(GENERIC_DIR)/tixItcl.c
|
384 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixItcl.c
|
385 |
|
|
|
386 |
|
|
tixInputO.o : $(GENERIC_DIR)/tixInputO.c
|
387 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixInputO.c
|
388 |
|
|
|
389 |
|
|
tixList.o: $(GENERIC_DIR)/tixList.c
|
390 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixList.c
|
391 |
|
|
|
392 |
|
|
tixMethod.o : $(GENERIC_DIR)/tixMethod.c
|
393 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixMethod.c
|
394 |
|
|
|
395 |
|
|
tixMwm.o: $(GENERIC_DIR)/tixMwm.c
|
396 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixMwm.c
|
397 |
|
|
|
398 |
|
|
tixNBFrame.o: $(GENERIC_DIR)/tixNBFrame.c
|
399 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixNBFrame.c
|
400 |
|
|
|
401 |
|
|
tixOption.o: $(GENERIC_DIR)/tixOption.c
|
402 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixOption.c
|
403 |
|
|
|
404 |
|
|
tixSmpLs.o: $(GENERIC_DIR)/tixSmpLs.c
|
405 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixSmpLs.c
|
406 |
|
|
|
407 |
|
|
tixScroll.o: $(GENERIC_DIR)/tixScroll.c
|
408 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixScroll.c
|
409 |
|
|
|
410 |
|
|
tixTList.o: $(GENERIC_DIR)/tixTList.c
|
411 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixTList.c
|
412 |
|
|
|
413 |
|
|
tixUtils.o: $(GENERIC_DIR)/tixUtils.c
|
414 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixUtils.c
|
415 |
|
|
|
416 |
|
|
tixWidget.o: $(GENERIC_DIR)/tixWidget.c
|
417 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixWidget.c
|
418 |
|
|
|
419 |
|
|
tixUnixDraw.o: $(UNIX_DIR)/tixUnixDraw.c
|
420 |
|
|
$(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tixUnixDraw.c
|
421 |
|
|
|
422 |
|
|
tixUnixXpm.o: $(UNIX_DIR)/tixUnixXpm.c
|
423 |
|
|
$(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tixUnixXpm.c
|
424 |
|
|
|
425 |
|
|
tixUnixWm.o: $(UNIX_DIR)/tixUnixWm.c
|
426 |
|
|
$(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tixUnixWm.c
|
427 |
|
|
|
428 |
|
|
#
|
429 |
|
|
# Dependence rules for SAM
|
430 |
|
|
#
|
431 |
|
|
tclUnixSam76.o: tclUnixSam76.c tclSamLib.c
|
432 |
|
|
$(CC) -c $(CC_SWITCHES) tclUnixSam76.c
|
433 |
|
|
|
434 |
|
|
tclSamLib.c:
|
435 |
|
|
$(RUN_TCLSH) $(SRC_DIR)/tools/tclc.tcl $(TCL_SCRIPTS) \
|
436 |
|
|
> tclSamLib.c
|
437 |
|
|
|
438 |
|
|
tkUnixSam42.o: tkUnixSam42.c tkSamLib.c
|
439 |
|
|
$(CC) -c $(CC_SWITCHES) tkUnixSam42.c
|
440 |
|
|
|
441 |
|
|
tkSamLib.c:
|
442 |
|
|
$(RUN_TCLSH) $(SRC_DIR)/tools/tclc.tcl $(TK_SCRIPTS) \
|
443 |
|
|
> tkSamLib.c
|
444 |
|
|
|
445 |
|
|
tixUnixSam.o: $(UNIX_DIR)/tixUnixSam.c $(UNIX_DIR)/tixSamLib.c
|
446 |
|
|
$(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tixUnixSam.c
|
447 |
|
|
|
448 |
|
|
$(UNIX_DIR)/tixSamLib.c:
|
449 |
|
|
$(RUN_TCLSH) $(SRC_DIR)/tools/tclc.tcl $(TIX_SCRIPTS) \
|
450 |
|
|
> $(UNIX_DIR)/tixSamLib.c
|
451 |
|
|
|
452 |
|
|
|
453 |
|
|
tests: $(TIX_EXE_FILE)
|
454 |
|
|
TCL_LIBRARY=$(TCL_SRC_DIR)/library TK_LIBRARY=$(TK_SRC_DIR)/library \
|
455 |
|
|
ITCL_LIBRARY=$(ITCL_SRC_DIR)/library \
|
456 |
|
|
ITK_LIBRARY=$(ITK_SRC_DIR)/library \
|
457 |
|
|
IWIDGETS_LIBRARY=$(ITCL_ROOT_DIR)/$(IWIDGETS) \
|
458 |
|
|
TIX_LIBRARY=$(SRC_DIR)/library \
|
459 |
|
|
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:. \
|
460 |
|
|
./$(TIX_EXE_FILE) $(SRC_DIR)/tests/Driver.tcl
|
461 |
|
|
|
462 |
|
|
sa-tests: $(TIX_SAMEXE_FILE)
|
463 |
|
|
./$(TIX_SAMEXE_FILE) $(SRC_DIR)/tests/Driver.tcl
|
464 |
|
|
|
465 |
|
|
#----------------------------------------------------------------------
|
466 |
|
|
#
|
467 |
|
|
# INSTALLATION
|
468 |
|
|
#
|
469 |
|
|
#----------------------------------------------------------------------
|
470 |
|
|
_install_: $(TIX_LIB_FILE) $(TIX_EXE_FILE) $(SAM_INSTALL)
|
471 |
|
|
@for i in $(LIB_DIR) $(BIN_DIR) ; \
|
472 |
|
|
do \
|
473 |
|
|
if [ ! -d $$i ] ; then \
|
474 |
|
|
echo "Making directory $$i"; \
|
475 |
|
|
mkdir $$i; \
|
476 |
|
|
chmod 755 $$i; \
|
477 |
|
|
else true; \
|
478 |
|
|
fi; \
|
479 |
|
|
done;
|
480 |
|
|
@echo "Installing $(TIX_LIB_FILE) as $(LIB_DIR)/$(TIX_LIB_FILE)"
|
481 |
|
|
@$(INSTALL_PROGRAM) $(TIX_LIB_FILE) $(LIB_DIR)/$(TIX_LIB_FILE)
|
482 |
|
|
@echo "Installing $(TIX_EXE_FILE) as $(BIN_DIR)/$(INST_EXE)"
|
483 |
|
|
@$(INSTALL_PROGRAM) $(TIX_EXE_FILE) $(BIN_DIR)/$(INST_EXE)
|
484 |
|
|
|
485 |
|
|
_install_sam_: $(SAM_TARGETS)
|
486 |
|
|
@for i in $(LIB_DIR) $(BIN_DIR) ; \
|
487 |
|
|
do \
|
488 |
|
|
if [ ! -d $$i ] ; then \
|
489 |
|
|
echo "Making directory $$i"; \
|
490 |
|
|
mkdir $$i; \
|
491 |
|
|
chmod 755 $$i; \
|
492 |
|
|
else true; \
|
493 |
|
|
fi; \
|
494 |
|
|
done;
|
495 |
|
|
@echo "Installing $(TIX_SAM_FILE) as $(LIB_DIR)/$(TIX_SAM_FILE)"
|
496 |
|
|
@$(INSTALL_PROGRAM) $(TIX_SAM_FILE) $(LIB_DIR)/$(TIX_SAM_FILE)
|
497 |
|
|
@echo "Installing $(TK_SAM_FILE) as $(LIB_DIR)/$(TK_SAM_FILE)"
|
498 |
|
|
@$(INSTALL_PROGRAM) $(TK_SAM_FILE) $(LIB_DIR)/$(TK_SAM_FILE)
|
499 |
|
|
@echo "Installing $(TCL_SAM_FILE) as $(LIB_DIR)/$(TCL_SAM_FILE)"
|
500 |
|
|
@$(INSTALL_PROGRAM) $(TCL_SAM_FILE) $(LIB_DIR)/$(TCL_SAM_FILE)
|
501 |
|
|
@echo ""
|
502 |
|
|
@echo "Installing $(TIX_SAMEXE_FILE) as $(BIN_DIR)/$(INST_TIX_SAMEXE)"
|
503 |
|
|
@$(INSTALL_PROGRAM) $(TIX_SAMEXE_FILE) $(BIN_DIR)/$(INST_TIX_SAMEXE)
|
504 |
|
|
@echo "Installing $(TK_SAMEXE_FILE) as $(BIN_DIR)/$(INST_TK_SAMEXE)"
|
505 |
|
|
@$(INSTALL_PROGRAM) $(TK_SAMEXE_FILE) $(BIN_DIR)/$(INST_TK_SAMEXE)
|
506 |
|
|
@echo "Installing $(TCL_SAMEXE_FILE) as $(BIN_DIR)/$(INST_TCL_SAMEXE)"
|
507 |
|
|
@$(INSTALL_PROGRAM) $(TCL_SAMEXE_FILE) $(BIN_DIR)/$(INST_TCL_SAMEXE)
|
508 |
|
|
|
509 |
|
|
|
510 |
|
|
install: _install_
|
511 |
|
|
@echo The binary files have been installed.
|
512 |
|
|
@echo You probably need to make install in the parent directory
|
513 |
|
|
@echo to install other files.
|
514 |
|
|
|
515 |
|
|
sam_clean:
|
516 |
|
|
rm -f $(UNIX_DIR)/tixSamLib.c $(UNIX_DIR)/tixBitmaps.c
|
517 |
|
|
|
518 |
|
|
clean:
|
519 |
|
|
rm -f *.so *.a *.o *_s.o core errs *~ \#* TAGS *.E sta* \
|
520 |
|
|
a.out errors $(TIX_EXE_FILE) $(TIX_LIB_FILE) *.bak \
|
521 |
|
|
$(SAM_TARGETS) tclSamLib.c tkSamLib.c
|
522 |
|
|
|
523 |
|
|
distclean: clean
|
524 |
|
|
rm -f Makefile config.* lib.exp
|
525 |
|
|
|
526 |
|
|
depend:
|
527 |
|
|
makedepend -- $(CC_SWITCHES) -- $(SRCS)
|
528 |
|
|
|
529 |
|
|
# CYGNUS LOCAL: Makefile depends upon config.status
|
530 |
|
|
Makefile: Makefile.in config.status
|
531 |
|
|
./config.status
|
532 |
|
|
|
533 |
|
|
.c.o:
|
534 |
|
|
$(CC) -c $(CC_SWITCHES) $<
|
535 |
|
|
|
536 |
|
|
# CYGNUS LOCAL: Rebuild config.status when appropriate.
|
537 |
|
|
config.status: configure
|
538 |
|
|
$(SHELL) config.status --recheck
|
539 |
|
|
|
540 |
|
|
# DO NOT DELETE THIS LINE -- make depend depends on it.
|
541 |
|
|
|