Artifact 910bfff2aad6a6ca631ae93b1eb791ec25be0b7b:
0000: 23 20 4d 61 6b 65 66 69 6c 65 2e 69 6e 20 2d 2d # Makefile.in --
0010: 0a 23 0a 23 09 54 68 69 73 20 66 69 6c 65 20 69 .#.#.This file i
0020: 73 20 61 20 4d 61 6b 65 66 69 6c 65 20 66 6f 72 s a Makefile for
0030: 20 53 61 6d 70 6c 65 20 54 45 41 20 45 78 74 65 Sample TEA Exte
0040: 6e 73 69 6f 6e 2e 20 20 49 66 20 69 74 20 68 61 nsion. If it ha
0050: 73 20 74 68 65 20 6e 61 6d 65 0a 23 09 22 4d 61 s the name.#."Ma
0060: 6b 65 66 69 6c 65 2e 69 6e 22 20 74 68 65 6e 20 kefile.in" then
0070: 69 74 20 69 73 20 61 20 74 65 6d 70 6c 61 74 65 it is a template
0080: 20 66 6f 72 20 61 20 4d 61 6b 65 66 69 6c 65 3b for a Makefile;
0090: 20 20 74 6f 20 67 65 6e 65 72 61 74 65 20 74 68 to generate th
00a0: 65 0a 23 09 61 63 74 75 61 6c 20 4d 61 6b 65 66 e.#.actual Makef
00b0: 69 6c 65 2c 20 72 75 6e 20 22 2e 2f 63 6f 6e 66 ile, run "./conf
00c0: 69 67 75 72 65 22 2c 20 77 68 69 63 68 20 69 73 igure", which is
00d0: 20 61 20 63 6f 6e 66 69 67 75 72 61 74 69 6f 6e a configuration
00e0: 20 73 63 72 69 70 74 0a 23 09 67 65 6e 65 72 61 script.#.genera
00f0: 74 65 64 20 62 79 20 74 68 65 20 22 61 75 74 6f ted by the "auto
0100: 63 6f 6e 66 22 20 70 72 6f 67 72 61 6d 20 28 63 conf" program (c
0110: 6f 6e 73 74 72 75 63 74 73 20 6c 69 6b 65 20 22 onstructs like "
0120: 40 66 6f 6f 40 22 20 77 69 6c 6c 20 67 65 74 0a @foo@" will get.
0130: 23 09 72 65 70 6c 61 63 65 64 20 69 6e 20 74 68 #.replaced in th
0140: 65 20 61 63 74 75 61 6c 20 4d 61 6b 65 66 69 6c e actual Makefil
0150: 65 2e 0a 23 0a 23 20 43 6f 70 79 72 69 67 68 74 e..#.# Copyright
0160: 20 28 63 29 20 31 39 39 39 20 53 63 72 69 70 74 (c) 1999 Script
0170: 69 63 73 20 43 6f 72 70 6f 72 61 74 69 6f 6e 2e ics Corporation.
0180: 0a 23 20 43 6f 70 79 72 69 67 68 74 20 28 63 29 .# Copyright (c)
0190: 20 32 30 30 33 2d 32 30 30 38 20 41 63 74 69 76 2003-2008 Activ
01a0: 65 53 74 61 74 65 20 53 6f 66 74 77 61 72 65 0a eState Software.
01b0: 23 0a 23 20 53 65 65 20 74 68 65 20 66 69 6c 65 #.# See the file
01c0: 20 22 6c 69 63 65 6e 73 65 2e 74 65 72 6d 73 22 "license.terms"
01d0: 20 66 6f 72 20 69 6e 66 6f 72 6d 61 74 69 6f 6e for information
01e0: 20 6f 6e 20 75 73 61 67 65 20 61 6e 64 20 72 65 on usage and re
01f0: 64 69 73 74 72 69 62 75 74 69 6f 6e 0a 23 20 6f distribution.# o
0200: 66 20 74 68 69 73 20 66 69 6c 65 2c 20 61 6e 64 f this file, and
0210: 20 66 6f 72 20 61 20 44 49 53 43 4c 41 49 4d 45 for a DISCLAIME
0220: 52 20 4f 46 20 41 4c 4c 20 57 41 52 52 41 4e 54 R OF ALL WARRANT
0230: 49 45 53 2e 0a 23 0a 23 20 52 43 53 3a 20 40 28 IES..#.# RCS: @(
0240: 23 29 20 24 49 64 3a 20 4d 61 6b 65 66 69 6c 65 #) $Id: Makefile
0250: 2e 69 6e 2c 76 20 31 2e 31 36 20 32 30 31 31 2f .in,v 1.16 2011/
0260: 30 34 2f 30 36 20 30 30 3a 34 38 3a 35 34 20 68 04/06 00:48:54 h
0270: 6f 62 62 73 20 45 78 70 20 24 0a 0a 23 3d 3d 3d obbs Exp $..#===
0280: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
0290: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
02a0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
02b0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
02c0: 3d 3d 3d 3d 3d 0a 23 20 4e 6f 74 68 69 6e 67 20 =====.# Nothing
02d0: 6f 66 20 74 68 65 20 76 61 72 69 61 62 6c 65 73 of the variables
02e0: 20 62 65 6c 6f 77 20 74 68 69 73 20 6c 69 6e 65 below this line
02f0: 20 6e 65 65 64 20 74 6f 20 62 65 20 63 68 61 6e need to be chan
0300: 67 65 64 2e 20 20 50 6c 65 61 73 65 0a 23 20 63 ged. Please.# c
0310: 68 65 63 6b 20 74 68 65 20 54 41 52 47 45 54 53 heck the TARGETS
0320: 20 73 65 63 74 69 6f 6e 20 62 65 6c 6f 77 20 74 section below t
0330: 6f 20 6d 61 6b 65 20 73 75 72 65 20 74 68 65 20 o make sure the
0340: 6d 61 6b 65 20 74 61 72 67 65 74 73 20 61 72 65 make targets are
0350: 0a 23 20 63 6f 72 72 65 63 74 2e 0a 23 3d 3d 3d .# correct..#===
0360: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
0370: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
0380: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
0390: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
03a0: 3d 3d 3d 3d 3d 0a 0a 23 3d 3d 3d 3d 3d 3d 3d 3d =====..#========
03b0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
03c0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
03d0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
03e0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
03f0: 0a 23 20 54 68 65 20 6e 61 6d 65 73 20 6f 66 20 .# The names of
0400: 74 68 65 20 73 6f 75 72 63 65 20 66 69 6c 65 73 the source files
0410: 20 69 73 20 64 65 66 69 6e 65 64 20 69 6e 20 74 is defined in t
0420: 68 65 20 63 6f 6e 66 69 67 75 72 65 20 73 63 72 he configure scr
0430: 69 70 74 2e 0a 23 20 54 68 65 20 6f 62 6a 65 63 ipt..# The objec
0440: 74 20 66 69 6c 65 73 20 61 72 65 20 75 73 65 64 t files are used
0450: 20 66 6f 72 20 6c 69 6e 6b 69 6e 67 20 69 6e 74 for linking int
0460: 6f 20 74 68 65 20 66 69 6e 61 6c 20 6c 69 62 72 o the final libr
0470: 61 72 79 2e 0a 23 20 54 68 69 73 20 77 69 6c 6c ary..# This will
0480: 20 62 65 20 75 73 65 64 20 77 68 65 6e 20 61 20 be used when a
0490: 64 69 73 74 20 74 61 72 67 65 74 20 69 73 20 61 dist target is a
04a0: 64 64 65 64 20 74 6f 20 74 68 65 20 4d 61 6b 65 dded to the Make
04b0: 66 69 6c 65 2e 0a 23 20 49 74 20 69 73 20 6e 6f file..# It is no
04c0: 74 20 69 6d 70 6f 72 74 61 6e 74 20 74 6f 20 73 t important to s
04d0: 70 65 63 69 66 79 20 74 68 65 20 64 69 72 65 63 pecify the direc
04e0: 74 6f 72 79 2c 20 61 73 20 6c 6f 6e 67 20 61 73 tory, as long as
04f0: 20 69 74 20 69 73 20 74 68 65 0a 23 20 24 28 73 it is the.# $(s
0500: 72 63 64 69 72 29 20 6f 72 20 69 6e 20 74 68 65 rcdir) or in the
0510: 20 67 65 6e 65 72 69 63 2c 20 77 69 6e 20 6f 72 generic, win or
0520: 20 75 6e 69 78 20 73 75 62 64 69 72 65 63 74 6f unix subdirecto
0530: 72 79 2e 0a 23 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ry..#===========
0540: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
0550: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
0560: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
0570: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 0a 0a 50 =============..P
0580: 4b 47 5f 53 4f 55 52 43 45 53 09 3d 20 40 50 4b KG_SOURCES.= @PK
0590: 47 5f 53 4f 55 52 43 45 53 40 0a 50 4b 47 5f 4f G_SOURCES@.PKG_O
05a0: 42 4a 45 43 54 53 09 3d 20 40 50 4b 47 5f 4f 42 BJECTS.= @PKG_OB
05b0: 4a 45 43 54 53 40 0a 0a 23 3d 3d 3d 3d 3d 3d 3d JECTS@..#=======
05c0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
05d0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
05e0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
05f0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
0600: 3d 0a 23 20 50 4b 47 5f 54 43 4c 5f 53 4f 55 52 =.# PKG_TCL_SOUR
0610: 43 45 53 20 69 64 65 6e 74 69 66 69 65 73 20 54 CES identifies T
0620: 63 6c 20 72 75 6e 74 69 6d 65 20 66 69 6c 65 73 cl runtime files
0630: 20 74 68 61 74 20 61 72 65 20 61 73 73 6f 63 69 that are associ
0640: 61 74 65 64 20 77 69 74 68 0a 23 20 74 68 69 73 ated with.# this
0650: 20 70 61 63 6b 61 67 65 20 74 68 61 74 20 6e 65 package that ne
0660: 65 64 20 74 6f 20 62 65 20 69 6e 73 74 61 6c 6c ed to be install
0670: 65 64 2c 20 69 66 20 61 6e 79 2e 0a 23 3d 3d 3d ed, if any..#===
0680: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
0690: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
06a0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
06b0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
06c0: 3d 3d 3d 3d 3d 0a 0a 50 4b 47 5f 54 43 4c 5f 53 =====..PKG_TCL_S
06d0: 4f 55 52 43 45 53 20 3d 20 40 50 4b 47 5f 54 43 OURCES = @PKG_TC
06e0: 4c 5f 53 4f 55 52 43 45 53 40 0a 0a 23 3d 3d 3d L_SOURCES@..#===
06f0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
0700: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
0710: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
0720: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
0730: 3d 3d 3d 3d 3d 0a 23 20 54 68 69 73 20 69 73 20 =====.# This is
0740: 61 20 6c 69 73 74 20 6f 66 20 70 75 62 6c 69 63 a list of public
0750: 20 68 65 61 64 65 72 20 66 69 6c 65 73 20 74 6f header files to
0760: 20 62 65 20 69 6e 73 74 61 6c 6c 65 64 2c 20 69 be installed, i
0770: 66 20 61 6e 79 2e 0a 23 3d 3d 3d 3d 3d 3d 3d 3d f any..#========
0780: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
0790: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
07a0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
07b0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
07c0: 0a 0a 50 4b 47 5f 48 45 41 44 45 52 53 09 3d 20 ..PKG_HEADERS.=
07d0: 40 50 4b 47 5f 48 45 41 44 45 52 53 40 0a 0a 50 @PKG_HEADERS@..P
07e0: 4b 47 5f 45 58 54 52 41 5f 46 49 4c 45 53 20 3d KG_EXTRA_FILES =
07f0: 20 6c 69 63 65 6e 73 65 2e 74 78 74 20 52 45 41 license.txt REA
0800: 44 4d 45 2e 74 78 74 0a 0a 50 4b 47 5f 4d 41 4e DME.txt..PKG_MAN
0810: 5f 50 41 47 45 53 09 3d 20 74 6b 54 61 62 6c 65 _PAGES.= tkTable
0820: 2e 6e 0a 0a 23 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d .n..#===========
0830: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
0840: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
0850: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
0860: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 0a 23 20 =============.#
0870: 22 50 4b 47 5f 4c 49 42 5f 46 49 4c 45 22 20 72 "PKG_LIB_FILE" r
0880: 65 66 65 72 73 20 74 6f 20 74 68 65 20 6c 69 62 efers to the lib
0890: 72 61 72 79 20 28 64 79 6e 61 6d 69 63 20 6f 72 rary (dynamic or
08a0: 20 73 74 61 74 69 63 20 61 73 20 70 65 72 0a 23 static as per.#
08b0: 20 63 6f 6e 66 69 67 75 72 61 74 69 6f 6e 20 6f configuration o
08c0: 70 74 69 6f 6e 73 29 20 63 6f 6d 70 6f 73 65 64 ptions) composed
08d0: 20 6f 66 20 74 68 65 20 6e 61 6d 65 64 20 6f 62 of the named ob
08e0: 6a 65 63 74 73 2e 0a 23 3d 3d 3d 3d 3d 3d 3d 3d jects..#========
08f0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
0900: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
0910: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
0920: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
0930: 0a 0a 50 4b 47 5f 4c 49 42 5f 46 49 4c 45 09 3d ..PKG_LIB_FILE.=
0940: 20 40 50 4b 47 5f 4c 49 42 5f 46 49 4c 45 40 0a @PKG_LIB_FILE@.
0950: 50 4b 47 5f 53 54 55 42 5f 4c 49 42 5f 46 49 4c PKG_STUB_LIB_FIL
0960: 45 20 3d 20 40 50 4b 47 5f 53 54 55 42 5f 4c 49 E = @PKG_STUB_LI
0970: 42 5f 46 49 4c 45 40 0a 0a 6c 69 62 5f 42 49 4e B_FILE@..lib_BIN
0980: 41 52 49 45 53 09 3d 20 24 28 50 4b 47 5f 4c 49 ARIES.= $(PKG_LI
0990: 42 5f 46 49 4c 45 29 0a 42 49 4e 41 52 49 45 53 B_FILE).BINARIES
09a0: 09 3d 20 74 6b 54 61 62 6c 65 2e 74 63 6c 2e 68 .= tkTable.tcl.h
09b0: 20 24 28 6c 69 62 5f 42 49 4e 41 52 49 45 53 29 $(lib_BINARIES)
09c0: 0a 0a 53 48 45 4c 4c 09 09 3d 20 40 53 48 45 4c ..SHELL..= @SHEL
09d0: 4c 40 0a 0a 73 72 63 64 69 72 09 09 3d 20 40 73 L@..srcdir..= @s
09e0: 72 63 64 69 72 40 0a 70 72 65 66 69 78 09 09 3d rcdir@.prefix..=
09f0: 20 40 70 72 65 66 69 78 40 0a 65 78 65 63 5f 70 @prefix@.exec_p
0a00: 72 65 66 69 78 09 3d 20 40 65 78 65 63 5f 70 72 refix.= @exec_pr
0a10: 65 66 69 78 40 0a 0a 62 69 6e 64 69 72 09 09 3d efix@..bindir..=
0a20: 20 40 62 69 6e 64 69 72 40 0a 6c 69 62 64 69 72 @bindir@.libdir
0a30: 09 09 3d 20 40 6c 69 62 64 69 72 40 0a 64 61 74 ..= @libdir@.dat
0a40: 61 64 69 72 09 09 3d 20 40 64 61 74 61 64 69 72 adir..= @datadir
0a50: 40 0a 6d 61 6e 64 69 72 09 09 3d 20 40 6d 61 6e @.mandir..= @man
0a60: 64 69 72 40 0a 69 6e 63 6c 75 64 65 64 69 72 09 dir@.includedir.
0a70: 3d 20 40 69 6e 63 6c 75 64 65 64 69 72 40 0a 0a = @includedir@..
0a80: 44 45 53 54 44 49 52 09 09 3d 0a 0a 50 4b 47 5f DESTDIR..=..PKG_
0a90: 44 49 52 09 09 3d 20 24 28 50 41 43 4b 41 47 45 DIR..= $(PACKAGE
0aa0: 5f 4e 41 4d 45 29 24 28 50 41 43 4b 41 47 45 5f _NAME)$(PACKAGE_
0ab0: 56 45 52 53 49 4f 4e 29 0a 70 6b 67 64 61 74 61 VERSION).pkgdata
0ac0: 64 69 72 09 3d 20 24 28 64 61 74 61 64 69 72 29 dir.= $(datadir)
0ad0: 2f 24 28 50 4b 47 5f 44 49 52 29 0a 70 6b 67 6c /$(PKG_DIR).pkgl
0ae0: 69 62 64 69 72 09 3d 20 24 28 6c 69 62 64 69 72 ibdir.= $(libdir
0af0: 29 2f 24 28 50 4b 47 5f 44 49 52 29 0a 70 6b 67 )/$(PKG_DIR).pkg
0b00: 69 6e 63 6c 75 64 65 64 69 72 09 3d 20 24 28 69 includedir.= $(i
0b10: 6e 63 6c 75 64 65 64 69 72 29 2f 24 28 50 4b 47 ncludedir)/$(PKG
0b20: 5f 44 49 52 29 0a 0a 74 6f 70 5f 62 75 69 6c 64 _DIR)..top_build
0b30: 64 69 72 09 3d 20 2e 0a 0a 49 4e 53 54 41 4c 4c dir.= ...INSTALL
0b40: 09 09 3d 20 40 49 4e 53 54 41 4c 4c 40 0a 49 4e ..= @INSTALL@.IN
0b50: 53 54 41 4c 4c 5f 50 52 4f 47 52 41 4d 09 3d 20 STALL_PROGRAM.=
0b60: 40 49 4e 53 54 41 4c 4c 5f 50 52 4f 47 52 41 4d @INSTALL_PROGRAM
0b70: 40 0a 49 4e 53 54 41 4c 4c 5f 44 41 54 41 09 3d @.INSTALL_DATA.=
0b80: 20 40 49 4e 53 54 41 4c 4c 5f 44 41 54 41 40 0a @INSTALL_DATA@.
0b90: 49 4e 53 54 41 4c 4c 5f 53 43 52 49 50 54 09 3d INSTALL_SCRIPT.=
0ba0: 20 40 49 4e 53 54 41 4c 4c 5f 53 43 52 49 50 54 @INSTALL_SCRIPT
0bb0: 40 0a 0a 50 41 43 4b 41 47 45 5f 4e 41 4d 45 09 @..PACKAGE_NAME.
0bc0: 3d 20 40 50 41 43 4b 41 47 45 5f 4e 41 4d 45 40 = @PACKAGE_NAME@
0bd0: 0a 50 41 43 4b 41 47 45 5f 56 45 52 53 49 4f 4e .PACKAGE_VERSION
0be0: 09 3d 20 40 50 41 43 4b 41 47 45 5f 56 45 52 53 .= @PACKAGE_VERS
0bf0: 49 4f 4e 40 0a 43 43 09 09 3d 20 40 43 43 40 0a ION@.CC..= @CC@.
0c00: 43 46 4c 41 47 53 5f 44 45 46 41 55 4c 54 09 3d CFLAGS_DEFAULT.=
0c10: 20 40 43 46 4c 41 47 53 5f 44 45 46 41 55 4c 54 @CFLAGS_DEFAULT
0c20: 40 0a 43 46 4c 41 47 53 5f 57 41 52 4e 49 4e 47 @.CFLAGS_WARNING
0c30: 09 3d 20 40 43 46 4c 41 47 53 5f 57 41 52 4e 49 .= @CFLAGS_WARNI
0c40: 4e 47 40 0a 43 4c 45 41 4e 46 49 4c 45 53 09 3d NG@.CLEANFILES.=
0c50: 20 40 43 4c 45 41 4e 46 49 4c 45 53 40 0a 45 58 @CLEANFILES@.EX
0c60: 45 45 58 54 09 09 3d 20 40 45 58 45 45 58 54 40 EEXT..= @EXEEXT@
0c70: 0a 4c 44 46 4c 41 47 53 5f 44 45 46 41 55 4c 54 .LDFLAGS_DEFAULT
0c80: 09 3d 20 40 4c 44 46 4c 41 47 53 5f 44 45 46 41 .= @LDFLAGS_DEFA
0c90: 55 4c 54 40 0a 4d 41 4b 45 5f 4c 49 42 09 3d 20 ULT@.MAKE_LIB.=
0ca0: 40 4d 41 4b 45 5f 4c 49 42 40 0a 4d 41 4b 45 5f @MAKE_LIB@.MAKE_
0cb0: 53 48 41 52 45 44 5f 4c 49 42 09 3d 20 40 4d 41 SHARED_LIB.= @MA
0cc0: 4b 45 5f 53 48 41 52 45 44 5f 4c 49 42 40 0a 4d KE_SHARED_LIB@.M
0cd0: 41 4b 45 5f 53 54 41 54 49 43 5f 4c 49 42 09 3d AKE_STATIC_LIB.=
0ce0: 20 40 4d 41 4b 45 5f 53 54 41 54 49 43 5f 4c 49 @MAKE_STATIC_LI
0cf0: 42 40 0a 4d 41 4b 45 5f 53 54 55 42 5f 4c 49 42 B@.MAKE_STUB_LIB
0d00: 09 3d 20 40 4d 41 4b 45 5f 53 54 55 42 5f 4c 49 .= @MAKE_STUB_LI
0d10: 42 40 0a 4f 42 4a 45 58 54 09 09 3d 20 40 4f 42 B@.OBJEXT..= @OB
0d20: 4a 45 58 54 40 0a 52 41 4e 4c 49 42 09 09 3d 20 JEXT@.RANLIB..=
0d30: 40 52 41 4e 4c 49 42 40 0a 52 41 4e 4c 49 42 5f @RANLIB@.RANLIB_
0d40: 53 54 55 42 09 3d 20 40 52 41 4e 4c 49 42 5f 53 STUB.= @RANLIB_S
0d50: 54 55 42 40 0a 53 48 4c 49 42 5f 43 46 4c 41 47 TUB@.SHLIB_CFLAG
0d60: 53 09 3d 20 40 53 48 4c 49 42 5f 43 46 4c 41 47 S.= @SHLIB_CFLAG
0d70: 53 40 0a 53 48 4c 49 42 5f 4c 44 09 3d 20 40 53 S@.SHLIB_LD.= @S
0d80: 48 4c 49 42 5f 4c 44 40 0a 53 48 4c 49 42 5f 4c HLIB_LD@.SHLIB_L
0d90: 44 5f 4c 49 42 53 09 3d 20 40 53 48 4c 49 42 5f D_LIBS.= @SHLIB_
0da0: 4c 44 5f 4c 49 42 53 40 0a 53 54 4c 49 42 5f 4c LD_LIBS@.STLIB_L
0db0: 44 09 3d 20 40 53 54 4c 49 42 5f 4c 44 40 0a 54 D.= @STLIB_LD@.T
0dc0: 43 4c 5f 44 45 46 53 09 3d 20 40 54 43 4c 5f 44 CL_DEFS.= @TCL_D
0dd0: 45 46 53 40 0a 54 43 4c 5f 53 52 43 5f 44 49 52 EFS@.TCL_SRC_DIR
0de0: 09 3d 20 40 54 43 4c 5f 53 52 43 5f 44 49 52 40 .= @TCL_SRC_DIR@
0df0: 0a 54 43 4c 5f 42 49 4e 5f 44 49 52 09 3d 20 40 .TCL_BIN_DIR.= @
0e00: 54 43 4c 5f 42 49 4e 5f 44 49 52 40 0a 54 4b 5f TCL_BIN_DIR@.TK_
0e10: 53 52 43 5f 44 49 52 09 3d 20 40 54 4b 5f 53 52 SRC_DIR.= @TK_SR
0e20: 43 5f 44 49 52 40 0a 54 4b 5f 42 49 4e 5f 44 49 C_DIR@.TK_BIN_DI
0e30: 52 09 3d 20 40 54 4b 5f 42 49 4e 5f 44 49 52 40 R.= @TK_BIN_DIR@
0e40: 0a 0a 23 20 4e 6f 74 20 75 73 65 64 20 62 79 20 ..# Not used by
0e50: 73 61 6d 70 6c 65 2c 20 62 75 74 20 72 65 74 61 sample, but reta
0e60: 69 6e 65 64 20 66 6f 72 20 72 65 66 65 72 65 6e ined for referen
0e70: 63 65 20 6f 66 20 77 68 61 74 20 54 63 6c 20 72 ce of what Tcl r
0e80: 65 71 75 69 72 65 64 0a 54 43 4c 5f 4c 49 42 53 equired.TCL_LIBS
0e90: 09 3d 20 40 54 43 4c 5f 4c 49 42 53 40 0a 54 4b .= @TCL_LIBS@.TK
0ea0: 5f 4c 49 42 53 09 09 3d 20 40 54 4b 5f 4c 49 42 _LIBS..= @TK_LIB
0eb0: 53 40 0a 0a 23 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d S@..#===========
0ec0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
0ed0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
0ee0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
0ef0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 0a 23 20 =============.#
0f00: 54 43 4c 4c 49 42 50 41 54 48 20 73 65 65 64 73 TCLLIBPATH seeds
0f10: 20 74 68 65 20 61 75 74 6f 5f 70 61 74 68 20 69 the auto_path i
0f20: 6e 20 54 63 6c 27 73 20 69 6e 69 74 2e 74 63 6c n Tcl's init.tcl
0f30: 20 73 6f 20 77 65 20 63 61 6e 20 74 65 73 74 20 so we can test
0f40: 6f 75 72 0a 23 20 70 61 63 6b 61 67 65 20 77 69 our.# package wi
0f50: 74 68 6f 75 74 20 69 6e 73 74 61 6c 6c 69 6e 67 thout installing
0f60: 2e 20 20 54 68 65 20 6f 74 68 65 72 20 65 6e 76 . The other env
0f70: 69 72 6f 6e 6d 65 6e 74 20 76 61 72 69 61 62 6c ironment variabl
0f80: 65 73 20 61 6c 6c 6f 77 20 75 73 0a 23 20 74 6f es allow us.# to
0f90: 20 74 65 73 74 20 61 67 61 69 6e 73 74 20 61 6e test against an
0fa0: 20 75 6e 69 6e 73 74 61 6c 6c 65 64 20 54 63 6c uninstalled Tcl
0fb0: 2e 20 20 41 64 64 20 73 70 65 63 69 61 6c 20 65 . Add special e
0fc0: 6e 76 20 76 61 72 73 20 74 68 61 74 20 79 6f 75 nv vars that you
0fd0: 0a 23 20 72 65 71 75 69 72 65 20 66 6f 72 20 74 .# require for t
0fe0: 65 73 74 69 6e 67 20 68 65 72 65 20 28 6c 69 6b esting here (lik
0ff0: 65 20 54 43 4c 58 5f 4c 49 42 52 41 52 59 29 2e e TCLX_LIBRARY).
1000: 0a 23 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d .#==============
1010: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
1020: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
1030: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
1040: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 0a 0a 45 58 54 52 ==========..EXTR
1050: 41 5f 50 41 54 48 09 3d 20 24 28 74 6f 70 5f 62 A_PATH.= $(top_b
1060: 75 69 6c 64 64 69 72 29 3a 24 28 54 43 4c 5f 42 uilddir):$(TCL_B
1070: 49 4e 5f 44 49 52 29 3a 24 28 54 4b 5f 42 49 4e IN_DIR):$(TK_BIN
1080: 5f 44 49 52 29 0a 54 43 4c 53 48 5f 45 4e 56 09 _DIR).TCLSH_ENV.
1090: 3d 20 54 43 4c 5f 4c 49 42 52 41 52 59 3d 60 40 = TCL_LIBRARY=`@
10a0: 43 59 47 50 41 54 48 40 20 24 28 54 43 4c 5f 53 CYGPATH@ $(TCL_S
10b0: 52 43 5f 44 49 52 29 2f 6c 69 62 72 61 72 79 60 RC_DIR)/library`
10c0: 20 5c 0a 09 09 20 20 54 4b 5f 4c 49 42 52 41 52 \... TK_LIBRAR
10d0: 59 3d 60 40 43 59 47 50 41 54 48 40 20 24 28 54 Y=`@CYGPATH@ $(T
10e0: 4b 5f 53 52 43 5f 44 49 52 29 2f 6c 69 62 72 61 K_SRC_DIR)/libra
10f0: 72 79 60 20 5c 0a 09 09 20 20 40 4c 44 5f 4c 49 ry` \... @LD_LI
1100: 42 52 41 52 59 5f 50 41 54 48 5f 56 41 52 40 3d BRARY_PATH_VAR@=
1110: 22 24 28 45 58 54 52 41 5f 50 41 54 48 29 3a 24 "$(EXTRA_PATH):$
1120: 28 40 4c 44 5f 4c 49 42 52 41 52 59 5f 50 41 54 (@LD_LIBRARY_PAT
1130: 48 5f 56 41 52 40 29 22 20 5c 0a 09 09 20 20 50 H_VAR@)" \... P
1140: 41 54 48 3d 22 24 28 45 58 54 52 41 5f 50 41 54 ATH="$(EXTRA_PAT
1150: 48 29 3a 24 28 50 41 54 48 29 22 20 5c 0a 09 09 H):$(PATH)" \...
1160: 20 20 54 43 4c 4c 49 42 50 41 54 48 3d 22 24 28 TCLLIBPATH="$(
1170: 74 6f 70 5f 62 75 69 6c 64 64 69 72 29 22 0a 54 top_builddir)".T
1180: 43 4c 53 48 5f 50 52 4f 47 09 3d 20 40 54 43 4c CLSH_PROG.= @TCL
1190: 53 48 5f 50 52 4f 47 40 0a 57 49 53 48 5f 50 52 SH_PROG@.WISH_PR
11a0: 4f 47 09 3d 20 40 57 49 53 48 5f 50 52 4f 47 40 OG.= @WISH_PROG@
11b0: 0a 54 43 4c 53 48 09 09 3d 20 24 28 54 43 4c 53 .TCLSH..= $(TCLS
11c0: 48 5f 45 4e 56 29 20 24 28 54 43 4c 53 48 5f 50 H_ENV) $(TCLSH_P
11d0: 52 4f 47 29 0a 57 49 53 48 09 09 3d 20 24 28 54 ROG).WISH..= $(T
11e0: 43 4c 53 48 5f 45 4e 56 29 20 24 28 57 49 53 48 CLSH_ENV) $(WISH
11f0: 5f 50 52 4f 47 29 0a 0a 23 20 54 68 65 20 6c 6f _PROG)..# The lo
1200: 63 61 6c 20 69 6e 63 6c 75 64 65 73 20 6d 75 73 cal includes mus
1210: 74 20 63 6f 6d 65 20 66 69 72 73 74 2c 20 62 65 t come first, be
1220: 63 61 75 73 65 20 74 68 65 20 54 4b 5f 58 49 4e cause the TK_XIN
1230: 43 4c 55 44 45 53 20 63 61 6e 20 62 65 0a 23 20 CLUDES can be.#
1240: 6a 75 73 74 20 61 20 63 6f 6d 6d 65 6e 74 0a 49 just a comment.I
1250: 4e 43 4c 55 44 45 53 09 3d 20 40 50 4b 47 5f 49 NCLUDES.= @PKG_I
1260: 4e 43 4c 55 44 45 53 40 20 5c 0a 09 09 20 20 40 NCLUDES@ \... @
1270: 54 43 4c 5f 49 4e 43 4c 55 44 45 53 40 20 40 54 TCL_INCLUDES@ @T
1280: 4b 5f 49 4e 43 4c 55 44 45 53 40 20 40 54 4b 5f K_INCLUDES@ @TK_
1290: 58 49 4e 43 4c 55 44 45 53 40 0a 0a 23 23 20 4e XINCLUDES@..## N
12a0: 4f 5f 45 4d 42 45 44 44 45 44 5f 52 55 4e 54 49 O_EMBEDDED_RUNTI
12b0: 4d 45 20 6d 65 61 6e 73 20 74 68 61 74 20 74 68 ME means that th
12c0: 65 20 74 6b 54 61 62 6c 65 2e 74 63 6c 20 66 69 e tkTable.tcl fi
12d0: 6c 65 20 77 69 6c 6c 20 6e 6f 74 20 62 65 20 65 le will not be e
12e0: 6d 62 65 64 64 65 64 0a 23 23 20 69 6e 74 6f 20 mbedded.## into
12f0: 74 68 65 20 65 78 65 63 75 74 61 62 6c 65 2c 20 the executable,
1300: 74 68 75 73 20 74 68 65 20 64 65 66 61 75 6c 74 thus the default
1310: 20 74 6b 54 61 62 6c 65 2e 74 63 6c 20 6c 69 62 tkTable.tcl lib
1320: 72 61 72 79 20 66 69 6c 65 20 77 69 6c 6c 20 6e rary file will n
1330: 6f 74 0a 23 23 20 62 65 20 61 76 61 69 6c 61 62 ot.## be availab
1340: 6c 65 20 77 68 65 6e 20 74 68 65 20 6c 69 62 72 le when the libr
1350: 61 72 79 20 69 73 20 6c 6f 61 64 65 64 2e 0a 23 ary is loaded..#
1360: 23 20 49 66 20 74 68 69 73 20 69 73 20 64 65 66 # If this is def
1370: 69 6e 65 64 2c 20 74 68 65 20 74 6b 54 61 62 6c ined, the tkTabl
1380: 65 2e 74 63 6c 20 66 69 6c 65 20 6d 75 73 74 20 e.tcl file must
1390: 62 65 20 61 76 61 69 6c 61 62 6c 65 20 69 6e 20 be available in
13a0: 61 0a 23 23 20 70 72 65 64 65 66 69 6e 65 64 20 a.## predefined
13b0: 73 65 74 20 6f 66 20 64 69 72 65 63 74 6f 72 69 set of directori
13c0: 65 73 20 28 73 65 65 20 64 6f 63 73 29 2e 0a 23 es (see docs)..#
13d0: 54 42 4c 5f 43 46 4c 41 47 53 09 2b 3d 20 2d 44 TBL_CFLAGS.+= -D
13e0: 4e 4f 5f 45 4d 42 45 44 44 45 44 5f 52 55 4e 54 NO_EMBEDDED_RUNT
13f0: 49 4d 45 0a 0a 23 23 20 55 53 45 5f 45 58 49 54 IME..## USE_EXIT
1400: 5f 48 41 4e 44 4c 45 52 20 69 73 20 6e 65 63 65 _HANDLER is nece
1410: 73 73 61 72 79 20 66 6f 72 20 38 2e 31 20 62 65 ssary for 8.1 be
1420: 66 6f 72 65 20 62 33 20 61 6e 64 20 38 2e 30 0a fore b3 and 8.0.
1430: 23 23 20 49 74 20 69 73 20 61 20 77 6f 72 6b 2d ## It is a work-
1440: 61 72 6f 75 6e 64 20 66 6f 72 20 74 68 65 20 69 around for the i
1450: 6d 70 72 6f 70 65 72 20 75 6e 6c 6f 61 64 69 6e mproper unloadin
1460: 67 20 6f 66 20 44 4c 4c 73 20 77 68 65 6e 20 65 g of DLLs when e
1470: 78 69 74 69 6e 67 0a 23 54 42 4c 5f 43 46 4c 41 xiting.#TBL_CFLA
1480: 47 53 09 2b 3d 20 2d 44 55 53 45 5f 45 58 49 54 GS.+= -DUSE_EXIT
1490: 5f 48 41 4e 44 4c 45 52 0a 0a 23 23 20 4e 4f 5f _HANDLER..## NO_
14a0: 53 4f 52 54 5f 43 45 4c 4c 53 20 63 68 61 6e 67 SORT_CELLS chang
14b0: 65 73 20 74 68 65 20 62 65 68 61 76 69 6f 72 20 es the behavior
14c0: 6f 66 20 63 65 72 74 61 69 6e 20 63 6f 6d 6d 61 of certain comma
14d0: 6e 64 73 20 28 6c 69 6b 65 20 63 75 72 73 65 6c nds (like cursel
14e0: 65 63 74 69 6f 6e 29 0a 23 23 20 74 6f 20 6e 6f ection).## to no
14f0: 74 20 73 6f 72 74 20 74 68 65 20 63 65 6c 6c 73 t sort the cells
1500: 20 62 65 66 6f 72 65 20 72 65 74 75 72 6e 69 6e before returnin
1510: 67 20 74 68 65 6d 2e 20 20 49 66 20 74 68 69 73 g them. If this
1520: 20 69 73 20 6e 6f 74 20 69 6d 70 6f 72 74 61 6e is not importan
1530: 74 20 74 6f 0a 23 23 20 79 6f 75 2c 20 69 74 20 t to.## you, it
1540: 63 61 6e 20 63 75 74 20 73 61 76 65 20 73 69 67 can cut save sig
1550: 6e 69 66 69 63 61 6e 74 20 74 69 6d 65 20 66 6f nificant time fo
1560: 72 20 6c 61 72 67 65 20 72 65 74 75 72 6e 20 73 r large return s
1570: 65 74 73 20 28 3e 20 31 30 30 30 20 63 65 6c 6c ets (> 1000 cell
1580: 73 29 2e 0a 23 23 20 59 6f 75 20 63 61 6e 20 61 s)..## You can a
1590: 6c 77 61 79 73 20 70 61 73 73 20 74 68 65 20 64 lways pass the d
15a0: 61 74 61 20 74 6f 20 5b 6c 73 6f 72 74 20 2d 64 ata to [lsort -d
15b0: 69 63 74 69 6f 6e 61 72 79 20 24 63 65 6c 6c 73 ictionary $cells
15c0: 5d 20 74 6f 20 67 65 74 20 74 68 65 20 73 61 6d ] to get the sam
15d0: 65 0a 23 23 20 72 65 73 75 6c 74 2e 0a 23 54 42 e.## result..#TB
15e0: 4c 5f 43 46 4c 41 47 53 09 2b 3d 20 2d 44 4e 4f L_CFLAGS.+= -DNO
15f0: 5f 53 4f 52 54 5f 43 45 4c 4c 53 0a 0a 23 23 20 _SORT_CELLS..##
1600: 45 78 70 65 72 69 6d 65 6e 74 61 6c 2c 20 6e 6f Experimental, no
1610: 74 20 64 6f 63 75 6d 65 6e 74 65 64 2c 20 6e 6f t documented, no
1620: 74 20 63 6f 6d 70 6c 65 74 65 2e 2e 2e 0a 23 54 t complete....#T
1630: 42 4c 5f 43 46 4c 41 47 53 09 2b 3d 20 2d 44 50 BL_CFLAGS.+= -DP
1640: 52 4f 43 53 0a 0a 23 23 20 4a 65 66 66 27 73 20 ROCS..## Jeff's
1650: 6d 61 67 69 63 20 65 78 74 72 61 20 64 65 62 75 magic extra debu
1660: 67 20 66 6c 61 67 0a 23 54 42 4c 5f 43 46 4c 41 g flag.#TBL_CFLA
1670: 47 53 09 2b 3d 20 2d 44 44 45 42 55 47 0a 0a 50 GS.+= -DDEBUG..P
1680: 4b 47 5f 43 46 4c 41 47 53 09 3d 20 24 28 54 42 KG_CFLAGS.= $(TB
1690: 4c 5f 43 46 4c 41 47 53 29 20 40 50 4b 47 5f 43 L_CFLAGS) @PKG_C
16a0: 46 4c 41 47 53 40 0a 0a 44 45 46 53 09 09 3d 20 FLAGS@..DEFS..=
16b0: 40 44 45 46 53 40 20 24 28 50 4b 47 5f 43 46 4c @DEFS@ $(PKG_CFL
16c0: 41 47 53 29 20 5c 0a 09 09 20 20 2d 44 54 42 4c AGS) \... -DTBL
16d0: 5f 43 4f 4d 4d 41 4e 44 3d 5c 22 74 61 62 6c 65 _COMMAND=\"table
16e0: 5c 22 20 5c 0a 09 09 20 20 2d 44 54 42 4c 5f 52 \" \... -DTBL_R
16f0: 55 4e 54 49 4d 45 3d 5c 22 74 6b 54 61 62 6c 65 UNTIME=\"tkTable
1700: 2e 74 63 6c 5c 22 20 5c 0a 09 09 20 20 2d 44 54 .tcl\" \... -DT
1710: 42 4c 5f 52 55 4e 54 49 4d 45 5f 44 49 52 3d 5c BL_RUNTIME_DIR=\
1720: 22 24 28 70 6b 67 6c 69 62 64 69 72 29 5c 22 0a "$(pkglibdir)\".
1730: 0a 43 4f 4e 46 49 47 5f 43 4c 45 41 4e 5f 46 49 .CONFIG_CLEAN_FI
1740: 4c 45 53 20 3d 20 4d 61 6b 65 66 69 6c 65 0a 0a LES = Makefile..
1750: 43 50 50 46 4c 41 47 53 09 3d 20 40 43 50 50 46 CPPFLAGS.= @CPPF
1760: 4c 41 47 53 40 0a 4c 49 42 53 09 09 3d 20 40 50 LAGS@.LIBS..= @P
1770: 4b 47 5f 4c 49 42 53 40 20 40 4c 49 42 53 40 0a KG_LIBS@ @LIBS@.
1780: 41 52 09 09 3d 20 40 41 52 40 0a 43 46 4c 41 47 AR..= @AR@.CFLAG
1790: 53 09 09 3d 20 40 43 46 4c 41 47 53 40 0a 43 4f S..= @CFLAGS@.CO
17a0: 4d 50 49 4c 45 09 09 3d 20 24 28 43 43 29 20 24 MPILE..= $(CC) $
17b0: 28 44 45 46 53 29 20 24 28 49 4e 43 4c 55 44 45 (DEFS) $(INCLUDE
17c0: 53 29 20 24 28 41 4d 5f 43 50 50 46 4c 41 47 53 S) $(AM_CPPFLAGS
17d0: 29 20 24 28 43 50 50 46 4c 41 47 53 29 20 24 28 ) $(CPPFLAGS) $(
17e0: 41 4d 5f 43 46 4c 41 47 53 29 20 24 28 43 46 4c AM_CFLAGS) $(CFL
17f0: 41 47 53 29 0a 0a 23 3d 3d 3d 3d 3d 3d 3d 3d 3d AGS)..#=========
1800: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
1810: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
1820: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
1830: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 0a ===============.
1840: 23 20 53 74 61 72 74 20 6f 66 20 75 73 65 72 2d # Start of user-
1850: 64 65 66 69 6e 61 62 6c 65 20 54 41 52 47 45 54 definable TARGET
1860: 53 20 73 65 63 74 69 6f 6e 0a 23 3d 3d 3d 3d 3d S section.#=====
1870: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
1880: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
1890: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
18a0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
18b0: 3d 3d 3d 0a 0a 23 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ===..#==========
18c0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
18d0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
18e0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
18f0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 0a 23 ==============.#
1900: 20 54 45 41 20 54 41 52 47 45 54 53 2e 20 20 50 TEA TARGETS. P
1910: 6c 65 61 73 65 20 6e 6f 74 65 20 74 68 61 74 20 lease note that
1920: 74 68 65 20 22 6c 69 62 72 61 72 69 65 73 3a 22 the "libraries:"
1930: 20 74 61 72 67 65 74 20 72 65 66 65 72 73 20 74 target refers t
1940: 6f 20 70 6c 61 74 66 6f 72 6d 0a 23 20 69 6e 64 o platform.# ind
1950: 65 70 65 6e 64 65 6e 74 20 66 69 6c 65 73 2c 20 ependent files,
1960: 61 6e 64 20 74 68 65 20 22 62 69 6e 61 72 69 65 and the "binarie
1970: 73 3a 22 20 74 61 72 67 65 74 20 69 6e 63 6c 75 s:" target inclu
1980: 65 73 20 65 78 65 63 75 74 61 62 6c 65 20 70 72 es executable pr
1990: 6f 67 72 61 6d 73 20 61 6e 64 0a 23 20 70 6c 61 ograms and.# pla
19a0: 74 66 6f 72 6d 2d 64 65 70 65 6e 64 65 6e 74 20 tform-dependent
19b0: 6c 69 62 72 61 72 69 65 73 2e 20 20 4d 6f 64 69 libraries. Modi
19c0: 66 79 20 74 68 65 73 65 20 74 61 72 67 65 74 73 fy these targets
19d0: 20 73 6f 20 74 68 61 74 20 74 68 65 79 20 69 6e so that they in
19e0: 73 74 61 6c 6c 0a 23 20 74 68 65 20 76 61 72 69 stall.# the vari
19f0: 6f 75 73 20 70 69 65 63 65 73 20 6f 66 20 79 6f ous pieces of yo
1a00: 75 72 20 70 61 63 6b 61 67 65 2e 20 20 54 68 65 ur package. The
1a10: 20 6d 61 6b 65 20 61 6e 64 20 69 6e 73 74 61 6c make and instal
1a20: 6c 20 72 75 6c 65 73 0a 23 20 66 6f 72 20 74 68 l rules.# for th
1a30: 65 20 42 49 4e 41 52 49 45 53 20 74 68 61 74 20 e BINARIES that
1a40: 79 6f 75 20 73 70 65 63 69 66 69 65 64 20 61 62 you specified ab
1a50: 6f 76 65 20 68 61 76 65 20 61 6c 72 65 61 64 79 ove have already
1a60: 20 62 65 65 6e 20 64 6f 6e 65 2e 0a 23 3d 3d 3d been done..#===
1a70: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
1a80: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
1a90: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
1aa0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
1ab0: 3d 3d 3d 3d 3d 0a 0a 61 6c 6c 3a 20 62 69 6e 61 =====..all: bina
1ac0: 72 69 65 73 20 6c 69 62 72 61 72 69 65 73 20 64 ries libraries d
1ad0: 6f 63 0a 0a 23 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d oc..#===========
1ae0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
1af0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
1b00: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
1b10: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 0a 23 20 =============.#
1b20: 54 68 65 20 62 69 6e 61 72 69 65 73 20 74 61 72 The binaries tar
1b30: 67 65 74 20 62 75 69 6c 64 73 20 65 78 65 63 75 get builds execu
1b40: 74 61 62 6c 65 20 70 72 6f 67 72 61 6d 73 2c 20 table programs,
1b50: 57 69 6e 64 6f 77 73 20 2e 64 6c 6c 27 73 2c 20 Windows .dll's,
1b60: 75 6e 69 78 0a 23 20 73 68 61 72 65 64 2f 73 74 unix.# shared/st
1b70: 61 74 69 63 20 6c 69 62 72 61 72 69 65 73 2c 20 atic libraries,
1b80: 61 6e 64 20 61 6e 79 20 6f 74 68 65 72 20 70 6c and any other pl
1b90: 61 74 66 6f 72 6d 2d 64 65 70 65 6e 64 65 6e 74 atform-dependent
1ba0: 20 66 69 6c 65 73 2e 0a 23 20 54 68 65 20 6c 69 files..# The li
1bb0: 73 74 20 6f 66 20 74 61 72 67 65 74 73 20 74 6f st of targets to
1bc0: 20 62 75 69 6c 64 20 66 6f 72 20 22 62 69 6e 61 build for "bina
1bd0: 72 69 65 73 3a 22 20 69 73 20 73 70 65 63 69 66 ries:" is specif
1be0: 69 65 64 20 61 74 20 74 68 65 20 74 6f 70 0a 23 ied at the top.#
1bf0: 20 6f 66 20 74 68 65 20 4d 61 6b 65 66 69 6c 65 of the Makefile
1c00: 2c 20 69 6e 20 74 68 65 20 22 42 49 4e 41 52 49 , in the "BINARI
1c10: 45 53 22 20 76 61 72 69 61 62 6c 65 2e 0a 23 3d ES" variable..#=
1c20: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
1c30: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
1c40: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
1c50: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
1c60: 3d 3d 3d 3d 3d 3d 3d 0a 0a 62 69 6e 61 72 69 65 =======..binarie
1c70: 73 3a 20 24 28 42 49 4e 41 52 49 45 53 29 20 70 s: $(BINARIES) p
1c80: 6b 67 49 6e 64 65 78 2e 74 63 6c 0a 0a 6c 69 62 kgIndex.tcl..lib
1c90: 72 61 72 69 65 73 3a 0a 0a 64 6f 63 3a 0a 0a 69 raries:..doc:..i
1ca0: 6e 73 74 61 6c 6c 3a 20 61 6c 6c 20 69 6e 73 74 nstall: all inst
1cb0: 61 6c 6c 2d 62 69 6e 61 72 69 65 73 20 69 6e 73 all-binaries ins
1cc0: 74 61 6c 6c 2d 6c 69 62 72 61 72 69 65 73 20 69 tall-libraries i
1cd0: 6e 73 74 61 6c 6c 2d 64 6f 63 0a 0a 69 6e 73 74 nstall-doc..inst
1ce0: 61 6c 6c 2d 62 69 6e 61 72 69 65 73 3a 20 62 69 all-binaries: bi
1cf0: 6e 61 72 69 65 73 20 69 6e 73 74 61 6c 6c 2d 6c naries install-l
1d00: 69 62 2d 62 69 6e 61 72 69 65 73 20 69 6e 73 74 ib-binaries inst
1d10: 61 6c 6c 2d 62 69 6e 2d 62 69 6e 61 72 69 65 73 all-bin-binaries
1d20: 0a 09 40 6d 6b 64 69 72 20 2d 70 20 24 28 44 45 ..@mkdir -p $(DE
1d30: 53 54 44 49 52 29 24 28 70 6b 67 6c 69 62 64 69 STDIR)$(pkglibdi
1d40: 72 29 0a 09 24 28 49 4e 53 54 41 4c 4c 5f 44 41 r)..$(INSTALL_DA
1d50: 54 41 29 20 70 6b 67 49 6e 64 65 78 2e 74 63 6c TA) pkgIndex.tcl
1d60: 20 24 28 44 45 53 54 44 49 52 29 24 28 70 6b 67 $(DESTDIR)$(pkg
1d70: 6c 69 62 64 69 72 29 0a 09 40 6c 69 73 74 3d 27 libdir)..@list='
1d80: 24 28 50 4b 47 5f 45 58 54 52 41 5f 46 49 4c 45 $(PKG_EXTRA_FILE
1d90: 53 29 27 3b 20 66 6f 72 20 70 20 69 6e 20 24 24 S)'; for p in $$
1da0: 6c 69 73 74 3b 20 64 6f 20 5c 0a 09 20 20 69 66 list; do \.. if
1db0: 20 74 65 73 74 20 2d 66 20 24 28 73 72 63 64 69 test -f $(srcdi
1dc0: 72 29 2f 24 24 70 3b 20 74 68 65 6e 20 5c 0a 09 r)/$$p; then \..
1dd0: 20 20 20 20 64 65 73 74 70 3d 60 62 61 73 65 6e destp=`basen
1de0: 61 6d 65 20 24 24 70 60 3b 20 5c 0a 09 20 20 20 ame $$p`; \..
1df0: 20 65 63 68 6f 20 22 20 49 6e 73 74 61 6c 6c 20 echo " Install
1e00: 24 24 64 65 73 74 70 20 24 28 44 45 53 54 44 49 $$destp $(DESTDI
1e10: 52 29 24 28 70 6b 67 6c 69 62 64 69 72 29 2f 24 R)$(pkglibdir)/$
1e20: 24 64 65 73 74 70 22 3b 20 5c 0a 09 20 20 20 20 $destp"; \..
1e30: 24 28 49 4e 53 54 41 4c 4c 5f 44 41 54 41 29 20 $(INSTALL_DATA)
1e40: 24 28 73 72 63 64 69 72 29 2f 24 24 70 20 24 28 $(srcdir)/$$p $(
1e50: 44 45 53 54 44 49 52 29 24 28 70 6b 67 6c 69 62 DESTDIR)$(pkglib
1e60: 64 69 72 29 2f 24 24 64 65 73 74 70 3b 20 5c 0a dir)/$$destp; \.
1e70: 09 20 20 66 69 3b 20 5c 0a 09 64 6f 6e 65 0a 0a . fi; \..done..
1e80: 23 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d #===============
1e90: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
1ea0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
1eb0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
1ec0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 0a 23 20 54 68 69 73 =========.# This
1ed0: 20 72 75 6c 65 20 69 6e 73 74 61 6c 6c 73 20 70 rule installs p
1ee0: 6c 61 74 66 6f 72 6d 2d 69 6e 64 65 70 65 6e 64 latform-independ
1ef0: 65 6e 74 20 66 69 6c 65 73 2c 20 73 75 63 68 20 ent files, such
1f00: 61 73 20 68 65 61 64 65 72 20 66 69 6c 65 73 2e as header files.
1f10: 0a 23 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d .#==============
1f20: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
1f30: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
1f40: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
1f50: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 0a 0a 69 6e 73 74 ==========..inst
1f60: 61 6c 6c 2d 6c 69 62 72 61 72 69 65 73 3a 20 6c all-libraries: l
1f70: 69 62 72 61 72 69 65 73 0a 0a 23 3d 3d 3d 3d 3d ibraries..#=====
1f80: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
1f90: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
1fa0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
1fb0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
1fc0: 3d 3d 3d 0a 23 20 49 6e 73 74 61 6c 6c 20 64 6f ===.# Install do
1fd0: 63 75 6d 65 6e 74 61 74 69 6f 6e 2e 20 20 55 6e cumentation. Un
1fe0: 69 78 20 6d 61 6e 70 61 67 65 73 20 73 68 6f 75 ix manpages shou
1ff0: 6c 64 20 67 6f 20 69 6e 20 74 68 65 20 24 28 6d ld go in the $(m
2000: 61 6e 64 69 72 29 0a 23 20 64 69 72 65 63 74 6f andir).# directo
2010: 72 79 2e 0a 23 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ry..#===========
2020: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
2030: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
2040: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
2050: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 0a 0a 69 =============..i
2060: 6e 73 74 61 6c 6c 2d 64 6f 63 3a 20 64 6f 63 0a nstall-doc: doc.
2070: 09 40 6d 6b 64 69 72 20 2d 70 20 24 28 44 45 53 .@mkdir -p $(DES
2080: 54 44 49 52 29 24 28 70 6b 67 6c 69 62 64 69 72 TDIR)$(pkglibdir
2090: 29 2f 68 74 6d 6c 0a 09 40 6c 69 73 74 3d 27 24 )/html..@list='$
20a0: 28 50 4b 47 5f 4d 41 4e 5f 50 41 47 45 53 29 27 (PKG_MAN_PAGES)'
20b0: 3b 20 66 6f 72 20 70 20 69 6e 20 24 24 6c 69 73 ; for p in $$lis
20c0: 74 3b 20 64 6f 20 5c 0a 09 09 68 74 6d 6c 3d 60 t; do \...html=`
20d0: 62 61 73 65 6e 61 6d 65 20 24 24 70 7c 73 65 64 basename $$p|sed
20e0: 20 2d 65 20 27 73 2f 2e 5b 5e 2e 5d 2a 24 24 2f -e 's/.[^.]*$$/
20f0: 2f 27 60 2e 68 74 6d 6c 3b 20 5c 0a 09 20 20 09 /'`.html; \.. .
2100: 24 28 49 4e 53 54 41 4c 4c 5f 44 41 54 41 29 20 $(INSTALL_DATA)
2110: 24 28 73 72 63 64 69 72 29 2f 64 6f 63 2f 24 24 $(srcdir)/doc/$$
2120: 68 74 6d 6c 20 24 28 44 45 53 54 44 49 52 29 24 html $(DESTDIR)$
2130: 28 70 6b 67 6c 69 62 64 69 72 29 2f 68 74 6d 6c (pkglibdir)/html
2140: 2f 3b 20 5c 0a 09 64 6f 6e 65 0a 0a 68 74 6d 6c /; \..done..html
2150: 3a 0a 09 63 64 20 24 28 73 72 63 64 69 72 29 2f :..cd $(srcdir)/
2160: 64 6f 63 3b 20 5c 0a 09 6c 69 73 74 3d 27 24 28 doc; \..list='$(
2170: 50 4b 47 5f 4d 41 4e 5f 50 41 47 45 53 29 27 3b PKG_MAN_PAGES)';
2180: 20 66 6f 72 20 70 20 69 6e 20 24 24 6c 69 73 74 for p in $$list
2190: 3b 20 64 6f 20 5c 0a 09 09 68 74 6d 6c 3d 60 62 ; do \...html=`b
21a0: 61 73 65 6e 61 6d 65 20 24 24 70 7c 73 65 64 20 asename $$p|sed
21b0: 2d 65 20 27 73 2f 2e 5b 5e 2e 5d 2a 24 24 2f 2f -e 's/.[^.]*$$//
21c0: 27 60 2e 68 74 6d 6c 3b 20 5c 0a 09 09 65 63 68 '`.html; \...ech
21d0: 6f 20 22 43 72 65 61 74 69 6e 67 20 5c 22 24 24 o "Creating \"$$
21e0: 68 74 6d 6c 5c 22 20 66 72 6f 6d 20 5c 22 24 24 html\" from \"$$
21f0: 70 5c 22 22 3b 20 5c 0a 09 09 72 6d 20 2d 66 20 p\""; \...rm -f
2200: 24 24 68 74 6d 6c 3b 20 5c 0a 09 09 67 72 6f 66 $$html; \...grof
2210: 66 20 2d 54 61 73 63 69 69 20 2d 6d 61 6e 20 24 f -Tascii -man $
2220: 24 70 20 5c 0a 09 09 7c 20 72 6d 61 6e 20 2d 66 $p \...| rman -f
2230: 20 48 54 4d 4c 20 5c 0a 09 09 09 3e 20 24 24 68 HTML \....> $$h
2240: 74 6d 6c 3b 20 5c 0a 09 64 6f 6e 65 0a 0a 23 20 tml; \..done..#
2250: 50 69 70 69 6e 67 20 74 6f 20 63 61 74 20 69 73 Piping to cat is
2260: 20 6e 65 63 65 73 73 61 72 79 20 6f 6e 20 57 69 necessary on Wi
2270: 6e 64 6f 77 73 20 74 6f 20 73 65 65 20 74 68 65 ndows to see the
2280: 20 6f 75 74 70 75 74 2c 20 61 6e 64 0a 23 20 68 output, and.# h
2290: 61 72 6d 6c 65 73 73 20 6f 6e 20 55 6e 69 78 0a armless on Unix.
22a0: 74 65 73 74 3a 20 62 69 6e 61 72 69 65 73 20 6c test: binaries l
22b0: 69 62 72 61 72 69 65 73 0a 09 24 28 57 49 53 48 ibraries..$(WISH
22c0: 29 20 60 40 43 59 47 50 41 54 48 40 20 24 28 73 ) `@CYGPATH@ $(s
22d0: 72 63 64 69 72 29 2f 74 65 73 74 73 2f 61 6c 6c rcdir)/tests/all
22e0: 2e 74 63 6c 60 20 24 28 54 45 53 54 46 4c 41 47 .tcl` $(TESTFLAG
22f0: 53 29 20 7c 20 63 61 74 0a 0a 64 65 6d 6f 3a 20 S) | cat..demo:
2300: 62 69 6e 61 72 69 65 73 20 6c 69 62 72 61 72 69 binaries librari
2310: 65 73 0a 09 24 28 57 49 53 48 29 20 60 40 43 59 es..$(WISH) `@CY
2320: 47 50 41 54 48 40 20 24 28 73 72 63 64 69 72 29 GPATH@ $(srcdir)
2330: 2f 64 65 6d 6f 73 2f 64 65 62 75 67 2e 74 63 6c /demos/debug.tcl
2340: 60 20 24 28 54 45 53 54 46 4c 41 47 53 29 20 7c ` $(TESTFLAGS) |
2350: 20 63 61 74 0a 0a 73 68 65 6c 6c 3a 20 62 69 6e cat..shell: bin
2360: 61 72 69 65 73 20 6c 69 62 72 61 72 69 65 73 0a aries libraries.
2370: 09 40 24 28 57 49 53 48 29 20 24 28 53 43 52 49 .@$(WISH) $(SCRI
2380: 50 54 29 0a 0a 67 64 62 3a 0a 09 24 28 54 43 4c PT)..gdb:..$(TCL
2390: 53 48 5f 45 4e 56 29 20 67 64 62 20 24 28 57 49 SH_ENV) gdb $(WI
23a0: 53 48 5f 50 52 4f 47 29 20 24 28 53 43 52 49 50 SH_PROG) $(SCRIP
23b0: 54 29 0a 0a 56 41 4c 47 52 49 4e 44 41 52 47 53 T)..VALGRINDARGS
23c0: 3d 2d 2d 74 6f 6f 6c 3d 6d 65 6d 63 68 65 63 6b =--tool=memcheck
23d0: 20 2d 2d 6e 75 6d 2d 63 61 6c 6c 65 72 73 3d 38 --num-callers=8
23e0: 20 2d 2d 6c 65 61 6b 2d 72 65 73 6f 6c 75 74 69 --leak-resoluti
23f0: 6f 6e 3d 68 69 67 68 20 2d 2d 6c 65 61 6b 2d 63 on=high --leak-c
2400: 68 65 63 6b 3d 79 65 73 20 2d 2d 73 68 6f 77 2d heck=yes --show-
2410: 72 65 61 63 68 61 62 6c 65 3d 79 65 73 20 2d 76 reachable=yes -v
2420: 0a 0a 76 61 6c 67 72 69 6e 64 3a 20 62 69 6e 61 ..valgrind: bina
2430: 72 69 65 73 20 6c 69 62 72 61 72 69 65 73 0a 09 ries libraries..
2440: 24 28 54 43 4c 53 48 5f 45 4e 56 29 20 76 61 6c $(TCLSH_ENV) val
2450: 67 72 69 6e 64 20 24 28 56 41 4c 47 52 49 4e 44 grind $(VALGRIND
2460: 41 52 47 53 29 20 24 28 54 43 4c 53 48 5f 50 52 ARGS) $(TCLSH_PR
2470: 4f 47 29 20 60 40 43 59 47 50 41 54 48 40 20 24 OG) `@CYGPATH@ $
2480: 28 73 72 63 64 69 72 29 2f 74 65 73 74 73 2f 61 (srcdir)/tests/a
2490: 6c 6c 2e 74 63 6c 60 20 24 28 54 45 53 54 46 4c ll.tcl` $(TESTFL
24a0: 41 47 53 29 20 7c 20 63 61 74 0a 0a 76 61 6c 67 AGS) | cat..valg
24b0: 72 69 6e 64 73 68 65 6c 6c 3a 20 62 69 6e 61 72 rindshell: binar
24c0: 69 65 73 20 6c 69 62 72 61 72 69 65 73 0a 09 24 ies libraries..$
24d0: 28 54 43 4c 53 48 5f 45 4e 56 29 20 76 61 6c 67 (TCLSH_ENV) valg
24e0: 72 69 6e 64 20 24 28 56 41 4c 47 52 49 4e 44 41 rind $(VALGRINDA
24f0: 52 47 53 29 20 24 28 54 43 4c 53 48 5f 50 52 4f RGS) $(TCLSH_PRO
2500: 47 29 20 24 28 53 43 52 49 50 54 29 0a 0a 64 65 G) $(SCRIPT)..de
2510: 70 65 6e 64 3a 0a 0a 23 3d 3d 3d 3d 3d 3d 3d 3d pend:..#========
2520: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
2530: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
2540: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
2550: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
2560: 0a 23 20 24 28 50 4b 47 5f 4c 49 42 5f 46 49 4c .# $(PKG_LIB_FIL
2570: 45 29 20 73 68 6f 75 6c 64 20 62 65 20 6c 69 73 E) should be lis
2580: 74 65 64 20 61 73 20 70 61 72 74 20 6f 66 20 74 ted as part of t
2590: 68 65 20 42 49 4e 41 52 49 45 53 20 76 61 72 69 he BINARIES vari
25a0: 61 62 6c 65 0a 23 20 6d 65 6e 74 69 6f 6e 65 64 able.# mentioned
25b0: 20 61 62 6f 76 65 2e 20 20 54 68 61 74 20 77 69 above. That wi
25c0: 6c 6c 20 65 6e 73 75 72 65 20 74 68 61 74 20 74 ll ensure that t
25d0: 68 69 73 20 74 61 72 67 65 74 20 69 73 20 62 75 his target is bu
25e0: 69 6c 74 20 77 68 65 6e 20 79 6f 75 0a 23 20 72 ilt when you.# r
25f0: 75 6e 20 22 6d 61 6b 65 20 62 69 6e 61 72 69 65 un "make binarie
2600: 73 22 2e 0a 23 0a 23 20 54 68 65 20 24 28 50 4b s"..#.# The $(PK
2610: 47 5f 4f 42 4a 45 43 54 53 29 20 6f 62 6a 65 63 G_OBJECTS) objec
2620: 74 73 20 61 72 65 20 63 72 65 61 74 65 64 20 61 ts are created a
2630: 6e 64 20 6c 69 6e 6b 65 64 20 69 6e 74 6f 20 74 nd linked into t
2640: 68 65 20 66 69 6e 61 6c 0a 23 20 6c 69 62 72 61 he final.# libra
2650: 72 79 2e 20 20 49 6e 20 6d 6f 73 74 20 63 61 73 ry. In most cas
2660: 65 73 20 74 68 65 73 65 20 6f 62 6a 65 63 74 20 es these object
2670: 66 69 6c 65 73 20 77 69 6c 6c 20 63 6f 72 72 65 files will corre
2680: 73 70 6f 6e 64 20 74 6f 20 74 68 65 0a 23 20 73 spond to the.# s
2690: 6f 75 72 63 65 20 66 69 6c 65 73 20 61 62 6f 76 ource files abov
26a0: 65 2e 0a 23 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d e..#============
26b0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
26c0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
26d0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
26e0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 0a 0a 24 28 ============..$(
26f0: 50 4b 47 5f 4c 49 42 5f 46 49 4c 45 29 3a 20 24 PKG_LIB_FILE): $
2700: 28 50 4b 47 5f 4f 42 4a 45 43 54 53 29 0a 09 2d (PKG_OBJECTS)..-
2710: 72 6d 20 2d 66 20 24 28 50 4b 47 5f 4c 49 42 5f rm -f $(PKG_LIB_
2720: 46 49 4c 45 29 0a 09 24 7b 4d 41 4b 45 5f 4c 49 FILE)..${MAKE_LI
2730: 42 7d 0a 09 24 28 52 41 4e 4c 49 42 29 20 24 28 B}..$(RANLIB) $(
2740: 50 4b 47 5f 4c 49 42 5f 46 49 4c 45 29 0a 0a 23 PKG_LIB_FILE)..#
2750: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
2760: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
2770: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
2780: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
2790: 3d 3d 3d 3d 3d 3d 3d 3d 0a 23 20 49 6e 20 74 68 ========.# In th
27a0: 65 20 66 6f 6c 6c 6f 77 69 6e 67 20 6c 69 6e 65 e following line
27b0: 73 2c 20 24 28 73 72 63 64 69 72 29 20 72 65 66 s, $(srcdir) ref
27c0: 65 72 73 20 74 6f 20 74 68 65 20 74 6f 70 6c 65 ers to the tople
27d0: 76 65 6c 20 64 69 72 65 63 74 6f 72 79 0a 23 20 vel directory.#
27e0: 63 6f 6e 74 61 69 6e 69 6e 67 20 79 6f 75 72 20 containing your
27f0: 65 78 74 65 6e 73 69 6f 6e 2e 20 20 49 66 20 79 extension. If y
2800: 6f 75 72 20 73 6f 75 72 63 65 73 20 61 72 65 20 our sources are
2810: 69 6e 20 61 20 73 75 62 64 69 72 65 63 74 6f 72 in a subdirector
2820: 79 2c 0a 23 20 79 6f 75 20 77 69 6c 6c 20 68 61 y,.# you will ha
2830: 76 65 20 74 6f 20 6d 6f 64 69 66 79 20 74 68 65 ve to modify the
2840: 20 70 61 74 68 73 20 74 6f 20 72 65 66 6c 65 63 paths to reflec
2850: 74 20 74 68 69 73 3a 0a 23 0a 23 20 74 6b 70 6b t this:.#.# tkpk
2860: 67 2e 24 28 4f 42 4a 45 58 54 29 3a 20 24 28 73 g.$(OBJEXT): $(s
2870: 72 63 64 69 72 29 2f 73 72 63 2f 77 69 6e 2f 74 rcdir)/src/win/t
2880: 6b 70 6b 67 2e 63 0a 23 20 09 24 28 43 4f 4d 50 kpkg.c.# .$(COMP
2890: 49 4c 45 29 20 2d 63 20 60 40 43 59 47 50 41 54 ILE) -c `@CYGPAT
28a0: 48 40 20 24 28 73 72 63 64 69 72 29 2f 67 65 6e H@ $(srcdir)/gen
28b0: 65 72 69 63 2f 74 6b 70 6b 67 2e 63 60 20 2d 6f eric/tkpkg.c` -o
28c0: 20 24 40 0a 23 0a 23 20 53 65 74 74 69 6e 67 20 $@.#.# Setting
28d0: 74 68 65 20 56 50 41 54 48 20 76 61 72 69 61 62 the VPATH variab
28e0: 6c 65 20 74 6f 20 61 20 6c 69 73 74 20 6f 66 20 le to a list of
28f0: 70 61 74 68 73 20 77 69 6c 6c 20 63 61 75 73 65 paths will cause
2900: 20 74 68 65 0a 23 20 6d 61 6b 65 66 69 6c 65 20 the.# makefile
2910: 74 6f 20 6c 6f 6f 6b 20 69 6e 74 6f 20 74 68 65 to look into the
2920: 73 65 20 70 61 74 68 73 20 77 68 65 6e 20 72 65 se paths when re
2930: 73 6f 6c 76 69 6e 67 20 2e 63 20 74 6f 20 2e 6f solving .c to .o
2940: 62 6a 0a 23 20 64 65 70 65 6e 64 65 6e 63 69 65 bj.# dependencie
2950: 73 2e 0a 23 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d s..#============
2960: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
2970: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
2980: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
2990: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 0a 0a 23 20 ============..#
29a0: 49 20 61 64 64 65 64 20 6c 65 61 64 69 6e 67 20 I added leading
29b0: 24 28 73 72 63 64 69 72 29 20 62 65 63 61 75 73 $(srcdir) becaus
29c0: 65 20 61 75 74 6f 63 6f 6e 66 20 32 2e 35 33 20 e autoconf 2.53
29d0: 73 74 72 69 70 73 20 69 74 20 6f 66 66 0a 56 50 strips it off.VP
29e0: 41 54 48 20 3d 20 24 28 73 72 63 64 69 72 29 3a ATH = $(srcdir):
29f0: 24 28 73 72 63 64 69 72 29 2f 67 65 6e 65 72 69 $(srcdir)/generi
2a00: 63 3a 24 28 73 72 63 64 69 72 29 2f 75 6e 69 78 c:$(srcdir)/unix
2a10: 3a 24 28 73 72 63 64 69 72 29 2f 77 69 6e 0a 0a :$(srcdir)/win..
2a20: 23 20 49 20 77 6f 75 6c 64 20 70 72 65 66 65 72 # I would prefer
2a30: 20 74 6f 20 75 73 65 20 24 3c 20 6f 76 65 72 20 to use $< over
2a40: 24 3f 2c 20 62 75 74 20 46 72 65 65 42 53 44 27 $?, but FreeBSD'
2a50: 73 20 63 61 6e 27 74 20 68 61 6e 64 6c 65 20 69 s can't handle i
2a60: 74 2c 20 61 6e 64 0a 23 20 77 69 74 68 20 6f 6e t, and.# with on
2a70: 6c 79 20 6f 6e 65 20 70 72 65 72 65 71 2c 20 24 ly one prereq, $
2a80: 3f 20 69 73 20 73 75 66 66 69 63 69 65 6e 74 0a ? is sufficient.
2a90: 74 6b 54 61 62 6c 65 2e 74 63 6c 2e 68 3a 20 24 tkTable.tcl.h: $
2aa0: 28 73 72 63 64 69 72 29 2f 6c 69 62 72 61 72 79 (srcdir)/library
2ab0: 2f 74 6b 54 61 62 6c 65 2e 74 63 6c 0a 09 73 65 /tkTable.tcl..se
2ac0: 64 20 2d 65 20 27 2f 5e 5c 23 2f 64 27 20 2d 65 d -e '/^\#/d' -e
2ad0: 20 27 2f 5e 24 24 2f 64 27 20 2d 65 20 27 73 2f '/^$$/d' -e 's/
2ae0: 5c 5c 2f 5c 5c 5c 5c 2f 67 27 20 2d 65 20 27 73 \\/\\\\/g' -e 's
2af0: 2f 5c 22 2f 5c 5c 22 2f 67 27 20 2d 65 20 27 73 /\"/\\"/g' -e 's
2b00: 2f 5e 2f 22 2f 27 20 2d 65 20 27 73 2f 24 24 2f /^/"/' -e 's/$$/
2b10: 5c 5c 6e 22 2f 27 20 3c 20 60 40 43 59 47 50 41 \\n"/' < `@CYGPA
2b20: 54 48 40 20 24 3f 60 20 3e 20 27 24 40 27 20 7c TH@ $?` > '$@' |
2b30: 7c 20 7b 20 72 6d 20 2d 66 20 24 40 3b 20 65 78 | { rm -f $@; ex
2b40: 69 74 20 31 3b 20 7d 0a 0a 2e 53 55 46 46 49 58 it 1; }...SUFFIX
2b50: 45 53 3a 20 2e 63 20 2e 24 28 4f 42 4a 45 58 54 ES: .c .$(OBJEXT
2b60: 29 0a 0a 2e 63 2e 40 4f 42 4a 45 58 54 40 3a 0a )...c.@OBJEXT@:.
2b70: 09 24 28 43 4f 4d 50 49 4c 45 29 20 2d 63 20 60 .$(COMPILE) -c `
2b80: 40 43 59 47 50 41 54 48 40 20 24 3c 60 20 2d 6f @CYGPATH@ $<` -o
2b90: 20 24 40 0a 0a 70 6b 67 49 6e 64 65 78 2e 74 63 $@..pkgIndex.tc
2ba0: 6c 3a 0a 09 28 5c 0a 09 65 63 68 6f 20 27 69 66 l:..(\..echo 'if
2bb0: 20 7b 5b 63 61 74 63 68 20 7b 70 61 63 6b 61 67 {[catch {packag
2bc0: 65 20 72 65 71 75 69 72 65 20 54 63 6c 20 38 2e e require Tcl 8.
2bd0: 32 7d 5d 7d 20 72 65 74 75 72 6e 27 3b 5c 0a 09 2}]} return';\..
2be0: 65 63 68 6f 20 27 70 61 63 6b 61 67 65 20 69 66 echo 'package if
2bf0: 6e 65 65 64 65 64 20 24 28 50 41 43 4b 41 47 45 needed $(PACKAGE
2c00: 5f 4e 41 4d 45 29 20 24 28 50 41 43 4b 41 47 45 _NAME) $(PACKAGE
2c10: 5f 56 45 52 53 49 4f 4e 29 20 5c 0a 09 20 20 20 _VERSION) \..
2c20: 20 5b 6c 69 73 74 20 6c 6f 61 64 20 5b 66 69 6c [list load [fil
2c30: 65 20 6a 6f 69 6e 20 24 24 64 69 72 20 24 28 50 e join $$dir $(P
2c40: 4b 47 5f 4c 49 42 5f 46 49 4c 45 29 5d 20 24 28 KG_LIB_FILE)] $(
2c50: 50 41 43 4b 41 47 45 5f 4e 41 4d 45 29 5d 27 5c PACKAGE_NAME)]'\
2c60: 0a 09 29 20 3e 20 70 6b 67 49 6e 64 65 78 2e 74 ..) > pkgIndex.t
2c70: 63 6c 0a 0a 23 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d cl..#===========
2c80: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
2c90: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
2ca0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
2cb0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 0a 23 20 =============.#
2cc0: 45 6e 64 20 6f 66 20 75 73 65 72 2d 64 65 66 69 End of user-defi
2cd0: 6e 61 62 6c 65 20 73 65 63 74 69 6f 6e 0a 23 3d nable section.#=
2ce0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
2cf0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
2d00: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
2d10: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
2d20: 3d 3d 3d 3d 3d 3d 3d 0a 0a 23 3d 3d 3d 3d 3d 3d =======..#======
2d30: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
2d40: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
2d50: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
2d60: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
2d70: 3d 3d 0a 23 20 44 6f 6e 27 74 20 6d 6f 64 69 66 ==.# Don't modif
2d80: 79 20 74 68 65 20 66 69 6c 65 20 74 6f 20 63 6c y the file to cl
2d90: 65 61 6e 20 68 65 72 65 2e 20 20 49 6e 73 74 65 ean here. Inste
2da0: 61 64 2c 20 73 65 74 20 74 68 65 20 22 43 4c 45 ad, set the "CLE
2db0: 41 4e 46 49 4c 45 53 22 0a 23 20 76 61 72 69 61 ANFILES".# varia
2dc0: 62 6c 65 20 69 6e 20 63 6f 6e 66 69 67 75 72 65 ble in configure
2dd0: 2e 69 6e 0a 23 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d .in.#===========
2de0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
2df0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
2e00: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
2e10: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 0a 0a 63 =============..c
2e20: 6c 65 61 6e 3a 0a 09 2d 74 65 73 74 20 2d 7a 20 lean:..-test -z
2e30: 22 24 28 42 49 4e 41 52 49 45 53 29 22 20 7c 7c "$(BINARIES)" ||
2e40: 20 72 6d 20 2d 66 20 24 28 42 49 4e 41 52 49 45 rm -f $(BINARIE
2e50: 53 29 0a 09 2d 72 6d 20 2d 66 20 2a 2e 24 28 4f S)..-rm -f *.$(O
2e60: 42 4a 45 58 54 29 20 63 6f 72 65 20 2a 2e 63 6f BJEXT) core *.co
2e70: 72 65 0a 09 2d 74 65 73 74 20 2d 7a 20 22 24 28 re..-test -z "$(
2e80: 43 4c 45 41 4e 46 49 4c 45 53 29 22 20 7c 7c 20 CLEANFILES)" ||
2e90: 72 6d 20 2d 66 20 24 28 43 4c 45 41 4e 46 49 4c rm -f $(CLEANFIL
2ea0: 45 53 29 0a 0a 64 69 73 74 63 6c 65 61 6e 3a 20 ES)..distclean:
2eb0: 63 6c 65 61 6e 0a 09 2d 72 6d 20 2d 66 20 2a 2e clean..-rm -f *.
2ec0: 74 61 62 2e 63 0a 09 2d 72 6d 20 2d 66 20 24 28 tab.c..-rm -f $(
2ed0: 43 4f 4e 46 49 47 5f 43 4c 45 41 4e 5f 46 49 4c CONFIG_CLEAN_FIL
2ee0: 45 53 29 0a 09 2d 72 6d 20 2d 66 20 63 6f 6e 66 ES)..-rm -f conf
2ef0: 69 67 2e 63 61 63 68 65 20 63 6f 6e 66 69 67 2e ig.cache config.
2f00: 6c 6f 67 20 63 6f 6e 66 69 67 2e 73 74 61 74 75 log config.statu
2f10: 73 0a 0a 23 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d s..#============
2f20: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
2f30: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
2f40: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
2f50: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 0a 23 20 49 ============.# I
2f60: 6e 73 74 61 6c 6c 20 62 69 6e 61 72 79 20 6f 62 nstall binary ob
2f70: 6a 65 63 74 20 6c 69 62 72 61 72 69 65 73 2e 20 ject libraries.
2f80: 20 4f 6e 20 57 69 6e 64 6f 77 73 20 74 68 69 73 On Windows this
2f90: 20 69 6e 63 6c 75 64 65 73 20 62 6f 74 68 20 2e includes both .
2fa0: 64 6c 6c 20 61 6e 64 0a 23 20 2e 6c 69 62 20 66 dll and.# .lib f
2fb0: 69 6c 65 73 2e 20 20 42 65 63 61 75 73 65 20 74 iles. Because t
2fc0: 68 65 20 2e 6c 69 62 20 66 69 6c 65 73 20 61 72 he .lib files ar
2fd0: 65 20 6e 6f 74 20 65 78 70 6c 69 63 69 74 6c 79 e not explicitly
2fe0: 20 6c 69 73 74 65 64 20 61 6e 79 77 68 65 72 65 listed anywhere
2ff0: 2c 0a 23 20 77 65 20 6e 65 65 64 20 74 6f 20 64 ,.# we need to d
3000: 65 64 75 63 65 20 74 68 65 69 72 20 65 78 69 73 educe their exis
3010: 74 65 6e 63 65 20 66 72 6f 6d 20 74 68 65 20 2e tence from the .
3020: 64 6c 6c 20 66 69 6c 65 20 6f 66 20 74 68 65 20 dll file of the
3030: 73 61 6d 65 20 6e 61 6d 65 2e 0a 23 0a 23 20 59 same name..#.# Y
3040: 6f 75 20 73 68 6f 75 6c 64 20 6e 6f 74 20 68 61 ou should not ha
3050: 76 65 20 74 6f 20 6d 6f 64 69 66 79 20 74 68 69 ve to modify thi
3060: 73 20 74 61 72 67 65 74 2e 0a 23 3d 3d 3d 3d 3d s target..#=====
3070: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
3080: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
3090: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
30a0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
30b0: 3d 3d 3d 0a 0a 69 6e 73 74 61 6c 6c 2d 6c 69 62 ===..install-lib
30c0: 2d 62 69 6e 61 72 69 65 73 3a 0a 09 40 6d 6b 64 -binaries:..@mkd
30d0: 69 72 20 2d 70 20 24 28 44 45 53 54 44 49 52 29 ir -p $(DESTDIR)
30e0: 24 28 70 6b 67 6c 69 62 64 69 72 29 0a 09 40 6c $(pkglibdir)..@l
30f0: 69 73 74 3d 27 24 28 6c 69 62 5f 42 49 4e 41 52 ist='$(lib_BINAR
3100: 49 45 53 29 27 3b 20 66 6f 72 20 70 20 69 6e 20 IES)'; for p in
3110: 24 24 6c 69 73 74 3b 20 64 6f 20 5c 0a 09 20 20 $$list; do \..
3120: 69 66 20 74 65 73 74 20 2d 66 20 24 24 70 3b 20 if test -f $$p;
3130: 74 68 65 6e 20 5c 0a 09 20 20 20 20 65 63 68 6f then \.. echo
3140: 20 22 20 24 28 49 4e 53 54 41 4c 4c 5f 50 52 4f " $(INSTALL_PRO
3150: 47 52 41 4d 29 20 24 24 70 20 24 28 44 45 53 54 GRAM) $$p $(DEST
3160: 44 49 52 29 24 28 70 6b 67 6c 69 62 64 69 72 29 DIR)$(pkglibdir)
3170: 2f 24 24 70 22 3b 20 5c 0a 09 20 20 20 20 24 28 /$$p"; \.. $(
3180: 49 4e 53 54 41 4c 4c 5f 50 52 4f 47 52 41 4d 29 INSTALL_PROGRAM)
3190: 20 24 24 70 20 24 28 44 45 53 54 44 49 52 29 24 $$p $(DESTDIR)$
31a0: 28 70 6b 67 6c 69 62 64 69 72 29 2f 24 24 70 3b (pkglibdir)/$$p;
31b0: 20 5c 0a 09 20 20 20 20 65 63 68 6f 20 22 20 24 \.. echo " $
31c0: 28 52 41 4e 4c 49 42 29 20 24 28 44 45 53 54 44 (RANLIB) $(DESTD
31d0: 49 52 29 24 28 70 6b 67 6c 69 62 64 69 72 29 2f IR)$(pkglibdir)/
31e0: 24 24 70 22 3b 20 5c 0a 09 20 20 20 20 24 28 52 $$p"; \.. $(R
31f0: 41 4e 4c 49 42 29 20 24 28 44 45 53 54 44 49 52 ANLIB) $(DESTDIR
3200: 29 24 28 70 6b 67 6c 69 62 64 69 72 29 2f 24 24 )$(pkglibdir)/$$
3210: 70 3b 20 5c 0a 09 20 20 20 20 65 78 74 3d 60 65 p; \.. ext=`e
3220: 63 68 6f 20 24 24 70 7c 73 65 64 20 2d 65 20 22 cho $$p|sed -e "
3230: 73 2f 2e 2a 5c 2e 2f 2f 22 60 3b 20 5c 0a 09 20 s/.*\.//"`; \..
3240: 20 20 20 69 66 20 74 65 73 74 20 22 78 24 24 65 if test "x$$e
3250: 78 74 22 20 3d 20 22 78 64 6c 6c 22 3b 20 74 68 xt" = "xdll"; th
3260: 65 6e 20 5c 0a 09 09 6c 69 62 3d 60 62 61 73 65 en \...lib=`base
3270: 6e 61 6d 65 20 24 24 70 7c 73 65 64 20 2d 65 20 name $$p|sed -e
3280: 27 73 2f 2e 5b 5e 2e 5d 2a 24 24 2f 2f 27 60 2e 's/.[^.]*$$//'`.
3290: 6c 69 62 3b 20 5c 0a 09 09 69 66 20 74 65 73 74 lib; \...if test
32a0: 20 2d 66 20 24 24 6c 69 62 3b 20 74 68 65 6e 20 -f $$lib; then
32b0: 5c 0a 09 09 20 20 20 20 65 63 68 6f 20 22 20 24 \... echo " $
32c0: 28 49 4e 53 54 41 4c 4c 5f 44 41 54 41 29 20 24 (INSTALL_DATA) $
32d0: 24 6c 69 62 20 24 28 44 45 53 54 44 49 52 29 24 $lib $(DESTDIR)$
32e0: 28 70 6b 67 6c 69 62 64 69 72 29 2f 24 24 6c 69 (pkglibdir)/$$li
32f0: 62 22 3b 20 5c 0a 09 20 20 20 20 20 20 20 20 20 b"; \..
3300: 20 20 20 24 28 49 4e 53 54 41 4c 4c 5f 44 41 54 $(INSTALL_DAT
3310: 41 29 20 24 24 6c 69 62 20 24 28 44 45 53 54 44 A) $$lib $(DESTD
3320: 49 52 29 24 28 70 6b 67 6c 69 62 64 69 72 29 2f IR)$(pkglibdir)/
3330: 24 24 6c 69 62 3b 20 5c 0a 09 09 66 69 3b 20 5c $$lib; \...fi; \
3340: 0a 09 20 20 20 20 66 69 3b 20 5c 0a 09 20 20 66 .. fi; \.. f
3350: 69 3b 20 5c 0a 09 64 6f 6e 65 0a 09 40 6c 69 73 i; \..done..@lis
3360: 74 3d 27 24 28 50 4b 47 5f 54 43 4c 5f 53 4f 55 t='$(PKG_TCL_SOU
3370: 52 43 45 53 29 27 3b 20 66 6f 72 20 70 20 69 6e RCES)'; for p in
3380: 20 24 24 6c 69 73 74 3b 20 64 6f 20 5c 0a 09 20 $$list; do \..
3390: 20 69 66 20 74 65 73 74 20 2d 66 20 24 28 73 72 if test -f $(sr
33a0: 63 64 69 72 29 2f 24 24 70 3b 20 74 68 65 6e 20 cdir)/$$p; then
33b0: 5c 0a 09 20 20 20 20 64 65 73 74 70 3d 60 62 61 \.. destp=`ba
33c0: 73 65 6e 61 6d 65 20 24 24 70 60 3b 20 5c 0a 09 sename $$p`; \..
33d0: 20 20 20 20 65 63 68 6f 20 22 20 49 6e 73 74 61 echo " Insta
33e0: 6c 6c 20 24 24 64 65 73 74 70 20 24 28 44 45 53 ll $$destp $(DES
33f0: 54 44 49 52 29 24 28 70 6b 67 6c 69 62 64 69 72 TDIR)$(pkglibdir
3400: 29 2f 24 24 64 65 73 74 70 22 3b 20 5c 0a 09 20 )/$$destp"; \..
3410: 20 20 20 24 28 49 4e 53 54 41 4c 4c 5f 44 41 54 $(INSTALL_DAT
3420: 41 29 20 24 28 73 72 63 64 69 72 29 2f 24 24 70 A) $(srcdir)/$$p
3430: 20 24 28 44 45 53 54 44 49 52 29 24 28 70 6b 67 $(DESTDIR)$(pkg
3440: 6c 69 62 64 69 72 29 2f 24 24 64 65 73 74 70 3b libdir)/$$destp;
3450: 20 5c 0a 09 20 20 66 69 3b 20 5c 0a 09 64 6f 6e \.. fi; \..don
3460: 65 0a 0a 23 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d e..#============
3470: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
3480: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
3490: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
34a0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 0a 23 20 49 ============.# I
34b0: 6e 73 74 61 6c 6c 20 62 69 6e 61 72 79 20 65 78 nstall binary ex
34c0: 65 63 75 74 61 62 6c 65 73 20 28 65 2e 67 2e 20 ecutables (e.g.
34d0: 2e 65 78 65 20 66 69 6c 65 73 29 0a 23 0a 23 20 .exe files).#.#
34e0: 59 6f 75 20 73 68 6f 75 6c 64 20 6e 6f 74 20 68 You should not h
34f0: 61 76 65 20 74 6f 20 6d 6f 64 69 66 79 20 74 68 ave to modify th
3500: 69 73 20 74 61 72 67 65 74 2e 0a 23 3d 3d 3d 3d is target..#====
3510: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
3520: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
3530: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
3540: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
3550: 3d 3d 3d 3d 0a 0a 69 6e 73 74 61 6c 6c 2d 62 69 ====..install-bi
3560: 6e 2d 62 69 6e 61 72 69 65 73 3a 0a 09 40 6d 6b n-binaries:..@mk
3570: 64 69 72 20 2d 70 20 24 28 44 45 53 54 44 49 52 dir -p $(DESTDIR
3580: 29 24 28 62 69 6e 64 69 72 29 0a 09 40 6c 69 73 )$(bindir)..@lis
3590: 74 3d 27 24 28 62 69 6e 5f 42 49 4e 41 52 49 45 t='$(bin_BINARIE
35a0: 53 29 27 3b 20 66 6f 72 20 70 20 69 6e 20 24 24 S)'; for p in $$
35b0: 6c 69 73 74 3b 20 64 6f 20 5c 0a 09 20 20 69 66 list; do \.. if
35c0: 20 74 65 73 74 20 2d 66 20 24 24 70 3b 20 74 68 test -f $$p; th
35d0: 65 6e 20 5c 0a 09 20 20 20 20 65 63 68 6f 20 22 en \.. echo "
35e0: 20 24 28 49 4e 53 54 41 4c 4c 5f 50 52 4f 47 52 $(INSTALL_PROGR
35f0: 41 4d 29 20 24 24 70 20 24 28 44 45 53 54 44 49 AM) $$p $(DESTDI
3600: 52 29 24 28 62 69 6e 64 69 72 29 2f 24 24 70 22 R)$(bindir)/$$p"
3610: 3b 20 5c 0a 09 20 20 20 20 24 28 49 4e 53 54 41 ; \.. $(INSTA
3620: 4c 4c 5f 50 52 4f 47 52 41 4d 29 20 24 24 70 20 LL_PROGRAM) $$p
3630: 24 28 44 45 53 54 44 49 52 29 24 28 62 69 6e 64 $(DESTDIR)$(bind
3640: 69 72 29 2f 24 24 70 3b 20 5c 0a 09 20 20 66 69 ir)/$$p; \.. fi
3650: 3b 20 5c 0a 09 64 6f 6e 65 0a 0a 4d 61 6b 65 66 ; \..done..Makef
3660: 69 6c 65 3a 20 24 28 73 72 63 64 69 72 29 2f 4d ile: $(srcdir)/M
3670: 61 6b 65 66 69 6c 65 2e 69 6e 20 24 28 74 6f 70 akefile.in $(top
3680: 5f 62 75 69 6c 64 64 69 72 29 2f 63 6f 6e 66 69 _builddir)/confi
3690: 67 2e 73 74 61 74 75 73 0a 09 63 64 20 24 28 74 g.status..cd $(t
36a0: 6f 70 5f 62 75 69 6c 64 64 69 72 29 20 5c 0a 09 op_builddir) \..
36b0: 20 20 26 26 20 43 4f 4e 46 49 47 5f 46 49 4c 45 && CONFIG_FILE
36c0: 53 3d 24 40 20 43 4f 4e 46 49 47 5f 48 45 41 44 S=$@ CONFIG_HEAD
36d0: 45 52 53 3d 20 24 28 53 48 45 4c 4c 29 20 2e 2f ERS= $(SHELL) ./
36e0: 63 6f 6e 66 69 67 2e 73 74 61 74 75 73 0a 0a 75 config.status..u
36f0: 6e 69 6e 73 74 61 6c 6c 2d 62 69 6e 61 72 69 65 ninstall-binarie
3700: 73 3a 0a 09 6c 69 73 74 3d 27 24 28 6c 69 62 5f s:..list='$(lib_
3710: 42 49 4e 41 52 49 45 53 29 27 3b 20 66 6f 72 20 BINARIES)'; for
3720: 70 20 69 6e 20 24 24 6c 69 73 74 3b 20 64 6f 20 p in $$list; do
3730: 5c 0a 09 20 20 72 6d 20 2d 66 20 24 28 44 45 53 \.. rm -f $(DES
3740: 54 44 49 52 29 24 28 70 6b 67 6c 69 62 64 69 72 TDIR)$(pkglibdir
3750: 29 2f 24 24 70 3b 20 5c 0a 09 64 6f 6e 65 0a 09 )/$$p; \..done..
3760: 6c 69 73 74 3d 27 24 28 50 4b 47 5f 54 43 4c 5f list='$(PKG_TCL_
3770: 53 4f 55 52 43 45 53 29 27 3b 20 66 6f 72 20 70 SOURCES)'; for p
3780: 20 69 6e 20 24 24 6c 69 73 74 3b 20 64 6f 20 5c in $$list; do \
3790: 0a 09 20 20 70 3d 60 62 61 73 65 6e 61 6d 65 20 .. p=`basename
37a0: 24 24 70 60 3b 20 5c 0a 09 20 20 72 6d 20 2d 66 $$p`; \.. rm -f
37b0: 20 24 28 44 45 53 54 44 49 52 29 24 28 70 6b 67 $(DESTDIR)$(pkg
37c0: 6c 69 62 64 69 72 29 2f 24 24 70 3b 20 5c 0a 09 libdir)/$$p; \..
37d0: 64 6f 6e 65 0a 09 6c 69 73 74 3d 27 24 28 62 69 done..list='$(bi
37e0: 6e 5f 42 49 4e 41 52 49 45 53 29 27 3b 20 66 6f n_BINARIES)'; fo
37f0: 72 20 70 20 69 6e 20 24 24 6c 69 73 74 3b 20 64 r p in $$list; d
3800: 6f 20 5c 0a 09 20 20 72 6d 20 2d 66 20 24 28 44 o \.. rm -f $(D
3810: 45 53 54 44 49 52 29 24 28 62 69 6e 64 69 72 29 ESTDIR)$(bindir)
3820: 2f 24 24 70 3b 20 5c 0a 09 64 6f 6e 65 0a 0a 23 /$$p; \..done..#
3830: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
3840: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
3850: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
3860: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
3870: 3d 3d 3d 3d 3d 3d 3d 3d 0a 23 20 53 74 61 72 6b ========.# Stark
3880: 69 74 20 63 72 65 61 74 69 6f 6e 20 2d 20 72 65 it creation - re
3890: 71 75 69 72 65 73 20 41 63 74 69 76 65 54 63 6c quires ActiveTcl
38a0: 20 6f 72 20 63 6f 6d 70 61 74 69 62 6c 65 20 74 or compatible t
38b0: 63 6c 73 68 0a 23 20 59 6f 75 20 73 68 6f 75 6c clsh.# You shoul
38c0: 64 20 6e 6f 74 20 68 61 76 65 20 74 6f 20 6d 6f d not have to mo
38d0: 64 69 66 79 20 74 68 69 73 20 74 61 72 67 65 74 dify this target
38e0: 2e 0a 23 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ..#=============
38f0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
3900: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
3910: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
3920: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 0a 0a 53 54 41 ===========..STA
3930: 52 4b 49 54 5f 45 58 54 09 3d 20 2e 6b 69 74 2e RKIT_EXT.= .kit.
3940: 74 63 6c 0a 53 54 41 52 4b 49 54 5f 54 43 4c 53 tcl.STARKIT_TCLS
3950: 48 09 3d 20 24 28 54 43 4c 53 48 29 0a 53 54 41 H.= $(TCLSH).STA
3960: 52 4b 49 54 5f 42 41 53 45 09 3d 20 74 63 6c 73 RKIT_BASE.= tcls
3970: 68 0a 53 54 41 52 4b 49 54 09 09 3d 20 24 28 50 h.STARKIT..= $(P
3980: 41 43 4b 41 47 45 5f 4e 41 4d 45 29 24 28 53 54 ACKAGE_NAME)$(ST
3990: 41 52 4b 49 54 5f 45 58 54 29 0a 0a 73 74 61 72 ARKIT_EXT)..star
39a0: 6b 69 74 2d 63 6c 65 61 6e 3a 0a 09 72 6d 20 2d kit-clean:..rm -
39b0: 66 20 24 28 53 54 41 52 4b 49 54 29 0a 0a 73 74 f $(STARKIT)..st
39c0: 61 72 6b 69 74 3a 20 73 74 61 72 6b 69 74 2d 63 arkit: starkit-c
39d0: 6c 65 61 6e 0a 09 40 65 63 68 6f 20 22 42 75 69 lean..@echo "Bui
39e0: 6c 64 69 6e 67 20 24 28 53 54 41 52 4b 49 54 29 lding $(STARKIT)
39f0: 22 0a 09 28 5c 0a 09 65 63 68 6f 20 27 70 61 63 "..(\..echo 'pac
3a00: 6b 61 67 65 20 72 65 71 75 69 72 65 20 76 66 73 kage require vfs
3a10: 27 3b 20 5c 0a 09 65 63 68 6f 20 27 70 61 63 6b '; \..echo 'pack
3a20: 61 67 65 20 72 65 71 75 69 72 65 20 4d 6b 34 74 age require Mk4t
3a30: 63 6c 27 3b 20 5c 0a 09 65 63 68 6f 20 27 27 3b cl'; \..echo '';
3a40: 20 5c 0a 09 65 63 68 6f 20 27 73 65 74 20 48 45 \..echo 'set HE
3a50: 41 44 45 52 20 7b 23 21 2f 62 69 6e 2f 73 68 27 ADER {#!/bin/sh'
3a60: 3b 5c 0a 09 65 63 68 6f 20 27 23 20 5c 5c 27 3b ;\..echo '# \\';
3a70: 20 5c 0a 09 65 63 68 6f 20 27 65 78 65 63 20 25 \..echo 'exec %
3a80: 31 73 20 22 24 24 30 22 20 24 24 7b 31 2b 22 24 1s "$$0" $${1+"$
3a90: 24 40 22 7d 27 3b 20 5c 0a 09 65 63 68 6f 20 27 $@"}'; \..echo '
3aa0: 70 61 63 6b 61 67 65 20 72 65 71 75 69 72 65 20 package require
3ab0: 73 74 61 72 6b 69 74 27 3b 20 5c 0a 09 65 63 68 starkit'; \..ech
3ac0: 6f 20 27 73 74 61 72 6b 69 74 3a 3a 68 65 61 64 o 'starkit::head
3ad0: 65 72 20 6d 6b 34 20 2d 72 65 61 64 6f 6e 6c 79 er mk4 -readonly
3ae0: 7d 27 3b 20 5c 0a 09 65 63 68 6f 20 27 27 3b 20 }'; \..echo '';
3af0: 5c 0a 09 65 63 68 6f 20 27 73 65 74 20 48 45 41 \..echo 'set HEA
3b00: 44 45 52 20 5b 66 6f 72 6d 61 74 20 22 24 24 48 DER [format "$$H
3b10: 45 41 44 45 52 5c 6e 25 63 22 20 5b 66 69 6c 65 EADER\n%c" [file
3b20: 20 74 61 69 6c 20 5b 69 6e 66 6f 20 6e 61 6d 65 tail [info name
3b30: 6f 66 65 78 65 5d 5d 20 30 78 31 61 5d 27 3b 20 ofexe]] 0x1a]';
3b40: 5c 0a 09 65 63 68 6f 20 27 73 65 74 20 66 69 6c \..echo 'set fil
3b50: 65 20 22 24 28 53 54 41 52 4b 49 54 29 22 27 3b e "$(STARKIT)"';
3b60: 20 5c 0a 09 65 63 68 6f 20 27 73 65 74 20 66 69 \..echo 'set fi
3b70: 64 20 5b 6f 70 65 6e 20 24 24 66 69 6c 65 20 77 d [open $$file w
3b80: 5d 27 3b 20 5c 0a 09 65 63 68 6f 20 27 70 75 74 ]'; \..echo 'put
3b90: 73 20 24 24 66 69 64 20 24 24 48 45 41 44 45 52 s $$fid $$HEADER
3ba0: 27 3b 20 5c 0a 09 65 63 68 6f 20 27 63 6c 6f 73 '; \..echo 'clos
3bb0: 65 20 24 24 66 69 64 27 3b 20 5c 0a 09 65 63 68 e $$fid'; \..ech
3bc0: 6f 20 27 27 3b 20 5c 0a 09 65 63 68 6f 20 27 76 o ''; \..echo 'v
3bd0: 66 73 3a 3a 6d 6b 34 3a 3a 4d 6f 75 6e 74 20 24 fs::mk4::Mount $
3be0: 24 66 69 6c 65 20 24 24 66 69 6c 65 27 3b 20 5c $file $$file'; \
3bf0: 0a 09 65 63 68 6f 20 27 66 69 6c 65 20 63 6f 70 ..echo 'file cop
3c00: 79 20 24 28 50 4b 47 5f 4c 49 42 5f 46 49 4c 45 y $(PKG_LIB_FILE
3c10: 29 20 24 24 66 69 6c 65 2f 27 3b 20 5c 0a 09 65 ) $$file/'; \..e
3c20: 63 68 6f 20 27 76 66 73 3a 3a 75 6e 6d 6f 75 6e cho 'vfs::unmoun
3c30: 74 20 24 24 66 69 6c 65 27 3b 20 5c 0a 09 29 20 t $$file'; \..)
3c40: 7c 20 24 28 53 54 41 52 4b 49 54 5f 54 43 4c 53 | $(STARKIT_TCLS
3c50: 48 29 0a 0a 23 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d H)..#===========
3c60: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
3c70: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
3c80: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
3c90: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 0a 23 20 =============.#
3ca0: 44 69 73 74 72 69 62 75 74 69 6f 6e 20 63 72 65 Distribution cre
3cb0: 61 74 69 6f 6e 0a 23 20 59 6f 75 20 73 68 6f 75 ation.# You shou
3cc0: 6c 64 20 6e 6f 74 20 68 61 76 65 20 74 6f 20 6d ld not have to m
3cd0: 6f 64 69 66 79 20 74 68 69 73 20 74 61 72 67 65 odify this targe
3ce0: 74 2e 0a 23 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d t..#============
3cf0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
3d00: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
3d10: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
3d20: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 0a 0a 54 41 ============..TA
3d30: 52 09 09 3d 20 74 61 72 0a 23 43 4f 4d 50 52 45 R..= tar.#COMPRE
3d40: 53 53 09 3d 20 24 28 54 41 52 29 20 63 76 66 20 SS.= $(TAR) cvf
3d50: 24 28 50 4b 47 5f 44 49 52 29 2e 74 61 72 20 24 $(PKG_DIR).tar $
3d60: 28 50 4b 47 5f 44 49 52 29 3b 20 63 6f 6d 70 72 (PKG_DIR); compr
3d70: 65 73 73 20 24 28 50 4b 47 5f 44 49 52 29 2e 74 ess $(PKG_DIR).t
3d80: 61 72 0a 43 4f 4d 50 52 45 53 53 09 3d 20 24 28 ar.COMPRESS.= $(
3d90: 54 41 52 29 20 7a 63 76 66 20 24 28 50 4b 47 5f TAR) zcvf $(PKG_
3da0: 44 49 52 29 2e 74 61 72 2e 67 7a 20 24 28 50 4b DIR).tar.gz $(PK
3db0: 47 5f 44 49 52 29 0a 44 49 53 54 5f 52 4f 4f 54 G_DIR).DIST_ROOT
3dc0: 09 3d 20 2f 74 6d 70 2f 64 69 73 74 0a 44 49 53 .= /tmp/dist.DIS
3dd0: 54 5f 44 49 52 09 3d 20 24 28 44 49 53 54 5f 52 T_DIR.= $(DIST_R
3de0: 4f 4f 54 29 2f 24 28 50 4b 47 5f 44 49 52 29 0a OOT)/$(PKG_DIR).
3df0: 0a 64 69 73 74 2d 63 6c 65 61 6e 3a 0a 09 72 6d .dist-clean:..rm
3e00: 20 2d 72 66 20 24 28 44 49 53 54 5f 44 49 52 29 -rf $(DIST_DIR)
3e10: 20 24 28 44 49 53 54 5f 52 4f 4f 54 29 2f 24 28 $(DIST_ROOT)/$(
3e20: 50 4b 47 5f 44 49 52 29 2e 74 61 72 2e 2a 0a 0a PKG_DIR).tar.*..
3e30: 64 69 73 74 3a 20 64 69 73 74 2d 63 6c 65 61 6e dist: dist-clean
3e40: 0a 09 6d 6b 64 69 72 20 2d 70 20 24 28 44 49 53 ..mkdir -p $(DIS
3e50: 54 5f 44 49 52 29 0a 09 63 70 20 2d 70 20 24 28 T_DIR)..cp -p $(
3e60: 73 72 63 64 69 72 29 2f 52 45 41 44 4d 45 2e 2a srcdir)/README.*
3e70: 20 24 28 73 72 63 64 69 72 29 2f 2a 2e 74 78 74 $(srcdir)/*.txt
3e80: 20 24 28 73 72 63 64 69 72 29 2f 43 68 61 6e 67 $(srcdir)/Chang
3e90: 65 4c 6f 67 20 5c 0a 09 09 24 28 73 72 63 64 69 eLog \...$(srcdi
3ea0: 72 29 2f 4d 61 6b 65 66 69 6c 65 2e 69 6e 20 24 r)/Makefile.in $
3eb0: 28 73 72 63 64 69 72 29 2f 61 63 6c 6f 63 61 6c (srcdir)/aclocal
3ec0: 2e 6d 34 20 5c 0a 09 09 24 28 73 72 63 64 69 72 .m4 \...$(srcdir
3ed0: 29 2f 63 6f 6e 66 69 67 75 72 65 20 24 28 73 72 )/configure $(sr
3ee0: 63 64 69 72 29 2f 63 6f 6e 66 69 67 75 72 65 2e cdir)/configure.
3ef0: 69 6e 20 20 24 28 44 49 53 54 5f 44 49 52 29 2f in $(DIST_DIR)/
3f00: 0a 09 63 68 6d 6f 64 20 36 36 34 20 24 28 44 49 ..chmod 664 $(DI
3f10: 53 54 5f 44 49 52 29 2f 4d 61 6b 65 66 69 6c 65 ST_DIR)/Makefile
3f20: 2e 69 6e 20 24 28 44 49 53 54 5f 44 49 52 29 2f .in $(DIST_DIR)/
3f30: 61 63 6c 6f 63 61 6c 2e 6d 34 0a 09 63 68 6d 6f aclocal.m4..chmo
3f40: 64 20 37 37 35 20 24 28 44 49 53 54 5f 44 49 52 d 775 $(DIST_DIR
3f50: 29 2f 63 6f 6e 66 69 67 75 72 65 20 24 28 44 49 )/configure $(DI
3f60: 53 54 5f 44 49 52 29 2f 63 6f 6e 66 69 67 75 72 ST_DIR)/configur
3f70: 65 2e 69 6e 0a 0a 09 6d 6b 64 69 72 20 24 28 44 e.in...mkdir $(D
3f80: 49 53 54 5f 44 49 52 29 2f 74 63 6c 63 6f 6e 66 IST_DIR)/tclconf
3f90: 69 67 0a 09 63 70 20 24 28 73 72 63 64 69 72 29 ig..cp $(srcdir)
3fa0: 2f 74 63 6c 63 6f 6e 66 69 67 2f 69 6e 73 74 61 /tclconfig/insta
3fb0: 6c 6c 2d 73 68 20 24 28 73 72 63 64 69 72 29 2f ll-sh $(srcdir)/
3fc0: 74 63 6c 63 6f 6e 66 69 67 2f 74 63 6c 2e 6d 34 tclconfig/tcl.m4
3fd0: 20 5c 0a 09 09 24 28 44 49 53 54 5f 44 49 52 29 \...$(DIST_DIR)
3fe0: 2f 74 63 6c 63 6f 6e 66 69 67 2f 0a 09 63 68 6d /tclconfig/..chm
3ff0: 6f 64 20 36 36 34 20 24 28 44 49 53 54 5f 44 49 od 664 $(DIST_DI
4000: 52 29 2f 74 63 6c 63 6f 6e 66 69 67 2f 74 63 6c R)/tclconfig/tcl
4010: 2e 6d 34 0a 09 63 68 6d 6f 64 20 2b 78 20 24 28 .m4..chmod +x $(
4020: 44 49 53 54 5f 44 49 52 29 2f 74 63 6c 63 6f 6e DIST_DIR)/tclcon
4030: 66 69 67 2f 69 6e 73 74 61 6c 6c 2d 73 68 0a 0a fig/install-sh..
4040: 09 6d 6b 64 69 72 20 24 28 44 49 53 54 5f 44 49 .mkdir $(DIST_DI
4050: 52 29 2f 64 65 6d 6f 73 0a 09 63 70 20 2d 70 20 R)/demos..cp -p
4060: 24 28 73 72 63 64 69 72 29 2f 64 65 6d 6f 73 2f $(srcdir)/demos/
4070: 2a 2e 7b 74 63 6c 2c 70 79 2c 67 69 66 7d 20 24 *.{tcl,py,gif} $
4080: 28 44 49 53 54 5f 44 49 52 29 2f 64 65 6d 6f 73 (DIST_DIR)/demos
4090: 2f 0a 0a 09 6d 6b 64 69 72 20 24 28 44 49 53 54 /...mkdir $(DIST
40a0: 5f 44 49 52 29 2f 64 6f 63 0a 09 63 70 20 2d 70 _DIR)/doc..cp -p
40b0: 20 24 28 73 72 63 64 69 72 29 2f 64 6f 63 2f 2a $(srcdir)/doc/*
40c0: 2e 7b 68 74 6d 6c 2c 6e 7d 20 24 28 44 49 53 54 .{html,n} $(DIST
40d0: 5f 44 49 52 29 2f 64 6f 63 2f 0a 0a 09 6d 6b 64 _DIR)/doc/...mkd
40e0: 69 72 20 24 28 44 49 53 54 5f 44 49 52 29 2f 67 ir $(DIST_DIR)/g
40f0: 65 6e 65 72 69 63 0a 09 63 70 20 2d 70 20 24 28 eneric..cp -p $(
4100: 73 72 63 64 69 72 29 2f 67 65 6e 65 72 69 63 2f srcdir)/generic/
4110: 2a 2e 5b 63 68 5d 20 24 28 44 49 53 54 5f 44 49 *.[ch] $(DIST_DI
4120: 52 29 2f 67 65 6e 65 72 69 63 2f 0a 0a 09 6d 6b R)/generic/...mk
4130: 64 69 72 20 24 28 44 49 53 54 5f 44 49 52 29 2f dir $(DIST_DIR)/
4140: 6c 69 62 72 61 72 79 0a 09 63 70 20 2d 70 20 24 library..cp -p $
4150: 28 73 72 63 64 69 72 29 2f 6c 69 62 72 61 72 79 (srcdir)/library
4160: 2f 2a 2e 7b 74 63 6c 2c 70 79 7d 20 24 28 44 49 /*.{tcl,py} $(DI
4170: 53 54 5f 44 49 52 29 2f 6c 69 62 72 61 72 79 2f ST_DIR)/library/
4180: 0a 0a 09 6d 6b 64 69 72 20 24 28 44 49 53 54 5f ...mkdir $(DIST_
4190: 44 49 52 29 2f 74 65 73 74 73 0a 09 63 70 20 2d DIR)/tests..cp -
41a0: 70 20 24 28 73 72 63 64 69 72 29 2f 74 65 73 74 p $(srcdir)/test
41b0: 73 2f 2a 2e 7b 74 63 6c 2c 74 65 73 74 7d 20 24 s/*.{tcl,test} $
41c0: 28 44 49 53 54 5f 44 49 52 29 2f 74 65 73 74 73 (DIST_DIR)/tests
41d0: 2f 0a 0a 09 6d 6b 64 69 72 20 24 28 44 49 53 54 /...mkdir $(DIST
41e0: 5f 44 49 52 29 2f 75 6e 69 78 0a 09 63 70 20 2d _DIR)/unix..cp -
41f0: 70 20 24 28 73 72 63 64 69 72 29 2f 75 6e 69 78 p $(srcdir)/unix
4200: 2f 74 6b 74 61 62 6c 65 2e 73 70 65 63 20 24 28 /tktable.spec $(
4210: 44 49 53 54 5f 44 49 52 29 2f 75 6e 69 78 2f 0a DIST_DIR)/unix/.
4220: 0a 09 6d 6b 64 69 72 20 24 28 44 49 53 54 5f 44 ..mkdir $(DIST_D
4230: 49 52 29 2f 77 69 6e 0a 09 63 70 20 2d 70 20 24 IR)/win..cp -p $
4240: 28 73 72 63 64 69 72 29 2f 77 69 6e 2f 6d 61 6b (srcdir)/win/mak
4250: 65 66 69 6c 65 2e 76 63 20 24 28 44 49 53 54 5f efile.vc $(DIST_
4260: 44 49 52 29 2f 77 69 6e 2f 0a 0a 09 28 63 64 20 DIR)/win/...(cd
4270: 24 28 44 49 53 54 5f 52 4f 4f 54 29 3b 20 24 28 $(DIST_ROOT); $(
4280: 43 4f 4d 50 52 45 53 53 29 3b 29 0a 0a 2e 50 48 COMPRESS);)...PH
4290: 4f 4e 59 3a 20 61 6c 6c 20 62 69 6e 61 72 69 65 ONY: all binarie
42a0: 73 20 63 6c 65 61 6e 20 64 65 70 65 6e 64 20 64 s clean depend d
42b0: 69 73 74 63 6c 65 61 6e 20 64 6f 63 20 69 6e 73 istclean doc ins
42c0: 74 61 6c 6c 20 6c 69 62 72 61 72 69 65 73 20 74 tall libraries t
42d0: 65 73 74 0a 0a 23 20 54 65 6c 6c 20 76 65 72 73 est..# Tell vers
42e0: 69 6f 6e 73 20 5b 33 2e 35 39 2c 33 2e 36 33 29 ions [3.59,3.63)
42f0: 20 6f 66 20 47 4e 55 20 6d 61 6b 65 20 74 6f 20 of GNU make to
4300: 6e 6f 74 20 65 78 70 6f 72 74 20 61 6c 6c 20 76 not export all v
4310: 61 72 69 61 62 6c 65 73 2e 0a 23 20 4f 74 68 65 ariables..# Othe
4320: 72 77 69 73 65 20 61 20 73 79 73 74 65 6d 20 6c rwise a system l
4330: 69 6d 69 74 20 28 66 6f 72 20 53 79 73 56 20 61 imit (for SysV a
4340: 74 20 6c 65 61 73 74 29 20 6d 61 79 20 62 65 20 t least) may be
4350: 65 78 63 65 65 64 65 64 2e 0a 2e 4e 4f 45 58 50 exceeded...NOEXP
4360: 4f 52 54 3a 0a ORT:.