os/persistentdata/persistentstorage/sqlite3api/TEST/TCL/tcldistribution/win/makefile.bc
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/persistentdata/persistentstorage/sqlite3api/TEST/TCL/tcldistribution/win/makefile.bc	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,566 @@
     1.4 +#
     1.5 +# Makefile for Borland C++ 5.5 (or C++ Builder 5), adapted from the makefile
     1.6 +#   for Visual C++ that came with tcl 8.3.3
     1.7 +#
     1.8 +# See the file "license.terms" for information on usage and redistribution
     1.9 +# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
    1.10 +#
    1.11 +# Copyright (c) 1995-1996 Sun Microsystems, Inc.
    1.12 +# Copyright (c) 1998-1999 by Scriptics Corporation.
    1.13 +#
    1.14 +# Have a look at the complete description on how to build and test Tcl with
    1.15 +# the current Borland compilers at www.ratiosoft.com/tcl/borland.
    1.16 +#
    1.17 +# Usage:
    1.18 +#   - Adapt the paths below to match your compiler's location
    1.19 +#   - Make sure the compiler's bin directory is on your path
    1.20 +#   - Open a console
    1.21 +#   - To make a debug version enter
    1.22 +#       make -fmakefile.bc -DNODEBUG=0 xxx
    1.23 +#     where 'xxx' is the target you want (e.g. 'all', 'test', ...)
    1.24 +#     Please note: I omitted the 'd' suffix for debug versions because Tcl
    1.25 +#     will always call tclpip83.dll and not tclpip83d.dll, causing an error.
    1.26 +#                                                   ^
    1.27 +#     Besides, the debug version goes into a separate directory, so there
    1.28 +#     should be no problem having DLLs and EXEs with the same name.
    1.29 +#     If you prefer your debug version having the 'd' suffix just uncomment
    1.30 +#     the line
    1.31 +#         #DBGX        = d
    1.32 +#
    1.33 +#   - To make a 'normal' version enter
    1.34 +#       make -fmakefile.bc xxx
    1.35 +#     where 'xxx' is the target you want (e.g. 'all', 'test', ...)
    1.36 +#
    1.37 +# DISCLAIMER:
    1.38 +# This makefile has an experimental status - that is those targets which
    1.39 +# have been modified do in fact compile and link with Borland's C++
    1.40 +# Builder 5 and with the free Borland compiler (Borland C++ 5.5).
    1.41 +# However the author assumes no responsiblity for any effect which the use of
    1.42 +# this makefile or of the resulting programs might have on your system.
    1.43 +#
    1.44 +# Not yet modified:
    1.45 +#   - The 'plug-in-DLL' and the associated shell.
    1.46 +#   - The programs to create the windows help files.
    1.47 +#
    1.48 +# Suggestions and / or improvements are always welcome.
    1.49 +#
    1.50 +# May 2001, H. Giese (hgiese@ratiosoft.com)
    1.51 +#
    1.52 +
    1.53 +# Does not depend on the presence of any environment variables in
    1.54 +# order to compile tcl; all needed information is derived from
    1.55 +# location of the compiler directories.
    1.56 +
    1.57 +#
    1.58 +# Project directories
    1.59 +#
    1.60 +# ROOT    = top of source tree
    1.61 +#
    1.62 +# TOOLS32 = location of Borland development tools.
    1.63 +#
    1.64 +# INSTALLDIR = where the install-targets should copy the binaries and
    1.65 +#     support files
    1.66 +#
    1.67 +
    1.68 +ROOT		= ..
    1.69 +INSTALLDIR	= c:\program files\tcl
    1.70 +
    1.71 +# If you have C++ Builder 5 or the free Borland C++ 5.5 compiler
    1.72 +# adapt the following paths as appropriate for your system
    1.73 +TOOLS32		= c:\dev\bcc55
    1.74 +TOOLS32_rc	= c:\dev\bcc55
    1.75 +#TOOLS32	= c:\bc55
    1.76 +#TOOLS32_rc	= c:\bc55
    1.77 +
    1.78 +cc32		= "$(TOOLS32)\bin\bcc32.exe"
    1.79 +link32		= "$(TOOLS32)\bin\ilink32.exe"
    1.80 +lib32		= "$(TOOLS32)\bin\tlib.exe"
    1.81 +rc32		= "$(TOOLS32_rc)\bin\brcc32.exe"
    1.82 +include32	= -I"$(TOOLS32)\include"
    1.83 +libpath32	= -L"$(TOOLS32)\lib"
    1.84 +
    1.85 +# Uncomment the following line to compile with thread support
    1.86 +#THREADDEFINES	= -DTCL_THREADS=1
    1.87 +
    1.88 +# Allow definition of NDEBUG via command line
    1.89 +# Set NODEBUG to 0 to compile with symbols
    1.90 +!if !defined(NODEBUG)
    1.91 +NODEBUG		= 1
    1.92 +!endif
    1.93 +
    1.94 +# The following defines can be used to control the amount of debugging
    1.95 +# code that is added to the compilation.
    1.96 +#
    1.97 +# -DTCL_MEM_DEBUG   Enables the debugging memory allocator.
    1.98 +# -DTCL_COMPILE_DEBUG Enables byte compilation logging.
    1.99 +# -DTCL_COMPILE_STATS Enables byte compilation statistics gathering.
   1.100 +# -DUSE_TCLALLOC=0  Disables the Tcl memory allocator in favor
   1.101 +#       of the native malloc implementation.  This is
   1.102 +#       needed when using Purify.
   1.103 +#
   1.104 +#DEBUGDEFINES	= -DTCL_MEM_DEBUG -DTCL_COMPILE_DEBUG -DTCL_COMPILE_STATS
   1.105 +#DEBUGDEFINES	= -DUSE_TCLALLOC=0
   1.106 +
   1.107 +######################################################################
   1.108 +# Do not modify below this line
   1.109 +######################################################################
   1.110 +
   1.111 +NAMEPREFIX	= tcl
   1.112 +STUBPREFIX	= $(NAMEPREFIX)stub
   1.113 +DOTVERSION	= 8.4
   1.114 +VERSION		= 84
   1.115 +
   1.116 +DDEVERSION = 12
   1.117 +DDEDOTVERSION = 1.2
   1.118 +
   1.119 +REGVERSION = 11
   1.120 +REGDOTVERSION = 1.1
   1.121 +
   1.122 +BINROOT		= ..
   1.123 +!IF "$(NODEBUG)" == "1"
   1.124 +TMPDIRNAME	= Release
   1.125 +DBGX		=
   1.126 +!ELSE
   1.127 +TMPDIRNAME	= Debug
   1.128 +#DBGX		= d
   1.129 +DBGX		=
   1.130 +!ENDIF
   1.131 +TMPDIR		= $(BINROOT)\$(TMPDIRNAME)
   1.132 +OUTDIRNAME	= $(TMPDIRNAME)
   1.133 +OUTDIR		= $(TMPDIR)
   1.134 +
   1.135 +TCLLIB		= $(OUTDIR)\$(NAMEPREFIX)$(VERSION)$(DBGX).lib
   1.136 +TCLDLLNAME	= $(NAMEPREFIX)$(VERSION)$(DBGX).dll
   1.137 +TCLDLL		= $(OUTDIR)\$(TCLDLLNAME)
   1.138 +
   1.139 +TCLSTUBLIBNAME	= $(STUBPREFIX)$(VERSION)$(DBGX).lib
   1.140 +TCLSTUBLIB	= $(OUTDIR)\$(TCLSTUBLIBNAME)
   1.141 +
   1.142 +TCLPLUGINLIB	= $(OUTDIR)\$(NAMEPREFIX)$(VERSION)p$(DBGX).lib
   1.143 +TCLPLUGINDLLNAME	= $(NAMEPREFIX)$(VERSION)p$(DBGX).dll
   1.144 +TCLPLUGINDLL	= $(OUTDIR)\$(TCLPLUGINDLLNAME)
   1.145 +TCLSH		= $(OUTDIR)\$(NAMEPREFIX)sh$(VERSION)$(DBGX).exe
   1.146 +TCLSHP		= $(OUTDIR)\$(NAMEPREFIX)shp$(VERSION)$(DBGX).exe
   1.147 +TCLPIPEDLLNAME	= $(NAMEPREFIX)pip$(VERSION)$(DBGX).dll
   1.148 +TCLPIPEDLL	= $(OUTDIR)\$(TCLPIPEDLLNAME)
   1.149 +TCLREGDLLNAME	= $(NAMEPREFIX)reg$(REGVERSION)$(DBGX).dll
   1.150 +TCLREGDLL	= $(OUTDIR)\$(TCLREGDLLNAME)
   1.151 +TCLDDEDLLNAME	= $(NAMEPREFIX)dde$(DDEVERSION)$(DBGX).dll
   1.152 +TCLDDEDLL	= $(OUTDIR)\$(TCLDDEDLLNAME)
   1.153 +TCLTEST		= $(OUTDIR)\$(NAMEPREFIX)test.exe
   1.154 +CAT32		= $(TMPDIR)\cat32.exe
   1.155 +RMDIR		= .\rmd.bat
   1.156 +MKDIR		= .\mkd.bat
   1.157 +RM		= del
   1.158 +
   1.159 +LIB_INSTALL_DIR	= $(INSTALLDIR)\lib
   1.160 +BIN_INSTALL_DIR	= $(INSTALLDIR)\bin
   1.161 +SCRIPT_INSTALL_DIR	= $(INSTALLDIR)\lib\tcl$(DOTVERSION)
   1.162 +INCLUDE_INSTALL_DIR	= $(INSTALLDIR)\include
   1.163 +
   1.164 +TCLSHOBJS	= \
   1.165 +	$(TMPDIR)\tclAppInit.obj
   1.166 +
   1.167 +TCLTESTOBJS	= \
   1.168 +	$(TMPDIR)\tclTest.obj \
   1.169 +	$(TMPDIR)\tclTestObj.obj \
   1.170 +	$(TMPDIR)\tclTestProcBodyObj.obj \
   1.171 +	$(TMPDIR)\tclThreadTest.obj \
   1.172 +	$(TMPDIR)\tclWinTest.obj \
   1.173 +	$(TMPDIR)\testMain.obj
   1.174 +
   1.175 +TCLOBJS	= \
   1.176 +	$(TMPDIR)\regcomp.obj \
   1.177 +	$(TMPDIR)\regexec.obj \
   1.178 +	$(TMPDIR)\regfree.obj \
   1.179 +	$(TMPDIR)\regerror.obj \
   1.180 +	$(TMPDIR)\strftime.obj \
   1.181 +	$(TMPDIR)\strtoll.obj \
   1.182 +	$(TMPDIR)\strtoull.obj \
   1.183 +	$(TMPDIR)\tclAlloc.obj \
   1.184 +	$(TMPDIR)\tclAsync.obj \
   1.185 +	$(TMPDIR)\tclBasic.obj \
   1.186 +	$(TMPDIR)\tclBinary.obj \
   1.187 +	$(TMPDIR)\tclCkalloc.obj \
   1.188 +	$(TMPDIR)\tclClock.obj \
   1.189 +	$(TMPDIR)\tclCmdAH.obj \
   1.190 +	$(TMPDIR)\tclCmdIL.obj \
   1.191 +	$(TMPDIR)\tclCmdMZ.obj \
   1.192 +	$(TMPDIR)\tclCompCmds.obj \
   1.193 +	$(TMPDIR)\tclCompExpr.obj \
   1.194 +	$(TMPDIR)\tclCompile.obj \
   1.195 +	$(TMPDIR)\tclDate.obj \
   1.196 +	$(TMPDIR)\tclEncoding.obj \
   1.197 +	$(TMPDIR)\tclEnv.obj \
   1.198 +	$(TMPDIR)\tclEvent.obj \
   1.199 +	$(TMPDIR)\tclExecute.obj \
   1.200 +	$(TMPDIR)\tclFCmd.obj \
   1.201 +	$(TMPDIR)\tclFileName.obj \
   1.202 +	$(TMPDIR)\tclGet.obj \
   1.203 +	$(TMPDIR)\tclHash.obj \
   1.204 +	$(TMPDIR)\tclHistory.obj \
   1.205 +	$(TMPDIR)\tclIndexObj.obj \
   1.206 +	$(TMPDIR)\tclInterp.obj \
   1.207 +	$(TMPDIR)\tclIO.obj \
   1.208 +	$(TMPDIR)\tclIOCmd.obj \
   1.209 +	$(TMPDIR)\tclIOGT.obj \
   1.210 +	$(TMPDIR)\tclIOSock.obj \
   1.211 +	$(TMPDIR)\tclIOUtil.obj \
   1.212 +	$(TMPDIR)\tclLink.obj \
   1.213 +	$(TMPDIR)\tclLiteral.obj \
   1.214 +	$(TMPDIR)\tclListObj.obj \
   1.215 +	$(TMPDIR)\tclLoad.obj \
   1.216 +	$(TMPDIR)\tclMain.obj \
   1.217 +	$(TMPDIR)\tclNamesp.obj \
   1.218 +	$(TMPDIR)\tclNotify.obj \
   1.219 +	$(TMPDIR)\tclObj.obj \
   1.220 +	$(TMPDIR)\tclPanic.obj \
   1.221 +	$(TMPDIR)\tclParse.obj \
   1.222 +	$(TMPDIR)\tclParseExpr.obj \
   1.223 +	$(TMPDIR)\tclPipe.obj \
   1.224 +	$(TMPDIR)\tclPkg.obj \
   1.225 +	$(TMPDIR)\tclPosixStr.obj \
   1.226 +	$(TMPDIR)\tclPreserve.obj \
   1.227 +	$(TMPDIR)\tclProc.obj \
   1.228 +	$(TMPDIR)\tclRegexp.obj \
   1.229 +	$(TMPDIR)\tclResolve.obj \
   1.230 +	$(TMPDIR)\tclResult.obj \
   1.231 +	$(TMPDIR)\tclScan.obj \
   1.232 +	$(TMPDIR)\tclStringObj.obj \
   1.233 +	$(TMPDIR)\tclStubInit.obj \
   1.234 +	$(TMPDIR)\tclStubLib.obj \
   1.235 +	$(TMPDIR)\tclThread.obj \
   1.236 +	$(TMPDIR)\tclThreadJoin.obj \
   1.237 +	$(TMPDIR)\tclTimer.obj \
   1.238 +	$(TMPDIR)\tclUtf.obj \
   1.239 +	$(TMPDIR)\tclUtil.obj \
   1.240 +	$(TMPDIR)\tclVar.obj \
   1.241 +	$(TMPDIR)\tclWin32Dll.obj \
   1.242 +	$(TMPDIR)\tclWinChan.obj \
   1.243 +	$(TMPDIR)\tclWinConsole.obj \
   1.244 +	$(TMPDIR)\tclWinSerial.obj \
   1.245 +	$(TMPDIR)\tclWinError.obj \
   1.246 +	$(TMPDIR)\tclWinFCmd.obj \
   1.247 +	$(TMPDIR)\tclWinFile.obj \
   1.248 +	$(TMPDIR)\tclWinInit.obj \
   1.249 +	$(TMPDIR)\tclWinLoad.obj \
   1.250 +	$(TMPDIR)\tclWinMtherr.obj \
   1.251 +	$(TMPDIR)\tclWinNotify.obj \
   1.252 +	$(TMPDIR)\tclWinPipe.obj \
   1.253 +	$(TMPDIR)\tclWinSock.obj \
   1.254 +	$(TMPDIR)\tclWinThrd.obj \
   1.255 +	$(TMPDIR)\tclWinTime.obj
   1.256 +
   1.257 +TCLSTUBOBJS	= $(TMPDIR)\tclStubLib.obj
   1.258 +
   1.259 +WINDIR		= $(ROOT)\win
   1.260 +GENERICDIR	= $(ROOT)\generic
   1.261 +
   1.262 +TCL_INCLUDES	= -I"$(WINDIR)" -I"$(GENERICDIR)"
   1.263 +TCL_DEFINES	= $(DEBUGDEFINES) $(THREADDEFINES)
   1.264 +
   1.265 +######################################################################
   1.266 +# Compiler flags
   1.267 +######################################################################
   1.268 +
   1.269 +!IF "$(NODEBUG)" == "1"
   1.270 +# these macros cause maximum optimization and no symbols
   1.271 +cdebug	= -v- -vi- -O2 -D_DEBUG
   1.272 +!ELSE
   1.273 +# these macros enable debugging
   1.274 +cdebug	= -k -Od -r- -v -vi- -y
   1.275 +!ENDIF
   1.276 +
   1.277 +SYSDEFINES	= _MT;NO_STRICT;_NO_VCL
   1.278 +
   1.279 +# declarations common to all compiler options
   1.280 +cbase	= -c -q -3 -a4 -g0 -tWM -Ve -Vx -X-
   1.281 +WARNINGS	= -w-rch -w-pch -w-par -w-dup -w-pro -w-dpu
   1.282 +
   1.283 +ccons	= -tWC
   1.284 +
   1.285 +INCLUDEPATH	= $(include32) $(TCL_INCLUDES)
   1.286 +
   1.287 +CFLAGS	= $(cdebug) $(cbase) $(INCLUDEPATH) $(WARNINGS) -D$(SYSDEFINES)
   1.288 +TCL_CFLAGS	= $(CFLAGS) $(TCL_DEFINES)
   1.289 +CONS_CFLAGS	= $(CFLAGS) $(TCL_DEFINES) $(ccons)
   1.290 +
   1.291 +######################################################################
   1.292 +# Linker flags
   1.293 +######################################################################
   1.294 +
   1.295 +!IF "$(NODEBUG)" == "1"
   1.296 +ldebug	=
   1.297 +!ELSE
   1.298 +ldebug	= -v
   1.299 +!ENDIF
   1.300 +
   1.301 +# declarations common to all linker options
   1.302 +LNFLAGS	= -D"" -Gn -I$(TMPDIR) -x $(ldebug) $(libpath32)
   1.303 +# -Gi: create lib file (is -Gl in doc)
   1.304 +# -aa: Windows app, -ap: Windows console app
   1.305 +LNFLAGS_DLL	= -ap -Gi -Tpd
   1.306 +LNFLAGS_CONS	= -ap -Tpe
   1.307 +
   1.308 +LNLIBS	= import32 cw32mt
   1.309 +
   1.310 +
   1.311 +######################################################################
   1.312 +# Project specific targets
   1.313 +######################################################################
   1.314 +
   1.315 +release:	setup $(TCLSH) dlls
   1.316 +dlls:		setup $(TCLPIPEDLL) $(TCLREGDLL) $(TCLDDEDLL)
   1.317 +all:		setup $(TCLSH) dlls $(CAT32)
   1.318 +tcltest:	setup $(TCLTEST) dlls $(CAT32)
   1.319 +plugin:		setup $(TCLPLUGINDLL) $(TCLSHP)
   1.320 +install:	install-binaries install-libraries
   1.321 +
   1.322 +test:		setup $(TCLTEST) dlls $(CAT32)
   1.323 +	set TCL_LIBRARY=$(ROOT)/library
   1.324 +	$(TCLTEST) $(ROOT)/tests/all.tcl
   1.325 +
   1.326 +setup:
   1.327 +	@if not exist $(OUT_DIR)\nul mkdir $(OUT_DIR) &\
   1.328 +		echo *** Created directory '$(OUT_DIR)'
   1.329 +	@if not exist $(TMP_DIR)\nul mkdir $(TMP_DIR) &\
   1.330 +		echo *** Created directory '$(TMP_DIR)'
   1.331 +
   1.332 +
   1.333 +$(TCLLIB): $(TCLDLL)
   1.334 +
   1.335 +$(TCLDLL): $(TCLOBJS) $(TMPDIR)\$(NAMEPREFIX).res
   1.336 +	$(link32) $(ldebug) $(LNFLAGS) $(LNFLAGS_DLL) $(TOOLS32)\lib\c0d32 @&&!
   1.337 +		$(TCLOBJS), $@, -x, $(LNLIBS),, $(TMPDIR)\$(NAMEPREFIX).res
   1.338 +!
   1.339 +
   1.340 +$(TCLSTUBLIB): $(TCLSTUBOBJS)
   1.341 +	$(lib32) /u $@ $(TCLSTUBOBJS)
   1.342 +
   1.343 +$(TCLPLUGINLIB): $(TCLPLUGINDLL)
   1.344 +
   1.345 +$(TCLPLUGINDLL): $(TCLOBJS) $(TMPDIR)\tcl.res
   1.346 +	$(link32) $(ldebug) $(dlllflags) \
   1.347 +		-out:$@ $(TMPDIR)\tcl.res $(guilibsdll) @&&!
   1.348 +$(TCLOBJS)
   1.349 +!
   1.350 +
   1.351 +$(TCLSH): $(TCLSHOBJS) $(TCLLIB) $(TMPDIR)\$(NAMEPREFIX)sh.res
   1.352 +	$(link32) $(ldebug) -S:2400000 $(LNFLAGS) $(LNFLAGS_CONS) $(TOOLS32)\lib\c0x32 @&&!
   1.353 +		$(TCLSHOBJS), $@, -x, $(LNLIBS) $(TCLLIB),, $(TMPDIR)\$(NAMEPREFIX)sh.res
   1.354 +!
   1.355 +
   1.356 +$(TCLSHP): $(TCLSHOBJS) $(TCLPLUGINLIB) $(TMPDIR)\tclsh.res
   1.357 +	$(link32) $(ldebug) $(conlflags) $(TMPDIR)\tclsh.res -stack:2300000 \
   1.358 +		-out:$@ $(conlibsdll) $(TCLPLUGINLIB) $(TCLSHOBJS)
   1.359 +
   1.360 +$(TCLTEST): $(TCLTESTOBJS) $(TCLLIB) $(TMPDIR)\$(NAMEPREFIX)sh.res
   1.361 +	$(link32) $(ldebug) -S:2400000 $(LNFLAGS) $(LNFLAGS_CONS) $(TOOLS32)\lib\c0x32 @&&!
   1.362 +		$(TCLTESTOBJS), $@, -x, $(LNLIBS) $(TCLLIB),, $(TMPDIR)\$(NAMEPREFIX)sh.res
   1.363 +!
   1.364 +
   1.365 +$(TCLPIPEDLL): $(WINDIR)\stub16.c
   1.366 +	$(cc32) $(CFLAGS) -o$(TMPDIR)\stub16.obj $(WINDIR)\stub16.c
   1.367 +	$(link32) $(ldebug) $(LNFLAGS) $(LNFLAGS_CONS) $(TOOLS32)\lib\c0x32 \
   1.368 +		$(TMPDIR)\stub16.obj, $@, -x, $(LNLIBS),, $(TMPDIR)\$(NAMEPREFIX).res
   1.369 +
   1.370 +$(TCLDDEDLL): $(TMPDIR)\tclWinDde.obj $(TCLSTUBLIB)
   1.371 +	$(link32) $(ldebug) $(LNFLAGS) $(LNFLAGS_DLL) $(TOOLS32)\lib\c0d32 \
   1.372 +		$(TMPDIR)\tclWinDde.obj, $@, -x, $(LNLIBS) $(TCLSTUBLIB),, \
   1.373 +		$(TMPDIR)\$(NAMEPREFIX).res
   1.374 +
   1.375 +$(TCLREGDLL): $(TMPDIR)\tclWinReg.obj $(TCLSTUBLIB)
   1.376 +	$(link32) $(ldebug) $(LNFLAGS) $(LNFLAGS_DLL) $(TOOLS32)\lib\c0d32 \
   1.377 +		$(TMPDIR)\tclWinReg.obj, $@, -x, $(LNLIBS) $(TCLSTUBLIB),, \
   1.378 +		$(TMPDIR)\$(NAMEPREFIX).res
   1.379 +
   1.380 +$(CAT32): $(WINDIR)\cat.c
   1.381 +	$(cc32) $(CONS_CFLAGS) -o$(TMPDIR)\cat.obj $?
   1.382 +	$(link32) $(ldebug) $(LNFLAGS) $(LNFLAGS_CONS) $(TOOLS32)\lib\c0x32 \
   1.383 +		$(TMPDIR)\cat.obj, $@, -x, $(LNLIBS),,
   1.384 +
   1.385 +install-binaries: $(TCLSH)
   1.386 +	$(MKDIR) "$(BIN_INSTALL_DIR)"
   1.387 +	$(MKDIR) "$(LIB_INSTALL_DIR)"
   1.388 +	@echo installing $(TCLDLLNAME)
   1.389 +	@copy "$(TCLDLL)" "$(BIN_INSTALL_DIR)"
   1.390 +	@copy "$(TCLLIB)" "$(LIB_INSTALL_DIR)"
   1.391 +	@echo installing "$(TCLSH)"
   1.392 +	@copy "$(TCLSH)" "$(BIN_INSTALL_DIR)"
   1.393 +	@echo installing $(TCLPIPEDLLNAME)
   1.394 +	@copy "$(TCLPIPEDLL)" "$(BIN_INSTALL_DIR)"
   1.395 +	@echo installing $(TCLSTUBLIBNAME)
   1.396 +	@copy "$(TCLSTUBLIB)" "$(LIB_INSTALL_DIR)"
   1.397 +
   1.398 +install-libraries:
   1.399 +	-@$(MKDIR) "$(LIB_INSTALL_DIR)"
   1.400 +	-@$(MKDIR) "$(INCLUDE_INSTALL_DIR)"
   1.401 +	-@$(MKDIR) "$(SCRIPT_INSTALL_DIR)"
   1.402 +	@echo installing http1.0
   1.403 +	-@$(MKDIR) "$(SCRIPT_INSTALL_DIR)\http1.0"
   1.404 +	-@copy "$(ROOT)\library\http1.0\http.tcl"     "$(SCRIPT_INSTALL_DIR)\http1.0"
   1.405 +	-@copy "$(ROOT)\library\http1.0\pkgIndex.tcl" "$(SCRIPT_INSTALL_DIR)\http1.0"
   1.406 +	@echo installing http2.5
   1.407 +	-@$(MKDIR) "$(SCRIPT_INSTALL_DIR)\http2.5"
   1.408 +	-@copy "$(ROOT)\library\http\http.tcl"     "$(SCRIPT_INSTALL_DIR)\http2.5"
   1.409 +	-@copy "$(ROOT)\library\http\pkgIndex.tcl" "$(SCRIPT_INSTALL_DIR)\http2.5"
   1.410 +	@echo installing opt0.4
   1.411 +	-@$(MKDIR) "$(SCRIPT_INSTALL_DIR)\opt0.4"
   1.412 +	-@copy "$(ROOT)\library\opt\optparse.tcl" "$(SCRIPT_INSTALL_DIR)\opt0.4"
   1.413 +	-@copy "$(ROOT)\library\opt\pkgIndex.tcl" "$(SCRIPT_INSTALL_DIR)\opt0.4"
   1.414 +	@echo installing msgcat1.3
   1.415 +	-@$(MKDIR) "$(SCRIPT_INSTALL_DIR)\msgcat1.3"
   1.416 +	-@copy "$(ROOT)\library\msgcat\msgcat.tcl"   "$(SCRIPT_INSTALL_DIR)\msgcat1.3"
   1.417 +	-@copy "$(ROOT)\library\msgcat\pkgIndex.tcl" "$(SCRIPT_INSTALL_DIR)\msgcat1.3"
   1.418 +	@echo installing tcltest2.2
   1.419 +	-@$(MKDIR) "$(SCRIPT_INSTALL_DIR)\tcltest2.2"
   1.420 +	-@copy "$(ROOT)\library\tcltest\tcltest.tcl"   "$(SCRIPT_INSTALL_DIR)\tcltest2.2"
   1.421 +	-@copy "$(ROOT)\library\tcltest\pkgIndex.tcl" "$(SCRIPT_INSTALL_DIR)\tcltest2.2"
   1.422 +	@echo installing $(TCLDDEDLLNAME)
   1.423 +	-@$(MKDIR) "$(SCRIPT_INSTALL_DIR)\dde1.1"
   1.424 +	-@copy "$(TCLDDEDLL)" "$(SCRIPT_INSTALL_DIR)\dde1.1"
   1.425 +	-@copy "$(ROOT)\library\dde\pkgIndex.tcl" "$(SCRIPT_INSTALL_DIR)\dde1.1"
   1.426 +	@echo installing $(TCLREGDLLNAME)
   1.427 +	-@$(MKDIR) "$(SCRIPT_INSTALL_DIR)\reg1.1"
   1.428 +	-@copy "$(TCLREGDLL)" "$(SCRIPT_INSTALL_DIR)\reg1.1"
   1.429 +	-@copy "$(ROOT)\library\reg\pkgIndex.tcl" "$(SCRIPT_INSTALL_DIR)\reg1.1"
   1.430 +	@echo installing encoding files
   1.431 +	-@$(MKDIR) "$(SCRIPT_INSTALL_DIR)\encoding"
   1.432 +	-@copy "$(ROOT)\library\encoding\*.enc" "$(SCRIPT_INSTALL_DIR)\encoding"
   1.433 +	@echo installing library files
   1.434 +	-@copy "$(GENERICDIR)\tcl.h"         "$(INCLUDE_INSTALL_DIR)"
   1.435 +	-@copy "$(GENERICDIR)\tclDecls.h"    "$(INCLUDE_INSTALL_DIR)"
   1.436 +	-@copy "$(GENERICDIR)\tclPlatDecls.h" "$(INCLUDE_INSTALL_DIR)"
   1.437 +	-@copy "$(ROOT)\library\history.tcl" "$(SCRIPT_INSTALL_DIR)"
   1.438 +	-@copy "$(ROOT)\library\init.tcl"    "$(SCRIPT_INSTALL_DIR)"
   1.439 +	-@copy "$(ROOT)\library\ldAout.tcl"  "$(SCRIPT_INSTALL_DIR)"
   1.440 +	-@copy "$(ROOT)\library\parray.tcl"  "$(SCRIPT_INSTALL_DIR)"
   1.441 +	-@copy "$(ROOT)\library\safe.tcl"    "$(SCRIPT_INSTALL_DIR)"
   1.442 +	-@copy "$(ROOT)\library\tclIndex"    "$(SCRIPT_INSTALL_DIR)"
   1.443 +	-@copy "$(ROOT)\library\package.tcl" "$(SCRIPT_INSTALL_DIR)"
   1.444 +	-@copy "$(ROOT)\library\word.tcl"    "$(SCRIPT_INSTALL_DIR)"
   1.445 +	-@copy "$(ROOT)\library\auto.tcl"    "$(SCRIPT_INSTALL_DIR)"
   1.446 +
   1.447 +#
   1.448 +# Regenerate the stubs files.
   1.449 +#
   1.450 +
   1.451 +genstubs:
   1.452 +	tclsh$(VERSION) $(ROOT)\tools\genStubs.tcl $(GENERICDIR) \
   1.453 +		$(GENERICDIR)\tcl.decls $(GENERICDIR)\tclInt.decls
   1.454 +
   1.455 +#
   1.456 +# Regenerate the windows help files.
   1.457 +#
   1.458 +
   1.459 +TCLTOOLS	= $(ROOT)/tools
   1.460 +MAN2TCL		= $(TCLTOOLS)/man2tcl
   1.461 +TCLRTF		= $(TCLTOOLS)/tcl.rtf
   1.462 +TCLHPJ		= $(TCLTOOLS)/tcl.hpj
   1.463 +MAN2HELP	= $(TCLTOOLS)/man2help.tcl
   1.464 +HCRTF		= $(TOOLS32)/bin/hcrtf.exe
   1.465 +
   1.466 +winhelp: $(TCLRTF)
   1.467 +	cd $(TCLTOOLS)
   1.468 +	start /wait $(HCRTF) -xn $(TCLHPJ)
   1.469 +
   1.470 +$(MAN2TCL).exe: $(MAN2TCL).obj
   1.471 +	cd $(TCLTOOLS)
   1.472 +	$(cc32) /nologo /G4 /ML /O2 $(MAN2TCL).c
   1.473 +
   1.474 +$(TCLRTF): $(MAN2TCL).exe $(TCLSH)
   1.475 +	cd $(TCLTOOLS)
   1.476 +	..\win\$(TCLSH) $(MAN2HELP) $(NAMEPREFIX) $(VERSION) $(ROOT)/doc ../../tk$(DOTVERSION)/doc
   1.477 +
   1.478 +#
   1.479 +# Special case object file targets
   1.480 +#
   1.481 +$(TMPDIR)\tclWinInit.obj: $(WINDIR)\tclWinInit.c
   1.482 +	$(cc32) -DBUILD_tcl $(TCL_CFLAGS) -o$(TMPDIR)\$@ $?
   1.483 +
   1.484 +$(TMPDIR)\testMain.obj: $(WINDIR)\tclAppInit.c
   1.485 +	$(cc32) $(TCL_CFLAGS) -DTCL_TEST -o$(TMPDIR)\testMain.obj $?
   1.486 +
   1.487 +$(TMPDIR)\tclTest.obj: $(GENERICDIR)\tclTest.c
   1.488 +	$(cc32) $(TCL_CFLAGS) -o$(TMPDIR)\$@ $?
   1.489 +
   1.490 +$(TMPDIR)\tclTestObj.obj: $(GENERICDIR)\tclTestObj.c
   1.491 +	$(cc32) $(TCL_CFLAGS) -o$(TMPDIR)\$@ $?
   1.492 +
   1.493 +$(TMPDIR)\tclWinTest.obj: $(WINDIR)\tclWinTest.c
   1.494 +	$(cc32) $(TCL_CFLAGS) -o$(TMPDIR)\$@ $?
   1.495 +
   1.496 +$(TMPDIR)\tclAppInit.obj : $(WINDIR)\tclAppInit.c
   1.497 +	$(cc32) $(TCL_CFLAGS) -o$(TMPDIR)\$@ $?
   1.498 +
   1.499 +# The following objects should be built using the stub interfaces
   1.500 +
   1.501 +# tclWinReg: Produces errors in ANSI mode
   1.502 +$(TMPDIR)\tclWinReg.obj : $(WINDIR)\tclWinReg.c
   1.503 +	$(cc32) $(TCL_CFLAGS) -DUSE_TCL_STUBS -o$(TMPDIR)\$@ $?
   1.504 +
   1.505 +# tclWinDde: Produces errors in ANSI mode
   1.506 +$(TMPDIR)\tclWinDde.obj : $(WINDIR)\tclWinDde.c
   1.507 +	$(cc32) $(TCL_CFLAGS) -DUSE_TCL_STUBS -o$(TMPDIR)\$@ $?
   1.508 +
   1.509 +
   1.510 +# The following objects are part of the stub library and should not
   1.511 +# be built as DLL objects but none of the symbols should be exported
   1.512 +
   1.513 +$(TMPDIR)\tclStubLib.obj : $(GENERICDIR)\tclStubLib.c
   1.514 +	$(cc32) $(TCL_CFLAGS) -DSTATIC_BUILD -o$(TMPDIR)\$@ $?
   1.515 +
   1.516 +
   1.517 +# Dedependency rules
   1.518 +
   1.519 +$(GENERICDIR)\regcomp.c: \
   1.520 +	$(GENERICDIR)\regguts.h \
   1.521 +	$(GENERICDIR)\regc_lex.c \
   1.522 +	$(GENERICDIR)\regc_color.c \
   1.523 +	$(GENERICDIR)\regc_nfa.c \
   1.524 +	$(GENERICDIR)\regc_cvec.c \
   1.525 +	$(GENERICDIR)\regc_locale.c
   1.526 +
   1.527 +$(GENERICDIR)\regcustom.h: \
   1.528 +	$(GENERICDIR)\tclInt.h \
   1.529 +	$(GENERICDIR)\tclPort.h \
   1.530 +	$(GENERICDIR)\regex.h
   1.531 +
   1.532 +$(GENERICDIR)\regexec.c: \
   1.533 +	$(GENERICDIR)\rege_dfa.c \
   1.534 +	$(GENERICDIR)\regguts.h
   1.535 +
   1.536 +$(GENERICDIR)\regerror.c: $(GENERICDIR)\regguts.h
   1.537 +$(GENERICDIR)\regfree.c: $(GENERICDIR)\regguts.h
   1.538 +$(GENERICDIR)\regfronts.c: $(GENERICDIR)\regguts.h
   1.539 +$(GENERICDIR)\regguts.h: $(GENERICDIR)\regcustom.h
   1.540 +
   1.541 +#
   1.542 +# Implicit rules
   1.543 +#
   1.544 +
   1.545 +{$(WINDIR)}.c{$(TMPDIR)}.obj:
   1.546 +	$(cc32) -DBUILD_tcl $(TCL_CFLAGS) -o$@ $<
   1.547 +
   1.548 +{$(GENERICDIR)}.c{$(TMPDIR)}.obj:
   1.549 +	$(cc32) -DBUILD_tcl $(TCL_CFLAGS) -o$@ $<
   1.550 +
   1.551 +{$(ROOT)\compat}.c{$(TMPDIR)}.obj:
   1.552 +	$(cc32) -DBUILD_tcl $(TCL_CFLAGS) -o$@ $<
   1.553 +
   1.554 +{$(WINDIR)}.rc{$(TMPDIR)}.res:
   1.555 +	$(rc32) $(INCLUDEPATH) -D$(USERDEFINES);$(SYSDEFINES) -fo$@ $<
   1.556 +
   1.557 +clean:
   1.558 +	-@$(RM) $(OUTDIR)\*.exp
   1.559 +	-@$(RM) $(OUTDIR)\*.lib
   1.560 +	-@$(RM) $(OUTDIR)\*.dll
   1.561 +	-@$(RM) $(OUTDIR)\*.exe
   1.562 +	-@$(RM) $(OUTDIR)\*.pdb
   1.563 +	-@$(RM) $(TMPDIR)\*.pch
   1.564 +	-@$(RM) $(TMPDIR)\*.obj
   1.565 +	-@$(RM) $(TMPDIR)\*.res
   1.566 +	-@$(RM) $(TMPDIR)\*.exe
   1.567 +	-@$(RMDIR) $(OUTDIR)
   1.568 +	-@$(RMDIR) $(TMPDIR)
   1.569 +