Index: openssl/engines/makeengines.com |
=================================================================== |
--- openssl/engines/makeengines.com (revision 105093) |
+++ openssl/engines/makeengines.com (working copy) |
@@ -1,5 +1,5 @@ |
$! |
-$! MAKEAPPS.COM |
+$! MAKEENGINES.COM |
$! Written By: Richard Levitte |
$! richard@levitte.org |
$! |
@@ -28,22 +28,35 @@ |
$! P6 if defined, denotes which engines to build. If not defined, |
$! all available engines are built. |
$! |
+$! 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). |
+$! |
$!----------------------------------------------------------------------------- |
$! |
-$! Set the names of the engines we want to build |
-$! NOTE: Some might think this list ugly. However, it's made this way to |
-$! reflect the LIBNAMES variable in Makefile as closely as possible, |
-$! thereby making it fairly easy to verify that the lists are the same. |
-$! NOTE: gmp isn't built, as it's mostly a test engine and brings in another |
-$! library that isn't necessarely ported to VMS. |
+$! Announce/identify. |
$! |
-$ ENGINES = "," + P6 |
-$ IF ENGINES .EQS. "," THEN - |
- ENGINES = ",4758cca,aep,atalla,cswift,chil,nuron,sureware,ubsec,capi" |
+$ proc = f$environment( "procedure") |
+$ write sys$output "@@@ "+ - |
+ f$parse( proc, , , "name")+ f$parse( proc, , , "type") |
$! |
+$ on control_c then goto exit |
+$! |
$! Set the default TCP/IP library to link against if needed |
$! |
$ TCPIP_LIB = "" |
+$ ZLIB_LIB = "" |
$! |
$! Check What Architecture We Are Using. |
$! |
@@ -52,7 +65,7 @@ |
$! |
$! The Architecture Is VAX. |
$! |
-$ ARCH := VAX |
+$ ARCH = "VAX" |
$! |
$! Else... |
$! |
@@ -67,28 +80,68 @@ |
$! |
$ ENDIF |
$! |
-$! Set the goal directories, and creat them if necessary |
+$ ARCHD = ARCH |
+$ LIB32 = "32" |
+$ OPT_FILE = "" |
+$ POINTER_SIZE = "" |
$! |
-$ OBJ_DIR := SYS$DISK:[-.'ARCH'.OBJ.ENGINES] |
-$ EXE_DIR := SYS$DISK:[-.'ARCH'.EXE.ENGINES] |
-$ IF F$PARSE(OBJ_DIR) .EQS. "" THEN CREATE/DIRECTORY 'OBJ_DIR' |
-$ IF F$PARSE(EXE_DIR) .EQS. "" THEN CREATE/DIRECTORY 'EXE_DIR' |
+$! Set the names of the engines we want to build |
+$! NOTE: Some might think this list ugly. However, it's made this way to |
+$! reflect the LIBNAMES variable in Makefile as closely as possible, |
+$! thereby making it fairly easy to verify that the lists are the same. |
+$! NOTE: gmp isn't built, as it's mostly a test engine and brings in another |
+$! library that isn't necessarely ported to VMS. |
$! |
-$! Set the goal files, and create them if necessary |
+$ ENGINES = "," + P6 |
+$ IF ENGINES .EQS. "," THEN - |
+ ENGINES = ",4758cca,aep,atalla,cswift,chil,nuron,sureware,ubsec,padlock," |
$! |
-$ CRYPTO_LIB :=SYS$DISK:[-.'ARCH'.EXE.CRYPTO]LIBCRYPTO.OLB |
-$ IF F$SEARCH(CRYPTO_LIB) .EQS. "" THEN LIBRARY/CREATE/OBJECT 'CRYPTO_LIB' |
+$! GOST requires a 64-bit integer type, unavailable on VAX. |
$! |
-$! OK, time to check options and initialise |
+$ IF (ARCH .NES. "VAX") THEN - |
+ ENGINES = ENGINES+ ",ccgost" |
$! |
+$! Check options. |
+$! |
$ OPT_PHASE = P1 |
$ ACCEPT_PHASE = "ALL,ENGINES" |
$ OPT_DEBUG = P2 |
$ OPT_COMPILER = P3 |
$ OPT_TCPIP_LIB = P4 |
$ OPT_SPECIAL_THREADS = P5 |
+$ OPT_POINTER_SIZE = P7 |
+$ ZLIB = P8 |
$ |
$ GOSUB CHECK_OPTIONS |
+$! |
+$! Set the goal directories, and create them if necessary |
+$! |
+$ OBJ_DIR := SYS$DISK:[-.'ARCHD'.OBJ.ENGINES] |
+$ EXE_DIR := SYS$DISK:[-.'ARCHD'.EXE.ENGINES] |
+$ IF F$PARSE(OBJ_DIR) .EQS. "" THEN CREATE/DIRECTORY 'OBJ_DIR' |
+$ IF F$PARSE(EXE_DIR) .EQS. "" THEN CREATE/DIRECTORY 'EXE_DIR' |
+$! |
+$! Set the goal files, and create them if necessary |
+$! |
+$ CRYPTO_LIB := SYS$DISK:[-.'ARCHD'.EXE.CRYPTO]SSL_LIBCRYPTO'LIB32'.OLB |
+$ IF F$SEARCH(CRYPTO_LIB) .EQS. "" THEN LIBRARY/CREATE/OBJECT 'CRYPTO_LIB' |
+$! |
+$! 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. |
+$! |
$ GOSUB INITIALISE |
$ GOSUB CHECK_OPT_FILE |
$! |
@@ -110,7 +163,13 @@ |
$ ENGINE_nuron = "e_nuron" |
$ ENGINE_sureware = "e_sureware" |
$ ENGINE_ubsec = "e_ubsec" |
-$ ENGINE_capi = "e_capi" |
+$ ENGINE_padlock = "e_padlock" |
+$ |
+$ ENGINE_ccgost_SUBDIR = "ccgost" |
+$ ENGINE_ccgost = "e_gost_err,gost2001_keyx,gost2001,gost89,gost94_keyx,"+ - |
+ "gost_ameth,gost_asn1,gost_crypt,gost_ctl,gost_eng,"+ - |
+ "gosthash,gost_keywrap,gost_md,gost_params,gost_pmeth,"+ - |
+ "gost_sign" |
$! |
$! Define which programs need to be linked with a TCP/IP library |
$! |
@@ -157,6 +216,13 @@ |
$ WRITE SYS$OUTPUT "Compiling Support Files. (",BUILDALL,")" |
$ ENDIF |
$! |
+$! Create a .OPT file for the object files (for a real engine name). |
+$! |
+$ IF ENGINE_NAME .NES. "" |
+$ THEN |
+$ OPEN /WRITE OBJECTS 'EXE_DIR''ENGINE_NAME'.OPT |
+$ ENDIF |
+$! |
$! Here's the start of per-engine module loop. |
$! |
$ FILE_COUNTER = 0 |
@@ -173,7 +239,12 @@ |
$! |
$! Set up the source and object reference |
$! |
-$ SOURCE_FILE = F$PARSE(FILE_NAME,"SYS$DISK:[].C",,,"SYNTAX_ONLY") |
+$ IF F$TYPE('LIB_ENGINE'_SUBDIR) .EQS. "" |
+$ THEN |
+$ SOURCE_FILE = F$PARSE(FILE_NAME,"SYS$DISK:[].C",,,"SYNTAX_ONLY") |
+$ ELSE |
+$ SOURCE_FILE = F$PARSE(FILE_NAME,"SYS$DISK:[."+'LIB_ENGINE'_SUBDIR+"].C",,,"SYNTAX_ONLY") |
+$ ENDIF |
$ OBJECT_FILE = OBJ_DIR + F$PARSE(FILE_NAME,,,"NAME","SYNTAX_ONLY") + ".OBJ" |
$! |
$! If we get some problem, we just go on trying to build the next module. |
@@ -203,10 +274,27 @@ |
$ CC/OBJECT='OBJECT_FILE' 'SOURCE_FILE' |
$ ENDIF |
$! |
+$! Write the entry to the .OPT file (for a real engine name). |
+$! |
+$ IF ENGINE_NAME .NES. "" |
+$ THEN |
+$ WRITE OBJECTS OBJECT_FILE |
+$ ENDIF |
+$! |
+$! Next file |
+$! |
+$ GOTO FILE_NEXT |
+$! |
+$ FILE_DONE: |
+$! |
$! Do not link the support files. |
$! |
$ IF ENGINE_NAME .EQS. "" THEN GOTO ENGINE_NEXT |
$! |
+$! Close the linker options file (for a real engine name). |
+$! |
+$ CLOSE OBJECTS |
+$! |
$! Now, there are two ways to handle this. We can either build |
$! shareable images or stick the engine object file into libcrypto. |
$! For now, the latter is NOT supported. |
@@ -217,29 +305,15 @@ |
$! depending on if we link with a TCP/IP library or not. |
$! |
$ ENGINE_OPT := SYS$DISK:[]'ARCH'.OPT |
-$ IF TCPIP_LIB .NES. "" |
-$ THEN |
-$ LINK/'DEBUGGER'/'TRACEBACK' /SHARE='EXE_DIR''ENGINE_NAME'.EXE - |
- 'OBJECT_FILE''TV_OBJ', - |
- 'CRYPTO_LIB'/LIBRARY, - |
- 'ENGINE_OPT'/OPTION,'TCPIP_LIB','OPT_FILE'/OPTION |
-$ ELSE |
-$ LINK/'DEBUGGER'/'TRACEBACK' /SHARE='EXE_DIR''ENGINE_NAME'.EXE - |
- 'OBJECT_FILE''TV_OBJ', - |
- 'CRYPTO_LIB'/LIBRARY, - |
- 'ENGINE_OPT'/OPTION,'OPT_FILE'/OPTION |
-$ ENDIF |
+$ LINK /'DEBUGGER' /'LINKMAP' /'TRACEBACK' /SHARE='EXE_DIR''ENGINE_NAME'.EXE - |
+ 'EXE_DIR''ENGINE_NAME'.OPT /OPTIONS - |
+ 'TV_OBJ', - |
+ 'CRYPTO_LIB' /LIBRARY, - |
+ 'ENGINE_OPT' /OPTIONS - |
+ 'TCPIP_LIB' - |
+ 'ZLIB_LIB' - |
+ ,'OPT_FILE' /OPTIONS |
$! |
-$! Clean up |
-$! |
-$ DELETE 'OBJECT_FILE';* |
-$! |
-$! Next file |
-$! |
-$ GOTO FILE_NEXT |
-$! |
-$ FILE_DONE: |
-$! |
$! Next engine |
$! |
$ GOTO ENGINE_NEXT |
@@ -272,7 +346,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 |
@@ -301,7 +375,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 |
@@ -336,7 +410,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 |
@@ -351,7 +425,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 |
@@ -395,13 +469,13 @@ |
$! |
$ ELSE |
$! |
-$! Else, Check To See If OPT_PHASE Has A Valid Arguement. |
+$! Else, Check To See If OPT_PHASE Has A Valid Argument. |
$! |
$ IF ("," + ACCEPT_PHASE + ",") - ("," + OPT_PHASE + ",") - |
.NES. ("," + ACCEPT_PHASE + ",") |
$ THEN |
$! |
-$! A Valid Arguement. |
+$! A Valid Argument. |
$! |
$ BUILDALL = OPT_PHASE |
$! |
@@ -423,8 +497,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 "" |
$! |
@@ -432,7 +506,7 @@ |
$! |
$ EXIT |
$! |
-$! End The Valid Arguement Check. |
+$! End The Valid Argument Check. |
$! |
$ ENDIF |
$! |
@@ -445,15 +519,16 @@ |
$ IF (OPT_DEBUG.EQS."NODEBUG") |
$ THEN |
$! |
-$! OPT_DEBUG Is NODEBUG, So Compile Without The Debugger Information. |
+$! OPT_DEBUG 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. |
@@ -464,6 +539,7 @@ |
$! Compile With Debugger Information. |
$! |
$ DEBUGGER = "DEBUG" |
+$ LINKMAP = "MAP" |
$ TRACEBACK = "TRACEBACK" |
$ GCC_OPTIMIZE = "NOOPTIMIZE" |
$ CC_OPTIMIZE = "NOOPTIMIZE" |
@@ -472,7 +548,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 ",OPT_DEBUG," Is Invalid. The Valid Options Are:" |
@@ -485,7 +561,7 @@ |
$! |
$ EXIT |
$! |
-$! End The Valid Arguement Check. |
+$! End The Valid Argument Check. |
$! |
$ ENDIF |
$! |
@@ -527,6 +603,59 @@ |
$! |
$ ENDIF |
$! |
+$! Check OPT_POINTER_SIZE (P7). |
+$! |
+$ IF (OPT_POINTER_SIZE .NES. "") .AND. (ARCH .NES. "VAX") |
+$ THEN |
+$! |
+$ IF (OPT_POINTER_SIZE .EQS. "32") |
+$ THEN |
+$ POINTER_SIZE = " /POINTER_SIZE=32" |
+$ ELSE |
+$ POINTER_SIZE = F$EDIT( OPT_POINTER_SIZE, "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 ", OPT_POINTER_SIZE, - |
+ " 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 OPT_POINTER_SIZE Check. |
+$! |
+$ ENDIF |
+$! |
+$! Set basic C compiler /INCLUDE directories. |
+$! |
+$ CC_INCLUDES = "SYS$DISK:[],SYS$DISK:[.VENDOR_DEFNS]" |
+$! |
$! Check To See If OPT_COMPILER Is Blank. |
$! |
$ IF (OPT_COMPILER.EQS."") |
@@ -627,12 +756,64 @@ |
$ 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" |
+$ CCDISABLEWARNINGS = "" !!! "LONGLONGTYPE,LONGLONGSUFX" |
$ 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. |
$! |
+$ 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 (OPT_COMPILER.EQS."VAXC").OR.(OPT_COMPILER.EQS."DECC").OR.(OPT_COMPILER.EQS."GNUC") |
$ THEN |
$! |
@@ -654,14 +835,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:[.VENDOR_DEFNS])" + - |
- 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. |
$! |
@@ -690,7 +871,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:[-],SYS$DISK:[.ENGINE.VENDOR_DEFNS])" + - |
+ "/INCLUDE=(''CC_INCLUDES')" + - |
CCEXTRAFLAGS |
$ CCDEFS = """VAXC""," + CCDEFS |
$! |
@@ -700,7 +881,7 @@ |
$! |
$! Define The Linker Options File Name. |
$! |
-$ OPT_FILE = "''EXE_DIR'VAX_VAXC_OPTIONS.OPT" |
+$ OPT_FILE = "VAX_VAXC_OPTIONS.OPT" |
$! |
$! End VAXC Check |
$! |
@@ -722,12 +903,12 @@ |
$! Use GNU C... |
$! |
$ CC = "GCC/NOCASE_HACK/''GCC_OPTIMIZE'/''DEBUGGER'/NOLIST" + - |
- "/INCLUDE=(SYS$DISK:[],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. |
$! |
@@ -743,18 +924,18 @@ |
$ THEN |
$ IF CCDISABLEWARNINGS .NES. "" |
$ THEN |
-$ CCDISABLEWARNINGS = "/WARNING=(DISABLE=(" + CCDISABLEWARNINGS + "))" |
+$ CCDISABLEWARNINGS = " /WARNING=(DISABLE=(" + CCDISABLEWARNINGS + "))" |
$ ENDIF |
$ ELSE |
$ CCDISABLEWARNINGS = "" |
$ ENDIF |
-$ CC = CC + "/DEFINE=(" + CCDEFS + ")" + CCDISABLEWARNINGS |
+$ CC = CC + " /DEFINE=(" + CCDEFS + ")" + CCDISABLEWARNINGS |
$! |
$! Show user the result |
$! |
$ WRITE/SYMBOL SYS$OUTPUT "Main C Compiling Command: ",CC |
$! |
-$! Else The User Entered An Invalid Arguement. |
+$! Else The User Entered An Invalid Argument. |
$! |
$ ELSE |
$! |
@@ -772,14 +953,18 @@ |
$! |
$ EXIT |
$! |
-$! End The Valid Arguement Check. |
+$! End The Valid Argument Check. |
$! |
$ ENDIF |
$! |
$! Build a MACRO command for the architecture at hand |
$! |
-$ IF ARCH .EQS. "VAX" THEN MACRO = "MACRO/''DEBUGGER'" |
-$ IF ARCH .NES. "VAX" THEN MACRO = "MACRO/MIGRATION/''DEBUGGER'/''MACRO_OPTIMIZE'" |
+$ IF ARCH .EQS. "VAX" |
+$ THEN |
+$ MACRO = "MACRO/''DEBUGGER'" |
+$ ELSE |
+$ MACRO = "MACRO/MIGRATION/''DEBUGGER'/''MACRO_OPTIMIZE'" |
+$ ENDIF |
$! |
$! Show user the result |
$! |
@@ -799,7 +984,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 |
$! |
@@ -825,13 +1010,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 |
@@ -845,7 +1030,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 |
$! |
@@ -866,9 +1051,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 |
$! |
@@ -909,7 +1094,7 @@ |
$! |
$! Set up the logical name OPENSSL to point at the include directory |
$! |
-$ DEFINE OPENSSL/NOLOG '__INCLUDE' |
+$ DEFINE OPENSSL /NOLOG '__INCLUDE' |
$! |
$! Done |
$! |
@@ -917,15 +1102,24 @@ |
$! |
$ CLEANUP: |
$! |
-$! Restore the logical name OPENSSL if it had a value |
+$! Restore the saved logical name OPENSSL, if it had a value. |
$! |
-$ IF __SAVE_OPENSSL .EQS. "" |
-$ THEN |
-$ DEASSIGN OPENSSL |
-$ ELSE |
-$ DEFINE/NOLOG OPENSSL '__SAVE_OPENSSL' |
-$ ENDIF |
+$ if (f$type( __SAVE_OPENSSL) .nes. "") |
+$ then |
+$ IF __SAVE_OPENSSL .EQS. "" |
+$ THEN |
+$ DEASSIGN OPENSSL |
+$ ELSE |
+$ DEFINE /NOLOG OPENSSL '__SAVE_OPENSSL' |
+$ ENDIF |
+$ endif |
$! |
+$! Close any open files. |
+$! |
+$ if (f$trnlnm( "objects", "LNM$PROCESS", 0, "SUPERVISOR") .nes. "") then - |
+ close objects |
+$! |
$! Done |
$! |
$ RETURN |
+$! |