os/persistentdata/persistentstorage/sqlite3api/TEST/TCL/tcldistribution/win/makefile.vc
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
sl@0
     1
#------------------------------------------------------------------------------
sl@0
     2
# makefile.vc --
sl@0
     3
#
sl@0
     4
#	Microsoft Visual C++ makefile for use with nmake.exe v1.62+ (VC++ 5.0+)
sl@0
     5
#
sl@0
     6
# See the file "license.terms" for information on usage and redistribution
sl@0
     7
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
sl@0
     8
# 
sl@0
     9
# Copyright (c) 1995-1996 Sun Microsystems, Inc.
sl@0
    10
# Copyright (c) 1998-2000 Ajuba Solutions.
sl@0
    11
# Copyright (c) 2001-2005 ActiveState Corporation.
sl@0
    12
# Copyright (c) 2001-2002 David Gravereaux.
sl@0
    13
#
sl@0
    14
#------------------------------------------------------------------------------
sl@0
    15
# RCS: @(#) $Id: makefile.vc,v 1.100.2.9 2006/09/26 21:40:36 patthoyts Exp $
sl@0
    16
#------------------------------------------------------------------------------
sl@0
    17
sl@0
    18
# Check to see we are configured to build with MSVC (MSDEVDIR or MSVCDIR)
sl@0
    19
# or with the MS Platform SDK (MSSDK). Visual Studio .NET 2003 and 2005 define
sl@0
    20
# VCINSTALLDIR instead.
sl@0
    21
!if !defined(MSDEVDIR) && !defined(MSVCDIR) && !defined(MSSDK) && !defined(VCINSTALLDIR)
sl@0
    22
MSG = ^
sl@0
    23
You need to run vcvars32.bat from Developer Studio or setenv.bat from the^
sl@0
    24
Platform SDK first to setup the environment.  Jump to this line to read^
sl@0
    25
the build instructions.
sl@0
    26
!error $(MSG)
sl@0
    27
!endif
sl@0
    28
sl@0
    29
#------------------------------------------------------------------------------
sl@0
    30
# HOW TO USE this makefile:
sl@0
    31
#
sl@0
    32
# 1)  It is now necessary to have MSVCDir, MSDevDir or MSSDK set in the
sl@0
    33
#     environment.  This is used as a check to see if vcvars32.bat had been
sl@0
    34
#     run prior to running nmake or during the installation of Microsoft
sl@0
    35
#     Visual C++, MSVCDir had been set globally and the PATH adjusted.
sl@0
    36
#     Either way is valid.
sl@0
    37
#
sl@0
    38
#     You'll need to run vcvars32.bat contained in the MsDev's vc(98)/bin
sl@0
    39
#     directory to setup the proper environment, if needed, for your
sl@0
    40
#     current setup.  This is a needed bootstrap requirement and allows the
sl@0
    41
#     swapping of different environments to be easier.
sl@0
    42
#
sl@0
    43
# 2)  To use the Platform SDK (not expressly needed), run setenv.bat after
sl@0
    44
#     vcvars32.bat according to the instructions for it.  This can also
sl@0
    45
#     turn on the 64-bit compiler, if your SDK has it.
sl@0
    46
#
sl@0
    47
# 3)  Targets are:
sl@0
    48
#	release  -- Builds the core, the shell and the dlls. (default)
sl@0
    49
#	dlls     -- Just builds the windows extensions and the 16-bit DOS
sl@0
    50
#		    pipe/thunk helper app.
sl@0
    51
#	shell    -- Just builds the shell and the core.
sl@0
    52
#	core     -- Only builds the core [tclXX.(dll|lib)].
sl@0
    53
#	all      -- Builds everything.
sl@0
    54
#	test     -- Builds and runs the test suite.
sl@0
    55
#	tcltest  -- Just builds the test shell.
sl@0
    56
#	install  -- Installs the built binaries and libraries to $(INSTALLDIR)
sl@0
    57
#		    as the root of the install tree.
sl@0
    58
#	tidy/clean/hose -- varying levels of cleaning.
sl@0
    59
#	genstubs -- Rebuilds the Stubs table and support files (dev only).
sl@0
    60
#	depend   -- Generates an accurate set of source dependancies for this
sl@0
    61
#		    makefile.  Helpful to avoid problems when the sources are
sl@0
    62
#		    refreshed and you rebuild, but can "overbuild" when common
sl@0
    63
#		    headers like tclInt.h just get small changes.
sl@0
    64
#	winhelp  -- Builds the windows .hlp file for Tcl from the troff man
sl@0
    65
#		    files found in $(ROOT)\doc .
sl@0
    66
#
sl@0
    67
# 4)  Macros usable on the commandline:
sl@0
    68
#	INSTALLDIR=<path>
sl@0
    69
#		Sets where to install Tcl from the built binaries.
sl@0
    70
#		C:\Progra~1\Tcl is assumed when not specified.
sl@0
    71
#
sl@0
    72
#	OPTS=static,msvcrt,staticpkg,threads,symbols,profile,loimpact,none
sl@0
    73
#		Sets special options for the core.  The default is for none.
sl@0
    74
#		Any combination of the above may be used (comma separated).
sl@0
    75
#		'none' will over-ride everything to nothing.
sl@0
    76
#
sl@0
    77
#		static  =  Builds a static library of the core instead of a
sl@0
    78
#			   dll.  The shell will be static (and large), as well.
sl@0
    79
#		msvcrt  =  Effects the static option only to switch it from
sl@0
    80
#			   using libcmt(d) as the C runtime [by default] to
sl@0
    81
#			   msvcrt(d). This is useful for static embedding
sl@0
    82
#			   support.
sl@0
    83
#		staticpkg = Effects the static option only to switch
sl@0
    84
#			   tclshXX.exe to have the dde and reg extension linked
sl@0
    85
#			   inside it.
sl@0
    86
#		threads =  Turns on full multithreading support.
sl@0
    87
#		thrdalloc = Use the thread allocator (shared global free pool).
sl@0
    88
#		symbols =  Adds symbols for step debugging.
sl@0
    89
#		profile =  Adds profiling hooks.  Map file is assumed.
sl@0
    90
#		loimpact =  Adds a flag for how NT treats the heap to keep memory
sl@0
    91
#			   in use, low.  This is said to impact alloc performance.
sl@0
    92
#
sl@0
    93
#	STATS=memdbg,compdbg,none
sl@0
    94
#		Sets optional memory and bytecode compiler debugging code added
sl@0
    95
#		to the core.  The default is for none.  Any combination of the
sl@0
    96
#		above may be used (comma separated).  'none' will over-ride
sl@0
    97
#		everything to nothing.
sl@0
    98
#
sl@0
    99
#		memdbg   = Enables the debugging memory allocator.
sl@0
   100
#		compdbg  = Enables byte compilation logging.
sl@0
   101
#
sl@0
   102
