Skip to content
Tcl Source Code View Ticket
Login

View Ticket

mingw32 support for Tcl

Deleted217961ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 00:46:48
OriginalBugID: 4234 RFE
Version: 8.3
SubmitDate: '2000-02-23'
LastModified: '2000-05-17'
Severity: MED
Status: Closed
Submitter: techsupp
ChangedBy: hobbs
RelatedBugIDs: 4211
OS: All Windows
FixedDate: '2000-10-25'
ClosedDate: '2000-05-17'


Name:
Jan Nijtmans

Comments:
The patch for "configure" is not included, so autoconf needs to be run
    to recreate it.

DesiredBehavior:
Here are the patches from Mumit Khan <[email protected]>, but officially submitted through the bugForm procedure. I
only tested it with mingw32-crtdll, not with the msvcrt variant. There are still some bugs left in mingw,
but apart from that those patches show exactly what needs to be done at the Tcl side.

Patch:
*** win/Makefile.in.origThu Feb 10 12:10:10 2000
--- win/Makefile.inWed Feb 23 20:05:02 2000
***************
*** 105,115 ****
  WIN_DIR= @srcdir@
  COMPAT_DIR= @srcdir@/../compat

  PATHTYPE= @PATHTYPE@

! GENERIC_DIR_NATIVE = $(shell cygpath $(PATHTYPE) '$(GENERIC_DIR)')
! WIN_DIR_NATIVE   = $(shell cygpath $(PATHTYPE) '$(WIN_DIR)')
! ROOT_DIR_NATIVE   = $(shell cygpath $(PATHTYPE) '$(ROOT_DIR)')

  LIBRARY_DIR   = $(shell echo '$(ROOT_DIR_NATIVE)/library' | sed 's/\\/\//g' )

--- 105,120 ----
  WIN_DIR= @srcdir@
  COMPAT_DIR= @srcdir@/../compat

+ # This is a switch passed to a Cygwin script that generates file
+ # names based on the platform.
  PATHTYPE= @PATHTYPE@

! # This program converts between Windows native and Cygwin POSIX pathnames.
! CYGPATH= @CYGPATH@
! 
! GENERIC_DIR_NATIVE = $(shell $(CYGPATH) $(PATHTYPE) '$(GENERIC_DIR)')
! WIN_DIR_NATIVE   = $(shell $(CYGPATH) $(PATHTYPE) '$(WIN_DIR)')
! ROOT_DIR_NATIVE   = $(shell $(CYGPATH) $(PATHTYPE) '$(ROOT_DIR)')

  LIBRARY_DIR   = $(shell echo '$(ROOT_DIR_NATIVE)/library' | sed 's/\\/\//g' )

***************
*** 138,150 ****
  # Macro that expands to the first dependency argument with the appropriate
  # path type already resolved.

! DEPARG = "$(shell cygpath $(PATHTYPE) $<)"

  # Setting the VPATH variable to a list of paths will cause the 
  # makefile to look into these paths when resolving .c to .obj
! # dependencies.

! VPATH = $(GENERIC_DIR);$(WIN_DIR);$(COMPAT_DIR)

  AR= @AR@
  CC= @CC@
--- 143,156 ----
  # Macro that expands to the first dependency argument with the appropriate
  # path type already resolved.

! DEPARG = "$(shell $(CYGPATH) $(PATHTYPE) $<)"

  # Setting the VPATH variable to a list of paths will cause the 
  # makefile to look into these paths when resolving .c to .obj
! # dependencies. Note the ':' to avoid autoconf's habit of deleting
! # all VPATH lines without an explicit ':' in it. 

! VPATH = $(GENERIC_DIR)@VPSEP@$(WIN_DIR)@VPSEP@$(COMPAT_DIR) # : 

  AR= @AR@
  CC= @CC@
***************
*** 300,318 ****
  hcw /c /e tcl.hpj

  $(MAN2TCL): $(ROOT_DIR)/tools/man2tcl.c
! $(CC) $(CFLAGS_OPTIMIZE) $(MAN2TCLFLAGS) -o $(MAN2TCL) "$(ROOT_DIR_NATIVE)"/tools/man2tcl.c

  $(TCLSH): $(TCL_LIB_FILE) $(TCLSH_OBJS)
! $(CC) $(CFLAGS) $(TCLSH_OBJS) $(TCL_LIB_FILE) $(LIBS) $(CC_EXENAME) 

  $(TCLTEST): $(TCL_LIB_FILE) $(TCLTEST_OBJS) $(CAT32)
! $(CC) $(CFLAGS) $(TCLTEST_OBJS) $(TCL_LIB_FILE) $(LIBS) $(CC_EXENAME) 

! cat32.obj: cat.c
  $(CC) -c $(CC_SWITCHES) $(DEPARG) $(CC_OBJNAME)

! $(CAT32): cat32.obj
! $(CC) $(CFLAGS) cat32.obj $(CC_EXENAME) -link $(LDFLAGS_CONSOLE)

  # The following targets are configured by autoconf to generate either
  # a shared library or static library
--- 306,324 ----
  hcw /c /e tcl.hpj

  $(MAN2TCL): $(ROOT_DIR)/tools/man2tcl.c
! $(CC) $(CFLAGS_OPTIMIZE) $(MAN2TCLFLAGS) -o $(MAN2TCL) "$(ROOT_DIR_NATIVE)"/tools/man2tcl.c $(LDFLAGS_CONSOLE)

  $(TCLSH): $(TCL_LIB_FILE) $(TCLSH_OBJS)
! $(CC) $(CFLAGS) $(TCLSH_OBJS) $(TCL_LIB_FILE) $(LIBS) $(CC_EXENAME) $(LDFLAGS_CONSOLE)

  $(TCLTEST): $(TCL_LIB_FILE) $(TCLTEST_OBJS) $(CAT32)
! $(CC) $(CFLAGS) $(TCLTEST_OBJS) $(TCL_LIB_FILE) $(LIBS) $(CC_EXENAME) $(LDFLAGS_CONSOLE)

! cat32.${OBJEXT}: cat.c
  $(CC) -c $(CC_SWITCHES) $(DEPARG) $(CC_OBJNAME)

! $(CAT32): cat32.${OBJEXT}
! $(CC) $(CFLAGS) cat32.${OBJEXT} $(CC_EXENAME) $(LDFLAGS_CONSOLE)

  # The following targets are configured by autoconf to generate either
  # a shared library or static library
