Index: openssl/crypto/crypto-lib.com |
=================================================================== |
--- openssl/crypto/crypto-lib.com (revision 105093) |
+++ openssl/crypto/crypto-lib.com (working copy) |
@@ -47,11 +47,33 @@ |
$! WARNING: this should only be done to recompile some part of an already |
$! fully compiled library. |
$! |
+$! P7, if defined, specifies the C pointer size. Ignored on VAX. |
+$! ("64=ARGV" gives more efficient code with HP C V7.3 or newer.) |
+$! Supported values are: |
$! |
+$! "" Compile with default (/NOPOINTER_SIZE) |
+$! 32 Compile with /POINTER_SIZE=32 (SHORT) |
+$! 64 Compile with /POINTER_SIZE=64[=ARGV] (LONG[=ARGV]). |
+$! (Automatically select ARGV if compiler supports it.) |
+$! 64= Compile with /POINTER_SIZE=64 (LONG). |
+$! 64=ARGV Compile with /POINTER_SIZE=64=ARGV (LONG=ARGV). |
+$! |
+$! P8, if defined, specifies a directory where ZLIB files (zlib.h, |
+$! libz.olb) may be found. Optionally, a non-default object library |
+$! name may be included ("dev:[dir]libz_64.olb", for example). |
+$! |
+$! |
+$! Announce/identify. |
+$! |
+$ proc = f$environment( "procedure") |
+$ write sys$output "@@@ "+ - |
+ f$parse( proc, , , "name")+ f$parse( proc, , , "type") |
+$! |
$! Define A TCP/IP Library That We Will Need To Link To. |
$! (That Is, If We Need To Link To One.) |
$! |
$ TCPIP_LIB = "" |
+$ ZLIB_LIB = "" |
$! |
$! Check Which Architecture We Are Using. |
$! |
@@ -60,7 +82,7 @@ |
$! |
$! The Architecture Is VAX |
$! |
-$ ARCH := VAX |
+$ ARCH = "VAX" |
$! |
$! Else... |
$! |
@@ -75,39 +97,58 @@ |
$! |
$ ENDIF |
$! |
+$ ARCHD = ARCH |
+$ LIB32 = "32" |
+$ OPT_FILE = "" |
+$ POINTER_SIZE = "" |
+$! |
$! Define The Different Encryption Types. |
$! NOTE: Some might think this list ugly. However, it's made this way to |
$! reflect the SDIRS variable in [-]Makefile.org as closely as possible, |
$! thereby making it fairly easy to verify that the lists are the same. |
$! |
+$ ET_WHIRLPOOL = "WHRLPOOL" |
+$ IF ARCH .EQS. "VAX" THEN ET_WHIRLPOOL = "" |
$ ENCRYPT_TYPES = "Basic,"+ - |
"OBJECTS,"+ - |
- "MD2,MD4,MD5,SHA,MDC2,HMAC,RIPEMD,"+ - |
- "DES,RC2,RC4,RC5,IDEA,BF,CAST,CAMELLIA,SEED,"+ - |
- "BN,EC,RSA,DSA,ECDSA,DH,ECDH,DSO,ENGINE,AES,"+ - |
+ "MD2,MD4,MD5,SHA,MDC2,HMAC,RIPEMD,"+ET_WHIRLPOOL+","+ - |
+ "DES,AES,RC2,RC4,RC5,IDEA,BF,CAST,CAMELLIA,SEED,MODES,"+ - |
+ "BN,EC,RSA,DSA,ECDSA,DH,ECDH,DSO,ENGINE,"+ - |
"BUFFER,BIO,STACK,LHASH,RAND,ERR,"+ - |
- "EVP,EVP_2,ASN1,ASN1_2,PEM,X509,X509V3,"+ - |
+ "EVP,EVP_2,EVP_3,ASN1,ASN1_2,PEM,X509,X509V3,"+ - |
"CONF,TXT_DB,PKCS7,PKCS12,COMP,OCSP,UI,KRB5,"+ - |
- "STORE,CMS,PQUEUE,JPAKE" |
-$! Define The OBJ Directory. |
+ "STORE,CMS,PQUEUE,TS,JPAKE" |
$! |
-$ OBJ_DIR := SYS$DISK:[-.'ARCH'.OBJ.CRYPTO] |
+$! Check To Make Sure We Have Valid Command Line Parameters. |
$! |
-$! Define The EXE Directory. |
+$ GOSUB CHECK_OPTIONS |
$! |
-$ EXE_DIR := SYS$DISK:[-.'ARCH'.EXE.CRYPTO] |
+$! Define The OBJ and EXE Directories. |
$! |
-$! Check To Make Sure We Have Valid Command Line Parameters. |
+$ OBJ_DIR := SYS$DISK:[-.'ARCHD'.OBJ.CRYPTO] |
+$ EXE_DIR := SYS$DISK:[-.'ARCHD'.EXE.CRYPTO] |
$! |
-$ GOSUB CHECK_OPTIONS |
+$! Specify the destination directory in any /MAP option. |
$! |
+$ if (LINKMAP .eqs. "MAP") |
+$ then |
+$ LINKMAP = LINKMAP+ "=''EXE_DIR'" |
+$ endif |
+$! |
+$! Add the location prefix to the linker options file name. |
+$! |
+$ if (OPT_FILE .nes. "") |
+$ then |
+$ OPT_FILE = EXE_DIR+ OPT_FILE |
+$ endif |
+$! |
$! Initialise logical names and such |
$! |
$ GOSUB INITIALISE |
$! |
$! Tell The User What Kind of Machine We Run On. |
$! |
-$ WRITE SYS$OUTPUT "Compiling On A ",ARCH," Machine." |
+$ WRITE SYS$OUTPUT "Host system architecture: ''ARCHD'" |
$! |
$! |
$! Check To See If The Architecture Specific OBJ Directory Exists. |
@@ -138,11 +179,11 @@ |
$! |
$! Define The Library Name. |
$! |
-$ LIB_NAME := 'EXE_DIR'LIBCRYPTO.OLB |
+$ LIB_NAME := 'EXE_DIR'SSL_LIBCRYPTO'LIB32'.OLB |
$! |
$! Define The CRYPTO-LIB We Are To Use. |
$! |
-$ CRYPTO_LIB := 'EXE_DIR'LIBCRYPTO.OLB |
+$ CRYPTO_LIB := 'EXE_DIR'SSL_LIBCRYPTO'LIB32'.OLB |
$! |
$! Check To See If We Already Have A "[.xxx.EXE.CRYPTO]LIBCRYPTO.OLB" Library... |
$! |
@@ -166,15 +207,16 @@ |
$ APPS_DES = "DES/DES,CBC3_ENC" |
$ APPS_PKCS7 = "ENC/ENC;DEC/DEC;SIGN/SIGN;VERIFY/VERIFY,EXAMPLE" |
$ |
-$ LIB_ = "cryptlib,dyn_lck,mem,mem_clr,mem_dbg,cversion,ex_data,tmdiff,cpt_err,ebcdic,uid,o_time,o_str,o_dir,o_init,fips_err" |
+$ LIB_ = "cryptlib,mem,mem_clr,mem_dbg,cversion,ex_data,cpt_err,ebcdic,uid,o_time,o_str,o_dir" |
$ LIB_MD2 = "md2_dgst,md2_one" |
$ LIB_MD4 = "md4_dgst,md4_one" |
$ LIB_MD5 = "md5_dgst,md5_one" |
$ LIB_SHA = "sha_dgst,sha1dgst,sha_one,sha1_one,sha256,sha512" |
$ LIB_MDC2 = "mdc2dgst,mdc2_one" |
-$ LIB_HMAC = "hmac" |
+$ LIB_HMAC = "hmac,hm_ameth,hm_pmeth" |
$ LIB_RIPEMD = "rmd_dgst,rmd_one" |
-$ LIB_DES = "des_lib,set_key,ecb_enc,cbc_enc,"+ - |
+$ LIB_WHRLPOOL = "wp_dgst,wp_block" |
+$ LIB_DES = "set_key,ecb_enc,cbc_enc,"+ - |
"ecb3_enc,cfb64enc,cfb64ede,cfb_enc,ofb64ede,"+ - |
"enc_read,enc_writ,ofb64enc,"+ - |
"ofb_enc,str2key,pcbc_enc,qud_cksm,rand_key,"+ - |
@@ -189,7 +231,8 @@ |
$ LIB_CAST = "c_skey,c_ecb,c_enc,c_cfb64,c_ofb64" |
$ LIB_CAMELLIA = "camellia,cmll_misc,cmll_ecb,cmll_cbc,cmll_ofb,"+ - |
"cmll_cfb,cmll_ctr" |
-$ LIB_SEED = "seed,seed_cbc,seed_ecb,seed_cfb,seed_ofb" |
+$ LIB_SEED = "seed,seed_ecb,seed_cbc,seed_cfb,seed_ofb" |
+$ LIB_MODES = "cbc128,ctr128,cts128,cfb128,ofb128" |
$ LIB_BN_ASM = "[.asm]vms.mar,vms-helper" |
$ IF F$TRNLNM("OPENSSL_NO_ASM") .OR. ARCH .NES. "VAX" THEN - |
LIB_BN_ASM = "bn_asm" |
@@ -197,28 +240,30 @@ |
"bn_print,bn_rand,bn_shift,bn_word,bn_blind,"+ - |
"bn_kron,bn_sqrt,bn_gcd,bn_prime,bn_err,bn_sqr,"+LIB_BN_ASM+","+ - |
"bn_recp,bn_mont,bn_mpi,bn_exp2,bn_gf2m,bn_nist,"+ - |
- "bn_depr,bn_x931p,bn_const,bn_opt" |
+ "bn_depr,bn_const" |
$ LIB_EC = "ec_lib,ecp_smpl,ecp_mont,ecp_nist,ec_cvt,ec_mult,"+ - |
"ec_err,ec_curve,ec_check,ec_print,ec_asn1,ec_key,"+ - |
- "ec2_smpl,ec2_mult" |
+ "ec2_smpl,ec2_mult,ec_ameth,ec_pmeth,eck_prn" |
$ LIB_RSA = "rsa_eay,rsa_gen,rsa_lib,rsa_sign,rsa_saos,rsa_err,"+ - |
"rsa_pk1,rsa_ssl,rsa_none,rsa_oaep,rsa_chk,rsa_null,"+ - |
- "rsa_pss,rsa_x931,rsa_x931g,rsa_asn1,rsa_depr,rsa_eng" |
+ "rsa_pss,rsa_x931,rsa_asn1,rsa_depr,rsa_ameth,rsa_prn,"+ - |
+ "rsa_pmeth" |
$ LIB_DSA = "dsa_gen,dsa_key,dsa_lib,dsa_asn1,dsa_vrf,dsa_sign,"+ - |
- "dsa_err,dsa_ossl,dsa_depr,dsa_utl" |
+ "dsa_err,dsa_ossl,dsa_depr,dsa_ameth,dsa_pmeth,dsa_prn" |
$ LIB_ECDSA = "ecs_lib,ecs_asn1,ecs_ossl,ecs_sign,ecs_vrf,ecs_err" |
-$ LIB_DH = "dh_asn1,dh_gen,dh_key,dh_lib,dh_check,dh_err,dh_depr" |
+$ LIB_DH = "dh_asn1,dh_gen,dh_key,dh_lib,dh_check,dh_err,dh_depr,"+ - |
+ "dh_ameth,dh_pmeth,dh_prn" |
$ LIB_ECDH = "ech_lib,ech_ossl,ech_key,ech_err" |
$ LIB_DSO = "dso_dl,dso_dlfcn,dso_err,dso_lib,dso_null,"+ - |
- "dso_openssl,dso_win32,dso_vms" |
+ "dso_openssl,dso_win32,dso_vms,dso_beos" |
$ LIB_ENGINE = "eng_err,eng_lib,eng_list,eng_init,eng_ctrl,"+ - |
"eng_table,eng_pkey,eng_fat,eng_all,"+ - |
"tb_rsa,tb_dsa,tb_ecdsa,tb_dh,tb_ecdh,tb_rand,tb_store,"+ - |
- "tb_cipher,tb_digest,"+ - |
- "eng_openssl,eng_dyn,eng_cnf,eng_cryptodev,eng_padlock" |
-$ LIB_AES = "aes_core,aes_misc,aes_ecb,aes_cbc,aes_cfb,aes_ofb,"+ - |
- "aes_ctr,aes_ige,aes_wrap" |
-$ LIB_BUFFER = "buffer,buf_str,buf_err" |
+ "tb_cipher,tb_digest,tb_pkmeth,tb_asnmth,"+ - |
+ "eng_openssl,eng_dyn,eng_cnf,eng_cryptodev" |
+$ LIB_AES = "aes_core,aes_misc,aes_ecb,aes_cbc,aes_cfb,aes_ofb,aes_ctr,"+ - |
+ "aes_ige,aes_wrap" |
+$ LIB_BUFFER = "buffer,buf_err" |
$ LIB_BIO = "bio_lib,bio_cb,bio_err,"+ - |
"bss_mem,bss_null,bss_fd,"+ - |
"bss_file,bss_sock,bss_conn,"+ - |
@@ -230,33 +275,34 @@ |
$ LIB_LHASH = "lhash,lh_stats" |
$ LIB_RAND = "md_rand,randfile,rand_lib,rand_err,rand_egd,"+ - |
"rand_vms" |
-$ LIB_ERR = "err,err_def,err_all,err_prn,err_str,err_bio" |
-$ LIB_OBJECTS = "o_names,obj_dat,obj_lib,obj_err" |
-$ LIB_EVP = "encode,digest,dig_eng,evp_enc,evp_key,evp_acnf,evp_cnf,"+ - |
+$ LIB_ERR = "err,err_all,err_prn" |
+$ LIB_OBJECTS = "o_names,obj_dat,obj_lib,obj_err,obj_xref" |
+$ LIB_EVP = "encode,digest,evp_enc,evp_key,evp_acnf,"+ - |
"e_des,e_bf,e_idea,e_des3,e_camellia,"+ - |
"e_rc4,e_aes,names,e_seed,"+ - |
- "e_xcbc_d,e_rc2,e_cast,e_rc5,enc_min" |
-$ LIB_EVP_2 = "m_null,m_md2,m_md4,m_md5,m_sha,m_sha1," + - |
+ "e_xcbc_d,e_rc2,e_cast,e_rc5" |
+$ LIB_EVP_2 = "m_null,m_md2,m_md4,m_md5,m_sha,m_sha1,m_wp," + - |
"m_dss,m_dss1,m_mdc2,m_ripemd,m_ecdsa,"+ - |
"p_open,p_seal,p_sign,p_verify,p_lib,p_enc,p_dec,"+ - |
"bio_md,bio_b64,bio_enc,evp_err,e_null,"+ - |
"c_all,c_allc,c_alld,evp_lib,bio_ok,"+- |
"evp_pkey,evp_pbe,p5_crpt,p5_crpt2" |
-$ LIB_EVP_3 = "e_old" |
+$ LIB_EVP_3 = "e_old,pmeth_lib,pmeth_fn,pmeth_gn,m_sigver" |
$ LIB_ASN1 = "a_object,a_bitstr,a_utctm,a_gentm,a_time,a_int,a_octet,"+ - |
"a_print,a_type,a_set,a_dup,a_d2i_fp,a_i2d_fp,"+ - |
"a_enum,a_utf8,a_sign,a_digest,a_verify,a_mbstr,a_strex,"+ - |
"x_algor,x_val,x_pubkey,x_sig,x_req,x_attrib,x_bignum,"+ - |
"x_long,x_name,x_x509,x_x509a,x_crl,x_info,x_spki,nsseq,"+ - |
- "d2i_pu,d2i_pr,i2d_pu,i2d_pr" |
+ "x_nx509,d2i_pu,d2i_pr,i2d_pu,i2d_pr" |
$ LIB_ASN1_2 = "t_req,t_x509,t_x509a,t_crl,t_pkey,t_spki,t_bitst,"+ - |
"tasn_new,tasn_fre,tasn_enc,tasn_dec,tasn_utl,tasn_typ,"+ - |
+ "tasn_prn,ameth_lib,"+ - |
"f_int,f_string,n_pkey,"+ - |
- "f_enum,a_hdr,x_pkey,a_bool,x_exten,asn_mime,"+ - |
- "asn1_gen,asn1_par,asn1_lib,asn1_err,a_meth,a_bytes,a_strnid,"+ - |
+ "f_enum,x_pkey,a_bool,x_exten,bio_asn1,bio_ndef,asn_mime,"+ - |
+ "asn1_gen,asn1_par,asn1_lib,asn1_err,a_bytes,a_strnid,"+ - |
"evp_asn1,asn_pack,p5_pbe,p5_pbev2,p8_pkey,asn_moid" |
$ LIB_PEM = "pem_sign,pem_seal,pem_info,pem_lib,pem_all,pem_err,"+ - |
- "pem_x509,pem_xaux,pem_oth,pem_pk8,pem_pkey" |
+ "pem_x509,pem_xaux,pem_oth,pem_pk8,pem_pkey,pvkfmt" |
$ LIB_X509 = "x509_def,x509_d2,x509_r2x,x509_cmp,"+ - |
"x509_obj,x509_req,x509spki,x509_vfy,"+ - |
"x509_set,x509cset,x509rset,x509_err,"+ - |
@@ -272,7 +318,7 @@ |
$ LIB_CONF = "conf_err,conf_lib,conf_api,conf_def,conf_mod,conf_mall,conf_sap" |
$ LIB_TXT_DB = "txt_db" |
$ LIB_PKCS7 = "pk7_asn1,pk7_lib,pkcs7err,pk7_doit,pk7_smime,pk7_attr,"+ - |
- "pk7_mime" |
+ "pk7_mime,bio_pk7" |
$ LIB_PKCS12 = "p12_add,p12_asn,p12_attr,p12_crpt,p12_crt,p12_decr,"+ - |
"p12_init,p12_key,p12_kiss,p12_mutl,"+ - |
"p12_utl,p12_npas,pk12err,p12_p8d,p12_p8e" |
@@ -287,19 +333,30 @@ |
$ LIB_CMS = "cms_lib,cms_asn1,cms_att,cms_io,cms_smime,cms_err,"+ - |
"cms_sd,cms_dd,cms_cd,cms_env,cms_enc,cms_ess" |
$ LIB_PQUEUE = "pqueue" |
+$ LIB_TS = "ts_err,ts_req_utils,ts_req_print,ts_rsp_utils,ts_rsp_print,"+ - |
+ "ts_rsp_sign,ts_rsp_verify,ts_verify_ctx,ts_lib,ts_conf,"+ - |
+ "ts_asn1" |
$ LIB_JPAKE = "jpake,jpake_err" |
$! |
$! Setup exceptional compilations |
$! |
-$ ! Add definitions for no threads on OpenVMS 7.1 and higher |
+$ CC3_SHOWN = 0 |
+$ CC4_SHOWN = 0 |
+$ CC5_SHOWN = 0 |
+$ CC6_SHOWN = 0 |
+$! |
+$! The following lists must have leading and trailing commas, and no |
+$! embedded spaces. (They are scanned for ",name,".) |
+$! |
+$ ! Add definitions for no threads on OpenVMS 7.1 and higher. |
$ COMPILEWITH_CC3 = ",bss_rtcp," |
-$ ! Disable the DOLLARID warning |
-$ COMPILEWITH_CC4 = ",a_utctm,bss_log,o_time,o_dir" |
-$ ! Disable disjoint optimization |
+$ ! Disable the DOLLARID warning. Not needed with /STANDARD=RELAXED. |
+$ COMPILEWITH_CC4 = "" !!! ",a_utctm,bss_log,o_time,o_dir," |
+$ ! Disable disjoint optimization on VAX with DECC. |
$ COMPILEWITH_CC5 = ",md2_dgst,md4_dgst,md5_dgst,mdc2dgst," + - |
"seed,sha_dgst,sha1dgst,rmd_dgst,bf_enc," |
-$ ! Disable the MIXLINKAGE warning |
-$ COMPILEWITH_CC6 = ",enc_read,set_key," |
+$ ! Disable the MIXLINKAGE warning. |
+$ COMPILEWITH_CC6 = "" !!! ",enc_read,set_key," |
$! |
$! Figure Out What Other Modules We Are To Build. |
$! |
@@ -359,7 +416,7 @@ |
$ IF F$TYPE('LIB_MODULE') .EQS. "" |
$ THEN |
$ WRITE SYS$ERROR "" |
-$ WRITE SYS$ERROR "The module ",MODULE_NAME," does not exist. Continuing..." |
+$ WRITE SYS$ERROR "The module ",MODULE_NAME1," does not exist. Continuing..." |
$ WRITE SYS$ERROR "" |
$ GOTO MODULE_NEXT |
$ ENDIF |
@@ -505,31 +562,60 @@ |
$ ENDIF |
$ IF (MODULE_NAME.NES."") |
$ THEN |
-$ WRITE SYS$OUTPUT " ",FILE_NAME,"" |
+$ WRITE SYS$OUTPUT " ",FILE_NAME,"" |
$ ENDIF |
$! |
$! Compile The File. |
$! |
$ ON ERROR THEN GOTO NEXT_FILE |
-$ FILE_NAME0 = F$ELEMENT(0,".",FILE_NAME) |
+$ FILE_NAME0 = ","+ F$ELEMENT(0,".",FILE_NAME)+ "," |
$ IF FILE_NAME - ".mar" .NES. FILE_NAME |
$ THEN |
$ MACRO/OBJECT='OBJECT_FILE' 'SOURCE_FILE' |
$ ELSE |
$ IF COMPILEWITH_CC3 - FILE_NAME0 .NES. COMPILEWITH_CC3 |
$ THEN |
+$ write sys$output " \Using special rule (3)" |
+$ if (.not. CC3_SHOWN) |
+$ then |
+$ CC3_SHOWN = 1 |
+$ x = " "+ CC3 |
+$ write /symbol sys$output x |
+$ endif |
$ CC3/OBJECT='OBJECT_FILE' 'SOURCE_FILE' |
$ ELSE |
$ IF COMPILEWITH_CC4 - FILE_NAME0 .NES. COMPILEWITH_CC4 |
$ THEN |
+$ write /symbol sys$output " \Using special rule (4)" |
+$ if (.not. CC4_SHOWN) |
+$ then |
+$ CC4_SHOWN = 1 |
+$ x = " "+ CC4 |
+$ write /symbol sys$output x |
+$ endif |
$ CC4/OBJECT='OBJECT_FILE' 'SOURCE_FILE' |
$ ELSE |
-$ IF COMPILEWITH_CC5 - FILE_NAME0 .NES. COMPILEWITH_CC5 |
+$ IF CC5_DIFFERENT .AND. - |
+ (COMPILEWITH_CC5 - FILE_NAME0 .NES. COMPILEWITH_CC5) |
$ THEN |
+$ write sys$output " \Using special rule (5)" |
+$ if (.not. CC5_SHOWN) |
+$ then |
+$ CC5_SHOWN = 1 |
+$ x = " "+ CC5 |
+$ write /symbol sys$output x |
+$ endif |
$ CC5/OBJECT='OBJECT_FILE' 'SOURCE_FILE' |
$ ELSE |
$ IF COMPILEWITH_CC6 - FILE_NAME0 .NES. COMPILEWITH_CC6 |
$ THEN |
+$ write sys$output " \Using special rule (6)" |
+$ if (.not. CC6_SHOWN) |
+$ then |
+$ CC6_SHOWN = 1 |
+$ x = " "+ CC6 |
+$ write /symbol sys$output x |
+$ endif |
$ CC6/OBJECT='OBJECT_FILE' 'SOURCE_FILE' |
$ ELSE |
$ CC/OBJECT='OBJECT_FILE' 'SOURCE_FILE' |
@@ -576,38 +662,22 @@ |
$! |
$! Tell the user what happens |
$! |
-$ WRITE SYS$OUTPUT " ",APPLICATION,".exe" |
+$ WRITE SYS$OUTPUT " ",APPLICATION,".exe" |
$! |
$! Link The Program. |
$! |
$ ON ERROR THEN GOTO NEXT_APPLICATION |
$! |
-$! Check To See If We Are To Link With A Specific TCP/IP Library. |
+$! Link With A TCP/IP Library. |
$! |
-$ IF (TCPIP_LIB.NES."") |
-$ THEN |
+$ LINK /'DEBUGGER' /'LINKMAP' /'TRACEBACK' - |
+ /EXE='EXE_DIR''APPLICATION'.EXE - |
+ 'OBJ_DIR''APPLICATION_OBJECTS', - |
+ 'CRYPTO_LIB'/LIBRARY - |
+ 'TCPIP_LIB' - |
+ 'ZLIB_LIB' - |
+ ,'OPT_FILE' /OPTIONS |
$! |
-$! Link With A TCP/IP Library. |
-$! |
-$ LINK/'DEBUGGER'/'TRACEBACK'/EXE='EXE_DIR''APPLICATION'.EXE - |
- 'OBJ_DIR''APPLICATION_OBJECTS', - |
- 'CRYPTO_LIB'/LIBRARY, - |
- 'TCPIP_LIB','OPT_FILE'/OPTION |
-$! |
-$! Else... |
-$! |
-$ ELSE |
-$! |
-$! Don't Link With A TCP/IP Library. |
-$! |
-$ LINK/'DEBUGGER'/'TRACEBACK'/EXE='EXE_DIR''APPLICATION'.EXE - |
- 'OBJ_DIR''APPLICATION_OBJECTS',- |
- 'CRYPTO_LIB'/LIBRARY, - |
- 'OPT_FILE'/OPTION |
-$! |
-$! End The TCP/IP Library Check. |
-$! |
-$ ENDIF |
$ GOTO NEXT_APPLICATION |
$ APPLICATION_DONE: |
$ ENDIF |
@@ -646,7 +716,7 @@ |
$ CREATE 'OPT_FILE' |
$DECK |
! |
-! Default System Options File To Link Agianst |
+! Default System Options File To Link Against |
! The Sharable VAX C Runtime Library. |
! |
SYS$SHARE:VAXCRTL.EXE/SHARE |
@@ -675,7 +745,7 @@ |
$ CREATE 'OPT_FILE' |
$DECK |
! |
-! Default System Options File To Link Agianst |
+! Default System Options File To Link Against |
! The Sharable C Runtime Library. |
! |
GNU_CC:[000000]GCCLIB/LIBRARY |
@@ -710,7 +780,7 @@ |
$ CREATE 'OPT_FILE' |
$DECK |
! |
-! Default System Options File To Link Agianst |
+! Default System Options File To Link Against |
! The Sharable DEC C Runtime Library. |
! |
SYS$SHARE:DECC$SHR.EXE/SHARE |
@@ -725,7 +795,7 @@ |
$ CREATE 'OPT_FILE' |
$DECK |
! |
-! Default System Options File For non-VAX To Link Agianst |
+! Default System Options File For non-VAX To Link Against |
! The Sharable C Runtime Library. |
! |
SYS$SHARE:CMA$OPEN_LIB_SHR/SHARE |
@@ -746,7 +816,7 @@ |
$! |
$! Tell The User What Linker Option File We Are Using. |
$! |
-$ WRITE SYS$OUTPUT "Using Linker Option File ",OPT_FILE,"." |
+$ WRITE SYS$OUTPUT "Using Linker Option File ",OPT_FILE,"." |
$! |
$! Time To RETURN. |
$! |
@@ -769,12 +839,12 @@ |
$! |
$ ELSE |
$! |
-$! Else, Check To See If P1 Has A Valid Arguement. |
+$! Else, Check To See If P1 Has A Valid Argument. |
$! |
$ IF (P1.EQS."LIBRARY").OR.(P1.EQS."APPS") |
$ THEN |
$! |
-$! A Valid Arguement. |
+$! A Valid Argument. |
$! |
$ BUILDALL = P1 |
$! |
@@ -793,8 +863,8 @@ |
$ WRITE SYS$OUTPUT "" |
$ WRITE SYS$OUTPUT " Where 'xxx' Stands For:" |
$ WRITE SYS$OUTPUT "" |
-$ WRITE SYS$OUTPUT " ALPHA : Alpha Architecture." |
-$ WRITE SYS$OUTPUT " IA64 : IA64 Architecture." |
+$ WRITE SYS$OUTPUT " ALPHA[64]: Alpha Architecture." |
+$ WRITE SYS$OUTPUT " IA64[64] : IA64 Architecture." |
$ WRITE SYS$OUTPUT " VAX : VAX Architecture." |
$ WRITE SYS$OUTPUT "" |
$! |
@@ -802,7 +872,7 @@ |
$! |
$ EXIT |
$! |
-$! End The Valid Arguement Check. |
+$! End The Valid Argument Check. |
$! |
$ ENDIF |
$! |
@@ -815,15 +885,16 @@ |
$ IF (P2.EQS."NODEBUG") |
$ THEN |
$! |
-$! P2 Is NODEBUG, So Compile Without The Debugger Information. |
+$! P2 Is NODEBUG, So Compile Without The Debugger Information. |
$! |
-$ DEBUGGER = "NODEBUG" |
-$ TRACEBACK = "NOTRACEBACK" |
-$ GCC_OPTIMIZE = "OPTIMIZE" |
-$ CC_OPTIMIZE = "OPTIMIZE" |
-$ MACRO_OPTIMIZE = "OPTIMIZE" |
-$ WRITE SYS$OUTPUT "No Debugger Information Will Be Produced During Compile." |
-$ WRITE SYS$OUTPUT "Compiling With Compiler Optimization." |
+$ DEBUGGER = "NODEBUG" |
+$ LINKMAP = "NOMAP" |
+$ TRACEBACK = "NOTRACEBACK" |
+$ GCC_OPTIMIZE = "OPTIMIZE" |
+$ CC_OPTIMIZE = "OPTIMIZE" |
+$ MACRO_OPTIMIZE = "OPTIMIZE" |
+$ WRITE SYS$OUTPUT "No Debugger Information Will Be Produced During Compile." |
+$ WRITE SYS$OUTPUT "Compiling With Compiler Optimization." |
$ ELSE |
$! |
$! Check To See If We Are To Compile With Debugger Information. |
@@ -834,6 +905,7 @@ |
$! Compile With Debugger Information. |
$! |
$ DEBUGGER = "DEBUG" |
+$ LINKMAP = "MAP" |
$ TRACEBACK = "TRACEBACK" |
$ GCC_OPTIMIZE = "NOOPTIMIZE" |
$ CC_OPTIMIZE = "NOOPTIMIZE" |
@@ -842,7 +914,7 @@ |
$ WRITE SYS$OUTPUT "Compiling Without Compiler Optimization." |
$ ELSE |
$! |
-$! They Entered An Invalid Option.. |
+$! They Entered An Invalid Option. |
$! |
$ WRITE SYS$OUTPUT "" |
$ WRITE SYS$OUTPUT "The Option ",P2," Is Invalid. The Valid Options Are:" |
@@ -855,7 +927,7 @@ |
$! |
$ EXIT |
$! |
-$! End The Valid Arguement Check. |
+$! End The Valid Argument Check. |
$! |
$ ENDIF |
$! |
@@ -897,6 +969,60 @@ |
$! |
$ ENDIF |
$! |
+$! Check P7 (POINTER_SIZE). |
+$! |
+$ IF (P7 .NES. "") .AND. (ARCH .NES. "VAX") |
+$ THEN |
+$! |
+$ IF (P7 .EQS. "32") |
+$ THEN |
+$ POINTER_SIZE = " /POINTER_SIZE=32" |
+$ ELSE |
+$ POINTER_SIZE = F$EDIT( P7, "COLLAPSE, UPCASE") |
+$ IF ((POINTER_SIZE .EQS. "64") .OR. - |
+ (POINTER_SIZE .EQS. "64=") .OR. - |
+ (POINTER_SIZE .EQS. "64=ARGV")) |
+$ THEN |
+$ ARCHD = ARCH+ "_64" |
+$ LIB32 = "" |
+$ POINTER_SIZE = " /POINTER_SIZE=64" |
+$ ELSE |
+$! |
+$! Tell The User Entered An Invalid Option. |
+$! |
+$ WRITE SYS$OUTPUT "" |
+$ WRITE SYS$OUTPUT "The Option ", P7, - |
+ " Is Invalid. The Valid Options Are:" |
+$ WRITE SYS$OUTPUT "" |
+$ WRITE SYS$OUTPUT - |
+ " """" : Compile with default (short) pointers." |
+$ WRITE SYS$OUTPUT - |
+ " 32 : Compile with 32-bit (short) pointers." |
+$ WRITE SYS$OUTPUT - |
+ " 64 : Compile with 64-bit (long) pointers (auto ARGV)." |
+$ WRITE SYS$OUTPUT - |
+ " 64= : Compile with 64-bit (long) pointers (no ARGV)." |
+$ WRITE SYS$OUTPUT - |
+ " 64=ARGV : Compile with 64-bit (long) pointers (ARGV)." |
+$ WRITE SYS$OUTPUT "" |
+$! |
+$! Time To EXIT. |
+$! |
+$ EXIT |
+$! |
+$ ENDIF |
+$! |
+$ ENDIF |
+$! |
+$! End The P7 (POINTER_SIZE) Check. |
+$! |
+$ ENDIF |
+$! |
+$! Set basic C compiler /INCLUDE directories. |
+$! |
+$ CC_INCLUDES = "SYS$DISK:[.''ARCHD'],SYS$DISK:[],SYS$DISK:[-],"+ - |
+ "SYS$DISK:[.ENGINE.VENDOR_DEFNS],SYS$DISK:[.EVP],SYS$DISK:[.ASN1]" |
+$! |
$! Check To See If P3 Is Blank. |
$! |
$ IF (P3.EQS."") |
@@ -997,12 +1123,65 @@ |
$ IF F$TYPE(USER_CCDEFS) .NES. "" THEN CCDEFS = CCDEFS + "," + USER_CCDEFS |
$ CCEXTRAFLAGS = "" |
$ IF F$TYPE(USER_CCFLAGS) .NES. "" THEN CCEXTRAFLAGS = USER_CCFLAGS |
-$ CCDISABLEWARNINGS = "LONGLONGTYPE,LONGLONGSUFX,FOUNDCR" |
+$ CCDISABLEWARNINGS = "" !!! "LONGLONGTYPE,LONGLONGSUFX,FOUNDCR" |
$ IF F$TYPE(USER_CCDISABLEWARNINGS) .NES. "" THEN - |
CCDISABLEWARNINGS = CCDISABLEWARNINGS + "," + USER_CCDISABLEWARNINGS |
$! |
-$! Check To See If The User Entered A Valid Paramter. |
+$! Check To See If We Have A ZLIB Option. |
$! |
+$ ZLIB = P8 |
+$ IF (ZLIB .NES. "") |
+$ THEN |
+$! |
+$! Check for expected ZLIB files. |
+$! |
+$ err = 0 |
+$ file1 = f$parse( "zlib.h", ZLIB, , , "SYNTAX_ONLY") |
+$ if (f$search( file1) .eqs. "") |
+$ then |
+$ WRITE SYS$OUTPUT "" |
+$ WRITE SYS$OUTPUT "The Option ", ZLIB, " Is Invalid." |
+$ WRITE SYS$OUTPUT " Can't find header: ''file1'" |
+$ err = 1 |
+$ endif |
+$ file1 = f$parse( "A.;", ZLIB)- "A.;" |
+$! |
+$ file2 = f$parse( ZLIB, "libz.olb", , , "SYNTAX_ONLY") |
+$ if (f$search( file2) .eqs. "") |
+$ then |
+$ if (err .eq. 0) |
+$ then |
+$ WRITE SYS$OUTPUT "" |
+$ WRITE SYS$OUTPUT "The Option ", ZLIB, " Is Invalid." |
+$ endif |
+$ WRITE SYS$OUTPUT " Can't find library: ''file2'" |
+$ WRITE SYS$OUTPUT "" |
+$ err = err+ 2 |
+$ endif |
+$ if (err .eq. 1) |
+$ then |
+$ WRITE SYS$OUTPUT "" |
+$ endif |
+$! |
+$ if (err .ne. 0) |
+$ then |
+$ EXIT |
+$ endif |
+$! |
+$ CCDEFS = """ZLIB=1"", "+ CCDEFS |
+$ CC_INCLUDES = CC_INCLUDES+ ", "+ file1 |
+$ ZLIB_LIB = ", ''file2' /library" |
+$! |
+$! Print info |
+$! |
+$ WRITE SYS$OUTPUT "ZLIB library spec: ", file2 |
+$! |
+$! End The ZLIB Check. |
+$! |
+$ ENDIF |
+$! |
+$! Check To See If The User Entered A Valid Parameter. |
+$! |
$ IF (P3.EQS."VAXC").OR.(P3.EQS."DECC").OR.(P3.EQS."GNUC") |
$ THEN |
$! |
@@ -1024,14 +1203,14 @@ |
$ CC = "CC" |
$ IF ARCH.EQS."VAX" .AND. F$TRNLNM("DECC$CC_DEFAULT").NES."/DECC" - |
THEN CC = "CC/DECC" |
-$ CC = CC + "/''CC_OPTIMIZE'/''DEBUGGER'/STANDARD=ANSI89" + - |
- "/NOLIST/PREFIX=ALL" + - |
- "/INCLUDE=(SYS$DISK:[],SYS$DISK:[._''ARCH'],SYS$DISK:[-],SYS$DISK:[.ENGINE.VENDOR_DEFNS],SYS$DISK:[.EVP])" + - |
- CCEXTRAFLAGS |
+$ CC = CC + " /''CC_OPTIMIZE' /''DEBUGGER' /STANDARD=RELAXED"+ - |
+ "''POINTER_SIZE' /NOLIST /PREFIX=ALL" + - |
+ " /INCLUDE=(''CC_INCLUDES')"+ - |
+ CCEXTRAFLAGS |
$! |
$! Define The Linker Options File Name. |
$! |
-$ OPT_FILE = "''EXE_DIR'VAX_DECC_OPTIONS.OPT" |
+$ OPT_FILE = "VAX_DECC_OPTIONS.OPT" |
$! |
$! End DECC Check. |
$! |
@@ -1060,7 +1239,7 @@ |
$ ENDIF |
$ IF F$TRNLNM("DECC$CC_DEFAULT").EQS."/DECC" THEN CC = "CC/VAXC" |
$ CC = CC + "/''CC_OPTIMIZE'/''DEBUGGER'/NOLIST" + - |
- "/INCLUDE=(SYS$DISK:[],SYS$DISK:[._''ARCH'],SYS$DISK:[-],SYS$DISK:[.ENGINE.VENDOR_DEFNS])" + - |
+ "/INCLUDE=(''CC_INCLUDES')"+ - |
CCEXTRAFLAGS |
$ CCDEFS = """VAXC""," + CCDEFS |
$! |
@@ -1070,7 +1249,7 @@ |
$! |
$! Define The Linker Options File Name. |
$! |
-$ OPT_FILE = "''EXE_DIR'VAX_VAXC_OPTIONS.OPT" |
+$ OPT_FILE = "VAX_VAXC_OPTIONS.OPT" |
$! |
$! End VAXC Check |
$! |
@@ -1092,12 +1271,12 @@ |
$! Use GNU C... |
$! |
$ CC = "GCC/NOCASE_HACK/''GCC_OPTIMIZE'/''DEBUGGER'/NOLIST" + - |
- "/INCLUDE=(SYS$DISK:[],SYS$DISK:[._''ARCH'],SYS$DISK:[-],SYS$DISK:[.ENGINE.VENDOR_DEFNS])" + - |
+ "/INCLUDE=(''CC_INCLUDES')"+ - |
CCEXTRAFLAGS |
$! |
$! Define The Linker Options File Name. |
$! |
-$ OPT_FILE = "''EXE_DIR'VAX_GNUC_OPTIONS.OPT" |
+$ OPT_FILE = "VAX_GNUC_OPTIONS.OPT" |
$! |
$! End The GNU C Check. |
$! |
@@ -1118,22 +1297,24 @@ |
$ ELSE |
$ CC4DISABLEWARNINGS = CCDISABLEWARNINGS + ",DOLLARID" |
$ CC6DISABLEWARNINGS = CCDISABLEWARNINGS + ",MIXLINKAGE" |
-$ CCDISABLEWARNINGS = "/WARNING=(DISABLE=(" + CCDISABLEWARNINGS + "))" |
+$ CCDISABLEWARNINGS = " /WARNING=(DISABLE=(" + CCDISABLEWARNINGS + "))" |
$ ENDIF |
-$ CC4DISABLEWARNINGS = "/WARNING=(DISABLE=(" + CC4DISABLEWARNINGS + "))" |
-$ CC6DISABLEWARNINGS = "/WARNING=(DISABLE=(" + CC6DISABLEWARNINGS + "))" |
+$ CC4DISABLEWARNINGS = " /WARNING=(DISABLE=(" + CC4DISABLEWARNINGS + "))" |
+$ CC6DISABLEWARNINGS = " /WARNING=(DISABLE=(" + CC6DISABLEWARNINGS + "))" |
$ ELSE |
$ CCDISABLEWARNINGS = "" |
$ CC4DISABLEWARNINGS = "" |
$ CC6DISABLEWARNINGS = "" |
$ ENDIF |
-$ CC3 = CC + "/DEFINE=(" + CCDEFS + ISSEVEN + ")" + CCDISABLEWARNINGS |
-$ CC = CC + "/DEFINE=(" + CCDEFS + ")" + CCDISABLEWARNINGS |
+$ CC3 = CC + " /DEFINE=(" + CCDEFS + ISSEVEN + ")" + CCDISABLEWARNINGS |
+$ CC = CC + " /DEFINE=(" + CCDEFS + ")" + CCDISABLEWARNINGS |
$ IF ARCH .EQS. "VAX" .AND. COMPILER .EQS. "DECC" .AND. P2 .NES. "DEBUG" |
$ THEN |
-$ CC5 = CC + "/OPTIMIZE=NODISJOINT" |
+$ CC5 = CC + " /OPTIMIZE=NODISJOINT" |
+$ CC5_DIFFERENT = 1 |
$ ELSE |
-$ CC5 = CC + "/NOOPTIMIZE" |
+$ CC5 = CC |
+$ CC5_DIFFERENT = 0 |
$ ENDIF |
$ CC4 = CC - CCDISABLEWARNINGS + CC4DISABLEWARNINGS |
$ CC6 = CC - CCDISABLEWARNINGS + CC6DISABLEWARNINGS |
@@ -1142,7 +1323,7 @@ |
$! |
$ WRITE/SYMBOL SYS$OUTPUT "Main C Compiling Command: ",CC |
$! |
-$! Else The User Entered An Invalid Arguement. |
+$! Else The User Entered An Invalid Argument. |
$! |
$ ELSE |
$! |
@@ -1160,7 +1341,7 @@ |
$! |
$ EXIT |
$! |
-$! End The Valid Arguement Check. |
+$! End The Valid Argument Check. |
$! |
$ ENDIF |
$! |
@@ -1186,7 +1367,7 @@ |
$! |
$! Set the library to use SOCKETSHR |
$! |
-$ TCPIP_LIB = "SYS$DISK:[-.VMS]SOCKETSHR_SHR.OPT/OPT" |
+$ TCPIP_LIB = ",SYS$DISK:[-.VMS]SOCKETSHR_SHR.OPT /OPTIONS" |
$! |
$! Done with SOCKETSHR |
$! |
@@ -1212,13 +1393,13 @@ |
$! |
$! Set the library to use UCX. |
$! |
-$ TCPIP_LIB = "SYS$DISK:[-.VMS]UCX_SHR_DECC.OPT/OPT" |
+$ TCPIP_LIB = ",SYS$DISK:[-.VMS]UCX_SHR_DECC.OPT /OPTIONS" |
$ IF F$TRNLNM("UCX$IPC_SHR") .NES. "" |
$ THEN |
-$ TCPIP_LIB = "SYS$DISK:[-.VMS]UCX_SHR_DECC_LOG.OPT/OPT" |
+$ TCPIP_LIB = ",SYS$DISK:[-.VMS]UCX_SHR_DECC_LOG.OPT /OPTIONS" |
$ ELSE |
$ IF COMPILER .NES. "DECC" .AND. ARCH .EQS. "VAX" THEN - |
- TCPIP_LIB = "SYS$DISK:[-.VMS]UCX_SHR_VAXC.OPT/OPT" |
+ TCPIP_LIB = ",SYS$DISK:[-.VMS]UCX_SHR_VAXC.OPT /OPTIONS" |
$ ENDIF |
$! |
$! Done with UCX |
@@ -1232,7 +1413,7 @@ |
$! |
$! Set the library to use TCPIP (post UCX). |
$! |
-$ TCPIP_LIB = "SYS$DISK:[-.VMS]TCPIP_SHR_DECC.OPT/OPT" |
+$ TCPIP_LIB = ",SYS$DISK:[-.VMS]TCPIP_SHR_DECC.OPT /OPTIONS" |
$! |
$! Done with TCPIP |
$! |
@@ -1253,9 +1434,9 @@ |
$! |
$! Print info |
$! |
-$ WRITE SYS$OUTPUT "TCP/IP library spec: ", TCPIP_LIB |
+$ WRITE SYS$OUTPUT "TCP/IP library spec: ", TCPIP_LIB- "," |
$! |
-$! Else The User Entered An Invalid Arguement. |
+$! Else The User Entered An Invalid Argument. |
$! |
$ ELSE |
$! |