#	MACHINE=(IX86|IA64|ALPHA)
sl@0
   103
#		Set the machine type used for the compiler, linker, and
sl@0
   104
#		resource compiler.  This hook is needed to tell the tools
sl@0
   105
#		when alternate platforms are requested.  IX86 is the default
sl@0
   106
#		when not specified.
sl@0
   107
#
sl@0
   108
#	TMP_DIR=<path>
sl@0
   109
#	OUT_DIR=<path>
sl@0
   110
#		Hooks to allow the intermediate and output directories to be
sl@0
   111
#		changed.  $(OUT_DIR) is assumed to be 
sl@0
   112
#		$(BINROOT)\(Release|Debug) based on if symbols are requested.
sl@0
   113
#		$(TMP_DIR) will de $(OUT_DIR)\<buildtype> by default.
sl@0
   114
#
sl@0
   115
#	TESTPAT=<file>
sl@0
   116
#		Reads the tests requested to be run from this file.
sl@0
   117
#
sl@0
   118
# 5)  Examples:
sl@0
   119
#
sl@0
   120
#	Basic syntax of calling nmake looks like this:
sl@0
   121
#	nmake [-nologo] -f makefile.vc [target|macrodef [target|macrodef] [...]]
sl@0
   122
#
sl@0
   123
#                        Standard (no frills)
sl@0
   124
#       c:\tcl_src\win\>c:\progra~1\micros~1\vc98\bin\vcvars32.bat
sl@0
   125
#       Setting environment for using Microsoft Visual C++ tools.
sl@0
   126
#       c:\tcl_src\win\>nmake -f makefile.vc release
sl@0
   127
#       c:\tcl_src\win\>nmake -f makefile.vc install INSTALLDIR=c:\progra~1\tcl
sl@0
   128
#
sl@0
   129
#                         Building for Win64
sl@0
   130
#       c:\tcl_src\win\>c:\progra~1\micros~1\vc98\bin\vcvars32.bat
sl@0
   131
#       Setting environment for using Microsoft Visual C++ tools.
sl@0
   132
#       c:\tcl_src\win\>c:\progra~1\platfo~1\setenv.bat /pre64 /RETAIL
sl@0
   133
#       Targeting Windows pre64 RETAIL
sl@0
   134
#       c:\tcl_src\win\>nmake -f makefile.vc MACHINE=IA64
sl@0
   135
#
sl@0
   136
#------------------------------------------------------------------------------
sl@0
   137
#==============================================================================
sl@0
   138
###############################################################################
sl@0
   139
sl@0
   140
sl@0
   141
#    //==================================================================\\
sl@0
   142
#   >>[               -> Do not modify below this line. <-               ]<<
sl@0
   143
#   >>[  Please, use the commandline macros to modify how Tcl is built.  ]<<
sl@0
   144
#   >>[  If you need more features, send us a patch for more macros.     ]<<
sl@0
   145
#    \\==================================================================//
sl@0
   146
sl@0
   147
sl@0
   148
###############################################################################
sl@0
   149
#==============================================================================
sl@0
   150
#------------------------------------------------------------------------------
sl@0
   151
sl@0
   152
!if !exist("makefile.vc")
sl@0
   153
MSG = ^
sl@0
   154
You must run this makefile only from the directory it is in.^
sl@0
   155
Please `cd` to its location first.
sl@0
   156
!error $(MSG)
sl@0
   157
!endif
sl@0
   158
sl@0
   159
PROJECT	= tcl
sl@0
   160
!include "rules.vc"
sl@0
   161
sl@0
   162
STUBPREFIX = $(PROJECT)stub
sl@0
   163
DOTVERSION = 8.4
sl@0
   164
VERSION = $(DOTVERSION:.=)
sl@0
   165
sl@0
   166
DDEDOTVERSION = 1.2
sl@0
   167
DDEVERSION = $(DDEDOTVERSION:.=)
sl@0
   168
sl@0
   169
REGDOTVERSION = 1.1
sl@0
   170
REGVERSION = $(REGDOTVERSION:.=)
sl@0
   171
sl@0
   172
BINROOT		= .
sl@0
   173
ROOT		= ..
sl@0
   174
sl@0
   175
TCLIMPLIB	= $(OUT_DIR)\$(PROJECT)$(VERSION)$(SUFX).lib
sl@0
   176
TCLLIBNAME	= $(PROJECT)$(VERSION)$(SUFX).$(EXT)
sl@0
   177
TCLLIB		= $(OUT_DIR)\$(TCLLIBNAME)
sl@0
   178
sl@0
   179
TCLSTUBLIBNAME	= $(STUBPREFIX)$(VERSION).lib
sl@0
   180
TCLSTUBLIB	= $(OUT_DIR)\$(TCLSTUBLIBNAME)
sl@0
   181
sl@0
   182
TCLSHNAME	= $(PROJECT)sh$(VERSION)$(SUFX).exe
sl@0
   183
TCLSH		= $(OUT_DIR)\$(TCLSHNAME)
sl@0
   184
TCLPIPEDLLNAME	= $(PROJECT)pip$(VERSION)$(SUFX:t=).dll
sl@0
   185
TCLPIPEDLL	= $(OUT_DIR)\$(TCLPIPEDLLNAME)
sl@0
   186
sl@0
   187
TCLREGLIBNAME	= $(PROJECT)reg$(REGVERSION)$(SUFX:t=).$(EXT)
sl@0
   188
TCLREGLIB	= $(OUT_DIR)\$(TCLREGLIBNAME)
sl@0
   189
sl@0
   190
TCLDDELIBNAME	= $(PROJECT)dde$(DDEVERSION)$(SUFX:t=).$(EXT)
sl@0
   191
TCLDDELIB	= $(OUT_DIR)\$(TCLDDELIBNAME)
sl@0
   192
sl@0
   193
TCLTEST		= $(OUT_DIR)\$(PROJECT)test.exe
sl@0
   194
CAT32		= $(OUT_DIR)\cat32.exe
sl@0
   195
sl@0
   196
### Make sure we use backslash only.
sl@0
   197
LIB_INSTALL_DIR		= $(_INSTALLDIR)\lib
sl@0
   198
BIN_INSTALL_DIR		= $(_INSTALLDIR)\bin
sl@0
   199
DOC_INSTALL_DIR		= $(_INSTALLDIR)\doc
sl@0
   200
SCRIPT_INSTALL_DIR	= $(_INSTALLDIR)\lib\tcl$(DOTVERSION)
sl@0
   201
INCLUDE_INSTALL_DIR	= $(_INSTALLDIR)\include
sl@0
   202
sl@0
   203
TCLSHOBJS = \
sl@0
   204
	$(TMP_DIR)\tclAppInit.obj \
sl@0
   205
!if $(TCL_USE_STATIC_PACKAGES)
sl@0
   206
	$(TMP_DIR)\tclWinReg.obj \