***************
*** 323,329 ****

  ${TCL_DLL_FILE}: ${TCL_OBJS}
  @$(RM) ${TCL_DLL_FILE}
! @MAKE_DLL@ ${TCL_OBJS}

  ${TCL_LIB_FILE}: ${TCL_OBJS}
  @$(RM) ${TCL_LIB_FILE}
--- 329,335 ----

  ${TCL_DLL_FILE}: ${TCL_OBJS}
  @$(RM) ${TCL_DLL_FILE}
! @MAKE_DLL@ ${TCL_OBJS} ${SHLIB_LD_LIBS}

  ${TCL_LIB_FILE}: ${TCL_OBJS}
  @$(RM) ${TCL_LIB_FILE}
***************
*** 342,348 ****

  ${PIPE_DLL_FILE}: ${PIPE_OBJS}
  @$(RM) ${PIPE_DLL_FILE}
! $(CC) $(CFLAGS) ${PIPE_OBJS} $(LIBS) -Fe$(PIPE_DLL_FILE) 

  # Add the object extension to the implicit rules.  By default .obj is not
  # automatically added.
--- 348,354 ----

  ${PIPE_DLL_FILE}: ${PIPE_OBJS}
  @$(RM) ${PIPE_DLL_FILE}
! $(CC) $(CFLAGS) ${PIPE_OBJS} $(LIBS) $(CC_EXENAME) $(LDFLAGS_CONSOLE)

  # Add the object extension to the implicit rules.  By default .obj is not
  # automatically added.
***************
*** 351,380 ****

  # Special case object targets

! tclWinInit.obj: tclWinInit.c
  $(CC) -c $(CC_SWITCHES) -DBUILD_tcl $(EXTFLAGS) $(DEPARG) $(CC_OBJNAME)

! testMain.obj: tclAppInit.c
  $(CC) -c $(CC_SWITCHES) -DTCL_TEST $(DEPARG) $(CC_OBJNAME)

! tclTest.obj: tclTest.c
  $(CC) -c $(CC_SWITCHES) $(DEPARG) $(CC_OBJNAME)

! tclTestObj.obj: tclTestObj.c
  $(CC) -c $(CC_SWITCHES) $(DEPARG) $(CC_OBJNAME)

! tclWinTest.obj: tclWinTest.c
  $(CC) -c $(CC_SWITCHES) $(DEPARG) $(CC_OBJNAME)

! tclAppInit.obj : tclAppInit.c
  $(CC) -c $(CC_SWITCHES) $(DEPARG) $(CC_OBJNAME)

  # The following objects should be built using the stub interfaces

! tclWinReg.obj : tclWinReg.c
  $(CC) -c $(CC_SWITCHES) -DUSE_TCL_STUBS $(DEPARG) $(CC_OBJNAME)

! tclWinDde.obj : tclWinDde.c
  $(CC) -c $(CC_SWITCHES) -DUSE_TCL_STUBS $(DEPARG) $(CC_OBJNAME)

  # The following objects are part of the stub library and should not
--- 357,386 ----

  # Special case object targets

! tclWinInit.${OBJEXT}: tclWinInit.c
  $(CC) -c $(CC_SWITCHES) -DBUILD_tcl $(EXTFLAGS) $(DEPARG) $(CC_OBJNAME)

! testMain.${OBJEXT}: tclAppInit.c
  $(CC) -c $(CC_SWITCHES) -DTCL_TEST $(DEPARG) $(CC_OBJNAME)

! tclTest.${OBJEXT}: tclTest.c
  $(CC) -c $(CC_SWITCHES) $(DEPARG) $(CC_OBJNAME)

! tclTestObj.${OBJEXT}: tclTestObj.c
  $(CC) -c $(CC_SWITCHES) $(DEPARG) $(CC_OBJNAME)

! tclWinTest.${OBJEXT}: tclWinTest.c
  $(CC) -c $(CC_SWITCHES) $(DEPARG) $(CC_OBJNAME)

! tclAppInit.${OBJEXT} : tclAppInit.c
  $(CC) -c $(CC_SWITCHES) $(DEPARG) $(CC_OBJNAME)

  # The following objects should be built using the stub interfaces

! tclWinReg.${OBJEXT} : tclWinReg.c
  $(CC) -c $(CC_SWITCHES) -DUSE_TCL_STUBS $(DEPARG) $(CC_OBJNAME)

! tclWinDde.${OBJEXT} : tclWinDde.c
  $(CC) -c $(CC_SWITCHES) -DUSE_TCL_STUBS $(DEPARG) $(CC_OBJNAME)

  # The following objects are part of the stub library and should not
