summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorapnadkarni <apnmbx-wits@yahoo.com>2017-09-29 12:41:02 (GMT)
committerapnadkarni <apnmbx-wits@yahoo.com>2017-09-29 12:41:02 (GMT)
commit71c784c8bc5a9a679f643f2047d5330ffd87fa08 (patch)
tree06e42f691b25efa3728ec243caf19345349f8f3d
parente4269a71402fe87814784726463492302dfb48d8 (diff)
downloadtcl-71c784c8bc5a9a679f643f2047d5330ffd87fa08.zip
tcl-71c784c8bc5a9a679f643f2047d5330ffd87fa08.tar.gz
tcl-71c784c8bc5a9a679f643f2047d5330ffd87fa08.tar.bz2
Added implicit rule for compiling resources.
Added Tcl import libraries to link macro.
-rw-r--r--win/makefile.vc9
-rw-r--r--win/rules.vc25
2 files changed, 21 insertions, 13 deletions
diff --git a/win/makefile.vc b/win/makefile.vc
index f2f3208..a32549b 100644
--- a/win/makefile.vc
+++ b/win/makefile.vc
@@ -899,14 +899,7 @@ $<
$<
<<
-{$(WINDIR)}.rc{$(TMP_DIR)}.res:
- $(rc32) -fo $@ -r -i "$(GENERICDIR)" -i "$(TMP_DIR)" \
- -d DEBUG=$(DEBUG) -d UNCHECKED=$(UNCHECKED) \
- -d TCL_THREADS=$(TCL_THREADS) \
- -d STATIC_BUILD=$(STATIC_BUILD) \
- $<
-
-$(TMP_DIR)\tclsh.res: $(TMP_DIR)\tclsh.exe.manifest
+$(TMP_DIR)\tclsh.res: $(TMP_DIR)\tclsh.exe.manifest $(WINDIR)\tclsh.rc
#---------------------------------------------------------------------
diff --git a/win/rules.vc b/win/rules.vc
index be49672..2744330 100644
--- a/win/rules.vc
+++ b/win/rules.vc
@@ -922,6 +922,8 @@ TCL_INCLUDES = -I"$(_TCLDIR)\generic" -I"$(_TCLDIR)\win"
!endif # TCLINSTALL
+tcllibs = "$(TCLSTUBLIB)" "$(TCLIMPLIB)"
+
!endif $(PROJECT) != "tcl"
# We need a tclsh that will run on the host machine as part of the build.
@@ -1129,8 +1131,8 @@ cflags = -nologo -c $(COMPILERFLAGS) $(cwarn) -Fp$(TMP_DIR)^\ $(cdebug)
appcflags = $(cflags) $(crt) $(TCL_INCLUDES) $(TK_INCLUDES) $(PRJ_INCLUDES) $(TCL_DEFINES) $(PRJ_DEFINES) $(OPTDEFINES) $(USE_STUBS_DEFS)
appcflags_nostubs = $(cflags) $(crt) $(TCL_INCLUDES) $(TK_INCLUDES) $(PRJ_INCLUDES) $(TCL_DEFINES) $(PRJ_DEFINES) $(OPTDEFINES)
-pkgcflags = $(appcflags) /DBUILD_$(PROJECT)
-pkgcflags_nostubs = $(appcflags_nostubs) /DBUILD_$(PROJECT)
+pkgcflags = $(appcflags) -DBUILD_$(PROJECT)
+pkgcflags_nostubs = $(appcflags_nostubs) -DBUILD_$(PROJECT)
# stubscflags contains $(cflags) plus flags used for building a stubs
# library for the package. Note: -DSTATIC_BUILD is defined in
@@ -1249,13 +1251,26 @@ $<
$<
<<
+{$(RCDIR)}.rc{$(TMP_DIR)}.res:
+ $(MAKERESCMD)
+
+{$(WINDIR)}.rc{$(TMP_DIR)}.res:
+ $(MAKERESCMD)
+
.SUFFIXES:
.SUFFIXES:.c .rc
MAKELIBCMD = $(lib32) -nologo $(LINKERFLAGS) -out:$@
-MAKEDLLCMD = $(link32) $(dlllflags) -out:$@ $(baselibs)
-MAKECONCMD = $(link32) $(conlflags) -out:$@ $(baselibs)
-MAKEGUICMD = $(link32) $(guilflags) -out:$@ $(baselibs)
+MAKEDLLCMD = $(link32) $(dlllflags) -out:$@ $(baselibs) $(tcllibs)
+MAKECONCMD = $(link32) $(conlflags) -out:$@ $(baselibs) $(tcllibs)
+MAKEGUICMD = $(link32) $(guilflags) -out:$@ $(baselibs) $(tcllibs)
+MAKERESCMD = $(rc32) -fo $@ -r -i "$(GENERICDIR)" -i "$(TMP_DIR)" \
+ $(TCL_INCLUDES) \
+ -d DEBUG=$(DEBUG) -d UNCHECKED=$(UNCHECKED) \
+ -d TCL_THREADS=$(TCL_THREADS) \
+ -d STATIC_BUILD=$(STATIC_BUILD) \
+ $<
+
################################################################
# 14. Sanity check selected options against Tcl build options