sl@0
   207
	$(TMP_DIR)\tclWinDde.obj \
sl@0
   208
!endif
sl@0
   209
	$(TMP_DIR)\tclsh.res
sl@0
   210
sl@0
   211
TCLTESTOBJS = \
sl@0
   212
	$(TMP_DIR)\tclTest.obj \
sl@0
   213
	$(TMP_DIR)\tclTestObj.obj \
sl@0
   214
	$(TMP_DIR)\tclTestProcBodyObj.obj \
sl@0
   215
	$(TMP_DIR)\tclThreadTest.obj \
sl@0
   216
	$(TMP_DIR)\tclWinTest.obj \
sl@0
   217
!if $(TCL_USE_STATIC_PACKAGES)
sl@0
   218
	$(TMP_DIR)\tclWinReg.obj \
sl@0
   219
	$(TMP_DIR)\tclWinDde.obj \
sl@0
   220
!endif
sl@0
   221
	$(TMP_DIR)\testMain.obj
sl@0
   222
sl@0
   223
TCLOBJS = \
sl@0
   224
	$(TMP_DIR)\regcomp.obj \
sl@0
   225
	$(TMP_DIR)\regerror.obj \
sl@0
   226
	$(TMP_DIR)\regexec.obj \
sl@0
   227
	$(TMP_DIR)\regfree.obj \
sl@0
   228
	$(TMP_DIR)\strftime.obj \
sl@0
   229
	$(TMP_DIR)\strtoll.obj \
sl@0
   230
	$(TMP_DIR)\strtoull.obj \
sl@0
   231
	$(TMP_DIR)\tclAlloc.obj \
sl@0
   232
	$(TMP_DIR)\tclAsync.obj \
sl@0
   233
	$(TMP_DIR)\tclBasic.obj \
sl@0
   234
	$(TMP_DIR)\tclBinary.obj \
sl@0
   235
	$(TMP_DIR)\tclCkalloc.obj \
sl@0
   236
	$(TMP_DIR)\tclClock.obj \
sl@0
   237
	$(TMP_DIR)\tclCmdAH.obj \
sl@0
   238
	$(TMP_DIR)\tclCmdIL.obj \
sl@0
   239
	$(TMP_DIR)\tclCmdMZ.obj \
sl@0
   240
	$(TMP_DIR)\tclCompCmds.obj \
sl@0
   241
	$(TMP_DIR)\tclCompExpr.obj \
sl@0
   242
	$(TMP_DIR)\tclCompile.obj \
sl@0
   243
	$(TMP_DIR)\tclDate.obj \
sl@0
   244
	$(TMP_DIR)\tclEncoding.obj \
sl@0
   245
	$(TMP_DIR)\tclEnv.obj \
sl@0
   246
	$(TMP_DIR)\tclEvent.obj \
sl@0
   247
	$(TMP_DIR)\tclExecute.obj \
sl@0
   248
	$(TMP_DIR)\tclFCmd.obj \
sl@0
   249
	$(TMP_DIR)\tclFileName.obj \
sl@0
   250
	$(TMP_DIR)\tclGet.obj \
sl@0
   251
	$(TMP_DIR)\tclHash.obj \
sl@0
   252
	$(TMP_DIR)\tclHistory.obj \
sl@0
   253
	$(TMP_DIR)\tclIndexObj.obj \
sl@0
   254
	$(TMP_DIR)\tclInterp.obj \
sl@0
   255
	$(TMP_DIR)\tclIO.obj \
sl@0
   256
	$(TMP_DIR)\tclIOCmd.obj \
sl@0
   257
	$(TMP_DIR)\tclIOGT.obj \
sl@0
   258
	$(TMP_DIR)\tclIOSock.obj \
sl@0
   259
	$(TMP_DIR)\tclIOUtil.obj \
sl@0
   260
	$(TMP_DIR)\tclLink.obj \
sl@0
   261
	$(TMP_DIR)\tclListObj.obj \
sl@0
   262
	$(TMP_DIR)\tclLiteral.obj \
sl@0
   263
	$(TMP_DIR)\tclLoad.obj \
sl@0
   264
	$(TMP_DIR)\tclMain.obj \
sl@0
   265
	$(TMP_DIR)\tclNamesp.obj \
sl@0
   266
	$(TMP_DIR)\tclNotify.obj \
sl@0
   267
	$(TMP_DIR)\tclObj.obj \
sl@0
   268
	$(TMP_DIR)\tclPanic.obj \
sl@0
   269
	$(TMP_DIR)\tclParse.obj \
sl@0
   270
	$(TMP_DIR)\tclParseExpr.obj \
sl@0
   271
	$(TMP_DIR)\tclPipe.obj \
sl@0
   272
	$(TMP_DIR)\tclPkg.obj \
sl@0
   273
	$(TMP_DIR)\tclPosixStr.obj \
sl@0
   274
	$(TMP_DIR)\tclPreserve.obj \
sl@0
   275
	$(TMP_DIR)\tclProc.obj \
sl@0
   276
	$(TMP_DIR)\tclRegexp.obj \
sl@0
   277
	$(TMP_DIR)\tclResolve.obj \
sl@0
   278
	$(TMP_DIR)\tclResult.obj \
sl@0
   279
	$(TMP_DIR)\tclScan.obj \
sl@0
   280
	$(TMP_DIR)\tclStringObj.obj \
sl@0
   281
	$(TMP_DIR)\tclStubInit.obj \
sl@0
   282
	$(TMP_DIR)\tclStubLib.obj \
sl@0
   283
	$(TMP_DIR)\tclThread.obj \
sl@0
   284
	$(TMP_DIR)\tclThreadAlloc.obj \
sl@0
   285
	$(TMP_DIR)\tclThreadJoin.obj \
sl@0
   286
	$(TMP_DIR)\tclTimer.obj \
sl@0
   287
	$(TMP_DIR)\tclUtf.obj \
sl@0
   288
	$(TMP_DIR)\tclUtil.obj \
sl@0
   289
	$(TMP_DIR)\tclVar.obj \
sl@0
   290
	$(TMP_DIR)\tclWin32Dll.obj \
sl@0
   291
	$(TMP_DIR)\tclWinChan.obj \
sl@0
   292
	$(TMP_DIR)\tclWinConsole.obj \
sl@0
   293
	$(TMP_DIR)\tclWinSerial.obj \
sl@0
   294
	$(TMP_DIR)\tclWinError.obj \
sl@0
   295
	$(TMP_DIR)\tclWinFCmd.obj \
sl@0
   296
	$(TMP_DIR)\tclWinFile.obj \
sl@0
   297
	$(TMP_DIR)\tclWinInit.obj \
sl@0
   298
	$(TMP_DIR)\tclWinLoad.obj \
sl@0
   299
	$(TMP_DIR)\tclWinMtherr.obj \
sl@0
   300
	$(TMP_DIR)\tclWinNotify.obj \
