diff options
author | apnadkarni <apnadkarni@noemail.net> | 2017-09-25 13:45:34 (GMT) |
---|---|---|
committer | apnadkarni <apnadkarni@noemail.net> | 2017-09-25 13:45:34 (GMT) |
commit | 2d15170791c869427f1872e13c22d884a4f2c4a4 (patch) | |
tree | 7a6329afaedb33ad786f4a4fce2c6988e3ea141e | |
parent | faa1cd1eed37453d477c1eef716e1e7c29d79a05 (diff) | |
download | tcl-2d15170791c869427f1872e13c22d884a4f2c4a4.zip tcl-2d15170791c869427f1872e13c22d884a4f2c4a4.tar.gz tcl-2d15170791c869427f1872e13c22d884a4f2c4a4.tar.bz2 |
Move TCLSH and TCLSH_NATIVE macros to rules.vc
FossilOrigin-Name: 5be00eaab3a850451c54e1985b7bc3cdf56fdc04edb12e76b849070b41efcc98
-rw-r--r-- | win/makefile.vc | 21 | ||||
-rw-r--r-- | win/rules.vc | 17 |
2 files changed, 20 insertions, 18 deletions
diff --git a/win/makefile.vc b/win/makefile.vc index e36f0e9..2ef453b 100644 --- a/win/makefile.vc +++ b/win/makefile.vc @@ -226,9 +226,6 @@ TCLLIB = $(OUT_DIR)\$(TCLLIBNAME) TCLSTUBLIBNAME = $(STUBPREFIX)$(VERSION).lib
TCLSTUBLIB = $(OUT_DIR)\$(TCLSTUBLIBNAME)
-TCLSHNAME = $(PROJECT)sh$(VERSION)$(SUFX).exe
-TCLSH = $(OUT_DIR)\$(TCLSHNAME)
-
TCLREGLIBNAME = $(PROJECT)reg$(REGVERSION)$(SUFX:t=).$(EXT)
TCLREGLIB = $(OUT_DIR)\$(TCLREGLIBNAME)
@@ -238,15 +235,6 @@ TCLDDELIB = $(OUT_DIR)\$(TCLDDELIBNAME) TCLTEST = $(OUT_DIR)\$(PROJECT)test.exe
CAT32 = $(OUT_DIR)\cat32.exe
-# Can we run what we build? IX86 runs on all architectures.
-!ifndef TCLSH_NATIVE
-!if "$(MACHINE)" == "IX86" || "$(MACHINE)" == "$(NATIVE_ARCH)"
-TCLSH_NATIVE = $(TCLSH)
-!else
-!error You must explicitly set TCLSH_NATIVE for cross-compilation
-!endif
-!endif
-
TCLSHOBJS = \
$(TMP_DIR)\tclAppInit.obj \
!if !$(STATIC_BUILD)
@@ -772,6 +760,8 @@ install-docs: @$(CPY) "$(HELPCNT)" "$(DOC_INSTALL_DIR)\"
!endif
+# "emacs font-lock highlighting fix
+
#---------------------------------------------------------------------
# Build tclConfig.sh for the TEA build system.
#---------------------------------------------------------------------
@@ -968,7 +958,8 @@ $(TCLOBJS) #---------------------------------------------------------------------
-# Implicit rules. A limitation exists with nmake that requires that
+# Implicit rules that are not covered by the common ones defined in
+# rules.vc. A limitation exists with nmake that requires that
# source directory can not contain spaces in the path. This an
# absolute.
#---------------------------------------------------------------------
@@ -1011,8 +1002,6 @@ install-binaries: @echo Installing $(TCLSTUBLIBNAME)
@$(CPY) "$(TCLSTUBLIB)" "$(LIB_INSTALL_DIR)\"
-#" emacs fix
-
install-libraries: tclConfig install-msgs install-tzdata
@if not exist "$(SCRIPT_INSTALL_DIR)$(NULL)" \
$(MKDIR) "$(SCRIPT_INSTALL_DIR)"
@@ -1094,8 +1083,6 @@ install-libraries: tclConfig install-msgs install-tzdata @$(CPY) "$(ROOT)\library\encoding\*.enc" \
"$(SCRIPT_INSTALL_DIR)\encoding\"
-#" emacs fix
-
install-tzdata:
@echo Installing time zone data
@set TCL_LIBRARY=$(ROOT:\=/)/library
diff --git a/win/rules.vc b/win/rules.vc index 47f1608..5afcf5e 100644 --- a/win/rules.vc +++ b/win/rules.vc @@ -829,7 +829,12 @@ OUT_DIR = $(TMP_DIR) STUBPREFIX = $(PROJECT)stub
# Set up paths to various Tcl executables and libraries needed by extensions
-!if "$(PROJECT)" != "tcl"
+!if "$(PROJECT)" == "tcl"
+
+TCLSHNAME = $(PROJECT)sh$(TCL_VERSION)$(SUFX).exe
+TCLSH = $(OUT_DIR)\$(TCLSHNAME)
+
+!else # $(PROJECT) is not "tcl"
!if $(TCLINSTALL) # Building against an installed Tcl
@@ -865,6 +870,16 @@ TCL_INCLUDES = -I"$(_TCLDIR)\generic" -I"$(_TCLDIR)\win" !endif $(PROJECT) != "tcl"
+# We need a tclsh that will run on the host machine as part of the build.
+# IX86 runs on all architectures.
+!ifndef TCLSH_NATIVE
+!if "$(MACHINE)" == "IX86" || "$(MACHINE)" == "$(NATIVE_ARCH)"
+TCLSH_NATIVE = $(TCLSH)
+!else
+!error You must explicitly set TCLSH_NATIVE for cross-compilation
+!endif
+!endif
+
# Do the same for Tk extensions that require the Tk libraries
!if defined(PROJECT_REQUIRES_TK)
|