| 1 |
$ v0 = 0 |
| 2 |
$ v = f$verify(v0) |
| 3 |
$! $LynxId: libmake.com,v 1.15 2011/05/23 23:58:48 tom Exp $ |
| 4 |
$! LIBMAKE.COM |
| 5 |
$! |
| 6 |
$! Command file to build the WWWLibrary on VMS systems. |
| 7 |
$! |
| 8 |
$! 11-Jul-2010 Ch. Gartmann |
| 9 |
$! add support for "MULTINETUCX" |
| 10 |
$! 01-Jul-2007 T.Dickey |
| 11 |
$! add support for "TCPIP" (TCPIP Services) |
| 12 |
$! 23-Oct-2004 T.Dickey |
| 13 |
$! cleanup, remove duplication, etc. |
| 14 |
$! 08-Oct-1997 F.Macrides [email protected] |
| 15 |
$! Added comments and minor tweaks for convenient addition of |
| 16 |
$! compiler definitions and compiler and linker options. |
| 17 |
$! 26-Jul-1995 F.Macrides [email protected] |
| 18 |
$! Adding support for GNUC. |
| 19 |
$! 03-May-1995 F.Macrides [email protected] |
| 20 |
$! Include /nomember for compilations with DECC. It's not the |
| 21 |
$! default on AXP and the code assumes byte alignment. |
| 22 |
$! 07-Dec-1994 F.Macrides [email protected] |
| 23 |
$! Updated for DECC/VAX, VAXC/VAX and DECC/AXP |
| 24 |
$! 03-NOV-1994 A.Harper [email protected] |
| 25 |
$! Mods to support SOCKETSHR/NETLIB and add a /DEBUG/NOOPT option |
| 26 |
$! 02-Jun-1994 F.Macrides [email protected] |
| 27 |
$! Mods to support TCPWare (To use non-blocking connects, you need |
| 28 |
$! the DRIVERS_V405B.INC patch from FTP.PROCESS.COM for TCPware for |
| 29 |
$! OpenVMS Version 4.0-5, or a higher version of TCPWare, which will |
| 30 |
$! have that bug in the TCPDRIVER fixed. Otherwise, add NO_IOCTL to |
| 31 |
$! the /define=(...) list.) |
| 32 |
$! 20-May-1994 Andy Harper [email protected] |
| 33 |
$! Added support for the CMU TCP/IP transport |
| 34 |
$! 13-Dec-1993 F.Macrides [email protected] |
| 35 |
$! Mods for conditional compilations with VAXC versus DECC |
| 36 |
$! 10-Dec-1993 F.Macrides [email protected] |
| 37 |
$! Initial version, for WWWLibrary v2.14 with Lynx v2.1 |
| 38 |
$! |
| 39 |
$ ON CONTROL_Y THEN GOTO CLEANUP |
| 40 |
$ ON ERROR THEN GOTO CLEANUP |
| 41 |
$! |
| 42 |
$! Compiler definitions can be added here as a comma separated |
| 43 |
$! list with a lead comma, e.g., ",HAVE_FOO_H,DO_BLAH". They |
| 44 |
$! will apply only to the libwww-FM modules. - FM |
| 45 |
$! |
| 46 |
$ extra_defs = ",ACCESS_AUTH" |
| 47 |
$! |
| 48 |
$! Include-paths can be added here as a comma separated |
| 49 |
$! list with a lead comma, e.g., ",foo". |
| 50 |
$! |
| 51 |
$ extra_incs = "" |
| 52 |
$! |
| 53 |
$ extra_libs = "" |
| 54 |
$! |
| 55 |
$! If no TCP/IP agent is specified (as the first argument), |
| 56 |
$! prompt for a number from the list. Note that the agent |
| 57 |
$! must be the first argument if the debugger mode is to be |
| 58 |
$! set via a second argument (see below). - FM |
| 59 |
$! |
| 60 |
$ agent = 0 |
| 61 |
$ IF P1 .EQS. "" |
| 62 |
$ THEN |
| 63 |
$ write sys$output "Acceptable TCP/IP agents are" |
| 64 |
$ write sys$output " [1] MultiNet (default)" |
| 65 |
$ write sys$output " [2] UCX" |
| 66 |
$ write sys$output " [3] WIN_TCP" |
| 67 |
$ write sys$output " [4] CMU_TCP" |
| 68 |
$ write sys$output " [5] SOCKETSHR_TCP" |
| 69 |
$ write sys$output " [6] TCPWARE" |
| 70 |
$ write sys$output " [7] DECNET" |
| 71 |
$ write sys$output " [8] TCPIP" |
| 72 |
$ write sys$output " [9] Multinet UCX emulation" |
| 73 |
$ read sys$command/prompt="Agent [1,2,3,4,5,6,7,8,9] (RETURN = [1]) " agent |
| 74 |
$ ENDIF |
| 75 |
$ if agent .eq. 1 .or. agent .eqs. "" .or. p1 .eqs. "MULTINET" then - |
| 76 |
transport = "MULTINET" |
| 77 |
$ if agent .eq. 2 .or. p1 .eqs. "UCX" then transport = "UCX" |
| 78 |
$ if agent .eq. 3 .or. p1 .eqs. "WIN_TCP" then transport = "WIN_TCP" |
| 79 |
$ if agent .eq. 4 .or. p1 .eqs. "CMU_TCP" then transport = "CMU_TCP" |
| 80 |
$ if agent .eq. 5 .or. p1 .eqs. "SOCKETSHR_TCP" then transport = "SOCKETSHR_TCP" |
| 81 |
$ if agent .eq. 6 .or. p1 .eqs. "TCPWARE" then transport = "TCPWARE" |
| 82 |
$ if agent .eq. 7 .or. p1 .eqs. "DECNET" then transport = "DECNET" |
| 83 |
$ if agent .eq. 8 .or. p1 .eqs. "TCPIP" then transport = "TCPIP" |
| 84 |
$ IF agent .EQ. 9 .OR. P1 .EQS. "MULTINETUCX" |
| 85 |
$ THEN |
| 86 |
$ transport = "UCX" |
| 87 |
$ extra_defs = extra_defs + ",MUCX" |
| 88 |
$ ENDIF |
| 89 |
$! |
| 90 |
$ if transport .eqs. "SOCKETSHR_TCP" then extra_defs = extra_defs + ",_DECC_V4_SOURCE" |
| 91 |
$ if transport .eqs. "TCPIP" then extra_defs = extra_defs + ",TCPIP_SERVICES" |
| 92 |
$ if transport .eqs. "TCPWARE" then extra_defs = extra_defs + ",UCX" |
| 93 |
$! |
| 94 |
$ if option .eqs. "TCPIP" |
| 95 |
$ then |
| 96 |
$ if f$trnlnm("TCPIP$IPC_SHR") .eqs. "" then define TCPIP$IPC_SHR SYS$LIBRARY:TCPIP$IPC_SHR |
| 97 |
$ endif |
| 98 |
$! |
| 99 |
$ if P2 .nes. "" |
| 100 |
$ then |
| 101 |
$ count_parm = 0 |
| 102 |
$ parse_p2: |
| 103 |
$ value_parm = f$element('count_parm, ",", "''p2'") |
| 104 |
$ if value_parm .nes. "," |
| 105 |
$ then |
| 106 |
$ if value_parm .eqs. "BZLIB" |
| 107 |
$ then |
| 108 |
$ write sys$output "** adding BZlib to build." |
| 109 |
$ extra_defs = extra_defs + ",USE_BZLIB" |
| 110 |
$ extra_incs = extra_incs + "," + BZLIB_INC |
| 111 |
$ extra_libs = extra_libs + "," + BZLIB_LIB + "libbz2/LIB" |
| 112 |
$ endif |
| 113 |
$ if value_parm .eqs. "SLANG" |
| 114 |
$ then |
| 115 |
$ write sys$output "** adding SLang to build." |
| 116 |
$ extra_defs = extra_defs + ",USE_SLANG" |
| 117 |
$ extra_incs = extra_incs + "," + SLANG_INC |
| 118 |
$ extra_libs = extra_libs + "," + SLANG_LIB + "slang.olb/lib" |
| 119 |
$ endif |
| 120 |
$ if value_parm .eqs. "SSL" |
| 121 |
$ then |
| 122 |
$ write sys$output "** adding SSL to build." |
| 123 |
$ IF F$TYPE( ssl_lib ) .EQS. "" THEN ssl_lib = F$TRNLNM("SSLLIB") |
| 124 |
$ IF F$TYPE( ssl_inc ) .EQS. "" THEN ssl_inc = F$TRNLNM("SSLINCLUDE") |
| 125 |
$ extra_defs = extra_defs + ",USE_SSL,USE_OPENSSL_INCL" |
| 126 |
$ extra_libs = extra_libs + "," + SSL_LIB + "libssl/LIB," + SSL_LIB + "libcrypto/LIB" |
| 127 |
$! |
| 128 |
$! The "#include <openssl/ssl.h>" requires a logical variable "openssl". |
| 129 |
$! |
| 130 |
$ define/nolog openssl 'SSL_INC |
| 131 |
$ endif |
| 132 |
$ if value_parm .eqs. "ZLIB" |
| 133 |
$ then |
| 134 |
$ write sys$output "** adding Zlib to build." |
| 135 |
$ extra_defs = extra_defs + ",USE_ZLIB" |
| 136 |
$ extra_incs = extra_incs + "," + ZLIB_INC |
| 137 |
$ extra_libs = extra_libs + "," + ZLIB_LIB + "libz/LIB" |
| 138 |
$ endif |
| 139 |
$ count_parm = count_parm + 1 |
| 140 |
$ goto parse_p2 |
| 141 |
$ endif |
| 142 |
$ endif |
| 143 |
$! |
| 144 |
$! Compiler options can be specified here. If there was |
| 145 |
$! a second argument (with any value), then debugger mode |
| 146 |
$! with no optimization will be specified as well. - FM |
| 147 |
$! |
| 148 |
$ cc_opts = "" |
| 149 |
$ if p3 .nes. "" then cc_opts = cc_opts + "/DEBUG/NOOPT" |
| 150 |
$! |
| 151 |
$ all_defs = transport + extra_defs |
| 152 |
$ all_incs = "[-.Implementation],[---.src],[---.src.chrtrans],[---]" + extra_incs |
| 153 |
$! |
| 154 |
$ IF f$getsyi("ARCH_NAME") .eqs. "Alpha" .or. - |
| 155 |
f$getsyi("ARCH_NAME") .eqs. "IA64" .or. - |
| 156 |
f$trnlnm("VAXCMSG") .eqs. "DECC$MSG" .or. - |
| 157 |
f$trnlnm("DECC$CC_DEFAULT") .eqs. "/DECC" .or. - |
| 158 |
f$trnlnm("DECC$CC_DEFAULT") .eqs. "/VAXC" |
| 159 |
$ THEN |
| 160 |
$! DECC: |
| 161 |
$ If transport .eqs. "UCX" .or. transport .eqs. "TCPWARE" |
| 162 |
$ Then |
| 163 |
$ cc := cc/decc/prefix=all /nomember 'cc_opts'- |
| 164 |
/warning=(disable=implicitfunc)- |
| 165 |
/DEFINE=('all_defs) - |
| 166 |
/INCLUDE=('all_incs) |
| 167 |
$ Else |
| 168 |
$ if transport .eqs. "MULTINET" then - |
| 169 |
extra_defs = extra_defs + ",_DECC_V4_SOURCE,__SOCKET_TYPEDEFS" |
| 170 |
$ cc := cc/decc/prefix=all /nomember 'cc_opts'- |
| 171 |
/warning=(disable=implicitfunc)- |
| 172 |
/DEFINE=('all_defs) - |
| 173 |
/INCLUDE=('all_incs) |
| 174 |
$ EndIf |
| 175 |
$ ELSE |
| 176 |
$ IF f$search("gnu_cc:[000000]gcclib.olb") .nes. "" |
| 177 |
$ THEN |
| 178 |
$! GNUC: |
| 179 |
$ cc := gcc/DEFINE=('all_defs) 'cc_opts' /INCLUDE=('all_incs) |
| 180 |
$ ELSE |
| 181 |
$! VAXC: |
| 182 |
$ cc := cc/DEFINE=('all_defs) 'cc_opts' /INCLUDE=('all_incs) |
| 183 |
$ ENDIF |
| 184 |
$ ENDIF |
| 185 |
$ v1 = f$verify(1) |
| 186 |
$ show sym cc |
| 187 |
$ cc [-.Implementation]HTString.c |
| 188 |
$ cc [-.Implementation]HTParse.c |
| 189 |
$ cc [-.Implementation]HTAccess.c |
| 190 |
$ cc [-.Implementation]HTTP.c |
| 191 |
$ cc [-.Implementation]HTFile.c |
| 192 |
$ cc [-.Implementation]HTBTree.c |
| 193 |
$ cc [-.Implementation]HTFTP.c |
| 194 |
$ cc [-.Implementation]HTTCP.c |
| 195 |
$ cc [-.Implementation]SGML.c |
| 196 |
$ cc [-.Implementation]HTMLDTD.c |
| 197 |
$ cc [-.Implementation]HTChunk.c |
| 198 |
$ cc [-.Implementation]HTPlain.c |
| 199 |
$ cc [-.Implementation]HTMLGen.c |
| 200 |
$ cc [-.Implementation]HTAtom.c |
| 201 |
$ cc [-.Implementation]HTAnchor.c |
| 202 |
$ cc [-.Implementation]HTStyle.c |
| 203 |
$ cc [-.Implementation]HTList.c |
| 204 |
$ cc [-.Implementation]HTRules.c |
| 205 |
$ cc [-.Implementation]HTFormat.c |
| 206 |
$ cc [-.Implementation]HTMIME.c |
| 207 |
$ cc [-.Implementation]HTNews.c |
| 208 |
$ cc [-.Implementation]HTGopher.c |
| 209 |
$ cc [-.Implementation]HTTelnet.c |
| 210 |
$ cc [-.Implementation]HTFinger.c |
| 211 |
$ cc [-.Implementation]HTWSRC.c |
| 212 |
$ cc [-.Implementation]HTAAUtil.c |
| 213 |
$ cc [-.Implementation]HTAABrow.c |
| 214 |
$ cc [-.Implementation]HTGroup.c |
| 215 |
$ cc [-.Implementation]HTAAProt.c |
| 216 |
$ cc [-.Implementation]HTAssoc.c |
| 217 |
$ cc [-.Implementation]HTLex.c |
| 218 |
$ cc [-.Implementation]HTUU.c |
| 219 |
$ cc [-.Implementation]HTVMSUtils.c |
| 220 |
$ cc [-.Implementation]HTWAIS.c |
| 221 |
$ cc [-.Implementation]HTVMS_WaisUI.c |
| 222 |
$ cc [-.Implementation]HTVMS_WaisProt.c |
| 223 |
$! |
| 224 |
$ result = "[-.Implementation]WWWLib_''transport'.olb" |
| 225 |
$ If f$search("''result'") .eqs. "" Then - |
| 226 |
LIBRARY/Create 'result |
| 227 |
$ LIBRARY/Replace 'result *.obj |
| 228 |
$ Delete/nolog/noconf *.obj;* |
| 229 |
$! |
| 230 |
$ v1 = f$verify(v0) |
| 231 |
$ CLEANUP: |
| 232 |
$ v1 = f$verify(v) |
| 233 |
$exit |