sl@0
   301
	$(TMP_DIR)\tclWinPipe.obj \
sl@0
   302
	$(TMP_DIR)\tclWinSock.obj \
sl@0
   303
	$(TMP_DIR)\tclWinThrd.obj \
sl@0
   304
	$(TMP_DIR)\tclWinTime.obj \
sl@0
   305
!if !$(STATIC_BUILD)
sl@0
   306
	$(TMP_DIR)\tcl.res
sl@0
   307
!endif
sl@0
   308
sl@0
   309
TCLSTUBOBJS = $(TMP_DIR)\tclStubLib.obj
sl@0
   310
sl@0
   311
### The following paths CANNOT have spaces in them.
sl@0
   312
COMPATDIR	= $(ROOT)\compat
sl@0
   313
DOCDIR		= $(ROOT)\doc
sl@0
   314
GENERICDIR	= $(ROOT)\generic
sl@0
   315
TOOLSDIR	= $(ROOT)\tools
sl@0
   316
WINDIR		= $(ROOT)\win
sl@0
   317
sl@0
   318
sl@0
   319
#---------------------------------------------------------------------
sl@0
   320
# Compile flags
sl@0
   321
#---------------------------------------------------------------------
sl@0
   322
sl@0
   323
!if !$(DEBUG)
sl@0
   324
!if $(OPTIMIZING)
sl@0
   325
### This cranks the optimization level to maximize speed
sl@0
   326
cdebug	= -O2 $(OPTIMIZATIONS)
sl@0
   327
!else
sl@0
   328
cdebug	=
sl@0
   329
!endif
sl@0
   330
!else if "$(MACHINE)" == "IA64"
sl@0
   331
### Warnings are too many, can't support warnings into errors.
sl@0
   332
cdebug	= -Z7 -Od $(DEBUGFLAGS)
sl@0
   333
!else
sl@0
   334
cdebug	= -Z7 -WX $(DEBUGFLAGS)
sl@0
   335
!endif
sl@0
   336
sl@0
   337
### Declarations common to all compiler options
sl@0
   338
cwarn = -D _CRT_SECURE_NO_DEPRECATE -D _CRT_NONSTDC_NO_DEPRECATE
sl@0
   339
cflags = -nologo -c $(COMPILERFLAGS) $(cwarn) -Fp$(TMP_DIR)^\
sl@0
   340
sl@0
   341
!if $(FULLWARNINGS)
sl@0
   342
cflags = $(cflags) -W4
sl@0
   343
!else
sl@0
   344
cflags = $(cflags) -W3
sl@0
   345
!endif
sl@0
   346
sl@0
   347
!if $(MSVCRT)
sl@0
   348
!if "$(DBGX)" == ""
sl@0
   349
crt = -MD
sl@0
   350
!else
sl@0
   351
crt = -MDd
sl@0
   352
!endif
sl@0
   353
!else
sl@0
   354
!if "$(DBGX)" == ""
sl@0
   355
crt = -MT
sl@0
   356
!else
sl@0
   357
crt = -MTd
sl@0
   358
!endif
sl@0
   359
!endif
sl@0
   360
sl@0
   361
TCL_INCLUDES	= -I"$(WINDIR)" -I"$(GENERICDIR)"
sl@0
   362
BASE_CFLAGS	= $(cflags) $(cdebug) $(crt) $(TCL_INCLUDES) \
sl@0
   363
			-DTCL_PIPE_DLL=\"$(TCLPIPEDLLNAME)\"
sl@0
   364
CON_CFLAGS	= $(cflags) $(cdebug) $(crt) -DCONSOLE
sl@0
   365
TCL_CFLAGS	= $(BASE_CFLAGS) $(OPTDEFINES)
sl@0
   366
sl@0
   367
sl@0
   368
#---------------------------------------------------------------------
sl@0
   369
# Link flags
sl@0
   370
#---------------------------------------------------------------------
sl@0
   371
sl@0
   372
!if $(DEBUG)
sl@0
   373
ldebug	= -debug:full -debugtype:cv
sl@0
   374
!else
sl@0
   375
ldebug	= -release -opt:ref -opt:icf,3
sl@0
   376
!endif
sl@0
   377
sl@0
   378
### Declarations common to all linker options
sl@0
   379
lflags	= -nologo -machine:$(MACHINE) $(LINKERFLAGS) $(ldebug)
sl@0
   380
sl@0
   381
!if $(FULLWARNINGS)
sl@0
   382
lflags = $(lflags) -warn:3
sl@0
   383
!endif
sl@0
   384
sl@0
   385
!if $(PROFILE)
sl@0
   386
lflags	= $(lflags) -profile
sl@0
   387
!endif
sl@0
   388
sl@0
   389
!if $(ALIGN98_HACK) && !$(STATIC_BUILD)
sl@0
   390
### Align sections for PE size savings.
sl@0
   391
lflags	= $(lflags) -opt:nowin98
sl@0
   392
!else if !$(ALIGN98_HACK) && $(STATIC_BUILD)
sl@0
   393
### Align sections for speed in loading by choosing the virtual page size.
sl@0
   394
lflags	= $(lflags) -align:4096
sl@0
   395
!endif
sl@0
   396
sl@0
   397
!if $(LOIMPACT)
sl@0
   398
lflags	= $(lflags) -ws:aggressive
sl@0
   399
!endif
sl@0
   400
sl@0
   401
dlllflags = $(lflags) -dll
sl@0
   402
conlflags = $(lflags) -subsystem:console
sl@0
   403
guilflags = $(lflags) -subsystem:windows
sl@0
   404
sl@0
   405
baselibs  = kernel32.lib advapi32.lib user32.lib
sl@0
   406
# Avoid 'unresolved external symbol __security_cookie' errors.
sl@0
   407
# c.f. http://support.microsoft.com/?id=894573
sl@0
   408
!if "$(MACHINE)" == "IA64" || "$(MACHINE)" == "AMD64"
sl@0
   409
baselibs   = $(baselibs) bufferoverflowU.lib
sl@0
   410
!endif
sl@0
   411
sl@0
   412
#---------------------------------------------------------------------
sl@0
   413
# TclTest flags
sl@0
   414
#---------------------------------------------------------------------
sl@0
   415
sl@0
   416
!IF "$(TESTPAT)" != ""
sl@0
   417
TESTFLAGS = -file $(TESTPAT)
sl@0
   418
!ENDIF
sl@0
   419
sl@0
   420
sl@0
   421
#---------------------------------------------------------------------
sl@0
   422
# Project specific targets
sl@0
   423
#---------------------------------------------------------------------
sl@0
   424
sl@0
   425
release:    setup $(TCLSH) $(TCLSTUBLIB) dlls
sl@0
   426
core:	    setup $(TCLLIB) $(TCLSTUBLIB)
sl@0
   427
shell:	    setup $(TCLSH)
sl@0
   428
