diff options
author | apnadkarni <apnmbx-wits@yahoo.com> | 2017-10-26 15:07:16 (GMT) |
---|---|---|
committer | apnadkarni <apnmbx-wits@yahoo.com> | 2017-10-26 15:07:16 (GMT) |
commit | c324bb3effc60b384c19e243194f0bd3a4a61b35 (patch) | |
tree | ef2de1f1845ad77b7492fd5970cb97c546af6822 /win/targets.vc | |
parent | ff1c34897080fdd52c75ac01a0e020d0e8e3c557 (diff) | |
download | tcl-c324bb3effc60b384c19e243194f0bd3a4a61b35.zip tcl-c324bb3effc60b384c19e243194f0bd3a4a61b35.tar.gz tcl-c324bb3effc60b384c19e243194f0bd3a4a61b35.tar.bz2 |
Reworked build command macros (MAKEBINCMD, CCPKGCMD etc.) and purged old comments.
Diffstat (limited to 'win/targets.vc')
-rw-r--r-- | win/targets.vc | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/win/targets.vc b/win/targets.vc index dbe4b82..a345b4f 100644 --- a/win/targets.vc +++ b/win/targets.vc @@ -1,15 +1,21 @@ #------------------------------------------------------------- -*- makefile -*- +# targets.vc -- +# +# Part of the nmake based build system for Tcl and its extensions. +# This file defines some standard targets for the convenience of extensions +# and can be optionally included by the extension makefile. +# See TIP 477 (https://core.tcl.tk/tips/doc/trunk/tip/477.md) for docs. $(PROJECT): setup pkgindex $(PRJLIB) !ifdef PRJ_STUBOBJS $(PROJECT): $(PRJSTUBLIB) $(PRJSTUBLIB): $(PRJ_STUBOBJS) - $(MAKELIBCMD) $** + $(LIBCMD) $** $(PRJ_STUBOBJS): - $(cc32) $(stubscflags) -Fo$(TMP_DIR)\ %s -!endif + $(CCSTUBSCMD) %s +!endif # PRJ_STUBOBJS !ifdef PRJ_MANIFEST $(PROJECT): $(PRJLIB).manifest @@ -19,13 +25,16 @@ $(PRJLIB).manifest: $(PRJ_MANIFEST) << !endif - !if "$(PROJECT)" != "tcl" && "$(PROJECT)" != "tk" # MAKEBINCMD will do shared, static and debug links as appropriate # _VC_MANIFEST_EMBED_DLL embeds the manifest for shared libraries # and is a no-op for static libraries $(PRJLIB): $(PRJ_OBJS) $(RESFILE) - $(MAKEBINCMD) $** +!if $(STATIC_BUILD) + $(LIBCMD) $** +!else + $(DLLCMD) $** +!endif $(_VC_MANIFEST_EMBED_DLL) -@del $*.exp !endif |