Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 43374d486561b31684a3e9e122c47437f2fd46a8
Ticket: 217937ffffffffffffffffffffffffffffffffff
makefile.vc ehancement to support the Platform SDK
User & Date: nobody on 2000-10-26 00:46:19
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 3515 RFE
    Version: 8.3b1
    SubmitDate: '1999-11-08'
    LastModified: '2000-02-01'
    Severity: LOW
    Status: Closed
    Submitter: techsupp
    ChangedBy: hobbs
    RelatedBugIDs: 2390
    OS: Windows 2000
    OSVersion: build 2128 (RC2)
    FixedDate: '2000-10-25'
    ClosedDate: '2000-02-01'
    
    
    Name:
    David Gravereaux
    
    CVS:
    makefile.vc,v 1.45 1999/10/29 03:05:12 hobbs Exp
    
    DesiredBehavior:
    The MS Platform SDK (http://msdn.microsoft.com/developer/sdk/) contains a new linker, windows' include and library files.  This patch allows Tcl to be built with the newer components than what VC++ has.
    
    Patch:
    Index: makefile.vc
    ===================================================================
    RCS file: /cvsroot/tcl/win/makefile.vc,v
    retrieving revision 1.45
    diff -c -r1.45 makefile.vc
    *** makefile.vc1999/10/29 03:05:121.45
    --- makefile.vc1999/11/08 22:35:59
    ***************
    *** 41,46 ****
    --- 41,50 ----
    
      INSTALLDIR= c:\Progra~1\Tcl
    
    + # where's the Platform SDK?
    + # leave this macro blank if you don't have it.
    + PLATSDK         = c:\Progra~1\platfo~1
    + 
      # Set this to the appropriate value of /MACHINE: for your platform
      MACHINE= IX86
    
    ***************
    *** 207,217 ****
    
      TCLSTUBOBJS = $(TMPDIR)\tclStubLib.obj  
      cc32= "$(TOOLS32)\bin\cl.exe"
    - link32= "$(TOOLS32)\bin\link.exe"
      rc32= "$(TOOLS32_rc)\bin\rc.exe"
    ! include32= -I"$(TOOLS32)\include"
    ! lib32= "$(TOOLS32)\bin\lib.exe"
    
      cc16= "$(TOOLS16)\bin\cl.exe"
      link16= "$(TOOLS16)\bin\link.exe"
    --- 211,244 ----
    
      TCLSTUBOBJS = $(TMPDIR)\tclStubLib.obj  
    + # if the platform SDK is available, we use that linker instead.
    + #
    + !if "$(PLATSDK)" == ""
    + link32   = "$(TOOLS32)\bin\link.exe"
    + cvtres32 = "$(TOOLS32)\bin\cvtres.exe"
    + lib32    = "$(TOOLS32)\bin\lib.exe"
    + cvpack32 = "$(TOOLS32)\bin\cvpack.exe"
    + cc64     = 
    + cvtres64 = 
    + !else
    + link32   = "$(PLATSDK)\bin\Link\link.exe"
    + cvtres32 = "$(PLATSDK)\bin\Link\cvtres.exe"
    + lib32    = "$(PLATSDK)\bin\Link\lib.exe"
    + cvpack32 = "$(PLATSDK)\bin\Link\cvpack.exe"
    + cc64     = "$(PLATSDK)\bin\Win64\cl.exe"
    + cvtres64 = "$(PLATSDK)\bin\Win64\cvtres.exe"
    + !endif
    + 
      cc32= "$(TOOLS32)\bin\cl.exe"
      rc32= "$(TOOLS32_rc)\bin\rc.exe"
    ! 
    ! libpath32       = /LIBPATH:"$(TOOLS32)\lib"
    ! include32       = -I"$(TOOLS32)\include"
    ! 
    ! !if "$(PLATSDK)" != ""
    ! libpath32       = /LIBPATH:$(PLATSDK)\lib $(libpath32)
    ! include32       = -I"$(PLATSDK)\include" $(include32)
    ! !endif
    
      cc16= "$(TOOLS16)\bin\cl.exe"
      link16= "$(TOOLS16)\bin\link.exe"
    ***************
    *** 241,247 ****
      !ENDIF
    
      # declarations common to all linker options
    ! lcommon = /NODEFAULTLIB /RELEASE /NOLOGO
    
      # declarations for use on Intel i386, i486, and Pentium systems
      !IF "$(MACHINE)" == "IX86"
    --- 268,274 ----
      !ENDIF
    
      # declarations common to all linker options
    ! lcommon = /NODEFAULTLIB /NOLOGO $(libpath32)
    
      # declarations for use on Intel i386, i486, and Pentium systems
      !IF "$(MACHINE)" == "IX86"
    ***************
    *** 331,344 ****
    
      $(DUMPEXTS): $(WINDIR)\winDumpExts.c
      $(cc32) $(CON_CFLAGS) -Fo$(TMPDIR)\ $?
    - set LIB="$(TOOLS32)\lib"
      $(link32) $(ldebug) $(conlflags) $(guilibs) -out:$@  $(TMPDIR)\winDumpExts.obj 
    
      $(TCLLIB): $(TCLDLL)
    
      $(TCLDLL): $(TCLOBJS) $(TMPDIR)\tcl.def $(TMPDIR)\tcl.res
    - set LIB="$(TOOLS32)\lib"
      $(link32) $(ldebug) $(dlllflags) -def:$(TMPDIR)\tcl.def  -out:$@ $(TMPDIR)\tcl.res $(guilibsdll) @<<
      $(TCLOBJS)
    --- 358,369 ----
    ***************
    *** 350,373 ****
      $(TCLPLUGINLIB): $(TCLPLUGINDLL)
    
      $(TCLPLUGINDLL): $(TCLOBJS) $(TMPDIR)\plugin.def $(TMPDIR)\tcl.res
    - set LIB="$(TOOLS32)\lib"
      $(link32) $(ldebug) $(dlllflags) -def:$(TMPDIR)\plugin.def  -out:$@ $(TMPDIR)\tcl.res $(guilibsdll) @<<
      $(TCLOBJS)
      <<
    
      $(TCLSH): $(TCLSHOBJS) $(TCLLIB) $(TMPDIR)\tclsh.res
    - set LIB="$(TOOLS32)\lib"
      $(link32) $(ldebug) $(conlflags) $(TMPDIR)\tclsh.res -stack:2300000  -out:$@ $(conlibsdll) $(TCLLIB) $(TCLSHOBJS) 
    
      $(TCLSHP): $(TCLSHOBJS) $(TCLPLUGINLIB) $(TMPDIR)\tclsh.res
    - set LIB=$(TOOLS32)\lib
      $(link32) $(ldebug) $(conlflags) $(TMPDIR)\tclsh.res -stack:2300000  -out:$@ $(conlibsdll) $(TCLPLUGINLIB) $(TCLSHOBJS) 
    
      $(TCLTEST): $(TCLTESTOBJS) $(TCLLIB) $(TMPDIR)\tclsh.res
    - set LIB="$(TOOLS32)\lib"
      $(link32) $(ldebug) $(conlflags) $(TMPDIR)\tclsh.res -stack:2300000  -out:$@ $(conlibsdll) $(TCLLIB) $(TCLTESTOBJS)
    
    --- 375,394 ----
    ***************
    *** 396,417 ****
    
      $(TCLPIPEDLL): $(WINDIR)\stub16.c
      $(cc32) $(CON_CFLAGS) -Fo$(TMPDIR)\ $(WINDIR)\stub16.c
    - set LIB="$(TOOLS32)\lib"
      $(link32) $(ldebug) $(conlflags) -out:$@ $(TMPDIR)\stub16.obj $(guilibs)
    
      $(TCLDDEDLL): $(TMPDIR)\tclWinDde.obj $(TCLSTUBLIB)
    - set LIB="$(TOOLS32)\lib"
      $(link32) $(ldebug) $(dlllflags) -out:$@ $(TMPDIR)\tclWinDde.obj  $(conlibsdll) $(TCLSTUBLIB)
    
      $(TCLREGDLL): $(TMPDIR)\tclWinReg.obj $(TCLSTUBLIB)
    - set LIB="$(TOOLS32)\lib"
      $(link32) $(ldebug) $(dlllflags) -out:$@ $(TMPDIR)\tclWinReg.obj  $(conlibsdll) $(TCLSTUBLIB)
    
      $(CAT32): $(WINDIR)\cat.c
      $(cc32) $(CON_CFLAGS) -Fo$(TMPDIR)\ $?
    - set LIB="$(TOOLS32)\lib"
      $(link32) $(conlflags) -out:$@ -stack:16384 $(TMPDIR)\cat.obj $(conlibs)
    
      $(CAT16): $(WINDIR)\cat.c
    --- 417,434 ----
    
    PatchFiles:
    win/makefile.vc
    
    
    
    Some of these fixes were already applied as per bug 2390, and
    the Win64 bits have another entry point in the new makefile
    (looks different, but works for our default installed Win64
    compiler env). 
    -- 02/01/2000 hobbs
    
  4. foundin changed to: "obsolete: 8.3b1"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "75. Tutorial"
  10. title changed to: "makefile.vc ehancement to support the Platform SDK"
  11. type changed to: "Bug"