home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / archives / cku200txt.tar / makefile < prev   
Makefile  |  2001-12-17  |  312KB  |  7,077 lines

  1. # makefile / Makefile / ckuker.mak / CKUKER.MAK
  2. #
  3. # Wed Dec 12 09:27:30 2001
  4. BUILDID=20011212
  5. #
  6. CKVER= "8.0.200"
  7. #
  8. # -- Makefile to build C-Kermit for UNIX and UNIX-like platforms --
  9. #
  10. # Copyright (C) 1985, 2001,
  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 Jeff Altman for the
  22. # secure-target entries, Peter Eichhorn, assyst GmbH, for the consolidated
  23. # HP-UX entries, to Robert Lipe for the updated & consolidated SCO UNIX / ODT
  24. # / OSR5 entries, to Ric Anderson for IRIX 6.x entries.
  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 (mailto:kermit-support@columbia.edu).
  31. # When changing a target over from wermit to xermit, also remove -DNOLOEARN.
  32. #
  33. # CAREFUL: Don't put the lowercase word "if", "define", or "end" as the first
  34. # word after the "#" comment introducer in the makefile, even if it is
  35. # separated by whitespace.  Some versions of "make" understand these as
  36. # directives.  Uppercase letters remove the danger, e.g. "# If you have..."
  37. #
  38. # WARNING: This is a huge makefile, and it contains nested makes.  Some "make"
  39. # programs might run out of memory.  If this happens to you, edit away the
  40. # parts that do not apply to your platform and try again.
  41. #
  42. # Certain UNIX variations have their own separate makefiles:
  43. #  . For 2.10 or 2.11 BSD on DEC PDP-11s, use ckubs2.mak.
  44. #  . For Plan 9, use ckpker.mk.
  45. #
  46. # Separate build procedures are provided non-UNIX platforms: VMS, VOS,
  47. # AOS/VS, etc.  See the ckaaaa.txt file for details.
  48. #
  49. #
  50. # DIRECTIONS
  51. #
  52. # Rename this file to "makefile" or "Makefile" if necessary.  Pick out the
  53. # entry most appropriate for your UNIX version from the list below and then
  54. # give the appropriate "make" command, for example "make aix43", "make sys5r4",
  55. # "make linux".  If you experience any difficulties with the build procedure,
  56. # then please also read any comments that accompany the make entry itself
  57. # (search for the make entry name on the left margin).
  58. #
  59. # Other entries:
  60. #  'make install' is an installation script (read accompanying comments!).
  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, also available at the Kermit website in HTML form:
  66. #   http://www.columbia.edu/kermit/ckuins.html
  67. #   http://www.columbia.edu/kermit/ckccfg.html
  68. #
  69. #  For descriptions of known problems and limitations,
  70. #   read the files ckcbwr.txt and ckubwr.txt (the "beware files") or:
  71. #   http://www.columbia.edu/kermit/ckcbwr.html
  72. #   http://www.columbia.edu/kermit/ckubwr.html
  73. #
  74. # Most entries build C-Kermit with its symbol table included.  To reduce the
  75. # size of the executable program, add "LNKFLAGS=-s" to the end of your 'make'
  76. # command or to the makefile entry, or 'strip' the executable after
  77. # building.  To further reduce the size after building, use 'mcs -d' if your
  78. # Unix version has such a command.  For further details on size reduction, read
  79. # ckccfg.txt to find out how to remove features that you don't need.
  80. #
  81. # TCP/IP networking support: If your C-Kermit version does not include TCP/IP
  82. # networking, but your UNIX system does, try adding -DTCPSOCKET to the CFLAGS
  83. # of your makefile entry.  If that doesn't work, look at some of the other
  84. # entries that include this flag for ideas about what libraries might need to
  85. # be included (typically -lsocket and/or -lBSD and/or -lnsl and/or -linet).
  86. # NOTE: In some cases (old versions of SCO or HP-UX), you might need not only
  87. # a C compiler, but also a "TCP/IP developers kit" for the required object
  88. # libraries and header files.
  89. #
  90. # Fullscreen file transfer display support: If you are going to use C-Kermit
  91. # for establishing connections (dialed, network, etc), you can configure it to
  92. # produce a formatted file transfer display by including the curses library
  93. # and adding -DCK_CURSES to the CFLAGS for your option, and linking with the
  94. # appropriate libraries.  There are many examples below, usually ending in
  95. # "c", like sunos41c.  Also add -DCK_WREFRESH if your curses library includes
  96. # clearok() and wrefresh() functions (or remove -DNOWREFRESH if the linker
  97. # complains that it can't find these functions).
  98. #
  99. # Please report modifications, failures (preferably with fixes) or successes
  100. # to the author.
  101. #
  102. # SECURE TARGETS
  103. #  These are described after the next section.  Search for ******* below.
  104. #
  105. # TARGETS FOR DIFFERENT UNIX PLATFORMS AND VERSIONS:
  106. #
  107. # + Marks those that have been tested successfully in the current version.
  108. # - Marks those that are known not to work in the current version.
  109. # ? Marks those that worked in a previous version but have not been tested
  110. #     in the current version.
  111. # --------------------------
  112. # ? for 386BSD (Jolix) 0.0, 0.1, "make 386bsd" (see comments in entry),
  113. #     or (preferably, if it works) "make bsd44" or "make bsd44c".
  114. # ? for Acorn RISCiX, "make riscix" or "make riscix-gcc"
  115. # ? for Alliant FX/8 with Concentrix 4.1 or later, "make bsdlck"
  116. # ? for Altos 486, 586, 986 with Xenix 3.0, "make altos"
  117. # ? for Altos ACS68000, 8Mhz 68000, UNIX System 3 Rel 2, 512K, "make altos3"
  118. # ? for Amdahl UTS 2.4 on IBM 370 series & compatible mainframes, "make uts24"
  119. # ? for Amdahl UTSV IBM 370 series & compatible mainframes, "make utsv"
  120. # ? for Amdahl UTSV IBM 370 series mainframes with TCP/IP, "make utsvtcp"
  121. # ? for Amdahl mainframes with UNIX System V R 5.2.6b 580, "make sys3"
  122. # ? for Apollo Aegis 9.x, DOMAIN/IX 9.x, "make aegis"
  123. #    (Last tested in C-Kermit 5A(189))
  124. # ? for Apollo DOMAIN/IX, if the above fails, try "make apollobsd"
  125. # ? for Apollo with SR10.0 or later, BSD environment, "make sr10-bsd"
  126. # ? for Apollo with SR10.0 or later, System V environment, "make sr10-s5r3"
  127. # ? for Apple Macintosh II with A/UX pre-3.0, "make aux", "auxgcc" or "auxufs"
  128. # ? for Apple Macintosh with A/UX 3.0 and gcc, "make aux3gcc" or aux3gccc
  129. # + for Apple PowerMac with MkLinux, "make mklinux" (read Linux entry first)
  130. # + for Apple PowerMac with LinuxPPC, "make linuxppc"
  131. # ? for Apple Macintosh with Minix 1.5.10, "make minix68k" or "make minixc68"
  132. # + for Apple Macintosh with Mac OS X 1.0 (Rhapsody), "make macosx10"
  133. #     (no curses), "make macosx10c" (curses), or "make macosx10nc" (ncurses).
  134. #     Or "make macosx10ncx" (ncurses but "make macosx10nc" doesn't work).
  135. # ? for Arix System 90 with AT&T SVR3, "make sys5r3na"
  136. # ? for AT&T 6300 with IN/ix, "make sys5"
  137. # ? for AT&T 6300 PLUS, "make att6300" or (with no debugging) "make att6300nd"
  138. # ? for AT&T 6386 WGS UNIX PC, "make sys5r3"
  139. # + for AT&T 3B2, 3B20 systems, "make att3b2".
  140. #   for AT&T 3B1, 7300 UNIX PC (see notes with the entries):
  141. #     In C-Kermit 7.0, only the gcc entries work:
  142. # +   "make sys3upcg", "make sys3upcgc", "make att351gm"
  143. #    The others fail with "too many defines" (usually in ckuusr.h):
  144. # -   "make sys3upc", "make sys3upcold", "make sys3upcc", "make sys3upcx",
  145. #       "make sys3upcm", "make att351m"
  146. # ? for AT&T System III/System V R2 or earlier, "make sys3" or "make sys3nid"
  147. # ? for AT&T System III/System V with Honey DanBer UUCP, "make sys3hdb"
  148. # ? for AT&T System V on DEC VAX, "make sys3" or "make sys5r3"
  149. # + for AT&T System V R3, use "make sys5r3" or "make sys5r3c"
  150. # + for AT&T System V/386 R3.2 built on Interactive 4.1.1, "make sys5r32is".
  151. # ? for AT&T System V/386 R320.0 Versyss Systems, use "make sys5r3"
  152. #     or "make sys5r3c".
  153. # + for AT&T System V R4, "make sys5r4", "make sys5r4sx", or "make sys5r4nx",
  154. #     or if the ANSI C function prototyping makes trouble, add -DNOANSI,
  155. #     as in "sys5r4sxna" entry
  156. # + for AT&T (USL) System V R4.2 use the sys5r4* entries.
  157. # ? for Atari Falcon with MiNT, "make posix"
  158. # ? for Atari ST with Minix ST 1.5.10.3, "make minix68k" or "make minixc68"
  159. # ? for BBN C/70 with IOS 2.0, "make c70"
  160. # ? for BeBox with Be OS 1.x DR7, "make beboxdr7"
  161. #     Compiles OK but doesn't link with default linker which is limited to 64K.
  162. #     Links OK with "Code Warrior Gold".  Many hacks in the source code need
  163. #     to be removed when DR8 and later come out.
  164. #     (Last tested in C-Kermit 6.0)
  165. # - for BeBox with Be OS 1.x DR8, "make bebox"
  166. #     (Needed functions missing from operating system and/or not working.)
  167. # - for Bell Labs UNIX Version 6 (6th Edition), there is no makefile entry.
  168. # ? for Bell Labs UNIX Version 7 (7th Edition), "make v7" (but see notes below)
  169. #    (last built successfully in C-Kermit 5A188)
  170. # ? for Bell Labs Research UNIX Version 10, "make bellv10"
  171. #    (last built successfully in C-Kermit 6.0)
  172. # + for Bell Labs / Lucent Plan 9, use separate makefile ckpker.mk:
  173. #    can be built for Intel, MIPS, 680x0, and PowerPC.
  174. # + for BSDI BSD/386 1.x, "make bsdi"
  175. # + for BSDI BSD/OS 2.x, "make bsdi2"
  176. # + for BSDI BSD/OS 3.0 or 3.1, "make bsdi3"
  177. # + for BSDI BSD/OS 4.x, "make bsdi4"
  178. # + for BSDI BSD/OS 4.x, to build a binary that also works on FreeBSD,
  179. #     "make bsdix".
  180. # ? for Berkeley Unix 2.4, "make v7" (but read v7 material below)
  181. # ? for Berkeley Unix 2.9 (DEC PDP-11 or Pro-3xx), "make bsd29"
  182. # - for Berkeley Unix 2.10, use ckubs2.mak (a separate makefile)
  183. # - for Berkeley Unix 2.11, use ckubs2.mak (a separate makefile)
  184. #     This makefile is too big.  Read the instructions in ckubs2.mak.
  185. #     "make -f ckubs2.mak bsd210" or "make -f ckubs2.mak bsd211".
  186. #     (last built successfully in C-Kermit 6.0 - later versions too big)
  187. # + for Berkeley Unix 2.11 "make -f ckubs2.mak bsd210noicp" (no command parser)
  188. # ? for Berkeley Unix 4.1, "make bsd41"
  189. # + for Berkeley Unix 4.2 on VAX, "make bsd42" or "make bsd42c"
  190. # ? for Berkeley Unix 4.2 or 4.3 with HoneyDanBer UUCP, "make bsdhdb"
  191. # + for Berkeley Unix 4.3 on VAX, "make bsd43", "make bsd43nc".
  192. # + for Berkeley Unix 4.3 on VAX, no networking "make bsd43nonet.
  193. # + for Berkeley Unix 4.3 without acucntrl program, "make bsd42" or "bsd42c"
  194. #     NOTE: all the C-Kermit 7.0 full builds for old BSDs fail with
  195. #     "too many defines" in CPP, even on big architectures like VAX.  This
  196. #     can be worked around with a clever ruse.  See comments at target.
  197. # + for Berkeley Unix 4.3, command-line only, "make bsdm".
  198. # + for Berkeley Unix 4.3-Tahoe, same as 4.3 BSD
  199. # + for Berkeley Unix 4.3-Reno, "make bsd43" or "make bsd44" or "make bsd44c"
  200. # + for Berkeley Unix 4.3-Carson City, "make bsd44" or "make bsd44c"
  201. # + for Berkeley Unix 4.4-Networking/2 or -Alpha, "make bsd44" or "make bsd44c"
  202. # + for Berkeley Unix 4.4, "make bsd44" or "make bsd44c"
  203. # + for Berkeley Unix 4.4-Lite, "make bsd44" or "make bsd44c"
  204. # ? for Bull DPX/2 with BOS/X, "make bulldpx2"
  205. # ? for Cadmus, "make sys3"
  206. #   for Caldera, see SCO, Linux.
  207. # ? for Callan Unistar, "make sys3"
  208. # ? for CDC VX/VE 5.2.1 System V emulation, "make vxve"
  209. # ? for Charles River Data Systems Universe 680x0 with UNOS 9.2, maybe
  210. #     also other UNOS versions, "make crds"
  211. # ? for CIE Systems 680/20 with Regulus, "make cie"
  212. # + for Commodore Amiga 3000UX Sys V R4, "make sys5r4sx"
  213. # + for Commodore Amiga 3000UX Sys V R4 and TCP/IP, "make svr4amiganet"
  214. # ? for Commodore Amiga with Minix 1.5.10, "make minix68k" of "make minixc68"
  215. # ? for Concurrent/Masscomp with RTU 4.0 or later, BSD environment, "make
  216. #     rtubsd", "make rtubsd2", "make rtubsd3" (depending on where ndir.h
  217. #     is stored, see entries below).
  218. # ? for Concurrent/Masscomp with RTU 4.0 or later, System V R2, "make rtus5"
  219. # ? for Concurrent (Perkin-Elmer) 3200 series, "make sys5".
  220. # ? for Concurrent (Perkin-Elmer) 3200 series with <dirent.h>, "make ccop1"
  221. # ? for Consensys UNIX SV/386 R4V3, "make sys5r4sxtcpc" or "make sys5r4sx"
  222. # ? for Convergent with CTIX Sys V R2, "make sys5"
  223. # ? for Convergent with CTIX 6.4.1, "make ctix"
  224. # ? for Convex C1, "make convex"
  225. # ? for Convex C210 with Convex/OS 8, "make convex8"
  226. # ? for Convex C2 with Convex/OS 9.1, "make convex9"
  227. # ? for Convex C2 with Convex/OS 10.1 and gcc 2.x, "make convex10gcc"
  228. # ? for Cray Research X/MP or YMP or C90 with UNICOS 6.x (System V R3),
  229. #    "make cray"
  230. # ? for Cray Research X/MP or YMP or C90 with UNICOS 7.x (System V R4),
  231. #    "make cray"
  232. # ? for Cray Research X/MP or YMP or C90 with UNICOS 8.0 Alpha, "make cray8"
  233. # ? for Cray Computer Cray-2 or Cray3 with CSOS, "make craycsos"
  234. # ? for Cyber 910 (Silicon-Graphics Iris) with Irix 3.3, "irix33"
  235. # ? for Data General AViiON with DG/UX 5.4 before R3.00, "make dgux540"
  236. #     or "make dgux540c" (compile ckwart separately if necessary)
  237. # + for DG/UX 5.4 on AViiON Intel models, "make dgux540i" or dgux540ic.
  238. # ? for DG/UX 5.4R4.11 on AViiON, all models, "make dgux54411"
  239. # + for DG/UX 5.4R4.20 on AViiON, all models, "make dgux54420"
  240. # + for Data General AViiON with DG/UX 4.3x using Sys V-isms, "make dgux430"
  241. # ? for Data General AViiON with DG/UX 4.3x using BSD-isms, "make dgux430bsd"
  242. # ? for Data General AViiON, earlier UNIX versions,
  243. #     "make sys5r3" (maybe compile ckwart separately, or "touch ckcpro.c")
  244. # ? for Data General MV systems with DG/UX, ???
  245. # ? for Data General MV systems with MV/UX, use AOS/VS C-Kermit (CKDKER.MAK)
  246. # + for Data General MV systems with AOS/VS, use CKDKER.MAK.
  247. #   for DEC PDP-11 with Berkeley UNIX 2.x, see Berkeley UNIX 2.x.
  248. # ? for DEC PDP-11 with Mini-UNIX (Bell 6th Edition for PDP-11 with no MMU),
  249. #     probably no way to fit C-Kermit without I&D space.
  250. # ? for DEC PDP-11 with Ultrix-11 3.x, ??? (probably needs overlays)
  251. # ? for DEC VAX with Ultrix 1.x "make bsd"
  252. # ? for DEC VAX with Ultrix 2.x "make ultrix2x"
  253. # ? for DEC VAX or DECstation with Ultrix 3.0, 3.1, "make ultrix3x"
  254. # ? for DECstation or VAX with Ultrix 4.0 or 4.1, "make ultrix40"
  255. # ? for DECstation or VAX with Ultrix 4.2, "make ultrix42" or "make ultrix42c"
  256. # ? for DECstation or VAX with Ultrix 4.x, POSIX world, "make posix"
  257. # + for DECstation or VAX with Ultrix 4.3, "make ultrix43".
  258. # + for DECstation or VAX with Ultrix 4.4, "make ultrix44".
  259. # ? for DECstation 5000/50, /150 or /260 (R4x00 MIPS CPU), Ultrix 4.3A or later
  260. #     "make ultrix43-mips3" or "make ultrix43c-mips3"
  261. # ? for DECstation (MIPS) with Berkeley Sprite, "make bsd44"?
  262. # ? for DECstation (MIPS) with OSF/1 V1.0 to 1.3, "make dec-osf"
  263. # ? for DEC Alpha with OSF/1 1.0 to 1.3, "make dec-osf"
  264. # ? for DEC PC 486 with OSF/1, "make dec-osf"
  265. # ? for DEC Alpha with OSF/1 2.x, "make dec-osf20"
  266. # + for DEC Alpha with OSF/1 3.0, "make dec-osf30"
  267. # + for DEC Alpha with Digital UNIX 3.2, "make du32"
  268. # + for DEC Alpha with Digital UNIX 4.0-4.0D, "make du40" or "make du40gcc"
  269. # + for DEC Alpha with Digital UNIX 4.0E or higher, see Tru64.
  270. # - for DEC Pro-350 with Pro/Venix V1.x, "make provx1" (version 5A is too big)
  271. # ? for DEC Pro-380 with Pro/Venix V2.0 (Sys V), "make sys3" or "make sys3nid"
  272. # ? for DEC Pro-380 with 2.9, 2.10, or 2.11 BSD, "make bsd29" or "make bsd210"
  273. #   for DEC PDP-11 with 2.xBSD (use separate makefile ckubs2.mak)
  274. # ? for Dell UNIX Issue 2.x (= USL Sys V/386 R4.x + fixes), "make dellsys5r4"
  275. #     or "make dellsys5r4c" (last tested in C-Kermit 5A).
  276. # ? for DIAB DS90 with DNIX (any version) create an empty <sys/file.h> if
  277. #     this file does not already exist (or add -DNOFILEH to the make entry).
  278. # ? for DIAB DS90 with DNIX 5.2 (Sys V.2) or earlier, "make dnix",
  279. #     "make dnixnd", or (to add curses and TCP/IP) "make dnixnetc",
  280. # ? for DIAB DS90 with DNIX 5.3 (Sys V.3), "make dnix5r3"
  281. # ? for DIAB DS90 with DNIX 5.3 (Sys V.3) and TCP/IP, "make dnix5r3net"
  282. # ? for DIAB DS90 with DNIX 5.3 2.2 (Sys V.3), ANSI C, "make dnix5r3ansi"
  283. #     or, to include TCP/IP, "make dnix5r3ansinet",
  284. #     but you have to fix a bug in /usr/include/stdlib.h first:
  285. #     change "extern void free(char *str);" to "extern void free(void *str);"
  286. # ? for Dolphin Server Technology Triton 88/17 with SV/88 R3.2, "make sv88r32"
  287. # ? for Encore Multimax 310, 510 with Umax 4.2, "make umax42"
  288. # ? for Encore Multimax 310, 510 with Umax 4.3, "make umax43"
  289. # ? for Encore Multimax 310, 510 with Umax V 2.2, use Berkeley cc, "make bsd"
  290. # ? for Encore 88K with Umax V 5.2, "make encore88k"
  291. # ? for ESIX System V R4.0.3 or 4.04 with TCP/IP support, "make esixr4"
  292. #     NOTE: You can also build on Unixware 2.x with "make esixr4", and run
  293. #     on ESIX, but there you must first:
  294. #       ln /usr/lib/libsocket.so /usr/lib/libsocket.so.1
  295. #       ln /usr/lib/libnsl.so /usr/lib/libnsl.so.1
  296. #     (This worked for C-Kermit 6.0 but does not work for 7.0)
  297. #     (But you can probably still build a non-networking version this way)
  298. # ? for Everex STEP 386/25 Rev G with ESIX Sys V R3.2D, "make sys5r3"
  299. # ? for Fortune 32:16, For:Pro 1.8, "make ft18"
  300. # ? for Fortune 32:16, For:Pro 2.1, "make ft21"
  301. # ? for FPS 500 with FPX 4.1, "made bsd"
  302. # ? for FreeBSD 1.0, "make freebsd"
  303. # + for FreeBSD 2.x, "make freebsd2" (ncurses) or "make freebsd2c" (curses)
  304. # + for FreeBSD 3.x, "make freebsd3" (ncurses) or "make freebsd3c" (curses)
  305. # + for FreeBSD 4.0, "make freebsd4"
  306. # + for FreeBSD 4.1, "make freebsd41"
  307. # + for FreeBSD 4.2, "make freebsd42"
  308. # + for FreeBSD 4.3, "make freebsd43"
  309. # ? for Harris HCX-2900, "make sys5r3"
  310. # ? for Harris Night Hawk 88K or 68K with CX/UX pre-6.1, "make sys5r3"
  311. # ? for Harris Night Hawk 88K or 68K with CX/UX 6.1 or later, "make cx_ux"
  312. # ? for Heurikon, "make sys3"
  313. # ? for HP-3000, MPE/ix, "make posix"?
  314. # + for HP-9000 Series 300 with 4.4BSD, "make bsd44"
  315. # + for HP-9000 Series 500, HP-UX 5.21 and no networking "make hpux0500"
  316. # + for HP-9000 Series 500, HP-UX 5.21 with WIN/TCP 1.2 "make hpux0500wintcp"
  317. # + for HP-9000 Series, HP-UX 6.5, without long filenames,
  318. #     "make hpux0650" or "make hpux0650c"
  319. # + for HP-9000 Series, HP-UX 7.0 or later no long filenames, "make hpux0700sf"
  320. #     or (to include tcp/ip, curses, etc) "make hpux0700sftcpc"
  321. # + for HP-9000 Series with HP-UX 7.0, TCP/IP,long filenames,"make hpux0700lfn"
  322. # + for HP-9000 300/400 Series (680x0) with HP-UX 8.0, TCP/IP, "make hpux0800"
  323. #      or "make hpux0800c"
  324. # + for HP-9000 700/800 Series (PA-RISC), HP-UX 8.0, TCP/IP, "make hpux0800pa"
  325. #      or "make hpux0800pac"
  326. # + for HP-9000 Series with HP-UX 8.0, no TCP/IP, long filenames,
  327. #      "make hpux0800notcp"
  328. # + for HP-9000 Series, HP-UX 9.0 - 9.10, TCP/IP, curses, restricted compiler
  329. #     (no optimization, no ANSI), all models, "make hpux0900".  Read the
  330. #     hpux0900 entry below for more info.
  331. # + for HP-9000 700 and 800 Series, HP-UX 9.x, TCP/IP, curses,
  332. #     HP optimizing ANSI C compiler, "make hpux0900o700".
  333. # + for HP-9000 with Motorola CPUs, HP-UX 9.x, TCP/IP, curses,
  334. #     HP optimizing ANSI C compiler, "make hpux0900mot".
  335. # + for HP-9000 on other CPUs, HP-UX 9.x, TCP/IP, curses,
  336. #     HP optimizing ANSI C compiler, "make hpux0900o".
  337. # + for HP-9000 series, HP-UX 9.x, TCP/IP, curses, gcc, all models,
  338. #     "make hpux0900gcc"
  339. # + for HP-9000 700/800 Series, HP-UX 10.00,10.01,10.10,10.20,10.30, TCP/IP,
  340. #     curses, restricted compiler (no optimization, no ANSI) "make hpux1000".
  341. # + for HP-9000 700/800 Series, HP-UX 10.00,10.01,10.10,10.20,10.30, TCP/IP,
  342. #     curses, HP ANSI/optimizing compiler "make hpux1000o" or "make hpux1000o+"
  343. # + for HP-9000 HP-UX 10.00 or later with gcc, "make hpux1000gcc"
  344. # + for Trusted HP-UX 10.xx "make hpux1000t", "make hpux1000to",
  345. #     or make hpux1000to+"
  346. # + for HP-9000 700/800 Series, HP-UX 11.00,TCP/IP,curses, restricted compiler
  347. #     (no optimization, no ANSI) "make hpux1100".
  348. # + for HP-9000 700/800 Series, HP-UX 11.00,TCP/IP,curses, restricted compiler
  349. #     HP ANSI/optimizing compiler "make hpux1100o" or "make hpux1100o+"
  350. # + for Trusted HP-UX 11.xx "make hpux1100t", "make hpux1100to",
  351. #     make hpux1100to+"
  352. # + for HP-9000 PA-RISC models with NeXTSTEP 3.3, "make nextquadfat".
  353. # + for HP-9000 PA-RISC models with OPENSTEP/Mach 4.1, "make nextquadfat".
  354. # ? for IBM 370 Series with IX/370, "make ix370"
  355. # ? for IBM 370 Series with AIX/370 1.2, "make aix370"
  356. # ? for IBM 370 Series with AIX/370 3.0, "make aix370"
  357. # ? for IBM 370 Series with AIX/ESA 2.1, "make aixesa"
  358. # - for IBM PC/AT 286 & compatibles with Mark Williams Coherent OS,
  359. #     command-line-only version, "make coherent" (version 5A & later too big)
  360. # ? for IBM PC 386 & compatibles with Mark Williams Coherent OS,
  361. #     minimum interactive version, "make coherentmi"
  362. # ? for IBM PC 386 & compatibles with Mark Williams Coherent OS,
  363. #     full interactive version, prior to v4.2, "make coherentmax"
  364. # + for IBM PC 386 & compatibles with Mark Williams Coherent OS 4.2,
  365. #     "make coherent42"
  366. # ? for IBM PC 386 & compatibles with LynxOS 2.0 or 2.1, "make lynx21"
  367. # ? for IBM PC 386 & compatibles with LynxOS 2.2, "make lynx"
  368. # - for IBM PC/AT & compatibles with original MINIX, "make minix" (too big)
  369. # ? for IBM PC family, 386-based, with MINIX/386 1.5, "make minix386"
  370. #     or if you have GNU CC, "make minix386gcc"
  371. # + for IBM PC family, 386-based, with MINIX 2.0, "make minix20"
  372. # + for IBM PS/2 with PS/2 AIX 1.0, 1.1, or 1.2, "make ps2aix" or ps2aixnetc.
  373. # ? for IBM PS/2 with PS/2 AIX 1.3, "make ps2aix3"
  374. # ? for IBM RISC System/6000 with AIX 3.0, "make aix30"
  375. # ? for IBM RISC System/6000 with AIX 3.1.x, "make aix31"
  376. # + for IBM RISC System/6000 with AIX 3.2.0 thru 3.2.5, "make aix32"
  377. # + for IBM RS/6000 or Power Series with AIX 4.1.x, "make aix41"
  378. # + for IBM RS/6000 or Power Series with AIX 4.1.x with gcc, "make aix41g"
  379. # + for IBM RS/6000 or Power Series with AIX 4.1 with X.25, "make aix41x25"
  380. # + for IBM RS/6000 or Power Series with AIX 4.2, "make aix42"
  381. # + for IBM RS/6000 or Power Series with AIX 4.3, "make aix43" or "make aix43g"
  382. # ? for IBM RS/6000 or Power Series with AIX 4.4, "make aix44"
  383. # ? for IBM RS/6000 or Power Series with AIX 4.5, "make aix45"
  384. # ? for IBM RS/6000 or Power Series with AIX 5.0, "make aix50"
  385. # ? for IBM RS/6000 or Power Series with AIX 5.1, "make aix51"
  386. # ? for IBM RT PC with AIX 2.1, "make sys3"
  387. # + for IBM RT PC with AIX 2.2.1, "make rtaix" or "make rtaixc"
  388. # ? for IBM RT PC with ACIS 4.2, "make bsd"
  389. # ? for IBM RT PC with ACIS 4.3, "make rtacis" or "make bsd KFLAGS=-DNOANSI"
  390. # ? for IBM RT PC with 4.3BSD/Reno, "make bsd44" or "make bsd44c"
  391. # ? for ICL DRS400 or 400E, "make iclsys5r3"
  392. # ? for ICL DRS3000 (80486) with DRS/NX, "make iclsys5r4_486"
  393. # ? for ICL DRS6000 (SPARC) with DRS/NX, "make iclsys5r4"
  394. # + for ICL DRS6000 (SPARC) with DRS/NX 4.2MP 7MPlus, "make iclsys5r4m+"
  395. # ?     Ditto but with IKSD support included, "make iclsys5r4m+iksd"
  396. # ? for Integrated Solutions Inc V8S VME 68020, "make isi"
  397. # ? for Intel 302 with Bell Tech Sys V/386 R3.2, "make sys5r3"
  398. # ? for Intel Xenix/286, "make sco286"
  399. # ? for Interactive System III (PC/IX), "make pcix" or "make is3"
  400. # ? for Interactive System III (PC/IX) with gcc, "make is3gcc"
  401. # ? for Interactive 386/ix 1.0.6 with TCP/IP networking, "make is5r3net2"
  402. # ? for Interactive 386/ix 2.0.x, "make is5r3" or (POSIX) "make is5r3p"
  403. # ? for Interactive 386/ix 2.0.x with TCP/IP networking, "make is5r3net"
  404. #     or "make is5r3net2"
  405. # ? for Interactive 386/ix 2.2.1, job control, curses, no net, gcc,
  406. #     "make is5r3gcc"
  407. # + for Interactive UNIX Sys V R3.2 V2.2 - 4.0 without TCP/IP, "make is5r3jc"
  408. # + for Interactive UNIX Sys V R3.2 V2.2 - 4.0 with TCP/IP, "make is5r3netjc"
  409. # + for Intergraph Clipper, "make clix" or "make clixnet"
  410. # ? for Jolix (see 386BSD)
  411. # + for Red Hat Linux 7.1 fully configured (krb5, SSL, etc): "make redhat71"
  412. #     NOTE: You must use this target for Red Hat 7.1 since it also includes
  413. #     a workaround for its broken curses library.
  414. # + for Linux 1.2 and later, "make linux".  Uses ncurses.  This version
  415. #     handles serial speeds up to 460800 bps, Linux FSSTD 1.2, TCP/IP, and
  416. #     should work on both libc and glibc systems.  For static linking, use
  417. #     "make linux LNKFLAGS=-static".  Please read the comments that accompany
  418. #     the linux entry.
  419. # + for Linux builds that fail with "sys/select.h: No such file or directory",
  420. #     "make linuxns"
  421. # + for Linux 1.2 and later but with curses.h and libcurses (rather than
  422. #     ncurses.h and libncurses), use "make linuxc".
  423. # + for Linux 1.2 and later with no curses support at all, "make linuxnc".
  424. # + for Linux on PowerMac (Mklinux DR3), "make mklinux".
  425. # + for Linux 1.2 and later, to build with egcs, "make linuxegcs".
  426. # + for Linux with no TCP/IP, "make linuxnotcp"
  427. # + for Linux with lcc compiler, no TCP/IP, "make linuxnotcp-lcc"
  428. # ? for Linux 1.0 or earlier, "make linux10", or (to remove TCP/IP)
  429. #     "make linuxnotcp".
  430. #     IMPORTANT: Read the comments that accompany the "linux:" entry.
  431. # ? for Mach 2.6 on (anything, e.g. DECstation), "make bsd42" or "make bsd43".
  432. # ? for MachTen (Tenon) 2.1.1.D on (e.g.) Apple Powerbook, "make machten".
  433. # ? for Masscomp RTU AT&T System III, "make rtu"
  434. #   for other Masscomp, see Concurrent.
  435. # ? for Microport SV/AT (System V R2), "make mpsysv" (last edit tested: 144)
  436. # ? for Microport SVR4 2.2, 3.1, or 4.1 "make sys5r4sx"
  437. # ? for Microsoft,IBM Xenix (/286, PC/AT, etc), "make xenix" or "make sco286"
  438. # ? for MIPS System with RISC/os (UMIPS) 4.52 = AT&T SVR3, "make mips"
  439. #     or "make mipstcpc"
  440. # + for MkLinux on Power Macintosh, "make mklinux"
  441. # ? for Modcomp 9730, Real/IX, "make sys5r3" (or modify to use gcc = GLS cc)
  442. # ? for Modcomp Realstar 1000 with REAL/IX D.1, "make sv88r32"
  443. # ? for Motorola Four Phase, "make sys3" or "make sys3nid"
  444. # + for Motorola Delta System V/68 R3, "make sv68r3"
  445. # + for Motorola Delta System V/68 R3V5, "make sv68r3v5"
  446. # + for Motorola Delta System V/68 R3V5.1, "make sv68r3v51"
  447. # + for Motorola Delta System V/68 R3V6 with NSE TCP/IP, "make sv68r3v6"
  448. # + for Motorola Delta System V/88 R32, "make sv88r32"
  449. # + for Motorola Delta System V/88 R40, "make sv88r40"
  450. # ? for Mt Xinu Mach386 on 386/486-based PCs, "make bsd43"
  451. # ? for NCR Tower 1632, OS 1.02, "make tower1"
  452. # ? for NCR Tower 1632 or Minitower with System V R2, "make sys3"
  453. #     or "make sys3nv"
  454. # ? for NCR Tower 32, OS Release 1.xx.xx, "make tower32-1"
  455. # ? for NCR Tower 32, OS Release 2.xx.xx, "make tower32-2"
  456. # ? for NCR Tower 32, OS Releases based on Sys V R3, "make tower32"
  457. # ? for NCR Tower 32, OS Releases based on Sys V R3 with gcc "make tower32g"
  458. # ? for NCR System 3000, AT&T UNIX System V R4 2.0, "make sys5r4sxna"
  459. # ? for NCR System 3000, AT&T UNIX System V R4 2.0 with Wollongong TCP/IP,
  460. #     "make sys5r4net2" or "make sys5r4net2c".
  461. #      Some header files might be misplaced; try this:
  462. #       ln /usr/include/netinet/in.h /usr/include/sys/in.h
  463. #       ln /usr/include/arpa/inet.h /usr/include/sys/inet.h
  464. #       ln /usr/include/sys/termiox.h /usr/include/termiox.h
  465. # ? for NCR System 3000, NCR UNIX 02.02.01, same as above.
  466. # + for NCR MP-RAS System V R4 V2.03 or 3.02, "make mpras" or "make mprastcpc"
  467. # + for NetBSD through 1.4.x on any architecture, "make netbsd"
  468. # + for NetBSD 1.5.0 and later, "make netbsd15"
  469. # + for NeXT with NeXTSTEP 1.0 through 3.2, "make next" (on a NeXT)
  470. # + for NeXT with NeXTSTEP 3.3, "make next33"
  471. # ? for NeXT with OPENSTEP/Mach 4.1, "make nextquadfat".
  472. # + for NeXT with OPENSTEP/Mach 4.2, "make openstep42".
  473. # ? for NeXTSTEP/486, "make next" (on a PC)
  474. # ? for NeXTSTEP portable binary (runs on Intel or Motorola), "make nextfat"
  475. # ? for NeXTSTEP portable binary (Intel, Motorola, HP PA-RISC, or SPARC),
  476. #     "make nextquadfat"
  477. # ? for Nixdorf Targon/31, "make t31tos40x"
  478. # ? for Norsk Data Uniline 88/17 with SV/88 R3.2, "make sv88r32"
  479. #   for Novell UnixWare - see UnixWare
  480. # ? for OSF/1 (vanilla, from OS/F), "make posix"
  481. # ? for OkiStation 7300 Series, "make sys5r4sxtcp"
  482. # ? for Olivetti LSX-3020 with X/OS R.2.3, "make xos23" or "make xos23c"
  483. # + for OpenBSD, "make openbsd"
  484. # ? for OPENSTEP/Mach 4.1, "make nextquadfat" (NeXT, Intel, PA-RISC, SPARC)
  485. # + for OPENSTEP/Mach 4.2, "make openstep42" (tested on NeXT)
  486. # ? for Perkin-Elmer (Concurrent) 3200 series, "make sys5".
  487. # ? for Perkin-Elmer (Concurrent) 3200 series with <dirent.h>, "make ccop1"
  488. # ? for Perkin-Elmer/Concurrent 3200 with Xelos R02, "make ccop1"
  489. # ? for PFU Compact A Series SX/A TISP V10/E50 (Japan), "make sxae50"
  490. # ? for Plexus, "make sys3"
  491. # + for Pyramid 9XXX (e.g. 9845) or MIServer T series, OSx 4.4b thru 5.1,
  492. #     "ucb make pyramid" or for HDB UUCP, "ucb make pyramid-hdb" or:
  493. # + for Pyramid MIServer S or ES Series, DataCenter/OSx, "make pyrdcosx"
  494. # + for Pyramid MIS-S MIPS R3000, DataCenter OSx System V R4, "make pyrdcosx"
  495. # + for POSIX on anything, "make posix" (but adjustments might be necessary).
  496. # ? for Prime 8000 MIPS, SVR3, "make mips" or "make mipstcpc"
  497. # - for QNX 2.x (sorry we don't have a version of C-Kermit for QNX 2.x)
  498. # ? for QNX 4.0 or 4.1, 16-bit, on 286 PC, Watcom C 8.5, "make qnx16_41"
  499. # + for QNX 4.21 - 4.22A (286+), and 4.23 (386+), or higher, 16-bit,
  500. #     Watcom C 9.5x or higher, "make qnx16"
  501. # + for QNX 4.21-4.25, 32-bit, 386 or above, Watcom C 10.6, "make qnx32"
  502. #     NOTE: ("make qnx" == "make qnx32")
  503. # ? for QNX Neutrino 2+, "make qnx_nto2+" (crosscompiled on QNX4 with Watcom C)
  504. # + for QNX 6 = Neutrino 2.xx, "make qnx6"
  505. # ? for Ridge 32 (ROS3.2), "make ridge32"
  506. # ? for Samsung MagicStation, "make sys5r4"
  507. # ? for SCO Xenix 2.2.1 with development system 2.2 on 8086/8 "make sco86"
  508. # ? for SCO Xenix/286 2.2.1 with development system 2.2 on 80286, "make sco286"
  509. #     NOTE: reportedly this makefile is too long for SCO Xenix/286 make, but it
  510. #     works with "makeL", or if some of the other make entries are edited out.
  511. # ? for SCO Xenix/386 2.2.2, "make sco386"
  512. # ? for SCO Xenix/386 2.3.x, "make sco3r2"
  513. # ? for SCO Xenix/386 SCO 2.3.3 or 2.3.4 with gcc 1.37 or later,
  514. #     "make sco386gcc" or (to add curses) "make sco386gccc".
  515. # ? for SCO Xenix/386 or UNIX/386 with Excelan TCP/IP, "make sco3r2net"
  516. #     or (to add curses support) "make sco3r2netc" or "sco386netc"
  517. # + for SCO XENIX 2.3.4, "make sco234" or "make sco234c" to add curses.
  518. # + for SCO XENIX 2.3.4 with SCO TCP/IP & curses, "make sco234netc".
  519. # ? for SCO Xenix 2.3.x with Racal-InterLan TCP/IP, "make sco3r2netri"
  520. #   for other UNIX varieties with Racal Interlan TCP/IP, read sco3r2netri entry
  521. # ? for SCO Xenix 2.3.x with SCO (Lachman) TCP/IP, "make sco3r2lai"
  522. #     or (to add curses) "make sco3r2laic"
  523. #   for SCO UNIX...  ALSO READ COMMENTS in the SCO UNIX entries for more info!
  524. # ? for SCO UNIX/386 3.2.0 or 3.2.1, "make sco3r2" or "make sco3r2x"
  525. # ? for SCO UNIX/386 3.2.2, "make sco3r22" or "make sco3r22gcc"
  526. #     or "make sco3r22c"
  527. # ? for SCO UNIX/386 3.2.2 with SCO TCP/IP, "make sco3r22net"
  528. #     or "make sco3r22netc" (curses)
  529. # ? for SCO ODT 1.1, "make sco3r22net" or "make sco3r22netc" (curses)
  530. # + for SCO UNIX/386 3.2 V4.x, no network support, "make sco32v4"
  531. # +   or "make sco32v4ns" (this one uses no select() or sockets library)
  532. # + for SCO UNIX/386 3.2 V4.x with TCP/IP, "make sco32v4net"
  533. #     (also sco32v4gcc, sco32v4netgcc)
  534. # + for SCO UNIX/386 3.2 V5.0 - see SCO OpenServer.
  535. # + for SCO UNIX 3.2v4.x with TCP/IP, <dirent.h> for Extended Acer File
  536. #     System (EAFS), curses, ANSI C compilation, "make sco32v4net"
  537. # +   or (to use select()-based CONNECT module) "make sco32v4netx".
  538. # + for SCO UNIX 3.2v4.2, "make sco-odt30" (includes TCP/IP).
  539. # + for SCO MPX 3.0 - The SCO UNIX binary runs on the corresponding MPX system.
  540. #
  541. # NOTE: Also see below for other entries that are variations on these.
  542. # Also be sure to read the comments accompanying each SCO entry.
  543. # And yes, I know it's called Caldera now instead of SCO.
  544. # Also see Unixware section; Unixware has had so many owners there's no point
  545. # keeping track.
  546. #
  547. # + for SCO ODT 2.0, "make sco32v4net"
  548. # + for SCO ODT 3.0, "make sco-odt30"
  549. # + for SCO OpenServer 5.0 (OSR5), "make sco32v500"
  550. # + for SCO OpenServer 5.0 (OSR5) with networking, "make sco32v500net"
  551. # + for SCO OpenServer 5.0 (OSR5), gcc, "make sco32v500gcc"
  552. # + for SCO OpenServer 5.0 (OSR5), gcc, with networking, "make sco32v500netgcc"
  553. # + for SCO OpenServer 5.0 (OSR5), as above, ELF, "make sco32v500netgccelf"
  554. # + for SCO OpenServer 5.0.2, use "make sco32v502xxx" entries as above.
  555. # + for SCO OpenServer 5.0.4, use "make sco32v504xxx" entries as above.
  556. # + for SCO OpenServer 5.0.5, use "make sco32v505xxx" entries as above.
  557. #     Use the sco32v505udkxxx entries if you have the UDK rather than /bin/cc.
  558. # + for SCO OpenServer 5.0.6, use "make sco32v506xxx" entries as above.
  559. # + for SCO OpenServer 5.0.6a,use "make sco32v506axxx" entries as above.
  560. # ? for SCO (Univel) UnixWare 1.x, "make unixware" or "make unixwarenetc".
  561. #     If there are problems with this in C-K 7+ see notes at unixware entry.
  562. # + for SCO UnixWare 2.0.x, "make uw20"
  563. # + for SCO UnixWare 2.1.x, "make uw21"
  564. # + for SCO UnixWare 7, "make uw7"
  565. # + for SCO UnixWare 7 with IKSD support, "make uw7iksd" or "make uw7iksdudk"
  566. # + for SCO UnixWare 7 with OpenSSL, "make uw7ssl"
  567. # + for SCO (Caldera) Open UNIX 8, "make ou8"
  568. # ? for Sequent with DYNIX/ptx 1.2.1, "make dynixptx12"
  569. # ? for Sequent with DYNIX/ptx 1.3 or 1.4 with TCP/IP, "make dynixptx13"
  570. # ? for Sequent with DYNIX/ptx 2.0 or 2.1 with TCP/IP, "make dynixptx20"
  571. #     or "dynixptx20c"
  572. # + for Sequent with DYNIX/ptx 2.1.6 on i486, "dynixptx216c"
  573. # ? for Sequent with DYNIX/ptx V4.1.3 with TCP/IP, "make dynixptx41c"
  574. # + for Sequent with DYNIX/ptx V4.4.2 with TCP/IP, "make dynixptx44"
  575. # ? for Sequent Balance 8000 or B8 with DYNIX 3.0.xx, "make dynix3"
  576. #    or "make dynix3noacu"
  577. # ? for Sequent Symmetry S81 with DYNIX 3.0.xx, "make dynix3"
  578. # ? for Sequent DYNIX 3.1.xx, "make dynix31" or "make dynix31c"
  579. # + for Siemens/Nixdorf SINIX-L Intel V5.41, "make sinix541i"
  580. # + for Siemens/Nixdorf SINIX-N MIPS V5.42, "make sinix542"
  581. # + for Siemens/Nixdorf SINIX-Z Intel V5.42, "make sinix542i"
  582. # + for Siemens/Nixdorf Reliant UNIX V5.43, "make sni543"
  583. # + for Siemens/Nixdorf Reliant UNIX V5.44, "make sni544"
  584. # ? for Silicon Graphics Iris System V IRIX 3.2 or earlier, "make iris"
  585. # ? for Silicon Graphics Sys V R3 with IRIX 3.3 or later, "make sys5r3"
  586. # ? for Silicon Graphics Iris Indigo with IRIX 4.0 or 5.0, "make irix40" or
  587. #     (to include Yellow Pages and Curses) "make irix40ypc"
  588. # ? for Silicon Graphics Iris Indigo or Elan with IRIX 4.0.x with microcode
  589. #     optimization and -O4, "make irix40u" or "irix40uc" (and read notes
  590. #     accompanying these entries).
  591. # + for Silicon Graphics IRIX 5.1, "make irix51"
  592. # + for Silicon Graphics IRIX 5.2, "make irix52"
  593. # + for Silicon Graphics IRIX 5.3, "make irix53"
  594. # + for Silicon Graphics IRIX 6.0, "make irix60".
  595. # + for Silicon Graphics IRIX 6.2, "make irix62".
  596. # + for Silicon Graphics IRIX 6.3, "make irix63".
  597. # + for Silicon Graphics IRIX 6.4, "make irix64" or "make irix64gcc".
  598. # + for Silicon Graphics IRIX 6.5, "make irix65".
  599. # + for SGI IRIX 6.5.5 (new company name) "make irix65"
  600. # ? for Solaris 2.0-2.3 on SPARC or Intel, SunPro CC, "make solaris2x",
  601. # ?   or to add SunLink X.25 8.0x support, "make solaris2x25".
  602. # + for Solaris 2.4 build with gcc, "make solaris24g".
  603. # + for Solaris 2.0-2.3 on SPARC or Intel, GNU CC, "make solaris2xg".
  604. # + for Solaris 2.4 with X.25, "make solaris24x25".
  605. # + for Solaris 2.5 on SPARC or Intel, SunPro CC, "make solaris25".
  606. # +   or to add SunLink X.25 8.0x support, "make solaris25x25".
  607. # + for Solaris 2.5 on SPARC or Intel, GNU CC, "make solaris25g".
  608. # + for Solaris 2.6 on SPARC or Intel, "make solaris26".
  609. # + for Solaris 7 on SPARC or Intel, SunPro CC, "make solaris7".
  610. # + for Solaris 7 on SPARC or Intel, GNU CC, "make solaris7g".
  611. # + for Solaris 8 on SPARC or Intel, SunPro CC, "make solaris8".
  612. # + for Solaris 8 on SPARC or Intel, GNU CC, "make solaris8g".
  613. # + for Solbourne 4/500 with OS/MP 4 "make sunos4"
  614. # + for Solbourne 4/500 with OS/MP 4.1 "make sunos41" or "make sunos41c"
  615. # ? for SONY NEWS with NEWS-OS 4.0.1C, "make sonynews"
  616. # ? for SONY NEWS with NEWS-OS 4.1.2C, "make sonynews"
  617. # ? for Sperry/UNISYS 5000/20, UTS V 5.2 3R1, "make sys5"
  618. # ? for Sperry/UNISYS 5000/30/35/50/55, UTS V 5.2 2.01, "make unisys5r2"
  619. # ? for Sperry/UNISYS 5000/80 with System V R3, "make sys5r3"
  620. # ? for Sperry/UNISYS 5000/95 with System V R3, "make sys5r3"
  621. #     For UNISYS SVR3 it might be necessary to "make sys5r3 KFLAGS=-UDYNAMIC"
  622. # ? for Stardent 1520, "make sys5r3"
  623. # ? for Stratus FTX 2.x, try "make ftx" or else "make sys5r4" or "sys5r4sx"
  624. # + for Stratus FTX 3.x, PA-RISC 1.0 or 2.0, "make ftx" or "make ftxtcp"
  625. # ? for Sun with Sun UNIX 3.5 and gcc, "make sunos3gcc"
  626. # ? for Sun with pre-4.0 SunOS versions, "make bsd" (or appropriate variant)
  627. # ? for Sun with SunOS 4.0, BSD environment, "make sunos4"
  628. # ? for Sun with SunOS 4.0, BSD, with SunLink X.25, make sunos4x25
  629. # + for Sun with SunOS 4.1 or 4.1.1, BSD environment, "make sunos41"
  630. #     or "make sunos41c" (curses) or "make sunos41gcc" (compile with gcc)
  631. # + for Sun with SunOS 4.1.x, BSD, with SunLink X.25 7.00 or earlier,
  632. #     "make sunos41x25" or "make sunos41x25c" (curses)
  633. # + for Sun with SunOS 4.1, 4.1.1, AT&T Sys V R3 environment, "make sunos41s5"
  634. # + for Sun with SunOS 4.1.2, "make sunos41" or any of its variations.
  635. #     NOTE:  All SunOS 4.x systems -- Shared libraries are used by default.
  636. #       If this causes problems, add -Bstatic to CFLAGS.
  637. #     NOTE2: When building C-Kermit under SunOS for the BSD universe,
  638. #       but /usr/5bin/cc is ahead of /usr/ucb/cc in your PATH, add
  639. #       "CC=/usr/ucb/cc CC2=/usr/ucb/cc" to the make entry.
  640. #     NOTE3: If an executable built on one type of Sun hardware does not work
  641. #       on another type, rebuild the program from source on the target machine.
  642. #   for Sun with Solaris 1.x use SunOS 4.1 entries.
  643. #   for Sun with Solaris 2.0 and higher use Solaris entries.
  644. # + for Sun SPARC with Linux, "make linux"
  645. # ? for Sun SPARC with OPENSTEP/Mach 4.1, "make nextquadfat"
  646. # ? for Sun SPARC with OPENSTEP/Mach 4.2, "make openstep42"
  647. # - for Tandy 16/6000 with Xenix 3.0, "make trs16" (C-Kermit 7.0 is too big)
  648. # ? for Tektronix 6130/4132/43xx (e.g.4301) with UTek OS, "make utek"
  649. #     or (for models without hardware flow control), "make uteknohwfc"
  650. # ? for Tektronix XD88 series with UTekV OS, "make utekvr3"
  651. # ? for Tri Star Flash Cache with Esix SVR3.2, "make sys5r3"
  652. # + for Tru-64 UNIX 4.0E, "make tru64-40e"
  653. # + for Tru-64 UNIX 4.0F, "make tru64-40f"
  654. # + for Tru-64 UNIX 4.0G, "make tru64-40g"
  655. # + for Tru-64 UNIX 5.0A, "make tru64-50a"
  656. # + for Tru-64 UNIX 5.1A, "make tru64-51a"
  657. # ? for Unistar, "make sys5"
  658. # ? for Unisys S/4040 68040 CTIX SVR3.2 6.4.1, "make ctix" or "make sys5r3"
  659. # ? for Unisys U5000 UNIX SVR3 6.x, "make sys5r3" or "make sys5r3c"
  660. # ? for Unisys U6000 UNIX SVR4 1.x, "make sys5r4nx" or "make sys5r4nxnetc"
  661. #   for Unisys ... (also see Sperry)
  662. #   for Univel - see UnixWare
  663. #   for Unixware - see SCO
  664. # ? for Valid Scaldstar, "make valid"
  665. # ? for Whitechapel MG01 Genix 1.3, "make white"
  666. # ? for Zilog ZEUS 3.21, "make zilog"
  667. #
  668. # The result should be a runnable program called "wermit" in the current
  669. # directory.  After satisfactory testing, you can rename wermit to "kermit"
  670. # and put it where users can find it.
  671. #
  672. # To remove intermediate and object files, "make clean".
  673. # If your C compiler produces files with an extension other than "o",
  674. # then "make clean EXT=u", "make clean EXT=s", or whatever.
  675. #
  676. # To run lint on the source files, "make lintsun", "make lintbsd",
  677. # "make lints5", as appropriate.
  678. #
  679. # ******************************
  680. # SECURE TARGETS
  681. #
  682. # Beginning with C-Kermit 7.0, secure targets are included, as are the
  683. # source modules (ckuat*.[ch], ck_*.[ch]) needed to build them.  Secure
  684. # target names are like the regular names, but with security features
  685. # indicated by plus (+) signs.  The features are:
  686. #
  687. # krb4     MIT Kerberos IV
  688. # krb5     MIT Kerberos V
  689. # openssl  OpenSSL (SSL/TLS)
  690. # zlib     ZLIB compression for SSL/TLS
  691. # srp      Stanford Secure Remote Password
  692. # pam      PAM
  693. # shadow   Shadow Password File
  694. #
  695. # You can build these targets if you have the Kermit source files and the
  696. # required libraries (Kerberos, OpenSSL, SRP, etc).  See:
  697. #   http://www.columbia.edu/kermit/security.html 
  698. # for specific details regarding supported versions.
  699. #
  700. # The following symbols are used to specify library and header file locations
  701. # Redefine them to the values used on your system by:
  702. # . editing this file
  703. # . defining the values on the command line
  704. # . defining the values in the environment and use the -e option
  705. #
  706. K4LIB=-L/usr/kerberos/lib
  707. K4INC=-I/usr/kerberos/include
  708. K5LIB=-L/usr/kerberos/lib
  709. K5INC=-I/usr/kerberos/include
  710. SRPLIB=-L/usr/local/lib
  711. SRPINC=-I/usr/local/include
  712. SSLLIB=-L/usr/local/ssl/lib
  713. SSLINC=-I/usr/local/ssl/include
  714. #
  715. # aix41+krb5+krb4:                    IBM AIX 4.1 with Kerberos IV and V
  716. # aix43gcc+krb5+krb4:                 IBM AIX 4.3 built with gcc, ditto
  717. # aix43gcc+krb5+krb4+openssl:         Ditto, plus SSL/TLS
  718. # irix6x+krb5:
  719. # irix65+krb5:
  720. # linux+krb5:
  721. # linux+krb5+krb4:
  722. # linux+srp:
  723. # linux+srp+pam:
  724. # linux+srp+gmp:
  725. # linux+srp+gmp+no-des:
  726. # linux+srp+gmp-export:
  727. # linux+srp+gmp+pam:
  728. # linux+shadow+pam:
  729. # linux+openssl:
  730. # linux+openssl+shadow:
  731. # linux+openssl+zlib+shadow+pam:
  732. # linux+srp+openssl:
  733. # linux+krb5+krb4+srp:
  734. # linux+krb5+krb4+srp+openssl:
  735. # linux+krb5+krb4+openssl:
  736. # linux+krb5+krb4+openssl+shadow:
  737. # linux+krb5+krb4+openssl+zlib+shadow:
  738. # linux+krb5+krb4+srp-export:
  739. # linux+krb5+krb4+srp+pam:
  740. # linux+krb5+krb4+srp+openssl+pam-debug:
  741. # linux+krb5+krb4+srp+openssl+pam:
  742. # linux+krb5+krb4+srp+openssl+zlib+pam:
  743. # linux+krb5+openssl+zlib+shadow+pam:
  744. # solaris2x+krb4:  
  745. # solaris2xg+krb4:
  746. # solaris2xg+openssl+pam+shadow:
  747. # solaris2xg+openssl+zlib+pam+shadow:
  748. # solaris2xg+krb5+krb4+openssl+shadow:
  749. # solaris25+krb4:
  750. # solaris25g+krb4:
  751. # solaris26g+openssl:
  752. # solaris8g+openssl+zlib+pam+shadow:
  753. # solaris8g+krb4:
  754. # sunos41gcc+krb4:                    SunOS 4.1 built with gcc with Kerberos IV
  755. # sunos41gcc+openssl:                 SunOS 4.1 built with gcc with OpenSSL
  756. # sunos41gcc+krb4+openssl:            ...with Kerberos IV and OpenSSL
  757. # sunos41gcc+krb4+openssl+zlib:       ditto, plus ZLIB compression
  758. # sunos41gcc+krb4+srp+openssl+zlib:   ditto, plus SRP
  759. # sunos41gcc+srp+openssl+zlib:        
  760. # uw7ssl
  761. #
  762. # redhat71:
  763. # Default Red Hat 7.1 full install includes krb5, openssl, shadow, pam, zlib
  764. #
  765. ##############################################################################
  766. #
  767. # NOTES FOR V7 AND 2.X BSD (BASED ON VERSION 4E OF C-KERMIT, 1987):
  768. #
  769. # For Unix Version 7, several variables must be defined to the values
  770. # associated with your system.  BOOTNAME=/edition7 is the kernel image on
  771. # okstate's Perkin-Elmer 3230.  Others will probably be /unix.  PROCNAME=proc
  772. # is the name of the structure assigned to each process on okstate's system.
  773. # This may be "_proc" or some other variation.  See <sys/proc.h> for more
  774. # info on your systems name conventions.  NPROCNAME=nproc is the name of a
  775. # kernel variable that tells how many "proc" structures there are.  Again
  776. # this may be different on your system, but nproc will probably be somewhere.
  777. # The variable NPTYPE is the type of the nproc variable -- int, short, etc.
  778. # which can probably be gleaned from <sys/param.h>.  The definition of DIRECT
  779. # is a little more complicated.  If nlist() returns, for "proc" only, the
  780. # address of the array, then you should define DIRECT as it is below.  If
  781. # however, nlist() returns the address of a pointer to the array, then you
  782. # should give DIRECT a null definition (DIRECT= ).  The extern declaration in
  783. # <sys/proc.h> should clarify this for you.  If it is "extern struct proc
  784. # *proc", then you should NOT define DIRECT.  If it is "extern struct proc
  785. # proc[]", then you should probably define DIRECT as it is below.  See
  786. # ckuv7.hlp for further information.
  787. #
  788. # For 2.9 BSD, the makefile may use pcc rather than cc for compiles; that's
  789. # what the CC and CC2 definitions are for (the current version of the
  790. # makefile uses cc for both; this was tested in version 4E of C-Kermit and
  791. # worked OK on the DEC Pro 380, but all bets are off for version 5A).  2.9
  792. # support basically follows the 4.1 path.  Some 2.9 systems use "dir.h" for
  793. # the directory header file, others will need to change this to "ndir.h".
  794. #
  795. # The v7 and 2.9bsd versions assume I&D space on a PDP-11.  When building
  796. # C-Kermit for v7 on a PDP-11, you should probably add the -i option to the
  797. # link flags.  Without I&D space, overlays will be necessary (if available),
  798. # or code segment mapping (a`la Pro/Venix) if that's available.
  799. #
  800. # C-Kermit 5A (and 6.0?) can be built for 2.10 and 2.11BSD, using overlays,
  801. # but a separate makefile is used because this one is too big.
  802. #
  803. ##############################################################################
  804. #
  805. # V7-specific variables.
  806. # These are set up for Perkin-Elmer 3230 V7 Unix:
  807. #
  808. PROC=proc
  809. DIRECT=
  810. NPROC=nproc
  811. NPTYPE=int
  812. BOOTFILE=/edition7
  813. #
  814. # ( For old Tandy TRS-80 Model 16A or 6000 V7-based Xenix, use PROC=_proc,
  815. #   DIRECT=-DDIRECT, NPROC=_Nproc, NPTYPE=short, BOOTFILE=/xenix )
  816. #
  817. ###########################################################################
  818. #
  819. #  Compile and Link variables:
  820. #
  821. #  EXT is the extension (file type) for object files, normally o.
  822. #  See MINIX entry for what to do if another filetype must be used.
  823. #
  824. EXT=o
  825. #LNKFLAGS=
  826. SHAREDLIB=
  827. CC= cc
  828. CC2= cc
  829. MAKE= make
  830. SHELL=/bin/sh
  831.  
  832. ###########################################################################
  833. # SAMPLE INSTALLATION SCRIPT
  834. #
  835. # Modify to suit your own computer's file organization
  836. # and permissions.  If you don't have write access to the destination
  837. # directories, "make install" fails.  In most cases, a real installation
  838. # will also require you to chown / chgrp for the UUCP lockfile and/or tty
  839. # devices, and perhaps also to chmod +s the appropriate permission fields.
  840. #
  841. # Default binary, man, and doc directories are supplied below.  You can
  842. # override them in your 'make' command.  Examples:
  843. #
  844. #   make install                                   # Accept defaults.
  845. #   make "INFODIR=/usr/share/lib/kermit" install   # Override INFODIR default.
  846. #   make "BINARY=krbmit" install                   # Install Kerberized binary.
  847. #
  848. # You can also build and install in one step, e.g.:
  849. #
  850. #   make solaris8 install
  851. #
  852. WERMIT = makewhat
  853. BINARY = wermit
  854. DESTDIR = 
  855. BINDIR = /usr/local/bin
  856. MANDIR = /usr/man/man1
  857. MANEXT = 1
  858. SRCDIR =
  859. INFODIR =
  860. CERTDIR =
  861.  
  862. TEXTFILES = COPYING.TXT ckcbwr.txt ckubwr.txt ckuins.txt ckccfg.txt \
  863.         ckcplm.txt ckermit.ini ckermod.ini ckermit70.txt ckermit80.txt
  864.  
  865. ALL = $(WERMIT)
  866.  
  867. all: $(ALL)
  868.  
  869. .c.o:
  870.     $(CC) $(CFLAGS) -DKTARGET=\"$(KTARGET)\" -c $<
  871.  
  872. #Clean up intermediate and object files
  873. clean:
  874.     @echo 'Removing object files...'
  875.     -rm -f ckcmai.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) ckuus2.$(EXT) \
  876. ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) ckcpro.$(EXT) ckcfns.$(EXT) \
  877. ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) ckucon.$(EXT) ckutio.$(EXT) \
  878. ckufio.$(EXT) ckudia.$(EXT) ckuscr.$(EXT) ckwart.$(EXT) ckuusx.$(EXT) \
  879. ckuusy.$(EXT) ckcnet.$(EXT) ckuus6.$(EXT) ckuus7.$(EXT) ckusig.$(EXT) \
  880. ckucns.$(EXT) ckcmdb.$(EXT) ckuath.$(EXT) ckctel.$(EXT) ckclib.$(EXT) \
  881. ckcuni.$(EXT) ck_crp.$(EXT) ck_ssl.$(EXT) ckupty.$(EXT) ckcftp.$(EXT) \
  882. ckcpro.c wart
  883.  
  884. # Install C-Kermit after building -- IMPORTANT: Read the instructions above.
  885. # For secure versions, note the that binary generated by this makefile
  886. # might have a different name, like krbmit.  Also note that ca_certs.pem
  887. # file should be installed in the appropriate place, e.g.:
  888. #   cp ca_certs.pem /usr/local/ssl/
  889. #   cp ca_certs.pem /usr/share/ssl/
  890. #
  891. # To make sure 'man' notices the new source file and doesn't keep
  892. # showing the old formatted version, remove the old formatted version,
  893. # something like this:
  894. #        rm -f $(MANDIR)/../cat$(MANEXT)/kermit.$(MANEXT)
  895. # or this (which requires CATDIR to be defined):
  896. #        rm -f $(CATDIR)/kermit.$(MANEXT)
  897. install:
  898.     @if test 1 -eq 1; then \
  899.         echo "DESTDIR=$(DESTDIR)" ; \
  900.         if test "$(DESTDIR)" != ""; then \
  901.             if test -d $(DESTDIR); then \
  902.             echo  "$(DESTDIR) exists..." ; \
  903.         else \
  904.             echo "Creating $(DESTDIR)..." ; \
  905.             mkdir $(DESTDIR) || exit 1 ; \
  906.         fi ; \
  907.         chmod 755 $(DESTDIR) || exit 1 ; \
  908.         fi ; \
  909.         echo "BINARY=$(BINARY)" ; \
  910.         if test -f $(BINARY) ; then \
  911.         ls -l $(BINARY) ; \
  912.         else \
  913.             echo "?$(BINARY) not found" ; \
  914.             exit 1; \
  915.         fi ; \
  916.         if test "$(DESTDIR)$(BINDIR)" = ""; then \
  917.         echo "Binary directory not specified" ; \
  918.         exit 1; \
  919.         fi ; \
  920.         if test -d $(DESTDIR)$(BINDIR); then \
  921.         echo   "$(DESTDIR)$(BINDIR) exists..." ; \
  922.         else \
  923.         echo "Creating $(DESTDIR)$(BINDIR)/..." ; \
  924.         mkdir     $(DESTDIR)$(BINDIR) || exit 1 ; \
  925.         chmod 755 $(DESTDIR)$(BINDIR) ; \
  926.         fi ; \
  927.         cp $(BINARY) $(DESTDIR)$(BINDIR)/kermit || exit 1 ; \
  928.         chmod 755    $(DESTDIR)$(BINDIR)/kermit || exit 1 ; \
  929.         if test -f ckermit.ini; then \
  930.         echo "#!$(DESTDIR)$(BINDIR)/kermit" > \
  931.             $(DESTDIR)$(BINDIR)/_tmp.ini ; \
  932.         cat ckermit.ini >> $(DESTDIR)$(BINDIR)/_tmp.ini ; \
  933.         mv $(DESTDIR)$(BINDIR)/_tmp.ini \
  934.            $(DESTDIR)$(BINDIR)/ckermit.ini ; \
  935.         chmod 755 $(DESTDIR)$(BINDIR)/ckermit.ini ; \
  936.         fi ; \
  937.         if test -f ckermit.ini; then \
  938.         echo "#!$(DESTDIR)$(BINDIR)/kermit" > \
  939.             $(DESTDIR)$(BINDIR)/_tmp.ini ; \
  940.         cat ckermit.ini >> $(DESTDIR)$(BINDIR)/_tmp.ini ; \
  941.         mv $(DESTDIR)$(BINDIR)/_tmp.ini \
  942.            $(DESTDIR)$(BINDIR)/ckermit.ini ; \
  943.         chmod 755 $(DESTDIR)$(BINDIR)/ckermit.ini ; \
  944.         fi ; \
  945.         echo ; \
  946.         echo "Kermit binary installed:" ; \
  947.         ls -l $(DESTDIR)$(BINDIR)/kermit \
  948.               $(DESTDIR)$(BINDIR)/ckermit.ini ; \
  949.         echo ; \
  950.         echo " WARNING: If C-Kermit is to be used for dialing out," ; \
  951.         echo " you must change its owner and group and permissions" ; \
  952.         echo " to match the 'cu' program.  See the ckuins.txt file" ; \
  953.         echo " for details." ; \
  954.         echo ; \
  955.         echo "MANDIR=$(MANDIR)" ; \
  956.         if test "$(MANDIR)" != ""; then \
  957.             echo "Installing man page..." ; \
  958.         cp -f ckuker.nr $(MANDIR)/kermit.$(MANEXT) || exit 1 ; \
  959.         chmod 644       $(MANDIR)/kermit.$(MANEXT) || exit 1 ; \
  960.         else \
  961.         echo "Not installing man page" ; \
  962.         fi ; \
  963.         echo CERTDIR=$(CERTDIR) ; \
  964.         if test "$(CERTDIR)" != ""; then \
  965.         if test -f ca_certs.pem; then \
  966.             echo "Installing certificates file..." ; \
  967.             cp ca_certs.pem $(CERTDIR) || exit 1 ; \
  968.         fi ; \
  969.         else \
  970.         echo "Not installing certificates file" ; \
  971.         fi ; \
  972.         echo SRCDIR=$(DESTDIR)$(SRCDIR) ; \
  973.         if test "$(DESTDIR)$(SRCDIR)" != ""; then \
  974.         echo "Installing source files..." ; \
  975.         if test -d $(DESTDIR)$(SRCDIR); then \
  976.             echo  "$(DESTDIR)$(SRCDIR) exists..." ; \
  977.         else \
  978.             echo "Creating $(DESTDIR)$(SRCDIR)/..." ; \
  979.             mkdir     $(DESTDIR)$(SRCDIR) || exit 1 ; \
  980.             chmod 755 $(DESTDIR)$(SRCDIR) ; \
  981.         fi ; \
  982.         echo "Copying source files to $(DESTDIR)$(SRCDIR)..." ; \
  983.         cp COPYING.TXT ck[cuw_]*.[cwh] makefile $(DESTDIR)$(SRCDIR); \
  984.         ( cd $(DESTDIR)$(SRCDIR)/ && \
  985.               ls -l COPYING.TXT ck[cuw_]*.[cwh] makefile ) ; \
  986.         else \
  987.         echo "Not installing source code" ; \
  988.         fi ; \
  989.         echo INFODIR=$(DESTDIR)$(INFODIR) ; \
  990.         if test "$(DESTDIR)$(INFODIR)" != ""; then \
  991.         echo "Installing info files..." ; \
  992.         if test -d $(DESTDIR)$(INFODIR); then \
  993.             echo  "$(DESTDIR)$(INFODIR) exists..." ; \
  994.         else \
  995.             echo "Creating $(DESTDIR)$(INFODIR)/..." ; \
  996.             mkdir     $(DESTDIR)$(INFODIR) || exit 1 ; \
  997.             chmod 755 $(DESTDIR)$(INFODIR) ; \
  998.         fi ; \
  999.         echo "Copying text files to $(DESTDIR)$(INFODIR)..." ; \
  1000.         FileCopyList='' ; \
  1001.         for TextFile in $(TEXTFILES) ; do \
  1002.             if test -f $$TextFile; then \
  1003.                cp      $$TextFile $(DESTDIR)$(INFODIR) && \
  1004.                FileCopyList="$$FileCopyList $$TextFile" ; \
  1005.             fi ; \
  1006.         done ; \
  1007.         ( cd $(DESTDIR)$(INFODIR)/ && chmod  644   $$FileCopyList ) ; \
  1008.         ( cd $(DESTDIR)$(INFODIR)/ && pwd && ls -l $$FileCopyList ) ; \
  1009.         else \
  1010.         echo "Not installing text files" ; \
  1011.         fi ; \
  1012.     fi
  1013.  
  1014. makewhat:
  1015.     @echo 'make what?  You must tell which platform to make C-Kermit for.'
  1016.     @echo Examples:  make hpux1100, make aix43, make solaris8, etc.
  1017.     @echo Please read the comments at the beginning of the makefile.
  1018.  
  1019. ###########################################################################
  1020. #
  1021. # Dependencies Section:
  1022.  
  1023. # Normal version
  1024.  
  1025. wermit:    ckcmai.$(EXT) ckclib.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) ckuus2.$(EXT) \
  1026.         ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) ckuus6.$(EXT) \
  1027.         ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) ckcpro.$(EXT) \
  1028.         ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) \
  1029.         ckucon.$(EXT) ckutio.$(EXT) ckufio.$(EXT) ckudia.$(EXT) \
  1030.         ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) \
  1031.         ckcuni.$(EXT) ckupty.$(EXT) ckcftp.$(EXT)
  1032.     $(CC2) $(LNKFLAGS) -o wermit \
  1033.         ckcmai.$(EXT) ckclib.$(EXT) ckutio.$(EXT) ckufio.$(EXT) \
  1034.         ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) \
  1035.         ckcpro.$(EXT) ckucmd.$(EXT) ckuus2.$(EXT) ckuus3.$(EXT) \
  1036.         ckuus4.$(EXT) ckuus5.$(EXT) ckuus6.$(EXT) ckuus7.$(EXT) \
  1037.         ckuusx.$(EXT) ckuusy.$(EXT) ckuusr.$(EXT) ckucon.$(EXT) \
  1038.         ckudia.$(EXT) ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) \
  1039.         ckusig.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) ckcftp.$(EXT) \
  1040.         $(LIBS)
  1041.  
  1042. # Version with CONNECT module that uses select() instead of fork()
  1043.  
  1044. xermit:    ckcmai.$(EXT) ckclib.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) ckuus2.$(EXT) \
  1045.         ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) ckuus6.$(EXT) \
  1046.         ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) ckcpro.$(EXT) \
  1047.         ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) \
  1048.         ckucns.$(EXT) ckutio.$(EXT) ckufio.$(EXT) ckudia.$(EXT) \
  1049.         ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) \
  1050.         ckcuni.$(EXT) ckupty.$(EXT) ckcftp.$(EXT)
  1051.     $(CC2) $(LNKFLAGS) -o wermit \
  1052.         ckcmai.$(EXT) ckclib.$(EXT) ckutio.$(EXT) ckufio.$(EXT) \
  1053.         ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) \
  1054.         ckcpro.$(EXT) ckucmd.$(EXT) ckuus2.$(EXT) ckuus3.$(EXT) \
  1055.         ckuus4.$(EXT) ckuus5.$(EXT) ckuus6.$(EXT) ckuus7.$(EXT) \
  1056.         ckuusx.$(EXT) ckuusy.$(EXT) ckuusr.$(EXT) ckucns.$(EXT) \
  1057.         ckudia.$(EXT) ckuscr.$(EXT) ckcnet.$(EXT) ckusig.$(EXT) \
  1058.         ckctel.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) ckcftp.$(EXT) \
  1059.         $(LIBS)
  1060.  
  1061. # Malloc Debugging version
  1062.  
  1063. mermit:    ckcmdb.$(EXT) ckcmai.$(EXT) ckclib.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) \
  1064.         ckuus2.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) \
  1065.         ckuus6.$(EXT) ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) \
  1066.         ckcpro.$(EXT) ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) \
  1067.         ckuxla.$(EXT) ckucon.$(EXT) ckutio.$(EXT) ckufio.$(EXT) \
  1068.         ckudia.$(EXT) ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) \
  1069.         ckusig.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) ckcftp.$(EXT)
  1070.     $(CC2) $(LNKFLAGS) -o mermit ckcmdb.$(EXT) ckclib.$(EXT) ckcmai.$(EXT)\
  1071.         ckutio.$(EXT) ckufio.$(EXT) ckcfns.$(EXT) ckcfn2.$(EXT) \
  1072.         ckcfn3.$(EXT) ckuxla.$(EXT) ckcpro.$(EXT) ckucmd.$(EXT) \
  1073.         ckuus2.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) \
  1074.         ckuus6.$(EXT) ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) \
  1075.         ckuusr.$(EXT) ckucon.$(EXT) ckudia.$(EXT) ckuscr.$(EXT) \
  1076.         ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) ckcuni.$(EXT) \
  1077.         ckupty.$(EXT) ckcftp.$(EXT) $(LIBS)
  1078.  
  1079. # Kerberized Version - Subject to USA export restrictions.
  1080.  
  1081. krbmit:    ckcmai.$(EXT) ckclib.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) ckuus2.$(EXT) \
  1082.         ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) ckuus6.$(EXT) \
  1083.         ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) ckcpro.$(EXT) \
  1084.         ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) \
  1085.         ckucns.$(EXT) ckutio.$(EXT) ckufio.$(EXT) ckudia.$(EXT) \
  1086.         ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) \
  1087.         ckuath.$(EXT) ck_crp.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) \
  1088.         ckcftp.$(EXT) ck_ssl.$(EXT)
  1089.     $(CC2) $(LNKFLAGS) -o krbmit ckcmai.$(EXT) ckclib.$(EXT) \
  1090.         ckutio.$(EXT) ckufio.$(EXT) ckcfns.$(EXT) ckcfn2.$(EXT) \
  1091.         ckcfn3.$(EXT) ckuxla.$(EXT) ckcpro.$(EXT) ckucmd.$(EXT) \
  1092.         ckuus2.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) \
  1093.         ckuus6.$(EXT) ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) \
  1094.         ckuusr.$(EXT) ckucns.$(EXT) ckudia.$(EXT) ckuscr.$(EXT) \
  1095.         ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) ckuath.$(EXT) \
  1096.         ck_crp.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) ckcftp.$(EXT) \
  1097.         ck_ssl.$(EXT) $(LIBS)
  1098.  
  1099. krbmit-debug:    ckcmai.$(EXT) ckclib.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) \
  1100.         ckuus2.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) \
  1101.         ckuus6.$(EXT) ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) \
  1102.         ckcpro.$(EXT) ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) \
  1103.         ckuxla.$(EXT) ckucns.$(EXT) ckutio.$(EXT) ckufio.$(EXT) \
  1104.         ckudia.$(EXT) ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) \
  1105.         ckusig.$(EXT) ckuath.$(EXT) ck_crp.$(EXT) ckcuni.$(EXT) \
  1106.         ckupty.$(EXT) ck_ssl.$(EXT) ckcmdb.$(EXT) ckcftp.$(EXT)
  1107.     $(CC2) $(LNKFLAGS) -o krbmit ckcmdb.$(EXT) ckcmai.$(EXT) \
  1108.         ckclib.$(EXT) ckutio.$(EXT) ckufio.$(EXT) ckcfns.$(EXT) \
  1109.         ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) ckcpro.$(EXT) \
  1110.         ckucmd.$(EXT) ckuus2.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) \
  1111.         ckuus5.$(EXT) ckuus6.$(EXT) ckuus7.$(EXT) ckuusx.$(EXT) \
  1112.         ckuusy.$(EXT) ckuusr.$(EXT) ckucns.$(EXT) ckudia.$(EXT) \
  1113.         ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) \
  1114.         ckuath.$(EXT) ck_crp.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) \
  1115.         ckcftp.$(EXT) ck_ssl.$(EXT) $(LIBS)
  1116.  
  1117. # SRP(TM) Version - Subject to USA export restrictions.
  1118.  
  1119. srpmit:    ckcmai.$(EXT) ckclib.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) ckuus2.$(EXT) \
  1120.         ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) ckuus6.$(EXT) \
  1121.         ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) ckcpro.$(EXT) \
  1122.         ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) \
  1123.         ckucns.$(EXT) ckutio.$(EXT) ckufio.$(EXT) ckudia.$(EXT) \
  1124.         ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) \
  1125.         ckuath.$(EXT) ck_crp.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) \
  1126.         ckcftp.$(EXT) ck_ssl.$(EXT)
  1127.     $(CC2) $(LNKFLAGS) -o srpmit ckcmai.$(EXT) ckclib.$(EXT) \
  1128.         ckutio.$(EXT) ckufio.$(EXT) ckcfns.$(EXT) ckcfn2.$(EXT) \
  1129.         ckcfn3.$(EXT) ckuxla.$(EXT) ckcpro.$(EXT) ckucmd.$(EXT) \
  1130.         ckuus2.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) \
  1131.         ckuus6.$(EXT) ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) \
  1132.         ckuusr.$(EXT) ckucns.$(EXT) ckudia.$(EXT) ckuscr.$(EXT) \
  1133.         ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) ckuath.$(EXT) \
  1134.         ck_crp.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) ck_ssl.$(EXT) \
  1135.         ckcftp.$(EXT) $(LIBS)
  1136.  
  1137. # Kerberized Version - Not subject to USA export restrictions.
  1138.  
  1139. krbmit-export:    ckcmai.$(EXT) \
  1140.         ckclib.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) ckuus2.$(EXT) \
  1141.         ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) ckuus6.$(EXT) \
  1142.         ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) ckcpro.$(EXT) \
  1143.         ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) \
  1144.         ckucns.$(EXT) ckutio.$(EXT) ckufio.$(EXT) ckudia.$(EXT) \
  1145.         ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) \
  1146.         ckuath.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) ckcftp.$(EXT)
  1147.     $(CC2) $(LNKFLAGS) -o krbmit-export ckcmai.$(EXT) ckclib.$(EXT) \
  1148.         ckutio.$(EXT) ckufio.$(EXT) ckcfns.$(EXT) ckcfn2.$(EXT) \
  1149.         ckcfn3.$(EXT) ckuxla.$(EXT) ckcpro.$(EXT) ckucmd.$(EXT) \
  1150.         ckuus2.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) \
  1151.         ckuus6.$(EXT) ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) \
  1152.         ckuusr.$(EXT) ckucns.$(EXT) ckudia.$(EXT) ckuscr.$(EXT) \
  1153.         ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) ckuath.$(EXT) \
  1154.         ckcuni.$(EXT) ckupty.$(EXT) ckcftp.$(EXT) $(LIBS)
  1155.  
  1156. # SRP(TM) Version - Not subject to USA export restrictions.
  1157.  
  1158. srpmit-export:    ckcmai.$(EXT) \
  1159.         ckclib.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) ckuus2.$(EXT) \
  1160.         ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) ckuus6.$(EXT) \
  1161.         ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) ckcpro.$(EXT) \
  1162.         ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) \
  1163.         ckucns.$(EXT) ckutio.$(EXT) ckufio.$(EXT) ckudia.$(EXT) \
  1164.         ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) \
  1165.         ckuath.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) ckcftp.$(EXT)
  1166.     $(CC2) $(LNKFLAGS) -o srpmit-export ckcmai.$(EXT) ckclib.$(EXT) \
  1167.         ckutio.$(EXT) ckufio.$(EXT) ckcfns.$(EXT) ckcfn2.$(EXT) \
  1168.         ckcfn3.$(EXT) ckuxla.$(EXT) ckcpro.$(EXT) ckucmd.$(EXT) \
  1169.         ckuus2.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) \
  1170.         ckuus6.$(EXT) ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) \
  1171.         ckuusr.$(EXT) ckucns.$(EXT) ckudia.$(EXT) ckuscr.$(EXT) \
  1172.         ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) ckuath.$(EXT) \
  1173.         ckcuni.$(EXT) ckupty.$(EXT) ckcftp.$(EXT) $(LIBS)
  1174.  
  1175. ###########################################################################
  1176. # man page...
  1177. #
  1178. ckuker.nr:
  1179.     @echo This target is obsolete.
  1180.     @echo The ckuker.nr file no longer needs any preprocessing.
  1181.  
  1182. ###########################################################################
  1183. # Dependencies for each module...
  1184. #
  1185. ckcmai.$(EXT): ckcmai.c ckcker.h ckcdeb.h ckcsym.h ckcasc.h ckcnet.h ckcsig.h \
  1186.         ckuusr.h ckctel.h ckclib.h
  1187.  
  1188. ckclib.$(EXT): ckclib.c ckclib.h ckcdeb.h ckcasc.h ckcsym.h
  1189.  
  1190. ckcpro.$(EXT): ckcpro.c ckcker.h ckcdeb.h ckcsym.h ckcasc.h ckclib.h
  1191.  
  1192. ckcpro.c: ckcpro.w wart ckcdeb.h ckcsym.h ckcasc.h ckcker.h ckcnet.h ckctel.h \
  1193.      ckclib.h
  1194.     ./wart ckcpro.w ckcpro.c
  1195.  
  1196. ckcfns.$(EXT): ckcfns.c ckcker.h ckcdeb.h ckcsym.h ckcasc.h ckcxla.h ckcuni.h \
  1197.         ckuxla.h ckclib.h ckcnet.h
  1198.  
  1199. ckcfn2.$(EXT): ckcfn2.c ckcker.h ckcdeb.h ckcsym.h ckcasc.h ckcxla.h \
  1200.         ckuxla.h ckctel.h ckclib.h ckcnet.h ckcuni.h
  1201.  
  1202. ckcfn3.$(EXT): ckcfn3.c ckcker.h ckcdeb.h ckcsym.h ckcasc.h ckcxla.h \
  1203.         ckuxla.h ckclib.h ckcuni.h
  1204.  
  1205. ckuxla.$(EXT): ckuxla.c ckcker.h ckcsym.h ckcdeb.h ckcxla.h ckuxla.h ckclib.h \
  1206.          ckcuni.h
  1207.  
  1208. ckcuni.$(EXT): ckcuni.c ckcdeb.h ckcker.h ckucmd.h ckcuni.h ckcxla.h \
  1209.         ckuxla.h ckcuni.h
  1210.  
  1211. ckuusr.$(EXT): ckuusr.c ckucmd.h ckcker.h ckuusr.h ckcsym.h ckcdeb.h ckcxla.h \
  1212.         ckuxla.h ckcasc.h ckcnet.h ckctel.h ckclib.h ckcuni.h
  1213.  
  1214. ckuus2.$(EXT): ckuus2.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcxla.h ckuxla.h \
  1215.         ckcasc.h ckcnet.h ckcsym.h ckctel.h ckclib.h ckcuni.h
  1216.  
  1217. ckuus3.$(EXT): ckuus3.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcxla.h ckuxla.h \
  1218.         ckcasc.h ckcnet.h ckcsym.h ckctel.h ckctel.h ckclib.h ckcuni.h
  1219.  
  1220. ckuus4.$(EXT): ckuus4.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcxla.h ckuxla.h \
  1221.         ckcasc.h ckcnet.h ckuver.h ckcsym.h ckctel.h ckclib.h ckcuni.h
  1222.  
  1223. ckuus5.$(EXT): ckuus5.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcasc.h ckcnet.h \
  1224.          ckcsym.h ckctel.h ckclib.h ckcxla.h ckuxla.h ckcuni.h
  1225.  
  1226. ckuus6.$(EXT): ckuus6.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcasc.h ckcnet.h \
  1227.          ckcsym.h ckctel.h ckclib.h
  1228.  
  1229. ckuus7.$(EXT): ckuus7.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcxla.h ckuxla.h \
  1230.         ckcasc.h ckcnet.h ckcsym.h ckctel.h ckclib.h ckcuni.h
  1231.  
  1232. ckuusx.$(EXT): ckuusx.c ckcker.h ckuusr.h ckcdeb.h ckcasc.h ckcsym.h \
  1233.         ckcsig.h ckcnet.h ckctel.h ckclib.h ckcxla.h ckuxla.h ckcuni.h
  1234.  
  1235. ckuusy.$(EXT): ckuusy.c ckcker.h ckcdeb.h ckcasc.h ckcnet.h ckcsym.h ckctel.h \
  1236.          ckclib.h
  1237.  
  1238. ckucmd.$(EXT): ckucmd.c ckcasc.h ckucmd.h ckcdeb.h ckcsym.h ckctel.h ckclib.h
  1239.  
  1240. ckufio.$(EXT): ckufio.c ckcdeb.h ckuver.h ckcsym.h ckclib.h \
  1241.         ckcxla.h ckuxla.h ckcuni.h
  1242.  
  1243. ckutio.$(EXT): ckutio.c ckcdeb.h ckcnet.h ckuver.h ckcsym.h ckctel.h ckclib.h
  1244.  
  1245. ckucon.$(EXT): ckucon.c ckcker.h ckcdeb.h ckcasc.h ckcnet.h ckcsym.h ckctel.h \
  1246.          ckclib.h
  1247.  
  1248. ckucns.$(EXT): ckucns.c ckcker.h ckcdeb.h ckcasc.h ckcnet.h ckcsym.h ckctel.h \
  1249.          ckclib.h ckcxla.h ckuxla.h ckcuni.h
  1250.  
  1251. ckcnet.$(EXT): ckcnet.c ckcdeb.h ckcker.h ckcnet.h ckcsym.h ckcsig.h ckctel.h \
  1252.          ckclib.h
  1253.  
  1254. ckctel.$(EXT): ckcsym.h ckcdeb.h ckcker.h ckcnet.h ckctel.h ckclib.h
  1255.  
  1256. wart: ckwart.$(EXT)
  1257.     $(CC) $(LNKFLAGS) -o wart ckwart.$(EXT) $(LIBS)
  1258.  
  1259. ckcmdb.$(EXT): ckcmdb.c ckcdeb.h ckcsym.h ckclib.h
  1260.  
  1261. ckwart.$(EXT): ckwart.c
  1262.  
  1263. ckudia.$(EXT): ckudia.c ckcker.h ckcdeb.h ckucmd.h ckcasc.h ckcsym.h ckcsig.h \
  1264.         ckcnet.h ckctel.h ckclib.h
  1265.  
  1266. ckuscr.$(EXT): ckuscr.c ckcker.h ckcdeb.h ckcasc.h ckcsym.h ckcsig.h \
  1267.         ckcnet.h ckctel.h ckclib.h
  1268.  
  1269. ckusig.$(EXT): ckusig.c ckcasc.h ckcdeb.h ckcker.h ckcnet.h ckuusr.h \
  1270.         ckcsig.h ckctel.h ckclib.h
  1271.  
  1272. ckcftp.$(EXT): ckcftp.c ckcdeb.h ckcasc.h ckcker.h ckucmd.h ckuusr.h \
  1273.         ckcnet.h ckctel.h ckcxla.h ckuxla.h ckcuni.h
  1274.  
  1275. ckupty.$(EXT): ckupty.c ckupty.h ckcdeb.h
  1276.  
  1277. ckuath.$(EXT): ckuath.c ckcdeb.h ckucmd.h ckuath.h ckuat2.h ckctel.h \
  1278.          ckclib.h ckcnet.h
  1279.  
  1280. ck_crp.$(EXT): ck_crp.c ckcdeb.h ckcnet.h ckuath.h ckclib.h
  1281.  
  1282. ck_ssl.$(EXT): ck_ssl.c ckcdeb.h ckucmd.h ckuath.h ckuat2.h ckctel.h \
  1283.          ckclib.h ck_ssl.h
  1284.  
  1285. ###########################################################################
  1286. #
  1287. # Entries to make C-Kermit for specific systems.
  1288. #
  1289. # Put the ones that need short makefiles first.
  1290.  
  1291. #Apollo Aegis 9.x.  Includes TCP/IP support.
  1292. #You can also add processor-dependent optimization switches like -M570.
  1293. aegis:
  1294.     @echo Making C-Kermit $(CKVER) for Apollo Aegis 9.x...
  1295.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  1296.     "CFLAGS= -DBSD4 -DTCPSOCKET -DNOCSETS -DCK_CURSES -O $(KFLAGS)" \
  1297.     "LIBS = -lcurses -ltermcap"
  1298.  
  1299. #Apple Mac II, A/UX pre-3.0
  1300. #Warning, if "send *" doesn't work, try the auxufs makefile entry below.
  1301. aux:
  1302.     @echo Making C-Kermit $(CKVER) for Macintosh A/UX...
  1303.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  1304.     "CFLAGS = -DAUX -DTCPSOCKET $(KFLAGS) -i -O" "LNKFLAGS = -i"
  1305.  
  1306. #Apple Mac II, A/UX pre-3.0, compiled with gcc
  1307. auxgcc:
  1308.     @echo Making C-Kermit $(CKVER) for Macintosh A/UX...
  1309.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  1310.     "CFLAGS = -DAUX -DTCPSOCKET -traditional $(KFLAGS) -i -O" \
  1311.     "LNKFLAGS = " "CC = gcc" "CC2 = gcc"
  1312.  
  1313. #Apple Mac II, A/UX, pre-3.0, but with ufs file volumes, uses <dirent.h>.
  1314. auxufs:
  1315.     @echo Making C-Kermit $(CKVER) for Macintosh A/UX...
  1316.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  1317.     "CFLAGS = -DAUX -DTCPSOCKET -DDIRENT $(KFLAGS) -i -O" "LNKFLAGS = -i"
  1318.  
  1319. #Apple Mac II, A/UX 3.0, compiled with gcc
  1320. aux3gcc:
  1321.     @echo Making C-Kermit $(CKVER) for Macintosh A/UX 3.0...
  1322.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  1323.     "CFLAGS = -DAUX -DHDBUUCP -DLFDEVNO -DTCPSOCKET -DDIRENT $(KFLAGS)" \
  1324.     "LNKFLAGS = -s" "LIBS = $(LIBS)" \
  1325.     "CC=gcc -pipe -traditional" "CC2=gcc -pipe -traditional"
  1326.  
  1327. #Apple Mac II, A/UX 3.0, compiled with gcc, uses curses
  1328. aux3cgcc:
  1329.     @echo Making C-Kermit $(CKVER) for Macintosh A/UX 3.0...
  1330.     $(MAKE) "MAKE=$(MAKE)" aux3gcc KTARGET=$${KTARGET:-$(@)} \
  1331.     "KFLAGS=$(KFLAGS) -DCK_CURSES" "LIBS = -lcurses $(LIBS)"
  1332.  
  1333. # Tenon MachTen, tested on Apple Powerbook with MachTen 2.1.1.D.
  1334. # NOTE: This doesn't do anything about UUCP.  It only works if /usr/spool/uucp
  1335. # has permission of 777, and dialout device is world read/writeable.
  1336. machten:
  1337.     @echo Making C-Kermit $(CKVER) for MachTen...
  1338.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1339.     "CFLAGS= -DBSD43 -DTCPSOCKET -DSIG_V -DNDGPWNAM -DCK_CURSES -O \
  1340.     $(KFLAGS)"  "LIBS=-lcurses -ltermcap"
  1341.  
  1342. #Bell Labs Research UNIX V10
  1343. #Can't add TCP/IP because there is no sockets library.  It would have to
  1344. #be done using streams, but there is no code in C-Kermit for that.
  1345. #Remove -DNOJC if desired (if your system has csh, ksh, or bash).
  1346. bellv10:
  1347.     @echo Making C-Kermit $(CKVER) for Bell Labs Research UNIX V10...
  1348.     $(MAKE) wermit KTARGET=$${KTARGET-$(@)} \
  1349.     "CFLAGS= -DBELLV10 -DBSD4 -DNDIR -DNOJC -DNOSYSIOCTLH -DNOSETREU \
  1350.     -DNOCSETS -MINIDIAL $(KFLAGS)"
  1351.  
  1352. # WARNING: The early BSD entries do not build in version 7.0 with the stock
  1353. # BSD compiler: "Too many defines".  Unless you can rebuild cpp to have more
  1354. # space for defines, these builds must be accomplished by:
  1355. # copying the /usr/include tree to someplace else, preprocessing there with cc
  1356. # -E -I./include or whatever (plus all the same -D's, adding any necessary
  1357. # -U/-D to override the architecture)), renaming the the resulting files back
  1358. # to their original names, bringing them back to the original BSD system, and
  1359. # running the make target there.  This technique was used for 4.2 and 4.3 BSD
  1360. # on a VAX in C-Kermit 7.0.
  1361.  
  1362. #Berkeley Unix 4.1
  1363. bsd41:
  1364.     @echo Making C-Kermit $(CKVER) for 4.1BSD...
  1365.     $(MAKE) wermit KTARGET=$${KTARGET-$(@)} \
  1366.     "CFLAGS= -DBSD41" "LIBS = -ljobs"
  1367.  
  1368. #Berkeley 4.2, 4.3, also Ultrix-32 1.x, 2.x, 3.x, many others
  1369. # Add -O, -s, etc, if they work.
  1370. # If you have a version of BSD but signal() is void rather than int,
  1371. # "make bsd KFLAGS=-DSIG_V".
  1372. bsd42:
  1373.     @echo Making C-Kermit $(CKVER) for 4.2BSD...
  1374.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  1375.     "CFLAGS= -DBSD4 -DTCPSOCKET -DNOREALPATH -DNOTIMEH -DNOIKSD \
  1376.     -DCK_CURSES -DSYSTIMEBH -DNOPUTENV -DNOANSI -DBIGBUFOK \
  1377.     $(KFLAGS)" "LIBS=-lcurses -ltermcap $(LIBS)"
  1378.  
  1379. bsd:
  1380.     $(MAKE) bsd42 KTARGET=$${KTARGET-$(@)}
  1381.  
  1382. #Berkeley Unix 4.2 or 4.3 with HoneyDanBer UUCP
  1383. bsdhdb:
  1384.     @echo Making C-Kermit $(CKVER) for 4.2BSD with HDB UUCP...
  1385.     $(MAKE) bsd KTARGET=$${KTARGET-$(@)} \
  1386.     "KFLAGS= -DHDBUUCP $(KFLAGS)"
  1387.  
  1388. #Berkeley Unix 4.3 with acucntrl program, curses, TCP/IP included.
  1389. bsd43:
  1390.     @echo Making C-Kermit $(CKVER) for 4.3BSD...
  1391.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  1392.     "CFLAGS= -DBSD4 -DBSD43 -DTCPSOCKET -DNOREALPATH -DNOTIMEH -DNOIKSD \
  1393.     -DCK_CURSES -DACUCNTRL -DSYSTIMEBH -DNOPUTENV -DNOANSI -DBIGBUFOK \
  1394.     $(KFLAGS)" "LIBS=-lcurses -ltermcap $(LIBS)"
  1395.  
  1396. #4.3BSD, curses excluded
  1397. bsd43nc:
  1398.     @echo Making C-Kermit $(CKVER) for 4.3BSD...
  1399.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  1400.     "CFLAGS= -DBSD4 -DBSD43 -DTCPSOCKET -DNOREALPATH -DNOTIMEH \
  1401.     -DACUCNTRL -DSYSTIMEBH -DNOIKSD -DNOPUTENV -DNOANSI -DBIGBUFOK \
  1402.     $(KFLAGS)" "LIBS=$(LIBS)"
  1403.  
  1404. #4.3BSD, TCP/IP excluded.
  1405. bsd43nonet:
  1406.     @echo Making C-Kermit $(CKVER) for 4.3BSD + curses...
  1407.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  1408.     "CFLAGS= -DBSD4 -DBSD43 -DTCPSOCKET -DNOREALPATH -DNOTIMEH -DNOIKSD \
  1409.     -DCK_CURSES -DACUCNTRL -DSYSTIMEBH -DNOPUTENV -DNOANSI -DBIGBUFOK \
  1410.     -DNONET $(KFLAGS)" "LIBS=-lcurses -ltermcap $(LIBS)"
  1411.  
  1412. #Berkeley Unix 4.2 or 4.3 with lock directory /usr/spool/uucp/LCK/LCK..ttyxx,
  1413. #but without acucntrl program
  1414. bsdlck:
  1415.     @echo Making C-Kermit $(CKVER) for 4.2BSD, /usr/spool/uucp/LCK/...
  1416.     $(MAKE) bsd KTARGET=$${KTARGET-$(@)} \
  1417.     "KFLAGS= -DLCKDIR $(KFLAGS)"
  1418.  
  1419. #Berkeley UNIX 4.4-Lite, 4.4-Encumbered, Net/2, etc (Post-Reno),
  1420. #with TCP/IP networking.  This includes NetBSD, FreeBSD, etc.
  1421. #NOTE: This is not a pure POSIX configuration.  Using -DPOSIX instead of
  1422. # -DBSD44 prevents any kind of directory-reading (for wildcard expansion),
  1423. #and disallows use of ENOTCONN symbol for detecting broken network
  1424. #connections, and disallows RTS/CTS flow control, and would also require
  1425. #definition of the appropriate UUCP lockfile convention.
  1426. #Do not add -DCK_POSIX_SIG without reading <signal.h> first!  For example,
  1427. #sigsetjmp(), etc, tend to be defined but not implemented.
  1428. bsd44:
  1429.     @echo Making C-Kermit $(CKVER) for 4.4BSD...
  1430.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1431.     "CFLAGS= -DBSD44 -DTCPSOCKET $(KFLAGS) -O"
  1432.  
  1433. #Berkeley UNIX 4.4, as above, but with curses for fullscreen display
  1434. #Please read notes for bsd44 entry just above.
  1435. # NOTE: This one dumps core on the real 4.4BSD system at UC Berkeley
  1436. # (an HP-9000 300), so use the no-curses version for that one.
  1437. bsd44c:
  1438.     @echo Making C-Kermit $(CKVER) for 4.4BSD with curses...
  1439.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1440.     "CFLAGS= -DBSD44 -DCK_CURSES -DTCPSOCKET $(KFLAGS) -O" \
  1441.     "LIBS= -lcurses -ltermcap $(LIBS)"
  1442.  
  1443. #For FreeBSD 1.x.  Not tested recently - might need ncurses.
  1444. freebsd1:
  1445.     @echo 'Making C-Kermit $(CKVER) for FreeBSD...'
  1446.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1447.     "CFLAGS= -DBSD44 -DCK_CURSES -DTCPSOCKET -DNOCOTFMC -funsigned-char \
  1448.     -DFNFLOAT $(KFLAGS) -O -pipe" \
  1449.     "LIBS= -lcurses -ltermcap -lcrypt -lm $(LIBS)"
  1450.  
  1451. #FreeBSD 2.x with ncurses
  1452. freebsd2:
  1453.     @echo 'Making C-Kermit $(CKVER) for FreeBSD 2.x with ncurses...'
  1454.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1455.     "CFLAGS= -DBSD44 -DCK_NCURSES -DTCPSOCKET -DNOCOTFMC -DUSE_STRERROR \
  1456.     -DTPUTSARGTYPE=int -DTPUTSARG1CONST -DFREEBSD2 -funsigned-char \
  1457.     -DFNFLOAT $(KFLAGS) -O -pipe" \
  1458.     "LIBS= -lncurses -ltermlib -lcrypt -lm $(LIBS)"
  1459.  
  1460. #For FreeBSD 2.x -- Uses curses rather than ncurses
  1461. freebsd2c:
  1462.     @echo 'Making C-Kermit $(CKVER) for FreeBSD 2.x with curses...'
  1463.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1464.     "CFLAGS= -DBSD44 -DCK_CURSES -DTCPSOCKET -DNOCOTFMC -DUSE_STRERROR \
  1465.     -DTPUTSARGTYPE=int -DTPUTSARG1CONST -DFREEBSD2 -DFNFLOAT \
  1466.     -funsigned-char $(KFLAGS) -O -pipe" \
  1467.     "LIBS= -lcurses -ltermlib -lcrypt -lm $(LIBS)"
  1468.  
  1469. #FreeBSD 3.x with ncurses and uu_lock()
  1470. #(Note: uu_lock() goes back to 2.2.2, but not necessarily 2.0)
  1471. freebsd3:
  1472.     @echo 'Making C-Kermit $(CKVER) for FreeBSD 3.x with ncurses...'
  1473.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1474.     "CFLAGS= -DBSD44 -DCK_NCURSES -DTCPSOCKET -DNOCOTFMC -funsigned-char \
  1475.     -DTPUTSARGTYPE=int -DUSE_STRERROR -DFREEBSD3 -DUSE_UU_LOCK -DFNFLOAT \
  1476.     $(KFLAGS) -O -pipe" \
  1477.     "LIBS= -lncurses -lcrypt -lutil -lm $(LIBS)"
  1478.  
  1479. #As above but with curses rather than ncurses.
  1480. freebsd3c:
  1481.     @echo 'Making C-Kermit $(CKVER) for FreeBSD 3.x with curses...'
  1482.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1483.     "CFLAGS= -DBSD44 -DCK_CURSES -DTCPSOCKET -DNOCOTFMC -DUSE_UU_LOCK \
  1484.     -DTPUTSARGTYPE=int -DUSE_STRERROR -DFREEBSD3 $(KFLAGS) -DFNFLOAT \
  1485.     -funsigned-char -pipe -O" \
  1486.     "LIBS= -lcurses -lcrypt -lutil -lm $(LIBS)"
  1487.  
  1488. #FreeBSD 4.0 with ncurses and uu_lock().  Note - there is no curses in 4.0.
  1489. #ncurses 5.0 is broken requiring us to work around with setbuf().
  1490. freebsd4:
  1491.     @echo 'Making C-Kermit $(CKVER) for FreeBSD 4.x with ncurses...'
  1492.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1493.     "CFLAGS= -DBSD44 -DCK_NCURSES -DTCPSOCKET -DNOCOTFMC -DFNFLOAT \
  1494.     -funsigned-char -DTPUTSARGTYPE=int -DUSE_STRERROR -DFREEBSD4 \
  1495.     -DNONOSETBUF -DUSE_UU_LOCK $(KFLAGS) -O -pipe" \
  1496.     "LIBS= -lncurses -lcrypt -lutil -lm $(LIBS)"
  1497.  
  1498. #FreeBSD 4.1, as above but without the NONOSETBUF hack and with CK_NEWTERM.
  1499. #This works with ncurses 5.1.
  1500. freebsd41:
  1501.     @echo 'Making C-Kermit $(CKVER) for FreeBSD 4.1 with ncurses...'
  1502.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1503.     "CFLAGS= -DBSD44 -DCK_NCURSES -DCK_NEWTERM -DTCPSOCKET -DNOCOTFMC \
  1504.     -DFREEBSD4 -DFREEBSD41 -DUSE_UU_LOCK -DFNFLOAT \
  1505.     -funsigned-char -DTPUTSARGTYPE=int -DUSE_STRERROR $(KFLAGS) -O -pipe" \
  1506.     "LIBS= -lncurses -lcrypt -lutil -lm $(LIBS)"
  1507.  
  1508. #Default FreeBSD make for C-Kermit 8.0...
  1509. freebsd:
  1510.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET-$(@)} freebsd41
  1511.  
  1512. #FreeBSD 4.2, like 4.1.
  1513. freebsd42:
  1514.     @echo 'Making C-Kermit $(CKVER) for FreeBSD 4.2 with ncurses...'
  1515.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1516.     "CFLAGS= -DBSD44 -DCK_NCURSES -DCK_NEWTERM -DTCPSOCKET -DNOCOTFMC \
  1517.     -DFREEBSD4 -DFREEBSD41 -DFREEBSD42 -DUSE_UU_LOCK -DFNFLOAT \
  1518.     -funsigned-char -DTPUTSARGTYPE=int -DUSE_STRERROR $(KFLAGS) -O -pipe" \
  1519.     "LIBS= -lncurses -lcrypt -lutil -lm $(LIBS)"
  1520.  
  1521. #FreeBSD 4.3, like 4.2.
  1522. freebsd43:
  1523.     @echo 'Making C-Kermit $(CKVER) for FreeBSD 4.3 with ncurses...'
  1524.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1525.     "CFLAGS= -DBSD44 -DCK_NCURSES -DCK_NEWTERM -DTCPSOCKET -DNOCOTFMC \
  1526.     -DFREEBSD4 -DFREEBSD41 -DFREEBSD42 -DFREEBSD43 -DUSE_UU_LOCK \
  1527.     -DFNFLOAT -funsigned-char -DTPUTSARGTYPE=int -DUSE_STRERROR $(KFLAGS) \
  1528.     -O -pipe" "LIBS= -lncurses -lcrypt -lutil -lm $(LIBS)"
  1529.  
  1530. #FreeBSD 4.4, like 4.3.
  1531. freebsd44:
  1532.     @echo 'Making C-Kermit $(CKVER) for FreeBSD 4.3 with ncurses...'
  1533.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1534.     "CFLAGS= -DBSD44 -DCK_NCURSES -DCK_NEWTERM -DTCPSOCKET -DNOCOTFMC \
  1535.     -DFREEBSD4 -DFREEBSD41 -DFREEBSD42 -DFREEBSD43 -DFREEBSD44 \
  1536.     -DUSE_UU_LOCK -DFNFLOAT -funsigned-char -DTPUTSARGTYPE=int \
  1537.     -DUSE_STRERROR $(KFLAGS) -O -pipe" \
  1538.     "LIBS= -lncurses -lcrypt -lutil -lm $(LIBS)"
  1539.  
  1540. #NetBSD - all versions - with curses, not ncurses.
  1541. #Some builds seem to need KFLAGS=-DTPUTSFNTYPE=int, others don't.
  1542. #(Only to get rid of a warning -- the binaries are identical.)
  1543. netbsd:
  1544.     @echo Making C-Kermit $(CKVER) for NetBSD with curses...
  1545.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1546.     "CFLAGS= -DBSD44 -DCK_CURSES -DTCPSOCKET -DUSE_STRERROR -DTPUTSISVOID \
  1547.     -DCK_DTRCD -DCK_DTRCTS -DTPUTSARGTYPE=int -DFNFLOAT $(KFLAGS) -O" \
  1548.     "LIBS= -lcurses -lcrypt -lm $(LIBS)"
  1549.  
  1550. #NetBSD 1.5.x in which the return type of the function pointer that is the 
  1551. #third argument of tputs() was changed from void to int...  The regular NetBSD
  1552. #target builds OK here but this one eliminates the (harmless) warning.
  1553. netbsd15:
  1554.     @echo Making C-Kermit $(CKVER) for NetBSD with curses...
  1555.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1556.     "CFLAGS= -DBSD44 -DCK_CURSES -DTCPSOCKET -DUSE_STRERROR -DNETBSD15 \
  1557.     -DCK_DTRCD -DCK_DTRCTS -DTPUTSARGTYPE=int -DFNFLOAT $(KFLAGS) -O" \
  1558.     "LIBS= -lcurses -lcrypt -lm $(LIBS)"
  1559.  
  1560. #NetBSD with ncurses requested explicitly rather than curses-which-is-ncurses
  1561. netbsdn:
  1562.     @echo Making C-Kermit $(CKVER) for NetBSD with ncurses...
  1563.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1564.     "CFLAGS= -DBSD44 -DCK_CURSES -DTCPSOCKET -DNOCOTFMC -DCK_DTRCD \
  1565.     -DCK_DTRCTS -DFNFLOAT -DUSE_STRERROR -DTPUTSISVOID -DTPUTSARGTYPE=int \
  1566.     $(KFLAGS) -O" \
  1567.     "LIBS= -L/usr/pkg/lib -lncurses -lcrypt -lm $(LIBS)"
  1568.  
  1569. #OpenBSD - All versions.
  1570. #Uses ncurses as its curses so use -ltermlib, not -ltermcap
  1571. #But it doesn't use uu_lock() which was introduced in OpenBSD 2.3.
  1572. #For that use the next entry.
  1573. #Add -DMAINTYPE=int if you get complaints about main: return type is not int.
  1574. openbsdold:
  1575.     @echo Making C-Kermit $(CKVER) for OpenBSD...
  1576.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1577.     "CFLAGS= -DBSD44 -DCK_CURSES -DCK_NEWTERM -DTCPSOCKET -DOPENBSD \
  1578.     -DFNFLOAT -DNDSYSERRLIST $(KFLAGS) -O" "LIBS= -lcurses -ltermlib -lm"
  1579.  
  1580. #OpenBSD 2.3 or later
  1581. #Add -DMAINTYPE=int if you get complaints about main: return type is not int.
  1582. #For C-Kermit 8.0 (Christian Weisgerber):
  1583. # -ltermlib removed (presumably because -lcurses==ncurses already includes it)
  1584. # -DUSE_UU_LOCK and -lutil added for uu_lock()
  1585. # -DNDSYSERRLIST changed to -DUSE_STRERROR
  1586. #If this gives you trouble use the previous entry.
  1587. openbsd:
  1588.     @echo Making C-Kermit $(CKVER) for OpenBSD 2.3 or later...
  1589.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1590.     "CFLAGS= -DBSD44 -DCK_CURSES -DCK_NEWTERM -DTCPSOCKET -DOPENBSD \
  1591.     -DUSE_UU_LOCK -DFNFLOAT -DUSE_STRERROR $(KFLAGS) -O" \
  1592.     "LIBS= -lcurses -lutil -lm"
  1593.  
  1594. # make 386bsd 0.0new, posix
  1595. # for  386bsd 0.1.24, change /usr/include/termios.h to #define NCCS if
  1596. #  _POSIX_SOURCE is #defined. (source: lewine, posix prgmrs guide, o`reilly)
  1597. #NOTE: Lock directory is /var/spool/lock.  Formerly, it was /var/spool/uucp,
  1598. #but reportedly <wjones@halcyon.com> that was due to a typo in 'man tip'.
  1599. 386bsd:
  1600.     @echo 'Making C-Kermit $(CKVER) for jolix 386BSD 0.0new and 0.1.24...'
  1601.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1602.     "CFLAGS= -DPOSIX -DSETREUID -DPIDSTRING -DUSLEEP \
  1603.     -D_386BSD -DCK_CURSES -DTCPSOCKET \
  1604.     -DLOCK_DIR=\\\"/var/spool/lock\\\" \
  1605.     $(KFLAGS) -O" "LNKFLAGS = -s" "LIBS = -lcurses -ltermcap"
  1606.  
  1607. #Mac OS X 1.0 (Rhapsody) -- TCP/IP but no curses.
  1608. macosx10:
  1609.     @echo Making C-Kermit $(CKVER) for `uname -s`...
  1610.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1611.     "CFLAGS= -DMACOSX10 -DTCPSOCKET -O $(KFLAGS)"
  1612.  
  1613. #Mac OS X 1.0 (Rhapsody) -- TCP/IP and curses.
  1614. #Note: curses must be obtained separately.  See next entry for ncurses.
  1615. #Add "LIBS = -lcurses -ltermcap" if necessary (but reportedly it is not).
  1616. macosx10c:
  1617.     @echo Making C-Kermit $(CKVER) for `uname -s` + curses...
  1618.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1619.     "CFLAGS= -DMACOSX10 -DCK_CURSES -DTPUTSFNTYPE=void -DTPUTSISVOID \
  1620.     -DTCPSOCKET -O $(KFLAGS)"
  1621.  
  1622. #Mac OS X 1.0 (Rhapsody) -- TCP/IP and ncurses.
  1623. #Note: ncurses must be obtained separately.
  1624. #In the event of trouble with this one try the next one.
  1625. macosx10nc:
  1626.     @echo Making C-Kermit $(CKVER) for `uname -s` + ncurses...
  1627.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1628.     "CFLAGS= -DMACOSX10 -DCK_NCURSES -DTCPSOCKET -O $(KFLAGS) " \
  1629.     "LIBS= -lncurses $(LIBS)"
  1630.  
  1631. #The problem here is that if curses.h also exists, it conflicts with
  1632. #ncurses.h and and we have fatal errors.  If this happens to you, then
  1633. #try this entry.
  1634. macosx10ncx:
  1635.     @echo Making C-Kermit $(CKVER) for `uname -s` + ncurses...
  1636.     @rm -f ./curses.h; touch ./curses.h
  1637.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1638.     "CFLAGS= -DMACOSX10 -DCK_NCURSES -DTCPSOCKET -I. -O $(KFLAGS) " \
  1639.     "LIBS= -lncurses $(LIBS)"
  1640.     @rm -f ./curses.h
  1641.  
  1642. #Acorn RISCiX, based on ...
  1643. #Berkeley Unix 4.2 or 4.3 with lock directory /usr/spool/uucp/LCK/LCK..ttyxx,
  1644. #but without acucntrl program
  1645. riscix:
  1646.     @echo Making C-Kermit $(CKVER) for RISCiX, /usr/spool/uucp/LCK..ttyxx
  1647.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  1648.         "CFLAGS= -DBSD42 -DBSD4 -DRISCIX -DNOCSETS \
  1649.         -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DDIRENT -DCK_CURSES \
  1650.         -DMAXSP=9024 -DMAXRD=9024 -DSBSIZ=9050 -DRBSIZ=9050 \
  1651.         -DDFTTY=\\\"/dev/serial\\\" -DNOCSETS -DNOCYRIL \
  1652.         -DNOANSI -w -O2 -fomit-frame-pointer" \
  1653.         "LIBS= -lcurses -ltermcap " \
  1654.         "CC= /usr/ucb/cc" \
  1655.         "CC2= /usr/ucb/cc"
  1656.  
  1657. #Acorn RISCiX, as above, but using gcc
  1658. riscix-gcc:
  1659.     @echo Making C-Kermit $(CKVER) for RISCiX, /usr/spool/uucp/LCK..ttyxx
  1660.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  1661.         "CFLAGS= -DBSD42 -DBSD4 -DRISCIX -DNOCSETS \
  1662.         -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DDIRENT -DCK_CURSES \
  1663.         -DMAXSP=9024 -DMAXRD=9024 -DSBSIZ=9050 -DRBSIZ=9050 \
  1664.         -DDFTTY=\\\"/dev/serial\\\" -DNOCSETS -DNOCYRIL \
  1665.         -DNOANSI -w -O2 -fomit-frame-pointer" \
  1666.         "LIBS= -lcurses -ltermcap " \
  1667.         "CC= gcc -mbsd" \
  1668.         "CC2= gcc -mbsd"
  1669.  
  1670. #Convergent CTIX 6.4.1
  1671. ctix:
  1672.     @echo 'Making C-Kermit $(CKVER) for Convergent CTIX 6.4.1'
  1673.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  1674.     "CFLAGS= -DSVR3 -DDIRENT -DTCPSOCKET -DHDBUUCP -DCK_CURSES \
  1675.     -DNONAWS -DNOLEARN $(KFLAGS) -XO" \
  1676.     "LNKFLAGS=-s" "LIBS=-lsocket -lcurses -lc_s"
  1677.     mcs -d wermit
  1678.  
  1679. # The following makefile entry should work for any Harris Night Hawk system
  1680. # (either 88k or 68k based) running release 6.1 or later of the CX/UX
  1681. # operating system. This is a POSIX and ANSI-C compliant system which also
  1682. # supports BSD networking. (Earlier CX/UX releases will probably work with
  1683. # sys5r3, but this has not been verified).
  1684. #
  1685. cx_ux:
  1686.     @echo Making C-Kermit $(CKVER) for Harris Night Hawk CX/UX 6.1 or later
  1687.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  1688.     "CFLAGS=-DPOSIX -DTCPSOCKET -DHDBUUCP -DPID_T=pid_t -DWAIT_T=int \
  1689.     -Dd_ino=d_fileno -DUID_T=uid_t -DGID_T=gid_t $(KFLAGS) -Xa \
  1690.     -O3 -g" "LNKFLAGS=-O3"
  1691.  
  1692. #Intergraph Clipper, CLIX, job control, HDB UUCP.
  1693. clix:
  1694.     @echo 'Making C-Kermit $(CKVER) for Intergraph CLIX...'
  1695.     $(MAKE) wermit "CC=acc" "CC2=acc" KTARGET=$${KTARGET:-$(@)} \
  1696.     "CFLAGS= -w -DSVR3 -DCLIX -DDIRENT -DHDBUUCP -DNOSYSLOG -DUSE_MEMCPY \
  1697.     -DNOGETUSERSHELL -DNOREALPATH -DNOLEARN $(KFLAGS) -O" \
  1698.     "LNKFLAGS=" "LIBS= -lbsd"
  1699.  
  1700. #As above + TCP/IP...
  1701. clixnet:
  1702.     @echo 'Making networked C-Kermit $(CKVER) for Intergraph CLIX...'
  1703.     $(MAKE) wermit "CC=acc" "CC2=acc" KTARGET=$${KTARGET:-$(@)} \
  1704.     "CFLAGS= -w -DSVR3 -DCLIX -DDIRENT -DHDBUUCP -DNOSYSLOG -DUSE_MEMCPY \
  1705.     -DTCPSOCKET -DNOGETUSERSHELL -DNOLEARN -DNOREALPATH $(KFLAGS) -O" \
  1706.     "LNKFLAGS=" "LIBS= -lbsd"
  1707.  
  1708. #Mark Williams Coherent 286 or 386 on IBM PC family.
  1709. #There is a 64K limit on program size, so this is a command-line only version.
  1710. coherent:
  1711.     $(MAKE) "CFLAGS = -O -DCOHERENT -DNOANSI -DNOICP -DNOSETKEY -DNOLEARN \
  1712.     -DNOCSETS -DNOHELP -DNODIAL -DNOSCRIPT -DNODEBUG -DNOTLOG -DNOXMIT \
  1713.     -DNOMSEND -DNOFRILLS -DNOSYSIOCTLH -DSELECT_H $(KFLAGS) -VSUVAR" \
  1714.     -DNOFLOAT KTARGET=$${KTARGET:-$(@)} wermit
  1715.  
  1716. #Mark Williams Coherent 386 on IBM PC family.
  1717. #This will make a "minimum interactive" version - no scripts,
  1718. #no character sets, no help, no dial, no debug/transaction logging, no
  1719. #transmit, msend, mail, type, etc.
  1720. coherentmi:
  1721.     $(MAKE) "CFLAGS = -O -DCOHERENT -DNOANSI -DNOSETKEY -DNOLEARN \
  1722.     -DNOSHOW -DNOCSETS -DNOHELP -DNODIAL -DNOSCRIPT -DNODEBUG -DNOTLOG \
  1723.     -DNOXMIT -DNOMSEND -DNOFRILLS -DNOSYSIOCTLH -DNOSERVER -DNOUUCP \
  1724.     -DNOSPL -DNOPUSH -DNOMDMHUP -DNOJC -DNOFDZERO -DNOESCSEQ -DNOFLOAT \
  1725.     -DNOCMDL $(KFLAGS) -VSUVAR -DSELECT_H" KTARGET=$${KTARGET:-$(@)} \
  1726.     wermit
  1727.  
  1728. #Mark Williams Coherent 386 on IBM PC/AT family.
  1729. coherentmax:
  1730.     $(MAKE) "CFLAGS = -O -DCOHERENT -DNOANSI -DSELECT_H -DNOLEARN \
  1731.     -DNOFLOAT -DNOSYSIOCTLH $(KFLAGS) -VSUVAR" "LNKFLAGS = -O -s" \
  1732.     KTARGET=$${KTARGET:-$(@)} wermit
  1733.  
  1734. #Mark Williams Coherent 386 4.2.  Includes curses but not TCP/IP.
  1735. #Requires updates to the 4.2.10 compiler; the regular compiler fails to
  1736. #to handle "complex expressions".  NOFLOAT is so it can work on old PCs
  1737. #without floating-point hardware.
  1738. coherent42:
  1739.     $(MAKE) "CFLAGS = -T500000 -DNOFLOAT -DCOHERENT -DNOANSI -DSELECT \
  1740.     -DNOSYSLOG -DDIRENT -DCK_CURSES -DCK_NEWTERM -DCK_WREFRESH -VSUVAR \
  1741.     -DDCLGETCWD -DNOSYSIOCTLH -DNOINITGROUPS -DNOSYMLINK -DSELECT_H \
  1742.     -DDCLGETCWD -O $(KFLAGS)" \
  1743.     "LNKFLAGS = -O -s" KTARGET=$${KTARGET:-$(@)} \
  1744.     "LIBS  = -lsocket -lcurses" wermit
  1745.  
  1746. #DEC Ultrix 2.x
  1747. # Add -O, -DDYNAMIC, -s, etc, if they work.
  1748. ultrix2x:
  1749.     @echo Making C-Kermit $(CKVER) for Ultrix 2.x ...
  1750.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  1751.     "CFLAGS= -DBSD4 -DTCPSOCKET -DDU2 -DNOGETUSERSHELL $(KFLAGS)"
  1752.  
  1753. du2:
  1754.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET-$(@)} ultrix2x
  1755.  
  1756. #DEC Ultrix 3.0 and 3.1
  1757. ultrix30:
  1758.     @echo Making C-Kermit $(CKVER) for Ultrix 3.0...
  1759.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  1760.     "CFLAGS= -DBSD4 -DTCPSOCKET -DDIRENT -DSIG_V -DNOGETUSERSHELL \
  1761.     -DULTRIX3 -DCK_CURSES $(KFLAGS) -O" "LIBS= -lcurses -ltermcap"
  1762.  
  1763. du3:
  1764.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET-$(@)} ultrix30
  1765.  
  1766. ultrix3x:
  1767.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET-$(@)} ultrix30
  1768.  
  1769. #DEC Ultrix 4.0 or 4.1 on DECstation, VAXstation, VAX, etc.
  1770. ultrix40:
  1771.     @echo Making C-Kermit $(CKVER) for Ultrix 4.0 or 4.1...
  1772.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  1773.     "CFLAGS= -DBSD4 -DTCPSOCKET -DSIG_V -DDU4 -DNOGETUSERSHELL \
  1774.     $(KFLAGS) -Olimit 1450" "LNKFLAGS = -s"
  1775.  
  1776. #DEC Ultrix 4.2-4.5 on DECstation, DECsystem, VAXstation, VAX, etc.
  1777. #Like ultrix40, except now C compiler supports -O2 optimization.
  1778. ultrix42:
  1779.     @echo Making C-Kermit $(CKVER) for Ultrix 4.2 or later...
  1780.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  1781.     "CFLAGS= -DBSD4 -DTCPSOCKET -DSIG_V -DNOGETUSERSHELL $(KFLAGS) \
  1782.     -O2 -Olimit 1750" "LNKFLAGS = -s"
  1783.  
  1784. du42:
  1785.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET-$(@)} ultrix42
  1786.  
  1787. #DEC Ultrix 4.2-4.5 on DECstation, DECsystem, VAXstation, VAX, etc.
  1788. #Like du42, but with curses support added and a couple features.
  1789. ultrix42c:
  1790.     @echo Making C-Kermit $(CKVER) for Ultrix 4.2 or later...
  1791.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  1792.     "CFLAGS= -DBSD4 -DTCPSOCKET -DSIG_V -DNOGETUSERSHELL \
  1793.     -DCK_CURSES -DNOIKSD $(KFLAGS)-G6 -O2 -Olimit 3000 " \
  1794.     "LNKFLAGS = -s" "LIBS= -lcurses -ltermcap"
  1795.  
  1796. ultrix43:
  1797.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=-DULTRIX43 $(KFLAGS)" \
  1798.     KTARGET=$${KTARGET-$(@)} ultrix42c
  1799.  
  1800. ultrix43notcp:
  1801.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=-DULTRIX43 -DNONET $(KFLAGS)" \
  1802.     KTARGET=$${KTARGET-$(@)} ultrix42c
  1803.  
  1804. # NOTE: need -DNODEBUG on MIPS to avoid relocation errors at link time.
  1805. # Actually now (8.0) that we have discovered the -G option maybe debugging 
  1806. # can be put back.
  1807. ultrix44:
  1808.     $(MAKE) "MAKE=$(MAKE)" \
  1809.     "KFLAGS=-DULTRIX44 -G7 -DNODEBUG -DNETPTY -DNO_DEVTTY $(KFLAGS)" \
  1810.     KTARGET=$${KTARGET-$(@)} ultrix42c
  1811.  
  1812. ultrix45:
  1813.     $(MAKE) "MAKE=$(MAKE)" \
  1814.     "KFLAGS=-DULTRIX45 $(KFLAGS)-DNETPTY -DNO_DEVTTY $(KFLAGS)" \
  1815.     KTARGET=$${KTARGET-$(@)} ultrix42c
  1816.  
  1817. du42c:
  1818.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET-$(@)} ultrix42c
  1819.  
  1820. #DEC Ultrix 4.3A or later on DECsystem and DECstation 5000/50, /150 or /260
  1821. #with MIPS R4x00 processor.  The "-mips3" switch generates R4000-specific
  1822. #code, which is faster and more compact, but *won't* run on earlier
  1823. #DECsystems and DECstations.
  1824. ultrix43-mips3:
  1825.     @echo Making C-Kermit $(CKVER) for Ultrix 4.3A or later, R4000 cpu...
  1826.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  1827.     "CFLAGS= -DBSD4 -DTCPSOCKET -DSIG_V -DNOGETUSERSHELL \
  1828.     $(KFLAGS) -O2 -Olimit 1750 -mips3" "LNKFLAGS = -s -mips3"
  1829.  
  1830. du43-mips3:
  1831.     $(MAKE) "MAKE=$(MAKE)" ultrix43-mips3
  1832.  
  1833. #DEC Ultrix 4.3A or later on MIPS R4x000 based systems.
  1834. #Like ultrix43-mips3 but with curses support added
  1835. ultrix43c-mips3:
  1836.     @echo Making C-Kermit $(CKVER) for Ultrix 4.3A or later, R4000 cpu...
  1837.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  1838.     "CFLAGS= -DBSD4 -DTCPSOCKET -DSIG_V -DNOGETUSERSHELL -DCK_CURSES \
  1839.     $(KFLAGS) -O2 -Olimit 3000 -mips3" "LNKFLAGS = -s -mips3" \
  1840.     "LIBS= -lcurses -ltermcap"
  1841.  
  1842. du43c-mips3:
  1843.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET-$(@)} ultrix43c-mips3
  1844.  
  1845. #DEC Ultrix 4.4 on DECstation 5000/50 or /150 with R4000 MIPS processor,
  1846. #or 5000/260 with R4400.  The "-mips3" switch generates R4000-specific code,
  1847. #which is faster and more compact but *won't* run on earlier DECstations.
  1848. ultrix44-mips3:
  1849.     @echo Making C-Kermit $(CKVER) for Ultrix 4.4, R4000 cpu ...
  1850.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  1851.     "CFLAGS= -DBSD4 -DTCPSOCKET -DSIG_V -DNOGETUSERSHELL \
  1852.     $(KFLAGS) -O2 -Olimit 1450 -mips3" "LNKFLAGS = -s -mips3"
  1853.  
  1854. du44-mips3:
  1855.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET-$(@)} ultrix44c-mips3
  1856.  
  1857. #DEC Ultrix 4.2 on DECstation, VAXstation, VAX, etc, System V R4 environment
  1858. ultrix42s5r4:
  1859.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4 on Ultrix...'
  1860.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  1861.     "CFLAGS = -O2 -Olimit 1500 -DSVR4 -DDIRENT -DHDBUUCP -DNOGETUSERSHELL \
  1862.     -DTCPSOCKET $(KFLAGS)" "LNKFLAGS = -s"
  1863.  
  1864. #OSF/1
  1865. osf:
  1866.     $(MAKE) xermit CC=$(CC) CC2=$(CC2) KTARGET=$${KTARGET:-$(@)} \
  1867.     "CFLAGS= -DBSD4 -DOSF -D_BSD -DTCPSOCKET -DCK_ANSIC -DSIG_V \
  1868.     -DCK_CURSES -DCK_RTSCTS -DFNFLOAT $(KFLAGS)" \
  1869.     "LNKFLAGS = -s" "LIBS = -lbsd -lcurses -ltermcap -lm"
  1870.  
  1871. #DEC OSF/1 V1.0-1.3 on DECstation, VAX, Alpha, or PC.
  1872. dec-osf:
  1873.     $(MAKE) xermit CC=$(CC) CC2=$(CC2) KTARGET=$${KTARGET:-$(@)} \
  1874.     "CFLAGS= -DBSD4 -DOSF -DOSF13 -D_BSD -DTCPSOCKET -DCK_ANSIC -DSIG_V \
  1875.     -DNOREALPATH -DNOIKSD -DCK_CURSES -DCK_RTSCTS -DFNFLOAT -DNODEBUG \
  1876.     -DNOUNICODE $(KFLAGS)" \
  1877.     "LNKFLAGS = -non_shared" "LIBS = -lbsd -lcurses -ltermcap -lm"
  1878.  
  1879. # This one causes "relocation out-of-range" errors in the linker.
  1880. old-dec-osf:
  1881.     @echo Making C-Kermit $(CKVER) for DEC OSF/1 V1.x...
  1882.     @echo If you are building for DEC OSF/1 2.0, please use dec-osf20.
  1883.     @echo Remove or adjust -O2 and/or -Olimit if they cause trouble.
  1884.     $(MAKE) osf KTARGET=$${KTARGET:-$(@)} \
  1885.     "KFLAGS= -O2 -Olimit 2400 $(KFLAGS)"
  1886.  
  1887. #DEC OSF/1 2.0 on Alpha and probably nowhere else.
  1888. #The only difference from OSF/1 is that optimization is omitted.
  1889. #The optimized version gets strange runtime errors, like the PAUSE command
  1890. #not working.  Add "-unsigned" to make all chars unsigned.
  1891. dec-osf20:
  1892.     @echo Making C-Kermit $(CKVER) for DEC OSF/1 V2.0...
  1893.     @echo Optimization omitted because it causes runtime errors.
  1894.     @echo See comments in makefile.
  1895.     $(MAKE) osf KTARGET=$${KTARGET:-$(@)} "KFLAGS= -DOSF20 $(KFLAGS)"
  1896.  
  1897. dec-osf30:
  1898.     @echo Making C-Kermit $(CKVER) for DEC OSF/1 V3.0...
  1899.     $(MAKE) osf KTARGET=$${KTARGET:-$(@)} \
  1900.     "KFLAGS= -DOSF30 -O2 -Olimit 2400 $(KFLAGS)"
  1901.  
  1902. #Digital UNIX 3.2
  1903. # Must compile ckuus[6x].c separately without optimization otherwise
  1904. # the optimizer dumps core - keep CFLAGS here in sync with those from osf.
  1905. du32:
  1906.     @echo Making C-Kermit $(CKVER) for Digital UNIX 3.2...
  1907.     $(MAKE) ckuus6.$(EXT) \
  1908.     "CFLAGS= -DBSD4 -DOSF -D_BSD -DTCPSOCKET -DCK_ANSIC -DSIG_V \
  1909.     -DCK_CURSES -DCK_RTSCTS -DFNFLOAT -DOSF32 -DHDBUUCP $(KFLAGS)"
  1910.     $(MAKE) ckuusx.$(EXT) \
  1911.     "CFLAGS= -DBSD4 -DOSF -D_BSD -DTCPSOCKET -DCK_ANSIC -DSIG_V \
  1912.     -DCK_CURSES -DCK_RTSCTS -DFNFLOAT -DOSF32 -DHDBUUCP $(KFLAGS)"
  1913.     $(MAKE) osf "KFLAGS= -DOSF32 -DHDBUUCP -O2 -Olimit 3200 $(KFLAGS)"
  1914.  
  1915. dec-osf32:
  1916.     $(MAKE) "MAKE=$(MAKE)" du32 KTARGET=$${KTARGET:-$(@)}
  1917.  
  1918. #Digital UNIX 4.0 through 4.0D (use tru64 targets for 4.0E and above)...
  1919. du40:
  1920.     @echo Making C-Kermit $(CKVER) for Digital UNIX 4.0...
  1921.     $(MAKE) osf KTARGET=$${KTARGET:-$(@)} \
  1922.     "KFLAGS= -DOSF40 -DHDBUUCP -DFNFLOAT \
  1923.     -unsigned -std1 -O3 -Olimit 2400 $(KFLAGS)" "LIBS=-lm"
  1924.  
  1925. du40gcc:
  1926.     @echo Making C-Kermit $(CKVER) for Digital UNIX 4.0 with gcc ...
  1927.     $(MAKE) osf CC=gcc CC2=gcc KTARGET=$${KTARGET:-$(@)} \
  1928.     "KFLAGS= -DOSF40 -DHDBUUCP $(KFLAGS)"
  1929.  
  1930. #Tru64 Unix 4.0E
  1931. tru64-40e:
  1932.     @echo Making C-Kermit $(CKVER) for Tru64 UNIX 4.0E...
  1933.     $(MAKE) osf KTARGET=$${KTARGET:-$(@)} \
  1934.     "KFLAGS= -DOSF40 -DOSF40E -DTRU64 -DHDBUUCP -DFNFLOAT -DNOCOTFMC \
  1935.     -unsigned -std1 -O3 -Olimit 2400 $(KFLAGS)" "LIBS=-lm"
  1936.  
  1937. tru64-40f:
  1938.     @echo Making C-Kermit $(CKVER) for Tru64 UNIX 4.0F...
  1939.     $(MAKE) osf KTARGET=$${KTARGET:-$(@)} \
  1940.     "KFLAGS= -DOSF40 -DOSF40F -DTRU64 -DHDBUUCP -DFNFLOAT -DNOCOTFMC \
  1941.     -unsigned -std1 -O3 -Olimit 2400 $(KFLAGS)" "LIBS=-lm"
  1942.  
  1943. tru64-40g:
  1944.     @echo Making C-Kermit $(CKVER) for Tru64 UNIX 4.0G...
  1945.     $(MAKE) osf KTARGET=$${KTARGET:-$(@)} \
  1946.     "KFLAGS= -DOSF40 -DOSF40G -DTRU64 -DHDBUUCP -DFNFLOAT -DNOCOTFMC \
  1947.     -unsigned -std1 -O3 -Olimit 2400 $(KFLAGS)" "LIBS=-lm"
  1948.  
  1949. tru64-50a:
  1950.     @echo Making C-Kermit $(CKVER) for Tru64 UNIX 5.0A...
  1951.     $(MAKE) osf KTARGET=$${KTARGET:-$(@)} \
  1952.     "KFLAGS= -DTRU64 -DOSF50 -DHDBUUCP \
  1953.     -unsigned -std1 -O3 -Olimit 2400 $(KFLAGS)"
  1954.  
  1955. tru64-51a:
  1956.     @echo Making C-Kermit $(CKVER) for Tru64 UNIX 5.1A...
  1957.     $(MAKE) osf KTARGET=$${KTARGET:-$(@)} \
  1958.     "KFLAGS= -DTRU64 -DOSF50 -DOSF51A -DHDBUUCP \
  1959.     -unsigned -std1 -O3 -Olimit 2400 $(KFLAGS)"
  1960.  
  1961. du50:
  1962.     $(MAKE) tru64-50a KTARGET=$${KTARGET:-$(@)}
  1963.  
  1964. du40-ridiculous-checking:
  1965.     @echo Making C-Kermit $(CKVER) for Digital UNIX 4.0.
  1966.     @echo Checking everything - assumes DECC...
  1967.     $(MAKE) osf KTARGET=$${KTARGET:-$(@)} \
  1968.     "KFLAGS= -DOSF40 -DHDBUUCP -w0 -warnprotos -check -portable \
  1969.     -unsigned -std1 -O3 -Olimit 1760 $(KFLAGS)"
  1970.  
  1971. #Sequent DYNIX/ptx 1.2.1
  1972. dynixptx12:
  1973.     @echo Making C-Kermit $(CKVER) for Sequent DYNIX/ptx 1.2.1...
  1974.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  1975.     "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -DPTX -DNOGETUSERSHELL -DNOLEARN \
  1976.     -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t $(KFLAGS) -i -O" \
  1977.     "LNKFLAGS = -i"
  1978.  
  1979. #Sequent DYNIX/ptx 1.3 or 1.4
  1980. dynixptx13:
  1981.     @echo Making C-Kermit $(CKVER) for Sequent DYNIX/ptx 1.3 TCP/IP...
  1982.     $(MAKE) xermit "CFLAGS= -O KTARGET=$${KTARGET:-$(@)} \
  1983.     -DSVR3 -DDIRENT -DHDBUUCP -DPTX -DCK_POLL -DNOGETUSERSHELL \
  1984.     -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t -DTCPSOCKET $(KFLAGS) -i" \
  1985.     "LNKFLAGS = -i" "LIBS = -lsocket -linet -lnsl"
  1986.  
  1987. #Sequent DYNIX/ptx 2.0, ANSI C compilation
  1988. #Should work on any hardware platform when DYNIX/ptx runs, including
  1989. #386, 486, Pentium.
  1990. dynixptx20:
  1991.     @echo 'Making C-Kermit $(CKVER) for POSIX, Sequent DYNIX/ptx 2.0...'
  1992.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1993.     "CFLAGS= -DPOSIX -DHDBUUCP -DTCPSOCKET \
  1994.     -DWAIT_T=int -DPTX -DNOGETUSERSHELL $(KFLAGS) -O" \
  1995.     "LIBS = -lsocket -linet -lnsl"
  1996.  
  1997. #Sequent DYNIX/ptx 2.0, ANSI C compilation, with curses
  1998. dynixptx20c:
  1999.     @echo 'Making C-Kermit $(CKVER) for POSIX, Sequent DYNIX/ptx 2.0...'
  2000.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2001.     "CFLAGS= -DPOSIX -DHDBUUCP -DTCPSOCKET -DWAIT_T=int -DPTX -DCK_CURSES \
  2002.     -DCK_NEWTERM -DNOGETUSERSHELL $(KFLAGS) -O" \
  2003.     "LIBS = -lsocket -linet -lnsl -lcurses -ltermcap"
  2004.  
  2005. #Sequent DYNIX/ptx 2.1.6, 80486, ANSI C compilation, with curses:
  2006. # -Xa -- use ANSI compiler.
  2007. # -Wc,-pw -- suppress portability warnings.
  2008. # -Wc,-i386 -- 80386 cpu.
  2009. # -Wc,-i486 -- 80486 cpu.
  2010. # -Wc,-P5 -- Pentium (default).
  2011. # -Wc,-O3 -- highest optimization.
  2012. # -Wa,-N17061 -- increase symbol table from default of 15013 for ckcuni.c.
  2013. # Early versions of DYNIX/ptx 2.1.x may need -DCK_POLL instead of -DSELECT.
  2014. # Add "$&" after the colon in the "xermit" target for parallel makes.
  2015. dynixptx216c:
  2016.     @echo 'Making C-Kermit $(CKVER) for POSIX, Sequent DYNIX/ptx 2.1.6'
  2017.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2018.     "CFLAGS= -DPOSIX -DHDBUUCP -DDYNAMIC -DTCPSOCKET \
  2019.     -DSELECT -DCK_REDIR -DCK_NAWS -DCK_WREFRESH -DSW_ACC_ID \
  2020.     -DTCP_NODELAY=1 -DTRMBUFL=2048 -DBIGBUFOK -DHADDRLIST \
  2021.     -DPTX  -DCK_CURSES -DCK_NEWTERM -DNOGETUSERSHELL -DNOREALPATH \
  2022.     $(KFLAGS) -Xa -Wc,-pw -Wc,-i486 -Wc,-O3 -Wa,-N17061" \
  2023.     "LIBS = -lXbsd -lseq -lsocket -linet -lnsl -lmalloc -lm -lcurses" \
  2024.     "LNKFLAGS = -s"
  2025.  
  2026. #Sequent DYNIX/ptx 2.1.6, gcc 2.7.2.2, with curses:
  2027. dynixptx216cgcc:
  2028.     @echo 'Making C-Kermit $(CKVER) for POSIX, Sequent DYNIX/ptx 2.1.6 gcc'
  2029.     $(MAKE) xermit "CC = gcc" "CC2 = gcc" KTARGET=$${KTARGET:-$(@)} \
  2030.     "CFLAGS= -DPOSIX -DHDBUUCP -DDYNAMIC -DTCPSOCKET \
  2031.     -DSELECT -DCK_REDIR -DCK_NAWS -DCK_WREFRESH -DSW_ACC_ID \
  2032.     -DTCP_NODELAY=1 -DTRMBUFL=2048 -DBIGBUFOK -DHADDRLIST \
  2033.     -DPTX  -DCK_CURSES -DCK_NEWTERM -DNOGETUSERSHELL -DNOREALPATH \
  2034.     $(KFLAGS) -O3 -pipe -funsigned-char" \
  2035.     "LIBS = -lXbsd -lseq -lsocket -linet -lnsl -lmalloc -lm -lcurses" \
  2036.     "LNKFLAGS = -s"
  2037.  
  2038. #Sequent DYNIX/ptx 4.0, ANSI C compilation, with curses
  2039. dynixptx41c:
  2040.     @echo 'Making C-Kermit $(CKVER) for POSIX, Sequent DYNIX/ptx 4.0...'
  2041.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2042.     "CFLAGS= -DPOSIX -DHDBUUCP -DTCPSOCKET \
  2043.     -DWAIT_T=int -DPTX -DPTX4 -DCK_CURSES -DCK_NEWTERM \
  2044.     -DNOGETUSERSHELL $(KFLAGS) -O" \
  2045.     "LIBS = -lsocket -lnsl -lcurses -ltermcap"
  2046.  
  2047. #Sequent DYNIX/ptx 4.4, ANSI C compilation, with curses
  2048. dynixptx44:
  2049.     @echo 'Making C-Kermit $(CKVER) for POSIX, Sequent DYNIX/ptx 4.4...'
  2050.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2051.     "CFLAGS= -DPTX -DPTX4 -DPOSIX -DHDBUUCP -DTCPSOCKET -DWAIT_T=int \
  2052.     -DCK_CURSES -DCK_NEWTERM -DBIGBUFOK -DSELECT -DNOGETUSERSHELL \
  2053.     $(KFLAGS) -O" "LIBS = -lsocket -lnsl -lcurses -ltermcap"
  2054.  
  2055. #Sequent DYNIX 3.0.x
  2056. dynix3:
  2057.     @echo Making C-Kermit $(CKVER) for Sequent DYNIX 3.0.x...
  2058.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2059.     "CFLAGS= -DBSD43 -DACUCNTRL -DTCPSOCKET -O \
  2060.     -DPWUID_T=int -DGID_T=int $(KFLAGS)"
  2061.  
  2062. #Sequent DYNIX 3.0.x, no ACUCNTRL
  2063. dynix3noacu:
  2064.     @echo Making C-Kermit $(CKVER) for Sequent DYNIX 3.0.x...
  2065.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2066.     "CFLAGS= -DBSD43 -DLCKDIR -DTCPSOCKET -O \
  2067.     -DUID_T=int -DGID_T=int $(KFLAGS)"
  2068.  
  2069. #Sequent DYNIX 3.1.x
  2070. dynix31:
  2071.     @echo Making C-Kermit $(CKVER) for Sequent DYNIX 3.1.x...
  2072.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2073.     "CFLAGS= -O -DDCLPOPEN -DLCKDIR -DBSD4 -DTCPSOCKET $(KFLAGS)"
  2074.  
  2075. #Sequent DYNIX 3.1.2, as above but with curses, to be compiled by gcc 2.3.3.
  2076. dynix31c:
  2077.     @echo 'Making C-Kermit $(CKVER) for Sequent DYNIX 3.1.2, curses...'
  2078.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2079.     "CFLAGS= -O2 -DDCLPOPEN -DACUCNTRL \
  2080.     -DBSD43 -DTCPSOCKET -DCK_CURSES -DUID_T=int \
  2081.     $(KFLAGS)" "LIBS= -lcurses -ltermcap"
  2082.  
  2083. #Convex C1 with Berkeley Unix
  2084. convex:
  2085.     @echo Making C-Kermit $(CKVER) for Convex C1 / BSD...
  2086.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  2087.     "CFLAGS= -DBSD4 -DNOLEARN $(KFLAGS) -Dmsleep=mnap"
  2088.  
  2089. #Convex C210 with Convex/OS 8
  2090. convex8:
  2091.     @echo Making C-Kermit $(CKVER) for Convex C210 with OS 8
  2092.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2093.     "CFLAGS= -DBSD4 -DTCPSOCKET -DNODEBUG -DDIRENT -DNOFILEH \
  2094.     $(KFLAGS) -DSIG_V -Dmsleep=mnap"
  2095.  
  2096. #Convex C2 with Convex OS 9.1 (should also work with 8.1 or later)
  2097. #with ANSI C compiler, uses BSD 4.3 uucp lockfile convention.
  2098. convex9:
  2099.     @echo Making C-Kermit $(CKVER) for Convex C210 with OS 9.1
  2100.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2101.     "CFLAGS= -DPOSIX -DCONVEX9 -DNOIEXTEN -DDIRENT -DNOFILEH -DTCPSOCKET \
  2102.     -D__STDC__ -DLCKDIR -Dmsleep=mnap -O -ext -tm c1 $(KFLAGS)" \
  2103.     "LNKFLAGS = -ext"
  2104.  
  2105. #Convex C2 with Convex OS 10.1 or later
  2106. #with gcc 2.x C compiler
  2107. convex10gcc:
  2108.     @echo Making C-Kermit $(CKVER) for Convex C2 with OS 10.1 using gcc
  2109.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2110.     "CFLAGS= -DPOSIX -DCONVEX9 -DNOIEXTEN -DDIRENT -DNOFILEH -DTCPSOCKET \
  2111.     -D__STDC__  -Dmsleep=mnap -O2 $(KFLAGS)" CC=gcc CC2=gcc
  2112.  
  2113. #Cray X-MP or Y-MP UNICOS 6.x or 7.x.
  2114. #NOTE: NPROC tells how many parallel makes to run.  If your Cray has multiple
  2115. #processors, you can set NPROC up to the number of CPUs, e.g. NPROC=16.
  2116. cray:
  2117.     @echo 'Making C-Kermit $(CKVER) for Cray X/Y-MP UNICOS 6.x or 7.0...
  2118.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} NPROC=1 \
  2119.     "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -DTCPSOCKET $(KFLAGS) -O1"
  2120.  
  2121. #Cray X-MP or Y-MP UNICOS 8.0 Alpha.
  2122. cray8:
  2123.     @echo 'Making C-Kermit $(CKVER) for Cray X/Y-MP UNICOS 8.0 Alpha...
  2124.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} NPROC=1 \
  2125.     "CFLAGS= -DSVR4 -DDIRENT -DHDBUUCP -DTCPSOCKET $(KFLAGS) -O1"
  2126.  
  2127. #Cray-2 or Cray 3-CSOS
  2128. #NOTE: NPROC tells how many parallel makes to run.  If your Cray has multiple
  2129. #processors, you can set NPROC up to the number of CPUs, e.g. NPROC=16.
  2130. craycsos:
  2131.     @echo 'Making C-Kermit $(CKVER) for Cray-2/3 CSOS
  2132.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} NPROC=1 \
  2133.     "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -DTCPSOCKET \
  2134.     $(KFLAGS) -DCK_ANSIC -DCK_CURSES" "LIBS=-lnet"
  2135.  
  2136. #NeXTSTEP 1.0 through 3.2.
  2137. #Includes fullscreen file transfer display (curses) and TCP/IP support.
  2138. #Uses shared library to make executable program about 80K smaller.
  2139. #Remove "LIBS = -lsys_s" if this causes trouble.
  2140. next:
  2141.     @echo Making C-Kermit $(CKVER) for NeXTSTEP...
  2142.     @echo 'If you get errors in ckutio.c about w_S, w_T, etc,'
  2143.     @echo 'add KFGLAGS=-DNOREDIRECT to your make command.'
  2144.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2145.     "CFLAGS= -DNEXT -DTCPSOCKET -DLCKDIR -DNOPUTENV -DFNFLOAT \
  2146.     -pipe -DCK_CURSES $(KFLAGS) -O -w" "LIBS = -lsys_s -lcurses -ltermcap"
  2147.  
  2148. nextc:
  2149.     $(MAKE) "MAKE=$(MAKE)" next KTARGET=$${KTARGET:-$(@)}
  2150.  
  2151. nextg:
  2152.     $(MAKE) "MAKE=$(MAKE)" next KFLAGS=-Wall KTARGET=$${KTARGET:-$(@)}
  2153.  
  2154. nextgc:
  2155.     $(MAKE) "MAKE=$(MAKE)" next KFLAGS=-Wall KTARGET=$${KTARGET:-$(@)}
  2156.  
  2157. #NeXTSTEP 3.3.
  2158. #Includes fullscreen file transfer display and TCP/IP.
  2159. next33:
  2160.     @echo Making C-Kermit $(CKVER) for NeXTSTEP 3.3...
  2161.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2162.     "CFLAGS= -DNEXT33 -DTCPSOCKET -DLCKDIR -DNOPUTENV -DFNFLOAT \
  2163.     -pipe -DCK_CURSES $(KFLAGS) -O -w" "LIBS = -lsys_s -lcurses -ltermcap"
  2164.  
  2165. #OPENSTEP 4.2 for Sparc, m680x0, HP PA-RISC, and Intel.
  2166. #Includes fullscreen file transfer display and TCP/IP.
  2167. #ckcpro.c compiled without optimization because it crashes the compiler.
  2168. openstep42:
  2169.     @echo Making C-Kermit $(CKVER) for OPENSTEP 4.2...
  2170.     $(MAKE) ckcpro.$(EXT) \
  2171.     "CFLAGS= -DOPENSTEP42 -DNEXT33 -DTCPSOCKET -DLCKDIR -DNOPUTENV \
  2172.     -DFNFLOAT -pipe -DCK_CURSES $(KFLAGS) -w"
  2173.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2174.     "CFLAGS= -DOPENSTEP42 -DNEXT33 -DTCPSOCKET -DLCKDIR -DNOPUTENV \
  2175.     -DFNFLOAT -pipe -DCK_CURSES $(KFLAGS) -O -w" \
  2176.     "LIBS = -lsys_s -lcurses -ltermcap"
  2177.  
  2178. #NeXT with malloc debugger
  2179. nextmd:
  2180.     @echo Making C-Kermit $(CKVER) for NeXT with malloc debugging...
  2181.     $(MAKE) mermit KTARGET=$${KTARGET:-$(@)} \
  2182.     "CFLAGS= -DNEXT -DTCPSOCKET -DLCKDIR -DNOPUTENV -DFNFLOAT \
  2183.     -DCK_CURSES $(KFLAGS) -O -w -Dmalloc=dmalloc -Dfree=dfree -DMDEBUG" \
  2184.     "LIBS = -lsys_s -lcurses -ltermcap"
  2185.  
  2186. #Build for NeXTSTEP with "fat" binaries (MABs) that run on both Motorola
  2187. #and Intel platforms.
  2188. nextfat:
  2189.     $(MAKE) "MAKE=$(MAKE)" next KTARGET=$${KTARGET:-$(@)} \
  2190.     "KFLAGS=-Wall -arch m68k -arch i386" "LNKFLAGS = -arch m68k -arch i386"
  2191.  
  2192. #NeXTSTEP on Intel Platforms.
  2193. next486:
  2194.     @echo Making C-Kermit $(CKVER) for NeXTSTEP on Intel Platforms...
  2195.     @echo 'If you get errors in ckutio.c about w_S, w_T, etc,'
  2196.     @echo 'add KFGLAGS=D-DNOREDIRECT to your make command.'
  2197.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2198.     "CFLAGS= -DNEXT -DTCPSOCKET -DLCKDIR -DNOPUTENV -DFNFLOAT \
  2199.     -DNODEBUG -O3 -fno-omit-frame-pointer -fschedule-insns2 -pipe \
  2200.     -DCK_CURSES $(KFLAGS) -w" "LIBS = -lsys_s -lcurses -ltermcap"
  2201.  
  2202. #Single binary that runs on NeXT 68030 and 68040, Intel, HP, and Sparc,
  2203. #as well as on OpenStep/Mach.
  2204. nextquadfat:
  2205.     $(MAKE) "MAKE=$(MAKE)" next KTARGET=$${KTARGET:-$(@)} \
  2206.     "KFLAGS=-Wall -arch m68k -arch i386 -arch hppa -arch sparc" \
  2207.     "LNKFLAGS = -arch m68k -arch i386 -arch hppa -arch sparc"
  2208.  
  2209. #BeBox
  2210. beboxdr7:
  2211.     @echo 'Making C-Kermit $(CKVER) for the BeBox...'
  2212.     @echo 'Link step will fail with default Metroworks linker 64K limit.'
  2213.     @echo 'Code Warrior Gold required to link big programs.'
  2214.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  2215.     "CC=/boot/develop/tools/mwcc" "CC2=/boot/develop/tools/mwld" \
  2216.     "CFLAGS= -DBEBOX -DBE_DR_7 -DPOSIX -DNOUUCP -DNOLEARN $(KFLAGS) -O"
  2217.  
  2218. #BeBox BeOS DR7 only
  2219. bebox:
  2220.     @echo 'Making C-Kermit $(CKVER) for BeBox...'
  2221.     @echo 'Link step will fail with default Metroworks linker 64K limit.'
  2222.     @echo 'Code Warrior Pro 3.0 for BeBox required to link big programs.'
  2223.     $(MAKE) wermit "CC=mwcc" "CC2=mwld" KTARGET=$${KTARGET:-$(@)} \
  2224.     "CFLAGS= -DBEBOX -DPOSIX -DNOLEARN -DNOUUCP $(KFLAGS) -O"
  2225.  
  2226. #BeOS 4.5
  2227. #We have to use the wermit target because 'fd_set' is unknown.
  2228. beos45:
  2229.     $(MAKE) wermit "CC=$(CC)" "CC2=$(CC2)" KTARGET=$${KTARGET:-$(@)} \
  2230.     "CFLAGS= -DBEOS -DBEOS45 -DPOSIX -DNOIKSD -DNOREALPATH -DSYSTIMEH \
  2231.     -DNOCOTFMC -DNOUUCP -DNOLEARN $(KFLAGS) -O" \
  2232.     "LIBS = $(LIBS)"
  2233.  
  2234. #BeOS 4.5
  2235. beos45net:
  2236.     $(MAKE) beos45 "KFLAGS=-DTCPSOCKET -DNO_DNS_SRV $(KFLAGS)" \
  2237.     "LIBS=-lnet -lnetapi"
  2238.  
  2239. #Plan 9 from Bell Labs
  2240. plan9:
  2241.     @echo 'C-Kermit for Plan 9 from Bell Labs - calling ckpker.mk...'
  2242.     make -f ckpker.mk
  2243.  
  2244. #POSIX
  2245. posix:
  2246.     @echo 'Making C-Kermit $(CKVER) for pure POSIX...'
  2247.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  2248.     "CFLAGS= -DPOSIX -DNOUUCP -DNOLEARN $(KFLAGS) -O"
  2249.  
  2250. #Berkeley Software Design Inc. BSDI
  2251. # Substitute "LIBS= -lnewcurses -ltermcap" if desired.
  2252. bsdi:
  2253.     @echo 'Making C-Kermit $(CKVER) for BSDI ...'
  2254.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2255.     "CFLAGS= -DBSD44 -DSETREUID -DSW_ACC_ID -DBIGBUFOK -DFIXCRTSCTS \
  2256.     -DTCPSOCKET -DCK_CURSES -DFNFLOAT $(KFLAGS) -O" \
  2257.     "LIBS= -lcurses -ltermcap -lm"
  2258.  
  2259. #Berkeley Software Design Inc. BSDI - has higher serial speeds than 1.x.
  2260. bsdi2:
  2261.     $(MAKE) "MAKE=$(MAKE)" bsdi KTARGET=$${KTARGET:-$(@)} \
  2262.     "KFLAGS=-DBSDI2 $(KFLAGS)"
  2263.  
  2264. bsdi3:
  2265.     $(MAKE) "MAKE=$(MAKE)" bsdi KTARGET=$${KTARGET:-$(@)} \
  2266.     "KFLAGS=-DBSDI2 -DBSDI3 $(KFLAGS)"
  2267.  
  2268. bsdi4:
  2269.     $(MAKE) "MAKE=$(MAKE)" bsdi KTARGET=$${KTARGET:-$(@)} \
  2270.     "KFLAGS=-DBSDI2 -DBSDI3 -DBSDI4 -DTPUTSFNTYPE=void -DTPUTSISVOID \
  2271.     -m486 $(KFLAGS)"
  2272.  
  2273. # (old name for the above)
  2274. bsdiposix:
  2275.     $(MAKE) "MAKE=$(MAKE)" bsdi
  2276.  
  2277.  
  2278. #Build a BSDI 4.x binary that also runs under FreeBSD (Terry Kennedy).
  2279. #But watch out for details like serial-port locking.
  2280. bsdix:
  2281.     $(MAKE) "MAKE=$(MAKE)" bsdi KTARGET=$${KTARGET:-$(@)} \
  2282.     "KFLAGS=-DBSDI2 -DBSDI3 -DBSDI4 -DTPUTSFNTYPE=void -DTPUTSISVOID \
  2283.     -m486 $(KFLAGS)" "LNKFLAGS=-static -Wl,-m,i386bsdi -Wl,-e,_start"
  2284.  
  2285. #Pyramid 9XXX (e.g. 9845) or MIServer T series, OSx 4.4b thru 5.1
  2286. pyramid:
  2287.     @echo Making C-Kermit $(CKVER) for Pyramid Dual Port OSx
  2288.     ucb $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2289.     "CFLAGS= -DBSD43 -DTCPSOCKET -DPYRAMID -O $(KFLAGS)" "LNKFLAGS = -s"
  2290.  
  2291. #Pyramid Dual Port OSx using HoneyDanBer UUCP, curses and TCP
  2292. pyramid-hdb:
  2293.     @echo Making C-Kermit $(CKVER) for Pyramid Dual Port OSx
  2294.     ucb $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2295.     "CFLAGS= -DBSD43 -DTCPSOCKET -DHBDUUCP -DCK_CURSES -O $(KFLAGS)" \
  2296.     "LNKFLAGS = -s" "LIBS = -lcurses -ltermcap"
  2297.  
  2298. #Pyramid DC/OSx (UNIX System V R4).
  2299. #Has <sys/termiox.h>, regular Berkeley sockets library, i.e. in.h and inet.h
  2300. #are not misplaced in sys (rather than netinet and arpa, respectively).
  2301. #Uses ANSI C.
  2302. #NOTE: Remove -O and Olimit:2500 from CFLAGS if TELNET connections do not work.
  2303. pyrdcosx:
  2304.     @echo 'Making C-Kermit $(CKVER) for Pyramid DC/OSx...'
  2305.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2306.     "CFLAGS = -Xa -O -DSVR4 -DDIRENT -DHDBUUCP -DSELECT -DNOGETUSERSHELL \
  2307.     -DCK_CURSES -DSTERMIOX -DTCPSOCKET -DPYRAMID -K Olimit:3100 \
  2308.     -DNO_DNS_SRV $(KFLAGS)" "LIBS= -lcurses -lsocket -lnsl" "LNKFLAGS = -s"
  2309.  
  2310. #IBM's AIX 3.0 on IBM 370 mainframe, tested on AIX F44 thru F50.
  2311. aix370:
  2312.     @echo Making C-Kermit $(CKVER) for IBM System/370 AIX 3.0...
  2313.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2314.     "CFLAGS= -DAIX370 -DTCPSOCKET -DLCKDIR -DDIRENT $(KFLAGS)" \
  2315.     "LIBS = -lbsd"
  2316.  
  2317. #IBM's AIX/ESA 2.1 (OSF/1) on IBM mainframe
  2318. aixesa:
  2319.     @echo Making C-Kermit $(CKVER) for IBM AIX/ESA...
  2320.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2321.     "CFLAGS= -DAIXESA -DTCPSOCKET $(KFLAGS) -O"
  2322.  
  2323. #IBM PS/2 with AIX 1.0 thru 1.3.
  2324. #  Reports indicate that -O switch must be omitted.
  2325. #  It is also possible that "make bsd" will work (reports welcome).
  2326. #  One report said "make LIBS=-lbsd bsd" did the trick.
  2327. #  NOTLOG is to get around a 'tlog' symbol defined in one of the headers.
  2328. ps2aix:
  2329.     @echo 'Making C-Kermit $(CKVER) for IBM AIX 1.x PS/2...'
  2330.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  2331.     "CFLAGS = -DATTSV -DNOREALPATH -DPS2AIX10 -DSIG_V \
  2332.     -DNOUNICODE -DNOTLOG -DNOLEARN $(KFLAGS) -i" \
  2333.     "LNKFLAGS = -i"
  2334.  
  2335. ps2aixnetc:
  2336.     @echo 'Making C-Kermit $(CKVER) for IBM AIX 1.x PS/2...'
  2337.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  2338.     "CFLAGS = -DATTSV -DNOREALPATH -DPS2AIX10 -DTCPSOCKET -DCK_CURSES \
  2339.     -DSIG_V -DNOUNICODE -DNOTLOG -DNOLEARN $(KFLAGS) -i" \
  2340.     "LIBS = -lcurses" "LNKFLAGS = -i"
  2341.  
  2342. ps2aix3:
  2343.     $(MAKE) ps2aix KTARGET=$${KTARGET:-$(@)}
  2344.  
  2345. #IBM RT PC with AIX 2.2.1, valid as of C-Kermit 8.0.
  2346. #NOTLOG because of a conflict in <sys/termio.h>.
  2347. #This one has unique and strange lockfiles.
  2348. #  -O removed on purpose (8.0).
  2349. #  In case of "compiler error: symbol table full", increase the -Nn number.
  2350. #  In case of "compiler error: Constant pool too big", boost the -Np number.
  2351. #  Add -DNOPUTENV if putenv() causes trouble.
  2352. #  Put -DNOIKSD back if IKSD-related problems occur.
  2353. rtaix:
  2354.     @echo 'Making C-Kermit $(CKVER) for IBM RT PC, AIX 2.2.1...'
  2355.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  2356.     "CFLAGS = -DATTSV -DRTAIX -DHDBUUCP -DDIRENT -DNOTLOG -DTCPSOCKET \
  2357.     -DNOGETUSERSHELL -DCLSOPN -DNOREALPATH -DNOUNICODE -DBSD_INCLUDES \
  2358.     -DUSE_LSTAT -DFNFLOAT -Nn2500 -Np1000 -Wq,-SJ2 -a -w $(KFLAGS)" \
  2359.     "LIBS = -lm $(LIBS)" "LNKFLAGS = -s"
  2360.  
  2361. #IBM RT PC with AIX 2.2.1 + curses
  2362. rtaixc:
  2363.     $(MAKE) rtaix "KFLAGS=-DCK_CURSES" "LIBS=-lcurses"
  2364.  
  2365. #IBM RT PC with AIX (ACIS) 2.2.1 (BSD 4.3)
  2366. # Add -O, -DDYNAMIC, -s, etc, if they work.
  2367. rtacis:
  2368.     @echo Making C-Kermit $(CKVER) for RT PC with ACIS 2.2.1 = BSD 4.3...
  2369.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  2370.     "CFLAGS= -DBSD4 -DTCPSOCKET -DNOREALPATH -DNOIKSD -DNOPUTENV \
  2371.     $(KFLAGS) -U__STDC__" "LNKFLAGS = -s"
  2372.  
  2373. #IBM AIX 3.0, 3.1, or 3.2 for RISC System/6000.
  2374. rs6000:
  2375.     @echo Making C-Kermit $(CKVER) for IBM AIX 3.0 or 3.1, RS/6000...
  2376.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2377.     "CFLAGS= -DAIXRS -DTCPSOCKET -DSVR3 -DDIRENT -DCK_ANSIC \
  2378.     -DCK_POLL -DCLSOPN -DSELECT_H -DNOTTYLOCK -O $(KFLAGS)" \
  2379.     "LNKFLAGS = -s"
  2380.  
  2381. #IBM AIX 3.0, 3.1, or 3.2 for RISC System/6000, with curses.
  2382. rs6000c:
  2383.     @echo Making C-Kermit $(CKVER) for IBM AIX 3.0 or 3.1, RS/6000...
  2384.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2385.     "CFLAGS= -DAIXRS -DTCPSOCKET -DSVR3 -DDIRENT -DCK_ANSIC \
  2386.     -DCK_POLL -DCLSOPN -DCK_CURSES -DSELECT_H -DNOTTYLOCK -DNOREALPATH \
  2387.     -O $(KFLAGS)" "LIBS= -lcurses -ltermcap" "LNKFLAGS = -s"
  2388.  
  2389. aix30:
  2390.     $(MAKE) rs6000 KTARGET=$${KTARGET:-$(@)}
  2391.  
  2392. aix31:
  2393.     $(MAKE) rs6000 KTARGET=$${KTARGET:-$(@)}
  2394.  
  2395. #IBM AIX 3.2 for RISC System/6000.
  2396. #In case of "subprogram too complex" warnings, add "-qmaxmem=16000" to CFLAGS.
  2397. rs6aix32:
  2398.     @echo Making C-Kermit $(CKVER) for IBM AIX 3.2, RS/6000...
  2399.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2400.     "CFLAGS= -DAIXRS -DTCPSOCKET -DSVR4 -DDIRENT -DCK_ANSIC -DNOREALPATH \
  2401.     -DSELECT_H -DCLSOPN -DNOTTYLOCK -O $(KFLAGS)" "LNKFLAGS = -s"
  2402.  
  2403. #IBM AIX 3.2 for RISC System/6000.
  2404. rs6aix32c:
  2405.     @echo Making C-Kermit $(CKVER) for IBM AIX 3.2, RS/6000, TCP+curses...
  2406.     @echo In case of Subprogram Too Complex warnings,
  2407.     @echo add -qmaxmem=16000 to CFLAGS.
  2408.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2409.     "CFLAGS= -DAIXRS -DTCPSOCKET -DSVR4 -DDIRENT -DCK_ANSIC -DNOREALPATH \
  2410.     -DCLSOPN -DCK_CURSES -DSELECT_H -DNOTTYLOCK -O $(KFLAGS)" \
  2411.     "LNKFLAGS = -s" "LIBS=-lcurses"
  2412.  
  2413. aix32:
  2414.     $(MAKE) rs6aix32c KTARGET=$${KTARGET:-$(@)}
  2415.  
  2416. #IBM AIX 4.1, 4.1.x on RISC System/6000 or Power Series.
  2417. #Generates common binary for all platforms if using xlc (IBM C compiler).
  2418. #When using gcc, add -mcpu=common to generate common binary.
  2419. #Note that this one needs CK_NEWTERM.
  2420. # Add -bbigtoc in case ld fails with TOC overflow.
  2421. aix41:
  2422.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.1.1 RS/6000 or PowerPC...
  2423.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2424.     "CFLAGS= -DAIXRS -DAIX41 -DSVR4 -DSTERMIOX -DTCPSOCKET -DDIRENT \
  2425.     -DCK_ANSIC -DCLSOPN -DCK_CURSES -DCK_NEWTERM -DSELECT -DSELECT_H \
  2426.     -DNOGETUSERSHELL -qmaxmem=16000 -O $(KFLAGS)" \
  2427.     "LNKFLAGS = -s" "LIBS=-lcurses"
  2428.  
  2429. #Ditto but with gcc.
  2430. #Remove "CC=gcc CC2=gcc" if you have gcc installed as cc.
  2431. aix41g:
  2432.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.1.1 RS/6000 or PowerPC...
  2433.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC=gcc" "CC2=gcc" \
  2434.     "CFLAGS= -DAIXRS -DAIX41 -DSVR4 -DSTERMIOX -DTCPSOCKET -DDIRENT \
  2435.     -DCK_ANSIC -DCLSOPN -DCK_CURSES -DCK_NEWTERM -DSELECT -DSELECT_H \
  2436.     -DNOGETUSERSHELL -O $(KFLAGS)" \
  2437.     "LNKFLAGS = -s -Xlinker -bbigtoc" "LIBS=-lcurses"
  2438.  
  2439. # Add -bbigtoc in case ld fails with TOC overflow.
  2440. aix41+krb5+krb4:
  2441.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.1.1 RS/6000 or PowerPC...
  2442.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} \
  2443.     "CFLAGS= -DAIXRS -DAIX41 -DSVR4 -DSTERMIOX -DTCPSOCKET -DDIRENT \
  2444.     -DCK_ANSIC -DCLSOPN -DCK_CURSES -DCK_NEWTERM -DSELECT -DSELECT_H \
  2445.     -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 -DKRB4 -DKRB524 \
  2446.     -DCK_ENCRYPTION -DCK_DES $(K5INC) $(K5INC)/krb5  \
  2447.     -DNOGETUSERSHELL -qmaxmem=16000 -O $(KFLAGS)" \
  2448.     "LNKFLAGS = -s" \
  2449.     "LIBS = $(K5LIB) -lcurses -lkrb4 -ldes425 -lkrb5 \
  2450.     -lcom_err -lk5crypto -lgssapi_krb5"
  2451.  
  2452. #Old name for "aix41".
  2453. rs6aix41c:
  2454.     $(MAKE) aix41 KTARGET=$${KTARGET:-$(@)}
  2455.  
  2456. #IBM AIX 4.1, 4.1.x, or 4.2 on RISC System/6000 or Power Series,
  2457. # with X.25 support
  2458. #Generates common binary for all platforms if using xlc (IBM C compiler).
  2459. #When using gcc, add -mcpu=common to generate common binary.
  2460. # Add -bbigtoc in case ld fails with TOC overflow.
  2461. aix41x25:
  2462.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.1.1 RS/6000 or PowerPC...
  2463.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2464.     "CFLAGS= -DAIXRS -DAIX41 -DSVR4 -DSTERMIOX -DTCPSOCKET -DDIRENT \
  2465.     -DCK_ANSIC -DCLSOPN -DCK_CURSES -DCK_NEWTERM -DSELECT -DSELECT_H \
  2466.     -DIBMX25 -DDEBUG -DNOGETUSERSHELL -qmaxmem=16000 -g $(KFLAGS)" \
  2467.     "LNKFLAGS = -g -bI:/lib/pse.exp" "LIBS=-lcurses -lodm -lcfg"
  2468.     -@echo "]0;kermit done\c"
  2469.  
  2470. #As above but without -g in LNKFLAGS.
  2471. # Add -bbigtoc in case ld fails with TOC overflow.
  2472. aix41x25o:
  2473.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.1.1 RS/6000 or PowerPC...
  2474.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2475.     "CFLAGS= -DAIXRS -DAIX41 -DSVR4 -DSTERMIOX -DTCPSOCKET -DDIRENT \
  2476.     -DCK_ANSIC -DCLSOPN -DCK_CURSES -DCK_NEWTERM -DSELECT -DSELECT_H \
  2477.     -DIBMX25 -DNODEBUG -DNOGETUSERSHELL -qmaxmem=16000 $(KFLAGS)" \
  2478.     "LNKFLAGS = -bI:/lib/pse.exp" "LIBS=-lcurses -lodm -lcfg"
  2479.     -@echo "]0;kermit done\c"
  2480.  
  2481. #AIX 4.2 -- Must have CK_NEWTERM or echoing is lost after curses.
  2482. # Add -bbigtoc in case ld fails with TOC overflow.
  2483. aix42:
  2484.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.2 or higher...
  2485.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2486.     "CFLAGS= -DAIXRS -DAIX41 -DAIX42 -DSVR4 -DSTERMIOX -DTCPSOCKET \
  2487.     -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DCK_NEWTERM -DFNFLOAT \
  2488.     -DSELECT -DSELECT_H -DNOGETUSERSHELL -qmaxmem=16000 -O $(KFLAGS)" \
  2489.     "LNKFLAGS = -s" "LIBS=-lcurses -lm"
  2490.  
  2491. #AIX 4.3 -- Must NOT have CK_NEWTERM or else C-Kermit hangs after curses.
  2492. # -bbigtoc needed on some systems but not others to avoid TOC overflow.
  2493. # "man ld" says -bbigtoc makes program run slower.
  2494. aix43:
  2495.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.3 or higher...
  2496.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2497.     "CFLAGS= -DAIXRS -DAIX41 -DAIX43 -DSVR4 -DSTERMIOX -DTCPSOCKET \
  2498.     -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DSELECT -DSELECT_H \
  2499.     -DFNFLOAT -DNOGETUSERSHELL -qmaxmem=16000 -bbigtoc -O $(KFLAGS)" \
  2500.     "LNKFLAGS = -s" "LIBS=-lcurses -lm"
  2501.  
  2502. #AIX 4.3 with IBM X.25.
  2503. aix43x25:
  2504.     @echo "Making C-Kermit $(CKVER) for IBM AIX 4.3 with X.25..."
  2505.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2506.     "CFLAGS= -DAIXRS -DAIX41 -DAIX43 -DSVR4 -DSTERMIOX -DTCPSOCKET \
  2507.     -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DSELECT -DSELECT_H \
  2508.     -DFNFLOAT -DNOGETUSERSHELL -DIBMX25 \
  2509.     -qmaxmem=16000 -bbigtoc -O $(KFLAGS)" \
  2510.     "LNKFLAGS = -bI:/lib/pse.exp" "LIBS=-lcurses -lodm -lcfg -lm"
  2511.  
  2512. #AIX 4.3 -- Must NOT have CK_NEWTERM or else C-Kermit hangs after curses.
  2513. # -mminimal-toc needed on some systems but not others to avoid TOC overflow.
  2514. # "man ld" says -bbigtoc makes program run slower.
  2515. aix43g:
  2516.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.3 gcc...
  2517.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  2518.     "CFLAGS= -mminimal-toc -g -O -DAIXRS -DAIX41 -DAIX43 -DSVR4 \
  2519.     -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DSELECT -DSELECT_H \
  2520.     -DSTERMIOX -DTCPSOCKET -DFNFLOAT -DNOGETUSERSHELL $(KFLAGS)" \
  2521.     "LIBS=-lcurses -lm"
  2522.  
  2523. aix43gcc:
  2524.     $(MAKE) aix43g
  2525.  
  2526. # None of the following aix43gcc attempts work on a gcc-only AIX 4.3.3 box.
  2527. # It just plain can't find the math routines (fmod, pow, exp, sqrt, log10,...)
  2528. # Which is odd because nm /usr/lib/libC.a finds them...
  2529.  
  2530. #in case aix43gcc can't find its math library...
  2531. aix43gccx:
  2532.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.3 gcc...
  2533.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  2534.     "CFLAGS= -mminimal-toc -g -O -DAIXRS -DAIX41 -DAIX43 -DSVR4 \
  2535.     -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DSELECT -DSELECT_H \
  2536.     -DSTERMIOX -DTCPSOCKET -DFNFLOAT -DNOGETUSERSHELL $(KFLAGS)" \
  2537.     "LIBS= -L/usr/local/lib/gcc-lib/powerpc-ibm-aix4.3.1.0/2.95.2 \
  2538.     -lcurses -bloadmap -bnoquiet"
  2539.  
  2540. #in case aix43gccx can't find its math library...
  2541. aix43gccy:
  2542.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.3 gcc...
  2543.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  2544.     "CFLAGS= -mminimal-toc -g -O -DAIXRS -DAIX41 -DAIX43 -DSVR4 \
  2545.     -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DSELECT -DSELECT_H \
  2546.     -DSTERMIOX -DTCPSOCKET -DFNFLOAT -DNOGETUSERSHELL $(KFLAGS)" \
  2547.     "LIBS= -lcurses -bloadmap -bnoquiet"
  2548.  
  2549. #in case aix43gccx can't find its math library...
  2550. aix43gccz:
  2551.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.3 gcc...
  2552.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  2553.     "CFLAGS= -mminimal-toc -g -O -DAIXRS -DAIX41 -DAIX43 -DSVR4 \
  2554.     -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DSELECT -DSELECT_H \
  2555.     -DSTERMIOX -DTCPSOCKET -DFNFLOAT -DNOGETUSERSHELL $(KFLAGS)" \
  2556.     "LIBS= -L. -lcurses -bloadmap -bnoquiet"
  2557.  
  2558.  
  2559. #AIX 4.3 with MIT Kerberos 5 and Kerberos 4 compatibility mode
  2560. # Must NOT have CK_NEWTERM or else C-Kermit hangs after curses.
  2561. # -mminimal-toc needed on some systems but not others to avoid TOC overflow.
  2562. # "man ld" says -bbigtoc makes program run slower.
  2563. aix43gcc+krb5+krb4:
  2564.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.3 or higher w/Kerberos...
  2565.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  2566.     "CFLAGS= -mminimal-toc -g -O -DAIXRS -DAIX41 -DAIX43 -DSVR4 \
  2567.     -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DSELECT -DSELECT_H \
  2568.     -DSTERMIOX -DTCPSOCKET -DFNFLOAT -DNOGETUSERSHELL \
  2569.     -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 -DKRB4 -DKRB524 \
  2570.     -DCK_ENCRYPTION -DCK_DES -funsigned-char $(K5INC) $(K5INC)/krb5 \
  2571.     $(KFLAGS)" \
  2572.     "LIBS=$(K5LIB) -lcurses -lm -lkrb4 -ldes425 -lkrb5 \
  2573.     -lcom_err -lk5crypto -lcrypt -lgssapi_krb5"
  2574.  
  2575. #AIX 4.3 with MIT Kerberos 5, Kerberos 4 compatibility mode and OpenSSL
  2576. # Must NOT have CK_NEWTERM or else C-Kermit hangs after curses.
  2577. # -mminimal-toc needed on some systems but not others to avoid TOC overflow.
  2578. # "man ld" says -bbigtoc makes program run slower.
  2579. aix43gcc+krb5+krb4+openssl:
  2580.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.3 or higher w/Kerberos...
  2581.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  2582.     "CFLAGS= -mminimal-toc -g -O -DAIXRS -DAIX41 -DAIX43 -DSVR4 \
  2583.     -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DSELECT -DSELECT_H \
  2584.     -DSTERMIOX -DTCPSOCKET -DFNFLOAT -DNOGETUSERSHELL \
  2585.     -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 -DKRB4 -DKRB524 \
  2586.     -DCK_ENCRYPTION -DCK_DES -DCK_CAST -DLIBDES -DCK_SSL \
  2587.     -funsigned-char $(K5INC) $(K5INC)/krb5 $(SSLINC) $(KFLAGS)" \
  2588.     "LIBS=$(K5LIB) $(SSLLIB) -lssl -lcrypto \
  2589.     -lcurses -lm -lkrb4 -ldes425 -lkrb5 -lcom_err -lk5crypto -lcrypt \
  2590.     -lgssapi_krb5"
  2591.  
  2592. aix44:
  2593.     $(MAKE) aix42 "KFLAGS=-DAIX44 -qmaxmem=20000 $(KFLAGS)" \
  2594.     KTARGET=$${KTARGET:-$(@)}
  2595.  
  2596. aix45:
  2597.     $(MAKE) aix42 "KFLAGS=-DAIX45 -qmaxmem=20000 $(KFLAGS)" \
  2598.     KTARGET=$${KTARGET:-$(@)}
  2599.  
  2600. aix50:
  2601.     $(MAKE) aix42 "KFLAGS=-DAIX50 -qmaxmem=20000 $(KFLAGS)" \
  2602.     KTARGET=$${KTARGET:-$(@)}
  2603.  
  2604. aix51:
  2605.     $(MAKE) aix42 "KFLAGS=-DAIX51 -qmaxmem=20000 $(KFLAGS)" \
  2606.     KTARGET=$${KTARGET:-$(@)}
  2607.  
  2608. #Bull DPX/2 with BOS/X, like AIX/RS6000
  2609. bulldpx2:
  2610.     @echo Making C-Kermit $(CKVER) for Bull DPX/2 with BOS/X...
  2611.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  2612.     "CFLAGS= -DSVR3 -DDIRENT -DCK_ANSIC -DCKTYP_H=<sys/types.h> \
  2613.     -DCK_POLL -DNOGETUSERSHELL -DCLSOPN -DNOLEARN -O $(KFLAGS)" \
  2614.     "LNKFLAGS = -s"
  2615.  
  2616. #Sun UNIX 3.5 with gcc 2.3.3.
  2617. sunos3gcc:
  2618.     @echo Making C-Kermit $(CKVER) for Sun UNIX 3.5 and gcc...
  2619.     $(MAKE) xermit CC=gcc CC2=gcc KTARGET=$${KTARGET:-$(@)} \
  2620.     CFLAGS="-g -O -DBSD4 -DTCPSOCKET $(KFLAGS)"
  2621.  
  2622. #SunOS version 4.0, BSD environment, has saved original euid feature.
  2623. # Add "CC=/usr/ucb/cc CC2=/usr/ucb/cc" if necessary.
  2624. # Note: Including Unicode crashes the assembler in ckcuni.c.
  2625. sunos4:
  2626.     @echo Making C-Kermit $(CKVER) for SunOS 4.0, BSD environment...
  2627.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2628.     "CFLAGS= -O -DSUNOS4 -DFNFLOAT -DNOUNICODE $(KFLAGS)" \
  2629.     "LIBS=-lm"
  2630.  
  2631. #As above, but with SunLink X.25 support
  2632. sunos4x25:
  2633.     @echo SunLink X.25 support
  2634.     $(MAKE) "MAKE=$(MAKE)" sunos4 KTARGET=$${KTARGET:-$(@)} \
  2635.     "KFLAGS=$(KFLAGS) -DFNFLOAT -DSUNX25" \
  2636.     "LIBS=-lm"
  2637.  
  2638. #SUN OS version 4.1 - 4.1.3, BSD environment, has saved original euid feature.
  2639. #Uses Honey DanBer UUCP.  Requires presence of /usr/spool/locks directory.
  2640. # /var/spool/ should be a symbolic link to  /usr/spool/.
  2641. # ... or 'make xermit "CC= /usr/ucb/cc " \'
  2642. # Note: "xermit" means use the select() version of the CONNECT module.
  2643. sunos41:
  2644.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 / BSD...
  2645.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2646.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNOUNICODE $(KFLAGS)" \
  2647.     "LIBS= $(LIBS) -lresolv -lm"
  2648.  
  2649. #As above, but compiled with gcc.  Gives 24-32K size reduction
  2650. #with gcc 2.1 or 2.2.2.  CAUTION: make sure "fixincludes" has been run on
  2651. #the include files, so gcc's are in sync with the regular Sun ones!
  2652. #This includes the curses library for fullscreen file transfer display.
  2653. #NDGPWNAM needed for GCC 2.5.6, not needed for 2.4.0, but it's uncertain
  2654. #whether it will do any harm for 2.4.0 compilation -- if so, remove it.
  2655. sunos41gcc:
  2656.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 with gcc and curses...
  2657.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
  2658.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT \
  2659.     -funsigned-char $(KFLAGS)" "LIBS= -lcurses -ltermcap -lresolv -lm"
  2660.  
  2661. # As above, but without -funsigned-char so I can see the warnings that
  2662. # everybody else will get when they use ANSI compilers that don't have this
  2663. # option (gsc = gcc signed char).
  2664. sunos41gsc:
  2665.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 with gcc and curses...
  2666.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
  2667.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT \
  2668.     $(KFLAGS)" "LIBS= -lcurses -ltermcap -lresolv -lm"
  2669.  
  2670. #As above but with ckucon.c rather than ckucns.c (for testing only)
  2671. sunos41gccfork:
  2672.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 with gcc and curses...
  2673.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
  2674.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT \
  2675.     -DNOLEARN -funsigned-char $(KFLAGS)" \
  2676.     "LIBS= -lcurses -ltermcap -lresolv -lm"
  2677.  
  2678. #as above but configured for Kerberos IV
  2679. sunos41gcc+krb4:
  2680.     @echo Making C-Kermit $(CKVER) for SunOS 4.1, gcc, curses, krb4...
  2681.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
  2682.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT \
  2683.     -DTCPSOCKET -DCK_AUTHENTICATION -DCK_KERBEROS  -DKRB4 \
  2684.     -DCK_ENCRYPTION -DCK_DES -DCK_CAST -DBIGBUFOK -funsigned-char \
  2685.     $(K4INC) $(KFLAGS)" \
  2686.     "LIBS= $(K4LIB) -lcurses -ltermcap -lresolv -lm -lkrb -ldes"
  2687.  
  2688. #as above but configured for SSL/TLS
  2689. sunos41gcc+openssl:
  2690.     @echo Making C-Kermit $(CKVER) for SunOS 4.1, gcc, curses, ssl...
  2691.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
  2692.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT \
  2693.     -DCK_AUTHENTICATION -funsigned-char \
  2694.     -DCK_SSL -DTCPSOCKET -DBIGBUFOK $(SSLINC) $(KFLAGS)" \
  2695.     "LIBS= $(SSLLIB) -lcurses -ltermcap -lresolv -lm -lssl -lcrypto"
  2696.  
  2697. #as above but configured for Kerberos IV and SSL/TLS
  2698. sunos41gcc+krb4+openssl:
  2699.     @echo Making C-Kermit $(CKVER) for SunOS 4.1, gcc, curses, krb4...
  2700.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
  2701.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT \
  2702.     -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB4 -DCK_ENCRYPTION -DCK_DES \
  2703.     -DCK_CAST -DCK_SSL -DLIBDES -DTCPSOCKET -DBIGBUFOK -funsigned-char \
  2704.     $(K4INC) $(SSLINC) $(KFLAGS)" \
  2705.     "LIBS= $(K4LIB) $(SSLLIB) \
  2706.     -lcurses -ltermcap -lresolv -lm -lkrb -lssl -lcrypto"
  2707.  
  2708. #as above but configured for Kerberos IV and ZLIB enabled SSL/TLS
  2709. sunos41gcc+krb4+openssl+zlib:
  2710.     @echo Making C-Kermit $(CKVER) for SunOS 4.1, gcc, curses, krb4...
  2711.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
  2712.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT \
  2713.     -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB4 -DCK_ENCRYPTION -DCK_DES \
  2714.     -DCK_CAST -DCK_SSL -DLIBDES -DTCPSOCKET -DBIGBUFOK -funsigned-char \
  2715.     -DZLIB $(K4INC) $(SSLINC) \
  2716.     $(KFLAGS)" \
  2717.     "LIBS= $(K4LIB) $(SSLLIB) \
  2718.     -lcurses -ltermcap -lresolv -lm -lkrb -lssl -lcrypto -lz"
  2719.  
  2720. #as above but configured for Kerberos IV and SRP and ZLIB enabled SSL/TLS
  2721. sunos41gcc+krb4+srp+openssl+zlib:
  2722.     @echo "C-Kermit $(CKVER) SunOS 4.1: gcc,curses,krb4,srp,ssl,zlib..."
  2723.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
  2724.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT \
  2725.     -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB4 -DCK_ENCRYPTION -DCK_DES \
  2726.     -DCK_CAST -DCK_SSL -DLIBDES -DTCPSOCKET -DBIGBUFOK -funsigned-char \
  2727.     -DZLIB -DCK_SRP $(K4INC) $(SRPINC) $(SSLINC) $(KFLAGS)" \
  2728.     "LIBS= $(K4LIB) $(SRPLIB) $(SSLLIB) \
  2729.     -lcurses -ltermcap -lresolv -lm -lkrb -lkrypto \
  2730.     -lsrp -lssl -lcrypto -lz"
  2731.  
  2732. #as above but configured for Kerberos IV and SRP and ZLIB enabled SSL/TLS
  2733. sunos41gcc+srp+openssl+zlib:
  2734.     @echo "C-Kermit $(CKVER) SunOS 4.1: gcc,curses,srp,ssl,zlib..."
  2735.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
  2736.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT \
  2737.     -DCK_AUTHENTICATION -DCK_ENCRYPTION -DCK_DES \
  2738.     -DCK_CAST -DCK_SSL -DLIBDES -DTCPSOCKET -DBIGBUFOK -funsigned-char \
  2739.     -DZLIB -DCK_SRP $(SRPINC) $(SSLINC) \
  2740.     $(KFLAGS)" \
  2741.     "LIBS= $(SRPLIB) $(SSLLIB) \
  2742.     -lcurses -ltermcap -lresolv -lm -lkrypto -lsrp -lssl -lcrypto -lz "
  2743.  
  2744. #SUNOS 4.1 as sunos41 above, but also with curses support
  2745. sunos41c:
  2746.     @echo Curses support
  2747.     $(MAKE) "MAKE=$(MAKE)" sunos41 KTARGET=$${KTARGET:-$(@)} \
  2748.     "KFLAGS=$(KFLAGS) -DCK_CURSES -DFNFLOAT " \
  2749.     "LIBS= -lcurses -ltermcap"
  2750.  
  2751. #As SunOS 4.1.x, gcc, configured as Internet Kermit Server.
  2752. # . NOLOCAL removes capability to make connections
  2753. # . TNCODE allows server-side Telnet negotiation.
  2754. # . used to include -lpwent, why?
  2755. # . used to include -L/usr/local/lib -lm, why?
  2756. sunos41giks:
  2757.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 with gcc for IKS...
  2758.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
  2759.     "CFLAGS= -O -DSUNOS41 -DNDGPWNAM -DFNFLOAT \
  2760.     -DNOLOCAL -DTCPSOCKET -DTNCODE -DNOPUSH $(KFLAGS)" \
  2761.     "LIBS= -lm -lresolv"
  2762.  
  2763. #SUNOS 4.1 with SunLink X.25 support
  2764. sunos41x25:
  2765.     @echo SunLink X.25 support
  2766.     $(MAKE) "MAKE=$(MAKE)" wermit KTARGET=$${KTARGET:-$(@)} \
  2767.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNOUNICODE -DFNFLOAT -DSUNX25 \
  2768.     -DNOLEARN $(KFLAGS)" "LIBS= $(LIBS) -lresolv -lm"
  2769.  
  2770. #SUNOS 4.1 with SunLink X.25 support and curses
  2771. sunos41x25c:
  2772.     @echo SunLink X.25 support + curses
  2773.     $(MAKE) "MAKE=$(MAKE)" wermit KTARGET=$${KTARGET:-$(@)} \
  2774.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNOUNICODE -DFNFLOAT -DSUNX25 \
  2775.     -DCK_CURSES -DNOLEARN $(KFLAGS)" \
  2776.     "LIBS= $(LIBS) -lcurses -ltermcap -lresolv -lm"
  2777.  
  2778. #SUN with Solaris 2.0 = SunOS 5.0.
  2779. #Mostly the same as System V R4.  Don't use this with later Solaris versions.
  2780. solaris20:
  2781.     @echo 'Making C-Kermit $(CKVER) for Sun with Solaris 2.0 and curses...'
  2782.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2783.     "CFLAGS = -O -DSVR4 -DSOLARIS -DDIRENT -DHDBUUCP -DSTERMIOX \
  2784.     -DTCPSOCKET -DCK_CURSES -DFNFLOAT -DCK_POLL $(KFLAGS)" \
  2785.     "LIBS= -lsocket -lnsl -lcurses -ltermlib -lm" "LNKFLAGS = -s"
  2786.  
  2787. #SUN with Solaris 2.0.
  2788. #As above, but built with the gcc compiler from the Cygnus CD-ROM.
  2789. solaris20g:
  2790.     @echo 'Making C-Kermit $(CKVER) for Sun Solaris 2.0, gcc, and curses..'
  2791.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2792.     "CFLAGS = -O -DSVR4 -DSOLARIS -DDIRENT -DHDBUUCP -DSTERMIOX \
  2793.     -DTCPSOCKET -DCK_CURSES -DCK_POLL -DFNFLOAT $(KFLAGS)" \
  2794.     "LIBS= -lsocket -lnsl -lcurses -ltermlib -lm" "LNKFLAGS = -s" \
  2795.     CC=/opt/cygnus-sol2-1.1/bin/gcc CC2=/opt/cygnus-sol2-1.1/bin/gcc
  2796.  
  2797. #SunOS 5.1 = Solaris 2.1.
  2798. #NOTE: A C compiler is no longer bundled with SunOS 5.1, so to compile C
  2799. #programs, you might have to change your PATH to include the directory
  2800. #/usr/ccs/bin AFTER the directory containing the compiler.  SunPRO C is
  2801. #installed by default in /opt/SUNWspro/bin.  So a sample PATH might be:
  2802. #
  2803. # /usr/local/bin:/usr/bin:/opt/SUNWspro/bin:/usr/ccs/bin:\
  2804. # /usr/ucb:/usr/sbin:/sbin:.
  2805. #
  2806. # or:
  2807. #
  2808. # /usr/openwin/bin:/export/home/SUNWspro/bin:/usr/ccs/bin:/usr/sbin:/usr/bin.
  2809. #
  2810. #NOTE 2: Compilation with the Apogee C compiler (apcc) might not work,
  2811. #because it refuses to allow "-Usun".  Reportedly, newer releases of apcc
  2812. #(such as 1.2.17) work OK, use: "make -e sunos51 CC=apcc CC2=apcc".
  2813. solaris21:
  2814.     @echo 'Making C-Kermit $(CKVER) for SunOS 5.x....'
  2815.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2816.     "CFLAGS = -O -Usun -DSVR4 -DSOLARIS -DDIRENT -DHDBUUCP -DFNFLOAT \
  2817.     -DSELECT -DNODEBUG -DSTERMIOX $(KFLAGS)" "LIBS = -lm" "LNKFLAGS = -s"
  2818.  
  2819. #C-Kermit for Solaris 2.0-2.4 compiled with gcc, includes curses and TCP/IP.
  2820. #Change -O2 to -O if -O2 gives trouble.
  2821. #Remove -Usun if it causes trouble.
  2822. #Your PATH should start with something like:
  2823. #  /usr/local/gnu/bin:/usr/ccs/bin:
  2824. #Produces a huge executable -- strip with /usr/ccs/bin/strip (not Gnu strip).
  2825. #Also don't add "LNKFLAGS = -s" -- strip manually instead.
  2826. #Also note: this can NOT be linked statically - Sun makes it impossible.
  2827. #And for Solaris 2.4, you might have to replace:
  2828. # /usr/local/lib/gcc-lib/i486-sun-solaris2/2.4.5/include/sys/stat.h
  2829. #with /usr/include/sys/stat.h.
  2830. solaris2xg:
  2831.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.x with GNU cc...'
  2832.     @echo 'Please read the comments that accompany the solaris2xg target.'
  2833.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  2834.     "CFLAGS = -g -O -Usun -DSVR4 -DSOLARIS -DSTERMIOX -DSELECT -DFNFLOAT \
  2835.     -DCK_CURSES -DCK_NEWTERM -DDIRENT -DHDBUUCP -DTCPSOCKET $(KFLAGS)" \
  2836.     "LIBS= -ltermlib -lsocket -lnsl -lm -lresolv"
  2837.  
  2838. #ditto but no curses.
  2839. solaris2xgnc:
  2840.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.x with GNU cc...'
  2841.     @echo 'Please read the comments that accompany the solaris2xg target.'
  2842.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  2843.     "CFLAGS = -g -O -Usun -DSVR4 -DSOLARIS -DSTERMIOX -DSELECT -DFNFLOAT \
  2844.     -DDIRENT -DHDBUUCP -DTCPSOCKET $(KFLAGS)" \
  2845.     "LIBS= -lsocket -lnsl -lm -lresolv"
  2846.  
  2847. #and with Kerberos IV
  2848. solaris2xg+krb4:
  2849.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.x with GNU cc, krb4...'
  2850.     @echo 'Please read the comments that accompany the solaris2xg target.'
  2851.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  2852.     "CFLAGS = -g -O -Usun -DSVR4 -DSOLARIS -DSTERMIOX -DSELECT -DFNFLOAT \
  2853.     -DCK_CURSES -DCK_NEWTERM -DDIRENT -DHDBUUCP -DTCPSOCKET \
  2854.     -DCK_AUTHENTICATION -DCK_KERBEROS  -DKRB4 -DCK_ENCRYPTION \
  2855.     -DCK_DES -DCK_CAST -DBIGBUFOK $(K4INC) $(KFLAGS)" \
  2856.     "LIBS= $(K4LIB) -ltermlib -lsocket -lnsl -lm -lresolv -lkrb -ldes" 
  2857.  
  2858. #and with OpenSSL,ZLIB,PAM,SHADOW
  2859. solaris2xg+openssl+zlib+pam+shadow:
  2860.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.x with gcc, OpenSSL...'
  2861.     @echo 'Please read the comments that accompany the solaris2xg target.'
  2862.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  2863.     "CFLAGS = -g -O -Usun -DSVR4 -DSOLARIS -DSTERMIOX -DSELECT -DFNFLOAT \
  2864.     -DCK_CURSES -DCK_NEWTERM -DDIRENT -DHDBUUCP -DTCPSOCKET \
  2865.     -DCK_AUTHENTICATION -DCK_SSL -DCK_PAM -DCK_SHADOW  -DZLIB \
  2866.     -DBIGBUFOK $(SSLINC) $(KFLAGS)" \
  2867.     "LIBS= $(SSLLIB) -ltermlib \
  2868.     -lsocket -lnsl -lm -lresolv -lssl -lcrypto -lpam -lz" 
  2869.  
  2870. #and with Krb5,Krb4,OpenSSL,SHADOW
  2871. solaris2xg+krb5+krb4+openssl+shadow:
  2872.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.x with gcc,k5,k4,ssl...'
  2873.     @echo 'Please read the comments that accompany the solaris2xg target.'
  2874.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  2875.     "CFLAGS = -g -O -Usun -DSVR4 -DSOLARIS -DSTERMIOX -DSELECT -DFNFLOAT \
  2876.     -DCK_CURSES -DCK_NEWTERM -DDIRENT -DHDBUUCP -DTCPSOCKET \
  2877.     -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 -DKRB4 -DKRB524 \
  2878.     -DCK_ENCRYPTION -DCK_SSL -DCK_DES -DCK_CAST -DBIGBUFOK \
  2879.     $(K5INC) $(K5INC)/krb5 $(SSLINC) $(KFLAGS)" \
  2880.     "LIBS= $(K5LIB) $(SSLLIB) -ltermlib -lsocket -lnsl -lm -lresolv \
  2881.     -lkrb4 -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto"
  2882.  
  2883. #and with OpenSSL
  2884. solaris2xg+openssl+pam+shadow:
  2885.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.x with gcc, OpenSSL...'
  2886.     @echo 'Please read the comments that accompany the solaris2xg target.'
  2887.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  2888.     "CFLAGS = -g -O -Usun -DSVR4 -DSOLARIS -DSTERMIOX -DSELECT -DFNFLOAT \
  2889.     -DCK_CURSES -DCK_NEWTERM -DDIRENT -DHDBUUCP -DTCPSOCKET \
  2890.     -DCK_AUTHENTICATION -DCK_SSL -DCK_PAM -DCK_SHADOW \
  2891.     -DBIGBUFOK $(SSLINC) $(KFLAGS)" \
  2892.     "LIBS= $(SSLLIB) -ltermlib \
  2893.     -lsocket -lnsl -lm -lresolv -lssl -lcrypto -lpam" 
  2894.  
  2895. solaris22g:
  2896.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=-DPOSIX_CRTSCTS $(KFLAGS)" solaris2xg \
  2897.     KTARGET=$${KTARGET:-$(@)}
  2898.  
  2899. solaris23g:
  2900.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=-DPOSIX_CRTSCTS $(KFLAGS)" solaris2xg \
  2901.     KTARGET=$${KTARGET:-$(@)}
  2902.  
  2903. #Solaris 2.4 built with gcc
  2904. solaris24g:
  2905.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET:-$(@)} \
  2906.     solaris2xg "KFLAGS=-DSOLARIS24 -DPOSIX_CRTSCTS $(KFLAGS)"
  2907.  
  2908. #Solaris 2.5 built with gcc
  2909. solaris25g:
  2910.     $(MAKE) "MAKE=$(MAKE)" solaris2xg KTARGET=$${KTARGET:-$(@)} \
  2911.     "KFLAGS=-funsigned-char -DSOLARIS25 $(KFLAGS)"
  2912.  
  2913. #Solaris 2.5 built with gcc and Kerberos IV
  2914. solaris25g+krb4:
  2915.     $(MAKE) "MAKE=$(MAKE)" solaris2xg+krb4 KTARGET=$${KTARGET:-$(@)} \
  2916.     "KFLAGS=-funsigned-char -DSOLARIS25 $(KFLAGS)"
  2917.  
  2918. #Solaris 2.5 built with gcc and Kerberos V/IV, SSL, ...
  2919. solaris25g+krb5+krb4+openssl+shadow:
  2920.     $(MAKE) "MAKE=$(MAKE)" solaris2xg+krb5+krb4+openssl+shadow \
  2921.     KTARGET=$${KTARGET:-$(@)} \
  2922.     "KFLAGS=-funsigned-char -DSOLARIS25 $(KFLAGS)"
  2923.  
  2924. #Solaris 2.6 with gcc
  2925. solaris26g:
  2926.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET:-$(@)} solaris2xg \
  2927.     "KFLAGS= -DSOLARIS26 $(KFLAGS)"
  2928.  
  2929. #Solaris 2.6 with gcc and SSL
  2930. solaris26g+openssl:
  2931.     $(MAKE) "MAKE=$(MAKE)"  solaris2xg+openssl+pam+shadow \
  2932.     KTARGET=$${KTARGET:-$(@)} "KFLAGS= -DSOLARIS26 $(KFLAGS)"
  2933.  
  2934. #Solaris 2.6 with gcc, no curses (e.g. because libtermlib is missing).
  2935. solaris26gnc:
  2936.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET:-$(@)} solaris2xgnc \
  2937.     "KFLAGS= -DSOLARIS26 $(KFLAGS)"
  2938.  
  2939. #Solaris 7 with gcc (32-bit)
  2940. solaris7g:
  2941.     $(MAKE) "MAKE=$(MAKE)" solaris2xg KTARGET=$${KTARGET:-$(@)} \
  2942.     "KFLAGS=-DSOLARIS7 $(KFLAGS)"
  2943.  
  2944. #Solaris 7 with gcc + OpenSSL (32-bit)
  2945. solaris7g+openssl+zlib+pam+shadow:
  2946.     $(MAKE) "MAKE=$(MAKE)" solaris2xg+openssl+zlib+pam+shadow \
  2947.     KTARGET=$${KTARGET:-$(@)} "KFLAGS=-DSOLARIS7 $(KFLAGS)"
  2948.  
  2949. #Solaris 7 with gcc + Kerberos IV (32-bit)
  2950. solaris7g+krb4:
  2951.     $(MAKE) "MAKE=$(MAKE)" solaris2xg+krb4 KTARGET=$${KTARGET:-$(@)} \
  2952.     "KFLAGS=-DSOLARIS7 $(KFLAGS)"
  2953.  
  2954. #Solaris 8 with gcc (32-bit)
  2955. solaris8g:
  2956.     $(MAKE) "MAKE=$(MAKE)" solaris2xg KTARGET=$${KTARGET:-$(@)} \
  2957.     "KFLAGS=-DSOLARIS8 $(KFLAGS)"
  2958.  
  2959. #Solaris 8 with gcc + OpenSSL (32-bit)
  2960. solaris8g+openssl+zlib+pam+shadow:
  2961.     $(MAKE) "MAKE=$(MAKE)" solaris2xg+openssl+zlib+pam+shadow \
  2962.     KTARGET=$${KTARGET:-$(@)} "KFLAGS=-DSOLARIS8 $(KFLAGS)"
  2963.  
  2964. #Solaris 8 with gcc + Kerberos IV (32-bit)
  2965. solaris8g+krb4:
  2966.     $(MAKE) "MAKE=$(MAKE)" solaris2xg+krb4 KTARGET=$${KTARGET:-$(@)} \
  2967.     "KFLAGS=-DSOLARIS8 $(KFLAGS)"
  2968.  
  2969. #Solaris 2.0-2.4, gcc, SunLink X.25 added.
  2970. #NOTE: Can't use xermit target with X.25.
  2971. solaris2xgx25:
  2972.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.x + X.25 with GNU cc...'
  2973.     @echo 'Please read the comments that accompany the solaris2xg entry.'
  2974.     $(MAKE) wermit CC=gcc CC2=gcc KTARGET=$${KTARGET:-$(@)} \
  2975.     "CFLAGS = -g -O -Usun -DSVR4 -DSOLARIS -DSTERMIOX -DSELECT -DSUNX25 \
  2976.     -DCK_CURSES -DCK_NEWTERM -DDIRENT -DHDBUUCP -DTCPSOCKET -DFNFLOAT \
  2977.     -DNOLEARN $(KFLAGS)" \
  2978.     "LIBS= -ltermlib -lm -L/opt/SUNWconn/lib -R/opt/SUNWconn/lib \
  2979.     -lsockx25 -lsocket -lnsl"
  2980.  
  2981. #Solaris 2.5, gcc, SunLink X.25 added.
  2982. solaris25gx25:
  2983.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET:-$(@)} solaris2xgx25 \
  2984.     "KFLAGS=-DSOLARIS25 $(KFLAGS)"
  2985.  
  2986. #Solaris 2.6, gcc, SunLink X.25 added.
  2987. solaris26gx25:
  2988.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET:-$(@)} solaris2xgx25 \
  2989.     "KFLAGS=-DSOLARIS26 $(KFLAGS)"
  2990.  
  2991. #Solaris 2.0 - 2.4, SunPro compiler, includes curses and TCP/IP.
  2992. #When using SUNWspro CC 2.0.1 under Solaris 2.3, be sure all cc patches
  2993. #are applied, otherwise corrupt or truncated object files can result.
  2994. #To build, set your PATH as follows:
  2995. #  /usr/local/bin:/usr/bin:/opt/SUNWspro/bin:/usr/ccs/bin:\
  2996. #  /usr/ucb:/usr/sbin:/sbin:.
  2997. # or (depending on where the compiler has been installed):
  2998. #  /usr/openwin/bin:/export/home/SUNWspro/bin:/usr/ccs/bin:/usr/sbin:/usr/bin.
  2999. #For additional optimization try using "-fast -xO4 -xdepend".
  3000. solaris2x:
  3001.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.x with SunPro cc...'
  3002.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3003.     "CFLAGS = -O -Usun -i -DSVR4 -DDIRENT -DSOLARIS -DHDBUUCP -DFNFLOAT \
  3004.     -DSELECT -DCK_CURSES -DCK_NEWTERM -DSTERMIOX -DTCPSOCKET $(KFLAGS)" \
  3005.     "LNKFLAGS = -s" "LIBS= -ltermlib -lsocket -lnsl -lm -lresolv"
  3006.  
  3007. #as above but configured for Kerberos IV
  3008. solaris2x+krb4:  
  3009.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.x, SunPro cc, krb4...'
  3010.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} \
  3011.     "CFLAGS = -O -Usun -i -DSVR4 -DDIRENT -DSOLARIS -DHDBUUCP -DFNFLOAT \
  3012.     -DSELECT -DCK_CURSES -DCK_NEWTERM -DSTERMIOX -DTCPSOCKET  \
  3013.     -DCK_AUTHENTICATION -DCK_KERBEROS  -DKRB4 \
  3014.     -DCK_ENCRYPTION -DCK_DES -DCK_CAST $(K4INC) $(KFLAGS)" \
  3015.     "LNKFLAGS = -s" \
  3016.     "LIBS= $(K4LIB) -ltermlib -lsocket -lnsl -lm -lresolv -lkrb -ldes"
  3017.  
  3018. solaris23:
  3019.     $(MAKE) "MAKE=$(MAKE)" solaris2x KTARGET=$${KTARGET:-$(@)} \
  3020.     "KFLAGS=$(KFLAGS)"
  3021.  
  3022. solaris24:
  3023.     $(MAKE) "MAKE=$(MAKE)" solaris2x KTARGET=$${KTARGET:-$(@)} \
  3024.     "KFLAGS=-DSOLARIS24 -DPOSIX_CRTSCTS $(KFLAGS)"
  3025.  
  3026. # template for Solaris 2.5 and above.
  3027. solaris25x:
  3028.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.x with SunPro cc...'
  3029.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3030.     "CFLAGS = -DFNFLOAT -O -Usun -i $(KFLAGS)" \
  3031.     "LNKFLAGS = -s" "LIBS= -ltermlib -lsocket -lnsl -lm -lresolv"
  3032.  
  3033. #Solaris 2.5, SunPro compiler, curses, TCP/IP
  3034. solaris25:
  3035.     $(MAKE) "MAKE=$(MAKE)" solaris25x KTARGET=$${KTARGET:-$(@)} \
  3036.     "KFLAGS=-DSOLARIS25 $(KFLAGS)"
  3037.  
  3038. #Solaris 2.5, SunPro compiler, curses, TCP/IP, Kerberos IV
  3039. solaris25+krb4:
  3040.     $(MAKE) "MAKE=$(MAKE)" solaris25x+krb4 KTARGET=$${KTARGET:-$(@)} \
  3041.     "KFLAGS=-DSOLARIS25 $(KFLAGS)"
  3042.  
  3043. #Solaris 2.6, SunPro compiler, curses, TCP/IP
  3044. solaris26:
  3045.     $(MAKE) "MAKE=$(MAKE)" solaris25x KTARGET=$${KTARGET:-$(@)} \
  3046.     "KFLAGS=-DSOLARIS26 $(KFLAGS)"
  3047.  
  3048. #Solaris 7 (aka 2.7)
  3049. solaris7:
  3050.     $(MAKE) "MAKE=$(MAKE)" solaris25x KTARGET=$${KTARGET:-$(@)} \
  3051.     "KFLAGS=-DSOLARIS7 $(KFLAGS)"
  3052.  
  3053. #Solaris 8
  3054. solaris8:
  3055.     $(MAKE) "MAKE=$(MAKE)" solaris25x KTARGET=$${KTARGET:-$(@)} \
  3056.     "KFLAGS=-DSOLARIS8 $(KFLAGS)"
  3057.  
  3058. #Solaris 2.0-2.3, SunPro compiler, with SunLink X.25 support.
  3059. #This will only run if user has /opt/SUNWconn/lib/libsockx25.so.1
  3060. #exists and can be dynamically linked.
  3061. #NOTE: Do not change target to xermit -- it doesn't support X.25.
  3062. solaris2x25:
  3063.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.x+X.25 with SunPro cc...'
  3064.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3065.     "CFLAGS = -O -i -Usun -DSVR4 -DSOLARIS -DDIRENT \
  3066.     -DSUNX25 -DTCPSOCKET -DHDBUUCP -DFNFLOAT -DNOLEARN \
  3067.     -DSELECT -DCK_CURSES -DCK_NEWTERM -DSTERMIOX $(KFLAGS)" \
  3068.     "LNKFLAGS = -s" \
  3069.     "LIBS= -ltermlib -L/opt/SUNWconn/lib -R/opt/SUNWconn/lib \
  3070.     -lsockx25 -lsocket -lnsl -lm -lresolv"
  3071.  
  3072. #Solaris 2.4, SunPro compiler, with SunLink X.25 support.
  3073. #This will only run if user has /opt/SUNWconn/lib/libsockx25.so.1
  3074. #exists and can be dynamically linked.
  3075. solaris24x25:
  3076.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.4+X.25 with SunPro cc...'
  3077.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3078.     "CFLAGS = -O -i -Usun -DSVR4 -DSOLARIS -DSOLARIS24 -DDIRENT -DNOLEARN \
  3079.     -DSUNX25 -DTCPSOCKET -DHDBUUCP -DFNFLOAT -DPOSIX_CRTSCTS \
  3080.     -DSELECT -DCK_CURSES -DCK_NEWTERM -DSTERMIOX $(KFLAGS)" \
  3081.     "LNKFLAGS = -s" \
  3082.     "LIBS= -ltermlib -L/opt/SUNWconn/lib -R/opt/SUNWconn/lib \
  3083.     -lsockx25 -lsocket -lnsl -lm -lresolv"
  3084.  
  3085. #Solaris 2.5, SunPro compiler, with SunLink X.25 support.
  3086. solaris25x25:
  3087.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.5+X.25 with SunPro cc...'
  3088.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3089.     "CFLAGS = -O -i -Usun -DSVR4 -DSOLARIS25 -DDIRENT -DSUNX25 \
  3090.     -DTCPSOCKET -DHDBUUCP -DSELECT -DCK_CURSES \
  3091.     -DCK_NEWTERM -DSTERMIOX -DFNFLOAT -DPOSIX_CRTSCTS -DNOLEARN \
  3092.     -I/opt/SUNWconn/include $(KFLAGS)" \
  3093.     "LIBS= -ltermlib -L/opt/SUNWconn/lib -R/opt/SUNWconn/lib \
  3094.     -lsockx25 -lsocket -lnsl -lm -lresolv"
  3095.  
  3096. #Solaris 2.6, SunPro compiler, with SunLink X.25 support.
  3097. solaris26x25:
  3098.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.6+X.25 with SunPro cc...'
  3099.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3100.     "CFLAGS = -O -i -Usun -DSVR4 -DSOLARIS26 -DDIRENT -DSUNX25 \
  3101.     -DTCPSOCKET -DHDBUUCP -DSELECT -DCK_CURSES \
  3102.     -DCK_NEWTERM -DSTERMIOX -DFNFLOAT -DPOSIX_CRTSCTS -DNOLEARN \
  3103.     -I/opt/SUNWconn/include $(KFLAGS)" \
  3104.     "LIBS= -ltermlib -L/opt/SUNWconn/lib -R/opt/SUNWconn/lib \
  3105.     -lsockx25 -lsocket -lnsl -lm -lresolv"
  3106.  
  3107. #The following sunosxxx entries are for debugging and testing only.
  3108.  
  3109. sunos41x:
  3110.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3111.     "CFLAGS= -O -DSUNOS41 -DDIRENT -DNOTLOG -DNOMSEND \
  3112.     -DNOUUCP -DNOSIGWINCH -DNOREDIRECT -DNOPUSH -DNOCCTRAP \
  3113.     -DNOICP -DNOLOCAL $(KFLAGS)"
  3114.  
  3115. #SunOS 4.1.x, debugging with Pure Software, Inc., Purify 2 (commercial runtime
  3116. #error-detection software for catching wild array references, etc).
  3117. #Before running the resulting wermit, you'll also need to define and export
  3118. #the following environment variables (as in this example):
  3119. #PURIFYHOME=/usr/local/purify ; export PURIFYHOME
  3120. #PURIFYCACHEDIR=/tmp ; export PURIFYCACHEDIR
  3121. sunos41cp:
  3122.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 / BSD / Curses / Purify...
  3123.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3124.     "CC2= purify -cache_dir=/usr/tmp cc" \
  3125.     "CFLAGS= -g -DSUNOS41 -DHDBUUCP -DDIRENT -DTCPSOCKET \
  3126.     -DSAVEDUID -DCK_CURSES $(KFLAGS)" \
  3127.     "LIBS= -lcurses -ltermcap"
  3128.  
  3129. #SunOS 4.1 with malloc debugger
  3130. sunos41md:
  3131.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 malloc debug...
  3132.     $(MAKE) mermit KTARGET=$${KTARGET:-$(@)} \
  3133.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DDIRENT -DTCPSOCKET \
  3134.     -DSAVEDUID $(KFLAGS) -Dmalloc=dmalloc -Dfree=dfree -DMDEBUG"
  3135.  
  3136. sunos41gmd:
  3137.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 with gcc and curses...
  3138.     $(MAKE) mermit KTARGET=$${KTARGET:-$(@)} "CC= gcc " "CC2= gcc" \
  3139.     "CFLAGS= -g -DSUNOS41 -DHDBUUCP -DDIRENT -DTCPSOCKET \
  3140.     -DNDGPWNAM -DSAVEDUID -DCK_CURSES -DRLOGCODE \
  3141.     $(KFLAGS) -Dmalloc=dmalloc -Dfree=dfree -DMDEBUG" \
  3142.     "LIBS= -lcurses -ltermcap"
  3143.  
  3144. #SunOS version 4.1, gcc, profiling with gprof, no debugging.
  3145. #To get profile, "make sunos41p" (on Sun), then "./wermit".  After running
  3146. #wermit, "gprof ./wermit | lpr" (or whatever) to get execution profile.
  3147. sunos41p:
  3148.     @echo Making C-Kermit $(CKVER) for SunOS 4.x with profiling...
  3149.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC= gcc " "CC2= gcc" \
  3150.     "CFLAGS= -DSUNOS41 -DNODEBUG -DSAVEDUID -DDIRENT -DTCPSOCKET \
  3151.     -DNDGPWNAM $(KFLAGS) -pg" "LNKFLAGS = -pg"
  3152.  
  3153. #SunOS version 4.1 or later, BSD environment, minimum features.
  3154. sunos41min:
  3155.     @echo Minimum interactive
  3156.     $(MAKE) "MAKE=$(MAKE)" sunos41 KTARGET=$${KTARGET:-$(@)} \
  3157.     "KFLAGS=-DNOSPL -DNOXMIT -DNOMSEND -DNOFRILLS -DNORETRY \
  3158.     -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG -DNOSCRIPT -DNOCSETS \
  3159.     -DNOSHOW -DNOSETKEY -DNOUUCP -DNORECALL -DNOREDIRECT \
  3160.     -DNOPUSH -DNOMDMHUP -DNOJC -DNOFDZERO -DNOESCSEQ \
  3161.     -DNONET -DCK_SMALL -DNOCKSPEED -DNOCKTIMERS -DNOLOGIN \
  3162.     -DNOCKXYZ -DNOKERBEROS -DNOMKDIR -DNOPATTERNS -DNOPERMS -DNOPIPESEND \
  3163.     -DNORECURSIVE -DNORENAME -DNORESEND -DNOSETKEY \
  3164.     -DNOTRIGGER -DNOTUNING $(KFLAGS)" "LNKFLAGS = -s"
  3165.  
  3166. #SunOS version 4.1, BSD environment, min size, command-line only...
  3167. sunos41m:
  3168.     @echo Minimum size
  3169.     $(MAKE) "MAKE=$(MAKE)" sunos41min KTARGET=$${KTARGET:-$(@)} \
  3170.     "KFLAGS=-DNOICP $(KFLAGS)"
  3171.  
  3172. #SunOS version 4.1, BSD environment, min size, cmd-line only, remote only...
  3173. #
  3174. sunos41mr:
  3175.     @echo Minimum size
  3176.     $(MAKE) "MAKE=$(MAKE)" sunos41min KTARGET=$${KTARGET:-$(@)} \
  3177.     "KFLAGS=-DNOICP -DNOLOCAL $(KFLAGS)"
  3178.  
  3179. #SunOS version 4.1, BSD environment, min size, interactive...
  3180. sunos41mi:
  3181.     @echo Minimum size
  3182.     $(MAKE) "MAKE=$(MAKE)" sunos41min KTARGET=$${KTARGET:-$(@)} \
  3183.     "KFLAGS=-DNOCMDL $(KFLAGS)"
  3184.  
  3185. #SunOS version 4.1, BSD environment, min size, interactive, remote only...
  3186. sunos41mir:
  3187.     @echo Minimum size
  3188.     $(MAKE) "MAKE=$(MAKE)" sunos41min KTARGET=$${KTARGET:-$(@)} \
  3189.     "KFLAGS=-DNOCMDL -DNOLOCAL $(KFLAGS)"
  3190.  
  3191. #SunOS 4.1, System V R3 environment (-i option omitted).
  3192. sunos41s5:
  3193.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 System V R3...
  3194.     @echo For testing purposes only - NOT for production use.
  3195.     @echo For a useable version, make sunos41 instead.
  3196.     $(MAKE) wermit "CC= /usr/5bin/cc " "CC2=/usr/5bin/cc " \
  3197.     KTARGET=$${KTARGET:-$(@)} \
  3198.     "CFLAGS = -DSUN4S5 -DDIRENT -DHDBUUCP -DNOLEARN -DCK_POLL $(KFLAGS) -O"
  3199.  
  3200. #As above, but with curses support
  3201. sunos41s5c:
  3202.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 System V R3...
  3203.     @echo Curses included.
  3204.     @echo For testing purposes only - NOT for production use.
  3205.     @echo For a useable version, make sunos41 instead.
  3206.     $(MAKE) wermit "CC= /usr/5bin/cc " "CC2=/usr/5bin/cc " \
  3207.     KTARGET=$${KTARGET:-$(@)} \
  3208.     "CFLAGS = -DSUN4S5 -DDIRENT -DHDBUUCP -DNOLEARN \
  3209.     -DCK_POLL -DCK_CURSES -DCK_NEWTERM $(KFLAGS) -O" "LIBS= -lcurses"
  3210.  
  3211. #As above, but with curses support AND net support
  3212. sunos41s5tcpc:
  3213.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 System V R3...
  3214.     @echo TCP/IP and curses included.  No debug log.
  3215.     @echo For testing purposes only - NOT for production use.
  3216.     @echo For a useable version, make sunos41 instead.
  3217.     $(MAKE) xermit "CC= /usr/5bin/cc " "CC2=/usr/5bin/cc " \
  3218.     KTARGET=$${KTARGET:-$(@)} \
  3219.     "CFLAGS = -DSUN4S5 -DDIRENT -DHDBUUCP -DCK_POLL \
  3220.     -DNODEBUG -DCK_CURSES -DCK_NEWTERM -DTCPSOCKET $(KFLAGS) -O" \
  3221.     "LIBS= -lcurses -lresolv"
  3222.  
  3223. # (End of SunOS test entries...)
  3224.  
  3225. #Apollo with Domain SR10.0 or later, BSD environment
  3226. #Reportedly, it might also help to add '-A,systype=bsd4.3' to CFLAGS.
  3227. #Reportedly, there is also a problem with getc & putc macros that can
  3228. #be handled by using '#ifdef apollo' somewhere to redefine them???
  3229. #On the other hand, other reports indicate that it works fine as-is.
  3230. #NOTE: This entry was previously like this:
  3231. #    $(MAKE) wermit "CFLAGS= -DNOFILEH -DBSD4 $(KFLAGS) -Uaegis \
  3232. #    -DTCPSOCKET -U__STDC__"
  3233. #Reports (Dec 91) indicate SR10 has an ANSI-compliant C compiler,
  3234. #in addition to an older one that claimed to be ANSI-compliant but wasn't.
  3235. #The following make entry (plus checks that are made in ckcdeb.h) detect
  3236. #which compiler is used and define the CK_ANSIC or NOANSI flags accordingly.
  3237. sr10-bsd:
  3238.     @echo Making C-Kermit $(CKVER) for Apollo SR10.0 / BSD ...
  3239.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3240.     "CFLAGS= -O -DAPOLLOSR10 -DBSD43 -DTCPSOCKET -DCK_CURSES -DNOLEARN \
  3241.     -Uaegis $(KFLAGS)" "LIBS= -lcurses -ltermcap"
  3242.  
  3243. #Apollo with Domain SR10.0 or later, System V R3 environment.
  3244. #Don't use the optimizer (-O), it causes problems at runtime.
  3245. sr10-s5r3:
  3246.     @echo Making C-Kermit $(CKVER) for Apollo SR10.0 / Sys V R3 ...
  3247.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3248.     "CFLAGS= -DNOFILEH -DSVR3 -DAPOLLOSR10 -DNOLEARN $(KFLAGS) \
  3249.     -Uaegis -U__STDC__"
  3250.  
  3251. #Apollo Domain/IX (untested, try this if sr10-bsd doesn't work)
  3252. # -DTCPSOCKET can probably be added here.
  3253. apollobsd:
  3254.     @echo Making C-Kermit $(CKVER) for Apollo Domain/IX...
  3255.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3256.     "CC= /bin/cc " "CC2= /bin/cc " \
  3257.     "CFLAGS= -DNOFILEH -DBSD4 -DAPOLLOBSD -DNOLEARN $(KFLAGS) -Uaegis"
  3258.  
  3259. #Version 7 Unix (see comments near top of makefile)
  3260. v7:
  3261.     @echo Making C-Kermit $(CKVER) for UNIX Version 7.
  3262.     @echo Read the makefile if you have trouble with this...
  3263.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3264.     "CFLAGS=-DV7 -DPROCNAME=\\\"$(PROC)\\\" \
  3265.     -DBOOTNAME=\\\"$(BOOTFILE)\\\" -DNPROCNAME=\\\"$(NPROC)\\\" \
  3266.     -DNPTYPE=$(NPTYPE) $(DIRECT) -DO_RDWR=2 -DO_NDELAY=0 -DO_SCCS_ID \
  3267.     -DNOLEARN $(KFLAGS)"
  3268.  
  3269. #AT&T UNIX System V R3, signal() is void rather than int.
  3270. #Uses dirent.h and Honey DanBer UUCP.
  3271. #Add the -i link option if necessary.
  3272. #If you get errors like "ws_row undefined" in ckutio.c, add -DNONAWS.
  3273. sys5r3:
  3274.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R3...'
  3275.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3276.     "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -DNOLEARN $(KFLAGS) -O" \
  3277.     "LNKFLAGS="
  3278.  
  3279. #As above, plus curses.
  3280. sys5r3c:
  3281.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R3 + curses...'
  3282.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3283.     "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -DCK_CURSES -DNONAWS -DNOLEARN \
  3284.     $(KFLAGS) -O" "LNKFLAGS=" "LIBS = -ltermlib"
  3285.  
  3286. #System V R3.2 for PCs built on Interactive UNIX SV/386 R4.x
  3287. #but with all calls to dup2() disabled because generic SVR3 does not have dup2.
  3288. # (The -linet library might not need to be in this one.)
  3289. sys5r32is:
  3290.     @echo 'Making C-Kermit $(CKVER) for System V/386 R32
  3291.     $(MAKE) wermit CC="$(CC)" CC2="$(CC2)" \
  3292.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -O -DNOCSETS -DNOREALPATH \
  3293.     -DUID_T=ushort -DGID_T=ushort -DI386IX -DSVR3JC -DCK_CURSES -DNONAWS \
  3294.     -DPOSIX_JC -DCK_REDIR -DCK_POLL -DDCLGETCWD -DNOFDZERO -DNOREDIRECT \
  3295.     -DNOZEXEC -DNOLEARN $(KFLAGS)" "LIBS=-lcurses -lc_s -linet"
  3296.  
  3297. #System V R3.2 for PCs built on Interactive UNIX SV/386 R4.x
  3298. #but with all calls to dup2() disabled because generic SVR3 does not have dup2.
  3299. #With TCP/IP added.
  3300. sys5r32isnet:
  3301.     @echo 'Making C-Kermit $(CKVER) for System V/386 R32 + TCP/IP
  3302.     $(MAKE) wermit CC="$(CC)" CC2="$(CC2)" \
  3303.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -O -DNOCSETS -DNOREALPATH \
  3304.     -DUID_T=ushort -DGID_T=ushort -DI386IX -DSVR3JC -DCK_CURSES -DNONAWS \
  3305.     -DPOSIX_JC -DCK_REDIR -DCK_POLL -DDCLGETCWD -DNOFDZERO -DNOREDIRECT \
  3306.     -DNOLEARN -DNOZEXEC -DTCPSOCKET $(KFLAGS)" "LIBS=-lcurses -lc_s -linet"
  3307.  
  3308. iclsys5r3:
  3309.     make sys5r3 KTARGET=$${KTARGET:-$(@)} KFLAGS=-DICLSVR3
  3310.  
  3311. #AT&T UNIX System V R3.  As above, but no ANSI prototyping.
  3312. sys5r3na:
  3313.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R3...'
  3314.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3315.     "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -DNOANSI -DNOLEARN $(KFLAGS) -O" \
  3316.     "LNKFLAGS="
  3317.  
  3318. #AT&T UNIX System V R3, for 3B computers with Wollongong TCP/IP.
  3319. sys5r3net3b:
  3320.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX SVR3/3B/Wollongong...'
  3321.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3322.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DWOLLONGONG -DNOLEARN $(KFLAGS) \
  3323.     -O" "LIBS= -lnet -lnsl_s" "LNKFLAGS ="
  3324.  
  3325. #AT&T UNIX System V R3, signal() is void rather than int.
  3326. #Uses dirent.h and Honey DanBer uucp, has <termiox.h>.
  3327. #Has <termiox.h> for RTS/CTS flow control.
  3328. sys5r3tx:
  3329.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R3...'
  3330.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3331.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DTERMIOX -DNOLEARN \
  3332.     $(KFLAGS) -i -O" "LNKFLAGS ="
  3333.  
  3334. #AT&T UNIX System V R3, signal() is void rather than int.
  3335. #Uses dirent.h and Honey DanBer uucp, has <termiox.h>.
  3336. #Has <sys/termiox.h> for RTS/CTS flow control.
  3337. sys5r3sx:
  3338.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R3...'
  3339.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3340.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DSTERMIOX -DNOLEARN \
  3341.     $(KFLAGS) -i -O" "LNKFLAGS ="
  3342.  
  3343. #AT&T UNIX System V R4.
  3344. #Has <termiox.h>.
  3345. sys5r4:
  3346.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  3347.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3348.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DTERMIOX -DNOLEARN $(KFLAGS)" \
  3349.     "LNKFLAGS = -s"
  3350.  
  3351. #AT&T UNIX System V R4 with Wollongong TCP/IP.
  3352. #Has <termiox.h>.
  3353. sys5r4net:
  3354.     @echo 'Making C-Kermit $(CKVER) for System V R4 + Wollongong TCP/IP...'
  3355.     @echo ' If sockets-library routines are missing at link time, then'
  3356.     @echo ' try the sys5r4net2 entry.'
  3357.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3358.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DNOLEARN \
  3359.     -DTERMIOX -DWOLLONGONG $(KFLAGS)" "LNKFLAGS = -s"
  3360.  
  3361. #As above, but needs libs included.
  3362. sys5r4net2:
  3363.     @echo ' PLEASE READ ckuins.txt IF YOU GET MISSING HEADER FILES.'
  3364.     @echo ' (Search for WOLLONGONG...)'
  3365.     $(MAKE) sys5r4net KTARGET=$${KTARGET:-$(@)} "LIBS= -lsocket -lnsl"
  3366.  
  3367. #As above plus curses.
  3368. sys5r4net2c:
  3369.     echo 'Making C-Kermit $(CKVER) for System V R4 + Wollongong TCP/IP...'
  3370.     @echo ' PLEASE READ ckuins.txt IF YOU GET MISSING HEADER FILES.'
  3371.     @echo ' (Search for WOLLONGONG...)'
  3372.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3373.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DNOLEARN \
  3374.     -DTERMIOX -DWOLLONGONG -DCK_CURSES $(KFLAGS)" "LNKFLAGS = -s" \
  3375.     "LIBS= -lsocket -lnsl -lcurses"
  3376.  
  3377. #DELL UNIX System V R4.
  3378. #Has <sys/termiox.h>, regular Berkeley sockets library, i.e. in.h and inet.h
  3379. #are not misplaced in sys (rather than netinet and arpa, respectively).
  3380. #Uses ANSI C constructs, advisory file locking on devices, etc.
  3381. #Warning: -DSTERMIOX enables hardware flow control (RTS/CTS), but reportedly
  3382. #this does not work with the normal drivers.  However, it might still work
  3383. #on non-Dell systems, or even Dell systems with different drivers installed.
  3384. dellsys5r4:
  3385.     @echo 'Making C-Kermit $(CKVER) for DELL UNIX System V R4...'
  3386.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3387.     "CFLAGS = -O -DSVR4 -DDELL_SVR4 -DDIRENT -DHDBUUCP \
  3388.     -DTCPSOCKET -DSTERMIOX -DCK_POLL $(KFLAGS)" \
  3389.     "LIBS= -lsocket -lnsl" "LNKFLAGS = -s"
  3390.  
  3391. #As above, curses support added...
  3392. dellsys5r4c:
  3393.     @echo 'Making C-Kermit $(CKVER) for DELL UNIX System V R4...'
  3394.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3395.     "CFLAGS = -O -DSVR4 -DDELL_SVR4 -DDIRENT -DHDBUUCP \
  3396.     -DTCPSOCKET -DSTERMIOX -DCK_CURSES -DCK_POLL \
  3397.     $(KFLAGS)" "LIBS= -lsocket -lnsl -lcurses -ltermcap" "LNKFLAGS = -s"
  3398.  
  3399. #Minimum interactive: As above, but with every conceivable option removed.
  3400. dellsys5r4mi:
  3401.     @echo 'Making C-Kermit $(CKVER) for DELL UNIX System V R4...'
  3402.     @echo 'Minimum-size interactive'
  3403.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3404.     "CFLAGS = -O -DSVR4 -DDELL_SVR4 -DDIRENT \
  3405.     -UTCPSOCKET -DNOCMDL -DNOSPL -DNOXMIT -DCK_POLL \
  3406.     -DNOMSEND -DNOFRILLS -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG \
  3407.     -DNOSCRIPT -DNOCSETS -DNOSHOW -DNOSETKEY -DNOSERVER -DNOUUCP \
  3408.     -DNOPUSH -DNOMDMHUP -DNOJC -DNOFDZERO -DNOESCSEQ  \
  3409.     $(KFLAGS)" "LNKFLAGS = -s"
  3410.  
  3411. #Command-line only version.
  3412. dellsys5r4m:
  3413.     @echo 'Making C-Kermit $(CKVER) for DELL UNIX System V R4...'
  3414.     @echo 'Command-line only'
  3415.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3416.     "CFLAGS = -O -DSVR4 -DDELL_SVR4 -DDIRENT \
  3417.     -UTCPSOCKET -DNOICP -DNOFRILLS -DNODIAL -DNODEBUG -DNOTLOG -DNOCSETS \
  3418.     -DNOSETKEY -DNOESCSEQ -DNOJC -DNOFDZERO -DCK_POLL \
  3419.     $(KFLAGS)" "LNKFLAGS = -s"
  3420.  
  3421. #AT&T UNIX System V R4.
  3422. #Has <sys/termiox.h>.
  3423. sys5r4sx:
  3424.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  3425.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3426.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DSTERMIOX -DNOLEARN \
  3427.     $(KFLAGS)" "LNKFLAGS = -s" "LIBS=$(LIBS)"
  3428.  
  3429. #AT&T UNIX System V R4.
  3430. #Has <sys/termiox.h>, regular Berkeley sockets library, i.e. in.h and inet.h
  3431. #are not misplaced in sys (rather than netinet and arpa, respectively).
  3432. #Uses ANSI C constructs, <sys/termiox.h>, etc etc.
  3433. sys5r4sxtcp:
  3434.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  3435.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3436.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP \
  3437.     -DSTERMIOX -DTCPSOCKET $(KFLAGS)" \
  3438.     "LIBS= -lsocket -lnsl $(LIBS)" "LNKFLAGS= -s"
  3439.  
  3440. #AT&T UNIX System V R4.
  3441. #As above + curses.
  3442. sys5r4sxtcpc:
  3443.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  3444.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3445.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP \
  3446.     -DSTERMIOX  -DCK_CURSES -DTCPSOCKET $(KFLAGS)" \
  3447.     "LIBS= -lsocket -lnsl -lcurses -ltermcap $(LIBS)" "LNKFLAGS = -s"
  3448.  
  3449. #AT&T UNIX System V R4.  CONSENSYS SVR4.2-1.
  3450. #Has <sys/termiox.h>, regular Berkeley sockets library, i.e. in.h and inet.h
  3451. #are not misplaced in sys (rather than netinet and arpa, respectively).
  3452. #Uses ANSI C constructs, <sys/termiox.h>, etc.
  3453. # Fullscreen -DCK_CURSES added (with curses & termcap libs)
  3454. # Submission by Robert Weiner/Programming Plus, rweiner@watsun.cc.columbia.edu
  3455. sys5r4sxtcpf:
  3456.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  3457.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3458.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP \
  3459.     -DSTERMIOX -DTCPSOCKET -DCK_CURSES $(KFLAGS)" \
  3460.     "LIBS= -lsocket -lnsl -L/usr/ccs/lib -lcurses -ltermcap" \
  3461.     "LIBS=$(LIBS)" "LNKFLAGS = -s"
  3462.  
  3463. #Smallest possible version for System V R4
  3464. s5r4m:
  3465.     @echo Minimum size
  3466.     $(MAKE) "MAKE=$(MAKE)" sys5r4sx KTARGET=$${KTARGET:-$(@)} \
  3467.     "KFLAGS=$(KFLAGS) -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG \
  3468.     -DNOSCRIPT -DNOCSETS -DNOICP -DNOMSEND -UTCPSOCKET" "LNKFLAGS = -s"
  3469.  
  3470. #Smallest possible interactive version of above
  3471. s5r4mi:
  3472.     @echo Minimum interactive
  3473.     $(MAKE) "MAKE=$(MAKE)" sys5r4sx \
  3474.     "KFLAGS=-DNOSPL -DNOXMIT -DNOMSEND -DNOFRILLS -DNOSHOW \
  3475.     -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG -DNOSCRIPT -DNOCSETS -DNOSETKEY \
  3476.     -UTCPSOCKET $(KFLAGS)" "LNKFLAGS = -s"
  3477.  
  3478. #AT&T UNIX System V R4, has <sys/termiox.h>
  3479. #ANSI C function prototyping disabled.
  3480. sys5r4sxna:
  3481.     @echo No ANSI C prototyping...
  3482.     $(MAKE) "MAKE=$(MAKE)" sys5r4sx KTARGET=$${KTARGET:-$(@)} \
  3483.     "KFLAGS=$(KFLAGS) -DNOANSI"
  3484.  
  3485. #Stratus FTX.
  3486. ftx:
  3487.     @echo 'Making C-Kermit $(CKVER) for Stratus FTX 3.x...'
  3488.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3489.     "CFLAGS = -O -DSVR4 -DFTX -DDIRENT -DHDBUUCP -DSTERMIOX 
  3490.     -DNOGETUSERSHELL -DNOLEARN +DA1.1 $(KFLAGS)" \
  3491.     "LNKFLAGS = -s" "LIBS=$(LIBS)"
  3492.  
  3493. #Stratus FTX + TCP/IP.
  3494. ftxtcp:
  3495.     @echo 'Making C-Kermit $(CKVER) for Stratus FTX 3.x...'
  3496.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3497.     "CFLAGS = -O -DSVR4 -DFTX -DDIRENT -DHDBUUCP -DNOGETUSERSHELL \
  3498.     -DSTERMIOX -DTCPSOCKET -DNO_DNS_SRV +DA1.1 $(KFLAGS)" \
  3499.     "LIBS= -lsocket -lnsl $(LIBS)" "LNKFLAGS= -s"
  3500.  
  3501. #NCR MP-RAS 2.03 or 3.02
  3502. mpras:
  3503.     @echo 'Making C-Kermit $(CKVER) for NCR MP-RAS...'
  3504.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3505.     "CFLAGS = -O -DSVR4 -DNCRMPRAS -DDIRENT -DHDBUUCP -DSTERMIOX \
  3506.     -DNOGETUSERSHELL -DNOLEARN -DNO_DNS_SRV $(KFLAGS)" \
  3507.     "LNKFLAGS = -s" "LIBS=$(LIBS)"
  3508.  
  3509. #NCR MP-RAS 2.03 or 3.02 with TCP/IP and curses
  3510. mprastcpc:
  3511.     @echo 'Making C-Kermit $(CKVER) for NCR MP-RAS + TCP/IP + curses...'
  3512.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CFLAGS=-DTCPSOCKET \
  3513.     -DCK_CURSES -DSVR4 -DNCRMPRAS -DDIRENT -DHDBUUCP -DSTERMIOX -DNOLEARN \
  3514.     -DNOGETUSERSHELL -DNO_DNS_SRV -O $(KFLAGS)" "LNKFLAGS = -s" \
  3515.     "LIBS= -lsocket -lnsl -lcurses -ltermcap $(LIBS)"
  3516.  
  3517. #SINIX-L V5.41 - includes curses, tcp/ip - Use this one for i386.
  3518. #This version of SINIX doesn't like fdopen() or popen().
  3519. sinix541:
  3520.     @echo 'Making C-Kermit $(CKVER) for Siemens/Nixdorf SINIX V5.41/i386'
  3521.     $(MAKE) ckcpro.$(EXT) "CFLAGS = -DSINIX -DSVR4 -DDIRENT -DHDBUUCP \
  3522.     -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DSELECT -DCK_ANSIC -DNO_DNS_SRV \
  3523.     -DSNI541 -DNOGETUSERSHELL -DNONETCMD -DNOPOPEN -kansi -W0 $(KFLAGS)"
  3524.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3525.     "CFLAGS = -DSINIX -DSVR4 -DDIRENT -DHDBUUCP -DNO_DNS_SRV -DNOPOPEN \
  3526.     -DFNFLOAT -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DSELECT -DCK_ANSIC \
  3527.     -DSNI541 -DNOGETUSERSHELL -DNONETCMD -kansi -W0 -O $(KFLAGS)" \
  3528.     "LIBS= -lsocket -lnsl -lcurses -ltermcap -lm" "LNKFLAGS = -s"
  3529.  
  3530. sinix541i:
  3531.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=$(KFLAGS)" sinix541
  3532.  
  3533. #SINIX V5.42 - includes curses, tcp/ip, everything - Use this one for MIPS.
  3534. # As of C-Kermit 7.1, optimization removed -- takes (literally) forever.
  3535. sinix542:
  3536.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3537.     "CFLAGS = -DSINIX -DSVR4 -DDIRENT -DHDBUUCP -DNO_DNS_SRV \
  3538.     -DFNFLOAT -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DSELECT -DCK_ANSIC \
  3539.     -DSNI542 -DNOGETUSERSHELL -kansi -W0 $(KFLAGS)" \
  3540.     "LIBS= -lsocket -lnsl -lcurses -ltermcap -lm" "LNKFLAGS = -s"
  3541.  
  3542. #SINIX V5.42 - includes curses, tcp/ip, everything - Use this one for Intel.
  3543. # (Note: SNI discontinued Intel support after 5.42.)
  3544. sinix542i:
  3545.     @echo 'Making C-Kermit $(CKVER) for Siemens/Nixdorf SINIX-Z V5.42...'
  3546.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3547.     "CFLAGS = -DSINIX -DSVR4 -DDIRENT -DHDBUUCP -DFNFLOAT -DSTERMIOX \
  3548.     -DCK_CURSES -DTCPSOCKET -DSELECT -DCK_ANSIC -DNO_DNS_SRV -kansi \
  3549.     -DSNI542 $(KFLAGS)" \
  3550.     "LIBS= -lsocket -lnsl -lcurses -ltermcap -lm" \
  3551.     "LNKFLAGS = -s"
  3552.  
  3553. #Siemens Nixdorf Reliant UNIX V5.43 - includes curses, tcp/ip, everything:
  3554. # . gettimeofday() suddenly has only one arg instead of two (GTODONEARG).
  3555. # . The syntax of the Olimit specifier changed.
  3556. # . The name was changed from SINIX to Reliant UNIX in version 5.43C.
  3557. sni543:
  3558.     @echo 'Making C-Kermit $(CKVER) for Siemens/Nixdorf Reliant UNIX V5.43'
  3559.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3560.     "CFLAGS = -DSINIX -DSNI543 -DSVR4 -DDIRENT -DHDBUUCP \
  3561.     -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DSELECT -DCK_ANSIC -DGTODONEARG \
  3562.     -DNO_DNS_SRV -kansi -W0 -O -F Olimit,3100 $(KFLAGS)" \
  3563.     "LIBS= -lsocket -lnsl -lcurses -ltermcap" "LNKFLAGS = -s"
  3564.  
  3565. #Siemens Nixdorf Reliant UNIX V5.44 - Like 5.43 but with different banner.
  3566. sni544:
  3567.     @echo 'Making C-Kermit $(CKVER) for Siemens/Nixdorf Reliant UNIX V5.44'
  3568.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3569.     "CFLAGS = -DSINIX -DSNI544 -DSVR4 -DDIRENT -DHDBUUCP \
  3570.     -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DSELECT -DCK_ANSIC -DGTODONEARG \
  3571.     -DNO_DNS_SRV -kansi -W0 -O -K Olimit,3100 $(KFLAGS)" \
  3572.     "LIBS= -lsocket -lnsl -lcurses -ltermcap" "LNKFLAGS = -s"
  3573.  
  3574. #Commodore Amiga with AT&T UNIX System V R4 and TCP/IP support.
  3575. #Has <sys/termiox.h>.
  3576. svr4amiganet:
  3577.     @echo 'Making C-Kermit $(CKVER) for Amiga SVR4 + TCP/IP...'
  3578.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC=gcc" "CC2=gcc" \
  3579.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DSTERMIOX \
  3580.     -DTCPSOCKET -DCK_CURSES $(KFLAGS)" "LNKFLAGS = -s" \
  3581.     "LIBS = -lsocket -lnsl -ltermlib"
  3582.  
  3583. #SCO (Novell (Univel)) UnixWare 1.x or 2.0, no TCP/IP.
  3584. #This assumes the Novell SDK 1.0, which has <sys/termiox.h>.
  3585. #UnixWare users with the "Prime Time Freeware" CD-ROM SDK will probably have
  3586. #to use the sys5r4 entry (no termiox.h file, so no hardware flow control).
  3587. #Change -DSELECT to -DCK_POLL if -DSELECT causes problems.
  3588. # NOTE: Unixware 1.x builds have not been tried in C-Kermit 7.0.
  3589. unixware:
  3590.     $(MAKE) "MAKE=$(MAKE)" sys5r4sx KTARGET=$${KTARGET:-$(@)} \
  3591.     "KFLAGS=-DOLD_UNIXWARE -DCK_NEWTERM -DSELECT -DNOGETUSERSHELL \
  3592.     -DNOSYSLOG $(KFLAGS)" "LIBS=-lcrypt"
  3593.  
  3594. #UnixWare 1.x or 2.0 with TCP/IP and curses.
  3595. #fork()-based CONNECT - no high serial speeds.
  3596. unixwarenetc:
  3597.     $(MAKE) "MAKE=$(MAKE)" sys5r4sxtcpc KTARGET=$${KTARGET:-$(@)} \
  3598.     "KFLAGS=-DOLD_UNIXWARE -DCK_NEWTERM -DSELECT -DNOGETUSERSHELL \
  3599.     -DNOSYSLOG $(KFLAGS)" "LIBS=-lcrypt -lresolv"
  3600.  
  3601. uw10:
  3602.     $(MAKE) unixwarenetc KTARGET=$${KTARGET:-$(@)} "KFLAGS=$(KFLAGS)"
  3603.  
  3604. #This is for Unixware 2.0.x only - use unixware21 for UW 2.1.x.
  3605. #Has special library search and enables special kludge around library
  3606. #foulup regarding vfork() (which Kermit doesn't use).  Forces POSIX-style
  3607. #hangup.
  3608. unixware20:
  3609.     @echo 'Making C-Kermit $(CKVER) for UnixWare 2.0.x...'
  3610.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3611.     "CFLAGS = -O -DOLD_UNIXWARE -DSELECT -DSVR4 -DDIRENT -DHDBUUCP \
  3612.     -DBIGBUFOK -DNOGETUSERSHELL -DSTERMIOX  -DCK_CURSES -DTCPSOCKET \
  3613.     -DUW200 -DFNFLOAT -DCK_NEWTERM -DNOSYSLOG $(KFLAGS)" \
  3614.     "LIBS= -lsocket -lnsl -lcurses -ltermcap -lcrypt -lgen -lm -lresolv" \
  3615.     "LNKFLAGS = -s"
  3616.  
  3617. uw20:
  3618.     $(MAKE) unixware20 KTARGET=$${KTARGET:-$(@)} "KFLAGS=$(KFLAGS)"
  3619.  
  3620. #Adds big buffers ("large memory model") - otherwise the same as UnixWare 1.x.
  3621. unixware21:
  3622.     @echo 'Making C-Kermit $(CKVER) for UnixWare 2.1.x...'
  3623.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3624.     "CFLAGS = -O -DUNIXWARE -DSELECT -DSVR4 -DDIRENT -DHDBUUCP -DBIGBUFOK \
  3625.     -DNOGETUSERSHELL -DNOSYSLOG -DSTERMIOX  -DCK_CURSES -DTCPSOCKET \
  3626.     -DCK_NEWTERM -DFNFLOAT $(KFLAGS)" \
  3627.     "LIBS= -lsocket -lnsl -lcurses -ltermcap -lcrypt -lm -lresolv \
  3628.     $(LIBS)" "LNKFLAGS = -s"
  3629.  
  3630. uw21:
  3631.     $(MAKE) unixware21 KTARGET=$${KTARGET:-$(@)} "KFLAGS=$(KFLAGS)"
  3632.  
  3633. #Unixware 2.1 with IKSD support
  3634. uw21iksd:
  3635.     $(MAKE) unixware21 KTARGET=$${KTARGET:-$(@)} \
  3636.     "KFLAGS=-DCK_SHADOW $(KFLAGS)" "LIBS= -lgen"
  3637.  
  3638. #UnixWare 7 with tc[gs]etspeed() high serial speeds & select()-based CONNECT
  3639. #NOTE: This is the one we use.
  3640. unixware7t:
  3641.     @echo 'Making C-Kermit $(CKVER) for UnixWare 7 with POSIX i/o...'
  3642.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3643.     "CFLAGS = -O -DUNIXWARE -DSELECT -DSVR4 -DDIRENT -DHDBUUCP -DBIGBUFOK \
  3644.     -DFNFLOAT -DNOGETUSERSHELL -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DPOSIX \
  3645.     -DUW7 -DUSETCSETSPEED -DCK_NEWTERM -DNOLSTAT -DDCLTIMEVAL \
  3646.     -DNEEDMDMDEFS $(KFLAGS)" \
  3647.     "LIBS=-lsocket -lnsl -lcurses -ltermcap -lcrypt -lm -lresolv $(LIBS)" \
  3648.     "LNKFLAGS = -s"
  3649.  
  3650. #UnixWare 7 - select()-based CONNECT - no POSIX i/o - no high serial speeds.
  3651. #In other words, just like the UnixWare 1 and 2 builds.
  3652. unixware7x:
  3653.     @echo 'Making C-Kermit $(CKVER) for UnixWare 7...'
  3654.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3655.     "CFLAGS = -O -DUNIXWARE -DSELECT -DSVR4 -DDIRENT -DHDBUUCP -DBIGBUFOK \
  3656.     -DUW7 -DNOGETUSERSHELL -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DNOLSTAT \
  3657.     -DFNFLOAT -DCK_NEWTERM $(KFLAGS)" \
  3658.     "LIBS=-lsocket -lnsl -lcurses -ltermcap -lcrypt -lm -lresolv $(LIBS)" \
  3659.     "LNKFLAGS = -s"
  3660.  
  3661. #UnixWare 7 with POSIX cfset[oi]speed() to allow high serial speeds.
  3662. #(but the high speeds don't work)
  3663. unixware7p:
  3664.     @echo 'Making C-Kermit $(CKVER) for UnixWare 7 with POSIX i/o...'
  3665.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3666.     "CFLAGS = -O -DUNIXWARE -DSELECT -DSVR4 -DDIRENT -DHDBUUCP -DBIGBUFOK \
  3667.     -DUW7 -DNOGETUSERSHELL -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DPOSIX \
  3668.     -DFNFLOAT -DCK_NEWTERM -DNOLSTAT $(KFLAGS)" \
  3669.     "LIBS=-lsocket -lnsl -lcurses -ltermcap -lcrypt -lm -lresolv $(LIBS)" \
  3670.     "LNKFLAGS = -s"
  3671.  
  3672. # UnixWare 7 built with gcc - This does not work at all...
  3673. # Reportedly gcc 2.8.1 is broken on Unixware 7.  Try egcs?
  3674. unixware7g:
  3675.     @echo 'Making C-Kermit $(CKVER) for UnixWare 7 with gcc...'
  3676.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3677.     "CC = gcc" "CC2 = gcc" "LNKFLAGS = -s -shlib"
  3678.     "CFLAGS = -O -DUNIXWARE -DSELECT -DSVR4 -DDIRENT -DHDBUUCP -DBIGBUFOK \
  3679.     -DUW7 -DNOGETUSERSHELL -DSTERMIOX  -DCK_CURSES -DTCPSOCKET -DNOLSTAT \
  3680.     -DFNFLOAT -DCK_NEWTERM $(KFLAGS)" \
  3681.     "LIBS=-lsocket -lnsl -lcurses -ltermcap -lcrypt -lm -lresolv $(LIBS)" \
  3682.     "LNKFLAGS = -s"
  3683.  
  3684. unixware7:
  3685.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=$(KFLAGS)" unixware7t \
  3686.     KTARGET=$${KTARGET:-$(@)}
  3687.  
  3688. uw7:
  3689.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=$(KFLAGS)" unixware7t \
  3690.     KTARGET=$${KTARGET:-$(@)}
  3691.  
  3692. #SCO OpenUNIX 8.0
  3693. ou8:
  3694.     @echo 'Making C-Kermit $(CKVER) for Open UNIX 8...'
  3695.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=-DOU8 $(KFLAGS)" unixware7t \
  3696.     KTARGET=$${KTARGET:-$(@)}
  3697.  
  3698. #UnixWare 7 with OpenSSL
  3699. uw7ssl:
  3700.     @echo 'Making C-Kermit $(CKVER) for UnixWare 7 and OpenSSL...'
  3701.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} \
  3702.     "CFLAGS = -O -DCK_AUTHENTICATION -DCK_SSL -DCK_SHADOW \
  3703.     -DUNIXWARE -DSELECT -DSVR4 -DDIRENT -DHDBUUCP -DBIGBUFOK \
  3704.     -DFNFLOAT -DNOGETUSERSHELL -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DPOSIX \
  3705.     -DUW7 -DUSETCSETSPEED -DCK_NEWTERM -DNOLSTAT -DDCLTIMEVAL \
  3706.     $(SSLINC) $(KFLAGS)" \
  3707.     "LIBS=-lsocket -lnsl -lcurses -ltermcap -lcrypt -lm -lresolv \
  3708.     -lgen -lcudk70 $(SSLLIB) -lssl -lcrypto $(LIBS)" \
  3709.     "LNKFLAGS = -s"
  3710.  
  3711. #As above but includes Shadow password support needed for IKSD.
  3712. uw7iksd:
  3713.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=-DCK_SHADOW $(KFLAGS)" \
  3714.     KTARGET=$${KTARGET:-$(@)} "LIBS= -lgen" unixware7t
  3715.  
  3716. #As above but links with static API for realpath() so a binary built
  3717. #with this target on UW7.1 will also work on 7.0.  Requires SCO UDK
  3718. #rather than the stock compiler.
  3719. uw7iksdudk:
  3720.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=-DCK_SHADOW $(KFLAGS)" \
  3721.     KTARGET=$${KTARGET:-$(@)} "LIBS= -lgen -lcudk70" unixware7t
  3722.  
  3723. #ESIX SVR4.0.3 or 4.04 with TCP/IP support.
  3724. #Has <sys/termiox.h>, ANSI C function prototyping disabled.
  3725. #Add -m486 to CFLAGS if desired.
  3726. esixr4:
  3727.     @echo 'Making C-Kermit $(CKVER) for ESIX SVR4 + TCP/IP...'
  3728.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3729.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DNOANSI \
  3730.     -DSTERMIOX -DTCPSOCKET $(KFLAGS)" "LNKFLAGS = -s" \
  3731.     "LIBS = -lsocket -lnsl"
  3732.  
  3733. #AT&T UNIX System V R4.
  3734. #Has <sys/termiox.h>, Wollongong WIN/TCP TCP/IP.
  3735. sys5r4sxnet:
  3736.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  3737.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3738.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP \
  3739.     -DSTERMIOX -DWOLLONGONG $(KFLAGS)" "LNKFLAGS = -s"
  3740.  
  3741. #AT&T UNIX System V R4, no <termio.x> or <sys/termio.x>.
  3742. sys5r4nx:
  3743.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  3744.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3745.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DNOLEARN $(KFLAGS)" \
  3746.     "LNKFLAGS = -s"
  3747.  
  3748. #AT&T UNIX System V R4, no <termio.x> or <sys/termio.x>, curses, TCP/IP.
  3749. sys5r4nxnetc:
  3750.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  3751.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3752.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP \
  3753.     -DCK_CURSES -DTCPSOCKET $(KFLAGS)" \
  3754.     "LIBS = -lcurses -lsocket -lnsl -ltcpip" \
  3755.     "LNKFLAGS = -s"
  3756.  
  3757. #AT&T UNIX System V R4, no <termio.x> or <sys/termio.x>, Wollongong TCP/IP.
  3758. sys5r4nxtwg:
  3759.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  3760.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3761.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DWOLLONGONG $(KFLAGS)"
  3762.     "LNKFLAGS = -s"
  3763.  
  3764. #ICL UNIX System V R4.(DRS N/X) version :-
  3765. #UNIX System V Release 4.0 ICL DRS 6000 (SPARC)
  3766. #DRS/NX 6000 SVR4 Version 5  Level 1  Increment 4
  3767. #Has <sys/termiox.h>, regular Berkeley sockets library, i.e. in.h and inet.h
  3768. #are not misplaced in sys (rather than netinet and arpa, respectively).
  3769. #Uses ANSI C constructs, advisory file locking on devices, etc.
  3770. #Remove -lnsl if it causes trouble.
  3771. iclsys5r4:
  3772.     @echo 'Making C-Kermit $(CKVER) for ICL UNIX System V R4 (DRS N/X)'
  3773.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3774.     "CFLAGS = -O -DSVR4 -DICL_SVR4 -DDIRENT -DHDBUUCP -DNOGETUSERSHELL \
  3775.     -DSTERMIOX -DTCPSOCKET $(KFLAGS)" \
  3776.     "LIBS= -lsocket -lnsl -lresolv " "LNKFLAGS = -s"
  3777.  
  3778. #As above but for DRS/NX 4.2MP 7MPlus.
  3779. iclsys5r4m+:
  3780.     @echo 'Making C-Kermit $(CKVER) for ICL UNIX System V R4 DRS/NX 4.2MP+'
  3781.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3782.     "CFLAGS = -O -DSVR4 -DICL_SVR4 -DDIRENT -DHDBUUCP -DNOIKSD \
  3783.     -DSTERMIOX -DTCPSOCKET $(KFLAGS)" \
  3784.     "LIBS= -lsocket -lnsl -lm -lc -g -lgen " "LNKFLAGS = -s"
  3785.  
  3786. #As above but for DRS/NX 4.2MP 7MPlus with IKSD support.
  3787. iclsys5r4m+iksd:
  3788.     @echo 'Making C-Kermit $(CKVER) for ICL UNIX System V R4 DRS/NX 4.2MP+'
  3789.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3790.     "CFLAGS = -O -DSVR4 -DICL_SVR4 -DDIRENT -DHDBUUCP -DNOGETUSERSHELL \
  3791.     -DSTERMIOX -DTCPSOCKET $(KFLAGS)" \
  3792.     "LIBS= -lsocket -lnsl -lm -lc -g -lgen -lresolv " "LNKFLAGS = -s"
  3793.  
  3794. iclsys5r4_486:
  3795.     $(MAKE) "MAKE=$(MAKE)" iclsys5r4 KTARGET=$${KTARGET:-$(@)}
  3796.  
  3797. #Data General DG/UX 4.30 (System V R3) for DG AViiON, with TCP/IP support.
  3798. dgux430:
  3799.     @echo 'Making C-Kermit $(CKVER) for DG AViiON DG/UX 4.30...'
  3800.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3801.     "CFLAGS = -O -DDGUX430 -DSVR3 -DDIRENT -DTCPSOCKET \
  3802.     -DNOINADDRX -DNOGETUSERSHELL $(KFLAGS)"
  3803.  
  3804. #Data General DG/UX 4.30 for DG AViiON, with TCP/IP support with BSDisms.
  3805. dgux430bsd:
  3806.     @echo 'Making C-Kermit $(CKVER) for DG AViiON DG/UX 4.30...'
  3807.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3808.     "CFLAGS = -O -DDGUX430 -D_BSD_SOURCE -DBSD4 \
  3809.     -DNOINADDRX -DTCPSOCKET -DNOGETUSERSHELL $(KFLAGS)"
  3810.  
  3811. #Data General DG/UX 5.4 (System V R4) for DG AViiON, with TCP/IP support.
  3812. #Add -lsocket -lnsl if inet_addr comes up missing...
  3813. #Hmmm - I really think CK_POLL can be removed from this one in which case
  3814. #there is no difference between dgux540 and dgux540i.
  3815. dgux540:
  3816.     @echo 'Making C-Kermit $(CKVER) for DG AViiON DG/UX 5.40...'
  3817.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3818.     "CFLAGS = -O -DDGUX540 -DDIRENT -DHDBUUCP -DNOINADDRX \
  3819.     -DSTERMIOX -DTCPSOCKET -DCK_POLL -DNOGETUSERSHELL $(KFLAGS)"
  3820.  
  3821. #Data General DG/UX 5.40 (System V R4) for Intel AViiON, with TCP/IP support.
  3822. dgux540i:
  3823.     @echo 'Making C-Kermit $(CKVER) for DG AViiON DG/UX 5.40...'
  3824.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3825.     "CFLAGS = -O -DDGUX540 -DDIRENT -DHDBUUCP -DNOINADDRX \
  3826.     -DSTERMIOX -DTCPSOCKET -DNOGETUSERSHELL $(KFLAGS)" \
  3827.     "LIBS = -lsocket -lnsl"
  3828.  
  3829. dgux54:
  3830.     make dgux540 KTARGET=$${KTARGET:-$(@)}
  3831.  
  3832. #Data General DG/UX 5.4 (= System V R4) for DG AViiON, with TCP/IP support.
  3833. # And curses.
  3834. dgux540c:
  3835.     @echo 'Making C-Kermit $(CKVER) for DG AViiON DG/UX 5.4...'
  3836.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3837.     "CFLAGS = -O -DDGUX540 -DDIRENT -DHDBUUCP -DNOINADDRX \
  3838.     -DSTERMIOX -DTCPSOCKET -DCK_CURSES -DCK_NEWTERM -DNOGETUSERSHELL \
  3839.     $(KFLAGS)" "LIBS= -lcurses8 -ltermcap" "LNKFLAGS = -s"
  3840.  
  3841. #As above but for Intel - only difference is name library names.
  3842. dgux540ic:
  3843.     @echo 'Making C-Kermit $(CKVER) for DG AViiON DG/UX 5.40...'
  3844.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3845.     "CFLAGS = -O -DDGUX540 -DDIRENT -DHDBUUCP -DNOINADDRX \
  3846.     -DSTERMIOX -DTCPSOCKET -DCK_CURSES -DCK_NEWTERM -DNOGETUSERSHELL \
  3847.     $(KFLAGS)" "LIBS = -lsocket -lnsl -lcurses -ltermcap"
  3848.  
  3849. dgux54c:
  3850.     make dgux540c KTARGET=$${KTARGET:-$(@)}
  3851.  
  3852. #DG/UX 5.4R3.10
  3853. dgux54310:
  3854.     @echo 'Making C-Kermit $(CKVER) for DG AViiON DG/UX 5.4R3...'
  3855.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3856.     "CFLAGS = -DDGUX540 -DDGUX54310 -DDIRENT -DHDBUUCP -DSELECT \
  3857.     -DSTERMIOX -DTCPSOCKET -DCK_CURSES -DCK_NEWTERM    -DNOGETUSERSHELL \
  3858.     -DNOINADDRX $(KFLAGS)" "LIBS= -lcurses8 -ltermcap" "LNKFLAGS = -s"
  3859.  
  3860. #DG/UX 5.4R4.10 - Includes everything.
  3861. dgux54410:
  3862.     @echo 'Making C-Kermit $(CKVER) for DG/UX 5.4R4.10...'
  3863.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3864.     "CFLAGS = -O -DDGUX540 -DDGUX54410 -DDIRENT -DHDBUUCP -DSELECT \
  3865.     -DSTERMIOX -DTCPSOCKET -DCK_CURSES -DCK_NEWTERM -DNOGETUSERSHELL \
  3866.     -DNOINADDRX $(KFLAGS)" "LIBS = -lsocket -lnsl -lcurses -ltermcap"
  3867.  
  3868. #DG/UX 5.4R4.11 - Includes everything.
  3869. dgux54411:
  3870.     @echo 'Making C-Kermit $(CKVER) for DG/UX 5.4R4.11...'
  3871.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3872.     "CFLAGS = -O -DDGUX540 -DDGUX54411 -DDIRENT -DHDBUUCP -DSELECT \
  3873.     -DSTERMIOX -DTCPSOCKET -DCK_CURSES -DCK_NEWTERM -DNOGETUSERSHELL \
  3874.     -DNOINADDRX $(KFLAGS)" "LIBS = -lsocket -lnsl -lcurses -ltermcap"
  3875.  
  3876. #DG/UX 5.4R4.20 - Includes everything.
  3877. dgux54420:
  3878.     @echo 'Making C-Kermit $(CKVER) for DG/UX 5.4R4.20...'
  3879.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3880.     "CFLAGS = -O -DDGUX540 -DDGUX54420 -DDIRENT -DHDBUUCP -DSELECT \
  3881.     -DSTERMIOX -DTCPSOCKET -DCK_CURSES -DCK_NEWTERM -DNOGETUSERSHELL \
  3882.     -DNOINADDRX $(KFLAGS)" \
  3883.     "LIBS = -lsocket -lresolv -lnsl -lcurses -ltermcap"
  3884.  
  3885. #Silicon Graphics System V R3 with BSD file system (IRIS)
  3886. iris:
  3887.     @echo Making C-Kermit $(CKVER) for Silicon Graphics IRIX pre-3.3...
  3888.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3889.     "CFLAGS = -O -DSVR3 -DLONGFN -DNOLEARN $(KFLAGS) -I/usr/include/bsd" \
  3890.     "LIBS = -lbsd"
  3891.  
  3892. #Silicon Graphics IRIS System V R3
  3893. irix33:
  3894.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 3.3...'
  3895.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3896.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DNOLEARN $(KFLAGS) -O" \
  3897.     "LNKFLAGS = -s"
  3898.  
  3899. #Silicon Graphics Iris Indigo with IRIX 4.0.0 or 5.0...
  3900. #Strict ANSI C compilation, TCP/IP support included
  3901. irix40:
  3902.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 4.0...'
  3903.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3904.     "CFLAGS = -DIRIX40 -DSVR3 -DDIRENT -DHDBUUCP -DPWID_T=uid_t \
  3905.     -DCK_ANSIC -DTCPSOCKET $(KFLAGS) -O -Olimit 1600 -I/usr/include/bsd" \
  3906.     "LNKFLAGS = -s"
  3907.  
  3908. #As above, but with fullscreen display (curses) and Sun Yellow Pages support.
  3909. #NOTE: IRIX versions prior to 5 run COFF binaries.
  3910. irix40ypc:
  3911.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 4.0.'
  3912.     @echo 'Includes fullscreen file display and Sun Yellow Pages...'
  3913.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3914.     "CFLAGS = -DIRIX40 -DSVR3 -DDIRENT -DHDBUUCP -DCK_CURSES \
  3915.     -DPWID_T=uid_t -DCK_ANSIC -DTCPSOCKET $(KFLAGS) \
  3916.     -O -Olimit 1600 -I/usr/include/bsd" \
  3917.     "LIBS = -lcurses -lsun" "LNKFLAGS = -s"
  3918.  
  3919. # Silicon Graphics Iris Series 4D/*, IRIX 4.0.x, -O4 ucode optimized.
  3920. # Huge temporary file space needed for ucode optimizer.  If you get an error
  3921. # like "ugen: internal error writing to /tmp/ctmca08777: Error 0", define the
  3922. # the TMPDIR environment variable to point to a file system that has more
  3923. # space available, e.g. "setenv TMPDIR /usr/tmp".
  3924. irix40u:
  3925.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 4.0...'
  3926.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3927.     "CFLAGS = -DIRIX40 -DSVR3 -DDIRENT -DHDBUUCP -DPWID_T=uid_t \
  3928.     -DCK_ANSIC -DTCPSOCKET $(KFLAGS) -O4 -Olimit 1600" \
  3929.     "LNKFLAGS=-O4 -Olimit 1600 -s" "EXT=u"
  3930.  
  3931. # As above, with Curses Support added
  3932. irix40uc:
  3933.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 4.0...'
  3934.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3935.     "CFLAGS = -DIRIX40 -DSVR3 -DDIRENT -DHDBUUCP -DPWID_T=uid_t \
  3936.     -DCK_ANSIC -DCK_CURSES -DTCPSOCKET $(KFLAGS) -O4 -Olimit 1600" \
  3937.     "LNKFLAGS=-O4 -Olimit 1600 -s" "EXT=u" "LIBS= -lcurses -ltermcap"
  3938.  
  3939. #Silicon Graphics IRIX 5.x.
  3940. #Yellow Pages and Curses support included.
  3941. #IRIX version 5.x can run COFF or ELF binaries.
  3942. irix51:
  3943.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 5.x'
  3944.     @echo 'Includes fullscreen file display and Yellow Pages...'
  3945.     @echo 'Add -mips<n> to CFLAGS specify a particular hardware target.'
  3946.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3947.     "CFLAGS = -DIRIX51 -DSVR4 -DDIRENT -DHDBUUCP -DCK_CURSES -DCK_NEWTERM \
  3948.     -DPWID_T=uid_t -DCK_ANSIC -DTCPSOCKET -DSELECT -DNOGETUSERSHELL \
  3949.     $(KFLAGS) -O -Olimit 2400" "LIBS = -lcurses" "LNKFLAGS = -s"
  3950.  
  3951. irix51ypc:
  3952.     $(MAKE) "MAKE=$(MAKE)" irix51 KTARGET=$${KTARGET:-$(@)}
  3953.  
  3954. #IRIX 5.2 adds RTS/CTS
  3955. irix52:
  3956.     $(MAKE) "MAKE=$(MAKE)" irix51 KTARGET=$${KTARGET:-$(@)} \
  3957.     "KFLAGS=-DIRIX52 -DCK_RTSCTS"
  3958.  
  3959. irix53:
  3960.     $(MAKE) "MAKE=$(MAKE)" irix51 KTARGET=$${KTARGET:-$(@)} \
  3961.     "KFLAGS=-DIRIX52 -DIRIX53 -DCK_RTSCTS"
  3962.  
  3963. #Silicon Graphics IRIX 6.[024] common stuff.
  3964. #Yellow Pages and Curses support included.
  3965. #IRIX version 6.0 and later runs only ELF binaries.
  3966. #Depends on code changes in ckudeb.h that make -DIRIX6x define all
  3967. #lower IRIX6x values and IRIX51.
  3968. irix6x:
  3969.     @echo 'Includes fullscreen file display and Yellow Pages...'
  3970.     @echo 'Add -mips<n> to specify a particular hardware target.'
  3971.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3972.     "CFLAGS = -DSVR4 -DDIRENT -DHDBUUCP -DNOGETUSERSHELL \
  3973.     -DCK_CURSES -DCK_NEWTERM -DPWID_T=uid_t -DCK_ANSIC -DTCPSOCKET \
  3974.     -DSELECT -DCK_RTSCTS -O $(KFLAGS)" \
  3975.     "LIBS = -lcurses" "LNKFLAGS = -s $(LNKFLAGS)"
  3976.  
  3977. #Silicon Graphics IRIX 6.0.
  3978. irix60:
  3979.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 6.0'
  3980.     @$(MAKE) "MAKE=$(MAKE)" \
  3981.     "KFLAGS=-DIRIX60 -Olimit 2138 $(KFLAGS)" \
  3982.     irix6x KTARGET=$${KTARGET:-$(@)}
  3983.  
  3984. #Silicon Graphics IRIX 6.2.
  3985. #Serial speeds > 38400 are available in IRIX 6.2 on O-class machines only.
  3986. #Note: Olimit must be a number > 0.
  3987. irix62:
  3988.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 6.2'
  3989.     @$(MAKE) "MAKE=$(MAKE)" \
  3990.     LNKFLAGS="-Wl,-woff,84" \
  3991.     "KFLAGS=-DIRIX62 -Olimit 4700 $(KFLAGS)" \
  3992.     irix6x KTARGET=$${KTARGET:-$(@)}
  3993.  
  3994. #Silicon Graphics IRIX 6.3.
  3995. irix63:
  3996.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 6.3'
  3997.     @$(MAKE) "MAKE=$(MAKE)" irix62 KTARGET=$${KTARGET:-$(@)} \
  3998.     "KFLAGS=-DIRIX63"
  3999.  
  4000. #Silicon Graphics IRIX 6.4.
  4001. # -woff,84 to linker stops complaints about no symbols loaded from
  4002. # curses, and -woff 1110 stops complaints about unreachable "break;"
  4003. # statements in ckcpro.c among others.
  4004. # tested on SGI Octane, running IRIX 6.4 up to 115200 bps.
  4005. # -Olimit 0 means infinite.
  4006. irix64:
  4007.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 6.4'
  4008.     @$(MAKE) "MAKE=$(MAKE)" \
  4009.     LNKFLAGS="-Wl,-woff,84" \
  4010.     "KFLAGS=-DIRIX64 -DCK_RTSCTS -Olimit 3000 -woff 1110 $(KFLAGS)" \
  4011.     irix6x KTARGET=$${KTARGET:-$(@)}
  4012.  
  4013. irix64gcc:
  4014.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 6.4 gcc'
  4015.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  4016.     "CFLAGS= -DSVR4 -DIRIX64 -DCK_CURSES -DTCPSOCKET -DNOCOTFMC \
  4017.     $(KFLAGS) -O" "LIBS= -lcurses -ltermcap -lcrypt"
  4018.  
  4019. #Note the new Optimization option syntax for MIPSpro CC 7.2.1.2m.
  4020. irix65:
  4021.     @echo 'Making C-Kermit $(CKVER) for SGI IRIX 6.5'
  4022.     @$(MAKE) "MAKE=$(MAKE)" LNKFLAGS="-Wl,-woff,84" \
  4023.     "KFLAGS=-DIRIX65 -DCK_RTSCTS -OPT:Olimit=0 -woff 1110,1552,1174 \
  4024.     $(KFLAGS)" \
  4025.     irix6x KTARGET=$${KTARGET:-$(@)}
  4026.  
  4027. irix6x+krb5:
  4028.     @echo 'Includes fullscreen file display and Yellow Pages...'
  4029.     @echo 'Add -mips<n> to specify a particular hardware target.'
  4030.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} \
  4031.     "CFLAGS = -DSVR4 -DDIRENT -DHDBUUCP -DNOGETUSERSHELL \
  4032.     -DCK_CURSES -DCK_NEWTERM -DPWID_T=uid_t -DCK_ANSIC -DTCPSOCKET\
  4033.     -DSELECT -DCK_RTSCTS -O \
  4034.     -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 -DCK_ENCRYPTION -DCK_DES \
  4035.     $(K5INC) $(K5INC)/krb5 $(KFLAGS)" \
  4036.     "LIBS = -lcurses $(K5LIB) -ldes425 -lkrb5 \
  4037.     -lcom_err -lcrypto -lcrypt -lgssapi_krb5" \
  4038.     "LNKFLAGS = -s $(LNKFLAGS)"
  4039.  
  4040. irix65+krb5:
  4041.     @echo 'Making C-Kermit $(CKVER) for SGI IRIX 6.5'
  4042.     @$(MAKE) "MAKE=$(MAKE)" \
  4043.     LNKFLAGS="-Wl,-woff,84" \
  4044.     "KFLAGS=-DIRIX65 -DCK_RTSCTS -OPT:Olimit=0 -woff 1110,1552,1174 \
  4045.     $(KFLAGS)" \
  4046.     irix6x+krb5 KTARGET=$${KTARGET:-$(@)}
  4047.  
  4048. #In case they type "make sys5"...
  4049. sys5:
  4050.     $(MAKE) "MAKE=$(MAKE)" sys3 KTARGET=$${KTARGET:-$(@)}
  4051.  
  4052. #Generic ATT System III or System V (with I&D space)
  4053. sys3:
  4054.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System III'
  4055.     @echo 'or System V R2 or earlier...'
  4056.     @echo 'add -DNOMKDIR if mkdir is an undefined symbol.'
  4057.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4058.     "CFLAGS = -DATTSV -DNOUNICODE -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL \
  4059.     -DNOINITGROUPS -DNOFTRUNCATE -DNOREALPATH -DNOLEARN $(KFLAGS) -i -O" \
  4060.     "LNKFLAGS = -i"
  4061.  
  4062. #Generic ATT System III or System V (no I&D space)
  4063. sys3nid:
  4064.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System III'
  4065.     @echo 'or System V R2 or earlier, no I&D space...'
  4066.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4067.     "CFLAGS = -DATTSV -DNOREALPATH -DNOUNICODE -DNOSYSLOG -DNOSYMLINK \
  4068.     -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE -DNOLEARN $(KFLAGS) -O" \
  4069.     "LNKFLAGS ="
  4070.  
  4071. #Generic ATT System III or System V R2 or earlier, "no void":
  4072. #special entry to remove "Illegal pointer combination" warnings.
  4073. sys3nv:
  4074.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System III'
  4075.     @echo 'or System V R2 or earlier...'
  4076.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4077.     "CFLAGS= -DATTSV -DNOREALPATH -DNOUNICODE -DNOSYSLOG -DNOGETUSERSHELL \
  4078.     -DNOSYMLINK -DNOFTRUNCATE -DNOINITGROUPS -DNOLEARN \
  4079.     -Dvoid=int $(KFLAGS) -i -O" \
  4080.     "LNKFLAGS = -i"
  4081.  
  4082. # AT&T 7300 UNIX PC.  As of C-Kermit 6.1, many of these entries don't work
  4083. # any more due to "Out of memory" or "Too many defines" errors during
  4084. # compilation, at least not on systems without lots of memory.  The sys3upcgc
  4085. # entry works (using gcc) with optimization removed, and might also work
  4086. # with optimization enabled on machines with larger memories.
  4087.  
  4088. #AT&T 7300/UNIX PC (3B1) systems, sys3 but special handling for internal modem.
  4089. #Link with the shared library -- the conflict with openi in shared library
  4090. #is solved with -Dopeni=xopeni.  Note that the xermit target can't be used
  4091. #for the Unix PC; there is no select().
  4092. sys3upc:
  4093.     @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC, shared lib...'
  4094.     @echo 'If shared lib causes trouble, use make sys3upcold.'
  4095.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4096.     "CFLAGS = -O -DATT7300 -DNOMKDIR -DUSE_MEMCPY -DNOREALPATH -DNOLEARN \
  4097.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  4098.     -DNOREDIRECT -DNOGFTIMER -DNOUNICODE $(KFLAGS) -Dopeni=xopeni" \
  4099.     "CC2 = ld /lib/crt0s.o /lib/shlib.ifile" "LNKFLAGS = -s"
  4100.  
  4101. #AT&T 7300/Unix PC systems, minimum kermit for those with smaller amounts
  4102. #of memory.
  4103. sys3upcm:
  4104.     @echo Minimum interactive
  4105.     $(MAKE) "MAKE=$(MAKE)" sys3upc KTARGET=$${KTARGET:-$(@)} \
  4106.     "KFLAGS=-DNOSPL -DNOFRILLS -DNOHELP -DNODEBUG -DNOTLOG -DNOCSETS \
  4107.     -DNOSYSLOG -DNOSETKEY -DNOREALPATH"
  4108.  
  4109. #AT&T 7300/UNIX PC (3B1) systems, with curses support.
  4110. #Curses and the shared library don't get along, so we don't use the
  4111. #shared library.  We need to include CK_NEWTERM to avoid a conflict
  4112. #with curses and buffering on stdout.  Merged with submission by
  4113. #Robert Weiner/Programming Plus, rweiner@watsun.cc.columbia.edu.
  4114. #We don't need -Dopeni=xopeni since we're not using the shared library,
  4115. #but we keep it to be consistent with the other entries.
  4116. sys3upcc:
  4117.     @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC, curses...'
  4118.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4119.     "CFLAGS = -O -DATT7300 -DNOREALPATH \
  4120.     -DCK_CURSES -DCK_NEWTERM -DNOMKDIR -DNOREDIRECT -DNOGFTIMER -DNOLEARN \
  4121.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  4122.     -DUSE_MEMCPY -DNOUNICODE $(KFLAGS) -Dopeni=xopeni" \
  4123.     "LIBS = -lcurses" "LNKFLAGS = -s"
  4124.  
  4125. #Like sys3upcc but for AT&T UNIX 3.51m (released as a patch on Fix Disk 2),
  4126. #adds hardware flow control.
  4127. att351m:
  4128.     $(MAKE) "MAKE=$(MAKE)" sys3upcc KTARGET=$${KTARGET:-$(@)} \
  4129.     "KFLAGS=-DCK_RTSCTS -DUNIX351M"
  4130.  
  4131. #As above but with gcc.
  4132. att351gm:
  4133.     $(MAKE) "MAKE=$(MAKE)" sys3upcgc KTARGET=$${KTARGET:-$(@)} \
  4134.     "KFLAGS=-DCK_RTSCTS -DUNIX351M"
  4135.  
  4136. #AT&T 7300 UNIX PC (3B1), as above, but no newterm().
  4137. sys3upcx:
  4138.     @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC, curses...'
  4139.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4140.     "CFLAGS = -O -DATT7300 -DNOREALPATH -DNOUNICODE -DNOLEARN \
  4141.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  4142.     -DCK_CURSES -DNOMKDIR -DNOREDIRECT -DNOGFTIMER -DUSE_MEMCPY $(KFLAGS) \
  4143.     -Dopeni=xopeni" "LIBS = -lcurses -ltermcap" "LNKFLAGS = -s"
  4144.  
  4145. #AT&T 7300/UNIX PC (3B1) systems, with curses and shared library support.
  4146. sys3upcshcc:
  4147.     @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC, shared lib...'
  4148.     @echo 'With curses.  Requires shcc.'
  4149.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4150.     "CFLAGS = -O -DATT7300 -DNOMKDIR -DNOREALPATH -DNOLEARN \
  4151.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  4152.     -DCK_NEWTERM -DCK_CURSES  -DNOREDIRECT -DNOGFTIMER \
  4153.     -DUSE_MEMCPY -DNOUNICODE $(KFLAGS) -Dopeni=xopeni" \
  4154.     "LNKFLAGS = -i -s" "CC = shcc" "CC2 = shcc" "LIBS = -lcurses"
  4155.  
  4156. #AT&T 7300/UNIX PC (3B1) systems, as above, no curses, but use gcc.
  4157. sys3upcg:
  4158.     @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC...'
  4159.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4160.     "CFLAGS = -DATT7300 -DNOREDIRECT -DUSE_MEMCPY -DNOUNICODE -DNOLEARN \
  4161.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  4162.     -DNOGFTIMER -DNOMKDIR -DNOREALPATH $(KFLAGS) -Dopeni=xopeni" \
  4163.     "CC = gcc" "CC2 = gcc" "LNKFLAGS = -s -shlib"
  4164.  
  4165. #AT&T 7300/UNIX PC (3B1) systems, curses and gcc.
  4166. #Optimization omitted -- add it back in if your machine has lots of memory.
  4167. sys3upcgc:
  4168.     @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC, curses...'
  4169.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4170.     "CFLAGS = -DATT7300 -DNOREDIRECT -DUSE_MEMCPY -DNOGFTIMER -DNOUNICODE \
  4171.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  4172.     -DCK_CURSES -DCK_NEWTERM -DNOMKDIR -DNOREALPATH -DNOLEARN $(KFLAGS)" \
  4173.     "CC = gcc" "CC2 = gcc" "LIBS = -lcurses" "LNKFLAGS = -s"
  4174.  
  4175. #AT&T 7300/UNIX PC (3B1) systems, special handling for internal modem.
  4176. #No FULLSCREEN file transfer display (curses).
  4177. sys3upcold:
  4178.     @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC...'
  4179.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4180.     "CFLAGS = -DATT7300 -DNOMKDIR -DUSE_MEMCPY -DNOUNICODE -DNOLEARN \
  4181.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  4182.     -DNOGFTIMER -DNOREDIRECT -DNOREALPATH $(KFLAGS) -O" "LNKFLAGS = -i"
  4183.  
  4184. #As above, but with gcc. mininum features - fits on a 400K UNIX PC floppy
  4185. #after compression with room to spare; add -DNOSHOW or other -DNOxxxx items
  4186. #to reduce size even further.
  4187. sys3upcgm:
  4188.     @echo Minimum interactive
  4189.     $(MAKE) "MAKE=$(MAKE)" sys3upcg KTARGET=$${KTARGET:-$(@)} \
  4190.     "KFLAGS=-DNOSPL -DNOFRILLS -DNOHELP -DNODEBUG -DNOTLOG -DNOCSETS \
  4191.     -DNOSETKEY $(KFLAGS)"
  4192.  
  4193. #This target is designed to create a version with the most features possible
  4194. #that, after compression, still fits on a 400K UNIX PC floppy.
  4195. sys3upcgfd:
  4196.     @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC floppy...'
  4197.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4198.     "CFLAGS = -DATT7300 -DNOREDIRECT -DUSE_MEMCPY -DNOSPL -DNOLEARN \
  4199.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  4200.     -DNOGFTIMER -DNOREALPATH -Dopeni=xopeni \
  4201.     -DNOHELP -DNODEBUG -DNOTLOG -DNOCSETS -DNOSETKEY -DNOMKDIR $(KFLAGS)" \
  4202.     "CC = gcc" "CC2 = gcc" "LNKFLAGS = -s"
  4203.  
  4204. #AT&T 6300 PLUS (warning, -O might make it run out of space).
  4205. #NOTE: Remove -DHDBUUCP if not using Honey DanBer UUCP.
  4206. att6300:
  4207.     @echo 'Making C-Kermit $(CKVER) for AT&T 6300 PLUS...'
  4208.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4209.     "CFLAGS = -DATT6300 -DHDBUUCP -DNOFILEH -DNOREALPATH -DNOLEARN \
  4210.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  4211.     -DNOUNICODE $(KFLAGS) -O -Ml -i" "LNKFLAGS = -i -Ml"
  4212.  
  4213. #As above, but with curses support.  Debugging disabled to prevent thrashing.
  4214. att6300c:
  4215.     @echo 'Making C-Kermit $(CKVER) for AT&T 6300 PLUS...'
  4216.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4217.     "CFLAGS = -DATT6300 -DHDBUUCP -DNOFILEH -DNOCSETS -DNOREALPATH \
  4218.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  4219.     -DCK_CURSES -DNODEBUG -DNOUNICODE -DNOLEARN $(KFLAGS) -O -Ml -i" \
  4220.     "LNKFLAGS = -i -Ml" "LIBS = -lcurses"
  4221.  
  4222. #AT&T 6300 PLUS with no curses, no debugging (about 34K smaller)
  4223. # -Optimization saves about 20K too.
  4224. att6300nd:
  4225.     @echo 'Making C-Kermit $(CKVER) for AT&T 6300 PLUS, no debugging...'
  4226.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4227.     "CFLAGS = -DATT6300 -DHDBUUCP -DNODEBUG -DNOFILEH -DNOREALPATH \
  4228.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  4229.     -DNOUNICODE -DNOLEARN $(KFLAGS) -O -i -Ml" "LNKFLAGS = -i -Ml"
  4230.  
  4231. #AT&T 3B2 and maybe 3B20-series computers running AT&T UNIX System V R3.
  4232. #This one was actually used to build C-Kermit 7.0 successfully on a 3B2/300.
  4233. att3b2:
  4234.     @echo 'Making C-Kermit $(CKVER) for AT&T 3B2'
  4235.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4236.     "CFLAGS = -DATTSV -DNOREDIRECT -DUSE_MEMCPY \
  4237.     -DNOTIMEVAL -DNOTIMEZONE -DMINIDIAL -DNOCHANNELIO -DNOBIGBUF \
  4238.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  4239.     -DNOGFTIMER -DNOREALPATH -Dopeni=xopeni -DNOFRILLS -DNOLEARN \
  4240.     -DNOHELP -DNODEBUG -DNOTLOG -DNOCSETS -DNOSETKEY -DNOMKDIR $(KFLAGS)" \
  4241.     "CC = gcc" "CC2 = gcc" "LNKFLAGS = -s"
  4242.  
  4243. # The next two are likely not to work as-is.
  4244.  
  4245. #AT&T 3B2, 3B20-series computers running AT&T UNIX System V.
  4246. #This is just generic System V with Honey DanBer UUCP, so refer to sys3hdb.
  4247. #Remove -DNONAWS if you can get away with it.
  4248. att3bx:
  4249.     $(MAKE) "MAKE=$(MAKE)" sys3hdb KTARGET=$${KTARGET:-$(@)} \
  4250.     "KFLAGS=$(KFLAGS) -DNONAWS -DNOTIMEVAL"
  4251.  
  4252. # 3Bx with charsets (except Unicode) but no curses.
  4253. att3bx1:
  4254.     @echo 'Making C-Kermit $(CKVER) for AT&T 3B2 or 3B20'
  4255.     @echo 'with Honey DanBer UUCP  no curses...'
  4256.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4257.     "CFLAGS = -DATTSV -DHDBUUCP $(KFLAGS) -DNOREDIRECT \
  4258.     -DNOTIMEVAL -DNOTIMEZONE -DMINIDIAL -DNOCHANNELIO -DNOBIGBUF \
  4259.     -DNOHELP -DNODEBUG -DNOGFTIMER -DNOLEARN \
  4260.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  4261.     -DNOREALPATH -DNOUNICODE -i" \
  4262.     "CC = gcc" "CC2 = gcc" "LNKFLAGS = -i -s"
  4263.  
  4264. #AT&T 3B2, 3B20-series computers running AT&T UNIX System V,
  4265. #with fullscreen file transfer display.
  4266. att3bxc:
  4267.     @echo 'Making C-Kermit $(CKVER) for AT&T 3B2 or 3B20'
  4268.     @echo 'with Honey DanBer UUCP and curses...'
  4269.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4270.     "CFLAGS = -DATTSV -DHDBUUCP -DNONAWS -DNOTIMEVAL $(KFLAGS) \
  4271.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  4272.     -DNOREALPATH -DCK_CURSES -DCK_NEWTERM -DNOUNICODE -DNOLEARN -i -O" \
  4273.     "LNKFLAGS = -i" "LIBS=-lcurses"
  4274.  
  4275. #3bx with curses but no charsets
  4276. att3bxc3:
  4277.     @echo 'Making C-Kermit $(CKVER) for AT&T 3B2 or 3B20'
  4278.     @echo 'with Honey DanBer UUCP with curses...  no CSETS'
  4279.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4280.     "CFLAGS = -DATTSV -DHDBUUCP $(KFLAGS) -DNOREDIRECT \
  4281.     -DNOTIMEVAL -DNOTIMEZONE -DMINIDIAL -DNOCHANNELIO -DNOBIGBUF \
  4282.     -DNOHELP -DNODEBUG -DNOGFTIMER -DNOLEARN \
  4283.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  4284.     -DNOREALPATH -DNOCSETS -DCK_CURSES -DCK_NEWTERM -i" \
  4285.     "CC = gcc" "CC2 = gcc" "LNKFLAGS = -i -s" "LIBS = -lcurses"
  4286.  
  4287. #Any System V R2 or earlier with Honey DanBer UUCP (same as above)
  4288. sys3hdb:
  4289.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System III'
  4290.     @echo 'or System V R2 or earlier with Honey DanBer UUCP...'
  4291.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4292.     "CFLAGS = -DATTSV -DHDBUUCP -DNOREALPATH -DNOUNICODE -DNOLEARN \
  4293.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  4294.     $(KFLAGS) -i -O" "LNKFLAGS = -i"
  4295.  
  4296. #Sperry/UNISYS 5000 UTS V 5.2 (System V R2), Honey DanBer UUCP
  4297. unisys5r2:
  4298.     @echo 'Making C-Kermit $(CKVER) for Sperry/UNISYS 5000 UTS V 5.2...'
  4299.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4300.     "CFLAGS = -DATTSV -DUNISYS52 -DHDBUUCP -DNOREALPATH -DNOUNICODE \
  4301.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  4302.     -DNOLEARN $(KFLAGS) -i -O" "LNKFLAGS = -i"
  4303.  
  4304. #In case they say "make sys5hdb" instead of "make sys3hdb"...
  4305. sys5hdb:
  4306.     $(MAKE) "MAKE=$(MAKE)" sys3hdb
  4307.  
  4308. #Create the common header line for all hpux[5-10]* entries. This extra entry is
  4309. #here because our header message length may differ for each C-Kermit version.
  4310. #Don't use 'fold -s' for HP-UX 5.x - 7.x! This option is there only since
  4311. #HP-UX 8.0!
  4312. hpux-header:
  4313.     @HPUX=`uname -r | sed -e 's/^[^1-9]*//' -e 's/\.00$$/.0/'` ; \
  4314.     [ "$(MESSAGE0)" ] && MESSAGE1="$(MESSAGE0)" ; \
  4315.     Message0='Making C-Kermit $(CKVER) for HP9000 HP-UX' ; \
  4316.     Message1=$${MESSAGE1:='without any extra compiler optimization'} ; \
  4317.     MessageH="$$Message0 $$HPUX" ; \
  4318.     case $$HPUX in \
  4319.       [567].*) echo "$$MessageH\n$$Message1" ;; \
  4320.           *.*) echo "$$MessageH $${Message1}$(MESSAGE1A)" | fold -s ;; \
  4321.     esac | sed -e 's/^ //' -e 's/ *$$//'
  4322.  
  4323. # Peter E's updated HP-UX 5.xx entries Oct 2001.
  4324.  
  4325. #HP-9000 500 HP-UX 5.xx, no TCP/IP.
  4326. hpux0500:
  4327.     @MESSAGE0="no TCP/IP and no compiler optimization";\
  4328.     MESSAGE0=$${MESSAGE1:-$$MESSAGE0} \
  4329.     $(MAKE) hpux-header
  4330.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4331.     "CFLAGS = -DHPUX -DHPUX5 -DHPUXPRE65 -DNOREDIRECT -DDCLGETCWD \
  4332.     -DNOGETUSERSHELL -DNOGFTIMER -DNOSYSLOG -DNOTOMACROS -DNOLSTAT \
  4333.     -DNOSYMLINK -DNOINITGROUPS -DNOUNICODE -DNOLEARN $(KFLAGS)" \
  4334.     "LIBS = $(LIBS)" "LNKFLAGS = "
  4335.  
  4336. #HP-9000 500 HP-UX 5.21 with Wollongong WIN/TCP 1.2 TCP/IP.
  4337. #Requires /usr/wins/usr/include and /usr/lib/libnet.a from Wollongong.
  4338. #Optimization skipped - takes forever.    Really.
  4339. hpux0500wintcp:
  4340.     @MESSAGE1="with WIN/TCP but without any extra compiler optimization" \
  4341.     $(MAKE) hpux0500 KTARGET=$${KTARGET:-$(@)} \
  4342.     "KFLAGS = -DTCPSOCKET -DHPUX5WINTCP -DINADDRX -DNO_DNS_SRV -DNOMHHOST \
  4343.     -DNOHADDRLIST -I/usr/wins/usr/include $(KFLAGS)" \
  4344.     "LIBS = /usr/lib/libnet.a"
  4345.  
  4346. #HP-UX 6.5, short filenames, no network and no curses support.
  4347. #ckcpro, ckuusr, ckuus3 and others are broken out because they make the
  4348. #optimizer run away.  Note that xermit target does not work with this one!
  4349. #If you get compiler warnings like 'Switch table overflow' increase the '...'
  4350. #value in '-Wc,-Nw...'!
  4351. hpux0650:
  4352.     @$(MAKE) hpux-header
  4353.     @echo 'supporting: NO long filenames, NO network${MESSAGE2}.'
  4354.  
  4355.     $(MAKE) KTARGET=$${KTARGET:-$(@)} \
  4356.         ckuusr.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) \
  4357.             ckuus6.$(EXT) ckuxla.$(EXT) ckcpro.$(EXT) \
  4358.     "CFLAGS = -DHPUX -DHPUX6 -DSIG_V -DNOSYSLOG -DNOSELECT -DFNFLOAT \
  4359.     -DDCLGETCWD -DNOGETUSERSHELL -DNO_DNS_SRV -DNOLEARN $(KFLAGS) \
  4360.     -Wc,-Nw260"
  4361.  
  4362.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4363.     "CFLAGS = -DHPUX -DHPUX6 -DSIG_V -DNOSYSLOG -DNOSELECT -DFNFLOAT \
  4364.     -DDCLGETCWD -DNOGETUSERSHELL -DNO_DNS_SRV -DNOLEARN $(KFLAGS) \
  4365.     -Wc,-Nw260 $(OFLAGS)" "LNKFLAGS = -s" "LIBS = -lm $(LIBS)"
  4366.  
  4367. #Exactly as above, plus curses:
  4368. hpux0650c:
  4369.     @MESSAGE2=", but with curses" \
  4370.     $(MAKE) hpux0650 KTARGET=$${KTARGET:-$(@)} \
  4371.     "KFLAGS= -DCK_CURSES $(KFLAGS)" \
  4372.     "LIBS= -lcurses"
  4373.  
  4374. #Exactly as above, plus curses + network:
  4375. #(doesn't work -- HP-UX 6 lacks the FD_SET macros -- this can be addressed
  4376.  
  4377. hpux0650tcpc:
  4378.     @MESSAGE2=", but with curses and with tcp/ip" \
  4379.     $(MAKE) hpux0650 KTARGET=$${KTARGET:-$(@)} \
  4380.     "KFLAGS= -DCK_CURSES -DTCPSOCKET -DNOHADDRLIST $(KFLAGS)" \
  4381.     "LIBS= -lcurses"
  4382.  
  4383. #Exactly as hpux0650 but with compiler optimization:
  4384. hpux0650o:
  4385.     @MESSAGE1="with compiler optimization" \
  4386.     $(MAKE) hpux0650 KTARGET=$${KTARGET:-$(@)} \
  4387.     "KFLAGS= $(KFLAGS)" "OFLAGS = -O"
  4388.  
  4389. #Exactly as hpux0650c but with compiler optimization:
  4390. hpux0650oc:
  4391.     @MESSAGE1="with compiler optimization" \
  4392.     $(MAKE) hpux0650c KTARGET=$${KTARGET:-$(@)} \
  4393.     "KFLAGS= $(KFLAGS)" "OFLAGS = -O"
  4394.  
  4395. #Take this as startup entry for all 'none optimized' files under HP-UX 7.x!
  4396. #Make sure we doesn't call it with the '-O' option because this will blow up
  4397. #the compiler!
  4398. hpux0700noopt:
  4399.     @case "$(CFLAGS)" in \
  4400.     *-O*) echo "Don't use CFLAGS= -O here!" ;; \
  4401.        *) $(MAKE) KTARGET=$${KTARGET:-$(@)} \
  4402.           ckuusr.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) \
  4403.           ckuus6.$(EXT) ckuus7.$(EXT) ckuxla.$(EXT) \
  4404.           ckcuni.$(EXT) ckcftp.$(EXT) ckcpro.$(EXT) \
  4405.           ;; \
  4406.     esac
  4407.  
  4408. #HP-UX 7.0, no long filenames, no network support, no curses.
  4409. #If you get compiler warnings like 'Switch table overflow' increase the '...'
  4410. #value in '-Wc,-Nw...'!
  4411. hpux0700sf:
  4412.     @$(MAKE) hpux-header
  4413.     @echo 'supporting: NO long filenames, NO network, NO curses.'
  4414.     $(MAKE) hpux0700noopt KTARGET=$${KTARGET:-$(@)} \
  4415.     "CFLAGS = -DHPUX -DHPUX7 -DSIG_V -DNOGETUSERSHELL -DFNFLOAT \
  4416.     -DNO_DNS_SRV $(KFLAGS) -Wc,-Nw260"
  4417.  
  4418.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4419.     "CFLAGS = -DHPUX -DHPUX7 -DSIG_V -DNOGETUSERSHELL -DFNFLOAT \
  4420.     -DNO_DNS_SRV $(KFLAGS) -Wc,-Nw260 $(OFLAGS)" \
  4421.     "LNKFLAGS = -s" "LIBS = -lm $(LIBS)"
  4422.  
  4423. #Exactly as hpux0700sf but with compiler optimization:
  4424. hpux0700osf:
  4425.     @MESSAGE1="with compiler optimization" \
  4426.     $(MAKE) hpux0700sf KTARGET=$${KTARGET:-$(@)} \
  4427.     "KFLAGS= $(KFLAGS)" "OFLAGS = -O"
  4428.  
  4429. #HP-UX 7.0, short filenames, but with tcp/ip and curses.
  4430. #There must be <arpa/telnet.h> & <arpa/inet.h> present to support this
  4431. #configuration.  To use this, you must have bought the ARPA Services
  4432. #Product from HP, and you must get the files "telnet.h" and "inet.h"
  4433. #from the Berkeley Standard Distribution because (reportedly) they are not
  4434. #part of the HP product.  And you need /usr/lib/libBSD.a.
  4435. hpux0700sftcpc:
  4436.     @$(MAKE) hpux-header
  4437.     @echo 'supporting: NO long filenames, \c'
  4438.     @echo 'but with networking, curses, HDB uucp...'
  4439.     $(MAKE) hpux0700noopt KTARGET=$${KTARGET:-$(@)} \
  4440.     "CFLAGS =  -DHPUXDEBUG -DHPUX -DHPUX7 -DTCPSOCKET -DSIG_V \
  4441.     -DCK_REDIR -DCK_RTSCTS -DCK_CURSES -DNOGETUSERSHELL -DFNFLOAT \
  4442.     -DNO_DNS_SRV -DHDBUUCP -DLOCK_DIR=\\\"/usr/spool/uucp\\\" $(KFLAGS) \
  4443.     -Wc,-Nw260"
  4444.  
  4445.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4446.     "CFLAGS =  -DHPUXDEBUG -DHPUX -DHPUX7 -DTCPSOCKET -DSIG_V \
  4447.     -DCK_REDIR -DCK_RTSCTS -DCK_CURSES -DNOGETUSERSHELL -DFNFLOAT \
  4448.     -DNO_DNS_SRV -DHDBUUCP  -DLOCK_DIR=\\\"/usr/spool/uucp\\\" $(KFLAGS) \
  4449.     -Wc,-Nw260 $(OFLAGS)" "LNKFLAGS = -s" "LIBS= -lm -lBSD -lcurses"
  4450.  
  4451. #Exactly as above but with compiler optimization:
  4452. hpux0700osftcpc:
  4453.     @MESSAGE1="with compiler optimization" \
  4454.     $(MAKE) hpux0700sftcpc KTARGET=$${KTARGET:-$(@)} \
  4455.     "KFLAGS= $(KFLAGS)" "OFLAGS = -O"
  4456.  
  4457. #HP 9000 series 300/800 HP-UX 7.0, long filenames, network support, HDB uucp,
  4458. #but NO curses. See comments in hpux0700sftcpc about TCP/IP support.
  4459. hpux0700lfn:
  4460.     @$(MAKE) hpux-header
  4461.     @echo 'supporting: long filenames, networking, HDB uucp$(MESSAGE2)...'
  4462.     $(MAKE) hpux0700noopt KTARGET=$${KTARGET:-$(@)} \
  4463.     "CFLAGS =  -DHPUXDEBUG -DHPUX -DHPUX7 -DTCPSOCKET -DSIG_V -DFNFLOAT \
  4464.     -DNOGETUSERSHELL -DNOSETBUF -DCK_REDIR -DCK_RTSCTS -DLONGFN \
  4465.     -DNO_DNS_SRV -DDIRENT -DHDBUUCP -DLOCK_DIR=\\\"/usr/spool/uucp\\\" \
  4466.     $(KFLAGS) -Wc,-Nw260"
  4467.  
  4468.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4469.     "CFLAGS =  -DHPUXDEBUG -DHPUX -DHPUX7 -DTCPSOCKET -DSIG_V -DFNFLOAT \
  4470.     -DNOGETUSERSHELL -DNOSETBUF -DCK_REDIR -DCK_RTSCTS -DLONGFN \
  4471.     -DNO_DNS_SRV -DDIRENT -DHDBUUCP -DLOCK_DIR=\\\"/usr/spool/uucp\\\" \
  4472.     $(KFLAGS) -Wc,-Nw260 \
  4473.     $(OFLAGS)" "LNKFLAGS = -s" "LIBS = -lm -lBSD $(LIBS)"
  4474.  
  4475. #Exactly as above + curses.
  4476. hpux0700lfnc:
  4477.     @MESSAGE2=', curses' \
  4478.     $(MAKE) hpux0700lfn KTARGET=$${KTARGET:-$(@)} \
  4479.     "KFLAGS= -DCK_CURSES $(KFLAGS)" \
  4480.     "LIBS= -lcurses"
  4481.  
  4482. #Exactly as above hpux0700lfn but with compiler optimization:
  4483. hpux0700olfn:
  4484.     @MESSAGE1="with compiler optimization" \
  4485.     $(MAKE) hpux0700lfn KTARGET=$${KTARGET:-$(@)} \
  4486.     "KFLAGS= $(KFLAGS)" "OFLAGS = -O"
  4487.  
  4488. #Exactly as above hpux0700lfnc but with compiler optimization:
  4489. hpux0700olfnc:
  4490.     @MESSAGE1="with compiler optimization" \
  4491.     $(MAKE) hpux0700lfnc KTARGET=$${KTARGET:-$(@)} \
  4492.     "KFLAGS= $(KFLAGS)" "OFLAGS = -O"
  4493.  
  4494. #HP 9000 Series 300 or 400, HP-UX 8.0, long filenames and TCP/IP support.
  4495. #This one should also work on 700/800, but without PA-specific optimization.
  4496. #In case -DCK_RTSCTS and -DCK_REDIR make trouble, remove them.
  4497. #NOTE: ckcpro.c, ckuusr.c and ckuus3.c blow up the optimizer, so don't optimize
  4498. #them.
  4499. #For HP-UX 8.0 on Motorola CPUs, you might have to reinstall your kernel with
  4500. #maxdsiz >= 0x03000000.  But if physical memory is small, that still will not
  4501. #help much.
  4502. hpux0800:
  4503.     @$(MAKE) hpux-header
  4504.     @MESSAGE3=$${MESSAGE3:='TCP/IP'}; \
  4505.     echo "supporting: long filenames, $$MESSAGE3, HDB UUCP$(MESSAGE2)..."
  4506.     $(MAKE) -B "CC=$(CC)" "CC2=$(CC2)" KTARGET=$${KTARGET:-$(@)} \
  4507.     ckcpro.$(EXT) ckuusr.$(EXT) ckuus3.$(EXT) \
  4508.     "CFLAGS =  -DCK_REDIR -DHPUXDEBUG -DHPUX -DHPUX8 -DRENAME -DSIG_V \
  4509.     -DNOSETBUF -DDIRENT -DCK_RTSCTS -DSTERMIOX -DLONGFN -DTCPSOCKET \
  4510.     -DHDBUUCP  -DNO_DNS_SRV -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DFNFLOAT \
  4511.     $(KFLAGS)"
  4512.  
  4513.     $(MAKE) -B "CC=$(CC)" "CC2=$(CC2)" xermit KTARGET=$${KTARGET:-$(@)} \
  4514.     "CFLAGS =  -DCK_REDIR -DHPUXDEBUG -DHPUX -DHPUX8 -DRENAME -DSIG_V \
  4515.     -DNOSETBUF -DDIRENT -DCK_RTSCTS -DSTERMIOX -DLONGFN -DTCPSOCKET \
  4516.     -DHDBUUCP  -DNO_DNS_SRV -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DFNFLOAT \
  4517.     $(KFLAGS) $(OFLAGS)" "LNKFLAGS = -s" "LIBS = -lm -lBSD $(LIBS)"
  4518.  
  4519. #Exactly as above hpux0800 + curses.
  4520. hpux0800c:
  4521.     @MESSAGE2=', curses' \
  4522.     $(MAKE) hpux0800  KTARGET=$${KTARGET:-$(@)} \
  4523.     "KFLAGS = $(KFLAGS) -DCK_CURSES" "LIBS = -lcurses"
  4524.  
  4525. #HP 9000 HP-UX 8.0, no TCP/IP because /usr/lib/libBSD.a can't be found,
  4526. #or TCP/IP header files missing.
  4527. hpux0800notcp:
  4528.     @MESSAGE3='NO network, NO curses' \
  4529.     $(MAKE) "MAKE=$(MAKE)" hpux0800 KTARGET=$${KTARGET:-$(@)} \
  4530.     "KFLAGS = $(KFLAGS) -UTCPSOCKET"
  4531.  
  4532. #Now the same as above hpux0800 but with compiler optimization
  4533. hpux0800o:
  4534.     @MESSAGE1="with compiler optimization" \
  4535.     $(MAKE) hpux0800 KTARGET=$${KTARGET:-$(@)} \
  4536.     "KFLAGS = $(KFLAGS)" "OFLAGS = -O"
  4537.  
  4538. #Exactly as above hpux0800 + curses and with compiler optimization.
  4539. hpux0800oc:
  4540.     @MESSAGE1="with compiler optimization" \
  4541.     $(MAKE) hpux0800c KTARGET=$${KTARGET:-$(@)} \
  4542.     "KFLAGS = $(KFLAGS)" "OFLAGS = -O" "LIBS = -lcurses"
  4543.  
  4544. #Exactly as above hpux0800notcp but with compiler optimization
  4545. hpux0800onotcp:
  4546.     @MESSAGE1="with compiler optimization" \
  4547.     $(MAKE) "MAKE=$(MAKE)" hpux0800notcp KTARGET=$${KTARGET:-$(@)} \
  4548.     "KFLAGS = $(KFLAGS)" "OFLAGS = -O"
  4549.  
  4550. #HP 9000 Series 700 or 800, HP-UX 8.0, long filenames and TCP/IP support.
  4551. # Like the previous entries, but with PA-RISC-specific optimization.
  4552. hpux0800pa:
  4553.     @MESSAGE1="with PA-RISC-specific optimization" \
  4554.     $(MAKE) hpux0800 KTARGET=$${KTARGET:-$(@)} \
  4555.     "KFLAGS = $(KFLAGS) +Obb1100"
  4556.  
  4557. #As above, but with curses.
  4558. hpux0800pac:
  4559.     @MESSAGE1="with PA-RISC-specific optimization" \
  4560.     $(MAKE) hpux0800c KTARGET=$${KTARGET:-$(@)} \
  4561.     "KFLAGS = $(KFLAGS) +Obb1100"
  4562.  
  4563. #As above, but compiled with GCC 2.3.3.
  4564. hpux0800pagcc:
  4565.     @MESSAGE1='using the gcc compiler' \
  4566.     $(MAKE) hpux0800 KTARGET=$${KTARGET:-$(@)} \
  4567.     "CC=gcc" "CC2=gcc" "KFLAGS= -funsigned-char $(KFLAGS)"
  4568.  
  4569. #HP-UX 9.0, 9.01, 9.03, 9.04, 9.05, 9.07, 9.10 ..., + TCP/IP + curses, fully
  4570. #configured.  Use this entry with the restricted compiler: no optimization, no
  4571. #ANSI support.  If you get unresolved sockets library references at link time,
  4572. #then try adding -lBSD to LIBS, or else remove -DTCPSOCKET to build a version
  4573. #without TCP/IP support.
  4574. hpux0900:
  4575.     @MESSAGE1A='. Read hpux0900 entry comments if you have trouble.' \
  4576.     $(MAKE) hpux-header
  4577.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4578.     "CFLAGS = -DHPUXDEBUG -DHPUX9 -DSTERMIOX -DDIRENT -DUTIMEH \
  4579.     -DNOSETBUF -DCK_CURSES -DTCPSOCKET -DRENAME -DCK_REDIR -DLONGFN \
  4580.     -DHDBUUCP -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DFNFLOAT $(KFLAGS)" \
  4581.     "LNKFLAGS = -s" "LIBS = -lm -lcurses" "CC=$(CC)" "CC2=$(CC2)"
  4582.  
  4583. #Like hpux0900, but for the "value-added" compiler on all HP 9000 models.
  4584. #Adds optimization and ANSI compilation:
  4585. # +O2 makes smaller executable (= -O = Level-1 and global optimization)
  4586. # +O3 adds interprocedural global optimization, makes bigger executable.
  4587. # If optimization fails on some modules, you can add:
  4588. #  +Obb<n>, +Olimit <n>, or +Onolimit, depending on your cc version,
  4589. # where <n> is a number, e.g. +Obb1200.  In other words, if you get optimizer
  4590. # warnings, add (for example) +Obb1200; if you still get optimizer warnings,
  4591. # increase the number.  Repeat until warnings go away.  If your compiler
  4592. # permits it, use +Onolimit. If optimizer blows up on ckcpro.c, see next entry.
  4593. # Reportedly, on some configurations, such as HP9000/425e or /340, perhaps
  4594. # depending on the amount of main memory, this entry might fail no matter what
  4595. # you do ("Out of Memory", "cc: Fatal error in /lib/c.c1", etc).  In that case
  4596. # use "make hpux0900" (no "o").
  4597. hpux0900o:
  4598.     @MESSAGE1=$${MESSAGE1:-"with compiler optimization"} \
  4599.     $(MAKE) hpux0900 KTARGET=$${KTARGET:-$(@)} \
  4600.     "KFLAGS = $(KFLAGS) -Aa -DCK_ANSIC -D_HPUX_SOURCE +O2"
  4601.  
  4602. # For HP-UX 9.0 on Motorola CPUs, optimization of ckcpro.c tends to blow up
  4603. # the compiler.  You might have to reinstall your kernel with maxdsiz >=
  4604. # 0x03000000.  But if physical memory is small, that still will not help much.
  4605. # In that case, use this entry to skip optimization of ckcpro.c.
  4606. hpux0900m68ko:
  4607.     @MESSAGE1='without compiler optimization for ckcpro.$(EXT) ...' \
  4608.     $(MAKE) hpux-header
  4609.     $(MAKE) ckuusr.$(EXT) ckuus3.$(EXT) ckcpro.$(EXT) \
  4610.     "CFLAGS = -DHPUXDEBUG -DHPUX9 -DSTERMIOX -DDIRENT \
  4611.     -DNOSETBUF -DCK_CURSES -DTCPSOCKET -DRENAME  -DCK_REDIR -DLONGFN \
  4612.     -DHDBUUCP -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DFNFLOAT $(KFLAGS)"
  4613.     @echo
  4614.     @MESSAGE1="with compiler optimization for the rest" \
  4615.     $(MAKE) hpux0900 KTARGET=$${KTARGET:-$(@)} \
  4616.     "KFLAGS = $(KFLAGS) -Aa -DCK_ANSIC -D_HPUX_SOURCE +O2"
  4617.  
  4618. # Old name for hpux0900m68ko.
  4619. hpux0900mot:
  4620.     $(MAKE) hpux0900m68ko KTARGET=$${KTARGET:-$(@)} "KFLAGS = $(KFLAGS)"
  4621.  
  4622. #Like hpux0900o but with additional model-700/800-specific optimizations.
  4623. # +ESlit = consolidate strings in read-only memory.
  4624. # +ESfsc = inline millicode calls when comparing pointers.
  4625. hpux0900o700:
  4626.     @echo 'If you get optimizer warnings \c'
  4627.     @echo 'try "make hpux0900o700 KFLAGS=+Obb1200"'
  4628.     @MESSAGE1="with PA-RISC-specific optimizations" \
  4629.     $(MAKE) hpux0900o KTARGET=$${KTARGET:-$(@)} \
  4630.     "KFLAGS = $(KFLAGS) +ESlit +ESsfc"
  4631.  
  4632. #HP-UX 9.0, 9.01, 9.03, 9.04, 9.05, 9.07, 9.10 ..., + TCP/IP + curses, fully
  4633. #configured, built with gcc, all models except 800 series.
  4634. #You might need to add the include path for gcc headers, for example:
  4635. # 'KFLAGS=-I/usr/gnu/lib/gcc-lib/hppa1.1-hp-hpux/2.4.5/include/'
  4636. hpux0900gcc:
  4637.     @MESSAGE1='using the gcc compiler' \
  4638.     $(MAKE) hpux0900 KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  4639.     "KFLAGS = $(KFLAGS) -DCK_ANSIC -funsigned-char -O2"
  4640.  
  4641. #HP-9000 HP-UX 10.0 + TCP/IP + curses, fully configured.
  4642. #Use with restricted (bundled) compiler: no optimization, no ANSI support.
  4643. #libcurses needed for fullscreen file xfer display in HP-UX 10.00 and 10.01.
  4644. #libHcurses (NOT libcurses!) for fullscreen display, to work around fatal bugs
  4645. #in HP-UX 10.10 and 10.20 curses. Maybe we could use lcurses for 10.30, since
  4646. #the 10.10 curses problem is supposedly fixed in 10.30.
  4647. # +DA1.0 = Generate PA-RISC 1.0 code that runs on both 700 and 800 models.
  4648. # +DA1.1 = Generate PA-RISC 1.1 code that runs on both 700 and 800 models.
  4649. # Note that HP-UX 10.20 and upwards  not support PA-RISC 1.0 systems.
  4650. # And that as of Dec 2001, 11.00 and 11.11 are PA-only and 11.20 is IA64-only.
  4651. # Later 11.2x releases are expected to be for both.  Architecture can be
  4652. # determined with the model command, at least in 10.20 and later...
  4653. #For future releases, we need to include +DA1.1 for PA builds, so that a
  4654. #binary built on PA 2.0 will still work on PA 1.1 machines, whereas +DA1.1
  4655. #must NOT be included for IA64 builds.
  4656. #
  4657. hpux1000:
  4658.     @$(MAKE) hpux-header
  4659.     @LIBS='-lHcurses' ; \
  4660.     AFLAGS='+DA1.1' ; \
  4661.     case `uname -r` in \
  4662.        [AB].10.0*)  KFLAGS='-DHPUX1000 $(KFLAGS)' ; \
  4663.                     AFLAGS='+DA1.0' ; LIBS='-lcurses'  ;; \
  4664.        [AB].10.1*)  KFLAGS='-DHPUX1010 -D__HP_CURSES $(KFLAGS)' ; \
  4665.                     ;; \
  4666.        [AB].10.2*)  KFLAGS='-DHPUX1020 -D__HP_CURSES $(KFLAGS)' ; \
  4667.                     ;; \
  4668.        [AB].10.3*)  KFLAGS='-DHPUX1030 -D__HP_CURSES $(KFLAGS)' ; \
  4669.                     ;; \
  4670.        [AB].10.?*)  KFLAGS='-DHPUX10XX -D__HP_CURSES $(KFLAGS)' ; \
  4671.                     ;; \
  4672.        [AB].11.0*)  KFLAGS='-DHPUX1100 -D__HP_CURSES $(KFLAGS)' ; \
  4673.                     ;; \
  4674.        [AB].11.1*)  KFLAGS='-DHPUX1100 -D__HP_CURSES $(KFLAGS)' ; \
  4675.                     ;; \
  4676.        [AB].11.?*)  KFLAGS='-DHPUX1100 -D__HP_CURSES $(KFLAGS)' ; \
  4677.                     AFLAGS='' ; LIBS='-lcurses' ;; \
  4678.     esac ; \
  4679.     OFLAGS=$${OFLAGS:-$$AFLAGS} ; \
  4680.     $(MAKE) "SHELL=/usr/bin/sh" xermit KTARGET=$${KTARGET:-$(@)} \
  4681.     "CC=$(CC)" "CC2=$(CC2)" \
  4682.     "CFLAGS = -DHPUX10 -DDIRENT -DSTERMIOX -DCK_DSYSINI -DHDBUUCP \
  4683.     -DCK_CURSES -DCK_WREFRESH -DTCPSOCKET -DCK_REDIR -DRENAME -DFNFLOAT \
  4684.     $$KFLAGS $$OFLAGS" \
  4685.     "LNKFLAGS=-s $(LNKFLAGS)" "LIBS = -lm $$LIBS $(KLIBS)"
  4686.  
  4687. # This is a kludge, copying hpux0900gcc and adapting hpux1000 
  4688. # (add CC and CC2, drop the A1.[0||1])
  4689. # Builds w/ no compiler warnings but minimally tested.
  4690. #
  4691. hpux1000gcc:
  4692.     @MESSAGE1='using the gcc compiler' \
  4693.     $(MAKE) hpux1000 KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  4694.     "KFLAGS = $(KFLAGS)" OFLAGS=" -DCK_ANSIC -funsigned-char -O2"
  4695.  
  4696. # Trusted HP-UX 10
  4697. # echo KFLAGS=$(KFLAGS) YTARGET YTARGET=$(YTARGET) $(XTARGET) ;
  4698. hpux1000t:
  4699.     @case "$(KTARGET)" in \
  4700.        *o+) KENTRY=hpux1000o+ ;; \
  4701.        *o)  KENTRY=hpux1000o ;; \
  4702.        *)   KENTRY=hpux1000 ;; \
  4703.     esac ; \
  4704.     MESSAGE1="and support for 'Trusted HP-UX'" \
  4705.     $(MAKE) $$KENTRY KTARGET=$${KTARGET:-$(@)} \
  4706.     "KFLAGS= $(KFLAGS) -DHPUX10_TRUSTED" "KLIBS=-lsec"
  4707.  
  4708. hpux1000to:
  4709.     $(MAKE) hpux1000t KTARGET=$${KTARGET:-$(@)}
  4710.  
  4711. hpux1000to+:
  4712.     $(MAKE) hpux1000t KTARGET=$${KTARGET:-$(@)}
  4713.  
  4714. #HP-9000 HP-UX 10.00 and higher with ANSI prototyping and optimization.
  4715. #PA-RISC only, no Motorola or other hardware is support in HP-UX 10.00++.
  4716. #The unbundled optional compiler is required.
  4717. #Your path should start with /opt/ansic/bin.
  4718. # -Wl,-Fw = Remove stack unwind table (info used by debuggers).
  4719. # +O2 makes a smaller executable (= -O = Level-1 and global optimization).
  4720. # +O3 adds interprocedural global optimization, makes a bigger executable.
  4721. # +Onolimit allows all modules to be optimized, no matter how complex.  But:
  4722. #  (a) +Onolimit does not seem to always be there in HP-UX 10.00, and:
  4723. #  (b) some modules might take hours on low-memory and/or slow systems.
  4724. # The following are PA-RISC-specific optimizations:
  4725. # +ESlit = Consolidate strings in read-only memory.
  4726. # +ESfsc = Inline millicode calls when comparing pointers.
  4727. # You might need to configure your kernel for a maxdsiz of 0x07000000 (112MB)
  4728. # or greater to prevent the optimizer from running out of space.
  4729. # December 2001: +ESlit +ESsfc removed because not supported on IA64.
  4730. # Somebody who cares can use 'model' to see whether it's PA-RISC or IA64
  4731. # and include the architecture-specific optimization flags.  Also note:
  4732. # +DA1.1 is PA-only.  If this is included in in HP-UX 11.00 or later,
  4733. # then +DS2.0 should be included too (but don't use +DS2.0 without +DA1.1,
  4734. # or else the binary won't run on older PA hardware).
  4735. hpux1000o:
  4736.     @case `uname -m` in \
  4737.       ia64) ;; \
  4738.       *) MFLAGS='+ESlit +ESsfc' ;; \
  4739.     esac ; \
  4740.     MESSAGE1="with PA-RISC-specific optimizations $(MESSAGE1)" \
  4741.     $(MAKE) "SHELL=/usr/bin/sh" "PATH=/opt/ansic/bin:$$PATH" hpux1000 \
  4742.     KTARGET=$${KTARGET:-$(@)} "KFLAGS = $(KFLAGS) \
  4743.     -Aa -D_HPUX_SOURCE -DCK_ANSIC -DUTIMEH \
  4744.     +O2 -Wl,-Fw $$MFLAGS"
  4745.  
  4746. #Like hpux1000o but with "+Onolimit".
  4747. #On 700 series maxdsize >= 0xB000 (=176MB).  Takes a long time.
  4748. hpux1000o+:
  4749.     @MESSAGE1="and +Onolimit $(MESSAGE1)" KTARGET=$${KTARGET:-$(@)} \
  4750.     $(MAKE) hpux1000o \
  4751.     "KFLAGS = $(KFLAGS) +Onolimit"
  4752.  
  4753. hpux1100:
  4754.     $(MAKE) hpux1000 KTARGET=$${KTARGET:-$(@)}
  4755.  
  4756. hpux1100o:
  4757.     $(MAKE) hpux1000o KTARGET=$${KTARGET:-$(@)}
  4758.  
  4759. hpux1100o+:
  4760.     $(MAKE) hpux1000o+ KTARGET=$${KTARGET:-$(@)}
  4761.  
  4762. hpux1100gcc:
  4763.     $(MAKE) hpux1000gcc KTARGET=$${KTARGET:-$(@)}
  4764.  
  4765. # Trusted HP-UX 11
  4766. hpux1100t:
  4767.     $(MAKE) hpux1000t KTARGET=$${KTARGET:-$(@)}
  4768.  
  4769. hpux1100to:
  4770.     $(MAKE) hpux1000to KTARGET=$${KTARGET:-$(@)}
  4771.  
  4772. hpux1100to+:
  4773.     $(MAKE) hpux1000to+ KTARGET=$${KTARGET:-$(@)}
  4774.  
  4775. #Regulus on CIE Systems 680/20
  4776. cie:
  4777.     @echo 'Making C-Kermit $(CKVER) for CIE Systems 680/20 Regulus...'
  4778.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4779.     "CFLAGS = -DATTSV -DNOFILEH -DCIE -DNOLEARN $(KFLAGS) -O" "LNKFLAGS ="
  4780.  
  4781. # Linux 1.2 or later with gcc, dynamic libraries, ncurses, TCP/IP.
  4782. #
  4783. # If your Linux system has curses rather than ncurses, use the linuxc
  4784. # entry, or if that doesn't work, linuxnc.
  4785. #
  4786. # The Kermit "large memory model" is used by default to configure big packet
  4787. # and script buffers, etc.  For small-memory or limited-resource systems,
  4788. # "make linux KFLAGS=-DNOBIGBUF".
  4789. #
  4790. # -DLINUXFSSTND (Linux File System Standard 1.2) gives UUCP lockfile /var/lock
  4791. # with string pid.  Remove this to get /usr/spool/uucp with int pid, used in
  4792. # very early Linux versions.  FSSTND 1.2 also says that the PID string in the
  4793. # UUCP lock file has leading spaces.  This is a change from FSSTND 1.0, which
  4794. # used leading zeros.  Add -DFSSTND10 to support FSSTND 1.0 instead of 1.2.
  4795. # I hope subsequent editions of the file-system standard did not change these
  4796. # again.
  4797. #
  4798. # Add -DOLINUXHISPEED (Old Linux High Speed support) to turn on an ugly kludge
  4799. # in Linux 1.0 and earlier to support speeds of 57600 and 115200.  Extremely
  4800. # old Linux systems (pre-0.99pl15) will not support this.  If OLINUXHISPEED is
  4801. # not defined, then only the standard POSIX termios methods of setting the port
  4802. # speed will be used, and in this case speeds can be as high as 460800 in most
  4803. # modern Linux versions.
  4804. #
  4805. # -DCK_POSIX_SIG (POSIX signal handling) is good for Linux releases back to at
  4806. # least 0.99.14; if it causes trouble for you, remove it from the CFLAGS.
  4807. #
  4808. # -pipe removes the need for temp files - remove it if it causes trouble.
  4809. #
  4810. # -funsigned-char makes all characters unsigned, as they should have been
  4811. #  in the first place.
  4812. #
  4813. # Add -DCK_DSYSINI if you want a shared system-wide init file.
  4814. #
  4815. # See ckubwr.txt about -DNOCOTFMC.  In fact, you really should read the
  4816. # entire Linux section of ckubwr.txt.
  4817. #
  4818. # The "linuxa" entry can be referenced directly on LIBC systems, but not
  4819. # GLIBC, where -lcrypt is required.  The "make linux" entry should normally
  4820. # be used for all builds on all Linux distributions unless you have special
  4821. # requirements, in which case keep reading.  CK_NEWTERM added after 7.0B04
  4822. # due to new complaints about ncurses changing buffering of tty.
  4823.  
  4824. linuxa:
  4825.     @echo 'Making C-Kermit $(CKVER) for Linux 1.2 or later...'
  4826.     @echo 'IMPORTANT: Read the comments in the linux section of the'
  4827.     @echo 'makefile if you have trouble.'
  4828.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  4829.     "CFLAGS = -O -DLINUX -pipe -funsigned-char -DFNFLOAT -DCK_POSIX_SIG \
  4830.     -DCK_NEWTERM -DTCPSOCKET -DLINUXFSSTND -DNOCOTFMC -DPOSIX \
  4831.     -DUSE_STRERROR $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" "LIBS = $(LIBS) -lm"
  4832.  
  4833. # As above but with profiling
  4834. linuxp:
  4835.     $(MAKE) linuxa KTARGET=$${KTARGET:-$(@)} "KFLAGS=$(KFLAGS) -pg" \
  4836.     "LIBS=-pg -lcrypt -lresolv"
  4837.  
  4838. #New primary Linux entry for C-Kermit 8.0, replacing big nested
  4839. #if-then-else construction full of repeated clauses with a simpler scheme
  4840. #for automatically detecting:
  4841. # . Old versus new pty handling (new == glibc 2.1++)
  4842. # . Presence or absence of librypt.a and <crypt.h>
  4843. # . Presence or absence of libresolv.a
  4844. #Unlike the previous scheme, this one is easily extended to include more tests.
  4845. #Note: The HAVE_PTMX test was previously "if test -c /dev/ptmx" but this was
  4846. #not sufficient for Debian 2.1, because although it had /dev/ptmx, it did not
  4847. #have grantpt(), unlockpt(), or ptsname(), so has been changed to look for a
  4848. #grantpt() prototype in the header files.  Warning: uses a temporary file in
  4849. #the current directory.
  4850. linux:
  4851.     @if test \
  4852.     `grep grantpt /usr/include/*.h /usr/include/sys/*.h | wc -l` -gt 0; \
  4853.     then if test -c /dev/ptmx; then HAVE_PTMX='-DHAVE_PTMX'; \
  4854.     else HAVE_PTMX=''; fi; fi ; \
  4855.     $(MAKE) KTARGET=$${KTARGET:-$(@)} \
  4856.     "KFLAGS=-DCK_NCURSES -I/usr/include/ncurses $$HAVE_PTMX \
  4857.     `if test -f /usr/lib/libcrypt.a; then echo -DHAVE_CRYPTH; fi` \
  4858.     $(KFLAGS)" \
  4859.     "LIBS=-lncurses \
  4860.     `if test -f /usr/lib/libresolv.a; then echo -lresolv; fi` \
  4861.     `if test -f /usr/lib/libcrypt.a; then echo -lcrypt; fi`" \
  4862.     linuxa
  4863.  
  4864. # As above but for Linux systems that have no <sys/select.h>.
  4865. linuxns:
  4866.     $(MAKE) linux KTARGET=$${KTARGET:-$(@)} KFLAGS=-DNO_SYS_SELECT_H
  4867.  
  4868. # As above, but forces use of curses rather than ncurses.
  4869. # Add -ltermcap to LIBS if necessary.
  4870. # Also watch out for libcurses and/or libtermcap having been moved.
  4871. # In that case you might need something like:
  4872. #  "LIBS = -L/usr/lib/curses -lcurses -L/usr/lib/termcap -ltermcap"
  4873.  
  4874. linuxc:
  4875.     @if test \
  4876.     `grep grantpt /usr/include/*.h /usr/include/sys/*.h | wc -l` -gt 0; \
  4877.     then if test -c /dev/ptmx; then HAVE_PTMX='-DHAVE_PTMX'; \
  4878.     else HAVE_PTMX=''; fi; fi ; \
  4879.     $(MAKE) KTARGET=$${KTARGET:-$(@)} \
  4880.     "KFLAGS=-DCK_CURSES $$HAVE_PTMX \
  4881.     `if test -f /usr/lib/libcrypt.a; then echo -DHAVE_CRYPTH; fi` \
  4882.     $(KFLAGS)" \
  4883.     "LIBS=-lcurses \
  4884.     `if test -f /usr/lib/libresolv.a; then echo -lresolv; fi` \
  4885.     `if test -f /usr/lib/libcrypt.a; then echo -lcrypt; fi`" \
  4886.     linuxa
  4887.  
  4888. # As above but with with no curses support, for example because you installed
  4889. # the developer tools but did not install (n)curses.
  4890. linuxnc:
  4891.     @if test \
  4892.     `grep grantpt /usr/include/*.h /usr/include/sys/*.h | wc -l` -gt 0; \
  4893.     then if test -c /dev/ptmx; then HAVE_PTMX='-DHAVE_PTMX'; \
  4894.     else HAVE_PTMX=''; fi; fi ; \
  4895.     $(MAKE) KTARGET=$${KTARGET:-$(@)} \
  4896.     "KFLAGS= $$HAVE_PTMX \
  4897.     `if test -f /usr/lib/libcrypt.a; then echo -DHAVE_CRYPTH; fi` \
  4898.     $(KFLAGS)" "LIBS= \
  4899.     `if test -f /usr/lib/libresolv.a; then echo -lresolv; fi` \
  4900.     `if test -f /usr/lib/libcrypt.a; then echo -lcrypt; fi`" \
  4901.     linuxa
  4902.  
  4903. # A minimum-size version for Linux that does only scripting and
  4904. # serial communication -- no networks, no file transfer.
  4905. linuxso:
  4906.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  4907.     "CFLAGS = -O -DLINUX -pipe -funsigned-char -DPOSIX -DCK_POSIX_SIG \
  4908.     -DLINUXFSSTND -DNOCOTFMC -DNOXFER -DNODEBUG -DNOCSETS -DNOHELP \
  4909.     -DNONET -DMINIDIAL -DNOSCRIPT -DNOIKSD -DNOPUSH $(KFLAGS)" \
  4910.     "LNKFLAGS = $(LNKFLAGS)" "LIBS = "
  4911.  
  4912. #Mklinux DR3 has horrible bug in <utmpbits.h> - see ckufio.c.
  4913. mklinux:
  4914.     $(MAKE) KTARGET=$${KTARGET:-$(@)} "KFLAGS=-DUTMPBUG" \
  4915.     "LIBS=-lcrypt -lresolv" linuxa
  4916.  
  4917. #LinuxPPC 1999
  4918. linuxppc:
  4919.     @echo 'Making C-Kermit $(CKVER) for LinuxPPC 1999...'
  4920.     @if test -f /usr/lib/libcrypt.a; then \
  4921.         if test -f /usr/lib/libresolv.a; then \
  4922.             $(MAKE) KTARGET=$${KTARGET:-$(@)} \
  4923.         "KFLAGS=$(NCURSES_CPP) -DHAVE_CRYPT_H \
  4924.         -DLOCK_DIR=\\\\\\"\"/var/lock/modem\\\\\\"\" $(KFLAGS)" \
  4925.             "LIBS=-lncurses -lresolv -lcrypt" linuxa ; \
  4926.         else \
  4927.             $(MAKE) KTARGET=$${KTARGET:-$(@)} \
  4928.         "KFLAGS=$(NCURSES_CPP) -DHAVE_CRYPT_H \
  4929.         -DLOCK_DIR=\\\\\\"\"/var/lock/modem\\\\\\"\" $(KFLAGS)" \
  4930.             "LIBS=-lncurses -lcrypt" linuxa ; \
  4931.         fi \
  4932.     else \
  4933.         if test -f /usr/lib/libresolv.a; then \
  4934.             $(MAKE) KTARGET=$${KTARGET:-$(@)} \
  4935.         "KFLAGS=$(NCURSES_CPP) \
  4936.         -DLOCK_DIR=\\\\\\"\"/var/lock/modem\\\\\\"\" $(KFLAGS)" \
  4937.             "LIBS=-lncurses -lresolv" linuxa ; \
  4938.         else \
  4939.             $(MAKE) KTARGET=$${KTARGET:-$(@)} \
  4940.         "KFLAGS=$(NCURSES_CPP) \
  4941.         -DLOCK_DIR=\\\\\\"\"/var/lock/modem\\\\\\"\" $(KFLAGS)" \
  4942.             "LIBS=-lncurses" linuxa ; \
  4943.         fi \
  4944.     fi
  4945.  
  4946.  
  4947. # The remaining Linux entries are for special or customized builds.  They
  4948. # have not been generalized like the ones above.  Ideally, we should allow
  4949. # for every combination of libc vs glibc, gcc vs egcs, curses vs ncurses,
  4950. # Kerberos IV vs Kerberos V vs SRP (in any combination), and so on --
  4951. # volunteers welcome.
  4952.  
  4953. # If you get "Internal compiler error xxx, output pipe has been closed",
  4954. # try removing -pipe.
  4955.  
  4956. # Like "make linux" but built with egcs rather than gcc.
  4957. linuxegcs:
  4958.     @echo 'Making C-Kermit $(CKVER) for Linux 1.2 or later with egcs...'
  4959.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = egcs" "CC2 = egcs" \
  4960.     "CFLAGS = -O -DLINUX -pipe -funsigned-char \
  4961.     -DPOSIX -DCK_POSIX_SIG -DCK_NCURSES -DNOCOTFMC \
  4962.     -DTCPSOCKET -DLINUXFSSTND $(KFLAGS)" \
  4963.     "LNKFLAGS = $(LNKFLAGS)" "LIBS = -lncurses -lcrypt -lresolv"
  4964.  
  4965. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.1 (no K4 compatibility).
  4966. linux+krb5:
  4967.     @echo 'Making C-Kermit $(CKVER) for Linux on Intel with Kerberos...'
  4968.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  4969.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  4970.     -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 \
  4971.     -DCK_ENCRYPTION -DCK_DES -DCK_CURSES -DCK_POSIX_SIG \
  4972.     -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H $(K5INC) $(K5INC)/krb5 \
  4973.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  4974.     "LIBS = $(K5LIB) -lncurses -ltermcap -ldes425 -lkrb5 \
  4975.     -lcom_err -lk5crypto -lgssapi_krb5 -lcrypt -lresolv"
  4976.  
  4977. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.1 with K4 compatibility.
  4978. #
  4979. # Requires the Kerberos 1.2.1 be compiled with KRB4 compatibility.
  4980. linux+krb5+krb4:
  4981.     @echo 'Making C-Kermit $(CKVER) for Linux on Intel with Kerberos...'
  4982.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  4983.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  4984.     -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 -DKRB4 -DKRB524 \
  4985.     -DCK_ENCRYPTION -DCK_DES -DCK_CURSES -DCK_POSIX_SIG \
  4986.     -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H $(K5INC) $(K5INC)/krb5 \
  4987.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  4988.     "LIBS = $(K5LIB) -lncurses -ltermcap -lkrb4 -ldes425 -lkrb5 \
  4989.     -lcom_err -lk5crypto -lcrypt -lgssapi_krb5 -lresolv"
  4990.  
  4991. # Linux on Intel PC with SRP 1.7.4 using GNU MP, Krypto, and Eric Young's
  4992. # DES library.  Remove the -DCK_DES, -DLIBDES and -ldes if you do not have
  4993. # Eric Young's# libdes.a installed.
  4994. #
  4995. linux+srp+gmp:
  4996.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SRP...'
  4997.     $(MAKE) srpmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  4998.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  4999.     -DCK_AUTHENTICATION -DCK_SRP \
  5000.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES \
  5001.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5002.     $(SRPINC) $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5003.     "LIBS = $(SRPLIB) \
  5004.     -lncurses -ltermcap -lsrp -lgmp -ldes -lkrypto -lcrypt -lresolv"
  5005.  
  5006. linux+srp+gmp+no-des:
  5007.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SRP ...'
  5008.     $(MAKE) srpmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5009.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5010.     -DCK_AUTHENTICATION -DCK_SRP \
  5011.     -DCK_ENCRYPTION -DCK_CAST \
  5012.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5013.     $(SRPINC) $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5014.     "LIBS = $(SRPLIB) \
  5015.     -lncurses -ltermcap -lsrp -lgmp -lkrypto -lcrypt -lresolv"
  5016.  
  5017. linux+srp+gmp-export:
  5018.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SRP...'
  5019.     $(MAKE) srpmit-export KTARGET=$${KTARGET:-$(@)} \
  5020.     "CC = gcc" "CC2 = gcc" \
  5021.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5022.     -DCK_AUTHENTICATION -DCK_SRP -DFNFLOAT \
  5023.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5024.     $(SRPINC) $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5025.     "LIBS = $(SRPLIB) \
  5026.     -lncurses -ltermcap -lsrp -lgmp -lkrypto -lcrypt -lm -lresolv"
  5027.  
  5028. linux+srp+gmp+pam:
  5029.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SRP...'
  5030.     $(MAKE) srpmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5031.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5032.     -DCK_AUTHENTICATION -DCK_SRP \
  5033.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES \
  5034.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5035.     -DCK_PAM -DFNFLOAT $(SRPINC) $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5036.     "LIBS = $(SRPLIB) -lncurses -ltermcap -lsrp -lgmp -ldes -lkrypto \
  5037.     -lcrypt -lpam -ldl -lm -lresolv"
  5038.  
  5039. #Linux on Intel PC with SRP 1.7.4 built with OpenSSL for Big Number Math
  5040. #and Cryptographic functionality.
  5041. #
  5042. linux+srp:
  5043.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SRP...'
  5044.     $(MAKE) srpmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5045.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5046.     -DCK_AUTHENTICATION -DCK_SRP \
  5047.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES \
  5048.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5049.     $(SRPINC) $(SSLINC) $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5050.     "LIBS = $(SRPLIB) $(SSLLIB) \
  5051.     -lncurses -ltermcap -lsrp -lkrypto -lcrypto -lcrypt -lresolv"
  5052.  
  5053. linux+srp+pam:
  5054.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SRP...'
  5055.     $(MAKE) srpmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5056.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5057.     -DCK_AUTHENTICATION -DCK_SRP \
  5058.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES \
  5059.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5060.     -DCK_PAM -DFNFLOAT $(SRPINC) $(SSLINC) $(KFLAGS)" \
  5061.     "LNKFLAGS = $(LNKFLAGS)" \
  5062.     "LIBS = $(SRPLIB) $(SSLLIB) -lncurses -ltermcap -lsrp -lkrypto \
  5063.     -lcrypto -lcrypt -lpam -ldl -lm -lresolv"
  5064.  
  5065. linux+shadow+pam:
  5066.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with Shadow+PAM...'
  5067.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5068.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5069.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5070.     -DCK_SHADOW -DCK_PAM -DFNFLOAT \
  5071.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5072.     "LIBS = -lncurses -ltermcap -lcrypt -lpam -ldl -lm -lresolv"
  5073.  
  5074. #Linux configured for SSL/TLS.
  5075. #Remove -ltermcap if it causes trouble e.g. in Debian 2.2.
  5076. linux+openssl:
  5077.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SSL/TLS...'
  5078.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5079.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5080.     -DCK_AUTHENTICATION -DCK_SSL \
  5081.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5082.     -DFNFLOAT $(SSLINC) $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5083.     "LIBS= $(SSLLIB) \
  5084.     -lncurses -ltermcap -lssl -lcrypto -lm -lresolv -lcrypt"
  5085.  
  5086. #Linux configured for SSL/TLS and Shadow Passwords
  5087. #Remove -ltermcap if it causes trouble e.g. in Debian 2.2.
  5088. linux+openssl+shadow:
  5089.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SSL/TLS...'
  5090.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5091.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5092.     -DCK_AUTHENTICATION -DCK_SSL \
  5093.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5094.     -DFNFLOAT -DCK_SHADOW $(SSLINC) $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5095.     "LIBS= $(SSLLIB) \
  5096.     -lncurses -ltermcap -lssl -lcrypto -lm -lresolv -lcrypt"
  5097.  
  5098. #Linux configured for SSL/TLS, ZLIB, PAM and Shadow Passwords
  5099. #Remove -ltermcap if it causes trouble e.g. in Debian 2.2.
  5100. linux+openssl+zlib+shadow+pam:
  5101.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SSL/TLS...'
  5102.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5103.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5104.     -DCK_AUTHENTICATION -DCK_SSL -DCK_PAM -DZLIB \
  5105.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5106.     -DFNFLOAT -DCK_SHADOW $(SSLINC) $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5107.     "LIBS= $(SSLLIB) \
  5108.     -lncurses -ltermcap -lssl -lcrypto -lm -lresolv -lcrypt -lz -lpam -ldl"
  5109.  
  5110. #Linux on Intel PC with SRP and SSL/TLS.
  5111. #
  5112. # libsrp.a should be build with OpenSSL
  5113. # Requires the Kerberos 1.2.2 or higher to be compiled with KRB4 compatibility.
  5114. #Remove -ltermcap if it causes trouble e.g. in Debian 2.2.
  5115. linux+srp+openssl:
  5116.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SRP,SSL...'
  5117.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5118.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5119.     -DCK_AUTHENTICATION -DCK_SRP \
  5120.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL \
  5121.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5122.     $(SRPINC) $(SSLINC) $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5123.     "LIBS = $(SRPLIB) $(SSLLIB) \
  5124.     -lncurses -ltermcap -lsrp -lssl -lkrypto -lcrypto \
  5125.     -lcrypt -lresolv"
  5126.  
  5127. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.2 and SRP.
  5128. #
  5129. # libsrp.a should be build with GNU MP (libgmp.a)
  5130. # instead of AT&T CryptoLib (libcrypt.a) due to naming conflicts with
  5131. # standard distribution Linux libraries.
  5132. # Requires the Kerberos 1.2.2 or higher to be compiled with KRB4 compatibility.
  5133. linux+krb5+krb4+srp:
  5134.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB54+SRP...'
  5135.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5136.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5137.     -DCK_AUTHENTICATION -DCK_SRP -DCK_KERBEROS  -DKRB5 -DKRB4 -DKRB524 \
  5138.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES \
  5139.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5140.     $(K5INC) $(K5INC)/krb5 $(SRPINC) \
  5141.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5142.     "LIBS = $(K5LIB) $(SRPLIB) \
  5143.     -lncurses -ltermcap -lsrp -lgmp -lgssapi_krb5 -lkrypto \
  5144.     -ldes -lkrb4 -ldes425 -lkrb5 -lcom_err -lk5crypto -lcrypt -lresolv"
  5145.  
  5146. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.2, SRP and SSL/TLS.
  5147. #
  5148. # libsrp.a should be build with OpenSSL
  5149. # Requires the Kerberos 1.2.2 or higher to be compiled with KRB4 compatibility.
  5150. # Requires OpenSSL 0.9.6a or higher
  5151. linux+krb5+krb4+srp+openssl:
  5152.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SRP,SSL...'
  5153.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5154.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5155.     -DCK_AUTHENTICATION -DCK_SRP -DCK_KERBEROS  -DKRB5 -DKRB4 -DKRB524 \
  5156.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL \
  5157.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5158.     $(K5INC) $(K5INC)/krb5 $(SRPINC) $(SSLINC) \
  5159.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5160.     "LIBS = $(K5LIB) $(SRPLIB) $(SSLLIB) \
  5161.     -lncurses -ltermcap -lsrp \
  5162.     -lkrb4 -lssl -lkrypto -lcrypto \
  5163.     -lkrb5 -lcom_err -lk5crypto -lgssapi_krb5 -lcrypt -lresolv"
  5164.  
  5165. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.2, SSL/TLS.
  5166. #
  5167. # libsrp.a should be build with OpenSSL
  5168. # Requires the Kerberos 1.2.2 be compiled with KRB4 compatibility.
  5169. linux+krb5+krb4+openssl:
  5170.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SSL...'
  5171.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5172.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5173.     -DCK_AUTHENTICATION -DCK_KERBEROS  -DKRB5 -DKRB4 -DKRB524 \
  5174.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL \
  5175.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5176.     $(K5INC) $(K5INC)/krb5 $(SSLINC) \
  5177.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5178.     "LIBS = $(K5LIB) $(SSLLIB) \
  5179.     -lncurses -ltermcap \
  5180.     -lkrb4 -lssl -lcrypto -lkrb5 -lcom_err \
  5181.     -lk5crypto -lgssapi_krb5 -lcrypt -lresolv"
  5182.  
  5183. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.1, SSL/TLS.
  5184. #
  5185. # libsrp.a should be build with OpenSSL
  5186. # Requires the Kerberos 1.2.2 be compiled with KRB4 compatibility.
  5187. linux+krb5+krb4+openssl+shadow:
  5188.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SSL...'
  5189.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5190.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5191.     -DCK_AUTHENTICATION -DCK_KERBEROS  -DKRB5 -DKRB4 -DKRB524 \
  5192.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL -DCK_SHADOW \
  5193.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5194.     $(K5INC) $(K5INC)/krb5 $(SSLINC) \
  5195.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5196.     "LIBS = $(K5LIB) $(SSLLIB)  \
  5197.     -lncurses -ltermcap \
  5198.     -lkrb4 -lssl -lcrypto -lkrb5 -lcom_err \
  5199.     -lk5crypto -lgssapi_krb5 -lcrypt -lresolv"
  5200.  
  5201. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2, SSL/TLS.
  5202. #
  5203. # libsrp.a should be build with OpenSSL
  5204. # Requires the Kerberos 1.2.2 be compiled with KRB4 compatibility.
  5205. linux+krb5+krb4+openssl+zlib+shadow:
  5206.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SSL...'
  5207.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5208.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5209.     -DCK_AUTHENTICATION -DCK_KERBEROS  -DKRB5 -DKRB4 -DKRB524 -DZLIB \
  5210.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL -DCK_SHADOW \
  5211.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5212.     $(K5INC) $(K5INC)/krb5 $(SSLINC) \
  5213.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5214.     "LIBS = $(K5LIB) $(SSLLIB) \
  5215.     -lncurses -ltermcap \
  5216.     -lkrb4 -lssl -lcrypto -lkrb5 -lcom_err \
  5217.     -lk5crypto -lgssapi_krb5 -lcrypt -lresolv -lz"
  5218.  
  5219. linux+krb5+krb4+srp-export:
  5220.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SRP...'
  5221.     $(MAKE) krbmit-export KTARGET=$${KTARGET:-$(@)} \
  5222.     "CC = gcc" "CC2 = gcc" \
  5223.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5224.     -DCK_AUTHENTICATION -DCK_SRP -DCK_KERBEROS  -DKRB5 -DKRB4 -DKRB524 \
  5225.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5226.     $(K5INC) $(K5INC)/krb5 $(SRPINC) \
  5227.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5228.     "LIBS = $(SRPLIB) $(K5LIB) \
  5229.     -lncurses -ltermcap -lsrp -lgmp -lkrb4 -ldes425 -lkrb5 -lgssapi_krb5 \
  5230.     -lcom_err -lk5crypto -lkrypto -lcrypt -lresolv"
  5231.  
  5232. linux+krb5+krb4+srp+pam:
  5233.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SRP...'
  5234.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5235.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5236.     -DCK_AUTHENTICATION -DCK_SRP -DCK_KERBEROS  -DKRB5 -DKRB4 -DKRB524 \
  5237.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES \
  5238.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5239.     -DCK_PAM $(K5INC) $(K5INC)/krb5 $(SRPINC) \
  5240.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5241.     "LIBS = $(SRPLIB) $(K5LIB) \
  5242.     -lncurses -ltermcap -lsrp -lgmp -ldes -lkrb4 -ldes425 -lkrb5 \
  5243.     -lcom_err -lk5crypto -lgssapi_krb5 -lkrypto -lcrypt -lpam -ldl \
  5244.     -lresolv"
  5245.  
  5246. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.2, SRP and SSL/TLS.
  5247. # and PAM.
  5248. #
  5249. # libsrp.a should be build with OpenSSL
  5250. # Requires the Kerberos 1.2.2 be compiled with KRB4 compatibility.
  5251. linux+krb5+krb4+srp+openssl+pam-debug:
  5252.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SRP,SSL...'
  5253.     $(MAKE) krbmit-debug KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5254.     "CFLAGS = -g -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5255.     -DCK_AUTHENTICATION -DCK_SRP -DCK_KERBEROS  -DKRB5 -DKRB4 -DKRB524 \
  5256.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL -DCK_PAM \
  5257.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5258.     -w -Dmalloc=dmalloc -Dfree=dfree -DMDEBUG $(K5INC) $(K5INC)/krb5 \
  5259.     $(SRPINC) $(SSLINC) $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5260.     "LIBS = $(SRPLIB) $(K5LIB) $(SSLLIB) \
  5261.     -lncurses -ltermcap -lsrp -lkrb4 -lssl -lkrypto -lcrypto \
  5262.     -lkrb5 -lcom_err -lk5crypto -lgssapi_krb5 -lcrypt -lresolv -lpam -ldl"
  5263.  
  5264. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.1, SRP and SSL/TLS.
  5265. # and PAM.
  5266. #
  5267. # libsrp.a should be build with OpenSSL
  5268. # Requires the Kerberos 1.2.2 be compiled with KRB4 compatibility.
  5269. linux+krb5+krb4+srp+openssl+pam:
  5270.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SRP,SSL...'
  5271.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5272.     "CFLAGS = -g -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5273.     -DCK_AUTHENTICATION -DCK_SRP -DCK_KERBEROS  -DKRB5 -DKRB4 -DKRB524 \
  5274.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL -DCK_PAM \
  5275.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5276.     $(K5INC) $(K5INC)/krb5 $(SRPINC) $(SSLINC) \
  5277.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5278.     "LIBS = $(SRPLIB) $(K5LIB) $(SSLLIB)  \
  5279.     -lm -lncurses -ltermcap -lsrp \
  5280.     -lkrb4 -lssl -lkrypto  -lcrypto -lgssapi_krb5 \
  5281.     -lkrb5 -lcom_err -lk5crypto -lcrypt -lresolv -lpam -ldl"
  5282.  
  5283. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.2, SRP, OpenSSL
  5284. # with ZLIB and PAM
  5285. #
  5286. # libsrp.a should be build with OpenSSL
  5287. # Requires the Kerberos 1.2.2 be compiled with KRB4 compatibility.
  5288. linux+krb5+krb4+srp+openssl+zlib+pam:
  5289.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SRP,SSL...'
  5290.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5291.     "CFLAGS = -g -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5292.     -DCK_AUTHENTICATION -DCK_SRP -DCK_KERBEROS  -DKRB5 -DKRB4 -DKRB524 \
  5293.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL -DCK_PAM -DZLIB \
  5294.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5295.     $(K5INC) $(K5INC)/krb5 $(SRPINC) $(SSLINC) \
  5296.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5297.     "LIBS = $(SRPLIB) $(K5LIB) $(SSLLIB) \
  5298.     -lm -lncurses -ltermcap -lsrp \
  5299.     -lkrb4 -lssl -lkrypto  -lcrypto -lgssapi_krb5 \
  5300.     -lkrb5 -lcom_err -lk5crypto -lcrypt -lresolv -lpam -ldl -lz"
  5301.  
  5302. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.2, SRP, OpenSSL
  5303. # with ZLIB, Shadow Passwords, and PAM
  5304. #
  5305. # libsrp.a should be build with OpenSSL
  5306. # Requires the Kerberos 1.2.2 be compiled with KRB4 compatibility.
  5307. linux+krb5+krb4+srp+openssl+zlib+shadow+pam:
  5308.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SRP,SSL...'
  5309.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5310.     "CFLAGS = -g -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5311.     -DCK_AUTHENTICATION -DCK_SRP -DCK_KERBEROS  -DKRB5 -DKRB4 -DKRB524 \
  5312.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL -DCK_PAM -DZLIB \
  5313.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5314.     -DCK_SHADOW $(K5INC) $(K5INC)/krb5 $(SRPINC) $(SSLINC) \
  5315.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5316.     "LIBS = $(SRPLIB) $(K5LIB) $(SSLLIB) \
  5317.     -lm -lncurses -ltermcap -lsrp -lkrypto \
  5318.     -lkrb4 -lssl -lcrypto -lgssapi_krb5 \
  5319.     -lkrb5 -lcom_err -lk5crypto -lcrypt -lresolv -lpam -ldl -lz"
  5320.  
  5321. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.2, OpenSSL
  5322. # with ZLIB, Shadow Passwords, PAM
  5323. #
  5324. # libsrp.a should be build with OpenSSL
  5325. # Requires the Kerberos 1.2.2 be compiled with KRB4 compatibility.
  5326. linux+krb5+krb4+openssl+zlib+shadow+pam:
  5327.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SRP,SSL...'
  5328.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5329.     "CFLAGS = -g -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5330.     -DCK_AUTHENTICATION -DCK_KERBEROS  -DKRB5 -DKRB4 -DKRB524 \
  5331.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL -DCK_PAM -DZLIB \
  5332.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5333.     -DCK_SHADOW $(K5INC) $(K5INC)/krb5 $(SSLINC) \
  5334.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5335.     "LIBS = $(K5LIB) $(SSLLIB) \
  5336.     -lm -lncurses -ltermcap \
  5337.     -lkrb4 -lssl -lcrypto -lgssapi_krb5 \
  5338.     -lkrb5 -lcom_err -lk5crypto -lcrypt -lresolv -lpam -ldl -lz"
  5339.  
  5340. #Red Hat Linux 7.1 - full install includes Kerberos 5 (4 compat), PAM, SSL.
  5341. #Also works around bug in curses in which terminal goes dead after
  5342. #returning from file-transfer display.
  5343. redhat71:
  5344.     $(MAKE) linux+krb5+krb4+openssl+zlib+shadow+pam \
  5345.     KTARGET=$${KTARGET:-$(@)} "KFLAGS = -DRH71 $(KFLAGS)"
  5346.  
  5347. redhat71+srp:
  5348.     $(MAKE) linux+krb5+krb4+srp+openssl+zlib+shadow+pam \
  5349.     KTARGET=$${KTARGET:-$(@)} "KFLAGS = -DRH71 $(KFLAGS)"
  5350.  
  5351. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.2, OpenSSL
  5352. # with ZLIB and PAM and Shadow passwords
  5353. linux+krb5+openssl+zlib+shadow+pam:
  5354.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB5,SSL...'
  5355.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5356.     "CFLAGS = -g -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5357.     -DCK_AUTHENTICATION -DCK_KERBEROS  -DKRB5 -DCK_SHADOW \
  5358.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL -DCK_PAM -DZLIB \
  5359.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5360.     $(K5INC) $(K5INC)/krb5 $(SSLINC) \
  5361.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5362.     "LIBS = $(K5LIB) $(SSLLIB) \
  5363.     -lm -lncurses -ltermcap -lssl -lcrypto -lgssapi_krb5 \
  5364.     -lkrb5 -lcom_err -lk5crypto -lcrypt -lresolv -lpam -ldl -lz"
  5365.  
  5366. linuxnotcp:
  5367.     $(MAKE) linux KTARGET=$${KTARGET:-$(@)} "KFLAGS = -DNONET $(KFLAGS)"
  5368.  
  5369. # "make linuxnotcp" with lcc (see http://www.cs.princeton.edu/software/lcc)
  5370. # lcc does not understand various gcc extensions:
  5371. #  "__inline__" -- can be eliminated by adding "-D__inline__="
  5372. #  "__asm__ and "long long" -- in header files, should be surrounded by
  5373. #                              "#ifndef(__STRICT_ANSI__)"/"#endif"
  5374. #  however, TCP requires some __asm__ functions, so cannot be compiled
  5375. linuxnotcp-lcc:
  5376.     @echo 'Making C-Kermit $(CKVER) for Linux with lcc ...'
  5377.     @echo 'Read comments in makefile for additional information.'
  5378.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC = lcc" "CC2 = lcc" \
  5379.     "CFLAGS = -DLINUX -DPOSIX -DCK_CURSES -DCK_POSIX_SIG \
  5380.     -UTCPSOCKET -DLINUXFSSTND -DNOLEARN $(KFLAGS)" \
  5381.     "LNKFLAGS = $(LNKFLAGS)" "LIBS = -lcurses -ltermcap"
  5382.  
  5383. # Linux 0.99.14 thru 1.0 with gcc, dynamic libraries, curses, TCP/IP.
  5384. # For Linux 1.2 or later, use "make linux" (above).
  5385. #
  5386. # -DLINUXFSSTND (Linux File System Standard) gives UUCP lockfile /var/lock with
  5387. # string pid.  Remove this and get /usr/spool/uucp with int pid, which was used
  5388. # in early Linux versions.
  5389. #
  5390. # If you get compiler errors regarding <linux/serial.h>, add -DNOHISPEED.
  5391. #
  5392. # -DCK_POSIX_SIG (POSIX signal handling) is good for Linux releases back to at
  5393. # least 0.99.14; if it causes trouble for you, just remove it.
  5394. #
  5395. # -DCK_CURSES: Here we link with the regular curses library.  But you should
  5396. # be using ncurses.  Internally, the ckuusx.c module includes <curses.h>, but
  5397. # this really should be <ncurses.h>.  Thus if you have the new curses
  5398. # material, you should either install it with the standard names, or else
  5399. # create symbolic links from the standard names to the new ones.  If you get
  5400. # compile-time errors complaining about data definitions in termcap.h, it
  5401. # means you have new kernel material mixed with older libc header files.  To
  5402. # fix, add "#include <termios.h>" to the <termcap.h> file.  Or if all this is
  5403. # too confusing, create a new makefile entry based on this one, but with
  5404. # -DCK_CURSES removed from CFLAGS and the entire LIBS= clause removed.
  5405. #
  5406. # But wait, there's more.  On most Linux systems, -ltermcap must be included
  5407. # in LIBS.  But on others, the linker complains that libtermcap can't be
  5408. # found.  In that case, try removing -ltermcap from LIBS=.
  5409. #
  5410. # But wait, there's more.  The format of the PID string in the UUCP lockfile
  5411. # changed between Linux FSSTND 1.0 and 1.2.  In the earlier standard, it had
  5412. # leading zeros; in the second, it has leading spaces.  By default this entry
  5413. # uses the newer standard.  To force the older one, add -DFSSTND10.
  5414. #
  5415. # "The nice thing about the Linux standard is there are so many to choose from"
  5416. #
  5417. # NOTE: Remove -DBIGBUFOK for small-memory or limited-resource systems.
  5418. linux10:
  5419.     @echo 'Making C-Kermit $(CKVER) for Linux 1.0 or earlier...'
  5420.     @echo 'IMPORTANT: Read the comments in the linux section of the'
  5421.     @echo 'makefile if you get compilation or link errors.'
  5422.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5423.     "CFLAGS = -O -DPOSIX -DCK_CURSES -DCK_POSIX_SIG -DLINUX \
  5424.     -DTCPSOCKET -DLINUXFSSTND -DOLINUXHISPEED -DNOLEARN $(KFLAGS)" \
  5425.     "LNKFLAGS = $(LNKFLAGS)" "LIBS = -lcurses -ltermcap"
  5426.  
  5427. #This version was used for Linux prior to C-Kermit 6.0.192.
  5428. #Now the "Linux File System Standard" is considered standard, ditto TCP/IP.
  5429. linuxold:
  5430.     @echo 'Making C-Kermit $(CKVER) for Linux...'
  5431.     @echo 'For FSSTND-recommended UUCP lockfiles, use:'
  5432.     @echo '  make linux "KFLAGS=-DLINUXFSSTND".'
  5433.     @echo 'Read comments in makefile for additional options.'
  5434.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5435.     "CFLAGS = -O -DLINUX -DPOSIX -DCK_CURSES -DCK_POSIX_SIG -DNOLEARN \
  5436.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" "LIBS = -lcurses -ltermcap"
  5437.  
  5438. # LynxOS 2.2 with GCC compiler, TCP/IP and fullscreen display.
  5439. # Probably also works with Lynx 2.1, and maybe even Lynx 2.0.
  5440. # -X means use termios serial drivers rather than BSD4.3-style sgtty drivers.
  5441. # If you have trouble with this, try "make bsd KFLAGS=-DNOFDZERO".
  5442. lynx:
  5443.     @echo 'Making C-Kermit $(CKVER) for LynxOS 2.2 with TCP/IP'
  5444.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5445.     "CFLAGS= -O -DPOSIX -DDIRENT -DSETREUID -DCK_CURSES -DTCPSOCKET \
  5446.     -DCK_ANSIC -DLYNXOS -DNOLEARN" "LNKFLAGS = -X" "LIBS = -lcurses -lbsd"
  5447.  
  5448. lynx22:
  5449.     $(MAKE) lynx KTARGET=$${KTARGET:-$(@)} "KFLAGS=$(KFLAGS)"
  5450.  
  5451. # LynxOS 2.1 with GCC compiler 1.40 and TCP/IP.
  5452. lynx21:
  5453.     @echo 'Making C-Kermit $(CKVER) for LynxOS 2.1 with TCP/IP'
  5454.     $(MAKE) kermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5455.     "CFLAGS= -O -DSETREUID -DTCPSOCKET -DCK_ANSIC -DBSD4 -DLYNXOS" \
  5456.     "LIBS = -lbsd"
  5457.  
  5458. #SCO Xenix 2.2.1 for IBM PC, XT, PS2/30, or other 8088 or 8086 machine
  5459. #Should this not work, try some of the tricks from sco286.
  5460. #NOTE: -DRENAME is omitted for early SCO Xenix releases because it didn't
  5461. #exist, or its semantics were different from the later POSIX-compliant
  5462. #version of rename().
  5463. sco86:
  5464.     @echo 'Making C-Kermit $(CKVER) for SCO Xenix/86...'
  5465.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  5466.     "CFLAGS= -DXENIX -DNOFILEH -DNOIKSD -DNOUNICODE -DNOLEARN \
  5467.     $(KFLAGS) -Dunix -F 3000 -i -M0me" \
  5468.     "LNKFLAGS = -F 3000 -i -s -M0me" "LIBS = -lx"
  5469.  
  5470. #SCO Xenix/286 2.2.1, e.g. for IBM PC/AT, PS/2 Model 50, etc.
  5471. #Reportedly, this "make" can fail simply because of the size of this
  5472. #makefile.  If that happens, use "makeL", or edit out some of the
  5473. #other entries.  No debugging or character-set translation.
  5474. sco286:
  5475.     @echo 'Making C-Kermit $(CKVER) for SCO Xenix/286...'
  5476.     @echo 'If make fails, try using makeL.'
  5477.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  5478.     "CFLAGS= -xenix -s -O -LARGE -DXENIX -DNOFILEH -Dunix -DRDCHK -DNAP \
  5479.     -DNOIKSD -DNODEBUG -DNOTLOG -DNOCSETS -DNOLEARN \
  5480.     $(KFLAGS) -F 3000 -i -M2let16" \
  5481.     "LIBS = -lx" "LNKFLAGS = -xenix -s -O -LARGE -F 3000 -i -M2let16"
  5482.  
  5483. #SCO Xenix/286 2.2.1, e.g. for IBM PC/AT, PS/2 Model 50, etc.
  5484. #As above, but with HDBUUCP (This one might need fixing -- see sco286).
  5485. sco286hdb:
  5486.     @echo 'Making C-Kermit $(CKVER) for SCO Xenix/286 with HDB UUCP...'
  5487.     @echo 'If make fails, try using makeL.'
  5488.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  5489.     "CFLAGS= -s -O -LARGE -DXENIX -DNOFILEH -Dunix -DRDCHK -DNAP \
  5490.     -DHDBUUCP -DNOIKSD -DNOUNICODE -DNOLEARN \
  5491.     $(KFLAGS) -F 3000 -i -M2let32" \
  5492.     "LIBS = -lx" "LNKFLAGS = -s -O -LARGE -F 3000 -i -M2let32"
  5493.  
  5494. #SCO Xenix/386 2.2.2 and 2.2.3
  5495. sco386:
  5496.     @echo 'Making C-Kermit $(CKVER) for SCO Xenix/386 2.2.2...'
  5497.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  5498.     "CFLAGS= -DXENIX -DNOFILEH -DNOIKSD -DNOREDIRECT -DNOLEARN \
  5499.     -Dunix -DRDCHK -DNAP -DNOUNICODE $(KFLAGS) -Otcl -M3e" \
  5500.     "LNKFLAGS = -s" "LIBS = -lx"
  5501.  
  5502. #SCO XENIX/386 2.2.3 with Excelan TCP/IP + curses.
  5503. # NOTE: This one might need some work in C-Kermit 6.0.
  5504. # You might need to include /usr/include/sys/types.h
  5505. # containing "typedef char *caddr_t;".  Then at least it compiles.
  5506. sco386netc:
  5507.     @echo 'Making C-Kermit $(CKVER) for SCO Xenix/386 2.2.3 + Excelan TCP'
  5508.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  5509.     "CFLAGS= -I/usr/include/exos -DXENIX -DCK_CURSES -DNOUNICODE \
  5510.     -Dunix -DRDCHK -DNAP -DTCPSOCKET -DEXCELAN -DNOJC -DNOMKDIR -DNOFILEH \
  5511.     -DNOLEARN -DNOREDIRECT -DNOIKSD -DNO_DNS_SRV $(KFLAGS) -Otcl -M3e" \
  5512.     "LNKFLAGS = -s" "LIBS = -lc -lx -lsocket -lcurses -ltermcap"
  5513.  
  5514. #SCO XENIX/386 2.3.3 with gcc 1.37 or later...
  5515. sco386gcc:
  5516.     @echo 'Making C-Kermit $(CKVER) for SCO Xenix/386 2.3.3, gcc...'
  5517.     @echo 'Add -D_NO_PROTOTYPE if you have trouble with Xenix header files'
  5518.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5519.     "CFLAGS= -O -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP \
  5520.     -DNOJC -DNODEBUG -DNOUNICODE -DNOLEARN $(KFLAGS) \
  5521.     -traditional -fpcc-struct-return -fstrength-reduce \
  5522.     -DM_BITFIELDS -DM_COFF -DM_I386 -DM_I86 -DM_I86SM \
  5523.     -DM_INTERNAT -DM_SDATA -DM_STEXT -DM_SYS3 -DM_SYS5 \
  5524.     -DM_SYSIII -DM_SYSV -DM_WORDSWAP -DM_XENIX -DNOIKSD -DNOREDIRECT \
  5525.     -DPWID_T=int " "LNKFLAGS = -s" "LIBS = -lx"
  5526.  
  5527. #As above, but with curses...
  5528. sco386gccc:
  5529.     @echo 'Making C-Kermit $(CKVER) for SCO Xenix/386 2.3.3, gcc...'
  5530.     @echo 'Add -D_NO_PROTOTYPE if you have trouble with Xenix header files'
  5531.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5532.     "CFLAGS= -O -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP \
  5533.     -DNOJC -DNODEBUG -DCK_CURSES -DNOUNICODE -DNOLEARN $(KFLAGS) \
  5534.     -traditional -fpcc-struct-return -fstrength-reduce \
  5535.     -DM_BITFIELDS -DM_COFF -DM_I386 -DM_I86 -DM_I86SM -DNOREDIRECT \
  5536.     -DM_INTERNAT -DM_SDATA -DM_STEXT -DM_SYS3 -DM_SYS5 \
  5537.     -DM_SYSIII -DM_SYSV -DM_WORDSWAP -DM_XENIX -DNOIKSD \
  5538.     -DPWID_T=int " "LNKFLAGS = -s" "LIBS = -lx -lcurses -ltermlib"
  5539.  
  5540. #SCO UNIX (and ODT) entries...
  5541. #
  5542. #NOTE: All SCO UNIX entry LIBS should have "-lc_s -lc -lx" IN THAT ORDER (if
  5543. #shared C library is desired), or else "-lc -lx" IN THAT ORDER.  Use shared C
  5544. #libraries to save memory, but then don't expect to run the resulting binary
  5545. #on a different machine.  When using -lc_s, you must also use -lc, because the
  5546. #shared C library does not contain all of libc.a.  And in all cases, -lc must
  5547. #ALWAYS precede -lx.
  5548. #
  5549. #ANOTHER NOTE: -DRENAME is included in all SCO UNIX entries.  Remove it if it
  5550. #causes trouble.  No harm is done by removing it (see ckuins.txt).
  5551. #
  5552. #AND ANOTHER: In theory, it should be possible to run SCO UNIX binaries on
  5553. #SCO Xenix 2.3 and later.  In practice, this might not work because of the
  5554. #libraries, etc.  Also, don't add the -link -z switch (which is supposed to
  5555. #root out references to null pointers) because it makes UNIX binaries core
  5556. #dump when they are run under Xenix.
  5557.  
  5558. #NOTE: -Otcl removed and replaced by -O, since -Otcl produced incorrect code.
  5559. #SCO UNIX/386 3.2.0, 3.2.1, and SCO Xenix 2.3.x
  5560. sco3r2:
  5561.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2.0 or 3.2.1 ...'
  5562.     @echo 'Warning: If make blows up, edit the makefile to join'
  5563.     @echo 'the following three continued lines into one line.'
  5564.     @echo 'Also, remove -DRENAME if _rename unresolved at link time.'
  5565.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  5566.     "CFLAGS= -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP -DNOLEARN \
  5567.     -DRENAME -DNOIKSD -DNOJC $(KFLAGS) -O" \
  5568.     "LNKFLAGS = -s" "LIBS = -lc -lx"
  5569.  
  5570. #SCO UNIX/386 3.2.0 and SCO Xenix 2.3.x with Excelan TCP/IP support.
  5571. #In case of compilation or runtime problems, try adding
  5572. #"-DUID_T=int -DGID_T=int" to the CFLAGS.  If that doesn't work, try
  5573. #"-DUID_T=uid_t -DGID_T=gid_t".
  5574. sco3r2net:
  5575.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 / Excelan...'
  5576.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  5577.     "CFLAGS= -I/usr/include/exos -DXENIX -DSVR3 -DNOFILEH -DNOLEARN \
  5578.     -DHDBUUCP -DRDCHK -DNAP -DRENAME -DTCPSOCKET -DEXCELAN -DNOJC \
  5579.     -DNOIKSD -DNOREDIRECT $(KFLAGS) -O" \
  5580.     "LNKFLAGS = -s" "LIBS = -lc -lx -lsocket"
  5581.  
  5582. #SCO UNIX/386 3.2.0 and SCO Xenix 2.3.x with Excelan TCP/IP support.
  5583. #As above, with curses added.
  5584. sco3r2netc:
  5585.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 / Excelan / curses...'
  5586.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  5587.     "CFLAGS= -I/usr/include/exos -DXENIX -DSVR3 -DNOFILEH -DNOLEARN \
  5588.     -DHDBUUCP -DRDCHK -DNAP -DTCPSOCKET -DEXCELAN -DNOJC $(KFLAGS) \
  5589.     -DRENAME -DCK_CURSES -DNOREDIRECT -DNOIKSD -O" "LNKFLAGS = -s" \
  5590.     "LIBS = -lc -lx -lsocket -lcurses -ltermcap"
  5591.  
  5592. #SCO UNIX 3.2.x or SCO Xenix 2.3.x with Racal InterLan TCP/IP support
  5593. # Extra compile flags for other version of Racal InterLan TCP/IP:
  5594. # Xenix286/NP621-286, use -Ml -DPARAMH -DINTERLAN -Di286 -DSYSV
  5595. # Xenix386/NP621-386, use -DPARAMH -DINTERLAN -Di386 -DSYSV
  5596. # ISC386ix/NP622I, use -DSYSV -Di386
  5597. # SCO Unix3.2/NP622S, use -DSYSV -Di386 -DSCO_UNIX
  5598. # AT&T SVR3.2/NP622A, use -DSYSV -Di386 -DATT
  5599. sco3r2netri:
  5600.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 / Racal InterLan...'
  5601.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  5602.     "CFLAGS= -I/usr/include/interlan -DXENIX -DNOFILEH -DHDBUUCP \
  5603.     -DSVR3 -DRDCHK -DNAP -DTCPSOCKET -DPARAMH -DINTERLAN -Di386 -DSYSV \
  5604.     -DRENAME -DNOREDIRECT -DNOIKSD -DNOJC -DNOLEARN $(KFLAGS) -Otcl -M3e" \
  5605.     "LNKFLAGS = -s" "LIBS = -lc -lx -ltcp"
  5606.  
  5607. # SCO XENIX/386 2.3.3 SysV with SCO TCP/IP
  5608. # System V STREAMS TCP developed by Lachman Associates Inc and
  5609. # Convergent Technologies.
  5610. # -DRENAME removed since some reports indicate it is not supported
  5611. # (whereas others say it is.)
  5612. sco3r2lai:
  5613.     @echo 'Making C-Kermit $(CKVER) for SCO XENIX/386 2.3.3 + TCP/IP...'
  5614.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  5615.     "CFLAGS= -DLAI_TCP -Di386 -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK \
  5616.     -DNAP -DTCPSOCKET -DPWID_T=int -DNOREDIRECT -DNOIKSD -DNOLEARN \
  5617.     $(KFLAGS) -Otcl -i -M3e" \
  5618.     "LNKFLAGS = -i -s" "LIBS = -lc -lx -lsocket"
  5619.  
  5620. sco3r2laic:
  5621.     @echo 'Making C-Kermit $(CKVER) for SCO XENIX/386 2.3.3 + TCP/IP...'
  5622.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  5623.     "CFLAGS= -DLAI_TCP -Di386 -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK \
  5624.     -DNAP -DTCPSOCKET -DCK_ANSIC -DCK_CURSES -DM_TERMINFO -DNOLEARN \
  5625.     -DPWID_T=int -DNOREDIRECT -DNOIKSD $(KFLAGS) -Otcl -i -M3e" \
  5626.     "LNKFLAGS = -i -s" "LIBS = -ltinfo -lc -lx -lsocket"
  5627.  
  5628. #SCO UNIX/386 3.2v2 (POSIX job control), shared libraries.
  5629. sco3r22:
  5630.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v2 ...'
  5631.     make wermit KTARGET=$${KTARGET:-$(@)} \
  5632.     "CFLAGS= -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNOLEARN \
  5633.     -DNAP -DRENAME -DPID_T=pid_t -DPWID_T=int -DDIRENT -DNOIKSD \
  5634.     -DNOREDIRECT $(KFLAGS) -O" \
  5635.     "LNKFLAGS = -s" "LIBS = -lc_s -lc -lx"
  5636.  
  5637. #SCO UNIX/386 3.2v2, POSIX job control, fullscreen file transfer display,
  5638. #dynamic memory allocation, shared C library
  5639. sco3r22c:
  5640.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v2 ...'
  5641.     @echo 'Warning: If make blows up, edit the makefile to join'
  5642.     @echo 'the following four continued lines into one line.'
  5643.     make wermit KTARGET=$${KTARGET:-$(@)} \
  5644.     "CFLAGS= -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP -DNOLEARN \
  5645.     -DCK_CURSES -DDIRENT -DRENAME -DNOREDIRECT -DNOIKSD \
  5646.     -DPID_T=pid_t -DPWID_T=int $(KFLAGS) -O" \
  5647.     "LNKFLAGS = -s" "LIBS = -lcurses -lc_s -lc -lx"
  5648.  
  5649. #SCO UNIX/386 3.2v2 with gcc 1.40 or later (POSIX job control)
  5650. sco3r22gcc:
  5651.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v2, gcc'
  5652.     @echo 'Warning: If make blows up, edit the makefile to join'
  5653.     @echo 'the following seven continued lines into one line.'
  5654.     make wermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" \
  5655.     "CFLAGS= -O -DPOSIX -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP \
  5656.     -DNOLEARN -DRENAME -traditional -fpcc-struct-return -fstrength-reduce \
  5657.     -DM_BITFIELDS -DM_COFF -DM_I386 -DM_I86 -DM_I86SM \
  5658.     -DM_INTERNAT -DM_SDATA -DM_STEXT -DM_SYS3 -DM_SYS5 \
  5659.     -DM_SYSIII -DM_SYSV -DM_UNIX -DM_WORDSWAP -DM_XENIX -Dunix \
  5660.     -DPID_T=pid_t -DPWID_T=int -DNOREDIRECT -DNOIKSD $(KFLAGS) " \
  5661.     "LNKFLAGS = -s" "LIBS = -lc_s -lc -lx"
  5662.  
  5663. #SCO UNIX/386 3.2v2 (ODT 1.1) (POSIX job control) with SCO TCP/IP, shared libs
  5664. #Requires SCO TCP/IP or ODT development system for telnet.h, etc.
  5665. sco3r22net:
  5666.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2.2 + TCP/IP...'
  5667.     @echo 'Warning: If make blows up, edit the makefile to join'
  5668.     @echo 'the following three continued lines into one line.'
  5669.     make xermit KTARGET=$${KTARGET:-$(@)} \
  5670.     "CFLAGS= -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP -DTCPSOCKET \
  5671.     -DRENAME -DPID_T=pid_t -DPWID_T=int -DDIRENT -DNOREDIRECT -DNOIKSD \
  5672.     $(KFLAGS) -O" "LNKFLAGS = -s" "LIBS = -lsocket -lc_s -lc -lx"
  5673.  
  5674. #As above, but with curses for fullscreen file transfer display.
  5675. #Requires SCO TCP/IP or ODT development system for telnet.h, etc.
  5676. sco3r22netc:
  5677.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v2 + TCP/IP...'
  5678.     @echo 'Warning: If make blows up, edit the makefile to join'
  5679.     @echo 'the following three continued lines into one line.'
  5680.     make xermit KTARGET=$${KTARGET:-$(@)} "CFLAGS= \
  5681.     -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP -DTCPSOCKET -DRENAME \
  5682.     -DCK_CURSES -DDIRENT -DNOIKSD -DNOREDIRECT \
  5683.     -DPID_T=pid_t -DPWID_T=int -O $(KFLAGS)" \
  5684.     "LNKFLAGS = -s" "LIBS = -lcurses -lsocket -lc_s -lc -lx"
  5685.  
  5686. #SCO XENIX 2.3.4, no curses, no TCP/IP, no IKSD.
  5687. #This one built and tested in C-Kermit 7.0.
  5688. #lcfp is C library floating-point support.
  5689. #Use -M3 to generate 32-bit i386 code instead of 16-bit segmented i286 code.
  5690. #Use -Me to enable MS nonstandard keywords in system headers.
  5691. #Use -W2 or W3 to increase the warning level.
  5692. sco234:
  5693.     @echo 'Making C-Kermit $(CKVER) for SCO XENIX 2.3.4...'
  5694.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  5695.     "CFLAGS= -DSCO32 -DXENIX -DNOFILEH -DHDBUUCP -DRDCHK -DNOLEARN \
  5696.     -DNAP -DNOJC -DNOCOTFMC -DNOIKSD -DNOREDIRECT -DNOTNCODE -DNOGFTIMER \
  5697.     -DNOTIMEVAL -DNOTIMEZONE -DNOSYMLINK -DSCO234 -DDCLGETCWD $(KFLAGS) \
  5698.     -Otcl" "LNKFLAGS = -s" "LIBS = -lcfp -lc -lx"
  5699.  
  5700. #SCO XENIX 2.3.4, no TCP/IP, no IKSD, but with curses.
  5701. # Built and tested in C-Kermit 7.0.
  5702. # Note: XENIX 2.3.4 does not have newterm() so no point in adding -DCK_NEWTERM.
  5703. sco234c:
  5704.     @echo 'Making C-Kermit $(CKVER) for SCO XENIX 2.3.4 + curses...'
  5705.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  5706.     "CFLAGS= -DSCO32 -DXENIX -DNOFILEH -DHDBUUCP -DRDCHK -DNOLEARN \
  5707.     -DNAP -DNOJC -DNOCOTFMC -DNOIKSD -DNOREDIRECT -DNOTNCODE -DNOGFTIMER \
  5708.     -DNOTIMEVAL -DNOTIMEZONE -DNOSYMLINK -DCK_CURSES -DSCO234 \
  5709.     -DDCLGETCWD $(KFLAGS) -Otcl" \
  5710.     "LNKFLAGS = -s" "LIBS = -lcfp -lc -ltinfo -lx"
  5711.  
  5712. #SCO XENIX 2.3.4 with SCO TCP/IP and curses, no IKSD.
  5713. # Built and tested in C-Kermit 7.0.  TCP/IP works and curses works.
  5714. # Previous versions of this target included -lmalloc, but this caused "error:
  5715. # " _calloc : symbol defined more than once" at link time so I removed it.
  5716. # Results are likely to vary depending on exactly which version of the SDK
  5717. # and TCP/IP SDK you have.
  5718. sco234netc:
  5719.     @echo 'Making C-Kermit $(CKVER) for SCO XENIX 2.3.4 + TCP + curses...'
  5720.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  5721.     "CFLAGS= -DSCO32 -DXENIX -DNOFILEH -DHDBUUCP -DRDCHK -DNOLEARN \
  5722.     -DNAP -DNOJC -DNOCOTFMC -DNOIKSD -DNOREDIRECT -DNOTNCODE -DNOGFTIMER \
  5723.     -DNOTIMEVAL -DNOTIMEZONE -DNOSYMLINK -DCK_CURSES -DSCO234 \
  5724.     -DDCLGETCWD -DTCPSOCKET -DNO_DNS_SRV $(KFLAGS) -Otcl" \
  5725.     "LNKFLAGS = -s" "LIBS = -ltinfo -lsocket -lcfp -lc -lx"
  5726.  
  5727. # SCO 3.2v4.x targets...
  5728.  
  5729. #  NOTE: Add -DDCLPOPEN and/or -DDCLFDOPEN to anySCO 3.2v4.x non-gcc entries
  5730. #  that complain about fdopen() or popen() at compile time.  They compile OK
  5731. #  without these flags as of July 1999.  However, the gcc entries seem to
  5732. #  need them, at least for gcc 2.7.2.2.
  5733.  
  5734. #  NOTE 2: To enable IKSD support, add:
  5735. #  -DCK_LOGIN -DNOGETUSERSHELL -DNOINITGROUPS
  5736. #  to CFLAGS (not tested).
  5737.  
  5738. #SCO UNIX/386 3.2v4 (POSIX job control), curses, ANSI C compilation,
  5739. #<dirent.h> (EAFS) file system.  Remove -lmalloc if it causes trouble.  It was
  5740. #put there to avoid core dumps caused by regular libc.a malloc.  Add -J to make
  5741. #all chars unsigned.  This version uses select() for CONNECT and also has
  5742. #high-precision timers and so might not work on non-TCP systems, in which case
  5743. #sco32v4ns should be used instead.
  5744. # If you get _ftime redefinition_ complaint, try adding -DODT30 to CFLAGS.
  5745. sco32v4:
  5746.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v4...'
  5747.     make xermit KTARGET=$${KTARGET:-$(@)} \
  5748.     "CFLAGS= -DCK_SCO32V4 -DNOFILEH -DHDBUUCP -DCK_CURSES -DM_TERMINFO \
  5749.     -DNOANSI -DSELECT -DNOIKSD -DDCLGETCWD -NOLSTAT \
  5750.     -DNOLINKBITS -DDCLGETCWD $(KFLAGS) -O" \
  5751.     "LNKFLAGS = -s" "LIBS = -lcurses -lmalloc -lsocket -lc_s -lc -lx"
  5752.  
  5753. # As above, but with no dependence on sockets library or select().
  5754. sco32v4ns:
  5755.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v4...'
  5756.     @echo 'No select() and no sockets library.'
  5757.     make wermit KTARGET=$${KTARGET:-$(@)} \
  5758.     "CFLAGS= -DCK_SCO32V4 -DNOFILEH -DHDBUUCP -DCK_CURSES -DM_TERMINFO \
  5759.     -DNOANSI -DNOIKSD -DNOGFTIMER -DCK_POLL -DNAP -DDCLGETCWD -DNOLSTAT \
  5760.     -DNOLINKBITS -DDCLGETCWD -DNOLEARN -O $(KFLAGS)" \
  5761.     "LNKFLAGS = -s" "LIBS = -lcurses -lmalloc -lc_s -lc -lx"
  5762.  
  5763. #SCO UNIX/386 3.2v4 (POSIX job control), TCP/IP, curses, ANSI C compilation,
  5764. #<dirent.h> (EAFS) file system.  With DIRENT, -lc must come before -lx.
  5765. #Reportedly it's OK to add -DCK_REDIR and -DCK_WREFRESH, and to remove -lc_s.
  5766. #Requires SCO TCP/IP development system or ODT for telnet.h, etc.
  5767. #See sco32v4 above for additional comments.
  5768. #NOTE: No more room for -Dxxx -- 25 seems to be the limit.  Move some to
  5769. #ckcdeb.h or somewhere...
  5770. sco32v4net:
  5771.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v4...'
  5772.     @echo 'If you get _ftime redefinition_ complaint,'
  5773.     @echo 'use make sco-odt30.'
  5774.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  5775.     "CFLAGS= -DNOFILEH -DHDBUUCP -DTCPSOCKET -DCK_ANSIC -DCK_CURSES \
  5776.     -DNAP -DCK_WREFRESH -DNOLINKBITS -D_IBCS2 -DSELECT -DNOLSTAT \
  5777.     -DDCLGETCWD -DCK_SCO32V4 -DNOIKSD -O \
  5778.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS) -s" \
  5779.     "LIBS = $(LIBS) -lcurses -lsocket -lmalloc -lsocket -lc_s -lc -lx"
  5780.  
  5781. #SCO UNIX/386 3.2v4 with gcc 1.40 or later, POSIX job control.
  5782. #Also see comments in sco32r4 entry.
  5783. sco32v4gcc:
  5784.     make xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" \
  5785.     "CFLAGS= -O -DNOFILEH -DHDBUUCP -DNOANSI -DCK_CURSES -DM_TERMINFO \
  5786.     -traditional -fpcc-struct-return -fstrength-reduce -funsigned-char \
  5787.     -D_KR -D_NO_PROTOTYPE -D_SVID -DNOIKSD -DCK_SCO32V4 -DNOLINKBITS \
  5788.     -DM_BITFIELDS -DM_COFF -DM_I386 -DM_I86 -DM_I86SM -DSELECT -DNOLSTAT \
  5789.     -DM_INTERNAT -DM_SDATA -DM_STEXT -DM_SYS3 -DM_SYS5 -DDCLGETCWD \
  5790.     -DM_SYSIII -DM_SYSV -DM_UNIX -DM_WORDSWAP -DM_XENIX -Dunix \
  5791.     -DDCLPOPEN -DDCLFDOPEN $(KFLAGS) " \
  5792.     "LNKFLAGS = -s" "LIBS = -lcurses -lsocket -lc_s -lc -lx"
  5793.  
  5794. #SCO UNIX/386 3.2v4 (POSIX job control), TCP/IP, curses, ANSI C compilation,
  5795. #Requires SCO TCP/IP or ODT development system for telnet.h, etc.
  5796. #<dirent.h> (EAFS) file system.  With DIRENT, -lc must come before -lx.
  5797. #gcc 1.40 or later.  Also see comments in sco32r4 entry.
  5798. sco32v4netgcc:
  5799.     make xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2=gcc" \
  5800.     "CFLAGS= -O2 -DNOFILEH -DHDBUUCP -DSELECT -DNOLSTAT \
  5801.     -DNOANSI -DTCPSOCKET -DCK_CURSES -DM_TERMINFO \
  5802.     -D_KR -D_NO_PROTOTYPE -D_SVID -DNOIKSD -DCK_SCO32V4 -DNOLINKBITS \
  5803.     -DM_BITFIELDS -DM_COFF -DM_I386 -DM_I86 -DM_I86SM -DDCLGETCWD \
  5804.     -DM_INTERNAT -DM_SDATA -DM_STEXT -DM_SYS3 -DM_SYS5 \
  5805.     -DM_SYSIII -DM_SYSV -DM_UNIX -DM_WORDSWAP -DM_XENIX -Dunix \
  5806.     -DDCLPOPEN -DDCLFDOPEN $(KFLAGS)" \
  5807.     "LNKFLAGS = -s" "LIBS = -lcurses -lsocket -lc_s -lc -lx"
  5808.  
  5809. #As above but with bgcc BOUNDS CHECKING (for developers only).  -lcheck has
  5810. #bounds-checking replacements for malloc, memcpy, bcopy, etc, so must come
  5811. #before -lsocket and -lc.
  5812. sco32v4netbgcc:
  5813.     make xermit KTARGET=$${KTARGET:-$(@)} \
  5814.     "CC = bgcc -pipe -m386" "CC2=bgcc -pipe -m386" \
  5815.     "CFLAGS= -O1 -g -DNOFILEH -DHDBUUCP -DSELECT \
  5816.     -DNOANSI -DTCPSOCKET -DCK_CURSES -DM_TERMINFO \
  5817.     -D_KR -D_NO_PROTOTYPE -D_SVID -DNOIKSD -DCK_SCO32V4 -DNOLSTAT \
  5818.     -DM_BITFIELDS -DM_COFF -DM_I386 -DM_I86 -DM_I86SM -DNOLINKBITS \
  5819.     -DM_INTERNAT -DM_SDATA -DM_STEXT -DM_SYS3 -DM_SYS5 -DDCLGETCWD \
  5820.     -DM_SYSIII -DM_SYSV -DM_UNIX -DM_WORDSWAP -DM_XENIX -Dunix \
  5821.     -DDCLPOPEN -DDCLFDOPEN $(KFLAGS) " \
  5822.     "LNKFLAGS = -g" "LIBS = -lcurses -lcheck -lsocket -lx"
  5823.  
  5824. sco32v4netnd:
  5825.     @echo sco32v4net with no debug
  5826.     $(MAKE) "MAKE=$(MAKE)" sco32v4net KTARGET=$${KTARGET:-$(@)} \
  5827.     "KFLAGS=$(KFLAGS) -DNODEBUG -DNOTLOG" "LIBS=$(LIBS)"
  5828.  
  5829. sco3r2netnd:
  5830.     @echo sco32v4netnd built for SCO XENIX 2.3 under SCO UNIX...
  5831.     @echo   requires copying /lib/386/Slibc.a to /lib/386/Slibc_s.a and
  5832.     @echo   getting /lib/386/Slibsocket.a from a XENIX devkit.
  5833.     @echo   WARNING: poll/CK_POLL supported only on XENIX 2.3.4
  5834.     echo    For earlier XENIX systems, replace CK_POLL with RDCHK.
  5835.     $(MAKE) "MAKE=$(MAKE)" sco32v4netnd KTARGET=$${KTARGET:-$(@)} \
  5836.     "KFLAGS=$(KFLAGS) -x2.3 -DNORENAME -DNOSYMLINK" \
  5837.     "LNKFLAGS = $(LNKFLAGS) -x2.3" \
  5838.     "LIBS=-ldir -lcfp $(LIBS)"
  5839.  
  5840. #SCO UNIX/386 3.2v4 (POSIX job control), TCP/IP, curses, ANSI C compilation,
  5841. #<dirent.h> (EAFS) file system.  With DIRENT, -lc must come before -lx.
  5842. #Reportedly it's OK to add -DCK_REDIR and -DCK_WREFRESH, and to remove -lc_s.
  5843. #Requires SCO TCP/IP development system or ODT for telnet.h, etc.
  5844. #See sco32v4 above for additional comments.
  5845. # Note: "xermit" means use the select() version of the CONNECT module.
  5846. sco32v4netx:
  5847.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v4...'
  5848.     @echo 'If you get _ftime redefinition_ complaint,'
  5849.     @echo 'use make sco-odt30.'
  5850.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  5851.     "CFLAGS= -DNOFILEH -DHDBUUCP -DTCPSOCKET -DCK_ANSIC -DCK_CURSES -DNAP \
  5852.     -DCK_WREFRESH -DNOLINKBITS -D_IBCS2 -DSELECT -DDCLGETCWD \
  5853.     -DCK_SCO32V4 -DNOIKSD -DNOLSTAT -O $(KFLAGS)" \
  5854.     "LNKFLAGS = $(LNKFLAGS) -s" \
  5855.     "LIBS = $(LIBS) -lcurses -lsocket -lmalloc -lsocket -lc_s -lc -lx"
  5856.  
  5857. sco32v4netndx:
  5858.     @echo sco32v4netx with no debug
  5859.     $(MAKE) "MAKE=$(MAKE)" sco32v4netx KTARGET=$${KTARGET:-$(@)} \
  5860.     "KFLAGS=$(KFLAGS) -DNODEBUG -DNOTLOG" "LIBS=$(LIBS)"
  5861.  
  5862. sco3r2netndx:
  5863.     @echo sco32v4netndx built for SCO XENIX 2.3 under SCO UNIX...
  5864.     @echo   requires copying /lib/386/Slibc.a to /lib/386/Slibc_s.a and
  5865.     @echo   getting /lib/386/Slibsocket.a from a XENIX devkit.
  5866.     @echo   WARNING: poll/CK_POLL supported only on XENIX 2.3.4
  5867.     echo    For earlier XENIX systems, replace CK_POLL with RDCHK.
  5868.     $(MAKE) "MAKE=$(MAKE)" sco32v4netndx KTARGET=$${KTARGET:-$(@)} \
  5869.     "KFLAGS=$(KFLAGS) -x2.3 -DNORENAME -DNOSYMLINK" \
  5870.     "LNKFLAGS = $(LNKFLAGS) -x2.3" \
  5871.     "LIBS=-ldir -lcfp $(LIBS)"
  5872.  
  5873. sco-odt30:
  5874.     @echo SCO ODT 3.0
  5875.     $(MAKE) "MAKE=$(MAKE)" sco32v4net KTARGET=$${KTARGET:-$(@)} \
  5876.     "KFLAGS=$(KFLAGS) -DODT30"
  5877.  
  5878. #SCO OpenServer 5.0 (SCO UNIX 3.2v5.0) with SCO development tools, no TCP/IP.
  5879. #SCO OSR5 is much more like standard System V than previous SCO releases.
  5880. #The SCO development tools include TCP/IP, so this target is only for creating
  5881. #artificially limited versions of kermit required by site policy rather than
  5882. #the operating system.  NOSYSLOG is included because syslog() requires the
  5883. #sockets library.
  5884. sco32v500:
  5885.     @echo Making C-Kermit $(CKVER) for SCO OpenServer Release 5...
  5886.     $(MAKE) xermit CC=$(CC) CC2=$(CC2) KTARGET=$${KTARGET:-$(@)} \
  5887.     "CFLAGS= -O -DDIRENT -DHDBUUCP -DSVR4 -DCK_SCOV5 -DCK_RTSCTS \
  5888.     -DCK_CURSES -DCK_WREFRESH -DCK_NEWTERM -DSELECT -DSELECT_H \
  5889.     -DNOGETUSERSHELL -DNOLSTAT -DNOLINKBITS -DNOSYSLOG \
  5890.     $(KFLAGS)" \
  5891.     "LIBS=-lcurses $(LIBS)" "LNKFLAGS=$(LNKFLAGS)"
  5892.  
  5893. sco32v5:
  5894.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=$(KFLAGS)" sco32v500
  5895.  
  5896.  
  5897. #SCO OpenServer 5.0 with networking, SCO development tools.
  5898. #Networking libraries are now provided with the OS.
  5899. sco32v500net:
  5900.     @echo Making C-Kermit $(CKVER) for SCO OpenServer Release 5...
  5901.     $(MAKE) xermit CC=$(CC) CC2=$(CC2) KTARGET=$${KTARGET:-$(@)} \
  5902.     "CFLAGS= -O -DDIRENT -DHDBUUCP -DSVR4 -DCK_SCOV5 -DCK_RTSCTS \
  5903.     -DCK_CURSES -DCK_WREFRESH -DCK_NEWTERM -DSELECT -DSELECT_H \
  5904.     -DNOGETUSERSHELL -DNOLSTAT -DNOLINKBITS -DTCPSOCKET \
  5905.     -DNO_DNS_SRV $(KFLAGS)" \
  5906.     "LIBS=-lcurses -lsocket $(LIBS)" "LNKFLAGS=$(LNKFLAGS)"
  5907.  
  5908. sco32v5net:
  5909.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=$(KFLAGS)" sco32v500net
  5910.  
  5911. #SCO OpenServer 5.0 with gcc, no networking.
  5912. #Note: NOSYSLOG required for non-net entries because it requires <socket.h>
  5913. sco32v500gcc:
  5914.     @echo Using gcc...
  5915.     $(MAKE) "MAKE=$(MAKE)" sco32v500CC=gcc CC2=gcc \
  5916.     KTARGET=$${KTARGET:-$(@)} "KFLAGS= $(KFLAGS)"
  5917.  
  5918. #SCO OpenServer 5.0 with networking, gcc.
  5919. sco32v500netgcc:
  5920.     @echo TCP/IP networking added - using gcc...
  5921.     $(MAKE) "MAKE=$(MAKE)" sco32v500net CC=gcc CC2=gcc \
  5922.     KTARGET=$${KTARGET:-$(@)} "KFLAGS=$(KFLAGS)"
  5923.  
  5924. #SCO OpenServer 5.0 with networking, gcc, elf.
  5925. sco32v500netgccelf:
  5926.     @echo TCP/IP networking added - using gcc, dynamic elf library
  5927.     $(MAKE) "MAKE=$(MAKE)" sco32v500net "CC=gcc" "CC2=gcc" \
  5928.     KTARGET=$${KTARGET:-$(@)} "KFLAGS=-O3 -belf" "LNKFLAGS=-belf"
  5929.  
  5930. sco32v502:
  5931.     $(MAKE) "MAKE=$(MAKE)" sco32v500 KTARGET=$${KTARGET:-$(@)} \
  5932.     "KFLAGS=-DSCO_OSR502 $(KFLAGS)"
  5933.  
  5934. #SCO OpenServer 5.0.2 with networking, SCO development tools.
  5935. sco32v502net:
  5936.     @echo TCP/IP networking added...
  5937.     $(MAKE) "MAKE=$(MAKE)" sco32v500net KTARGET=$${KTARGET:-$(@)} \
  5938.     "KFLAGS=-b elf -DSCO_OSR502 $(KFLAGS)"
  5939.  
  5940. #SCO OpenServer 5.0.4 (SCO UNIX 3.2v5.0.4) with SCO development tools.
  5941. #Like 5.0, but adds high serial speeds.  First POSIX-based SCO version.
  5942. #Note: the -O flag is deliberately omitted for /bin/cc (= /usr/ccs/bin/cc).
  5943. sco32v504:
  5944.     @echo Making C-Kermit $(CKVER) for SCO OpenServer Release 5.0.4...
  5945.     $(MAKE) xermit CC=$(CC) CC2=$(CC2) KTARGET=$${KTARGET:-$(@)} \
  5946.     "CFLAGS= -DDIRENT -DHDBUUCP -DSVR4 -DCK_SCOV5 -DCK_RTSCTS \
  5947.     -DSCO_OSR504 -b elf -DPOSIX \
  5948.     -DCK_CURSES -DCK_WREFRESH -DCK_NEWTERM -DSELECT -DSELECT_H \
  5949.     -DNOGETUSERSHELL -DNOLSTAT -DNOLINKBITS -DNOSYSLOG $(KFLAGS)" \
  5950.     "LIBS=-lcurses $(LIBS)" "LNKFLAGS=$(LNKFLAGS)"
  5951.  
  5952. #SCO OpenServer 5.0.4 with gcc, no networking.
  5953. sco32v504gcc:
  5954.     @echo Using gcc...
  5955.     $(MAKE) "MAKE=$(MAKE)" sco32v504 "CC=gcc" "CC2=gcc" \
  5956.     KTARGET=$${KTARGET:-$(@)} "KFLAGS= $(KFLAGS)"
  5957.  
  5958. #SCO OpenServer 5.0.4 with networking.
  5959. #SCO development tools (/bin/cc = /usr/ccs/bin/cc).
  5960. #Optimization deliberately suppressed.
  5961. sco32v504net:
  5962.     @echo Making C-Kermit $(CKVER) for SCO OpenServer Release 5.0.4...
  5963.     $(MAKE) xermit CC=$(CC) CC2=$(CC2) KTARGET=$${KTARGET:-$(@)} \
  5964.     "CFLAGS= -DDIRENT -DHDBUUCP -DSVR4 -DCK_SCOV5 -DCK_RTSCTS \
  5965.     -DCK_CURSES -DCK_WREFRESH -DCK_NEWTERM -DSELECT -DSELECT_H \
  5966.     -DNOGETUSERSHELL -DNOLSTAT -DNOLINKBITS -DTCPSOCKET \
  5967.     -b elf -DSCO_OSR504 -DPOSIX -DNO_DNS_SRV $(KFLAGS)" \
  5968.     "LIBS=-lcurses -lsocket $(LIBS)" "LNKFLAGS=$(LNKFLAGS)"
  5969.  
  5970. #SCO OpenServer 5.0.4 with networking, gcc.
  5971. sco32v504netgcc:
  5972.     @echo TCP/IP networking added - using gcc...
  5973.     @echo If gcc crashes on ckwart.c then build it by hand:
  5974.     @echo " gcc -o wart -DCK_SCOV5 ckwart.c"
  5975.     $(MAKE) "MAKE=$(MAKE)" sco32v500net "CC=gcc" "CC2=gcc" \
  5976.     KTARGET=$${KTARGET:-$(@)} "KFLAGS=-DSCO_OSR504 -DPOSIX $(KFLAGS)"
  5977.  
  5978. #SCO OpenServer 5.0.4 with networking, gcc, elf.
  5979. sco32v504netgccelf:
  5980.     @echo TCP/IP networking added - using gcc, dynamic elf library
  5981.     $(MAKE) "MAKE=$(MAKE)" sco32v500net "CC=gcc" "CC2=gcc"
  5982.     KTARGET=$${KTARGET:-$(@)} \
  5983.     "KFLAGS=-DSCO_OSR504 -DPOSIX -O3 -belf $(KFLAGS)" \
  5984.     LNKFLAGS="-belf"
  5985.  
  5986. #SCO OpenServer 5.0.5 (SCO UNIX 3.2v5.0.5) with SCO /bin/cc.
  5987. #Like 5.0, but adds high serial speeds.  First POSIX-based SCO version.
  5988. #You might have to add "LIBS=-ltinfo" (some do, some don't).
  5989. sco32v505:
  5990.     $(MAKE) "MAKE=$(MAKE)" sco32v500 KTARGET=$${KTARGET:-$(@)} \
  5991.     "KFLAGS=-DSCO_OSR505 -DNOSHADOW -b elf -DPOSIX $(KFLAGS)"
  5992.  
  5993. #SCO OpenServer 5.0.5 (SCO UNIX 3.2v5.0.5) with SCO UDK.
  5994. #This one can't see the high serial speeds and anything to do with modem
  5995. #signals doesn't work because UKD cc has its own alternative universe of
  5996. #header files.
  5997. sco32v505udk:
  5998.     $(MAKE) "MAKE=$(MAKE)" sco32v500 KTARGET=$${KTARGET:-$(@)} \
  5999.     "KFLAGS=-DSCO_OSR505 -DDCLTIMEVAL -DNOSHADOW -b elf -DPOSIX $(KFLAGS)"
  6000.  
  6001. #SCO OpenServer 5.0.5 with networking, SCO /bin/cc.
  6002. #See comments with sco32v505 targets.
  6003. sco32v505net:
  6004.     @echo TCP/IP networking added...
  6005.     $(MAKE) "MAKE=$(MAKE)" sco32v500net KTARGET=$${KTARGET:-$(@)} \
  6006.     "KFLAGS=-DSCO_OSR505 -DNOSHADOW -b elf -DPOSIX $(KFLAGS)"
  6007.  
  6008. #SCO OpenServer 5.0.5 with networking, SCO UDK.
  6009. #See comments with above sco32v505 targets.
  6010. sco32v505udknet:
  6011.     @echo TCP/IP networking added...
  6012.     $(MAKE) "MAKE=$(MAKE)" sco32v500net KTARGET=$${KTARGET:-$(@)} \
  6013.     "KFLAGS=-DSCO_OSR505 -DDCLTIMEVAL -DNOSHADOW -b elf -DPOSIX $(KFLAGS)"
  6014.  
  6015. #SCO OpenServer 5.0.5 with gcc, no networking.
  6016. sco32v505gcc:
  6017.     @echo Using gcc...
  6018.     $(MAKE) "MAKE=$(MAKE)" sco32v500 "CC=gcc" "CC2=gcc" \
  6019.     KTARGET=$${KTARGET:-$(@)} \
  6020.     "KFLAGS=-DSCO_OSR505 -DPOSIX -funsigned-char $(KFLAGS)"
  6021.  
  6022. #SCO OpenServer 5.0.5 with gcc, no networking, no shadow passwords.
  6023. sco32v505xgcc:
  6024.     @echo Using gcc...
  6025.     $(MAKE) "MAKE=$(MAKE)" sco32v500 "CC=gcc" "CC2=gcc" \
  6026.     KTARGET=$${KTARGET:-$(@)} \
  6027.     "KFLAGS=-DSCO_OSR505 -DNOSHADOW -DPOSIX -funsigned-char $(KFLAGS)"
  6028.  
  6029. #SCO OpenServer 5.0.5 with networking, gcc.
  6030. sco32v505netgcc:
  6031.     @echo TCP/IP networking added - using gcc...
  6032.     @echo If gcc crashes on ckwart.c then build it by hand:
  6033.     @echo " gcc -o wart -DCK_SCOV5 ckwart.c"
  6034.     $(MAKE) "MAKE=$(MAKE)" sco32v500net "CC=gcc" "CC2=gcc" \
  6035.     KTARGET=$${KTARGET:-$(@)} \
  6036.     "KFLAGS=-DSCO_OSR505 -DNOSHADOW -DPOSIX -funsigned-char $(KFLAGS)"
  6037.  
  6038. #egcs is just like gcc but generates ELF by default.
  6039. #Or you can include -melf (not -belf) to force it.
  6040. sco32v505netegcs:
  6041.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=$(KFLAGS)" sco32v505netgcc \
  6042.     KTARGET=$${KTARGET:-$(@)}
  6043.  
  6044. #SCO OpenServer 5.0.5 with networking, gcc, elf.
  6045. sco32v505netgccelf:
  6046.     @echo TCP/IP networking added - using gcc, dynamic elf library
  6047.     $(MAKE) "MAKE=$(MAKE)" sco32v500net "CC=gcc" "CC2=gcc" \
  6048.     "KFLAGS=-DSCO_OSR505 -DPOSIX -funsigned-char -O3 -belf $(KFLAGS)" \
  6049.     KTARGET=$${KTARGET:-$(@)} LNKFLAGS="-belf"
  6050.  
  6051. #SCO OpenServer 5.0.6 with SCO /bin/cc.
  6052. # Add -DDCLTIMEVAL when building with UDK.
  6053. #Like 5.0.5.   IMPORTANT: Use sco32v506a target for 5.0.6a.
  6054. sco32v506:
  6055.     $(MAKE) "MAKE=$(MAKE)" sco32v500 KTARGET=$${KTARGET:-$(@)} \
  6056.     "KFLAGS=-DSCO_OSR505 -DSCO_OSR506 -b elf -DPOSIX $(KFLAGS)"
  6057.  
  6058. #SCO OpenServer 5.0.6 with networking, SCO /bin/cc.
  6059. # Add -DDCLTIMEVAL when building with UDK.
  6060. # IMPORTANT: Use sco32v506a target for 5.0.6a.
  6061. sco32v506net:
  6062.     @echo TCP/IP networking added...
  6063.     $(MAKE) "MAKE=$(MAKE)" sco32v500net KTARGET=$${KTARGET:-$(@)} \
  6064.     "KFLAGS=-DSCO_OSR505 -DSCO_OSR506 -b elf -DPOSIX $(KFLAGS)"
  6065.  
  6066. #SCO OpenServer 5.0.6a, no networking, SCO development tools.
  6067. #This one has patched sio drivers that, for the first time,
  6068. #actually handle modem signals correctly.
  6069. # Add -DDCLTIMEVAL when building with UDK.
  6070. sco32v506a:
  6071.     $(MAKE) "MAKE=$(MAKE)" sco32v500 KTARGET=$${KTARGET:-$(@)} \
  6072.     "KFLAGS=-DSCO_OSR505 -DSCO_OSR506 -DSCO_OSR506A -DNEEDMDMDEFS \
  6073.     -b elf -DPOSIX $(KFLAGS)"
  6074.  
  6075. #SCO OpenServer 5.0.6 with networking, SCO development tools.
  6076. # Add -DDCLTIMEVAL when building with UDK.
  6077. sco32v506anet:
  6078.     @echo TCP/IP networking added...
  6079.     $(MAKE) "MAKE=$(MAKE)" sco32v500net KTARGET=$${KTARGET:-$(@)} \
  6080.     "KFLAGS=-DSCO_OSR505 -DSCO_OSR506 -DSCO_OSR506A -DNEEDMDMDEFS \
  6081.     -b elf -DPOSIX $(KFLAGS)"
  6082.  
  6083. #Tandy 16/6000 with Xenix 3.0
  6084. #Add more -DNOxxx options to remove features if program won't load.
  6085. #Successful operation is a function of program size, physical memory,
  6086. #available swap space, etc.  The following stripped-down configuration
  6087. #seems to work on most Tandy 6000s.  NOTE: "-+" means allow long variable
  6088. #names, needed for C-Kermit 6.0 because some identifiers are not unique
  6089. #within the first six characters.
  6090. #C-Kermit 7.0 does not build here; "too many defines".
  6091. trs16:
  6092.     @echo 'Making C-Kermit $(CKVER) for Tandy 16/6000, Xenix 3.0...'
  6093.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  6094.     "CFLAGS = -+ -DATTSV -DTRS16 -DNOMKDIR -DDCLPOPEN -DCK_CURSES \
  6095.     -DNODEBUG -DNOTLOG -DNOHELP -DNOSCRIPT -DNOCSETS -DNOIKSD \
  6096.     -DNOREDIRECT -DNOSYSLOG -DNOPUTENV -DNOREALPATH -DNOLEARN \
  6097.     $(KFLAGS) -O" "LIBS= -lcurses -ltermcap" "LNKFLAGS = -+ -n -s"
  6098.  
  6099. #MINIX/2.0 32 Bit version for intel 386+ running the POSIX-compliant MINIX
  6100. # version 2.0 (The definition of fatal avoids a conflict with a symbol by
  6101. # the same name in the curses library.) It is impossible to compile with
  6102. # network support since Minix does not support Berkeley sockets.
  6103. # Note: use chmem liberally on the compiler passes, make, and the final
  6104. # kermit executable. (3 megabytes of memory for each is sufficient.)
  6105. # From Terry McConnell, Syracuse U, and Will Rose.  Will says:
  6106. # The stacks for make and some compiler passes needed to be increased
  6107. # with chmem as follows:
  6108. #   make 1MB
  6109. #   /usr/lib/em_cemcom.ansi 3MB
  6110. #   /usr/lib/em_opt 1MB
  6111. #   /usr/lib/i386/cg 1MB
  6112. #   /usr/lib/i386/as 1MB
  6113. # The compiler temporary directory was set to /usr/tmp via the TMPDIR
  6114. # environment variable; more than 1MB of temporary space was needed.
  6115. # Kermit itself needs at least 1MB of stack.
  6116. minix20:
  6117.     @echo 'Making C-Kermit $(CKVER) for MINIX 2.0/386...'
  6118.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} EXT=o \
  6119.     "CFLAGS=  -wo -DV7 -DMINIX2 -DMINIX -DSIG_V -D_POSIX_SOURCE \
  6120.     -DCKCPU=\\\"i-386\\\" -DNOIKSD -Dfatal=myfatal -DCK_CURSES -DNOLEARN \
  6121.     -DNOSYSLOG -DUSE_MEMCPY -DNOREALPATH $(KFLAGS)" "LIBS= -lcurses"
  6122.  
  6123. #MINIX/386 (PC Minix modified by Bruce Evans in Australia for 386 addressing)
  6124. # For MINIX 1.5+ (but < 2.0)
  6125. minix386:
  6126.     @echo 'Making C-Kermit $(CKVER) for MINIX/386...'
  6127.     @echo 'TOTALLY UNTESTED!'
  6128.     $(MAKE) wermit EXT=s KTARGET=$${KTARGET:-$(@)} \
  6129.     "CFLAGS= -DV7 -DMINIX -D_POSIX_SOURCE -DNOLEARN $(KFLAGS)"
  6130.  
  6131. #MINIX/386 Minix modified by Bruce Evans in Australia to use 386 addressing
  6132. minix386gcc:
  6133.     @echo 'Making C-Kermit $(CKVER) for MINIX/386 with gcc...'
  6134.     @echo 'TOTALLY UNTESTED!'
  6135.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC=gcc -g -O" "CC2=gcc -g" \
  6136.     "CFLAGS= -DV7 -DMINIX -D_POSIX_SOURCE -DNOLEARN $(KFLAGS)"
  6137.  
  6138. #MINIX - 68k version with ACK compiler.
  6139. # If you have trouble compiling or running wart, "touch wart".
  6140. # If it still doesn't work, "touch ckcpro.c".
  6141. # The version configured below has many features removed, including
  6142. # the TRANSMIT, MSEND, HELP, and SCRIPT commands, international
  6143. # character set support, and the entire script programming language.
  6144. # But it does have an interactive command parser.
  6145. # Make sure make(1) has (at least) 100000 chmemory!
  6146. # If you are using the Amsterdam C compiler, you might have to add "-D__ACK__".
  6147. minix68k:
  6148.     @echo 'Making C-Kermit $(CKVER) for MINIX 68k with ACK...
  6149.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  6150.     "CFLAGS= -DV7 -DMINIX -D_MINIX -D_POSIX_SOURCE -DNOLEARN \
  6151.     -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG \
  6152.     -DNOSCRIPT -DNOCSETS -DNOSPL $(KFLAGS) \
  6153.     -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t -DSIG_V"
  6154.  
  6155. #MINIX - 68k version with c68 compiler.
  6156. # If you have trouble compiling or running wart, "touch wart" or
  6157. # "touch ckcpro.c". Compiling ckudia.c (no -DNODIAL!) might fail. :-(
  6158. # Give c68 250000 bytes of stack+heap; make sure make(1) has at least
  6159. # 100000 chmemory.  On a 1MB Atari ST this means that the recursive
  6160. # call of make fails due to memory shortage.  Try "make -n minixc68 >makeit",
  6161. # followed by ". makeit".  Otherwise, as above.
  6162. minixc68:
  6163.     @echo 'Making C-Kermit $(CKVER) for MINIX 68k with c68...
  6164.     $(MAKE) wermit "CC= cc -c68" KTARGET=$${KTARGET:-$(@)} \
  6165.     "CFLAGS= -DV7 -DMINIX -D_MINIX -D_POSIX_SOURCE -DNOLEARN \
  6166.     -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG \
  6167.     -DNOSCRIPT -DNOCSETS -DNOSPL $(KFLAGS) \
  6168.     -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t -DSIG_V"
  6169.  
  6170. #MINIX - 68k version with c68 compiler.
  6171. #A variation on the above that was recently (Sep 95) reported to work.
  6172. minixc68a:
  6173.     @echo 'Making C-Kermit $(CKVER) for MINIX 68k with c68...
  6174.     $(MAKE) wermit "CC= cc -c68" KTARGET=$${KTARGET:-$(@)} \
  6175.     "CFLAGS= -DV7 -DMINIX -D_MINIX -D_POSIX_SOURCE \
  6176.     -DCK_ANSIC -DNODEBUG -DNOTLOG -DMINIDIAL -DEXTEN -DMYCURSES \
  6177.     -DNOSCRIPT -DNOCSETS -DNOSPL -DNOJC -DDIRENT -DNOLEARN \
  6178.     -DNOSETKEY -DNOESCSEQ $(KFLAGS) \
  6179.     -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t -DSIG_V"
  6180.  
  6181. #MIPS Computer Systems with UMIPS RISC/OS 4.52 = AT&T UNIX System V R3.0.
  6182. #Remove -DNOJC if job control can be safely used.
  6183. mips:
  6184.     @echo 'Making C-Kermit $(CKVER) for MIPS RISC/OS...'
  6185.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  6186.     "CFLAGS = -DMIPS -DDIRENT -DCK_POLL -DNOJC -DNOLEARN -DPID_T=int \
  6187.     -DGID_T=gid_t -DUID_T=uid_t -i -O1500 $(KFLAGS)"
  6188.  
  6189. #As above, but with TCP/IP and fullscreen support.
  6190. mipstcpc:
  6191.     @echo 'Making C-Kermit $(CKVER) for MIPS RISC/OS...'
  6192.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  6193.     "CFLAGS = -DMIPS -DDIRENT -DCK_POLL -DNOJC \
  6194.     -DTCPSOCKET -DCK_CURSES -I/usr/include/bsd \
  6195.     -DPID_T=int -DGID_T=gid_t -DUID_T=uid_t -i -O1500 $(KFLAGS)" \
  6196.     "LIBS = -lcurses -lbsd"
  6197.  
  6198. #Motorola Delta System V/68 R3, signal() is void rather than int.
  6199. #Uses dirent.h and Honey DanBer uucp.  Supports TCP/IP.
  6200. #After building, use "mcs -d" to reduce size of the executable program.
  6201. sv68r3:
  6202.     @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/68 R3...'
  6203.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  6204.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DNO_DNS_SRV -DTCPSOCKET \
  6205.     -DNOUNICODE -DNOLEARN $(KFLAGS) -O" "LNKFLAGS ="
  6206.  
  6207. #Motorola Delta System V/68 R3V5, signal() is void rather than int.
  6208. #Uses dirent.h and Honey DanBer UUCP.  Supports TCP/IP.
  6209. #After building, use "mcs -d" to reduce size of the executable program.
  6210. sv68r3v5:
  6211.     @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/68 R3V5'
  6212.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  6213.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DNO_DNS_SRV \
  6214.     -DTCPSOCKET -DINADDRX -DNOUNICODE -DFNFLOAT -DNOLEARN $(KFLAGS) -O" \
  6215.     "LNKFLAGS =" "LIBS = -linet -lm"
  6216.  
  6217. #Motorola MVME147 System V/68 R3 V5.1. Requires gcc 2.1 to compile.
  6218. #After building, use "mcs -d" to reduce size of the executable program.
  6219. sv68r3v51:
  6220.     @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/68 R3V5.1'
  6221.     $(MAKE) wermit "CC=gcc-delta" "CC2=gcc-delta" \
  6222.     KTARGET=$${KTARGET:-$(@)} \
  6223.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DNODEBUG -DNO_DNS_SRV -DNOLEARN \
  6224.     -DNOUNICODE -DFNFLOAT $(KFLAGS) -O2 -v -ftraditional" \
  6225.     "LNKFLAGS = -s -v" "LIBS = -lm881 -lm"
  6226.  
  6227. #Motorola MVME147 System V/68 R3V6. derived from Motorola Delta System R3V5.
  6228. #Checked on larger Motorola System V/68 R3V6 (with NSE Network Services Ext.)
  6229. #After building, use "strip" to reduce size of the executable program.
  6230. # "LIBS = -lnsl" removed in C-Kermit 6.1 - put back if needed.
  6231. # "LIBS = lm" added in 7.1/8.0 for floating-point math.
  6232. sv68r3v6:
  6233.     @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/68 R3V6'
  6234.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  6235.     "CFLAGS = -DSV68R3V6 -DDIRENT -DHDBUUCP -DNOLOGIN -DNOINITGROUPS \
  6236.     -DNOSYMLINK -DNOREDIRECT -DNOGFTIMER -DTCPSOCKET -DDCLGETCWD \
  6237.     -DNO_DNS_SRV -DNOUNICODE -DFNFLOAT -DSELECT $(KFLAGS) -O" \
  6238.     "LNKFLAGS =" "LIBS = -lm"
  6239.  
  6240. #Motorola Delta System V/88 R32, signal() is void rather than int.
  6241. #Uses dirent.h and Honey DanBer uucp.  Needs <sys/utime.h> for setting
  6242. #file dates.  Supports TCP/IP.
  6243. #After building, use "mcs -d" to reduce size of the executable program.
  6244. sv88r32:
  6245.     @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/88 R32...'
  6246.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  6247.     "CFLAGS = -DSV88R32 -DDIRENT -DHDBUUCP -DTCPSOCKET \
  6248.     -DSYSUTIMEH -DCK_CURSES -DNOGETUSERSHELL -DGTODONEARG $(KFLAGS) -O" \
  6249.     "LIBS= -lcurses -lresolv" "LNKFLAGS = -s"
  6250.  
  6251. #Motorola Delta System V/88 R40.  Has <sys/termiox.h>, regular Berkeley
  6252. #sockets library, i.e. in.h and inet.h are not misplaced in sys (rather than
  6253. #netinet and arpa, respectively).  Uses ANSI C constructs, advisory file
  6254. #locking on devices, etc.  curses support added.  Reportedly, the
  6255. #/usr/include/sys/vnode.h file has a bug which must be fixed before this
  6256. #makefile entry can work correctly.  The "if DEBUG" directive at about line
  6257. #320 must be changed to "ifdef DEBUG" (Reportedly, this was fixed in
  6258. #in System V/88 R4.3).
  6259. #After building, use "mcs -d" to reduce size of the executable program.
  6260. sv88r40:
  6261.     @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/88 R40...'
  6262.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  6263.     "CFLAGS = -O -DSVR4 -DMOTSV88R4 -DDIRENT -DHDBUUCP -DSTERMIOX \
  6264.     -DTCPSOCKET -DCK_CURSES -DNOGETUSERSHELL -DGTODONEARG -DFNFLOAT \
  6265.     $(KFLAGS)" \
  6266.     "LIBS= -lsocket -lnsl -lcurses -lresolv -lm" "LNKFLAGS = -s"
  6267.  
  6268. #As above but without the floating-point math library.
  6269. sv88r40nm:
  6270.     @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/88 R40...'
  6271.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  6272.     "CFLAGS = -O -DSVR4 -DMOTSV88R4 -DDIRENT -DHDBUUCP -DSTERMIOX \
  6273.     -DTCPSOCKET -DCK_CURSES -DNOGETUSERSHELL -DGTODONEARG $(KFLAGS)" \
  6274.     "LIBS= -lsocket -lnsl -lcurses -lresolv" "LNKFLAGS = -s"
  6275.  
  6276. #As above but with floating-point math library support \ffp...() functions
  6277. #and S-Expressions.
  6278.  
  6279. #Olivetti X/OS R2.3, 3.x.
  6280. #NOTES:
  6281. # . If you build the executable on 2.x X/OS, it will also run on 3.x.
  6282. # . If you build it on 3.x X/OS, it will NOT run on 2.x.
  6283. # . Kermit can run with no privileges unless the uucp lines are protected,
  6284. #   in which case kermit must be owned by uucp with suid bit set:
  6285. #   chown uucp kermit ; chmod 4111 kermit.
  6286. xos23:
  6287.     @echo 'Making C-Kermit $(CKVER) for Olivetti X/OS...'
  6288.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  6289.     'CFLAGS=-OLM -DOXOS -DTCPSOCKET -DHDBUUCP $(KFLAGS)' \
  6290.     "LIBS=" "LNKFLAGS="
  6291.  
  6292. #As above, but with curses.
  6293. xos23c:
  6294.     @echo 'Making C-Kermit $(CKVER) for Olivetti X/OS with curses...'
  6295.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  6296.     'CFLAGS=-OLM -DOXOS -DTCPSOCKET -DHDBUUCP -DCK_CURSES $(KFLAGS)' \
  6297.     "LIBS=-lcurses" "LNKFLAGS="
  6298.  
  6299. ckuuid:
  6300.     @echo 'building C-Kermit $(CKVER) set-UID/set-GID test programs'
  6301.     $(CC) -DANYBSD -DSAVEDUID -o ckuuid1 ckuuid.c
  6302.     $(CC) -DANYBSD -o ckuuid2 ckuuid.c
  6303.     $(CC) -DANYBSD -DNOSETREU -o ckuuid3 ckuuid.c
  6304.     $(CC) -DANYBSD -DSETEUID -DNOSETREU -o ckuuid4 ckuuid.c
  6305.     $(CC) -o ckuuid5 ckuuid.c
  6306.     @echo 'Read the top of ckuuid.c for directions...for testing'
  6307.     @echo 'you must make these programs setuid and setgid'
  6308.  
  6309. ############################################################################
  6310. # A N T I Q U I T I E S
  6311. #
  6312. # The following are antique targets from C-Kermit 5A or earlier.  They have
  6313. # not been updated or tested in years.  Most of them will need recent features
  6314. # disabled, usually with some combination of -DNOUNICODE, -DNOIKSD, -DNOANSI,
  6315. # -DNOCKGHNLHOST, -DNO_DNS_SRV, -DNOREDIRECT, -DNOREALPATH, -DNOCURSES, etc.
  6316. # They are also missing the KTARGET=$${KTARGET:-$(@)} business.
  6317. # For details see ckuins.txt and ckccfg.txt.
  6318. #
  6319. ############################################################################
  6320.  
  6321. #Berkeley Unix 2.8, 2.9 for PDP-11s with I&D space, maybe also Ultrix-11???
  6322. #C-Kermit(5A) is simply too large (even turning off almost every feature
  6323. #available) to run without both I&D space plus overlays.  The old comment
  6324. #suggested running 'pcc' but that won't help.  Changing 'cc' to 'ckustr.sed'
  6325. #will cause a string extraction to be done, saving D space by moving strings
  6326. #to a file.
  6327. bsd29:
  6328.     @echo Making C-Kermit $(CKVER) for 2.8 or 2.9BSD.
  6329.     @echo Read the makefile if you have trouble with this...
  6330.     $(MAKE) ovwermit \
  6331.     "CFLAGS= -DBSD29 -DNODEBUG -DNOTLOG -DNOCSETS -DNOHELP \
  6332.     -DNOSCRIPT -DNOSPL -DNOXMIT -DNODIAL $(KFLAGS)" \
  6333.     "LNKFLAGS= -i -lndir" "CC= cc " "CC2= cc"
  6334.  
  6335. bsd210:
  6336.     @echo Please use ckubs2.mak to build C-Kermit $(CKVER) for 2.10BSD.
  6337.  
  6338. bsd211:
  6339.     @echo Please use ckubs2.mak to build C-Kermit $(CKVER) for 2.11BSD.
  6340.  
  6341. #Charles River Data Systems Universe with UNOS Version 9.2
  6342. crds:
  6343.     @echo 'Making C-Kermit $(CKVER) for Charles River Data Systems...'
  6344.     make xermit \
  6345.     "CFLAGS = -DATTSV -DNOANSI -DDIRENT -DLONGFN -DTCPSOCKET \
  6346.     -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DNOSETREU \
  6347.     -Dsuspend=ksuspend $(KFLAGS) -O" "LNKFLAGS ="
  6348.  
  6349. #Microport SV/AT for IBM PC/AT 286 and clones, System V R2.
  6350. #The -O flag may fail on some modules (like ckuus2.c), in which case you
  6351. #should compile them by hand, omitting the -O.  If you get "hash table
  6352. #overflow", try adding -DNODEBUG.
  6353. #Also, reportedly this compiles better with gcc than with cc.
  6354. mpsysv:
  6355.     @echo 'Making C-Kermit $(CKVER) for Microport SV/AT 286...'
  6356.     $(MAKE) wermit \
  6357.     "CFLAGS= -DATTSV -DNOLEARN $(KFLAGS) -O -Ml" "LNKFLAGS = -Ml"
  6358.  
  6359. #Microsoft "Xenix/286" e.g. for IBM PC/AT
  6360. xenix:
  6361.     @echo 'Making C-Kermit $(CKVER) for Xenix/286'
  6362.     $(MAKE) wermit \
  6363.     "CFLAGS= -DXENIX -DNOFILEH -DNOLEARN $(KFLAGS) -Dunix -F 3000 -i" \
  6364.     "LNKFLAGS = -F 3000 -i"
  6365.  
  6366. #PC/IX, Interactive Corp System III for IBM PC/XT
  6367. pcix:
  6368.     @echo 'Making C-Kermit $(CKVER) for PC/IX...'
  6369.     $(MAKE) wermit \
  6370.     "CFLAGS= -DPCIX -DISIII -DNOLEARN $(KFLAGS) \
  6371.     -Dsdata=sdatax -O -i" "LNKFLAGS = -i"
  6372.  
  6373. #Integrated Solutions Inc V8S VME 68020
  6374. isi:
  6375.     @echo Making C-Kermit $(CKVER) for 4.2BSD on ISI...
  6376.     $(MAKE) wermit "CC = cc" \
  6377.     "CFLAGS= -DBSD4 -DTCPSOCKET -DINADDRX -DDCLPOPEN -DDEBUG -DNOSETREU \
  6378.     -DCK_CURSES -DNOLEARN $(KFLAGS)" "LIBS = -lcurses -ltermcap"
  6379.  
  6380. #Interactive Corp version of AT&T System III
  6381. #is3: (very old, probably not sufficient for 5A or later)
  6382. #    @echo 'Making C-Kermit $(CKVER) for Interactive System III...'
  6383. #    make wermit "CFLAGS = -DISIII -Ddata=datax -O -i" "LNKFLAGS = -i"
  6384. #The following should work, use it if you don't have gcc.
  6385. #Use is3gcc if you have gcc.
  6386. is3:
  6387.     @echo 'Making C-Kermit $(CKVER) for Interactive System III...'
  6388.     $(MAKE) wermit \
  6389.     "CFLAGS= -DISIII $(KFLAGS) -Ddata=datax -DNAP -DHDBUUCP
  6390.     -DLOCK_DIR=\"/usr/spool/uucp\" -DSIGTYP=void -O -i" "LNKFLAGS = -i"
  6391.  
  6392. #Interactive UNIX System V R3, no network support.  Uses <dirent.h> and Honey
  6393. #DanBer UUCP.  If this entry does not compile correctly, try any or all of the
  6394. #following.  These suggestions also apply more or less to the other is5r3xxx
  6395. #entries that follow this one.
  6396. # . Remove the UID_T and GID_T definitions, or change them as required.
  6397. # . Change -DDIRENT to -DSDIRENT.
  6398. # . Add -DSIGTYP=void.
  6399. # . Remove -g from LNKFLAGS.
  6400. # . Add -DNOANSI to remove compiler complaints about ANSI C constructions
  6401. # . Add other -DNOxxx's to save space (e.g. -DNOCSETS)
  6402. # See the next few makefile entries for related examples.
  6403. # Also see sys5r32is for making a portable i386 SVR3 binary.
  6404. is5r3:
  6405.     @echo 'Making C-Kermit $(CKVER) for Interactive 386/ix or later...'
  6406.     @echo 'If this does not work please read the makefile entry.'
  6407.     $(MAKE) wermit \
  6408.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -g -DNOCSETS -DNOREALPATH \
  6409.     -DUID_T=ushort -DGID_T=ushort -DI386IX $(KFLAGS)" \
  6410.     "LNKFLAGS = -g"
  6411.  
  6412. #Interactive Corp System System V R3 with gcc
  6413. is3gcc:
  6414.     @echo 'Making C-Kermit $(CKVER) for Interactive System V R3 / gcc...'
  6415.     $(MAKE) wermit CC=gcc CC2=gcc \
  6416.     'CFLAGS = -D_SYSV3 -DISIII -Ddata=datax -DNAP -DHDBUUCP -DNOREALPATH \
  6417.     -DLOCK_DIR=\"/usr/spool/uucp\" -DSIGTYP=void -O' "LNKFLAGS ="
  6418.  
  6419. #Interactive UNIX System V R3, POSIX variant.  Untested.
  6420. #Uses dirent.h and Honey DanBer uucp.  Read comments in is5r3 entry.
  6421. is5r3p:
  6422.     @echo 'Making C-Kermit $(CKVER) for Interactive 386/ix or later...'
  6423.     $(MAKE) wermit \
  6424.     "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -g -DNOCSETS -DNOREALPATH \
  6425.     -DI386IX -DPOSIX $(KFLAGS)" "LNKFLAGS=" "LIBS=-lcposix"
  6426.  
  6427. #Interactive UNIX SVR3 2.2.1, job control, curses, no net, gcc.
  6428. is5r3gcc:
  6429.     $(MAKE) wermit CC=gcc CC2=gcc \
  6430.     "CFLAGS=-g -posix -DSVR3 -DDIRENT -DNOREALPATH \
  6431.     -DHDBUUCP -O -DNOCSETS -DI386IX -DSVR3JC -DCK_CURSES \
  6432.     $(KFLAGS)" LNKFLAGS="-posix" LIBS="-lcurses -lc_s"
  6433.  
  6434. #Interactive UNIX System V R3 with TCP/IP network support.
  6435. #Needs -linet for net functions.  signal() is void rather than int.
  6436. #Uses dirent.h and Honey DanBer uucp. Read comments in is5r3 entry.
  6437. #Also see is5r3net2 if you have trouble with this entry.
  6438. is5r3net:
  6439.     @echo 'Making C-Kermit $(CKVER) for Interactive 386/ix...'
  6440.     @echo 'If this does not work please read the makefile entry.'
  6441.     $(MAKE) wermit CC="$(CC)" CC2="$(CC2)" \
  6442.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DTCPSOCKET -DNOREALPATH \
  6443.     -DI386IX $(KFLAGS) -O" "LIBS = -linet"
  6444.  
  6445. is5r3netgcc:
  6446.     $(MAKE) is5r3net CC=gcc CC2=gcc
  6447.  
  6448. #Interactive UNIX System V R3, no job control, signal() void rather than int.
  6449. #Uses dirent.h and Honey DanBer uucp.  Needs -linet for net functions.
  6450. #Read comments in is5r3 entry.  Use this entry if is5r3net fails.
  6451. #Saves some space by stripping (-s) and using shared library (-lc_s).
  6452. is5r3net2:
  6453.     @echo 'Making C-Kermit $(CKVER) for Interactive 386/ix...'
  6454.     $(MAKE) wermit \
  6455.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DTCPSOCKET -DNOJC -DNOREALPATH \
  6456.     -DSIGTYP=void -DNOANSI -DI386IX $(KFLAGS) -O" \
  6457.     "LNKFLAGS= -s" "LIBS = -linet -lc_s"
  6458.  
  6459. #Interactive UNIX System V R3 (version 2.2 or later) with job control & curses.
  6460. #Uses dirent.h and Honey DanBer UUCP.
  6461. is5r3jc:
  6462.     @echo 'Making C-Kermit $(CKVER) for Interactive Unix 2.2 or later...'
  6463.     $(MAKE) wermit CC="$(CC)" CC2="$(CC2)" \
  6464.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -O -DNOCSETS -DNOREALPATH \
  6465.     -DUID_T=ushort -DGID_T=ushort -DI386IX -DSVR3JC -DCK_CURSES \
  6466.     -DPOSIX_JC -DCK_REDIR -DCK_POLL -DDCLGETCWD \
  6467.     $(KFLAGS)" "LIBS=-lcurses -lc_s -linet"
  6468.  
  6469. is5r3jcgcc:
  6470.     $(MAKE) is5r3jc CC="gcc -DCK_ANSILIBS -DDCGPWNAM -O4" CC2=gcc \
  6471.     KFLAGS="$(KFLAGS)" LNKFLAGS="$(LNKFLAGS)"
  6472.  
  6473. #Sunsoft/Interactive UNIX System V R3 (version 2.2 or later)
  6474. #with job control, curses, and TCP/IP networking.
  6475. #Uses dirent.h and Honey DanBer UUCP.
  6476. is5r3netjc:
  6477.     @echo 'Making C-Kermit $(CKVER) for Interactive Unix 2.2 or later...'
  6478.     $(MAKE) wermit CC="$(CC)" CC2="$(CC2)" \
  6479.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -O -DNOCSETS -DNOREALPATH \
  6480.     -DUID_T=ushort -DGID_T=ushort -DI386IX -DSVR3JC -DCK_CURSES \
  6481.     -DPOSIX_JC -DCK_REDIR -DTCPSOCKET -DSELECT \
  6482.     $(KFLAGS)" "LIBS=-linet -lcurses -lc_s"
  6483.  
  6484. is5r3netjcgcc:
  6485.     $(MAKE) is5r3netjc CC="gcc -DCK_ANSILIBS -DDCGPWNAM -O4" CC2=gcc \
  6486.     KFLAGS="$(KFLAGS)" LNKFLAGS="$(LNKFLAGS)"
  6487.  
  6488. #Masscomp System III
  6489. rtu:
  6490.     @echo 'Making C-Kermit $(CKVER) for Masscomp RTU System III...'
  6491.     $(MAKE) wermit \
  6492.     "CFLAGS= -UFIONREAD -DATTSV $(KFLAGS) -O" "LNKFLAGS =" "LIBS= -ljobs"
  6493.  
  6494. #Masscomp/Concurrent RTU 4.0 or later, Berkeley environment.
  6495. #Includes <ndir.h> = /usr/include/ndir.h
  6496. #Note "LIBS = -lndir" might not be necessary because of "ucb make".
  6497. rtubsd:
  6498.     @echo 'Making C-Kermit $(CKVER) for Masscomp RTU 4.1A...'
  6499.     ucb make wermit \
  6500.     "CFLAGS= -DBSD4 -DRTU -DNDIR -DHDBUUCP -DTCPSOCKET $(KFLAGS)" \
  6501.     "LIBS = -lndir"
  6502.  
  6503. #Masscomp/Concurrent RTU 4.0 or later, same as above,
  6504. #Includes "usr/lib/ndir.h"
  6505. #Note "LIBS = -lndir" might not be necessary because of "ucb make".
  6506. rtubsd2:
  6507.     @echo 'Making C-Kermit $(CKVER) for Masscomp RTU 4.1A...'
  6508.     ucb make wermit \
  6509.     "CFLAGS= -DBSD4 -DRTU -DXNDIR -DHDBUUCP $(KFLAGS)" \
  6510.     "LIBS = -lndir"
  6511.  
  6512. #Masscomp/Concurrent RTU 4.0 or later, same as above,
  6513. #Includes <sys/ndir.h>
  6514. #Note "LIBS = -lndir" might not be necessary because of "ucb make".
  6515. rtubsd3:
  6516.     @echo 'Making C-Kermit $(CKVER) for Masscomp RTU 4.x BSD...'
  6517.     ucb make wermit "CFLAGS= -DBSD4 -DRTU -DHDBUUCP $(KFLAGS)" \
  6518.     "LIBS = -lndir"
  6519.  
  6520. #Masscomp/Concurrent RTU 4.0 or later, System V R2, using <dirent.h>.
  6521. #In case of problems, add back the -DRTU switch.
  6522. #In case -DTCPSOCKET gives trouble, remove it.
  6523. rtus5:
  6524.     @echo 'Making C-Kermit $(CKVER) for Masscomp RTU 4.x...'
  6525.     $(MAKE) wermit \
  6526.     "CFLAGS= -DATTSV -DHDBUUCP -DDIRENT -DTCPSOCKET $(KFLAGS)"
  6527.  
  6528. #Masscomp/Concurrent RTU 4.x, System V R3, using <dirent.h>.
  6529. #Use this one if rtus5 gives warnings about pointer type mismatches.
  6530. #In case of problems, add back the -DRTU switch.
  6531. rtus5r3:
  6532.     @echo 'Making C-Kermit $(CKVER) for Masscomp RTU Sys V R3...'
  6533.     $(MAKE) wermit "CFLAGS= -DSVR3 -DHDBUUCP -DDIRENT $(KFLAGS)"
  6534.  
  6535. #DEC Pro-3xx with Pro/Venix V1.0 or V1.1
  6536. # Requires code-mapping on non-I&D-space 11/23 processor, plus some
  6537. # fiddling to get interrupt targets into resident code section.
  6538. # This almost certainly doesn't work any more.
  6539. provx1:
  6540.     @echo 'Making C-Kermit $(CKVER) for DEC Pro-3xx, Pro/Venix 1.x...'
  6541.     $(MAKE) wart "CFLAGS= -DPROVX1 $(KFLAGS)" "LNKFLAGS= "
  6542.     $(MAKE) wermit "CFLAGS = -DPROVX1 -DNOFILEH -md780" \
  6543.         "LNKFLAGS= -u _sleep -lc -md780"
  6544.  
  6545. #Nixdorf Targon/31.
  6546. #AT&T UNIX System V R3, signal() is void rather than int.
  6547. #Uses dirent.h without Honey DanBer uucp.
  6548. t31tos40x:
  6549.     @echo 'Making C-Kermit $(CKVER) for Targon/31 with TOS 4.0.xx...'
  6550.         $(MAKE) wermit \
  6551.         "CFLAGS= -DSVR3 -DDIRENT $(KFLAGS) -O" \
  6552.         "LNKFLAGS="
  6553.  
  6554. #NCR Tower 1632, OS 1.02
  6555. tower1:
  6556.     @echo 'Making C-Kermit $(CKVER) for NCR Tower 1632, OS 1.02...'
  6557.     $(MAKE) wermit "CFLAGS= -DTOWER1 $(KFLAGS)"
  6558.  
  6559. #NCR Tower 32, OS Release 1.xx.xx
  6560. tower32-1:
  6561.     @echo 'Making C-Kermit $(CKVER) for NCR Tower 32 Rel 1 System V R2...'
  6562.     @echo 'Add KFLAGS=-DISDIRBUG if you get errors about S_ISREG/S_ISDIR.'
  6563.     $(MAKE) wermit \
  6564.     "CFLAGS = -DATTSV $(KFLAGS) -O" "LNKFLAGS = -n"
  6565.  
  6566. #NCR Tower 32, OS Release 2.xx.xx
  6567. tower32-2:
  6568.     @echo 'Making C-Kermit $(CKVER) for NCR Tower 32 Rel 2 System V R2...'
  6569.     $(MAKE) wermit \
  6570.     "CFLAGS = -DATTSV -DHDBUUCP $(KFLAGS) -O2" \
  6571.     "LNKFLAGS = -n"
  6572.  
  6573. #NCR Tower 32, OS Releases based on System V R3
  6574. #Don't add -DNAP (doesn't work right) or -DRDCHK (not available in libc).
  6575. tower32:
  6576.     @echo 'Making C-Kermit $(CKVER) for NCR Tower 32 System V R3...'
  6577.     $(MAKE) wermit \
  6578.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DNOSYSIOCTLH $(KFLAGS) \
  6579.     -DUID_T=ushort -DGID_T=ushort -O1"
  6580.  
  6581. #NCR Tower 32, OS Releases based on System V R3
  6582. tower32g:
  6583.     @echo 'Making C-Kermit $(CKVER) for NCR Tower 32 System V R3, gcc...'
  6584.     $(MAKE) wermit "CC = gcc" \
  6585.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DNOSYSIOCTLH $(KFLAGS) \
  6586.     DUID_T=ushort -DGID_T=ushort -O -fstrength-reduce -fomit-frame-pointer"
  6587.  
  6588. #Fortune 32:16, For:Pro 1.8 (mostly like 4.1bsd)
  6589. ft18:
  6590.     @echo 'Making C-Kermit $(CKVER) for Fortune 32:16 For:Pro 1.8...'
  6591.     $(MAKE) wermit \
  6592.     "CFLAGS= -DNODEBUG -DBSD4 -DFT18 -DNOFILEH $(KFLAGS) \
  6593.     -DPID_T=short"
  6594.  
  6595. #Fortune 32:16, For:Pro 2.1 (mostly like 4.1bsd).
  6596. #The modules that break the optimizer are compiled separately.
  6597. ft21:
  6598.     @echo 'Making C-Kermit $(CKVER) for Fortune 32:16 For:Pro 2.1...'
  6599.     $(MAKE) ckuusx.$(EXT) "CFLAGS= -DNODEBUG -DBSD4 -DFT21 -DNOFILEH \
  6600.     -SYM 800  -DCK_CURSES $(KFLAGS) -DPID_T=short" \
  6601.     "LNKFLAGS= -n -s" "LIBS= -lcurses -ltermcap -lv -lnet"
  6602.     $(MAKE) ckuxla.$(EXT) "CFLAGS= -DNODEBUG -DBSD4 -DFT21 -DNOFILEH \
  6603.     -SYM 800  -DCK_CURSES $(KFLAGS) -DPID_T=short" \
  6604.     "LNKFLAGS= -n -s" "LIBS= -lcurses -ltermcap -lv -lnet"
  6605.     $(MAKE) ckudia.$(EXT) "CFLAGS= -DNODEBUG -DBSD4 -DFT21 -DNOFILEH \
  6606.     -SYM 800  -DCK_CURSES $(KFLAGS) -DPID_T=short" \
  6607.     "LNKFLAGS= -n -s" "LIBS= -lcurses -ltermcap -lv -lnet"
  6608.     $(MAKE) wermit \
  6609.     "CFLAGS= -O -DNODEBUG -DBSD4 -DFT21 -DNOFILEH -SYM 800 \
  6610.     -DCK_CURSES $(KFLAGS) -DPID_T=short" \
  6611.     "LNKFLAGS= -n -s" "LIBS= -lcurses -ltermcap -lv -lnet"
  6612.  
  6613. #Valid Scaldstar
  6614. #Berkeleyish, but need to change some variable names.
  6615. valid:
  6616.     @echo 'Making C-Kermit $(CKVER) for Valid Scaldstar...'
  6617.     $(MAKE) wermit \
  6618.     "CFLAGS= -DBSD4 -DNODEBUG -DNOTLOG -Dcc=ccx -DFREAD=1 $(KFLAGS)"
  6619.  
  6620. #IBM IX/370 on IBM 370 Series mainframes
  6621. #Mostly like sys3, but should buffer packets.
  6622. ix370:
  6623.     @echo 'Making C-Kermit $(CKVER) for IBM IX/370...'
  6624.     $(MAKE) wermit "CFLAGS = -DIX370 -DATTSV $(KFLAGS) -i -O" \
  6625.     "LNKFLAGS = -i"
  6626.  
  6627. #Amdahl UTS 2.4 on IBM 370 series compatible mainframes.
  6628. #Mostly like V7, but can't do initrawq() buffer peeking.
  6629. uts24:
  6630.     @echo 'Making C-Kermit $(CKVER) for Amdahl UTS 2.4...'
  6631.     $(MAKE) wermit "CFLAGS=-DV7 -DPROCNAME=\\\"$(PROC)\\\" \
  6632.     -DUTS24 -DBOOTNAME=\\\"$(BOOTFILE)\\\" -DNPROCNAME=\\\"$(NPROC)\\\" \
  6633.     -DNPTYPE=$(NPTYPE) $(DIRECT) $(KFLAGS)"
  6634.  
  6635. #Amdahl UTSV UNIX System V = System V R2 or earlier.
  6636. utsv:
  6637.     @echo 'Making C-Kermit $(CKVER) for Amdahl UTSV...'
  6638.     $(MAKE) wermit \
  6639.     "CFLAGS = -DUTSV $(KFLAGS) -i -O" "LNKFLAGS = -i"
  6640.  
  6641. #Amdahl UTSV UNIX System V = System V R2 or earlier, with TCP sockets library.
  6642. utsvtcp:
  6643.     @echo 'Making C-Kermit $(CKVER) for Amdahl UTSV w/tcp...'
  6644.     $(MAKE) wermit "CFLAGS = \
  6645.     -DTCPSOCKET -DUTSV $(KFLAGS) -i -O" "LNKFLAGS = -i" \
  6646.     "LIBS = -lsocket"
  6647.  
  6648. #BBN C/70 with IOS 2.0
  6649. #Mostly Berkeley-like, but with some ATTisms
  6650. c70:
  6651.     @echo 'Making C-Kermit $(CKVER) for BBN C/70 IOS 2.0...'
  6652.     $(MAKE) wermit "CFLAGS= -DBSD4 -DC70 $(KFLAGS)"
  6653.  
  6654. #Zilog ZEUS 3.21
  6655. zilog:
  6656.     @echo 'Making C-Kermit $(CKVER) for Zilog Zeus 3.21...'
  6657.     $(MAKE) wermit \
  6658.     "CFLAGS = -DATTSV -DZILOG -DNODEBUG $(KFLAGS) -i -O" \
  6659.     "LNKFLAGS = -i -lpw"
  6660.  
  6661. #Whitechapel MG-1 Genix 1.3
  6662. white:
  6663.     @echo 'Making C-Kermit $(CKVER) for Whitechapel MG-1 Genix 1.3...'
  6664.     @touch ckcpro.c
  6665.     $(MAKE) wermit "CFLAGS= -DBSD4 -Dzkself()=0  $(KFLAGS)"
  6666.  
  6667. #Pixel 1000
  6668. pixel:
  6669.     @echo 'Making C-Kermit $(CKVER) for Pixel 1000...'
  6670.     $(MAKE) wermit "CFLAGS= -DBSD4 -Dzkself()=0 $(KFLAGS)"
  6671.  
  6672. ptx:
  6673.     $(MAKE) "MAKE=$(MAKE)" dynixptx12
  6674.  
  6675. #CDC VX/VE 5.2.1
  6676. vxve:
  6677.     @echo 'Making C-Kermit $(CKVER) for CDC VX/VE 5.2.1...'
  6678.     $(MAKE) wermit \
  6679.     "CFLAGS = -DATTSV -DVXVE -DNODEBUG -DNOTLOG $(KFLAGS) -i -O" \
  6680.     "LNKFLAGS = -i"
  6681.  
  6682. #DIAB DS90 or LUXOR ABC-9000 with pre-5.2 DNIX.  Sys V with nap() and rdchk().
  6683. # nd = no opendir(), readdir(), closedir(), etc.
  6684. # Some of the modules fail to compile with -O.
  6685. dnixnd:
  6686.     @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with very old DNIX 5.2.'
  6687.     $(MAKE) wermit \
  6688.     "CFLAGS = -DATTSV -DNAP -DRDCHK -DDCLPOPEN \
  6689.     -U__STDC__ $(KFLAGS)"
  6690.  
  6691. #DIAB DS90 with DNIX 5.2.  Sys V with nap() and rdchk().
  6692. # This one has opendir(), readdir(), closedir(), etc.
  6693. # Some of the modules fail to compile with -O.
  6694. dnix:
  6695.     @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with old DNIX 5.2...'
  6696.     $(MAKE) wermit \
  6697.     "CFLAGS = -DATTSV -DNAP -DRDCHK -DDIRENT  \
  6698.     -U__STDC__ $(KFLAGS)"
  6699.  
  6700. #DIAB DS90 with DNIX 5.2.  Sys V with nap() and rdchk().
  6701. # As above, but with curses and TCP/IP.
  6702. # You might get complaints about redefinition of O_RDONLY, etc, because
  6703. # of bugs in the DNIX header files, which can be fixed by adding #ifndef...
  6704. # around the offending definitions in the header files.
  6705. dnixnetc:
  6706.     @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with old DNIX 5.2...'
  6707.     $(MAKE) wermit \
  6708.     "CFLAGS = -DATTSV -DNAP -DRDCHK -DDIRENT  \
  6709.     -DTCPSOCKET -DCK_CURSES -I/usr/include/bsd -U__STDC__ $(KFLAGS)" \
  6710.     "LIBS = -ln -lcurses"
  6711.  
  6712. #DIAB DS90 with DNIX 5.3 or later, with HDB UUCP, nap() and rdchk().
  6713. dnix5r3:
  6714.     @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with DNIX 5.3...'
  6715.     @echo 'with Honey DanBer UUCP'
  6716.     $(MAKE) wermit \
  6717.     "CFLAGS = -DSVR3 -DHDBUUCP -DNAP -DRDCHK -DDIRENT \
  6718.     -DCK_CURSES -DRENAME $(KFLAGS) -O" "LIBS= -lcurses"
  6719.  
  6720. #DIAB DS90 with DNIX 5.3 or later, with HDB UUCP, nap() and rdchk() + TCP/IP
  6721. dnix5r3net:
  6722.     @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with DNIX 5.3...'
  6723.     @echo 'with Honey DanBer UUCP and TCP/IP'
  6724.     $(MAKE) wermit \
  6725.     "CFLAGS = -DSVR3 -DHDBUUCP -DNAP -DRDCHK -DDIRENT \
  6726.     -DTCPSOCKET -DCK_CURSES -DRENAME $(KFLAGS) -O \
  6727.     -I/usr/include/bsd" "LIBS = -ln -lcurses"
  6728.  
  6729. #DIAB DS90 with DNIX 5.3 2.2 or later, with HDB UUCP, nap() and rdchk(),
  6730. #ANSI C compilation and libraries.
  6731. #Note that for DNIX 5.3 2.2 you have to correct a bug in /usr/include/stdlib.h:
  6732. #change "extern    void free(char *str);"
  6733. #to     "extern void free(void *str);"
  6734. #NOTE: This bug is reportedly fixed in DNIX 5.3 2.2.1.
  6735. #Should you get fatal errors caused by harmless pointer-type mismatches,
  6736. #like between signed and unsigned char, just remove -X7.
  6737. dnix5r3ansi:
  6738.     @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with DNIX 5.3...'
  6739.     @echo 'with ANSI C Honey DanBer UUCP'
  6740.     $(MAKE) wermit \
  6741.     "CFLAGS = -DSVR3 -DDIAB -DHDBUUCP -DNAP -DRDCHK -DDIRENT \
  6742.     -DCK_ANSILIBS -DCK_CURSES -DRENAME -O -X7 -X9 $(KFLAGS)" \
  6743.     "LIBS= -lcurses"
  6744.  
  6745. #DIAB DS90 with DNIX 5.3 2.2 or later, with HDB UUCP, nap() and rdchk(),
  6746. # + TCP/IP, ANSI C compilation and libraries.
  6747. #Should you get fatal errors caused by harmless pointer-type mismatches,
  6748. #like between signed and unsigned char, just remove -X7.
  6749. dnix5r3ansinet:
  6750.     @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with DNIX 5.3...'
  6751.     @echo 'with ANSI C Honey DanBer UUCP'
  6752.     $(MAKE) wermit \
  6753.     "CFLAGS = -DSVR3 -DDIAB -DHDBUUCP -DNAP -DRDCHK -DDIRENT \
  6754.     -DTCPSOCKET -DCK_ANSILIBS -DCK_CURSES -DRENAME -O -X7 -X9 $(KFLAGS) \
  6755.     -I/usr/include/bsd" "LIBS= -ln -lcurses"
  6756.  
  6757. # QNX 4.21 and above, 32-bit version, Watcom C32 10.6, fully configured,
  6758. # except no job control because QNX 4.x does not support it.  New NCURSES
  6759. # library used instead of CURSES.
  6760. #
  6761. # -Oatx optimizes to favor speed over size: loop optimization, inline fn's.
  6762. # -Os favors size over speed.  Saves 30-40K out of about 1.75M.
  6763. # -3r = generate 386 code with register-based arg passing.
  6764. # -3s = generate 386 code with stack-based arg passing.
  6765. # -ms = separate code & data 4GB segments (32-bit builds only).
  6766. # -mf = flat memory model code+data in one 4GB segment (ditto).
  6767. # -zc = place literal strings in code segment.
  6768. # -N4M = Big stack (increase the digit upon SIGSEGVs at runtime).
  6769. # chars are unsigned by default (-j makes them signed by default).
  6770. # -NOUUCP is included because QNX doesn't use it.
  6771. # Add these to the end if you like but they dump core on my QNX 4.25 system:
  6772. #
  6773. #    @wermit -h >use.qnx
  6774. #    @usemsg wermit use.qnx
  6775. #    @rm use.qnx
  6776. #
  6777. # If you get warnings about HEADER or C_IN add -DNO_DNS_SRV.
  6778. qnx32:
  6779.     @echo 'Making C-Kermit $(CKVER) for QNX 4.2x, 32-bit...'
  6780.     $(MAKE) xermit \
  6781.     "LNKFLAGS = -N4M -3r" \
  6782.     "CFLAGS = -ms -3r -DQNX -DTCPSOCKET -DCK_CURSES -DNOGETUSERSHELL \
  6783.     -DCK_WREFRESH -DCK_REDIR -DSELECT -DSELECT_H -DCK_RTSCTS -DNOJC \
  6784.     -DNOINITGROUPS -DNOUUCP -DCK_ANSIC -DPID_T=pid_t -Oatx -zc $(KFLAGS)" \
  6785.     "LIBS= -lsocket -lncurses -ltermcap"
  6786.  
  6787. # As above but no networking since some QNX systems do not have TCP/IP
  6788. # installed, or the TCP/IP developers kit, which includes all the needed
  6789. # header files.  This entry has not been tested on a QNX system that, in
  6790. # fact, does not have TCP/IP installed; some adjustments might be necessary,
  6791. # in particular regarding the use of select(): is -lsocket needed, can we
  6792. # get the needed definitions from non-TCP/IP header files (FD_SET, etc)?
  6793. qnx32nonet:
  6794.     @echo 'Making C-Kermit $(CKVER) for QNX 4.2x, 32-bit, no net...'
  6795.     $(MAKE) xermit \
  6796.     "LNKFLAGS = -N4M -3r" \
  6797.     "CFLAGS = -3r -ms -DQNX -DNONET -DNOIKSD -DCK_CURSES \
  6798.     -DCK_WREFRESH -DCK_REDIR -DSELECT -DSELECT_H -DCK_RTSCTS -DNOJC \
  6799.     -DNOUUCP -DCK_ANSIC -DPID_T=pid_t -Oatx -zc $(KFLAGS)" \
  6800.     "LIBS= -lsocket -lncurses -ltermcap"
  6801.     @wermit -h >use.qnx
  6802.     @usemsg wermit use.qnx
  6803.     @rm use.qnx
  6804.  
  6805. # Synonym for qnx32.
  6806. qnx:
  6807.     $(MAKE) qnx32 "KFLAGS=$(KFLAGS)"
  6808.  
  6809. # QNX 4.21 and above, 16-bit version, Watcom C 8.5 - and higher on i286 PCs
  6810. # and above.
  6811. #
  6812. #    IMPORTANT: Do not use Watcom C 10.6!!!
  6813. #    If you have it installed, add "-v9.52 to CFLAGS"
  6814. #
  6815. # NOTE: QNX 4.23 onward does not work on 286's anyway.
  6816. # Stacksize 26000, objects larger than 100 bytes in their own segments,
  6817. # string constants to the codesegment, etc.  Fully configured except job ctrl.
  6818. # This entry works for building a 16-bit executable on a 32-bit system, but
  6819. # has not been tested on a 16-bit system.  Uses large memory model, links
  6820. # explicitly with large-model sockets library.  Correct-model curses library
  6821. # is chosen automatically.  See comment in qnx32 entry about -DNOUUCP.
  6822. #
  6823. # WARNING:
  6824. #
  6825. # Watcom C prior to 10.6 never had released curses library. To link against it,
  6826. # you must obtain ported free curses source from ftp://ftp.qnx.com/usr/free,
  6827. # then compile and build library (cursesl.lib) and place it in /usr/lib.  You
  6828. # must also copy curses.h to /usr/include.  Be aware that if you have Watcom
  6829. # 10.6 installed, you should already have curses.h, which is the new ncurses
  6830. # library. You must back it up and use free curses.h instead, since ncurses is
  6831. # only for 32-bit applications and some definitions in these files are
  6832. # different (e.g., clearok()).  For safety, curses is not defined in build.
  6833. #
  6834. # In 7.0 -DNOHELP added to keep ckuus2.c from blowing up; NOCSETS and NOSPL
  6835. # added because ckuus4 was blowing up, and NOFLOAT just because it seemed
  6836. # dangerous (remove -DNOFLOAT if you want to try it), The result works OK
  6837. # except for some mysterious beeps upon termination of the top-level keyword.
  6838. #
  6839. # Things to try next time we get in trouble:
  6840. #  . Change -zt100 to something smaller like -zt25
  6841. #  . Change -Oatx to -Omilerat (enable stack checking)
  6842. #  . Maybe get rid of -v9.52 -- it's only there because we were warned.
  6843. #
  6844. qnx16:
  6845.     @echo 'Making C-Kermit $(CKVER) for QNX 4.21, 16-bit...'
  6846.     $(MAKE) xermit \
  6847.     "LNKFLAGS = -2 -ml -N 26000" \
  6848.     "CFLAGS = -2 -Oatx -zc -zt100 -ml -DQNX -DQNX16 -DNOUUCP -DNOHELP \
  6849.     -DCK_REDIR -DSELECT -DSELECT_H -DNOJC -DNOGETUSERSHELL -DNOCSETS \
  6850.     -v9.52 -DTCPSOCKET -DCK_RTSCTS -DCK_ANSIC -DNOINITGROUPS -DNOKVERBS \
  6851.     -DNORANDOM -DNOCSETS -DNOSPL -DNOFLOAT -DPID_T=pid_t $(KFLAGS)"
  6852.  
  6853. # QNX 4.1, 16-bit version, with Watcom C 8.5 on i286 PCs and above.
  6854. # stacksize 26000, objects larger than 100 bytes in their own segments,
  6855. # string constants to the codesegment, etc.  Add -DNOUUCP if desired.
  6856. qnx16_41:
  6857.     @echo 'Making C-Kermit $(CKVER) for QNX 4.1, 16-bit...'
  6858.     $(MAKE) xermit \
  6859.     "LNKFLAGS = -mh -N 26000" "CFLAGS = -Wc,-fpc -Wc,-j -DNOGETUSERSHELL \
  6860.     -Wc,-Ols -Wc,-zdf -Wc,-zc -Wc,-zt100 -mh -DPOSIX -DQNX -DDIRENT \
  6861.     -DNOCYRIL -DNODEBUG -DNOMSEND -DMINIDIAL -DNOXMIT -DNOSCRIPT -DNOSPL \
  6862.     -DNOSETKEY -DNOINITGROUPS -DQNX16 -DPID_T=pid_t $(KFLAGS)"
  6863.  
  6864. # QNX Neutrino 2 (pwaechtler@qnx.de) crosscompiled on QNX 4.25.
  6865. # Gets lots of compiler warnings.
  6866. qnx_nto2+:
  6867.     @echo 'Making C-Kermit $(CKVER) for QNX Neutrino 2+ '
  6868.     cc -o wart ckwart.c
  6869.     $(MAKE) xermit \
  6870.     "CC = qcc -Vgcc_ntox86" \
  6871.     "CC2 = qcc -Vgcc_ntox86" \
  6872.     "LNKFLAGS = " \
  6873.     "CFLAGS = -DNEUTRINO -DTCPSOCKET -DCK_CURSES -DNOGETUSERSHELL \
  6874.     -DNOUUCP -DCK_WREFRESH -DCK_REDIR -DSELECT -DSELECT_H -DCK_RTSCTS \
  6875.     -DNOJC -DNOINITGROUPS -DCK_ANSIC -DPID_T=pid_t -DUNIX -DDIRENT \
  6876.     -DMYREAD -DBSD44ORPOSIX -DSVORPOSIX -DNDGPWNAM $(KFLAGS)" \
  6877.     "LIBS= -lsocket -lncurses "
  6878.  
  6879. # QNX 6 (= Neutrino 2.xx) native build (kirussel@cisco.com).
  6880. # The -DBPS_xxx defines can probably be removed.
  6881. qnx6:
  6882.     @echo 'Making C-Kermit $(CKVER) for QNX6'
  6883.     $(MAKE) xermit KTARGET=QNX6 \
  6884.     "CFLAGS = -DPOSIX -DCK_POSIX_SIG -DNETPTY \
  6885.     -DDFTTY=\\\"/dev/ser1\\\" -DUSE_TIOCSDTR\
  6886.     -DBIGBUFOK -DCKMAXOPEN=100 -DRLOGCODE -DNOREALPATH \
  6887.     -DMAXNAMLEN=48 -DQNX6 -DUSE_TERMIO -DINIT_SPTY \
  6888.     -DCK_CURSES -DCK_WREFRESH -DCK_NEWTERM -DDYNAMIC \
  6889.     -DTCPSOCKET -DNOGETUSERSHELL -DCK_REDIR -DSELECT -DSELECT_H \
  6890.     -DCK_RTSCTS -DNOJC -DSVORPOSIX -DBSD44ORPOSIX -DNOUUCP -DCK_ANSIC \
  6891.     $(KFLAGS) -O" \
  6892.     "LIBS= -lsocket  -lncurses"
  6893.  
  6894. #Ridge 32 with ROS 3.2
  6895. ridge32:
  6896.     @echo 'Making C-Kermit $(CKVER) Ridge 32 ROS 3.2'
  6897.     $(MAKE) wermit \
  6898.     "CFLAGS = -DATTSV -DNOFILEH -DNODEBUG -DNOTLOG $(KFLAGS) -i -O" \
  6899.     "LNKFLAGS = -i"
  6900.  
  6901. #Altos 486, 586, or 986 with Xenix 3.0
  6902. altos:
  6903.     @echo 'Making C-Kermit $(CKVER) for Altos x86 with Xenix 3.0...'
  6904.     $(MAKE) wermit \
  6905.     "CFLAGS= -DATTSV -DA986 -DNODEBUG -DNOTLOG $(KFLAGS) -i -O" \
  6906.     "LNKFLAGS= -i"
  6907.  
  6908. #Altos 986 with Xenix 3.0, as above, but command-line only, minimal size.
  6909. #For systems with small memories.  It might also be necessary to chop certain
  6910. #modules up into smaller pieces, e.g. ckuus3-6, because of symbol table
  6911. #overflow.   If this makefile is too big or complex for the Altos, compile
  6912. #and link by hand or write shell scripts.
  6913. altosc:
  6914.     @echo 'Making C-Kermit $(CKVER) for Altos x86 Xenix 3.0, remote...'
  6915.     $(MAKE) wermit \
  6916.     "CFLAGS= -DATTSV -DA986 -DNODEBUG -DNOTLOG -DNOSCRIPT -DNODIAL \
  6917.     -DNOCSETS -DNOANSI -DNOMSEND -DNOSPL -DNOICP $(KFLAGS) -Mm -O" \
  6918.     "LNKFLAGS= -Mm -s"
  6919.  
  6920. #Altos 986 with Xenix 3.0, as above, but interactive only, minimal size.
  6921. altosi:
  6922.     @echo 'Making C-Kermit $(CKVER) for Altos x86 Xenix 3.0, local...'
  6923.     $(MAKE) wermit \
  6924.     "CFLAGS= -DATTSV -DA986 -DNODEBUG -DNOTLOG -DNOSCRIPT -DNODIAL \
  6925.     -DNOCSETS -DNOANSI -DNOMSEND -DNOSPL -DNOCMDL -DNOFRILLS -DNOHELP \
  6926.     -DNOSETKEY $(KFLAGS) -Mm -O" "LNKFLAGS= -Mm -s"
  6927.  
  6928. # Altos ACS68000 68000 System, UNIX System 3 Release 2, 512k memory.
  6929. # also needs getcwd() external function; see ckuins.txt file.
  6930. # also, sys/types.h needed modifying:
  6931. #   #ifdef __SYS_TYPES_H__, #define ..., #endif
  6932. # also, ckuus2.c MUST be compiled NOOPT else symbol table is destroyed!
  6933. # Submission by Robert Weiner/Programming Plus, rweiner@progplus.com.
  6934. #
  6935. altos3:
  6936.     @echo 'Making C-Kermit $(CKVER) for Altos ACS68k UNIX System III'
  6937.     $(MAKE) ckuus2.$(EXT) "CFLAGS = -DATTSV -DNOCSETS -DNOSETKEY -DNOJC \
  6938.     -DNODIAL -DDCLPOPEN -DNOSCRIPT -DNOHELP $(KFLAGS) -i"
  6939.     $(MAKE) wermit \
  6940.     "CFLAGS = -DATTSV -DNOCSETS -DNOSETKEY -DNOJC \
  6941.     -DNODIAL -DDCLPOPEN -DNOSCRIPT -DNOHELP $(KFLAGS) -i -O" \
  6942.     "LNKFLAGS = -i" "LIBS = getcwd.$(EXT)"
  6943.  
  6944. #MINIX - Original PC version with 64K+64K limit.
  6945. # Reportedly, the linker (asld) can run out of space while linking.  The only
  6946. # way around this is to make a copy of libc.a from which all modules that are
  6947. # not used by Kermit are removed.  If you have trouble compiling or running
  6948. # wart, "touch wart".  If that doesn't help, "touch ckcpro.c".
  6949. # The version configured below has no interactive command parser.
  6950. # If you can build this version successfully, maybe there will be room for
  6951. # a minimal interactive command parser too; try replacing -DNOICP with
  6952. # -DNOSPL, plus every other -DNOxxx flag there is, except for -DNOICP
  6953. # (see ckccfg.txt).
  6954. minix:
  6955.     @echo 'Making C-Kermit $(CKVER) for MINIX, no command parser...
  6956.     @echo 'TOTALLY UNTESTED!'
  6957.     $(MAKE) wermit EXT=s \
  6958.     "CFLAGS= -DV7 -DMINIX -i -D_MINIX -D_POSIX_SOURCE \
  6959.     -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t -DSIG_V \
  6960.     -DNOXMIT -DNOMSEND -DNOFRILLS -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG \
  6961.     -DNOSCRIPT -DNOCSETS -DNOICP -DNOSETKEY $(KFLAGS)" \
  6962.     "LNKFLAGS= -i -T"
  6963.  
  6964. #MINIX - PC version with 64K+64K limit, new (as yet unreleased) ACK 2.0 beta C
  6965. #compiler, which outputs .o object files, rather than .s.  But 'make' still
  6966. #expects .s files, so must be patched to use .o.  Tested on Minix 1.5.10.
  6967. minixnew:
  6968.     @echo 'Making C-Kermit $(CKVER) for MINIX (new ACK 2.0 compiler),'
  6969.     @echo 'no command parser...  TOTALLY UNTESTED!'
  6970.     $(MAKE) wermit \
  6971.     "CFLAGS= -DV7 -DMINIX -i -D_MINIX -D_POSIX_SOURCE \
  6972.     -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t -DSIG_V -DNODIAL \
  6973.     -DNOHELP -DNODEBUG -DNOTLOG -DNOSCRIPT -DNOCSETS -DNOICP $(KFLAGS)" \
  6974.     "LNKFLAGS= -i -T"
  6975.  
  6976. #PFU Compact A Series UNIX System V R3, SX/A TISP V10/L50 (Japan)
  6977. #Maybe the -i link option should be removed?
  6978. sxae50:
  6979.     @echo 'Making C-Kermit $(CKVER) for PFU SX/A V10/L50...'
  6980.     $(MAKE) xermit \
  6981.     "CFLAGS= -DSVR3 -DDIRENT -DsxaE50 -DTCPSOCKET $(KFLAGS) -i -O" \
  6982.     "LNKFLAGS= "
  6983.  
  6984. #Tektronix 6130, 4319, 4301, etc, with UTek OS, /usr/spool/uucp/LCK./...
  6985. #The models that support hardware flow control.
  6986. utek:
  6987.     @echo 'Making C-Kermit $(CKVER) for 4.2BSD/UTek, hardware flow control'
  6988.     $(MAKE) wermit \
  6989.     "CFLAGS= -O -DLCKDIR -DBSD4 -DTCPSOCKET \
  6990.     -DUTEK -DDCLPOPEN -DLOCK_DIR=\\\"/usr/spool/uucp/LCK.\\\" \
  6991.     -DTRMBUFL=2048 -DCK_DTRCTS $(KFLAGS)"
  6992.  
  6993. #Tektronix 4315, 4316, 4317 with UTek OS, /usr/spool/uucp/LCK./...
  6994. #The models that do not fully support hardware flow control.
  6995. uteknohwfc:
  6996.     @echo 'Making C-Kermit $(CKVER) for 4.2BSD/UTek, no h/w flow control'
  6997.     $(MAKE) wermit \
  6998.     "CFLAGS= -O -DLCKDIR -DBSD4 -DTCPSOCKET \
  6999.     -DUTEK -DDCLPOPEN -DLOCK_DIR=\\\"/usr/spool/uucp/LCK.\\\" \
  7000.     -DTRMBUFL=2048 $(KFLAGS)"
  7001.  
  7002. #Tektronix XD88 with  UTekV OS
  7003. utekvr3:
  7004.     @echo 'Making C-Kermit $(CKVER) for Tektronix XD88 UTekV R3...'
  7005.     $(MAKE) wermit \
  7006.     "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP \
  7007.     -DTCPSOCKET -DSYSUTIMEH -DCK_CURSES $(KFLAGS) -O" \
  7008.     "LIBS= -lcurses" "LNKFLAGS= -s"
  7009.  
  7010. #Perkin-Elmer 3200 Xelos R02 or earlier
  7011. ccop1:
  7012.     @echo 'Making C-Kermit $(CKVER) for Xelos & Public Domain Dirent calls'
  7013.     @echo 'or System V R2 or earlier...'
  7014.     $(MAKE) wermit \
  7015.     "CFLAGS = -DATTSV -Dvoid=int -DDIRENT -DCK_CURSES \
  7016.     $(KFLAGS) -O" "LNKFLAGS =" "LIBS= -lcurses -ltermlib"
  7017.  
  7018. #Encore, UMAX 4.3 (BSD) but without acucntrl program.
  7019. encore:
  7020.     $(MAKE) "MAKE=$(MAKE)" umax43 "KFLAGS=$(KFLAGS)"
  7021.  
  7022. #Encore, as above, but with curses file transfer display included.
  7023. encorec:
  7024.     $(MAKE) "MAKE=$(MAKE)" umax43 "KFLAGS=-DCK_CURSES $(KFLAGS)" \
  7025.     "LIBS= -lcurses -ltermcap"
  7026.  
  7027. #Encore, UMAX 4.3 (BSD) but without acucntrl program.
  7028. umax43:
  7029.     @echo Making C-Kermit $(CKVER) for Encore UMAX 4.3...
  7030.     $(MAKE) "MAKE=$(MAKE)" PARALLEL=4 xermit \
  7031.     "CFLAGS= -DBSD43 -DENCORE -DTCPSOCKET $(KFLAGS) -O"
  7032.  
  7033. #Encore, UMAX 4.2 (BSD)
  7034. umax42:
  7035.     @echo Making C-Kermit $(CKVER) for Encore UMAX 4.2...
  7036.     $(MAKE) "MAKE=$(MAKE)" PARALLEL=4 xermit \
  7037.     "CFLAGS= -DBSD4 -DENCORE -DTCPSOCKET $(KFLAGS) -O"
  7038.  
  7039. #Encore 88K UMAX 5.3 with TCP/IP support
  7040. encore88k:
  7041.     @echo 'Making C-Kermit $(CKVER) for Encore 88K UMAX V, TCP/IP...'
  7042.     $(MAKE) xermit \
  7043.     "CFLAGS = -q ext=pcc -DSVR3 -DTCPSOCKET -DDIRENT \
  7044.     -DNOGETID_PROTOS -DHDBUUCP $(KFLAGS) -O" "LNKFLAGS ="
  7045.  
  7046. #Encore 88K UMAX 5.3 with TCP/IP support
  7047. encore88kgcc:
  7048.     @echo 'Making C-Kermit $(CKVER) for Encore 88K UMAX V, TCP/IP, gcc...'
  7049.     $(MAKE) xermit CC=gcc CC2=gcc \
  7050.     "CFLAGS = -DSVR3 -DTCPSOCKET -DDIRENT \
  7051.     -DNOGETID_PROTOS -DHDBUUCP $(KFLAGS) -O" "LNKFLAGS ="
  7052.  
  7053. #SONY NEWS, NEWS-OS 4.01C
  7054. sonynews:
  7055.     @echo Making C-Kermit $(CKVER) for SONY NEWS-OS 4.01C...
  7056.     $(MAKE) xermit "CFLAGS= -DBSD43 -DACUCNTRL -DTCPSOCKET -O"
  7057.  
  7058. #Run Lint on this mess for selected versions.
  7059. #These are pretty much obsolete since ANSI C / gcc.
  7060. lintsun:
  7061.     @echo 'Running Lint on C-Kermit $(CKVER) sources for SunOS version...'
  7062.     lint -x -DSUNOS4 -DDIRENT -DTCPSOCKET -DSAVEDUID \
  7063.     ck[cu]*.c > ckuker.lint.sun
  7064.  
  7065. lintbsd:
  7066.     @echo 'Running Lint on C-Kermit $(CKVER) sources for BSD 4.2 version..'
  7067.     lint -x -DBSD4 -DTCPSOCKET ck[cu]*.c > ckuker.lint.bsd42
  7068.  
  7069. lints5:
  7070.     @echo 'Running Lint on C-Kermit $(CKVER) sources for Sys V version...'
  7071.     lint -x -DATTSV ck[cu]*.c > ckuker.lint.s5
  7072.  
  7073. #Who remembers TECO?
  7074. love:
  7075.     @echo 'Not war?'
  7076.