]>
Commit | Line | Data |
---|---|---|
d02b48c6 RE |
1 | $! |
2 | $! This procedure compiles the SSL sources into 2 libraries: | |
3 | $! [.CRYPTO]CRYPTO-xxx.OLB ! crypto-graphics subroutines | |
4 | $! [.SSL]SSL-xxx.OLB ! SSL protocol. | |
5 | $! | |
6 | $! where 'xxx' specifies the machine achitecture: AXP or VAX | |
7 | $! | |
8 | $! To perform 1 sub-option, specify P1 as one of: | |
9 | $! INCLUDE CRYPTO SSL SSL_TASK | |
10 | $! | |
11 | $! Requirements: | |
12 | $! DECC 4.0 (may work with other versions) | |
13 | $! OpenVMS 6.1 (may work with other versions) | |
14 | $! | |
15 | $ original_default = f$environment("DEFAULT") | |
16 | $ proc = f$environment("PROCEDURE") | |
17 | $ proc_dir = f$parse("1.1;1",proc) - "1.1;1" | |
18 | $ set default 'proc_dir' | |
19 | $! | |
20 | $! Copy all include files to [.include] | |
21 | $! | |
22 | $ set noon | |
23 | $ if P1 .nes. "" then goto do_'p1' | |
24 | $ do_include | |
25 | $ write sys$output "Rebuilding [.include] directory..." | |
26 | $ delete [.include]*.h;* | |
27 | $ backup [.*...]*.h; includes.bck/save | |
28 | $ backup includes.bck/save [.include] | |
29 | $ delete includes.bck; | |
30 | $ if p1 .nes. "" then goto cleanup | |
31 | $! | |
32 | $! Build crypto lib. | |
33 | $! | |
34 | $ do_crypto: | |
35 | $ write sys$Output "Making CRYPTO library" | |
36 | $ set default [.crypto] | |
37 | $ @libvms | |
38 | $ set default [-] | |
39 | $ if p1 .nes. "" then goto cleanup | |
40 | $! | |
41 | $! Build SSL lib. | |
42 | $! | |
43 | $ do_ssl: | |
44 | $ write sys$output "Making SSL library" | |
45 | $ set default [.ssl] | |
46 | $ libname = "ssl-axp.olb" | |
47 | $ if f$getsyi("CPU") .lt. 128 then libname = "ssl-vax.olb" | |
48 | $ if f$search(libname) .eqs. "" then library/create/log 'libname' | |
49 | $ cc ssl.c/include=[-.include]/prefix=all | |
50 | $ library/replace 'libname' ssl.obj | |
51 | $ set default [-] | |
52 | $ if p1 .nes. "" then goto cleanup | |
53 | $! | |
54 | $ do_ssl_task: | |
55 | $ write sys$output "Building SSL_TASK.EXE, the DECnet-based SSL engine" | |
56 | $ set default [.ssl] | |
57 | $ libname = "ssl-axp.olb" | |
58 | $ if f$getsyi("CPU") .lt. 128 then libname = "ssl-vax.olb" | |
59 | $ cc ssl_task/include=[-.include]/prefix=all | |
60 | $ cryptolib = "[-.crypto]crypto-" + f$element(1,"-",libname) | |
61 | $ link ssl_task,'libname'/library,'cryptolib'/library | |
62 | $! | |
63 | $ cleanup: | |
64 | $ set default 'original_default' | |
65 | $ write sys$output "Done" |