head	1.96;
access;
symbols
	core-8-5-9:1.78.2.5
	core-8-5-8:1.78.2.3
	macosx-cocoa-merge:1.83
	macosx-cocoa-premerge:1.83
	macosx-carbon-freeze:1.83
	core-8-5-7:1.78.2.2
	core-8-5-6:1.78.2.1
	core-8-6-b1:1.82
	core-8-6-a3:1.80
	core-8-5-5:1.78.2.1
	core-8-6-a2:1.79
	core-8-5-4:1.78
	core-8-5-3:1.78
	core-8-6-a1:1.79
	core-8-4-19:1.59.2.7
	core-8-5-branch:1.78.0.2
	core-8-5-2:1.78
	core-8-4-18:1.59.2.7
	core-8-5-1:1.77
	core-8-4-17:1.59.2.7
	core-8-5-0:1.77
	core-8-5-b3:1.76
	core-8-5-b2:1.75
	core-8-4-16:1.59.2.7
	core-8-5-b1:1.75
	core-stablilizer-merge:1.73
	core-stabilizer-branch:1.73.0.2
	core-stabilizer-merge:1.78
	core-8-4-15:1.59.2.7
	core-8-5-a6:1.71
	core-8-5-a5:1.69
	core-8-4-14:1.59.2.6
	core-8-5-a4:1.67
	core-8-4-13:1.59.2.4
	core-8-4-12:1.59.2.3
	core-8-4-11:1.59
	core-8-5-a3:1.62
	core-8-4-10:1.59
	core-8-4-9-branch:1.59.0.6
	core-8-5-a2:1.62
	core-8-4-9:1.59
	core-8-4-8:1.59
	core-8-4-7:1.59
	core-8-5-a1:1.60
	core-8-4-6:1.59
	core-8-4-5:1.59
	mistachkin-dev-branch:1.59.0.4
	core-8-4-4:1.59
	core-8-4-3:1.59
	core-8-4-branch:1.59.0.2
	core-8-4-2:1.59
	core-8-4-1:1.58
	core-8-3-5:1.24.2.8
	core-8-4-0:1.58
	macosx-8-4-merge-2002-08-31-trunk:1.57
	macosx-8-4-premerge-2002-08-31-branch:1.44.2.4
	macosx-8-4-premerge-2002-08-31-trunk:1.57
	macosx-8-4-merge-2002-08-30-branch:1.44.2.4
	macosx-8-4-merge-2002-08-30-trunk:1.57
	macosx-8-4-merge-2002-08-20-branch:1.44.2.3
	macosx-8-4-merge-2002-08-20-trunk:1.56
	core-8-4-b2:1.55
	core-8-4-b1:1.54
	macosx-premerge-6-9-02:1.44.2.1
	core-8-4-a4:1.48
	core-8-3-4:1.24.2.7
	macosx-8-4-branch:1.44.0.2
	macosx-8-4-branchpoint:1.44
	core-8-4-a3:1.42
	core-8-3-3:1.24.2.5
	dgp-privates-into-namespace:1.35.0.4
	tclpro-1-5-0:1.24.2.4
	core-8-4-win-speedup:1.35.0.2
	core-8-4-a2:1.35
	tclpro-1-4-1:1.24.2.4
	tclpro-1-4-0:1.24.2.4
	core-8-3-2:1.24.2.4
	ajuba-ajuba2-2-1-base:1.24.2.2
	ajuba-ajuba2-2-0:1.24
	core-8-4-a1:1.25
	core-8-3-1-branch:1.24.0.2
	core-8-3-1:1.24
	scriptics-sc-2-0-b5:1.18
	scriptics-sc-2-0-fixed:1.18
	scriptics-sc-2-0-b2:1.18
	scriptics-sc-2-0-b1:1.18
	core-8-3-0:1.18
	core-8-3-b2:1.16
	core-8-3-b1:1.16
	scriptics-sc-1-1:1.8
	scriptics-sc-1-1-b1:1.8
	core-8-2-3:1.8
	scriptics-sc-1-1-branch:1.8.0.8
	scriptics-sc-1-1-base:1.8
	scriptics-sc-1-0:1.8
	scriptics-sc-1-0-branch:1.8.0.6
	scriptics-sc-1-0-base:1.8
	core-8-2-2:1.8
	core-8-2-1:1.8
	scriptics-bc-1-0-b1:1.8
	core-8-2-1-branch:1.8.0.4
	scriptics-tclpro-1-3-0:1.8
	core-8-2-0:1.8
	core-8-2-b3-branch:1.8.0.2
	core-8-2-b3-base:1.8
	scriptics-tclpro-1-3-b4:1.8
	core-8-2-b2:1.8
	scriptics-tclpro-1-3-b3:1.6
	core-8-2-b1:1.6;
locks; strict;
comment	@# @;


1.96
date	2010.10.11.21.50.46;	author nijtmans;	state Exp;
branches;
next	1.95;

1.95
date	2010.10.06.14.34.38;	author nijtmans;	state Exp;
branches;
next	1.94;

1.94
date	2010.10.06.10.15.58;	author dkf;	state Exp;
branches;
next	1.93;

1.93
date	2010.09.14.08.50.20;	author nijtmans;	state Exp;
branches;
next	1.92;

1.92
date	2010.08.27.00.57.50;	author hobbs;	state Exp;
branches;
next	1.91;

1.91
date	2010.08.12.00.36.31;	author hobbs;	state Exp;
branches;
next	1.90;

1.90
date	2009.12.02.21.16.45;	author nijtmans;	state Exp;
branches;
next	1.89;

1.89
date	2009.11.30.23.43.49;	author nijtmans;	state Exp;
branches;
next	1.88;

1.88
date	2009.11.20.00.24.24;	author nijtmans;	state Exp;
branches;
next	1.87;

1.87
date	2009.11.10.23.50.46;	author andreas_kupries;	state Exp;
branches;
next	1.86;

1.86
date	2009.11.10.23.36.19;	author andreas_kupries;	state Exp;
branches;
next	1.85;

1.85
date	2009.10.21.20.28.52;	author nijtmans;	state Exp;
branches;
next	1.84;

1.84
date	2009.10.20.16.57.25;	author dgp;	state Exp;
branches;
next	1.83;

1.83
date	2008.12.28.13.08.39;	author dkf;	state Exp;
branches;
next	1.82;

1.82
date	2008.12.05.10.48.52;	author dkf;	state Exp;
branches;
next	1.81;

1.81
date	2008.10.18.14.22.22;	author dkf;	state Exp;
branches;
next	1.80;

1.80
date	2008.08.25.11.44.04;	author dkf;	state Exp;
branches;
next	1.79;

1.79
date	2008.04.02.04.30.42;	author dgp;	state Exp;
branches;
next	1.78;

1.78
date	2008.03.18.06.59.04;	author jenglish;	state Exp;
branches
	1.78.2.1;
next	1.77;

1.77
date	2007.12.13.15.28.52;	author dgp;	state Exp;
branches;
next	1.76;

1.76
date	2007.10.30.10.13.51;	author dkf;	state Exp;
branches;
next	1.75;

1.75
date	2007.09.12.17.10.38;	author andreas_kupries;	state Exp;
branches;
next	1.74;

1.74
date	2007.09.11.17.46.42;	author dgp;	state Exp;
branches;
next	1.73;

1.73
date	2007.05.14.20.58.28;	author dgp;	state Exp;
branches
	1.73.2.1;
next	1.72;

1.72
date	2007.05.05.07.42.58;	author dkf;	state Exp;
branches;
next	1.71;

1.71
date	2006.12.13.20.38.29;	author hobbs;	state Exp;
branches;
next	1.70;

1.70
date	2006.10.31.01.42.27;	author hobbs;	state Exp;
branches;
next	1.69;

1.69
date	2006.09.27.18.43.35;	author andreas_kupries;	state Exp;
branches;
next	1.68;

1.68
date	2006.09.22.19.02.08;	author andreas_kupries;	state Exp;
branches;
next	1.67;

1.67
date	2006.03.29.23.05.30;	author hobbs;	state Exp;
branches;
next	1.66;

1.66
date	2005.12.09.00.48.54;	author das;	state Exp;
branches;
next	1.65;

1.65
date	2005.12.08.20.25.42;	author hobbs;	state Exp;
branches;
next	1.64;

1.64
date	2005.12.01.02.03.58;	author hobbs;	state Exp;
branches;
next	1.63;

1.63
date	2005.08.23.18.25.34;	author mdejong;	state Exp;
branches;
next	1.62;

1.62
date	2004.07.20.10.23.51;	author das;	state Exp;
branches;
next	1.61;

1.61
date	2004.04.24.06.00.20;	author das;	state Exp;
branches;
next	1.60;

1.60
date	2003.10.08.21.49.56;	author patthoyts;	state Exp;
branches;
next	1.59;

1.59
date	2003.01.13.07.30.58;	author mdejong;	state Exp;
branches
	1.59.2.1;
next	1.58;

1.58
date	2002.09.04.17.44.55;	author andreas_kupries;	state Exp;
branches;
next	1.57;

1.57
date	2002.08.26.14.32.18;	author dgp;	state Exp;
branches;
next	1.56;

1.56
date	2002.08.16.07.52.24;	author hobbs;	state Exp;
branches;
next	1.55;

1.55
date	2002.07.16.23.17.09;	author mdejong;	state Exp;
branches;
next	1.54;

1.54
date	2002.06.27.20.09.55;	author andreas_kupries;	state Exp;
branches;
next	1.53;

1.53
date	2002.06.26.02.38.26;	author dgp;	state Exp;
branches;
next	1.52;

1.52
date	2002.06.21.23.09.54;	author hobbs;	state Exp;
branches;
next	1.51;

1.51
date	2002.06.18.23.51.46;	author dkf;	state Exp;
branches;
next	1.50;

1.50
date	2002.04.23.00.20.08;	author hobbs;	state Exp;
branches;
next	1.49;

1.49
date	2002.04.05.08.41.59;	author hobbs;	state Exp;
branches;
next	1.48;

1.48
date	2002.02.22.02.41.17;	author hobbs;	state Exp;
branches;
next	1.47;

1.47
date	2001.12.19.07.45.52;	author mdejong;	state Exp;
branches;
next	1.46;

1.46
date	2001.11.25.06.43.44;	author mdejong;	state Exp;
branches;
next	1.45;

1.45
date	2001.11.11.03.21.24;	author mdejong;	state Exp;
branches;
next	1.44;

1.44
date	2001.09.10.03.23.54;	author mdejong;	state Exp;
branches
	1.44.2.1;
next	1.43;

1.43
date	2001.09.10.00.40.54;	author mdejong;	state Exp;
branches;
next	1.42;

1.42
date	2001.08.04.00.29.56;	author hobbs;	state Exp;
branches;
next	1.41;

1.41
date	2001.07.06.02.25.02;	author mdejong;	state Exp;
branches;
next	1.40;

1.40
date	2001.07.04.00.25.09;	author mdejong;	state Exp;
branches;
next	1.39;

1.39
date	2001.07.04.00.19.48;	author mdejong;	state Exp;
branches;
next	1.38;

1.38
date	2001.06.27.02.06.13;	author mdejong;	state Exp;
branches;
next	1.37;

1.37
date	2001.06.22.23.59.48;	author mdejong;	state Exp;
branches;
next	1.36;

1.36
date	2001.03.30.21.53.12;	author hobbs;	state Exp;
branches;
next	1.35;

1.35
date	2000.11.03.17.28.00;	author hobbs;	state Exp;
branches
	1.35.2.1
	1.35.4.1;
next	1.34;

1.34
date	2000.10.31.01.28.26;	author davidg;	state Exp;
branches;
next	1.33;

1.33
date	2000.10.31.00.52.28;	author hobbs;	state Exp;
branches;
next	1.32;

1.32
date	2000.10.06.21.24.48;	author hobbs;	state Exp;
branches;
next	1.31;

1.31
date	2000.09.29.21.40.54;	author hobbs;	state Exp;
branches;
next	1.30;

1.30
date	2000.09.02.01.18.24;	author ericm;	state Exp;
branches;
next	1.29;

1.29
date	2000.07.18.18.17.47;	author mo;	state Exp;
branches;
next	1.28;

1.28
date	2000.06.15.15.56.48;	author ericm;	state Exp;
branches;
next	1.27;

1.27
date	2000.06.13.23.55.16;	author ericm;	state Exp;
branches;
next	1.26;

1.26
date	2000.06.13.21.07.34;	author ericm;	state Exp;
branches;
next	1.25;

1.25
date	2000.05.23.02.44.18;	author hobbs;	state Exp;
branches;
next	1.24;

1.24
date	2000.04.25.22.30.42;	author hobbs;	state Exp;
branches
	1.24.2.1;
next	1.23;

1.23
date	2000.04.25.22.29.55;	author hobbs;	state Exp;
branches;
next	1.22;

1.22
date	2000.04.25.21.00.08;	author hobbs;	state Exp;
branches;
next	1.21;

1.21
date	2000.04.21.04.07.09;	author hobbs;	state Exp;
branches;
next	1.20;

1.20
date	2000.04.12.18.51.11;	author hobbs;	state Exp;
branches;
next	1.19;

1.19
date	2000.04.08.06.59.09;	author hobbs;	state Exp;
branches;
next	1.18;

1.18
date	2000.02.08.11.31.49;	author hobbs;	state Exp;
branches;
next	1.17;

1.17
date	2000.02.01.11.41.43;	author hobbs;	state Exp;
branches;
next	1.16;

1.16
date	99.12.13.23.22.07;	author wart;	state Exp;
branches;
next	1.15;

1.15
date	99.12.07.01.03.19;	author wart;	state Exp;
branches;
next	1.14;

1.14
date	99.11.23.22.22.34;	author wart;	state Exp;
branches;
next	1.13;

1.13
date	99.11.23.21.24.59;	author wart;	state Exp;
branches;
next	1.12;

1.12
date	99.11.18.02.18.35;	author wart;	state Exp;
branches;
next	1.11;

1.11
date	99.09.18.00.20.56;	author stanton;	state Exp;
branches;
next	1.10;

1.10
date	99.09.10.00.23.12;	author wart;	state Exp;
branches;
next	1.9;

1.9
date	99.08.26.18.24.18;	author wart;	state Exp;
branches;
next	1.8;

1.8
date	99.07.29.23.01.43;	author redman;	state Exp;
branches;
next	1.7;

1.7
date	99.07.16.21.43.30;	author redman;	state Exp;
branches;
next	1.6;

1.6
date	99.06.30.22.35.57;	author redman;	state Exp;
branches;
next	1.5;

1.5
date	99.06.29.21.30.51;	author redman;	state Exp;
branches;
next	1.4;

1.4
date	99.06.29.00.27.31;	author surles;	state Exp;
branches;
next	1.3;

1.3
date	99.06.26.21.49.18;	author surles;	state Exp;
branches;
next	1.2;

1.2
date	99.06.18.17.35.06;	author redman;	state Exp;
branches;
next	1.1;

1.1
date	99.06.16.22.54.03;	author surles;	state Exp;
branches;
next	;

1.24.2.1
date	2000.07.11.04.53.13;	author welch;	state Exp;
branches;
next	1.24.2.2;

1.24.2.2
date	2000.07.23.04.48.16;	author welch;	state Exp;
branches;
next	1.24.2.3;

1.24.2.3
date	2000.07.28.08.12.05;	author mo;	state Exp;
branches;
next	1.24.2.4;

1.24.2.4
date	2000.08.05.23.52.32;	author hobbs;	state Exp;
branches;
next	1.24.2.5;

1.24.2.5
date	2001.04.04.07.57.18;	author hobbs;	state Exp;
branches;
next	1.24.2.6;

1.24.2.6
date	2001.08.04.00.32.53;	author hobbs;	state Exp;
branches;
next	1.24.2.7;

1.24.2.7
date	2001.10.03.22.04.53;	author hobbs;	state Exp;
branches;
next	1.24.2.8;

1.24.2.8
date	2002.04.18.22.22.23;	author hobbs;	state Exp;
branches;
next	;

1.35.2.1
date	2000.11.03.22.49.24;	author hobbs;	state Exp;
branches;
next	1.35.2.2;

1.35.2.2
date	2002.04.02.21.17.03;	author hobbs;	state Exp;
branches;
next	;

1.35.4.1
date	2001.07.03.20.01.10;	author dgp;	state Exp;
branches;
next	1.35.4.2;

1.35.4.2
date	2001.07.06.03.33.05;	author dgp;	state Exp;
branches;
next	1.35.4.3;

1.35.4.3
date	2001.07.18.17.05.59;	author dgp;	state Exp;
branches;
next	;

1.44.2.1
date	2002.02.05.02.25.18;	author wolfsuit;	state Exp;
branches;
next	1.44.2.2;

1.44.2.2
date	2002.06.10.05.38.27;	author wolfsuit;	state Exp;
branches;
next	1.44.2.3;

1.44.2.3
date	2002.08.20.20.27.18;	author das;	state Exp;
branches;
next	1.44.2.4;

1.44.2.4
date	2002.08.30.15.36.13;	author das;	state Exp;
branches;
next	;

1.59.2.1
date	2005.07.25.01.33.54;	author mdejong;	state Exp;
branches;
next	1.59.2.2;

1.59.2.2
date	2005.11.30.00.19.01;	author hobbs;	state Exp;
branches;
next	1.59.2.3;

1.59.2.3
date	2005.12.01.02.13.33;	author hobbs;	state Exp;
branches;
next	1.59.2.4;

1.59.2.4
date	2006.03.02.21.07.30;	author hobbs;	state Exp;
branches;
next	1.59.2.5;

1.59.2.5
date	2006.09.22.19.01.52;	author andreas_kupries;	state Exp;
branches;
next	1.59.2.6;

1.59.2.6
date	2006.09.25.17.28.21;	author andreas_kupries;	state Exp;
branches;
next	1.59.2.7;

1.59.2.7
date	2007.01.30.23.21.24;	author hobbs;	state Exp;
branches;
next	;

1.73.2.1
date	2007.09.11.18.32.36;	author dgp;	state Exp;
branches;
next	1.73.2.2;

1.73.2.2
date	2007.09.14.16.30.30;	author dgp;	state Exp;
branches;
next	1.73.2.3;

1.73.2.3
date	2007.11.01.16.37.25;	author dgp;	state Exp;
branches;
next	1.73.2.4;

1.73.2.4
date	2008.03.26.20.09.33;	author dgp;	state Exp;
branches;
next	;

1.78.2.1
date	2008.10.10.18.55.31;	author dgp;	state Exp;
branches;
next	1.78.2.2;

1.78.2.2
date	2009.04.10.11.07.32;	author dkf;	state Exp;
branches;
next	1.78.2.3;

1.78.2.3
date	2009.10.15.17.48.50;	author dgp;	state Exp;
branches;
next	1.78.2.4;

1.78.2.4
date	2010.08.12.00.37.35;	author hobbs;	state Exp;
branches;
next	1.78.2.5;

1.78.2.5
date	2010.08.27.00.21.45;	author hobbs;	state Exp;
branches;
next	1.78.2.6;

1.78.2.6
date	2010.10.06.10.19.22;	author dkf;	state Exp;
branches;
next	;


desc
@@


1.96
log
@[FRQ 491789]: "setargv() doesn't support a unicode
cmdline" implemented for Tk on MSVC++
@
text
@# 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.
#
# RCS: @@(#) $Id: Makefile.in,v 1.95 2010/10/06 14:34:38 nijtmans Exp $

TCLVERSION		= @@TCL_VERSION@@
TCLPATCHL		= @@TCL_PATCH_LEVEL@@
VERSION			= @@TK_VERSION@@
PATCH_LEVEL		= @@TK_PATCH_LEVEL@@

#----------------------------------------------------------------
# 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		=

# 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 this value):
TK_LIBRARY		= $(prefix)/lib/tk$(VERSION)

# 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)

# 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)

# Directory in which to (optionally) install the private tk headers:
PRIVATE_INCLUDE_INSTALL_DIR = $(INSTALL_ROOT)$(includedir)

# Top-level directory for manual entries:
MAN_INSTALL_DIR		= $(INSTALL_ROOT)$(mandir)

# 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@@

# Directory in which to install the pkgIndex.tcl file for loadable Tk
PKG_INSTALL_DIR		= $(LIB_INSTALL_DIR)/tk$(VERSION)$(TK_DBGX)

# Package index file for loadable Tk
PKG_INDEX		= $(PKG_INSTALL_DIR)/pkgIndex.tcl

# 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

TCL_TOOL_DIR		= @@TCL_SRC_DIR@@/tools

# Converts a POSIX path to a Windows native path.
CYGPATH			= @@CYGPATH@@

# The name of the Tcl library.
TCL_LIB_FILE	  = "$(shell $(CYGPATH) '@@TCL_BIN_DIR@@/@@TCL_LIB_FILE@@')"
TCL_STUB_LIB_FILE = "$(shell $(CYGPATH) '@@TCL_BIN_DIR@@/@@TCL_STUB_LIB_FILE@@')"

SRC_DIR			= @@srcdir@@
ROOT_DIR		= $(SRC_DIR)/..
WIN_DIR			= $(SRC_DIR)
UNIX_DIR		= $(SRC_DIR)/../unix
GENERIC_DIR		= $(SRC_DIR)/../generic
TTK_DIR			= $(GENERIC_DIR)/ttk
BITMAP_DIR		= $(ROOT_DIR)/bitmaps
XLIB_DIR		= $(ROOT_DIR)/xlib
RC_DIR			= $(WIN_DIR)/rc