dlls:	    setup $(TCLPIPEDLL) $(TCLREGLIB) $(TCLDDELIB)
sl@0
   429
all:	    setup $(TCLSH) $(TCLSTUBLIB) dlls $(CAT32) 
sl@0
   430
tcltest:    setup $(TCLTEST) dlls $(CAT32)
sl@0
   431
install:    install-binaries install-libraries install-docs
sl@0
   432
sl@0
   433
sl@0
   434
test: setup $(TCLTEST) dlls $(CAT32)
sl@0
   435
	set TCL_LIBRARY=$(ROOT)/library
sl@0
   436
!if "$(OS)" == "Windows_NT"  || "$(MSVCDIR)" == "IDE"
sl@0
   437
	$(TCLTEST) "$(ROOT)/tests/all.tcl" $(TESTFLAGS)
sl@0
   438
!else
sl@0
   439
	$(TCLTEST) "$(ROOT)/tests/all.tcl" $(TESTFLAGS) > tests.log
sl@0
   440
	type tests.log | more
sl@0
   441
!endif
sl@0
   442
sl@0
   443
runtest: setup $(TCLTEST) dlls $(CAT32)
sl@0
   444
       set TCL_LIBRARY=$(ROOT)/library
sl@0
   445
       $(TCLTEST)
sl@0
   446
sl@0
   447
setup:
sl@0
   448
	@if not exist $(OUT_DIR)\nul mkdir $(OUT_DIR)
sl@0
   449
	@if not exist $(TMP_DIR)\nul mkdir $(TMP_DIR)
sl@0
   450
sl@0
   451
!if !$(STATIC_BUILD)
sl@0
   452
$(TCLIMPLIB): $(TCLLIB)
sl@0
   453
!endif
sl@0
   454
sl@0
   455
$(TCLLIB): $(TCLOBJS)
sl@0
   456
!if $(STATIC_BUILD)
sl@0
   457
	$(lib32) -nologo -out:$@ @<<
sl@0
   458
$**
sl@0
   459
<<
sl@0
   460
!else
sl@0
   461
	$(link32) $(dlllflags) -base:@$(WINDIR)\coffbase.txt,tcl -out:$@ \
sl@0
   462
		$(baselibs) @<<
sl@0
   463
$**
sl@0
   464
<<
sl@0
   465
	$(_VC_MANIFEST_EMBED_DLL)
sl@0
   466
	-@del $*.exp
sl@0
   467
!endif
sl@0
   468
sl@0
   469
$(TCLSTUBLIB): $(TCLSTUBOBJS)
sl@0
   470
	$(lib32) -nologo -out:$@ $(TCLSTUBOBJS)
sl@0
   471
sl@0
   472
$(TCLSH): $(TCLSHOBJS) $(TCLIMPLIB)
sl@0
   473
	$(link32) $(conlflags) -stack:2300000 -out:$@ $(baselibs) $**
sl@0
   474
	$(_VC_MANIFEST_EMBED_EXE)
sl@0
   475
sl@0
   476
$(TCLTEST): $(TCLTESTOBJS) $(TCLIMPLIB)
sl@0
   477
	$(link32) $(conlflags) -stack:2300000 -out:$@ $(baselibs) $**
sl@0
   478
	$(_VC_MANIFEST_EMBED_EXE)
sl@0
   479
sl@0
   480
$(TCLPIPEDLL): $(WINDIR)\stub16.c
sl@0
   481
	$(cc32) $(CON_CFLAGS) -Fo$(TMP_DIR)\ $(WINDIR)\stub16.c
sl@0
   482
	$(link32) $(conlflags) -out:$@ $(TMP_DIR)\stub16.obj $(baselibs)
sl@0
   483
	$(_VC_MANIFEST_EMBED_DLL)
sl@0
   484
sl@0
   485
!if $(STATIC_BUILD)
sl@0
   486
$(TCLDDELIB): $(TMP_DIR)\tclWinDde.obj
sl@0
   487
	$(lib32) -nologo -out:$@ $(TMP_DIR)\tclWinDde.obj
sl@0
   488
!else
sl@0
   489
$(TCLDDELIB): $(TMP_DIR)\tclWinDde.obj $(TCLSTUBLIB)
sl@0
   490
	$(link32) $(dlllflags) -base:@$(WINDIR)\coffbase.txt,tcldde -out:$@ \
sl@0
   491
		$** $(baselibs)
sl@0
   492
	$(_VC_MANIFEST_EMBED_DLL)
sl@0
   493
	-@del $*.exp
sl@0
   494
	-@del $*.lib
sl@0
   495
!endif
sl@0
   496
sl@0
   497
!if $(STATIC_BUILD)
sl@0
   498
$(TCLREGLIB): $(TMP_DIR)\tclWinReg.obj
sl@0
   499
	$(lib32) -nologo -out:$@ $(TMP_DIR)\tclWinReg.obj
sl@0
   500
!else
sl@0
   501
$(TCLREGLIB): $(TMP_DIR)\tclWinReg.obj $(TCLSTUBLIB)
sl@0
   502
	$(link32) $(dlllflags) -base:@$(WINDIR)\coffbase.txt,tclreg -out:$@ \
sl@0
   503
		$** $(baselibs)
sl@0
   504
	$(_VC_MANIFEST_EMBED_DLL)
sl@0
   505
	-@del $*.exp
sl@0
   506
	-@del $*.lib
sl@0
   507
!endif
sl@0
   508
sl@0
   509
$(CAT32): $(WINDIR)\cat.c
sl@0
   510
	$(cc32) $(CON_CFLAGS) -Fo$(TMP_DIR)\ $?
sl@0
   511
	$(link32) $(conlflags) -out:$@ -stack:16384 $(TMP_DIR)\cat.obj \
sl@0
   512
		$(baselibs)
sl@0
   513
        $(_VC_MANIFEST_EMBED_EXE)
sl@0
   514
sl@0
   515
#---------------------------------------------------------------------
sl@0
   516
# Regenerate the stubs files.  [Development use only]
sl@0
   517
#---------------------------------------------------------------------
sl@0
   518
sl@0
   519
genstubs:
sl@0
   520
!if !exist($(TCLSH))
sl@0
   521
	@echo Build tclsh first!
sl@0
   522
!else
sl@0
   523
	$(TCLSH) $(TOOLSDIR:\=/)\genStubs.tcl $(GENERICDIR:\=/) \
sl@0
   524
		$(GENERICDIR:\=/)/tcl.decls $(GENERICDIR:\=/)/tclInt.decls
sl@0
   525
!endif
sl@0
   526
sl@0
   527
sl@0
   528
#---------------------------------------------------------------------
sl@0
   529
# Generate the makefile depedancies.
sl@0
   530
#---------------------------------------------------------------------
sl@0
   531
sl@0
   532
depend:
sl@0
   533
!if !exist($(TCLSH))
sl@0
   534
	@echo Build tclsh first!
sl@0
   535
