Hex Artifact Content

Artifact 7d461fe1f73b64e9f2cacf3999ce01ec927e8d5fa4d758649604d69257f90ff6:


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 74 68 65 20 4d 61 6b 65 66 69 6c 65 20 66  s the Makefile f
0030: 6f 72 20 74 68 65 20 54 63 6c 54 4c 53 20 45 78  or the TclTLS Ex
0040: 74 65 6e 73 69 6f 6e 2e 20 54 68 65 20 66 69 6c  tension. The fil
0050: 65 0a 23 09 22 4d 61 6b 65 66 69 6c 65 2e 69 6e  e.#."Makefile.in
0060: 22 20 69 73 20 74 68 65 20 74 65 6d 70 6c 61 74  " is the templat
0070: 65 20 66 6f 72 20 61 20 4d 61 6b 65 66 69 6c 65  e for a Makefile
0080: 2e 20 54 6f 20 67 65 6e 65 72 61 74 65 20 74 68  . To generate th
0090: 65 0a 23 09 61 63 74 75 61 6c 20 4d 61 6b 65 66  e.#.actual Makef
00a0: 69 6c 65 2c 20 72 75 6e 20 22 2e 2f 63 6f 6e 66  ile, run "./conf
00b0: 69 67 75 72 65 22 2c 20 77 68 69 63 68 20 69 73  igure", which is
00c0: 20 61 20 63 6f 6e 66 69 67 75 72 61 74 69 6f 6e   a configuration
00d0: 20 73 63 72 69 70 74 0a 23 09 67 65 6e 65 72 61   script.#.genera
00e0: 74 65 64 20 62 79 20 74 68 65 20 22 61 75 74 6f  ted by the "auto
00f0: 63 6f 6e 66 22 20 70 72 6f 67 72 61 6d 20 28 63  conf" program (c
0100: 6f 6e 73 74 72 75 63 74 73 20 6c 69 6b 65 20 22  onstructs like "
0110: 40 66 6f 6f 40 22 20 77 69 6c 6c 0a 23 09 67 65  @foo@" will.#.ge
0120: 74 20 72 65 70 6c 61 63 65 64 20 69 6e 20 74 68  t replaced in th
0130: 65 20 61 63 74 75 61 6c 20 4d 61 6b 65 66 69 6c  e actual Makefil
0140: 65 2e 0a 23 0a 23 20 43 6f 70 79 72 69 67 68 74  e..#.# Copyright
0150: 20 28 63 29 20 31 39 39 39 20 53 63 72 69 70 74   (c) 1999 Script
0160: 69 63 73 20 43 6f 72 70 6f 72 61 74 69 6f 6e 2e  ics Corporation.
0170: 0a 23 20 43 6f 70 79 72 69 67 68 74 20 28 63 29  .# Copyright (c)
0180: 20 32 30 30 32 2d 32 30 30 35 20 41 63 74 69 76   2002-2005 Activ
0190: 65 53 74 61 74 65 20 43 6f 72 70 6f 72 61 74 69  eState Corporati
01a0: 6f 6e 2e 0a 23 0a 23 20 53 65 65 20 74 68 65 20  on..#.# See the 
01b0: 66 69 6c 65 20 22 6c 69 63 65 6e 73 65 2e 74 65  file "license.te
01c0: 72 6d 73 22 20 66 6f 72 20 69 6e 66 6f 72 6d 61  rms" for informa
01d0: 74 69 6f 6e 20 6f 6e 20 75 73 61 67 65 20 61 6e  tion on usage an
01e0: 64 20 72 65 64 69 73 74 72 69 62 75 74 69 6f 6e  d redistribution
01f0: 0a 23 20 6f 66 20 74 68 69 73 20 66 69 6c 65 2c  .# of this file,
0200: 20 61 6e 64 20 66 6f 72 20 61 20 44 49 53 43 4c   and for a DISCL
0210: 41 49 4d 45 52 20 4f 46 20 41 4c 4c 20 57 41 52  AIMER OF ALL WAR
0220: 52 41 4e 54 49 45 53 2e 0a 0a 23 3d 3d 3d 3d 3d  RANTIES...#=====
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 3d 3d  ================
0260: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
0270: 3d 3d 3d 0a 23 20 41 64 64 20 61 64 64 69 74 69  ===.# Add additi
0280: 6f 6e 61 6c 20 6c 69 6e 65 73 20 74 6f 20 68 61  onal lines to ha
0290: 6e 64 6c 65 20 61 6e 79 20 61 64 64 69 74 69 6f  ndle any additio
02a0: 6e 61 6c 20 41 43 5f 53 55 42 53 54 20 63 61 73  nal AC_SUBST cas
02b0: 65 73 20 74 68 61 74 0a 23 20 68 61 76 65 20 62  es that.# have b
02c0: 65 65 6e 20 61 64 64 65 64 20 69 6e 20 61 20 63  een added in a c
02d0: 75 73 74 6f 6d 69 7a 65 64 20 63 6f 6e 66 69 67  ustomized config
02e0: 75 72 65 20 73 63 72 69 70 74 2e 0a 23 3d 3d 3d  ure script..#===
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: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
0330: 3d 3d 3d 3d 3d 0a 0a 23 53 41 4d 50 4c 45 5f 4e  =====..#SAMPLE_N
0340: 45 57 5f 56 41 52 09 3d 20 40 53 41 4d 50 4c 45  EW_VAR.= @SAMPLE
0350: 5f 4e 45 57 5f 56 41 52 40 0a 0a 23 3d 3d 3d 3d  _NEW_VAR@..#====
0360: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
0370: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
0380: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
0390: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
03a0: 3d 3d 3d 3d 0a 23 20 4e 6f 74 68 69 6e 67 20 6f  ====.# Nothing o
03b0: 66 20 74 68 65 20 76 61 72 69 61 62 6c 65 73 20  f the variables 
03c0: 62 65 6c 6f 77 20 74 68 69 73 20 6c 69 6e 65 20  below this line 
03d0: 73 68 6f 75 6c 64 20 6e 65 65 64 20 74 6f 20 62  should need to b
03e0: 65 20 63 68 61 6e 67 65 64 2e 0a 23 20 50 6c 65  e changed..# Ple
03f0: 61 73 65 20 63 68 65 63 6b 20 74 68 65 20 54 41  ase check the TA
0400: 52 47 45 54 53 20 73 65 63 74 69 6f 6e 20 62 65  RGETS section be
0410: 6c 6f 77 20 74 6f 20 6d 61 6b 65 20 73 75 72 65  low to make sure
0420: 20 74 68 65 20 6d 61 6b 65 20 74 61 72 67 65 74   the make target
0430: 73 0a 23 20 61 72 65 20 63 6f 72 72 65 63 74 2e  s.# are correct.
0440: 0a 23 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 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
0480: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 0a 0a 23 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: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
04d0: 3d 3d 3d 3d 3d 0a 23 20 54 68 65 20 6e 61 6d 65  =====.# The name
04e0: 73 20 6f 66 20 74 68 65 20 73 6f 75 72 63 65 20  s of the source 
04f0: 66 69 6c 65 73 20 69 73 20 64 65 66 69 6e 65 64  files is defined
0500: 20 69 6e 20 74 68 65 20 63 6f 6e 66 69 67 75 72   in the configur
0510: 65 20 73 63 72 69 70 74 2e 0a 23 20 54 68 65 20  e script..# The 
0520: 6f 62 6a 65 63 74 20 66 69 6c 65 73 20 61 72 65  object files are
0530: 20 75 73 65 64 20 66 6f 72 20 6c 69 6e 6b 69 6e   used for linkin
0540: 67 20 69 6e 74 6f 20 74 68 65 20 66 69 6e 61 6c  g into the final
0550: 20 6c 69 62 72 61 72 79 2e 0a 23 20 54 68 69 73   library..# This
0560: 20 77 69 6c 6c 20 62 65 20 75 73 65 64 20 77 68   will be used wh
0570: 65 6e 20 61 20 64 69 73 74 20 74 61 72 67 65 74  en a dist target
0580: 20 69 73 20 61 64 64 65 64 20 74 6f 20 74 68 65   is added to the
0590: 20 4d 61 6b 65 66 69 6c 65 2e 0a 23 20 49 74 20   Makefile..# It 
05a0: 69 73 20 6e 6f 74 20 69 6d 70 6f 72 74 61 6e 74  is not important
05b0: 20 74 6f 20 73 70 65 63 69 66 79 20 74 68 65 20   to specify the 
05c0: 64 69 72 65 63 74 6f 72 79 2c 20 61 73 20 6c 6f  directory, as lo
05d0: 6e 67 20 61 73 20 69 74 20 69 73 20 74 68 65 0a  ng as it is the.
05e0: 23 20 24 28 73 72 63 64 69 72 29 20 6f 72 20 69  # $(srcdir) or i
05f0: 6e 20 74 68 65 20 67 65 6e 65 72 69 63 2c 20 77  n the generic, w
0600: 69 6e 20 6f 72 20 75 6e 69 78 20 73 75 62 64 69  in or unix subdi
0610: 72 65 63 74 6f 72 79 2e 0a 23 3d 3d 3d 3d 3d 3d  rectory..#======
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 3d 3d 3d  ================
0650: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
0660: 3d 3d 0a 0a 50 4b 47 5f 53 4f 55 52 43 45 53 09  ==..PKG_SOURCES.
0670: 3d 20 40 50 4b 47 5f 53 4f 55 52 43 45 53 40 0a  = @PKG_SOURCES@.
0680: 50 4b 47 5f 4f 42 4a 45 43 54 53 09 3d 20 40 50  PKG_OBJECTS.= @P
0690: 4b 47 5f 4f 42 4a 45 43 54 53 40 0a 0a 50 4b 47  [email protected]
06a0: 5f 53 54 55 42 5f 53 4f 55 52 43 45 53 20 3d 20  _STUB_SOURCES = 
06b0: 40 50 4b 47 5f 53 54 55 42 5f 53 4f 55 52 43 45  @PKG_STUB_SOURCE
06c0: 53 40 0a 50 4b 47 5f 53 54 55 42 5f 4f 42 4a 45  [email protected]_STUB_OBJE
06d0: 43 54 53 20 3d 20 40 50 4b 47 5f 53 54 55 42 5f  CTS = @PKG_STUB_
06e0: 4f 42 4a 45 43 54 53 40 0a 0a 23 3d 3d 3d 3d 3d  OBJECTS@..#=====
06f0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
0700: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
0710: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
0720: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
0730: 3d 3d 3d 0a 23 20 50 4b 47 5f 54 43 4c 5f 53 4f  ===.# PKG_TCL_SO
0740: 55 52 43 45 53 20 69 64 65 6e 74 69 66 69 65 73  URCES identifies
0750: 20 54 63 6c 20 72 75 6e 74 69 6d 65 20 66 69 6c   Tcl runtime fil
0760: 65 73 20 74 68 61 74 20 61 72 65 20 61 73 73 6f  es that are asso
0770: 63 69 61 74 65 64 20 77 69 74 68 0a 23 20 74 68  ciated with.# th
0780: 69 73 20 70 61 63 6b 61 67 65 20 74 68 61 74 20  is package that 
0790: 6e 65 65 64 20 74 6f 20 62 65 20 69 6e 73 74 61  need to be insta
07a0: 6c 6c 65 64 2c 20 69 66 20 61 6e 79 2e 0a 23 3d  lled, if any..#=
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 3d  ================
07f0: 3d 3d 3d 3d 3d 3d 3d 0a 0a 50 4b 47 5f 54 43 4c  =======..PKG_TCL
0800: 5f 53 4f 55 52 43 45 53 20 3d 20 40 50 4b 47 5f  _SOURCES = @PKG_
0810: 54 43 4c 5f 53 4f 55 52 43 45 53 40 0a 0a 23 3d  TCL_SOURCES@..#=
0820: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
0830: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
0840: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
0850: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
0860: 3d 3d 3d 3d 3d 3d 3d 0a 23 20 54 68 69 73 20 69  =======.# This i
0870: 73 20 61 20 6c 69 73 74 20 6f 66 20 70 75 62 6c  s a list of publ
0880: 69 63 20 68 65 61 64 65 72 20 66 69 6c 65 73 20  ic header files 
0890: 74 6f 20 62 65 20 69 6e 73 74 61 6c 6c 65 64 2c  to be installed,
08a0: 20 69 66 20 61 6e 79 2e 0a 23 3d 3d 3d 3d 3d 3d   if any..#======
08b0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
08c0: 3d 3d 3d 3d 3d 3d 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 0a 0a 50 4b 47 5f 48 45 41 44 45 52 53 09  ==..PKG_HEADERS.
0900: 3d 20 40 50 4b 47 5f 48 45 41 44 45 52 53 40 0a  = @PKG_HEADERS@.
0910: 0a 23 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  .#==============
0920: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
0930: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
0940: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
0950: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 0a 23 20 53 53 4c  ==========.# SSL
0960: 0a 23 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  .#==============
0970: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
0980: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
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 0a 0a 53 53 4c 5f  ==========..SSL_
09b0: 44 49 52 09 09 09 3d 20 40 53 53 4c 5f 44 49 52  DIR...= @SSL_DIR
09c0: 40 0a 53 53 4c 5f 4c 49 42 5f 44 49 52 20 09 09  @.SSL_LIB_DIR ..
09d0: 3d 20 40 53 53 4c 5f 4c 49 42 5f 44 49 52 40 0a  = @SSL_LIB_DIR@.
09e0: 53 53 4c 5f 49 4e 43 4c 55 44 45 5f 44 49 52 20  SSL_INCLUDE_DIR 
09f0: 09 3d 20 40 53 53 4c 5f 49 4e 43 4c 55 44 45 5f  .= @SSL_INCLUDE_
0a00: 44 49 52 40 0a 53 53 4c 5f 49 4e 43 4c 55 44 45  [email protected]_INCLUDE
0a10: 5f 44 49 52 5f 4e 41 54 49 56 45 09 3d 20 40 53  _DIR_NATIVE.= @S
0a20: 53 4c 5f 49 4e 43 4c 55 44 45 5f 44 49 52 5f 4e  SL_INCLUDE_DIR_N
0a30: 41 54 49 56 45 40 0a 53 53 4c 5f 49 4e 43 4c 55  [email protected]_INCLU
0a40: 44 45 53 20 09 09 3d 20 2d 49 24 28 53 53 4c 5f  DES ..= -I$(SSL_
0a50: 49 4e 43 4c 55 44 45 5f 44 49 52 5f 4e 41 54 49  INCLUDE_DIR_NATI
0a60: 56 45 29 0a 0a 23 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  VE)..#==========
0a70: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
0a80: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
0a90: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
0aa0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 0a 23  ==============.#
0ab0: 20 22 50 4b 47 5f 4c 49 42 5f 46 49 4c 45 22 20   "PKG_LIB_FILE" 
0ac0: 72 65 66 65 72 73 20 74 6f 20 74 68 65 20 6c 69  refers to the li
0ad0: 62 72 61 72 79 20 28 64 79 6e 61 6d 69 63 20 6f  brary (dynamic o
0ae0: 72 20 73 74 61 74 69 63 20 61 73 20 70 65 72 0a  r static as per.
0af0: 23 20 63 6f 6e 66 69 67 75 72 61 74 69 6f 6e 20  # configuration 
0b00: 6f 70 74 69 6f 6e 73 29 20 63 6f 6d 70 6f 73 65  options) compose
0b10: 64 20 6f 66 20 74 68 65 20 6e 61 6d 65 64 20 6f  d of the named o
0b20: 62 6a 65 63 74 73 2e 0a 23 3d 3d 3d 3d 3d 3d 3d  bjects..#=======
0b30: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
0b40: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
0b50: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
0b60: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
0b70: 3d 0a 0a 50 4b 47 5f 4c 49 42 5f 46 49 4c 45 09  =..PKG_LIB_FILE.
0b80: 3d 20 40 50 4b 47 5f 4c 49 42 5f 46 49 4c 45 40  = @PKG_LIB_FILE@
0b90: 0a 50 4b 47 5f 4c 49 42 5f 46 49 4c 45 38 09 3d  .PKG_LIB_FILE8.=
0ba0: 20 40 50 4b 47 5f 4c 49 42 5f 46 49 4c 45 38 40   @PKG_LIB_FILE8@
0bb0: 0a 50 4b 47 5f 4c 49 42 5f 46 49 4c 45 39 09 3d  .PKG_LIB_FILE9.=
0bc0: 20 40 50 4b 47 5f 4c 49 42 5f 46 49 4c 45 39 40   @PKG_LIB_FILE9@
0bd0: 0a 50 4b 47 5f 53 54 55 42 5f 4c 49 42 5f 46 49  .PKG_STUB_LIB_FI
0be0: 4c 45 20 3d 20 40 50 4b 47 5f 53 54 55 42 5f 4c  LE = @PKG_STUB_L
0bf0: 49 42 5f 46 49 4c 45 40 0a 0a 6c 69 62 5f 42 49  [email protected]_BI
0c00: 4e 41 52 49 45 53 09 3d 20 24 28 50 4b 47 5f 4c  NARIES.= $(PKG_L
0c10: 49 42 5f 46 49 4c 45 29 0a 42 49 4e 41 52 49 45  IB_FILE).BINARIE
0c20: 53 09 3d 20 24 28 6c 69 62 5f 42 49 4e 41 52 49  S.= $(lib_BINARI
0c30: 45 53 29 0a 0a 53 48 45 4c 4c 09 09 3d 20 40 53  ES)..SHELL..= @S
0c40: 48 45 4c 4c 40 0a 0a 73 72 63 64 69 72 09 09 3d  [email protected]..=
0c50: 20 40 73 72 63 64 69 72 40 0a 70 72 65 66 69 78   @[email protected]
0c60: 09 09 3d 20 40 70 72 65 66 69 78 40 0a 65 78 65  ..= @[email protected]
0c70: 63 5f 70 72 65 66 69 78 09 3d 20 40 65 78 65 63  c_prefix.= @exec
0c80: 5f 70 72 65 66 69 78 40 0a 0a 62 69 6e 64 69 72  [email protected]
0c90: 09 09 3d 20 40 62 69 6e 64 69 72 40 0a 6c 69 62  ..= @[email protected]
0ca0: 64 69 72 09 09 3d 20 40 6c 69 62 64 69 72 40 0a  dir..= @libdir@.
0cb0: 69 6e 63 6c 75 64 65 64 69 72 09 3d 20 40 69 6e  includedir.= @in
0cc0: 63 6c 75 64 65 64 69 72 40 0a 64 61 74 61 72 6f  [email protected]
0cd0: 6f 74 64 69 72 09 3d 20 40 64 61 74 61 72 6f 6f  otdir.= @dataroo
0ce0: 74 64 69 72 40 0a 72 75 6e 73 74 61 74 65 64 69  [email protected]
0cf0: 72 09 3d 20 40 72 75 6e 73 74 61 74 65 64 69 72  r.= @runstatedir
0d00: 40 0a 64 61 74 61 64 69 72 09 09 3d 20 40 64 61  @.datadir..= @da
0d10: 74 61 64 69 72 40 0a 6d 61 6e 64 69 72 09 09 3d  [email protected]..=
0d20: 20 40 6d 61 6e 64 69 72 40 0a 0a 44 45 53 54 44   @[email protected]
0d30: 49 52 09 09 3d 0a 0a 50 4b 47 5f 44 49 52 09 09  IR..=..PKG_DIR..
0d40: 3d 20 24 28 50 41 43 4b 41 47 45 5f 4e 41 4d 45  = $(PACKAGE_NAME
0d50: 29 24 28 50 41 43 4b 41 47 45 5f 56 45 52 53 49  )$(PACKAGE_VERSI
0d60: 4f 4e 29 0a 70 6b 67 64 61 74 61 64 69 72 09 3d  ON).pkgdatadir.=
0d70: 20 24 28 64 61 74 61 64 69 72 29 2f 24 28 50 4b   $(datadir)/$(PK
0d80: 47 5f 44 49 52 29 0a 70 6b 67 6c 69 62 64 69 72  G_DIR).pkglibdir
0d90: 09 3d 20 24 28 6c 69 62 64 69 72 29 2f 24 28 50  .= $(libdir)/$(P
0da0: 4b 47 5f 44 49 52 29 0a 70 6b 67 69 6e 63 6c 75  KG_DIR).pkginclu
0db0: 64 65 64 69 72 09 3d 20 24 28 69 6e 63 6c 75 64  dedir.= $(includ
0dc0: 65 64 69 72 29 2f 24 28 50 4b 47 5f 44 49 52 29  edir)/$(PKG_DIR)
0dd0: 0a 0a 74 6f 70 5f 62 75 69 6c 64 64 69 72 09 3d  ..top_builddir.=
0de0: 20 40 61 62 73 5f 74 6f 70 5f 62 75 69 6c 64 64   @abs_top_buildd
0df0: 69 72 40 0a 0a 49 4e 53 54 41 4c 4c 5f 4f 50 54  [email protected]_OPT
0e00: 49 4f 4e 53 09 3d 0a 49 4e 53 54 41 4c 4c 09 09  IONS.=.INSTALL..
0e10: 3d 20 40 49 4e 53 54 41 4c 4c 40 20 24 28 49 4e  = @INSTALL@ $(IN
0e20: 53 54 41 4c 4c 5f 4f 50 54 49 4f 4e 53 29 0a 49  STALL_OPTIONS).I
0e30: 4e 53 54 41 4c 4c 5f 44 41 54 41 5f 44 49 52 20  NSTALL_DATA_DIR 
0e40: 3d 20 40 49 4e 53 54 41 4c 4c 5f 44 41 54 41 5f  = @INSTALL_DATA_
0e50: 44 49 52 40 0a 49 4e 53 54 41 4c 4c 5f 44 41 54  [email protected]_DAT
0e60: 41 09 3d 20 40 49 4e 53 54 41 4c 4c 5f 44 41 54  A.= @INSTALL_DAT
0e70: 41 40 0a 49 4e 53 54 41 4c 4c 5f 50 52 4f 47 52  [email protected]_PROGR
0e80: 41 4d 09 3d 20 40 49 4e 53 54 41 4c 4c 5f 50 52  AM.= @INSTALL_PR
0e90: 4f 47 52 41 4d 40 0a 49 4e 53 54 41 4c 4c 5f 53  [email protected]_S
0ea0: 43 52 49 50 54 09 3d 20 40 49 4e 53 54 41 4c 4c  CRIPT.= @INSTALL
0eb0: 5f 53 43 52 49 50 54 40 0a 49 4e 53 54 41 4c 4c  [email protected]
0ec0: 5f 4c 49 42 52 41 52 59 09 3d 20 40 49 4e 53 54  _LIBRARY.= @INST
0ed0: 41 4c 4c 5f 4c 49 42 52 41 52 59 40 0a 0a 50 41  [email protected]
0ee0: 43 4b 41 47 45 5f 4e 41 4d 45 09 3d 20 40 50 41  CKAGE_NAME.= @PA
0ef0: 43 4b 41 47 45 5f 4e 41 4d 45 40 0a 50 41 43 4b  [email protected]
0f00: 41 47 45 5f 56 45 52 53 49 4f 4e 09 3d 20 40 50  AGE_VERSION.= @P
0f10: 41 43 4b 41 47 45 5f 56 45 52 53 49 4f 4e 40 0a  ACKAGE_VERSION@.
0f20: 43 43 09 09 3d 20 40 43 43 40 0a 43 43 4c 44 09  CC..= @[email protected].
0f30: 09 3d 20 40 43 43 4c 44 40 0a 43 46 4c 41 47 53  .= @[email protected]
0f40: 5f 44 45 46 41 55 4c 54 09 3d 20 40 43 46 4c 41  _DEFAULT.= @CFLA
0f50: 47 53 5f 44 45 46 41 55 4c 54 40 0a 43 46 4c 41  [email protected]
0f60: 47 53 5f 57 41 52 4e 49 4e 47 09 3d 20 40 43 46  GS_WARNING.= @CF
0f70: 4c 41 47 53 5f 57 41 52 4e 49 4e 47 40 0a 45 58  [email protected]
0f80: 45 45 58 54 09 09 3d 20 40 45 58 45 45 58 54 40  EEXT..= @EXEEXT@
0f90: 0a 4c 44 46 4c 41 47 53 5f 44 45 46 41 55 4c 54  .LDFLAGS_DEFAULT
0fa0: 09 3d 20 40 4c 44 46 4c 41 47 53 5f 44 45 46 41  .= @LDFLAGS_DEFA
0fb0: 55 4c 54 40 0a 4d 41 4b 45 5f 4c 49 42 09 3d 20  [email protected]_LIB.= 
0fc0: 40 4d 41 4b 45 5f 4c 49 42 40 0a 4d 41 4b 45 5f  @[email protected]_
0fd0: 53 54 55 42 5f 4c 49 42 09 3d 20 40 4d 41 4b 45  STUB_LIB.= @MAKE
0fe0: 5f 53 54 55 42 5f 4c 49 42 40 0a 4f 42 4a 45 58  [email protected]
0ff0: 54 09 09 3d 20 40 4f 42 4a 45 58 54 40 0a 52 41  T..= @[email protected]
1000: 4e 4c 49 42 09 09 3d 20 40 52 41 4e 4c 49 42 40  NLIB..= @RANLIB@
1010: 0a 52 41 4e 4c 49 42 5f 53 54 55 42 09 3d 20 40  .RANLIB_STUB.= @
1020: 52 41 4e 4c 49 42 5f 53 54 55 42 40 0a 53 48 4c  [email protected]
1030: 49 42 5f 43 46 4c 41 47 53 09 3d 20 40 53 48 4c  IB_CFLAGS.= @SHL
1040: 49 42 5f 43 46 4c 41 47 53 40 0a 53 48 4c 49 42  [email protected]
1050: 5f 4c 44 09 3d 20 40 53 48 4c 49 42 5f 4c 44 40  _LD.= @SHLIB_LD@
1060: 0a 53 48 4c 49 42 5f 4c 44 5f 4c 49 42 53 09 3d  .SHLIB_LD_LIBS.=
1070: 20 40 53 48 4c 49 42 5f 4c 44 5f 4c 49 42 53 40   @SHLIB_LD_LIBS@
1080: 0a 53 54 4c 49 42 5f 4c 44 09 3d 20 40 53 54 4c  .STLIB_LD.= @STL
1090: 49 42 5f 4c 44 40 0a 23 54 43 4c 5f 44 45 46 53  IB_LD@.#TCL_DEFS
10a0: 09 3d 20 40 54 43 4c 5f 44 45 46 53 40 0a 54 43  .= @[email protected]
10b0: 4c 5f 42 49 4e 5f 44 49 52 09 3d 20 40 54 43 4c  L_BIN_DIR.= @TCL
10c0: 5f 42 49 4e 5f 44 49 52 40 0a 54 43 4c 5f 53 52  [email protected]_SR
10d0: 43 5f 44 49 52 09 3d 20 40 54 43 4c 5f 53 52 43  C_DIR.= @TCL_SRC
10e0: 5f 44 49 52 40 0a 23 54 4b 5f 42 49 4e 5f 44 49  _DIR@.#TK_BIN_DI
10f0: 52 09 3d 20 40 54 4b 5f 42 49 4e 5f 44 49 52 40  R.= @TK_BIN_DIR@
1100: 0a 23 54 4b 5f 53 52 43 5f 44 49 52 09 3d 20 40  .#TK_SRC_DIR.= @
1110: 54 4b 5f 53 52 43 5f 44 49 52 40 0a 0a 23 20 4e  TK_SRC_DIR@..# N
1120: 6f 74 20 75 73 65 64 2c 20 62 75 74 20 72 65 74  ot used, but ret
1130: 61 69 6e 65 64 20 66 6f 72 20 72 65 66 65 72 65  ained for refere
1140: 6e 63 65 20 6f 66 20 77 68 61 74 20 6c 69 62 73  nce of what libs
1150: 20 54 63 6c 20 72 65 71 75 69 72 65 64 0a 23 54   Tcl required.#T
1160: 43 4c 5f 4c 49 42 53 09 3d 20 40 54 43 4c 5f 4c  CL_LIBS.= @TCL_L
1170: 49 42 53 40 0a 0a 23 3d 3d 3d 3d 3d 3d 3d 3d 3d  IBS@..#=========
1180: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
1190: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
11a0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
11b0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 0a  ===============.
11c0: 23 20 54 43 4c 4c 49 42 50 41 54 48 20 73 65 65  # TCLLIBPATH see
11d0: 64 73 20 74 68 65 20 61 75 74 6f 5f 70 61 74 68  ds the auto_path
11e0: 20 69 6e 20 54 63 6c 27 73 20 69 6e 69 74 2e 74   in Tcl's init.t
11f0: 63 6c 20 73 6f 20 77 65 20 63 61 6e 20 74 65 73  cl so we can tes
1200: 74 20 6f 75 72 0a 23 20 70 61 63 6b 61 67 65 20  t our.# package 
1210: 77 69 74 68 6f 75 74 20 69 6e 73 74 61 6c 6c 69  without installi
1220: 6e 67 2e 20 20 54 68 65 20 6f 74 68 65 72 20 65  ng.  The other e
1230: 6e 76 69 72 6f 6e 6d 65 6e 74 20 76 61 72 69 61  nvironment varia
1240: 62 6c 65 73 20 61 6c 6c 6f 77 20 75 73 0a 23 20  bles allow us.# 
1250: 74 6f 20 74 65 73 74 20 61 67 61 69 6e 73 74 20  to test against 
1260: 61 6e 20 75 6e 69 6e 73 74 61 6c 6c 65 64 20 54  an uninstalled T
1270: 63 6c 2e 20 20 41 64 64 20 73 70 65 63 69 61 6c  cl.  Add special
1280: 20 65 6e 76 20 76 61 72 73 20 74 68 61 74 20 79   env vars that y
1290: 6f 75 0a 23 20 72 65 71 75 69 72 65 20 66 6f 72  ou.# require for
12a0: 20 74 65 73 74 69 6e 67 20 68 65 72 65 20 28 6c   testing here (l
12b0: 69 6b 65 20 54 43 4c 58 5f 4c 49 42 52 41 52 59  ike TCLX_LIBRARY
12c0: 29 2e 0a 23 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 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
12f0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
1300: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 0a 0a 45 58  ============..EX
1310: 54 52 41 5f 50 41 54 48 09 3d 20 24 28 74 6f 70  TRA_PATH.= $(top
1320: 5f 62 75 69 6c 64 64 69 72 29 3a 24 28 54 43 4c  _builddir):$(TCL
1330: 5f 42 49 4e 5f 44 49 52 29 0a 23 45 58 54 52 41  _BIN_DIR).#EXTRA
1340: 5f 50 41 54 48 09 3d 20 24 28 74 6f 70 5f 62 75  _PATH.= $(top_bu
1350: 69 6c 64 64 69 72 29 3a 24 28 54 43 4c 5f 42 49  ilddir):$(TCL_BI
1360: 4e 5f 44 49 52 29 3a 24 28 54 4b 5f 42 49 4e 5f  N_DIR):$(TK_BIN_
1370: 44 49 52 29 0a 54 43 4c 4c 49 42 50 41 54 48 09  DIR).TCLLIBPATH.
1380: 3d 20 24 28 74 6f 70 5f 62 75 69 6c 64 64 69 72  = $(top_builddir
1390: 29 0a 54 43 4c 53 48 5f 45 4e 56 09 3d 20 54 43  ).TCLSH_ENV.= TC
13a0: 4c 5f 4c 49 42 52 41 52 59 3d 60 40 43 59 47 50  L_LIBRARY=`@CYGP
13b0: 41 54 48 40 20 24 28 54 43 4c 5f 53 52 43 5f 44  ATH@ $(TCL_SRC_D
13c0: 49 52 29 2f 6c 69 62 72 61 72 79 60 0a 50 4b 47  IR)/library`.PKG
13d0: 5f 45 4e 56 09 09 3d 20 40 4c 44 5f 4c 49 42 52  _ENV..= @LD_LIBR
13e0: 41 52 59 5f 50 41 54 48 5f 56 41 52 40 3d 22 24  ARY_PATH_VAR@="$
13f0: 28 45 58 54 52 41 5f 50 41 54 48 29 3a 24 28 40  (EXTRA_PATH):$(@
1400: 4c 44 5f 4c 49 42 52 41 52 59 5f 50 41 54 48 5f  LD_LIBRARY_PATH_
1410: 56 41 52 40 29 22 20 5c 0a 09 09 20 20 50 41 54  VAR@)" \...  PAT
1420: 48 3d 22 24 28 45 58 54 52 41 5f 50 41 54 48 29  H="$(EXTRA_PATH)
1430: 3a 24 28 50 41 54 48 29 22 20 5c 0a 09 09 20 20  :$(PATH)" \...  
1440: 54 43 4c 4c 49 42 50 41 54 48 3d 22 24 28 54 43  TCLLIBPATH="$(TC
1450: 4c 4c 49 42 50 41 54 48 29 22 0a 0a 54 43 4c 53  LLIBPATH)"..TCLS
1460: 48 5f 50 52 4f 47 09 3d 20 40 54 43 4c 53 48 5f  H_PROG.= @TCLSH_
1470: 50 52 4f 47 40 0a 54 43 4c 53 48 09 09 3d 20 24  [email protected]..= $
1480: 28 54 43 4c 53 48 5f 45 4e 56 29 20 24 28 50 4b  (TCLSH_ENV) $(PK
1490: 47 5f 45 4e 56 29 20 24 28 54 43 4c 53 48 5f 50  G_ENV) $(TCLSH_P
14a0: 52 4f 47 29 0a 0a 23 57 49 53 48 5f 45 4e 56 09  ROG)..#WISH_ENV.
14b0: 3d 20 54 4b 5f 4c 49 42 52 41 52 59 3d 60 40 43  = TK_LIBRARY=`@C
14c0: 59 47 50 41 54 48 40 20 24 28 54 4b 5f 53 52 43  YGPATH@ $(TK_SRC
14d0: 5f 44 49 52 29 2f 6c 69 62 72 61 72 79 60 0a 23  _DIR)/library`.#
14e0: 57 49 53 48 5f 50 52 4f 47 09 3d 20 40 57 49 53  WISH_PROG.= @WIS
14f0: 48 5f 50 52 4f 47 40 0a 23 57 49 53 48 09 09 3d  H_PROG@.#WISH..=
1500: 20 24 28 54 43 4c 53 48 5f 45 4e 56 29 20 24 28   $(TCLSH_ENV) $(
1510: 57 49 53 48 5f 45 4e 56 29 20 24 28 50 4b 47 5f  WISH_ENV) $(PKG_
1520: 45 4e 56 29 20 24 28 57 49 53 48 5f 50 52 4f 47  ENV) $(WISH_PROG
1530: 29 0a 0a 53 48 41 52 45 44 5f 42 55 49 4c 44 09  )..SHARED_BUILD.
1540: 3d 20 40 53 48 41 52 45 44 5f 42 55 49 4c 44 40  = @SHARED_BUILD@
1550: 0a 0a 49 4e 43 4c 55 44 45 53 09 3d 20 40 50 4b  ..INCLUDES.= @PK
1560: 47 5f 49 4e 43 4c 55 44 45 53 40 20 40 54 43 4c  G_INCLUDES@ @TCL
1570: 5f 49 4e 43 4c 55 44 45 53 40 20 24 28 53 53 4c  _INCLUDES@ $(SSL
1580: 5f 49 4e 43 4c 55 44 45 53 29 20 2d 49 2e 0a 23  _INCLUDES) -I..#
1590: 49 4e 43 4c 55 44 45 53 09 3d 20 40 50 4b 47 5f  INCLUDES.= @PKG_
15a0: 49 4e 43 4c 55 44 45 53 40 20 40 54 43 4c 5f 49  INCLUDES@ @TCL_I
15b0: 4e 43 4c 55 44 45 53 40 20 40 54 4b 5f 49 4e 43  NCLUDES@ @TK_INC
15c0: 4c 55 44 45 53 40 20 40 54 4b 5f 58 49 4e 43 4c  LUDES@ @TK_XINCL
15d0: 55 44 45 53 40 0a 0a 50 4b 47 5f 43 46 4c 41 47  [email protected]_CFLAG
15e0: 53 09 3d 20 40 50 4b 47 5f 43 46 4c 41 47 53 40  S.= @PKG_CFLAGS@
15f0: 0a 0a 23 20 54 43 4c 5f 44 45 46 53 20 69 73 20  ..# TCL_DEFS is 
1600: 6e 6f 74 20 73 74 72 69 63 74 6c 79 20 6e 65 65  not strictly nee
1610: 64 20 68 65 72 65 2c 20 62 75 74 20 69 66 20 79  d here, but if y
1620: 6f 75 20 72 65 6d 6f 76 65 20 69 74 2c 20 74 68  ou remove it, th
1630: 65 6e 20 79 6f 75 0a 23 20 6d 75 73 74 20 6d 61  en you.# must ma
1640: 6b 65 20 73 75 72 65 20 74 68 61 74 20 63 6f 6e  ke sure that con
1650: 66 69 67 75 72 65 2e 61 63 20 63 68 65 63 6b 73  figure.ac checks
1660: 20 66 6f 72 20 74 68 65 20 6e 65 63 65 73 73 61   for the necessa
1670: 72 79 20 63 6f 6d 70 6f 6e 65 6e 74 73 0a 23 20  ry components.# 
1680: 74 68 61 74 20 79 6f 75 72 20 6c 69 62 72 61 72  that your librar
1690: 79 20 6d 61 79 20 75 73 65 2e 20 20 54 43 4c 5f  y may use.  TCL_
16a0: 44 45 46 53 20 63 61 6e 20 61 63 74 75 61 6c 6c  DEFS can actuall
16b0: 79 20 62 65 20 61 20 70 72 6f 62 6c 65 6d 20 69  y be a problem i
16c0: 66 0a 23 20 79 6f 75 20 64 6f 20 6e 6f 74 20 63  f.# you do not c
16d0: 6f 6d 70 69 6c 65 20 77 69 74 68 20 61 20 73 69  ompile with a si
16e0: 6d 69 6c 61 72 20 6d 61 63 68 69 6e 65 20 73 65  milar machine se
16f0: 74 75 70 20 61 73 20 74 68 65 20 54 63 6c 20 63  tup as the Tcl c
1700: 6f 72 65 20 77 61 73 0a 23 20 63 6f 6d 70 69 6c  ore was.# compil
1710: 65 64 20 77 69 74 68 2e 0a 23 44 45 46 53 09 09  ed with..#DEFS..
1720: 3d 20 24 28 54 43 4c 5f 44 45 46 53 29 20 40 44  = $(TCL_DEFS) @D
1730: 45 46 53 40 20 24 28 50 4b 47 5f 43 46 4c 41 47  EFS@ $(PKG_CFLAG
1740: 53 29 0a 44 45 46 53 09 09 3d 20 40 44 45 46 53  S).DEFS..= @DEFS
1750: 40 20 24 28 50 4b 47 5f 43 46 4c 41 47 53 29 0a  @ $(PKG_CFLAGS).
1760: 0a 23 20 4d 6f 76 65 20 70 6b 67 49 6e 64 65 78  .# Move pkgIndex
1770: 2e 74 63 6c 20 74 6f 20 27 42 49 4e 41 52 49 45  .tcl to 'BINARIE
1780: 53 27 20 76 61 72 20 69 66 20 69 74 20 69 73 20  S' var if it is 
1790: 67 65 6e 65 72 61 74 65 64 20 69 6e 20 74 68 65  generated in the
17a0: 20 4d 61 6b 65 66 69 6c 65 0a 43 4f 4e 46 49 47   Makefile.CONFIG
17b0: 5f 43 4c 45 41 4e 5f 46 49 4c 45 53 20 3d 20 4d  _CLEAN_FILES = M
17c0: 61 6b 65 66 69 6c 65 20 70 6b 67 49 6e 64 65 78  akefile pkgIndex
17d0: 2e 74 63 6c 0a 43 4c 45 41 4e 46 49 4c 45 53 09  .tcl.CLEANFILES.
17e0: 3d 20 40 43 4c 45 41 4e 46 49 4c 45 53 40 0a 0a  = @CLEANFILES@..
17f0: 43 50 50 46 4c 41 47 53 09 3d 20 40 43 50 50 46  CPPFLAGS.= @CPPF
1800: 4c 41 47 53 40 0a 4c 49 42 53 09 09 3d 20 40 50  [email protected]..= @P
1810: 4b 47 5f 4c 49 42 53 40 20 40 4c 49 42 53 40 0a  KG_LIBS@ @LIBS@.
1820: 41 52 09 09 3d 20 40 41 52 40 0a 43 46 4c 41 47  AR..= @[email protected]
1830: 53 09 09 3d 20 40 43 46 4c 41 47 53 40 0a 4c 44  S..= @[email protected]
1840: 46 4c 41 47 53 09 09 3d 20 40 4c 44 46 4c 41 47  FLAGS..= @LDFLAG
1850: 53 40 0a 4c 44 46 4c 41 47 53 5f 44 45 46 41 55  [email protected]_DEFAU
1860: 4c 54 09 09 09 3d 20 40 4c 44 46 4c 41 47 53 5f  LT...= @LDFLAGS_
1870: 44 45 46 41 55 4c 54 40 0a 43 4f 4d 50 49 4c 45  [email protected]
1880: 09 09 3d 20 24 28 43 43 29 20 24 28 44 45 46 53  ..= $(CC) $(DEFS
1890: 29 20 24 28 49 4e 43 4c 55 44 45 53 29 20 24 28  ) $(INCLUDES) $(
18a0: 41 4d 5f 43 50 50 46 4c 41 47 53 29 20 24 28 43  AM_CPPFLAGS) $(C
18b0: 50 50 46 4c 41 47 53 29 20 24 28 41 4d 5f 43 46  PPFLAGS) $(AM_CF
18c0: 4c 41 47 53 29 20 5c 0a 09 09 09 20 20 24 28 43  LAGS) \....  $(C
18d0: 46 4c 41 47 53 5f 44 45 46 41 55 4c 54 29 20 24  FLAGS_DEFAULT) $
18e0: 28 43 46 4c 41 47 53 5f 57 41 52 4e 49 4e 47 29  (CFLAGS_WARNING)
18f0: 20 24 28 53 48 4c 49 42 5f 43 46 4c 41 47 53 29   $(SHLIB_CFLAGS)
1900: 20 24 28 43 46 4c 41 47 53 29 0a 0a 47 44 42 09   $(CFLAGS)..GDB.
1910: 09 3d 20 67 64 62 0a 56 41 4c 47 52 49 4e 44 09  .= gdb.VALGRIND.
1920: 3d 20 76 61 6c 67 72 69 6e 64 0a 56 41 4c 47 52  = valgrind.VALGR
1930: 49 4e 44 41 52 47 53 09 3d 20 2d 2d 74 6f 6f 6c  INDARGS.= --tool
1940: 3d 6d 65 6d 63 68 65 63 6b 20 2d 2d 6e 75 6d 2d  =memcheck --num-
1950: 63 61 6c 6c 65 72 73 3d 38 20 2d 2d 6c 65 61 6b  callers=8 --leak
1960: 2d 72 65 73 6f 6c 75 74 69 6f 6e 3d 68 69 67 68  -resolution=high
1970: 20 5c 0a 09 09 20 20 2d 2d 6c 65 61 6b 2d 63 68   \...  --leak-ch
1980: 65 63 6b 3d 79 65 73 20 2d 2d 73 68 6f 77 2d 72  eck=yes --show-r
1990: 65 61 63 68 61 62 6c 65 3d 79 65 73 20 2d 76 0a  eachable=yes -v.
19a0: 0a 2e 53 55 46 46 49 58 45 53 3a 20 2e 63 20 2e  ..SUFFIXES: .c .
19b0: 24 28 4f 42 4a 45 58 54 29 0a 0a 23 3d 3d 3d 3d  $(OBJEXT)..#====
19c0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
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 0a 23 20 53 74 61 72 74 20 6f 66 20  ====.# Start of 
1a10: 75 73 65 72 2d 64 65 66 69 6e 61 62 6c 65 20 54  user-definable T
1a20: 41 52 47 45 54 53 20 73 65 63 74 69 6f 6e 0a 23  ARGETS section.#
1a30: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
1a40: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
1a50: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
1a60: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
1a70: 3d 3d 3d 3d 3d 3d 3d 3d 0a 0a 23 3d 3d 3d 3d 3d  ========..#=====
1a80: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
1a90: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
1aa0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
1ab0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
1ac0: 3d 3d 3d 0a 23 20 54 45 41 20 54 41 52 47 45 54  ===.# TEA TARGET
1ad0: 53 2e 20 20 50 6c 65 61 73 65 20 6e 6f 74 65 20  S.  Please note 
1ae0: 74 68 61 74 20 74 68 65 20 22 6c 69 62 72 61 72  that the "librar
1af0: 69 65 73 3a 22 20 74 61 72 67 65 74 20 72 65 66  ies:" target ref
1b00: 65 72 73 20 74 6f 20 70 6c 61 74 66 6f 72 6d 0a  ers to platform.
1b10: 23 20 69 6e 64 65 70 65 6e 64 65 6e 74 20 66 69  # independent fi
1b20: 6c 65 73 2c 20 61 6e 64 20 74 68 65 20 22 62 69  les, and the "bi
1b30: 6e 61 72 69 65 73 3a 22 20 74 61 72 67 65 74 20  naries:" target 
1b40: 69 6e 63 6c 75 64 65 73 20 65 78 65 63 75 74 61  includes executa
1b50: 62 6c 65 20 70 72 6f 67 72 61 6d 73 20 61 6e 64  ble programs and
1b60: 0a 23 20 70 6c 61 74 66 6f 72 6d 2d 64 65 70 65  .# platform-depe
1b70: 6e 64 65 6e 74 20 6c 69 62 72 61 72 69 65 73 2e  ndent libraries.
1b80: 20 20 4d 6f 64 69 66 79 20 74 68 65 73 65 20 74    Modify these t
1b90: 61 72 67 65 74 73 20 73 6f 20 74 68 61 74 20 74  argets so that t
1ba0: 68 65 79 20 69 6e 73 74 61 6c 6c 0a 23 20 74 68  hey install.# th
1bb0: 65 20 76 61 72 69 6f 75 73 20 70 69 65 63 65 73  e various pieces
1bc0: 20 6f 66 20 79 6f 75 72 20 70 61 63 6b 61 67 65   of your package
1bd0: 2e 20 20 54 68 65 20 6d 61 6b 65 20 61 6e 64 20  .  The make and 
1be0: 69 6e 73 74 61 6c 6c 20 72 75 6c 65 73 0a 23 20  install rules.# 
1bf0: 66 6f 72 20 74 68 65 20 42 49 4e 41 52 49 45 53  for the BINARIES
1c00: 20 74 68 61 74 20 79 6f 75 20 73 70 65 63 69 66   that you specif
1c10: 69 65 64 20 61 62 6f 76 65 20 68 61 76 65 20 61  ied above have a
1c20: 6c 72 65 61 64 79 20 62 65 65 6e 20 64 6f 6e 65  lready been done
1c30: 2e 0a 23 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ..#=============
1c40: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
1c50: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
1c60: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
1c70: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 0a 0a 61 6c 6c  ===========..all
1c80: 3a 20 62 69 6e 61 72 69 65 73 20 6c 69 62 72 61  : binaries libra
1c90: 72 69 65 73 20 64 6f 63 0a 0a 23 3d 3d 3d 3d 3d  ries doc..#=====
1ca0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
1cb0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
1cc0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
1cd0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
1ce0: 3d 3d 3d 0a 23 20 54 68 65 20 62 69 6e 61 72 69  ===.# The binari
1cf0: 65 73 20 74 61 72 67 65 74 20 62 75 69 6c 64 73  es target builds
1d00: 20 65 78 65 63 75 74 61 62 6c 65 20 70 72 6f 67   executable prog
1d10: 72 61 6d 73 2c 20 57 69 6e 64 6f 77 73 20 2e 64  rams, Windows .d
1d20: 6c 6c 27 73 2c 20 75 6e 69 78 0a 23 20 73 68 61  ll's, unix.# sha
1d30: 72 65 64 2f 73 74 61 74 69 63 20 6c 69 62 72 61  red/static libra
1d40: 72 69 65 73 2c 20 61 6e 64 20 61 6e 79 20 6f 74  ries, and any ot
1d50: 68 65 72 20 70 6c 61 74 66 6f 72 6d 2d 64 65 70  her platform-dep
1d60: 65 6e 64 65 6e 74 20 66 69 6c 65 73 2e 0a 23 20  endent files..# 
1d70: 54 68 65 20 6c 69 73 74 20 6f 66 20 74 61 72 67  The list of targ
1d80: 65 74 73 20 74 6f 20 62 75 69 6c 64 20 66 6f 72  ets to build for
1d90: 20 22 62 69 6e 61 72 69 65 73 3a 22 20 69 73 20   "binaries:" is 
1da0: 73 70 65 63 69 66 69 65 64 20 61 74 20 74 68 65  specified at the
1db0: 20 74 6f 70 0a 23 20 6f 66 20 74 68 65 20 4d 61   top.# of the Ma
1dc0: 6b 65 66 69 6c 65 2c 20 69 6e 20 74 68 65 20 22  kefile, in the "
1dd0: 42 49 4e 41 52 49 45 53 22 20 76 61 72 69 61 62  BINARIES" variab
1de0: 6c 65 2e 0a 23 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  le..#===========
1df0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
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 0a 0a 62  =============..b
1e30: 69 6e 61 72 69 65 73 3a 20 24 28 42 49 4e 41 52  inaries: $(BINAR
1e40: 49 45 53 29 0a 0a 6c 69 62 72 61 72 69 65 73 3a  IES)..libraries:
1e50: 0a 0a 23 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ..#=============
1e60: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
1e70: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
1e80: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
1e90: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 0a 23 20 59 6f  ===========.# Yo
1ea0: 75 72 20 64 6f 63 20 74 61 72 67 65 74 20 73 68  ur doc target sh
1eb0: 6f 75 6c 64 20 64 69 66 66 65 72 65 6e 74 69 61  ould differentia
1ec0: 74 65 20 66 72 6f 6d 20 64 6f 63 20 62 75 69 6c  te from doc buil
1ed0: 64 73 20 28 62 79 20 74 68 65 20 64 65 76 65 6c  ds (by the devel
1ee0: 6f 70 65 72 29 0a 23 20 61 6e 64 20 64 6f 63 20  oper).# and doc 
1ef0: 69 6e 73 74 61 6c 6c 73 20 28 73 65 65 20 69 6e  installs (see in
1f00: 73 74 61 6c 6c 2d 64 6f 63 29 2c 20 77 68 69 63  stall-doc), whic
1f10: 68 20 6a 75 73 74 20 69 6e 73 74 61 6c 6c 20 74  h just install t
1f20: 68 65 20 64 6f 63 73 20 6f 6e 20 74 68 65 0a 23  he docs on the.#
1f30: 20 65 6e 64 20 75 73 65 72 20 6d 61 63 68 69 6e   end user machin
1f40: 65 20 77 68 65 6e 20 62 75 69 6c 64 69 6e 67 20  e when building 
1f50: 66 72 6f 6d 20 73 6f 75 72 63 65 2e 0a 23 3d 3d  from source..#==
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 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
1f90: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
1fa0: 3d 3d 3d 3d 3d 3d 0a 0a 64 6f 63 3a 0a 09 40 65  ======..doc:..@e
1fb0: 63 68 6f 20 22 49 66 20 79 6f 75 20 68 61 76 65  cho "If you have
1fc0: 20 64 6f 63 75 6d 65 6e 74 61 74 69 6f 6e 20 74   documentation t
1fd0: 6f 20 63 72 65 61 74 65 2c 20 70 6c 61 63 65 20  o create, place 
1fe0: 74 68 65 20 63 6f 6d 6d 61 6e 64 73 20 74 6f 22  the commands to"
1ff0: 0a 09 40 65 63 68 6f 20 22 62 75 69 6c 64 20 74  ..@echo "build t
2000: 68 65 20 64 6f 63 73 20 69 6e 20 74 68 65 20 27  he docs in the '
2010: 64 6f 63 3a 27 20 74 61 72 67 65 74 2e 20 20 46  doc:' target.  F
2020: 6f 72 20 65 78 61 6d 70 6c 65 3a 22 0a 09 40 65  or example:"..@e
2030: 63 68 6f 20 22 20 20 20 20 20 20 20 20 78 6d 6c  cho "        xml
2040: 32 6e 72 6f 66 66 20 73 61 6d 70 6c 65 2e 78 6d  2nroff sample.xm
2050: 6c 20 3e 20 73 61 6d 70 6c 65 2e 6e 22 0a 09 40  l > sample.n"..@
2060: 65 63 68 6f 20 22 20 20 20 20 20 20 20 20 78 6d  echo "        xm
2070: 6c 32 68 74 6d 6c 20 73 61 6d 70 6c 65 2e 78 6d  l2html sample.xm
2080: 6c 20 3e 20 73 61 6d 70 6c 65 2e 68 74 6d 6c 22  l > sample.html"
2090: 0a 0a 69 6e 73 74 61 6c 6c 3a 20 61 6c 6c 20 69  ..install: all i
20a0: 6e 73 74 61 6c 6c 2d 62 69 6e 61 72 69 65 73 20  nstall-binaries 
20b0: 69 6e 73 74 61 6c 6c 2d 6c 69 62 72 61 72 69 65  install-librarie
20c0: 73 20 69 6e 73 74 61 6c 6c 2d 64 6f 63 0a 0a 69  s install-doc..i
20d0: 6e 73 74 61 6c 6c 2d 62 69 6e 61 72 69 65 73 3a  nstall-binaries:
20e0: 20 62 69 6e 61 72 69 65 73 20 69 6e 73 74 61 6c   binaries instal
20f0: 6c 2d 6c 69 62 2d 62 69 6e 61 72 69 65 73 20 69  l-lib-binaries i
2100: 6e 73 74 61 6c 6c 2d 62 69 6e 2d 62 69 6e 61 72  nstall-bin-binar
2110: 69 65 73 0a 0a 23 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ies..#==========
2120: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
2130: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
2140: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
2150: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 0a 23  ==============.#
2160: 20 54 68 69 73 20 72 75 6c 65 20 69 6e 73 74 61   This rule insta
2170: 6c 6c 73 20 70 6c 61 74 66 6f 72 6d 2d 69 6e 64  lls platform-ind
2180: 65 70 65 6e 64 65 6e 74 20 66 69 6c 65 73 2c 20  ependent files, 
2190: 73 75 63 68 20 61 73 20 68 65 61 64 65 72 20 66  such as header f
21a0: 69 6c 65 73 2e 0a 23 20 54 68 65 20 6c 69 73 74  iles..# The list
21b0: 3d 2e 2e 2e 3b 20 66 6f 72 20 70 20 69 6e 20 24  =...; for p in $
21c0: 24 6c 69 73 74 20 68 61 6e 64 6c 65 73 20 74 68  $list handles th
21d0: 65 20 65 6d 70 74 79 20 6c 69 73 74 20 63 61 73  e empty list cas
21e0: 65 20 78 2d 70 6c 61 74 66 6f 72 6d 2e 0a 23 3d  e x-platform..#=
21f0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
2200: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
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 0a 0a 69 6e 73 74 61 6c 6c  =======..install
2240: 2d 6c 69 62 72 61 72 69 65 73 3a 20 6c 69 62 72  -libraries: libr
2250: 61 72 69 65 73 0a 09 40 24 28 49 4e 53 54 41 4c  aries..@$(INSTAL
2260: 4c 5f 44 41 54 41 5f 44 49 52 29 20 22 24 28 44  L_DATA_DIR) "$(D
2270: 45 53 54 44 49 52 29 24 28 69 6e 63 6c 75 64 65  ESTDIR)$(include
2280: 64 69 72 29 22 0a 09 40 65 63 68 6f 20 22 49 6e  dir)"..@echo "In
2290: 73 74 61 6c 6c 69 6e 67 20 68 65 61 64 65 72 20  stalling header 
22a0: 66 69 6c 65 73 20 69 6e 20 24 28 44 45 53 54 44  files in $(DESTD
22b0: 49 52 29 24 28 69 6e 63 6c 75 64 65 64 69 72 29  IR)$(includedir)
22c0: 22 0a 09 40 6c 69 73 74 3d 27 24 28 50 4b 47 5f  "..@list='$(PKG_
22d0: 48 45 41 44 45 52 53 29 27 3b 20 66 6f 72 20 69  HEADERS)'; for i
22e0: 20 69 6e 20 24 24 6c 69 73 74 3b 20 64 6f 20 5c   in $$list; do \
22f0: 0a 09 20 20 20 20 65 63 68 6f 20 22 49 6e 73 74  ..    echo "Inst
2300: 61 6c 6c 69 6e 67 20 24 28 73 72 63 64 69 72 29  alling $(srcdir)
2310: 2f 24 24 69 22 20 3b 20 5c 0a 09 20 20 20 20 24  /$$i" ; \..    $
2320: 28 49 4e 53 54 41 4c 4c 5f 44 41 54 41 29 20 24  (INSTALL_DATA) $
2330: 28 73 72 63 64 69 72 29 2f 24 24 69 20 22 24 28  (srcdir)/$$i "$(
2340: 44 45 53 54 44 49 52 29 24 28 69 6e 63 6c 75 64  DESTDIR)$(includ
2350: 65 64 69 72 29 22 20 3b 20 5c 0a 09 64 6f 6e 65  edir)" ; \..done
2360: 3b 0a 0a 23 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ;..#============
2370: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
2380: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
2390: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
23a0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 0a 23 20 49  ============.# I
23b0: 6e 73 74 61 6c 6c 20 64 6f 63 75 6d 65 6e 74 61  nstall documenta
23c0: 74 69 6f 6e 2e 20 20 55 6e 69 78 20 6d 61 6e 70  tion.  Unix manp
23d0: 61 67 65 73 20 73 68 6f 75 6c 64 20 67 6f 20 69  ages should go i
23e0: 6e 20 74 68 65 20 24 28 6d 61 6e 64 69 72 29 0a  n the $(mandir).
23f0: 23 20 64 69 72 65 63 74 6f 72 79 2e 0a 23 3d 3d  # directory..#==
2400: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
2410: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
2420: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
2430: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
2440: 3d 3d 3d 3d 3d 3d 0a 0a 69 6e 73 74 61 6c 6c 2d  ======..install-
2450: 64 6f 63 3a 20 64 6f 63 0a 09 40 24 28 49 4e 53  doc: doc..@$(INS
2460: 54 41 4c 4c 5f 44 41 54 41 5f 44 49 52 29 20 22  TALL_DATA_DIR) "
2470: 24 28 44 45 53 54 44 49 52 29 24 28 6d 61 6e 64  $(DESTDIR)$(mand
2480: 69 72 29 2f 6d 61 6e 6e 22 0a 09 40 65 63 68 6f  ir)/mann"..@echo
2490: 20 22 49 6e 73 74 61 6c 6c 69 6e 67 20 64 6f 63   "Installing doc
24a0: 75 6d 65 6e 74 61 74 69 6f 6e 20 69 6e 20 24 28  umentation in $(
24b0: 44 45 53 54 44 49 52 29 24 28 6d 61 6e 64 69 72  DESTDIR)$(mandir
24c0: 29 22 0a 09 40 6c 69 73 74 3d 27 24 28 73 72 63  )"..@list='$(src
24d0: 64 69 72 29 2f 64 6f 63 2f 2a 2e 6e 27 3b 20 66  dir)/doc/*.n'; f
24e0: 6f 72 20 69 20 69 6e 20 24 24 6c 69 73 74 3b 20  or i in $$list; 
24f0: 64 6f 20 5c 0a 09 20 20 20 20 65 63 68 6f 20 22  do \..    echo "
2500: 49 6e 73 74 61 6c 6c 69 6e 67 20 24 24 69 22 3b  Installing $$i";
2510: 20 5c 0a 09 20 20 20 20 24 28 49 4e 53 54 41 4c   \..    $(INSTAL
2520: 4c 5f 44 41 54 41 29 20 24 24 69 20 22 24 28 44  L_DATA) $$i "$(D
2530: 45 53 54 44 49 52 29 24 28 6d 61 6e 64 69 72 29  ESTDIR)$(mandir)
2540: 2f 6d 61 6e 6e 22 20 3b 20 5c 0a 09 64 6f 6e 65  /mann" ; \..done
2550: 0a 0a 74 65 73 74 3a 20 62 69 6e 61 72 69 65 73  ..test: binaries
2560: 20 6c 69 62 72 61 72 69 65 73 0a 09 24 28 54 43   libraries..$(TC
2570: 4c 53 48 29 20 60 40 43 59 47 50 41 54 48 40 20  LSH) `@CYGPATH@ 
2580: 24 28 73 72 63 64 69 72 29 2f 74 65 73 74 73 2f  $(srcdir)/tests/
2590: 61 6c 6c 2e 74 63 6c 60 20 24 28 54 45 53 54 46  all.tcl` $(TESTF
25a0: 4c 41 47 53 29 20 5c 0a 09 20 20 20 20 2d 6c 6f  LAGS) \..    -lo
25b0: 61 64 20 22 70 61 63 6b 61 67 65 20 69 66 6e 65  ad "package ifne
25c0: 65 64 65 64 20 24 28 50 41 43 4b 41 47 45 5f 4e  eded $(PACKAGE_N
25d0: 41 4d 45 29 20 24 28 50 41 43 4b 41 47 45 5f 56  AME) $(PACKAGE_V
25e0: 45 52 53 49 4f 4e 29 20 5c 0a 09 09 5b 6c 69 73  ERSION) \...[lis
25f0: 74 20 6c 6f 61 64 20 60 40 43 59 47 50 41 54 48  t load `@CYGPATH
2600: 40 20 24 28 50 4b 47 5f 4c 49 42 5f 46 49 4c 45  @ $(PKG_LIB_FILE
2610: 29 60 20 5b 73 74 72 69 6e 67 20 74 6f 74 69 74  )` [string totit
2620: 6c 65 20 24 28 50 41 43 4b 41 47 45 5f 4e 41 4d  le $(PACKAGE_NAM
2630: 45 29 5d 5d 22 0a 0a 73 68 65 6c 6c 3a 20 62 69  E)]]"..shell: bi
2640: 6e 61 72 69 65 73 20 6c 69 62 72 61 72 69 65 73  naries libraries
2650: 0a 09 40 24 28 54 43 4c 53 48 29 20 24 28 53 43  ..@$(TCLSH) $(SC
2660: 52 49 50 54 29 0a 0a 67 64 62 3a 0a 09 24 28 54  RIPT)..gdb:..$(T
2670: 43 4c 53 48 5f 45 4e 56 29 20 24 28 50 4b 47 5f  CLSH_ENV) $(PKG_
2680: 45 4e 56 29 20 24 28 47 44 42 29 20 24 28 54 43  ENV) $(GDB) $(TC
2690: 4c 53 48 5f 50 52 4f 47 29 20 24 28 53 43 52 49  LSH_PROG) $(SCRI
26a0: 50 54 29 0a 0a 67 64 62 2d 74 65 73 74 3a 20 62  PT)..gdb-test: b
26b0: 69 6e 61 72 69 65 73 20 6c 69 62 72 61 72 69 65  inaries librarie
26c0: 73 0a 09 24 28 54 43 4c 53 48 5f 45 4e 56 29 20  s..$(TCLSH_ENV) 
26d0: 24 28 50 4b 47 5f 45 4e 56 29 20 24 28 47 44 42  $(PKG_ENV) $(GDB
26e0: 29 20 5c 0a 09 20 20 20 20 2d 2d 61 72 67 73 20  ) \..    --args 
26f0: 24 28 54 43 4c 53 48 5f 50 52 4f 47 29 20 60 40  $(TCLSH_PROG) `@
2700: 43 59 47 50 41 54 48 40 20 24 28 73 72 63 64 69  CYGPATH@ $(srcdi
2710: 72 29 2f 74 65 73 74 73 2f 61 6c 6c 2e 74 63 6c  r)/tests/all.tcl
2720: 60 20 5c 0a 09 20 20 20 20 24 28 54 45 53 54 46  ` \..    $(TESTF
2730: 4c 41 47 53 29 20 2d 73 69 6e 67 6c 65 70 72 6f  LAGS) -singlepro
2740: 63 20 31 20 5c 0a 09 20 20 20 20 2d 6c 6f 61 64  c 1 \..    -load
2750: 20 22 70 61 63 6b 61 67 65 20 69 66 6e 65 65 64   "package ifneed
2760: 65 64 20 24 28 50 41 43 4b 41 47 45 5f 4e 41 4d  ed $(PACKAGE_NAM
2770: 45 29 20 24 28 50 41 43 4b 41 47 45 5f 56 45 52  E) $(PACKAGE_VER
2780: 53 49 4f 4e 29 20 5c 0a 09 09 5b 6c 69 73 74 20  SION) \...[list 
2790: 6c 6f 61 64 20 60 40 43 59 47 50 41 54 48 40 20  load `@CYGPATH@ 
27a0: 24 28 50 4b 47 5f 4c 49 42 5f 46 49 4c 45 29 60  $(PKG_LIB_FILE)`
27b0: 20 5b 73 74 72 69 6e 67 20 74 6f 74 69 74 6c 65   [string totitle
27c0: 20 24 28 50 41 43 4b 41 47 45 5f 4e 41 4d 45 29   $(PACKAGE_NAME)
27d0: 5d 5d 22 0a 0a 76 61 6c 67 72 69 6e 64 3a 20 62  ]]"..valgrind: b
27e0: 69 6e 61 72 69 65 73 20 6c 69 62 72 61 72 69 65  inaries librarie
27f0: 73 0a 09 24 28 54 43 4c 53 48 5f 45 4e 56 29 20  s..$(TCLSH_ENV) 
2800: 24 28 50 4b 47 5f 45 4e 56 29 20 24 28 56 41 4c  $(PKG_ENV) $(VAL
2810: 47 52 49 4e 44 29 20 24 28 56 41 4c 47 52 49 4e  GRIND) $(VALGRIN
2820: 44 41 52 47 53 29 20 24 28 54 43 4c 53 48 5f 50  DARGS) $(TCLSH_P
2830: 52 4f 47 29 20 5c 0a 09 20 20 20 20 60 40 43 59  ROG) \..    `@CY
2840: 47 50 41 54 48 40 20 24 28 73 72 63 64 69 72 29  GPATH@ $(srcdir)
2850: 2f 74 65 73 74 73 2f 61 6c 6c 2e 74 63 6c 60 20  /tests/all.tcl` 
2860: 24 28 54 45 53 54 46 4c 41 47 53 29 0a 0a 76 61  $(TESTFLAGS)..va
2870: 6c 67 72 69 6e 64 73 68 65 6c 6c 3a 20 62 69 6e  lgrindshell: bin
2880: 61 72 69 65 73 20 6c 69 62 72 61 72 69 65 73 0a  aries libraries.
2890: 09 24 28 54 43 4c 53 48 5f 45 4e 56 29 20 24 28  .$(TCLSH_ENV) $(
28a0: 50 4b 47 5f 45 4e 56 29 20 24 28 56 41 4c 47 52  PKG_ENV) $(VALGR
28b0: 49 4e 44 29 20 24 28 56 41 4c 47 52 49 4e 44 41  IND) $(VALGRINDA
28c0: 52 47 53 29 20 24 28 54 43 4c 53 48 5f 50 52 4f  RGS) $(TCLSH_PRO
28d0: 47 29 20 24 28 53 43 52 49 50 54 29 0a 0a 64 65  G) $(SCRIPT)..de
28e0: 70 65 6e 64 3a 0a 0a 23 3d 3d 3d 3d 3d 3d 3d 3d  pend:..#========
28f0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
2900: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
2910: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
2920: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
2930: 0a 23 20 24 28 50 4b 47 5f 4c 49 42 5f 46 49 4c  .# $(PKG_LIB_FIL
2940: 45 29 20 73 68 6f 75 6c 64 20 62 65 20 6c 69 73  E) should be lis
2950: 74 65 64 20 61 73 20 70 61 72 74 20 6f 66 20 74  ted as part of t
2960: 68 65 20 42 49 4e 41 52 49 45 53 20 76 61 72 69  he BINARIES vari
2970: 61 62 6c 65 0a 23 20 6d 65 6e 74 69 6f 6e 65 64  able.# mentioned
2980: 20 61 62 6f 76 65 2e 20 20 54 68 61 74 20 77 69   above.  That wi
2990: 6c 6c 20 65 6e 73 75 72 65 20 74 68 61 74 20 74  ll ensure that t
29a0: 68 69 73 20 74 61 72 67 65 74 20 69 73 20 62 75  his target is bu
29b0: 69 6c 74 20 77 68 65 6e 20 79 6f 75 0a 23 20 72  ilt when you.# r
29c0: 75 6e 20 22 6d 61 6b 65 20 62 69 6e 61 72 69 65  un "make binarie
29d0: 73 22 2e 0a 23 0a 23 20 54 68 65 20 24 28 50 4b  s"..#.# The $(PK
29e0: 47 5f 4f 42 4a 45 43 54 53 29 20 6f 62 6a 65 63  G_OBJECTS) objec
29f0: 74 73 20 61 72 65 20 63 72 65 61 74 65 64 20 61  ts are created a
2a00: 6e 64 20 6c 69 6e 6b 65 64 20 69 6e 74 6f 20 74  nd linked into t
2a10: 68 65 20 66 69 6e 61 6c 0a 23 20 6c 69 62 72 61  he final.# libra
2a20: 72 79 2e 20 20 49 6e 20 6d 6f 73 74 20 63 61 73  ry.  In most cas
2a30: 65 73 20 74 68 65 73 65 20 6f 62 6a 65 63 74 20  es these object 
2a40: 66 69 6c 65 73 20 77 69 6c 6c 20 63 6f 72 72 65  files will corre
2a50: 73 70 6f 6e 64 20 74 6f 20 74 68 65 0a 23 20 73  spond to the.# s
2a60: 6f 75 72 63 65 20 66 69 6c 65 73 20 61 62 6f 76  ource files abov
2a70: 65 2e 0a 23 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  e..#============
2a80: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
2a90: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
2aa0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
2ab0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 0a 0a 24 28  ============..$(
2ac0: 50 4b 47 5f 4c 49 42 5f 46 49 4c 45 29 3a 20 24  PKG_LIB_FILE): $
2ad0: 28 50 4b 47 5f 4f 42 4a 45 43 54 53 29 0a 09 2d  (PKG_OBJECTS)..-
2ae0: 72 6d 20 2d 66 20 24 28 50 4b 47 5f 4c 49 42 5f  rm -f $(PKG_LIB_
2af0: 46 49 4c 45 29 0a 09 24 7b 4d 41 4b 45 5f 4c 49  FILE)..${MAKE_LI
2b00: 42 7d 0a 09 24 28 52 41 4e 4c 49 42 29 20 24 28  B}..$(RANLIB) $(
2b10: 50 4b 47 5f 4c 49 42 5f 46 49 4c 45 29 0a 0a 24  PKG_LIB_FILE)..$
2b20: 28 50 4b 47 5f 53 54 55 42 5f 4c 49 42 5f 46 49  (PKG_STUB_LIB_FI
2b30: 4c 45 29 3a 20 24 28 50 4b 47 5f 53 54 55 42 5f  LE): $(PKG_STUB_
2b40: 4f 42 4a 45 43 54 53 29 0a 09 2d 72 6d 20 2d 66  OBJECTS)..-rm -f
2b50: 20 24 28 50 4b 47 5f 53 54 55 42 5f 4c 49 42 5f   $(PKG_STUB_LIB_
2b60: 46 49 4c 45 29 0a 09 24 7b 4d 41 4b 45 5f 53 54  FILE)..${MAKE_ST
2b70: 55 42 5f 4c 49 42 7d 0a 09 24 28 52 41 4e 4c 49  UB_LIB}..$(RANLI
2b80: 42 5f 53 54 55 42 29 20 24 28 50 4b 47 5f 53 54  B_STUB) $(PKG_ST
2b90: 55 42 5f 4c 49 42 5f 46 49 4c 45 29 0a 0a 23 3d  UB_LIB_FILE)..#=
2ba0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
2bb0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
2bc0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
2bd0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
2be0: 3d 3d 3d 3d 3d 3d 3d 0a 23 20 57 65 20 6e 65 65  =======.# We nee
2bf0: 64 20 74 6f 20 65 6e 75 6d 65 72 61 74 65 20 74  d to enumerate t
2c00: 68 65 20 6c 69 73 74 20 6f 66 20 2e 63 20 74 6f  he list of .c to
2c10: 20 2e 6f 20 6c 69 6e 65 73 20 68 65 72 65 2e 0a   .o lines here..
2c20: 23 0a 23 20 49 6e 20 74 68 65 20 66 6f 6c 6c 6f  #.# In the follo
2c30: 77 69 6e 67 20 6c 69 6e 65 73 2c 20 24 28 73 72  wing lines, $(sr
2c40: 63 64 69 72 29 20 72 65 66 65 72 73 20 74 6f 20  cdir) refers to 
2c50: 74 68 65 20 74 6f 70 6c 65 76 65 6c 20 64 69 72  the toplevel dir
2c60: 65 63 74 6f 72 79 0a 23 20 63 6f 6e 74 61 69 6e  ectory.# contain
2c70: 69 6e 67 20 79 6f 75 72 20 65 78 74 65 6e 73 69  ing your extensi
2c80: 6f 6e 2e 20 20 49 66 20 79 6f 75 72 20 73 6f 75  on.  If your sou
2c90: 72 63 65 73 20 61 72 65 20 69 6e 20 61 20 73 75  rces are in a su
2ca0: 62 64 69 72 65 63 74 6f 72 79 2c 0a 23 20 79 6f  bdirectory,.# yo
2cb0: 75 20 77 69 6c 6c 20 68 61 76 65 20 74 6f 20 6d  u will have to m
2cc0: 6f 64 69 66 79 20 74 68 65 20 70 61 74 68 73 20  odify the paths 
2cd0: 74 6f 20 72 65 66 6c 65 63 74 20 74 68 69 73 3a  to reflect this:
2ce0: 0a 23 0a 23 20 73 61 6d 70 6c 65 2e 24 28 4f 42  .#.# sample.$(OB
2cf0: 4a 45 58 54 29 3a 20 24 28 73 72 63 64 69 72 29  JEXT): $(srcdir)
2d00: 2f 67 65 6e 65 72 69 63 2f 73 61 6d 70 6c 65 2e  /generic/sample.
2d10: 63 0a 23 20 09 24 28 43 4f 4d 50 49 4c 45 29 20  c.# .$(COMPILE) 
2d20: 2d 63 20 60 40 43 59 47 50 41 54 48 40 20 24 28  -c `@CYGPATH@ $(
2d30: 73 72 63 64 69 72 29 2f 67 65 6e 65 72 69 63 2f  srcdir)/generic/
2d40: 73 61 6d 70 6c 65 2e 63 60 20 2d 6f 20 24 40 0a  sample.c` -o $@.
2d50: 23 0a 23 20 53 65 74 74 69 6e 67 20 74 68 65 20  #.# Setting the 
2d60: 56 50 41 54 48 20 76 61 72 69 61 62 6c 65 20 74  VPATH variable t
2d70: 6f 20 61 20 6c 69 73 74 20 6f 66 20 70 61 74 68  o a list of path
2d80: 73 20 77 69 6c 6c 20 63 61 75 73 65 20 74 68 65  s will cause the
2d90: 20 6d 61 6b 65 66 69 6c 65 0a 23 20 74 6f 20 6c   makefile.# to l
2da0: 6f 6f 6b 20 69 6e 74 6f 20 74 68 65 73 65 20 70  ook into these p
2db0: 61 74 68 73 20 77 68 65 6e 20 72 65 73 6f 6c 76  aths when resolv
2dc0: 69 6e 67 20 2e 63 20 74 6f 20 2e 6f 62 6a 20 64  ing .c to .obj d
2dd0: 65 70 65 6e 64 65 6e 63 69 65 73 2e 0a 23 20 41  ependencies..# A
2de0: 73 20 6e 65 63 65 73 73 61 72 79 2c 20 61 64 64  s necessary, add
2df0: 20 24 28 73 72 63 64 69 72 29 3a 24 28 73 72 63   $(srcdir):$(src
2e00: 64 69 72 29 2f 63 6f 6d 70 61 74 3a 2e 2e 2e 2e  dir)/compat:....
2e10: 0a 23 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  .#==============
2e20: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
2e30: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
2e40: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
2e50: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 0a 0a 56 50 41 54  ==========..VPAT
2e60: 48 20 3d 20 24 28 73 72 63 64 69 72 29 3a 24 28  H = $(srcdir):$(
2e70: 73 72 63 64 69 72 29 2f 67 65 6e 65 72 69 63 3a  srcdir)/generic:
2e80: 24 28 73 72 63 64 69 72 29 2f 75 6e 69 78 3a 24  $(srcdir)/unix:$
2e90: 28 73 72 63 64 69 72 29 2f 77 69 6e 3a 24 28 73  (srcdir)/win:$(s
2ea0: 72 63 64 69 72 29 2f 6d 61 63 6f 73 78 0a 0a 2e  rcdir)/macosx...
2eb0: 63 2e 40 4f 42 4a 45 58 54 40 3a 0a 09 24 28 43  c.@OBJEXT@:..$(C
2ec0: 4f 4d 50 49 4c 45 29 20 2d 63 20 60 40 43 59 47  OMPILE) -c `@CYG
2ed0: 50 41 54 48 40 20 24 3c 60 20 2d 6f 20 24 40 0a  PATH@ $<` -o $@.
2ee0: 0a 23 20 44 65 70 65 6e 64 65 6e 63 69 65 73 20  .# Dependencies 
2ef0: 66 6f 72 20 61 6c 6c 20 6f 75 72 20 74 61 72 67  for all our targ
2f00: 65 74 73 0a 74 6c 73 2e 40 4f 42 4a 45 58 54 40  ets.tls.@OBJEXT@
2f10: 3a 20 40 73 72 63 64 69 72 40 2f 74 6c 73 2e 63  : @srcdir@/tls.c
2f20: 20 40 73 72 63 64 69 72 40 2f 74 6c 73 49 6e 74   @srcdir@/tlsInt
2f30: 2e 68 20 40 73 72 63 64 69 72 40 2f 74 63 6c 4f  .h @srcdir@/tclO
2f40: 70 74 73 2e 68 20 74 6c 73 2e 74 63 6c 2e 68 20  pts.h tls.tcl.h 
2f50: 64 68 5f 70 61 72 61 6d 73 2e 68 20 4d 61 6b 65  dh_params.h Make
2f60: 66 69 6c 65 0a 09 24 28 43 43 29 20 24 28 43 50  file..$(CC) $(CP
2f70: 50 46 4c 41 47 53 29 20 24 28 43 46 4c 41 47 53  PFLAGS) $(CFLAGS
2f80: 29 20 2d 6f 20 74 6c 73 2e 40 4f 42 4a 45 58 54  ) -o tls.@OBJEXT
2f90: 40 20 2d 63 20 40 73 72 63 64 69 72 40 2f 74 6c  @ -c @srcdir@/tl
2fa0: 73 2e 63 0a 0a 74 6c 73 42 49 4f 2e 40 4f 42 4a  s.c..tlsBIO.@OBJ
2fb0: 45 58 54 40 3a 20 40 73 72 63 64 69 72 40 2f 74  EXT@: @srcdir@/t
2fc0: 6c 73 42 49 4f 2e 63 20 40 73 72 63 64 69 72 40  lsBIO.c @srcdir@
2fd0: 2f 74 6c 73 49 6e 74 2e 68 20 4d 61 6b 65 66 69  /tlsInt.h Makefi
2fe0: 6c 65 0a 09 24 28 43 43 29 20 24 28 43 50 50 46  le..$(CC) $(CPPF
2ff0: 4c 41 47 53 29 20 24 28 43 46 4c 41 47 53 29 20  LAGS) $(CFLAGS) 
3000: 2d 6f 20 74 6c 73 42 49 4f 2e 40 4f 42 4a 45 58  -o tlsBIO.@OBJEX
3010: 54 40 20 2d 63 20 40 73 72 63 64 69 72 40 2f 74  T@ -c @srcdir@/t
3020: 6c 73 42 49 4f 2e 63 0a 0a 74 6c 73 49 4f 2e 40  lsBIO.c..tlsIO.@
3030: 4f 42 4a 45 58 54 40 3a 20 40 73 72 63 64 69 72  OBJEXT@: @srcdir
3040: 40 2f 74 6c 73 49 4f 2e 63 20 40 73 72 63 64 69  @/tlsIO.c @srcdi
3050: 72 40 2f 74 6c 73 49 6e 74 2e 68 20 4d 61 6b 65  r@/tlsInt.h Make
3060: 66 69 6c 65 0a 09 24 28 43 43 29 20 24 28 43 50  file..$(CC) $(CP
3070: 50 46 4c 41 47 53 29 20 24 28 43 46 4c 41 47 53  PFLAGS) $(CFLAGS
3080: 29 20 2d 6f 20 74 6c 73 49 4f 2e 40 4f 42 4a 45  ) -o tlsIO.@OBJE
3090: 58 54 40 20 2d 63 20 40 73 72 63 64 69 72 40 2f  XT@ -c @srcdir@/
30a0: 74 6c 73 49 4f 2e 63 0a 0a 74 6c 73 58 35 30 39  tlsIO.c..tlsX509
30b0: 2e 40 4f 42 4a 45 58 54 40 3a 20 40 73 72 63 64  .@OBJEXT@: @srcd
30c0: 69 72 40 2f 74 6c 73 58 35 30 39 2e 63 20 40 73  ir@/tlsX509.c @s
30d0: 72 63 64 69 72 40 2f 74 6c 73 49 6e 74 2e 68 20  rcdir@/tlsInt.h 
30e0: 4d 61 6b 65 66 69 6c 65 0a 09 24 28 43 43 29 20  Makefile..$(CC) 
30f0: 24 28 43 50 50 46 4c 41 47 53 29 20 24 28 43 46  $(CPPFLAGS) $(CF
3100: 4c 41 47 53 29 20 2d 6f 20 74 6c 73 58 35 30 39  LAGS) -o tlsX509
3110: 2e 40 4f 42 4a 45 58 54 40 20 2d 63 20 40 73 72  .@OBJEXT@ -c @sr
3120: 63 64 69 72 40 2f 74 6c 73 58 35 30 39 2e 63 0a  cdir@/tlsX509.c.
3130: 0a 23 20 43 72 65 61 74 65 20 61 20 43 2d 73 6f  .# Create a C-so
3140: 75 72 63 65 2d 69 66 69 65 64 20 76 65 72 73 69  urce-ified versi
3150: 6f 6e 20 6f 66 20 74 68 65 20 73 63 72 69 70 74  on of the script
3160: 20 72 65 73 6f 75 72 63 65 73 0a 23 20 66 6f 72   resources.# for
3170: 20 54 63 6c 54 4c 53 20 73 6f 20 74 68 61 74 20   TclTLS so that 
3180: 77 65 20 6f 6e 6c 79 20 6e 65 65 64 20 61 20 73  we only need a s
3190: 69 6e 67 6c 65 20 66 69 6c 65 20 74 6f 20 65 6e  ingle file to en
31a0: 61 62 6c 65 0a 23 20 74 68 69 73 20 65 78 74 65  able.# this exte
31b0: 6e 73 69 6f 6e 0a 74 6c 73 2e 74 63 6c 2e 68 3a  nsion.tls.tcl.h:
31c0: 20 40 73 72 63 64 69 72 40 2f 74 6c 73 2e 74 63   @srcdir@/tls.tc
31d0: 6c 20 4d 61 6b 65 66 69 6c 65 0a 09 6f 64 20 2d  l Makefile..od -
31e0: 41 20 6e 20 2d 76 20 2d 74 20 78 43 20 3c 20 27  A n -v -t xC < '
31f0: 40 73 72 63 64 69 72 40 2f 74 6c 73 2e 74 63 6c  @srcdir@/tls.tcl
3200: 27 20 3e 20 74 6c 73 2e 74 63 6c 2e 68 2e 6e 65  ' > tls.tcl.h.ne
3210: 77 2e 31 0a 09 73 65 64 20 27 73 40 5b 5e 30 2d  w.1..sed 's@[^0-
3220: 39 41 2d 46 61 2d 66 5d 40 40 67 3b 73 40 2e 2e  9A-Fa-f]@@g;s@..
3230: 40 30 78 26 2c 20 40 67 27 20 3c 20 74 6c 73 2e  @0x&, @g' < tls.
3240: 74 63 6c 2e 68 2e 6e 65 77 2e 31 20 3e 20 74 6c  tcl.h.new.1 > tl
3250: 73 2e 74 63 6c 2e 68 2e 6e 65 77 2e 32 0a 09 72  s.tcl.h.new.2..r
3260: 6d 20 2d 66 20 74 6c 73 2e 74 63 6c 2e 68 2e 6e  m -f tls.tcl.h.n
3270: 65 77 2e 31 0a 09 6d 76 20 74 6c 73 2e 74 63 6c  ew.1..mv tls.tcl
3280: 2e 68 2e 6e 65 77 2e 32 20 74 6c 73 2e 74 63 6c  .h.new.2 tls.tcl
3290: 2e 68 0a 0a 23 20 43 72 65 61 74 65 20 64 65 66  .h..# Create def
32a0: 61 75 6c 74 20 44 48 20 70 61 72 61 6d 65 74 65  ault DH paramete
32b0: 72 73 0a 64 68 5f 70 61 72 61 6d 73 2e 68 3a 20  rs.dh_params.h: 
32c0: 40 73 72 63 64 69 72 40 2f 67 65 6e 5f 64 68 5f  @srcdir@/gen_dh_
32d0: 70 61 72 61 6d 73 20 4d 61 6b 65 66 69 6c 65 0a  params Makefile.
32e0: 09 73 68 20 40 73 72 63 64 69 72 40 2f 67 65 6e  .sh @srcdir@/gen
32f0: 5f 64 68 5f 70 61 72 61 6d 73 20 40 47 45 4e 5f  _dh_params @GEN_
3300: 44 48 5f 50 41 52 41 4d 53 5f 41 52 47 53 40 20  DH_PARAMS_ARGS@ 
3310: 3e 20 64 68 5f 70 61 72 61 6d 73 2e 68 2e 6e 65  > dh_params.h.ne
3320: 77 0a 09 6d 76 20 64 68 5f 70 61 72 61 6d 73 2e  w..mv dh_params.
3330: 68 2e 6e 65 77 20 64 68 5f 70 61 72 61 6d 73 2e  h.new dh_params.
3340: 68 0a 0a 23 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  h..#============
3350: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
3360: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
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 0a 23 20 44  ============.# D
3390: 69 73 74 72 69 62 75 74 69 6f 6e 20 63 72 65 61  istribution crea
33a0: 74 69 6f 6e 0a 23 20 59 6f 75 20 6d 61 79 20 6e  tion.# You may n
33b0: 65 65 64 20 74 6f 20 74 77 65 61 6b 20 74 68 69  eed to tweak thi
33c0: 73 20 74 61 72 67 65 74 20 74 6f 20 6d 61 6b 65  s target to make
33d0: 20 69 74 20 77 6f 72 6b 20 63 6f 72 72 65 63 74   it work correct
33e0: 6c 79 2e 0a 23 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ly..#===========
33f0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
3400: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
3410: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
3420: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 0a 0a 23  =============..#
3430: 43 4f 4d 50 52 45 53 53 09 3d 20 74 61 72 20 63  COMPRESS.= tar c
3440: 76 66 20 24 28 50 4b 47 5f 44 49 52 29 2e 74 61  vf $(PKG_DIR).ta
3450: 72 20 24 28 50 4b 47 5f 44 49 52 29 3b 20 63 6f  r $(PKG_DIR); co
3460: 6d 70 72 65 73 73 20 24 28 50 4b 47 5f 44 49 52  mpress $(PKG_DIR
3470: 29 2e 74 61 72 0a 43 4f 4d 50 52 45 53 53 09 3d  ).tar.COMPRESS.=
3480: 20 74 61 72 20 7a 63 76 66 20 24 28 50 4b 47 5f   tar zcvf $(PKG_
3490: 44 49 52 29 2e 74 61 72 2e 67 7a 20 24 28 50 4b  DIR).tar.gz $(PK
34a0: 47 5f 44 49 52 29 0a 44 49 53 54 5f 52 4f 4f 54  G_DIR).DIST_ROOT
34b0: 09 3d 20 2f 74 6d 70 2f 64 69 73 74 0a 44 49 53  .= /tmp/dist.DIS
34c0: 54 5f 44 49 52 09 3d 20 24 28 44 49 53 54 5f 52  T_DIR.= $(DIST_R
34d0: 4f 4f 54 29 2f 24 28 50 4b 47 5f 44 49 52 29 0a  OOT)/$(PKG_DIR).
34e0: 0a 44 49 53 54 5f 49 4e 53 54 41 4c 4c 5f 44 41  .DIST_INSTALL_DA
34f0: 54 41 09 3d 20 43 50 50 52 4f 47 3d 27 63 70 20  TA.= CPPROG='cp 
3500: 2d 70 27 20 24 28 49 4e 53 54 41 4c 4c 29 20 2d  -p' $(INSTALL) -
3510: 6d 20 36 34 34 0a 44 49 53 54 5f 49 4e 53 54 41  m 644.DIST_INSTA
3520: 4c 4c 5f 53 43 52 49 50 54 09 3d 20 43 50 50 52  LL_SCRIPT.= CPPR
3530: 4f 47 3d 27 63 70 20 2d 70 27 20 24 28 49 4e 53  OG='cp -p' $(INS
3540: 54 41 4c 4c 29 20 2d 6d 20 37 35 35 0a 0a 64 69  TALL) -m 755..di
3550: 73 74 2d 63 6c 65 61 6e 3a 0a 09 72 6d 20 2d 72  st-clean:..rm -r
3560: 66 20 24 28 44 49 53 54 5f 44 49 52 29 20 24 28  f $(DIST_DIR) $(
3570: 44 49 53 54 5f 52 4f 4f 54 29 2f 24 28 50 4b 47  DIST_ROOT)/$(PKG
3580: 5f 44 49 52 29 2e 74 61 72 2e 2a 0a 0a 64 69 73  _DIR).tar.*..dis
3590: 74 3a 20 64 69 73 74 2d 63 6c 65 61 6e 0a 09 24  t: dist-clean..$
35a0: 28 49 4e 53 54 41 4c 4c 5f 44 41 54 41 5f 44 49  (INSTALL_DATA_DI
35b0: 52 29 20 24 28 44 49 53 54 5f 44 49 52 29 0a 0a  R) $(DIST_DIR)..
35c0: 09 23 20 54 45 41 20 66 69 6c 65 73 0a 09 24 28  .# TEA files..$(
35d0: 44 49 53 54 5f 49 4e 53 54 41 4c 4c 5f 44 41 54  DIST_INSTALL_DAT
35e0: 41 29 20 24 28 73 72 63 64 69 72 29 2f 4d 61 6b  A) $(srcdir)/Mak
35f0: 65 66 69 6c 65 2e 69 6e 20 5c 0a 09 20 20 20 20  efile.in \..    
3600: 24 28 73 72 63 64 69 72 29 2f 61 63 6c 6f 63 61  $(srcdir)/acloca
3610: 6c 2e 6d 34 20 24 28 73 72 63 64 69 72 29 2f 63  l.m4 $(srcdir)/c
3620: 6f 6e 66 69 67 75 72 65 2e 61 63 20 5c 0a 09 20  onfigure.ac \.. 
3630: 20 20 20 24 28 44 49 53 54 5f 44 49 52 29 2f 0a     $(DIST_DIR)/.
3640: 09 24 28 44 49 53 54 5f 49 4e 53 54 41 4c 4c 5f  .$(DIST_INSTALL_
3650: 53 43 52 49 50 54 29 20 24 28 73 72 63 64 69 72  SCRIPT) $(srcdir
3660: 29 2f 63 6f 6e 66 69 67 75 72 65 20 24 28 44 49  )/configure $(DI
3670: 53 54 5f 44 49 52 29 2f 0a 0a 09 24 28 49 4e 53  ST_DIR)/...$(INS
3680: 54 41 4c 4c 5f 44 41 54 41 5f 44 49 52 29 20 24  TALL_DATA_DIR) $
3690: 28 44 49 53 54 5f 44 49 52 29 2f 74 63 6c 63 6f  (DIST_DIR)/tclco
36a0: 6e 66 69 67 0a 09 24 28 44 49 53 54 5f 49 4e 53  nfig..$(DIST_INS
36b0: 54 41 4c 4c 5f 44 41 54 41 29 20 24 28 73 72 63  TALL_DATA) $(src
36c0: 64 69 72 29 2f 74 63 6c 63 6f 6e 66 69 67 2f 52  dir)/tclconfig/R
36d0: 45 41 44 4d 45 2e 74 78 74 20 5c 0a 09 20 20 20  EADME.txt \..   
36e0: 20 24 28 73 72 63 64 69 72 29 2f 74 63 6c 63 6f   $(srcdir)/tclco
36f0: 6e 66 69 67 2f 74 63 6c 2e 6d 34 20 24 28 73 72  nfig/tcl.m4 $(sr
3700: 63 64 69 72 29 2f 74 63 6c 63 6f 6e 66 69 67 2f  cdir)/tclconfig/
3710: 69 6e 73 74 61 6c 6c 2d 73 68 20 5c 0a 09 20 20  install-sh \..  
3720: 20 20 24 28 44 49 53 54 5f 44 49 52 29 2f 74 63    $(DIST_DIR)/tc
3730: 6c 63 6f 6e 66 69 67 2f 0a 0a 09 23 20 45 78 74  lconfig/...# Ext
3740: 65 6e 73 69 6f 6e 20 66 69 6c 65 73 0a 09 24 28  ension files..$(
3750: 44 49 53 54 5f 49 4e 53 54 41 4c 4c 5f 44 41 54  DIST_INSTALL_DAT
3760: 41 29 20 5c 0a 09 20 20 20 20 24 28 73 72 63 64  A) \..    $(srcd
3770: 69 72 29 2f 43 68 61 6e 67 65 4c 6f 67 20 5c 0a  ir)/ChangeLog \.
3780: 09 20 20 20 20 24 28 73 72 63 64 69 72 29 2f 6c  .    $(srcdir)/l
3790: 69 63 65 6e 73 65 2e 74 65 72 6d 73 20 5c 0a 09  icense.terms \..
37a0: 20 20 20 20 24 28 73 72 63 64 69 72 29 2f 52 45      $(srcdir)/RE
37b0: 41 44 4d 45 20 5c 0a 09 20 20 20 20 24 28 73 72  ADME \..    $(sr
37c0: 63 64 69 72 29 2f 70 6b 67 49 6e 64 65 78 2e 74  cdir)/pkgIndex.t
37d0: 63 6c 2e 69 6e 20 5c 0a 09 20 20 20 20 24 28 44  cl.in \..    $(D
37e0: 49 53 54 5f 44 49 52 29 2f 0a 0a 09 6c 69 73 74  IST_DIR)/...list
37f0: 3d 27 64 65 6d 6f 73 20 64 6f 63 20 67 65 6e 65  ='demos doc gene
3800: 72 69 63 20 6c 69 62 72 61 72 79 20 6d 61 63 6f  ric library maco
3810: 73 78 20 74 65 73 74 73 20 75 6e 69 78 20 77 69  sx tests unix wi
3820: 6e 27 3b 20 5c 0a 09 66 6f 72 20 70 20 69 6e 20  n'; \..for p in 
3830: 24 24 6c 69 73 74 3b 20 64 6f 20 5c 0a 09 20 20  $$list; do \..  
3840: 20 20 69 66 20 74 65 73 74 20 2d 64 20 24 28 73    if test -d $(s
3850: 72 63 64 69 72 29 2f 24 24 70 20 3b 20 74 68 65  rcdir)/$$p ; the
3860: 6e 20 5c 0a 09 09 24 28 49 4e 53 54 41 4c 4c 5f  n \...$(INSTALL_
3870: 44 41 54 41 5f 44 49 52 29 20 24 28 44 49 53 54  DATA_DIR) $(DIST
3880: 5f 44 49 52 29 2f 24 24 70 3b 20 5c 0a 09 09 24  _DIR)/$$p; \...$
3890: 28 44 49 53 54 5f 49 4e 53 54 41 4c 4c 5f 44 41  (DIST_INSTALL_DA
38a0: 54 41 29 20 24 28 73 72 63 64 69 72 29 2f 24 24  TA) $(srcdir)/$$
38b0: 70 2f 2a 20 24 28 44 49 53 54 5f 44 49 52 29 2f  p/* $(DIST_DIR)/
38c0: 24 24 70 2f 3b 20 5c 0a 09 20 20 20 20 66 69 3b  $$p/; \..    fi;
38d0: 20 5c 0a 09 64 6f 6e 65 0a 0a 09 28 63 64 20 24   \..done...(cd $
38e0: 28 44 49 53 54 5f 52 4f 4f 54 29 3b 20 24 28 43  (DIST_ROOT); $(C
38f0: 4f 4d 50 52 45 53 53 29 3b 29 0a 0a 23 3d 3d 3d  OMPRESS);)..#===
3900: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
3910: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
3920: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
3930: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
3940: 3d 3d 3d 3d 3d 0a 23 20 45 6e 64 20 6f 66 20 75  =====.# End of u
3950: 73 65 72 2d 64 65 66 69 6e 61 62 6c 65 20 73 65  ser-definable se
3960: 63 74 69 6f 6e 0a 23 3d 3d 3d 3d 3d 3d 3d 3d 3d  ction.#=========
3970: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
3980: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
3990: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
39a0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 0a  ===============.
39b0: 0a 23 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  .#==============
39c0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
39d0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
39e0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
39f0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 0a 23 20 44 6f 6e  ==========.# Don
3a00: 27 74 20 6d 6f 64 69 66 79 20 74 68 65 20 66 69  't modify the fi
3a10: 6c 65 20 74 6f 20 63 6c 65 61 6e 20 68 65 72 65  le to clean here
3a20: 2e 20 20 49 6e 73 74 65 61 64 2c 20 73 65 74 20  .  Instead, set 
3a30: 74 68 65 20 22 43 4c 45 41 4e 46 49 4c 45 53 22  the "CLEANFILES"
3a40: 0a 23 20 76 61 72 69 61 62 6c 65 20 69 6e 20 63  .# variable in c
3a50: 6f 6e 66 69 67 75 72 65 2e 61 63 0a 23 3d 3d 3d  onfigure.ac.#===
3a60: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
3a70: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
3a80: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
3a90: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
3aa0: 3d 3d 3d 3d 3d 0a 0a 63 6c 65 61 6e 3a 0a 09 2d  =====..clean:..-
3ab0: 74 65 73 74 20 2d 7a 20 22 24 28 42 49 4e 41 52  test -z "$(BINAR
3ac0: 49 45 53 29 22 20 7c 7c 20 72 6d 20 2d 66 20 24  IES)" || rm -f $
3ad0: 28 42 49 4e 41 52 49 45 53 29 0a 09 2d 72 6d 20  (BINARIES)..-rm 
3ae0: 2d 66 20 2a 2e 24 28 4f 42 4a 45 58 54 29 20 63  -f *.$(OBJEXT) c
3af0: 6f 72 65 20 2a 2e 63 6f 72 65 0a 09 2d 74 65 73  ore *.core..-tes
3b00: 74 20 2d 7a 20 22 24 28 43 4c 45 41 4e 46 49 4c  t -z "$(CLEANFIL
3b10: 45 53 29 22 20 7c 7c 20 72 6d 20 2d 66 20 24 28  ES)" || rm -f $(
3b20: 43 4c 45 41 4e 46 49 4c 45 53 29 0a 0a 64 69 73  CLEANFILES)..dis
3b30: 74 63 6c 65 61 6e 3a 20 63 6c 65 61 6e 0a 09 2d  tclean: clean..-
3b40: 72 6d 20 2d 66 20 2a 2e 74 61 62 2e 63 0a 09 2d  rm -f *.tab.c..-
3b50: 72 6d 20 2d 66 20 24 28 43 4f 4e 46 49 47 5f 43  rm -f $(CONFIG_C
3b60: 4c 45 41 4e 5f 46 49 4c 45 53 29 0a 09 2d 72 6d  LEAN_FILES)..-rm
3b70: 20 2d 66 20 63 6f 6e 66 69 67 2e 63 61 63 68 65   -f config.cache
3b80: 20 63 6f 6e 66 69 67 2e 6c 6f 67 20 63 6f 6e 66   config.log conf
3b90: 69 67 2e 73 74 61 74 75 73 0a 0a 23 3d 3d 3d 3d  ig.status..#====
3ba0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
3bb0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
3bc0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
3bd0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
3be0: 3d 3d 3d 3d 0a 23 20 49 6e 73 74 61 6c 6c 20 62  ====.# Install b
3bf0: 69 6e 61 72 79 20 6f 62 6a 65 63 74 20 6c 69 62  inary object lib
3c00: 72 61 72 69 65 73 2e 20 20 4f 6e 20 57 69 6e 64  raries.  On Wind
3c10: 6f 77 73 20 74 68 69 73 20 69 6e 63 6c 75 64 65  ows this include
3c20: 73 20 62 6f 74 68 20 2e 64 6c 6c 20 61 6e 64 0a  s both .dll and.
3c30: 23 20 2e 6c 69 62 20 66 69 6c 65 73 2e 20 20 42  # .lib files.  B
3c40: 65 63 61 75 73 65 20 74 68 65 20 2e 6c 69 62 20  ecause the .lib 
3c50: 66 69 6c 65 73 20 61 72 65 20 6e 6f 74 20 65 78  files are not ex
3c60: 70 6c 69 63 69 74 6c 79 20 6c 69 73 74 65 64 20  plicitly listed 
3c70: 61 6e 79 77 68 65 72 65 2c 0a 23 20 77 65 20 6e  anywhere,.# we n
3c80: 65 65 64 20 74 6f 20 64 65 64 75 63 65 20 74 68  eed to deduce th
3c90: 65 69 72 20 65 78 69 73 74 65 6e 63 65 20 66 72  eir existence fr
3ca0: 6f 6d 20 74 68 65 20 2e 64 6c 6c 20 66 69 6c 65  om the .dll file
3cb0: 20 6f 66 20 74 68 65 20 73 61 6d 65 20 6e 61 6d   of the same nam
3cc0: 65 2e 0a 23 20 4c 69 62 72 61 72 79 20 66 69 6c  e..# Library fil
3cd0: 65 73 20 67 6f 20 69 6e 74 6f 20 74 68 65 20 6c  es go into the l
3ce0: 69 62 20 64 69 72 65 63 74 6f 72 79 2e 0a 23 20  ib directory..# 
3cf0: 49 6e 20 61 64 64 69 74 69 6f 6e 2c 20 74 68 69  In addition, thi
3d00: 73 20 77 69 6c 6c 20 67 65 6e 65 72 61 74 65 20  s will generate 
3d10: 74 68 65 20 70 6b 67 49 6e 64 65 78 2e 74 63 6c  the pkgIndex.tcl
3d20: 0a 23 20 66 69 6c 65 20 69 6e 20 74 68 65 20 69  .# file in the i
3d30: 6e 73 74 61 6c 6c 20 6c 6f 63 61 74 69 6f 6e 20  nstall location 
3d40: 28 61 73 73 75 6d 69 6e 67 20 69 74 20 63 61 6e  (assuming it can
3d50: 20 66 69 6e 64 20 61 20 75 73 61 62 6c 65 20 74   find a usable t
3d60: 63 6c 73 68 20 73 68 65 6c 6c 29 0a 23 0a 23 20  clsh shell).#.# 
3d70: 59 6f 75 20 73 68 6f 75 6c 64 20 6e 6f 74 20 68  You should not h
3d80: 61 76 65 20 74 6f 20 6d 6f 64 69 66 79 20 74 68  ave to modify th
3d90: 69 73 20 74 61 72 67 65 74 2e 0a 23 3d 3d 3d 3d  is target..#====
3da0: 3d 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 0a 0a 69 6e 73 74 61 6c 6c 2d 6c 69  ====..install-li
3df0: 62 2d 62 69 6e 61 72 69 65 73 3a 20 62 69 6e 61  b-binaries: bina
3e00: 72 69 65 73 0a 09 40 24 28 49 4e 53 54 41 4c 4c  ries..@$(INSTALL
3e10: 5f 44 41 54 41 5f 44 49 52 29 20 22 24 28 44 45  _DATA_DIR) "$(DE
3e20: 53 54 44 49 52 29 24 28 70 6b 67 6c 69 62 64 69  STDIR)$(pkglibdi
3e30: 72 29 22 0a 09 40 6c 69 73 74 3d 27 24 28 6c 69  r)"..@list='$(li
3e40: 62 5f 42 49 4e 41 52 49 45 53 29 27 3b 20 66 6f  b_BINARIES)'; fo
3e50: 72 20 70 20 69 6e 20 24 24 6c 69 73 74 3b 20 64  r p in $$list; d
3e60: 6f 20 5c 0a 09 20 20 69 66 20 74 65 73 74 20 2d  o \..  if test -
3e70: 66 20 24 24 70 3b 20 74 68 65 6e 20 5c 0a 09 20  f $$p; then \.. 
3e80: 20 20 20 65 63 68 6f 20 22 20 24 28 49 4e 53 54     echo " $(INST
3e90: 41 4c 4c 5f 4c 49 42 52 41 52 59 29 20 24 24 70  ALL_LIBRARY) $$p
3ea0: 20 24 28 44 45 53 54 44 49 52 29 24 28 70 6b 67   $(DESTDIR)$(pkg
3eb0: 6c 69 62 64 69 72 29 2f 24 24 70 22 3b 20 5c 0a  libdir)/$$p"; \.
3ec0: 09 20 20 20 20 24 28 49 4e 53 54 41 4c 4c 5f 4c  .    $(INSTALL_L
3ed0: 49 42 52 41 52 59 29 20 24 24 70 20 22 24 28 44  IBRARY) $$p "$(D
3ee0: 45 53 54 44 49 52 29 24 28 70 6b 67 6c 69 62 64  ESTDIR)$(pkglibd
3ef0: 69 72 29 2f 24 24 70 22 3b 20 5c 0a 09 20 20 20  ir)/$$p"; \..   
3f00: 20 65 78 74 3d 60 65 63 68 6f 20 24 24 70 7c 73   ext=`echo $$p|s
3f10: 65 64 20 2d 65 20 22 73 2f 2e 2a 5c 2e 2f 2f 22  ed -e "s/.*\.//"
3f20: 60 3b 20 5c 0a 09 20 20 20 20 69 66 20 74 65 73  `; \..    if tes
3f30: 74 20 22 78 24 24 65 78 74 22 20 3d 20 22 78 64  t "x$$ext" = "xd
3f40: 6c 6c 22 3b 20 74 68 65 6e 20 5c 0a 09 09 6c 69  ll"; then \...li
3f50: 62 3d 60 62 61 73 65 6e 61 6d 65 20 24 24 70 7c  b=`basename $$p|
3f60: 73 65 64 20 2d 65 20 27 73 2f 2e 5b 5e 2e 5d 2a  sed -e 's/.[^.]*
3f70: 24 24 2f 2f 27 60 2e 6c 69 62 3b 20 5c 0a 09 09  $$//'`.lib; \...
3f80: 69 66 20 74 65 73 74 20 2d 66 20 24 24 6c 69 62  if test -f $$lib
3f90: 3b 20 74 68 65 6e 20 5c 0a 09 09 20 20 20 20 65  ; then \...    e
3fa0: 63 68 6f 20 22 20 24 28 49 4e 53 54 41 4c 4c 5f  cho " $(INSTALL_
3fb0: 44 41 54 41 29 20 24 24 6c 69 62 20 24 28 44 45  DATA) $$lib $(DE
3fc0: 53 54 44 49 52 29 24 28 70 6b 67 6c 69 62 64 69  STDIR)$(pkglibdi
3fd0: 72 29 2f 24 24 6c 69 62 22 3b 20 5c 0a 09 20 20  r)/$$lib"; \..  
3fe0: 20 20 20 20 20 20 20 20 20 20 24 28 49 4e 53 54            $(INST
3ff0: 41 4c 4c 5f 44 41 54 41 29 20 24 24 6c 69 62 20  ALL_DATA) $$lib 
4000: 22 24 28 44 45 53 54 44 49 52 29 24 28 70 6b 67  "$(DESTDIR)$(pkg
4010: 6c 69 62 64 69 72 29 2f 24 24 6c 69 62 22 3b 20  libdir)/$$lib"; 
4020: 5c 0a 09 09 66 69 3b 20 5c 0a 09 20 20 20 20 66  \...fi; \..    f
4030: 69 3b 20 5c 0a 09 20 20 66 69 3b 20 5c 0a 09 64  i; \..  fi; \..d
4040: 6f 6e 65 0a 09 40 6c 69 73 74 3d 27 24 28 50 4b  one..@list='$(PK
4050: 47 5f 54 43 4c 5f 53 4f 55 52 43 45 53 29 27 3b  G_TCL_SOURCES)';
4060: 20 66 6f 72 20 70 20 69 6e 20 24 24 6c 69 73 74   for p in $$list
4070: 3b 20 64 6f 20 5c 0a 09 20 20 69 66 20 74 65 73  ; do \..  if tes
4080: 74 20 2d 66 20 24 28 73 72 63 64 69 72 29 2f 24  t -f $(srcdir)/$
4090: 24 70 3b 20 74 68 65 6e 20 5c 0a 09 20 20 20 20  $p; then \..    
40a0: 64 65 73 74 70 3d 60 62 61 73 65 6e 61 6d 65 20  destp=`basename 
40b0: 24 24 70 60 3b 20 5c 0a 09 20 20 20 20 65 63 68  $$p`; \..    ech
40c0: 6f 20 22 20 49 6e 73 74 61 6c 6c 20 24 24 64 65  o " Install $$de
40d0: 73 74 70 20 24 28 44 45 53 54 44 49 52 29 24 28  stp $(DESTDIR)$(
40e0: 70 6b 67 6c 69 62 64 69 72 29 2f 24 24 64 65 73  pkglibdir)/$$des
40f0: 74 70 22 3b 20 5c 0a 09 20 20 20 20 24 28 49 4e  tp"; \..    $(IN
4100: 53 54 41 4c 4c 5f 44 41 54 41 29 20 24 28 73 72  STALL_DATA) $(sr
4110: 63 64 69 72 29 2f 24 24 70 20 22 24 28 44 45 53  cdir)/$$p "$(DES
4120: 54 44 49 52 29 24 28 70 6b 67 6c 69 62 64 69 72  TDIR)$(pkglibdir
4130: 29 2f 24 24 64 65 73 74 70 22 3b 20 5c 0a 09 20  )/$$destp"; \.. 
4140: 20 66 69 3b 20 5c 0a 09 64 6f 6e 65 0a 09 40 69   fi; \..done..@i
4150: 66 20 74 65 73 74 20 22 78 24 28 53 48 41 52 45  f test "x$(SHARE
4160: 44 5f 42 55 49 4c 44 29 22 20 3d 20 22 78 31 22  D_BUILD)" = "x1"
4170: 3b 20 74 68 65 6e 20 5c 0a 09 20 20 20 20 65 63  ; then \..    ec
4180: 68 6f 20 22 20 49 6e 73 74 61 6c 6c 20 70 6b 67  ho " Install pkg
4190: 49 6e 64 65 78 2e 74 63 6c 20 24 28 44 45 53 54  Index.tcl $(DEST
41a0: 44 49 52 29 24 28 70 6b 67 6c 69 62 64 69 72 29  DIR)$(pkglibdir)
41b0: 22 3b 20 5c 0a 09 20 20 20 20 24 28 49 4e 53 54  "; \..    $(INST
41c0: 41 4c 4c 5f 44 41 54 41 29 20 70 6b 67 49 6e 64  ALL_DATA) pkgInd
41d0: 65 78 2e 74 63 6c 20 22 24 28 44 45 53 54 44 49  ex.tcl "$(DESTDI
41e0: 52 29 24 28 70 6b 67 6c 69 62 64 69 72 29 22 3b  R)$(pkglibdir)";
41f0: 20 5c 0a 09 66 69 0a 0a 23 3d 3d 3d 3d 3d 3d 3d   \..fi..#=======
4200: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
4210: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
4220: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
4230: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
4240: 3d 0a 23 20 49 6e 73 74 61 6c 6c 20 62 69 6e 61  =.# Install bina
4250: 72 79 20 65 78 65 63 75 74 61 62 6c 65 73 20 28  ry executables (
4260: 65 2e 67 2e 20 2e 65 78 65 20 66 69 6c 65 73 20  e.g. .exe files 
4270: 61 6e 64 20 64 65 70 65 6e 64 65 6e 74 20 2e 64  and dependent .d
4280: 6c 6c 20 66 69 6c 65 73 29 0a 23 20 54 68 69 73  ll files).# This
4290: 20 69 73 20 66 6f 72 20 66 69 6c 65 73 20 74 68   is for files th
42a0: 61 74 20 6d 75 73 74 20 67 6f 20 69 6e 20 74 68  at must go in th
42b0: 65 20 62 69 6e 20 64 69 72 65 63 74 6f 72 79 20  e bin directory 
42c0: 28 6c 6f 63 61 74 65 64 20 6e 65 78 74 20 74 6f  (located next to
42d0: 0a 23 20 77 69 73 68 20 61 6e 64 20 74 63 6c 73  .# wish and tcls
42e0: 68 29 2c 20 6c 69 6b 65 20 64 65 70 65 6e 64 65  h), like depende
42f0: 6e 74 20 2e 64 6c 6c 20 66 69 6c 65 73 20 6f 6e  nt .dll files on
4300: 20 57 69 6e 64 6f 77 73 2e 0a 23 0a 23 20 59 6f   Windows..#.# Yo
4310: 75 20 73 68 6f 75 6c 64 20 6e 6f 74 20 68 61 76  u should not hav
4320: 65 20 74 6f 20 6d 6f 64 69 66 79 20 74 68 69 73  e to modify this
4330: 20 74 61 72 67 65 74 2c 20 65 78 63 65 70 74 20   target, except 
4340: 74 6f 20 64 65 66 69 6e 65 20 62 69 6e 5f 42 49  to define bin_BI
4350: 4e 41 52 49 45 53 0a 23 20 61 62 6f 76 65 20 69  NARIES.# above i
4360: 66 20 6e 65 63 65 73 73 61 72 79 2e 0a 23 3d 3d  f necessary..#==
4370: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
4380: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
4390: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
43a0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
43b0: 3d 3d 3d 3d 3d 3d 0a 0a 69 6e 73 74 61 6c 6c 2d  ======..install-
43c0: 62 69 6e 2d 62 69 6e 61 72 69 65 73 3a 20 62 69  bin-binaries: bi
43d0: 6e 61 72 69 65 73 0a 09 40 24 28 49 4e 53 54 41  naries..@$(INSTA
43e0: 4c 4c 5f 44 41 54 41 5f 44 49 52 29 20 22 24 28  LL_DATA_DIR) "$(
43f0: 44 45 53 54 44 49 52 29 24 28 62 69 6e 64 69 72  DESTDIR)$(bindir
4400: 29 22 0a 09 40 6c 69 73 74 3d 27 24 28 62 69 6e  )"..@list='$(bin
4410: 5f 42 49 4e 41 52 49 45 53 29 27 3b 20 66 6f 72  _BINARIES)'; for
4420: 20 70 20 69 6e 20 24 24 6c 69 73 74 3b 20 64 6f   p in $$list; do
4430: 20 5c 0a 09 20 20 69 66 20 74 65 73 74 20 2d 66   \..  if test -f
4440: 20 24 24 70 3b 20 74 68 65 6e 20 5c 0a 09 20 20   $$p; then \..  
4450: 20 20 65 63 68 6f 20 22 20 24 28 49 4e 53 54 41    echo " $(INSTA
4460: 4c 4c 5f 50 52 4f 47 52 41 4d 29 20 24 24 70 20  LL_PROGRAM) $$p 
4470: 24 28 44 45 53 54 44 49 52 29 24 28 62 69 6e 64  $(DESTDIR)$(bind
4480: 69 72 29 2f 24 24 70 22 3b 20 5c 0a 09 20 20 20  ir)/$$p"; \..   
4490: 20 24 28 49 4e 53 54 41 4c 4c 5f 50 52 4f 47 52   $(INSTALL_PROGR
44a0: 41 4d 29 20 24 24 70 20 22 24 28 44 45 53 54 44  AM) $$p "$(DESTD
44b0: 49 52 29 24 28 62 69 6e 64 69 72 29 2f 24 24 70  IR)$(bindir)/$$p
44c0: 22 3b 20 5c 0a 09 20 20 66 69 3b 20 5c 0a 09 64  "; \..  fi; \..d
44d0: 6f 6e 65 0a 0a 4d 61 6b 65 66 69 6c 65 3a 20 24  one..Makefile: $
44e0: 28 73 72 63 64 69 72 29 2f 4d 61 6b 65 66 69 6c  (srcdir)/Makefil
44f0: 65 2e 69 6e 20 20 24 28 74 6f 70 5f 62 75 69 6c  e.in  $(top_buil
4500: 64 64 69 72 29 2f 63 6f 6e 66 69 67 2e 73 74 61  ddir)/config.sta
4510: 74 75 73 0a 09 63 64 20 24 28 74 6f 70 5f 62 75  tus..cd $(top_bu
4520: 69 6c 64 64 69 72 29 20 5c 0a 09 20 20 26 26 20  ilddir) \..  && 
4530: 43 4f 4e 46 49 47 5f 46 49 4c 45 53 3d 24 40 20  CONFIG_FILES=$@ 
4540: 43 4f 4e 46 49 47 5f 48 45 41 44 45 52 53 3d 20  CONFIG_HEADERS= 
4550: 24 28 53 48 45 4c 4c 29 20 2e 2f 63 6f 6e 66 69  $(SHELL) ./confi
4560: 67 2e 73 74 61 74 75 73 0a 0a 75 6e 69 6e 73 74  g.status..uninst
4570: 61 6c 6c 2d 62 69 6e 61 72 69 65 73 3a 0a 09 6c  all-binaries:..l
4580: 69 73 74 3d 27 24 28 6c 69 62 5f 42 49 4e 41 52  ist='$(lib_BINAR
4590: 49 45 53 29 27 3b 20 66 6f 72 20 70 20 69 6e 20  IES)'; for p in 
45a0: 24 24 6c 69 73 74 3b 20 64 6f 20 5c 0a 09 20 20  $$list; do \..  
45b0: 72 6d 20 2d 66 20 22 24 28 44 45 53 54 44 49 52  rm -f "$(DESTDIR
45c0: 29 24 28 70 6b 67 6c 69 62 64 69 72 29 2f 24 24  )$(pkglibdir)/$$
45d0: 70 22 3b 20 5c 0a 09 64 6f 6e 65 0a 09 6c 69 73  p"; \..done..lis
45e0: 74 3d 27 24 28 50 4b 47 5f 54 43 4c 5f 53 4f 55  t='$(PKG_TCL_SOU
45f0: 52 43 45 53 29 27 3b 20 66 6f 72 20 70 20 69 6e  RCES)'; for p in
4600: 20 24 24 6c 69 73 74 3b 20 64 6f 20 5c 0a 09 20   $$list; do \.. 
4610: 20 70 3d 60 62 61 73 65 6e 61 6d 65 20 24 24 70   p=`basename $$p
4620: 60 3b 20 5c 0a 09 20 20 72 6d 20 2d 66 20 22 24  `; \..  rm -f "$
4630: 28 44 45 53 54 44 49 52 29 24 28 70 6b 67 6c 69  (DESTDIR)$(pkgli
4640: 62 64 69 72 29 2f 24 24 70 22 3b 20 5c 0a 09 64  bdir)/$$p"; \..d
4650: 6f 6e 65 0a 09 6c 69 73 74 3d 27 24 28 62 69 6e  one..list='$(bin
4660: 5f 42 49 4e 41 52 49 45 53 29 27 3b 20 66 6f 72  _BINARIES)'; for
4670: 20 70 20 69 6e 20 24 24 6c 69 73 74 3b 20 64 6f   p in $$list; do
4680: 20 5c 0a 09 20 20 72 6d 20 2d 66 20 22 24 28 44   \..  rm -f "$(D
4690: 45 53 54 44 49 52 29 24 28 62 69 6e 64 69 72 29  ESTDIR)$(bindir)
46a0: 2f 24 24 70 22 3b 20 5c 0a 09 64 6f 6e 65 0a 0a  /$$p"; \..done..
46b0: 2e 50 48 4f 4e 59 3a 20 61 6c 6c 20 62 69 6e 61  .PHONY: all bina
46c0: 72 69 65 73 20 63 6c 65 61 6e 20 64 65 70 65 6e  ries clean depen
46d0: 64 20 64 69 73 74 63 6c 65 61 6e 20 64 6f 63 20  d distclean doc 
46e0: 69 6e 73 74 61 6c 6c 20 6c 69 62 72 61 72 69 65  install librarie
46f0: 73 20 74 65 73 74 0a 2e 50 48 4f 4e 59 3a 20 67  s test..PHONY: g
4700: 64 62 20 67 64 62 2d 74 65 73 74 20 76 61 6c 67  db gdb-test valg
4710: 72 69 6e 64 20 76 61 6c 67 72 69 6e 64 73 68 65  rind valgrindshe
4720: 6c 6c 0a 0a 23 20 54 65 6c 6c 20 76 65 72 73 69  ll..# Tell versi
4730: 6f 6e 73 20 5b 33 2e 35 39 2c 33 2e 36 33 29 20  ons [3.59,3.63) 
4740: 6f 66 20 47 4e 55 20 6d 61 6b 65 20 74 6f 20 6e  of GNU make to n
4750: 6f 74 20 65 78 70 6f 72 74 20 61 6c 6c 20 76 61  ot export all va
4760: 72 69 61 62 6c 65 73 2e 0a 23 20 4f 74 68 65 72  riables..# Other
4770: 77 69 73 65 20 61 20 73 79 73 74 65 6d 20 6c 69  wise a system li
4780: 6d 69 74 20 28 66 6f 72 20 53 79 73 56 20 61 74  mit (for SysV at
4790: 20 6c 65 61 73 74 29 20 6d 61 79 20 62 65 20 65   least) may be e
47a0: 78 63 65 65 64 65 64 2e 0a 2e 4e 4f 45 58 50 4f  xceeded...NOEXPO
47b0: 52 54 3a 0a                                      RT:.