ROOT_DIR_NATIVE	   	= $(shell $(CYGPATH) '$(ROOT_DIR)' | sed 's!\\!/!g')
WIN_DIR_NATIVE	   	= $(shell $(CYGPATH) '$(WIN_DIR)' | sed 's!\\!/!g')
GENERIC_DIR_NATIVE 	= $(shell $(CYGPATH) '$(GENERIC_DIR)' | sed 's!\\!/!g')
BITMAP_DIR_NATIVE	= $(ROOT_DIR_NATIVE)/bitmaps
XLIB_DIR_NATIVE		= $(ROOT_DIR_NATIVE)/xlib
RC_DIR_NATIVE      	= $(WIN_DIR_NATIVE)/rc
TCL_GENERIC_NATIVE	= $(shell $(CYGPATH) '$(TCL_GENERIC_DIR)' | sed 's!\\!/!g')
TCL_SRC_DIR_NATIVE      = $(shell $(CYGPATH) '$(TCL_SRC_DIR)' | sed 's!\\!/!g')

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@@
TEST_DLL_FILE		= tktest$(VER)${DLLSUFFIX}
TEST_LIB_FILE		= @@LIBPREFIX@@tktest$(VER)${LIBSUFFIX}

SHARED_LIBRARIES 	= $(TK_DLL_FILE) $(TK_STUB_LIB_FILE)
STATIC_LIBRARIES	= $(TK_LIB_FILE)

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):$(TTK_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@@ -DUNICODE -D_UNICODE

# Special compiler flags to use when building man2tcl on Windows.
MAN2TCLFLAGS	= @@MAN2TCLFLAGS@@

AR		= @@AR@@
RANLIB		= @@RANLIB@@
CC		= @@CC@@
RC		= @@RC@@
RES		= @@RES@@
TK_RES		= @@TK_RES@@
AC_FLAGS	= @@EXTRA_CFLAGS@@ @@DEFS@@ @@TCL_DEFS@@
CPPFLAGS	= @@CPPFLAGS@@
LDFLAGS		= @@LDFLAGS@@ @@LDFLAGS_DEFAULT@@
LDFLAGS_CONSOLE	= @@LDFLAGS_CONSOLE@@
LDFLAGS_WINDOW	= @@LDFLAGS_WINDOW@@
EXEEXT		= @@EXEEXT@@
OBJEXT		= @@OBJEXT@@
STLIB_LD	= @@STLIB_LD@@
SHLIB_LD	= @@SHLIB_LD@@
SHLIB_LD_LIBS	= @@SHLIB_LD_LIBS@@
SHLIB_CFLAGS	= @@SHLIB_CFLAGS@@
SHLIB_SUFFIX	= @@SHLIB_SUFFIX@@
VER		= @@TK_MAJOR_VERSION@@@@TK_MINOR_VERSION@@
DOTVER		= @@TK_MAJOR_VERSION@@.@@TK_MINOR_VERSION@@
LIBS		= $(TCL_STUB_LIB_FILE) @@LIBS@@ @@LIBS_GUI@@
RMDIR		= rm -rf
MKDIR		= mkdir -p
SHELL		= @@SHELL@@
RM		= rm -f
COPY		= cp

BUILD_TCLSH	= @@BUILD_TCLSH@@

# TCL_EXE is the name of a tclsh executable that is available *BEFORE*
# running make for the first time. Certain build targets (make genstubs)
# need it to be available on the PATH. This executable should *NOT* be
# required just to do a normal build although it can be required to run
# make dist.
TCL_EXE			= @@TCLSH_PROG@@

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} -DUSE_TCL_STUBS

CC_OBJNAME = @@CC_OBJNAME@@
CC_EXENAME = @@CC_EXENAME@@

# 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)

TKTEST_OBJS = \
	tkSquare.$(OBJEXT) \
	tkTest.$(OBJEXT) \
	tkOldTest.$(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) \
	tkWinSendCom.$(OBJEXT) \
	tkWinWindow.$(OBJEXT) \
	tkWinWm.$(OBJEXT) \
	tkWinX.$(OBJEXT) \
	stubs.$(OBJEXT) \
	tk3d.$(OBJEXT) \
	tkArgv.$(OBJEXT) \
	tkAtom.$(OBJEXT) \
	tkBind.$(OBJEXT) \
	tkBitmap.$(OBJEXT) \
	tkBusy.$(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) \
	tkImgPNG.$(OBJEXT) \
	tkImgPPM.$(OBJEXT) \
	tkImgPhoto.$(OBJEXT) \
	tkImgPhInstance.$(OBJEXT) \
	tkImgUtil.$(OBJEXT) \
	tkListbox.$(OBJEXT) \
	tkMacWinMenu.$(OBJEXT) \
	tkMain.$(OBJEXT) \
	tkMain2.$(OBJEXT) \
	tkMenu.$(OBJEXT) \
	tkMenubutton.$(OBJEXT) \
	tkMenuDraw.$(OBJEXT) \
	tkMessage.$(OBJEXT) \
	tkPanedWindow.$(OBJEXT) \
	tkObj.$(OBJEXT) \
	tkOldConfig.$(OBJEXT) \
	tkOption.$(OBJEXT) \
	tkPack.$(OBJEXT) \
	tkPlace.$(OBJEXT) \
	tkPointer.$(OBJEXT) \
	tkRectOval.$(OBJEXT) \
	tkScale.$(OBJEXT) \
	tkScrollbar.$(OBJEXT) \
	tkSelect.$(OBJEXT) \
	tkStyle.$(OBJEXT) \
	tkText.$(OBJEXT) \
	tkTextBTree.$(OBJEXT) \
	tkTextDisp.$(OBJEXT) \
	tkTextImage.$(OBJEXT) \
	tkTextIndex.$(OBJEXT) \
	tkTextMark.$(OBJEXT) \
	tkTextTag.$(OBJEXT) \
	tkTextWind.$(OBJEXT) \
	tkTrig.$(OBJEXT) \
	tkUndo.$(OBJEXT) \
	tkUtil.$(OBJEXT) \
	tkVisual.$(OBJEXT) \
	tkStubInit.$(OBJEXT) \
	tkWindow.$(OBJEXT) \
	$(TTK_OBJS)

TTK_OBJS = \
	ttkWinMonitor.$(OBJEXT) \
	ttkWinTheme.$(OBJEXT) \
	ttkWinXPTheme.$(OBJEXT) \
	ttkBlink.$(OBJEXT) \
	ttkButton.$(OBJEXT) \
	ttkCache.$(OBJEXT) \
	ttkClamTheme.$(OBJEXT) \
	ttkClassicTheme.$(OBJEXT) \
	ttkDefaultTheme.$(OBJEXT) \
	ttkElements.$(OBJEXT) \
	ttkEntry.$(OBJEXT) \
	ttkFrame.$(OBJEXT) \
	ttkImage.$(OBJEXT) \
	ttkInit.$(OBJEXT) \
	ttkLabel.$(OBJEXT) \
	ttkLayout.$(OBJEXT) \
	ttkManager.$(OBJEXT) \
	ttkNotebook.$(OBJEXT) \
	ttkPanedwindow.$(OBJEXT) \
	ttkProgress.$(OBJEXT) \
	ttkScale.$(OBJEXT) \
	ttkScrollbar.$(OBJEXT) \
	ttkScroll.$(OBJEXT) \
	ttkSeparator.$(OBJEXT) \
	ttkSquare.$(OBJEXT) \
	ttkState.$(OBJEXT) \
	ttkTagSet.$(OBJEXT) \
	ttkTheme.$(OBJEXT) \
	ttkTrace.$(OBJEXT) \
	ttkTrack.$(OBJEXT) \
	ttkTreeview.$(OBJEXT) \
	ttkWidget.$(OBJEXT) \
	ttkStubInit.$(OBJEXT)

