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