Hex Artifact Content

Artifact de778baab4d3a35f45d731bbff1e539e78b936ae:


0000: 23 20 4d 61 6b 65 66 69 6c 65 2e 69 6e 20 2d 2d  # Makefile.in --
0010: 0a 23 0a 23 20 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 74 68 65 20 74 6c 73 20 54 63 6c 20 65 78 74   the tls Tcl ext
0040: 65 6e 73 69 6f 6e 2e 20 20 49 66 20 69 74 20 68  ension.  If it h
0050: 61 73 20 74 68 65 20 6e 61 6d 65 0a 23 20 22 4d  as the name.# "M
0060: 61 6b 65 66 69 6c 65 2e 69 6e 22 20 74 68 65 6e  akefile.in" then
0070: 20 69 74 20 69 73 20 61 20 74 65 6d 70 6c 61 74   it is a templat
0080: 65 20 66 6f 72 20 61 20 4d 61 6b 65 66 69 6c 65  e for a Makefile
0090: 3b 20 20 74 6f 20 67 65 6e 65 72 61 74 65 20 74  ;  to generate t
00a0: 68 65 0a 23 20 61 63 74 75 61 6c 20 4d 61 6b 65  he.# actual Make
00b0: 66 69 6c 65 2c 20 72 75 6e 20 22 2e 2f 63 6f 6e  file, run "./con
00c0: 66 69 67 75 72 65 22 2c 20 77 68 69 63 68 20 69  figure", which i
00d0: 73 20 61 20 63 6f 6e 66 69 67 75 72 61 74 69 6f  s a configuratio
00e0: 6e 20 73 63 72 69 70 74 0a 23 20 67 65 6e 65 72  n script.# gener
00f0: 61 74 65 64 20 62 79 20 74 68 65 20 22 61 75 74  ated by the "aut
0100: 6f 63 6f 6e 66 22 20 70 72 6f 67 72 61 6d 20 28  oconf" program (
0110: 63 6f 6e 73 74 72 75 63 74 73 20 6c 69 6b 65 20  constructs like 
0120: 22 40 66 6f 6f 40 22 20 77 69 6c 6c 20 67 65 74  "@foo@" will get
0130: 0a 23 20 72 65 70 6c 61 63 65 64 20 69 6e 20 74  .# replaced in t
0140: 68 65 20 61 63 74 75 61 6c 20 4d 61 6b 65 66 69  he actual Makefi
0150: 6c 65 2e 0a 23 0a 23 20 43 6f 70 79 72 69 67 68  le..#.# Copyrigh
0160: 74 20 28 63 29 20 31 39 39 39 2d 32 30 30 30 20  t (c) 1999-2000 
0170: 41 6a 75 62 61 20 53 6f 6c 75 74 69 6f 6e 73 2e  Ajuba Solutions.
0180: 0a 23 20 41 6c 6c 20 72 69 67 68 74 73 20 72 65  .# All rights re
0190: 73 65 72 76 65 64 2e 0a 23 0a 23 20 53 65 65 20  served..#.# See 
01a0: 74 68 65 20 66 69 6c 65 20 22 6c 69 63 65 6e 73  the file "licens
01b0: 65 2e 74 65 72 6d 73 22 20 66 6f 72 20 69 6e 66  e.terms" for inf
01c0: 6f 72 6d 61 74 69 6f 6e 20 6f 6e 20 75 73 61 67  ormation on usag
01d0: 65 20 61 6e 64 20 72 65 64 69 73 74 72 69 62 75  e and redistribu
01e0: 74 69 6f 6e 0a 23 20 6f 66 20 74 68 69 73 20 66  tion.# of this f
01f0: 69 6c 65 2c 20 61 6e 64 20 66 6f 72 20 61 20 44  ile, and for a D
0200: 49 53 43 4c 41 49 4d 45 52 20 4f 46 20 41 4c 4c  ISCLAIMER OF ALL
0210: 20 57 41 52 52 41 4e 54 49 45 53 2e 0a 23 0a 23   WARRANTIES..#.#
0220: 20 52 43 53 3a 20 40 28 23 29 20 24 49 64 3a 20   RCS: @(#) $Id: 
0230: 4d 61 6b 65 66 69 6c 65 2e 69 6e 2c 76 20 31 2e  Makefile.in,v 1.
0240: 32 39 20 32 30 31 30 2f 30 38 2f 31 32 20 30 31  29 2010/08/12 01
0250: 3a 32 38 3a 30 36 20 68 6f 62 62 73 32 20 45 78  :28:06 hobbs2 Ex
0260: 70 20 24 0a 0a 0a 23 3d 3d 3d 3d 3d 3d 3d 3d 3d  p $...#=========
0270: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
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 0a  ===============.
02b0: 23 20 45 6e 75 6d 65 72 61 74 65 20 74 68 65 20  # Enumerate the 
02c0: 6e 61 6d 65 73 20 6f 66 20 74 68 65 20 73 6f 75  names of the sou
02d0: 72 63 65 20 66 69 6c 65 73 20 69 6e 63 6c 75 64  rce files includ
02e0: 65 64 20 69 6e 20 74 68 69 73 20 70 61 63 6b 61  ed in this packa
02f0: 67 65 2e 0a 23 20 54 68 69 73 20 77 69 6c 6c 20  ge..# This will 
0300: 62 65 20 75 73 65 64 20 77 68 65 6e 20 61 20 64  be used when a d
0310: 69 73 74 20 74 61 72 67 65 74 20 69 73 20 61 64  ist target is ad
0320: 64 65 64 20 74 6f 20 74 68 65 20 4d 61 6b 65 66  ded to the Makef
0330: 69 6c 65 2e 0a 23 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ile..#==========
0340: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
0350: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
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 0a 0a  ==============..
0380: 50 4b 47 5f 53 4f 55 52 43 45 53 09 3d 20 74 6c  PKG_SOURCES.= tl
0390: 73 2e 63 20 74 6c 73 49 4f 2e 63 20 74 6c 73 42  s.c tlsIO.c tlsB
03a0: 49 4f 2e 63 20 74 6c 73 58 35 30 39 2e 63 20 66  IO.c tlsX509.c f
03b0: 69 78 73 74 72 74 6f 64 2e 63 0a 50 4b 47 5f 4f  ixstrtod.c.PKG_O
03c0: 42 4a 45 43 54 53 09 3d 20 74 6c 73 2e 24 28 4f  BJECTS.= tls.$(O
03d0: 42 4a 45 58 54 29 20 74 6c 73 49 4f 2e 24 28 4f  BJEXT) tlsIO.$(O
03e0: 42 4a 45 58 54 29 20 74 6c 73 42 49 4f 2e 24 28  BJEXT) tlsBIO.$(
03f0: 4f 42 4a 45 58 54 29 20 5c 0a 09 09 20 20 74 6c  OBJEXT) \...  tl
0400: 73 58 35 30 39 2e 24 28 4f 42 4a 45 58 54 29 20  sX509.$(OBJEXT) 
0410: 66 69 78 73 74 72 74 6f 64 2e 24 28 4f 42 4a 45  fixstrtod.$(OBJE
0420: 58 54 29 0a 0a 23 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  XT)..#==========
0430: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
0440: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
0450: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
0460: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 0a 23  ==============.#
0470: 20 52 55 4e 54 49 4d 45 5f 53 4f 55 52 43 45 53   RUNTIME_SOURCES
0480: 20 69 64 65 6e 74 69 66 69 65 73 20 54 63 6c 20   identifies Tcl 
0490: 72 75 6e 74 69 6d 65 20 66 69 6c 65 73 20 74 68  runtime files th
04a0: 61 74 20 61 72 65 20 61 73 73 6f 63 69 61 74 65  at are associate
04b0: 64 20 77 69 74 68 0a 23 20 74 68 69 73 20 70 61  d with.# this pa
04c0: 63 6b 61 67 65 20 74 68 61 74 20 6e 65 65 64 20  ckage that need 
04d0: 74 6f 20 62 65 20 69 6e 73 74 61 6c 6c 65 64 2c  to be installed,
04e0: 20 69 66 20 61 6e 79 2e 0a 23 3d 3d 3d 3d 3d 3d   if any..#======
04f0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
0500: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
0510: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
0520: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
0530: 3d 3d 0a 0a 50 4b 47 5f 54 43 4c 5f 53 4f 55 52  ==..PKG_TCL_SOUR
0540: 43 45 53 09 3d 20 74 6c 73 2e 74 63 6c 0a 0a 23  CES.= tls.tcl..#
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 3d 3d 3d  ================
0580: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
0590: 3d 3d 3d 3d 3d 3d 3d 3d 0a 23 20 54 68 69 73 20  ========.# This 
05a0: 69 73 20 61 20 6c 69 73 74 20 6f 66 20 68 65 61  is a list of hea
05b0: 64 65 72 20 66 69 6c 65 73 20 74 6f 20 62 65 20  der files to be 
05c0: 69 6e 73 74 61 6c 6c 65 64 0a 23 3d 3d 3d 3d 3d  installed.#=====
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 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
0610: 3d 3d 3d 0a 0a 50 4b 47 5f 48 45 41 44 45 52 53  ===..PKG_HEADERS
0620: 09 3d 20 74 6c 73 2e 68 0a 0a 23 3d 3d 3d 3d 3d  .= tls.h..#=====
0630: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
0640: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
0650: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
0660: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
0670: 3d 3d 3d 0a 23 20 56 61 72 69 61 62 6c 65 73 20  ===.# Variables 
0680: 61 6e 64 20 41 43 5f 53 55 42 53 54 20 63 61 73  and AC_SUBST cas
0690: 65 73 20 61 64 64 65 64 20 66 6f 72 20 74 6c 73  es added for tls
06a0: 2e 0a 23 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 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
06d0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
06e0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 0a 0a 53 53 4c  ===========..SSL
06f0: 5f 44 49 52 09 09 09 3d 20 40 53 53 4c 5f 44 49  _DIR...= @SSL_DI
0700: 52 40 0a 53 53 4c 5f 4c 49 42 5f 44 49 52 20 09  R@.SSL_LIB_DIR .
0710: 09 3d 20 40 53 53 4c 5f 4c 49 42 5f 44 49 52 40  .= @SSL_LIB_DIR@
0720: 0a 53 53 4c 5f 49 4e 43 4c 55 44 45 5f 44 49 52  .SSL_INCLUDE_DIR
0730: 20 09 3d 20 40 53 53 4c 5f 49 4e 43 4c 55 44 45   .= @SSL_INCLUDE
0740: 5f 44 49 52 40 0a 53 53 4c 5f 49 4e 43 4c 55 44  _DIR@.SSL_INCLUD
0750: 45 5f 44 49 52 5f 4e 41 54 49 56 45 09 3d 20 40  E_DIR_NATIVE.= @
0760: 53 53 4c 5f 49 4e 43 4c 55 44 45 5f 44 49 52 5f  SSL_INCLUDE_DIR_
0770: 4e 41 54 49 56 45 40 0a 53 53 4c 5f 49 4e 43 4c  NATIVE@.SSL_INCL
0780: 55 44 45 53 20 09 09 3d 20 2d 49 24 28 53 53 4c  UDES ..= -I$(SSL
0790: 5f 49 4e 43 4c 55 44 45 5f 44 49 52 5f 4e 41 54  _INCLUDE_DIR_NAT
07a0: 49 56 45 29 0a 0a 23 3d 3d 3d 3d 3d 3d 3d 3d 3d  IVE)..#=========
07b0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
07c0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
07d0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
07e0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 0a  ===============.
07f0: 23 20 22 50 4b 47 5f 4c 49 42 5f 46 49 4c 45 22  # "PKG_LIB_FILE"
0800: 20 72 65 66 65 72 73 20 74 6f 20 74 68 65 20 6c   refers to the l
0810: 69 62 72 61 72 79 20 28 64 79 6e 61 6d 69 63 20  ibrary (dynamic 
0820: 6f 72 20 73 74 61 74 69 63 20 61 73 20 70 65 72  or static as per
0830: 0a 23 20 63 6f 6e 66 69 67 75 72 61 74 69 6f 6e  .# configuration
0840: 20 6f 70 74 69 6f 6e 73 29 20 63 6f 6d 70 6f 73   options) compos
0850: 65 64 20 6f 66 20 74 68 65 20 6e 61 6d 65 64 20  ed of the named 
0860: 6f 62 6a 65 63 74 73 2e 0a 23 3d 3d 3d 3d 3d 3d  objects..#======
0870: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
0880: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
0890: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
08a0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
08b0: 3d 3d 0a 0a 50 4b 47 5f 4c 49 42 5f 46 49 4c 45  ==..PKG_LIB_FILE
08c0: 09 3d 20 40 50 4b 47 5f 4c 49 42 5f 46 49 4c 45  .= @PKG_LIB_FILE
08d0: 40 0a 50 4b 47 5f 53 54 55 42 5f 4c 49 42 5f 46  @.PKG_STUB_LIB_F
08e0: 49 4c 45 20 3d 20 40 50 4b 47 5f 53 54 55 42 5f  ILE = @PKG_STUB_
08f0: 4c 49 42 5f 46 49 4c 45 40 0a 0a 6c 69 62 5f 42  LIB_FILE@..lib_B
0900: 49 4e 41 52 49 45 53 09 3d 20 24 28 50 4b 47 5f  INARIES.= $(PKG_
0910: 4c 49 42 5f 46 49 4c 45 29 0a 42 49 4e 41 52 49  LIB_FILE).BINARI
0920: 45 53 09 3d 20 24 28 6c 69 62 5f 42 49 4e 41 52  ES.= $(lib_BINAR
0930: 49 45 53 29 0a 0a 53 48 45 4c 4c 09 09 3d 20 40  IES)..SHELL..= @
0940: 53 48 45 4c 4c 40 0a 0a 73 72 63 64 69 72 09 09  SHELL@..srcdir..
0950: 3d 20 40 73 72 63 64 69 72 40 0a 70 72 65 66 69  = @srcdir@.prefi
0960: 78 09 09 3d 20 40 70 72 65 66 69 78 40 0a 65 78  x..= @prefix@.ex
0970: 65 63 5f 70 72 65 66 69 78 09 3d 20 40 65 78 65  ec_prefix.= @exe
0980: 63 5f 70 72 65 66 69 78 40 0a 0a 62 69 6e 64 69  c_prefix@..bindi
0990: 72 09 09 3d 20 40 62 69 6e 64 69 72 40 0a 6c 69  r..= @bindir@.li
09a0: 62 64 69 72 09 09 3d 20 40 6c 69 62 64 69 72 40  bdir..= @libdir@
09b0: 0a 64 61 74 61 64 69 72 09 09 3d 20 40 64 61 74  .datadir..= @dat
09c0: 61 64 69 72 40 0a 6d 61 6e 64 69 72 09 09 3d 20  adir@.mandir..= 
09d0: 40 6d 61 6e 64 69 72 40 0a 69 6e 63 6c 75 64 65  @mandir@.include
09e0: 64 69 72 09 3d 20 40 69 6e 63 6c 75 64 65 64 69  dir.= @includedi
09f0: 72 40 0a 0a 44 45 53 54 44 49 52 09 09 3d 0a 0a  r@..DESTDIR..=..
0a00: 50 4b 47 5f 44 49 52 09 09 3d 20 24 28 50 41 43  PKG_DIR..= $(PAC
0a10: 4b 41 47 45 5f 4e 41 4d 45 29 24 28 50 41 43 4b  KAGE_NAME)$(PACK
0a20: 41 47 45 5f 56 45 52 53 49 4f 4e 29 0a 70 6b 67  AGE_VERSION).pkg
0a30: 64 61 74 61 64 69 72 09 3d 20 24 28 64 61 74 61  datadir.= $(data
0a40: 64 69 72 29 2f 24 28 50 4b 47 5f 44 49 52 29 0a  dir)/$(PKG_DIR).
0a50: 70 6b 67 6c 69 62 64 69 72 09 3d 20 24 28 6c 69  pkglibdir.= $(li
0a60: 62 64 69 72 29 2f 24 28 50 4b 47 5f 44 49 52 29  bdir)/$(PKG_DIR)
0a70: 0a 70 6b 67 69 6e 63 6c 75 64 65 64 69 72 09 3d  .pkgincludedir.=
0a80: 20 24 28 69 6e 63 6c 75 64 65 64 69 72 29 2f 24   $(includedir)/$
0a90: 28 50 4b 47 5f 44 49 52 29 0a 0a 74 6f 70 5f 62  (PKG_DIR)..top_b
0aa0: 75 69 6c 64 64 69 72 09 3d 20 2e 0a 0a 49 4e 53  uilddir.= ...INS
0ab0: 54 41 4c 4c 09 09 3d 20 40 49 4e 53 54 41 4c 4c  TALL..= @INSTALL
0ac0: 40 0a 49 4e 53 54 41 4c 4c 5f 50 52 4f 47 52 41  @.INSTALL_PROGRA
0ad0: 4d 09 3d 20 40 49 4e 53 54 41 4c 4c 5f 50 52 4f  M.= @INSTALL_PRO
0ae0: 47 52 41 4d 40 0a 49 4e 53 54 41 4c 4c 5f 44 41  GRAM@.INSTALL_DA
0af0: 54 41 09 3d 20 40 49 4e 53 54 41 4c 4c 5f 44 41  TA.= @INSTALL_DA
0b00: 54 41 40 0a 49 4e 53 54 41 4c 4c 5f 53 43 52 49  TA@.INSTALL_SCRI
0b10: 50 54 09 3d 20 40 49 4e 53 54 41 4c 4c 5f 53 43  PT.= @INSTALL_SC
0b20: 52 49 50 54 40 0a 0a 50 41 43 4b 41 47 45 5f 4e  RIPT@..PACKAGE_N
0b30: 41 4d 45 09 3d 20 40 50 41 43 4b 41 47 45 5f 4e  AME.= @PACKAGE_N
0b40: 41 4d 45 40 0a 50 41 43 4b 41 47 45 5f 56 45 52  AME@.PACKAGE_VER
0b50: 53 49 4f 4e 09 3d 20 40 50 41 43 4b 41 47 45 5f  SION.= @PACKAGE_
0b60: 56 45 52 53 49 4f 4e 40 0a 43 43 09 09 3d 20 40  VERSION@.CC..= @
0b70: 43 43 40 0a 43 46 4c 41 47 53 5f 44 45 46 41 55  CC@.CFLAGS_DEFAU
0b80: 4c 54 09 3d 20 40 43 46 4c 41 47 53 5f 44 45 46  LT.= @CFLAGS_DEF
0b90: 41 55 4c 54 40 0a 43 46 4c 41 47 53 5f 57 41 52  AULT@.CFLAGS_WAR
0ba0: 4e 49 4e 47 09 3d 20 40 43 46 4c 41 47 53 5f 57  NING.= @CFLAGS_W
0bb0: 41 52 4e 49 4e 47 40 0a 43 4c 45 41 4e 46 49 4c  ARNING@.CLEANFIL
0bc0: 45 53 09 3d 20 40 43 4c 45 41 4e 46 49 4c 45 53  ES.= @CLEANFILES
0bd0: 40 0a 45 58 45 45 58 54 09 09 3d 20 40 45 58 45  @.EXEEXT..= @EXE
0be0: 45 58 54 40 0a 4c 44 46 4c 41 47 53 5f 44 45 46  EXT@.LDFLAGS_DEF
0bf0: 41 55 4c 54 09 3d 20 40 4c 44 46 4c 41 47 53 5f  AULT.= @LDFLAGS_
0c00: 44 45 46 41 55 4c 54 40 0a 4d 41 4b 45 5f 4c 49  DEFAULT@.MAKE_LI
0c10: 42 09 3d 20 40 4d 41 4b 45 5f 4c 49 42 40 0a 4d  B.= @MAKE_LIB@.M
0c20: 41 4b 45 5f 53 48 41 52 45 44 5f 4c 49 42 09 3d  AKE_SHARED_LIB.=
0c30: 20 40 4d 41 4b 45 5f 53 48 41 52 45 44 5f 4c 49   @MAKE_SHARED_LI
0c40: 42 40 0a 4d 41 4b 45 5f 53 54 41 54 49 43 5f 4c  B@.MAKE_STATIC_L
0c50: 49 42 09 3d 20 40 4d 41 4b 45 5f 53 54 41 54 49  IB.= @MAKE_STATI
0c60: 43 5f 4c 49 42 40 0a 4d 41 4b 45 5f 53 54 55 42  C_LIB@.MAKE_STUB
0c70: 5f 4c 49 42 09 3d 20 40 4d 41 4b 45 5f 53 54 55  _LIB.= @MAKE_STU
0c80: 42 5f 4c 49 42 40 0a 4f 42 4a 45 58 54 09 09 3d  B_LIB@.OBJEXT..=
0c90: 20 40 4f 42 4a 45 58 54 40 0a 52 41 4e 4c 49 42   @OBJEXT@.RANLIB
0ca0: 09 09 3d 20 40 52 41 4e 4c 49 42 40 0a 52 41 4e  ..= @RANLIB@.RAN
0cb0: 4c 49 42 5f 53 54 55 42 09 3d 20 40 52 41 4e 4c  LIB_STUB.= @RANL
0cc0: 49 42 5f 53 54 55 42 40 0a 53 48 4c 49 42 5f 43  IB_STUB@.SHLIB_C
0cd0: 46 4c 41 47 53 09 3d 20 40 53 48 4c 49 42 5f 43  FLAGS.= @SHLIB_C
0ce0: 46 4c 41 47 53 40 0a 53 48 4c 49 42 5f 4c 44 09  FLAGS@.SHLIB_LD.
0cf0: 3d 20 40 53 48 4c 49 42 5f 4c 44 40 0a 53 48 4c  = @SHLIB_LD@.SHL
0d00: 49 42 5f 4c 44 5f 4c 49 42 53 09 3d 20 40 53 48  IB_LD_LIBS.= @SH
0d10: 4c 49 42 5f 4c 44 5f 4c 49 42 53 40 0a 53 54 4c  LIB_LD_LIBS@.STL
0d20: 49 42 5f 4c 44 09 3d 20 40 53 54 4c 49 42 5f 4c  IB_LD.= @STLIB_L
0d30: 44 40 0a 54 43 4c 5f 44 45 46 53 09 3d 20 40 54  D@.TCL_DEFS.= @T
0d40: 43 4c 5f 44 45 46 53 40 0a 54 43 4c 5f 42 49 4e  CL_DEFS@.TCL_BIN
0d50: 5f 44 49 52 09 3d 20 40 54 43 4c 5f 42 49 4e 5f  _DIR.= @TCL_BIN_
0d60: 44 49 52 40 0a 54 43 4c 5f 53 52 43 5f 44 49 52  DIR@.TCL_SRC_DIR
0d70: 09 3d 20 40 54 43 4c 5f 53 52 43 5f 44 49 52 40  .= @TCL_SRC_DIR@
0d80: 0a 23 20 54 68 69 73 20 69 73 20 6e 65 63 65 73  .# This is neces
0d90: 73 61 72 79 20 66 6f 72 20 70 61 63 6b 61 67 65  sary for package
0da0: 73 20 74 68 61 74 20 75 73 65 20 70 72 69 76 61  s that use priva
0db0: 74 65 20 54 63 6c 20 68 65 61 64 65 72 73 0a 23  te Tcl headers.#
0dc0: 54 43 4c 5f 54 4f 50 5f 44 49 52 5f 4e 41 54 49  TCL_TOP_DIR_NATI
0dd0: 56 45 09 3d 20 40 54 43 4c 5f 54 4f 50 5f 44 49  VE.= @TCL_TOP_DI
0de0: 52 5f 4e 41 54 49 56 45 40 0a 23 20 4e 6f 74 20  R_NATIVE@.# Not 
0df0: 75 73 65 64 2c 20 62 75 74 20 72 65 74 61 69 6e  used, but retain
0e00: 65 64 20 66 6f 72 20 72 65 66 65 72 65 6e 63 65  ed for reference
0e10: 20 6f 66 20 77 68 61 74 20 6c 69 62 73 20 54 63   of what libs Tc
0e20: 6c 20 72 65 71 75 69 72 65 64 0a 54 43 4c 5f 4c  l required.TCL_L
0e30: 49 42 53 09 3d 20 40 54 43 4c 5f 4c 49 42 53 40  IBS.= @TCL_LIBS@
0e40: 0a 0a 23 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ..#=============
0e50: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
0e60: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
0e70: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
0e80: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 0a 23 20 54 43  ===========.# TC
0e90: 4c 4c 49 42 50 41 54 48 20 73 65 65 64 73 20 74  LLIBPATH seeds t
0ea0: 68 65 20 61 75 74 6f 5f 70 61 74 68 20 69 6e 20  he auto_path in 
0eb0: 54 63 6c 27 73 20 69 6e 69 74 2e 74 63 6c 20 73  Tcl's init.tcl s
0ec0: 6f 20 77 65 20 63 61 6e 20 74 65 73 74 20 6f 75  o we can test ou
0ed0: 72 0a 23 20 70 61 63 6b 61 67 65 20 77 69 74 68  r.# package with
0ee0: 6f 75 74 20 69 6e 73 74 61 6c 6c 69 6e 67 2e 20  out installing. 
0ef0: 20 54 68 65 20 6f 74 68 65 72 20 65 6e 76 69 72   The other envir
0f00: 6f 6e 6d 65 6e 74 20 76 61 72 69 61 62 6c 65 73  onment variables
0f10: 20 61 6c 6c 6f 77 20 75 73 0a 23 20 74 6f 20 74   allow us.# to t
0f20: 65 73 74 20 61 67 61 69 6e 73 74 20 61 6e 20 75  est against an u
0f30: 6e 69 6e 73 74 61 6c 6c 65 64 20 54 63 6c 2e 20  ninstalled Tcl. 
0f40: 20 41 64 64 20 73 70 65 63 69 61 6c 20 65 6e 76   Add special env
0f50: 20 76 61 72 73 20 74 68 61 74 20 79 6f 75 0a 23   vars that you.#
0f60: 20 72 65 71 75 69 72 65 20 66 6f 72 20 74 65 73   require for tes
0f70: 74 69 6e 67 20 68 65 72 65 20 28 6c 69 6b 65 20  ting here (like 
0f80: 54 43 4c 58 5f 4c 49 42 52 41 52 59 29 2e 0a 23  TCLX_LIBRARY)..#
0f90: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
0fa0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
0fb0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
0fc0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
0fd0: 3d 3d 3d 3d 3d 3d 3d 3d 0a 0a 45 58 54 52 41 5f  ========..EXTRA_
0fe0: 50 41 54 48 09 3d 20 24 28 74 6f 70 5f 62 75 69  PATH.= $(top_bui
0ff0: 6c 64 64 69 72 29 3a 24 28 54 43 4c 5f 42 49 4e  lddir):$(TCL_BIN
1000: 5f 44 49 52 29 0a 54 43 4c 53 48 5f 45 4e 56 09  _DIR).TCLSH_ENV.
1010: 3d 20 54 43 4c 5f 4c 49 42 52 41 52 59 3d 60 40  = TCL_LIBRARY=`@
1020: 43 59 47 50 41 54 48 40 20 24 28 54 43 4c 5f 53  CYGPATH@ $(TCL_S
1030: 52 43 5f 44 49 52 29 2f 6c 69 62 72 61 72 79 60  RC_DIR)/library`
1040: 20 5c 0a 09 09 20 20 40 4c 44 5f 4c 49 42 52 41   \...  @LD_LIBRA
1050: 52 59 5f 50 41 54 48 5f 56 41 52 40 3d 22 24 28  RY_PATH_VAR@="$(
1060: 45 58 54 52 41 5f 50 41 54 48 29 3a 24 28 40 4c  EXTRA_PATH):$(@L
1070: 44 5f 4c 49 42 52 41 52 59 5f 50 41 54 48 5f 56  D_LIBRARY_PATH_V
1080: 41 52 40 29 22 20 5c 0a 09 09 20 20 50 41 54 48  AR@)" \...  PATH
1090: 3d 22 24 28 45 58 54 52 41 5f 50 41 54 48 29 3a  ="$(EXTRA_PATH):
10a0: 24 28 50 41 54 48 29 22 20 5c 0a 09 09 20 20 54  $(PATH)" \...  T
10b0: 43 4c 4c 49 42 50 41 54 48 3d 22 24 28 74 6f 70  CLLIBPATH="$(top
10c0: 5f 62 75 69 6c 64 64 69 72 29 22 0a 54 43 4c 53  _builddir)".TCLS
10d0: 48 5f 50 52 4f 47 09 3d 20 40 54 43 4c 53 48 5f  H_PROG.= @TCLSH_
10e0: 50 52 4f 47 40 0a 54 43 4c 53 48 09 09 3d 20 24  PROG@.TCLSH..= $
10f0: 28 54 43 4c 53 48 5f 45 4e 56 29 20 24 28 54 43  (TCLSH_ENV) $(TC
1100: 4c 53 48 5f 50 52 4f 47 29 0a 53 48 41 52 45 44  LSH_PROG).SHARED
1110: 5f 42 55 49 4c 44 09 3d 20 40 53 48 41 52 45 44  _BUILD.= @SHARED
1120: 5f 42 55 49 4c 44 40 0a 0a 49 4e 43 4c 55 44 45  _BUILD@..INCLUDE
1130: 53 09 3d 20 40 50 4b 47 5f 49 4e 43 4c 55 44 45  S.= @PKG_INCLUDE
1140: 53 40 20 40 54 43 4c 5f 49 4e 43 4c 55 44 45 53  S@ @TCL_INCLUDES
1150: 40 20 24 28 53 53 4c 5f 49 4e 43 4c 55 44 45 53  @ $(SSL_INCLUDES
1160: 29 0a 0a 50 4b 47 5f 43 46 4c 41 47 53 09 3d 20  )..PKG_CFLAGS.= 
1170: 40 50 4b 47 5f 43 46 4c 41 47 53 40 0a 0a 23 44  @PKG_CFLAGS@..#D
1180: 45 46 53 09 09 3d 20 24 28 54 43 4c 5f 44 45 46  EFS..= $(TCL_DEF
1190: 53 29 20 40 44 45 46 53 40 20 24 28 45 58 54 52  S) @DEFS@ $(EXTR
11a0: 41 5f 43 46 4c 41 47 53 29 0a 44 45 46 53 09 09  A_CFLAGS).DEFS..
11b0: 3d 20 40 44 45 46 53 40 20 24 28 50 4b 47 5f 43  = @DEFS@ $(PKG_C
11c0: 46 4c 41 47 53 29 0a 0a 43 4f 4e 46 49 47 5f 43  FLAGS)..CONFIG_C
11d0: 4c 45 41 4e 5f 46 49 4c 45 53 20 3d 20 4d 61 6b  LEAN_FILES = Mak
11e0: 65 66 69 6c 65 20 70 6b 67 49 6e 64 65 78 2e 74  efile pkgIndex.t
11f0: 63 6c 0a 0a 43 50 50 46 4c 41 47 53 09 3d 20 40  cl..CPPFLAGS.= @
1200: 43 50 50 46 4c 41 47 53 40 0a 4c 49 42 53 09 09  CPPFLAGS@.LIBS..
1210: 3d 20 40 50 4b 47 5f 4c 49 42 53 40 20 40 4c 49  = @PKG_LIBS@ @LI
1220: 42 53 40 0a 41 52 09 09 3d 20 61 72 0a 43 46 4c  BS@.AR..= ar.CFL
1230: 41 47 53 09 09 3d 20 40 43 46 4c 41 47 53 40 0a  AGS..= @CFLAGS@.
1240: 43 4f 4d 50 49 4c 45 09 09 3d 20 24 28 43 43 29  COMPILE..= $(CC)
1250: 20 24 28 44 45 46 53 29 20 24 28 49 4e 43 4c 55   $(DEFS) $(INCLU
1260: 44 45 53 29 20 24 28 41 4d 5f 43 50 50 46 4c 41  DES) $(AM_CPPFLA
1270: 47 53 29 20 24 28 43 50 50 46 4c 41 47 53 29 20  GS) $(CPPFLAGS) 
1280: 24 28 41 4d 5f 43 46 4c 41 47 53 29 20 24 28 43  $(AM_CFLAGS) $(C
1290: 46 4c 41 47 53 29 0a 0a 23 3d 3d 3d 3d 3d 3d 3d  FLAGS)..#=======
12a0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
12b0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
12c0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
12d0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
12e0: 3d 0a 23 20 53 74 61 72 74 20 6f 66 20 75 73 65  =.# Start of use
12f0: 72 2d 64 65 66 69 6e 61 62 6c 65 20 54 41 52 47  r-definable TARG
1300: 45 54 53 20 73 65 63 74 69 6f 6e 0a 23 3d 3d 3d  ETS section.#===
1310: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
1320: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
1330: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
1340: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
1350: 3d 3d 3d 3d 3d 0a 0a 23 3d 3d 3d 3d 3d 3d 3d 3d  =====..#========
1360: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
1370: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
1380: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
1390: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
13a0: 0a 23 20 54 45 41 20 54 41 52 47 45 54 53 2e 20  .# TEA TARGETS. 
13b0: 20 50 6c 65 61 73 65 20 6e 6f 74 65 20 74 68 61   Please note tha
13c0: 74 20 74 68 65 20 22 6c 69 62 72 61 72 69 65 73  t the "libraries
13d0: 3a 22 20 74 61 72 67 65 74 20 72 65 66 65 72 73  :" target refers
13e0: 20 74 6f 20 70 6c 61 74 66 6f 72 6d 0a 23 20 69   to platform.# i
13f0: 6e 64 65 70 65 6e 64 65 6e 74 20 66 69 6c 65 73  ndependent files
1400: 2c 20 61 6e 64 20 74 68 65 20 22 62 69 6e 61 72  , and the "binar
1410: 69 65 73 3a 22 20 74 61 72 67 65 74 20 69 6e 63  ies:" target inc
1420: 6c 75 65 73 20 65 78 65 63 75 74 61 62 6c 65 20  lues executable 
1430: 70 72 6f 67 72 61 6d 73 20 61 6e 64 0a 23 20 70  programs and.# p
1440: 6c 61 74 66 6f 72 6d 2d 64 65 70 65 6e 64 65 6e  latform-dependen
1450: 74 20 6c 69 62 72 61 72 69 65 73 2e 20 20 4d 6f  t libraries.  Mo
1460: 64 69 66 79 20 74 68 65 73 65 20 74 61 72 67 65  dify these targe
1470: 74 73 20 73 6f 20 74 68 61 74 20 74 68 65 79 20  ts so that they 
1480: 69 6e 73 74 61 6c 6c 0a 23 20 74 68 65 20 76 61  install.# the va
1490: 72 69 6f 75 73 20 70 69 65 63 65 73 20 6f 66 20  rious pieces of 
14a0: 79 6f 75 72 20 70 61 63 6b 61 67 65 2e 20 20 54  your package.  T
14b0: 68 65 20 6d 61 6b 65 20 61 6e 64 20 69 6e 73 74  he make and inst
14c0: 61 6c 6c 20 72 75 6c 65 73 0a 23 20 66 6f 72 20  all rules.# for 
14d0: 74 68 65 20 42 49 4e 41 52 49 45 53 20 74 68 61  the BINARIES tha
14e0: 74 20 79 6f 75 20 73 70 65 63 69 66 69 65 64 20  t you specified 
14f0: 61 62 6f 76 65 20 68 61 76 65 20 61 6c 72 65 61  above have alrea
1500: 64 79 20 62 65 65 6e 20 64 6f 6e 65 2e 0a 23 3d  dy been done..#=
1510: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
1520: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
1530: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
1540: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
1550: 3d 3d 3d 3d 3d 3d 3d 0a 0a 61 6c 6c 3a 20 62 69  =======..all: bi
1560: 6e 61 72 69 65 73 20 6c 69 62 72 61 72 69 65 73  naries libraries
1570: 20 64 6f 63 0a 0a 23 3d 3d 3d 3d 3d 3d 3d 3d 3d   doc..#=========
1580: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
1590: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
15a0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
15b0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 0a  ===============.
15c0: 23 20 54 68 65 20 62 69 6e 61 72 69 65 73 20 74  # The binaries t
15d0: 61 72 67 65 74 20 62 75 69 6c 64 73 20 65 78 65  arget builds exe
15e0: 63 75 74 61 62 6c 65 20 70 72 6f 67 72 61 6d 73  cutable programs
15f0: 2c 20 57 69 6e 64 6f 77 73 20 2e 64 6c 6c 27 73  , Windows .dll's
1600: 2c 20 75 6e 69 78 0a 23 20 73 68 61 72 65 64 2f  , unix.# shared/
1610: 73 74 61 74 69 63 20 6c 69 62 72 61 72 69 65 73  static libraries
1620: 2c 20 61 6e 64 20 61 6e 79 20 6f 74 68 65 72 20  , and any other 
1630: 70 6c 61 74 66 6f 72 6d 2d 64 65 70 65 6e 64 65  platform-depende
1640: 6e 74 20 66 69 6c 65 73 2e 0a 23 20 54 68 65 20  nt files..# The 
1650: 6c 69 73 74 20 6f 66 20 74 61 72 67 65 74 73 20  list of targets 
1660: 74 6f 20 62 75 69 6c 64 20 66 6f 72 20 22 62 69  to build for "bi
1670: 6e 61 72 69 65 73 3a 22 20 69 73 20 73 70 65 63  naries:" is spec
1680: 69 66 69 65 64 20 61 74 20 74 68 65 20 74 6f 70  ified at the top
1690: 0a 23 20 6f 66 20 74 68 65 20 4d 61 6b 65 66 69  .# of the Makefi
16a0: 6c 65 2c 20 69 6e 20 74 68 65 20 22 42 49 4e 41  le, in the "BINA
16b0: 52 49 45 53 22 20 76 61 72 69 61 62 6c 65 2e 0a  RIES" variable..
16c0: 23 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  #===============
16d0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
16e0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
16f0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
1700: 3d 3d 3d 3d 3d 3d 3d 3d 3d 0a 0a 62 69 6e 61 72  =========..binar
1710: 69 65 73 3a 20 24 28 42 49 4e 41 52 49 45 53 29  ies: $(BINARIES)
1720: 20 70 6b 67 49 6e 64 65 78 2e 74 63 6c 0a 0a 6c   pkgIndex.tcl..l
1730: 69 62 72 61 72 69 65 73 3a 20 24 28 50 4b 47 5f  ibraries: $(PKG_
1740: 54 43 4c 5f 53 4f 55 52 43 45 53 29 0a 0a 64 6f  TCL_SOURCES)..do
1750: 63 3a 0a 0a 69 6e 73 74 61 6c 6c 3a 20 61 6c 6c  c:..install: all
1760: 20 69 6e 73 74 61 6c 6c 2d 62 69 6e 61 72 69 65   install-binarie
1770: 73 20 69 6e 73 74 61 6c 6c 2d 6c 69 62 72 61 72  s install-librar
1780: 69 65 73 20 69 6e 73 74 61 6c 6c 2d 64 6f 63 0a  ies install-doc.
1790: 0a 69 6e 73 74 61 6c 6c 2d 62 69 6e 61 72 69 65  .install-binarie
17a0: 73 3a 20 62 69 6e 61 72 69 65 73 20 69 6e 73 74  s: binaries inst
17b0: 61 6c 6c 2d 6c 69 62 2d 62 69 6e 61 72 69 65 73  all-lib-binaries
17c0: 20 69 6e 73 74 61 6c 6c 2d 62 69 6e 2d 62 69 6e   install-bin-bin
17d0: 61 72 69 65 73 0a 0a 23 3d 3d 3d 3d 3d 3d 3d 3d  aries..#========
17e0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
17f0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
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: 0a 23 20 54 68 69 73 20 72 75 6c 65 20 69 6e 73  .# This rule ins
1830: 74 61 6c 6c 73 20 70 6c 61 74 66 6f 72 6d 2d 69  talls platform-i
1840: 6e 64 65 70 65 6e 64 65 6e 74 20 66 69 6c 65 73  ndependent files
1850: 2c 20 73 75 63 68 20 61 73 20 68 65 61 64 65 72  , such as header
1860: 20 66 69 6c 65 73 2e 0a 23 3d 3d 3d 3d 3d 3d 3d   files..#=======
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 0a 0a 69 6e 73 74 61 6c 6c 2d 6c 69 62 72 61  =..install-libra
18c0: 72 69 65 73 3a 20 6c 69 62 72 61 72 69 65 73 0a  ries: libraries.
18d0: 09 40 6d 6b 64 69 72 20 2d 70 20 24 28 44 45 53  .@mkdir -p $(DES
18e0: 54 44 49 52 29 24 28 69 6e 63 6c 75 64 65 64 69  TDIR)$(includedi
18f0: 72 29 0a 09 40 65 63 68 6f 20 22 49 6e 73 74 61  r)..@echo "Insta
1900: 6c 6c 69 6e 67 20 68 65 61 64 65 72 20 66 69 6c  lling header fil
1910: 65 73 20 69 6e 20 24 28 44 45 53 54 44 49 52 29  es in $(DESTDIR)
1920: 24 28 69 6e 63 6c 75 64 65 64 69 72 29 22 0a 09  $(includedir)"..
1930: 40 6c 69 73 74 3d 27 24 28 50 4b 47 5f 48 45 41  @list='$(PKG_HEA
1940: 44 45 52 53 29 27 3b 20 66 6f 72 20 69 20 69 6e  DERS)'; for i in
1950: 20 24 24 6c 69 73 74 3b 20 64 6f 20 5c 0a 09 20   $$list; do \.. 
1960: 20 20 20 65 63 68 6f 20 22 49 6e 73 74 61 6c 6c     echo "Install
1970: 69 6e 67 20 24 28 73 72 63 64 69 72 29 2f 24 24  ing $(srcdir)/$$
1980: 69 22 20 3b 20 5c 0a 09 20 20 20 20 24 28 49 4e  i" ; \..    $(IN
1990: 53 54 41 4c 4c 5f 44 41 54 41 29 20 24 28 73 72  STALL_DATA) $(sr
19a0: 63 64 69 72 29 2f 24 24 69 20 24 28 44 45 53 54  cdir)/$$i $(DEST
19b0: 44 49 52 29 24 28 69 6e 63 6c 75 64 65 64 69 72  DIR)$(includedir
19c0: 29 20 3b 20 5c 0a 09 64 6f 6e 65 3b 0a 0a 23 3d  ) ; \..done;..#=
19d0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
19e0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
19f0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
1a00: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
1a10: 3d 3d 3d 3d 3d 3d 3d 0a 23 20 49 6e 73 74 61 6c  =======.# Instal
1a20: 6c 20 64 6f 63 75 6d 65 6e 74 61 74 69 6f 6e 2e  l documentation.
1a30: 20 20 55 6e 69 78 20 6d 61 6e 70 61 67 65 73 20    Unix manpages 
1a40: 73 68 6f 75 6c 64 20 67 6f 20 69 6e 20 74 68 65  should go in the
1a50: 20 24 28 6d 61 6e 64 69 72 29 0a 23 20 64 69 72   $(mandir).# dir
1a60: 65 63 74 6f 72 79 2e 0a 23 3d 3d 3d 3d 3d 3d 3d  ectory..#=======
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 0a 0a 69 6e 73 74 61 6c 6c 2d 64 6f 63 3a 20  =..install-doc: 
1ac0: 64 6f 63 0a 23 09 40 6d 6b 64 69 72 20 2d 70 20  doc.#.@mkdir -p 
1ad0: 24 28 44 45 53 54 44 49 52 29 24 28 6d 61 6e 64  $(DESTDIR)$(mand
1ae0: 69 72 29 2f 6d 61 6e 6e 0a 23 09 40 65 63 68 6f  ir)/mann.#.@echo
1af0: 20 22 49 6e 73 74 61 6c 6c 69 6e 67 20 64 6f 63   "Installing doc
1b00: 75 6d 65 6e 74 61 74 69 6f 6e 20 69 6e 20 24 28  umentation in $(
1b10: 44 45 53 54 44 49 52 29 24 28 6d 61 6e 64 69 72  DESTDIR)$(mandir
1b20: 29 22 0a 23 09 40 66 6f 72 20 69 20 69 6e 20 24  )".#.@for i in $
1b30: 28 73 72 63 64 69 72 29 2f 64 6f 63 2f 2a 2e 6e  (srcdir)/doc/*.n
1b40: 3b 20 64 6f 20 5c 0a 23 09 20 20 20 20 65 63 68  ; do \.#.    ech
1b50: 6f 20 22 49 6e 73 74 61 6c 6c 69 6e 67 20 24 24  o "Installing $$
1b60: 69 22 3b 20 5c 0a 23 09 20 20 20 20 72 6d 20 2d  i"; \.#.    rm -
1b70: 66 20 24 28 44 45 53 54 44 49 52 29 24 28 6d 61  f $(DESTDIR)$(ma
1b80: 6e 64 69 72 29 2f 6d 61 6e 6e 2f 60 62 61 73 65  ndir)/mann/`base
1b90: 6e 61 6d 65 20 24 24 69 60 3b 20 5c 0a 23 09 20  name $$i`; \.#. 
1ba0: 20 20 20 24 28 49 4e 53 54 41 4c 4c 5f 44 41 54     $(INSTALL_DAT
1bb0: 41 29 20 24 24 69 20 24 28 44 45 53 54 44 49 52  A) $$i $(DESTDIR
1bc0: 29 24 28 6d 61 6e 64 69 72 29 2f 6d 61 6e 6e 20  )$(mandir)/mann 
1bd0: 3b 20 5c 0a 23 09 64 6f 6e 65 0a 0a 74 65 73 74  ; \.#.done..test
1be0: 3a 20 62 69 6e 61 72 69 65 73 20 6c 69 62 72 61  : binaries libra
1bf0: 72 69 65 73 0a 09 65 63 68 6f 20 22 6c 6f 61 64  ries..echo "load
1c00: 20 24 28 50 4b 47 5f 4c 49 42 5f 46 49 4c 45 29   $(PKG_LIB_FILE)
1c10: 3b 20 5c 0a 09 20 20 69 66 20 7b 21 5b 66 69 6c  ; \..  if {![fil
1c20: 65 20 65 78 69 73 74 73 20 74 6c 73 2e 74 63 6c  e exists tls.tcl
1c30: 5d 7d 20 7b 20 5c 0a 09 20 20 20 20 20 20 66 69  ]} { \..      fi
1c40: 6c 65 20 63 6f 70 79 20 5b 66 69 6c 65 20 6a 6f  le copy [file jo
1c50: 69 6e 20 24 28 73 72 63 64 69 72 29 20 74 6c 73  in $(srcdir) tls
1c60: 2e 74 63 6c 5d 20 74 6c 73 2e 74 63 6c 20 5c 0a  .tcl] tls.tcl \.
1c70: 09 20 20 7d 20 3b 5c 0a 09 20 20 73 6f 75 72 63  .  } ;\..  sourc
1c80: 65 20 5b 66 69 6c 65 20 6a 6f 69 6e 20 24 28 73  e [file join $(s
1c90: 72 63 64 69 72 29 20 74 6c 73 2e 74 63 6c 5d 3b  rcdir) tls.tcl];
1ca0: 20 5c 0a 09 20 20 73 65 74 20 61 72 67 76 20 7b   \..  set argv {
1cb0: 24 28 54 45 53 54 46 4c 41 47 53 29 7d 3b 20 5c  $(TESTFLAGS)}; \
1cc0: 0a 09 20 20 73 6f 75 72 63 65 20 5b 66 69 6c 65  ..  source [file
1cd0: 20 6a 6f 69 6e 20 24 28 73 72 63 64 69 72 29 20   join $(srcdir) 
1ce0: 74 65 73 74 73 20 61 6c 6c 2e 74 63 6c 5d 22 20  tests all.tcl]" 
1cf0: 7c 20 24 28 54 43 4c 53 48 29 0a 0a 73 68 65 6c  | $(TCLSH)..shel
1d00: 6c 3a 20 62 69 6e 61 72 69 65 73 20 6c 69 62 72  l: binaries libr
1d10: 61 72 69 65 73 0a 09 40 24 28 54 43 4c 53 48 29  aries..@$(TCLSH)
1d20: 20 24 28 53 43 52 49 50 54 29 0a 0a 67 64 62 3a   $(SCRIPT)..gdb:
1d30: 0a 09 24 28 54 43 4c 53 48 5f 45 4e 56 29 20 67  ..$(TCLSH_ENV) g
1d40: 64 62 20 24 28 54 43 4c 53 48 5f 50 52 4f 47 29  db $(TCLSH_PROG)
1d50: 20 24 28 53 43 52 49 50 54 29 0a 0a 64 65 70 65   $(SCRIPT)..depe
1d60: 6e 64 3a 0a 0a 23 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  nd:..#==========
1d70: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
1d80: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
1d90: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
1da0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 0a 23  ==============.#
1db0: 20 24 28 50 4b 47 5f 4c 49 42 5f 46 49 4c 45 29   $(PKG_LIB_FILE)
1dc0: 20 73 68 6f 75 6c 64 20 62 65 20 6c 69 73 74 65   should be liste
1dd0: 64 20 61 73 20 70 61 72 74 20 6f 66 20 74 68 65  d as part of the
1de0: 20 42 49 4e 41 52 49 45 53 20 76 61 72 69 61 62   BINARIES variab
1df0: 6c 65 0a 23 20 6d 65 6e 74 69 6f 6e 65 64 20 61  le.# mentioned a
1e00: 62 6f 76 65 2e 20 20 54 68 61 74 20 77 69 6c 6c  bove.  That will
1e10: 20 65 6e 73 75 72 65 20 74 68 61 74 20 74 68 69   ensure that thi
1e20: 73 20 74 61 72 67 65 74 20 69 73 20 62 75 69 6c  s target is buil
1e30: 74 20 77 68 65 6e 20 79 6f 75 0a 23 20 72 75 6e  t when you.# run
1e40: 20 22 6d 61 6b 65 20 62 69 6e 61 72 69 65 73 22   "make binaries"
1e50: 2e 0a 23 0a 23 20 54 68 65 20 24 28 50 4b 47 5f  ..#.# The $(PKG_
1e60: 4f 42 4a 45 43 54 53 29 20 6f 62 6a 65 63 74 73  OBJECTS) objects
1e70: 20 61 72 65 20 63 72 65 61 74 65 64 20 61 6e 64   are created and
1e80: 20 6c 69 6e 6b 65 64 20 69 6e 74 6f 20 74 68 65   linked into the
1e90: 20 66 69 6e 61 6c 0a 23 20 6c 69 62 72 61 72 79   final.# library
1ea0: 2e 20 20 49 6e 20 6d 6f 73 74 20 63 61 73 65 73  .  In most cases
1eb0: 20 74 68 65 73 65 20 6f 62 6a 65 63 74 20 66 69   these object fi
1ec0: 6c 65 73 20 77 69 6c 6c 20 63 6f 72 72 65 73 70  les will corresp
1ed0: 6f 6e 64 20 74 6f 20 74 68 65 0a 23 20 73 6f 75  ond to the.# sou
1ee0: 72 63 65 20 66 69 6c 65 73 20 61 62 6f 76 65 2e  rce files above.
1ef0: 0a 23 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  .#==============
1f00: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
1f10: 3d 3d 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 0a 0a 24 28 50 4b  ==========..$(PK
1f40: 47 5f 4c 49 42 5f 46 49 4c 45 29 3a 20 24 28 50  G_LIB_FILE): $(P
1f50: 4b 47 5f 4f 42 4a 45 43 54 53 29 0a 09 2d 72 6d  KG_OBJECTS)..-rm
1f60: 20 2d 66 20 24 28 50 4b 47 5f 4c 49 42 5f 46 49   -f $(PKG_LIB_FI
1f70: 4c 45 29 0a 09 24 7b 4d 41 4b 45 5f 4c 49 42 7d  LE)..${MAKE_LIB}
1f80: 0a 09 2d 24 28 52 41 4e 4c 49 42 29 20 24 28 50  ..-$(RANLIB) $(P
1f90: 4b 47 5f 4c 49 42 5f 46 49 4c 45 29 0a 0a 23 3d  KG_LIB_FILE)..#=
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 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
1fd0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
1fe0: 3d 3d 3d 3d 3d 3d 3d 0a 23 20 57 65 20 6e 65 65  =======.# We nee
1ff0: 64 20 74 6f 20 65 6e 75 6d 65 72 61 74 65 20 74  d to enumerate t
2000: 68 65 20 6c 69 73 74 20 6f 66 20 2e 63 20 74 6f  he list of .c to
2010: 20 2e 6f 20 6c 69 6e 65 73 20 68 65 72 65 2e 0a   .o lines here..
2020: 23 0a 23 20 49 6e 20 74 68 65 20 66 6f 6c 6c 6f  #.# In the follo
2030: 77 69 6e 67 20 6c 69 6e 65 73 2c 20 24 28 73 72  wing lines, $(sr
2040: 63 64 69 72 29 20 72 65 66 65 72 73 20 74 6f 20  cdir) refers to 
2050: 74 68 65 20 74 6f 70 6c 65 76 65 6c 20 64 69 72  the toplevel dir
2060: 65 63 74 6f 72 79 0a 23 20 63 6f 6e 74 61 69 6e  ectory.# contain
2070: 69 6e 67 20 79 6f 75 72 20 65 78 74 65 6e 73 69  ing your extensi
2080: 6f 6e 2e 20 20 49 66 20 79 6f 75 72 20 73 6f 75  on.  If your sou
2090: 72 63 65 73 20 61 72 65 20 69 6e 20 61 20 73 75  rces are in a su
20a0: 62 64 69 72 65 63 74 6f 72 79 2c 0a 23 20 79 6f  bdirectory,.# yo
20b0: 75 20 77 69 6c 6c 20 68 61 76 65 20 74 6f 20 6d  u will have to m
20c0: 6f 64 69 66 79 20 74 68 65 20 70 61 74 68 73 20  odify the paths 
20d0: 74 6f 20 72 65 66 6c 65 63 74 20 74 68 69 73 3a  to reflect this:
20e0: 0a 23 0a 23 20 73 61 6d 70 6c 65 2e 24 28 4f 42  .#.# sample.$(OB
20f0: 4a 45 58 54 29 3a 20 24 28 73 72 63 64 69 72 29  JEXT): $(srcdir)
2100: 2f 67 65 6e 65 72 69 63 2f 73 61 6d 70 6c 65 2e  /generic/sample.
2110: 63 0a 23 20 09 24 28 43 4f 4d 50 49 4c 45 29 20  c.# .$(COMPILE) 
2120: 2d 63 20 60 40 43 59 47 50 41 54 48 40 20 24 28  -c `@CYGPATH@ $(
2130: 73 72 63 64 69 72 29 2f 67 65 6e 65 72 69 63 2f  srcdir)/generic/
2140: 73 61 6d 70 6c 65 2e 63 60 20 2d 6f 20 24 40 0a  sample.c` -o $@.
2150: 23 0a 23 20 53 65 74 74 69 6e 67 20 74 68 65 20  #.# Setting the 
2160: 56 50 41 54 48 20 76 61 72 69 61 62 6c 65 20 74  VPATH variable t
2170: 6f 20 61 20 6c 69 73 74 20 6f 66 20 70 61 74 68  o a list of path
2180: 73 20 77 69 6c 6c 20 63 61 75 73 65 20 74 68 65  s will cause the
2190: 20 6d 61 6b 65 66 69 6c 65 0a 23 20 74 6f 20 6c   makefile.# to l
21a0: 6f 6f 6b 20 69 6e 74 6f 20 74 68 65 73 65 20 70  ook into these p
21b0: 61 74 68 73 20 77 68 65 6e 20 72 65 73 6f 6c 76  aths when resolv
21c0: 69 6e 67 20 2e 63 20 74 6f 20 2e 6f 62 6a 20 64  ing .c to .obj d
21d0: 65 70 65 6e 64 65 6e 63 69 65 73 2e 0a 23 20 41  ependencies..# A
21e0: 73 20 6e 65 63 65 73 73 61 72 79 2c 20 61 64 64  s necessary, add
21f0: 20 24 28 73 72 63 64 69 72 29 3a 24 28 73 72 63   $(srcdir):$(src
2200: 64 69 72 29 2f 63 6f 6d 70 61 74 3a 2e 2e 2e 2e  dir)/compat:....
2210: 0a 23 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  .#==============
2220: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
2230: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
2240: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
2250: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 0a 0a 56 50 41 54  ==========..VPAT
2260: 48 20 3d 20 24 28 73 72 63 64 69 72 29 0a 0a 2e  H = $(srcdir)...
2270: 63 2e 40 4f 42 4a 45 58 54 40 3a 0a 09 24 28 43  c.@OBJEXT@:..$(C
2280: 4f 4d 50 49 4c 45 29 20 2d 63 20 60 40 43 59 47  OMPILE) -c `@CYG
2290: 50 41 54 48 40 20 24 3c 60 20 2d 6f 20 24 40 0a  PATH@ $<` -o $@.
22a0: 0a 23 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  .#==============
22b0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
22c0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
22d0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
22e0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 0a 23 20 43 72 65  ==========.# Cre
22f0: 61 74 65 20 74 68 65 20 70 6b 67 49 6e 64 65 78  ate the pkgIndex
2300: 2e 74 63 6c 20 66 69 6c 65 2e 0a 23 20 49 74 20  .tcl file..# It 
2310: 69 73 20 75 73 75 61 6c 6c 79 20 65 61 73 69 65  is usually easie
2320: 73 74 20 74 6f 20 6c 65 74 20 54 63 6c 20 64 6f  st to let Tcl do
2330: 20 74 68 69 73 20 66 6f 72 20 79 6f 75 20 77 69   this for you wi
2340: 74 68 20 70 6b 67 5f 6d 6b 49 6e 64 65 78 2c 20  th pkg_mkIndex, 
2350: 62 75 74 0a 23 20 79 6f 75 20 6d 61 79 20 66 69  but.# you may fi
2360: 6e 64 20 74 68 61 74 20 79 6f 75 20 6e 65 65 64  nd that you need
2370: 20 74 6f 20 63 75 73 74 6f 6d 69 7a 65 20 74 68   to customize th
2380: 65 20 70 61 63 6b 61 67 65 2e 20 20 49 66 20 73  e package.  If s
2390: 6f 2c 20 65 69 74 68 65 72 0a 23 20 6d 6f 64 69  o, either.# modi
23a0: 66 79 20 74 68 65 20 2d 68 61 6e 64 20 76 65 72  fy the -hand ver
23b0: 73 69 6f 6e 2c 20 6f 72 20 63 72 65 61 74 65 20  sion, or create 
23c0: 61 20 70 6b 67 49 6e 64 65 78 2e 74 63 6c 2e 69  a pkgIndex.tcl.i
23d0: 6e 20 66 69 6c 65 20 61 6e 64 20 68 61 76 65 0a  n file and have.
23e0: 23 20 74 68 65 20 63 6f 6e 66 69 67 75 72 65 20  # the configure 
23f0: 73 63 72 69 70 74 20 6f 75 74 70 75 74 20 74 68  script output th
2400: 65 20 70 6b 67 49 6e 64 65 78 2e 74 63 6c 20 62  e pkgIndex.tcl b
2410: 79 20 65 64 69 74 69 6e 67 20 63 6f 6e 66 69 67  y editing config
2420: 75 72 65 2e 69 6e 2e 0a 23 3d 3d 3d 3d 3d 3d 3d  ure.in..#=======
2430: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
2440: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
2450: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
2460: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
2470: 3d 0a 0a 70 6b 67 49 6e 64 65 78 2e 74 63 6c 2d  =..pkgIndex.tcl-
2480: 61 75 74 6f 3a 0a 09 28 20 65 63 68 6f 20 70 6b  auto:..( echo pk
2490: 67 5f 6d 6b 49 6e 64 65 78 20 2e 20 24 28 50 4b  g_mkIndex . $(PK
24a0: 47 5f 4c 49 42 5f 46 49 4c 45 29 20 5c 3b 20 65  G_LIB_FILE) \; e
24b0: 78 69 74 3b 20 29 20 7c 20 24 28 54 43 4c 53 48  xit; ) | $(TCLSH
24c0: 29 0a 0a 70 6b 67 49 6e 64 65 78 2e 74 63 6c 3a  )..pkgIndex.tcl:
24d0: 0a 09 28 65 63 68 6f 20 27 70 61 63 6b 61 67 65  ..(echo 'package
24e0: 20 69 66 6e 65 65 64 65 64 20 24 28 50 41 43 4b   ifneeded $(PACK
24f0: 41 47 45 5f 4e 41 4d 45 29 20 24 28 50 41 43 4b  AGE_NAME) $(PACK
2500: 41 47 45 5f 56 45 52 53 49 4f 4e 29 20 5c 0a 09  AGE_VERSION) \..
2510: 20 20 20 20 22 5b 6c 69 73 74 20 73 6f 75 72 63      "[list sourc
2520: 65 20 5b 66 69 6c 65 20 6a 6f 69 6e 20 24 24 64  e [file join $$d
2530: 69 72 20 74 6c 73 2e 74 63 6c 5d 5d 20 3b 20 5c  ir tls.tcl]] ; \
2540: 0a 09 20 20 20 20 20 5b 6c 69 73 74 20 74 6c 73  ..     [list tls
2550: 3a 3a 69 6e 69 74 6c 69 62 20 24 24 64 69 72 20  ::initlib $$dir 
2560: 24 28 50 4b 47 5f 4c 49 42 5f 46 49 4c 45 29 5d  $(PKG_LIB_FILE)]
2570: 22 27 5c 0a 09 29 20 3e 20 70 6b 67 49 6e 64 65  "'\..) > pkgInde
2580: 78 2e 74 63 6c 0a 0a 23 3d 3d 3d 3d 3d 3d 3d 3d  x.tcl..#========
2590: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
25a0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
25b0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
25c0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
25d0: 0a 23 20 45 6e 64 20 6f 66 20 75 73 65 72 2d 64  .# End of user-d
25e0: 65 66 69 6e 61 62 6c 65 20 73 65 63 74 69 6f 6e  efinable section
25f0: 0a 23 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  .#==============
2600: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
2610: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
2620: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
2630: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 0a 0a 23 3d 3d 3d  ==========..#===
2640: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
2650: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
2660: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
2670: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
2680: 3d 3d 3d 3d 3d 0a 23 20 44 6f 6e 27 74 20 6d 6f  =====.# Don't mo
2690: 64 69 66 79 20 74 68 65 20 66 69 6c 65 20 74 6f  dify the file to
26a0: 20 63 6c 65 61 6e 20 68 65 72 65 2e 20 20 49 6e   clean here.  In
26b0: 73 74 65 61 64 2c 20 73 65 74 20 74 68 65 20 22  stead, set the "
26c0: 43 4c 45 41 4e 46 49 4c 45 53 22 0a 23 20 76 61  CLEANFILES".# va
26d0: 72 69 61 62 6c 65 20 69 6e 20 63 6f 6e 66 69 67  riable in config
26e0: 75 72 65 2e 69 6e 0a 23 3d 3d 3d 3d 3d 3d 3d 3d  ure.in.#========
26f0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
2700: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
2710: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
2720: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
2730: 0a 0a 63 6c 65 61 6e 3a 20 20 0a 09 2d 74 65 73  ..clean:  ..-tes
2740: 74 20 2d 7a 20 22 24 28 42 49 4e 41 52 49 45 53  t -z "$(BINARIES
2750: 29 22 20 7c 7c 20 72 6d 20 2d 66 20 24 28 42 49  )" || rm -f $(BI
2760: 4e 41 52 49 45 53 29 0a 09 2d 72 6d 20 2d 66 20  NARIES)..-rm -f 
2770: 2a 2e 24 28 4f 42 4a 45 58 54 29 20 63 6f 72 65  *.$(OBJEXT) core
2780: 20 2a 2e 63 6f 72 65 0a 09 2d 74 65 73 74 20 2d   *.core..-test -
2790: 7a 20 22 24 28 43 4c 45 41 4e 46 49 4c 45 53 29  z "$(CLEANFILES)
27a0: 22 20 7c 7c 20 72 6d 20 2d 66 20 24 28 43 4c 45  " || rm -f $(CLE
27b0: 41 4e 46 49 4c 45 53 29 0a 0a 64 69 73 74 63 6c  ANFILES)..distcl
27c0: 65 61 6e 3a 20 63 6c 65 61 6e 0a 09 2d 72 6d 20  ean: clean..-rm 
27d0: 2d 66 20 2a 2e 74 61 62 2e 63 0a 09 2d 72 6d 20  -f *.tab.c..-rm 
27e0: 2d 66 20 24 28 43 4f 4e 46 49 47 5f 43 4c 45 41  -f $(CONFIG_CLEA
27f0: 4e 5f 46 49 4c 45 53 29 0a 09 2d 72 6d 20 2d 66  N_FILES)..-rm -f
2800: 20 63 6f 6e 66 69 67 2e 63 61 63 68 65 20 63 6f   config.cache co
2810: 6e 66 69 67 2e 6c 6f 67 20 63 6f 6e 66 69 67 2e  nfig.log config.
2820: 73 74 61 74 75 73 0a 0a 43 4f 4d 50 45 58 45 09  status..COMPEXE.
2830: 09 3d 20 67 7a 69 70 0a 43 4f 4d 50 45 58 54 09  .= gzip.COMPEXT.
2840: 09 3d 20 67 7a 0a 43 4f 4d 50 52 45 53 53 09 3d  .= gz.COMPRESS.=
2850: 20 74 61 72 20 63 76 66 20 2d 20 24 28 50 4b 47   tar cvf - $(PKG
2860: 5f 44 49 52 29 20 7c 20 24 28 43 4f 4d 50 45 58  _DIR) | $(COMPEX
2870: 45 29 20 3e 20 24 28 50 4b 47 5f 44 49 52 29 2d  E) > $(PKG_DIR)-
2880: 73 72 63 2e 74 61 72 2e 24 28 43 4f 4d 50 45 58  src.tar.$(COMPEX
2890: 54 29 0a 44 49 53 54 5f 52 4f 4f 54 09 3d 20 2f  T).DIST_ROOT.= /
28a0: 74 6d 70 2f 64 69 73 74 0a 44 49 53 54 5f 44 49  tmp/dist.DIST_DI
28b0: 52 09 3d 20 24 28 44 49 53 54 5f 52 4f 4f 54 29  R.= $(DIST_ROOT)
28c0: 2f 24 28 50 4b 47 5f 44 49 52 29 0a 0a 64 69 73  /$(PKG_DIR)..dis
28d0: 74 2d 63 6c 65 61 6e 3a 0a 09 72 6d 20 2d 72 66  t-clean:..rm -rf
28e0: 20 24 28 44 49 53 54 5f 44 49 52 29 20 24 28 44   $(DIST_DIR) $(D
28f0: 49 53 54 5f 52 4f 4f 54 29 2f 24 28 50 4b 47 5f  IST_ROOT)/$(PKG_
2900: 44 49 52 29 2e 74 61 72 2e 24 28 43 4f 4d 50 45  DIR).tar.$(COMPE
2910: 58 54 29 0a 0a 64 69 73 74 3a 20 64 69 73 74 2d  XT)..dist: dist-
2920: 63 6c 65 61 6e 0a 09 6d 6b 64 69 72 20 2d 70 20  clean..mkdir -p 
2930: 24 28 44 49 53 54 5f 44 49 52 29 0a 09 63 70 20  $(DIST_DIR)..cp 
2940: 2d 70 20 24 28 73 72 63 64 69 72 29 2f 52 45 41  -p $(srcdir)/REA
2950: 44 4d 45 2e 74 78 74 20 24 28 73 72 63 64 69 72  DME.txt $(srcdir
2960: 29 2f 43 68 61 6e 67 65 4c 6f 67 20 24 28 73 72  )/ChangeLog $(sr
2970: 63 64 69 72 29 2f 74 6c 73 2e 68 74 6d 20 5c 0a  cdir)/tls.htm \.
2980: 09 09 24 28 73 72 63 64 69 72 29 2f 63 6f 6e 66  ..$(srcdir)/conf
2990: 69 67 75 72 65 20 24 28 73 72 63 64 69 72 29 2f  igure $(srcdir)/
29a0: 63 6f 6e 66 69 67 75 72 65 2e 69 6e 20 5c 0a 09  configure.in \..
29b0: 09 24 28 73 72 63 64 69 72 29 2f 4d 61 6b 65 66  .$(srcdir)/Makef
29c0: 69 6c 65 2e 69 6e 20 24 28 73 72 63 64 69 72 29  ile.in $(srcdir)
29d0: 2f 2a 2e 5b 63 68 5d 20 5c 0a 09 09 24 28 73 72  /*.[ch] \...$(sr
29e0: 63 64 69 72 29 2f 6c 69 63 65 6e 73 65 2e 74 65  cdir)/license.te
29f0: 72 6d 73 20 5c 0a 09 09 24 28 73 72 63 64 69 72  rms \...$(srcdir
2a00: 29 2f 61 63 6c 6f 63 61 6c 2e 6d 34 20 24 28 73  )/aclocal.m4 $(s
2a10: 72 63 64 69 72 29 2f 74 6c 73 2e 74 63 6c 20 5c  rcdir)/tls.tcl \
2a20: 0a 09 09 24 28 44 49 53 54 5f 44 49 52 29 0a 09  ...$(DIST_DIR)..
2a30: 63 68 6d 6f 64 20 36 36 34 20 24 28 44 49 53 54  chmod 664 $(DIST
2a40: 5f 44 49 52 29 2f 4d 61 6b 65 66 69 6c 65 2e 69  _DIR)/Makefile.i
2a50: 6e 20 24 28 44 49 53 54 5f 44 49 52 29 2f 61 63  n $(DIST_DIR)/ac
2a60: 6c 6f 63 61 6c 2e 6d 34 0a 09 63 68 6d 6f 64 20  local.m4..chmod 
2a70: 37 37 35 20 24 28 44 49 53 54 5f 44 49 52 29 2f  775 $(DIST_DIR)/
2a80: 63 6f 6e 66 69 67 75 72 65 20 24 28 44 49 53 54  configure $(DIST
2a90: 5f 44 49 52 29 2f 63 6f 6e 66 69 67 75 72 65 2e  _DIR)/configure.
2aa0: 69 6e 0a 0a 09 6d 6b 64 69 72 20 24 28 44 49 53  in...mkdir $(DIS
2ab0: 54 5f 44 49 52 29 2f 74 63 6c 63 6f 6e 66 69 67  T_DIR)/tclconfig
2ac0: 0a 09 63 70 20 2d 70 20 24 28 73 72 63 64 69 72  ..cp -p $(srcdir
2ad0: 29 2f 74 63 6c 63 6f 6e 66 69 67 2f 69 6e 73 74  )/tclconfig/inst
2ae0: 61 6c 6c 2d 73 68 20 24 28 73 72 63 64 69 72 29  all-sh $(srcdir)
2af0: 2f 74 63 6c 63 6f 6e 66 69 67 2f 74 63 6c 2e 6d  /tclconfig/tcl.m
2b00: 34 20 5c 0a 09 09 24 28 44 49 53 54 5f 44 49 52  4 \...$(DIST_DIR
2b10: 29 2f 74 63 6c 63 6f 6e 66 69 67 2f 0a 09 63 68  )/tclconfig/..ch
2b20: 6d 6f 64 20 36 36 34 20 24 28 44 49 53 54 5f 44  mod 664 $(DIST_D
2b30: 49 52 29 2f 74 63 6c 63 6f 6e 66 69 67 2f 74 63  IR)/tclconfig/tc
2b40: 6c 2e 6d 34 0a 09 63 68 6d 6f 64 20 2b 78 20 24  l.m4..chmod +x $
2b50: 28 44 49 53 54 5f 44 49 52 29 2f 74 63 6c 63 6f  (DIST_DIR)/tclco
2b60: 6e 66 69 67 2f 69 6e 73 74 61 6c 6c 2d 73 68 0a  nfig/install-sh.
2b70: 0a 09 6d 6b 64 69 72 20 24 28 44 49 53 54 5f 44  ..mkdir $(DIST_D
2b80: 49 52 29 2f 74 65 73 74 73 0a 09 63 70 20 2d 70  IR)/tests..cp -p
2b90: 20 24 28 73 72 63 64 69 72 29 2f 74 65 73 74 73   $(srcdir)/tests
2ba0: 2f 2a 2e 7b 74 63 6c 2c 74 65 73 74 7d 20 24 28  /*.{tcl,test} $(
2bb0: 44 49 53 54 5f 44 49 52 29 2f 74 65 73 74 73 0a  DIST_DIR)/tests.
2bc0: 0a 09 6d 6b 64 69 72 20 24 28 44 49 53 54 5f 44  ..mkdir $(DIST_D
2bd0: 49 52 29 2f 74 65 73 74 73 2f 63 65 72 74 73 0a  IR)/tests/certs.
2be0: 09 63 70 20 2d 70 20 24 28 73 72 63 64 69 72 29  .cp -p $(srcdir)
2bf0: 2f 74 65 73 74 73 2f 63 65 72 74 73 2f 2a 2e 7b  /tests/certs/*.{
2c00: 70 65 6d 2c 6b 65 79 2c 72 65 71 2c 74 78 74 2c  pem,key,req,txt,
2c10: 73 72 6c 7d 20 5c 0a 09 09 24 28 44 49 53 54 5f  srl} \...$(DIST_
2c20: 44 49 52 29 2f 74 65 73 74 73 2f 63 65 72 74 73  DIR)/tests/certs
2c30: 0a 0a 09 6d 6b 64 69 72 20 24 28 44 49 53 54 5f  ...mkdir $(DIST_
2c40: 44 49 52 29 2f 77 69 6e 0a 09 63 70 20 2d 70 20  DIR)/win..cp -p 
2c50: 24 28 73 72 63 64 69 72 29 2f 77 69 6e 2f 2a 2e  $(srcdir)/win/*.
2c60: 7b 76 63 2c 72 63 2c 63 7d 20 24 28 44 49 53 54  {vc,rc,c} $(DIST
2c70: 5f 44 49 52 29 2f 77 69 6e 0a 0a 09 28 63 64 20  _DIR)/win...(cd 
2c80: 24 28 44 49 53 54 5f 52 4f 4f 54 29 3b 20 24 28  $(DIST_ROOT); $(
2c90: 43 4f 4d 50 52 45 53 53 29 3b 29 0a 0a 23 3d 3d  COMPRESS);)..#==
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 3d 3d 3d  ================
2cc0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
2cd0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
2ce0: 3d 3d 3d 3d 3d 3d 0a 23 20 49 6e 73 74 61 6c 6c  ======.# Install
2cf0: 20 62 69 6e 61 72 79 20 6f 62 6a 65 63 74 20 6c   binary object l
2d00: 69 62 72 61 72 69 65 73 2e 20 20 4f 6e 20 57 69  ibraries.  On Wi
2d10: 6e 64 6f 77 73 20 74 68 69 73 20 69 6e 63 6c 75  ndows this inclu
2d20: 64 65 73 20 62 6f 74 68 20 2e 64 6c 6c 20 61 6e  des both .dll an
2d30: 64 0a 23 20 2e 6c 69 62 20 66 69 6c 65 73 2e 20  d.# .lib files. 
2d40: 20 42 65 63 61 75 73 65 20 74 68 65 20 2e 6c 69   Because the .li
2d50: 62 20 66 69 6c 65 73 20 61 72 65 20 6e 6f 74 20  b files are not 
2d60: 65 78 70 6c 69 63 69 74 6c 79 20 6c 69 73 74 65  explicitly liste
2d70: 64 20 61 6e 79 77 68 65 72 65 2c 0a 23 20 77 65  d anywhere,.# we
2d80: 20 6e 65 65 64 20 74 6f 20 64 65 64 75 63 65 20   need to deduce 
2d90: 74 68 65 69 72 20 65 78 69 73 74 65 6e 63 65 20  their existence 
2da0: 66 72 6f 6d 20 74 68 65 20 2e 64 6c 6c 20 66 69  from the .dll fi
2db0: 6c 65 20 6f 66 20 74 68 65 20 73 61 6d 65 20 6e  le of the same n
2dc0: 61 6d 65 2e 0a 23 20 41 64 64 69 74 69 6f 6e 61  ame..# Additiona
2dd0: 6c 6c 79 2c 20 74 68 65 20 2e 64 6c 6c 20 66 69  lly, the .dll fi
2de0: 6c 65 73 20 67 6f 20 69 6e 74 6f 20 74 68 65 20  les go into the 
2df0: 62 69 6e 20 64 69 72 65 63 74 6f 72 79 2c 20 62  bin directory, b
2e00: 75 74 20 74 68 65 20 2e 6c 69 62 0a 23 20 66 69  ut the .lib.# fi
2e10: 6c 65 73 20 67 6f 20 69 6e 74 6f 20 74 68 65 20  les go into the 
2e20: 6c 69 62 20 64 69 72 65 63 74 6f 72 79 2e 20 20  lib directory.  
2e30: 4f 6e 20 55 6e 69 78 20 70 6c 61 74 66 6f 72 6d  On Unix platform
2e40: 73 2c 20 61 6c 6c 20 6c 69 62 72 61 72 79 20 66  s, all library f
2e50: 69 6c 65 73 0a 23 20 67 6f 20 69 6e 74 6f 20 74  iles.# go into t
2e60: 68 65 20 6c 69 62 20 64 69 72 65 63 74 6f 72 79  he lib directory
2e70: 2e 20 20 49 6e 20 61 64 64 69 74 69 6f 6e 2c 20  .  In addition, 
2e80: 74 68 69 73 20 77 69 6c 6c 20 67 65 6e 65 72 61  this will genera
2e90: 74 65 20 74 68 65 20 70 6b 67 49 6e 64 65 78 2e  te the pkgIndex.
2ea0: 74 63 6c 0a 23 20 66 69 6c 65 20 69 6e 20 74 68  tcl.# file in th
2eb0: 65 20 69 6e 73 74 61 6c 6c 20 6c 6f 63 61 74 69  e install locati
2ec0: 6f 6e 20 28 61 73 73 75 6d 69 6e 67 20 69 74 20  on (assuming it 
2ed0: 63 61 6e 20 66 69 6e 64 20 61 20 75 73 61 62 6c  can find a usabl
2ee0: 65 20 74 63 6c 73 68 29 0a 23 0a 23 20 59 6f 75  e tclsh).#.# You
2ef0: 20 73 68 6f 75 6c 64 20 6e 6f 74 20 68 61 76 65   should not have
2f00: 20 74 6f 20 6d 6f 64 69 66 79 20 74 68 69 73 20   to modify this 
2f10: 74 61 72 67 65 74 2e 0a 23 3d 3d 3d 3d 3d 3d 3d  target..#=======
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 3d 3d 3d 3d  ================
2f60: 3d 0a 0a 69 6e 73 74 61 6c 6c 2d 6c 69 62 2d 62  =..install-lib-b
2f70: 69 6e 61 72 69 65 73 3a 0a 09 40 6d 6b 64 69 72  inaries:..@mkdir
2f80: 20 2d 70 20 24 28 44 45 53 54 44 49 52 29 24 28   -p $(DESTDIR)$(
2f90: 70 6b 67 6c 69 62 64 69 72 29 0a 09 40 6c 69 73  pkglibdir)..@lis
2fa0: 74 3d 27 24 28 6c 69 62 5f 42 49 4e 41 52 49 45  t='$(lib_BINARIE
2fb0: 53 29 27 3b 20 66 6f 72 20 70 20 69 6e 20 24 24  S)'; for p in $$
2fc0: 6c 69 73 74 3b 20 64 6f 20 5c 0a 09 20 20 69 66  list; do \..  if
2fd0: 20 74 65 73 74 20 2d 66 20 24 24 70 3b 20 74 68   test -f $$p; th
2fe0: 65 6e 20 5c 0a 09 20 20 20 20 65 63 68 6f 20 22  en \..    echo "
2ff0: 20 24 28 49 4e 53 54 41 4c 4c 5f 50 52 4f 47 52   $(INSTALL_PROGR
3000: 41 4d 29 20 24 24 70 20 24 28 44 45 53 54 44 49  AM) $$p $(DESTDI
3010: 52 29 24 28 70 6b 67 6c 69 62 64 69 72 29 2f 24  R)$(pkglibdir)/$
3020: 24 70 22 3b 20 5c 0a 09 20 20 20 20 24 28 49 4e  $p"; \..    $(IN
3030: 53 54 41 4c 4c 5f 50 52 4f 47 52 41 4d 29 20 24  STALL_PROGRAM) $
3040: 24 70 20 24 28 44 45 53 54 44 49 52 29 24 28 70  $p $(DESTDIR)$(p
3050: 6b 67 6c 69 62 64 69 72 29 2f 24 24 70 3b 20 5c  kglibdir)/$$p; \
3060: 0a 09 20 20 20 20 73 74 75 62 3d 60 65 63 68 6f  ..    stub=`echo
3070: 20 24 24 70 7c 73 65 64 20 2d 65 20 22 73 2f 2e   $$p|sed -e "s/.
3080: 2a 5c 28 73 74 75 62 5c 29 2e 2a 2f 5c 31 2f 22  *\(stub\).*/\1/"
3090: 60 3b 20 5c 0a 09 20 20 20 20 69 66 20 74 65 73  `; \..    if tes
30a0: 74 20 22 78 24 24 73 74 75 62 22 20 3d 20 22 78  t "x$$stub" = "x
30b0: 73 74 75 62 22 3b 20 74 68 65 6e 20 5c 0a 09 09  stub"; then \...
30c0: 65 63 68 6f 20 22 20 24 28 52 41 4e 4c 49 42 5f  echo " $(RANLIB_
30d0: 53 54 55 42 29 20 24 28 44 45 53 54 44 49 52 29  STUB) $(DESTDIR)
30e0: 24 28 70 6b 67 6c 69 62 64 69 72 29 2f 24 24 70  $(pkglibdir)/$$p
30f0: 22 3b 20 5c 0a 09 09 24 28 52 41 4e 4c 49 42 5f  "; \...$(RANLIB_
3100: 53 54 55 42 29 20 24 28 44 45 53 54 44 49 52 29  STUB) $(DESTDIR)
3110: 24 28 70 6b 67 6c 69 62 64 69 72 29 2f 24 24 70  $(pkglibdir)/$$p
3120: 3b 20 5c 0a 09 20 20 20 20 65 6c 73 65 20 5c 0a  ; \..    else \.
3130: 09 09 65 63 68 6f 20 22 20 24 28 52 41 4e 4c 49  ..echo " $(RANLI
3140: 42 29 20 24 28 44 45 53 54 44 49 52 29 24 28 70  B) $(DESTDIR)$(p
3150: 6b 67 6c 69 62 64 69 72 29 2f 24 24 70 22 3b 20  kglibdir)/$$p"; 
3160: 5c 0a 09 09 24 28 52 41 4e 4c 49 42 29 20 24 28  \...$(RANLIB) $(
3170: 44 45 53 54 44 49 52 29 24 28 70 6b 67 6c 69 62  DESTDIR)$(pkglib
3180: 64 69 72 29 2f 24 24 70 3b 20 5c 0a 09 20 20 20  dir)/$$p; \..   
3190: 20 66 69 3b 20 5c 0a 09 20 20 20 20 65 78 74 3d   fi; \..    ext=
31a0: 60 65 63 68 6f 20 24 24 70 7c 73 65 64 20 2d 65  `echo $$p|sed -e
31b0: 20 22 73 2f 2e 2a 5c 2e 2f 2f 22 60 3b 20 5c 0a   "s/.*\.//"`; \.
31c0: 09 20 20 20 20 69 66 20 74 65 73 74 20 22 78 24  .    if test "x$
31d0: 24 65 78 74 22 20 3d 20 22 78 64 6c 6c 22 3b 20  $ext" = "xdll"; 
31e0: 74 68 65 6e 20 5c 0a 09 09 6c 69 62 3d 60 62 61  then \...lib=`ba
31f0: 73 65 6e 61 6d 65 20 24 24 70 7c 73 65 64 20 2d  sename $$p|sed -
3200: 65 20 27 73 2f 2e 5b 5e 2e 5d 2a 24 24 2f 2f 27  e 's/.[^.]*$$//'
3210: 60 2e 6c 69 62 3b 20 5c 0a 09 09 69 66 20 74 65  `.lib; \...if te
3220: 73 74 20 2d 66 20 24 24 6c 69 62 3b 20 74 68 65  st -f $$lib; the
3230: 6e 20 5c 0a 09 09 20 20 20 20 65 63 68 6f 20 22  n \...    echo "
3240: 20 24 28 49 4e 53 54 41 4c 4c 5f 44 41 54 41 29   $(INSTALL_DATA)
3250: 20 24 24 6c 69 62 20 24 28 44 45 53 54 44 49 52   $$lib $(DESTDIR
3260: 29 24 28 70 6b 67 6c 69 62 64 69 72 29 2f 24 24  )$(pkglibdir)/$$
3270: 6c 69 62 22 3b 20 5c 0a 09 20 20 20 20 20 20 20  lib"; \..       
3280: 20 20 20 20 20 24 28 49 4e 53 54 41 4c 4c 5f 44       $(INSTALL_D
3290: 41 54 41 29 20 24 24 6c 69 62 20 24 28 44 45 53  ATA) $$lib $(DES
32a0: 54 44 49 52 29 24 28 70 6b 67 6c 69 62 64 69 72  TDIR)$(pkglibdir
32b0: 29 2f 24 24 6c 69 62 3b 20 5c 0a 09 09 66 69 3b  )/$$lib; \...fi;
32c0: 20 5c 0a 09 20 20 20 20 66 69 3b 20 5c 0a 09 20   \..    fi; \.. 
32d0: 20 66 69 3b 20 5c 0a 09 64 6f 6e 65 0a 09 40 6c   fi; \..done..@l
32e0: 69 73 74 3d 27 24 28 50 4b 47 5f 54 43 4c 5f 53  ist='$(PKG_TCL_S
32f0: 4f 55 52 43 45 53 29 27 3b 20 66 6f 72 20 70 20  OURCES)'; for p 
3300: 69 6e 20 24 24 6c 69 73 74 3b 20 64 6f 20 5c 0a  in $$list; do \.
3310: 09 20 20 69 66 20 74 65 73 74 20 2d 66 20 24 28  .  if test -f $(
3320: 73 72 63 64 69 72 29 2f 24 24 70 3b 20 74 68 65  srcdir)/$$p; the
3330: 6e 20 5c 0a 09 20 20 20 20 64 65 73 74 70 3d 60  n \..    destp=`
3340: 62 61 73 65 6e 61 6d 65 20 24 24 70 60 3b 20 5c  basename $$p`; \
3350: 0a 09 20 20 20 20 65 63 68 6f 20 22 20 49 6e 73  ..    echo " Ins
3360: 74 61 6c 6c 20 24 24 64 65 73 74 70 20 24 28 44  tall $$destp $(D
3370: 45 53 54 44 49 52 29 24 28 70 6b 67 6c 69 62 64  ESTDIR)$(pkglibd
3380: 69 72 29 2f 24 24 64 65 73 74 70 22 3b 20 5c 0a  ir)/$$destp"; \.
3390: 09 20 20 20 20 24 28 49 4e 53 54 41 4c 4c 5f 44  .    $(INSTALL_D
33a0: 41 54 41 29 20 24 28 73 72 63 64 69 72 29 2f 24  ATA) $(srcdir)/$
33b0: 24 70 20 24 28 44 45 53 54 44 49 52 29 24 28 70  $p $(DESTDIR)$(p
33c0: 6b 67 6c 69 62 64 69 72 29 2f 24 24 64 65 73 74  kglibdir)/$$dest
33d0: 70 3b 20 5c 0a 09 20 20 66 69 3b 20 5c 0a 09 64  p; \..  fi; \..d
33e0: 6f 6e 65 0a 09 40 69 66 20 74 65 73 74 20 22 78  one..@if test "x
33f0: 24 28 53 48 41 52 45 44 5f 42 55 49 4c 44 29 22  $(SHARED_BUILD)"
3400: 20 3d 20 22 78 31 22 3b 20 74 68 65 6e 20 5c 0a   = "x1"; then \.
3410: 09 20 20 20 20 65 63 68 6f 20 22 20 49 6e 73 74  .    echo " Inst
3420: 61 6c 6c 20 70 6b 67 49 6e 64 65 78 2e 74 63 6c  all pkgIndex.tcl
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 22 3b 20 5c 0a 09 20 20 20  libdir)"; \..   
3450: 20 24 28 49 4e 53 54 41 4c 4c 5f 44 41 54 41 29   $(INSTALL_DATA)
3460: 20 70 6b 67 49 6e 64 65 78 2e 74 63 6c 20 24 28   pkgIndex.tcl $(
3470: 44 45 53 54 44 49 52 29 24 28 70 6b 67 6c 69 62  DESTDIR)$(pkglib
3480: 64 69 72 29 3b 20 5c 0a 09 66 69 0a 0a 23 3d 3d  dir); \..fi..#==
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 3d 3d 3d 3d  ================
34b0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
34c0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
34d0: 3d 3d 3d 3d 3d 3d 0a 23 20 49 6e 73 74 61 6c 6c  ======.# Install
34e0: 20 62 69 6e 61 72 79 20 65 78 65 63 75 74 61 62   binary executab
34f0: 6c 65 73 20 28 65 2e 67 2e 20 2e 65 78 65 20 66  les (e.g. .exe f
3500: 69 6c 65 73 29 0a 23 0a 23 20 59 6f 75 20 73 68  iles).#.# You sh
3510: 6f 75 6c 64 20 6e 6f 74 20 68 61 76 65 20 74 6f  ould not have to
3520: 20 6d 6f 64 69 66 79 20 74 68 69 73 20 74 61 72   modify this tar
3530: 67 65 74 2e 0a 23 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  get..#==========
3540: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
3550: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
3560: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
3570: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 0a 0a  ==============..
3580: 69 6e 73 74 61 6c 6c 2d 62 69 6e 2d 62 69 6e 61  install-bin-bina
3590: 72 69 65 73 3a 0a 09 40 6d 6b 64 69 72 20 2d 70  ries:..@mkdir -p
35a0: 20 24 28 44 45 53 54 44 49 52 29 24 28 62 69 6e   $(DESTDIR)$(bin
35b0: 64 69 72 29 0a 09 40 6c 69 73 74 3d 27 24 28 62  dir)..@list='$(b
35c0: 69 6e 5f 42 49 4e 41 52 49 45 53 29 27 3b 20 66  in_BINARIES)'; f
35d0: 6f 72 20 70 20 69 6e 20 24 24 6c 69 73 74 3b 20  or p in $$list; 
35e0: 64 6f 20 5c 0a 09 20 20 69 66 20 74 65 73 74 20  do \..  if test 
35f0: 2d 66 20 24 24 70 3b 20 74 68 65 6e 20 5c 0a 09  -f $$p; then \..
3600: 20 20 20 20 65 63 68 6f 20 22 20 24 28 49 4e 53      echo " $(INS
3610: 54 41 4c 4c 5f 50 52 4f 47 52 41 4d 29 20 24 24  TALL_PROGRAM) $$
3620: 70 20 24 28 44 45 53 54 44 49 52 29 24 28 62 69  p $(DESTDIR)$(bi
3630: 6e 64 69 72 29 2f 24 24 70 22 3b 20 5c 0a 09 20  ndir)/$$p"; \.. 
3640: 20 20 20 24 28 49 4e 53 54 41 4c 4c 5f 50 52 4f     $(INSTALL_PRO
3650: 47 52 41 4d 29 20 24 24 70 20 24 28 44 45 53 54  GRAM) $$p $(DEST
3660: 44 49 52 29 24 28 62 69 6e 64 69 72 29 2f 24 24  DIR)$(bindir)/$$
3670: 70 3b 20 5c 0a 09 20 20 66 69 3b 20 5c 0a 09 64  p; \..  fi; \..d
3680: 6f 6e 65 0a 0a 2e 53 55 46 46 49 58 45 53 3a 20  one...SUFFIXES: 
3690: 2e 63 20 2e 24 28 4f 42 4a 45 58 54 29 0a 0a 4d  .c .$(OBJEXT)..M
36a0: 61 6b 65 66 69 6c 65 3a 20 24 28 73 72 63 64 69  akefile: $(srcdi
36b0: 72 29 2f 4d 61 6b 65 66 69 6c 65 2e 69 6e 20 20  r)/Makefile.in  
36c0: 24 28 74 6f 70 5f 62 75 69 6c 64 64 69 72 29 2f  $(top_builddir)/
36d0: 63 6f 6e 66 69 67 2e 73 74 61 74 75 73 0a 09 63  config.status..c
36e0: 64 20 24 28 74 6f 70 5f 62 75 69 6c 64 64 69 72  d $(top_builddir
36f0: 29 20 5c 0a 09 20 20 26 26 20 43 4f 4e 46 49 47  ) \..  && CONFIG
3700: 5f 46 49 4c 45 53 3d 24 40 20 43 4f 4e 46 49 47  _FILES=$@ CONFIG
3710: 5f 48 45 41 44 45 52 53 3d 20 24 28 53 48 45 4c  _HEADERS= $(SHEL
3720: 4c 29 20 2e 2f 63 6f 6e 66 69 67 2e 73 74 61 74  L) ./config.stat
3730: 75 73 0a 0a 75 6e 69 6e 73 74 61 6c 6c 2d 62 69  us..uninstall-bi
3740: 6e 61 72 69 65 73 3a 0a 09 6c 69 73 74 3d 27 24  naries:..list='$
3750: 28 6c 69 62 5f 42 49 4e 41 52 49 45 53 29 27 3b  (lib_BINARIES)';
3760: 20 66 6f 72 20 70 20 69 6e 20 24 24 6c 69 73 74   for p in $$list
3770: 3b 20 64 6f 20 5c 0a 09 20 20 72 6d 20 2d 66 20  ; do \..  rm -f 
3780: 24 28 44 45 53 54 44 49 52 29 24 28 70 6b 67 6c  $(DESTDIR)$(pkgl
3790: 69 62 64 69 72 29 2f 24 24 70 3b 20 5c 0a 09 64  ibdir)/$$p; \..d
37a0: 6f 6e 65 0a 09 6c 69 73 74 3d 27 24 28 50 4b 47  one..list='$(PKG
37b0: 5f 54 43 4c 5f 53 4f 55 52 43 45 53 29 27 3b 20  _TCL_SOURCES)'; 
37c0: 66 6f 72 20 70 20 69 6e 20 24 24 6c 69 73 74 3b  for p in $$list;
37d0: 20 64 6f 20 5c 0a 09 20 20 70 3d 60 62 61 73 65   do \..  p=`base
37e0: 6e 61 6d 65 20 24 24 70 60 3b 20 5c 0a 09 20 20  name $$p`; \..  
37f0: 72 6d 20 2d 66 20 24 28 44 45 53 54 44 49 52 29  rm -f $(DESTDIR)
3800: 24 28 70 6b 67 6c 69 62 64 69 72 29 2f 24 24 70  $(pkglibdir)/$$p
3810: 3b 20 5c 0a 09 64 6f 6e 65 0a 09 6c 69 73 74 3d  ; \..done..list=
3820: 27 24 28 62 69 6e 5f 42 49 4e 41 52 49 45 53 29  '$(bin_BINARIES)
3830: 27 3b 20 66 6f 72 20 70 20 69 6e 20 24 24 6c 69  '; for p in $$li
3840: 73 74 3b 20 64 6f 20 5c 0a 09 20 20 72 6d 20 2d  st; do \..  rm -
3850: 66 20 24 28 44 45 53 54 44 49 52 29 24 28 62 69  f $(DESTDIR)$(bi
3860: 6e 64 69 72 29 2f 24 24 70 3b 20 5c 0a 09 64 6f  ndir)/$$p; \..do
3870: 6e 65 0a 0a 2e 50 48 4f 4e 59 3a 20 61 6c 6c 20  ne...PHONY: all 
3880: 62 69 6e 61 72 69 65 73 20 63 6c 65 61 6e 20 64  binaries clean d
3890: 65 70 65 6e 64 20 64 69 73 74 63 6c 65 61 6e 20  epend distclean 
38a0: 64 6f 63 20 69 6e 73 74 61 6c 6c 20 6c 69 62 72  doc install libr
38b0: 61 72 69 65 73 20 74 65 73 74 0a 0a 23 20 54 65  aries test..# Te
38c0: 6c 6c 20 76 65 72 73 69 6f 6e 73 20 5b 33 2e 35  ll versions [3.5
38d0: 39 2c 33 2e 36 33 29 20 6f 66 20 47 4e 55 20 6d  9,3.63) of GNU m
38e0: 61 6b 65 20 74 6f 20 6e 6f 74 20 65 78 70 6f 72  ake to not expor
38f0: 74 20 61 6c 6c 20 76 61 72 69 61 62 6c 65 73 2e  t all variables.
3900: 0a 23 20 4f 74 68 65 72 77 69 73 65 20 61 20 73  .# Otherwise a s
3910: 79 73 74 65 6d 20 6c 69 6d 69 74 20 28 66 6f 72  ystem limit (for
3920: 20 53 79 73 56 20 61 74 20 6c 65 61 73 74 29 20   SysV at least) 
3930: 6d 61 79 20 62 65 20 65 78 63 65 65 64 65 64 2e  may be exceeded.
3940: 0a 2e 4e 4f 45 58 50 4f 52 54 3a 0a              ..NOEXPORT:.