1 |
578 |
markom |
#
|
2 |
|
|
# This file is a Makefile for Tk. If it has the name "Makefile.in"
|
3 |
|
|
# then it is a template for a Makefile; to generate the actual Makefile,
|
4 |
|
|
# run "./configure", which is a configuration script generated by the
|
5 |
|
|
# "autoconf" program (constructs like "@foo@" will get replaced in the
|
6 |
|
|
# actual Makefile.
|
7 |
|
|
#
|
8 |
|
|
# SCCS: @(#) Makefile.in 1.146 97/11/05 11:10:45
|
9 |
|
|
|
10 |
|
|
# Current Tk version; used in various names.
|
11 |
|
|
|
12 |
|
|
TCLVERSION = @TCL_VERSION@
|
13 |
|
|
VERSION = @TK_VERSION@
|
14 |
|
|
|
15 |
|
|
#----------------------------------------------------------------
|
16 |
|
|
# Things you can change to personalize the Makefile for your own
|
17 |
|
|
# site (you can make these changes in either Makefile.in or
|
18 |
|
|
# Makefile, but changes to Makefile will get lost if you re-run
|
19 |
|
|
# the configuration script).
|
20 |
|
|
#----------------------------------------------------------------
|
21 |
|
|
|
22 |
|
|
# Default top-level directories in which to install architecture-
|
23 |
|
|
# specific files (exec_prefix) and machine-independent files such
|
24 |
|
|
# as scripts (prefix). The values specified here may be overridden
|
25 |
|
|
# at configure-time with the --exec-prefix and --prefix options
|
26 |
|
|
# to the "configure" script.
|
27 |
|
|
|
28 |
|
|
prefix = @prefix@
|
29 |
|
|
exec_prefix = @exec_prefix@
|
30 |
|
|
|
31 |
|
|
# The following definition can be set to non-null for special systems
|
32 |
|
|
# like AFS with replication. It allows the pathnames used for installation
|
33 |
|
|
# to be different than those used for actually reference files at
|
34 |
|
|
# run-time. INSTALL_ROOT is prepended to $prefix and $exec_prefix
|
35 |
|
|
# when installing files.
|
36 |
|
|
INSTALL_ROOT =
|
37 |
|
|
|
38 |
|
|
# Directory from which applications will reference the library of Tcl
|
39 |
|
|
# scripts (note: you can set the TK_LIBRARY environment variable at
|
40 |
|
|
# run-time to override the compiled-in location):
|
41 |
|
|
TK_LIBRARY = @datadir@/tk$(VERSION)
|
42 |
|
|
|
43 |
|
|
# CYGNUS LOCAL location independence
|
44 |
|
|
# What is appended to the prefix to get the library name. Note that
|
45 |
|
|
# this MUST begin with a "/".
|
46 |
|
|
TK_LIB_TRAILER = /lib/tk$(VERSION)
|
47 |
|
|
# END CYGNUS LOCAL
|
48 |
|
|
|
49 |
|
|
# Path name to use when installing library scripts:
|
50 |
|
|
SCRIPT_INSTALL_DIR = $(INSTALL_ROOT)$(TK_LIBRARY)
|
51 |
|
|
|
52 |
|
|
# Directory in which to install the .a or .so binary for the Tk library:
|
53 |
|
|
LIB_INSTALL_DIR = $(INSTALL_ROOT)@libdir@
|
54 |
|
|
|
55 |
|
|
# Path to use at runtime to refer to LIB_INSTALL_DIR:
|
56 |
|
|
LIB_RUNTIME_DIR = @libdir@
|
57 |
|
|
|
58 |
|
|
# Directory in which to install the program wish:
|
59 |
|
|
BIN_INSTALL_DIR = $(INSTALL_ROOT)@bindir@
|
60 |
|
|
|
61 |
|
|
# Directory from which the program wish should be referenced by scripts:
|
62 |
|
|
BIN_DIR = @bindir@
|
63 |
|
|
|
64 |
|
|
# Directory in which to install the include file tk.h:
|
65 |
|
|
INCLUDE_INSTALL_DIR = $(INSTALL_ROOT)@includedir@
|
66 |
|
|
|
67 |
|
|
# Top-level directory for manual entries:
|
68 |
|
|
MAN_INSTALL_DIR = $(INSTALL_ROOT)@mandir@
|
69 |
|
|
|
70 |
|
|
# Directory in which to install manual entry for wish:
|
71 |
|
|
MAN1_INSTALL_DIR = $(MAN_INSTALL_DIR)/man1
|
72 |
|
|
|
73 |
|
|
# Directory in which to install manual entries for Tk's C library
|
74 |
|
|
# procedures:
|
75 |
|
|
MAN3_INSTALL_DIR = $(MAN_INSTALL_DIR)/man3
|
76 |
|
|
|
77 |
|
|
# Directory in which to install manual entries for the built-in
|
78 |
|
|
# Tcl commands implemented by Tk:
|
79 |
|
|
MANN_INSTALL_DIR = $(MAN_INSTALL_DIR)/mann
|
80 |
|
|
|
81 |
|
|
# The directory containing the Tcl sources and headers appropriate
|
82 |
|
|
# for this version of Tk ("srcdir" will be replaced or has already
|
83 |
|
|
# been replaced by the configure script):
|
84 |
|
|
TCL_GENERIC_DIR = @TCL_SRC_DIR@/generic
|
85 |
|
|
|
86 |
|
|
# The directory containing the Tcl library archive file appropriate
|
87 |
|
|
# for this version of Tk:
|
88 |
|
|
TCL_BIN_DIR = @TCL_BIN_DIR@
|
89 |
|
|
|
90 |
|
|
# A "-I" switch that can be used when compiling to make all of the
|
91 |
|
|
# X11 include files accessible (the configure script will try to
|
92 |
|
|
# set this value, and will cause it to be an empty string if the
|
93 |
|
|
# include files are accessible via /usr/include).
|
94 |
|
|
X11_INCLUDES = @XINCLUDES@
|
95 |
|
|
|
96 |
|
|
# Linker switch(es) to use to link with the X11 library archive (the
|
97 |
|
|
# configure script will try to set this value automatically, but you
|
98 |
|
|
# can override it).
|
99 |
|
|
X11_LIB_SWITCHES = @XLIBSW@
|
100 |
|
|
|
101 |
|
|
# Libraries to use when linking. This definition is determined by the
|
102 |
|
|
# configure script.
|
103 |
|
|
LIBS = @TCL_BUILD_LIB_SPEC@ @LIBS@ $(X11_LIB_SWITCHES) @DL_LIBS@ @MATH_LIBS@ -lc
|
104 |
|
|
|
105 |
|
|
# To change the compiler switches, for example to change from -O
|
106 |
|
|
# to -g, change the following line:
|
107 |
|
|
CFLAGS = @CFLAGS@
|
108 |
|
|
|
109 |
|
|
# To turn off the security checks that disallow incoming sends when
|
110 |
|
|
# the X server appears to be insecure, reverse the comments on the
|
111 |
|
|
# following lines:
|
112 |
|
|
SECURITY_FLAGS =
|
113 |
|
|
#SECURITY_FLAGS = -DTK_NO_SECURITY
|
114 |
|
|
|
115 |
|
|
# To disable ANSI-C procedure prototypes reverse the comment characters
|
116 |
|
|
# on the following lines:
|
117 |
|
|
PROTO_FLAGS =
|
118 |
|
|
#PROTO_FLAGS = -DNO_PROTOTYPE
|
119 |
|
|
|
120 |
|
|
# To enable memory debugging reverse the comment characters on the following
|
121 |
|
|
# lines. Warning: if you enable memory debugging, you must do it
|
122 |
|
|
# *everywhere*, including all the code that calls Tcl, and you must use
|
123 |
|
|
# ckalloc and ckfree everywhere instead of malloc and free.
|
124 |
|
|
MEM_DEBUG_FLAGS =
|
125 |
|
|
#MEM_DEBUG_FLAGS = -DTCL_MEM_DEBUG
|
126 |
|
|
|
127 |
|
|
# If your X server is X11R4 or earlier, then you may wish to reverse
|
128 |
|
|
# the comment characters on the following two lines. This will enable
|
129 |
|
|
# extra code to speed up XStringToKeysym. In X11R5 and later releases
|
130 |
|
|
# XStringToKeysym is plenty fast, so you needn't define REDO_KEYSYM_LOOKUP.
|
131 |
|
|
KEYSYM_FLAGS =
|
132 |
|
|
#KEYSYM_FLAGS = -DREDO_KEYSYM_LOOKUP
|
133 |
|
|
|
134 |
|
|
# Some versions of make, like SGI's, use the following variable to
|
135 |
|
|
# determine which shell to use for executing commands:
|
136 |
|
|
SHELL = @SHELL@
|
137 |
|
|
|
138 |
|
|
# Tk used to let the configure script choose which program to use
|
139 |
|
|
# for installing, but there are just too many different versions of
|
140 |
|
|
# "install" around; better to use the install-sh script that comes
|
141 |
|
|
# with the distribution, which is slower but guaranteed to work.
|
142 |
|
|
|
143 |
|
|
INSTALL = @srcdir@/install-sh -c
|
144 |
|
|
INSTALL_PROGRAM = ${INSTALL}
|
145 |
|
|
INSTALL_DATA = ${INSTALL} -m 644
|
146 |
|
|
|
147 |
|
|
|
148 |
|
|
# The symbols below provide support for dynamic loading and shared
|
149 |
|
|
# libraries. The values of the symbols are normally set by the
|
150 |
|
|
# configure script. You shouldn't normally need to modify any of
|
151 |
|
|
# these definitions by hand.
|
152 |
|
|
|
153 |
|
|
TK_SHLIB_CFLAGS = @TK_SHLIB_CFLAGS@
|
154 |
|
|
|
155 |
|
|
TK_LIB_FILE = @TK_LIB_FILE@
|
156 |
|
|
#TK_LIB_FILE = libtk.a
|
157 |
|
|
|
158 |
|
|
TK_LIB_FLAG = @TK_LIB_FLAG@
|
159 |
|
|
#TK_LIB_FLAG = -ltk
|
160 |
|
|
|
161 |
|
|
TCL_LIB_FLAG = @TCL_LIB_FLAG@
|
162 |
|
|
#TCL_LIB_FLAG = -ltcl
|
163 |
|
|
|
164 |
|
|
# The symbol below provides support for dynamic loading and shared
|
165 |
|
|
# libraries. See configure.in for a description of what it means.
|
166 |
|
|
# The values of the symbolis normally set by the configure script.
|
167 |
|
|
|
168 |
|
|
SHLIB_LD = @SHLIB_LD@
|
169 |
|
|
|
170 |
|
|
# CYGNUS LOCAL
|
171 |
|
|
# Defines for building libtk
|
172 |
|
|
SHLIB_SUFFIX = @SHLIB_SUFFIX@
|
173 |
|
|
TCL_SHARED_LIB_SUFFIX = @TCL_SHARED_LIB_SUFFIX@
|
174 |
|
|
TCL_UNSHARED_LIB_SUFFIX = @TCL_UNSHARED_LIB_SUFFIX@
|
175 |
|
|
TK_SHARED_LIB_FILE = @TK_SHARED_LIB_FILE@
|
176 |
|
|
TK_UNSHARED_LIB_FILE = @TK_UNSHARED_LIB_FILE@
|
177 |
|
|
|
178 |
|
|
# Additional search flags needed to find the various shared libraries
|
179 |
|
|
# at run-time. The first symbol is for use when creating a binary
|
180 |
|
|
# with cc, and the second is for use when running ld directly.
|
181 |
|
|
TK_CC_SEARCH_FLAGS = @TK_CC_SEARCH_FLAGS@
|
182 |
|
|
TK_LD_SEARCH_FLAGS = @TK_LD_SEARCH_FLAGS@
|
183 |
|
|
|
184 |
|
|
#----------------------------------------------------------------
|
185 |
|
|
# The information below is modified by the configure script when
|
186 |
|
|
# Makefile is generated from Makefile.in. You shouldn't normally
|
187 |
|
|
# modify any of this stuff by hand.
|
188 |
|
|
#----------------------------------------------------------------
|
189 |
|
|
|
190 |
|
|
AC_FLAGS = @DEFS@
|
191 |
|
|
RANLIB = @RANLIB@
|
192 |
|
|
SRC_DIR = @srcdir@/..
|
193 |
|
|
TOP_DIR = @srcdir@/..
|
194 |
|
|
GENERIC_DIR = $(TOP_DIR)/generic
|
195 |
|
|
UNIX_DIR = @srcdir@
|
196 |
|
|
BMAP_DIR = $(TOP_DIR)/bitmaps
|
197 |
|
|
TOOL_DIR = @TCL_SRC_DIR@/tools
|
198 |
|
|
|
199 |
|
|
#----------------------------------------------------------------
|
200 |
|
|
# The information below should be usable as is. The configure
|
201 |
|
|
# script won't modify it and you shouldn't need to modify it
|
202 |
|
|
# either.
|
203 |
|
|
#----------------------------------------------------------------
|
204 |
|
|
|
205 |
|
|
|
206 |
|
|
CC = @CC@
|
207 |
|
|
CC_SWITCHES = ${CFLAGS} ${CFLAGS_WARNING} ${TK_SHLIB_CFLAGS} \
|
208 |
|
|
-I${UNIX_DIR} -I${GENERIC_DIR} \
|
209 |
|
|
-I${BMAP_DIR} -I${TCL_GENERIC_DIR} ${X11_INCLUDES} ${AC_FLAGS} ${PROTO_FLAGS} \
|
210 |
|
|
${SECURITY_FLAGS} ${MEM_DEBUG_FLAGS} ${KEYSYM_FLAGS}
|
211 |
|
|
|
212 |
|
|
DEPEND_SWITCHES = ${CFLAGS} -I${UNIX_DIR} -I${GENERIC_DIR} \
|
213 |
|
|
-I${BMAP_DIR} \
|
214 |
|
|
-I${TCL_GENERIC_DIR} ${X11_INCLUDES} \
|
215 |
|
|
${AC_FLAGS} ${PROTO_FLAGS} ${SECURITY_FLAGS} ${MEM_DEBUG_FLAGS} \
|
216 |
|
|
${KEYSYM_FLAGS}
|
217 |
|
|
|
218 |
|
|
WISH_OBJS = tkAppInit.o
|
219 |
|
|
|
220 |
|
|
TKTEST_OBJS = tkTestInit.o tkTest.o tkSquare.o
|
221 |
|
|
|
222 |
|
|
WIDGOBJS = tkButton.o tkEntry.o tkFrame.o tkListbox.o \
|
223 |
|
|
tkMenu.o tkMenubutton.o tkMenuDraw.o tkMessage.o tkScale.o \
|
224 |
|
|
tkScrollbar.o
|
225 |
|
|
|
226 |
|
|
CANVOBJS = tkCanvas.o tkCanvArc.o tkCanvBmap.o tkCanvImg.o \
|
227 |
|
|
tkCanvLine.o tkCanvPoly.o tkCanvPs.o tkCanvText.o \
|
228 |
|
|
tkCanvUtil.o tkCanvWind.o tkRectOval.o tkTrig.o
|
229 |
|
|
|
230 |
|
|
IMAGEOBJS = tkImage.o tkImgBmap.o tkImgGIF.o tkImgPPM.o tkImgPhoto.o
|
231 |
|
|
|
232 |
|
|
TEXTOBJS = tkText.o tkTextBTree.o tkTextDisp.o tkTextImage.o tkTextIndex.o \
|
233 |
|
|
tkTextMark.o tkTextTag.o tkTextWind.o
|
234 |
|
|
|
235 |
|
|
UNIXOBJS = tkUnix.o tkUnix3d.o tkUnixButton.o tkUnixColor.o tkUnixCursor.o \
|
236 |
|
|
tkUnixDialog.o tkUnixDraw.o \
|
237 |
|
|
tkUnixEmbed.o tkUnixEvent.o tkUnixFocus.o tkUnixFont.o tkUnixInit.o \
|
238 |
|
|
tkUnixMenu.o tkUnixMenubu.o tkUnixScale.o tkUnixScrlbr.o \
|
239 |
|
|
tkUnixSelect.o tkUnixSend.o tkUnixWm.o tkUnixXId.o
|
240 |
|
|
|
241 |
|
|
OBJS = tk3d.o tkArgv.o tkAtom.o tkBind.o tkBitmap.o tkClipboard.o tkCmds.o \
|
242 |
|
|
tkColor.o tkConfig.o tkCursor.o tkError.o tkEvent.o \
|
243 |
|
|
tkFocus.o tkFont.o tkGet.o tkGC.o tkGeometry.o tkGrab.o tkGrid.o \
|
244 |
|
|
tkMain.o tkOption.o tkPack.o tkPlace.o \
|
245 |
|
|
tkSelect.o tkUtil.o tkVisual.o tkWindow.o \
|
246 |
|
|
$(UNIXOBJS) $(WIDGOBJS) $(CANVOBJS) $(IMAGEOBJS) $(TEXTOBJS)
|
247 |
|
|
|
248 |
|
|
SRCS = \
|
249 |
|
|
$(GENERIC_DIR)/tk3d.c $(GENERIC_DIR)/tkArgv.c \
|
250 |
|
|
$(GENERIC_DIR)/tkAtom.c $(GENERIC_DIR)/tkBind.c \
|
251 |
|
|
$(GENERIC_DIR)/tkBitmap.c $(GENERIC_DIR)/tkClipboard.c \
|
252 |
|
|
$(GENERIC_DIR)/tkCmds.c $(GENERIC_DIR)/tkColor.c \
|
253 |
|
|
$(GENERIC_DIR)/tkConfig.c $(GENERIC_DIR)/tkCursor.c \
|
254 |
|
|
$(GENERIC_DIR)/tkError.c $(GENERIC_DIR)/tkEvent.c \
|
255 |
|
|
$(GENERIC_DIR)/tkFocus.c $(GENERIC_DIR)/tkFont.c \
|
256 |
|
|
$(GENERIC_DIR)/tkGet.c $(GENERIC_DIR)/tkGC.c \
|
257 |
|
|
$(GENERIC_DIR)/tkGeometry.c $(GENERIC_DIR)/tkGrab.c \
|
258 |
|
|
$(GENERIC_DIR)/tkGrid.c \
|
259 |
|
|
$(GENERIC_DIR)/tkMain.c $(GENERIC_DIR)/tkOption.c \
|
260 |
|
|
$(GENERIC_DIR)/tkPack.c $(GENERIC_DIR)/tkPlace.c \
|
261 |
|
|
$(GENERIC_DIR)/tkSelect.c $(GENERIC_DIR)/tkUtil.c \
|
262 |
|
|
$(GENERIC_DIR)/tkVisual.c $(GENERIC_DIR)/tkWindow.c \
|
263 |
|
|
$(GENERIC_DIR)/tkButton.c \
|
264 |
|
|
$(GENERIC_DIR)/tkEntry.c $(GENERIC_DIR)/tkFrame.c \
|
265 |
|
|
$(GENERIC_DIR)/tkListbox.c $(GENERIC_DIR)/tkMenu.c \
|
266 |
|
|
$(GENERIC_DIR)/tkMenubutton.c $(GENERIC_DIR)/tkMenuDraw.c \
|
267 |
|
|
$(GENERIC_DIR)/tkMessage.c \
|
268 |
|
|
$(GENERIC_DIR)/tkScale.c $(GENERIC_DIR)/tkScrollbar.c \
|
269 |
|
|
$(GENERIC_DIR)/tkCanvas.c $(GENERIC_DIR)/tkCanvArc.c \
|
270 |
|
|
$(GENERIC_DIR)/tkCanvBmap.c $(GENERIC_DIR)/tkCanvImg.c \
|
271 |
|
|
$(GENERIC_DIR)/tkCanvLine.c $(GENERIC_DIR)/tkCanvPoly.c \
|
272 |
|
|
$(GENERIC_DIR)/tkCanvPs.c $(GENERIC_DIR)/tkCanvText.c \
|
273 |
|
|
$(GENERIC_DIR)/tkCanvUtil.c \
|
274 |
|
|
$(GENERIC_DIR)/tkCanvWind.c $(GENERIC_DIR)/tkRectOval.c \
|
275 |
|
|
$(GENERIC_DIR)/tkTrig.c $(GENERIC_DIR)/tkImage.c \
|
276 |
|
|
$(GENERIC_DIR)/tkImgBmap.c $(GENERIC_DIR)/tkImgGIF.c \
|
277 |
|
|
$(GENERIC_DIR)/tkImgPPM.c \
|
278 |
|
|
$(GENERIC_DIR)/tkImgPhoto.c $(GENERIC_DIR)/tkText.c \
|
279 |
|
|
$(GENERIC_DIR)/tkTextBTree.c $(GENERIC_DIR)/tkTextDisp.c \
|
280 |
|
|
$(GENERIC_DIR)/tkTextImage.c \
|
281 |
|
|
$(GENERIC_DIR)/tkTextIndex.c $(GENERIC_DIR)/tkTextMark.c \
|
282 |
|
|
$(GENERIC_DIR)/tkTextTag.c $(GENERIC_DIR)/tkTextWind.c \
|
283 |
|
|
$(GENERIC_DIR)/tkSquare.c $(GENERIC_DIR)/tkTest.c \
|
284 |
|
|
$(UNIX_DIR)/tkAppInit.c $(UNIX_DIR)/tkUnix.c \
|
285 |
|
|
$(UNIX_DIR)/tkUnix3d.c \
|
286 |
|
|
$(UNIX_DIR)/tkUnixButton.c $(UNIX_DIR)/tkUnixColor.c \
|
287 |
|
|
$(UNIX_DIR)/tkUnixCursor.c \
|
288 |
|
|
$(UNIX_DIR)/tkUnixDialog.c $(UNIX_DIR)/tkUnixDraw.c \
|
289 |
|
|
$(UNIX_DIR)/tkUnixEmbed.c $(UNIX_DIR)/tkUnixEvent.c \
|
290 |
|
|
$(UNIX_DIR)/tkUnixFocus.c \
|
291 |
|
|
$(UNIX_DIR)/tkUnixFont.c $(UNIX_DIR)/tkUnixInit.c \
|
292 |
|
|
$(UNIX_DIR)/tkUnixMenu.c $(UNIX_DIR)/tkUnixMenubu.c \
|
293 |
|
|
$(UNIX_DIR)/tkUnixScale.c $(UNIX_DIR)/tkUnixScrlbr.c \
|
294 |
|
|
$(UNIX_DIR)/tkUnixSelect.c \
|
295 |
|
|
$(UNIX_DIR)/tkUnixSend.c $(UNIX_DIR)/tkUnixWm.c \
|
296 |
|
|
$(UNIX_DIR)/tkUnixXId.c
|
297 |
|
|
|
298 |
|
|
|
299 |
|
|
HDRS = bltList.h \
|
300 |
|
|
default.h ks_names.h tkPatch.h tk.h tkButton.h tkCanvas.h tkInt.h \
|
301 |
|
|
tkPort.h tkScrollbar.h tkText.h
|
302 |
|
|
|
303 |
|
|
DEMOPROGS = browse hello ixset rmt rolodex square tcolor timer widget
|
304 |
|
|
|
305 |
|
|
all: wish
|
306 |
|
|
|
307 |
|
|
# CYGNUS LOCAL
|
308 |
|
|
|
309 |
|
|
# The shared- and unshared-library cases are separate, so that RANLIB
|
310 |
|
|
# can unconditionally work.
|
311 |
|
|
|
312 |
|
|
${TK_SHARED_LIB_FILE}: ${OBJS}
|
313 |
|
|
rm -f @TK_LIB_FILE@
|
314 |
|
|
@MAKE_LIB@
|
315 |
|
|
|
316 |
|
|
${TK_UNSHARED_LIB_FILE}: ${OBJS}
|
317 |
|
|
rm -f @TK_LIB_FILE@
|
318 |
|
|
@MAKE_LIB@
|
319 |
|
|
$(RANLIB) ${TK_LIB_FILE}
|
320 |
|
|
|
321 |
|
|
# END CYGNUS LOCAL
|
322 |
|
|
|
323 |
|
|
# Make target which outputs the list of the .o contained in the Tk lib
|
324 |
|
|
# usefull to build a single big shared library containing Tcl/Tk and other
|
325 |
|
|
# extensions. used for the Tcl Plugin. -- dl
|
326 |
|
|
tkLibObjs:
|
327 |
|
|
@echo ${OBJS}
|
328 |
|
|
# This targets actually build the objects needed for the lib in the above
|
329 |
|
|
# case
|
330 |
|
|
objs: ${OBJS}
|
331 |
|
|
|
332 |
|
|
|
333 |
|
|
wish: $(WISH_OBJS) $(TK_LIB_FILE)
|
334 |
|
|
$(CC) @LD_FLAGS@ $(WISH_OBJS) @TK_BUILD_LIB_SPEC@ $(LIBS) \
|
335 |
|
|
$(TK_CC_SEARCH_FLAGS) -o wish
|
336 |
|
|
|
337 |
|
|
tktest: $(TKTEST_OBJS) $(TK_LIB_FILE)
|
338 |
|
|
${CC} @LD_FLAGS@ $(TKTEST_OBJS) @TK_BUILD_LIB_SPEC@ $(LIBS) \
|
339 |
|
|
$(TK_CC_SEARCH_FLAGS) -o tktest
|
340 |
|
|
|
341 |
|
|
xttest: test.o tkTest.o tkSquare.o $(TK_LIB_FILE)
|
342 |
|
|
${CC} @LD_FLAGS@ test.o tkTest.o tkSquare.o \
|
343 |
|
|
@TK_BUILD_LIB_SPEC@ $(LIBS) \
|
344 |
|
|
@TK_LD_SEARCH_FLAGS@ -lXt -o xttest
|
345 |
|
|
|
346 |
|
|
# Note, in the target below TCL_LIBRARY needs to be set or else
|
347 |
|
|
# "make test" won't work in the case where the compilation directory
|
348 |
|
|
# isn't the same as the source directory.
|
349 |
|
|
|
350 |
|
|
test: tktest
|
351 |
|
|
LD_LIBRARY_PATH=`pwd`:${TCL_BIN_DIR}:${LD_LIBRARY_PATH}; \
|
352 |
|
|
export LD_LIBRARY_PATH; \
|
353 |
|
|
SHLIB_PATH=`pwd`:${TCL_BIN_DIR}:${SHLIB_PATH}; \
|
354 |
|
|
export SHLIB_PATH; \
|
355 |
|
|
TCL_LIBRARY=@TCL_SRC_DIR@/library; export TCL_LIBRARY; \
|
356 |
|
|
TK_LIBRARY=$(TOP_DIR)/library; export TK_LIBRARY; \
|
357 |
|
|
( echo cd $(TOP_DIR)/tests\; source all\; exit ) \
|
358 |
|
|
| ./tktest -geometry +0+0
|
359 |
|
|
|
360 |
|
|
|
361 |
|
|
# Useful target to launch a built tktest with the proper path,...
|
362 |
|
|
runtest:
|
363 |
|
|
LD_LIBRARY_PATH=`pwd`:${TCL_BIN_DIR}:${LD_LIBRARY_PATH}; \
|
364 |
|
|
export LD_LIBRARY_PATH; \
|
365 |
|
|
SHLIB_PATH=`pwd`:${TCL_BIN_DIR}:${SHLIB_PATH}; \
|
366 |
|
|
export SHLIB_PATH; \
|
367 |
|
|
TCL_LIBRARY=@TCL_SRC_DIR@/library; export TCL_LIBRARY; \
|
368 |
|
|
TK_LIBRARY=$(TOP_DIR)/library; export TK_LIBRARY; \
|
369 |
|
|
./tktest
|
370 |
|
|
|
371 |
|
|
install: install-binaries install-libraries install-demos install-man
|
372 |
|
|
|
373 |
|
|
# Note: before running ranlib below, must cd to target directory because
|
374 |
|
|
# some ranlibs write to current directory, and this might not always be
|
375 |
|
|
# possible (e.g. if installing as root).
|
376 |
|
|
|
377 |
|
|
install-binaries: $(TK_LIB_FILE) wish
|
378 |
|
|
@for i in $(LIB_INSTALL_DIR) $(BIN_INSTALL_DIR) ; \
|
379 |
|
|
do \
|
380 |
|
|
if [ ! -d $$i ] ; then \
|
381 |
|
|
echo "Making directory $$i"; \
|
382 |
|
|
mkdir $$i; \
|
383 |
|
|
chmod 755 $$i; \
|
384 |
|
|
else true; \
|
385 |
|
|
fi; \
|
386 |
|
|
done;
|
387 |
|
|
@echo "Installing $(TK_LIB_FILE)"
|
388 |
|
|
@$(INSTALL_DATA) $(TK_LIB_FILE) $(LIB_INSTALL_DIR)/$(TK_LIB_FILE)
|
389 |
|
|
@(cd $(LIB_INSTALL_DIR); $(RANLIB) $(TK_LIB_FILE))
|
390 |
|
|
@chmod 555 $(LIB_INSTALL_DIR)/$(TK_LIB_FILE)
|
391 |
|
|
@echo "Installing wish"
|
392 |
|
|
@$(INSTALL_PROGRAM) wish $(BIN_INSTALL_DIR)/wish
|
393 |
|
|
@echo "Installing tkConfig.sh"
|
394 |
|
|
@$(INSTALL_DATA) tkConfig.sh $(LIB_INSTALL_DIR)/tkConfig.sh
|
395 |
|
|
|
396 |
|
|
install-libraries:
|
397 |
|
|
@for i in $(INSTALL_ROOT)@datadir@ $(INCLUDE_INSTALL_DIR) \
|
398 |
|
|
$(SCRIPT_INSTALL_DIR) $(SCRIPT_INSTALL_DIR)/images; \
|
399 |
|
|
do \
|
400 |
|
|
if [ ! -d $$i ] ; then \
|
401 |
|
|
echo "Making directory $$i"; \
|
402 |
|
|
mkdir $$i; \
|
403 |
|
|
chmod 755 $$i; \
|
404 |
|
|
else true; \
|
405 |
|
|
fi; \
|
406 |
|
|
done;
|
407 |
|
|
@echo "Installing tk.h"
|
408 |
|
|
@$(INSTALL_DATA) $(GENERIC_DIR)/tk.h $(INCLUDE_INSTALL_DIR)/tk.h
|
409 |
|
|
for i in $(SRC_DIR)/library/*.tcl $(SRC_DIR)/library/tclIndex $(SRC_DIR)/library/prolog.ps $(UNIX_DIR)/tkAppInit.c; \
|
410 |
|
|
do \
|
411 |
|
|
echo "Installing $$i"; \
|
412 |
|
|
$(INSTALL_DATA) $$i $(SCRIPT_INSTALL_DIR); \
|
413 |
|
|
done;
|
414 |
|
|
for i in $(SRC_DIR)/library/images/*; \
|
415 |
|
|
do \
|
416 |
|
|
if [ -f $$i ] ; then \
|
417 |
|
|
echo "Installing $$i"; \
|
418 |
|
|
$(INSTALL_DATA) $$i $(SCRIPT_INSTALL_DIR)/images; \
|
419 |
|
|
fi; \
|
420 |
|
|
done;
|
421 |
|
|
|
422 |
|
|
# CYGNUS LOCAL: install-minimal target.
|
423 |
|
|
install-minimal:
|
424 |
|
|
@for i in $(INSTALL_ROOT)@datadir@ $(INCLUDE_INSTALL_DIR) \
|
425 |
|
|
$(SCRIPT_INSTALL_DIR) $(SCRIPT_INSTALL_DIR)/images; \
|
426 |
|
|
do \
|
427 |
|
|
if [ ! -d $$i ] ; then \
|
428 |
|
|
echo "Making directory $$i"; \
|
429 |
|
|
mkdir $$i; \
|
430 |
|
|
chmod 755 $$i; \
|
431 |
|
|
else true; \
|
432 |
|
|
fi; \
|
433 |
|
|
done;
|
434 |
|
|
for i in $(SRC_DIR)/library/*.tcl $(SRC_DIR)/library/tclIndex $(SRC_DIR)/library/prolog.ps; \
|
435 |
|
|
do \
|
436 |
|
|
echo "Installing $$i"; \
|
437 |
|
|
$(INSTALL_DATA) $$i $(SCRIPT_INSTALL_DIR); \
|
438 |
|
|
done;
|
439 |
|
|
|
440 |
|
|
install-demos:
|
441 |
|
|
@for i in $(INSTALL_ROOT)@datadir@ $(SCRIPT_INSTALL_DIR) \
|
442 |
|
|
$(SCRIPT_INSTALL_DIR)/demos \
|
443 |
|
|
$(SCRIPT_INSTALL_DIR)/demos/images ; \
|
444 |
|
|
do \
|
445 |
|
|
if [ ! -d $$i ] ; then \
|
446 |
|
|
echo "Making directory $$i"; \
|
447 |
|
|
mkdir $$i; \
|
448 |
|
|
chmod 755 $$i; \
|
449 |
|
|
else true; \
|
450 |
|
|
fi; \
|
451 |
|
|
done;
|
452 |
|
|
@for i in $(SRC_DIR)/library/demos/*; \
|
453 |
|
|
do \
|
454 |
|
|
if [ -f $$i ] ; then \
|
455 |
|
|
echo "Installing $$i"; \
|
456 |
|
|
sed -e '3 s|exec wish|exec wish$(VERSION)|' \
|
457 |
|
|
$$i > $(SCRIPT_INSTALL_DIR)/demos/`basename $$i`; \
|
458 |
|
|
fi; \
|
459 |
|
|
done;
|
460 |
|
|
@for i in $(DEMOPROGS); \
|
461 |
|
|
do \
|
462 |
|
|
chmod 755 $(SCRIPT_INSTALL_DIR)/demos/$$i; \
|
463 |
|
|
done;
|
464 |
|
|
@for i in $(SRC_DIR)/library/demos/images/*; \
|
465 |
|
|
do \
|
466 |
|
|
if [ -f $$i ] ; then \
|
467 |
|
|
echo "Installing $$i"; \
|
468 |
|
|
$(INSTALL_DATA) $$i $(SCRIPT_INSTALL_DIR)/demos/images; \
|
469 |
|
|
fi; \
|
470 |
|
|
done;
|
471 |
|
|
|
472 |
|
|
install-man:
|
473 |
|
|
@for i in $(MAN_INSTALL_DIR) $(MAN1_INSTALL_DIR) $(MAN3_INSTALL_DIR) ; \
|
474 |
|
|
do \
|
475 |
|
|
if [ ! -d $$i ] ; then \
|
476 |
|
|
echo "Making directory $$i"; \
|
477 |
|
|
mkdir $$i; \
|
478 |
|
|
chmod 755 $$i; \
|
479 |
|
|
else true; \
|
480 |
|
|
fi; \
|
481 |
|
|
done;
|
482 |
|
|
@cd $(SRC_DIR)/doc; for i in *.1; \
|
483 |
|
|
do \
|
484 |
|
|
echo "Installing doc/$$i"; \
|
485 |
|
|
rm -f $(MAN1_INSTALL_DIR)/$$i; \
|
486 |
|
|
sed -e '/man\.macros/r man.macros' -e '/man\.macros/d' \
|
487 |
|
|
$$i > $(MAN1_INSTALL_DIR)/$$i; \
|
488 |
|
|
chmod 644 $(MAN1_INSTALL_DIR)/$$i; \
|
489 |
|
|
done;
|
490 |
|
|
$(UNIX_DIR)/mkLinks $(MAN1_INSTALL_DIR)
|
491 |
|
|
@cd $(SRC_DIR)/doc; for i in *.3; \
|
492 |
|
|
do \
|
493 |
|
|
echo "Installing doc/$$i"; \
|
494 |
|
|
rm -f $(MAN3_INSTALL_DIR)/$$i; \
|
495 |
|
|
sed -e '/man\.macros/r man.macros' -e '/man\.macros/d' \
|
496 |
|
|
$$i > $(MAN3_INSTALL_DIR)/$$i; \
|
497 |
|
|
chmod 644 $(MAN3_INSTALL_DIR)/$$i; \
|
498 |
|
|
done;
|
499 |
|
|
@cd $(SRC_DIR)/doc; for i in *.n; \
|
500 |
|
|
do \
|
501 |
|
|
echo "Installing doc/$$i"; \
|
502 |
|
|
rm -f $(MAN3_INSTALL_DIR)/$$i; \
|
503 |
|
|
name=`echo $$i | sed -e 's/n$$/3/'`; \
|
504 |
|
|
sed -e '/man\.macros/r man.macros' -e '/man\.macros/d' \
|
505 |
|
|
$$i > $(MAN3_INSTALL_DIR)/$$name; \
|
506 |
|
|
chmod 644 $(MAN3_INSTALL_DIR)/$$name; \
|
507 |
|
|
done;
|
508 |
|
|
$(UNIX_DIR)/mkLinks $(MAN3_INSTALL_DIR)
|
509 |
|
|
|
510 |
|
|
Makefile: $(UNIX_DIR)/Makefile.in config.status
|
511 |
|
|
$(SHELL) config.status
|
512 |
|
|
|
513 |
|
|
config.status: $(UNIX_DIR)/configure
|
514 |
|
|
./config.status --recheck
|
515 |
|
|
|
516 |
|
|
clean:
|
517 |
|
|
rm -f *.a *.o libtk* core errs *~ \#* TAGS *.E a.out errors \
|
518 |
|
|
tktest wish config.info lib.exp
|
519 |
|
|
|
520 |
|
|
distclean: clean
|
521 |
|
|
rm -f Makefile config.status config.cache config.log tkConfig.sh \
|
522 |
|
|
SUNWtk.* prototype
|
523 |
|
|
|
524 |
|
|
depend:
|
525 |
|
|
makedepend -- $(DEPEND_SWITCHES) -- $(SRCS)
|
526 |
|
|
|
527 |
|
|
# Test binaries. The rule for tkTestInit.o is complicated because
|
528 |
|
|
# it is is compiled from tkAppInit.c. Can't use the "-o" option
|
529 |
|
|
# because this doesn't work on some strange compilers (e.g. UnixWare).
|
530 |
|
|
|
531 |
|
|
tkTestInit.o: $(UNIX_DIR)/tkAppInit.c
|
532 |
|
|
@if test -f tkAppInit.o ; then \
|
533 |
|
|
rm -f tkAppInit.sav; \
|
534 |
|
|
mv tkAppInit.o tkAppInit.sav; \
|
535 |
|
|
fi;
|
536 |
|
|
$(CC) -c $(CC_SWITCHES) -DTK_TEST $(UNIX_DIR)/tkAppInit.c
|
537 |
|
|
rm -f tkTestInit.o
|
538 |
|
|
mv tkAppInit.o tkTestInit.o
|
539 |
|
|
@if test -f tkAppInit.sav ; then \
|
540 |
|
|
mv tkAppInit.sav tkAppInit.o; \
|
541 |
|
|
fi;
|
542 |
|
|
|
543 |
|
|
tk3d.o: $(GENERIC_DIR)/tk3d.c
|
544 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tk3d.c
|
545 |
|
|
|
546 |
|
|
tkAppInit.o: $(UNIX_DIR)/tkAppInit.c
|
547 |
|
|
$(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tkAppInit.c
|
548 |
|
|
|
549 |
|
|
tkArgv.o: $(GENERIC_DIR)/tkArgv.c
|
550 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkArgv.c
|
551 |
|
|
|
552 |
|
|
tkAtom.o: $(GENERIC_DIR)/tkAtom.c
|
553 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkAtom.c
|
554 |
|
|
|
555 |
|
|
tkBind.o: $(GENERIC_DIR)/tkBind.c
|
556 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkBind.c
|
557 |
|
|
|
558 |
|
|
tkBitmap.o: $(GENERIC_DIR)/tkBitmap.c
|
559 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkBitmap.c
|
560 |
|
|
|
561 |
|
|
tkClipboard.o: $(GENERIC_DIR)/tkClipboard.c
|
562 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkClipboard.c
|
563 |
|
|
|
564 |
|
|
tkCmds.o: $(GENERIC_DIR)/tkCmds.c
|
565 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkCmds.c
|
566 |
|
|
|
567 |
|
|
tkColor.o: $(GENERIC_DIR)/tkColor.c
|
568 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkColor.c
|
569 |
|
|
|
570 |
|
|
tkConfig.o: $(GENERIC_DIR)/tkConfig.c
|
571 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkConfig.c
|
572 |
|
|
|
573 |
|
|
tkCursor.o: $(GENERIC_DIR)/tkCursor.c
|
574 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkCursor.c
|
575 |
|
|
|
576 |
|
|
tkError.o: $(GENERIC_DIR)/tkError.c
|
577 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkError.c
|
578 |
|
|
|
579 |
|
|
tkEvent.o: $(GENERIC_DIR)/tkEvent.c
|
580 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkEvent.c
|
581 |
|
|
|
582 |
|
|
tkFocus.o: $(GENERIC_DIR)/tkFocus.c
|
583 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkFocus.c
|
584 |
|
|
|
585 |
|
|
tkFont.o: $(GENERIC_DIR)/tkFont.c
|
586 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkFont.c
|
587 |
|
|
|
588 |
|
|
tkGet.o: $(GENERIC_DIR)/tkGet.c
|
589 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkGet.c
|
590 |
|
|
|
591 |
|
|
tkGC.o: $(GENERIC_DIR)/tkGC.c
|
592 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkGC.c
|
593 |
|
|
|
594 |
|
|
tkGeometry.o: $(GENERIC_DIR)/tkGeometry.c
|
595 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkGeometry.c
|
596 |
|
|
|
597 |
|
|
tkGrab.o: $(GENERIC_DIR)/tkGrab.c
|
598 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkGrab.c
|
599 |
|
|
|
600 |
|
|
tkGrid.o: $(GENERIC_DIR)/tkGrid.c
|
601 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkGrid.c
|
602 |
|
|
|
603 |
|
|
tkMain.o: $(GENERIC_DIR)/tkMain.c
|
604 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkMain.c
|
605 |
|
|
|
606 |
|
|
tkOption.o: $(GENERIC_DIR)/tkOption.c
|
607 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkOption.c
|
608 |
|
|
|
609 |
|
|
tkPack.o: $(GENERIC_DIR)/tkPack.c
|
610 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkPack.c
|
611 |
|
|
|
612 |
|
|
tkPlace.o: $(GENERIC_DIR)/tkPlace.c
|
613 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkPlace.c
|
614 |
|
|
|
615 |
|
|
tkSelect.o: $(GENERIC_DIR)/tkSelect.c
|
616 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkSelect.c
|
617 |
|
|
|
618 |
|
|
tkUtil.o: $(GENERIC_DIR)/tkUtil.c
|
619 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkUtil.c
|
620 |
|
|
|
621 |
|
|
tkVisual.o: $(GENERIC_DIR)/tkVisual.c
|
622 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkVisual.c
|
623 |
|
|
|
624 |
|
|
tkWindow.o: $(GENERIC_DIR)/tkWindow.c
|
625 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkWindow.c
|
626 |
|
|
|
627 |
|
|
tkButton.o: $(GENERIC_DIR)/tkButton.c
|
628 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkButton.c
|
629 |
|
|
|
630 |
|
|
tkEntry.o: $(GENERIC_DIR)/tkEntry.c
|
631 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkEntry.c
|
632 |
|
|
|
633 |
|
|
tkFrame.o: $(GENERIC_DIR)/tkFrame.c
|
634 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkFrame.c
|
635 |
|
|
|
636 |
|
|
tkListbox.o: $(GENERIC_DIR)/tkListbox.c
|
637 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkListbox.c
|
638 |
|
|
|
639 |
|
|
tkMenu.o: $(GENERIC_DIR)/tkMenu.c
|
640 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkMenu.c
|
641 |
|
|
|
642 |
|
|
tkMenubutton.o: $(GENERIC_DIR)/tkMenubutton.c
|
643 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkMenubutton.c
|
644 |
|
|
|
645 |
|
|
tkMenuDraw.o: $(GENERIC_DIR)/tkMenuDraw.c
|
646 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkMenuDraw.c
|
647 |
|
|
|
648 |
|
|
tkMessage.o: $(GENERIC_DIR)/tkMessage.c
|
649 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkMessage.c
|
650 |
|
|
|
651 |
|
|
tkScale.o: $(GENERIC_DIR)/tkScale.c
|
652 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkScale.c
|
653 |
|
|
|
654 |
|
|
tkScrollbar.o: $(GENERIC_DIR)/tkScrollbar.c
|
655 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkScrollbar.c
|
656 |
|
|
|
657 |
|
|
tkSquare.o: $(GENERIC_DIR)/tkSquare.c
|
658 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkSquare.c
|
659 |
|
|
|
660 |
|
|
tkCanvas.o: $(GENERIC_DIR)/tkCanvas.c
|
661 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkCanvas.c
|
662 |
|
|
|
663 |
|
|
tkCanvArc.o: $(GENERIC_DIR)/tkCanvArc.c
|
664 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkCanvArc.c
|
665 |
|
|
|
666 |
|
|
tkCanvBmap.o: $(GENERIC_DIR)/tkCanvBmap.c
|
667 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkCanvBmap.c
|
668 |
|
|
|
669 |
|
|
tkCanvImg.o: $(GENERIC_DIR)/tkCanvImg.c
|
670 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkCanvImg.c
|
671 |
|
|
|
672 |
|
|
tkCanvLine.o: $(GENERIC_DIR)/tkCanvLine.c
|
673 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkCanvLine.c
|
674 |
|
|
|
675 |
|
|
tkCanvPoly.o: $(GENERIC_DIR)/tkCanvPoly.c
|
676 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkCanvPoly.c
|
677 |
|
|
|
678 |
|
|
tkCanvPs.o: $(GENERIC_DIR)/tkCanvPs.c
|
679 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkCanvPs.c
|
680 |
|
|
|
681 |
|
|
tkCanvText.o: $(GENERIC_DIR)/tkCanvText.c
|
682 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkCanvText.c
|
683 |
|
|
|
684 |
|
|
tkCanvUtil.o: $(GENERIC_DIR)/tkCanvUtil.c
|
685 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkCanvUtil.c
|
686 |
|
|
|
687 |
|
|
tkCanvWind.o: $(GENERIC_DIR)/tkCanvWind.c
|
688 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkCanvWind.c
|
689 |
|
|
|
690 |
|
|
tkRectOval.o: $(GENERIC_DIR)/tkRectOval.c
|
691 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkRectOval.c
|
692 |
|
|
|
693 |
|
|
tkTrig.o: $(GENERIC_DIR)/tkTrig.c
|
694 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkTrig.c
|
695 |
|
|
|
696 |
|
|
tkImage.o: $(GENERIC_DIR)/tkImage.c
|
697 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkImage.c
|
698 |
|
|
|
699 |
|
|
tkImgBmap.o: $(GENERIC_DIR)/tkImgBmap.c
|
700 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkImgBmap.c
|
701 |
|
|
|
702 |
|
|
tkImgGIF.o: $(GENERIC_DIR)/tkImgGIF.c
|
703 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkImgGIF.c
|
704 |
|
|
|
705 |
|
|
tkImgPPM.o: $(GENERIC_DIR)/tkImgPPM.c
|
706 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkImgPPM.c
|
707 |
|
|
|
708 |
|
|
tkImgPhoto.o: $(GENERIC_DIR)/tkImgPhoto.c
|
709 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkImgPhoto.c
|
710 |
|
|
|
711 |
|
|
tkTest.o: $(GENERIC_DIR)/tkTest.c
|
712 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkTest.c
|
713 |
|
|
|
714 |
|
|
tkText.o: $(GENERIC_DIR)/tkText.c
|
715 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkText.c
|
716 |
|
|
|
717 |
|
|
tkTextBTree.o: $(GENERIC_DIR)/tkTextBTree.c
|
718 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkTextBTree.c
|
719 |
|
|
|
720 |
|
|
tkTextDisp.o: $(GENERIC_DIR)/tkTextDisp.c
|
721 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkTextDisp.c
|
722 |
|
|
|
723 |
|
|
tkTextImage.o: $(GENERIC_DIR)/tkTextImage.c
|
724 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkTextImage.c
|
725 |
|
|
|
726 |
|
|
tkTextIndex.o: $(GENERIC_DIR)/tkTextIndex.c
|
727 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkTextIndex.c
|
728 |
|
|
|
729 |
|
|
tkTextMark.o: $(GENERIC_DIR)/tkTextMark.c
|
730 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkTextMark.c
|
731 |
|
|
|
732 |
|
|
tkTextTag.o: $(GENERIC_DIR)/tkTextTag.c
|
733 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkTextTag.c
|
734 |
|
|
|
735 |
|
|
tkTextWind.o: $(GENERIC_DIR)/tkTextWind.c
|
736 |
|
|
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkTextWind.c
|
737 |
|
|
|
738 |
|
|
tkUnix.o: $(UNIX_DIR)/tkUnix.c
|
739 |
|
|
$(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tkUnix.c
|
740 |
|
|
|
741 |
|
|
tkUnix3d.o: $(UNIX_DIR)/tkUnix3d.c
|
742 |
|
|
$(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tkUnix3d.c
|
743 |
|
|
|
744 |
|
|
tkUnixButton.o: $(UNIX_DIR)/tkUnixButton.c
|
745 |
|
|
$(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tkUnixButton.c
|
746 |
|
|
|
747 |
|
|
tkUnixColor.o: $(UNIX_DIR)/tkUnixColor.c
|
748 |
|
|
$(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tkUnixColor.c
|
749 |
|
|
|
750 |
|
|
tkUnixCursor.o: $(UNIX_DIR)/tkUnixCursor.c
|
751 |
|
|
$(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tkUnixCursor.c
|
752 |
|
|
|
753 |
|
|
tkUnixDialog.o: $(UNIX_DIR)/tkUnixDialog.c
|
754 |
|
|
$(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tkUnixDialog.c
|
755 |
|
|
|
756 |
|
|
tkUnixDraw.o: $(UNIX_DIR)/tkUnixDraw.c
|
757 |
|
|
$(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tkUnixDraw.c
|
758 |
|
|
|
759 |
|
|
tkUnixEmbed.o: $(UNIX_DIR)/tkUnixEmbed.c
|
760 |
|
|
$(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tkUnixEmbed.c
|
761 |
|
|
|
762 |
|
|
tkUnixEvent.o: $(UNIX_DIR)/tkUnixEvent.c
|
763 |
|
|
$(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tkUnixEvent.c
|
764 |
|
|
|
765 |
|
|
tkUnixFocus.o: $(UNIX_DIR)/tkUnixFocus.c
|
766 |
|
|
$(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tkUnixFocus.c
|
767 |
|
|
|
768 |
|
|
tkUnixFont.o: $(UNIX_DIR)/tkUnixFont.c
|
769 |
|
|
$(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tkUnixFont.c
|
770 |
|
|
|
771 |
|
|
tkUnixInit.o: $(UNIX_DIR)/tkUnixInit.c $(GENERIC_DIR)/tkInitScript.h tkConfig.sh
|
772 |
|
|
$(CC) -c $(CC_SWITCHES) -DTK_LIBRARY=\"${TK_LIBRARY}\" \
|
773 |
|
|
$(UNIX_DIR)/tkUnixInit.c
|
774 |
|
|
|
775 |
|
|
tkUnixMenu.o: $(UNIX_DIR)/tkUnixMenu.c
|
776 |
|
|
$(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tkUnixMenu.c
|
777 |
|
|
|
778 |
|
|
tkUnixMenubu.o: $(UNIX_DIR)/tkUnixMenubu.c
|
779 |
|
|
$(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tkUnixMenubu.c
|
780 |
|
|
|
781 |
|
|
tkUnixScale.o: $(UNIX_DIR)/tkUnixScale.c
|
782 |
|
|
$(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tkUnixScale.c
|
783 |
|
|
|
784 |
|
|
tkUnixScrlbr.o: $(UNIX_DIR)/tkUnixScrlbr.c
|
785 |
|
|
$(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tkUnixScrlbr.c
|
786 |
|
|
|
787 |
|
|
tkUnixSelect.o: $(UNIX_DIR)/tkUnixSelect.c
|
788 |
|
|
$(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tkUnixSelect.c
|
789 |
|
|
|
790 |
|
|
tkUnixSend.o: $(UNIX_DIR)/tkUnixSend.c
|
791 |
|
|
$(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tkUnixSend.c
|
792 |
|
|
|
793 |
|
|
tkUnixWm.o: $(UNIX_DIR)/tkUnixWm.c
|
794 |
|
|
$(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tkUnixWm.c
|
795 |
|
|
|
796 |
|
|
tkUnixXId.o: $(UNIX_DIR)/tkUnixXId.c
|
797 |
|
|
$(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tkUnixXId.c
|
798 |
|
|
|
799 |
|
|
.c.o:
|
800 |
|
|
$(CC) -c $(CC_SWITCHES) $<
|
801 |
|
|
|
802 |
|
|
#
|
803 |
|
|
# Target to check for proper usage of UCHAR macro.
|
804 |
|
|
#
|
805 |
|
|
|
806 |
|
|
checkuchar:
|
807 |
|
|
-egrep isalnum\|isalpha\|iscntrl\|isdigit\|islower\|isprint\|ispunct\|isspace\|isupper\|isxdigit\|toupper\|tolower $(SRCS) | grep -v UCHAR
|
808 |
|
|
|
809 |
|
|
#
|
810 |
|
|
# Target to make sure that only symbols with "Tk" prefixes are
|
811 |
|
|
# exported.
|
812 |
|
|
#
|
813 |
|
|
|
814 |
|
|
checkexports: $(TK_LIB_FILE)
|
815 |
|
|
-nm -p $(TK_LIB_FILE) | awk '$$2 ~ /[TDB]/ { print $$3 }' | sort -n | grep -v '^[Tt]k'
|
816 |
|
|
|
817 |
|
|
#
|
818 |
|
|
# Target to create a proper Tk distribution from information in the
|
819 |
|
|
# master source directory. DISTDIR must be defined to indicate where
|
820 |
|
|
# to put the distribution. DISTDIR must be an absolute path name.
|
821 |
|
|
#
|
822 |
|
|
|
823 |
|
|
DISTROOT = /tmp/dist
|
824 |
|
|
DISTNAME = tk@TK_VERSION@@TK_PATCH_LEVEL@
|
825 |
|
|
ZIPNAME = tk@TK_MAJOR_VERSION@@TK_MINOR_VERSION@@TK_PATCH_LEVEL@.zip
|
826 |
|
|
DISTDIR = $(DISTROOT)/$(DISTNAME)
|
827 |
|
|
TCLDIR = @TCL_SRC_DIR@
|
828 |
|
|
$(UNIX_DIR)/configure:
|
829 |
|
|
autoconf $(UNIX_DIR)/configure.in > $(UNIX_DIR)/configure
|
830 |
|
|
|
831 |
|
|
dist: $(UNIX_DIR)/configure
|
832 |
|
|
rm -rf $(DISTDIR)
|
833 |
|
|
mkdir $(DISTDIR)
|
834 |
|
|
mkdir $(DISTDIR)/unix
|
835 |
|
|
cp -p $(UNIX_DIR)/*.c $(UNIX_DIR)/*.h $(DISTDIR)/unix
|
836 |
|
|
cp $(TOP_DIR)/license.terms $(UNIX_DIR)/Makefile.in $(DISTDIR)/unix
|
837 |
|
|
chmod 664 $(DISTDIR)/unix/Makefile.in
|
838 |
|
|
cp $(UNIX_DIR)/configure $(UNIX_DIR)/configure.in \
|
839 |
|
|
$(UNIX_DIR)/tkConfig.sh.in $(TCLDIR)/unix/install-sh \
|
840 |
|
|
$(UNIX_DIR)/porting.notes $(UNIX_DIR)/porting.old \
|
841 |
|
|
$(UNIX_DIR)/README $(DISTDIR)/unix
|
842 |
|
|
chmod 775 $(DISTDIR)/unix/configure $(DISTDIR)/unix/configure.in
|
843 |
|
|
chmod +x $(DISTDIR)/unix/install-sh
|
844 |
|
|
tclsh $(TCLDIR)/unix/mkLinks.tcl $(TOP_DIR)/doc/*.[13n] \
|
845 |
|
|
> $(DISTDIR)/unix/mkLinks
|
846 |
|
|
chmod +x $(DISTDIR)/unix/mkLinks
|
847 |
|
|
mkdir $(DISTDIR)/bitmaps
|
848 |
|
|
@(cd $(TOP_DIR); for i in bitmaps/* ; do \
|
849 |
|
|
if [ -f $$i ] ; then \
|
850 |
|
|
sed -e 's/static char/static unsigned char/' \
|
851 |
|
|
$$i > $(DISTDIR)/$$i; \
|
852 |
|
|
fi; \
|
853 |
|
|
done;)
|
854 |
|
|
mkdir $(DISTDIR)/generic
|
855 |
|
|
cp -p $(GENERIC_DIR)/*.c $(GENERIC_DIR)/*.h $(DISTDIR)/generic
|
856 |
|
|
cp -p $(GENERIC_DIR)/README $(DISTDIR)/generic
|
857 |
|
|
cp -p $(TOP_DIR)/changes $(TOP_DIR)/README $(TOP_DIR)/license.terms \
|
858 |
|
|
$(DISTDIR)
|
859 |
|
|
rm -f $(DISTDIR)/generic/blt*.[ch]
|
860 |
|
|
mkdir $(DISTDIR)/win
|
861 |
|
|
cp -p $(TOP_DIR)/win/*.c $(TOP_DIR)/win/*.h $(DISTDIR)/win
|
862 |
|
|
cp -p $(TOP_DIR)/win/*.bat $(DISTDIR)/win
|
863 |
|
|
cp -p $(TOP_DIR)/win/makefile.* $(DISTDIR)/win
|
864 |
|
|
cp -p $(TOP_DIR)/win/README $(DISTDIR)/win
|
865 |
|
|
cp -p $(TOP_DIR)/license.terms $(DISTDIR)/win
|
866 |
|
|
mkdir $(DISTDIR)/win/rc
|
867 |
|
|
cp -p $(TOP_DIR)/win/rc/*.rc $(TOP_DIR)/win/rc/*.cur \
|
868 |
|
|
$(TOP_DIR)/win/rc/*.ico $(TOP_DIR)/win/rc/*.bmp \
|
869 |
|
|
$(DISTDIR)/win/rc
|
870 |
|
|
mkdir $(DISTDIR)/mac
|
871 |
|
|
sccs edit -s $(TOP_DIR)/mac/tkMacProjects.sea.hqx
|
872 |
|
|
cp -p tkMacProjects.sea.hqx $(DISTDIR)/mac
|
873 |
|
|
sccs unedit $(TOP_DIR)/mac/tkMacProjects.sea.hqx
|
874 |
|
|
rm -f tkMacProjects.sea.hqx
|
875 |
|
|
cp -p $(TOP_DIR)/mac/*.c $(TOP_DIR)/mac/*.h $(TOP_DIR)/mac/*.r \
|
876 |
|
|
$(DISTDIR)/mac
|
877 |
|
|
cp -p $(TOP_DIR)/mac/README $(DISTDIR)/mac
|
878 |
|
|
cp -p $(TOP_DIR)/license.terms $(DISTDIR)/mac
|
879 |
|
|
cp -p $(TOP_DIR)/mac/*.pch $(DISTDIR)/mac
|
880 |
|
|
cp -p $(TOP_DIR)/mac/*.doc $(DISTDIR)/mac
|
881 |
|
|
cp -p $(TOP_DIR)/mac/*.exp $(DISTDIR)/mac
|
882 |
|
|
cp -p $(TOP_DIR)/mac/*.tcl $(DISTDIR)/mac
|
883 |
|
|
mkdir $(DISTDIR)/compat
|
884 |
|
|
cp -p $(TOP_DIR)/license.terms $(TCLDIR)/compat/unistd.h \
|
885 |
|
|
$(TCLDIR)/compat/stdlib.h $(TCLDIR)/compat/limits.h \
|
886 |
|
|
$(DISTDIR)/compat
|
887 |
|
|
mkdir $(DISTDIR)/xlib
|
888 |
|
|
cp -p $(TOP_DIR)/xlib/*.h $(TOP_DIR)/xlib/*.c $(DISTDIR)/xlib
|
889 |
|
|
cp -p $(TOP_DIR)/license.terms $(DISTDIR)/xlib
|
890 |
|
|
mkdir $(DISTDIR)/xlib/X11
|
891 |
|
|
cp -p $(TOP_DIR)/xlib/X11/*.h $(DISTDIR)/xlib/X11
|
892 |
|
|
cp -p $(TOP_DIR)/license.terms $(DISTDIR)/xlib/X11
|
893 |
|
|
mkdir $(DISTDIR)/library
|
894 |
|
|
cp -p $(TOP_DIR)/license.terms $(TOP_DIR)/library/*.tcl \
|
895 |
|
|
$(TOP_DIR)/library/tclIndex $(TOP_DIR)/library/prolog.ps \
|
896 |
|
|
$(DISTDIR)/library
|
897 |
|
|
mkdir $(DISTDIR)/library/images
|
898 |
|
|
@(cd $(TOP_DIR); for i in library/images/* ; do \
|
899 |
|
|
if [ -f $$i ] ; then \
|
900 |
|
|
cp $$i $(DISTDIR)/$$i; \
|
901 |
|
|
fi; \
|
902 |
|
|
done;)
|
903 |
|
|
mkdir $(DISTDIR)/library/demos
|
904 |
|
|
cp -pr $(TOP_DIR)/library/demos/*.tcl \
|
905 |
|
|
$(TOP_DIR)/library/demos/tclIndex \
|
906 |
|
|
$(TOP_DIR)/library/demos/browse \
|
907 |
|
|
$(TOP_DIR)/library/demos/hello $(TOP_DIR)/library/demos/ixset \
|
908 |
|
|
$(TOP_DIR)/library/demos/rmt $(TOP_DIR)/library/demos/rolodex \
|
909 |
|
|
$(TOP_DIR)/library/demos/square \
|
910 |
|
|
$(TOP_DIR)/library/demos/tcolor \
|
911 |
|
|
$(TOP_DIR)/library/demos/timer \
|
912 |
|
|
$(TOP_DIR)/library/demos/widget \
|
913 |
|
|
$(TOP_DIR)/library/demos/README \
|
914 |
|
|
$(TOP_DIR)/license.terms $(DISTDIR)/library/demos
|
915 |
|
|
mkdir $(DISTDIR)/library/demos/images
|
916 |
|
|
@(cd $(TOP_DIR); for i in library/demos/images/* ; do \
|
917 |
|
|
if [ -f $$i ] ; then \
|
918 |
|
|
cp $$i $(DISTDIR)/$$i; \
|
919 |
|
|
fi; \
|
920 |
|
|
done;)
|
921 |
|
|
mkdir $(DISTDIR)/doc
|
922 |
|
|
cp -p $(TOP_DIR)/license.terms $(TOP_DIR)/doc/*.[13n] \
|
923 |
|
|
$(TCLDIR)/doc/man.macros $(DISTDIR)/doc
|
924 |
|
|
mkdir $(DISTDIR)/tests
|
925 |
|
|
cp -p $(TOP_DIR)/license.terms $(TOP_DIR)/tests/*.test \
|
926 |
|
|
$(TOP_DIR)/tests/visual $(TOP_DIR)/tests/*.tcl \
|
927 |
|
|
$(TOP_DIR)/tests/README $(TOP_DIR)/tests/all \
|
928 |
|
|
$(TOP_DIR)/tests/defs $(TOP_DIR)/tests/option.file* \
|
929 |
|
|
$(DISTDIR)/tests
|
930 |
|
|
|
931 |
|
|
#
|
932 |
|
|
# The following target can only be used for non-patch releases. Use
|
933 |
|
|
# the "allpatch" target below for patch releases.
|
934 |
|
|
#
|
935 |
|
|
|
936 |
|
|
alldist: dist
|
937 |
|
|
rm -f $(DISTROOT)/$(DISTNAME).tar.Z \
|
938 |
|
|
$(DISTROOT)/$(DISTNAME).tar.gz \
|
939 |
|
|
$(DISTROOT)/$(ZIPNAME)
|
940 |
|
|
cd $(DISTROOT); tar cf $(DISTNAME).tar $(DISTNAME); \
|
941 |
|
|
gzip -9 -c $(DISTNAME).tar > $(DISTNAME).tar.gz; \
|
942 |
|
|
compress $(DISTNAME).tar; zip -r8 $(ZIPNAME) $(DISTNAME)
|
943 |
|
|
|
944 |
|
|
#
|
945 |
|
|
# The target below is similar to "alldist" except it works for patch
|
946 |
|
|
# releases. It is needed because patch releases are peculiar: the
|
947 |
|
|
# patch designation appears in the name of the compressed file
|
948 |
|
|
# (e.g. tcl8.0p1.tar.gz) but the extracted source directory doesn't
|
949 |
|
|
# include the patch designation (e.g. tcl8.0).
|
950 |
|
|
#
|
951 |
|
|
|
952 |
|
|
allpatch: dist
|
953 |
|
|
rm -f $(DISTROOT)/$(DISTNAME).tar.Z \
|
954 |
|
|
$(DISTROOT)/$(DISTNAME).tar.gz \
|
955 |
|
|
$(DISTROOT)/$(ZIPNAME)
|
956 |
|
|
mv $(DISTROOT)/tk${VERSION} $(DISTROOT)/old
|
957 |
|
|
mv $(DISTROOT)/$(DISTNAME) $(DISTROOT)/tk${VERSION}
|
958 |
|
|
cd $(DISTROOT); tar cf $(DISTNAME).tar tk${VERSION}; \
|
959 |
|
|
gzip -9 -c $(DISTNAME).tar > $(DISTNAME).tar.gz; \
|
960 |
|
|
compress $(DISTNAME).tar; zip -r8 $(ZIPNAME) tk${VERSION}
|
961 |
|
|
mv $(DISTROOT)/tk${VERSION} $(DISTROOT)/$(DISTNAME)
|
962 |
|
|
mv $(DISTROOT)/old $(DISTROOT)/tk${VERSION}
|
963 |
|
|
|
964 |
|
|
#
|
965 |
|
|
# Target to create a Macintosh version of the distribution. This will
|
966 |
|
|
# do a normal distribution and then massage the output to prepare it
|
967 |
|
|
# for moving to the Mac platform. This requires a few scripts and
|
968 |
|
|
# programs found only in the Tcl greoup's tool workspace.
|
969 |
|
|
#
|
970 |
|
|
|
971 |
|
|
macdist: dist
|
972 |
|
|
rm -f $(DISTDIR)/mac/tkMacProjects.sea.hqx
|
973 |
|
|
tclsh $(TOOL_DIR)/man2html.tcl $(DISTDIR)/tmp ../.. tk$(VERSION)
|
974 |
|
|
mv $(DISTDIR)/tmp/tk$(VERSION) $(DISTDIR)/html
|
975 |
|
|
rm -rf $(DISTDIR)/doc
|
976 |
|
|
rm -rf $(DISTDIR)/tmp
|
977 |
|
|
tclsh $(TOOL_DIR)/cvtEOL.tcl $(DISTDIR)
|
978 |
|
|
|
979 |
|
|
#
|
980 |
|
|
# Targets to build Solaris package of the distribution for the current
|
981 |
|
|
# architecture. To build stream packages for both sun4 and i86pc
|
982 |
|
|
# architectures:
|
983 |
|
|
#
|
984 |
|
|
# On the sun4 machine, execute the following:
|
985 |
|
|
# make distclean; ./configure
|
986 |
|
|
# make DISTDIR= package
|
987 |
|
|
#
|
988 |
|
|
# Once the build is complete, execute the following on the i86pc
|
989 |
|
|
# machine:
|
990 |
|
|
# make DISTDIR= package-quick
|
991 |
|
|
#
|
992 |
|
|
# is the absolute path to a directory where the build should
|
993 |
|
|
# take place. These steps will generate the $(PACKAGE).sun4 and
|
994 |
|
|
# $(PACKAGE).i86pc stream packages. It is important that the packages be
|
995 |
|
|
# built in this fashion in order to ensure that the architecture
|
996 |
|
|
# independent files are exactly the same, including timestamps, in
|
997 |
|
|
# both packages.
|
998 |
|
|
#
|
999 |
|
|
|
1000 |
|
|
PACKAGE=SCRPtk
|
1001 |
|
|
|
1002 |
|
|
package: dist package-config package-common package-binaries package-generate
|
1003 |
|
|
package-quick: package-config package-binaries package-generate
|
1004 |
|
|
|
1005 |
|
|
#
|
1006 |
|
|
# Configure for the current architecture in the dist directory.
|
1007 |
|
|
#
|
1008 |
|
|
package-config:
|
1009 |
|
|
mkdir -p $(DISTDIR)/unix/`arch`
|
1010 |
|
|
cd $(DISTDIR)/unix/`arch`; \
|
1011 |
|
|
../configure --prefix=/opt/SUNWtcl/$(TCLVERSION) \
|
1012 |
|
|
--exec_prefix=/opt/SUNWtcl/$(TCLVERSION)/`arch` \
|
1013 |
|
|
--with-tcl=$(DISTDIR)/../tcl$(TCLVERSION)/unix/`arch` \
|
1014 |
|
|
--enable-shared
|
1015 |
|
|
mkdir -p $(DISTDIR)/SUNWtcl/$(TCLVERSION)
|
1016 |
|
|
mkdir -p $(DISTDIR)/SUNWtcl/$(TCLVERSION)/`arch`
|
1017 |
|
|
|
1018 |
|
|
#
|
1019 |
|
|
# Build and install the architecture independent files in the dist directory.
|
1020 |
|
|
#
|
1021 |
|
|
|
1022 |
|
|
package-common:
|
1023 |
|
|
cd $(DISTDIR)/unix/`arch`;\
|
1024 |
|
|
$(MAKE); \
|
1025 |
|
|
$(MAKE) install-libraries install-man \
|
1026 |
|
|
prefix=$(DISTDIR)/SUNWtcl/$(TCLVERSION) \
|
1027 |
|
|
exec_prefix=$(DISTDIR)/SUNWtcl/$(TCLVERSION)/`arch`
|
1028 |
|
|
mkdir -p $(DISTDIR)/SUNWtcl/$(TCLVERSION)/bin
|
1029 |
|
|
sed -e "s/TCLVERSION/$(TCLVERSION)/g" \
|
1030 |
|
|
-e "s/TKVERSION/$(VERSION)/g" < $(UNIX_DIR)/wish.sh \
|
1031 |
|
|
> $(DISTDIR)/SUNWtcl/$(TCLVERSION)/bin/wish$(VERSION)
|
1032 |
|
|
chmod 755 $(DISTDIR)/SUNWtcl/$(TCLVERSION)/bin/wish$(VERSION)
|
1033 |
|
|
|
1034 |
|
|
#
|
1035 |
|
|
# Build and install the architecture specific files in the dist directory.
|
1036 |
|
|
#
|
1037 |
|
|
|
1038 |
|
|
package-binaries:
|
1039 |
|
|
cd $(DISTDIR)/unix/`arch`; \
|
1040 |
|
|
$(MAKE); \
|
1041 |
|
|
$(MAKE) install-binaries prefix=$(DISTDIR)/SUNWtcl/$(TCLVERSION) \
|
1042 |
|
|
exec_prefix=$(DISTDIR)/SUNWtcl/$(TCLVERSION)/`arch`
|
1043 |
|
|
|
1044 |
|
|
#
|
1045 |
|
|
# Generate a package from the installed files in the dist directory for the
|
1046 |
|
|
# current architecture.
|
1047 |
|
|
#
|
1048 |
|
|
|
1049 |
|
|
package-generate:
|
1050 |
|
|
pkgproto $(DISTDIR)/SUNWtcl/$(TCLVERSION)/bin=bin \
|
1051 |
|
|
$(DISTDIR)/SUNWtcl/$(TCLVERSION)/include=include \
|
1052 |
|
|
$(DISTDIR)/SUNWtcl/$(TCLVERSION)/lib=lib \
|
1053 |
|
|
$(DISTDIR)/SUNWtcl/$(TCLVERSION)/man=man \
|
1054 |
|
|
$(DISTDIR)/SUNWtcl/$(TCLVERSION)/`arch`=`arch` \
|
1055 |
|
|
| tclsh $(TCLDIR)/unix/mkProto.tcl $(TCLVERSION) \
|
1056 |
|
|
$(UNIX_DIR) > prototype
|
1057 |
|
|
pkgmk -o -d . -f prototype -a `arch`
|
1058 |
|
|
pkgtrans -s . $(PACKAGE).`arch` $(PACKAGE)
|
1059 |
|
|
rm -rf $(PACKAGE)
|
1060 |
|
|
|
1061 |
|
|
# DO NOT DELETE THIS LINE -- make depend depends on it.
|