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-2004 David Gravereaux.
#
#------------------------------------------------------------------------------
# RCS: @(#) $Id: makefile.vc,v 1.125 2004/04/06 22:25:57 dgp Exp $
# RCS: @(#) $Id: makefile.vc,v 1.126 2004/05/18 20:02:38 davygrvy Exp $
#------------------------------------------------------------------------------
!if "$(MSDEVDIR)" == ""
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)
|
630
631
632
633
634
635
636
637
638
639
640
641
642
643
|
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
|
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
|
install-docs:
!if exist($(HELPFILE))
@$(CPY) "$(HELPFILE)" "$(DOC_INSTALL_DIR)\"
@$(CPY) "$(HELPCNT)" "$(DOC_INSTALL_DIR)\"
!endif
#---------------------------------------------------------------------
# Build tclConfig.sh for the TEA build system.
#---------------------------------------------------------------------
tclConfig:
!if !exist($(TCLSH))
@echo Build tclsh first!
!else
@echo Creating tclConfig.sh
@$(TCLSH) <<
set debug $(DEBUG)
set thread $(TCL_THREADS)
set static $(STATIC_BUILD)
set config(@TCL_DLL_FILE@) {$(TCLLIBNAME)}
set config(@TCL_VERSION@) [info tcl]
set config(@TCL_MAJOR_VERSION@) [lindex [split [info tclversion] .] 0]
set config(@TCL_MINOR_VERSION@) [lindex [split [info tclversion] .] 1]
set config(@TCL_PATCH_LEVEL@) [string range [info patchlevel] [string length [info tclversion]] end]
set config(@CC@) {$(CC)}
set config(@DEFS@) {}
if {$$static} {lappend config(@DEFS@) "-DSTATIC_BUILD=1"}
if {$$thread} {lappend config(@DEFS@) "-DTHREAD=1"}
set config(@TCL_DBGX@) {$(DBGX)}
set config(@CFLAGS_DEBUG@) {-nologo -c -W3 -YX -Fp$(TMP_DIR)\ -MDd}
set config(@CFLAGS_OPTIMIZE@) {-nologo -c -W3 -YX -Fp$(TMP_DIR)\ -MD}
set config(@LDFLAGS_DEBUG@) {-nologo -machine:$(MACHINE) -debug:full -debugtype:cv}
set config(@LDFLAGS_OPTIMIZE@) {-nologo -machine:$(MACHINE) -release -opt:ref -opt:icf,3}
set config(@TCL_SHARED_BUILD@) [expr {$$static ? 0 : 1}]
set config(@TCL_LIB_FILE@) {$(PROJECT)$(VERSION)$(SUFX).lib}
set config(@TCL_NEEDS_EXP_FILE@) {}
set config(@CFG_TCL_EXPORT_FILE_SUFFIX@) {$${NODOT_VERSION}$${DBGX}.lib}
set config(@LIBS@) {$(baselibs)}
set config(@prefix@) {$(_INSTALLDIR)}
set config(@exec_prefix@) {$(BIN_INSTALL_DIR)}
set config(@SHLIB_CFLAGS@) {}
set config(@STLIB_CFLAGS@) {}
set config(@CFLAGS_WARNING@) {-W3}
set config(@EXTRA_CFLAGS@) {-YX}
set config(@SHLIB_LD@) {$(link32) $(dlllflags)}
set config(@STLIB_LD@) {$(lib32) -nologo}
set config(@SHLIB_LD_LIBS@) {$(baselibs)}
set config(@SHLIB_SUFFIX@) {.dll}
set config(@DL_LIBS@) {}
set config(@LDFLAGS@) {}
set config(@TCL_LD_SEARCH_FLAGS@) {}
set config(@LIBOBJS@) {}
set config(@RANLIB@) {}
set config(@TCL_LIB_FLAG@) {}
set config(@TCL_BUILD_LIB_SPEC@) {}
set config(@TCL_LIB_SPEC@) {$(LIB_INSTALL_DIR)\$(PROJECT)$(VERSION)$(SUFX).lib}
set config(@TCL_INCLUDE_SPEC@) {-I$(INCLUDE_INSTALL_DIR)}
set config(@TCL_LIB_VERSIONS_OK@) {}
set config(@CFG_TCL_SHARED_LIB_SUFFIX@) {$${NODOT_VERSION}$${DBGX}.dll}
set config(@CFG_TCL_UNSHARED_LIB_SUFFIX@) {$${NODOT_VERSION}$${DBGX}.lib}
set config(@TCL_SRC_DIR@) [file nativename [file normalize {$(ROOT)}]]
set config(@TCL_PACKAGE_PATH@) {}
set config(@TCL_STUB_LIB_FILE@) {$(TCLSTUBLIBNAME)}
set config(@TCL_STUB_LIB_FLAG@) {$(TCLSTUBLIBNAME)}
set config(@TCL_BUILD_STUB_LIB_SPEC@) "-L[file nativename [file normalize {$(OUT_DIR)}]] $(TCLSTUBLIBNAME)"
set config(@TCL_STUB_LIB_SPEC@) {-L$(LIB_INSTALL_DIR) $(TCLSTUBLIBNAME)}
set config(@TCL_BUILD_STUB_LIB_PATH@) [file nativename [file normalize {$(TCLSTUBLIB)}]]
set config(@TCL_STUB_LIB_PATH@) [file nativename [file normalize {$(LIB_INSTALL_DIR)\\$(TCLSTUBLIBNAME)}]]
set config(@TCL_THREADS@) {$(TCL_THREADS)}
set f [open tclConfig.sh.in r]
set data [read $$f]
close $$f
foreach {anchor subst} [array get config] {
regsub -all $$anchor $$data $$subst data
}
set f [open [file join [file normalize {$(OUT_DIR)}] tclConfig.sh] w]
puts $$f $$data
close $$f
<<
!endif
#---------------------------------------------------------------------
# Special case object file targets
#---------------------------------------------------------------------
$(TMP_DIR)\testMain.obj: $(WINDIR)\tclAppInit.c
$(cc32) $(TCL_CFLAGS) -DTCL_TEST \
|
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
|
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
|
-
+
+
+
|
!if exist($(TCLPIPEDLL))
@echo installing $(TCLPIPEDLLNAME)
@$(CPY) "$(TCLPIPEDLL)" "$(BIN_INSTALL_DIR)\"
!endif
@echo installing $(TCLSTUBLIBNAME)
@$(CPY) "$(TCLSTUBLIB)" "$(LIB_INSTALL_DIR)\"
install-libraries:
install-libraries: tclConfig
@echo installing tclConfig.sh
@$(CPY) "$(OUT_DIR)\tclConfig.sh" "$(LIB_INSTALL_DIR)\"
@echo installing http1.0
@$(CPY) "$(ROOT)\library\http1.0\*.tcl" \
"$(SCRIPT_INSTALL_DIR)\http1.0\"
@echo installing http2.4
@$(CPY) "$(ROOT)\library\http\*.tcl" \
"$(SCRIPT_INSTALL_DIR)\http2.4\"
@echo installing opt0.4
|