home *** CD-ROM | disk | FTP | other *** search
/ kermit.columbia.edu / kermit.columbia.edu.tar / kermit.columbia.edu / archives / cku197.zip / makefile < prev    next >
Makefile  |  2000-02-27  |  282KB  |  6,289 lines

  1. # makefile / Makefile / ckuker.mak / CKUKER.MAK
  2. #
  3. # Tue Feb  8 17:07:22 2000
  4. BUILDID=20000208
  5. #
  6. CKVER= "7.0.197"
  7. #
  8. # -- Makefile to build C-Kermit for UNIX and UNIX-like systems --
  9. #
  10. # Copyright (C) 1985, 2000,
  11. #   Trustees of Columbia University in the City of New York.
  12. #   All rights reserved.  See the C-Kermit COPYING.TXT file or the
  13. #   copyright text in the ckcmai.c module for disclaimer and permissions.
  14. #
  15. # Author: Frank da Cruz, Columbia University
  16. # 612 West 115th Street, New York NY 10025-7799, USA
  17. # E-mail: fdc@columbia.edu
  18. # Fax:    +1 212 662-6442
  19. # Web:    http://www.columbia.edu/kermit/
  20. #
  21. # Contributions from many others.  Special thanks to Peter Eichhorn,
  22. # assyst GmbH, for the consolidated HP-UX entries, to Robert Lipe for
  23. # the updated & consolidated SCO UNIX / ODT / OSR5 entries, to Ric Anderson
  24. # for new IRIX 6.x entires, and Jeff Altman for the Kerberos/SRP targets.
  25. #
  26. # Most entries use the "xermit" target, which uses the select()-based CONNECT
  27. # module, ckucns.c.  The "wermit" target uses the older fork()-base CONNECT
  28. # module, ckucon.c, which has some drawbacks (but is more portable).  If your
  29. # entry still uses the "wermit" target, please try substituting the "xermit"
  30. # one and if it works, let us know.
  31. #
  32. # CAREFUL: Don't put the lowercase word "if", "define", or "end" as the first
  33. # word after the "#" comment introducer in the makefile, even if it is
  34. # separated by whitespace.  Some versions of "make" understand these as
  35. # directives.  Uppercase letters remove the danger, e.g. "# If you have..."
  36. #
  37. # WARNING: This is a huge makefile, and it contains nested makes.
  38. # Some "make" programs run out of memory.  If this happens to you, edit
  39. # away the parts that do not apply to your system and try again.
  40. #
  41. # Certain UNIX variations have their own separate makefiles:
  42. #  . For 2.10 or 2.11 BSD on DEC PDP-11s, use ckubs2.mak.
  43. #  . For Plan 9, use ckpker.mk.
  44. #
  45. # Separate build procedures are provided non-UNIX platforms: VMS, VOS,
  46. # AOS/VS, etc.  See the ckaaaa.txt file for details.
  47. #
  48. #
  49. # DIRECTIONS
  50. #
  51. # Rename this file to "makefile" or "Makefile" if necessary.  Pick out the
  52. # entry most appropriate for your UNIX system from the list below and then
  53. # give the appropriate "make" command, for example "make aix43", "make sys5r4",
  54. # "make linux".  If you experience any difficulties with the build procedure,
  55. # then please also read any comments that accompany the make entry itself
  56. # (search for the make entry name on the left margin).
  57. #
  58. # Other entries:
  59. #  'make manpage' creates the nroff man page file from ckuker.cpp.
  60. #  'make install' is a SAMPLE installation script.
  61. #  'make clean' removes intermediate and object files.
  62. #
  63. # IMPORTANT:
  64. #   For more detailed installation instructions, read the files ckuins.txt
  65. #   and ckccfg.txt.  For descriptions of known problems and limitations,
  66. #   read the files ckcbwr.txt and ckubwr.txt (the "beware files").
  67. #
  68. # Most entries build C-Kermit with its symbol table included.  To reduce the
  69. # size of the executable program, add "LNKFLAGS=-s" to the end of your 'make'
  70. # command or to the makefile entry, or 'strip' the executable after
  71. # building.  To further reduce the size after building, use 'mcs -d' if your
  72. # system has such a command.  For further details on size reduction, read
  73. # ckccfg.txt to find out how to remove features that you don't need.
  74. #
  75. # TCP/IP networking support: If your C-Kermit version does not include TCP/IP
  76. # networking, but your UNIX system does, try adding -DTCPSOCKET to the CFLAGS
  77. # of your makefile entry.  If that doesn't work, look at some of the other
  78. # entries that include this flag for ideas about what libraries might need to
  79. # be included, etc.  NOTE: In some cases (old versions of SCO or HP-UX), you
  80. # might need not only a C compiler, but also a "TCP/IP developers kit" for the
  81. # required object libraries and header files.
  82. #
  83. # Fullscreen file transfer display support: If you are going to use C-Kermit
  84. # for establishing connections (dialed, network, etc), you can configure it to
  85. # produce a formatted file transfer display by including the curses library
  86. # and adding -DCK_CURSES to the CFLAGS for your option, and linking with the
  87. # appropriate libraries.  There are many examples below, usually ending in
  88. # "c", like sunos41c.  Also add -DCK_WREFRESH if your curses library includes
  89. # clearok() and wrefresh() functions (or remove -DNOWREFRESH if the linker
  90. # complains that it can't find these functions).  After building, you still
  91. # have to SET FILE DISPLAY FULLSCREEN to get the formatted screen display.
  92. #
  93. # Please report modifications, failures (preferably with fixes) or successes
  94. # to the author.
  95. #
  96. # TARGETS FOR DIFFERENT UNIX PLATFORMS AND VERSIONS:
  97. #
  98. # + Marks those that have been tested successfully in the current version.
  99. # - Marks those that are known not to work in the current version.
  100. # ? Marks those that worked in a previous version but have not been tested
  101. #     in the current version.
  102. # --------------------------
  103. # ? for 386BSD (Jolix) 0.0, 0.1, "make 386bsd" (see comments in entry),
  104. #     or (preferably, if it works) "make bsd44" or "make bsd44c".
  105. # ? for Acorn RISCiX, "make riscix" or "make riscixgcc"
  106. # ? for Alliant FX/8 with Concentrix 4.1 or later, "make bsdlck"
  107. # ? for Altos 486, 586, 986 with Xenix 3.0, "make altos"
  108. # ? for Altos ACS68000, 8Mhz 68000, UNIX System 3 Rel 2, 512K, "make altos3"
  109. # ? for Amdahl UTS 2.4 on IBM 370 series & compatible mainframes, "make uts24"
  110. # ? for Amdahl UTSV IBM 370 series & compatible mainframes, "make utsv"
  111. # ? for Amdahl UTSV IBM 370 series mainframes with TCP/IP, "make utsvtcp"
  112. # ? for Amdahl mainframes with UNIX System V R 5.2.6b 580, "make sys3"
  113. # ? for Apollo Aegis 9.x, DOMAIN/IX 9.x, "make aegis"
  114. #    (Last tested in C-Kermit 5A(189))
  115. # ? for Apollo DOMAIN/IX, if the above fails, try "make apollobsd"
  116. # ? for Apollo with SR10.0 or later, BSD environment, "make sr10-bsd"
  117. # ? for Apollo with SR10.0 or later, System V environment, "make sr10-s5r3"
  118. # ? for Apple Macintosh II with A/UX pre-3.0, "make aux", "auxgcc" or "auxufs"
  119. # ? for Apple Macintosh with A/UX 3.0 and gcc, "make aux3gcc" or aux3gccc
  120. # + for Apple PowerMac with MkLinux, "make mklinux" (read Linux entry first)
  121. # + for Apple PowerMac with LinuxPPC, "make linuxppc"
  122. # ? for Apple Macintosh with Minix 1.5.10, "make minix68k" or "make minixc68"
  123. # + for Apple Macintosh with Mac OS X 1.0 (Rhapsody), "make macosx10"
  124. #     (no curses), "make macosx10c" (curses), or "make macosx10nc" (ncurses).
  125. #     Or "make macosx10ncx" (ncurses but "make macosx10nc" doesn't work).
  126. # ? for Arix System 90 with AT&T SVR3, "make sys5r3na"
  127. # ? for AT&T 6300 with IN/ix, "make sys5"
  128. # ? for AT&T 6300 PLUS, "make att6300" or (with no debugging) "make att6300nd"
  129. # ? for AT&T 6386 WGS UNIX PC, "make sys5r3"
  130. # + for AT&T 3B2, 3B20 systems, "make att3b2".
  131. #   for AT&T 3B1, 7300 UNIX PC (see notes with the entries):
  132. #     In C-Kermit 7.0, only the gcc entries work:
  133. # +   "make sys3upcg", "make sys3upcgc", "make sys3upcgcm", "make att351gm"
  134. #    The others fail with "too many defines" (usually in ckuusr.h):
  135. # -   "make sys3upc", "make sys3upcold", "make sys3upcc", "make sys3upcx",
  136. #       "make sys3upcm", "make att351m"
  137. # ? for AT&T System III/System V R2 or earlier, "make sys3" or "make sys3nid"
  138. # ? for AT&T System III/System V with Honey DanBer UUCP, "make sys3hdb"
  139. # ? for AT&T System V on DEC VAX, "make sys3" or "make sys5r3"
  140. # + for AT&T System V R3, use "make sys5r3" or "make sys5r3c"
  141. # + for AT&T System V/386 R320.0 Versyss Systems, use "make sys5r3"
  142. #     or "make sys5r3c" with KFLAGS=-DNONAWS.
  143. # + for AT&T System V R4, "make sys5r4", "make sys5r4sx", or "make sys5r4nx",
  144. #     or if the ANSI C function prototyping makes trouble, add -DNOANSI,
  145. #     as in "sys5r4sxna" entry
  146. # + for AT&T System V R4 with bundled TCP/IP, "make sys5r4netc", ...
  147. # + for AT&T System V R4 with Wollongong TCP/IP, "make sys5r4twg", ...
  148. # + for AT&T (USL) System V R4.2 use the sys5r4* entries.
  149. # ? for Atari Falcon with MiNT, "make posix"
  150. # ? for Atari ST with Minix ST 1.5.10.3, "make minix68k" or "make minixc68"
  151. # ? for BBN C/70 with IOS 2.0, "make c70"
  152. # ? for BeBox with Be OS 1.x DR7, "make beboxdr7"
  153. #     Compiles OK but doesn't link with default linker which is limited to 64K.
  154. #     Links OK with "Code Warrior Gold".  Many hacks in the source code need
  155. #     to be removed when DR8 and later come out.
  156. #     (Last tested in C-Kermit 6.0)
  157. # - for BeBox with Be OS 1.x DR8, "make bebox"
  158. #     (Needed functions missing from operating system and/or not working.)
  159. # - for Bell Labs UNIX Version 6 (6th Edition), there is no makefile entry.
  160. # ? for Bell Labs UNIX Version 7 (7th Edition), "make v7" (but see notes below)
  161. #    (last built successfully in C-Kermit 5A188)
  162. # ? for Bell Labs Research UNIX Version 10, "make bellv10"
  163. #    (last built successfully in C-Kermit 6.0)
  164. # + for Bell Labs / Lucent Plan 9, use separate makefile ckpker.mk:
  165. #    can be built for Intel, MIPS, 680x0, and PowerPC.
  166. # + for BSDI BSD/386 1.x, "make bsdi"
  167. # + for BSDI BSD/OS 2.x, "make bsdi2"
  168. # + for BSDI BSD/OS 3.0 or 3.1, "make bsdi3"
  169. # + for BSDI BSD/OS 4.0, "make bsdi4"
  170. # ? for Berkeley Unix 2.4, "make v7" (but read v7 material below)
  171. # ? for Berkeley Unix 2.9 (DEC PDP-11 or Pro-3xx), "make bsd29"
  172. # - for Berkeley Unix 2.10, use ckubs2.mak (a separate makefile)
  173. # - for Berkeley Unix 2.11, use ckubs2.mak (a separate makefile)
  174. #     This makefile is too big.  Read the instructions in ckubs2.mak.
  175. #     "make -f ckubs2.mak bsd210" or "make - f ckubs2.mak bsd211".
  176. #     (last built successfully in C-Kermit 6.0 - later versions too big)
  177. # + for Berkeley Unix 2.11 "make -f ckubs2.mak bsd210noicp" (no command parser)
  178. # ? for Berkeley Unix 4.1, "make bsd41"
  179. # + for Berkeley Unix 4.2 on VAX, "make bsd42" or "make bsd42c"
  180. # ? for Berkeley Unix 4.2 or 4.3 with HoneyDanBer UUCP, "make bsdhdb"
  181. # + for Berkeley Unix 4.3 on VAX, "make bsd43" or "make bsd43c" 
  182. # + for Berkeley Unix 4.3 without acucntrl program, "make bsd42" or "bsd42c"
  183. #     NOTE: all the C-Kermit 7.0 full builds for old BSDs fail with
  184. #     "too many defines" in CPP, even on big architectures like VAX.  This
  185. #     can be worked around with a clever ruse.  See comments at target.
  186. # + for Berkeley Unix 4.3, command-line only, "make bsdm".
  187. # + for Berkeley Unix 4.3-Tahoe, same as 4.3 BSD
  188. # + for Berkeley Unix 4.3-Reno, "make bsd43" or "make bsd44" or "make bsd44c"
  189. # + for Berkeley Unix 4.3-Carson City, "make bsd44" or "make bsd44c"
  190. # + for Berkeley Unix 4.4-Networking/2 or -Alpha, "make bsd44" or "make bsd44c"
  191. # + for Berkeley Unix 4.4, "make bsd44" or "make bsd44c"
  192. # + for Berkeley Unix 4.4-Lite, "make bsd44" or "make bsd44c"
  193. # ? for Bull DPX/2 with BOS/X, "make bulldpx2"
  194. # ? for Cadmus, "make sys3"
  195. # ? for Callan Unistar, "make sys3"
  196. # ? for CDC VX/VE 5.2.1 System V emulation, "make vxve"
  197. # ? for Charles River Data Systems Universe 680x0 with UNOS 9.2, maybe
  198. #     also other UNOS versions, "make crds"
  199. # ? for CIE Systems 680/20 with Regulus, "make cie"
  200. # + for Commodore Amiga 3000UX Sys V R4, "make sys5r4sx"
  201. # + for Commodore Amiga 3000UX Sys V R4 and TCP/IP, "make svr4amiganet"
  202. # ? for Commodore Amiga with Minix 1.5.10, "make minix68k" of "make minixc68"
  203. # ? for Concurrent/Masscomp with RTU 4.0 or later, BSD environment, "make
  204. #     rtubsd", "make rtubsd2", "make rtubsd3" (depending on where ndir.h
  205. #     is stored, see entries below).
  206. # ? for Concurrent/Masscomp with RTU 4.0 or later, System V R2, "make rtus5"
  207. # ? for Concurrent/Masscomp with RTU 5.0 or later, System V R3, "make rtusvr3"
  208. # ? for Concurrent (Perkin-Elmer) 3200 series, "make sys5".
  209. # ? for Concurrent (Perkin-Elmer) 3200 series with <dirent.h>, "make ccop1"
  210. # ? for Consensys UNIX SV/386 R4V3, "make sys5r4sxtcpc" or "make sys5r4sx"
  211. # ? for Convergent with CTIX Sys V R2, "make sys5"
  212. # ? for Convergent with CTIX 6.4.1, "make ctix"
  213. # ? for Convex C1, "make convex"
  214. # ? for Convex C210 with Convex/OS 8, "make convex8"
  215. # ? for Convex C2 with Convex/OS 9.1, "make convex9"
  216. # ? for Convex C2 with Convex/OS 10.1 and gcc 2.x, "make convex10gcc"
  217. # ? for Cray Research X/MP or YMP or C90 with UNICOS 6.x (System V R3),
  218. #    "make cray"
  219. # ? for Cray Research X/MP or YMP or C90 with UNICOS 7.x (System V R4),
  220. #    "make cray"
  221. # ? for Cray Research X/MP or YMP or C90 with UNICOS 8.0 Alpha, "make cray8"
  222. # ? for Cray Computer Cray-2 or Cray3 with CSOS, "make craycsos"
  223. # ? for Cyber 910 (Silicon-Graphics Iris) with Irix 3.3, "irix33"
  224. # ? for Data General AViiON with DG/UX 5.4R3.xx or later, "make dgux543c"
  225. # ? for Data General AViiON with DG/UX 5.4 before R3.00, "make dgux540"
  226. #     or "make dgux540c" (compile ckwart separately if necessary)
  227. # + for DG/UX 5.4 on AViiON Intel models, "make dgux540i" or dgux540ic.
  228. # ? for DG/UX 5.4R4.11 on AViiON, all models, "make dgux54411"
  229. # + for DG/UX 5.4R4.20 on AViiON, all models, "make dgux54420"
  230. # + for Data General AViiON with DG/UX 4.3x using Sys V-isms, "make dgux430"
  231. # ? for Data General AViiON with DG/UX 4.3x using BSD-isms, "make dgux430bsd"
  232. # ? for Data General AViiON, earlier UNIX versions,
  233. #     "make sys5r3" (maybe compile ckwart separately, or "touch ckcpro.c")
  234. # ? for Data General MV systems with DG/UX, ???
  235. # ? for Data General MV systems with MV/UX, use AOS/VS C-Kermit (CKDKER.MAK)
  236. # + for Data General MV systems with AOS/VS, use CKDKER.MAK.
  237. #   for DEC PDP-11 with Berkeley UNIX 2.x, see Berkeley UNIX 2.x.
  238. # ? for DEC PDP-11 with Mini-UNIX (Bell 6th Edition for PDP-11 with no MMU),
  239. #     probably no way to fit C-Kermit without I&D space.
  240. # ? for DEC PDP-11 with Ultrix-11 3.x, ??? (probably needs overlays)
  241. # ? for DEC VAX with Ultrix 1.x "make bsd"
  242. # ? for DEC VAX with Ultrix 2.x "make ultrix2s"
  243. # ? for DEC VAX or DECstation with Ultrix 3.0, 3.1, "make ultrix3x"
  244. # ? for DECstation or VAX with Ultrix 4.0 or 4.1, "make ultrix40"
  245. # ? for DECstation or VAX with Ultrix 4.2, "make ultrix42" or "make ultrix42c"
  246. # ? for DECstation or VAX with Ultrix 4.2, Sys V R4 world, "make du42s5r4"
  247. # ? for DECstation or VAX with Ultrix 4.x, POSIX world, "make posix"
  248. # + for DECstation or VAX with Ultrix 4.3, "make ultrix43".
  249. # + for DECstation or VAX with Ultrix 4.4, "make ultrix44".
  250. # ? for DECstation 5000/50, /150 or /260 (R4x00 MIPS CPU), Ultrix 4.3A or later
  251. #     "make ultrix43-mips3" or "make ultrix43c-mips3"
  252. # ? for DECstation (MIPS) with Berkeley Sprite, "make bsd44"?
  253. # ? for DECstation (MIPS) with OSF/1 V1.0 to 1.3, "make dec-osf"
  254. # ? for DEC Alpha with OSF/1 1.0 to 1.3, "make dec-osf"
  255. # ? for DEC PC 486 with OSF/1, "make dec-osf"
  256. # ? for DEC Alpha with OSF/1 2.x, "make dec-osf20"
  257. # + for DEC Alpha with OSF/1 3.0, "make dec-osf30"
  258. # + for DEC Alpha with Digital UNIX 3.2, "make du32"
  259. # + for DEC Alpha with Digital UNIX 4.0, "make du40" or "make du40gcc"
  260. # + for DEC Alpha with Digital UNIX 5.0, "make du50"
  261. # - for DEC Pro-350 with Pro/Venix V1.x, "make provx1" (version 5A is too big)
  262. # ? for DEC Pro-380 with Pro/Venix V2.0 (Sys V), "make sys3" or "make sys3nid"
  263. # ? for DEC Pro-380 with 2.9, 2.10, or 2.11 BSD, "make bsd29" or "make bsd210"
  264. #   for DEC PDP-11 with 2.xBSD (use separate makefile ckubs2.mak)
  265. # ? for Dell UNIX Issue 2.x (= USL Sys V/386 R4.x + fixes), "make dellsys5r4"
  266. #     or "make dellsys5r4c" (last tested in C-Kermit 5A).
  267. # ? for DIAB DS90 with DNIX (any version) create an empty <sys/file.h> if
  268. #     this file does not already exist (or add -DNOFILEH to the make entry).
  269. # ? for DIAB DS90 or LUXOR ABC-9000 with pre-5.2 DNIX, add "getcwd" to libc.a
  270. #     (see ckuins.txt), then "make dnixold".
  271. # ? for DIAB DS90 with DNIX 5.2 (Sys V.2) or earlier, "make dnix",
  272. #     "make dnixnd", or (to add curses and TCP/IP) "make dnixnetc",
  273. # ? for DIAB DS90 with DNIX 5.3 (Sys V.3), "make dnix5r3"
  274. # ? for DIAB DS90 with DNIX 5.3 (Sys V.3) and TCP/IP, "make dnix5r3net"
  275. # ? for DIAB DS90 with DNIX 5.3 2.2 (Sys V.3), ANSI C, "make dnix5r3ansi"
  276. #     or, to include TCP/IP, "make dnix5r3ansinet",
  277. #     but you have to fix a bug in /usr/include/stdlib.h first:
  278. #     change "extern void free(char *str);" to "extern void free(void *str);"
  279. # ? for Dolphin Server Technology Triton 88/17 with SV/88 R3.2, "make sv88r32"
  280. # ? for Encore Multimax 310, 510 with Umax 4.2, "make umax42"
  281. # ? for Encore Multimax 310, 510 with Umax 4.3, "make umax43"
  282. # ? for Encore Multimax 310, 510 with Umax V 2.2, use Berkeley cc, "make bsd"
  283. # ? for Encore 88K with Umax V 5.2, "make encore88k"
  284. # ? for ESIX System V R4.0.3 or 4.04 with TCP/IP support, "make esixr4"
  285. #     NOTE: You can also build on Unixware 2.x with "make esixr4", and run
  286. #     on ESIX, but there you must first:
  287. #       ln /usr/lib/libsocket.so /usr/lib/libsocket.so.1
  288. #       ln /usr/lib/libnsl.so /usr/lib/libnsl.so.1
  289. #     (This worked for C-Kermit 6.0 but does not work for 7.0)
  290. # ? for Everex STEP 386/25 Rev G with ESIX Sys V R3.2D, "make sys5r3"
  291. # ? for Fortune 32:16, For:Pro 1.8, "make ft18"
  292. # ? for Fortune 32:16, For:Pro 2.1, "make ft21"
  293. # ? for FPS 500 with FPX 4.1, "made bsd"
  294. # ? for FreeBSD 1.0, "make freebsd"
  295. # + for FreeBSD 2.x, "make freebsd2" (ncurses) or "make freebsd2c" (curses)
  296. # + for FreeBSD 3.x, "make freebsd3" (ncurses) or "make freebsd3c" (curses)
  297. # ? for Harris HCX-2900, "make sys5r3"
  298. # ? for Harris Night Hawk 88K or 68K with CX/UX pre-6.1, "make sys5r3"
  299. # ? for Harris Night Hawk 88K or 68K with CX/UX 6.1 or later, "make cx_ux"
  300. # ? for Heurikon, "make sys3"
  301. # ? for HP-3000, MPE/ix, "make posix"?
  302. # + for HP-9000 Series 300 with 4.4BSD, "make bsd44"
  303. # + for HP-9000 Series 500, HP-UX 5.21 with WIN/TCP 1.2 "make hpux500wintcp"
  304. # + for HP-9000 Series, HP-UX < 6.5, without long filenames, no job control,
  305. #     "make hpuxpre65"
  306. # + for HP-9000 Series, HP-UX pre-7.0, without long filenames, "make hpux"
  307. # + for HP-9000 Series, HP-UX 6.5, without long filenames,
  308. #     "make hpux65" or "make hpux65c"
  309. # + for HP-9000 Series, HP-UX 7.0 or later, no long filenames, "make hpux70sf"
  310. #     or (to include tcp/ip, curses, etc) "make hpux70sftcpc"
  311. # + for HP-9000 Series with HP-UX Sys V R2, BSD long names, "make hpuxlf"
  312. # + for HP-9000 Series with HP-UX Sys V R2, dirent long names, "make hpuxde"
  313. #     or (to include TCP/IP support) "make hpuxdetcp"
  314. # + for HP-9000 Series with HP-UX Sys V R3, "make hpuxs5r3"
  315. # + for HP-9000 Series with HP-UX 7.0, TCP/IP, long filenames, "make hpux70lfn"
  316. # + for HP-9000 300/400 Series (680x0) with HP-UX 8.0, TCP/IP, "make hpux80"
  317. #      or "make hpux80c"
  318. # + for HP-9000 700/800 Series (PA-RISC), HP-UX 8.0, TCP/IP, "make hpux80pa"
  319. #      or "make hpux80pac"
  320. # + for HP-9000 Series with HP-UX 8.0, no TCP/IP, long filenames,
  321. #      "make hpux80notcp" or "make hpuxde"
  322. # + for HP-9000 Series, HP-UX 9.0 - 9.10, TCP/IP, curses, restricted compiler
  323. #     (no optimization, no ANSI), all models, "make hpux90".  Read the hpux90
  324. #     entry below for more info.
  325. # + for HP-9000 700 and 800 Series, HP-UX 9.x, TCP/IP, curses,
  326. #     HP optimizing ANSI C compiler, "make hpux90o700".
  327. # + for HP-9000 with Motorola CPUs, HP-UX 9.x, TCP/IP, curses,
  328. #     HP optimizing ANSI C compiler, "make hpux90mot".
  329. # + for HP-9000 on other CPUs, HP-UX 9.x, TCP/IP, curses,
  330. #     HP optimizing ANSI C compiler, "make hpux90o".
  331. # + for HP-9000 series, HP-UX 9.x, TCP/IP, curses, gcc, all models,
  332. #     "make hpux90gcc"
  333. # + for HP-9000 700/800 Series, HP-UX 10.00,10.01,10.10,10.20,10.30, TCP/IP,
  334. #     curses, restricted compiler (no optimization, no ANSI) "make hpux100".
  335. # + for HP-9000 700/800 Series, HP-UX 10.00,10.01,10.10,10.20,10.30, TCP/IP,
  336. #     curses, HP ANSI/optimizing compiler "make hpux100o" or "make hpux100o+"
  337. # + for Trusted HP-UX 10.xx "make hpux100t", "make hpux100to", make hpux100to+"
  338. # + for HP-9000 700/800 Series, HP-UX 11.00,TCP/IP,curses, restricted compiler
  339. #     (no optimization, no ANSI) "make hpux110".
  340. # + for HP-9000 700/800 Series, HP-UX 11.00,TCP/IP,curses, restricted compiler
  341. #     HP ANSI/optimizing compiler "make hpux110o" or "make hpux110o+"
  342. # + for Trusted HP-UX 11.xx "make hpux110t", "make hpux110to", make hpux110to+"
  343. # + for HP-9000 PA-RISC models with NeXTSTEP 3.3, "make nextquadfat".
  344. # + for HP-9000 PA-RISC models with OPENSTEP/Mach 4.1, "make nextquadfat".
  345. # ? for IBM 370 Series with IX/370, "make ix370"
  346. # ? for IBM 370 Series with AIX/370 1.2, "make aix370"
  347. # ? for IBM 370 Series with AIX/370 3.0, "make aix370"
  348. # ? for IBM 370 Series with AIX/ESA 2.1, "make aixesa"
  349. # - for IBM PC/AT 286 & compatibles with Mark Williams Coherent OS,
  350. #     command-line-only version, "make coherent" (version 5A & later too big)
  351. # ? for IBM PC 386 & compatibles with Mark Williams Coherent OS,
  352. #     minimum interactive version, "make coherentmi"
  353. # ? for IBM PC 386 & compatibles with Mark Williams Coherent OS,
  354. #     full interactive version, prior to v4.2, "make coherentmax"
  355. # + for IBM PC 386 & compatibles with Mark Williams Coherent OS 4.2,
  356. #     "make coherent42"
  357. # ? for IBM PC 386 & compatibles with LynxOS 2.0 or 2.1, "make lynx21"
  358. # ? for IBM PC 386 & compatibles with LynxOS 2.2, "make lynx"
  359. # - for IBM PC/AT & compatibles with original MINIX, "make minix" (too big)
  360. # ? for IBM PC family, 386-based, with MINIX/386 1.5, "make minix386"
  361. #     or if you have GNU CC, "make minix386gcc"
  362. # + for IBM PC family, 386-based, with MINIX 2.0, "make minix20"
  363. # + for IBM PS/2 with PS/2 AIX 1.0, 1.1, or 1.2, "make ps2aix" or ps2aixnetc.
  364. # ? for IBM PS/2 with PS/2 AIX 1.3, "make ps2aix3"
  365. # ? for IBM RISC System/6000 with AIX 3.0, "make aix30"
  366. # ? for IBM RISC System/6000 with AIX 3.1.x, "make aix31"
  367. # + for IBM RISC System/6000 with AIX 3.2.0 thru 3.2.5, "make aix32"
  368. # + for IBM RS/6000 or Power Series with AIX 4.1 or AIX 4.1.1, "make aix41"
  369. # + for IBM RS/6000 or Power Series with AIX 4.1 with X.25, "make aix41x25"
  370. # + for IBM RS/6000 or Power Series with AIX 4.2, "make aix42"
  371. # + for IBM RS/6000 or Power Series with AIX 4.3, "make aix43"
  372. # ? for IBM RT PC with AIX 2.1, "make sys3"
  373. # ? for IBM RT PC with AIX 2.2.1, "make rtaix" or "make rtaixc"
  374. # ? for IBM RT PC with ACIS 4.2, "make bsd"
  375. # ? for IBM RT PC with ACIS 4.3, "make rtacis" or "make bsd KFLAGS=-DNOANSI"
  376. # ? for IBM RT PC with 4.3BSD/Reno, "make bsd44" or "make bsd44c"
  377. # ? for ICL DRS400 or 400E, "make iclsys5r3"
  378. # ? for ICL DRS3000 (80486) with DRS/NX, "make iclsys5r4_486"
  379. # ? for ICL DRS6000 (SPARC) with DRS/NX, "make iclsys5r4"
  380. # + for ICL DRS6000 (SPARC) with DRS/NX 4.2MP 7MPlus, "make iclsys5r4m+"
  381. # ?     Ditto but with IKSD support included, "make iclsys5r4m+iksd"
  382. # ? for Integrated Solutions Inc V8S VME 68020, "make isi"
  383. # ? for Intel 302 with Bell Tech Sys V/386 R3.2, "make sys5r3"
  384. # ? for Intel Xenix/286, "make sco286"
  385. # ? for Interactive System III (PC/IX), "make pcix" or "make is3"
  386. # ? for Interactive System III (PC/IX) with gcc, "make is3gcc"
  387. # ? for Interactive 386/ix 1.0.6 with TCP/IP networking, "make is5r3net2"
  388. # ? for Interactive 386/ix 2.0.x, "make is5r3" or (POSIX) "make is5r3p"
  389. # ? for Interactive 386/ix 2.0.x with TCP/IP networking, "make is5r3net"
  390. #     or "make is5r3net2"
  391. # ? for Interactive 386/ix 2.2.1, job control, curses, no net, gcc,
  392. #     "make is5r3gcc"
  393. # + for Interactive UNIX Sys V R3.2 V2.2 - 4.0 without TCP/IP, "make is5r3jc"
  394. # ? for Interactive UNIX Sys V R3.2 V2.2 - 4.0 with TCP/IP, "make is5r3netjc"
  395. # + for Intergraph Clipper, "make clix" or "make clixnet"
  396. # ? for Jolix (see 386BSD)
  397. # + for Linux on PowerMac (Mklinux DR3), "make mklinux".
  398. # + for Linux 1.2 and later, "make linux".  Uses ncurses.  This version
  399. #     handles serial speeds up to 460800 bps, Linux FSSTD 1.2, TCP/IP, and
  400. #     should work on both libc and glibc systems.  For static linking, use
  401. #     "make linux LNKFLAGS=-static".  Please read the comments that accompany
  402. #     the linux entry.
  403. # + for Linux builds that fail with "sys/select.h: No such file or directory",
  404. #     "make linuxns"
  405. # + for Linux 1.2 and later but with curses.h and libcurses (rather than
  406. #     ncurses.h and libncurses), use "make linuxc".
  407. # + for Linux 1.2 and later with no curses support at all, "make linuxnc".
  408. # + for Linux 1.2 and later, to build with egcs, "make linuxegcs".
  409. # + for Linux with no TCP/IP, "make linuxnotcp"
  410. # + for Linux with lcc compiler, no TCP/IP, "make linuxnotcp-lcc"
  411. # ? for Linux 1.0 or earlier, "make linux10", or (to remove TCP/IP)
  412. #     "make linuxnotcp".  For static linking, use "make linuxs".
  413. #     IMPORTANT: Read the comments that accompany the "linux:" entry.
  414. # ? for Luxor ABC-9000 (DIAB DS-90) with pre-5.2 DNIX, add "getcwd" to libc.a
  415. #     (see ckuins.txt), then "make dnixold".
  416. # ? for Mach 2.6 on (anything, e.g. DECstation), "make bsd42" or "make bsd43".
  417. # ? for MachTen (Tenon) 2.1.1.D on (e.g.) Apple Powerbook, "make machten".
  418. # ? for Masscomp RTU AT&T System III, "make rtu"
  419. #   for other Masscomp, see Concurrent.
  420. # ? for Microport SV/AT (System V R2), "make mpsysv" (last edit tested: 144)
  421. # ? for Microport SVR4 2.2, 3.1, or 4.1 "make sys5r4sx"
  422. # ? for Microsoft,IBM Xenix (/286, PC/AT, etc), "make xenix" or "make sco286"
  423. # ? for MIPS System with RISC/os (UMIPS) 4.52 = AT&T SVR3, "make mips"
  424. #     or "make mipstcpc"
  425. # + for MkLinux on Power Macintosh, "make mklinux"
  426. # ? for Modcomp 9730, Real/IX, "make sys5r3" (or modify to use gcc = GLS cc)
  427. # ? for Modcomp Realstar 1000 with REAL/IX D.1, "make sv88r32"
  428. # ? for Motorola Four Phase, "make sys3" or "make sys3nid"
  429. # + for Motorola Delta System V/68 R3, "make sv68r3"
  430. # + for Motorola Delta System V/68 R3V5, "make sv68r3v5"
  431. # + for Motorola Delta System V/68 R3V5.1, "make sv68r3v51"
  432. # + for Motorola Delta System V/68 R3V6 with NSE TCP/IP, "make sv68r3v6"
  433. # + for Motorola Delta System V/88 R32, "make sv88r32"
  434. # + for Motorola Delta System V/88 R40, "make sv88r40"
  435. # ? for Mt Xinu Mach386 on 386/486-based PCs, "make bsd43"
  436. # ? for NCR Tower 1632, OS 1.02, "make tower1"
  437. # ? for NCR Tower 1632 or Minitower with System V R2, "make sys3"
  438. #     or "make sys3nv"
  439. # ? for NCR Tower 32, OS Release 1.xx.xx, "make tower32-1"
  440. # ? for NCR Tower 32, OS Release 2.xx.xx, "make tower32-2"
  441. # ? for NCR Tower 32, OS Releases based on Sys V R3, "make tower32"
  442. # ? for NCR Tower 32, OS Releases based on Sys V R3 with gcc "make tower32g"
  443. # ? for NCR System 3000, AT&T UNIX System V R4 2.0, "make sys5r4sxna"
  444. # ? for NCR System 3000, AT&T UNIX System V R4 2.0 with Wollongong TCP/IP,
  445. #     "make sys5r4net2" or "make sys5r4net2c".
  446. #      Some header files might be misplaced; try this:
  447. #       ln /usr/include/netinet/in.h /usr/include/sys/in.h
  448. #       ln /usr/include/arpa/inet.h /usr/include/sys/inet.h
  449. #       ln /usr/include/sys/termiox.h /usr/include/termiox.h
  450. # ? for NCR System 3000, NCR UNIX 02.02.01, same as above.
  451. # + for NCR MP-RAS System V R4 V2.03 or 3.02, "make mpras" or "make mprastcpc"
  452. # + for NetBSD 1.0-3.x on PC 386/486, Sparc, ..., "make netbsd"
  453. #     or (ncurses) "make netbsdn"
  454. #     or "make netbsdnoiksd" (no IKSD).
  455. # + for NeXT with NeXTSTEP 1.0 through 3.2, "make next" (on a NeXT)
  456. # + for NeXT with NeXTSTEP 3.3, "make next33"
  457. # ? for NeXT with OPENSTEP/Mach 4.1, "make nextquadfat".
  458. # + for NeXT with OPENSTEP/Mach 4.2, "make openstep42".
  459. # ? for NeXTSTEP/486, "make next" (on a PC)
  460. # ? for NeXTSTEP portable binary (runs on Intel or Motorola), "make nextfat"
  461. # ? for NeXTSTEP portable binary (Intel, Motorola, HP PA-RISC, or SPARC),
  462. #     "make nextquadfat"
  463. # ? for Nixdorf Targon/31, "make t31tos40x"
  464. # ? for Norsk Data Uniline 88/17 with SV/88 R3.2, "make sv88r32"
  465. #   for Novell UnixWare - see UnixWare
  466. # ? for OSF/1 (vanilla, from OS/F), "make posix"
  467. # ? for OkiStation 7300 Series, "make sys5r4sxtcp"
  468. # ? for Olivetti LSX-3020 with X/OS R.2.3, "make xos23" or "make xos23c"
  469. # + for OpenBSD, "make openbsd"
  470. # ? for OPENSTEP/Mach 4.1, "make nextquadfat" (NeXT, Intel, PA-RISC, SPARC)
  471. # + for OPENSTEP/Mach 4.2, "make openstep42" (tested on NeXT)
  472. # ? for Perkin-Elmer (Concurrent) 3200 series, "make sys5".
  473. # ? for Perkin-Elmer (Concurrent) 3200 series with <dirent.h>, "make ccop1"
  474. # ? for Perkin-Elmer/Concurrent 3200 with Xelos R02, "make ccop1"
  475. # ? for PFU Compact A Series SX/A TISP V10/E50 (Japan), "make sxae50"
  476. # ? for Plexus, "make sys3"
  477. # + for Pyramid 9XXX (e.g. 9845) or MIServer T series, OSx 4.4b thru 5.1,
  478. #     "ucb make pyramid" or for HDB UUCP, "ucb make pyramid-hdb" or:
  479. # + for Pyramid MIServer S or ES Series, DataCenter/OSx, "make pyrdcosx"
  480. # + for Pyramid MIS-S MIPS R3000, DataCenter OSx System V R4, "make pyrdcosx"
  481. # + for POSIX on anything, "make posix" (but adjustments might be necessary).
  482. # + for POSIX on SunOS 4.1 or later, "make sunposix"
  483. # ? for Prime 8000 MIPS, SVR3, "make mips" or "make mipstcpc"
  484. # - for QNX 2.x (sorry we don't have a version of C-Kermit for QNX 2.x)
  485. # ? for QNX 4.0 or 4.1, 16-bit, on 286 PC, Watcom C 8.5, "make qnx16_41"
  486. # + for QNX 4.21 - 4.22A (286+), and 4.23 (386+), or higher, 16-bit,
  487. #     Watcom C 9.5x or higher, "make qnx16"
  488. # + for QNX 4.21 and above, 32-bit, 386 or above, Watcom C 10.6, "make qnx32"
  489. #     NOTE: ("make qnx" == "make qnx32")
  490. # ? for Ridge 32 (ROS3.2), "make ridge32"
  491. # ? for Samsung MagicStation, "make sys5r4"
  492. # ? for SCO Xenix 2.2.1 with development system 2.2 on 8086/8 "make sco86"
  493. # ? for SCO Xenix/286 2.2.1 with development system 2.2 on 80286, "make sco286"
  494. #     NOTE: reportedly this makefile is too long for SCO Xenix/286 make, but it
  495. #     works with "makeL", or if some of the other make entries are edited out.
  496. # ? for SCO Xenix/386 2.2.2, "make sco386"
  497. # ? for SCO Xenix/386 2.3.x, "make sco3r2" or "make sco3r2x"
  498. # ? for SCO Xenix/386 SCO 2.3.3 or 2.3.4 with gcc 1.37 or later,
  499. #     "make sco386gcc" or (to add curses) "make sco386gccc".
  500. # ? for SCO Xenix/386 or UNIX/386 with Excelan TCP/IP, "make sco3r2net"
  501. #     or (to add curses support) "make sco3r2netc" or "sco386netc"
  502. # + for SCO XENIX 2.3.4, "make sco234" or "make sco234c" to add curses.
  503. # + for SCO XENIX 2.3.4 with SCO TCP/IP & curses, "make sco234netc".
  504. # ? for SCO Xenix 2.3.x with Racal-InterLan TCP/IP, "make sco3r2netri"
  505. #   for other UNIX varieties with Racal Interlan TCP/IP, read sco3r2netri entry
  506. # ? for SCO Xenix 2.3.x with SCO (Lachman) TCP/IP, "make sco3r2lai"
  507. #     or (to add curses) "make sco3r2laic"
  508. #   for SCO UNIX...  ALSO READ COMMENTS in the SCO UNIX entries for more info!
  509. # ? for SCO UNIX/386 3.2.0 or 3.2.1, "make sco3r2" or "make sco3r2x"
  510. # ? for SCO UNIX/386 3.2.2, "make sco3r22" or "make sco3r22gcc"
  511. #     or "make sco3r22c"
  512. # ? for SCO UNIX/386 3.2.2 with SCO TCP/IP, "make sco3r22net"
  513. #     or "make sco3r22netc" (curses)
  514. # ? for SCO ODT 1.1, "make sco3r22net" or "make sco3r22netc" (curses)
  515. # + for SCO UNIX/386 3.2 V4.x, no network support, "make sco32v4"
  516. # +   or "make sco32v4ns" (this one uses no select() or sockets library)
  517. # + for SCO UNIX/386 3.2 V4.x with TCP/IP, "make sco32v4net"
  518. #     (also sco32v4gcc, sco32v4netgcc)
  519. # + for SCO UNIX/386 3.2 V5.0 - see SCO OpenServer.
  520. # + for SCO UNIX 3.2v4.x with TCP/IP, <dirent.h> for Extended Acer File
  521. #     System (EAFS), curses, ANSI C compilation, "make sco32v4net"
  522. # +   or (to use select()-based CONNECT module) "make sco32v4netx".
  523. # + for SCO UNIX 3.2v4.2, "make sco-odt30"
  524. # + for SCO MPX 3.0 - The SCO UNIX binary runs on the corresponding MPX system.
  525. #
  526. # NOTE: Also see below for other entries that are variations on these.
  527. # Also be sure to read the comments accompanying each SCO entry.
  528. #
  529. # + for SCO ODT 2.0, "make sco32v4net"
  530. # + for SCO ODT 3.0, "make sco-odt30"
  531. # + for SCO OpenServer 5.0 (OSR5), "make sco32v500"
  532. # + for SCO OpenServer 5.0 (OSR5) with networking, "make sco32v500net"
  533. # + for SCO OpenServer 5.0 (OSR5), gcc, "make sco32v500gcc"
  534. # + for SCO OpenServer 5.0 (OSR5), gcc, with networking, "make sco32v500netgcc"
  535. # + for SCO OpenServer 5.0 (OSR5), as above, ELF, "make sco32v500netgccelf"
  536. # + for SCO OpenServer 5.0.4, use "make sco32v504xxx" entries as above.
  537. # + for SCO OpenServer 5.0.5, use "make sco32v505xxx" entries as above.
  538. # + for SCO OpenServer 5.0.5 with UDK, use "make sco32v505udk".
  539. #  (for SCO UnixWare - see UnixWare)
  540. # ? for Sequent with DYNIX/ptx 1.2.1, "make dynixptx12"
  541. # ? for Sequent with DYNIX/ptx 1.3 or 1.4 with TCP/IP, "make dynixptx13"
  542. # ? for Sequent with DYNIX/ptx 2.0 or 2.1 with TCP/IP, "make dynixptx20"
  543. #     or "dynixptx20c"
  544. # + for Sequent with DYNIX/ptx 2.1.6 on i486, "dynixptx216c"
  545. # ? for Sequent with DYNIX/ptx V4.1.3 with TCP/IP, "make dynixptx41c"
  546. # + for Sequent with DYNIX/ptx V4.4.2 with TCP/IP, "make dynixptx44"
  547. # ? for Sequent Balance 8000 or B8 with DYNIX 3.0.xx, "make dynix3"
  548. #    or "make dynix3noacu"
  549. # ? for Sequent Symmetry S81 with DYNIX 3.0.xx, "make dynix3"
  550. # ? for Sequent DYNIX 3.1.xx, "make dynix31" or "make dynix31c"
  551. # + for Siemens/Nixdorf SINIX-L Intel V5.41, "make sinix541i"
  552. # + for Siemens/Nixdorf SINIX-N MIPS V5.42, "make sinix542"
  553. # + for Siemens/Nixdorf SINIX-Z Intel V5.42, "make sinix542i"
  554. # + for Siemens/Nixdorf Reliant UNIX V5.43, "make sni543"
  555. # + for Siemens/Nixdorf Reliant UNIX V5.44, "make sni544"
  556. # ? for Silicon Graphics Iris System V IRIX 3.2 or earlier, "make iris"
  557. # ? for Silicon Graphics Sys V R3 with IRIX 3.3 or later, "make sys5r3"
  558. # ? for Silicon Graphics Iris Indigo with IRIX 4.0 or 5.0, "make irix40" or
  559. #     (to include Yellow Pages and Curses) "make irix40ypc"
  560. # ? for Silicon Graphics Iris Indigo or Elan with IRIX 4.0.x with microcode
  561. #     optimization and -O4, "make irix40u" or "irix40uc" (and read notes
  562. #     accompanying these entries).
  563. # + for Silicon Graphics IRIX 5.1, "make irix51"
  564. # + for Silicon Graphics IRIX 5.2, "make irix52"
  565. # + for Silicon Graphics IRIX 5.3, "make irix53"
  566. # + for Silicon Graphics IRIX 6.0, "make irix60".
  567. # + for Silicon Graphics IRIX 6.2, "make irix62".
  568. # + for Silicon Graphics IRIX 6.3, "make irix63".
  569. # + for Silicon Graphics IRIX 6.4, "make irix64" or "make irix64gcc".
  570. # + for Silicon Graphics IRIX 6.5, "make irix65".
  571. # + for SGI IRIX 6.5.5 (new company name) "make irix65"
  572. # ? for Solaris 2.0-2.3 on SPARC or Intel, SunPro CC, "make solaris2x",
  573. # ?   or to add SunLink X.25 8.0x support, "make solaris2x25".
  574. # + for Solaris 2.4 build with gcc, "make solaris24g".
  575. # + for Solaris 2.0-2.3 on SPARC or Intel, GNU CC, "make solaris2xg".
  576. # + for Solaris 2.4 with X.25, "make solaris24x25".
  577. # + for Solaris 2.5 on SPARC or Intel, SunPro CC, "make solaris25".
  578. # +   or to add SunLink X.25 8.0x support, "make solaris25x25".
  579. # + for Solaris 2.5 on SPARC or Intel, GNU CC, "make solaris25g".
  580. # + for Solaris 2.6 on SPARC or Intel, "make solaris26".
  581. # + for Solaris 7 (a.k.a. 2.7) on SPARC or Intel, "make solaris7".
  582. # + for Solbourne 4/500 with OS/MP 4 "make sunos4"
  583. # + for Solbourne 4/500 with OS/MP 4.1 "make sunos41" or "make sunos41c"
  584. # ? for SONY NEWS with NEWS-OS 4.0.1C, "make sonynews"
  585. # ? for SONY NEWS with NEWS-OS 4.1.2C, "make sonynews"
  586. # ? for Sperry/UNISYS 5000/20, UTS V 5.2 3R1, "make sys5"
  587. # ? for Sperry/UNISYS 5000/30/35/50/55, UTS V 5.2 2.01, "make unisys5r2"
  588. # ? for Sperry/UNISYS 5000/80 with System V R3, "make sys5r3"
  589. # ? for Sperry/UNISYS 5000/95 with System V R3, "make sys5r3"
  590. #     For UNISYS SVR3 it might be necessary to "make sys5r3 KFLAGS=-UDYNAMIC"
  591. # ? for Stardent 1520, "make sys5r3"
  592. # ? for Stratus FTX 2.x, try "make ftx" or else "make sys5r4" or "sys5r4sx"
  593. # + for Stratus FTX 3.x, PA-RISC 1.0 or 2.0, "make ftx" or "make ftxtcp"
  594. # ? for Sun with Sun UNIX 3.5 and gcc, "make sunos3gcc"
  595. # ? for Sun with pre-4.0 SunOS versions, "make bsd" (or appropriate variant)
  596. # ? for Sun with SunOS 4.0, BSD environment, "make sunos4"
  597. # ? for Sun with SunOS 4.0, BSD, with SunLink X.25, make sunos4x25
  598. # ? for Sun with SunOS 4.0, AT&T Sys V R3 environment, "make sunos4s5"
  599. # + for Sun with SunOS 4.1 or 4.1.1, BSD environment, "make sunos41"
  600. #     or "make sunos41c" (curses) or "make sunos41gcc" (compile with gcc)
  601. # + for Sun with SunOS 4.1.x, BSD, with SunLink X.25 7.00 or earlier,
  602. #     "make sunos41x25" or "make sunos41x25c" (curses)
  603. # + for Sun with SunOS 4.1, 4.1.1, AT&T Sys V R3 environment, "make sunos41s5"
  604. # + for Sun with SunOS 4.1, 4.1.1, POSIX environment, "make sunposix"
  605. # + for Sun with SunOS 4.1.2, "make sunos41" or any of its variations.
  606. #     NOTE:  All SunOS 4.x systems -- Shared libraries are used by default.
  607. #       If this causes problems, add -Bstatic to CFLAGS.
  608. #     NOTE2: When building C-Kermit under SunOS for the BSD universe,
  609. #       but /usr/5bin/cc is ahead of /usr/ucb/cc in your PATH, add
  610. #       "CC=/usr/ucb/cc CC2=/usr/ucb/cc" to the make entry.
  611. #     NOTE3: If an executable built on one type of Sun hardware does not work
  612. #       on another type, rebuild the program from source on the target machine.
  613. #   for Sun with Solaris 1.x use SunOS 4.1 entries.
  614. #   for Sun with Solaris 2.0 and higher use Solaris entries.
  615. # + for Sun SPARC with Linux, "make linux"
  616. # ? for Sun SPARC with OPENSTEP/Mach 4.1, "make nextquadfat"
  617. # ? for Sun SPARC with OPENSTEP/Mach 4.2, "make openstep42"
  618. # - for Tandy 16/6000 with Xenix 3.0, "make trs16" (C-Kermit 7.0 is too big)
  619. # ? for Tektronix 6130/4132/43xx (e.g.4301) with UTek OS, "make utek"
  620. #     or (for models without hardware flow control), "make uteknohwfc"
  621. # ? for Tektronix XD88 series with UTekV OS, "make utekvr3"
  622. # ? for Tri Star Flash Cache with Esix SVR3.2, "make sys5r3"
  623. # ? for Unistar, "make sys5"
  624. # ? for Unisys S/4040 68040 CTIX SVR3.2 6.4.1, "make ctix" or "make sys5r3"
  625. # ? for Unisys U5000 UNIX SVR3 6.x, "make sys5r3" or "make sys5r3c"
  626. # ? for Unisys U6000 UNIX SVR4 1.x, "make sys5r4nx" or "make sys5r4nxnetc"
  627. #   for Unisys ... (also see Sperry)
  628. #   for Univel - see UnixWare
  629. # ? for UnixWare 1.x, "make unixware" or "make unixwarenetc".
  630. #     If there are problems with this in C-K 7.0 see notes at unixware entry.
  631. # + for Unixware 2.0.x "make uw2"
  632. # + for UnixWare 2.1.x, "make uw21"
  633. # + for UnixWare 2.x with IKSD (shadow password) support, "make uw2iksd"
  634. # + for UnixWare 7, "make uw7"
  635. # + for UnixWare 7 with IKSD support, "make uw7iksd" or "make uw7iksdudk"
  636. # + for UnixWare 7 with OpenSSL, "make uw7ssl"
  637. # ? for Valid Scaldstar, "make valid"
  638. # ? for Whitechapel MG01 Genix 1.3, "make white"
  639. # ? for Zilog ZEUS 3.21, "make zilog"
  640. #
  641. # The result should be a runnable program called "wermit" in the current
  642. # directory.  After satisfactory testing, you can rename wermit to "kermit"
  643. # and put it where users can find it.
  644. #
  645. # To remove intermediate and object files, "make clean".
  646. # If your C compiler produces files with an extension other than "o",
  647. # then "make clean EXT=u", "make clean EXT=s", or whatever.
  648. #
  649. # To run lint on the source files, "make lintsun", "make lintbsd",
  650. # "make lints5", as appropriate.
  651. #
  652. ##############################################################################
  653. #
  654. # NOTES FOR V7 AND 2.X BSD (BASED ON VERSION 4E OF C-KERMIT, 1987):
  655. #
  656. # For Unix Version 7, several variables must be defined to the values
  657. # associated with your system.  BOOTNAME=/edition7 is the kernel image on
  658. # okstate's Perkin-Elmer 3230.  Others will probably be /unix.  PROCNAME=proc
  659. # is the name of the structure assigned to each process on okstate's system.
  660. # This may be "_proc" or some other variation.  See <sys/proc.h> for more
  661. # info on your systems name conventions.  NPROCNAME=nproc is the name of a
  662. # kernel variable that tells how many "proc" structures there are.  Again
  663. # this may be different on your system, but nproc will probably be somewhere.
  664. # The variable NPTYPE is the type of the nproc variable -- int, short, etc.
  665. # which can probably be gleaned from <sys/param.h>.  The definition of DIRECT
  666. # is a little more complicated.  If nlist() returns, for "proc" only, the
  667. # address of the array, then you should define DIRECT as it is below.  If
  668. # however, nlist() returns the address of a pointer to the array, then you
  669. # should give DIRECT a null definition (DIRECT= ).  The extern declaration in
  670. # <sys/proc.h> should clarify this for you.  If it is "extern struct proc
  671. # *proc", then you should NOT define DIRECT.  If it is "extern struct proc
  672. # proc[]", then you should probably define DIRECT as it is below.  See
  673. # ckuv7.hlp for further information.
  674. #
  675. # For 2.9 BSD, the makefile may use pcc rather than cc for compiles; that's
  676. # what the CC and CC2 definitions are for (the current version of the
  677. # makefile uses cc for both; this was tested in version 4E of C-Kermit and
  678. # worked OK on the DEC Pro 380, but all bets are off for version 5A).  2.9
  679. # support basically follows the 4.1 path.  Some 2.9 systems use "dir.h" for
  680. # the directory header file, others will need to change this to "ndir.h".
  681. #
  682. # The v7 and 2.9bsd versions assume I&D space on a PDP-11.  When building
  683. # C-Kermit for v7 on a PDP-11, you should probably add the -i option to the
  684. # link flags.  Without I&D space, overlays will be necessary (if available),
  685. # or code segment mapping (a`la Pro/Venix) if that's available.
  686. #
  687. # C-Kermit 5A (and 6.0?) can be built for 2.10 and 2.11BSD, using overlays,
  688. # but a separate makefile is used because this one is too big.
  689. #
  690. ##############################################################################
  691. #
  692. # V7-specific variables.
  693. # These are set up for Perkin-Elmer 3230 V7 Unix:
  694. #
  695. PROC=proc
  696. DIRECT=
  697. NPROC=nproc
  698. NPTYPE=int
  699. BOOTFILE=/edition7
  700. #
  701. # ( For old Tandy TRS-80 Model 16A or 6000 V7-based Xenix, use PROC=_proc,
  702. #   DIRECT=-DDIRECT, NPROC=_Nproc, NPTYPE=short, BOOTFILE=/xenix )
  703. #
  704. ###########################################################################
  705. #
  706. #  Compile and Link variables:
  707. #
  708. #  EXT is the extension (file type) for object files, normally o.
  709. #  See MINIX entry for what to do if another filetype must be used.
  710. #
  711. EXT=o
  712. #LNKFLAGS=
  713. SHAREDLIB=
  714. CC= cc
  715. CC2= cc
  716. MAKE= make
  717. SHELL=/bin/sh
  718.  
  719. ###########################################################################
  720. # SAMPLE INSTALLATION SCRIPT
  721. #
  722. # Modify to suit your own computer's file organization
  723. # and permissions.  If you don't have write access to the destination
  724. # directories, "make install" will fail.  In most cases, a real installation
  725. # will also require you to chown / chgrp for the UUCP lockfile and/or tty
  726. # devices, and perhaps also to chmod +s the appropriate permission fields.
  727. #
  728. # Default binary, man, and doc directories are supplied below.  You can
  729. # override them in your 'make' command.  Examples:
  730. #
  731. #   make install                                   # Accept defaults.
  732. #   make "INFODIR=/usr/share/lib/kermit" install   # Override INFODIR default.
  733. #
  734. # You can also build and install in one step, e.g.:
  735. #
  736. #   make sunos41gcc install
  737. #
  738. WERMIT = makewhat
  739. DESTDIR =
  740. BINDIR = /usr/local/bin
  741. MANDIR = /usr/man/manl
  742. INFODIR = /usr/local/doc/kermit
  743. MANEXT = l
  744. ALL = $(WERMIT)
  745.  
  746. all: $(ALL)
  747.  
  748. .c.o:
  749.     $(CC) $(CFLAGS) -DKTARGET=\"$(KTARGET)\" -c $<
  750.  
  751. #Clean up intermediate and object files
  752. clean:
  753.     @echo 'Removing object files...'
  754.     -rm -f ckcmai.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) ckuus2.$(EXT) \
  755. ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) ckcpro.$(EXT) ckcfns.$(EXT) \
  756. ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) ckucon.$(EXT) ckutio.$(EXT) \
  757. ckufio.$(EXT) ckudia.$(EXT) ckuscr.$(EXT) ckwart.$(EXT) ckuusx.$(EXT) \
  758. ckuusy.$(EXT) ckcnet.$(EXT) ckuus6.$(EXT) ckuus7.$(EXT) ckusig.$(EXT) \
  759. ckucns.$(EXT) ckcmdb.$(EXT) ckuath.$(EXT) ckctel.$(EXT) ckclib.$(EXT) \
  760. ckcuni.$(EXT) ck_crp.$(EXT) ck_ssl.$(EXT) ckupty.$(EXT) ckcpro.c wart
  761.  
  762. # Install C-Kermit after building -- IMPORTANT: Read the instructions above.
  763. install:
  764.     cp wermit $(DESTDIR)$(BINDIR)/kermit
  765.     chmod 755 $(DESTDIR)$(BINDIR)/kermit
  766.     @echo
  767.     @echo "Kermit binary installed:"
  768.     @ls -l $(DESTDIR)$(BINDIR)/kermit
  769.     @echo
  770.     @echo " WARNING: If C-Kermit is to be used for dialing out, you will"
  771.     @echo " probably need to change its owner and group and permissions to"
  772.     @echo " match the cu program.  See the ckuins.txt file for details."
  773.     @echo
  774.     @echo "Installing man page..."
  775.     cp ckuker.nr $(DESTDIR)$(MANDIR)/kermit.$(MANEXT)
  776. # To make sure 'man' notices the new source file and doesn't keep
  777. # showing the old formatted version, remove the old formatted version,
  778. # something like this:
  779. #    rm -f $(DESTDIR)$(MANDIR)/../cat$(MANEXT)/kermit.$(MANEXT)
  780. # or this (which requires CATDIR to be defined):
  781. #    rm -f $(DESTDIR)$(CATDIR)/kermit.$(MANEXT)
  782.     chmod 644 $(DESTDIR)$(MANDIR)/kermit.$(MANEXT)
  783.     @echo
  784.     @echo "Installing info files..."
  785.     @if test -d $(INFODIR); then \
  786.         echo "$(INFODIR) exists..." ; \
  787.     else \
  788.         echo "Creating $(INFODIR)/..." ; \
  789.         mkdir $(INFODIR) ; \
  790.         chmod 755 $(INFODIR) ; \
  791.     fi
  792.     @echo "Copying text files to $(INFODIR)..."
  793.     @cp COPYING.TXT $(INFODIR)
  794.     @cp ckaaaa.txt $(INFODIR)/READ.ME
  795.     @cp ckuaaa.txt $(INFODIR)
  796.     @cp ckermit2.txt ckcbwr.txt ckubwr.txt ckuins.txt $(INFODIR)
  797.     @cp ckermit.ini ckermod.ini ckurzsz.ini ckermit.k*d $(INFODIR)
  798.     @cp telnet.txt security.txt iksd.txt $(INFODIR)
  799.     @cp cke*.ksc $(INFODIR)
  800.     @cp ckcplm.txt ckccfg.txt $(INFODIR)
  801.     @chmod 644 $(INFODIR)/*
  802.     @ls -l $(INFODIR)/*
  803.  
  804. makewhat:
  805.     @echo 'make what?  You must tell which platform to make C-Kermit for.'
  806.     @echo Examples:  make hpux1100, make aix43, make solaris26, etc.
  807.     @echo Please read the comments at the beginning of the makefile.
  808.  
  809. ###########################################################################
  810. #
  811. # Dependencies Section:
  812.  
  813. manpage: ckuker.nr
  814.  
  815. # Normal version
  816.  
  817. wermit:    ckcmai.$(EXT) ckclib.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) ckuus2.$(EXT) \
  818.         ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) ckuus6.$(EXT) \
  819.         ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) ckcpro.$(EXT) \
  820.         ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) \
  821.         ckucon.$(EXT) ckutio.$(EXT) ckufio.$(EXT) ckudia.$(EXT) \
  822.         ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) \
  823.         ckcuni.$(EXT) ckupty.$(EXT)
  824.     $(CC2) $(LNKFLAGS) -o wermit \
  825.         ckcmai.$(EXT) ckclib.$(EXT) ckutio.$(EXT) ckufio.$(EXT) \
  826.         ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) \
  827.         ckcpro.$(EXT) ckucmd.$(EXT) ckuus2.$(EXT) ckuus3.$(EXT) \
  828.         ckuus4.$(EXT) ckuus5.$(EXT) ckuus6.$(EXT) ckuus7.$(EXT) \
  829.         ckuusx.$(EXT) ckuusy.$(EXT) ckuusr.$(EXT) ckucon.$(EXT) \
  830.         ckudia.$(EXT) ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) \
  831.         ckusig.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) $(LIBS)
  832.  
  833. # Version with CONNECT module that uses select() instead of fork()
  834.  
  835. xermit:    ckcmai.$(EXT) ckclib.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) ckuus2.$(EXT) \
  836.         ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) ckuus6.$(EXT) \
  837.         ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) ckcpro.$(EXT) \
  838.         ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) \
  839.         ckucns.$(EXT) ckutio.$(EXT) ckufio.$(EXT) ckudia.$(EXT) \
  840.         ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) \
  841.         ckcuni.$(EXT) ckupty.$(EXT)
  842.     $(CC2) $(LNKFLAGS) -o wermit \
  843.         ckcmai.$(EXT) ckclib.$(EXT) ckutio.$(EXT) ckufio.$(EXT) \
  844.         ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) \
  845.         ckcpro.$(EXT) ckucmd.$(EXT) ckuus2.$(EXT) ckuus3.$(EXT) \
  846.         ckuus4.$(EXT) ckuus5.$(EXT) ckuus6.$(EXT) ckuus7.$(EXT) \
  847.         ckuusx.$(EXT) ckuusy.$(EXT) ckuusr.$(EXT) ckucns.$(EXT) \
  848.         ckudia.$(EXT) ckuscr.$(EXT) ckcnet.$(EXT) ckusig.$(EXT) \
  849.         ckctel.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) $(LIBS)
  850.  
  851. # Malloc Debugging version
  852.  
  853. mermit:    ckcmdb.$(EXT) ckcmai.$(EXT) ckclib.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) \
  854.         ckuus2.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) \
  855.         ckuus6.$(EXT) ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) \
  856.         ckcpro.$(EXT) ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) \
  857.         ckuxla.$(EXT) ckucon.$(EXT) ckutio.$(EXT) ckufio.$(EXT) \
  858.         ckudia.$(EXT) ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) \
  859.         ckusig.$(EXT) ckcuni.$(EXT)
  860.     $(CC2) $(LNKFLAGS) -o mermit ckcmdb.$(EXT) ckclib.$(EXT) ckcmai.$(EXT)\
  861.         ckutio.$(EXT) ckufio.$(EXT) ckcfns.$(EXT) ckcfn2.$(EXT) \
  862.         ckcfn3.$(EXT) ckuxla.$(EXT) ckcpro.$(EXT) ckucmd.$(EXT) \
  863.         ckuus2.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) \
  864.         ckuus6.$(EXT) ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) \
  865.         ckuusr.$(EXT) ckucon.$(EXT) ckudia.$(EXT) ckuscr.$(EXT) \
  866.         ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) ckcuni.$(EXT) $(LIBS)
  867.  
  868. # Kerberized Version - Subject to USA export restrictions.
  869.  
  870. krbmit:    ckcmai.$(EXT) ckclib.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) ckuus2.$(EXT) \
  871.         ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) ckuus6.$(EXT) \
  872.         ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) ckcpro.$(EXT) \
  873.         ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) \
  874.         ckucns.$(EXT) ckutio.$(EXT) ckufio.$(EXT) ckudia.$(EXT) \
  875.         ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) \
  876.         ckuath.$(EXT) ck_crp.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) \
  877.         ck_ssl.$(EXT)
  878.     $(CC2) $(LNKFLAGS) -o krbmit ckcmai.$(EXT) ckclib.$(EXT) \
  879.         ckutio.$(EXT) ckufio.$(EXT) ckcfns.$(EXT) ckcfn2.$(EXT) \
  880.         ckcfn3.$(EXT) ckuxla.$(EXT) ckcpro.$(EXT) ckucmd.$(EXT) \
  881.         ckuus2.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) \
  882.         ckuus6.$(EXT) ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) \
  883.         ckuusr.$(EXT) ckucns.$(EXT) ckudia.$(EXT) ckuscr.$(EXT) \
  884.         ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) ckuath.$(EXT) \
  885.         ck_crp.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) ck_ssl.$(EXT) $(LIBS)
  886.  
  887. krbmit-debug:    ckcmai.$(EXT) ckclib.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) \
  888.         ckuus2.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) \
  889.         ckuus6.$(EXT) ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) \
  890.         ckcpro.$(EXT) ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) \
  891.         ckuxla.$(EXT) ckucns.$(EXT) ckutio.$(EXT) ckufio.$(EXT) \
  892.         ckudia.$(EXT) ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) \
  893.         ckusig.$(EXT) ckuath.$(EXT) ck_crp.$(EXT) ckcuni.$(EXT) \
  894.         ckupty.$(EXT) ck_ssl.$(EXT) ckcmdb.$(EXT)
  895.     $(CC2) $(LNKFLAGS) -o krbmit ckcmdb.$(EXT) ckcmai.$(EXT) \
  896.         ckclib.$(EXT) ckutio.$(EXT) ckufio.$(EXT) ckcfns.$(EXT) \
  897.         ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) ckcpro.$(EXT) \
  898.         ckucmd.$(EXT) ckuus2.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) \
  899.         ckuus5.$(EXT) ckuus6.$(EXT) ckuus7.$(EXT) ckuusx.$(EXT) \
  900.         ckuusy.$(EXT) ckuusr.$(EXT) ckucns.$(EXT) ckudia.$(EXT) \
  901.         ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) \
  902.         ckuath.$(EXT) ck_crp.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) \
  903.         ck_ssl.$(EXT) $(LIBS)
  904.  
  905. # SRP(TM) Version - Subject to USA export restrictions.
  906.  
  907. srpmit:    ckcmai.$(EXT) ckclib.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) ckuus2.$(EXT) \
  908.         ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) ckuus6.$(EXT) \
  909.         ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) ckcpro.$(EXT) \
  910.         ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) \
  911.         ckucns.$(EXT) ckutio.$(EXT) ckufio.$(EXT) ckudia.$(EXT) \
  912.         ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) \
  913.         ckuath.$(EXT) ck_crp.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) \
  914.         ck_ssl.$(EXT)
  915.     $(CC2) $(LNKFLAGS) -o srpmit ckcmai.$(EXT) ckclib.$(EXT) \
  916.         ckutio.$(EXT) ckufio.$(EXT) ckcfns.$(EXT) ckcfn2.$(EXT) \
  917.         ckcfn3.$(EXT) ckuxla.$(EXT) ckcpro.$(EXT) ckucmd.$(EXT) \
  918.         ckuus2.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) \
  919.         ckuus6.$(EXT) ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) \
  920.         ckuusr.$(EXT) ckucns.$(EXT) ckudia.$(EXT) ckuscr.$(EXT) \
  921.         ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) ckuath.$(EXT) \
  922.         ck_crp.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) ck_ssl.$(EXT) $(LIBS)
  923.  
  924. # Kerberized Version - Not subject to USA export restrictions.
  925.  
  926. krbmit-export:    ckcmai.$(EXT) \
  927.         ckclib.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) ckuus2.$(EXT) \
  928.         ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) ckuus6.$(EXT) \
  929.         ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) ckcpro.$(EXT) \
  930.         ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) \
  931.         ckucns.$(EXT) ckutio.$(EXT) ckufio.$(EXT) ckudia.$(EXT) \
  932.         ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) \
  933.         ckuath.$(EXT) ckcuni.$(EXT) ckupty.$(EXT)
  934.     $(CC2) $(LNKFLAGS) -o krbmit-export ckcmai.$(EXT) ckclib.$(EXT) \
  935.         ckutio.$(EXT) ckufio.$(EXT) ckcfns.$(EXT) ckcfn2.$(EXT) \
  936.         ckcfn3.$(EXT) ckuxla.$(EXT) ckcpro.$(EXT) ckucmd.$(EXT) \
  937.         ckuus2.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) \
  938.         ckuus6.$(EXT) ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) \
  939.         ckuusr.$(EXT) ckucns.$(EXT) ckudia.$(EXT) ckuscr.$(EXT) \
  940.         ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) ckuath.$(EXT) \
  941.         ckcuni.$(EXT) ckupty.$(EXT) $(LIBS)
  942.  
  943. # SRP(TM) Version - Not subject to USA export restrictions.
  944.  
  945. srpmit-export:    ckcmai.$(EXT) \
  946.         ckclib.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) ckuus2.$(EXT) \
  947.         ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) ckuus6.$(EXT) \
  948.         ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) ckcpro.$(EXT) \
  949.         ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) \
  950.         ckucns.$(EXT) ckutio.$(EXT) ckufio.$(EXT) ckudia.$(EXT) \
  951.         ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) \
  952.         ckuath.$(EXT) ckcuni.$(EXT) ckupty.$(EXT)
  953.     $(CC2) $(LNKFLAGS) -o srpmit-export ckcmai.$(EXT) ckclib.$(EXT) \
  954.         ckutio.$(EXT) ckufio.$(EXT) ckcfns.$(EXT) ckcfn2.$(EXT) \
  955.         ckcfn3.$(EXT) ckuxla.$(EXT) ckcpro.$(EXT) ckucmd.$(EXT) \
  956.         ckuus2.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) \
  957.         ckuus6.$(EXT) ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) \
  958.         ckuusr.$(EXT) ckucns.$(EXT) ckudia.$(EXT) ckuscr.$(EXT) \
  959.         ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) ckuath.$(EXT) \
  960.         ckcuni.$(EXT) ckupty.$(EXT) $(LIBS)
  961.  
  962. ###########################################################################
  963. # man page...
  964. #
  965. # WARNING: Using "cc -E" to preprocess the man page is not portable, but it
  966. # works OK in SunOS 4.1.x, HP-UX, etc.  We use the preprocessor to produce
  967. # custom man pages based on ifdef, else, and endif directives.  But the
  968. # preprocessor replaces omitted lines by blank lines and comment lines, so we
  969. # use grep to filter them out.  THIS MEANS THAT THE SOURCE FILE, ckuker.cpp,
  970. # MUST NOT CONTAIN ANY BLANK LINES!
  971. # Note: on some systems you might need to add -x to the first grep invocation.
  972. #
  973. ckuker.nr: ckuker.cpp
  974.     $(CC) $(CFLAGS) -E ckuker.cpp |grep -v "^$$" |grep -v "^\#" > ckuker.nr
  975.  
  976. ###########################################################################
  977. # Dependencies for each module...
  978. #
  979. ckcmai.$(EXT): ckcmai.c ckcker.h ckcdeb.h ckcsym.h ckcasc.h ckcnet.h ckcsig.h \
  980.         ckuusr.h ckctel.h ckclib.h
  981.  
  982. ckclib.$(EXT): ckclib.c ckclib.h ckcdeb.h ckcasc.h ckcsym.h
  983.  
  984. ckcpro.$(EXT): ckcpro.c ckcker.h ckcdeb.h ckcsym.h ckcasc.h ckclib.h
  985.  
  986. ckcpro.c: ckcpro.w wart ckcdeb.h ckcsym.h ckcasc.h ckcker.h ckcnet.h ckctel.h \
  987.      ckclib.h
  988.     ./wart ckcpro.w ckcpro.c
  989.  
  990. ckcfns.$(EXT): ckcfns.c ckcker.h ckcdeb.h ckcsym.h ckcasc.h ckcxla.h ckcuni.h \
  991.         ckuxla.h ckclib.h ckcnet.h
  992.  
  993. ckcfn2.$(EXT): ckcfn2.c ckcker.h ckcdeb.h ckcsym.h ckcasc.h ckcxla.h \
  994.         ckuxla.h ckctel.h ckclib.h ckcnet.h ckcuni.h
  995.  
  996. ckcfn3.$(EXT): ckcfn3.c ckcker.h ckcdeb.h ckcsym.h ckcasc.h ckcxla.h \
  997.         ckuxla.h ckclib.h ckcuni.h
  998.  
  999. ckuxla.$(EXT): ckuxla.c ckcker.h ckcsym.h ckcdeb.h ckcxla.h ckuxla.h ckclib.h \
  1000.          ckcuni.h
  1001.  
  1002. ckcuni.$(EXT): ckcuni.c ckcdeb.h ckcker.h ckucmd.h ckcuni.h ckcxla.h \
  1003.         ckuxla.h ckcuni.h
  1004.  
  1005. ckuusr.$(EXT): ckuusr.c ckucmd.h ckcker.h ckuusr.h ckcsym.h ckcdeb.h ckcxla.h \
  1006.         ckuxla.h ckcasc.h ckcnet.h ckctel.h ckclib.h ckcuni.h
  1007.  
  1008. ckuus2.$(EXT): ckuus2.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcxla.h ckuxla.h \
  1009.         ckcasc.h ckcnet.h ckcsym.h ckctel.h ckclib.h ckcuni.h
  1010.  
  1011. ckuus3.$(EXT): ckuus3.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcxla.h ckuxla.h \
  1012.         ckcasc.h ckcnet.h ckcsym.h ckctel.h ckctel.h ckclib.h ckcuni.h
  1013.  
  1014. ckuus4.$(EXT): ckuus4.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcxla.h ckuxla.h \
  1015.         ckcasc.h ckcnet.h ckuver.h ckcsym.h ckctel.h ckclib.h ckcuni.h
  1016.  
  1017. ckuus5.$(EXT): ckuus5.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcasc.h ckcnet.h \
  1018.          ckcsym.h ckctel.h ckclib.h ckcxla.h ckuxla.h ckcuni.h
  1019.  
  1020. ckuus6.$(EXT): ckuus6.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcasc.h ckcnet.h \
  1021.          ckcsym.h ckctel.h ckclib.h
  1022.  
  1023. ckuus7.$(EXT): ckuus7.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcxla.h ckuxla.h \
  1024.         ckcasc.h ckcnet.h ckcsym.h ckctel.h ckclib.h ckcuni.h
  1025.  
  1026. ckuusx.$(EXT): ckuusx.c ckcker.h ckuusr.h ckcdeb.h ckcasc.h ckcsym.h \
  1027.         ckcsig.h ckcnet.h ckctel.h ckclib.h ckcxla.h ckuxla.h ckcuni.h
  1028.  
  1029. ckuusy.$(EXT): ckuusy.c ckcker.h ckcdeb.h ckcasc.h ckcnet.h ckcsym.h ckctel.h \
  1030.          ckclib.h
  1031.  
  1032. ckucmd.$(EXT): ckucmd.c ckcasc.h ckucmd.h ckcdeb.h ckcsym.h ckctel.h ckclib.h
  1033.  
  1034. ckufio.$(EXT): ckufio.c ckcdeb.h ckuver.h ckcsym.h ckclib.h \
  1035.         ckcxla.h ckuxla.h ckcuni.h
  1036.  
  1037. ckutio.$(EXT): ckutio.c ckcdeb.h ckcnet.h ckuver.h ckcsym.h ckctel.h ckclib.h
  1038.  
  1039. ckucon.$(EXT): ckucon.c ckcker.h ckcdeb.h ckcasc.h ckcnet.h ckcsym.h ckctel.h \
  1040.          ckclib.h
  1041.  
  1042. ckucns.$(EXT): ckucns.c ckcker.h ckcdeb.h ckcasc.h ckcnet.h ckcsym.h ckctel.h \
  1043.          ckclib.h ckcxla.h ckuxla.h ckcuni.h
  1044.  
  1045. ckcnet.$(EXT): ckcnet.c ckcdeb.h ckcker.h ckcnet.h ckcsym.h ckcsig.h ckctel.h \
  1046.          ckclib.h
  1047.  
  1048. ckctel.$(EXT): ckcsym.h ckcdeb.h ckcker.h ckcnet.h ckctel.h ckclib.h
  1049.  
  1050. wart: ckwart.$(EXT)
  1051.     $(CC) $(LNKFLAGS) -o wart ckwart.$(EXT) $(LIBS)
  1052.  
  1053. ckcmdb.$(EXT): ckcmdb.c ckcdeb.h ckcsym.h ckclib.h
  1054.  
  1055. ckwart.$(EXT): ckwart.c
  1056.  
  1057. ckudia.$(EXT): ckudia.c ckcker.h ckcdeb.h ckucmd.h ckcasc.h ckcsym.h ckcsig.h \
  1058.         ckcnet.h ckctel.h ckclib.h
  1059.  
  1060. ckuscr.$(EXT): ckuscr.c ckcker.h ckcdeb.h ckcasc.h ckcsym.h ckcsig.h \
  1061.         ckcnet.h ckctel.h ckclib.h
  1062.  
  1063. ckusig.$(EXT): ckusig.c ckcasc.h ckcdeb.h ckcker.h ckcnet.h ckuusr.h \
  1064.         ckcsig.h ckctel.h ckclib.h
  1065.  
  1066. ckupty.$(EXT): ckupty.c ckupty.h ckcdeb.h
  1067.  
  1068. ckuath.$(EXT): ckuath.c ckcdeb.h ckucmd.h ckuath.h ckuat2.h ckctel.h \
  1069.          ckclib.h ckcnet.h
  1070.  
  1071. ck_crp.$(EXT): ck_crp.c ckcdeb.h ckcnet.h ckuath.h ckclib.h
  1072.  
  1073. ck_ssl.$(EXT): ck_ssl.c ckcdeb.h ckucmd.h ckuath.h ckuat2.h ckctel.h \
  1074.          ckclib.h ck_ssl.h
  1075.  
  1076. ###########################################################################
  1077. #
  1078. # Entries to make C-Kermit for specific systems.
  1079. #
  1080. # Put the ones that need short makefiles first.
  1081.  
  1082. #Apollo Aegis 9.x.  Includes TCP/IP support.
  1083. #You can also add processor-dependent optimization switches like -M570.
  1084. aegis:
  1085.     @echo Making C-Kermit $(CKVER) for Apollo Aegis 9.x...
  1086.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  1087.     "CFLAGS= -DBSD4 -DTCPSOCKET -DNOCSETS -DCK_CURSES -O $(KFLAGS)" \
  1088.     "LIBS = -lcurses -ltermcap"
  1089.  
  1090. #Apple Mac II, A/UX pre-3.0
  1091. #Warning, if "send *" doesn't work, try the auxufs makefile entry below.
  1092. aux:
  1093.     @echo Making C-Kermit $(CKVER) for Macintosh A/UX...
  1094.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  1095.     "CFLAGS = -DAUX -DTCPSOCKET $(KFLAGS) -i -O" "LNKFLAGS = -i"
  1096.  
  1097. #Apple Mac II, A/UX pre-3.0, compiled with gcc
  1098. auxgcc:
  1099.     @echo Making C-Kermit $(CKVER) for Macintosh A/UX...
  1100.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  1101.     "CFLAGS = -DAUX -DTCPSOCKET -traditional $(KFLAGS) -i -O" \
  1102.     "LNKFLAGS = " "CC = gcc" "CC2 = gcc"
  1103.  
  1104. #Apple Mac II, A/UX, pre-3.0, but with ufs file volumes, uses <dirent.h>.
  1105. auxufs:
  1106.     @echo Making C-Kermit $(CKVER) for Macintosh A/UX...
  1107.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  1108.     "CFLAGS = -DAUX -DTCPSOCKET -DDIRENT $(KFLAGS) -i -O" "LNKFLAGS = -i"
  1109.  
  1110. #Apple Mac II, A/UX 3.0, compiled with gcc
  1111. aux3gcc:
  1112.     @echo Making C-Kermit $(CKVER) for Macintosh A/UX 3.0...
  1113.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  1114.     "CFLAGS = -DAUX -DHDBUUCP -DLFDEVNO -DTCPSOCKET -DDIRENT $(KFLAGS)" \
  1115.     "LNKFLAGS = -s" "LIBS = $(LIBS)" \
  1116.     "CC=gcc -pipe -traditional" "CC2=gcc -pipe -traditional"
  1117.  
  1118. #Apple Mac II, A/UX 3.0, compiled with gcc, uses curses
  1119. aux3cgcc:
  1120.     @echo Making C-Kermit $(CKVER) for Macintosh A/UX 3.0...
  1121.     $(MAKE) "MAKE=$(MAKE)" aux3gcc KTARGET=$${KTARGET:-$(@)} \
  1122.     "KFLAGS=$(KFLAGS) -DCK_CURSES" "LIBS = -lcurses $(LIBS)"
  1123.  
  1124. # Tenon MachTen, tested on Apple Powerbook with MachTen 2.1.1.D.
  1125. # NOTE: This doesn't do anything about UUCP.  It only works if /usr/spool/uucp
  1126. # has permission of 777, and dialout device is world read/writeable.
  1127. machten:
  1128.     @echo Making C-Kermit $(CKVER) for MachTen...
  1129.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1130.     "CFLAGS= -DBSD43 -DTCPSOCKET -DSIG_V -DNDGPWNAM -DCK_CURSES -O \
  1131.     $(KFLAGS)"  "LIBS=-lcurses -ltermcap"
  1132.  
  1133. #Bell Labs Research UNIX V10
  1134. #Can't add TCP/IP because there is no sockets library.  It would have to
  1135. #be done using streams, but there is no code in C-Kermit for that.
  1136. #Remove -DNOJC if desired (if your system has csh, ksh, or bash).
  1137. bellv10:
  1138.     @echo Making C-Kermit $(CKVER) for Bell Labs Research UNIX V10...
  1139.     $(MAKE) wermit KTARGET=$${KTARGET-$(@)} \
  1140.     "CFLAGS= -DBELLV10 -DBSD4 -DNDIR -DNOJC -DNOSYSIOCTLH -DNOSETREU \
  1141.     -DNOCSETS -MINIDIAL $(KFLAGS)"
  1142.  
  1143. # WARNING: The early BSD entries do not build in version 7.0 with the stock
  1144. # BSD compiler: "Too many defines".  These builds must be accomplished by:
  1145. # copying the /usr/include tree to someplace else, preprocessing there with cc
  1146. # -E -I./include or whatever (plus all the same -D's), renaming the the
  1147. # resulting files back to their original names, bringing them back to the
  1148. # original BSD system, and running the make target there.  This technique was
  1149. # used for 4.2 and 4.3 BSD on a VAX.  If you how to rebuild cpp to have more
  1150. # space for defines, that would be easier...
  1151.  
  1152. #Berkeley Unix 4.1
  1153. bsd41:
  1154.     @echo Making C-Kermit $(CKVER) for 4.1BSD...
  1155.     $(MAKE) wermit KTARGET=$${KTARGET-$(@)} \
  1156.     "CFLAGS= -DBSD41" "LIBS = -ljobs"
  1157.  
  1158. #Berkeley 4.2, 4.3, also Ultrix-32 1.x, 2.x, 3.x, many others
  1159. # Add -O, -s, etc, if they work.
  1160. # If you have a version of BSD but signal() is void rather than int,
  1161. # "make bsd KFLAGS=-DSIG_V".
  1162. bsd42:
  1163.     @echo Making C-Kermit $(CKVER) for 4.2BSD...
  1164.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  1165.     "CFLAGS= -DBSD4 -DTCPSOCKET -DNOREALPATH -DNOTIMEH -DSYSTIMEBH \
  1166.     -DNOIKSD -DNOPUTENV -DNOANSI -DBIGBUFOK $(KFLAGS)" "LIBS=$(LIBS)"
  1167.  
  1168. bsd42c:
  1169.     $(MAKE) bsd42 "KFLAGS=-DCK_CURSES $(KFLAGS)" \
  1170.     "LIBS=-lcurses -ltermcap $(LIBS)"
  1171.  
  1172. bsd:
  1173.     $(MAKE) bsd42 KTARGET=$${KTARGET-$(@)}
  1174.  
  1175. #Berkeley 4.2, 4.3, minimum size (command-line only)
  1176. bsdm:
  1177.     @echo Making C-Kermit $(CKVER) for 4.2BSD...
  1178.     $(MAKE) bsd KTARGET=$${KTARGET-$(@)} \
  1179.     "KFLAGS= -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG -DNOSCRIPT \
  1180.     -DNOCSETS -DNOICP $(KFLAGS)"
  1181.  
  1182. #Berkeley 4.2, 4.3, minimimum interactive (no scripting, no charsets)
  1183. bsdmi:
  1184.     @echo Making C-Kermit $(CKVER) for 4.2BSD...
  1185.     $(MAKE) bsd KTARGET=$${KTARGET-$(@)} \
  1186.     "KFLAGS= -DNODIAL -DNOCSETS -DNOSPL $(KFLAGS)"
  1187.  
  1188. #Berkeley Unix with HoneyDanBer UUCP
  1189. bsdhdb:
  1190.     @echo Making C-Kermit $(CKVER) for 4.2BSD with HDB UUCP...
  1191.     $(MAKE) bsd KTARGET=$${KTARGET-$(@)} \
  1192.     "KFLAGS= -DHDBUUCP $(KFLAGS)"
  1193.  
  1194. #Berkeley Unix 4.3 with acucntrl program
  1195. bsd43:
  1196.     @echo Making C-Kermit $(CKVER) for 4.3BSD...
  1197.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  1198.     "CFLAGS= -DBSD4 -DBSD43 -DTCPSOCKET -DNOREALPATH -DNOTIMEH \
  1199.     -DACUCNTRL -DSYSTIMEBH -DNOIKSD -DNOPUTENV -DNOANSI -DBIGBUFOK \
  1200.     $(KFLAGS)" "LIBS=$(LIBS)"
  1201.  
  1202. #Ditto, with curses support.
  1203. bsd43c:
  1204.     @echo Making C-Kermit $(CKVER) for 4.3BSD + curses...
  1205.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  1206.     "CFLAGS= -DBSD4 -DBSD43 -DTCPSOCKET -DNOREALPATH -DNOTIMEH -DNOIKSD \
  1207.     DCK_CURSES -DACUCNTRL -DSYSTIMEBH -DNOPUTENV -DNOANSI -DBIGBUFOK \
  1208.     $(KFLAGS)" "LIBS=-lcurses -ltermcap $(LIBS)"
  1209.  
  1210. #Berkeley Unix 4.2 or 4.3 with lock directory /usr/spool/uucp/LCK/LCK..ttyxx,
  1211. #but without acucntrl program
  1212. bsdlck:
  1213.     @echo Making C-Kermit $(CKVER) for 4.2BSD, /usr/spool/uucp/LCK/...
  1214.     $(MAKE) bsd KTARGET=$${KTARGET-$(@)} \
  1215.     "KFLAGS= -DLCKDIR $(KFLAGS)"
  1216.  
  1217. #Berkeley UNIX 4.4-Lite, 4.4-Encumbered, Net/2, etc (Post-Reno),
  1218. #with TCP/IP networking.  This includes NetBSD, FreeBSD, etc.
  1219. #NOTE: This is not a pure POSIX configuration.  Using -DPOSIX instead of
  1220. # -DBSD44 prevents any kind of directory-reading (for wildcard expansion),
  1221. #and disallows use of ENOTCONN symbol for detecting broken network
  1222. #connections, and disallows RTS/CTS flow control, and would also require
  1223. #definition of the appropriate UUCP lockfile convention.
  1224. #Do not add -DCK_POSIX_SIG without reading <signal.h> first!  For example,
  1225. #sigsetjmp(), etc, tend to be defined but not implemented.
  1226. bsd44:
  1227.     @echo Making C-Kermit $(CKVER) for 4.4BSD...
  1228.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1229.     "CFLAGS= -DBSD44 -DTCPSOCKET $(KFLAGS) -O"
  1230.  
  1231. #Berkeley UNIX 4.4, as above, but with curses for fullscreen display
  1232. #Please read notes for bsd44 entry just above.
  1233. # NOTE: This one dumps core on the real 4.4BSD system at UC Berkeley
  1234. # (an HP-9000 300), so use the no-curses version for that one.
  1235. bsd44c:
  1236.     @echo Making C-Kermit $(CKVER) for 4.4BSD with curses...
  1237.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1238.     "CFLAGS= -DBSD44 -DCK_CURSES -DTCPSOCKET $(KFLAGS) -O" \
  1239.     "LIBS= -lcurses -ltermcap $(LIBS)"
  1240.  
  1241. #For FreeBSD 1.x.  Not tested recently - might need ncurses.
  1242. freebsd:
  1243.     @echo 'Making C-Kermit $(CKVER) for FreeBSD...'
  1244.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1245.     "CFLAGS= -DBSD44 -DCK_CURSES -DTCPSOCKET -DNOCOTFMC -funsigned-char \
  1246.     $(KFLAGS) -O -pipe" "LIBS= -lcurses -ltermcap -lcrypt $(LIBS)"
  1247.  
  1248. #FreeBSD 2.x with ncurses
  1249. freebsd2:
  1250.     @echo 'Making C-Kermit $(CKVER) for FreeBSD 2.x with ncurses...'
  1251.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1252.     "CFLAGS= -DBSD44 -DCK_NCURSES -DTCPSOCKET -DNOCOTFMC -DUSE_STRERROR \
  1253.     -DTPUTSARGTYPE=int -DTPUTSARG1CONST -DFREEBSD2 -funsigned-char \
  1254.     $(KFLAGS) -O -pipe" \
  1255.     "LIBS= -lncurses -ltermlib -lcrypt $(LIBS)"
  1256.  
  1257. #For FreeBSD 2.x -- Uses curses rather than ncurses
  1258. freebsd2c:
  1259.     @echo 'Making C-Kermit $(CKVER) for FreeBSD 2.x with curses...'
  1260.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1261.     "CFLAGS= -DBSD44 -DCK_CURSES -DTCPSOCKET -DNOCOTFMC -DUSE_STRERROR \
  1262.     -DTPUTSARGTYPE=int -DTPUTSARG1CONST -DFREEBSD2 \
  1263.     -funsigned-char $(KFLAGS) -O -pipe" \
  1264.     "LIBS= -lcurses -ltermlib -lcrypt $(LIBS)"
  1265.  
  1266. #FreeBSD 3.x with ncurses and uu_lock()
  1267. #(Note: uu_lock() goes back to 2.2.2, but not necessarily 2.0)
  1268. freebsd3:
  1269.     @echo 'Making C-Kermit $(CKVER) for FreeBSD 3.x with ncurses...'
  1270.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1271.     "CFLAGS= -DBSD44 -DCK_NCURSES -DTCPSOCKET -DNOCOTFMC -funsigned-char \
  1272.     -DTPUTSARGTYPE=int -DUSE_STRERROR -DFREEBSD3 -DUSE_UU_LOCK \
  1273.     $(KFLAGS) -O -pipe" \
  1274.     "LIBS= -lncurses -lcrypt -lutil $(LIBS)"
  1275.  
  1276. #As above but with curses rather than ncurses.
  1277. freebsd3c:
  1278.     @echo 'Making C-Kermit $(CKVER) for FreeBSD 3.x with curses...'
  1279.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1280.     "CFLAGS= -DBSD44 -DCK_CURSES -DTCPSOCKET -DNOCOTFMC -DUSE_UU_LOCK \
  1281.     -DTPUTSARGTYPE=int -DUSE_STRERROR -DFREEBSD3 $(KFLAGS) \
  1282.     -funsigned-char -pipe -O" \
  1283.     "LIBS= -lcurses -lcrypt -lutil $(LIBS)"
  1284.  
  1285. #NetBSD - all versions - with curses, not ncurses.
  1286. netbsd:
  1287.     @echo Making C-Kermit $(CKVER) for NetBSD with curses...
  1288.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1289.     "CFLAGS= -DBSD44 -DCK_CURSES -DTCPSOCKET -DUSE_STRERROR -DTPUTSISVOID \
  1290.     -DCK_DTRCD -DCK_DTRCTS -DTPUTSARGTYPE=int $(KFLAGS) -O" \
  1291.     "LIBS= -lcurses -lcrypt $(LIBS)"
  1292.  
  1293. #NetBSD with ncurses rather than curses
  1294. netbsdn:
  1295.     @echo Making C-Kermit $(CKVER) for NetBSD with ncurses...
  1296.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1297.     "CFLAGS= -DBSD44 -DCK_CURSES -DTCPSOCKET -DNOCOTFMC \
  1298.     -DCK_DTRCD -DCK_DTRCTS \
  1299.     -DUSE_STRERROR -DTPUTSISVOID -DTPUTSARGTYPE=int $(KFLAGS) -O" \
  1300.     "LIBS= -L/usr/pkg/lib -lncurses -lcrypt"
  1301.  
  1302. #NetBSD with no IKSD
  1303. netbsdnoiksd:
  1304.     @echo Making C-Kermit $(CKVER) for NetBSD with curses...
  1305.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1306.     "CFLAGS= -DBSD44 -DCK_CURSES -DTCPSOCKET -DUSE_STRERROR -DTPUTSISVOID \
  1307.     -DCK_DTRCD -DCK_DTRCTS \
  1308.     -DNOIKSD -DTPUTSARGTYPE=int $(KFLAGS) -O" \
  1309.     "LIBS= -lcurses $(LIBS)"
  1310.  
  1311. #OpenBSD - Uses ncurses as its curses so use -ltermlib, not -ltermcap
  1312. #Add -DMAINTYPE=int if you get complaints about main: return type is not int.
  1313. openbsd:
  1314.     @echo Making C-Kermit $(CKVER) for OpenBSD...
  1315.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1316.     "CFLAGS= -DBSD44 -DCK_CURSES -DCK_NEWTERM -DTCPSOCKET -DOPENBSD \
  1317.     -DNDSYSERRLIST $(KFLAGS) -O" "LIBS= -lcurses -ltermlib"
  1318.  
  1319. # make 386bsd 0.0new, posix
  1320. # for  386bsd 0.1.24, change /usr/include/termios.h to #define NCCS if
  1321. #  _POSIX_SOURCE is #defined. (source: lewine, posix prgmrs guide, o`reilly)
  1322. #NOTE: Lock directory is /var/spool/lock.  Formerly, it was /var/spool/uucp,
  1323. #but reportedly <wjones@halcyon.com> that was due to a typo in 'man tip'.
  1324. 386bsd:
  1325.     @echo 'Making C-Kermit $(CKVER) for jolix 386BSD 0.0new and 0.1.24...'
  1326.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1327.     "CFLAGS= -DPOSIX -DSETREUID -DPIDSTRING -DUSLEEP \
  1328.     -D_386BSD -DCK_CURSES -DTCPSOCKET \
  1329.     -DLOCK_DIR=\\\"/var/spool/lock\\\" \
  1330.     $(KFLAGS) -O" "LNKFLAGS = -s" "LIBS = -lcurses -ltermcap"
  1331.  
  1332. #Mac OS X 1.0 (Rhapsody) -- TCP/IP but no curses.
  1333. macosx10:
  1334.     @echo Making C-Kermit $(CKVER) for `uname -s`...
  1335.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1336.     "CFLAGS= -DMACOSX10 -DTCPSOCKET -O $(KFLAGS)"
  1337.  
  1338. #Mac OS X 1.0 (Rhapsody) -- TCP/IP and curses.
  1339. #Note: curses must be obtained separately.  See next entry for ncurses.
  1340. #Add "LIBS = -lcurses -ltermcap" if necessary (but reportedly it is not).
  1341. macosx10c:
  1342.     @echo Making C-Kermit $(CKVER) for `uname -s` + curses...
  1343.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1344.     "CFLAGS= -DMACOSX10 -DCK_CURSES -DTPUTSFNTYPE=void -DTPUTSISVOID \
  1345.     -DTCPSOCKET -O $(KFLAGS)"
  1346.  
  1347. #Mac OS X 1.0 (Rhapsody) -- TCP/IP and ncurses.
  1348. #Note: ncurses must be obtained separately.
  1349. #In the event of trouble with this one try the next one.
  1350. macosx10nc:
  1351.     @echo Making C-Kermit $(CKVER) for `uname -s` + ncurses...
  1352.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1353.     "CFLAGS= -DMACOSX10 -DCK_NCURSES -DTCPSOCKET -O $(KFLAGS) " \
  1354.     "LIBS= -lncurses $(LIBS)"
  1355.  
  1356. #The problem here is that if curses.h also exists, it conflicts with
  1357. #ncurses.h and and we have fatal errors.  If this happens to you, then
  1358. #try this entry.
  1359. macosx10ncx:
  1360.     @echo Making C-Kermit $(CKVER) for `uname -s` + ncurses...
  1361.     @rm -f ./curses.h; touch ./curses.h
  1362.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1363.     "CFLAGS= -DMACOSX10 -DCK_NCURSES -DTCPSOCKET -I. -O $(KFLAGS) " \
  1364.     "LIBS= -lncurses $(LIBS)"
  1365.     @rm -f ./curses.h
  1366.  
  1367. #Acorn RISCiX, based on ...
  1368. #Berkeley Unix 4.2 or 4.3 with lock directory /usr/spool/uucp/LCK/LCK..ttyxx,
  1369. #but without acucntrl program
  1370. riscix:
  1371.     @echo Making C-Kermit $(CKVER) for RISCiX, /usr/spool/uucp/LCK..ttyxx
  1372.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  1373.         "CFLAGS= -DBSD42 -DBSD4 -DRISCIX -DNOCSETS \
  1374.         -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DDIRENT -DCK_CURSES \
  1375.         -DMAXSP=9024 -DMAXRD=9024 -DSBSIZ=9050 -DRBSIZ=9050 \
  1376.         -DFTTY=\\\"/dev/serial\\\" -DNOCSETS -DNOCYRIL \
  1377.         -DNOANSI -w -O2 -fomit-frame-pointer" \
  1378.         "LIBS= -lcurses -ltermcap " \
  1379.         "CC= /usr/ucb/cc" \
  1380.         "CC2= /usr/ucb/cc"
  1381.  
  1382. #Acorn RISCiX, as above, but using gcc
  1383. riscix-gcc:
  1384.     @echo Making C-Kermit $(CKVER) for RISCiX, /usr/spool/uucp/LCK..ttyxx
  1385.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  1386.         "CFLAGS= -DBSD42 -DBSD4 -DRISCIX -DNOCSETS \
  1387.         -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DDIRENT -DCK_CURSES \
  1388.         -DMAXSP=9024 -DMAXRD=9024 -DSBSIZ=9050 -DRBSIZ=9050 \
  1389.         -DFTTY=\\\"/dev/serial\\\" -DNOCSETS -DNOCYRIL \
  1390.         -DNOANSI -w -O2 -fomit-frame-pointer" \
  1391.         "LIBS= -lcurses -ltermcap " \
  1392.         "CC= gcc -mbsd" \
  1393.         "CC2= gcc -mbsd"
  1394.  
  1395. #Convergent CTIX 6.4.1
  1396. ctix:
  1397.     @echo 'Making C-Kermit $(CKVER) for Convergent CTIX 6.4.1'
  1398.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  1399.     "CFLAGS= -DSVR3 -DDIRENT -DTCPSOCKET -DHDBUUCP -DCK_CURSES \
  1400.     -DNONAWS $(KFLAGS) -XO" "LNKFLAGS=-s" "LIBS=-lsocket -lcurses -lc_s"
  1401.     mcs -d wermit
  1402.  
  1403. # The following makefile entry should work for any Harris Night Hawk system
  1404. # (either 88k or 68k based) running release 6.1 or later of the CX/UX
  1405. # operating system. This is a POSIX and ANSI-C compliant system which also
  1406. # supports BSD networking. (Earlier CX/UX releases will probably work with
  1407. # sys5r3, but this has not been verified).
  1408. #
  1409. cx_ux:
  1410.     @echo Making C-Kermit $(CKVER) for Harris Night Hawk CX/UX 6.1 or later
  1411.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  1412.     "CFLAGS=-DPOSIX -DTCPSOCKET -DHDBUUCP -DPID_T=pid_t -DWAIT_T=int \
  1413.     -Dd_ino=d_fileno -DUID_T=uid_t -DGID_T=gid_t $(KFLAGS) -Xa \
  1414.     -O3 -g" "LNKFLAGS=-O3"
  1415.  
  1416. #Intergraph Clipper, CLIX, job control, HDB UUCP.
  1417. clix:
  1418.     @echo 'Making C-Kermit $(CKVER) for Intergraph CLIX...'
  1419.     $(MAKE) wermit "CC=acc" "CC2=acc" KTARGET=$${KTARGET:-$(@)} \
  1420.     "CFLAGS= -w -DSVR3 -DCLIX -DDIRENT -DHDBUUCP -DNOSYSLOG -DUSE_MEMCPY \
  1421.     -DNOGETUSERSHELL -DNOREALPATH $(KFLAGS) -O" \
  1422.     "LNKFLAGS=" "LIBS= -lbsd"
  1423.  
  1424. #As above + TCP/IP...
  1425. clixnet:
  1426.     @echo 'Making networked C-Kermit $(CKVER) for Intergraph CLIX...'
  1427.     $(MAKE) wermit "CC=acc" "CC2=acc" KTARGET=$${KTARGET:-$(@)} \
  1428.     "CFLAGS= -w -DSVR3 -DCLIX -DDIRENT -DHDBUUCP -DNOSYSLOG -DUSE_MEMCPY \
  1429.     -DTCPSOCKET -DNOGETUSERSHELL -DNOREALPATH $(KFLAGS) -O" \
  1430.     "LNKFLAGS=" "LIBS= -lbsd"
  1431.  
  1432. #Mark Williams Coherent 286 or 386 on IBM PC family.
  1433. #There is a 64K limit on program size, so this is a command-line only version.
  1434. coherent:
  1435.     $(MAKE) "CFLAGS = -O -DCOHERENT -DNOANSI -DNOICP -DNOSETKEY \
  1436.     -DNOCSETS -DNOHELP -DNODIAL -DNOSCRIPT -DNODEBUG -DNOTLOG -DNOXMIT \
  1437.     -DNOMSEND -DNOFRILLS -DNOSYSIOCTLH -DSELECT_H $(KFLAGS) -VSUVAR" \
  1438.     KTARGET=$${KTARGET:-$(@)} wermit
  1439.  
  1440. #Mark Williams Coherent 386 on IBM PC family.
  1441. #This will make a "minimum interactive" version - no scripts,
  1442. #no character sets, no help, no dial, no debug/transaction logging, no
  1443. #transmit, msend, mail, type, etc.
  1444. coherentmi:
  1445.     $(MAKE) "CFLAGS = -O -DCOHERENT -DNOANSI -DNOSETKEY \
  1446.     -DNOSHOW -DNOCSETS -DNOHELP -DNODIAL -DNOSCRIPT -DNODEBUG -DNOTLOG \
  1447.     -DNOXMIT -DNOMSEND -DNOFRILLS -DNOSYSIOCTLH -DNOSERVER -DNOUUCP \
  1448.     -DNOSPL -DNOPUSH -DNOMDMHUP -DNOJC -DNOFDZERO -DNOESCSEQ \
  1449.     -DNOCMDL $(KFLAGS) -VSUVAR -DSELECT_H" KTARGET=$${KTARGET:-$(@)} \
  1450.     wermit
  1451.  
  1452. #Mark Williams Coherent 386 on IBM PC/AT family.
  1453. coherentmax:
  1454.     $(MAKE) "CFLAGS = -O -DCOHERENT -DNOANSI -DSELECT_H \
  1455.     -DNOSYSIOCTLH $(KFLAGS) -VSUVAR" "LNKFLAGS = -O -s" \
  1456.     KTARGET=$${KTARGET:-$(@)} wermit
  1457.  
  1458. #Mark Williams Coherent 386 4.2.  Includes curses but not TCP/IP.
  1459. #Requires updates to the 4.2.10 compiler; the regular compiler fails to
  1460. #to handle "complex expressions".
  1461. coherent42:
  1462.     $(MAKE) "CFLAGS = -T500000 -DCOHERENT -DNOANSI -DSELECT -DDCLGETCWD \
  1463.     -DNOSYSLOG -DDIRENT -DCK_CURSES -DCK_NEWTERM -DCK_WREFRESH -VSUVAR \
  1464.     -DNOSYSIOCTLH -DNOINITGROUPS -DNOSYMLINK -DSELECT_H -O $(KFLAGS)" \
  1465.     "LNKFLAGS = -O -s" KTARGET=$${KTARGET:-$(@)} \
  1466.     "LIBS  = -lsocket -lcurses" wermit
  1467.  
  1468. #DEC Ultrix 2.x
  1469. # Add -O, -DDYNAMIC, -s, etc, if they work.
  1470. ultrix2x:
  1471.     @echo Making C-Kermit $(CKVER) for Ultrix 2.x ...
  1472.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  1473.     "CFLAGS= -DBSD4 -DTCPSOCKET -DDU2 -DNOGETUSERSHELL $(KFLAGS)"
  1474.  
  1475. du2:
  1476.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET-$(@)} ultrix2x
  1477.  
  1478. #DEC Ultrix 3.1 (and probably also 3.0)
  1479. ultrix3x:
  1480.     @echo Making C-Kermit $(CKVER) for Ultrix 3.x...
  1481.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  1482.     "CFLAGS= -DBSD4 -DTCPSOCKET -DDIRENT -DSIG_V -DNOGETUSERSHELL \
  1483.     $(KFLAGS) -O" "LNKFLAGS = -s"
  1484.  
  1485. du3:
  1486.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET-$(@)} ultrix3x
  1487.  
  1488.  
  1489. #DEC Ultrix 4.0 or 4.1 on DECstation, VAXstation, VAX, etc.
  1490. ultrix40:
  1491.     @echo Making C-Kermit $(CKVER) for Ultrix 4.0 or 4.1...
  1492.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  1493.     "CFLAGS= -DBSD4 -DTCPSOCKET -DSIG_V -DDU4 -DNOGETUSERSHELL \
  1494.     $(KFLAGS) -Olimit 1450" "LNKFLAGS = -s"
  1495.  
  1496. #DEC Ultrix 4.2-4.5 on DECstation, DECsystem, VAXstation, VAX, etc.
  1497. #Like ultrix40, except now C compiler supports -O2 optimization.
  1498. ultrix42:
  1499.     @echo Making C-Kermit $(CKVER) for Ultrix 4.2 or later...
  1500.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  1501.     "CFLAGS= -DBSD4 -DTCPSOCKET -DSIG_V -DNOGETUSERSHELL $(KFLAGS) \
  1502.     -O2 -Olimit 1750" "LNKFLAGS = -s"
  1503.  
  1504. du42:
  1505.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET-$(@)} ultrix42
  1506.  
  1507. #DEC Ultrix 4.2-4.5 on DECstation, DECsystem, VAXstation, VAX, etc.
  1508. #Like du42, but with curses support added, optimization and a couple features
  1509. #removed because in C-Kermit 7.0 we get bizarre relocation errors otherwise.
  1510. ultrix42c:
  1511.     @echo Making C-Kermit $(CKVER) for Ultrix 4.2 or later...
  1512.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  1513.     "CFLAGS= -DBSD4 -DTCPSOCKET -DSIG_V -DNOGETUSERSHELL \
  1514.     -DCK_CURSES -DNODEBUG -DNOIKSD $(KFLAGS)" "LNKFLAGS = -s" \
  1515.     "LIBS= -lcurses -ltermcap"
  1516.  
  1517. ultrix43:
  1518.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=-DULTRIX43 $(KFLAGS)" \
  1519.     KTARGET=$${KTARGET-$(@)} ultrix42c
  1520.  
  1521. ultrix43notcp:
  1522.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=-DULTRIX43 -DNONET $(KFLAGS)" \
  1523.     KTARGET=$${KTARGET-$(@)} ultrix42c
  1524.  
  1525. ultrix44:
  1526.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=-DULTRIX44 $(KFLAGS)" \
  1527.     KTARGET=$${KTARGET-$(@)} ultrix42c
  1528.  
  1529. ultrix45:
  1530.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=-DULTRIX45 $(KFLAGS)" \
  1531.     KTARGET=$${KTARGET-$(@)} ultrix42c
  1532.  
  1533. du42c:
  1534.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET-$(@)} ultrix42c
  1535.  
  1536. #DEC Ultrix 4.3A or later on DECsystem and DECstation 5000/50, /150 or /260
  1537. #with MIPS R4x00 processor.  The "-mips3" switch generates R4000-specific
  1538. #code, which is faster and more compact, but *won't* run on earlier
  1539. #DECsystems and DECstations.
  1540. ultrix43-mips3:
  1541.     @echo Making C-Kermit $(CKVER) for Ultrix 4.3A or later, R4000 cpu...
  1542.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  1543.     "CFLAGS= -DBSD4 -DTCPSOCKET -DSIG_V -DNOGETUSERSHELL \
  1544.     $(KFLAGS) -O2 -Olimit 1750 -mips3" "LNKFLAGS = -s -mips3"
  1545.  
  1546. du43-mips3:
  1547.     $(MAKE) "MAKE=$(MAKE)" ultrix43-mips3
  1548.  
  1549. #DEC Ultrix 4.3A or later on MIPS R4x000 based systems.
  1550. #Like ultrix43-mips3 but with curses support added
  1551. ultrix43c-mips3:
  1552.     @echo Making C-Kermit $(CKVER) for Ultrix 4.3A or later, R4000 cpu...
  1553.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  1554.     "CFLAGS= -DBSD4 -DTCPSOCKET -DSIG_V -DNOGETUSERSHELL -DCK_CURSES \
  1555.     $(KFLAGS) -O2 -Olimit 3000 -mips3" "LNKFLAGS = -s -mips3" \
  1556.     "LIBS= -lcurses -ltermcap"
  1557.  
  1558. du43c-mips3:
  1559.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET-$(@)} ultrix43c-mips3
  1560.  
  1561. #DEC Ultrix 4.4 on DECstation 5000/50 or /150 with R4000 MIPS processor,
  1562. #or 5000/260 with R4400.  The "-mips3" switch generates R4000-specific code,
  1563. #which is faster and more compact but *won't* run on earlier DECstations.
  1564. ultrix44-mips3:
  1565.     @echo Making C-Kermit $(CKVER) for Ultrix 4.4, R4000 cpu ...
  1566.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  1567.     "CFLAGS= -DBSD4 -DTCPSOCKET -DSIG_V -DNOGETUSERSHELL \
  1568.     $(KFLAGS) -O2 -Olimit 1450 -mips3" "LNKFLAGS = -s -mips3"
  1569.  
  1570. du44-mips3:
  1571.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET-$(@)} ultrix44c-mips3
  1572.  
  1573. #DEC Ultrix 4.2 on DECstation, VAXstation, VAX, etc, System V R4 environment
  1574. ultrix42s5r4:
  1575.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4 on Ultrix...'
  1576.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  1577.     "CFLAGS = -O2 -Olimit 1500 -DSVR4 -DDIRENT -DHDBUUCP -DNOGETUSERSHELL \
  1578.     -DTCPSOCKET $(KFLAGS)" "LNKFLAGS = -s"
  1579.  
  1580. #OSF/1
  1581. osf:
  1582.     $(MAKE) xermit CC=$(CC) CC2=$(CC2) KTARGET=$${KTARGET:-$(@)} \
  1583.     "CFLAGS= -DBSD4 -DOSF -D_BSD -DTCPSOCKET -DCK_ANSIC -DSIG_V \
  1584.     -DCK_CURSES -DCK_RTSCTS -DFNFLOAT $(KFLAGS)" \
  1585.     "LNKFLAGS = -s" "LIBS = -lbsd -lcurses -ltermcap -lm"
  1586.  
  1587. #DEC OSF/1 V1.0-1.3 on DECstation, VAX, Alpha, or PC.
  1588. dec-osf:
  1589.     $(MAKE) xermit CC=$(CC) CC2=$(CC2) KTARGET=$${KTARGET:-$(@)} \
  1590.     "CFLAGS= -DBSD4 -DOSF -DOSF13 -D_BSD -DTCPSOCKET -DCK_ANSIC -DSIG_V \
  1591.     -DNOREALPATH -DNOIKSD -DCK_CURSES -DCK_RTSCTS -DFNFLOAT -DNODEBUG \
  1592.     -DNOUNICODE $(KFLAGS)" \
  1593.     "LNKFLAGS = -non_shared" "LIBS = -lbsd -lcurses -ltermcap -lm"
  1594.  
  1595. # This one causes "relocation out-of-range" errors in the linker.
  1596. old-dec-osf:
  1597.     @echo Making C-Kermit $(CKVER) for DEC OSF/1 V1.x...
  1598.     @echo If you are building for DEC OSF/1 2.0, please use dec-osf20.
  1599.     @echo Remove or adjust -O2 and/or -Olimit if they cause trouble.
  1600.     $(MAKE) osf KTARGET=$${KTARGET:-$(@)} \
  1601.     "KFLAGS= -O2 -Olimit 2400 $(KFLAGS)"
  1602.  
  1603. #DEC OSF/1 2.0 on Alpha and probably nowhere else.
  1604. #The only difference from OSF/1 is that optimization is omitted.
  1605. #The optimized version gets strange runtime errors, like the PAUSE command
  1606. #not working.  Add "-unsigned" to make all chars unsigned.
  1607. dec-osf20:
  1608.     @echo Making C-Kermit $(CKVER) for DEC OSF/1 V2.0...
  1609.     @echo Optimization omitted because it causes runtime errors.
  1610.     @echo See comments in makefile.
  1611.     $(MAKE) osf KTARGET=$${KTARGET:-$(@)} "KFLAGS= -DOSF20 $(KFLAGS)"
  1612.  
  1613. dec-osf30:
  1614.     @echo Making C-Kermit $(CKVER) for DEC OSF/1 V3.0...
  1615.     $(MAKE) osf KTARGET=$${KTARGET:-$(@)} \
  1616.     "KFLAGS= -DOSF30 -O2 -Olimit 2400 $(KFLAGS)"
  1617.  
  1618. #Digital UNIX 3.2
  1619. # Must compile ckuus[6x].c separately without optimization otherwise
  1620. # the optimizer dumps core - keep CFLAGS here in sync with those from osf.
  1621. du32:
  1622.     @echo Making C-Kermit $(CKVER) for Digital UNIX 3.2...
  1623.     $(MAKE) ckuus6.$(EXT) \
  1624.     "CFLAGS= -DBSD4 -DOSF -D_BSD -DTCPSOCKET -DCK_ANSIC -DSIG_V \
  1625.     -DCK_CURSES -DCK_RTSCTS -DFNFLOAT $(KFLAGS)"
  1626.     $(MAKE) ckuusx.$(EXT) \
  1627.     "CFLAGS= -DBSD4 -DOSF -D_BSD -DTCPSOCKET -DCK_ANSIC -DSIG_V \
  1628.     -DCK_CURSES -DCK_RTSCTS -DFNFLOAT $(KFLAGS)"
  1629.     $(MAKE) osf "KFLAGS= -DOSF32 -DHDBUUCP -O2 -Olimit 3000 $(KFLAGS)"
  1630.  
  1631. dec-osf32:
  1632.     $(MAKE) "MAKE=$(MAKE)" du32 KTARGET=$${KTARGET:-$(@)}
  1633.  
  1634. du40:
  1635.     @echo Making C-Kermit $(CKVER) for Digital UNIX 4.0...
  1636.     $(MAKE) osf KTARGET=$${KTARGET:-$(@)} \
  1637.     "KFLAGS= -DOSF40 -DHDBUUCP -DFNFLOAT \
  1638.     -unsigned -std1 -O3 -Olimit 2400 $(KFLAGS)" "LIBS=-lm"
  1639.  
  1640. du40gcc:
  1641.     @echo Making C-Kermit $(CKVER) for Digital UNIX 4.0 with gcc ...
  1642.     $(MAKE) osf CC=gcc CC2=gcc KTARGET=$${KTARGET:-$(@)} \
  1643.     "KFLAGS= -DOSF40 -DHDBUUCP $(KFLAGS)"
  1644.  
  1645. #Tru64 Unix 4.0E
  1646. tru64-40e:
  1647.     @echo Making C-Kermit $(CKVER) for Tru64 UNIX 4.0E...
  1648.     $(MAKE) osf KTARGET=$${KTARGET:-$(@)} \
  1649.     "KFLAGS= -DOSF40 -DTRU64 -DHDBUUCP -DFNFLOAT -DNOCOTFMC \
  1650.     -unsigned -std1 -O3 -Olimit 2400 $(KFLAGS)" "LIBS=-lm"
  1651.  
  1652. tru64-40f:
  1653.     @echo Making C-Kermit $(CKVER) for Tru64 UNIX 4.0F...
  1654.     $(MAKE) osf KTARGET=$${KTARGET:-$(@)} \
  1655.     "KFLAGS= -DOSF40 -DTRU64 -DHDBUUCP -DFNFLOAT -DNOCOTFMC \
  1656.     -unsigned -std1 -O3 -Olimit 2400 $(KFLAGS)" "LIBS=-lm"
  1657.  
  1658. tru64-40g:
  1659.     @echo Making C-Kermit $(CKVER) for Tru64 UNIX 4.0G...
  1660.     $(MAKE) osf KTARGET=$${KTARGET:-$(@)} \
  1661.     "KFLAGS= -DOSF40 -DOSF40G -DTRU64 -DHDBUUCP -DFNFLOAT -DNOCOTFMC \
  1662.     -unsigned -std1 -O3 -Olimit 2400 $(KFLAGS)" "LIBS=-lm"
  1663.  
  1664. tru64-50:
  1665.     @echo Making C-Kermit $(CKVER) for Tru64 UNIX 5.0...
  1666.     $(MAKE) osf KTARGET=$${KTARGET:-$(@)} \
  1667.     "KFLAGS= -DTRU64 -DOSF50 -DHDBUUCP \
  1668.     -unsigned -std1 -O3 -Olimit 2400 $(KFLAGS)"
  1669.  
  1670. du50:
  1671.     $(MAKE) tru64-50 KTARGET=$${KTARGET:-$(@)}
  1672.  
  1673. du40-ridiculous-checking:
  1674.     @echo Making C-Kermit $(CKVER) for Digital UNIX 4.0.
  1675.     @echo Checking everything - assumes DECC...
  1676.     $(MAKE) osf KTARGET=$${KTARGET:-$(@)} \
  1677.     "KFLAGS= -DOSF40 -DHDBUUCP -w0 -warnprotos -check -portable \
  1678.     -unsigned -std1 -O3 -Olimit 1760 $(KFLAGS)"
  1679.  
  1680. #Sequent DYNIX/ptx 1.2.1
  1681. dynixptx12:
  1682.     @echo Making C-Kermit $(CKVER) for Sequent DYNIX/ptx 1.2.1...
  1683.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  1684.     "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -DPTX -DNOGETUSERSHELL \
  1685.     -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t $(KFLAGS) -i -O" \
  1686.     "LNKFLAGS = -i"
  1687.  
  1688. #Sequent DYNIX/ptx 1.3 or 1.4
  1689. dynixptx13:
  1690.     @echo Making C-Kermit $(CKVER) for Sequent DYNIX/ptx 1.3 TCP/IP...
  1691.     $(MAKE) xermit "CFLAGS= -O KTARGET=$${KTARGET:-$(@)} \
  1692.     -DSVR3 -DDIRENT -DHDBUUCP -DPTX -DCK_POLL -DNOGETUSERSHELL \
  1693.     -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t -DTCPSOCKET $(KFLAGS) -i" \
  1694.     "LNKFLAGS = -i" "LIBS = -lsocket -linet -lnsl"
  1695.  
  1696. #Sequent DYNIX/ptx 2.0, ANSI C compilation
  1697. #Should work on any hardware platform when DYNIX/ptx runs, including
  1698. #386, 486, Pentium.
  1699. dynixptx20:
  1700.     @echo 'Making C-Kermit $(CKVER) for POSIX, Sequent DYNIX/ptx 2.0...'
  1701.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1702.     "CFLAGS= -DPOSIX -DHDBUUCP -DTCPSOCKET \
  1703.     -DWAIT_T=int -DPTX -DNOGETUSERSHELL $(KFLAGS) -O" \
  1704.     "LIBS = -lsocket -linet -lnsl"
  1705.  
  1706. #Sequent DYNIX/ptx 2.0, ANSI C compilation, with curses
  1707. dynixptx20c:
  1708.     @echo 'Making C-Kermit $(CKVER) for POSIX, Sequent DYNIX/ptx 2.0...'
  1709.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1710.     "CFLAGS= -DPOSIX -DHDBUUCP -DTCPSOCKET -DWAIT_T=int -DPTX -DCK_CURSES \
  1711.     -DCK_NEWTERM -DNOGETUSERSHELL $(KFLAGS) -O" \
  1712.     "LIBS = -lsocket -linet -lnsl -lcurses -ltermcap"
  1713.  
  1714. #Sequent DYNIX/ptx 2.1.6, 80486, ANSI C compilation, with curses:
  1715. # -Xa -- use ANSI compiler.
  1716. # -Wc,-pw -- suppress portability warnings.
  1717. # -Wc,-i386 -- 80386 cpu.
  1718. # -Wc,-i486 -- 80486 cpu.
  1719. # -Wc,-P5 -- Pentium (default).
  1720. # -Wc,-O3 -- highest optimization.
  1721. # -Wa,-N17061 -- increase symbol table from default of 15013 for ckcuni.c.
  1722. # Early versions of DYNIX/ptx 2.1.x may need -DCK_POLL instead of -DSELECT.
  1723. # Add "$&" after the colon in the "xermit" target for parallel makes.
  1724. dynixptx216c:
  1725.     @echo 'Making C-Kermit $(CKVER) for POSIX, Sequent DYNIX/ptx 2.1.6'
  1726.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1727.     "CFLAGS= -DPOSIX -DHDBUUCP -DDYNAMIC -DTCPSOCKET \
  1728.     -DSELECT -DCK_REDIR -DCK_NAWS -DCK_WREFRESH -DSW_ACC_ID \
  1729.     -DTCP_NODELAY -DTRMBUFL=2048 -DBIGBUFOK -DHADDRLIST \
  1730.     -DPTX  -DCK_CURSES -DCK_NEWTERM -DNOGETUSERSHELL -DNOREALPATH \
  1731.     $(KFLAGS) -Xa -Wc,-pw -Wc,-i486 -Wc,-O3 -Wa,-N17061" \
  1732.     "LIBS = -lXbsd -lseq -lsocket -linet -lnsl -lmalloc -lm -lcurses" \
  1733.     "LNKFLAGS = -s"
  1734.  
  1735. #Sequent DYNIX/ptx 2.1.6, gcc 2.7.2.2, with curses:
  1736. dynixptx216cgcc:
  1737.     @echo 'Making C-Kermit $(CKVER) for POSIX, Sequent DYNIX/ptx 2.1.6 gcc'
  1738.     $(MAKE) xermit "CC = gcc" "CC2 = gcc" KTARGET=$${KTARGET:-$(@)} \
  1739.     "CFLAGS= -DPOSIX -DHDBUUCP -DDYNAMIC -DTCPSOCKET \
  1740.     -DSELECT -DCK_REDIR -DCK_NAWS -DCK_WREFRESH -DSW_ACC_ID \
  1741.     -DTCP_NODELAY -DTRMBUFL=2048 -DBIGBUFOK -DHADDRLIST \
  1742.     -DPTX  -DCK_CURSES -DCK_NEWTERM -DNOGETUSERSHELL -DNOREALPATH \
  1743.     $(KFLAGS) -O3 -pipe -funsigned-char" \
  1744.     "LIBS = -lXbsd -lseq -lsocket -linet -lnsl -lmalloc -lm -lcurses" \
  1745.     "LNKFLAGS = -s"
  1746.  
  1747. #Sequent DYNIX/ptx 4.0, ANSI C compilation, with curses
  1748. dynixptx41c:
  1749.     @echo 'Making C-Kermit $(CKVER) for POSIX, Sequent DYNIX/ptx 4.0...'
  1750.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1751.     "CFLAGS= -DPOSIX -DHDBUUCP -DTCPSOCKET \
  1752.     -DWAIT_T=int -DPTX -DPTX4 -DCK_CURSES -DCK_NEWTERM \
  1753.     -DNOGETUSERSHELL $(KFLAGS) -O" \
  1754.     "LIBS = -lsocket -lnsl -lcurses -ltermcap"
  1755.  
  1756. #Sequent DYNIX/ptx 4.4, ANSI C compilation, with curses
  1757. dynixptx44:
  1758.     @echo 'Making C-Kermit $(CKVER) for POSIX, Sequent DYNIX/ptx 4.4...'
  1759.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1760.     "CFLAGS= -DPTX -DPTX4 -DPOSIX -DHDBUUCP -DTCPSOCKET -DWAIT_T=int \
  1761.     -DCK_CURSES -DCK_NEWTERM -DBIGBUFOK -DSELECT -DNOGETUSERSHELL \
  1762.     $(KFLAGS) -O" "LIBS = -lsocket -lnsl -lcurses -ltermcap"
  1763.  
  1764. #Sequent DYNIX 3.0.x
  1765. dynix3:
  1766.     @echo Making C-Kermit $(CKVER) for Sequent DYNIX 3.0.x...
  1767.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1768.     "CFLAGS= -DBSD43 -DACUCNTRL -DTCPSOCKET -O \
  1769.     -DPWUID_T=int -DGID_T=int $(KFLAGS)"
  1770.  
  1771. #Sequent DYNIX 3.0.x, no ACUCNTRL
  1772. dynix3noacu:
  1773.     @echo Making C-Kermit $(CKVER) for Sequent DYNIX 3.0.x...
  1774.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1775.     "CFLAGS= -DBSD43 -DLCKDIR -DTCPSOCKET -O \
  1776.     -DUID_T=int -DGID_T=int $(KFLAGS)"
  1777.  
  1778. #Sequent DYNIX 3.1.x
  1779. dynix31:
  1780.     @echo Making C-Kermit $(CKVER) for Sequent DYNIX 3.1.x...
  1781.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1782.     "CFLAGS= -O -DDCLPOPEN -DLCKDIR -DBSD4 -DTCPSOCKET $(KFLAGS)"
  1783.  
  1784. #Sequent DYNIX 3.1.2, as above but with curses, to be compiled by gcc 2.3.3.
  1785. dynix31c:
  1786.     @echo 'Making C-Kermit $(CKVER) for Sequent DYNIX 3.1.2, curses...'
  1787.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1788.     "CFLAGS= -O2 -DDCLPOPEN -DACUCNTRL \
  1789.     -DBSD43 -DTCPSOCKET -DCK_CURSES -DUID_T=int \
  1790.     $(KFLAGS)" "LIBS= -lcurses -ltermcap"
  1791.  
  1792. #Convex C1 with Berkeley Unix
  1793. convex:
  1794.     @echo Making C-Kermit $(CKVER) for Convex C1 / BSD...
  1795.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  1796.     "CFLAGS= -DBSD4 $(KFLAGS) -Dmsleep=mnap"
  1797.  
  1798. #Convex C210 with Convex/OS 8
  1799. convex8:
  1800.     @echo Making C-Kermit $(CKVER) for Convex C210 with OS 8
  1801.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1802.     "CFLAGS= -DBSD4 -DTCPSOCKET -DNODEBUG -DDIRENT -DNOFILEH \
  1803.     $(KFLAGS) -DSIG_V -Dmsleep=mnap"
  1804.  
  1805. #Convex C2 with Convex OS 9.1 (should also work with 8.1 or later)
  1806. #with ANSI C compiler, uses BSD 4.3 uucp lockfile convention.
  1807. convex9:
  1808.     @echo Making C-Kermit $(CKVER) for Convex C210 with OS 9.1
  1809.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1810.     "CFLAGS= -DPOSIX -DCONVEX9 -DNOIEXTEN -DDIRENT -DNOFILEH -DTCPSOCKET \
  1811.     -D__STDC__ -DLCKDIR -Dmsleep=mnap -O -ext -tm c1 $(KFLAGS)" \
  1812.     "LNKFLAGS = -ext"
  1813.  
  1814. #Convex C2 with Convex OS 10.1 or later
  1815. #with gcc 2.x C compiler
  1816. convex10gcc:
  1817.     @echo Making C-Kermit $(CKVER) for Convex C2 with OS 10.1 using gcc
  1818.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1819.     "CFLAGS= -DPOSIX -DCONVEX9 -DNOIEXTEN -DDIRENT -DNOFILEH -DTCPSOCKET \
  1820.     -D__STDC__  -Dmsleep=mnap -O2 $(KFLAGS)" CC=gcc CC2=gcc
  1821.  
  1822. #Cray X-MP or Y-MP UNICOS 6.x or 7.x.
  1823. #NOTE: NPROC tells how many parallel makes to run.  If your Cray has multiple
  1824. #processors, you can set NPROC up to the number of CPUs, e.g. NPROC=16.
  1825. cray:
  1826.     @echo 'Making C-Kermit $(CKVER) for Cray X/Y-MP UNICOS 6.x or 7.0...
  1827.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} NPROC=1 \
  1828.     "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -DTCPSOCKET $(KFLAGS) -O1"
  1829.  
  1830. #Cray X-MP or Y-MP UNICOS 8.0 Alpha.
  1831. cray8:
  1832.     @echo 'Making C-Kermit $(CKVER) for Cray X/Y-MP UNICOS 8.0 Alpha...
  1833.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} NPROC=1 \
  1834.     "CFLAGS= -DSVR4 -DDIRENT -DHDBUUCP -DTCPSOCKET $(KFLAGS) -O1"
  1835.  
  1836. #Cray-2 or Cray 3-CSOS
  1837. #NOTE: NPROC tells how many parallel makes to run.  If your Cray has multiple
  1838. #processors, you can set NPROC up to the number of CPUs, e.g. NPROC=16.
  1839. craycsos:
  1840.     @echo 'Making C-Kermit $(CKVER) for Cray-2/3 CSOS
  1841.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} NPROC=1 \
  1842.     "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -DTCPSOCKET \
  1843.     $(KFLAGS) -DCK_ANSIC -DCK_CURSES" "LIBS=-lnet"
  1844.  
  1845. #NeXTSTEP 1.0 through 3.2.
  1846. #Includes fullscreen file transfer display (curses) and TCP/IP support.
  1847. #Uses shared library to make executable program about 80K smaller.
  1848. #Remove "LIBS = -lsys_s" if this causes trouble.
  1849. next:
  1850.     @echo Making C-Kermit $(CKVER) for NeXTSTEP...
  1851.     @echo 'If you get errors in ckutio.c about w_S, w_T, etc,'
  1852.     @echo 'add KFGLAGS=-DNOREDIRECT to your make command.'
  1853.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1854.     "CFLAGS= -DNEXT -DTCPSOCKET -DLCKDIR -DNOPUTENV -DFNFLOAT \
  1855.     -pipe -DCK_CURSES $(KFLAGS) -O -w" "LIBS = -lsys_s -lcurses -ltermcap"
  1856.  
  1857. nextc:
  1858.     $(MAKE) "MAKE=$(MAKE)" next KTARGET=$${KTARGET:-$(@)}
  1859.  
  1860. nextg:
  1861.     $(MAKE) "MAKE=$(MAKE)" next KFLAGS=-Wall KTARGET=$${KTARGET:-$(@)}
  1862.  
  1863. nextgc:
  1864.     $(MAKE) "MAKE=$(MAKE)" next KFLAGS=-Wall KTARGET=$${KTARGET:-$(@)}
  1865.  
  1866. #NeXTSTEP 3.3.
  1867. #Includes fullscreen file transfer display and TCP/IP.
  1868. next33:
  1869.     @echo Making C-Kermit $(CKVER) for NeXTSTEP 3.3...
  1870.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1871.     "CFLAGS= -DNEXT33 -DTCPSOCKET -DLCKDIR -DNOPUTENV -DFNFLOAT \
  1872.     -pipe -DCK_CURSES $(KFLAGS) -O -w" "LIBS = -lsys_s -lcurses -ltermcap"
  1873.  
  1874. #OPENSTEP 4.2 for Sparc, m680x0, HP PA-RISC, and Intel.
  1875. #Includes fullscreen file transfer display and TCP/IP.
  1876. #ckcpro.c compiled without optimization because it crashes the compiler.
  1877. openstep42:
  1878.     @echo Making C-Kermit $(CKVER) for OPENSTEP 4.2...
  1879.     $(MAKE) ckcpro.$(EXT) \
  1880.     "CFLAGS= -DOPENSTEP42 -DNEXT33 -DTCPSOCKET -DLCKDIR -DNOPUTENV \
  1881.     -DFNFLOAT -pipe -DCK_CURSES $(KFLAGS) -w"
  1882.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1883.     "CFLAGS= -DOPENSTEP42 -DNEXT33 -DTCPSOCKET -DLCKDIR -DNOPUTENV \
  1884.     -DFNFLOAT -pipe -DCK_CURSES $(KFLAGS) -O -w" \
  1885.     "LIBS = -lsys_s -lcurses -ltermcap"
  1886.  
  1887. #NeXT with malloc debugger
  1888. nextmd:
  1889.     @echo Making C-Kermit $(CKVER) for NeXT with malloc debugging...
  1890.     $(MAKE) mermit KTARGET=$${KTARGET:-$(@)} \
  1891.     "CFLAGS= -DNEXT -DTCPSOCKET -DLCKDIR -DNOPUTENV -DFNFLOAT \
  1892.     -DCK_CURSES $(KFLAGS) -O -w -Dmalloc=dmalloc -Dfree=dfree -DMDEBUG" \
  1893.     "LIBS = -lsys_s -lcurses -ltermcap"
  1894.  
  1895. #Build for NeXTSTEP with "fat" binaries (MABs) that run on both Motorola
  1896. #and Intel platforms.
  1897. nextfat:
  1898.     $(MAKE) "MAKE=$(MAKE)" next KTARGET=$${KTARGET:-$(@)} \
  1899.     "KFLAGS=-Wall -arch m68k -arch i386" "LNKFLAGS = -arch m68k -arch i386"
  1900.  
  1901. #NeXTSTEP on Intel Platforms.
  1902. next486:
  1903.     @echo Making C-Kermit $(CKVER) for NeXTSTEP on Intel Platforms...
  1904.     @echo 'If you get errors in ckutio.c about w_S, w_T, etc,'
  1905.     @echo 'add KFGLAGS=D-DNOREDIRECT to your make command.'
  1906.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1907.     "CFLAGS= -DNEXT -DTCPSOCKET -DLCKDIR -DNOPUTENV -DFNFLOAT \
  1908.     -DNODEBUG -O3 -fno-omit-frame-pointer -fschedule-insns2 -pipe \
  1909.     -DCK_CURSES $(KFLAGS) -w" "LIBS = -lsys_s -lcurses -ltermcap"
  1910.  
  1911. #Single binary that runs on NeXT 68030 and 68040, Intel, HP, and Sparc,
  1912. #as well as on OpenStep/Mach.
  1913. nextquadfat:
  1914.     $(MAKE) "MAKE=$(MAKE)" next KTARGET=$${KTARGET:-$(@)} \
  1915.     "KFLAGS=-Wall -arch m68k -arch i386 -arch hppa -arch sparc" \
  1916.     "LNKFLAGS = -arch m68k -arch i386 -arch hppa -arch sparc"
  1917.  
  1918. #BeBox
  1919. beboxdr7:
  1920.     @echo 'Making C-Kermit $(CKVER) for the BeBox...'
  1921.     @echo 'Link step will fail with default Metroworks linker 64K limit.'
  1922.     @echo 'Code Warrior Gold required to link big programs.'
  1923.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  1924.     "CC=/boot/develop/tools/mwcc" "CC2=/boot/develop/tools/mwld" \
  1925.     "CFLAGS= -DBEBOX -DBE_DR_7 -DPOSIX -DNOUUCP $(KFLAGS) -O"
  1926.  
  1927. #BeBox BeOS DR7 only
  1928. bebox:
  1929.     @echo 'Making C-Kermit $(CKVER) for BeBox...'
  1930.     @echo 'Link step will fail with default Metroworks linker 64K limit.'
  1931.     @echo 'Code Warrior Pro 3.0 for BeBox required to link big programs.'
  1932.     $(MAKE) wermit "CC=mwcc" "CC2=mwld" KTARGET=$${KTARGET:-$(@)} \
  1933.     "CFLAGS= -DBEBOX -DPOSIX -DNOUUCP $(KFLAGS) -O"
  1934.  
  1935. #BeOS 4.5
  1936. #We have to use the wermit target because 'fd_set' is unknown.
  1937. beos45:
  1938.     $(MAKE) wermit "CC=$(CC)" "CC2=$(CC2)" KTARGET=$${KTARGET:-$(@)} \
  1939.     "CFLAGS= -DBEOS -DBEOS45 -DPOSIX -DNOIKSD -DNOREALPATH -DSYSTIMEH \
  1940.     -DNOCOTFMC -DNOUUCP $(KFLAGS) -O" \
  1941.     "LIBS = $(LIBS)"
  1942.  
  1943. #BeOS 4.5
  1944. beos45net:
  1945.     $(MAKE) beos45 "KFLAGS=-DTCPSOCKET -DNO_DNS_SRV $(KFLAGS)" \
  1946.     "LIBS=-lnet -lnetapi"
  1947.  
  1948. #Plan 9 from Bell Labs
  1949. plan9:
  1950.     @echo 'C-Kermit for Plan 9 from Bell Labs - calling ckpker.mk...'
  1951.     make -f ckpker.mk
  1952.  
  1953. #POSIX
  1954. posix:
  1955.     @echo 'Making C-Kermit $(CKVER) for pure POSIX...'
  1956.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  1957.     "CFLAGS= -DPOSIX -DNOUUCP $(KFLAGS) -O"
  1958.  
  1959. #Berkeley Software Design Inc. BSDI
  1960. # Substitute "LIBS= -lnewcurses -ltermcap" if desired.
  1961. bsdi:
  1962.     @echo 'Making C-Kermit $(CKVER) for BSDI ...'
  1963.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1964.     "CFLAGS= -DBSD44 -DSETREUID -DSW_ACC_ID -DBIGBUFOK \
  1965.     -DTCPSOCKET -DCK_CURSES -DFNFLOAT $(KFLAGS) -O" \
  1966.     "LIBS= -lcurses -ltermcap -lm"
  1967.  
  1968. #Berkeley Software Design Inc. BSDI - has higher serial speeds than 1.x.
  1969. bsdi2:
  1970.     $(MAKE) "MAKE=$(MAKE)" bsdi KTARGET=$${KTARGET:-$(@)} \
  1971.     "KFLAGS=-DBSDI2 $(KFLAGS)"
  1972.  
  1973. bsdi3:
  1974.     $(MAKE) "MAKE=$(MAKE)" bsdi KTARGET=$${KTARGET:-$(@)} \
  1975.     "KFLAGS=-DBSDI2 -DBSDI3 $(KFLAGS)"
  1976.  
  1977. bsdi4:
  1978.     $(MAKE) "MAKE=$(MAKE)" bsdi KTARGET=$${KTARGET:-$(@)} \
  1979.     "KFLAGS=-DBSDI2 -DBSDI3 -DBSDI4 -DTPUTSFNTYPE=void -DTPUTSISVOID \
  1980.     -m486 $(KFLAGS)"
  1981.  
  1982. # (old name for the above)
  1983. bsdiposix:
  1984.     $(MAKE) "MAKE=$(MAKE)" bsdi
  1985.  
  1986.  
  1987. #Pyramid 9XXX (e.g. 9845) or MIServer T series, OSx 4.4b thru 5.1
  1988. pyramid:
  1989.     @echo Making C-Kermit $(CKVER) for Pyramid Dual Port OSx
  1990.     ucb $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1991.     "CFLAGS= -DBSD43 -DTCPSOCKET -DPYRAMID -O $(KFLAGS)" "LNKFLAGS = -s"
  1992.  
  1993. #Pyramid Dual Port OSx using HonyDanBer UUCP, curses and TCP
  1994. pyramid-hdb:
  1995.     @echo Making C-Kermit $(CKVER) for Pyramid Dual Port OSx
  1996.     ucb $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1997.     "CFLAGS= -DBSD43 -DTCPSOCKET -DHBDUUCP -DCK_CURSES -O $(KFLAGS)" \
  1998.     "LNKFLAGS = -s" "LIBS = -lcurses -ltermcap"
  1999.  
  2000. #Pyramid DC/OSx (UNIX System V R4).
  2001. #Has <sys/termiox.h>, regular Berkeley sockets library, i.e. in.h and inet.h
  2002. #are not misplaced in sys (rather than netinet and arpa, respectively).
  2003. #Uses ANSI C.
  2004. #NOTE: Remove -O and Olimit:2500 from CFLAGS if TELNET connections do not work.
  2005. pyrdcosx:
  2006.     @echo 'Making C-Kermit $(CKVER) for Pyramid DC/OSx...'
  2007.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2008.     "CFLAGS = -Xa -O -DSVR4 -DDIRENT -DHDBUUCP -DSELECT -DNOGETUSERSHELL \
  2009.     -DCK_CURSES -DSTERMIOX -DTCPSOCKET -DPYRAMID -K Olimit:3100 \
  2010.     -DNO_DNS_SRV $(KFLAGS)" "LIBS= -lcurses -lsocket -lnsl" "LNKFLAGS = -s"
  2011.  
  2012. #IBM's AIX 3.0 on IBM 370 mainframe, tested on AIX F44 thru F50.
  2013. aix370:
  2014.     @echo Making C-Kermit $(CKVER) for IBM System/370 AIX 3.0...
  2015.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2016.     "CFLAGS= -DAIX370 -DTCPSOCKET -DLCKDIR -DDIRENT $(KFLAGS)" \
  2017.     "LIBS = -lbsd"
  2018.  
  2019. #IBM's AIX/ESA 2.1 (OSF/1) on IBM mainframe
  2020. aixesa:
  2021.     @echo Making C-Kermit $(CKVER) for IBM AIX/ESA...
  2022.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2023.     "CFLAGS= -DAIXESA -DTCPSOCKET $(KFLAGS) -O"
  2024.  
  2025. #IBM PS/2 with AIX 1.0 thru 1.3.
  2026. #  Reports indicate that -O switch must be omitted.
  2027. #  It is also possible that "make bsd" will work (reports welcome).
  2028. #  One report said "make LIBS=-lbsd bsd" did the trick.
  2029. #  NOTLOG is to get around a 'tlog' symbol defined in one of the headers.
  2030. ps2aix:
  2031.     @echo 'Making C-Kermit $(CKVER) for IBM AIX 1.x PS/2...'
  2032.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  2033.     "CFLAGS = -DATTSV -DNOREALPATH -DPS2AIX10 -DSIG_V \
  2034.     -DNOUNICODE -DNOTLOG $(KFLAGS) -i" \
  2035.     "LNKFLAGS = -i"
  2036.  
  2037. ps2aixnetc:
  2038.     @echo 'Making C-Kermit $(CKVER) for IBM AIX 1.x PS/2...'
  2039.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  2040.     "CFLAGS = -DATTSV -DNOREALPATH -DPS2AIX10 -DTCPSOCKET -DCK_CURSES \
  2041.     -DSIG_V -DNOUNICODE -DNOTLOG $(KFLAGS) -i" \
  2042.     "LIBS = -lcurses" "LNKFLAGS = -i"
  2043.  
  2044. ps2aix3:
  2045.     $(MAKE) ps2aix KTARGET=$${KTARGET:-$(@)}
  2046.  
  2047. #IBM RT PC with AIX 2.2.1
  2048. #This one has unique and strange lockfiles.
  2049. rtaix:
  2050.     @echo 'Making C-Kermit $(CKVER) for IBM RT PC, AIX 2.2.1...'
  2051.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  2052.     "CFLAGS = -DATTSV -DRTAIX -DHDBUUCP -DTCPSOCKET -DNOIKSD -Wq,-SJ2 \
  2053.     -DCLSOPN -DNOREALPATH -DNOUNICODE -DNOPUTENV $(KFLAGS) -O -w" \
  2054.     "LNKFLAGS = -s"
  2055.  
  2056. #IBM RT PC with AIX 2.2.1
  2057. #This one has unique and strange lockfiles.
  2058. rtaixc:
  2059.     @echo 'Making C-Kermit $(CKVER) for IBM RT PC, AIX 2.2.1, curses...'
  2060.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  2061.     "CFLAGS = -DATTSV -DRTAIX -DHDBUUCP -DTCPSOCKET -DCK_CURSES \
  2062.     -DCLSOPN -DNOREALPATH -DNOIKSD -DNOPUTENV -Wq,-SJ2 $(KFLAGS) -O -w" \
  2063.     "LIBS=-lcurses" "LNKFLAGS = -s"
  2064.  
  2065. #IBM RT PC with AIX (ACIS) 2.2.1 (BSD 4.3)
  2066. # Add -O, -DDYNAMIC, -s, etc, if they work.
  2067. rtacis:
  2068.     @echo Making C-Kermit $(CKVER) for RT PC with ACIS 2.2.1 = BSD 4.3...
  2069.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  2070.     "CFLAGS= -DBSD4 -DTCPSOCKET -DNOREALPATH -DNOIKSD -DNOPUTENV \
  2071.     $(KFLAGS) -U__STDC__" "LNKFLAGS = -s"
  2072.  
  2073. #IBM AIX 3.0, 3.1, or 3.2 for RISC System/6000.
  2074. rs6000:
  2075.     @echo Making C-Kermit $(CKVER) for IBM AIX 3.0 or 3.1, RS/6000...
  2076.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2077.     "CFLAGS= -DAIXRS -DTCPSOCKET -DSVR3 -DDIRENT -DCK_ANSIC \
  2078.     -DCK_POLL -DCLSOPN -DSELECT_H -DNOTTYLOCK -O $(KFLAGS)" \
  2079.     "LNKFLAGS = -s"
  2080.  
  2081. #IBM AIX 3.0, 3.1, or 3.2 for RISC System/6000, with curses.
  2082. rs6000c:
  2083.     @echo Making C-Kermit $(CKVER) for IBM AIX 3.0 or 3.1, RS/6000...
  2084.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2085.     "CFLAGS= -DAIXRS -DTCPSOCKET -DSVR3 -DDIRENT -DCK_ANSIC \
  2086.     -DCK_POLL -DCLSOPN -DCK_CURSES -DSELECT_H -DNOTTYLOCK -DNOREALPATH \
  2087.     -O $(KFLAGS)" "LIBS= -lcurses -ltermcap" "LNKFLAGS = -s"
  2088.  
  2089. aix30:
  2090.     $(MAKE) rs6000 KTARGET=$${KTARGET:-$(@)}
  2091.  
  2092. aix31:
  2093.     $(MAKE) rs6000 KTARGET=$${KTARGET:-$(@)}
  2094.  
  2095. #IBM AIX 3.2 for RISC System/6000.
  2096. #In case of "subprogram too complex" warnings, add "-qmaxmem=4000" to CFLAGS.
  2097. rs6aix32:
  2098.     @echo Making C-Kermit $(CKVER) for IBM AIX 3.2, RS/6000...
  2099.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2100.     "CFLAGS= -DAIXRS -DTCPSOCKET -DSVR4 -DDIRENT -DCK_ANSIC -DNOREALPATH \
  2101.     -DSELECT_H -DCLSOPN -DNOTTYLOCK -O $(KFLAGS)" "LNKFLAGS = -s"
  2102.  
  2103. #IBM AIX 3.2 for RISC System/6000.
  2104. rs6aix32c:
  2105.     @echo Making C-Kermit $(CKVER) for IBM AIX 3.2, RS/6000, TCP+curses...
  2106.     @echo In case of Subprogram Too Complex warnings,
  2107.     @echo add -qmaxmem=6000 to CFLAGS.
  2108.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2109.     "CFLAGS= -DAIXRS -DTCPSOCKET -DSVR4 -DDIRENT -DCK_ANSIC -DNOREALPATH \
  2110.     -DCLSOPN -DCK_CURSES -DSELECT_H -DNOTTYLOCK -O $(KFLAGS)" \
  2111.     "LNKFLAGS = -s" "LIBS=-lcurses"
  2112.  
  2113. aix32:
  2114.     $(MAKE) rs6aix32c KTARGET=$${KTARGET:-$(@)}
  2115.  
  2116. #IBM AIX 4.1, 4.1.x on RISC System/6000 or Power Series.
  2117. #Generates common binary for all platforms if using xlc (IBM C compiler).
  2118. #When using gcc, add -mcpu=common to generate common binary.
  2119. #Note that this one needs CK_NEWTERM.
  2120. # Add -bbigtoc in case ld fails with TOC overflow.
  2121. aix41:
  2122.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.1.1 RS/6000 or PowerPC...
  2123.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2124.     "CFLAGS= -DAIXRS -DAIX41 -DSVR4 -DSTERMIOX -DTCPSOCKET -DDIRENT \
  2125.     -DCK_ANSIC -DCLSOPN -DCK_CURSES -DCK_NEWTERM -DSELECT -DSELECT_H \
  2126.     -DNOGETUSERSHELL -qmaxmem=16000 -O $(KFLAGS)" \
  2127.     "LNKFLAGS = -s" "LIBS=-lcurses"
  2128.  
  2129. # Add -bbigtoc in case ld fails with TOC overflow.
  2130. aix41+krb5+krb4:
  2131.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.1.1 RS/6000 or PowerPC...
  2132.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} \
  2133.     "CFLAGS= -DAIXRS -DAIX41 -DSVR4 -DSTERMIOX -DTCPSOCKET -DDIRENT \
  2134.     -DCK_ANSIC -DCLSOPN -DCK_CURSES -DCK_NEWTERM -DSELECT -DSELECT_H \
  2135.     -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 -DKRB4 -DKRB524 \
  2136.     -DCK_ENCRYPTION -DCK_DES \
  2137.     -I/usr/local/include/  \
  2138.     -DNOGETUSERSHELL -qmaxmem=16000 -O $(KFLAGS)" \
  2139.     "LNKFLAGS = -s" \
  2140.     "LIBS = -L/usr/local/lib -lcurses -lkrb4 -ldes425 -lkrb5 \
  2141.     -lcom_err -lk5crypto"
  2142.  
  2143. #IBM AIX 4.1 (Beta) or AIX 4.1.1 for RISC System/6000 or Power Series
  2144. # Add -bbigtoc in case ld fails with TOC overflow.
  2145. rs6aix41d:
  2146.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.1.1 - debugging...
  2147.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2148.     "CFLAGS= -g -DAIXRS -DAIX41 -DSVR4 -DSTERMIOX -DTCPSOCKET -DDIRENT \
  2149.     -DCK_ANSIC -DCLSOPN -DCK_CURSES -DCK_NEWTERM -DSELECT -DSELECT_H \
  2150.     -DNOGETUSERSHELL -DRLOGCODE -qcheck -qextchk -qinfo -qproto \
  2151.     -qflag=i:i -langlvl=ansi -qtbtable=full -bnoquiet -qmaxmem=16000 \
  2152.     $(KFLAGS)" "LNKFLAGS =" "LIBS=-lcurses"
  2153.  
  2154. #Old name for "aix41".
  2155. rs6aix41c:
  2156.     $(MAKE) aix41 KTARGET=$${KTARGET:-$(@)}
  2157.  
  2158. #IBM AIX 4.1, 4.1.x, or 4.2 on RISC System/6000 or Power Series,
  2159. # with X.25 support
  2160. #Generates common binary for all platforms if using xlc (IBM C compiler).
  2161. #When using gcc, add -mcpu=common to generate common binary.
  2162. # Add -bbigtoc in case ld fails with TOC overflow.
  2163. aix41x25:
  2164.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.1.1 RS/6000 or PowerPC...
  2165.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2166.     "CFLAGS= -DAIXRS -DAIX41 -DSVR4 -DSTERMIOX -DTCPSOCKET -DDIRENT \
  2167.     -DCK_ANSIC -DCLSOPN -DCK_CURSES -DCK_NEWTERM -DSELECT -DSELECT_H \
  2168.     -DIBMX25 -DDEBUG -DNOGETUSERSHELL -qmaxmem=16000 -g $(KFLAGS)" \
  2169.     "LNKFLAGS = -g -bI:/lib/pse.exp" "LIBS=-lcurses -lodm -lcfg"
  2170.     -@echo "]0;kermit done\c"
  2171.  
  2172. #As above but without -g in LNKFLAGS.
  2173. # Add -bbigtoc in case ld fails with TOC overflow.
  2174. aix41x25o:
  2175.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.1.1 RS/6000 or PowerPC...
  2176.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2177.     "CFLAGS= -DAIXRS -DAIX41 -DSVR4 -DSTERMIOX -DTCPSOCKET -DDIRENT \
  2178.     -DCK_ANSIC -DCLSOPN -DCK_CURSES -DCK_NEWTERM -DSELECT -DSELECT_H \
  2179.     -DIBMX25 -DNODEBUG -DNOGETUSERSHELL -qmaxmem=16000 $(KFLAGS)" \
  2180.     "LNKFLAGS = -bI:/lib/pse.exp" "LIBS=-lcurses -lodm -lcfg"
  2181.     -@echo "]0;kermit done\c"
  2182.  
  2183. #AIX 4.2 -- Must have CK_NEWTERM or echoing is lost after curses.
  2184. # Add -bbigtoc in case ld fails with TOC overflow.
  2185. aix42:
  2186.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.2 or higher...
  2187.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2188.     "CFLAGS= -DAIXRS -DAIX41 -DAIX42 -DSVR4 -DSTERMIOX -DTCPSOCKET \
  2189.     -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DCK_NEWTERM -DFNFLOAT \
  2190.     -DSELECT -DSELECT_H -DNOGETUSERSHELL -qmaxmem=16000 -O $(KFLAGS)" \
  2191.     "LNKFLAGS = -s" "LIBS=-lcurses -lm"
  2192.  
  2193. #AIX 4.3 -- Must NOT have CK_NEWTERM or else C-Kermit hangs after curses.
  2194. # -bbigtoc needed on some systems but not others to avoid TOC overflow.
  2195. # "man ld" says -bbigtoc makes program run slower.
  2196. aix43:
  2197.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.3 or higher...
  2198.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2199.     "CFLAGS= -DAIXRS -DAIX41 -DAIX43 -DSVR4 -DSTERMIOX -DTCPSOCKET \
  2200.     -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DSELECT -DSELECT_H \
  2201.     -DFNFLOAT -DNOGETUSERSHELL -qmaxmem=16000 -bbigtoc -O $(KFLAGS)" \
  2202.     "LNKFLAGS = -s" "LIBS=-lcurses -lm"
  2203.  
  2204. aix44:
  2205.     $(MAKE) aix42 "KFLAGS=-DAIX44 -qmaxmem=20000 $(KFLAGS)" \
  2206.     KTARGET=$${KTARGET:-$(@)}
  2207.  
  2208. aix45:
  2209.     $(MAKE) aix42 "KFLAGS=-DAIX45 -qmaxmem=20000 $(KFLAGS)" \
  2210.     KTARGET=$${KTARGET:-$(@)}
  2211.  
  2212. #Bull DPX/2 with BOS/X, like AIX/RS6000
  2213. bulldpx2:
  2214.     @echo Making C-Kermit $(CKVER) for Bull DPX/2 with BOS/X...
  2215.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  2216.     "CFLAGS= -DSVR3 -DDIRENT -DCK_ANSIC -DCKTYP_H=<sys/types.h> \
  2217.     -DCK_POLL -DNOGETUSERSHELL -DCLSOPN -O $(KFLAGS)" \
  2218.     "LNKFLAGS = -s"
  2219.  
  2220. #Sun UNIX 3.5 with gcc 2.3.3.
  2221. sunos3gcc:
  2222.     @echo Making C-Kermit $(CKVER) for Sun UNIX 3.5 and gcc...
  2223.     $(MAKE) xermit CC=gcc CC2=gcc KTARGET=$${KTARGET:-$(@)} \
  2224.     CFLAGS="-g -O -DBSD4 -DTCPSOCKET $(KFLAGS)"
  2225.  
  2226. #SunOS version 4.0, BSD environment, has saved original euid feature.
  2227. # Add "CC=/usr/ucb/cc CC2=/usr/ucb/cc" if necessary.
  2228. # Note: Including Unicode crashes the assembler in ckcuni.c.
  2229. sunos4:
  2230.     @echo Making C-Kermit $(CKVER) for SunOS 4.0, BSD environment...
  2231.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2232.     "CFLAGS= -O -DSUNOS4 -DFNFLOAT -DNOUNICODE $(KFLAGS)" \
  2233.     "LIBS=-lm"
  2234.  
  2235. #As above, but with SunLink X.25 support
  2236. sunos4x25:
  2237.     @echo SunLink X.25 support
  2238.     $(MAKE) "MAKE=$(MAKE)" sunos4 KTARGET=$${KTARGET:-$(@)} \
  2239.     "KFLAGS=$(KFLAGS) -DFNFLOAT -DSUNX25" \
  2240.     "LIBS=-lm"
  2241.  
  2242. #SUN OS version 4.1 - 4.1.3, BSD environment, has saved original euid feature.
  2243. #Uses Honey DanBer UUCP.  Requires presence of /usr/spool/locks directory.
  2244. # /var/spool/ should be a symbolic link to  /usr/spool/.
  2245. # ... or 'make xermit "CC= /usr/ucb/cc " \'
  2246. # Note: "xermit" means use the select() version of the CONNECT module.
  2247. sunos41:
  2248.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 / BSD...
  2249.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2250.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNOUNICODE $(KFLAGS)" \
  2251.     "LIBS= $(LIBS) -lresolv -lm"
  2252.  
  2253. #As above, but compile with gcc.  Gives 24-32K size reduction
  2254. #with gcc 2.1 or 2.2.2.  CAUTION: make sure "fixincludes" has been run on
  2255. #the include files, so gcc's are in sync with the regular Sun ones!
  2256. #This includes the curses library for fullscreen file transfer display.
  2257. #NDGPWNAM needed for GCC 2.5.6, not needed for 2.4.0, but it's uncertain
  2258. #whether it will do any harm for 2.4.0 compilation -- if so, remove it.
  2259. sunos41gcc:
  2260.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 with gcc and curses...
  2261.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
  2262.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT \
  2263.     -funsigned-char $(KFLAGS)" "LIBS= -lcurses -ltermcap -lresolv -lm"
  2264.  
  2265. # As above, but without -funsigned-char so I can see the warnings that
  2266. # everybody else will get when they use ANSI compilers that don't have this
  2267. # option (gsc = gcc signed char).
  2268. sunos41gsc:
  2269.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 with gcc and curses...
  2270.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
  2271.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT \
  2272.     $(KFLAGS)" "LIBS= -lcurses -ltermcap -lresolv -lm"
  2273.  
  2274. #As above but build with ckucon.c rather than ckucns.c for testing.
  2275. sunos41wgcc:
  2276.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 with gcc and curses...
  2277.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
  2278.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT \
  2279.     -funsigned-char $(KFLAGS)" "LIBS= -lcurses -ltermcap -lresolv -lm"
  2280.  
  2281. #As above but with ckucon.c rather than ckucns.c (for testing only)
  2282. sunos41gccfork:
  2283.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 with gcc and curses...
  2284.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
  2285.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT \
  2286.     -funsigned-char $(KFLAGS)" "LIBS= -lcurses -ltermcap -lresolv -lm"
  2287.  
  2288. #as above but configured for Kerberos IV
  2289. sunos41gcc+krb4:
  2290.     @echo Making C-Kermit $(CKVER) for SunOS 4.1, gcc, curses, krb4...
  2291.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
  2292.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT \
  2293.     -DTCPSOCKET -DCK_AUTHENTICATION -DCK_KERBEROS  -DKRB4 \
  2294.     -DCK_ENCRYPTION -DCK_DES -DCK_CAST -DBIGBUFOK -funsigned-char \
  2295.     -I/usr/kerberos/include/ \
  2296.     $(KFLAGS)" \
  2297.     "LIBS= \
  2298.     -L/usr/kerberos/lib \
  2299.     -lcurses -ltermcap -lresolv -lm -lkrb -ldes"
  2300.  
  2301. #as above but configured for SSL/TLS
  2302. sunos41gcc+openssl:
  2303.     @echo Making C-Kermit $(CKVER) for SunOS 4.1, gcc, curses, ssl...
  2304.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
  2305.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT \
  2306.     -DCK_AUTHENTICATION -funsigned-char \
  2307.     -DCK_SSL -DTCPSOCKET -DBIGBUFOK \
  2308.     -I/w/jaltman2/ssl/openssl-0.9.4/include/ \
  2309.     $(KFLAGS)" \
  2310.     "LIBS= \
  2311.     -L/w/jaltman2/ssl/openssl-0.9.4/ \
  2312.     -lcurses -ltermcap -lresolv -lm -lssl -lcrypto"
  2313.  
  2314. #as above but configured for Kerberos IV and SSL/TLS
  2315. sunos41gcc+krb4+openssl:
  2316.     @echo Making C-Kermit $(CKVER) for SunOS 4.1, gcc, curses, krb4...
  2317.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
  2318.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT \
  2319.     -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB4 -DCK_ENCRYPTION -DCK_DES \
  2320.     -DCK_CAST -DCK_SSL -DLIBDES -DTCPSOCKET -DBIGBUFOK -funsigned-char \
  2321.     -I/usr/kerberos/include/ \
  2322.     -I/w/jaltman2/ssl/openssl-0.9.4/include/ \
  2323.     $(KFLAGS)" \
  2324.     "LIBS= \
  2325.     -L/usr/kerberos/lib \
  2326.     -L/w/jaltman2/ssl/openssl-0.9.4/ \
  2327.     -lcurses -ltermcap -lresolv -lm -lkrb -lssl -lcrypto"
  2328.  
  2329. #SUNOS 4.1 as sunos41 above, but also with curses support
  2330. sunos41c:
  2331.     @echo Curses support
  2332.     $(MAKE) "MAKE=$(MAKE)" sunos41 KTARGET=$${KTARGET:-$(@)} \
  2333.     "KFLAGS=$(KFLAGS) -DCK_CURSES -DFNFLOAT " \
  2334.     "LIBS= -lcurses -ltermcap"
  2335.  
  2336. #As SunOS 4.1.x, gcc, configured as Internet Kermit Server.
  2337. # . NOLOCAL removes capability to make connections
  2338. # . TNCODE allows server-side Telnet negotiation.
  2339. sunos41giks:
  2340.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 with gcc for IKS...
  2341.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
  2342.     "CFLAGS= -O -DSUNOS41 -DNDGPWNAM -DFNFLOAT \
  2343.     -DNOLOCAL -DTNCODE -DNOPUSH $(KFLAGS)" \
  2344.     "LIBS= -lm -L/usr/local/lib -lpwent -lm -lresolv"
  2345.  
  2346. #SUNOS 4.1 with SunLink X.25 support
  2347. sunos41x25:
  2348.     @echo SunLink X.25 support
  2349.     $(MAKE) "MAKE=$(MAKE)" wermit KTARGET=$${KTARGET:-$(@)} \
  2350.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNOUNICODE -DFNFLOAT -DSUNX25 \
  2351.     $(KFLAGS)" "LIBS= $(LIBS) -lresolv -lm"
  2352.  
  2353. #SUNOS 4.1 with SunLink X.25 support and curses
  2354. sunos41x25c:
  2355.     @echo SunLink X.25 support + curses
  2356.     $(MAKE) "MAKE=$(MAKE)" wermit KTARGET=$${KTARGET:-$(@)} \
  2357.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNOUNICODE -DFNFLOAT -DSUNX25 \
  2358.     -DCK_CURSES $(KFLAGS)" "LIBS= $(LIBS) -lcurses -ltermcap -lresolv -lm"
  2359.  
  2360. #SUN with Solaris 2.0 = SunOS 5.0.
  2361. #Mostly the same as System V R4.  Don't use this with later Solaris versions.
  2362. solaris20:
  2363.     @echo 'Making C-Kermit $(CKVER) for Sun with Solaris 2.0 and curses...'
  2364.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2365.     "CFLAGS = -O -DSVR4 -DSOLARIS -DDIRENT -DHDBUUCP -DSTERMIOX \
  2366.     -DTCPSOCKET -DCK_CURSES -DFNFLOAT -DCK_POLL $(KFLAGS)" \
  2367.     "LIBS= -lsocket -lnsl -lcurses -ltermlib -lm" "LNKFLAGS = -s"
  2368.  
  2369. #SUN with Solaris 2.0.
  2370. #As above, but built with the gcc compiler from the Cygnus CD-ROM.
  2371. solaris20g:
  2372.     @echo 'Making C-Kermit $(CKVER) for Sun Solaris 2.0, gcc, and curses..'
  2373.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2374.     "CFLAGS = -O -DSVR4 -DSOLARIS -DDIRENT -DHDBUUCP -DSTERMIOX \
  2375.     -DTCPSOCKET -DCK_CURSES -DCK_POLL -DFNFLOAT $(KFLAGS)" \
  2376.     "LIBS= -lsocket -lnsl -lcurses -ltermlib -lm" "LNKFLAGS = -s" \
  2377.     CC=/opt/cygnus-sol2-1.1/bin/gcc CC2=/opt/cygnus-sol2-1.1/bin/gcc
  2378.  
  2379. #SunOS 5.1 = Solaris 2.1.
  2380. #NOTE: A C compiler is no longer bundled with SunOS 5.1, so to compile C
  2381. #programs, you might have to change your PATH to include the directory
  2382. #/usr/ccs/bin AFTER the directory containing the compiler.  SunPRO C is
  2383. #installed by default in /opt/SUNWspro/bin.  So a sample PATH might be:
  2384. #
  2385. # /usr/local/bin:/usr/bin:/opt/SUNWspro/bin:/usr/ccs/bin:\
  2386. # /usr/ucb:/usr/sbin:/sbin:.
  2387. #
  2388. # or:
  2389. #
  2390. # /usr/openwin/bin:/export/home/SUNWspro/bin:/usr/ccs/bin:/usr/sbin:/usr/bin.
  2391. #
  2392. #NOTE 2: Compilation with the Apogee C compiler (apcc) might not work,
  2393. #because it refuses to allow "-Usun".  Reportedly, newer releases of apcc
  2394. #(such as 1.057) work OK, use: "make -e sunos51 CC=apcc CC2=apcc".
  2395. solaris21:
  2396.     @echo 'Making C-Kermit $(CKVER) for SunOS 5.x....'
  2397.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2398.     "CFLAGS = -O -Usun -DSVR4 -DSOLARIS -DDIRENT -DHDBUUCP -DFNFLOAT \
  2399.     -DSELECT -DNODEBUG -DSTERMIOX $(KFLAGS)" "LIBS = -lm" "LNKFLAGS = -s"
  2400.  
  2401. #C-Kermit for Solaris 2.0-2.4 compiled with gcc, includes curses and TCP/IP.
  2402. #Change -O2 to -O if -O2 gives trouble.
  2403. #Remove -Usun if it causes trouble.
  2404. #Your PATH should start with something like:
  2405. #  /usr/local/gnu/bin:/usr/ccs/bin:
  2406. #Produces a huge executable -- strip with /usr/ccs/bin/strip (not Gnu strip).
  2407. #Also don't add "LNKFLAGS = -s" -- strip manually instead.
  2408. #Also note: this can NOT be linked statically - Sun makes it impossible.
  2409. #And for Solaris 2.4, you might have to replace:
  2410. # /usr/local/lib/gcc-lib/i486-sun-solaris2/2.4.5/include/sys/stat.h
  2411. #with /usr/include/sys/stat.h.
  2412. solaris2xg:
  2413.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.x with GNU cc...'
  2414.     @echo 'Please read the comments that accompany the solaris2xg target.'
  2415.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  2416.     "CFLAGS = -g -O -Usun -DSVR4 -DSOLARIS -DSTERMIOX -DSELECT -DFNFLOAT \
  2417.     -DCK_CURSES -DCK_NEWTERM -DDIRENT -DHDBUUCP -DTCPSOCKET $(KFLAGS)" \
  2418.     "LIBS= -ltermlib -lsocket -lnsl -lm -lresolv"
  2419.  
  2420. #ditto but no curses.
  2421. solaris2xgnc:
  2422.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.x with GNU cc...'
  2423.     @echo 'Please read the comments that accompany the solaris2xg target.'
  2424.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  2425.     "CFLAGS = -g -O -Usun -DSVR4 -DSOLARIS -DSTERMIOX -DSELECT -DFNFLOAT \
  2426.     -DDIRENT -DHDBUUCP -DTCPSOCKET $(KFLAGS)" \
  2427.     "LIBS= -lsocket -lnsl -lm -lresolv"
  2428.  
  2429. solaris22g:
  2430.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=$(KFLAGS)" solaris2xg \
  2431.     KTARGET=$${KTARGET:-$(@)}
  2432.  
  2433. solaris23g:
  2434.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=$(KFLAGS)" solaris2xg \
  2435.     KTARGET=$${KTARGET:-$(@)}
  2436.  
  2437. #Solaris 2.4 built with gcc
  2438. solaris24g:
  2439.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET:-$(@)} \
  2440.     solaris2xg "KFLAGS=-DSOLARIS24 $(KFLAGS)"
  2441.  
  2442. #Solaris 2.5 built with gcc
  2443. solaris25g:
  2444.     $(MAKE) "MAKE=$(MAKE)" solaris2xg KTARGET=$${KTARGET:-$(@)} \
  2445.     "KFLAGS=-funsigned-char -DPOSIX -DSOLARIS25 -DCK_WREFRESH $(KFLAGS)"
  2446.  
  2447. #Solaris 2.6 with gcc
  2448. solaris26g:
  2449.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET:-$(@)} solaris2xg \
  2450.     "KFLAGS=-DPOSIX -DSOLARIS26 -DCK_WREFRESH $(KFLAGS)"
  2451.  
  2452. #Solaris 2.6 with gcc, no curses (e.g. because libtermlib is missing).
  2453. solaris26gnc:
  2454.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET:-$(@)} solaris2xgnc \
  2455.     "KFLAGS=-DPOSIX -DSOLARIS26 $(KFLAGS)"
  2456.  
  2457. #Solaris 7 with gcc (32-bit)
  2458. solaris7g:
  2459.     $(MAKE) "MAKE=$(MAKE)" solaris2xg KTARGET=$${KTARGET:-$(@)} \
  2460.     "KFLAGS=-DPOSIX -DSOLARIS7 -DCK_WREFRESH $(KFLAGS)"
  2461.  
  2462. #Solaris 8 with gcc (32-bit)
  2463. solaris8g:
  2464.     $(MAKE) "MAKE=$(MAKE)" solaris2xg KTARGET=$${KTARGET:-$(@)} \
  2465.     "KFLAGS=-DPOSIX -DSOLARIS8 -DSOLARIS8 -DCK_WREFRESH $(KFLAGS)"
  2466.  
  2467. #Solaris 2.0-2.4, gcc, SunLink X.25 added.
  2468. #NOTE: Can't use xermit target with X.25.
  2469. solaris2xgx25:
  2470.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.x + X.25 with GNU cc...'
  2471.     @echo 'Please read the comments that accompany the solaris2xg entry.'
  2472.     $(MAKE) wermit CC=gcc CC2=gcc KTARGET=$${KTARGET:-$(@)} \
  2473.     "CFLAGS = -g -O -Usun -DSVR4 -DSOLARIS -DSTERMIOX -DSELECT -DSUNX25 \
  2474.     -DCK_CURSES -DCK_NEWTERM -DDIRENT -DHDBUUCP -DTCPSOCKET -DFNFLOAT \
  2475.     $(KFLAGS)" \
  2476.     "LIBS= -ltermlib -lm -L/opt/SUNWconn/lib -R/opt/SUNWconn/lib \
  2477.     -lsockx25 -lsocket -lnsl"
  2478.  
  2479. #Solaris 2.5, gcc, SunLink X.25 added.
  2480. solaris25gx25:
  2481.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET:-$(@)} \
  2482.     solaris2xg "KFLAGS=-DPOSIX -DSOLARIS25 -DCK_WREFRESH $(KFLAGS)"
  2483.  
  2484. #Solaris 2.6, gcc, SunLink X.25 added.
  2485. solaris26gx25:
  2486.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET:-$(@)} \
  2487.     solaris2xg "KFLAGS=-DPOSIX -DSOLARIS26 -DCK_WREFRESH $(KFLAGS)"
  2488.  
  2489. #Solaris 2.0-2.4, SunPro compiler, includes curses and TCP/IP.
  2490. #When using SUNWspro CC 2.0.1 under Solaris 2.3, be sure all cc patches
  2491. #are applied, otherwise corrupt or truncated object files can result.
  2492. #To build, set your PATH as follows:
  2493. #  /usr/local/bin:/usr/bin:/opt/SUNWspro/bin:/usr/ccs/bin:\
  2494. #  /usr/ucb:/usr/sbin:/sbin:.
  2495. # or (depending on where the compiler has been installed):
  2496. #  /usr/openwin/bin:/export/home/SUNWspro/bin:/usr/ccs/bin:/usr/sbin:/usr/bin.
  2497. #For additional optimization try using "-fast -xO4 -xdepend".
  2498. solaris2x:
  2499.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.x with SunPro cc...'
  2500.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2501.     "CFLAGS = -O -Usun -i -DSVR4 -DDIRENT -DSOLARIS -DHDBUUCP -DFNFLOAT \
  2502.     -DSELECT -DCK_CURSES -DCK_NEWTERM -DSTERMIOX -DTCPSOCKET $(KFLAGS)" \
  2503.     "LNKFLAGS = -s" "LIBS= -ltermlib -lsocket -lnsl -lm -lresolv"
  2504.  
  2505. solaris23:
  2506.     $(MAKE) "MAKE=$(MAKE)" solaris2x KTARGET=$${KTARGET:-$(@)} \
  2507.     "KFLAGS=$(KFLAGS)"
  2508.  
  2509. solaris24:
  2510.     $(MAKE) "MAKE=$(MAKE)" solaris2x KTARGET=$${KTARGET:-$(@)} \
  2511.     "KFLAGS=-DSOLARIS24 $(KFLAGS)"
  2512.  
  2513. # template for Solaris 2.5 and above.
  2514. solaris25x:
  2515.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.x with SunPro cc...'
  2516.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2517.     "CFLAGS = -DFNFLOAT -O -Usun -i $(KFLAGS)" \
  2518.     "LNKFLAGS = -s" "LIBS= -ltermlib -lsocket -lnsl -lm -lresolv"
  2519.  
  2520. #Solaris 2.5, SunPro compiler, curses, TCP/IP
  2521. solaris25:
  2522.     $(MAKE) "MAKE=$(MAKE)" solaris25x KTARGET=$${KTARGET:-$(@)} \
  2523.     "KFLAGS=-DSOLARIS25 $(KFLAGS)"
  2524.  
  2525. #Solaris 2.6, SunPro compiler, curses, TCP/IP
  2526. solaris26:
  2527.     $(MAKE) "MAKE=$(MAKE)" solaris25x KTARGET=$${KTARGET:-$(@)} \
  2528.     "KFLAGS=-DSOLARIS26 $(KFLAGS)"
  2529.  
  2530. #Solaris 7 (aka 2.7)
  2531. solaris7:
  2532.     $(MAKE) "MAKE=$(MAKE)" solaris25x KTARGET=$${KTARGET:-$(@)} \
  2533.     "KFLAGS=-DSOLARIS7 $(KFLAGS)"
  2534.  
  2535. #Solaris 8
  2536. solaris8:
  2537.     $(MAKE) "MAKE=$(MAKE)" solaris25x KTARGET=$${KTARGET:-$(@)} \
  2538.     "KFLAGS=-DSOLARIS8 -DSOLARIS7 $(KFLAGS)"
  2539.  
  2540. #Solaris 2.0-2.3, SunPro compiler, with SunLink X.25 support.
  2541. #This will only run if user has /opt/SUNWconn/lib/libsockx25.so.1
  2542. #exists and can be dynamically linked.
  2543. #NOTE: Do not change target to xermit -- it doesn't support X.25.
  2544. solaris2x25:
  2545.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.x+X.25 with SunPro cc...'
  2546.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  2547.     "CFLAGS = -O -i -Usun -DSVR4 -DSOLARIS -DDIRENT \
  2548.     -DSUNX25 -DTCPSOCKET -DHDBUUCP -DFNFLOAT \
  2549.     -DSELECT -DCK_CURSES -DCK_NEWTERM -DSTERMIOX $(KFLAGS)" \
  2550.     "LNKFLAGS = -s" \
  2551.     "LIBS= -ltermlib -L/opt/SUNWconn/lib -R/opt/SUNWconn/lib \
  2552.     -lsockx25 -lsocket -lnsl -lm -lresolv"
  2553.  
  2554. #Solaris 2.4, SunPro compiler, with SunLink X.25 support.
  2555. #This will only run if user has /opt/SUNWconn/lib/libsockx25.so.1
  2556. #exists and can be dynamically linked.
  2557. solaris24x25:
  2558.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.4+X.25 with SunPro cc...'
  2559.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  2560.     "CFLAGS = -O -i -Usun -DSVR4 -DSOLARIS -DSOLARIS24 -DDIRENT \
  2561.     -DSUNX25 -DTCPSOCKET -DHDBUUCP -DFNFLOAT \
  2562.     -DSELECT -DCK_CURSES -DCK_NEWTERM -DSTERMIOX $(KFLAGS)" \
  2563.     "LNKFLAGS = -s" \
  2564.     "LIBS= -ltermlib -L/opt/SUNWconn/lib -R/opt/SUNWconn/lib \
  2565.     -lsockx25 -lsocket -lnsl -lm -lresolv"
  2566.  
  2567. #Solaris 2.5, SunPro compiler, with SunLink X.25 support.
  2568. solaris25x25:
  2569.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.5+X.25 with SunPro cc...'
  2570.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  2571.     "CFLAGS = -O -i -Usun -DSVR4 -DSOLARIS -DSOLARIS25 -DDIRENT -DSUNX25 \
  2572.     -DTCPSOCKET -DHDBUUCP -DPOSIX -DCK_WREFRESH -DSELECT -DCK_CURSES \
  2573.     -DCK_NEWTERM -DSTERMIOX -DFNFLOAT -I/opt/SUNWconn/include $(KFLAGS)" \
  2574.     "LIBS= -ltermlib -L/opt/SUNWconn/lib -R/opt/SUNWconn/lib \
  2575.     -lsockx25 -lsocket -lnsl -lm -lresolv"
  2576.  
  2577. #Solaris 2.6, SunPro compiler, with SunLink X.25 support.
  2578. solaris26x25:
  2579.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.6+X.25 with SunPro cc...'
  2580.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  2581.     "CFLAGS = -O -i -Usun -DSVR4 -DSOLARIS -DSOLARIS26 -DDIRENT -DSUNX25 \
  2582.     -DTCPSOCKET -DHDBUUCP -DPOSIX -DCK_WREFRESH -DSELECT -DCK_CURSES \
  2583.     -DCK_NEWTERM -DSTERMIOX -DFNFLOAT -I/opt/SUNWconn/include $(KFLAGS)" \
  2584.     "LIBS= -ltermlib -L/opt/SUNWconn/lib -R/opt/SUNWconn/lib \
  2585.     -lsockx25 -lsocket -lnsl -lm -lresolv"
  2586.  
  2587. #The following sunosxxx entries are for debugging and testing only.
  2588.  
  2589. sunos41x:
  2590.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2591.     "CFLAGS= -O -DSUNOS41 -DDIRENT -DNOTLOG -DNOMSEND \
  2592.     -DNOUUCP -DNOSIGWINCH -DNOREDIRECT -DNOPUSH -DNOCCTRAP \
  2593.     -DNOICP -DNOLOCAL $(KFLAGS)"
  2594.  
  2595. #SunOS 4.1.x, debugging with Pure Software, Inc., Purify 2 (commercial runtime
  2596. #error-detection software for catching wild array references, etc).
  2597. #Before running the resulting wermit, you'll also need to define and export
  2598. #the following environment variables (as in this example):
  2599. #PURIFYHOME=/usr/local/purify ; export PURIFYHOME
  2600. #PURIFYCACHEDIR=/tmp ; export PURIFYCACHEDIR
  2601. sunos41cp:
  2602.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 / BSD / Curses / Purify...
  2603.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2604.     "CC2= purify -cache_dir=/usr/tmp cc" \
  2605.     "CFLAGS= -g -DSUNOS41 -DHDBUUCP -DDIRENT -DTCPSOCKET \
  2606.     -DSAVEDUID -DCK_CURSES $(KFLAGS)" \
  2607.     "LIBS= -lcurses -ltermcap"
  2608.  
  2609. #SunOS 4.1 with malloc debugger
  2610. sunos41md:
  2611.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 malloc debug...
  2612.     $(MAKE) mermit KTARGET=$${KTARGET:-$(@)} \
  2613.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DDIRENT -DTCPSOCKET \
  2614.     -DSAVEDUID $(KFLAGS) -Dmalloc=dmalloc -Dfree=dfree -DMDEBUG"
  2615.  
  2616. sunos41gmd:
  2617.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 with gcc and curses...
  2618.     $(MAKE) mermit KTARGET=$${KTARGET:-$(@)} "CC= gcc " "CC2= gcc" \
  2619.     "CFLAGS= -g -DSUNOS41 -DHDBUUCP -DDIRENT -DTCPSOCKET \
  2620.     -DNDGPWNAM -DSAVEDUID -DCK_CURSES -DRLOGCODE \
  2621.     $(KFLAGS) -Dmalloc=dmalloc -Dfree=dfree -DMDEBUG" \
  2622.     "LIBS= -lcurses -ltermcap"
  2623.  
  2624. #SunOS version 4.1, gcc, profiling with gprof, no debugging.
  2625. #To get profile, "make sunos4p" (on Sun), then "./wermit".  After running
  2626. #wermit, "gprof ./wermit | lpr" (or whatever) to get execution profile.
  2627. sunos41p:
  2628.     @echo Making C-Kermit $(CKVER) for SunOS 4.x with profiling...
  2629.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC= gcc " "CC2= gcc" \
  2630.     "CFLAGS= -DSUNOS41 -DNODEBUG -DSAVEDUID -DDIRENT -DTCPSOCKET \
  2631.     -DNDGPWNAM $(KFLAGS) -pg" "LNKFLAGS = -pg"
  2632.  
  2633. #SunOS version 4.1 or later, BSD environment, minimum features.
  2634. sunos41min:
  2635.     @echo Minimum interactive
  2636.     $(MAKE) "MAKE=$(MAKE)" sunos41 KTARGET=$${KTARGET:-$(@)} \
  2637.     "KFLAGS=-DNOSPL -DNOXMIT -DNOMSEND -DNOFRILLS -DNORETRY \
  2638.     -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG -DNOSCRIPT -DNOCSETS \
  2639.     -DNOSHOW -DNOSETKEY -DNOUUCP -DNORECALL -DNOREDIRECT \
  2640.     -DNOPUSH -DNOMDMHUP -DNOJC -DNOFDZERO -DNOESCSEQ \
  2641.     -DNONET -DCK_SMALL -DNOPUSH -DNOCKSPEED -DNOCKTIMERS -DNOLOGIN \
  2642.     -DNOCKXYZ -DNOKERBEROS -DNOMKDIR -DNOPATTERNS -DNOPERMS -DNOPIPESEND \
  2643.     -DNORECURSIVE -DNORENAME -DNORESEND -DNOSETKEY \
  2644.     -DNOTRIGGER -DNOTUNING $(KFLAGS)" "LNKFLAGS = -s"
  2645.  
  2646. #SunOS version 4.1, BSD environment, min size, command-line only...
  2647. sunos41m:
  2648.     @echo Minimum size
  2649.     $(MAKE) "MAKE=$(MAKE)" sunos41min KTARGET=$${KTARGET:-$(@)} \
  2650.     "KFLAGS=-DNOICP $(KFLAGS)"
  2651.  
  2652. #SunOS version 4.1, BSD environment, min size, cmd-line only, remote only...
  2653. #
  2654. sunos41mr:
  2655.     @echo Minimum size
  2656.     $(MAKE) "MAKE=$(MAKE)" sunos41min KTARGET=$${KTARGET:-$(@)} \
  2657.     "KFLAGS=-DNOICP -DNOLOCAL $(KFLAGS)"
  2658.  
  2659. #SunOS version 4.1, BSD environment, min size, interactive...
  2660. sunos41mi:
  2661.     @echo Minimum size
  2662.     $(MAKE) "MAKE=$(MAKE)" sunos41min KTARGET=$${KTARGET:-$(@)} \
  2663.     "KFLAGS=-DNOCMDL $(KFLAGS)"
  2664.  
  2665. #SunOS version 4.1, BSD environment, min size, interactive, remote only...
  2666. sunos41mir:
  2667.     @echo Minimum size
  2668.     $(MAKE) "MAKE=$(MAKE)" sunos41min KTARGET=$${KTARGET:-$(@)} \
  2669.     "KFLAGS=-DNOCMDL -DNOLOCAL $(KFLAGS)"
  2670.  
  2671. #SunOS 4.1, System V R3 environment (-i option omitted).
  2672. sunos41s5:
  2673.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 System V R3...
  2674.     @echo For testing purposes only - NOT for production use.
  2675.     @echo For a useable version, make sunos41 instead.
  2676.     $(MAKE) wermit "CC= /usr/5bin/cc " "CC2=/usr/5bin/cc " \
  2677.     KTARGET=$${KTARGET:-$(@)} \
  2678.     "CFLAGS = -DSUN4S5 -DDIRENT -DHDBUUCP -DCK_POLL $(KFLAGS) -O"
  2679.  
  2680. #As above, but with curses support
  2681. sunos41s5c:
  2682.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 System V R3...
  2683.     @echo Curses included.
  2684.     @echo For testing purposes only - NOT for production use.
  2685.     @echo For a useable version, make sunos41 instead.
  2686.     $(MAKE) wermit "CC= /usr/5bin/cc " "CC2=/usr/5bin/cc " \
  2687.     KTARGET=$${KTARGET:-$(@)} \
  2688.     "CFLAGS = -DSUN4S5 -DDIRENT -DHDBUUCP \
  2689.     -DCK_POLL -DCK_CURSES -DCK_NEWTERM $(KFLAGS) -O" "LIBS= -lcurses"
  2690.  
  2691. #As above, but with curses support AND net support
  2692. sunos41s5tcpc:
  2693.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 System V R3...
  2694.     @echo TCP/IP and curses included.  No debug log.
  2695.     @echo For testing purposes only - NOT for production use.
  2696.     @echo For a useable version, make sunos41 instead.
  2697.     $(MAKE) xermit "CC= /usr/5bin/cc " "CC2=/usr/5bin/cc " \
  2698.     KTARGET=$${KTARGET:-$(@)} \
  2699.     "CFLAGS = -DSUN4S5 -DDIRENT -DHDBUUCP -DCK_POLL \
  2700.     -DNODEBUG -DCK_CURSES -DCK_NEWTERM -DTCPSOCKET $(KFLAGS) -O" \
  2701.     "LIBS= -lcurses -lresolv"
  2702.  
  2703. # (End of SunOS test entries...)
  2704.  
  2705. #Apollo with Domain SR10.0 or later, BSD environment
  2706. #Reportedly, it might also help to add '-A,systype=bsd4.3' to CFLAGS.
  2707. #Reportedly, there is also a problem with getc & putc macros that can
  2708. #be handled by using '#ifdef apollo' somewhere to redefine them???
  2709. #On the other hand, other reports indicate that it works fine as-is.
  2710. #NOTE: This entry was previously like this:
  2711. #    $(MAKE) wermit "CFLAGS= -DNOFILEH -DBSD4 $(KFLAGS) -Uaegis \
  2712. #    -DTCPSOCKET -U__STDC__"
  2713. #Reports (Dec 91) indicate SR10 has an ANSI-compliant C compiler,
  2714. #in addition to an older one that claimed to be ANSI-compliant but wasn't.
  2715. #The following make entry (plus checks that are made in ckcdeb.h) detect
  2716. #which compiler is used and define the CK_ANSIC or NOANSI flags accordingly.
  2717. sr10-bsd:
  2718.     @echo Making C-Kermit $(CKVER) for Apollo SR10.0 / BSD ...
  2719.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  2720.     "CFLAGS= -O -DAPOLLOSR10 -DBSD43 -DTCPSOCKET -DCK_CURSES \
  2721.     -Uaegis $(KFLAGS)" "LIBS= -lcurses -ltermcap"
  2722.  
  2723. #Apollo with Domain SR10.0 or later, System V R3 environment.
  2724. #Don't use the optimizer (-O), it causes problems at runtime.
  2725. sr10-s5r3:
  2726.     @echo Making C-Kermit $(CKVER) for Apollo SR10.0 / Sys V R3 ...
  2727.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  2728.     "CFLAGS= -DNOFILEH -DSVR3 -DAPOLLOSR10 $(KFLAGS) -Uaegis -U__STDC__"
  2729.  
  2730. #Apollo Domain/IX (untested, try this if sr10-bsd doesn't work)
  2731. # -DTCPSOCKET can probably be added here.
  2732. apollobsd:
  2733.     @echo Making C-Kermit $(CKVER) for Apollo Domain/IX...
  2734.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  2735.     "CC= /bin/cc " "CC2= /bin/cc " \
  2736.     "CFLAGS= -DNOFILEH -DBSD4 -DAPOLLOBSD $(KFLAGS) -Uaegis"
  2737.  
  2738. #Version 7 Unix (see comments near top of makefile)
  2739. v7:
  2740.     @echo Making C-Kermit $(CKVER) for UNIX Version 7.
  2741.     @echo Read the makefile if you have trouble with this...
  2742.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  2743.     "CFLAGS=-DV7 -DPROCNAME=\\\"$(PROC)\\\" \
  2744.     -DBOOTNAME=\\\"$(BOOTFILE)\\\" -DNPROCNAME=\\\"$(NPROC)\\\" \
  2745.     -DNPTYPE=$(NPTYPE) $(DIRECT) -DO_RDWR=2 -DO_NDELAY=0 -DO_SCCS_ID \
  2746.     $(KFLAGS)"
  2747.  
  2748. #AT&T UNIX System V R3, signal() is void rather than int.
  2749. #Uses dirent.h and Honey DanBer UUCP.
  2750. #Add the -i link option if necessary.
  2751. #If you get errors like "ws_row undefined" in ckutio.c, add -DNONAWS.
  2752. sys5r3:
  2753.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R3...'
  2754.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  2755.     "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP $(KFLAGS) -O" \
  2756.     "LNKFLAGS="
  2757.  
  2758. #As above, plus curses.
  2759. sys5r3c:
  2760.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R3 + curses...'
  2761.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  2762.     "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -DCK_CURSES $(KFLAGS) -O" \
  2763.     "LNKFLAGS=" "LIBS = -ltermlib"
  2764.  
  2765. iclsys5r3:
  2766.     make sys5r3 KTARGET=$${KTARGET:-$(@)} KFLAGS=-DICLSVR3
  2767.  
  2768. #AT&T UNIX System V R3.  As above, but no ANSI prototyping.
  2769. sys5r3na:
  2770.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R3...'
  2771.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  2772.     "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -DNOANSI $(KFLAGS) -O" \
  2773.     "LNKFLAGS="
  2774.  
  2775. #AT&T UNIX System V R3, for 3B computers with Wollongong TCP/IP.
  2776. sys5r3net3b:
  2777.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX SVR3/3B/Wollongong...'
  2778.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  2779.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DWOLLONGONG $(KFLAGS) \
  2780.     -O" "LIBS= -lnet -lnsl_s" "LNKFLAGS ="
  2781.  
  2782. #AT&T UNIX System V R3, signal() is void rather than int.
  2783. #Uses dirent.h and Honey DanBer uucp, has <termiox.h>.
  2784. #Has <termiox.h> for RTS/CTS flow control.
  2785. sys5r3tx:
  2786.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R3...'
  2787.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  2788.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DTERMIOX $(KFLAGS) -i -O" \
  2789.     "LNKFLAGS ="
  2790.  
  2791. #AT&T UNIX System V R3, signal() is void rather than int.
  2792. #Uses dirent.h and Honey DanBer uucp, has <termiox.h>.
  2793. #Has <sys/termiox.h> for RTS/CTS flow control.
  2794. sys5r3sx:
  2795.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R3...'
  2796.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  2797.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DSTERMIOX $(KFLAGS) -i -O" \
  2798.     "LNKFLAGS ="
  2799.  
  2800. #AT&T UNIX System V R4.
  2801. #Has <termiox.h>.
  2802. sys5r4:
  2803.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  2804.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  2805.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DTERMIOX $(KFLAGS)" \
  2806.     "LNKFLAGS = -s"
  2807.  
  2808. #AT&T UNIX System V R4 with Wollongong TCP/IP.
  2809. #Has <termiox.h>.
  2810. sys5r4net:
  2811.     @echo 'Making C-Kermit $(CKVER) for System V R4 + Wollongong TCP/IP...'
  2812.     @echo ' If sockets-library routines are missing at link time, then'
  2813.     @echo ' try the sys5r4net2 entry.'
  2814.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  2815.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP \
  2816.     -DTERMIOX -DWOLLONGONG $(KFLAGS)" "LNKFLAGS = -s"
  2817.  
  2818. #As above, but needs libs included.
  2819. sys5r4net2:
  2820.     @echo ' PLEASE READ ckuins.txt IF YOU GET MISSING HEADER FILES.'
  2821.     @echo ' (Search for WOLLONGONG...)'
  2822.     $(MAKE) sys5r4net KTARGET=$${KTARGET:-$(@)} "LIBS= -lsocket -lnsl"
  2823.  
  2824. #As above plus curses.
  2825. sys5r4net2c:
  2826.     echo 'Making C-Kermit $(CKVER) for System V R4 + Wollongong TCP/IP...'
  2827.     @echo ' PLEASE READ ckuins.txt IF YOU GET MISSING HEADER FILES.'
  2828.     @echo ' (Search for WOLLONGONG...)'
  2829.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  2830.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP \
  2831.     -DTERMIOX -DWOLLONGONG -DCK_CURSES $(KFLAGS)" "LNKFLAGS = -s" \
  2832.     "LIBS= -lsocket -lnsl -lcurses"
  2833.  
  2834. #DELL UNIX System V R4.
  2835. #Has <sys/termiox.h>, regular Berkeley sockets library, i.e. in.h and inet.h
  2836. #are not misplaced in sys (rather than netinet and arpa, respectively).
  2837. #Uses ANSI C constructs, advisory file locking on devices, etc.
  2838. #Warning: -DSTERMIOX enables hardware flow control (RTS/CTS), but reportedly
  2839. #this does not work with the normal drivers.  However, it might still work
  2840. #on non-Dell systems, or even Dell systems with different drivers installed.
  2841. dellsys5r4:
  2842.     @echo 'Making C-Kermit $(CKVER) for DELL UNIX System V R4...'
  2843.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2844.     "CFLAGS = -O -DSVR4 -DDELL_SVR4 -DDIRENT -DHDBUUCP \
  2845.     -DTCPSOCKET -DSTERMIOX -DCK_POLL $(KFLAGS)" \
  2846.     "LIBS= -lsocket -lnsl" "LNKFLAGS = -s"
  2847.  
  2848. #As above, curses support added...
  2849. dellsys5r4c:
  2850.     @echo 'Making C-Kermit $(CKVER) for DELL UNIX System V R4...'
  2851.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2852.     "CFLAGS = -O -DSVR4 -DDELL_SVR4 -DDIRENT -DHDBUUCP \
  2853.     -DTCPSOCKET -DSTERMIOX -DCK_CURSES -DCK_POLL \
  2854.     $(KFLAGS)" "LIBS= -lsocket -lnsl -lcurses -ltermcap" "LNKFLAGS = -s"
  2855.  
  2856. #Mininum interactive: As above, but with every conceivable option removed.
  2857. dellsys5r4mi:
  2858.     @echo 'Making C-Kermit $(CKVER) for DELL UNIX System V R4...'
  2859.     @echo 'Minimum-size interactive'
  2860.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2861.     "CFLAGS = -O -DSVR4 -DDELL_SVR4 -DDIRENT \
  2862.     -UTCPSOCKET -DNOCMDL -DNOSPL -DNOXMIT -DCK_POLL \
  2863.     -DNOMSEND -DNOFRILLS -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG \
  2864.     -DNOSCRIPT -DNOCSETS -DNOSHOW -DNOSETKEY -DNOSERVER -DNOUUCP \
  2865.     -DNOPUSH -DNOMDMHUP -DNOJC -DNOFDZERO -DNOESCSEQ  \
  2866.     $(KFLAGS)" "LNKFLAGS = -s"
  2867.  
  2868. #Command-line only version.
  2869. dellsys5r4m:
  2870.     @echo 'Making C-Kermit $(CKVER) for DELL UNIX System V R4...'
  2871.     @echo 'Command-line only'
  2872.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2873.     "CFLAGS = -O -DSVR4 -DDELL_SVR4 -DDIRENT \
  2874.     -UTCPSOCKET -DNOICP -DNOFRILLS -DNODIAL -DNODEBUG -DNOTLOG -DNOCSETS \
  2875.     -DNOSETKEY -DNOESCSEQ -DNOJC -DNOFDZERO -DCK_POLL \
  2876.     $(KFLAGS)" "LNKFLAGS = -s"
  2877.  
  2878. #AT&T UNIX System V R4.
  2879. #Has <sys/termiox.h>.
  2880. sys5r4sx:
  2881.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  2882.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  2883.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DSTERMIOX $(KFLAGS)" \
  2884.     "LNKFLAGS = -s" "LIBS=$(LIBS)"
  2885.  
  2886. #AT&T UNIX System V R4.
  2887. #Has <sys/termiox.h>, regular Berkeley sockets library, i.e. in.h and inet.h
  2888. #are not misplaced in sys (rather than netinet and arpa, respectively).
  2889. #Uses ANSI C constructs, <sys/termiox.h>, etc etc.
  2890. sys5r4sxtcp:
  2891.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  2892.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2893.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP \
  2894.     -DSTERMIOX -DTCPSOCKET $(KFLAGS)" \
  2895.     "LIBS= -lsocket -lnsl $(LIBS)" "LNKFLAGS= -s"
  2896.  
  2897. #AT&T UNIX System V R4.
  2898. #As above + curses.
  2899. sys5r4sxtcpc:
  2900.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  2901.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2902.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP \
  2903.     -DSTERMIOX  -DCK_CURSES -DTCPSOCKET $(KFLAGS)" \
  2904.     "LIBS= -lsocket -lnsl -lcurses -ltermcap $(LIBS)" "LNKFLAGS = -s"
  2905.  
  2906. #AT&T UNIX System V R4.  CONSENSYS SVR4.2-1.
  2907. #Has <sys/termiox.h>, regular Berkeley sockets library, i.e. in.h and inet.h
  2908. #are not misplaced in sys (rather than netinet and arpa, respectively).
  2909. #Uses ANSI C constructs, <sys/termiox.h>, etc.
  2910. # Fullscreen -DCK_CURSES added (with curses & termcap libs)
  2911. # Submission by Robert Weiner/Programming Plus, rweiner@watsun.cc.columbia.edu
  2912. sys5r4sxtcpf:
  2913.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  2914.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2915.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP \
  2916.     -DSTERMIOX -DTCPSOCKET -DCK_CURSES $(KFLAGS)" \
  2917.     "LIBS= -lsocket -lnsl -L/usr/ccs/lib -lcurses -ltermcap" \
  2918.     "LIBS=$(LIBS)" "LNKFLAGS = -s"
  2919.  
  2920. #Smallest possible version for System V R4
  2921. s5r4m:
  2922.     @echo Minimum size
  2923.     $(MAKE) "MAKE=$(MAKE)" sys5r4sx KTARGET=$${KTARGET:-$(@)} \
  2924.     "KFLAGS=$(KFLAGS) -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG \
  2925.     -DNOSCRIPT -DNOCSETS -DNOICP -DNOMSEND -UTCPSOCKET" "LNKFLAGS = -s"
  2926.  
  2927. #Smallest possible interactive version of above
  2928. s5r4mi:
  2929.     @echo Minimum interactive
  2930.     $(MAKE) "MAKE=$(MAKE)" sys5r4sx \
  2931.     "KFLAGS=-DNOSPL -DNOXMIT -DNOMSEND -DNOFRILLS -DNOSHOW \
  2932.     -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG -DNOSCRIPT -DNOCSETS -DNOSETKEY \
  2933.     -UTCPSOCKET $(KFLAGS)" "LNKFLAGS = -s"
  2934.  
  2935. #AT&T UNIX System V R4, has <sys/termiox.h>
  2936. #ANSI C function prototyping disabled.
  2937. sys5r4sxna:
  2938.     @echo No ANSI C prototyping...
  2939.     $(MAKE) "MAKE=$(MAKE)" sys5r4sx KTARGET=$${KTARGET:-$(@)} \
  2940.     "KFLAGS=$(KFLAGS) -DNOANSI"
  2941.  
  2942. #Stratus FTX.
  2943. ftx:
  2944.     @echo 'Making C-Kermit $(CKVER) for Stratus FTX 3.x...'
  2945.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  2946.     "CFLAGS = -O -DSVR4 -DFTX -DDIRENT -DHDBUUCP -DSTERMIOX 
  2947.     -DNOGETUSERSHELL +DA1.1 $(KFLAGS)" \
  2948.     "LNKFLAGS = -s" "LIBS=$(LIBS)"
  2949.  
  2950. #Stratus FTX + TCP/IP.
  2951. ftxtcp:
  2952.     @echo 'Making C-Kermit $(CKVER) for Stratus FTX 3.x...'
  2953.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2954.     "CFLAGS = -O -DSVR4 -DFTX -DDIRENT -DHDBUUCP -DNOGETUSERSHELL \
  2955.     -DSTERMIOX -DTCPSOCKET -DNO_DNS_SRV +DA1.1 $(KFLAGS)" \
  2956.     "LIBS= -lsocket -lnsl $(LIBS)" "LNKFLAGS= -s"
  2957.  
  2958. #NCR MP-RAS 2.03 or 3.02
  2959. mpras:
  2960.     @echo 'Making C-Kermit $(CKVER) for NCR MP-RAS...'
  2961.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  2962.     "CFLAGS = -O -DSVR4 -DNCRMPRAS -DDIRENT -DHDBUUCP -DSTERMIOX \
  2963.     -DNOGETUSERSHELL -DNO_DNS_SRV $(KFLAGS)" \
  2964.     "LNKFLAGS = -s" "LIBS=$(LIBS)"
  2965.  
  2966. #NCR MP-RAS 2.03 or 3.02 with TCP/IP and curses
  2967. mprastcpc:
  2968.     @echo 'Making C-Kermit $(CKVER) for NCR MP-RAS + TCP/IP + curses...'
  2969.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CFLAGS=-DTCPSOCKET \
  2970.     -DCK_CURSES -DSVR4 -DNCRMPRAS -DDIRENT -DHDBUUCP -DSTERMIOX \
  2971.     -DNOGETUSERSHELL -DNO_DNS_SRV -O $(KFLAGS)" "LNKFLAGS = -s" \
  2972.     "LIBS= -lsocket -lnsl -lcurses -ltermcap $(LIBS)"
  2973.  
  2974. #SINIX-L V5.41 - includes curses, tcp/ip - Use this one for i386.
  2975. #This version of SINIX doesn't like fdopen() or popen().
  2976. sinix541:
  2977.     @echo 'Making C-Kermit $(CKVER) for Siemens/Nixdorf SINIX V5.41/i386'
  2978.     $(MAKE) ckcpro.$(EXT) "CFLAGS = -DSINIX -DSVR4 -DDIRENT -DHDBUUCP \
  2979.     -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DSELECT -DCK_ANSIC -DNO_DNS_SRV \
  2980.     -DSNI541 -DNOGETUSERSHELL -DNONETCMD -DNOPOPEN -kansi -W0 $(KFLAGS)"
  2981.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2982.     "CFLAGS = -DSINIX -DSVR4 -DDIRENT -DHDBUUCP -DNO_DNS_SRV -DNOPOPEN \
  2983.     -DFNFLOAT -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DSELECT -DCK_ANSIC \
  2984.     -DSNI541 -DNOGETUSERSHELL -DNONETCMD -kansi -W0 -O $(KFLAGS)" \
  2985.     "LIBS= -lsocket -lnsl -lcurses -ltermcap -lm" "LNKFLAGS = -s"
  2986.  
  2987. sinix541i:
  2988.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=$(KFLAGS)" sinix541
  2989.  
  2990. #SINIX V5.42 - includes curses, tcp/ip, everything - Use this one for MIPS.
  2991. # As of C-Kermit 6.1, optimizer can't handle ckcpro.c.
  2992. sinix542:
  2993.     @echo 'Making C-Kermit $(CKVER) for Siemens/Nixdorf SINIX V5.42...'
  2994.     $(MAKE) ckcpro.$(EXT) "CFLAGS = -DSINIX -DSVR4 -DDIRENT -DHDBUUCP \
  2995.     -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DSELECT -DCK_ANSIC -DNO_DNS_SRV \
  2996.     -DSNI542 -DNOGETUSERSHELL -kansi -W0 $(KFLAGS)"
  2997.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2998.     "CFLAGS = -DSINIX -DSVR4 -DDIRENT -DHDBUUCP -DNO_DNS_SRV \
  2999.     -DFNFLOAT -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DSELECT -DCK_ANSIC \
  3000.     -DSNI542 -DNOGETUSERSHELL -kansi -W0 -O -KOlimit,2400 $(KFLAGS)" \
  3001.     "LIBS= -lsocket -lnsl -lcurses -ltermcap -lm" "LNKFLAGS = -s"
  3002.  
  3003. #SINIX V5.42 - includes curses, tcp/ip, everything - Use this one for Intel.
  3004. # (Note: SNI discontinued Intel support after 5.42.)
  3005. sinix542i:
  3006.     @echo 'Making C-Kermit $(CKVER) for Siemens/Nixdorf SINIX-Z V5.42...'
  3007.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3008.     "CFLAGS = -DSINIX -DSVR4 -DDIRENT -DHDBUUCP -DFNFLOAT -DSTERMIOX \
  3009.     -DCK_CURSES -DTCPSOCKET -DSELECT -DCK_ANSIC -DNO_DNS_SRV -kansi \
  3010.     -DSNI542 $(KFLAGS)" \
  3011.     "LIBS= -lsocket -lnsl -lcurses -ltermcap -lm" \
  3012.     "LNKFLAGS = -s"
  3013.  
  3014. #Siemens Nixdorf Reliant UNIX V5.43 - includes curses, tcp/ip, everything:
  3015. # . gettimeofday() suddenly has only one arg instead of two (GTODONEARG).
  3016. # . The syntax of the Olimit specifier changed.
  3017. # . The name was changed from SINIX to Reliant UNIX in version 5.43C.
  3018. sni543:
  3019.     @echo 'Making C-Kermit $(CKVER) for Siemens/Nixdorf Reliant UNIX V5.43'
  3020.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3021.     "CFLAGS = -DSINIX -DSNI543 -DSVR4 -DDIRENT -DHDBUUCP \
  3022.     -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DSELECT -DCK_ANSIC -DGTODONEARG \
  3023.     -DNO_DNS_SRV -kansi -W0 -O -F Olimit,3100 $(KFLAGS)" \
  3024.     "LIBS= -lsocket -lnsl -lcurses -ltermcap" "LNKFLAGS = -s"
  3025.  
  3026. #Siemens Nixdorf Reliant UNIX V5.44 - Like 5.43 but with different banner.
  3027. sni544:
  3028.     @echo 'Making C-Kermit $(CKVER) for Siemens/Nixdorf Reliant UNIX V5.44'
  3029.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3030.     "CFLAGS = -DSINIX -DSNI544 -DSVR4 -DDIRENT -DHDBUUCP \
  3031.     -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DSELECT -DCK_ANSIC -DGTODONEARG \
  3032.     -DNO_DNS_SRV -kansi -W0 -O -K Olimit,3100 $(KFLAGS)" \
  3033.     "LIBS= -lsocket -lnsl -lcurses -ltermcap" "LNKFLAGS = -s"
  3034.  
  3035. #Commodore Amiga with AT&T UNIX System V R4 and TCP/IP support.
  3036. #Has <sys/termiox.h>.
  3037. svr4amiganet:
  3038.     @echo 'Making C-Kermit $(CKVER) for Amiga SVR4 + TCP/IP...'
  3039.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC=gcc" "CC2=gcc" \
  3040.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DSTERMIOX \
  3041.     -DTCPSOCKET -DCK_CURSES $(KFLAGS)" "LNKFLAGS = -s" \
  3042.     "LIBS = -lsocket -lnsl -ltermlib"
  3043.  
  3044. #SCO (Novell (Univel)) UnixWare 1.x or 2.0, no TCP/IP.
  3045. #This assumes the Novell SDK 1.0, which has <sys/termiox.h>.
  3046. #UnixWare users with the "Prime Time Freeware" CD-ROM SDK will probably have
  3047. #to use the sys5r4 entry (no termiox.h file, so no hardware flow control).
  3048. #Change -DSELECT to -DCK_POLL if -DSELECT causes problems.
  3049. # NOTE: Unixware 1.x builds have not been tried in C-Kermit 7.0.
  3050. unixware:
  3051.     $(MAKE) "MAKE=$(MAKE)" sys5r4sx KTARGET=$${KTARGET:-$(@)} \
  3052.     "KFLAGS=-DOLD_UNIXWARE -DCK_NEWTERM -DSELECT -DNOGETUSERSHELL \
  3053.     -DNOSYSLOG $(KFLAGS)" "LIBS=-lcrypt"
  3054.  
  3055. #UnixWare 1.x or 2.0 with TCP/IP and curses.
  3056. #fork()-based CONNECT - no high serial speeds.
  3057. unixwarenetc:
  3058.     $(MAKE) "MAKE=$(MAKE)" sys5r4sxtcpc KTARGET=$${KTARGET:-$(@)} \
  3059.     "KFLAGS=-DOLD_UNIXWARE -DCK_NEWTERM -DSELECT -DNOGETUSERSHELL \
  3060.     -DNOSYSLOG $(KFLAGS)" "LIBS=-lcrypt -lresolv"
  3061.  
  3062. uw10:
  3063.     $(MAKE) unixwarenetc KTARGET=$${KTARGET:-$(@)} "KFLAGS=$(KFLAGS)"
  3064.  
  3065. #This is for Unixware 2.0.x only - use unixware21 for UW 2.1.x.
  3066. #Has special library search and enables special kludge around library
  3067. #foulup regarding vfork() (which Kermit doesn't use).  Forces POSIX-style
  3068. #hangup.
  3069. unixware20:
  3070.     @echo 'Making C-Kermit $(CKVER) for UnixWare 2.0.x...'
  3071.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3072.     "CFLAGS = -O -DOLD_UNIXWARE -DSELECT -DSVR4 -DDIRENT -DHDBUUCP \
  3073.     -DBIGBUFOK -DNOGETUSERSHELL -DSTERMIOX  -DCK_CURSES -DTCPSOCKET \
  3074.     -DUW200 -DFNFLOAT -DCK_NEWTERM -DNOSYSLOG -DHUP_POSIX $(KFLAGS)" \
  3075.     "LIBS= -lsocket -lnsl -lcurses -ltermcap -lcrypt -lgen -lm -lresolv" \
  3076.     "LNKFLAGS = -s"
  3077.  
  3078. uw20:
  3079.     $(MAKE) unixware20 KTARGET=$${KTARGET:-$(@)} "KFLAGS=$(KFLAGS)"
  3080.  
  3081. #Adds big buffers ("large memory model") - otherwise the same as UnixWare 1.x.
  3082. unixware21:
  3083.     @echo 'Making C-Kermit $(CKVER) for UnixWare 2.1.x...'
  3084.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3085.     "CFLAGS = -O -DUNIXWARE -DSELECT -DSVR4 -DDIRENT -DHDBUUCP -DBIGBUFOK \
  3086.     -DNOGETUSERSHELL -DNOSYSLOG -DSTERMIOX  -DCK_CURSES -DTCPSOCKET \
  3087.     -DCK_NEWTERM -DFNFLOAT $(KFLAGS)" \
  3088.     "LIBS= -lsocket -lnsl -lcurses -ltermcap -lcrypt -lm -lresolv \
  3089.     $(LIBS)" "LNKFLAGS = -s"
  3090.  
  3091. uw21:
  3092.     $(MAKE) unixware21 KTARGET=$${KTARGET:-$(@)} "KFLAGS=$(KFLAGS)"
  3093.  
  3094. #Unixware 2.1 with IKSD support
  3095. uw21iksd:
  3096.     $(MAKE) unixware21 KTARGET=$${KTARGET:-$(@)} \
  3097.     "KFLAGS=-DCK_SHADOW $(KFLAGS)" "LIBS= -lgen"
  3098.  
  3099. #UnixWare 7 with tc[gs]etspeed() high serial speeds & select()-based CONNECT
  3100. #NOTE: This is the one we use.
  3101. unixware7t:
  3102.     @echo 'Making C-Kermit $(CKVER) for UnixWare 7 with POSIX i/o...'
  3103.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3104.     "CFLAGS = -O -DUNIXWARE -DSELECT -DSVR4 -DDIRENT -DHDBUUCP -DBIGBUFOK \
  3105.     -DFNFLOAT -DNOGETUSERSHELL -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DPOSIX \
  3106.     -DUW7 -DUSETCSETSPEED -DCK_NEWTERM -DNOLSTAT -DDCLTIMEVAL $(KFLAGS)" \
  3107.     "LIBS=-lsocket -lnsl -lcurses -ltermcap -lcrypt -lm -lresolv $(LIBS)" \
  3108.     "LNKFLAGS = -s"
  3109.  
  3110. #UnixWare 7 - select()-based CONNECT - no POSIX i/o - no high serial speeds.
  3111. #In other words, just like the UnixWare 1 and 2 builds.
  3112. unixware7x:
  3113.     @echo 'Making C-Kermit $(CKVER) for UnixWare 7...'
  3114.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3115.     "CFLAGS = -O -DUNIXWARE -DSELECT -DSVR4 -DDIRENT -DHDBUUCP -DBIGBUFOK \
  3116.     -DUW7 -DNOGETUSERSHELL -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DNOLSTAT \
  3117.     -DFNFLOAT -DCK_NEWTERM $(KFLAGS)" \
  3118.     "LIBS=-lsocket -lnsl -lcurses -ltermcap -lcrypt -lm -lresolv $(LIBS)" \
  3119.     "LNKFLAGS = -s"
  3120.  
  3121. #UnixWare 7 with POSIX cfset[oi]speed() to allow high serial speeds.
  3122. #(but the high speeds don't work)
  3123. unixware7p:
  3124.     @echo 'Making C-Kermit $(CKVER) for UnixWare 7 with POSIX i/o...'
  3125.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3126.     "CFLAGS = -O -DUNIXWARE -DSELECT -DSVR4 -DDIRENT -DHDBUUCP -DBIGBUFOK \
  3127.     -DUW7 -DNOGETUSERSHELL -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DPOSIX \
  3128.     -DFNFLOAT -DCK_NEWTERM -DNOLSTAT $(KFLAGS)" \
  3129.     "LIBS=-lsocket -lnsl -lcurses -ltermcap -lcrypt -lm -lresolv $(LIBS)" \
  3130.     "LNKFLAGS = -s"
  3131.  
  3132. # UnixWare 7 built with gcc - This does not work at all...
  3133. # Reportedly gcc 2.8.1 is broken on Unixware 7.  Try egcs?
  3134. unixware7g:
  3135.     @echo 'Making C-Kermit $(CKVER) for UnixWare 7 with gcc...'
  3136.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3137.     "CC = gcc" "CC2 = gcc" "LNKFLAGS = -s -shlib"
  3138.     "CFLAGS = -O -DUNIXWARE -DSELECT -DSVR4 -DDIRENT -DHDBUUCP -DBIGBUFOK \
  3139.     -DUW7 -DNOGETUSERSHELL -DSTERMIOX  -DCK_CURSES -DTCPSOCKET -DNOLSTAT \
  3140.     -DFNFLOAT -DCK_NEWTERM $(KFLAGS)" \
  3141.     "LIBS=-lsocket -lnsl -lcurses -ltermcap -lcrypt -lm -lresolv $(LIBS)" \
  3142.     "LNKFLAGS = -s"
  3143.  
  3144. unixware7:
  3145.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=$(KFLAGS)" unixware7t \
  3146.     KTARGET=$${KTARGET:-$(@)}
  3147.  
  3148. uw7:
  3149.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=$(KFLAGS)" unixware7t \
  3150.     KTARGET=$${KTARGET:-$(@)}
  3151.  
  3152. #UnixWare 7 with OpenSSL
  3153. uw7ssl:
  3154.     @echo 'Making C-Kermit $(CKVER) for UnixWare 7 and OpenSSL...'
  3155.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} \
  3156.     "CFLAGS = -O -DCK_AUTHENTICATION -DCK_SSL -DCK_SHADOW
  3157.     -DUNIXWARE -DSELECT -DSVR4 -DDIRENT -DHDBUUCP -DBIGBUFOK \
  3158.     -DFNFLOAT -DNOGETUSERSHELL -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DPOSIX \
  3159.     -DUW7 -DUSETCSETSPEED -DCK_NEWTERM -DNOLSTAT -DDCLTIMEVAL \
  3160.     -I/usr/local/ssl/include $(KFLAGS)" \
  3161.     "LIBS=-lsocket -lnsl -lcurses -ltermcap -lcrypt -lm -lresolv \
  3162.     -lgen -lcudk70 -L/usr/local/ssl/lib -lssl -lcrypto $(LIBS)" \
  3163.     "LNKFLAGS = -s"
  3164.  
  3165. #As above but includes Shadow password support needed for IKSD.
  3166. uw7iksd:
  3167.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=-DCK_SHADOW $(KFLAGS)" \
  3168.     KTARGET=$${KTARGET:-$(@)} "LIBS= -lgen" unixware7t
  3169.  
  3170. #As above but links with static API for realpath() so a binary built
  3171. #with this target on UW7.1 will also work on 7.0.  Requires SCO UDK
  3172. #rather than the stock compiler.
  3173. uw7iksdudk:
  3174.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=-DCK_SHADOW $(KFLAGS)" \
  3175.     KTARGET=$${KTARGET:-$(@)} "LIBS= -lgen -lcudk70" unixware7t
  3176.  
  3177. #ESIX SVR4.0.3 or 4.04 with TCP/IP support.
  3178. #Has <sys/termiox.h>, ANSI C function prototyping disabled.
  3179. #Add -m486 to CFLAGS if desired.
  3180. esixr4:
  3181.     @echo 'Making C-Kermit $(CKVER) for ESIX SVR4 + TCP/IP...'
  3182.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3183.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DNOANSI \
  3184.     -DSTERMIOX -DTCPSOCKET $(KFLAGS)" "LNKFLAGS = -s" \
  3185.     "LIBS = -lsocket -lnsl"
  3186.  
  3187. #AT&T UNIX System V R4.
  3188. #Has <sys/termiox.h>, Wollongong WIN/TCP TCP/IP.
  3189. sys5r4sxnet:
  3190.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  3191.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3192.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP \
  3193.     -DSTERMIOX -DWOLLONGONG $(KFLAGS)" "LNKFLAGS = -s"
  3194.  
  3195. #AT&T UNIX System V R4, no <termio.x> or <sys/termio.x>.
  3196. sys5r4nx:
  3197.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  3198.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3199.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP $(KFLAGS)" \
  3200.     "LNKFLAGS = -s"
  3201.  
  3202. #AT&T UNIX System V R4, no <termio.x> or <sys/termio.x>, curses, TCP/IP.
  3203. sys5r4nxnetc:
  3204.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  3205.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3206.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP \
  3207.     -DCK_CURSES -DTCPSOCKET $(KFLAGS)" \
  3208.     "LIBS = -lcurses -lsocket -lnsl -ltcpip" \
  3209.     "LNKFLAGS = -s"
  3210.  
  3211. #AT&T UNIX System V R4, no <termio.x> or <sys/termio.x>, Wollongong TCP/IP.
  3212. sys5r4nxtwg:
  3213.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  3214.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3215.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DWOLLONGONG $(KFLAGS)"
  3216.     "LNKFLAGS = -s"
  3217.  
  3218. #ICL UNIX System V R4.(DRS N/X) version :-
  3219. #UNIX System V Release 4.0 ICL DRS 6000 (SPARC)
  3220. #DRS/NX 6000 SVR4 Version 5  Level 1  Increment 4
  3221. #Has <sys/termiox.h>, regular Berkeley sockets library, i.e. in.h and inet.h
  3222. #are not misplaced in sys (rather than netinet and arpa, respectively).
  3223. #Uses ANSI C constructs, advisory file locking on devices, etc.
  3224. #Remove -lnsl if it causes trouble.
  3225. iclsys5r4:
  3226.     @echo 'Making C-Kermit $(CKVER) for ICL UNIX System V R4 (DRS N/X)'
  3227.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3228.     "CFLAGS = -O -DSVR4 -DICL_SVR4 -DDIRENT -DHDBUUCP -DNOGETUSERSHELL \
  3229.     -DSTERMIOX -DTCPSOCKET $(KFLAGS)" \
  3230.     "LIBS= -lsocket -lnsl -lresolv " "LNKFLAGS = -s"
  3231.  
  3232. #As above but for DRS/NX 4.2MP 7MPlus.
  3233. iclsys5r4m+:
  3234.     @echo 'Making C-Kermit $(CKVER) for ICL UNIX System V R4 DRS/NX 4.2MP+'
  3235.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3236.     "CFLAGS = -O -DSVR4 -DICL_SVR4 -DDIRENT -DHDBUUCP -DNOIKSD \
  3237.     -DSTERMIOX -DTCPSOCKET $(KFLAGS)" \
  3238.     "LIBS= -lsocket -lnsl -lm -lc -g -lgen " "LNKFLAGS = -s"
  3239.  
  3240. #As above but for DRS/NX 4.2MP 7MPlus with IKSD support.
  3241. iclsys5r4m+iksd:
  3242.     @echo 'Making C-Kermit $(CKVER) for ICL UNIX System V R4 DRS/NX 4.2MP+'
  3243.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3244.     "CFLAGS = -O -DSVR4 -DICL_SVR4 -DDIRENT -DHDBUUCP -DNOGETUSERSHELL \
  3245.     -DSTERMIOX -DTCPSOCKET $(KFLAGS)" \
  3246.     "LIBS= -lsocket -lnsl -lm -lc -g -lgen -lresolv " "LNKFLAGS = -s"
  3247.  
  3248. iclsys5r4_486:
  3249.     $(MAKE) "MAKE=$(MAKE)" iclsys5r4 KTARGET=$${KTARGET:-$(@)}
  3250.  
  3251. #Data General DG/UX 4.30 (System V R3) for DG AViiON, with TCP/IP support.
  3252. dgux430:
  3253.     @echo 'Making C-Kermit $(CKVER) for DG AViiON DG/UX 4.30...'
  3254.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3255.     "CFLAGS = -O -DDGUX430 -DSVR3 -DDIRENT -DTCPSOCKET \
  3256.     -DNOINADDRX -DNOGETUSERSHELL $(KFLAGS)"
  3257.  
  3258. #Data General DG/UX 4.30 for DG AViiON, with TCP/IP support with BSDisms.
  3259. dgux430bsd:
  3260.     @echo 'Making C-Kermit $(CKVER) for DG AViiON DG/UX 4.30...'
  3261.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3262.     "CFLAGS = -O -DDGUX430 -D_BSD_SOURCE -DBSD4 \
  3263.     -DNOINADDRX -DTCPSOCKET -DNOGETUSERSHELL $(KFLAGS)"
  3264.  
  3265. #Data General DG/UX 5.4 (System V R4) for DG AViiON, with TCP/IP support.
  3266. #Add -lsocket -lnsl if inet_addr comes up missing...
  3267. #Hmmm - I really think CK_POLL can be removed from this one in which case
  3268. #there is no difference between dgux540 and dgux540i.
  3269. dgux540:
  3270.     @echo 'Making C-Kermit $(CKVER) for DG AViiON DG/UX 5.40...'
  3271.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3272.     "CFLAGS = -O -DDGUX540 -DDIRENT -DHDBUUCP -DNOINADDRX \
  3273.     -DSTERMIOX -DTCPSOCKET -DCK_POLL -DNOGETUSERSHELL $(KFLAGS)"
  3274.  
  3275. #Data General DG/UX 5.40 (System V R4) for Intel AViiON, with TCP/IP support.
  3276. dgux540i:
  3277.     @echo 'Making C-Kermit $(CKVER) for DG AViiON DG/UX 5.40...'
  3278.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3279.     "CFLAGS = -O -DDGUX540 -DDIRENT -DHDBUUCP -DNOINADDRX \
  3280.     -DSTERMIOX -DTCPSOCKET -DNOGETUSERSHELL $(KFLAGS)" \
  3281.     "LIBS = -lsocket -lnsl"
  3282.  
  3283. dgux54:
  3284.     make dgux540 KTARGET=$${KTARGET:-$(@)}
  3285.  
  3286. #Data General DG/UX 5.4 (= System V R4) for DG AViiON, with TCP/IP support.
  3287. # And curses.
  3288. dgux540c:
  3289.     @echo 'Making C-Kermit $(CKVER) for DG AViiON DG/UX 5.4...'
  3290.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3291.     "CFLAGS = -O -DDGUX540 -DDIRENT -DHDBUUCP -DNOINADDRX \
  3292.     -DSTERMIOX -DTCPSOCKET -DCK_CURSES -DCK_NEWTERM -DNOGETUSERSHELL \
  3293.     $(KFLAGS)" "LIBS= -lcurses8 -ltermcap" "LNKFLAGS = -s"
  3294.  
  3295. #As above but for Intel - only difference is name library names.
  3296. dgux540ic:
  3297.     @echo 'Making C-Kermit $(CKVER) for DG AViiON DG/UX 5.40...'
  3298.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3299.     "CFLAGS = -O -DDGUX540 -DDIRENT -DHDBUUCP -DNOINADDRX \
  3300.     -DSTERMIOX -DTCPSOCKET -DCK_CURSES -DCK_NEWTERM -DNOGETUSERSHELL \
  3301.     $(KFLAGS)" "LIBS = -lsocket -lnsl -lcurses -ltermcap"
  3302.  
  3303. dgux54c:
  3304.     make dgux540c KTARGET=$${KTARGET:-$(@)}
  3305.  
  3306. #DG/UX 5.4R3.10
  3307. dgux54310:
  3308.     @echo 'Making C-Kermit $(CKVER) for DG AViiON DG/UX 5.4R3...'
  3309.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3310.     "CFLAGS = -O -DDGUX540 -DDGUX54310 -DDIRENT -DHDBUUCP -DSELECT \
  3311.     -DSTERMIOX -DTCPSOCKET -DCK_CURSES -DCK_NEWTERM    -DNOGETUSERSHELL \
  3312.     -DNOINADDRX $(KFLAGS)" "LIBS= -lcurses8 -ltermcap" "LNKFLAGS = -s"
  3313.  
  3314. #DG/UX 5.4R4.10 - Includes everything.
  3315. dgux54410:
  3316.     @echo 'Making C-Kermit $(CKVER) for DG/UX 5.4R4.10...'
  3317.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3318.     "CFLAGS = -O -DDGUX540 -DDGUX54410 -DDIRENT -DHDBUUCP -DSELECT \
  3319.     -DSTERMIOX -DTCPSOCKET -DCK_CURSES -DCK_NEWTERM -DNOGETUSERSHELL \
  3320.     -DNOINADDRX $(KFLAGS)" "LIBS = -lsocket -lnsl -lcurses -ltermcap"
  3321.  
  3322. #DG/UX 5.4R4.11 - Includes everything.
  3323. dgux54411:
  3324.     @echo 'Making C-Kermit $(CKVER) for DG/UX 5.4R4.11...'
  3325.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3326.     "CFLAGS = -O -DDGUX540 -DDGUX54411 -DDIRENT -DHDBUUCP -DSELECT \
  3327.     -DSTERMIOX -DTCPSOCKET -DCK_CURSES -DCK_NEWTERM -DNOGETUSERSHELL \
  3328.     -DNOINADDRX $(KFLAGS)" "LIBS = -lsocket -lnsl -lcurses -ltermcap"
  3329.  
  3330. #DG/UX 5.4R4.20 - Includes everything.
  3331. dgux54420:
  3332.     @echo 'Making C-Kermit $(CKVER) for DG/UX 5.4R4.20...'
  3333.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3334.     "CFLAGS = -O -DDGUX540 -DDGUX54420 -DDIRENT -DHDBUUCP -DSELECT \
  3335.     -DSTERMIOX -DTCPSOCKET -DCK_CURSES -DCK_NEWTERM -DNOGETUSERSHELL \
  3336.     -DNOINADDRX $(KFLAGS)" \
  3337.     "LIBS = -lsocket -lresolv -lnsl -lcurses -ltermcap"
  3338.  
  3339. #Silicon Graphics System V R3 with BSD file system (IRIS)
  3340. iris:
  3341.     @echo Making C-Kermit $(CKVER) for Silicon Graphics IRIX pre-3.3...
  3342.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3343.     "CFLAGS = -O -DSVR3 -DLONGFN  $(KFLAGS) -I/usr/include/bsd" \
  3344.     "LIBS = -lbsd"
  3345.  
  3346. #Silicon Graphics IRIS System V R3
  3347. irix33:
  3348.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 3.3...'
  3349.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3350.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP $(KFLAGS) -O" \
  3351.     "LNKFLAGS = -s"
  3352.  
  3353. #Silicon Graphics Iris Indigo with IRIX 4.0.0 or 5.0...
  3354. #Strict ANSI C compilation, TCP/IP support included
  3355. irix40:
  3356.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 4.0...'
  3357.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3358.     "CFLAGS = -DIRIX40 -DSVR3 -DDIRENT -DHDBUUCP -DPWID_T=uid_t \
  3359.     -DCK_ANSIC -DTCPSOCKET $(KFLAGS) -O -Olimit 1600 -I/usr/include/bsd" \
  3360.     "LNKFLAGS = -s"
  3361.  
  3362. #As above, but with fullscreen display (curses) and Sun Yellow Pages support.
  3363. #NOTE: IRIX versions prior to 5 run COFF binaries.
  3364. irix40ypc:
  3365.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 4.0.'
  3366.     @echo 'Includes fullscreen file display and Sun Yellow Pages...'
  3367.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3368.     "CFLAGS = -DIRIX40 -DSVR3 -DDIRENT -DHDBUUCP -DCK_CURSES \
  3369.     -DPWID_T=uid_t -DCK_ANSIC -DTCPSOCKET $(KFLAGS) \
  3370.     -O -Olimit 1600 -I/usr/include/bsd" \
  3371.     "LIBS = -lcurses -lsun" "LNKFLAGS = -s"
  3372.  
  3373. # Silicon Graphics Iris Series 4D/*, IRIX 4.0.x, -O4 ucode optimized.
  3374. # Huge temporary file space needed for ucode optimizer.  If you get an error
  3375. # like "ugen: internal error writing to /tmp/ctmca08777: Error 0", define the
  3376. # the TMPDIR environment variable to point to a file system that has more
  3377. # space available, e.g. "setenv TMPDIR /usr/tmp".
  3378. irix40u:
  3379.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 4.0...'
  3380.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3381.     "CFLAGS = -DIRIX40 -DSVR3 -DDIRENT -DHDBUUCP -DPWID_T=uid_t \
  3382.     -DCK_ANSIC -DTCPSOCKET $(KFLAGS) -O4 -Olimit 1600" \
  3383.     "LNKFLAGS=-O4 -Olimit 1600 -s" "EXT=u"
  3384.  
  3385. # As above, with Curses Support added
  3386. irix40uc:
  3387.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 4.0...'
  3388.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3389.     "CFLAGS = -DIRIX40 -DSVR3 -DDIRENT -DHDBUUCP -DPWID_T=uid_t \
  3390.     -DCK_ANSIC -DCK_CURSES -DTCPSOCKET $(KFLAGS) -O4 -Olimit 1600" \
  3391.     "LNKFLAGS=-O4 -Olimit 1600 -s" "EXT=u" "LIBS= -lcurses -ltermcap"
  3392.  
  3393. #Silicon Graphics IRIX 5.x.
  3394. #Yellow Pages and Curses support included.
  3395. #IRIX version 5.x can run COFF or ELF binaries.
  3396. irix51:
  3397.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 5.x'
  3398.     @echo 'Includes fullscreen file display and Yellow Pages...'
  3399.     @echo 'Add -mips<n> to CFLAGS specify a particular hardware target.'
  3400.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3401.     "CFLAGS = -DIRIX51 -DSVR4 -DDIRENT -DHDBUUCP -DCK_CURSES -DCK_NEWTERM \
  3402.     -DPWID_T=uid_t -DCK_ANSIC -DTCPSOCKET -DSELECT -DNOGETUSERSHELL \
  3403.     $(KFLAGS) -O -Olimit 2400" "LIBS = -lcurses" "LNKFLAGS = -s"
  3404.  
  3405. irix51ypc:
  3406.     $(MAKE) "MAKE=$(MAKE)" irix51 KTARGET=$${KTARGET:-$(@)}
  3407.  
  3408. #IRIX 5.2 adds RTS/CTS
  3409. irix52:
  3410.     $(MAKE) "MAKE=$(MAKE)" irix51 KTARGET=$${KTARGET:-$(@)} \
  3411.     "KFLAGS=-DIRIX52 -DCK_RTSCTS"
  3412.  
  3413. irix53:
  3414.     $(MAKE) "MAKE=$(MAKE)" irix51 KTARGET=$${KTARGET:-$(@)} \
  3415.     "KFLAGS=-DIRIX52 -DIRIX53 -DCK_RTSCTS"
  3416.  
  3417. #Silicon Graphics IRIX 6.[024] common stuff.
  3418. #Yellow Pages and Curses support included.
  3419. #IRIX version 6.0 and later runs only ELF binaries.
  3420. #Depends on code changes in ckudeb.h that make -DIRIX6x define all
  3421. #lower IRIX6x values and IRIX51.
  3422. irix6x:
  3423.     @echo 'Includes fullscreen file display and Yellow Pages...'
  3424.     @echo 'Add -mips<n> to specify a particular hardware target.'
  3425.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3426.     "CFLAGS = -DSVR4 -DDIRENT -DHDBUUCP -DNOGETUSERSHELL \
  3427.     -DCK_CURSES -DCK_NEWTERM -DPWID_T=uid_t -DCK_ANSIC -DTCPSOCKET \
  3428.     -DSELECT -DCK_RTSCTS -O $(KFLAGS)" \
  3429.     "LIBS = -lcurses" "LNKFLAGS = -s $(LNKFLAGS)"
  3430.  
  3431. #Silicon Graphics IRIX 6.0.
  3432. irix60:
  3433.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 6.0'
  3434.     @$(MAKE) "MAKE=$(MAKE)" \
  3435.     "KFLAGS=-DIRIX60 -Olimit 2138 $(KFLAGS)" \
  3436.     irix6x KTARGET=$${KTARGET:-$(@)}
  3437.  
  3438. #Silicon Graphics IRIX 6.2.
  3439. #Serial speeds > 38400 are available in IRIX 6.2 on O-class machines only.
  3440. #Note: Olimit must be a number > 0.
  3441. irix62:
  3442.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 6.2'
  3443.     @$(MAKE) "MAKE=$(MAKE)" \
  3444.     LNKFLAGS="-Wl,-woff,84" \
  3445.     "KFLAGS=-DIRIX62 -Olimit 4700 $(KFLAGS)" \
  3446.     irix6x KTARGET=$${KTARGET:-$(@)}
  3447.  
  3448. #Silicon Graphics IRIX 6.3.
  3449. irix63:
  3450.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 6.3'
  3451.     @$(MAKE) "MAKE=$(MAKE)" irix62 KTARGET=$${KTARGET:-$(@)} \
  3452.     "KFLAGS=-DIRIX63"
  3453.  
  3454. #Silicon Graphics IRIX 6.4.
  3455. # -woff,84 to linker stops complaints about no symbols loaded from
  3456. # curses, and -woff 1110 stops complaints about unreachable "break;"
  3457. # statements in ckcpro.c among others.
  3458. # tested on SGI Octane, running IRIX 6.4 up to 115200 bps.
  3459. # -Olimit 0 means infinite.
  3460. irix64:
  3461.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 6.4'
  3462.     @$(MAKE) "MAKE=$(MAKE)" \
  3463.     LNKFLAGS="-Wl,-woff,84" \
  3464.     "KFLAGS=-DIRIX64 -DCK_RTSCTS -Olimit 3000 -woff 1110 $(KFLAGS)" \
  3465.     irix6x KTARGET=$${KTARGET:-$(@)}
  3466.  
  3467. irix64gcc:
  3468.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 6.4 gcc'
  3469.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  3470.     "CFLAGS= -DSVR4 -DIRIX64 -DCK_CURSES -DTCPSOCKET -DNOCOTFMC \
  3471.     $(KFLAGS) -O" "LIBS= -lcurses -ltermcap -lcrypt"
  3472.  
  3473. #Note the new Optimization option syntax for MIPSpro CC 7.2.1.2m.
  3474. irix65:
  3475.     @echo 'Making C-Kermit $(CKVER) for SGI IRIX 6.5'
  3476.     @$(MAKE) "MAKE=$(MAKE)" \
  3477.     LNKFLAGS="-Wl,-woff,84" \
  3478.     "KFLAGS=-DIRIX65 -DCK_RTSCTS -OPT:Olimit=0 -woff 1110 $(KFLAGS)" \
  3479.     irix6x KTARGET=$${KTARGET:-$(@)}
  3480.  
  3481. irix6x+krb5:
  3482.     @echo 'Includes fullscreen file display and Yellow Pages...'
  3483.     @echo 'Add -mips<n> to specify a particular hardware target.'
  3484.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} \
  3485.     "CFLAGS = -DSVR4 -DDIRENT -DHDBUUCP -DNOGETUSERSHELL \
  3486.     -DCK_CURSES -DCK_NEWTERM -DPWID_T=uid_t -DCK_ANSIC -DTCPSOCKET\
  3487.     -DSELECT -DCK_RTSCTS -O \
  3488.     -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 -DCK_ENCRYPTION -DCK_DES \
  3489.     -I/usr/KRB5/include/ $(KFLAGS)" \
  3490.     "LIBS = -lcurses -L/usr/KRB5/lib -ldes425 -lkrb5 \
  3491.     -lcom_err -lcrypto -lcrypt" \
  3492.     "LNKFLAGS = -s $(LNKFLAGS)"
  3493.  
  3494. irix65+krb5:
  3495.     @echo 'Making C-Kermit $(CKVER) for SGI IRIX 6.5'
  3496.     @$(MAKE) "MAKE=$(MAKE)" \
  3497.     LNKFLAGS="-Wl,-woff,84" \
  3498.     "KFLAGS=-DIRIX65 -DCK_RTSCTS -OPT:Olimit=0 -woff 1110 $(KFLAGS)" \
  3499.     irix6x+krb5 KTARGET=$${KTARGET:-$(@)}
  3500.  
  3501. #In case they type "make sys5"...
  3502. sys5:
  3503.     $(MAKE) "MAKE=$(MAKE)" sys3 KTARGET=$${KTARGET:-$(@)}
  3504.  
  3505. #Generic ATT System III or System V (with I&D space)
  3506. sys3:
  3507.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System III'
  3508.     @echo 'or System V R2 or earlier...'
  3509.     @echo 'add -DNOMKDIR if mkdir is an undefined symbol.'
  3510.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3511.     "CFLAGS = -DATTSV -DNOUNICODE -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL \
  3512.     -DNOINITGROUPS -DNOFTRUNCATE -DNOREALPATH $(KFLAGS) -i -O" \
  3513.     "LNKFLAGS = -i"
  3514.  
  3515. #Generic ATT System III or System V (no I&D space)
  3516. sys3nid:
  3517.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System III'
  3518.     @echo 'or System V R2 or earlier, no I&D space...'
  3519.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3520.     "CFLAGS = -DATTSV -DNOREALPATH -DNOUNICODE -DNOSYSLOG -DNOSYMLINK \
  3521.     -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE $(KFLAGS) -O" \
  3522.     "LNKFLAGS ="
  3523.  
  3524. #Generic ATT System III or System V R2 or earlier, "no void":
  3525. #special entry to remove "Illegal pointer combination" warnings.
  3526. sys3nv:
  3527.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System III'
  3528.     @echo 'or System V R2 or earlier...'
  3529.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3530.     "CFLAGS= -DATTSV -DNOREALPATH -DNOUNICODE -DNOSYSLOG -DNOGETUSERSHELL \
  3531.     -DNOSYMLINK -DNOFTRUNCATE -DNOINITGROUPS -Dvoid=int $(KFLAGS) -i -O" \
  3532.     "LNKFLAGS = -i"
  3533.  
  3534. # AT&T 7300 UNIX PC.  As of C-Kermit 6.1, many of these entries don't work
  3535. # any more due to "Out of memory" or "Too many defines" errors during
  3536. # compilation, at least not on systems without lots of memory.  The sys3upcgc
  3537. # entry works (using gcc) with optimization removed, and might also work
  3538. # with optimization enabled on machines with larger memories.
  3539.  
  3540. #AT&T 7300/UNIX PC (3B1) systems, sys3 but special handling for internal modem.
  3541. #Link with the shared library -- the conflict with openi in shared library
  3542. #is solved with -Dopeni=xopeni.  Note that the xermit target can't be used
  3543. #for the Unix PC; there is no select().
  3544. sys3upc:
  3545.     @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC, shared lib...'
  3546.     @echo 'If shared lib causes trouble, use make sys3upcold.'
  3547.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3548.     "CFLAGS = -O -DATT7300 -DNOMKDIR -DUSE_MEMCPY -DNOREALPATH \
  3549.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  3550.     -DNOREDIRECT -DNOGFTIMER -DNOUNICODE $(KFLAGS) -Dopeni=xopeni" \
  3551.     "CC2 = ld /lib/crt0s.o /lib/shlib.ifile" "LNKFLAGS = -s"
  3552.  
  3553. #AT&T 7300/Unix PC systems, minimum kermit for those with smaller amounts
  3554. #of memory.
  3555. sys3upcm:
  3556.     @echo Minimum interactive
  3557.     $(MAKE) "MAKE=$(MAKE)" sys3upc KTARGET=$${KTARGET:-$(@)} \
  3558.     "KFLAGS=-DNOSPL -DNOFRILLS -DNOHELP -DNODEBUG -DNOTLOG -DNOCSETS \
  3559.     -DNOSYSLOG -DNOSETKEY -DNOREALPATH"
  3560.  
  3561. #AT&T 7300/UNIX PC (3B1) systems, with curses support.
  3562. #Curses and the shared library don't get along, so we don't use the
  3563. #shared library.  We need to include CK_NEWTERM to avoid a conflict
  3564. #with curses and buffering on stdout.  Merged with submission by
  3565. #Robert Weiner/Programming Plus, rweiner@watsun.cc.columbia.edu.
  3566. #We don't need -Dopeni=xopeni since we're not using the shared library,
  3567. #but we keep it to be consistent with the other entries.
  3568. sys3upcc:
  3569.     @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC, curses...'
  3570.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3571.     "CFLAGS = -O -DATT7300 -DNOREALPATH \
  3572.     -DCK_CURSES -DCK_NEWTERM -DNOMKDIR -DNOREDIRECT -DNOGFTIMER \
  3573.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  3574.     -DUSE_MEMCPY -DNOUNICODE $(KFLAGS) -Dopeni=xopeni" \
  3575.     "LIBS = -lcurses" "LNKFLAGS = -s"
  3576.  
  3577. #Like sys3upcc but for AT&T UNIX 3.51m (released as a patch on Fix Disk 2),
  3578. #adds hardware flow control.
  3579. att351m:
  3580.     $(MAKE) "MAKE=$(MAKE)" sys3upcc KTARGET=$${KTARGET:-$(@)} \
  3581.     "KFLAGS=-DCK_RTSCTS -DUNIX351M"
  3582.  
  3583. #As above but with gcc.
  3584. att351gm:
  3585.     $(MAKE) "MAKE=$(MAKE)" sys3upcgc KTARGET=$${KTARGET:-$(@)} \
  3586.     "KFLAGS=-DCK_RTSCTS -DUNIX351M"
  3587.  
  3588. #AT&T 7300 UNIX PC (3B1), as above, but no newterm().
  3589. sys3upcx:
  3590.     @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC, curses...'
  3591.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3592.     "CFLAGS = -O -DATT7300 -DNOREALPATH -DNOUNICODE \
  3593.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  3594.     -DCK_CURSES -DNOMKDIR -DNOREDIRECT -DNOGFTIMER -DUSE_MEMCPY $(KFLAGS) \
  3595.     -Dopeni=xopeni" "LIBS = -lcurses -ltermcap" "LNKFLAGS = -s"
  3596.  
  3597. #AT&T 7300/UNIX PC (3B1) systems, with curses and shared library support.
  3598. sys3upcshcc:
  3599.     @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC, shared lib...'
  3600.     @echo 'With curses.  Requires shcc.'
  3601.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3602.     "CFLAGS = -O -DATT7300 -DNOMKDIR -DNOREALPATH \
  3603.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  3604.     -DCK_NEWTERM -DCK_CURSES  -DNOREDIRECT -DNOGFTIMER \
  3605.     -DUSE_MEMCPY -DNOUNICODE $(KFLAGS) -Dopeni=xopeni" \
  3606.     "LNKFLAGS = -i -s" "CC = shcc" "CC2 = shcc" "LIBS = -lcurses"
  3607.  
  3608. #AT&T 7300/UNIX PC (3B1) systems, as above, no curses, but use gcc.
  3609. sys3upcg:
  3610.     @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC...'
  3611.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3612.     "CFLAGS = -DATT7300 -DNOREDIRECT -DUSE_MEMCPY -DNOUNICODE \
  3613.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  3614.     -DNOGFTIMER -DNOMKDIR -DNOREALPATH $(KFLAGS) -Dopeni=xopeni" \
  3615.     "CC = gcc" "CC2 = gcc" "LNKFLAGS = -s -shlib"
  3616.  
  3617. #AT&T 7300/UNIX PC (3B1) systems, curses and gcc.
  3618. #Optimization omitted -- add it back in if your machine has lots of memory.
  3619. sys3upcgc:
  3620.     @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC, curses...'
  3621.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3622.     "CFLAGS = -DATT7300 -DNOREDIRECT -DUSE_MEMCPY -DNOGFTIMER -DNOUNICODE \
  3623.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  3624.     -DCK_CURSES -DIFDEBUG -DCK_NEWTERM -DNOMKDIR -DNOREALPATH $(KFLAGS)" \
  3625.     "CC = gcc" "CC2 = gcc" "LIBS = -lcurses" "LNKFLAGS = -s"
  3626.  
  3627. #AT&T 7300/UNIX PC (3B1) systems, special handling for internal modem.
  3628. #No FULLSCREEN file transfer display (curses).
  3629. sys3upcold:
  3630.     @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC...'
  3631.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3632.     "CFLAGS = -DATT7300 -DNOMKDIR -DUSE_MEMCPY -DNOUNICODE \
  3633.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  3634.     -DNOGFTIMER -DNOREDIRECT -DNOREALPATH $(KFLAGS) -O" "LNKFLAGS = -i"
  3635.  
  3636. #As above, but with gcc. miminum features - fits on a 400K UNIX PC floppy
  3637. #after compression with room to spare; add -DNOSHOW or other -DNOxxxx items
  3638. #to reduce size even further.
  3639. sys3upcgm:
  3640.     @echo Minimum interactive
  3641.     $(MAKE) "MAKE=$(MAKE)" sys3upcg KTARGET=$${KTARGET:-$(@)} \
  3642.     "KFLAGS=-DNOSPL -DNOFRILLS -DNOHELP -DNODEBUG -DNOTLOG -DNOCSETS \
  3643.     -DNOSETKEY $(KFLAGS)"
  3644.  
  3645. #This target is designed to create a version with the most features possible
  3646. #that, after compression, still fits on a 400K UNIX PC floppy.
  3647. sys3upcgfd:
  3648.     @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC floppy...'
  3649.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3650.     "CFLAGS = -DATT7300 -DNOREDIRECT -DUSE_MEMCPY -DNOSPL \
  3651.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  3652.     -DNOGFTIMER -DNOREALPATH -Dopeni=xopeni \
  3653.     -DNOHELP -DNODEBUG -DNOTLOG -DNOCSETS -DNOSETKEY -DNOMKDIR $(KFLAGS)" \
  3654.     "CC = gcc" "CC2 = gcc" "LNKFLAGS = -s"
  3655.  
  3656. #AT&T 6300 PLUS (warning, -O might make it run out of space).
  3657. #NOTE: Remove -DHDBUUCP if not using Honey DanBer UUCP.
  3658. att6300:
  3659.     @echo 'Making C-Kermit $(CKVER) for AT&T 6300 PLUS...'
  3660.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3661.     "CFLAGS = -DATT6300 -DHDBUUCP -DNOFILEH -DNOREALPATH \
  3662.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  3663.     -DNOUNICODE $(KFLAGS) -O -Ml -i" "LNKFLAGS = -i -Ml"
  3664.  
  3665. #As above, but with curses support.  Debugging disabled to prevent thrashing.
  3666. att6300c:
  3667.     @echo 'Making C-Kermit $(CKVER) for AT&T 6300 PLUS...'
  3668.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3669.     "CFLAGS = -DATT6300 -DHDBUUCP -DNOFILEH -DNOCSETS -DNOREALPATH \
  3670.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  3671.     -DCK_CURSES -DNODEBUG -DNOUNICODE $(KFLAGS) -O -Ml -i" \
  3672.     "LNKFLAGS = -i -Ml" "LIBS = -lcurses"
  3673.  
  3674. #AT&T 6300 PLUS with no curses, no debugging (about 34K smaller)
  3675. # -Optimization saves about 20K too.
  3676. att6300nd:
  3677.     @echo 'Making C-Kermit $(CKVER) for AT&T 6300 PLUS, no debugging...'
  3678.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3679.     "CFLAGS = -DATT6300 -DHDBUUCP -DNODEBUG -DNOFILEH -DNOREALPATH \
  3680.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  3681.     -DNOUNICODE $(KFLAGS) -O -i -Ml" "LNKFLAGS = -i -Ml"
  3682.  
  3683. #AT&T 3B2 and maybe 3B20-series computers running AT&T UNIX System V R3.
  3684. #This one was actually used to build C-Kermit 7.0 successfully on a 3B2/300.
  3685. att3b2:
  3686.     @echo 'Making C-Kermit $(CKVER) for AT&T 3B2'
  3687.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3688.     "CFLAGS = -DATTSV -DNOREDIRECT -DUSE_MEMCPY \
  3689.     -DNOTIMEVAL -DNOTIMEZONE -DMINIDIAL -DNOCHANNELIO -DNOBIGBUF \
  3690.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  3691.     -DNOGFTIMER -DNOREALPATH -Dopeni=xopeni -DNOFRILLS \
  3692.     -DNOHELP -DNODEBUG -DNOTLOG -DNOCSETS -DNOSETKEY -DNOMKDIR $(KFLAGS)" \
  3693.     "CC = gcc" "CC2 = gcc" "LNKFLAGS = -s"
  3694.  
  3695. # The next two are likely not to work as-is.
  3696.  
  3697. #AT&T 3B2, 3B20-series computers running AT&T UNIX System V.
  3698. #This is just generic System V with Honey DanBer UUCP, so refer to sys3hdb.
  3699. #Remove -DNONAWS if you can get away with it.
  3700. att3bx:
  3701.     $(MAKE) "MAKE=$(MAKE)" sys3hdb KTARGET=$${KTARGET:-$(@)} \
  3702.     "KFLAGS=$(KFLAGS) -DNONAWS -DNOTIMEVAL"
  3703.  
  3704. # 3Bx with charsets (except Unicode) but no curses.
  3705. att3bx1:
  3706.     @echo 'Making C-Kermit $(CKVER) for AT&T 3B2 or 3B20'
  3707.     @echo 'with Honey DanBer UUCP  no curses...'
  3708.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3709.     "CFLAGS = -DATTSV -DHDBUUCP $(KFLAGS) -DNOREDIRECT \
  3710.     -DNOTIMEVAL -DNOTIMEZONE -DMINIDIAL -DNOCHANNELIO -DNOBIGBUF \
  3711.     -DNOHELP -DNODEBUG -DNOGFTIMER \
  3712.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  3713.     -DNOREALPATH -DNOUNICODE -i" \
  3714.     "CC = gcc" "CC2 = gcc" "LNKFLAGS = -i -s"
  3715.  
  3716. #AT&T 3B2, 3B20-series computers running AT&T UNIX System V,
  3717. #with fullscreen file transfer display.
  3718. att3bxc:
  3719.     @echo 'Making C-Kermit $(CKVER) for AT&T 3B2 or 3B20'
  3720.     @echo 'with Honey DanBer UUCP and curses...'
  3721.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3722.     "CFLAGS = -DATTSV -DHDBUUCP -DNONAWS -DNOTIMEVAL $(KFLAGS) \
  3723.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  3724.     -DNOREALPATH -DCK_CURSES -DCK_NEWTERM -DNOUNICODE -i -O" \
  3725.     "LNKFLAGS = -i" "LIBS=-lcurses"
  3726.  
  3727. #3bx with curses but no charsets
  3728. att3bxc3:
  3729.     @echo 'Making C-Kermit $(CKVER) for AT&T 3B2 or 3B20'
  3730.     @echo 'with Honey DanBer UUCP with curses...  no CSETS'
  3731.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3732.     "CFLAGS = -DATTSV -DHDBUUCP $(KFLAGS) -DNOREDIRECT \
  3733.     -DNOTIMEVAL -DNOTIMEZONE -DMINIDIAL -DNOCHANNELIO -DNOBIGBUF \
  3734.     -DNOHELP -DNODEBUG -DNOGFTIMER \
  3735.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  3736.     -DNOREALPATH -DNOCSETS -DCK_CURSES -DCK_NEWTERM -i" \
  3737.     "CC = gcc" "CC2 = gcc" "LNKFLAGS = -i -s" "LIBS = -lcurses"
  3738.  
  3739. #Any System V R2 or earlier with Honey DanBer UUCP (same as above)
  3740. sys3hdb:
  3741.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System III'
  3742.     @echo 'or System V R2 or earlier with Honey DanBer UUCP...'
  3743.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3744.     "CFLAGS = -DATTSV -DHDBUUCP -DNOREALPATH -DNOUNICODE \
  3745.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  3746.     $(KFLAGS) -i -O" "LNKFLAGS = -i"
  3747.  
  3748. #Sperry/UNISYS 5000 UTS V 5.2 (System V R2), Honey DanBer UUCP
  3749. unisys5r2:
  3750.     @echo 'Making C-Kermit $(CKVER) for Sperry/UNISYS 5000 UTS V 5.2...'
  3751.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3752.     "CFLAGS = -DATTSV -DUNISYS52 -DHDBUUCP -DNOREALPATH -DNOUNICODE \
  3753.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  3754.     $(KFLAGS) -i -O" "LNKFLAGS = -i"
  3755.  
  3756. #In case they say "make sys5hdb" instead of "make sys3hdb"...
  3757. sys5hdb:
  3758.     $(MAKE) "MAKE=$(MAKE)" sys3hdb
  3759.  
  3760. #Create the common header line for all hpux[6-10]* entries. This extra entry is
  3761. #here because our header message length may differ for each C-Kermit version.
  3762. #Don't use 'fold -s' for HP-UX 6.x or 7.x! This option is there only since
  3763. #HP-UX 8.0!
  3764. hpux-header:
  3765.     @HPUX=`uname -r | sed -e 's/^[^1-9]*//' -e 's/\.00$$/.0/'` ; \
  3766.     Message0='Making C-Kermit $(CKVER) for HP9000 HP-UX' ; \
  3767.     Message1=$${MESSAGE1:='without any extra compiler optimization'} ; \
  3768.     MessageH="$$Message0 $$HPUX" ; \
  3769.     case $$HPUX in \
  3770.       [67].*) echo "$$MessageH\n$$Message1" ;; \
  3771.          *.*) echo "$$MessageH $${Message1}$(MESSAGE1A)" | fold -s ;; \
  3772.     esac | sed -e 's/^ //' -e 's/ *$$//'
  3773.  
  3774. #HP-9000 500 HP-UX 5.xx, no TCP/IP.
  3775. hpux500:
  3776.     @echo 'Making C-Kermit $(CKVER) for HP-UX 5.xx - no TCP/IP'
  3777.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3778.     "CFLAGS = -DHPUX -DHPUX5 -DHPUXPRE65 -DNOREDIRECT -DDCLGETCWD \
  3779.     -DNOGETUSERSHELL -DNOGFTIMER -DNOSYSLOG -DNOTOMACROS -DNOLSTAT \
  3780.     -DNOSYMLINK -DNOINITGROUPS -DNOUNICODE $(KFLAGS)" \
  3781.     "LIBS = " "LNKFLAGS = "
  3782.  
  3783. #HP-9000 500 HP-UX 5.21 with Wollongong WIN/TCP 1.2 TCP/IP.
  3784. #Requires /usr/wins/usr/include and /usr/lib/libnet.a from Wollongong.
  3785. #Optimization skipped - takes forever.    Really.
  3786. hpux500wintcp:
  3787.     @echo 'Making C-Kermit $(CKVER) for HP-UX 5.21 WIN/TCP'
  3788.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3789.     "CFLAGS = -DHPUX -DHPUX5 -DHPUXPRE65 -DTCPSOCKET -DHPUX5WINTCP \
  3790.     -DNOREDIRECT -DDCLGETCWD -DNOGETUSERSHELL -DNOGFTIMER -DINADDRX \
  3791.     -DNOSYSLOG -DNOTOMACROS -DNO_DNS_SRV -DNOSYMLINK -DNOINITGROUPS \
  3792.     -DNOMHHOST -DNOLSTAT -DNOUNICODE -DNOHADDRLIST \
  3793.     -I/usr/wins/usr/include $(KFLAGS)" \
  3794.     "LIBS = /usr/lib/libnet.a" "LNKFLAGS = "
  3795.  
  3796. #HP-UX 6.5, short filenames, no network and no curses support.
  3797. #ckcpro, ckuusr, ckuus3 and others are broken out because they make the
  3798. #optimizer run away.  Note that xermit target does not work with this one!
  3799. #If you get compiler warnings like 'Switch table overflow' increase the '...'
  3800. #value in '-Wc,-Nw...'!
  3801. hpux65:
  3802.     @$(MAKE) hpux-header
  3803.     @echo 'supporting: NO long filenames, NO network${MESSAGE2}.'
  3804.     $(MAKE) KTARGET=$${KTARGET:-$(@)} \
  3805.         ckuusr.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) \
  3806.             ckctel.$(EXT) ckuxla.$(EXT) ckcpro.$(EXT) \
  3807.     "CFLAGS = -DHPUX -DHPUX6 -DSIG_V -DNOSYSLOG -DNOSELECT -DFNFLOAT \
  3808.     -DDCLGETCWD -DNOGETUSERSHELL -DNO_DNS_SRV $(KFLAGS) -Wc,-Nw260"
  3809.     $(MAKE) wermit \
  3810.     "CFLAGS = -DHPUX -DHPUX6 -DSIG_V -DNOSYSLOG -DNOSELECT -DFNFLOAT \
  3811.     -DDCLGETCWD -DNOGETUSERSHELL -DNO_DNS_SRV $(KFLAGS) -Wc,-Nw260 \
  3812.     $(OFLAGS)" "LNKFLAGS = -s" "LIBS = -lm $(LIBS)"
  3813.  
  3814.  
  3815. #Exactly as above, plus curses:
  3816. hpux65c:
  3817.     @MESSAGE2=", but with curses" \
  3818.     $(MAKE) hpux65 KTARGET=$${KTARGET:-$(@)} \
  3819.     "KFLAGS= -DCK_CURSES $(KFLAGS)" \
  3820.     "LIBS= -lcurses"
  3821.  
  3822. #Exactly as hpux65 but with compiler optimization:
  3823. hpux65o:
  3824.     @MESSAGE1="with compiler optimization" \
  3825.     $(MAKE) hpux65 KTARGET=$${KTARGET:-$(@)} \
  3826.     "KFLAGS= $(KFLAGS)" "OFLAGS = -O"
  3827.  
  3828. #Exactly as hpux65c but with compiler optimization:
  3829. hpux65oc:
  3830.     @MESSAGE1="with compiler optimization" \
  3831.     $(MAKE) hpux65c KTARGET=$${KTARGET:-$(@)} \
  3832.     "KFLAGS= $(KFLAGS)" "OFLAGS = -O"
  3833.  
  3834. #Take this as startup entry for all 'none optimezed' files under HP-UX 7.x!
  3835. #Make sure we doesn't call it with the '-O' option because this will blow up
  3836. #the compiler!
  3837. hpux70noopt:
  3838.     @case "$(CFLAGS)" in \
  3839.     *-O*) echo "Don't use CFLAGS= -O here!" ;; \
  3840.        *) $(MAKE) ckuusr.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) \
  3841.                   ckcnet.$(EXT) ckctel.$(EXT) ckuxla.$(EXT) ckcpro.$(EXT) \
  3842.             KTARGET=$${KTARGET:-$(@)} \
  3843.           ;; \
  3844.     esac
  3845.  
  3846. #HP-UX 7.0, no long filenames, no network support, no curses.
  3847. #If you get compiler warnings like 'Switch table overflow' increase the '...'
  3848. #value in '-Wc,-Nw...'!
  3849. hpux70sf:
  3850.     @$(MAKE) hpux-header
  3851.     @echo 'supporting: NO long filenames, NO network, NO curses.'
  3852.     $(MAKE) hpux70noopt KTARGET=$${KTARGET:-$(@)} \
  3853.     "CFLAGS = -DHPUX -DHPUX7 -DSIG_V -DNOGETUSERSHELL -DFNFLOAT \
  3854.     -DNO_DNS_SRV $(KFLAGS) -Wc,-Nw260"
  3855.  
  3856.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3857.     "CFLAGS = -DHPUX -DHPUX7 -DSIG_V -DNOGETUSERSHELL -DFNFLOAT \
  3858.     -DNO_DNS_SRV $(KFLAGS) -Wc,-Nw260 $(OFLAGS)" \
  3859.     "LNKFLAGS = -s" "LIBS = -lm $(LIBS)"
  3860.  
  3861. #Exactly as hpux70sf but with compiler optimization:
  3862. hpux70osf:
  3863.     @MESSAGE1="with compiler optimization" \
  3864.     $(MAKE) hpux70sf KTARGET=$${KTARGET:-$(@)} \
  3865.     "KFLAGS= $(KFLAGS)" "OFLAGS = -O"
  3866.  
  3867. #HP-UX 7.0, short filenames, but with tcp/ip and curses.
  3868. #There must be <arpa/telnet.h> & <arpa/inet.h> present to support this
  3869. #configuration.  To use this, you must have bought the ARPA Services
  3870. #Product from HP, and you must get the files "telnet.h" and "inet.h"
  3871. #from the Berkeley Standard Distribution because (reportedly) they are not
  3872. #part of the HP product.  And you need /usr/lib/libBSD.a.
  3873. hpux70sftcpc:
  3874.     @$(MAKE) hpux-header
  3875.     @echo 'supporting: NO long filenames, \c'
  3876.     @echo 'but with networking, curses, HDB uucp...'
  3877.     $(MAKE) hpux70noopt KTARGET=$${KTARGET:-$(@)} \
  3878.     "CFLAGS =  -DHPUXDEBUG -DHPUX -DHPUX7 -DTCPSOCKET -DSIG_V \
  3879.     -DCK_REDIR -DCK_RTSCTS -DCK_CURSES -DNOGETUSERSHELL -DFNFLOAT \
  3880.     -DNO_DNS_SRV -DHDBUUCP -DLOCK_DIR=\\\"/usr/spool/uucp\\\" $(KFLAGS) \
  3881.     -Wc,-Nw260"
  3882.  
  3883.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3884.     "CFLAGS =  -DHPUXDEBUG -DHPUX -DHPUX7 -DTCPSOCKET -DSIG_V \
  3885.     -DCK_REDIR -DCK_RTSCTS -DCK_CURSES -DNOGETUSERSHELL -DFNFLOAT \
  3886.     -DNO_DNS_SRV -DHDBUUCP  -DLOCK_DIR=\\\"/usr/spool/uucp\\\" $(KFLAGS) \
  3887.     -Wc,-Nw260 $(OFLAGS)" "LNKFLAGS = -s" "LIBS= -lm -lBSD -lcurses"
  3888.  
  3889. #Exactly as above but with compiler optimization:
  3890. hpux70osftcpc:
  3891.     @MESSAGE1="with compiler optimization" \
  3892.     $(MAKE) hpux70sftcpc KTARGET=$${KTARGET:-$(@)} \
  3893.     "KFLAGS= $(KFLAGS)" "OFLAGS = -O"
  3894.  
  3895. #HP 9000 series 300/800 HP-UX 7.0, long filenames, network support, HDB uucp,
  3896. #but NO curses. See comments in hpux70sftcpc about TCP/IP support.
  3897. hpux70lfn:
  3898.     @$(MAKE) hpux-header
  3899.     @echo 'supporting: long filenames, networking, HDB uucp$(MESSAGE2)...'
  3900.     $(MAKE) hpux70noopt KTARGET=$${KTARGET:-$(@)} \
  3901.     "CFLAGS =  -DHPUXDEBUG -DHPUX -DHPUX7 -DTCPSOCKET -DSIG_V -DFNFLOAT \
  3902.     -DNOGETUSERSHELL -DNOSETBUF -DCK_REDIR -DCK_RTSCTS -DLONGFN \
  3903.     -DNO_DNS_SRV -DDIRENT -DHDBUUCP -DLOCK_DIR=\\\"/usr/spool/uucp\\\" \
  3904.     $(KFLAGS) -Wc,-Nw260"
  3905.  
  3906.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3907.     "CFLAGS =  -DHPUXDEBUG -DHPUX -DHPUX7 -DTCPSOCKET -DSIG_V -DFNFLOAT \
  3908.     -DNOGETUSERSHELL -DNOSETBUF -DCK_REDIR -DCK_RTSCTS -DLONGFN \
  3909.     -DNO_DNS_SRV -DDIRENT -DHDBUUCP -DLOCK_DIR=\\\"/usr/spool/uucp\\\" \
  3910.     $(KFLAGS) -Wc,-Nw260 \
  3911.     $(OFLAGS)" "LNKFLAGS = -s" "LIBS = -lm -lBSD $(LIBS)"
  3912.  
  3913. #Exactly as above + curses.
  3914. hpux70lfnc:
  3915.     @MESSAGE2=', curses' \
  3916.     $(MAKE) hpux70lfn KTARGET=$${KTARGET:-$(@)} \
  3917.     "KFLAGS= -DCK_CURSES $(KFLAGS)" \
  3918.     "LIBS= -lcurses"
  3919.  
  3920. #Exactly as above hpux70lfn but with compiler optimization:
  3921. hpux70olfn:
  3922.     @MESSAGE1="with compiler optimization" \
  3923.     $(MAKE) hpux70lfn KTARGET=$${KTARGET:-$(@)} \
  3924.     "KFLAGS= $(KFLAGS)" "OFLAGS = -O"
  3925.  
  3926. #Exactly as above hpux70lfnc but with compiler optimization:
  3927. hpux70olfnc:
  3928.     @MESSAGE1="with compiler optimization" \
  3929.     $(MAKE) hpux70lfnc KTARGET=$${KTARGET:-$(@)} \
  3930.     "KFLAGS= $(KFLAGS)" "OFLAGS = -O"
  3931.  
  3932. #HP 9000 Series 300 or 400, HP-UX 8.0, long filenames and TCP/IP support.
  3933. #This one should also work on 700/800, but without PA-specific optimization.
  3934. #In case -DCK_RTSCTS and -DCK_REDIR make trouble, remove them.
  3935. #NOTE: ckcpro.c and ckuusr.c blow up the optimizer, so don't optimize them.
  3936. #For HP-UX 8.0 on Motorola CPUs, you might have to reinstall your kernel with
  3937. #maxdsiz >= #0x02000000.  But if physical memory is small, that still will not
  3938. #help much.
  3939. hpux80:
  3940.     @$(MAKE) hpux-header
  3941.     @MESSAGE3=$${MESSAGE3:='TCP/IP'}; \
  3942.     echo "supporting: long filenames, $$MESSAGE3, HDB UUCP$(MESSAGE2)..."
  3943.     $(MAKE) -B "CC=$(CC)" "CC2=$(CC2)" ckcpro.$(EXT) ckuusr.$(EXT) \
  3944.     "CFLAGS =  -DCK_REDIR -DHPUXDEBUG -DHPUX -DHPUX8 -DRENAME -DSIG_V \
  3945.     -DNOSETBUF -DDIRENT -DCK_RTSCTS -DSTERMIOX -DLONGFN -DTCPSOCKET \
  3946.     -DHDBUUCP  -DNO_DNS_SRV -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DFNFLOAT \
  3947.     $(KFLAGS)"
  3948.  
  3949.     $(MAKE) -B "CC=$(CC)" "CC2=$(CC2)" xermit KTARGET=$${KTARGET:-$(@)} \
  3950.     "CFLAGS =  -DCK_REDIR -DHPUXDEBUG -DHPUX -DHPUX8 -DRENAME -DSIG_V \
  3951.     -DNOSETBUF -DDIRENT -DCK_RTSCTS -DSTERMIOX -DLONGFN -DTCPSOCKET \
  3952.     -DHDBUUCP  -DNO_DNS_SRV -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DFNFLOAT \
  3953.     $(KFLAGS) $(OFLAGS)" "LNKFLAGS = -s" "LIBS = -lm -lBSD $(LIBS)"
  3954.  
  3955. #Exactly as above hpux80 + curses.
  3956. hpux80c:
  3957.     @MESSAGE2=', curses' \
  3958.     $(MAKE) hpux80  KTARGET=$${KTARGET:-$(@)} \
  3959.     "KFLAGS = $(KFLAGS) -DCK_CURSES" "LIBS = -lcurses"
  3960.  
  3961. #HP 9000 HP-UX 8.0, no TCP/IP because /usr/lib/libBSD.a can't be found,
  3962. #or TCP/IP header files missing.
  3963. hpux80notcp:
  3964.     @MESSAGE3='NO network, NO curses' \
  3965.     $(MAKE) "MAKE=$(MAKE)" hpux80 KTARGET=$${KTARGET:-$(@)} \
  3966.     "KFLAGS = $(KFLAGS) -UTCPSOCKET"
  3967.  
  3968. #Now the same as above hpux80 but with compiler optimization
  3969. hpux80o:
  3970.     @MESSAGE1="with compiler optimization" \
  3971.     $(MAKE) hpux80 KTARGET=$${KTARGET:-$(@)} \
  3972.     "KFLAGS = $(KFLAGS)" "OFLAGS = -O"
  3973.  
  3974. #Exactly as above hpux80 + curses and with compiler optimization.
  3975. hpux80oc:
  3976.     @MESSAGE1="with compiler optimization" \
  3977.     $(MAKE) hpux80c KTARGET=$${KTARGET:-$(@)} \
  3978.     "KFLAGS = $(KFLAGS)" "OFLAGS = -O" "LIBS = -lcurses"
  3979.  
  3980. #Exactly as above hpux80notcp but with compiler optimization
  3981. hpux80onotcp:
  3982.     @MESSAGE1="with compiler optimization" \
  3983.     $(MAKE) "MAKE=$(MAKE)" hpux80notcp KTARGET=$${KTARGET:-$(@)} \
  3984.     "KFLAGS = $(KFLAGS)" "OFLAGS = -O"
  3985.  
  3986. #HP 9000 Series 700 or 800, HP-UX 8.0, long filenames and TCP/IP support.
  3987. # Like the previous entries, but with PA-RISC-specific optimization.
  3988. hpux80pa:
  3989.     @MESSAGE1="with PA-RISC-specific optimization" \
  3990.     $(MAKE) hpux80 KTARGET=$${KTARGET:-$(@)} \
  3991.     "KFLAGS = $(KFLAGS) +Obb1100"
  3992.  
  3993. #As above, but with curses.
  3994. hpux80pac:
  3995.     @MESSAGE1="with PA-RISC-specific optimization" \
  3996.     $(MAKE) hpux80c KTARGET=$${KTARGET:-$(@)} \
  3997.     "KFLAGS = $(KFLAGS) +Obb1100"
  3998.  
  3999. #As above, but compiled with GCC 2.3.3.
  4000. hpux80pagcc:
  4001.     @MESSAGE1='using the gcc compiler' \
  4002.     $(MAKE) hpux80 KTARGET=$${KTARGET:-$(@)} \
  4003.     "CC=gcc" "CC2=gcc" "KFLAGS= -funsigned-char $(KFLAGS)"
  4004.  
  4005. #HP-UX 9.0, 9.01, 9.03, 9.04, 9.05, 9.07, 9.10 ..., + TCP/IP + curses, fully
  4006. #configured.  Use this entry with the restricted compiler: no optimization, no
  4007. #ANSI support.  If you get unresolved sockets library references at link time,
  4008. #then try adding -lBSD to LIBS, or else remove -DTCPSOCKET to build a version
  4009. #without TCP/IP support.
  4010. hpux90:
  4011.     @MESSAGE1A='. Read comments in the hpux90 entry if you have trouble.' \
  4012.     $(MAKE) hpux-header
  4013.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4014.     "CFLAGS = -DHPUXDEBUG -DHPUX9 -DSTERMIOX -DDIRENT \
  4015.     -DNOSETBUF -DCK_CURSES -DTCPSOCKET -DRENAME -DCK_REDIR -DLONGFN \
  4016.     -DHDBUUCP -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DFNFLOAT $(KFLAGS)" \
  4017.     "LNKFLAGS = -s" "LIBS = -lm -lcurses" "CC=$(CC)" "CC2=$(CC2)"
  4018.  
  4019. #Like hpux90, but for the "value-added" compiler on all HP 9000 models.
  4020. #Adds optimization and ANSI compilation:
  4021. # +O2 makes smaller executable (= -O = Level-1 and global optimization)
  4022. # +O3 adds interprocedural global optimization, makes bigger executable.
  4023. # If optimization fails on some modules, you can add:
  4024. #  +Obb<n>, +Olimit <n>, or +Onolimit, depending on your cc version,
  4025. # where <n> is a number, e.g. +Obb1200.  In other words, if you get optimizer
  4026. # warnings, add (for example) +Obb1200; if you still get optimizer warnings,
  4027. # increase the number.  Repeat until warnings go away.  If your compiler
  4028. # permits it, use +Onolimit. If optimizer blows up on ckcpro.c, see next entry.
  4029. # Reportedly, on some configurations, such as HP9000/425e or /340, perhaps
  4030. # depending on the amount of main memory, this entry might fail no matter what
  4031. # you do ("Out of Memory", "cc: Fatal error in /lib/c.c1", etc).  In that case
  4032. # use "make hpux90" (no "o").
  4033. hpux90o:
  4034.     @MESSAGE1=$${MESSAGE1:-"with compiler optimization"} \
  4035.     $(MAKE) hpux90 KTARGET=$${KTARGET:-$(@)} \
  4036.     "KFLAGS = $(KFLAGS) -Aa -DCK_ANSIC -D_HPUX_SOURCE +O2"
  4037.  
  4038. # For HP-UX 9.0 on Motorola CPUs, optimization of ckcpro.c tends to blow up
  4039. # the compiler.  You might have to reinstall your kernel with maxdsiz >=
  4040. # 0x03000000.  But if physical memory is small, that still will not help much.
  4041. # In that case, use this entry to skip optimization of ckcpro.c.
  4042. hpux90m68ko:
  4043.     @MESSAGE1='without compiler optimization for ckcpro.$(EXT) ...' \
  4044.     $(MAKE) hpux-header
  4045.     $(MAKE) ckuusr.$(EXT) ckuus3.$(EXT) ckcpro.$(EXT) \
  4046.     "CFLAGS = -DHPUXDEBUG -DHPUX9 -DSTERMIOX -DDIRENT \
  4047.     -DNOSETBUF -DCK_CURSES -DTCPSOCKET -DRENAME  -DCK_REDIR -DLONGFN \
  4048.     -DHDBUUCP -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DFNFLOAT $(KFLAGS)"
  4049.     @echo
  4050.     @MESSAGE1="with compiler optimization for the rest" \
  4051.     $(MAKE) hpux90 KTARGET=$${KTARGET:-$(@)} \
  4052.     "KFLAGS = $(KFLAGS) -Aa -DCK_ANSIC -D_HPUX_SOURCE +O2"
  4053.  
  4054. # Old name for hpux90m68ko.
  4055. hpux90mot:
  4056.     $(MAKE) hpux90m68ko KTARGET=$${KTARGET:-$(@)} "KFLAGS = $(KFLAGS)"
  4057.  
  4058. #Like hpux90o but with additional model-700/800-specific optimizations.
  4059. # +ESlit = consolidate strings in read-only memory.
  4060. # +ESfsc = inline millicode calls when comparing pointers.
  4061. hpux90o700:
  4062.     @echo 'If you get optimizer warnings \c'
  4063.     @echo 'try "make hpux90o700 KFLAGS=+Obb1200"'
  4064.     @MESSAGE1="with PA-RISC-specific optimizations" \
  4065.     $(MAKE) hpux90o KTARGET=$${KTARGET:-$(@)} \
  4066.     "KFLAGS = $(KFLAGS) +ESlit +ESsfc"
  4067.  
  4068. #HP-UX 9.0, 9.01, 9.03, 9.04, 9.05, 9.07, 9.10 ..., + TCP/IP + curses, fully
  4069. #configured, built with gcc, all models except 800 series.
  4070. #You might need to add the include path for gcc headers, for example:
  4071. # 'KFLAGS=-I/usr/gnu/lib/gcc-lib/hppa1.1-hp-hpux/2.4.5/include/'
  4072. hpux90gcc:
  4073.     @MESSAGE1='using the gcc compiler' \
  4074.     $(MAKE) hpux90 KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  4075.     "KFLAGS = $(KFLAGS) -DCK_ANSIC -funsigned-char -O2"
  4076.  
  4077. #Make man page for HP-UX 10.00 or later.
  4078. hpux100man:
  4079.     @touch ckuker.cpp
  4080.     $(MAKE) "SHELL=/usr/bin/sh" "CFLAGS=-DHPUX10" manpage
  4081.  
  4082. #HP-9000 HP-UX 10.0 + TCP/IP + curses, fully configured.
  4083. #Use with restricted (bundled) compiler: no optimization, no ANSI support.
  4084. #libcurses needed for fullscreen file xfer display in HP-UX 10.00 and 10.01.
  4085. #libHcurses (NOT libcurses!) for fullscreen display, to work around fatal bugs
  4086. #in HP-UX 10.10 and 10.20 curses. Maybe we could use lcurses for 10.30, since
  4087. #the 10.10 curses problem is supposedly fixed in 10.30.
  4088. # +DA1.0 = Generate PA-RISC 1.0 code that runs on both 700 and 800 models.
  4089. # +DA1.1 = Generate PA-RISC 1.1 code that runs on both 700 and 800 models.
  4090. # Note that HP-UX 10.20 and upwards do not support PA-RISC 1.0 systems.
  4091. hpux100:
  4092.     @$(MAKE) hpux-header
  4093.     @case `uname -r` in \
  4094.        [AB].10.0*)  KFLAGS='-DHPUX1000 +DA1.0 $(KFLAGS)' ; \
  4095.                     LIBS='  -lcurses'  ;; \
  4096.        [AB].10.1*)  KFLAGS='-DHPUX1010 -D__HP_CURSES +DA1.0 $(KFLAGS)' ; \
  4097.                     LIBS='  -lHcurses' ;; \
  4098.        [AB].10.2*)  KFLAGS='-DHPUX1020 -D__HP_CURSES +DA1.1 $(KFLAGS)' ; \
  4099.                     LIBS='  -lHcurses' ;; \
  4100.        [AB].10.3*)  KFLAGS='-DHPUX1030 -D__HP_CURSES +DA1.1 $(KFLAGS)' ; \
  4101.                     LIBS='  -lHcurses' ;; \
  4102.        [AB].10.?*)  KFLAGS='-DHPUX10XX -D__HP_CURSES +DA1.1 $(KFLAGS)' ; \
  4103.                     LIBS='  -lHcurses' ;; \
  4104.        [AB].11.0*)  KFLAGS='-DHPUX1100 -D__HP_CURSES +DA1.1 $(KFLAGS)' ; \
  4105.                     LIBS='  -lHcurses' ;; \
  4106.     esac ; \
  4107.     $(MAKE) "SHELL=/usr/bin/sh" xermit KTARGET=$${KTARGET:-$(@)} \
  4108.     "CFLAGS = -DHPUX10 -DDIRENT -DSTERMIOX -DCK_DSYSINI -DHDBUUCP \
  4109.     -DCK_CURSES -DCK_WREFRESH -DTCPSOCKET -DCK_REDIR -DRENAME -DFNFLOAT \
  4110.     $$KFLAGS " \
  4111.     "LNKFLAGS=-s $(LNKFLAGS)" "LIBS = -lm $$LIBS $(KLIBS)"
  4112.  
  4113. # Trusted HP-UX 10
  4114. # echo KFLAGS=$(KFLGS) YTARGET YTARGET=$(YTARGET) $(XTARGET) ;
  4115. hpux100t:
  4116.     @case "$(KTARGET)" in \
  4117.        *o+) KENTRY=hpux100o+ ;; \
  4118.        *o)  KENTRY=hpux100o ;; \
  4119.        *)   KENTRY=hpux100 ;; \
  4120.     esac ; \
  4121.     MESSAGE1="and support for 'Trusted HP-UX'" \
  4122.     $(MAKE) $$KENTRY KTARGET=$${KTARGET:-$(@)} \
  4123.     "KFLAGS= $(KFLAGS) -DHPUX10_TRUSTED" "KLIBS=-lsec"
  4124.  
  4125. hpux100to:
  4126.     $(MAKE) hpux100t KTARGET=$${KTARGET:-$(@)}
  4127.  
  4128. hpux100to+:
  4129.     $(MAKE) hpux100t KTARGET=$${KTARGET:-$(@)}
  4130.  
  4131. #HP-9000 HP-UX 10.00 and higher with ANSI prototyping and optimization.
  4132. #PA-RISC only, no Motorola or other hardware is support in HP-UX 10.00++.
  4133. #The unbundled optional compiler is required.
  4134. #Your path should start with /opt/ansic/bin.
  4135. # -Wl,-Fw = Remove stack unwind table (info used by debuggers).
  4136. # +O2 makes a smaller executable (= -O = Level-1 and global optimization).
  4137. # +O3 adds interprocedural global optimization, makes a bigger executable.
  4138. # +Onolimit allows all modules to be optimized, no matter how complex.  But:
  4139. #  (a) +Onolimit does not seem to always be there in HP-UX 10.00, and:
  4140. #  (b) some modules might take hours on low-memory and/or slow systems.
  4141. # The following are PA-RISC-specific optimizations:
  4142. # +ESlit = Consolidate strings in read-only memory.
  4143. # +ESfsc = Inline millicode calls when comparing pointers.
  4144. # You might need to configure your kernel for a maxdsiz of 0x07000000 (112MB)
  4145. # or greater to prevent the optimizer from running out of space.
  4146. hpux100o:
  4147.     @MESSAGE1="with PA-RISC-specific optimizations $(MESSAGE1)" \
  4148.     $(MAKE) "SHELL=/usr/bin/sh" "PATH=/opt/ansic/bin:$$PATH" hpux100 \
  4149.     "KFLAGS = $(KFLAGS) \
  4150.     -Aa -D_HPUX_SOURCE -DCK_ANSIC -DUTIMEH \
  4151.     +O2 -Wl,-Fw +ESlit +ESsfc"
  4152.  
  4153. #The same like hpux100o but with "+Onolimit".
  4154. #On 700 series maxdsize >= 0xB000 (=176MB).  Takes a long time.
  4155. hpux100o+:
  4156.     @MESSAGE1="and +Onolimit $(MESSAGE1)" \
  4157.     $(MAKE) hpux100o \
  4158.     "KFLAGS = $(KFLAGS) +Onolimit"
  4159.  
  4160. hpux110:
  4161.     $(MAKE) hpux100 KTARGET=$${KTARGET:-$(@)}
  4162.  
  4163. hpux110o:
  4164.     $(MAKE) hpux100o KTARGET=$${KTARGET:-$(@)}
  4165.  
  4166. hpux110o+:
  4167.     $(MAKE) hpux100o+ KTARGET=$${KTARGET:-$(@)}
  4168.  
  4169. # Trusted HP-UX 11
  4170. hpux110t:
  4171.     $(MAKE) hpux100t KTARGET=$${KTARGET:-$(@)}
  4172.  
  4173. hpux110to:
  4174.     $(MAKE) hpux100t KTARGET=$${KTARGET:-$(@)}
  4175.  
  4176. hpux110to+:
  4177.     $(MAKE) hpux100t KTARGET=$${KTARGET:-$(@)}
  4178.  
  4179. # Synonyms for the HP-UX 11.xx entries just above:
  4180. hpux1100:
  4181.     $(MAKE) hpux100 KTARGET=$${KTARGET:-$(@)}
  4182.  
  4183. hpux1100o:
  4184.     $(MAKE) hpux100o KTARGET=$${KTARGET:-$(@)}
  4185.  
  4186. hpux1100o+:
  4187.     $(MAKE) hpux100o+ KTARGET=$${KTARGET:-$(@)}
  4188.  
  4189. # Trusted HP-UX 11
  4190. hpux1100t:
  4191.     $(MAKE) hpux100t KTARGET=$${KTARGET:-$(@)}
  4192.  
  4193. hpux1100to:
  4194.     $(MAKE) hpux100t KTARGET=$${KTARGET:-$(@)}
  4195.  
  4196. hpux1100to+:
  4197.     $(MAKE) hpux100t KTARGET=$${KTARGET:-$(@)}
  4198.  
  4199. #Regulus on CIE Systems 680/20
  4200. cie:
  4201.     @echo 'Making C-Kermit $(CKVER) for CIE Systems 680/20 Regulus...'
  4202.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4203.     "CFLAGS = -DATTSV -DNOFILEH -DCIE $(KFLAGS) -O" "LNKFLAGS ="
  4204.  
  4205. # Linux 1.2 or later with gcc, dynamic libraries, ncurses, TCP/IP.
  4206. #
  4207. # Most modern Linux systems use ncurses (with curses.h and an ncurses
  4208. # shared library).   Modern Linux systems also generally use FSSTND 1.2.
  4209. # So this entry should work for most people.  Read on if you have trouble.
  4210. #
  4211. # If your Linux system has curses rather than ncurses, use the linuxc
  4212. # entry, or if that doesn't work, linuxnc.
  4213. #
  4214. # The Kermit "large memory model" is used by default to configure big packet
  4215. # and script buffers, etc.  For small-memory or limited-resource systems,
  4216. # "make linux KFLAGS=-DNOBIGBUF".
  4217. #
  4218. # -DLINUXFSSTND (Linux File System Standard 1.2) gives UUCP lockfile /var/lock
  4219. # with string pid.  Remove this to get /usr/spool/uucp with int pid, used in
  4220. # very early Linux versions.  FSSTND 1.2 also says that the PID string in the
  4221. # UUCP lock file has leading spaces.  This is a change from FSSTND 1.0, which
  4222. # used leading zeros.  Add -DFSSTND10 to support FSSTND 1.0 instead of 1.2.
  4223. #
  4224. # Add -DOLINUXHISPEED (Old Linux High Speed support) to turn on an ugly kludge
  4225. # in Linux 1.0 and earlier to support speeds of 57600 and 115200.  Extremely
  4226. # old Linux systems (pre-0.99pl15) will not support this.  If OLINUXHISPEED is
  4227. # not defined, then only the standard POSIX termios methods of setting the port
  4228. # speed will be used, and in this case speeds can be as high as 460800 in most
  4229. # modern Linux versions.
  4230. #
  4231. # -DCK_POSIX_SIG (POSIX signal handling) is good for Linux releases back to at
  4232. # least 0.99.14; if it causes trouble for you, remove it from the CFLAGS.
  4233. #
  4234. # -pipe removes the need for temp files - remove it if it causes trouble.
  4235. #
  4236. # -funsigned-char makes all characters unsigned, as they should have been
  4237. #  in the first place.
  4238. #
  4239. # Add -DCK_DSYSINI if you want a shared system-wide init file.
  4240. #
  4241. # See ckubwr.txt about -DNOCOTFMC.  In fact, you really should read the
  4242. # entire Linux section of ckubwr.txt.
  4243. #
  4244. # The "linuxa" entry can be referenced directly on LIBC systems, but not
  4245. # GLIBC, where -lcrypt is required.  The "make linux" entry should normally
  4246. # be used for all builds on all Linux distributions unless you have special
  4247. # requirements, in which case keep reading.  CK_NEWTERM added after 7.0B04
  4248. # due to new complaints about ncurses changing buffering of tty.
  4249.  
  4250. linuxa:
  4251.     @echo 'Making C-Kermit $(CKVER) for Linux 1.2 or later...'
  4252.     @echo 'IMPORTANT: Read the comments in the linux section of the'
  4253.     @echo 'makefile if you have trouble.'
  4254.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  4255.     "CFLAGS = -O -DLINUX -pipe -funsigned-char -DFNFLOAT -DCK_POSIX_SIG \
  4256.     -DCK_NEWTERM -DTCPSOCKET -DLINUXFSSTND -DNOCOTFMC -DPOSIX $(KFLAGS)" \
  4257.     "LNKFLAGS = $(LNKFLAGS)" "LIBS = $(LIBS) -lm"
  4258.  
  4259. # Default linux entry.  This one sets LIBS according whether libcrypt.a
  4260. # is present (in which case we must search it: GLIBC) or not (in which case
  4261. # we must not search it: LIBC), and similarly for libresolv.a, in all four
  4262. # possible combinations.  Please read the comments above the linuxa entry just
  4263. # above.  This one also requires ncurses.  The NCURSES_CPP lets us find
  4264. # ncurses.h in case it is not in /usr/include, as some distributions are wont
  4265. # to put it in its own directory (the -I is ignored if ncurses.h is found in
  4266. # /usr/include).
  4267.  
  4268. NCURSES_CPP = -DCK_NCURSES -I/usr/include/ncurses
  4269.  
  4270. linux:
  4271.     @if test -f /usr/lib/libcrypt.a; then \
  4272.         if test -f /usr/lib/libresolv.a; then \
  4273.             $(MAKE) KTARGET=$${KTARGET:-$(@)} \
  4274.         "KFLAGS=$(NCURSES_CPP) -DHAVE_CRYPT_H $(KFLAGS)" \
  4275.             "LIBS=-lncurses -lresolv -lcrypt" linuxa ; \
  4276.         else \
  4277.             $(MAKE) KTARGET=$${KTARGET:-$(@)} \
  4278.         "KFLAGS=$(NCURSES_CPP) -DHAVE_CRYPT_H $(KFLAGS)" \
  4279.             "LIBS=-lncurses -lcrypt" linuxa ; \
  4280.         fi \
  4281.     else \
  4282.         if test -f /usr/lib/libresolv.a; then \
  4283.             $(MAKE) KTARGET=$${KTARGET:-$(@)} \
  4284.         "KFLAGS=$(NCURSES_CPP) $(KFLAGS)" \
  4285.             "LIBS=-lncurses -lresolv" linuxa ; \
  4286.         else \
  4287.             $(MAKE) KTARGET=$${KTARGET:-$(@)} \
  4288.         "KFLAGS=$(NCURSES_CPP) $(KFLAGS)" \
  4289.             "LIBS=-lncurses" linuxa ; \
  4290.         fi \
  4291.     fi
  4292.  
  4293. # As above but for Linux systems that have no <sys/select.h>.
  4294. linuxns:
  4295.     $(MAKE) linux KTARGET=$${KTARGET:-$(@)} KFLAGS=-DNO_SYS_SELECT_H
  4296.  
  4297. # As above, but forces use of curses rather than ncurses.
  4298. # Add -ltermcap to LIBS if necessary.
  4299. # Also watch out for libcurses and/or libtermcap having been moved.
  4300. # In that case you might need something like:
  4301. #  "LIBS = -L/usr/lib/curses -lcurses -L/usr/lib/termcap -ltermcap"
  4302.  
  4303. linuxc:
  4304.     @if test -f /usr/lib/libcrypt.a; then \
  4305.         if test -f /usr/lib/libresolv.a; then \
  4306.             $(MAKE) KTARGET=$${KTARGET:-$(@)} \
  4307.         "KFLAGS=-DCK_CURSES -DHAVE_CRYPT_H $(KFLAGS)" \
  4308.             "LIBS=-lcurses -lresolv -lcrypt" linuxa ; \
  4309.         else \
  4310.             $(MAKE) KTARGET=$${KTARGET:-$(@)} \
  4311.         "KFLAGS=-DCK_CURSES -DHAVE_CRYPT_H $(KFLAGS)" \
  4312.             "LIBS=-lcurses -lcrypt" linuxa ; \
  4313.         fi \
  4314.     else \
  4315.         if test -f /usr/lib/libresolv.a; then \
  4316.             $(MAKE) KTARGET=$${KTARGET:-$(@)} \
  4317.         "KFLAGS=-DCK_CURSES $(KFLAGS)" \
  4318.             "LIBS=-lcurses -lresolv" linuxa ; \
  4319.         else \
  4320.             $(MAKE) KTARGET=$${KTARGET:-$(@)} \
  4321.         "KFLAGS=-DCK_CURSES $(KFLAGS)" \
  4322.             "LIBS=-lcurses" linuxa ; \
  4323.         fi \
  4324.     fi
  4325.  
  4326. # As above but with with no curses support, for example because you installed
  4327. # the developer tools but did not install (n)curses.
  4328. linuxnc:
  4329.     @if test -f /usr/lib/libcrypt.a; then \
  4330.         if test -f /usr/lib/libresolv.a; then \
  4331.             $(MAKE) KTARGET=$${KTARGET:-$(@)} \
  4332.         "KFLAGS=-DNOTERMCAP -DHAVE_CRYPT_H $(KFLAGS)" \
  4333.             "LIBS=-lresolv -lcrypt" linuxa ; \
  4334.         else \
  4335.             $(MAKE) KTARGET=$${KTARGET:-$(@)} \
  4336.         "KFLAGS=-DNOTERMCAP -DHAVE_CRYPT_H $(KFLAGS)" \
  4337.             "LIBS=-lcrypt" linuxa ; \
  4338.         fi \
  4339.     else \
  4340.         if test -f /usr/lib/libresolv.a; then \
  4341.             $(MAKE) KTARGET=$${KTARGET:-$(@)} \
  4342.         "KFLAGS=-DNOTERMCAP $(KFLAGS)" \
  4343.             "LIBS=-lresolv" linuxa ; \
  4344.         else \
  4345.             $(MAKE) KTARGET=$${KTARGET:-$(@)} \
  4346.         "KFLAGS=-DNOTERMCAP $(KFLAGS)" \
  4347.             "LIBS=" linuxa ; \
  4348.         fi \
  4349.     fi
  4350.  
  4351. # A minimum-size version for Linux that does only scripting and
  4352. # serial communication -- no networks, no file transfer.
  4353. linuxso:
  4354.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  4355.     "CFLAGS = -O -DLINUX -pipe -funsigned-char -DPOSIX -DCK_POSIX_SIG \
  4356.     -DLINUXFSSTND -DNOCOTFMC -DNOXFER -DNODEBUG -DNOCSETS -DNOHELP \
  4357.     -DNONET -DMINIDIAL -DNOSCRIPT -DNOIKSD -DNOPUSH $(KFLAGS)" \
  4358.     "LNKFLAGS = $(LNKFLAGS)" "LIBS = "
  4359.  
  4360. #Mklinux DR3 has horrible bug in <utmpbits.h> - see ckufio.c.
  4361. mklinux:
  4362.     $(MAKE) KTARGET=$${KTARGET:-$(@)} "KFLAGS=-DUTMPBUG" \
  4363.     "LIBS=-lcrypt -lresolv" linuxa
  4364.  
  4365. #LinuxPPC 1999
  4366. linuxppc:
  4367.     @echo 'Making C-Kermit $(CKVER) for LinuxPPC 1999...'
  4368.     @if test -f /usr/lib/libcrypt.a; then \
  4369.         if test -f /usr/lib/libresolv.a; then \
  4370.             $(MAKE) KTARGET=$${KTARGET:-$(@)} \
  4371.         "KFLAGS=$(NCURSES_CPP) -DHAVE_CRYPT_H \
  4372.         -DLOCK_DIR=\\\\\\"\"/var/lock/modem\\\\\\"\" $(KFLAGS)" \
  4373.             "LIBS=-lncurses -lresolv -lcrypt" linuxa ; \
  4374.         else \
  4375.             $(MAKE) KTARGET=$${KTARGET:-$(@)} \
  4376.         "KFLAGS=$(NCURSES_CPP) -DHAVE_CRYPT_H \
  4377.         -DLOCK_DIR=\\\\\\"\"/var/lock/modem\\\\\\"\" $(KFLAGS)" \
  4378.             "LIBS=-lncurses -lcrypt" linuxa ; \
  4379.         fi \
  4380.     else \
  4381.         if test -f /usr/lib/libresolv.a; then \
  4382.             $(MAKE) KTARGET=$${KTARGET:-$(@)} \
  4383.         "KFLAGS=$(NCURSES_CPP) \
  4384.         -DLOCK_DIR=\\\\\\"\"/var/lock/modem\\\\\\"\" $(KFLAGS)" \
  4385.             "LIBS=-lncurses -lresolv" linuxa ; \
  4386.         else \
  4387.             $(MAKE) KTARGET=$${KTARGET:-$(@)} \
  4388.         "KFLAGS=$(NCURSES_CPP) \
  4389.         -DLOCK_DIR=\\\\\\"\"/var/lock/modem\\\\\\"\" $(KFLAGS)" \
  4390.             "LIBS=-lncurses" linuxa ; \
  4391.         fi \
  4392.     fi
  4393.  
  4394.  
  4395. # The remaining Linux entries are for special or customized builds.
  4396. # They have not been generalized like the two just above.  Ideally, we
  4397. # should allow for every combination of libc vs glibc, gcc vs egcs,
  4398. # curses vs ncurses, Kerberos IV vs Kerberos V vs SRP (in any combination),
  4399. # and so on -- volunteers welcome.
  4400.  
  4401. # If you get "Internal compiler error xxx, output pipe has been closed",
  4402. # try removing -pipe.
  4403.  
  4404. # Like "make linux" but built with egcs rather than gcc.
  4405. linuxegcs:
  4406.     @echo 'Making C-Kermit $(CKVER) for Linux 1.2 or later with egcs...'
  4407.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = egcs" "CC2 = egcs" \
  4408.     "CFLAGS = -O -DLINUX -pipe -funsigned-char \
  4409.     -DPOSIX -DCK_POSIX_SIG -DCK_NCURSES -DNOCOTFMC \
  4410.     -DTCPSOCKET -DLINUXFSSTND $(KFLAGS)" \
  4411.     "LNKFLAGS = $(LNKFLAGS)" "LIBS = -lncurses -lcrypt -lresolv"
  4412.  
  4413. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.05 (no K4 compatibility).
  4414. linux+krb5:
  4415.     @echo 'Making C-Kermit $(CKVER) for Linux on Intel with Kerberos...'
  4416.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  4417.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  4418.     -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 \
  4419.     -DCK_ENCRYPTION -DCK_DES -DCK_CURSES -DCK_POSIX_SIG \
  4420.     -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H -I/usr/local/include/ \
  4421.     -I/usr/local/include/krb5/ \
  4422.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  4423.     "LIBS = -L/usr/local/lib -lncurses -ltermcap -ldes425 -lkrb5 \
  4424.     -lcom_err -lk5crypto -lcrypt -lresolv"
  4425.  
  4426. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.05 with K4 compat.
  4427. #
  4428. # Requires the Kerberos 1.0.5 be compiled with KRB4 compatibility.
  4429. linux+krb5+krb4:
  4430.     @echo 'Making C-Kermit $(CKVER) for Linux on Intel with Kerberos...'
  4431.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  4432.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  4433.     -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 -DKRB4 -DKRB524 \
  4434.     -DCK_ENCRYPTION -DCK_DES -DCK_CURSES -DCK_POSIX_SIG \
  4435.     -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H -I/usr/local/include/ \
  4436.     -I/usr/local/include/krb5/ \
  4437.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  4438.     "LIBS = -L/usr/local/lib -lncurses -ltermcap -lkrb4 -ldes425 -lkrb5 \
  4439.     -lcom_err -lk5crypto -lcrypt -lresolv"
  4440.  
  4441. #Linux on Intel PC with SRP 1.4.5.
  4442. #
  4443. # remove the -DCK_DES, -DLIBDES and -ldes if you do not have Eric Young's
  4444. # libdes.a installed.  libsrp.a should be build with GNU MP (libgmp.a)
  4445. # instead of AT&T CryptoLib (libcrypt.a) due to naming conflicts with
  4446. # standard distribution Linux libraries.
  4447. #
  4448. linux+srp:
  4449.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SRP...'
  4450.     $(MAKE) srpmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  4451.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  4452.     -DCK_AUTHENTICATION -DCK_SRP \
  4453.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES \
  4454.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  4455.     -I/usr/src/srp-1.4.5/include/ \
  4456.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  4457.     "LIBS = -L/usr/src/srp-1.4.5/lib \
  4458.     -lncurses -ltermcap -lsrp -lgmp -ldes -lcrypt -lresolv"
  4459.  
  4460. linux+srp+no-des:
  4461.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SRP ...'
  4462.     $(MAKE) srpmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  4463.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  4464.     -DCK_AUTHENTICATION -DCK_SRP \
  4465.     -DCK_ENCRYPTION -DCK_CAST \
  4466.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  4467.     -I/usr/src/srp-1.4.5/include/ \
  4468.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  4469.     "LIBS = -L/usr/src/srp-1.4.5/lib \
  4470.     -lncurses -ltermcap -lsrp -lgmp -lcrypt -lresolv"
  4471.  
  4472. linux+srp-export:
  4473.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SRP...'
  4474.     $(MAKE) srpmit-export KTARGET=$${KTARGET:-$(@)} \
  4475.     "CC = gcc" "CC2 = gcc" \
  4476.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  4477.     -DCK_AUTHENTICATION -DCK_SRP -DFNFLOAT \
  4478.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  4479.     -I/usr/src/srp-1.4.5/include/ \
  4480.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  4481.     "LIBS = -L/usr/src/srp-1.4.5/lib \
  4482.     -lncurses -ltermcap -lsrp -lgmp -lcrypt -lm -lresolv"
  4483.  
  4484. linux+srp+pam:
  4485.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SRP...'
  4486.     $(MAKE) srpmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  4487.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  4488.     -DCK_AUTHENTICATION -DCK_SRP \
  4489.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES \
  4490.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  4491.     -DCK_PAM -DFNFLOAT \
  4492.     -I/usr/src/srp-1.4.5/include/ \
  4493.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  4494.     "LIBS = -L/usr/src/srp-1.4.5/lib \
  4495.     -lncurses -ltermcap -lsrp -lgmp -ldes -lcrypt -lpam -ldl -lm -lresolv"
  4496.  
  4497. #Linux configured for SSL/TLS
  4498. linux+openssl:
  4499.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SSL/TLS...'
  4500.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  4501.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  4502.     -DCK_AUTHENTICATION -DCK_SSL \
  4503.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  4504.     -DFNFLOAT \
  4505.     -I/usr/local/ssl/include/ \
  4506.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  4507.     "LIBS= -L/usr/local/ssl/lib/ \
  4508.     -lncurses -ltermcap -lssl -lsslcrypto -lm -lresolv"
  4509.  
  4510. #Linux configured for SSL/TLS and Shadow Passwords
  4511. linux+openssl+shadow:
  4512.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SSL/TLS...'
  4513.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  4514.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  4515.     -DCK_AUTHENTICATION -DCK_SSL \
  4516.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  4517.     -DFNFLOAT -DCK_SHADOW \
  4518.     -I/usr/local/ssl/include/ \
  4519.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  4520.     "LIBS= -L/usr/local/ssl/lib/ \
  4521.     -lncurses -ltermcap -lssl -lsslcrypto -lm -lresolv"
  4522.  
  4523. #Linux on Intel PC with SRP and SSL/TLS.
  4524. #
  4525. # libsrp.a should be build with GNU MP (libgmp.a)
  4526. # instead of AT&T CryptoLib (libcrypt.a) due to naming conflicts with
  4527. # standard distribution Linux libraries.
  4528. # Requires the Kerberos 1.0.5 be compiled with KRB4 compatibility.
  4529. linux+srp+openssl:
  4530.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SRP,SSL...'
  4531.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  4532.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  4533.     -DCK_AUTHENTICATION -DCK_SRP \
  4534.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL \
  4535.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  4536.     -I/usr/local/include/ \
  4537.     -I/usr/src/srp-1.4.5/include/ \
  4538.     -I/usr/local/ssl/include/ \
  4539.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  4540.     "LIBS = -L/usr/src/srp-1.4.5/lib -L/usr/local/lib \
  4541.     -L/usr/local/ssl/lib/ \
  4542.     -lncurses -ltermcap -lsrp -lgmp \
  4543.     -ldes -lssl -lsslcrypto \
  4544.     -lcrypt -lresolv"
  4545.  
  4546. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.05 and SRP.
  4547. #
  4548. # libsrp.a should be build with GNU MP (libgmp.a)
  4549. # instead of AT&T CryptoLib (libcrypt.a) due to naming conflicts with
  4550. # standard distribution Linux libraries.
  4551. # Requires the Kerberos 1.0.5 be compiled with KRB4 compatibility.
  4552. linux+krb5+krb4+srp:
  4553.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB54+SRP...'
  4554.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  4555.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  4556.     -DCK_AUTHENTICATION -DCK_SRP -DCK_KERBEROS  -DKRB5 -DKRB4 -DKRB524 \
  4557.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES \
  4558.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  4559.     -I/usr/local/include/ \
  4560.     -I/usr/local/include/krb5/ \
  4561.     -I/usr/src/srp-1.4.5/include/ \
  4562.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  4563.     "LIBS = -L/usr/src/srp-1.4.5/lib -L/usr/local/lib \
  4564.     -lncurses -ltermcap -lsrp -lgmp \
  4565.     -ldes -lkrb4 -ldes425 -lkrb5 -lcom_err -lk5crypto -lcrypt -lresolv"
  4566.  
  4567. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.05, SRP and SSL/TLS.
  4568. #
  4569. # libsrp.a should be build with GNU MP (libgmp.a)
  4570. # instead of AT&T CryptoLib (libcrypt.a) due to naming conflicts with
  4571. # standard distribution Linux libraries.
  4572. # Requires the Kerberos 1.0.5 be compiled with KRB4 compatibility.
  4573. linux+krb5+krb4+srp+openssl:
  4574.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SRP,SSL...'
  4575.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  4576.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  4577.     -DCK_AUTHENTICATION -DCK_SRP -DCK_KERBEROS  -DKRB5 -DKRB4 -DKRB524 \
  4578.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL \
  4579.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  4580.     -I/usr/local/include/ \
  4581.     -I/usr/local/include/krb5/ \
  4582.     -I/usr/src/srp-1.4.5/include/ \
  4583.     -I/usr/local/ssl/include/ \
  4584.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  4585.     "LIBS = -L/usr/src/srp-1.4.5/lib -L/usr/local/lib \
  4586.     -L/usr/local/ssl/lib/ \
  4587.     -lncurses -ltermcap -lsrp -lgmp \
  4588.     -ldes -lkrb4 -ldes425 -lssl -lsslcrypto \
  4589.     -lkrb5 -lcom_err -lk5crypto -lcrypt -lresolv"
  4590.  
  4591. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.05, SSL/TLS.
  4592. #
  4593. # libsrp.a should be build with GNU MP (libgmp.a)
  4594. # instead of AT&T CryptoLib (libcrypt.a) due to naming conflicts with
  4595. # standard distribution Linux libraries.
  4596. # Requires the Kerberos 1.0.5 be compiled with KRB4 compatibility.
  4597. linux+krb5+krb4+openssl:
  4598.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SSL...'
  4599.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  4600.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  4601.     -DCK_AUTHENTICATION -DCK_KERBEROS  -DKRB5 -DKRB4 -DKRB524 \
  4602.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL \
  4603.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  4604.     -I/usr/local/include/ \
  4605.     -I/usr/local/include/krb5/ \
  4606.     -I/usr/local/ssl/include/ \
  4607.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  4608.     "LIBS = -L/usr/local/lib \
  4609.     -L/usr/local/ssl/lib/ \
  4610.     -lncurses -ltermcap \
  4611.     -ldes -lkrb4 -ldes425 -lssl -lsslcrypto -lkrb5 -lcom_err \
  4612.     -lk5crypto -lcrypt -lresolv"
  4613.  
  4614. linux+krb5+krb4+srp-export:
  4615.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SRP...'
  4616.     $(MAKE) krbmit-export KTARGET=$${KTARGET:-$(@)} \
  4617.     "CC = gcc" "CC2 = gcc" \
  4618.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  4619.     -DCK_AUTHENTICATION -DCK_SRP -DCK_KERBEROS  -DKRB5 -DKRB4 -DKRB524 \
  4620.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  4621.     -I/usr/local/include/ \
  4622.     -I/usr/local/include/krb5/ \
  4623.     -I/usr/src/srp-1.4.5/include/ \
  4624.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  4625.     "LIBS = -L/usr/src/srp-1.4.5/lib -L/usr/local/lib \
  4626.     -lncurses -ltermcap -lsrp -lgmp \
  4627.     -lkrb4 -ldes425 -lkrb5 -lcom_err -lk5crypto -lcrypt -lresolv"
  4628.  
  4629. linux+krb5+krb4+srp+pam:
  4630.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SRP...'
  4631.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  4632.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  4633.     -DCK_AUTHENTICATION -DCK_SRP -DCK_KERBEROS  -DKRB5 -DKRB4 -DKRB524 \
  4634.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES \
  4635.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  4636.     -DCK_PAM \
  4637.     -I/usr/local/include/ \
  4638.     -I/usr/local/include/krb5/ \
  4639.     -I/usr/src/srp-1.4.5/include/ \
  4640.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  4641.     "LIBS = -L/usr/src/srp-1.4.5/lib -L/usr/local/lib \
  4642.     -lncurses -ltermcap -lsrp -lgmp -ldes -lkrb4 -ldes425 -lkrb5 \
  4643.     -lcom_err -lk5crypto -lcrypt -lpam -ldl -lresolv"
  4644.  
  4645. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.05, SRP and SSL/TLS.
  4646. # and PAM.
  4647. #
  4648. # libsrp.a should be build with GNU MP (libgmp.a)
  4649. # instead of AT&T CryptoLib (libcrypt.a) due to naming conflicts with
  4650. # standard distribution Linux libraries.
  4651. # Requires the Kerberos 1.0.5 be compiled with KRB4 compatibility.
  4652. linux+krb5+krb4+srp+openssl+pam-debug:
  4653.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SRP,SSL...'
  4654.     $(MAKE) krbmit-debug KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  4655.     "CFLAGS = -g -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  4656.     -DCK_AUTHENTICATION -DCK_SRP -DCK_KERBEROS  -DKRB5 -DKRB4 -DKRB524 \
  4657.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL -DCK_PAM \
  4658.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  4659.     -w -Dmalloc=dmalloc -Dfree=dfree -DMDEBUG -I/usr/local/include/ \
  4660.     -I/usr/local/include/krb5/ \
  4661.     -I/usr/src/srp-1.4.5/include/ \
  4662.     -I/usr/local/ssl/include/ \
  4663.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  4664.     "LIBS = -L/usr/src/srp-1.4.5/lib -L/usr/local/lib \
  4665.     -L/usr/local/ssl/lib/ \
  4666.     -lncurses -ltermcap -lsrp -lgmp \
  4667.     -ldes -lkrb4 -ldes425 -lssl -lsslcrypto \
  4668.     -lkrb5 -lcom_err -lk5crypto -lcrypt -lresolv -lpam -ldl"
  4669.  
  4670. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.05, SRP and SSL/TLS.
  4671. # and PAM.
  4672. #
  4673. # libsrp.a should be build with GNU MP (libgmp.a)
  4674. # instead of AT&T CryptoLib (libcrypt.a) due to naming conflicts with
  4675. # standard distribution Linux libraries.
  4676. # Requires the Kerberos 1.0.5 be compiled with KRB4 compatibility.
  4677. linux+krb5+krb4+srp+openssl+pam:
  4678.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SRP,SSL...'
  4679.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  4680.     "CFLAGS = -g -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  4681.     -DCK_AUTHENTICATION -DCK_SRP -DCK_KERBEROS  -DKRB5 -DKRB4 -DKRB524 \
  4682.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL -DCK_PAM \
  4683.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  4684.     -I/usr/local/include/ \
  4685.     -I/usr/local/include/krb5/ \
  4686.     -I/usr/src/srp-1.4.5/include/ \
  4687.     -I/usr/local/ssl/include/ \
  4688.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  4689.     "LIBS = -L/usr/src/srp-1.4.5/lib -L/usr/local/lib \
  4690.     -L/usr/local/ssl/lib/ \
  4691.     -lncurses -ltermcap -lsrp -lgmp \
  4692.     -ldes -lkrb4 -ldes425 -lssl -lsslcrypto \
  4693.     -lkrb5 -lcom_err -lk5crypto -lcrypt -lresolv -lpam -ldl"
  4694.  
  4695. linuxnotcp:
  4696.     $(MAKE) linux KTARGET=$${KTARGET:-$(@)} "KFLAGS = -DNONET $(KFLAGS)"
  4697.  
  4698. # "make linuxnotcp" with lcc (see http://www.cs.princeton.edu/software/lcc)
  4699. # lcc does not understand various gcc extensions:
  4700. #  "__inline__" -- can be eliminated by adding "-D__inline__="
  4701. #  "__asm__ and "long long" -- in header files, should be surrounded by
  4702. #                              "#ifndef(__STRICT_ANSI__)"/"#endif"
  4703. #  however, TCP requires some __asm__ functions, so cannot be compiled
  4704. linuxnotcp-lcc:
  4705.     @echo 'Making C-Kermit $(CKVER) for Linux with lcc ...'
  4706.     @echo 'Read comments in makefile for additional information.'
  4707.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC = lcc" "CC2 = lcc" \
  4708.     "CFLAGS = -DLINUX -DPOSIX -DCK_CURSES -DCK_POSIX_SIG \
  4709.     -UTCPSOCKET -DLINUXFSSTND $(KFLAGS)" \
  4710.     "LNKFLAGS = $(LNKFLAGS)" "LIBS = -lcurses -ltermcap"
  4711.  
  4712. # Linux 0.99.14 thru 1.0 with gcc, dynamic libraries, curses, TCP/IP.
  4713. # For Linux 1.2 or later, use "make linux" (above).
  4714. #
  4715. # -DLINUXFSSTND (Linux File System Standard) gives UUCP lockfil /var/lock with
  4716. # string pid.  Remove this and get /usr/spool/uucp with int pid, which was used
  4717. # in early Linux versions.
  4718. #
  4719. # If you get compiler errors regarding <linux/serial.h>, add -DNOHISPEED.
  4720. #
  4721. # -DCK_POSIX_SIG (POSIX signal handling) is good for Linux releases back to at
  4722. # least 0.99.14; if it causes trouble for you, just remove it.
  4723. #
  4724. # -DCK_CURSES: Here we link with the regular curses library.  But you should
  4725. # be using ncurses.  Internally, the ckuusx.c module includes <curses.h>, but
  4726. # this really should be <ncurses.h>.  Thus if you have the new curses
  4727. # material, you should either install it with the standard names, or else
  4728. # create symbolic links from the standard names to the new ones.  If you get
  4729. # compile-time errors complaining about data definitions in termcap.h, it
  4730. # means you have new kernel material mixed with older libc header files.  To
  4731. # fix, add "#include <termios.h>" to the <termcap.h> file.  Or if all this is
  4732. # too confusing, create a new makefile entry based on this one, but with
  4733. # -DCK_CURSES removed from CFLAGS and the entire LIBS= clause removed.
  4734. #
  4735. # But wait, there's more.  On most Linux systems, -ltermcap must be included
  4736. # in LIBS.  But on others, the linker complains that libtermcap can't be
  4737. # found.  In that case, try removing -ltermcap from LIBS=.
  4738. #
  4739. # But wait, there's more.  The format of the PID string in the UUCP lockfile
  4740. # changed between Linux FSSTND 1.0 and 1.2.  In the earlier standard, it had
  4741. # leading zeros; in the second, it has leading spaces.  By default this entry
  4742. # uses the newer standard.  To force the older one, add -DFSSTND10.
  4743. #
  4744. # "The nice thing about the Linux standard is there are so many to choose from"
  4745. #
  4746. # NOTE: Remove -DBIGBUFOK for small-memory or limited-resource systems.
  4747. linux10:
  4748.     @echo 'Making C-Kermit $(CKVER) for Linux 1.0 or earlier...'
  4749.     @echo 'IMPORTANT: Read the comments in the linux section of the'
  4750.     @echo 'makefile if you get compilation or link errors.'
  4751.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  4752.     "CFLAGS = -O -DPOSIX -DCK_CURSES -DCK_POSIX_SIG -DLINUX \
  4753.     -DTCPSOCKET -DLINUXFSSTND -DOLINUXHISPEED $(KFLAGS)" \
  4754.     "LNKFLAGS = $(LNKFLAGS)" "LIBS = -lcurses -ltermcap"
  4755.  
  4756. #This version was used for Linux prior to C-Kermit 6.0.192.
  4757. #Now the "Linux File System Standard" is considered standard, ditto TCP/IP.
  4758. linuxold:
  4759.     @echo 'Making C-Kermit $(CKVER) for Linux...'
  4760.     @echo 'For FSSTND-recommended UUCP lockfiles, use:'
  4761.     @echo '  make linux "KFLAGS=-DLINUXFSSTND".'
  4762.     @echo 'Read comments in makefile for additional options.'
  4763.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  4764.     "CFLAGS = -O -DLINUX -DPOSIX -DCK_CURSES -DCK_POSIX_SIG \
  4765.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" "LIBS = -lcurses -ltermcap"
  4766.  
  4767. # LynxOS 2.2 with GCC compiler, TCP/IP and fullscreen display.
  4768. # Probably also works with Lynx 2.1, and maybe even Lynx 2.0.
  4769. # -X means use termios serial drivers rather than BSD4.3-style sgtty drivers.
  4770. # If you have trouble with this, try "make bsd KFLAGS=-DNOFDZERO".
  4771. lynx:
  4772.     @echo 'Making C-Kermit $(CKVER) for LynxOS 2.2 with TCP/IP'
  4773.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  4774.     "CFLAGS= -O -DPOSIX -DDIRENT -DSETREUID -DCK_CURSES -DTCPSOCKET \
  4775.     -DCK_ANSIC -DLYNXOS" "LNKFLAGS = -X" "LIBS = -lcurses -lbsd"
  4776.  
  4777. lynx22:
  4778.     $(MAKE) lynx KTARGET=$${KTARGET:-$(@)} "KFLAGS=$(KFLAGS)"
  4779.  
  4780. # LynxOS 2.1 with GCC compiler 1.40 and TCP/IP.
  4781. lynx21:
  4782.     @echo 'Making C-Kermit $(CKVER) for LynxOS 2.1 with TCP/IP'
  4783.     $(MAKE) kermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  4784.     "CFLAGS= -O -DSETREUID -DTCPSOCKET -DCK_ANSIC -DBSD4 -DLYNXOS" \
  4785.     "LIBS = -lbsd"
  4786.  
  4787. #SCO Xenix 2.2.1 for IBM PC, XT, PS2/30, or other 8088 or 8086 machine
  4788. #Should this not work, try some of the tricks from sco286.
  4789. #NOTE: -DRENAME is omitted for early SCO Xenix releases because it didn't
  4790. #exist, or its semantics were different from the later POSIX-compliant
  4791. #version of rename().
  4792. sco86:
  4793.     @echo 'Making C-Kermit $(CKVER) for SCO Xenix/86...'
  4794.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4795.     "CFLAGS= -DXENIX -DNOFILEH -DNOIKSD -DNOUNICODE \
  4796.     $(KFLAGS) -Dunix -F 3000 -i -M0me" \
  4797.     "LNKFLAGS = -F 3000 -i -s -M0me" "LIBS = -lx"
  4798.  
  4799. #SCO Xenix/286 2.2.1, e.g. for IBM PC/AT, PS/2 Model 50, etc.
  4800. #Reportedly, this "make" can fail simply because of the size of this
  4801. #makefile.  If that happens, use "makeL", or edit out some of the
  4802. #other entries.  No debugging or character-set translation.
  4803. sco286:
  4804.     @echo 'Making C-Kermit $(CKVER) for SCO Xenix/286...'
  4805.     @echo 'If make fails, try using makeL.'
  4806.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4807.     "CFLAGS= -xenix -s -O -LARGE -DXENIX -DNOFILEH -Dunix -DRDCHK -DNAP \
  4808.     -DNOIKSD -DNODEBUG -DNOTLOG -DNOCSETS \
  4809.     $(KFLAGS) -F 3000 -i -M2let16" \
  4810.     "LIBS = -lx" "LNKFLAGS = -xenix -s -O -LARGE -F 3000 -i -M2let16"
  4811.  
  4812. #SCO Xenix/286 2.2.1, e.g. for IBM PC/AT, PS/2 Model 50, etc.
  4813. #As above, but with HDBUUCP (This one might need fixing -- see sco286).
  4814. sco286hdb:
  4815.     @echo 'Making C-Kermit $(CKVER) for SCO Xenix/286 with HDB UUCP...'
  4816.     @echo 'If make fails, try using makeL.'
  4817.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4818.     "CFLAGS= -s -O -LARGE -DXENIX -DNOFILEH -Dunix -DRDCHK -DNAP \
  4819.     -DHDBUUCP -DNOIKSD -DNOUNICODE $(KFLAGS) -F 3000 -i -M2let32" \
  4820.     "LIBS = -lx" "LNKFLAGS = -s -O -LARGE -F 3000 -i -M2let32"
  4821.  
  4822. #SCO Xenix/386 2.2.2 and 2.2.3
  4823. sco386:
  4824.     @echo 'Making C-Kermit $(CKVER) for SCO Xenix/386 2.2.2...'
  4825.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4826.     "CFLAGS= -DXENIX -DNOFILEH -DNOIKSD -DNOREDIRECT \
  4827.     -Dunix -DRDCHK -DNAP -DNOUNICODE $(KFLAGS) -Otcl -M3e" \
  4828.     "LNKFLAGS = -s" "LIBS = -lx"
  4829.  
  4830. #SCO XENIX/386 2.2.3 with Excelan TCP/IP + curses.
  4831. # NOTE: This one might need some work in C-Kermit 6.0.
  4832. # You might need to include /usr/include/sys/types.h
  4833. # containing "typedef char *caddr_t;".  Then at least it compiles.
  4834. sco386netc:
  4835.     @echo 'Making C-Kermit $(CKVER) for SCO Xenix/386 2.2.3 + Excelan TCP'
  4836.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4837.     "CFLAGS= -I/usr/include/exos -DXENIX -DCK_CURSES -DNOUNICODE \
  4838.     -Dunix -DRDCHK -DNAP -DTCPSOCKET -DEXCELAN -DNOJC -DNOMKDIR -DNOFILEH \
  4839.     -DNOREDIRECT -DNOIKSD -DNO_DNS_SRV $(KFLAGS) -Otcl -M3e" \
  4840.     "LNKFLAGS = -s" "LIBS = -lc -lx -lsocket -lcurses -ltermcap"
  4841.  
  4842. #SCO XENIX/386 2.3.3 with gcc 1.37 or later...
  4843. sco386gcc:
  4844.     @echo 'Making C-Kermit $(CKVER) for SCO Xenix/386 2.3.3, gcc...'
  4845.     @echo 'Add -D_NO_PROTOTYPE if you have trouble with Xenix header files'
  4846.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  4847.     "CFLAGS= -O -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP \
  4848.     -DNOJC -DNODEBUG -DNOUNICODE $(KFLAGS) \
  4849.     -traditional -fpcc-struct-return -fstrength-reduce \
  4850.     -DM_BITFIELDS -DM_COFF -DM_I386 -DM_I86 -DM_I86SM \
  4851.     -DM_INTERNAT -DM_SDATA -DM_STEXT -DM_SYS3 -DM_SYS5 \
  4852.     -DM_SYSIII -DM_SYSV -DM_WORDSWAP -DM_XENIX -DNOIKSD -DNOREDIRECT \
  4853.     -DPWID_T=int " "LNKFLAGS = -s" "LIBS = -lx"
  4854.  
  4855. #As above, but with curses...
  4856. sco386gccc:
  4857.     @echo 'Making C-Kermit $(CKVER) for SCO Xenix/386 2.3.3, gcc...'
  4858.     @echo 'Add -D_NO_PROTOTYPE if you have trouble with Xenix header files'
  4859.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  4860.     "CFLAGS= -O -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP \
  4861.     -DNOJC -DNODEBUG -DCK_CURSES -DNOUNICODE $(KFLAGS) \
  4862.     -traditional -fpcc-struct-return -fstrength-reduce \
  4863.     -DM_BITFIELDS -DM_COFF -DM_I386 -DM_I86 -DM_I86SM -DNOREDIRECT \
  4864.     -DM_INTERNAT -DM_SDATA -DM_STEXT -DM_SYS3 -DM_SYS5 \
  4865.     -DM_SYSIII -DM_SYSV -DM_WORDSWAP -DM_XENIX -DNOIKSD \
  4866.     -DPWID_T=int " "LNKFLAGS = -s" "LIBS = -lx -lcurses -ltermlib"
  4867.  
  4868. #SCO UNIX (and ODT) entries...
  4869. #
  4870. #NOTE: All SCO UNIX entry LIBS should have "-lc_s -lc -lx" IN THAT ORDER (if
  4871. #shared C library is desired), or else "-lc -lx" IN THAT ORDER.  Use shared C
  4872. #libraries to save memory, but then don't expect to run the resulting binary
  4873. #on a different machine.  When using -lc_s, you must also use -lc, because the
  4874. #shared C library does not contain all of libc.a.  And in all cases, -lc must
  4875. #ALWAYS precede -lx.
  4876. #
  4877. #ANOTHER NOTE: -DRENAME is included in all SCO UNIX entries.  Remove it if it
  4878. #causes trouble.  No harm is done by removing it (see ckuins.txt).
  4879. #
  4880. #AND ANOTHER: In theory, it should be possible to run SCO UNIX binaries on
  4881. #SCO Xenix 2.3 and later.  In practice, this might not work because of the
  4882. #libraries, etc.  Also, don't add the -link -z switch (which is supposed to
  4883. #root out references to null pointers) because it makes UNIX binaries core
  4884. #dump when they are run under Xenix.
  4885.  
  4886. #NOTE: -Otcl removed and replaced by -O, since -Otcl produced incorrect code.
  4887. #SCO UNIX/386 3.2.0, 3.2.1, and SCO Xenix 2.3.x
  4888. sco3r2:
  4889.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2.0 or 3.2.1 ...'
  4890.     @echo 'Warning: If make blows up, edit the makefile to join'
  4891.     @echo 'the following three continued lines into one line.'
  4892.     @echo 'Also, remove -DRENAME if _rename unresolved at link time.'
  4893.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4894.     "CFLAGS= -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP \
  4895.     -DRENAME -DNOIKSD -DNOJC $(KFLAGS) -O" \
  4896.     "LNKFLAGS = -s" "LIBS = -lc -lx"
  4897.  
  4898. #SCO UNIX/386 3.2.0 and SCO Xenix 2.3.x with Excelan TCP/IP support.
  4899. #In case of compilation or runtime problems, try adding
  4900. #"-DUID_T=int -DGID_T=int" to the CFLAGS.  If that doesn't work, try
  4901. #"-DUID_T=uid_t -DGID_T=gid_t".
  4902. sco3r2net:
  4903.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 / Excelan...'
  4904.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4905.     "CFLAGS= -I/usr/include/exos -DXENIX -DSVR3 -DNOFILEH \
  4906.     -DHDBUUCP -DRDCHK -DNAP -DRENAME -DTCPSOCKET -DEXCELAN -DNOJC \
  4907.     -DNOIKSD -DNOREDIRECT $(KFLAGS) -O" \
  4908.     "LNKFLAGS = -s" "LIBS = -lc -lx -lsocket"
  4909.  
  4910. #SCO UNIX/386 3.2.0 and SCO Xenix 2.3.x with Excelan TCP/IP support.
  4911. #As above, with curses added.
  4912. sco3r2netc:
  4913.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 / Excelan / curses...'
  4914.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4915.     "CFLAGS= -I/usr/include/exos -DXENIX -DSVR3 -DNOFILEH \
  4916.     -DHDBUUCP -DRDCHK -DNAP -DTCPSOCKET -DEXCELAN -DNOJC $(KFLAGS) \
  4917.     -DRENAME -DCK_CURSES -DNOREDIRECT -DNOIKSD -O" "LNKFLAGS = -s" \
  4918.     "LIBS = -lc -lx -lsocket -lcurses -ltermcap"
  4919.  
  4920. #SCO UNIX 3.2.x or SCO Xenix 2.3.x with Racal InterLan TCP/IP support
  4921. # Extra compile flags for other version of Racal InterLan TCP/IP:
  4922. # Xenix286/NP621-286, use -Ml -DPARAMH -DINTERLAN -Di286 -DSYSV
  4923. # Xenix386/NP621-386, use -DPARAMH -DINTERLAN -Di386 -DSYSV
  4924. # ISC386ix/NP622I, use -DSYSV -Di386
  4925. # SCO Unix3.2/NP622S, use -DSYSV -Di386 -DSCO_UNIX
  4926. # AT&T SVR3.2/NP622A, use -DSYSV -Di386 -DATT
  4927. sco3r2netri:
  4928.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 / Racal InterLan...'
  4929.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4930.     "CFLAGS= -I/usr/include/interlan -DXENIX -DNOFILEH -DHDBUUCP \
  4931.     -DSVR3 -DRDCHK -DNAP -DTCPSOCKET -DPARAMH -DINTERLAN -Di386 -DSYSV \
  4932.     -DRENAME -DNOREDIRECT -DNOIKSD -DNOJC $(KFLAGS) -Otcl -M3e" \
  4933.     "LNKFLAGS = -s" "LIBS = -lc -lx -ltcp"
  4934.  
  4935. # SCO XENIX/386 2.3.3 SysV with SCO TCP/IP
  4936. # System V STREAMS TCP developed by Lachman Associates Inc and
  4937. # Convergent Technologies.
  4938. # -DRENAME removed since some reports indicate it is not supported
  4939. # (whereas others say it is.)
  4940. sco3r2lai:
  4941.     @echo 'Making C-Kermit $(CKVER) for SCO XENIX/386 2.3.3 + TCP/IP...'
  4942.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4943.     "CFLAGS= -DLAI_TCP -Di386 -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK \
  4944.     -DNAP -DTCPSOCKET -DPWID_T=int -DNOREDIRECT -DNOIKSD $(KFLAGS) \
  4945.     -Otcl -i -M3e" \
  4946.     "LNKFLAGS = -i -s" "LIBS = -lc -lx -lsocket"
  4947.  
  4948. sco3r2laic:
  4949.     @echo 'Making C-Kermit $(CKVER) for SCO XENIX/386 2.3.3 + TCP/IP...'
  4950.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4951.     "CFLAGS= -DLAI_TCP -Di386 -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK \
  4952.     -DNAP -DTCPSOCKET -DCK_ANSIC -DCK_CURSES -DM_TERMINFO \
  4953.     -DPWID_T=int -DNOREDIRECT -DNOIKSD $(KFLAGS) -Otcl -i -M3e" \
  4954.     "LNKFLAGS = -i -s" "LIBS = -ltinfo -lc -lx -lsocket"
  4955.  
  4956. #SCO UNIX/386 3.2v2 (POSIX job control), shared libraries.
  4957. sco3r22:
  4958.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v2 ...'
  4959.     make wermit KTARGET=$${KTARGET:-$(@)} \
  4960.     "CFLAGS= -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK \
  4961.     -DNAP -DRENAME -DPID_T=pid_t -DPWID_T=int -DDIRENT -DNOIKSD \
  4962.     -DNOREDIRECT $(KFLAGS) -O" \
  4963.     "LNKFLAGS = -s" "LIBS = -lc_s -lc -lx"
  4964.  
  4965. #SCO UNIX/386 3.2v2, POSIX job control, fullscreen file transfer display,
  4966. #dynamic memory allocation, shared C library
  4967. sco3r22c:
  4968.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v2 ...'
  4969.     @echo 'Warning: If make blows up, edit the makefile to join'
  4970.     @echo 'the following four continued lines into one line.'
  4971.     make wermit KTARGET=$${KTARGET:-$(@)} \
  4972.     "CFLAGS= -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP \
  4973.     -DCK_CURSES -DDIRENT -DRENAME -DNOREDIRECT -DNOIKSD \
  4974.     -DPID_T=pid_t -DPWID_T=int $(KFLAGS) -O" \
  4975.     "LNKFLAGS = -s" "LIBS = -lcurses -lc_s -lc -lx"
  4976.  
  4977. #SCO UNIX/386 3.2v2 with gcc 1.40 or later (POSIX job control)
  4978. sco3r22gcc:
  4979.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v2, gcc'
  4980.     @echo 'Warning: If make blows up, edit the makefile to join'
  4981.     @echo 'the following seven continued lines into one line.'
  4982.     make wermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" \
  4983.     "CFLAGS= -O -DPOSIX -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP \
  4984.     -DRENAME -traditional -fpcc-struct-return -fstrength-reduce \
  4985.     -DM_BITFIELDS -DM_COFF -DM_I386 -DM_I86 -DM_I86SM \
  4986.     -DM_INTERNAT -DM_SDATA -DM_STEXT -DM_SYS3 -DM_SYS5 \
  4987.     -DM_SYSIII -DM_SYSV -DM_UNIX -DM_WORDSWAP -DM_XENIX -Dunix \
  4988.     -DPID_T=pid_t -DPWID_T=int -DNOREDIRECT -DNOIKSD $(KFLAGS) " \
  4989.     "LNKFLAGS = -s" "LIBS = -lc_s -lc -lx"
  4990.  
  4991. #SCO UNIX/386 3.2v2 (ODT 1.1) (POSIX job control) with SCO TCP/IP, shared libs
  4992. #Requires SCO TCP/IP or ODT development system for telnet.h, etc.
  4993. sco3r22net:
  4994.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2.2 + TCP/IP...'
  4995.     @echo 'Warning: If make blows up, edit the makefile to join'
  4996.     @echo 'the following three continued lines into one line.'
  4997.     make xermit KTARGET=$${KTARGET:-$(@)} \
  4998.     "CFLAGS= -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP -DTCPSOCKET \
  4999.     -DRENAME -DPID_T=pid_t -DPWID_T=int -DDIRENT -DNOREDIRECT -DNOIKSD \
  5000.     $(KFLAGS) -O" "LNKFLAGS = -s" "LIBS = -lsocket -lc_s -lc -lx"
  5001.  
  5002. #As above, but with curses for fullscreen file transfer display.
  5003. #Requires SCO TCP/IP or ODT development system for telnet.h, etc.
  5004. sco3r22netc:
  5005.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v2 + TCP/IP...'
  5006.     @echo 'Warning: If make blows up, edit the makefile to join'
  5007.     @echo 'the following three continued lines into one line.'
  5008.     make xermit KTARGET=$${KTARGET:-$(@)} "CFLAGS= \
  5009.     -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP -DTCPSOCKET -DRENAME \
  5010.     -DCK_CURSES -DDIRENT -DNOIKSD -DNOREDIRECT \
  5011.     -DPID_T=pid_t -DPWID_T=int -O $(KFLAGS)" \
  5012.     "LNKFLAGS = -s" "LIBS = -lcurses -lsocket -lc_s -lc -lx"
  5013.  
  5014. #SCO XENIX 2.3.4, no curses, no TCP/IP, no IKSD.
  5015. #This one built and tested in C-Kermit 7.0.
  5016. #lcfp is C library floating-point support.
  5017. #Use -M3 to generate 32-bit i386 code instead of 16-bit segmented i286 code.
  5018. #Use -Me to enable MS nonstandard keywords in system headers.
  5019. #Use -W2 or W3 to increase the warning level.
  5020. sco234:
  5021.     @echo 'Making C-Kermit $(CKVER) for SCO XENIX 2.3.4...'
  5022.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  5023.     "CFLAGS= -DSCO32 -DXENIX -DNOFILEH -DHDBUUCP -DRDCHK \
  5024.     -DNAP -DNOJC -DNOCOTFMC -DNOIKSD -DNOREDIRECT -DNOTNCODE -DNOGFTIMER \
  5025.     -DNOTIMEVAL -DNOTIMEZONE -DNOSYMLINK -DSCO234 -DDCLGETCWD $(KFLAGS) \
  5026.     -Otcl" "LNKFLAGS = -s" "LIBS = -lcfp -lc -lx"
  5027.  
  5028. #SCO XENIX 2.3.4, no TCP/IP, no IKSD, but with curses.
  5029. # Built and tested in C-Kermit 7.0.
  5030. # Note: XENIX 2.3.4 does not have newterm() so no point in adding -DCK_NEWTERM.
  5031. sco234c:
  5032.     @echo 'Making C-Kermit $(CKVER) for SCO XENIX 2.3.4 + curses...'
  5033.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  5034.     "CFLAGS= -DSCO32 -DXENIX -DNOFILEH -DHDBUUCP -DRDCHK \
  5035.     -DNAP -DNOJC -DNOCOTFMC -DNOIKSD -DNOREDIRECT -DNOTNCODE -DNOGFTIMER \
  5036.     -DNOTIMEVAL -DNOTIMEZONE -DNOSYMLINK -DM_TERMCAP -DCK_CURSES -DSCO234 \
  5037.     -DDCLGETCWD $(KFLAGS) -Otcl" \
  5038.     "LNKFLAGS = -s" "LIBS = -lcfp -lc -lx -lcurses -ltermlib"
  5039.  
  5040. #SCO XENIX 2.3.4 with SCO TCP/IP and curses, no IKSD.
  5041. # Built and tested in C-Kermit 7.0.  TCP/IP works and curses works.
  5042. # Previous versions of this target included -lmalloc, but this caused "error:
  5043. # " _calloc : symbol defined more than once" at link time so I removed it.
  5044. # Results are likely to vary depending on exactly which version of the SDK
  5045. # and TCP/IP SDK you have.
  5046. sco234netc:
  5047.     @echo 'Making C-Kermit $(CKVER) for SCO XENIX 2.3.4 + TCP + curses...'
  5048.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  5049.     "CFLAGS= -DSCO32 -DXENIX -DNOFILEH -DHDBUUCP -DRDCHK \
  5050.     -DNAP -DNOJC -DNOCOTFMC -DNOIKSD -DNOREDIRECT -DNOTNCODE -DNOGFTIMER \
  5051.     -DNOTIMEVAL -DNOTIMEZONE -DNOSYMLINK -DM_TERMCAP -DCK_CURSES -DSCO234 \
  5052.     -DDCLGETCWD -DTCPSOCKET -DNO_DNS_SRV $(KFLAGS) -Otcl" \
  5053.     "LNKFLAGS = -s" \
  5054.     "LIBS = -lcurses -ltermlib -lsocket -lcfp -lc -lx"
  5055.  
  5056. # SCO 3.2v4.x targets...
  5057.  
  5058. #  NOTE: Add -DDCLPOPEN and/or -DDCLFDOPEN to anySCO 3.2v4.x non-gcc entries
  5059. #  that complain about fdopen() or popen() at compile time.  They compile OK
  5060. #  without these flags as of July 1999.  However, the gcc entries seem to
  5061. #  need them, at least for gcc 2.7.2.2.
  5062.  
  5063. #  NOTE 2: To enable IKSD support, add:
  5064. #  -DCK_LOGIN -DNOGETUSERSHELL -DNOINITGROUPS
  5065. #  to CFLAGS (not tested).
  5066.  
  5067. #SCO UNIX/386 3.2v4 (POSIX job control), curses, ANSI C compilation,
  5068. #<dirent.h> (EAFS) file system.  Remove -lmalloc if it causes trouble.  It was
  5069. #put there to avoid core dumps caused by regular libc.a malloc.  Add -J to make
  5070. #all chars unsigned.  This version uses select() for CONNECT and also has
  5071. #high-precision timers and so might not work on non-TCP systems, in which case
  5072. #sco32v4ns should be used instead.
  5073. # If you get _ftime redefinition_ complaint, try adding -DODT30 to CFLAGS.
  5074. sco32v4:
  5075.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v4...'
  5076.     make xermit KTARGET=$${KTARGET:-$(@)} \
  5077.     "CFLAGS= -DCK_SCO32V4 -DNOFILEH -DHDBUUCP -DCK_CURSES -DM_TERMINFO \
  5078.     -DNOANSI -DSELECT -DNOIKSD -DDCLGETCWD -NOLSTAT \
  5079.     -DNOLINKBITS -DDCLGETCWD $(KFLAGS) -O" \
  5080.     "LNKFLAGS = -s" "LIBS = -lcurses -lmalloc -lsocket -lc_s -lc -lx"
  5081.  
  5082. # As above, but with no dependence on sockets library or select().
  5083. sco32v4ns:
  5084.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v4...'
  5085.     @echo 'No select() and no sockets library.'
  5086.     make wermit KTARGET=$${KTARGET:-$(@)} \
  5087.     "CFLAGS= -DCK_SCO32V4 -DNOFILEH -DHDBUUCP -DCK_CURSES -DM_TERMINFO \
  5088.     -DNOANSI -DNOIKSD -DNOGFTIMER -DCK_POLL -DNAP -DDCLGETCWD -DNOLSTAT \
  5089.     -DNOLINKBITS -DDCLGETCWD -O $(KFLAGS)" \
  5090.     "LNKFLAGS = -s" "LIBS = -lcurses -lmalloc -lc_s -lc -lx"
  5091.  
  5092. #SCO UNIX/386 3.2v4 (POSIX job control), TCP/IP, curses, ANSI C compilation,
  5093. #<dirent.h> (EAFS) file system.  With DIRENT, -lc must come before -lx.
  5094. #Reportedly it's OK to add -DCK_REDIR and -DCK_WREFRESH, and to remove -lc_s.
  5095. #Requires SCO TCP/IP development system or ODT for telnet.h, etc.
  5096. #See sco32v4 above for additional comments.
  5097. #NOTE: No more room for -Dxxx -- 25 seems to be the limit.  Move some to
  5098. #ckcdeb.h or somewhere...
  5099. sco32v4net:
  5100.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v4...'
  5101.     @echo 'If you get _ftime redefinition_ complaint,'
  5102.     @echo 'use make sco-odt30.'
  5103.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  5104.     "CFLAGS= -DNOFILEH -DHDBUUCP -DTCPSOCKET -DCK_ANSIC -DCK_CURSES \
  5105.     -DNAP -DCK_WREFRESH -DNOLINKBITS -D_IBCS2 -DSELECT -DNOLSTAT \
  5106.     -DDCLGETCWD -DCK_SCO32V4 -DNOIKSD -O \
  5107.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS) -s" \
  5108.     "LIBS = $(LIBS) -lcurses -lsocket -lmalloc -lsocket -lc_s -lc -lx"
  5109.  
  5110. #SCO UNIX/386 3.2v4 with gcc 1.40 or later, POSIX job control.
  5111. #Also see comments in sco32r4 entry.
  5112. sco32v4gcc:
  5113.     make xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" \
  5114.     "CFLAGS= -O -DNOFILEH -DHDBUUCP -DNOANSI -DCK_CURSES -DM_TERMINFO \
  5115.     -traditional -fpcc-struct-return -fstrength-reduce -funsigned-char \
  5116.     -D_KR -D_NO_PROTOTYPE -D_SVID -DNOIKSD -DCK_SCO32V4 -DNOLINKBITS \
  5117.     -DM_BITFIELDS -DM_COFF -DM_I386 -DM_I86 -DM_I86SM -DSELECT -DNOLSTAT \
  5118.     -DM_INTERNAT -DM_SDATA -DM_STEXT -DM_SYS3 -DM_SYS5 -DDCLGETCWD \
  5119.     -DM_SYSIII -DM_SYSV -DM_UNIX -DM_WORDSWAP -DM_XENIX -Dunix \
  5120.     -DDCLPOPEN -DDCLFDOPEN $(KFLAGS) " \
  5121.     "LNKFLAGS = -s" "LIBS = -lcurses -lsocket -lc_s -lc -lx"
  5122.  
  5123. #SCO UNIX/386 3.2v4 (POSIX job control), TCP/IP, curses, ANSI C compilation,
  5124. #Requires SCO TCP/IP or ODT development system for telnet.h, etc.
  5125. #<dirent.h> (EAFS) file system.  With DIRENT, -lc must come before -lx.
  5126. #gcc 1.40 or later.  Also see comments in sco32r4 entry.
  5127. sco32v4netgcc:
  5128.     make xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2=gcc" \
  5129.     "CFLAGS= -O2 -DNOFILEH -DHDBUUCP -DSELECT -DNOLSTAT \
  5130.     -DNOANSI -DTCPSOCKET -DCK_CURSES -DM_TERMINFO \
  5131.     -D_KR -D_NO_PROTOTYPE -D_SVID -DNOIKSD -DCK_SCO32V4 -DNOLINKBITS \
  5132.     -DM_BITFIELDS -DM_COFF -DM_I386 -DM_I86 -DM_I86SM -DDCLGETCWD \
  5133.     -DM_INTERNAT -DM_SDATA -DM_STEXT -DM_SYS3 -DM_SYS5 \
  5134.     -DM_SYSIII -DM_SYSV -DM_UNIX -DM_WORDSWAP -DM_XENIX -Dunix \
  5135.     -DDCLPOPEN -DDCLFDOPEN $(KFLAGS)" \
  5136.     "LNKFLAGS = -s" "LIBS = -lcurses -lsocket -lc_s -lc -lx"
  5137.  
  5138. #As above but with bgcc BOUNDS CHECKING (for developers only).  -lcheck has
  5139. #bounds-checking replacements for malloc, memcpy, bcopy, etc, so must come
  5140. #before -lsocket and -lc.
  5141. sco32v4netbgcc:
  5142.     make xermit KTARGET=$${KTARGET:-$(@)} \
  5143.     "CC = bgcc -pipe -m386" "CC2=bgcc -pipe -m386" \
  5144.     "CFLAGS= -O1 -g -DNOFILEH -DHDBUUCP -DSELECT \
  5145.     -DNOANSI -DTCPSOCKET -DCK_CURSES -DM_TERMINFO \
  5146.     -D_KR -D_NO_PROTOTYPE -D_SVID -DNOIKSD -DCK_SCO32V4 -DNOLSTAT \
  5147.     -DM_BITFIELDS -DM_COFF -DM_I386 -DM_I86 -DM_I86SM -DNOLINKBITS \
  5148.     -DM_INTERNAT -DM_SDATA -DM_STEXT -DM_SYS3 -DM_SYS5 -DDCLGETCWD \
  5149.     -DM_SYSIII -DM_SYSV -DM_UNIX -DM_WORDSWAP -DM_XENIX -Dunix \
  5150.     -DDCLPOPEN -DDCLFDOPEN $(KFLAGS) " \
  5151.     "LNKFLAGS = -g" "LIBS = -lcurses -lcheck -lsocket -lx"
  5152.  
  5153. sco32v4netnd:
  5154.     @echo sco32v4net with no debug
  5155.     $(MAKE) "MAKE=$(MAKE)" sco32v4net KTARGET=$${KTARGET:-$(@)} \
  5156.     "KFLAGS=$(KFLAGS) -DNODEBUG -DNOTLOG" "LIBS=$(LIBS)"
  5157.  
  5158. sco3r2netnd:
  5159.     @echo sco32v4netnd built for SCO XENIX 2.3 under SCO UNIX...
  5160.     @echo   requires copying /lib/386/Slibc.a to /lib/386/Slibc_s.a and
  5161.     @echo   getting /lib/386/Slibsocket.a from a XENIX devkit.
  5162.     @echo   WARNING: poll/CK_POLL supported only on XENIX 2.3.4
  5163.     echo    For earlier XENIX systems, replace CK_POLL with RDCHK.
  5164.     $(MAKE) "MAKE=$(MAKE)" sco32v4netnd KTARGET=$${KTARGET:-$(@)} \
  5165.     "KFLAGS=$(KFLAGS) -x2.3 -DNORENAME -DNOSYMLINK" \
  5166.     "LNKFLAGS = $(LNKFLAGS) -x2.3" \
  5167.     "LIBS=-ldir -lcfp $(LIBS)"
  5168.  
  5169. #SCO UNIX/386 3.2v4 (POSIX job control), TCP/IP, curses, ANSI C compilation,
  5170. #<dirent.h> (EAFS) file system.  With DIRENT, -lc must come before -lx.
  5171. #Reportedly it's OK to add -DCK_REDIR and -DCK_WREFRESH, and to remove -lc_s.
  5172. #Requires SCO TCP/IP development system or ODT for telnet.h, etc.
  5173. #See sco32v4 above for additional comments.
  5174. # Note: "xermit" means use the select() version of the CONNECT module.
  5175. sco32v4netx:
  5176.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v4...'
  5177.     @echo 'If you get _ftime redefinition_ complaint,'
  5178.     @echo 'use make sco-odt30.'
  5179.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  5180.     "CFLAGS= -DNOFILEH -DHDBUUCP -DTCPSOCKET -DCK_ANSIC -DCK_CURSES -DNAP \
  5181.     -DCK_WREFRESH -DNOLINKBITS -D_IBCS2 -DSELECT -DDCLGETCWD \
  5182.     -DCK_SCO32V4 -DNOIKSD -DNOLSTAT -O $(KFLAGS)" \
  5183.     "LNKFLAGS = $(LNKFLAGS) -s" \
  5184.     "LIBS = $(LIBS) -lcurses -lsocket -lmalloc -lsocket -lc_s -lc -lx"
  5185.  
  5186. sco32v4netndx:
  5187.     @echo sco32v4netx with no debug
  5188.     $(MAKE) "MAKE=$(MAKE)" sco32v4netx KTARGET=$${KTARGET:-$(@)} \
  5189.     "KFLAGS=$(KFLAGS) -DNODEBUG -DNOTLOG" "LIBS=$(LIBS)"
  5190.  
  5191. sco3r2netndx:
  5192.     @echo sco32v4netndx built for SCO XENIX 2.3 under SCO UNIX...
  5193.     @echo   requires copying /lib/386/Slibc.a to /lib/386/Slibc_s.a and
  5194.     @echo   getting /lib/386/Slibsocket.a from a XENIX devkit.
  5195.     @echo   WARNING: poll/CK_POLL supported only on XENIX 2.3.4
  5196.     echo    For earlier XENIX systems, replace CK_POLL with RDCHK.
  5197.     $(MAKE) "MAKE=$(MAKE)" sco32v4netndx KTARGET=$${KTARGET:-$(@)} \
  5198.     "KFLAGS=$(KFLAGS) -x2.3 -DNORENAME -DNOSYMLINK" \
  5199.     "LNKFLAGS = $(LNKFLAGS) -x2.3" \
  5200.     "LIBS=-ldir -lcfp $(LIBS)"
  5201.  
  5202. sco-odt30:
  5203.     @echo SCO ODT 3.0
  5204.     $(MAKE) "MAKE=$(MAKE)" sco32v4net KTARGET=$${KTARGET:-$(@)} \
  5205.     "KFLAGS=$(KFLAGS) -DODT30"
  5206.  
  5207. #SCO OpenServer 5.0 (SCO UNIX 3.2v5.0) with SCO development tools, no TCP/IP.
  5208. #SCO OSR5 is much more like standard System V than previous SCO releases.
  5209. #The SCO development tools include TCP/IP, so this target is only for creating
  5210. #artificially limited versions of kermit required by site policy rather than
  5211. #the operating system.  NOSYSLOG is included because syslog() requires the
  5212. #sockets library.
  5213. sco32v500:
  5214.     @echo Making C-Kermit $(CKVER) for SCO OpenServer Release 5...
  5215.     $(MAKE) xermit CC=$(CC) CC2=$(CC2) KTARGET=$${KTARGET:-$(@)} \
  5216.     "CFLAGS= -O -DDIRENT -DHDBUUCP -DSVR4 -DCK_SCOV5 -DCK_RTSCTS \
  5217.     -DCK_CURSES -DCK_WREFRESH -DCK_NEWTERM -DSELECT -DSELECT_H \
  5218.     -DNOGETUSERSHELL -DNOLSTAT -DNOLINKBITS -DNOSYSLOG $(KFLAGS)" \
  5219.     "LIBS=-lcurses $(LIBS)" "LNKFLAGS=$(LNKFLAGS)"
  5220.  
  5221. sco32v5:
  5222.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=$(KFLAGS)" sco32v500
  5223.  
  5224.  
  5225. #SCO OpenServer 5.0 with networking, SCO development tools.
  5226. #Networking libraries are now provided with the OS.
  5227. sco32v500net:
  5228.     @echo Making C-Kermit $(CKVER) for SCO OpenServer Release 5...
  5229.     $(MAKE) xermit CC=$(CC) CC2=$(CC2) KTARGET=$${KTARGET:-$(@)} \
  5230.     "CFLAGS= -O -DDIRENT -DHDBUUCP -DSVR4 -DCK_SCOV5 -DCK_RTSCTS \
  5231.     -DCK_CURSES -DCK_WREFRESH -DCK_NEWTERM -DSELECT -DSELECT_H \
  5232.     -DNOGETUSERSHELL -DNOLSTAT -DNOLINKBITS -DTCPSOCKET $(KFLAGS)" \
  5233.     "LIBS=-lcurses -lsocket $(LIBS)" "LNKFLAGS=$(LNKFLAGS)"
  5234.  
  5235. sco32v5net:
  5236.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=$(KFLAGS)" sco32v500net
  5237.  
  5238. #SCO OpenServer 5.0 with gcc, no networking.
  5239. #Note: NOSYSLOG required for non-net entries because it requires <socket.h>
  5240. sco32v500gcc:
  5241.     @echo Using gcc...
  5242.     $(MAKE) "MAKE=$(MAKE)" sco32v500CC=gcc CC2=gcc \
  5243.     KTARGET=$${KTARGET:-$(@)} "KFLAGS= $(KFLAGS)"
  5244.  
  5245. #SCO OpenServer 5.0 with networking, gcc.
  5246. sco32v500netgcc:
  5247.     @echo TCP/IP networking added - using gcc...
  5248.     $(MAKE) "MAKE=$(MAKE)" sco32v500net CC=gcc CC2=gcc \
  5249.     KTARGET=$${KTARGET:-$(@)} "KFLAGS=$(KFLAGS)"
  5250.  
  5251. #SCO OpenServer 5.0 with networking, gcc, elf.
  5252. sco32v500netgccelf:
  5253.     @echo TCP/IP networking added - using gcc, dynamic elf library
  5254.     $(MAKE) "MAKE=$(MAKE)" sco32v500net "CC=gcc" "CC2=gcc" \
  5255.     KTARGET=$${KTARGET:-$(@)} "KFLAGS=-O3 -belf" "LNKFLAGS=-belf"
  5256.  
  5257. sco32v502:
  5258.     $(MAKE) "MAKE=$(MAKE)" sco32v500 KTARGET=$${KTARGET:-$(@)} \
  5259.     "KFLAGS=-DSCO_OSR502 $(KFLAGS)"
  5260.  
  5261. #SCO OpenServer 5.0.2 with networking, SCO development tools.
  5262. sco32v502net:
  5263.     @echo TCP/IP networking added...
  5264.     $(MAKE) "MAKE=$(MAKE)" sco32v500net KTARGET=$${KTARGET:-$(@)} \
  5265.     "KFLAGS=-b elf -DSCO_OSR502 $(KFLAGS)"
  5266.  
  5267. #SCO OpenServer 5.0.4 (SCO UNIX 3.2v5.0.4) with SCO development tools.
  5268. #Like 5.0, but adds high serial speeds.  First POSIX-based SCO version.
  5269. sco32v504:
  5270.     $(MAKE) "MAKE=$(MAKE)" sco32v500 KTARGET=$${KTARGET:-$(@)} \
  5271.     "KFLAGS=-DSCO_OSR504 -b elf -DPOSIX $(KFLAGS)"
  5272.  
  5273. #SCO OpenServer 5.0.4 with gcc, no networking.
  5274. sco32v504gcc:
  5275.     @echo Using gcc...
  5276.     $(MAKE) "MAKE=$(MAKE)" sco32v500"CC=gcc" "CC2=gcc" \
  5277.     KTARGET=$${KTARGET:-$(@)} "KFLAGS=-DSCO_OSR504 -DPOSIX $(KFLAGS)"
  5278.  
  5279. #SCO OpenServer 5.0.4 with networking, SCO development tools.
  5280. sco32v504net:
  5281.     @echo TCP/IP networking added...
  5282.     $(MAKE) "MAKE=$(MAKE)" sco32v500net KTARGET=$${KTARGET:-$(@)} \
  5283.     "KFLAGS=-b elf -DSCO_OSR504 -DPOSIX $(KFLAGS)"
  5284.  
  5285. #SCO OpenServer 5.0.4 with networking, gcc.
  5286. sco32v504netgcc:
  5287.     @echo TCP/IP networking added - using gcc...
  5288.     @echo If gcc crashes on ckwart.c then build it by hand:
  5289.     @echo " gcc -o wart -DCK_SCOV5 ckwart.c"
  5290.     $(MAKE) "MAKE=$(MAKE)" sco32v500net "CC=gcc" "CC2=gcc" \
  5291.     KTARGET=$${KTARGET:-$(@)} "KFLAGS=-DSCO_OSR504 -DPOSIX $(KFLAGS)"
  5292.  
  5293. #SCO OpenServer 5.0.4 with networking, gcc, elf.
  5294. sco32v504netgccelf:
  5295.     @echo TCP/IP networking added - using gcc, dynamic elf library
  5296.     $(MAKE) "MAKE=$(MAKE)" sco32v500net "CC=gcc" "CC2=gcc"
  5297.     KTARGET=$${KTARGET:-$(@)} \
  5298.     "KFLAGS=-DSCO_OSR504 -DPOSIX -O3 -belf $(KFLAGS)" \
  5299.     LNKFLAGS="-belf"
  5300.  
  5301. #SCO OpenServer 5.0.5 (SCO UNIX 3.2v5.0.5) with SCO development tools.
  5302. #Like 5.0, but adds high serial speeds.  First POSIX-based SCO version.
  5303. sco32v505:
  5304.     $(MAKE) "MAKE=$(MAKE)" sco32v500 KTARGET=$${KTARGET:-$(@)} \
  5305.     "KFLAGS=-DSCO_OSR505 -b elf -DPOSIX $(KFLAGS)"
  5306.  
  5307. #SCO OpenServer 5.0.5 (SCO UNIX 3.2v5.0.5) with UDK.
  5308. sco32v505udk:
  5309.     $(MAKE) "MAKE=$(MAKE)" sco32v500 KTARGET=$${KTARGET:-$(@)} \
  5310.     "KFLAGS=-DSCO_OSR505 -DDCLTIMEVAL -b elf -DPOSIX $(KFLAGS)"
  5311.  
  5312. #SCO OpenServer 5.0.5 with gcc, no networking.
  5313. sco32v505gcc:
  5314.     @echo Using gcc...
  5315.     $(MAKE) "MAKE=$(MAKE)" sco32v500"CC=gcc" "CC2=gcc" \
  5316.     KTARGET=$${KTARGET:-$(@)} \
  5317.     "KFLAGS=-DSCO_OSR505 -DPOSIX -funsigned-char $(KFLAGS)"
  5318.  
  5319. #SCO OpenServer 5.0.5 with networking, SCO development tools.
  5320. sco32v505net:
  5321.     @echo TCP/IP networking added...
  5322.     $(MAKE) "MAKE=$(MAKE)" sco32v500net KTARGET=$${KTARGET:-$(@)} \
  5323.     "KFLAGS=-DSCO_OSR505 -b elf -DPOSIX $(KFLAGS)"
  5324.  
  5325. #SCO OpenServer 5.0.5 with networking, gcc.
  5326. sco32v505netgcc:
  5327.     @echo TCP/IP networking added - using gcc...
  5328.     @echo If gcc crashes on ckwart.c then build it by hand:
  5329.     @echo " gcc -o wart -DCK_SCOV5 ckwart.c"
  5330.     $(MAKE) "MAKE=$(MAKE)" sco32v500net "CC=gcc" "CC2=gcc" \
  5331.     KTARGET=$${KTARGET:-$(@)} \
  5332.     "KFLAGS=-DSCO_OSR505 -DPOSIX -funsigned-char $(KFLAGS)"
  5333.  
  5334. #egcs is just like gcc but generates ELF by default.
  5335. #Or you can include -melf (not -belf) to force it.
  5336. sco32v505netegcs:
  5337.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=$(KFLAGS)" sco32v505netgcc \
  5338.     KTARGET=$${KTARGET:-$(@)}
  5339.  
  5340. #SCO OpenServer 5.0.5 with networking, gcc, elf.
  5341. sco32v505netgccelf:
  5342.     @echo TCP/IP networking added - using gcc, dynamic elf library
  5343.     $(MAKE) "MAKE=$(MAKE)" sco32v500net "CC=gcc" "CC2=gcc"
  5344.     "KFLAGS=-DSCO_OSR505 -DPOSIX -funsigned-char -O3 -belf $(KFLAGS)" \
  5345.     KTARGET=$${KTARGET:-$(@)} LNKFLAGS="-belf"
  5346.  
  5347. #Tandy 16/6000 with Xenix 3.0
  5348. #Add more -DNOxxx options to remove features if program won't load.
  5349. #Successful operation is a function of program size, physical memory,
  5350. #available swap space, etc.  The following stripped-down configuration
  5351. #seems to work on most Tandy 6000s.  NOTE: "-+" means allow long variable
  5352. #names, needed for C-Kermit 6.0 because some identifiers are not unique
  5353. #within the first six characters.
  5354. #C-Kermit 7.0 does not build here; "too many defines".
  5355. trs16:
  5356.     @echo 'Making C-Kermit $(CKVER) for Tandy 16/6000, Xenix 3.0...'
  5357.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  5358.     "CFLAGS = -+ -DATTSV -DTRS16 -DNOMKDIR -DDCLPOPEN -DCK_CURSES \
  5359.     -DNODEBUG -DNOTLOG -DNOHELP -DNOSCRIPT -DNOCSETS -DNOIKSD \
  5360.     -DNOREDIRECT -DNOSYSLOG -DNOPUTENV -DNOREALPATH \
  5361.     $(KFLAGS) -O" "LIBS= -lcurses -ltermcap" "LNKFLAGS = -+ -n -s"
  5362.  
  5363. #MINIX/2.0 32 Bit version for intel 386+ running the POSIX-compliant MINIX
  5364. # version 2.0 (The definition of fatal avoids a conflict with a symbol by
  5365. # the same name in the curses library.) It is impossible to compile with
  5366. # network support since Minix does not support Berkeley sockets.
  5367. # Note: use chmem liberally on the compiler passes, make, and the final
  5368. # kermit executable. (3 megabytes of memory for each is sufficient.)
  5369. # From Terry McConnell, Syracuse U, and Will Rose.  Will says:
  5370. # The stacks for make and some compiler passes needed to be increased
  5371. # with chmem as follows:
  5372. #   make 1MB
  5373. #   /usr/lib/em_cemcom.ansi 3MB
  5374. #   /usr/lib/em_opt 1MB
  5375. #   /usr/lib/i386/cg 1MB
  5376. #   /usr/lib/i386/as 1MB
  5377. # The compiler temporary directory was set to /usr/tmp via the TMPDIR
  5378. # environment variable; more than 1MB of temporary space was needed.
  5379. # Kermit itself needs at least 1MB of stack.
  5380. minix20:
  5381.     @echo 'Making C-Kermit $(CKVER) for MINIX 2.0/386...'
  5382.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} EXT=o \
  5383.     "CFLAGS=  -wo -DV7 -DMINIX2 -DMINIX -DSIG_V -D_POSIX_SOURCE \
  5384.     -DCKCPU=\\\"i-386\\\" -DNOIKSD -Dfatal=myfatal -DCK_CURSES \
  5385.     -DNOSYSLOG -DUSE_MEMCPY -DNOREALPATH $(KFLAGS)" "LIBS= -lcurses"
  5386.  
  5387. #MINIX/386 (PC Minix modified by Bruce Evans in Australia for 386 addressing)
  5388. # For MINIX 1.5+ (but < 2.0)
  5389. minix386:
  5390.     @echo 'Making C-Kermit $(CKVER) for MINIX/386...'
  5391.     @echo 'TOTALLY UNTESTED!'
  5392.     $(MAKE) wermit EXT=s KTARGET=$${KTARGET:-$(@)} \
  5393.     "CFLAGS= -DV7 -DMINIX -D_POSIX_SOURCE $(KFLAGS)"
  5394.  
  5395. #MINIX/386 (PC Minix modifed by Bruce Evans in Australia to use 386 addressing)
  5396. minix386gcc:
  5397.     @echo 'Making C-Kermit $(CKVER) for MINIX/386 with gcc...'
  5398.     @echo 'TOTALLY UNTESTED!'
  5399.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC=gcc -g -O" "CC2=gcc -g" \
  5400.     "CFLAGS= -DV7 -DMINIX -D_POSIX_SOURCE $(KFLAGS)"
  5401.  
  5402. #MINIX - 68k version with ACK compiler.
  5403. # If you have trouble compiling or running wart, "touch wart".
  5404. # If it still doesn't work, "touch ckcpro.c".
  5405. # The version configured below has many features removed, including
  5406. # the TRANSMIT, MSEND, HELP, and SCRIPT commands, international
  5407. # character set support, and the entire script programming language.
  5408. # But it does have an interactive command parser.
  5409. # Make sure make(1) has (at least) 100000 chmemory!
  5410. # If you are using the Amsterdam C compiler, you might have to add "-D__ACK__".
  5411. minix68k:
  5412.     @echo 'Making C-Kermit $(CKVER) for MINIX 68k with ACK...
  5413.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  5414.     "CFLAGS= -DV7 -DMINIX -D_MINIX -D_POSIX_SOURCE \
  5415.     -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG \
  5416.     -DNOSCRIPT -DNOCSETS -DNOSPL $(KFLAGS) \
  5417.     -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t -DSIG_V"
  5418.  
  5419. #MINIX - 68k version with c68 compiler.
  5420. # If you have trouble compiling or running wart, "touch wart" or
  5421. # "touch ckcpro.c". Compiling ckudia.c (no -DNODIAL!) might fail. :-(
  5422. # Give c68 250000 bytes of stack+heap; make sure make(1) has at least
  5423. # 100000 chmemory.  On a 1Mb Atari ST this means that the recursive
  5424. # call of make fails due to memory shortage.  Try "make -n minixc68 >makeit",
  5425. # followed by ". makeit".  Otherwise, as above.
  5426. minixc68:
  5427.     @echo 'Making C-Kermit $(CKVER) for MINIX 68k with c68...
  5428.     $(MAKE) wermit "CC= cc -c68" KTARGET=$${KTARGET:-$(@)} \
  5429.     "CFLAGS= -DV7 -DMINIX -D_MINIX -D_POSIX_SOURCE \
  5430.     -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG \
  5431.     -DNOSCRIPT -DNOCSETS -DNOSPL $(KFLAGS) \
  5432.     -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t -DSIG_V"
  5433.  
  5434. #MINIX - 68k version with c68 compiler.
  5435. #A variation on the above that was recently (Sep 95) reported to work.
  5436. minixc68a:
  5437.     @echo 'Making C-Kermit $(CKVER) for MINIX 68k with c68...
  5438.     $(MAKE) wermit "CC= cc -c68" KTARGET=$${KTARGET:-$(@)} \
  5439.     "CFLAGS= -DV7 -DMINIX -D_MINIX -D_POSIX_SOURCE \
  5440.     -DCK_ANSIC -DNODEBUG -DNOTLOG -DMINIDIAL -DEXTEN -DMYCURSES \
  5441.     -DNOSCRIPT -DNOCSETS -DNOSPL -DNOJC -DDIRENT \
  5442.     -DNOSETKEY -DNOESCSEQ $(KFLAGS) \
  5443.     -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t -DSIG_V"
  5444.  
  5445. #MIPS Computer Systems with UMIPS RISC/OS 4.52 = AT&T UNIX System V R3.0.
  5446. #Remove -DNOJC if job control can be safely used.
  5447. mips:
  5448.     @echo 'Making C-Kermit $(CKVER) for MIPS RISC/OS...'
  5449.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  5450.     "CFLAGS = -DMIPS -DDIRENT -DCK_POLL -DNOJC -DPID_T=int \
  5451.     -DGID_T=gid_t -DUID_T=uid_t -i -O1500 $(KFLAGS)"
  5452.  
  5453. #As above, but with TCP/IP and fullscreen support.
  5454. mipstcpc:
  5455.     @echo 'Making C-Kermit $(CKVER) for MIPS RISC/OS...'
  5456.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  5457.     "CFLAGS = -DMIPS -DDIRENT -DCK_POLL -DNOJC \
  5458.     -DTCPSOCKET -DCK_CURSES -I/usr/include/bsd \
  5459.     -DPID_T=int -DGID_T=gid_t -DUID_T=uid_t -i -O1500 $(KFLAGS)" \
  5460.     "LIBS = -lcurses -lbsd"
  5461.  
  5462. #Motorola Delta System V/68 R3, signal() is void rather than int.
  5463. #Uses dirent.h and Honey DanBer uucp.  Supports TCP/IP.
  5464. #After building, use "mcs -d" to reduce size of the executable program.
  5465. sv68r3:
  5466.     @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/68 R3...'
  5467.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  5468.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DNO_DNS_SRV -DTCPSOCKET \
  5469.     -DNOUNICODE $(KFLAGS) -O" "LNKFLAGS ="
  5470.  
  5471. #Motorola Delta System V/68 R3V5, signal() is void rather than int.
  5472. #Uses dirent.h and Honey DanBer UUCP.  Supports TCP/IP.
  5473. #After building, use "mcs -d" to reduce size of the executable program.
  5474. sv68r3v5:
  5475.     @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/68 R3V5'
  5476.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  5477.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DNO_DNS_SRV \
  5478.     -DTCPSOCKET -DINADDRX -DNOUNICODE $(KFLAGS) -O" \
  5479.     "LNKFLAGS =" "LIBS = -linet"
  5480.  
  5481. #Motorola MVME147 System V/68 R3 V5.1. Requires gcc 2.1 to compile.
  5482. #After building, use "mcs -d" to reduce size of the executable program.
  5483. sv68r3v51:
  5484.     @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/68 R3V5.1'
  5485.     $(MAKE) wermit "CC=gcc-delta" "CC2=gcc-delta" \
  5486.     KTARGET=$${KTARGET:-$(@)} \
  5487.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DNODEBUG -DNO_DNS_SRV \
  5488.     -DNOUNICODE $(KFLAGS) -O2 -v -ftraditional" \
  5489.     "LNKFLAGS = -s -v" "LIBS = -lm881"
  5490.  
  5491. #Motorola MVME147 System V/68 R3V6. derived from Motorola Delta System R3V5.
  5492. #Checked on larger Motorola System V/68 R3V6 (with NSE Network Services Ext.)
  5493. #After building, use "strip" to reduce size of the executable program.
  5494. #Try removing the LIBS clause if it causes trouble (libnsl might not actually
  5495. #be necessary, and reportedly it is missing on some systems).
  5496. #  "LIBS = -lnsl" removed in C-Kermit 6.1 - put back if needed.
  5497. sv68r3v6:
  5498.     @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/68 R3V6'
  5499.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  5500.     "CFLAGS = -DSV68R3V6 -DDIRENT -DHDBUUCP -DNOLOGIN -DNOINITGROUPS \
  5501.     -DNOSYMLINK -DNOREDIRECT -DNOGFTIMER -DTCPSOCKET -DDCLGETCWD \
  5502.     -DNO_DNS_SRV -DNOUNICODE $(KFLAGS) -O" "LNKFLAGS ="
  5503.  
  5504. #Motorola Delta System V/88 R32, signal() is void rather than int.
  5505. #Uses dirent.h and Honey DanBer uucp.  Needs <sys/utime.h> for setting
  5506. #file dates.  Supports TCP/IP.
  5507. #After building, use "mcs -d" to reduce size of the executable program.
  5508. sv88r32:
  5509.     @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/88 R32...'
  5510.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  5511.     "CFLAGS = -DSV88R32 -DDIRENT -DHDBUUCP -DTCPSOCKET \
  5512.     -DSYSUTIMEH -DCK_CURSES -DNOGETUSERSHELL -DGTODONEARG $(KFLAGS) -O" \
  5513.     "LIBS= -lcurses -lresolv" "LNKFLAGS = -s"
  5514.  
  5515. #Motorola Delta System V/88 R40.  Has <sys/termiox.h>, regular Berkeley
  5516. #sockets library, i.e. in.h and inet.h are not misplaced in sys (rather than
  5517. #netinet and arpa, respectively).  Uses ANSI C constructs, advisory file
  5518. #locking on devices, etc.  curses support added.  Reportedly, the
  5519. #/usr/include/sys/vnode.h file has a bug which must be fixed before this
  5520. #makefile entry can work correctly.  The "if DEBUG" directive at about line
  5521. #320 must be changed to "ifdef DEBUG" (Reportedly, this was fixed in
  5522. #in System V/88 R4.3).
  5523. #After building, use "mcs -d" to reduce size of the executable program.
  5524. sv88r40:
  5525.     @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/88 R40...'
  5526.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  5527.     "CFLAGS = -O -DSVR4 -DMOTSV88R4 -DDIRENT -DHDBUUCP -DSTERMIOX \
  5528.     -DTCPSOCKET -DCK_CURSES -DNOGETUSERSHELL -DGTODONEARG $(KFLAGS)" \
  5529.     "LIBS= -lsocket -lnsl -lcurses -lresolv" "LNKFLAGS = -s"
  5530.  
  5531. #Olivetti X/OS R2.3, 3.x.
  5532. #NOTES:
  5533. # . If you build the executable on 2.x X/OS, it will also run on 3.x.
  5534. # . If you build it on 3.x X/OS, it will NOT run on 2.x.
  5535. # . Kermit can run with no privileges unless the uucp lines are protected,
  5536. #   in which case kermit must be owned by uucp with suid bit set:
  5537. #   chown uucp kermit ; chmod 4111 kermit.
  5538. xos23:
  5539.     @echo 'Making C-Kermit $(CKVER) for Olivetti X/OS...'
  5540.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  5541.     'CFLAGS=-OLM -DOXOS -DTCPSOCKET -DHDBUUCP $(KFLAGS)' \
  5542.     "LIBS=" "LNKFLAGS="
  5543.  
  5544. #As above, but with curses.
  5545. xos23c:
  5546.     @echo 'Making C-Kermit $(CKVER) for Olivetti X/OS with curses...'
  5547.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  5548.     'CFLAGS=-OLM -DOXOS -DTCPSOCKET -DHDBUUCP -DCK_CURSES $(KFLAGS)' \
  5549.     "LIBS=-lcurses" "LNKFLAGS="
  5550.  
  5551. ckuuid:
  5552.     @echo 'building C-Kermit $(CKVER) set-UID/set-GID test programs'
  5553.     $(CC) -DANYBSD -DSAVEDUID -o ckuuid1 ckuuid.c
  5554.     $(CC) -DANYBSD -o ckuuid2 ckuuid.c
  5555.     $(CC) -DANYBSD -DNOSETREU -o ckuuid3 ckuuid.c
  5556.     $(CC) -DANYBSD -DSETEUID -DNOSETREU -o ckuuid4 ckuuid.c
  5557.     $(CC) -o ckuuid5 ckuuid.c
  5558.     @echo 'Read the top of ckuuid.c for directions...for testing'
  5559.     @echo 'you must make these programs setuid and setgid'
  5560.  
  5561. ############################################################################
  5562. # A N T I Q U I T I E S
  5563. #
  5564. # The following are antique targets from C-Kermit 5A or earlier.  They have
  5565. # not been updated or tested in years.  Most of them will need recent features
  5566. # disabled, usually with some combination of -DNOUNICODE, -DNOIKSD, -DNOANSI,
  5567. # -DNOCKGHNLHOST, -DNO_DNS_SRV, -DNOREDIRECT, -DNOREALPATH, -DNOCURSES, etc.
  5568. # They are also missing the KTARGET=$${KTARGET:-$(@)} business.
  5569. # For details see ckuins.txt and ckccfg.txt.
  5570. #
  5571. ############################################################################
  5572.  
  5573. #Berkeley Unix 2.8, 2.9 for PDP-11s with I&D space, maybe also Ultrix-11???
  5574. #C-Kermit(5A) is simply too large (even turning off almost every feature
  5575. #available) to run without both I&D space plus overlays.  The old comment
  5576. #suggested running 'pcc' but that won't help.  Changing 'cc' to 'ckustr.sed'
  5577. #will cause a string extraction to be done, saving D space by moving strings
  5578. #to a file.
  5579. bsd29:
  5580.     @echo Making C-Kermit $(CKVER) for 2.8 or 2.9BSD.
  5581.     @echo Read the makefile if you have trouble with this...
  5582.     $(MAKE) ovwermit \
  5583.     "CFLAGS= -DBSD29 -DNODEBUG -DNOTLOG -DNOCSETS -DNOHELP \
  5584.     -DNOSCRIPT -DNOSPL -DNOXMIT -DNODIAL $(KFLAGS)" \
  5585.     "LNKFLAGS= -i -lndir" "CC= cc " "CC2= cc"
  5586.  
  5587. bsd210:
  5588.     @echo Please use ckubs2.mak to build C-Kermit $(CKVER) for 2.10BSD.
  5589.  
  5590. bsd211:
  5591.     @echo Please use ckubs2.mak to build C-Kermit $(CKVER) for 2.11BSD.
  5592.  
  5593. #Charles River Data Systems Universe with UNOS Version 9.2
  5594. crds:
  5595.     @echo 'Making C-Kermit $(CKVER) for Charles River Data Systems...'
  5596.     make xermit \
  5597.     "CFLAGS = -DATTSV -DNOANSI -DDIRENT -DLONGFN -DTCPSOCKET \
  5598.     -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DNOSETREU \
  5599.     -Dsuspend=ksuspend $(KFLAGS) -O" "LNKFLAGS ="
  5600.  
  5601. #Microport SV/AT for IBM PC/AT 286 and clones, System V R2.
  5602. #The -O flag may fail on some modules (like ckuus2.c), in which case you
  5603. #should compile them by hand, omitting the -O.  If you get "hash table
  5604. #overflow", try adding -DNODEBUG.
  5605. #Also, reportedly this compiles better with gcc than with cc.
  5606. mpsysv:
  5607.     @echo 'Making C-Kermit $(CKVER) for Microport SV/AT 286...'
  5608.     $(MAKE) wermit \
  5609.     "CFLAGS= -DATTSV $(KFLAGS) -O -Ml" "LNKFLAGS = -Ml"
  5610.  
  5611. #Microsoft "Xenix/286" e.g. for IBM PC/AT
  5612. xenix:
  5613.     @echo 'Making C-Kermit $(CKVER) for Xenix/286'
  5614.     $(MAKE) wermit \
  5615.     "CFLAGS= -DXENIX -DNOFILEH $(KFLAGS) -Dunix -F 3000 -i" \
  5616.     "LNKFLAGS = -F 3000 -i"
  5617.  
  5618. #PC/IX, Interactive Corp System III for IBM PC/XT
  5619. pcix:
  5620.     @echo 'Making C-Kermit $(CKVER) for PC/IX...'
  5621.     $(MAKE) wermit \
  5622.     "CFLAGS= -DPCIX -DISIII $(KFLAGS) -Dsdata=sdatax -O -i" "LNKFLAGS = -i"
  5623.  
  5624. #Integrated Solutions Inc V8S VME 68020
  5625. isi:
  5626.     @echo Making C-Kermit $(CKVER) for 4.2BSD on ISI...
  5627.     $(MAKE) wermit "CC = cc" \
  5628.     "CFLAGS= -DBSD4 -DTCPSOCKET -DINADDRX -DDCLPOPEN -DDEBUG -DNOSETREU \
  5629.     -DCK_CURSES $(KFLAGS)" "LIBS = -lcurses -ltermcap"
  5630.  
  5631. #Interactive Corp version of AT&T System III
  5632. #is3: (very old, probably not sufficient for 5A or later)
  5633. #    @echo 'Making C-Kermit $(CKVER) for Interactive System III...'
  5634. #    make wermit "CFLAGS = -DISIII -Ddata=datax -O -i" "LNKFLAGS = -i"
  5635. #The following should work, use it if you don't have gcc.
  5636. #Use is3gcc if you have gcc.
  5637. is3:
  5638.     @echo 'Making C-Kermit $(CKVER) for Interactive System III...'
  5639.     $(MAKE) wermit \
  5640.     "CFLAGS= -DISIII $(KFLAGS) -Ddata=datax -DNAP -DHDBUUCP
  5641.     -DLOCK_DIR=\"/usr/spool/uucp\" -DSIGTYP=void -O -i" "LNKFLAGS = -i"
  5642.  
  5643. #Interactive UNIX System V R3, no network support.  Uses <dirent.h> and Honey
  5644. #DanBer UUCP.  If this entry does not compile correctly, try any or all of the
  5645. #following.  These suggestions also apply more or less to the other is5r3xxx
  5646. #entries that follow this one.
  5647. # . Remove the UID_T and GID_T definitions, or change them as required.
  5648. # . Change -DDIRENT to -DSDIRENT.
  5649. # . Add -DSIGTYP=void.
  5650. # . Remove -g from LNKFLAGS.
  5651. # . Add -DNOANSI to remove compiler complaints about ANSI C constructions
  5652. # . Add other -DNOxxx's to save space (e.g. -DNOCSETS)
  5653. # See the next few makefile entries for related examples.
  5654. is5r3:
  5655.     @echo 'Making C-Kermit $(CKVER) for Interactive 386/ix or later...'
  5656.     @echo 'If this does not work please read the makefile entry.'
  5657.     $(MAKE) wermit \
  5658.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -g -DNOCSETS \
  5659.     -DUID_T=ushort -DGID_T=ushort -DI386IX $(KFLAGS)" \
  5660.     "LNKFLAGS = -g"
  5661.  
  5662. #Interactive Corp System System V R3 with gcc
  5663. is3gcc:
  5664.     @echo 'Making C-Kermit $(CKVER) for Interactive System V R3 / gcc...'
  5665.     $(MAKE) wermit CC=gcc CC2=gcc \
  5666.     'CFLAGS = -D_SYSV3 -DISIII -Ddata=datax -DNAP -DHDBUUCP \
  5667.     -DLOCK_DIR=\"/usr/spool/uucp\" -DSIGTYP=void -O' "LNKFLAGS ="
  5668.  
  5669. #Interactive UNIX System V R3, POSIX variant.  Untested.
  5670. #Uses dirent.h and Honey DanBer uucp.  Read comments in is5r3 entry.
  5671. is5r3p:
  5672.     @echo 'Making C-Kermit $(CKVER) for Interactive 386/ix or later...'
  5673.     $(MAKE) wermit \
  5674.     "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -g -DNOCSETS \
  5675.     -DI386IX -DPOSIX $(KFLAGS)" "LNKFLAGS=" "LIBS=-lcposix"
  5676.  
  5677. #Interactive UNIX SVR3 2.2.1, job control, curses, no net, gcc.
  5678. is5r3gcc:
  5679.     $(MAKE) wermit CC=gcc CC2=gcc \
  5680.     "CFLAGS=-g -posix -DSVR3 -DDIRENT \
  5681.     -DHDBUUCP -O -DNOCSETS -DI386IX -DSVR3JC -DCK_CURSES \
  5682.     $(KFLAGS)" LNKFLAGS="-posix" LIBS="-lcurses -lc_s"
  5683.  
  5684. #Interactive UNIX System V R3 with TCP/IP network support.
  5685. #Needs -linet for net functions.  signal() is void rather than int.
  5686. #Uses dirent.h and Honey DanBer uucp. Read comments in is5r3 entry.
  5687. #Also see is5r3net2 if you have trouble with this entry.
  5688. is5r3net:
  5689.     @echo 'Making C-Kermit $(CKVER) for Interactive 386/ix...'
  5690.     @echo 'If this does not work please read the makefile entry.'
  5691.     $(MAKE) wermit CC="$(CC)" CC2="$(CC2)" \
  5692.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DTCPSOCKET \
  5693.     -DI386IX $(KFLAGS) -O" "LIBS = -linet"
  5694.  
  5695. is5r3netgcc:
  5696.     $(MAKE) is5r3net CC=gcc CC2=gcc
  5697.  
  5698. #Interactive UNIX System V R3, no job control, signal() void rather than int.
  5699. #Uses dirent.h and Honey DanBer uucp.  Needs -linet for net functions.
  5700. #Read comments in is5r3 entry.  Use this entry if is5r3net fails.
  5701. #Saves some space by stripping (-s) and using shared library (-lc_s).
  5702. is5r3net2:
  5703.     @echo 'Making C-Kermit $(CKVER) for Interactive 386/ix...'
  5704.     $(MAKE) wermit \
  5705.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DTCPSOCKET -DNOJC \
  5706.     -DSIGTYP=void -DNOANSI -DI386IX $(KFLAGS) -O" \
  5707.     "LNKFLAGS= -s" "LIBS = -linet -lc_s"
  5708.  
  5709. #Interactive UNIX System V R3 (version 2.2 or later) with job control & curses.
  5710. #Uses dirent.h and Honey DanBer UUCP.
  5711. is5r3jc:
  5712.     @echo 'Making C-Kermit $(CKVER) for Interactive Unix 2.2 or later...'
  5713.     $(MAKE) wermit CC="$(CC)" CC2="$(CC2)" \
  5714.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -O -DNOCSETS \
  5715.     -DUID_T=ushort -DGID_T=ushort -DI386IX -DSVR3JC -DCK_CURSES \
  5716.     -DPOSIX_JC -DCK_REDIR -DCK_POLL -DDCLGETCWD \
  5717.     $(KFLAGS)" "LIBS=-lcurses -lc_s -linet"
  5718.  
  5719. is5r3jcgcc:
  5720.     $(MAKE) is5r3jc CC="gcc -DCK_ANSILIBS -DDCGPWNAM -O4" CC2=gcc \
  5721.     KFLAGS="$(KFLAGS)" LNKFLAGS="$(LNKFLAGS)"
  5722.  
  5723. #Sunsoft/Interactive UNIX System V R3 (version 2.2 or later)
  5724. #with job control, curses, and TCP/IP networking.
  5725. #Uses dirent.h and Honey DanBer UUCP.
  5726. is5r3netjc:
  5727.     @echo 'Making C-Kermit $(CKVER) for Interactive Unix 2.2 or later...'
  5728.     $(MAKE) wermit CC="$(CC)" CC2="$(CC2)" \
  5729.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -O -DNOCSETS \
  5730.     -DUID_T=ushort -DGID_T=ushort -DI386IX -DSVR3JC -DCK_CURSES \
  5731.     -DPOSIX_JC -DCK_REDIR -DTCPSOCKET -DSELECT \
  5732.     $(KFLAGS)" "LIBS=-linet -lcurses -lc_s"
  5733.  
  5734. is5r3netjcgcc:
  5735.     $(MAKE) is5r3netjc CC="gcc -DCK_ANSILIBS -DDCGPWNAM -O4" CC2=gcc \
  5736.     KFLAGS="$(KFLAGS)" LNKFLAGS="$(LNKFLAGS)"
  5737.  
  5738. #Masscomp System III
  5739. rtu:
  5740.     @echo 'Making C-Kermit $(CKVER) for Masscomp RTU System III...'
  5741.     $(MAKE) wermit \
  5742.     "CFLAGS= -UFIONREAD -DATTSV $(KFLAGS) -O" "LNKFLAGS =" "LIBS= -ljobs"
  5743.  
  5744. #Masscomp/Concurrent RTU 4.0 or later, Berkeley environment.
  5745. #Includes <ndir.h> = /usr/include/ndir.h
  5746. #Note "LIBS = -lndir" might not be necessary because of "ucb make".
  5747. rtubsd:
  5748.     @echo 'Making C-Kermit $(CKVER) for Masscomp RTU 4.1A...'
  5749.     ucb make wermit \
  5750.     "CFLAGS= -DBSD4 -DRTU -DNDIR -DHDBUUCP -DTCPSOCKET $(KFLAGS)" \
  5751.     "LIBS = -lndir"
  5752.  
  5753. #Masscomp/Concurrent RTU 4.0 or later, same as above,
  5754. #Includes "usr/lib/ndir.h"
  5755. #Note "LIBS = -lndir" might not be necessary because of "ucb make".
  5756. rtubsd2:
  5757.     @echo 'Making C-Kermit $(CKVER) for Masscomp RTU 4.1A...'
  5758.     ucb make wermit \
  5759.     "CFLAGS= -DBSD4 -DRTU -DXNDIR -DHDBUUCP $(KFLAGS)" \
  5760.     "LIBS = -lndir"
  5761.  
  5762. #Masscomp/Concurrent RTU 4.0 or later, same as above,
  5763. #Includes <sys/ndir.h>
  5764. #Note "LIBS = -lndir" might not be necessary because of "ucb make".
  5765. rtubsd3:
  5766.     @echo 'Making C-Kermit $(CKVER) for Masscomp RTU 4.x BSD...'
  5767.     ucb make wermit "CFLAGS= -DBSD4 -DRTU -DHDBUUCP $(KFLAGS)" \
  5768.     "LIBS = -lndir"
  5769.  
  5770. #Masscomp/Concurrent RTU 4.0 or later, System V R2, using <dirent.h>.
  5771. #In case of problems, add back the -DRTU switch.
  5772. #In case -DTCPSOCKET gives trouble, remove it.
  5773. rtus5:
  5774.     @echo 'Making C-Kermit $(CKVER) for Masscomp RTU 4.x...'
  5775.     $(MAKE) wermit \
  5776.     "CFLAGS= -DATTSV -DHDBUUCP -DDIRENT -DTCPSOCKET $(KFLAGS)"
  5777.  
  5778. #Masscomp/Concurrent RTU 4.x, System V R3, using <dirent.h>.
  5779. #Use this one if rtus5 gives warnings about pointer type mismatches.
  5780. #In case of problems, add back the -DRTU switch.
  5781. rtus5r3:
  5782.     @echo 'Making C-Kermit $(CKVER) for Masscomp RTU Sys V R3...'
  5783.     $(MAKE) wermit "CFLAGS= -DSVR3 -DHDBUUCP -DDIRENT $(KFLAGS)"
  5784.  
  5785. #DEC Pro-3xx with Pro/Venix V1.0 or V1.1
  5786. # Requires code-mapping on non-I&D-space 11/23 processor, plus some
  5787. # fiddling to get interrupt targets into resident code section.
  5788. # This almost certainly doesn't work any more.
  5789. provx1:
  5790.     @echo 'Making C-Kermit $(CKVER) for DEC Pro-3xx, Pro/Venix 1.x...'
  5791.     $(MAKE) wart "CFLAGS= -DPROVX1 $(KFLAGS)" "LNKFLAGS= "
  5792.     $(MAKE) wermit "CFLAGS = -DPROVX1 -DNOFILEH -md780" \
  5793.         "LNKFLAGS= -u _sleep -lc -md780"
  5794.  
  5795. #Nixdorf Targon/31.
  5796. #AT&T UNIX System V R3, signal() is void rather than int.
  5797. #Uses dirent.h without Honey DanBer uucp.
  5798. t31tos40x:
  5799.     @echo 'Making C-Kermit $(CKVER) for Targon/31 with TOS 4.0.xx...'
  5800.         $(MAKE) wermit \
  5801.         "CFLAGS= -DSVR3 -DDIRENT $(KFLAGS) -O" \
  5802.         "LNKFLAGS="
  5803.  
  5804. #NCR Tower 1632, OS 1.02
  5805. tower1:
  5806.     @echo 'Making C-Kermit $(CKVER) for NCR Tower 1632, OS 1.02...'
  5807.     $(MAKE) wermit "CFLAGS= -DTOWER1 $(KFLAGS)"
  5808.  
  5809. #NCR Tower 32, OS Release 1.xx.xx
  5810. tower32-1:
  5811.     @echo 'Making C-Kermit $(CKVER) for NCR Tower 32 Rel 1 System V R2...'
  5812.     @echo 'Add KFLAGS=-DISDIRBUG if you get errors about S_ISREG/S_ISDIR.'
  5813.     $(MAKE) wermit \
  5814.     "CFLAGS = -DATTSV $(KFLAGS) -O" "LNKFLAGS = -n"
  5815.  
  5816. #NCR Tower 32, OS Release 2.xx.xx
  5817. tower32-2:
  5818.     @echo 'Making C-Kermit $(CKVER) for NCR Tower 32 Rel 2 System V R2...'
  5819.     $(MAKE) wermit \
  5820.     "CFLAGS = -DATTSV -DHDBUUCP $(KFLAGS) -O2" \
  5821.     "LNKFLAGS = -n"
  5822.  
  5823. #NCR Tower 32, OS Releases based on System V R3
  5824. #Don't add -DNAP (doesn't work right) or -DRDCHK (not available in libc).
  5825. tower32:
  5826.     @echo 'Making C-Kermit $(CKVER) for NCR Tower 32 System V R3...'
  5827.     $(MAKE) wermit \
  5828.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DNOSYSIOCTLH $(KFLAGS) \
  5829.     -DUID_T=ushort -DGID_T=ushort -O1"
  5830.  
  5831. #NCR Tower 32, OS Releases based on System V R3
  5832. tower32g:
  5833.     @echo 'Making C-Kermit $(CKVER) for NCR Tower 32 System V R3, gcc...'
  5834.     $(MAKE) wermit "CC = gcc" \
  5835.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DNOSYSIOCTLH $(KFLAGS) \
  5836.     DUID_T=ushort -DGID_T=ushort -O -fstrength-reduce -fomit-frame-pointer"
  5837.  
  5838. #Fortune 32:16, For:Pro 1.8 (mostly like 4.1bsd)
  5839. ft18:
  5840.     @echo 'Making C-Kermit $(CKVER) for Fortune 32:16 For:Pro 1.8...'
  5841.     $(MAKE) wermit \
  5842.     "CFLAGS= -DNODEBUG -DBSD4 -DFT18 -DNOFILEH $(KFLAGS) \
  5843.     -DPID_T=short"
  5844.  
  5845. #Fortune 32:16, For:Pro 2.1 (mostly like 4.1bsd).
  5846. #The modules that break the optimizer are compiled separately.
  5847. ft21:
  5848.     @echo 'Making C-Kermit $(CKVER) for Fortune 32:16 For:Pro 2.1...'
  5849.     $(MAKE) ckuusx.$(EXT) "CFLAGS= -DNODEBUG -DBSD4 -DFT21 -DNOFILEH \
  5850.     -SYM 800  -DCK_CURSES $(KFLAGS) -DPID_T=short" \
  5851.     "LNKFLAGS= -n -s" "LIBS= -lcurses -ltermcap -lv -lnet"
  5852.     $(MAKE) ckuxla.$(EXT) "CFLAGS= -DNODEBUG -DBSD4 -DFT21 -DNOFILEH \
  5853.     -SYM 800  -DCK_CURSES $(KFLAGS) -DPID_T=short" \
  5854.     "LNKFLAGS= -n -s" "LIBS= -lcurses -ltermcap -lv -lnet"
  5855.     $(MAKE) ckudia.$(EXT) "CFLAGS= -DNODEBUG -DBSD4 -DFT21 -DNOFILEH \
  5856.     -SYM 800  -DCK_CURSES $(KFLAGS) -DPID_T=short" \
  5857.     "LNKFLAGS= -n -s" "LIBS= -lcurses -ltermcap -lv -lnet"
  5858.     $(MAKE) wermit \
  5859.     "CFLAGS= -O -DNODEBUG -DBSD4 -DFT21 -DNOFILEH -SYM 800 \
  5860.     -DCK_CURSES $(KFLAGS) -DPID_T=short" \
  5861.     "LNKFLAGS= -n -s" "LIBS= -lcurses -ltermcap -lv -lnet"
  5862.  
  5863. #Valid Scaldstar
  5864. #Berkeleyish, but need to change some variable names.
  5865. valid:
  5866.     @echo 'Making C-Kermit $(CKVER) for Valid Scaldstar...'
  5867.     $(MAKE) wermit \
  5868.     "CFLAGS= -DBSD4 -DNODEBUG -DNOTLOG -Dcc=ccx -DFREAD=1 $(KFLAGS)"
  5869.  
  5870. #IBM IX/370 on IBM 370 Series mainframes
  5871. #Mostly like sys3, but should buffer packets.
  5872. ix370:
  5873.     @echo 'Making C-Kermit $(CKVER) for IBM IX/370...'
  5874.     $(MAKE) wermit "CFLAGS = -DIX370 -DATTSV $(KFLAGS) -i -O" \
  5875.     "LNKFLAGS = -i"
  5876.  
  5877. #Amdahl UTS 2.4 on IBM 370 series compatible mainframes.
  5878. #Mostly like V7, but can't do initrawq() buffer peeking.
  5879. uts24:
  5880.     @echo 'Making C-Kermit $(CKVER) for Amdahl UTS 2.4...'
  5881.     $(MAKE) wermit "CFLAGS=-DV7 -DPROCNAME=\\\"$(PROC)\\\" \
  5882.     -DUTS24 -DBOOTNAME=\\\"$(BOOTFILE)\\\" -DNPROCNAME=\\\"$(NPROC)\\\" \
  5883.     -DNPTYPE=$(NPTYPE) $(DIRECT) $(KFLAGS)"
  5884.  
  5885. #Amdahl UTSV UNIX System V = System V R2 or earlier.
  5886. utsv:
  5887.     @echo 'Making C-Kermit $(CKVER) for Amdahl UTSV...'
  5888.     $(MAKE) wermit \
  5889.     "CFLAGS = -DUTSV $(KFLAGS) -i -O" "LNKFLAGS = -i"
  5890.  
  5891. #Amdahl UTSV UNIX System V = System V R2 or earlier, with TCP sockets library.
  5892. utsvtcp:
  5893.     @echo 'Making C-Kermit $(CKVER) for Amdahl UTSV w/tcp...'
  5894.     $(MAKE) wermit "CFLAGS = \
  5895.     -DTCPSOCKET -DUTSV $(KFLAGS) -i -O" "LNKFLAGS = -i" \
  5896.     "LIBS = -lsocket"
  5897.  
  5898. #BBN C/70 with IOS 2.0
  5899. #Mostly Berkeley-like, but with some ATTisms
  5900. c70:
  5901.     @echo 'Making C-Kermit $(CKVER) for BBN C/70 IOS 2.0...'
  5902.     $(MAKE) wermit "CFLAGS= -DBSD4 -DC70 $(KFLAGS)"
  5903.  
  5904. #Zilog ZEUS 3.21
  5905. zilog:
  5906.     @echo 'Making C-Kermit $(CKVER) for Zilog Zeus 3.21...'
  5907.     $(MAKE) wermit \
  5908.     "CFLAGS = -DATTSV -DZILOG -DNODEBUG $(KFLAGS) -i -O" \
  5909.     "LNKFLAGS = -i -lpw"
  5910.  
  5911. #Whitechapel MG-1 Genix 1.3
  5912. white:
  5913.     @echo 'Making C-Kermit $(CKVER) for Whitechapel MG-1 Genix 1.3...'
  5914.     @touch ckcpro.c
  5915.     $(MAKE) wermit "CFLAGS= -DBSD4 -Dzkself()=0  $(KFLAGS)"
  5916.  
  5917. #Pixel 1000
  5918. pixel:
  5919.     @echo 'Making C-Kermit $(CKVER) for Pixel 1000...'
  5920.     $(MAKE) wermit "CFLAGS= -DBSD4 -Dzkself()=0 $(KFLAGS)"
  5921.  
  5922. ptx:
  5923.     $(MAKE) "MAKE=$(MAKE)" dynixptx12
  5924.  
  5925. #CDC VX/VE 5.2.1
  5926. vxve:
  5927.     @echo 'Making C-Kermit $(CKVER) for CDC VX/VE 5.2.1...'
  5928.     $(MAKE) wermit \
  5929.     "CFLAGS = -DATTSV -DVXVE -DNODEBUG -DNOTLOG $(KFLAGS) -i -O" \
  5930.     "LNKFLAGS = -i"
  5931.  
  5932. #DIAB DS90 or LUXOR ABC-9000 with pre-5.2 DNIX.  Sys V with nap() and rdchk().
  5933. # nd = no opendir(), readdir(), closedir(), etc.
  5934. # Some of the modules fail to compile with -O.
  5935. dnixnd:
  5936.     @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with very old DNIX 5.2.'
  5937.     $(MAKE) wermit \
  5938.     "CFLAGS = -DATTSV -DNAP -DRDCHK -DDCLPOPEN \
  5939.     -U__STDC__ $(KFLAGS)"
  5940.  
  5941. #DIAB DS90 with DNIX 5.2.  Sys V with nap() and rdchk().
  5942. # This one has opendir(), readdir(), closedir(), etc.
  5943. # Some of the modules fail to compile with -O.
  5944. dnix:
  5945.     @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with old DNIX 5.2...'
  5946.     $(MAKE) wermit \
  5947.     "CFLAGS = -DATTSV -DNAP -DRDCHK -DDIRENT  \
  5948.     -U__STDC__ $(KFLAGS)"
  5949.  
  5950. #DIAB DS90 with DNIX 5.2.  Sys V with nap() and rdchk().
  5951. # As above, but with curses and TCP/IP.
  5952. # You might get complaints about redefinition of O_RDONLY, etc, because
  5953. # of bugs in the DNIX header files, which can be fixed by adding #ifndef...
  5954. # around the offending definitions in the header files.
  5955. dnixnetc:
  5956.     @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with old DNIX 5.2...'
  5957.     $(MAKE) wermit \
  5958.     "CFLAGS = -DATTSV -DNAP -DRDCHK -DDIRENT  \
  5959.     -DTCPSOCKET -DCK_CURSES -I/usr/include/bsd -U__STDC__ $(KFLAGS)" \
  5960.     "LIBS = -ln -lcurses"
  5961.  
  5962. #DIAB DS90 with DNIX 5.3 or later, with HDB UUCP, nap() and rdchk().
  5963. dnix5r3:
  5964.     @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with DNIX 5.3...'
  5965.     @echo 'with Honey DanBer UUCP'
  5966.     $(MAKE) wermit \
  5967.     "CFLAGS = -DSVR3 -DHDBUUCP -DNAP -DRDCHK -DDIRENT \
  5968.     -DCK_CURSES -DRENAME $(KFLAGS) -O" "LIBS= -lcurses"
  5969.  
  5970. #DIAB DS90 with DNIX 5.3 or later, with HDB UUCP, nap() and rdchk() + TCP/IP
  5971. dnix5r3net:
  5972.     @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with DNIX 5.3...'
  5973.     @echo 'with Honey DanBer UUCP and TCP/IP'
  5974.     $(MAKE) wermit \
  5975.     "CFLAGS = -DSVR3 -DHDBUUCP -DNAP -DRDCHK -DDIRENT \
  5976.     -DTCPSOCKET -DCK_CURSES -DRENAME $(KFLAGS) -O \
  5977.     -I/usr/include/bsd" "LIBS = -ln -lcurses"
  5978.  
  5979. #DIAB DS90 with DNIX 5.3 2.2 or later, with HDB UUCP, nap() and rdchk(),
  5980. #ANSI C compilation and libraries.
  5981. #Note that for DNIX 5.3 2.2 you have to correct a bug in /usr/include/stdlib.h:
  5982. #change "extern    void free(char *str);"
  5983. #to     "extern void free(void *str);"
  5984. #NOTE: This bug is reportedly fixed in DNIX 5.3 2.2.1.
  5985. #Should you get fatal errors caused by harmless pointer-type mismatches,
  5986. #like between signed and unsigned char, just remove -X7.
  5987. dnix5r3ansi:
  5988.     @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with DNIX 5.3...'
  5989.     @echo 'with ANSI C Honey DanBer UUCP'
  5990.     $(MAKE) wermit \
  5991.     "CFLAGS = -DSVR3 -DDIAB -DHDBUUCP -DNAP -DRDCHK -DDIRENT \
  5992.     -DCK_ANSILIBS -DCK_CURSES -DRENAME -O -X7 -X9 $(KFLAGS)" \
  5993.     "LIBS= -lcurses"
  5994.  
  5995. #DIAB DS90 with DNIX 5.3 2.2 or later, with HDB UUCP, nap() and rdchk(),
  5996. # + TCP/IP, ANSI C compilation and libraries.
  5997. #Should you get fatal errors caused by harmless pointer-type mismatches,
  5998. #like between signed and unsigned char, just remove -X7.
  5999. dnix5r3ansinet:
  6000.     @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with DNIX 5.3...'
  6001.     @echo 'with ANSI C Honey DanBer UUCP'
  6002.     $(MAKE) wermit \
  6003.     "CFLAGS = -DSVR3 -DDIAB -DHDBUUCP -DNAP -DRDCHK -DDIRENT \
  6004.     -DTCPSOCKET -DCK_ANSILIBS -DCK_CURSES -DRENAME -O -X7 -X9 $(KFLAGS) \
  6005.     -I/usr/include/bsd" "LIBS= -ln -lcurses"
  6006.  
  6007. # QNX 4.21 and above, 32-bit version, Watcom C32 10.6, register calling
  6008. # conventions, fully configured, except no job control because QNX 4.x
  6009. # does not support it.  New NCURSES library used instead of CURSES.
  6010. #
  6011. # -Oatx optimizes to favor speed over size: loop optimization, inline fn's.
  6012. # -Os favors size over speed.  The size difference is about 30-40K.
  6013. # -NOUUCP is included because QNX is shipped without UUCP and no native
  6014. # QNX software uses UUCP lockfiles.  Remove -DNOUUCP if you want to use
  6015. # UUCP lockfiles for exclusive access to dialout devices.
  6016. #
  6017. # If you get warnings about HEADER or C_IN add -DNO_DNS_SRV.
  6018. qnx32:
  6019.     @echo 'Making C-Kermit $(CKVER) for QNX 4.2x, 32-bit...'
  6020.     $(MAKE) xermit \
  6021.     "LNKFLAGS = -3r" \
  6022.     "CFLAGS = -3r -ms -DQNX -DTCPSOCKET -DCK_CURSES -DNOGETUSERSHELL \
  6023.     -DCK_WREFRESH -DCK_REDIR -DSELECT -DSELECT_H -DCK_RTSCTS -DNOJC \
  6024.     -DNOINITGROUPS -DNOUUCP -DCK_ANSIC -DPID_T=pid_t -Oatx -zc $(KFLAGS)" \
  6025.     "LIBS= -lsocket -lncurses -ltermcap"
  6026.     @wermit -h >use.qnx
  6027.     @usemsg wermit use.qnx
  6028.     @rm use.qnx
  6029.  
  6030. # As above but no networking since some QNX systems do not have TCP/IP
  6031. # installed, or the TCP/IP developers kit, which includes all the needed
  6032. # header files.  This entry has not been tested on a QNX system that, in
  6033. # fact, does not have TCP/IP installed; some adjustments might be necessary,
  6034. # in particular regarding the use of select(): is -lsocket needed, can we
  6035. # get the needed definitions from non-TCP/IP header files (FD_SET, etc)?
  6036. qnx32nonet:
  6037.     @echo 'Making C-Kermit $(CKVER) for QNX 4.2x, 32-bit, no net...'
  6038.     $(MAKE) xermit \
  6039.     "LNKFLAGS = -3r" \
  6040.     "CFLAGS = -3r -ms -DQNX -DNONET -DNOIKSD -DCK_CURSES \
  6041.     -DCK_WREFRESH -DCK_REDIR -DSELECT -DSELECT_H -DCK_RTSCTS -DNOJC \
  6042.     -DNOUUCP -DCK_ANSIC -DPID_T=pid_t -Oatx -zc $(KFLAGS)" \
  6043.     "LIBS= -lsocket -lncurses -ltermcap"
  6044.     @wermit -h >use.qnx
  6045.     @usemsg wermit use.qnx
  6046.     @rm use.qnx
  6047.  
  6048. # Synonym for qnx32.
  6049. qnx:
  6050.     $(MAKE) qnx32 "KFLAGS=$(KFLAGS)"
  6051.  
  6052. # QNX 4.21 and above, 16-bit version, Watcom C 8.5 - and higher on i286 PCs
  6053. # and above.
  6054. #
  6055. #    IMPORTANT: Do not use Watcom C 10.6!!!
  6056. #    If you have it installed, add "-v9.52 to CFLAGS"
  6057. #
  6058. # NOTE: QNX 4.23 onward does not work on 286's anyway.
  6059. # Stacksize 26000, objects larger than 100 bytes in their own segments,
  6060. # string constants to the codesegment, etc.  Fully configured except job ctrl.
  6061. # This entry works for building a 16-bit executable on a 32-bit system, but
  6062. # has not been tested on a 16-bit system.  Uses large memory model, links
  6063. # explicitly with large-model sockets library.  Correct-model curses library
  6064. # is chosen automatically.  See comment in qnx32 entry about -DNOUUCP.
  6065. #
  6066. # WARNING:
  6067. #
  6068. # Watcom C prior to 10.6 never had released curses library. To link against it,
  6069. # you must obtain ported free curses source from ftp://ftp.qnx.com/usr/free,
  6070. # then compile and build library (cursesl.lib) and place it in /usr/lib.  You
  6071. # must also copy curses.h to /usr/include.  Be aware that if you have Watcom
  6072. # 10.6 installed, you should already have curses.h, which is the new ncurses
  6073. # library. You must back it up and use free curses.h instead, since ncurses is
  6074. # only for 32-bit applications and some definitions in these files are
  6075. # different (e.g., clearok()).  For safety, curses is not defined in build.
  6076. #
  6077. # In 7.0 -DNOHELP added to keep ckuus2.c from blowing up; NOCSETS and NOSPL
  6078. # added because ckuus4 was blowing up, and NOFLOAT just because it seemed
  6079. # dangerous (remove -DNOFLOAT if you want to try it), The result works OK
  6080. # except for some mysterious beeps upon termination of the top-level keyword.
  6081. #
  6082. # Things to try next time we get in trouble:
  6083. #  . Change -zt100 to something smaller like -zt25
  6084. #  . Change -Oatx to -Omilerat (enable stack checking)
  6085. #  . Maybe get rid of -v9.52 -- it's only there because we were warned.
  6086. #
  6087. qnx16:
  6088.     @echo 'Making C-Kermit $(CKVER) for QNX 4.21, 16-bit...'
  6089.     $(MAKE) xermit \
  6090.     "LNKFLAGS = -2 -ml -N 26000" \
  6091.     "CFLAGS = -2 -Oatx -zc -zt100 -ml -DQNX -DQNX16 -DNOUUCP -DNOHELP \
  6092.     -DCK_REDIR -DSELECT -DSELECT_H -DNOJC -DNOGETUSERSHELL -DNOCSETS \
  6093.     -v9.52 -DTCPSOCKET -DCK_RTSCTS -DCK_ANSIC -DNOINITGROUPS -DNOKVERBS \
  6094.     -DNORANDOM -DNOCSETS -DNOSPL -DNOFLOAT -DPID_T=pid_t $(KFLAGS)"
  6095.  
  6096. # QNX 4.1, 16-bit version, with Watcom C 8.5 on i286 PCs and above.
  6097. # stacksize 26000, objects larger than 100 bytes in their own segments,
  6098. # string constants to the codesegment, etc.  Add -DNOUUCP if desired.
  6099. qnx16_41:
  6100.     @echo 'Making C-Kermit $(CKVER) for QNX 4.1, 16-bit...'
  6101.     $(MAKE) xermit \
  6102.     "LNKFLAGS = -mh -N 26000" "CFLAGS = -Wc,-fpc -Wc,-j -DNOGETUSERSHELL \
  6103.     -Wc,-Ols -Wc,-zdf -Wc,-zc -Wc,-zt100 -mh -DPOSIX -DQNX -DDIRENT \
  6104.     -DNOCYRIL -DNODEBUG -DNOMSEND -DMINIDIAL -DNOXMIT -DNOSCRIPT -DNOSPL \
  6105.     -DNOSETKEY -DNOINITGROUPS -DPID_T=pid_t $(KFLAGS)"
  6106.  
  6107. #Ridge 32 with ROS 3.2
  6108. ridge32:
  6109.     @echo 'Making C-Kermit $(CKVER) Ridge 32 ROS 3.2'
  6110.     $(MAKE) wermit \
  6111.     "CFLAGS = -DATTSV -DNOFILEH -DNODEBUG -DNOTLOG $(KFLAGS) -i -O" \
  6112.     "LNKFLAGS = -i"
  6113.  
  6114. #Altos 486, 586, or 986 with Xenix 3.0
  6115. altos:
  6116.     @echo 'Making C-Kermit $(CKVER) for Altos x86 with Xenix 3.0...'
  6117.     $(MAKE) wermit \
  6118.     "CFLAGS= -DATTSV -DA986 -DNODEBUG -DNOTLOG $(KFLAGS) -i -O" \
  6119.     "LNKFLAGS= -i"
  6120.  
  6121. #Altos 986 with Xenix 3.0, as above, but command-line only, minimal size.
  6122. #For systems with small memories.  It might also be necessary to chop certain
  6123. #modules up into smaller pieces, e.g. ckuus3-6, because of symbol table
  6124. #overflow.   If this makefile is too big or complex for the Altos, compile
  6125. #and link by hand or write shell scripts.
  6126. altosc:
  6127.     @echo 'Making C-Kermit $(CKVER) for Altos x86 Xenix 3.0, remote...'
  6128.     $(MAKE) wermit \
  6129.     "CFLAGS= -DATTSV -DA986 -DNODEBUG -DNOTLOG -DNOSCRIPT -DNODIAL \
  6130.     -DNOCSETS -DNOANSI -DNOMSEND -DNOSPL -DNOICP $(KFLAGS) -Mm -O" \
  6131.     "LNKFLAGS= -Mm -s"
  6132.  
  6133. #Altos 986 with Xenix 3.0, as above, but interactive only, minimal size.
  6134. altosi:
  6135.     @echo 'Making C-Kermit $(CKVER) for Altos x86 Xenix 3.0, local...'
  6136.     $(MAKE) wermit \
  6137.     "CFLAGS= -DATTSV -DA986 -DNODEBUG -DNOTLOG -DNOSCRIPT -DNODIAL \
  6138.     -DNOCSETS -DNOANSI -DNOMSEND -DNOSPL -DNOCMDL -DNOFRILLS -DNOHELP \
  6139.     -DNOSETKEY $(KFLAGS) -Mm -O" "LNKFLAGS= -Mm -s"
  6140.  
  6141. # Altos ACS68000 68000 System, UNIX System 3 Release 2, 512k memory.
  6142. # also needs getcwd() external function; see ckuins.txt file.
  6143. # also, sys/types.h needed modifying:
  6144. #   #ifdef __SYS_TYPES_H__, #define ..., #endif
  6145. # also, ckuus2.c MUST be compiled NOOPT else symbol table is destroyed!
  6146. # Submission by Robert Weiner/Programming Plus, rweiner@progplus.com.
  6147. #
  6148. altos3:
  6149.     @echo 'Making C-Kermit $(CKVER) for Altos ACS68k UNIX System III'
  6150.     $(MAKE) ckuus2.$(EXT) "CFLAGS = -DATTSV -DNOCSETS -DNOSETKEY -DNOJC \
  6151.     -DNODIAL -DDCLPOPEN -DNOSCRIPT -DNOHELP $(KFLAGS) -i"
  6152.     $(MAKE) wermit \
  6153.     "CFLAGS = -DATTSV -DNOCSETS -DNOSETKEY -DNOJC \
  6154.     -DNODIAL -DDCLPOPEN -DNOSCRIPT -DNOHELP $(KFLAGS) -i -O" \
  6155.     "LNKFLAGS = -i" "LIBS = getcwd.$(EXT)"
  6156.  
  6157. #MINIX - Original PC version with 64K+64K limit.
  6158. # Reportedly, the linker (asld) can run out of space while linking.  The only
  6159. # way around this is to make a copy of libc.a from which all modules that are
  6160. # not used by Kermit are removed.  If you have trouble compiling or running
  6161. # wart, "touch wart".  If that doesn't help, "touch ckcpro.c".
  6162. # The version configured below has no interactive command parser.
  6163. # If you can build this version successfully, maybe there will be room for
  6164. # a minimal interactive command parser too; try replacing -DNOICP with
  6165. # -DNOSPL, plus every other -DNOxxx flag there is, except for -DNOICP
  6166. # (see ckccfg.txt).
  6167. minix:
  6168.     @echo 'Making C-Kermit $(CKVER) for MINIX, no command parser...
  6169.     @echo 'TOTALLY UNTESTED!'
  6170.     $(MAKE) wermit EXT=s \
  6171.     "CFLAGS= -DV7 -DMINIX -i -D_MINIX -D_POSIX_SOURCE \
  6172.     -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t -DSIG_V \
  6173.     -DNOXMIT -DNOMSEND -DNOFRILLS -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG \
  6174.     -DNOSCRIPT -DNOCSETS -DNOICP -DNOSETKEY $(KFLAGS)" \
  6175.     "LNKFLAGS= -i -T"
  6176.  
  6177. #MINIX - PC version with 64K+64K limit, new (as yet unreleased) ACK 2.0 beta C
  6178. #compiler, which outputs .o object files, rather than .s.  But 'make' still
  6179. #expects .s files, so must be patched to use .o.  Tested on Minix 1.5.10.
  6180. minixnew:
  6181.     @echo 'Making C-Kermit $(CKVER) for MINIX (new ACK 2.0 compiler),'
  6182.     @echo 'no command parser...  TOTALLY UNTESTED!'
  6183.     $(MAKE) wermit \
  6184.     "CFLAGS= -DV7 -DMINIX -i -D_MINIX -D_POSIX_SOURCE \
  6185.     -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t -DSIG_V -DNODIAL \
  6186.     -DNOHELP -DNODEBUG -DNOTLOG -DNOSCRIPT -DNOCSETS -DNOICP $(KFLAGS)" \
  6187.     "LNKFLAGS= -i -T"
  6188.  
  6189. #PFU Compact A Series UNIX System V R3, SX/A TISP V10/L50 (Japan)
  6190. #Maybe the -i link option should be removed?
  6191. sxae50:
  6192.     @echo 'Making C-Kermit $(CKVER) for PFU SX/A V10/L50...'
  6193.     $(MAKE) xermit \
  6194.     "CFLAGS= -DSVR3 -DDIRENT -DsxaE50 -DTCPSOCKET $(KFLAGS) -i -O" \
  6195.     "LNKFLAGS= "
  6196.  
  6197. #Tektronix 6130, 4319, 4301, etc, with UTek OS, /usr/spool/uucp/LCK./...
  6198. #The models that support hardware flow control.
  6199. utek:
  6200.     @echo 'Making C-Kermit $(CKVER) for 4.2BSD/UTek, hardware flow control'
  6201.     $(MAKE) wermit \
  6202.     "CFLAGS= -O -DLCKDIR -DBSD4 -DTCPSOCKET \
  6203.     -DUTEK -DDCLPOPEN -DLOCK_DIR=\\\"/usr/spool/uucp/LCK.\\\" \
  6204.     -DTRMBUFL=2048 -DCK_DTRCTS $(KFLAGS)"
  6205.  
  6206. #Tektronix 4315, 4316, 4317 with UTek OS, /usr/spool/uucp/LCK./...
  6207. #The models that do not fully support hardware flow control.
  6208. uteknohwfc:
  6209.     @echo 'Making C-Kermit $(CKVER) for 4.2BSD/UTek, no h/w flow control'
  6210.     $(MAKE) wermit \
  6211.     "CFLAGS= -O -DLCKDIR -DBSD4 -DTCPSOCKET \
  6212.     -DUTEK -DDCLPOPEN -DLOCK_DIR=\\\"/usr/spool/uucp/LCK.\\\" \
  6213.     -DTRMBUFL=2048 $(KFLAGS)"
  6214.  
  6215. #Tektronix XD88 with  UTekV OS
  6216. utekvr3:
  6217.     @echo 'Making C-Kermit $(CKVER) for Tektronix XD88 UTekV R3...'
  6218.     $(MAKE) wermit \
  6219.     "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP \
  6220.     -DTCPSOCKET -DSYSUTIMEH -DCK_CURSES $(KFLAGS) -O" \
  6221.     "LIBS= -lcurses" "LNKFLAGS= -s"
  6222.  
  6223. #Perkin-Elmer 3200 Xelos R02 or earlier
  6224. ccop1:
  6225.     @echo 'Making C-Kermit $(CKVER) for Xelos & Public Domain Dirent calls'
  6226.     @echo 'or System V R2 or earlier...'
  6227.     $(MAKE) wermit \
  6228.     "CFLAGS = -DATTSV -Dvoid=int -DDIRENT -DCK_CURSES \
  6229.     $(KFLAGS) -O" "LNKFLAGS =" "LIBS= -lcurses -ltermlib"
  6230.  
  6231. #Encore, UMAX 4.3 (BSD) but without acucntrl program.
  6232. encore:
  6233.     $(MAKE) "MAKE=$(MAKE)" umax43 "KFLAGS=$(KFLAGS)"
  6234.  
  6235. #Encore, as above, but with curses file transfer display included.
  6236. encorec:
  6237.     $(MAKE) "MAKE=$(MAKE)" umax43 "KFLAGS=-DCK_CURSES $(KFLAGS)" \
  6238.     "LIBS= -lcurses -ltermcap"
  6239.  
  6240. #Encore, UMAX 4.3 (BSD) but without acucntrl program.
  6241. umax43:
  6242.     @echo Making C-Kermit $(CKVER) for Encore UMAX 4.3...
  6243.     $(MAKE) "MAKE=$(MAKE)" PARALLEL=4 xermit \
  6244.     "CFLAGS= -DBSD43 -DENCORE -DTCPSOCKET $(KFLAGS) -O"
  6245.  
  6246. #Encore, UMAX 4.2 (BSD)
  6247. umax42:
  6248.     @echo Making C-Kermit $(CKVER) for Encore UMAX 4.2...
  6249.     $(MAKE) "MAKE=$(MAKE)" PARALLEL=4 xermit \
  6250.     "CFLAGS= -DBSD4 -DENCORE -DTCPSOCKET $(KFLAGS) -O"
  6251.  
  6252. #Encore 88K UMAX 5.3 with TCP/IP support
  6253. encore88k:
  6254.     @echo 'Making C-Kermit $(CKVER) for Encore 88K UMAX V, TCP/IP...'
  6255.     $(MAKE) xermit \
  6256.     "CFLAGS = -q ext=pcc -DSVR3 -DTCPSOCKET -DDIRENT \
  6257.     -DNOGETID_PROTOS -DHDBUUCP $(KFLAGS) -O" "LNKFLAGS ="
  6258.  
  6259. #Encore 88K UMAX 5.3 with TCP/IP support
  6260. encore88kgcc:
  6261.     @echo 'Making C-Kermit $(CKVER) for Encore 88K UMAX V, TCP/IP, gcc...'
  6262.     $(MAKE) xermit CC=gcc CC2=gcc \
  6263.     "CFLAGS = -DSVR3 -DTCPSOCKET -DDIRENT \
  6264.     -DNOGETID_PROTOS -DHDBUUCP $(KFLAGS) -O" "LNKFLAGS ="
  6265.  
  6266. #SONY NEWS, NEWS-OS 4.01C
  6267. sonynews:
  6268.     @echo Making C-Kermit $(CKVER) for SONY NEWS-OS 4.01C...
  6269.     $(MAKE) xermit "CFLAGS= -DBSD43 -DACUCNTRL -DTCPSOCKET -O"
  6270.  
  6271. #Run Lint on this mess for selected versions.
  6272. #These are pretty much obsolete since ANSI C / gcc.
  6273. lintsun:
  6274.     @echo 'Running Lint on C-Kermit $(CKVER) sources for SunOS version...'
  6275.     lint -x -DSUNOS4 -DDIRENT -DTCPSOCKET -DSAVEDUID \
  6276.     ck[cu]*.c > ckuker.lint.sun
  6277.  
  6278. lintbsd:
  6279.     @echo 'Running Lint on C-Kermit $(CKVER) sources for BSD 4.2 version..'
  6280.     lint -x -DBSD4 -DTCPSOCKET ck[cu]*.c > ckuker.lint.bsd42
  6281.  
  6282. lints5:
  6283.     @echo 'Running Lint on C-Kermit $(CKVER) sources for Sys V version...'
  6284.     lint -x -DATTSV ck[cu]*.c > ckuker.lint.s5
  6285.  
  6286. #Who remembers TECO?
  6287. love:
  6288.     @echo 'Not war?'
  6289.