diff options
Diffstat (limited to 'tk/win/Makefile.in')
-rw-r--r-- | tk/win/Makefile.in | 1029 |
1 files changed, 488 insertions, 541 deletions
diff --git a/tk/win/Makefile.in b/tk/win/Makefile.in index 272627eeeb9..7af644ea916 100644 --- a/tk/win/Makefile.in +++ b/tk/win/Makefile.in @@ -1,446 +1,478 @@ -# Visual C++ 2.x and 4.0 makefile +# This file is a Makefile for Tk. If it has the name "Makefile.in" +# then it is a template for a Makefile; to generate the actual Makefile, +# run "./configure", which is a configuration script generated by the +# "autoconf" program (constructs like "@foo@" will get replaced in the +# actual 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. -# SCCS: @(#) makefile.vc 1.63 97/08/13 13:33:32 - -# 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. - -# This file is CYGNUS LOCAL. It is a copy of makefile.vc from the -# standard tk distribution, modified to work with cygwin and an -# autoconf configure script. I have chosen to minimize the number of -# changes, so the comments continue to refer to Visual C++ and the -# like. This should make it easier to merge in a new version if that -# is necessary. - -prefix = @prefix@ -exec_prefix = @exec_prefix@ -VPATH = @srcdir@:@srcdir@/../xlib:@srcdir@/../generic:@srcdir@/../unix:@srcdir@/../win/rc -srcdir = @srcdir@ - -INSTALL = @INSTALL@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_DATA = @INSTALL_DATA@ - -CC = @CC@ -CFLAGS = @CFLAGS@ -NM = @NM@ -AS = @AS@ -LD = @LD@ -DLLTOOL = @DLLTOOL@ -WINDRES = @WINDRES@ - -OBJEXT=@OBJEXT@ - -DLL_LDFLAGS = @DLL_LDFLAGS@ -DLL_LDLIBS = @DLL_LDLIBS@ - -# Current Tk version; used in various names. - -DIRVERSION = @TK_VERSION@ +# RCS: @(#) $Id$ + +TCLVERSION = @TCL_VERSION@ +VERSION = @TK_VERSION@ + +#---------------------------------------------------------------- +# Things you can change to personalize the Makefile for your own +# site (you can make these changes in either Makefile.in or +# Makefile, but changes to Makefile will get lost if you re-run +# the configuration script). +#---------------------------------------------------------------- + +# Default top-level directories in which to install architecture- +# specific files (exec_prefix) and machine-independent files such +# as scripts (prefix). The values specified here may be overridden +# at configure-time with the --exec-prefix and --prefix options +# to the "configure" script. + +prefix = @prefix@ +exec_prefix = @exec_prefix@ +bindir = @bindir@ +libdir = @libdir@ +includedir = @includedir@ +mandir = @mandir@ # The following definition can be set to non-null for special systems # like AFS with replication. It allows the pathnames used for installation # to be different than those used for actually reference files at # run-time. INSTALL_ROOT is prepended to $prefix and $exec_prefix # when installing files. -INSTALL_ROOT = +INSTALL_ROOT = -# Directory from which applications will reference the library of Tcl +# Directory from which applications will reference the library of Tk # scripts (note: you can set the TK_LIBRARY environment variable at -# run-time to override the compiled-in location): -TK_LIBRARY = @datadir@/tk$(DIRVERSION) +# run-time to override this value): +TK_LIBRARY = @datadir@/tk$(VERSION) -# Path name to use when installing library scripts: -SCRIPT_INSTALL_DIR = $(INSTALL_ROOT)$(TK_LIBRARY) +# Path to use at runtime to refer to LIB_INSTALL_DIR: +LIB_RUNTIME_DIR = $(libdir) + +# Directory in which to install the program wish: +BIN_INSTALL_DIR = $(INSTALL_ROOT)$(bindir) # Directory in which to install the .a or .so binary for the Tk library: -LIB_INSTALL_DIR = $(INSTALL_ROOT)@libdir@ +LIB_INSTALL_DIR = $(INSTALL_ROOT)$(libdir) -# Directory in which to install the program wish: -BIN_INSTALL_DIR = $(INSTALL_ROOT)@bindir@ +# Path name to use when installing library scripts: +SCRIPT_INSTALL_DIR = $(INSTALL_ROOT)$(TK_LIBRARY) # Directory in which to install the include file tk.h: -INCLUDE_INSTALL_DIR = $(INSTALL_ROOT)@includedir@ +INCLUDE_INSTALL_DIR = $(INSTALL_ROOT)$(includedir) + +# Top-level directory for manual entries: +MAN_INSTALL_DIR = $(INSTALL_ROOT)$(mandir) -# Directory in which to install the X11 header files. These files are -# not machine independent, so they should not go in includedir. -X11_INCLUDE_INSTALL_DIR = $(INSTALL_ROOT)@exec_prefix@/@host_alias@/include/X11 +# Directory in which to install manual entry for wish: +MAN1_INSTALL_DIR = $(MAN_INSTALL_DIR)/man1 + +# Directory in which to install manual entries for Tk's C library +# procedures: +MAN3_INSTALL_DIR = $(MAN_INSTALL_DIR)/man3 + +# Directory in which to install manual entries for the built-in +# Tk commands: +MANN_INSTALL_DIR = $(MAN_INSTALL_DIR)/mann + +# Libraries built with optimization switches have this additional extension +TK_DBGX = @TK_DBGX@ + +# The directory containing the Tcl source and header files. +TCL_SRC_DIR = @TCL_SRC_DIR@ + +# The directory containing the Tcl library archive file appropriate +# for this version of Tk: +TCL_BIN_DIR = @TCL_BIN_DIR@ + +# The directory containing the Tcl sources and headers appropriate +# for this version of Tk ("srcdir" will be replaced or has already +# been replaced by the configure script): +TCL_GENERIC_DIR = @TCL_SRC_DIR@/generic + +# This program converts from POSIX to Windows native paths. +CYGPATH = @CYGPATH@ + +# The name of the Tcl library. +TCL_LIB_SPEC = @TCL_BUILD_LIB_SPEC@ +TCL_STUB_LIB_SPEC = @TCL_BUILD_STUB_LIB_SPEC@ + +SRC_DIR = @srcdir@ +ROOT_DIR = $(SRC_DIR)/.. +WIN_DIR = $(SRC_DIR) +UNIX_DIR = $(SRC_DIR)/../unix +GENERIC_DIR = $(SRC_DIR)/../generic +BITMAP_DIR = $(ROOT_DIR)/bitmaps +XLIB_DIR = $(ROOT_DIR)/xlib +RC_DIR = $(WIN_DIR)/rc + +ROOT_DIR_NATIVE = $(shell $(CYGPATH) '$(ROOT_DIR)') +WIN_DIR_NATIVE = $(shell $(CYGPATH) '$(WIN_DIR)') +GENERIC_DIR_NATIVE = $(shell $(CYGPATH) '$(GENERIC_DIR)') +BITMAP_DIR_NATIVE = $(shell $(CYGPATH) '$(ROOT_DIR)/bitmaps') +XLIB_DIR_NATIVE = $(shell $(CYGPATH) '$(ROOT_DIR)/xlib') +TCL_GENERIC_NATIVE = $(shell $(CYGPATH) '$(TCL_GENERIC_DIR)') +TCL_SRC_DIR_NATIVE = $(shell $(CYGPATH) '$(TCL_SRC_DIR)') +TCL_BIN_DIR_NATIVE = $(shell $(CYGPATH) '$(TCL_BIN_DIR)') +RC_DIR_NATIVE = $(shell $(CYGPATH) '$(RC_DIR)') + +DLLSUFFIX = @DLLSUFFIX@ +LIBSUFFIX = @LIBSUFFIX@ +EXESUFFIX = @EXESUFFIX@ + +TK_STUB_LIB_FILE = @TK_STUB_LIB_FILE@ +TK_LIB_FILE = @TK_LIB_FILE@ +TK_DLL_FILE = @TK_DLL_FILE@ + +SHARED_LIBRARIES = $(TK_DLL_FILE) $(TK_STUB_LIB_FILE) +STATIC_LIBRARIES = $(TK_LIB_FILE) + +WISH_RES = @WISH_RES@ +TK_RES = @TK_RES@ + +WISH = wish$(VER)${EXESUFFIX} +TKTEST = tktest${EXEEXT} +CAT32 = cat32$(EXEEXT) +MAN2TCL = man2tcl$(EXEEXT) + +@SET_MAKE@ + +# 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):$(UNIX_DIR):$(XLIB_DIR):$(RC_DIR) + +# warning flags +CFLAGS_WARNING = @CFLAGS_WARNING@ + +# The default switches for optimization or debugging +CFLAGS_DEBUG = @CFLAGS_DEBUG@ +CFLAGS_OPTIMIZE = @CFLAGS_OPTIMIZE@ + +# The default switches for optimization or debugging +LDFLAGS_DEBUG = @LDFLAGS_DEBUG@ +LDFLAGS_OPTIMIZE = @LDFLAGS_OPTIMIZE@ + +# To change the compiler switches, for example to change from optimization to +# debugging symbols, change the following line: +#CFLAGS = $(CFLAGS_DEBUG) +#CFLAGS = $(CFLAGS_OPTIMIZE) +#CFLAGS = $(CFLAGS_DEBUG) $(CFLAGS_OPTIMIZE) +CFLAGS = @CFLAGS@ @CFLAGS_DEFAULT@ + +# Special compiler flags to use when building man2tcl on Windows. +MAN2TCLFLAGS = @MAN2TCLFLAGS@ + +AR = @AR@ +RANLIB = @RANLIB@ +CC = @CC@ +RC = @RC@ +RES = @RES@ +AC_FLAGS = @EXTRA_CFLAGS@ @DEFS@ +CPPFLAGS = @CPPFLAGS@ +LDFLAGS = @LDFLAGS@ @LDFLAGS_DEFAULT@ +LDFLAGS_CONSOLE = @LDFLAGS_CONSOLE@ +LDFLAGS_WINDOW = @LDFLAGS_WINDOW@ +EXEEXT = @EXEEXT@ +OBJEXT = @OBJEXT@ +LIBS_GUI = @LIBS_GUI@ +STLIB_LD = @STLIB_LD@ +SHLIB_LD = @SHLIB_LD@ +SHLIB_CFLAGS = @SHLIB_CFLAGS@ +SHLIB_LD_LIBS = @SHLIB_LD_LIBS@ $(TCL_STUB_LIB_SPEC) $(LIBS_GUI) +SHLIB_SUFFIX = @SHLIB_SUFFIX@ +VER = @TK_MAJOR_VERSION@@TK_MINOR_VERSION@ +DOTVER = @TK_MAJOR_VERSION@.@TK_MINOR_VERSION@ +LIBS = @LIBS@ $(LIBS_GUI) +RMDIR = rm -rf +MKDIR = mkdir -p +SHELL = @SHELL@ +RM = rm -f +COPY = cp + +# FIXME: Add a "make shell SCRIPT=foo.tcl" argument +# so that a shell can easily be run from the build dir. +TCLSH_PROG = $(TCL_BIN_DIR)/tclsh$(VER) + +CC_SWITCHES = ${CFLAGS} ${CFLAGS_WARNING} ${SHLIB_CFLAGS} \ +-I"${GENERIC_DIR_NATIVE}" -I"${WIN_DIR_NATIVE}" \ +-I"${XLIB_DIR_NATIVE}" -I"${BITMAP_DIR_NATIVE}" \ + -I"${TCL_GENERIC_NATIVE}" ${AC_FLAGS} + +CC_OBJNAME = @CC_OBJNAME@ +CC_EXENAME = @CC_EXENAME@ + +STUB_CC_SWITCHES = ${CC_SWITCHES} -DUSE_TCL_STUBS +CON_CC_SWITCHES = ${CC_SWITCHES} -DCONSOLE + +# Tk used to let the configure script choose which program to use +# for installing, but there are just too many different versions of +# "install" around; better to use the install-sh script that comes +# with the distribution, which is slower but guaranteed to work. + +INSTALL = cp +INSTALL_PROGRAM = ${INSTALL} +INSTALL_DATA = ${INSTALL} + +WISH_OBJS = \ + winMain.$(OBJEXT) + +TCLTEST_OBJS = \ + ${TCL_BIN_DIR}/tclThreadTest.$(OBJEXT) + +TCLTEST_OBJS_NATIVE = \ + "${TCL_BIN_DIR_NATIVE}/tclThreadTest.$(OBJEXT)" + +TKTEST_OBJS = \ + $(TCLTEST_OBJS) \ + testMain.$(OBJEXT) \ + tkSquare.$(OBJEXT) \ + tkTest.$(OBJEXT) \ + tkWinTest.$(OBJEXT) + +TKTEST_OBJS_NATIVE = \ + $(TCLTEST_OBJS_NATIVE) \ + testMain.$(OBJEXT) \ + tkSquare.$(OBJEXT) \ + tkTest.$(OBJEXT) \ + tkWinTest.$(OBJEXT) + +XLIB_OBJS = \ + xcolors.$(OBJEXT) \ + xdraw.$(OBJEXT) \ + xgc.$(OBJEXT) \ + ximage.$(OBJEXT) \ + xutil.$(OBJEXT) + +TK_OBJS = \ + tkConsole.$(OBJEXT) \ + tkUnixMenubu.$(OBJEXT) \ + tkUnixScale.$(OBJEXT) \ + $(XLIB_OBJS) \ + tkWin3d.$(OBJEXT) \ + tkWin32Dll.$(OBJEXT) \ + tkWinButton.$(OBJEXT) \ + tkWinClipboard.$(OBJEXT) \ + tkWinColor.$(OBJEXT) \ + tkWinConfig.$(OBJEXT) \ + tkWinCursor.$(OBJEXT) \ + tkWinDialog.$(OBJEXT) \ + tkWinDraw.$(OBJEXT) \ + tkWinEmbed.$(OBJEXT) \ + tkWinFont.$(OBJEXT) \ + tkWinImage.$(OBJEXT) \ + tkWinInit.$(OBJEXT) \ + tkWinKey.$(OBJEXT) \ + tkWinMenu.$(OBJEXT) \ + tkWinPixmap.$(OBJEXT) \ + tkWinPointer.$(OBJEXT) \ + tkWinRegion.$(OBJEXT) \ + tkWinScrlbr.$(OBJEXT) \ + tkWinSend.$(OBJEXT) \ + tkWinWindow.$(OBJEXT) \ + tkWinWm.$(OBJEXT) \ + tkWinX.$(OBJEXT) \ + stubs.$(OBJEXT) \ + tk3d.$(OBJEXT) \ + tkArgv.$(OBJEXT) \ + tkAtom.$(OBJEXT) \ + tkBind.$(OBJEXT) \ + tkBitmap.$(OBJEXT) \ + tkButton.$(OBJEXT) \ + tkCanvArc.$(OBJEXT) \ + tkCanvBmap.$(OBJEXT) \ + tkCanvImg.$(OBJEXT) \ + tkCanvLine.$(OBJEXT) \ + tkCanvPoly.$(OBJEXT) \ + tkCanvPs.$(OBJEXT) \ + tkCanvText.$(OBJEXT) \ + tkCanvUtil.$(OBJEXT) \ + tkCanvWind.$(OBJEXT) \ + tkCanvas.$(OBJEXT) \ + tkClipboard.$(OBJEXT) \ + tkCmds.$(OBJEXT) \ + tkColor.$(OBJEXT) \ + tkConfig.$(OBJEXT) \ + tkCursor.$(OBJEXT) \ + tkEntry.$(OBJEXT) \ + tkError.$(OBJEXT) \ + tkEvent.$(OBJEXT) \ + tkFileFilter.$(OBJEXT) \ + tkFocus.$(OBJEXT) \ + tkFont.$(OBJEXT) \ + tkFrame.$(OBJEXT) \ + tkGC.$(OBJEXT) \ + tkGeometry.$(OBJEXT) \ + tkGet.$(OBJEXT) \ + tkGrab.$(OBJEXT) \ + tkGrid.$(OBJEXT) \ + tkImage.$(OBJEXT) \ + tkImgBmap.$(OBJEXT) \ + tkImgGIF.$(OBJEXT) \ + tkImgPPM.$(OBJEXT) \ + tkImgPhoto.$(OBJEXT) \ + tkImgUtil.$(OBJEXT) \ + tkListbox.$(OBJEXT) \ + tkMacWinMenu.$(OBJEXT) \ + tkMain.$(OBJEXT) \ + tkMenu.$(OBJEXT) \ + tkMenubutton.$(OBJEXT) \ + tkMenuDraw.$(OBJEXT) \ + tkMessage.$(OBJEXT) \ + tkObj.$(OBJEXT) \ + tkOldConfig.$(OBJEXT) \ + tkOption.$(OBJEXT) \ + tkPack.$(OBJEXT) \ + tkPlace.$(OBJEXT) \ + tkPointer.$(OBJEXT) \ + tkRectOval.$(OBJEXT) \ + tkScale.$(OBJEXT) \ + tkScrollbar.$(OBJEXT) \ + tkSelect.$(OBJEXT) \ + tkText.$(OBJEXT) \ + tkTextBTree.$(OBJEXT) \ + tkTextDisp.$(OBJEXT) \ + tkTextImage.$(OBJEXT) \ + tkTextIndex.$(OBJEXT) \ + tkTextMark.$(OBJEXT) \ + tkTextTag.$(OBJEXT) \ + tkTextWind.$(OBJEXT) \ + tkTrig.$(OBJEXT) \ + tkUtil.$(OBJEXT) \ + tkVisual.$(OBJEXT) \ + tkStubInit.$(OBJEXT) \ + tkStubLib.$(OBJEXT) \ + tkWindow.$(OBJEXT) + +STUB_OBJS = \ + tkStubLib.$(OBJEXT) \ + tkStubImg.$(OBJEXT) + +TCL_DOCS = "$(TCL_SRC_DIR_NATIVE)"/doc/*.[13n] +TK_DOCS = "$(ROOT_DIR_NATIVE)"/doc/*.[13n] +CORE_DOCS = $(TCL_DOCS) $(TK_DOCS) DEMOPROGS = browse hello ixset rmt rolodex square tcolor timer widget -# -# Project directories -# -# ROOT = top of source tree -# -# TMPDIR = location where .obj files should be stored during build -# -# 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++. -# -# TCLDIR = location of top of Tcl source heirarchy -# +# Main targets. The default target -- all -- builds the binaries, +# performs any post processing on libraries or documents. + +all: binaries libraries doc + +binaries: @LIBRARIES@ $(WISH) + +libraries: + +$(ROOT_DIR)/doc/man.macros: + $(INSTALL_DATA) @TCL_SRC_DIR@/doc/man.macros $(ROOT_DIR)/doc/man.macros + +doc: $(ROOT_DIR)/doc/man.macros -ROOT = $(srcdir)/.. -TMPDIR = . -TOOLS32 = c:\msdev -TCLDIR = $(srcdir)/../../tcl - -# Set this to the appropriate value of /MACHINE: for your platform -MACHINE = IX86 - -# Comment the following line to compile with symbols -NODEBUG=1 - -# uncomment the following two lines to compile with TCL_MEM_DEBUG -#DEBUGDEFINES =-DTCL_MEM_DEBUG - -###################################################################### -# Do not modify below this line -###################################################################### - -VERSION = 80 - -TCLDLL = cygtcl$(VERSION).dll -TCLLIB = libtcl$(VERSION).a -TCLPLUGINDLL = cygtcl$(VERSION)p.dll -TCLPLUGINLIB = libtcl$(VERSION)p.a -TKDLL = cygtk$(VERSION).dll -TKLIB = libtk$(VERSION).a -TKPLUGINDLL = cygtk$(VERSION)p.dll -TKPLUGINLIB = libtk$(VERSION)p.a - -WISH = cygwish$(VERSION).exe -WISHP = cygwishp$(VERSION).exe -TKTEST = tktest.exe -DUMPEXTS = $(TMPDIR)/dumpexts.exe - -WISHOBJS = \ - $(TMPDIR)/tkConsole.$(OBJEXT) \ - $(TMPDIR)/winMain.$(OBJEXT) - -TKTESTOBJS = \ - $(TMPDIR)/tkConsole.$(OBJEXT) \ - $(TMPDIR)/tkTest.$(OBJEXT) \ - $(TMPDIR)/tkSquare.$(OBJEXT) \ - $(TMPDIR)/testMain.$(OBJEXT) - -XLIBOBJS = \ - $(TMPDIR)/xcolors.$(OBJEXT) \ - $(TMPDIR)/xdraw.$(OBJEXT) \ - $(TMPDIR)/xgc.$(OBJEXT) \ - $(TMPDIR)/ximage.$(OBJEXT) \ - $(TMPDIR)/xutil.$(OBJEXT) - -TKOBJS = \ - $(TMPDIR)/tkUnixMenubu.$(OBJEXT) \ - $(TMPDIR)/tkUnixScale.$(OBJEXT) \ - $(XLIBOBJS) \ - $(TMPDIR)/tkWin3d.$(OBJEXT) \ - $(TMPDIR)/tkWin32Dll.$(OBJEXT) \ - $(TMPDIR)/tkWinButton.$(OBJEXT) \ - $(TMPDIR)/tkWinClipboard.$(OBJEXT) \ - $(TMPDIR)/tkWinColor.$(OBJEXT) \ - $(TMPDIR)/tkWinCursor.$(OBJEXT) \ - $(TMPDIR)/tkWinDialog.$(OBJEXT) \ - $(TMPDIR)/tkWinDraw.$(OBJEXT) \ - $(TMPDIR)/tkWinEmbed.$(OBJEXT) \ - $(TMPDIR)/tkWinFont.$(OBJEXT) \ - $(TMPDIR)/tkWinImage.$(OBJEXT) \ - $(TMPDIR)/tkWinInit.$(OBJEXT) \ - $(TMPDIR)/tkWinKey.$(OBJEXT) \ - $(TMPDIR)/tkWinMenu.$(OBJEXT) \ - $(TMPDIR)/tkWinPixmap.$(OBJEXT) \ - $(TMPDIR)/tkWinPointer.$(OBJEXT) \ - $(TMPDIR)/tkWinRegion.$(OBJEXT) \ - $(TMPDIR)/tkWinScrlbr.$(OBJEXT) \ - $(TMPDIR)/tkWinSend.$(OBJEXT) \ - $(TMPDIR)/tkWinWindow.$(OBJEXT) \ - $(TMPDIR)/tkWinWm.$(OBJEXT) \ - $(TMPDIR)/tkWinX.$(OBJEXT) \ - $(TMPDIR)/stubs.$(OBJEXT) \ - $(TMPDIR)/tk3d.$(OBJEXT) \ - $(TMPDIR)/tkArgv.$(OBJEXT) \ - $(TMPDIR)/tkAtom.$(OBJEXT) \ - $(TMPDIR)/tkBind.$(OBJEXT) \ - $(TMPDIR)/tkBitmap.$(OBJEXT) \ - $(TMPDIR)/tkButton.$(OBJEXT) \ - $(TMPDIR)/tkCanvArc.$(OBJEXT) \ - $(TMPDIR)/tkCanvBmap.$(OBJEXT) \ - $(TMPDIR)/tkCanvImg.$(OBJEXT) \ - $(TMPDIR)/tkCanvLine.$(OBJEXT) \ - $(TMPDIR)/tkCanvPoly.$(OBJEXT) \ - $(TMPDIR)/tkCanvPs.$(OBJEXT) \ - $(TMPDIR)/tkCanvText.$(OBJEXT) \ - $(TMPDIR)/tkCanvUtil.$(OBJEXT) \ - $(TMPDIR)/tkCanvWind.$(OBJEXT) \ - $(TMPDIR)/tkCanvas.$(OBJEXT) \ - $(TMPDIR)/tkClipboard.$(OBJEXT) \ - $(TMPDIR)/tkCmds.$(OBJEXT) \ - $(TMPDIR)/tkColor.$(OBJEXT) \ - $(TMPDIR)/tkConfig.$(OBJEXT) \ - $(TMPDIR)/tkCursor.$(OBJEXT) \ - $(TMPDIR)/tkEntry.$(OBJEXT) \ - $(TMPDIR)/tkError.$(OBJEXT) \ - $(TMPDIR)/tkEvent.$(OBJEXT) \ - $(TMPDIR)/tkFileFilter.$(OBJEXT) \ - $(TMPDIR)/tkFocus.$(OBJEXT) \ - $(TMPDIR)/tkFont.$(OBJEXT) \ - $(TMPDIR)/tkFrame.$(OBJEXT) \ - $(TMPDIR)/tkGC.$(OBJEXT) \ - $(TMPDIR)/tkGeometry.$(OBJEXT) \ - $(TMPDIR)/tkGet.$(OBJEXT) \ - $(TMPDIR)/tkGrab.$(OBJEXT) \ - $(TMPDIR)/tkGrid.$(OBJEXT) \ - $(TMPDIR)/tkImage.$(OBJEXT) \ - $(TMPDIR)/tkImgBmap.$(OBJEXT) \ - $(TMPDIR)/tkImgGIF.$(OBJEXT) \ - $(TMPDIR)/tkImgPPM.$(OBJEXT) \ - $(TMPDIR)/tkImgPhoto.$(OBJEXT) \ - $(TMPDIR)/tkImgUtil.$(OBJEXT) \ - $(TMPDIR)/tkListbox.$(OBJEXT) \ - $(TMPDIR)/tkMacWinMenu.$(OBJEXT) \ - $(TMPDIR)/tkMain.$(OBJEXT) \ - $(TMPDIR)/tkMenu.$(OBJEXT) \ - $(TMPDIR)/tkMenubutton.$(OBJEXT) \ - $(TMPDIR)/tkMenuDraw.$(OBJEXT) \ - $(TMPDIR)/tkMessage.$(OBJEXT) \ - $(TMPDIR)/tkOption.$(OBJEXT) \ - $(TMPDIR)/tkPack.$(OBJEXT) \ - $(TMPDIR)/tkPlace.$(OBJEXT) \ - $(TMPDIR)/tkPointer.$(OBJEXT) \ - $(TMPDIR)/tkRectOval.$(OBJEXT) \ - $(TMPDIR)/tkScale.$(OBJEXT) \ - $(TMPDIR)/tkScrollbar.$(OBJEXT) \ - $(TMPDIR)/tkSelect.$(OBJEXT) \ - $(TMPDIR)/tkText.$(OBJEXT) \ - $(TMPDIR)/tkTextBTree.$(OBJEXT) \ - $(TMPDIR)/tkTextDisp.$(OBJEXT) \ - $(TMPDIR)/tkTextImage.$(OBJEXT) \ - $(TMPDIR)/tkTextIndex.$(OBJEXT) \ - $(TMPDIR)/tkTextMark.$(OBJEXT) \ - $(TMPDIR)/tkTextTag.$(OBJEXT) \ - $(TMPDIR)/tkTextWind.$(OBJEXT) \ - $(TMPDIR)/tkTrig.$(OBJEXT) \ - $(TMPDIR)/tkUtil.$(OBJEXT) \ - $(TMPDIR)/tkVisual.$(OBJEXT) \ - $(TMPDIR)/tkWindow.$(OBJEXT) - -cc32 = $(TOOLS32)\bin\cl.exe -link32 = $(TOOLS32)\bin\link.exe -rc32 = $(TOOLS32)\bin\rc.exe -include32 = -I$(TOOLS32)\include - -WINDIR = $(ROOT)/win -GENERICDIR = $(ROOT)/generic -XLIBDIR = $(ROOT)/xlib -BITMAPDIR = $(ROOT)/bitmaps -TCLLIBDIR = ../../tcl/win -RCDIR = $(WINDIR)/rc - -TK_INCLUDES = -I$(WINDIR) -I$(GENERICDIR) -I$(BITMAPDIR) -I$(XLIBDIR) \ - -I$(TCLDIR)/generic -TK_DEFINES = $(DEBUGDEFINES) - -TK_CFLAGS = $(cdebug) $(cflags) $(cvarsdll) \ - $(TK_INCLUDES) $(TK_DEFINES) $(CFLAGS) - -###################################################################### -# Link flags -###################################################################### - -#!IFDEF NODEBUG -#ldebug = /RELEASE -#!ELSE -#ldebug = -debug:full -debugtype:cv -#!ENDIF - -# declarations common to all linker options -# lcommon = /NODEFAULTLIB /RELEASE /NOLOGO - -# declarations for use on Intel i386, i486, and Pentium systems -#!IF "$(MACHINE)" == "IX86" -#DLLENTRY = @12 -#lflags = $(lcommon) -align:0x1000 /MACHINE:$(MACHINE) -#!ELSE -#lflags = $(lcommon) /MACHINE:$(MACHINE) -#!ENDIF - -ifeq ($(OBJEXT),obj) - -lcommon = /NODEFAULTLIB /RELEASE /NOLOGO -lflags = $(lcommon) -align:0x1000 /MACHINE:$(MACHINE) -conlflags = $(lflags) -subsystem:console -entry:mainCRTStartup -guilflags = $(lflags) -subsystem:windows -entry:WinMainCRTStartup -dlllflags = $(lflags) -entry:_DllMainCRTStartup@12 -dll - -else - -conlflags = $(lflags) -Wl,--subsystem,console -mwindows -guilflags = $(lflags) -mwindows -dlllflags = $(lflags) - -endif - -#!IF "$(MACHINE)" == "PPC" -#libc = libc.lib -#libcdll = crtdll.lib -#!ELSE -#libc = libc.lib oldnames.lib -#libcdll = msvcrt.lib oldnames.lib -#!ENDIF - -ifeq ($(OBJEXT),o) - -baselibs = -lkernel32 $(optlibs) -ladvapi32 -winlibs = $(baselibs) -luser32 -lgdi32 -lcomdlg32 -lwinspool - -else - -baselibs = kernel32.lib $(optlibs) advapi32.lib -winlibs = $(baselibs) user32.lib gdi32.lib comdlg32.lib winspool.lib -libcdll = msvcrt.lib oldnames.lib - -endif - -guilibs = $(libc) $(winlibs) - -guilibsdll = $(libcdll) $(winlibs) - -###################################################################### -# Compile flags -###################################################################### - -#!IFDEF NODEBUG -#cdebug = -Ox -#!ELSE -#cdebug = -Z7 -Od -WX -#!ENDIF - -# declarations common to all compiler options -#ccommon = -c -W3 -nologo -YX - -#!IF "$(MACHINE)" == "IX86" -#cflags = $(ccommon) -D_X86_=1 -#!ELSE -#!IF "$(MACHINE)" == "MIPS" -#cflags = $(ccommon) -D_MIPS_=1 -#!ELSE -#!IF "$(MACHINE)" == "PPC" -#cflags = $(ccommon) -D_PPC_=1 -#!ELSE -#!IF "$(MACHINE)" == "ALPHA" -#cflags = $(ccommon) -D_ALPHA_=1 -#!ENDIF -#!ENDIF -#!ENDIF -#!ENDIF +winhelp: $(TCL_SRC_DIR_NATIVE)/tools/man2help.tcl $(MAN2TCL) + TCL_LIBRARY="$(TCL_SRC_DIR_NATIVE)/library"; export TCL_LIBRARY; \ + TK_LIBRARY="$(ROOT_DIR_NATIVE)/library"; export TK_LIBRARY; \ + PATH="$(PATH):$(TCL_BIN_DIR)"; export PATH; \ + $(TCLSH_PROG) "$(TCL_SRC_DIR_NATIVE)"/tools/man2help.tcl tcl "$(VER)" $(CORE_DOCS) + $(COPY) "$(TCL_BIN_DIR)"/tcl.hpj ./ + hcw /c /e tcl.hpj + $(COPY) ./tcl$(VER).cnt ./TCL$(VER).HLP "$(TCL_SRC_DIR_NATIVE)"/tools/ -cvars = -DWIN32 -D_WIN32 -cvarsmt = $(cvars) -D_MT -cvarsdll = $(cvarsmt) -D_DLL +$(MAN2TCL): $(TCL_SRC_DIR_NATIVE)/tools/man2tcl.c + $(CC) $(CFLAGS_OPTIMIZE) $(MAN2TCLFLAGS) -o $(MAN2TCL) "$(TCL_SRC_DIR_NATIVE)"/tools/man2tcl.c -CON_CFLAGS = $(cdebug) $(cflags) $(cvars) $(include32) -DCONSOLE +test: binaries $(TKTEST) + @TCL_LIBRARY="$(TCL_SRC_DIR_NATIVE)/library"; export TCL_LIBRARY; \ + TK_LIBRARY="$(ROOT_DIR_NATIVE)/library"; export TK_LIBRARY; \ + PATH="$(PATH):$(TCL_BIN_DIR)"; export PATH; \ + ./$(TKTEST) "$(ROOT_DIR_NATIVE)/tests/all.tcl" $(TESTFLAGS) \ + | ./$(CAT32) -###################################################################### -# Project specific targets -###################################################################### - -all: $(TKDLL) $(TKLIB) $(WISH) -test: $(TKTEST) -plugin: $(TKPLUGINDLL) $(WISHP) - -install: install-binaries install-libraries install-demos +runtest: tktest + @TCL_LIBRARY="$(TCL_SRC_DIR_NATIVE)/library"; export TCL_LIBRARY; \ + TK_LIBRARY="$(ROOT_DIR_NATIVE)/library"; export TK_LIBRARY; \ + PATH="$(PATH):$(TCL_BIN_DIR)"; export PATH; \ + ./$(TKTEST) -install-binaries: $(TKDLL) $(TKLIB) $(WISH) +install: all install-binaries install-libraries install-doc install-demos + +install-binaries: @for i in $(LIB_INSTALL_DIR) $(BIN_INSTALL_DIR) ; \ do \ if [ ! -d $$i ] ; then \ echo "Making directory $$i"; \ - mkdir $$i; \ + $(MKDIR) $$i; \ chmod 755 $$i; \ else true; \ fi; \ done; - @echo "Installing $(TKLIB)" - @$(INSTALL_DATA) $(TKLIB) $(LIB_INSTALL_DIR)/$(TKLIB) - @chmod 555 $(LIB_INSTALL_DIR)/$(TKLIB) - @echo "Installing wish" + @echo "Installing $(TK_LIB_FILE) to $(LIB_INSTALL_DIR)/" + @$(INSTALL_DATA) $(TK_LIB_FILE) $(LIB_INSTALL_DIR)/$(TK_LIB_FILE) + @echo "Installing $(WISH) as $(BIN_INSTALL_DIR)/wish$(VERSION)" @$(INSTALL_PROGRAM) $(WISH) $(BIN_INSTALL_DIR)/$(WISH) - @echo "Installing tkConfig.sh" - @$(INSTALL_DATA) ../unix/tkConfig.sh $(LIB_INSTALL_DIR)/tkConfig.sh + @echo "Installing tkConfig.sh to $(LIB_INSTALL_DIR)/" + @$(INSTALL_DATA) tkConfig.sh $(LIB_INSTALL_DIR)/tkConfig.sh + @if test "$(DLLSUFFIX)" != "" ; then \ + echo "Installing $(TK_DLL_FILE) to $(LIB_INSTALL_DIR)/" ; \ + $(INSTALL_PROGRAM) $(TK_DLL_FILE) \ + $(BIN_INSTALL_DIR)/$(TK_DLL_FILE) ; \ + fi + @if test "$(TK_STUB_LIB_FILE)" != "" ; then \ + if [ -f $(TK_STUB_LIB_FILE) ]; then \ + echo "Installing $(TK_STUB_LIB_FILE) to $(LIB_INSTALL_DIR)/"; \ + $(INSTALL_DATA) $(TK_STUB_LIB_FILE) \ + $(LIB_INSTALL_DIR)/$(TK_STUB_LIB_FILE); \ + fi; \ + fi install-libraries: - @echo "Installing DLL" - @$(INSTALL_DATA) $(TKDLL) $(BIN_INSTALL_DIR)/$(TKDLL) - @for i in $(INSTALL_ROOT)@datadir@ $(INCLUDE_INSTALL_DIR) \ - $(SCRIPT_INSTALL_DIR) $(INSTALL_ROOT)@exec_prefix@ \ - $(INSTALL_ROOT)@exec_prefix@/@host_alias@ \ - $(INSTALL_ROOT)@exec_prefix@/@host_alias@/include \ - $(X11_INCLUDE_INSTALL_DIR) ; \ + @for i in $(INSTALL_ROOT)$(prefix)/lib \ + $(INCLUDE_INSTALL_DIR) $(INCLUDE_INSTALL_DIR)/X11 \ + $(SCRIPT_INSTALL_DIR) $(SCRIPT_INSTALL_DIR)/images; \ do \ if [ ! -d $$i ] ; then \ echo "Making directory $$i"; \ - mkdir $$i; \ + $(MKDIR) $$i; \ chmod 755 $$i; \ else true; \ fi; \ done; - @echo "Installing tk.h" - @$(INSTALL_DATA) $(GENERICDIR)/tk.h $(INCLUDE_INSTALL_DIR)/tk.h - for i in $(XLIBDIR)/X11/*.h; \ + @echo "Installing header files"; + @for i in $(GENERIC_DIR)/tk.h $(GENERIC_DIR)/tkDecls.h \ + $(GENERIC_DIR)/tkIntXlibDecls.h ; \ do \ - echo "Installing $$i"; \ - $(INSTALL_DATA) $$i $(X11_INCLUDE_INSTALL_DIR); \ + $(INSTALL_DATA) $$i $(INCLUDE_INSTALL_DIR); \ done; - for i in $(ROOT)/library/*.tcl $(ROOT)/library/tclIndex $(ROOT)/library/prolog.ps $(ROOT)/unix/tkAppInit.c; \ + @for i in $(XLIB_DIR)/X11/*.h; \ do \ - echo "Installing $$i"; \ - $(INSTALL_DATA) $$i $(SCRIPT_INSTALL_DIR); \ + $(INSTALL_DATA) $$i $(INCLUDE_INSTALL_DIR)/X11; \ done; - -install-minimal: - @echo "Installing DLL" - @$(INSTALL_DATA) $(TKDLL) $(BIN_INSTALL_DIR)/$(TKDLL) - @for i in $(INSTALL_ROOT)@datadir@ $(SCRIPT_INSTALL_DIR) ; \ + @echo "Installing library files to $(SCRIPT_INSTALL_DIR)"; + @for i in $(ROOT_DIR)/library/*.tcl $(GENERIC_DIR)/prolog.ps \ + $(ROOT_DIR)/library/tclIndex $(UNIX_DIR)/tkAppInit.c; \ do \ - if [ ! -d $$i ] ; then \ - echo "Making directory $$i"; \ - mkdir $$i; \ - chmod 755 $$i; \ - else true; \ - fi; \ + $(INSTALL_DATA) $$i $(SCRIPT_INSTALL_DIR); \ done; - for i in $(ROOT)/library/*.tcl $(ROOT)/library/tclIndex $(ROOT)/library/prolog.ps; \ + @echo "Installing library images directory"; + @for i in $(ROOT_DIR)/library/images/*; \ do \ - echo "Installing $$i"; \ - $(INSTALL_DATA) $$i $(SCRIPT_INSTALL_DIR); \ + if [ -f $$i ] ; then \ + $(INSTALL_DATA) $$i $(SCRIPT_INSTALL_DIR)/images; \ + fi; \ done; install-demos: - @for i in $(INSTALL_ROOT)@datadir@ $(SCRIPT_INSTALL_DIR) \ + @for i in $(INSTALL_ROOT)$(prefix)/lib $(SCRIPT_INSTALL_DIR) \ $(SCRIPT_INSTALL_DIR)/demos \ $(SCRIPT_INSTALL_DIR)/demos/images ; \ do \ if [ ! -d $$i ] ; then \ echo "Making directory $$i"; \ - mkdir $$i; \ + $(MKDIR) $$i; \ chmod 755 $$i; \ else true; \ fi; \ done; - @for i in $(ROOT)/library/demos/*; \ + @echo "Installing demos to $(SCRIPT_INSTALL_DIR)/demos/"; + @for i in $(ROOT_DIR)/library/demos/*; \ do \ if [ -f $$i ] ; then \ - echo "Installing $$i"; \ - sed -e '3 s|exec wish|exec $(WISH)|' \ + sed -e '3 s|exec $(WISH)|exec $(WISH)|' \ $$i > $(SCRIPT_INSTALL_DIR)/demos/`basename $$i`; \ fi; \ done; @@ -448,199 +480,114 @@ install-demos: do \ chmod 755 $(SCRIPT_INSTALL_DIR)/demos/$$i; \ done; - @for i in $(ROOT)/library/demos/images/*; \ + @echo "Installing demo images"; + @for i in $(ROOT_DIR)/library/demos/images/*; \ do \ if [ -f $$i ] ; then \ - echo "Installing $$i"; \ $(INSTALL_DATA) $$i $(SCRIPT_INSTALL_DIR)/demos/images; \ fi; \ done; -ifeq ($(OBJEXT),o) +install-doc: -$(TKDLL): $(TKOBJS) tkres.$(OBJEXT) tkcyg.def - $(CC) -s $(DLL_LDFLAGS) -Wl,--base-file,tk.base -o $(TKDLL) $(TKOBJS) tkres.$(OBJEXT) $(TCLLIBDIR)/$(TCLLIB) $(DLL_LDLIBS) -mwindows -Wl,-e,_DllMain@12 -Wl,--image-base,0x66300000 - $(DLLTOOL) --as=$(AS) --dllname $(TKDLL) --def $(TMPDIR)/tkcyg.def --base-file tk.base --output-exp tk.exp - $(CC) -s $(DLL_LDFLAGS) -Wl,--base-file,tk.base tk.exp -o $(TKDLL) $(TKOBJS) tkres.$(OBJEXT) $(TCLLIBDIR)/$(TCLLIB) $(DLL_LDLIBS) -mwindows -Wl,-e,_DllMain@12 -Wl,--image-base,0x66300000 - $(DLLTOOL) --as=$(AS) --dllname $(TKDLL) --def $(TMPDIR)/tkcyg.def --base-file tk.base --output-exp tk.exp - $(CC) $(DLL_LDFLAGS) tk.exp -o $(TKDLL) $(TKOBJS) tkres.$(OBJEXT) $(TCLLIBDIR)/$(TCLLIB) $(DLL_LDLIBS) -mwindows -Wl,-e,_DllMain@12 -Wl,--image-base,0x66300000 -else +$(WISH): $(TK_LIB_FILE) $(WISH_OBJS) $(WISH_RES) + $(CC) $(CFLAGS) $(WISH_OBJS) $(TCL_LIB_SPEC) $(TK_LIB_FILE) $(LIBS) \ + $(WISH_RES) $(CC_EXENAME) $(LDFLAGS_WINDOW) -$(TKDLL): $(TKOBJS) tkres.$(OBJEXT) tkcyg.def - link $(ldebug) $(dlllflags) -def:tkcyg.def \ - -out:$@ tkres.$(OBJEXT) $(TCLLIBDIR)/$(TCLLIB) \ - $(guilibsdll) $(TKOBJS) - mv cygtk80.lib libtk80.a -endif +tktest : $(TKTEST) -ifeq ($(OBJEXT),o) +$(TKTEST): $(TK_LIB_FILE) $(TKTEST_OBJS) $(WISH_RES) $(CAT32) + $(CC) $(CFLAGS) $(TKTEST_OBJS_NATIVE) $(TCL_LIB_SPEC) \ + $(TK_LIB_FILE) $(LIBS) \ + $(WISH_RES) $(CC_EXENAME) $(LDFLAGS_WINDOW) -$(TKLIB): $(TMPDIR)/tkcyg.def - $(DLLTOOL) --as=$(AS) --dllname $(TKDLL) --def $(TMPDIR)/tkcyg.def --output-lib $(TKLIB) +cat32.${OBJEXT}: $(TCL_SRC_DIR)/win/cat.c + $(CC) -c $(CC_SWITCHES) @DEPARG@ $(CC_OBJNAME) -else +$(CAT32): cat32.${OBJEXT} + $(CC) $(CFLAGS) cat32.$(OBJEXT) $(CC_EXENAME) $(LDFLAGS_CONSOLE) -$(TKLIB): $(TKDLL) +# WISH_RES +$(RC_DIR)/wish_static.rc : $(RC_DIR)/wish.rc $(RC_DIR)/tk_base.rc + cat $(RC_DIR)/wish.rc $(RC_DIR)/tk_base.rc > $(RC_DIR)/wish_static.rc -endif +wish_static.$(RES) : $(RC_DIR)/wish_static.rc + $(RC) @RC_OUT@ $@ @RC_TYPE@ @RC_INCLUDE@ "$(GENERIC_DIR_NATIVE)" @RC_INCLUDE@ "$(TCL_GENERIC_NATIVE)" @RC_INCLUDE@ "$(RC_DIR_NATIVE)" @DEPARG@ -$(TKPLUGINLIB): $(TMPDIR)/plugin.def - $(DLLTOOL) --as=$(AS) --dllname $(TKPLUGINDLL) --def $(TMPDIR)/plugin.def --output-lib $(TKPLUGINLIB) -$(TKPLUGINDLL): $(TKOBJS) tkres.$(OBJEXT) $(TMPDIR)/plugin.def - $(CC) $(DLL_LDFLAGS) -Wl,--base-file,tkplugin.base -o $(TKPLUGINDLL) $(TKOBJS) tkres.$(OBJEXT) $(TCLLIBDIR)/$(TCLLIB) $(DLL_LDLIBS) -mwindows -Wl,-e,_DllMain@12 -Wl,--image-base,0x66800000 - $(DLLTOOL) --as=$(AS) --dllname $(TKPLUGINDLL) --def $(TMPDIR)/plugin.def --base-file tkplugin.base --output-exp tk.exp - $(CC) $(DLL_LDFLAGS) -Wl,--base-file,tkplugin.base tk.exp -o $(TKPLUGINDLL) $(TKOBJS) tkres.$(OBJEXT) $(TCLLIBDIR)/$(TCLLIB) $(DLL_LDLIBS) -mwindows -Wl,-e,_DllMain@12 -Wl,--image-base,0x66800000 - $(DLLTOOL) --as=$(AS) --dllname $(TKPLUGINDLL) --def $(TMPDIR)/plugin.def --base-file tkplugin.base --output-exp tk.exp - $(CC) $(DLL_LDFLAGS) tk.exp -o $(TKPLUGINDLL) $(TKOBJS) tkres.$(OBJEXT) $(TCLLIBDIR)/$(TCLLIB) $(DLL_LDLIBS) -mwindows -Wl,-e,_DllMain@12 -Wl,--image-base,0x66800000 +# TK_RES +$(RC_DIR)/tk_dll.rc : $(RC_DIR)/tk.rc $(RC_DIR)/tk_base.rc + cat $(RC_DIR)/tk.rc $(RC_DIR)/tk_base.rc > $(RC_DIR)/tk_dll.rc -ifeq ($(OBJEXT),o) +tk_dll.$(RES) : $(RC_DIR)/tk_dll.rc + $(RC) @RC_OUT@ $@ @RC_TYPE@ @RC_INCLUDE@ "$(GENERIC_DIR_NATIVE)" @RC_INCLUDE@ "$(TCL_GENERIC_NATIVE)" @RC_INCLUDE@ "$(RC_DIR_NATIVE)" @DEPARG@ -$(WISH): $(WISHOBJS) wishres.$(OBJEXT) $(TKLIB) - $(CC) $(ldebug) $(guilflags) $(WISHOBJS) wishres.$(OBJEXT) -o $@ \ - $(TKLIB) $(TCLLIBDIR)/$(TCLLIB) $(guilibsdll) +# The following targets are configured by autoconf to generate either +# a shared library or static library -else +${TK_STUB_LIB_FILE}: ${STUB_OBJS} + @$(RM) ${TK_STUB_LIB_FILE} + @MAKE_LIB@ ${STUB_OBJS} + @POST_MAKE_LIB@ -$(WISH): $(WISHOBJS) wishres.$(OBJEXT) $(TKLIB) - link $(ldebug) $(guilflags) $(WISHOBJS) wishres.$(OBJEXT) -OUT:$@ \ - $(TKLIB) $(TCLLIBDIR)/$(TCLLIB) $(guilibsdll) -endif +${TK_DLL_FILE}: ${TK_OBJS} $(TK_RES) + @$(RM) ${TK_DLL_FILE} + @MAKE_DLL@ ${TK_OBJS} $(TK_RES) $(SHLIB_LD_LIBS) -$(WISHP): $(WISHOBJS) $(TKPLUGINLIB) wishres.$(OBJEXT) - $(CC) $(ldebug) $(guilflags) $(WISHOBJS) wishres.$(OBJEXT) -o $@ \ - $(TKPLUGINLIB) $(TCLLIBDIR)/$(TCLPLUGINLIB) $(guilibsdll) +${GNU_TK_LIB_FILE}: ${TK_DLL_FILE} -$(TKTEST): $(TKTESTOBJS) wishres.$(OBJEXT) $(TKLIB) - $(CC) $(ldebug) $(guilflags) $(TKTESTOBJS) wishres.$(OBJEXT) -o $@ \ - $(TKLIB) $(TCLLIBDIR)/$(TCLLIB) $(guilibsdll) +${MSVC_TK_LIB_FILE}: ${TK_OBJS} + @$(RM) ${TK_LIB_FILE} + @MAKE_LIB@ ${TK_OBJS} + @POST_MAKE_LIB@ -ifeq ($(OBJEXT),o) -tkcyg.def: $(TKOBJS) - echo 'EXPORTS' > tmp.def - for o in $(TKOBJS); do \ - $(NM) --extern-only --defined-only $$o | sed -e 's/[^ ]* [^ ]* //' -e 's/^_//' | fgrep -v DllEntryPoint | fgrep -v DllMain | fgrep -v impure_ptr >> tmp.def; \ - done - mv tmp.def $(TMPDIR)/tkcyg.def +# Special case object file targets -plugin.def: $(TKOBJS) - echo 'EXPORTS' > tmp.def - for o in $(TKOBJS); do \ - $(NM) --extern-only --defined-only $$o | sed -e 's/[^ ]* [^ ]* //' -e 's/^_//' | fgrep -v DllEntryPoint | fgrep -v DllMain | fgrep -v impure_ptr >> tmp.def; \ - done - mv tmp.def $(TMPDIR)/plugin.def +winMain.$(OBJEXT): winMain.c + $(CC) -c $(CC_SWITCHES) @DEPARG@ $(CC_OBJNAME) -else +testMain.$(OBJEXT): winMain.c + $(CC) -c $(CC_SWITCHES) @DEPARG@ -DTK_TEST $(CC_OBJNAME) -# Source-Navigator need the extra Symbols. +tkTest.$(OBJEXT): tkTest.c + $(CC) -c $(CC_SWITCHES) @DEPARG@ $(CC_OBJNAME) -tkcyg.def: $(TKOBJS) $(DUMPEXTS) - $(DUMPEXTS) -o tkcyg.def $(TKDLL) $(TKOBJS) - echo " tkWindowType" >> tkcyg.def - echo " tkArcType" >> tkcyg.def - echo " tkBitmapType" >> tkcyg.def - echo " tkOvalType" >> tkcyg.def - echo " tkImageType" >> tkcyg.def - echo " tkPolygonType" >> tkcyg.def - echo " tkLineType" >> tkcyg.def - echo " tkTextType" >> tkcyg.def - echo " tkRectangleType" >> tkcyg.def - echo " tkTextCharType" >> tkcyg.def +tkWinTest.$(OBJEXT): tkWinTest.c + $(CC) -c $(CC_SWITCHES) @DEPARG@ $(CC_OBJNAME) -plugin.def: $(TKOBJS) $(DUMPEXTS) - $(DUMPEXTS) -o tkcyg.def $(TKDLL) $(TKOBJS) +tkSquare.$(OBJEXT): tkSquare.c + $(CC) -c $(CC_SWITCHES) @DEPARG@ $(CC_OBJNAME) +tclThreadTest.$(OBJEXT): $(TCL_BIN_DIR)/tclThreadTest.$(OBJEXT) -$(DUMPEXTS): $(TCLDIR)/win/winDumpExts.c - $(CC) $(TCLDIR)/win/winDumpExts.c user32.lib -link -OUT:$(DUMPEXTS) +# Add the object extension to the implicit rules. By default .obj is not +# automatically added. -endif +.SUFFIXES: .${OBJEXT} +.SUFFIXES: .$(RES) +.SUFFIXES: .rc -#$(DUMPEXTS): $(TCLDIR)\win\winDumpExts.c -# $(cc32) $(CON_CFLAGS) -Fo$(TMPDIR)\ $? -# set LIB=$(TOOLS32)\lib -# $(link32) $(ldebug) $(conlflags) $(guilibs) -out:$@ \ -# $(TMPDIR)\winDumpExts.$(OBJEXT)bj +# Implicit rule for all object files that will end up in the Tcl library -# -# Special case object file targets -# +.c.$(OBJEXT): + $(CC) -c $(STUB_CC_SWITCHES) -DBUILD_tk @DEPARG@ $(CC_OBJNAME) -$(TMPDIR)/testMain.$(OBJEXT): $(ROOT)/win/winMain.c - $(CC) -c $(TK_CFLAGS) -DTK_TEST -o $@ $? +.rc.$(RES): + $(RC) @RC_OUT@ $@ @RC_TYPE@ @RC_INCLUDE@ "$(GENERIC_DIR_NATIVE)" @RC_INCLUDE@ "$(TCL_GENERIC_NATIVE)" @RC_INCLUDE@ "$(RC_DIR_NATIVE)" @DEPARG@ -# -# Implicit rules -# -.SUFFIXES: .S .c .o .obj .s -.c.$(OBJEXT): - $(CC) -c $(TK_CFLAGS) $< - -ifeq ($(OBJEXT),o) - -tkres.$(OBJEXT): $(ROOT)/win/rc/tk.rc - $(WINDRES) --include $(ROOT)/win/rc --include $(ROOT)/generic --define VS_VERSION_INFO=1 $(ROOT)/win/rc/tk.rc tkres.$(OBJEXT) - -wishres.$(OBJEXT): $(ROOT)/win/rc/wish.rc - $(WINDRES) --include $(ROOT)/win/rc --include $(ROOT)/generic --define VS_VERSION_INFO=1 $(ROOT)/win/rc/wish.rc wishres.$(OBJEXT) - -else - -tkres.$(OBJEXT): $(ROOT)/win/rc/tk.rc - rc -i$(ROOT)/win/rc -i$(ROOT)/generic -dVS_VERSION_INFO=1 -fotkres.$(OBJEXT) $(ROOT)/win/rc/tk.rc - -wishres.$(OBJEXT): $(ROOT)/win/rc/wish.rc - rc -i$(ROOT)/win/rc -i$(ROOT)/generic -dVS_VERSION_INFO=1 -fowishres.$(OBJEXT) $(ROOT)/win/rc/wish.rc - -endif - -#{$(ROOT)\win\rc}.rc{$(TMPDIR)}.res: -# $(rc32) -fo $@ -r -i $(ROOT)\generic $< - -clean: - rm -f *.exp *.a *.dll *.exe $(TMPDIR)/*.$(OBJEXT) *.res *.def - rm -f tk.base tkplugin.base - -# dependencies - -$(TMPDIR)/tk.res: \ - $(RCDIR)/buttons.bmp \ - $(RCDIR)/cursor*.cur \ - $(RCDIR)/tk.ico - -$(GENERICDIR)/default.h: $(WINDIR)/tkWinDefault.h -$(GENERICDIR)/tkButton.c: $(GENERICDIR)/default.h -$(GENERICDIR)/tkCanvas.c: $(GENERICDIR)/default.h -$(GENERICDIR)/tkEntry.c: $(GENERICDIR)/default.h -$(GENERICDIR)/tkFrame.c: $(GENERICDIR)/default.h -$(GENERICDIR)/tkListbox.c: $(GENERICDIR)/default.h -$(GENERICDIR)/tkMenu.c: $(GENERICDIR)/default.h -$(GENERICDIR)/tkMenubutton.c: $(GENERICDIR)/default.h -$(GENERICDIR)/tkMessage.c: $(GENERICDIR)/default.h -$(GENERICDIR)/tkScale.c: $(GENERICDIR)/default.h -$(GENERICDIR)/tkScrollbar.c: $(GENERICDIR)/default.h -$(GENERICDIR)/tkText.c: $(GENERICDIR)/default.h -$(GENERICDIR)/tkTextIndex.c: $(GENERICDIR)/default.h -$(GENERICDIR)/tkTextTag.c: $(GENERICDIR)/default.h - -$(GENERICDIR)/tkText.c: $(GENERICDIR)/tkText.h -$(GENERICDIR)/tkTextBTree.c: $(GENERICDIR)/tkText.h -$(GENERICDIR)/tkTextDisp.c: $(GENERICDIR)/tkText.h -$(GENERICDIR)/tkTextDisp.c: $(GENERICDIR)/tkText.h -$(GENERICDIR)/tkTextImage.c: $(GENERICDIR)/tkText.h -$(GENERICDIR)/tkTextIndex.c: $(GENERICDIR)/tkText.h -$(GENERICDIR)/tkTextMark.c: $(GENERICDIR)/tkText.h -$(GENERICDIR)/tkTextTag.c: $(GENERICDIR)/tkText.h -$(GENERICDIR)/tkTextWind.c: $(GENERICDIR)/tkText.h - -$(GENERICDIR)/tkMacWinMenu.c: $(GENERICDIR)/tkMenu.h -$(GENERICDIR)/tkMenu.c: $(GENERICDIR)/tkMenu.h -$(GENERICDIR)/tkMenuDraw.c: $(GENERICDIR)/tkMenu.h -$(WINDIR)/tkWinMenu.c: $(GENERICDIR)/tkMenu.h - -Makefile: $(WINDIR)/Makefile.in config.status - $(SHELL) config.status - -config.status: $(WINDIR)/configure - ./config.status --recheck +depend: + +cleanhelp: + $(RM) *.hlp *.cnt *.hpj *.GID *.rtf man2tcl${EXEEXT} + +clean: cleanhelp + $(RM) *.lib *.a *.exp *.dll *.$(RES) *.${OBJEXT} *~ \#* TAGS a.out + $(RM) $(WISH) $(TKTEST) $(CAT32) + $(RM) *.pch *.ilk *.pdb + +distclean: clean + $(RM) Makefile config.status config.cache config.log tkConfig.sh + +Makefile: $(SRC_DIR)/Makefile.in + ./config.status |