Artifact
bca2ec86abc0fd1fe2d891b1961cfcca6f85938c72f64d7ef6f2e7816fc6677d:
0000: 23 21 20 2f 75 73 72 2f 62 69 6e 2f 65 6e 76 20  #! /usr/bin/env 
0010: 62 61 73 68 0a 0a 63 64 20 22 24 28 64 69 72 6e  bash..cd "$(dirn
0020: 61 6d 65 20 22 24 7b 42 41 53 48 5f 53 4f 55 52  ame "${BASH_SOUR
0030: 43 45 5b 30 5d 7d 22 29 22 20 7c 7c 20 65 78 69  CE[0]}")" || exi
0040: 74 20 31 0a 0a 66 75 6e 63 74 69 6f 6e 20 6d 61  t 1..function ma
0050: 6b 65 2d 6d 61 6b 65 66 69 6c 65 2d 76 63 28 29  ke-makefile-vc()
0060: 20 7b 0a 09 6c 6f 63 61 6c 20 6f 75 74 44 69 72   {..local outDir
0070: 0a 0a 09 6f 75 74 44 69 72 3d 22 24 31 22 0a 0a  ...outDir="$1"..
0080: 09 63 61 74 20 3c 3c 20 5c 5f 45 4f 46 5f 20 3e  .cat << \_EOF_ >
0090: 20 22 24 7b 6f 75 74 44 69 72 7d 2f 4d 61 6b 65   "${outDir}/Make
00a0: 66 69 6c 65 2e 76 63 22 0a 23 20 53 70 65 63 69  file.vc".# Speci
00b0: 66 79 20 4f 70 65 6e 53 53 4c 20 61 6e 64 20 54  fy OpenSSL and T
00c0: 63 6c 20 70 61 72 61 6d 65 74 65 72 73 20 68 65  cl parameters he
00d0: 72 65 0a 23 20 2d 2d 2d 2d 2d 42 45 47 49 4e 20  re.# -----BEGIN 
00e0: 4d 4f 44 49 46 49 43 41 54 49 4f 4e 53 2d 2d 2d  MODIFICATIONS---
00f0: 2d 2d 0a 4f 50 45 4e 53 53 4c 5f 44 49 52 20 20  --.OPENSSL_DIR  
0100: 20 20 20 20 20 20 3d 20 63 3a 2f 4f 70 65 6e 53        = c:/OpenS
0110: 53 4c 2d 57 69 6e 36 34 0a 4f 50 45 4e 53 53 4c  SL-Win64.OPENSSL
0120: 5f 4c 49 42 53 20 20 20 20 20 20 20 3d 20 63 3a  _LIBS       = c:
0130: 2f 4f 70 65 6e 53 53 4c 2d 57 69 6e 36 34 2f 6c  /OpenSSL-Win64/l
0140: 69 62 2f 56 43 2f 73 74 61 74 69 63 2f 6c 69 62  ib/VC/static/lib
0150: 73 73 6c 36 34 4d 54 2e 6c 69 62 20 63 3a 2f 4f  ssl64MT.lib c:/O
0160: 70 65 6e 53 53 4c 2d 57 69 6e 36 34 2f 6c 69 62  penSSL-Win64/lib
0170: 2f 56 43 2f 73 74 61 74 69 63 2f 6c 69 62 63 72  /VC/static/libcr
0180: 79 70 74 6f 36 34 4d 54 2e 6c 69 62 0a 4f 50 45  ypto64MT.lib.OPE
0190: 4e 53 53 4c 5f 43 50 50 46 4c 41 47 53 20 20 20  NSSL_CPPFLAGS   
01a0: 3d 20 2d 44 4e 4f 5f 53 53 4c 32 20 2d 44 4e 4f  = -DNO_SSL2 -DNO
01b0: 5f 53 53 4c 33 0a 0a 54 43 4c 5f 44 49 52 20 20  _SSL3..TCL_DIR  
01c0: 20 20 20 20 20 20 20 20 20 20 3d 20 63 3a 2f 54            = c:/T
01d0: 63 6c 0a 23 20 2d 2d 2d 2d 2d 45 4e 44 20 4d 4f  cl.# -----END MO
01e0: 44 49 46 49 43 41 54 49 4f 4e 53 2d 2d 2d 2d 2d  DIFICATIONS-----
01f0: 0a 5f 45 4f 46 5f 0a 0a 41 52 0a 43 43 0a 43 46  ._EOF_..AR.CC.CF
0200: 4c 41 47 53 0a 43 50 50 46 4c 41 47 53 0a 44 45  LAGS.CPPFLAGS.DE
0210: 46 53 0a 45 58 54 45 4e 53 49 4f 4e 5f 54 41 52  FS.EXTENSION_TAR
0220: 47 45 54 0a 47 45 4e 5f 44 48 5f 50 41 52 41 4d  GET.GEN_DH_PARAM
0230: 53 5f 41 52 47 53 0a 49 4e 53 54 41 4c 4c 0a 49  S_ARGS.INSTALL.I
0240: 4e 53 54 41 4c 4c 5f 44 41 54 41 0a 49 4e 53 54  NSTALL_DATA.INST
0250: 41 4c 4c 5f 50 52 4f 47 52 41 4d 0a 4c 44 46 4c  ALL_PROGRAM.LDFL
0260: 41 47 53 0a 4c 49 42 53 0a 50 41 43 4b 41 47 45  AGS.LIBS.PACKAGE
0270: 5f 56 45 52 53 49 4f 4e 0a 52 41 4e 4c 49 42 0a  _VERSION.RANLIB.
0280: 52 45 4d 4f 56 45 53 59 4d 53 0a 53 48 4f 42 4a  REMOVESYMS.SHOBJ
0290: 46 4c 41 47 53 0a 53 48 4f 42 4a 4c 44 46 4c 41  FLAGS.SHOBJLDFLA
02a0: 47 53 0a 54 43 4c 45 58 54 5f 42 55 49 4c 44 0a  GS.TCLEXT_BUILD.
02b0: 54 43 4c 53 48 5f 50 52 4f 47 0a 54 43 4c 5f 44  TCLSH_PROG.TCL_D
02c0: 45 46 53 0a 54 43 4c 5f 50 41 43 4b 41 47 45 5f  EFS.TCL_PACKAGE_
02d0: 50 41 54 48 0a 57 45 41 4b 45 4e 53 59 4d 53 0a  PATH.WEAKENSYMS.
02e0: 65 78 65 63 5f 70 72 65 66 69 78 0a 6c 69 62 64  exec_prefix.libd
02f0: 69 72 0a 70 72 65 66 69 78 0a 73 72 63 64 69 72  ir.prefix.srcdir
0300: 0a 2d 2d 0a 43 43 20 3d 20 40 43 43 40 0a 41 52  .--.CC = @CC@.AR
0310: 20 3d 20 40 41 52 40 0a 52 41 4e 4c 49 42 20 3d   = @AR@.RANLIB =
0320: 20 40 52 41 4e 4c 49 42 40 0a 43 46 4c 41 47 53   @RANLIB@.CFLAGS
0330: 20 3d 20 40 43 46 4c 41 47 53 40 20 40 53 48 4f   = @CFLAGS@ @SHO
0340: 42 4a 46 4c 41 47 53 40 0a 43 50 50 46 4c 41 47  BJFLAGS@.CPPFLAG
0350: 53 20 3d 20 40 43 50 50 46 4c 41 47 53 40 20 2d  S = @CPPFLAGS@ -
0360: 49 40 73 72 63 64 69 72 40 20 2d 49 2e 20 40 44  I@srcdir@ -I. @D
0370: 45 46 53 40 20 40 54 43 4c 5f 44 45 46 53 40 0a  EFS@ @TCL_DEFS@.
0380: 4c 44 46 4c 41 47 53 20 3d 20 40 4c 44 46 4c 41  LDFLAGS = @LDFLA
0390: 47 53 40 20 40 53 48 4f 42 4a 4c 44 46 4c 41 47  GS@ @SHOBJLDFLAG
03a0: 53 40 0a 4c 49 42 53 20 3d 20 40 4c 49 42 53 40  S@.LIBS = @LIBS@
03b0: 0a 50 41 43 4b 41 47 45 5f 56 45 52 53 49 4f 4e  .PACKAGE_VERSION
03c0: 20 3d 20 40 50 41 43 4b 41 47 45 5f 56 45 52 53   = @PACKAGE_VERS
03d0: 49 4f 4e 40 0a 70 72 65 66 69 78 20 3d 20 40 70  ION@.prefix = @p
03e0: 72 65 66 69 78 40 0a 65 78 65 63 5f 70 72 65 66  refix@.exec_pref
03f0: 69 78 20 3d 20 40 65 78 65 63 5f 70 72 65 66 69  ix = @exec_prefi
0400: 78 40 0a 6c 69 62 64 69 72 20 3d 20 40 6c 69 62  x@.libdir = @lib
0410: 64 69 72 40 0a 54 43 4c 5f 50 41 43 4b 41 47 45  dir@.TCL_PACKAGE
0420: 5f 50 41 54 48 20 3d 20 40 54 43 4c 5f 50 41 43  _PATH = @TCL_PAC
0430: 4b 41 47 45 5f 50 41 54 48 40 0a 50 41 43 4b 41  KAGE_PATH@.PACKA
0440: 47 45 5f 49 4e 53 54 41 4c 4c 5f 44 49 52 20 3d  GE_INSTALL_DIR =
0450: 20 24 28 54 43 4c 5f 50 41 43 4b 41 47 45 5f 50   $(TCL_PACKAGE_P
0460: 41 54 48 29 2f 74 63 6c 74 6c 73 24 28 50 41 43  ATH)/tcltls$(PAC
0470: 4b 41 47 45 5f 56 45 52 53 49 4f 4e 29 0a 49 4e  KAGE_VERSION).IN
0480: 53 54 41 4c 4c 20 3d 20 40 49 4e 53 54 41 4c 4c  STALL = @INSTALL
0490: 40 0a 49 4e 53 54 41 4c 4c 5f 50 52 4f 47 52 41  @.INSTALL_PROGRA
04a0: 4d 20 3d 20 40 49 4e 53 54 41 4c 4c 5f 50 52 4f  M = @INSTALL_PRO
04b0: 47 52 41 4d 40 0a 49 4e 53 54 41 4c 4c 5f 44 41  GRAM@.INSTALL_DA
04c0: 54 41 20 3d 20 40 49 4e 53 54 41 4c 4c 5f 44 41  TA = @INSTALL_DA
04d0: 54 41 40 0a 56 50 41 54 48 20 3d 20 40 73 72 63  TA@.VPATH = @src
04e0: 64 69 72 40 0a 0a 61 6c 6c 3a 20 40 45 58 54 45  dir@..all: @EXTE
04f0: 4e 53 49 4f 4e 5f 54 41 52 47 45 54 40 0a 0a 40  NSION_TARGET@..@
0500: 45 58 54 45 4e 53 49 4f 4e 5f 54 41 52 47 45 54  EXTENSION_TARGET
0510: 40 3a 20 40 54 43 4c 45 58 54 5f 42 55 49 4c 44  @: @TCLEXT_BUILD
0520: 40 2d 40 45 58 54 45 4e 53 49 4f 4e 5f 54 41 52  @-@EXTENSION_TAR
0530: 47 45 54 40 0a 09 6d 76 20 40 54 43 4c 45 58 54  GET@..mv @TCLEXT
0540: 5f 42 55 49 4c 44 40 2d 40 45 58 54 45 4e 53 49  _BUILD@-@EXTENSI
0550: 4f 4e 5f 54 41 52 47 45 54 40 20 40 45 58 54 45  ON_TARGET@ @EXTE
0560: 4e 53 49 4f 4e 5f 54 41 52 47 45 54 40 0a 0a 23  NSION_TARGET@..#
0570: 20 54 68 65 20 73 68 61 72 65 64 20 6f 62 6a 65   The shared obje
0580: 63 74 20 74 61 72 67 65 74 0a 73 68 61 72 65 64  ct target.shared
0590: 2d 40 45 58 54 45 4e 53 49 4f 4e 5f 54 41 52 47  -@EXTENSION_TARG
05a0: 45 54 40 3a 20 74 6c 73 2e 6f 20 74 6c 73 42 49  ET@: tls.o tlsBI
05b0: 4f 2e 6f 20 74 6c 73 49 4f 2e 6f 20 74 6c 73 58  O.o tlsIO.o tlsX
05c0: 35 30 39 2e 6f 20 4d 61 6b 65 66 69 6c 65 0a 09  509.o Makefile..
05d0: 24 28 43 43 29 20 24 28 43 50 50 46 4c 41 47 53  $(CC) $(CPPFLAGS
05e0: 29 20 24 28 43 46 4c 41 47 53 29 20 24 28 4c 44  ) $(CFLAGS) $(LD
05f0: 46 4c 41 47 53 29 20 2d 6f 20 73 68 61 72 65 64  FLAGS) -o shared
0600: 2d 40 45 58 54 45 4e 53 49 4f 4e 5f 54 41 52 47  -@EXTENSION_TARG
0610: 45 54 40 20 74 6c 73 2e 6f 20 74 6c 73 42 49 4f  ET@ tls.o tlsBIO
0620: 2e 6f 20 74 6c 73 49 4f 2e 6f 20 74 6c 73 58 35  .o tlsIO.o tlsX5
0630: 30 39 2e 6f 20 24 28 4c 49 42 53 29 0a 09 2d 40  09.o $(LIBS)..-@
0640: 57 45 41 4b 45 4e 53 59 4d 53 40 20 73 68 61 72  WEAKENSYMS@ shar
0650: 65 64 2d 40 45 58 54 45 4e 53 49 4f 4e 5f 54 41  ed-@EXTENSION_TA
0660: 52 47 45 54 40 0a 09 2d 40 52 45 4d 4f 56 45 53  RGET@..-@REMOVES
0670: 59 4d 53 40 20 73 68 61 72 65 64 2d 40 45 58 54  YMS@ shared-@EXT
0680: 45 4e 53 49 4f 4e 5f 54 41 52 47 45 54 40 0a 0a  ENSION_TARGET@..
0690: 23 20 54 68 65 20 73 74 61 74 69 63 20 74 61 72  # The static tar
06a0: 67 65 74 0a 73 74 61 74 69 63 2d 40 45 58 54 45  get.static-@EXTE
06b0: 4e 53 49 4f 4e 5f 54 41 52 47 45 54 40 3a 20 74  NSION_TARGET@: t
06c0: 6c 73 2e 6f 20 74 6c 73 42 49 4f 2e 6f 20 74 6c  ls.o tlsBIO.o tl
06d0: 73 49 4f 2e 6f 20 74 6c 73 58 35 30 39 2e 6f 20  sIO.o tlsX509.o 
06e0: 4d 61 6b 65 66 69 6c 65 0a 09 24 28 41 52 29 20  Makefile..$(AR) 
06f0: 72 63 75 20 73 74 61 74 69 63 2d 40 45 58 54 45  rcu static-@EXTE
0700: 4e 53 49 4f 4e 5f 54 41 52 47 45 54 40 20 74 6c  NSION_TARGET@ tl
0710: 73 2e 6f 20 74 6c 73 42 49 4f 2e 6f 20 74 6c 73  s.o tlsBIO.o tls
0720: 49 4f 2e 6f 20 74 6c 73 58 35 30 39 2e 6f 0a 09  IO.o tlsX509.o..
0730: 2d 24 28 52 41 4e 4c 49 42 29 20 73 74 61 74 69  -$(RANLIB) stati
0740: 63 2d 40 45 58 54 45 4e 53 49 4f 4e 5f 54 41 52  c-@EXTENSION_TAR
0750: 47 45 54 40 0a 0a 23 20 44 65 70 65 6e 64 65 6e  GET@..# Dependen
0760: 63 69 65 73 20 66 6f 72 20 61 6c 6c 20 6f 75 72  cies for all our
0770: 20 74 61 72 67 65 74 73 0a 74 6c 73 2e 6f 3a 20   targets.tls.o: 
0780: 40 73 72 63 64 69 72 40 2f 74 6c 73 2e 63 20 40  @srcdir@/tls.c @
0790: 73 72 63 64 69 72 40 2f 74 6c 73 49 6e 74 2e 68  srcdir@/tlsInt.h
07a0: 20 40 73 72 63 64 69 72 40 2f 74 63 6c 4f 70 74   @srcdir@/tclOpt
07b0: 73 2e 68 20 74 6c 73 2e 74 63 6c 2e 68 20 64 68  s.h tls.tcl.h dh
07c0: 5f 70 61 72 61 6d 73 2e 68 20 4d 61 6b 65 66 69  _params.h Makefi
07d0: 6c 65 0a 09 24 28 43 43 29 20 24 28 43 50 50 46  le..$(CC) $(CPPF
07e0: 4c 41 47 53 29 20 24 28 43 46 4c 41 47 53 29 20  LAGS) $(CFLAGS) 
07f0: 2d 6f 20 74 6c 73 2e 6f 20 2d 63 20 40 73 72 63  -o tls.o -c @src
0800: 64 69 72 40 2f 74 6c 73 2e 63 0a 0a 74 6c 73 42  dir@/tls.c..tlsB
0810: 49 4f 2e 6f 3a 20 40 73 72 63 64 69 72 40 2f 74  IO.o: @srcdir@/t
0820: 6c 73 42 49 4f 2e 63 20 40 73 72 63 64 69 72 40  lsBIO.c @srcdir@
0830: 2f 74 6c 73 49 6e 74 2e 68 20 4d 61 6b 65 66 69  /tlsInt.h Makefi
0840: 6c 65 0a 09 24 28 43 43 29 20 24 28 43 50 50 46  le..$(CC) $(CPPF
0850: 4c 41 47 53 29 20 24 28 43 46 4c 41 47 53 29 20  LAGS) $(CFLAGS) 
0860: 2d 6f 20 74 6c 73 42 49 4f 2e 6f 20 2d 63 20 40  -o tlsBIO.o -c @
0870: 73 72 63 64 69 72 40 2f 74 6c 73 42 49 4f 2e 63  srcdir@/tlsBIO.c
0880: 0a 0a 74 6c 73 49 4f 2e 6f 3a 20 40 73 72 63 64  ..tlsIO.o: @srcd
0890: 69 72 40 2f 74 6c 73 49 4f 2e 63 20 40 73 72 63  ir@/tlsIO.c @src
08a0: 64 69 72 40 2f 74 6c 73 49 6e 74 2e 68 20 4d 61  dir@/tlsInt.h Ma
08b0: 6b 65 66 69 6c 65 0a 09 24 28 43 43 29 20 24 28  kefile..$(CC) $(
08c0: 43 50 50 46 4c 41 47 53 29 20 24 28 43 46 4c 41  CPPFLAGS) $(CFLA
08d0: 47 53 29 20 2d 6f 20 74 6c 73 49 4f 2e 6f 20 2d  GS) -o tlsIO.o -
08e0: 63 20 40 73 72 63 64 69 72 40 2f 74 6c 73 49 4f  c @srcdir@/tlsIO
08f0: 2e 63 0a 0a 74 6c 73 58 35 30 39 2e 6f 3a 20 40  .c..tlsX509.o: @
0900: 73 72 63 64 69 72 40 2f 74 6c 73 58 35 30 39 2e  srcdir@/tlsX509.
0910: 63 20 40 73 72 63 64 69 72 40 2f 74 6c 73 49 6e  c @srcdir@/tlsIn
0920: 74 2e 68 20 4d 61 6b 65 66 69 6c 65 0a 09 24 28  t.h Makefile..$(
0930: 43 43 29 20 24 28 43 50 50 46 4c 41 47 53 29 20  CC) $(CPPFLAGS) 
0940: 24 28 43 46 4c 41 47 53 29 20 2d 6f 20 74 6c 73  $(CFLAGS) -o tls
0950: 58 35 30 39 2e 6f 20 2d 63 20 40 73 72 63 64 69  X509.o -c @srcdi
0960: 72 40 2f 74 6c 73 58 35 30 39 2e 63 0a 0a 23 20  r@/tlsX509.c..# 
0970: 43 72 65 61 74 65 20 61 20 43 2d 73 6f 75 72 63  Create a C-sourc
0980: 65 2d 69 66 69 65 64 20 76 65 72 73 69 6f 6e 20  e-ified version 
0990: 6f 66 20 74 68 65 20 73 63 72 69 70 74 20 72 65  of the script re
09a0: 73 6f 75 72 63 65 73 0a 23 20 66 6f 72 20 54 63  sources.# for Tc
09b0: 6c 54 4c 53 20 73 6f 20 74 68 61 74 20 77 65 20  lTLS so that we 
09c0: 6f 6e 6c 79 20 6e 65 65 64 20 61 20 73 69 6e 67  only need a sing
09d0: 6c 65 20 66 69 6c 65 20 74 6f 20 65 6e 61 62 6c  le file to enabl
09e0: 65 0a 23 20 74 68 69 73 20 65 78 74 65 6e 73 69  e.# this extensi
09f0: 6f 6e 0a 74 6c 73 2e 74 63 6c 2e 68 3a 20 40 73  on.tls.tcl.h: @s
0a00: 72 63 64 69 72 40 2f 74 6c 73 2e 74 63 6c 20 4d  rcdir@/tls.tcl M
0a10: 61 6b 65 66 69 6c 65 0a 09 6f 64 20 2d 41 20 6e  akefile..od -A n
0a20: 20 2d 76 20 2d 74 20 78 43 20 3c 20 27 40 73 72   -v -t xC < '@sr
0a30: 63 64 69 72 40 2f 74 6c 73 2e 74 63 6c 27 20 3e  cdir@/tls.tcl' >
0a40: 20 74 6c 73 2e 74 63 6c 2e 68 2e 6e 65 77 2e 31   tls.tcl.h.new.1
0a50: 0a 09 73 65 64 20 27 73 40 20 20 2a 40 40 67 3b  ..sed 's@  *@@g;
0a60: 73 40 2e 2e 40 30 78 26 2c 20 40 67 27 20 3c 20  s@..@0x&, @g' < 
0a70: 74 6c 73 2e 74 63 6c 2e 68 2e 6e 65 77 2e 31 20  tls.tcl.h.new.1 
0a80: 3e 20 74 6c 73 2e 74 63 6c 2e 68 2e 6e 65 77 2e  > tls.tcl.h.new.
0a90: 32 0a 09 72 6d 20 2d 66 20 74 6c 73 2e 74 63 6c  2..rm -f tls.tcl
0aa0: 2e 68 2e 6e 65 77 2e 31 0a 09 6d 76 20 74 6c 73  .h.new.1..mv tls
0ab0: 2e 74 63 6c 2e 68 2e 6e 65 77 2e 32 20 74 6c 73  .tcl.h.new.2 tls
0ac0: 2e 74 63 6c 2e 68 0a 0a 23 20 43 72 65 61 74 65  .tcl.h..# Create
0ad0: 20 64 65 66 61 75 6c 74 20 44 48 20 70 61 72 61   default DH para
0ae0: 6d 65 74 65 72 73 0a 64 68 5f 70 61 72 61 6d 73  meters.dh_params
0af0: 2e 68 3a 20 40 73 72 63 64 69 72 40 2f 67 65 6e  .h: @srcdir@/gen
0b00: 5f 64 68 5f 70 61 72 61 6d 73 20 4d 61 6b 65 66  _dh_params Makef
0b10: 69 6c 65 0a 09 73 68 20 40 73 72 63 64 69 72 40  ile..sh @srcdir@
0b20: 2f 67 65 6e 5f 64 68 5f 70 61 72 61 6d 73 20 40  /gen_dh_params @
0b30: 47 45 4e 5f 44 48 5f 50 41 52 41 4d 53 5f 41 52  GEN_DH_PARAMS_AR
0b40: 47 53 40 20 3e 20 64 68 5f 70 61 72 61 6d 73 2e  GS@ > dh_params.
0b50: 68 2e 6e 65 77 0a 09 6d 76 20 64 68 5f 70 61 72  h.new..mv dh_par
0b60: 61 6d 73 2e 68 2e 6e 65 77 20 64 68 5f 70 61 72  ams.h.new dh_par
0b70: 61 6d 73 2e 68 0a 0a 23 20 49 6e 73 74 61 6c 6c  ams.h..# Install
0b80: 20 74 68 65 20 65 78 74 65 6e 73 69 6f 6e 0a 69   the extension.i
0b90: 6e 73 74 61 6c 6c 3a 20 40 45 58 54 45 4e 53 49  nstall: @EXTENSI
0ba0: 4f 4e 5f 54 41 52 47 45 54 40 20 70 6b 67 49 6e  ON_TARGET@ pkgIn
0bb0: 64 65 78 2e 74 63 6c 0a 09 24 28 49 4e 53 54 41  dex.tcl..$(INSTA
0bc0: 4c 4c 29 20 2d 64 20 27 24 28 44 45 53 54 44 49  LL) -d '$(DESTDI
0bd0: 52 29 24 28 50 41 43 4b 41 47 45 5f 49 4e 53 54  R)$(PACKAGE_INST
0be0: 41 4c 4c 5f 44 49 52 29 27 0a 09 24 28 49 4e 53  ALL_DIR)'..$(INS
0bf0: 54 41 4c 4c 5f 50 52 4f 47 52 41 4d 29 20 40 45  TALL_PROGRAM) @E
0c00: 58 54 45 4e 53 49 4f 4e 5f 54 41 52 47 45 54 40  XTENSION_TARGET@
0c10: 20 27 24 28 44 45 53 54 44 49 52 29 24 28 50 41   '$(DESTDIR)$(PA
0c20: 43 4b 41 47 45 5f 49 4e 53 54 41 4c 4c 5f 44 49  CKAGE_INSTALL_DI
0c30: 52 29 27 0a 09 24 28 49 4e 53 54 41 4c 4c 5f 44  R)'..$(INSTALL_D
0c40: 41 54 41 29 20 20 20 20 70 6b 67 49 6e 64 65 78  ATA)    pkgIndex
0c50: 2e 74 63 6c 20 27 24 28 44 45 53 54 44 49 52 29  .tcl '$(DESTDIR)
0c60: 24 28 50 41 43 4b 41 47 45 5f 49 4e 53 54 41 4c  $(PACKAGE_INSTAL
0c70: 4c 5f 44 49 52 29 27 0a 0a 23 20 41 20 63 6f 6e  L_DIR)'..# A con
0c80: 76 69 65 6e 65 6e 74 20 68 65 6c 70 65 72 20 74  vienent helper t
0c90: 6f 20 75 6e 64 6f 20 74 68 65 20 69 6e 73 74 61  o undo the insta
0ca0: 6c 6c 61 74 69 6f 6e 20 6a 75 73 74 20 64 6f 6e  llation just don
0cb0: 65 0a 75 6e 69 6e 73 74 61 6c 6c 3a 0a 09 72 6d  e.uninstall:..rm
0cc0: 20 2d 66 20 27 24 28 44 45 53 54 44 49 52 29 24   -f '$(DESTDIR)$
0cd0: 28 50 41 43 4b 41 47 45 5f 49 4e 53 54 41 4c 4c  (PACKAGE_INSTALL
0ce0: 5f 44 49 52 29 2f 40 45 58 54 45 4e 53 49 4f 4e  _DIR)/@EXTENSION
0cf0: 5f 54 41 52 47 45 54 40 27 0a 09 72 6d 20 2d 66  _TARGET@'..rm -f
0d00: 20 27 24 28 44 45 53 54 44 49 52 29 24 28 50 41   '$(DESTDIR)$(PA
0d10: 43 4b 41 47 45 5f 49 4e 53 54 41 4c 4c 5f 44 49  CKAGE_INSTALL_DI
0d20: 52 29 2f 70 6b 67 49 6e 64 65 78 2e 74 63 6c 27  R)/pkgIndex.tcl'
0d30: 0a 09 2d 72 6d 64 69 72 20 27 24 28 44 45 53 54  ..-rmdir '$(DEST
0d40: 44 49 52 29 24 28 50 41 43 4b 41 47 45 5f 49 4e  DIR)$(PACKAGE_IN
0d50: 53 54 41 4c 4c 5f 44 49 52 29 27 0a 0a 23 20 54  STALL_DIR)'..# T
0d60: 65 73 74 20 74 61 72 67 65 74 2c 20 72 75 6e 20  est target, run 
0d70: 74 68 65 20 61 75 74 6f 6d 61 74 65 64 20 74 65  the automated te
0d80: 73 74 20 73 75 69 74 65 0a 74 65 73 74 3a 20 40  st suite.test: @
0d90: 45 58 54 45 4e 53 49 4f 4e 5f 54 41 52 47 45 54  EXTENSION_TARGET
0da0: 40 0a 09 40 54 43 4c 53 48 5f 50 52 4f 47 40 20  @..@TCLSH_PROG@ 
0db0: 40 73 72 63 64 69 72 40 2f 74 65 73 74 73 2f 61  @srcdir@/tests/a
0dc0: 6c 6c 2e 74 63 6c 20 24 28 54 45 53 54 46 4c 41  ll.tcl $(TESTFLA
0dd0: 47 53 29 20 2d 6c 6f 61 64 20 22 6c 61 70 70 65  GS) -load "lappe
0de0: 6e 64 20 61 75 74 6f 5f 70 61 74 68 20 24 28 73  nd auto_path $(s
0df0: 68 65 6c 6c 20 70 77 64 29 22 0a 0a 23 20 43 6c  hell pwd)"..# Cl
0e00: 65 61 6e 20 74 68 65 20 6c 6f 63 61 6c 20 62 75  ean the local bu
0e10: 69 6c 64 20 64 69 72 65 63 74 6f 72 79 20 66 6f  ild directory fo
0e20: 72 20 72 65 62 75 69 6c 64 20 61 67 61 69 6e 73  r rebuild agains
0e30: 74 20 74 68 65 20 73 61 6d 65 20 63 6f 6e 66 69  t the same confi
0e40: 67 75 72 61 74 69 6f 6e 0a 63 6c 65 61 6e 3a 0a  guration.clean:.
0e50: 09 72 6d 20 2d 66 20 74 6c 73 2e 6f 20 74 6c 73  .rm -f tls.o tls
0e60: 42 49 4f 2e 6f 20 74 6c 73 49 4f 2e 6f 20 74 6c  BIO.o tlsIO.o tl
0e70: 73 58 35 30 39 2e 6f 0a 09 72 6d 20 2d 66 20 40  sX509.o..rm -f @
0e80: 45 58 54 45 4e 53 49 4f 4e 5f 54 41 52 47 45 54  EXTENSION_TARGET
0e90: 40 20 73 68 61 72 65 64 2d 40 45 58 54 45 4e 53  @ shared-@EXTENS
0ea0: 49 4f 4e 5f 54 41 52 47 45 54 40 20 73 74 61 74  ION_TARGET@ stat
0eb0: 69 63 2d 40 45 58 54 45 4e 53 49 4f 4e 5f 54 41  ic-@EXTENSION_TA
0ec0: 52 47 45 54 40 0a 09 72 6d 20 2d 66 20 73 68 61  RGET@..rm -f sha
0ed0: 72 65 64 2d 40 45 58 54 45 4e 53 49 4f 4e 5f 54  red-@EXTENSION_T
0ee0: 41 52 47 45 54 40 2e 64 65 66 20 73 68 61 72 65  ARGET@.def share
0ef0: 64 2d 40 45 58 54 45 4e 53 49 4f 4e 5f 54 41 52  d-@EXTENSION_TAR
0f00: 47 45 54 40 2e 6c 69 62 0a 09 72 6d 20 2d 66 20  GET@.lib..rm -f 
0f10: 74 6c 73 2e 74 63 6c 2e 68 20 74 6c 73 2e 74 63  tls.tcl.h tls.tc
0f20: 6c 2e 68 2e 6e 65 77 2e 31 20 74 6c 73 2e 74 63  l.h.new.1 tls.tc
0f30: 6c 2e 68 2e 6e 65 77 2e 32 0a 0a 23 20 43 6c 65  l.h.new.2..# Cle
0f40: 61 6e 20 74 68 65 20 6c 6f 63 61 6c 20 62 75 69  an the local bui
0f50: 6c 64 20 64 69 72 65 63 74 6f 72 79 20 62 61 63  ld directory bac
0f60: 6b 20 74 6f 20 77 68 61 74 20 69 74 20 77 61 73  k to what it was
0f70: 20 61 66 74 65 72 20 75 6e 70 61 63 6b 69 6e 67   after unpacking
0f80: 20 74 68 65 0a 23 20 64 69 73 74 72 69 62 75 74   the.# distribut
0f90: 69 6f 6e 20 74 61 72 62 61 6c 6c 0a 64 69 73 74  ion tarball.dist
0fa0: 63 6c 65 61 6e 3a 20 63 6c 65 61 6e 0a 09 72 6d  clean: clean..rm
0fb0: 20 2d 66 20 63 6f 6e 66 69 67 2e 6c 6f 67 20 63   -f config.log c
0fc0: 6f 6e 66 69 67 2e 73 74 61 74 75 73 0a 09 72 6d  onfig.status..rm
0fd0: 20 2d 66 20 64 68 5f 70 61 72 61 6d 73 2e 68 2e   -f dh_params.h.
0fe0: 6e 65 77 20 64 68 5f 70 61 72 61 6d 73 2e 68 0a  new dh_params.h.
0ff0: 09 72 6d 20 2d 66 20 4d 61 6b 65 66 69 6c 65 20  .rm -f Makefile 
1000: 70 6b 67 49 6e 64 65 78 2e 74 63 6c 0a 09 72 6d  pkgIndex.tcl..rm
1010: 20 2d 66 20 74 63 6c 74 6c 73 2e 61 2e 6c 69 6e   -f tcltls.a.lin
1020: 6b 61 64 64 0a 0a 23 20 43 6c 65 61 6e 20 74 68  kadd..# Clean th
1030: 65 20 6c 6f 63 61 6c 20 62 75 69 6c 64 20 64 69  e local build di
1040: 72 65 63 74 6f 72 79 20 62 61 63 6b 20 74 6f 20  rectory back to 
1050: 6f 6e 6c 79 20 74 68 69 6e 67 20 74 68 69 6e 67  only thing thing
1060: 73 20 74 68 61 74 20 65 78 69 73 74 20 69 6e 0a  s that exist in.
1070: 23 20 76 65 72 73 69 6f 6e 20 63 6f 6e 74 72 6f  # version contro
1080: 6c 20 73 79 73 74 65 6d 0a 6d 72 70 72 6f 70 65  l system.mrprope
1090: 72 3a 20 64 69 73 74 63 6c 65 61 6e 0a 09 72 6d  r: distclean..rm
10a0: 20 2d 66 20 40 73 72 63 64 69 72 40 2f 63 6f 6e   -f @srcdir@/con
10b0: 66 69 67 75 72 65 20 40 73 72 63 64 69 72 40 2f  figure @srcdir@/
10c0: 63 6f 6e 66 69 67 2e 73 75 62 20 40 73 72 63 64  config.sub @srcd
10d0: 69 72 40 2f 63 6f 6e 66 69 67 2e 67 75 65 73 73  ir@/config.guess
10e0: 20 40 73 72 63 64 69 72 40 2f 69 6e 73 74 61 6c   @srcdir@/instal
10f0: 6c 2d 73 68 0a 09 72 6d 20 2d 66 20 40 73 72 63  l-sh..rm -f @src
1100: 64 69 72 40 2f 61 63 6c 6f 63 61 6c 2e 6d 34 0a  dir@/aclocal.m4.
1110: 09 72 6d 20 2d 72 66 20 40 73 72 63 64 69 72 40  .rm -rf @srcdir@
1120: 2f 61 75 74 6f 6d 34 74 65 2e 63 61 63 68 65 0a  /autom4te.cache.
1130: 0a 2e 50 48 4f 4e 59 3a 20 61 6c 6c 20 69 6e 73  ..PHONY: all ins
1140: 74 61 6c 6c 20 75 6e 69 6e 73 74 61 6c 6c 20 63  tall uninstall c
1150: 6c 65 61 6e 20 64 69 73 74 63 6c 65 61 6e 20 6d  lean distclean m
1160: 72 70 72 6f 70 65 72 20 74 65 73 74 0a 2d 2d 0a  rproper test.--.
1170: 43 43 20 3d 20 43 4c 0a 41 52 20 3d 20 66 61 6c  CC = CL.AR = fal
1180: 73 65 0a 52 41 4e 4c 49 42 20 3d 20 66 61 6c 73  se.RANLIB = fals
1190: 65 0a 43 46 4c 41 47 53 20 3d 20 24 28 4f 50 45  e.CFLAGS = $(OPE
11a0: 4e 53 53 4c 5f 43 46 4c 41 47 53 29 20 0a 43 50  NSSL_CFLAGS) .CP
11b0: 50 46 4c 41 47 53 20 3d 20 24 28 4f 50 45 4e 53  PFLAGS = $(OPENS
11c0: 53 4c 5f 43 50 50 46 4c 41 47 53 29 20 2d 49 24  SL_CPPFLAGS) -I$
11d0: 28 4f 50 45 4e 53 53 4c 5f 44 49 52 29 2f 69 6e  (OPENSSL_DIR)/in
11e0: 63 6c 75 64 65 20 2d 49 24 28 54 43 4c 5f 44 49  clude -I$(TCL_DI
11f0: 52 29 2f 69 6e 63 6c 75 64 65 20 2d 44 50 41 43  R)/include -DPAC
1200: 4b 41 47 45 5f 56 45 52 53 49 4f 4e 3d 22 5c 22  KAGE_VERSION="\"
1210: 24 28 50 41 43 4b 41 47 45 5f 56 45 52 53 49 4f  $(PACKAGE_VERSIO
1220: 4e 29 5c 22 22 20 2d 49 2e 2e 20 2d 49 2e 20 2d  N)\"" -I.. -I. -
1230: 44 55 53 45 5f 54 43 4c 5f 53 54 55 42 53 3d 31  DUSE_TCL_STUBS=1
1240: 20 2d 44 55 53 45 5f 54 43 4c 5f 53 54 55 42 53   -DUSE_TCL_STUBS
1250: 3d 31 0a 4c 44 46 4c 41 47 53 20 3d 20 20 2d 4c  =1.LDFLAGS =  -L
1260: 44 0a 4c 49 42 53 20 3d 20 24 28 4f 50 45 4e 53  D.LIBS = $(OPENS
1270: 53 4c 5f 4c 49 42 53 29 20 24 28 54 43 4c 5f 44  SL_LIBS) $(TCL_D
1280: 49 52 29 2f 6c 69 62 2f 6c 69 62 74 63 6c 73 74  IR)/lib/libtclst
1290: 75 62 38 36 2e 6c 69 62 20 77 73 32 5f 33 32 2e  ub86.lib ws2_32.
12a0: 6c 69 62 20 61 64 76 61 70 69 33 32 2e 6c 69 62  lib advapi32.lib
12b0: 20 63 72 79 70 74 33 32 2e 6c 69 62 20 75 73 65   crypt32.lib use
12c0: 72 33 32 2e 6c 69 62 0a 50 41 43 4b 41 47 45 5f  r32.lib.PACKAGE_
12d0: 56 45 52 53 49 4f 4e 20 3d 20 31 2e 37 2e 31 39  VERSION = 1.7.19
12e0: 0a 70 72 65 66 69 78 20 3d 20 2f 0a 65 78 65 63  .prefix = /.exec
12f0: 5f 70 72 65 66 69 78 20 3d 20 2f 0a 6c 69 62 64  _prefix = /.libd
1300: 69 72 20 3d 20 2f 6c 69 62 0a 54 43 4c 5f 50 41  ir = /lib.TCL_PA
1310: 43 4b 41 47 45 5f 50 41 54 48 20 3d 20 0a 50 41  CKAGE_PATH = .PA
1320: 43 4b 41 47 45 5f 49 4e 53 54 41 4c 4c 5f 44 49  CKAGE_INSTALL_DI
1330: 52 20 3d 20 24 28 54 43 4c 5f 50 41 43 4b 41 47  R = $(TCL_PACKAG
1340: 45 5f 50 41 54 48 29 2f 74 63 6c 74 6c 73 24 28  E_PATH)/tcltls$(
1350: 50 41 43 4b 41 47 45 5f 56 45 52 53 49 4f 4e 29  PACKAGE_VERSION)
1360: 0a 49 4e 53 54 41 4c 4c 20 3d 20 66 61 6c 73 65  .INSTALL = false
1370: 0a 49 4e 53 54 41 4c 4c 5f 50 52 4f 47 52 41 4d  .INSTALL_PROGRAM
1380: 20 3d 20 66 61 6c 73 65 0a 49 4e 53 54 41 4c 4c   = false.INSTALL
1390: 5f 44 41 54 41 20 3d 20 66 61 6c 73 65 0a 56 50  _DATA = false.VP
13a0: 41 54 48 20 3d 20 2e 2e 0a 0a 61 6c 6c 3a 20 74  ATH = ....all: t
13b0: 63 6c 74 6c 73 2e 64 6c 6c 0a 0a 74 63 6c 74 6c  cltls.dll..tcltl
13c0: 73 2e 64 6c 6c 3a 20 73 68 61 72 65 64 2d 74 63  s.dll: shared-tc
13d0: 6c 74 6c 73 2e 64 6c 6c 0a 09 52 45 4e 20 73 68  ltls.dll..REN sh
13e0: 61 72 65 64 2d 74 63 6c 74 6c 73 2e 64 6c 6c 20  ared-tcltls.dll 
13f0: 74 63 6c 74 6c 73 2e 64 6c 6c 0a 0a 23 20 54 68  tcltls.dll..# Th
1400: 65 20 73 68 61 72 65 64 20 6f 62 6a 65 63 74 20  e shared object 
1410: 74 61 72 67 65 74 0a 73 68 61 72 65 64 2d 74 63  target.shared-tc
1420: 6c 74 6c 73 2e 64 6c 6c 3a 20 74 6c 73 2e 6f 20  ltls.dll: tls.o 
1430: 74 6c 73 42 49 4f 2e 6f 20 74 6c 73 49 4f 2e 6f  tlsBIO.o tlsIO.o
1440: 20 74 6c 73 58 35 30 39 2e 6f 20 4d 61 6b 65 66   tlsX509.o Makef
1450: 69 6c 65 2e 76 63 0a 09 24 28 43 43 29 20 24 28  ile.vc..$(CC) $(
1460: 43 50 50 46 4c 41 47 53 29 20 24 28 43 46 4c 41  CPPFLAGS) $(CFLA
1470: 47 53 29 20 24 28 4c 44 46 4c 41 47 53 29 20 2d  GS) $(LDFLAGS) -
1480: 46 65 73 68 61 72 65 64 2d 74 63 6c 74 6c 73 2e  Feshared-tcltls.
1490: 64 6c 6c 20 74 6c 73 2e 6f 20 74 6c 73 42 49 4f  dll tls.o tlsBIO
14a0: 2e 6f 20 74 6c 73 49 4f 2e 6f 20 74 6c 73 58 35  .o tlsIO.o tlsX5
14b0: 30 39 2e 6f 20 24 28 4c 49 42 53 29 0a 0a 23 20  09.o $(LIBS)..# 
14c0: 54 68 65 20 73 74 61 74 69 63 20 74 61 72 67 65  The static targe
14d0: 74 0a 73 74 61 74 69 63 2d 74 63 6c 74 6c 73 2e  t.static-tcltls.
14e0: 64 6c 6c 3a 20 74 6c 73 2e 6f 20 74 6c 73 42 49  dll: tls.o tlsBI
14f0: 4f 2e 6f 20 74 6c 73 49 4f 2e 6f 20 74 6c 73 58  O.o tlsIO.o tlsX
1500: 35 30 39 2e 6f 20 4d 61 6b 65 66 69 6c 65 2e 76  509.o Makefile.v
1510: 63 0a 09 24 28 41 52 29 20 72 63 75 20 73 74 61  c..$(AR) rcu sta
1520: 74 69 63 2d 74 63 6c 74 6c 73 2e 64 6c 6c 20 74  tic-tcltls.dll t
1530: 6c 73 2e 6f 20 74 6c 73 42 49 4f 2e 6f 20 74 6c  ls.o tlsBIO.o tl
1540: 73 49 4f 2e 6f 20 74 6c 73 58 35 30 39 2e 6f 0a  sIO.o tlsX509.o.
1550: 09 2d 24 28 52 41 4e 4c 49 42 29 20 73 74 61 74  .-$(RANLIB) stat
1560: 69 63 2d 74 63 6c 74 6c 73 2e 64 6c 6c 0a 0a 23  ic-tcltls.dll..#
1570: 20 44 65 70 65 6e 64 65 6e 63 69 65 73 20 66 6f   Dependencies fo
1580: 72 20 61 6c 6c 20 6f 75 72 20 74 61 72 67 65 74  r all our target
1590: 73 0a 74 6c 73 2e 6f 3a 20 2e 2e 2f 74 6c 73 2e  s.tls.o: ../tls.
15a0: 63 20 2e 2e 2f 74 6c 73 49 6e 74 2e 68 20 2e 2e  c ../tlsInt.h ..
15b0: 2f 74 63 6c 4f 70 74 73 2e 68 20 74 6c 73 2e 74  /tclOpts.h tls.t
15c0: 63 6c 2e 68 20 64 68 5f 70 61 72 61 6d 73 2e 68  cl.h dh_params.h
15d0: 20 4d 61 6b 65 66 69 6c 65 2e 76 63 0a 09 24 28   Makefile.vc..$(
15e0: 43 43 29 20 24 28 43 50 50 46 4c 41 47 53 29 20  CC) $(CPPFLAGS) 
15f0: 24 28 43 46 4c 41 47 53 29 20 2d 46 6f 74 6c 73  $(CFLAGS) -Fotls
1600: 2e 6f 20 2d 63 20 2e 2e 2f 74 6c 73 2e 63 0a 0a  .o -c ../tls.c..
1610: 74 6c 73 42 49 4f 2e 6f 3a 20 2e 2e 2f 74 6c 73  tlsBIO.o: ../tls
1620: 42 49 4f 2e 63 20 2e 2e 2f 74 6c 73 49 6e 74 2e  BIO.c ../tlsInt.
1630: 68 20 4d 61 6b 65 66 69 6c 65 2e 76 63 0a 09 24  h Makefile.vc..$
1640: 28 43 43 29 20 24 28 43 50 50 46 4c 41 47 53 29  (CC) $(CPPFLAGS)
1650: 20 24 28 43 46 4c 41 47 53 29 20 2d 46 6f 74 6c   $(CFLAGS) -Fotl
1660: 73 42 49 4f 2e 6f 20 2d 63 20 2e 2e 2f 74 6c 73  sBIO.o -c ../tls
1670: 42 49 4f 2e 63 0a 0a 74 6c 73 49 4f 2e 6f 3a 20  BIO.c..tlsIO.o: 
1680: 2e 2e 2f 74 6c 73 49 4f 2e 63 20 2e 2e 2f 74 6c  ../tlsIO.c ../tl
1690: 73 49 6e 74 2e 68 20 4d 61 6b 65 66 69 6c 65 2e  sInt.h Makefile.
16a0: 76 63 0a 09 24 28 43 43 29 20 24 28 43 50 50 46  vc..$(CC) $(CPPF
16b0: 4c 41 47 53 29 20 24 28 43 46 4c 41 47 53 29 20  LAGS) $(CFLAGS) 
16c0: 2d 46 6f 74 6c 73 49 4f 2e 6f 20 2d 63 20 2e 2e  -FotlsIO.o -c ..
16d0: 2f 74 6c 73 49 4f 2e 63 0a 0a 74 6c 73 58 35 30  /tlsIO.c..tlsX50
16e0: 39 2e 6f 3a 20 2e 2e 2f 74 6c 73 58 35 30 39 2e  9.o: ../tlsX509.
16f0: 63 20 2e 2e 2f 74 6c 73 49 6e 74 2e 68 20 4d 61  c ../tlsInt.h Ma
1700: 6b 65 66 69 6c 65 2e 76 63 0a 09 24 28 43 43 29  kefile.vc..$(CC)
1710: 20 24 28 43 50 50 46 4c 41 47 53 29 20 24 28 43   $(CPPFLAGS) $(C
1720: 46 4c 41 47 53 29 20 2d 46 6f 74 6c 73 58 35 30  FLAGS) -FotlsX50
1730: 39 2e 6f 20 2d 63 20 2e 2e 2f 74 6c 73 58 35 30  9.o -c ../tlsX50
1740: 39 2e 63 0a 0a 23 20 43 72 65 61 74 65 20 61 20  9.c..# Create a 
1750: 43 2d 73 6f 75 72 63 65 2d 69 66 69 65 64 20 76  C-source-ified v
1760: 65 72 73 69 6f 6e 20 6f 66 20 74 68 65 20 73 63  ersion of the sc
1770: 72 69 70 74 20 72 65 73 6f 75 72 63 65 73 0a 23  ript resources.#
1780: 20 66 6f 72 20 54 63 6c 54 4c 53 20 73 6f 20 74   for TclTLS so t
1790: 68 61 74 20 77 65 20 6f 6e 6c 79 20 6e 65 65 64  hat we only need
17a0: 20 61 20 73 69 6e 67 6c 65 20 66 69 6c 65 20 74   a single file t
17b0: 6f 20 65 6e 61 62 6c 65 0a 23 20 74 68 69 73 20  o enable.# this 
17c0: 65 78 74 65 6e 73 69 6f 6e 0a 23 20 43 72 65 61  extension.# Crea
17d0: 74 65 20 64 65 66 61 75 6c 74 20 44 48 20 70 61  te default DH pa
17e0: 72 61 6d 65 74 65 72 73 0a 2e 63 2e 6f 3a 0a 0a  rameters..c.o:..
17f0: 23 20 49 6e 73 74 61 6c 6c 20 74 68 65 20 65 78  # Install the ex
1800: 74 65 6e 73 69 6f 6e 0a 69 6e 73 74 61 6c 6c 3a  tension.install:
1810: 20 74 63 6c 74 6c 73 2e 64 6c 6c 20 70 6b 67 49   tcltls.dll pkgI
1820: 6e 64 65 78 2e 74 63 6c 0a 09 24 28 49 4e 53 54  ndex.tcl..$(INST
1830: 41 4c 4c 29 20 2d 64 20 27 24 28 44 45 53 54 44  ALL) -d '$(DESTD
1840: 49 52 29 24 28 50 41 43 4b 41 47 45 5f 49 4e 53  IR)$(PACKAGE_INS
1850: 54 41 4c 4c 5f 44 49 52 29 27 0a 09 24 28 49 4e  TALL_DIR)'..$(IN
1860: 53 54 41 4c 4c 5f 50 52 4f 47 52 41 4d 29 20 74  STALL_PROGRAM) t
1870: 63 6c 74 6c 73 2e 64 6c 6c 20 27 24 28 44 45 53  cltls.dll '$(DES
1880: 54 44 49 52 29 24 28 50 41 43 4b 41 47 45 5f 49  TDIR)$(PACKAGE_I
1890: 4e 53 54 41 4c 4c 5f 44 49 52 29 27 0a 09 24 28  NSTALL_DIR)'..$(
18a0: 49 4e 53 54 41 4c 4c 5f 44 41 54 41 29 20 20 20  INSTALL_DATA)   
18b0: 20 70 6b 67 49 6e 64 65 78 2e 74 63 6c 20 27 24   pkgIndex.tcl '$
18c0: 28 44 45 53 54 44 49 52 29 24 28 50 41 43 4b 41  (DESTDIR)$(PACKA
18d0: 47 45 5f 49 4e 53 54 41 4c 4c 5f 44 49 52 29 27  GE_INSTALL_DIR)'
18e0: 0a 0a 23 20 41 20 63 6f 6e 76 69 65 6e 65 6e 74  ..# A convienent
18f0: 20 68 65 6c 70 65 72 20 74 6f 20 75 6e 64 6f 20   helper to undo 
1900: 74 68 65 20 69 6e 73 74 61 6c 6c 61 74 69 6f 6e  the installation
1910: 20 6a 75 73 74 20 64 6f 6e 65 0a 75 6e 69 6e 73   just done.unins
1920: 74 61 6c 6c 3a 0a 09 44 45 4c 20 2f 46 20 27 24  tall:..DEL /F '$
1930: 28 44 45 53 54 44 49 52 29 24 28 50 41 43 4b 41  (DESTDIR)$(PACKA
1940: 47 45 5f 49 4e 53 54 41 4c 4c 5f 44 49 52 29 2f  GE_INSTALL_DIR)/
1950: 74 63 6c 74 6c 73 2e 64 6c 6c 27 0a 09 44 45 4c  tcltls.dll'..DEL
1960: 20 2f 46 20 27 24 28 44 45 53 54 44 49 52 29 24   /F '$(DESTDIR)$
1970: 28 50 41 43 4b 41 47 45 5f 49 4e 53 54 41 4c 4c  (PACKAGE_INSTALL
1980: 5f 44 49 52 29 2f 70 6b 67 49 6e 64 65 78 2e 74  _DIR)/pkgIndex.t
1990: 63 6c 27 0a 09 2d 44 45 4c 20 2f 46 20 27 24 28  cl'..-DEL /F '$(
19a0: 44 45 53 54 44 49 52 29 24 28 50 41 43 4b 41 47  DESTDIR)$(PACKAG
19b0: 45 5f 49 4e 53 54 41 4c 4c 5f 44 49 52 29 27 0a  E_INSTALL_DIR)'.
19c0: 0a 23 20 54 65 73 74 20 74 61 72 67 65 74 2c 20  .# Test target, 
19d0: 72 75 6e 20 74 68 65 20 61 75 74 6f 6d 61 74 65  run the automate
19e0: 64 20 74 65 73 74 20 73 75 69 74 65 0a 23 20 43  d test suite.# C
19f0: 6c 65 61 6e 20 74 68 65 20 6c 6f 63 61 6c 20 62  lean the local b
1a00: 75 69 6c 64 20 64 69 72 65 63 74 6f 72 79 20 66  uild directory f
1a10: 6f 72 20 72 65 62 75 69 6c 64 20 61 67 61 69 6e  or rebuild again
1a20: 73 74 20 74 68 65 20 73 61 6d 65 20 63 6f 6e 66  st the same conf
1a30: 69 67 75 72 61 74 69 6f 6e 0a 63 6c 65 61 6e 3a  iguration.clean:
1a40: 0a 09 44 45 4c 20 2f 46 20 74 6c 73 2e 6f 20 74  ..DEL /F tls.o t
1a50: 6c 73 42 49 4f 2e 6f 20 74 6c 73 49 4f 2e 6f 20  lsBIO.o tlsIO.o 
1a60: 74 6c 73 58 35 30 39 2e 6f 0a 09 44 45 4c 20 2f  tlsX509.o..DEL /
1a70: 46 20 74 63 6c 74 6c 73 2e 64 6c 6c 20 73 68 61  F tcltls.dll sha
1a80: 72 65 64 2d 74 63 6c 74 6c 73 2e 64 6c 6c 20 73  red-tcltls.dll s
1a90: 74 61 74 69 63 2d 74 63 6c 74 6c 73 2e 64 6c 6c  tatic-tcltls.dll
1aa0: 0a 09 44 45 4c 20 2f 46 20 73 68 61 72 65 64 2d  ..DEL /F shared-
1ab0: 74 63 6c 74 6c 73 2e 64 6c 6c 2e 64 65 66 20 73  tcltls.dll.def s
1ac0: 68 61 72 65 64 2d 74 63 6c 74 6c 73 2e 64 6c 6c  hared-tcltls.dll
1ad0: 2e 6c 69 62 0a 0a 23 20 43 6c 65 61 6e 20 74 68  .lib..# Clean th
1ae0: 65 20 6c 6f 63 61 6c 20 62 75 69 6c 64 20 64 69  e local build di
1af0: 72 65 63 74 6f 72 79 20 62 61 63 6b 20 74 6f 20  rectory back to 
1b00: 77 68 61 74 20 69 74 20 77 61 73 20 61 66 74 65  what it was afte
1b10: 72 20 75 6e 70 61 63 6b 69 6e 67 20 74 68 65 0a  r unpacking the.
1b20: 23 20 64 69 73 74 72 69 62 75 74 69 6f 6e 20 74  # distribution t
1b30: 61 72 62 61 6c 6c 0a 64 69 73 74 63 6c 65 61 6e  arball.distclean
1b40: 3a 20 63 6c 65 61 6e 0a 09 44 45 4c 20 2f 46 20  : clean..DEL /F 
1b50: 63 6f 6e 66 69 67 2e 6c 6f 67 20 63 6f 6e 66 69  config.log confi
1b60: 67 2e 73 74 61 74 75 73 0a 09 44 45 4c 20 2f 46  g.status..DEL /F
1b70: 20 74 63 6c 74 6c 73 2e 61 2e 6c 69 6e 6b 61 64   tcltls.a.linkad
1b80: 64 0a 0a 23 20 43 6c 65 61 6e 20 74 68 65 20 6c  d..# Clean the l
1b90: 6f 63 61 6c 20 62 75 69 6c 64 20 64 69 72 65 63  ocal build direc
1ba0: 74 6f 72 79 20 62 61 63 6b 20 74 6f 20 6f 6e 6c  tory back to onl
1bb0: 79 20 74 68 69 6e 67 20 74 68 69 6e 67 73 20 74  y thing things t
1bc0: 68 61 74 20 65 78 69 73 74 20 69 6e 0a 23 20 76  hat exist in.# v
1bd0: 65 72 73 69 6f 6e 20 63 6f 6e 74 72 6f 6c 20 73  ersion control s
1be0: 79 73 74 65 6d 0a 6d 72 70 72 6f 70 65 72 3a 20  ystem.mrproper: 
1bf0: 64 69 73 74 63 6c 65 61 6e 0a 09 44 45 4c 20 2f  distclean..DEL /
1c00: 46 20 2e 2e 2f 63 6f 6e 66 69 67 75 72 65 20 2e  F ../configure .
1c10: 2e 2f 63 6f 6e 66 69 67 2e 73 75 62 20 2e 2e 2f  ./config.sub ../
1c20: 63 6f 6e 66 69 67 2e 67 75 65 73 73 20 2e 2e 2f  config.guess ../
1c30: 69 6e 73 74 61 6c 6c 2d 73 68 0a 09 44 45 4c 20  install-sh..DEL 
1c40: 2f 46 20 2e 2e 2f 61 63 6c 6f 63 61 6c 2e 6d 34  /F ../aclocal.m4
1c50: 0a 09 44 45 4c 20 2f 46 20 2e 2e 2f 61 75 74 6f  ..DEL /F ../auto
1c60: 6d 34 74 65 2e 63 61 63 68 65 0a 0a 2e 50 48 4f  m4te.cache...PHO
1c70: 4e 59 3a 20 61 6c 6c 20 69 6e 73 74 61 6c 6c 20  NY: all install 
1c80: 75 6e 69 6e 73 74 61 6c 6c 20 63 6c 65 61 6e 20  uninstall clean 
1c90: 64 69 73 74 63 6c 65 61 6e 20 6d 72 70 72 6f 70  distclean mrprop
1ca0: 65 72 20 74 65 73 74 0a 0a 7d 0a 0a 6d 6b 64 69  er test..}..mkdi
1cb0: 72 20 2e 2e 2f 77 69 6e 20 7c 7c 20 65 78 69 74  r ../win || exit
1cc0: 20 31 0a 6d 61 6b 65 2d 6d 61 6b 65 66 69 6c 65   1.make-makefile
1cd0: 2d 76 63 20 2e 2e 2f 77 69 6e 0a 63 64 20 2e 2e  -vc ../win.cd ..
1ce0: 2f 77 69 6e 20 7c 7c 20 65 78 69 74 20 31 0a 0a  /win || exit 1..
1cf0: 73 65 64 20 27 73 7c 40 73 72 63 64 69 72 40 7c  sed 's|@srcdir@|
1d00: 2e 2e 7c 67 3b 73 7c 40 47 45 4e 5f 44 48 5f 50  ..|g;s|@GEN_DH_P
1d10: 41 52 41 4d 53 5f 41 52 47 53 40 7c 66 61 6c 6c  ARAMS_ARGS@|fall
1d20: 62 61 63 6b 7c 67 27 20 3c 20 2e 2e 2f 4d 61 6b  back|g' < ../Mak
1d30: 65 66 69 6c 65 2e 69 6e 20 3e 20 4d 61 6b 65 66  efile.in > Makef
1d40: 69 6c 65 0a 6d 61 6b 65 20 74 6c 73 2e 74 63 6c  ile.make tls.tcl
1d50: 2e 68 20 64 68 5f 70 61 72 61 6d 73 2e 68 0a 72  .h dh_params.h.r
1d60: 6d 20 2d 66 20 4d 61 6b 65 66 69 6c 65 0a        m -f Makefile.