home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / archives / cku201txt.zip / makefile < prev   
Makefile  |  2002-02-14  |  321KB  |  7,126 lines

  1. # makefile / Makefile / ckuker.mak / CKUKER.MAK
  2. #
  3. # Fri Feb  8 10:49:51 2002
  4. BUILDID=20020208
  5. #
  6. CKVER= "8.0.201"
  7. #
  8. # -- Makefile to build C-Kermit for UNIX and UNIX-like platforms --
  9. #
  10. # Copyright (C) 1985, 2002,
  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 FreeBSD 4.4, "make freebsd44"
  310. # + for FreeBSD 4.5, "make freebsd45"
  311. # ? for Harris HCX-2900, "make sys5r3"
  312. # ? for Harris Night Hawk 88K or 68K with CX/UX pre-6.1, "make sys5r3"
  313. # ? for Harris Night Hawk 88K or 68K with CX/UX 6.1 or later, "make cx_ux"
  314. # ? for Heurikon, "make sys3"
  315. # ? for HP-3000, MPE/ix, "make posix"?
  316. # + for HP-9000 Series 300 with 4.4BSD, "make bsd44"
  317. # + for HP-9000 Series 500, HP-UX 5.21 and no networking "make hpux0500"
  318. # + for HP-9000 Series 500, HP-UX 5.21 with WIN/TCP 1.2 "make hpux0500wintcp"
  319. # + for HP-9000 Series, HP-UX 6.5, without long filenames,
  320. #     "make hpux0650" or "make hpux0650c"
  321. # + for HP-9000 Series, HP-UX 7.0 or later no long filenames, "make hpux0700sf"
  322. #     or (to include tcp/ip, curses, etc) "make hpux0700sftcpc"
  323. # + for HP-9000 Series with HP-UX 7.0, TCP/IP,long filenames,"make hpux0700lfn"
  324. # + for HP-9000 300/400 Series (680x0) with HP-UX 8.0, TCP/IP, "make hpux0800"
  325. #      or "make hpux0800c"
  326. # + for HP-9000 700/800 Series (PA-RISC), HP-UX 8.0, TCP/IP, "make hpux0800pa"
  327. #      or "make hpux0800pac"
  328. # + for HP-9000 Series with HP-UX 8.0, no TCP/IP, long filenames,
  329. #      "make hpux0800notcp"
  330. # + for HP-9000 Series, HP-UX 9.0 - 9.10, TCP/IP, curses, restricted compiler
  331. #     (no optimization, no ANSI), all models, "make hpux0900".  Read the
  332. #     hpux0900 entry below for more info.
  333. # + for HP-9000 700 and 800 Series, HP-UX 9.x, TCP/IP, curses,
  334. #     HP optimizing ANSI C compiler, "make hpux0900o700".
  335. # + for HP-9000 with Motorola CPUs, HP-UX 9.x, TCP/IP, curses,
  336. #     HP optimizing ANSI C compiler, "make hpux0900mot".
  337. # + for HP-9000 on other CPUs, HP-UX 9.x, TCP/IP, curses,
  338. #     HP optimizing ANSI C compiler, "make hpux0900o".
  339. # + for HP-9000 series, HP-UX 9.x, TCP/IP, curses, gcc, all models,
  340. #     "make hpux0900gcc"
  341. # + for HP-9000 700/800 Series, HP-UX 10.00,10.01,10.10,10.20,10.30, TCP/IP,
  342. #     curses, restricted compiler (no optimization, no ANSI) "make hpux1000".
  343. # + for HP-9000 700/800 Series, HP-UX 10.00,10.01,10.10,10.20,10.30, TCP/IP,
  344. #     curses, HP ANSI/optimizing compiler "make hpux1000o" or "make hpux1000o+"
  345. # + for HP-9000 HP-UX 10.00 or later with gcc, "make hpux1000gcc"
  346. # + for Trusted HP-UX 10.xx "make hpux1000t", "make hpux1000to",
  347. #     or make hpux1000to+"
  348. # + for HP-9000 700/800 Series, HP-UX 11.00,TCP/IP,curses, restricted compiler
  349. #     (no optimization, no ANSI) "make hpux1100".
  350. # + for HP-9000 700/800 Series, HP-UX 11.00,TCP/IP,curses, restricted compiler
  351. #     HP ANSI/optimizing compiler "make hpux1100o" or "make hpux1100o+"
  352. # + for Trusted HP-UX 11.xx "make hpux1100t", "make hpux1100to",
  353. #     make hpux1100to+"
  354. # + for HP-9000 PA-RISC models with NeXTSTEP 3.3, "make nextquadfat".
  355. # + for HP-9000 PA-RISC models with OPENSTEP/Mach 4.1, "make nextquadfat".
  356. # ? for IBM 370 Series with IX/370, "make ix370"
  357. # ? for IBM 370 Series with AIX/370 1.2, "make aix370"
  358. # ? for IBM 370 Series with AIX/370 3.0, "make aix370"
  359. # ? for IBM 370 Series with AIX/ESA 2.1, "make aixesa"
  360. # - for IBM PC/AT 286 & compatibles with Mark Williams Coherent OS,
  361. #     command-line-only version, "make coherent" (version 5A & later too big)
  362. # ? for IBM PC 386 & compatibles with Mark Williams Coherent OS,
  363. #     minimum interactive version, "make coherentmi"
  364. # ? for IBM PC 386 & compatibles with Mark Williams Coherent OS,
  365. #     full interactive version, prior to v4.2, "make coherentmax"
  366. # + for IBM PC 386 & compatibles with Mark Williams Coherent OS 4.2,
  367. #     "make coherent42"
  368. # ? for IBM PC 386 & compatibles with LynxOS 2.0 or 2.1, "make lynx21"
  369. # ? for IBM PC 386 & compatibles with LynxOS 2.2, "make lynx"
  370. # - for IBM PC/AT & compatibles with original MINIX, "make minix" (too big)
  371. # ? for IBM PC family, 386-based, with MINIX/386 1.5, "make minix386"
  372. #     or if you have GNU CC, "make minix386gcc"
  373. # + for IBM PC family, 386-based, with MINIX 2.0, "make minix20"
  374. # + for IBM PS/2 with PS/2 AIX 1.0, 1.1, or 1.2, "make ps2aix" or ps2aixnetc.
  375. # ? for IBM PS/2 with PS/2 AIX 1.3, "make ps2aix3"
  376. # ? for IBM RISC System/6000 with AIX 3.0, "make aix30"
  377. # ? for IBM RISC System/6000 with AIX 3.1.x, "make aix31"
  378. # + for IBM RISC System/6000 with AIX 3.2.0 thru 3.2.5, "make aix32"
  379. # + for IBM RS/6000 or Power Series with AIX 4.1.x, "make aix41"
  380. # + for IBM RS/6000 or Power Series with AIX 4.1.x with gcc, "make aix41g"
  381. # + for IBM RS/6000 or Power Series with AIX 4.1 with X.25, "make aix41x25"
  382. # + for IBM RS/6000 or Power Series with AIX 4.2, "make aix42"
  383. # + for IBM RS/6000 or Power Series with AIX 4.3, "make aix43" or "make aix43g"
  384. # ? for IBM RS/6000 or Power Series with AIX 4.4, "make aix44"
  385. # ? for IBM RS/6000 or Power Series with AIX 4.5, "make aix45"
  386. # ? for IBM RS/6000 or Power Series with AIX 5.0, "make aix50"
  387. # ? for IBM RS/6000 or Power Series with AIX 5.1, "make aix51"
  388. # ? for IBM RT PC with AIX 2.1, "make sys3"
  389. # + for IBM RT PC with AIX 2.2.1, "make rtaix" or "make rtaixc"
  390. # ? for IBM RT PC with ACIS 4.2, "make bsd"
  391. # ? for IBM RT PC with ACIS 4.3, "make rtacis" or "make bsd KFLAGS=-DNOANSI"
  392. # ? for IBM RT PC with 4.3BSD/Reno, "make bsd44" or "make bsd44c"
  393. # ? for ICL DRS400 or 400E, "make iclsys5r3"
  394. # ? for ICL DRS3000 (80486) with DRS/NX, "make iclsys5r4_486"
  395. # ? for ICL DRS6000 (SPARC) with DRS/NX, "make iclsys5r4"
  396. # + for ICL DRS6000 (SPARC) with DRS/NX 4.2MP 7MPlus, "make iclsys5r4m+"
  397. # ?     Ditto but with IKSD support included, "make iclsys5r4m+iksd"
  398. # ? for Integrated Solutions Inc V8S VME 68020, "make isi"
  399. # ? for Intel 302 with Bell Tech Sys V/386 R3.2, "make sys5r3"
  400. # ? for Intel Xenix/286, "make sco286"
  401. # ? for Interactive System III (PC/IX), "make pcix" or "make is3"
  402. # ? for Interactive System III (PC/IX) with gcc, "make is3gcc"
  403. # ? for Interactive 386/ix 1.0.6 with TCP/IP networking, "make is5r3net2"
  404. # ? for Interactive 386/ix 2.0.x, "make is5r3" or (POSIX) "make is5r3p"
  405. # ? for Interactive 386/ix 2.0.x with TCP/IP networking, "make is5r3net"
  406. #     or "make is5r3net2"
  407. # ? for Interactive 386/ix 2.2.1, job control, curses, no net, gcc,
  408. #     "make is5r3gcc"
  409. # + for Interactive UNIX Sys V R3.2 V2.2 - 4.0 without TCP/IP, "make is5r3jc"
  410. # + for Interactive UNIX Sys V R3.2 V2.2 - 4.0 with TCP/IP, "make is5r3netjc"
  411. # + for Intergraph Clipper, "make clix" or "make clixnet"
  412. # ? for Jolix (see 386BSD)
  413. # + for Red Hat Linux 7.1 fully configured (krb5, SSL, etc): "make redhat71"
  414. #     NOTE: You must use this target for Red Hat 7.1 since it also includes
  415. #     a workaround for its broken curses library.
  416. # + for Linux 1.2 and later, "make linux".  Uses ncurses.  This version
  417. #     handles serial speeds up to 460800 bps, Linux FSSTD 1.2, TCP/IP, and
  418. #     should work on both libc and glibc systems.  For static linking, use
  419. #     "make linux LNKFLAGS=-static".  Please read the comments that accompany
  420. #     the linux entry.
  421. # + for Linux builds that fail with "sys/select.h: No such file or directory",
  422. #     "make linuxns"
  423. # + for Linux 1.2 and later but with curses.h and libcurses (rather than
  424. #     ncurses.h and libncurses), use "make linuxc".
  425. # + for Linux 1.2 and later with no curses support at all, "make linuxnc".
  426. # + for Linux on PowerMac (Mklinux DR3), "make mklinux".
  427. # + for Linux 1.2 and later, to build with egcs, "make linuxegcs".
  428. # + for Linux with no TCP/IP, "make linuxnotcp"
  429. # + for Linux with lcc compiler, no TCP/IP, "make linuxnotcp-lcc"
  430. # ? for Linux 1.0 or earlier, "make linux10", or (to remove TCP/IP)
  431. #     "make linuxnotcp".
  432. #     IMPORTANT: Read the comments that accompany the "linux:" entry.
  433. # ? for Mach 2.6 on (anything, e.g. DECstation), "make bsd42" or "make bsd43".
  434. # ? for MachTen (Tenon) 2.1.1.D on (e.g.) Apple Powerbook, "make machten".
  435. # ? for Masscomp RTU AT&T System III, "make rtu"
  436. #   for other Masscomp, see Concurrent.
  437. # ? for Microport SV/AT (System V R2), "make mpsysv" (last edit tested: 144)
  438. # ? for Microport SVR4 2.2, 3.1, or 4.1 "make sys5r4sx"
  439. # ? for Microsoft,IBM Xenix (/286, PC/AT, etc), "make xenix" or "make sco286"
  440. # ? for MIPS System with RISC/os (UMIPS) 4.52 = AT&T SVR3, "make mips"
  441. #     or "make mipstcpc"
  442. # + for MkLinux on Power Macintosh, "make mklinux"
  443. # ? for Modcomp 9730, Real/IX, "make sys5r3" (or modify to use gcc = GLS cc)
  444. # ? for Modcomp Realstar 1000 with REAL/IX D.1, "make sv88r32"
  445. # ? for Motorola Four Phase, "make sys3" or "make sys3nid"
  446. # + for Motorola Delta System V/68 R3, "make sv68r3"
  447. # + for Motorola Delta System V/68 R3V5, "make sv68r3v5"
  448. # + for Motorola Delta System V/68 R3V5.1, "make sv68r3v51"
  449. # + for Motorola Delta System V/68 R3V6 with NSE TCP/IP, "make sv68r3v6"
  450. # + for Motorola Delta System V/88 R32, "make sv88r32"
  451. # + for Motorola Delta System V/88 R40, "make sv88r40"
  452. # ? for Mt Xinu Mach386 on 386/486-based PCs, "make bsd43"
  453. # ? for NCR Tower 1632, OS 1.02, "make tower1"
  454. # ? for NCR Tower 1632 or Minitower with System V R2, "make sys3"
  455. #     or "make sys3nv"
  456. # ? for NCR Tower 32, OS Release 1.xx.xx, "make tower32-1"
  457. # ? for NCR Tower 32, OS Release 2.xx.xx, "make tower32-2"
  458. # ? for NCR Tower 32, OS Releases based on Sys V R3, "make tower32"
  459. # ? for NCR Tower 32, OS Releases based on Sys V R3 with gcc "make tower32g"
  460. # ? for NCR System 3000, AT&T UNIX System V R4 2.0, "make sys5r4sxna"
  461. # ? for NCR System 3000, AT&T UNIX System V R4 2.0 with Wollongong TCP/IP,
  462. #     "make sys5r4net2" or "make sys5r4net2c".
  463. #      Some header files might be misplaced; try this:
  464. #       ln /usr/include/netinet/in.h /usr/include/sys/in.h
  465. #       ln /usr/include/arpa/inet.h /usr/include/sys/inet.h
  466. #       ln /usr/include/sys/termiox.h /usr/include/termiox.h
  467. # ? for NCR System 3000, NCR UNIX 02.02.01, same as above.
  468. # + for NCR MP-RAS System V R4 V2.03 or 3.02, "make mpras" or "make mprastcpc"
  469. # + for NetBSD through 1.4.x on any architecture, "make netbsd"
  470. # + for NetBSD 1.5.0 and later, "make netbsd15"
  471. # + for NeXT with NeXTSTEP 1.0 through 3.2, "make next" (on a NeXT)
  472. # + for NeXT with NeXTSTEP 3.3, "make next33"
  473. # ? for NeXT with OPENSTEP/Mach 4.1, "make nextquadfat".
  474. # + for NeXT with OPENSTEP/Mach 4.2, "make openstep42".
  475. # ? for NeXTSTEP/486, "make next" (on a PC)
  476. # ? for NeXTSTEP portable binary (runs on Intel or Motorola), "make nextfat"
  477. # ? for NeXTSTEP portable binary (Intel, Motorola, HP PA-RISC, or SPARC),
  478. #     "make nextquadfat"
  479. # ? for Nixdorf Targon/31, "make t31tos40x"
  480. # ? for Norsk Data Uniline 88/17 with SV/88 R3.2, "make sv88r32"
  481. #   for Novell UnixWare - see UnixWare
  482. # ? for OSF/1 (vanilla, from OS/F), "make posix"
  483. # ? for OkiStation 7300 Series, "make sys5r4sxtcp"
  484. # ? for Olivetti LSX-3020 with X/OS R.2.3, "make xos23" or "make xos23c"
  485. # + for OpenBSD, "make openbsd"
  486. # ? for OPENSTEP/Mach 4.1, "make nextquadfat" (NeXT, Intel, PA-RISC, SPARC)
  487. # + for OPENSTEP/Mach 4.2, "make openstep42" (tested on NeXT)
  488. # ? for Perkin-Elmer (Concurrent) 3200 series, "make sys5".
  489. # ? for Perkin-Elmer (Concurrent) 3200 series with <dirent.h>, "make ccop1"
  490. # ? for Perkin-Elmer/Concurrent 3200 with Xelos R02, "make ccop1"
  491. # ? for PFU Compact A Series SX/A TISP V10/E50 (Japan), "make sxae50"
  492. # ? for Plexus, "make sys3"
  493. # + for Pyramid 9XXX (e.g. 9845) or MIServer T series, OSx 4.4b thru 5.1,
  494. #     "ucb make pyramid" or for HDB UUCP, "ucb make pyramid-hdb" or:
  495. # + for Pyramid MIServer S or ES Series, DataCenter/OSx, "make pyrdcosx"
  496. # + for Pyramid MIS-S MIPS R3000, DataCenter OSx System V R4, "make pyrdcosx"
  497. # + for POSIX on anything, "make posix" (but adjustments might be necessary).
  498. # ? for Prime 8000 MIPS, SVR3, "make mips" or "make mipstcpc"
  499. # - for QNX 2.x (sorry we don't have a version of C-Kermit for QNX 2.x)
  500. # ? for QNX 4.0 or 4.1, 16-bit, on 286 PC, Watcom C 8.5, "make qnx16_41"
  501. # + for QNX 4.21 - 4.22A (286+), and 4.23 (386+), or higher, 16-bit,
  502. #     Watcom C 9.5x or higher, "make qnx16"
  503. # + for QNX 4.21-4.25, 32-bit, 386 or above, Watcom C 10.6, "make qnx32"
  504. #     NOTE: ("make qnx" == "make qnx32")
  505. # ? for QNX Neutrino 2+, "make qnx_nto2+" (crosscompiled on QNX4 with Watcom C)
  506. # + for QNX 6 = Neutrino 2.xx, "make qnx6"
  507. # ? for Ridge 32 (ROS3.2), "make ridge32"
  508. # ? for Samsung MagicStation, "make sys5r4"
  509. # ? for SCO Xenix 2.2.1 with development system 2.2 on 8086/8 "make sco86"
  510. # ? for SCO Xenix/286 2.2.1 with development system 2.2 on 80286, "make sco286"
  511. #     NOTE: reportedly this makefile is too long for SCO Xenix/286 make, but it
  512. #     works with "makeL", or if some of the other make entries are edited out.
  513. # ? for SCO Xenix/386 2.2.2, "make sco386"
  514. # ? for SCO Xenix/386 2.3.x, "make sco3r2"
  515. # ? for SCO Xenix/386 SCO 2.3.3 or 2.3.4 with gcc 1.37 or later,
  516. #     "make sco386gcc" or (to add curses) "make sco386gccc".
  517. # ? for SCO Xenix/386 or UNIX/386 with Excelan TCP/IP, "make sco3r2net"
  518. #     or (to add curses support) "make sco3r2netc" or "sco386netc"
  519. # + for SCO XENIX 2.3.4, "make sco234" or "make sco234c" to add curses.
  520. # + for SCO XENIX 2.3.4 with SCO TCP/IP & curses, "make sco234netc".
  521. # ? for SCO Xenix 2.3.x with Racal-InterLan TCP/IP, "make sco3r2netri"
  522. #   for other UNIX varieties with Racal Interlan TCP/IP, read sco3r2netri entry
  523. # ? for SCO Xenix 2.3.x with SCO (Lachman) TCP/IP, "make sco3r2lai"
  524. #     or (to add curses) "make sco3r2laic"
  525. #   for SCO UNIX...  ALSO READ COMMENTS in the SCO UNIX entries for more info!
  526. # ? for SCO UNIX/386 3.2.0 or 3.2.1, "make sco3r2" or "make sco3r2x"
  527. # ? for SCO UNIX/386 3.2.2, "make sco3r22" or "make sco3r22gcc"
  528. #     or "make sco3r22c"
  529. # ? for SCO UNIX/386 3.2.2 with SCO TCP/IP, "make sco3r22net"
  530. #     or "make sco3r22netc" (curses)
  531. # ? for SCO ODT 1.1, "make sco3r22net" or "make sco3r22netc" (curses)
  532. # + for SCO UNIX/386 3.2 V4.x, no network support, "make sco32v4"
  533. # +   or "make sco32v4ns" (this one uses no select() or sockets library)
  534. # + for SCO UNIX/386 3.2 V4.x with TCP/IP, "make sco32v4net"
  535. #     (also sco32v4gcc, sco32v4netgcc)
  536. # + for SCO UNIX/386 3.2 V5.0 - see SCO OpenServer.
  537. # + for SCO UNIX 3.2v4.x with TCP/IP, <dirent.h> for Extended Acer File
  538. #     System (EAFS), curses, ANSI C compilation, "make sco32v4net"
  539. # +   or (to use select()-based CONNECT module) "make sco32v4netx".
  540. # + for SCO UNIX 3.2v4.2, "make sco-odt30" (includes TCP/IP).
  541. # + for SCO MPX 3.0 - The SCO UNIX binary runs on the corresponding MPX system.
  542. #
  543. # NOTE: Also see below for other entries that are variations on these.
  544. # Also be sure to read the comments accompanying each SCO entry.
  545. # And yes, I know it's called Caldera now instead of SCO.
  546. # Also see Unixware section; Unixware has had so many owners there's no point
  547. # keeping track.
  548. #
  549. # + for SCO ODT 2.0, "make sco32v4net"
  550. # + for SCO ODT 3.0, "make sco-odt30"
  551. # + for SCO OpenServer 5.0 (OSR5), "make sco32v500"
  552. # + for SCO OpenServer 5.0 (OSR5) with networking, "make sco32v500net"
  553. # + for SCO OpenServer 5.0 (OSR5), gcc, "make sco32v500gcc"
  554. # + for SCO OpenServer 5.0 (OSR5), gcc, with networking, "make sco32v500netgcc"
  555. # + for SCO OpenServer 5.0 (OSR5), as above, ELF, "make sco32v500netgccelf"
  556. # + for SCO OpenServer 5.0.2, use "make sco32v502xxx" entries as above.
  557. # + for SCO OpenServer 5.0.4, use "make sco32v504xxx" entries as above.
  558. # + for SCO OpenServer 5.0.5, use "make sco32v505xxx" entries as above.
  559. #     Use the sco32v505udkxxx entries if you have the UDK rather than /bin/cc.
  560. # + for SCO OpenServer 5.0.6, use "make sco32v506xxx" entries as above.
  561. # + for SCO OpenServer 5.0.6a,use "make sco32v506axxx" entries as above.
  562. # ? for SCO (Univel) UnixWare 1.x, "make unixware" or "make unixwarenetc".
  563. #     If there are problems with this in C-K 7+ see notes at unixware entry.
  564. # + for SCO UnixWare 2.0.x, "make uw20"
  565. # + for SCO UnixWare 2.1.0, "make uw21"
  566. # + for SCO UnixWare 2.1.3, "make uw213"
  567. # + for SCO UnixWare 7, "make uw7"
  568. # + for SCO UnixWare 7 with IKSD support, "make uw7iksd" or "make uw7iksdudk"
  569. # + for SCO UnixWare 7 with OpenSSL, "make uw7ssl"
  570. # + for SCO (Caldera) Open UNIX 8, "make ou8"
  571. # + for Sharp Zaurus SL5500 PDA, "make sl5500".
  572. # ? for Sequent with DYNIX/ptx 1.2.1, "make dynixptx12"
  573. # ? for Sequent with DYNIX/ptx 1.3 or 1.4 with TCP/IP, "make dynixptx13"
  574. # ? for Sequent with DYNIX/ptx 2.0 or 2.1 with TCP/IP, "make dynixptx20"
  575. #     or "dynixptx20c"
  576. # + for Sequent with DYNIX/ptx 2.1.6 on i486, "dynixptx216c"
  577. # ? for Sequent with DYNIX/ptx V4.1.3 with TCP/IP, "make dynixptx41c"
  578. # + for Sequent with DYNIX/ptx V4.4.2 with TCP/IP, "make dynixptx44"
  579. # ? for Sequent Balance 8000 or B8 with DYNIX 3.0.xx, "make dynix3"
  580. #    or "make dynix3noacu"
  581. # ? for Sequent Symmetry S81 with DYNIX 3.0.xx, "make dynix3"
  582. # ? for Sequent DYNIX 3.1.xx, "make dynix31" or "make dynix31c"
  583. # + for Siemens/Nixdorf SINIX-L Intel V5.41, "make sinix541i"
  584. # + for Siemens/Nixdorf SINIX-N MIPS V5.42, "make sinix542"
  585. # + for Siemens/Nixdorf SINIX-Z Intel V5.42, "make sinix542i"
  586. # + for Siemens/Nixdorf Reliant UNIX V5.43, "make sni543"
  587. # + for Siemens/Nixdorf Reliant UNIX V5.44, "make sni544"
  588. # ? for Silicon Graphics Iris System V IRIX 3.2 or earlier, "make iris"
  589. # ? for Silicon Graphics Sys V R3 with IRIX 3.3 or later, "make sys5r3"
  590. # ? for Silicon Graphics Iris Indigo with IRIX 4.0 or 5.0, "make irix40" or
  591. #     (to include Yellow Pages and Curses) "make irix40ypc"
  592. # ? for Silicon Graphics Iris Indigo or Elan with IRIX 4.0.x with microcode
  593. #     optimization and -O4, "make irix40u" or "irix40uc" (and read notes
  594. #     accompanying these entries).
  595. # + for Silicon Graphics IRIX 5.1, "make irix51" or "irix51x" (no optimize)
  596. # + for Silicon Graphics IRIX 5.2, "make irix52"
  597. # + for Silicon Graphics IRIX 5.3, "make irix53" or "irix53x" (no optimize)
  598. # + for Silicon Graphics IRIX 6.0, "make irix60".
  599. # + for Silicon Graphics IRIX 6.2, "make irix62".
  600. # + for Silicon Graphics IRIX 6.3, "make irix63".
  601. # + for Silicon Graphics IRIX 6.4, "make irix64" or "make irix64gcc".
  602. # + for Silicon Graphics IRIX 6.5, "make irix65".
  603. # + for SGI IRIX 6.5.5 (new company name) "make irix65"
  604. # ? for Solaris 2.0-2.3 on SPARC or Intel, SunPro CC, "make solaris2x",
  605. # ?   or to add SunLink X.25 8.0x support, "make solaris2x25".
  606. # + for Solaris 2.4 build with gcc, "make solaris24g".
  607. # + for Solaris 2.0-2.3 on SPARC or Intel, GNU CC, "make solaris2xg".
  608. # + for Solaris 2.4 with X.25, "make solaris24x25".
  609. # + for Solaris 2.5 on SPARC or Intel, SunPro CC, "make solaris25".
  610. # +   or to add SunLink X.25 8.0x support, "make solaris25x25".
  611. # + for Solaris 2.5 on SPARC or Intel, GNU CC, "make solaris25g".
  612. # + for Solaris 2.6 on SPARC or Intel, "make solaris26".
  613. # + for Solaris 7 on SPARC or Intel, SunPro CC, "make solaris7".
  614. # + for Solaris 7 on SPARC or Intel, GNU CC, "make solaris7g".
  615. # + for Solaris 8 on SPARC or Intel, SunPro CC, "make solaris8".
  616. # + for Solaris 8 on SPARC or Intel, GNU CC, "make solaris8g".
  617. # + for Solbourne 4/500 with OS/MP 4 "make sunos4"
  618. # + for Solbourne 4/500 with OS/MP 4.1 "make sunos41" or "make sunos41c"
  619. # ? for SONY NEWS with NEWS-OS 4.0.1C, "make sonynews"
  620. # ? for SONY NEWS with NEWS-OS 4.1.2C, "make sonynews"
  621. # ? for Sperry/UNISYS 5000/20, UTS V 5.2 3R1, "make sys5"
  622. # ? for Sperry/UNISYS 5000/30/35/50/55, UTS V 5.2 2.01, "make unisys5r2"
  623. # ? for Sperry/UNISYS 5000/80 with System V R3, "make sys5r3"
  624. # ? for Sperry/UNISYS 5000/95 with System V R3, "make sys5r3"
  625. #     For UNISYS SVR3 it might be necessary to "make sys5r3 KFLAGS=-UDYNAMIC"
  626. # ? for Stardent 1520, "make sys5r3"
  627. # ? for Stratus FTX 2.x, try "make ftx" or else "make sys5r4" or "sys5r4sx"
  628. # + for Stratus FTX 3.x, PA-RISC 1.0 or 2.0, "make ftx" or "make ftxtcp"
  629. # ? for Sun with Sun UNIX 3.5 and gcc, "make sunos3gcc"
  630. # ? for Sun with pre-4.0 SunOS versions, "make bsd" (or appropriate variant)
  631. # ? for Sun with SunOS 4.0, BSD environment, "make sunos4"
  632. # ? for Sun with SunOS 4.0, BSD, with SunLink X.25, make sunos4x25
  633. # + for Sun with SunOS 4.1 or 4.1.1, BSD environment, "make sunos41"
  634. #     or "make sunos41c" (curses) or "make sunos41gcc" (compile with gcc)
  635. # + for Sun with SunOS 4.1.x, BSD, with SunLink X.25 7.00 or earlier,
  636. #     "make sunos41x25" or "make sunos41x25c" (curses)
  637. # + for Sun with SunOS 4.1, 4.1.1, AT&T Sys V R3 environment, "make sunos41s5"
  638. # + for Sun with SunOS 4.1.2, "make sunos41" or any of its variations.
  639. #     NOTE:  All SunOS 4.x systems -- Shared libraries are used by default.
  640. #       If this causes problems, add -Bstatic to CFLAGS.
  641. #     NOTE2: When building C-Kermit under SunOS for the BSD universe,
  642. #       but /usr/5bin/cc is ahead of /usr/ucb/cc in your PATH, add
  643. #       "CC=/usr/ucb/cc CC2=/usr/ucb/cc" to the make entry.
  644. #     NOTE3: If an executable built on one type of Sun hardware does not work
  645. #       on another type, rebuild the program from source on the target machine.
  646. #   for Sun with Solaris 1.x use SunOS 4.1 entries.
  647. #   for Sun with Solaris 2.0 and higher use Solaris entries.
  648. # + for Sun SPARC with Linux, "make linux"
  649. # ? for Sun SPARC with OPENSTEP/Mach 4.1, "make nextquadfat"
  650. # ? for Sun SPARC with OPENSTEP/Mach 4.2, "make openstep42"
  651. # - for Tandy 16/6000 with Xenix 3.0, "make trs16" (C-Kermit 7.0 is too big)
  652. # ? for Tektronix 6130/4132/43xx (e.g.4301) with UTek OS, "make utek"
  653. #     or (for models without hardware flow control), "make uteknohwfc"
  654. # ? for Tektronix XD88 series with UTekV OS, "make utekvr3"
  655. # ? for Tri Star Flash Cache with Esix SVR3.2, "make sys5r3"
  656. # + for Tru-64 UNIX 4.0E, "make tru64-40e"
  657. # + for Tru-64 UNIX 4.0F, "make tru64-40f"
  658. # + for Tru-64 UNIX 4.0G, "make tru64-40g"
  659. # + for Tru-64 UNIX 5.0A, "make tru64-50a"
  660. # + for Tru-64 UNIX 5.1A, "make tru64-51a"
  661. # ? for Unistar, "make sys5"
  662. # ? for Unisys S/4040 68040 CTIX SVR3.2 6.4.1, "make ctix" or "make sys5r3"
  663. # ? for Unisys U5000 UNIX SVR3 6.x, "make sys5r3" or "make sys5r3c"
  664. # ? for Unisys U6000 UNIX SVR4 1.x, "make sys5r4nx" or "make sys5r4nxnetc"
  665. #   for Unisys ... (also see Sperry)
  666. #   for Univel - see UnixWare
  667. #   for Unixware - see SCO
  668. # ? for Valid Scaldstar, "make valid"
  669. # ? for Whitechapel MG01 Genix 1.3, "make white"
  670. # ? for Zilog ZEUS 3.21, "make zilog"
  671. #
  672. # The result should be a runnable program called "wermit" in the current
  673. # directory.  After satisfactory testing, you can rename wermit to "kermit"
  674. # and put it where users can find it.
  675. #
  676. # To remove intermediate and object files, "make clean".
  677. # If your C compiler produces files with an extension other than "o",
  678. # then "make clean EXT=u", "make clean EXT=s", or whatever.
  679. #
  680. # To run lint on the source files, "make lintsun", "make lintbsd",
  681. # "make lints5", as appropriate.
  682. #
  683. # ******************************
  684. # SECURE TARGETS
  685. #
  686. # Beginning with C-Kermit 7.0, secure targets are included, as are the
  687. # source modules (ckuat*.[ch], ck_*.[ch]) needed to build them.  Secure
  688. # target names are like the regular names, but with security features
  689. # indicated by plus (+) signs.  The features are:
  690. #
  691. # krb4     MIT Kerberos IV
  692. # krb5     MIT Kerberos V
  693. # openssl  OpenSSL (SSL/TLS)
  694. # zlib     ZLIB compression for SSL/TLS
  695. # srp      Stanford Secure Remote Password
  696. # pam      PAM
  697. # shadow   Shadow Password File
  698. #
  699. # You can build these targets if you have the Kermit source files and the
  700. # required libraries (Kerberos, OpenSSL, SRP, etc).  See:
  701. #   http://www.columbia.edu/kermit/security.html 
  702. # for specific details regarding supported versions.
  703. #
  704. # The following symbols are used to specify library and header file locations
  705. # Redefine them to the values used on your system by:
  706. # . editing this file
  707. # . defining the values on the command line
  708. # . defining the values in the environment and use the -e option
  709. #
  710. K4LIB=-L/usr/kerberos/lib
  711. K4INC=-I/usr/kerberos/include
  712. K5LIB=-L/usr/kerberos/lib
  713. K5INC=-I/usr/kerberos/include
  714. SRPLIB=-L/usr/local/lib
  715. SRPINC=-I/usr/local/include
  716. SSLLIB=-L/usr/local/ssl/lib
  717. SSLINC=-I/usr/local/ssl/include
  718. #
  719. # aix41+krb5+krb4:                    IBM AIX 4.1 with Kerberos IV and V
  720. # aix43gcc+krb5+krb4:                 IBM AIX 4.3 built with gcc, ditto
  721. # aix43gcc+krb5+krb4+openssl:         Ditto, plus SSL/TLS
  722. # irix6x+krb5:
  723. # irix65+krb5:
  724. # linux+krb5:
  725. # linux+krb5+krb4:
  726. # linux+srp:
  727. # linux+srp+pam:
  728. # linux+srp+gmp:
  729. # linux+srp+gmp+no-des:
  730. # linux+srp+gmp-export:
  731. # linux+srp+gmp+pam:
  732. # linux+shadow+pam:
  733. # linux+openssl:
  734. # linux+openssl+shadow:
  735. # linux+openssl+zlib+shadow+pam:
  736. # linux+srp+openssl:
  737. # linux+krb5+krb4+srp:
  738. # linux+krb5+krb4+srp+openssl:
  739. # linux+krb5+krb4+openssl:
  740. # linux+krb5+krb4+openssl+shadow:
  741. # linux+krb5+krb4+openssl+zlib+shadow:
  742. # linux+krb5+krb4+srp-export:
  743. # linux+krb5+krb4+srp+pam:
  744. # linux+krb5+krb4+srp+openssl+pam-debug:
  745. # linux+krb5+krb4+srp+openssl+pam:
  746. # linux+krb5+krb4+srp+openssl+zlib+pam:
  747. # linux+krb5+openssl+zlib+shadow+pam:
  748. # solaris2x+krb4:  
  749. # solaris2xg+krb4:
  750. # solaris2xg+openssl+pam+shadow:
  751. # solaris2xg+openssl+zlib+pam+shadow:
  752. # solaris2xg+krb5+krb4+openssl+shadow:
  753. # solaris25+krb4:
  754. # solaris25g+krb4:
  755. # solaris26g+openssl:
  756. # solaris8g+openssl+zlib+pam+shadow:
  757. # solaris8g+krb4:
  758. # sunos41gcc+krb4:                    SunOS 4.1 built with gcc with Kerberos IV
  759. # sunos41gcc+openssl:                 SunOS 4.1 built with gcc with OpenSSL
  760. # sunos41gcc+krb4+openssl:            ...with Kerberos IV and OpenSSL
  761. # sunos41gcc+krb4+openssl+zlib:       ditto, plus ZLIB compression
  762. # sunos41gcc+krb4+srp+openssl+zlib:   ditto, plus SRP
  763. # sunos41gcc+srp+openssl+zlib:        
  764. # uw7ssl
  765. #
  766. # redhat71:
  767. # Default Red Hat 7.1 full install includes krb5, openssl, shadow, pam, zlib
  768. #
  769. ##############################################################################
  770. #
  771. # NOTES FOR V7 AND 2.X BSD (BASED ON VERSION 4E OF C-KERMIT, 1987):
  772. #
  773. # For Unix Version 7, several variables must be defined to the values
  774. # associated with your system.  BOOTNAME=/edition7 is the kernel image on
  775. # okstate's Perkin-Elmer 3230.  Others will probably be /unix.  PROCNAME=proc
  776. # is the name of the structure assigned to each process on okstate's system.
  777. # This may be "_proc" or some other variation.  See <sys/proc.h> for more
  778. # info on your systems name conventions.  NPROCNAME=nproc is the name of a
  779. # kernel variable that tells how many "proc" structures there are.  Again
  780. # this may be different on your system, but nproc will probably be somewhere.
  781. # The variable NPTYPE is the type of the nproc variable -- int, short, etc.
  782. # which can probably be gleaned from <sys/param.h>.  The definition of DIRECT
  783. # is a little more complicated.  If nlist() returns, for "proc" only, the
  784. # address of the array, then you should define DIRECT as it is below.  If
  785. # however, nlist() returns the address of a pointer to the array, then you
  786. # should give DIRECT a null definition (DIRECT= ).  The extern declaration in
  787. # <sys/proc.h> should clarify this for you.  If it is "extern struct proc
  788. # *proc", then you should NOT define DIRECT.  If it is "extern struct proc
  789. # proc[]", then you should probably define DIRECT as it is below.  See
  790. # ckuv7.hlp for further information.
  791. #
  792. # For 2.9 BSD, the makefile may use pcc rather than cc for compiles; that's
  793. # what the CC and CC2 definitions are for (the current version of the
  794. # makefile uses cc for both; this was tested in version 4E of C-Kermit and
  795. # worked OK on the DEC Pro 380, but all bets are off for version 5A).  2.9
  796. # support basically follows the 4.1 path.  Some 2.9 systems use "dir.h" for
  797. # the directory header file, others will need to change this to "ndir.h".
  798. #
  799. # The v7 and 2.9bsd versions assume I&D space on a PDP-11.  When building
  800. # C-Kermit for v7 on a PDP-11, you should probably add the -i option to the
  801. # link flags.  Without I&D space, overlays will be necessary (if available),
  802. # or code segment mapping (a`la Pro/Venix) if that's available.
  803. #
  804. # C-Kermit 5A (and 6.0?) can be built for 2.10 and 2.11BSD, using overlays,
  805. # but a separate makefile is used because this one is too big.
  806. #
  807. ##############################################################################
  808. #
  809. # V7-specific variables.
  810. # These are set up for Perkin-Elmer 3230 V7 Unix:
  811. #
  812. PROC=proc
  813. DIRECT=
  814. NPROC=nproc
  815. NPTYPE=int
  816. BOOTFILE=/edition7
  817. #
  818. # ( For old Tandy TRS-80 Model 16A or 6000 V7-based Xenix, use PROC=_proc,
  819. #   DIRECT=-DDIRECT, NPROC=_Nproc, NPTYPE=short, BOOTFILE=/xenix )
  820. #
  821. ###########################################################################
  822. #
  823. #  Compile and Link variables:
  824. #
  825. #  EXT is the extension (file type) for object files, normally o.
  826. #  See MINIX entry for what to do if another filetype must be used.
  827. #
  828. EXT=o
  829. #LNKFLAGS=
  830. SHAREDLIB=
  831. CC= cc
  832. CC2= cc
  833. MAKE= make
  834. SHELL=/bin/sh
  835.  
  836. ###########################################################################
  837. # SAMPLE INSTALLATION SCRIPT
  838. #
  839. # Modify to suit your own computer's file organization and permissions.  If
  840. # you don't have write access to the destination directories, "make install"
  841. # fails.  In most cases, a real installation also requires you to chown /
  842. # chgrp the Kermit binary for the UUCP lockfile and/or tty devices, and
  843. # perhaps also to chmod +s the corresponding permission fields.
  844. #
  845. # Default binary, man, and doc directories are supplied below.  You can
  846. # override them in your 'make' command.  Examples:
  847. #
  848. #   make install                                   # Accept defaults.
  849. #   make "INFODIR=/usr/share/lib/kermit" install   # Override INFODIR default.
  850. #   make "BINARY=krbmit" install                   # Install Kerberized binary.
  851. #
  852. # You can also build and install in one step, e.g.:
  853. #
  854. #   make solaris8 install
  855. #
  856. WERMIT = makewhat
  857. BINARY = wermit
  858. DESTDIR = 
  859. BINDIR = /usr/local/bin
  860. MANDIR = /usr/man/man1
  861. MANEXT = 1
  862. SRCDIR =
  863. INFODIR =
  864. CERTDIR =
  865.  
  866. TEXTFILES = COPYING.TXT ckcbwr.txt ckubwr.txt ckuins.txt ckccfg.txt \
  867.         ckcplm.txt ckermit.ini ckermod.ini ckermit70.txt ckermit80.txt
  868.  
  869. ALL = $(WERMIT)
  870.  
  871. all: $(ALL)
  872.  
  873. .c.o:
  874.     $(CC) $(CFLAGS) -DKTARGET=\"$(KTARGET)\" -c $<
  875.  
  876. #Clean up intermediate and object files
  877. clean:
  878.     @echo 'Removing object files...'
  879.     -rm -f ckcmai.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) ckuus2.$(EXT) \
  880. ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) ckcpro.$(EXT) ckcfns.$(EXT) \
  881. ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) ckucon.$(EXT) ckutio.$(EXT) \
  882. ckufio.$(EXT) ckudia.$(EXT) ckuscr.$(EXT) ckwart.$(EXT) ckuusx.$(EXT) \
  883. ckuusy.$(EXT) ckcnet.$(EXT) ckuus6.$(EXT) ckuus7.$(EXT) ckusig.$(EXT) \
  884. ckucns.$(EXT) ckcmdb.$(EXT) ckuath.$(EXT) ckctel.$(EXT) ckclib.$(EXT) \
  885. ckcuni.$(EXT) ck_crp.$(EXT) ck_ssl.$(EXT) ckupty.$(EXT) ckcftp.$(EXT) \
  886. ckcpro.c wart
  887.  
  888. # Install C-Kermit after building -- IMPORTANT: Read the instructions above
  889. # (SAMPLE INSTALLATION SCRIPT).  For secure versions, note the that binary
  890. # generated by this makefile might have a different name, like krbmit.  Also
  891. # note that ca_certs.pem file should be installed in the appropriate place
  892. # for your OpenSSL library, e.g.:
  893. #   cp ca_certs.pem /usr/local/ssl/
  894. #   cp ca_certs.pem /usr/share/ssl/
  895. #
  896. # To make sure 'man' notices the new source file and doesn't keep
  897. # showing the old formatted version, remove the old formatted version,
  898. # something like this:
  899. #        rm -f $(MANDIR)/../cat$(MANEXT)/kermit.$(MANEXT)
  900. # or this (which requires CATDIR to be defined):
  901. #        rm -f $(CATDIR)/kermit.$(MANEXT)
  902. install:
  903.     @if test 1 -eq 1; then \
  904.         echo "DESTDIR=$(DESTDIR)" ; \
  905.         if test "$(DESTDIR)" != ""; then \
  906.             if test -d $(DESTDIR); then \
  907.             echo  "$(DESTDIR) exists..." ; \
  908.         else \
  909.             echo "Creating $(DESTDIR)..." ; \
  910.             mkdir $(DESTDIR) || exit 1 ; \
  911.         fi ; \
  912.         chmod 755 $(DESTDIR) || exit 1 ; \
  913.         fi ; \
  914.         echo "BINARY=$(BINARY)" ; \
  915.         if test -f $(BINARY) ; then \
  916.         ls -l $(BINARY) ; \
  917.         else \
  918.             echo "?$(BINARY) not found" ; \
  919.             exit 1; \
  920.         fi ; \
  921.         if test "$(DESTDIR)$(BINDIR)" = ""; then \
  922.         echo "Binary directory not specified" ; \
  923.         exit 1; \
  924.         fi ; \
  925.         if test -d $(DESTDIR)$(BINDIR); then \
  926.         echo   "$(DESTDIR)$(BINDIR) exists..." ; \
  927.         else \
  928.         echo "Creating $(DESTDIR)$(BINDIR)/..." ; \
  929.         mkdir     $(DESTDIR)$(BINDIR) || exit 1 ; \
  930.         chmod 755 $(DESTDIR)$(BINDIR) ; \
  931.         fi ; \
  932.         cp $(BINARY) $(DESTDIR)$(BINDIR)/kermit || exit 1 ; \
  933.         chmod 755    $(DESTDIR)$(BINDIR)/kermit || exit 1 ; \
  934.         rm -f        $(DESTDIR)$(BINDIR)/kermit-sshsub ; \
  935.         ln -s        $(DESTDIR)$(BINDIR)/kermit \
  936.              $(DESTDIR)$(BINDIR)/kermit-sshsub || exit 1 ; \
  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 "$(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 "$(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 linux, make hpux1100, make aix43, make solaris8.
  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 -DBSD42HACK \
  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.     -DBSD42HACK $(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.     -DBSD42HACK $(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.     -DBSD42HACK -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. #FreeBSD 4.5, like 4.3 and 4.4.
  1541. freebsd45:
  1542.     @echo 'Making C-Kermit $(CKVER) for FreeBSD 4.3 with ncurses...'
  1543.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1544.     "CFLAGS= -DBSD44 -DCK_NCURSES -DCK_NEWTERM -DTCPSOCKET -DNOCOTFMC \
  1545.     -DFREEBSD4 -DUSE_UU_LOCK -DFNFLOAT -funsigned-char -DTPUTSARGTYPE=int \
  1546.     -DFREEBSD41 -DFREEBSD42 -DFREEBSD43 -DFREEBSD44 -DFREEBSD45 \
  1547.     -DUSE_STRERROR $(KFLAGS) -O -pipe" \
  1548.     "LIBS= -lncurses -lcrypt -lutil -lm $(LIBS)"
  1549.  
  1550. freebsd44+srp+openssl:
  1551.     @echo 'Making C-Kermit $(CKVER) for FreeBSD 4.3 with SRP,SSL...'
  1552.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  1553.     "CFLAGS= -DBSD44 -DCK_NCURSES -DCK_NEWTERM -DTCPSOCKET -DNOCOTFMC \
  1554.     -DFREEBSD4 -DFREEBSD41 -DFREEBSD42 -DFREEBSD43 -DFREEBSD44 \
  1555.     -DCK_AUTHENTICATION -DCK_SRP \
  1556.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL \
  1557.     -DCK_CURSES -DTCPSOCKET  \
  1558.     $(SRPINC) $(SSLINC) $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  1559.     "LIBS = $(SRPLIB) $(SSLLIB) \
  1560.     -lncurses -ltermcap -lsrp -lssl -lkrypto -lcrypto \
  1561.     -lcrypt "
  1562.  
  1563. #NetBSD - all versions - with curses, not ncurses.
  1564. #Some builds seem to need KFLAGS=-DTPUTSFNTYPE=int, others don't.
  1565. #(Only to get rid of a warning -- the binaries are identical.)
  1566. netbsd:
  1567.     @echo Making C-Kermit $(CKVER) for NetBSD with curses...
  1568.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1569.     "CFLAGS= -DBSD44 -DCK_CURSES -DTCPSOCKET -DUSE_STRERROR -DTPUTSISVOID \
  1570.     -DCK_DTRCD -DCK_DTRCTS -DTPUTSARGTYPE=int -DFNFLOAT $(KFLAGS) -O" \
  1571.     "LIBS= -lcurses -lcrypt -lm $(LIBS)"
  1572.  
  1573. #NetBSD 1.5.x in which the return type of the function pointer that is the 
  1574. #third argument of tputs() was changed from void to int...  The regular NetBSD
  1575. #target builds OK here but this one eliminates the (harmless) warning.
  1576. netbsd15:
  1577.     @echo Making C-Kermit $(CKVER) for NetBSD with curses...
  1578.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1579.     "CFLAGS= -DBSD44 -DCK_CURSES -DTCPSOCKET -DUSE_STRERROR -DNETBSD15 \
  1580.     -DCK_DTRCD -DCK_DTRCTS -DTPUTSARGTYPE=int -DFNFLOAT $(KFLAGS) -O" \
  1581.     "LIBS= -lcurses -lcrypt -lm $(LIBS)"
  1582.  
  1583. #NetBSD with ncurses requested explicitly rather than curses-which-is-ncurses
  1584. netbsdn:
  1585.     @echo Making C-Kermit $(CKVER) for NetBSD with ncurses...
  1586.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1587.     "CFLAGS= -DBSD44 -DCK_CURSES -DTCPSOCKET -DNOCOTFMC -DCK_DTRCD \
  1588.     -DCK_DTRCTS -DFNFLOAT -DUSE_STRERROR -DTPUTSISVOID -DTPUTSARGTYPE=int \
  1589.     $(KFLAGS) -O" \
  1590.     "LIBS= -L/usr/pkg/lib -lncurses -lcrypt -lm $(LIBS)"
  1591.  
  1592. #OpenBSD - All versions.
  1593. #Uses ncurses as its curses so use -ltermlib, not -ltermcap
  1594. #But it doesn't use uu_lock() which was introduced in OpenBSD 2.3.
  1595. #For that use the next entry.
  1596. #Add -DMAINTYPE=int if you get complaints about main: return type is not int.
  1597. openbsdold:
  1598.     @echo Making C-Kermit $(CKVER) for OpenBSD...
  1599.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1600.     "CFLAGS= -DBSD44 -DCK_CURSES -DCK_NEWTERM -DTCPSOCKET -DOPENBSD \
  1601.     -DFNFLOAT -DNDSYSERRLIST $(KFLAGS) -O" "LIBS= -lcurses -ltermlib -lm"
  1602.  
  1603. #OpenBSD 2.3 or later
  1604. #Add -DMAINTYPE=int if you get complaints about main: return type is not int.
  1605. #For C-Kermit 8.0 (Christian Weisgerber):
  1606. # -ltermlib removed (presumably because -lcurses==ncurses already includes it)
  1607. # -DUSE_UU_LOCK and -lutil added for uu_lock()
  1608. # -DNDSYSERRLIST changed to -DUSE_STRERROR
  1609. #If this gives you trouble use the previous entry.
  1610. openbsd:
  1611.     @echo Making C-Kermit $(CKVER) for OpenBSD 2.3 or later...
  1612.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1613.     "CFLAGS= -DBSD44 -DCK_CURSES -DCK_NEWTERM -DTCPSOCKET -DOPENBSD \
  1614.     -DUSE_UU_LOCK -DFNFLOAT -DUSE_STRERROR $(KFLAGS) -O" \
  1615.     "LIBS= -lcurses -lutil -lm"
  1616.  
  1617. # make 386bsd 0.0new, posix
  1618. # for  386bsd 0.1.24, change /usr/include/termios.h to #define NCCS if
  1619. #  _POSIX_SOURCE is #defined. (source: lewine, posix prgmrs guide, o`reilly)
  1620. #NOTE: Lock directory is /var/spool/lock.  Formerly, it was /var/spool/uucp,
  1621. #but reportedly <wjones@halcyon.com> that was due to a typo in 'man tip'.
  1622. 386bsd:
  1623.     @echo 'Making C-Kermit $(CKVER) for jolix 386BSD 0.0new and 0.1.24...'
  1624.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1625.     "CFLAGS= -DPOSIX -DSETREUID -DPIDSTRING -DUSLEEP \
  1626.     -D_386BSD -DCK_CURSES -DTCPSOCKET \
  1627.     -DLOCK_DIR=\\\"/var/spool/lock\\\" \
  1628.     $(KFLAGS) -O" "LNKFLAGS = -s" "LIBS = -lcurses -ltermcap"
  1629.  
  1630. #Mac OS X 1.0 (Rhapsody, Darwin) -- TCP/IP but no curses.
  1631. macosx10:
  1632.     @echo Making C-Kermit $(CKVER) for `uname -s`...
  1633.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1634.     "CFLAGS= -DMACOSX10 -DTCPSOCKET -O $(KFLAGS)"
  1635.  
  1636. #Mac OS X 1.0 (Rhapsody, Darwin) -- TCP/IP and curses.
  1637. #Note: curses must be obtained separately.  See next entry for ncurses.
  1638. #Add "LIBS = -lcurses -ltermcap" if necessary (but reportedly it is not).
  1639. macosx10c:
  1640.     @echo Making C-Kermit $(CKVER) for `uname -s` + curses...
  1641.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1642.     "CFLAGS= -DMACOSX10 -DCK_CURSES -DTPUTSFNTYPE=void -DTPUTSISVOID \
  1643.     -DTCPSOCKET -O $(KFLAGS)"
  1644.  
  1645. #Mac OS X 1.0 (Rhapsody, Darwin) -- TCP/IP and ncurses.
  1646. #Note: ncurses must be obtained separately.
  1647. #In the event of trouble with this one try the next one.
  1648. macosx10nc:
  1649.     @echo Making C-Kermit $(CKVER) for `uname -s` + ncurses...
  1650.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1651.     "CFLAGS= -DMACOSX10 -DCK_NCURSES -DTCPSOCKET -O $(KFLAGS) " \
  1652.     "LIBS= -lncurses $(LIBS)"
  1653.  
  1654. #The problem here is that if curses.h also exists, it conflicts with
  1655. #ncurses.h and and we have fatal errors.  If this happens to you, then
  1656. #try this entry.
  1657. macosx10ncx:
  1658.     @echo Making C-Kermit $(CKVER) for `uname -s` + ncurses...
  1659.     @rm -f ./curses.h; touch ./curses.h
  1660.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1661.     "CFLAGS= -DMACOSX10 -DCK_NCURSES -DTCPSOCKET -I. -O $(KFLAGS) " \
  1662.     "LIBS= -lncurses $(LIBS)"
  1663.     @rm -f ./curses.h
  1664.  
  1665. #Acorn RISCiX, based on ...
  1666. #Berkeley Unix 4.2 or 4.3 with lock directory /usr/spool/uucp/LCK/LCK..ttyxx,
  1667. #but without acucntrl program
  1668. riscix:
  1669.     @echo Making C-Kermit $(CKVER) for RISCiX, /usr/spool/uucp/LCK..ttyxx
  1670.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  1671.         "CFLAGS= -DBSD42 -DBSD4 -DRISCIX -DNOCSETS \
  1672.         -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DDIRENT -DCK_CURSES \
  1673.         -DMAXSP=9024 -DMAXRD=9024 -DSBSIZ=9050 -DRBSIZ=9050 \
  1674.         -DDFTTY=\\\"/dev/serial\\\" -DNOCSETS -DNOCYRIL \
  1675.         -DNOANSI -w -O2 -fomit-frame-pointer" \
  1676.         "LIBS= -lcurses -ltermcap " \
  1677.         "CC= /usr/ucb/cc" \
  1678.         "CC2= /usr/ucb/cc"
  1679.  
  1680. #Acorn RISCiX, as above, but using gcc
  1681. riscix-gcc:
  1682.     @echo Making C-Kermit $(CKVER) for RISCiX, /usr/spool/uucp/LCK..ttyxx
  1683.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  1684.         "CFLAGS= -DBSD42 -DBSD4 -DRISCIX -DNOCSETS \
  1685.         -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DDIRENT -DCK_CURSES \
  1686.         -DMAXSP=9024 -DMAXRD=9024 -DSBSIZ=9050 -DRBSIZ=9050 \
  1687.         -DDFTTY=\\\"/dev/serial\\\" -DNOCSETS -DNOCYRIL \
  1688.         -DNOANSI -w -O2 -fomit-frame-pointer" \
  1689.         "LIBS= -lcurses -ltermcap " \
  1690.         "CC= gcc -mbsd" \
  1691.         "CC2= gcc -mbsd"
  1692.  
  1693. #Convergent CTIX 6.4.1
  1694. ctix:
  1695.     @echo 'Making C-Kermit $(CKVER) for Convergent CTIX 6.4.1'
  1696.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  1697.     "CFLAGS= -DSVR3 -DDIRENT -DTCPSOCKET -DHDBUUCP -DCK_CURSES \
  1698.     -DNONAWS -DNOLEARN $(KFLAGS) -XO" \
  1699.     "LNKFLAGS=-s" "LIBS=-lsocket -lcurses -lc_s"
  1700.     mcs -d wermit
  1701.  
  1702. # The following makefile entry should work for any Harris Night Hawk system
  1703. # (either 88k or 68k based) running release 6.1 or later of the CX/UX
  1704. # operating system. This is a POSIX and ANSI-C compliant system which also
  1705. # supports BSD networking. (Earlier CX/UX releases will probably work with
  1706. # sys5r3, but this has not been verified).
  1707. #
  1708. cx_ux:
  1709.     @echo Making C-Kermit $(CKVER) for Harris Night Hawk CX/UX 6.1 or later
  1710.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  1711.     "CFLAGS=-DPOSIX -DTCPSOCKET -DHDBUUCP -DPID_T=pid_t -DWAIT_T=int \
  1712.     -Dd_ino=d_fileno -DUID_T=uid_t -DGID_T=gid_t $(KFLAGS) -Xa \
  1713.     -O3 -g" "LNKFLAGS=-O3"
  1714.  
  1715. #Intergraph Clipper, CLIX, job control, HDB UUCP.
  1716. clix:
  1717.     @echo 'Making C-Kermit $(CKVER) for Intergraph CLIX...'
  1718.     $(MAKE) wermit "CC=acc" "CC2=acc" KTARGET=$${KTARGET:-$(@)} \
  1719.     "CFLAGS= -w -DSVR3 -DCLIX -DDIRENT -DHDBUUCP -DNOSYSLOG -DUSE_MEMCPY \
  1720.     -DNOGETUSERSHELL -DNOREALPATH -DNOLEARN $(KFLAGS) -O" \
  1721.     "LNKFLAGS=" "LIBS= -lbsd"
  1722.  
  1723. #As above + TCP/IP...
  1724. clixnet:
  1725.     @echo 'Making networked C-Kermit $(CKVER) for Intergraph CLIX...'
  1726.     $(MAKE) wermit "CC=acc" "CC2=acc" KTARGET=$${KTARGET:-$(@)} \
  1727.     "CFLAGS= -w -DSVR3 -DCLIX -DDIRENT -DHDBUUCP -DNOSYSLOG -DUSE_MEMCPY \
  1728.     -DTCPSOCKET -DNOGETUSERSHELL -DNOLEARN -DNOREALPATH $(KFLAGS) -O" \
  1729.     "LNKFLAGS=" "LIBS= -lbsd"
  1730.  
  1731. #Mark Williams Coherent 286 or 386 on IBM PC family.
  1732. #There is a 64K limit on program size, so this is a command-line only version.
  1733. coherent:
  1734.     $(MAKE) "CFLAGS = -O -DCOHERENT -DNOANSI -DNOICP -DNOSETKEY -DNOLEARN \
  1735.     -DNOCSETS -DNOHELP -DNODIAL -DNOSCRIPT -DNODEBUG -DNOTLOG -DNOXMIT \
  1736.     -DNOMSEND -DNOFRILLS -DNOSYSIOCTLH -DSELECT_H $(KFLAGS) -VSUVAR" \
  1737.     -DNOFLOAT KTARGET=$${KTARGET:-$(@)} wermit
  1738.  
  1739. #Mark Williams Coherent 386 on IBM PC family.
  1740. #This will make a "minimum interactive" version - no scripts,
  1741. #no character sets, no help, no dial, no debug/transaction logging, no
  1742. #transmit, msend, mail, type, etc.
  1743. coherentmi:
  1744.     $(MAKE) "CFLAGS = -O -DCOHERENT -DNOANSI -DNOSETKEY -DNOLEARN \
  1745.     -DNOSHOW -DNOCSETS -DNOHELP -DNODIAL -DNOSCRIPT -DNODEBUG -DNOTLOG \
  1746.     -DNOXMIT -DNOMSEND -DNOFRILLS -DNOSYSIOCTLH -DNOSERVER -DNOUUCP \
  1747.     -DNOSPL -DNOPUSH -DNOMDMHUP -DNOJC -DNOFDZERO -DNOESCSEQ -DNOFLOAT \
  1748.     -DNOCMDL $(KFLAGS) -VSUVAR -DSELECT_H" KTARGET=$${KTARGET:-$(@)} \
  1749.     wermit
  1750.  
  1751. #Mark Williams Coherent 386 on IBM PC/AT family.
  1752. coherentmax:
  1753.     $(MAKE) "CFLAGS = -O -DCOHERENT -DNOANSI -DSELECT_H -DNOLEARN \
  1754.     -DNOFLOAT -DNOSYSIOCTLH $(KFLAGS) -VSUVAR" "LNKFLAGS = -O -s" \
  1755.     KTARGET=$${KTARGET:-$(@)} wermit
  1756.  
  1757. #Mark Williams Coherent 386 4.2.  Includes curses but not TCP/IP.
  1758. #Requires updates to the 4.2.10 compiler; the regular compiler fails to
  1759. #to handle "complex expressions".  NOFLOAT is so it can work on old PCs
  1760. #without floating-point hardware.
  1761. coherent42:
  1762.     $(MAKE) "CFLAGS = -T500000 -DNOFLOAT -DCOHERENT -DNOANSI -DSELECT \
  1763.     -DNOSYSLOG -DDIRENT -DCK_CURSES -DCK_NEWTERM -DCK_WREFRESH -VSUVAR \
  1764.     -DDCLGETCWD -DNOSYSIOCTLH -DNOINITGROUPS -DNOSYMLINK -DSELECT_H \
  1765.     -DDCLGETCWD -O $(KFLAGS)" \
  1766.     "LNKFLAGS = -O -s" KTARGET=$${KTARGET:-$(@)} \
  1767.     "LIBS  = -lsocket -lcurses" wermit
  1768.  
  1769. #DEC Ultrix 2.x
  1770. # Add -O, -DDYNAMIC, -s, etc, if they work.
  1771. ultrix2x:
  1772.     @echo Making C-Kermit $(CKVER) for Ultrix 2.x ...
  1773.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  1774.     "CFLAGS= -DBSD4 -DTCPSOCKET -DDU2 -DNOGETUSERSHELL $(KFLAGS)"
  1775.  
  1776. du2:
  1777.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET-$(@)} ultrix2x
  1778.  
  1779. #DEC Ultrix 3.0 and 3.1
  1780. ultrix30:
  1781.     @echo Making C-Kermit $(CKVER) for Ultrix 3.0...
  1782.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  1783.     "CFLAGS= -DBSD4 -DTCPSOCKET -DDIRENT -DSIG_V -DNOGETUSERSHELL \
  1784.     -DULTRIX3 -DCK_CURSES $(KFLAGS) -O" "LIBS= -lcurses -ltermcap"
  1785.  
  1786. du3:
  1787.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET-$(@)} ultrix30
  1788.  
  1789. ultrix3x:
  1790.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET-$(@)} ultrix30
  1791.  
  1792. #DEC Ultrix 4.0 or 4.1 on DECstation, VAXstation, VAX, etc.
  1793. ultrix40:
  1794.     @echo Making C-Kermit $(CKVER) for Ultrix 4.0 or 4.1...
  1795.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  1796.     "CFLAGS= -DBSD4 -DTCPSOCKET -DSIG_V -DDU4 -DNOGETUSERSHELL \
  1797.     $(KFLAGS) -Olimit 1450" "LNKFLAGS = -s"
  1798.  
  1799. #DEC Ultrix 4.2-4.5 on DECstation, DECsystem, VAXstation, VAX, etc.
  1800. #Like ultrix40, except now C compiler supports -O2 optimization.
  1801. ultrix42:
  1802.     @echo Making C-Kermit $(CKVER) for Ultrix 4.2 or later...
  1803.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  1804.     "CFLAGS= -DBSD4 -DTCPSOCKET -DSIG_V -DNOGETUSERSHELL $(KFLAGS) \
  1805.     -O2 -Olimit 1750" "LNKFLAGS = -s"
  1806.  
  1807. du42:
  1808.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET-$(@)} ultrix42
  1809.  
  1810. #DEC Ultrix 4.2-4.5 on DECstation, DECsystem, VAXstation, VAX, etc.
  1811. #Like du42, but with curses support added and a couple features.
  1812. ultrix42c:
  1813.     @echo Making C-Kermit $(CKVER) for Ultrix 4.2 or later...
  1814.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  1815.     "CFLAGS= -DBSD4 -DTCPSOCKET -DSIG_V -DNOGETUSERSHELL \
  1816.     -DCK_CURSES -DNOIKSD $(KFLAGS)-G6 -O2 -Olimit 3000 " \
  1817.     "LNKFLAGS = -s" "LIBS= -lcurses -ltermcap"
  1818.  
  1819. ultrix43:
  1820.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=-DULTRIX43 $(KFLAGS)" \
  1821.     KTARGET=$${KTARGET-$(@)} ultrix42c
  1822.  
  1823. ultrix43notcp:
  1824.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=-DULTRIX43 -DNONET $(KFLAGS)" \
  1825.     KTARGET=$${KTARGET-$(@)} ultrix42c
  1826.  
  1827. # NOTE: need -DNODEBUG on MIPS to avoid relocation errors at link time.
  1828. # Actually now (8.0) that we have discovered the -G option maybe debugging 
  1829. # can be put back.
  1830. ultrix44:
  1831.     $(MAKE) "MAKE=$(MAKE)" \
  1832.     "KFLAGS=-DULTRIX44 -G7 -DNODEBUG -DNETPTY -DNO_DEVTTY $(KFLAGS)" \
  1833.     KTARGET=$${KTARGET-$(@)} ultrix42c
  1834.  
  1835. ultrix45:
  1836.     $(MAKE) "MAKE=$(MAKE)" \
  1837.     "KFLAGS=-DULTRIX45 $(KFLAGS)-DNETPTY -DNO_DEVTTY $(KFLAGS)" \
  1838.     KTARGET=$${KTARGET-$(@)} ultrix42c
  1839.  
  1840. du42c:
  1841.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET-$(@)} ultrix42c
  1842.  
  1843. #DEC Ultrix 4.3A or later on DECsystem and DECstation 5000/50, /150 or /260
  1844. #with MIPS R4x00 processor.  The "-mips3" switch generates R4000-specific
  1845. #code, which is faster and more compact, but *won't* run on earlier
  1846. #DECsystems and DECstations.
  1847. ultrix43-mips3:
  1848.     @echo Making C-Kermit $(CKVER) for Ultrix 4.3A or later, R4000 cpu...
  1849.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  1850.     "CFLAGS= -DBSD4 -DTCPSOCKET -DSIG_V -DNOGETUSERSHELL \
  1851.     $(KFLAGS) -O2 -Olimit 1750 -mips3" "LNKFLAGS = -s -mips3"
  1852.  
  1853. du43-mips3:
  1854.     $(MAKE) "MAKE=$(MAKE)" ultrix43-mips3
  1855.  
  1856. #DEC Ultrix 4.3A or later on MIPS R4x000 based systems.
  1857. #Like ultrix43-mips3 but with curses support added
  1858. ultrix43c-mips3:
  1859.     @echo Making C-Kermit $(CKVER) for Ultrix 4.3A or later, R4000 cpu...
  1860.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  1861.     "CFLAGS= -DBSD4 -DTCPSOCKET -DSIG_V -DNOGETUSERSHELL -DCK_CURSES \
  1862.     $(KFLAGS) -O2 -Olimit 3000 -mips3" "LNKFLAGS = -s -mips3" \
  1863.     "LIBS= -lcurses -ltermcap"
  1864.  
  1865. du43c-mips3:
  1866.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET-$(@)} ultrix43c-mips3
  1867.  
  1868. #DEC Ultrix 4.4 on DECstation 5000/50 or /150 with R4000 MIPS processor,
  1869. #or 5000/260 with R4400.  The "-mips3" switch generates R4000-specific code,
  1870. #which is faster and more compact but *won't* run on earlier DECstations.
  1871. ultrix44-mips3:
  1872.     @echo Making C-Kermit $(CKVER) for Ultrix 4.4, R4000 cpu ...
  1873.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  1874.     "CFLAGS= -DBSD4 -DTCPSOCKET -DSIG_V -DNOGETUSERSHELL \
  1875.     $(KFLAGS) -O2 -Olimit 1450 -mips3" "LNKFLAGS = -s -mips3"
  1876.  
  1877. du44-mips3:
  1878.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET-$(@)} ultrix44c-mips3
  1879.  
  1880. #DEC Ultrix 4.2 on DECstation, VAXstation, VAX, etc, System V R4 environment
  1881. ultrix42s5r4:
  1882.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4 on Ultrix...'
  1883.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  1884.     "CFLAGS = -O2 -Olimit 1500 -DSVR4 -DDIRENT -DHDBUUCP -DNOGETUSERSHELL \
  1885.     -DTCPSOCKET $(KFLAGS)" "LNKFLAGS = -s"
  1886.  
  1887. #OSF/1
  1888. osf:
  1889.     $(MAKE) xermit CC=$(CC) CC2=$(CC2) KTARGET=$${KTARGET:-$(@)} \
  1890.     "CFLAGS= -DBSD4 -DOSF -D_BSD -DTCPSOCKET -DCK_ANSIC -DSIG_V \
  1891.     -DCK_CURSES -DCK_RTSCTS -DFNFLOAT $(KFLAGS)" \
  1892.     "LNKFLAGS = -s" "LIBS = -lbsd -lcurses -ltermcap -lm"
  1893.  
  1894. #DEC OSF/1 V1.0-1.3 on DECstation, VAX, Alpha, or PC.
  1895. dec-osf:
  1896.     $(MAKE) xermit CC=$(CC) CC2=$(CC2) KTARGET=$${KTARGET:-$(@)} \
  1897.     "CFLAGS= -DBSD4 -DOSF -DOSF13 -D_BSD -DTCPSOCKET -DCK_ANSIC -DSIG_V \
  1898.     -DNOREALPATH -DNOIKSD -DCK_CURSES -DCK_RTSCTS -DFNFLOAT -DNODEBUG \
  1899.     -DNOUNICODE $(KFLAGS)" \
  1900.     "LNKFLAGS = -non_shared" "LIBS = -lbsd -lcurses -ltermcap -lm"
  1901.  
  1902. # This one causes "relocation out-of-range" errors in the linker.
  1903. old-dec-osf:
  1904.     @echo Making C-Kermit $(CKVER) for DEC OSF/1 V1.x...
  1905.     @echo If you are building for DEC OSF/1 2.0, please use dec-osf20.
  1906.     @echo Remove or adjust -O2 and/or -Olimit if they cause trouble.
  1907.     $(MAKE) osf KTARGET=$${KTARGET:-$(@)} \
  1908.     "KFLAGS= -O2 -Olimit 2400 $(KFLAGS)"
  1909.  
  1910. #DEC OSF/1 2.0 on Alpha and probably nowhere else.
  1911. #The only difference from OSF/1 is that optimization is omitted.
  1912. #The optimized version gets strange runtime errors, like the PAUSE command
  1913. #not working.  Add "-unsigned" to make all chars unsigned.
  1914. dec-osf20:
  1915.     @echo Making C-Kermit $(CKVER) for DEC OSF/1 V2.0...
  1916.     @echo Optimization omitted because it causes runtime errors.
  1917.     @echo See comments in makefile.
  1918.     $(MAKE) osf KTARGET=$${KTARGET:-$(@)} "KFLAGS= -DOSF20 $(KFLAGS)"
  1919.  
  1920. dec-osf30:
  1921.     @echo Making C-Kermit $(CKVER) for DEC OSF/1 V3.0...
  1922.     $(MAKE) osf KTARGET=$${KTARGET:-$(@)} \
  1923.     "KFLAGS= -DOSF30 -O2 -Olimit 2400 $(KFLAGS)"
  1924.  
  1925. #Digital UNIX 3.2
  1926. # Must compile ckuus[6x].c separately without optimization otherwise
  1927. # the optimizer dumps core - keep CFLAGS here in sync with those from osf.
  1928. du32:
  1929.     @echo Making C-Kermit $(CKVER) for Digital UNIX 3.2...
  1930.     $(MAKE) ckuus6.$(EXT) \
  1931.     "CFLAGS= -DBSD4 -DOSF -D_BSD -DTCPSOCKET -DCK_ANSIC -DSIG_V \
  1932.     -DCK_CURSES -DCK_RTSCTS -DFNFLOAT -DOSF32 -DHDBUUCP $(KFLAGS)"
  1933.     $(MAKE) ckuusx.$(EXT) \
  1934.     "CFLAGS= -DBSD4 -DOSF -D_BSD -DTCPSOCKET -DCK_ANSIC -DSIG_V \
  1935.     -DCK_CURSES -DCK_RTSCTS -DFNFLOAT -DOSF32 -DHDBUUCP $(KFLAGS)"
  1936.     $(MAKE) osf "KFLAGS= -DOSF32 -DHDBUUCP -O2 -Olimit 3200 $(KFLAGS)"
  1937.  
  1938. dec-osf32:
  1939.     $(MAKE) "MAKE=$(MAKE)" du32 KTARGET=$${KTARGET:-$(@)}
  1940.  
  1941. #Digital UNIX 4.0 through 4.0D (use tru64 targets for 4.0E and above)...
  1942. du40:
  1943.     @echo Making C-Kermit $(CKVER) for Digital UNIX 4.0...
  1944.     $(MAKE) osf KTARGET=$${KTARGET:-$(@)} \
  1945.     "KFLAGS= -DOSF40 -DHDBUUCP -DFNFLOAT \
  1946.     -unsigned -std1 -O3 -Olimit 2400 $(KFLAGS)" "LIBS=-lm"
  1947.  
  1948. du40gcc:
  1949.     @echo Making C-Kermit $(CKVER) for Digital UNIX 4.0 with gcc ...
  1950.     $(MAKE) osf CC=gcc CC2=gcc KTARGET=$${KTARGET:-$(@)} \
  1951.     "KFLAGS= -DOSF40 -DHDBUUCP $(KFLAGS)"
  1952.  
  1953. #Tru64 Unix 4.0E
  1954. tru64-40e:
  1955.     @echo Making C-Kermit $(CKVER) for Tru64 UNIX 4.0E...
  1956.     $(MAKE) osf KTARGET=$${KTARGET:-$(@)} \
  1957.     "KFLAGS= -DOSF40 -DOSF40E -DTRU64 -DHDBUUCP -DFNFLOAT -DNOCOTFMC \
  1958.     -unsigned -std1 -O3 -Olimit 2400 $(KFLAGS)" "LIBS=-lm"
  1959.  
  1960. tru64-40f:
  1961.     @echo Making C-Kermit $(CKVER) for Tru64 UNIX 4.0F...
  1962.     $(MAKE) osf KTARGET=$${KTARGET:-$(@)} \
  1963.     "KFLAGS= -DOSF40 -DOSF40F -DTRU64 -DHDBUUCP -DFNFLOAT -DNOCOTFMC \
  1964.     -unsigned -std1 -O3 -Olimit 2400 $(KFLAGS)" "LIBS=-lm"
  1965.  
  1966. tru64-40g:
  1967.     @echo Making C-Kermit $(CKVER) for Tru64 UNIX 4.0G...
  1968.     $(MAKE) osf KTARGET=$${KTARGET:-$(@)} \
  1969.     "KFLAGS= -DOSF40 -DOSF40G -DTRU64 -DHDBUUCP -DFNFLOAT -DNOCOTFMC \
  1970.     -unsigned -std1 -O3 -Olimit 2400 $(KFLAGS)" "LIBS=-lm"
  1971.  
  1972. tru64-50a:
  1973.     @echo Making C-Kermit $(CKVER) for Tru64 UNIX 5.0A...
  1974.     $(MAKE) osf KTARGET=$${KTARGET:-$(@)} \
  1975.     "KFLAGS= -DTRU64 -DOSF50 -DHDBUUCP \
  1976.     -unsigned -std1 -O3 -Olimit 2400 $(KFLAGS)"
  1977.  
  1978. tru64-51a:
  1979.     @echo Making C-Kermit $(CKVER) for Tru64 UNIX 5.1A...
  1980.     $(MAKE) osf KTARGET=$${KTARGET:-$(@)} \
  1981.     "KFLAGS= -DTRU64 -DOSF50 -DOSF51A -DHDBUUCP \
  1982.     -unsigned -std1 -O3 -Olimit 2400 $(KFLAGS)"
  1983.  
  1984. du50:
  1985.     $(MAKE) tru64-50a KTARGET=$${KTARGET:-$(@)}
  1986.  
  1987. du40-ridiculous-checking:
  1988.     @echo Making C-Kermit $(CKVER) for Digital UNIX 4.0.
  1989.     @echo Checking everything - assumes DECC...
  1990.     $(MAKE) osf KTARGET=$${KTARGET:-$(@)} \
  1991.     "KFLAGS= -DOSF40 -DHDBUUCP -w0 -warnprotos -check -portable \
  1992.     -unsigned -std1 -O3 -Olimit 1760 $(KFLAGS)"
  1993.  
  1994. #Sequent DYNIX/ptx 1.2.1
  1995. dynixptx12:
  1996.     @echo Making C-Kermit $(CKVER) for Sequent DYNIX/ptx 1.2.1...
  1997.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  1998.     "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -DPTX -DNOGETUSERSHELL -DNOLEARN \
  1999.     -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t $(KFLAGS) -i -O" \
  2000.     "LNKFLAGS = -i"
  2001.  
  2002. #Sequent DYNIX/ptx 1.3 or 1.4
  2003. dynixptx13:
  2004.     @echo Making C-Kermit $(CKVER) for Sequent DYNIX/ptx 1.3 TCP/IP...
  2005.     $(MAKE) xermit "CFLAGS= -O KTARGET=$${KTARGET:-$(@)} \
  2006.     -DSVR3 -DDIRENT -DHDBUUCP -DPTX -DCK_POLL -DNOGETUSERSHELL \
  2007.     -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t -DTCPSOCKET $(KFLAGS) -i" \
  2008.     "LNKFLAGS = -i" "LIBS = -lsocket -linet -lnsl"
  2009.  
  2010. #Sequent DYNIX/ptx 2.0, ANSI C compilation
  2011. #Should work on any hardware platform when DYNIX/ptx runs, including
  2012. #386, 486, Pentium.
  2013. dynixptx20:
  2014.     @echo 'Making C-Kermit $(CKVER) for POSIX, Sequent DYNIX/ptx 2.0...'
  2015.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2016.     "CFLAGS= -DPOSIX -DHDBUUCP -DTCPSOCKET \
  2017.     -DWAIT_T=int -DPTX -DNOGETUSERSHELL $(KFLAGS) -O" \
  2018.     "LIBS = -lsocket -linet -lnsl"
  2019.  
  2020. #Sequent DYNIX/ptx 2.0, ANSI C compilation, with curses
  2021. dynixptx20c:
  2022.     @echo 'Making C-Kermit $(CKVER) for POSIX, Sequent DYNIX/ptx 2.0...'
  2023.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2024.     "CFLAGS= -DPOSIX -DHDBUUCP -DTCPSOCKET -DWAIT_T=int -DPTX -DCK_CURSES \
  2025.     -DCK_NEWTERM -DNOGETUSERSHELL $(KFLAGS) -O" \
  2026.     "LIBS = -lsocket -linet -lnsl -lcurses -ltermcap"
  2027.  
  2028. #Sequent DYNIX/ptx 2.1.6, 80486, ANSI C compilation, with curses:
  2029. # -Xa -- use ANSI compiler.
  2030. # -Wc,-pw -- suppress portability warnings.
  2031. # -Wc,-i386 -- 80386 cpu.
  2032. # -Wc,-i486 -- 80486 cpu.
  2033. # -Wc,-P5 -- Pentium (default).
  2034. # -Wc,-O3 -- highest optimization.
  2035. # -Wa,-N17061 -- increase symbol table from default of 15013 for ckcuni.c.
  2036. # Early versions of DYNIX/ptx 2.1.x may need -DCK_POLL instead of -DSELECT.
  2037. # Add "$&" after the colon in the "xermit" target for parallel makes.
  2038. dynixptx216c:
  2039.     @echo 'Making C-Kermit $(CKVER) for POSIX, Sequent DYNIX/ptx 2.1.6'
  2040.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2041.     "CFLAGS= -DPOSIX -DHDBUUCP -DDYNAMIC -DTCPSOCKET \
  2042.     -DSELECT -DCK_REDIR -DCK_NAWS -DCK_WREFRESH -DSW_ACC_ID \
  2043.     -DTCP_NODELAY=1 -DTRMBUFL=2048 -DBIGBUFOK -DHADDRLIST \
  2044.     -DPTX  -DCK_CURSES -DCK_NEWTERM -DNOGETUSERSHELL -DNOREALPATH \
  2045.     $(KFLAGS) -Xa -Wc,-pw -Wc,-i486 -Wc,-O3 -Wa,-N17061" \
  2046.     "LIBS = -lXbsd -lseq -lsocket -linet -lnsl -lmalloc -lm -lcurses" \
  2047.     "LNKFLAGS = -s"
  2048.  
  2049. #Sequent DYNIX/ptx 2.1.6, gcc 2.7.2.2, with curses:
  2050. dynixptx216cgcc:
  2051.     @echo 'Making C-Kermit $(CKVER) for POSIX, Sequent DYNIX/ptx 2.1.6 gcc'
  2052.     $(MAKE) xermit "CC = gcc" "CC2 = gcc" KTARGET=$${KTARGET:-$(@)} \
  2053.     "CFLAGS= -DPOSIX -DHDBUUCP -DDYNAMIC -DTCPSOCKET \
  2054.     -DSELECT -DCK_REDIR -DCK_NAWS -DCK_WREFRESH -DSW_ACC_ID \
  2055.     -DTCP_NODELAY=1 -DTRMBUFL=2048 -DBIGBUFOK -DHADDRLIST \
  2056.     -DPTX  -DCK_CURSES -DCK_NEWTERM -DNOGETUSERSHELL -DNOREALPATH \
  2057.     $(KFLAGS) -O3 -pipe -funsigned-char" \
  2058.     "LIBS = -lXbsd -lseq -lsocket -linet -lnsl -lmalloc -lm -lcurses" \
  2059.     "LNKFLAGS = -s"
  2060.  
  2061. #Sequent DYNIX/ptx 4.0, ANSI C compilation, with curses
  2062. dynixptx41c:
  2063.     @echo 'Making C-Kermit $(CKVER) for POSIX, Sequent DYNIX/ptx 4.0...'
  2064.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2065.     "CFLAGS= -DPOSIX -DHDBUUCP -DTCPSOCKET \
  2066.     -DWAIT_T=int -DPTX -DPTX4 -DCK_CURSES -DCK_NEWTERM \
  2067.     -DNOGETUSERSHELL $(KFLAGS) -O" \
  2068.     "LIBS = -lsocket -lnsl -lcurses -ltermcap"
  2069.  
  2070. #Sequent DYNIX/ptx 4.4, ANSI C compilation, with curses
  2071. dynixptx44:
  2072.     @echo 'Making C-Kermit $(CKVER) for POSIX, Sequent DYNIX/ptx 4.4...'
  2073.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2074.     "CFLAGS= -DPTX -DPTX4 -DPOSIX -DHDBUUCP -DTCPSOCKET -DWAIT_T=int \
  2075.     -DCK_CURSES -DCK_NEWTERM -DBIGBUFOK -DSELECT -DNOGETUSERSHELL \
  2076.     $(KFLAGS) -O" "LIBS = -lsocket -lnsl -lcurses -ltermcap"
  2077.  
  2078. #Sequent DYNIX 3.0.x
  2079. dynix3:
  2080.     @echo Making C-Kermit $(CKVER) for Sequent DYNIX 3.0.x...
  2081.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2082.     "CFLAGS= -DBSD43 -DACUCNTRL -DTCPSOCKET -O \
  2083.     -DPWUID_T=int -DGID_T=int $(KFLAGS)"
  2084.  
  2085. #Sequent DYNIX 3.0.x, no ACUCNTRL
  2086. dynix3noacu:
  2087.     @echo Making C-Kermit $(CKVER) for Sequent DYNIX 3.0.x...
  2088.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2089.     "CFLAGS= -DBSD43 -DLCKDIR -DTCPSOCKET -O \
  2090.     -DUID_T=int -DGID_T=int $(KFLAGS)"
  2091.  
  2092. #Sequent DYNIX 3.1.x
  2093. dynix31:
  2094.     @echo Making C-Kermit $(CKVER) for Sequent DYNIX 3.1.x...
  2095.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2096.     "CFLAGS= -O -DDCLPOPEN -DLCKDIR -DBSD4 -DTCPSOCKET $(KFLAGS)"
  2097.  
  2098. #Sequent DYNIX 3.1.2, as above but with curses, to be compiled by gcc 2.3.3.
  2099. dynix31c:
  2100.     @echo 'Making C-Kermit $(CKVER) for Sequent DYNIX 3.1.2, curses...'
  2101.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2102.     "CFLAGS= -O2 -DDCLPOPEN -DACUCNTRL \
  2103.     -DBSD43 -DTCPSOCKET -DCK_CURSES -DUID_T=int \
  2104.     $(KFLAGS)" "LIBS= -lcurses -ltermcap"
  2105.  
  2106. #Convex C1 with Berkeley Unix
  2107. convex:
  2108.     @echo Making C-Kermit $(CKVER) for Convex C1 / BSD...
  2109.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  2110.     "CFLAGS= -DBSD4 -DNOLEARN $(KFLAGS) -Dmsleep=mnap"
  2111.  
  2112. #Convex C210 with Convex/OS 8
  2113. convex8:
  2114.     @echo Making C-Kermit $(CKVER) for Convex C210 with OS 8
  2115.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2116.     "CFLAGS= -DBSD4 -DTCPSOCKET -DNODEBUG -DDIRENT -DNOFILEH \
  2117.     $(KFLAGS) -DSIG_V -Dmsleep=mnap"
  2118.  
  2119. #Convex C2 with Convex OS 9.1 (should also work with 8.1 or later)
  2120. #with ANSI C compiler, uses BSD 4.3 uucp lockfile convention.
  2121. convex9:
  2122.     @echo Making C-Kermit $(CKVER) for Convex C210 with OS 9.1
  2123.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2124.     "CFLAGS= -DPOSIX -DCONVEX9 -DNOIEXTEN -DDIRENT -DNOFILEH -DTCPSOCKET \
  2125.     -D__STDC__ -DLCKDIR -Dmsleep=mnap -O -ext -tm c1 $(KFLAGS)" \
  2126.     "LNKFLAGS = -ext"
  2127.  
  2128. #Convex C2 with Convex OS 10.1 or later
  2129. #with gcc 2.x C compiler
  2130. convex10gcc:
  2131.     @echo Making C-Kermit $(CKVER) for Convex C2 with OS 10.1 using gcc
  2132.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2133.     "CFLAGS= -DPOSIX -DCONVEX9 -DNOIEXTEN -DDIRENT -DNOFILEH -DTCPSOCKET \
  2134.     -D__STDC__  -Dmsleep=mnap -O2 $(KFLAGS)" CC=gcc CC2=gcc
  2135.  
  2136. #Cray X-MP or Y-MP UNICOS 6.x or 7.x.
  2137. #NOTE: NPROC tells how many parallel makes to run.  If your Cray has multiple
  2138. #processors, you can set NPROC up to the number of CPUs, e.g. NPROC=16.
  2139. cray:
  2140.     @echo 'Making C-Kermit $(CKVER) for Cray X/Y-MP UNICOS 6.x or 7.0...
  2141.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} NPROC=1 \
  2142.     "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -DTCPSOCKET $(KFLAGS) -O1"
  2143.  
  2144. #Cray X-MP or Y-MP UNICOS 8.0 Alpha.
  2145. cray8:
  2146.     @echo 'Making C-Kermit $(CKVER) for Cray X/Y-MP UNICOS 8.0 Alpha...
  2147.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} NPROC=1 \
  2148.     "CFLAGS= -DSVR4 -DDIRENT -DHDBUUCP -DTCPSOCKET $(KFLAGS) -O1"
  2149.  
  2150. #Cray-2 or Cray 3-CSOS
  2151. #NOTE: NPROC tells how many parallel makes to run.  If your Cray has multiple
  2152. #processors, you can set NPROC up to the number of CPUs, e.g. NPROC=16.
  2153. craycsos:
  2154.     @echo 'Making C-Kermit $(CKVER) for Cray-2/3 CSOS
  2155.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} NPROC=1 \
  2156.     "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -DTCPSOCKET \
  2157.     $(KFLAGS) -DCK_ANSIC -DCK_CURSES" "LIBS=-lnet"
  2158.  
  2159. #NeXTSTEP 1.0 through 3.2.
  2160. #Includes fullscreen file transfer display (curses) and TCP/IP support.
  2161. #Uses shared library to make executable program about 80K smaller.
  2162. #Remove "LIBS = -lsys_s" if this causes trouble.
  2163. next:
  2164.     @echo Making C-Kermit $(CKVER) for NeXTSTEP...
  2165.     @echo 'If you get errors in ckutio.c about w_S, w_T, etc,'
  2166.     @echo 'add KFGLAGS=-DNOREDIRECT to your make command.'
  2167.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2168.     "CFLAGS= -DNEXT -DTCPSOCKET -DLCKDIR -DNOPUTENV -DFNFLOAT \
  2169.     -pipe -DCK_CURSES $(KFLAGS) -O -w" "LIBS = -lsys_s -lcurses -ltermcap"
  2170.  
  2171. nextc:
  2172.     $(MAKE) "MAKE=$(MAKE)" next KTARGET=$${KTARGET:-$(@)}
  2173.  
  2174. nextg:
  2175.     $(MAKE) "MAKE=$(MAKE)" next KFLAGS=-Wall KTARGET=$${KTARGET:-$(@)}
  2176.  
  2177. nextgc:
  2178.     $(MAKE) "MAKE=$(MAKE)" next KFLAGS=-Wall KTARGET=$${KTARGET:-$(@)}
  2179.  
  2180. #NeXTSTEP 3.3.
  2181. #Includes fullscreen file transfer display and TCP/IP.
  2182. next33:
  2183.     @echo Making C-Kermit $(CKVER) for NeXTSTEP 3.3...
  2184.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2185.     "CFLAGS= -DNEXT33 -DTCPSOCKET -DLCKDIR -DNOPUTENV -DFNFLOAT \
  2186.     -pipe -DCK_CURSES $(KFLAGS) -O -w" "LIBS = -lsys_s -lcurses -ltermcap"
  2187.  
  2188. #OPENSTEP 4.2 for Sparc, m680x0, HP PA-RISC, and Intel.
  2189. #Includes fullscreen file transfer display and TCP/IP.
  2190. #ckcpro.c compiled without optimization because it crashes the compiler.
  2191. openstep42:
  2192.     @echo Making C-Kermit $(CKVER) for OPENSTEP 4.2...
  2193.     $(MAKE) ckcpro.$(EXT) \
  2194.     "CFLAGS= -DOPENSTEP42 -DNEXT33 -DTCPSOCKET -DLCKDIR -DNOPUTENV \
  2195.     -DFNFLOAT -pipe -DCK_CURSES $(KFLAGS) -w"
  2196.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2197.     "CFLAGS= -DOPENSTEP42 -DNEXT33 -DTCPSOCKET -DLCKDIR -DNOPUTENV \
  2198.     -DFNFLOAT -pipe -DCK_CURSES $(KFLAGS) -O -w" \
  2199.     "LIBS = -lsys_s -lcurses -ltermcap"
  2200.  
  2201. #NeXT with malloc debugger
  2202. nextmd:
  2203.     @echo Making C-Kermit $(CKVER) for NeXT with malloc debugging...
  2204.     $(MAKE) mermit KTARGET=$${KTARGET:-$(@)} \
  2205.     "CFLAGS= -DNEXT -DTCPSOCKET -DLCKDIR -DNOPUTENV -DFNFLOAT \
  2206.     -DCK_CURSES $(KFLAGS) -O -w -Dmalloc=dmalloc -Dfree=dfree -DMDEBUG" \
  2207.     "LIBS = -lsys_s -lcurses -ltermcap"
  2208.  
  2209. #Build for NeXTSTEP with "fat" binaries (MABs) that run on both Motorola
  2210. #and Intel platforms.
  2211. nextfat:
  2212.     $(MAKE) "MAKE=$(MAKE)" next KTARGET=$${KTARGET:-$(@)} \
  2213.     "KFLAGS=-Wall -arch m68k -arch i386" "LNKFLAGS = -arch m68k -arch i386"
  2214.  
  2215. #NeXTSTEP on Intel Platforms.
  2216. next486:
  2217.     @echo Making C-Kermit $(CKVER) for NeXTSTEP on Intel Platforms...
  2218.     @echo 'If you get errors in ckutio.c about w_S, w_T, etc,'
  2219.     @echo 'add KFGLAGS=D-DNOREDIRECT to your make command.'
  2220.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2221.     "CFLAGS= -DNEXT -DTCPSOCKET -DLCKDIR -DNOPUTENV -DFNFLOAT \
  2222.     -DNODEBUG -O3 -fno-omit-frame-pointer -fschedule-insns2 -pipe \
  2223.     -DCK_CURSES $(KFLAGS) -w" "LIBS = -lsys_s -lcurses -ltermcap"
  2224.  
  2225. #Single binary that runs on NeXT 68030 and 68040, Intel, HP, and Sparc,
  2226. #as well as on OpenStep/Mach.
  2227. nextquadfat:
  2228.     $(MAKE) "MAKE=$(MAKE)" next KTARGET=$${KTARGET:-$(@)} \
  2229.     "KFLAGS=-Wall -arch m68k -arch i386 -arch hppa -arch sparc" \
  2230.     "LNKFLAGS = -arch m68k -arch i386 -arch hppa -arch sparc"
  2231.  
  2232. #BeBox
  2233. beboxdr7:
  2234.     @echo 'Making C-Kermit $(CKVER) for the BeBox...'
  2235.     @echo 'Link step will fail with default Metroworks linker 64K limit.'
  2236.     @echo 'Code Warrior Gold required to link big programs.'
  2237.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  2238.     "CC=/boot/develop/tools/mwcc" "CC2=/boot/develop/tools/mwld" \
  2239.     "CFLAGS= -DBEBOX -DBE_DR_7 -DPOSIX -DNOUUCP -DNOLEARN $(KFLAGS) -O"
  2240.  
  2241. #BeBox BeOS DR7 only
  2242. bebox:
  2243.     @echo 'Making C-Kermit $(CKVER) for BeBox...'
  2244.     @echo 'Link step will fail with default Metroworks linker 64K limit.'
  2245.     @echo 'Code Warrior Pro 3.0 for BeBox required to link big programs.'
  2246.     $(MAKE) wermit "CC=mwcc" "CC2=mwld" KTARGET=$${KTARGET:-$(@)} \
  2247.     "CFLAGS= -DBEBOX -DPOSIX -DNOLEARN -DNOUUCP $(KFLAGS) -O"
  2248.  
  2249. #BeOS 4.5
  2250. #We have to use the wermit target because 'fd_set' is unknown.
  2251. beos45:
  2252.     $(MAKE) wermit "CC=$(CC)" "CC2=$(CC2)" KTARGET=$${KTARGET:-$(@)} \
  2253.     "CFLAGS= -DBEOS -DBEOS45 -DPOSIX -DNOIKSD -DNOREALPATH -DSYSTIMEH \
  2254.     -DNOCOTFMC -DNOUUCP -DNOLEARN $(KFLAGS) -O" \
  2255.     "LIBS = $(LIBS)"
  2256.  
  2257. #BeOS 4.5
  2258. beos45net:
  2259.     $(MAKE) beos45 "KFLAGS=-DTCPSOCKET -DNO_DNS_SRV $(KFLAGS)" \
  2260.     "LIBS=-lnet -lnetapi"
  2261.  
  2262. #Plan 9 from Bell Labs
  2263. plan9:
  2264.     @echo 'C-Kermit for Plan 9 from Bell Labs - calling ckpker.mk...'
  2265.     make -f ckpker.mk
  2266.  
  2267. #POSIX
  2268. posix:
  2269.     @echo 'Making C-Kermit $(CKVER) for pure POSIX...'
  2270.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  2271.     "CFLAGS= -DPOSIX -DNOUUCP -DNOLEARN $(KFLAGS) -O"
  2272.  
  2273. #Berkeley Software Design Inc. BSDI
  2274. # Substitute "LIBS= -lnewcurses -ltermcap" if desired.
  2275. bsdi:
  2276.     @echo 'Making C-Kermit $(CKVER) for BSDI ...'
  2277.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2278.     "CFLAGS= -DBSD44 -DSETREUID -DSW_ACC_ID -DBIGBUFOK -DFIXCRTSCTS \
  2279.     -DTCPSOCKET -DCK_CURSES -DFNFLOAT $(KFLAGS) -O" \
  2280.     "LIBS= -lcurses -ltermcap -lm"
  2281.  
  2282. #Berkeley Software Design Inc. BSDI - has higher serial speeds than 1.x.
  2283. bsdi2:
  2284.     $(MAKE) "MAKE=$(MAKE)" bsdi KTARGET=$${KTARGET:-$(@)} \
  2285.     "KFLAGS=-DBSDI2 $(KFLAGS)"
  2286.  
  2287. bsdi3:
  2288.     $(MAKE) "MAKE=$(MAKE)" bsdi KTARGET=$${KTARGET:-$(@)} \
  2289.     "KFLAGS=-DBSDI2 -DBSDI3 $(KFLAGS)"
  2290.  
  2291. bsdi4:
  2292.     $(MAKE) "MAKE=$(MAKE)" bsdi KTARGET=$${KTARGET:-$(@)} \
  2293.     "KFLAGS=-DBSDI2 -DBSDI3 -DBSDI4 -DTPUTSFNTYPE=void -DTPUTSISVOID \
  2294.     -m486 $(KFLAGS)"
  2295.  
  2296. # (old name for the above)
  2297. bsdiposix:
  2298.     $(MAKE) "MAKE=$(MAKE)" bsdi
  2299.  
  2300.  
  2301. #Build a BSDI 4.x binary that also runs under FreeBSD (Terry Kennedy).
  2302. #But watch out for details like serial-port locking.
  2303. bsdix:
  2304.     $(MAKE) "MAKE=$(MAKE)" bsdi KTARGET=$${KTARGET:-$(@)} \
  2305.     "KFLAGS=-DBSDI2 -DBSDI3 -DBSDI4 -DTPUTSFNTYPE=void -DTPUTSISVOID \
  2306.     -m486 $(KFLAGS)" "LNKFLAGS=-static -Wl,-m,i386bsdi -Wl,-e,_start"
  2307.  
  2308. #Pyramid 9XXX (e.g. 9845) or MIServer T series, OSx 4.4b thru 5.1
  2309. pyramid:
  2310.     @echo Making C-Kermit $(CKVER) for Pyramid Dual Port OSx
  2311.     ucb $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2312.     "CFLAGS= -DBSD43 -DTCPSOCKET -DPYRAMID -O $(KFLAGS)" "LNKFLAGS = -s"
  2313.  
  2314. #Pyramid Dual Port OSx using HoneyDanBer UUCP, curses and TCP
  2315. pyramid-hdb:
  2316.     @echo Making C-Kermit $(CKVER) for Pyramid Dual Port OSx
  2317.     ucb $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2318.     "CFLAGS= -DBSD43 -DTCPSOCKET -DHBDUUCP -DCK_CURSES -O $(KFLAGS)" \
  2319.     "LNKFLAGS = -s" "LIBS = -lcurses -ltermcap"
  2320.  
  2321. #Pyramid DC/OSx (UNIX System V R4).
  2322. #Has <sys/termiox.h>, regular Berkeley sockets library, i.e. in.h and inet.h
  2323. #are not misplaced in sys (rather than netinet and arpa, respectively).
  2324. #Uses ANSI C.
  2325. #NOTE: Remove -O and Olimit:2500 from CFLAGS if TELNET connections do not work.
  2326. pyrdcosx:
  2327.     @echo 'Making C-Kermit $(CKVER) for Pyramid DC/OSx...'
  2328.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2329.     "CFLAGS = -Xa -O -DSVR4 -DDIRENT -DHDBUUCP -DSELECT -DNOGETUSERSHELL \
  2330.     -DCK_CURSES -DSTERMIOX -DTCPSOCKET -DPYRAMID -K Olimit:3100 \
  2331.     -DNO_DNS_SRV $(KFLAGS)" "LIBS= -lcurses -lsocket -lnsl" "LNKFLAGS = -s"
  2332.  
  2333. #IBM's AIX 3.0 on IBM 370 mainframe, tested on AIX F44 thru F50.
  2334. aix370:
  2335.     @echo Making C-Kermit $(CKVER) for IBM System/370 AIX 3.0...
  2336.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2337.     "CFLAGS= -DAIX370 -DTCPSOCKET -DLCKDIR -DDIRENT $(KFLAGS)" \
  2338.     "LIBS = -lbsd"
  2339.  
  2340. #IBM's AIX/ESA 2.1 (OSF/1) on IBM mainframe
  2341. aixesa:
  2342.     @echo Making C-Kermit $(CKVER) for IBM AIX/ESA...
  2343.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2344.     "CFLAGS= -DAIXESA -DTCPSOCKET $(KFLAGS) -O"
  2345.  
  2346. #IBM PS/2 with AIX 1.0 thru 1.3.
  2347. #  Reports indicate that -O switch must be omitted.
  2348. #  It is also possible that "make bsd" will work (reports welcome).
  2349. #  One report said "make LIBS=-lbsd bsd" did the trick.
  2350. #  NOTLOG is to get around a 'tlog' symbol defined in one of the headers.
  2351. ps2aix:
  2352.     @echo 'Making C-Kermit $(CKVER) for IBM AIX 1.x PS/2...'
  2353.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  2354.     "CFLAGS = -DATTSV -DNOREALPATH -DPS2AIX10 -DSIG_V \
  2355.     -DNOUNICODE -DNOTLOG -DNOLEARN $(KFLAGS) -i" \
  2356.     "LNKFLAGS = -i"
  2357.  
  2358. ps2aixnetc:
  2359.     @echo 'Making C-Kermit $(CKVER) for IBM AIX 1.x PS/2...'
  2360.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  2361.     "CFLAGS = -DATTSV -DNOREALPATH -DPS2AIX10 -DTCPSOCKET -DCK_CURSES \
  2362.     -DSIG_V -DNOUNICODE -DNOTLOG -DNOLEARN $(KFLAGS) -i" \
  2363.     "LIBS = -lcurses" "LNKFLAGS = -i"
  2364.  
  2365. ps2aix3:
  2366.     $(MAKE) ps2aix KTARGET=$${KTARGET:-$(@)}
  2367.  
  2368. #IBM RT PC with AIX 2.2.1, valid as of C-Kermit 8.0.
  2369. #NOTLOG because of a conflict in <sys/termio.h>.
  2370. #This one has unique and strange lockfiles.
  2371. #  -O removed on purpose (8.0).
  2372. #  In case of "compiler error: symbol table full", increase the -Nn number.
  2373. #  In case of "compiler error: Constant pool too big", boost the -Np number.
  2374. #  Add -DNOPUTENV if putenv() causes trouble.
  2375. #  Put -DNOIKSD back if IKSD-related problems occur.
  2376. rtaix:
  2377.     @echo 'Making C-Kermit $(CKVER) for IBM RT PC, AIX 2.2.1...'
  2378.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  2379.     "CFLAGS = -DATTSV -DRTAIX -DHDBUUCP -DDIRENT -DNOTLOG -DTCPSOCKET \
  2380.     -DNOGETUSERSHELL -DCLSOPN -DNOREALPATH -DNOUNICODE -DBSD_INCLUDES \
  2381.     -DUSE_LSTAT -DFNFLOAT -Nn2500 -Np1000 -Wq,-SJ2 -a -w $(KFLAGS)" \
  2382.     "LIBS = -lm $(LIBS)" "LNKFLAGS = -s"
  2383.  
  2384. #IBM RT PC with AIX 2.2.1 + curses
  2385. rtaixc:
  2386.     $(MAKE) rtaix "KFLAGS=-DCK_CURSES" "LIBS=-lcurses"
  2387.  
  2388. #IBM RT PC with AIX (ACIS) 2.2.1 (BSD 4.3)
  2389. # Add -O, -DDYNAMIC, -s, etc, if they work.
  2390. rtacis:
  2391.     @echo Making C-Kermit $(CKVER) for RT PC with ACIS 2.2.1 = BSD 4.3...
  2392.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  2393.     "CFLAGS= -DBSD4 -DTCPSOCKET -DNOREALPATH -DNOIKSD -DNOPUTENV \
  2394.     $(KFLAGS) -U__STDC__" "LNKFLAGS = -s"
  2395.  
  2396. #IBM AIX 3.0, 3.1, or 3.2 for RISC System/6000.
  2397. rs6000:
  2398.     @echo Making C-Kermit $(CKVER) for IBM AIX 3.0 or 3.1, RS/6000...
  2399.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2400.     "CFLAGS= -DAIXRS -DTCPSOCKET -DSVR3 -DDIRENT -DCK_ANSIC \
  2401.     -DCK_POLL -DCLSOPN -DSELECT_H -DNOTTYLOCK -O $(KFLAGS)" \
  2402.     "LNKFLAGS = -s"
  2403.  
  2404. #IBM AIX 3.0, 3.1, or 3.2 for RISC System/6000, with curses.
  2405. rs6000c:
  2406.     @echo Making C-Kermit $(CKVER) for IBM AIX 3.0 or 3.1, RS/6000...
  2407.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2408.     "CFLAGS= -DAIXRS -DTCPSOCKET -DSVR3 -DDIRENT -DCK_ANSIC \
  2409.     -DCK_POLL -DCLSOPN -DCK_CURSES -DSELECT_H -DNOTTYLOCK -DNOREALPATH \
  2410.     -O $(KFLAGS)" "LIBS= -lcurses -ltermcap" "LNKFLAGS = -s"
  2411.  
  2412. aix30:
  2413.     $(MAKE) rs6000 KTARGET=$${KTARGET:-$(@)}
  2414.  
  2415. aix31:
  2416.     $(MAKE) rs6000 KTARGET=$${KTARGET:-$(@)}
  2417.  
  2418. #IBM AIX 3.2 for RISC System/6000.
  2419. #In case of "subprogram too complex" warnings, add "-qmaxmem=16000" to CFLAGS.
  2420. rs6aix32:
  2421.     @echo Making C-Kermit $(CKVER) for IBM AIX 3.2, RS/6000...
  2422.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2423.     "CFLAGS= -DAIXRS -DTCPSOCKET -DSVR4 -DDIRENT -DCK_ANSIC -DNOREALPATH \
  2424.     -DSELECT_H -DCLSOPN -DNOTTYLOCK -O $(KFLAGS)" "LNKFLAGS = -s"
  2425.  
  2426. #IBM AIX 3.2 for RISC System/6000.
  2427. rs6aix32c:
  2428.     @echo Making C-Kermit $(CKVER) for IBM AIX 3.2, RS/6000, TCP+curses...
  2429.     @echo In case of Subprogram Too Complex warnings,
  2430.     @echo add -qmaxmem=16000 to CFLAGS.
  2431.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2432.     "CFLAGS= -DAIXRS -DTCPSOCKET -DSVR4 -DDIRENT -DCK_ANSIC -DNOREALPATH \
  2433.     -DCLSOPN -DCK_CURSES -DSELECT_H -DNOTTYLOCK -O $(KFLAGS)" \
  2434.     "LNKFLAGS = -s" "LIBS=-lcurses"
  2435.  
  2436. aix32:
  2437.     $(MAKE) rs6aix32c KTARGET=$${KTARGET:-$(@)}
  2438.  
  2439. #IBM AIX 4.1, 4.1.x on RISC System/6000 or Power Series.
  2440. #Generates common binary for all platforms if using xlc (IBM C compiler).
  2441. #When using gcc, add -mcpu=common to generate common binary.
  2442. #Note that this one needs CK_NEWTERM.
  2443. # Add -bbigtoc in case ld fails with TOC overflow.
  2444. aix41:
  2445.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.1.1 RS/6000 or PowerPC...
  2446.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2447.     "CFLAGS= -DAIXRS -DAIX41 -DSVR4 -DSTERMIOX -DTCPSOCKET -DDIRENT \
  2448.     -DCK_ANSIC -DCLSOPN -DCK_CURSES -DCK_NEWTERM -DSELECT -DSELECT_H \
  2449.     -DNOGETUSERSHELL -qmaxmem=16000 -O $(KFLAGS)" \
  2450.     "LNKFLAGS = -s" "LIBS=-lcurses"
  2451.  
  2452. #Ditto but with gcc.
  2453. #Remove "CC=gcc CC2=gcc" if you have gcc installed as cc.
  2454. aix41g:
  2455.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.1.1 RS/6000 or PowerPC...
  2456.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC=gcc" "CC2=gcc" \
  2457.     "CFLAGS= -DAIXRS -DAIX41 -DSVR4 -DSTERMIOX -DTCPSOCKET -DDIRENT \
  2458.     -DCK_ANSIC -DCLSOPN -DCK_CURSES -DCK_NEWTERM -DSELECT -DSELECT_H \
  2459.     -DNOGETUSERSHELL -O $(KFLAGS)" \
  2460.     "LNKFLAGS = -s -Xlinker -bbigtoc" "LIBS=-lcurses"
  2461.  
  2462. # Add -bbigtoc in case ld fails with TOC overflow.
  2463. aix41+krb5+krb4:
  2464.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.1.1 RS/6000 or PowerPC...
  2465.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} \
  2466.     "CFLAGS= -DAIXRS -DAIX41 -DSVR4 -DSTERMIOX -DTCPSOCKET -DDIRENT \
  2467.     -DCK_ANSIC -DCLSOPN -DCK_CURSES -DCK_NEWTERM -DSELECT -DSELECT_H \
  2468.     -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 -DKRB4 -DKRB524 \
  2469.     -DCK_ENCRYPTION -DCK_DES $(K5INC) $(K5INC)/krb5  \
  2470.     -DNOGETUSERSHELL -qmaxmem=16000 -O $(KFLAGS)" \
  2471.     "LNKFLAGS = -s" \
  2472.     "LIBS = $(K5LIB) -lcurses -lkrb4 -ldes425 -lkrb5 \
  2473.     -lcom_err -lk5crypto -lgssapi_krb5"
  2474.  
  2475. #Old name for "aix41".
  2476. rs6aix41c:
  2477.     $(MAKE) aix41 KTARGET=$${KTARGET:-$(@)}
  2478.  
  2479. #IBM AIX 4.1, 4.1.x, or 4.2 on RISC System/6000 or Power Series,
  2480. # with X.25 support
  2481. #Generates common binary for all platforms if using xlc (IBM C compiler).
  2482. #When using gcc, add -mcpu=common to generate common binary.
  2483. # Add -bbigtoc in case ld fails with TOC overflow.
  2484. aix41x25:
  2485.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.1.1 RS/6000 or PowerPC...
  2486.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2487.     "CFLAGS= -DAIXRS -DAIX41 -DSVR4 -DSTERMIOX -DTCPSOCKET -DDIRENT \
  2488.     -DCK_ANSIC -DCLSOPN -DCK_CURSES -DCK_NEWTERM -DSELECT -DSELECT_H \
  2489.     -DIBMX25 -DDEBUG -DNOGETUSERSHELL -qmaxmem=16000 -g $(KFLAGS)" \
  2490.     "LNKFLAGS = -g -bI:/lib/pse.exp" "LIBS=-lcurses -lodm -lcfg"
  2491.     -@echo "]0;kermit done\c"
  2492.  
  2493. #As above but without -g in LNKFLAGS.
  2494. # Add -bbigtoc in case ld fails with TOC overflow.
  2495. aix41x25o:
  2496.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.1.1 RS/6000 or PowerPC...
  2497.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2498.     "CFLAGS= -DAIXRS -DAIX41 -DSVR4 -DSTERMIOX -DTCPSOCKET -DDIRENT \
  2499.     -DCK_ANSIC -DCLSOPN -DCK_CURSES -DCK_NEWTERM -DSELECT -DSELECT_H \
  2500.     -DIBMX25 -DNODEBUG -DNOGETUSERSHELL -qmaxmem=16000 $(KFLAGS)" \
  2501.     "LNKFLAGS = -bI:/lib/pse.exp" "LIBS=-lcurses -lodm -lcfg"
  2502.     -@echo "]0;kermit done\c"
  2503.  
  2504. #AIX 4.2 -- Must have CK_NEWTERM or echoing is lost after curses.
  2505. # Add -bbigtoc in case ld fails with TOC overflow.
  2506. aix42:
  2507.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.2 or higher...
  2508.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2509.     "CFLAGS= -DAIXRS -DAIX41 -DAIX42 -DSVR4 -DSTERMIOX -DTCPSOCKET \
  2510.     -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DCK_NEWTERM -DFNFLOAT \
  2511.     -DSELECT -DSELECT_H -DNOGETUSERSHELL -qmaxmem=16000 -O $(KFLAGS)" \
  2512.     "LNKFLAGS = -s" "LIBS=-lcurses -lm"
  2513.  
  2514. #AIX 4.3 -- Must NOT have CK_NEWTERM or else C-Kermit hangs after curses.
  2515. # -bbigtoc needed on some systems but not others to avoid TOC overflow.
  2516. # "man ld" says -bbigtoc makes program run slower.
  2517. aix43:
  2518.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.3 or higher...
  2519.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2520.     "CFLAGS= -DAIXRS -DAIX41 -DAIX43 -DSVR4 -DSTERMIOX -DTCPSOCKET \
  2521.     -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DSELECT -DSELECT_H \
  2522.     -DFNFLOAT -DNOGETUSERSHELL -qmaxmem=16000 -bbigtoc -O $(KFLAGS)" \
  2523.     "LNKFLAGS = -s" "LIBS=-lcurses -lm"
  2524.  
  2525. #AIX 4.3 with IBM X.25.
  2526. aix43x25:
  2527.     @echo "Making C-Kermit $(CKVER) for IBM AIX 4.3 with X.25..."
  2528.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2529.     "CFLAGS= -DAIXRS -DAIX41 -DAIX43 -DSVR4 -DSTERMIOX -DTCPSOCKET \
  2530.     -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DSELECT -DSELECT_H \
  2531.     -DFNFLOAT -DNOGETUSERSHELL -DIBMX25 \
  2532.     -qmaxmem=16000 -bbigtoc -O $(KFLAGS)" \
  2533.     "LNKFLAGS = -bI:/lib/pse.exp" "LIBS=-lcurses -lodm -lcfg -lm"
  2534.  
  2535. #AIX 4.3 -- Must NOT have CK_NEWTERM or else C-Kermit hangs after curses.
  2536. # -mminimal-toc needed on some systems but not others to avoid TOC overflow.
  2537. # "man ld" says -bbigtoc makes program run slower.
  2538. aix43g:
  2539.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.3 gcc...
  2540.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  2541.     "CFLAGS= -mminimal-toc -g -O -DAIXRS -DAIX41 -DAIX43 -DSVR4 \
  2542.     -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DSELECT -DSELECT_H \
  2543.     -DSTERMIOX -DTCPSOCKET -DFNFLOAT -DNOGETUSERSHELL $(KFLAGS)" \
  2544.     "LIBS=-lcurses -lm"
  2545.  
  2546. aix43gcc:
  2547.     $(MAKE) aix43g
  2548.  
  2549. # None of the following aix43gcc attempts work on a gcc-only AIX 4.3.3 box.
  2550. # It just plain can't find the math routines (fmod, pow, exp, sqrt, log10,...)
  2551. # Which is odd because nm /usr/lib/libC.a finds them...
  2552.  
  2553. #in case aix43gcc can't find its math library...
  2554. aix43gccx:
  2555.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.3 gcc...
  2556.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  2557.     "CFLAGS= -mminimal-toc -g -O -DAIXRS -DAIX41 -DAIX43 -DSVR4 \
  2558.     -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DSELECT -DSELECT_H \
  2559.     -DSTERMIOX -DTCPSOCKET -DFNFLOAT -DNOGETUSERSHELL $(KFLAGS)" \
  2560.     "LIBS= -L/usr/local/lib/gcc-lib/powerpc-ibm-aix4.3.1.0/2.95.2 \
  2561.     -lcurses -bloadmap -bnoquiet"
  2562.  
  2563. #in case aix43gccx can't find its math library...
  2564. aix43gccy:
  2565.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.3 gcc...
  2566.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  2567.     "CFLAGS= -mminimal-toc -g -O -DAIXRS -DAIX41 -DAIX43 -DSVR4 \
  2568.     -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DSELECT -DSELECT_H \
  2569.     -DSTERMIOX -DTCPSOCKET -DFNFLOAT -DNOGETUSERSHELL $(KFLAGS)" \
  2570.     "LIBS= -lcurses -bloadmap -bnoquiet"
  2571.  
  2572. #in case aix43gccx can't find its math library...
  2573. aix43gccz:
  2574.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.3 gcc...
  2575.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  2576.     "CFLAGS= -mminimal-toc -g -O -DAIXRS -DAIX41 -DAIX43 -DSVR4 \
  2577.     -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DSELECT -DSELECT_H \
  2578.     -DSTERMIOX -DTCPSOCKET -DFNFLOAT -DNOGETUSERSHELL $(KFLAGS)" \
  2579.     "LIBS= -L. -lcurses -bloadmap -bnoquiet"
  2580.  
  2581.  
  2582. #AIX 4.3 with MIT Kerberos 5 and Kerberos 4 compatibility mode
  2583. # Must NOT have CK_NEWTERM or else C-Kermit hangs after curses.
  2584. # -mminimal-toc needed on some systems but not others to avoid TOC overflow.
  2585. # "man ld" says -bbigtoc makes program run slower.
  2586. aix43gcc+krb5+krb4:
  2587.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.3 or higher w/Kerberos...
  2588.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  2589.     "CFLAGS= -mminimal-toc -g -O -DAIXRS -DAIX41 -DAIX43 -DSVR4 \
  2590.     -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DSELECT -DSELECT_H \
  2591.     -DSTERMIOX -DTCPSOCKET -DFNFLOAT -DNOGETUSERSHELL \
  2592.     -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 -DKRB4 -DKRB524 \
  2593.     -DCK_ENCRYPTION -DCK_DES -funsigned-char $(K5INC) $(K5INC)/krb5 \
  2594.     $(KFLAGS)" \
  2595.     "LIBS=$(K5LIB) -lcurses -lm -lkrb4 -ldes425 -lkrb5 \
  2596.     -lcom_err -lk5crypto -lcrypt -lgssapi_krb5"
  2597.  
  2598. #AIX 4.3 with MIT Kerberos 5, Kerberos 4 compatibility mode and OpenSSL
  2599. # Must NOT have CK_NEWTERM or else C-Kermit hangs after curses.
  2600. # -mminimal-toc needed on some systems but not others to avoid TOC overflow.
  2601. # "man ld" says -bbigtoc makes program run slower.
  2602. aix43gcc+krb5+krb4+openssl:
  2603.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.3 or higher w/Kerberos...
  2604.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  2605.     "CFLAGS= -mminimal-toc -g -O -DAIXRS -DAIX41 -DAIX43 -DSVR4 \
  2606.     -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DSELECT -DSELECT_H \
  2607.     -DSTERMIOX -DTCPSOCKET -DFNFLOAT -DNOGETUSERSHELL \
  2608.     -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 -DKRB4 -DKRB524 \
  2609.     -DCK_ENCRYPTION -DCK_DES -DCK_CAST -DLIBDES -DCK_SSL \
  2610.     -funsigned-char $(K5INC) $(K5INC)/krb5 $(SSLINC) $(KFLAGS)" \
  2611.     "LIBS=$(K5LIB) $(SSLLIB) -lssl -lcrypto \
  2612.     -lcurses -lm -lkrb4 -ldes425 -lkrb5 -lcom_err -lk5crypto -lcrypt \
  2613.     -lgssapi_krb5"
  2614.  
  2615. aix44:
  2616.     $(MAKE) aix42 "KFLAGS=-DAIX44 -qmaxmem=20000 $(KFLAGS)" \
  2617.     KTARGET=$${KTARGET:-$(@)}
  2618.  
  2619. aix45:
  2620.     $(MAKE) aix42 "KFLAGS=-DAIX45 -qmaxmem=20000 $(KFLAGS)" \
  2621.     KTARGET=$${KTARGET:-$(@)}
  2622.  
  2623. aix50:
  2624.     $(MAKE) aix42 "KFLAGS=-DAIX50 -qmaxmem=20000 $(KFLAGS)" \
  2625.     KTARGET=$${KTARGET:-$(@)}
  2626.  
  2627. aix51:
  2628.     $(MAKE) aix42 "KFLAGS=-DAIX51 -qmaxmem=20000 $(KFLAGS)" \
  2629.     KTARGET=$${KTARGET:-$(@)}
  2630.  
  2631. #Bull DPX/2 with BOS/X, like AIX/RS6000
  2632. bulldpx2:
  2633.     @echo Making C-Kermit $(CKVER) for Bull DPX/2 with BOS/X...
  2634.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  2635.     "CFLAGS= -DSVR3 -DDIRENT -DCK_ANSIC -DCKTYP_H=<sys/types.h> \
  2636.     -DCK_POLL -DNOGETUSERSHELL -DCLSOPN -DNOLEARN -O $(KFLAGS)" \
  2637.     "LNKFLAGS = -s"
  2638.  
  2639. #Sun UNIX 3.5 with gcc 2.3.3.
  2640. sunos3gcc:
  2641.     @echo Making C-Kermit $(CKVER) for Sun UNIX 3.5 and gcc...
  2642.     $(MAKE) xermit CC=gcc CC2=gcc KTARGET=$${KTARGET:-$(@)} \
  2643.     CFLAGS="-g -O -DBSD4 -DTCPSOCKET $(KFLAGS)"
  2644.  
  2645. #SunOS version 4.0, BSD environment, has saved original euid feature.
  2646. # Add "CC=/usr/ucb/cc CC2=/usr/ucb/cc" if necessary.
  2647. # Note: Including Unicode crashes the assembler in ckcuni.c.
  2648. sunos4:
  2649.     @echo Making C-Kermit $(CKVER) for SunOS 4.0, BSD environment...
  2650.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2651.     "CFLAGS= -O -DSUNOS4 -DFNFLOAT -DNOUNICODE $(KFLAGS)" \
  2652.     "LIBS=-lm"
  2653.  
  2654. #As above, but with SunLink X.25 support
  2655. sunos4x25:
  2656.     @echo SunLink X.25 support
  2657.     $(MAKE) "MAKE=$(MAKE)" sunos4 KTARGET=$${KTARGET:-$(@)} \
  2658.     "KFLAGS=$(KFLAGS) -DFNFLOAT -DSUNX25" \
  2659.     "LIBS=-lm"
  2660.  
  2661. #SUN OS version 4.1 - 4.1.3, BSD environment, has saved original euid feature.
  2662. #Uses Honey DanBer UUCP.  Requires presence of /usr/spool/locks directory.
  2663. # /var/spool/ should be a symbolic link to  /usr/spool/.
  2664. # ... or 'make xermit "CC= /usr/ucb/cc " \'
  2665. # Note: "xermit" means use the select() version of the CONNECT module.
  2666. sunos41:
  2667.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 / BSD...
  2668.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2669.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNOUNICODE $(KFLAGS)" \
  2670.     "LIBS= $(LIBS) -lresolv -lm"
  2671.  
  2672. #As above, but compiled with gcc.  Gives 24-32K size reduction
  2673. #with gcc 2.1 or 2.2.2.  CAUTION: make sure "fixincludes" has been run on
  2674. #the include files, so gcc's are in sync with the regular Sun ones!
  2675. #This includes the curses library for fullscreen file transfer display.
  2676. #NDGPWNAM needed for GCC 2.5.6, not needed for 2.4.0, but it's uncertain
  2677. #whether it will do any harm for 2.4.0 compilation -- if so, remove it.
  2678. sunos41gcc:
  2679.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 with gcc and curses...
  2680.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
  2681.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT \
  2682.     -funsigned-char $(KFLAGS)" "LIBS= -lcurses -ltermcap -lresolv -lm"
  2683.  
  2684. # As above, but without -funsigned-char so I can see the warnings that
  2685. # everybody else will get when they use ANSI compilers that don't have this
  2686. # option (gsc = gcc signed char).
  2687. sunos41gsc:
  2688.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 with gcc and curses...
  2689.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
  2690.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT \
  2691.     $(KFLAGS)" "LIBS= -lcurses -ltermcap -lresolv -lm"
  2692.  
  2693. #As above but with ckucon.c rather than ckucns.c (for testing only)
  2694. sunos41gccfork:
  2695.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 with gcc and curses...
  2696.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
  2697.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT \
  2698.     -DNOLEARN -funsigned-char $(KFLAGS)" \
  2699.     "LIBS= -lcurses -ltermcap -lresolv -lm"
  2700.  
  2701. #as above but configured for Kerberos IV
  2702. sunos41gcc+krb4:
  2703.     @echo Making C-Kermit $(CKVER) for SunOS 4.1, gcc, curses, krb4...
  2704.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
  2705.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT \
  2706.     -DTCPSOCKET -DCK_AUTHENTICATION -DCK_KERBEROS  -DKRB4 \
  2707.     -DCK_ENCRYPTION -DCK_DES -DCK_CAST -DBIGBUFOK -funsigned-char \
  2708.     $(K4INC) $(KFLAGS)" \
  2709.     "LIBS= $(K4LIB) -lcurses -ltermcap -lresolv -lm -lkrb -ldes"
  2710.  
  2711. #as above but configured for SSL/TLS
  2712. sunos41gcc+openssl:
  2713.     @echo Making C-Kermit $(CKVER) for SunOS 4.1, gcc, curses, ssl...
  2714.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
  2715.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT \
  2716.     -DCK_AUTHENTICATION -funsigned-char \
  2717.     -DCK_SSL -DTCPSOCKET -DBIGBUFOK $(SSLINC) $(KFLAGS)" \
  2718.     "LIBS= $(SSLLIB) -lcurses -ltermcap -lresolv -lm -lssl -lcrypto"
  2719.  
  2720. #as above but configured for Kerberos IV and SSL/TLS
  2721. sunos41gcc+krb4+openssl:
  2722.     @echo Making C-Kermit $(CKVER) for SunOS 4.1, gcc, curses, krb4...
  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.     $(K4INC) $(SSLINC) $(KFLAGS)" \
  2728.     "LIBS= $(K4LIB) $(SSLLIB) \
  2729.     -lcurses -ltermcap -lresolv -lm -lkrb -lssl -lcrypto"
  2730.  
  2731. #as above but configured for Kerberos IV and ZLIB enabled SSL/TLS
  2732. sunos41gcc+krb4+openssl+zlib:
  2733.     @echo Making C-Kermit $(CKVER) for SunOS 4.1, gcc, curses, krb4...
  2734.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
  2735.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT \
  2736.     -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB4 -DCK_ENCRYPTION -DCK_DES \
  2737.     -DCK_CAST -DCK_SSL -DLIBDES -DTCPSOCKET -DBIGBUFOK -funsigned-char \
  2738.     -DZLIB $(K4INC) $(SSLINC) \
  2739.     $(KFLAGS)" \
  2740.     "LIBS= $(K4LIB) $(SSLLIB) \
  2741.     -lcurses -ltermcap -lresolv -lm -lkrb -lssl -lcrypto -lz"
  2742.  
  2743. #as above but configured for Kerberos IV and SRP and ZLIB enabled SSL/TLS
  2744. sunos41gcc+krb4+srp+openssl+zlib:
  2745.     @echo "C-Kermit $(CKVER) SunOS 4.1: gcc,curses,krb4,srp,ssl,zlib..."
  2746.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
  2747.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT \
  2748.     -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB4 -DCK_ENCRYPTION -DCK_DES \
  2749.     -DCK_CAST -DCK_SSL -DLIBDES -DTCPSOCKET -DBIGBUFOK -funsigned-char \
  2750.     -DZLIB -DCK_SRP $(K4INC) $(SRPINC) $(SSLINC) $(KFLAGS)" \
  2751.     "LIBS= $(K4LIB) $(SRPLIB) $(SSLLIB) \
  2752.     -lcurses -ltermcap -lresolv -lm -lkrb -lkrypto \
  2753.     -lsrp -lssl -lcrypto -lz"
  2754.  
  2755. #as above but configured for Kerberos IV and SRP and ZLIB enabled SSL/TLS
  2756. sunos41gcc+srp+openssl+zlib:
  2757.     @echo "C-Kermit $(CKVER) SunOS 4.1: gcc,curses,srp,ssl,zlib..."
  2758.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
  2759.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT \
  2760.     -DCK_AUTHENTICATION -DCK_ENCRYPTION -DCK_DES \
  2761.     -DCK_CAST -DCK_SSL -DLIBDES -DTCPSOCKET -DBIGBUFOK -funsigned-char \
  2762.     -DZLIB -DCK_SRP $(SRPINC) $(SSLINC) \
  2763.     $(KFLAGS)" \
  2764.     "LIBS= $(SRPLIB) $(SSLLIB) \
  2765.     -lcurses -ltermcap -lresolv -lm -lkrypto -lsrp -lssl -lcrypto -lz "
  2766.  
  2767. #SUNOS 4.1 as sunos41 above, but also with curses support
  2768. sunos41c:
  2769.     @echo Curses support
  2770.     $(MAKE) "MAKE=$(MAKE)" sunos41 KTARGET=$${KTARGET:-$(@)} \
  2771.     "KFLAGS=$(KFLAGS) -DCK_CURSES -DFNFLOAT " \
  2772.     "LIBS= -lcurses -ltermcap"
  2773.  
  2774. #As SunOS 4.1.x, gcc, configured as Internet Kermit Server.
  2775. # . NOLOCAL removes capability to make connections
  2776. # . TNCODE allows server-side Telnet negotiation.
  2777. # . used to include -lpwent, why?
  2778. # . used to include -L/usr/local/lib -lm, why?
  2779. sunos41giks:
  2780.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 with gcc for IKS...
  2781.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
  2782.     "CFLAGS= -O -DSUNOS41 -DNDGPWNAM -DFNFLOAT \
  2783.     -DNOLOCAL -DTCPSOCKET -DTNCODE -DNOPUSH $(KFLAGS)" \
  2784.     "LIBS= -lm -lresolv"
  2785.  
  2786. #SUNOS 4.1 with SunLink X.25 support
  2787. sunos41x25:
  2788.     @echo SunLink X.25 support
  2789.     $(MAKE) "MAKE=$(MAKE)" wermit KTARGET=$${KTARGET:-$(@)} \
  2790.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNOUNICODE -DFNFLOAT -DSUNX25 \
  2791.     -DNOLEARN $(KFLAGS)" "LIBS= $(LIBS) -lresolv -lm"
  2792.  
  2793. #SUNOS 4.1 with SunLink X.25 support and curses
  2794. sunos41x25c:
  2795.     @echo SunLink X.25 support + curses
  2796.     $(MAKE) "MAKE=$(MAKE)" wermit KTARGET=$${KTARGET:-$(@)} \
  2797.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNOUNICODE -DFNFLOAT -DSUNX25 \
  2798.     -DCK_CURSES -DNOLEARN $(KFLAGS)" \
  2799.     "LIBS= $(LIBS) -lcurses -ltermcap -lresolv -lm"
  2800.  
  2801. #SUN with Solaris 2.0 = SunOS 5.0.
  2802. #Mostly the same as System V R4.  Don't use this with later Solaris versions.
  2803. solaris20:
  2804.     @echo 'Making C-Kermit $(CKVER) for Sun with Solaris 2.0 and curses...'
  2805.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2806.     "CFLAGS = -O -DSVR4 -DSOLARIS -DDIRENT -DHDBUUCP -DSTERMIOX \
  2807.     -DTCPSOCKET -DCK_CURSES -DFNFLOAT -DCK_POLL $(KFLAGS)" \
  2808.     "LIBS= -lsocket -lnsl -lcurses -ltermlib -lm" "LNKFLAGS = -s"
  2809.  
  2810. #SUN with Solaris 2.0.
  2811. #As above, but built with the gcc compiler from the Cygnus CD-ROM.
  2812. solaris20g:
  2813.     @echo 'Making C-Kermit $(CKVER) for Sun Solaris 2.0, gcc, and curses..'
  2814.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2815.     "CFLAGS = -O -DSVR4 -DSOLARIS -DDIRENT -DHDBUUCP -DSTERMIOX \
  2816.     -DTCPSOCKET -DCK_CURSES -DCK_POLL -DFNFLOAT $(KFLAGS)" \
  2817.     "LIBS= -lsocket -lnsl -lcurses -ltermlib -lm" "LNKFLAGS = -s" \
  2818.     CC=/opt/cygnus-sol2-1.1/bin/gcc CC2=/opt/cygnus-sol2-1.1/bin/gcc
  2819.  
  2820. #SunOS 5.1 = Solaris 2.1.
  2821. #NOTE: A C compiler is no longer bundled with SunOS 5.1, so to compile C
  2822. #programs, you might have to change your PATH to include the directory
  2823. #/usr/ccs/bin AFTER the directory containing the compiler.  SunPRO C is
  2824. #installed by default in /opt/SUNWspro/bin.  So a sample PATH might be:
  2825. #
  2826. # /usr/local/bin:/usr/bin:/opt/SUNWspro/bin:/usr/ccs/bin:\
  2827. # /usr/ucb:/usr/sbin:/sbin:.
  2828. #
  2829. # or:
  2830. #
  2831. # /usr/openwin/bin:/export/home/SUNWspro/bin:/usr/ccs/bin:/usr/sbin:/usr/bin.
  2832. #
  2833. #NOTE 2: Compilation with the Apogee C compiler (apcc) might not work,
  2834. #because it refuses to allow "-Usun".  Reportedly, newer releases of apcc
  2835. #(such as 1.2.17) work OK, use: "make -e sunos51 CC=apcc CC2=apcc".
  2836. solaris21:
  2837.     @echo 'Making C-Kermit $(CKVER) for SunOS 5.x....'
  2838.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2839.     "CFLAGS = -O -Usun -DSVR4 -DSOLARIS -DDIRENT -DHDBUUCP -DFNFLOAT \
  2840.     -DSELECT -DNODEBUG -DSTERMIOX $(KFLAGS)" "LIBS = -lm" "LNKFLAGS = -s"
  2841.  
  2842. #C-Kermit for Solaris 2.0-2.4 compiled with gcc, includes curses and TCP/IP.
  2843. #Change -O2 to -O if -O2 gives trouble.
  2844. #Remove -Usun if it causes trouble.
  2845. #Your PATH should start with something like:
  2846. #  /usr/local/gnu/bin:/usr/ccs/bin:
  2847. #Produces a huge executable -- strip with /usr/ccs/bin/strip (not Gnu strip).
  2848. #Also don't add "LNKFLAGS = -s" -- strip manually instead.
  2849. #Also note: this can NOT be linked statically - Sun makes it impossible.
  2850. #And for Solaris 2.4, you might have to replace:
  2851. # /usr/local/lib/gcc-lib/i486-sun-solaris2/2.4.5/include/sys/stat.h
  2852. #with /usr/include/sys/stat.h.
  2853. solaris2xg:
  2854.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.x with GNU cc...'
  2855.     @echo 'Please read the comments that accompany the solaris2xg target.'
  2856.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  2857.     "CFLAGS = -g -O -Usun -DSVR4 -DSOLARIS -DSTERMIOX -DSELECT -DFNFLOAT \
  2858.     -DCK_CURSES -DCK_NEWTERM -DDIRENT -DHDBUUCP -DTCPSOCKET $(KFLAGS)" \
  2859.     "LIBS= -ltermlib -lsocket -lnsl -lm -lresolv"
  2860.  
  2861. #ditto but no curses.
  2862. solaris2xgnc:
  2863.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.x with GNU cc...'
  2864.     @echo 'Please read the comments that accompany the solaris2xg target.'
  2865.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  2866.     "CFLAGS = -g -O -Usun -DSVR4 -DSOLARIS -DSTERMIOX -DSELECT -DFNFLOAT \
  2867.     -DDIRENT -DHDBUUCP -DTCPSOCKET $(KFLAGS)" \
  2868.     "LIBS= -lsocket -lnsl -lm -lresolv"
  2869.  
  2870. #and with Kerberos IV
  2871. solaris2xg+krb4:
  2872.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.x with GNU cc, krb4...'
  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  -DKRB4 -DCK_ENCRYPTION \
  2878.     -DCK_DES -DCK_CAST -DBIGBUFOK $(K4INC) $(KFLAGS)" \
  2879.     "LIBS= $(K4LIB) -ltermlib -lsocket -lnsl -lm -lresolv -lkrb -ldes" 
  2880.  
  2881. #and with OpenSSL,ZLIB,PAM,SHADOW
  2882. solaris2xg+openssl+zlib+pam+shadow:
  2883.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.x with gcc, OpenSSL...'
  2884.     @echo 'Please read the comments that accompany the solaris2xg target.'
  2885.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  2886.     "CFLAGS = -g -O -Usun -DSVR4 -DSOLARIS -DSTERMIOX -DSELECT -DFNFLOAT \
  2887.     -DCK_CURSES -DCK_NEWTERM -DDIRENT -DHDBUUCP -DTCPSOCKET \
  2888.     -DCK_AUTHENTICATION -DCK_SSL -DCK_PAM -DCK_SHADOW  -DZLIB \
  2889.     -DBIGBUFOK $(SSLINC) $(KFLAGS)" \
  2890.     "LIBS= $(SSLLIB) -ltermlib \
  2891.     -lsocket -lnsl -lm -lresolv -lssl -lcrypto -lpam -lz" 
  2892.  
  2893. #and with Krb5,Krb4,OpenSSL,SHADOW
  2894. solaris2xg+krb5+krb4+openssl+shadow:
  2895.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.x with gcc,k5,k4,ssl...'
  2896.     @echo 'Please read the comments that accompany the solaris2xg target.'
  2897.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  2898.     "CFLAGS = -O -Usun -DSVR4 -DSOLARIS -DSTERMIOX -DSELECT -DFNFLOAT \
  2899.     -DCK_CURSES -DCK_NEWTERM -DDIRENT -DHDBUUCP -DTCPSOCKET \
  2900.     -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 -DKRB4 -DKRB524 \
  2901.     -DCK_ENCRYPTION -DCK_SSL -DCK_DES -DCK_CAST -DBIGBUFOK \
  2902.     $(K5INC) $(K5INC)/krb5 $(SSLINC) $(KFLAGS)" \
  2903.     "LIBS= $(K5LIB) $(SSLLIB) -ltermlib -lsocket -lnsl -lm -lresolv \
  2904.     -lkrb4 -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto"
  2905.  
  2906. #and with OpenSSL
  2907. solaris2xg+openssl+pam+shadow:
  2908.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.x with gcc, OpenSSL...'
  2909.     @echo 'Please read the comments that accompany the solaris2xg target.'
  2910.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  2911.     "CFLAGS = -g -O -Usun -DSVR4 -DSOLARIS -DSTERMIOX -DSELECT -DFNFLOAT \
  2912.     -DCK_CURSES -DCK_NEWTERM -DDIRENT -DHDBUUCP -DTCPSOCKET \
  2913.     -DCK_AUTHENTICATION -DCK_SSL -DCK_PAM -DCK_SHADOW \
  2914.     -DBIGBUFOK $(SSLINC) $(KFLAGS)" \
  2915.     "LIBS= $(SSLLIB) -ltermlib \
  2916.     -lsocket -lnsl -lm -lresolv -lssl -lcrypto -lpam" 
  2917.  
  2918. solaris22g:
  2919.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=-DPOSIX_CRTSCTS $(KFLAGS)" solaris2xg \
  2920.     KTARGET=$${KTARGET:-$(@)}
  2921.  
  2922. solaris23g:
  2923.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=-DPOSIX_CRTSCTS $(KFLAGS)" solaris2xg \
  2924.     KTARGET=$${KTARGET:-$(@)}
  2925.  
  2926. #Solaris 2.4 built with gcc
  2927. solaris24g:
  2928.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET:-$(@)} \
  2929.     solaris2xg "KFLAGS=-DSOLARIS24 -DPOSIX_CRTSCTS $(KFLAGS)"
  2930.  
  2931. #Solaris 2.5 built with gcc
  2932. solaris25g:
  2933.     $(MAKE) "MAKE=$(MAKE)" solaris2xg KTARGET=$${KTARGET:-$(@)} \
  2934.     "KFLAGS=-funsigned-char -DSOLARIS25 $(KFLAGS)"
  2935.  
  2936. #Solaris 2.5 built with gcc and Kerberos IV
  2937. solaris25g+krb4:
  2938.     $(MAKE) "MAKE=$(MAKE)" solaris2xg+krb4 KTARGET=$${KTARGET:-$(@)} \
  2939.     "KFLAGS=-funsigned-char -DSOLARIS25 $(KFLAGS)"
  2940.  
  2941. #Solaris 2.5 built with gcc and Kerberos V/IV, SSL, ...
  2942. solaris25g+krb5+krb4+openssl+shadow:
  2943.     $(MAKE) "MAKE=$(MAKE)" solaris2xg+krb5+krb4+openssl+shadow \
  2944.     KTARGET=$${KTARGET:-$(@)} \
  2945.     "KFLAGS=-funsigned-char -DSOLARIS25 $(KFLAGS)"
  2946.  
  2947. #Solaris 2.6 with gcc
  2948. solaris26g:
  2949.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET:-$(@)} solaris2xg \
  2950.     "KFLAGS= -DSOLARIS26 $(KFLAGS)"
  2951.  
  2952. #Solaris 2.6 with gcc and SSL
  2953. solaris26g+openssl:
  2954.     $(MAKE) "MAKE=$(MAKE)"  solaris2xg+openssl+pam+shadow \
  2955.     KTARGET=$${KTARGET:-$(@)} "KFLAGS= -DSOLARIS26 $(KFLAGS)"
  2956.  
  2957. #Solaris 2.6 with gcc, no curses (e.g. because libtermlib is missing).
  2958. solaris26gnc:
  2959.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET:-$(@)} solaris2xgnc \
  2960.     "KFLAGS= -DSOLARIS26 $(KFLAGS)"
  2961.  
  2962. #Solaris 7 with gcc (32-bit)
  2963. solaris7g:
  2964.     $(MAKE) "MAKE=$(MAKE)" solaris2xg KTARGET=$${KTARGET:-$(@)} \
  2965.     "KFLAGS=-DSOLARIS7 $(KFLAGS)"
  2966.  
  2967. #Solaris 7 with gcc + OpenSSL (32-bit)
  2968. solaris7g+openssl+zlib+pam+shadow:
  2969.     $(MAKE) "MAKE=$(MAKE)" solaris2xg+openssl+zlib+pam+shadow \
  2970.     KTARGET=$${KTARGET:-$(@)} "KFLAGS=-DSOLARIS7 $(KFLAGS)"
  2971.  
  2972. #Solaris 7 with gcc + Kerberos IV (32-bit)
  2973. solaris7g+krb4:
  2974.     $(MAKE) "MAKE=$(MAKE)" solaris2xg+krb4 KTARGET=$${KTARGET:-$(@)} \
  2975.     "KFLAGS=-DSOLARIS7 $(KFLAGS)"
  2976.  
  2977. #Solaris 8 with gcc (32-bit)
  2978. solaris8g:
  2979.     $(MAKE) "MAKE=$(MAKE)" solaris2xg KTARGET=$${KTARGET:-$(@)} \
  2980.     "KFLAGS=-DSOLARIS8 $(KFLAGS)"
  2981.  
  2982. #Solaris 8 with gcc + OpenSSL (32-bit)
  2983. solaris8g+openssl+zlib+pam+shadow:
  2984.     $(MAKE) "MAKE=$(MAKE)" solaris2xg+openssl+zlib+pam+shadow \
  2985.     KTARGET=$${KTARGET:-$(@)} "KFLAGS=-DSOLARIS8 $(KFLAGS)"
  2986.  
  2987. #Solaris 8 with gcc + Kerberos IV (32-bit)
  2988. solaris8g+krb4:
  2989.     $(MAKE) "MAKE=$(MAKE)" solaris2xg+krb4 KTARGET=$${KTARGET:-$(@)} \
  2990.     "KFLAGS=-DSOLARIS8 $(KFLAGS)"
  2991.  
  2992. #Solaris 2.0-2.4, gcc, SunLink X.25 added.
  2993. #NOTE: Can't use xermit target with X.25.
  2994. solaris2xgx25:
  2995.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.x + X.25 with GNU cc...'
  2996.     @echo 'Please read the comments that accompany the solaris2xg entry.'
  2997.     $(MAKE) wermit CC=gcc CC2=gcc KTARGET=$${KTARGET:-$(@)} \
  2998.     "CFLAGS = -g -O -Usun -DSVR4 -DSOLARIS -DSTERMIOX -DSELECT -DSUNX25 \
  2999.     -DCK_CURSES -DCK_NEWTERM -DDIRENT -DHDBUUCP -DTCPSOCKET -DFNFLOAT \
  3000.     -DNOLEARN $(KFLAGS)" \
  3001.     "LIBS= -ltermlib -lm -L/opt/SUNWconn/lib -R/opt/SUNWconn/lib \
  3002.     -lsockx25 -lsocket -lnsl"
  3003.  
  3004. #Solaris 2.5, gcc, SunLink X.25 added.
  3005. solaris25gx25:
  3006.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET:-$(@)} solaris2xgx25 \
  3007.     "KFLAGS=-DSOLARIS25 $(KFLAGS)"
  3008.  
  3009. #Solaris 2.6, gcc, SunLink X.25 added.
  3010. solaris26gx25:
  3011.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET:-$(@)} solaris2xgx25 \
  3012.     "KFLAGS=-DSOLARIS26 $(KFLAGS)"
  3013.  
  3014. #Solaris 2.0 - 2.4, SunPro compiler, includes curses and TCP/IP.
  3015. #When using SUNWspro CC 2.0.1 under Solaris 2.3, be sure all cc patches
  3016. #are applied, otherwise corrupt or truncated object files can result.
  3017. #To build, set your PATH as follows:
  3018. #  /usr/local/bin:/usr/bin:/opt/SUNWspro/bin:/usr/ccs/bin:\
  3019. #  /usr/ucb:/usr/sbin:/sbin:.
  3020. # or (depending on where the compiler has been installed):
  3021. #  /usr/openwin/bin:/export/home/SUNWspro/bin:/usr/ccs/bin:/usr/sbin:/usr/bin.
  3022. #For additional optimization try using "-fast -xO4 -xdepend".
  3023. solaris2x:
  3024.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.x with SunPro cc...'
  3025.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3026.     "CFLAGS = -O -Usun -i -DSVR4 -DDIRENT -DSOLARIS -DHDBUUCP -DFNFLOAT \
  3027.     -DSELECT -DCK_CURSES -DCK_NEWTERM -DSTERMIOX -DTCPSOCKET $(KFLAGS)" \
  3028.     "LNKFLAGS = -s" "LIBS= -ltermlib -lsocket -lnsl -lm -lresolv"
  3029.  
  3030. #as above but configured for Kerberos IV
  3031. solaris2x+krb4:  
  3032.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.x, SunPro cc, krb4...'
  3033.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} \
  3034.     "CFLAGS = -O -Usun -i -DSVR4 -DDIRENT -DSOLARIS -DHDBUUCP -DFNFLOAT \
  3035.     -DSELECT -DCK_CURSES -DCK_NEWTERM -DSTERMIOX -DTCPSOCKET  \
  3036.     -DCK_AUTHENTICATION -DCK_KERBEROS  -DKRB4 \
  3037.     -DCK_ENCRYPTION -DCK_DES -DCK_CAST $(K4INC) $(KFLAGS)" \
  3038.     "LNKFLAGS = -s" \
  3039.     "LIBS= $(K4LIB) -ltermlib -lsocket -lnsl -lm -lresolv -lkrb -ldes"
  3040.  
  3041. solaris23:
  3042.     $(MAKE) "MAKE=$(MAKE)" solaris2x KTARGET=$${KTARGET:-$(@)} \
  3043.     "KFLAGS=$(KFLAGS)"
  3044.  
  3045. solaris24:
  3046.     $(MAKE) "MAKE=$(MAKE)" solaris2x KTARGET=$${KTARGET:-$(@)} \
  3047.     "KFLAGS=-DSOLARIS24 -DPOSIX_CRTSCTS $(KFLAGS)"
  3048.  
  3049. # template for Solaris 2.5 and above.
  3050. solaris25x:
  3051.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.x with SunPro cc...'
  3052.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3053.     "CFLAGS = -DFNFLOAT -O -Usun -i $(KFLAGS)" \
  3054.     "LNKFLAGS = -s" "LIBS= -ltermlib -lsocket -lnsl -lm -lresolv"
  3055.  
  3056. #Solaris 2.5, SunPro compiler, curses, TCP/IP
  3057. solaris25:
  3058.     $(MAKE) "MAKE=$(MAKE)" solaris25x KTARGET=$${KTARGET:-$(@)} \
  3059.     "KFLAGS=-DSOLARIS25 $(KFLAGS)"
  3060.  
  3061. #Solaris 2.5, SunPro compiler, curses, TCP/IP, Kerberos IV
  3062. solaris25+krb4:
  3063.     $(MAKE) "MAKE=$(MAKE)" solaris25x+krb4 KTARGET=$${KTARGET:-$(@)} \
  3064.     "KFLAGS=-DSOLARIS25 $(KFLAGS)"
  3065.  
  3066. #Solaris 2.6, SunPro compiler, curses, TCP/IP
  3067. solaris26:
  3068.     $(MAKE) "MAKE=$(MAKE)" solaris25x KTARGET=$${KTARGET:-$(@)} \
  3069.     "KFLAGS=-DSOLARIS26 $(KFLAGS)"
  3070.  
  3071. #Solaris 7 (aka 2.7)
  3072. solaris7:
  3073.     $(MAKE) "MAKE=$(MAKE)" solaris25x KTARGET=$${KTARGET:-$(@)} \
  3074.     "KFLAGS=-DSOLARIS7 $(KFLAGS)"
  3075.  
  3076. #Solaris 8
  3077. solaris8:
  3078.     $(MAKE) "MAKE=$(MAKE)" solaris25x KTARGET=$${KTARGET:-$(@)} \
  3079.     "KFLAGS=-DSOLARIS8 $(KFLAGS)"
  3080.  
  3081. #Solaris 2.0-2.3, SunPro compiler, with SunLink X.25 support.
  3082. #This will only run if user has /opt/SUNWconn/lib/libsockx25.so.1
  3083. #exists and can be dynamically linked.
  3084. #NOTE: Do not change target to xermit -- it doesn't support X.25.
  3085. solaris2x25:
  3086.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.x+X.25 with SunPro cc...'
  3087.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3088.     "CFLAGS = -O -i -Usun -DSVR4 -DSOLARIS -DDIRENT \
  3089.     -DSUNX25 -DTCPSOCKET -DHDBUUCP -DFNFLOAT -DNOLEARN \
  3090.     -DSELECT -DCK_CURSES -DCK_NEWTERM -DSTERMIOX $(KFLAGS)" \
  3091.     "LNKFLAGS = -s" \
  3092.     "LIBS= -ltermlib -L/opt/SUNWconn/lib -R/opt/SUNWconn/lib \
  3093.     -lsockx25 -lsocket -lnsl -lm -lresolv"
  3094.  
  3095. #Solaris 2.4, SunPro compiler, with SunLink X.25 support.
  3096. #This will only run if user has /opt/SUNWconn/lib/libsockx25.so.1
  3097. #exists and can be dynamically linked.
  3098. solaris24x25:
  3099.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.4+X.25 with SunPro cc...'
  3100.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3101.     "CFLAGS = -O -i -Usun -DSVR4 -DSOLARIS -DSOLARIS24 -DDIRENT -DNOLEARN \
  3102.     -DSUNX25 -DTCPSOCKET -DHDBUUCP -DFNFLOAT -DPOSIX_CRTSCTS \
  3103.     -DSELECT -DCK_CURSES -DCK_NEWTERM -DSTERMIOX $(KFLAGS)" \
  3104.     "LNKFLAGS = -s" \
  3105.     "LIBS= -ltermlib -L/opt/SUNWconn/lib -R/opt/SUNWconn/lib \
  3106.     -lsockx25 -lsocket -lnsl -lm -lresolv"
  3107.  
  3108. #Solaris 2.5, SunPro compiler, with SunLink X.25 support.
  3109. solaris25x25:
  3110.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.5+X.25 with SunPro cc...'
  3111.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3112.     "CFLAGS = -O -i -Usun -DSVR4 -DSOLARIS25 -DDIRENT -DSUNX25 \
  3113.     -DTCPSOCKET -DHDBUUCP -DSELECT -DCK_CURSES \
  3114.     -DCK_NEWTERM -DSTERMIOX -DFNFLOAT -DPOSIX_CRTSCTS -DNOLEARN \
  3115.     -I/opt/SUNWconn/include $(KFLAGS)" \
  3116.     "LIBS= -ltermlib -L/opt/SUNWconn/lib -R/opt/SUNWconn/lib \
  3117.     -lsockx25 -lsocket -lnsl -lm -lresolv"
  3118.  
  3119. #Solaris 2.6, SunPro compiler, with SunLink X.25 support.
  3120. solaris26x25:
  3121.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.6+X.25 with SunPro cc...'
  3122.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3123.     "CFLAGS = -O -i -Usun -DSVR4 -DSOLARIS26 -DDIRENT -DSUNX25 \
  3124.     -DTCPSOCKET -DHDBUUCP -DSELECT -DCK_CURSES \
  3125.     -DCK_NEWTERM -DSTERMIOX -DFNFLOAT -DPOSIX_CRTSCTS -DNOLEARN \
  3126.     -I/opt/SUNWconn/include $(KFLAGS)" \
  3127.     "LIBS= -ltermlib -L/opt/SUNWconn/lib -R/opt/SUNWconn/lib \
  3128.     -lsockx25 -lsocket -lnsl -lm -lresolv"
  3129.  
  3130. #The following sunosxxx entries are for debugging and testing only.
  3131.  
  3132. sunos41x:
  3133.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3134.     "CFLAGS= -O -DSUNOS41 -DDIRENT -DNOTLOG -DNOMSEND \
  3135.     -DNOUUCP -DNOSIGWINCH -DNOREDIRECT -DNOPUSH -DNOCCTRAP \
  3136.     -DNOICP -DNOLOCAL $(KFLAGS)"
  3137.  
  3138. #SunOS 4.1.x, debugging with Pure Software, Inc., Purify 2 (commercial runtime
  3139. #error-detection software for catching wild array references, etc).
  3140. #Before running the resulting wermit, you'll also need to define and export
  3141. #the following environment variables (as in this example):
  3142. #PURIFYHOME=/usr/local/purify ; export PURIFYHOME
  3143. #PURIFYCACHEDIR=/tmp ; export PURIFYCACHEDIR
  3144. sunos41cp:
  3145.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 / BSD / Curses / Purify...
  3146.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3147.     "CC2= purify -cache_dir=/usr/tmp cc" \
  3148.     "CFLAGS= -g -DSUNOS41 -DHDBUUCP -DDIRENT -DTCPSOCKET \
  3149.     -DSAVEDUID -DCK_CURSES $(KFLAGS)" \
  3150.     "LIBS= -lcurses -ltermcap"
  3151.  
  3152. #SunOS 4.1 with malloc debugger
  3153. sunos41md:
  3154.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 malloc debug...
  3155.     $(MAKE) mermit KTARGET=$${KTARGET:-$(@)} \
  3156.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DDIRENT -DTCPSOCKET \
  3157.     -DSAVEDUID $(KFLAGS) -Dmalloc=dmalloc -Dfree=dfree -DMDEBUG"
  3158.  
  3159. sunos41gmd:
  3160.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 with gcc and curses...
  3161.     $(MAKE) mermit KTARGET=$${KTARGET:-$(@)} "CC= gcc " "CC2= gcc" \
  3162.     "CFLAGS= -g -DSUNOS41 -DHDBUUCP -DDIRENT -DTCPSOCKET \
  3163.     -DNDGPWNAM -DSAVEDUID -DCK_CURSES -DRLOGCODE \
  3164.     $(KFLAGS) -Dmalloc=dmalloc -Dfree=dfree -DMDEBUG" \
  3165.     "LIBS= -lcurses -ltermcap"
  3166.  
  3167. #SunOS version 4.1, gcc, profiling with gprof, no debugging.
  3168. #To get profile, "make sunos41p" (on Sun), then "./wermit".  After running
  3169. #wermit, "gprof ./wermit | lpr" (or whatever) to get execution profile.
  3170. sunos41p:
  3171.     @echo Making C-Kermit $(CKVER) for SunOS 4.x with profiling...
  3172.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC= gcc " "CC2= gcc" \
  3173.     "CFLAGS= -DSUNOS41 -DNODEBUG -DSAVEDUID -DDIRENT -DTCPSOCKET \
  3174.     -DNDGPWNAM $(KFLAGS) -pg" "LNKFLAGS = -pg"
  3175.  
  3176. #SunOS version 4.1 or later, BSD environment, minimum features.
  3177. sunos41min:
  3178.     @echo Minimum interactive
  3179.     $(MAKE) "MAKE=$(MAKE)" sunos41 KTARGET=$${KTARGET:-$(@)} \
  3180.     "KFLAGS=-DNOSPL -DNOXMIT -DNOMSEND -DNOFRILLS -DNORETRY \
  3181.     -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG -DNOSCRIPT -DNOCSETS \
  3182.     -DNOSHOW -DNOSETKEY -DNOUUCP -DNORECALL -DNOREDIRECT \
  3183.     -DNOPUSH -DNOMDMHUP -DNOJC -DNOFDZERO -DNOESCSEQ \
  3184.     -DNONET -DCK_SMALL -DNOCKSPEED -DNOCKTIMERS -DNOLOGIN \
  3185.     -DNOCKXYZ -DNOKERBEROS -DNOMKDIR -DNOPATTERNS -DNOPERMS -DNOPIPESEND \
  3186.     -DNORECURSIVE -DNORENAME -DNORESEND -DNOSETKEY \
  3187.     -DNOTRIGGER -DNOTUNING $(KFLAGS)" "LNKFLAGS = -s"
  3188.  
  3189. #SunOS version 4.1, BSD environment, min size, command-line only...
  3190. sunos41m:
  3191.     @echo Minimum size
  3192.     $(MAKE) "MAKE=$(MAKE)" sunos41min KTARGET=$${KTARGET:-$(@)} \
  3193.     "KFLAGS=-DNOICP $(KFLAGS)"
  3194.  
  3195. #SunOS version 4.1, BSD environment, min size, cmd-line only, remote only...
  3196. #
  3197. sunos41mr:
  3198.     @echo Minimum size
  3199.     $(MAKE) "MAKE=$(MAKE)" sunos41min KTARGET=$${KTARGET:-$(@)} \
  3200.     "KFLAGS=-DNOICP -DNOLOCAL $(KFLAGS)"
  3201.  
  3202. #SunOS version 4.1, BSD environment, min size, interactive...
  3203. sunos41mi:
  3204.     @echo Minimum size
  3205.     $(MAKE) "MAKE=$(MAKE)" sunos41min KTARGET=$${KTARGET:-$(@)} \
  3206.     "KFLAGS=-DNOCMDL $(KFLAGS)"
  3207.  
  3208. #SunOS version 4.1, BSD environment, min size, interactive, remote only...
  3209. sunos41mir:
  3210.     @echo Minimum size
  3211.     $(MAKE) "MAKE=$(MAKE)" sunos41min KTARGET=$${KTARGET:-$(@)} \
  3212.     "KFLAGS=-DNOCMDL -DNOLOCAL $(KFLAGS)"
  3213.  
  3214. #SunOS 4.1, System V R3 environment (-i option omitted).
  3215. sunos41s5:
  3216.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 System V R3...
  3217.     @echo For testing purposes only - NOT for production use.
  3218.     @echo For a useable version, make sunos41 instead.
  3219.     $(MAKE) wermit "CC= /usr/5bin/cc " "CC2=/usr/5bin/cc " \
  3220.     KTARGET=$${KTARGET:-$(@)} \
  3221.     "CFLAGS = -DSUN4S5 -DDIRENT -DHDBUUCP -DNOLEARN -DCK_POLL $(KFLAGS) -O"
  3222.  
  3223. #As above, but with curses support
  3224. sunos41s5c:
  3225.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 System V R3...
  3226.     @echo Curses included.
  3227.     @echo For testing purposes only - NOT for production use.
  3228.     @echo For a useable version, make sunos41 instead.
  3229.     $(MAKE) wermit "CC= /usr/5bin/cc " "CC2=/usr/5bin/cc " \
  3230.     KTARGET=$${KTARGET:-$(@)} \
  3231.     "CFLAGS = -DSUN4S5 -DDIRENT -DHDBUUCP -DNOLEARN \
  3232.     -DCK_POLL -DCK_CURSES -DCK_NEWTERM $(KFLAGS) -O" "LIBS= -lcurses"
  3233.  
  3234. #As above, but with curses support AND net support
  3235. sunos41s5tcpc:
  3236.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 System V R3...
  3237.     @echo TCP/IP and curses included.  No debug log.
  3238.     @echo For testing purposes only - NOT for production use.
  3239.     @echo For a useable version, make sunos41 instead.
  3240.     $(MAKE) xermit "CC= /usr/5bin/cc " "CC2=/usr/5bin/cc " \
  3241.     KTARGET=$${KTARGET:-$(@)} \
  3242.     "CFLAGS = -DSUN4S5 -DDIRENT -DHDBUUCP -DCK_POLL \
  3243.     -DNODEBUG -DCK_CURSES -DCK_NEWTERM -DTCPSOCKET $(KFLAGS) -O" \
  3244.     "LIBS= -lcurses -lresolv"
  3245.  
  3246. # (End of SunOS test entries...)
  3247.  
  3248. #Apollo with Domain SR10.0 or later, BSD environment
  3249. #Reportedly, it might also help to add '-A,systype=bsd4.3' to CFLAGS.
  3250. #Reportedly, there is also a problem with getc & putc macros that can
  3251. #be handled by using '#ifdef apollo' somewhere to redefine them???
  3252. #On the other hand, other reports indicate that it works fine as-is.
  3253. #NOTE: This entry was previously like this:
  3254. #    $(MAKE) wermit "CFLAGS= -DNOFILEH -DBSD4 $(KFLAGS) -Uaegis \
  3255. #    -DTCPSOCKET -U__STDC__"
  3256. #Reports (Dec 91) indicate SR10 has an ANSI-compliant C compiler,
  3257. #in addition to an older one that claimed to be ANSI-compliant but wasn't.
  3258. #The following make entry (plus checks that are made in ckcdeb.h) detect
  3259. #which compiler is used and define the CK_ANSIC or NOANSI flags accordingly.
  3260. sr10-bsd:
  3261.     @echo Making C-Kermit $(CKVER) for Apollo SR10.0 / BSD ...
  3262.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3263.     "CFLAGS= -O -DAPOLLOSR10 -DBSD43 -DTCPSOCKET -DCK_CURSES -DNOLEARN \
  3264.     -Uaegis $(KFLAGS)" "LIBS= -lcurses -ltermcap"
  3265.  
  3266. #Apollo with Domain SR10.0 or later, System V R3 environment.
  3267. #Don't use the optimizer (-O), it causes problems at runtime.
  3268. sr10-s5r3:
  3269.     @echo Making C-Kermit $(CKVER) for Apollo SR10.0 / Sys V R3 ...
  3270.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3271.     "CFLAGS= -DNOFILEH -DSVR3 -DAPOLLOSR10 -DNOLEARN $(KFLAGS) \
  3272.     -Uaegis -U__STDC__"
  3273.  
  3274. #Apollo Domain/IX (untested, try this if sr10-bsd doesn't work)
  3275. # -DTCPSOCKET can probably be added here.
  3276. apollobsd:
  3277.     @echo Making C-Kermit $(CKVER) for Apollo Domain/IX...
  3278.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3279.     "CC= /bin/cc " "CC2= /bin/cc " \
  3280.     "CFLAGS= -DNOFILEH -DBSD4 -DAPOLLOBSD -DNOLEARN $(KFLAGS) -Uaegis"
  3281.  
  3282. #Version 7 Unix (see comments near top of makefile)
  3283. v7:
  3284.     @echo Making C-Kermit $(CKVER) for UNIX Version 7.
  3285.     @echo Read the makefile if you have trouble with this...
  3286.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3287.     "CFLAGS=-DV7 -DPROCNAME=\\\"$(PROC)\\\" \
  3288.     -DBOOTNAME=\\\"$(BOOTFILE)\\\" -DNPROCNAME=\\\"$(NPROC)\\\" \
  3289.     -DNPTYPE=$(NPTYPE) $(DIRECT) -DO_RDWR=2 -DO_NDELAY=0 -DO_SCCS_ID \
  3290.     -DNOLEARN $(KFLAGS)"
  3291.  
  3292. #AT&T UNIX System V R3, signal() is void rather than int.
  3293. #Uses dirent.h and Honey DanBer UUCP.
  3294. #Add the -i link option if necessary.
  3295. #If you get errors like "ws_row undefined" in ckutio.c, add -DNONAWS.
  3296. sys5r3:
  3297.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R3...'
  3298.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3299.     "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -DNOLEARN $(KFLAGS) -O" \
  3300.     "LNKFLAGS="
  3301.  
  3302. #As above, plus curses.
  3303. sys5r3c:
  3304.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R3 + curses...'
  3305.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3306.     "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -DCK_CURSES -DNONAWS -DNOLEARN \
  3307.     $(KFLAGS) -O" "LNKFLAGS=" "LIBS = -ltermlib"
  3308.  
  3309. #System V R3.2 for PCs built on Interactive UNIX SV/386 R4.x
  3310. #but with all calls to dup2() disabled because generic SVR3 does not have dup2.
  3311. # (The -linet library might not need to be in this one.)
  3312. sys5r32is:
  3313.     @echo 'Making C-Kermit $(CKVER) for System V/386 R32
  3314.     $(MAKE) wermit CC="$(CC)" CC2="$(CC2)" \
  3315.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -O -DNOCSETS -DNOREALPATH \
  3316.     -DUID_T=ushort -DGID_T=ushort -DI386IX -DSVR3JC -DCK_CURSES -DNONAWS \
  3317.     -DPOSIX_JC -DCK_REDIR -DCK_POLL -DDCLGETCWD -DNOFDZERO -DNOREDIRECT \
  3318.     -DNOZEXEC -DNOLEARN $(KFLAGS)" "LIBS=-lcurses -lc_s -linet"
  3319.  
  3320. #System V R3.2 for PCs built on Interactive UNIX SV/386 R4.x
  3321. #but with all calls to dup2() disabled because generic SVR3 does not have dup2.
  3322. #With TCP/IP added.
  3323. sys5r32isnet:
  3324.     @echo 'Making C-Kermit $(CKVER) for System V/386 R32 + TCP/IP
  3325.     $(MAKE) wermit CC="$(CC)" CC2="$(CC2)" \
  3326.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -O -DNOCSETS -DNOREALPATH \
  3327.     -DUID_T=ushort -DGID_T=ushort -DI386IX -DSVR3JC -DCK_CURSES -DNONAWS \
  3328.     -DPOSIX_JC -DCK_REDIR -DCK_POLL -DDCLGETCWD -DNOFDZERO -DNOREDIRECT \
  3329.     -DNOLEARN -DNOZEXEC -DTCPSOCKET $(KFLAGS)" "LIBS=-lcurses -lc_s -linet"
  3330.  
  3331. iclsys5r3:
  3332.     make sys5r3 KTARGET=$${KTARGET:-$(@)} KFLAGS=-DICLSVR3
  3333.  
  3334. #AT&T UNIX System V R3.  As above, but no ANSI prototyping.
  3335. sys5r3na:
  3336.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R3...'
  3337.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3338.     "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -DNOANSI -DNOLEARN $(KFLAGS) -O" \
  3339.     "LNKFLAGS="
  3340.  
  3341. #AT&T UNIX System V R3, for 3B computers with Wollongong TCP/IP.
  3342. sys5r3net3b:
  3343.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX SVR3/3B/Wollongong...'
  3344.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3345.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DWOLLONGONG -DNOLEARN $(KFLAGS) \
  3346.     -O" "LIBS= -lnet -lnsl_s" "LNKFLAGS ="
  3347.  
  3348. #AT&T UNIX System V R3, signal() is void rather than int.
  3349. #Uses dirent.h and Honey DanBer uucp, has <termiox.h>.
  3350. #Has <termiox.h> for RTS/CTS flow control.
  3351. sys5r3tx:
  3352.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R3...'
  3353.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3354.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DTERMIOX -DNOLEARN \
  3355.     $(KFLAGS) -i -O" "LNKFLAGS ="
  3356.  
  3357. #AT&T UNIX System V R3, signal() is void rather than int.
  3358. #Uses dirent.h and Honey DanBer uucp, has <termiox.h>.
  3359. #Has <sys/termiox.h> for RTS/CTS flow control.
  3360. sys5r3sx:
  3361.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R3...'
  3362.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3363.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DSTERMIOX -DNOLEARN \
  3364.     $(KFLAGS) -i -O" "LNKFLAGS ="
  3365.  
  3366. #AT&T UNIX System V R4.
  3367. #Has <termiox.h>.
  3368. sys5r4:
  3369.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  3370.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3371.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DTERMIOX -DNOLEARN $(KFLAGS)" \
  3372.     "LNKFLAGS = -s"
  3373.  
  3374. #AT&T UNIX System V R4 with Wollongong TCP/IP.
  3375. #Has <termiox.h>.
  3376. sys5r4net:
  3377.     @echo 'Making C-Kermit $(CKVER) for System V R4 + Wollongong TCP/IP...'
  3378.     @echo ' If sockets-library routines are missing at link time, then'
  3379.     @echo ' try the sys5r4net2 entry.'
  3380.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3381.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DNOLEARN \
  3382.     -DTERMIOX -DWOLLONGONG $(KFLAGS)" "LNKFLAGS = -s"
  3383.  
  3384. #As above, but needs libs included.
  3385. sys5r4net2:
  3386.     @echo ' PLEASE READ ckuins.txt IF YOU GET MISSING HEADER FILES.'
  3387.     @echo ' (Search for WOLLONGONG...)'
  3388.     $(MAKE) sys5r4net KTARGET=$${KTARGET:-$(@)} "LIBS= -lsocket -lnsl"
  3389.  
  3390. #As above plus curses.
  3391. sys5r4net2c:
  3392.     echo 'Making C-Kermit $(CKVER) for System V R4 + Wollongong TCP/IP...'
  3393.     @echo ' PLEASE READ ckuins.txt IF YOU GET MISSING HEADER FILES.'
  3394.     @echo ' (Search for WOLLONGONG...)'
  3395.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3396.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DNOLEARN \
  3397.     -DTERMIOX -DWOLLONGONG -DCK_CURSES $(KFLAGS)" "LNKFLAGS = -s" \
  3398.     "LIBS= -lsocket -lnsl -lcurses"
  3399.  
  3400. #DELL UNIX System V R4.
  3401. #Has <sys/termiox.h>, regular Berkeley sockets library, i.e. in.h and inet.h
  3402. #are not misplaced in sys (rather than netinet and arpa, respectively).
  3403. #Uses ANSI C constructs, advisory file locking on devices, etc.
  3404. #Warning: -DSTERMIOX enables hardware flow control (RTS/CTS), but reportedly
  3405. #this does not work with the normal drivers.  However, it might still work
  3406. #on non-Dell systems, or even Dell systems with different drivers installed.
  3407. dellsys5r4:
  3408.     @echo 'Making C-Kermit $(CKVER) for DELL UNIX System V R4...'
  3409.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3410.     "CFLAGS = -O -DSVR4 -DDELL_SVR4 -DDIRENT -DHDBUUCP \
  3411.     -DTCPSOCKET -DSTERMIOX -DCK_POLL $(KFLAGS)" \
  3412.     "LIBS= -lsocket -lnsl" "LNKFLAGS = -s"
  3413.  
  3414. #As above, curses support added...
  3415. dellsys5r4c:
  3416.     @echo 'Making C-Kermit $(CKVER) for DELL UNIX System V R4...'
  3417.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3418.     "CFLAGS = -O -DSVR4 -DDELL_SVR4 -DDIRENT -DHDBUUCP \
  3419.     -DTCPSOCKET -DSTERMIOX -DCK_CURSES -DCK_POLL \
  3420.     $(KFLAGS)" "LIBS= -lsocket -lnsl -lcurses -ltermcap" "LNKFLAGS = -s"
  3421.  
  3422. #Minimum interactive: As above, but with every conceivable option removed.
  3423. dellsys5r4mi:
  3424.     @echo 'Making C-Kermit $(CKVER) for DELL UNIX System V R4...'
  3425.     @echo 'Minimum-size interactive'
  3426.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3427.     "CFLAGS = -O -DSVR4 -DDELL_SVR4 -DDIRENT \
  3428.     -UTCPSOCKET -DNOCMDL -DNOSPL -DNOXMIT -DCK_POLL \
  3429.     -DNOMSEND -DNOFRILLS -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG \
  3430.     -DNOSCRIPT -DNOCSETS -DNOSHOW -DNOSETKEY -DNOSERVER -DNOUUCP \
  3431.     -DNOPUSH -DNOMDMHUP -DNOJC -DNOFDZERO -DNOESCSEQ  \
  3432.     $(KFLAGS)" "LNKFLAGS = -s"
  3433.  
  3434. #Command-line only version.
  3435. dellsys5r4m:
  3436.     @echo 'Making C-Kermit $(CKVER) for DELL UNIX System V R4...'
  3437.     @echo 'Command-line only'
  3438.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3439.     "CFLAGS = -O -DSVR4 -DDELL_SVR4 -DDIRENT \
  3440.     -UTCPSOCKET -DNOICP -DNOFRILLS -DNODIAL -DNODEBUG -DNOTLOG -DNOCSETS \
  3441.     -DNOSETKEY -DNOESCSEQ -DNOJC -DNOFDZERO -DCK_POLL \
  3442.     $(KFLAGS)" "LNKFLAGS = -s"
  3443.  
  3444. #AT&T UNIX System V R4.
  3445. #Has <sys/termiox.h>.
  3446. sys5r4sx:
  3447.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  3448.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3449.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DSTERMIOX -DNOLEARN \
  3450.     $(KFLAGS)" "LNKFLAGS = -s" "LIBS=$(LIBS)"
  3451.  
  3452. #AT&T UNIX System V R4.
  3453. #Has <sys/termiox.h>, regular Berkeley sockets library, i.e. in.h and inet.h
  3454. #are not misplaced in sys (rather than netinet and arpa, respectively).
  3455. #Uses ANSI C constructs, <sys/termiox.h>, etc etc.
  3456. sys5r4sxtcp:
  3457.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  3458.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3459.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP \
  3460.     -DSTERMIOX -DTCPSOCKET $(KFLAGS)" \
  3461.     "LIBS= -lsocket -lnsl $(LIBS)" "LNKFLAGS= -s"
  3462.  
  3463. #AT&T UNIX System V R4.
  3464. #As above + curses.
  3465. sys5r4sxtcpc:
  3466.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  3467.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3468.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP \
  3469.     -DSTERMIOX  -DCK_CURSES -DTCPSOCKET $(KFLAGS)" \
  3470.     "LIBS= -lsocket -lnsl -lcurses -ltermcap $(LIBS)" "LNKFLAGS = -s"
  3471.  
  3472. #AT&T UNIX System V R4.  CONSENSYS SVR4.2-1.
  3473. #Has <sys/termiox.h>, regular Berkeley sockets library, i.e. in.h and inet.h
  3474. #are not misplaced in sys (rather than netinet and arpa, respectively).
  3475. #Uses ANSI C constructs, <sys/termiox.h>, etc.
  3476. # Fullscreen -DCK_CURSES added (with curses & termcap libs)
  3477. # Submission by Robert Weiner/Programming Plus, rweiner@watsun.cc.columbia.edu
  3478. sys5r4sxtcpf:
  3479.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  3480.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3481.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP \
  3482.     -DSTERMIOX -DTCPSOCKET -DCK_CURSES $(KFLAGS)" \
  3483.     "LIBS= -lsocket -lnsl -L/usr/ccs/lib -lcurses -ltermcap" \
  3484.     "LIBS=$(LIBS)" "LNKFLAGS = -s"
  3485.  
  3486. #Smallest possible version for System V R4
  3487. s5r4m:
  3488.     @echo Minimum size
  3489.     $(MAKE) "MAKE=$(MAKE)" sys5r4sx KTARGET=$${KTARGET:-$(@)} \
  3490.     "KFLAGS=$(KFLAGS) -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG \
  3491.     -DNOSCRIPT -DNOCSETS -DNOICP -DNOMSEND -UTCPSOCKET" "LNKFLAGS = -s"
  3492.  
  3493. #Smallest possible interactive version of above
  3494. s5r4mi:
  3495.     @echo Minimum interactive
  3496.     $(MAKE) "MAKE=$(MAKE)" sys5r4sx \
  3497.     "KFLAGS=-DNOSPL -DNOXMIT -DNOMSEND -DNOFRILLS -DNOSHOW \
  3498.     -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG -DNOSCRIPT -DNOCSETS -DNOSETKEY \
  3499.     -UTCPSOCKET $(KFLAGS)" "LNKFLAGS = -s"
  3500.  
  3501. #AT&T UNIX System V R4, has <sys/termiox.h>
  3502. #ANSI C function prototyping disabled.
  3503. sys5r4sxna:
  3504.     @echo No ANSI C prototyping...
  3505.     $(MAKE) "MAKE=$(MAKE)" sys5r4sx KTARGET=$${KTARGET:-$(@)} \
  3506.     "KFLAGS=$(KFLAGS) -DNOANSI"
  3507.  
  3508. #Stratus FTX.
  3509. ftx:
  3510.     @echo 'Making C-Kermit $(CKVER) for Stratus FTX 3.x...'
  3511.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3512.     "CFLAGS = -O -DSVR4 -DFTX -DDIRENT -DHDBUUCP -DSTERMIOX 
  3513.     -DNOGETUSERSHELL -DNOLEARN +DA1.1 $(KFLAGS)" \
  3514.     "LNKFLAGS = -s" "LIBS=$(LIBS)"
  3515.  
  3516. #Stratus FTX + TCP/IP.
  3517. ftxtcp:
  3518.     @echo 'Making C-Kermit $(CKVER) for Stratus FTX 3.x...'
  3519.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3520.     "CFLAGS = -O -DSVR4 -DFTX -DDIRENT -DHDBUUCP -DNOGETUSERSHELL \
  3521.     -DSTERMIOX -DTCPSOCKET -DNO_DNS_SRV +DA1.1 $(KFLAGS)" \
  3522.     "LIBS= -lsocket -lnsl $(LIBS)" "LNKFLAGS= -s"
  3523.  
  3524. #NCR MP-RAS 2.03 or 3.02
  3525. mpras:
  3526.     @echo 'Making C-Kermit $(CKVER) for NCR MP-RAS...'
  3527.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3528.     "CFLAGS = -O -DSVR4 -DNCRMPRAS -DDIRENT -DHDBUUCP -DSTERMIOX \
  3529.     -DNOGETUSERSHELL -DNOLEARN -DNO_DNS_SRV $(KFLAGS)" \
  3530.     "LNKFLAGS = -s" "LIBS=$(LIBS)"
  3531.  
  3532. #NCR MP-RAS 2.03 or 3.02 with TCP/IP and curses
  3533. mprastcpc:
  3534.     @echo 'Making C-Kermit $(CKVER) for NCR MP-RAS + TCP/IP + curses...'
  3535.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CFLAGS=-DTCPSOCKET \
  3536.     -DCK_CURSES -DSVR4 -DNCRMPRAS -DDIRENT -DHDBUUCP -DSTERMIOX -DNOLEARN \
  3537.     -DNOGETUSERSHELL -DNO_DNS_SRV -O $(KFLAGS)" "LNKFLAGS = -s" \
  3538.     "LIBS= -lsocket -lnsl -lcurses -ltermcap $(LIBS)"
  3539.  
  3540. #SINIX-L V5.41 - includes curses, tcp/ip - Use this one for i386.
  3541. #This version of SINIX doesn't like fdopen() or popen().
  3542. sinix541:
  3543.     @echo 'Making C-Kermit $(CKVER) for Siemens/Nixdorf SINIX V5.41/i386'
  3544.     $(MAKE) ckcpro.$(EXT) "CFLAGS = -DSINIX -DSVR4 -DDIRENT -DHDBUUCP \
  3545.     -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DSELECT -DCK_ANSIC -DNO_DNS_SRV \
  3546.     -DSNI541 -DNOGETUSERSHELL -DNONETCMD -DNOPOPEN -kansi -W0 $(KFLAGS)"
  3547.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3548.     "CFLAGS = -DSINIX -DSVR4 -DDIRENT -DHDBUUCP -DNO_DNS_SRV -DNOPOPEN \
  3549.     -DFNFLOAT -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DSELECT -DCK_ANSIC \
  3550.     -DSNI541 -DNOGETUSERSHELL -DNONETCMD -kansi -W0 -O $(KFLAGS)" \
  3551.     "LIBS= -lsocket -lnsl -lcurses -ltermcap -lm" "LNKFLAGS = -s"
  3552.  
  3553. sinix541i:
  3554.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=$(KFLAGS)" sinix541
  3555.  
  3556. #SINIX V5.42 - includes curses, tcp/ip, everything - Use this one for MIPS.
  3557. # As of C-Kermit 7.1, optimization removed -- takes (literally) forever.
  3558. sinix542:
  3559.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3560.     "CFLAGS = -DSINIX -DSVR4 -DDIRENT -DHDBUUCP -DNO_DNS_SRV \
  3561.     -DFNFLOAT -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DSELECT -DCK_ANSIC \
  3562.     -DSNI542 -DNOGETUSERSHELL -kansi -W0 $(KFLAGS)" \
  3563.     "LIBS= -lsocket -lnsl -lcurses -ltermcap -lm" "LNKFLAGS = -s"
  3564.  
  3565. #SINIX V5.42 - includes curses, tcp/ip, everything - Use this one for Intel.
  3566. # (Note: SNI discontinued Intel support after 5.42.)
  3567. sinix542i:
  3568.     @echo 'Making C-Kermit $(CKVER) for Siemens/Nixdorf SINIX-Z V5.42...'
  3569.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3570.     "CFLAGS = -DSINIX -DSVR4 -DDIRENT -DHDBUUCP -DFNFLOAT -DSTERMIOX \
  3571.     -DCK_CURSES -DTCPSOCKET -DSELECT -DCK_ANSIC -DNO_DNS_SRV -kansi \
  3572.     -DSNI542 $(KFLAGS)" \
  3573.     "LIBS= -lsocket -lnsl -lcurses -ltermcap -lm" \
  3574.     "LNKFLAGS = -s"
  3575.  
  3576. #Siemens Nixdorf Reliant UNIX V5.43 - includes curses, tcp/ip, everything:
  3577. # . gettimeofday() suddenly has only one arg instead of two (GTODONEARG).
  3578. # . The syntax of the Olimit specifier changed.
  3579. # . The name was changed from SINIX to Reliant UNIX in version 5.43C.
  3580. sni543:
  3581.     @echo 'Making C-Kermit $(CKVER) for Siemens/Nixdorf Reliant UNIX V5.43'
  3582.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3583.     "CFLAGS = -DSINIX -DSNI543 -DSVR4 -DDIRENT -DHDBUUCP \
  3584.     -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DSELECT -DCK_ANSIC -DGTODONEARG \
  3585.     -DNO_DNS_SRV -kansi -W0 -O -F Olimit,3100 $(KFLAGS)" \
  3586.     "LIBS= -lsocket -lnsl -lcurses -ltermcap" "LNKFLAGS = -s"
  3587.  
  3588. #Siemens Nixdorf Reliant UNIX V5.44 - Like 5.43 but with different banner.
  3589. sni544:
  3590.     @echo 'Making C-Kermit $(CKVER) for Siemens/Nixdorf Reliant UNIX V5.44'
  3591.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3592.     "CFLAGS = -DSINIX -DSNI544 -DSVR4 -DDIRENT -DHDBUUCP \
  3593.     -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DSELECT -DCK_ANSIC -DGTODONEARG \
  3594.     -DNO_DNS_SRV -kansi -W0 -O -K Olimit,3100 $(KFLAGS)" \
  3595.     "LIBS= -lsocket -lnsl -lcurses -ltermcap" "LNKFLAGS = -s"
  3596.  
  3597. #Commodore Amiga with AT&T UNIX System V R4 and TCP/IP support.
  3598. #Has <sys/termiox.h>.
  3599. svr4amiganet:
  3600.     @echo 'Making C-Kermit $(CKVER) for Amiga SVR4 + TCP/IP...'
  3601.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC=gcc" "CC2=gcc" \
  3602.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DSTERMIOX \
  3603.     -DTCPSOCKET -DCK_CURSES $(KFLAGS)" "LNKFLAGS = -s" \
  3604.     "LIBS = -lsocket -lnsl -ltermlib"
  3605.  
  3606. #SCO (Novell (Univel)) UnixWare 1.x or 2.0, no TCP/IP.
  3607. #This assumes the Novell SDK 1.0, which has <sys/termiox.h>.
  3608. #UnixWare users with the "Prime Time Freeware" CD-ROM SDK will probably have
  3609. #to use the sys5r4 entry (no termiox.h file, so no hardware flow control).
  3610. #Change -DSELECT to -DCK_POLL if -DSELECT causes problems.
  3611. # NOTE: Unixware 1.x builds have not been tried in C-Kermit 7.0.
  3612. unixware:
  3613.     $(MAKE) "MAKE=$(MAKE)" sys5r4sx KTARGET=$${KTARGET:-$(@)} \
  3614.     "KFLAGS=-DOLD_UNIXWARE -DCK_NEWTERM -DSELECT -DNOGETUSERSHELL \
  3615.     -DNOSYSLOG $(KFLAGS)" "LIBS=-lcrypt"
  3616.  
  3617. #UnixWare 1.x or 2.0 with TCP/IP and curses.
  3618. #fork()-based CONNECT - no high serial speeds.
  3619. unixwarenetc:
  3620.     $(MAKE) "MAKE=$(MAKE)" sys5r4sxtcpc KTARGET=$${KTARGET:-$(@)} \
  3621.     "KFLAGS=-DOLD_UNIXWARE -DCK_NEWTERM -DSELECT -DNOGETUSERSHELL \
  3622.     -DNOSYSLOG $(KFLAGS)" "LIBS=-lcrypt -lresolv"
  3623.  
  3624. uw10:
  3625.     $(MAKE) unixwarenetc KTARGET=$${KTARGET:-$(@)} "KFLAGS=$(KFLAGS)"
  3626.  
  3627. #This is for Unixware 2.0.x only - use unixware21 for UW 2.1.x.
  3628. #Has special library search and enables special kludge around library
  3629. #foulup regarding vfork() (which Kermit doesn't use).  Forces POSIX-style
  3630. #hangup.
  3631. unixware20:
  3632.     @echo 'Making C-Kermit $(CKVER) for UnixWare 2.0.x...'
  3633.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3634.     "CFLAGS = -O -DOLD_UNIXWARE -DUNIXWARE2 -DSELECT -DSVR4 -DDIRENT \
  3635.     -DHDBUUCP -DBIGBUFOK -DNOGETUSERSHELL -DSTERMIOX  -DCK_CURSES \
  3636.     -DTCPSOCKET -DUW200 -DFNFLOAT -DCK_NEWTERM -DNOSYSLOG $(KFLAGS)" \
  3637.     "LIBS= -lsocket -lnsl -lcurses -ltermcap -lcrypt -lgen -lm -lresolv" \
  3638.     "LNKFLAGS = -s"
  3639.  
  3640. uw20:
  3641.     $(MAKE) unixware20 KTARGET=$${KTARGET:-$(@)} "KFLAGS=$(KFLAGS)"
  3642.  
  3643. #Adds big buffers ("large memory model") - otherwise the same as UnixWare 1.x.
  3644. unixware21:
  3645.     @echo 'Making C-Kermit $(CKVER) for UnixWare 2.1.x...'
  3646.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3647.     "CFLAGS = -O -DUNIXWARE -DSELECT -DSVR4 -DDIRENT -DHDBUUCP -DBIGBUFOK \
  3648.     -DNOGETUSERSHELL -DNOSYSLOG -DSTERMIOX  -DCK_CURSES -DTCPSOCKET \
  3649.     -DCK_NEWTERM -DFNFLOAT -DUNIXWARE2 $(KFLAGS)" \
  3650.     "LIBS= -lsocket -lnsl -lcurses -ltermcap -lcrypt -lm -lresolv \
  3651.     $(LIBS)" "LNKFLAGS = -s"
  3652.  
  3653. #Unixware 2.1.0
  3654. uw21:
  3655.     $(MAKE) unixware21 KTARGET=$${KTARGET:-$(@)} "KFLAGS=$(KFLAGS)"
  3656.  
  3657. #Unixware 2.1.3
  3658. uw213:
  3659.     $(MAKE) unixware21 KTARGET=$${KTARGET:-$(@)} \
  3660.     "KFLAGS=-DUSE_FILE__CNT $(KFLAGS)"
  3661.  
  3662. #Unixware 2.1 with IKSD support
  3663. uw21iksd:
  3664.     $(MAKE) unixware21 KTARGET=$${KTARGET:-$(@)} \
  3665.     "KFLAGS=-DCK_SHADOW $(KFLAGS)" "LIBS= -lgen"
  3666.  
  3667. #UnixWare 7 with tc[gs]etspeed() high serial speeds & select()-based CONNECT
  3668. #NOTE: This is the one we use.
  3669. unixware7t:
  3670.     @echo 'Making C-Kermit $(CKVER) for UnixWare 7 with POSIX i/o...'
  3671.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3672.     "CFLAGS = -O -DUNIXWARE -DSELECT -DSVR4 -DDIRENT -DHDBUUCP -DBIGBUFOK \
  3673.     -DFNFLOAT -DNOGETUSERSHELL -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DPOSIX \
  3674.     -DUW7 -DUSETCSETSPEED -DCK_NEWTERM -DNOLSTAT -DDCLTIMEVAL \
  3675.     -DNEEDMDMDEFS $(KFLAGS)" \
  3676.     "LIBS=-lsocket -lnsl -lcurses -ltermcap -lcrypt -lm -lresolv $(LIBS)" \
  3677.     "LNKFLAGS = -s"
  3678.  
  3679. #UnixWare 7 - select()-based CONNECT - no POSIX i/o - no high serial speeds.
  3680. #In other words, just like the UnixWare 1 and 2 builds.
  3681. unixware7x:
  3682.     @echo 'Making C-Kermit $(CKVER) for UnixWare 7...'
  3683.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3684.     "CFLAGS = -O -DUNIXWARE -DSELECT -DSVR4 -DDIRENT -DHDBUUCP -DBIGBUFOK \
  3685.     -DUW7 -DNOGETUSERSHELL -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DNOLSTAT \
  3686.     -DFNFLOAT -DCK_NEWTERM $(KFLAGS)" \
  3687.     "LIBS=-lsocket -lnsl -lcurses -ltermcap -lcrypt -lm -lresolv $(LIBS)" \
  3688.     "LNKFLAGS = -s"
  3689.  
  3690. #UnixWare 7 with POSIX cfset[oi]speed() to allow high serial speeds.
  3691. #(but the high speeds don't work)
  3692. unixware7p:
  3693.     @echo 'Making C-Kermit $(CKVER) for UnixWare 7 with POSIX i/o...'
  3694.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3695.     "CFLAGS = -O -DUNIXWARE -DSELECT -DSVR4 -DDIRENT -DHDBUUCP -DBIGBUFOK \
  3696.     -DUW7 -DNOGETUSERSHELL -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DPOSIX \
  3697.     -DFNFLOAT -DCK_NEWTERM -DNOLSTAT $(KFLAGS)" \
  3698.     "LIBS=-lsocket -lnsl -lcurses -ltermcap -lcrypt -lm -lresolv $(LIBS)" \
  3699.     "LNKFLAGS = -s"
  3700.  
  3701. # UnixWare 7 built with gcc - This does not work at all...
  3702. # Reportedly gcc 2.8.1 is broken on Unixware 7.  Try egcs?
  3703. unixware7g:
  3704.     @echo 'Making C-Kermit $(CKVER) for UnixWare 7 with gcc...'
  3705.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3706.     "CC = gcc" "CC2 = gcc" "LNKFLAGS = -s -shlib"
  3707.     "CFLAGS = -O -DUNIXWARE -DSELECT -DSVR4 -DDIRENT -DHDBUUCP -DBIGBUFOK \
  3708.     -DUW7 -DNOGETUSERSHELL -DSTERMIOX  -DCK_CURSES -DTCPSOCKET -DNOLSTAT \
  3709.     -DFNFLOAT -DCK_NEWTERM $(KFLAGS)" \
  3710.     "LIBS=-lsocket -lnsl -lcurses -ltermcap -lcrypt -lm -lresolv $(LIBS)" \
  3711.     "LNKFLAGS = -s"
  3712.  
  3713. unixware7:
  3714.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=$(KFLAGS)" unixware7t \
  3715.     KTARGET=$${KTARGET:-$(@)}
  3716.  
  3717. uw7:
  3718.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=$(KFLAGS)" unixware7t \
  3719.     KTARGET=$${KTARGET:-$(@)}
  3720.  
  3721. #SCO OpenUNIX 8.0
  3722. ou8:
  3723.     @echo 'Making C-Kermit $(CKVER) for Open UNIX 8...'
  3724.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=-DOU8 $(KFLAGS)" unixware7t \
  3725.     KTARGET=$${KTARGET:-$(@)}
  3726.  
  3727. #UnixWare 7 with OpenSSL
  3728. uw7ssl:
  3729.     @echo 'Making C-Kermit $(CKVER) for UnixWare 7 and OpenSSL...'
  3730.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} \
  3731.     "CFLAGS = -O -DCK_AUTHENTICATION -DCK_SSL -DCK_SHADOW \
  3732.     -DUNIXWARE -DSELECT -DSVR4 -DDIRENT -DHDBUUCP -DBIGBUFOK \
  3733.     -DFNFLOAT -DNOGETUSERSHELL -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DPOSIX \
  3734.     -DUW7 -DUSETCSETSPEED -DCK_NEWTERM -DNOLSTAT -DDCLTIMEVAL \
  3735.     $(SSLINC) $(KFLAGS)" \
  3736.     "LIBS=-lsocket -lnsl -lcurses -ltermcap -lcrypt -lm -lresolv \
  3737.     -lgen -lcudk70 $(SSLLIB) -lssl -lcrypto $(LIBS)" \
  3738.     "LNKFLAGS = -s"
  3739.  
  3740. #As above but includes Shadow password support needed for IKSD.
  3741. uw7iksd:
  3742.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=-DCK_SHADOW $(KFLAGS)" \
  3743.     KTARGET=$${KTARGET:-$(@)} "LIBS= -lgen" unixware7t
  3744.  
  3745. #As above but links with static API for realpath() so a binary built
  3746. #with this target on UW7.1 will also work on 7.0.  Requires SCO UDK
  3747. #rather than the stock compiler.
  3748. uw7iksdudk:
  3749.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=-DCK_SHADOW $(KFLAGS)" \
  3750.     KTARGET=$${KTARGET:-$(@)} "LIBS= -lgen -lcudk70" unixware7t
  3751.  
  3752. #ESIX SVR4.0.3 or 4.04 with TCP/IP support.
  3753. #Has <sys/termiox.h>, ANSI C function prototyping disabled.
  3754. #Add -m486 to CFLAGS if desired.
  3755. esixr4:
  3756.     @echo 'Making C-Kermit $(CKVER) for ESIX SVR4 + TCP/IP...'
  3757.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3758.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DNOANSI \
  3759.     -DSTERMIOX -DTCPSOCKET $(KFLAGS)" "LNKFLAGS = -s" \
  3760.     "LIBS = -lsocket -lnsl"
  3761.  
  3762. #AT&T UNIX System V R4.
  3763. #Has <sys/termiox.h>, Wollongong WIN/TCP TCP/IP.
  3764. sys5r4sxnet:
  3765.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  3766.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3767.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP \
  3768.     -DSTERMIOX -DWOLLONGONG $(KFLAGS)" "LNKFLAGS = -s"
  3769.  
  3770. #AT&T UNIX System V R4, no <termio.x> or <sys/termio.x>.
  3771. sys5r4nx:
  3772.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  3773.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3774.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DNOLEARN $(KFLAGS)" \
  3775.     "LNKFLAGS = -s"
  3776.  
  3777. #AT&T UNIX System V R4, no <termio.x> or <sys/termio.x>, curses, TCP/IP.
  3778. sys5r4nxnetc:
  3779.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  3780.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3781.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP \
  3782.     -DCK_CURSES -DTCPSOCKET $(KFLAGS)" \
  3783.     "LIBS = -lcurses -lsocket -lnsl -ltcpip" \
  3784.     "LNKFLAGS = -s"
  3785.  
  3786. #AT&T UNIX System V R4, no <termio.x> or <sys/termio.x>, Wollongong TCP/IP.
  3787. sys5r4nxtwg:
  3788.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  3789.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3790.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DWOLLONGONG $(KFLAGS)"
  3791.     "LNKFLAGS = -s"
  3792.  
  3793. #ICL UNIX System V R4.(DRS N/X) version :-
  3794. #UNIX System V Release 4.0 ICL DRS 6000 (SPARC)
  3795. #DRS/NX 6000 SVR4 Version 5  Level 1  Increment 4
  3796. #Has <sys/termiox.h>, regular Berkeley sockets library, i.e. in.h and inet.h
  3797. #are not misplaced in sys (rather than netinet and arpa, respectively).
  3798. #Uses ANSI C constructs, advisory file locking on devices, etc.
  3799. #Remove -lnsl if it causes trouble.
  3800. iclsys5r4:
  3801.     @echo 'Making C-Kermit $(CKVER) for ICL UNIX System V R4 (DRS N/X)'
  3802.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3803.     "CFLAGS = -O -DSVR4 -DICL_SVR4 -DDIRENT -DHDBUUCP -DNOGETUSERSHELL \
  3804.     -DSTERMIOX -DTCPSOCKET $(KFLAGS)" \
  3805.     "LIBS= -lsocket -lnsl -lresolv " "LNKFLAGS = -s"
  3806.  
  3807. #As above but for DRS/NX 4.2MP 7MPlus.
  3808. iclsys5r4m+:
  3809.     @echo 'Making C-Kermit $(CKVER) for ICL UNIX System V R4 DRS/NX 4.2MP+'
  3810.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3811.     "CFLAGS = -O -DSVR4 -DICL_SVR4 -DDIRENT -DHDBUUCP -DNOIKSD \
  3812.     -DSTERMIOX -DTCPSOCKET $(KFLAGS)" \
  3813.     "LIBS= -lsocket -lnsl -lm -lc -g -lgen " "LNKFLAGS = -s"
  3814.  
  3815. #As above but for DRS/NX 4.2MP 7MPlus with IKSD support.
  3816. iclsys5r4m+iksd:
  3817.     @echo 'Making C-Kermit $(CKVER) for ICL UNIX System V R4 DRS/NX 4.2MP+'
  3818.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3819.     "CFLAGS = -O -DSVR4 -DICL_SVR4 -DDIRENT -DHDBUUCP -DNOGETUSERSHELL \
  3820.     -DSTERMIOX -DTCPSOCKET $(KFLAGS)" \
  3821.     "LIBS= -lsocket -lnsl -lm -lc -g -lgen -lresolv " "LNKFLAGS = -s"
  3822.  
  3823. iclsys5r4_486:
  3824.     $(MAKE) "MAKE=$(MAKE)" iclsys5r4 KTARGET=$${KTARGET:-$(@)}
  3825.  
  3826. #Data General DG/UX 4.30 (System V R3) for DG AViiON, with TCP/IP support.
  3827. dgux430:
  3828.     @echo 'Making C-Kermit $(CKVER) for DG AViiON DG/UX 4.30...'
  3829.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3830.     "CFLAGS = -O -DDGUX430 -DSVR3 -DDIRENT -DTCPSOCKET \
  3831.     -DNOINADDRX -DNOGETUSERSHELL $(KFLAGS)"
  3832.  
  3833. #Data General DG/UX 4.30 for DG AViiON, with TCP/IP support with BSDisms.
  3834. dgux430bsd:
  3835.     @echo 'Making C-Kermit $(CKVER) for DG AViiON DG/UX 4.30...'
  3836.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3837.     "CFLAGS = -O -DDGUX430 -D_BSD_SOURCE -DBSD4 \
  3838.     -DNOINADDRX -DTCPSOCKET -DNOGETUSERSHELL $(KFLAGS)"
  3839.  
  3840. #Data General DG/UX 5.4 (System V R4) for DG AViiON, with TCP/IP support.
  3841. #Add -lsocket -lnsl if inet_addr comes up missing...
  3842. #Hmmm - I really think CK_POLL can be removed from this one in which case
  3843. #there is no difference between dgux540 and dgux540i.
  3844. dgux540:
  3845.     @echo 'Making C-Kermit $(CKVER) for DG AViiON DG/UX 5.40...'
  3846.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3847.     "CFLAGS = -O -DDGUX540 -DDIRENT -DHDBUUCP -DNOINADDRX \
  3848.     -DSTERMIOX -DTCPSOCKET -DCK_POLL -DNOGETUSERSHELL $(KFLAGS)"
  3849.  
  3850. #Data General DG/UX 5.40 (System V R4) for Intel AViiON, with TCP/IP support.
  3851. dgux540i:
  3852.     @echo 'Making C-Kermit $(CKVER) for DG AViiON DG/UX 5.40...'
  3853.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3854.     "CFLAGS = -O -DDGUX540 -DDIRENT -DHDBUUCP -DNOINADDRX \
  3855.     -DSTERMIOX -DTCPSOCKET -DNOGETUSERSHELL $(KFLAGS)" \
  3856.     "LIBS = -lsocket -lnsl"
  3857.  
  3858. dgux54:
  3859.     make dgux540 KTARGET=$${KTARGET:-$(@)}
  3860.  
  3861. #Data General DG/UX 5.4 (= System V R4) for DG AViiON, with TCP/IP support.
  3862. # And curses.
  3863. dgux540c:
  3864.     @echo 'Making C-Kermit $(CKVER) for DG AViiON DG/UX 5.4...'
  3865.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3866.     "CFLAGS = -O -DDGUX540 -DDIRENT -DHDBUUCP -DNOINADDRX \
  3867.     -DSTERMIOX -DTCPSOCKET -DCK_CURSES -DCK_NEWTERM -DNOGETUSERSHELL \
  3868.     $(KFLAGS)" "LIBS= -lcurses8 -ltermcap" "LNKFLAGS = -s"
  3869.  
  3870. #As above but for Intel - only difference is name library names.
  3871. dgux540ic:
  3872.     @echo 'Making C-Kermit $(CKVER) for DG AViiON DG/UX 5.40...'
  3873.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3874.     "CFLAGS = -O -DDGUX540 -DDIRENT -DHDBUUCP -DNOINADDRX \
  3875.     -DSTERMIOX -DTCPSOCKET -DCK_CURSES -DCK_NEWTERM -DNOGETUSERSHELL \
  3876.     $(KFLAGS)" "LIBS = -lsocket -lnsl -lcurses -ltermcap"
  3877.  
  3878. dgux54c:
  3879.     make dgux540c KTARGET=$${KTARGET:-$(@)}
  3880.  
  3881. #DG/UX 5.4R3.10
  3882. dgux54310:
  3883.     @echo 'Making C-Kermit $(CKVER) for DG AViiON DG/UX 5.4R3...'
  3884.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3885.     "CFLAGS = -DDGUX540 -DDGUX54310 -DDIRENT -DHDBUUCP -DSELECT \
  3886.     -DSTERMIOX -DTCPSOCKET -DCK_CURSES -DCK_NEWTERM    -DNOGETUSERSHELL \
  3887.     -DNOINADDRX $(KFLAGS)" "LIBS= -lcurses8 -ltermcap" "LNKFLAGS = -s"
  3888.  
  3889. #DG/UX 5.4R4.10 - Includes everything.
  3890. dgux54410:
  3891.     @echo 'Making C-Kermit $(CKVER) for DG/UX 5.4R4.10...'
  3892.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3893.     "CFLAGS = -O -DDGUX540 -DDGUX54410 -DDIRENT -DHDBUUCP -DSELECT \
  3894.     -DSTERMIOX -DTCPSOCKET -DCK_CURSES -DCK_NEWTERM -DNOGETUSERSHELL \
  3895.     -DNOINADDRX $(KFLAGS)" "LIBS = -lsocket -lnsl -lcurses -ltermcap"
  3896.  
  3897. #DG/UX 5.4R4.11 - Includes everything.
  3898. dgux54411:
  3899.     @echo 'Making C-Kermit $(CKVER) for DG/UX 5.4R4.11...'
  3900.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3901.     "CFLAGS = -O -DDGUX540 -DDGUX54411 -DDIRENT -DHDBUUCP -DSELECT \
  3902.     -DSTERMIOX -DTCPSOCKET -DCK_CURSES -DCK_NEWTERM -DNOGETUSERSHELL \
  3903.     -DNOINADDRX $(KFLAGS)" "LIBS = -lsocket -lnsl -lcurses -ltermcap"
  3904.  
  3905. #DG/UX 5.4R4.20 - Includes everything.
  3906. dgux54420:
  3907.     @echo 'Making C-Kermit $(CKVER) for DG/UX 5.4R4.20...'
  3908.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3909.     "CFLAGS = -O -DDGUX540 -DDGUX54420 -DDIRENT -DHDBUUCP -DSELECT \
  3910.     -DSTERMIOX -DTCPSOCKET -DCK_CURSES -DCK_NEWTERM -DNOGETUSERSHELL \
  3911.     -DNOINADDRX $(KFLAGS)" \
  3912.     "LIBS = -lsocket -lresolv -lnsl -lcurses -ltermcap"
  3913.  
  3914. #Silicon Graphics System V R3 with BSD file system (IRIS)
  3915. iris:
  3916.     @echo Making C-Kermit $(CKVER) for Silicon Graphics IRIX pre-3.3...
  3917.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3918.     "CFLAGS = -O -DSVR3 -DLONGFN -DNOLEARN $(KFLAGS) -I/usr/include/bsd" \
  3919.     "LIBS = -lbsd"
  3920.  
  3921. #Silicon Graphics IRIS System V R3
  3922. irix33:
  3923.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 3.3...'
  3924.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3925.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DNOLEARN $(KFLAGS) -O" \
  3926.     "LNKFLAGS = -s"
  3927.  
  3928. #Silicon Graphics Iris Indigo with IRIX 4.0.0 or 5.0...
  3929. #Strict ANSI C compilation, TCP/IP support included
  3930. irix40:
  3931.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 4.0...'
  3932.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3933.     "CFLAGS = -DIRIX40 -DSVR3 -DDIRENT -DHDBUUCP -DPWID_T=uid_t \
  3934.     -DCK_ANSIC -DTCPSOCKET $(KFLAGS) -O -Olimit 1600 -I/usr/include/bsd" \
  3935.     "LNKFLAGS = -s"
  3936.  
  3937. #As above, but with fullscreen display (curses) and Sun Yellow Pages support.
  3938. #NOTE: IRIX versions prior to 5 run COFF binaries.
  3939. irix40ypc:
  3940.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 4.0.'
  3941.     @echo 'Includes fullscreen file display and Sun Yellow Pages...'
  3942.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3943.     "CFLAGS = -DIRIX40 -DSVR3 -DDIRENT -DHDBUUCP -DCK_CURSES \
  3944.     -DPWID_T=uid_t -DCK_ANSIC -DTCPSOCKET $(KFLAGS) \
  3945.     -O -Olimit 1600 -I/usr/include/bsd" \
  3946.     "LIBS = -lcurses -lsun" "LNKFLAGS = -s"
  3947.  
  3948. # Silicon Graphics Iris Series 4D/*, IRIX 4.0.x, -O4 ucode optimized.
  3949. # Huge temporary file space needed for ucode optimizer.  If you get an error
  3950. # like "ugen: internal error writing to /tmp/ctmca08777: Error 0", define the
  3951. # the TMPDIR environment variable to point to a file system that has more
  3952. # space available, e.g. "setenv TMPDIR /usr/tmp".
  3953. irix40u:
  3954.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 4.0...'
  3955.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3956.     "CFLAGS = -DIRIX40 -DSVR3 -DDIRENT -DHDBUUCP -DPWID_T=uid_t \
  3957.     -DCK_ANSIC -DTCPSOCKET $(KFLAGS) -O4 -Olimit 1600" \
  3958.     "LNKFLAGS=-O4 -Olimit 1600 -s" "EXT=u"
  3959.  
  3960. # As above, with Curses Support added
  3961. irix40uc:
  3962.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 4.0...'
  3963.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3964.     "CFLAGS = -DIRIX40 -DSVR3 -DDIRENT -DHDBUUCP -DPWID_T=uid_t \
  3965.     -DCK_ANSIC -DCK_CURSES -DTCPSOCKET $(KFLAGS) -O4 -Olimit 1600" \
  3966.     "LNKFLAGS=-O4 -Olimit 1600 -s" "EXT=u" "LIBS= -lcurses -ltermcap"
  3967.  
  3968. #Silicon Graphics IRIX 5.x.
  3969. #Yellow Pages and Curses support included.
  3970. #IRIX version 5.x can run COFF or ELF binaries.
  3971. irix51:
  3972.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 5.x'
  3973.     @echo 'Includes fullscreen file display and Yellow Pages...'
  3974.     @echo 'Add -mips<n> to CFLAGS specify a particular hardware target.'
  3975.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3976.     "CFLAGS = -DIRIX51 -DSVR4 -DDIRENT -DHDBUUCP -DCK_CURSES -DCK_NEWTERM \
  3977.     -DPWID_T=uid_t -DCK_ANSIC -DTCPSOCKET -DSELECT -DNOGETUSERSHELL \
  3978.     -DSYSTIMEH -DDCLPOPEN -DDCLFDOPEN $(KFLAGS) -ansi -O -Olimit 3000" \
  3979.     "LIBS = -lcurses" "LNKFLAGS = -s"
  3980.  
  3981. #Use this one if irix51 blows up due to lack of swap space or whatever.
  3982. irix51x:
  3983.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 5.x'
  3984.     @echo 'Includes fullscreen file display and Yellow Pages...'
  3985.     @echo 'Add -mips<n> to CFLAGS specify a particular hardware target.'
  3986.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3987.     "CFLAGS = -DIRIX51 -DSVR4 -DDIRENT -DHDBUUCP -DCK_CURSES -DCK_NEWTERM \
  3988.     -DPWID_T=uid_t -DCK_ANSIC -DTCPSOCKET -DSELECT -DNOGETUSERSHELL \
  3989.     -DSYSTIMEH -DDCLPOPEN -DDCLFDOPEN $(KFLAGS)" \
  3990.     "LIBS = -lcurses" "LNKFLAGS = -s"
  3991.  
  3992. irix51ypc:
  3993.     $(MAKE) "MAKE=$(MAKE)" irix51 KTARGET=$${KTARGET:-$(@)} \
  3994.     "KFLAGS= $(KFLAGS)"
  3995.  
  3996. #IRIX 5.2 adds RTS/CTS
  3997. irix52:
  3998.     $(MAKE) "MAKE=$(MAKE)" irix51 KTARGET=$${KTARGET:-$(@)} \
  3999.     "KFLAGS=-DIRIX52 -DCK_RTSCTS $(KFLAGS)"
  4000.  
  4001. irix53:
  4002.     $(MAKE) "MAKE=$(MAKE)" irix51 KTARGET=$${KTARGET:-$(@)} \
  4003.     "KFLAGS=-DIRIX52 -DIRIX53 -DCK_RTSCTS $(KFLAGS)"
  4004.  
  4005. irix53x:
  4006.     $(MAKE) "MAKE=$(MAKE)" irix51x KTARGET=$${KTARGET:-$(@)} \
  4007.     "KFLAGS=-DIRIX52 -DIRIX53 -DCK_RTSCTS $(KFLAGS)"
  4008.  
  4009. #Silicon Graphics IRIX 6.[024] common stuff.
  4010. #Yellow Pages and Curses support included.
  4011. #IRIX version 6.0 and later runs only ELF binaries.
  4012. #Depends on code changes in ckudeb.h that make -DIRIX6x define all
  4013. #lower IRIX6x values and IRIX51.
  4014. irix6x:
  4015.     @echo 'Includes fullscreen file display and Yellow Pages...'
  4016.     @echo 'Add -mips<n> to specify a particular hardware target.'
  4017.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4018.     "CFLAGS = -DSVR4 -DDIRENT -DHDBUUCP -DNOGETUSERSHELL \
  4019.     -DCK_CURSES -DCK_NEWTERM -DPWID_T=uid_t -DCK_ANSIC -DTCPSOCKET \
  4020.     -DSELECT -DCK_RTSCTS -O $(KFLAGS)" \
  4021.     "LIBS = -lcurses" "LNKFLAGS = -s $(LNKFLAGS)"
  4022.  
  4023. #Silicon Graphics IRIX 6.0.
  4024. irix60:
  4025.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 6.0'
  4026.     @$(MAKE) "MAKE=$(MAKE)" \
  4027.     "KFLAGS=-DIRIX60 -Olimit 2138 $(KFLAGS)" \
  4028.     irix6x KTARGET=$${KTARGET:-$(@)}
  4029.  
  4030. #Silicon Graphics IRIX 6.2.
  4031. #Serial speeds > 38400 are available in IRIX 6.2 on O-class machines only.
  4032. #Note: Olimit must be a number > 0.
  4033. irix62:
  4034.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 6.2'
  4035.     @$(MAKE) "MAKE=$(MAKE)" \
  4036.     LNKFLAGS="-Wl,-woff,84" \
  4037.     "KFLAGS=-DIRIX62 -Olimit 4700 $(KFLAGS)" \
  4038.     irix6x KTARGET=$${KTARGET:-$(@)}
  4039.  
  4040. #Silicon Graphics IRIX 6.3.
  4041. irix63:
  4042.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 6.3'
  4043.     @$(MAKE) "MAKE=$(MAKE)" irix62 KTARGET=$${KTARGET:-$(@)} \
  4044.     "KFLAGS=-DIRIX63"
  4045.  
  4046. #Silicon Graphics IRIX 6.4.
  4047. # -woff,84 to linker stops complaints about no symbols loaded from
  4048. # curses, and -woff 1110 stops complaints about unreachable "break;"
  4049. # statements in ckcpro.c among others.
  4050. # tested on SGI Octane, running IRIX 6.4 up to 115200 bps.
  4051. # -Olimit 0 means infinite.
  4052. irix64:
  4053.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 6.4'
  4054.     @$(MAKE) "MAKE=$(MAKE)" \
  4055.     LNKFLAGS="-Wl,-woff,84" \
  4056.     "KFLAGS=-DIRIX64 -DCK_RTSCTS -Olimit 3000 -woff 1110 $(KFLAGS)" \
  4057.     irix6x KTARGET=$${KTARGET:-$(@)}
  4058.  
  4059. irix64gcc:
  4060.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 6.4 gcc'
  4061.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  4062.     "CFLAGS= -DSVR4 -DIRIX64 -DCK_CURSES -DTCPSOCKET -DNOCOTFMC \
  4063.     $(KFLAGS) -O" "LIBS= -lcurses -ltermcap -lcrypt"
  4064.  
  4065. #Note the new Optimization option syntax for MIPSpro CC 7.2.1.2m.
  4066. irix65:
  4067.     @echo 'Making C-Kermit $(CKVER) for SGI IRIX 6.5'
  4068.     @$(MAKE) "MAKE=$(MAKE)" LNKFLAGS="-Wl,-woff,84" \
  4069.     "KFLAGS=-DIRIX65 -DCK_RTSCTS -OPT:Olimit=0 -woff 1110,1552,1174 \
  4070.     $(KFLAGS)" \
  4071.     irix6x KTARGET=$${KTARGET:-$(@)}
  4072.  
  4073. irix6x+krb5:
  4074.     @echo 'Includes fullscreen file display and Yellow Pages...'
  4075.     @echo 'Add -mips<n> to specify a particular hardware target.'
  4076.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} \
  4077.     "CFLAGS = -DSVR4 -DDIRENT -DHDBUUCP -DNOGETUSERSHELL \
  4078.     -DCK_CURSES -DCK_NEWTERM -DPWID_T=uid_t -DCK_ANSIC -DTCPSOCKET\
  4079.     -DSELECT -DCK_RTSCTS -O \
  4080.     -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 -DCK_ENCRYPTION -DCK_DES \
  4081.     $(K5INC) $(K5INC)/krb5 $(KFLAGS)" \
  4082.     "LIBS = -lcurses $(K5LIB) -ldes425 -lkrb5 \
  4083.     -lcom_err -lcrypto -lcrypt -lgssapi_krb5" \
  4084.     "LNKFLAGS = -s $(LNKFLAGS)"
  4085.  
  4086. irix65+krb5:
  4087.     @echo 'Making C-Kermit $(CKVER) for SGI IRIX 6.5'
  4088.     @$(MAKE) "MAKE=$(MAKE)" \
  4089.     LNKFLAGS="-Wl,-woff,84" \
  4090.     "KFLAGS=-DIRIX65 -DCK_RTSCTS -OPT:Olimit=0 -woff 1110,1552,1174 \
  4091.     $(KFLAGS)" \
  4092.     irix6x+krb5 KTARGET=$${KTARGET:-$(@)}
  4093.  
  4094. #In case they type "make sys5"...
  4095. sys5:
  4096.     $(MAKE) "MAKE=$(MAKE)" sys3 KTARGET=$${KTARGET:-$(@)}
  4097.  
  4098. #Generic ATT System III or System V (with I&D space)
  4099. sys3:
  4100.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System III'
  4101.     @echo 'or System V R2 or earlier...'
  4102.     @echo 'add -DNOMKDIR if mkdir is an undefined symbol.'
  4103.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4104.     "CFLAGS = -DATTSV -DNOUNICODE -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL \
  4105.     -DNOINITGROUPS -DNOFTRUNCATE -DNOREALPATH -DNOLEARN $(KFLAGS) -i -O" \
  4106.     "LNKFLAGS = -i"
  4107.  
  4108. #Generic ATT System III or System V (no I&D space)
  4109. sys3nid:
  4110.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System III'
  4111.     @echo 'or System V R2 or earlier, no I&D space...'
  4112.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4113.     "CFLAGS = -DATTSV -DNOREALPATH -DNOUNICODE -DNOSYSLOG -DNOSYMLINK \
  4114.     -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE -DNOLEARN $(KFLAGS) -O" \
  4115.     "LNKFLAGS ="
  4116.  
  4117. #Generic ATT System III or System V R2 or earlier, "no void":
  4118. #special entry to remove "Illegal pointer combination" warnings.
  4119. sys3nv:
  4120.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System III'
  4121.     @echo 'or System V R2 or earlier...'
  4122.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4123.     "CFLAGS= -DATTSV -DNOREALPATH -DNOUNICODE -DNOSYSLOG -DNOGETUSERSHELL \
  4124.     -DNOSYMLINK -DNOFTRUNCATE -DNOINITGROUPS -DNOLEARN \
  4125.     -Dvoid=int $(KFLAGS) -i -O" \
  4126.     "LNKFLAGS = -i"
  4127.  
  4128. # AT&T 7300 UNIX PC.  As of C-Kermit 6.1, many of these entries don't work
  4129. # any more due to "Out of memory" or "Too many defines" errors during
  4130. # compilation, at least not on systems without lots of memory.  The sys3upcgc
  4131. # entry works (using gcc) with optimization removed, and might also work
  4132. # with optimization enabled on machines with larger memories.
  4133.  
  4134. #AT&T 7300/UNIX PC (3B1) systems, sys3 but special handling for internal modem.
  4135. #Link with the shared library -- the conflict with openi in shared library
  4136. #is solved with -Dopeni=xopeni.  Note that the xermit target can't be used
  4137. #for the Unix PC; there is no select().
  4138. sys3upc:
  4139.     @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC, shared lib...'
  4140.     @echo 'If shared lib causes trouble, use make sys3upcold.'
  4141.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4142.     "CFLAGS = -O -DATT7300 -DNOMKDIR -DUSE_MEMCPY -DNOREALPATH -DNOLEARN \
  4143.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  4144.     -DNOREDIRECT -DNOGFTIMER -DNOUNICODE $(KFLAGS) -Dopeni=xopeni" \
  4145.     "CC2 = ld /lib/crt0s.o /lib/shlib.ifile" "LNKFLAGS = -s"
  4146.  
  4147. #AT&T 7300/Unix PC systems, minimum kermit for those with smaller amounts
  4148. #of memory.
  4149. sys3upcm:
  4150.     @echo Minimum interactive
  4151.     $(MAKE) "MAKE=$(MAKE)" sys3upc KTARGET=$${KTARGET:-$(@)} \
  4152.     "KFLAGS=-DNOSPL -DNOFRILLS -DNOHELP -DNODEBUG -DNOTLOG -DNOCSETS \
  4153.     -DNOSYSLOG -DNOSETKEY -DNOREALPATH"
  4154.  
  4155. #AT&T 7300/UNIX PC (3B1) systems, with curses support.
  4156. #Curses and the shared library don't get along, so we don't use the
  4157. #shared library.  We need to include CK_NEWTERM to avoid a conflict
  4158. #with curses and buffering on stdout.  Merged with submission by
  4159. #Robert Weiner/Programming Plus, rweiner@watsun.cc.columbia.edu.
  4160. #We don't need -Dopeni=xopeni since we're not using the shared library,
  4161. #but we keep it to be consistent with the other entries.
  4162. sys3upcc:
  4163.     @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC, curses...'
  4164.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4165.     "CFLAGS = -O -DATT7300 -DNOREALPATH \
  4166.     -DCK_CURSES -DCK_NEWTERM -DNOMKDIR -DNOREDIRECT -DNOGFTIMER -DNOLEARN \
  4167.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  4168.     -DUSE_MEMCPY -DNOUNICODE $(KFLAGS) -Dopeni=xopeni" \
  4169.     "LIBS = -lcurses" "LNKFLAGS = -s"
  4170.  
  4171. #Like sys3upcc but for AT&T UNIX 3.51m (released as a patch on Fix Disk 2),
  4172. #adds hardware flow control.
  4173. att351m:
  4174.     $(MAKE) "MAKE=$(MAKE)" sys3upcc KTARGET=$${KTARGET:-$(@)} \
  4175.     "KFLAGS=-DCK_RTSCTS -DUNIX351M"
  4176.  
  4177. #As above but with gcc.
  4178. att351gm:
  4179.     $(MAKE) "MAKE=$(MAKE)" sys3upcgc KTARGET=$${KTARGET:-$(@)} \
  4180.     "KFLAGS=-DCK_RTSCTS -DUNIX351M"
  4181.  
  4182. #AT&T 7300 UNIX PC (3B1), as above, but no newterm().
  4183. sys3upcx:
  4184.     @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC, curses...'
  4185.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4186.     "CFLAGS = -O -DATT7300 -DNOREALPATH -DNOUNICODE -DNOLEARN \
  4187.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  4188.     -DCK_CURSES -DNOMKDIR -DNOREDIRECT -DNOGFTIMER -DUSE_MEMCPY $(KFLAGS) \
  4189.     -Dopeni=xopeni" "LIBS = -lcurses -ltermcap" "LNKFLAGS = -s"
  4190.  
  4191. #AT&T 7300/UNIX PC (3B1) systems, with curses and shared library support.
  4192. sys3upcshcc:
  4193.     @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC, shared lib...'
  4194.     @echo 'With curses.  Requires shcc.'
  4195.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4196.     "CFLAGS = -O -DATT7300 -DNOMKDIR -DNOREALPATH -DNOLEARN \
  4197.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  4198.     -DCK_NEWTERM -DCK_CURSES  -DNOREDIRECT -DNOGFTIMER \
  4199.     -DUSE_MEMCPY -DNOUNICODE $(KFLAGS) -Dopeni=xopeni" \
  4200.     "LNKFLAGS = -i -s" "CC = shcc" "CC2 = shcc" "LIBS = -lcurses"
  4201.  
  4202. #AT&T 7300/UNIX PC (3B1) systems, as above, no curses, but use gcc.
  4203. sys3upcg:
  4204.     @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC...'
  4205.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4206.     "CFLAGS = -DATT7300 -DNOREDIRECT -DUSE_MEMCPY -DNOUNICODE -DNOLEARN \
  4207.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  4208.     -DNOGFTIMER -DNOMKDIR -DNOREALPATH $(KFLAGS) -Dopeni=xopeni" \
  4209.     "CC = gcc" "CC2 = gcc" "LNKFLAGS = -s -shlib"
  4210.  
  4211. #AT&T 7300/UNIX PC (3B1) systems, curses and gcc.
  4212. #Optimization omitted -- add it back in if your machine has lots of memory.
  4213. sys3upcgc:
  4214.     @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC, curses...'
  4215.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4216.     "CFLAGS = -DATT7300 -DNOREDIRECT -DUSE_MEMCPY -DNOGFTIMER -DNOUNICODE \
  4217.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  4218.     -DCK_CURSES -DCK_NEWTERM -DNOMKDIR -DNOREALPATH -DNOLEARN $(KFLAGS)" \
  4219.     "CC = gcc" "CC2 = gcc" "LIBS = -lcurses" "LNKFLAGS = -s"
  4220.  
  4221. #AT&T 7300/UNIX PC (3B1) systems, special handling for internal modem.
  4222. #No FULLSCREEN file transfer display (curses).
  4223. sys3upcold:
  4224.     @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC...'
  4225.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4226.     "CFLAGS = -DATT7300 -DNOMKDIR -DUSE_MEMCPY -DNOUNICODE -DNOLEARN \
  4227.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  4228.     -DNOGFTIMER -DNOREDIRECT -DNOREALPATH $(KFLAGS) -O" "LNKFLAGS = -i"
  4229.  
  4230. #As above, but with gcc. mininum features - fits on a 400K UNIX PC floppy
  4231. #after compression with room to spare; add -DNOSHOW or other -DNOxxxx items
  4232. #to reduce size even further.
  4233. sys3upcgm:
  4234.     @echo Minimum interactive
  4235.     $(MAKE) "MAKE=$(MAKE)" sys3upcg KTARGET=$${KTARGET:-$(@)} \
  4236.     "KFLAGS=-DNOSPL -DNOFRILLS -DNOHELP -DNODEBUG -DNOTLOG -DNOCSETS \
  4237.     -DNOSETKEY $(KFLAGS)"
  4238.  
  4239. #This target is designed to create a version with the most features possible
  4240. #that, after compression, still fits on a 400K UNIX PC floppy.
  4241. sys3upcgfd:
  4242.     @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC floppy...'
  4243.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4244.     "CFLAGS = -DATT7300 -DNOREDIRECT -DUSE_MEMCPY -DNOSPL -DNOLEARN \
  4245.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  4246.     -DNOGFTIMER -DNOREALPATH -Dopeni=xopeni \
  4247.     -DNOHELP -DNODEBUG -DNOTLOG -DNOCSETS -DNOSETKEY -DNOMKDIR $(KFLAGS)" \
  4248.     "CC = gcc" "CC2 = gcc" "LNKFLAGS = -s"
  4249.  
  4250. #AT&T 6300 PLUS (warning, -O might make it run out of space).
  4251. #NOTE: Remove -DHDBUUCP if not using Honey DanBer UUCP.
  4252. att6300:
  4253.     @echo 'Making C-Kermit $(CKVER) for AT&T 6300 PLUS...'
  4254.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4255.     "CFLAGS = -DATT6300 -DHDBUUCP -DNOFILEH -DNOREALPATH -DNOLEARN \
  4256.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  4257.     -DNOUNICODE $(KFLAGS) -O -Ml -i" "LNKFLAGS = -i -Ml"
  4258.  
  4259. #As above, but with curses support.  Debugging disabled to prevent thrashing.
  4260. att6300c:
  4261.     @echo 'Making C-Kermit $(CKVER) for AT&T 6300 PLUS...'
  4262.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4263.     "CFLAGS = -DATT6300 -DHDBUUCP -DNOFILEH -DNOCSETS -DNOREALPATH \
  4264.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  4265.     -DCK_CURSES -DNODEBUG -DNOUNICODE -DNOLEARN $(KFLAGS) -O -Ml -i" \
  4266.     "LNKFLAGS = -i -Ml" "LIBS = -lcurses"
  4267.  
  4268. #AT&T 6300 PLUS with no curses, no debugging (about 34K smaller)
  4269. # -Optimization saves about 20K too.
  4270. att6300nd:
  4271.     @echo 'Making C-Kermit $(CKVER) for AT&T 6300 PLUS, no debugging...'
  4272.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4273.     "CFLAGS = -DATT6300 -DHDBUUCP -DNODEBUG -DNOFILEH -DNOREALPATH \
  4274.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  4275.     -DNOUNICODE -DNOLEARN $(KFLAGS) -O -i -Ml" "LNKFLAGS = -i -Ml"
  4276.  
  4277. #AT&T 3B2 and maybe 3B20-series computers running AT&T UNIX System V R3.
  4278. #This one was actually used to build C-Kermit 7.0 successfully on a 3B2/300.
  4279. att3b2:
  4280.     @echo 'Making C-Kermit $(CKVER) for AT&T 3B2'
  4281.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4282.     "CFLAGS = -DATTSV -DNOREDIRECT -DUSE_MEMCPY \
  4283.     -DNOTIMEVAL -DNOTIMEZONE -DMINIDIAL -DNOCHANNELIO -DNOBIGBUF \
  4284.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  4285.     -DNOGFTIMER -DNOREALPATH -Dopeni=xopeni -DNOFRILLS -DNOLEARN \
  4286.     -DNOHELP -DNODEBUG -DNOTLOG -DNOCSETS -DNOSETKEY -DNOMKDIR $(KFLAGS)" \
  4287.     "CC = gcc" "CC2 = gcc" "LNKFLAGS = -s"
  4288.  
  4289. # The next two are likely not to work as-is.
  4290.  
  4291. #AT&T 3B2, 3B20-series computers running AT&T UNIX System V.
  4292. #This is just generic System V with Honey DanBer UUCP, so refer to sys3hdb.
  4293. #Remove -DNONAWS if you can get away with it.
  4294. att3bx:
  4295.     $(MAKE) "MAKE=$(MAKE)" sys3hdb KTARGET=$${KTARGET:-$(@)} \
  4296.     "KFLAGS=$(KFLAGS) -DNONAWS -DNOTIMEVAL"
  4297.  
  4298. # 3Bx with charsets (except Unicode) but no curses.
  4299. att3bx1:
  4300.     @echo 'Making C-Kermit $(CKVER) for AT&T 3B2 or 3B20'
  4301.     @echo 'with Honey DanBer UUCP  no curses...'
  4302.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4303.     "CFLAGS = -DATTSV -DHDBUUCP $(KFLAGS) -DNOREDIRECT \
  4304.     -DNOTIMEVAL -DNOTIMEZONE -DMINIDIAL -DNOCHANNELIO -DNOBIGBUF \
  4305.     -DNOHELP -DNODEBUG -DNOGFTIMER -DNOLEARN \
  4306.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  4307.     -DNOREALPATH -DNOUNICODE -i" \
  4308.     "CC = gcc" "CC2 = gcc" "LNKFLAGS = -i -s"
  4309.  
  4310. #AT&T 3B2, 3B20-series computers running AT&T UNIX System V,
  4311. #with fullscreen file transfer display.
  4312. att3bxc:
  4313.     @echo 'Making C-Kermit $(CKVER) for AT&T 3B2 or 3B20'
  4314.     @echo 'with Honey DanBer UUCP and curses...'
  4315.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4316.     "CFLAGS = -DATTSV -DHDBUUCP -DNONAWS -DNOTIMEVAL $(KFLAGS) \
  4317.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  4318.     -DNOREALPATH -DCK_CURSES -DCK_NEWTERM -DNOUNICODE -DNOLEARN -i -O" \
  4319.     "LNKFLAGS = -i" "LIBS=-lcurses"
  4320.  
  4321. #3bx with curses but no charsets
  4322. att3bxc3:
  4323.     @echo 'Making C-Kermit $(CKVER) for AT&T 3B2 or 3B20'
  4324.     @echo 'with Honey DanBer UUCP with curses...  no CSETS'
  4325.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4326.     "CFLAGS = -DATTSV -DHDBUUCP $(KFLAGS) -DNOREDIRECT \
  4327.     -DNOTIMEVAL -DNOTIMEZONE -DMINIDIAL -DNOCHANNELIO -DNOBIGBUF \
  4328.     -DNOHELP -DNODEBUG -DNOGFTIMER -DNOLEARN \
  4329.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  4330.     -DNOREALPATH -DNOCSETS -DCK_CURSES -DCK_NEWTERM -i" \
  4331.     "CC = gcc" "CC2 = gcc" "LNKFLAGS = -i -s" "LIBS = -lcurses"
  4332.  
  4333. #Any System V R2 or earlier with Honey DanBer UUCP (same as above)
  4334. sys3hdb:
  4335.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System III'
  4336.     @echo 'or System V R2 or earlier with Honey DanBer UUCP...'
  4337.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4338.     "CFLAGS = -DATTSV -DHDBUUCP -DNOREALPATH -DNOUNICODE -DNOLEARN \
  4339.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  4340.     $(KFLAGS) -i -O" "LNKFLAGS = -i"
  4341.  
  4342. #Sperry/UNISYS 5000 UTS V 5.2 (System V R2), Honey DanBer UUCP
  4343. unisys5r2:
  4344.     @echo 'Making C-Kermit $(CKVER) for Sperry/UNISYS 5000 UTS V 5.2...'
  4345.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4346.     "CFLAGS = -DATTSV -DUNISYS52 -DHDBUUCP -DNOREALPATH -DNOUNICODE \
  4347.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  4348.     -DNOLEARN $(KFLAGS) -i -O" "LNKFLAGS = -i"
  4349.  
  4350. #In case they say "make sys5hdb" instead of "make sys3hdb"...
  4351. sys5hdb:
  4352.     $(MAKE) "MAKE=$(MAKE)" sys3hdb
  4353.  
  4354. #Create the common header line for all hpux[5-10]* entries. This extra entry is
  4355. #here because our header message length may differ for each C-Kermit version.
  4356. #Don't use 'fold -s' for HP-UX 5.x - 7.x! This option is there only since
  4357. #HP-UX 8.0!
  4358. hpux-header:
  4359.     @HPUX=`uname -r | sed -e 's/^[^1-9]*//' -e 's/\.00$$/.0/'` ; \
  4360.     [ "$(MESSAGE0)" ] && MESSAGE1="$(MESSAGE0)" ; \
  4361.     Message0='Making C-Kermit $(CKVER) for HP9000 HP-UX' ; \
  4362.     Message1=$${MESSAGE1:='without any extra compiler optimization'} ; \
  4363.     MessageH="$$Message0 $$HPUX" ; \
  4364.     case $$HPUX in \
  4365.       [567].*) echo "$$MessageH\n$$Message1" ;; \
  4366.           *.*) echo "$$MessageH $${Message1}$(MESSAGE1A)" | fold -s ;; \
  4367.     esac | sed -e 's/^ //' -e 's/ *$$//'
  4368.  
  4369. # Peter E's updated HP-UX 5.xx entries Oct 2001.
  4370.  
  4371. #HP-9000 500 HP-UX 5.xx, no TCP/IP.
  4372. hpux0500:
  4373.     @MESSAGE0="no TCP/IP and no compiler optimization";\
  4374.     MESSAGE0=$${MESSAGE1:-$$MESSAGE0} \
  4375.     $(MAKE) hpux-header
  4376.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4377.     "CFLAGS = -DHPUX -DHPUX5 -DHPUXPRE65 -DNOREDIRECT -DDCLGETCWD \
  4378.     -DNOGETUSERSHELL -DNOGFTIMER -DNOSYSLOG -DNOTOMACROS -DNOLSTAT \
  4379.     -DNOSYMLINK -DNOINITGROUPS -DNOUNICODE -DNOLEARN $(KFLAGS)" \
  4380.     "LIBS = $(LIBS)" "LNKFLAGS = "
  4381.  
  4382. #HP-9000 500 HP-UX 5.21 with Wollongong WIN/TCP 1.2 TCP/IP.
  4383. #Requires /usr/wins/usr/include and /usr/lib/libnet.a from Wollongong.
  4384. #Optimization skipped - takes forever.    Really.
  4385. hpux0500wintcp:
  4386.     @MESSAGE1="with WIN/TCP but without any extra compiler optimization" \
  4387.     $(MAKE) hpux0500 KTARGET=$${KTARGET:-$(@)} \
  4388.     "KFLAGS = -DTCPSOCKET -DHPUX5WINTCP -DINADDRX -DNO_DNS_SRV -DNOMHHOST \
  4389.     -DNOHADDRLIST -I/usr/wins/usr/include $(KFLAGS)" \
  4390.     "LIBS = /usr/lib/libnet.a"
  4391.  
  4392. #HP-UX 6.5, short filenames, no network and no curses support.
  4393. #ckcpro, ckuusr, ckuus3 and others are broken out because they make the
  4394. #optimizer run away.  Note that xermit target does not work with this one!
  4395. #If you get compiler warnings like 'Switch table overflow' increase the '...'
  4396. #value in '-Wc,-Nw...'!
  4397. hpux0650:
  4398.     @$(MAKE) hpux-header
  4399.     @echo 'supporting: NO long filenames, NO network${MESSAGE2}.'
  4400.  
  4401.     $(MAKE) KTARGET=$${KTARGET:-$(@)} \
  4402.         ckuusr.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) \
  4403.             ckuus6.$(EXT) ckuxla.$(EXT) ckcpro.$(EXT) \
  4404.     "CFLAGS = -DHPUX -DHPUX6 -DSIG_V -DNOSYSLOG -DNOSELECT -DFNFLOAT \
  4405.     -DDCLGETCWD -DNOGETUSERSHELL -DNO_DNS_SRV -DNOLEARN $(KFLAGS) \
  4406.     -Wc,-Nw260"
  4407.  
  4408.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4409.     "CFLAGS = -DHPUX -DHPUX6 -DSIG_V -DNOSYSLOG -DNOSELECT -DFNFLOAT \
  4410.     -DDCLGETCWD -DNOGETUSERSHELL -DNO_DNS_SRV -DNOLEARN $(KFLAGS) \
  4411.     -Wc,-Nw260 $(OFLAGS)" "LNKFLAGS = -s" "LIBS = -lm $(LIBS)"
  4412.  
  4413. #Exactly as above, plus curses:
  4414. hpux0650c:
  4415.     @MESSAGE2=", but with curses" \
  4416.     $(MAKE) hpux0650 KTARGET=$${KTARGET:-$(@)} \
  4417.     "KFLAGS= -DCK_CURSES $(KFLAGS)" \
  4418.     "LIBS= -lcurses"
  4419.  
  4420. #Exactly as above, plus curses + network:
  4421. #(doesn't work -- HP-UX 6 lacks the FD_SET macros -- this can be addressed
  4422.  
  4423. hpux0650tcpc:
  4424.     @MESSAGE2=", but with curses and with tcp/ip" \
  4425.     $(MAKE) hpux0650 KTARGET=$${KTARGET:-$(@)} \
  4426.     "KFLAGS= -DCK_CURSES -DTCPSOCKET -DNOHADDRLIST $(KFLAGS)" \
  4427.     "LIBS= -lcurses"
  4428.  
  4429. #Exactly as hpux0650 but with compiler optimization:
  4430. hpux0650o:
  4431.     @MESSAGE1="with compiler optimization" \
  4432.     $(MAKE) hpux0650 KTARGET=$${KTARGET:-$(@)} \
  4433.     "KFLAGS= $(KFLAGS)" "OFLAGS = -O"
  4434.  
  4435. #Exactly as hpux0650c but with compiler optimization:
  4436. hpux0650oc:
  4437.     @MESSAGE1="with compiler optimization" \
  4438.     $(MAKE) hpux0650c KTARGET=$${KTARGET:-$(@)} \
  4439.     "KFLAGS= $(KFLAGS)" "OFLAGS = -O"
  4440.  
  4441. #Take this as startup entry for all 'none optimized' files under HP-UX 7.x!
  4442. #Make sure we doesn't call it with the '-O' option because this will blow up
  4443. #the compiler!
  4444. hpux0700noopt:
  4445.     @case "$(CFLAGS)" in \
  4446.     *-O*) echo "Don't use CFLAGS= -O here!" ;; \
  4447.        *) $(MAKE) KTARGET=$${KTARGET:-$(@)} \
  4448.           ckuusr.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) \
  4449.           ckuus6.$(EXT) ckuus7.$(EXT) ckuxla.$(EXT) \
  4450.           ckcuni.$(EXT) ckcftp.$(EXT) ckcpro.$(EXT) \
  4451.           ;; \
  4452.     esac
  4453.  
  4454. #HP-UX 7.0, no long filenames, no network support, no curses.
  4455. #If you get compiler warnings like 'Switch table overflow' increase the '...'
  4456. #value in '-Wc,-Nw...'!
  4457. hpux0700sf:
  4458.     @$(MAKE) hpux-header
  4459.     @echo 'supporting: NO long filenames, NO network, NO curses.'
  4460.     $(MAKE) hpux0700noopt KTARGET=$${KTARGET:-$(@)} \
  4461.     "CFLAGS = -DHPUX -DHPUX7 -DSIG_V -DNOGETUSERSHELL -DFNFLOAT \
  4462.     -DNO_DNS_SRV $(KFLAGS) -Wc,-Nw260"
  4463.  
  4464.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4465.     "CFLAGS = -DHPUX -DHPUX7 -DSIG_V -DNOGETUSERSHELL -DFNFLOAT \
  4466.     -DNO_DNS_SRV $(KFLAGS) -Wc,-Nw260 $(OFLAGS)" \
  4467.     "LNKFLAGS = -s" "LIBS = -lm $(LIBS)"
  4468.  
  4469. #Exactly as hpux0700sf but with compiler optimization:
  4470. hpux0700osf:
  4471.     @MESSAGE1="with compiler optimization" \
  4472.     $(MAKE) hpux0700sf KTARGET=$${KTARGET:-$(@)} \
  4473.     "KFLAGS= $(KFLAGS)" "OFLAGS = -O"
  4474.  
  4475. #HP-UX 7.0, short filenames, but with tcp/ip and curses.
  4476. #To use this, you must have bought the ARPA Services Product from HP, and you 
  4477. #must have /usr/lib/libBSD.a.
  4478. hpux0700sftcpc:
  4479.     @$(MAKE) hpux-header
  4480.     @echo 'supporting: NO long filenames, \c'
  4481.     @echo 'but with networking, curses, HDB uucp...'
  4482.     $(MAKE) hpux0700noopt KTARGET=$${KTARGET:-$(@)} \
  4483.     "CFLAGS =  -DHPUXDEBUG -DHPUX -DHPUX7 -DTCPSOCKET -DSIG_V \
  4484.     -DCK_REDIR -DCK_RTSCTS -DCK_CURSES -DNOGETUSERSHELL -DFNFLOAT \
  4485.     -DNO_DNS_SRV -DHDBUUCP -DLOCK_DIR=\\\"/usr/spool/uucp\\\" $(KFLAGS) \
  4486.     -Wc,-Nw260"
  4487.  
  4488.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4489.     "CFLAGS =  -DHPUXDEBUG -DHPUX -DHPUX7 -DTCPSOCKET -DSIG_V \
  4490.     -DCK_REDIR -DCK_RTSCTS -DCK_CURSES -DNOGETUSERSHELL -DFNFLOAT \
  4491.     -DNO_DNS_SRV -DHDBUUCP  -DLOCK_DIR=\\\"/usr/spool/uucp\\\" $(KFLAGS) \
  4492.     -Wc,-Nw260 $(OFLAGS)" "LNKFLAGS = -s" "LIBS= -lm -lBSD -lcurses"
  4493.  
  4494. #Exactly as above but with compiler optimization:
  4495. hpux0700osftcpc:
  4496.     @MESSAGE1="with compiler optimization" \
  4497.     $(MAKE) hpux0700sftcpc KTARGET=$${KTARGET:-$(@)} \
  4498.     "KFLAGS= $(KFLAGS)" "OFLAGS = -O"
  4499.  
  4500. #HP 9000 series 300/800 HP-UX 7.0, long filenames, network support, HDB uucp,
  4501. #but NO curses. See comments in hpux0700sftcpc about TCP/IP support.
  4502. hpux0700lfn:
  4503.     @$(MAKE) hpux-header
  4504.     @echo 'supporting: long filenames, networking, HDB uucp$(MESSAGE2)...'
  4505.     $(MAKE) hpux0700noopt KTARGET=$${KTARGET:-$(@)} \
  4506.     "CFLAGS =  -DHPUXDEBUG -DHPUX -DHPUX7 -DTCPSOCKET -DSIG_V -DFNFLOAT \
  4507.     -DNOGETUSERSHELL -DNOSETBUF -DCK_REDIR -DCK_RTSCTS -DLONGFN \
  4508.     -DNO_DNS_SRV -DDIRENT -DHDBUUCP -DLOCK_DIR=\\\"/usr/spool/uucp\\\" \
  4509.     $(KFLAGS) -Wc,-Nw260"
  4510.  
  4511.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4512.     "CFLAGS =  -DHPUXDEBUG -DHPUX -DHPUX7 -DTCPSOCKET -DSIG_V -DFNFLOAT \
  4513.     -DNOGETUSERSHELL -DNOSETBUF -DCK_REDIR -DCK_RTSCTS -DLONGFN \
  4514.     -DNO_DNS_SRV -DDIRENT -DHDBUUCP -DLOCK_DIR=\\\"/usr/spool/uucp\\\" \
  4515.     $(KFLAGS) -Wc,-Nw260 \
  4516.     $(OFLAGS)" "LNKFLAGS = -s" "LIBS = -lm -lBSD $(LIBS)"
  4517.  
  4518. #Exactly as above + curses.
  4519. hpux0700lfnc:
  4520.     @MESSAGE2=', curses' \
  4521.     $(MAKE) hpux0700lfn KTARGET=$${KTARGET:-$(@)} \
  4522.     "KFLAGS= -DCK_CURSES $(KFLAGS)" \
  4523.     "LIBS= -lcurses"
  4524.  
  4525. #Exactly as above hpux0700lfn but with compiler optimization:
  4526. hpux0700olfn:
  4527.     @MESSAGE1="with compiler optimization" \
  4528.     $(MAKE) hpux0700lfn KTARGET=$${KTARGET:-$(@)} \
  4529.     "KFLAGS= $(KFLAGS)" "OFLAGS = -O"
  4530.  
  4531. #Exactly as above hpux0700lfnc but with compiler optimization:
  4532. hpux0700olfnc:
  4533.     @MESSAGE1="with compiler optimization" \
  4534.     $(MAKE) hpux0700lfnc KTARGET=$${KTARGET:-$(@)} \
  4535.     "KFLAGS= $(KFLAGS)" "OFLAGS = -O"
  4536.  
  4537. #HP 9000 Series 300 or 400, HP-UX 8.0, long filenames and TCP/IP support.
  4538. #This one should also work on 700/800, but without PA-specific optimization.
  4539. #In case -DCK_RTSCTS and -DCK_REDIR make trouble, remove them.
  4540. #NOTE: ckcpro.c, ckuusr.c and ckuus3.c blow up the optimizer, so don't optimize
  4541. #them.
  4542. #For HP-UX 8.0 on Motorola CPUs, you might have to reinstall your kernel with
  4543. #maxdsiz >= 0x03000000.  But if physical memory is small, that still will not
  4544. #help much.
  4545. hpux0800:
  4546.     @$(MAKE) hpux-header
  4547.     @MESSAGE3=$${MESSAGE3:='TCP/IP'}; \
  4548.     echo "supporting: long filenames, $$MESSAGE3, HDB UUCP$(MESSAGE2)..."
  4549.     $(MAKE) -B "CC=$(CC)" "CC2=$(CC2)" KTARGET=$${KTARGET:-$(@)} \
  4550.     ckcpro.$(EXT) ckuusr.$(EXT) ckuus3.$(EXT) \
  4551.     "CFLAGS =  -DCK_REDIR -DHPUXDEBUG -DHPUX -DHPUX8 -DRENAME -DSIG_V \
  4552.     -DNOSETBUF -DDIRENT -DCK_RTSCTS -DSTERMIOX -DLONGFN -DTCPSOCKET \
  4553.     -DHDBUUCP  -DNO_DNS_SRV -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DFNFLOAT \
  4554.     $(KFLAGS)"
  4555.  
  4556.     $(MAKE) -B "CC=$(CC)" "CC2=$(CC2)" xermit KTARGET=$${KTARGET:-$(@)} \
  4557.     "CFLAGS =  -DCK_REDIR -DHPUXDEBUG -DHPUX -DHPUX8 -DRENAME -DSIG_V \
  4558.     -DNOSETBUF -DDIRENT -DCK_RTSCTS -DSTERMIOX -DLONGFN -DTCPSOCKET \
  4559.     -DHDBUUCP  -DNO_DNS_SRV -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DFNFLOAT \
  4560.     $(KFLAGS) $(OFLAGS)" "LNKFLAGS = -s" "LIBS = -lm -lBSD $(LIBS)"
  4561.  
  4562. #Exactly as above hpux0800 + curses.
  4563. hpux0800c:
  4564.     @MESSAGE2=', curses' \
  4565.     $(MAKE) hpux0800  KTARGET=$${KTARGET:-$(@)} \
  4566.     "KFLAGS = $(KFLAGS) -DCK_CURSES" "LIBS = -lcurses"
  4567.  
  4568. #HP 9000 HP-UX 8.0, no TCP/IP because /usr/lib/libBSD.a can't be found,
  4569. #or TCP/IP header files missing.
  4570. hpux0800notcp:
  4571.     @MESSAGE3='NO network, NO curses' \
  4572.     $(MAKE) "MAKE=$(MAKE)" hpux0800 KTARGET=$${KTARGET:-$(@)} \
  4573.     "KFLAGS = $(KFLAGS) -UTCPSOCKET"
  4574.  
  4575. #Now the same as above hpux0800 but with compiler optimization
  4576. hpux0800o:
  4577.     @MESSAGE1="with compiler optimization" \
  4578.     $(MAKE) hpux0800 KTARGET=$${KTARGET:-$(@)} \
  4579.     "KFLAGS = $(KFLAGS)" "OFLAGS = -O"
  4580.  
  4581. #Exactly as above hpux0800 + curses and with compiler optimization.
  4582. hpux0800oc:
  4583.     @MESSAGE1="with compiler optimization" \
  4584.     $(MAKE) hpux0800c KTARGET=$${KTARGET:-$(@)} \
  4585.     "KFLAGS = $(KFLAGS)" "OFLAGS = -O" "LIBS = -lcurses"
  4586.  
  4587. #Exactly as above hpux0800notcp but with compiler optimization
  4588. hpux0800onotcp:
  4589.     @MESSAGE1="with compiler optimization" \
  4590.     $(MAKE) "MAKE=$(MAKE)" hpux0800notcp KTARGET=$${KTARGET:-$(@)} \
  4591.     "KFLAGS = $(KFLAGS)" "OFLAGS = -O"
  4592.  
  4593. #HP 9000 Series 700 or 800, HP-UX 8.0, long filenames and TCP/IP support.
  4594. # Like the previous entries, but with PA-RISC-specific optimization.
  4595. hpux0800pa:
  4596.     @MESSAGE1="with PA-RISC-specific optimization" \
  4597.     $(MAKE) hpux0800 KTARGET=$${KTARGET:-$(@)} \
  4598.     "KFLAGS = $(KFLAGS) +Obb1100"
  4599.  
  4600. #As above, but with curses.
  4601. hpux0800pac:
  4602.     @MESSAGE1="with PA-RISC-specific optimization" \
  4603.     $(MAKE) hpux0800c KTARGET=$${KTARGET:-$(@)} \
  4604.     "KFLAGS = $(KFLAGS) +Obb1100"
  4605.  
  4606. #As above, but compiled with GCC 2.3.3.
  4607. hpux0800pagcc:
  4608.     @MESSAGE1='using the gcc compiler' \
  4609.     $(MAKE) hpux0800 KTARGET=$${KTARGET:-$(@)} \
  4610.     "CC=gcc" "CC2=gcc" "KFLAGS= -funsigned-char $(KFLAGS)"
  4611.  
  4612. #HP-UX 9.0, 9.01, 9.03, 9.04, 9.05, 9.07, 9.10 ..., + TCP/IP + curses, fully
  4613. #configured.  Use this entry with the restricted compiler: no optimization, no
  4614. #ANSI support.  If you get unresolved sockets library references at link time,
  4615. #then try adding -lBSD to LIBS, or else remove -DTCPSOCKET to build a version
  4616. #without TCP/IP support.
  4617. hpux0900:
  4618.     @MESSAGE1A='. Read hpux0900 entry comments if you have trouble.' \
  4619.     $(MAKE) hpux-header
  4620.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4621.     "CFLAGS = -DHPUXDEBUG -DHPUX9 -DSTERMIOX -DDIRENT -DUTIMEH \
  4622.     -DNOSETBUF -DCK_CURSES -DTCPSOCKET -DRENAME -DCK_REDIR -DLONGFN \
  4623.     -DHDBUUCP -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DFNFLOAT $(KFLAGS)" \
  4624.     "LNKFLAGS = -s" "LIBS = -lm -lcurses" "CC=$(CC)" "CC2=$(CC2)"
  4625.  
  4626. #Like hpux0900, but for the "value-added" compiler on all HP 9000 models.
  4627. #Adds optimization and ANSI compilation:
  4628. # +O2 makes smaller executable (= -O = Level-1 and global optimization)
  4629. # +O3 adds interprocedural global optimization, makes bigger executable.
  4630. # If optimization fails on some modules, you can add:
  4631. #  +Obb<n>, +Olimit <n>, or +Onolimit, depending on your cc version,
  4632. # where <n> is a number, e.g. +Obb1200.  In other words, if you get optimizer
  4633. # warnings, add (for example) +Obb1200; if you still get optimizer warnings,
  4634. # increase the number.  Repeat until warnings go away.  If your compiler
  4635. # permits it, use +Onolimit. If optimizer blows up on ckcpro.c, see next entry.
  4636. # Reportedly, on some configurations, such as HP9000/425e or /340, perhaps
  4637. # depending on the amount of main memory, this entry might fail no matter what
  4638. # you do ("Out of Memory", "cc: Fatal error in /lib/c.c1", etc).  In that case
  4639. # use "make hpux0900" (no "o").
  4640. hpux0900o:
  4641.     @MESSAGE1=$${MESSAGE1:-"with compiler optimization"} \
  4642.     $(MAKE) hpux0900 KTARGET=$${KTARGET:-$(@)} \
  4643.     "KFLAGS = $(KFLAGS) -Aa -DCK_ANSIC -D_HPUX_SOURCE +O2"
  4644.  
  4645. # For HP-UX 9.0 on Motorola CPUs, optimization of ckcpro.c tends to blow up
  4646. # the compiler.  You might have to reinstall your kernel with maxdsiz >=
  4647. # 0x03000000.  But if physical memory is small, that still will not help much.
  4648. # In that case, use this entry to skip optimization of ckcpro.c.
  4649. hpux0900m68ko:
  4650.     @MESSAGE1='without compiler optimization for ckcpro.$(EXT) ...' \
  4651.     $(MAKE) hpux-header
  4652.     $(MAKE) ckuusr.$(EXT) ckuus3.$(EXT) ckcpro.$(EXT) \
  4653.     "CFLAGS = -DHPUXDEBUG -DHPUX9 -DSTERMIOX -DDIRENT \
  4654.     -DNOSETBUF -DCK_CURSES -DTCPSOCKET -DRENAME  -DCK_REDIR -DLONGFN \
  4655.     -DHDBUUCP -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DFNFLOAT $(KFLAGS)"
  4656.     @echo
  4657.     @MESSAGE1="with compiler optimization for the rest" \
  4658.     $(MAKE) hpux0900 KTARGET=$${KTARGET:-$(@)} \
  4659.     "KFLAGS = $(KFLAGS) -Aa -DCK_ANSIC -D_HPUX_SOURCE +O2"
  4660.  
  4661. # Old name for hpux0900m68ko.
  4662. hpux0900mot:
  4663.     $(MAKE) hpux0900m68ko KTARGET=$${KTARGET:-$(@)} "KFLAGS = $(KFLAGS)"
  4664.  
  4665. #Like hpux0900o but with additional model-700/800-specific optimizations.
  4666. # +ESlit = consolidate strings in read-only memory.
  4667. # +ESfsc = inline millicode calls when comparing pointers.
  4668. hpux0900o700:
  4669.     @echo 'If you get optimizer warnings \c'
  4670.     @echo 'try "make hpux0900o700 KFLAGS=+Obb1200"'
  4671.     @MESSAGE1="with PA-RISC-specific optimizations" \
  4672.     $(MAKE) hpux0900o KTARGET=$${KTARGET:-$(@)} \
  4673.     "KFLAGS = $(KFLAGS) +ESlit +ESsfc"
  4674.  
  4675. #HP-UX 9.0, 9.01, 9.03, 9.04, 9.05, 9.07, 9.10 ..., + TCP/IP + curses, fully
  4676. #configured, built with gcc, all models except 800 series.
  4677. #You might need to add the include path for gcc headers, for example:
  4678. # 'KFLAGS=-I/usr/gnu/lib/gcc-lib/hppa1.1-hp-hpux/2.4.5/include/'
  4679. hpux0900gcc:
  4680.     @MESSAGE1='using the gcc compiler' \
  4681.     $(MAKE) hpux0900 KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  4682.     "KFLAGS = $(KFLAGS) -DCK_ANSIC -funsigned-char -O2"
  4683.  
  4684. #HP-9000 HP-UX 10.0 + TCP/IP + curses, fully configured.
  4685. #Use with restricted (bundled) compiler: no optimization, no ANSI support.
  4686. #libcurses needed for fullscreen file xfer display in HP-UX 10.00 and 10.01.
  4687. #libHcurses (NOT libcurses!) for fullscreen display, to work around fatal bugs
  4688. #in HP-UX 10.10 and 10.20 curses. Maybe we could use lcurses for 10.30, since
  4689. #the 10.10 curses problem is supposedly fixed in 10.30.
  4690. # +DA1.0 = Generate PA-RISC 1.0 code that runs on both 700 and 800 models.
  4691. # +DA1.1 = Generate PA-RISC 1.1 code that runs on both 700 and 800 models.
  4692. # Note that HP-UX 10.20 and upwards  not support PA-RISC 1.0 systems.
  4693. # And that as of Dec 2001, 11.00 and 11.11 are PA-only and 11.20 is IA64-only.
  4694. # Later 11.2x releases are expected to be for both.  Architecture can be
  4695. # determined with the model command, at least in 10.20 and later...
  4696. #For future releases, we need to include +DA1.1 for PA builds, so that a
  4697. #binary built on PA 2.0 will still work on PA 1.1 machines, whereas +DA1.1
  4698. #must NOT be included for IA64 builds.
  4699. #
  4700. hpux1000:
  4701.     @$(MAKE) hpux-header
  4702.     @LIBS='-lHcurses' ; \
  4703.     AFLAGS='+DA1.1' ; \
  4704.     case `uname -r` in \
  4705.        [AB].10.0*)  KFLAGS='-DHPUX1000 $(KFLAGS)' ; \
  4706.                     AFLAGS='+DA1.0' ; LIBS='-lcurses'  ;; \
  4707.        [AB].10.1*)  KFLAGS='-DHPUX1010 -D__HP_CURSES $(KFLAGS)' ; \
  4708.                     ;; \
  4709.        [AB].10.2*)  KFLAGS='-DHPUX1020 -D__HP_CURSES $(KFLAGS)' ; \
  4710.                     ;; \
  4711.        [AB].10.3*)  KFLAGS='-DHPUX1030 -D__HP_CURSES $(KFLAGS)' ; \
  4712.                     ;; \
  4713.        [AB].10.?*)  KFLAGS='-DHPUX10XX -D__HP_CURSES $(KFLAGS)' ; \
  4714.                     ;; \
  4715.        [AB].11.0*)  KFLAGS='-DHPUX1100 -D__HP_CURSES $(KFLAGS)' ; \
  4716.                     ;; \
  4717.        [AB].11.1*)  KFLAGS='-DHPUX1100 -D__HP_CURSES $(KFLAGS)' ; \
  4718.                     ;; \
  4719.        [AB].11.?*)  KFLAGS='-DHPUX1100 -D__HP_CURSES $(KFLAGS)' ; \
  4720.                     AFLAGS='' ; LIBS='-lcurses' ;; \
  4721.     esac ; \
  4722.     OFLAGS=$${OFLAGS:-$$AFLAGS} ; \
  4723.     $(MAKE) "SHELL=/usr/bin/sh" xermit KTARGET=$${KTARGET:-$(@)} \
  4724.     "CC=$(CC)" "CC2=$(CC2)" \
  4725.     "CFLAGS = -DHPUX10 -DDIRENT -DSTERMIOX -DCK_DSYSINI -DHDBUUCP \
  4726.     -DCK_CURSES -DCK_WREFRESH -DTCPSOCKET -DCK_REDIR -DRENAME -DFNFLOAT \
  4727.     $$KFLAGS $$OFLAGS" \
  4728.     "LNKFLAGS=-s $(LNKFLAGS)" "LIBS = -lm $$LIBS $(KLIBS)"
  4729.  
  4730. # This is a kludge, copying hpux0900gcc and adapting hpux1000 
  4731. # (add CC and CC2, drop the A1.[0||1])
  4732. # Builds w/ no compiler warnings but minimally tested.
  4733. #
  4734. hpux1000gcc:
  4735.     @MESSAGE1='using the gcc compiler' \
  4736.     $(MAKE) hpux1000 KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  4737.     "KFLAGS = $(KFLAGS)" OFLAGS=" -DCK_ANSIC -funsigned-char -O2"
  4738.  
  4739. # Trusted HP-UX 10
  4740. # echo KFLAGS=$(KFLAGS) YTARGET YTARGET=$(YTARGET) $(XTARGET) ;
  4741. hpux1000t:
  4742.     @case "$(KTARGET)" in \
  4743.        *o+) KENTRY=hpux1000o+ ;; \
  4744.        *o)  KENTRY=hpux1000o ;; \
  4745.        *)   KENTRY=hpux1000 ;; \
  4746.     esac ; \
  4747.     MESSAGE1="and support for 'Trusted HP-UX'" \
  4748.     $(MAKE) $$KENTRY KTARGET=$${KTARGET:-$(@)} \
  4749.     "KFLAGS= $(KFLAGS) -DHPUX10_TRUSTED" "KLIBS=-lsec"
  4750.  
  4751. hpux1000to:
  4752.     $(MAKE) hpux1000t KTARGET=$${KTARGET:-$(@)}
  4753.  
  4754. hpux1000to+:
  4755.     $(MAKE) hpux1000t KTARGET=$${KTARGET:-$(@)}
  4756.  
  4757. #HP-9000 HP-UX 10.00 and higher with ANSI prototyping and optimization.
  4758. #PA-RISC only, no Motorola or other hardware is support in HP-UX 10.00++.
  4759. #The unbundled optional compiler is required.
  4760. #Your path should start with /opt/ansic/bin.
  4761. # -Wl,-Fw = Remove stack unwind table (info used by debuggers).
  4762. # +O2 makes a smaller executable (= -O = Level-1 and global optimization).
  4763. # +O3 adds interprocedural global optimization, makes a bigger executable.
  4764. # +Onolimit allows all modules to be optimized, no matter how complex.  But:
  4765. #  (a) +Onolimit does not seem to always be there in HP-UX 10.00, and:
  4766. #  (b) some modules might take hours on low-memory and/or slow systems.
  4767. # The following are PA-RISC-specific optimizations:
  4768. # +ESlit = Consolidate strings in read-only memory.
  4769. # +ESfsc = Inline millicode calls when comparing pointers.
  4770. # You might need to configure your kernel for a maxdsiz of 0x0B000000 (176MB)
  4771. # or greater to prevent the optimizer from running out of space.
  4772. # December 2001: +ESlit +ESsfc removed because not supported on IA64.
  4773. # Somebody who cares can use 'model' to see whether it's PA-RISC or IA64
  4774. # and include the architecture-specific optimization flags.  Also note:
  4775. # +DA1.1 is PA-only.  If this is included in in HP-UX 11.00 or later,
  4776. # then +DS2.0 should be included too (but don't use +DS2.0 without +DA1.1,
  4777. # or else the binary won't run on older PA hardware).
  4778. hpux1000o:
  4779.     @case `uname -m` in \
  4780.       ia64) ;; \
  4781.       *) MFLAGS='+ESlit +ESsfc' ;; \
  4782.     esac ; \
  4783.     MESSAGE1="with PA-RISC-specific optimizations $(MESSAGE1)" \
  4784.     $(MAKE) "SHELL=/usr/bin/sh" "PATH=/opt/ansic/bin:$$PATH" hpux1000 \
  4785.     KTARGET=$${KTARGET:-$(@)} "KFLAGS = $(KFLAGS) \
  4786.     -Aa -D_HPUX_SOURCE -DCK_ANSIC -DUTIMEH \
  4787.     +O2 -Wl,-Fw $$MFLAGS"
  4788.  
  4789. #Like hpux1000o but with "+Onolimit".
  4790. #On 700 series maxdsize >= 0xB000 (=176MB).  Takes a long time.
  4791. hpux1000o+:
  4792.     @MESSAGE1="and +Onolimit $(MESSAGE1)" KTARGET=$${KTARGET:-$(@)} \
  4793.     $(MAKE) hpux1000o \
  4794.     "KFLAGS = $(KFLAGS) +Onolimit"
  4795.  
  4796. hpux1100:
  4797.     $(MAKE) hpux1000 KTARGET=$${KTARGET:-$(@)}
  4798.  
  4799. hpux1100o:
  4800.     $(MAKE) hpux1000o KTARGET=$${KTARGET:-$(@)}
  4801.  
  4802. hpux1100o+:
  4803.     $(MAKE) hpux1000o+ KTARGET=$${KTARGET:-$(@)}
  4804.  
  4805. hpux1100gcc:
  4806.     $(MAKE) hpux1000gcc KTARGET=$${KTARGET:-$(@)}
  4807.  
  4808. # Trusted HP-UX 11
  4809. hpux1100t:
  4810.     $(MAKE) hpux1000t KTARGET=$${KTARGET:-$(@)}
  4811.  
  4812. hpux1100to:
  4813.     $(MAKE) hpux1000to KTARGET=$${KTARGET:-$(@)}
  4814.  
  4815. hpux1100to+:
  4816.     $(MAKE) hpux1000to+ KTARGET=$${KTARGET:-$(@)}
  4817.  
  4818. #Regulus on CIE Systems 680/20
  4819. cie:
  4820.     @echo 'Making C-Kermit $(CKVER) for CIE Systems 680/20 Regulus...'
  4821.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4822.     "CFLAGS = -DATTSV -DNOFILEH -DCIE -DNOLEARN $(KFLAGS) -O" "LNKFLAGS ="
  4823.  
  4824. # Linux 1.2 or later with gcc, dynamic libraries, ncurses, TCP/IP.
  4825. #
  4826. # If your Linux system has curses rather than ncurses, use the linuxc
  4827. # entry, or if that doesn't work, linuxnc.
  4828. #
  4829. # The Kermit "large memory model" is used by default to configure big packet
  4830. # and script buffers, etc.  For small-memory or limited-resource systems,
  4831. # "make linux KFLAGS=-DNOBIGBUF".
  4832. #
  4833. # -DLINUXFSSTND (Linux File System Standard 1.2) gives UUCP lockfile /var/lock
  4834. # with string pid.  Remove this to get /usr/spool/uucp with int pid, used in
  4835. # very early Linux versions.  FSSTND 1.2 also says that the PID string in the
  4836. # UUCP lock file has leading spaces.  This is a change from FSSTND 1.0, which
  4837. # used leading zeros.  Add -DFSSTND10 to support FSSTND 1.0 instead of 1.2.
  4838. # I hope subsequent editions of the file-system standard did not change these
  4839. # again.
  4840. #
  4841. # Add -DOLINUXHISPEED (Old Linux High Speed support) to turn on an ugly kludge
  4842. # in Linux 1.0 and earlier to support speeds of 57600 and 115200.  Extremely
  4843. # old Linux systems (pre-0.99pl15) will not support this.  If OLINUXHISPEED is
  4844. # not defined, then only the standard POSIX termios methods of setting the port
  4845. # speed will be used, and in this case speeds can be as high as 460800 in most
  4846. # modern Linux versions.
  4847. #
  4848. # -DCK_POSIX_SIG (POSIX signal handling) is good for Linux releases back to at
  4849. # least 0.99.14; if it causes trouble for you, remove it from the CFLAGS.
  4850. #
  4851. # -pipe removes the need for temp files - remove it if it causes trouble.
  4852. #
  4853. # -funsigned-char makes all characters unsigned, as they should have been
  4854. #  in the first place.
  4855. #
  4856. # Add -DCK_DSYSINI if you want a shared system-wide init file.
  4857. #
  4858. # See ckubwr.txt about -DNOCOTFMC.  In fact, you really should read the
  4859. # entire Linux section of ckubwr.txt.
  4860. #
  4861. # The "linuxa" entry can be referenced directly on LIBC systems, but not
  4862. # GLIBC, where -lcrypt is required.  The "make linux" entry should normally
  4863. # be used for all builds on all Linux distributions unless you have special
  4864. # requirements, in which case keep reading.  CK_NEWTERM added after 7.0B04
  4865. # due to new complaints about ncurses changing buffering of tty.
  4866.  
  4867. linuxa:
  4868.     @echo 'Making C-Kermit $(CKVER) for Linux 1.2 or later...'
  4869.     @echo 'IMPORTANT: Read the comments in the linux section of the'
  4870.     @echo 'makefile if you have trouble.'
  4871.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  4872.     "CFLAGS = -O -DLINUX -pipe -funsigned-char -DFNFLOAT -DCK_POSIX_SIG \
  4873.     -DCK_NEWTERM -DTCPSOCKET -DLINUXFSSTND -DNOCOTFMC -DPOSIX \
  4874.     -DUSE_STRERROR $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" "LIBS = $(LIBS) -lm"
  4875.  
  4876. # As above but with profiling
  4877. linuxp:
  4878.     $(MAKE) linuxa KTARGET=$${KTARGET:-$(@)} "KFLAGS=$(KFLAGS) -pg" \
  4879.     "LIBS=-pg -lcrypt -lresolv"
  4880.  
  4881. #New primary Linux entry for C-Kermit 8.0, replacing big nested
  4882. #if-then-else construction full of repeated clauses with a simpler scheme
  4883. #for automatically detecting:
  4884. # . Old versus new pty handling (new == glibc 2.1++)
  4885. # . Presence or absence of librypt.a and <crypt.h>
  4886. # . Presence or absence of libresolv.a
  4887. #Unlike the previous scheme, this one is easily extended to include more tests.
  4888. #Note: The HAVE_PTMX test was previously "if test -c /dev/ptmx" but this was
  4889. #not sufficient for Debian 2.1, because although it had /dev/ptmx, it did not
  4890. #have grantpt(), unlockpt(), or ptsname(), so has been changed to look for a
  4891. #grantpt() prototype in the header files.  Warning: uses a temporary file in
  4892. #the current directory.
  4893. linux:
  4894.     @if test \
  4895.     `grep grantpt /usr/include/*.h /usr/include/sys/*.h | wc -l` -gt 0; \
  4896.     then if test -c /dev/ptmx; then HAVE_PTMX='-DHAVE_PTMX'; \
  4897.     else HAVE_PTMX=''; fi; fi ; \
  4898.     $(MAKE) KTARGET=$${KTARGET:-$(@)} \
  4899.     "KFLAGS=-DCK_NCURSES -I/usr/include/ncurses $$HAVE_PTMX \
  4900.     `if test -f /usr/lib/libcrypt.a; then echo -DHAVE_CRYPTH; fi` \
  4901.     $(KFLAGS)" \
  4902.     "LIBS=-lncurses \
  4903.     `if test -f /usr/lib/libresolv.a; then echo -lresolv; fi` \
  4904.     `if test -f /usr/lib/libcrypt.a; then echo -lcrypt; fi`" \
  4905.     linuxa
  4906.  
  4907. # As above but for Linux systems that have no <sys/select.h>.
  4908. linuxns:
  4909.     $(MAKE) linux KTARGET=$${KTARGET:-$(@)} KFLAGS=-DNO_SYS_SELECT_H
  4910.  
  4911. # As above, but forces use of curses rather than ncurses.
  4912. # Add -ltermcap to LIBS if necessary.
  4913. # Also watch out for libcurses and/or libtermcap having been moved.
  4914. # In that case you might need something like:
  4915. #  "LIBS = -L/usr/lib/curses -lcurses -L/usr/lib/termcap -ltermcap"
  4916.  
  4917. linuxc:
  4918.     @if test \
  4919.     `grep grantpt /usr/include/*.h /usr/include/sys/*.h | wc -l` -gt 0; \
  4920.     then if test -c /dev/ptmx; then HAVE_PTMX='-DHAVE_PTMX'; \
  4921.     else HAVE_PTMX=''; fi; fi ; \
  4922.     $(MAKE) KTARGET=$${KTARGET:-$(@)} \
  4923.     "KFLAGS=-DCK_CURSES $$HAVE_PTMX \
  4924.     `if test -f /usr/lib/libcrypt.a; then echo -DHAVE_CRYPTH; fi` \
  4925.     $(KFLAGS)" \
  4926.     "LIBS=-lcurses \
  4927.     `if test -f /usr/lib/libresolv.a; then echo -lresolv; fi` \
  4928.     `if test -f /usr/lib/libcrypt.a; then echo -lcrypt; fi`" \
  4929.     linuxa
  4930.  
  4931. # As above but with with no curses support, for example because you installed
  4932. # the developer tools but did not install (n)curses.
  4933. linuxnc:
  4934.     @if test \
  4935.     `grep grantpt /usr/include/*.h /usr/include/sys/*.h | wc -l` -gt 0; \
  4936.     then if test -c /dev/ptmx; then HAVE_PTMX='-DHAVE_PTMX'; \
  4937.     else HAVE_PTMX=''; fi; fi ; \
  4938.     $(MAKE) KTARGET=$${KTARGET:-$(@)} \
  4939.     "KFLAGS= $$HAVE_PTMX \
  4940.     `if test -f /usr/lib/libcrypt.a; then echo -DHAVE_CRYPTH; fi` \
  4941.     $(KFLAGS)" "LIBS= \
  4942.     `if test -f /usr/lib/libresolv.a; then echo -lresolv; fi` \
  4943.     `if test -f /usr/lib/libcrypt.a; then echo -lcrypt; fi`" \
  4944.     linuxa
  4945.  
  4946. #Sharp Zaurus SL-5500 - Linux based
  4947. zsl5500:
  4948.     @echo 'Making C-Kermit $(CKVER) for Sharp Zaurus SL-5500...'
  4949.     @touch ckcpro.c
  4950.     @touch wart
  4951.     $(MAKE) linuxnc KTARGET=$${KTARGET:-$(@)} "KFLAGS=-DZSL5500" \
  4952.     "CC = gcc" "CC2 = gcc"
  4953.  
  4954. # A minimum-size version for Linux that does only scripting and
  4955. # serial communication -- no networks, no file transfer.
  4956. linuxso:
  4957.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  4958.     "CFLAGS = -O -DLINUX -pipe -funsigned-char -DPOSIX -DCK_POSIX_SIG \
  4959.     -DLINUXFSSTND -DNOCOTFMC -DNOXFER -DNODEBUG -DNOCSETS -DNOHELP \
  4960.     -DNONET -DMINIDIAL -DNOSCRIPT -DNOIKSD -DNOPUSH $(KFLAGS)" \
  4961.     "LNKFLAGS = $(LNKFLAGS)" "LIBS = "
  4962.  
  4963. #Mklinux DR3 has horrible bug in <utmpbits.h> - see ckufio.c.
  4964. mklinux:
  4965.     $(MAKE) KTARGET=$${KTARGET:-$(@)} "KFLAGS=-DUTMPBUG" \
  4966.     "LIBS=-lcrypt -lresolv" linuxa
  4967.  
  4968. #LinuxPPC 1999
  4969. linuxppc:
  4970.     @echo 'Making C-Kermit $(CKVER) for LinuxPPC 1999...'
  4971.     @if test -f /usr/lib/libcrypt.a; then \
  4972.         if test -f /usr/lib/libresolv.a; then \
  4973.             $(MAKE) KTARGET=$${KTARGET:-$(@)} \
  4974.         "KFLAGS=$(NCURSES_CPP) -DHAVE_CRYPT_H \
  4975.         -DLOCK_DIR=\\\\\\"\"/var/lock/modem\\\\\\"\" $(KFLAGS)" \
  4976.             "LIBS=-lncurses -lresolv -lcrypt" linuxa ; \
  4977.         else \
  4978.             $(MAKE) KTARGET=$${KTARGET:-$(@)} \
  4979.         "KFLAGS=$(NCURSES_CPP) -DHAVE_CRYPT_H \
  4980.         -DLOCK_DIR=\\\\\\"\"/var/lock/modem\\\\\\"\" $(KFLAGS)" \
  4981.             "LIBS=-lncurses -lcrypt" linuxa ; \
  4982.         fi \
  4983.     else \
  4984.         if test -f /usr/lib/libresolv.a; then \
  4985.             $(MAKE) KTARGET=$${KTARGET:-$(@)} \
  4986.         "KFLAGS=$(NCURSES_CPP) \
  4987.         -DLOCK_DIR=\\\\\\"\"/var/lock/modem\\\\\\"\" $(KFLAGS)" \
  4988.             "LIBS=-lncurses -lresolv" linuxa ; \
  4989.         else \
  4990.             $(MAKE) KTARGET=$${KTARGET:-$(@)} \
  4991.         "KFLAGS=$(NCURSES_CPP) \
  4992.         -DLOCK_DIR=\\\\\\"\"/var/lock/modem\\\\\\"\" $(KFLAGS)" \
  4993.             "LIBS=-lncurses" linuxa ; \
  4994.         fi \
  4995.     fi
  4996.  
  4997.  
  4998. # The remaining Linux entries are for special or customized builds.  They
  4999. # have not been generalized like the ones above.  Ideally, we should allow
  5000. # for every combination of libc vs glibc, gcc vs egcs, curses vs ncurses,
  5001. # Kerberos IV vs Kerberos V vs SRP (in any combination), and so on --
  5002. # volunteers welcome.
  5003.  
  5004. # If you get "Internal compiler error xxx, output pipe has been closed",
  5005. # try removing -pipe.
  5006.  
  5007. # Like "make linux" but built with egcs rather than gcc.
  5008. linuxegcs:
  5009.     @echo 'Making C-Kermit $(CKVER) for Linux 1.2 or later with egcs...'
  5010.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = egcs" "CC2 = egcs" \
  5011.     "CFLAGS = -O -DLINUX -pipe -funsigned-char \
  5012.     -DPOSIX -DCK_POSIX_SIG -DCK_NCURSES -DNOCOTFMC \
  5013.     -DTCPSOCKET -DLINUXFSSTND $(KFLAGS)" \
  5014.     "LNKFLAGS = $(LNKFLAGS)" "LIBS = -lncurses -lcrypt -lresolv"
  5015.  
  5016. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.1 (no K4 compatibility).
  5017. linux+krb5:
  5018.     @echo 'Making C-Kermit $(CKVER) for Linux on Intel with Kerberos...'
  5019.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5020.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5021.     -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 \
  5022.     -DCK_ENCRYPTION -DCK_DES -DCK_CURSES -DCK_POSIX_SIG \
  5023.     -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H $(K5INC) $(K5INC)/krb5 \
  5024.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5025.     "LIBS = $(K5LIB) -lncurses -ltermcap -ldes425 -lkrb5 \
  5026.     -lcom_err -lk5crypto -lgssapi_krb5 -lcrypt -lresolv"
  5027.  
  5028. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.1 with K4 compatibility.
  5029. #
  5030. # Requires the Kerberos 1.2.1 be compiled with KRB4 compatibility.
  5031. linux+krb5+krb4:
  5032.     @echo 'Making C-Kermit $(CKVER) for Linux on Intel with Kerberos...'
  5033.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5034.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5035.     -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 -DKRB4 -DKRB524 \
  5036.     -DCK_ENCRYPTION -DCK_DES -DCK_CURSES -DCK_POSIX_SIG \
  5037.     -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H $(K5INC) $(K5INC)/krb5 \
  5038.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5039.     "LIBS = $(K5LIB) -lncurses -ltermcap -lkrb4 -ldes425 -lkrb5 \
  5040.     -lcom_err -lk5crypto -lcrypt -lgssapi_krb5 -lresolv"
  5041.  
  5042. # Linux on Intel PC with SRP 1.7.4 using GNU MP, Krypto, and Eric Young's
  5043. # DES library.  Remove the -DCK_DES, -DLIBDES and -ldes if you do not have
  5044. # Eric Young's# libdes.a installed.
  5045. #
  5046. linux+srp+gmp:
  5047.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SRP...'
  5048.     $(MAKE) srpmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5049.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5050.     -DCK_AUTHENTICATION -DCK_SRP \
  5051.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES \
  5052.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5053.     $(SRPINC) $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5054.     "LIBS = $(SRPLIB) \
  5055.     -lncurses -ltermcap -lsrp -lgmp -ldes -lkrypto -lcrypt -lresolv"
  5056.  
  5057. linux+srp+gmp+no-des:
  5058.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SRP ...'
  5059.     $(MAKE) srpmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5060.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5061.     -DCK_AUTHENTICATION -DCK_SRP \
  5062.     -DCK_ENCRYPTION -DCK_CAST \
  5063.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5064.     $(SRPINC) $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5065.     "LIBS = $(SRPLIB) \
  5066.     -lncurses -ltermcap -lsrp -lgmp -lkrypto -lcrypt -lresolv"
  5067.  
  5068. linux+srp+gmp-export:
  5069.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SRP...'
  5070.     $(MAKE) srpmit-export KTARGET=$${KTARGET:-$(@)} \
  5071.     "CC = gcc" "CC2 = gcc" \
  5072.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5073.     -DCK_AUTHENTICATION -DCK_SRP -DFNFLOAT \
  5074.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5075.     $(SRPINC) $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5076.     "LIBS = $(SRPLIB) \
  5077.     -lncurses -ltermcap -lsrp -lgmp -lkrypto -lcrypt -lm -lresolv"
  5078.  
  5079. linux+srp+gmp+pam:
  5080.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SRP...'
  5081.     $(MAKE) srpmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5082.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5083.     -DCK_AUTHENTICATION -DCK_SRP \
  5084.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES \
  5085.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5086.     -DCK_PAM -DFNFLOAT $(SRPINC) $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5087.     "LIBS = $(SRPLIB) -lncurses -ltermcap -lsrp -lgmp -ldes -lkrypto \
  5088.     -lcrypt -lpam -ldl -lm -lresolv"
  5089.  
  5090. #Linux on Intel PC with SRP 1.7.4 built with OpenSSL for Big Number Math
  5091. #and Cryptographic functionality.
  5092. #
  5093. linux+srp:
  5094.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SRP...'
  5095.     $(MAKE) srpmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5096.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5097.     -DCK_AUTHENTICATION -DCK_SRP \
  5098.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES \
  5099.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5100.     $(SRPINC) $(SSLINC) $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5101.     "LIBS = $(SRPLIB) $(SSLLIB) \
  5102.     -lncurses -ltermcap -lsrp -lkrypto -lcrypto -lcrypt -lresolv"
  5103.  
  5104. linux+srp+pam:
  5105.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SRP...'
  5106.     $(MAKE) srpmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5107.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5108.     -DCK_AUTHENTICATION -DCK_SRP \
  5109.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES \
  5110.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5111.     -DCK_PAM -DFNFLOAT $(SRPINC) $(SSLINC) $(KFLAGS)" \
  5112.     "LNKFLAGS = $(LNKFLAGS)" \
  5113.     "LIBS = $(SRPLIB) $(SSLLIB) -lncurses -ltermcap -lsrp -lkrypto \
  5114.     -lcrypto -lcrypt -lpam -ldl -lm -lresolv"
  5115.  
  5116. linux+shadow+pam:
  5117.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with Shadow+PAM...'
  5118.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5119.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5120.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5121.     -DCK_SHADOW -DCK_PAM -DFNFLOAT \
  5122.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5123.     "LIBS = -lncurses -ltermcap -lcrypt -lpam -ldl -lm -lresolv"
  5124.  
  5125. #Linux configured for SSL/TLS.
  5126. #Remove -ltermcap if it causes trouble e.g. in Debian 2.2.
  5127. linux+openssl:
  5128.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SSL/TLS...'
  5129.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5130.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5131.     -DCK_AUTHENTICATION -DCK_SSL \
  5132.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5133.     -DFNFLOAT $(SSLINC) $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5134.     "LIBS= $(SSLLIB) \
  5135.     -lncurses -ltermcap -lssl -lcrypto -lm -lresolv -lcrypt"
  5136.  
  5137. #Linux configured for SSL/TLS and Shadow Passwords
  5138. #Remove -ltermcap if it causes trouble e.g. in Debian 2.2.
  5139. linux+openssl+shadow:
  5140.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SSL/TLS...'
  5141.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5142.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5143.     -DCK_AUTHENTICATION -DCK_SSL \
  5144.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5145.     -DFNFLOAT -DCK_SHADOW $(SSLINC) $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5146.     "LIBS= $(SSLLIB) \
  5147.     -lncurses -ltermcap -lssl -lcrypto -lm -lresolv -lcrypt"
  5148.  
  5149. #Linux configured for SSL/TLS, ZLIB, PAM and Shadow Passwords
  5150. #Remove -ltermcap if it causes trouble e.g. in Debian 2.2.
  5151. linux+openssl+zlib+shadow+pam:
  5152.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SSL/TLS...'
  5153.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5154.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5155.     -DCK_AUTHENTICATION -DCK_SSL -DCK_PAM -DZLIB \
  5156.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5157.     -DFNFLOAT -DCK_SHADOW $(SSLINC) $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5158.     "LIBS= $(SSLLIB) \
  5159.     -lncurses -ltermcap -lssl -lcrypto -lm -lresolv -lcrypt -lz -lpam -ldl"
  5160.  
  5161. #Linux on Intel PC with SRP and SSL/TLS.
  5162. #
  5163. # libsrp.a should be build with OpenSSL
  5164. # Requires the Kerberos 1.2.2 or higher to be compiled with KRB4 compatibility.
  5165. #Remove -ltermcap if it causes trouble e.g. in Debian 2.2.
  5166. linux+srp+openssl:
  5167.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SRP,SSL...'
  5168.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5169.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5170.     -DCK_AUTHENTICATION -DCK_SRP \
  5171.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL \
  5172.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5173.     $(SRPINC) $(SSLINC) $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5174.     "LIBS = $(SRPLIB) $(SSLLIB) \
  5175.     -lncurses -ltermcap -lsrp -lssl -lkrypto -lcrypto \
  5176.     -lcrypt -lresolv"
  5177.  
  5178. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.2 and SRP.
  5179. #
  5180. # libsrp.a should be build with GNU MP (libgmp.a)
  5181. # instead of AT&T CryptoLib (libcrypt.a) due to naming conflicts with
  5182. # standard distribution Linux libraries.
  5183. # Requires the Kerberos 1.2.2 or higher to be compiled with KRB4 compatibility.
  5184. linux+krb5+krb4+srp:
  5185.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB54+SRP...'
  5186.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5187.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5188.     -DCK_AUTHENTICATION -DCK_SRP -DCK_KERBEROS  -DKRB5 -DKRB4 -DKRB524 \
  5189.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES \
  5190.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5191.     $(K5INC) $(K5INC)/krb5 $(SRPINC) \
  5192.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5193.     "LIBS = $(K5LIB) $(SRPLIB) \
  5194.     -lncurses -ltermcap -lsrp -lgmp -lgssapi_krb5 -lkrypto \
  5195.     -ldes -lkrb4 -ldes425 -lkrb5 -lcom_err -lk5crypto -lcrypt -lresolv"
  5196.  
  5197. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.2, SRP and SSL/TLS.
  5198. #
  5199. # libsrp.a should be build with OpenSSL
  5200. # Requires the Kerberos 1.2.2 or higher to be compiled with KRB4 compatibility.
  5201. # Requires OpenSSL 0.9.6a or higher
  5202. linux+krb5+krb4+srp+openssl:
  5203.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SRP,SSL...'
  5204.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5205.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5206.     -DCK_AUTHENTICATION -DCK_SRP -DCK_KERBEROS  -DKRB5 -DKRB4 -DKRB524 \
  5207.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL \
  5208.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5209.     $(K5INC) $(K5INC)/krb5 $(SRPINC) $(SSLINC) \
  5210.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5211.     "LIBS = $(K5LIB) $(SRPLIB) $(SSLLIB) \
  5212.     -lncurses -ltermcap -lsrp \
  5213.     -lkrb4 -lssl -lkrypto -lcrypto \
  5214.     -lkrb5 -lcom_err -lk5crypto -lgssapi_krb5 -lcrypt -lresolv"
  5215.  
  5216. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.2, SSL/TLS.
  5217. #
  5218. # libsrp.a should be build with OpenSSL
  5219. # Requires the Kerberos 1.2.2 be compiled with KRB4 compatibility.
  5220. linux+krb5+krb4+openssl:
  5221.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SSL...'
  5222.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5223.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5224.     -DCK_AUTHENTICATION -DCK_KERBEROS  -DKRB5 -DKRB4 -DKRB524 \
  5225.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL \
  5226.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5227.     $(K5INC) $(K5INC)/krb5 $(SSLINC) \
  5228.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5229.     "LIBS = $(K5LIB) $(SSLLIB) \
  5230.     -lncurses -ltermcap \
  5231.     -lkrb4 -lssl -lcrypto -lkrb5 -lcom_err \
  5232.     -lk5crypto -lgssapi_krb5 -lcrypt -lresolv"
  5233.  
  5234. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.1, SSL/TLS.
  5235. #
  5236. # libsrp.a should be build with OpenSSL
  5237. # Requires the Kerberos 1.2.2 be compiled with KRB4 compatibility.
  5238. linux+krb5+krb4+openssl+shadow:
  5239.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SSL...'
  5240.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5241.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5242.     -DCK_AUTHENTICATION -DCK_KERBEROS  -DKRB5 -DKRB4 -DKRB524 \
  5243.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL -DCK_SHADOW \
  5244.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5245.     $(K5INC) $(K5INC)/krb5 $(SSLINC) \
  5246.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5247.     "LIBS = $(K5LIB) $(SSLLIB)  \
  5248.     -lncurses -ltermcap \
  5249.     -lkrb4 -lssl -lcrypto -lkrb5 -lcom_err \
  5250.     -lk5crypto -lgssapi_krb5 -lcrypt -lresolv"
  5251.  
  5252. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2, SSL/TLS.
  5253. #
  5254. # libsrp.a should be build with OpenSSL
  5255. # Requires the Kerberos 1.2.2 be compiled with KRB4 compatibility.
  5256. linux+krb5+krb4+openssl+zlib+shadow:
  5257.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SSL...'
  5258.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5259.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5260.     -DCK_AUTHENTICATION -DCK_KERBEROS  -DKRB5 -DKRB4 -DKRB524 -DZLIB \
  5261.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL -DCK_SHADOW \
  5262.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5263.     $(K5INC) $(K5INC)/krb5 $(SSLINC) \
  5264.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5265.     "LIBS = $(K5LIB) $(SSLLIB) \
  5266.     -lncurses -ltermcap \
  5267.     -lkrb4 -lssl -lcrypto -lkrb5 -lcom_err \
  5268.     -lk5crypto -lgssapi_krb5 -lcrypt -lresolv -lz"
  5269.  
  5270. linux+krb5+krb4+srp-export:
  5271.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SRP...'
  5272.     $(MAKE) krbmit-export KTARGET=$${KTARGET:-$(@)} \
  5273.     "CC = gcc" "CC2 = gcc" \
  5274.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5275.     -DCK_AUTHENTICATION -DCK_SRP -DCK_KERBEROS  -DKRB5 -DKRB4 -DKRB524 \
  5276.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5277.     $(K5INC) $(K5INC)/krb5 $(SRPINC) \
  5278.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5279.     "LIBS = $(SRPLIB) $(K5LIB) \
  5280.     -lncurses -ltermcap -lsrp -lgmp -lkrb4 -ldes425 -lkrb5 -lgssapi_krb5 \
  5281.     -lcom_err -lk5crypto -lkrypto -lcrypt -lresolv"
  5282.  
  5283. linux+krb5+krb4+srp+pam:
  5284.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SRP...'
  5285.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5286.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5287.     -DCK_AUTHENTICATION -DCK_SRP -DCK_KERBEROS  -DKRB5 -DKRB4 -DKRB524 \
  5288.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES \
  5289.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5290.     -DCK_PAM $(K5INC) $(K5INC)/krb5 $(SRPINC) \
  5291.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5292.     "LIBS = $(SRPLIB) $(K5LIB) \
  5293.     -lncurses -ltermcap -lsrp -lgmp -ldes -lkrb4 -ldes425 -lkrb5 \
  5294.     -lcom_err -lk5crypto -lgssapi_krb5 -lkrypto -lcrypt -lpam -ldl \
  5295.     -lresolv"
  5296.  
  5297. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.2, SRP and SSL/TLS.
  5298. # and PAM.
  5299. #
  5300. # libsrp.a should be build with OpenSSL
  5301. # Requires the Kerberos 1.2.2 be compiled with KRB4 compatibility.
  5302. linux+krb5+krb4+srp+openssl+pam-debug:
  5303.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SRP,SSL...'
  5304.     $(MAKE) krbmit-debug KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5305.     "CFLAGS = -g -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5306.     -DCK_AUTHENTICATION -DCK_SRP -DCK_KERBEROS  -DKRB5 -DKRB4 -DKRB524 \
  5307.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL -DCK_PAM \
  5308.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5309.     -w -Dmalloc=dmalloc -Dfree=dfree -DMDEBUG $(K5INC) $(K5INC)/krb5 \
  5310.     $(SRPINC) $(SSLINC) $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5311.     "LIBS = $(SRPLIB) $(K5LIB) $(SSLLIB) \
  5312.     -lncurses -ltermcap -lsrp -lkrb4 -lssl -lkrypto -lcrypto \
  5313.     -lkrb5 -lcom_err -lk5crypto -lgssapi_krb5 -lcrypt -lresolv -lpam -ldl"
  5314.  
  5315. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.1, SRP and SSL/TLS.
  5316. # and PAM.
  5317. #
  5318. # libsrp.a should be build with OpenSSL
  5319. # Requires the Kerberos 1.2.2 be compiled with KRB4 compatibility.
  5320. linux+krb5+krb4+srp+openssl+pam:
  5321.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SRP,SSL...'
  5322.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5323.     "CFLAGS = -g -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5324.     -DCK_AUTHENTICATION -DCK_SRP -DCK_KERBEROS  -DKRB5 -DKRB4 -DKRB524 \
  5325.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL -DCK_PAM \
  5326.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5327.     $(K5INC) $(K5INC)/krb5 $(SRPINC) $(SSLINC) \
  5328.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5329.     "LIBS = $(SRPLIB) $(K5LIB) $(SSLLIB)  \
  5330.     -lm -lncurses -ltermcap -lsrp \
  5331.     -lkrb4 -lssl -lkrypto  -lcrypto -lgssapi_krb5 \
  5332.     -lkrb5 -lcom_err -lk5crypto -lcrypt -lresolv -lpam -ldl"
  5333.  
  5334. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.2, SRP, OpenSSL
  5335. # with ZLIB and PAM
  5336. #
  5337. # libsrp.a should be build with OpenSSL
  5338. # Requires the Kerberos 1.2.2 be compiled with KRB4 compatibility.
  5339. linux+krb5+krb4+srp+openssl+zlib+pam:
  5340.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SRP,SSL...'
  5341.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5342.     "CFLAGS = -g -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5343.     -DCK_AUTHENTICATION -DCK_SRP -DCK_KERBEROS  -DKRB5 -DKRB4 -DKRB524 \
  5344.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL -DCK_PAM -DZLIB \
  5345.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5346.     $(K5INC) $(K5INC)/krb5 $(SRPINC) $(SSLINC) \
  5347.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5348.     "LIBS = $(SRPLIB) $(K5LIB) $(SSLLIB) \
  5349.     -lm -lncurses -ltermcap -lsrp \
  5350.     -lkrb4 -lssl -lkrypto  -lcrypto -lgssapi_krb5 \
  5351.     -lkrb5 -lcom_err -lk5crypto -lcrypt -lresolv -lpam -ldl -lz"
  5352.  
  5353. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.2, SRP, OpenSSL
  5354. # with ZLIB, Shadow Passwords, and PAM
  5355. #
  5356. # libsrp.a should be build with OpenSSL
  5357. # Requires the Kerberos 1.2.2 be compiled with KRB4 compatibility.
  5358. linux+krb5+krb4+srp+openssl+zlib+shadow+pam:
  5359.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SRP,SSL...'
  5360.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5361.     "CFLAGS = -g -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5362.     -DCK_AUTHENTICATION -DCK_SRP -DCK_KERBEROS  -DKRB5 -DKRB4 -DKRB524 \
  5363.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL -DCK_PAM -DZLIB \
  5364.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5365.     -DCK_SHADOW $(K5INC) $(K5INC)/krb5 $(SRPINC) $(SSLINC) \
  5366.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5367.     "LIBS = $(SRPLIB) $(K5LIB) $(SSLLIB) \
  5368.     -lm -lncurses -ltermcap -lsrp -lkrypto \
  5369.     -lkrb4 -lssl -lcrypto -lgssapi_krb5 \
  5370.     -lkrb5 -lcom_err -lk5crypto -lcrypt -lresolv -lpam -ldl -lz"
  5371.  
  5372. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.2, OpenSSL
  5373. # with ZLIB, Shadow Passwords, PAM
  5374. #
  5375. # libsrp.a should be build with OpenSSL
  5376. # Requires the Kerberos 1.2.2 be compiled with KRB4 compatibility.
  5377. linux+krb5+krb4+openssl+zlib+shadow+pam:
  5378.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SRP,SSL...'
  5379.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5380.     "CFLAGS = -g -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5381.     -DCK_AUTHENTICATION -DCK_KERBEROS  -DKRB5 -DKRB4 -DKRB524 \
  5382.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL -DCK_PAM -DZLIB \
  5383.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5384.     -DCK_SHADOW $(K5INC) $(K5INC)/krb5 $(SSLINC) \
  5385.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5386.     "LIBS = $(K5LIB) $(SSLLIB) \
  5387.     -lm -lncurses -ltermcap \
  5388.     -lkrb4 -lssl -lcrypto -lgssapi_krb5 \
  5389.     -lkrb5 -lcom_err -lk5crypto -lcrypt -lresolv -lpam -ldl -lz"
  5390.  
  5391. #Red Hat Linux 7.1 - full install includes Kerberos 5 (4 compat), PAM, SSL.
  5392. #Also works around bug in curses in which terminal goes dead after
  5393. #returning from file-transfer display.
  5394. redhat71:
  5395.     $(MAKE) linux+krb5+krb4+openssl+zlib+shadow+pam \
  5396.     KTARGET=$${KTARGET:-$(@)} "KFLAGS = -DRH71 $(KFLAGS)"
  5397.  
  5398. redhat71+srp:
  5399.     $(MAKE) linux+krb5+krb4+srp+openssl+zlib+shadow+pam \
  5400.     KTARGET=$${KTARGET:-$(@)} "KFLAGS = -DRH71 $(KFLAGS)"
  5401.  
  5402. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.2, OpenSSL
  5403. # with ZLIB and PAM and Shadow passwords
  5404. linux+krb5+openssl+zlib+shadow+pam:
  5405.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB5,SSL...'
  5406.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5407.     "CFLAGS = -g -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5408.     -DCK_AUTHENTICATION -DCK_KERBEROS  -DKRB5 -DCK_SHADOW \
  5409.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL -DCK_PAM -DZLIB \
  5410.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5411.     $(K5INC) $(K5INC)/krb5 $(SSLINC) \
  5412.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5413.     "LIBS = $(K5LIB) $(SSLLIB) \
  5414.     -lm -lncurses -ltermcap -lssl -lcrypto -lgssapi_krb5 \
  5415.     -lkrb5 -lcom_err -lk5crypto -lcrypt -lresolv -lpam -ldl -lz"
  5416.  
  5417. linuxnotcp:
  5418.     $(MAKE) linux KTARGET=$${KTARGET:-$(@)} "KFLAGS = -DNONET $(KFLAGS)"
  5419.  
  5420. # "make linuxnotcp" with lcc (see http://www.cs.princeton.edu/software/lcc)
  5421. # lcc does not understand various gcc extensions:
  5422. #  "__inline__" -- can be eliminated by adding "-D__inline__="
  5423. #  "__asm__ and "long long" -- in header files, should be surrounded by
  5424. #                              "#ifndef(__STRICT_ANSI__)"/"#endif"
  5425. #  however, TCP requires some __asm__ functions, so cannot be compiled
  5426. linuxnotcp-lcc:
  5427.     @echo 'Making C-Kermit $(CKVER) for Linux with lcc ...'
  5428.     @echo 'Read comments in makefile for additional information.'
  5429.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC = lcc" "CC2 = lcc" \
  5430.     "CFLAGS = -DLINUX -DPOSIX -DCK_CURSES -DCK_POSIX_SIG \
  5431.     -UTCPSOCKET -DLINUXFSSTND -DNOLEARN $(KFLAGS)" \
  5432.     "LNKFLAGS = $(LNKFLAGS)" "LIBS = -lcurses -ltermcap"
  5433.  
  5434. # Linux 0.99.14 thru 1.0 with gcc, dynamic libraries, curses, TCP/IP.
  5435. # For Linux 1.2 or later, use "make linux" (above).
  5436. #
  5437. # -DLINUXFSSTND (Linux File System Standard) gives UUCP lockfile /var/lock with
  5438. # string pid.  Remove this and get /usr/spool/uucp with int pid, which was used
  5439. # in early Linux versions.
  5440. #
  5441. # If you get compiler errors regarding <linux/serial.h>, add -DNOHISPEED.
  5442. #
  5443. # -DCK_POSIX_SIG (POSIX signal handling) is good for Linux releases back to at
  5444. # least 0.99.14; if it causes trouble for you, just remove it.
  5445. #
  5446. # -DCK_CURSES: Here we link with the regular curses library.  But you should
  5447. # be using ncurses.  Internally, the ckuusx.c module includes <curses.h>, but
  5448. # this really should be <ncurses.h>.  Thus if you have the new curses
  5449. # material, you should either install it with the standard names, or else
  5450. # create symbolic links from the standard names to the new ones.  If you get
  5451. # compile-time errors complaining about data definitions in termcap.h, it
  5452. # means you have new kernel material mixed with older libc header files.  To
  5453. # fix, add "#include <termios.h>" to the <termcap.h> file.  Or if all this is
  5454. # too confusing, create a new makefile entry based on this one, but with
  5455. # -DCK_CURSES removed from CFLAGS and the entire LIBS= clause removed.
  5456. #
  5457. # But wait, there's more.  On most Linux systems, -ltermcap must be included
  5458. # in LIBS.  But on others, the linker complains that libtermcap can't be
  5459. # found.  In that case, try removing -ltermcap from LIBS=.
  5460. #
  5461. # But wait, there's more.  The format of the PID string in the UUCP lockfile
  5462. # changed between Linux FSSTND 1.0 and 1.2.  In the earlier standard, it had
  5463. # leading zeros; in the second, it has leading spaces.  By default this entry
  5464. # uses the newer standard.  To force the older one, add -DFSSTND10.
  5465. #
  5466. # "The nice thing about the Linux standard is there are so many to choose from"
  5467. #
  5468. # NOTE: Remove -DBIGBUFOK for small-memory or limited-resource systems.
  5469. linux10:
  5470.     @echo 'Making C-Kermit $(CKVER) for Linux 1.0 or earlier...'
  5471.     @echo 'IMPORTANT: Read the comments in the linux section of the'
  5472.     @echo 'makefile if you get compilation or link errors.'
  5473.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5474.     "CFLAGS = -O -DPOSIX -DCK_CURSES -DCK_POSIX_SIG -DLINUX \
  5475.     -DTCPSOCKET -DLINUXFSSTND -DOLINUXHISPEED -DNOLEARN $(KFLAGS)" \
  5476.     "LNKFLAGS = $(LNKFLAGS)" "LIBS = -lcurses -ltermcap"
  5477.  
  5478. #This version was used for Linux prior to C-Kermit 6.0.192.
  5479. #Now the "Linux File System Standard" is considered standard, ditto TCP/IP.
  5480. linuxold:
  5481.     @echo 'Making C-Kermit $(CKVER) for Linux...'
  5482.     @echo 'For FSSTND-recommended UUCP lockfiles, use:'
  5483.     @echo '  make linux "KFLAGS=-DLINUXFSSTND".'
  5484.     @echo 'Read comments in makefile for additional options.'
  5485.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5486.     "CFLAGS = -O -DLINUX -DPOSIX -DCK_CURSES -DCK_POSIX_SIG -DNOLEARN \
  5487.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" "LIBS = -lcurses -ltermcap"
  5488.  
  5489. # LynxOS 2.2 with GCC compiler, TCP/IP and fullscreen display.
  5490. # Probably also works with Lynx 2.1, and maybe even Lynx 2.0.
  5491. # -X means use termios serial drivers rather than BSD4.3-style sgtty drivers.
  5492. # If you have trouble with this, try "make bsd KFLAGS=-DNOFDZERO".
  5493. lynx:
  5494.     @echo 'Making C-Kermit $(CKVER) for LynxOS 2.2 with TCP/IP'
  5495.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5496.     "CFLAGS= -O -DPOSIX -DDIRENT -DSETREUID -DCK_CURSES -DTCPSOCKET \
  5497.     -DCK_ANSIC -DLYNXOS -DNOLEARN" "LNKFLAGS = -X" "LIBS = -lcurses -lbsd"
  5498.  
  5499. lynx22:
  5500.     $(MAKE) lynx KTARGET=$${KTARGET:-$(@)} "KFLAGS=$(KFLAGS)"
  5501.  
  5502. # LynxOS 2.1 with GCC compiler 1.40 and TCP/IP.
  5503. lynx21:
  5504.     @echo 'Making C-Kermit $(CKVER) for LynxOS 2.1 with TCP/IP'
  5505.     $(MAKE) kermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5506.     "CFLAGS= -O -DSETREUID -DTCPSOCKET -DCK_ANSIC -DBSD4 -DLYNXOS" \
  5507.     "LIBS = -lbsd"
  5508.  
  5509. #SCO Xenix 2.2.1 for IBM PC, XT, PS2/30, or other 8088 or 8086 machine
  5510. #Should this not work, try some of the tricks from sco286.
  5511. #NOTE: -DRENAME is omitted for early SCO Xenix releases because it didn't
  5512. #exist, or its semantics were different from the later POSIX-compliant
  5513. #version of rename().
  5514. sco86:
  5515.     @echo 'Making C-Kermit $(CKVER) for SCO Xenix/86...'
  5516.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  5517.     "CFLAGS= -DXENIX -DNOFILEH -DNOIKSD -DNOUNICODE -DNOLEARN \
  5518.     $(KFLAGS) -Dunix -F 3000 -i -M0me" \
  5519.     "LNKFLAGS = -F 3000 -i -s -M0me" "LIBS = -lx"
  5520.  
  5521. #SCO Xenix/286 2.2.1, e.g. for IBM PC/AT, PS/2 Model 50, etc.
  5522. #Reportedly, this "make" can fail simply because of the size of this
  5523. #makefile.  If that happens, use "makeL", or edit out some of the
  5524. #other entries.  No debugging or character-set translation.
  5525. sco286:
  5526.     @echo 'Making C-Kermit $(CKVER) for SCO Xenix/286...'
  5527.     @echo 'If make fails, try using makeL.'
  5528.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  5529.     "CFLAGS= -xenix -s -O -LARGE -DXENIX -DNOFILEH -Dunix -DRDCHK -DNAP \
  5530.     -DNOIKSD -DNODEBUG -DNOTLOG -DNOCSETS -DNOLEARN \
  5531.     $(KFLAGS) -F 3000 -i -M2let16" \
  5532.     "LIBS = -lx" "LNKFLAGS = -xenix -s -O -LARGE -F 3000 -i -M2let16"
  5533.  
  5534. #SCO Xenix/286 2.2.1, e.g. for IBM PC/AT, PS/2 Model 50, etc.
  5535. #As above, but with HDBUUCP (This one might need fixing -- see sco286).
  5536. sco286hdb:
  5537.     @echo 'Making C-Kermit $(CKVER) for SCO Xenix/286 with HDB UUCP...'
  5538.     @echo 'If make fails, try using makeL.'
  5539.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  5540.     "CFLAGS= -s -O -LARGE -DXENIX -DNOFILEH -Dunix -DRDCHK -DNAP \
  5541.     -DHDBUUCP -DNOIKSD -DNOUNICODE -DNOLEARN \
  5542.     $(KFLAGS) -F 3000 -i -M2let32" \
  5543.     "LIBS = -lx" "LNKFLAGS = -s -O -LARGE -F 3000 -i -M2let32"
  5544.  
  5545. #SCO Xenix/386 2.2.2 and 2.2.3
  5546. sco386:
  5547.     @echo 'Making C-Kermit $(CKVER) for SCO Xenix/386 2.2.2...'
  5548.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  5549.     "CFLAGS= -DXENIX -DNOFILEH -DNOIKSD -DNOREDIRECT -DNOLEARN \
  5550.     -Dunix -DRDCHK -DNAP -DNOUNICODE $(KFLAGS) -Otcl -M3e" \
  5551.     "LNKFLAGS = -s" "LIBS = -lx"
  5552.  
  5553. #SCO XENIX/386 2.2.3 with Excelan TCP/IP + curses.
  5554. # NOTE: This one might need some work in C-Kermit 6.0.
  5555. # You might need to include /usr/include/sys/types.h
  5556. # containing "typedef char *caddr_t;".  Then at least it compiles.
  5557. sco386netc:
  5558.     @echo 'Making C-Kermit $(CKVER) for SCO Xenix/386 2.2.3 + Excelan TCP'
  5559.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  5560.     "CFLAGS= -I/usr/include/exos -DXENIX -DCK_CURSES -DNOUNICODE \
  5561.     -Dunix -DRDCHK -DNAP -DTCPSOCKET -DEXCELAN -DNOJC -DNOMKDIR -DNOFILEH \
  5562.     -DNOLEARN -DNOREDIRECT -DNOIKSD -DNO_DNS_SRV $(KFLAGS) -Otcl -M3e" \
  5563.     "LNKFLAGS = -s" "LIBS = -lc -lx -lsocket -lcurses -ltermcap"
  5564.  
  5565. #SCO XENIX/386 2.3.3 with gcc 1.37 or later...
  5566. sco386gcc:
  5567.     @echo 'Making C-Kermit $(CKVER) for SCO Xenix/386 2.3.3, gcc...'
  5568.     @echo 'Add -D_NO_PROTOTYPE if you have trouble with Xenix header files'
  5569.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5570.     "CFLAGS= -O -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP \
  5571.     -DNOJC -DNODEBUG -DNOUNICODE -DNOLEARN $(KFLAGS) \
  5572.     -traditional -fpcc-struct-return -fstrength-reduce \
  5573.     -DM_BITFIELDS -DM_COFF -DM_I386 -DM_I86 -DM_I86SM \
  5574.     -DM_INTERNAT -DM_SDATA -DM_STEXT -DM_SYS3 -DM_SYS5 \
  5575.     -DM_SYSIII -DM_SYSV -DM_WORDSWAP -DM_XENIX -DNOIKSD -DNOREDIRECT \
  5576.     -DPWID_T=int " "LNKFLAGS = -s" "LIBS = -lx"
  5577.  
  5578. #As above, but with curses...
  5579. sco386gccc:
  5580.     @echo 'Making C-Kermit $(CKVER) for SCO Xenix/386 2.3.3, gcc...'
  5581.     @echo 'Add -D_NO_PROTOTYPE if you have trouble with Xenix header files'
  5582.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5583.     "CFLAGS= -O -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP \
  5584.     -DNOJC -DNODEBUG -DCK_CURSES -DNOUNICODE -DNOLEARN $(KFLAGS) \
  5585.     -traditional -fpcc-struct-return -fstrength-reduce \
  5586.     -DM_BITFIELDS -DM_COFF -DM_I386 -DM_I86 -DM_I86SM -DNOREDIRECT \
  5587.     -DM_INTERNAT -DM_SDATA -DM_STEXT -DM_SYS3 -DM_SYS5 \
  5588.     -DM_SYSIII -DM_SYSV -DM_WORDSWAP -DM_XENIX -DNOIKSD \
  5589.     -DPWID_T=int " "LNKFLAGS = -s" "LIBS = -lx -lcurses -ltermlib"
  5590.  
  5591. #SCO UNIX (and ODT) entries...
  5592. #
  5593. #NOTE: All SCO UNIX entry LIBS should have "-lc_s -lc -lx" IN THAT ORDER (if
  5594. #shared C library is desired), or else "-lc -lx" IN THAT ORDER.  Use shared C
  5595. #libraries to save memory, but then don't expect to run the resulting binary
  5596. #on a different machine.  When using -lc_s, you must also use -lc, because the
  5597. #shared C library does not contain all of libc.a.  And in all cases, -lc must
  5598. #ALWAYS precede -lx.
  5599. #
  5600. #ANOTHER NOTE: -DRENAME is included in all SCO UNIX entries.  Remove it if it
  5601. #causes trouble.  No harm is done by removing it (see ckuins.txt).
  5602. #
  5603. #AND ANOTHER: In theory, it should be possible to run SCO UNIX binaries on
  5604. #SCO Xenix 2.3 and later.  In practice, this might not work because of the
  5605. #libraries, etc.  Also, don't add the -link -z switch (which is supposed to
  5606. #root out references to null pointers) because it makes UNIX binaries core
  5607. #dump when they are run under Xenix.
  5608.  
  5609. #NOTE: -Otcl removed and replaced by -O, since -Otcl produced incorrect code.
  5610. #SCO UNIX/386 3.2.0, 3.2.1, and SCO Xenix 2.3.x
  5611. sco3r2:
  5612.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2.0 or 3.2.1 ...'
  5613.     @echo 'Warning: If make blows up, edit the makefile to join'
  5614.     @echo 'the following three continued lines into one line.'
  5615.     @echo 'Also, remove -DRENAME if _rename unresolved at link time.'
  5616.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  5617.     "CFLAGS= -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP -DNOLEARN \
  5618.     -DRENAME -DNOIKSD -DNOJC $(KFLAGS) -O" \
  5619.     "LNKFLAGS = -s" "LIBS = -lc -lx"
  5620.  
  5621. #SCO UNIX/386 3.2.0 and SCO Xenix 2.3.x with Excelan TCP/IP support.
  5622. #In case of compilation or runtime problems, try adding
  5623. #"-DUID_T=int -DGID_T=int" to the CFLAGS.  If that doesn't work, try
  5624. #"-DUID_T=uid_t -DGID_T=gid_t".
  5625. sco3r2net:
  5626.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 / Excelan...'
  5627.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  5628.     "CFLAGS= -I/usr/include/exos -DXENIX -DSVR3 -DNOFILEH -DNOLEARN \
  5629.     -DHDBUUCP -DRDCHK -DNAP -DRENAME -DTCPSOCKET -DEXCELAN -DNOJC \
  5630.     -DNOIKSD -DNOREDIRECT $(KFLAGS) -O" \
  5631.     "LNKFLAGS = -s" "LIBS = -lc -lx -lsocket"
  5632.  
  5633. #SCO UNIX/386 3.2.0 and SCO Xenix 2.3.x with Excelan TCP/IP support.
  5634. #As above, with curses added.
  5635. sco3r2netc:
  5636.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 / Excelan / curses...'
  5637.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  5638.     "CFLAGS= -I/usr/include/exos -DXENIX -DSVR3 -DNOFILEH -DNOLEARN \
  5639.     -DHDBUUCP -DRDCHK -DNAP -DTCPSOCKET -DEXCELAN -DNOJC $(KFLAGS) \
  5640.     -DRENAME -DCK_CURSES -DNOREDIRECT -DNOIKSD -O" "LNKFLAGS = -s" \
  5641.     "LIBS = -lc -lx -lsocket -lcurses -ltermcap"
  5642.  
  5643. #SCO UNIX 3.2.x or SCO Xenix 2.3.x with Racal InterLan TCP/IP support
  5644. # Extra compile flags for other version of Racal InterLan TCP/IP:
  5645. # Xenix286/NP621-286, use -Ml -DPARAMH -DINTERLAN -Di286 -DSYSV
  5646. # Xenix386/NP621-386, use -DPARAMH -DINTERLAN -Di386 -DSYSV
  5647. # ISC386ix/NP622I, use -DSYSV -Di386
  5648. # SCO Unix3.2/NP622S, use -DSYSV -Di386 -DSCO_UNIX
  5649. # AT&T SVR3.2/NP622A, use -DSYSV -Di386 -DATT
  5650. sco3r2netri:
  5651.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 / Racal InterLan...'
  5652.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  5653.     "CFLAGS= -I/usr/include/interlan -DXENIX -DNOFILEH -DHDBUUCP \
  5654.     -DSVR3 -DRDCHK -DNAP -DTCPSOCKET -DPARAMH -DINTERLAN -Di386 -DSYSV \
  5655.     -DRENAME -DNOREDIRECT -DNOIKSD -DNOJC -DNOLEARN $(KFLAGS) -Otcl -M3e" \
  5656.     "LNKFLAGS = -s" "LIBS = -lc -lx -ltcp"
  5657.  
  5658. # SCO XENIX/386 2.3.3 SysV with SCO TCP/IP
  5659. # System V STREAMS TCP developed by Lachman Associates Inc and
  5660. # Convergent Technologies.
  5661. # -DRENAME removed since some reports indicate it is not supported
  5662. # (whereas others say it is.)
  5663. sco3r2lai:
  5664.     @echo 'Making C-Kermit $(CKVER) for SCO XENIX/386 2.3.3 + TCP/IP...'
  5665.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  5666.     "CFLAGS= -DLAI_TCP -Di386 -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK \
  5667.     -DNAP -DTCPSOCKET -DPWID_T=int -DNOREDIRECT -DNOIKSD -DNOLEARN \
  5668.     $(KFLAGS) -Otcl -i -M3e" \
  5669.     "LNKFLAGS = -i -s" "LIBS = -lc -lx -lsocket"
  5670.  
  5671. sco3r2laic:
  5672.     @echo 'Making C-Kermit $(CKVER) for SCO XENIX/386 2.3.3 + TCP/IP...'
  5673.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  5674.     "CFLAGS= -DLAI_TCP -Di386 -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK \
  5675.     -DNAP -DTCPSOCKET -DCK_ANSIC -DCK_CURSES -DM_TERMINFO -DNOLEARN \
  5676.     -DPWID_T=int -DNOREDIRECT -DNOIKSD $(KFLAGS) -Otcl -i -M3e" \
  5677.     "LNKFLAGS = -i -s" "LIBS = -ltinfo -lc -lx -lsocket"
  5678.  
  5679. #SCO UNIX/386 3.2v2 (POSIX job control), shared libraries.
  5680. sco3r22:
  5681.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v2 ...'
  5682.     make wermit KTARGET=$${KTARGET:-$(@)} \
  5683.     "CFLAGS= -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNOLEARN \
  5684.     -DNAP -DRENAME -DPID_T=pid_t -DPWID_T=int -DDIRENT -DNOIKSD \
  5685.     -DNOREDIRECT $(KFLAGS) -O" \
  5686.     "LNKFLAGS = -s" "LIBS = -lc_s -lc -lx"
  5687.  
  5688. #SCO UNIX/386 3.2v2, POSIX job control, fullscreen file transfer display,
  5689. #dynamic memory allocation, shared C library
  5690. sco3r22c:
  5691.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v2 ...'
  5692.     @echo 'Warning: If make blows up, edit the makefile to join'
  5693.     @echo 'the following four continued lines into one line.'
  5694.     make wermit KTARGET=$${KTARGET:-$(@)} \
  5695.     "CFLAGS= -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP -DNOLEARN \
  5696.     -DCK_CURSES -DDIRENT -DRENAME -DNOREDIRECT -DNOIKSD \
  5697.     -DPID_T=pid_t -DPWID_T=int $(KFLAGS) -O" \
  5698.     "LNKFLAGS = -s" "LIBS = -lcurses -lc_s -lc -lx"
  5699.  
  5700. #SCO UNIX/386 3.2v2 with gcc 1.40 or later (POSIX job control)
  5701. sco3r22gcc:
  5702.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v2, gcc'
  5703.     @echo 'Warning: If make blows up, edit the makefile to join'
  5704.     @echo 'the following seven continued lines into one line.'
  5705.     make wermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" \
  5706.     "CFLAGS= -O -DPOSIX -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP \
  5707.     -DNOLEARN -DRENAME -traditional -fpcc-struct-return -fstrength-reduce \
  5708.     -DM_BITFIELDS -DM_COFF -DM_I386 -DM_I86 -DM_I86SM \
  5709.     -DM_INTERNAT -DM_SDATA -DM_STEXT -DM_SYS3 -DM_SYS5 \
  5710.     -DM_SYSIII -DM_SYSV -DM_UNIX -DM_WORDSWAP -DM_XENIX -Dunix \
  5711.     -DPID_T=pid_t -DPWID_T=int -DNOREDIRECT -DNOIKSD $(KFLAGS) " \
  5712.     "LNKFLAGS = -s" "LIBS = -lc_s -lc -lx"
  5713.  
  5714. #SCO UNIX/386 3.2v2 (ODT 1.1) (POSIX job control) with SCO TCP/IP, shared libs
  5715. #Requires SCO TCP/IP or ODT development system for telnet.h, etc.
  5716. sco3r22net:
  5717.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2.2 + TCP/IP...'
  5718.     @echo 'Warning: If make blows up, edit the makefile to join'
  5719.     @echo 'the following three continued lines into one line.'
  5720.     make xermit KTARGET=$${KTARGET:-$(@)} \
  5721.     "CFLAGS= -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP -DTCPSOCKET \
  5722.     -DRENAME -DPID_T=pid_t -DPWID_T=int -DDIRENT -DNOREDIRECT -DNOIKSD \
  5723.     $(KFLAGS) -O" "LNKFLAGS = -s" "LIBS = -lsocket -lc_s -lc -lx"
  5724.  
  5725. #As above, but with curses for fullscreen file transfer display.
  5726. #Requires SCO TCP/IP or ODT development system for telnet.h, etc.
  5727. sco3r22netc:
  5728.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v2 + TCP/IP...'
  5729.     @echo 'Warning: If make blows up, edit the makefile to join'
  5730.     @echo 'the following three continued lines into one line.'
  5731.     make xermit KTARGET=$${KTARGET:-$(@)} "CFLAGS= \
  5732.     -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP -DTCPSOCKET -DRENAME \
  5733.     -DCK_CURSES -DDIRENT -DNOIKSD -DNOREDIRECT \
  5734.     -DPID_T=pid_t -DPWID_T=int -O $(KFLAGS)" \
  5735.     "LNKFLAGS = -s" "LIBS = -lcurses -lsocket -lc_s -lc -lx"
  5736.  
  5737. #SCO XENIX 2.3.4, no curses, no TCP/IP, no IKSD.
  5738. #This one built and tested in C-Kermit 7.0.
  5739. #lcfp is C library floating-point support.
  5740. #Use -M3 to generate 32-bit i386 code instead of 16-bit segmented i286 code.
  5741. #Use -Me to enable MS nonstandard keywords in system headers.
  5742. #Use -W2 or W3 to increase the warning level.
  5743. sco234:
  5744.     @echo 'Making C-Kermit $(CKVER) for SCO XENIX 2.3.4...'
  5745.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  5746.     "CFLAGS= -DSCO32 -DXENIX -DNOFILEH -DHDBUUCP -DRDCHK -DNOLEARN \
  5747.     -DNAP -DNOJC -DNOCOTFMC -DNOIKSD -DNOREDIRECT -DNOTNCODE -DNOGFTIMER \
  5748.     -DNOTIMEVAL -DNOTIMEZONE -DNOSYMLINK -DSCO234 -DDCLGETCWD $(KFLAGS) \
  5749.     -Otcl" "LNKFLAGS = -s" "LIBS = -lcfp -lc -lx"
  5750.  
  5751. #SCO XENIX 2.3.4, no TCP/IP, no IKSD, but with curses.
  5752. # Built and tested in C-Kermit 7.0.
  5753. # Note: XENIX 2.3.4 does not have newterm() so no point in adding -DCK_NEWTERM.
  5754. sco234c:
  5755.     @echo 'Making C-Kermit $(CKVER) for SCO XENIX 2.3.4 + curses...'
  5756.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  5757.     "CFLAGS= -DSCO32 -DXENIX -DNOFILEH -DHDBUUCP -DRDCHK -DNOLEARN \
  5758.     -DNAP -DNOJC -DNOCOTFMC -DNOIKSD -DNOREDIRECT -DNOTNCODE -DNOGFTIMER \
  5759.     -DNOTIMEVAL -DNOTIMEZONE -DNOSYMLINK -DCK_CURSES -DSCO234 \
  5760.     -DDCLGETCWD $(KFLAGS) -Otcl" \
  5761.     "LNKFLAGS = -s" "LIBS = -lcfp -lc -ltinfo -lx"
  5762.  
  5763. #SCO XENIX 2.3.4 with SCO TCP/IP and curses, no IKSD.
  5764. # Built and tested in C-Kermit 7.0.  TCP/IP works and curses works.
  5765. # Previous versions of this target included -lmalloc, but this caused "error:
  5766. # " _calloc : symbol defined more than once" at link time so I removed it.
  5767. # Results are likely to vary depending on exactly which version of the SDK
  5768. # and TCP/IP SDK you have.
  5769. sco234netc:
  5770.     @echo 'Making C-Kermit $(CKVER) for SCO XENIX 2.3.4 + TCP + curses...'
  5771.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  5772.     "CFLAGS= -DSCO32 -DXENIX -DNOFILEH -DHDBUUCP -DRDCHK -DNOLEARN \
  5773.     -DNAP -DNOJC -DNOCOTFMC -DNOIKSD -DNOREDIRECT -DNOTNCODE -DNOGFTIMER \
  5774.     -DNOTIMEVAL -DNOTIMEZONE -DNOSYMLINK -DCK_CURSES -DSCO234 \
  5775.     -DDCLGETCWD -DTCPSOCKET -DNO_DNS_SRV $(KFLAGS) -Otcl" \
  5776.     "LNKFLAGS = -s" "LIBS = -ltinfo -lsocket -lcfp -lc -lx"
  5777.  
  5778. # SCO 3.2v4.x targets...
  5779.  
  5780. #  NOTE: Add -DDCLPOPEN and/or -DDCLFDOPEN to anySCO 3.2v4.x non-gcc entries
  5781. #  that complain about fdopen() or popen() at compile time.  They compile OK
  5782. #  without these flags as of July 1999.  However, the gcc entries seem to
  5783. #  need them, at least for gcc 2.7.2.2.
  5784.  
  5785. #  NOTE 2: To enable IKSD support, add:
  5786. #  -DCK_LOGIN -DNOGETUSERSHELL -DNOINITGROUPS
  5787. #  to CFLAGS (not tested).
  5788.  
  5789. #SCO UNIX/386 3.2v4 (POSIX job control), curses, ANSI C compilation,
  5790. #<dirent.h> (EAFS) file system.  Remove -lmalloc if it causes trouble.  It was
  5791. #put there to avoid core dumps caused by regular libc.a malloc.  Add -J to make
  5792. #all chars unsigned.  This version uses select() for CONNECT and also has
  5793. #high-precision timers and so might not work on non-TCP systems, in which case
  5794. #sco32v4ns should be used instead.
  5795. # If you get _ftime redefinition_ complaint, try adding -DODT30 to CFLAGS.
  5796. sco32v4:
  5797.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v4...'
  5798.     make xermit KTARGET=$${KTARGET:-$(@)} \
  5799.     "CFLAGS= -DCK_SCO32V4 -DNOFILEH -DHDBUUCP -DCK_CURSES -DM_TERMINFO \
  5800.     -DNOANSI -DSELECT -DNOIKSD -DDCLGETCWD -NOLSTAT \
  5801.     -DNOLINKBITS -DDCLGETCWD $(KFLAGS) -O" \
  5802.     "LNKFLAGS = -s" "LIBS = -lcurses -lmalloc -lsocket -lc_s -lc -lx"
  5803.  
  5804. # As above, but with no dependence on sockets library or select().
  5805. sco32v4ns:
  5806.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v4...'
  5807.     @echo 'No select() and no sockets library.'
  5808.     make wermit KTARGET=$${KTARGET:-$(@)} \
  5809.     "CFLAGS= -DCK_SCO32V4 -DNOFILEH -DHDBUUCP -DCK_CURSES -DM_TERMINFO \
  5810.     -DNOANSI -DNOIKSD -DNOGFTIMER -DCK_POLL -DNAP -DDCLGETCWD -DNOLSTAT \
  5811.     -DNOLINKBITS -DDCLGETCWD -DNOLEARN -O $(KFLAGS)" \
  5812.     "LNKFLAGS = -s" "LIBS = -lcurses -lmalloc -lc_s -lc -lx"
  5813.  
  5814. #SCO UNIX/386 3.2v4 (POSIX job control), TCP/IP, curses, ANSI C compilation,
  5815. #<dirent.h> (EAFS) file system.  With DIRENT, -lc must come before -lx.
  5816. #Reportedly it's OK to add -DCK_REDIR and -DCK_WREFRESH, and to remove -lc_s.
  5817. #Requires SCO TCP/IP development system or ODT for telnet.h, etc.
  5818. #See sco32v4 above for additional comments.
  5819. #NOTE: No more room for -Dxxx -- 25 seems to be the limit.  Move some to
  5820. #ckcdeb.h or somewhere...
  5821. sco32v4net:
  5822.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v4...'
  5823.     @echo 'If you get _ftime redefinition_ complaint,'
  5824.     @echo 'use make sco-odt30.'
  5825.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  5826.     "CFLAGS= -DNOFILEH -DHDBUUCP -DTCPSOCKET -DCK_ANSIC -DCK_CURSES \
  5827.     -DNAP -DCK_WREFRESH -DNOLINKBITS -D_IBCS2 -DSELECT -DNOLSTAT \
  5828.     -DDCLGETCWD -DCK_SCO32V4 -DNOIKSD -O \
  5829.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS) -s" \
  5830.     "LIBS = $(LIBS) -lcurses -lsocket -lmalloc -lsocket -lc_s -lc -lx"
  5831.  
  5832. #SCO UNIX/386 3.2v4 with gcc 1.40 or later, POSIX job control.
  5833. #Also see comments in sco32r4 entry.
  5834. sco32v4gcc:
  5835.     make xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" \
  5836.     "CFLAGS= -O -DNOFILEH -DHDBUUCP -DNOANSI -DCK_CURSES -DM_TERMINFO \
  5837.     -traditional -fpcc-struct-return -fstrength-reduce -funsigned-char \
  5838.     -D_KR -D_NO_PROTOTYPE -D_SVID -DNOIKSD -DCK_SCO32V4 -DNOLINKBITS \
  5839.     -DM_BITFIELDS -DM_COFF -DM_I386 -DM_I86 -DM_I86SM -DSELECT -DNOLSTAT \
  5840.     -DM_INTERNAT -DM_SDATA -DM_STEXT -DM_SYS3 -DM_SYS5 -DDCLGETCWD \
  5841.     -DM_SYSIII -DM_SYSV -DM_UNIX -DM_WORDSWAP -DM_XENIX -Dunix \
  5842.     -DDCLPOPEN -DDCLFDOPEN $(KFLAGS) " \
  5843.     "LNKFLAGS = -s" "LIBS = -lcurses -lsocket -lc_s -lc -lx"
  5844.  
  5845. #SCO UNIX/386 3.2v4 (POSIX job control), TCP/IP, curses, ANSI C compilation,
  5846. #Requires SCO TCP/IP or ODT development system for telnet.h, etc.
  5847. #<dirent.h> (EAFS) file system.  With DIRENT, -lc must come before -lx.
  5848. #gcc 1.40 or later.  Also see comments in sco32r4 entry.
  5849. sco32v4netgcc:
  5850.     make xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2=gcc" \
  5851.     "CFLAGS= -O2 -DNOFILEH -DHDBUUCP -DSELECT -DNOLSTAT \
  5852.     -DNOANSI -DTCPSOCKET -DCK_CURSES -DM_TERMINFO \
  5853.     -D_KR -D_NO_PROTOTYPE -D_SVID -DNOIKSD -DCK_SCO32V4 -DNOLINKBITS \
  5854.     -DM_BITFIELDS -DM_COFF -DM_I386 -DM_I86 -DM_I86SM -DDCLGETCWD \
  5855.     -DM_INTERNAT -DM_SDATA -DM_STEXT -DM_SYS3 -DM_SYS5 \
  5856.     -DM_SYSIII -DM_SYSV -DM_UNIX -DM_WORDSWAP -DM_XENIX -Dunix \
  5857.     -DDCLPOPEN -DDCLFDOPEN $(KFLAGS)" \
  5858.     "LNKFLAGS = -s" "LIBS = -lcurses -lsocket -lc_s -lc -lx"
  5859.  
  5860. #As above but with bgcc BOUNDS CHECKING (for developers only).  -lcheck has
  5861. #bounds-checking replacements for malloc, memcpy, bcopy, etc, so must come
  5862. #before -lsocket and -lc.
  5863. sco32v4netbgcc:
  5864.     make xermit KTARGET=$${KTARGET:-$(@)} \
  5865.     "CC = bgcc -pipe -m386" "CC2=bgcc -pipe -m386" \
  5866.     "CFLAGS= -O1 -g -DNOFILEH -DHDBUUCP -DSELECT \
  5867.     -DNOANSI -DTCPSOCKET -DCK_CURSES -DM_TERMINFO \
  5868.     -D_KR -D_NO_PROTOTYPE -D_SVID -DNOIKSD -DCK_SCO32V4 -DNOLSTAT \
  5869.     -DM_BITFIELDS -DM_COFF -DM_I386 -DM_I86 -DM_I86SM -DNOLINKBITS \
  5870.     -DM_INTERNAT -DM_SDATA -DM_STEXT -DM_SYS3 -DM_SYS5 -DDCLGETCWD \
  5871.     -DM_SYSIII -DM_SYSV -DM_UNIX -DM_WORDSWAP -DM_XENIX -Dunix \
  5872.     -DDCLPOPEN -DDCLFDOPEN $(KFLAGS) " \
  5873.     "LNKFLAGS = -g" "LIBS = -lcurses -lcheck -lsocket -lx"
  5874.  
  5875. sco32v4netnd:
  5876.     @echo sco32v4net with no debug
  5877.     $(MAKE) "MAKE=$(MAKE)" sco32v4net KTARGET=$${KTARGET:-$(@)} \
  5878.     "KFLAGS=$(KFLAGS) -DNODEBUG -DNOTLOG" "LIBS=$(LIBS)"
  5879.  
  5880. sco3r2netnd:
  5881.     @echo sco32v4netnd built for SCO XENIX 2.3 under SCO UNIX...
  5882.     @echo   requires copying /lib/386/Slibc.a to /lib/386/Slibc_s.a and
  5883.     @echo   getting /lib/386/Slibsocket.a from a XENIX devkit.
  5884.     @echo   WARNING: poll/CK_POLL supported only on XENIX 2.3.4
  5885.     echo    For earlier XENIX systems, replace CK_POLL with RDCHK.
  5886.     $(MAKE) "MAKE=$(MAKE)" sco32v4netnd KTARGET=$${KTARGET:-$(@)} \
  5887.     "KFLAGS=$(KFLAGS) -x2.3 -DNORENAME -DNOSYMLINK" \
  5888.     "LNKFLAGS = $(LNKFLAGS) -x2.3" \
  5889.     "LIBS=-ldir -lcfp $(LIBS)"
  5890.  
  5891. #SCO UNIX/386 3.2v4 (POSIX job control), TCP/IP, curses, ANSI C compilation,
  5892. #<dirent.h> (EAFS) file system.  With DIRENT, -lc must come before -lx.
  5893. #Reportedly it's OK to add -DCK_REDIR and -DCK_WREFRESH, and to remove -lc_s.
  5894. #Requires SCO TCP/IP development system or ODT for telnet.h, etc.
  5895. #See sco32v4 above for additional comments.
  5896. # Note: "xermit" means use the select() version of the CONNECT module.
  5897. sco32v4netx:
  5898.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v4...'
  5899.     @echo 'If you get _ftime redefinition_ complaint,'
  5900.     @echo 'use make sco-odt30.'
  5901.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  5902.     "CFLAGS= -DNOFILEH -DHDBUUCP -DTCPSOCKET -DCK_ANSIC -DCK_CURSES -DNAP \
  5903.     -DCK_WREFRESH -DNOLINKBITS -D_IBCS2 -DSELECT -DDCLGETCWD \
  5904.     -DCK_SCO32V4 -DNOIKSD -DNOLSTAT -O $(KFLAGS)" \
  5905.     "LNKFLAGS = $(LNKFLAGS) -s" \
  5906.     "LIBS = $(LIBS) -lcurses -lsocket -lmalloc -lsocket -lc_s -lc -lx"
  5907.  
  5908. sco32v4netndx:
  5909.     @echo sco32v4netx with no debug
  5910.     $(MAKE) "MAKE=$(MAKE)" sco32v4netx KTARGET=$${KTARGET:-$(@)} \
  5911.     "KFLAGS=$(KFLAGS) -DNODEBUG -DNOTLOG" "LIBS=$(LIBS)"
  5912.  
  5913. sco3r2netndx:
  5914.     @echo sco32v4netndx built for SCO XENIX 2.3 under SCO UNIX...
  5915.     @echo   requires copying /lib/386/Slibc.a to /lib/386/Slibc_s.a and
  5916.     @echo   getting /lib/386/Slibsocket.a from a XENIX devkit.
  5917.     @echo   WARNING: poll/CK_POLL supported only on XENIX 2.3.4
  5918.     echo    For earlier XENIX systems, replace CK_POLL with RDCHK.
  5919.     $(MAKE) "MAKE=$(MAKE)" sco32v4netndx KTARGET=$${KTARGET:-$(@)} \
  5920.     "KFLAGS=$(KFLAGS) -x2.3 -DNORENAME -DNOSYMLINK" \
  5921.     "LNKFLAGS = $(LNKFLAGS) -x2.3" \
  5922.     "LIBS=-ldir -lcfp $(LIBS)"
  5923.  
  5924. sco-odt30:
  5925.     @echo SCO ODT 3.0
  5926.     $(MAKE) "MAKE=$(MAKE)" sco32v4net KTARGET=$${KTARGET:-$(@)} \
  5927.     "KFLAGS=$(KFLAGS) -DODT30"
  5928.  
  5929. #SCO OpenServer 5.0 (SCO UNIX 3.2v5.0) with SCO development tools, no TCP/IP.
  5930. #SCO OSR5 is much more like standard System V than previous SCO releases.
  5931. #The SCO development tools include TCP/IP, so this target is only for creating
  5932. #artificially limited versions of kermit required by site policy rather than
  5933. #the operating system.  NOSYSLOG is included because syslog() requires the
  5934. #sockets library.
  5935. sco32v500:
  5936.     @echo Making C-Kermit $(CKVER) for SCO OpenServer Release 5...
  5937.     $(MAKE) xermit CC=$(CC) CC2=$(CC2) KTARGET=$${KTARGET:-$(@)} \
  5938.     "CFLAGS= -O -DDIRENT -DHDBUUCP -DSVR4 -DCK_SCOV5 -DCK_RTSCTS \
  5939.     -DCK_CURSES -DCK_WREFRESH -DCK_NEWTERM -DSELECT -DSELECT_H \
  5940.     -DNOGETUSERSHELL -DNOLSTAT -DNOLINKBITS -DNOSYSLOG \
  5941.     $(KFLAGS)" \
  5942.     "LIBS=-lcurses $(LIBS)" "LNKFLAGS=$(LNKFLAGS)"
  5943.  
  5944. sco32v5:
  5945.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=$(KFLAGS)" sco32v500
  5946.  
  5947.  
  5948. #SCO OpenServer 5.0 with networking, SCO development tools.
  5949. #Networking libraries are now provided with the OS.
  5950. sco32v500net:
  5951.     @echo Making C-Kermit $(CKVER) for SCO OpenServer Release 5...
  5952.     $(MAKE) xermit CC=$(CC) CC2=$(CC2) KTARGET=$${KTARGET:-$(@)} \
  5953.     "CFLAGS= -O -DDIRENT -DHDBUUCP -DSVR4 -DCK_SCOV5 -DCK_RTSCTS \
  5954.     -DCK_CURSES -DCK_WREFRESH -DCK_NEWTERM -DSELECT -DSELECT_H \
  5955.     -DNOGETUSERSHELL -DNOLSTAT -DNOLINKBITS -DTCPSOCKET \
  5956.     -DNO_DNS_SRV $(KFLAGS)" \
  5957.     "LIBS=-lcurses -lsocket $(LIBS)" "LNKFLAGS=$(LNKFLAGS)"
  5958.  
  5959. sco32v5net:
  5960.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=$(KFLAGS)" sco32v500net
  5961.  
  5962. #SCO OpenServer 5.0 with gcc, no networking.
  5963. #Note: NOSYSLOG required for non-net entries because it requires <socket.h>
  5964. sco32v500gcc:
  5965.     @echo Using gcc...
  5966.     $(MAKE) "MAKE=$(MAKE)" sco32v500CC=gcc CC2=gcc \
  5967.     KTARGET=$${KTARGET:-$(@)} "KFLAGS= $(KFLAGS)"
  5968.  
  5969. #SCO OpenServer 5.0 with networking, gcc.
  5970. sco32v500netgcc:
  5971.     @echo TCP/IP networking added - using gcc...
  5972.     $(MAKE) "MAKE=$(MAKE)" sco32v500net CC=gcc CC2=gcc \
  5973.     KTARGET=$${KTARGET:-$(@)} "KFLAGS=$(KFLAGS)"
  5974.  
  5975. #SCO OpenServer 5.0 with networking, gcc, elf.
  5976. sco32v500netgccelf:
  5977.     @echo TCP/IP networking added - using gcc, dynamic elf library
  5978.     $(MAKE) "MAKE=$(MAKE)" sco32v500net "CC=gcc" "CC2=gcc" \
  5979.     KTARGET=$${KTARGET:-$(@)} "KFLAGS=-O3 -belf" "LNKFLAGS=-belf"
  5980.  
  5981. sco32v502:
  5982.     $(MAKE) "MAKE=$(MAKE)" sco32v500 KTARGET=$${KTARGET:-$(@)} \
  5983.     "KFLAGS=-DSCO_OSR502 $(KFLAGS)"
  5984.  
  5985. #SCO OpenServer 5.0.2 with networking, SCO development tools.
  5986. sco32v502net:
  5987.     @echo TCP/IP networking added...
  5988.     $(MAKE) "MAKE=$(MAKE)" sco32v500net KTARGET=$${KTARGET:-$(@)} \
  5989.     "KFLAGS=-b elf -DSCO_OSR502 $(KFLAGS)"
  5990.  
  5991. #SCO OpenServer 5.0.4 (SCO UNIX 3.2v5.0.4) with SCO development tools.
  5992. #Like 5.0, but adds high serial speeds.  First POSIX-based SCO version.
  5993. #Note: the -O flag is deliberately omitted for /bin/cc (= /usr/ccs/bin/cc).
  5994. sco32v504:
  5995.     @echo Making C-Kermit $(CKVER) for SCO OpenServer Release 5.0.4...
  5996.     $(MAKE) xermit CC=$(CC) CC2=$(CC2) KTARGET=$${KTARGET:-$(@)} \
  5997.     "CFLAGS= -DDIRENT -DHDBUUCP -DSVR4 -DCK_SCOV5 -DCK_RTSCTS \
  5998.     -DSCO_OSR504 -b elf -DPOSIX \
  5999.     -DCK_CURSES -DCK_WREFRESH -DCK_NEWTERM -DSELECT -DSELECT_H \
  6000.     -DNOGETUSERSHELL -DNOLSTAT -DNOLINKBITS -DNOSYSLOG $(KFLAGS)" \
  6001.     "LIBS=-lcurses $(LIBS)" "LNKFLAGS=$(LNKFLAGS)"
  6002.  
  6003. #SCO OpenServer 5.0.4 with gcc, no networking.
  6004. sco32v504gcc:
  6005.     @echo Using gcc...
  6006.     $(MAKE) "MAKE=$(MAKE)" sco32v504 "CC=gcc" "CC2=gcc" \
  6007.     KTARGET=$${KTARGET:-$(@)} "KFLAGS= $(KFLAGS)"
  6008.  
  6009. #SCO OpenServer 5.0.4 with networking.
  6010. #SCO development tools (/bin/cc = /usr/ccs/bin/cc).
  6011. #Optimization deliberately suppressed.
  6012. sco32v504net:
  6013.     @echo Making C-Kermit $(CKVER) for SCO OpenServer Release 5.0.4...
  6014.     $(MAKE) xermit CC=$(CC) CC2=$(CC2) KTARGET=$${KTARGET:-$(@)} \
  6015.     "CFLAGS= -DDIRENT -DHDBUUCP -DSVR4 -DCK_SCOV5 -DCK_RTSCTS \
  6016.     -DCK_CURSES -DCK_WREFRESH -DCK_NEWTERM -DSELECT -DSELECT_H \
  6017.     -DNOGETUSERSHELL -DNOLSTAT -DNOLINKBITS -DTCPSOCKET \
  6018.     -b elf -DSCO_OSR504 -DPOSIX -DNO_DNS_SRV $(KFLAGS)" \
  6019.     "LIBS=-lcurses -lsocket $(LIBS)" "LNKFLAGS=$(LNKFLAGS)"
  6020.  
  6021. #SCO OpenServer 5.0.4 with networking, gcc.
  6022. sco32v504netgcc:
  6023.     @echo TCP/IP networking added - using gcc...
  6024.     @echo If gcc crashes on ckwart.c then build it by hand:
  6025.     @echo " gcc -o wart -DCK_SCOV5 ckwart.c"
  6026.     $(MAKE) "MAKE=$(MAKE)" sco32v500net "CC=gcc" "CC2=gcc" \
  6027.     KTARGET=$${KTARGET:-$(@)} "KFLAGS=-DSCO_OSR504 -DPOSIX $(KFLAGS)"
  6028.  
  6029. #SCO OpenServer 5.0.4 with networking, gcc, elf.
  6030. sco32v504netgccelf:
  6031.     @echo TCP/IP networking added - using gcc, dynamic elf library
  6032.     $(MAKE) "MAKE=$(MAKE)" sco32v500net "CC=gcc" "CC2=gcc"
  6033.     KTARGET=$${KTARGET:-$(@)} \
  6034.     "KFLAGS=-DSCO_OSR504 -DPOSIX -O3 -belf $(KFLAGS)" \
  6035.     LNKFLAGS="-belf"
  6036.  
  6037. #SCO OpenServer 5.0.5 (SCO UNIX 3.2v5.0.5) with SCO /bin/cc.
  6038. #Like 5.0, but adds high serial speeds.  First POSIX-based SCO version.
  6039. #You might have to add "LIBS=-ltinfo" (some do, some don't).
  6040. sco32v505:
  6041.     $(MAKE) "MAKE=$(MAKE)" sco32v500 KTARGET=$${KTARGET:-$(@)} \
  6042.     "KFLAGS=-DSCO_OSR505 -DNOSHADOW -b elf -DPOSIX $(KFLAGS)"
  6043.  
  6044. #SCO OpenServer 5.0.5 (SCO UNIX 3.2v5.0.5) with SCO UDK.
  6045. #This one can't see the high serial speeds and anything to do with modem
  6046. #signals doesn't work because UKD cc has its own alternative universe of
  6047. #header files.
  6048. sco32v505udk:
  6049.     $(MAKE) "MAKE=$(MAKE)" sco32v500 KTARGET=$${KTARGET:-$(@)} \
  6050.     "KFLAGS=-DSCO_OSR505 -DDCLTIMEVAL -DNOSHADOW -b elf -DPOSIX $(KFLAGS)"
  6051.  
  6052. #SCO OpenServer 5.0.5 with networking, SCO /bin/cc.
  6053. #See comments with sco32v505 targets.
  6054. sco32v505net:
  6055.     @echo TCP/IP networking added...
  6056.     $(MAKE) "MAKE=$(MAKE)" sco32v500net KTARGET=$${KTARGET:-$(@)} \
  6057.     "KFLAGS=-DSCO_OSR505 -DNOSHADOW -b elf -DPOSIX $(KFLAGS)"
  6058.  
  6059. #SCO OpenServer 5.0.5 with networking, SCO UDK.
  6060. #See comments with above sco32v505 targets.
  6061. sco32v505udknet:
  6062.     @echo TCP/IP networking added...
  6063.     $(MAKE) "MAKE=$(MAKE)" sco32v500net KTARGET=$${KTARGET:-$(@)} \
  6064.     "KFLAGS=-DSCO_OSR505 -DDCLTIMEVAL -DNOSHADOW -b elf -DPOSIX $(KFLAGS)"
  6065.  
  6066. #SCO OpenServer 5.0.5 with gcc, no networking.
  6067. sco32v505gcc:
  6068.     @echo Using gcc...
  6069.     $(MAKE) "MAKE=$(MAKE)" sco32v500 "CC=gcc" "CC2=gcc" \
  6070.     KTARGET=$${KTARGET:-$(@)} \
  6071.     "KFLAGS=-DSCO_OSR505 -DPOSIX -funsigned-char $(KFLAGS)"
  6072.  
  6073. #SCO OpenServer 5.0.5 with gcc, no networking, no shadow passwords.
  6074. sco32v505xgcc:
  6075.     @echo Using gcc...
  6076.     $(MAKE) "MAKE=$(MAKE)" sco32v500 "CC=gcc" "CC2=gcc" \
  6077.     KTARGET=$${KTARGET:-$(@)} \
  6078.     "KFLAGS=-DSCO_OSR505 -DNOSHADOW -DPOSIX -funsigned-char $(KFLAGS)"
  6079.  
  6080. #SCO OpenServer 5.0.5 with networking, gcc.
  6081. sco32v505netgcc:
  6082.     @echo TCP/IP networking added - using gcc...
  6083.     @echo If gcc crashes on ckwart.c then build it by hand:
  6084.     @echo " gcc -o wart -DCK_SCOV5 ckwart.c"
  6085.     $(MAKE) "MAKE=$(MAKE)" sco32v500net "CC=gcc" "CC2=gcc" \
  6086.     KTARGET=$${KTARGET:-$(@)} \
  6087.     "KFLAGS=-DSCO_OSR505 -DNOSHADOW -DPOSIX -funsigned-char $(KFLAGS)"
  6088.  
  6089. #egcs is just like gcc but generates ELF by default.
  6090. #Or you can include -melf (not -belf) to force it.
  6091. sco32v505netegcs:
  6092.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=$(KFLAGS)" sco32v505netgcc \
  6093.     KTARGET=$${KTARGET:-$(@)}
  6094.  
  6095. #SCO OpenServer 5.0.5 with networking, gcc, elf.
  6096. sco32v505netgccelf:
  6097.     @echo TCP/IP networking added - using gcc, dynamic elf library
  6098.     $(MAKE) "MAKE=$(MAKE)" sco32v500net "CC=gcc" "CC2=gcc" \
  6099.     "KFLAGS=-DSCO_OSR505 -DPOSIX -funsigned-char -O3 -belf $(KFLAGS)" \
  6100.     KTARGET=$${KTARGET:-$(@)} LNKFLAGS="-belf"
  6101.  
  6102. #SCO OpenServer 5.0.6 with SCO /bin/cc.
  6103. # Add -DDCLTIMEVAL when building with UDK.
  6104. #Like 5.0.5.   IMPORTANT: Use sco32v506a target for 5.0.6a.
  6105. sco32v506:
  6106.     $(MAKE) "MAKE=$(MAKE)" sco32v500 KTARGET=$${KTARGET:-$(@)} \
  6107.     "KFLAGS=-DSCO_OSR505 -DSCO_OSR506 -b elf -DPOSIX $(KFLAGS)"
  6108.  
  6109. #SCO OpenServer 5.0.6 with networking, SCO /bin/cc.
  6110. # Add -DDCLTIMEVAL when building with UDK.
  6111. # IMPORTANT: Use sco32v506a target for 5.0.6a.
  6112. sco32v506net:
  6113.     @echo TCP/IP networking added...
  6114.     $(MAKE) "MAKE=$(MAKE)" sco32v500net KTARGET=$${KTARGET:-$(@)} \
  6115.     "KFLAGS=-DSCO_OSR505 -DSCO_OSR506 -b elf -DPOSIX $(KFLAGS)"
  6116.  
  6117. #SCO OpenServer 5.0.6a, no networking, SCO development tools.
  6118. #This one has patched sio drivers that, for the first time,
  6119. #actually handle modem signals correctly.
  6120. # Add -DDCLTIMEVAL when building with UDK.
  6121. sco32v506a:
  6122.     $(MAKE) "MAKE=$(MAKE)" sco32v500 KTARGET=$${KTARGET:-$(@)} \
  6123.     "KFLAGS=-DSCO_OSR505 -DSCO_OSR506 -DSCO_OSR506A -DNEEDMDMDEFS \
  6124.     -b elf -DPOSIX $(KFLAGS)"
  6125.  
  6126. #SCO OpenServer 5.0.6 with networking, SCO development tools.
  6127. # Add -DDCLTIMEVAL when building with UDK.
  6128. sco32v506anet:
  6129.     @echo TCP/IP networking added...
  6130.     $(MAKE) "MAKE=$(MAKE)" sco32v500net KTARGET=$${KTARGET:-$(@)} \
  6131.     "KFLAGS=-DSCO_OSR505 -DSCO_OSR506 -DSCO_OSR506A -DNEEDMDMDEFS \
  6132.     -b elf -DPOSIX $(KFLAGS)"
  6133.  
  6134. #Tandy 16/6000 with Xenix 3.0
  6135. #Add more -DNOxxx options to remove features if program won't load.
  6136. #Successful operation is a function of program size, physical memory,
  6137. #available swap space, etc.  The following stripped-down configuration
  6138. #seems to work on most Tandy 6000s.  NOTE: "-+" means allow long variable
  6139. #names, needed for C-Kermit 6.0 because some identifiers are not unique
  6140. #within the first six characters.
  6141. #C-Kermit 7.0 does not build here; "too many defines".
  6142. trs16:
  6143.     @echo 'Making C-Kermit $(CKVER) for Tandy 16/6000, Xenix 3.0...'
  6144.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  6145.     "CFLAGS = -+ -DATTSV -DTRS16 -DNOMKDIR -DDCLPOPEN -DCK_CURSES \
  6146.     -DNODEBUG -DNOTLOG -DNOHELP -DNOSCRIPT -DNOCSETS -DNOIKSD \
  6147.     -DNOREDIRECT -DNOSYSLOG -DNOPUTENV -DNOREALPATH -DNOLEARN \
  6148.     $(KFLAGS) -O" "LIBS= -lcurses -ltermcap" "LNKFLAGS = -+ -n -s"
  6149.  
  6150. #MINIX/2.0 32 Bit version for intel 386+ running the POSIX-compliant MINIX
  6151. # version 2.0 (The definition of fatal avoids a conflict with a symbol by
  6152. # the same name in the curses library.) It is impossible to compile with
  6153. # network support since Minix does not support Berkeley sockets.
  6154. # Note: use chmem liberally on the compiler passes, make, and the final
  6155. # kermit executable. (3 megabytes of memory for each is sufficient.)
  6156. # From Terry McConnell, Syracuse U, and Will Rose.  Will says:
  6157. # The stacks for make and some compiler passes needed to be increased
  6158. # with chmem as follows:
  6159. #   make 1MB
  6160. #   /usr/lib/em_cemcom.ansi 3MB
  6161. #   /usr/lib/em_opt 1MB
  6162. #   /usr/lib/i386/cg 1MB
  6163. #   /usr/lib/i386/as 1MB
  6164. # The compiler temporary directory was set to /usr/tmp via the TMPDIR
  6165. # environment variable; more than 1MB of temporary space was needed.
  6166. # Kermit itself needs at least 1MB of stack.
  6167. minix20:
  6168.     @echo 'Making C-Kermit $(CKVER) for MINIX 2.0/386...'
  6169.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} EXT=o \
  6170.     "CFLAGS=  -wo -DV7 -DMINIX2 -DMINIX -DSIG_V -D_POSIX_SOURCE \
  6171.     -DCKCPU=\\\"i-386\\\" -DNOIKSD -Dfatal=myfatal -DCK_CURSES -DNOLEARN \
  6172.     -DNOSYSLOG -DUSE_MEMCPY -DNOREALPATH $(KFLAGS)" "LIBS= -lcurses"
  6173.  
  6174. #MINIX/386 (PC Minix modified by Bruce Evans in Australia for 386 addressing)
  6175. # For MINIX 1.5+ (but < 2.0)
  6176. minix386:
  6177.     @echo 'Making C-Kermit $(CKVER) for MINIX/386...'
  6178.     @echo 'TOTALLY UNTESTED!'
  6179.     $(MAKE) wermit EXT=s KTARGET=$${KTARGET:-$(@)} \
  6180.     "CFLAGS= -DV7 -DMINIX -D_POSIX_SOURCE -DNOLEARN $(KFLAGS)"
  6181.  
  6182. #MINIX/386 Minix modified by Bruce Evans in Australia to use 386 addressing
  6183. minix386gcc:
  6184.     @echo 'Making C-Kermit $(CKVER) for MINIX/386 with gcc...'
  6185.     @echo 'TOTALLY UNTESTED!'
  6186.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC=gcc -g -O" "CC2=gcc -g" \
  6187.     "CFLAGS= -DV7 -DMINIX -D_POSIX_SOURCE -DNOLEARN $(KFLAGS)"
  6188.  
  6189. #MINIX - 68k version with ACK compiler.
  6190. # If you have trouble compiling or running wart, "touch wart".
  6191. # If it still doesn't work, "touch ckcpro.c".
  6192. # The version configured below has many features removed, including
  6193. # the TRANSMIT, MSEND, HELP, and SCRIPT commands, international
  6194. # character set support, and the entire script programming language.
  6195. # But it does have an interactive command parser.
  6196. # Make sure make(1) has (at least) 100000 chmemory!
  6197. # If you are using the Amsterdam C compiler, you might have to add "-D__ACK__".
  6198. minix68k:
  6199.     @echo 'Making C-Kermit $(CKVER) for MINIX 68k with ACK...
  6200.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  6201.     "CFLAGS= -DV7 -DMINIX -D_MINIX -D_POSIX_SOURCE -DNOLEARN \
  6202.     -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG \
  6203.     -DNOSCRIPT -DNOCSETS -DNOSPL $(KFLAGS) \
  6204.     -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t -DSIG_V"
  6205.  
  6206. #MINIX - 68k version with c68 compiler.
  6207. # If you have trouble compiling or running wart, "touch wart" or
  6208. # "touch ckcpro.c". Compiling ckudia.c (no -DNODIAL!) might fail. :-(
  6209. # Give c68 250000 bytes of stack+heap; make sure make(1) has at least
  6210. # 100000 chmemory.  On a 1MB Atari ST this means that the recursive
  6211. # call of make fails due to memory shortage.  Try "make -n minixc68 >makeit",
  6212. # followed by ". makeit".  Otherwise, as above.
  6213. minixc68:
  6214.     @echo 'Making C-Kermit $(CKVER) for MINIX 68k with c68...
  6215.     $(MAKE) wermit "CC= cc -c68" KTARGET=$${KTARGET:-$(@)} \
  6216.     "CFLAGS= -DV7 -DMINIX -D_MINIX -D_POSIX_SOURCE -DNOLEARN \
  6217.     -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG \
  6218.     -DNOSCRIPT -DNOCSETS -DNOSPL $(KFLAGS) \
  6219.     -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t -DSIG_V"
  6220.  
  6221. #MINIX - 68k version with c68 compiler.
  6222. #A variation on the above that was recently (Sep 95) reported to work.
  6223. minixc68a:
  6224.     @echo 'Making C-Kermit $(CKVER) for MINIX 68k with c68...
  6225.     $(MAKE) wermit "CC= cc -c68" KTARGET=$${KTARGET:-$(@)} \
  6226.     "CFLAGS= -DV7 -DMINIX -D_MINIX -D_POSIX_SOURCE \
  6227.     -DCK_ANSIC -DNODEBUG -DNOTLOG -DMINIDIAL -DEXTEN -DMYCURSES \
  6228.     -DNOSCRIPT -DNOCSETS -DNOSPL -DNOJC -DDIRENT -DNOLEARN \
  6229.     -DNOSETKEY -DNOESCSEQ $(KFLAGS) \
  6230.     -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t -DSIG_V"
  6231.  
  6232. #MIPS Computer Systems with UMIPS RISC/OS 4.52 = AT&T UNIX System V R3.0.
  6233. #Remove -DNOJC if job control can be safely used.
  6234. mips:
  6235.     @echo 'Making C-Kermit $(CKVER) for MIPS RISC/OS...'
  6236.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  6237.     "CFLAGS = -DMIPS -DDIRENT -DCK_POLL -DNOJC -DNOLEARN -DPID_T=int \
  6238.     -DGID_T=gid_t -DUID_T=uid_t -i -O1500 $(KFLAGS)"
  6239.  
  6240. #As above, but with TCP/IP and fullscreen support.
  6241. mipstcpc:
  6242.     @echo 'Making C-Kermit $(CKVER) for MIPS RISC/OS...'
  6243.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  6244.     "CFLAGS = -DMIPS -DDIRENT -DCK_POLL -DNOJC \
  6245.     -DTCPSOCKET -DCK_CURSES -I/usr/include/bsd \
  6246.     -DPID_T=int -DGID_T=gid_t -DUID_T=uid_t -i -O1500 $(KFLAGS)" \
  6247.     "LIBS = -lcurses -lbsd"
  6248.  
  6249. #Motorola Delta System V/68 R3, signal() is void rather than int.
  6250. #Uses dirent.h and Honey DanBer uucp.  Supports TCP/IP.
  6251. #After building, use "mcs -d" to reduce size of the executable program.
  6252. sv68r3:
  6253.     @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/68 R3...'
  6254.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  6255.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DNO_DNS_SRV -DTCPSOCKET \
  6256.     -DNOUNICODE -DNOLEARN $(KFLAGS) -O" "LNKFLAGS ="
  6257.  
  6258. #Motorola Delta System V/68 R3V5, signal() is void rather than int.
  6259. #Uses dirent.h and Honey DanBer UUCP.  Supports TCP/IP.
  6260. #After building, use "mcs -d" to reduce size of the executable program.
  6261. sv68r3v5:
  6262.     @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/68 R3V5'
  6263.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  6264.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DNO_DNS_SRV \
  6265.     -DTCPSOCKET -DINADDRX -DNOUNICODE -DFNFLOAT -DNOLEARN $(KFLAGS) -O" \
  6266.     "LNKFLAGS =" "LIBS = -linet -lm"
  6267.  
  6268. #Motorola MVME147 System V/68 R3 V5.1. Requires gcc 2.1 to compile.
  6269. #After building, use "mcs -d" to reduce size of the executable program.
  6270. sv68r3v51:
  6271.     @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/68 R3V5.1'
  6272.     $(MAKE) wermit "CC=gcc-delta" "CC2=gcc-delta" \
  6273.     KTARGET=$${KTARGET:-$(@)} \
  6274.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DNODEBUG -DNO_DNS_SRV -DNOLEARN \
  6275.     -DNOUNICODE -DFNFLOAT $(KFLAGS) -O2 -v -ftraditional" \
  6276.     "LNKFLAGS = -s -v" "LIBS = -lm881 -lm"
  6277.  
  6278. #Motorola MVME147 System V/68 R3V6. derived from Motorola Delta System R3V5.
  6279. #Checked on larger Motorola System V/68 R3V6 (with NSE Network Services Ext.)
  6280. #After building, use "strip" to reduce size of the executable program.
  6281. # "LIBS = -lnsl" removed in C-Kermit 6.1 - put back if needed.
  6282. # "LIBS = lm" added in 7.1/8.0 for floating-point math.
  6283. sv68r3v6:
  6284.     @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/68 R3V6'
  6285.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  6286.     "CFLAGS = -DSV68R3V6 -DDIRENT -DHDBUUCP -DNOLOGIN -DNOINITGROUPS \
  6287.     -DNOSYMLINK -DNOREDIRECT -DNOGFTIMER -DTCPSOCKET -DDCLGETCWD \
  6288.     -DNO_DNS_SRV -DNOUNICODE -DFNFLOAT -DSELECT $(KFLAGS) -O" \
  6289.     "LNKFLAGS =" "LIBS = -lm"
  6290.  
  6291. #Motorola Delta System V/88 R32, signal() is void rather than int.
  6292. #Uses dirent.h and Honey DanBer uucp.  Needs <sys/utime.h> for setting
  6293. #file dates.  Supports TCP/IP.
  6294. #After building, use "mcs -d" to reduce size of the executable program.
  6295. sv88r32:
  6296.     @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/88 R32...'
  6297.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  6298.     "CFLAGS = -DSV88R32 -DDIRENT -DHDBUUCP -DTCPSOCKET \
  6299.     -DSYSUTIMEH -DCK_CURSES -DNOGETUSERSHELL -DGTODONEARG $(KFLAGS) -O" \
  6300.     "LIBS= -lcurses -lresolv" "LNKFLAGS = -s"
  6301.  
  6302. #Motorola Delta System V/88 R40.  Has <sys/termiox.h>, regular Berkeley
  6303. #sockets library, i.e. in.h and inet.h are not misplaced in sys (rather than
  6304. #netinet and arpa, respectively).  Uses ANSI C constructs, advisory file
  6305. #locking on devices, etc.  curses support added.  Reportedly, the
  6306. #/usr/include/sys/vnode.h file has a bug which must be fixed before this
  6307. #makefile entry can work correctly.  The "if DEBUG" directive at about line
  6308. #320 must be changed to "ifdef DEBUG" (Reportedly, this was fixed in
  6309. #in System V/88 R4.3).
  6310. #After building, use "mcs -d" to reduce size of the executable program.
  6311. sv88r40:
  6312.     @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/88 R40...'
  6313.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  6314.     "CFLAGS = -O -DSVR4 -DMOTSV88R4 -DDIRENT -DHDBUUCP -DSTERMIOX \
  6315.     -DTCPSOCKET -DCK_CURSES -DNOGETUSERSHELL -DGTODONEARG -DFNFLOAT \
  6316.     $(KFLAGS)" \
  6317.     "LIBS= -lsocket -lnsl -lcurses -lresolv -lm" "LNKFLAGS = -s"
  6318.  
  6319. #As above but without the floating-point math library.
  6320. sv88r40nm:
  6321.     @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/88 R40...'
  6322.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  6323.     "CFLAGS = -O -DSVR4 -DMOTSV88R4 -DDIRENT -DHDBUUCP -DSTERMIOX \
  6324.     -DTCPSOCKET -DCK_CURSES -DNOGETUSERSHELL -DGTODONEARG $(KFLAGS)" \
  6325.     "LIBS= -lsocket -lnsl -lcurses -lresolv" "LNKFLAGS = -s"
  6326.  
  6327. #As above but with floating-point math library support \ffp...() functions
  6328. #and S-Expressions.
  6329.  
  6330. #Olivetti X/OS R2.3, 3.x.
  6331. #NOTES:
  6332. # . If you build the executable on 2.x X/OS, it will also run on 3.x.
  6333. # . If you build it on 3.x X/OS, it will NOT run on 2.x.
  6334. # . Kermit can run with no privileges unless the uucp lines are protected,
  6335. #   in which case kermit must be owned by uucp with suid bit set:
  6336. #   chown uucp kermit ; chmod 4111 kermit.
  6337. xos23:
  6338.     @echo 'Making C-Kermit $(CKVER) for Olivetti X/OS...'
  6339.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  6340.     'CFLAGS=-OLM -DOXOS -DTCPSOCKET -DHDBUUCP $(KFLAGS)' \
  6341.     "LIBS=" "LNKFLAGS="
  6342.  
  6343. #As above, but with curses.
  6344. xos23c:
  6345.     @echo 'Making C-Kermit $(CKVER) for Olivetti X/OS with curses...'
  6346.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  6347.     'CFLAGS=-OLM -DOXOS -DTCPSOCKET -DHDBUUCP -DCK_CURSES $(KFLAGS)' \
  6348.     "LIBS=-lcurses" "LNKFLAGS="
  6349.  
  6350. ckuuid:
  6351.     @echo 'building C-Kermit $(CKVER) set-UID/set-GID test programs'
  6352.     $(CC) -DANYBSD -DSAVEDUID -o ckuuid1 ckuuid.c
  6353.     $(CC) -DANYBSD -o ckuuid2 ckuuid.c
  6354.     $(CC) -DANYBSD -DNOSETREU -o ckuuid3 ckuuid.c
  6355.     $(CC) -DANYBSD -DSETEUID -DNOSETREU -o ckuuid4 ckuuid.c
  6356.     $(CC) -o ckuuid5 ckuuid.c
  6357.     @echo 'Read the top of ckuuid.c for directions...for testing'
  6358.     @echo 'you must make these programs setuid and setgid'
  6359.  
  6360. ############################################################################
  6361. # A N T I Q U I T I E S
  6362. #
  6363. # The following are antique targets from C-Kermit 5A or earlier.  They have
  6364. # not been updated or tested in years.  Most of them will need recent features
  6365. # disabled, usually with some combination of -DNOUNICODE, -DNOIKSD, -DNOANSI,
  6366. # -DNOCKGHNLHOST, -DNO_DNS_SRV, -DNOREDIRECT, -DNOREALPATH, -DNOCURSES, etc.
  6367. # They are also missing the KTARGET=$${KTARGET:-$(@)} business.
  6368. # For details see ckuins.txt and ckccfg.txt.
  6369. #
  6370. ############################################################################
  6371.  
  6372. #Berkeley Unix 2.8, 2.9 for PDP-11s with I&D space, maybe also Ultrix-11???
  6373. #C-Kermit(5A) is simply too large (even turning off almost every feature
  6374. #available) to run without both I&D space plus overlays.  The old comment
  6375. #suggested running 'pcc' but that won't help.  Changing 'cc' to 'ckustr.sed'
  6376. #will cause a string extraction to be done, saving D space by moving strings
  6377. #to a file.
  6378. bsd29:
  6379.     @echo Making C-Kermit $(CKVER) for 2.8 or 2.9BSD.
  6380.     @echo Read the makefile if you have trouble with this...
  6381.     $(MAKE) ovwermit \
  6382.     "CFLAGS= -DBSD29 -DNODEBUG -DNOTLOG -DNOCSETS -DNOHELP \
  6383.     -DNOSCRIPT -DNOSPL -DNOXMIT -DNODIAL $(KFLAGS)" \
  6384.     "LNKFLAGS= -i -lndir" "CC= cc " "CC2= cc"
  6385.  
  6386. bsd210:
  6387.     @echo Please use ckubs2.mak to build C-Kermit $(CKVER) for 2.10BSD.
  6388.  
  6389. bsd211:
  6390.     @echo Please use ckubs2.mak to build C-Kermit $(CKVER) for 2.11BSD.
  6391.  
  6392. #Charles River Data Systems Universe with UNOS Version 9.2
  6393. crds:
  6394.     @echo 'Making C-Kermit $(CKVER) for Charles River Data Systems...'
  6395.     make xermit \
  6396.     "CFLAGS = -DATTSV -DNOANSI -DDIRENT -DLONGFN -DTCPSOCKET \
  6397.     -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DNOSETREU \
  6398.     -Dsuspend=ksuspend $(KFLAGS) -O" "LNKFLAGS ="
  6399.  
  6400. #Microport SV/AT for IBM PC/AT 286 and clones, System V R2.
  6401. #The -O flag may fail on some modules (like ckuus2.c), in which case you
  6402. #should compile them by hand, omitting the -O.  If you get "hash table
  6403. #overflow", try adding -DNODEBUG.
  6404. #Also, reportedly this compiles better with gcc than with cc.
  6405. mpsysv:
  6406.     @echo 'Making C-Kermit $(CKVER) for Microport SV/AT 286...'
  6407.     $(MAKE) wermit \
  6408.     "CFLAGS= -DATTSV -DNOLEARN $(KFLAGS) -O -Ml" "LNKFLAGS = -Ml"
  6409.  
  6410. #Microsoft "Xenix/286" e.g. for IBM PC/AT
  6411. xenix:
  6412.     @echo 'Making C-Kermit $(CKVER) for Xenix/286'
  6413.     $(MAKE) wermit \
  6414.     "CFLAGS= -DXENIX -DNOFILEH -DNOLEARN $(KFLAGS) -Dunix -F 3000 -i" \
  6415.     "LNKFLAGS = -F 3000 -i"
  6416.  
  6417. #PC/IX, Interactive Corp System III for IBM PC/XT
  6418. pcix:
  6419.     @echo 'Making C-Kermit $(CKVER) for PC/IX...'
  6420.     $(MAKE) wermit \
  6421.     "CFLAGS= -DPCIX -DISIII -DNOLEARN $(KFLAGS) \
  6422.     -Dsdata=sdatax -O -i" "LNKFLAGS = -i"
  6423.  
  6424. #Integrated Solutions Inc V8S VME 68020
  6425. isi:
  6426.     @echo Making C-Kermit $(CKVER) for 4.2BSD on ISI...
  6427.     $(MAKE) wermit "CC = cc" \
  6428.     "CFLAGS= -DBSD4 -DTCPSOCKET -DINADDRX -DDCLPOPEN -DDEBUG -DNOSETREU \
  6429.     -DCK_CURSES -DNOLEARN $(KFLAGS)" "LIBS = -lcurses -ltermcap"
  6430.  
  6431. #Interactive Corp version of AT&T System III
  6432. #is3: (very old, probably not sufficient for 5A or later)
  6433. #    @echo 'Making C-Kermit $(CKVER) for Interactive System III...'
  6434. #    make wermit "CFLAGS = -DISIII -Ddata=datax -O -i" "LNKFLAGS = -i"
  6435. #The following should work, use it if you don't have gcc.
  6436. #Use is3gcc if you have gcc.
  6437. is3:
  6438.     @echo 'Making C-Kermit $(CKVER) for Interactive System III...'
  6439.     $(MAKE) wermit \
  6440.     "CFLAGS= -DISIII $(KFLAGS) -Ddata=datax -DNAP -DHDBUUCP
  6441.     -DLOCK_DIR=\"/usr/spool/uucp\" -DSIGTYP=void -O -i" "LNKFLAGS = -i"
  6442.  
  6443. #Interactive UNIX System V R3, no network support.  Uses <dirent.h> and Honey
  6444. #DanBer UUCP.  If this entry does not compile correctly, try any or all of the
  6445. #following.  These suggestions also apply more or less to the other is5r3xxx
  6446. #entries that follow this one.
  6447. # . Remove the UID_T and GID_T definitions, or change them as required.
  6448. # . Change -DDIRENT to -DSDIRENT.
  6449. # . Add -DSIGTYP=void.
  6450. # . Remove -g from LNKFLAGS.
  6451. # . Add -DNOANSI to remove compiler complaints about ANSI C constructions
  6452. # . Add other -DNOxxx's to save space (e.g. -DNOCSETS)
  6453. # See the next few makefile entries for related examples.
  6454. # Also see sys5r32is for making a portable i386 SVR3 binary.
  6455. is5r3:
  6456.     @echo 'Making C-Kermit $(CKVER) for Interactive 386/ix or later...'
  6457.     @echo 'If this does not work please read the makefile entry.'
  6458.     $(MAKE) wermit \
  6459.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -g -DNOCSETS -DNOREALPATH \
  6460.     -DUID_T=ushort -DGID_T=ushort -DI386IX $(KFLAGS)" \
  6461.     "LNKFLAGS = -g"
  6462.  
  6463. #Interactive Corp System System V R3 with gcc
  6464. is3gcc:
  6465.     @echo 'Making C-Kermit $(CKVER) for Interactive System V R3 / gcc...'
  6466.     $(MAKE) wermit CC=gcc CC2=gcc \
  6467.     'CFLAGS = -D_SYSV3 -DISIII -Ddata=datax -DNAP -DHDBUUCP -DNOREALPATH \
  6468.     -DLOCK_DIR=\"/usr/spool/uucp\" -DSIGTYP=void -O' "LNKFLAGS ="
  6469.  
  6470. #Interactive UNIX System V R3, POSIX variant.  Untested.
  6471. #Uses dirent.h and Honey DanBer uucp.  Read comments in is5r3 entry.
  6472. is5r3p:
  6473.     @echo 'Making C-Kermit $(CKVER) for Interactive 386/ix or later...'
  6474.     $(MAKE) wermit \
  6475.     "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -g -DNOCSETS -DNOREALPATH \
  6476.     -DI386IX -DPOSIX $(KFLAGS)" "LNKFLAGS=" "LIBS=-lcposix"
  6477.  
  6478. #Interactive UNIX SVR3 2.2.1, job control, curses, no net, gcc.
  6479. is5r3gcc:
  6480.     $(MAKE) wermit CC=gcc CC2=gcc \
  6481.     "CFLAGS=-g -posix -DSVR3 -DDIRENT -DNOREALPATH \
  6482.     -DHDBUUCP -O -DNOCSETS -DI386IX -DSVR3JC -DCK_CURSES \
  6483.     $(KFLAGS)" LNKFLAGS="-posix" LIBS="-lcurses -lc_s"
  6484.  
  6485. #Interactive UNIX System V R3 with TCP/IP network support.
  6486. #Needs -linet for net functions.  signal() is void rather than int.
  6487. #Uses dirent.h and Honey DanBer uucp. Read comments in is5r3 entry.
  6488. #Also see is5r3net2 if you have trouble with this entry.
  6489. is5r3net:
  6490.     @echo 'Making C-Kermit $(CKVER) for Interactive 386/ix...'
  6491.     @echo 'If this does not work please read the makefile entry.'
  6492.     $(MAKE) wermit CC="$(CC)" CC2="$(CC2)" \
  6493.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DTCPSOCKET -DNOREALPATH \
  6494.     -DI386IX $(KFLAGS) -O" "LIBS = -linet"
  6495.  
  6496. is5r3netgcc:
  6497.     $(MAKE) is5r3net CC=gcc CC2=gcc
  6498.  
  6499. #Interactive UNIX System V R3, no job control, signal() void rather than int.
  6500. #Uses dirent.h and Honey DanBer uucp.  Needs -linet for net functions.
  6501. #Read comments in is5r3 entry.  Use this entry if is5r3net fails.
  6502. #Saves some space by stripping (-s) and using shared library (-lc_s).
  6503. is5r3net2:
  6504.     @echo 'Making C-Kermit $(CKVER) for Interactive 386/ix...'
  6505.     $(MAKE) wermit \
  6506.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DTCPSOCKET -DNOJC -DNOREALPATH \
  6507.     -DSIGTYP=void -DNOANSI -DI386IX $(KFLAGS) -O" \
  6508.     "LNKFLAGS= -s" "LIBS = -linet -lc_s"
  6509.  
  6510. #Interactive UNIX System V R3 (version 2.2 or later) with job control & curses.
  6511. #Uses dirent.h and Honey DanBer UUCP.
  6512. is5r3jc:
  6513.     @echo 'Making C-Kermit $(CKVER) for Interactive Unix 2.2 or later...'
  6514.     $(MAKE) wermit CC="$(CC)" CC2="$(CC2)" \
  6515.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -O -DNOCSETS -DNOREALPATH \
  6516.     -DUID_T=ushort -DGID_T=ushort -DI386IX -DSVR3JC -DCK_CURSES \
  6517.     -DPOSIX_JC -DCK_REDIR -DCK_POLL -DDCLGETCWD \
  6518.     $(KFLAGS)" "LIBS=-lcurses -lc_s -linet"
  6519.  
  6520. is5r3jcgcc:
  6521.     $(MAKE) is5r3jc CC="gcc -DCK_ANSILIBS -DDCGPWNAM -O4" CC2=gcc \
  6522.     KFLAGS="$(KFLAGS)" LNKFLAGS="$(LNKFLAGS)"
  6523.  
  6524. #Sunsoft/Interactive UNIX System V R3 (version 2.2 or later)
  6525. #with job control, curses, and TCP/IP networking.
  6526. #Uses dirent.h and Honey DanBer UUCP.
  6527. is5r3netjc:
  6528.     @echo 'Making C-Kermit $(CKVER) for Interactive Unix 2.2 or later...'
  6529.     $(MAKE) wermit CC="$(CC)" CC2="$(CC2)" \
  6530.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -O -DNOCSETS -DNOREALPATH \
  6531.     -DUID_T=ushort -DGID_T=ushort -DI386IX -DSVR3JC -DCK_CURSES \
  6532.     -DPOSIX_JC -DCK_REDIR -DTCPSOCKET -DSELECT \
  6533.     $(KFLAGS)" "LIBS=-linet -lcurses -lc_s"
  6534.  
  6535. is5r3netjcgcc:
  6536.     $(MAKE) is5r3netjc CC="gcc -DCK_ANSILIBS -DDCGPWNAM -O4" CC2=gcc \
  6537.     KFLAGS="$(KFLAGS)" LNKFLAGS="$(LNKFLAGS)"
  6538.  
  6539. #Masscomp System III
  6540. rtu:
  6541.     @echo 'Making C-Kermit $(CKVER) for Masscomp RTU System III...'
  6542.     $(MAKE) wermit \
  6543.     "CFLAGS= -UFIONREAD -DATTSV $(KFLAGS) -O" "LNKFLAGS =" "LIBS= -ljobs"
  6544.  
  6545. #Masscomp/Concurrent RTU 4.0 or later, Berkeley environment.
  6546. #Includes <ndir.h> = /usr/include/ndir.h
  6547. #Note "LIBS = -lndir" might not be necessary because of "ucb make".
  6548. rtubsd:
  6549.     @echo 'Making C-Kermit $(CKVER) for Masscomp RTU 4.1A...'
  6550.     ucb make wermit \
  6551.     "CFLAGS= -DBSD4 -DRTU -DNDIR -DHDBUUCP -DTCPSOCKET $(KFLAGS)" \
  6552.     "LIBS = -lndir"
  6553.  
  6554. #Masscomp/Concurrent RTU 4.0 or later, same as above,
  6555. #Includes "usr/lib/ndir.h"
  6556. #Note "LIBS = -lndir" might not be necessary because of "ucb make".
  6557. rtubsd2:
  6558.     @echo 'Making C-Kermit $(CKVER) for Masscomp RTU 4.1A...'
  6559.     ucb make wermit \
  6560.     "CFLAGS= -DBSD4 -DRTU -DXNDIR -DHDBUUCP $(KFLAGS)" \
  6561.     "LIBS = -lndir"
  6562.  
  6563. #Masscomp/Concurrent RTU 4.0 or later, same as above,
  6564. #Includes <sys/ndir.h>
  6565. #Note "LIBS = -lndir" might not be necessary because of "ucb make".
  6566. rtubsd3:
  6567.     @echo 'Making C-Kermit $(CKVER) for Masscomp RTU 4.x BSD...'
  6568.     ucb make wermit "CFLAGS= -DBSD4 -DRTU -DHDBUUCP $(KFLAGS)" \
  6569.     "LIBS = -lndir"
  6570.  
  6571. #Masscomp/Concurrent RTU 4.0 or later, System V R2, using <dirent.h>.
  6572. #In case of problems, add back the -DRTU switch.
  6573. #In case -DTCPSOCKET gives trouble, remove it.
  6574. rtus5:
  6575.     @echo 'Making C-Kermit $(CKVER) for Masscomp RTU 4.x...'
  6576.     $(MAKE) wermit \
  6577.     "CFLAGS= -DATTSV -DHDBUUCP -DDIRENT -DTCPSOCKET $(KFLAGS)"
  6578.  
  6579. #Masscomp/Concurrent RTU 4.x, System V R3, using <dirent.h>.
  6580. #Use this one if rtus5 gives warnings about pointer type mismatches.
  6581. #In case of problems, add back the -DRTU switch.
  6582. rtus5r3:
  6583.     @echo 'Making C-Kermit $(CKVER) for Masscomp RTU Sys V R3...'
  6584.     $(MAKE) wermit "CFLAGS= -DSVR3 -DHDBUUCP -DDIRENT $(KFLAGS)"
  6585.  
  6586. #DEC Pro-3xx with Pro/Venix V1.0 or V1.1
  6587. # Requires code-mapping on non-I&D-space 11/23 processor, plus some
  6588. # fiddling to get interrupt targets into resident code section.
  6589. # This almost certainly doesn't work any more.
  6590. provx1:
  6591.     @echo 'Making C-Kermit $(CKVER) for DEC Pro-3xx, Pro/Venix 1.x...'
  6592.     $(MAKE) wart "CFLAGS= -DPROVX1 $(KFLAGS)" "LNKFLAGS= "
  6593.     $(MAKE) wermit "CFLAGS = -DPROVX1 -DNOFILEH -md780" \
  6594.         "LNKFLAGS= -u _sleep -lc -md780"
  6595.  
  6596. #Nixdorf Targon/31.
  6597. #AT&T UNIX System V R3, signal() is void rather than int.
  6598. #Uses dirent.h without Honey DanBer uucp.
  6599. t31tos40x:
  6600.     @echo 'Making C-Kermit $(CKVER) for Targon/31 with TOS 4.0.xx...'
  6601.         $(MAKE) wermit \
  6602.         "CFLAGS= -DSVR3 -DDIRENT $(KFLAGS) -O" \
  6603.         "LNKFLAGS="
  6604.  
  6605. #NCR Tower 1632, OS 1.02
  6606. tower1:
  6607.     @echo 'Making C-Kermit $(CKVER) for NCR Tower 1632, OS 1.02...'
  6608.     $(MAKE) wermit "CFLAGS= -DTOWER1 $(KFLAGS)"
  6609.  
  6610. #NCR Tower 32, OS Release 1.xx.xx
  6611. tower32-1:
  6612.     @echo 'Making C-Kermit $(CKVER) for NCR Tower 32 Rel 1 System V R2...'
  6613.     @echo 'Add KFLAGS=-DISDIRBUG if you get errors about S_ISREG/S_ISDIR.'
  6614.     $(MAKE) wermit \
  6615.     "CFLAGS = -DATTSV $(KFLAGS) -O" "LNKFLAGS = -n"
  6616.  
  6617. #NCR Tower 32, OS Release 2.xx.xx
  6618. tower32-2:
  6619.     @echo 'Making C-Kermit $(CKVER) for NCR Tower 32 Rel 2 System V R2...'
  6620.     $(MAKE) wermit \
  6621.     "CFLAGS = -DATTSV -DHDBUUCP $(KFLAGS) -O2" \
  6622.     "LNKFLAGS = -n"
  6623.  
  6624. #NCR Tower 32, OS Releases based on System V R3
  6625. #Don't add -DNAP (doesn't work right) or -DRDCHK (not available in libc).
  6626. tower32:
  6627.     @echo 'Making C-Kermit $(CKVER) for NCR Tower 32 System V R3...'
  6628.     $(MAKE) wermit \
  6629.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DNOSYSIOCTLH $(KFLAGS) \
  6630.     -DUID_T=ushort -DGID_T=ushort -O1"
  6631.  
  6632. #NCR Tower 32, OS Releases based on System V R3
  6633. tower32g:
  6634.     @echo 'Making C-Kermit $(CKVER) for NCR Tower 32 System V R3, gcc...'
  6635.     $(MAKE) wermit "CC = gcc" \
  6636.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DNOSYSIOCTLH $(KFLAGS) \
  6637.     DUID_T=ushort -DGID_T=ushort -O -fstrength-reduce -fomit-frame-pointer"
  6638.  
  6639. #Fortune 32:16, For:Pro 1.8 (mostly like 4.1bsd)
  6640. ft18:
  6641.     @echo 'Making C-Kermit $(CKVER) for Fortune 32:16 For:Pro 1.8...'
  6642.     $(MAKE) wermit \
  6643.     "CFLAGS= -DNODEBUG -DBSD4 -DFT18 -DNOFILEH $(KFLAGS) \
  6644.     -DPID_T=short"
  6645.  
  6646. #Fortune 32:16, For:Pro 2.1 (mostly like 4.1bsd).
  6647. #The modules that break the optimizer are compiled separately.
  6648. ft21:
  6649.     @echo 'Making C-Kermit $(CKVER) for Fortune 32:16 For:Pro 2.1...'
  6650.     $(MAKE) ckuusx.$(EXT) "CFLAGS= -DNODEBUG -DBSD4 -DFT21 -DNOFILEH \
  6651.     -SYM 800  -DCK_CURSES $(KFLAGS) -DPID_T=short" \
  6652.     "LNKFLAGS= -n -s" "LIBS= -lcurses -ltermcap -lv -lnet"
  6653.     $(MAKE) ckuxla.$(EXT) "CFLAGS= -DNODEBUG -DBSD4 -DFT21 -DNOFILEH \
  6654.     -SYM 800  -DCK_CURSES $(KFLAGS) -DPID_T=short" \
  6655.     "LNKFLAGS= -n -s" "LIBS= -lcurses -ltermcap -lv -lnet"
  6656.     $(MAKE) ckudia.$(EXT) "CFLAGS= -DNODEBUG -DBSD4 -DFT21 -DNOFILEH \
  6657.     -SYM 800  -DCK_CURSES $(KFLAGS) -DPID_T=short" \
  6658.     "LNKFLAGS= -n -s" "LIBS= -lcurses -ltermcap -lv -lnet"
  6659.     $(MAKE) wermit \
  6660.     "CFLAGS= -O -DNODEBUG -DBSD4 -DFT21 -DNOFILEH -SYM 800 \
  6661.     -DCK_CURSES $(KFLAGS) -DPID_T=short" \
  6662.     "LNKFLAGS= -n -s" "LIBS= -lcurses -ltermcap -lv -lnet"
  6663.  
  6664. #Valid Scaldstar
  6665. #Berkeleyish, but need to change some variable names.
  6666. valid:
  6667.     @echo 'Making C-Kermit $(CKVER) for Valid Scaldstar...'
  6668.     $(MAKE) wermit \
  6669.     "CFLAGS= -DBSD4 -DNODEBUG -DNOTLOG -Dcc=ccx -DFREAD=1 $(KFLAGS)"
  6670.  
  6671. #IBM IX/370 on IBM 370 Series mainframes
  6672. #Mostly like sys3, but should buffer packets.
  6673. ix370:
  6674.     @echo 'Making C-Kermit $(CKVER) for IBM IX/370...'
  6675.     $(MAKE) wermit "CFLAGS = -DIX370 -DATTSV $(KFLAGS) -i -O" \
  6676.     "LNKFLAGS = -i"
  6677.  
  6678. #Amdahl UTS 2.4 on IBM 370 series compatible mainframes.
  6679. #Mostly like V7, but can't do initrawq() buffer peeking.
  6680. uts24:
  6681.     @echo 'Making C-Kermit $(CKVER) for Amdahl UTS 2.4...'
  6682.     $(MAKE) wermit "CFLAGS=-DV7 -DPROCNAME=\\\"$(PROC)\\\" \
  6683.     -DUTS24 -DBOOTNAME=\\\"$(BOOTFILE)\\\" -DNPROCNAME=\\\"$(NPROC)\\\" \
  6684.     -DNPTYPE=$(NPTYPE) $(DIRECT) $(KFLAGS)"
  6685.  
  6686. #Amdahl UTSV UNIX System V = System V R2 or earlier.
  6687. utsv:
  6688.     @echo 'Making C-Kermit $(CKVER) for Amdahl UTSV...'
  6689.     $(MAKE) wermit \
  6690.     "CFLAGS = -DUTSV $(KFLAGS) -i -O" "LNKFLAGS = -i"
  6691.  
  6692. #Amdahl UTSV UNIX System V = System V R2 or earlier, with TCP sockets library.
  6693. utsvtcp:
  6694.     @echo 'Making C-Kermit $(CKVER) for Amdahl UTSV w/tcp...'
  6695.     $(MAKE) wermit "CFLAGS = \
  6696.     -DTCPSOCKET -DUTSV $(KFLAGS) -i -O" "LNKFLAGS = -i" \
  6697.     "LIBS = -lsocket"
  6698.  
  6699. #BBN C/70 with IOS 2.0
  6700. #Mostly Berkeley-like, but with some ATTisms
  6701. c70:
  6702.     @echo 'Making C-Kermit $(CKVER) for BBN C/70 IOS 2.0...'
  6703.     $(MAKE) wermit "CFLAGS= -DBSD4 -DC70 $(KFLAGS)"
  6704.  
  6705. #Zilog ZEUS 3.21
  6706. zilog:
  6707.     @echo 'Making C-Kermit $(CKVER) for Zilog Zeus 3.21...'
  6708.     $(MAKE) wermit \
  6709.     "CFLAGS = -DATTSV -DZILOG -DNODEBUG $(KFLAGS) -i -O" \
  6710.     "LNKFLAGS = -i -lpw"
  6711.  
  6712. #Whitechapel MG-1 Genix 1.3
  6713. white:
  6714.     @echo 'Making C-Kermit $(CKVER) for Whitechapel MG-1 Genix 1.3...'
  6715.     @touch ckcpro.c
  6716.     $(MAKE) wermit "CFLAGS= -DBSD4 -Dzkself()=0  $(KFLAGS)"
  6717.  
  6718. #Pixel 1000
  6719. pixel:
  6720.     @echo 'Making C-Kermit $(CKVER) for Pixel 1000...'
  6721.     $(MAKE) wermit "CFLAGS= -DBSD4 -Dzkself()=0 $(KFLAGS)"
  6722.  
  6723. ptx:
  6724.     $(MAKE) "MAKE=$(MAKE)" dynixptx12
  6725.  
  6726. #CDC VX/VE 5.2.1
  6727. vxve:
  6728.     @echo 'Making C-Kermit $(CKVER) for CDC VX/VE 5.2.1...'
  6729.     $(MAKE) wermit \
  6730.     "CFLAGS = -DATTSV -DVXVE -DNODEBUG -DNOTLOG $(KFLAGS) -i -O" \
  6731.     "LNKFLAGS = -i"
  6732.  
  6733. #DIAB DS90 or LUXOR ABC-9000 with pre-5.2 DNIX.  Sys V with nap() and rdchk().
  6734. # nd = no opendir(), readdir(), closedir(), etc.
  6735. # Some of the modules fail to compile with -O.
  6736. dnixnd:
  6737.     @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with very old DNIX 5.2.'
  6738.     $(MAKE) wermit \
  6739.     "CFLAGS = -DATTSV -DNAP -DRDCHK -DDCLPOPEN \
  6740.     -U__STDC__ $(KFLAGS)"
  6741.  
  6742. #DIAB DS90 with DNIX 5.2.  Sys V with nap() and rdchk().
  6743. # This one has opendir(), readdir(), closedir(), etc.
  6744. # Some of the modules fail to compile with -O.
  6745. dnix:
  6746.     @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with old DNIX 5.2...'
  6747.     $(MAKE) wermit \
  6748.     "CFLAGS = -DATTSV -DNAP -DRDCHK -DDIRENT  \
  6749.     -U__STDC__ $(KFLAGS)"
  6750.  
  6751. #DIAB DS90 with DNIX 5.2.  Sys V with nap() and rdchk().
  6752. # As above, but with curses and TCP/IP.
  6753. # You might get complaints about redefinition of O_RDONLY, etc, because
  6754. # of bugs in the DNIX header files, which can be fixed by adding #ifndef...
  6755. # around the offending definitions in the header files.
  6756. dnixnetc:
  6757.     @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with old DNIX 5.2...'
  6758.     $(MAKE) wermit \
  6759.     "CFLAGS = -DATTSV -DNAP -DRDCHK -DDIRENT  \
  6760.     -DTCPSOCKET -DCK_CURSES -I/usr/include/bsd -U__STDC__ $(KFLAGS)" \
  6761.     "LIBS = -ln -lcurses"
  6762.  
  6763. #DIAB DS90 with DNIX 5.3 or later, with HDB UUCP, nap() and rdchk().
  6764. dnix5r3:
  6765.     @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with DNIX 5.3...'
  6766.     @echo 'with Honey DanBer UUCP'
  6767.     $(MAKE) wermit \
  6768.     "CFLAGS = -DSVR3 -DHDBUUCP -DNAP -DRDCHK -DDIRENT \
  6769.     -DCK_CURSES -DRENAME $(KFLAGS) -O" "LIBS= -lcurses"
  6770.  
  6771. #DIAB DS90 with DNIX 5.3 or later, with HDB UUCP, nap() and rdchk() + TCP/IP
  6772. dnix5r3net:
  6773.     @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with DNIX 5.3...'
  6774.     @echo 'with Honey DanBer UUCP and TCP/IP'
  6775.     $(MAKE) wermit \
  6776.     "CFLAGS = -DSVR3 -DHDBUUCP -DNAP -DRDCHK -DDIRENT \
  6777.     -DTCPSOCKET -DCK_CURSES -DRENAME $(KFLAGS) -O \
  6778.     -I/usr/include/bsd" "LIBS = -ln -lcurses"
  6779.  
  6780. #DIAB DS90 with DNIX 5.3 2.2 or later, with HDB UUCP, nap() and rdchk(),
  6781. #ANSI C compilation and libraries.
  6782. #Note that for DNIX 5.3 2.2 you have to correct a bug in /usr/include/stdlib.h:
  6783. #change "extern    void free(char *str);"
  6784. #to     "extern void free(void *str);"
  6785. #NOTE: This bug is reportedly fixed in DNIX 5.3 2.2.1.
  6786. #Should you get fatal errors caused by harmless pointer-type mismatches,
  6787. #like between signed and unsigned char, just remove -X7.
  6788. dnix5r3ansi:
  6789.     @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with DNIX 5.3...'
  6790.     @echo 'with ANSI C Honey DanBer UUCP'
  6791.     $(MAKE) wermit \
  6792.     "CFLAGS = -DSVR3 -DDIAB -DHDBUUCP -DNAP -DRDCHK -DDIRENT \
  6793.     -DCK_ANSILIBS -DCK_CURSES -DRENAME -O -X7 -X9 $(KFLAGS)" \
  6794.     "LIBS= -lcurses"
  6795.  
  6796. #DIAB DS90 with DNIX 5.3 2.2 or later, with HDB UUCP, nap() and rdchk(),
  6797. # + TCP/IP, ANSI C compilation and libraries.
  6798. #Should you get fatal errors caused by harmless pointer-type mismatches,
  6799. #like between signed and unsigned char, just remove -X7.
  6800. dnix5r3ansinet:
  6801.     @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with DNIX 5.3...'
  6802.     @echo 'with ANSI C Honey DanBer UUCP'
  6803.     $(MAKE) wermit \
  6804.     "CFLAGS = -DSVR3 -DDIAB -DHDBUUCP -DNAP -DRDCHK -DDIRENT \
  6805.     -DTCPSOCKET -DCK_ANSILIBS -DCK_CURSES -DRENAME -O -X7 -X9 $(KFLAGS) \
  6806.     -I/usr/include/bsd" "LIBS= -ln -lcurses"
  6807.  
  6808. # QNX 4.21 and above, 32-bit version, Watcom C32 10.6, fully configured,
  6809. # except no job control because QNX 4.x does not support it.  New NCURSES
  6810. # library used instead of CURSES.
  6811. #
  6812. # -Oatx optimizes to favor speed over size: loop optimization, inline fn's.
  6813. # -Os favors size over speed.  Saves 30-40K out of about 1.75M.
  6814. # -3r = generate 386 code with register-based arg passing.
  6815. # -3s = generate 386 code with stack-based arg passing.
  6816. # -ms = separate code & data 4GB segments (32-bit builds only).
  6817. # -mf = flat memory model code+data in one 4GB segment (ditto).
  6818. # -zc = place literal strings in code segment.
  6819. # -N4M = Big stack (increase the digit upon SIGSEGVs at runtime).
  6820. # chars are unsigned by default (-j makes them signed by default).
  6821. # -NOUUCP is included because QNX doesn't use it.
  6822. # Add these to the end if you like but they dump core on my QNX 4.25 system:
  6823. #
  6824. #    @wermit -h >use.qnx
  6825. #    @usemsg wermit use.qnx
  6826. #    @rm use.qnx
  6827. #
  6828. # If you get warnings about HEADER or C_IN add -DNO_DNS_SRV.
  6829. qnx32:
  6830.     @echo 'Making C-Kermit $(CKVER) for QNX 4.2x, 32-bit...'
  6831.     $(MAKE) xermit \
  6832.     "LNKFLAGS = -N4M -3r" \
  6833.     "CFLAGS = -ms -3r -DQNX -DTCPSOCKET -DCK_CURSES -DNOGETUSERSHELL \
  6834.     -DCK_WREFRESH -DCK_REDIR -DSELECT -DSELECT_H -DCK_RTSCTS -DNOJC \
  6835.     -DNOINITGROUPS -DNOUUCP -DCK_ANSIC -DPID_T=pid_t -Oatx -zc $(KFLAGS)" \
  6836.     "LIBS= -lsocket -lncurses -ltermcap"
  6837.  
  6838. # As above but no networking since some QNX systems do not have TCP/IP
  6839. # installed, or the TCP/IP developers kit, which includes all the needed
  6840. # header files.  This entry has not been tested on a QNX system that, in
  6841. # fact, does not have TCP/IP installed; some adjustments might be necessary,
  6842. # in particular regarding the use of select(): is -lsocket needed, can we
  6843. # get the needed definitions from non-TCP/IP header files (FD_SET, etc)?
  6844. qnx32nonet:
  6845.     @echo 'Making C-Kermit $(CKVER) for QNX 4.2x, 32-bit, no net...'
  6846.     $(MAKE) xermit \
  6847.     "LNKFLAGS = -N4M -3r" \
  6848.     "CFLAGS = -3r -ms -DQNX -DNONET -DNOIKSD -DCK_CURSES \
  6849.     -DCK_WREFRESH -DCK_REDIR -DSELECT -DSELECT_H -DCK_RTSCTS -DNOJC \
  6850.     -DNOUUCP -DCK_ANSIC -DPID_T=pid_t -Oatx -zc $(KFLAGS)" \
  6851.     "LIBS= -lsocket -lncurses -ltermcap"
  6852.     @wermit -h >use.qnx
  6853.     @usemsg wermit use.qnx
  6854.     @rm use.qnx
  6855.  
  6856. # Synonym for qnx32.
  6857. qnx:
  6858.     $(MAKE) qnx32 "KFLAGS=$(KFLAGS)"
  6859.  
  6860. # QNX 4.21 and above, 16-bit version, Watcom C 8.5 - and higher on i286 PCs
  6861. # and above.
  6862. #
  6863. #    IMPORTANT: Do not use Watcom C 10.6!!!
  6864. #    If you have it installed, add "-v9.52 to CFLAGS"
  6865. #
  6866. # NOTE: QNX 4.23 onward does not work on 286's anyway.
  6867. # Stacksize 26000, objects larger than 100 bytes in their own segments,
  6868. # string constants to the codesegment, etc.  Fully configured except job ctrl.
  6869. # This entry works for building a 16-bit executable on a 32-bit system, but
  6870. # has not been tested on a 16-bit system.  Uses large memory model, links
  6871. # explicitly with large-model sockets library.  Correct-model curses library
  6872. # is chosen automatically.  See comment in qnx32 entry about -DNOUUCP.
  6873. #
  6874. # WARNING:
  6875. #
  6876. # Watcom C prior to 10.6 never had released curses library. To link against it,
  6877. # you must obtain ported free curses source from ftp://ftp.qnx.com/usr/free,
  6878. # then compile and build library (cursesl.lib) and place it in /usr/lib.  You
  6879. # must also copy curses.h to /usr/include.  Be aware that if you have Watcom
  6880. # 10.6 installed, you should already have curses.h, which is the new ncurses
  6881. # library. You must back it up and use free curses.h instead, since ncurses is
  6882. # only for 32-bit applications and some definitions in these files are
  6883. # different (e.g., clearok()).  For safety, curses is not defined in build.
  6884. #
  6885. # In 7.0 -DNOHELP added to keep ckuus2.c from blowing up; NOCSETS and NOSPL
  6886. # added because ckuus4 was blowing up, and NOFLOAT just because it seemed
  6887. # dangerous (remove -DNOFLOAT if you want to try it), The result works OK
  6888. # except for some mysterious beeps upon termination of the top-level keyword.
  6889. #
  6890. # Things to try next time we get in trouble:
  6891. #  . Change -zt100 to something smaller like -zt25
  6892. #  . Change -Oatx to -Omilerat (enable stack checking)
  6893. #  . Maybe get rid of -v9.52 -- it's only there because we were warned.
  6894. #
  6895. qnx16:
  6896.     @echo 'Making C-Kermit $(CKVER) for QNX 4.21, 16-bit...'
  6897.     $(MAKE) xermit \
  6898.     "LNKFLAGS = -2 -ml -N 26000" \
  6899.     "CFLAGS = -2 -Oatx -zc -zt100 -ml -DQNX -DQNX16 -DNOUUCP -DNOHELP \
  6900.     -DCK_REDIR -DSELECT -DSELECT_H -DNOJC -DNOGETUSERSHELL -DNOCSETS \
  6901.     -v9.52 -DTCPSOCKET -DCK_RTSCTS -DCK_ANSIC -DNOINITGROUPS -DNOKVERBS \
  6902.     -DNORANDOM -DNOCSETS -DNOSPL -DNOFLOAT -DPID_T=pid_t $(KFLAGS)"
  6903.  
  6904. # QNX 4.1, 16-bit version, with Watcom C 8.5 on i286 PCs and above.
  6905. # stacksize 26000, objects larger than 100 bytes in their own segments,
  6906. # string constants to the codesegment, etc.  Add -DNOUUCP if desired.
  6907. qnx16_41:
  6908.     @echo 'Making C-Kermit $(CKVER) for QNX 4.1, 16-bit...'
  6909.     $(MAKE) xermit \
  6910.     "LNKFLAGS = -mh -N 26000" "CFLAGS = -Wc,-fpc -Wc,-j -DNOGETUSERSHELL \
  6911.     -Wc,-Ols -Wc,-zdf -Wc,-zc -Wc,-zt100 -mh -DPOSIX -DQNX -DDIRENT \
  6912.     -DNOCYRIL -DNODEBUG -DNOMSEND -DMINIDIAL -DNOXMIT -DNOSCRIPT -DNOSPL \
  6913.     -DNOSETKEY -DNOINITGROUPS -DQNX16 -DPID_T=pid_t $(KFLAGS)"
  6914.  
  6915. # QNX Neutrino 2 (pwaechtler@qnx.de) crosscompiled on QNX 4.25.
  6916. # Gets lots of compiler warnings.
  6917. qnx_nto2+:
  6918.     @echo 'Making C-Kermit $(CKVER) for QNX Neutrino 2+ '
  6919.     cc -o wart ckwart.c
  6920.     $(MAKE) xermit \
  6921.     "CC = qcc -Vgcc_ntox86" \
  6922.     "CC2 = qcc -Vgcc_ntox86" \
  6923.     "LNKFLAGS = " \
  6924.     "CFLAGS = -DNEUTRINO -DTCPSOCKET -DCK_CURSES -DNOGETUSERSHELL \
  6925.     -DNOUUCP -DCK_WREFRESH -DCK_REDIR -DSELECT -DSELECT_H -DCK_RTSCTS \
  6926.     -DNOJC -DNOINITGROUPS -DCK_ANSIC -DPID_T=pid_t -DUNIX -DDIRENT \
  6927.     -DMYREAD -DBSD44ORPOSIX -DSVORPOSIX -DNDGPWNAM $(KFLAGS)" \
  6928.     "LIBS= -lsocket -lncurses "
  6929.  
  6930. # QNX 6 (= Neutrino 2.xx) native build (kirussel@cisco.com).
  6931. qnx6:
  6932.     @echo 'Making C-Kermit $(CKVER) for QNX6'
  6933.     $(MAKE) xermit KTARGET=QNX6 \
  6934.     "CFLAGS = -DPOSIX -DCK_POSIX_SIG -DNETPTY -DNOARROWKEYS \
  6935.     -DUSE_TIOCSDTR -DBIGBUFOK -DCKMAXOPEN=100 -DRLOGCODE -DNOREALPATH \
  6936.     -DMAXNAMLEN=48 -DQNX6 -DUSE_TERMIO -DINIT_SPTY \
  6937.     -DCK_CURSES -DCK_WREFRESH -DCK_NEWTERM -DDYNAMIC \
  6938.     -DTCPSOCKET -DNOGETUSERSHELL -DCK_REDIR -DSELECT -DSELECT_H \
  6939.     -DCK_RTSCTS -DNOJC -DSVORPOSIX -DBSD44ORPOSIX -DNOUUCP -DCK_ANSIC \
  6940.     $(KFLAGS) -O" \
  6941.     "LIBS= -lsocket  -lncurses"
  6942.  
  6943. #Ridge 32 with ROS 3.2
  6944. ridge32:
  6945.     @echo 'Making C-Kermit $(CKVER) Ridge 32 ROS 3.2'
  6946.     $(MAKE) wermit \
  6947.     "CFLAGS = -DATTSV -DNOFILEH -DNODEBUG -DNOTLOG $(KFLAGS) -i -O" \
  6948.     "LNKFLAGS = -i"
  6949.  
  6950. #Altos 486, 586, or 986 with Xenix 3.0
  6951. altos:
  6952.     @echo 'Making C-Kermit $(CKVER) for Altos x86 with Xenix 3.0...'
  6953.     $(MAKE) wermit \
  6954.     "CFLAGS= -DATTSV -DA986 -DNODEBUG -DNOTLOG $(KFLAGS) -i -O" \
  6955.     "LNKFLAGS= -i"
  6956.  
  6957. #Altos 986 with Xenix 3.0, as above, but command-line only, minimal size.
  6958. #For systems with small memories.  It might also be necessary to chop certain
  6959. #modules up into smaller pieces, e.g. ckuus3-6, because of symbol table
  6960. #overflow.   If this makefile is too big or complex for the Altos, compile
  6961. #and link by hand or write shell scripts.
  6962. altosc:
  6963.     @echo 'Making C-Kermit $(CKVER) for Altos x86 Xenix 3.0, remote...'
  6964.     $(MAKE) wermit \
  6965.     "CFLAGS= -DATTSV -DA986 -DNODEBUG -DNOTLOG -DNOSCRIPT -DNODIAL \
  6966.     -DNOCSETS -DNOANSI -DNOMSEND -DNOSPL -DNOICP $(KFLAGS) -Mm -O" \
  6967.     "LNKFLAGS= -Mm -s"
  6968.  
  6969. #Altos 986 with Xenix 3.0, as above, but interactive only, minimal size.
  6970. altosi:
  6971.     @echo 'Making C-Kermit $(CKVER) for Altos x86 Xenix 3.0, local...'
  6972.     $(MAKE) wermit \
  6973.     "CFLAGS= -DATTSV -DA986 -DNODEBUG -DNOTLOG -DNOSCRIPT -DNODIAL \
  6974.     -DNOCSETS -DNOANSI -DNOMSEND -DNOSPL -DNOCMDL -DNOFRILLS -DNOHELP \
  6975.     -DNOSETKEY $(KFLAGS) -Mm -O" "LNKFLAGS= -Mm -s"
  6976.  
  6977. # Altos ACS68000 68000 System, UNIX System 3 Release 2, 512k memory.
  6978. # also needs getcwd() external function; see ckuins.txt file.
  6979. # also, sys/types.h needed modifying:
  6980. #   #ifdef __SYS_TYPES_H__, #define ..., #endif
  6981. # also, ckuus2.c MUST be compiled NOOPT else symbol table is destroyed!
  6982. # Submission by Robert Weiner/Programming Plus, rweiner@progplus.com.
  6983. #
  6984. altos3:
  6985.     @echo 'Making C-Kermit $(CKVER) for Altos ACS68k UNIX System III'
  6986.     $(MAKE) ckuus2.$(EXT) "CFLAGS = -DATTSV -DNOCSETS -DNOSETKEY -DNOJC \
  6987.     -DNODIAL -DDCLPOPEN -DNOSCRIPT -DNOHELP $(KFLAGS) -i"
  6988.     $(MAKE) wermit \
  6989.     "CFLAGS = -DATTSV -DNOCSETS -DNOSETKEY -DNOJC \
  6990.     -DNODIAL -DDCLPOPEN -DNOSCRIPT -DNOHELP $(KFLAGS) -i -O" \
  6991.     "LNKFLAGS = -i" "LIBS = getcwd.$(EXT)"
  6992.  
  6993. #MINIX - Original PC version with 64K+64K limit.
  6994. # Reportedly, the linker (asld) can run out of space while linking.  The only
  6995. # way around this is to make a copy of libc.a from which all modules that are
  6996. # not used by Kermit are removed.  If you have trouble compiling or running
  6997. # wart, "touch wart".  If that doesn't help, "touch ckcpro.c".
  6998. # The version configured below has no interactive command parser.
  6999. # If you can build this version successfully, maybe there will be room for
  7000. # a minimal interactive command parser too; try replacing -DNOICP with
  7001. # -DNOSPL, plus every other -DNOxxx flag there is, except for -DNOICP
  7002. # (see ckccfg.txt).
  7003. minix:
  7004.     @echo 'Making C-Kermit $(CKVER) for MINIX, no command parser...
  7005.     @echo 'TOTALLY UNTESTED!'
  7006.     $(MAKE) wermit EXT=s \
  7007.     "CFLAGS= -DV7 -DMINIX -i -D_MINIX -D_POSIX_SOURCE \
  7008.     -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t -DSIG_V \
  7009.     -DNOXMIT -DNOMSEND -DNOFRILLS -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG \
  7010.     -DNOSCRIPT -DNOCSETS -DNOICP -DNOSETKEY $(KFLAGS)" \
  7011.     "LNKFLAGS= -i -T"
  7012.  
  7013. #MINIX - PC version with 64K+64K limit, new (as yet unreleased) ACK 2.0 beta C
  7014. #compiler, which outputs .o object files, rather than .s.  But 'make' still
  7015. #expects .s files, so must be patched to use .o.  Tested on Minix 1.5.10.
  7016. minixnew:
  7017.     @echo 'Making C-Kermit $(CKVER) for MINIX (new ACK 2.0 compiler),'
  7018.     @echo 'no command parser...  TOTALLY UNTESTED!'
  7019.     $(MAKE) wermit \
  7020.     "CFLAGS= -DV7 -DMINIX -i -D_MINIX -D_POSIX_SOURCE \
  7021.     -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t -DSIG_V -DNODIAL \
  7022.     -DNOHELP -DNODEBUG -DNOTLOG -DNOSCRIPT -DNOCSETS -DNOICP $(KFLAGS)" \
  7023.     "LNKFLAGS= -i -T"
  7024.  
  7025. #PFU Compact A Series UNIX System V R3, SX/A TISP V10/L50 (Japan)
  7026. #Maybe the -i link option should be removed?
  7027. sxae50:
  7028.     @echo 'Making C-Kermit $(CKVER) for PFU SX/A V10/L50...'
  7029.     $(MAKE) xermit \
  7030.     "CFLAGS= -DSVR3 -DDIRENT -DsxaE50 -DTCPSOCKET $(KFLAGS) -i -O" \
  7031.     "LNKFLAGS= "
  7032.  
  7033. #Tektronix 6130, 4319, 4301, etc, with UTek OS, /usr/spool/uucp/LCK./...
  7034. #The models that support hardware flow control.
  7035. utek:
  7036.     @echo 'Making C-Kermit $(CKVER) for 4.2BSD/UTek, hardware flow control'
  7037.     $(MAKE) wermit \
  7038.     "CFLAGS= -O -DLCKDIR -DBSD4 -DTCPSOCKET \
  7039.     -DUTEK -DDCLPOPEN -DLOCK_DIR=\\\"/usr/spool/uucp/LCK.\\\" \
  7040.     -DTRMBUFL=2048 -DCK_DTRCTS $(KFLAGS)"
  7041.  
  7042. #Tektronix 4315, 4316, 4317 with UTek OS, /usr/spool/uucp/LCK./...
  7043. #The models that do not fully support hardware flow control.
  7044. uteknohwfc:
  7045.     @echo 'Making C-Kermit $(CKVER) for 4.2BSD/UTek, no h/w flow control'
  7046.     $(MAKE) wermit \
  7047.     "CFLAGS= -O -DLCKDIR -DBSD4 -DTCPSOCKET \
  7048.     -DUTEK -DDCLPOPEN -DLOCK_DIR=\\\"/usr/spool/uucp/LCK.\\\" \
  7049.     -DTRMBUFL=2048 $(KFLAGS)"
  7050.  
  7051. #Tektronix XD88 with  UTekV OS
  7052. utekvr3:
  7053.     @echo 'Making C-Kermit $(CKVER) for Tektronix XD88 UTekV R3...'
  7054.     $(MAKE) wermit \
  7055.     "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP \
  7056.     -DTCPSOCKET -DSYSUTIMEH -DCK_CURSES $(KFLAGS) -O" \
  7057.     "LIBS= -lcurses" "LNKFLAGS= -s"
  7058.  
  7059. #Perkin-Elmer 3200 Xelos R02 or earlier
  7060. ccop1:
  7061.     @echo 'Making C-Kermit $(CKVER) for Xelos & Public Domain Dirent calls'
  7062.     @echo 'or System V R2 or earlier...'
  7063.     $(MAKE) wermit \
  7064.     "CFLAGS = -DATTSV -Dvoid=int -DDIRENT -DCK_CURSES \
  7065.     $(KFLAGS) -O" "LNKFLAGS =" "LIBS= -lcurses -ltermlib"
  7066.  
  7067. #Encore, UMAX 4.3 (BSD) but without acucntrl program.
  7068. encore:
  7069.     $(MAKE) "MAKE=$(MAKE)" umax43 "KFLAGS=$(KFLAGS)"
  7070.  
  7071. #Encore, as above, but with curses file transfer display included.
  7072. encorec:
  7073.     $(MAKE) "MAKE=$(MAKE)" umax43 "KFLAGS=-DCK_CURSES $(KFLAGS)" \
  7074.     "LIBS= -lcurses -ltermcap"
  7075.  
  7076. #Encore, UMAX 4.3 (BSD) but without acucntrl program.
  7077. umax43:
  7078.     @echo Making C-Kermit $(CKVER) for Encore UMAX 4.3...
  7079.     $(MAKE) "MAKE=$(MAKE)" PARALLEL=4 xermit \
  7080.     "CFLAGS= -DBSD43 -DENCORE -DTCPSOCKET $(KFLAGS) -O"
  7081.  
  7082. #Encore, UMAX 4.2 (BSD)
  7083. umax42:
  7084.     @echo Making C-Kermit $(CKVER) for Encore UMAX 4.2...
  7085.     $(MAKE) "MAKE=$(MAKE)" PARALLEL=4 xermit \
  7086.     "CFLAGS= -DBSD4 -DENCORE -DTCPSOCKET $(KFLAGS) -O"
  7087.  
  7088. #Encore 88K UMAX 5.3 with TCP/IP support
  7089. encore88k:
  7090.     @echo 'Making C-Kermit $(CKVER) for Encore 88K UMAX V, TCP/IP...'
  7091.     $(MAKE) xermit \
  7092.     "CFLAGS = -q ext=pcc -DSVR3 -DTCPSOCKET -DDIRENT \
  7093.     -DNOGETID_PROTOS -DHDBUUCP $(KFLAGS) -O" "LNKFLAGS ="
  7094.  
  7095. #Encore 88K UMAX 5.3 with TCP/IP support
  7096. encore88kgcc:
  7097.     @echo 'Making C-Kermit $(CKVER) for Encore 88K UMAX V, TCP/IP, gcc...'
  7098.     $(MAKE) xermit CC=gcc CC2=gcc \
  7099.     "CFLAGS = -DSVR3 -DTCPSOCKET -DDIRENT \
  7100.     -DNOGETID_PROTOS -DHDBUUCP $(KFLAGS) -O" "LNKFLAGS ="
  7101.  
  7102. #SONY NEWS, NEWS-OS 4.01C
  7103. sonynews:
  7104.     @echo Making C-Kermit $(CKVER) for SONY NEWS-OS 4.01C...
  7105.     $(MAKE) xermit "CFLAGS= -DBSD43 -DACUCNTRL -DTCPSOCKET -O"
  7106.  
  7107. #Run Lint on this mess for selected versions.
  7108. #These are pretty much obsolete since ANSI C / gcc.
  7109. lintsun:
  7110.     @echo 'Running Lint on C-Kermit $(CKVER) sources for SunOS version...'
  7111.     lint -x -DSUNOS4 -DDIRENT -DTCPSOCKET -DSAVEDUID \
  7112.     ck[cu]*.c > ckuker.lint.sun
  7113.  
  7114. lintbsd:
  7115.     @echo 'Running Lint on C-Kermit $(CKVER) sources for BSD 4.2 version..'
  7116.     lint -x -DBSD4 -DTCPSOCKET ck[cu]*.c > ckuker.lint.bsd42
  7117.  
  7118. lints5:
  7119.     @echo 'Running Lint on C-Kermit $(CKVER) sources for Sys V version...'
  7120.     lint -x -DATTSV ck[cu]*.c > ckuker.lint.s5
  7121.  
  7122. #Who remembers TECO?
  7123. love:
  7124.     @echo 'Not war?'
  7125.