os/persistentdata/persistentstorage/sqlite3api/TEST/TCL/tcldistribution/unix/Makefile.in
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/persistentdata/persistentstorage/sqlite3api/TEST/TCL/tcldistribution/unix/Makefile.in Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,1501 @@
1.4 +#
1.5 +# This file is a Makefile for Tcl. If it has the name "Makefile.in"
1.6 +# then it is a template for a Makefile; to generate the actual Makefile,
1.7 +# run "./configure", which is a configuration script generated by the
1.8 +# "autoconf" program (constructs like "@foo@" will get replaced in the
1.9 +# actual Makefile.
1.10 +#
1.11 +# RCS: @(#) $Id: Makefile.in,v 1.121.2.20 2007/04/30 22:58:18 das Exp $
1.12 +
1.13 +VERSION = @TCL_VERSION@
1.14 +MAJOR_VERSION = @TCL_MAJOR_VERSION@
1.15 +MINOR_VERSION = @TCL_MINOR_VERSION@
1.16 +PATCH_LEVEL = @TCL_PATCH_LEVEL@
1.17 +
1.18 +#----------------------------------------------------------------
1.19 +# Things you can change to personalize the Makefile for your own
1.20 +# site (you can make these changes in either Makefile.in or
1.21 +# Makefile, but changes to Makefile will get lost if you re-run
1.22 +# the configuration script).
1.23 +#----------------------------------------------------------------
1.24 +
1.25 +# Default top-level directories in which to install architecture-
1.26 +# specific files (exec_prefix) and machine-independent files such
1.27 +# as scripts (prefix). The values specified here may be overridden
1.28 +# at configure-time with the --exec-prefix and --prefix options
1.29 +# to the "configure" script. The *dir vars are standard configure
1.30 +# substitutions that are based off prefix and exec_prefix.
1.31 +
1.32 +prefix = @prefix@
1.33 +exec_prefix = @exec_prefix@
1.34 +bindir = @bindir@
1.35 +libdir = @libdir@
1.36 +includedir = @includedir@
1.37 +mandir = @mandir@
1.38 +
1.39 +# The following definition can be set to non-null for special systems
1.40 +# like AFS with replication. It allows the pathnames used for installation
1.41 +# to be different than those used for actually reference files at
1.42 +# run-time. INSTALL_ROOT is prepended to $prefix and $exec_prefix
1.43 +# when installing files.
1.44 +INSTALL_ROOT = $(DESTDIR)
1.45 +
1.46 +# Path for the platform independent Tcl scripting libraries:
1.47 +TCL_LIBRARY = @TCL_LIBRARY@
1.48 +
1.49 +# Path to use at runtime to refer to LIB_INSTALL_DIR:
1.50 +LIB_RUNTIME_DIR = $(libdir)
1.51 +
1.52 +# Directory in which to install the program tclsh:
1.53 +BIN_INSTALL_DIR = $(INSTALL_ROOT)$(bindir)
1.54 +
1.55 +# Directory in which to install libtcl.so or libtcl.a:
1.56 +LIB_INSTALL_DIR = $(INSTALL_ROOT)$(libdir)
1.57 +
1.58 +# Path name to use when installing library scripts.
1.59 +SCRIPT_INSTALL_DIR = $(INSTALL_ROOT)$(TCL_LIBRARY)
1.60 +
1.61 +# Directory in which to install the include file tcl.h:
1.62 +INCLUDE_INSTALL_DIR = $(INSTALL_ROOT)$(includedir)
1.63 +
1.64 +# Path to the private tcl header dir:
1.65 +PRIVATE_INCLUDE_DIR = @PRIVATE_INCLUDE_DIR@
1.66 +
1.67 +# Directory in which to (optionally) install the private tcl headers:
1.68 +PRIVATE_INCLUDE_INSTALL_DIR = $(INSTALL_ROOT)$(PRIVATE_INCLUDE_DIR)
1.69 +
1.70 +# Top-level directory in which to install manual entries:
1.71 +MAN_INSTALL_DIR = $(INSTALL_ROOT)$(mandir)
1.72 +
1.73 +# Directory in which to install manual entry for tclsh:
1.74 +MAN1_INSTALL_DIR = $(MAN_INSTALL_DIR)/man1
1.75 +
1.76 +# Directory in which to install manual entries for Tcl's C library
1.77 +# procedures:
1.78 +MAN3_INSTALL_DIR = $(MAN_INSTALL_DIR)/man3
1.79 +
1.80 +# Directory in which to install manual entries for the built-in
1.81 +# Tcl commands:
1.82 +MANN_INSTALL_DIR = $(MAN_INSTALL_DIR)/mann
1.83 +
1.84 +# Path to the html documentation dir:
1.85 +HTML_DIR = @HTML_DIR@
1.86 +
1.87 +# Directory in which to install html documentation:
1.88 +HTML_INSTALL_DIR = $(INSTALL_ROOT)$(HTML_DIR)
1.89 +
1.90 +# Package search path.
1.91 +TCL_PACKAGE_PATH = @TCL_PACKAGE_PATH@
1.92 +
1.93 +# Libraries built with optimization switches have this additional extension
1.94 +TCL_DBGX = @TCL_DBGX@
1.95 +
1.96 +# warning flags
1.97 +CFLAGS_WARNING = @CFLAGS_WARNING@
1.98 +
1.99 +# The default switches for optimization or debugging
1.100 +CFLAGS_DEBUG = @CFLAGS_DEBUG@
1.101 +CFLAGS_OPTIMIZE = @CFLAGS_OPTIMIZE@
1.102 +
1.103 +# To change the compiler switches, for example to change from optimization to
1.104 +# debugging symbols, change the following line:
1.105 +#CFLAGS = $(CFLAGS_DEBUG)
1.106 +#CFLAGS = $(CFLAGS_OPTIMIZE)
1.107 +#CFLAGS = $(CFLAGS_DEBUG) $(CFLAGS_OPTIMIZE)
1.108 +CFLAGS = @CFLAGS_DEFAULT@ @CFLAGS@ -DTCL_DBGX=$(TCL_DBGX)
1.109 +
1.110 +# Flags to pass to the linker
1.111 +LDFLAGS_DEBUG = @LDFLAGS_DEBUG@
1.112 +LDFLAGS_OPTIMIZE = @LDFLAGS_OPTIMIZE@
1.113 +LDFLAGS = @LDFLAGS_DEFAULT@ @LDFLAGS@
1.114 +
1.115 +# To disable ANSI-C procedure prototypes reverse the comment characters
1.116 +# on the following lines:
1.117 +PROTO_FLAGS =
1.118 +#PROTO_FLAGS = -DNO_PROTOTYPE
1.119 +
1.120 +# Mathematical functions like sin and atan2 are enabled for expressions
1.121 +# by default. To disable them, reverse the comment characters on the
1.122 +# following pairs of lines:
1.123 +MATH_FLAGS =
1.124 +#MATH_FLAGS = -DTCL_NO_MATH
1.125 +MATH_LIBS = @MATH_LIBS@
1.126 +#MATH_LIBS =
1.127 +
1.128 +# If you use the setenv, putenv, or unsetenv procedures to modify
1.129 +# environment variables in your application and you'd like those
1.130 +# modifications to appear in the "env" Tcl variable, switch the
1.131 +# comments on the two lines below so that Tcl provides these
1.132 +# procedures instead of your standard C library.
1.133 +
1.134 +ENV_FLAGS =
1.135 +#ENV_FLAGS = -DTclSetEnv=setenv -DTcl_PutEnv=putenv -DTclUnsetEnv=unsetenv
1.136 +
1.137 +# To compile for non-UNIX systems (so that only the non-UNIX-specific
1.138 +# commands are available), reverse the comment characters on the
1.139 +# following pairs of lines. In addition, you'll have to provide your
1.140 +# own replacement for the "panic" procedure (see panic.c for what
1.141 +# the current one does).
1.142 +GENERIC_FLAGS =
1.143 +#GENERIC_FLAGS = -DTCL_GENERIC_ONLY
1.144 +UNIX_OBJS = tclUnixChan.o tclUnixEvent.o tclUnixFCmd.o \
1.145 + tclUnixFile.o tclUnixPipe.o tclUnixSock.o \
1.146 + tclUnixTime.o tclUnixInit.o tclUnixThrd.o \
1.147 + tclUnixCompat.o
1.148 +#UNIX_OBJS =
1.149 +NOTIFY_OBJS = tclUnixNotfy.o
1.150 +#NOTIFY_OBJS =
1.151 +
1.152 +# To enable memory debugging reverse the comment characters on the following
1.153 +# lines or call configure with --enable-symbols=mem
1.154 +# Warning: if you enable memory debugging, you must do it *everywhere*,
1.155 +# including all the code that calls Tcl, and you must use ckalloc and
1.156 +# ckfree everywhere instead of malloc and free.
1.157 +MEM_DEBUG_FLAGS =
1.158 +#MEM_DEBUG_FLAGS = -DTCL_MEM_DEBUG
1.159 +
1.160 +TCL_STUB_LIB_FILE = @TCL_STUB_LIB_FILE@
1.161 +#TCL_STUB_LIB_FILE = libtclstub.a
1.162 +
1.163 +# Generic stub lib name used in rules that apply to tcl and tk
1.164 +STUB_LIB_FILE = ${TCL_STUB_LIB_FILE}
1.165 +
1.166 +TCL_STUB_LIB_FLAG = @TCL_STUB_LIB_FLAG@
1.167 +#TCL_STUB_LIB_FLAG = -ltclstub
1.168 +
1.169 +# To enable compilation debugging reverse the comment characters on one
1.170 +# of the following lines or call configure with --enable-symbols=compile
1.171 +COMPILE_DEBUG_FLAGS =
1.172 +#COMPILE_DEBUG_FLAGS = -DTCL_COMPILE_DEBUG -DTCL_COMPILE_STATS
1.173 +
1.174 +# To compile without backward compatibility and deprecated code
1.175 +# uncomment the following
1.176 +NO_DEPRECATED_FLAGS =
1.177 +#NO_DEPRECATED_FLAGS = -DTCL_NO_DEPRECATED
1.178 +
1.179 +# Some versions of make, like SGI's, use the following variable to
1.180 +# determine which shell to use for executing commands:
1.181 +SHELL = /bin/sh
1.182 +
1.183 +# Tcl used to let the configure script choose which program to use
1.184 +# for installing, but there are just too many different versions of
1.185 +# "install" around; better to use the install-sh script that comes
1.186 +# with the distribution, which is slower but guaranteed to work.
1.187 +
1.188 +INSTALL_STRIP_PROGRAM = -s
1.189 +INSTALL_STRIP_LIBRARY = -S -S
1.190 +
1.191 +INSTALL = @srcdir@/install-sh -c
1.192 +INSTALL_PROGRAM = ${INSTALL}
1.193 +INSTALL_LIBRARY = ${INSTALL}
1.194 +INSTALL_DATA = ${INSTALL} -m 644
1.195 +
1.196 +# TCL_EXE is the name of a tclsh executable that is available *BEFORE*
1.197 +# running make for the first time. Certain build targets (make genstubs)
1.198 +# need it to be available on the PATH. This executable should *NOT* be
1.199 +# required just to do a normal build although it can be required to run
1.200 +# make dist.
1.201 +TCL_EXE = tclsh
1.202 +
1.203 +# The symbols below provide support for dynamic loading and shared
1.204 +# libraries. See configure.in for a description of what the
1.205 +# symbols mean. The values of the symbols are normally set by the
1.206 +# configure script. You shouldn't normally need to modify any of
1.207 +# these definitions by hand.
1.208 +
1.209 +STLIB_LD = @STLIB_LD@
1.210 +SHLIB_LD = @SHLIB_LD@
1.211 +SHLIB_CFLAGS = @SHLIB_CFLAGS@
1.212 +SHLIB_LD_LIBS = @SHLIB_LD_LIBS@
1.213 +TCL_SHLIB_LD_EXTRAS = @TCL_SHLIB_LD_EXTRAS@
1.214 +
1.215 +SHLIB_SUFFIX = @SHLIB_SUFFIX@
1.216 +#SHLIB_SUFFIX =
1.217 +
1.218 +DLTEST_TARGETS = dltest.marker
1.219 +
1.220 +# Additional search flags needed to find the various shared libraries
1.221 +# at run-time. The first symbol is for use when creating a binary
1.222 +# with cc, and the second is for use when running ld directly.
1.223 +CC_SEARCH_FLAGS = @CC_SEARCH_FLAGS@
1.224 +LD_SEARCH_FLAGS = @LD_SEARCH_FLAGS@
1.225 +
1.226 +# The following symbol is defined to "$(DLTEST_TARGETS)" if dynamic
1.227 +# loading is available; this causes everything in the "dltest"
1.228 +# subdirectory to be built when making "tcltest. If dynamic loading
1.229 +# isn't available, configure defines this symbol to an empty string,
1.230 +# in which case the shared libraries aren't built.
1.231 +BUILD_DLTEST = @BUILD_DLTEST@
1.232 +#BUILD_DLTEST =
1.233 +
1.234 +TCL_LIB_FILE = @TCL_LIB_FILE@
1.235 +#TCL_LIB_FILE = libtcl.a
1.236 +
1.237 +# Generic lib name used in rules that apply to tcl and tk
1.238 +LIB_FILE = ${TCL_LIB_FILE}
1.239 +
1.240 +TCL_LIB_FLAG = @TCL_LIB_FLAG@
1.241 +#TCL_LIB_FLAG = -ltcl
1.242 +
1.243 +TCL_EXP_FILE = @TCL_EXP_FILE@
1.244 +TCL_BUILD_EXP_FILE = @TCL_BUILD_EXP_FILE@
1.245 +
1.246 +# support for embedded libraries on Darwin / Mac OS X
1.247 +DYLIB_INSTALL_DIR = ${LIB_RUNTIME_DIR}
1.248 +
1.249 +#----------------------------------------------------------------
1.250 +# The information below is modified by the configure script when
1.251 +# Makefile is generated from Makefile.in. You shouldn't normally
1.252 +# modify any of this stuff by hand.
1.253 +#----------------------------------------------------------------
1.254 +
1.255 +COMPAT_OBJS = @LIBOBJS@
1.256 +
1.257 +AC_FLAGS = @DEFS@
1.258 +AR = @AR@
1.259 +RANLIB = @RANLIB@
1.260 +SRC_DIR = @srcdir@
1.261 +TOP_DIR = $(SRC_DIR)/..
1.262 +GENERIC_DIR = $(TOP_DIR)/generic
1.263 +COMPAT_DIR = $(TOP_DIR)/compat
1.264 +TOOL_DIR = $(TOP_DIR)/tools
1.265 +UNIX_DIR = $(SRC_DIR)
1.266 +MAC_OSX_DIR = $(TOP_DIR)/macosx
1.267 +# Must be absolute because of the cd dltest $(DLTEST_DIR)/configure below.
1.268 +DLTEST_DIR = @TCL_SRC_DIR@/unix/dltest
1.269 +# Must be absolute to so the corresponding tcltest's tcl_library is absolute.
1.270 +TCL_BUILDTIME_LIBRARY = @TCL_SRC_DIR@/library
1.271 +
1.272 +CC = @CC@
1.273 +#CC = purify -best-effort @CC@ -DPURIFY
1.274 +
1.275 +# Flags to be passed to installManPage to control whether the manpages
1.276 +# should be compressed and linked with softlinks
1.277 +MAN_FLAGS = @MAN_FLAGS@
1.278 +
1.279 +#----------------------------------------------------------------
1.280 +# The information below is usually usable as is. The configure
1.281 +# script won't modify it and it only exists to make working
1.282 +# around selected rare system configurations easier.
1.283 +#----------------------------------------------------------------
1.284 +
1.285 +GDB = gdb
1.286 +DDD = ddd
1.287 +
1.288 +#----------------------------------------------------------------
1.289 +# The information below should be usable as is. The configure
1.290 +# script won't modify it and you shouldn't need to modify it
1.291 +# either.
1.292 +#----------------------------------------------------------------
1.293 +
1.294 +
1.295 +CC_SWITCHES = ${CFLAGS} ${CFLAGS_WARNING} ${SHLIB_CFLAGS} \
1.296 +-I${GENERIC_DIR} -I${SRC_DIR} \
1.297 +${AC_FLAGS} ${MATH_FLAGS} ${GENERIC_FLAGS} ${PROTO_FLAGS} ${MEM_DEBUG_FLAGS} \
1.298 +${COMPILE_DEBUG_FLAGS} ${NO_DEPRECATED_FLAGS} ${ENV_FLAGS} \
1.299 +-DTCL_SHLIB_EXT=\"${SHLIB_SUFFIX}\" @EXTRA_CC_SWITCHES@
1.300 +
1.301 +STUB_CC_SWITCHES = ${CFLAGS} ${CFLAGS_WARNING} ${SHLIB_CFLAGS} \
1.302 +-I${GENERIC_DIR} -I${SRC_DIR} \
1.303 +${AC_FLAGS} ${MATH_FLAGS} ${GENERIC_FLAGS} ${PROTO_FLAGS} ${MEM_DEBUG_FLAGS} \
1.304 +${COMPILE_DEBUG_FLAGS} ${ENV_FLAGS} -DTCL_SHLIB_EXT=\"${SHLIB_SUFFIX}\" @EXTRA_CC_SWITCHES@
1.305 +
1.306 +LIBS = @DL_LIBS@ @LIBS@ $(MATH_LIBS)
1.307 +
1.308 +DEPEND_SWITCHES = ${CFLAGS} -I${GENERIC_DIR} -I${SRC_DIR} \
1.309 +${AC_FLAGS} ${MATH_FLAGS} \
1.310 +${GENERIC_FLAGS} ${PROTO_FLAGS} ${MEM_DEBUG_FLAGS} \
1.311 +-DTCL_SHLIB_EXT=\"${SHLIB_SUFFIX}\" @EXTRA_CC_SWITCHES@
1.312 +
1.313 +TCLSH_OBJS = tclAppInit.o
1.314 +
1.315 +TCLTEST_OBJS = tclTestInit.o tclTest.o tclTestObj.o tclTestProcBodyObj.o \
1.316 + tclThreadTest.o tclUnixTest.o
1.317 +
1.318 +XTTEST_OBJS = xtTestInit.o tclTest.o tclTestObj.o tclTestProcBodyObj.o \
1.319 + tclThreadTest.o tclUnixTest.o tclXtNotify.o tclXtTest.o
1.320 +
1.321 +GENERIC_OBJS = regcomp.o regexec.o regfree.o regerror.o tclAlloc.o \
1.322 + tclAsync.o tclBasic.o tclBinary.o \
1.323 + tclCkalloc.o tclClock.o tclCmdAH.o tclCmdIL.o tclCmdMZ.o \
1.324 + tclCompCmds.o tclCompExpr.o tclCompile.o tclDate.o tclEncoding.o \
1.325 + tclEnv.o tclEvent.o tclExecute.o tclFCmd.o tclFileName.o tclGet.o \
1.326 + tclHash.o tclHistory.o tclIndexObj.o tclInterp.o tclIO.o tclIOCmd.o \
1.327 + tclIOGT.o tclIOSock.o tclIOUtil.o tclLink.o tclListObj.o \
1.328 + tclLiteral.o tclLoad.o tclMain.o tclNamesp.o tclNotify.o \
1.329 + tclObj.o tclPanic.o tclParse.o tclParseExpr.o tclPipe.o \
1.330 + tclPkg.o tclPosixStr.o tclPreserve.o tclProc.o tclRegexp.o \
1.331 + tclResolve.o tclResult.o tclScan.o tclStringObj.o tclThread.o \
1.332 + tclThreadAlloc.o tclThreadJoin.o tclStubInit.o tclStubLib.o \
1.333 + tclTimer.o tclUtf.o tclUtil.o tclVar.o
1.334 +
1.335 +STUB_LIB_OBJS = tclStubLib.o ${COMPAT_OBJS}
1.336 +
1.337 +MAC_OSX_OBJS = tclMacOSXBundle.o tclMacOSXNotify.o
1.338 +
1.339 +OBJS = ${GENERIC_OBJS} ${UNIX_OBJS} ${NOTIFY_OBJS} ${COMPAT_OBJS} \
1.340 + @DL_OBJS@ @PLAT_OBJS@
1.341 +
1.342 +TCL_DECLS = \
1.343 + $(GENERIC_DIR)/tcl.decls \
1.344 + $(GENERIC_DIR)/tclInt.decls
1.345 +
1.346 +GENERIC_HDRS = \
1.347 + $(GENERIC_DIR)/tcl.h \
1.348 + $(GENERIC_DIR)/tclDecls.h \
1.349 + $(GENERIC_DIR)/tclInt.h \
1.350 + $(GENERIC_DIR)/tclIntDecls.h \
1.351 + $(GENERIC_DIR)/tclIntPlatDecls.h \
1.352 + $(GENERIC_DIR)/tclPatch.h \
1.353 + $(GENERIC_DIR)/tclPlatDecls.h \
1.354 + $(GENERIC_DIR)/tclPort.h \
1.355 + $(GENERIC_DIR)/tclRegexp.h
1.356 +
1.357 +GENERIC_SRCS = \
1.358 + $(GENERIC_DIR)/regcomp.c \
1.359 + $(GENERIC_DIR)/regexec.c \
1.360 + $(GENERIC_DIR)/regfree.c \
1.361 + $(GENERIC_DIR)/regerror.c \
1.362 + $(GENERIC_DIR)/tclAlloc.c \
1.363 + $(GENERIC_DIR)/tclAsync.c \
1.364 + $(GENERIC_DIR)/tclBasic.c \
1.365 + $(GENERIC_DIR)/tclBinary.c \
1.366 + $(GENERIC_DIR)/tclCkalloc.c \
1.367 + $(GENERIC_DIR)/tclClock.c \
1.368 + $(GENERIC_DIR)/tclCmdAH.c \
1.369 + $(GENERIC_DIR)/tclCmdIL.c \
1.370 + $(GENERIC_DIR)/tclCmdMZ.c \
1.371 + $(GENERIC_DIR)/tclCompCmds.c \
1.372 + $(GENERIC_DIR)/tclCompExpr.c \
1.373 + $(GENERIC_DIR)/tclCompile.c \
1.374 + $(GENERIC_DIR)/tclDate.c \
1.375 + $(GENERIC_DIR)/tclEncoding.c \
1.376 + $(GENERIC_DIR)/tclEnv.c \
1.377 + $(GENERIC_DIR)/tclEvent.c \
1.378 + $(GENERIC_DIR)/tclExecute.c \
1.379 + $(GENERIC_DIR)/tclFCmd.c \
1.380 + $(GENERIC_DIR)/tclFileName.c \
1.381 + $(GENERIC_DIR)/tclGet.c \
1.382 + $(GENERIC_DIR)/tclHash.c \
1.383 + $(GENERIC_DIR)/tclHistory.c \
1.384 + $(GENERIC_DIR)/tclIndexObj.c \
1.385 + $(GENERIC_DIR)/tclInterp.c \
1.386 + $(GENERIC_DIR)/tclIO.c \
1.387 + $(GENERIC_DIR)/tclIOCmd.c \
1.388 + $(GENERIC_DIR)/tclIOGT.c \
1.389 + $(GENERIC_DIR)/tclIOSock.c \
1.390 + $(GENERIC_DIR)/tclIOUtil.c \
1.391 + $(GENERIC_DIR)/tclLink.c \
1.392 + $(GENERIC_DIR)/tclListObj.c \
1.393 + $(GENERIC_DIR)/tclLiteral.c \
1.394 + $(GENERIC_DIR)/tclLoad.c \
1.395 + $(GENERIC_DIR)/tclMain.c \
1.396 + $(GENERIC_DIR)/tclNamesp.c \
1.397 + $(GENERIC_DIR)/tclNotify.c \
1.398 + $(GENERIC_DIR)/tclObj.c \
1.399 + $(GENERIC_DIR)/tclParse.c \
1.400 + $(GENERIC_DIR)/tclParseExpr.c \
1.401 + $(GENERIC_DIR)/tclPipe.c \
1.402 + $(GENERIC_DIR)/tclPkg.c \
1.403 + $(GENERIC_DIR)/tclPosixStr.c \
1.404 + $(GENERIC_DIR)/tclPreserve.c \
1.405 + $(GENERIC_DIR)/tclProc.c \
1.406 + $(GENERIC_DIR)/tclRegexp.c \
1.407 + $(GENERIC_DIR)/tclResolve.c \
1.408 + $(GENERIC_DIR)/tclResult.c \
1.409 + $(GENERIC_DIR)/tclScan.c \
1.410 + $(GENERIC_DIR)/tclStubInit.c \
1.411 + $(GENERIC_DIR)/tclStubLib.c \
1.412 + $(GENERIC_DIR)/tclStringObj.c \
1.413 + $(GENERIC_DIR)/tclTest.c \
1.414 + $(GENERIC_DIR)/tclTestObj.c \
1.415 + $(GENERIC_DIR)/tclTestProcBodyObj.c \
1.416 + $(GENERIC_DIR)/tclThread.c \
1.417 + $(GENERIC_DIR)/tclThreadAlloc.c \
1.418 + $(GENERIC_DIR)/tclThreadJoin.c \
1.419 + $(GENERIC_DIR)/tclTimer.c \
1.420 + $(GENERIC_DIR)/tclUtil.c \
1.421 + $(GENERIC_DIR)/tclVar.c
1.422 +
1.423 +STUB_SRCS = \
1.424 + $(GENERIC_DIR)/tclStubLib.c
1.425 +
1.426 +UNIX_HDRS = \
1.427 + $(UNIX_DIR)/tclUnixPort.h
1.428 +
1.429 +UNIX_SRCS = \
1.430 + $(UNIX_DIR)/tclAppInit.c \
1.431 + $(UNIX_DIR)/tclUnixChan.c \
1.432 + $(UNIX_DIR)/tclUnixEvent.c \
1.433 + $(UNIX_DIR)/tclUnixFCmd.c \
1.434 + $(UNIX_DIR)/tclUnixFile.c \
1.435 + $(UNIX_DIR)/tclUnixPipe.c \
1.436 + $(UNIX_DIR)/tclUnixSock.c \
1.437 + $(UNIX_DIR)/tclUnixTest.c \
1.438 + $(UNIX_DIR)/tclUnixThrd.c \
1.439 + $(UNIX_DIR)/tclUnixTime.c \
1.440 + $(UNIX_DIR)/tclUnixInit.c \
1.441 + $(UNIX_DIR)/tclUnixCompat.c
1.442 +
1.443 +NOTIFY_SRCS = \
1.444 + $(UNIX_DIR)/tclUnixNotfy.c
1.445 +
1.446 +DL_SRCS = \
1.447 + $(UNIX_DIR)/tclLoadAix.c \
1.448 + $(UNIX_DIR)/tclLoadAout.c \
1.449 + $(UNIX_DIR)/tclLoadDl.c \
1.450 + $(UNIX_DIR)/tclLoadDl2.c \
1.451 + $(UNIX_DIR)/tclLoadDld.c \
1.452 + $(UNIX_DIR)/tclLoadDyld.c \
1.453 + $(GENERIC_DIR)/tclLoadNone.c \
1.454 + $(UNIX_DIR)/tclLoadOSF.c \
1.455 + $(UNIX_DIR)/tclLoadShl.c
1.456 +
1.457 +MAC_OSX_SRCS = \
1.458 + $(MAC_OSX_DIR)/tclMacOSXBundle.c \
1.459 + $(MAC_OSX_DIR)/tclMacOSXNotify.c
1.460 +
1.461 +# Note: don't include DL_SRCS or MAC_OSX_SRCS in SRCS: most of those
1.462 +# files won't compile on the current machine, and they will cause
1.463 +# problems for things like "make depend".
1.464 +
1.465 +SRCS = $(GENERIC_SRCS) $(UNIX_SRCS) $(NOTIFY_SRCS) $(STUB_SRCS) @PLAT_SRCS@
1.466 +
1.467 +all: binaries libraries doc
1.468 +
1.469 +binaries: ${LIB_FILE} $(STUB_LIB_FILE) $(TCL_BUILD_EXP_FILE) tclsh
1.470 +
1.471 +libraries:
1.472 +
1.473 +doc:
1.474 +
1.475 +# The following target is configured by autoconf to generate either
1.476 +# a shared library or non-shared library for Tcl.
1.477 +${LIB_FILE}: ${OBJS} ${STUB_LIB_FILE}
1.478 + rm -f $@
1.479 + @MAKE_LIB@
1.480 +
1.481 +${STUB_LIB_FILE}: ${STUB_LIB_OBJS}
1.482 + rm -f $@
1.483 + @MAKE_STUB_LIB@
1.484 +
1.485 +# Make target which outputs the list of the .o contained in the Tcl lib
1.486 +# usefull to build a single big shared library containing Tcl and other
1.487 +# extensions. used for the Tcl Plugin. -- dl
1.488 +# The dependency on OBJS is not there because we just want the list
1.489 +# of objects here, not actually building them
1.490 +tclLibObjs:
1.491 + @echo ${OBJS}
1.492 +# This targets actually build the objects needed for the lib in the above
1.493 +# case
1.494 +objs: ${OBJS}
1.495 +
1.496 +
1.497 +tclsh: ${TCLSH_OBJS} ${TCL_LIB_FILE}
1.498 + ${CC} ${CFLAGS} ${LDFLAGS} ${TCLSH_OBJS} @TCL_BUILD_LIB_SPEC@ ${LIBS} \
1.499 + ${CC_SEARCH_FLAGS} -o tclsh
1.500 +
1.501 +# Resetting the LIB_RUNTIME_DIR below is required so that
1.502 +# the generated tcltest executable gets the build directory
1.503 +# burned into its ld search path. This keeps tcltest from
1.504 +# picking up an already installed version of the Tcl library.
1.505 +
1.506 +tcltest: ${TCLTEST_OBJS} ${TCL_LIB_FILE} ${BUILD_DLTEST}
1.507 + $(MAKE) tcltest-real LIB_RUNTIME_DIR=`pwd`
1.508 +
1.509 +tcltest-real:
1.510 + ${CC} ${CFLAGS} ${LDFLAGS} ${TCLTEST_OBJS} @TCL_BUILD_LIB_SPEC@ ${LIBS} \
1.511 + ${CC_SEARCH_FLAGS} -o tcltest
1.512 +
1.513 +# Note, in the target below TCL_LIBRARY needs to be set or else
1.514 +# "make test" won't work in the case where the compilation directory
1.515 +# isn't the same as the source directory.
1.516 +# Specifying TESTFLAGS on the command line is the standard way to pass
1.517 +# args to tcltest, ie:
1.518 +# % make test TESTFLAGS="-verbose bps -file fileName.test"
1.519 +
1.520 +test: tcltest
1.521 + @LD_LIBRARY_PATH_VAR@=`pwd`:$${@LD_LIBRARY_PATH_VAR@}; export @LD_LIBRARY_PATH_VAR@; \
1.522 + TCL_LIBRARY="${TCL_BUILDTIME_LIBRARY}"; export TCL_LIBRARY; \
1.523 + ./tcltest $(TOP_DIR)/tests/all.tcl $(TESTFLAGS) $(TCLTESTARGS)
1.524 +
1.525 +# Useful target to launch a built tcltest with the proper path,...
1.526 +runtest: tcltest
1.527 + @LD_LIBRARY_PATH_VAR@=`pwd`:$${@LD_LIBRARY_PATH_VAR@}; export @LD_LIBRARY_PATH_VAR@; \
1.528 + TCL_LIBRARY="${TCL_BUILDTIME_LIBRARY}"; export TCL_LIBRARY; \
1.529 + ./tcltest
1.530 +
1.531 +# Useful target for running the test suite with an unwritable current
1.532 +# directory...
1.533 +ro-test: tcltest
1.534 + @LD_LIBRARY_PATH_VAR@=`pwd`:$${@LD_LIBRARY_PATH_VAR@}; export @LD_LIBRARY_PATH_VAR@; \
1.535 + TCL_LIBRARY="${TCL_BUILDTIME_LIBRARY}"; export TCL_LIBRARY; \
1.536 + echo 'exec chmod -w .;package require tcltest;tcltest::temporaryDirectory /tmp;source ../tests/all.tcl;exec chmod +w .' | ./tcltest
1.537 +
1.538 +# This target can be used to run tclsh from the build directory
1.539 +# via `make shell SCRIPT=/tmp/foo.tcl`
1.540 +shell: tclsh
1.541 + @LD_LIBRARY_PATH_VAR@=`pwd`:$${@LD_LIBRARY_PATH_VAR@}; export @LD_LIBRARY_PATH_VAR@; \
1.542 + TCL_LIBRARY="${TCL_BUILDTIME_LIBRARY}"; export TCL_LIBRARY; \
1.543 + ./tclsh $(SCRIPT)
1.544 +
1.545 +# This target can be used to run tclsh inside either gdb or insight
1.546 +gdb: tclsh
1.547 + @echo "set env @LD_LIBRARY_PATH_VAR@=`pwd`:$${@LD_LIBRARY_PATH_VAR@}" > gdb.run
1.548 + @echo "set env TCL_LIBRARY=${TCL_BUILDTIME_LIBRARY}" >> gdb.run
1.549 + $(GDB) ./tclsh --command=gdb.run
1.550 + rm gdb.run
1.551 +
1.552 +# This target can be used to run tclsh inside ddd
1.553 +ddd: tclsh
1.554 + @echo "set env @LD_LIBRARY_PATH_VAR@=`pwd`:$${@LD_LIBRARY_PATH_VAR@}" > gdb.run
1.555 + @echo "set env TCL_LIBRARY=${TCL_BUILDTIME_LIBRARY}" >> gdb.run
1.556 + $(DDD) -command=gdb.run ./tclsh
1.557 + rm gdb.run
1.558 +
1.559 +VALGRINDARGS=--tool=memcheck --num-callers=8 --leak-resolution=high --leak-check=yes --show-reachable=yes -v
1.560 +
1.561 +valgrind: tclsh tcltest
1.562 + @LD_LIBRARY_PATH_VAR@=`pwd`:$${@LD_LIBRARY_PATH_VAR@}; export @LD_LIBRARY_PATH_VAR@; \
1.563 + TCL_LIBRARY="${TCL_BUILDTIME_LIBRARY}"; export TCL_LIBRARY; \
1.564 + valgrind $(VALGRINDARGS) ./tcltest $(TOP_DIR)/tests/all.tcl -singleproc 1 $(TESTFLAGS) $(TCLTESTARGS)
1.565 +
1.566 +valgrindshell: tclsh
1.567 + @LD_LIBRARY_PATH_VAR@=`pwd`:$${@LD_LIBRARY_PATH_VAR@}; export @LD_LIBRARY_PATH_VAR@; \
1.568 + TCL_LIBRARY="${TCL_BUILDTIME_LIBRARY}"; export TCL_LIBRARY; \
1.569 + valgrind $(VALGRINDARGS) ./tclsh $(SCRIPT)
1.570 +
1.571 +# The following target outputs the name of the top-level source directory
1.572 +# for Tcl (it is used by Tk's configure script, for example). The
1.573 +# .NO_PARALLEL line is needed to avoid problems under Sun's "pmake".
1.574 +# Note: this target is now obsolete (use the autoconf variable
1.575 +# TCL_SRC_DIR from tclConfig.sh instead).
1.576 +
1.577 +.NO_PARALLEL: topDirName
1.578 +topDirName:
1.579 + @cd $(TOP_DIR); pwd
1.580 +
1.581 +# The following target generates the file generic/tclDate.c
1.582 +# from the yacc grammar found in generic/tclGetDate.y. This is
1.583 +# only run by hand as yacc is not available in all environments.
1.584 +# The name of the .c file is different than the name of the .y file
1.585 +# so that make doesn't try to automatically regenerate the .c file.
1.586 +
1.587 +gendate:
1.588 + yacc -l $(GENERIC_DIR)/tclGetDate.y
1.589 + sed -e 's/yy/TclDate/g' -e '/^#include <values.h>/d' \
1.590 + -e 's?SCCSID?RCS: @(#) ?' \
1.591 + -e '/#ifdef __STDC__/,/#endif/d' -e '/TclDateerrlab:/d' \
1.592 + -e '/TclDatenewstate:/d' -e '/#pragma/d' \
1.593 + -e '/#include <inttypes.h>/d' -e 's/const /CONST /g' \
1.594 + <y.tab.c >$(GENERIC_DIR)/tclDate.c
1.595 + rm y.tab.c
1.596 +
1.597 +# The following target generates the shared libraries in dltest/ that
1.598 +# are used for testing; they are included as part of the "tcltest"
1.599 +# target (via the BUILD_DLTEST variable) if dynamic loading is supported
1.600 +# on this platform. The Makefile in the dltest subdirectory creates
1.601 +# the dltest.marker file in this directory after a successful build.
1.602 +
1.603 +dltest.marker:
1.604 + cd dltest ; $(MAKE)
1.605 +
1.606 +INSTALL_TARGETS = install-binaries install-libraries install-doc @EXTRA_INSTALL@
1.607 +
1.608 +install: $(INSTALL_TARGETS)
1.609 +
1.610 +install-strip:
1.611 + $(MAKE) $(INSTALL_TARGETS) \
1.612 + INSTALL_PROGRAM="$(INSTALL_PROGRAM) ${INSTALL_STRIP_PROGRAM}" \
1.613 + INSTALL_LIBRARY="$(INSTALL_LIBRARY) ${INSTALL_STRIP_LIBRARY}"
1.614 +
1.615 +# Note: before running ranlib below, must cd to target directory because
1.616 +# some ranlibs write to current directory, and this might not always be
1.617 +# possible (e.g. if installing as root).
1.618 +
1.619 +install-binaries: binaries
1.620 + @for i in $(LIB_INSTALL_DIR) $(BIN_INSTALL_DIR) ; \
1.621 + do \
1.622 + if [ ! -d $$i ] ; then \
1.623 + echo "Making directory $$i"; \
1.624 + mkdir -p $$i; \
1.625 + chmod 755 $$i; \
1.626 + else true; \
1.627 + fi; \
1.628 + done;
1.629 + @if test ! -x $(SRC_DIR)/install-sh; then \
1.630 + chmod +x $(SRC_DIR)/install-sh; \
1.631 + fi
1.632 + @echo "Installing $(LIB_FILE) to $(LIB_INSTALL_DIR)/"
1.633 + @@INSTALL_LIB@
1.634 + @chmod 555 $(LIB_INSTALL_DIR)/$(LIB_FILE)
1.635 + @if test "$(TCL_BUILD_EXP_FILE)" != ""; then \
1.636 + echo "Installing $(TCL_EXP_FILE) to $(LIB_INSTALL_DIR)/"; \
1.637 + $(INSTALL_DATA) $(TCL_BUILD_EXP_FILE) \
1.638 + $(LIB_INSTALL_DIR)/$(TCL_EXP_FILE); \
1.639 + fi
1.640 + @echo "Installing tclsh as $(BIN_INSTALL_DIR)/tclsh$(VERSION)"
1.641 + @$(INSTALL_PROGRAM) tclsh $(BIN_INSTALL_DIR)/tclsh$(VERSION)
1.642 + @echo "Installing tclConfig.sh to $(LIB_INSTALL_DIR)/"
1.643 + @$(INSTALL_DATA) tclConfig.sh $(LIB_INSTALL_DIR)/tclConfig.sh
1.644 + @if test "$(STUB_LIB_FILE)" != "" ; then \
1.645 + echo "Installing $(STUB_LIB_FILE) to $(LIB_INSTALL_DIR)/"; \
1.646 + @INSTALL_STUB_LIB@ ; \
1.647 + fi
1.648 + @EXTRA_INSTALL_BINARIES@
1.649 +
1.650 +install-libraries: libraries
1.651 + @for i in $(INCLUDE_INSTALL_DIR) $(SCRIPT_INSTALL_DIR); \
1.652 + do \
1.653 + if [ ! -d $$i ] ; then \
1.654 + echo "Making directory $$i"; \
1.655 + mkdir -p $$i; \
1.656 + chmod 755 $$i; \
1.657 + else true; \
1.658 + fi; \
1.659 + done;
1.660 + @for i in http2.5 http1.0 opt0.4 encoding msgcat1.3 tcltest2.2; \
1.661 + do \
1.662 + if [ ! -d $(SCRIPT_INSTALL_DIR)/$$i ] ; then \
1.663 + echo "Making directory $(SCRIPT_INSTALL_DIR)/$$i"; \
1.664 + mkdir -p $(SCRIPT_INSTALL_DIR)/$$i; \
1.665 + chmod 755 $(SCRIPT_INSTALL_DIR)/$$i; \
1.666 + else true; \
1.667 + fi; \
1.668 + done;
1.669 + @if test ! -x $(SRC_DIR)/install-sh; then \
1.670 + chmod +x $(SRC_DIR)/install-sh; \
1.671 + fi
1.672 + @echo "Installing header files";
1.673 + @for i in $(GENERIC_DIR)/tcl.h $(GENERIC_DIR)/tclDecls.h \
1.674 + $(GENERIC_DIR)/tclPlatDecls.h; \
1.675 + do \
1.676 + $(INSTALL_DATA) $$i $(INCLUDE_INSTALL_DIR); \
1.677 + done;
1.678 + @echo "Installing library files to $(SCRIPT_INSTALL_DIR)";
1.679 + @for i in $(TOP_DIR)/library/*.tcl $(TOP_DIR)/library/tclIndex $(UNIX_DIR)/tclAppInit.c $(UNIX_DIR)/ldAix; \
1.680 + do \
1.681 + $(INSTALL_DATA) $$i $(SCRIPT_INSTALL_DIR); \
1.682 + done;
1.683 + @echo "Installing library http1.0 directory";
1.684 + @for j in $(TOP_DIR)/library/http1.0/*.tcl ; \
1.685 + do \
1.686 + $(INSTALL_DATA) $$j $(SCRIPT_INSTALL_DIR)/http1.0; \
1.687 + done;
1.688 + @echo "Installing library http2.5 directory";
1.689 + @for j in $(TOP_DIR)/library/http/*.tcl ; \
1.690 + do \
1.691 + $(INSTALL_DATA) $$j $(SCRIPT_INSTALL_DIR)/http2.5; \
1.692 + done;
1.693 + @echo "Installing library opt0.4 directory";
1.694 + @for j in $(TOP_DIR)/library/opt/*.tcl ; \
1.695 + do \
1.696 + $(INSTALL_DATA) $$j $(SCRIPT_INSTALL_DIR)/opt0.4; \
1.697 + done;
1.698 + @echo "Installing library msgcat1.3 directory";
1.699 + @for j in $(TOP_DIR)/library/msgcat/*.tcl ; \
1.700 + do \
1.701 + $(INSTALL_DATA) $$j $(SCRIPT_INSTALL_DIR)/msgcat1.3; \
1.702 + done;
1.703 + @echo "Installing library tcltest2.2 directory";
1.704 + @for j in $(TOP_DIR)/library/tcltest/*.tcl ; \
1.705 + do \
1.706 + $(INSTALL_DATA) $$j $(SCRIPT_INSTALL_DIR)/tcltest2.2; \
1.707 + done;
1.708 + @echo "Installing library encoding directory";
1.709 + @for i in $(TOP_DIR)/library/encoding/*.enc ; do \
1.710 + $(INSTALL_DATA) $$i $(SCRIPT_INSTALL_DIR)/encoding; \
1.711 + done;
1.712 +
1.713 +install-doc: doc
1.714 + @if test ! -x $(UNIX_DIR)/installManPage; then \
1.715 + chmod +x $(UNIX_DIR)/installManPage; \
1.716 + fi
1.717 + @for i in $(MAN_INSTALL_DIR) $(MAN1_INSTALL_DIR) $(MAN3_INSTALL_DIR) $(MANN_INSTALL_DIR) ; \
1.718 + do \
1.719 + if [ ! -d $$i ] ; then \
1.720 + echo "Making directory $$i"; \
1.721 + mkdir -p $$i; \
1.722 + chmod 755 $$i; \
1.723 + else true; \
1.724 + fi; \
1.725 + done;
1.726 + @echo "Installing and cross-linking top-level (.1) docs";
1.727 + @for i in $(TOP_DIR)/doc/*.1; do \
1.728 + $(UNIX_DIR)/installManPage $(MAN_FLAGS) $$i $(MAN1_INSTALL_DIR); \
1.729 + done
1.730 +
1.731 + @echo "Installing and cross-linking C API (.3) docs";
1.732 + @for i in $(TOP_DIR)/doc/*.3; do \
1.733 + $(UNIX_DIR)/installManPage $(MAN_FLAGS) $$i $(MAN3_INSTALL_DIR); \
1.734 + done
1.735 +
1.736 + @echo "Installing and cross-linking command (.n) docs";
1.737 + @for i in $(TOP_DIR)/doc/*.n; do \
1.738 + $(UNIX_DIR)/installManPage $(MAN_FLAGS) $$i $(MANN_INSTALL_DIR); \
1.739 + done
1.740 +
1.741 +# Optional target to install private headers
1.742 +install-private-headers: libraries
1.743 + @for i in $(PRIVATE_INCLUDE_INSTALL_DIR); \
1.744 + do \
1.745 + if [ ! -d $$i ] ; then \
1.746 + echo "Making directory $$i"; \
1.747 + mkdir -p $$i; \
1.748 + chmod 755 $$i; \
1.749 + else true; \
1.750 + fi; \
1.751 + done;
1.752 + @if test ! -x $(SRC_DIR)/install-sh; then \
1.753 + chmod +x $(SRC_DIR)/install-sh; \
1.754 + fi
1.755 + @echo "Installing private header files";
1.756 + @for i in $(GENERIC_DIR)/tclInt.h $(GENERIC_DIR)/tclIntDecls.h \
1.757 + $(GENERIC_DIR)/tclIntPlatDecls.h \
1.758 + $(UNIX_DIR)/tclUnixPort.h $(GENERIC_DIR)/tclMath.h; \
1.759 + do \
1.760 + $(INSTALL_DATA) $$i $(PRIVATE_INCLUDE_INSTALL_DIR); \
1.761 + done;
1.762 + @sed -e 's#\.\./unix/##' $(GENERIC_DIR)/tclPort.h > tclPort.h; \
1.763 + $(INSTALL_DATA) tclPort.h $(PRIVATE_INCLUDE_INSTALL_DIR); \
1.764 + rm -f tclPort.h
1.765 +
1.766 +Makefile: $(UNIX_DIR)/Makefile.in $(DLTEST_DIR)/Makefile.in
1.767 + $(SHELL) config.status
1.768 +
1.769 +clean:
1.770 + rm -f *.a *.o libtcl* core errs *~ \#* TAGS *.E a.out \
1.771 + errors tclsh tcltest lib.exp Tcl
1.772 + cd dltest ; $(MAKE) clean
1.773 +
1.774 +distclean: clean
1.775 + rm -rf Makefile config.status config.cache config.log tclConfig.sh \
1.776 + $(PACKAGE).* prototype *.plist Tcl.framework
1.777 + cd dltest ; $(MAKE) distclean
1.778 +
1.779 +depend:
1.780 + makedepend -- $(DEPEND_SWITCHES) -- $(SRCS)
1.781 +
1.782 +# Test binaries. The rules for tclTestInit.o and xtTestInit.o are
1.783 +# complicated because they are compiled from tclAppInit.c. Can't use
1.784 +# the "-o" option because this doesn't work on some strange compilers
1.785 +# (e.g. UnixWare).
1.786 +# To enable concurrent parallel make of tclsh and tcltest resp xttest, these
1.787 +# targets have to depend on tclsh, this ensures that linking of tclsh with
1.788 +# tclAppInit.o does not execute concurrently with the renaming and recompiling
1.789 +# of that same object file in the targets below.
1.790 +
1.791 +tclTestInit.o: $(UNIX_DIR)/tclAppInit.c tclsh
1.792 + @if test -f tclAppInit.o ; then \
1.793 + rm -f tclAppInit.sav; \
1.794 + mv tclAppInit.o tclAppInit.sav; \
1.795 + fi;
1.796 + $(CC) -c $(CC_SWITCHES) \
1.797 + -DTCL_BUILDTIME_LIBRARY="\"${TCL_BUILDTIME_LIBRARY}\"" \
1.798 + -DTCL_TEST $(UNIX_DIR)/tclAppInit.c
1.799 + rm -f tclTestInit.o
1.800 + mv tclAppInit.o tclTestInit.o
1.801 + @if test -f tclAppInit.sav ; then \
1.802 + mv tclAppInit.sav tclAppInit.o; \
1.803 + fi;
1.804 +
1.805 +xtTestInit.o: $(UNIX_DIR)/tclAppInit.c tclsh
1.806 + @if test -f tclAppInit.o ; then \
1.807 + rm -f tclAppInit.sav; \
1.808 + mv tclAppInit.o tclAppInit.sav; \
1.809 + fi;
1.810 + $(CC) -c $(CC_SWITCHES) \
1.811 + -DTCL_BUILDTIME_LIBRARY="\"${TCL_BUILDTIME_LIBRARY}\"" \
1.812 + -DTCL_TEST -DTCL_XT_TEST $(UNIX_DIR)/tclAppInit.c
1.813 + rm -f xtTestInit.o
1.814 + mv tclAppInit.o xtTestInit.o
1.815 + @if test -f tclAppInit.sav ; then \
1.816 + mv tclAppInit.sav tclAppInit.o; \
1.817 + fi;
1.818 +
1.819 +# Object files used on all Unix systems:
1.820 +
1.821 +REGHDRS=$(GENERIC_DIR)/regex.h $(GENERIC_DIR)/regguts.h \
1.822 + $(GENERIC_DIR)/regcustom.h
1.823 +regcomp.o: $(REGHDRS) $(GENERIC_DIR)/regcomp.c $(GENERIC_DIR)/regc_lex.c \
1.824 + $(GENERIC_DIR)/regc_color.c $(GENERIC_DIR)/regc_locale.c \
1.825 + $(GENERIC_DIR)/regc_nfa.c $(GENERIC_DIR)/regc_cvec.c
1.826 + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/regcomp.c
1.827 +
1.828 +regexec.o: $(REGHDRS) $(GENERIC_DIR)/regexec.c $(GENERIC_DIR)/rege_dfa.c
1.829 + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/regexec.c
1.830 +
1.831 +regfree.o: $(REGHDRS) $(GENERIC_DIR)/regfree.c
1.832 + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/regfree.c
1.833 +
1.834 +regerror.o: $(REGHDRS) $(GENERIC_DIR)/regerrs.h $(GENERIC_DIR)/regerror.c
1.835 + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/regerror.c
1.836 +
1.837 +tclAppInit.o: $(UNIX_DIR)/tclAppInit.c
1.838 + $(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tclAppInit.c
1.839 +
1.840 +# On unix we want to use the normal malloc/free implementation, so we
1.841 +# specifically set the USE_TCLALLOC flag.
1.842 +
1.843 +tclAlloc.o: $(GENERIC_DIR)/tclAlloc.c
1.844 + $(CC) -c $(CC_SWITCHES) -DUSE_TCLALLOC=0 $(GENERIC_DIR)/tclAlloc.c
1.845 +
1.846 +tclAsync.o: $(GENERIC_DIR)/tclAsync.c
1.847 + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclAsync.c
1.848 +
1.849 +tclBasic.o: $(GENERIC_DIR)/tclBasic.c
1.850 + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclBasic.c
1.851 +
1.852 +tclBinary.o: $(GENERIC_DIR)/tclBinary.c
1.853 + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclBinary.c
1.854 +
1.855 +tclCkalloc.o: $(GENERIC_DIR)/tclCkalloc.c
1.856 + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclCkalloc.c
1.857 +
1.858 +tclClock.o: $(GENERIC_DIR)/tclClock.c
1.859 + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclClock.c
1.860 +
1.861 +tclCmdAH.o: $(GENERIC_DIR)/tclCmdAH.c
1.862 + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclCmdAH.c
1.863 +
1.864 +tclCmdIL.o: $(GENERIC_DIR)/tclCmdIL.c
1.865 + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclCmdIL.c
1.866 +
1.867 +tclCmdMZ.o: $(GENERIC_DIR)/tclCmdMZ.c
1.868 + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclCmdMZ.c
1.869 +
1.870 +tclDate.o: $(GENERIC_DIR)/tclDate.c
1.871 + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclDate.c
1.872 +
1.873 +tclCompCmds.o: $(GENERIC_DIR)/tclCompCmds.c
1.874 + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclCompCmds.c
1.875 +
1.876 +tclCompExpr.o: $(GENERIC_DIR)/tclCompExpr.c
1.877 + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclCompExpr.c
1.878 +
1.879 +tclCompile.o: $(GENERIC_DIR)/tclCompile.c
1.880 + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclCompile.c
1.881 +
1.882 +tclEncoding.o: $(GENERIC_DIR)/tclEncoding.c
1.883 + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclEncoding.c
1.884 +
1.885 +tclEnv.o: $(GENERIC_DIR)/tclEnv.c
1.886 + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclEnv.c
1.887 +
1.888 +tclEvent.o: $(GENERIC_DIR)/tclEvent.c
1.889 + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclEvent.c
1.890 +
1.891 +tclExecute.o: $(GENERIC_DIR)/tclExecute.c
1.892 + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclExecute.c
1.893 +
1.894 +tclFCmd.o: $(GENERIC_DIR)/tclFCmd.c
1.895 + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclFCmd.c
1.896 +
1.897 +tclFileName.o: $(GENERIC_DIR)/tclFileName.c
1.898 + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclFileName.c
1.899 +
1.900 +tclGet.o: $(GENERIC_DIR)/tclGet.c
1.901 + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclGet.c
1.902 +
1.903 +tclHash.o: $(GENERIC_DIR)/tclHash.c
1.904 + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclHash.c
1.905 +
1.906 +tclHistory.o: $(GENERIC_DIR)/tclHistory.c
1.907 + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclHistory.c
1.908 +
1.909 +tclIndexObj.o: $(GENERIC_DIR)/tclIndexObj.c
1.910 + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclIndexObj.c
1.911 +
1.912 +tclInterp.o: $(GENERIC_DIR)/tclInterp.c
1.913 + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclInterp.c
1.914 +
1.915 +tclIO.o: $(GENERIC_DIR)/tclIO.c
1.916 + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclIO.c
1.917 +
1.918 +tclIOCmd.o: $(GENERIC_DIR)/tclIOCmd.c
1.919 + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclIOCmd.c
1.920 +
1.921 +tclIOGT.o: $(GENERIC_DIR)/tclIOGT.c
1.922 + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclIOGT.c
1.923 +
1.924 +tclIOSock.o: $(GENERIC_DIR)/tclIOSock.c
1.925 + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclIOSock.c
1.926 +
1.927 +tclIOUtil.o: $(GENERIC_DIR)/tclIOUtil.c
1.928 + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclIOUtil.c
1.929 +
1.930 +tclLink.o: $(GENERIC_DIR)/tclLink.c
1.931 + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclLink.c
1.932 +
1.933 +tclListObj.o: $(GENERIC_DIR)/tclListObj.c
1.934 + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclListObj.c
1.935 +
1.936 +tclLiteral.o: $(GENERIC_DIR)/tclLiteral.c
1.937 + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclLiteral.c
1.938 +
1.939 +tclObj.o: $(GENERIC_DIR)/tclObj.c
1.940 + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclObj.c
1.941 +
1.942 +tclLoad.o: $(GENERIC_DIR)/tclLoad.c
1.943 + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclLoad.c
1.944 +
1.945 +tclLoadAix.o: $(UNIX_DIR)/tclLoadAix.c
1.946 + $(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tclLoadAix.c
1.947 +
1.948 +tclLoadAout.o: $(UNIX_DIR)/tclLoadAout.c
1.949 + $(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tclLoadAout.c
1.950 +
1.951 +tclLoadDl.o: $(UNIX_DIR)/tclLoadDl.c
1.952 + $(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tclLoadDl.c
1.953 +
1.954 +tclLoadDl2.o: $(UNIX_DIR)/tclLoadDl2.c
1.955 + $(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tclLoadDl2.c
1.956 +
1.957 +tclLoadDld.o: $(UNIX_DIR)/tclLoadDld.c
1.958 + $(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tclLoadDld.c
1.959 +
1.960 +tclLoadDyld.o: $(UNIX_DIR)/tclLoadDyld.c
1.961 + $(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tclLoadDyld.c
1.962 +
1.963 +tclLoadNone.o: $(GENERIC_DIR)/tclLoadNone.c
1.964 + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclLoadNone.c
1.965 +
1.966 +tclLoadOSF.o: $(UNIX_DIR)/tclLoadOSF.c
1.967 + $(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tclLoadOSF.c
1.968 +
1.969 +tclLoadShl.o: $(UNIX_DIR)/tclLoadShl.c
1.970 + $(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tclLoadShl.c
1.971 +
1.972 +tclMain.o: $(GENERIC_DIR)/tclMain.c
1.973 + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclMain.c
1.974 +
1.975 +tclNamesp.o: $(GENERIC_DIR)/tclNamesp.c
1.976 + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclNamesp.c
1.977 +
1.978 +tclNotify.o: $(GENERIC_DIR)/tclNotify.c
1.979 + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclNotify.c
1.980 +
1.981 +tclParse.o: $(GENERIC_DIR)/tclParse.c
1.982 + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclParse.c
1.983 +
1.984 +tclParseExpr.o: $(GENERIC_DIR)/tclParseExpr.c
1.985 + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclParseExpr.c
1.986 +
1.987 +tclPanic.o: $(GENERIC_DIR)/tclPanic.c
1.988 + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclPanic.c
1.989 +
1.990 +tclPipe.o: $(GENERIC_DIR)/tclPipe.c
1.991 + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclPipe.c
1.992 +
1.993 +tclPkg.o: $(GENERIC_DIR)/tclPkg.c
1.994 + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclPkg.c
1.995 +
1.996 +tclPosixStr.o: $(GENERIC_DIR)/tclPosixStr.c
1.997 + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclPosixStr.c
1.998 +
1.999 +tclPreserve.o: $(GENERIC_DIR)/tclPreserve.c
1.1000 + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclPreserve.c
1.1001 +
1.1002 +tclProc.o: $(GENERIC_DIR)/tclProc.c
1.1003 + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclProc.c
1.1004 +
1.1005 +tclRegexp.o: $(GENERIC_DIR)/tclRegexp.c
1.1006 + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclRegexp.c
1.1007 +
1.1008 +tclResolve.o: $(GENERIC_DIR)/tclResolve.c
1.1009 + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclResolve.c
1.1010 +
1.1011 +tclResult.o: $(GENERIC_DIR)/tclResult.c
1.1012 + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclResult.c
1.1013 +
1.1014 +tclScan.o: $(GENERIC_DIR)/tclScan.c
1.1015 + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclScan.c
1.1016 +
1.1017 +tclStringObj.o: $(GENERIC_DIR)/tclStringObj.c
1.1018 + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclStringObj.c
1.1019 +
1.1020 +tclStubInit.o: $(GENERIC_DIR)/tclStubInit.c
1.1021 + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclStubInit.c
1.1022 +
1.1023 +tclUtil.o: $(GENERIC_DIR)/tclUtil.c
1.1024 + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclUtil.c
1.1025 +
1.1026 +tclUtf.o: $(GENERIC_DIR)/tclUtf.c $(GENERIC_DIR)/tclUniData.c
1.1027 + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclUtf.c
1.1028 +
1.1029 +tclVar.o: $(GENERIC_DIR)/tclVar.c
1.1030 + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclVar.c
1.1031 +
1.1032 +tclTest.o: $(GENERIC_DIR)/tclTest.c
1.1033 + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclTest.c
1.1034 +
1.1035 +tclTestObj.o: $(GENERIC_DIR)/tclTestObj.c
1.1036 + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclTestObj.c
1.1037 +
1.1038 +tclTestProcBodyObj.o: $(GENERIC_DIR)/tclTestProcBodyObj.c
1.1039 + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclTestProcBodyObj.c
1.1040 +
1.1041 +tclTimer.o: $(GENERIC_DIR)/tclTimer.c
1.1042 + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclTimer.c
1.1043 +
1.1044 +tclThread.o: $(GENERIC_DIR)/tclThread.c
1.1045 + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclThread.c
1.1046 +
1.1047 +tclThreadAlloc.o: $(GENERIC_DIR)/tclThreadAlloc.c
1.1048 + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclThreadAlloc.c
1.1049 +
1.1050 +tclThreadJoin.o: $(GENERIC_DIR)/tclThreadJoin.c
1.1051 + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclThreadJoin.c
1.1052 +
1.1053 +tclThreadTest.o: $(GENERIC_DIR)/tclThreadTest.c
1.1054 + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclThreadTest.c
1.1055 +
1.1056 +tclUnixChan.o: $(UNIX_DIR)/tclUnixChan.c
1.1057 + $(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tclUnixChan.c
1.1058 +
1.1059 +tclUnixEvent.o: $(UNIX_DIR)/tclUnixEvent.c
1.1060 + $(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tclUnixEvent.c
1.1061 +
1.1062 +tclUnixFCmd.o: $(UNIX_DIR)/tclUnixFCmd.c
1.1063 + $(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tclUnixFCmd.c
1.1064 +
1.1065 +tclUnixFile.o: $(UNIX_DIR)/tclUnixFile.c
1.1066 + $(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tclUnixFile.c
1.1067 +
1.1068 +tclUnixNotfy.o: $(UNIX_DIR)/tclUnixNotfy.c
1.1069 + $(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tclUnixNotfy.c
1.1070 +
1.1071 +tclUnixPipe.o: $(UNIX_DIR)/tclUnixPipe.c
1.1072 + $(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tclUnixPipe.c
1.1073 +
1.1074 +tclUnixSock.o: $(UNIX_DIR)/tclUnixSock.c
1.1075 + $(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tclUnixSock.c
1.1076 +
1.1077 +tclUnixTest.o: $(UNIX_DIR)/tclUnixTest.c
1.1078 + $(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tclUnixTest.c
1.1079 +
1.1080 +tclUnixThrd.o: $(UNIX_DIR)/tclUnixThrd.c
1.1081 + $(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tclUnixThrd.c
1.1082 +
1.1083 +tclUnixTime.o: $(UNIX_DIR)/tclUnixTime.c
1.1084 + $(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tclUnixTime.c
1.1085 +
1.1086 +tclUnixInit.o: $(UNIX_DIR)/tclUnixInit.c $(GENERIC_DIR)/tclInitScript.h tclConfig.sh
1.1087 + $(CC) -c $(CC_SWITCHES) -DTCL_LIBRARY=\"${TCL_LIBRARY}\" \
1.1088 + -DTCL_PACKAGE_PATH="\"${TCL_PACKAGE_PATH}\"" \
1.1089 + $(UNIX_DIR)/tclUnixInit.c
1.1090 +
1.1091 +tclUnixCompat.o: $(UNIX_DIR)/tclUnixCompat.c
1.1092 + $(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tclUnixCompat.c
1.1093 +
1.1094 +# The following are Mac OS X only sources:
1.1095 +tclMacOSXBundle.o: $(MAC_OSX_DIR)/tclMacOSXBundle.c
1.1096 + $(CC) -c $(CC_SWITCHES) $(MAC_OSX_DIR)/tclMacOSXBundle.c
1.1097 +
1.1098 +tclMacOSXNotify.o: $(MAC_OSX_DIR)/tclMacOSXNotify.c
1.1099 + $(CC) -c $(CC_SWITCHES) $(MAC_OSX_DIR)/tclMacOSXNotify.c
1.1100 +
1.1101 +# The following targets are not completely general. They are provide
1.1102 +# purely for documentation purposes so people who are interested in
1.1103 +# the Xt based notifier can modify them to suit their own installation.
1.1104 +
1.1105 +xttest: ${XTTEST_OBJS} ${GENERIC_OBJS} ${UNIX_OBJS} ${COMPAT_OBJS} \
1.1106 + @DL_OBJS@ ${BUILD_DLTEST}
1.1107 + ${CC} ${XTTEST_OBJS} ${GENERIC_OBJS} ${UNIX_OBJS} ${COMPAT_OBJS} \
1.1108 + @DL_OBJS@ @TCL_BUILD_LIB_SPEC@ ${LIBS} \
1.1109 + ${CC_SEARCH_FLAGS} -L/usr/openwin/lib -lXt -o xttest
1.1110 +
1.1111 +tclXtNotify.o: $(UNIX_DIR)/tclXtNotify.c
1.1112 + $(CC) -c $(CC_SWITCHES) -I/usr/openwin/include \
1.1113 + $(UNIX_DIR)/tclXtNotify.c
1.1114 +
1.1115 +tclXtTest.o: $(UNIX_DIR)/tclXtTest.c
1.1116 + $(CC) -c $(CC_SWITCHES) -I/usr/openwin/include \
1.1117 + $(UNIX_DIR)/tclXtTest.c
1.1118 +
1.1119 +# compat binaries, these must be compiled for use in a shared library
1.1120 +# even though they may be placed in a static executable or library. Since
1.1121 +# they are included in both the tcl library and the stub library, they
1.1122 +# need to be relocatable.
1.1123 +
1.1124 +fixstrtod.o: $(COMPAT_DIR)/fixstrtod.c
1.1125 + $(CC) -c $(STUB_CC_SWITCHES) $(COMPAT_DIR)/fixstrtod.c
1.1126 +
1.1127 +opendir.o: $(COMPAT_DIR)/opendir.c
1.1128 + $(CC) -c $(STUB_CC_SWITCHES) $(COMPAT_DIR)/opendir.c
1.1129 +
1.1130 +memcmp.o: $(COMPAT_DIR)/memcmp.c
1.1131 + $(CC) -c $(STUB_CC_SWITCHES) $(COMPAT_DIR)/memcmp.c
1.1132 +
1.1133 +strncasecmp.o: $(COMPAT_DIR)/strncasecmp.c
1.1134 + $(CC) -c $(STUB_CC_SWITCHES) $(COMPAT_DIR)/strncasecmp.c
1.1135 +
1.1136 +strstr.o: $(COMPAT_DIR)/strstr.c
1.1137 + $(CC) -c $(STUB_CC_SWITCHES) $(COMPAT_DIR)/strstr.c
1.1138 +
1.1139 +strtod.o: $(COMPAT_DIR)/strtod.c
1.1140 + $(CC) -c $(STUB_CC_SWITCHES) $(COMPAT_DIR)/strtod.c
1.1141 +
1.1142 +strtol.o: $(COMPAT_DIR)/strtol.c
1.1143 + $(CC) -c $(STUB_CC_SWITCHES) $(COMPAT_DIR)/strtol.c
1.1144 +
1.1145 +strtoll.o: $(COMPAT_DIR)/strtoll.c
1.1146 + $(CC) -c $(STUB_CC_SWITCHES) $(COMPAT_DIR)/strtoll.c
1.1147 +
1.1148 +strtoul.o: $(COMPAT_DIR)/strtoul.c
1.1149 + $(CC) -c $(STUB_CC_SWITCHES) $(COMPAT_DIR)/strtoul.c
1.1150 +
1.1151 +strtoull.o: $(COMPAT_DIR)/strtoull.c
1.1152 + $(CC) -c $(STUB_CC_SWITCHES) $(COMPAT_DIR)/strtoull.c
1.1153 +
1.1154 +tmpnam.o: $(COMPAT_DIR)/tmpnam.c
1.1155 + $(CC) -c $(STUB_CC_SWITCHES) $(COMPAT_DIR)/tmpnam.c
1.1156 +
1.1157 +waitpid.o: $(COMPAT_DIR)/waitpid.c
1.1158 + $(CC) -c $(STUB_CC_SWITCHES) $(COMPAT_DIR)/waitpid.c
1.1159 +
1.1160 +# Stub library binaries, these must be compiled for use in a shared library
1.1161 +# even though they will be placed in a static archive
1.1162 +
1.1163 +tclStubLib.o: $(GENERIC_DIR)/tclStubLib.c
1.1164 + $(CC) -c $(STUB_CC_SWITCHES) $(GENERIC_DIR)/tclStubLib.c
1.1165 +
1.1166 +.c.o:
1.1167 + $(CC) -c $(CC_SWITCHES) $<
1.1168 +
1.1169 +#
1.1170 +# Target to regenerate header files and stub files from the *.decls tables.
1.1171 +#
1.1172 +
1.1173 +$(GENERIC_DIR)/tclStubInit.c: $(GENERIC_DIR)/tcl.decls \
1.1174 + $(GENERIC_DIR)/tclInt.decls
1.1175 + @echo "Warning: tclStubInit.c may be out of date."
1.1176 + @echo "Developers may want to run \"make genstubs\" to regenerate."
1.1177 + @echo "This warning can be safely ignored, do not report as a bug!"
1.1178 +
1.1179 +genstubs:
1.1180 + $(TCL_EXE) $(TOOL_DIR)/genStubs.tcl $(GENERIC_DIR) \
1.1181 + $(GENERIC_DIR)/tcl.decls $(GENERIC_DIR)/tclInt.decls
1.1182 +
1.1183 +#
1.1184 +# Target to check that all exported functions have an entry in the stubs
1.1185 +# tables.
1.1186 +#
1.1187 +
1.1188 +checkstubs: $(TCL_LIB_FILE)
1.1189 + -@for i in `nm -p $(TCL_LIB_FILE) \
1.1190 + | awk '$$2 ~ /^[TDBCS]$$/ { sub("^_", "", $$3); print $$3 }' \
1.1191 + | sort -n`; do \
1.1192 + match=0; \
1.1193 + for j in $(TCL_DECLS); do \
1.1194 + if [ `grep -c "$$i *(" $$j` -gt 0 ]; then \
1.1195 + match=1; \
1.1196 + fi; \
1.1197 + done; \
1.1198 + if [ $$match -eq 0 ]; then echo $$i; fi \
1.1199 + done
1.1200 +
1.1201 +#
1.1202 +# Target to check that all public APIs which are not command
1.1203 +# implementations have an entry in section three of the distributed
1.1204 +# manpages.
1.1205 +#
1.1206 +
1.1207 +checkdoc: $(TCL_LIB_FILE)
1.1208 + -@for i in `nm -p $(TCL_LIB_FILE) | awk '$$3 ~ /Tcl_/ { print $$3 }' \
1.1209 + | grep -v 'Cmd$$' | sort -n`; do \
1.1210 + match=0; \
1.1211 + for j in $(TOP_DIR)/doc/*.3; do \
1.1212 + if [ `grep '\-' $$j | grep -c $$i` -gt 0 ]; then \
1.1213 + match=1; \
1.1214 + fi; \
1.1215 + done; \
1.1216 + if [ $$match -eq 0 ]; then echo $$i; fi \
1.1217 + done
1.1218 +
1.1219 +#
1.1220 +# Target to check for proper usage of UCHAR macro.
1.1221 +#
1.1222 +
1.1223 +checkuchar:
1.1224 + -egrep isalnum\|isalpha\|iscntrl\|isdigit\|islower\|isprint\|ispunct\|isspace\|isupper\|isxdigit\|toupper\|tolower $(SRCS) | grep -v UCHAR
1.1225 +
1.1226 +#
1.1227 +# Target to make sure that only symbols with "Tcl" prefixes are
1.1228 +# exported.
1.1229 +#
1.1230 +
1.1231 +checkexports: $(TCL_LIB_FILE)
1.1232 + -@nm -p $(TCL_LIB_FILE) \
1.1233 + | awk '$$2 ~ /^[TDBCS]$$/ { sub("^_", "", $$3); print $$3 }' \
1.1234 + | sort -n | grep -E -v '^[Tt]cl' || true
1.1235 +
1.1236 +#
1.1237 +# Target to create a Tcl RPM for Linux. Requires that you be on a Linux
1.1238 +# system.
1.1239 +#
1.1240 +
1.1241 +rpm: all /bin/rpm
1.1242 + rm -f THIS.TCL.SPEC
1.1243 + echo "%define _builddir `pwd`" > THIS.TCL.SPEC
1.1244 + echo "%define _rpmdir `pwd`/RPMS" >> THIS.TCL.SPEC
1.1245 + cat tcl.spec >> THIS.TCL.SPEC
1.1246 + mkdir -p RPMS/i386
1.1247 + rpm -bb THIS.TCL.SPEC
1.1248 + mv RPMS/i386/*.rpm .
1.1249 + rm -rf RPMS THIS.TCL.SPEC
1.1250 +
1.1251 +#
1.1252 +# Target to create a proper Tcl distribution from information in the
1.1253 +# master source directory. DISTDIR must be defined to indicate where
1.1254 +# to put the distribution. DISTDIR must be an absolute path name.
1.1255 +#
1.1256 +
1.1257 +DISTROOT = /tmp/dist
1.1258 +DISTNAME = tcl${VERSION}${PATCH_LEVEL}
1.1259 +ZIPNAME = tcl${MAJOR_VERSION}${MINOR_VERSION}${PATCH_LEVEL}-src.zip
1.1260 +DISTDIR = $(DISTROOT)/$(DISTNAME)
1.1261 +
1.1262 +dist:
1.1263 + rm -rf $(DISTDIR)
1.1264 + mkdir -p $(DISTDIR)/unix
1.1265 + cp -p $(UNIX_DIR)/*.c $(UNIX_DIR)/*.h $(DISTDIR)/unix
1.1266 + cp $(UNIX_DIR)/Makefile.in $(DISTDIR)/unix
1.1267 + chmod 664 $(DISTDIR)/unix/Makefile.in
1.1268 + cp $(UNIX_DIR)/configure $(UNIX_DIR)/configure.in \
1.1269 + $(UNIX_DIR)/tcl.m4 $(UNIX_DIR)/aclocal.m4 \
1.1270 + $(UNIX_DIR)/tclConfig.sh.in $(UNIX_DIR)/install-sh \
1.1271 + $(UNIX_DIR)/README $(UNIX_DIR)/ldAix $(UNIX_DIR)/tcl.spec \
1.1272 + $(UNIX_DIR)/installManPage \
1.1273 + $(DISTDIR)/unix
1.1274 + chmod 775 $(DISTDIR)/unix/configure $(DISTDIR)/unix/configure.in
1.1275 + chmod 775 $(DISTDIR)/unix/ldAix
1.1276 + chmod +x $(DISTDIR)/unix/install-sh
1.1277 + mkdir $(DISTDIR)/generic
1.1278 + cp -p $(GENERIC_DIR)/*.c $(GENERIC_DIR)/*.h $(DISTDIR)/generic
1.1279 + cp -p $(GENERIC_DIR)/*.decls $(DISTDIR)/generic
1.1280 + cp -p $(GENERIC_DIR)/README $(DISTDIR)/generic
1.1281 + cp -p $(GENERIC_DIR)/tclGetDate.y $(DISTDIR)/generic
1.1282 + cp -p $(TOP_DIR)/changes $(TOP_DIR)/ChangeLog $(TOP_DIR)/README* \
1.1283 + $(TOP_DIR)/ChangeLog.[12]??? $(TOP_DIR)/license.terms \
1.1284 + $(DISTDIR)
1.1285 + mkdir $(DISTDIR)/library
1.1286 + cp -p $(TOP_DIR)/license.terms $(TOP_DIR)/library/*.tcl \
1.1287 + $(TOP_DIR)/library/tclIndex $(DISTDIR)/library
1.1288 + for i in http1.0 http opt msgcat reg dde tcltest; \
1.1289 + do \
1.1290 + mkdir $(DISTDIR)/library/$$i ;\
1.1291 + cp -p $(TOP_DIR)/library/$$i/*.tcl $(DISTDIR)/library/$$i; \
1.1292 + done;
1.1293 + mkdir $(DISTDIR)/library/encoding
1.1294 + cp -p $(TOP_DIR)/library/encoding/*.enc $(DISTDIR)/library/encoding
1.1295 + mkdir $(DISTDIR)/doc
1.1296 + cp -p $(TOP_DIR)/license.terms $(TOP_DIR)/doc/*.[13n] \
1.1297 + $(TOP_DIR)/doc/man.macros $(DISTDIR)/doc
1.1298 + mkdir $(DISTDIR)/compat
1.1299 + cp -p $(TOP_DIR)/license.terms $(COMPAT_DIR)/*.c \
1.1300 + $(COMPAT_DIR)/*.h $(COMPAT_DIR)/README \
1.1301 + $(DISTDIR)/compat
1.1302 + mkdir $(DISTDIR)/tests
1.1303 + cp -p $(TOP_DIR)/license.terms $(DISTDIR)/tests
1.1304 + cp -p $(TOP_DIR)/tests/*.test $(TOP_DIR)/tests/README \
1.1305 + $(TOP_DIR)/tests/httpd $(TOP_DIR)/tests/*.tcl \
1.1306 + $(DISTDIR)/tests
1.1307 + mkdir $(DISTDIR)/win
1.1308 + cp $(TOP_DIR)/win/Makefile.in $(DISTDIR)/win
1.1309 + cp $(TOP_DIR)/win/configure.in $(TOP_DIR)/win/configure \
1.1310 + $(TOP_DIR)/win/tclConfig.sh.in \
1.1311 + $(TOP_DIR)/win/tcl.m4 $(TOP_DIR)/win/aclocal.m4 \
1.1312 + $(DISTDIR)/win
1.1313 + cp -p $(TOP_DIR)/win/*.c $(TOP_DIR)/win/*.h \
1.1314 + $(TOP_DIR)/win/*.ico $(TOP_DIR)/win/*.rc \
1.1315 + $(DISTDIR)/win
1.1316 + cp -p $(TOP_DIR)/win/*.bat $(DISTDIR)/win
1.1317 + $(TCL_EXE) $(TOOL_DIR)/eolFix.tcl -crlf $(DISTDIR)/win/*.bat
1.1318 + cp -p $(TOP_DIR)/win/makefile.* $(DISTDIR)/win
1.1319 + $(TCL_EXE) $(TOOL_DIR)/eolFix.tcl -crlf $(DISTDIR)/win/makefile.*
1.1320 + cp -p $(TOP_DIR)/win/rules.vc $(DISTDIR)/win
1.1321 + $(TCL_EXE) $(TOOL_DIR)/eolFix.tcl -crlf $(DISTDIR)/win/rules.vc
1.1322 + cp -p $(TOP_DIR)/win/coffbase.txt $(DISTDIR)/win
1.1323 + $(TCL_EXE) $(TOOL_DIR)/eolFix.tcl -crlf $(DISTDIR)/win/coffbase.txt
1.1324 + cp -p $(TOP_DIR)/win/tcl.hpj.in $(DISTDIR)/win
1.1325 + $(TCL_EXE) $(TOOL_DIR)/eolFix.tcl -crlf $(DISTDIR)/win/tcl.hpj.in
1.1326 + cp -p $(TOP_DIR)/win/tcl.ds* $(DISTDIR)/win
1.1327 + $(TCL_EXE) $(TOOL_DIR)/eolFix.tcl -crlf $(DISTDIR)/win/tcl.ds*
1.1328 + cp -p $(TOP_DIR)/win/README $(DISTDIR)/win
1.1329 + cp -p $(TOP_DIR)/license.terms $(DISTDIR)/win
1.1330 + mkdir $(DISTDIR)/mac
1.1331 + cp -p $(TOP_DIR)/mac/tcl*.sea.hqx \
1.1332 + $(TOP_DIR)/mac/*.c $(TOP_DIR)/mac/*.h $(TOP_DIR)/mac/*.r \
1.1333 + $(DISTDIR)/mac
1.1334 + cp -p $(TOP_DIR)/mac/porting.notes $(TOP_DIR)/mac/README $(DISTDIR)/mac
1.1335 + cp -p $(TOP_DIR)/mac/*.pch $(DISTDIR)/mac
1.1336 + cp -p $(TOP_DIR)/mac/*.doc $(TOP_DIR)/mac/*.html $(DISTDIR)/mac
1.1337 + cp -p $(TOP_DIR)/license.terms $(DISTDIR)/mac
1.1338 + mkdir $(DISTDIR)/macosx
1.1339 + cp -p $(MAC_OSX_DIR)/Makefile $(MAC_OSX_DIR)/README \
1.1340 + $(MAC_OSX_DIR)/*.c $(MAC_OSX_DIR)/*.in \
1.1341 + $(DISTDIR)/macosx
1.1342 + cp -p $(TOP_DIR)/license.terms $(DISTDIR)/macosx
1.1343 + mkdir $(DISTDIR)/macosx/Tcl.pbproj
1.1344 + cp -p $(MAC_OSX_DIR)/Tcl.pbproj/*.pbx* $(DISTDIR)/macosx/Tcl.pbproj
1.1345 + mkdir $(DISTDIR)/unix/dltest
1.1346 + cp -p $(UNIX_DIR)/dltest/*.c $(UNIX_DIR)/dltest/Makefile.in \
1.1347 + $(UNIX_DIR)/dltest/README \
1.1348 + $(DISTDIR)/unix/dltest
1.1349 + mkdir $(DISTDIR)/tools
1.1350 + cp -p $(TOOL_DIR)/Makefile.in $(TOOL_DIR)/README \
1.1351 + $(TOOL_DIR)/configure $(TOOL_DIR)/configure.in \
1.1352 + $(TOOL_DIR)/*.tcl $(TOOL_DIR)/man2tcl.c \
1.1353 + $(TOOL_DIR)/tcl.wse.in $(TOOL_DIR)/*.bmp \
1.1354 + $(TOOL_DIR)/tcl.hpj.in \
1.1355 + $(DISTDIR)/tools
1.1356 + $(TCL_EXE) $(TOOL_DIR)/eolFix.tcl -crlf $(DISTDIR)/tools/tcl.hpj.in \
1.1357 + $(DISTDIR)/tools/tcl.wse.in
1.1358 +
1.1359 +#
1.1360 +# The following target can only be used for non-patch releases. Use
1.1361 +# the "allpatch" target below for patch releases.
1.1362 +#
1.1363 +
1.1364 +alldist: dist
1.1365 + rm -f $(DISTROOT)/$(DISTNAME)-src.tar.gz $(DISTROOT)/$(ZIPNAME)
1.1366 + cd $(DISTROOT); tar cf $(DISTNAME)-src.tar $(DISTNAME); \
1.1367 + gzip -9 $(DISTNAME)-src.tar; zip -qr8 $(ZIPNAME) $(DISTNAME)
1.1368 +
1.1369 +#
1.1370 +# The target below is similar to "alldist" except it works for patch
1.1371 +# releases. It is needed because patch releases are peculiar: the
1.1372 +# patch designation appears in the name of the compressed file
1.1373 +# (e.g. tcl8.0p1.tar.gz) but the extracted source directory doesn't
1.1374 +# include the patch designation (e.g. tcl8.0).
1.1375 +#
1.1376 +
1.1377 +allpatch: dist
1.1378 + rm -f $(DISTROOT)/$(DISTNAME)-src.tar.gz $(DISTROOT)/$(ZIPNAME)
1.1379 + mv $(DISTROOT)/tcl${VERSION} $(DISTROOT)/old
1.1380 + mv $(DISTROOT)/$(DISTNAME) $(DISTROOT)/tcl${VERSION}
1.1381 + cd $(DISTROOT); tar cf $(DISTNAME)-src.tar tcl${VERSION}; \
1.1382 + gzip -9 $(DISTNAME)-src.tar; zip -r8 $(ZIPNAME) tcl${VERSION}
1.1383 + mv $(DISTROOT)/tcl${VERSION} $(DISTROOT)/$(DISTNAME)
1.1384 + mv $(DISTROOT)/old $(DISTROOT)/tcl${VERSION}
1.1385 +
1.1386 +#
1.1387 +# This target creates the HTML folder for Tcl & Tk and places it
1.1388 +# in DISTDIR/html. It uses the tcltk-man2html.tcl tool from
1.1389 +# the Tcl group's tool workspace. It depends on the Tcl & Tk being
1.1390 +# in directories called tcl8.* & tk8.* up two directories from the
1.1391 +# TOOL_DIR.
1.1392 +#
1.1393 +
1.1394 +html: tclsh
1.1395 + $(BUILD_HTML)
1.1396 + @EXTRA_BUILD_HTML@
1.1397 +html-tcl: tclsh
1.1398 + $(BUILD_HTML) --tcl
1.1399 + @EXTRA_BUILD_HTML@
1.1400 +html-tk: tclsh
1.1401 + $(BUILD_HTML) --tk
1.1402 + @EXTRA_BUILD_HTML@
1.1403 +
1.1404 +BUILD_HTML = \
1.1405 + @@LD_LIBRARY_PATH_VAR@=`pwd`:$${@LD_LIBRARY_PATH_VAR@}; export @LD_LIBRARY_PATH_VAR@; \
1.1406 + TCL_LIBRARY="${TCL_BUILDTIME_LIBRARY}"; export TCL_LIBRARY; \
1.1407 + ./tclsh $(TOOL_DIR)/tcltk-man2html.tcl --htmldir=$(HTML_INSTALL_DIR) \
1.1408 + --srcdir=$(TOP_DIR)/.. $(BUILD_HTML_FLAGS)
1.1409 +
1.1410 +#
1.1411 +# Target to create a Macintosh version of the distribution. This will
1.1412 +# do a normal distribution and then massage the output to prepare it
1.1413 +# for moving to the Mac platform. This requires a few scripts and
1.1414 +# programs found only in the Tcl group's tool workspace.
1.1415 +#
1.1416 +
1.1417 +macdist: dist machtml
1.1418 +
1.1419 +machtml:
1.1420 + rm -f $(DISTDIR)/mac/tclMacProjects.sea.hqx
1.1421 + rm -rf $(DISTDIR)/doc
1.1422 + $(TCL_EXE) $(TOOL_DIR)/cvtEOL.tcl $(DISTDIR)
1.1423 +
1.1424 +#
1.1425 +# Targets to build Solaris package of the distribution for the current
1.1426 +# architecture. To build stream packages for both sun4 and i86pc
1.1427 +# architectures:
1.1428 +#
1.1429 +# On the sun4 machine, execute the following:
1.1430 +# make distclean; ./configure
1.1431 +# make DISTDIR=<distdir> package
1.1432 +#
1.1433 +# Once the build is complete, execute the following on the i86pc
1.1434 +# machine:
1.1435 +# make DISTDIR=<distdir> package-quick
1.1436 +#
1.1437 +# <distdir> is the absolute path to a directory where the build should
1.1438 +# take place. These steps will generate the $(PACKAGE).sun4 and
1.1439 +# $(PACKAGE).i86pc stream packages. It is important that the packages be
1.1440 +# built in this fashion in order to ensure that the architecture
1.1441 +# independent files are exactly the same, including timestamps, in
1.1442 +# both packages.
1.1443 +#
1.1444 +
1.1445 +PACKAGE=SCRPtcl
1.1446 +
1.1447 +package: dist package-config package-common package-binaries package-generate
1.1448 +package-quick: package-config package-binaries package-generate
1.1449 +
1.1450 +#
1.1451 +# Configure for the current architecture in the dist directory.
1.1452 +#
1.1453 +package-config:
1.1454 + mkdir -p $(DISTDIR)/unix/`arch`
1.1455 + cd $(DISTDIR)/unix/`arch`; \
1.1456 + ../configure --prefix=/opt/$(PACKAGE)/$(VERSION) \
1.1457 + --exec_prefix=/opt/$(PACKAGE)/$(VERSION)/`arch` \
1.1458 + --enable-shared
1.1459 + mkdir -p $(DISTDIR)/$(PACKAGE)/$(VERSION)
1.1460 + mkdir -p $(DISTDIR)/$(PACKAGE)/$(VERSION)/`arch`
1.1461 +
1.1462 +#
1.1463 +# Build and install the architecture independent files in the dist directory.
1.1464 +#
1.1465 +
1.1466 +package-common:
1.1467 + cd $(DISTDIR)/unix/`arch`;\
1.1468 + $(MAKE); \
1.1469 + $(MAKE) prefix=$(DISTDIR)/$(PACKAGE)/$(VERSION) \
1.1470 + exec_prefix=$(DISTDIR)/$(PACKAGE)/$(VERSION)/`arch` \
1.1471 + install-libraries install-man
1.1472 + mkdir -p $(DISTDIR)/$(PACKAGE)/$(VERSION)/bin
1.1473 + sed -e "s/TCLVERSION/$(VERSION)/g" < $(UNIX_DIR)/tclsh.sh \
1.1474 + > $(DISTDIR)/$(PACKAGE)/$(VERSION)/bin/tclsh$(VERSION)
1.1475 + chmod 755 $(DISTDIR)/$(PACKAGE)/$(VERSION)/bin/tclsh$(VERSION)
1.1476 +
1.1477 +#
1.1478 +# Build and install the architecture specific files in the dist directory.
1.1479 +#
1.1480 +
1.1481 +package-binaries:
1.1482 + cd $(DISTDIR)/unix/`arch`; \
1.1483 + $(MAKE); \
1.1484 + $(MAKE) install-binaries prefix=$(DISTDIR)/$(PACKAGE)/$(VERSION) \
1.1485 + exec_prefix=$(DISTDIR)/$(PACKAGE)/$(VERSION)/`arch`
1.1486 +
1.1487 +#
1.1488 +# Generate a package from the installed files in the dist directory for the
1.1489 +# current architecture.
1.1490 +#
1.1491 +
1.1492 +package-generate:
1.1493 + pkgproto $(DISTDIR)/$(PACKAGE)/$(VERSION)/bin=bin \
1.1494 + $(DISTDIR)/$(PACKAGE)/$(VERSION)/include=include \
1.1495 + $(DISTDIR)/$(PACKAGE)/$(VERSION)/lib=lib \
1.1496 + $(DISTDIR)/$(PACKAGE)/$(VERSION)/man=man \
1.1497 + $(DISTDIR)/$(PACKAGE)/$(VERSION)/`arch`=`arch` \
1.1498 + | $(TCL_EXE) $(UNIX_DIR)/mkProto.tcl \
1.1499 + $(VERSION) $(UNIX_DIR) > prototype
1.1500 + pkgmk -o -d . -f prototype -a `arch`
1.1501 + pkgtrans -s . $(PACKAGE).`arch` $(PACKAGE)
1.1502 + rm -rf $(PACKAGE)
1.1503 +
1.1504 +# DO NOT DELETE THIS LINE -- make depend depends on it.