]> git.ipfire.org Git - thirdparty/openssl.git/blob - crypto/libvms.com
Import of old SSLeay release: SSLeay 0.8.1b
[thirdparty/openssl.git] / crypto / libvms.com
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