Artifact
db739bcb0b7f156a61e8ea8a4cdc2905ab3e457c:
0000: 43 43 20 3d 20 40 43 43 40 0a 41 52 20 3d 20 40 CC = @CC@.AR = @
0010: 41 52 40 0a 52 41 4e 4c 49 42 20 3d 20 40 52 41 AR@.RANLIB = @RA
0020: 4e 4c 49 42 40 0a 43 46 4c 41 47 53 20 3d 20 40 NLIB@.CFLAGS = @
0030: 43 46 4c 41 47 53 40 20 40 53 48 4f 42 4a 46 4c CFLAGS@ @SHOBJFL
0040: 41 47 53 40 0a 43 50 50 46 4c 41 47 53 20 3d 20 AGS@.CPPFLAGS =
0050: 40 43 50 50 46 4c 41 47 53 40 20 2d 49 40 73 72 @CPPFLAGS@ -I@sr
0060: 63 64 69 72 40 20 2d 49 2e 20 40 44 45 46 53 40 cdir@ -I. @DEFS@
0070: 20 40 54 43 4c 5f 44 45 46 53 40 0a 4c 44 46 4c @TCL_DEFS@.LDFL
0080: 41 47 53 20 3d 20 40 4c 44 46 4c 41 47 53 40 20 AGS = @LDFLAGS@
0090: 40 53 48 4f 42 4a 4c 44 46 4c 41 47 53 40 0a 4c @SHOBJLDFLAGS@.L
00a0: 49 42 53 20 3d 20 40 4c 49 42 53 40 0a 49 4e 53 IBS = @LIBS@.INS
00b0: 54 41 4c 4c 20 3d 20 40 49 4e 53 54 41 4c 4c 40 TALL = @INSTALL@
00c0: 0a 50 41 43 4b 41 47 45 5f 56 45 52 53 49 4f 4e .PACKAGE_VERSION
00d0: 20 3d 20 40 50 41 43 4b 41 47 45 5f 56 45 52 53 = @PACKAGE_VERS
00e0: 49 4f 4e 40 0a 70 72 65 66 69 78 20 3d 20 40 70 ION@.prefix = @p
00f0: 72 65 66 69 78 40 0a 65 78 65 63 5f 70 72 65 66 refix@.exec_pref
0100: 69 78 20 3d 20 40 65 78 65 63 5f 70 72 65 66 69 ix = @exec_prefi
0110: 78 40 0a 6c 69 62 64 69 72 20 3d 20 40 6c 69 62 x@.libdir = @lib
0120: 64 69 72 40 0a 54 43 4c 5f 50 41 43 4b 41 47 45 dir@.TCL_PACKAGE
0130: 5f 50 41 54 48 20 3d 20 40 54 43 4c 5f 50 41 43 _PATH = @TCL_PAC
0140: 4b 41 47 45 5f 50 41 54 48 40 0a 50 41 43 4b 41 KAGE_PATH@.PACKA
0150: 47 45 5f 49 4e 53 54 41 4c 4c 5f 44 49 52 20 3d GE_INSTALL_DIR =
0160: 20 24 28 54 43 4c 5f 50 41 43 4b 41 47 45 5f 50 $(TCL_PACKAGE_P
0170: 41 54 48 29 2f 74 63 6c 74 6c 73 24 28 50 41 43 ATH)/tcltls$(PAC
0180: 4b 41 47 45 5f 56 45 52 53 49 4f 4e 29 0a 56 50 KAGE_VERSION).VP
0190: 41 54 48 20 3d 20 40 73 72 63 64 69 72 40 0a 0a ATH = @srcdir@..
01a0: 61 6c 6c 3a 20 40 45 58 54 45 4e 53 49 4f 4e 5f all: @EXTENSION_
01b0: 54 41 52 47 45 54 40 0a 0a 23 20 54 68 65 20 73 TARGET@..# The s
01c0: 68 61 72 65 64 20 6f 62 6a 65 63 74 20 74 61 72 hared object tar
01d0: 67 65 74 0a 74 63 6c 74 6c 73 2e 40 53 48 4f 42 get.tcltls.@SHOB
01e0: 4a 45 58 54 40 3a 20 74 6c 73 2e 6f 20 74 6c 73 JEXT@: tls.o tls
01f0: 42 49 4f 2e 6f 20 74 6c 73 49 4f 2e 6f 20 74 6c BIO.o tlsIO.o tl
0200: 73 58 35 30 39 2e 6f 20 4d 61 6b 65 66 69 6c 65 sX509.o Makefile
0210: 0a 09 24 28 43 43 29 20 24 28 43 50 50 46 4c 41 ..$(CC) $(CPPFLA
0220: 47 53 29 20 24 28 43 46 4c 41 47 53 29 20 24 28 GS) $(CFLAGS) $(
0230: 4c 44 46 4c 41 47 53 29 20 2d 6f 20 74 63 6c 74 LDFLAGS) -o tclt
0240: 6c 73 2e 40 53 48 4f 42 4a 45 58 54 40 20 74 6c ls.@SHOBJEXT@ tl
0250: 73 2e 6f 20 74 6c 73 42 49 4f 2e 6f 20 74 6c 73 s.o tlsBIO.o tls
0260: 49 4f 2e 6f 20 74 6c 73 58 35 30 39 2e 6f 20 24 IO.o tlsX509.o $
0270: 28 4c 49 42 53 29 0a 0a 23 20 54 68 65 20 73 74 (LIBS)..# The st
0280: 61 74 69 63 20 74 61 72 67 65 74 0a 74 63 6c 74 atic target.tclt
0290: 6c 73 2e 40 41 52 45 58 54 40 3a 20 74 6c 73 2e ls.@AREXT@: tls.
02a0: 6f 20 74 6c 73 42 49 4f 2e 6f 20 74 6c 73 49 4f o tlsBIO.o tlsIO
02b0: 2e 6f 20 74 6c 73 58 35 30 39 2e 6f 20 4d 61 6b .o tlsX509.o Mak
02c0: 65 66 69 6c 65 0a 09 24 28 41 52 29 20 72 63 75 efile..$(AR) rcu
02d0: 20 74 63 6c 74 6c 73 2e 61 2e 6e 65 77 20 74 6c tcltls.a.new tl
02e0: 73 2e 6f 20 74 6c 73 42 49 4f 2e 6f 20 74 6c 73 s.o tlsBIO.o tls
02f0: 49 4f 2e 6f 20 74 6c 73 58 35 30 39 2e 6f 0a 09 IO.o tlsX509.o..
0300: 24 28 52 41 4e 4c 49 42 29 20 74 63 6c 74 6c 73 $(RANLIB) tcltls
0310: 2e 61 2e 6e 65 77 0a 09 6d 76 20 74 63 6c 74 6c .a.new..mv tcltl
0320: 73 2e 61 2e 6e 65 77 20 74 63 6c 74 6c 73 2e 61 s.a.new tcltls.a
0330: 0a 0a 23 20 44 65 70 65 6e 64 65 6e 63 69 65 73 ..# Dependencies
0340: 20 66 6f 72 20 61 6c 6c 20 6f 75 72 20 74 61 72 for all our tar
0350: 67 65 74 73 0a 74 6c 73 2e 6f 3a 20 40 73 72 63 gets.tls.o: @src
0360: 64 69 72 40 2f 74 6c 73 2e 63 20 40 73 72 63 64 dir@/tls.c @srcd
0370: 69 72 40 2f 74 6c 73 49 6e 74 2e 68 20 40 73 72 ir@/tlsInt.h @sr
0380: 63 64 69 72 40 2f 74 63 6c 4f 70 74 73 2e 68 20 cdir@/tclOpts.h
0390: 74 6c 73 2e 74 63 6c 2e 68 20 64 68 5f 70 61 72 tls.tcl.h dh_par
03a0: 61 6d 73 2e 68 20 4d 61 6b 65 66 69 6c 65 0a 74 ams.h Makefile.t
03b0: 6c 73 42 49 4f 2e 6f 3a 20 40 73 72 63 64 69 72 lsBIO.o: @srcdir
03c0: 40 2f 74 6c 73 42 49 4f 2e 63 20 40 73 72 63 64 @/tlsBIO.c @srcd
03d0: 69 72 40 2f 74 6c 73 49 6e 74 2e 68 20 4d 61 6b ir@/tlsInt.h Mak
03e0: 65 66 69 6c 65 0a 74 6c 73 49 4f 2e 6f 3a 20 40 efile.tlsIO.o: @
03f0: 73 72 63 64 69 72 40 2f 74 6c 73 49 4f 2e 63 20 srcdir@/tlsIO.c
0400: 40 73 72 63 64 69 72 40 2f 74 6c 73 49 6e 74 2e @srcdir@/tlsInt.
0410: 68 20 4d 61 6b 65 66 69 6c 65 0a 74 6c 73 58 35 h Makefile.tlsX5
0420: 30 39 2e 6f 3a 20 40 73 72 63 64 69 72 40 2f 74 09.o: @srcdir@/t
0430: 6c 73 58 35 30 39 2e 63 20 40 73 72 63 64 69 72 lsX509.c @srcdir
0440: 40 2f 74 6c 73 49 6e 74 2e 68 20 4d 61 6b 65 66 @/tlsInt.h Makef
0450: 69 6c 65 0a 0a 23 20 43 72 65 61 74 65 20 61 20 ile..# Create a
0460: 43 2d 73 6f 75 72 63 65 2d 69 66 69 65 64 20 76 C-source-ified v
0470: 65 72 73 69 6f 6e 20 6f 66 20 74 68 65 20 73 63 ersion of the sc
0480: 72 69 70 74 20 72 65 73 6f 75 72 63 65 73 0a 23 ript resources.#
0490: 20 66 6f 72 20 54 63 6c 54 4c 53 20 73 6f 20 74 for TclTLS so t
04a0: 68 61 74 20 77 65 20 6f 6e 6c 79 20 6e 65 65 64 hat we only need
04b0: 20 61 20 73 69 6e 67 6c 65 20 66 69 6c 65 20 74 a single file t
04c0: 6f 20 65 6e 61 62 6c 65 0a 23 20 74 68 69 73 20 o enable.# this
04d0: 65 78 74 65 6e 73 69 6f 6e 0a 74 6c 73 2e 74 63 extension.tls.tc
04e0: 6c 2e 68 3a 20 40 73 72 63 64 69 72 40 2f 74 6c l.h: @srcdir@/tl
04f0: 73 2e 74 63 6c 0a 09 6f 64 20 2d 41 20 6e 20 2d s.tcl..od -A n -
0500: 76 20 2d 74 20 78 43 20 3c 20 27 40 73 72 63 64 v -t xC < '@srcd
0510: 69 72 40 2f 74 6c 73 2e 74 63 6c 27 20 3e 20 74 ir@/tls.tcl' > t
0520: 6c 73 2e 74 63 6c 2e 68 2e 6e 65 77 2e 31 0a 09 ls.tcl.h.new.1..
0530: 73 65 64 20 27 73 40 20 20 2a 40 40 67 3b 73 40 sed 's@ *@@g;s@
0540: 2e 2e 40 30 78 26 2c 20 40 67 27 20 3c 20 74 6c ..@0x&, @g' < tl
0550: 73 2e 74 63 6c 2e 68 2e 6e 65 77 2e 31 20 3e 20 s.tcl.h.new.1 >
0560: 74 6c 73 2e 74 63 6c 2e 68 2e 6e 65 77 2e 32 0a tls.tcl.h.new.2.
0570: 09 72 6d 20 2d 66 20 74 6c 73 2e 74 63 6c 2e 68 .rm -f tls.tcl.h
0580: 2e 6e 65 77 2e 31 0a 09 6d 76 20 74 6c 73 2e 74 .new.1..mv tls.t
0590: 63 6c 2e 68 2e 6e 65 77 2e 32 20 74 6c 73 2e 74 cl.h.new.2 tls.t
05a0: 63 6c 2e 68 0a 0a 23 20 43 72 65 61 74 65 20 64 cl.h..# Create d
05b0: 65 66 61 75 6c 74 20 44 48 20 70 61 72 61 6d 65 efault DH parame
05c0: 74 65 72 73 0a 64 68 5f 70 61 72 61 6d 73 2e 68 ters.dh_params.h
05d0: 3a 20 40 73 72 63 64 69 72 40 2f 67 65 6e 5f 64 : @srcdir@/gen_d
05e0: 68 5f 70 61 72 61 6d 73 20 4d 61 6b 65 66 69 6c h_params Makefil
05f0: 65 0a 09 40 73 72 63 64 69 72 40 2f 67 65 6e 5f e..@srcdir@/gen_
0600: 64 68 5f 70 61 72 61 6d 73 20 40 47 45 4e 5f 44 dh_params @GEN_D
0610: 48 5f 50 41 52 41 4d 53 5f 41 52 47 53 40 20 3e H_PARAMS_ARGS@ >
0620: 20 64 68 5f 70 61 72 61 6d 73 2e 68 2e 6e 65 77 dh_params.h.new
0630: 0a 09 6d 76 20 64 68 5f 70 61 72 61 6d 73 2e 68 ..mv dh_params.h
0640: 2e 6e 65 77 20 64 68 5f 70 61 72 61 6d 73 2e 68 .new dh_params.h
0650: 0a 0a 23 20 47 65 6e 65 72 69 63 20 74 61 72 67 ..# Generic targ
0660: 65 74 20 66 6f 72 20 62 75 69 6c 64 69 6e 67 20 et for building
0670: 66 69 6c 65 73 20 66 72 6f 6d 20 74 68 65 20 22 files from the "
0680: 73 72 63 64 69 72 22 0a 23 20 74 72 65 65 20 2d srcdir".# tree -
0690: 2d 20 74 68 65 20 64 65 66 61 75 6c 74 20 74 61 - the default ta
06a0: 72 67 65 74 20 77 69 6c 6c 20 6e 6f 74 20 6d 61 rget will not ma
06b0: 74 63 68 20 70 61 74 68 73 0a 2e 63 2e 6f 3a 0a tch paths..c.o:.
06c0: 09 24 28 43 43 29 20 24 28 43 50 50 46 4c 41 47 .$(CC) $(CPPFLAG
06d0: 53 29 20 24 28 43 46 4c 41 47 53 29 20 2d 6f 20 S) $(CFLAGS) -o
06e0: 22 24 40 22 20 2d 63 20 22 24 3c 22 0a 0a 23 20 "$@" -c "$<"..#
06f0: 49 6e 73 74 61 6c 6c 20 74 68 65 20 65 78 74 65 Install the exte
0700: 6e 73 69 6f 6e 0a 69 6e 73 74 61 6c 6c 3a 20 40 nsion.install: @
0710: 45 58 54 45 4e 53 49 4f 4e 5f 54 41 52 47 45 54 EXTENSION_TARGET
0720: 40 20 70 6b 67 49 6e 64 65 78 2e 74 63 6c 0a 09 @ pkgIndex.tcl..
0730: 24 28 49 4e 53 54 41 4c 4c 29 20 2d 64 20 27 24 $(INSTALL) -d '$
0740: 28 44 45 53 54 44 49 52 29 24 28 50 41 43 4b 41 (DESTDIR)$(PACKA
0750: 47 45 5f 49 4e 53 54 41 4c 4c 5f 44 49 52 29 27 GE_INSTALL_DIR)'
0760: 0a 09 24 28 49 4e 53 54 41 4c 4c 29 20 2d 63 20 ..$(INSTALL) -c
0770: 40 45 58 54 45 4e 53 49 4f 4e 5f 54 41 52 47 45 @EXTENSION_TARGE
0780: 54 40 20 70 6b 67 49 6e 64 65 78 2e 74 63 6c 20 T@ pkgIndex.tcl
0790: 27 24 28 44 45 53 54 44 49 52 29 24 28 50 41 43 '$(DESTDIR)$(PAC
07a0: 4b 41 47 45 5f 49 4e 53 54 41 4c 4c 5f 44 49 52 KAGE_INSTALL_DIR
07b0: 29 27 0a 0a 23 20 54 65 73 74 20 74 61 72 67 65 )'..# Test targe
07c0: 74 2c 20 72 75 6e 20 74 68 65 20 61 75 74 6f 6d t, run the autom
07d0: 61 74 65 64 20 74 65 73 74 20 73 75 69 74 65 0a ated test suite.
07e0: 74 65 73 74 3a 20 40 45 58 54 45 4e 53 49 4f 4e test: @EXTENSION
07f0: 5f 54 41 52 47 45 54 40 0a 09 40 54 43 4c 53 48 _TARGET@..@TCLSH
0800: 5f 50 52 4f 47 40 20 40 73 72 63 64 69 72 40 2f _PROG@ @srcdir@/
0810: 74 65 73 74 73 2f 61 6c 6c 2e 74 63 6c 20 24 28 tests/all.tcl $(
0820: 54 45 53 54 46 4c 41 47 53 29 20 2d 6c 6f 61 64 TESTFLAGS) -load
0830: 20 22 6c 61 70 70 65 6e 64 20 61 75 74 6f 5f 70 "lappend auto_p
0840: 61 74 68 20 24 28 73 68 65 6c 6c 20 70 77 64 29 ath $(shell pwd)
0850: 22 0a 0a 23 20 43 6c 65 61 6e 20 74 68 65 20 6c "..# Clean the l
0860: 6f 63 61 6c 20 62 75 69 6c 64 20 64 69 72 65 63 ocal build direc
0870: 74 6f 72 79 20 66 6f 72 20 72 65 62 75 69 6c 64 tory for rebuild
0880: 20 61 67 61 69 6e 73 74 20 74 68 65 20 73 61 6d against the sam
0890: 65 20 63 6f 6e 66 69 67 75 72 61 74 69 6f 6e 0a e configuration.
08a0: 63 6c 65 61 6e 3a 0a 09 72 6d 20 2d 66 20 74 6c clean:..rm -f tl
08b0: 73 2e 6f 20 74 6c 73 42 49 4f 2e 6f 20 74 6c 73 s.o tlsBIO.o tls
08c0: 49 4f 2e 6f 20 74 6c 73 58 35 30 39 2e 6f 0a 09 IO.o tlsX509.o..
08d0: 72 6d 20 2d 66 20 74 63 6c 74 6c 73 2e 40 53 48 rm -f tcltls.@SH
08e0: 4f 42 4a 45 58 54 40 0a 09 72 6d 20 2d 66 20 74 OBJEXT@..rm -f t
08f0: 63 6c 74 6c 73 2e 40 53 48 4f 42 4a 45 58 54 40 cltls.@SHOBJEXT@
0900: 2e 61 20 74 63 6c 74 6c 73 2e 40 53 48 4f 42 4a .a tcltls.@SHOBJ
0910: 45 58 54 40 2e 64 65 66 0a 09 72 6d 20 2d 66 20 EXT@.def..rm -f
0920: 74 63 6c 74 6c 73 2e 61 2e 6e 65 77 20 74 63 6c tcltls.a.new tcl
0930: 74 6c 73 2e 61 0a 09 72 6d 20 2d 66 20 74 6c 73 tls.a..rm -f tls
0940: 2e 74 63 6c 2e 68 2e 6e 65 77 2e 31 20 74 6c 73 .tcl.h.new.1 tls
0950: 2e 74 63 6c 2e 68 2e 6e 65 77 2e 32 0a 09 40 69 .tcl.h.new.2..@i
0960: 66 20 5b 20 27 40 73 72 63 64 69 72 40 27 20 21 f [ '@srcdir@' !
0970: 3d 20 27 2e 27 20 5d 3b 20 74 68 65 6e 20 65 63 = '.' ]; then ec
0980: 68 6f 20 72 6d 20 2d 66 20 74 6c 73 2e 74 63 6c ho rm -f tls.tcl
0990: 2e 68 3b 20 72 6d 20 2d 66 20 74 6c 73 2e 74 63 .h; rm -f tls.tc
09a0: 6c 2e 68 3b 20 66 69 0a 0a 23 20 43 6c 65 61 6e l.h; fi..# Clean
09b0: 20 74 68 65 20 6c 6f 63 61 6c 20 62 75 69 6c 64 the local build
09c0: 20 64 69 72 65 63 74 6f 72 79 20 62 61 63 6b 20 directory back
09d0: 74 6f 20 77 68 61 74 20 69 74 20 77 61 73 20 61 to what it was a
09e0: 66 74 65 72 20 75 6e 70 61 63 6b 69 6e 67 20 74 fter unpacking t
09f0: 68 65 0a 23 20 64 69 73 74 72 69 62 75 74 69 6f he.# distributio
0a00: 6e 20 74 61 72 62 61 6c 6c 0a 64 69 73 74 63 6c n tarball.distcl
0a10: 65 61 6e 3a 20 63 6c 65 61 6e 0a 09 72 6d 20 2d ean: clean..rm -
0a20: 66 20 63 6f 6e 66 69 67 2e 6c 6f 67 20 63 6f 6e f config.log con
0a30: 66 69 67 2e 73 74 61 74 75 73 0a 09 72 6d 20 2d fig.status..rm -
0a40: 66 20 64 68 5f 70 61 72 61 6d 73 2e 68 2e 6e 65 f dh_params.h.ne
0a50: 77 20 64 68 5f 70 61 72 61 6d 73 2e 68 0a 09 72 w dh_params.h..r
0a60: 6d 20 2d 66 20 4d 61 6b 65 66 69 6c 65 20 70 6b m -f Makefile pk
0a70: 67 49 6e 64 65 78 2e 74 63 6c 0a 09 72 6d 20 2d gIndex.tcl..rm -
0a80: 66 20 74 63 6c 74 6c 73 2e 61 2e 6c 69 6e 6b 61 f tcltls.a.linka
0a90: 64 64 0a 0a 23 20 43 6c 65 61 6e 20 74 68 65 20 dd..# Clean the
0aa0: 6c 6f 63 61 6c 20 62 75 69 6c 64 20 64 69 72 65 local build dire
0ab0: 63 74 6f 72 79 20 62 61 63 6b 20 74 6f 20 6f 6e ctory back to on
0ac0: 6c 79 20 74 68 69 6e 67 20 74 68 69 6e 67 73 20 ly thing things
0ad0: 74 68 61 74 20 65 78 69 73 74 20 69 6e 0a 23 20 that exist in.#
0ae0: 76 65 72 73 69 6f 6e 20 63 6f 6e 74 72 6f 6c 20 version control
0af0: 73 79 73 74 65 6d 0a 6d 72 70 72 6f 70 65 72 3a system.mrproper:
0b00: 20 64 69 73 74 63 6c 65 61 6e 0a 09 72 6d 20 2d distclean..rm -
0b10: 66 20 40 73 72 63 64 69 72 40 2f 63 6f 6e 66 69 f @srcdir@/confi
0b20: 67 75 72 65 20 40 73 72 63 64 69 72 40 2f 63 6f gure @srcdir@/co
0b30: 6e 66 69 67 2e 73 75 62 20 40 73 72 63 64 69 72 nfig.sub @srcdir
0b40: 40 2f 63 6f 6e 66 69 67 2e 67 75 65 73 73 20 40 @/config.guess @
0b50: 73 72 63 64 69 72 40 2f 69 6e 73 74 61 6c 6c 2d srcdir@/install-
0b60: 73 68 0a 09 72 6d 20 2d 66 20 40 73 72 63 64 69 sh..rm -f @srcdi
0b70: 72 40 2f 61 63 6c 6f 63 61 6c 2e 6d 34 0a 09 72 r@/aclocal.m4..r
0b80: 6d 20 2d 72 66 20 40 73 72 63 64 69 72 40 2f 61 m -rf @srcdir@/a
0b90: 75 74 6f 6d 34 74 65 2e 63 61 63 68 65 0a 09 72 utom4te.cache..r
0ba0: 6d 20 2d 66 20 40 73 72 63 64 69 72 40 2f 74 6c m -f @srcdir@/tl
0bb0: 73 2e 74 63 6c 2e 68 0a 0a 2e 50 48 4f 4e 59 3a s.tcl.h...PHONY:
0bc0: 20 61 6c 6c 20 69 6e 73 74 61 6c 6c 20 63 6c 65 all install cle
0bd0: 61 6e 20 64 69 73 74 63 6c 65 61 6e 20 6d 72 70 an distclean mrp
0be0: 72 6f 70 65 72 20 74 65 73 74 0a roper test.