*** win/Makefile.mingw.origWed Feb 23 20:05:02 2000
--- win/Makefile.mingwWed Feb 23 20:05:02 2000
***************
*** 0 ****
--- 1,615 ----
+ # GCC/MinGW makefile
+ #
+ # See the file "license.terms" for information on usage and redistribution
+ # of this file, and for a DISCLAIMER OF ALL WARRANTIES.
+ # 
+ # Copyright (c) 1995-1996 Sun Microsystems, Inc.
+ # Copyright (c) 1998-1999 by Scriptics Corporation.
+ #
+ # RCS: @(#) $Id: Makefile.mingw,v 1.1 2000/02/17 20:23:06 khan Exp $
+ 
+ # Does not depend on the presence of any environment variables in
+ # order to compile tcl; all needed information is derived from 
+ # location of the compiler directories.
+ 
+ #
+ # Project directories
+ #
+ # ROOT  = top of source tree
+ #
+ # TOOLS32 = location of VC++ 32-bit development tools. Note that the
+ #    VC++ 2.0 header files are broken, so you need to use the
+ #    ones that come with the developer network CD's, or later
+ #    versions of VC++.
+ #
+ # INSTALLDIR = where the install- targets should copy the binaries and
+ #    support files
+ #
+ 
+ VPATH = .:$(WINDIR):$(GENERICDIR):$(ROOT)/compat
+ 
+ # Set this to the appropriate value of /MACHINE: for your platform
+ MACHINE= IX86
+ 
+ ROOT= ..
+ INSTALLDIR= c:/Progra~1/Tcl
+ 
+ # Yes, Mingw will support IA64!
+ #!IF "$(MACHINE)" == "IA64"
+ #TOOLS32= c:/mingw64
+ #TOOLS32_rc= c:/mingw64
+ #!ELSE
+ TOOLS32= c:/mingw32
+ TOOLS32_rc= c:/mingw32
+ #!ENDIF
+ 
+ # Uncomment the following line to compile with thread support
+ #THREADDEFINES = -DTCL_THREADS=1
+ 
+ # Set NODEBUG to 0 to compile with symbols
+ NODEBUG = 1
+ 
+ # The following defines can be used to control the amount of debugging
+ # code that is added to the compilation.
+ #
+ #-DTCL_MEM_DEBUGEnables the debugging memory allocator.
+ #-DTCL_COMPILE_DEBUGEnables byte compilation logging.
+ #-DTCL_COMPILE_STATSEnables byte compilation statistics gathering.
+ #-DUSE_TCLALLOC=0Disables the Tcl memory allocator in favor
+ #of the native malloc implementation.  This is
+ #needed when using Purify.
+ #
+ #DEBUGDEFINES = -DTCL_MEM_DEBUG -DTCL_COMPILE_DEBUG -DTCL_COMPILE_STATS
+ #DEBUGDEFINES = -DUSE_TCLALLOC=0
+ 
+ ######################################################################
+ # Do not modify below this line
+ ######################################################################
+ 
+ NAMEPREFIX = tcl
+ STUBPREFIX = $(NAMEPREFIX)stub
+ DOTVERSION = 8.3
+ VERSION = 83
+ 
+ BINROOT= .
+ #!IF "$(NODEBUG)" == "1"
+ #TMPDIRNAME= Release
+ #DBGX=
+ #!ELSE
+ #TMPDIRNAME= Debug
+ #DBGX= d
+ #!ENDIF
+ TMPDIRNAME= .
+ TMPDIR= $(BINROOT)/$(TMPDIRNAME)
+ OUTDIRNAME= $(TMPDIRNAME)
+ OUTDIR= $(TMPDIR)
+ 
+ TCLLIB= $(OUTDIR)/lib$(NAMEPREFIX)$(VERSION)$(DBGX).a
+ TCLDLLNAME= $(NAMEPREFIX)$(VERSION)$(DBGX).dll
+ TCLDLL= $(OUTDIR)/$(TCLDLLNAME)
+ 
+ TCLSTUBLIBNAME= lib$(STUBPREFIX)$(VERSION)$(DBGX).a
+ TCLSTUBLIB= $(OUTDIR)/$(TCLSTUBLIBNAME)
+ 
+ TCLPLUGINLIB= $(OUTDIR)/lib$(NAMEPREFIX)$(VERSION)p$(DBGX).a
+ TCLPLUGINDLLNAME= $(NAMEPREFIX)$(VERSION)p$(DBGX).dll
+ TCLPLUGINDLL= $(OUTDIR)/$(TCLPLUGINDLLNAME)
+ TCLSH= $(OUTDIR)/$(NAMEPREFIX)sh$(VERSION)$(DBGX).exe
+ TCLSHP= $(OUTDIR)/$(NAMEPREFIX)shp$(VERSION)$(DBGX).exe
+ TCLPIPEDLLNAME= $(NAMEPREFIX)pip$(VERSION)$(DBGX).dll
+ TCLPIPEDLL= $(OUTDIR)/$(TCLPIPEDLLNAME)
+ TCLREGDLLNAME= $(NAMEPREFIX)reg$(VERSION)$(DBGX).dll
+ TCLREGDLL= $(OUTDIR)/$(TCLREGDLLNAME)
+ TCLDDEDLLNAME= $(NAMEPREFIX)dde$(VERSION)$(DBGX).dll
+ TCLDDEDLL= $(OUTDIR)/$(TCLDDEDLLNAME)
+ TCLTEST= $(OUTDIR)/$(NAMEPREFIX)test.exe
+ CAT32= $(TMPDIR)/cat32.exe
+ #RMDIR= ./rmd.bat
+ #MKDIR= ./mkd.bat
+ #RM= del
+ RMDIR= rm -rf
+ MKDIR= mkdir -p
+ RM= rm -f
+ COPY= cp
+ 
+ LIB_INSTALL_DIR= $(INSTALLDIR)/lib
+ BIN_INSTALL_DIR= $(INSTALLDIR)/bin
+ SCRIPT_INSTALL_DIR= $(INSTALLDIR)/lib/tcl$(DOTVERSION)
+ INCLUDE_INSTALL_DIR= $(INSTALLDIR)/include
+ 
+ TCLSHOBJS =  + $(TMPDIR)/tclAppInit.o
+ 
+ TCLTESTOBJS =  + $(TMPDIR)/tclTest.o  + $(TMPDIR)/tclTestObj.o  + $(TMPDIR)/tclTestProcBodyObj.o  + $(TMPDIR)/tclThreadTest.o  + $(TMPDIR)/tclWinTest.o  + $(TMPDIR)/testMain.o
+ 
+ TCLOBJS =  + $(TMPDIR)/regcomp.o  + $(TMPDIR)/regexec.o  + $(TMPDIR)/regfree.o  + $(TMPDIR)/regerror.o  + $(TMPDIR)/strftime.o  + $(TMPDIR)/tclAlloc.o  + $(TMPDIR)/tclAsync.o  + $(TMPDIR)/tclBasic.o  + $(TMPDIR)/tclBinary.o  + $(TMPDIR)/tclCkalloc.o  + $(TMPDIR)/tclClock.o  + $(TMPDIR)/tclCmdAH.o  + $(TMPDIR)/tclCmdIL.o  + $(TMPDIR)/tclCmdMZ.o  + $(TMPDIR)/tclCompCmds.o  + $(TMPDIR)/tclCompExpr.o  + $(TMPDIR)/tclCompile.o  + $(TMPDIR)/tclDate.o  + $(TMPDIR)/tclEncoding.o  + $(TMPDIR)/tclEnv.o  + $(TMPDIR)/tclEvent.o  + $(TMPDIR)/tclExecute.o  + $(TMPDIR)/tclFCmd.o  + $(TMPDIR)/tclFileName.o  + $(TMPDIR)/tclGet.o  + $(TMPDIR)/tclHash.o  + $(TMPDIR)/tclHistory.o  + $(TMPDIR)/tclIndexObj.o  + $(TMPDIR)/tclInterp.o  + $(TMPDIR)/tclIO.o  + $(TMPDIR)/tclIOCmd.o  + $(TMPDIR)/tclIOSock.o  + $(TMPDIR)/tclIOUtil.o  + $(TMPDIR)/tclLink.o  + $(TMPDIR)/tclLiteral.o  + $(TMPDIR)/tclListObj.o  + $(TMPDIR)/tclLoad.o  + $(TMPDIR)/tclMain.o  + $(TMPDIR)/tclNamesp.o  + $(TMPDIR)/tclNotify.o  + $(TMPDIR)/tclObj.o  + $(TMPDIR)/tclPanic.o  + $(TMPDIR)/tclParse.o  + $(TMPDIR)/tclParseExpr.o  + $(TMPDIR)/tclPipe.o  + $(TMPDIR)/tclPkg.o  + $(TMPDIR)/tclPosixStr.o  + $(TMPDIR)/tclPreserve.o  + $(TMPDIR)/tclProc.o  + $(TMPDIR)/tclRegexp.o  + $(TMPDIR)/tclResolve.o  + $(TMPDIR)/tclResult.o  + $(TMPDIR)/tclScan.o  + $(TMPDIR)/tclStringObj.o  + $(TMPDIR)/tclStubInit.o  + $(TMPDIR)/tclStubLib.o  + $(TMPDIR)/tclThread.o  + $(TMPDIR)/tclTimer.o  + $(TMPDIR)/tclUtf.o  + $(TMPDIR)/tclUtil.o  + $(TMPDIR)/tclVar.o  + $(TMPDIR)/tclWin32Dll.o  + $(TMPDIR)/tclWinChan.o  + $(TMPDIR)/tclWinConsole.o  + $(TMPDIR)/tclWinSerial.o  + $(TMPDIR)/tclWinError.o  + $(TMPDIR)/tclWinFCmd.o  + $(TMPDIR)/tclWinFile.o  + $(TMPDIR)/tclWinInit.o  + $(TMPDIR)/tclWinLoad.o  + $(TMPDIR)/tclWinMtherr.o  + $(TMPDIR)/tclWinNotify.o  + $(TMPDIR)/tclWinPipe.o  + $(TMPDIR)/tclWinSock.o  + $(TMPDIR)/tclWinThrd.o  + $(TMPDIR)/tclWinTime.o 
+ 
+ TCLSTUBOBJS = $(TMPDIR)/tclStubLib.o  + 
+ #cc32= "$(TOOLS32)/bin/cl.exe"
+ #link32= "$(TOOLS32)/bin/link.exe"
+ #rc32= "$(TOOLS32_rc)/bin/rc.exe"
+ #include32= -I"$(TOOLS32)/include"
+ #libpath32= /LIBPATH:"$(TOOLS32)/lib"
+ #lib32= "$(TOOLS32)/bin/lib.exe"
+ 
+ # Say yes if you have gcc-2.95.2-1 and binutils-19990818-1 or later, which
+ # contains support for `gcc -shared' and `ld --shared'.
+ LD_SUPPORTS_SHARED = no
+ 
+ cc32= $(CROSS)gcc
+ link32= $(cc32)
+ rc32= $(CROSS)windres
+ include32= 
+ libpath32= 
+ lib32= $(CROSS)ar
+ # Needed if LD_SUPPORTS_SHARED is "no". GNU ld supports --shared on 
+ # x86-windows starting from binutils-19990818-1 release. 
+ dllwrap= $(CROSS)dllwrap
+ 
+ # Needed for cross-compilation only.
+ ifneq "$(strip $(CROSS))" ""
+ rc32_flags= --preprocessor "$(cc32) -c -E -xc-header -DRC_INVOKED"
+ dllwrap_flags= --as=$(CROSS)as --dlltool-name=$(CROSS)dlltool  +   --driver-name=$(cc32)
+ endif
+ 
+ WINDIR= $(ROOT)/win
+ GENERICDIR= $(ROOT)/generic
+ 
+ TCL_INCLUDES= -I"$(WINDIR)" -I"$(GENERICDIR)"
+ TCL_DEFINES= $(DEBUGDEFINES) $(THREADDEFINES)
+ 
+ ######################################################################
+ # Compile flags
+ ######################################################################
+ 
+ #!IF "$(NODEBUG)" == "1"
+ ## This cranks the optimization level to maximize speed
+ #cdebug = -O2 -Gs -GD
+ #!ELSE
+ #!IF "$(MACHINE)" == "IA64"
+ #cdebug = -Od -Zi
+ #!ELSE
+ #cdebug = -Z7 -Od -WX
+ #!ENDIF
+ #!ENDIF
+ 
+ ifeq "$(NODEBUG)" "1"
+ # This cranks the optimization level to maximize speed
+ cdebug = -O2
+ else
+ ifeq "$(MACHINE)" "IA64"
+ cdebug = -g
+ else
+ cdebug = -g
+ endif
+ endif
+ 
+ # declarations common to all compiler options
+ #cflags= -c -W3 -nologo -Fp$(TMPDIR)/ -YX
+ #cvarsdll = -MD$(DBGX)
+ cflags = -c -Wall
+ cvarsdll = 
+ 
+ TCL_CFLAGS= $(cdebug) $(cflags) $(cvarsdll) $(include32)  + $(TCL_INCLUDES) $(TCL_DEFINES)
+ CON_CFLAGS= $(cdebug) $(cflags) $(include32) -DCONSOLE
+ 
+ ######################################################################
+ # Link flags
+ ######################################################################
+ 
+ #!IF "$(NODEBUG)" == "1"
+ #ldebug= /RELEASE
+ #!ELSE
+ #ldebug= -debug:full -debugtype:cv
+ #!ENDIF
+ 
+ # declarations common to all linker options
+ #lflags= /NODEFAULTLIB /NOLOGO /MACHINE:$(MACHINE) $(libpath32)
+ lflags= $(libpath32)
+ 
+ ## declarations for use on Intel i386, i486, and Pentium systems
+ #!IF "$(MACHINE)" == "IX86"
+ #DLLENTRY = @12
+ #dlllflags = $(lflags) -entry:_DllMainCRTStartup$(DLLENTRY) -dll
+ #!ELSE
+ #!IF "$(MACHINE)" == "IA64"
+ #DLLENTRY = @12
+ #dlllflags = $(lflags) -dll
+ #!ELSE
+ #dlllflags = $(lflags) -entry:_DllMainCRTStartup$(DLLENTRY) -dll
+ #!ENDIF
+ #!ENDIF
+ 
+ ifeq "$(strip $(LD_SUPPORTS_SHARED))" "yes"
+ dlllflags = $(lflags) -shared
+ else
+ dlllflags = $(lflags) 
+ endif
+ 
+ #conlflags = $(lflags) -subsystem:console -entry:mainCRTStartup
+ #guilflags = $(lflags) -subsystem:windows -entry:WinMainCRTStartup
+ conlflags = $(lflags) 
+ guilflags = $(lflags) -mwindows
+ 
+ #!IF "$(MACHINE)" == "PPC"
+ #libc = libc$(DBGX).lib
+ #libcdll = crtdll$(DBGX).lib
+ #!ELSE
+ #libc = libc$(DBGX).lib oldnames.lib
+ #libcdll = msvcrt$(DBGX).lib oldnames.lib
+ #!ENDIF
+ 
+ baselibs   = #kernel32.lib $(optlibs) advapi32.lib user32.lib
+ winlibs   = #$(baselibs) gdi32.lib comdlg32.lib winspool.lib
+ winlibs   = -lwinspool
+ 
+ guilibs   = $(libc) $(winlibs)
+ conlibs   = $(libc) $(baselibs)
+ guilibsdll = $(libcdll) $(winlibs)
+ conlibsdll = $(libcdll) $(baselibs)
+ 
+ ######################################################################
+ # Project specific targets
+ ######################################################################
+ 
+ release:    setup $(TCLSH) dlls
+ dlls:    setup $(TCLPIPEDLL) $(TCLREGDLL) $(TCLDDEDLL)
+ all:    setup $(TCLSH) dlls $(CAT32) 
+ tcltest:    setup $(TCLTEST) dlls $(CAT32)
+ plugin:    setup $(TCLPLUGINDLL) $(TCLSHP)
+ install:    install-binaries install-libraries
+ test:    setup $(TCLTEST) dlls $(CAT32)
+ set TCL_LIBRARY=$(ROOT)/library
+ $(TCLTEST) $(ROOT)/tests/all.tcl
+ 
+ setup:
+ -@$(MKDIR) $(TMPDIR)
+ -@$(MKDIR) $(OUTDIR)
+ 
+ $(TCLLIB): $(TCLDLL)
+ 
+ #$(TCLDLL): $(TCLOBJS) $(TMPDIR)/tcl.res
+ #$(link32) $(ldebug) $(dlllflags)  + #-out:$@ $(TMPDIR)/tcl.res $(guilibsdll) @<<
+ #$(TCLOBJS)
+ #<<
+ 
+ ifeq "$(strip $(LD_SUPPORTS_SHARED))" "yes"
+ $(TCLDLL): $(TCLOBJS) $(TMPDIR)/tcl.res.o
+ $(link32) $(ldebug) $(dlllflags)  + -o $@ $(TMPDIR)/tcl.res.o $(guilibsdll)  + -Wl,--out-implib,$(TCLLIB)  + -Wl,--output-def,tcl83.def  + $(TCLOBJS)
+ else
+ $(TCLDLL): $(TCLOBJS) $(TMPDIR)/tcl.res.o
+ $(dllwrap) $(dllwrap_flags) $(ldebug) $(dlllflags)  + -o $@ $(TMPDIR)/tcl.res.o $(guilibsdll)  + --output-lib $(TCLLIB)  + --output-def tcl83.def  + $(TCLOBJS)
+ endif
+ 
+ $(TCLSTUBLIB): $(TCLSTUBOBJS)
+ $(lib32) crv $@ $(TCLSTUBOBJS)
+ 
+ $(TCLPLUGINLIB): $(TCLPLUGINDLL)
+ 
+ #$(TCLPLUGINDLL): $(TCLOBJS) $(TMPDIR)/tcl.res
+ #$(link32) $(ldebug) $(dlllflags)  + #-out:$@ $(TMPDIR)/tcl.res $(guilibsdll) @<<
+ #$(TCLOBJS)
+ #<<
+ 
+ $(TCLSH): $(TCLSHOBJS) $(TCLLIB) $(TMPDIR)/tclsh.res.o
+ $(link32) $(ldebug) $(conlflags) $(TMPDIR)/tclsh.res.o  + -Wl,--stack,0x2300000  + -o $@ $(TCLSHOBJS) $(TCLLIB) $(conlibsdll)
+ 
+ $(TCLSHP): $(TCLSHOBJS) $(TCLPLUGINLIB) $(TMPDIR)/tclsh.res.o
+ $(link32) $(ldebug) $(conlflags) $(TMPDIR)/tclsh.res.o  + -Wl,--stack,0x2300000  + -o $@ $(TCLSHOBJS) $(TCLPLUGINLIB) $(conlibsdll) 
+ 
+ $(TCLTEST): $(TCLTESTOBJS) $(TCLLIB) $(TMPDIR)/tclsh.res.o
+ $(link32) $(ldebug) $(conlflags) $(TMPDIR)/tclsh.res.o  + -Wl,--stack,0x2300000  +  -o $@ $(TCLTESTOBJS) $(TCLLIB) $(conlibsdll)
+ 
+ $(TCLPIPEDLL): $(WINDIR)/stub16.c
+ $(cc32) $(CON_CFLAGS) -o $(TMPDIR)/stub16.o $(WINDIR)/stub16.c
+ $(link32) $(ldebug) $(conlflags) -o $@ $(TMPDIR)/stub16.o $(guilibs)
+ 
+ ifeq "$(strip $(LD_SUPPORTS_SHARED))" "yes"
+ $(TCLDDEDLL): $(TMPDIR)/tclWinDde.o $(TCLSTUBLIB)
+ $(link32) $(ldebug) $(dlllflags)  + -o $@ $(TMPDIR)/tclWinDde.o  + $(conlibsdll) $(TCLSTUBLIB)
+ 
+ $(TCLREGDLL): $(TMPDIR)/tclWinReg.o $(TCLSTUBLIB)
+ $(link32) $(ldebug) $(dlllflags)  + -o $@ $(TMPDIR)/tclWinReg.o  + $(conlibsdll) $(TCLSTUBLIB)
+ else
+ $(TCLDDEDLL): $(TMPDIR)/tclWinDde.o $(TCLSTUBLIB)
+ $(dllwrap) $(dllwrap_flags) $(ldebug) $(dlllflags)  + -o $@ $(TMPDIR)/tclWinDde.o  + $(conlibsdll) $(TCLSTUBLIB)
+ 
+ $(TCLREGDLL): $(TMPDIR)/tclWinReg.o $(TCLSTUBLIB)
+ $(dllwrap) $(dllwrap_flags) $(ldebug) $(dlllflags)  + -o $@ $(TMPDIR)/tclWinReg.o  + $(conlibsdll) $(TCLSTUBLIB)
+ endif
+ 
+ $(CAT32): $(WINDIR)/cat.c
+ $(cc32) $(CON_CFLAGS) -o $@ $?
+ $(link32) $(conlflags) -o $@ -Wl,--stack,0x16384  + $(TMPDIR)/cat.o $(conlibs)
+ 
+ install-binaries: $(TCLSH)
+ $(MKDIR) "$(BIN_INSTALL_DIR)"
+ $(MKDIR) "$(LIB_INSTALL_DIR)"
+ @echo installing $(TCLDLLNAME)
+ @$(COPY) "$(TCLDLL)" "$(BIN_INSTALL_DIR)"
+ @$(COPY) "$(TCLLIB)" "$(LIB_INSTALL_DIR)"
+ @echo installing "$(TCLSH)"
+ @$(COPY) "$(TCLSH)" "$(BIN_INSTALL_DIR)"
+ @echo installing $(TCLPIPEDLLNAME)
+ @$(COPY) "$(TCLPIPEDLL)" "$(BIN_INSTALL_DIR)"
+ @echo installing $(TCLSTUBLIBNAME)
+ @$(COPY) "$(TCLSTUBLIB)" "$(LIB_INSTALL_DIR)"
+ 
+ install-libraries:
+ -@$(MKDIR) "$(LIB_INSTALL_DIR)"
+ -@$(MKDIR) "$(INCLUDE_INSTALL_DIR)"
+ -@$(MKDIR) "$(SCRIPT_INSTALL_DIR)"
+ @echo installing http1.0
+ -@$(MKDIR) "$(SCRIPT_INSTALL_DIR)/http1.0"
+ -@$(COPY) "$(ROOT)/library/http1.0/http.tcl"     "$(SCRIPT_INSTALL_DIR)/http1.0"
+ -@$(COPY) "$(ROOT)/library/http1.0/pkgIndex.tcl" "$(SCRIPT_INSTALL_DIR)/http1.0"
+ @echo installing http2.1
+ -@$(MKDIR) "$(SCRIPT_INSTALL_DIR)/http2.1"
+ -@$(COPY) "$(ROOT)/library/http2.1/http.tcl"     "$(SCRIPT_INSTALL_DIR)/http2.1"
+ -@$(COPY) "$(ROOT)/library/http2.1/pkgIndex.tcl" "$(SCRIPT_INSTALL_DIR)/http2.1"
+ @echo installing opt0.4
+ -@$(MKDIR) "$(SCRIPT_INSTALL_DIR)/opt0.4"
+ -@$(COPY) "$(ROOT)/library/opt0.4/optparse.tcl" "$(SCRIPT_INSTALL_DIR)/opt0.4"
+ -@$(COPY) "$(ROOT)/library/opt0.4/pkgIndex.tcl" "$(SCRIPT_INSTALL_DIR)/opt0.4"
+ @echo installing msgcat1.0
+ -@$(MKDIR) "$(SCRIPT_INSTALL_DIR)/msgcat1.0"
+ -@$(COPY) "$(ROOT)/library/msgcat1.0/msgcat.tcl"   "$(SCRIPT_INSTALL_DIR)/msgcat1.0"
+ -@$(COPY) "$(ROOT)/library/msgcat1.0/pkgIndex.tcl" "$(SCRIPT_INSTALL_DIR)/msgcat1.0"
+ @echo installing $(TCLDDEDLLNAME)
+ -@$(MKDIR) "$(SCRIPT_INSTALL_DIR)/dde1.1"
+ -@$(COPY) "$(TCLDDEDLL)" "$(SCRIPT_INSTALL_DIR)/dde1.1"
+ -@$(COPY) "$(ROOT)/library/dde1.1/pkgIndex.tcl" "$(SCRIPT_INSTALL_DIR)/dde1.1"
+ @echo installing $(TCLREGDLLNAME)
+ -@$(MKDIR) "$(SCRIPT_INSTALL_DIR)/reg1.0"
+ -@$(COPY) "$(TCLREGDLL)" "$(SCRIPT_INSTALL_DIR)/reg1.0"
+ -@$(COPY) "$(ROOT)/library/reg1.0/pkgIndex.tcl" "$(SCRIPT_INSTALL_DIR)/reg1.0"
+ @echo installing encoding files
+ -@$(MKDIR) "$(SCRIPT_INSTALL_DIR)/encoding"
+ -@$(COPY) "$(ROOT)"/library/encoding/*.enc "$(SCRIPT_INSTALL_DIR)/encoding"
+ @echo installing library files
+ -@$(COPY) "$(GENERICDIR)/tcl.h"         "$(INCLUDE_INSTALL_DIR)"
+ -@$(COPY) "$(GENERICDIR)/tclDecls.h"    "$(INCLUDE_INSTALL_DIR)"
+ -@$(COPY) "$(ROOT)/library/history.tcl" "$(SCRIPT_INSTALL_DIR)"
+ -@$(COPY) "$(ROOT)/library/init.tcl"    "$(SCRIPT_INSTALL_DIR)"
+ -@$(COPY) "$(ROOT)/library/ldAout.tcl"  "$(SCRIPT_INSTALL_DIR)"
+ -@$(COPY) "$(ROOT)/library/parray.tcl"  "$(SCRIPT_INSTALL_DIR)"
+ -@$(COPY) "$(ROOT)/library/safe.tcl"    "$(SCRIPT_INSTALL_DIR)"
+ -@$(COPY) "$(ROOT)/library/tclIndex"    "$(SCRIPT_INSTALL_DIR)"
+ -@$(COPY) "$(ROOT)/library/package.tcl" "$(SCRIPT_INSTALL_DIR)"
+ -@$(COPY) "$(ROOT)/library/word.tcl"    "$(SCRIPT_INSTALL_DIR)"
+ -@$(COPY) "$(ROOT)/library/auto.tcl"    "$(SCRIPT_INSTALL_DIR)"
+ 
+ #
+ # Regenerate the stubs files.
+ #
+ 
+ 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).o 
+ cd $(TCLTOOLS)
+ $(cc32) /nologo /G4 /ML /O2 $(MAN2TCL).c
+ 
+ $(TCLRTF): $(MAN2TCL).exe $(TCLSH)
+ cd $(TCLTOOLS)
+ ../win/$(TCLSH) $(MAN2HELP) $(NAMEPREFIX) $(VERSION) $(ROOT)/doc ../../tk$(DOTVERSION)/doc
+ 
+ #
+ # Special case object file targets
+ #
+ 
+ $(TMPDIR)/tclWinInit.o: $(WINDIR)/tclWinInit.c
+ $(cc32) -DBUILD_tcl $(TCL_CFLAGS) $(EXTFLAGS) -o $@ $?
+ 
+ $(TMPDIR)/testMain.o: $(WINDIR)/tclAppInit.c
+ $(cc32) $(TCL_CFLAGS) -DTCL_TEST -o $@ $?
+ 
+ $(TMPDIR)/tclTest.o: $(GENERICDIR)/tclTest.c
+ $(cc32) $(TCL_CFLAGS) -o $@ $?
+ 
+ $(TMPDIR)/tclTestObj.o: $(GENERICDIR)/tclTestObj.c
+ $(cc32) $(TCL_CFLAGS) -o $@ $?
+ 
+ $(TMPDIR)/tclWinTest.o: $(WINDIR)/tclWinTest.c
+ $(cc32) $(TCL_CFLAGS) -o $@ $?
+ 
+ $(TMPDIR)/tclAppInit.o : $(WINDIR)/tclAppInit.c
+ $(cc32) $(TCL_CFLAGS) -o $@ $?
+ 
+ # The following objects should be built using the stub interfaces
+ 
+ $(TMPDIR)/tclWinReg.o : $(WINDIR)/tclWinReg.c
+ $(cc32) $(TCL_CFLAGS) -DUSE_TCL_STUBS -o $@ $?
+ 
+ $(TMPDIR)/tclWinDde.o : $(WINDIR)/tclWinDde.c
+ $(cc32) $(TCL_CFLAGS) -DUSE_TCL_STUBS -o $@ $?
+ 
+ # The following objects are part of the stub library and should not
+ # be built as DLL objects but none of the symbols should be exported
+ 
+ $(TMPDIR)/tclStubLib.o : $(GENERICDIR)/tclStubLib.c
+ $(cc32) $(TCL_CFLAGS) -DSTATIC_BUILD -o $@ $?
+ 
+ 
+ # Dedependency rules
+ 
+ $(GENERICDIR)/regcomp.c:  + $(GENERICDIR)/regguts.h  + $(GENERICDIR)/regc_lex.c  + $(GENERICDIR)/regc_color.c  + $(GENERICDIR)/regc_nfa.c  + $(GENERICDIR)/regc_cvec.c  + $(GENERICDIR)/regc_locale.c
+ $(GENERICDIR)/regcustom.h:  + $(GENERICDIR)/tclInt.h  + $(GENERICDIR)/tclPort.h  + $(GENERICDIR)/regex.h
+ $(GENERICDIR)/regexec.c:  + $(GENERICDIR)/rege_dfa.c  + $(GENERICDIR)/regguts.h
+ $(GENERICDIR)/regerror.c: $(GENERICDIR)/regguts.h
+ $(GENERICDIR)/regfree.c: $(GENERICDIR)/regguts.h
+ $(GENERICDIR)/regfronts.c: $(GENERICDIR)/regguts.h
+ $(GENERICDIR)/regguts.h: $(GENERICDIR)/regcustom.h
+ 
+ #
+ # Implicit rules
+ #
+ 
+ %.o : %.c
+ $(cc32) -DBUILD_tcl $(TCL_CFLAGS) -o $@ $<
+ 
+ %.res.o : %.rc
+ $(rc32) $(rc32_flags) -o $@ --include $(GENERICDIR)  + --include $(WINDIR)  + --define __WIN32__  + $(TCL_DEFINES) $<
+ 
+ #{$(GENERICDIR)}.c{$(TMPDIR)}.o:
+ #    $(cc32) -DBUILD_tcl $(TCL_CFLAGS) -o $@ $<
+ #
+ #{$(ROOT)/compat}.c{$(TMPDIR)}.o:
+ #    $(cc32) -DBUILD_tcl $(TCL_CFLAGS) -o $@ $<
+ #
+ #{$(WINDIR)}.rc{$(TMPDIR)}.res:
+ #$(rc32) -fo $@ -r -i $(GENERICDIR) -i $(WINDIR) -D__WIN32__  + #$(TCL_DEFINES) $<
+ 
+ 
+ clean:
+ -@$(RM) $(OUTDIR)/*.exp 
+ -@$(RM) $(OUTDIR)/*.a 
+ -@$(RM) $(OUTDIR)/*.dll 
+ -@$(RM) $(OUTDIR)/*.exe
+ -@$(RM) $(OUTDIR)/*.pdb
+ -@$(RM) $(TMPDIR)/*.pch
+ -@$(RM) $(TMPDIR)/*.o
+ -@$(RM) $(TMPDIR)/*.res
+ -@$(RM) $(TMPDIR)/*.exe
+ 
*** win/configure.in.origThu Feb 10 12:10:10 2000
--- win/configure.inWed Feb 23 20:05:03 2000
***************
*** 88,97 ****
  TCL_EXPORT_FILE_SUFFIX="\${NODOT_VERSION}${LIBSUFFIX}"

  eval "TCL_SRC_DIR=`cd $srcdir; pwd`"
! eval "TCL_STUB_LIB_FILE=tclstub$VER${LIBSUFFIX}"
  eval "TCL_DLL_FILE=tcl$VER${DLLSUFFIX}"
! eval "TCL_LIB_FILE=tcl$VER${LIBSUFFIX}"
  eval "DLLSUFFIX=${DLLSUFFIX}"
  eval "LIBSUFFIX=${LIBSUFFIX}"
  eval "EXESUFFIX=${EXESUFFIX}"

--- 88,98 ----
  TCL_EXPORT_FILE_SUFFIX="\${NODOT_VERSION}${LIBSUFFIX}"

  eval "TCL_SRC_DIR=`cd $srcdir; pwd`"
! eval "TCL_STUB_LIB_FILE=${LIBPREFIX}tclstub$VER${LIBSUFFIX}"
  eval "TCL_DLL_FILE=tcl$VER${DLLSUFFIX}"
! eval "TCL_LIB_FILE=${LIBPREFIX}tcl$VER${LIBSUFFIX}"
  eval "DLLSUFFIX=${DLLSUFFIX}"
+ eval "LIBPREFIX=${LIBPREFIX}"
  eval "LIBSUFFIX=${LIBSUFFIX}"
  eval "EXESUFFIX=${EXESUFFIX}"

***************
*** 114,119 ****
--- 115,122 ----
  AC_SUBST(CFG_TCL_EXPORT_FILE_SUFFIX)

  AC_SUBST(PATHTYPE)
+ AC_SUBST(CYGPATH)
+ AC_SUBST(VPSEP)
  AC_SUBST(CFLAGS_DEBUG)
  AC_SUBST(CFLAGS_OPTIMIZE)
  AC_SUBST(CFLAGS_WARNING)
***************
*** 123,128 ****
--- 126,133 ----
  AC_SUBST(SHLIB_LD_LIBS)
  AC_SUBST(SHLIB_CFLAGS)
  AC_SUBST(SHLIB_SUFFIX)
+ AC_SUBST(LIBS)
+ AC_SUBST(LIBS_GUI)
  AC_SUBST(CC_OBJNAME)
  AC_SUBST(CC_EXENAME)
  AC_SUBST(LDFLAGS)
***************
*** 133,142 ****
  AC_SUBST(AR)
  AC_SUBST(RC)
  AC_SUBST(DLLSUFFIX)
  AC_SUBST(LIBSUFFIX)
  AC_SUBST(EXESUFFIX)
  AC_SUBST(LIBRARIES)
  AC_SUBST(MAKE_LIB)
  AC_SUBST(MAKE_DLL)

! AC_OUTPUT(Makefile tclConfig.sh tcl.hpj)
--- 138,148 ----
  AC_SUBST(AR)
  AC_SUBST(RC)
  AC_SUBST(DLLSUFFIX)
+ AC_SUBST(LIBPREFIX)
  AC_SUBST(LIBSUFFIX)
  AC_SUBST(EXESUFFIX)
  AC_SUBST(LIBRARIES)
  AC_SUBST(MAKE_LIB)
  AC_SUBST(MAKE_DLL)

! AC_OUTPUT(Makefile tclConfig.sh tcl.hpj:../tools/tcl.hpj.in)
*** win/tcl.m4.origThu Feb 10 12:10:10 2000
--- win/tcl.m4Wed Feb 23 20:05:03 2000
***************
*** 171,177 ****
      AC_ARG_ENABLE(gcc, [  --enable-gcc            allow use of gcc if available [--disable-gcc]],
  [ok=$enableval], [ok=no])
      if test "$ok" = "yes"; then
! CC=gcc
  AC_PROG_CC
      else
  CC=cl
--- 171,180 ----
      AC_ARG_ENABLE(gcc, [  --enable-gcc            allow use of gcc if available [--disable-gcc]],
  [ok=$enableval], [ok=no])
      if test "$ok" = "yes"; then
! # Let user override.
! if test -z "$CC"; then
!     CC=gcc
! fi
  AC_PROG_CC
      else
  CC=cl
***************
*** 297,303 ****
      fi
  ])

- 
  #--------------------------------------------------------------------
  # SC_CONFIG_CFLAGS
  #
--- 300,305 ----
***************
*** 320,339 ****
  #    CFLAGS_WARNING
  #    LDFLAGS_DEBUG
  #    LDFLAGS_OPTIMIZE
! #    PATHTYPE
  #    CC_OBJNAME
  #    CC_EXENAME
  #
- #Defines the following vars for non-gcc compilers
  #    SHLIB_LD
  #    SHLIB_LD_LIBS
  #    LIBS
  #    AR
  #    MAKE_LIB
  #    MAKE_EXE
  #    MAKE_DLL
  #
  #    LIBSUFFIX
  #    LIBRARIES
  #    EXESUFFIX
  #    DLLSUFFIX
--- 322,346 ----
  #    CFLAGS_WARNING
  #    LDFLAGS_DEBUG
  #    LDFLAGS_OPTIMIZE
! #LDFLAGS_CONSOLE
! #LDFLAGS_WINDOW
  #    CC_OBJNAME
  #    CC_EXENAME
+ #    PATHTYPE
+ #VPSEP
+ #CYGPATH
  #
  #    SHLIB_LD
  #    SHLIB_LD_LIBS
  #    LIBS
+ #LIBS_GUI
  #    AR
  #    MAKE_LIB
  #    MAKE_EXE
  #    MAKE_DLL
  #
  #    LIBSUFFIX
+ #    LIBPREFIX
  #    LIBRARIES
  #    EXESUFFIX
  #    DLLSUFFIX
***************
*** 346,370 ****
      # set various compiler flags depending on whether we are using gcc or cl

      if test "${GCC}" = "yes" ; then
  CFLAGS_DEBUG=-g
! CFLAGS_OPTIMIZE=-O
  CFLAGS_WARNING="-Wall -Wconversion"
  LDFLAGS_DEBUG=-g
! LDFLAGS_OPTIMIZE=-O
! PATHTYPE=-u

  # Specify the CC output file names based on the target name
  CC_OBJNAME="-o \[$]@"
  CC_EXENAME="-o \[$]@"
      else
  SHLIB_LD="link -dll -nologo"
  SHLIB_LD_LIBS="user32.lib advapi32.lib"
  LIBS="user32.lib advapi32.lib"
  AR="lib -nologo"
- STLIB_LD="lib -nologo"
  RC="rc"
  MAKE_LIB="\${AR} -out:\[$]@"
  MAKE_EXE="\${CC} -Fe\[$]@"

  if test "${SHARED_BUILD}" = "0" ; then
      # static
--- 353,466 ----
      # set various compiler flags depending on whether we are using gcc

PatchFiles:
Makefile.in Makefile.mingw (new file) configure.in tcl.m4 tclWin32Dll.c
    tclWinFCmd.c tclWinPort.h tclWinThrd.h



The Makefile.in is patched as noted, except for some of the target
stuff (hard to see what's going on, whether it affects already
working code adversely).

The Makefile.mingw needs to be added.

The configure.in was patched as noted.

The tcl.m4 was patched as noted, except for the CC arg test,
which was moved to the case where --enable-gcc was not specified
(the user should get gcc when they ask for gcc, otherwise they
can set the env var, just as with Unix).

The tclWinPort mods were made, but not the #defs for the __try
or threading (I hear that the newest mingw supports these). 
-- 04/03/2000 hobbs
welch Deleted ticket [217961ffff]. [History diff]2000-10-26 08:10:56
dgp Ticket [217961ffff]: 3 changes [History diff]2001-04-05 06:55:06
Log in (anonymous is fine) to add a comment.