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 / docs / Makefile.old < prev    next >
Makefile  |  1998-02-05  |  46KB  |  1,105 lines

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