home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Spezial / SPEZIAL2_97.zip / SPEZIAL2_97.iso / ANWEND / ONLINE / OS2LYN_1 / MAKEFILE.OS2 < prev    next >
Text File  |  1997-05-20  |  43KB  |  1,024 lines

  1. ##makefile for lynx
  2.  
  3. SHELL = sh.exe
  4.  
  5. ##uncomment the next line if your make fails to set $(MAKE)
  6. MAKE= d:/gnu/bin/make
  7.  
  8. ##this is the name of the directory the lynx source code is in.
  9. ##(e.g. lynx2-7-1, not the full path)
  10. lynxdir= lynx2-7-1
  11.  
  12. ##this is the filename for .zip, .tar and .tar.Z archives.
  13. lynxname= lynx2-7-1
  14.  
  15. ##change the next line if you want lynx installed somewhere
  16. ##besides /usr/local/bin
  17. exec= /usr/local/bin
  18.  
  19. ##change the next line if you want the lynx man file installed somewhere
  20. ##besides /usr/local/man/man1
  21. doc= /usr/local/man/man1
  22.  
  23. ##change the next line if you want the lynx.cfg file installed somewhere
  24. ##besides /usr/local/lib
  25. cfg= /usr/local/lib
  26.  
  27. installbin= install -c -s -m 755
  28. installdoc= install -c -m 444
  29.  
  30. ##set the relative location of the WWW library Implementation directory,
  31. ##from this directory
  32. ##do not set this to be an absolute path!!!
  33. WWWINC= WWW/Library/Implementation
  34.  
  35. # !!!!!!!!!!! SUN resolv LIBRARY !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  36. # To include resolv in the LIBS="" list for SUN 3, 4 or Solaris OS,
  37. # point RESOLVLIB to that library.  You need this if you get the message
  38. # "Alert!:  Unable to connect to remote host" whenever you try to
  39. # access a host other than localhost and have made Lynx without it.
  40. # See the PROBLEMS file for more information.
  41. #RESOLVLIB= -lresolv
  42.  
  43. # !!!!!!!!!!! Alternate socket functions for SOCKS !!!!!!!!!!!!!!!!!!
  44. # To make a SOCKSified lynx, include -DSOCKS in your SITE_LYDEFS and
  45. # SITE_DEFS, below, and point SOCKSLIB to your SOCKS library.  Note
  46. # that you may have problems accessing FTP servers.  Also, instead of
  47. # SOCKSifying lynx for use behind a firewall, you are better off if
  48. # you make it normally, and set it up to use a proxy server.  You can
  49. # SOCKSify the proxy server, and it will handle all clients, not just
  50. # Lynx (see the INSTALLATION file in this distribution).  If your SOCKS
  51. # server was compiled to use the short version of Rbind, also include
  52. # -DSHORTENED_RBIND in your SITE_LYDEFS and SITE_DEFS.  If you do
  53. # SOCKSify lynx, you can turn off SOCKS proxy usage via a -nosocks
  54. # command line switch.
  55. #SOCKSLIB= /usr/local/lib/libsocks.a
  56.  
  57. # !!!!!!!!!!!!!  DIRECT WAIS ACCESS !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  58. # If you are adding direct wais access you must fill in the
  59. # location of wais.a, client.a and the standard math library, libm.a.
  60. # You can pick up the most current freeWAIS sources from
  61. #    ftp://ftp.cnidr.org/pub/NIDR.tools/freewais
  62. # If you are using freeWAIS-0.202 or older, include -DDECLARE_WAIS_LOGFILES
  63. # in your SITE_DEFS.
  64. # Plese put an ABSOLUTE address here if you want it to work!
  65. #WAISLIB= ../../freeWAIS-0.202/bin/client.a ../../freeWAIS-0.202/bin/wais.a /usr/lib/libm.a
  66.  
  67. # !!!!!!!!!!!!! SLANG Support (For color version of Lynx). !!!!!!!!!!!!!!!!
  68. # The slang library is an alternative to curses, developed by John E. Davis
  69. # (davis@space.mit.edu).  Version 0.99-27 or higher is available from
  70. #    ftp://space.mit.edu/pub/davis
  71. # It provides color support for Lynx.  If you wish to try it and are not
  72. # on a supported system (see list, below), include -DUSE_SLANG in your
  73. # SITE_DEFS and define the locations of the slang library (libslang.a)
  74. # and headers (slang.h and slcurses.h) here.  They may be left commented
  75. # out if the library and headers are in their canonical locations (usr/lib,
  76. # and usr/include).
  77. #SLANGINC = -I../../slang/src#              location of slang.h and slcurses.h
  78. #SLANGLIB = -L../../slang/src/$(ARCH)objs#  location of libslang.a
  79. #SLANGRRLIB = -R../../slang/src/$(ARCH)objs# for solaris
  80.  
  81. # !!!!!!!!!!! Lynx Local Directory Listing Formats !!!!!!!!!!!!!!!!!!!!!!!!!!!
  82. # Lynx supports "ls -l" format for local directory listings on Unix if the
  83. # LONG_LIST compilation symbol is defined, and includes links to the parent
  84. # directory if the compilation symbol NO_PARENT_DIR_REFERENCE is not defined.
  85. # If "ls -l" format is enabled here, the listing format can be modifed via a
  86. # LIST_FORMAT symbol in userdefs.h and/or lynx.cfg.  Otherwise, only file and
  87. # directory names will be included in the listings.
  88. #
  89. # If you are not including DirEd Support (see below) and wish to disable
  90. # "ls -l" emulation in local directory listings, prepend "#" to this line:
  91. DIR_LONG_LIST =   -DLONG_LIST
  92. #
  93. # To disable "Up to" parent links in local directory listings,
  94. # remove "#" from this line:
  95. #DIR_PARENT =  -DNO_PARENT_DIR_REFERENCE
  96.  
  97. # !!!!!!!!!!! Lynx DirEd Support !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  98. # Lynx now supports directory editing (DirEd) for local directories.
  99. # This allows users to do things like view, copy, & remove files using
  100. # a tabular display of the directory & single-keystroke commands instead
  101. # of using the command line.  From inside Lynx, the keystroke sequence
  102. # "g.<enter>" switches Lynx to DirEd mode on the current directory.
  103. # If you're building a Lynx that is to be used as a kind of restricted
  104. # shell for users who do not have access to the command line & should
  105. # not have access to equivalent capabilities, you need to disable DirEd
  106. # here.  You can also disable some DirEd functions while allowing others.
  107. #
  108. # DirEd functions are disabled by inserting or removing "#" signs at
  109. # the beginnings of lines that contain variable assignments here.
  110. # All DirEd functions that were enabled on compilation can be disabled
  111. # or modified at run time via DIRED_MENU symbols in lynx.cfg.
  112. #
  113. # To disable DirEd completely, prepend "#" to this line:
  114. DIRED_SUPPORT     =   -DDIRED_SUPPORT
  115. #(If you have disabled DirEd completely, you can ignore all the
  116. #other DirEd stuff here.)
  117. #
  118. # To prevent DirEd from extracting files from an archive file,
  119. # remove "#" from this line:
  120. #DIRED_ARCHIVE   =  -DARCHIVE_ONLY
  121. #
  122. # To prevent DirEd from using the tar program, prepend "#" to this line:
  123. DIRED_TAR   =   -DOK_TAR
  124. #
  125. # To prevent DirEd from using zip & unzip, prepend "#" to this line:
  126. DIRED_ZIP   =   -DOK_ZIP
  127. #
  128. # To prevent DirEd from using gzip & gunzip, prepend "#" to this line:
  129. DIRED_GZIP   =   -DOK_GZIP
  130. #
  131. # To prevent DirEd from using uudecode, prepend "#" to this line:
  132. DIRED_UUDECODE   =   -DOK_UUDECODE
  133. #
  134. # Lynx users can customize their keymaps by creating private versions
  135. # of lynx.cfg & modifying them, overriding the default keymap.
  136. # To prevent DirEd keymap overriding, prepend "#" to this line:
  137. DIRED_OVERRIDE   =   -DOK_OVERRIDE
  138. #
  139. # To prevent DirEd from changing the permissions on directories or files
  140. # (i.e. from doing what the Unix chmod command or the DOS attrib command
  141. # does), prepend "#" to this line:
  142. DIRED_PERMIT   =   -DOK_PERMIT
  143. #
  144. # If you do not comment out the DIRED_PERMIT line, but want to restrict
  145. # changes of the eXecute permission to directories (i.e., not allow it to
  146. # be changed for files), remove "#" from this line (if you don't remove it,
  147. # you can still block changes of the eXecute permission for files but not
  148. # directories via the "change_exec_perms" command line restriction):
  149. #DIRED_NOXPERMS   =   -DNO_CHANGE_EXECUTE_PERMS
  150.  
  151. # !!!!!!!!!!! NOTE:  NetBSD and FreeBSD !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  152. # On NetBSD 1.1 and earlier, as well as FreeBSD 2.0.5 and earlier,
  153. # the system make program uses different syntax for including files
  154. # than the GNU make program.  If you get the following error --
  155. #   * "Makefile", line 27: Need an operator *
  156. # you have several choices to run GNU make:
  157. #
  158. # * Install GNU make as `/usr/bin/make', after moving /usr/bin/make
  159. #   to /usr/bin/old-make
  160. #
  161. # * Install GNU make in a different directory which is earlier in
  162. #   your search path.
  163. #
  164. # * Install GNU make as gmake, and change occurrences of `make' to
  165. #   `gmake' in any Makefile used by your install.  You won't need to
  166. #   change all of the Makefiles, just the top-level one, and the one
  167. #   in WWW/Library/???bsd
  168.  
  169. # !!!!!!!!!!! Lynx Wishful Thinking !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  170. # If you are on one of the supported systems (see all: list below)
  171. # you should not have to modify anything from here down (but check
  172. # it out for your system, anyway)!
  173. # If you are not, then you should edit the generic: entry below.
  174. #
  175. # If you need ncurses, the latest version can always be found
  176. # in ftp://ftp.netcom.com/pub/zm/zmbenhal/ncurses/
  177. # (you may need -DNCURSESHEADER in addition to -DNCURSES for old
  178. # versions of ncurses; see below).
  179. #
  180. # Also be sure to check out the compilation symbols in userdefs.h
  181. # before building Lynx!
  182.  
  183. all:
  184.     @echo
  185.     @echo "Please run make with one of the following arguments"
  186.     @echo "aix4       -- for RS/6000 running AIX 4.n and some 3.2"
  187.     @echo "aix32      -- for RS/6000 running AIX 3.2"
  188.     @echo "aix31      -- for RS/6000 running AIX 3.1 with curses bug"
  189.     @echo "apollo     -- apollo systems (untested)"
  190.     @echo "bsdi       -- BSD Interactive"
  191.     @echo "bsdi-ncurses -- BSD/OS(v2.0 or later) using ncurses(v1.9.4 or later) package."
  192.     @echo "bsdi-slang -- BSD/OS(v2.0 or later) using the slang package."
  193.     @echo "clix       -- for Intergraph CLIX"
  194.     @echo "convex     -- for Convex C-series"
  195.     @echo "convex-ncurses -- for Convex C-series with ncurses package"
  196.     @echo "dgux       -- for DGUX "
  197.     @echo "freebsd    -- for FreeBSD"
  198.     @echo "freebsd-ncurses -- for FreeBSD using ncurses package"
  199.     @echo "freebsd-slang -- for FreeBSD with color slang package"
  200.     @echo "generic    -- for generic UNIX"
  201.     @echo "isc        -- for Interactive Machines (untested)"
  202.     @echo "linux      -- for PC linux"
  203.     @echo "linux-ncurses -- for PC linux using ncurses package"
  204.     @echo "linux-slang -- for linux with color slang package"
  205.     @echo "mips       -- for MIPS, svr3/bsd flavour (untested)"
  206.     @echo "netbsd     -- for NetBSD"
  207.     @echo "netbsd-ncurses -- for NetBSD using ncurses package"
  208.     @echo "news       -- for SONY NEWS-OS 4.2.1R"
  209.     @echo "news-ncurses -- for SONY NEWS-OS 4.2.1R using ncurses package"
  210.     @echo "news-slang -- for SONY NEWS-OS 4.2.1R with color slang package"
  211.     @echo "next       -- for NeXT OS"
  212.     @echo "next-ncurses  -- for NeXT OS using ncurses package"
  213.     @echo "osf        -- for Alpha OSF/1"
  214.     @echo "osf-slang  -- for Alpha OSF/1 with color slang package"
  215.     @echo "ptx        -- for Sequent's DYNIX/ptx, version 4, (current version)"
  216.     @echo "ptx-slang  -- for Sequent's DYNIX/ptx, version 4, with color slang package"
  217.     @echo "ptx        -- for Sequent's DYNIX/ptx, current version"
  218.     @echo "ptx2       -- for Sequent's DYNIX/ptx, version 2"
  219.     @echo "riscos     -- Control Data Unix machine running EP/IX"
  220.     @echo "sco        -- for SCO machines"
  221.     @echo "sco5       -- for SCO OpenServer Release 5 machines"
  222.     @echo "sgi        -- for SGI machines"
  223.     @echo "sun3       -- for SUN 3 OS with System V curses"
  224.     @echo "sun4       -- for SUN 4 OS with System V curses"
  225.     @echo "sun4-ncurses -- for SUN 4 OS using ncurses package"
  226.     @echo "sun4-pure  -- for SUN 4 OS with PURIFY and System V curses"
  227.     @echo "sun4-slang -- for SUN 4 OS with color slang package"
  228.     @echo "svr4       -- for SVR4"
  229.     @echo "snake      -- for HP-UX lt 9.01 (gcc)"
  230.     @echo "snake-slang -- for HP-UX lt 9.01 (gcc) with color slang"
  231.     @echo "snake2     -- for HP-UX gte 9.01 (gcc)"
  232.     @echo "snake2-slang -- for HP-UX gte 9.01 (gcc) with color slang"
  233.     @echo "snake3     -- for HP-UX (purchased compiler)"
  234.     @echo "snake3-slang -- for HP-UX (purchased compiler) with color slang"
  235.     @echo "solaris2   -- for solaris 2.x"
  236.     @echo "solaris2cc -- for Solaris 2.x using Sun's unbundled C compiler"
  237.     @echo "solaris2-slang -- for Solaris 2 and color slang package"
  238.     @echo "solaris2-slangcc -- for Solaris 2 slang using Sun's unbundled C compiler"
  239.     @echo "ultrix     -- for DEC Ultrix"
  240.     @echo "decstation -- for DEC Ultrix (same as ultrix)"
  241.     @echo "ultrix-slang     -- for DEC Ultrix and color slang package"
  242.     @echo "decstation-slang -- for DEC Ultrix and color slang (same as ultrix-slang)"
  243.     @echo "umaxv   -- for Encore's UMAXV (SVR3.x) "
  244.     @echo "umaxv-slang   -- for Encore's UMAXV and color slang package"
  245.     @echo "unixware   -- for Novell's Unixware"
  246.     @echo "univell    -- for Novell's Unixware"
  247.     @echo "unixware-slang -- for Unixware and color slang package"
  248.     @echo "univell-slang  -- for Unixware and color slang package"
  249.     @echo "clean      -- removes all '.o' and 'core' files"
  250.     @echo "tar        -- runs clean, removes executable, and tars the whole directory"
  251.     @echo "compress   -- runs tar, then compresses the result"
  252.     @echo "zip        -- runs clean, removes executable, and zips the whole directory"
  253.     @echo
  254.  
  255. # Map some extra commands to existing ones
  256. unix: generic
  257. decstation: ultrix
  258. decstation-slang: ultrix-slang
  259. univell: unixware
  260. univell-slang: unixware-slang
  261.  
  262. DIR_LYDEFS = $(DIRED_SUPPORT) $(DIR_LONG_LIST) $(DIR_PARENT)
  263.  
  264. DIR_DEFS = $(DIRED_SUPPORT) $(DIRED_ARCHIVE) $(DIRED_TAR) $(DIRED_ZIP) $(DIRED_GZIP) $(DIRED_UUDECODE) $(DIRED_OVERRIDE) $(DIRED_PERMIT) $(DIRED_NOXPERMS)
  265.  
  266. # If you apply patches which require linking to site-specific libraries,
  267. # uncomment the following and point SITE_LIBS to those libraries.
  268. #SITE_LIBS= # Your libraries here (remove the "#")
  269.  
  270. # Set SITE_LYDEFS to one or more of the defines for the WWW Library:
  271. SITE_LYDEFS = $(DIR_LYDEFS) # Your defines here
  272.  
  273. # Set SITE_DEFS to one or more of the defines for lynx below:
  274. SITE_DEFS = $(DIR_DEFS) # Your defines here
  275.  
  276. # if you are compiling on a previously unsupported system, modify
  277. # this generic entry!!
  278. #
  279. # defines include:
  280. # -DNO_CUSERID     if you don't have cuserid()
  281. # -DNO_UTMP       if you don't have utmp capibilities
  282. # -Dvfork=fork     if you don't have vfork()
  283. # -DMMDF       if you use MMDF instead of sendmail
  284. # -DFANCY_CURSES   enables fancy curses (bold, underline, reverse)
  285. # -DNCURSES        for ncurses support (also indicate the LIBS path)
  286. # -DNCURSESHEADER  seek ncurses.h instead of ncurses/curses.h in LYCurses.h
  287. # -DNO_KEYPAD      if you don't have keypad() and related defines
  288. # -DNO_SIZECHANGE  Disables window sizechange code
  289. # -DNO_CPU_LIMIT   Disables Max CPU timeout (includes CLOCKS_PER_SECOND)
  290. # -DNO_PUTENV      Define if you don't have a putenv call.
  291. # -DNO_CBREAK      if you don't have cbreak() (use crmode() instead)
  292. # -DUNDERLINE_LINKS  Define if you want links underlined instead of bold.
  293. # -DIGNORE_CTRL_C  Define if Control-C shouldn't exit lynx.
  294. # -DHP_TERMINAL    For DIM workaround to REVERSE problems on HP terminals.
  295. # -DLOCALE         For LOCALE support for international characters.
  296. # -DSOCKS       For making a SOCKSified lynx.
  297. # -DSHORTENED_RBIND  For a SOCKSified lynx with the short version of Rbind.
  298. # -DNO_UNISTD_H    if you don't have <unistd.h>
  299. # -DNOPORT         if you must use PASV instead of PORT for FTP
  300. # -DNO_TTYTYPE       if your system lacks a ttytype variable
  301. # -DNSL_FORK       For fork-based name server lookups that can be 'z'apped.
  302. #
  303. # if you are linking to freeWAIS-0.202 or older, you should define this
  304. # in MCFLAGS (SITE_DEFS)
  305. #
  306. # -DDECLARE_WAIS_LOGFILES
  307. #
  308. # if you have the reverse clear screen problem of some SUN4 systems you
  309. # should define this in MCFLAGS (SITE_DEFS)
  310. #
  311. # -DREVERSE_CLEAR_SCREEN_PROBLEM
  312. #
  313. # if you have an SVR4 system with the "type any key" problem, try defining
  314. # this in LYFLAGS (SITE_LYDEFS) and MCFLAGS (SITE_DEFS)
  315. #
  316. # -DSVR4_BSDSELECT
  317. #
  318. # Old Data General systems may need this in their SITE_LYDEFS
  319. # for their inet_addr(host) calls.
  320. #
  321. # -DDGUX_OLD
  322. #
  323. # if you would like logging of client requests via syslog(), you should
  324. # define this in MCFLAGS (SITE_DEFS)
  325. #
  326. # -DSYSLOG_REQUESTED_URLS
  327. #
  328. # if you would like to enable code to detect memory leaks define this in both
  329. # LYFLAGS (SITE_LYDEFS) and MCFLAGS (SITE_DEFS)
  330. #
  331. # -DLY_FIND_LEAKS
  332. #
  333. # for installation of local execution links, please see the file userdefs.h
  334.  
  335. #generic machines with original Berkeley curses
  336. generic:
  337.     @echo "You must first compile the WWW library in WWW/Library"
  338.     cd WWW/Library/unix; $(MAKE) LYFLAGS="$(SITE_LYDEFS)"
  339.     cd src; $(MAKE) all CC="cc" MCFLAGS="-O -DFANCY_CURSES -DUNIX \
  340.         -I../$(WWWINC) $(SITE_DEFS)" \
  341.         LIBS="-lcurses -ltermcap \
  342.         $(WAISLIB) $(SOCKSLIB) $(SITE_LIBS)" \
  343.         WWWLIB="../WWW/Library/unix/libwww.a"
  344.  
  345. # Contributed by Alex Matulich (matuli_a@marlin.navsea.navy.mil).
  346. # Note that some of the online help files in this distribution need
  347. # to be edited and renamed to conform with the Intergraph CLIX 14
  348. # character file name limit.
  349. clix:
  350.     cd WWW/Library/clix; $(MAKE) LYFLAGS="$(SITE_LYDEFS)"
  351.     cd src; $(MAKE) all CC="cc" MCFLAGS="-O -DFANCY_CURSES -DUNIX -DUSG \
  352.         -DCLIX -DNO_UTMP \
  353.         -I../$(WWWINC) $(SITE_DEFS)" \
  354.         LIBS="-lmalloc -lcurses -ltermcap -lbsd -lc_s \
  355.         $(WAISLIB) $(SOCKSLIB) $(SITE_LIBS)" \
  356.         WWWLIB="../WWW/Library/clix/libwww.a"
  357.  
  358. # Tested on C3 series under ConvexOS 10.1, CC V5.0;
  359. # Should work on other C-series
  360. convex:
  361.     cd WWW/Library/convex; $(MAKE) LYFLAGS="$(SITE_LYDEFS)"
  362.     cd src; $(MAKE) all CC="cc" MCFLAGS="-O \
  363.         -D__STDC__ \
  364.         -DNO_PUTENV -DNO_CBREAK -DNO_KEYPAD -DUSE_DIRENT -DUNIX \
  365.         -DSTDC_HEADERS -I../$(WWWINC) $(SITE_DEFS)" \
  366.         LIBS="-lcurses -ltermcap \
  367.         $(WAISLIB) $(SOCKSLIB) $(SITE_LIBS)" \
  368.         WWWLIB="../WWW/Library/convex/libwww.a"
  369.  
  370. convex-ncurses:
  371.     cd WWW/Library/convex; $(MAKE) LYFLAGS="$(SITE_LYDEFS)"
  372.     cd src; $(MAKE) all CC="cc" MCFLAGS="-O \
  373.         -I/usr/local/include \
  374.         -DNCURSES -DFANCY_CURSES \
  375.         -D__STDC__ \
  376.         -DNO_PUTENV -DNO_CBREAK -DUSE_DIRENT -DUNIX \
  377.         -DSTDC_HEADERS -I../$(WWWINC) $(SITE_DEFS)" \
  378.         LIBS="-L/usr/local/lib -lncurses \
  379.         $(WAISLIB) $(SOCKSLIB) $(SITE_LIBS)" \
  380.         WWWLIB="../WWW/Library/convex/libwww.a"
  381.  
  382. # You may need to remove -DUTMPX_FOR_UTMP for some versions of DGUX.
  383. dgux:
  384.     cd WWW/Library/unix; $(MAKE) LYFLAGS="-DDGUX $(SITE_LYDEFS)"
  385.     cd src; $(MAKE) all CC="cc" MCFLAGS="-O -DFANCY_CURSES -DUNIX \
  386.         -I../$(WWWINC) -DDGUX -DUTMPX_FOR_UTMP $(SITE_DEFS)" \
  387.         LIBS="-lcurses -ltermcap -lsocket -lnsl \
  388.         $(WAISLIB) $(SOCKSLIB) $(SITE_LIBS)" \
  389.         WWWLIB="../WWW/Library/unix/libwww.a"
  390.  
  391. mips:
  392.     cd WWW/Library/mips; $(MAKE) LYFLAGS="$(SITE_LYDEFS)"
  393.     cd src; $(MAKE) all CC="cc" MCFLAGS="-systype svr3 -O \
  394.         -DFANCY_CURSES -DUNIX -I/svr3/usr/include/bsd \
  395.         -I../$(WWWINC) -DNO_UTMP $(SITE_DEFS)" \
  396.         LIBS="-lcurses -lnsl -lbsd \
  397.         $(WAISLIB) $(SOCKSLIB) $(SITE_LIBS)" \
  398.         WWWLIB="../WWW/Library/mips/libwww.a"
  399.  
  400. # FreeBSD doesn't have or need ranlib. (ignore the error message about that :)
  401. freebsd:
  402.     cd WWW/Library/freebsd; $(MAKE) LYFLAGS="$(SITE_LYDEFS)"
  403.     cd src; $(MAKE) all CC="cc" MCFLAGS="-O -DUNIX -DNO_KEYPAD -DNO_CUSERID \
  404.         -I../$(WWWINC) $(SITE_DEFS)"\
  405.         LIBS="-lcurses -ltermcap \
  406.         $(WAISLIB) $(SOCKSLIB) $(SITE_LIBS)" \
  407.         WWWLIB="../WWW/Library/freebsd/libwww.a"
  408.  
  409. # FreeBSD doesn't have or need ranlib. (ignore the error message about that :)
  410. freebsd-ncurses:
  411.     cd WWW/Library/freebsd; $(MAKE) LYFLAGS="$(SITE_LYDEFS)"
  412.     cd src; $(MAKE) all MCFLAGS="$(CFLAGS) -DFANCY_CURSES -DNCURSES \
  413.         -DNCURSESHEADER -DUNIX -DNO_TTYTYPE -DNO_CUSERID -DLOCALE \
  414.         -I../$(WWWINC) $(SITE_DEFS)" \
  415.         LIBS="-lncurses -lmytinfo \
  416.         $(WAISLIB) $(SOCKSLIB) $(SITE_LIBS)" \
  417.         WWWLIB="../WWW/Library/freebsd/libwww.a"
  418.  
  419. # FreeBSD doesn't have or need ranlib. (ignore the error message about that :)
  420. freebsd-slang:
  421.     cd WWW/Library/freebsd; $(MAKE) LYFLAGS="$(SITE_LYDEFS)"
  422.     cd src; $(MAKE) all MCFLAGS="$(CFLAGS) -DUSE_SLANG -DUNIX \
  423.         -DNO_TTYTYPE -DNO_CUSERID -DLOCALE \
  424.         -I../$(WWWINC) $(SITE_DEFS)" \
  425.         LIBS="$(WAISLIB) $(SOCKSLIB) $(SITE_LIBS)" \
  426.         WWWLIB="../WWW/Library/freebsd/libwww.a" \
  427.         SLANGLIB="$(SLANGLIB) -lslang -ltermcap -lm" \
  428.         SLANGINC="$(SLANGINC)"
  429.  
  430. # NetBSD doesn't have or need ranlib. (ignore the error message about that :)
  431. netbsd:
  432.     cd WWW/Library/netbsd; $(MAKE) LYFLAGS="$(SITE_LYDEFS)"
  433.     cd src; $(MAKE) all CC="cc" MCFLAGS="-O -DUNIX -DNO_KEYPAD -DNO_CUSERID \
  434.         -I../$(WWWINC) $(SITE_DEFS)" \
  435.         LIBS="-lcurses -ltermcap \
  436.         $(WAISLIB) $(SOCKSLIB) $(SITE_LIBS)" \
  437.         WWWLIB="../WWW/Library/netbsd/libwww.a"
  438.  
  439. # NetBSD doesn't have or need ranlib. (ignore the error message about that :)
  440. netbsd-ncurses:
  441.     cd WWW/Library/netbsd; $(MAKE) LYFLAGS="$(SITE_LYDEFS)"
  442.     cd src; $(MAKE) all CC="cc" MCFLAGS="-O -DFANCY_CURSES -DNCURSES \
  443.         -DUNIX -DNO_CUSERID -I../$(WWWINC) $(SITE_DEFS) \
  444.         -I/usr/include/ncurses" \
  445.         LIBS="-lncurses -lcompat \
  446.         $(WAISLIB) $(SOCKSLIB) $(SITE_LIBS)" \
  447.         WWWLIB="../WWW/Library/netbsd/libwww.a"
  448.  
  449. # Tested on DN 3500 & 4500's running Domain O/S 10.4 BSD
  450. # -Acpu,mathchip may have to be changed on other machines - see man cpuhep
  451. apollo:
  452.     cd WWW/Library/apollo_m68k; $(MAKE) LYFLAGS="$(SITE_LYDEFS)"
  453.     cd src; $(MAKE) all CC="cc" MCFLAGS="-O -DUNIX -DNO_KEYPAD -DNO_CUSERID \
  454.         -D_BUILTINS -W0,-opt,4 -I../$(WWWINC) $(SITE_DEFS)" \
  455.         LIBS="-lcurses -ltermcap \
  456.         $(WAISLIB) $(SOCKSLIB) $(SITE_LIBS)" \
  457.         WWWLIB="../WWW/Library/apollo_m68k/libwww.a $(MYWWWLIB)"
  458.  
  459. riscos:
  460.     cd WWW/Library/unix; $(MAKE) CC="gcc" LYFLAGS="$(SITE_LYDEFS)"
  461.     cd src; $(MAKE) all CC="gcc" MCFLAGS="-O -DFANCY_CURSES -DUNIX \
  462.         -DNO_GETCWD -DNO_PUTENV -Dremove=unlink \
  463.         -I../$(WWWINC) $(SITE_DEFS)" \
  464.         LIBS="-lcurses -ltermcap \
  465.         $(WAISLIB) $(SOCKSLIB) $(SITE_LIBS)" \
  466.         WWWLIB="../WWW/Library/unix/libwww.a"
  467.  
  468. # Lynx will not compile with the "free" cc compiler supplied
  469. # with HP-UX.  You must use a purchased cc compiler to compile Lynx.
  470. snake:
  471.     cd WWW/Library/snake; $(MAKE) CC="gcc" LYFLAGS="$(SITE_LYDEFS)"
  472.     cd src; $(MAKE) all CC="gcc" MCFLAGS="-O -DFANCY_CURSES -DUNIX \
  473.         -DSNAKE -I../$(WWWINC) $(SITE_DEFS)" \
  474.         LIBS="-lcurses -ltermcap \
  475.         $(WAISLIB) $(SOCKSLIB) $(SITE_LIBS)" \
  476.         WWWLIB="../WWW/Library/snake/libwww.a"
  477.  
  478. snake-slang:
  479.     cd WWW/Library/snake; $(MAKE) CC="gcc" LYFLAGS="$(SITE_LYDEFS)"
  480.     cd src; $(MAKE) all CC="gcc" MCFLAGS="-O -DUNIX \
  481.         -DUSE_SLANG -DSNAKE -I../$(WWWINC) $(SITE_DEFS)" \
  482.         LIBS="-lcurses -ltermcap \
  483.         $(WAISLIB) $(SOCKSLIB) $(SITE_LIBS)" \
  484.         WWWLIB="../WWW/Library/snake/libwww.a" \
  485.         SLANGLIB="$(SLANGLIB) -lslang" SLANGINC="$(SLANGINC)"
  486.  
  487. snake2:
  488.     cd WWW/Library/snake; $(MAKE) CC="gcc" LYFLAGS="-D_INCLUDE_HPUX_SOURCE \
  489.         -D_INCLUDE_POSIX_SOURCE -D_INCLUDE_AES_SOURCE \
  490.         -D_INCLUDE_XOPEN_SOURCE $(SITE_LYDEFS)"
  491.     cd src; $(MAKE) all CC="gcc" MCFLAGS="-O -DFANCY_CURSES -DUNIX \
  492.         -DSNAKE -I../$(WWWINC) -D_INCLUDE_HPUX_SOURCE \
  493.         -D_INCLUDE_POSIX_SOURCE -D_INCLUDE_AES_SOURCE \
  494.         -D_INCLUDE_XOPEN_SOURCE $(SITE_DEFS)" \
  495.         LIBS="-lcurses -ltermcap \
  496.         $(WAISLIB) $(SOCKSLIB) $(SITE_LIBS)" \
  497.         WWWLIB="../WWW/Library/snake/libwww.a"
  498.  
  499. snake2-slang:
  500.     cd WWW/Library/snake; $(MAKE) CC="gcc" LYFLAGS="-D_INCLUDE_HPUX_SOURCE \
  501.         -D_INCLUDE_POSIX_SOURCE -D_INCLUDE_AES_SOURCE \
  502.         -D_INCLUDE_XOPEN_SOURCE $(SITE_LYDEFS)"
  503.     cd src; $(MAKE) all CC="gcc" MCFLAGS="-O -DUNIX \
  504.         -DUSE_SLANG -DSNAKE -I../$(WWWINC) -D_INCLUDE_HPUX_SOURCE \
  505.         -D_INCLUDE_POSIX_SOURCE -D_INCLUDE_AES_SOURCE \
  506.         -D_INCLUDE_XOPEN_SOURCE $(SITE_DEFS)" \
  507.         LIBS="-lcurses -ltermcap \
  508.         $(WAISLIB) $(SOCKSLIB) $(SITE_LIBS)" \
  509.         WWWLIB="../WWW/Library/snake/libwww.a" \
  510.         SLANGLIB="$(SLANGLIB) -lslang" SLANGINC="$(SLANGINC)"
  511.  
  512. # Lynx will compile with the purchased cc compiler added to HP-UX.
  513. # contributed by Andy Finkenstadt (genie@panix.com)
  514. # Note that initial releases of HP/UX 10.10 have a broken select() in
  515. # libcurses.a and will malfunction with Lynx.  See the PROBLEMS file.
  516. snake3:
  517.     cd WWW/Library/snake; $(MAKE) CC="cc" LYFLAGS="-Ae -DUNIX \
  518.         $(SITE_LYDEFS)"
  519.     cd src; $(MAKE) all CC="cc" MCFLAGS="-O -Ae -DFANCY_CURSES -DUNIX \
  520.         -DSNAKE -I../$(WWWINC) $(SITE_DEFS)" \
  521.         LIBS="-lcurses -ltermcap \
  522.         $(WAISLIB) $(SOCKSLIB) $(SITE_LIBS)" \
  523.         WWWLIB="../WWW/Library/snake/libwww.a"
  524.  
  525. snake3-slang:
  526.     cd WWW/Library/snake; $(MAKE) CC="cc" LYFLAGS="-Ae -DUNIX \
  527.         $(SITE_LYDEFS)"
  528.     cd src; $(MAKE) all CC="cc" MCFLAGS="-O -Ae -DUSE_SLANG -DUNIX \
  529.         -DSNAKE -I../$(WWWINC) $(SITE_DEFS)" \
  530.         LIBS="-lcurses -ltermcap \
  531.         $(WAISLIB) $(SOCKSLIB) $(SITE_LIBS)" \
  532.         WWWLIB="../WWW/Library/snake/libwww.a" \
  533.         SLANGLIB="$(SLANGLIB) -lslang" SLANGINC="$(SLANGINC)"
  534.  
  535. svr4:
  536.     cd WWW/Library/svr4; $(MAKE) LYFLAGS="-DSVR4_BSDSELECT $(SITE_LYDEFS)"
  537.     cd src; $(MAKE) all CC="cc" MCFLAGS="-O -DFANCY_CURSES -DUNIX \
  538.         -I../$(WWWINC) -DUTMPX_FOR_UTMP -DSVR4 -DSVR4_BSDSELECT \
  539.         -DTRUE=1 -DFALSE=0 $(SITE_DEFS)" \
  540.         LIBS="-lcurses -lsocket -lnsl \
  541.         $(WAISLIB) $(SOCKSLIB) $(SITE_LIBS)" \
  542.         WWWLIB="../WWW/Library/svr4/libwww.a"
  543.  
  544. # SEQUENT doesn't have or need ranlib. (ignore the error message about that :)
  545. ptx:
  546.     cd WWW/Library/ptx; $(MAKE) $(MFLAGS) LYFLAGS="-DNO_BCOPY \
  547.         -DSVR4_BSDSELECT -DNO_FILIO_H $(SITE_LYDEFS)"
  548.     cd src; $(MAKE) $(MFLAGS) all CC="cc" MCFLAGS="-O -DUNIX -DSVR4 \
  549.         -DFANCY_CURSES -DNO_FILIO_H -DUTMPX_FOR_UTMP -DHAVE_TERMIOS_H \
  550.         -I../$(WWWINC) $(SITE_DEFS)" \
  551.         LIBS="-lcurses -lsocket -linet -lnsl \
  552.         $(WAISLIB) $(SOCKSLIB) $(SITE_LIBS)" \
  553.         WWWLIB="../WWW/Library/ptx/libwww.a"
  554.  
  555. # SEQUENT doesn't have or need ranlib. (ignore the error message about that :)
  556. ptx-slang:
  557.     cd WWW/Library/ptx; $(MAKE) $(MFLAGS) LYFLAGS="-DNO_BCOPY \
  558.         -DSVR4_BSDSELECT -DNO_FILIO_H $(SITE_LYDEFS)"
  559.     cd src; $(MAKE) $(MFLAGS) all CC="cc" MCFLAGS="-O -DUNIX -DSVR4 \
  560.         -DUSE_SLANG -DNO_FILIO_H -DUTMPX_FOR_UTMP -DHAVE_TERMIOS_H \
  561.         -I../$(WWWINC) $(SITE_DEFS)" \
  562.         LIBS="-lcurses -lsocket -linet -lnsl \
  563.         $(WAISLIB) $(SOCKSLIB) $(SITE_LIBS)" \
  564.         WWWLIB="../WWW/Library/ptx/libwww.a" \
  565.         SLANGLIB="$(SLANGLIB) -lslang" SLANGINC="$(SLANGINC)"
  566.  
  567. # SEQUENT doesn't have or need ranlib. (ignore the error message about that :)
  568. ptx2:
  569.     cd WWW/Library/ptx; $(MAKE) LYFLAGS="-DPTX2 -DNO_BCOPY -DNOPORT \
  570.         -DSVR4_BSDSELECT -DNO_FILIO_H $(SITE_LYDEFS)"
  571.     cd src; $(MAKE) all CC="cc" MCFLAGS="-O -DPTX2 -DFANCY_CURSES -DUNIX \
  572.         -DNO_FILIO_H -DUTMPX_FOR_UTMP -DSVR4 \
  573.          -I../$(WWWINC) $(SITE_DEFS)" \
  574.         LIBS="-lcurses -lsocket -linet -lnsl \
  575.         $(WAISLIB) $(SOCKSLIB) $(SITE_LIBS)" \
  576.         WWWLIB="../WWW/Library/ptx/libwww.a"
  577.  
  578. # Contributed by Thanh Ma (tma@encore.com).
  579. umaxv:
  580.     cd WWW/Library/umaxv-m88k; $(MAKE) LYFLAGS="$(SITE_LYDEFS)"
  581.     cd src; $(MAKE) all CC="cc" MCFLAGS="-O -DFANCY_CURSES -DUNIX \
  582.         -D_SYSV3 -DHAVE_TERMIOS -DUSE_DIRENT -DNO_UTMP \
  583.         -I../$(WWWINC) $(SITE_DEFS)" \
  584.         LIBS="-lcurses \
  585.         $(WAISLIB) $(SOCKSLIB) $(SITE_LIBS)" \
  586.         WWWLIB="../WWW/Library/umaxv-m88k/libwww.a"
  587.  
  588. # Contributed by Thanh Ma (tma@encore.com).
  589. umaxv-slang:
  590.     cd WWW/Library/umaxv-m88k; $(MAKE) LYFLAGS="$(SITE_LYDEFS)"
  591.     cd src; $(MAKE) all CC="cc" MCFLAGS="-O -DUSE_SLANG -DUNIX \
  592.         -D_SYSV3 -DHAVE_TERMIOS -DUSE_DIRENT -DNO_UTMP \
  593.         -I../$(WWWINC) $(SITE_DEFS)" \
  594.         LIBS="$(WAISLIB) $(SOCKSLIB) $(SITE_LIBS)" \
  595.         WWWLIB="../WWW/Library/umaxv-m88k/libwww.a" \
  596.         SLANGLIB="$(SLANGLIB) -lslang -lm" SLANGINC="$(SLANGINC)"
  597.  
  598. unixware:
  599.     cd WWW/Library/svr4; $(MAKE) LYFLAGS="-DNO_BCOPY -DUNIXWARE \
  600.         $(SITE_LYDEFS)"
  601.     cd src; $(MAKE) all CC="cc" MCFLAGS="-O -DFANCY_CURSES -DUNIX \
  602.         -I../$(WWWINC) -DUTMPX_FOR_UTMP -DSVR4 -DTRUE=1 -DFALSE=0 \
  603.         -DNO_BCOPY -DUNIXWARE $(SITE_DEFS)" \
  604.         LIBS="-lcurses -lsocket -lnsl \
  605.         $(WAISLIB) $(SOCKSLIB) $(SITE_LIBS)" \
  606.         WWWLIB="../WWW/Library/svr4/libwww.a"
  607.  
  608. unixware-slang:
  609.     cd WWW/Library/svr4; $(MAKE) LYFLAGS="-DNO_BCOPY -DUNIXWARE \
  610.         $(SITE_LYDEFS)"
  611.     cd src; $(MAKE) all CC="cc" MCFLAGS="-O -DUNIX -DUSE_SLANG \
  612.         -DCURS_PERFORMANCE \
  613.         -I../$(WWWINC) -DUTMPX_FOR_UTMP -DSVR4 -DTRUE=1 -DFALSE=0 \
  614.         -DNO_BCOPY -DUNIXWARE $(SITE_DEFS)" \
  615.         LIBS="-lsocket -lnsl \
  616.         $(WAISLIB) $(SOCKSLIB) $(SITE_LIBS)" \
  617.         WWWLIB="../WWW/Library/svr4/libwww.a" \
  618.         SLANGLIB="$(SLANGLIB) -lslang -lm" SLANGINC="$(SLANGINC)"
  619.  
  620. # SCO doesn't have or need ranlib. (ignore the error message about that :)
  621. #     can build lynx with its native rcc compiler.  (if you replace "gcc"
  622. #     with "rcc" for CC= :)
  623. #     has a const/volatile bug in its native cc compiler. (don't use it ;)
  624. sco:
  625.     cd WWW/Library/sco; $(MAKE) CC="gcc" LYFLAGS="-DNO_FILIO_H -DUNIX \
  626.         -DSCO $(SITE_LYDEFS)"
  627.     cd src; $(MAKE) all CC="gcc" MCFLAGS="-O -s -DNO_FILIO_H -DUNIX -DSCO \
  628.         -DFANCY_CURSES -DMMDF -DNO_UTMP -DNO_SIZECHANGE \
  629.         -I../$(WWWINC) $(SITE_DEFS)" \
  630.         LIBS="-lcurses -lsocket -ltermcap -lmalloc \
  631.         $(WAISLIB) $(SOCKSLIB) $(SITE_LIBS)" \
  632.         WWWLIB="../WWW/Library/sco/libwww.a"
  633.  
  634. sco5:
  635.     cd WWW/Library/sco; $(MAKE) CC="cc -belf" LYFLAGS="-DNO_FILIO_H \
  636.         -DUNIX -DSCO $(SITE_LYDEFS)"
  637.     cd src; $(MAKE) all CC="cc -belf" MCFLAGS="-O -s -DNO_FILIO_H -DUNIX \
  638.         -DSCO -DFANCY_CURSES -DMMDF -DUTMPX_FOR_UTMP \
  639.         -I../$(WWWINC) $(SITE_DEFS)" \
  640.         LIBS="-lcurses -lsocket \
  641.         $(WAISLIB) $(SOCKSLIB) $(SITE_LIBS)" \
  642.         WWWLIB="../WWW/Library/sco/libwww.a"
  643.  
  644. bsdi:
  645.     cd WWW/Library/Implementation; $(MAKE) -f BSDI_Makefile \
  646.         LYFLAGS="-DBSDI $(SITE_LYDEFS)"
  647.     cd src; $(MAKE) all CC="cc" MCFLAGS="-O -DNO_CUSERID -DUNIX \
  648.         -DNO_FILIO_H \
  649.         -I../$(WWWINC) -DNO_UTMP -DSVR4 -DNO_KEYPAD $(SITE_DEFS)" \
  650.         LIBS="-lcurses -ltermcap \
  651.         $(WAISLIB) $(SOCKSLIB) $(SITE_LIBS)" \
  652.         WWWLIB="../WWW/Library/svr4/libwww.a"
  653.  
  654. #IMPORTANT: To compile you need ncurses package (version 1.9.4 or later)
  655. #     installed on your system. You can download ncurses package from
  656. #     ftp://ftp.netcom.com/pub/zm/zmbenhal/ncurses
  657. bsdi-ncurses:
  658.     cd WWW/Library/Implementation; $(MAKE) -f BSDI_Makefile CC="gcc" \
  659.         LYFLAGS="-DBSDI $(SITE_LYDEFS)"
  660.     cd src; $(MAKE) all CC="gcc" MCFLAGS="-O -DNO_CUSERID -DUNIX -DNCURSES \
  661.         -DFANCY_CURSES -DBSDI -DSVR4 \
  662.         -I/usr/include/ncurses -I../$(WWWINC) $(SITE_DEFS)" \
  663.         LIBS="-lncurses \
  664.         $(WAISLIB) $(SOCKSLIB) $(SITE_LIBS)" \
  665.         WWWLIB="../WWW/Library/svr4/libwww.a"
  666.  
  667. bsdi-slang:
  668.     cd WWW/Library/Implementation; $(MAKE) -f BSDI_Makefile \
  669.         LYFLAGS="-DBSDI $(SITE_LYDEFS)"
  670.     cd src; $(MAKE) all CC="cc" MCFLAGS="-O -DNO_CUSERID -DUNIX \
  671.         -DNO_FILIO_H -DUSE_SLANG \
  672.         -I../$(WWWINC) -DNO_UTMP -DSVR4 -DNO_KEYPAD $(SITE_DEFS)" \
  673.         LIBS="-lcurses -ltermcap \
  674.         $(WAISLIB) $(SOCKSLIB) $(SITE_LIBS)" \
  675.         WWWLIB="../WWW/Library/svr4/libwww.a" \
  676.         SLANGLIB="$(SLANGLIB) -lslang -lm" SLANGINC="$(SLANGINC)"
  677.  
  678. # define RESOLVLIB (above) for the "LIBS" entry if needed
  679. # Solaris2 doesn't have or need ranlib. (ignore the error message about that :)
  680. # (Solaris 2.5 and later actually have a ranlib program - but it does 
  681. #  nothing and is only there to make Makefiles like this one happy)
  682. solaris2:
  683.     cd WWW/Library/solaris2; $(MAKE) CC="gcc" LYFLAGS="$(SITE_LYDEFS)"
  684.     cd src; $(MAKE) all CC="gcc" MCFLAGS="-O -DFANCY_CURSES -DUNIX -DSVR4 \
  685.         -DSOLARIS2 -DCURS_PERFORMANCE -DUTMPX_FOR_UTMP -DUSE_DIRENT \
  686.         -DLOCALE -DHAVE_TERMIOS_H \
  687.         -I../$(WWWINC) $(SITE_DEFS)" \
  688.         LIBS="-L/usr/ccs/lib -R/usr/ccs/lib -lcurses -lnsl -lsocket \
  689.         $(RESOLVLIB) $(WAISLIB) $(SOCKSLIB) $(SITE_LIBS)" \
  690.         WWWLIB="../WWW/Library/solaris2/libwww.a"
  691.  
  692. # Solaris 2 using Sun's unbundled C compiler
  693. # define RESOLVLIB (above) for the "LIBS" entry if needed
  694. # Solaris2 doesn't have or need ranlib. (ignore the error message about that :)
  695. solaris2cc:
  696.     cd WWW/Library/solaris2; $(MAKE) CC="cc" LYFLAGS="$(SITE_LYDEFS)"
  697.     cd src; $(MAKE) all CC="cc" MCFLAGS="-O -DFANCY_CURSES -DUNIX -DSVR4 \
  698.         -DSOLARIS2 -DCURS_PERFORMANCE -DUTMPX_FOR_UTMP -DUSE_DIRENT \
  699.         -DLOCALE -DHAVE_TERMIOS_H \
  700.         -I../$(WWWINC) $(SITE_DEFS)" \
  701.         LIBS="-L/usr/ccs/lib -R/usr/ccs/lib -lcurses -lnsl -lsocket \
  702.         $(RESOLVLIB) $(WAISLIB) $(SOCKSLIB) $(SITE_LIBS)" \
  703.         WWWLIB="../WWW/Library/solaris2/libwww.a"
  704.  
  705. # define RESOLVLIB (above) for the "LIBS" entry if needed
  706. # Solaris2 doesn't have or need ranlib. (ignore the error message about that :)
  707. solaris2-slang:
  708.     cd WWW/Library/solaris2; $(MAKE) CC="gcc" LYFLAGS="$(SITE_LYDEFS)"
  709.     cd src; $(MAKE) all CC="gcc" MCFLAGS="-O -DUNIX -DSVR4 -DSOLARIS2 \
  710.         -DUSE_SLANG -DCURS_PERFORMANCE -DUTMPX_FOR_UTMP -DUSE_DIRENT \
  711.         -DLOCALE -DHAVE_TERMIOS_H \
  712.         -I../$(WWWINC) $(SITE_DEFS)" \
  713.         LIBS="-L/usr/ccs/lib -R/usr/ccs/lib -lcurses -lnsl -lsocket \
  714.         $(RESOLVLIB) $(WAISLIB) $(SOCKSLIB) $(SITE_LIBS)" \
  715.         WWWLIB="../WWW/Library/solaris2/libwww.a" \
  716.         SLANGLIB="$(SLANGLIB) $(SLANGRRLIB) -lslang -lm" \
  717.         SLANGINC="$(SLANGINC)"
  718.  
  719. # Solaris 2 slang using Sun's unbundled C compiler
  720. # define RESOLVLIB (above) for the "LIBS" entry if needed
  721. # Solaris2 doesn't have or need ranlib. (ignore the error message about that :)
  722. solaris2-slangcc:
  723.     cd WWW/Library/solaris2; $(MAKE) CC="cc" LYFLAGS="$(SITE_LYDEFS)"
  724.     cd src; $(MAKE) all CC="cc" MCFLAGS="-O -DUNIX -DSVR4 -DSOLARIS2 \
  725.         -DUSE_SLANG -DCURS_PERFORMANCE -DUTMPX_FOR_UTMP -DUSE_DIRENT \
  726.         -DLOCALE -DHAVE_TERMIOS_H \
  727.         -I../$(WWWINC) $(SITE_DEFS)" \
  728.         LIBS="-L/usr/ccs/lib -R/usr/ccs/lib -lcurses -lnsl -lsocket \
  729.         $(RESOLVLIB) $(WAISLIB) $(SOCKSLIB) $(SITE_LIBS)" \
  730.         WWWLIB="../WWW/Library/solaris2/libwww.a" \
  731.         SLANGLIB="$(SLANGLIB) $(SLANGRRLIB) -lslang -lm" \
  732.         SLANGINC="$(SLANGINC)"
  733.   
  734. os2:
  735.     cd WWW/Library/unix; $(MAKE) CC="gcc" LYFLAGS="-DOS2 $(SITE_LYDEFS)"
  736.     cd src; $(MAKE) os2 CC="gcc" MCFLAGS="-O -DOS2 -DNCURSES \
  737.         -DFANCY_CURSES -DNO_TTYTYPE \
  738.         -I/emx/include/ncurses -I../$(WWWINC) $(SITE_DEFS)" \
  739.         LIBS=" -lform -lmenu -lpanel -lncurses -lsocket \
  740.         $(WAISLIB) $(SOCKSLIB) $(SITE_LIBS)" \
  741.         WWWLIB="../WWW/Library/unix/libwww.a"
  742.  
  743. osf:
  744.     cd WWW/Library/osf; $(MAKE) LYFLAGS="-Olimit 2000 $(SITE_LYDEFS)"
  745.     cd src; $(MAKE) all CC="cc" MCFLAGS="-O -Olimit 4000 -DUNIX \
  746.         -DFANCY_CURSES $(ADDFLAGS) \
  747.         -I../$(WWWINC) $(SITE_DEFS)" \
  748.         LIBS="-lcurses -ltermcap \
  749.         $(WAISLIB) $(SOCKSLIB) $(SITE_LIBS)" \
  750.         WWWLIB="../WWW/Library/osf/libwww.a"
  751.  
  752. osf-slang:
  753.     cd WWW/Library/osf; $(MAKE) LYFLAGS="-Olimit 2000 $(SITE_LYDEFS)"
  754.     cd src; $(MAKE) all CC="cc" MCFLAGS="-O -Olimit 4000 -DUNIX \
  755.         -DUSE_SLANG $(ADDFLAGS) \
  756.         -I../$(WWWINC) $(SITE_DEFS)" \
  757.         LIBS="-lcurses -ltermcap \
  758.         $(WAISLIB) $(SOCKSLIB) $(SITE_LIBS)" \
  759.         WWWLIB="../WWW/Library/osf/libwww.a" \
  760.         SLANGLIB="$(SLANGLIB) -lslang -lm" SLANGINC="$(SLANGINC)"
  761.  
  762. # for some reason loc_t isn't defined when compiling for debug on my system.
  763. # needed for NLchar.h
  764. dbg:
  765.     cd WWW/Library/osf; $(MAKE) CC="gcc" LYFLAGS="-DDIRED_SUPPORT \
  766.         -DLY_FIND_LEAKS"
  767.     cd src; $(MAKE) all CC="gcc" MCFLAGS="-O -Wall $(ADDFLAGS) \
  768.         -DFANCY_CURSES -DLY_FIND_LEAKS \
  769.         -Dloc_t=_LC_locale_t -D_locp=__lc_locale\
  770.         -DDIRED_SUPPORT -DOK_TAR -DOK_GZIP -DOK_OVERRIDE \
  771.         -DUNIX -I../$(WWWINC) -DEXEC_LINKS \
  772.         -DALLOW_USERS_TO_CHANGE_EXEC_WITHIN_OPTIONS $(SITE_DEFS)" \
  773.         LIBS="-lcurses -ltermcap \
  774.         $(WAISLIB) $(SOCKSLIB) $(SITE_LIBS)" \
  775.         WWWLIB="../WWW/Library/osf/libwww.a"
  776.  
  777. sgi:
  778. # SGI doesn't have or need ranlib. (ignore the error message about that :)
  779.     cd WWW/Library/sgi; $(MAKE) LYFLAGS="$(SITE_LYDEFS)"
  780.     cd src; $(MAKE) all CC="cc" MCFLAGS="-O -cckr -DFANCY_CURSES \
  781.         -DNO_CUSERID -DUNIX -DSGI -Dvfork=fork \
  782.         -I../$(WWWINC) -DNO_UTMP $(SITE_DEFS)" \
  783.         LIBS="-lcurses -ltermcap -DSYSV -DPERFORMANCE \
  784.         $(WAISLIB) $(SOCKSLIB) $(SITE_LIBS)" \
  785.         WWWLIB="../WWW/Library/sgi/libwww.a"
  786.  
  787. linux:
  788.     cd WWW/Library/unix; $(MAKE) CC="gcc" LYFLAGS="-DLINUX $(SITE_LYDEFS)"
  789.     cd src; $(MAKE) all CC="gcc" MCFLAGS="-O -DUNIX -DLINUX \
  790.         -DNO_KEYPAD -DNO_TTYTYPE \
  791.         -I../$(WWWINC) $(SITE_DEFS)" \
  792.         LIBS="-lcurses -ltermcap \
  793.         $(WAISLIB) $(SOCKSLIB) $(SITE_LIBS)" \
  794.         WWWLIB="../WWW/Library/unix/libwww.a"
  795.  
  796. linux-ncurses:
  797.     cd WWW/Library/unix; $(MAKE) CC="gcc" LYFLAGS="-DLINUX $(SITE_LYDEFS)"
  798.     cd src; $(MAKE) all CC="gcc" MCFLAGS="-O -DUNIX -DLINUX -DNCURSES \
  799.         -DFANCY_CURSES -DNO_TTYTYPE \
  800.         -I/usr/include/ncurses -I../$(WWWINC) $(SITE_DEFS)" \
  801.         LIBS="-lncurses \
  802.         $(WAISLIB) $(SOCKSLIB) $(SITE_LIBS)" \
  803.         WWWLIB="../WWW/Library/unix/libwww.a"
  804.  
  805. linux-slang:
  806.     cd WWW/Library/unix; $(MAKE) CC="gcc" LYFLAGS="-DLINUX $(SITE_LYDEFS)"
  807.     cd src; $(MAKE) all CC="gcc" MCFLAGS="-O -DUNIX -DLINUX -DUSE_SLANG \
  808.         -DNO_KEYPAD -DNO_TTYTYPE \
  809.         -I../$(WWWINC) $(SITE_DEFS)" \
  810.         LIBS="$(WAISLIB) $(SOCKSLIB) $(SITE_LIBS)" \
  811.         WWWLIB="../WWW/Library/unix/libwww.a" \
  812.         SLANGLIB="$(SLANGLIB) -lslang -lm" SLANGINC="$(SLANGINC)"
  813.  
  814. ##Various AIX environments
  815. aix:
  816.     @echo "Run make again and use \"make aix4\" or \"make aix32\""
  817.  
  818. # For AIX 4.n, and AIX 3.2.5 with POWER2 architectures, L2 caches,
  819. # and APAR#IX58890
  820. aix4:
  821.     cd WWW/Library/rs6000; $(MAKE) LYFLAGS="-D_BSD=44 \
  822.         $(SITE_LYDEFS)"
  823.     cd src; $(MAKE) all CC="cc" MCFLAGS="-O -DFANCY_CURSES -DUNIX -DAIX4 \
  824.         -D_BSD=44 -I../$(WWWINC) $(SITE_DEFS)" \
  825.         LIBS="-lcurses -lbsd \
  826.         $(WAISLIB) $(SOCKSLIB) $(SITE_LIBS)" \
  827.         WWWLIB="../WWW/Library/rs6000/libwww.a"
  828.  
  829. aix32:
  830.     cd WWW/Library/rs6000; $(MAKE) LYFLAGS="$(SITE_LYDEFS)"
  831.     cd src; $(MAKE) all CC="cc" MCFLAGS="-O -DFANCY_CURSES -DUNIX \
  832.         -I../$(WWWINC) $(SITE_DEFS)" \
  833.         LIBS="-lcurses -lbsd \
  834.         $(WAISLIB) $(SOCKSLIB) $(SITE_LIBS)" \
  835.         WWWLIB="../WWW/Library/rs6000/libwww.a"
  836.  
  837. aix31:
  838.     cd WWW/Library/rs6000; $(MAKE) LYFLAGS="$(SITE_LYDEFS)"
  839.     cd src; $(MAKE) all CC="cc" MCFLAGS="-O -DUNIX \
  840.         -I../$(WWWINC) $(SITE_DEFS)" \
  841.         LIBS="-lcurses -lbsd \
  842.         $(WAISLIB) $(SOCKSLIB) $(SITE_LIBS)" \
  843.         WWWLIB="../WWW/Library/rs6000/libwww.a"
  844.  
  845. ##ultrix - DEC Ultrix
  846. ultrix:
  847.     cd WWW/Library/decstation; $(MAKE) LYFLAGS="$(SITE_LYDEFS)"
  848.     cd src; $(MAKE) all CC="cc" MCFLAGS="-O -Olimit 600 -DFANCY_CURSES \
  849.         -DUNIX -DULTRIX -I../$(WWWINC) $(SITE_DEFS)" \
  850.         LIBS="-lcursesX -ltermcap \
  851.         $(WAISLIB) $(SOCKSLIB) $(SITE_LIBS)" \
  852.         WWWLIB="../WWW/Library/decstation/libwww.a"
  853.  
  854. ultrix-slang:
  855.     cd WWW/Library/decstation; $(MAKE) LYFLAGS="$(SITE_LYDEFS)"
  856.     cd src; $(MAKE) all CC="cc" MCFLAGS="-O -Olimit 600 -DFANCY_CURSES \
  857.         -DUSE_SLANG -DUNIX -DULTRIX -I../$(WWWINC) $(SITE_DEFS)" \
  858.         LIBS="-lcursesX -ltermcap \
  859.         $(WAISLIB) $(SOCKSLIB) $(SITE_LIBS)" \
  860.         WWWLIB="../WWW/Library/decstation/libwww.a" \
  861.         SLANGLIB="$(SLANGLIB) -lslang -lm" SLANGINC="$(SLANGINC)"
  862.  
  863. ##Various SunOS environments
  864. sun:
  865.     @echo "Run make again and use \"make sun3\" or \"make sun4\""
  866.  
  867. # define RESOLVLIB (above) for the "LIBS" entry if needed
  868. sun3:
  869.     cd WWW/Library/sun3; $(MAKE) LYFLAGS="$(SITE_LYDEFS)" CC="gcc"
  870.     cd src; $(MAKE) all CC="gcc" MCFLAGS="-O -DUNIX -DFANCY_CURSES \
  871.         -I../$(WWWINC) -DSUN -DLOCALE -I/usr/5include $(SITE_DEFS)"\
  872.         LIBS="-lcurses -ltermcap -L/usr/5lib \
  873.         $(RESOLVLIB) $(WAISLIB) $(SOCKSLIB) $(SITE_LIBS)" \
  874.         WWWLIB="../WWW/Library/sun3/libwww.a"
  875.  
  876. # define RESOLVLIB (above) for the "LIBS" entry if needed
  877. sun4:
  878.     cd WWW/Library/sun4; $(MAKE) CC="gcc" LYFLAGS="$(CCFLAGS) \
  879.         $(SITE_LYDEFS)"
  880.     cd src; $(MAKE) all CC="gcc" MCFLAGS="$(CCFLAGS) -O -DUNIX -DSUN \
  881.         -DSUN4 -DFANCY_CURSES -DLOCALE \
  882.         -I../$(WWWINC) -I/usr/5include \
  883.         $(SITE_DEFS)" \
  884.         LIBS="-lcurses -ltermcap -L/usr/5lib \
  885.         $(RESOLVLIB) $(WAISLIB) $(SOCKSLIB) $(SITE_LIBS)" \
  886.         WWWLIB="../WWW/Library/sun4/libwww.a"
  887.  
  888. # define RESOLVLIB (above) for the "LIBS" entry if needed
  889. sun4-ncurses:
  890.     cd WWW/Library/sun4; $(MAKE) CC="gcc" LYFLAGS="$(SITE_LYDEFS)"
  891.     cd src; $(MAKE) all CC="gcc" \
  892.         MCFLAGS="-O -DUNIX -DFANCY_CURSES -DNCURSES \
  893.         -I/usr/local/include -I../$(WWWINC) -DSUN -DSUN4 \
  894.         -DLOCALE $(SITE_DEFS)" \
  895.         LIBS="-L/usr/local/lib -lncurses \
  896.         $(RESOLVLIB) $(WAISLIB) $(SOCKSLIB) $(SITE_LIBS)" \
  897.         WWWLIB="../WWW/Library/sun4/libwww.a"
  898.  
  899. # use the holiest of holiest --- PURIFY
  900. # define RESOLVLIB (above) for the "LIBS" entry if needed
  901. sun4-pure:
  902.     cd WWW/Library/sun4; $(MAKE) CC="gcc" LYFLAGS="$(SITE_LYDEFS)"
  903.     cd src; $(MAKE) all CC="purify -cache-dir=/home/purify-cache \
  904.         -always-use-cache-dir=yes -optimize-save-o7=no gcc" \
  905.         MCFLAGS="-O -DUNIX -DFANCY_CURSES \
  906.         -I../$(WWWINC) -DSUN -DSUN4 -DLOCALE -I/usr/5include \
  907.         $(SITE_DEFS)" \
  908.         LIBS="-lcurses -ltermcap -L/usr/5lib \
  909.         $(RESOLVLIB) $(WAISLIB) $(SOCKSLIB) $(SITE_LIBS)" \
  910.         WWWLIB="../WWW/Library/sun4/libwww.a"
  911.  
  912. # define RESOLVLIB (above) for the "LIBS" entry if needed
  913. sun4-slang:
  914.     cd WWW/Library/sun4; $(MAKE) CC="gcc" LYFLAGS="$(CCFLAGS) \
  915.         $(SITE_LYDEFS)"
  916.     cd src; $(MAKE) all CC="gcc" MCFLAGS="-O -DUNIX -DSUN -DSUN4 \
  917.         -DUSE_SLANG -DLOCALE \
  918.         -I../$(WWWINC) -I/usr/5include \
  919.         $(SITE_DEFS)" \
  920.         LIBS="-lcurses -ltermcap -L/usr/5lib \
  921.         $(RESOLVLIB) $(WAISLIB) $(SOCKSLIB) $(SITE_LIBS)" \
  922.         WWWLIB="../WWW/Library/sun4/libwww.a" \
  923.         SLANGLIB="$(SLANGLIB) -lslang -lm" SLANGINC="$(SLANGINC)"
  924.  
  925. # news - SONY NEWS-OS 4.2.1R
  926. news:
  927.     @echo "You must first compile the WWW library in WWW/Library"
  928.     cd WWW/Library/unix; $(MAKE) LYFLAGS="$(SITE_LYDEFS)"
  929.     cd src; $(MAKE) all CC="gcc -O" MCFLAGS="-O -DUNIX -DNO_KEYPAD \
  930.         -DNO_CUSERID -DLOCALE \
  931.         -I../$(WWWINC) $(SITE_DEFS)" \
  932.         LIBS="-ljcurses -ltermcap $(WAISLIB) $(SOCKSLIB)" \
  933.         WWWLIB="../WWW/Library/unix/libwww.a"
  934.  
  935. news-ncurses:
  936.     @echo "You must first compile the WWW library in WWW/Library"
  937.     cd WWW/Library/unix; $(MAKE) LYFLAGS="$(SITE_LYDEFS)"
  938.     cd src; $(MAKE) all CC="gcc -O" MCFLAGS="-O -DUNIX \
  939.         -DNO_CUSERID -DNCURSES -DFANCY_CURSES \
  940.         -I../$(WWWINC) $(SITE_DEFS)" \
  941.         LIBS="-lncurses $(WAISLIB) $(SOCKSLIB)" \
  942.         WWWLIB="../WWW/Library/unix/libwww.a"
  943.  
  944. news-slang:
  945.     @echo "You must first compile the WWW library in WWW/Library"
  946.     cd WWW/Library/unix; $(MAKE) LYFLAGS="$(SITE_LYDEFS)"
  947.     cd src; $(MAKE) all CC="gcc -O" MCFLAGS="-O -DUNIX -DNO_KEYPAD \
  948.         -DNO_CUSERID -DUSE_SLANG -DLOCALE \
  949.         -I../$(WWWINC) $(SITE_DEFS)" \
  950.         LIBS="$(WAISLIB) $(SOCKSLIB)" \
  951.         WWWLIB="../WWW/Library/unix/libwww.a" \
  952.         SLANGLIB="$(SLANGLIB) -lslang" SLANGINC="$(SLANGINC)"
  953.  
  954. # next - Nextstep
  955. next:
  956.     cd WWW/Library/next; $(MAKE) LYFLAGS="$(SITE_LYDEFS)"
  957.     cd src; $(MAKE) all CC="cc" MCFLAGS="-O -DUNIX -DNEXT -DNO_UNISTD_H \
  958.         -DNO_CUSERID -DNO_GETCWD -DNO_PUTENV -DNO_KEYPAD \
  959.         -I../$(WWWINC) $(SITE_DEFS)" \
  960.         LIBS="-lcurses -ltermcap \
  961.         $(WAISLIB) $(SOCKSLIB) $(SITE_LIBS)" \
  962.         WWWLIB="../WWW/Library/next/libwww.a"
  963.  
  964. next-ncurses:
  965.     cd WWW/Library/next; $(MAKE) LYFLAGS="$(SITE_LYDEFS)"
  966.     cd src; $(MAKE) all CC="cc" MCFLAGS="-O -DUNIX -DNEXT -DNO_UNISTD_H \
  967.         -DNCURSES -DFANCY_CURSES \
  968.         -DNO_CUSERID -DNO_GETCWD -DNO_PUTENV \
  969.         -I/usr/local/include -I../$(WWWINC) $(SITE_DEFS)" \
  970.         LIBS="-L/usr/local/lib -lncurses \
  971.         $(WAISLIB) $(SOCKSLIB) $(SITE_LIBS)" \
  972.         WWWLIB="../WWW/Library/next/libwww.a"
  973.  
  974. # isc - Interactive Unix for i386 and i486 machines
  975. # According to Robert Salter (salter1@mster.nsbf.nasa.gov),
  976. #  cc should be used instead of gcc.
  977. # According to Walter Skorski (walt@clyde.jmp.tju.edu),
  978. #  -DPOSIX_JC is necessary, else LYBookmark.c never finds out
  979. #  what a mode_t is.
  980. isc:
  981.     cd WWW/Library/isc; $(MAKE) CC="cc" LYFLAGS="$(SITE_LYDEFS)"
  982.     cd src; $(MAKE) all CC="cc" MCFLAGS="-O -DISC -DFANCY_CURSES -DUNIX \
  983.         -DNO_UTMP -Dvfork=fork -DPOSIX_JC -I../$(WWWINC) $(SITE_DEFS)" \
  984.         LIBS="-lcurses -ltermcap -linet -lnsl_s -lcposix \
  985.         $(WAISLIB) $(SOCKSLIB) $(SITE_LIBS)" \
  986.         WWWLIB="../WWW/Library/isc/libwww.a"
  987.  
  988. ##Miscellaneous actions
  989. clean:
  990.     rm -f WWW/Library/*/*.[aob]
  991.     rm -f WWW/Library/*/.created
  992.     cd src; $(MAKE) clean
  993.     rm -f *.b src/lynx core Lynx.leaks
  994.  
  995. tar:  clean
  996.     rm -f lynx
  997.     $(MAKE) save
  998.  
  999. turnover:    clean
  1000.     $(MAKE) save
  1001.  
  1002. zipcompress: compress zip
  1003.     echo "done!"
  1004.  
  1005. zip:  clean
  1006.     rm -f src/lynx
  1007.     rm -f lynx
  1008.     rm -f src/a.out
  1009.     rm -f ../$(lynxname).zip
  1010.     cd ..; rm -f $(lynxname).zip; zip -r $(lynxname).zip $(lynxdir)
  1011.  
  1012. save:
  1013.     cd ..; rm -f $(lynxname).tar; tar -cf - $(lynxdir) > $(lynxname).tar
  1014.  
  1015. compress: tar
  1016.     cd ..; rm -f $(lynxname).tar.Z; compress -f -v $(lynxname).tar
  1017.  
  1018. install:
  1019.     -mv -f $(exec)/lynx $(exec)/lynx.old
  1020.     -mv -f $(cfg)/lynx.cfg $(cfg)/lynx.oldcfg
  1021.     $(installbin) lynx $(exec)/lynx
  1022.     $(installdoc) lynx.man $(doc)/lynx.1
  1023.     $(installdoc) lynx.cfg $(cfg)/lynx.cfg
  1024.