Skip to content
Tcl Source Code View Ticket
Login

View Ticket

winhelp and some makefile.vc lint (follow-up)

Closed / Fixed218852ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:06:39
OriginalBugID: 2390 RFE
Version: 8.2b1
SubmitDate: '1999-07-19'
LastModified: '2000-01-25'
Severity: LOW
Status: Released
Submitter: techsupp
ChangedBy: hobbs
RelatedBugIDs: 2388
OS: Windows NT
OSVersion: 4.0 sp5
Machine: X86
FixedDate: '2000-01-25'
FixedInVersion: 8.3
ClosedDate: '2000-10-25'


Name:
David Gravereaux

CVS:
RCS: @(#) $Id: makefile.vc,v 1.38 1999/07/13 22:23:45 redman Exp $

Comments:
Oops, I forgot about INCLUDE in the last patch.  Please use this one
    instead.

    The help compiler chokes on a few items:

    Microsoft (R) Help Compiler
    HCRTF 4.03.0002
    Copyright (c) Microsoft Corp 1990 - 1995. All rights reserved.
    ../tools/tcl.hpj
        HC4010: Warning: 
    There are more opening braces than closing braces.
        HC4010: Warning: 
    There are more opening braces than closing braces.
        HC3025: Warning: topic #113 of E:\TclCvs\tcl8.2b1\tools\tcl.rtf : 
    Jump to undefined Topic ID: "11134".
        HC2002: Note: 
    The keywords "notifier" and "Notifier" are identical except for case.
    Help Workshop has modified one keyword to match the other.
        HC2002: Note: 
    The keywords "safe" and "Safe" are identical except for case. Help
    Workshop has modified one keyword to match the other.
        HC2002: Note: 
    The keywords "tcp" and "TCP" are identical except for case. Help
    Workshop has modified one keyword to match the other.
        HC2002: Note: 
    The keywords "threads" and "Threads" are identical except for case.
    Help Workshop has modified one keyword to match the other.
        HC2002: Note: 
    The keywords "utf" and "Utf" are identical except for case. Help
    Workshop has modified one keyword to match the other.
    179Topics
    916Jumps
    1,214Keywords
    0Bitmaps

    Created E:\TclCvs\tcl8.2b1\tools\tcl82.hlp, 473,632 bytes
    Hall+Zeck compression decreased help file by 647,987 bytes.
    Compile time: 1 minute, 27 seconds
    5 notes, 3 warnings

DesiredBehavior:
The INCLUDE makefile macro has the same behavior as LIB.
    So lets use that, too.

    Please consider dumping troff as the document base in favor of TMML.

Patch:
Index: makefile.vc
===================================================================
RCS file: /cvsroot/tcl/win/makefile.vc,v
retrieving revision 1.38
diff -c -r1.38 makefile.vc
*** makefile.vc1999/07/13 22:23:451.38
--- makefile.vc1999/07/19 03:04:44
***************
*** 38,43 ****
--- 38,45 ----
  TOOLS32= c:\program files\devstudio\vc
  TOOLS32_rc= c:\program files\devstudio\sharedide
  TOOLS16= c:\msvc
+ LIB             = $(TOOLS32)\lib       # use ; to seperate elements
+ INCLUDE         = $(TOOLS32)\include   # use ; to seperate elements

  INSTALLDIR= c:\program files\Tcl

***************
*** 210,216 ****
  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"
--- 212,217 ----
***************
*** 224,232 ****
  TCL_INCLUDES= -I$(WINDIR) -I$(GENERICDIR)
  TCL_DEFINES= -D__WIN32__ $(DEBUGDEFINES) $(THREADDEFINES)

! TCL_CFLAGS= $(cdebug) $(cflags) $(cvarsdll) $(include32)  $(TCL_INCLUDES) $(TCL_DEFINES)
! CON_CFLAGS= $(cdebug) $(cflags) $(cvars) $(include32) -DCONSOLE
  DOS_CFLAGS= $(cdebug) $(cflags) $(include16) -AL 
  DLL16_CFLAGS= $(cdebug) $(cflags) $(include16) -ALw

--- 225,233 ----
  TCL_INCLUDES= -I$(WINDIR) -I$(GENERICDIR)
  TCL_DEFINES= -D__WIN32__ $(DEBUGDEFINES) $(THREADDEFINES)

! TCL_CFLAGS= $(cdebug) $(cflags) $(cvarsdll)  $(TCL_INCLUDES) $(TCL_DEFINES)
! CON_CFLAGS= $(cdebug) $(cflags) $(cvars) -DCONSOLE
  DOS_CFLAGS= $(cdebug) $(cflags) $(include16) -AL 
  DLL16_CFLAGS= $(cdebug) $(cflags) $(include16) -ALw

***************
*** 331,373 ****

  $(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)
  <<

  $(TCLSTUBLIB): $(TCLSTUBOBJS)
! $(lib32) /out:$@ $(TCLSTUBOBJS)

  $(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)

--- 332,368 ----

  $(DUMPEXTS): $(WINDIR)\winDumpExts.c
  $(cc32) $(CON_CFLAGS) -Fo$(TMPDIR)\ $?
  $(link32) $(ldebug) $(conlflags) $(guilibs) -out:$@  $(TMPDIR)\winDumpExts.obj 

  $(TCLLIB): $(TCLDLL)

  $(TCLDLL): $(TCLOBJS) $(TMPDIR)\tcl.def $(TMPDIR)\tcl.res
  $(link32) $(ldebug) $(dlllflags) -def:$(TMPDIR)\tcl.def  -out:$@ $(TMPDIR)\tcl.res $(guilibsdll) @<<
  $(TCLOBJS)
  <<

  $(TCLSTUBLIB): $(TCLSTUBOBJS)
! $(lib32) /nologo /out:$@ $(TCLSTUBOBJS)

  $(TCLPLUGINLIB): $(TCLPLUGINDLL)

  $(TCLPLUGINDLL): $(TCLOBJS) $(TMPDIR)\plugin.def $(TMPDIR)\tcl.res
  $(link32) $(ldebug) $(dlllflags) -def:$(TMPDIR)\plugin.def  -out:$@ $(TMPDIR)\tcl.res $(guilibsdll) @<<
  $(TCLOBJS)
  <<

  $(TCLSH): $(TCLSHOBJS) $(TCLLIB) $(TMPDIR)\tclsh.res
  $(link32) $(ldebug) $(conlflags) $(TMPDIR)\tclsh.res -stack:2300000  -out:$@ $(conlibsdll) $(TCLLIB) $(TCLSHOBJS) 

  $(TCLSHP): $(TCLSHOBJS) $(TCLPLUGINLIB) $(TMPDIR)\tclsh.res
  $(link32) $(ldebug) $(conlflags) $(TMPDIR)\tclsh.res -stack:2300000  -out:$@ $(conlibsdll) $(TCLPLUGINLIB) $(TCLSHOBJS) 

  $(TCLTEST): $(TCLTESTOBJS) $(TCLLIB) $(TMPDIR)\tclsh.res
  $(link32) $(ldebug) $(conlflags) $(TMPDIR)\tclsh.res -stack:2300000  -out:$@ $(conlibsdll) $(TCLLIB) $(TCLTESTOBJS)

***************
*** 396,422 ****

  $(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
  if exist $(cc16) $(cc16) $(DOS_CFLAGS) -Fo$(TMPDIR)\ $?
- set LIB=$(TOOLS16)\lib
  if exist $(cc16) $(link16) /NOLOGO /ONERROR:NOEXE /NOI /STACK:16384  $(TMPDIR)\cat.obj,$@,nul,llibce.lib,nul

--- 391,412 ----
***************
*** 494,499 ****
--- 484,512 ----
  genstubs:
  tclsh$(VERSION) $(ROOT)\tools\genStubs.tcl $(GENERICDIR)  $(GENERICDIR)\tcl.decls $(GENERICDIR)\tclInt.decls
+ 
+ #
+ # Regenerate the windows help files.
+ #
+ 
+ TCLTOOLS = $(ROOT)/tools
+ MAN2TCL  = $(TCLTOOLS)/man2tcl
+ TCLRTF   = $(TCLTOOLS)/tcl.rtf
+ TCLHPJ   = $(TCLTOOLS)/tcl.hpj
+ MAN2HELP = $(TCLTOOLS)/man2help.tcl
+ HCRTF    = $(TOOLS32)/bin/hcrtf.exe
+ 
+ winhelp : $(TCLRTF)
+         cd $(TCLTOOLS)
+         start /wait $(HCRTF) -xn $(TCLHPJ)
+ 
+ $(MAN2TCL).exe : $(MAN2TCL).obj 
+         cd $(TCLTOOLS)
+         $(cc32) /nologo /G4 /ML /O2 $(MAN2TCL).c
+ 
+ $(TCLRTF) : $(MAN2TCL).exe $(TCLSH)
+         cd $(TCLTOOLS)
+         ..\win\$(TCLSH) $(MAN2HELP) $(NAMEPREFIX) $(VERSION) $(ROOT)/doc ../../tk8.2b1/doc

  #
  # Special case object file targets

PatchFiles:
win/makefile.vc



All of the mentioned fixes are in 8.3.0 or earlier. 
-- 01/25/2000 hobbs
welch Closed ticket [218852ffff]. [History diff]2000-10-26 08:30:14
dgp Ticket [218852ffff]: 3 changes [History diff]2001-04-05 06:54:24
Log in (anonymous is fine) to add a comment.