TclGPG  Hex Artifact Content

Artifact a35ab840c5f04bc652cce7983c338d6b644b83c8:

Attachment "Makefile" to ticket [7cc5bea34f] added by sgolovan 2015-03-17 12:47:38.
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 74 65 6d  s a Makefile tem
0030: 70 6c 61 74 65 20 66 6f 72 20 54 63 6c 47 50 47  plate for TclGPG
0040: 2e 20 49 74 20 77 61 73 20 69 6e 69 74 69 61 6c  . It was initial
0050: 6c 79 0a 23 09 62 6f 72 72 6f 77 65 64 20 66 72  ly.#.borrowed fr
0060: 6f 6d 0a 23 09 68 74 74 70 3a 2f 2f 74 63 6c 2e  om.#.http://tcl.
0070: 63 76 73 2e 73 6f 75 72 63 65 66 6f 72 67 65 2e  cvs.sourceforge.
0080: 6e 65 74 2f 76 69 65 77 76 63 2f 2a 63 68 65 63  net/viewvc/*chec
0090: 6b 6f 75 74 2a 2f 74 63 6c 2f 73 61 6d 70 6c 65  kout*/tcl/sample
00a0: 65 78 74 65 6e 73 69 6f 6e 2f 0a 23 09 61 6e 64  extension/.#.and
00b0: 20 6d 6f 64 69 66 69 65 64 2e 0a 23 0a 23 20 43   modified..#.# C
00c0: 6f 70 79 72 69 67 68 74 20 28 63 29 20 31 39 39  opyright (c) 199
00d0: 39 20 53 63 72 69 70 74 69 63 73 20 43 6f 72 70  9 Scriptics Corp
00e0: 6f 72 61 74 69 6f 6e 2e 0a 23 20 43 6f 70 79 72  oration..# Copyr
00f0: 69 67 68 74 20 28 63 29 20 32 30 30 32 2d 32 30  ight (c) 2002-20
0100: 30 35 20 41 63 74 69 76 65 53 74 61 74 65 20 43  05 ActiveState C
0110: 6f 72 70 6f 72 61 74 69 6f 6e 2e 0a 23 20 43 6f  orporation..# Co
0120: 70 79 72 69 67 68 74 20 28 63 29 20 32 30 30 38  pyright (c) 2008
0130: 2d 32 30 30 39 20 53 65 72 67 65 69 20 47 6f 6c  -2009 Sergei Gol
0140: 6f 76 61 6e 20 3c 73 67 6f 6c 6f 76 61 6e 40 6e  ovan <sgolovan@n
0150: 65 73 2e 72 75 3e 0a 23 0a 23 20 53 65 65 20 74  es.ru>.#.# See t
0160: 68 65 20 66 69 6c 65 20 22 6c 69 63 65 6e 73 65  he file "license
0170: 2e 74 65 72 6d 73 22 20 66 6f 72 20 69 6e 66 6f  .terms" for info
0180: 72 6d 61 74 69 6f 6e 20 6f 6e 20 75 73 61 67 65  rmation on usage
0190: 20 61 6e 64 20 72 65 64 69 73 74 72 69 62 75 74   and redistribut
01a0: 69 6f 6e 0a 23 20 6f 66 20 74 68 69 73 20 66 69  ion.# of this fi
01b0: 6c 65 2c 20 61 6e 64 20 66 6f 72 20 61 20 44 49  le, and for a DI
01c0: 53 43 4c 41 49 4d 45 52 20 4f 46 20 41 4c 4c 20  SCLAIMER OF ALL 
01d0: 57 41 52 52 41 4e 54 49 45 53 2e 0a 23 0a 23 20  WARRANTIES..#.# 
01e0: 24 49 64 3a 20 4d 61 6b 65 66 69 6c 65 2e 69 6e  $Id: Makefile.in
01f0: 20 35 39 20 32 30 30 39 2d 30 38 2d 31 35 20 31   59 2009-08-15 1
0200: 39 3a 35 38 3a 34 34 5a 20 73 67 6f 6c 6f 76 61  9:58:44Z sgolova
0210: 6e 20 24 0a 0a 23 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  n $..#==========
0220: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
0230: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
0240: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
0250: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 0a 23  ==============.#
0260: 20 41 64 64 20 61 64 64 69 74 69 6f 6e 61 6c 20   Add additional 
0270: 6c 69 6e 65 73 20 74 6f 20 68 61 6e 64 6c 65 20  lines to handle 
0280: 61 6e 79 20 61 64 64 69 74 69 6f 6e 61 6c 20 41  any additional A
0290: 43 5f 53 55 42 53 54 20 63 61 73 65 73 20 74 68  C_SUBST cases th
02a0: 61 74 0a 23 20 68 61 76 65 20 62 65 65 6e 20 61  at.# have been a
02b0: 64 64 65 64 20 69 6e 20 61 20 63 75 73 74 6f 6d  dded in a custom
02c0: 69 7a 65 64 20 63 6f 6e 66 69 67 75 72 65 20 73  ized configure s
02d0: 63 72 69 70 74 2e 0a 23 3d 3d 3d 3d 3d 3d 3d 3d  cript..#========
02e0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
02f0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
0300: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
0310: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
0320: 0a 0a 23 53 41 4d 50 4c 45 5f 4e 45 57 5f 56 41  ..#SAMPLE_NEW_VA
0330: 52 09 3d 20 40 53 41 4d 50 4c 45 5f 4e 45 57 5f  R.= @SAMPLE_NEW_
0340: 56 41 52 40 0a 0a 23 3d 3d 3d 3d 3d 3d 3d 3d 3d  VAR@..#=========
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 3d 3d  ================
0380: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 0a  ===============.
0390: 23 20 4e 6f 74 68 69 6e 67 20 6f 66 20 74 68 65  # Nothing of the
03a0: 20 76 61 72 69 61 62 6c 65 73 20 62 65 6c 6f 77   variables below
03b0: 20 74 68 69 73 20 6c 69 6e 65 20 73 68 6f 75 6c   this line shoul
03c0: 64 20 6e 65 65 64 20 74 6f 20 62 65 20 63 68 61  d need to be cha
03d0: 6e 67 65 64 2e 0a 23 20 50 6c 65 61 73 65 20 63  nged..# Please c
03e0: 68 65 63 6b 20 74 68 65 20 54 41 52 47 45 54 53  heck the TARGETS
03f0: 20 73 65 63 74 69 6f 6e 20 62 65 6c 6f 77 20 74   section below t
0400: 6f 20 6d 61 6b 65 20 73 75 72 65 20 74 68 65 20  o make sure the 
0410: 6d 61 6b 65 20 74 61 72 67 65 74 73 0a 23 20 61  make targets.# a
0420: 72 65 20 63 6f 72 72 65 63 74 2e 0a 23 3d 3d 3d  re correct..#===
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 3d 3d  ================
0470: 3d 3d 3d 3d 3d 0a 0a 23 3d 3d 3d 3d 3d 3d 3d 3d  =====..#========
0480: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
0490: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
04a0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
04b0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
04c0: 0a 23 20 54 68 65 20 6e 61 6d 65 73 20 6f 66 20  .# The names of 
04d0: 74 68 65 20 73 6f 75 72 63 65 20 66 69 6c 65 73  the source files
04e0: 20 69 73 20 64 65 66 69 6e 65 64 20 69 6e 20 74   is defined in t
04f0: 68 65 20 63 6f 6e 66 69 67 75 72 65 20 73 63 72  he configure scr
0500: 69 70 74 2e 0a 23 20 54 68 65 20 6f 62 6a 65 63  ipt..# The objec
0510: 74 20 66 69 6c 65 73 20 61 72 65 20 75 73 65 64  t files are used
0520: 20 66 6f 72 20 6c 69 6e 6b 69 6e 67 20 69 6e 74   for linking int
0530: 6f 20 74 68 65 20 66 69 6e 61 6c 20 6c 69 62 72  o the final libr
0540: 61 72 79 2e 0a 23 20 54 68 69 73 20 77 69 6c 6c  ary..# This will
0550: 20 62 65 20 75 73 65 64 20 77 68 65 6e 20 61 20   be used when a 
0560: 64 69 73 74 20 74 61 72 67 65 74 20 69 73 20 61  dist target is a
0570: 64 64 65 64 20 74 6f 20 74 68 65 20 4d 61 6b 65  dded to the Make
0580: 66 69 6c 65 2e 0a 23 20 49 74 20 69 73 20 6e 6f  file..# It is no
0590: 74 20 69 6d 70 6f 72 74 61 6e 74 20 74 6f 20 73  t important to s
05a0: 70 65 63 69 66 79 20 74 68 65 20 64 69 72 65 63  pecify the direc
05b0: 74 6f 72 79 2c 20 61 73 20 6c 6f 6e 67 20 61 73  tory, as long as
05c0: 20 69 74 20 69 73 20 74 68 65 0a 23 20 24 28 73   it is the.# $(s
05d0: 72 63 64 69 72 29 20 6f 72 20 69 6e 20 74 68 65  rcdir) or in the
05e0: 20 67 65 6e 65 72 69 63 2c 20 77 69 6e 20 6f 72   generic, win or
05f0: 20 75 6e 69 78 20 73 75 62 64 69 72 65 63 74 6f   unix subdirecto
0600: 72 79 2e 0a 23 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ry..#===========
0610: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
0620: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
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 0a 0a 50  =============..P
0650: 4b 47 5f 53 4f 55 52 43 45 53 09 3d 20 20 74 63  KG_SOURCES.=  tc
0660: 6c 67 70 67 2e 63 0a 50 4b 47 5f 4f 42 4a 45 43  lgpg.c.PKG_OBJEC
0670: 54 53 09 3d 20 20 74 63 6c 67 70 67 2e 24 7b 4f  TS.=  tclgpg.${O
0680: 42 4a 45 58 54 7d 0a 0a 50 4b 47 5f 53 54 55 42  BJEXT}..PKG_STUB
0690: 5f 53 4f 55 52 43 45 53 20 3d 20 0a 50 4b 47 5f  _SOURCES = .PKG_
06a0: 53 54 55 42 5f 4f 42 4a 45 43 54 53 20 3d 20 0a  STUB_OBJECTS = .
06b0: 0a 23 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 3d 3d 3d 3d 3d  ================
06f0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 0a 23 20 50 4b 47  ==========.# PKG
0700: 5f 54 43 4c 5f 53 4f 55 52 43 45 53 20 69 64 65  _TCL_SOURCES ide
0710: 6e 74 69 66 69 65 73 20 54 63 6c 20 72 75 6e 74  ntifies Tcl runt
0720: 69 6d 65 20 66 69 6c 65 73 20 74 68 61 74 20 61  ime files that a
0730: 72 65 20 61 73 73 6f 63 69 61 74 65 64 20 77 69  re associated wi
0740: 74 68 0a 23 20 74 68 69 73 20 70 61 63 6b 61 67  th.# this packag
0750: 65 20 74 68 61 74 20 6e 65 65 64 20 74 6f 20 62  e that need to b
0760: 65 20 69 6e 73 74 61 6c 6c 65 64 2c 20 69 66 20  e installed, if 
0770: 61 6e 79 2e 0a 23 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  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 0a 0a  ==============..
07c0: 50 4b 47 5f 54 43 4c 5f 53 4f 55 52 43 45 53 20  PKG_TCL_SOURCES 
07d0: 3d 20 20 74 63 6c 67 70 67 2e 74 63 6c 0a 0a 23  =  tclgpg.tcl..#
07e0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
07f0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
0800: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
0810: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
0820: 3d 3d 3d 3d 3d 3d 3d 3d 0a 23 20 54 68 69 73 20  ========.# This 
0830: 69 73 20 61 20 6c 69 73 74 20 6f 66 20 70 75 62  is a list of pub
0840: 6c 69 63 20 68 65 61 64 65 72 20 66 69 6c 65 73  lic header files
0850: 20 74 6f 20 62 65 20 69 6e 73 74 61 6c 6c 65 64   to be installed
0860: 2c 20 69 66 20 61 6e 79 2e 0a 23 3d 3d 3d 3d 3d  , if any..#=====
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 3d 0a 0a 50 4b 47 5f 48 45 41 44 45 52 53  ===..PKG_HEADERS
08c0: 09 3d 20 0a 0a 23 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  .= ..#==========
08d0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
08e0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
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 0a 23  ==============.#
0910: 20 22 50 4b 47 5f 4c 49 42 5f 46 49 4c 45 22 20   "PKG_LIB_FILE" 
0920: 72 65 66 65 72 73 20 74 6f 20 74 68 65 20 6c 69  refers to the li
0930: 62 72 61 72 79 20 28 64 79 6e 61 6d 69 63 20 6f  brary (dynamic o
0940: 72 20 73 74 61 74 69 63 20 61 73 20 70 65 72 0a  r static as per.
0950: 23 20 63 6f 6e 66 69 67 75 72 61 74 69 6f 6e 20  # configuration 
0960: 6f 70 74 69 6f 6e 73 29 20 63 6f 6d 70 6f 73 65  options) compose
0970: 64 20 6f 66 20 74 68 65 20 6e 61 6d 65 64 20 6f  d of the named o
0980: 62 6a 65 63 74 73 2e 0a 23 3d 3d 3d 3d 3d 3d 3d  bjects..#=======
0990: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
09a0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
09b0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
09c0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
09d0: 3d 0a 0a 50 4b 47 5f 4c 49 42 5f 46 49 4c 45 09  =..PKG_LIB_FILE.
09e0: 3d 20 0a 50 4b 47 5f 53 54 55 42 5f 4c 49 42 5f  = .PKG_STUB_LIB_
09f0: 46 49 4c 45 20 3d 20 0a 0a 6c 69 62 5f 42 49 4e  FILE = ..lib_BIN
0a00: 41 52 49 45 53 09 3d 20 24 28 50 4b 47 5f 4c 49  ARIES.= $(PKG_LI
0a10: 42 5f 46 49 4c 45 29 0a 69 66 65 71 20 28 6e 6f  B_FILE).ifeq (no
0a20: 2c 20 79 65 73 29 0a 20 20 20 20 42 49 4e 41 52  , yes).    BINAR
0a30: 49 45 53 09 3d 20 24 28 6c 69 62 5f 42 49 4e 41  IES.= $(lib_BINA
0a40: 52 49 45 53 29 0a 65 6c 73 65 0a 20 20 20 20 42  RIES).else.    B
0a50: 49 4e 41 52 49 45 53 09 3d 0a 65 6e 64 69 66 0a  INARIES.=.endif.
0a60: 0a 53 48 45 4c 4c 09 09 3d 20 2f 62 69 6e 2f 73  .SHELL..= /bin/s
0a70: 68 0a 0a 73 72 63 64 69 72 09 09 3d 20 2e 0a 70  h..srcdir..= ..p
0a80: 72 65 66 69 78 09 09 3d 20 2f 75 73 72 0a 65 78  refix..= /usr.ex
0a90: 65 63 5f 70 72 65 66 69 78 09 3d 20 2f 75 73 72  ec_prefix.= /usr
0aa0: 0a 0a 62 69 6e 64 69 72 09 09 3d 20 24 7b 65 78  ..bindir..= ${ex
0ab0: 65 63 5f 70 72 65 66 69 78 7d 2f 62 69 6e 0a 6c  ec_prefix}/bin.l
0ac0: 69 62 64 69 72 09 09 3d 20 24 7b 65 78 65 63 5f  ibdir..= ${exec_
0ad0: 70 72 65 66 69 78 7d 2f 6c 69 62 0a 69 6e 63 6c  prefix}/lib.incl
0ae0: 75 64 65 64 69 72 09 3d 20 24 7b 70 72 65 66 69  udedir.= ${prefi
0af0: 78 7d 2f 69 6e 63 6c 75 64 65 0a 64 61 74 61 72  x}/include.datar
0b00: 6f 6f 74 64 69 72 20 20 20 20 20 3d 20 24 7b 70  ootdir     = ${p
0b10: 72 65 66 69 78 7d 2f 73 68 61 72 65 0a 64 61 74  refix}/share.dat
0b20: 61 64 69 72 09 09 3d 20 2f 75 73 72 2f 73 68 61  adir..= /usr/sha
0b30: 72 65 0a 6d 61 6e 64 69 72 09 09 3d 20 2f 75 73  re.mandir..= /us
0b40: 72 2f 73 68 61 72 65 2f 6d 61 6e 0a 0a 44 45 53  r/share/man..DES
0b50: 54 44 49 52 09 09 3d 0a 0a 50 4b 47 5f 44 49 52  TDIR..=..PKG_DIR
0b60: 09 09 3d 20 24 28 50 41 43 4b 41 47 45 5f 4e 41  ..= $(PACKAGE_NA
0b70: 4d 45 29 24 28 50 41 43 4b 41 47 45 5f 56 45 52  ME)$(PACKAGE_VER
0b80: 53 49 4f 4e 29 0a 70 6b 67 64 61 74 61 64 69 72  SION).pkgdatadir
0b90: 09 3d 20 24 28 64 61 74 61 64 69 72 29 2f 24 28  .= $(datadir)/$(
0ba0: 50 4b 47 5f 44 49 52 29 0a 70 6b 67 6c 69 62 64  PKG_DIR).pkglibd
0bb0: 69 72 09 3d 20 24 28 6c 69 62 64 69 72 29 2f 24  ir.= $(libdir)/$
0bc0: 28 50 4b 47 5f 44 49 52 29 0a 70 6b 67 69 6e 63  (PKG_DIR).pkginc
0bd0: 6c 75 64 65 64 69 72 09 3d 20 24 28 69 6e 63 6c  ludedir.= $(incl
0be0: 75 64 65 64 69 72 29 2f 24 28 50 4b 47 5f 44 49  udedir)/$(PKG_DI
0bf0: 52 29 0a 0a 74 6f 70 5f 62 75 69 6c 64 64 69 72  R)..top_builddir
0c00: 09 3d 20 2e 0a 0a 49 4e 53 54 41 4c 4c 09 09 3d  .= ...INSTALL..=
0c10: 20 0a 49 4e 53 54 41 4c 4c 5f 50 52 4f 47 52 41   .INSTALL_PROGRA
0c20: 4d 09 3d 20 0a 49 4e 53 54 41 4c 4c 5f 44 41 54  M.= .INSTALL_DAT
0c30: 41 09 3d 20 0a 49 4e 53 54 41 4c 4c 5f 53 43 52  A.= .INSTALL_SCR
0c40: 49 50 54 09 3d 20 0a 0a 50 41 43 4b 41 47 45 5f  IPT.= ..PACKAGE_
0c50: 4e 41 4d 45 09 3d 20 67 70 67 0a 50 41 43 4b 41  NAME.= gpg.PACKA
0c60: 47 45 5f 56 45 52 53 49 4f 4e 09 3d 20 31 2e 30  GE_VERSION.= 1.0
0c70: 0a 43 43 09 09 3d 20 0a 43 46 4c 41 47 53 5f 44  .CC..= .CFLAGS_D
0c80: 45 46 41 55 4c 54 09 3d 20 0a 43 46 4c 41 47 53  EFAULT.= .CFLAGS
0c90: 5f 57 41 52 4e 49 4e 47 09 3d 20 0a 45 58 45 45  _WARNING.= .EXEE
0ca0: 58 54 09 09 3d 20 0a 4c 44 46 4c 41 47 53 5f 44  XT..= .LDFLAGS_D
0cb0: 45 46 41 55 4c 54 09 3d 20 0a 4d 41 4b 45 5f 4c  EFAULT.= .MAKE_L
0cc0: 49 42 09 3d 20 0a 4d 41 4b 45 5f 53 48 41 52 45  IB.= .MAKE_SHARE
0cd0: 44 5f 4c 49 42 09 3d 20 0a 4d 41 4b 45 5f 53 54  D_LIB.= .MAKE_ST
0ce0: 41 54 49 43 5f 4c 49 42 09 3d 20 0a 4d 41 4b 45  ATIC_LIB.= .MAKE
0cf0: 5f 53 54 55 42 5f 4c 49 42 09 3d 20 0a 4f 42 4a  _STUB_LIB.= .OBJ
0d00: 45 58 54 09 09 3d 20 0a 52 41 4e 4c 49 42 09 09  EXT..= .RANLIB..
0d10: 3d 20 0a 52 41 4e 4c 49 42 5f 53 54 55 42 09 3d  = .RANLIB_STUB.=
0d20: 20 0a 53 48 4c 49 42 5f 43 46 4c 41 47 53 09 3d   .SHLIB_CFLAGS.=
0d30: 20 0a 53 48 4c 49 42 5f 4c 44 09 3d 20 0a 53 48   .SHLIB_LD.= .SH
0d40: 4c 49 42 5f 4c 44 5f 4c 49 42 53 09 3d 20 0a 53  LIB_LD_LIBS.= .S
0d50: 54 4c 49 42 5f 4c 44 09 3d 20 0a 23 54 43 4c 5f  TLIB_LD.= .#TCL_
0d60: 44 45 46 53 09 3d 20 2d 44 50 41 43 4b 41 47 45  DEFS.= -DPACKAGE
0d70: 5f 4e 41 4d 45 3d 5c 22 74 63 6c 5c 22 20 2d 44  _NAME=\"tcl\" -D
0d80: 50 41 43 4b 41 47 45 5f 54 41 52 4e 41 4d 45 3d  PACKAGE_TARNAME=
0d90: 5c 22 74 63 6c 5c 22 20 2d 44 50 41 43 4b 41 47  \"tcl\" -DPACKAG
0da0: 45 5f 56 45 52 53 49 4f 4e 3d 5c 22 38 2e 35 5c  E_VERSION=\"8.5\
0db0: 22 20 2d 44 50 41 43 4b 41 47 45 5f 53 54 52 49  " -DPACKAGE_STRI
0dc0: 4e 47 3d 5c 22 74 63 6c 5c 20 38 2e 35 5c 22 20  NG=\"tcl\ 8.5\" 
0dd0: 2d 44 50 41 43 4b 41 47 45 5f 42 55 47 52 45 50  -DPACKAGE_BUGREP
0de0: 4f 52 54 3d 5c 22 5c 22 20 2d 44 50 41 43 4b 41  ORT=\"\" -DPACKA
0df0: 47 45 5f 55 52 4c 3d 5c 22 5c 22 20 2d 44 53 54  GE_URL=\"\" -DST
0e00: 44 43 5f 48 45 41 44 45 52 53 3d 31 20 2d 44 48  DC_HEADERS=1 -DH
0e10: 41 56 45 5f 53 59 53 5f 54 59 50 45 53 5f 48 3d  AVE_SYS_TYPES_H=
0e20: 31 20 2d 44 48 41 56 45 5f 53 59 53 5f 53 54 41  1 -DHAVE_SYS_STA
0e30: 54 5f 48 3d 31 20 2d 44 48 41 56 45 5f 53 54 44  T_H=1 -DHAVE_STD
0e40: 4c 49 42 5f 48 3d 31 20 2d 44 48 41 56 45 5f 53  LIB_H=1 -DHAVE_S
0e50: 54 52 49 4e 47 5f 48 3d 31 20 2d 44 48 41 56 45  TRING_H=1 -DHAVE
0e60: 5f 4d 45 4d 4f 52 59 5f 48 3d 31 20 2d 44 48 41  _MEMORY_H=1 -DHA
0e70: 56 45 5f 53 54 52 49 4e 47 53 5f 48 3d 31 20 2d  VE_STRINGS_H=1 -
0e80: 44 48 41 56 45 5f 49 4e 54 54 59 50 45 53 5f 48  DHAVE_INTTYPES_H
0e90: 3d 31 20 2d 44 48 41 56 45 5f 53 54 44 49 4e 54  =1 -DHAVE_STDINT
0ea0: 5f 48 3d 31 20 2d 44 48 41 56 45 5f 55 4e 49 53  _H=1 -DHAVE_UNIS
0eb0: 54 44 5f 48 3d 31 20 2d 44 48 41 56 45 5f 4c 49  TD_H=1 -DHAVE_LI
0ec0: 4d 49 54 53 5f 48 3d 31 20 2d 44 48 41 56 45 5f  MITS_H=1 -DHAVE_
0ed0: 53 59 53 5f 50 41 52 41 4d 5f 48 3d 31 20 2d 44  SYS_PARAM_H=1 -D
0ee0: 55 53 45 5f 54 48 52 45 41 44 5f 41 4c 4c 4f 43  USE_THREAD_ALLOC
0ef0: 3d 31 20 2d 44 5f 52 45 45 4e 54 52 41 4e 54 3d  =1 -D_REENTRANT=
0f00: 31 20 2d 44 5f 54 48 52 45 41 44 5f 53 41 46 45  1 -D_THREAD_SAFE
0f10: 3d 31 20 2d 44 48 41 56 45 5f 50 54 48 52 45 41  =1 -DHAVE_PTHREA
0f20: 44 5f 41 54 54 52 5f 53 45 54 53 54 41 43 4b 53  D_ATTR_SETSTACKS
0f30: 49 5a 45 3d 31 20 2d 44 48 41 56 45 5f 50 54 48  IZE=1 -DHAVE_PTH
0f40: 52 45 41 44 5f 47 45 54 41 54 54 52 5f 4e 50 3d  READ_GETATTR_NP=
0f50: 31 20 2d 44 47 45 54 41 54 54 52 4e 50 5f 4e 4f  1 -DGETATTRNP_NO
0f60: 54 5f 44 45 43 4c 41 52 45 44 3d 31 20 2d 44 54  T_DECLARED=1 -DT
0f70: 43 4c 5f 54 48 52 45 41 44 53 3d 31 20 2d 44 54  CL_THREADS=1 -DT
0f80: 43 4c 5f 43 46 47 56 41 4c 5f 45 4e 43 4f 44 49  CL_CFGVAL_ENCODI
0f90: 4e 47 3d 5c 22 69 73 6f 38 38 35 39 2d 31 5c 22  NG=\"iso8859-1\"
0fa0: 20 2d 44 4d 4f 44 55 4c 45 5f 53 43 4f 50 45 3d   -DMODULE_SCOPE=
0fb0: 65 78 74 65 72 6e 5c 20 5f 5f 61 74 74 72 69 62  extern\ __attrib
0fc0: 75 74 65 5f 5f 5c 28 5c 28 5f 5f 76 69 73 69 62  ute__\(\(__visib
0fd0: 69 6c 69 74 79 5f 5f 5c 28 5c 22 68 69 64 64 65  ility__\(\"hidde
0fe0: 6e 5c 22 5c 29 5c 29 5c 29 20 2d 44 54 43 4c 5f  n\"\)\)\) -DTCL_
0ff0: 53 48 4c 49 42 5f 45 58 54 3d 5c 22 2e 73 6f 5c  SHLIB_EXT=\".so\
1000: 22 20 2d 44 54 43 4c 5f 43 46 47 5f 4f 50 54 49  " -DTCL_CFG_OPTI
1010: 4d 49 5a 45 44 3d 31 20 2d 44 54 43 4c 5f 43 46  MIZED=1 -DTCL_CF
1020: 47 5f 44 45 42 55 47 3d 31 20 2d 44 54 43 4c 5f  G_DEBUG=1 -DTCL_
1030: 54 4f 4d 4d 41 54 48 3d 31 20 2d 44 4d 50 5f 50  TOMMATH=1 -DMP_P
1040: 52 45 43 3d 34 20 2d 44 5f 4c 41 52 47 45 46 49  REC=4 -D_LARGEFI
1050: 4c 45 36 34 5f 53 4f 55 52 43 45 3d 31 20 2d 44  LE64_SOURCE=1 -D
1060: 54 43 4c 5f 57 49 44 45 5f 49 4e 54 5f 54 59 50  TCL_WIDE_INT_TYP
1070: 45 3d 6c 6f 6e 67 5c 20 6c 6f 6e 67 20 2d 44 48  E=long\ long -DH
1080: 41 56 45 5f 53 54 52 55 43 54 5f 53 54 41 54 36  AVE_STRUCT_STAT6
1090: 34 3d 31 20 2d 44 48 41 56 45 5f 4f 50 45 4e 36  4=1 -DHAVE_OPEN6
10a0: 34 3d 31 20 2d 44 48 41 56 45 5f 4c 53 45 45 4b  4=1 -DHAVE_LSEEK
10b0: 36 34 3d 31 20 2d 44 48 41 56 45 5f 54 59 50 45  64=1 -DHAVE_TYPE
10c0: 5f 4f 46 46 36 34 5f 54 3d 31 20 2d 44 48 41 56  _OFF64_T=1 -DHAV
10d0: 45 5f 47 45 54 43 57 44 3d 31 20 2d 44 48 41 56  E_GETCWD=1 -DHAV
10e0: 45 5f 4f 50 45 4e 44 49 52 3d 31 20 2d 44 48 41  E_OPENDIR=1 -DHA
10f0: 56 45 5f 53 54 52 54 4f 4c 3d 31 20 2d 44 48 41  VE_STRTOL=1 -DHA
1100: 56 45 5f 57 41 49 54 50 49 44 3d 31 20 2d 44 48  VE_WAITPID=1 -DH
1110: 41 56 45 5f 47 45 54 41 44 44 52 49 4e 46 4f 3d  AVE_GETADDRINFO=
1120: 31 20 2d 44 48 41 56 45 5f 47 45 54 50 57 55 49  1 -DHAVE_GETPWUI
1130: 44 5f 52 5f 35 3d 31 20 2d 44 48 41 56 45 5f 47  D_R_5=1 -DHAVE_G
1140: 45 54 50 57 55 49 44 5f 52 3d 31 20 2d 44 48 41  ETPWUID_R=1 -DHA
1150: 56 45 5f 47 45 54 50 57 4e 41 4d 5f 52 5f 35 3d  VE_GETPWNAM_R_5=
1160: 31 20 2d 44 48 41 56 45 5f 47 45 54 50 57 4e 41  1 -DHAVE_GETPWNA
1170: 4d 5f 52 3d 31 20 2d 44 48 41 56 45 5f 47 45 54  M_R=1 -DHAVE_GET
1180: 47 52 47 49 44 5f 52 5f 35 3d 31 20 2d 44 48 41  GRGID_R_5=1 -DHA
1190: 56 45 5f 47 45 54 47 52 47 49 44 5f 52 3d 31 20  VE_GETGRGID_R=1 
11a0: 2d 44 48 41 56 45 5f 47 45 54 47 52 4e 41 4d 5f  -DHAVE_GETGRNAM_
11b0: 52 5f 35 3d 31 20 2d 44 48 41 56 45 5f 47 45 54  R_5=1 -DHAVE_GET
11c0: 47 52 4e 41 4d 5f 52 3d 31 20 2d 44 48 41 56 45  GRNAM_R=1 -DHAVE
11d0: 5f 47 45 54 48 4f 53 54 42 59 4e 41 4d 45 5f 52  _GETHOSTBYNAME_R
11e0: 5f 36 3d 31 20 2d 44 48 41 56 45 5f 47 45 54 48  _6=1 -DHAVE_GETH
11f0: 4f 53 54 42 59 4e 41 4d 45 5f 52 3d 31 20 2d 44  OSTBYNAME_R=1 -D
1200: 48 41 56 45 5f 47 45 54 48 4f 53 54 42 59 41 44  HAVE_GETHOSTBYAD
1210: 44 52 5f 52 5f 38 3d 31 20 2d 44 48 41 56 45 5f  DR_R_8=1 -DHAVE_
1220: 47 45 54 48 4f 53 54 42 59 41 44 44 52 5f 52 3d  GETHOSTBYADDR_R=
1230: 31 20 2d 44 55 53 45 5f 54 45 52 4d 49 4f 53 3d  1 -DUSE_TERMIOS=
1240: 31 20 2d 44 48 41 56 45 5f 53 59 53 5f 54 49 4d  1 -DHAVE_SYS_TIM
1250: 45 5f 48 3d 31 20 2d 44 54 49 4d 45 5f 57 49 54  E_H=1 -DTIME_WIT
1260: 48 5f 53 59 53 5f 54 49 4d 45 3d 31 20 2d 44 48  H_SYS_TIME=1 -DH
1270: 41 56 45 5f 53 54 52 55 43 54 5f 54 4d 5f 54 4d  AVE_STRUCT_TM_TM
1280: 5f 5a 4f 4e 45 3d 31 20 2d 44 48 41 56 45 5f 54  _ZONE=1 -DHAVE_T
1290: 4d 5f 5a 4f 4e 45 3d 31 20 2d 44 48 41 56 45 5f  M_ZONE=1 -DHAVE_
12a0: 47 4d 54 49 4d 45 5f 52 3d 31 20 2d 44 48 41 56  GMTIME_R=1 -DHAV
12b0: 45 5f 4c 4f 43 41 4c 54 49 4d 45 5f 52 3d 31 20  E_LOCALTIME_R=1 
12c0: 2d 44 48 41 56 45 5f 4d 4b 54 49 4d 45 3d 31 20  -DHAVE_MKTIME=1 
12d0: 2d 44 48 41 56 45 5f 54 4d 5f 47 4d 54 4f 46 46  -DHAVE_TM_GMTOFF
12e0: 3d 31 20 2d 44 48 41 56 45 5f 54 49 4d 45 5a 4f  =1 -DHAVE_TIMEZO
12f0: 4e 45 5f 56 41 52 3d 31 20 2d 44 48 41 56 45 5f  NE_VAR=1 -DHAVE_
1300: 53 54 52 55 43 54 5f 53 54 41 54 5f 53 54 5f 42  STRUCT_STAT_ST_B
1310: 4c 4b 53 49 5a 45 3d 31 20 2d 44 48 41 56 45 5f  LKSIZE=1 -DHAVE_
1320: 53 54 5f 42 4c 4b 53 49 5a 45 3d 31 20 2d 44 48  ST_BLKSIZE=1 -DH
1330: 41 56 45 5f 49 4e 54 50 54 52 5f 54 3d 31 20 2d  AVE_INTPTR_T=1 -
1340: 44 48 41 56 45 5f 55 49 4e 54 50 54 52 5f 54 3d  DHAVE_UINTPTR_T=
1350: 31 20 2d 44 48 41 56 45 5f 53 49 47 4e 45 44 5f  1 -DHAVE_SIGNED_
1360: 43 48 41 52 3d 31 20 2d 44 48 41 56 45 5f 4c 41  CHAR=1 -DHAVE_LA
1370: 4e 47 49 4e 46 4f 3d 31 20 2d 44 48 41 56 45 5f  NGINFO=1 -DHAVE_
1380: 53 59 53 5f 49 4f 43 54 4c 5f 48 3d 31 20 2d 44  SYS_IOCTL_H=1 -D
1390: 54 43 4c 5f 55 4e 4c 4f 41 44 5f 44 4c 4c 53 3d  TCL_UNLOAD_DLLS=
13a0: 31 0a 54 43 4c 5f 42 49 4e 5f 44 49 52 09 3d 20  1.TCL_BIN_DIR.= 
13b0: 2f 75 73 72 2f 6c 69 62 0a 54 43 4c 5f 53 52 43  /usr/lib.TCL_SRC
13c0: 5f 44 49 52 09 3d 20 2f 75 73 72 2f 6c 69 62 2f  _DIR.= /usr/lib/
13d0: 74 63 6c 38 2e 35 2f 69 6e 63 6c 75 64 65 0a 0a  tcl8.5/include..
13e0: 23 20 4e 6f 74 20 75 73 65 64 2c 20 62 75 74 20  # Not used, but 
13f0: 72 65 74 61 69 6e 65 64 20 66 6f 72 20 72 65 66  retained for ref
1400: 65 72 65 6e 63 65 20 6f 66 20 77 68 61 74 20 6c  erence of what l
1410: 69 62 73 20 54 63 6c 20 72 65 71 75 69 72 65 64  ibs Tcl required
1420: 0a 23 54 43 4c 5f 4c 49 42 53 09 3d 20 2d 6c 64  .#TCL_LIBS.= -ld
1430: 6c 20 20 2d 6c 70 74 68 72 65 61 64 20 2d 6c 69  l  -lpthread -li
1440: 65 65 65 20 2d 6c 6d 0a 0a 23 3d 3d 3d 3d 3d 3d  eee -lm..#======
1450: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
1460: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
1470: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
1480: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
1490: 3d 3d 0a 23 20 54 43 4c 4c 49 42 50 41 54 48 20  ==.# TCLLIBPATH 
14a0: 73 65 65 64 73 20 74 68 65 20 61 75 74 6f 5f 70  seeds the auto_p
14b0: 61 74 68 20 69 6e 20 54 63 6c 27 73 20 69 6e 69  ath in Tcl's ini
14c0: 74 2e 74 63 6c 20 73 6f 20 77 65 20 63 61 6e 20  t.tcl so we can 
14d0: 74 65 73 74 20 6f 75 72 0a 23 20 70 61 63 6b 61  test our.# packa
14e0: 67 65 20 77 69 74 68 6f 75 74 20 69 6e 73 74 61  ge without insta
14f0: 6c 6c 69 6e 67 2e 20 20 54 68 65 20 6f 74 68 65  lling.  The othe
1500: 72 20 65 6e 76 69 72 6f 6e 6d 65 6e 74 20 76 61  r environment va
1510: 72 69 61 62 6c 65 73 20 61 6c 6c 6f 77 20 75 73  riables allow us
1520: 0a 23 20 74 6f 20 74 65 73 74 20 61 67 61 69 6e  .# to test again
1530: 73 74 20 61 6e 20 75 6e 69 6e 73 74 61 6c 6c 65  st an uninstalle
1540: 64 20 54 63 6c 2e 20 20 41 64 64 20 73 70 65 63  d Tcl.  Add spec
1550: 69 61 6c 20 65 6e 76 20 76 61 72 73 20 74 68 61  ial env vars tha
1560: 74 20 79 6f 75 0a 23 20 72 65 71 75 69 72 65 20  t you.# require 
1570: 66 6f 72 20 74 65 73 74 69 6e 67 20 68 65 72 65  for testing here
1580: 20 28 6c 69 6b 65 20 54 43 4c 58 5f 4c 49 42 52   (like TCLX_LIBR
1590: 41 52 59 29 2e 0a 23 3d 3d 3d 3d 3d 3d 3d 3d 3d  ARY)..#=========
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 3d  ================
15c0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
15d0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 0a  ===============.
15e0: 0a 45 58 54 52 41 5f 50 41 54 48 09 3d 20 24 28  .EXTRA_PATH.= $(
15f0: 74 6f 70 5f 62 75 69 6c 64 64 69 72 29 3a 24 28  top_builddir):$(
1600: 54 43 4c 5f 42 49 4e 5f 44 49 52 29 0a 54 43 4c  TCL_BIN_DIR).TCL
1610: 4c 49 42 50 41 54 48 09 3d 20 24 28 74 6f 70 5f  LIBPATH.= $(top_
1620: 62 75 69 6c 64 64 69 72 29 0a 54 43 4c 53 48 5f  builddir).TCLSH_
1630: 45 4e 56 09 3d 20 54 43 4c 5f 4c 49 42 52 41 52  ENV.= TCL_LIBRAR
1640: 59 3d 60 65 63 68 6f 20 24 28 54 43 4c 5f 53 52  Y=`echo $(TCL_SR
1650: 43 5f 44 49 52 29 2f 6c 69 62 72 61 72 79 60 0a  C_DIR)/library`.
1660: 50 4b 47 5f 45 4e 56 09 09 3d 20 3d 22 24 28 45  PKG_ENV..= ="$(E
1670: 58 54 52 41 5f 50 41 54 48 29 3a 24 28 29 22 20  XTRA_PATH):$()" 
1680: 5c 0a 09 09 20 20 50 41 54 48 3d 22 24 28 45 58  \...  PATH="$(EX
1690: 54 52 41 5f 50 41 54 48 29 3a 24 28 50 41 54 48  TRA_PATH):$(PATH
16a0: 29 22 20 5c 0a 09 09 20 20 54 43 4c 4c 49 42 50  )" \...  TCLLIBP
16b0: 41 54 48 3d 22 24 28 54 43 4c 4c 49 42 50 41 54  ATH="$(TCLLIBPAT
16c0: 48 29 22 0a 0a 54 43 4c 53 48 5f 50 52 4f 47 09  H)"..TCLSH_PROG.
16d0: 3d 20 2f 75 73 72 2f 62 69 6e 2f 74 63 6c 73 68  = /usr/bin/tclsh
16e0: 38 2e 35 0a 54 43 4c 53 48 20 20 20 09 3d 20 24  8.5.TCLSH   .= $
16f0: 28 50 4b 47 5f 45 4e 56 29 20 24 28 54 43 4c 53  (PKG_ENV) $(TCLS
1700: 48 5f 45 4e 56 29 20 24 28 54 43 4c 53 48 5f 50  H_ENV) $(TCLSH_P
1710: 52 4f 47 29 0a 0a 53 48 41 52 45 44 5f 42 55 49  ROG)..SHARED_BUI
1720: 4c 44 09 3d 20 31 0a 0a 49 4e 43 4c 55 44 45 53  LD.= 1..INCLUDES
1730: 09 3d 20 20 0a 0a 50 4b 47 5f 43 46 4c 41 47 53  .=  ..PKG_CFLAGS
1740: 09 3d 20 20 0a 0a 23 20 54 43 4c 5f 44 45 46 53  .=  ..# TCL_DEFS
1750: 20 69 73 20 6e 6f 74 20 73 74 72 69 63 74 6c 79   is not strictly
1760: 20 6e 65 65 64 20 68 65 72 65 2c 20 62 75 74 20   need here, but 
1770: 69 66 20 79 6f 75 20 72 65 6d 6f 76 65 20 69 74  if you remove it
1780: 2c 20 74 68 65 6e 20 79 6f 75 0a 23 20 6d 75 73  , then you.# mus
1790: 74 20 6d 61 6b 65 20 73 75 72 65 20 74 68 61 74  t make sure that
17a0: 20 63 6f 6e 66 69 67 75 72 65 2e 69 6e 20 63 68   configure.in ch
17b0: 65 63 6b 73 20 66 6f 72 20 74 68 65 20 6e 65 63  ecks for the nec
17c0: 65 73 73 61 72 79 20 63 6f 6d 70 6f 6e 65 6e 74  essary component
17d0: 73 0a 23 20 74 68 61 74 20 79 6f 75 72 20 6c 69  s.# that your li
17e0: 62 72 61 72 79 20 6d 61 79 20 75 73 65 2e 20 20  brary may use.  
17f0: 54 43 4c 5f 44 45 46 53 20 63 61 6e 20 61 63 74  TCL_DEFS can act
1800: 75 61 6c 6c 79 20 62 65 20 61 20 70 72 6f 62 6c  ually be a probl
1810: 65 6d 20 69 66 0a 23 20 79 6f 75 20 64 6f 20 6e  em if.# you do n
1820: 6f 74 20 63 6f 6d 70 69 6c 65 20 77 69 74 68 20  ot compile with 
1830: 61 20 73 69 6d 69 6c 61 72 20 6d 61 63 68 69 6e  a similar machin
1840: 65 20 73 65 74 75 70 20 61 73 20 74 68 65 20 54  e setup as the T
1850: 63 6c 20 63 6f 72 65 20 77 61 73 0a 23 20 63 6f  cl core was.# co
1860: 6d 70 69 6c 65 64 20 77 69 74 68 2e 0a 23 44 45  mpiled with..#DE
1870: 46 53 09 09 3d 20 24 28 54 43 4c 5f 44 45 46 53  FS..= $(TCL_DEFS
1880: 29 20 2d 44 50 41 43 4b 41 47 45 5f 4e 41 4d 45  ) -DPACKAGE_NAME
1890: 3d 5c 22 67 70 67 5c 22 20 2d 44 50 41 43 4b 41  =\"gpg\" -DPACKA
18a0: 47 45 5f 54 41 52 4e 41 4d 45 3d 5c 22 67 70 67  GE_TARNAME=\"gpg
18b0: 5c 22 20 2d 44 50 41 43 4b 41 47 45 5f 56 45 52  \" -DPACKAGE_VER
18c0: 53 49 4f 4e 3d 5c 22 31 2e 30 5c 22 20 2d 44 50  SION=\"1.0\" -DP
18d0: 41 43 4b 41 47 45 5f 53 54 52 49 4e 47 3d 5c 22  ACKAGE_STRING=\"
18e0: 67 70 67 5c 20 31 2e 30 5c 22 20 2d 44 50 41 43  gpg\ 1.0\" -DPAC
18f0: 4b 41 47 45 5f 42 55 47 52 45 50 4f 52 54 3d 5c  KAGE_BUGREPORT=\
1900: 22 5c 22 20 2d 44 50 41 43 4b 41 47 45 5f 55 52  "\" -DPACKAGE_UR
1910: 4c 3d 5c 22 5c 22 20 24 28 50 4b 47 5f 43 46 4c  L=\"\" $(PKG_CFL
1920: 41 47 53 29 0a 44 45 46 53 09 09 3d 20 2d 44 50  AGS).DEFS..= -DP
1930: 41 43 4b 41 47 45 5f 4e 41 4d 45 3d 5c 22 67 70  ACKAGE_NAME=\"gp
1940: 67 5c 22 20 2d 44 50 41 43 4b 41 47 45 5f 54 41  g\" -DPACKAGE_TA
1950: 52 4e 41 4d 45 3d 5c 22 67 70 67 5c 22 20 2d 44  RNAME=\"gpg\" -D
1960: 50 41 43 4b 41 47 45 5f 56 45 52 53 49 4f 4e 3d  PACKAGE_VERSION=
1970: 5c 22 31 2e 30 5c 22 20 2d 44 50 41 43 4b 41 47  \"1.0\" -DPACKAG
1980: 45 5f 53 54 52 49 4e 47 3d 5c 22 67 70 67 5c 20  E_STRING=\"gpg\ 
1990: 31 2e 30 5c 22 20 2d 44 50 41 43 4b 41 47 45 5f  1.0\" -DPACKAGE_
19a0: 42 55 47 52 45 50 4f 52 54 3d 5c 22 5c 22 20 2d  BUGREPORT=\"\" -
19b0: 44 50 41 43 4b 41 47 45 5f 55 52 4c 3d 5c 22 5c  DPACKAGE_URL=\"\
19c0: 22 20 24 28 50 4b 47 5f 43 46 4c 41 47 53 29 0a  " $(PKG_CFLAGS).
19d0: 0a 23 20 4d 6f 76 65 20 70 6b 67 49 6e 64 65 78  .# Move pkgIndex
19e0: 2e 74 63 6c 20 74 6f 20 27 42 49 4e 41 52 49 45  .tcl to 'BINARIE
19f0: 53 27 20 76 61 72 20 69 66 20 69 74 20 69 73 20  S' var if it is 
1a00: 67 65 6e 65 72 61 74 65 64 20 69 6e 20 74 68 65  generated in the
1a10: 20 4d 61 6b 65 66 69 6c 65 0a 43 4f 4e 46 49 47   Makefile.CONFIG
1a20: 5f 43 4c 45 41 4e 5f 46 49 4c 45 53 20 3d 20 4d  _CLEAN_FILES = M
1a30: 61 6b 65 66 69 6c 65 20 70 6b 67 49 6e 64 65 78  akefile pkgIndex
1a40: 2e 74 63 6c 0a 43 4c 45 41 4e 46 49 4c 45 53 09  .tcl.CLEANFILES.
1a50: 3d 20 20 64 6f 63 2f 2a 2e 6e 20 64 6f 63 2f 2a  =  doc/*.n doc/*
1a60: 2e 68 74 6d 6c 0a 0a 43 50 50 46 4c 41 47 53 09  .html..CPPFLAGS.
1a70: 3d 20 0a 4c 49 42 53 09 09 3d 20 20 0a 41 52 09  = .LIBS..=  .AR.
1a80: 09 3d 20 0a 43 46 4c 41 47 53 09 09 3d 20 2d 6d  .= .CFLAGS..= -m
1a90: 61 72 63 68 3d 6e 61 74 69 76 65 20 2d 6d 74 75  arch=native -mtu
1aa0: 6e 65 3d 6e 61 74 69 76 65 20 2d 4f 33 20 2d 70  ne=native -O3 -p
1ab0: 69 70 65 20 2d 6d 33 64 6e 6f 77 20 0a 43 4f 4d  ipe -m3dnow .COM
1ac0: 50 49 4c 45 09 09 3d 20 24 28 43 43 29 20 24 28  PILE..= $(CC) $(
1ad0: 44 45 46 53 29 20 24 28 49 4e 43 4c 55 44 45 53  DEFS) $(INCLUDES
1ae0: 29 20 24 28 41 4d 5f 43 50 50 46 4c 41 47 53 29  ) $(AM_CPPFLAGS)
1af0: 20 24 28 43 50 50 46 4c 41 47 53 29 20 24 28 41   $(CPPFLAGS) $(A
1b00: 4d 5f 43 46 4c 41 47 53 29 20 24 28 43 46 4c 41  M_CFLAGS) $(CFLA
1b10: 47 53 29 0a 0a 23 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  GS)..#==========
1b20: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
1b30: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
1b40: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
1b50: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 0a 23  ==============.#
1b60: 20 53 74 61 72 74 20 6f 66 20 75 73 65 72 2d 64   Start of user-d
1b70: 65 66 69 6e 61 62 6c 65 20 54 41 52 47 45 54 53  efinable TARGETS
1b80: 20 73 65 63 74 69 6f 6e 0a 23 3d 3d 3d 3d 3d 3d   section.#======
1b90: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
1ba0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
1bb0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
1bc0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
1bd0: 3d 3d 0a 0a 23 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ==..#===========
1be0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
1bf0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
1c00: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
1c10: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 0a 23 20  =============.# 
1c20: 54 45 41 20 54 41 52 47 45 54 53 2e 20 20 50 6c  TEA TARGETS.  Pl
1c30: 65 61 73 65 20 6e 6f 74 65 20 74 68 61 74 20 74  ease note that t
1c40: 68 65 20 22 6c 69 62 72 61 72 69 65 73 3a 22 20  he "libraries:" 
1c50: 74 61 72 67 65 74 20 72 65 66 65 72 73 20 74 6f  target refers to
1c60: 20 70 6c 61 74 66 6f 72 6d 0a 23 20 69 6e 64 65   platform.# inde
1c70: 70 65 6e 64 65 6e 74 20 66 69 6c 65 73 2c 20 61  pendent files, a
1c80: 6e 64 20 74 68 65 20 22 62 69 6e 61 72 69 65 73  nd the "binaries
1c90: 3a 22 20 74 61 72 67 65 74 20 69 6e 63 6c 75 65  :" target inclue
1ca0: 73 20 65 78 65 63 75 74 61 62 6c 65 20 70 72 6f  s executable pro
1cb0: 67 72 61 6d 73 20 61 6e 64 0a 23 20 70 6c 61 74  grams and.# plat
1cc0: 66 6f 72 6d 2d 64 65 70 65 6e 64 65 6e 74 20 6c  form-dependent l
1cd0: 69 62 72 61 72 69 65 73 2e 20 20 4d 6f 64 69 66  ibraries.  Modif
1ce0: 79 20 74 68 65 73 65 20 74 61 72 67 65 74 73 20  y these targets 
1cf0: 73 6f 20 74 68 61 74 20 74 68 65 79 20 69 6e 73  so that they ins
1d00: 74 61 6c 6c 0a 23 20 74 68 65 20 76 61 72 69 6f  tall.# the vario
1d10: 75 73 20 70 69 65 63 65 73 20 6f 66 20 79 6f 75  us pieces of you
1d20: 72 20 70 61 63 6b 61 67 65 2e 20 20 54 68 65 20  r package.  The 
1d30: 6d 61 6b 65 20 61 6e 64 20 69 6e 73 74 61 6c 6c  make and install
1d40: 20 72 75 6c 65 73 0a 23 20 66 6f 72 20 74 68 65   rules.# for the
1d50: 20 42 49 4e 41 52 49 45 53 20 74 68 61 74 20 79   BINARIES that y
1d60: 6f 75 20 73 70 65 63 69 66 69 65 64 20 61 62 6f  ou specified abo
1d70: 76 65 20 68 61 76 65 20 61 6c 72 65 61 64 79 20  ve have already 
1d80: 62 65 65 6e 20 64 6f 6e 65 2e 0a 23 3d 3d 3d 3d  been done..#====
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 3d 3d  ================
1db0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
1dc0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
1dd0: 3d 3d 3d 3d 0a 0a 61 6c 6c 3a 20 62 69 6e 61 72  ====..all: binar
1de0: 69 65 73 20 6c 69 62 72 61 72 69 65 73 20 64 6f  ies libraries do
1df0: 63 0a 0a 23 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  c..#============
1e00: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
1e10: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
1e20: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
1e30: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 0a 23 20 54  ============.# T
1e40: 68 65 20 62 69 6e 61 72 69 65 73 20 74 61 72 67  he binaries targ
1e50: 65 74 20 62 75 69 6c 64 73 20 65 78 65 63 75 74  et builds execut
1e60: 61 62 6c 65 20 70 72 6f 67 72 61 6d 73 2c 20 57  able programs, W
1e70: 69 6e 64 6f 77 73 20 2e 64 6c 6c 27 73 2c 20 75  indows .dll's, u
1e80: 6e 69 78 0a 23 20 73 68 61 72 65 64 2f 73 74 61  nix.# shared/sta
1e90: 74 69 63 20 6c 69 62 72 61 72 69 65 73 2c 20 61  tic libraries, a
1ea0: 6e 64 20 61 6e 79 20 6f 74 68 65 72 20 70 6c 61  nd any other pla
1eb0: 74 66 6f 72 6d 2d 64 65 70 65 6e 64 65 6e 74 20  tform-dependent 
1ec0: 66 69 6c 65 73 2e 0a 23 20 54 68 65 20 6c 69 73  files..# The lis
1ed0: 74 20 6f 66 20 74 61 72 67 65 74 73 20 74 6f 20  t of targets to 
1ee0: 62 75 69 6c 64 20 66 6f 72 20 22 62 69 6e 61 72  build for "binar
1ef0: 69 65 73 3a 22 20 69 73 20 73 70 65 63 69 66 69  ies:" is specifi
1f00: 65 64 20 61 74 20 74 68 65 20 74 6f 70 0a 23 20  ed at the top.# 
1f10: 6f 66 20 74 68 65 20 4d 61 6b 65 66 69 6c 65 2c  of the Makefile,
1f20: 20 69 6e 20 74 68 65 20 22 42 49 4e 41 52 49 45   in the "BINARIE
1f30: 53 22 20 76 61 72 69 61 62 6c 65 2e 0a 23 3d 3d  S" variable..#==
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 3d 3d 3d 3d 3d 3d  ================
1f60: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
1f70: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
1f80: 3d 3d 3d 3d 3d 3d 0a 0a 62 69 6e 61 72 69 65 73  ======..binaries
1f90: 3a 20 24 28 42 49 4e 41 52 49 45 53 29 0a 0a 6c  : $(BINARIES)..l
1fa0: 69 62 72 61 72 69 65 73 3a 0a 0a 23 3d 3d 3d 3d  ibraries:..#====
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 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
1ff0: 3d 3d 3d 3d 0a 23 20 59 6f 75 72 20 64 6f 63 20  ====.# Your doc 
2000: 74 61 72 67 65 74 20 73 68 6f 75 6c 64 20 64 69  target should di
2010: 66 66 65 72 65 6e 74 69 61 74 65 20 66 72 6f 6d  fferentiate from
2020: 20 64 6f 63 20 62 75 69 6c 64 73 20 28 62 79 20   doc builds (by 
2030: 74 68 65 20 64 65 76 65 6c 6f 70 65 72 29 0a 23  the developer).#
2040: 20 61 6e 64 20 64 6f 63 20 69 6e 73 74 61 6c 6c   and doc install
2050: 73 20 28 73 65 65 20 69 6e 73 74 61 6c 6c 2d 64  s (see install-d
2060: 6f 63 29 2c 20 77 68 69 63 68 20 6a 75 73 74 20  oc), which just 
2070: 69 6e 73 74 61 6c 6c 20 74 68 65 20 64 6f 63 73  install the docs
2080: 20 6f 6e 20 74 68 65 0a 23 20 65 6e 64 20 75 73   on the.# end us
2090: 65 72 20 6d 61 63 68 69 6e 65 20 77 68 65 6e 20  er machine when 
20a0: 62 75 69 6c 64 69 6e 67 20 66 72 6f 6d 20 73 6f  building from so
20b0: 75 72 63 65 2e 0a 23 3d 3d 3d 3d 3d 3d 3d 3d 3d  urce..#=========
20c0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
20d0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
20e0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
20f0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 0a  ===============.
2100: 0a 64 6f 63 3a 20 64 6f 63 2f 67 70 67 2e 6e 20  .doc: doc/gpg.n 
2110: 64 6f 63 2f 67 70 67 2e 68 74 6d 6c 0a 0a 64 6f  doc/gpg.html..do
2120: 63 2f 67 70 67 2e 6e 3a 20 64 6f 63 2f 67 70 67  c/gpg.n: doc/gpg
2130: 2e 6d 61 6e 0a 09 64 74 70 6c 69 74 65 20 2d 6f  .man..dtplite -o
2140: 20 24 40 20 6e 72 6f 66 66 20 24 3c 0a 0a 64 6f   $@ nroff $<..do
2150: 63 2f 67 70 67 2e 68 74 6d 6c 3a 20 64 6f 63 2f  c/gpg.html: doc/
2160: 67 70 67 2e 6d 61 6e 0a 09 64 74 70 6c 69 74 65  gpg.man..dtplite
2170: 20 2d 6f 20 24 40 20 68 74 6d 6c 20 24 3c 0a 0a   -o $@ html $<..
2180: 69 6e 73 74 61 6c 6c 3a 20 61 6c 6c 20 69 6e 73  install: all ins
2190: 74 61 6c 6c 2d 62 69 6e 61 72 69 65 73 20 69 6e  tall-binaries in
21a0: 73 74 61 6c 6c 2d 6c 69 62 72 61 72 69 65 73 20  stall-libraries 
21b0: 69 6e 73 74 61 6c 6c 2d 64 6f 63 0a 0a 69 6e 73  install-doc..ins
21c0: 74 61 6c 6c 2d 62 69 6e 61 72 69 65 73 3a 20 62  tall-binaries: b
21d0: 69 6e 61 72 69 65 73 20 69 6e 73 74 61 6c 6c 2d  inaries install-
21e0: 6c 69 62 2d 62 69 6e 61 72 69 65 73 20 69 6e 73  lib-binaries ins
21f0: 74 61 6c 6c 2d 62 69 6e 2d 62 69 6e 61 72 69 65  tall-bin-binarie
2200: 73 0a 0a 23 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  s..#============
2210: 3d 3d 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 0a 23 20 54  ============.# T
2250: 68 69 73 20 72 75 6c 65 20 69 6e 73 74 61 6c 6c  his rule install
2260: 73 20 70 6c 61 74 66 6f 72 6d 2d 69 6e 64 65 70  s platform-indep
2270: 65 6e 64 65 6e 74 20 66 69 6c 65 73 2c 20 73 75  endent files, su
2280: 63 68 20 61 73 20 68 65 61 64 65 72 20 66 69 6c  ch as header fil
2290: 65 73 2e 0a 23 20 54 68 65 20 6c 69 73 74 3d 2e  es..# The list=.
22a0: 2e 2e 3b 20 66 6f 72 20 70 20 69 6e 20 24 24 6c  ..; for p in $$l
22b0: 69 73 74 20 68 61 6e 64 6c 65 73 20 74 68 65 20  ist handles the 
22c0: 65 6d 70 74 79 20 6c 69 73 74 20 63 61 73 65 20  empty list case 
22d0: 78 2d 70 6c 61 74 66 6f 72 6d 2e 0a 23 3d 3d 3d  x-platform..#===
22e0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
22f0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
2300: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
2310: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
2320: 3d 3d 3d 3d 3d 0a 0a 69 6e 73 74 61 6c 6c 2d 6c  =====..install-l
2330: 69 62 72 61 72 69 65 73 3a 20 6c 69 62 72 61 72  ibraries: librar
2340: 69 65 73 0a 09 40 6d 6b 64 69 72 20 2d 70 20 24  ies..@mkdir -p $
2350: 28 44 45 53 54 44 49 52 29 24 28 69 6e 63 6c 75  (DESTDIR)$(inclu
2360: 64 65 64 69 72 29 0a 09 40 65 63 68 6f 20 22 49  dedir)..@echo "I
2370: 6e 73 74 61 6c 6c 69 6e 67 20 68 65 61 64 65 72  nstalling header
2380: 20 66 69 6c 65 73 20 69 6e 20 24 28 44 45 53 54   files in $(DEST
2390: 44 49 52 29 24 28 69 6e 63 6c 75 64 65 64 69 72  DIR)$(includedir
23a0: 29 22 0a 09 40 6c 69 73 74 3d 27 24 28 50 4b 47  )"..@list='$(PKG
23b0: 5f 48 45 41 44 45 52 53 29 27 3b 20 66 6f 72 20  _HEADERS)'; for 
23c0: 69 20 69 6e 20 24 24 6c 69 73 74 3b 20 64 6f 20  i in $$list; do 
23d0: 5c 0a 09 20 20 20 20 65 63 68 6f 20 22 49 6e 73  \..    echo "Ins
23e0: 74 61 6c 6c 69 6e 67 20 24 28 73 72 63 64 69 72  talling $(srcdir
23f0: 29 2f 24 24 69 22 20 3b 20 5c 0a 09 20 20 20 20  )/$$i" ; \..    
2400: 24 28 49 4e 53 54 41 4c 4c 5f 44 41 54 41 29 20  $(INSTALL_DATA) 
2410: 24 28 73 72 63 64 69 72 29 2f 24 24 69 20 24 28  $(srcdir)/$$i $(
2420: 44 45 53 54 44 49 52 29 24 28 69 6e 63 6c 75 64  DESTDIR)$(includ
2430: 65 64 69 72 29 20 3b 20 5c 0a 09 64 6f 6e 65 3b  edir) ; \..done;
2440: 0a 0a 23 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 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
2480: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 0a 23 20 49 6e  ===========.# In
2490: 73 74 61 6c 6c 20 64 6f 63 75 6d 65 6e 74 61 74  stall documentat
24a0: 69 6f 6e 2e 20 20 55 6e 69 78 20 6d 61 6e 70 61  ion.  Unix manpa
24b0: 67 65 73 20 73 68 6f 75 6c 64 20 67 6f 20 69 6e  ges should go in
24c0: 20 74 68 65 20 24 28 6d 61 6e 64 69 72 29 0a 23   the $(mandir).#
24d0: 20 64 69 72 65 63 74 6f 72 79 2e 0a 23 3d 3d 3d   directory..#===
24e0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
24f0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
2500: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
2510: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
2520: 3d 3d 3d 3d 3d 0a 0a 69 6e 73 74 61 6c 6c 2d 64  =====..install-d
2530: 6f 63 3a 20 64 6f 63 0a 09 40 6d 6b 64 69 72 20  oc: doc..@mkdir 
2540: 2d 70 20 24 28 44 45 53 54 44 49 52 29 24 28 6d  -p $(DESTDIR)$(m
2550: 61 6e 64 69 72 29 2f 6d 61 6e 6e 0a 09 40 65 63  andir)/mann..@ec
2560: 68 6f 20 22 49 6e 73 74 61 6c 6c 69 6e 67 20 64  ho "Installing d
2570: 6f 63 75 6d 65 6e 74 61 74 69 6f 6e 20 69 6e 20  ocumentation in 
2580: 24 28 44 45 53 54 44 49 52 29 24 28 6d 61 6e 64  $(DESTDIR)$(mand
2590: 69 72 29 22 0a 09 40 6c 69 73 74 3d 27 24 28 73  ir)"..@list='$(s
25a0: 72 63 64 69 72 29 2f 64 6f 63 2f 2a 2e 6e 27 3b  rcdir)/doc/*.n';
25b0: 20 66 6f 72 20 69 20 69 6e 20 24 24 6c 69 73 74   for i in $$list
25c0: 3b 20 64 6f 20 5c 0a 09 20 20 20 20 65 63 68 6f  ; do \..    echo
25d0: 20 22 49 6e 73 74 61 6c 6c 69 6e 67 20 24 24 69   "Installing $$i
25e0: 22 3b 20 5c 0a 09 20 20 20 20 72 6d 20 2d 66 20  "; \..    rm -f 
25f0: 24 28 44 45 53 54 44 49 52 29 24 28 6d 61 6e 64  $(DESTDIR)$(mand
2600: 69 72 29 2f 6d 61 6e 6e 2f 60 62 61 73 65 6e 61  ir)/mann/`basena
2610: 6d 65 20 24 24 69 60 3b 20 5c 0a 09 20 20 20 20  me $$i`; \..    
2620: 24 28 49 4e 53 54 41 4c 4c 5f 44 41 54 41 29 20  $(INSTALL_DATA) 
2630: 24 24 69 20 24 28 44 45 53 54 44 49 52 29 24 28  $$i $(DESTDIR)$(
2640: 6d 61 6e 64 69 72 29 2f 6d 61 6e 6e 20 3b 20 5c  mandir)/mann ; \
2650: 0a 09 64 6f 6e 65 0a 0a 74 65 73 74 3a 20 62 69  ..done..test: bi
2660: 6e 61 72 69 65 73 20 6c 69 62 72 61 72 69 65 73  naries libraries
2670: 0a 09 24 28 54 43 4c 53 48 29 20 60 65 63 68 6f  ..$(TCLSH) `echo
2680: 20 24 28 73 72 63 64 69 72 29 2f 74 63 6c 67 70   $(srcdir)/tclgp
2690: 67 2e 74 65 73 74 60 20 24 28 54 45 53 54 46 4c  g.test` $(TESTFL
26a0: 41 47 53 29 0a 0a 73 68 65 6c 6c 3a 20 62 69 6e  AGS)..shell: bin
26b0: 61 72 69 65 73 20 6c 69 62 72 61 72 69 65 73 0a  aries libraries.
26c0: 09 40 24 28 54 43 4c 53 48 29 20 24 28 53 43 52  .@$(TCLSH) $(SCR
26d0: 49 50 54 29 0a 0a 67 64 62 3a 0a 09 24 28 54 43  IPT)..gdb:..$(TC
26e0: 4c 53 48 5f 45 4e 56 29 20 67 64 62 20 24 28 54  LSH_ENV) gdb $(T
26f0: 43 4c 53 48 5f 50 52 4f 47 29 20 24 28 53 43 52  CLSH_PROG) $(SCR
2700: 49 50 54 29 0a 0a 64 65 70 65 6e 64 3a 0a 0a 23  IPT)..depend:..#
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: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
2740: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
2750: 3d 3d 3d 3d 3d 3d 3d 3d 0a 23 20 24 28 50 4b 47  ========.# $(PKG
2760: 5f 4c 49 42 5f 46 49 4c 45 29 20 73 68 6f 75 6c  _LIB_FILE) shoul
2770: 64 20 62 65 20 6c 69 73 74 65 64 20 61 73 20 70  d be listed as p
2780: 61 72 74 20 6f 66 20 74 68 65 20 42 49 4e 41 52  art of the BINAR
2790: 49 45 53 20 76 61 72 69 61 62 6c 65 0a 23 20 6d  IES variable.# m
27a0: 65 6e 74 69 6f 6e 65 64 20 61 62 6f 76 65 2e 20  entioned above. 
27b0: 20 54 68 61 74 20 77 69 6c 6c 20 65 6e 73 75 72   That will ensur
27c0: 65 20 74 68 61 74 20 74 68 69 73 20 74 61 72 67  e that this targ
27d0: 65 74 20 69 73 20 62 75 69 6c 74 20 77 68 65 6e  et is built when
27e0: 20 79 6f 75 0a 23 20 72 75 6e 20 22 6d 61 6b 65   you.# run "make
27f0: 20 62 69 6e 61 72 69 65 73 22 2e 0a 23 0a 23 20   binaries"..#.# 
2800: 54 68 65 20 24 28 50 4b 47 5f 4f 42 4a 45 43 54  The $(PKG_OBJECT
2810: 53 29 20 6f 62 6a 65 63 74 73 20 61 72 65 20 63  S) objects are c
2820: 72 65 61 74 65 64 20 61 6e 64 20 6c 69 6e 6b 65  reated and linke
2830: 64 20 69 6e 74 6f 20 74 68 65 20 66 69 6e 61 6c  d into the final
2840: 0a 23 20 6c 69 62 72 61 72 79 2e 20 20 49 6e 20  .# library.  In 
2850: 6d 6f 73 74 20 63 61 73 65 73 20 74 68 65 73 65  most cases these
2860: 20 6f 62 6a 65 63 74 20 66 69 6c 65 73 20 77 69   object files wi
2870: 6c 6c 20 63 6f 72 72 65 73 70 6f 6e 64 20 74 6f  ll correspond to
2880: 20 74 68 65 0a 23 20 73 6f 75 72 63 65 20 66 69   the.# source fi
2890: 6c 65 73 20 61 62 6f 76 65 2e 0a 23 3d 3d 3d 3d  les above..#====
28a0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
28b0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
28c0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
28d0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
28e0: 3d 3d 3d 3d 0a 0a 24 28 50 4b 47 5f 4c 49 42 5f  ====..$(PKG_LIB_
28f0: 46 49 4c 45 29 3a 20 24 28 50 4b 47 5f 4f 42 4a  FILE): $(PKG_OBJ
2900: 45 43 54 53 29 0a 09 2d 72 6d 20 2d 66 20 24 28  ECTS)..-rm -f $(
2910: 50 4b 47 5f 4c 49 42 5f 46 49 4c 45 29 0a 09 24  PKG_LIB_FILE)..$
2920: 7b 4d 41 4b 45 5f 4c 49 42 7d 0a 09 24 28 52 41  {MAKE_LIB}..$(RA
2930: 4e 4c 49 42 29 20 24 28 50 4b 47 5f 4c 49 42 5f  NLIB) $(PKG_LIB_
2940: 46 49 4c 45 29 0a 0a 24 28 50 4b 47 5f 53 54 55  FILE)..$(PKG_STU
2950: 42 5f 4c 49 42 5f 46 49 4c 45 29 3a 20 24 28 50  B_LIB_FILE): $(P
2960: 4b 47 5f 53 54 55 42 5f 4f 42 4a 45 43 54 53 29  KG_STUB_OBJECTS)
2970: 0a 09 2d 72 6d 20 2d 66 20 24 28 50 4b 47 5f 53  ..-rm -f $(PKG_S
2980: 54 55 42 5f 4c 49 42 5f 46 49 4c 45 29 0a 09 24  TUB_LIB_FILE)..$
2990: 7b 4d 41 4b 45 5f 53 54 55 42 5f 4c 49 42 7d 0a  {MAKE_STUB_LIB}.
29a0: 09 24 28 52 41 4e 4c 49 42 5f 53 54 55 42 29 20  .$(RANLIB_STUB) 
29b0: 24 28 50 4b 47 5f 53 54 55 42 5f 4c 49 42 5f 46  $(PKG_STUB_LIB_F
29c0: 49 4c 45 29 0a 0a 23 3d 3d 3d 3d 3d 3d 3d 3d 3d  ILE)..#=========
29d0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
29e0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
29f0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
2a00: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 0a  ===============.
2a10: 23 20 57 65 20 6e 65 65 64 20 74 6f 20 65 6e 75  # We need to enu
2a20: 6d 65 72 61 74 65 20 74 68 65 20 6c 69 73 74 20  merate the list 
2a30: 6f 66 20 2e 63 20 74 6f 20 2e 6f 20 6c 69 6e 65  of .c to .o line
2a40: 73 20 68 65 72 65 2e 0a 23 0a 23 20 49 6e 20 74  s here..#.# In t
2a50: 68 65 20 66 6f 6c 6c 6f 77 69 6e 67 20 6c 69 6e  he following lin
2a60: 65 73 2c 20 24 28 73 72 63 64 69 72 29 20 72 65  es, $(srcdir) re
2a70: 66 65 72 73 20 74 6f 20 74 68 65 20 74 6f 70 6c  fers to the topl
2a80: 65 76 65 6c 20 64 69 72 65 63 74 6f 72 79 0a 23  evel directory.#
2a90: 20 63 6f 6e 74 61 69 6e 69 6e 67 20 79 6f 75 72   containing your
2aa0: 20 65 78 74 65 6e 73 69 6f 6e 2e 20 20 49 66 20   extension.  If 
2ab0: 79 6f 75 72 20 73 6f 75 72 63 65 73 20 61 72 65  your sources are
2ac0: 20 69 6e 20 61 20 73 75 62 64 69 72 65 63 74 6f   in a subdirecto
2ad0: 72 79 2c 0a 23 20 79 6f 75 20 77 69 6c 6c 20 68  ry,.# you will h
2ae0: 61 76 65 20 74 6f 20 6d 6f 64 69 66 79 20 74 68  ave to modify th
2af0: 65 20 70 61 74 68 73 20 74 6f 20 72 65 66 6c 65  e paths to refle
2b00: 63 74 20 74 68 69 73 3a 0a 23 0a 23 20 73 61 6d  ct this:.#.# sam
2b10: 70 6c 65 2e 24 28 4f 42 4a 45 58 54 29 3a 20 24  ple.$(OBJEXT): $
2b20: 28 73 72 63 64 69 72 29 2f 67 65 6e 65 72 69 63  (srcdir)/generic
2b30: 2f 73 61 6d 70 6c 65 2e 63 0a 23 20 09 24 28 43  /sample.c.# .$(C
2b40: 4f 4d 50 49 4c 45 29 20 2d 63 20 60 65 63 68 6f  OMPILE) -c `echo
2b50: 20 24 28 73 72 63 64 69 72 29 2f 67 65 6e 65 72   $(srcdir)/gener
2b60: 69 63 2f 73 61 6d 70 6c 65 2e 63 60 20 2d 6f 20  ic/sample.c` -o 
2b70: 24 40 0a 23 0a 23 20 53 65 74 74 69 6e 67 20 74  $@.#.# Setting t
2b80: 68 65 20 56 50 41 54 48 20 76 61 72 69 61 62 6c  he VPATH variabl
2b90: 65 20 74 6f 20 61 20 6c 69 73 74 20 6f 66 20 70  e to a list of p
2ba0: 61 74 68 73 20 77 69 6c 6c 20 63 61 75 73 65 20  aths will cause 
2bb0: 74 68 65 20 6d 61 6b 65 66 69 6c 65 0a 23 20 74  the makefile.# t
2bc0: 6f 20 6c 6f 6f 6b 20 69 6e 74 6f 20 74 68 65 73  o look into thes
2bd0: 65 20 70 61 74 68 73 20 77 68 65 6e 20 72 65 73  e paths when res
2be0: 6f 6c 76 69 6e 67 20 2e 63 20 74 6f 20 2e 6f 62  olving .c to .ob
2bf0: 6a 20 64 65 70 65 6e 64 65 6e 63 69 65 73 2e 0a  j dependencies..
2c00: 23 20 41 73 20 6e 65 63 65 73 73 61 72 79 2c 20  # As necessary, 
2c10: 61 64 64 20 24 28 73 72 63 64 69 72 29 3a 24 28  add $(srcdir):$(
2c20: 73 72 63 64 69 72 29 2f 63 6f 6d 70 61 74 3a 2e  srcdir)/compat:.
2c30: 2e 2e 2e 0a 23 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ....#===========
2c40: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
2c50: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
2c60: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
2c70: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 0a 0a 56  =============..V
2c80: 50 41 54 48 20 3d 20 24 28 73 72 63 64 69 72 29  PATH = $(srcdir)
2c90: 2f 67 65 6e 65 72 69 63 3a 24 28 73 72 63 64 69  /generic:$(srcdi
2ca0: 72 29 2f 75 6e 69 78 3a 24 28 73 72 63 64 69 72  r)/unix:$(srcdir
2cb0: 29 2f 77 69 6e 0a 0a 2e 63 2e 3a 0a 09 24 28 43  )/win...c.:..$(C
2cc0: 4f 4d 50 49 4c 45 29 20 2d 63 20 60 65 63 68 6f  OMPILE) -c `echo
2cd0: 20 24 3c 60 20 2d 6f 20 24 40 0a 0a 23 3d 3d 3d   $<` -o $@..#===
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 0a 23 20 44 69 73 74 72 69 62 75  =====.# Distribu
2d30: 74 69 6f 6e 20 63 72 65 61 74 69 6f 6e 0a 23 20  tion creation.# 
2d40: 59 6f 75 20 6d 61 79 20 6e 65 65 64 20 74 6f 20  You may need to 
2d50: 74 77 65 61 6b 20 74 68 69 73 20 74 61 72 67 65  tweak this targe
2d60: 74 20 74 6f 20 6d 61 6b 65 20 69 74 20 77 6f 72  t to make it wor
2d70: 6b 20 63 6f 72 72 65 63 74 6c 79 2e 0a 23 3d 3d  k correctly..#==
2d80: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
2d90: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
2da0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
2db0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
2dc0: 3d 3d 3d 3d 3d 3d 0a 0a 23 43 4f 4d 50 52 45 53  ======..#COMPRES
2dd0: 53 09 3d 20 74 61 72 20 63 76 66 20 24 28 50 4b  S.= tar cvf $(PK
2de0: 47 5f 44 49 52 29 2e 74 61 72 20 24 28 50 4b 47  G_DIR).tar $(PKG
2df0: 5f 44 49 52 29 3b 20 63 6f 6d 70 72 65 73 73 20  _DIR); compress 
2e00: 24 28 50 4b 47 5f 44 49 52 29 2e 74 61 72 0a 43  $(PKG_DIR).tar.C
2e10: 4f 4d 50 52 45 53 53 09 3d 20 67 74 61 72 20 7a  OMPRESS.= gtar z
2e20: 63 76 66 20 24 28 50 4b 47 5f 44 49 52 29 2e 74  cvf $(PKG_DIR).t
2e30: 61 72 2e 67 7a 20 24 28 50 4b 47 5f 44 49 52 29  ar.gz $(PKG_DIR)
2e40: 0a 44 49 53 54 5f 52 4f 4f 54 09 3d 20 2f 74 6d  .DIST_ROOT.= /tm
2e50: 70 2f 64 69 73 74 0a 44 49 53 54 5f 44 49 52 09  p/dist.DIST_DIR.
2e60: 3d 20 24 28 44 49 53 54 5f 52 4f 4f 54 29 2f 24  = $(DIST_ROOT)/$
2e70: 28 50 4b 47 5f 44 49 52 29 0a 0a 64 69 73 74 2d  (PKG_DIR)..dist-
2e80: 63 6c 65 61 6e 3a 0a 09 72 6d 20 2d 72 66 20 24  clean:..rm -rf $
2e90: 28 44 49 53 54 5f 44 49 52 29 20 24 28 44 49 53  (DIST_DIR) $(DIS
2ea0: 54 5f 52 4f 4f 54 29 2f 24 28 50 4b 47 5f 44 49  T_ROOT)/$(PKG_DI
2eb0: 52 29 2e 74 61 72 2e 2a 0a 0a 64 69 73 74 3a 20  R).tar.*..dist: 
2ec0: 64 69 73 74 2d 63 6c 65 61 6e 0a 09 6d 6b 64 69  dist-clean..mkdi
2ed0: 72 20 2d 70 20 24 28 44 49 53 54 5f 44 49 52 29  r -p $(DIST_DIR)
2ee0: 0a 09 63 70 20 2d 70 20 24 28 73 72 63 64 69 72  ..cp -p $(srcdir
2ef0: 29 2f 43 68 61 6e 67 65 4c 6f 67 20 24 28 73 72  )/ChangeLog $(sr
2f00: 63 64 69 72 29 2f 52 45 41 44 4d 45 2a 20 24 28  cdir)/README* $(
2f10: 73 72 63 64 69 72 29 2f 6c 69 63 65 6e 73 65 2a  srcdir)/license*
2f20: 20 5c 0a 09 09 24 28 73 72 63 64 69 72 29 2f 61   \...$(srcdir)/a
2f30: 63 6c 6f 63 61 6c 2e 6d 34 20 24 28 73 72 63 64  clocal.m4 $(srcd
2f40: 69 72 29 2f 63 6f 6e 66 69 67 75 72 65 20 24 28  ir)/configure $(
2f50: 73 72 63 64 69 72 29 2f 2a 2e 69 6e 20 5c 0a 09  srcdir)/*.in \..
2f60: 09 24 28 44 49 53 54 5f 44 49 52 29 2f 0a 09 63  .$(DIST_DIR)/..c
2f70: 68 6d 6f 64 20 36 36 34 20 24 28 44 49 53 54 5f  hmod 664 $(DIST_
2f80: 44 49 52 29 2f 4d 61 6b 65 66 69 6c 65 2e 69 6e  DIR)/Makefile.in
2f90: 20 24 28 44 49 53 54 5f 44 49 52 29 2f 61 63 6c   $(DIST_DIR)/acl
2fa0: 6f 63 61 6c 2e 6d 34 0a 09 63 68 6d 6f 64 20 37  ocal.m4..chmod 7
2fb0: 37 35 20 24 28 44 49 53 54 5f 44 49 52 29 2f 63  75 $(DIST_DIR)/c
2fc0: 6f 6e 66 69 67 75 72 65 20 24 28 44 49 53 54 5f  onfigure $(DIST_
2fd0: 44 49 52 29 2f 63 6f 6e 66 69 67 75 72 65 2e 69  DIR)/configure.i
2fe0: 6e 0a 0a 09 66 6f 72 20 69 20 69 6e 20 24 28 73  n...for i in $(s
2ff0: 72 63 64 69 72 29 2f 2a 2e 5b 63 68 5d 3b 20 64  rcdir)/*.[ch]; d
3000: 6f 20 5c 0a 09 20 20 20 20 69 66 20 5b 20 2d 66  o \..    if [ -f
3010: 20 24 24 69 20 5d 3b 20 74 68 65 6e 20 5c 0a 09   $$i ]; then \..
3020: 09 63 70 20 2d 70 20 24 24 69 20 24 28 44 49 53  .cp -p $$i $(DIS
3030: 54 5f 44 49 52 29 2f 20 3b 20 5c 0a 09 20 20 20  T_DIR)/ ; \..   
3040: 20 66 69 3b 20 5c 0a 09 64 6f 6e 65 3b 0a 0a 09   fi; \..done;...
3050: 6d 6b 64 69 72 20 24 28 44 49 53 54 5f 44 49 52  mkdir $(DIST_DIR
3060: 29 2f 74 63 6c 63 6f 6e 66 69 67 0a 09 63 70 20  )/tclconfig..cp 
3070: 24 28 73 72 63 64 69 72 29 2f 74 63 6c 63 6f 6e  $(srcdir)/tclcon
3080: 66 69 67 2f 69 6e 73 74 61 6c 6c 2d 73 68 20 24  fig/install-sh $
3090: 28 73 72 63 64 69 72 29 2f 74 63 6c 63 6f 6e 66  (srcdir)/tclconf
30a0: 69 67 2f 74 63 6c 2e 6d 34 20 5c 0a 09 09 24 28  ig/tcl.m4 \...$(
30b0: 44 49 53 54 5f 44 49 52 29 2f 74 63 6c 63 6f 6e  DIST_DIR)/tclcon
30c0: 66 69 67 2f 0a 09 63 68 6d 6f 64 20 36 36 34 20  fig/..chmod 664 
30d0: 24 28 44 49 53 54 5f 44 49 52 29 2f 74 63 6c 63  $(DIST_DIR)/tclc
30e0: 6f 6e 66 69 67 2f 74 63 6c 2e 6d 34 0a 09 63 68  onfig/tcl.m4..ch
30f0: 6d 6f 64 20 2b 78 20 24 28 44 49 53 54 5f 44 49  mod +x $(DIST_DI
3100: 52 29 2f 74 63 6c 63 6f 6e 66 69 67 2f 69 6e 73  R)/tclconfig/ins
3110: 74 61 6c 6c 2d 73 68 0a 0a 09 6c 69 73 74 3d 27  tall-sh...list='
3120: 64 65 6d 6f 73 20 64 6f 63 20 67 65 6e 65 72 69  demos doc generi
3130: 63 20 6c 69 62 72 61 72 79 20 6d 61 63 20 74 65  c library mac te
3140: 73 74 73 20 75 6e 69 78 20 77 69 6e 27 3b 20 5c  sts unix win'; \
3150: 0a 09 66 6f 72 20 70 20 69 6e 20 24 24 6c 69 73  ..for p in $$lis
3160: 74 3b 20 64 6f 20 5c 0a 09 20 20 20 20 69 66 20  t; do \..    if 
3170: 74 65 73 74 20 2d 64 20 24 28 73 72 63 64 69 72  test -d $(srcdir
3180: 29 2f 24 24 70 20 3b 20 74 68 65 6e 20 5c 0a 09  )/$$p ; then \..
3190: 09 6d 6b 64 69 72 20 24 28 44 49 53 54 5f 44 49  .mkdir $(DIST_DI
31a0: 52 29 2f 24 24 70 3b 20 5c 0a 09 09 63 70 20 2d  R)/$$p; \...cp -
31b0: 70 20 24 28 73 72 63 64 69 72 29 2f 24 24 70 2f  p $(srcdir)/$$p/
31c0: 2a 2e 2a 20 24 28 44 49 53 54 5f 44 49 52 29 2f  *.* $(DIST_DIR)/
31d0: 24 24 70 2f 3b 20 5c 0a 09 20 20 20 20 66 69 3b  $$p/; \..    fi;
31e0: 20 5c 0a 09 64 6f 6e 65 0a 0a 09 28 63 64 20 24   \..done...(cd $
31f0: 28 44 49 53 54 5f 52 4f 4f 54 29 3b 20 24 28 43  (DIST_ROOT); $(C
3200: 4f 4d 50 52 45 53 53 29 3b 29 0a 0a 23 3d 3d 3d  OMPRESS);)..#===
3210: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
3220: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
3230: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
3240: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
3250: 3d 3d 3d 3d 3d 0a 23 20 45 6e 64 20 6f 66 20 75  =====.# End of u
3260: 73 65 72 2d 64 65 66 69 6e 61 62 6c 65 20 73 65  ser-definable se
3270: 63 74 69 6f 6e 0a 23 3d 3d 3d 3d 3d 3d 3d 3d 3d  ction.#=========
3280: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
3290: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
32a0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
32b0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 0a  ===============.
32c0: 0a 23 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  .#==============
32d0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
32e0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
32f0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
3300: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 0a 23 20 44 6f 6e  ==========.# Don
3310: 27 74 20 6d 6f 64 69 66 79 20 74 68 65 20 66 69  't modify the fi
3320: 6c 65 20 74 6f 20 63 6c 65 61 6e 20 68 65 72 65  le to clean here
3330: 2e 20 20 49 6e 73 74 65 61 64 2c 20 73 65 74 20  .  Instead, set 
3340: 74 68 65 20 22 43 4c 45 41 4e 46 49 4c 45 53 22  the "CLEANFILES"
3350: 0a 23 20 76 61 72 69 61 62 6c 65 20 69 6e 20 63  .# variable in c
3360: 6f 6e 66 69 67 75 72 65 2e 69 6e 0a 23 3d 3d 3d  onfigure.in.#===
3370: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
3380: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
3390: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
33a0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
33b0: 3d 3d 3d 3d 3d 0a 0a 63 6c 65 61 6e 3a 20 20 0a  =====..clean:  .
33c0: 09 2d 74 65 73 74 20 2d 7a 20 22 24 28 42 49 4e  .-test -z "$(BIN
33d0: 41 52 49 45 53 29 22 20 7c 7c 20 72 6d 20 2d 66  ARIES)" || rm -f
33e0: 20 24 28 42 49 4e 41 52 49 45 53 29 0a 09 2d 72   $(BINARIES)..-r
33f0: 6d 20 2d 66 20 2a 2e 24 28 4f 42 4a 45 58 54 29  m -f *.$(OBJEXT)
3400: 20 63 6f 72 65 20 2a 2e 63 6f 72 65 0a 09 2d 74   core *.core..-t
3410: 65 73 74 20 2d 7a 20 22 24 28 43 4c 45 41 4e 46  est -z "$(CLEANF
3420: 49 4c 45 53 29 22 20 7c 7c 20 72 6d 20 2d 66 20  ILES)" || rm -f 
3430: 24 28 43 4c 45 41 4e 46 49 4c 45 53 29 0a 0a 64  $(CLEANFILES)..d
3440: 69 73 74 63 6c 65 61 6e 3a 20 63 6c 65 61 6e 0a  istclean: clean.
3450: 09 2d 72 6d 20 2d 66 20 2a 2e 74 61 62 2e 63 0a  .-rm -f *.tab.c.
3460: 09 2d 72 6d 20 2d 66 20 24 28 43 4f 4e 46 49 47  .-rm -f $(CONFIG
3470: 5f 43 4c 45 41 4e 5f 46 49 4c 45 53 29 0a 09 2d  _CLEAN_FILES)..-
3480: 72 6d 20 2d 66 20 63 6f 6e 66 69 67 2e 63 61 63  rm -f config.cac
3490: 68 65 20 63 6f 6e 66 69 67 2e 6c 6f 67 20 63 6f  he config.log co
34a0: 6e 66 69 67 2e 73 74 61 74 75 73 0a 0a 23 3d 3d  nfig.status..#==
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 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
34e0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
34f0: 3d 3d 3d 3d 3d 3d 0a 23 20 49 6e 73 74 61 6c 6c  ======.# Install
3500: 20 62 69 6e 61 72 79 20 6f 62 6a 65 63 74 20 6c   binary object l
3510: 69 62 72 61 72 69 65 73 2e 20 20 4f 6e 20 57 69  ibraries.  On Wi
3520: 6e 64 6f 77 73 20 74 68 69 73 20 69 6e 63 6c 75  ndows this inclu
3530: 64 65 73 20 62 6f 74 68 20 2e 64 6c 6c 20 61 6e  des both .dll an
3540: 64 0a 23 20 2e 6c 69 62 20 66 69 6c 65 73 2e 20  d.# .lib files. 
3550: 20 42 65 63 61 75 73 65 20 74 68 65 20 2e 6c 69   Because the .li
3560: 62 20 66 69 6c 65 73 20 61 72 65 20 6e 6f 74 20  b files are not 
3570: 65 78 70 6c 69 63 69 74 6c 79 20 6c 69 73 74 65  explicitly liste
3580: 64 20 61 6e 79 77 68 65 72 65 2c 0a 23 20 77 65  d anywhere,.# we
3590: 20 6e 65 65 64 20 74 6f 20 64 65 64 75 63 65 20   need to deduce 
35a0: 74 68 65 69 72 20 65 78 69 73 74 65 6e 63 65 20  their existence 
35b0: 66 72 6f 6d 20 74 68 65 20 2e 64 6c 6c 20 66 69  from the .dll fi
35c0: 6c 65 20 6f 66 20 74 68 65 20 73 61 6d 65 20 6e  le of the same n
35d0: 61 6d 65 2e 0a 23 20 4c 69 62 72 61 72 79 20 66  ame..# Library f
35e0: 69 6c 65 73 20 67 6f 20 69 6e 74 6f 20 74 68 65  iles go into the
35f0: 20 6c 69 62 20 64 69 72 65 63 74 6f 72 79 2e 0a   lib directory..
3600: 23 20 49 6e 20 61 64 64 69 74 69 6f 6e 2c 20 74  # In addition, t
3610: 68 69 73 20 77 69 6c 6c 20 67 65 6e 65 72 61 74  his will generat
3620: 65 20 74 68 65 20 70 6b 67 49 6e 64 65 78 2e 74  e the pkgIndex.t
3630: 63 6c 0a 23 20 66 69 6c 65 20 69 6e 20 74 68 65  cl.# file in the
3640: 20 69 6e 73 74 61 6c 6c 20 6c 6f 63 61 74 69 6f   install locatio
3650: 6e 20 28 61 73 73 75 6d 69 6e 67 20 69 74 20 63  n (assuming it c
3660: 61 6e 20 66 69 6e 64 20 61 20 75 73 61 62 6c 65  an find a usable
3670: 20 74 63 6c 73 68 20 73 68 65 6c 6c 29 0a 23 0a   tclsh shell).#.
3680: 23 20 59 6f 75 20 73 68 6f 75 6c 64 20 6e 6f 74  # You should not
3690: 20 68 61 76 65 20 74 6f 20 6d 6f 64 69 66 79 20   have to modify 
36a0: 74 68 69 73 20 74 61 72 67 65 74 2e 0a 23 3d 3d  this target..#==
36b0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
36c0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
36d0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
36e0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
36f0: 3d 3d 3d 3d 3d 3d 0a 0a 69 6e 73 74 61 6c 6c 2d  ======..install-
3700: 6c 69 62 2d 62 69 6e 61 72 69 65 73 3a 20 62 69  lib-binaries: bi
3710: 6e 61 72 69 65 73 0a 09 40 6d 6b 64 69 72 20 2d  naries..@mkdir -
3720: 70 20 24 28 44 45 53 54 44 49 52 29 24 28 70 6b  p $(DESTDIR)$(pk
3730: 67 6c 69 62 64 69 72 29 0a 09 40 6c 69 73 74 3d  glibdir)..@list=
3740: 27 24 28 6c 69 62 5f 42 49 4e 41 52 49 45 53 29  '$(lib_BINARIES)
3750: 27 3b 20 66 6f 72 20 70 20 69 6e 20 24 24 6c 69  '; for p in $$li
3760: 73 74 3b 20 64 6f 20 5c 0a 09 20 20 69 66 20 74  st; do \..  if t
3770: 65 73 74 20 2d 66 20 24 24 70 3b 20 74 68 65 6e  est -f $$p; then
3780: 20 5c 0a 09 20 20 20 20 65 63 68 6f 20 22 20 24   \..    echo " $
3790: 28 49 4e 53 54 41 4c 4c 5f 50 52 4f 47 52 41 4d  (INSTALL_PROGRAM
37a0: 29 20 24 24 70 20 24 28 44 45 53 54 44 49 52 29  ) $$p $(DESTDIR)
37b0: 24 28 70 6b 67 6c 69 62 64 69 72 29 2f 24 24 70  $(pkglibdir)/$$p
37c0: 22 3b 20 5c 0a 09 20 20 20 20 24 28 49 4e 53 54  "; \..    $(INST
37d0: 41 4c 4c 5f 50 52 4f 47 52 41 4d 29 20 24 24 70  ALL_PROGRAM) $$p
37e0: 20 24 28 44 45 53 54 44 49 52 29 24 28 70 6b 67   $(DESTDIR)$(pkg
37f0: 6c 69 62 64 69 72 29 2f 24 24 70 3b 20 5c 0a 09  libdir)/$$p; \..
3800: 20 20 20 20 73 74 75 62 3d 60 65 63 68 6f 20 24      stub=`echo $
3810: 24 70 7c 73 65 64 20 2d 65 20 22 73 2f 2e 2a 5c  $p|sed -e "s/.*\
3820: 28 73 74 75 62 5c 29 2e 2a 2f 5c 31 2f 22 60 3b  (stub\).*/\1/"`;
3830: 20 5c 0a 09 20 20 20 20 69 66 20 74 65 73 74 20   \..    if test 
3840: 22 78 24 24 73 74 75 62 22 20 3d 20 22 78 73 74  "x$$stub" = "xst
3850: 75 62 22 3b 20 74 68 65 6e 20 5c 0a 09 09 65 63  ub"; then \...ec
3860: 68 6f 20 22 20 24 28 52 41 4e 4c 49 42 5f 53 54  ho " $(RANLIB_ST
3870: 55 42 29 20 24 28 44 45 53 54 44 49 52 29 24 28  UB) $(DESTDIR)$(
3880: 70 6b 67 6c 69 62 64 69 72 29 2f 24 24 70 22 3b  pkglibdir)/$$p";
3890: 20 5c 0a 09 09 24 28 52 41 4e 4c 49 42 5f 53 54   \...$(RANLIB_ST
38a0: 55 42 29 20 24 28 44 45 53 54 44 49 52 29 24 28  UB) $(DESTDIR)$(
38b0: 70 6b 67 6c 69 62 64 69 72 29 2f 24 24 70 3b 20  pkglibdir)/$$p; 
38c0: 5c 0a 09 20 20 20 20 65 6c 73 65 20 5c 0a 09 09  \..    else \...
38d0: 65 63 68 6f 20 22 20 24 28 52 41 4e 4c 49 42 29  echo " $(RANLIB)
38e0: 20 24 28 44 45 53 54 44 49 52 29 24 28 70 6b 67   $(DESTDIR)$(pkg
38f0: 6c 69 62 64 69 72 29 2f 24 24 70 22 3b 20 5c 0a  libdir)/$$p"; \.
3900: 09 09 24 28 52 41 4e 4c 49 42 29 20 24 28 44 45  ..$(RANLIB) $(DE
3910: 53 54 44 49 52 29 24 28 70 6b 67 6c 69 62 64 69  STDIR)$(pkglibdi
3920: 72 29 2f 24 24 70 3b 20 5c 0a 09 20 20 20 20 66  r)/$$p; \..    f
3930: 69 3b 20 5c 0a 09 20 20 20 20 65 78 74 3d 60 65  i; \..    ext=`e
3940: 63 68 6f 20 24 24 70 7c 73 65 64 20 2d 65 20 22  cho $$p|sed -e "
3950: 73 2f 2e 2a 5c 2e 2f 2f 22 60 3b 20 5c 0a 09 20  s/.*\.//"`; \.. 
3960: 20 20 20 69 66 20 74 65 73 74 20 22 78 24 24 65     if test "x$$e
3970: 78 74 22 20 3d 20 22 78 64 6c 6c 22 3b 20 74 68  xt" = "xdll"; th
3980: 65 6e 20 5c 0a 09 09 6c 69 62 3d 60 62 61 73 65  en \...lib=`base
3990: 6e 61 6d 65 20 24 24 70 7c 73 65 64 20 2d 65 20  name $$p|sed -e 
39a0: 27 73 2f 2e 5b 5e 2e 5d 2a 24 24 2f 2f 27 60 2e  's/.[^.]*$$//'`.
39b0: 6c 69 62 3b 20 5c 0a 09 09 69 66 20 74 65 73 74  lib; \...if test
39c0: 20 2d 66 20 24 24 6c 69 62 3b 20 74 68 65 6e 20   -f $$lib; then 
39d0: 5c 0a 09 09 20 20 20 20 65 63 68 6f 20 22 20 24  \...    echo " $
39e0: 28 49 4e 53 54 41 4c 4c 5f 44 41 54 41 29 20 24  (INSTALL_DATA) $
39f0: 24 6c 69 62 20 24 28 44 45 53 54 44 49 52 29 24  $lib $(DESTDIR)$
3a00: 28 70 6b 67 6c 69 62 64 69 72 29 2f 24 24 6c 69  (pkglibdir)/$$li
3a10: 62 22 3b 20 5c 0a 09 20 20 20 20 20 20 20 20 20  b"; \..         
3a20: 20 20 20 24 28 49 4e 53 54 41 4c 4c 5f 44 41 54     $(INSTALL_DAT
3a30: 41 29 20 24 24 6c 69 62 20 24 28 44 45 53 54 44  A) $$lib $(DESTD
3a40: 49 52 29 24 28 70 6b 67 6c 69 62 64 69 72 29 2f  IR)$(pkglibdir)/
3a50: 24 24 6c 69 62 3b 20 5c 0a 09 09 66 69 3b 20 5c  $$lib; \...fi; \
3a60: 0a 09 20 20 20 20 66 69 3b 20 5c 0a 09 20 20 66  ..    fi; \..  f
3a70: 69 3b 20 5c 0a 09 64 6f 6e 65 0a 09 40 6c 69 73  i; \..done..@lis
3a80: 74 3d 27 24 28 50 4b 47 5f 54 43 4c 5f 53 4f 55  t='$(PKG_TCL_SOU
3a90: 52 43 45 53 29 27 3b 20 66 6f 72 20 70 20 69 6e  RCES)'; for p in
3aa0: 20 24 24 6c 69 73 74 3b 20 64 6f 20 5c 0a 09 20   $$list; do \.. 
3ab0: 20 69 66 20 74 65 73 74 20 2d 66 20 24 28 73 72   if test -f $(sr
3ac0: 63 64 69 72 29 2f 24 24 70 3b 20 74 68 65 6e 20  cdir)/$$p; then 
3ad0: 5c 0a 09 20 20 20 20 64 65 73 74 70 3d 60 62 61  \..    destp=`ba
3ae0: 73 65 6e 61 6d 65 20 24 24 70 60 3b 20 5c 0a 09  sename $$p`; \..
3af0: 20 20 20 20 65 63 68 6f 20 22 20 49 6e 73 74 61      echo " Insta
3b00: 6c 6c 20 24 24 64 65 73 74 70 20 24 28 44 45 53  ll $$destp $(DES
3b10: 54 44 49 52 29 24 28 70 6b 67 6c 69 62 64 69 72  TDIR)$(pkglibdir
3b20: 29 2f 24 24 64 65 73 74 70 22 3b 20 5c 0a 09 20  )/$$destp"; \.. 
3b30: 20 20 20 24 28 49 4e 53 54 41 4c 4c 5f 44 41 54     $(INSTALL_DAT
3b40: 41 29 20 24 28 73 72 63 64 69 72 29 2f 24 24 70  A) $(srcdir)/$$p
3b50: 20 24 28 44 45 53 54 44 49 52 29 24 28 70 6b 67   $(DESTDIR)$(pkg
3b60: 6c 69 62 64 69 72 29 2f 24 24 64 65 73 74 70 3b  libdir)/$$destp;
3b70: 20 5c 0a 09 20 20 66 69 3b 20 5c 0a 09 64 6f 6e   \..  fi; \..don
3b80: 65 0a 09 40 69 66 20 74 65 73 74 20 22 78 24 28  e..@if test "x$(
3b90: 53 48 41 52 45 44 5f 42 55 49 4c 44 29 22 20 3d  SHARED_BUILD)" =
3ba0: 20 22 78 31 22 3b 20 74 68 65 6e 20 5c 0a 09 20   "x1"; then \.. 
3bb0: 20 20 20 65 63 68 6f 20 22 20 49 6e 73 74 61 6c     echo " Instal
3bc0: 6c 20 70 6b 67 49 6e 64 65 78 2e 74 63 6c 20 24  l pkgIndex.tcl $
3bd0: 28 44 45 53 54 44 49 52 29 24 28 70 6b 67 6c 69  (DESTDIR)$(pkgli
3be0: 62 64 69 72 29 22 3b 20 5c 0a 09 20 20 20 20 24  bdir)"; \..    $
3bf0: 28 49 4e 53 54 41 4c 4c 5f 44 41 54 41 29 20 70  (INSTALL_DATA) p
3c00: 6b 67 49 6e 64 65 78 2e 74 63 6c 20 24 28 44 45  kgIndex.tcl $(DE
3c10: 53 54 44 49 52 29 24 28 70 6b 67 6c 69 62 64 69  STDIR)$(pkglibdi
3c20: 72 29 3b 20 5c 0a 09 66 69 0a 0a 23 3d 3d 3d 3d  r); \..fi..#====
3c30: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
3c40: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
3c50: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
3c60: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
3c70: 3d 3d 3d 3d 0a 23 20 49 6e 73 74 61 6c 6c 20 62  ====.# Install b
3c80: 69 6e 61 72 79 20 65 78 65 63 75 74 61 62 6c 65  inary executable
3c90: 73 20 28 65 2e 67 2e 20 2e 65 78 65 20 66 69 6c  s (e.g. .exe fil
3ca0: 65 73 20 61 6e 64 20 64 65 70 65 6e 64 65 6e 74  es and dependent
3cb0: 20 2e 64 6c 6c 20 66 69 6c 65 73 29 0a 23 20 54   .dll files).# T
3cc0: 68 69 73 20 69 73 20 66 6f 72 20 66 69 6c 65 73  his is for files
3cd0: 20 74 68 61 74 20 6d 75 73 74 20 67 6f 20 69 6e   that must go in
3ce0: 20 74 68 65 20 62 69 6e 20 64 69 72 65 63 74 6f   the bin directo
3cf0: 72 79 20 28 6c 6f 63 61 74 65 64 20 6e 65 78 74  ry (located next
3d00: 20 74 6f 0a 23 20 77 69 73 68 20 61 6e 64 20 74   to.# wish and t
3d10: 63 6c 73 68 29 2c 20 6c 69 6b 65 20 64 65 70 65  clsh), like depe
3d20: 6e 64 65 6e 74 20 2e 64 6c 6c 20 66 69 6c 65 73  ndent .dll files
3d30: 20 6f 6e 20 57 69 6e 64 6f 77 73 2e 0a 23 0a 23   on Windows..#.#
3d40: 20 59 6f 75 20 73 68 6f 75 6c 64 20 6e 6f 74 20   You should not 
3d50: 68 61 76 65 20 74 6f 20 6d 6f 64 69 66 79 20 74  have to modify t
3d60: 68 69 73 20 74 61 72 67 65 74 2c 20 65 78 63 65  his target, exce
3d70: 70 74 20 74 6f 20 64 65 66 69 6e 65 20 62 69 6e  pt to define bin
3d80: 5f 42 49 4e 41 52 49 45 53 0a 23 20 61 62 6f 76  _BINARIES.# abov
3d90: 65 20 69 66 20 6e 65 63 65 73 73 61 72 79 2e 0a  e if necessary..
3da0: 23 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  #===============
3db0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
3dc0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
3dd0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
3de0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 0a 0a 69 6e 73 74 61  =========..insta
3df0: 6c 6c 2d 62 69 6e 2d 62 69 6e 61 72 69 65 73 3a  ll-bin-binaries:
3e00: 20 62 69 6e 61 72 69 65 73 0a 09 40 6d 6b 64 69   binaries..@mkdi
3e10: 72 20 2d 70 20 24 28 44 45 53 54 44 49 52 29 24  r -p $(DESTDIR)$
3e20: 28 62 69 6e 64 69 72 29 0a 09 40 6c 69 73 74 3d  (bindir)..@list=
3e30: 27 24 28 62 69 6e 5f 42 49 4e 41 52 49 45 53 29  '$(bin_BINARIES)
3e40: 27 3b 20 66 6f 72 20 70 20 69 6e 20 24 24 6c 69  '; for p in $$li
3e50: 73 74 3b 20 64 6f 20 5c 0a 09 20 20 69 66 20 74  st; do \..  if t
3e60: 65 73 74 20 2d 66 20 24 24 70 3b 20 74 68 65 6e  est -f $$p; then
3e70: 20 5c 0a 09 20 20 20 20 65 63 68 6f 20 22 20 24   \..    echo " $
3e80: 28 49 4e 53 54 41 4c 4c 5f 50 52 4f 47 52 41 4d  (INSTALL_PROGRAM
3e90: 29 20 24 24 70 20 24 28 44 45 53 54 44 49 52 29  ) $$p $(DESTDIR)
3ea0: 24 28 62 69 6e 64 69 72 29 2f 24 24 70 22 3b 20  $(bindir)/$$p"; 
3eb0: 5c 0a 09 20 20 20 20 24 28 49 4e 53 54 41 4c 4c  \..    $(INSTALL
3ec0: 5f 50 52 4f 47 52 41 4d 29 20 24 24 70 20 24 28  _PROGRAM) $$p $(
3ed0: 44 45 53 54 44 49 52 29 24 28 62 69 6e 64 69 72  DESTDIR)$(bindir
3ee0: 29 2f 24 24 70 3b 20 5c 0a 09 20 20 66 69 3b 20  )/$$p; \..  fi; 
3ef0: 5c 0a 09 64 6f 6e 65 0a 0a 2e 53 55 46 46 49 58  \..done...SUFFIX
3f00: 45 53 3a 20 2e 63 20 2e 24 28 4f 42 4a 45 58 54  ES: .c .$(OBJEXT
3f10: 29 0a 0a 4d 61 6b 65 66 69 6c 65 3a 20 24 28 73  )..Makefile: $(s
3f20: 72 63 64 69 72 29 2f 4d 61 6b 65 66 69 6c 65 2e  rcdir)/Makefile.
3f30: 69 6e 20 20 24 28 74 6f 70 5f 62 75 69 6c 64 64  in  $(top_buildd
3f40: 69 72 29 2f 63 6f 6e 66 69 67 2e 73 74 61 74 75  ir)/config.statu
3f50: 73 0a 09 63 64 20 24 28 74 6f 70 5f 62 75 69 6c  s..cd $(top_buil
3f60: 64 64 69 72 29 20 5c 0a 09 20 20 26 26 20 43 4f  ddir) \..  && CO
3f70: 4e 46 49 47 5f 46 49 4c 45 53 3d 24 40 20 43 4f  NFIG_FILES=$@ CO
3f80: 4e 46 49 47 5f 48 45 41 44 45 52 53 3d 20 24 28  NFIG_HEADERS= $(
3f90: 53 48 45 4c 4c 29 20 2e 2f 63 6f 6e 66 69 67 2e  SHELL) ./config.
3fa0: 73 74 61 74 75 73 0a 0a 75 6e 69 6e 73 74 61 6c  status..uninstal
3fb0: 6c 2d 62 69 6e 61 72 69 65 73 3a 0a 09 6c 69 73  l-binaries:..lis
3fc0: 74 3d 27 24 28 6c 69 62 5f 42 49 4e 41 52 49 45  t='$(lib_BINARIE
3fd0: 53 29 27 3b 20 66 6f 72 20 70 20 69 6e 20 24 24  S)'; for p in $$
3fe0: 6c 69 73 74 3b 20 64 6f 20 5c 0a 09 20 20 72 6d  list; do \..  rm
3ff0: 20 2d 66 20 24 28 44 45 53 54 44 49 52 29 24 28   -f $(DESTDIR)$(
4000: 70 6b 67 6c 69 62 64 69 72 29 2f 24 24 70 3b 20  pkglibdir)/$$p; 
4010: 5c 0a 09 64 6f 6e 65 0a 09 6c 69 73 74 3d 27 24  \..done..list='$
4020: 28 50 4b 47 5f 54 43 4c 5f 53 4f 55 52 43 45 53  (PKG_TCL_SOURCES
4030: 29 27 3b 20 66 6f 72 20 70 20 69 6e 20 24 24 6c  )'; for p in $$l
4040: 69 73 74 3b 20 64 6f 20 5c 0a 09 20 20 70 3d 60  ist; do \..  p=`
4050: 62 61 73 65 6e 61 6d 65 20 24 24 70 60 3b 20 5c  basename $$p`; \
4060: 0a 09 20 20 72 6d 20 2d 66 20 24 28 44 45 53 54  ..  rm -f $(DEST
4070: 44 49 52 29 24 28 70 6b 67 6c 69 62 64 69 72 29  DIR)$(pkglibdir)
4080: 2f 24 24 70 3b 20 5c 0a 09 64 6f 6e 65 0a 09 6c  /$$p; \..done..l
4090: 69 73 74 3d 27 24 28 62 69 6e 5f 42 49 4e 41 52  ist='$(bin_BINAR
40a0: 49 45 53 29 27 3b 20 66 6f 72 20 70 20 69 6e 20  IES)'; for p in 
40b0: 24 24 6c 69 73 74 3b 20 64 6f 20 5c 0a 09 20 20  $$list; do \..  
40c0: 72 6d 20 2d 66 20 24 28 44 45 53 54 44 49 52 29  rm -f $(DESTDIR)
40d0: 24 28 62 69 6e 64 69 72 29 2f 24 24 70 3b 20 5c  $(bindir)/$$p; \
40e0: 0a 09 64 6f 6e 65 0a 0a 2e 50 48 4f 4e 59 3a 20  ..done...PHONY: 
40f0: 61 6c 6c 20 62 69 6e 61 72 69 65 73 20 63 6c 65  all binaries cle
4100: 61 6e 20 64 65 70 65 6e 64 20 64 69 73 74 63 6c  an depend distcl
4110: 65 61 6e 20 64 6f 63 20 69 6e 73 74 61 6c 6c 20  ean doc install 
4120: 6c 69 62 72 61 72 69 65 73 20 74 65 73 74 0a 0a  libraries test..
4130: 23 20 54 65 6c 6c 20 76 65 72 73 69 6f 6e 73 20  # Tell versions 
4140: 5b 33 2e 35 39 2c 33 2e 36 33 29 20 6f 66 20 47  [3.59,3.63) of G
4150: 4e 55 20 6d 61 6b 65 20 74 6f 20 6e 6f 74 20 65  NU make to not e
4160: 78 70 6f 72 74 20 61 6c 6c 20 76 61 72 69 61 62  xport all variab
4170: 6c 65 73 2e 0a 23 20 4f 74 68 65 72 77 69 73 65  les..# Otherwise
4180: 20 61 20 73 79 73 74 65 6d 20 6c 69 6d 69 74 20   a system limit 
4190: 28 66 6f 72 20 53 79 73 56 20 61 74 20 6c 65 61  (for SysV at lea
41a0: 73 74 29 20 6d 61 79 20 62 65 20 65 78 63 65 65  st) may be excee
41b0: 64 65 64 2e 0a 2e 4e 4f 45 58 50 4f 52 54 3a 0a  ded...NOEXPORT:.