os/persistentdata/persistentstorage/sqlite3api/TEST/TCL/tcldistribution/win/makefile.vc
First public contribution.
1 #------------------------------------------------------------------------------
4 # Microsoft Visual C++ makefile for use with nmake.exe v1.62+ (VC++ 5.0+)
6 # See the file "license.terms" for information on usage and redistribution
7 # of this file, and for a DISCLAIMER OF ALL WARRANTIES.
9 # Copyright (c) 1995-1996 Sun Microsystems, Inc.
10 # Copyright (c) 1998-2000 Ajuba Solutions.
11 # Copyright (c) 2001-2005 ActiveState Corporation.
12 # Copyright (c) 2001-2002 David Gravereaux.
14 #------------------------------------------------------------------------------
15 # RCS: @(#) $Id: makefile.vc,v 1.100.2.9 2006/09/26 21:40:36 patthoyts Exp $
16 #------------------------------------------------------------------------------
18 # Check to see we are configured to build with MSVC (MSDEVDIR or MSVCDIR)
19 # or with the MS Platform SDK (MSSDK). Visual Studio .NET 2003 and 2005 define
20 # VCINSTALLDIR instead.
21 !if !defined(MSDEVDIR) && !defined(MSVCDIR) && !defined(MSSDK) && !defined(VCINSTALLDIR)
23 You need to run vcvars32.bat from Developer Studio or setenv.bat from the^
24 Platform SDK first to setup the environment. Jump to this line to read^
25 the build instructions.
29 #------------------------------------------------------------------------------
30 # HOW TO USE this makefile:
32 # 1) It is now necessary to have MSVCDir, MSDevDir or MSSDK set in the
33 # environment. This is used as a check to see if vcvars32.bat had been
34 # run prior to running nmake or during the installation of Microsoft
35 # Visual C++, MSVCDir had been set globally and the PATH adjusted.
36 # Either way is valid.
38 # You'll need to run vcvars32.bat contained in the MsDev's vc(98)/bin
39 # directory to setup the proper environment, if needed, for your
40 # current setup. This is a needed bootstrap requirement and allows the
41 # swapping of different environments to be easier.
43 # 2) To use the Platform SDK (not expressly needed), run setenv.bat after
44 # vcvars32.bat according to the instructions for it. This can also
45 # turn on the 64-bit compiler, if your SDK has it.
48 # release -- Builds the core, the shell and the dlls. (default)
49 # dlls -- Just builds the windows extensions and the 16-bit DOS
50 # pipe/thunk helper app.
51 # shell -- Just builds the shell and the core.
52 # core -- Only builds the core [tclXX.(dll|lib)].
53 # all -- Builds everything.
54 # test -- Builds and runs the test suite.
55 # tcltest -- Just builds the test shell.
56 # install -- Installs the built binaries and libraries to $(INSTALLDIR)
57 # as the root of the install tree.
58 # tidy/clean/hose -- varying levels of cleaning.
59 # genstubs -- Rebuilds the Stubs table and support files (dev only).
60 # depend -- Generates an accurate set of source dependancies for this
61 # makefile. Helpful to avoid problems when the sources are
62 # refreshed and you rebuild, but can "overbuild" when common
63 # headers like tclInt.h just get small changes.
64 # winhelp -- Builds the windows .hlp file for Tcl from the troff man
65 # files found in $(ROOT)\doc .
67 # 4) Macros usable on the commandline:
69 # Sets where to install Tcl from the built binaries.
70 # C:\Progra~1\Tcl is assumed when not specified.
72 # OPTS=static,msvcrt,staticpkg,threads,symbols,profile,loimpact,none
73 # Sets special options for the core. The default is for none.
74 # Any combination of the above may be used (comma separated).
75 # 'none' will over-ride everything to nothing.
77 # static = Builds a static library of the core instead of a
78 # dll. The shell will be static (and large), as well.
79 # msvcrt = Effects the static option only to switch it from
80 # using libcmt(d) as the C runtime [by default] to
81 # msvcrt(d). This is useful for static embedding
83 # staticpkg = Effects the static option only to switch
84 # tclshXX.exe to have the dde and reg extension linked
86 # threads = Turns on full multithreading support.
87 # thrdalloc = Use the thread allocator (shared global free pool).
88 # symbols = Adds symbols for step debugging.
89 # profile = Adds profiling hooks. Map file is assumed.
90 # loimpact = Adds a flag for how NT treats the heap to keep memory
91 # in use, low. This is said to impact alloc performance.
93 # STATS=memdbg,compdbg,none
94 # Sets optional memory and bytecode compiler debugging code added
95 # to the core. The default is for none. Any combination of the
96 # above may be used (comma separated). 'none' will over-ride
97 # everything to nothing.
99 # memdbg = Enables the debugging memory allocator.
100 # compdbg = Enables byte compilation logging.
102 # MACHINE=(IX86|IA64|ALPHA)
103 # Set the machine type used for the compiler, linker, and
104 # resource compiler. This hook is needed to tell the tools
105 # when alternate platforms are requested. IX86 is the default
106 # when not specified.
110 # Hooks to allow the intermediate and output directories to be
111 # changed. $(OUT_DIR) is assumed to be
112 # $(BINROOT)\(Release|Debug) based on if symbols are requested.
113 # $(TMP_DIR) will de $(OUT_DIR)\<buildtype> by default.
116 # Reads the tests requested to be run from this file.
120 # Basic syntax of calling nmake looks like this:
121 # nmake [-nologo] -f makefile.vc [target|macrodef [target|macrodef] [...]]
123 # Standard (no frills)
124 # c:\tcl_src\win\>c:\progra~1\micros~1\vc98\bin\vcvars32.bat
125 # Setting environment for using Microsoft Visual C++ tools.
126 # c:\tcl_src\win\>nmake -f makefile.vc release
127 # c:\tcl_src\win\>nmake -f makefile.vc install INSTALLDIR=c:\progra~1\tcl
130 # c:\tcl_src\win\>c:\progra~1\micros~1\vc98\bin\vcvars32.bat
131 # Setting environment for using Microsoft Visual C++ tools.
132 # c:\tcl_src\win\>c:\progra~1\platfo~1\setenv.bat /pre64 /RETAIL
133 # Targeting Windows pre64 RETAIL
134 # c:\tcl_src\win\>nmake -f makefile.vc MACHINE=IA64
136 #------------------------------------------------------------------------------
137 #==============================================================================
138 ###############################################################################
141 # //==================================================================\\
142 # >>[ -> Do not modify below this line. <- ]<<
143 # >>[ Please, use the commandline macros to modify how Tcl is built. ]<<
144 # >>[ If you need more features, send us a patch for more macros. ]<<
145 # \\==================================================================//
148 ###############################################################################
149 #==============================================================================
150 #------------------------------------------------------------------------------
152 !if !exist("makefile.vc")
154 You must run this makefile only from the directory it is in.^
155 Please `cd` to its location first.
162 STUBPREFIX = $(PROJECT)stub
164 VERSION = $(DOTVERSION:.=)
167 DDEVERSION = $(DDEDOTVERSION:.=)
170 REGVERSION = $(REGDOTVERSION:.=)
175 TCLIMPLIB = $(OUT_DIR)\$(PROJECT)$(VERSION)$(SUFX).lib
176 TCLLIBNAME = $(PROJECT)$(VERSION)$(SUFX).$(EXT)
177 TCLLIB = $(OUT_DIR)\$(TCLLIBNAME)
179 TCLSTUBLIBNAME = $(STUBPREFIX)$(VERSION).lib
180 TCLSTUBLIB = $(OUT_DIR)\$(TCLSTUBLIBNAME)
182 TCLSHNAME = $(PROJECT)sh$(VERSION)$(SUFX).exe
183 TCLSH = $(OUT_DIR)\$(TCLSHNAME)
184 TCLPIPEDLLNAME = $(PROJECT)pip$(VERSION)$(SUFX:t=).dll
185 TCLPIPEDLL = $(OUT_DIR)\$(TCLPIPEDLLNAME)
187 TCLREGLIBNAME = $(PROJECT)reg$(REGVERSION)$(SUFX:t=).$(EXT)
188 TCLREGLIB = $(OUT_DIR)\$(TCLREGLIBNAME)
190 TCLDDELIBNAME = $(PROJECT)dde$(DDEVERSION)$(SUFX:t=).$(EXT)
191 TCLDDELIB = $(OUT_DIR)\$(TCLDDELIBNAME)
193 TCLTEST = $(OUT_DIR)\$(PROJECT)test.exe
194 CAT32 = $(OUT_DIR)\cat32.exe
196 ### Make sure we use backslash only.
197 LIB_INSTALL_DIR = $(_INSTALLDIR)\lib
198 BIN_INSTALL_DIR = $(_INSTALLDIR)\bin
199 DOC_INSTALL_DIR = $(_INSTALLDIR)\doc
200 SCRIPT_INSTALL_DIR = $(_INSTALLDIR)\lib\tcl$(DOTVERSION)
201 INCLUDE_INSTALL_DIR = $(_INSTALLDIR)\include
204 $(TMP_DIR)\tclAppInit.obj \
205 !if $(TCL_USE_STATIC_PACKAGES)
206 $(TMP_DIR)\tclWinReg.obj \
207 $(TMP_DIR)\tclWinDde.obj \
212 $(TMP_DIR)\tclTest.obj \
213 $(TMP_DIR)\tclTestObj.obj \
214 $(TMP_DIR)\tclTestProcBodyObj.obj \
215 $(TMP_DIR)\tclThreadTest.obj \
216 $(TMP_DIR)\tclWinTest.obj \
217 !if $(TCL_USE_STATIC_PACKAGES)
218 $(TMP_DIR)\tclWinReg.obj \
219 $(TMP_DIR)\tclWinDde.obj \
221 $(TMP_DIR)\testMain.obj
224 $(TMP_DIR)\regcomp.obj \
225 $(TMP_DIR)\regerror.obj \
226 $(TMP_DIR)\regexec.obj \
227 $(TMP_DIR)\regfree.obj \
228 $(TMP_DIR)\strftime.obj \
229 $(TMP_DIR)\strtoll.obj \
230 $(TMP_DIR)\strtoull.obj \
231 $(TMP_DIR)\tclAlloc.obj \
232 $(TMP_DIR)\tclAsync.obj \
233 $(TMP_DIR)\tclBasic.obj \
234 $(TMP_DIR)\tclBinary.obj \
235 $(TMP_DIR)\tclCkalloc.obj \
236 $(TMP_DIR)\tclClock.obj \
237 $(TMP_DIR)\tclCmdAH.obj \
238 $(TMP_DIR)\tclCmdIL.obj \
239 $(TMP_DIR)\tclCmdMZ.obj \
240 $(TMP_DIR)\tclCompCmds.obj \
241 $(TMP_DIR)\tclCompExpr.obj \
242 $(TMP_DIR)\tclCompile.obj \
243 $(TMP_DIR)\tclDate.obj \
244 $(TMP_DIR)\tclEncoding.obj \
245 $(TMP_DIR)\tclEnv.obj \
246 $(TMP_DIR)\tclEvent.obj \
247 $(TMP_DIR)\tclExecute.obj \
248 $(TMP_DIR)\tclFCmd.obj \
249 $(TMP_DIR)\tclFileName.obj \
250 $(TMP_DIR)\tclGet.obj \
251 $(TMP_DIR)\tclHash.obj \
252 $(TMP_DIR)\tclHistory.obj \
253 $(TMP_DIR)\tclIndexObj.obj \
254 $(TMP_DIR)\tclInterp.obj \
255 $(TMP_DIR)\tclIO.obj \
256 $(TMP_DIR)\tclIOCmd.obj \
257 $(TMP_DIR)\tclIOGT.obj \
258 $(TMP_DIR)\tclIOSock.obj \
259 $(TMP_DIR)\tclIOUtil.obj \
260 $(TMP_DIR)\tclLink.obj \
261 $(TMP_DIR)\tclListObj.obj \
262 $(TMP_DIR)\tclLiteral.obj \
263 $(TMP_DIR)\tclLoad.obj \
264 $(TMP_DIR)\tclMain.obj \
265 $(TMP_DIR)\tclNamesp.obj \
266 $(TMP_DIR)\tclNotify.obj \
267 $(TMP_DIR)\tclObj.obj \
268 $(TMP_DIR)\tclPanic.obj \
269 $(TMP_DIR)\tclParse.obj \
270 $(TMP_DIR)\tclParseExpr.obj \
271 $(TMP_DIR)\tclPipe.obj \
272 $(TMP_DIR)\tclPkg.obj \
273 $(TMP_DIR)\tclPosixStr.obj \
274 $(TMP_DIR)\tclPreserve.obj \
275 $(TMP_DIR)\tclProc.obj \
276 $(TMP_DIR)\tclRegexp.obj \
277 $(TMP_DIR)\tclResolve.obj \
278 $(TMP_DIR)\tclResult.obj \
279 $(TMP_DIR)\tclScan.obj \
280 $(TMP_DIR)\tclStringObj.obj \
281 $(TMP_DIR)\tclStubInit.obj \
282 $(TMP_DIR)\tclStubLib.obj \
283 $(TMP_DIR)\tclThread.obj \
284 $(TMP_DIR)\tclThreadAlloc.obj \
285 $(TMP_DIR)\tclThreadJoin.obj \
286 $(TMP_DIR)\tclTimer.obj \
287 $(TMP_DIR)\tclUtf.obj \
288 $(TMP_DIR)\tclUtil.obj \
289 $(TMP_DIR)\tclVar.obj \
290 $(TMP_DIR)\tclWin32Dll.obj \
291 $(TMP_DIR)\tclWinChan.obj \
292 $(TMP_DIR)\tclWinConsole.obj \
293 $(TMP_DIR)\tclWinSerial.obj \
294 $(TMP_DIR)\tclWinError.obj \
295 $(TMP_DIR)\tclWinFCmd.obj \
296 $(TMP_DIR)\tclWinFile.obj \
297 $(TMP_DIR)\tclWinInit.obj \
298 $(TMP_DIR)\tclWinLoad.obj \
299 $(TMP_DIR)\tclWinMtherr.obj \
300 $(TMP_DIR)\tclWinNotify.obj \
301 $(TMP_DIR)\tclWinPipe.obj \
302 $(TMP_DIR)\tclWinSock.obj \
303 $(TMP_DIR)\tclWinThrd.obj \
304 $(TMP_DIR)\tclWinTime.obj \
309 TCLSTUBOBJS = $(TMP_DIR)\tclStubLib.obj
311 ### The following paths CANNOT have spaces in them.
312 COMPATDIR = $(ROOT)\compat
314 GENERICDIR = $(ROOT)\generic
315 TOOLSDIR = $(ROOT)\tools
319 #---------------------------------------------------------------------
321 #---------------------------------------------------------------------
325 ### This cranks the optimization level to maximize speed
326 cdebug = -O2 $(OPTIMIZATIONS)
330 !else if "$(MACHINE)" == "IA64"
331 ### Warnings are too many, can't support warnings into errors.
332 cdebug = -Z7 -Od $(DEBUGFLAGS)
334 cdebug = -Z7 -WX $(DEBUGFLAGS)
337 ### Declarations common to all compiler options
338 cwarn = -D _CRT_SECURE_NO_DEPRECATE -D _CRT_NONSTDC_NO_DEPRECATE
339 cflags = -nologo -c $(COMPILERFLAGS) $(cwarn) -Fp$(TMP_DIR)^\
342 cflags = $(cflags) -W4
344 cflags = $(cflags) -W3
361 TCL_INCLUDES = -I"$(WINDIR)" -I"$(GENERICDIR)"
362 BASE_CFLAGS = $(cflags) $(cdebug) $(crt) $(TCL_INCLUDES) \
363 -DTCL_PIPE_DLL=\"$(TCLPIPEDLLNAME)\"
364 CON_CFLAGS = $(cflags) $(cdebug) $(crt) -DCONSOLE
365 TCL_CFLAGS = $(BASE_CFLAGS) $(OPTDEFINES)
368 #---------------------------------------------------------------------
370 #---------------------------------------------------------------------
373 ldebug = -debug:full -debugtype:cv
375 ldebug = -release -opt:ref -opt:icf,3
378 ### Declarations common to all linker options
379 lflags = -nologo -machine:$(MACHINE) $(LINKERFLAGS) $(ldebug)
382 lflags = $(lflags) -warn:3
386 lflags = $(lflags) -profile
389 !if $(ALIGN98_HACK) && !$(STATIC_BUILD)
390 ### Align sections for PE size savings.
391 lflags = $(lflags) -opt:nowin98
392 !else if !$(ALIGN98_HACK) && $(STATIC_BUILD)
393 ### Align sections for speed in loading by choosing the virtual page size.
394 lflags = $(lflags) -align:4096
398 lflags = $(lflags) -ws:aggressive
401 dlllflags = $(lflags) -dll
402 conlflags = $(lflags) -subsystem:console
403 guilflags = $(lflags) -subsystem:windows
405 baselibs = kernel32.lib advapi32.lib user32.lib
406 # Avoid 'unresolved external symbol __security_cookie' errors.
407 # c.f. http://support.microsoft.com/?id=894573
408 !if "$(MACHINE)" == "IA64" || "$(MACHINE)" == "AMD64"
409 baselibs = $(baselibs) bufferoverflowU.lib
412 #---------------------------------------------------------------------
414 #---------------------------------------------------------------------
416 !IF "$(TESTPAT)" != ""
417 TESTFLAGS = -file $(TESTPAT)
421 #---------------------------------------------------------------------
422 # Project specific targets
423 #---------------------------------------------------------------------
425 release: setup $(TCLSH) $(TCLSTUBLIB) dlls
426 core: setup $(TCLLIB) $(TCLSTUBLIB)
427 shell: setup $(TCLSH)
428 dlls: setup $(TCLPIPEDLL) $(TCLREGLIB) $(TCLDDELIB)
429 all: setup $(TCLSH) $(TCLSTUBLIB) dlls $(CAT32)
430 tcltest: setup $(TCLTEST) dlls $(CAT32)
431 install: install-binaries install-libraries install-docs
434 test: setup $(TCLTEST) dlls $(CAT32)
435 set TCL_LIBRARY=$(ROOT)/library
436 !if "$(OS)" == "Windows_NT" || "$(MSVCDIR)" == "IDE"
437 $(TCLTEST) "$(ROOT)/tests/all.tcl" $(TESTFLAGS)
439 $(TCLTEST) "$(ROOT)/tests/all.tcl" $(TESTFLAGS) > tests.log
440 type tests.log | more
443 runtest: setup $(TCLTEST) dlls $(CAT32)
444 set TCL_LIBRARY=$(ROOT)/library
448 @if not exist $(OUT_DIR)\nul mkdir $(OUT_DIR)
449 @if not exist $(TMP_DIR)\nul mkdir $(TMP_DIR)
452 $(TCLIMPLIB): $(TCLLIB)
455 $(TCLLIB): $(TCLOBJS)
457 $(lib32) -nologo -out:$@ @<<
461 $(link32) $(dlllflags) -base:@$(WINDIR)\coffbase.txt,tcl -out:$@ \
465 $(_VC_MANIFEST_EMBED_DLL)
469 $(TCLSTUBLIB): $(TCLSTUBOBJS)
470 $(lib32) -nologo -out:$@ $(TCLSTUBOBJS)
472 $(TCLSH): $(TCLSHOBJS) $(TCLIMPLIB)
473 $(link32) $(conlflags) -stack:2300000 -out:$@ $(baselibs) $**
474 $(_VC_MANIFEST_EMBED_EXE)
476 $(TCLTEST): $(TCLTESTOBJS) $(TCLIMPLIB)
477 $(link32) $(conlflags) -stack:2300000 -out:$@ $(baselibs) $**
478 $(_VC_MANIFEST_EMBED_EXE)
480 $(TCLPIPEDLL): $(WINDIR)\stub16.c
481 $(cc32) $(CON_CFLAGS) -Fo$(TMP_DIR)\ $(WINDIR)\stub16.c
482 $(link32) $(conlflags) -out:$@ $(TMP_DIR)\stub16.obj $(baselibs)
483 $(_VC_MANIFEST_EMBED_DLL)
486 $(TCLDDELIB): $(TMP_DIR)\tclWinDde.obj
487 $(lib32) -nologo -out:$@ $(TMP_DIR)\tclWinDde.obj
489 $(TCLDDELIB): $(TMP_DIR)\tclWinDde.obj $(TCLSTUBLIB)
490 $(link32) $(dlllflags) -base:@$(WINDIR)\coffbase.txt,tcldde -out:$@ \
492 $(_VC_MANIFEST_EMBED_DLL)
498 $(TCLREGLIB): $(TMP_DIR)\tclWinReg.obj
499 $(lib32) -nologo -out:$@ $(TMP_DIR)\tclWinReg.obj
501 $(TCLREGLIB): $(TMP_DIR)\tclWinReg.obj $(TCLSTUBLIB)
502 $(link32) $(dlllflags) -base:@$(WINDIR)\coffbase.txt,tclreg -out:$@ \
504 $(_VC_MANIFEST_EMBED_DLL)
509 $(CAT32): $(WINDIR)\cat.c
510 $(cc32) $(CON_CFLAGS) -Fo$(TMP_DIR)\ $?
511 $(link32) $(conlflags) -out:$@ -stack:16384 $(TMP_DIR)\cat.obj \
513 $(_VC_MANIFEST_EMBED_EXE)
515 #---------------------------------------------------------------------
516 # Regenerate the stubs files. [Development use only]
517 #---------------------------------------------------------------------
521 @echo Build tclsh first!
523 $(TCLSH) $(TOOLSDIR:\=/)\genStubs.tcl $(GENERICDIR:\=/) \
524 $(GENERICDIR:\=/)/tcl.decls $(GENERICDIR:\=/)/tclInt.decls
528 #---------------------------------------------------------------------
529 # Generate the makefile depedancies.
530 #---------------------------------------------------------------------
534 @echo Build tclsh first!
536 $(TCLSH) $(TOOLSDIR:\=/)/mkdepend.tcl -vc32 -out:"$(OUT_DIR)\depend.mk" \
537 -passthru:"-DBUILD_tcl $(TCL_INCLUDES:"="")" $(GENERICDIR) \
538 $(COMPATDIR) $(WINDIR) @<<
544 #---------------------------------------------------------------------
545 # Build the windows help file.
546 #---------------------------------------------------------------------
548 TCLHLPBASE = $(PROJECT)$(VERSION)
549 HELPFILE = $(OUT_DIR)\$(TCLHLPBASE).hlp
550 HELPCNT = $(OUT_DIR)\$(TCLHLPBASE).cnt
551 DOCTMP_DIR = $(OUT_DIR)\$(PROJECT)_docs
552 HELPRTF = $(DOCTMP_DIR)\$(PROJECT).rtf
553 MAN2HELP = $(DOCTMP_DIR)\man2help.tcl
554 MAN2HELP2 = $(DOCTMP_DIR)\man2help2.tcl
555 INDEX = $(DOCTMP_DIR)\index.tcl
556 BMP = $(DOCTMP_DIR)\feather.bmp
557 BMP_NOPATH = feather.bmp
558 MAN2TCL = $(DOCTMP_DIR)\man2tcl.exe
560 winhelp: docsetup $(HELPFILE)
563 @if not exist $(DOCTMP_DIR)\nul mkdir $(DOCTMP_DIR)
565 $(MAN2HELP) $(MAN2HELP2) $(INDEX) $(BMP): $(TOOLSDIR)\$$(@F)
566 @$(CPY) $(TOOLSDIR)\$(@F) $(@D)
568 $(HELPFILE): $(HELPRTF) $(BMP)
570 start /wait hcrtf.exe -x <<$(PROJECT).hpj
572 COMPRESS=12 Hall Zeck
573 LCID=0x409 0x0 0x0 ; English (United States)
574 TITLE=Tcl/Tk Reference Manual
583 main="Tcl/Tk Reference Manual",,27648,(r15263976),(r65535)
587 CreateButton(1, "Web", ExecFile("http://www.tcl.tk"))
588 CreateButton(2, "SF", ExecFile("http://sf.net/projects/tcl"))
589 CreateButton(3, "Wiki", ExecFile("http://wiki.tcl.tk"))
590 CreateButton(4, "FAQ", ExecFile("http://www.purl.org/NET/Tcl-FAQ/"))
593 @$(CPY) "$(DOCTMP_DIR)\$(@B).hlp" "$(OUT_DIR)"
594 @$(CPY) "$(DOCTMP_DIR)\$(@B).cnt" "$(OUT_DIR)"
596 $(MAN2TCL): $(TOOLSDIR)\$$(@B).c
597 $(cc32) -nologo -G4 -ML -O2 -Fo$(@D)\ $(TOOLSDIR)\$(@B).c -link -out:$@
599 $(HELPRTF): $(MAN2TCL) $(MAN2HELP) $(MAN2HELP2) $(INDEX) $(DOCDIR)\*
600 $(TCLSH) $(MAN2HELP) -bitmap $(BMP_NOPATH) $(PROJECT) $(VERSION) $(DOCDIR:\=/)
603 !if exist($(HELPFILE))
604 @$(CPY) "$(HELPFILE)" "$(DOC_INSTALL_DIR)\"
605 @$(CPY) "$(HELPCNT)" "$(DOC_INSTALL_DIR)\"
609 #---------------------------------------------------------------------
610 # Special case object file targets
611 #---------------------------------------------------------------------
613 $(TMP_DIR)\testMain.obj: $(WINDIR)\tclAppInit.c
614 !if $(TCL_USE_STATIC_PACKAGES)
615 $(cc32) $(TCL_CFLAGS) -DTCL_TEST -DTCL_USE_STATIC_PACKAGES -Fo$@ $?
617 $(cc32) $(TCL_CFLAGS) -DTCL_TEST -Fo$@ $?
620 $(TMP_DIR)\tclTest.obj: $(GENERICDIR)\tclTest.c
621 $(cc32) $(TCL_CFLAGS) -Fo$@ $?
623 $(TMP_DIR)\tclTestObj.obj: $(GENERICDIR)\tclTestObj.c
624 $(cc32) $(TCL_CFLAGS) -Fo$@ $?
626 $(TMP_DIR)\tclWinTest.obj: $(WINDIR)\tclWinTest.c
627 $(cc32) $(TCL_CFLAGS) -Fo$@ $?
629 $(TMP_DIR)\tclAppInit.obj: $(WINDIR)\tclAppInit.c
630 !if $(TCL_USE_STATIC_PACKAGES)
631 $(cc32) $(TCL_CFLAGS) -DTCL_USE_STATIC_PACKAGES -Fo$@ $?
633 $(cc32) $(TCL_CFLAGS) -Fo$@ $?
636 ### The following objects should be built using the stub interfaces
637 ### *ALL* extensions need to built with -DTCL_THREADS=1
639 $(TMP_DIR)\tclWinReg.obj: $(WINDIR)\tclWinReg.c
641 $(cc32) $(BASE_CFLAGS) -DTCL_THREADS=1 -DSTATIC_BUILD -Fo$@ $?
643 $(cc32) $(BASE_CFLAGS) -DTCL_THREADS=1 -DUSE_TCL_STUBS -Fo$@ $?
647 $(TMP_DIR)\tclWinDde.obj: $(WINDIR)\tclWinDde.c
649 $(cc32) $(BASE_CFLAGS) -DTCL_THREADS=1 -DSTATIC_BUILD -Fo$@ $?
651 $(cc32) $(BASE_CFLAGS) -DTCL_THREADS=1 -DUSE_TCL_STUBS -Fo$@ $?
655 ### The following objects are part of the stub library and should not
656 ### be built as DLL objects. -Zl is used to avoid a dependancy on any
657 ### specific C run-time.
659 $(TMP_DIR)\tclStubLib.obj: $(GENERICDIR)\tclStubLib.c
660 $(cc32) $(cdebug) $(cflags) -Zl -DSTATIC_BUILD $(TCL_INCLUDES) -Fo$@ $?
663 #---------------------------------------------------------------------
665 #---------------------------------------------------------------------
667 $(GENERICDIR)\regcomp.c: \
668 $(GENERICDIR)\regguts.h \
669 $(GENERICDIR)\regc_lex.c \
670 $(GENERICDIR)\regc_color.c \
671 $(GENERICDIR)\regc_nfa.c \
672 $(GENERICDIR)\regc_cvec.c \
673 $(GENERICDIR)\regc_locale.c
674 $(GENERICDIR)\regcustom.h: \
675 $(GENERICDIR)\tclInt.h \
676 $(GENERICDIR)\tclPort.h \
677 $(GENERICDIR)\regex.h
678 $(GENERICDIR)\regexec.c: \
679 $(GENERICDIR)\rege_dfa.c \
680 $(GENERICDIR)\regguts.h
681 $(GENERICDIR)\regerror.c: $(GENERICDIR)\regguts.h
682 $(GENERICDIR)\regfree.c: $(GENERICDIR)\regguts.h
683 $(GENERICDIR)\regfronts.c: $(GENERICDIR)\regguts.h
684 $(GENERICDIR)\regguts.h: $(GENERICDIR)\regcustom.h
686 !if exist("$(OUT_DIR)\depend.mk")
687 !include "$(OUT_DIR)\depend.mk"
688 !message *** Dependency rules in effect.
690 !message *** Dependency rules are not being used.
693 ### add a spacer in the output
697 #---------------------------------------------------------------------
699 #---------------------------------------------------------------------
701 {$(WINDIR)}.c{$(TMP_DIR)}.obj::
702 $(cc32) $(TCL_CFLAGS) -DBUILD_tcl -Fo$(TMP_DIR)\ @<<
706 {$(GENERICDIR)}.c{$(TMP_DIR)}.obj::
707 $(cc32) $(TCL_CFLAGS) -DBUILD_tcl -Fo$(TMP_DIR)\ @<<
711 {$(COMPATDIR)}.c{$(TMP_DIR)}.obj::
712 $(cc32) $(TCL_CFLAGS) -DBUILD_tcl -Fo$(TMP_DIR)\ @<<
716 {$(WINDIR)}.rc{$(TMP_DIR)}.res:
717 $(rc32) -fo $@ -r -i "$(GENERICDIR)" -D__WIN32__ \
733 #---------------------------------------------------------------------
735 #---------------------------------------------------------------------
738 @echo Installing to '$(_INSTALLDIR)'
739 @echo installing $(TCLLIBNAME)
740 !if "$(TCLLIB)" != "$(TCLIMPLIB)"
741 @$(CPY) "$(TCLLIB)" "$(BIN_INSTALL_DIR)\"
743 @$(CPY) "$(TCLIMPLIB)" "$(LIB_INSTALL_DIR)\"
745 @echo installing $(TCLSHNAME)
746 @$(CPY) "$(TCLSH)" "$(BIN_INSTALL_DIR)\"
748 !if exist($(TCLPIPEDLL))
749 @echo installing $(TCLPIPEDLLNAME)
750 @$(CPY) "$(TCLPIPEDLL)" "$(BIN_INSTALL_DIR)\"
752 @echo installing $(TCLSTUBLIBNAME)
753 @$(CPY) "$(TCLSTUBLIB)" "$(LIB_INSTALL_DIR)\"
756 @echo installing http1.0
757 @$(CPY) "$(ROOT)\library\http1.0\*.tcl" \
758 "$(SCRIPT_INSTALL_DIR)\http1.0\"
759 @echo installing http2.5
760 @$(CPY) "$(ROOT)\library\http\*.tcl" \
761 "$(SCRIPT_INSTALL_DIR)\http2.5\"
762 @echo installing opt0.4
763 @$(CPY) "$(ROOT)\library\opt\*.tcl" \
764 "$(SCRIPT_INSTALL_DIR)\opt0.4\"
765 @echo installing msgcat1.3
766 @$(CPY) "$(ROOT)\library\msgcat\*.tcl" \
767 "$(SCRIPT_INSTALL_DIR)\msgcat1.3\"
768 @echo installing tcltest2.2
769 @$(CPY) "$(ROOT)\library\tcltest\*.tcl" \
770 "$(SCRIPT_INSTALL_DIR)\tcltest2.2\"
771 @echo installing $(TCLDDELIBNAME)
773 @$(CPY) "$(TCLDDELIB)" "$(LIB_INSTALL_DIR)\"
775 @$(CPY) "$(TCLDDELIB)" "$(LIB_INSTALL_DIR)\dde$(DDEDOTVERSION)\"
776 @$(CPY) "$(ROOT)\library\dde\pkgIndex.tcl" \
777 "$(LIB_INSTALL_DIR)\dde$(DDEDOTVERSION)\"
779 @echo installing $(TCLREGLIBNAME)
781 @$(CPY) "$(TCLREGLIB)" "$(LIB_INSTALL_DIR)\"
783 @$(CPY) "$(TCLREGLIB)" "$(LIB_INSTALL_DIR)\reg$(REGDOTVERSION)\"
784 @$(CPY) "$(ROOT)\library\reg\pkgIndex.tcl" \
785 "$(LIB_INSTALL_DIR)\reg$(REGDOTVERSION)\"
787 @echo installing encoding files
788 @$(CPY) "$(ROOT)\library\encoding\*.enc" \
789 "$(SCRIPT_INSTALL_DIR)\encoding\"
790 @echo installing library files
791 @$(CPY) "$(GENERICDIR)\tcl.h" "$(INCLUDE_INSTALL_DIR)\"
792 @$(CPY) "$(GENERICDIR)\tclDecls.h" "$(INCLUDE_INSTALL_DIR)\"
793 @$(CPY) "$(GENERICDIR)\tclPlatDecls.h" "$(INCLUDE_INSTALL_DIR)\"
794 @$(CPY) "$(ROOT)\library\history.tcl" "$(SCRIPT_INSTALL_DIR)\"
795 @$(CPY) "$(ROOT)\library\init.tcl" "$(SCRIPT_INSTALL_DIR)\"
796 @$(CPY) "$(ROOT)\library\ldAout.tcl" "$(SCRIPT_INSTALL_DIR)\"
797 @$(CPY) "$(ROOT)\library\parray.tcl" "$(SCRIPT_INSTALL_DIR)\"
798 @$(CPY) "$(ROOT)\library\safe.tcl" "$(SCRIPT_INSTALL_DIR)\"
799 @$(CPY) "$(ROOT)\library\tclIndex" "$(SCRIPT_INSTALL_DIR)\"
800 @$(CPY) "$(ROOT)\library\package.tcl" "$(SCRIPT_INSTALL_DIR)\"
801 @$(CPY) "$(ROOT)\library\word.tcl" "$(SCRIPT_INSTALL_DIR)\"
802 @$(CPY) "$(ROOT)\library\auto.tcl" "$(SCRIPT_INSTALL_DIR)\"
805 #---------------------------------------------------------------------
807 #---------------------------------------------------------------------
810 @echo Removing $(TCLLIB) ...
811 @if exist $(TCLLIB) del $(TCLLIB)
812 @echo Removing $(TCLSH) ...
813 @if exist $(TCLSH) del $(TCLSH)
814 @echo Removing $(TCLTEST) ...
815 @if exist $(TCLTEST) del $(TCLTEST)
816 @echo Removing $(TCLDDELIB) ...
817 @if exist $(TCLDDELIB) del $(TCLDDELIB)
818 @echo Removing $(TCLREGLIB) ...
819 @if exist $(TCLREGLIB) del $(TCLREGLIB)
822 @echo Cleaning $(TMP_DIR)\* ...
823 @if exist $(TMP_DIR)\nul $(RMDIR) $(TMP_DIR)
826 @echo Hosing $(OUT_DIR)\* ...
827 @if exist $(OUT_DIR)\nul $(RMDIR) $(OUT_DIR)