!else
sl@0
   536
	$(TCLSH) $(TOOLSDIR:\=/)/mkdepend.tcl -vc32 -out:"$(OUT_DIR)\depend.mk" \
sl@0
   537
		-passthru:"-DBUILD_tcl $(TCL_INCLUDES:"="")" $(GENERICDIR) \
sl@0
   538
		$(COMPATDIR) $(WINDIR) @<<
sl@0
   539
$(TCLOBJS)
sl@0
   540
<<
sl@0
   541
!endif
sl@0
   542
sl@0
   543
sl@0
   544
#---------------------------------------------------------------------
sl@0
   545
# Build the windows help file.
sl@0
   546
#---------------------------------------------------------------------
sl@0
   547
sl@0
   548
TCLHLPBASE	= $(PROJECT)$(VERSION)
sl@0
   549
HELPFILE	= $(OUT_DIR)\$(TCLHLPBASE).hlp
sl@0
   550
HELPCNT		= $(OUT_DIR)\$(TCLHLPBASE).cnt
sl@0
   551
DOCTMP_DIR	= $(OUT_DIR)\$(PROJECT)_docs
sl@0
   552
HELPRTF		= $(DOCTMP_DIR)\$(PROJECT).rtf
sl@0
   553
MAN2HELP	= $(DOCTMP_DIR)\man2help.tcl
sl@0
   554
MAN2HELP2	= $(DOCTMP_DIR)\man2help2.tcl
sl@0
   555
INDEX		= $(DOCTMP_DIR)\index.tcl
sl@0
   556
BMP		= $(DOCTMP_DIR)\feather.bmp
sl@0
   557
BMP_NOPATH	= feather.bmp
sl@0
   558
MAN2TCL		= $(DOCTMP_DIR)\man2tcl.exe
sl@0
   559
sl@0
   560
winhelp: docsetup $(HELPFILE)
sl@0
   561
sl@0
   562
docsetup:
sl@0
   563
	@if not exist $(DOCTMP_DIR)\nul mkdir $(DOCTMP_DIR)
sl@0
   564
sl@0
   565
$(MAN2HELP) $(MAN2HELP2) $(INDEX) $(BMP): $(TOOLSDIR)\$$(@F)
sl@0
   566
	@$(CPY) $(TOOLSDIR)\$(@F) $(@D)
sl@0
   567
sl@0
   568
$(HELPFILE): $(HELPRTF) $(BMP)
sl@0
   569
	cd $(DOCTMP_DIR)
sl@0
   570
	start /wait hcrtf.exe -x <<$(PROJECT).hpj
sl@0
   571
[OPTIONS]
sl@0
   572
COMPRESS=12 Hall Zeck
sl@0
   573
LCID=0x409 0x0 0x0 ; English (United States)
sl@0
   574
TITLE=Tcl/Tk Reference Manual
sl@0
   575
BMROOT=.
sl@0
   576
CNT=$(@B).cnt
sl@0
   577
HLP=$(@B).hlp
sl@0
   578
sl@0
   579
[FILES]
sl@0
   580
$(PROJECT).rtf
sl@0
   581
sl@0
   582
[WINDOWS]
sl@0
   583
main="Tcl/Tk Reference Manual",,27648,(r15263976),(r65535)
sl@0
   584
sl@0
   585
[CONFIG]
sl@0
   586
BrowseButtons()
sl@0
   587
CreateButton(1, "Web", ExecFile("http://www.tcl.tk"))
sl@0
   588
CreateButton(2, "SF", ExecFile("http://sf.net/projects/tcl"))
sl@0
   589
CreateButton(3, "Wiki", ExecFile("http://wiki.tcl.tk"))
sl@0
   590
CreateButton(4, "FAQ", ExecFile("http://www.purl.org/NET/Tcl-FAQ/"))
sl@0
   591
<<
sl@0
   592
	cd $(MAKEDIR)
sl@0
   593
	@$(CPY) "$(DOCTMP_DIR)\$(@B).hlp" "$(OUT_DIR)"
sl@0
   594
	@$(CPY) "$(DOCTMP_DIR)\$(@B).cnt" "$(OUT_DIR)"
sl@0
   595
sl@0
   596
$(MAN2TCL): $(TOOLSDIR)\$$(@B).c
sl@0
   597
	$(cc32) -nologo -G4 -ML -O2 -Fo$(@D)\ $(TOOLSDIR)\$(@B).c -link -out:$@
sl@0
   598
sl@0
   599
$(HELPRTF): $(MAN2TCL) $(MAN2HELP) $(MAN2HELP2) $(INDEX) $(DOCDIR)\*
sl@0
   600
	$(TCLSH) $(MAN2HELP) -bitmap $(BMP_NOPATH) $(PROJECT) $(VERSION) $(DOCDIR:\=/)
sl@0
   601
sl@0
   602
install-docs:
sl@0
   603
!if exist($(HELPFILE))
sl@0
   604
	@$(CPY) "$(HELPFILE)" "$(DOC_INSTALL_DIR)\"
sl@0
   605
	@$(CPY) "$(HELPCNT)" "$(DOC_INSTALL_DIR)\"
sl@0
   606
!endif
sl@0
   607
sl@0
   608
sl@0
   609
#---------------------------------------------------------------------
sl@0
   610
# Special case object file targets
sl@0
   611
#---------------------------------------------------------------------
sl@0
   612
sl@0
   613
$(TMP_DIR)\testMain.obj: $(WINDIR)\tclAppInit.c
sl@0
   614
!if $(TCL_USE_STATIC_PACKAGES)
sl@0
   615
	$(cc32) $(TCL_CFLAGS) -DTCL_TEST -DTCL_USE_STATIC_PACKAGES -Fo$@ $?
sl@0
   616
!else
sl@0
   617
	$(cc32) $(TCL_CFLAGS) -DTCL_TEST -Fo$@ $?
sl@0
   618
!endif
sl@0
   619
sl@0
   620
$(TMP_DIR)\tclTest.obj: $(GENERICDIR)\tclTest.c
sl@0
   621
	$(cc32) $(TCL_CFLAGS) -Fo$@ $?
sl@0
   622
sl@0
   623
$(TMP_DIR)\tclTestObj.obj: $(GENERICDIR)\tclTestObj.c
sl@0
   624
	$(cc32) $(TCL_CFLAGS) -Fo$@ $?
sl@0
   625
sl@0
   626
$(TMP_DIR)\tclWinTest.obj: $(WINDIR)\tclWinTest.c
sl@0
   627
	$(cc32) $(TCL_CFLAGS) -Fo$@ $?
sl@0
   628
sl@0
   629
$(TMP_DIR)\tclAppInit.obj: $(WINDIR)\tclAppInit.c
sl@0
   630
!if $(TCL_USE_STATIC_PACKAGES)
sl@0
   631
	$(cc32) $(TCL_CFLAGS) -DTCL_USE_STATIC_PACKAGES -Fo$@ $?
