Diff
Not logged in

Differences From Artifact [e7951207f5]:

To Artifact [b1eacdefac]:


8
9
10
11
12
13
14
15

16
17
18
19
20
21
22
8
9
10
11
12
13
14

15
16
17
18
19
20
21
22







-
+







# 
# Copyright (c) 1995-1996 Sun Microsystems, Inc.
# Copyright (c) 1998-2000 Ajuba Solutions.
# Copyright (c) 2001 ActiveState Corporation.
# Copyright (c) 2001-2002 David Gravereaux.
#
#------------------------------------------------------------------------------
# RCS: @(#) $Id: makefile.vc,v 1.85 2002/03/27 22:57:57 davygrvy Exp $
# RCS: @(#) $Id: makefile.vc,v 1.86 2002/03/28 02:42:51 davygrvy Exp $
#------------------------------------------------------------------------------

!if "$(MSVCDIR)" == ""
MSG = ^
You'll need to run vcvars32.bat from Developer Studio, first, to setup^
the environment.  Jump to this line to read the new instructions.
!error $(MSG)
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
181
182
183
184
185
186
187




188
189
190
191
192
193
194







-
-
-
-








TCLREGLIBNAME	= $(PROJECT)reg$(REGVERSION)$(SUFX:t=).$(EXT)
TCLREGLIB	= $(OUT_DIR)\$(TCLREGLIBNAME)

TCLDDELIBNAME	= $(PROJECT)dde$(DDEVERSION)$(SUFX:t=).$(EXT)
TCLDDELIB	= $(OUT_DIR)\$(TCLDDELIBNAME)

TCLHLPBASE	= $(PROJECT)$(VERSION)
TCLHLP		= $(OUT_DIR)\$(TCLHLPBASE).hlp
TCLHLPCNT	= $(OUT_DIR)\$(TCLHLPBASE).cnt

TCLTEST		= $(OUT_DIR)\$(PROJECT)test.exe
CAT32		= $(OUT_DIR)\cat32.exe

LIB_INSTALL_DIR		= $(INSTALLDIR)\lib
BIN_INSTALL_DIR		= $(INSTALLDIR)\bin
DOC_INSTALL_DIR		= $(INSTALLDIR)\doc
SCRIPT_INSTALL_DIR	= $(INSTALLDIR)\lib\tcl$(DOTVERSION)
406
407
408
409
410
411
412
413

414
415
416
417
418
419
420
402
403
404
405
406
407
408

409
410
411
412
413
414
415
416







-
+








release:    setup $(TCLSH) $(TCLSTUBLIB) dlls
core:	    setup $(TCLLIB) $(TCLSTUBLIB)
shell:	    setup $(TCLSH)
dlls:	    setup $(TCLPIPEDLL) $(TCLREGLIB) $(TCLDDELIB)
all:	    setup $(TCLSH) $(TCLSTUBLIB) dlls $(CAT32) 
tcltest:    setup $(TCLTEST) dlls $(CAT32)
install:    install-binaries install-libraries
install:    install-binaries install-libraries install-docs


test: setup $(TCLTEST) dlls $(CAT32)
	set TCL_LIBRARY=$(ROOT)/library
!if "$(OS)" == "Windows_NT"  || "$(MSVCDIR)" == "IDE"
	$(TCLTEST) $(ROOT)/tests/all.tcl $(TESTFLAGS)
!else
514
515
516
517
518
519
520


521
522
523







524
525

526


527
528






529
530
531
532
533
534
535


536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551


552
553

554
555

556
557
558

559
560
561







562
563
564
565
566
567
568
510
511
512
513
514
515
516
517
518



519
520
521
522
523
524
525
526

527
528
529
530


531
532
533
534
535
536
537
538
539
540
541


542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557


558
559
560

561


562

563

564



565
566
567
568
569
570
571
572
573
574
575
576
577
578







+
+
-
-
-
+
+
+
+
+
+
+

-
+

+
+
-
-
+
+
+
+
+
+





-
-
+
+














-
-
+
+

-
+
-
-
+
-

-
+
-
-
-
+
+
+
+
+
+
+







!endif


#---------------------------------------------------------------------
# Build the windows help file.
#---------------------------------------------------------------------

TCLHLPBASE	= $(PROJECT)$(VERSION)
HELPFILE	= $(OUT_DIR)\$(TCLHLPBASE).hlp
MAN2TCL		= $(TOOLSDIR)\man2tcl
TCLRTF		= $(TOOLSDIR)\$(PROJECT).rtf
MAN2HELP	= $(TOOLSDIR)\man2help.tcl
HELPCNT		= $(OUT_DIR)\$(TCLHLPBASE).cnt
DOCTMP_DIR	= $(OUT_DIR)\$(PROJECT)_docs
HELPRTF		= $(DOCTMP_DIR)\$(PROJECT).rtf
MAN2HELP	= $(DOCTMP_DIR)\man2help.tcl
MAN2HELP2	= $(DOCTMP_DIR)\man2help2.tcl
INDEX		= $(DOCTMP_DIR)\index.tcl
MAN2TCL		= $(DOCTMP_DIR)\man2tcl.exe