STUB_OBJS = \
	tkStubLib.$(OBJEXT) ttkStubLib.$(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

SHELL_ENV = \
	@@TCL_LIBRARY="$(TCL_SRC_DIR_NATIVE)/library"; export TCL_LIBRARY; \
	TK_LIBRARY="$(ROOT_DIR_NATIVE)/library"; export TK_LIBRARY; \
	PATH="$(TCL_BIN_DIR):$(PATH)"; export PATH;

# 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

winhelp: $(TCL_SRC_DIR_NATIVE)/tools/man2help.tcl $(MAN2TCL)
	$(TCL_EXE) "$(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/

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

# Specifying TESTFLAGS on the command line is the standard way to pass
# args to tcltest, ie:
#	% make test TESTFLAGS="-verbose bps -file fileName.test"

test: test-classic test-ttk

test-classic: binaries $(TKTEST) $(TEST_DLL_FILE) $(CAT32)
	$(SHELL_ENV) ./$(TKTEST) "$(ROOT_DIR_NATIVE)/tests/all.tcl" \
	$(TESTFLAGS) | ./$(CAT32)

test-ttk: binaries $(TKTEST) $(TEST_DLL_FILE) $(CAT32)
	$(SHELL_ENV) ./$(TKTEST) "$(ROOT_DIR_NATIVE)/tests/ttk/all.tcl" \
	$(TESTFLAGS) | ./$(CAT32)

runtest: binaries $(TKTEST) $(TEST_DLL_FILE)
	$(SHELL_ENV) ./$(TKTEST) $(TESTFLAGS) $(SCRIPT)

# This target can be used to run wish from the build directory
# via `make shell` or `make shell SCRIPT=foo.tcl`
shell: binaries
	$(SHELL_ENV) ./$(WISH) $(SCRIPT)

demo:
	$(SHELL_ENV) ./$(WISH) $(ROOT_DIR)/library/demos/widget

# This target can be used to run wish inside either gdb or insight
gdb: binaries
	@@echo "set env TCL_LIBRARY=$(TCL_SRC_DIR_NATIVE)/library" > gdb.run
	@@echo "set env TK_LIBRARY=$(ROOT_DIR_NATIVE)/library" >> gdb.run
	PATH="$(TCL_BIN_DIR):$(PATH)"; export PATH; \
	gdb ./$(WISH) --command=gdb.run
	@@$(RM) gdb.run

install: all install-binaries install-libraries install-doc install-demos

install-binaries: binaries
	@@for i in $(LIB_INSTALL_DIR) $(BIN_INSTALL_DIR) $(PKG_INSTALL_DIR); \
	    do \
	    if [ ! -d $$i ] ; then \
		echo "Making directory $$i"; \
		$(MKDIR) $$i; \
		chmod 755 $$i; \
		else true; \
		fi; \
	    done;
	@@for i in $(TK_DLL_FILE) $(WISH); \
	    do \
	    if [ -f $$i ]; then \
		echo "Installing $$i to $(BIN_INSTALL_DIR)/"; \
		$(COPY) $$i "$(BIN_INSTALL_DIR)"; \
	    fi; \
	    done
	@@echo "Creating package index $(PKG_INDEX)"; 
	@@$(RM) $(PKG_INDEX);
	@@(\
	echo "if {[catch {package present Tcl\
		$(TCLVERSION)$(TCLPATCHL)}]} { return }";\
	echo "package ifneeded Tk $(VERSION)$(PATCH_LEVEL)\
		[list load [file join \$$dir .. .. bin $(TK_DLL_FILE)] Tk]";\
	) > $(PKG_INDEX);
	@@for i in tkConfig.sh $(TK_LIB_FILE) $(TK_STUB_LIB_FILE); \
	    do \
	    if [ -f $$i ]; then \
		echo "Installing $$i to $(LIB_INSTALL_DIR)/"; \
		$(COPY) $$i "$(LIB_INSTALL_DIR)"; \
	    fi; \
	    done

install-libraries: libraries
	@@for i in $(INSTALL_ROOT)$(prefix)/lib \
		$(INCLUDE_INSTALL_DIR) $(INCLUDE_INSTALL_DIR)/X11 \
		$(SCRIPT_INSTALL_DIR) $(SCRIPT_INSTALL_DIR)/images \
		$(SCRIPT_INSTALL_DIR)/msgs $(SCRIPT_INSTALL_DIR)/ttk; \
	    do \
	    if [ ! -d $$i ] ; then \
		echo "Making directory $$i"; \
		$(MKDIR) $$i; \
		chmod 755 $$i; \
		else true; \
		fi; \
	    done;
	@@echo "Installing header files to $(INCLUDE_INSTALL_DIR)/";
	@@for i in $(GENERIC_DIR)/tk.h $(GENERIC_DIR)/tkPlatDecls.h \
		$(GENERIC_DIR)/tkIntXlibDecls.h $(GENERIC_DIR)/tkDecls.h ; \
	    do \
	    $(INSTALL_DATA) $$i $(INCLUDE_INSTALL_DIR); \
	    done;
	@@for i in $(XLIB_DIR)/X11/*.h; \
	    do \
	    $(INSTALL_DATA) $$i $(INCLUDE_INSTALL_DIR)/X11; \
	    done;
	@@echo "Installing library files to $(SCRIPT_INSTALL_DIR)";
	@@for i in $(ROOT_DIR)/library/*.tcl $(ROOT_DIR)/library/tclIndex \
		$(UNIX_DIR)/tkAppInit.c; \
	    do \
	    $(INSTALL_DATA) $$i $(SCRIPT_INSTALL_DIR); \
	    done;
	@@echo "Installing library ttk directory";
	@@for i in $(ROOT_DIR)/library/ttk/*.tcl; \
	    do \
	    if [ -f $$i ] ; then \
		$(INSTALL_DATA) $$i $(SCRIPT_INSTALL_DIR)/ttk; \
	    fi; \
	    done;
	@@echo "Installing library images directory";
	@@for i in $(ROOT_DIR)/library/images/*; \
	    do \
	    if [ -f $$i ] ; then \
		$(INSTALL_DATA) $$i $(SCRIPT_INSTALL_DIR)/images; \
	    fi; \
	    done;
	@@echo "Installing translation directory";
	@@for i in $(ROOT_DIR)/library/msgs/*.msg; \
	    do \
	    if [ -f $$i ] ; then \
		$(INSTALL_DATA) $$i $(SCRIPT_INSTALL_DIR)/msgs; \
	    fi; \
	    done;

install-demos:
	@@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; \
		chmod 755 $$i; \
		else true; \
		fi; \
	    done;
	@@echo "Installing demos to $(SCRIPT_INSTALL_DIR)/demos/";
	@@for i in $(ROOT_DIR)/library/demos/*; \
	    do \
	    if [ -f $$i ] ; then \
		sed -e '3 s|exec $(WISH)|exec $(WISH)|' \
			$$i > $(SCRIPT_INSTALL_DIR)/demos/`basename $$i`; \
	    fi; \
	    done;
	@@for i in $(DEMOPROGS); \
	    do \
	    chmod 755 $(SCRIPT_INSTALL_DIR)/demos/$$i; \
	    done;
	@@echo "Installing demo images";
	@@for i in $(ROOT_DIR)/library/demos/images/*; \
	    do \
	    if [ -f $$i ] ; then \
		$(INSTALL_DATA) $$i $(SCRIPT_INSTALL_DIR)/demos/images; \
		fi; \
	    done;

install-doc: doc

# Optional target to install private headers
install-private-headers: libraries
	@@for i in $(PRIVATE_INCLUDE_INSTALL_DIR); \
	    do \
	    if [ ! -d $$i ] ; then \
		echo "Making directory $$i"; \
		$(MKDIR) $$i; \
		chmod 755 $$i; \
		else true; \
		fi; \
	    done;
	@@echo "Installing private header files to $(PRIVATE_INCLUDE_INSTALL_DIR)/";
	@@for i in $(GENERIC_DIR)/tkInt.h $(GENERIC_DIR)/tkIntDecls.h \
		$(GENERIC_DIR)/tkIntPlatDecls.h $(GENERIC_DIR)/tkPort.h \
		$(WIN_DIR)/tkWinPort.h $(WIN_DIR)/tkWinInt.h $(WIN_DIR)/tkWin.h; \
	    do \
	    $(INSTALL_DATA) $$i $(PRIVATE_INCLUDE_INSTALL_DIR); \
	    done;

$(WISH): $(WISH_OBJS) @@LIBRARIES@@ $(TK_STUB_LIB_FILE) wish.$(RES)
	$(CC) $(CFLAGS) $(WISH_OBJS) $(TK_LIB_FILE) \
	$(TK_STUB_LIB_FILE) $(TCL_LIB_FILE) $(LIBS) \
	wish.$(RES) $(CC_EXENAME) $(LDFLAGS_WINDOW)
	@@VC_MANIFEST_EMBED_EXE@@

tktest: $(TKTEST)

$(TKTEST): testMain.$(OBJEXT) $(TEST_DLL_FILE) @@LIBRARIES@@ $(TK_STUB_LIB_FILE) wish.$(RES)
	$(CC) $(CFLAGS) testMain.$(OBJEXT) $(TEST_LIB_FILE) $(TK_LIB_FILE) \
	$(TK_STUB_LIB_FILE) $(TCL_LIB_FILE) $(LIBS) \
	wish.$(RES) $(CC_EXENAME) $(LDFLAGS_WINDOW)
	@@VC_MANIFEST_EMBED_EXE@@

${TEST_DLL_FILE}: ${TKTEST_OBJS} ${TK_STUB_LIB_FILE}
	@@MAKE_DLL@@ ${TKTEST_OBJS} $(TK_STUB_LIB_FILE) $(SHLIB_LD_LIBS)

# Msys make requires this next rule for some reason.
$(TCL_SRC_DIR)/win/cat.c:

cat32.${OBJEXT}: $(TCL_SRC_DIR)/win/cat.c
	$(CC) -c $(CC_SWITCHES) "$(TCL_SRC_DIR)/win/cat.c" $(CC_OBJNAME)

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

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

${TK_STUB_LIB_FILE}: ${STUB_OBJS}
	@@$(RM) ${TK_STUB_LIB_FILE}
	@@MAKE_LIB@@ ${STUB_OBJS}
	@@POST_MAKE_LIB@@

${TK_DLL_FILE}: ${TK_OBJS} $(TK_RES)
	@@$(RM) ${TK_DLL_FILE}
	@@MAKE_DLL@@ ${TK_OBJS} $(TK_RES) $(SHLIB_LD_LIBS)
	@@VC_MANIFEST_EMBED_DLL@@

${TK_LIB_FILE}: ${TK_OBJS}
	@@$(RM) ${TK_LIB_FILE}
	@@MAKE_LIB@@ ${TK_OBJS}
	@@POST_MAKE_LIB@@

# Special case object file targets

winMain.$(OBJEXT): winMain.c
	$(CC) -c $(CC_SWITCHES) @@DEPARG@@ $(CC_OBJNAME)

testMain.$(OBJEXT): winMain.c
	$(CC) -c $(CC_SWITCHES) @@DEPARG@@ -DTK_TEST $(CC_OBJNAME)

tkTest.$(OBJEXT): tkTest.c
	$(CC) -c $(CC_SWITCHES) @@DEPARG@@ $(CC_OBJNAME)

tkOldTest.$(OBJEXT): tkOldTest.c
	$(CC) -c $(CC_SWITCHES) @@DEPARG@@ $(CC_OBJNAME)

tkWinTest.$(OBJEXT): tkWinTest.c
	$(CC) -c $(CC_SWITCHES) @@DEPARG@@ $(CC_OBJNAME)

tkSquare.$(OBJEXT): tkSquare.c
	$(CC) -c $(CC_SWITCHES) @@DEPARG@@ $(CC_OBJNAME)

tkMain2.$(OBJEXT): tkMain.c
	$(CC) -c $(CC_SWITCHES) -DBUILD_tk -DTK_ASCII_MAIN @@DEPARG@@ $(CC_OBJNAME)

# Extra dependency info
tkConsole.$(OBJEXT): configure Makefile
tkMain.$(OBJEXT): configure Makefile
tkWindow.$(OBJEXT): configure Makefile

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

.SUFFIXES: .${OBJEXT}
.SUFFIXES: .$(RES)
.SUFFIXES: .rc

# Implicit rule for all object files that will end up in the Tcl library

%.$(OBJEXT): %.c
	$(CC) -c $(CC_SWITCHES) -DBUILD_tk -DBUILD_ttk @@DEPARG@@ $(CC_OBJNAME)

.rc.$(RES):
	$(RC) @@RC_OUT@@ $@@ @@RC_TYPE@@ @@RC_DEFINES@@ @@RC_INCLUDE@@ "$(GENERIC_DIR_NATIVE)" @@RC_INCLUDE@@ "$(TCL_GENERIC_NATIVE)" @@RC_INCLUDE@@ "$(RC_DIR_NATIVE)" @@DEPARG@@

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 \
		wish.exe.manifest

Makefile: $(SRC_DIR)/Makefile.in
	./config.status

#
# Regenerate the stubs files.
#

$(GENERIC_DIR)/tkStubInit.c: $(GENERIC_DIR)/tk.decls \
		$(GENERIC_DIR)/tkInt.decls
	@@echo "Warning: tkStubInit.c may be out of date."
	@@echo "Developers may want to run \"make genstubs\" to regenerate."
	@@echo "This warning can be safely ignored, do not report as a bug!"

genstubs:
	$(TCL_EXE) "$(TCL_TOOL_DIR)\genStubs.tcl" \
	    "$(GENERIC_DIR_NATIVE)" \
	    "$(GENERIC_DIR_NATIVE)\tk.decls" \
	    "$(GENERIC_DIR_NATIVE)\tkInt.decls"
	$(TCL_EXE) "$(TTK_DIR)/ttkGenStubs.tcl" \
	    "$(TTK_DIR)" \
	    "$(TTK_DIR)/ttk.decls"

#
# The list of all the targets that do not correspond to real files. This stops
# 'make' from getting confused when someone makes an error in a rule.
#

.PHONY: all binaries libraries doc tkLibObjs objs tktest-real test test-classic
.PHONY: test-ttk testlang runtest shell demo gdb install install-strip
.PHONY: install-binaries install-libraries install-demos install-doc
.PHONY: install-private-headers clean distclean depend genstubs checkstubs
.PHONY: checkuchar checkexports rpm dist alldist allpatch html html-tcl html-tk

# DO NOT DELETE THIS LINE -- make depend depends on it.
@


1.95
log
@win/Makefile.in (genstubs): Generate ttk files as well
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.94 2010/10/06 10:15:58 dkf Exp $
d318 1
d659 3
@


1.94
log
@	* win/Makefile.in (genstubs): [Tcl Bug 3082049]: Typo.
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.93 2010/09/14 08:50:20 nijtmans Exp $
d709 4
a712 1
            "$(GENERIC_DIR_NATIVE)\tkInt.decls"
@


1.93
log
@[FRQ 2965056]: Windows build with -DUNICODE
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.92 2010/08/27 00:57:50 hobbs Exp $
d706 1
a706 1
	$(TCL_EXE) "$(TCL_TOOL_DIR}\genStubs.tcl" \
@


1.92
log
@	* win/Makefile.in (VC_MANIFEST_EMBED_DLL VC_MANIFEST_EMBED_EXE):
	* win/configure, win/configure.in, win/tcl.m4: SC_EMBED_MANIFEST
	macro and --enable-embedded-manifest configure arg added to
	support manifest embedding where we know the magic.  Help prevents
	DLL hell with MSVC8+.
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.91 2010/08/12 00:36:31 hobbs Exp $
d169 1
a169 1
CFLAGS		= @@CFLAGS@@ @@CFLAGS_DEFAULT@@
@


1.91
log
@        * win/Makefile.in (%.${OBJEXT}): better implicit rules support
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.90 2009/12/02 21:16:45 nijtmans Exp $
d598 1
d606 1
d631 1
@


1.90
log
@win/Makefile.in     Use tktest86.dll for all tests.
win/tkWinInt.h      mark various functions MODULE_SCOPE
generic/tkInt.decls make TkWinChildProc available in private
    stub table. [Bug #220600] and [Bug #220690].
generic/tkIntPlatDecls.h (regenerated)
generic/tkStubInit.c (regenerated)
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.89 2009/11/30 23:43:49 nijtmans Exp $
d669 1
a669 1
.c.$(OBJEXT):
@


1.89
log
@Better dependancies in case of static build.
Generate tktest86.dll and tktest86.lib.
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.88 2009/11/20 00:24:24 nijtmans Exp $
d428 1
a428 1
test-classic: binaries $(TKTEST)
d432 1
a432 1
test-ttk: binaries $(TKTEST)
d436 1
a436 1
runtest: binaries $(TKTEST)
d594 1
a594 1
$(WISH): $(WISH_OBJS) $(LIBRARIES) $(TK_STUB_LIB_FILE) wish.$(RES)
d601 1
a601 1
$(TKTEST): testMain.$(OBJEXT) $(TEST_LIB_FILE) $(LIBRARIES) $(TK_STUB_LIB_FILE) wish.$(RES) $(CAT32)
a606 2
	@@-$(RM) ${TEST_DLL_FILE} ${TEST_LIB_FILE}.backup
	@@-$(COPY) ${TEST_LIB_FILE} ${TEST_LIB_FILE}.backup
a607 8
	@@-$(RM) ${TEST_LIB_FILE}
	@@-$(COPY) ${TEST_LIB_FILE}.backup ${TEST_LIB_FILE}
	@@-$(RM) ${TEST_LIB_FILE}.backup

${TEST_LIB_FILE}: ${TKTEST_OBJS}
	@@$(RM) ${TEST_LIB_FILE}
	@@MAKE_LIB@@ ${TKTEST_OBJS}
	@@POST_MAKE_LIB@@
d707 13
@


1.88
log
@Compile tkTest.c and friends with Stubs
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.87 2009/11/10 23:50:46 andreas_kupries Exp $
d134 2
d189 1
a189 1
SHLIB_LD_LIBS	= @@SHLIB_LD_LIBS@@ $(TCL_STUB_LIB_FILE) $(LIBS)
d194 1
a194 1
LIBS		= @@LIBS@@ @@LIBS_GUI@@
a230 1
	testMain.$(OBJEXT) \
d594 1
a594 1
$(WISH): $(TK_LIB_FILE) $(TK_STUB_LIB_FILE) $(WISH_OBJS) wish.$(RES)
d596 1
a596 1
	$(TCL_STUB_LIB_FILE) $(TCL_LIB_FILE) $(LIBS) \
d599 1
a599 1
tktest : $(TKTEST)
d601 3
a603 3
$(TKTEST): $(TK_LIB_FILE) $(TKTEST_OBJS) wish.$(RES) $(CAT32)
	$(CC) $(CFLAGS) $(TKTEST_OBJS) $(TK_LIB_FILE) $(TK_STUB_LIB_FILE) \
	$(TCL_LIB_FILE) $(TCL_STUB_LIB_FILE) $(LIBS) \
d606 13
@


1.87
log
@Undo the reversal of the win/Makefile.in changes, that part was ok.
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.86 2009/11/10 23:36:19 andreas_kupries Exp $
d601 2
a602 2
	$(CC) $(CFLAGS) $(TKTEST_OBJS) $(TK_LIB_FILE) \
	$(TCL_STUB_LIB_FILE) $(TCL_LIB_FILE) $(LIBS) \
@


1.86
log
@
	* unix/Makefile.in: Partially reverted Don Porter's 2009-10-20
	* win/Makefile.in: commit. The OSX Cocoa code branch still needs
	tclInt.h and the internal headers, thus the TCL_PLATFORM
	directory. See tclMacOSXNotify.c for example.
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.85 2009/10/21 20:28:52 nijtmans Exp $
a98 4
# The directory containing the platform specific Tcl sources and headers
# appropriate for this version of Tk:
TCL_PLATFORM_DIR	= @@TCL_SRC_DIR@@/win

a124 1
TCL_PLATFORM_NATIVE	= $(shell $(CYGPATH) '$(TCL_PLATFORM_DIR)' | sed 's!\\!/!g')
d211 1
a211 1
-I"${TCL_GENERIC_NATIVE}" -I"${TCL_PLATFORM_NATIVE}" ${AC_FLAGS} -DUSE_TCL_STUBS
d669 1
a669 1
	$(RC) @@RC_OUT@@ $@@ @@RC_TYPE@@ @@RC_DEFINES@@ @@RC_INCLUDE@@ "$(GENERIC_DIR_NATIVE)" @@RC_INCLUDE@@ "$(TCL_GENERIC_NATIVE)" @@RC_INCLUDE@@ "$(TCL_PLATFORM_NATIVE)" @@RC_INCLUDE@@ "$(RC_DIR_NATIVE)" @@DEPARG@@
@


1.85
log
@Bug fix for #2875562
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.84 2009/10/20 16:57:25 dgp Exp $
d99 4
d129 1
d216 1
a216 1
-I"${TCL_GENERIC_NATIVE}" ${AC_FLAGS} -DUSE_TCL_STUBS
d674 1
a674 1
	$(RC) @@RC_OUT@@ $@@ @@RC_TYPE@@ @@RC_DEFINES@@ @@RC_INCLUDE@@ "$(GENERIC_DIR_NATIVE)" @@RC_INCLUDE@@ "$(TCL_GENERIC_NATIVE)" @@RC_INCLUDE@@ "$(RC_DIR_NATIVE)" @@DEPARG@@
@


1.84
log
@        * unix/Makefile.in:     Compiling Tk no longer requires header files
        * win/Makefile.in:      from the TCL_PLATFORM DIR.  Baby step in
        pursuit of [Bug 1712098].
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.83 2008/12/28 13:08:39 dkf Exp $
d211 1
a211 1
-I"${TCL_GENERIC_NATIVE}" ${AC_FLAGS}
a215 3
STUB_CC_SWITCHES	= ${CC_SWITCHES} -DUSE_TCL_STUBS
CON_CC_SWITCHES		= ${CC_SWITCHES} -DCONSOLE

d594 2
a595 1
	$(CC) $(CFLAGS) $(WISH_OBJS) $(TCL_LIB_FILE) $(TK_LIB_FILE) $(LIBS) \
d601 2
a602 2
	$(CC) $(CFLAGS) $(TKTEST_OBJS) $(TCL_LIB_FILE) \
	$(TK_LIB_FILE) $(LIBS) \
d666 1
a666 1
	$(CC) -c $(STUB_CC_SWITCHES) -DBUILD_tk -DBUILD_ttk @@DEPARG@@ $(CC_OBJNAME)
@


1.83
log
@Implementation of TIP #244, PNG image support.
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.82 2008/12/05 10:48:52 dkf Exp $
a98 4
# The directory containing the platform specific Tcl sources and headers
# appropriate for this version of Tk:
TCL_PLATFORM_DIR	= @@TCL_SRC_DIR@@/win

a124 1
TCL_PLATFORM_NATIVE	= $(shell $(CYGPATH) '$(TCL_PLATFORM_DIR)' | sed 's!\\!/!g')
d211 1
a211 1
-I"${TCL_GENERIC_NATIVE}" -I"${TCL_PLATFORM_NATIVE}" ${AC_FLAGS}
d671 1
a671 1
	$(RC) @@RC_OUT@@ $@@ @@RC_TYPE@@ @@RC_DEFINES@@ @@RC_INCLUDE@@ "$(GENERIC_DIR_NATIVE)" @@RC_INCLUDE@@ "$(TCL_GENERIC_NATIVE)" @@RC_INCLUDE@@ "$(TCL_PLATFORM_NATIVE)" @@RC_INCLUDE@@ "$(RC_DIR_NATIVE)" @@DEPARG@@
@


1.82
log
@Remove references to deleted file
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.81 2008/10/18 14:22:22 dkf Exp $
d317 1
@


1.81
log
@Implementation of the [tk busy] command on non-OSX.
Adapted from [Patch 1997907]
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.80 2008/08/25 11:44:04 dkf Exp $
d520 2
a521 2
	@@for i in $(ROOT_DIR)/library/*.tcl $(GENERIC_DIR)/prolog.ps \
	        $(ROOT_DIR)/library/tclIndex $(UNIX_DIR)/tkAppInit.c; \
@


1.80
log
@Split the photo image core into two pieces to make it easier to maintain.
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.79 2008/04/02 04:30:42 dgp Exp $
d285 1
@


1.79
log
@        * generic/tkWindow.c:   Revised package initialization so that
        * unix/Makefile.in:     "tkStubsPtr" is not present in libtk.so, but
        * win/Makefile.in:      is present only in libtkstub.a.  This tightens
        * win/makefile.bc:      up the rules for users of the stubs interfaces.         * win/makefile.vc:      [Tcl Bug 1819422].
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.78 2008/03/18 06:59:04 jenglish Exp $
d318 1
@


1.78
log
@Put ttkStubLib.o in libtkstub instead of libtk.  [Bug 1863007].
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.77 2007/12/13 15:28:52 dgp Exp $
a350 1
	tkStubLib.$(OBJEXT) \
@


1.78.2.1
log
@        * unix/Makefile.in:     Relax constraints in index script so that
        * win/Makefile.in:      each Tk 8.5.* release may be [package require]d
        * win/makefile.vc:      into any Tcl 8.5.* interp.  [Bug 1890438].
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.78 2008/03/18 06:59:04 jenglish Exp $
d482 2
a483 1
	echo "if {[catch {package present Tcl 8.5.0-8.6}]} { return }";\
@


1.78.2.2
log
@Squelch all mention of prolog.ps; it isn't used. [Bug 1466509]
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.78.2.1 2008/10/10 18:55:31 dgp Exp $
d518 1
a518 1
	@@for i in $(ROOT_DIR)/library/*.tcl \
@


1.78.2.3
log
@        * generic/tkConsole.c:  Relax the runtime version requirements on Tcl
        * generic/tkMain.c:     so that Tk 8.5.8 can [load] into Tcl 8.6 (and
        * generic/tkWindow.c:   later 8.*) interps.
        * library/tk.tcl
        * unix/Makefile.in:
        * win/Makefile.in:
        * win/makefile.vc:
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.78.2.2 2009/04/10 11:07:32 dkf Exp $
d482 1
a482 1
	echo "if {[catch {package present Tcl 8.5.0}]} { return }";\
@


1.78.2.4
log
@        * win/Makefile.in (%.${OBJEXT}): better implicit rules support
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.78.2.3 2009/10/15 17:48:50 dgp Exp $
d669 1
a669 1
%.$(OBJEXT): %.c
@


1.78.2.5
log
@	* win/Makefile.in (VC_MANIFEST_EMBED_DLL VC_MANIFEST_EMBED_EXE):
	* win/configure, win/configure.in, win/tcl.m4: SC_EMBED_MANIFEST
	macro and --enable-embedded-manifest configure arg added to
	support manifest embedding where we know the magic.  Help prevents
	DLL hell with MSVC8+.
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.78.2.4 2010/08/12 00:37:35 hobbs Exp $
d449 1
a449 1
demo: $(WISH)
a600 1
	@@VC_MANIFEST_EMBED_EXE@@
a607 1
	@@VC_MANIFEST_EMBED_EXE@@
a628 1
	@@VC_MANIFEST_EMBED_DLL@@
@


1.78.2.6
log
@	* win/Makefile.in (genstubs): [Tcl Bug 3082049]: Typo.
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.78.2.5 2010/08/27 00:21:45 hobbs Exp $
d706 1
a706 1
	$(TCL_EXE) "$(TCL_TOOL_DIR)\genStubs.tcl" \
@


1.77
log
@merge stable branch onto HEAD
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.73.2.3 2007/11/01 16:37:25 dgp Exp $
d388 1
a388 2
	ttkStubInit.$(OBJEXT) \
	ttkStubLib.$(OBJEXT)
d391 1
a391 1
	tkStubLib.$(OBJEXT)
@


1.76
log
@Made maintenance easier by adding extra dependency information so that
the right version number gets embedded in key files.
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.75 2007/09/12 17:10:38 andreas_kupries Exp $
@


1.75
log
@
	* win/Makefile.in (install-binaries): Fixed missing brace in the
	* win/makefile.vc (install-binaries): generated package index file.
	  Note: unix/Makefile.in is good.
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.74 2007/09/11 17:46:42 dgp Exp $
d657 5
@


1.74
log
@        * generic/tkConsole.c:  Revised calls to Tcl_InitStubs() and
        * generic/tkMain.c:     [package require Tcl] so that Tk Says What
        * generic/tkWindow.c:   It Means using the new facilties of [package]
        * library/tk.tcl:       in Tcl 8.5 about what version(s) of Tcl it
        * unix/Makefile.in:     is willing to work with.  [Bug 1578344].
        * win/Makefile.in:
        * win/makefile.vc:
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.73 2007/05/14 20:58:28 dgp Exp $
d484 1
a484 1
		$(TCLVERSION)$(TCLPATCHL)]} { return }";\
@


1.73
log
@        [Tk Bug 1712081]

        * unix/Makefile.in:     Updates to account for new and deleted files
        * win/Makefile.in:      tkStubImg.c and tkOldTest.c.
        * win/makefile.bc:
        * win/makefile.vc:

        * generic/tkOldTest.c (new):    New file used to create testing
        * generic/tkTest.c:             commands for testing various Tk
        * tests/constraints.tcl:        legacy interfaces where a separate
        * tests/image.test:             compilation unit is needed in order
        to #define suitable macros during compilation.  Only the effect of
        USE_OLD_IMAGE on Tk_CreateImageType() is currently tested, but more
        similar testing commands can be added to this same file.  New
        constraint defined to detect presence of the image type provided by
        the new testing code, and a few tests added to exercise it.  Having
        USE_OLD_IMAGE support tested by the default test suite should reduce
        chance of a recurrence of this bug.

        * doc/CrtImgType.3:     Revised docs to better indicate the legacy
        * doc/CrtPhImgFmt.3:    nature of the interfaces supported by
        USE_OLD_IMAGE.

        * generic/tkDecls.h:    make genstubs
        * generic/tkStubInit.c:

        * generic/tk.decls:             Reworked USE_OLD_IMAGE support to use
        * generic/tk.h:                 the same support mechanisms both with
        * generic/tkStubImg.c (deleted):and without a stub-enabled build.  In
        each case, route the legacy calls to Tk_CreateImageType and
        Tk_CreatePhotoImageFormat through the Tk_CreateOldImageType and
        Tk_CreateOldPhotoImageFormat routines.  Add those routines to the
        public stub table so they're available to a stub-enabled extension.
        Remove the definition of Tk_InitImageArgs() and use a macro to
        convert any calls to it in source code into a comment.

        * generic/tkImage.c:    Removed the MODULE_SCOPE declarations that
        * generic/tkImgPhoto.c: broke USE_OLD_IMAGE support.
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.72 2007/05/05 07:42:58 dkf Exp $
d12 1
d483 3
a485 4
	echo "if {![package vsatisfies [package provide Tcl] $(TCLVERSION)]} { return }";\
	echo "if {[package vcompare [package provide Tcl]\
		$(TCLVERSION)$(TCLPATCHL)] != 0} { return }";\
	echo "package ifneeded Tk $(VERSION)$(TCLPATCHL)\
@


1.73.2.1
log
@merge updates from HEAD
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.73 2007/05/14 20:58:28 dgp Exp $
a11 1
PATCH_LEVEL		= @@TK_PATCH_LEVEL@@
d482 4
a485 3
	echo "if {[catch {package present Tcl\
		$(TCLVERSION)$(TCLPATCHL)]} { return }";\
	echo "package ifneeded Tk $(VERSION)$(PATCH_LEVEL)\
@


1.73.2.2
log
@merge updates from HEAD
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.73.2.1 2007/09/11 18:32:36 dgp Exp $
d484 1
a484 1
		$(TCLVERSION)$(TCLPATCHL)}]} { return }";\
@


1.73.2.3
log
@merge updates from HEAD
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.73.2.2 2007/09/14 16:30:30 dgp Exp $
a656 5
# Extra dependency info
tkConsole.$(OBJEXT): configure Makefile
tkMain.$(OBJEXT): configure Makefile
tkWindow.$(OBJEXT): configure Makefile

@


1.73.2.4
log
@merge updates from HEAD
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.73.2.3 2007/11/01 16:37:25 dgp Exp $
d388 2
a389 1
	ttkStubInit.$(OBJEXT)
d392 1
a392 1
	tkStubLib.$(OBJEXT) ttkStubLib.$(OBJEXT)
@


1.72
log
@Make the tktest build work when Tcl is located in a path with a space in
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.71 2006/12/13 20:38:29 hobbs Exp $
d239 1
d391 1
a391 2
	tkStubLib.$(OBJEXT) \
	tkStubImg.$(OBJEXT)
d648 3
@


1.71
log
@	* win/Makefile.in, unix/Makefile.in (demo): add 'demo' target
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.70 2006/10/31 01:42:27 hobbs Exp $
d615 1
a615 1
	$(CC) -c $(CC_SWITCHES) @@DEPARG@@ $(CC_OBJNAME)
@


1.70
log
@	* doc/ttk_Geometry.3, doc/ttk_Theme.3, doc/ttk_button.n:
	* doc/ttk_checkbutton.n, doc/ttk_combobox.n, doc/ttk_dialog.n:
	* doc/ttk_entry.n, doc/ttk_frame.n, doc/ttk_image.n:
	* doc/ttk_intro.n, doc/ttk_label.n, doc/ttk_labelframe.n:
	* doc/ttk_menubutton.n, doc/ttk_notebook.n, doc/ttk_panedwindow.n:
	* doc/ttk_progressbar.n, doc/ttk_radiobutton.n, doc/ttk_scrollbar.n:
	* doc/ttk_separator.n, doc/ttk_sizegrip.n, doc/ttk_style.n:
	* doc/ttk_treeview.n, doc/ttk_widget.n,:
	* generic/ttk/ttk.decls, generic/ttk/ttkBlink.c:
	* generic/ttk/ttkButton.c, generic/ttk/ttkCache.c:
	* generic/ttk/ttkClamTheme.c, generic/ttk/ttkClassicTheme.c:
	* generic/ttk/ttkDecls.h, generic/ttk/ttkDefaultTheme.c:
	* generic/ttk/ttkElements.c, generic/ttk/ttkEntry.c:
	* generic/ttk/ttkFrame.c, generic/ttk/ttkImage.c:
	* generic/ttk/ttkInit.c, generic/ttk/ttkLabel.c:
	* generic/ttk/ttkLayout.c, generic/ttk/ttkManager.c:
	* generic/ttk/ttkManager.h, generic/ttk/ttkNotebook.c:
	* generic/ttk/ttkPanedwindow.c, generic/ttk/ttkProgress.c:
	* generic/ttk/ttkScale.c, generic/ttk/ttkScroll.c:
	* generic/ttk/ttkScrollbar.c, generic/ttk/ttkSeparator.c:
	* generic/ttk/ttkSquare.c, generic/ttk/ttkState.c:
	* generic/ttk/ttkStubInit.c, generic/ttk/ttkStubLib.c:
	* generic/ttk/ttkTagSet.c, generic/ttk/ttkTheme.c:
	* generic/ttk/ttkTheme.h, generic/ttk/ttkThemeInt.h:
	* generic/ttk/ttkTrace.c, generic/ttk/ttkTrack.c:
	* generic/ttk/ttkTreeview.c, generic/ttk/ttkWidget.c:
	* generic/ttk/ttkWidget.h:
	* library/demos/ttk_demo.tcl, library/demos/ttk_iconlib.tcl:
	* library/demos/ttk_repeater.tcl:
	* library/ttk/altTheme.tcl, library/ttk/aquaTheme.tcl:
	* library/ttk/button.tcl, library/ttk/clamTheme.tcl:
	* library/ttk/classicTheme.tcl, library/ttk/combobox.tcl:
	* library/ttk/cursors.tcl, library/ttk/defaults.tcl:
	* library/ttk/dialog.tcl, library/ttk/entry.tcl:
	* library/ttk/fonts.tcl, library/ttk/icons.tcl:
	* library/ttk/keynav.tcl, library/ttk/menubutton.tcl:
	* library/ttk/notebook.tcl, library/ttk/panedwindow.tcl:
	* library/ttk/progress.tcl, library/ttk/scale.tcl:
	* library/ttk/scrollbar.tcl, library/ttk/sizegrip.tcl:
	* library/ttk/treeview.tcl, library/ttk/ttk.tcl:
	* library/ttk/utils.tcl, library/ttk/winTheme.tcl:
	* library/ttk/xpTheme.tcl:
	* macosx/ttkMacOSXTheme.c:
	* tests/ttk/all.tcl, tests/ttk/bwidget.test, tests/ttk/combobox.test:
	* tests/ttk/entry.test, tests/ttk/image.test:
	* tests/ttk/labelframe.test, tests/ttk/layout.test:
	* tests/ttk/misc.test, tests/ttk/notebook.test:
	* tests/ttk/panedwindow.test, tests/ttk/progressbar.test:
	* tests/ttk/scrollbar.test, tests/ttk/treetags.test:
	* tests/ttk/treeview.test, tests/ttk/ttk.test, tests/ttk/validate.test:
	* win/ttkWinMonitor.c, win/ttkWinTheme.c, win/ttkWinXPTheme.c:
	First import of Ttk themed Tk widgets as branched from tile 0.7.8

	* generic/tkInt.h, generic/tkWindow.c: add Ttk_Init call, copy
	tk classic widgets to ::tk namespace.
	* library/tk.tcl: add source of ttk/ttk.tcl, define $::ttk::library.
	* unix/Makefile.in, win/Makefile.in: add Ttk build bits
	* win/configure, win/configure.in: check for uxtheme.h (XP theme).
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.69 2006/09/27 18:43:35 andreas_kupries Exp $
d449 3
@


1.69
log
@
	* unix/Makefile.in (install-binaries): Added a second guard to the
	* win/Makefile.in: package index file to prevent older versions of
	* win/makefile.vc: Tcl from seeing version numbers which may
	  contain a/b information, and then balking on them. This could
	  otherwise happen when Tcl/Tk 8.4 and 8.5 are installed in the
	  same directory, seeing each other. [SF Tk Bug 1566418].
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.68 2006/09/22 19:02:08 andreas_kupries Exp $
d116 1
d153 1
a153 1
VPATH = $(GENERIC_DIR):$(WIN_DIR):$(UNIX_DIR):$(XLIB_DIR):$(RC_DIR)
d350 38
a387 1
	tkWindow.$(OBJEXT)
d399 5
d431 9
a439 6
test: binaries $(TKTEST)
	@@TCL_LIBRARY="$(TCL_SRC_DIR_NATIVE)/library"; export TCL_LIBRARY; \
	TK_LIBRARY="$(ROOT_DIR_NATIVE)/library"; export TK_LIBRARY; \
	PATH="$(TCL_BIN_DIR):$(PATH)"; export PATH; \
	./$(TKTEST) "$(ROOT_DIR_NATIVE)/tests/all.tcl" $(TESTFLAGS) \
	| ./$(CAT32)
d442 1
a442 4
	@@TCL_LIBRARY="$(TCL_SRC_DIR_NATIVE)/library"; export TCL_LIBRARY; \
	TK_LIBRARY="$(ROOT_DIR_NATIVE)/library"; export TK_LIBRARY; \
	PATH="$(TCL_BIN_DIR):$(PATH)"; export PATH; \
	./$(TKTEST) $(TESTFLAGS) $(SCRIPT)
d447 1
a447 4
	@@TCL_LIBRARY="$(TCL_SRC_DIR_NATIVE)/library"; export TCL_LIBRARY; \
	TK_LIBRARY="$(ROOT_DIR_NATIVE)/library"; export TK_LIBRARY; \
	PATH="$(TCL_BIN_DIR):$(PATH)"; export PATH; \
	./$(WISH) $(SCRIPT)
d497 1
a497 1
		$(SCRIPT_INSTALL_DIR)/msgs; \
d522 7
d661 1
a661 1
	$(CC) -c $(STUB_CC_SWITCHES) -DBUILD_tk @@DEPARG@@ $(CC_OBJNAME)
@


1.68
log
@
	* generic/tkConsole.c: TIP #268 update regarding registered package
	* generic/tkMain.c:    version, now using full patchlevel instead of
	* generic/tkWindow.c:  major.minor
	* library/tk.tcl:
	* unix/configure:
	* unix/Makefile.in:
	* unix/tcl.m4:
	* win/configure:
	* win/Makefile.in:
	* win/makefile.vc:
	* win/rules.vc:
	* win/tcl.m4:
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.67 2006/03/29 23:05:30 hobbs Exp $
d439 1
@


1.67
log
@	* win/Makefile.in: convert _NATIVE paths to use / to avoid ".\"
	path-as-escape issue.
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.66 2005/12/09 00:48:54 das Exp $
d10 1
d440 2
a441 2
		$(TCLVERSION)] != 0} { return }";\
	echo "package ifneeded Tk $(VERSION)\
@


1.66
log
@	* generic/tkInt.decls:   move all platform test sources from tk lib into
	* generic/tkTest.c:      tktest directly, removes requirement to export
	* macosx/tkMacOSXTest.c: TkplatformtestInit from internal stubs table.
	* unix/Makefile.in:
	* win/Makefile.in:
	* win/makefile.vc:
	* win/tkWinTest.c:

	* generic/tkIntPlatDecls.h:
	* generic/tkStubInit.c: regen.
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.65 2005/12/08 20:25:42 hobbs Exp $
d119 9
a127 9
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_PLATFORM_NATIVE	= $(shell $(CYGPATH) '$(TCL_PLATFORM_DIR)')
TCL_SRC_DIR_NATIVE      = $(shell $(CYGPATH) '$(TCL_SRC_DIR)')
RC_DIR_NATIVE      	= $(shell $(CYGPATH) '$(RC_DIR)')
@


1.65
log
@	* win/tcl.m4:       Add build support for Windows-x64 builds.
	* win/configure:    --enable-64bit now accepts =amd64|ia64 for
	* win/Makefile.in:  Windows 64-bit build variants (default: amd64)
	* win/makefile.vc:  [Bug 1369597]
	* win/configure.in: Add CE build support (some C code fixes needed)
	* win/wish.exe.manifest.in (new):     manifest must map in MACHINE
	* win/rc/wish.exe.manifest (removed): and VERSION to be correct.
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.64 2005/12/01 02:03:58 hobbs Exp $
d236 2
a237 1
	tkTest.$(OBJEXT)
a271 1
	tkWinTest.$(OBJEXT) \
d596 3
@


1.64
log
@	* win/Makefile.in: place TCL_BIN_DIR first in PATH for targets to
	get Tcl built dll first.
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.63 2005/08/23 18:25:34 mdejong Exp $
d566 1
a566 1
	$(CC) $(CFLAGS) cat32.$(OBJEXT) $(CC_EXENAME) $(LDFLAGS_CONSOLE)
d625 2
a626 1
	$(RM) Makefile config.status config.cache config.log tkConfig.sh
@


1.63
log
@	* unix/Makefile.in: Subst BUILD_TCLSH and TCL_EXE.
	* unix/configure: Regen.
	* unix/configure.in: Update minimum autoconf version
	to 2.59. Invoke SC_PROG_TCLSH and SC_BUILD_TCLSH.
	* unix/tcl.m4 (SC_PROG_TCLSH, SC_BUILD_TCLSH):
	* win/Makefile.in: Subst BUILD_TCLSH and TCL_EXE.
	* win/configure: Regen.
	* win/configure.in: Update minimum autoconf version
	to 2.59. Invoke SC_BUILD_TCLSH.
	* win/tcl.m4 (SC_PROG_TCLSH, SC_BUILD_TCLSH):
	Split confused search for tclsh on PATH and
	build and install locations into two macros.
	SC_PROG_TCLSH searches just the PATH.
	SC_BUILD_TCLSH determines the name of the tclsh
	executable in the Tcl build directory.
	[Tcl bug 1160114]
	[Tcl patch 1244153]
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.62 2004/07/20 10:23:51 das Exp $
d236 1
a236 2
	tkTest.$(OBJEXT) \
	tkWinTest.$(OBJEXT)
d271 1
d390 1
a390 1
	PATH="$(PATH):$(TCL_BIN_DIR)"; export PATH; \
d397 1
a397 1
	PATH="$(PATH):$(TCL_BIN_DIR)"; export PATH; \
d405 1
a405 1
	PATH="$(PATH):$(TCL_BIN_DIR)"; export PATH; \
d412 1
a412 1
	PATH="$(PATH):$(TCL_BIN_DIR)"; export PATH; \
a595 3
tkWinTest.$(OBJEXT): tkWinTest.c
	$(CC) -c $(CC_SWITCHES) @@DEPARG@@ $(CC_OBJNAME)

@


1.62
log
@	* unix/Makefile.in:
	* win/Makefile.in: added 'install-private-headers' makefile target
	to allow optionally installing private tk headers. [Tcl FR 922727]
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.61 2004/04/24 06:00:20 das Exp $
d201 1
a201 1
TCLSH_PROG	= @@TCLSH_PROG@@
d208 1
a208 1
TCL_EXE			= tclsh
d375 1
a375 4
	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)
@


1.61
log
@	* generic/tkPort.h:
	* unix/Makefile.in:
	* win/Makefile.in: followup on tcl header reform [FR 922727]:
	removed use of relative #include paths in tkPort.h to allow
	installation of private headers outside of tk source tree; added
	tcl plaform source dir to compiler header search path.
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.60 2003/10/08 21:49:56 patthoyts Exp $
d59 3
d532 18
@


1.60
log
@	* win/tcl.m4:         Add TIP #150 items to the TEA makefiles.
	* win/configure:
	* win/Makefile.in:

	* win/tkWinSend.c:    Clean up some warnings from gcc -Wall.
	* win/tkWinSendCom.c:
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.59 2003/01/13 07:30:58 mdejong Exp $
d92 7
a98 2
TCL_GENERIC_DIR	= @@TCL_SRC_DIR@@/generic
TCL_TOOL_DIR = @@TCL_SRC_DIR@@/tools
d122 1
d210 1
a210 1
 -I"${TCL_GENERIC_NATIVE}" ${AC_FLAGS}
d597 1
a597 1
	$(RC) @@RC_OUT@@ $@@ @@RC_TYPE@@ @@RC_DEFINES@@ @@RC_INCLUDE@@ "$(GENERIC_DIR_NATIVE)" @@RC_INCLUDE@@ "$(TCL_GENERIC_NATIVE)" @@RC_INCLUDE@@ "$(RC_DIR_NATIVE)" @@DEPARG@@
@


1.59
log
@	* win/Makefile.in: Add TCL_DEFS to AC_FLAGS
	so that compiler flags defined by Tcl get
	passed to the compiler. Add empty rule
	for cat.c so that Tk compiles under msys.
	* win/configure: Regen.
	* win/tcl.m4: Update from Tcl, this pulls
	in a subst of TCL_DEFS, it also defines
	USE_THREAD_ALLOC when threads are used
	and it updates the SC_ENABLE_SYMBOLS
	and SC_PROG_TCLSH macros to match the
	ones used in Tcl.
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.58 2002/09/04 17:44:55 andreas_kupries Exp $
d262 1
@


1.59.2.1
log
@	* unix/Makefile.in: Subst TCLSH_PROG and
	BUILD_TCLSH into Makefile. Rework html
	target so that it depends on the tclsh
	installed on the system PATH.
	* unix/configure: Regen.
	* unix/configure.in: Invoke SC_PROG_TCLSH
	and SC_BUILD_TCLSH and subst into Makefile.
	* unix/tcl.m4: Update from Tcl.
	* win/Makefile.in: Subst TCLSH_PROG and
	BUILD_TCLSH into Makefile. Rework winhelp
	target so that it depends on the tclsh
	installed on the system PATH.
	* win/configure: Regen.
	* win/configure.in: Invoke SC_BUILD_TCLSH
	and subst into Makefile.
	* win/tcl.m4: Update from Tcl.
	[Tcl patch 1244153]
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.59 2003/01/13 07:30:58 mdejong Exp $
d192 1
a192 1
BUILD_TCLSH	= @@BUILD_TCLSH@@
d199 1
a199 1
TCL_EXE			= @@TCLSH_PROG@@
d365 4
a368 1
	$(TCL_EXE) "$(TCL_SRC_DIR_NATIVE)/tools/man2help.tcl" tcl "$(VER)" $(CORE_DOCS)
@


1.59.2.2
log
@	* win/tcl.m4:      Add build support for Windows-x64 builds.
	* win/configure:   --enable-64bit now accepts =amd64|ia64 for
	* win/Makefile.in: Windows 64-bit build variants (default: amd64)
	* win/makefile.vc: [Bug 1369597]
	* win/configure.in:
	* win/wish.exe.manifest.in (new):     manifest must map in MACHINE
	* win/rc/wish.exe.manifest (removed): and VERSION to be correct.
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.59.2.1 2005/07/25 01:33:54 mdejong Exp $
d538 1
a538 1
	$(CC) $(CFLAGS) cat32.$(OBJEXT) $(CC_EXENAME) $(LIBS) $(LDFLAGS_CONSOLE)
d600 1
a600 2
	$(RM) Makefile config.status config.cache config.log tkConfig.sh \
		wish.exe.manifest
@


1.59.2.3
log
@	* win/Makefile.in: place TCL_BIN_DIR first in PATH for targets to
	get Tcl built dll first.
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.59.2.2 2005/11/30 00:19:01 hobbs Exp $
d380 1
a380 1
	PATH="$(TCL_BIN_DIR):$(PATH)"; export PATH; \
d387 1
a387 1
	PATH="$(TCL_BIN_DIR):$(PATH)"; export PATH; \
d395 1
a395 1
	PATH="$(TCL_BIN_DIR):$(PATH)"; export PATH; \
d402 1
a402 1
	PATH="$(TCL_BIN_DIR):$(PATH)"; export PATH; \
@


1.59.2.4
log
@	* win/Makefile.in: convert _NATIVE paths to use / to avoid ".\"
	path-as-escape issue.
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.59.2.3 2005/12/01 02:13:33 hobbs Exp $
d92 2
a93 2
TCL_GENERIC_DIR		= @@TCL_SRC_DIR@@/generic
TCL_TOOL_DIR		= @@TCL_SRC_DIR@@/tools
d111 8
a118 8
ROOT_DIR_NATIVE	   	= $(shell $(CYGPATH) '$(ROOT_DIR)' | sed 's!\\!/!g')
WIN_DIR_NATIVE	   	= $(shell $(CYGPATH) '$(WIN_DIR)' | sed 's!\\!/!g')
GENERIC_DIR_NATIVE 	= $(shell $(CYGPATH) '$(GENERIC_DIR)' | sed 's!\\!/!g')
BITMAP_DIR_NATIVE	= $(ROOT_DIR_NATIVE)/bitmaps
XLIB_DIR_NATIVE		= $(ROOT_DIR_NATIVE)/xlib
RC_DIR_NATIVE      	= $(WIN_DIR_NATIVE)/rc
TCL_GENERIC_NATIVE	= $(shell $(CYGPATH) '$(TCL_GENERIC_DIR)' | sed 's!\\!/!g')
TCL_SRC_DIR_NATIVE      = $(shell $(CYGPATH) '$(TCL_SRC_DIR)' | sed 's!\\!/!g')
@


1.59.2.5
log
@
	* generic/tkConsole.c: TIP #268 update regarding registered package
	* generic/tkMain.c:    version, now using full patchlevel instead of
	* generic/tkWindow.c:  major.minor
	* library/tk.tcl:
	* unix/configure:
	* unix/Makefile.in:
	* unix/tcl.m4:
	* win/configure:
	* win/Makefile.in:
	* win/makefile.vc:
	* win/rules.vc:
	* win/tcl.m4:
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.59.2.4 2006/03/02 21:07:30 hobbs Exp $
a9 1
TCLPATCHL		= @@TCL_PATCH_LEVEL@@
d429 2
a430 2
		$(TCLVERSION)$(TCLPATCHL)] != 0} { return }";\
	echo "package ifneeded Tk $(VERSION)$(TCLPATCHL)\
@


1.59.2.6
log
@
	* generic/tkConsole.c: Complete reversal of the changes of Sep 22.
	* generic/tkMain.c:    For compat reason the Tcl core will not change
	* generic/tkWindow.c:  the registered version to include the patchlevel,
	* library/tk.tcl:      making the changes to Tk unnecessary.
	* unix/configure:
	* unix/Makefile.in:
	* unix/tcl.m4:
	* win/configure:
	* win/Makefile.in:
	* win/makefile.vc:
	* win/rules.vc:
	* win/tcl.m4:
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.59.2.5 2006/09/22 19:01:52 andreas_kupries Exp $
d430 2
a431 2
		$(TCLVERSION)] != 0} { return }";\
	echo "package ifneeded Tk $(VERSION)\
@


1.59.2.7
log
@	* win/Makefile.in (install-private-headers): added target
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.59.2.6 2006/09/25 17:28:21 andreas_kupries Exp $
a59 3
# Directory in which to (optionally) install the private tk headers:
PRIVATE_INCLUDE_INSTALL_DIR = $(INSTALL_ROOT)$(includedir)

a519 19
# Optional target to install private headers
install-private-headers: libraries
	@@for i in $(PRIVATE_INCLUDE_INSTALL_DIR); \
	    do \
	    if [ ! -d $$i ] ; then \
		echo "Making directory $$i"; \
		$(MKDIR) $$i; \
		chmod 755 $$i; \
		else true; \
		fi; \
	    done;
	@@echo "Installing private header files to $(PRIVATE_INCLUDE_INSTALL_DIR)/";
	@@for i in $(GENERIC_DIR)/tkInt.h $(GENERIC_DIR)/tkIntDecls.h \
		$(GENERIC_DIR)/tkIntPlatDecls.h $(GENERIC_DIR)/tkPort.h \
		$(WIN_DIR)/tkWinPort.h $(WIN_DIR)/tkWinInt.h \
		$(WIN_DIR)/tkWin.h; \
	    do \
	    $(INSTALL_DATA) $$i $(PRIVATE_INCLUDE_INSTALL_DIR); \
	    done;
@


1.58
log
@
	* win/Makefile.in (install-libraries): Added code section to
	  install the message catalogs. Copied same section from
	  unix/Makefile.in and adapted it to the slightly different
	  environment.
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.57 2002/08/26 14:32:18 dgp Exp $
d171 1
a171 1
AC_FLAGS	= @@EXTRA_CFLAGS@@ @@DEFS@@
d533 3
@


1.57
log
@        * win/Makefile.in:      Removed dependence on the (parts of) the
        * win/winMain.c:        tcltest executable on Windows.  It was not
        used, and the dependency complicated the Makefile.  [Bug 592638].
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.56 2002/08/16 07:52:24 hobbs Exp $
d447 2
a448 1
		$(SCRIPT_INSTALL_DIR) $(SCRIPT_INSTALL_DIR)/images; \
d478 7
@


1.56
log
@	* unix/Makefile.in (install-binaries): simplified pkgIndex.tcl
	file created on installation.
	* win/Makefile.in (install-binaries): corrected and simplified
	creation of pkgIndex.tcl file on installation.
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.55 2002/07/16 23:17:09 mdejong Exp $
a117 1
TCL_BIN_DIR_NATIVE      = $(shell $(CYGPATH) '$(TCL_BIN_DIR)')
a131 1
TCLTEST			= $(TCL_BIN_DIR)/tcltest${EXEEXT}
a223 6
TCLTEST_OBJS = \
	${TCL_BIN_DIR}/tclThreadTest.$(OBJEXT)

TCLTEST_OBJS_NATIVE = \
	"${TCL_BIN_DIR_NATIVE}/tclThreadTest.$(OBJEXT)"

a224 8
	$(TCLTEST_OBJS) \
	testMain.$(OBJEXT) \
	tkSquare.$(OBJEXT) \
	tkTest.$(OBJEXT) \
	tkWinTest.$(OBJEXT)

TKTEST_OBJS_NATIVE = \
	$(TCLTEST_OBJS_NATIVE) \
d521 2
a522 8
# This rule is executed if the user tried to run tktest without first
# building tcltest in the Tcl bin directory. Just do it for them.
$(TCLTEST):
	cd ${TCL_BIN_DIR} ; \
	$(MAKE) tcltest

$(TKTEST): $(TCLTEST) $(TK_LIB_FILE) $(TKTEST_OBJS) wish.$(RES) $(CAT32)
	$(CC) $(CFLAGS) $(TKTEST_OBJS_NATIVE) $(TCL_LIB_FILE) \
a564 2

tclThreadTest.$(OBJEXT): $(TCL_BIN_DIR)/tclThreadTest.$(OBJEXT)
@


1.55
log
@	* unix/Makefile.in:
	* win/Makefile.in: Add a more descriptive warning
	in the event `make genstubs` needs to be rerun.
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.54 2002/06/27 20:09:55 andreas_kupries Exp $
d77 1
a77 1
PKG_INSTALL_DIR                = $(LIB_INSTALL_DIR)/tk$(VERSION)$(TK_DBGX)
d80 1
a80 1
PKG_INDEX              = $(PKG_INSTALL_DIR)/pkgIndex.tcl
d446 6
a451 6
	@@echo "if {[package vcompare \\" > $(PKG_INDEX);
	@@echo "    [package provide Tcl] \\" >> $(PKG_INDEX);
	@@echo "    $(TCLVERSION)] != 0} {return}" >> $(PKG_INDEX);
	@@echo "package ifneeded Tk $(VERSION) \\" >> $(PKG_INDEX);
	@@echo "    [list load [file join \$$dir .. \\" >> $(PKG_INDEX);
	@@echo "    $(TK_DLL_FILE)] Tk]" >> $(PKG_INDEX);
@


1.54
log
@
	* win/Makefile.in (install-binaries): Fix of troubled Makefile
	  quoting introduced by [Patch 521356] causing the installed to
	  fail.
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.53 2002/06/26 02:38:26 dgp Exp $
d627 3
a629 1
	@@echo "Warning: run \"make genstubs\" to regenerate tkStubInit.c"
@


1.53
log
@	* Expanded install-binaries target to create and install a
	pkgIndex.tcl file to enable Tk as a loadable package [Patch 521356]
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.52 2002/06/21 23:09:54 hobbs Exp $
d446 6
a451 6
	@@echo "if {[package vcompare \\" > $(PKG_INDEX); \
	@@echo "    [package provide Tcl] \\" >> $(PKG_INDEX); \
	@@echo "    $(TCLVERSION)] != 0} {return}" >> $(PKG_INDEX); \
	@@echo "package ifneeded Tk $(VERSION) \\" >> $(PKG_INDEX); \
	@@echo "    [list load [file join \$$dir .. \\" >> $(PKG_INDEX); \
	@@echo "    $(TK_DLL_FILE)] Tk]" >> $(PKG_INDEX); \
@


1.52
log
@	* doc/text.n:          TIP #104 implementation which generalizes the
	* generic/tkText.c:    undo/redo stack to not be tied solely to the
	* generic/tkText.h:    text widget.  The APIs are still private.
	* generic/tkUndo.c:    This also adds a stack limiting ability and
	* generic/tkUndo.h:    a -maxundo option to the text widget (in
	* library/text.tcl:    addition to the options from TIP #26) should
	* mac/tkMacDefault.h:  users want to limit the undo/redo stack
	* tests/text.test:     (should not be necessary in most cases).
	* unix/Makefile.in:    [Patch #554763] (callewart)
	* unix/tkUnixDefault.h:
	* win/Makefile.in:
	* win/makefile.vc:
	* win/tkWinDefault.h:
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.51 2002/06/18 23:51:46 dkf Exp $
d76 6
d423 1
a423 1
	rm gdb.run
d428 1
a428 1
	@@for i in $(LIB_INSTALL_DIR) $(BIN_INSTALL_DIR) ; \
d444 8
@


1.51
log
@Added TIP#48 style engine implementation
Frederic Bonnet to supply docs+tests as soon as possible.
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.50 2002/04/23 00:20:08 hobbs Exp $
d343 1
@


1.50
log
@corrected runtest target dependencies
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.49 2002/04/05 08:41:59 hobbs Exp $
d333 1
@


1.49
log
@	* win/Makefile.in: changed gdb and shell targets to properly build
	all binaries before running (otherwise an error often occured).
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.48 2002/02/22 02:41:17 hobbs Exp $
d395 1
a395 1
runtest: $(TKTEST)
d399 1
a399 1
	./$(TKTEST) 
@


1.48
log
@TIP #41 implementation, panedwindow [Patch #512503] (melski)
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.47 2001/12/19 07:45:52 mdejong Exp $
d403 1
a403 1
shell: $(WISH)
d410 1
a410 1
gdb: $(WISH)
@


1.47
log
@	* unix/Makefile.in:
	* win/Makefile.in: Use $(MAKE) instead of make
	in the tcltest rule.
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.46 2001/11/25 06:43:44 mdejong Exp $
d322 1
@


1.46
log
@	* unix/Makefile.in: Add comments to better describe
	TCL_EXE and when it should be available. Add
	rule that prints message about running `make genstubs`
	when tkStubInit.c is out of date.
	* win/Makefile.in: Add TCL_TOOL_DIR and TCL_EXE
	variables to better match the Tcl Makefile. Add
	genstubs rule so tkSTubInit.c can be regenerated.
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.45 2001/11/11 03:21:24 mdejong Exp $
d524 1
a524 1
	make tcltest
@


1.45
log
@	* unix/Makefile.in:
	* win/Makefile.in: Add "make gdb" target. This target
	can run wish inside either gdb or insight.
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.44 2001/09/10 03:23:54 mdejong Exp $
d87 1
d190 7
d603 14
@


1.44
log
@	* win/Makefile.in: Fix Windows Makefile so that
	tcltest will automatically be compiled if the
	user tries to build tktest.
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.43 2001/09/10 00:40:54 mdejong Exp $
d399 8
@


1.44.2.1
log
@Merge with current TOT
Added support for the wm stackorder command
Fixed crash when selecting Menu items in the Application menu that we didn't
put there.
Added first bits of the use of CG for low-level drawing.  The line-drawing works,
the rest doesn't yet.  You have to set the file static useCGDrawing to 1 and
rebuild to activate this code.
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.44 2001/09/10 03:23:54 mdejong Exp $
a86 1
TCL_TOOL_DIR = @@TCL_SRC_DIR@@/tools
a188 7
# TCL_EXE is the name of a tclsh executable that is available *BEFORE*
# running make for the first time. Certain build targets (make genstubs)
# need it to be available on the PATH. This executable should *NOT* be
# required just to do a normal build although it can be required to run
# make dist.
TCL_EXE			= tclsh

a399 8
# This target can be used to run wish inside either gdb or insight
gdb: $(WISH)
	@@echo "set env TCL_LIBRARY=$(TCL_SRC_DIR_NATIVE)/library" > gdb.run
	@@echo "set env TK_LIBRARY=$(ROOT_DIR_NATIVE)/library" >> gdb.run
	PATH="$(PATH):$(TCL_BIN_DIR)"; export PATH; \
	gdb ./$(WISH) --command=gdb.run
	rm gdb.run

d508 1
a508 1
	$(MAKE) tcltest
a586 14

#
# Regenerate the stubs files.
#

$(GENERIC_DIR)/tkStubInit.c: $(GENERIC_DIR)/tk.decls \
		$(GENERIC_DIR)/tkInt.decls
	@@echo "Warning: run \"make genstubs\" to regenerate tkStubInit.c"

genstubs:
	$(TCL_EXE) "$(TCL_TOOL_DIR}\genStubs.tcl" \
	    "$(GENERIC_DIR_NATIVE)" \
	    "$(GENERIC_DIR_NATIVE)\tk.decls" \
            "$(GENERIC_DIR_NATIVE)\tkInt.decls"
@


1.44.2.2
log
@Merging with TOT as of 06/09/2002.
@
text
@d7 1
a7 1
# RCS: @@(#) $Id$
a321 1
	tkPanedWindow.$(OBJEXT) \
d394 1
a394 1
runtest: binaries $(TKTEST)
d398 1
a398 1
	./$(TKTEST) $(TESTFLAGS) $(SCRIPT)
d402 1
a402 1
shell: binaries
d409 1
a409 1
gdb: binaries
@


1.44.2.3
log
@merged with trunk at tag macosx-8-4-merge-2002-08-20-trunk
@
text
@a75 6
# Directory in which to install the pkgIndex.tcl file for loadable Tk
PKG_INSTALL_DIR		= $(LIB_INSTALL_DIR)/tk$(VERSION)$(TK_DBGX)

# Package index file for loadable Tk
PKG_INDEX		= $(PKG_INSTALL_DIR)/pkgIndex.tcl

a332 1
	tkStyle.$(OBJEXT) \
a341 1
	tkUndo.$(OBJEXT) \
d415 1
a415 1
	@@$(RM) gdb.run
d420 1
a420 1
	@@for i in $(LIB_INSTALL_DIR) $(BIN_INSTALL_DIR) $(PKG_INSTALL_DIR); \
a435 8
	@@echo "Creating package index $(PKG_INDEX)"; 
	@@$(RM) $(PKG_INDEX);
	@@(\
	echo "if {[package vcompare [package provide Tcl]\
		$(TCLVERSION)] != 0} { return }";\
	echo "package ifneeded Tk $(VERSION)\
		[list load [file join \$$dir .. .. bin $(TK_DLL_FILE)] Tk]";\
	) > $(PKG_INDEX);
d611 1
a611 3
	@@echo "Warning: tkStubInit.c may be out of date."
	@@echo "Developers may want to run \"make genstubs\" to regenerate."
	@@echo "This warning can be safely ignored, do not report as a bug!"
@


1.44.2.4
log
@merged with trunk at tag macosx-8-4-merge-2002-08-30-trunk
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.44.2.3 2002/08/20 20:27:18 das Exp $
d118 1
d133 1
d226 6
d233 8
d537 8
a544 2
$(TKTEST): $(TK_LIB_FILE) $(TKTEST_OBJS) wish.$(RES) $(CAT32)
	$(CC) $(CFLAGS) $(TKTEST_OBJS) $(TCL_LIB_FILE) \
d587 2
@


1.43
log
@	* win/Makefile.in: Use TKTEST variable directly
	instead of depending on the tktest alias.
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.42 2001/08/04 00:29:56 hobbs Exp $
d126 1
d504 7
a510 1
$(TKTEST): $(TK_LIB_FILE) $(TKTEST_OBJS) wish.$(RES) $(CAT32)
@


1.42
log
@	* win/configure: regenerated
	* win/tcl.m4: fixed DLLSUFFIX definition to always be ${DBGX}.dll.
	This is necessary for TEA compliant builds that build shared
	against a static-built Tk.
	* win/Makefile.in ($(WISH)): added $(TK_STUB_LIB_FILE) to build
	target, otherwise it wouldn't get generated in a static build.
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.41 2001/07/06 02:25:02 mdejong Exp $
d385 1
a385 1
runtest: tktest
@


1.41
log
@	* win/Makefile.in: Subst DEPARG directly instead
	of relying on a variable. This will make Cygwin
	build faster since an extra exec will be avoided.
	* win/configure: Regen.
	* win/configure.in: Subst DEPARG.
	* win/tcl.m4: Update from Tcl.
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.40 2001/07/04 00:25:09 mdejong Exp $
d411 12
a422 16
	@@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 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); \
d424 1
a424 1
        fi
d438 1
a438 1
	@@echo "Installing header files";
d497 1
a497 1
$(WISH): $(TK_LIB_FILE) $(WISH_OBJS) wish.$(RES)
@


1.40
log
@	* win/Makefile.in: Remove PATHTYPE variable.
	* win/configure: Regen.
	* win/configure.in: Don't subst PATHTYPE.
	* win/tcl.m4: Update from Tcl.
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.39 2001/07/04 00:19:48 mdejong Exp $
d88 1
a88 1
# This program converts between Windows native and Cygwin POSIX pathnames.
a131 5
# Macro that expands to the first dependency argument with the appropriate
# path type already resolved.

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

d513 1
a513 1
	$(CC) -c $(CC_SWITCHES) $(DEPARG) $(CC_OBJNAME)
d538 1
a538 1
	$(CC) -c $(CC_SWITCHES) $(DEPARG) $(CC_OBJNAME)
d541 1
a541 1
	$(CC) -c $(CC_SWITCHES) $(DEPARG) -DTK_TEST $(CC_OBJNAME)
d544 1
a544 1
	$(CC) -c $(CC_SWITCHES) $(DEPARG) $(CC_OBJNAME)
d547 1
a547 1
	$(CC) -c $(CC_SWITCHES) $(DEPARG) $(CC_OBJNAME)
d550 1
a550 1
	$(CC) -c $(CC_SWITCHES) $(DEPARG) $(CC_OBJNAME)
d564 1
a564 1
	$(CC) -c $(STUB_CC_SWITCHES) -DBUILD_tk ${DEPARG} $(CC_OBJNAME)
d567 1
a567 1
	$(RC) @@RC_OUT@@ $@@ @@RC_TYPE@@ @@RC_DEFINES@@ @@RC_INCLUDE@@ "$(GENERIC_DIR_NATIVE)" @@RC_INCLUDE@@ "$(TCL_GENERIC_NATIVE)" @@RC_INCLUDE@@ "$(RC_DIR_NATIVE)" $(DEPARG)
@


1.39
log
@	* win/Makefile.in: Don't use VPSEP, instead just use :
	in the VPATH.
	* win/configure: Regen.
	* win/configure.in: Don't subst VPSEP.
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.38 2001/06/27 02:06:13 mdejong Exp $
a87 4
# This is a switch passed to a Cygwin script that generates file
# names based on the platform.
PATHTYPE		= @@PATHTYPE@@

d92 2
a93 2
TCL_LIB_FILE	  = "$(shell $(CYGPATH) $(PATHTYPE) '@@TCL_BIN_DIR@@/@@TCL_LIB_FILE@@')"
TCL_STUB_LIB_FILE = "$(shell $(CYGPATH) $(PATHTYPE) '@@TCL_BIN_DIR@@/@@TCL_STUB_LIB_FILE@@')"
d104 9
a112 9
ROOT_DIR_NATIVE	   	= $(shell $(CYGPATH) $(PATHTYPE) '$(ROOT_DIR)')
WIN_DIR_NATIVE	   	= $(shell $(CYGPATH) $(PATHTYPE) '$(WIN_DIR)')
GENERIC_DIR_NATIVE 	= $(shell $(CYGPATH) $(PATHTYPE) '$(GENERIC_DIR)')
BITMAP_DIR_NATIVE	= $(shell $(CYGPATH) $(PATHTYPE) '$(ROOT_DIR)/bitmaps')
XLIB_DIR_NATIVE		= $(shell $(CYGPATH) $(PATHTYPE) '$(ROOT_DIR)/xlib')
TCL_GENERIC_NATIVE	= $(shell $(CYGPATH) $(PATHTYPE) '$(TCL_GENERIC_DIR)')
TCL_SRC_DIR_NATIVE      = $(shell $(CYGPATH) $(PATHTYPE) '$(TCL_SRC_DIR)')
TCL_BIN_DIR_NATIVE      = $(shell $(CYGPATH) $(PATHTYPE) '$(TCL_BIN_DIR)')
RC_DIR_NATIVE      	= $(shell $(CYGPATH) $(PATHTYPE) '$(RC_DIR)')
d135 1
a135 1
DEPARG = "$(shell $(CYGPATH) $(PATHTYPE) $<)"
@


1.38
log
@	* unix/Makefile.in:
	* win/Makefile.in: Add `make shell` target. This target
	will set the proper env vars before invoking wish
	from the build directory.
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.37 2001/06/22 23:59:48 mdejong Exp $
d143 1
a143 2
# dependencies. Note the ':' to avoid autoconf's habit of deleting
# all VPATH lines without an explicit ':' in it.
d145 1
a145 1
VPATH = $(GENERIC_DIR)@@VPSEP@@$(WIN_DIR)@@VPSEP@@$(UNIX_DIR)@@VPSEP@@$(XLIB_DIR)@@VPSEP@@$(RC_DIR) # : 
@


1.37
log
@	* unix/Makefile.in: Set CFLAGS to @@CFLAGS@@ and @@CFLAGS_DEFAULT@@.
	Set LDFLAGS to @@LDFLAGS@@ and @@LDFLAGS_DEFAULT@@. Add LDFLAGS_DEBUG
	and LDFLAGS_OPTIMIZE to match the way CFLAGS_DEFAULT works. Use
	new LDFLAGS variable in the Makefile instead of @@LDFLAGS@@.
	* unix/configure: Regen.
	* unix/configure.in: Don't set CFLAGS to CFLAGS_DEFAULT, instead
	subst CFLAGS_DEFAULT into the Makefile. Add AC_SUBST for CFLAGS_DEBUG,
	CFLAGS_OPTIMIZE, LDFLAGS_DEFAULT, LDFLAGS_DEBUG, and LDFLAGS_OPTIMIZE.
	Remove unused LD_FLAGS subst.
	* unix/tcl.m4: Update from Tcl.
	* win/Makefile.in: Set CFLAGS to @@CFLAGS@@ and @@CFLAGS_DEFAULT@@.
	Set LDFLAGS to @@LDFLAGS@@ and @@LDFLAGS_DEFAULT@@.
	* win/configure: Regen.
	* win/configure.in: Don't set CFLAGS or LDFLAGS, instead subst
	CFLAGS_DEFAULT and LDFLAGS_DEFAULT into the Makefile.
	* win/tcl.m4: Update from Tcl.
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.36 2001/03/30 21:53:12 hobbs Exp $
d400 8
@


1.36
log
@	* win/Makefile.in (install-*): improved install-* targets to use
	their base build dependency.
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.35 2000/11/03 17:28:00 hobbs Exp $
d164 1
a164 1
CFLAGS		= @@CFLAGS@@
d177 1
a177 1
LDFLAGS		= @@LDFLAGS@@
@


1.35
log
@fixed remaining references to old-style TCL_SRC_DIR defn
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.34 2000/10/31 01:28:26 davidg Exp $
d403 1
a403 1
install-binaries:
d432 1
a432 1
install-libraries:
d500 1
a500 1
install-doc:
@


1.35.4.1
log
@        * Merged in updates from HEAD branch.
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.38 2001/06/27 02:06:13 mdejong Exp $
d164 1
a164 1
CFLAGS		= @@CFLAGS@@ @@CFLAGS_DEFAULT@@
d177 1
a177 1
LDFLAGS		= @@LDFLAGS@@ @@LDFLAGS_DEFAULT@@
a400 8
# This target can be used to run wish from the build directory
# via `make shell` or `make shell SCRIPT=foo.tcl`
shell: $(WISH)
	@@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; \
	./$(WISH) $(SCRIPT)

d403 1
a403 1
install-binaries: binaries
d432 1
a432 1
install-libraries: libraries
d500 1
a500 1
install-doc: doc
@


1.35.4.2
log
@	* Merge updates from HEAD.
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.35.4.1 2001/07/03 20:01:10 dgp Exp $
d88 5
a92 1
# Converts a POSIX path to a Windows native path.
d136 5
d523 1
a523 1
	$(CC) -c $(CC_SWITCHES) @@DEPARG@@ $(CC_OBJNAME)
d548 1
a548 1
	$(CC) -c $(CC_SWITCHES) @@DEPARG@@ $(CC_OBJNAME)
d551 1
a551 1
	$(CC) -c $(CC_SWITCHES) @@DEPARG@@ -DTK_TEST $(CC_OBJNAME)
d554 1
a554 1
	$(CC) -c $(CC_SWITCHES) @@DEPARG@@ $(CC_OBJNAME)
d557 1
a557 1
	$(CC) -c $(CC_SWITCHES) @@DEPARG@@ $(CC_OBJNAME)
d560 1
a560 1
	$(CC) -c $(CC_SWITCHES) @@DEPARG@@ $(CC_OBJNAME)
d574 1
a574 1
	$(CC) -c $(STUB_CC_SWITCHES) -DBUILD_tk @@DEPARG@@ $(CC_OBJNAME)
d577 1
a577 1
	$(RC) @@RC_OUT@@ $@@ @@RC_TYPE@@ @@RC_DEFINES@@ @@RC_INCLUDE@@ "$(GENERIC_DIR_NATIVE)" @@RC_INCLUDE@@ "$(TCL_GENERIC_NATIVE)" @@RC_INCLUDE@@ "$(RC_DIR_NATIVE)" @@DEPARG@@
@


1.35.4.3
log
@	* Corrections to merge from HEAD
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.41 2001/07/06 02:25:02 mdejong Exp $
d92 2
a93 2
TCL_LIB_FILE	  = "$(shell $(CYGPATH) '@@TCL_BIN_DIR@@/@@TCL_LIB_FILE@@')"
TCL_STUB_LIB_FILE = "$(shell $(CYGPATH) '@@TCL_BIN_DIR@@/@@TCL_STUB_LIB_FILE@@')"
d104 9
a112 9
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)')
d134 2
a135 1
# dependencies.
d137 1
a137 1
VPATH = $(GENERIC_DIR):$(WIN_DIR):$(UNIX_DIR):$(XLIB_DIR):$(RC_DIR)
@


1.35.2.1
log
@	* generic/tk.decls:
	* generic/tkInt.decls:
	* generic/tkIntPlatDecls.h:
	* generic/tkPlatDecls.h:
	* generic/tkStubInit.c:
	* win/Makefile.in:
	* win/makefile.vc:
	* win/tkWin3d.c:
	* win/tkWinButton.c:
	* win/tkWinColor.c:
	* win/tkWinDraw.c:
	* win/tkWinFont.c:
	* win/tkWinGdi.c (new):
	* win/tkWinGdi.h (new):
	* win/tkWinImage.c:
	* win/tkWinInt.h:
	* win/tkWinMenu.c:
	* win/tkWinPixmap.c:
	* win/tkWinUtil.c (new):
	* win/tkWinWindow.c:
	* win/tkWinWm.c:
	* win/tkWinX.c:
	* win/winMain.c:
	* xlib/xgc.c:
	* xlib/X11/Xlib.h: first cut at Windows speedup improvements by
	Leo Schubert.  Needs to be streamlined, but the code is correct
	and passes all tests.
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.35 2000/11/03 17:28:00 hobbs Exp $
a263 1
	tkWinGdi.$(OBJEXT) \
a272 1
	tkWinUtil.$(OBJEXT) \
@


1.35.2.2
log
@sync with head
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.48 2002/02/22 02:41:17 hobbs Exp $
a86 1
TCL_TOOL_DIR = @@TCL_SRC_DIR@@/tools
d88 5
a92 1
# Converts a POSIX path to a Windows native path.
d96 2
a97 2
TCL_LIB_FILE	  = "$(shell $(CYGPATH) '@@TCL_BIN_DIR@@/@@TCL_LIB_FILE@@')"
TCL_STUB_LIB_FILE = "$(shell $(CYGPATH) '@@TCL_BIN_DIR@@/@@TCL_STUB_LIB_FILE@@')"
d108 9
a116 9
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)')
a129 1
TCLTEST			= $(TCL_BIN_DIR)/tcltest${EXEEXT}
d136 5
d143 2
a144 1
# dependencies.
d146 1
a146 1
VPATH = $(GENERIC_DIR):$(WIN_DIR):$(UNIX_DIR):$(XLIB_DIR):$(RC_DIR)
d164 1
a164 1
CFLAGS		= @@CFLAGS@@ @@CFLAGS_DEFAULT@@
d177 1
a177 1
LDFLAGS		= @@LDFLAGS@@ @@LDFLAGS_DEFAULT@@
a197 7
# TCL_EXE is the name of a tclsh executable that is available *BEFORE*
# running make for the first time. Certain build targets (make genstubs)
# need it to be available on the PATH. This executable should *NOT* be
# required just to do a normal build although it can be required to run
# make dist.
TCL_EXE			= tclsh

a324 1
	tkPanedWindow.$(OBJEXT) \
d397 1
a397 1
runtest: $(TKTEST)
a402 16
# This target can be used to run wish from the build directory
# via `make shell` or `make shell SCRIPT=foo.tcl`
shell: $(WISH)
	@@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; \
	./$(WISH) $(SCRIPT)

# This target can be used to run wish inside either gdb or insight
gdb: $(WISH)
	@@echo "set env TCL_LIBRARY=$(TCL_SRC_DIR_NATIVE)/library" > gdb.run
	@@echo "set env TK_LIBRARY=$(ROOT_DIR_NATIVE)/library" >> gdb.run
	PATH="$(PATH):$(TCL_BIN_DIR)"; export PATH; \
	gdb ./$(WISH) --command=gdb.run
	rm gdb.run

d405 1
a405 1
install-binaries: binaries
d415 16
a430 5
	@@for i in $(TK_DLL_FILE) $(WISH); \
	    do \
	    if [ -f $$i ]; then \
		echo "Installing $$i to $(BIN_INSTALL_DIR)/"; \
		$(COPY) $$i "$(BIN_INSTALL_DIR)"; \
d432 1
a432 8
	    done
	@@for i in tkConfig.sh $(TK_LIB_FILE) $(TK_STUB_LIB_FILE); \
	    do \
	    if [ -f $$i ]; then \
		echo "Installing $$i to $(LIB_INSTALL_DIR)/"; \
		$(COPY) $$i "$(LIB_INSTALL_DIR)"; \
	    fi; \
	    done
d434 1
a434 1
install-libraries: libraries
d446 1
a446 1
	@@echo "Installing header files to $(INCLUDE_INSTALL_DIR)/";
d502 1
a502 1
install-doc: doc
d505 1
a505 1
$(WISH): $(TK_LIB_FILE) $(TK_STUB_LIB_FILE) $(WISH_OBJS) wish.$(RES)
d511 1
a511 7
# This rule is executed if the user tried to run tktest without first
# building tcltest in the Tcl bin directory. Just do it for them.
$(TCLTEST):
	cd ${TCL_BIN_DIR} ; \
	$(MAKE) tcltest

$(TKTEST): $(TCLTEST) $(TK_LIB_FILE) $(TKTEST_OBJS) wish.$(RES) $(CAT32)
d517 1
a517 1
	$(CC) -c $(CC_SWITCHES) @@DEPARG@@ $(CC_OBJNAME)
d542 1
a542 1
	$(CC) -c $(CC_SWITCHES) @@DEPARG@@ $(CC_OBJNAME)
d545 1
a545 1
	$(CC) -c $(CC_SWITCHES) @@DEPARG@@ -DTK_TEST $(CC_OBJNAME)
d548 1
a548 1
	$(CC) -c $(CC_SWITCHES) @@DEPARG@@ $(CC_OBJNAME)
d551 1
a551 1
	$(CC) -c $(CC_SWITCHES) @@DEPARG@@ $(CC_OBJNAME)
d554 1
a554 1
	$(CC) -c $(CC_SWITCHES) @@DEPARG@@ $(CC_OBJNAME)
d568 1
a568 1
	$(CC) -c $(STUB_CC_SWITCHES) -DBUILD_tk @@DEPARG@@ $(CC_OBJNAME)
d571 1
a571 1
	$(RC) @@RC_OUT@@ $@@ @@RC_TYPE@@ @@RC_DEFINES@@ @@RC_INCLUDE@@ "$(GENERIC_DIR_NATIVE)" @@RC_INCLUDE@@ "$(TCL_GENERIC_NATIVE)" @@RC_INCLUDE@@ "$(RC_DIR_NATIVE)" @@DEPARG@@
a587 14

#
# Regenerate the stubs files.
#

$(GENERIC_DIR)/tkStubInit.c: $(GENERIC_DIR)/tk.decls \
		$(GENERIC_DIR)/tkInt.decls
	@@echo "Warning: run \"make genstubs\" to regenerate tkStubInit.c"

genstubs:
	$(TCL_EXE) "$(TCL_TOOL_DIR}\genStubs.tcl" \
	    "$(GENERIC_DIR_NATIVE)" \
	    "$(GENERIC_DIR_NATIVE)\tk.decls" \
            "$(GENERIC_DIR_NATIVE)\tkInt.decls"
@


1.34
log
@2000-10-30  David Gravereaux  <davygrvy@@ajubasolutions.com>

	* win/configure.in:
	* win/Makefile.in:
	* win/makefile.vc:
	* win/rc/tk.rc:
	* win/rc/tk_base.rc (new):
	* win/rc/wish.rc: Added logic to derive filenames better in the resource
	scripts based on compile options along with better support for building
	a static wish shell with cursor resources.
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.33 2000/10/31 00:52:28 hobbs Exp $
d352 1
a352 1
TCL_DOCS = "$(TCL_SRC_DIR_NATIVE)"/../doc/*.[13n]
d368 1
a368 1
	$(INSTALL_DATA) @@TCL_SRC_DIR@@/../doc/man.macros $(ROOT_DIR)/doc/man.macros
d372 1
a372 1
winhelp: $(TCL_SRC_DIR_NATIVE)/../tools/man2help.tcl $(MAN2TCL)
d376 1
a376 1
	$(TCLSH_PROG) "$(TCL_SRC_DIR_NATIVE)"/../tools/man2help.tcl tcl "$(VER)" $(CORE_DOCS)
d379 1
a379 1
	$(COPY) ./tcl$(VER).cnt ./TCL$(VER).HLP "$(TCL_SRC_DIR_NATIVE)"/../tools/
d381 2
a382 2
$(MAN2TCL): $(TCL_SRC_DIR_NATIVE)/../tools/man2tcl.c
	$(CC) $(CFLAGS_OPTIMIZE) $(MAN2TCLFLAGS) -o $(MAN2TCL) "$(TCL_SRC_DIR_NATIVE)"/../tools/man2tcl.c
@


1.33
log
@	* win/Makefile.in (test, winhelp, tktest): corrected the
	TCL_LIBRARY path specification.
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.32 2000/10/06 21:24:48 hobbs Exp $
d174 1
d528 1
a528 1
${TK_DLL_FILE}: ${TK_OBJS} tk.$(RES)
d530 1
a530 1
	@@MAKE_DLL@@ ${TK_OBJS} tk.$(RES) $(SHLIB_LD_LIBS)
d569 1
a569 1
	$(RC) @@RC_OUT@@ $@@ @@RC_TYPE@@ @@RC_INCLUDE@@ "$(GENERIC_DIR_NATIVE)" @@RC_INCLUDE@@ "$(TCL_GENERIC_NATIVE)" @@RC_INCLUDE@@ "$(RC_DIR_NATIVE)" $(DEPARG)
@


1.32
log
@	* win/Makefile.in (cat32.${OBJEXT}): add win/ subdirectory to
	cat32 target to correctly find the source file.
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.31 2000/09/29 21:40:54 hobbs Exp $
d372 1
a372 1
	TCL_LIBRARY="$(TCL_SRC_DIR_NATIVE)/../library"; export TCL_LIBRARY; \
d388 1
a388 1
	@@TCL_LIBRARY="$(TCL_SRC_DIR_NATIVE)/../library"; export TCL_LIBRARY; \
d395 1
a395 1
	@@TCL_LIBRARY="$(TCL_SRC_DIR_NATIVE)/../library"; export TCL_LIBRARY; \
@


1.31
log
@	* win/Makefile.in: commented use of TESTFLAGS
	* unix/Makefile.in: added TESTFLAGS to test and testlang targets to
	conform with Windows makefile and TEA style.
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.30 2000/09/02 01:18:24 ericm Exp $
d513 1
a513 1
cat32.${OBJEXT}: $(TCL_SRC_DIR)/cat.c
@


1.30
log
@* win/makefile.vc (install-libraries):
* win/Makefile.in (install-libraries):
* unix/Makefile.in (install-libraries): Added tkPlatDecls.h to
list of header files to install.

* generic/tk.h: Added #include "tkPlatDecls.h", which declares the
platform specific component of the public Tk stubs API's.
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.29 2000/07/18 18:17:47 mo Exp $
d382 4
@


1.29
log
@fix usage of TK_SRC_DIR
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.28 2000/06/15 15:56:48 ericm Exp $
d440 2
a441 2
	@@for i in $(GENERIC_DIR)/tk.h $(GENERIC_DIR)/tkDecls.h \
		$(GENERIC_DIR)/tkIntXlibDecls.h ; \
@


1.28
log
@Recheckin without ^M line feeds.
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.26 2000/06/13 21:07:34 ericm Exp $
d86 1
a86 1
TCL_GENERIC_DIR	= @@TCL_SRC_DIR@@/../generic
@


1.27
log
@Added @@LIBS@@ to definition for LIBS variable, so that user32.lib and
advapi32.lib are included in the link line for the wish binary.
@
text
@d1 580
a580 580
# 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.
#
# RCS: @@(#) $Id: Makefile.in,v 1.26 2000/06/13 21:07:34 ericm Exp $

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		=

# 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 this value):
TK_LIBRARY		= $(prefix)/lib/tk$(VERSION)

# 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)

# 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)

# Top-level directory for manual entries:
MAN_INSTALL_DIR		= $(INSTALL_ROOT)$(mandir)

# 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 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@@

# The name of the Tcl library.
TCL_LIB_FILE	  = "$(shell $(CYGPATH) $(PATHTYPE) '@@TCL_BIN_DIR@@/@@TCL_LIB_FILE@@')"
TCL_STUB_LIB_FILE = "$(shell $(CYGPATH) $(PATHTYPE) '@@TCL_BIN_DIR@@/@@TCL_STUB_LIB_FILE@@')"

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) $(PATHTYPE) '$(ROOT_DIR)')
WIN_DIR_NATIVE	   	= $(shell $(CYGPATH) $(PATHTYPE) '$(WIN_DIR)')
GENERIC_DIR_NATIVE 	= $(shell $(CYGPATH) $(PATHTYPE) '$(GENERIC_DIR)')
BITMAP_DIR_NATIVE	= $(shell $(CYGPATH) $(PATHTYPE) '$(ROOT_DIR)/bitmaps')
XLIB_DIR_NATIVE		= $(shell $(CYGPATH) $(PATHTYPE) '$(ROOT_DIR)/xlib')
TCL_GENERIC_NATIVE	= $(shell $(CYGPATH) $(PATHTYPE) '$(TCL_GENERIC_DIR)')
TCL_SRC_DIR_NATIVE      = $(shell $(CYGPATH) $(PATHTYPE) '$(TCL_SRC_DIR)')
TCL_BIN_DIR_NATIVE      = $(shell $(CYGPATH) $(PATHTYPE) '$(TCL_BIN_DIR)')
RC_DIR_NATIVE      	= $(shell $(CYGPATH) $(PATHTYPE) '$(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			= wish$(VER)${EXESUFFIX}
TKTEST			= tktest${EXEEXT}
CAT32			= cat32$(EXEEXT)
MAN2TCL			= man2tcl$(EXEEXT)

@@SET_MAKE@@

# 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@@$(UNIX_DIR)@@VPSEP@@$(XLIB_DIR)@@VPSEP@@$(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@@

# 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_CONSOLE	= @@LDFLAGS_CONSOLE@@
LDFLAGS_WINDOW	= @@LDFLAGS_WINDOW@@
EXEEXT		= @@EXEEXT@@
OBJEXT		= @@OBJEXT@@
STLIB_LD	= @@STLIB_LD@@
SHLIB_LD	= @@SHLIB_LD@@
SHLIB_LD_LIBS	= @@SHLIB_LD_LIBS@@ $(TCL_STUB_LIB_FILE) $(LIBS)
SHLIB_CFLAGS	= @@SHLIB_CFLAGS@@
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

TCLSH_PROG	= @@TCLSH_PROG@@

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

# 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

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/

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

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)

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: 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; \
		chmod 755 $$i; \
		else true; \
		fi; \
	    done;
	@@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 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:
	@@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; \
		chmod 755 $$i; \
		else true; \
		fi; \
	    done;
	@@echo "Installing header files";
	@@for i in $(GENERIC_DIR)/tk.h $(GENERIC_DIR)/tkDecls.h \
		$(GENERIC_DIR)/tkIntXlibDecls.h ; \
	    do \
	    $(INSTALL_DATA) $$i $(INCLUDE_INSTALL_DIR); \
	    done;
	@@for i in $(XLIB_DIR)/X11/*.h; \
	    do \
	    $(INSTALL_DATA) $$i $(INCLUDE_INSTALL_DIR)/X11; \
	    done;
	@@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 \
	    $(INSTALL_DATA) $$i $(SCRIPT_INSTALL_DIR); \
	    done;
	@@echo "Installing library images directory";
	@@for i in $(ROOT_DIR)/library/images/*; \
	    do \
	    if [ -f $$i ] ; then \
		$(INSTALL_DATA) $$i $(SCRIPT_INSTALL_DIR)/images; \
	    fi; \
	    done;

install-demos:
	@@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; \
		chmod 755 $$i; \
		else true; \
		fi; \
	    done;
	@@echo "Installing demos to $(SCRIPT_INSTALL_DIR)/demos/";
	@@for i in $(ROOT_DIR)/library/demos/*; \
	    do \
	    if [ -f $$i ] ; then \
		sed -e '3 s|exec $(WISH)|exec $(WISH)|' \
			$$i > $(SCRIPT_INSTALL_DIR)/demos/`basename $$i`; \
	    fi; \
	    done;
	@@for i in $(DEMOPROGS); \
	    do \
	    chmod 755 $(SCRIPT_INSTALL_DIR)/demos/$$i; \
	    done;
	@@echo "Installing demo images";
	@@for i in $(ROOT_DIR)/library/demos/images/*; \
	    do \
	    if [ -f $$i ] ; then \
		$(INSTALL_DATA) $$i $(SCRIPT_INSTALL_DIR)/demos/images; \
		fi; \
	    done;

install-doc:


$(WISH): $(TK_LIB_FILE) $(WISH_OBJS) wish.$(RES)
	$(CC) $(CFLAGS) $(WISH_OBJS) $(TCL_LIB_FILE) $(TK_LIB_FILE) $(LIBS) \
	wish.$(RES) $(CC_EXENAME) $(LDFLAGS_WINDOW)

tktest : $(TKTEST)

$(TKTEST): $(TK_LIB_FILE) $(TKTEST_OBJS) wish.$(RES) $(CAT32)
	$(CC) $(CFLAGS) $(TKTEST_OBJS_NATIVE) $(TCL_LIB_FILE) \
	$(TK_LIB_FILE) $(LIBS) \
	wish.$(RES) $(CC_EXENAME) $(LDFLAGS_WINDOW)

cat32.${OBJEXT}: $(TCL_SRC_DIR)/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

${TK_STUB_LIB_FILE}: ${STUB_OBJS}
	@@$(RM) ${TK_STUB_LIB_FILE}
	@@MAKE_LIB@@ ${STUB_OBJS}
	@@POST_MAKE_LIB@@

${TK_DLL_FILE}: ${TK_OBJS} tk.$(RES)
	@@$(RM) ${TK_DLL_FILE}
	@@MAKE_DLL@@ ${TK_OBJS} tk.$(RES) $(SHLIB_LD_LIBS)

${TK_LIB_FILE}: ${TK_OBJS}
	@@$(RM) ${TK_LIB_FILE}
	@@MAKE_LIB@@ ${TK_OBJS}
	@@POST_MAKE_LIB@@

# Special case object file targets

winMain.$(OBJEXT): winMain.c
	$(CC) -c $(CC_SWITCHES) $(DEPARG) $(CC_OBJNAME)

testMain.$(OBJEXT): winMain.c
	$(CC) -c $(CC_SWITCHES) $(DEPARG) -DTK_TEST $(CC_OBJNAME)

tkTest.$(OBJEXT): tkTest.c
	$(CC) -c $(CC_SWITCHES) $(DEPARG) $(CC_OBJNAME)

tkWinTest.$(OBJEXT): tkWinTest.c
	$(CC) -c $(CC_SWITCHES) $(DEPARG) $(CC_OBJNAME)

tkSquare.$(OBJEXT): tkSquare.c
	$(CC) -c $(CC_SWITCHES) $(DEPARG) $(CC_OBJNAME)

tclThreadTest.$(OBJEXT): $(TCL_BIN_DIR)/tclThreadTest.$(OBJEXT)

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

.SUFFIXES: .${OBJEXT}
.SUFFIXES: .$(RES)
.SUFFIXES: .rc

# Implicit rule for all object files that will end up in the Tcl library

.c.$(OBJEXT):
	$(CC) -c $(STUB_CC_SWITCHES) -DBUILD_tk ${DEPARG} $(CC_OBJNAME)

.rc.$(RES):
	$(RC) @@RC_OUT@@ $@@ @@RC_TYPE@@ @@RC_INCLUDE@@ "$(GENERIC_DIR_NATIVE)" @@RC_INCLUDE@@ "$(TCL_GENERIC_NATIVE)" @@RC_INCLUDE@@ "$(RC_DIR_NATIVE)" $(DEPARG)

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
@


1.26
log
@* win/tcl.m4:
* win/configure.in:
* win/Makefile.in: Applied patch from [RFE: 5844], to extend
support for mingw compile environment on Windows.
@
text
@d1 580
a580 580
# 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.
#
# RCS: @@(#) $Id: Makefile.in,v 1.25 2000/05/23 02:44:18 hobbs Exp $

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		=

# 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 this value):
TK_LIBRARY		= $(prefix)/lib/tk$(VERSION)

# 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)

# 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)

# Top-level directory for manual entries:
MAN_INSTALL_DIR		= $(INSTALL_ROOT)$(mandir)

# 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 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@@

# The name of the Tcl library.
TCL_LIB_FILE	  = "$(shell $(CYGPATH) $(PATHTYPE) '@@TCL_BIN_DIR@@/@@TCL_LIB_FILE@@')"
TCL_STUB_LIB_FILE = "$(shell $(CYGPATH) $(PATHTYPE) '@@TCL_BIN_DIR@@/@@TCL_STUB_LIB_FILE@@')"

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) $(PATHTYPE) '$(ROOT_DIR)')
WIN_DIR_NATIVE	   	= $(shell $(CYGPATH) $(PATHTYPE) '$(WIN_DIR)')
GENERIC_DIR_NATIVE 	= $(shell $(CYGPATH) $(PATHTYPE) '$(GENERIC_DIR)')
BITMAP_DIR_NATIVE	= $(shell $(CYGPATH) $(PATHTYPE) '$(ROOT_DIR)/bitmaps')
XLIB_DIR_NATIVE		= $(shell $(CYGPATH) $(PATHTYPE) '$(ROOT_DIR)/xlib')
TCL_GENERIC_NATIVE	= $(shell $(CYGPATH) $(PATHTYPE) '$(TCL_GENERIC_DIR)')
TCL_SRC_DIR_NATIVE      = $(shell $(CYGPATH) $(PATHTYPE) '$(TCL_SRC_DIR)')
TCL_BIN_DIR_NATIVE      = $(shell $(CYGPATH) $(PATHTYPE) '$(TCL_BIN_DIR)')
RC_DIR_NATIVE      	= $(shell $(CYGPATH) $(PATHTYPE) '$(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			= wish$(VER)${EXESUFFIX}
TKTEST			= tktest${EXEEXT}
CAT32			= cat32$(EXEEXT)
MAN2TCL			= man2tcl$(EXEEXT)

@@SET_MAKE@@

# 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@@$(UNIX_DIR)@@VPSEP@@$(XLIB_DIR)@@VPSEP@@$(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@@

# 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_CONSOLE	= @@LDFLAGS_CONSOLE@@
LDFLAGS_WINDOW	= @@LDFLAGS_WINDOW@@
EXEEXT		= @@EXEEXT@@
OBJEXT		= @@OBJEXT@@
STLIB_LD	= @@STLIB_LD@@
SHLIB_LD	= @@SHLIB_LD@@
SHLIB_LD_LIBS	= @@SHLIB_LD_LIBS@@ $(TCL_STUB_LIB_FILE) $(LIBS)
SHLIB_CFLAGS	= @@SHLIB_CFLAGS@@
SHLIB_SUFFIX	= @@SHLIB_SUFFIX@@
VER		= @@TK_MAJOR_VERSION@@@@TK_MINOR_VERSION@@
DOTVER		= @@TK_MAJOR_VERSION@@.@@TK_MINOR_VERSION@@
LIBS		= @@LIBS_GUI@@
RMDIR		= rm -rf
MKDIR		= mkdir -p
SHELL		= @@SHELL@@
RM		= rm -f
COPY		= cp

TCLSH_PROG	= @@TCLSH_PROG@@

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

# 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

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/

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

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)

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: 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; \
		chmod 755 $$i; \
		else true; \
		fi; \
	    done;
	@@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 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:
	@@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; \
		chmod 755 $$i; \
		else true; \
		fi; \
	    done;
	@@echo "Installing header files";
	@@for i in $(GENERIC_DIR)/tk.h $(GENERIC_DIR)/tkDecls.h \
		$(GENERIC_DIR)/tkIntXlibDecls.h ; \
	    do \
	    $(INSTALL_DATA) $$i $(INCLUDE_INSTALL_DIR); \
	    done;
	@@for i in $(XLIB_DIR)/X11/*.h; \
	    do \
	    $(INSTALL_DATA) $$i $(INCLUDE_INSTALL_DIR)/X11; \
	    done;
	@@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 \
	    $(INSTALL_DATA) $$i $(SCRIPT_INSTALL_DIR); \
	    done;
	@@echo "Installing library images directory";
	@@for i in $(ROOT_DIR)/library/images/*; \
	    do \
	    if [ -f $$i ] ; then \
		$(INSTALL_DATA) $$i $(SCRIPT_INSTALL_DIR)/images; \
	    fi; \
	    done;

install-demos:
	@@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; \
		chmod 755 $$i; \
		else true; \
		fi; \
	    done;
	@@echo "Installing demos to $(SCRIPT_INSTALL_DIR)/demos/";
	@@for i in $(ROOT_DIR)/library/demos/*; \
	    do \
	    if [ -f $$i ] ; then \
		sed -e '3 s|exec $(WISH)|exec $(WISH)|' \
			$$i > $(SCRIPT_INSTALL_DIR)/demos/`basename $$i`; \
	    fi; \
	    done;
	@@for i in $(DEMOPROGS); \
	    do \
	    chmod 755 $(SCRIPT_INSTALL_DIR)/demos/$$i; \
	    done;
	@@echo "Installing demo images";
	@@for i in $(ROOT_DIR)/library/demos/images/*; \
	    do \
	    if [ -f $$i ] ; then \
		$(INSTALL_DATA) $$i $(SCRIPT_INSTALL_DIR)/demos/images; \
		fi; \
	    done;

install-doc:


$(WISH): $(TK_LIB_FILE) $(WISH_OBJS) wish.$(RES)
	$(CC) $(CFLAGS) $(WISH_OBJS) $(TCL_LIB_FILE) $(TK_LIB_FILE) $(LIBS) \
	wish.$(RES) $(CC_EXENAME) $(LDFLAGS_WINDOW)

tktest : $(TKTEST)

$(TKTEST): $(TK_LIB_FILE) $(TKTEST_OBJS) wish.$(RES) $(CAT32)
	$(CC) $(CFLAGS) $(TKTEST_OBJS_NATIVE) $(TCL_LIB_FILE) \
	$(TK_LIB_FILE) $(LIBS) \
	wish.$(RES) $(CC_EXENAME) $(LDFLAGS_WINDOW)

cat32.${OBJEXT}: $(TCL_SRC_DIR)/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

${TK_STUB_LIB_FILE}: ${STUB_OBJS}
	@@$(RM) ${TK_STUB_LIB_FILE}
	@@MAKE_LIB@@ ${STUB_OBJS}
	@@POST_MAKE_LIB@@

${TK_DLL_FILE}: ${TK_OBJS} tk.$(RES)
	@@$(RM) ${TK_DLL_FILE}
	@@MAKE_DLL@@ ${TK_OBJS} tk.$(RES) $(SHLIB_LD_LIBS)

${TK_LIB_FILE}: ${TK_OBJS}
	@@$(RM) ${TK_LIB_FILE}
	@@MAKE_LIB@@ ${TK_OBJS}
	@@POST_MAKE_LIB@@

# Special case object file targets

winMain.$(OBJEXT): winMain.c
	$(CC) -c $(CC_SWITCHES) $(DEPARG) $(CC_OBJNAME)

testMain.$(OBJEXT): winMain.c
	$(CC) -c $(CC_SWITCHES) $(DEPARG) -DTK_TEST $(CC_OBJNAME)

tkTest.$(OBJEXT): tkTest.c
	$(CC) -c $(CC_SWITCHES) $(DEPARG) $(CC_OBJNAME)

tkWinTest.$(OBJEXT): tkWinTest.c
	$(CC) -c $(CC_SWITCHES) $(DEPARG) $(CC_OBJNAME)

tkSquare.$(OBJEXT): tkSquare.c
	$(CC) -c $(CC_SWITCHES) $(DEPARG) $(CC_OBJNAME)

tclThreadTest.$(OBJEXT): $(TCL_BIN_DIR)/tclThreadTest.$(OBJEXT)

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

.SUFFIXES: .${OBJEXT}
.SUFFIXES: .$(RES)
.SUFFIXES: .rc

# Implicit rule for all object files that will end up in the Tcl library

.c.$(OBJEXT):
	$(CC) -c $(STUB_CC_SWITCHES) -DBUILD_tk ${DEPARG} $(CC_OBJNAME)

.rc.$(RES):
	$(RC) @@RC_OUT@@ $@@ @@RC_TYPE@@ @@RC_INCLUDE@@ "$(GENERIC_DIR_NATIVE)" @@RC_INCLUDE@@ "$(TCL_GENERIC_NATIVE)" @@RC_INCLUDE@@ "$(RC_DIR_NATIVE)" $(DEPARG)

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
@


1.25
log
@	* win/Makefile.in (install-libraries): corrected to install X
	headers [Bug: 5516]
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.24 2000/04/25 22:30:42 hobbs Exp $
d90 4
a93 1
PATHTYPE	= @@PATHTYPE@@
d96 2
a97 2
TCL_LIB_FILE	  = "$(shell cygpath $(PATHTYPE) '@@TCL_BIN_DIR@@/@@TCL_LIB_FILE@@')"
TCL_STUB_LIB_FILE = "$(shell cygpath $(PATHTYPE) '@@TCL_BIN_DIR@@/@@TCL_STUB_LIB_FILE@@')"
d108 9
a116 8
ROOT_DIR_NATIVE	   	= $(shell cygpath $(PATHTYPE) '$(ROOT_DIR)')
WIN_DIR_NATIVE	   	= $(shell cygpath $(PATHTYPE) '$(WIN_DIR)')
GENERIC_DIR_NATIVE 	= $(shell cygpath $(PATHTYPE) '$(GENERIC_DIR)')
BITMAP_DIR_NATIVE	= $(shell cygpath $(PATHTYPE) '$(ROOT_DIR)/bitmaps')
XLIB_DIR_NATIVE		= $(shell cygpath $(PATHTYPE) '$(ROOT_DIR)/xlib')
TCL_GENERIC_NATIVE	= $(shell cygpath $(PATHTYPE) '$(TCL_GENERIC_DIR)')
TCL_SRC_DIR_NATIVE      = $(shell cygpath $(PATHTYPE) '$(TCL_SRC_DIR)')
TCL_BIN_DIR_NATIVE      = $(shell cygpath $(PATHTYPE) '$(TCL_BIN_DIR)')
d139 1
a139 1
DEPARG = "$(shell cygpath $(PATHTYPE) $<)"
d146 1
a146 1
VPATH = $(GENERIC_DIR);$(WIN_DIR);$(UNIX_DIR);$(XLIB_DIR);$(RC_DIR) # : 
d170 1
d173 1
d181 1
d183 1
a183 1
SHLIB_LD_LIBS	= @@SHLIB_LD_LIBS@@ $(TCL_STUB_LIB_FILE) gdi32.lib comdlg32.lib
d188 1
a188 1
LIBS		= @@LIBS@@ gdi32.lib comdlg32.lib
a193 2
CC_OBJNAME	= @@CC_OBJNAME@@
CC_EXENAME	= @@CC_EXENAME@@
d202 3
d498 1
a498 1
$(WISH): $(TK_LIB_FILE) $(WISH_OBJS) wish.res
d500 1
a500 1
	wish.res $(CC_EXENAME) -link $(LDFLAGS_WINDOW)
d504 1
a504 1
$(TKTEST): $(TK_LIB_FILE) $(TKTEST_OBJS) wish.res $(CAT32)
d507 1
a507 1
	wish.res $(CC_EXENAME) -link $(LDFLAGS_WINDOW)
d513 1
a513 1
	$(CC) $(CFLAGS) cat32.$(OBJEXT) $(CC_EXENAME) -link $(LDFLAGS_CONSOLE)
d521 1
d523 1
a523 1
${TK_DLL_FILE}: ${TK_OBJS} tk.res
d525 1
a525 1
	@@MAKE_DLL@@ ${TK_OBJS} tk.res
d530 1
d555 1
a555 1
.SUFFIXES: .res
d560 1
a560 1
.c.${OBJEXT}:
d563 2
a564 2
.rc.res:
	$(RC) -fo $@@ -r -i "$(GENERIC_DIR_NATIVE)" -i "$(TCL_GENERIC_NATIVE)" $(DEPARG)
d569 1
a569 1
	$(RM) *.hlp *.cnt *.hpj *.GID *.rtf man2tcl.exe
d572 1
a572 1
	$(RM) *.lib *.exp *.dll *.res *.${OBJEXT} *~ \#* TAGS a.out
d579 1
a579 1
Makefile: Makefile.in
@


1.24
log
@extra careful quoting
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.23 2000/04/25 22:29:55 hobbs Exp $
d420 2
a421 1
	@@for i in $(INSTALL_ROOT)$(prefix)/lib $(INCLUDE_INSTALL_DIR) \
d432 2
a433 1
	@@for i in $(GENERIC_DIR)/tk.h $(GENERIC_DIR)/tkDecls.h ; \
d436 4
@


1.24.2.1
log
@Cleanup of substitutions in tkConfig.sh
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.24 2000/04/25 22:30:42 hobbs Exp $
a174 1
GRAPHIC_LIBS	= @@GRAPHIC_LIBS@@
d176 1
a177 1
SHLIB_LD_LIBS	= @@SHLIB_LD_LIBS@@ $(TCL_STUB_LIB_FILE) $(GRAPHIC_LIBS)
d181 1
a181 1
LIBS		= @@LIBS@@ $(GRAPHIC_LIBS)
@


1.24.2.2
log
@Generalizing resource files for static builds.
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.24.2.1 2000/07/11 04:53:13 welch Exp $
a124 3
WISH_RES		= @@WISH_RES@@
TK_RES			= @@TK_RES@@

d485 1
a485 1
$(WISH): $(TK_LIB_FILE) $(WISH_OBJS) $(WISH_RES)
d487 1
a487 1
	$(WISH_RES) $(CC_EXENAME) -link $(LDFLAGS_WINDOW)
d491 1
a491 1
$(TKTEST): $(TK_LIB_FILE) $(TKTEST_OBJS) $(WISH_RES) $(CAT32)
d494 1
a494 1
	$(WISH_RES) $(CC_EXENAME) -link $(LDFLAGS_WINDOW)
a501 13
# 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
wish_static.res : $(RC_DIR)/wish_static.rc
	$(RC) -fo $@@ -r -i "$(GENERIC_DIR_NATIVE)" -i "$(TCL_GENERIC_NATIVE)" $(DEPARG)


# 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
tk_dll.res : $(RC_DIR)/tk_dll.rc
	$(RC) -fo $@@ -r -i "$(GENERIC_DIR_NATIVE)" -i "$(TCL_GENERIC_NATIVE)" $(DEPARG)

d509 1
a509 1
${TK_DLL_FILE}: ${TK_OBJS} $(TK_RES)
d511 1
a511 1
	@@MAKE_DLL@@ ${TK_OBJS} $(TK_RES)
@


1.24.2.3
log
@	* win/Makefile.in:
	* win/aclocal.m4:
	* win/configure.in:
	* win/tcl.m4: Back port of gcc for windows
	build system from 8.4.
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.24.2.2 2000/07/23 04:48:16 welch Exp $
d86 1
a86 1
TCL_GENERIC_DIR	= @@TCL_SRC_DIR@@/generic
d90 1
a90 4
PATHTYPE		= @@PATHTYPE@@

# This program converts between Windows native and Cygwin POSIX pathnames.
CYGPATH			= @@CYGPATH@@
d93 2
a94 2
TCL_LIB_FILE	  = "$(shell $(CYGPATH) $(PATHTYPE) '@@TCL_BIN_DIR@@/@@TCL_LIB_FILE@@')"
TCL_STUB_LIB_FILE = "$(shell $(CYGPATH) $(PATHTYPE) '@@TCL_BIN_DIR@@/@@TCL_STUB_LIB_FILE@@')"
d105 8
a112 9
ROOT_DIR_NATIVE	   	= $(shell $(CYGPATH) $(PATHTYPE) '$(ROOT_DIR)')
WIN_DIR_NATIVE	   	= $(shell $(CYGPATH) $(PATHTYPE) '$(WIN_DIR)')
GENERIC_DIR_NATIVE 	= $(shell $(CYGPATH) $(PATHTYPE) '$(GENERIC_DIR)')
BITMAP_DIR_NATIVE	= $(shell $(CYGPATH) $(PATHTYPE) '$(ROOT_DIR)/bitmaps')
XLIB_DIR_NATIVE		= $(shell $(CYGPATH) $(PATHTYPE) '$(ROOT_DIR)/xlib')
TCL_GENERIC_NATIVE	= $(shell $(CYGPATH) $(PATHTYPE) '$(TCL_GENERIC_DIR)')
TCL_SRC_DIR_NATIVE      = $(shell $(CYGPATH) $(PATHTYPE) '$(TCL_SRC_DIR)')
TCL_BIN_DIR_NATIVE      = $(shell $(CYGPATH) $(PATHTYPE) '$(TCL_BIN_DIR)')
RC_DIR_NATIVE      	= $(shell $(CYGPATH) $(PATHTYPE) '$(RC_DIR)')
d138 1
a138 1
DEPARG = "$(shell $(CYGPATH) $(PATHTYPE) $<)"
d145 1
a145 1
VPATH = $(GENERIC_DIR)@@VPSEP@@$(WIN_DIR)@@VPSEP@@$(UNIX_DIR)@@VPSEP@@$(XLIB_DIR)@@VPSEP@@$(RC_DIR) # : 
a168 1
RANLIB		= @@RANLIB@@
a170 1
RES		= @@RES@@
d178 1
a178 1
LIBS_GUI	= @@LIBS_GUI@@
d181 1
a181 1
SHLIB_LD_LIBS	= @@SHLIB_LD_LIBS@@ $(TCL_STUB_LIB_FILE) $(LIBS_GUI)
d185 1
a185 1
LIBS		= @@LIBS@@ $(LIBS_GUI)
d191 2
a200 3
CC_OBJNAME = @@CC_OBJNAME@@
CC_EXENAME = @@CC_EXENAME@@

d347 1
a347 1
TCL_DOCS = "$(TCL_SRC_DIR_NATIVE)"/doc/*.[13n]
d363 1
a363 1
	$(INSTALL_DATA) @@TCL_SRC_DIR@@/doc/man.macros $(ROOT_DIR)/doc/man.macros
d367 2
a368 2
winhelp: $(TCL_SRC_DIR_NATIVE)/tools/man2help.tcl $(MAN2TCL)
	TCL_LIBRARY="$(TCL_SRC_DIR_NATIVE)/library"; export TCL_LIBRARY; \
d371 1
a371 1
	$(TCLSH_PROG) "$(TCL_SRC_DIR_NATIVE)"/tools/man2help.tcl tcl "$(VER)" $(CORE_DOCS)
d374 1
a374 1
	$(COPY) ./tcl$(VER).cnt ./TCL$(VER).HLP "$(TCL_SRC_DIR_NATIVE)"/tools/
d376 2
a377 2
$(MAN2TCL): $(TCL_SRC_DIR_NATIVE)/tools/man2tcl.c
	$(CC) $(CFLAGS_OPTIMIZE) $(MAN2TCLFLAGS) -o $(MAN2TCL) "$(TCL_SRC_DIR_NATIVE)"/tools/man2tcl.c
d380 1
a380 1
	@@TCL_LIBRARY="$(TCL_SRC_DIR_NATIVE)/library"; export TCL_LIBRARY; \
d387 1
a387 1
	@@TCL_LIBRARY="$(TCL_SRC_DIR_NATIVE)/library"; export TCL_LIBRARY; \
d424 1
a424 2
	@@for i in $(INSTALL_ROOT)$(prefix)/lib \
		$(INCLUDE_INSTALL_DIR) $(INCLUDE_INSTALL_DIR)/X11 \
d435 1
a435 2
	@@for i in $(GENERIC_DIR)/tk.h $(GENERIC_DIR)/tkDecls.h \
		$(GENERIC_DIR)/tkIntXlibDecls.h ; \
a438 4
	@@for i in $(XLIB_DIR)/X11/*.h; \
	    do \
	    $(INSTALL_DATA) $$i $(INCLUDE_INSTALL_DIR)/X11; \
	    done;
d490 1
a490 1
	$(WISH_RES) $(CC_EXENAME) $(LDFLAGS_WINDOW)
d497 1
a497 1
	$(WISH_RES) $(CC_EXENAME) $(LDFLAGS_WINDOW)
d503 1
a503 1
	$(CC) $(CFLAGS) cat32.$(OBJEXT) $(CC_EXENAME) $(LDFLAGS_CONSOLE)
d508 2
a509 3

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)
d515 2
a516 3

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)
a523 1
	@@POST_MAKE_LIB@@
d527 1
a527 1
	@@MAKE_DLL@@ ${TK_OBJS} $(TK_RES) $(SHLIB_LD_LIBS)
a531 1
	@@POST_MAKE_LIB@@
d556 1
a556 1
.SUFFIXES: .$(RES)
d561 1
a561 1
.c.$(OBJEXT):
d564 2
a565 2
.rc.$(RES):
	$(RC) @@RC_OUT@@ $@@ @@RC_TYPE@@ @@RC_INCLUDE@@ "$(GENERIC_DIR_NATIVE)" @@RC_INCLUDE@@ "$(TCL_GENERIC_NATIVE)" @@RC_INCLUDE@@ "$(RC_DIR_NATIVE)" $(DEPARG)
d570 1
a570 1
	$(RM) *.hlp *.cnt *.hpj *.GID *.rtf man2tcl${EXEEXT}
d573 1
a573 1
	$(RM) *.lib *.a *.exp *.dll *.$(RES) *.${OBJEXT} *~ \#* TAGS a.out
d580 1
a580 1
Makefile: $(SRC_DIR)/Makefile.in
@


1.24.2.4
log
@	* win/Makefile.in (cat32.${OBJEXT}): corrected where to find cat.c
	given the change in default def'n of TCL_SRC_DIR.

	* win/tcl.m4: changed references from 8.4 to 8.3 (leftover from a
	backported file).
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.24.2.3 2000/07/28 08:12:05 mo Exp $
d512 1
a512 1
cat32.${OBJEXT}: $(TCL_SRC_DIR)/win/cat.c
@


1.24.2.5
log
@see ChangeLog for specific file details
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.36 2001/03/30 21:53:12 hobbs Exp $
d129 3
a176 1
TK_RES		= @@TK_RES@@
d184 1
a184 1
STLIB_LD	= @@STLIB_LD@@
a185 1
SHLIB_LD_LIBS	= @@SHLIB_LD_LIBS@@ $(TCL_STUB_LIB_FILE) $(LIBS)
d187 1
d191 1
a191 1
LIBS		= @@LIBS@@ @@LIBS_GUI@@
d370 1
a370 1
	$(INSTALL_DATA) "$(TCL_SRC_DIR)/doc/man.macros" "$(ROOT_DIR)/doc/man.macros"
d378 1
a378 1
	$(TCLSH_PROG) "$(TCL_SRC_DIR_NATIVE)/tools/man2help.tcl" tcl "$(VER)" $(CORE_DOCS)
a385 4
# Specifying TESTFLAGS on the command line is the standard way to pass
# args to tcltest, ie:
#	% make test TESTFLAGS="-verbose bps -file fileName.test"

d401 1
a401 1
install-binaries: binaries
d430 1
a430 1
install-libraries: libraries
d443 2
a444 2
	@@for i in $(GENERIC_DIR)/tk.h $(GENERIC_DIR)/tkPlatDecls.h \
		$(GENERIC_DIR)/tkIntXlibDecls.h $(GENERIC_DIR)/tkDecls.h ; \
d498 1
a498 1
install-doc: doc
d501 1
a501 1
$(WISH): $(TK_LIB_FILE) $(WISH_OBJS) wish.$(RES)
d503 1
a503 1
	wish.$(RES) $(CC_EXENAME) $(LDFLAGS_WINDOW)
d507 1
a507 1
$(TKTEST): $(TK_LIB_FILE) $(TKTEST_OBJS) wish.$(RES) $(CAT32)
d510 1
a510 1
	wish.$(RES) $(CC_EXENAME) $(LDFLAGS_WINDOW)
d518 15
d582 1
a582 1
	$(RC) @@RC_OUT@@ $@@ @@RC_TYPE@@ @@RC_DEFINES@@ @@RC_INCLUDE@@ "$(GENERIC_DIR_NATIVE)" @@RC_INCLUDE@@ "$(TCL_GENERIC_NATIVE)" @@RC_INCLUDE@@ "$(RC_DIR_NATIVE)" $(DEPARG)
d590 1
a590 1
	$(RM) *.lib *.a *.exp *.dll *.res *.${OBJEXT} *~ \#* TAGS a.out
@


1.24.2.6
log
@	* win/configure: regenerated
	* win/tcl.m4: fixed DLLSUFFIX definition to always be ${DBGX}.dll.
	This is necessary for TEA compliant builds that build shared
	against a static-built Tk.
	* win/Makefile.in ($(WISH)): added $(TK_STUB_LIB_FILE) to build
	target, otherwise it wouldn't get generated in a static build.
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.24.2.5 2001/04/04 07:57:18 hobbs Exp $
d413 16
a428 12
	@@for i in $(TK_DLL_FILE) $(WISH); \
	    do \
	    if [ -f $$i ]; then \
		echo "Installing $$i to $(BIN_INSTALL_DIR)/"; \
		$(COPY) $$i "$(BIN_INSTALL_DIR)"; \
	    fi; \
	    done
	@@for i in tkConfig.sh $(TK_LIB_FILE) $(TK_STUB_LIB_FILE); \
	    do \
	    if [ -f $$i ]; then \
		echo "Installing $$i to $(LIB_INSTALL_DIR)/"; \
		$(COPY) $$i "$(LIB_INSTALL_DIR)"; \
d430 1
a430 1
	    done
d444 1
a444 1
	@@echo "Installing header files to $(INCLUDE_INSTALL_DIR)/";
@


1.24.2.7
log
@updated patchlevel to 8.3.4.
updated READMEs to point to www.tcl-tk.net where applicable.
added proper Win64 support to makefiles.
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.24.2.6 2001/08/04 00:32:53 hobbs Exp $
d88 5
a92 1
# Converts a POSIX path to a Windows native path.
d96 2
a97 2
TCL_LIB_FILE	  = "$(shell $(CYGPATH) '@@TCL_BIN_DIR@@/@@TCL_LIB_FILE@@')"
TCL_STUB_LIB_FILE = "$(shell $(CYGPATH) '@@TCL_BIN_DIR@@/@@TCL_STUB_LIB_FILE@@')"
d108 9
a116 9
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)')
a129 1
TCLTEST			= $(TCL_BIN_DIR)/tcltest${EXEEXT}
d136 5
d143 2
a144 1
# dependencies.
d146 1
a146 1
VPATH = $(GENERIC_DIR):$(WIN_DIR):$(UNIX_DIR):$(XLIB_DIR):$(RC_DIR)
d164 1
a164 1
CFLAGS		= @@CFLAGS@@ @@CFLAGS_DEFAULT@@
d177 1
a177 1
LDFLAGS		= @@LDFLAGS@@ @@LDFLAGS_DEFAULT@@
d395 1
a395 1
runtest: $(TKTEST)
d499 1
a499 1
$(WISH): $(TK_LIB_FILE) $(TK_STUB_LIB_FILE) $(WISH_OBJS) wish.$(RES)
d505 1
a505 7
# This rule is executed if the user tried to run tktest without first
# building tcltest in the Tcl bin directory. Just do it for them.
$(TCLTEST):
	cd ${TCL_BIN_DIR} ; \
	make tcltest

$(TKTEST): $(TCLTEST) $(TK_LIB_FILE) $(TKTEST_OBJS) wish.$(RES) $(CAT32)
d511 1
a511 1
	$(CC) -c $(CC_SWITCHES) @@DEPARG@@ $(CC_OBJNAME)
d536 1
a536 1
	$(CC) -c $(CC_SWITCHES) @@DEPARG@@ $(CC_OBJNAME)
d539 1
a539 1
	$(CC) -c $(CC_SWITCHES) @@DEPARG@@ -DTK_TEST $(CC_OBJNAME)
d542 1
a542 1
	$(CC) -c $(CC_SWITCHES) @@DEPARG@@ $(CC_OBJNAME)
d545 1
a545 1
	$(CC) -c $(CC_SWITCHES) @@DEPARG@@ $(CC_OBJNAME)
d548 1
a548 1
	$(CC) -c $(CC_SWITCHES) @@DEPARG@@ $(CC_OBJNAME)
d562 1
a562 1
	$(CC) -c $(STUB_CC_SWITCHES) -DBUILD_tk @@DEPARG@@ $(CC_OBJNAME)
d565 1
a565 1
	$(RC) @@RC_OUT@@ $@@ @@RC_TYPE@@ @@RC_DEFINES@@ @@RC_INCLUDE@@ "$(GENERIC_DIR_NATIVE)" @@RC_INCLUDE@@ "$(TCL_GENERIC_NATIVE)" @@RC_INCLUDE@@ "$(RC_DIR_NATIVE)" @@DEPARG@@
@


1.24.2.8
log
@updated dependencies for runtest and backported shell/gdb targets
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.24.2.7 2001/10/03 22:04:53 hobbs Exp $
d386 1
a386 1
runtest: binaries $(TKTEST)
d390 1
a390 17
	./$(TKTEST) $(TESTFLAGS) $(SCRIPT)

# This target can be used to run wish from the build directory
# via `make shell` or `make shell SCRIPT=foo.tcl`
shell: binaries
	@@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; \
	./$(WISH) $(SCRIPT)

# This target can be used to run wish inside either gdb or insight
gdb: binaries
	@@echo "set env TCL_LIBRARY=$(TCL_SRC_DIR_NATIVE)/library" > gdb.run
	@@echo "set env TK_LIBRARY=$(ROOT_DIR_NATIVE)/library" >> gdb.run
	PATH="$(PATH):$(TCL_BIN_DIR)"; export PATH; \
	gdb ./$(WISH) --command=gdb.run
	rm gdb.run
@


1.23
log
@winhelp target improvements
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.22 2000/04/25 21:00:08 hobbs Exp $
d370 1
a370 1
	$(COPY) ./tcl$(VER).cnt ./TCL$(VER).HLP $(TCL_SRC_DIR_NATIVE)/../tools/
@


1.22
log
@	* unix/Makefile.in:
	* win/Makefile.in: makefile cleanup
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.21 2000/04/21 04:07:09 hobbs Exp $
d370 1
@


1.21
log
@	* win/aclocal.m4: made SC_PROG_TCLSH search specifically for
	tclsh*.exe type files to find an executable.

	* win/Makefile.in: fixed up cleanup, winhelp, cat32 targets
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.20 2000/04/12 18:51:11 hobbs Exp $
d9 2
a10 2
TCLVERSION = @@TCL_VERSION@@
VERSION = @@TK_VERSION@@
d25 6
a30 2
prefix		= @@prefix@@
exec_prefix	= @@exec_prefix@@
d37 1
a37 1
INSTALL_ROOT	=
d42 1
a42 1
TK_LIBRARY	= $(prefix)/lib/tk$(VERSION)
d45 1
a45 1
LIB_RUNTIME_DIR = $(exec_prefix)/lib
d48 1
a48 1
BIN_INSTALL_DIR = $(INSTALL_ROOT)$(exec_prefix)/bin
d50 2
a51 2
# Directory in which to install libtk.so or libtk.a:
LIB_INSTALL_DIR = $(INSTALL_ROOT)$(exec_prefix)/lib
d54 1
a54 1
SCRIPT_INSTALL_DIR = $(INSTALL_ROOT)$(TK_LIBRARY)
d57 1
a57 1
INCLUDE_INSTALL_DIR = $(INSTALL_ROOT)$(prefix)/include
d59 2
a60 2
# Top-level directory in which to install manual entries:
MAN_INSTALL_DIR = $(INSTALL_ROOT)$(prefix)/man
d63 1
a63 1
MAN1_INSTALL_DIR = $(MAN_INSTALL_DIR)/man1
d67 1
a67 1
MAN3_INSTALL_DIR = $(MAN_INSTALL_DIR)/man3
d71 1
a71 1
MANN_INSTALL_DIR = $(MAN_INSTALL_DIR)/mann
d74 1
a74 1
TK_DBGX		= @@TK_DBGX@@
d77 1
a77 1
TCL_SRC_DIR	= @@TCL_SRC_DIR@@
d81 1
a81 1
TCL_BIN_DIR	= @@TCL_BIN_DIR@@
d163 1
a163 1
MAN2TCLFLAGS =		@@MAN2TCLFLAGS@@
d197 2
a198 2
STUB_CC_SWITCHES = ${CC_SWITCHES} -DUSE_TCL_STUBS
CON_CC_SWITCHES = ${CC_SWITCHES} -DCONSOLE
@


1.20
log
@	* test/winClipboard.test:
	* win/tkWinInt.h:
	* win/tkWinClipboard.c (UpdateClipboard):
	* win/tkWinX.c (GenerateXEvent): added updatingClipboard tsd and
	TkWinUpdatingClipboard accessor function to allow us to flag
	ourselves when we are the ones updating the clipboard.  This
	corrected inability to create our own clipboard types within a Tk
	application.  [Bug: 2338 4318]
	* win/tkWinTest.c (TestclipboardCmd): improved TestclipboardCmd
	with better error handling and obj'ification
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.19 2000/04/08 06:59:09 hobbs Exp $
d123 1
a123 1
CAT32			= cat32
d359 1
a359 1
winhelp:  $(TCL_SRC_DIR_NATIVE)/../tools/man2help.tcl $(MAN2TCL)
d364 1
d490 1
a490 1
$(CAT32): $(TCL_SRC_DIR)/cat.c
d492 2
d547 7
a553 4
clean:
	$(RM) *.lib *.exp *.dll *.${OBJEXT} *~ \#* TAGS a.out
	$(RM) $(WISH) $(TKTEST)
	$(RM) *.pch
d556 1
a556 1
	$(RM) Makefile config.status config.cache config.log
@


1.19
log
@	* win/makefile.vc (TKTEST_OBJS):
	* win/Makefile.in (TKTEST_OBJS): moved tkWinTest.c from normal
	objs to TKTEST_OBJS where it belonged.
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.18 2000/02/08 11:31:49 hobbs Exp $
d135 2
a136 1
# dependencies.
d138 1
a138 1
VPATH = $(GENERIC_DIR);$(WIN_DIR);$(UNIX_DIR);$(XLIB_DIR);$(RC_DIR)
@


1.18
log
@	* generic/tkDecls.h:
	* generic/tk.decls:
	* generic/tk.h: moved new public functions created in dash patch
	to the stubs interface [Bug: 4062]

	* generic/tk.h:
	* doc/CrtImgType.3:
	* doc/CrtPhImgFmt.3:
	* generic/tk.h:
	* generic/tkImgGIF.c:
	* generic/tkImgPhoto.c:
	* generic/tkStubImg.c (new file):
	* generic/tkTest.c:
	* unix/Makefile.in:
	* win/Makefile.in:
	* win/makefile.vc: improved support for moving from the old style
	image C API to the new obj'ified one with new Tk_InitImageArgs
	command and stub'ing of image code.  See docs for how to make the
	transition. [Bug: 4060]
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.17 2000/02/01 11:41:43 hobbs Exp $
d217 2
a218 1
	tkTest.$(OBJEXT)
d224 2
a225 1
	tkTest.$(OBJEXT)
a258 1
	tkWinTest.$(OBJEXT) \
d516 3
@


1.17
log
@	* win/Makefile.in (install-*): reduced verbosity of install

	* win/tkWinPixmap.c (XGetGeometry): added support for windows in
	XGetGeometry [Bug: 4069]

	* win/tkWinFont.c (GetScreenFont): fixed possible mem overrun with
	long font names [Bug: 4108]

	* win/tkWinDialog.c: added EnableWindow calls to dialogs to
	correct for possible loss of control in parent Tk toplevel
	[Bug: 1212 et al]
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.16 1999/12/13 23:22:07 wart Exp $
d334 2
a335 1
	tkStubLib.$(OBJEXT)
@


1.16
log
@Fixed "doc" target so that it copies man.macros from Tcl
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.15 1999/12/07 01:03:19 wart Exp $
a383 1
	    echo "	$$i"; \
d391 1
a391 1
	@@echo "Installing $(TK_LIB_FILE)"
d393 1
a393 1
	@@echo "Installing $(WISH)"
d395 2
d398 3
a400 3
		echo "Installing $(TK_DLL_FILE)" ; \
		$(INSTALL_PROGRAM) $(TK_DLL_FILE) \
			$(BIN_INSTALL_DIR)/$(TK_DLL_FILE) ; \
d404 1
a404 1
	        echo "Installing $(TK_STUB_LIB_FILE)"; \
a408 2
	echo "Installing tkConfig.sh"
	$(INSTALL_DATA) tkConfig.sh $(LIB_INSTALL_DIR)/tkConfig.sh
a410 1
	@@echo "Install Directories:"
a413 1
	    echo "	$$i"; \
d421 1
a423 1
	    echo "Installing $$i"; \
d426 1
a429 1
	    echo "Installing $$i"; \
d432 1
a435 1
		echo "Installing $$i"; \
a440 1
	@@echo "Install Directories:"
a444 1
	    echo "	$$i"; \
d452 1
a455 1
		echo "Installing $$i"; \
d464 1
a467 1
		echo "Installing $$i"; \
@


1.15
log
@Added support for building Windows winhelp files.
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.14 1999/11/23 22:22:34 wart Exp $
d354 1
a354 1
doc:
d356 1
a356 1
winhelp:  $(ROOT_DIR)/doc/man.macros $(TCL_SRC_DIR_NATIVE)/../tools/man2help.tcl $(MAN2TCL)
@


1.14
log
@Replaced references to mkinstalldirs with mkdir -p
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.13 1999/11/23 21:24:59 wart Exp $
d124 1
d157 3
d185 2
d336 4
d354 11
a364 1
doc: $(ROOT_DIR)/doc/man.macros
@


1.13
log
@Removed bogus dependency on "installdirs"
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.12 1999/11/18 02:18:35 wart Exp $
a175 1
mkinstalldirs	= $(SHELL) $(top_srcdir)/mkinstalldirs
d367 1
a367 1
		$(mkinstalldirs) $$i; \
d399 1
a399 1
		$(mkinstalldirs) $$i; \
d432 1
a432 1
		$(mkinstalldirs) $$i; \
@


1.12
log
@Use mkdir -p to create the install directories (like Tcl already does)
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.11 1999/09/18 00:20:56 stanton Exp $
d362 1
a362 1
install-binaries: installdirs
@


1.11
log
@added DEMOPROGS
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.10 1999/09/10 00:23:12 wart Exp $
d175 2
d362 1
a362 2
install-binaries: 
	@@echo "Install Directories:"
d368 1
a368 1
		mkdir $$i; \
d400 1
a400 1
		mkdir $$i; \
d433 1
a433 1
		mkdir $$i; \
@


1.10
log
@Made sure that the tkConfig.sh file is always installed.

configure now substitutes XINCLUDES in tkConfig.sh.  Needed for
Tk extensions like Itk.
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.9 1999/08/26 18:24:18 wart Exp $
d328 2
@


1.9
log
@Added "make doc" target that copies the man.macros file from Tcl.
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.8 1999/07/29 23:01:43 redman Exp $
a380 2
		echo "Installing tkConfig.sh" ; \
	        $(INSTALL_DATA) tkConfig.sh $(LIB_INSTALL_DIR)/tkConfig.sh; \
d386 2
@


1.8
log
@* win/Makefile.in: Corrected building threaded tktest.exe on
Windows.  Needed to link in .obj files from Tcl, needs to change
later so that code is in Tk and doesn't require a Tcl build.
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.7 1999/07/16 21:43:30 redman Exp $
d338 4
a341 1
doc:
@


1.7
log
@* unix/Makefile.in:
* win/Makefile.in:  Copy the prolog.ps from the generic directory
	for install-libraries.
* unix/aclocal.m4: Check for Alpha/Linux to set the IEEE flag to
	the compiler to be -mieee.  Patch from Don Porter.
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.6 1999/06/30 22:35:57 redman Exp $
d107 2
d200 6
d207 7
d341 1
d343 1
d347 6
d459 2
d462 2
a463 1
	$(CC) $(CFLAGS) $(TKTEST_OBJS) $(TCL_LIB_FILE) $(TK_LIB_FILE) $(LIBS) \
d468 1
a468 1
	$(CC) $(CFLAGS) cat32.obj $(CC_EXENAME) -link $(LDFLAGS_CONSOLE)
d487 1
a487 1
winMain.obj: winMain.c
d490 1
a490 1
testMain.obj: winMain.c
d493 1
a493 1
tkTest.obj: tkTest.c
d496 1
a496 1
tkSquare.obj: tkSquare.c
d498 2
@


1.6
log
@Add prolog.ps to windows install-libraries
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.5 1999/06/29 21:30:51 redman Exp $
d381 1
a381 1
	@@for i in $(ROOT_DIR)/library/*.tcl $(ROOT_DIR)/library/prolog.ps \
@


1.5
log
@Don't install the DLL if it wasn't being built, by checking
the DLLSUFFIX variable.
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.4 1999/06/29 00:27:31 surles Exp $
d381 2
a382 1
	@@for i in $(ROOT_DIR)/library/*.tcl $(ROOT_DIR)/library/tclIndex $(UNIX_DIR)/tkAppInit.c; \
@


1.4
log
@install-binaries was nto installing the Tk DLL on Windows
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.3 1999/06/26 21:49:18 surles Exp $
d348 5
a352 3
	@@echo "Installing $(TK_DLL_FILE)"
	@@$(INSTALL_PROGRAM) $(TK_DLL_FILE) $(BIN_INSTALL_DIR)/$(TK_DLL_FILE)
	@@echo "Installing tkConfig.sh"
d355 1
@


1.3
log
@minor bug in tk Makefile.in
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.2 1999/06/18 17:35:06 redman Exp $
d348 2
@


1.2
log
@Modifications to CC_EXENAME macro (aclocal.m4).

Fix static builds and installation macros.
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.1 1999/06/16 22:54:03 surles Exp $
d351 1
a351 1
	        @@$(INSTALL_DATA) tkConfig.sh $(LIB_INSTALL_DIR)/tkConfig.sh; \
@


1.1
log
@added Makefile.in files for windows
@
text
@d7 1
a7 1
# RCS: @@(#) $Id: Makefile.in,v 1.6 1999/06/11 02:06:27 surles Exp $
d170 1
a170 1
LIBS		= @@LIBS@@
a348 1
	@@$(INSTALL_DATA) tkConfig.sh $(LIB_INSTALL_DIR)/tkConfig.sh
d350 4
a353 2
	    echo "Installing $(TK_STUB_LIB_FILE)"; \
	    $(INSTALL_DATA) $(TK_STUB_LIB_FILE) \
d355 2
a356 1
	    fi
d480 1
a480 1
	$(RC) -fo $@@ -r -i "$(GENERIC_DIR_NATIVE)" -i "$(TCL_GENERIC_NATIVE)" $<
@