sl@0
   632
!else
sl@0
   633
	$(cc32) $(TCL_CFLAGS) -Fo$@ $?
sl@0
   634
!endif
sl@0
   635
sl@0
   636
### The following objects should be built using the stub interfaces
sl@0
   637
### *ALL* extensions need to built with -DTCL_THREADS=1
sl@0
   638
sl@0
   639
$(TMP_DIR)\tclWinReg.obj: $(WINDIR)\tclWinReg.c
sl@0
   640
!if $(STATIC_BUILD)
sl@0
   641
	$(cc32) $(BASE_CFLAGS) -DTCL_THREADS=1 -DSTATIC_BUILD -Fo$@ $?
sl@0
   642
!else
sl@0
   643
	$(cc32) $(BASE_CFLAGS) -DTCL_THREADS=1 -DUSE_TCL_STUBS -Fo$@ $?
sl@0
   644
!endif
sl@0
   645
sl@0
   646
sl@0
   647
$(TMP_DIR)\tclWinDde.obj: $(WINDIR)\tclWinDde.c
sl@0
   648
!if $(STATIC_BUILD)
sl@0
   649
	$(cc32) $(BASE_CFLAGS) -DTCL_THREADS=1 -DSTATIC_BUILD -Fo$@ $?
sl@0
   650
!else
sl@0
   651
	$(cc32) $(BASE_CFLAGS) -DTCL_THREADS=1 -DUSE_TCL_STUBS -Fo$@ $?
sl@0
   652
!endif
sl@0
   653
sl@0
   654
sl@0
   655
### The following objects are part of the stub library and should not
sl@0
   656
### be built as DLL objects.  -Zl is used to avoid a dependancy on any
sl@0
   657
### specific C run-time.
sl@0
   658
sl@0
   659
$(TMP_DIR)\tclStubLib.obj: $(GENERICDIR)\tclStubLib.c
sl@0
   660
	$(cc32) $(cdebug) $(cflags) -Zl -DSTATIC_BUILD $(TCL_INCLUDES) -Fo$@ $?
sl@0
   661
sl@0
   662
sl@0
   663
#---------------------------------------------------------------------
sl@0
   664
# Dedependency rules
sl@0
   665
#---------------------------------------------------------------------
sl@0
   666
sl@0
   667
$(GENERICDIR)\regcomp.c: \
sl@0
   668
	$(GENERICDIR)\regguts.h \
sl@0
   669
	$(GENERICDIR)\regc_lex.c \
sl@0
   670
	$(GENERICDIR)\regc_color.c \
sl@0
   671
	$(GENERICDIR)\regc_nfa.c \
sl@0
   672
	$(GENERICDIR)\regc_cvec.c \
sl@0
   673
	$(GENERICDIR)\regc_locale.c
sl@0
   674
$(GENERICDIR)\regcustom.h: \
sl@0
   675
	$(GENERICDIR)\tclInt.h \
sl@0
   676
	$(GENERICDIR)\tclPort.h \
sl@0
   677
	$(GENERICDIR)\regex.h
sl@0
   678
$(GENERICDIR)\regexec.c: \
sl@0
   679
	$(GENERICDIR)\rege_dfa.c \
sl@0
   680
	$(GENERICDIR)\regguts.h
sl@0
   681
$(GENERICDIR)\regerror.c: $(GENERICDIR)\regguts.h
sl@0
   682
$(GENERICDIR)\regfree.c: $(GENERICDIR)\regguts.h
sl@0
   683
$(GENERICDIR)\regfronts.c: $(GENERICDIR)\regguts.h
sl@0
   684
$(GENERICDIR)\regguts.h: $(GENERICDIR)\regcustom.h
sl@0
   685
sl@0
   686
!if exist("$(OUT_DIR)\depend.mk")
sl@0
   687
!include "$(OUT_DIR)\depend.mk"
sl@0
   688
!message *** Dependency rules in effect.
sl@0
   689
!else
sl@0
   690
!message *** Dependency rules are not being used.
sl@0
   691
!endif
sl@0
   692
sl@0
   693
### add a spacer in the output
sl@0
   694
!message
sl@0
   695
sl@0
   696
sl@0
   697
#---------------------------------------------------------------------
sl@0
   698
# Implicit rules
sl@0
   699
#---------------------------------------------------------------------
sl@0
   700
sl@0
   701
{$(WINDIR)}.c{$(TMP_DIR)}.obj::
sl@0
   702
    $(cc32) $(TCL_CFLAGS) -DBUILD_tcl -Fo$(TMP_DIR)\ @<<
sl@0
   703
$<
sl@0
   704
<<
sl@0
   705
sl@0
   706
{$(GENERICDIR)}.c{$(TMP_DIR)}.obj::
sl@0
   707
    $(cc32) $(TCL_CFLAGS) -DBUILD_tcl -Fo$(TMP_DIR)\ @<<
sl@0
   708
$<
sl@0
   709
<<
sl@0
   710
sl@0
   711
{$(COMPATDIR)}.c{$(TMP_DIR)}.obj::
sl@0
   712
    $(cc32) $(TCL_CFLAGS) -DBUILD_tcl -Fo$(TMP_DIR)\ @<<
sl@0
   713
$<
sl@0
   714
<<
sl@0
   715
sl@0
   716
{$(WINDIR)}.rc{$(TMP_DIR)}.res:
sl@0
   717
	$(rc32) -fo $@ -r -i "$(GENERICDIR)" -D__WIN32__ \
sl@0
   718
!if $(DEBUG)
sl@0
   719
	-d DEBUG \
sl@0
   720
!endif
sl@0
   721
!if $(TCL_THREADS)
sl@0
   722
	-d TCL_THREADS \
sl@0
   723
!endif
sl@0
   724
!if $(STATIC_BUILD)
sl@0
   725
	-d STATIC_BUILD \
sl@0
   726
!endif
sl@0
   727
	$<
sl@0
   728
sl@0
   729
.SUFFIXES:
sl@0
   730
.SUFFIXES:.c .rc
sl@0
   731
sl@0
   732
sl@0
   733
#---------------------------------------------------------------------
sl@0
   734
# Installation.
sl@0
   735
#---------------------------------------------------------------------
sl@0
   736
sl@0
   737
install-binaries:
sl@0
   738
	@echo Installing to '$(_INSTALLDIR)'
sl@0
   739
	@echo installing $(TCLLIBNAME)
sl@0
   740
!if "$(TCLLIB)" != "$(TCLIMPLIB)"
sl@0
   741
	@$(CPY) "$(TCLLIB)" "$(BIN_INSTALL_DIR)\"
sl@0
   742
!endif
sl@0
   743
	@$(CPY) "$(TCLIMPLIB)" "$(LIB_INSTALL_DIR)\"
sl@0
   744
!if exist($(TCLSH))
sl@0
   745
	@echo installing $(TCLSHNAME)
