home *** CD-ROM | disk | FTP | other *** search
/ Dream 52 / Amiga_Dream_52.iso / Linux / Divers / lynx2.8.1dev.10.tar.gz / lynx2.8.1dev.10.tar / lynx2-8 / WWW / Library / vms / libmake.com < prev   
Text File  |  1998-01-28  |  7KB  |  202 lines

  1. $ v = 'f$verify(0)'
  2. $!            LIBMAKE.COM
  3. $!
  4. $!   Command file to build the WWWLibrary on VMS systems.
  5. $!
  6. $!   08-Oct-1997    F.Macrides        macrides@sci.wfeb.edu
  7. $!    Added comments and minor tweaks for convenient addition of
  8. $!    compiler definitions and compiler and linker options.
  9. $!   26-Jul-1995    F.Macrides        macrides@sci.wfeb.edu
  10. $!    Adding support for GNUC.
  11. $!   03-May-1995    F.Macrides        macrides@sci.wfeb.edu
  12. $!    Include /nomember for compilations with DECC.  It's not the
  13. $!    default on AXP and the code assumes byte alignment.
  14. $!   07-Dec-1994    F.Macrides        macrides@sci.wfeb.edu
  15. $!    Updated for DECC/VAX, VAXC/VAX and DECC/AXP
  16. $!   03-NOV-1994    A.Harper        A.Harper@kcl.ac.uk
  17. $!    Mods to support SOCKETSHR/NETLIB and add a /DEBUG/NOOPT option
  18. $!   02-Jun-1994    F.Macrides        macrides@sci.wfeb.edu
  19. $!    Mods to support TCPWare (To use non-blocking connects, you need
  20. $!    the DRIVERS_V405B.INC patch from FTP.PROCESS.COM for TCPware for
  21. $!    OpenVMS Version 4.0-5, or a higher version of TCPWare, which will
  22. $!    have that bug in the TCPDRIVER fixed.  Otherwise, add NO_IOCTL to
  23. $!    the /define=(...) list.)
  24. $!   20-May-1994    Andy Harper        A.Harper@bay.cc.kcl.ac.uk
  25. $!    Added support for the CMU TCP/IP transport
  26. $!   13-Dec-1993    F.Macrides        macrides@sci.wfeb.edu
  27. $!    Mods for conditional compilations with VAXC versus DECC
  28. $!   10-Dec-1993    F.Macrides        macrides@sci.wfeb.edu
  29. $!    Initial version, for WWWLibrary v2.14 with Lynx v2.1
  30. $!
  31. $ ON CONTROL_Y THEN GOTO CLEANUP
  32. $ ON ERROR THEN GOTO CLEANUP
  33. $!
  34. $!    Compiler definitions can be added here as a comma separated
  35. $!    list with a lead comma, e.g., ",HAVE_FOO_H,DO_BLAH".  They
  36. $!    will apply only to the libwww-FM modules. - FM
  37. $!
  38. $ extra = ""
  39. $!
  40. $!    If no TCP/IP agent is specified (as the first argument),
  41. $!    prompt for a number from the list.   Note that the agent
  42. $!    must be the first argument if the debugger mode is to be
  43. $!    set via a second argument (see below). - FM
  44. $!
  45. $ agent = 0
  46. $ IF P1 .EQS. ""
  47. $ THEN
  48. $     write sys$output "Acceptable TCP/IP agents are"
  49. $     write sys$output " [1] MultiNet (default)"
  50. $     write sys$output " [2] UCX"
  51. $     write sys$output " [3] WIN_TCP"
  52. $    write sys$output " [4] CMU_TCP"
  53. $    write sys$output " [5] SOCKETSHR_TCP"
  54. $    write sys$output " [6] TCPWARE"
  55. $     write sys$output " [7] DECNET"
  56. $     read sys$command/prompt="Agent [1,2,3,4,5,6,7] (RETURN = [1]) " agent
  57. $ ENDIF
  58. $ if agent .eq. 1 .or. agent .eqs. "" .or. p1 .eqs. "MULTINET" then -
  59.     transport = "MULTINET"
  60. $ if agent .eq. 2 .or. p1 .eqs. "UCX" then transport = "UCX"
  61. $ if agent .eq. 3 .or. p1 .eqs. "WIN_TCP" then transport = "WIN_TCP"
  62. $ if agent .eq. 4 .or. p1 .eqs. "CMU_TCP" then transport = "CMU_TCP"
  63. $ if agent .eq. 5 .or. p1 .eqs. "SOCKETSHR_TCP" then transport = "SOCKETSHR_TCP"
  64. $ if agent .eq. 6 .or. p1 .eqs. "TCPWARE" then transport = "TCPWARE"
  65. $ if agent .eq. 7 .or. p1 .eqs. "DECNET" then transport = "DECNET"
  66. $!
  67. $ if transport .eqs. "TCPWARE" then extra = extra + ",UCX"
  68. $!
  69. $!    Compiler options can be specified here.  If there was
  70. $!    a second argument (with any value), then debugger mode
  71. $!    with no optimization will be specified as well. - FM
  72. $!
  73. $ cc_opts = ""
  74. $ if p2 .nes. "" then cc_opts = cc_opts + "/DEBUG/NOOPT"
  75. $!
  76. $ IF f$trnlnm("VAXCMSG") .eqs. "DECC$MSG" .or. -
  77.      f$trnlnm("DECC$CC_DEFAULT") .eqs. "/DECC" .or. -
  78.      f$trnlnm("DECC$CC_DEFAULT") .eqs. "/VAXC"
  79. $ THEN
  80. $  v1 = f$verify(1)
  81. $! DECC:
  82. $  v1 = 'f$verify(0)'
  83. $  If transport .eqs. "UCX" .or. transport .eqs. "TCPWARE"
  84. $  Then
  85. $  v1 = f$verify(1)
  86. $!
  87. $ cc/decc/prefix=all /nomember 'cc_opts'-
  88.     /warning=(disable=implicitfunc)-
  89.     /DEFINE=(DEBUG,ACCESS_AUTH,'transport''extra',VC="""2.14""")-
  90.     /INCLUDE=([-.Implementation],[---.src],[---.src.chrtrans],[---]) -
  91.     [-.Implementation]HTString.c
  92. $!
  93. $ cc := cc/decc/prefix=all /nomember 'cc_opts'-
  94.       /warning=(disable=implicitfunc)-
  95.       /DEFINE=(DEBUG,ACCESS_AUTH,'transport''extra')-
  96.       /INCLUDE=([-.Implementation],[---.src],[---.src.chrtrans],[---])
  97. $!
  98. $  v1 = 'f$verify(0)'
  99. $  Else
  100. $  if transport .eqs. "MULTINET" then -
  101.     extra = extra + ",_DECC_V4_SOURCE,__SOCKET_TYPEDEFS"
  102. $  v1 = f$verify(1)
  103. $!
  104. $ cc/decc/prefix=ansi /nomember 'cc_opts'-
  105.     /warning=(disable=implicitfunc)-
  106.     /DEFINE=(DEBUG,ACCESS_AUTH,'transport''extra',VC="""2.14""")-
  107.     /INCLUDE=([-.Implementation],[---.src],[---.src.chrtrans],[---]) -
  108.     [-.Implementation]HTString.c
  109. $!
  110. $ cc := cc/decc/prefix=ansi /nomember 'cc_opts'-
  111.       /warning=(disable=implicitfunc)-
  112.       /DEFINE=(DEBUG,ACCESS_AUTH,'transport''extra')-
  113.       /INCLUDE=([-.Implementation],[---.src],[---.src.chrtrans],[---])
  114. $!
  115. $  v1 = 'f$verify(0)'
  116. $  EndIf
  117. $ ELSE
  118. $  IF f$search("gnu_cc:[000000]gcclib.olb") .nes. ""
  119. $  THEN
  120. $   v1 = f$verify(1)
  121. $! GNUC:
  122. $!
  123. $   gcc/DEFINE=(DEBUG,ACCESS_AUTH,'transport''extra',VC="""2.14""") 'cc_opts'-
  124.        /INCLUDE=([-.Implementation],[---.src],[---.src.chrtrans],[---]) -
  125.        [-.Implementation]HTString.c
  126. $!
  127. $   cc := gcc/DEFINE=(DEBUG,ACCESS_AUTH,'transport''extra') 'cc_opts'-
  128.          /INCLUDE=([-.Implementation],[---.src],[---.src.chrtrans],[---])
  129. $!
  130. $   v1 = 'f$verify(0)'
  131. $  ELSE
  132. $   v1 = f$verify(1)
  133. $! VAXC:
  134. $!
  135. $   cc/DEFINE=(DEBUG,ACCESS_AUTH,'transport''extra',VC="""2.14""") 'cc_opts'-
  136.       /INCLUDE=([-.Implementation],[---.src],[---.src.chrtrans],[---]) -
  137.       [-.Implementation]HTString.c
  138. $!
  139. $   cc := cc/DEFINE=(DEBUG,ACCESS_AUTH,'transport''extra') 'cc_opts'-
  140.         /INCLUDE=([-.Implementation],[---.src],[---.src.chrtrans],[---])
  141. $!
  142. $   v1 = 'f$verify(0)'
  143. $  ENDIF
  144. $ ENDIF
  145. $ v1 = f$verify(1)
  146. $ cc [-.Implementation]HTParse.c
  147. $ cc [-.Implementation]HTAccess.c
  148. $ cc [-.Implementation]HTTP.c
  149. $ cc [-.Implementation]HTFile.c
  150. $ cc [-.Implementation]HTBTree.c
  151. $ cc [-.Implementation]HTFTP.c
  152. $ cc [-.Implementation]HTTCP.c
  153. $ cc [-.Implementation]SGML.c
  154. $ cc [-.Implementation]HTMLDTD.c
  155. $ cc [-.Implementation]HTChunk.c
  156. $ cc [-.Implementation]HTPlain.c
  157. $ cc [-.Implementation]HTWriter.c
  158. $ cc [-.Implementation]HTMLGen.c
  159. $ cc [-.Implementation]HTAtom.c
  160. $ cc [-.Implementation]HTAnchor.c
  161. $ cc [-.Implementation]HTStyle.c
  162. $ cc [-.Implementation]HTList.c
  163. $ cc [-.Implementation]HTRules.c
  164. $ cc [-.Implementation]HTFormat.c
  165. $ cc [-.Implementation]HTMIME.c
  166. $ cc [-.Implementation]HTHistory.c
  167. $ cc [-.Implementation]HTNews.c
  168. $ cc [-.Implementation]HTGopher.c
  169. $ cc [-.Implementation]HTTelnet.c
  170. $ cc [-.Implementation]HTFinger.c
  171. $ cc [-.Implementation]HTWSRC.c
  172. $ cc [-.Implementation]HTAAUtil.c
  173. $ cc [-.Implementation]HTAABrow.c
  174. $ cc [-.Implementation]HTAAServ.c
  175. $ cc [-.Implementation]HTAAFile.c
  176. $ cc [-.Implementation]HTPasswd.c
  177. $ cc [-.Implementation]HTGroup.c
  178. $ cc [-.Implementation]HTACL.c
  179. $ cc [-.Implementation]HTAuth.c
  180. $ cc [-.Implementation]HTAAProt.c
  181. $ cc [-.Implementation]HTAssoc.c
  182. $ cc [-.Implementation]HTLex.c
  183. $ cc [-.Implementation]HTUU.c
  184. $ cc [-.Implementation]HTVMSUtils.c
  185. $ cc [-.Implementation]getpass.c
  186. $ cc [-.Implementation]getline.c
  187. $ cc [-.Implementation]crypt.c
  188. $ cc [-.Implementation]crypt_util.c
  189. $ cc [-.Implementation]HTWAIS.c
  190. $ cc [-.Implementation]HTVMS_WaisUI.c
  191. $ cc [-.Implementation]HTVMS_WaisProt.c
  192. $!    
  193. $ If f$search("[-.Implementation]WWWLib_''transport'.olb") .eqs. "" Then -
  194.     LIBRARY/Create [-.Implementation]WWWLib_'transport'.olb
  195. $ LIBRARY/Replace [-.Implementation]WWWLib_'transport'.olb *.obj
  196. $ Delete/nolog/noconf *.obj;*
  197. $!
  198. $ v1 = 'f$verify(0)'
  199. $ CLEANUP:
  200. $    v1 = f$verify(v)
  201. $exit
  202.