| 1 |
# |
| 2 |
# This file is a Makefile for Tcl. 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 |
# RCS: @(#) $Id: Makefile.in,v 1.121.2.4 2003/07/23 15:40:39 das Exp $ |
| 9 |
|
| 10 |
VERSION = @TCL_VERSION@ |
| 11 |
MAJOR_VERSION = @TCL_MAJOR_VERSION@ |
| 12 |
MINOR_VERSION = @TCL_MINOR_VERSION@ |
| 13 |
PATCH_LEVEL = @TCL_PATCH_LEVEL@ |
| 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. The *dir vars are standard configure |
| 27 |
# substitutions that are based off prefix and exec_prefix. |
| 28 |
|
| 29 |
prefix = @prefix@ |
| 30 |
exec_prefix = @exec_prefix@ |
| 31 |
bindir = @bindir@ |
| 32 |
libdir = @libdir@ |
| 33 |
includedir = @includedir@ |
| 34 |
mandir = @mandir@ |
| 35 |
|
| 36 |
# The following definition can be set to non-null for special systems |
| 37 |
# like AFS with replication. It allows the pathnames used for installation |
| 38 |
# to be different than those used for actually reference files at |
| 39 |
# run-time. INSTALL_ROOT is prepended to $prefix and $exec_prefix |
| 40 |
# when installing files. |
| 41 |
INSTALL_ROOT = |
| 42 |
|
| 43 |
# Path for the platform independent Tcl scripting libraries: |
| 44 |
TCL_LIBRARY = $(prefix)/lib/tcl$(VERSION) |
| 45 |
|
| 46 |
# Path to use at runtime to refer to LIB_INSTALL_DIR: |
| 47 |
LIB_RUNTIME_DIR = $(libdir) |
| 48 |
|
| 49 |
# Directory in which to install the program tclsh: |
| 50 |
BIN_INSTALL_DIR = $(INSTALL_ROOT)$(bindir) |
| 51 |
|
| 52 |
# Directory in which to install libtcl.so or libtcl.a: |
| 53 |
LIB_INSTALL_DIR = $(INSTALL_ROOT)$(libdir) |
| 54 |
|
| 55 |
# Path name to use when installing library scripts. |
| 56 |
SCRIPT_INSTALL_DIR = $(INSTALL_ROOT)$(TCL_LIBRARY) |
| 57 |
|
| 58 |
# Directory in which to install the include file tcl.h: |
| 59 |
INCLUDE_INSTALL_DIR = $(INSTALL_ROOT)$(includedir) |
| 60 |
|
| 61 |
# Top-level directory in which to install manual entries: |
| 62 |
MAN_INSTALL_DIR = $(INSTALL_ROOT)$(mandir) |
| 63 |
|
| 64 |
# Directory in which to install manual entry for tclsh: |
| 65 |
MAN1_INSTALL_DIR = $(MAN_INSTALL_DIR)/man1 |
| 66 |
|
| 67 |
# Directory in which to install manual entries for Tcl's C library |
| 68 |
# procedures: |
| 69 |
MAN3_INSTALL_DIR = $(MAN_INSTALL_DIR)/man3 |
| 70 |
|
| 71 |
# Directory in which to install manual entries for the built-in |
| 72 |
# Tcl commands: |
| 73 |
MANN_INSTALL_DIR = $(MAN_INSTALL_DIR)/mann |
| 74 |
|
| 75 |
# Package search path. |
| 76 |
TCL_PACKAGE_PATH = @TCL_PACKAGE_PATH@ |
| 77 |
|
| 78 |
# Libraries built with optimization switches have this additional extension |
| 79 |
TCL_DBGX = @TCL_DBGX@ |
| 80 |
|
| 81 |
# warning flags |
| 82 |
CFLAGS_WARNING = @CFLAGS_WARNING@ |
| 83 |
|
| 84 |
# The default switches for optimization or debugging |
| 85 |
CFLAGS_DEBUG = @CFLAGS_DEBUG@ |
| 86 |
CFLAGS_OPTIMIZE = @CFLAGS_OPTIMIZE@ |
| 87 |
|
| 88 |
# To change the compiler switches, for example to change from optimization to |
| 89 |
# debugging symbols, change the following line: |
| 90 |
#CFLAGS = $(CFLAGS_DEBUG) |
| 91 |
#CFLAGS = $(CFLAGS_OPTIMIZE) |
| 92 |
#CFLAGS = $(CFLAGS_DEBUG) $(CFLAGS_OPTIMIZE) |
| 93 |
CFLAGS = @CFLAGS@ @CFLAGS_DEFAULT@ -DTCL_DBGX=$(TCL_DBGX) |
| 94 |
|
| 95 |
# Flags to pass to the linker |
| 96 |
LDFLAGS_DEBUG = @LDFLAGS_DEBUG@ |
| 97 |
LDFLAGS_OPTIMIZE = @LDFLAGS_OPTIMIZE@ |
| 98 |
LDFLAGS = @LDFLAGS@ @LDFLAGS_DEFAULT@ |
| 99 |
|
| 100 |
# To disable ANSI-C procedure prototypes reverse the comment characters |
| 101 |
# on the following lines: |
| 102 |
PROTO_FLAGS = |
| 103 |
#PROTO_FLAGS = -DNO_PROTOTYPE |
| 104 |
|
| 105 |
# Mathematical functions like sin and atan2 are enabled for expressions |
| 106 |
# by default. To disable them, reverse the comment characters on the |
| 107 |
# following pairs of lines: |
| 108 |
MATH_FLAGS = |
| 109 |
#MATH_FLAGS = -DTCL_NO_MATH |
| 110 |
MATH_LIBS = @MATH_LIBS@ |
| 111 |
#MATH_LIBS = |
| 112 |
|
| 113 |
# If you use the setenv, putenv, or unsetenv procedures to modify |
| 114 |
# environment variables in your application and you'd like those |
| 115 |
# modifications to appear in the "env" Tcl variable, switch the |
| 116 |
# comments on the two lines below so that Tcl provides these |
| 117 |
# procedures instead of your standard C library. |
| 118 |
|
| 119 |
ENV_FLAGS = |
| 120 |
#ENV_FLAGS = -DTclSetEnv=setenv -DTcl_PutEnv=putenv -DTclUnsetEnv=unsetenv |
| 121 |
|
| 122 |
# To compile for non-UNIX systems (so that only the non-UNIX-specific |
| 123 |
# commands are available), reverse the comment characters on the |
| 124 |
# following pairs of lines. In addition, you'll have to provide your |
| 125 |
# own replacement for the "panic" procedure (see panic.c for what |
| 126 |
# the current one does). |
| 127 |
GENERIC_FLAGS = |
| 128 |
#GENERIC_FLAGS = -DTCL_GENERIC_ONLY |
| 129 |
UNIX_OBJS = tclUnixChan.o tclUnixEvent.o tclUnixFCmd.o \ |
| 130 |
tclUnixFile.o tclUnixPipe.o tclUnixSock.o \ |
| 131 |
tclUnixTime.o tclUnixInit.o tclUnixThrd.o |
| 132 |
#UNIX_OBJS = |
| 133 |
NOTIFY_OBJS = tclUnixNotfy.o |
| 134 |
#NOTIFY_OBJS = |
| 135 |
|
| 136 |
# To enable memory debugging reverse the comment characters on the following |
| 137 |
# lines or call configure with --enable-symbols=mem |
| 138 |
# Warning: if you enable memory debugging, you must do it *everywhere*, |
| 139 |
# including all the code that calls Tcl, and you must use ckalloc and |
| 140 |
# ckfree everywhere instead of malloc and free. |
| 141 |
MEM_DEBUG_FLAGS = |
| 142 |
#MEM_DEBUG_FLAGS = -DTCL_MEM_DEBUG |
| 143 |
|
| 144 |
TCL_STUB_LIB_FILE = @TCL_STUB_LIB_FILE@ |
| 145 |
#TCL_STUB_LIB_FILE = libtclstub.a |
| 146 |
|
| 147 |
# Generic stub lib name used in rules that apply to tcl and tk |
| 148 |
STUB_LIB_FILE = ${TCL_STUB_LIB_FILE} |
| 149 |
|
| 150 |
TCL_STUB_LIB_FLAG = @TCL_STUB_LIB_FLAG@ |
| 151 |
#TCL_STUB_LIB_FLAG = -ltclstub |
| 152 |
|
| 153 |
# To enable compilation debugging reverse the comment characters on one |
| 154 |
# of the following lines or call configure with --enable-symbols=compile |
| 155 |
COMPILE_DEBUG_FLAGS = |
| 156 |
#COMPILE_DEBUG_FLAGS = -DTCL_COMPILE_DEBUG -DTCL_COMPILE_STATS |
| 157 |
|
| 158 |
# To compile without backward compatibility and deprecated code |
| 159 |
# uncomment the following |
| 160 |
NO_DEPRECATED_FLAGS = |
| 161 |
#NO_DEPRECATED_FLAGS = -DTCL_NO_DEPRECATED |
| 162 |
|
| 163 |
# Some versions of make, like SGI's, use the following variable to |
| 164 |
# determine which shell to use for executing commands: |
| 165 |
SHELL = /bin/sh |
| 166 |
|
| 167 |
# Tcl used to let the configure script choose which program to use |
| 168 |
# for installing, but there are just too many different versions of |
| 169 |
# "install" around; better to use the install-sh script that comes |
| 170 |
# with the distribution, which is slower but guaranteed to work. |
| 171 |
|
| 172 |
INSTALL_STRIP_PROGRAM = -s |
| 173 |
INSTALL_STRIP_LIBRARY = -S -S |
| 174 |
|
| 175 |
INSTALL = @srcdir@/install-sh -c |
| 176 |
INSTALL_PROGRAM = ${INSTALL} |
| 177 |
INSTALL_LIBRARY = ${INSTALL} |
| 178 |
INSTALL_DATA = ${INSTALL} -m 644 |
| 179 |
|
| 180 |
# TCL_EXE is the name of a tclsh executable that is available *BEFORE* |
| 181 |
# running make for the first time. Certain build targets (make genstubs) |
| 182 |
# need it to be available on the PATH. This executable should *NOT* be |
| 183 |
# required just to do a normal build although it can be required to run |
| 184 |
# make dist. |
| 185 |
TCL_EXE = tclsh |
| 186 |
|
| 187 |
# The symbols below provide support for dynamic loading and shared |
| 188 |
# libraries. See configure.in for a description of what the |
| 189 |
# symbols mean. The values of the symbols are normally set by the |
| 190 |
# configure script. You shouldn't normally need to modify any of |
| 191 |
# these definitions by hand. |
| 192 |
|
| 193 |
STLIB_LD = @STLIB_LD@ |
| 194 |
SHLIB_LD = @SHLIB_LD@ |
| 195 |
SHLIB_CFLAGS = @SHLIB_CFLAGS@ |
| 196 |
SHLIB_LD_FLAGS = @SHLIB_LD_FLAGS@ |
| 197 |
SHLIB_LD_LIBS = @SHLIB_LD_LIBS@ |
| 198 |
TCL_SHLIB_LD_EXTRAS = @TCL_SHLIB_LD_EXTRAS@ |
| 199 |
|
| 200 |
SHLIB_SUFFIX = @SHLIB_SUFFIX@ |
| 201 |
#SHLIB_SUFFIX = |
| 202 |
|
| 203 |
DLTEST_TARGETS = dltest.marker |
| 204 |
|
| 205 |
# Additional search flags needed to find the various shared libraries |
| 206 |
# at run-time. The first symbol is for use when creating a binary |
| 207 |
# with cc, and the second is for use when running ld directly. |
| 208 |
CC_SEARCH_FLAGS = @CC_SEARCH_FLAGS@ |
| 209 |
LD_SEARCH_FLAGS = @LD_SEARCH_FLAGS@ |
| 210 |
|
| 211 |
# The following symbol is defined to "$(DLTEST_TARGETS)" if dynamic |
| 212 |
# loading is available; this causes everything in the "dltest" |
| 213 |
# subdirectory to be built when making "tcltest. If dynamic loading |
| 214 |
# isn't available, configure defines this symbol to an empty string, |
| 215 |
# in which case the shared libraries aren't built. |
| 216 |
BUILD_DLTEST = @BUILD_DLTEST@ |
| 217 |
#BUILD_DLTEST = |
| 218 |
|
| 219 |
TCL_LIB_FILE = @TCL_LIB_FILE@ |
| 220 |
#TCL_LIB_FILE = libtcl.a |
| 221 |
|
| 222 |
# Generic lib name used in rules that apply to tcl and tk |
| 223 |
LIB_FILE = ${TCL_LIB_FILE} |
| 224 |
|
| 225 |
TCL_LIB_FLAG = @TCL_LIB_FLAG@ |
| 226 |
#TCL_LIB_FLAG = -ltcl |
| 227 |
|
| 228 |
TCL_EXP_FILE = @TCL_EXP_FILE@ |
| 229 |
TCL_BUILD_EXP_FILE = @TCL_BUILD_EXP_FILE@ |
| 230 |
|
| 231 |
# support for embedded libraries on Darwin / Mac OS X |
| 232 |
DYLIB_INSTALL_DIR = ${LIB_RUNTIME_DIR} |
| 233 |
|
| 234 |
#---------------------------------------------------------------- |
| 235 |
# The information below is modified by the configure script when |
| 236 |
# Makefile is generated from Makefile.in. You shouldn't normally |
| 237 |
# modify any of this stuff by hand. |
| 238 |
#---------------------------------------------------------------- |
| 239 |
|
| 240 |
COMPAT_OBJS = @LIBOBJS@ |
| 241 |
|
| 242 |
AC_FLAGS = @EXTRA_CFLAGS@ @DEFS@ |
| 243 |
AR = @AR@ |
| 244 |
RANLIB = @RANLIB@ |
| 245 |
SRC_DIR = @srcdir@ |
| 246 |
TOP_DIR = @srcdir@/.. |
| 247 |
GENERIC_DIR = $(TOP_DIR)/generic |
| 248 |
COMPAT_DIR = $(TOP_DIR)/compat |
| 249 |
TOOL_DIR = $(TOP_DIR)/tools |
| 250 |
UNIX_DIR = $(TOP_DIR)/unix |
| 251 |
MAC_OSX_DIR = $(TOP_DIR)/macosx |
| 252 |
# Must be absolute because of the cd dltest $(DLTEST_DIR)/configure below. |
| 253 |
DLTEST_DIR = @TCL_SRC_DIR@/unix/dltest |
| 254 |
# Must be absolute to so the corresponding tcltest's tcl_library is absolute. |
| 255 |
TCL_BUILDTIME_LIBRARY = @TCL_SRC_DIR@/library |
| 256 |
|
| 257 |
CC = @CC@ |
| 258 |
#CC = purify -best-effort @CC@ -DPURIFY |
| 259 |
|
| 260 |
# Flags to be passed to mkLinks to control whether the manpages |
| 261 |
# should be compressed and linked with softlinks |
| 262 |
MKLINKS_FLAGS = @MKLINKS_FLAGS@ |
| 263 |
|
| 264 |
#---------------------------------------------------------------- |
| 265 |
# The information below is usually usable as is. The configure |
| 266 |
# script won't modify it and it only exists to make working |
| 267 |
# around selected rare system configurations easier. |
| 268 |
#---------------------------------------------------------------- |
| 269 |
|
| 270 |
GDB = gdb |
| 271 |
DDD = ddd |
| 272 |
|
| 273 |
#---------------------------------------------------------------- |
| 274 |
# The information below should be usable as is. The configure |
| 275 |
# script won't modify it and you shouldn't need to modify it |
| 276 |
# either. |
| 277 |
#---------------------------------------------------------------- |
| 278 |
|
| 279 |
|
| 280 |
CC_SWITCHES = ${CFLAGS} ${CFLAGS_WARNING} ${SHLIB_CFLAGS} \ |
| 281 |
-I${GENERIC_DIR} -I${SRC_DIR} \ |
| 282 |
${AC_FLAGS} ${MATH_FLAGS} ${GENERIC_FLAGS} ${PROTO_FLAGS} ${MEM_DEBUG_FLAGS} \ |
| 283 |
${COMPILE_DEBUG_FLAGS} ${NO_DEPRECATED_FLAGS} ${ENV_FLAGS} \ |
| 284 |
-DTCL_SHLIB_EXT=\"${SHLIB_SUFFIX}\" |
| 285 |
|
| 286 |
STUB_CC_SWITCHES = ${CFLAGS} ${CFLAGS_WARNING} ${SHLIB_CFLAGS} \ |
| 287 |
-I${GENERIC_DIR} -I${SRC_DIR} \ |
| 288 |
${AC_FLAGS} ${MATH_FLAGS} ${GENERIC_FLAGS} ${PROTO_FLAGS} ${MEM_DEBUG_FLAGS} \ |
| 289 |
${COMPILE_DEBUG_FLAGS} ${ENV_FLAGS} -DTCL_SHLIB_EXT=\"${SHLIB_SUFFIX}\" |
| 290 |
|
| 291 |
LIBS = @DL_LIBS@ @LIBS@ $(MATH_LIBS) |
| 292 |
|
| 293 |
DEPEND_SWITCHES = ${CFLAGS} -I${GENERIC_DIR} -I${SRC_DIR} \ |
| 294 |
${AC_FLAGS} ${MATH_FLAGS} \ |
| 295 |
${GENERIC_FLAGS} ${PROTO_FLAGS} ${MEM_DEBUG_FLAGS} \ |
| 296 |
-DTCL_SHLIB_EXT=\"${SHLIB_SUFFIX}\" |
| 297 |
|
| 298 |
TCLSH_OBJS = tclAppInit.o |
| 299 |
|
| 300 |
TCLTEST_OBJS = tclTestInit.o tclTest.o tclTestObj.o tclTestProcBodyObj.o \ |
| 301 |
tclThreadTest.o tclUnixTest.o |
| 302 |
|
| 303 |
XTTEST_OBJS = xtTestInit.o tclTest.o tclTestObj.o tclTestProcBodyObj.o \ |
| 304 |
tclThreadTest.o tclUnixTest.o tclXtNotify.o tclXtTest.o |
| 305 |
|
| 306 |
GENERIC_OBJS = regcomp.o regexec.o regfree.o regerror.o tclAlloc.o \ |
| 307 |
tclAsync.o tclBasic.o tclBinary.o \ |
| 308 |
tclCkalloc.o tclClock.o tclCmdAH.o tclCmdIL.o tclCmdMZ.o \ |
| 309 |
tclCompCmds.o tclCompExpr.o tclCompile.o tclDate.o tclEncoding.o \ |
| 310 |
tclEnv.o tclEvent.o tclExecute.o tclFCmd.o tclFileName.o tclGet.o \ |
| 311 |
tclHash.o tclHistory.o tclIndexObj.o tclInterp.o tclIO.o tclIOCmd.o \ |
| 312 |
tclIOGT.o tclIOSock.o tclIOUtil.o tclLink.o tclListObj.o \ |
| 313 |
tclLiteral.o tclLoad.o tclMain.o tclNamesp.o tclNotify.o \ |
| 314 |
tclObj.o tclPanic.o tclParse.o tclParseExpr.o tclPipe.o \ |
| 315 |
tclPkg.o tclPosixStr.o tclPreserve.o tclProc.o tclRegexp.o \ |
| 316 |
tclResolve.o tclResult.o tclScan.o tclStringObj.o tclThread.o \ |
| 317 |
tclThreadAlloc.o tclThreadJoin.o tclStubInit.o tclStubLib.o \ |
| 318 |
tclTimer.o tclUtf.o tclUtil.o tclVar.o |
| 319 |
|
| 320 |
STUB_LIB_OBJS = tclStubLib.o ${COMPAT_OBJS} |
| 321 |
|
| 322 |
OBJS = ${GENERIC_OBJS} ${UNIX_OBJS} ${NOTIFY_OBJS} ${COMPAT_OBJS} \ |
| 323 |
@DL_OBJS@ @PLAT_OBJS@ |
| 324 |
|
| 325 |
TCL_DECLS = \ |
| 326 |
$(GENERIC_DIR)/tcl.decls \ |
| 327 |
$(GENERIC_DIR)/tclInt.decls |
| 328 |
|
| 329 |
GENERIC_HDRS = \ |
| 330 |
$(GENERIC_DIR)/tcl.h \ |
| 331 |
$(GENERIC_DIR)/tclDecls.h \ |
| 332 |
$(GENERIC_DIR)/tclInt.h \ |
| 333 |
$(GENERIC_DIR)/tclIntDecls.h \ |
| 334 |
$(GENERIC_DIR)/tclIntPlatDecls.h \ |
| 335 |
$(GENERIC_DIR)/tclPatch.h \ |
| 336 |
$(GENERIC_DIR)/tclPlatDecls.h \ |
| 337 |
$(GENERIC_DIR)/tclPort.h \ |
| 338 |
$(GENERIC_DIR)/tclRegexp.h |
| 339 |
|
| 340 |
GENERIC_SRCS = \ |
| 341 |
$(GENERIC_DIR)/regcomp.c \ |
| 342 |
$(GENERIC_DIR)/regexec.c \ |
| 343 |
$(GENERIC_DIR)/regfree.c \ |
| 344 |
$(GENERIC_DIR)/regerror.c \ |
| 345 |
$(GENERIC_DIR)/tclAlloc.c \ |
| 346 |
$(GENERIC_DIR)/tclAsync.c \ |
| 347 |
$(GENERIC_DIR)/tclBasic.c \ |
| 348 |
$(GENERIC_DIR)/tclBinary.c \ |
| 349 |
$(GENERIC_DIR)/tclCkalloc.c \ |
| 350 |
$(GENERIC_DIR)/tclClock.c \ |
| 351 |
$(GENERIC_DIR)/tclCmdAH.c \ |
| 352 |
$(GENERIC_DIR)/tclCmdIL.c \ |
| 353 |
$(GENERIC_DIR)/tclCmdMZ.c \ |
| 354 |
$(GENERIC_DIR)/tclCompCmds.c \ |
| 355 |
$(GENERIC_DIR)/tclCompExpr.c \ |
| 356 |
$(GENERIC_DIR)/tclCompile.c \ |
| 357 |
$(GENERIC_DIR)/tclDate.c \ |
| 358 |
$(GENERIC_DIR)/tclEncoding.c \ |
| 359 |
$(GENERIC_DIR)/tclEnv.c \ |
| 360 |
$(GENERIC_DIR)/tclEvent.c \ |
| 361 |
$(GENERIC_DIR)/tclExecute.c \ |
| 362 |
$(GENERIC_DIR)/tclFCmd.c \ |
| 363 |
$(GENERIC_DIR)/tclFileName.c \ |
| 364 |
$(GENERIC_DIR)/tclGet.c \ |
| 365 |
$(GENERIC_DIR)/tclHash.c \ |
| 366 |
$(GENERIC_DIR)/tclHistory.c \ |
| 367 |
$(GENERIC_DIR)/tclIndexObj.c \ |
| 368 |
$(GENERIC_DIR)/tclInterp.c \ |
| 369 |
$(GENERIC_DIR)/tclIO.c \ |
| 370 |
$(GENERIC_DIR)/tclIOCmd.c \ |
| 371 |
$(GENERIC_DIR)/tclIOGT.c \ |
| 372 |
$(GENERIC_DIR)/tclIOSock.c \ |
| 373 |
$(GENERIC_DIR)/tclIOUtil.c \ |
| 374 |
$(GENERIC_DIR)/tclLink.c \ |
| 375 |
$(GENERIC_DIR)/tclListObj.c \ |
| 376 |
$(GENERIC_DIR)/tclLiteral.c \ |
| 377 |
$(GENERIC_DIR)/tclLoad.c \ |
| 378 |
$(GENERIC_DIR)/tclMain.c \ |
| 379 |
$(GENERIC_DIR)/tclNamesp.c \ |
| 380 |
$(GENERIC_DIR)/tclNotify.c \ |
| 381 |
$(GENERIC_DIR)/tclObj.c \ |
| 382 |
$(GENERIC_DIR)/tclParse.c \ |
| 383 |
$(GENERIC_DIR)/tclParseExpr.c \ |
| 384 |
$(GENERIC_DIR)/tclPipe.c \ |
| 385 |
$(GENERIC_DIR)/tclPkg.c \ |
| 386 |
$(GENERIC_DIR)/tclPosixStr.c \ |
| 387 |
$(GENERIC_DIR)/tclPreserve.c \ |
| 388 |
$(GENERIC_DIR)/tclProc.c \ |
| 389 |
$(GENERIC_DIR)/tclRegexp.c \ |
| 390 |
$(GENERIC_DIR)/tclResolve.c \ |
| 391 |
$(GENERIC_DIR)/tclResult.c \ |
| 392 |
$(GENERIC_DIR)/tclScan.c \ |
| 393 |
$(GENERIC_DIR)/tclStubInit.c \ |
| 394 |
$(GENERIC_DIR)/tclStubLib.c \ |
| 395 |
$(GENERIC_DIR)/tclStringObj.c \ |
| 396 |
$(GENERIC_DIR)/tclTest.c \ |
| 397 |
$(GENERIC_DIR)/tclTestObj.c \ |
| 398 |
$(GENERIC_DIR)/tclTestProcBodyObj.c \ |
| 399 |
$(GENERIC_DIR)/tclThread.c \ |
| 400 |
$(GENERIC_DIR)/tclThreadAlloc.c \ |
| 401 |
$(GENERIC_DIR)/tclThreadJoin.c \ |
| 402 |
$(GENERIC_DIR)/tclTimer.c \ |
| 403 |
$(GENERIC_DIR)/tclUtil.c \ |
| 404 |
$(GENERIC_DIR)/tclVar.c |
| 405 |
|
| 406 |
STUB_SRCS = \ |
| 407 |
$(GENERIC_DIR)/tclStubLib.c |
| 408 |
|
| 409 |
UNIX_HDRS = \ |
| 410 |
$(UNIX_DIR)/tclUnixPort.h |
| 411 |
|
| 412 |
UNIX_SRCS = \ |
| 413 |
$(UNIX_DIR)/tclAppInit.c \ |
| 414 |
$(UNIX_DIR)/tclUnixChan.c \ |
| 415 |
$(UNIX_DIR)/tclUnixEvent.c \ |
| 416 |
$(UNIX_DIR)/tclUnixFCmd.c \ |
| 417 |
$(UNIX_DIR)/tclUnixFile.c \ |
| 418 |
$(UNIX_DIR)/tclUnixNotfy.c \ |
| 419 |
$(UNIX_DIR)/tclUnixPipe.c \ |
| 420 |
$(UNIX_DIR)/tclUnixSock.c \ |
| 421 |
$(UNIX_DIR)/tclUnixTest.c \ |
| 422 |
$(UNIX_DIR)/tclUnixThrd.c \ |
| 423 |
$(UNIX_DIR)/tclUnixTime.c \ |
| 424 |
$(UNIX_DIR)/tclUnixInit.c |
| 425 |
|
| 426 |
DL_SRCS = \ |
| 427 |
$(UNIX_DIR)/tclLoadAix.c \ |
| 428 |
$(UNIX_DIR)/tclLoadAout.c \ |
| 429 |
$(UNIX_DIR)/tclLoadDl.c \ |
| 430 |
$(UNIX_DIR)/tclLoadDl2.c \ |
| 431 |
$(UNIX_DIR)/tclLoadDld.c \ |
| 432 |
$(UNIX_DIR)/tclLoadDyld.c \ |
| 433 |
$(GENERIC_DIR)/tclLoadNone.c \ |
| 434 |
$(UNIX_DIR)/tclLoadOSF.c \ |
| 435 |
$(UNIX_DIR)/tclLoadShl.c |
| 436 |
|
| 437 |
MAC_OSX_SRCS = \ |
| 438 |
$(MAC_OSX_DIR)/tclMacOSXBundle.c |
| 439 |
|
| 440 |
# Note: don't include DL_SRCS or MAC_OSX_SRCS in SRCS: most of those |
| 441 |
# files won't compile on the current machine, and they will cause |
| 442 |
# problems for things like "make depend". |
| 443 |
|
| 444 |
SRCS = $(GENERIC_SRCS) $(UNIX_SRCS) $(STUB_SRCS) |
| 445 |
|
| 446 |
all: binaries libraries doc |
| 447 |
|
| 448 |
binaries: ${LIB_FILE} $(STUB_LIB_FILE) $(TCL_BUILD_EXP_FILE) tclsh |
| 449 |
|
| 450 |
libraries: |
| 451 |
|
| 452 |
doc: |
| 453 |
|
| 454 |
# The following target is configured by autoconf to generate either |
| 455 |
# a shared library or non-shared library for Tcl. |
| 456 |
${LIB_FILE}: ${OBJS} ${STUB_LIB_FILE} |
| 457 |
rm -f $@ |
| 458 |
@MAKE_LIB@ |
| 459 |
|
| 460 |
${STUB_LIB_FILE}: ${STUB_LIB_OBJS} |
| 461 |
rm -f $@ |
| 462 |
@MAKE_STUB_LIB@ |
| 463 |
|
| 464 |
# Make target which outputs the list of the .o contained in the Tcl lib |
| 465 |
# usefull to build a single big shared library containing Tcl and other |
| 466 |
# extensions. used for the Tcl Plugin. -- dl |
| 467 |
# The dependency on OBJS is not there because we just want the list |
| 468 |
# of objects here, not actually building them |
| 469 |
tclLibObjs: |
| 470 |
@echo ${OBJS} |
| 471 |
# This targets actually build the objects needed for the lib in the above |
| 472 |
# case |
| 473 |
objs: ${OBJS} |
| 474 |
|
| 475 |
|
| 476 |
tclsh: ${TCLSH_OBJS} ${TCL_LIB_FILE} |
| 477 |
${CC} ${LDFLAGS} ${TCLSH_OBJS} @TCL_BUILD_LIB_SPEC@ ${LIBS} \ |
| 478 |
${CC_SEARCH_FLAGS} -o tclsh |
| 479 |
|
| 480 |
# Resetting the LIB_RUNTIME_DIR below is required so that |
| 481 |
# the generated tcltest executable gets the build directory |
| 482 |
# burned into its ld search path. This keeps tcltest from |
| 483 |
# picking up an already installed version of the Tcl library. |
| 484 |
|
| 485 |
tcltest: ${TCLTEST_OBJS} ${TCL_LIB_FILE} ${BUILD_DLTEST} |
| 486 |
$(MAKE) tcltest-real LIB_RUNTIME_DIR=`pwd` |
| 487 |
|
| 488 |
tcltest-real: |
| 489 |
${CC} ${LDFLAGS} ${TCLTEST_OBJS} @TCL_BUILD_LIB_SPEC@ ${LIBS} \ |
| 490 |
${CC_SEARCH_FLAGS} -o tcltest |
| 491 |
|
| 492 |
# Note, in the target below TCL_LIBRARY needs to be set or else |
| 493 |
# "make test" won't work in the case where the compilation directory |
| 494 |
# isn't the same as the source directory. |
| 495 |
# Specifying TESTFLAGS on the command line is the standard way to pass |
| 496 |
# args to tcltest, ie: |
| 497 |
# % make test TESTFLAGS="-verbose bps -file fileName.test" |
| 498 |
|
| 499 |
test: tcltest |
| 500 |
@LD_LIBRARY_PATH_VAR@=`pwd`:${@LD_LIBRARY_PATH_VAR@}; export @LD_LIBRARY_PATH_VAR@; \ |
| 501 |
TCL_LIBRARY="${TCL_BUILDTIME_LIBRARY}"; export TCL_LIBRARY; \ |
| 502 |
./tcltest $(TOP_DIR)/tests/all.tcl $(TESTFLAGS) $(TCLTESTARGS) |
| 503 |
|
| 504 |
# Useful target to launch a built tcltest with the proper path,... |
| 505 |
runtest: tcltest |
| 506 |
@LD_LIBRARY_PATH_VAR@=`pwd`:${@LD_LIBRARY_PATH_VAR@}; export @LD_LIBRARY_PATH_VAR@; \ |
| 507 |
TCL_LIBRARY="${TCL_BUILDTIME_LIBRARY}"; export TCL_LIBRARY; \ |
| 508 |
./tcltest |
| 509 |
|
| 510 |
# Useful target for running the test suite with an unwritable current |
| 511 |
# directory... |
| 512 |
ro-test: tcltest |
| 513 |
@LD_LIBRARY_PATH_VAR@=`pwd`:${@LD_LIBRARY_PATH_VAR@}; export @LD_LIBRARY_PATH_VAR@; \ |
| 514 |
TCL_LIBRARY="${TCL_BUILDTIME_LIBRARY}"; export TCL_LIBRARY; \ |
| 515 |
echo 'exec chmod -w .;package require tcltest;tcltest::temporaryDirectory /tmp;source ../tests/all.tcl;exec chmod +w .' | ./tcltest |
| 516 |
|
| 517 |
# This target can be used to run tclsh from the build directory |
| 518 |
# via `make shell SCRIPT=/tmp/foo.tcl` |
| 519 |
shell: tclsh |
| 520 |
@@LD_LIBRARY_PATH_VAR@=`pwd`:${@LD_LIBRARY_PATH_VAR@}; export @LD_LIBRARY_PATH_VAR@; \ |
| 521 |
TCL_LIBRARY="${TCL_BUILDTIME_LIBRARY}"; export TCL_LIBRARY; \ |
| 522 |
./tclsh $(SCRIPT) |
| 523 |
|
| 524 |
# This target can be used to run tclsh inside either gdb or insight |
| 525 |
gdb: tclsh |
| 526 |
@echo "set env @LD_LIBRARY_PATH_VAR@=`pwd`:${@LD_LIBRARY_PATH_VAR@}" > gdb.run |
| 527 |
@echo "set env TCL_LIBRARY=${TCL_BUILDTIME_LIBRARY}" >> gdb.run |
| 528 |
$(GDB) ./tclsh --command=gdb.run |
| 529 |
rm gdb.run |
| 530 |
|
| 531 |
# This target can be used to run tclsh inside ddd |
| 532 |
ddd: tclsh |
| 533 |
@echo "set env @LD_LIBRARY_PATH_VAR@=`pwd`:${@LD_LIBRARY_PATH_VAR@}" > gdb.run |
| 534 |
@echo "set env TCL_LIBRARY=${TCL_BUILDTIME_LIBRARY}" >> gdb.run |
| 535 |
$(DDD) -command=gdb.run ./tclsh |
| 536 |
rm gdb.run |
| 537 |
|
| 538 |
valgrind: tclsh tcltest |
| 539 |
@LD_LIBRARY_PATH_VAR@=`pwd`:${@LD_LIBRARY_PATH_VAR@}; export @LD_LIBRARY_PATH_VAR@; \ |
| 540 |
TCL_LIBRARY="${TCL_BUILDTIME_LIBRARY}"; export TCL_LIBRARY; \ |
| 541 |
valgrind --num-callers=8 --leak-resolution=high -v --leak-check=yes --show-reachable=yes $(VALGRINDARGS) ./tcltest $(TOP_DIR)/tests/all.tcl -singleproc 1 $(TESTFLAGS) $(TCLTESTARGS) |
| 542 |
|
| 543 |
# The following target outputs the name of the top-level source directory |
| 544 |
# for Tcl (it is used by Tk's configure script, for example). The |
| 545 |
# .NO_PARALLEL line is needed to avoid problems under Sun's "pmake". |
| 546 |
# Note: this target is now obsolete (use the autoconf variable |
| 547 |
# TCL_SRC_DIR from tclConfig.sh instead). |
| 548 |
|
| 549 |
.NO_PARALLEL: topDirName |
| 550 |
topDirName: |
| 551 |
@cd $(TOP_DIR); pwd |
| 552 |
|
| 553 |
# The following target generates the file generic/tclDate.c |
| 554 |
# from the yacc grammar found in generic/tclGetDate.y. This is |
| 555 |
# only run by hand as yacc is not available in all environments. |
| 556 |
# The name of the .c file is different than the name of the .y file |
| 557 |
# so that make doesn't try to automatically regenerate the .c file. |
| 558 |
|
| 559 |
gendate: |
| 560 |
yacc -l $(GENERIC_DIR)/tclGetDate.y |
| 561 |
sed -e 's/yy/TclDate/g' -e '/^#include <values.h>/d' \ |
| 562 |
-e 's?SCCSID?RCS: @(#) ?' \ |
| 563 |
-e '/#ifdef __STDC__/,/#endif/d' -e '/TclDateerrlab:/d' \ |
| 564 |
-e '/TclDatenewstate:/d' -e '/#pragma/d' \ |
| 565 |
-e '/#include <inttypes.h>/d' -e 's/const /CONST /g' \ |
| 566 |
<y.tab.c >$(GENERIC_DIR)/tclDate.c |
| 567 |
rm y.tab.c |
| 568 |
|
| 569 |
# The following target generates the shared libraries in dltest/ that |
| 570 |
# are used for testing; they are included as part of the "tcltest" |
| 571 |
# target (via the BUILD_DLTEST variable) if dynamic loading is supported |
| 572 |
# on this platform. The Makefile in the dltest subdirectory creates |
| 573 |
# the dltest.marker file in this directory after a successful build. |
| 574 |
|
| 575 |
dltest.marker: |
| 576 |
cd dltest ; $(MAKE) |
| 577 |
|
| 578 |
install: install-binaries install-libraries install-doc |
| 579 |
|
| 580 |
install-strip: |
| 581 |
$(MAKE) install \ |
| 582 |
INSTALL_PROGRAM="$(INSTALL_PROGRAM) ${INSTALL_STRIP_PROGRAM}" \ |
| 583 |
INSTALL_LIBRARY="$(INSTALL_LIBRARY) ${INSTALL_STRIP_LIBRARY}" |
| 584 |
|
| 585 |
# Note: before running ranlib below, must cd to target directory because |
| 586 |
# some ranlibs write to current directory, and this might not always be |
| 587 |
# possible (e.g. if installing as root). |
| 588 |
|
| 589 |
install-binaries: binaries |
| 590 |
@for i in $(LIB_INSTALL_DIR) $(BIN_INSTALL_DIR) ; \ |
| 591 |
do \ |
| 592 |
if [ ! -d $$i ] ; then \ |
| 593 |
echo "Making directory $$i"; \ |
| 594 |
mkdir -p $$i; \ |
| 595 |
chmod 755 $$i; \ |
| 596 |
else true; \ |
| 597 |
fi; \ |
| 598 |
done; |
| 599 |
@if test ! -x $(SRC_DIR)/install-sh; then \ |
| 600 |
chmod +x $(SRC_DIR)/install-sh; \ |
| 601 |
fi |
| 602 |
@echo "Installing $(LIB_FILE) to $(LIB_INSTALL_DIR)/" |
| 603 |
@@INSTALL_LIB@ |
| 604 |
@chmod 555 $(LIB_INSTALL_DIR)/$(LIB_FILE) |
| 605 |
@if test "$(TCL_BUILD_EXP_FILE)" != ""; then \ |
| 606 |
echo "Installing $(TCL_EXP_FILE) to $(LIB_INSTALL_DIR)/"; \ |
| 607 |
$(INSTALL_DATA) $(TCL_BUILD_EXP_FILE) \ |
| 608 |
$(LIB_INSTALL_DIR)/$(TCL_EXP_FILE); \ |
| 609 |
fi |
| 610 |
@echo "Installing tclsh as $(BIN_INSTALL_DIR)/tclsh$(VERSION)" |
| 611 |
@$(INSTALL_PROGRAM) tclsh $(BIN_INSTALL_DIR)/tclsh$(VERSION) |
| 612 |
@echo "Installing tclConfig.sh to $(LIB_INSTALL_DIR)/" |
| 613 |
@$(INSTALL_DATA) tclConfig.sh $(LIB_INSTALL_DIR)/tclConfig.sh |
| 614 |
@if test "$(STUB_LIB_FILE)" != "" ; then \ |
| 615 |
echo "Installing $(STUB_LIB_FILE) to $(LIB_INSTALL_DIR)/"; \ |
| 616 |
@INSTALL_STUB_LIB@ ; \ |
| 617 |
fi |
| 618 |
|
| 619 |
install-libraries: libraries |
| 620 |
@for i in $(INCLUDE_INSTALL_DIR) $(SCRIPT_INSTALL_DIR); \ |
| 621 |
do \ |
| 622 |
if [ ! -d $$i ] ; then \ |
| 623 |
echo "Making directory $$i"; \ |
| 624 |
mkdir -p $$i; \ |
| 625 |
chmod 755 $$i; \ |
| 626 |
else true; \ |
| 627 |
fi; \ |
| 628 |
done; |
| 629 |
@for i in http2.4 http1.0 opt0.4 encoding msgcat1.3 tcltest2.2; \ |
| 630 |
do \ |
| 631 |
if [ ! -d $(SCRIPT_INSTALL_DIR)/$$i ] ; then \ |
| 632 |
echo "Making directory $(SCRIPT_INSTALL_DIR)/$$i"; \ |
| 633 |
mkdir -p $(SCRIPT_INSTALL_DIR)/$$i; \ |
| 634 |
chmod 755 $(SCRIPT_INSTALL_DIR)/$$i; \ |
| 635 |
else true; \ |
| 636 |
fi; \ |
| 637 |
done; |
| 638 |
@if test ! -x $(SRC_DIR)/install-sh; then \ |
| 639 |
chmod +x $(SRC_DIR)/install-sh; \ |
| 640 |
fi |
| 641 |
@echo "Installing header files"; |
| 642 |
@for i in $(GENERIC_DIR)/tcl.h $(GENERIC_DIR)/tclDecls.h \ |
| 643 |
$(GENERIC_DIR)/tclPlatDecls.h ; \ |
| 644 |
do \ |
| 645 |
$(INSTALL_DATA) $$i $(INCLUDE_INSTALL_DIR); \ |
| 646 |
done; |
| 647 |
@echo "Installing library files to $(SCRIPT_INSTALL_DIR)"; |
| 648 |
@for i in $(TOP_DIR)/library/*.tcl $(TOP_DIR)/library/tclIndex $(UNIX_DIR)/tclAppInit.c $(UNIX_DIR)/ldAix; \ |
| 649 |
do \ |
| 650 |
$(INSTALL_DATA) $$i $(SCRIPT_INSTALL_DIR); \ |
| 651 |
done; |
| 652 |
@echo "Installing library http1.0 directory"; |
| 653 |
@for j in $(TOP_DIR)/library/http1.0/*.tcl ; \ |
| 654 |
do \ |
| 655 |
$(INSTALL_DATA) $$j $(SCRIPT_INSTALL_DIR)/http1.0; \ |
| 656 |
done; |
| 657 |
@echo "Installing library http2.4 directory"; |
| 658 |
@for j in $(TOP_DIR)/library/http/*.tcl ; \ |
| 659 |
do \ |
| 660 |
$(INSTALL_DATA) $$j $(SCRIPT_INSTALL_DIR)/http2.4; \ |
| 661 |
done; |
| 662 |
@echo "Installing library opt0.4 directory"; |
| 663 |
@for j in $(TOP_DIR)/library/opt/*.tcl ; \ |
| 664 |
do \ |
| 665 |
$(INSTALL_DATA) $$j $(SCRIPT_INSTALL_DIR)/opt0.4; \ |
| 666 |
done; |
| 667 |
@echo "Installing library msgcat1.3 directory"; |
| 668 |
@for j in $(TOP_DIR)/library/msgcat/*.tcl ; \ |
| 669 |
do \ |
| 670 |
$(INSTALL_DATA) $$j $(SCRIPT_INSTALL_DIR)/msgcat1.3; \ |
| 671 |
done; |
| 672 |
@echo "Installing library tcltest2.2 directory"; |
| 673 |
@for j in $(TOP_DIR)/library/tcltest/*.tcl ; \ |
| 674 |
do \ |
| 675 |
$(INSTALL_DATA) $$j $(SCRIPT_INSTALL_DIR)/tcltest2.2; \ |
| 676 |
done; |
| 677 |
@echo "Installing library encoding directory"; |
| 678 |
@for i in $(TOP_DIR)/library/encoding/*.enc ; do \ |
| 679 |
$(INSTALL_DATA) $$i $(SCRIPT_INSTALL_DIR)/encoding; \ |
| 680 |
done; |
| 681 |
|
| 682 |
install-doc: doc |
| 683 |
@if test ! -x $(UNIX_DIR)/mkLinks; then \ |
| 684 |
chmod +x $(UNIX_DIR)/mkLinks; \ |
| 685 |
fi |
| 686 |
@for i in $(MAN_INSTALL_DIR) $(MAN1_INSTALL_DIR) $(MAN3_INSTALL_DIR) $(MANN_INSTALL_DIR) ; \ |
| 687 |
do \ |
| 688 |
if [ ! -d $$i ] ; then \ |
| 689 |
echo "Making directory $$i"; \ |
| 690 |
mkdir -p $$i; \ |
| 691 |
chmod 755 $$i; \ |
| 692 |
else true; \ |
| 693 |
fi; \ |
| 694 |
done; |
| 695 |
@echo "Installing top-level (.1) docs"; |
| 696 |
@cd $(TOP_DIR)/doc; for i in *.1; \ |
| 697 |
do \ |
| 698 |
rm -f $(MAN1_INSTALL_DIR)/$$i; \ |
| 699 |
sed -e '/man\.macros/r man.macros' -e '/man\.macros/d' \ |
| 700 |
$$i > $(MAN1_INSTALL_DIR)/$$i; \ |
| 701 |
chmod 444 $(MAN1_INSTALL_DIR)/$$i; \ |
| 702 |
done; |
| 703 |
@echo "Cross-linking top-level (.1) docs"; |
| 704 |
@$(UNIX_DIR)/mkLinks $(MKLINKS_FLAGS) $(MAN1_INSTALL_DIR) |
| 705 |
@echo "Installing C API (.3) docs"; |
| 706 |
@cd $(TOP_DIR)/doc; for i in *.3; \ |
| 707 |
do \ |
| 708 |
rm -f $(MAN3_INSTALL_DIR)/$$i; \ |
| 709 |
sed -e '/man\.macros/r man.macros' -e '/man\.macros/d' \ |
| 710 |
$$i > $(MAN3_INSTALL_DIR)/$$i; \ |
| 711 |
chmod 444 $(MAN3_INSTALL_DIR)/$$i; \ |
| 712 |
done; |
| 713 |
@echo "Cross-linking C API (.3) docs"; |
| 714 |
@$(UNIX_DIR)/mkLinks $(MKLINKS_FLAGS) $(MAN3_INSTALL_DIR) |
| 715 |
@echo "Installing command (.n) docs"; |
| 716 |
@cd $(TOP_DIR)/doc; for i in *.n; \ |
| 717 |
do \ |
| 718 |
rm -f $(MANN_INSTALL_DIR)/$$i; \ |
| 719 |
sed -e '/man\.macros/r man.macros' -e '/man\.macros/d' \ |
| 720 |
$$i > $(MANN_INSTALL_DIR)/$$i; \ |
| 721 |
chmod 444 $(MANN_INSTALL_DIR)/$$i; \ |
| 722 |
done; |
| 723 |
@echo "Cross-linking command (.n) docs"; |
| 724 |
@$(UNIX_DIR)/mkLinks $(MKLINKS_FLAGS) $(MANN_INSTALL_DIR) |
| 725 |
|
| 726 |
Makefile: $(UNIX_DIR)/Makefile.in $(DLTEST_DIR)/Makefile.in |
| 727 |
$(SHELL) config.status |
| 728 |
|
| 729 |
clean: |
| 730 |
rm -f *.a *.o libtcl* core errs *~ \#* TAGS *.E a.out \ |
| 731 |
errors tclsh tcltest lib.exp |
| 732 |
cd dltest ; $(MAKE) clean |
| 733 |
|
| 734 |
distclean: clean |
| 735 |
rm -rf Makefile config.status config.cache config.log tclConfig.sh \ |
| 736 |
$(PACKAGE).* prototype |
| 737 |
cd dltest ; $(MAKE) distclean |
| 738 |
|
| 739 |
depend: |
| 740 |
makedepend -- $(DEPEND_SWITCHES) -- $(SRCS) |
| 741 |
|
| 742 |
# Test binaries. The rules for tclTestInit.o and xtTestInit.o are |
| 743 |
# complicated because they are compiled from tclAppInit.c. Can't use |
| 744 |
# the "-o" option because this doesn't work on some strange compilers |
| 745 |
# (e.g. UnixWare). |
| 746 |
|
| 747 |
tclTestInit.o: $(UNIX_DIR)/tclAppInit.c |
| 748 |
@if test -f tclAppInit.o ; then \ |
| 749 |
rm -f tclAppInit.sav; \ |
| 750 |
mv tclAppInit.o tclAppInit.sav; \ |
| 751 |
fi; |
| 752 |
$(CC) -c $(CC_SWITCHES) \ |
| 753 |
-DTCL_BUILDTIME_LIBRARY="\"${TCL_BUILDTIME_LIBRARY}\"" \ |
| 754 |
-DTCL_TEST $(UNIX_DIR)/tclAppInit.c |
| 755 |
rm -f tclTestInit.o |
| 756 |
mv tclAppInit.o tclTestInit.o |
| 757 |
@if test -f tclAppInit.sav ; then \ |
| 758 |
mv tclAppInit.sav tclAppInit.o; \ |
| 759 |
fi; |
| 760 |
|
| 761 |
xtTestInit.o: $(UNIX_DIR)/tclAppInit.c |
| 762 |
@if test -f tclAppInit.o ; then \ |
| 763 |
rm -f tclAppInit.sav; \ |
| 764 |
mv tclAppInit.o tclAppInit.sav; \ |
| 765 |
fi; |
| 766 |
$(CC) -c $(CC_SWITCHES) \ |
| 767 |
-DTCL_BUILDTIME_LIBRARY="\"${TCL_BUILDTIME_LIBRARY}\"" \ |
| 768 |
-DTCL_TEST -DTCL_XT_TEST $(UNIX_DIR)/tclAppInit.c |
| 769 |
rm -f xtTestInit.o |
| 770 |
mv tclAppInit.o xtTestInit.o |
| 771 |
@if test -f tclAppInit.sav ; then \ |
| 772 |
mv tclAppInit.sav tclAppInit.o; \ |
| 773 |
fi; |
| 774 |
|
| 775 |
# Object files used on all Unix systems: |
| 776 |
|
| 777 |
REGHDRS=$(GENERIC_DIR)/regex.h $(GENERIC_DIR)/regguts.h \ |
| 778 |
$(GENERIC_DIR)/regcustom.h |
| 779 |
regcomp.o: $(REGHDRS) $(GENERIC_DIR)/regcomp.c $(GENERIC_DIR)/regc_lex.c \ |
| 780 |
$(GENERIC_DIR)/regc_color.c $(GENERIC_DIR)/regc_locale.c \ |
| 781 |
$(GENERIC_DIR)/regc_nfa.c $(GENERIC_DIR)/regc_cvec.c |
| 782 |
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/regcomp.c |
| 783 |
|
| 784 |
regexec.o: $(REGHDRS) $(GENERIC_DIR)/regexec.c $(GENERIC_DIR)/rege_dfa.c |
| 785 |
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/regexec.c |
| 786 |
|
| 787 |
regfree.o: $(REGHDRS) $(GENERIC_DIR)/regfree.c |
| 788 |
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/regfree.c |
| 789 |
|
| 790 |
regerror.o: $(REGHDRS) $(GENERIC_DIR)/regerrs.h $(GENERIC_DIR)/regerror.c |
| 791 |
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/regerror.c |
| 792 |
|
| 793 |
tclAppInit.o: $(UNIX_DIR)/tclAppInit.c |
| 794 |
$(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tclAppInit.c |
| 795 |
|
| 796 |
# On unix we want to use the normal malloc/free implementation, so we |
| 797 |
# specifically set the USE_TCLALLOC flag. |
| 798 |
|
| 799 |
tclAlloc.o: $(GENERIC_DIR)/tclAlloc.c |
| 800 |
$(CC) -c $(CC_SWITCHES) -DUSE_TCLALLOC=0 $(GENERIC_DIR)/tclAlloc.c |
| 801 |
|
| 802 |
tclAsync.o: $(GENERIC_DIR)/tclAsync.c |
| 803 |
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclAsync.c |
| 804 |
|
| 805 |
tclBasic.o: $(GENERIC_DIR)/tclBasic.c |
| 806 |
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclBasic.c |
| 807 |
|
| 808 |
tclBinary.o: $(GENERIC_DIR)/tclBinary.c |
| 809 |
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclBinary.c |
| 810 |
|
| 811 |
tclCkalloc.o: $(GENERIC_DIR)/tclCkalloc.c |
| 812 |
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclCkalloc.c |
| 813 |
|
| 814 |
tclClock.o: $(GENERIC_DIR)/tclClock.c |
| 815 |
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclClock.c |
| 816 |
|
| 817 |
tclCmdAH.o: $(GENERIC_DIR)/tclCmdAH.c |
| 818 |
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclCmdAH.c |
| 819 |
|
| 820 |
tclCmdIL.o: $(GENERIC_DIR)/tclCmdIL.c |
| 821 |
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclCmdIL.c |
| 822 |
|
| 823 |
tclCmdMZ.o: $(GENERIC_DIR)/tclCmdMZ.c |
| 824 |
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclCmdMZ.c |
| 825 |
|
| 826 |
tclDate.o: $(GENERIC_DIR)/tclDate.c |
| 827 |
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclDate.c |
| 828 |
|
| 829 |
tclCompCmds.o: $(GENERIC_DIR)/tclCompCmds.c |
| 830 |
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclCompCmds.c |
| 831 |
|
| 832 |
tclCompExpr.o: $(GENERIC_DIR)/tclCompExpr.c |
| 833 |
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclCompExpr.c |
| 834 |
|
| 835 |
tclCompile.o: $(GENERIC_DIR)/tclCompile.c |
| 836 |
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclCompile.c |
| 837 |
|
| 838 |
tclEncoding.o: $(GENERIC_DIR)/tclEncoding.c |
| 839 |
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclEncoding.c |
| 840 |
|
| 841 |
tclEnv.o: $(GENERIC_DIR)/tclEnv.c |
| 842 |
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclEnv.c |
| 843 |
|
| 844 |
tclEvent.o: $(GENERIC_DIR)/tclEvent.c |
| 845 |
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclEvent.c |
| 846 |
|
| 847 |
tclExecute.o: $(GENERIC_DIR)/tclExecute.c |
| 848 |
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclExecute.c |
| 849 |
|
| 850 |
tclFCmd.o: $(GENERIC_DIR)/tclFCmd.c |
| 851 |
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclFCmd.c |
| 852 |
|
| 853 |
tclFileName.o: $(GENERIC_DIR)/tclFileName.c |
| 854 |
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclFileName.c |
| 855 |
|
| 856 |
tclGet.o: $(GENERIC_DIR)/tclGet.c |
| 857 |
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclGet.c |
| 858 |
|
| 859 |
tclHash.o: $(GENERIC_DIR)/tclHash.c |
| 860 |
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclHash.c |
| 861 |
|
| 862 |
tclHistory.o: $(GENERIC_DIR)/tclHistory.c |
| 863 |
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclHistory.c |
| 864 |
|
| 865 |
tclIndexObj.o: $(GENERIC_DIR)/tclIndexObj.c |
| 866 |
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclIndexObj.c |
| 867 |
|
| 868 |
tclInterp.o: $(GENERIC_DIR)/tclInterp.c |
| 869 |
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclInterp.c |
| 870 |
|
| 871 |
tclIO.o: $(GENERIC_DIR)/tclIO.c |
| 872 |
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclIO.c |
| 873 |
|
| 874 |
tclIOCmd.o: $(GENERIC_DIR)/tclIOCmd.c |
| 875 |
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclIOCmd.c |
| 876 |
|
| 877 |
tclIOGT.o: $(GENERIC_DIR)/tclIOGT.c |
| 878 |
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclIOGT.c |
| 879 |
|
| 880 |
tclIOSock.o: $(GENERIC_DIR)/tclIOSock.c |
| 881 |
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclIOSock.c |
| 882 |
|
| 883 |
tclIOUtil.o: $(GENERIC_DIR)/tclIOUtil.c |
| 884 |
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclIOUtil.c |
| 885 |
|
| 886 |
tclLink.o: $(GENERIC_DIR)/tclLink.c |
| 887 |
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclLink.c |
| 888 |
|
| 889 |
tclListObj.o: $(GENERIC_DIR)/tclListObj.c |
| 890 |
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclListObj.c |
| 891 |
|
| 892 |
tclLiteral.o: $(GENERIC_DIR)/tclLiteral.c |
| 893 |
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclLiteral.c |
| 894 |
|
| 895 |
tclObj.o: $(GENERIC_DIR)/tclObj.c |
| 896 |
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclObj.c |
| 897 |
|
| 898 |
tclLoad.o: $(GENERIC_DIR)/tclLoad.c |
| 899 |
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclLoad.c |
| 900 |
|
| 901 |
tclLoadAix.o: $(UNIX_DIR)/tclLoadAix.c |
| 902 |
$(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tclLoadAix.c |
| 903 |
|
| 904 |
tclLoadAout.o: $(UNIX_DIR)/tclLoadAout.c |
| 905 |
$(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tclLoadAout.c |
| 906 |
|
| 907 |
tclLoadDl.o: $(UNIX_DIR)/tclLoadDl.c |
| 908 |
$(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tclLoadDl.c |
| 909 |
|
| 910 |
tclLoadDl2.o: $(UNIX_DIR)/tclLoadDl2.c |
| 911 |
$(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tclLoadDl2.c |
| 912 |
|
| 913 |
tclLoadDld.o: $(UNIX_DIR)/tclLoadDld.c |
| 914 |
$(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tclLoadDld.c |
| 915 |
|
| 916 |
tclLoadDyld.o: $(UNIX_DIR)/tclLoadDyld.c |
| 917 |
$(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tclLoadDyld.c |
| 918 |
|
| 919 |
tclLoadNone.o: $(GENERIC_DIR)/tclLoadNone.c |
| 920 |
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclLoadNone.c |
| 921 |
|
| 922 |
tclLoadOSF.o: $(UNIX_DIR)/tclLoadOSF.c |
| 923 |
$(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tclLoadOSF.c |
| 924 |
|
| 925 |
tclLoadShl.o: $(UNIX_DIR)/tclLoadShl.c |
| 926 |
$(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tclLoadShl.c |
| 927 |
|
| 928 |
tclMain.o: $(GENERIC_DIR)/tclMain.c |
| 929 |
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclMain.c |
| 930 |
|
| 931 |
tclNamesp.o: $(GENERIC_DIR)/tclNamesp.c |
| 932 |
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclNamesp.c |
| 933 |
|
| 934 |
tclNotify.o: $(GENERIC_DIR)/tclNotify.c |
| 935 |
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclNotify.c |
| 936 |
|
| 937 |
tclParse.o: $(GENERIC_DIR)/tclParse.c |
| 938 |
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclParse.c |
| 939 |
|
| 940 |
tclParseExpr.o: $(GENERIC_DIR)/tclParseExpr.c |
| 941 |
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclParseExpr.c |
| 942 |
|
| 943 |
tclPanic.o: $(GENERIC_DIR)/tclPanic.c |
| 944 |
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclPanic.c |
| 945 |
|
| 946 |
tclPipe.o: $(GENERIC_DIR)/tclPipe.c |
| 947 |
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclPipe.c |
| 948 |
|
| 949 |
tclPkg.o: $(GENERIC_DIR)/tclPkg.c |
| 950 |
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclPkg.c |
| 951 |
|
| 952 |
tclPosixStr.o: $(GENERIC_DIR)/tclPosixStr.c |
| 953 |
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclPosixStr.c |
| 954 |
|
| 955 |
tclPreserve.o: $(GENERIC_DIR)/tclPreserve.c |
| 956 |
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclPreserve.c |
| 957 |
|
| 958 |
tclProc.o: $(GENERIC_DIR)/tclProc.c |
| 959 |
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclProc.c |
| 960 |
|
| 961 |
tclRegexp.o: $(GENERIC_DIR)/tclRegexp.c |
| 962 |
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclRegexp.c |
| 963 |
|
| 964 |
tclResolve.o: $(GENERIC_DIR)/tclResolve.c |
| 965 |
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclResolve.c |
| 966 |
|
| 967 |
tclResult.o: $(GENERIC_DIR)/tclResult.c |
| 968 |
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclResult.c |
| 969 |
|
| 970 |
tclScan.o: $(GENERIC_DIR)/tclScan.c |
| 971 |
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclScan.c |
| 972 |
|
| 973 |
tclStringObj.o: $(GENERIC_DIR)/tclStringObj.c |
| 974 |
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclStringObj.c |
| 975 |
|
| 976 |
tclStubInit.o: $(GENERIC_DIR)/tclStubInit.c |
| 977 |
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclStubInit.c |
| 978 |
|
| 979 |
tclUtil.o: $(GENERIC_DIR)/tclUtil.c |
| 980 |
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclUtil.c |
| 981 |
|
| 982 |
tclUtf.o: $(GENERIC_DIR)/tclUtf.c $(GENERIC_DIR)/tclUniData.c |
| 983 |
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclUtf.c |
| 984 |
|
| 985 |
tclVar.o: $(GENERIC_DIR)/tclVar.c |
| 986 |
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclVar.c |
| 987 |
|
| 988 |
tclTest.o: $(GENERIC_DIR)/tclTest.c |
| 989 |
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclTest.c |
| 990 |
|
| 991 |
tclTestObj.o: $(GENERIC_DIR)/tclTestObj.c |
| 992 |
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclTestObj.c |
| 993 |
|
| 994 |
tclTestProcBodyObj.o: $(GENERIC_DIR)/tclTestProcBodyObj.c |
| 995 |
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclTestProcBodyObj.c |
| 996 |
|
| 997 |
tclTimer.o: $(GENERIC_DIR)/tclTimer.c |
| 998 |
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclTimer.c |
| 999 |
|
| 1000 |
tclThread.o: $(GENERIC_DIR)/tclThread.c |
| 1001 |
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclThread.c |
| 1002 |
|
| 1003 |
tclThreadAlloc.o: $(GENERIC_DIR)/tclThreadAlloc.c |
| 1004 |
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclThreadAlloc.c |
| 1005 |
|
| 1006 |
tclThreadJoin.o: $(GENERIC_DIR)/tclThreadJoin.c |
| 1007 |
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclThreadJoin.c |
| 1008 |
|
| 1009 |
tclThreadTest.o: $(GENERIC_DIR)/tclThreadTest.c |
| 1010 |
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclThreadTest.c |
| 1011 |
|
| 1012 |
tclUnixChan.o: $(UNIX_DIR)/tclUnixChan.c |
| 1013 |
$(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tclUnixChan.c |
| 1014 |
|
| 1015 |
tclUnixEvent.o: $(UNIX_DIR)/tclUnixEvent.c |
| 1016 |
$(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tclUnixEvent.c |
| 1017 |
|
| 1018 |
tclUnixFCmd.o: $(UNIX_DIR)/tclUnixFCmd.c |
| 1019 |
$(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tclUnixFCmd.c |
| 1020 |
|
| 1021 |
tclUnixFile.o: $(UNIX_DIR)/tclUnixFile.c |
| 1022 |
$(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tclUnixFile.c |
| 1023 |
|
| 1024 |
tclUnixNotfy.o: $(UNIX_DIR)/tclUnixNotfy.c |
| 1025 |
$(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tclUnixNotfy.c |
| 1026 |
|
| 1027 |
tclUnixPipe.o: $(UNIX_DIR)/tclUnixPipe.c |
| 1028 |
$(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tclUnixPipe.c |
| 1029 |
|
| 1030 |
tclUnixSock.o: $(UNIX_DIR)/tclUnixSock.c |
| 1031 |
$(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tclUnixSock.c |
| 1032 |
|
| 1033 |
tclUnixTest.o: $(UNIX_DIR)/tclUnixTest.c |
| 1034 |
$(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tclUnixTest.c |
| 1035 |
|
| 1036 |
tclUnixThrd.o: $(UNIX_DIR)/tclUnixThrd.c |
| 1037 |
$(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tclUnixThrd.c |
| 1038 |
|
| 1039 |
tclUnixTime.o: $(UNIX_DIR)/tclUnixTime.c |
| 1040 |
$(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tclUnixTime.c |
| 1041 |
|
| 1042 |
tclUnixInit.o: $(UNIX_DIR)/tclUnixInit.c $(GENERIC_DIR)/tclInitScript.h tclConfig.sh |
| 1043 |
$(CC) -c $(CC_SWITCHES) -DTCL_LIBRARY=\"${TCL_LIBRARY}\" \ |
| 1044 |
-DTCL_PACKAGE_PATH="\"${TCL_PACKAGE_PATH}\"" \ |
| 1045 |
$(UNIX_DIR)/tclUnixInit.c |
| 1046 |
|
| 1047 |
# This is the CFBundle interface. It is only used on Mac OS X. |
| 1048 |
tclMacOSXBundle.o: $(MAC_OSX_DIR)/tclMacOSXBundle.c |
| 1049 |
$(CC) -c $(CC_SWITCHES) $(MAC_OSX_DIR)/tclMacOSXBundle.c |
| 1050 |
|
| 1051 |
# The following targets are not completely general. They are provide |
| 1052 |
# purely for documentation purposes so people who are interested in |
| 1053 |
# the Xt based notifier can modify them to suit their own installation. |
| 1054 |
|
| 1055 |
xttest: ${XTTEST_OBJS} ${GENERIC_OBJS} ${UNIX_OBJS} ${COMPAT_OBJS} \ |
| 1056 |
@DL_OBJS@ ${BUILD_DLTEST} |
| 1057 |
${CC} ${XTTEST_OBJS} ${GENERIC_OBJS} ${UNIX_OBJS} ${COMPAT_OBJS} \ |
| 1058 |
@DL_OBJS@ @TCL_BUILD_LIB_SPEC@ ${LIBS} \ |
| 1059 |
${CC_SEARCH_FLAGS} -L/usr/openwin/lib -lXt -o xttest |
| 1060 |
|
| 1061 |
tclXtNotify.o: $(UNIX_DIR)/tclXtNotify.c |
| 1062 |
$(CC) -c $(CC_SWITCHES) -I/usr/openwin/include \ |
| 1063 |
$(UNIX_DIR)/tclXtNotify.c |
| 1064 |
|
| 1065 |
tclXtTest.o: $(UNIX_DIR)/tclXtTest.c |
| 1066 |
$(CC) -c $(CC_SWITCHES) -I/usr/openwin/include \ |
| 1067 |
$(UNIX_DIR)/tclXtTest.c |
| 1068 |
|
| 1069 |
# compat binaries, these must be compiled for use in a shared library |
| 1070 |
# even though they may be placed in a static executable or library. Since |
| 1071 |
# they are included in both the tcl library and the stub library, they |
| 1072 |
# need to be relocatable. |
| 1073 |
|
| 1074 |
fixstrtod.o: $(COMPAT_DIR)/fixstrtod.c |
| 1075 |
$(CC) -c $(STUB_CC_SWITCHES) $(COMPAT_DIR)/fixstrtod.c |
| 1076 |
|
| 1077 |
opendir.o: $(COMPAT_DIR)/opendir.c |
| 1078 |
$(CC) -c $(STUB_CC_SWITCHES) $(COMPAT_DIR)/opendir.c |
| 1079 |
|
| 1080 |
memcmp.o: $(COMPAT_DIR)/memcmp.c |
| 1081 |
$(CC) -c $(STUB_CC_SWITCHES) $(COMPAT_DIR)/memcmp.c |
| 1082 |
|
| 1083 |
strncasecmp.o: $(COMPAT_DIR)/strncasecmp.c |
| 1084 |
$(CC) -c $(STUB_CC_SWITCHES) $(COMPAT_DIR)/strncasecmp.c |
| 1085 |
|
| 1086 |
strstr.o: $(COMPAT_DIR)/strstr.c |
| 1087 |
$(CC) -c $(STUB_CC_SWITCHES) $(COMPAT_DIR)/strstr.c |
| 1088 |
|
| 1089 |
strtod.o: $(COMPAT_DIR)/strtod.c |
| 1090 |
$(CC) -c $(STUB_CC_SWITCHES) $(COMPAT_DIR)/strtod.c |
| 1091 |
|
| 1092 |
strtol.o: $(COMPAT_DIR)/strtol.c |
| 1093 |
$(CC) -c $(STUB_CC_SWITCHES) $(COMPAT_DIR)/strtol.c |
| 1094 |
|
| 1095 |
strtoll.o: $(COMPAT_DIR)/strtoll.c |
| 1096 |
$(CC) -c $(STUB_CC_SWITCHES) $(COMPAT_DIR)/strtoll.c |
| 1097 |
|
| 1098 |
strtoul.o: $(COMPAT_DIR)/strtoul.c |
| 1099 |
$(CC) -c $(STUB_CC_SWITCHES) $(COMPAT_DIR)/strtoul.c |
| 1100 |
|
| 1101 |
strtoull.o: $(COMPAT_DIR)/strtoull.c |
| 1102 |
$(CC) -c $(STUB_CC_SWITCHES) $(COMPAT_DIR)/strtoull.c |
| 1103 |
|
| 1104 |
tmpnam.o: $(COMPAT_DIR)/tmpnam.c |
| 1105 |
$(CC) -c $(STUB_CC_SWITCHES) $(COMPAT_DIR)/tmpnam.c |
| 1106 |
|
| 1107 |
waitpid.o: $(COMPAT_DIR)/waitpid.c |
| 1108 |
$(CC) -c $(STUB_CC_SWITCHES) $(COMPAT_DIR)/waitpid.c |
| 1109 |
|
| 1110 |
# Stub library binaries, these must be compiled for use in a shared library |
| 1111 |
# even though they will be placed in a static archive |
| 1112 |
|
| 1113 |
|
| 1114 |
tclStubLib.o: $(GENERIC_DIR)/tclStubLib.c |
| 1115 |
$(CC) -c $(STUB_CC_SWITCHES) $(GENERIC_DIR)/tclStubLib.c |
| 1116 |
|
| 1117 |
.c.o: |
| 1118 |
$(CC) -c $(CC_SWITCHES) $< |
| 1119 |
|
| 1120 |
# |
| 1121 |
# Target to regenerate header files and stub files from the *.decls tables. |
| 1122 |
# |
| 1123 |
|
| 1124 |
$(GENERIC_DIR)/tclStubInit.c: $(GENERIC_DIR)/tcl.decls \ |
| 1125 |
$(GENERIC_DIR)/tclInt.decls |
| 1126 |
@echo "Warning: tclStubInit.c may be out of date." |
| 1127 |
@echo "Developers may want to run \"make genstubs\" to regenerate." |
| 1128 |
@echo "This warning can be safely ignored, do not report as a bug!" |
| 1129 |
|
| 1130 |
genstubs: |
| 1131 |
$(TCL_EXE) $(TOOL_DIR)/genStubs.tcl $(GENERIC_DIR) \ |
| 1132 |
$(GENERIC_DIR)/tcl.decls $(GENERIC_DIR)/tclInt.decls |
| 1133 |
|
| 1134 |
# |
| 1135 |
# Target to check that all exported functions have an entry in the stubs |
| 1136 |
# tables. |
| 1137 |
# |
| 1138 |
|
| 1139 |
checkstubs: |
| 1140 |
-@for i in `nm -p $(TCL_LIB_FILE) | awk '$$2 ~ /T/ { print $$3 }' \ |
| 1141 |
| sort -n`; do \ |
| 1142 |
match=0; \ |
| 1143 |
for j in $(TCL_DECLS); do \ |
| 1144 |
if [ `grep -c $$i $$j` -gt 0 ]; then \ |
| 1145 |
match=1; \ |
| 1146 |
fi; \ |
| 1147 |
done; \ |
| 1148 |
if [ $$match -eq 0 ]; then echo $$i; fi \ |
| 1149 |
done |
| 1150 |
|
| 1151 |
# |
| 1152 |
# Target to check that all public APIs which are not command |
| 1153 |
# implementations have an entry in section three of the distributed |
| 1154 |
# manpages. |
| 1155 |
# |
| 1156 |
|
| 1157 |
checkdoc: |
| 1158 |
-@for i in `nm -p $(TCL_LIB_FILE) | awk '$$3 ~ /Tcl_/ { print $$3 }' \ |
| 1159 |
| grep -v 'Cmd$$' | sort -n`; do \ |
| 1160 |
match=0; \ |
| 1161 |
for j in $(TOP_DIR)/doc/*.3; do \ |
| 1162 |
if [ `grep '\-' $$j | grep -c $$i` -gt 0 ]; then \ |
| 1163 |
match=1; \ |
| 1164 |
fi; \ |
| 1165 |
done; \ |
| 1166 |
if [ $$match -eq 0 ]; then echo $$i; fi \ |
| 1167 |
done |
| 1168 |
|
| 1169 |
# |
| 1170 |
# Target to check for proper usage of UCHAR macro. |
| 1171 |
# |
| 1172 |
|
| 1173 |
checkuchar: |
| 1174 |
-egrep isalnum\|isalpha\|iscntrl\|isdigit\|islower\|isprint\|ispunct\|isspace\|isupper\|isxdigit\|toupper\|tolower $(SRCS) | grep -v UCHAR |
| 1175 |
|
| 1176 |
# |
| 1177 |
# Target to make sure that only symbols with "Tcl" prefixes are |
| 1178 |
# exported. |
| 1179 |
# |
| 1180 |
|
| 1181 |
checkexports: $(TCL_LIB_FILE) |
| 1182 |
-nm -p $(TCL_LIB_FILE) | awk '$$2 ~ /[TDB]/ { print $$3 }' | sort -n | grep -v '^[Tt]cl' |
| 1183 |
|
| 1184 |
# |
| 1185 |
# Target to create a Tcl RPM for Linux. Requires that you be on a Linux |
| 1186 |
# system. |
| 1187 |
# |
| 1188 |
|
| 1189 |
rpm: all /bin/rpm |
| 1190 |
rm -f THIS.TCL.SPEC |
| 1191 |
echo "%define _builddir `pwd`" > THIS.TCL.SPEC |
| 1192 |
echo "%define _rpmdir `pwd`/RPMS" >> THIS.TCL.SPEC |
| 1193 |
cat tcl.spec >> THIS.TCL.SPEC |
| 1194 |
mkdir -p RPMS/i386 |
| 1195 |
rpm -bb THIS.TCL.SPEC |
| 1196 |
mv RPMS/i386/*.rpm . |
| 1197 |
rm -rf RPMS THIS.TCL.SPEC |
| 1198 |
|
| 1199 |
mklinks: |
| 1200 |
$(TCL_EXE) $(UNIX_DIR)/mkLinks.tcl \ |
| 1201 |
$(UNIX_DIR)/../doc/*.[13n] > $(UNIX_DIR)/mkLinks |
| 1202 |
chmod +x $(UNIX_DIR)/mkLinks |
| 1203 |
|
| 1204 |
# |
| 1205 |
# Target to create a proper Tcl distribution from information in the |
| 1206 |
# master source directory. DISTDIR must be defined to indicate where |
| 1207 |
# to put the distribution. |
| 1208 |
# |
| 1209 |
|
| 1210 |
DISTROOT = /tmp/dist |
| 1211 |
DISTNAME = tcl${VERSION}${PATCH_LEVEL} |
| 1212 |
ZIPNAME = tcl${MAJOR_VERSION}${MINOR_VERSION}${PATCH_LEVEL}-src.zip |
| 1213 |
DISTDIR = $(DISTROOT)/$(DISTNAME) |
| 1214 |
|
| 1215 |
dist: mklinks |
| 1216 |
rm -rf $(DISTDIR) |
| 1217 |
mkdir -p $(DISTDIR)/unix |
| 1218 |
cp -p $(UNIX_DIR)/*.c $(UNIX_DIR)/*.h $(DISTDIR)/unix |
| 1219 |
cp $(UNIX_DIR)/Makefile.in $(DISTDIR)/unix |
| 1220 |
chmod 664 $(DISTDIR)/unix/Makefile.in |
| 1221 |
cp $(UNIX_DIR)/configure $(UNIX_DIR)/configure.in \ |
| 1222 |
$(UNIX_DIR)/tcl.m4 $(UNIX_DIR)/aclocal.m4 \ |
| 1223 |
$(UNIX_DIR)/tclConfig.sh.in $(UNIX_DIR)/install-sh \ |
| 1224 |
$(UNIX_DIR)/README $(UNIX_DIR)/ldAix $(UNIX_DIR)/tcl.spec \ |
| 1225 |
$(UNIX_DIR)/mkLinks \ |
| 1226 |
$(DISTDIR)/unix |
| 1227 |
chmod 775 $(DISTDIR)/unix/configure $(DISTDIR)/unix/configure.in |
| 1228 |
chmod 775 $(DISTDIR)/unix/ldAix |
| 1229 |
chmod +x $(DISTDIR)/unix/install-sh |
| 1230 |
mkdir $(DISTDIR)/generic |
| 1231 |
cp -p $(GENERIC_DIR)/*.c $(GENERIC_DIR)/*.h $(DISTDIR)/generic |
| 1232 |
cp -p $(GENERIC_DIR)/*.decls $(DISTDIR)/generic |
| 1233 |
cp -p $(GENERIC_DIR)/README $(DISTDIR)/generic |
| 1234 |
cp -p $(GENERIC_DIR)/tclGetDate.y $(DISTDIR)/generic |
| 1235 |
cp -p $(TOP_DIR)/changes $(TOP_DIR)/ChangeLog $(TOP_DIR)/README* \ |
| 1236 |
$(TOP_DIR)/ChangeLog.[12]??? $(TOP_DIR)/license.terms \ |
| 1237 |
$(DISTDIR) |
| 1238 |
mkdir $(DISTDIR)/library |
| 1239 |
cp -p $(TOP_DIR)/license.terms $(TOP_DIR)/library/*.tcl \ |
| 1240 |
$(TOP_DIR)/library/tclIndex $(DISTDIR)/library |
| 1241 |
for i in http1.0 http opt msgcat reg dde tcltest; \ |
| 1242 |
do \ |
| 1243 |
mkdir $(DISTDIR)/library/$$i ;\ |
| 1244 |
cp -p $(TOP_DIR)/library/$$i/*.tcl $(DISTDIR)/library/$$i; \ |
| 1245 |
done; |
| 1246 |
mkdir $(DISTDIR)/library/encoding |
| 1247 |
cp -p $(TOP_DIR)/library/encoding/*.enc $(DISTDIR)/library/encoding |
| 1248 |
mkdir $(DISTDIR)/doc |
| 1249 |
cp -p $(TOP_DIR)/license.terms $(TOP_DIR)/doc/*.[13n] \ |
| 1250 |
$(TOP_DIR)/doc/man.macros $(DISTDIR)/doc |
| 1251 |
mkdir $(DISTDIR)/compat |
| 1252 |
cp -p $(TOP_DIR)/license.terms $(TOP_DIR)/compat/*.c \ |
| 1253 |
$(TOP_DIR)/compat/*.h $(TOP_DIR)/compat/README \ |
| 1254 |
$(DISTDIR)/compat |
| 1255 |
mkdir $(DISTDIR)/tests |
| 1256 |
cp -p $(TOP_DIR)/license.terms $(DISTDIR)/tests |
| 1257 |
cp -p $(TOP_DIR)/tests/*.test $(TOP_DIR)/tests/README \ |
| 1258 |
$(TOP_DIR)/tests/httpd $(TOP_DIR)/tests/*.tcl \ |
| 1259 |
$(DISTDIR)/tests |
| 1260 |
mkdir $(DISTDIR)/win |
| 1261 |
cp $(TOP_DIR)/win/Makefile.in $(DISTDIR)/win |
| 1262 |
cp $(TOP_DIR)/win/configure.in $(TOP_DIR)/win/configure \ |
| 1263 |
$(TOP_DIR)/win/tclConfig.sh.in \ |
| 1264 |
$(TOP_DIR)/win/tcl.m4 $(TOP_DIR)/win/aclocal.m4 \ |
| 1265 |
$(DISTDIR)/win |
| 1266 |
cp -p $(TOP_DIR)/win/*.c $(TOP_DIR)/win/*.h \ |
| 1267 |
$(TOP_DIR)/win/*.ico $(TOP_DIR)/win/*.rc \ |
| 1268 |
$(DISTDIR)/win |
| 1269 |
cp -p $(TOP_DIR)/win/*.bat $(DISTDIR)/win |
| 1270 |
$(TCL_EXE) $(TOOL_DIR)/eolFix.tcl -crlf $(DISTDIR)/win/*.bat |
| 1271 |
cp -p $(TOP_DIR)/win/makefile.* $(DISTDIR)/win |
| 1272 |
$(TCL_EXE) $(TOOL_DIR)/eolFix.tcl -crlf $(DISTDIR)/win/makefile.* |
| 1273 |
cp -p $(TOP_DIR)/win/rules.vc $(DISTDIR)/win |
| 1274 |
$(TCL_EXE) $(TOOL_DIR)/eolFix.tcl -crlf $(DISTDIR)/win/rules.vc |
| 1275 |
cp -p $(TOP_DIR)/win/coffbase.txt $(DISTDIR)/win |
| 1276 |
$(TCL_EXE) $(TOOL_DIR)/eolFix.tcl -crlf $(DISTDIR)/win/coffbase.txt |
| 1277 |
cp -p $(TOP_DIR)/win/tcl.hpj.in $(DISTDIR)/win |
| 1278 |
$(TCL_EXE) $(TOOL_DIR)/eolFix.tcl -crlf $(DISTDIR)/win/tcl.hpj.in |
| 1279 |
cp -p $(TOP_DIR)/win/tcl.ds* $(DISTDIR)/win |
| 1280 |
$(TCL_EXE) $(TOOL_DIR)/eolFix.tcl -crlf $(DISTDIR)/win/tcl.ds* |
| 1281 |
cp -p $(TOP_DIR)/win/README $(DISTDIR)/win |
| 1282 |
cp -p $(TOP_DIR)/license.terms $(DISTDIR)/win |
| 1283 |
mkdir $(DISTDIR)/mac |
| 1284 |
cp -p $(TOP_DIR)/mac/tcl*.sea.hqx \ |
| 1285 |
$(TOP_DIR)/mac/*.c $(TOP_DIR)/mac/*.h $(TOP_DIR)/mac/*.r \ |
| 1286 |
$(DISTDIR)/mac |
| 1287 |
cp -p $(TOP_DIR)/mac/porting.notes $(TOP_DIR)/mac/README $(DISTDIR)/mac |
| 1288 |
cp -p $(TOP_DIR)/mac/*.pch $(DISTDIR)/mac |
| 1289 |
cp -p $(TOP_DIR)/mac/*.doc $(TOP_DIR)/mac/*.html $(DISTDIR)/mac |
| 1290 |
cp -p $(TOP_DIR)/license.terms $(DISTDIR)/mac |
| 1291 |
mkdir $(DISTDIR)/macosx |
| 1292 |
cp -p $(TOP_DIR)/macosx/Makefile \ |
| 1293 |
$(TOP_DIR)/macosx/*.c \ |
| 1294 |
$(DISTDIR)/macosx |
| 1295 |
mkdir $(DISTDIR)/macosx/Tcl.pbproj |
| 1296 |
cp -p $(TOP_DIR)/macosx/Tcl.pbproj/*.pbx* $(DISTDIR)/macosx/Tcl.pbproj |
| 1297 |
cp -p $(TOP_DIR)/macosx/README $(DISTDIR)/macosx |
| 1298 |
mkdir $(DISTDIR)/unix/dltest |
| 1299 |
cp -p $(UNIX_DIR)/dltest/*.c $(UNIX_DIR)/dltest/Makefile.in \ |
| 1300 |
$(UNIX_DIR)/dltest/README \ |
| 1301 |
$(DISTDIR)/unix/dltest |
| 1302 |
mkdir $(DISTDIR)/tools |
| 1303 |
cp -p $(TOP_DIR)/tools/Makefile.in $(TOP_DIR)/tools/README \ |
| 1304 |
$(TOP_DIR)/tools/configure $(TOP_DIR)/tools/configure.in \ |
| 1305 |
$(TOP_DIR)/tools/*.tcl $(TOP_DIR)/tools/man2tcl.c \ |
| 1306 |
$(TOP_DIR)/tools/tcl.wse.in $(TOP_DIR)/tools/*.bmp \ |
| 1307 |
$(TOP_DIR)/tools/tcl.hpj.in \ |
| 1308 |
$(DISTDIR)/tools |
| 1309 |
$(TCL_EXE) $(TOOL_DIR)/eolFix.tcl -crlf $(DISTDIR)/tools/tcl.hpj.in \ |
| 1310 |
$(DISTDIR)/tools/tcl.wse.in |
| 1311 |
|
| 1312 |
# |
| 1313 |
# The following target can only be used for non-patch releases. Use |
| 1314 |
# the "allpatch" target below for patch releases. |
| 1315 |
# |
| 1316 |
|
| 1317 |
alldist: dist |
| 1318 |
rm -f $(DISTROOT)/$(DISTNAME)-src.tar.gz $(DISTROOT)/$(ZIPNAME) |
| 1319 |
cd $(DISTROOT); tar cf $(DISTNAME)-src.tar $(DISTNAME); \ |
| 1320 |
gzip -9 $(DISTNAME)-src.tar; zip -qr8 $(ZIPNAME) $(DISTNAME) |
| 1321 |
|
| 1322 |
# |
| 1323 |
# The target below is similar to "alldist" except it works for patch |
| 1324 |
# releases. It is needed because patch releases are peculiar: the |
| 1325 |
# patch designation appears in the name of the compressed file |
| 1326 |
# (e.g. tcl8.0p1.tar.gz) but the extracted source directory doesn't |
| 1327 |
# include the patch designation (e.g. tcl8.0). |
| 1328 |
# |
| 1329 |
|
| 1330 |
allpatch: dist |
| 1331 |
rm -f $(DISTROOT)/$(DISTNAME)-src.tar.gz $(DISTROOT)/$(ZIPNAME) |
| 1332 |
mv $(DISTROOT)/tcl${VERSION} $(DISTROOT)/old |
| 1333 |
mv $(DISTROOT)/$(DISTNAME) $(DISTROOT)/tcl${VERSION} |
| 1334 |
cd $(DISTROOT); tar cf $(DISTNAME)-src.tar tcl${VERSION}; \ |
| 1335 |
gzip -9 $(DISTNAME)-src.tar; zip -r8 $(ZIPNAME) tcl${VERSION} |
| 1336 |
mv $(DISTROOT)/tcl${VERSION} $(DISTROOT)/$(DISTNAME) |
| 1337 |
mv $(DISTROOT)/old $(DISTROOT)/tcl${VERSION} |
| 1338 |
|
| 1339 |
# |
| 1340 |
# This target creates the HTML folder for Tcl & Tk and places it |
| 1341 |
# in DISTDIR/html. It uses the tcltk-man2html.tcl tool from |
| 1342 |
# the Tcl group's tool workspace. It depends on the Tcl & Tk being |
| 1343 |
# in directories called tcl8.3 & tk8.3 up two directories from the |
| 1344 |
# TOOL_DIR. |
| 1345 |
# |
| 1346 |
|
| 1347 |
html: |
| 1348 |
$(BUILD_HTML) |
| 1349 |
html-tcl: |
| 1350 |
$(BUILD_HTML) --tcl |
| 1351 |
html-tk: |
| 1352 |
$(BUILD_HTML) --tk |
| 1353 |
|
| 1354 |
BUILD_HTML = \ |
| 1355 |
$(TCL_EXE) $(TOOL_DIR)/tcltk-man2html.tcl --htmldir=$(DISTDIR)/html \ |
| 1356 |
--srcdir=$(TOP_DIR)/.. |
| 1357 |
|
| 1358 |
# |
| 1359 |
# Target to create a Macintosh version of the distribution. This will |
| 1360 |
# do a normal distribution and then massage the output to prepare it |
| 1361 |
# for moving to the Mac platform. This requires a few scripts and |
| 1362 |
# programs found only in the Tcl group's tool workspace. |
| 1363 |
# |
| 1364 |
|
| 1365 |
macdist: dist machtml |
| 1366 |
|
| 1367 |
machtml: |
| 1368 |
rm -f $(DISTDIR)/mac/tclMacProjects.sea.hqx |
| 1369 |
rm -rf $(DISTDIR)/doc |
| 1370 |
$(TCL_EXE) $(TOOL_DIR)/cvtEOL.tcl $(DISTDIR) |
| 1371 |
|
| 1372 |
# |
| 1373 |
# Targets to build Solaris package of the distribution for the current |
| 1374 |
# architecture. To build stream packages for both sun4 and i86pc |
| 1375 |
# architectures: |
| 1376 |
# |
| 1377 |
# On the sun4 machine, execute the following: |
| 1378 |
# make distclean; ./configure |
| 1379 |
# make DISTDIR=<distdir> package |
| 1380 |
# |
| 1381 |
# Once the build is complete, execute the following on the i86pc |
| 1382 |
# machine: |
| 1383 |
# make DISTDIR=<distdir> package-quick |
| 1384 |
# |
| 1385 |
# <distdir> is the absolute path to a directory where the build should |
| 1386 |
# take place. These steps will generate the $(PACKAGE).sun4 and |
| 1387 |
# $(PACKAGE).i86pc stream packages. It is important that the packages be |
| 1388 |
# built in this fashion in order to ensure that the architecture |
| 1389 |
# independent files are exactly the same, including timestamps, in |
| 1390 |
# both packages. |
| 1391 |
# |
| 1392 |
|
| 1393 |
PACKAGE=SCRPtcl |
| 1394 |
|
| 1395 |
package: dist package-config package-common package-binaries package-generate |
| 1396 |
package-quick: package-config package-binaries package-generate |
| 1397 |
|
| 1398 |
# |
| 1399 |
# Configure for the current architecture in the dist directory. |
| 1400 |
# |
| 1401 |
package-config: |
| 1402 |
mkdir -p $(DISTDIR)/unix/`arch` |
| 1403 |
cd $(DISTDIR)/unix/`arch`; \ |
| 1404 |
../configure --prefix=/opt/$(PACKAGE)/$(VERSION) \ |
| 1405 |
--exec_prefix=/opt/$(PACKAGE)/$(VERSION)/`arch` \ |
| 1406 |
--enable-shared |
| 1407 |
mkdir -p $(DISTDIR)/$(PACKAGE)/$(VERSION) |
| 1408 |
mkdir -p $(DISTDIR)/$(PACKAGE)/$(VERSION)/`arch` |
| 1409 |
|
| 1410 |
# |
| 1411 |
# Build and install the architecture independent files in the dist directory. |
| 1412 |
# |
| 1413 |
|
| 1414 |
package-common: |
| 1415 |
cd $(DISTDIR)/unix/`arch`;\ |
| 1416 |
$(MAKE); \ |
| 1417 |
$(MAKE) prefix=$(DISTDIR)/$(PACKAGE)/$(VERSION) \ |
| 1418 |
exec_prefix=$(DISTDIR)/$(PACKAGE)/$(VERSION)/`arch` \ |
| 1419 |
install-libraries install-man |
| 1420 |
mkdir -p $(DISTDIR)/$(PACKAGE)/$(VERSION)/bin |
| 1421 |
sed -e "s/TCLVERSION/$(VERSION)/g" < $(UNIX_DIR)/tclsh.sh \ |
| 1422 |
> $(DISTDIR)/$(PACKAGE)/$(VERSION)/bin/tclsh$(VERSION) |
| 1423 |
chmod 755 $(DISTDIR)/$(PACKAGE)/$(VERSION)/bin/tclsh$(VERSION) |
| 1424 |
|
| 1425 |
# |
| 1426 |
# Build and install the architecture specific files in the dist directory. |
| 1427 |
# |
| 1428 |
|
| 1429 |
package-binaries: |
| 1430 |
cd $(DISTDIR)/unix/`arch`; \ |
| 1431 |
$(MAKE); \ |
| 1432 |
$(MAKE) install-binaries prefix=$(DISTDIR)/$(PACKAGE)/$(VERSION) \ |
| 1433 |
exec_prefix=$(DISTDIR)/$(PACKAGE)/$(VERSION)/`arch` |
| 1434 |
|
| 1435 |
# |
| 1436 |
# Generate a package from the installed files in the dist directory for the |
| 1437 |
# current architecture. |
| 1438 |
# |
| 1439 |
|
| 1440 |
package-generate: |
| 1441 |
pkgproto $(DISTDIR)/$(PACKAGE)/$(VERSION)/bin=bin \ |
| 1442 |
$(DISTDIR)/$(PACKAGE)/$(VERSION)/include=include \ |
| 1443 |
$(DISTDIR)/$(PACKAGE)/$(VERSION)/lib=lib \ |
| 1444 |
$(DISTDIR)/$(PACKAGE)/$(VERSION)/man=man \ |
| 1445 |
$(DISTDIR)/$(PACKAGE)/$(VERSION)/`arch`=`arch` \ |
| 1446 |
| $(TCL_EXE) $(UNIX_DIR)/mkProto.tcl \ |
| 1447 |
$(VERSION) $(UNIX_DIR) > prototype |
| 1448 |
pkgmk -o -d . -f prototype -a `arch` |
| 1449 |
pkgtrans -s . $(PACKAGE).`arch` $(PACKAGE) |
| 1450 |
rm -rf $(PACKAGE) |
| 1451 |
|
| 1452 |
# DO NOT DELETE THIS LINE -- make depend depends on it. |