sl@0
   746
	@$(CPY) "$(TCLSH)" "$(BIN_INSTALL_DIR)\"
sl@0
   747
!endif
sl@0
   748
!if exist($(TCLPIPEDLL))
sl@0
   749
	@echo installing $(TCLPIPEDLLNAME)
sl@0
   750
	@$(CPY) "$(TCLPIPEDLL)" "$(BIN_INSTALL_DIR)\"
sl@0
   751
!endif
sl@0
   752
	@echo installing $(TCLSTUBLIBNAME)
sl@0
   753
	@$(CPY) "$(TCLSTUBLIB)" "$(LIB_INSTALL_DIR)\"
sl@0
   754
sl@0
   755
install-libraries:
sl@0
   756
	@echo installing http1.0
sl@0
   757
	@$(CPY) "$(ROOT)\library\http1.0\*.tcl" \
sl@0
   758
		"$(SCRIPT_INSTALL_DIR)\http1.0\"
sl@0
   759
	@echo installing http2.5
sl@0
   760
	@$(CPY) "$(ROOT)\library\http\*.tcl" \
sl@0
   761
		"$(SCRIPT_INSTALL_DIR)\http2.5\"
sl@0
   762
	@echo installing opt0.4
sl@0
   763
	@$(CPY) "$(ROOT)\library\opt\*.tcl" \
sl@0
   764
		"$(SCRIPT_INSTALL_DIR)\opt0.4\"
sl@0
   765
	@echo installing msgcat1.3
sl@0
   766
	@$(CPY) "$(ROOT)\library\msgcat\*.tcl" \
sl@0
   767
	    "$(SCRIPT_INSTALL_DIR)\msgcat1.3\"
sl@0
   768
	@echo installing tcltest2.2 
sl@0
   769
	@$(CPY) "$(ROOT)\library\tcltest\*.tcl" \
sl@0
   770
	    "$(SCRIPT_INSTALL_DIR)\tcltest2.2\"
sl@0
   771
	@echo installing $(TCLDDELIBNAME)
sl@0
   772
!if $(STATIC_BUILD)
sl@0
   773
	@$(CPY) "$(TCLDDELIB)" "$(LIB_INSTALL_DIR)\"
sl@0
   774
!else
sl@0
   775
	@$(CPY) "$(TCLDDELIB)" "$(LIB_INSTALL_DIR)\dde$(DDEDOTVERSION)\"
sl@0
   776
	@$(CPY) "$(ROOT)\library\dde\pkgIndex.tcl" \
sl@0
   777
	    "$(LIB_INSTALL_DIR)\dde$(DDEDOTVERSION)\"
sl@0
   778
!endif
sl@0
   779
	@echo installing $(TCLREGLIBNAME)
sl@0
   780
!if $(STATIC_BUILD)
sl@0
   781
	@$(CPY) "$(TCLREGLIB)" "$(LIB_INSTALL_DIR)\"
sl@0
   782
!else
sl@0
   783
	@$(CPY) "$(TCLREGLIB)" "$(LIB_INSTALL_DIR)\reg$(REGDOTVERSION)\"
sl@0
   784
	@$(CPY) "$(ROOT)\library\reg\pkgIndex.tcl" \
sl@0
   785
	    "$(LIB_INSTALL_DIR)\reg$(REGDOTVERSION)\"
sl@0
   786
!endif
sl@0
   787
	@echo installing encoding files
sl@0
   788
	@$(CPY) "$(ROOT)\library\encoding\*.enc" \
sl@0
   789
		"$(SCRIPT_INSTALL_DIR)\encoding\"
sl@0
   790
	@echo installing library files
sl@0
   791
	@$(CPY) "$(GENERICDIR)\tcl.h"          "$(INCLUDE_INSTALL_DIR)\"
sl@0
   792
	@$(CPY) "$(GENERICDIR)\tclDecls.h"     "$(INCLUDE_INSTALL_DIR)\"
sl@0
   793
	@$(CPY) "$(GENERICDIR)\tclPlatDecls.h" "$(INCLUDE_INSTALL_DIR)\"
sl@0
   794
	@$(CPY) "$(ROOT)\library\history.tcl"  "$(SCRIPT_INSTALL_DIR)\"
sl@0
   795
	@$(CPY) "$(ROOT)\library\init.tcl"     "$(SCRIPT_INSTALL_DIR)\"
sl@0
   796
	@$(CPY) "$(ROOT)\library\ldAout.tcl"   "$(SCRIPT_INSTALL_DIR)\"
sl@0
   797
	@$(CPY) "$(ROOT)\library\parray.tcl"   "$(SCRIPT_INSTALL_DIR)\"
sl@0
   798
	@$(CPY) "$(ROOT)\library\safe.tcl"     "$(SCRIPT_INSTALL_DIR)\"
sl@0
   799
	@$(CPY) "$(ROOT)\library\tclIndex"     "$(SCRIPT_INSTALL_DIR)\"
sl@0
   800
	@$(CPY) "$(ROOT)\library\package.tcl"  "$(SCRIPT_INSTALL_DIR)\"
sl@0
   801
	@$(CPY) "$(ROOT)\library\word.tcl"     "$(SCRIPT_INSTALL_DIR)\"
sl@0
   802
	@$(CPY) "$(ROOT)\library\auto.tcl"     "$(SCRIPT_INSTALL_DIR)\"
sl@0
   803
sl@0
   804
sl@0
   805
#---------------------------------------------------------------------
sl@0
   806
# Clean up
sl@0
   807
#---------------------------------------------------------------------
sl@0
   808
sl@0
   809
tidy:
sl@0
   810
	@echo Removing $(TCLLIB) ...
sl@0
   811
	@if exist $(TCLLIB) del $(TCLLIB)
sl@0
   812
	@echo Removing $(TCLSH) ...
sl@0
   813
	@if exist $(TCLSH) del $(TCLSH)
sl@0
   814
	@echo Removing $(TCLTEST) ...
sl@0
   815
	@if exist $(TCLTEST) del $(TCLTEST)
sl@0
   816
	@echo Removing $(TCLDDELIB) ...
sl@0
   817
	@if exist $(TCLDDELIB) del $(TCLDDELIB)
sl@0
   818
	@echo Removing $(TCLREGLIB) ...
sl@0
   819
	@if exist $(TCLREGLIB) del $(TCLREGLIB)
sl@0
   820
sl@0
   821
clean:
sl@0
   822
	@echo Cleaning $(TMP_DIR)\* ...
sl@0
   823
	@if exist $(TMP_DIR)\nul $(RMDIR) $(TMP_DIR)
sl@0
   824
sl@0
   825
hose:
sl@0
   826
	@echo Hosing $(OUT_DIR)\* ...
sl@0
   827
	@if exist $(OUT_DIR)\nul $(RMDIR) $(OUT_DIR)
sl@0
   828