winhelp: $(TCLHLP)
winhelp: docsetup $(HELPFILE)

docsetup:
	@if not exist $(DOCTMP_DIR)\nul mkdir $(DOCTMP_DIR)
$(TCLHLP): $(TCLRTF)
	cd $(TOOLSDIR)

$(MAN2HELP) $(MAN2HELP2) $(INDEX): $(TOOLSDIR)\$$(@F)
	copy $(TOOLSDIR)\$(@F) $(@D)

$(HELPFILE): $(HELPRTF)
	cd $(DOCTMP_DIR)
	start /wait hcrtf.exe -x <<$(PROJECT).hpj
[OPTIONS]
COMPRESS=12 Hall Zeck
LCID=0x409 0x0 0x0 ; English (United States)
TITLE=Tcl/Tk Reference Manual
CNT=$(TCLHLPBASE).cnt
HLP=$(TCLHLPBASE).hlp
CNT=$(@B).cnt
HLP=$(@B).hlp

[FILES]
$(PROJECT).rtf

[WINDOWS]
main="Tcl/Tk Reference Manual",,0

[CONFIG]
BrowseButtons()
CreateButton(1, "Main Web Site", ExecFile("http://www.tcl.tk"))
CreateButton(2, "Sourceforge", ExecFile("http://sf.net/projects/tcl"))
CreateButton(3, "Wiki", ExecFile("http://wiki.tcl.tk"))
<<
	cd $(MAKEDIR)
	copy $(TOOLSDIR)\$(TCLHLPBASE).hlp $(OUT_DIR)
	copy $(TOOLSDIR)\$(TCLHLPBASE).cnt $(OUT_DIR)
	copy "$(DOCTMP_DIR)\$(@B).hlp" "$(OUT_DIR)"
	copy "$(DOCTMP_DIR)\$(@B).cnt" "$(OUT_DIR)"

$(MAN2TCL).exe:
$(MAN2TCL):
	cd $(TOOLSDIR)
	$(cc32) -nologo -G4 -ML -O2 $(MAN2TCL).c
	$(cc32) -nologo -G4 -ML -O2 $(TOOLSDIR)\man2tcl.c -link -out:$@
	cd $(MAKEDIR)

$(TCLRTF): $(MAN2TCL).exe $(TCLSH)
$(HELPRTF): $(TCLSH) $(MAN2TCL) $(MAN2HELP) $(MAN2HELP2) $(INDEX)
	cd $(TOOLSDIR)
	..\win\$(TCLSH) $(MAN2HELP) $(PROJECT) $(VERSION) $(ROOT)/doc
	cd $(MAKEDIR)
	$(TCLSH) $(MAN2HELP) $(PROJECT) $(VERSION) $(ROOT)/doc

install-docs:
!if exist($(HELPFILE))
	@xcopy /i /y "$(HELPFILE)" "$(DOC_INSTALL_DIR)\"
	@xcopy /i /y "$(HELPCNT)" "$(DOC_INSTALL_DIR)\"
!endif


#---------------------------------------------------------------------
# Special case object file targets
#---------------------------------------------------------------------

$(TMP_DIR)\testMain.obj: $(WINDIR)\tclAppInit.c
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
709
710
711
712
713
714
715




716
717
718
719
720
721
722







-
-
-
-







!endif
!if exist($(TCLPIPEDLL))
	@echo installing $(TCLPIPEDLLNAME)
	@xcopy /i /y "$(TCLPIPEDLL)" "$(BIN_INSTALL_DIR)\"
!endif
	@echo installing $(TCLSTUBLIBNAME)
	@xcopy /i /y "$(TCLSTUBLIB)" "$(LIB_INSTALL_DIR)\"
!if exist($(TCLHLP))
	@xcopy /i /y "$(TCLHLP)" "$(DOC_INSTALL_DIR)\"
	@xcopy /i /y "$(TCLHLPCNT)" "$(DOC_INSTALL_DIR)\"
!endif

install-libraries:
	@echo installing http1.0
	@xcopy /i /y "$(ROOT)\library\http1.0\*.tcl" \
		"$(SCRIPT_INSTALL_DIR)\http1.0\"
	@echo installing http2.4
	@xcopy /i /y "$(ROOT)\library\http\*.tcl" \