diff options
Diffstat (limited to 'src/lib/libcrypto/libvms.com')
-rw-r--r-- | src/lib/libcrypto/libvms.com | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/lib/libcrypto/libvms.com b/src/lib/libcrypto/libvms.com new file mode 100644 index 0000000000..44f90c65b0 --- /dev/null +++ b/src/lib/libcrypto/libvms.com | |||
@@ -0,0 +1,31 @@ | |||
1 | $! | ||
2 | $! Compile crypto.c as several subset modules and insert in crypto-xxx.olb. | ||
3 | $! If P1 is specifed, it specifies alternate list of subsets to compile. | ||
4 | $! | ||
5 | $ libname = "CRYPTO-AXP.OLB" | ||
6 | $ subset_list = "LIB,ASN1,BN,BUFFER,CONF,DES,DH,DSA,ERROR,EVP,IDEA,LHASH,MD," + - | ||
7 | "METH,OBJECTS,PEM,RAND,RC,RSA,SHA,STACK,TXT_DB,X509" | ||
8 | $ if p1 .nes. "" then subset_list = p1 | ||
9 | $! | ||
10 | $ if f$getsyi("CPU") .lt. 128 then libname = "CRYPTO-VAX.OLB" | ||
11 | $ if f$search(libname) .eqs. "" then library/create/object/log 'libname' | ||
12 | $! | ||
13 | $ cc = "cc/include=[-.include]/prefix=all" + P2 | ||
14 | $! | ||
15 | $ i = 0 | ||
16 | $ next_subset: | ||
17 | $ subset = f$element(i,",",subset_list) | ||
18 | $ if subset .eqs. "," then goto done | ||
19 | $ i = i + 1 | ||
20 | $ create crypto_'subset'.subset | ||
21 | #include "crypto.c" | ||
22 | $ ofile = "sys$disk:[]crypto_" + subset + ".obj" | ||
23 | $ on warning then goto next_subset | ||
24 | $ write sys$output "Compiling ", ofile | ||
25 | $ cc /object='ofile' crypto_'subset'.subset - | ||
26 | /define=(CRYPTO_SUBSET,CRYPTO_'subset'_SUBSET) | ||
27 | $ library/replace/log 'libname'/module=CRYPTO_'subset' 'ofile' | ||
28 | $ goto next_subset | ||
29 | $! | ||
30 | $ done: | ||
31 | $ exit | ||