home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / archives / cku301txt.zip / makefile < prev    next >
Makefile  |  2011-08-08  |  386KB  |  8,581 lines

  1. # makefile / Makefile / ckuker.mak / CKUKER.MAK
  2. #
  3. # Mon Aug  8 11:46:32 2011
  4. BUILDID=20110801
  5. CKVER= "9.0.301"
  6. #
  7. # -- Makefile to build C-Kermit for UNIX and UNIX-like platforms --
  8. #
  9. # Copyright (C) 1985, 2011,
  10. #   Trustees of Columbia University in the City of New York.
  11. #   All rights reserved.  See the C-Kermit COPYING.TXT file or the
  12. #   copyright text in the ckcmai.c module for disclaimer and permissions.
  13. #   In case you can't find the COPYING.TXT file, it contains the 
  14. #   Simplified 3-Clause BSD License, which is an Open Source license.
  15. #
  16. # Author: Frank da Cruz, Columbia University
  17. # 612 West 115th Street, New York NY 10025-7799, USA
  18. # Email: fdc@columbia.edu
  19. # Web:   http://kermit.columbia.edu/
  20. # FTP:   ftp://kermit.columbia.edu/kermit/
  21. #
  22. # Note: Author is no longer at Columbia University or at the 115th Street
  23. # address effective 1 July 2011.  The email address should still work,
  24. # as well as the website and FTP addresses, for the foreseeable future.
  25. #
  26. # Contributions from many others.  Special thanks to Jeff Altman for the
  27. # secure-build targets, Peter Eichhorn, assyst GmbH, for the consolidated
  28. # HP-UX targets and the "uninstall" target, to Robert Lipe for the updated
  29. # and consolidated SCO UNIX / ODT / OSR5 targets, to Ric Anderson for the
  30. # IRIX 6.x targets, to Seth Theriault for major improvements to the
  31. # Mac OS X targets.
  32. #
  33. # C-Kermit is written and produced by hand without any automated procedures
  34. # such as autoconf / automake / configure, although some of the targets below
  35. # (especially the linux target) inspect the environment and make some
  36. # decisions in the most portable way possible. The automated tools are not
  37. # used because (a) C-Kermit predates them, and (b) they are not portable to
  38. # all the platforms where C-Kermit must be (or once was) built, and (c) to
  39. # keep C-Kermit as independent as possible from external tools over which
  40. # we have no control.
  41. #
  42. # Most entries use the "xermit" target, which uses the select()-based CONNECT
  43. # module, ckucns.c.  The "wermit" target uses the original fork()-based CONNECT
  44. # module, ckucon.c, which has some drawbacks but was portable to every Unix
  45. # variant whether it had TCP/IP or not (select() is part of the TCP/IP
  46. # library, which was not standard on older Unixes).  If your target still uses
  47. # the "wermit" target, please try substituting the "xermit" one and if it
  48. # works, let us know (mailto:kermit-support@columbia.edu).  When changing a
  49. # target over from wermit to xermit, also remove -DNOLOEARN.
  50. #
  51. # CAREFUL: Don't put the lowercase word "if", "define", or "end" as the first
  52. # word after the "#" comment introducer in the makefile, even if it is
  53. # separated by whitespace.  Some versions of "make" understand these as
  54. # directives.  Uppercase letters remove the danger, e.g. "# If you have..."
  55. # WARNING: This is a huge makefile.  Although
  56. # this is less likely since the turn of the century, some "make" programs
  57. # might run out of memory.  If this happens to you, edit away the parts that
  58. # do not apply to your platform and try again.
  59. #
  60. # WARNING 2: In many cases this file invokes itself recursively, sometimes
  61. # several levels deep (as in the Linux targets); i.e. some targets are used
  62. # as 'subroutines' of other targets, with parameters passed by setting
  63. # environment variables.  For that reason, don't use 'make -e'.
  64. #
  65. # Certain UNIX variations have their own separate makefiles:
  66. #  . For 2.10 or 2.11 BSD on the DEC PDP-11, use ckubs2.mak.
  67. #  . For Plan 9, use ckpker.mk.
  68. #
  69. # Separate build procedures are provided non-UNIX platforms: VMS, VOS,
  70. # AOS/VS, etc.  See the ckaaaa.txt file or the Kermit website for details.
  71. #
  72. #
  73. # DIRECTIONS FOR UNIX
  74. #
  75. # Rename this file to "makefile" or "Makefile" if necessary.  Pick out the
  76. # entry most appropriate for your UNIX version from the list below and then
  77. # give the appropriate "make" command, for example "make aix", "make macosx",
  78. # "make linux".  If you experience any difficulties with the build procedure,
  79. # then please also read any comments that accompany the make entry itself
  80. # (search for the make entry name on the left margin).
  81. #
  82. # Other targets:
  83. #  'make install' is an installation script (read accompanying comments!).
  84. #  'make uninstall' undoes 'make install' (read accompanying comments!).
  85. #  'make clean' removes intermediate and object files.
  86. #  'make show' tells the default include and lib paths for secure builds.
  87. #
  88. # IMPORTANT:
  89. #   For more detailed installation instructions, read the files ckuins.txt
  90. #   and ckccfg.txt, also available at the Kermit website in HTML form:
  91. #   http://www.columbia.edu/kermit/ckuins.html
  92. #   http://www.columbia.edu/kermit/ckccfg.html
  93. #
  94. #  For descriptions of known problems and limitations,
  95. #   read the files ckcbwr.txt and ckubwr.txt (the "beware files") or:
  96. #   http://www.columbia.edu/kermit/ckcbwr.html
  97. #   http://www.columbia.edu/kermit/ckubwr.html
  98. #
  99. # Most targets build C-Kermit with its symbol table included.  To reduce the
  100. # size of the executable program, add "LNKFLAGS=-s" to the end of your 'make'
  101. # command or to the makefile entry, or 'strip' the executable after
  102. # building.  To further reduce the size after building, use 'mcs -d' if your
  103. # Unix version has such a command.  For further details on size reduction, read
  104. # ckccfg.txt to find out how to remove features that you don't need.
  105. #
  106. # TCP/IP networking support: If your C-Kermit version does not include TCP/IP
  107. # networking, but your UNIX system does, try adding -DTCPSOCKET to the CFLAGS
  108. # of your makefile entry.  If that doesn't work, look at some of the other
  109. # targets that include this flag for ideas about what libraries might need to
  110. # be included (typically -lsocket and/or -lBSD and/or -lnsl and/or -linet).
  111. # NOTE: In some cases (old versions of SCO or HP-UX), you might need not only
  112. # a C compiler, but also a "TCP/IP developers kit" for the required object
  113. # libraries and header files.
  114. #
  115. # Please report modifications, failures (preferably with fixes) or successes
  116. # to the author, fdc@columbia.edu.
  117. #
  118. # TARGETS FOR DIFFERENT UNIX PLATFORMS AND VERSIONS:
  119. #
  120. # + Marks those that have been built successfully for C-Kermit 9.0 or later.
  121. # - Those that once built OK but no longer do (e.g. too big).
  122. # ? Those that worked in a previous version but have not been tested recently.
  123. # --------------------------
  124. # Some commonly used targets:
  125. #
  126. # + "make linux" should work for any version of Linux on any hardware.
  127. # + "make linux+ssl" ditto, with OpenSSL security added.
  128. # + "make linux+krb5" ditto, with Kerberos 5 security added.
  129. # + "make linux+krb5+ssl" Linux with OpenSSL and Kerberos 5.
  130. # + "make netbsd", NetBSD, any version.
  131. # + "make netbsd+ssl", NetBSD with OpenSSL 0.9.7 or later.
  132. # + "make netbsd+krb5", NetBSD with Kerberos 5.
  133. # + "make netbsd+krb5+ssl", NetBSD with Kerberos 5 and OpenSSL 0.9.7 or later.
  134. # + "make freebsd", FreeBSD 4.1 or later.
  135. # + "make freebsd+ssl", FreeBSD 5.0 or later with OpenSSL 0.9.7 or later.
  136. # + "make openbsd", OpenBSD 2.3 or later.
  137. # + "make openbsd+ssl", OpenBSD 2.3 or later with OpenSSL 0.9.7 or later.
  138. # + "make mirbsd", MirBSD.
  139. # + "make mirbsd+ssl", MirBSD with OpenSSL 0.9.7 or later.
  140. # + "make macosx" should work for any Mac OS X version 10.3.9 or later.
  141. # + "make macosx+krb5+openssl" Mac OS X 10.3.9 or later + Kerberos V + OpenSSL.
  142. # + "make aix" should work for any version of AIX 4.2 or later.
  143. # + "make aixg" should work for any version of AIX 4.2 or later, using gcc.
  144. # + "make aix+ssl" ditto, with OpenSSL (specifying SSLLIB and SSLINC)
  145. # + "make aix+ibmssl" ditto, with IBM OpenSSL
  146. # + "make solaris9", "make solaris10" for Solaris 9 or 10 with Sun cc.
  147. # + "make solaris9g", "make solaris10g" for Solaris 9 or 10 with gcc.
  148. # + "make solaris11" for Solaris 11 with Sun CC
  149. # + "make solaris11g" for Solaris 11 with gcc
  150. # + "make sco_osr600" for SCO OpenServer 6.0.0.
  151. #
  152. # For other current OSs such as Solaris, HP-UX, and SCO there are separate
  153. # targets for different combinations of OS version and compiler; see the
  154. # complete list.  For older OS's see the complete list.  If an old target
  155. # doesn't work in this release of C-Kermit you can get a previous release from
  156. # the Kermit FTP site: ftp://kermit.columbia.edu/kermit/
  157. #
  158. # SECURE TARGETS (versions that support authentication and encryption)
  159. #  are described after the following list.  Search for ******* below.
  160. #
  161. # --------------------------
  162. # Complete list (alphabetical):
  163. # ? for 386BSD (Jolix) 0.0, 0.1, "make 386bsd" (see comments in entry),
  164. #     or (preferably, if it works) "make bsd44" or "make bsd44c".
  165. # ? for Acorn RISCiX, "make riscix" or "make riscix-gcc"
  166. # ? for Alliant FX/8 with Concentrix 4.1 or later, "make bsdlck"
  167. # ? for Altos 486, 586, 986 with Xenix 3.0, "make altos"
  168. # ? for Altos ACS68000, 8Mhz 68000, UNIX System 3 Rel 2, 512K, "make altos3"
  169. # ? for Amdahl UTS 2.4 on IBM 370 series & compatible mainframes, "make uts24"
  170. # ? for Amdahl UTSV IBM 370 series & compatible mainframes, "make utsv"
  171. # ? for Amdahl UTSV IBM 370 series mainframes with TCP/IP, "make utsvtcp"
  172. # ? for Amdahl mainframes with UNIX System V R 5.2.6b 580, "make sys3"
  173. # ? for Apollo Aegis 9.x, DOMAIN/IX 9.x, "make aegis"
  174. #    (Last tested in C-Kermit 5A(189))
  175. # ? for Apollo DOMAIN/IX, if the above fails, try "make apollobsd"
  176. # ? for Apollo with SR10.0 or later, BSD environment, "make sr10-bsd"
  177. # ? for Apollo with SR10.0 or later, System V environment, "make sr10-s5r3"
  178. # ? for Apple Macintosh II with A/UX pre-3.0, "make aux", "auxgcc" or "auxufs"
  179. # ? for Apple Macintosh with A/UX 3.0 and gcc, "make aux3gcc" or aux3gccc
  180. # ? for Apple PowerMac with MkLinux, "make mklinux" (read Linux entry first)
  181. # ? for Apple PowerMac with LinuxPPC, "make linuxppc"
  182. # ? for Apple Macintosh with Minix 1.5.10, "make minix68k" or "make minixc68"
  183. # ? for Apple Macintosh with Mac OS X 1.0 (Rhapsody), "make macosx10"
  184. #     (no curses), "make macosx10c" (curses), or "make macosx10nc" (ncurses).
  185. #     Or "make macosx10ncx" (ncurses but "make macosx10nc" doesn't work).
  186. # ? for Apple Macintosh with Mac OS X 10.2, "make macosx102nc" (ncurses).
  187. # ? for Apple Macintosh with Mac OS X 10.3, "make macosx103"
  188. # ? for Apple Macintosh with Mac OS X 10.3.9 or later, "make macosx"
  189. # ? for Arix System 90 with AT&T SVR3, "make sys5r3na"
  190. # - for AT&T 6300 with IN/ix, "make sys5"
  191. # - for AT&T 6300 PLUS, "make att6300" or (with no debugging) "make att6300nd"
  192. # ? for AT&T 6386 WGS UNIX PC, "make sys5r3"
  193. # ? for AT&T 3B2, 3B20 systems, "make att3b2".
  194. #   for AT&T 3B1, 7300 UNIX PC (see notes with the entries):
  195. #     In C-Kermit 7.0, only the gcc entries work:
  196. # ?   "make sys3upcg", "make sys3upcgc", "make att351gm"
  197. #    The others fail with "too many defines" (usually in ckuusr.h):
  198. # -   "make sys3upc", "make sys3upcold", "make sys3upcc", "make sys3upcx",
  199. #       "make sys3upcm", "make att351m"
  200. # ? for AT&T System III/System V R2 or earlier, "make sys3" or "make sys3nid"
  201. # ? for AT&T System III/System V with Honey DanBer UUCP, "make sys3hdb"
  202. # ? for AT&T System V on DEC VAX, "make sys3" or "make sys5r3"
  203. # ? for AT&T System V R3, use "make sys5r3" or "make sys5r3c"
  204. # ? for AT&T System V/386 R3.2 built on Interactive 4.1.1, "make sys5r32is".
  205. # ? for AT&T System V/386 R320.0 Versyss Systems, use "make sys5r3"
  206. #     or "make sys5r3c".
  207. # ? for AT&T System V R4, "make sys5r4", "make sys5r4sx", or "make sys5r4nx",
  208. #     or if the ANSI C function prototyping makes trouble, add -DNOANSI,
  209. #     as in "sys5r4sxna" entry
  210. # ? for AT&T (USL) System V R4.2 use the sys5r4* entries.
  211. # ? for Atari Falcon with MiNT, "make posix"
  212. # ? for Atari ST with Minix ST 1.5.10.3, "make minix68k" or "make minixc68"
  213. # ? for BBN C/70 with IOS 2.0, "make c70"
  214. # ? for BeBox with Be OS 1.x DR7, "make beboxdr7"
  215. #     Compiles OK but doesn't link with default linker which is limited to 64K.
  216. #     Links OK with "Code Warrior Gold".  Many hacks in the source code need
  217. #     to be removed when DR8 and later come out.
  218. #     (Last tested in C-Kermit 6.0)
  219. # - for BeBox with Be OS 1.x DR8, "make bebox"
  220. #     (Needed functions missing from operating system and/or not working.)
  221. # - for Bell Labs UNIX Version 6 (6th Edition), there is no makefile entry.
  222. # ? for Bell Labs UNIX Version 7 (7th Edition), "make v7" (but see notes below)
  223. #    (last built successfully in C-Kermit 5A188)
  224. # ? for Bell Labs Research UNIX Version 10, "make bellv10"
  225. #    (last built successfully in C-Kermit 6.0)
  226. # ? for Bell Labs / Lucent Plan 9, use separate makefile ckpker.mk:
  227. #    can be built for Intel, MIPS, 680x0, and PowerPC (last built C-Kermit 7.0)
  228. # ? for BSDI BSD/386 1.x, "make bsdi"
  229. # ? for BSDI BSD/OS 2.x, "make bsdi2"
  230. # ? for BSDI BSD/OS 3.0 or 3.1, "make bsdi3"
  231. # ? for BSDI BSD/OS 4.x, "make bsdi4"
  232. # ? for BSDI BSD/OS 4.x, to build a binary that also works on FreeBSD,
  233. #     "make bsdix".
  234. # ? for Berkeley Unix 2.4, "make v7" (but read v7 material below)
  235. # ? for Berkeley Unix 2.9 (DEC PDP-11 or Pro-3xx), "make bsd29"
  236. # - for Berkeley Unix 2.10, use ckubs2.mak (a separate makefile)
  237. # - for Berkeley Unix 2.11, use ckubs2.mak (a separate makefile)
  238. #     This makefile is too big.  Read the instructions in ckubs2.mak.
  239. #     "make -f ckubs2.mak bsd210" or "make -f ckubs2.mak bsd211".
  240. #     (last built successfully in C-Kermit 6.0 - later versions too big)
  241. # ? for Berkeley Unix 2.11 "make -f ckubs2.mak bsd210noicp" (no command parser)
  242. # ? for Berkeley Unix 4.1, "make bsd41"
  243. # ? for Berkeley Unix 4.2 on VAX, "make bsd42" or "make bsd42c"
  244. # ? for Berkeley Unix 4.2 or 4.3 with HoneyDanBer UUCP, "make bsdhdb"
  245. # ? for Berkeley Unix 4.3 on VAX, "make bsd43", "make bsd43nc".
  246. # ? for Berkeley Unix 4.3 on VAX, no networking "make bsd43nonet.
  247. # ? for Berkeley Unix 4.3 without acucntrl program, "make bsd42" or "bsd42c"
  248. #     NOTE: all the C-Kermit 7.0 full builds for old BSDs fail with
  249. #     "too many defines" in CPP, even on big architectures like VAX.  This
  250. #     can be worked around with a clever ruse.  See comments at target.
  251. # ? for Berkeley Unix 4.3, command-line only, "make bsdm".
  252. # ? for Berkeley Unix 4.3-Tahoe, same as 4.3 BSD
  253. # ? for Berkeley Unix 4.3-Reno, "make bsd43" or "make bsd44" or "make bsd44c"
  254. # ? for Berkeley Unix 4.3-Carson City, "make bsd44" or "make bsd44c"
  255. # ? for Berkeley Unix 4.4-Networking/2 or -Alpha, "make bsd44" or "make bsd44c"
  256. # ? for Berkeley Unix 4.4, "make bsd44" or "make bsd44c"
  257. # ? for Berkeley Unix 4.4-Lite, "make bsd44" or "make bsd44c"
  258. # ? for Bull DPX/2 with BOS/X, "make bulldpx2"
  259. # ? for Cadmus, "make sys3"
  260. #   for Caldera, see SCO, Linux.
  261. # ? for Callan Unistar, "make sys3"
  262. # ? for CDC VX/VE 5.2.1 System V emulation, "make vxve"
  263. # ? for Charles River Data Systems Universe 680x0 with UNOS 9.2, maybe
  264. #     also other UNOS versions, "make crds"
  265. # ? for CIE Systems 680/20 with Regulus, "make cie"
  266. # ? for Commodore Amiga 3000UX Sys V R4, "make sys5r4sx"
  267. # ? for Commodore Amiga 3000UX Sys V R4 and TCP/IP, "make svr4amiganet"
  268. # ? for Commodore Amiga with Minix 1.5.10, "make minix68k" of "make minixc68"
  269. # ? for Concurrent/Masscomp with RTU 4.0 or later, BSD environment, "make
  270. #     rtubsd", "make rtubsd2", "make rtubsd3" (depending on where ndir.h
  271. #     is stored, see entries below).
  272. # ? for Concurrent/Masscomp with RTU 4.0 or later, System V R2, "make rtus5"
  273. # ? for Concurrent (Perkin-Elmer) 3200 series, "make sys5".
  274. # ? for Concurrent (Perkin-Elmer) 3200 series with <dirent.h>, "make ccop1"
  275. # ? for Concurrent PowerMAX OS SVR4, "make powermax"
  276. # ? for Consensys UNIX SV/386 R4V3, "make sys5r4sxtcpc" or "make sys5r4sx"
  277. # ? for Convergent with CTIX Sys V R2, "make sys5"
  278. # ? for Convergent with CTIX 6.4.1, "make ctix"
  279. # ? for Convex C1, "make convex"
  280. # ? for Convex C210 with Convex/OS 8, "make convex8"
  281. # ? for Convex C2 with Convex/OS 9.1, "make convex9"
  282. # ? for Convex C2 with Convex/OS 10.1 and gcc 2.x, "make convex10gcc"
  283. # ? for Cray Research X/MP or YMP or C90 with UNICOS 6.x (System V R3),
  284. #    "make cray"
  285. # ? for Cray Research X/MP or YMP or C90 with UNICOS 7.x (System V R4),
  286. #    "make cray"
  287. # ? for Cray Research X/MP or YMP or C90 with UNICOS 8.0 Alpha, "make cray8"
  288. # ? for Cray Research X/MP or Y-MP or C90 with UNICOS 9.0, "make cray9"
  289. # ? for Cray Computer Cray-2 or Cray3 with CSOS, "make craycsos"
  290. # ? for Cyber 910 (Silicon-Graphics Iris) with Irix 3.3, "irix33"
  291. # ? for Data General AViiON with DG/UX 5.4 before R3.00, "make dgux540"
  292. #     or "make dgux540c" (compile ckwart separately if necessary)
  293. # ? for DG/UX 5.4 on AViiON Intel models, "make dgux540i" or dgux540ic.
  294. # ? for DG/UX 5.4R4.11 on AViiON, all models, "make dgux54411"
  295. # ? for DG/UX 5.4R4.20 on AViiON, all models, "make dgux54420"
  296. # ? for Data General AViiON with DG/UX 4.3x using Sys V-isms, "make dgux430"
  297. # ? for Data General AViiON with DG/UX 4.3x using BSD-isms, "make dgux430bsd"
  298. # ? for Data General AViiON, earlier UNIX versions,
  299. #     "make sys5r3" (maybe compile ckwart separately, or "touch ckcpro.c")
  300. # ? for Data General MV systems with DG/UX, ???
  301. # ? for Data General MV systems with MV/UX, use AOS/VS C-Kermit (CKDKER.MAK)
  302. # ? for Data General MV systems with AOS/VS, use CKDKER.MAK (last = C-K 7.0)
  303. # ? for DEC PDP-11 with Berkeley UNIX 2.x, see Berkeley UNIX 2.x.
  304. # ? for DEC PDP-11 with Mini-UNIX (Bell 6th Edition for PDP-11 with no MMU),
  305. #     probably no way to fit C-Kermit without I&D space.
  306. # ? for DEC PDP-11 with Ultrix-11 3.x, ??? (probably needs overlays)
  307. # ? for DEC VAX with Ultrix 1.x "make bsd"
  308. # ? for DEC VAX with Ultrix 2.x "make ultrix2x"
  309. # ? for DEC VAX or DECstation with Ultrix 3.0, 3.1, "make ultrix3x"
  310. # ? for DECstation or VAX with Ultrix 4.0 or 4.1, "make ultrix40"
  311. # ? for DECstation or VAX with Ultrix 4.2, "make ultrix42" or "make ultrix42c"
  312. # ? for DECstation or VAX with Ultrix 4.x, POSIX world, "make posix"
  313. # ? for DECstation or VAX with Ultrix 4.3, "make ultrix43".
  314. # ? for DECstation or VAX with Ultrix 4.4, "make ultrix44".
  315. # ? for DECstation 5000/50, /150 or /260 (R4x00 MIPS CPU), Ultrix 4.3A or later
  316. #     "make ultrix43-mips3" or "make ultrix43c-mips3"
  317. # ? for DECstation (MIPS) with Berkeley Sprite, "make bsd44"?
  318. # ? for DECstation (MIPS) with OSF/1 V1.0 to 1.3, "make dec-osf"
  319. # ? for DEC Alpha with OSF/1 1.0 to 1.3, "make dec-osf"
  320. # ? for DEC PC 486 with OSF/1, "make dec-osf"
  321. # ? for DEC Alpha with OSF/1 2.x, "make dec-osf20"
  322. # ? for DEC Alpha with OSF/1 3.0, "make dec-osf30"
  323. # ? for DEC Alpha with Digital UNIX 3.2, "make du32"
  324. # ? for DEC Alpha with Digital UNIX 4.0-4.0D, "make du40" or "make du40gcc"
  325. # ? for DEC Alpha with Digital UNIX 4.0E or higher, see Tru64.
  326. # + for DEC Alpha with any version of DU or OSF/1, "make dec-osf1"
  327. # - for DEC Pro-350 with Pro/Venix V1.x, "make provx1" (version 5A is too big)
  328. # ? for DEC Pro-380 with Pro/Venix V2.0 (Sys V), "make sys3" or "make sys3nid"
  329. # ? for DEC Pro-380 with 2.9, 2.10, or 2.11 BSD, "make bsd29" or "make bsd210"
  330. #   for DEC PDP-11 with 2.xBSD (use separate makefile ckubs2.mak)
  331. # ? for Dell UNIX Issue 2.x (= USL Sys V/386 R4.x + fixes), "make dellsys5r4"
  332. #     or "make dellsys5r4c" (last tested in C-Kermit 5A).
  333. # ? for DIAB DS90 with DNIX (any version) create an empty <sys/file.h> if
  334. #     this file does not already exist (or add -DNOFILEH to the make entry).
  335. # ? for DIAB DS90 with DNIX 5.2 (Sys V.2) or earlier, "make dnix",
  336. #     "make dnixnd", or (to add curses and TCP/IP) "make dnixnetc",
  337. # ? for DIAB DS90 with DNIX 5.3 (Sys V.3), "make dnix5r3"
  338. # ? for DIAB DS90 with DNIX 5.3 (Sys V.3) and TCP/IP, "make dnix5r3net"
  339. # ? for DIAB DS90 with DNIX 5.3 2.2 (Sys V.3), ANSI C, "make dnix5r3ansi"
  340. #     or, to include TCP/IP, "make dnix5r3ansinet",
  341. #     but you have to fix a bug in /usr/include/stdlib.h first:
  342. #     change "extern void free(char *str);" to "extern void free(void *str);"
  343. # ? for Dolphin Server Technology Triton 88/17 with SV/88 R3.2, "make sv88r32"
  344. # ? for Encore Multimax 310, 510 with Umax 4.2, "make umax42"
  345. # ? for Encore Multimax 310, 510 with Umax 4.3, "make umax43"
  346. # ? for Encore Multimax 310, 510 with Umax V 2.2, use Berkeley cc, "make bsd"
  347. # ? for Encore 88K with Umax V 5.2, "make encore88k"
  348. # ? for ESIX System V R4.0.3 or 4.04 with TCP/IP support, "make esixr4"
  349. #     NOTE: You can also build on Unixware 2.x with "make esixr4", and run
  350. #     on ESIX, but there you must first:
  351. #       ln /usr/lib/libsocket.so /usr/lib/libsocket.so.1
  352. #       ln /usr/lib/libnsl.so /usr/lib/libnsl.so.1
  353. #     (This worked for C-Kermit 6.0 but does not work for 7.0)
  354. #     (But you can probably still build a non-networking version this way)
  355. # ? for Everex STEP 386/25 Rev G with ESIX Sys V R3.2D, "make sys5r3"
  356. # ? for Fortune 32:16, For:Pro 1.8, "make ft18"
  357. # ? for Fortune 32:16, For:Pro 2.1, "make ft21"
  358. # ? for FPS 500 with FPX 4.1, "made bsd"
  359. # ? for FreeBSD 1.0, "make freebsd1"
  360. # ? for FreeBSD 2.x, "make freebsd2" (ncurses) or "make freebsd2c" (curses)
  361. # ? for FreeBSD 3.x, "make freebsd3" (ncurses) or "make freebsd3c" (curses)
  362. # ? for FreeBSD 4.0, "make freebsd40"
  363. # ? for FreeBSD 4.1 or later, "make freebsd"
  364. # + NOTE: Just use "make freebsd" for any reasonably recent FreeBSD version.
  365. # ? for Harris HCX-2900, "make sys5r3"
  366. # ? for Harris Night Hawk 88K or 68K with CX/UX pre-6.1, "make sys5r3"
  367. # ? for Harris Night Hawk 88K or 68K with CX/UX 6.1 or later, "make cx_ux"
  368. # ? for Heurikon, "make sys3"
  369. # ? for HP-3000, MPE/ix, "make posix"?
  370. # ? for HP-9000 Series 300 with 4.4BSD, "make bsd44"
  371.  
  372. # NOTE: Most of the HP-UX targets were tested successfully in 2010.
  373. # Verification needed for C-Kermit 9.0 Beta.01...
  374.  
  375. # ? for HP-9000 Series 500, HP-UX 5.21 and no networking "make hpux0500"
  376. # ? for HP-9000 Series 500, HP-UX 5.21 with WIN/TCP 1.2 "make hpux0500wintcp"
  377. # ? for HP-9000 Series, HP-UX 6.5, without long filenames,
  378. #     "make hpux0650", "make hpux0650c" or "make hpux0650tcpc"
  379. # ? for HP-9000 Series, HP-UX 7.0 or later no long filenames, "make hpux0700sf"
  380. #     or (to include tcp/ip, curses, etc) "make hpux0700sftcpc"
  381. # ? for HP-9000 Series with HP-UX 7.0, TCP/IP,long filenames,"make hpux0700lfn"
  382. # ? for HP-9000 300/400 Series (680x0) with HP-UX 8.0, TCP/IP, "make hpux0800"
  383. #      or "make hpux0800c"
  384. # ? for HP-9000 700/800 Series (PA-RISC), HP-UX 8.0, TCP/IP, "make hpux0800pa"
  385. #      or "make hpux0800pac"
  386. # ? for HP-9000 Series with HP-UX 8.0, no TCP/IP, long filenames,
  387. #      "make hpux0800notcp"
  388. # ? for HP-9000 Series, HP-UX 9.0 - 9.10, TCP/IP, curses, restricted compiler
  389. #     (no optimization, no ANSI), all models, "make hpux0900".  Read the
  390. #     hpux0900 entry below for more info.
  391. # ? for HP-9000 700 and 800 Series, HP-UX 9.x, TCP/IP, curses,
  392. #     HP optimizing ANSI C compiler, "make hpux0900o700".
  393. # ? for HP-9000 with Motorola CPUs, HP-UX 9.x, TCP/IP, curses,
  394. #     HP optimizing ANSI C compiler, "make hpux0900mot".
  395. # ? for HP-9000 on other CPUs, HP-UX 9.x, TCP/IP, curses,
  396. #     HP optimizing ANSI C compiler, "make hpux0900o".
  397. # ? for HP-9000 series, HP-UX 9.x, TCP/IP, curses, gcc, all models,
  398. #     "make hpux0900gcc"
  399. # ? for HP-9000 700/800 Series, HP-UX 10.00,10.01,10.10,10.20,10.30, TCP/IP,
  400. #     curses, restricted compiler (no optimization, no ANSI) "make hpux1000".
  401. # ? for HP-9000 700/800 Series, HP-UX 10.00,10.01,10.10,10.20,10.30, TCP/IP,
  402. #     curses, HP ANSI/optimizing compiler "make hpux1000o" or "make hpux1000o+"
  403. # ? for HP-9000 HP-UX 10.00 or later with gcc, "make hpux1000gcc"
  404. # ? for Trusted HP-UX 10.xx "make hpux1000t", "make hpux1000to",
  405. #     or make hpux1000to+"
  406. # ? for HP-9000 700/800 Series, HP-UX 11.00,TCP/IP,curses, restricted compiler
  407. #     (no optimization, no ANSI) "make hpux1100".
  408. # ? for HP-9000 700/800 Series, HP-UX 11.00,TCP/IP,curses, restricted compiler
  409. #     HP ANSI/optimizing compiler "make hpux1100o" or "make hpux1100o+"
  410. # ? for Trusted HP-UX 11.xx "make hpux1100t", "make hpux1100to",
  411. #     make hpux1100to+"
  412. # ? for HP-9000 PA-RISC models with NeXTSTEP 3.3, "make nextquadfat".
  413. # ? for HP-9000 PA-RISC models with OPENSTEP/Mach 4.1, "make nextquadfat".
  414. # ? for IBM 370 Series with IX/370, "make ix370"
  415. # ? for IBM 370 Series with AIX/370 1.2, "make aix370"
  416. # ? for IBM 370 Series with AIX/370 3.0, "make aix370"
  417. # ? for IBM 370 Series with AIX/ESA 2.1, "make aixesa"
  418. # - for IBM PC/AT 286 & compatibles with Mark Williams Coherent OS,
  419. #     command-line-only version, "make coherent" (version 5A & later too big)
  420. # ? for IBM PC 386 & compatibles with Mark Williams Coherent OS,
  421. #     minimum interactive version, "make coherentmi"
  422. # ? for IBM PC 386 & compatibles with Mark Williams Coherent OS,
  423. #     full interactive version, prior to v4.2, "make coherentmax"
  424. # ? for IBM PC 386 & compatibles with Mark Williams Coherent OS 4.2,
  425. #     "make coherent42"
  426. # ? for IBM PC 386 & compatibles with LynxOS 2.0 or 2.1, "make lynx21"
  427. # ? for IBM PC 386 & compatibles with LynxOS 2.2, "make lynx"
  428. # - for IBM PC/AT & compatibles with original MINIX, "make minix" (too big)
  429. # ? for IBM PC family, 386-based, with MINIX/386 1.5, "make minix386"
  430. #     or if you have GNU CC, "make minix386gcc"
  431. # ? for IBM PC family, 386-based, with MINIX 2.0, "make minix20"
  432. # ? for IBM PC family, 386-based, with MINIX 3.0, "make minix3"
  433. # + for IBM PC family, 386-based, with MINIX 3.0, "make minix315"
  434. # ? for IBM PS/2 with PS/2 AIX 1.0, 1.1, or 1.2, "make ps2aix" or ps2aixnetc.
  435. # ? for IBM PS/2 with PS/2 AIX 1.3, "make ps2aix3"
  436. # ? for IBM RISC System/6000 with AIX 3.0, "make aix30"
  437. # ? for IBM RISC System/6000 with AIX 3.1.x, "make aix31"
  438. # ? for IBM RISC System/6000 with AIX 3.2.0 thru 3.2.5, "make aix32"
  439. # ? for IBM RS/6000 or Power Series with AIX 4.1.x, "make aix41"
  440. # ? for IBM RS/6000 or Power Series with AIX 4.1.x with gcc, "make aix41g"
  441. # ? for IBM RS/6000 or Power Series with AIX 4.1 with X.25, "make aix41x25"
  442. # ? for IBM RS/6000 or Power Series with AIX 4.2 or later: "make aix"
  443. #  (the following "make aixnn" targets are no longer necessary except for gcc)
  444. # ? for IBM RS/6000 or Power Series with AIX 4.2, "make aix42"
  445. # ? for IBM RS/6000 or Power Series with AIX 4.3, "make aix43" (or aix43gcc)
  446. # ? for IBM RS/6000 or Power Series with AIX 4.4, "make aix44" (or aix44gcc)
  447. # ? for IBM RS/6000 or Power Series with AIX 4.5, "make aix45" (or aix45gcc)
  448. # ? for IBM RS/6000 or Power Series with AIX 5.0, "make aix50" (or aix50gcc)
  449. # ? for IBM RS/6000 or Power Series with AIX 5.1, "make aix51" (or aix51gcc)
  450. # ? for IBM RS/6000 or Power Series with AIX 5.2, "make aix52" (or aix52gcc)
  451. # ? for IBM RS/6000 or Power Series with AIX 5.3, "make aix53" (or aix53gcc)
  452. # ? for IBM RS/6000 or Power Series with AIX 6.1, "make aix61" (or aix53gcc)
  453. # ? for IBM RT PC with AIX 2.1, "make sys3"
  454. # ? for IBM RT PC with AIX 2.2.1, "make rtaix" or "make rtaixc"
  455. # ? for IBM RT PC with ACIS 4.2, "make bsd"
  456. # ? for IBM RT PC with ACIS 4.3, "make rtacis" or "make bsd KFLAGS=-DNOANSI"
  457. # ? for IBM RT PC with 4.3BSD/Reno, "make bsd44" or "make bsd44c"
  458. # ? for ICL DRS400 or 400E, "make iclsys5r3"
  459. # ? for ICL DRS3000 (80486) with DRS/NX, "make iclsys5r4_486"
  460. # ? for ICL DRS6000 (SPARC) with DRS/NX, "make iclsys5r4"
  461. # ? for ICL DRS6000 (SPARC) with DRS/NX 4.2MP 7MPlus, "make iclsys5r4m+"
  462. # ?     Ditto but with IKSD support included, "make iclsys5r4m+iksd"
  463. # ? for Integrated Solutions Inc V8S VME 68020, "make isi"
  464. # ? for Intel 302 with Bell Tech Sys V/386 R3.2, "make sys5r3"
  465. # ? for Intel Xenix/286, "make sco286"
  466. # ? for Interactive System III (PC/IX), "make pcix" or "make is3"
  467. # ? for Interactive System III (PC/IX) with gcc, "make is3gcc"
  468. # ? for Interactive 386/ix 1.0.6 with TCP/IP networking, "make is5r3net2"
  469. # ? for Interactive 386/ix 2.0.x, "make is5r3" or (POSIX) "make is5r3p"
  470. # ? for Interactive 386/ix 2.0.x with TCP/IP networking, "make is5r3net"
  471. #     or "make is5r3net2"
  472. # ? for Interactive 386/ix 2.2.1, job control, curses, no net, gcc,
  473. #     "make is5r3gcc"
  474. # ? for Interactive UNIX Sys V R3.2 V2.2 - 4.0 without TCP/IP, "make is5r3jc"
  475. # ? for Interactive UNIX Sys V R3.2 V2.2 - 4.0 with TCP/IP, "make is5r3netjc"
  476. # ? for Intergraph Clipper, "make clix" or "make clixnet"
  477. # ? for Jolix (see 386BSD)
  478. # + for Linux 1.2 and later, "make linux".  Uses ncurses.  This version
  479. #     handles serial speeds up to 460800 bps, Linux FSSTD 1.2, TCP/IP, and
  480. #     should work on both libc and glibc systems.  For static linking, use
  481. #     "make linux LNKFLAGS=-static".  Please read the comments that accompany
  482. #     the linux entry.  As of 8.0.212 Dev.10, this also includes Large File
  483. #     Support (LFS).
  484. # + for Linux builds that fail with "sys/select.h: No such file or directory",
  485. #     "make linuxns"
  486. # + for Linux 1.2 and later but with curses.h and libcurses (rather than
  487. #     ncurses.h and libncurses), use "make linuxc".
  488. # + for Linux 1.2 and later with no curses support at all, "make linuxnc".
  489. # + for Linux with no TCP/IP, "make linuxnotcp"
  490. # (The following Linux targets are historic and might not work...)
  491. # ? for Red Hat Linux 7.1 through RH9, fully configured (krb5, SSL, etc):
  492. #     "make redhat71", "make redhat72", "make redhat73", "make redhat80"
  493. #     "make redhat9"
  494. #     NOTE: You must use this target for Red Hat 7.1 since it
  495. #     also includes a workaround for its broken curses library.
  496. #     WARNING: These targets create binaries that include code for
  497. #     strong encryption and are therefore not exportable. DO NOT PUT
  498. #     THESE BINARIES ON US OR CANADIAN WEB OR FTP SITES.
  499. # ? for Linux on PowerMac (Mklinux DR3), "make mklinux".
  500. # ? for Linux 1.2 and later, to build with egcs, "make linuxegcs".
  501. # ? for Linux with lcc compiler, no TCP/IP, "make linuxnotcp-lcc"
  502. # ? for Linux 1.0 or earlier, "make linux10".
  503. # (End old linux targets)
  504. # ? for Mach 2.6 on (anything, e.g. DECstation), "make bsd42" or "make bsd43".
  505. # ? for MachTen (Tenon) 2.1.1.D on (e.g.) Apple Powerbook, "make machten".
  506. # ? for Masscomp RTU AT&T System III, "make rtu"
  507. #   for other Masscomp, see Concurrent.
  508. # ? for Microport SV/AT (System V R2), "make mpsysv" (last edit tested: 144)
  509. # ? for Microport SVR4 2.2, 3.1, or 4.1 "make sys5r4sx"
  510. # ? for Microsoft,IBM Xenix (/286, PC/AT, etc), "make xenix" or "make sco286"
  511. # ? for MIPS System with RISC/os (UMIPS) 4.52 = AT&T SVR3, "make mips"
  512. #     or "make mipstcpc"
  513. # ? for MkLinux on Power Macintosh, "make mklinux"
  514. # ? for Modcomp 9730, Real/IX, "make sys5r3" (or modify to use gcc = GLS cc)
  515. # ? for Modcomp Realstar 1000 with REAL/IX D.1, "make sv88r32"
  516. # ? for Motorola Four Phase, "make sys3" or "make sys3nid"
  517. # ? for Motorola Delta System V/68 R3, "make sv68r3"
  518. # ? for Motorola Delta System V/68 R3V5, "make sv68r3v5"
  519. # ? for Motorola Delta System V/68 R3V5.1, "make sv68r3v51"
  520. # ? for Motorola Delta System V/68 R3V6 with NSE TCP/IP, "make sv68r3v6"
  521. # ? for Motorola Delta System V/88 R32, "make sv88r32"
  522. # ? for Motorola Delta System V/88 R40, "make sv88r40"
  523. # ? for Mt Xinu Mach386 on 386/486-based PCs, "make bsd43"
  524. # ? for NCR Tower 1632, OS 1.02, "make tower1"
  525. # ? for NCR Tower 1632 or Minitower with System V R2, "make sys3"
  526. #     or "make sys3nv"
  527. # ? for NCR Tower 32, OS Release 1.xx.xx, "make tower32-1"
  528. # ? for NCR Tower 32, OS Release 2.xx.xx, "make tower32-2"
  529. # ? for NCR Tower 32, OS Releases based on Sys V R3, "make tower32"
  530. # ? for NCR Tower 32, OS Releases based on Sys V R3 with gcc "make tower32g"
  531. # ? for NCR System 3000, AT&T UNIX System V R4 2.0, "make sys5r4sxna"
  532. # ? for NCR System 3000, AT&T UNIX System V R4 2.0 with Wollongong TCP/IP,
  533. #     "make sys5r4net2" or "make sys5r4net2c".
  534. #      Some header files might be misplaced; try this:
  535. #       ln /usr/include/netinet/in.h /usr/include/sys/in.h
  536. #       ln /usr/include/arpa/inet.h /usr/include/sys/inet.h
  537. #       ln /usr/include/sys/termiox.h /usr/include/termiox.h
  538. # ? for NCR System 3000, NCR UNIX 02.02.01, same as above.
  539. # ? for NCR MP-RAS System V R4 V2.03 or 3.02, "make mpras" or "make mprastcpc"
  540. # + for NetBSD any version on any architecture, "make netbsd"
  541. # + for NetBSD with OpenSSL, "make netbsd+ssl"
  542. # ? for NetBSD with ncurses specified instead of curses, "make netbsdn"
  543. # ? for NetBSD with all curses support omitted, "make netbsdnc"
  544. # ? for NeXT with NeXTSTEP 1.0 through 3.2, "make next" (on a NeXT)
  545. # ? for NeXT with NeXTSTEP 3.3, "make next33"
  546. # ? for NeXT with OPENSTEP/Mach 4.1, "make nextquadfat".
  547. # ? for NeXT with OPENSTEP/Mach 4.2, "make openstep42".
  548. # ? for NeXTSTEP/486, "make next" (on a PC)
  549. # ? for NeXTSTEP portable binary (runs on Intel or Motorola), "make nextfat"
  550. # ? for NeXTSTEP portable binary (Intel, Motorola, HP PA-RISC, or SPARC),
  551. #     "make nextquadfat"
  552. # ? for Nixdorf Targon/31, "make t31tos40x"
  553. # ? for Norsk Data Uniline 88/17 with SV/88 R3.2, "make sv88r32"
  554. #   for Novell UnixWare - see UnixWare
  555. # ? for OSF/1 (vanilla, from OS/F), "make posix"
  556. # ? for OkiStation 7300 Series, "make sys5r4sxtcp"
  557. # ? for Olivetti LSX-3020 with X/OS R.2.3, "make xos23" or "make xos23c"
  558. # + for OpenBSD, "make openbsd" (also see secure targets listed below).
  559. # ? for OPENSTEP/Mach 4.1, "make nextquadfat" (NeXT, Intel, PA-RISC, SPARC)
  560. # ? for OPENSTEP/Mach 4.2, "make openstep42" (tested on NeXT)
  561. # ? for Perkin-Elmer (Concurrent) 3200 series, "make sys5".
  562. # ? for Perkin-Elmer (Concurrent) 3200 series with <dirent.h>, "make ccop1"
  563. # ? for Perkin-Elmer/Concurrent 3200 with Xelos R02, "make ccop1"
  564. # ? for PFU Compact A Series SX/A TISP V10/E50 (Japan), "make sxae50"
  565. # ? for Plexus, "make sys3"
  566. # ? for Pyramid 9XXX (e.g. 9845) or MIServer T series, OSx 4.4b thru 5.1,
  567. #     "ucb make pyramid" or for HDB UUCP, "ucb make pyramid-hdb" or:
  568. # ? for Pyramid MIServer S or ES Series, DataCenter/OSx, "make pyrdcosx"
  569. # ? for Pyramid MIS-S MIPS R3000, DataCenter OSx System V R4, "make pyrdcosx"
  570. # ? for POSIX on anything, "make posix" (but adjustments might be necessary).
  571. #      NOTE: this target is not very useful - many features are missing.
  572. # ? for Prime 8000 MIPS, SVR3, "make mips" or "make mipstcpc"
  573. # - for QNX 2.x (sorry we don't have a version of C-Kermit for QNX 2.x)
  574. # ? for QNX 4.0 or 4.1, 16-bit, on 286 PC, Watcom C 8.5, "make qnx16_41"
  575. # ? for QNX 4.21 - 4.22A (286+), and 4.23 (386+), or higher, 16-bit,
  576. #     Watcom C 9.5x or higher, "make qnx16"
  577. # + for QNX 4.21-4.25, 32-bit, 386 or above, Watcom C 10.6, "make qnx32"
  578. #     NOTE: ("make qnx" == "make qnx32")
  579. # ? for QNX Neutrino 2+, "make qnx_nto2+" (crosscompiled on QNX4 with Watcom C)
  580. # ? for QNX 6 = Neutrino 2.xx, "make qnx6"
  581. # ? for Ridge 32 (ROS3.2), "make ridge32"
  582. # ? for Samsung MagicStation, "make sys5r4"
  583. # ? for SCO Xenix 2.2.1 with development system 2.2 on 8086/8 "make sco86"
  584. # ? for SCO Xenix/286 2.2.1 with development system 2.2 on 80286, "make sco286"
  585. #     NOTE: reportedly this makefile is too long for SCO Xenix/286 make, but it
  586. #     works with "makeL", or if some of the other make entries are edited out.
  587. # ? for SCO Xenix/386 2.2.2, "make sco386"
  588. # ? for SCO Xenix/386 2.3.x, "make sco3r2"
  589. # ? for SCO Xenix/386 SCO 2.3.3 or 2.3.4 with gcc 1.37 or later,
  590. #     "make sco386gcc" or (to add curses) "make sco386gccc".
  591. # ? for SCO Xenix/386 or UNIX/386 with Excelan TCP/IP, "make sco3r2net"
  592. #     or (to add curses support) "make sco3r2netc" or "sco386netc"
  593. # + for SCO XENIX 2.3.4, "make sco234" or "make sco234c" to add curses.
  594. # ? for SCO XENIX 2.3.4 with SCO TCP/IP & curses, "make sco234netc".
  595. # ? for SCO Xenix 2.3.x with Racal-InterLan TCP/IP, "make sco3r2netri"
  596. #   for other UNIX varieties with Racal Interlan TCP/IP, read sco3r2netri entry
  597. # ? for SCO Xenix 2.3.x with SCO (Lachman) TCP/IP, "make sco3r2lai"
  598. #     or (to add curses) "make sco3r2laic"
  599. #   for SCO UNIX...  ALSO READ COMMENTS in the SCO UNIX entries for more info!
  600. # ? for SCO UNIX/386 3.2.0 or 3.2.1, "make sco3r2" or "make sco3r2x"
  601. # ? for SCO UNIX/386 3.2.2, "make sco3r22" or "make sco3r22gcc"
  602. #     or "make sco3r22c"
  603. # ? for SCO UNIX/386 3.2.2 with SCO TCP/IP, "make sco3r22net"
  604. #     or "make sco3r22netc" (curses)
  605. # ? for SCO ODT 1.1, "make sco3r22net" or "make sco3r22netc" (curses)
  606. # ? for SCO UNIX/386 3.2 V4.x, no network support, "make sco32v4"
  607. # ?   or "make sco32v4ns" (this one uses no select() or sockets library)
  608. # ? for SCO UNIX/386 3.2 V4.x with TCP/IP, "make sco32v4net"
  609. #     (also sco32v4gcc, sco32v4netgcc)
  610. # ? for SCO UNIX/386 3.2 V5.0 - see SCO OpenServer.
  611. # ? for SCO UNIX 3.2v4.x with TCP/IP, <dirent.h> for Extended Acer File
  612. #     System (EAFS), curses, ANSI C compilation, "make sco32v4net"
  613. # ?   or (to use select()-based CONNECT module) "make sco32v4netx".
  614. # ? for SCO UNIX 3.2v4.2, "make sco-odt30" (includes TCP/IP).
  615. # ? for SCO MPX 3.0 - The SCO UNIX binary runs on the corresponding MPX system.
  616. #
  617. # NOTE: Also see below for other entries that are variations on these.
  618. # Also be sure to read the comments accompanying each SCO entry.
  619. # Also see Unixware section.
  620. #
  621. # ? for SCO ODT 2.0, "make sco32v4net"
  622. # ? for SCO ODT 3.0, "make sco-odt30"
  623. # ? for SCO OpenServer 5.0 (OSR5), "make sco32v500"
  624. # ? for SCO OpenServer 5.0 (OSR5) with networking, "make sco32v500net"
  625. # ? for SCO OpenServer 5.0 (OSR5), gcc, "make sco32v500gcc"
  626. # ? for SCO OpenServer 5.0 (OSR5), gcc, with networking, "make sco32v500netgcc"
  627. # ? for SCO OpenServer 5.0 (OSR5), as above, ELF, "make sco32v500netgccelf"
  628. # ? for SCO OpenServer 5.0.2, use "make sco32v502xxx" entries as above.
  629. # ? for SCO OpenServer 5.0.4, use "make sco32v504xxx" entries as above.
  630. # ? for SCO OpenServer 5.0.5, use "make sco32v505xxx" entries as above.
  631. #     Use the sco32v505udkxxx entries if you have the UDK rather than /bin/cc.
  632. # ? for SCO OpenServer 5.0.6, use "make sco32v506xxx" entries as above.
  633. # ? for SCO OpenServer 5.0.6a,use "make sco32v506axxx" entries as above.
  634. # ? for SCO OpenServer 5.0.7, use "make sco32v507", "make sco32v507net"
  635. # ? for SCO (Univel) UnixWare 1.x, "make unixware" or "make unixwarenetc".
  636. #     If there are problems with this in C-K 7+ see notes at unixware entry.
  637. # + for SCO OpenServer 6.0.0, "make sco_osr600"
  638. # ? for SCO UnixWare 2.0.x, "make uw20"
  639. # ? for SCO UnixWare 2.1.0, "make uw21"
  640. # ? for SCO UnixWare 2.1.3, "make uw213"
  641. # + for SCO UnixWare 7, "make uw7" (includes large file support)
  642. # ? for SCO UnixWare 7 with IKSD support, "make uw7iksd" or "make uw7iksdudk"
  643. # ? for SCO UnixWare 7 with OpenSSL, "make uw7ssl"
  644. # ? for SCO (Caldera) Open UNIX 8, "make ou8"
  645. # ? for Sharp Zaurus SL5500 PDA, "make zsl5500".
  646. # ? for Sequent with DYNIX/ptx 1.2.1, "make dynixptx12"
  647. # ? for Sequent with DYNIX/ptx 1.3 or 1.4 with TCP/IP, "make dynixptx13"
  648. # ? for Sequent with DYNIX/ptx 2.0 or 2.1 with TCP/IP, "make dynixptx20"
  649. #     or "dynixptx20c"
  650. # ? for Sequent with DYNIX/ptx 2.1.6 on i486, "dynixptx216c"
  651. # ? for Sequent with DYNIX/ptx V4.1.3 with TCP/IP, "make dynixptx41c"
  652. # ? for Sequent with DYNIX/ptx V4.4.2 with TCP/IP, "make dynixptx44"
  653. # ? for Sequent Balance 8000 or B8 with DYNIX 3.0.xx, "make dynix3"
  654. #    or "make dynix3noacu"
  655. # ? for Sequent Symmetry S81 with DYNIX 3.0.xx, "make dynix3"
  656. # ? for Sequent DYNIX 3.1.xx, "make dynix31" or "make dynix31c"
  657. # ? for Siemens/Nixdorf SINIX-L Intel V5.41, "make sinix541i"
  658. # + for Siemens/Nixdorf SINIX-N MIPS V5.42, "make sinix542"
  659. # ? for Siemens/Nixdorf SINIX-P MIPS V5.42 with gcc, "make sinix542g"
  660. # ? for Siemens/Nixdorf SINIX-Z Intel V5.42, "make sinix542i"
  661. # ? for Siemens/Nixdorf Reliant UNIX V5.43, "make sni543"
  662. # ? for Siemens/Nixdorf Reliant UNIX V5.44, "make sni544"
  663. # ? for Silicon Graphics Iris System V IRIX 3.2 or earlier, "make iris"
  664. # ? for Silicon Graphics Sys V R3 with IRIX 3.3 or later, "make sys5r3"
  665. # ? for Silicon Graphics Iris Indigo with IRIX 4.0 or 5.0, "make irix40" or
  666. #     (to include Yellow Pages and Curses) "make irix40ypc"
  667. # ? for Silicon Graphics Iris Indigo or Elan with IRIX 4.0.x with microcode
  668. #     optimization and -O4, "make irix40u" or "irix40uc" (and read notes
  669. #     accompanying these entries).
  670. # ? for Silicon Graphics IRIX 5.1, "make irix51" or "irix51x" (no optimize)
  671. # ? for Silicon Graphics IRIX 5.2, "make irix52"
  672. # ? for Silicon Graphics IRIX 5.3, "make irix53" or "irix53x" (no optimize)
  673. # ? for Silicon Graphics IRIX 6.0, "make irix60".
  674. # ? for Silicon Graphics IRIX 6.2, "make irix62".
  675. # ? for Silicon Graphics IRIX 6.3, "make irix63".
  676. # ? for Silicon Graphics IRIX 6.4, "make irix64" or "make irix64gcc".
  677. # + for Silicon Graphics (SGI) IRIX 6.5, "make irix65"
  678. # +   or "make irix65mips2" to force MIPS2, or "make irix65gcc" for GCC.
  679. # + for Silicon Graphics (SGI) IRIX 6.5, "make irix65" or "make irix65mips2"
  680. # ? for SGI IRIX 6.5 with SSL/TLS, SRP, and ZLIB "make irix65+ssl+srp+zlib"
  681. # ? for Solaris 2.0-2.3 on SPARC or Intel, SunPro CC, "make solaris2x",
  682. # ?   or to add SunLink X.25 8.0x support, "make solaris2x25".
  683. # ? for Solaris 2.4 built with gcc, "make solaris24g".
  684. # ? for Solaris 2.0-2.3 on SPARC or Intel, GNU CC, "make solaris2xg".
  685. # ? for Solaris 2.4 with X.25, "make solaris24x25".
  686. # ? for Solaris 2.5 on SPARC or Intel, SunPro CC, "make solaris25".
  687. # ?   or to add SunLink X.25 8.0x support, "make solaris25x25".
  688. # ? for Solaris 2.5 on SPARC or Intel, GNU CC, "make solaris25g".
  689. # ? for Solaris 2.6 on SPARC or Intel, "make solaris26".
  690. # ? for Solaris 7 on SPARC or Intel, SunPro CC, "make solaris7".
  691. # ? for Solaris 7 on SPARC or Intel, GNU CC, "make solaris7g".
  692. # ? for Solaris 8 on SPARC or Intel, SunPro CC, "make solaris8".
  693. # ? for Solaris 8 on SPARC or Intel, GNU CC, "make solaris8g".
  694. # + for Solaris 9 on SPARC (or Intel?), 32-bit, SunPro CC, "make solaris9".
  695. # + for Solaris 9 on SPARC (or Intel?), 32-bit, GNU CC, "make solaris9g".
  696. # ? for Solaris 9 on SPARC (or Intel?), 64-bit, GNU CC, "make solaris9g64".
  697. # + for Solaris 10 on SPARC (or Intel?), 32-bit, SunPro CC, "make solaris10".
  698. # + for Solaris 10 on SPARC 64-bit, SunPro CC, "make solaris10_64".
  699. # + for Solaris 10 on SPARC (or Intel?), 32-bit, GNU CC, "make solaris10g".
  700. # ? for Solaris 10 on SPARC (or Intel?), 64-bit, GNU CC, "make solaris10g64".
  701. # ? for Solbourne 4/500 with OS/MP 4 "make sunos4"
  702. # ? for Solbourne 4/500 with OS/MP 4.1 "make sunos41" or "make sunos41c"
  703. # ? for SONY NEWS with NEWS-OS 4.0.1C, "make sonynews"
  704. # ? for SONY NEWS with NEWS-OS 4.1.2C, "make sonynews"
  705. # ? for Sperry/UNISYS 5000/20, UTS V 5.2 3R1, "make sys5"
  706. # ? for Sperry/UNISYS 5000/30/35/50/55, UTS V 5.2 2.01, "make unisys5r2"
  707. # ? for Sperry/UNISYS 5000/80 with System V R3, "make sys5r3"
  708. # ? for Sperry/UNISYS 5000/95 with System V R3, "make sys5r3"
  709. #     For UNISYS SVR3 it might be necessary to "make sys5r3 KFLAGS=-UDYNAMIC"
  710. # ? for Stardent 1520, "make sys5r3"
  711. # ? for Stratus FTX 2.x, try "make ftx" or else "make sys5r4" or "sys5r4sx"
  712. # ? for Stratus FTX 3.x, PA-RISC 1.0 or 2.0, "make ftx" or "make ftxtcp"
  713. # ? for Sun with Sun UNIX 3.5 and gcc, "make sunos3gcc"
  714. # ? for Sun with pre-4.0 SunOS versions, "make bsd" (or appropriate variant)
  715. # ? for Sun with SunOS 4.0, BSD environment, "make sunos4"
  716. # ? for Sun with SunOS 4.0, BSD, with SunLink X.25, make sunos4x25
  717. # ? for Sun with SunOS 4.1 or 4.1.1, BSD environment, "make sunos41"
  718. #     or "make sunos41c" (curses) or "make sunos41gcc" (compile with gcc)
  719. # ? for Sun with SunOS 4.1.x, BSD, with SunLink X.25 7.00 or earlier,
  720. #     "make sunos41x25" or "make sunos41x25c" (curses)
  721. # ? for Sun with SunOS 4.1, 4.1.1, AT&T Sys V R3 environment, "make sunos41s5"
  722. # ? for Sun with SunOS 4.1.2, "make sunos41" or any of its variations.
  723. #     NOTE:  All SunOS 4.x systems -- Shared libraries are used by default.
  724. #       If this causes problems, add -Bstatic to CFLAGS.
  725. #     NOTE2: When building C-Kermit under SunOS for the BSD universe,
  726. #       but /usr/5bin/cc is ahead of /usr/ucb/cc in your PATH, add
  727. #       "CC=/usr/ucb/cc CC2=/usr/ucb/cc" to the make entry.
  728. #     NOTE3: If an executable built on one type of Sun hardware does not work
  729. #       on another type, rebuild the program from source on the target machine.
  730. #   for Sun with Solaris 1.x use SunOS 4.1 entries.
  731. #   for Sun with Solaris 2.0 and higher use Solaris entries.
  732. # + for Sun SPARC with Linux, "make linux"
  733. # ? for Sun SPARC with OPENSTEP/Mach 4.1, "make nextquadfat"
  734. # ? for Sun SPARC with OPENSTEP/Mach 4.2, "make openstep42"
  735. # - for Tandy 16/6000 with Xenix 3.0, "make trs16" (C-Kermit 7.0 is too big)
  736. # ? for Tektronix 6130/4132/43xx (e.g.4301) with UTek OS, "make utek"
  737. #     or (for models without hardware flow control), "make uteknohwfc"
  738. # ? for Tektronix XD88 series with UTekV OS, "make utekvr3"
  739. # ? for Tri Star Flash Cache with Esix SVR3.2, "make sys5r3"
  740. # NOTE: The Tru64 builds have been failing since 2010, but "make dec-osf" is OK
  741. # ? for Tru64 UNIX 4.0E, "make tru64-40e"
  742. # ? for Tru64 UNIX 4.0F, "make tru64-40f"
  743. # ? for Tru64 UNIX 4.0G, "make tru64-40g"
  744. # ? for Tru64 UNIX 5.0A, "make tru64-50a"
  745. # ? for Tru64 UNIX 5.1A, "make tru64-51a"
  746. # ? for Tru64 UNIX 5.1B, "make tru64-51b"
  747. # ? for Unistar, "make sys5"
  748. # ? for Unisys S/4040 68040 CTIX SVR3.2 6.4.1, "make ctix" or "make sys5r3"
  749. # ? for Unisys U5000 UNIX SVR3 6.x, "make sys5r3" or "make sys5r3c"
  750. # ? for Unisys U6000 UNIX SVR4 1.x, "make sys5r4nx" or "make sys5r4nxnetc"
  751. #   for Unisys ... (also see Sperry)
  752. #   for Univel - see UnixWare
  753. #   for Unixware - see SCO
  754. # ? for Valid Scaldstar, "make valid"
  755. # ? for Whitechapel MG01 Genix 1.3, "make white"
  756. # ? for Zilog ZEUS 3.21, "make zilog"
  757. #
  758. # The result should be a runnable program called "wermit" in the current
  759. # directory.  After satisfactory testing, you can rename wermit to "kermit"
  760. # and put it in some directory that's in everybody's PATH, such as
  761. # /usr/local or /opt/local.
  762. #
  763. # To remove intermediate and object files, "make clean".
  764. # If your C compiler produces files with an extension other than "o",
  765. # then "make clean EXT=u", "make clean EXT=s", or whatever.
  766. #
  767. # To run lint on the source files, "make lintsun", "make lintbsd",
  768. # "make lints5", as appropriate.
  769. #
  770. # ******************************
  771. # SECURE TARGETS
  772. #
  773. # Beginning with C-Kermit 7.0, secure targets are included, as are the
  774. # source modules (ckuat*.[ch], ck_*.[ch]) needed to build them.  Secure
  775. # target names are like the regular names, but with security features
  776. # indicated by plus (+) signs.  The features are:
  777. #
  778. # krb4     MIT Kerberos IV
  779. # krb5     MIT Kerberos V
  780. # openssl  OpenSSL (SSL/TLS)
  781. # zlib     ZLIB compression for SSL/TLS
  782. # srp      Stanford Secure Remote Password
  783. # pam      PAM (pluggable authentication module)
  784. # shadow   Shadow Password File
  785. #
  786. # You can build these targets if you have the Kermit source files and the
  787. # required libraries (Kerberos, OpenSSL, SRP, etc) and header files.  See:
  788. #   http://www.columbia.edu/kermit/security.html
  789. # for specific details regarding supported versions.
  790. #
  791. # NOTE: OpenSSL 0.9.6 and earlier are not compatible with 0.9.7 and later.
  792. # C-Kermit code was originally designed for 0.9.6.  To build with 0.9.7 you
  793. # must add -DOPENSSL_097 to avoid missing symbols in the DES library and to
  794. # use the entry points that were renamed to avoid conflict with Kerberos 4.
  795. # If you have OpenSSL 0.9.8, add -DOPENSSL_098, which is a synonym for
  796. # -DOPENSSL_097.  If you have 1.0.0 or later, add -DOPENSSL_100, which is
  797. # another synonym.
  798.  
  799. # In OpenSSL builds add -ldl if you get unresolved references for
  800. # dlopen, dlclose, dlsym, and/or dlerror.
  801. #
  802. # In order to build a secure version of Kermit, you need to know the location
  803. # of the header (include) files and libraries for the desired form of
  804. # security.  Unless you specify a location, this makefile looks in /usr/local
  805. # and if the required files are not found, the build fails.
  806. #
  807. # If the secure headers and libraries are not on your computer, you have
  808. # to download and install them, for example from http://www.openssl.org .
  809. #
  810. # The following symbols are used to specify library and header file locations:
  811. prefix  = /usr/local
  812. srproot = $(prefix)
  813. sslroot = $(prefix)
  814. manroot = $(prefix)
  815.  
  816. K4LIB=-L/usr/kerberos/lib
  817. K4INC=-I/usr/kerberos/include
  818. K5LIB=-L/usr/kerberos/lib
  819. K5INC=-I/usr/kerberos/include
  820. SRPLIB=-L$(srproot)/lib
  821. SRPINC=-I$(srproot)/include
  822. SSLLIB=-L$(sslroot)/ssl/lib
  823. SSLINC=-I$(sslroot)/ssl/include
  824.  
  825. # To override these assignments; for example, if your OpenSSL files are
  826. # not in /usr/local/ssl, invoke the desired target like this:
  827. #  make solaris9+openssl "SSLINC=-I/opt/openssl-0.9.8k/include" \
  828. #   "SSLLIB=-L/opt/openssl-0.9.8k/lib"
  829. #
  830. # (don't set the variables and then do "make -e" because that breaks 
  831. # chaining of makefile targets.)
  832. #
  833. # Here are some up-to-date secure targets as of Sep 2009: 
  834. #
  835. # aix+openssl:                        IBM AIX 4.2 or later with OpenSSL
  836. # freebsd44+srp+openssl               FreeBSD 4.4 with SRP and OpenSSL
  837. # freebsd50+openssl                   FreeBSD 5.0 with OpenSSL
  838. # hpux1100o+openssl:                  HP-UX 11.xx with OpenSSL
  839. # hpux1000gcc+openssl:                HP-UX 10.xx with OpenSSL (build with gcc)
  840. # hpux1100gcc+openssl:                HP-UX 11.xx with OpenSSL (build with gcc)
  841. # irix6x+krb5:                        IRIX 6.x with Kerberos V
  842. # irix65+krb5:                        etc etc...
  843. # solaris9+openssl                    Solaris 9,10, or 11 with Openssl (Sun cc)
  844. # solaris9g+openssl                   Solaris 9,10, or 11 with Openssl (gcc)
  845. # linux+ssl                           OpenSSL only
  846. # linux+krb5+ssl                      Linux with Kerberos 5 and OpenSSL
  847. # linux+krb5:                         Kerberos 5 only
  848. # The following secure Linux targets have not been updated or tested recently.
  849. # linux+krb5+krb4:
  850. # linux+srp:
  851. # linux+srp+pam:
  852. # linux+srp+gmp:
  853. # linux+srp+gmp+no-des:
  854. # linux+srp+gmp-export:
  855. # linux+srp+gmp+pam:
  856. # linux+shadow+pam:
  857. # linux+openssl:
  858. # linux+openssl+shadow:
  859. # linux+openssl+zlib+shadow+pam:
  860. # linux+srp+openssl:
  861. # linux+krb5+krb4+srp:
  862. # linux+krb5+krb4+srp+openssl:
  863. # linux+krb5+krb4+openssl:
  864. # linux+krb5+krb4+openssl+shadow:
  865. # linux+krb5+krb4+openssl+zlib+shadow:
  866. # linux+krb5+krb4+srp-export:
  867. # linux+krb5+krb4+srp+pam:
  868. # linux+krb5+krb4+srp+openssl+pam-debug:
  869. # linux+krb5+krb4+srp+openssl+pam:
  870. # linux+krb5+krb4+srp+openssl+zlib+pam:
  871. # linux+krb5+krb4+openssl+shadow+pam:
  872. # linux+krb5+openssl+zlib+shadow+pam:
  873. # The following have not been tested recently either and might
  874. # need adjustment.
  875. #
  876. # macosx+krb5+ssl:     Mac OS X 10.3.9 or later + OpenSSL and Kerberos 5
  877. # macosx103+secure:    This one is probably redundant
  878. # netbsd+openssl:      NetBSD with OpenSSL
  879. # openbsd30+ssl:       OpenBSD 3.0 with OpenSSL
  880. # redhat71,redhat72,redhat73,redhat80,redhat9 (Krb5,OpenSSL,Showdow,PAM,Zlib)
  881. # sco32v500net+ssl:
  882. # sco32v505net+ssl:
  883. # solaris2x+krb4:
  884. # solaris2xg+krb4:
  885. # solaris2xg+openssl+pam+shadow:
  886. # solaris2xg+openssl+zlib+pam+shadow:
  887. # solaris2xg+krb5+krb4+openssl+shadow:
  888. # solaris25+krb4:
  889. # solaris25g+krb4:
  890. # solaris26g+openssl:
  891. # solaris8g+openssl+zlib+pam+shadow:
  892. # solaris8g+krb4:
  893. # solaris9g+openssl+zlib+pam+shadow:
  894. # solaris9g+openssl+shadow+pam+zlib
  895. # sunos41gcc+krb4:                    SunOS 4.1 built with gcc with Kerberos IV
  896. # sunos41gcc+openssl:                 SunOS 4.1 built with gcc with OpenSSL
  897. # sunos41gcc+krb4+openssl:            ...with Kerberos IV and OpenSSL
  898. # sunos41gcc+krb4+openssl+zlib:       ditto, plus ZLIB compression
  899. # sunos41gcc+krb4+srp+openssl+zlib:   ditto, plus SRP
  900. # sunos41gcc+srp+openssl+zlib:
  901. # tru64-51b-openssl:                  Tru64 (Digital) Unix 5.1B with OpenSSL
  902. # uw7ssl                              Unixware 7 with SSL
  903. #
  904. ###########################################################################
  905. #
  906. #  Compile and Link variables:
  907. #
  908. #  EXT is the extension (file type) for object files, normally o.
  909. #  See MINIX entry for what to do if another filetype must be used.
  910. #
  911. EXT=o
  912. #LNKFLAGS=
  913. SHAREDLIB=
  914. CC= cc
  915. CC2= cc
  916. MAKE= make
  917. SHELL=/bin/sh
  918.  
  919. ###########################################################################
  920. # (Ancient) UNIX V7-specific variables.
  921. # These are set up for Perkin-Elmer 3230 V7 Unix:
  922. #
  923. PROC=proc
  924. DIRECT=
  925. NPROC=nproc
  926. NPTYPE=int
  927. BOOTFILE=/edition7
  928. #
  929. # ( For old Tandy TRS-80 Model 16A or 6000 V7-based Xenix, use PROC=_proc,
  930. #   DIRECT=-DDIRECT, NPROC=_Nproc, NPTYPE=short, BOOTFILE=/xenix )
  931. #
  932.  
  933. ###########################################################################
  934. # SAMPLE INSTALLATION SCRIPT
  935. #
  936. # Modify to suit your own computer's file organization and permissions.  If
  937. # you don't have write access to the destination directories, "make install"
  938. # fails.  In most cases, a real installation also requires you to chown /
  939. # chgrp the Kermit binary for the UUCP lockfile and/or tty devices, and
  940. # perhaps also to chmod +s the corresponding permission fields.
  941. #
  942. # Default binary, man, and doc directories are supplied below.  You can
  943. # override them in your 'make' command.  Examples:
  944. #
  945. #   make install                                   # Accept defaults.
  946. #   make "INFODIR=/usr/share/lib/kermit" install   # Override INFODIR default.
  947. #
  948. # You can also build and install in one step, e.g.:
  949. #
  950. #   make linux install
  951. #
  952. # If you use the 'install' target to install C-Kermit, it creates an
  953. # UNINSTALL script that can be used to uninstall it.
  954. #
  955. WERMIT = makewhat
  956. BINARY = wermit
  957. DESTDIR =
  958. BINDIR = $(prefix)/bin
  959. MANDIR = $(manroot)/man/man1
  960. MANEXT = 1
  961. SRCDIR =
  962. INFODIR =
  963. CERTDIR =
  964.  
  965. TEXTFILES = COPYING.TXT ckcbwr.txt ckubwr.txt ckuins.txt ckccfg.txt \
  966.         ckcplm.txt ckermit.ini ckermod.ini ckermit70.txt ckermit80.txt
  967.  
  968. ALL = $(WERMIT)
  969.  
  970. all: $(ALL)
  971.  
  972. .c.o:
  973.     $(CC) $(CFLAGS) -DKTARGET=\"$(KTARGET)\" -c $<
  974.  
  975. #Clean up intermediate and object files
  976. clean:
  977.     @echo 'Removing object files...'
  978.     -rm -f ckcmai.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) ckuus2.$(EXT) \
  979. ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) ckcpro.$(EXT) ckcfns.$(EXT) \
  980. ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) ckucon.$(EXT) ckutio.$(EXT) \
  981. ckufio.$(EXT) ckudia.$(EXT) ckuscr.$(EXT) ckwart.$(EXT) ckuusx.$(EXT) \
  982. ckuusy.$(EXT) ckcnet.$(EXT) ckuus6.$(EXT) ckuus7.$(EXT) ckusig.$(EXT) \
  983. ckucns.$(EXT) ckcmdb.$(EXT) ckuath.$(EXT) ckctel.$(EXT) ckclib.$(EXT) \
  984. ckcuni.$(EXT) ck_crp.$(EXT) ck_ssl.$(EXT) ckupty.$(EXT) ckcftp.$(EXT) \
  985. ckcpro.c wart
  986.  
  987. show:
  988.     @echo prefix=$(prefix)
  989.     @echo srproot=$(srproot)
  990.     @echo sslroot=$(sslroot)
  991.     @echo manroot=$(manroot)
  992.     @echo K4LIB=$(K4LIB)
  993.     @echo K4INC=$(K4INC)
  994.     @echo K5LIB=$(K5LIB)
  995.     @echo K5INC=$(K5INC)
  996.     @echo SRPLIB=$(SRPLIB)
  997.     @echo SRPINC=$(SRPINC)
  998.     @echo SSLLIB=$(SSLLIB)
  999.     @echo SSLINC=$(SSLINC)
  1000.     @exit
  1001.  
  1002. # Install C-Kermit after building -- IMPORTANT: Read the instructions above
  1003. # (SAMPLE INSTALLATION SCRIPT).  For SSL/TLS versions, ca_certs.pem file
  1004. # should be installed in the appropriate place for your OpenSSL library, e.g.:
  1005. #
  1006. #   cp ca_certs.pem /usr/local/ssl/
  1007. #   cp ca_certs.pem /usr/share/ssl/
  1008. #
  1009. # To make sure 'man' notices the new source file and doesn't keep
  1010. # showing the old formatted version, remove the old formatted version,
  1011. # something like this:
  1012. #        rm -f $(MANDIR)/../cat$(MANEXT)/kermit.$(MANEXT)
  1013. # or this (which requires CATDIR to be defined):
  1014. #        rm -f $(CATDIR)/kermit.$(MANEXT)
  1015. #
  1016. # As of C-Kermit 8.0.205 this target also builds an UNINSTALL script, and
  1017. # so it might be too long for some old Bourne shells, in which case you can
  1018. # use a different shell:
  1019. #
  1020. #   make SHELL=ksh install
  1021. #   make SHELL=/bin/posix/sh install
  1022. #
  1023. install:
  1024.     @echo Installing C-Kermit version $(CKVER)...;\
  1025.     rm -f UNINSTALL;\
  1026.     exec 3>./UNINSTALL;\
  1027.     echo "# C-Kermit UNINSTALL script" >&3;\
  1028.     echo "# `date`\n" >&3;\
  1029.     echo "CKVER=$(CKVER)" >&3;\
  1030.     echo "PrN Uninstalling C-Kermit version $(CKVER)..." >&3;\
  1031.     echo DESTDIR=$(DESTDIR);\
  1032.     if test -n "$(DESTDIR)"; then\
  1033.         if test -d $(DESTDIR); then\
  1034.             echo  "$(DESTDIR) exists...\n";\
  1035.         else\
  1036.             echo "Creating $(DESTDIR)...";\
  1037.             DESTDIR=`echo $(DESTDIR) | sed 's!/*$$!!'`;\
  1038.             mkdir $$DESTDIR  || exit 1;\
  1039.         fi;\
  1040.         chmod 755 $(DESTDIR) || exit 1;\
  1041.     fi;\
  1042.     echo BINARY=$(BINARY);\
  1043.     if test -f $(BINARY); then\
  1044.         ls -l $(BINARY);\
  1045.     else\
  1046.         echo "?$(BINARY) not found";\
  1047.         exit 1;\
  1048.     fi;\
  1049.     if test -z "$(DESTDIR)$(BINDIR)"; then\
  1050.         echo "Binary directory not specified";\
  1051.         exit 1;\
  1052.     fi;\
  1053.     if test -d $(DESTDIR)$(BINDIR); then\
  1054.         echo  "$(DESTDIR)$(BINDIR) exists...";\
  1055.     else\
  1056.         echo "Creating $(DESTDIR)$(BINDIR)/...";\
  1057.         mkdir     $(DESTDIR)$(BINDIR) || exit 1;\
  1058.         chmod 755 $(DESTDIR)$(BINDIR);\
  1059.     fi;\
  1060.     rm -f $(DESTDIR)$(BINDIR)/kermit;\
  1061.     cp $(BINARY) $(DESTDIR)$(BINDIR)/kermit || exit 1;\
  1062.     chmod 755    $(DESTDIR)$(BINDIR)/kermit || exit 1;\
  1063.     rm -f        $(DESTDIR)$(BINDIR)/kermit-sshsub;\
  1064.     ln -s        $(DESTDIR)$(BINDIR)/kermit\
  1065.              $(DESTDIR)$(BINDIR)/kermit-sshsub || exit 1;\
  1066.     echo 'set flag=f\nPrC Removing binaries' >&3;\
  1067.     echo "RmF $(DESTDIR)$(BINDIR)/kermit-sshsub" >&3;\
  1068.     echo "RmF $(DESTDIR)$(BINDIR)/kermit" >&3;\
  1069.     if test -f ckermit.ini; then\
  1070.         echo "#!$(BINDIR)/kermit" >\
  1071.             $(DESTDIR)$(BINDIR)/_tmp.ini;\
  1072.         cat ckermit.ini >> $(DESTDIR)$(BINDIR)/_tmp.ini;\
  1073.         mv $(DESTDIR)$(BINDIR)/_tmp.ini\
  1074.            $(DESTDIR)$(BINDIR)/ckermit.ini;\
  1075.         chmod 755 $(DESTDIR)$(BINDIR)/ckermit.ini;\
  1076.         echo "RmF $(DESTDIR)$(BINDIR)/ckermit.ini" >&3;\
  1077.     fi;\
  1078.     echo;\
  1079.     echo 'EfM' >&3;\
  1080.     echo "Kermit binary installed:";\
  1081.     ls -l $(DESTDIR)$(BINDIR)/kermit\
  1082.           $(DESTDIR)$(BINDIR)/kermit-sshsub\
  1083.           $(DESTDIR)$(BINDIR)/ckermit.ini;\
  1084.     echo;\
  1085.     echo " WARNING: If C-Kermit is to be used for dialing out,";\
  1086.     echo " you must change its owner and group and permissions";\
  1087.     echo " to match the 'cu' program.  See the ckuins.txt file";\
  1088.     echo " for details.";\
  1089.     echo;\
  1090.     echo MANDIR=$(MANDIR);\
  1091.     if test -n "$(DESTDIR)$(MANDIR)"; then\
  1092.         if test -d $(DESTDIR)$(MANDIR); then\
  1093.             echo  "$(DESTDIR)$(MANDIR) exists...";\
  1094.         else\
  1095.             echo "Creating $(MANDIR)...";\
  1096.             mkdir $(MANDIR) || exit 1;\
  1097.             chmod 755 $(MANDIR) || exit 1;\
  1098.         fi;\
  1099.         rm -f $(DESTDIR)$(MANDIR)/kermit.$(MANEXT);\
  1100.         cp ckuker.nr $(DESTDIR)$(MANDIR)/kermit.$(MANEXT) || exit 1;\
  1101.         chmod 644 $(DESTDIR)$(MANDIR)/kermit.$(MANEXT) || exit 1;\
  1102.         echo 'set flag=f\nPrC Removing man pages' >&3;\
  1103.         echo "RmF $(DESTDIR)$(MANDIR)/kermit.$(MANEXT)" >&3;\
  1104.         echo 'EfM' >&3;\
  1105.         echo;\
  1106.     else\
  1107.         echo "Not installing man page!\n";\
  1108.     fi;\
  1109.     echo CERTDIR=$(CERTDIR);\
  1110.     if test -n "$(CERTDIR)"; then\
  1111.         if test -f ca_certs.pem; then\
  1112.             if test -d $(CERTDIR); then\
  1113.                 echo  "$(CERTDIR) exists...";\
  1114.             else\
  1115.                 echo "Creating $(CERTDIR)...";\
  1116.                 mkdir $(CERTDIR) || exit 1;\
  1117.                 chmod 755 $(CERTDIR) || exit 1;\
  1118.             fi;\
  1119.             echo "Installing certificates file...";\
  1120.             cp ca_certs.pem $(CERTDIR) || exit 1;\
  1121.             echo 'set flag=f' >&3;\
  1122.             echo 'PrC Removing certificates file' >&3;\
  1123.             echo "RmF $(CERTDIR)/ca_certs.pem" >&3;\
  1124.             echo 'EfM' >&3;\
  1125.             echo;\
  1126.         fi;\
  1127.     else\
  1128.         echo "Not installing certificates file!\n";\
  1129.     fi;\
  1130.     echo SRCDIR=$(DESTDIR)$(SRCDIR);\
  1131.     if test -n "$(SRCDIR)"; then\
  1132.         echo "Installing source files...";\
  1133.         if test -d $(DESTDIR)$(SRCDIR); then\
  1134.             echo  "$(DESTDIR)$(SRCDIR) exists...";\
  1135.         else\
  1136.             echo "Creating $(DESTDIR)$(SRCDIR)/...";\
  1137.             mkdir     $(DESTDIR)$(SRCDIR) || exit 1;\
  1138.             chmod 755 $(DESTDIR)$(SRCDIR);\
  1139.         fi;\
  1140.         echo "Copying source files to $(DESTDIR)$(SRCDIR)...";\
  1141.         echo 'set flag=f\nPrC Removing source files' >&3;\
  1142.         for TextFile in COPYING.TXT ck[cuw_]*.[cwh] makefile; do\
  1143.             cp $$TextFile $(DESTDIR)$(SRCDIR)/ && echo ".\c";\
  1144.             echo "RmF $(DESTDIR)$(SRCDIR)/$$TextFile" >&3;\
  1145.         done; echo;\
  1146.         echo 'EfM' >&3;\
  1147.         ( cd $(DESTDIR)$(SRCDIR)/ &&\
  1148.         ls -l COPYING.TXT ck[cuw_]*.[cwh] makefile );echo;\
  1149.     else\
  1150.         echo "Not installing source code!\n";\
  1151.     fi;\
  1152.     echo INFODIR=$(DESTDIR)$(INFODIR);\
  1153.     if test -n "$(INFODIR)"; then\
  1154.         echo "Installing info files...";\
  1155.         if test -d $(DESTDIR)$(INFODIR); then\
  1156.             echo  "$(DESTDIR)$(INFODIR) exists...";\
  1157.         else\
  1158.             echo "Creating $(DESTDIR)$(INFODIR)/...";\
  1159.             mkdir     $(DESTDIR)$(INFODIR) || exit 1;\
  1160.             chmod 755 $(DESTDIR)$(INFODIR);\
  1161.         fi;\
  1162.         echo "Copying text files to $(DESTDIR)$(INFODIR)...";\
  1163.         echo 'set flag=f\nPrC Removing text files' >&3;\
  1164.         FileCopyList='';\
  1165.         for TextFile in $(TEXTFILES); do\
  1166.             test -f $$TextFile || continue;\
  1167.             cp $$TextFile $(DESTDIR)$(INFODIR) && echo ".\c" &&\
  1168.             FileCopyList="$$FileCopyList $$TextFile";\
  1169.             echo "RmF $(DESTDIR)$(INFODIR)/$$TextFile" >&3;\
  1170.         done; echo;\
  1171.         echo 'EfM' >&3;\
  1172.         ( cd $(DESTDIR)$(INFODIR)/ && chmod  644   $$FileCopyList );\
  1173.         ( cd $(DESTDIR)$(INFODIR)/ && pwd && ls -l $$FileCopyList );\
  1174.     else\
  1175.         echo "Not installing text files!\n";\
  1176.     fi;\
  1177.     echo "set flag=d\nPrN Removing empty dirs..." >&3;\
  1178.     echo "RmD $(DESTDIR)$(BINDIR)" >&3;\
  1179.     echo "RmD $(DESTDIR)$(SRCDIR)" >&3;\
  1180.     echo "RmD $(DESTDIR)$(INFODIR)" >&3;\
  1181.     echo "RmD $(CERTDIR)" >&3;\
  1182.     echo "RmD $(MANDIR)" >&3;\
  1183.     echo "RmD $(DESTDIR)" >&3;\
  1184.     echo "EfM" >&3;\
  1185.     echo "PrN C-Kermit version $(CKVER) is uninstalled!" >&3;\
  1186.     echo C-Kermit version $(CKVER) installed!
  1187.  
  1188. # UN-Install C-Kermit after building
  1189. # Please to not remove the extra blanks before and after '{}' within the
  1190. # functions. You would get syntax errors for some older Bourne shells! Best is 
  1191. # you don't change or remove anything.
  1192. #
  1193. uninstall:
  1194.     @if test ! -f UNINSTALL; then\
  1195.         echo "?C-Kermit UNINSTALL data file not found!";\
  1196.         exit 1;\
  1197.     fi; \
  1198.     X=`grep '^CKVER='$(CKVER)'$$' ./UNINSTALL || :`;\
  1199.     if test -z "$$X"; then\
  1200.         echo "?UNINSTALL file is not for C-Kermit version $(CKVER)";\
  1201.         exit 2;\
  1202.     fi;\
  1203.     PrN () { echo "$$*"; };\
  1204.     PrC () { echo "$$* \c"; };\
  1205.     RmF () { test -f "$$1" && rm -f "$$1" && echo ".\c" && flag=F ; };\
  1206.     RmD () { \
  1207.     dir=$$1;\
  1208.     while test -d "$$dir"; do\
  1209.         rmdir "$$dir" 2>&- || return && echo "$$dir" && flag=D;\
  1210.         dir=`echo "$$dir" | sed 's!/[^/]*/*$$!!'`;\
  1211.     done; \
  1212.     };\
  1213.     EfM () { \
  1214.     case "$$flag" in\
  1215.         f) echo "- Nothing to remove!";;\
  1216.         d) echo "Nothing to remove!";;\
  1217.         F) echo " done";;\
  1218.         D) echo "done";;\
  1219.     esac; \
  1220.     };\
  1221.     while read Act Args; do\
  1222.         case $$Act in\
  1223.             EfM) EfM;;\
  1224.             RmD) RmD $$Args;;\
  1225.             RmF) RmF $$Args;;\
  1226.             PrN) PrN $$Args;;\
  1227.             PrC) PrC $$Args;;\
  1228.             set) eval $$Args;;\
  1229.         esac;\
  1230.     done < ./UNINSTALL
  1231.  
  1232. makewhat:
  1233.     @echo 'make what?  You must tell which platform to make C-Kermit for.'
  1234.     @echo Examples: make linux, make aix, make solaris10, make hpux1100.
  1235.     @echo Please read the comments at the beginning of the makefile.
  1236.  
  1237. ###########################################################################
  1238. #
  1239. # Dependencies Section:
  1240.  
  1241. wermit:    ckcmai.$(EXT) ckclib.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) ckuus2.$(EXT) \
  1242.         ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) ckuus6.$(EXT) \
  1243.         ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) ckcpro.$(EXT) \
  1244.         ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) \
  1245.         ckucon.$(EXT) ckutio.$(EXT) ckufio.$(EXT) ckudia.$(EXT) \
  1246.         ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) \
  1247.         ckcuni.$(EXT) ckupty.$(EXT) ckcftp.$(EXT)
  1248.     $(CC2) $(LNKFLAGS) -o wermit \
  1249.         ckcmai.$(EXT) ckclib.$(EXT) ckutio.$(EXT) ckufio.$(EXT) \
  1250.         ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) \
  1251.         ckcpro.$(EXT) ckucmd.$(EXT) ckuus2.$(EXT) ckuus3.$(EXT) \
  1252.         ckuus4.$(EXT) ckuus5.$(EXT) ckuus6.$(EXT) ckuus7.$(EXT) \
  1253.         ckuusx.$(EXT) ckuusy.$(EXT) ckuusr.$(EXT) ckucon.$(EXT) \
  1254.         ckudia.$(EXT) ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) \
  1255.         ckusig.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) ckcftp.$(EXT) \
  1256.         $(LIBS)
  1257.  
  1258. # Preferred configuration with select()-based CONNECT
  1259.  
  1260. xermit:    ckcmai.$(EXT) ckclib.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) ckuus2.$(EXT) \
  1261.         ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) ckuus6.$(EXT) \
  1262.         ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) ckcpro.$(EXT) \
  1263.         ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) \
  1264.         ckucns.$(EXT) ckutio.$(EXT) ckufio.$(EXT) ckudia.$(EXT) \
  1265.         ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) \
  1266.         ckcuni.$(EXT) ckupty.$(EXT) ckcftp.$(EXT) ckuath.$(EXT) \
  1267.         ck_crp.$(EXT) ck_ssl.$(EXT)
  1268.     $(CC2) $(LNKFLAGS) -o wermit \
  1269.         ckcmai.$(EXT) ckclib.$(EXT) ckutio.$(EXT) ckufio.$(EXT) \
  1270.         ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) \
  1271.         ckcpro.$(EXT) ckucmd.$(EXT) ckuus2.$(EXT) ckuus3.$(EXT) \
  1272.         ckuus4.$(EXT) ckuus5.$(EXT) ckuus6.$(EXT) ckuus7.$(EXT) \
  1273.         ckuusx.$(EXT) ckuusy.$(EXT) ckuusr.$(EXT) ckucns.$(EXT) \
  1274.         ckudia.$(EXT) ckuscr.$(EXT) ckcnet.$(EXT) ckusig.$(EXT) \
  1275.         ckctel.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) ckcftp.$(EXT) \
  1276.         ckuath.$(EXT) ck_crp.$(EXT) ck_ssl.$(EXT) $(LIBS)
  1277.  
  1278. # Malloc Debugging version
  1279.  
  1280. mermit:    ckcmdb.$(EXT) ckcmai.$(EXT) ckclib.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) \
  1281.         ckuus2.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) \
  1282.         ckuus6.$(EXT) ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) \
  1283.         ckcpro.$(EXT) ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) \
  1284.         ckuxla.$(EXT) ckucon.$(EXT) ckutio.$(EXT) ckufio.$(EXT) \
  1285.         ckudia.$(EXT) ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) \
  1286.         ckusig.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) ckcftp.$(EXT)
  1287.     $(CC2) $(LNKFLAGS) -o mermit ckcmdb.$(EXT) ckclib.$(EXT) ckcmai.$(EXT)\
  1288.         ckutio.$(EXT) ckufio.$(EXT) ckcfns.$(EXT) ckcfn2.$(EXT) \
  1289.         ckcfn3.$(EXT) ckuxla.$(EXT) ckcpro.$(EXT) ckucmd.$(EXT) \
  1290.         ckuus2.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) \
  1291.         ckuus6.$(EXT) ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) \
  1292.         ckuusr.$(EXT) ckucon.$(EXT) ckudia.$(EXT) ckuscr.$(EXT) \
  1293.         ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) ckcuni.$(EXT) \
  1294.         ckupty.$(EXT) ckcftp.$(EXT) $(LIBS)
  1295.  
  1296. # Kerberized Version - Subject to USA export restrictions.
  1297.  
  1298. # NOTE: We don't use this any more -- As of 15 Feb 2003, the "xermit"
  1299. # target is used for both secure and regular version.
  1300.  
  1301. krbmit:    ckcmai.$(EXT) ckclib.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) ckuus2.$(EXT) \
  1302.         ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) ckuus6.$(EXT) \
  1303.         ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) ckcpro.$(EXT) \
  1304.         ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) \
  1305.         ckucns.$(EXT) ckutio.$(EXT) ckufio.$(EXT) ckudia.$(EXT) \
  1306.         ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) \
  1307.         ckuath.$(EXT) ck_crp.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) \
  1308.         ckcftp.$(EXT) ck_ssl.$(EXT)
  1309.     $(CC2) $(LNKFLAGS) -o krbmit ckcmai.$(EXT) ckclib.$(EXT) \
  1310.         ckutio.$(EXT) ckufio.$(EXT) ckcfns.$(EXT) ckcfn2.$(EXT) \
  1311.         ckcfn3.$(EXT) ckuxla.$(EXT) ckcpro.$(EXT) ckucmd.$(EXT) \
  1312.         ckuus2.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) \
  1313.         ckuus6.$(EXT) ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) \
  1314.         ckuusr.$(EXT) ckucns.$(EXT) ckudia.$(EXT) ckuscr.$(EXT) \
  1315.         ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) ckuath.$(EXT) \
  1316.         ck_crp.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) ckcftp.$(EXT) \
  1317.         ck_ssl.$(EXT) $(LIBS)
  1318.  
  1319. krbmit-debug:    ckcmai.$(EXT) ckclib.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) \
  1320.         ckuus2.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) \
  1321.         ckuus6.$(EXT) ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) \
  1322.         ckcpro.$(EXT) ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) \
  1323.         ckuxla.$(EXT) ckucns.$(EXT) ckutio.$(EXT) ckufio.$(EXT) \
  1324.         ckudia.$(EXT) ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) \
  1325.         ckusig.$(EXT) ckuath.$(EXT) ck_crp.$(EXT) ckcuni.$(EXT) \
  1326.         ckupty.$(EXT) ck_ssl.$(EXT) ckcmdb.$(EXT) ckcftp.$(EXT)
  1327.     $(CC2) $(LNKFLAGS) -o krbmit ckcmdb.$(EXT) ckcmai.$(EXT) \
  1328.         ckclib.$(EXT) ckutio.$(EXT) ckufio.$(EXT) ckcfns.$(EXT) \
  1329.         ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) ckcpro.$(EXT) \
  1330.         ckucmd.$(EXT) ckuus2.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) \
  1331.         ckuus5.$(EXT) ckuus6.$(EXT) ckuus7.$(EXT) ckuusx.$(EXT) \
  1332.         ckuusy.$(EXT) ckuusr.$(EXT) ckucns.$(EXT) ckudia.$(EXT) \
  1333.         ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) \
  1334.         ckuath.$(EXT) ck_crp.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) \
  1335.         ckcftp.$(EXT) ck_ssl.$(EXT) $(LIBS)
  1336.  
  1337. # SRP(TM) Version - Subject to USA export restrictions.
  1338.  
  1339. srpmit:    ckcmai.$(EXT) ckclib.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) ckuus2.$(EXT) \
  1340.         ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) ckuus6.$(EXT) \
  1341.         ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) ckcpro.$(EXT) \
  1342.         ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) \
  1343.         ckucns.$(EXT) ckutio.$(EXT) ckufio.$(EXT) ckudia.$(EXT) \
  1344.         ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) \
  1345.         ckuath.$(EXT) ck_crp.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) \
  1346.         ckcftp.$(EXT) ck_ssl.$(EXT)
  1347.     $(CC2) $(LNKFLAGS) -o srpmit ckcmai.$(EXT) ckclib.$(EXT) \
  1348.         ckutio.$(EXT) ckufio.$(EXT) ckcfns.$(EXT) ckcfn2.$(EXT) \
  1349.         ckcfn3.$(EXT) ckuxla.$(EXT) ckcpro.$(EXT) ckucmd.$(EXT) \
  1350.         ckuus2.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) \
  1351.         ckuus6.$(EXT) ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) \
  1352.         ckuusr.$(EXT) ckucns.$(EXT) ckudia.$(EXT) ckuscr.$(EXT) \
  1353.         ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) ckuath.$(EXT) \
  1354.         ck_crp.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) ck_ssl.$(EXT) \
  1355.         ckcftp.$(EXT) $(LIBS)
  1356.  
  1357. # Kerberized Version - Not subject to USA export restrictions.
  1358.  
  1359. krbmit-export:    ckcmai.$(EXT) \
  1360.         ckclib.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) ckuus2.$(EXT) \
  1361.         ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) ckuus6.$(EXT) \
  1362.         ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) ckcpro.$(EXT) \
  1363.         ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) \
  1364.         ckucns.$(EXT) ckutio.$(EXT) ckufio.$(EXT) ckudia.$(EXT) \
  1365.         ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) \
  1366.         ckuath.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) ckcftp.$(EXT)
  1367.     $(CC2) $(LNKFLAGS) -o krbmit-export ckcmai.$(EXT) ckclib.$(EXT) \
  1368.         ckutio.$(EXT) ckufio.$(EXT) ckcfns.$(EXT) ckcfn2.$(EXT) \
  1369.         ckcfn3.$(EXT) ckuxla.$(EXT) ckcpro.$(EXT) ckucmd.$(EXT) \
  1370.         ckuus2.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) \
  1371.         ckuus6.$(EXT) ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) \
  1372.         ckuusr.$(EXT) ckucns.$(EXT) ckudia.$(EXT) ckuscr.$(EXT) \
  1373.         ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) ckuath.$(EXT) \
  1374.         ckcuni.$(EXT) ckupty.$(EXT) ckcftp.$(EXT) $(LIBS)
  1375.  
  1376. # SRP(TM) Version - Not subject to USA export restrictions.
  1377.  
  1378. srpmit-export:    ckcmai.$(EXT) \
  1379.         ckclib.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) ckuus2.$(EXT) \
  1380.         ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) ckuus6.$(EXT) \
  1381.         ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) ckcpro.$(EXT) \
  1382.         ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) \
  1383.         ckucns.$(EXT) ckutio.$(EXT) ckufio.$(EXT) ckudia.$(EXT) \
  1384.         ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) \
  1385.         ckuath.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) ckcftp.$(EXT)
  1386.     $(CC2) $(LNKFLAGS) -o srpmit-export ckcmai.$(EXT) ckclib.$(EXT) \
  1387.         ckutio.$(EXT) ckufio.$(EXT) ckcfns.$(EXT) ckcfn2.$(EXT) \
  1388.         ckcfn3.$(EXT) ckuxla.$(EXT) ckcpro.$(EXT) ckucmd.$(EXT) \
  1389.         ckuus2.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) \
  1390.         ckuus6.$(EXT) ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) \
  1391.         ckuusr.$(EXT) ckucns.$(EXT) ckudia.$(EXT) ckuscr.$(EXT) \
  1392.         ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) ckuath.$(EXT) \
  1393.         ckcuni.$(EXT) ckupty.$(EXT) ckcftp.$(EXT) $(LIBS)
  1394.  
  1395. ###########################################################################
  1396. # man page...
  1397. #
  1398. ckuker.nr:
  1399.     @echo This target is obsolete.
  1400.     @echo The ckuker.nr file no longer needs any preprocessing.
  1401.  
  1402. ###########################################################################
  1403. # Dependencies for each module...
  1404. #
  1405. ckcmai.$(EXT): ckcmai.c ckcker.h ckcdeb.h ckcsym.h ckcasc.h ckcnet.h ckcsig.h \
  1406.         ckuusr.h ckctel.h ckclib.h
  1407.  
  1408. ckclib.$(EXT): ckclib.c ckclib.h ckcdeb.h ckcasc.h ckcsym.h
  1409.  
  1410. ckcpro.$(EXT): ckcpro.c ckcker.h ckcdeb.h ckcsym.h ckcasc.h ckclib.h
  1411.  
  1412. ckcpro.c: ckcpro.w wart ckcdeb.h ckcsym.h ckcasc.h ckcker.h ckcnet.h ckctel.h \
  1413.      ckclib.h
  1414.     ./wart ckcpro.w ckcpro.c
  1415.  
  1416. ckcfns.$(EXT): ckcfns.c ckcker.h ckcdeb.h ckcsym.h ckcasc.h ckcxla.h ckcuni.h \
  1417.         ckuxla.h ckclib.h ckcnet.h
  1418.  
  1419. ckcfn2.$(EXT): ckcfn2.c ckcker.h ckcdeb.h ckcsym.h ckcasc.h ckcxla.h \
  1420.         ckuxla.h ckctel.h ckclib.h ckcnet.h ckcuni.h
  1421.  
  1422. ckcfn3.$(EXT): ckcfn3.c ckcker.h ckcdeb.h ckcsym.h ckcasc.h ckcxla.h \
  1423.         ckuxla.h ckclib.h ckcuni.h
  1424.  
  1425. ckuxla.$(EXT): ckuxla.c ckcker.h ckcsym.h ckcdeb.h ckcxla.h ckuxla.h ckclib.h \
  1426.          ckcuni.h
  1427.  
  1428. ckcuni.$(EXT): ckcuni.c ckcdeb.h ckcker.h ckucmd.h ckcuni.h ckcxla.h ckuxla.h
  1429.  
  1430. ckuusr.$(EXT): ckuusr.c ckucmd.h ckcker.h ckuusr.h ckcsym.h ckcdeb.h ckcxla.h \
  1431.         ckuxla.h ckcasc.h ckcnet.h ckctel.h ckclib.h ckcuni.h
  1432.  
  1433. ckuus2.$(EXT): ckuus2.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcxla.h ckuxla.h \
  1434.         ckcasc.h ckcnet.h ckcsym.h ckctel.h ckclib.h ckcuni.h
  1435.  
  1436. ckuus3.$(EXT): ckuus3.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcxla.h ckuxla.h \
  1437.         ckcasc.h ckcnet.h ckcsym.h ckctel.h ckclib.h ckcuni.h
  1438.  
  1439. ckuus4.$(EXT): ckuus4.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcxla.h ckuxla.h \
  1440.         ckcasc.h ckcnet.h ckuver.h ckcsym.h ckctel.h ckclib.h ckcuni.h
  1441.  
  1442. ckuus5.$(EXT): ckuus5.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcasc.h ckcnet.h \
  1443.          ckcsym.h ckctel.h ckclib.h ckcxla.h ckuxla.h ckcuni.h
  1444.  
  1445. ckuus6.$(EXT): ckuus6.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcasc.h ckcnet.h \
  1446.          ckcsym.h ckctel.h ckclib.h
  1447.  
  1448. ckuus7.$(EXT): ckuus7.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcxla.h ckuxla.h \
  1449.         ckcasc.h ckcnet.h ckcsym.h ckctel.h ckclib.h ckcuni.h
  1450.  
  1451. ckuusx.$(EXT): ckuusx.c ckcker.h ckuusr.h ckcdeb.h ckcasc.h ckcsym.h \
  1452.         ckcsig.h ckcnet.h ckctel.h ckclib.h ckcxla.h ckuxla.h ckcuni.h
  1453.  
  1454. ckuusy.$(EXT): ckuusy.c ckcker.h ckcdeb.h ckcasc.h ckcnet.h ckcsym.h ckctel.h \
  1455.          ckclib.h
  1456.  
  1457. ckucmd.$(EXT): ckucmd.c ckcasc.h ckucmd.h ckcdeb.h ckcsym.h ckctel.h ckclib.h
  1458.  
  1459. ckufio.$(EXT): ckufio.c ckcdeb.h ckuver.h ckcsym.h ckclib.h \
  1460.         ckcxla.h ckuxla.h ckcuni.h
  1461.  
  1462. ckutio.$(EXT): ckutio.c ckcdeb.h ckcnet.h ckuver.h ckcsym.h ckctel.h ckclib.h
  1463.  
  1464. ckucon.$(EXT): ckucon.c ckcker.h ckcdeb.h ckcasc.h ckcnet.h ckcsym.h ckctel.h \
  1465.          ckclib.h
  1466.  
  1467. ckucns.$(EXT): ckucns.c ckcker.h ckcdeb.h ckcasc.h ckcnet.h ckcsym.h ckctel.h \
  1468.          ckclib.h ckcxla.h ckuxla.h ckcuni.h
  1469.  
  1470. ckcnet.$(EXT): ckcnet.c ckcdeb.h ckcker.h ckcnet.h ckcsym.h ckcsig.h ckctel.h \
  1471.          ckclib.h
  1472.  
  1473. ckctel.$(EXT): ckcsym.h ckcdeb.h ckcker.h ckcnet.h ckctel.h ckclib.h
  1474.  
  1475. # ck_off_t: ck_off_t.$(EXT)
  1476. #    $(CC) -o ck_off_t ck_off_t.$(EXT)
  1477.  
  1478. wart: ckwart.$(EXT)
  1479.     $(CC) $(LNKFLAGS) -o wart ckwart.$(EXT) $(LIBS)
  1480.  
  1481. ckcmdb.$(EXT): ckcmdb.c ckcdeb.h ckcsym.h ckclib.h
  1482.  
  1483. ckwart.$(EXT): ckwart.c
  1484.  
  1485. ckudia.$(EXT): ckudia.c ckcker.h ckcdeb.h ckucmd.h ckcasc.h ckcsym.h ckcsig.h \
  1486.         ckcnet.h ckctel.h ckclib.h
  1487.  
  1488. ckuscr.$(EXT): ckuscr.c ckcker.h ckcdeb.h ckcasc.h ckcsym.h ckcsig.h \
  1489.         ckcnet.h ckctel.h ckclib.h
  1490.  
  1491. ckusig.$(EXT): ckusig.c ckcasc.h ckcdeb.h ckcker.h ckcnet.h ckuusr.h \
  1492.         ckcsig.h ckctel.h ckclib.h
  1493.  
  1494. ckcftp.$(EXT): ckcftp.c ckcdeb.h ckcasc.h ckcker.h ckucmd.h ckuusr.h \
  1495.         ckcnet.h ckctel.h ckcxla.h ckuxla.h ckcuni.h
  1496.  
  1497. ckupty.$(EXT): ckupty.c ckupty.h ckcdeb.h
  1498.  
  1499. ckuath.$(EXT): ckuath.c ckcdeb.h ckucmd.h ckuath.h ckuat2.h ckctel.h \
  1500.          ckclib.h ckcnet.h
  1501.  
  1502. ck_crp.$(EXT): ck_crp.c ckcdeb.h ckcnet.h ckuath.h ckclib.h
  1503.  
  1504. ck_ssl.$(EXT): ck_ssl.c ckcdeb.h ckucmd.h ckuath.h ckuat2.h ckctel.h \
  1505.          ckclib.h ck_ssl.h
  1506.  
  1507. ###########################################################################
  1508. #
  1509. # Entries to make C-Kermit for specific systems.
  1510. #
  1511. # Put the ones that need short makefiles first.
  1512.  
  1513. #Apollo Aegis 9.x.  Includes TCP/IP support.
  1514. #You can also add processor-dependent optimization switches like -M570.
  1515. aegis:
  1516.     @echo Making C-Kermit $(CKVER) for Apollo Aegis 9.x...
  1517.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  1518.     "CFLAGS= -DBSD4 -DTCPSOCKET -DNOCSETS -DCK_CURSES -O $(KFLAGS)" \
  1519.     "LIBS = -lcurses -ltermcap"
  1520.  
  1521. #Apple Mac II, A/UX pre-3.0
  1522. #Warning, if "send *" doesn't work, try the auxufs makefile entry below.
  1523. aux:
  1524.     @echo Making C-Kermit $(CKVER) for Macintosh A/UX...
  1525.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  1526.     "CFLAGS = -DAUX -DTCPSOCKET $(KFLAGS) -i -O" "LNKFLAGS = -i"
  1527.  
  1528. #Apple Mac II, A/UX pre-3.0, compiled with gcc
  1529. auxgcc:
  1530.     @echo Making C-Kermit $(CKVER) for Macintosh A/UX...
  1531.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  1532.     "CFLAGS = -DAUX -DTCPSOCKET -traditional $(KFLAGS) -i -O" \
  1533.     "LNKFLAGS = " "CC = gcc" "CC2 = gcc"
  1534.  
  1535. #Apple Mac II, A/UX, pre-3.0, but with ufs file volumes, uses <dirent.h>.
  1536. auxufs:
  1537.     @echo Making C-Kermit $(CKVER) for Macintosh A/UX...
  1538.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  1539.     "CFLAGS = -DAUX -DTCPSOCKET -DDIRENT $(KFLAGS) -i -O" "LNKFLAGS = -i"
  1540.  
  1541. #Apple Mac II, A/UX 3.0, compiled with gcc
  1542. aux3gcc:
  1543.     @echo Making C-Kermit $(CKVER) for Macintosh A/UX 3.0...
  1544.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  1545.     "CFLAGS = -DAUX -DHDBUUCP -DLFDEVNO -DTCPSOCKET -DDIRENT $(KFLAGS)" \
  1546.     "LNKFLAGS = -s" "LIBS = $(LIBS)" \
  1547.     "CC=gcc -pipe -traditional" "CC2=gcc -pipe -traditional"
  1548.  
  1549. #Apple Mac II, A/UX 3.0, compiled with gcc, uses curses
  1550. aux3cgcc:
  1551.     @echo Making C-Kermit $(CKVER) for Macintosh A/UX 3.0...
  1552.     $(MAKE) "MAKE=$(MAKE)" CC=$(CC) CC2=$(CC2) aux3gcc \
  1553.     KTARGET=$${KTARGET:-$(@)} \
  1554.     "KFLAGS=$(KFLAGS) -DCK_CURSES" "LIBS = -lcurses $(LIBS)"
  1555.  
  1556. # Tenon MachTen, tested on Apple Powerbook with MachTen 2.1.1.D.
  1557. # NOTE: This doesn't do anything about UUCP.  It only works if /usr/spool/uucp
  1558. # has permission of 777, and dialout device is world read/writeable.
  1559. machten:
  1560.     @echo Making C-Kermit $(CKVER) for MachTen...
  1561.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1562.     "CFLAGS= -DBSD43 -DTCPSOCKET -DSIG_V -DNDGPWNAM -DCK_CURSES -O \
  1563.     $(KFLAGS)"  "LIBS=-lcurses -ltermcap"
  1564.  
  1565. #Bell Labs Research UNIX V10
  1566. #Can't add TCP/IP because there is no sockets library.  It would have to
  1567. #be done using streams, but there is no code in C-Kermit for that.
  1568. #Remove -DNOJC if desired (if your system has csh, ksh, or bash).
  1569. bellv10:
  1570.     @echo Making C-Kermit $(CKVER) for Bell Labs Research UNIX V10...
  1571.     $(MAKE) wermit KTARGET=$${KTARGET-$(@)} \
  1572.     "CFLAGS= -DBELLV10 -DBSD4 -DNDIR -DNOJC -DNOSYSIOCTLH -DNOSETREU \
  1573.     -DNOCSETS -MINIDIAL $(KFLAGS)"
  1574.  
  1575. # WARNING: The early BSD entries do not build in version 7.0 with the stock
  1576. # BSD compiler: "Too many defines".  Unless you can rebuild cpp to have more
  1577. # space for defines, these builds must be accomplished by:
  1578. # copying the /usr/include tree to someplace else, preprocessing there with cc
  1579. # -E -I./include or whatever (plus all the same -D's, adding any necessary
  1580. # -U/-D to override the architecture)), renaming the the resulting files back
  1581. # to their original names, bringing them back to the original BSD system, and
  1582. # running the make target there.  This technique was used for 4.2 and 4.3 BSD
  1583. # on a VAX in C-Kermit 7.0 (later, cpp on that machine was rebuilt to allow
  1584. # more symbols, so the C-Kermit 8.0 build proceeds normally).
  1585.  
  1586. #Berkeley Unix 4.1
  1587. bsd41:
  1588.     @echo Making C-Kermit $(CKVER) for 4.1BSD...
  1589.     $(MAKE) wermit KTARGET=$${KTARGET-$(@)} \
  1590.     "CFLAGS= -DBSD41" "LIBS = -ljobs"
  1591.  
  1592. #Berkeley 4.2, 4.3, also Ultrix-32 1.x, 2.x, 3.x, many others
  1593. # Add -O, -s, etc, if they work.
  1594. # If you have a version of BSD but signal() is void rather than int,
  1595. # "make bsd KFLAGS=-DSIG_V".
  1596. bsd42:
  1597.     @echo Making C-Kermit $(CKVER) for 4.2BSD...
  1598.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  1599.     "CFLAGS= -DBSD4 -DTCPSOCKET -DNOREALPATH -DNOTIMEH -DNOIKSD \
  1600.     -DCK_CURSES -DSYSTIMEBH -DNOPUTENV -DNOANSI -DBIGBUFOK -DBSD42HACK \
  1601.     $(KFLAGS)" "LIBS=-lcurses -ltermcap $(LIBS)"
  1602.  
  1603. bsd:
  1604.     $(MAKE) CC=$(CC) CC2=$(CC2) bsd42 KTARGET=$${KTARGET-$(@)}
  1605.  
  1606. #Berkeley Unix 4.2 or 4.3 with HoneyDanBer UUCP
  1607. bsdhdb:
  1608.     @echo Making C-Kermit $(CKVER) for 4.2BSD with HDB UUCP...
  1609.     $(MAKE) CC=$(CC) CC2=$(CC2) bsd KTARGET=$${KTARGET-$(@)} \
  1610.     "KFLAGS= -DHDBUUCP $(KFLAGS)"
  1611.  
  1612. #Berkeley Unix 4.3 with acucntrl program, curses, TCP/IP included.
  1613. bsd43:
  1614.     @echo Making C-Kermit $(CKVER) for 4.3BSD...
  1615.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  1616.     "CFLAGS= -DBSD4 -DBSD43 -DTCPSOCKET -DNOREALPATH -DNOTIMEH -DNOIKSD \
  1617.     -DCK_CURSES -DACUCNTRL -DSYSTIMEBH -DNOPUTENV -DNOANSI -DBIGBUFOK \
  1618.     -DBSD42HACK $(KFLAGS)" "LIBS=-lcurses -ltermcap $(LIBS)"
  1619.  
  1620. #4.3BSD, curses excluded
  1621. bsd43nc:
  1622.     @echo Making C-Kermit $(CKVER) for 4.3BSD...
  1623.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  1624.     "CFLAGS= -DBSD4 -DBSD43 -DTCPSOCKET -DNOREALPATH -DNOTIMEH \
  1625.     -DACUCNTRL -DSYSTIMEBH -DNOIKSD -DNOPUTENV -DNOANSI -DBIGBUFOK \
  1626.     -DBSD42HACK $(KFLAGS)" "LIBS=$(LIBS)"
  1627.  
  1628. #4.3BSD, TCP/IP excluded.
  1629. bsd43nonet:
  1630.     @echo Making C-Kermit $(CKVER) for 4.3BSD + curses...
  1631.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  1632.     "CFLAGS= -DBSD4 -DBSD43 -DTCPSOCKET -DNOREALPATH -DNOTIMEH -DNOIKSD \
  1633.     -DCK_CURSES -DACUCNTRL -DSYSTIMEBH -DNOPUTENV -DNOANSI -DBIGBUFOK \
  1634.     -DBSD42HACK -DNONET $(KFLAGS)" "LIBS=-lcurses -ltermcap $(LIBS)"
  1635.  
  1636. #Berkeley Unix 4.2 or 4.3 with lock directory /usr/spool/uucp/LCK/LCK..ttyxx,
  1637. #but without acucntrl program
  1638. bsdlck:
  1639.     @echo Making C-Kermit $(CKVER) for 4.2BSD, /usr/spool/uucp/LCK/...
  1640.     $(MAKE) CC=$(CC) CC2=$(CC2) bsd KTARGET=$${KTARGET-$(@)} \
  1641.     "KFLAGS= -DLCKDIR $(KFLAGS)"
  1642.  
  1643. #Berkeley UNIX 4.4-Lite, 4.4-Encumbered, Net/2, etc (Post-Reno),
  1644. #with TCP/IP networking.  This was the basis for FreeBSD, NetBSD, OpenBSD,
  1645. #BSDI, BSD/OS, and Mac OS X (each of which has its own set of targets that
  1646. #are newer than this one).
  1647. #
  1648. #NOTE: This is not a pure POSIX configuration.  Using -DPOSIX instead of
  1649. # -DBSD44 prevents any kind of directory-reading (for wildcard expansion),
  1650. #and disallows use of ENOTCONN symbol for detecting broken network
  1651. #connections, and disallows RTS/CTS flow control, and would also require
  1652. #definition of the appropriate UUCP lockfile convention.
  1653. #Do not add -DCK_POSIX_SIG without reading <signal.h> first!  For example,
  1654. #sigsetjmp(), etc, tend to be defined but not implemented.
  1655. #
  1656. #NOTE: originally crypt was in libc - later it was unbundled.
  1657. #Remove the LIBS clause to build on an early 4.4BSD platform.
  1658. #
  1659. bsd44:
  1660.     @echo Making C-Kermit $(CKVER) for 4.4BSD...
  1661.     $(MAKE) CC=$(CC) CC2=$(CC2) xermit KTARGET=$${KTARGET:-$(@)} \
  1662.     "CFLAGS= -DBSD44 -DTCPSOCKET $(KFLAGS) -O" "LIBS=-lcrypt"
  1663.  
  1664. #Berkeley UNIX 4.4, as above, but with curses for fullscreen display
  1665. #Please read notes for bsd44 entry just above.
  1666. # NOTE: This one dumped core on the real 4.4BSD development system at
  1667. # UC Berkeley (an HP-9000/300), so the no-curses version was used
  1668. # for that one, which was unplugged years ago.
  1669. bsd44c:
  1670.     @echo Making C-Kermit $(CKVER) for 4.4BSD with curses...
  1671.     $(MAKE) CC=$(CC) CC2=$(CC2) xermit KTARGET=$${KTARGET:-$(@)} \
  1672.     "CFLAGS= -DBSD44 -DCK_CURSES -DTCPSOCKET $(KFLAGS) -O" \
  1673.     "LIBS= -lcurses -ltermcap -lcrypt $(LIBS)"
  1674.  
  1675. #For FreeBSD 1.x.
  1676. freebsd1:
  1677.     @echo 'Making C-Kermit $(CKVER) for FreeBSD...'
  1678.     $(MAKE) CC=$(CC) CC2=$(CC2) xermit KTARGET=$${KTARGET:-$(@)} \
  1679.     "CFLAGS= -DBSD44 -DCK_CURSES -DTCPSOCKET -DNOCOTFMC -funsigned-char \
  1680.     -DFNFLOAT -DNOHTERMCAP -DNOREALPATH -DNOSYSCONF $(KFLAGS) -O -pipe" \
  1681.     "LIBS= -lcurses -ltermcap -lm $(LIBS)"
  1682.  
  1683. #FreeBSD 2.x with ncurses
  1684. freebsd2:
  1685.     @echo 'Making C-Kermit $(CKVER) for FreeBSD 2.x with ncurses...'
  1686.     $(MAKE) CC=$(CC) CC2=$(CC2) xermit KTARGET=$${KTARGET:-$(@)} \
  1687.     "CFLAGS= -DBSD44 -DCK_NCURSES -DTCPSOCKET -DNOCOTFMC -DUSE_STRERROR \
  1688.     -DTPUTSARGTYPE=int -DTPUTSARG1CONST -DFREEBSD2 -funsigned-char \
  1689.     -DFNFLOAT $(KFLAGS) -O -pipe" \
  1690.     "LIBS= -lncurses -ltermlib -lcrypt -lm $(LIBS)"
  1691.  
  1692. #For FreeBSD 2.x -- Uses curses rather than ncurses
  1693. freebsd2c:
  1694.     @echo 'Making C-Kermit $(CKVER) for FreeBSD 2.x with curses...'
  1695.     $(MAKE) CC=$(CC) CC2=$(CC2) xermit KTARGET=$${KTARGET:-$(@)} \
  1696.     "CFLAGS= -DBSD44 -DCK_CURSES -DTCPSOCKET -DNOCOTFMC -DUSE_STRERROR \
  1697.     -DTPUTSARGTYPE=int -DTPUTSARG1CONST -DFREEBSD2 -DFNFLOAT \
  1698.     -funsigned-char $(KFLAGS) -O -pipe" \
  1699.     "LIBS= -lcurses -ltermlib -lcrypt -lm $(LIBS)"
  1700.  
  1701. #FreeBSD 3.x with ncurses and uu_lock()
  1702. #(Note: uu_lock() goes back to 2.2.2, but not necessarily 2.0)
  1703. freebsd3:
  1704.     @echo 'Making C-Kermit $(CKVER) for FreeBSD 3.x with ncurses...'
  1705.     $(MAKE) CC=$(CC) CC2=$(CC2) xermit KTARGET=$${KTARGET:-$(@)} \
  1706.     "CFLAGS= -DBSD44 -DCK_NCURSES -DTCPSOCKET -DNOCOTFMC -funsigned-char \
  1707.     -DTPUTSARGTYPE=int -DUSE_STRERROR -DFREEBSD3 -DUSE_UU_LOCK -DFNFLOAT \
  1708.     $(KFLAGS) -O -pipe" \
  1709.     "LIBS= -lncurses -lcrypt -lutil -lm $(LIBS)"
  1710.  
  1711. #As above but with curses rather than ncurses.
  1712. freebsd3c:
  1713.     @echo 'Making C-Kermit $(CKVER) for FreeBSD 3.x with curses...'
  1714.     $(MAKE) CC=$(CC) CC2=$(CC2) xermit KTARGET=$${KTARGET:-$(@)} \
  1715.     "CFLAGS= -DBSD44 -DCK_CURSES -DTCPSOCKET -DNOCOTFMC -DUSE_UU_LOCK \
  1716.     -DTPUTSARGTYPE=int -DUSE_STRERROR -DFREEBSD3 $(KFLAGS) -DFNFLOAT \
  1717.     -funsigned-char -pipe -O" \
  1718.     "LIBS= -lcurses -lcrypt -lutil -lm $(LIBS)"
  1719.  
  1720. #FreeBSD 4.0 with ncurses and uu_lock().  Note - there is no curses in 4.0.
  1721. #ncurses 5.0 is broken requiring us to work around with setbuf().
  1722. freebsd40:
  1723.     @echo 'Making C-Kermit $(CKVER) for FreeBSD 4.x with ncurses...'
  1724.     $(MAKE) CC=$(CC) CC2=$(CC2) xermit KTARGET=$${KTARGET:-$(@)} \
  1725.     "CFLAGS= -DBSD44 -DCK_NCURSES -DTCPSOCKET -DNOCOTFMC -DFNFLOAT \
  1726.     -funsigned-char -DTPUTSARGTYPE=int -DUSE_STRERROR -DFREEBSD4 \
  1727.     -DNONOSETBUF -DUSE_UU_LOCK $(KFLAGS) -O -pipe" \
  1728.     "LIBS= -lncurses -lcrypt -lutil -lm $(LIBS)"
  1729.  
  1730. #FreeBSD 4.1 and above
  1731. #Like FreeBSD 4.0 but without the NONOSETBUF hack and with CK_NEWTERM.
  1732. #OK 2011/06/15 FreeBSD 3.3, 4,4, 4.7, and 8.2
  1733. freebsd freebsd41 freebsd72:
  1734.     @echo 'Making C-Kermit $(CKVER) for FreeBSD 4.1 or later...'
  1735.     $(MAKE) CC=$(CC) CC2=$(CC2) xermit KTARGET=$${KTARGET:-$(@)} \
  1736.     "CFLAGS= -DBSD44 -DCK_NCURSES -DCK_NEWTERM -DTCPSOCKET -DNOCOTFMC \
  1737.     -DFREEBSD4 -DUSE_UU_LOCK -DFNFLOAT \
  1738.     -DHERALD=\"\\\" `uname` `uname -r`\\\"\" \
  1739.     -funsigned-char -DTPUTSARGTYPE=int -DUSE_STRERROR $(KFLAGS) -O -pipe" \
  1740.     "LIBS= -lncurses -lcrypt -lutil -lm $(LIBS)"
  1741.  
  1742. #FreeBSD 5.0 or later with OpenSSL 0.9.7 or later.
  1743. #OK 2011/06/15 FreeBSD 4.7 and 8.2
  1744. freebsd+ssl freebsd+openssl freebsd50+openssl:
  1745.     @echo 'Making C-Kermit $(CKVER) for FreeBSD 5.0, ncurses, openssl'
  1746.     $(MAKE) CC=$(CC) CC2=$(CC2) xermit KTARGET=$${KTARGET:-$(@)} \
  1747.     "CFLAGS= -DBSD44 -DCK_NCURSES -DCK_NEWTERM -DTCPSOCKET -DNOCOTFMC \
  1748.     -DCK_AUTHENTICATION -DCK_SSL $(SSLINC) -DZLIB \
  1749.     -DFREEBSD4 -DUSE_UU_LOCK -DFNFLOAT -funsigned-char -DTPUTSARGTYPE=int \
  1750.     -DFREEBSD41 -DFREEBSD42 -DFREEBSD43 -DFREEBSD44 -DFREEBSD45 \
  1751.     -DFREEBSD46 -DFREEBSD50 -DUSE_STRERROR $(KFLAGS) -O -pipe" \
  1752.     "LIBS= -lncurses -lcrypt -lssl -lcrypto -lutil -lm $(SSLLIB) $(LIBS)"
  1753.  
  1754. #NetBSD 1.4.1 or later with vanity banner automated with uname
  1755. #and automatic inclusion of large file support if it is available.
  1756. #This target tested successfully on NetBSD 1.4.1, 1.5.2, and 2.0.3 (Jan 2006).
  1757. #Fails on NetBSD 2.0 on Sun/3 mc68030 with gcc 3.3.3 unless optimization is
  1758. #disabled on ckcfn2.c ("KFLAGS=-O0") (Letter O Digit Zero).
  1759. #(This could be automated by testing `uname -m` for "sun3".)
  1760. #OK: 2011/06/15 on NetBSD 1.5.2 and 5.1.
  1761. netbsd netbsd2 netbsd15 netbsd16 old-netbsd:
  1762.     @echo Making C-Kermit $(CKVER) for NetBSD with curses...
  1763.     $(MAKE) CC=$(CC) CC2=$(CC2) xermit KTARGET=$${KTARGET:-$(@)} \
  1764.     "CFLAGS=`grep fseeko /usr/include/stdio.h > /dev/null && \
  1765.     echo '-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'` \
  1766.     -DBSD44 -DCK_CURSES -DTCPSOCKET -DUSE_STRERROR -DHAVE_OPENPTY \
  1767.     -funsigned-char -DHERALD=\"\\\" NetBSD `uname -r`\\\"\" \
  1768.     -DCK_DTRCD -DCK_DTRCTS -DTPUTSARGTYPE=int -DFNFLOAT $(KFLAGS) -O" \
  1769.     "LIBS= -lcurses -lcrypt -lm -lutil $(LIBS)"
  1770.  
  1771. #NetBSD 1.4.1 or later with OpenSSL
  1772. #OK: 2011/06/15 on NetBSD 5.1 (but not 1.5.2 with OpenSSL 0.9.5a)
  1773. netbsd+ssl netbsd+openssl:
  1774.     @echo 'Making C-Kermit $(CKVER) for NetBSD+OpenSSL SSLLIB=$(SSLLIB)'
  1775.     @case `openssl version` in \
  1776.       *0.9.7*) OPENSSLOPTION="-DOPENSSL_097" ;; \
  1777.       *0.9.8*) OPENSSLOPTION="-DOPENSSL_098" ;; \
  1778.       *1.[0-9].[0-9]*) OPENSSLOPTION="-DOPENSSL_100" ;; \
  1779.       *) OPENSSLOPTION="" ;; \
  1780.     esac; \
  1781.     HAVE_DES=''; \
  1782.     DES_LIB=''; \
  1783.     if ls /usr/lib/libdes* > /dev/null 2> /dev/null || \
  1784.        ls $(SSLLIB)/libdes* > /dev/null 2> /dev/null; then \
  1785.           DES_LIB='-ldes'; \
  1786.           HAVE_DES='-DCK_DES -DLIBDES'; \
  1787.               echo "HAVE DES"; \
  1788.            else echo "NO DES"; \
  1789.     fi; \
  1790.     $(MAKE) netbsd KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  1791.     "KFLAGS= -DCK_AUTHENTICATION -DCK_ENCRYPTION -DCK_CAST $$HAVE_DES \
  1792.     -DCK_SSL -DCK_PAM -DZLIB -DNO_DCL_INET_ATON $$OPENSSLOPTION \
  1793.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  1794.     "LIBS= -L/usr/pkg/lib -R/usr/pkg/lib -lssl $$DES_LIB -lcurses \
  1795.     -lcrypto -lcrypt -lz -lm -lpam -lutil $(LIBS)"
  1796.  
  1797. #NetBSD with MIT Kerberos 5:
  1798. # OK 2011/06/15 (once K5INC and K5LIB were set right).
  1799. # NOT OK for Heimdal - Heimdal Kerberos support in C-Kermit needs work.
  1800. netbsd+krb5:
  1801.     @echo 'Making C-Kermit $(CKVER) for NetBSD with Kerberos 5...'
  1802.     @echo 'Making C-Kermit $(CKVER) for NetBSD+OpenSSL+Kerberos5...'
  1803.     @case `openssl version` in \
  1804.       *0.9.7*) OPENSSLOPTION="-DOPENSSL_097" ;; \
  1805.       *0.9.8*) OPENSSLOPTION="-DOPENSSL_098" ;; \
  1806.       *1.[0-9].[0-9]*) OPENSSLOPTION="-DOPENSSL_100" ;; \
  1807.       *) OPENSSLOPTION="" ;; \
  1808.     esac; \
  1809.     HAVE_DES=''; \
  1810.     DES_LIB=''; \
  1811.     if ls /usr/lib/libdes* > /dev/null 2> /dev/null || \
  1812.        ls $(SSLLIB)/libdes* > /dev/null 2> /dev/null; then \
  1813.           DES_LIB='-ldes'; \
  1814.           HAVE_DES='-DCK_DES -DLIBDES'; \
  1815.               echo "HAVE DES"; \
  1816.            else echo "NO DES"; \
  1817.     fi; \
  1818.     $(MAKE) netbsd KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  1819.     "KFLAGS= -DCK_AUTHENTICATION -DCK_ENCRYPTION -DCK_KERBEROS -DKRB5 \
  1820.     -DCK_CAST $$HAVE_DES -DNOFTP_GSSAPI $(K5INC) $(K5INC)/krb5 \
  1821.     $(KFLAGS)" \
  1822.     "LIBS= $(K5LIB) -L/usr/pkg/lib -R/usr/pkg/lib -lcurses $$DES_LIB \
  1823.     -lcrypto -lgssapi -lkrb5 -lm -lutil $(LIBS)"
  1824.  
  1825. # NetBSD - With Kerberos 5 and SSL and Zlib.
  1826. # OK 2011/06/15
  1827. netbsd+krb5+ssl netbsd+krb5+openssl+zlib:
  1828.     @echo 'Making C-Kermit $(CKVER) for NetBSD+OpenSSL+Kerberos5...'
  1829.     @case `openssl version` in \
  1830.       *0.9.7*) OPENSSLOPTION="-DOPENSSL_097" ;; \
  1831.       *0.9.8*) OPENSSLOPTION="-DOPENSSL_098" ;; \
  1832.       *1.[0-9].[0-9]*) OPENSSLOPTION="-DOPENSSL_100" ;; \
  1833.       *) OPENSSLOPTION="" ;; \
  1834.     esac; \
  1835.     HAVE_DES=''; \
  1836.     DES_LIB=''; \
  1837.     if ls /usr/lib/libdes* > /dev/null 2> /dev/null || \
  1838.        ls $(SSLLIB)/libdes* > /dev/null 2> /dev/null; then \
  1839.           DES_LIB='-ldes'; \
  1840.           HAVE_DES='-DCK_DES -DLIBDES'; \
  1841.               echo "HAVE DES"; \
  1842.            else echo "NO DES"; \
  1843.     fi; \
  1844.     $(MAKE) netbsd KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  1845.     "KFLAGS= -DCK_AUTHENTICATION -DCK_ENCRYPTION -DCK_CAST $$HAVE_DES \
  1846.     -DCK_KERBEROS -DKRB5 -DNOFTP_GSSAPI $(K5INC) $(K5INC)/krb5 \
  1847.     -DCK_SSL -DCK_PAM -DZLIB -DNO_DCL_INET_ATON $$OPENSSLOPTION \
  1848.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  1849.     "LIBS= $(K5LIB) -L/usr/pkg/lib -R/usr/pkg/lib -lssl $$DES_LIB \
  1850.     -lcrypto -lcrypt -lgssapi -lkrb5 -lz -lm -lpam -lutil -lcurses $(LIBS)"
  1851.  
  1852. #Special Security Enhanced NetBSD target with SRP, SSL, and zlib support.
  1853. #To build this, you need to BUILD the pkgsrc srp_client package.  After
  1854. #you build it, you must go into work/srp-x.y.z/libkrypto and "bmake install"
  1855. #then go to work/srp-x.y.z/libsrp and "bmake install".  As of 2005Q3, the
  1856. #pkgsrc install only installed the statically linked client applications.  You
  1857. #need to manually install the libraries to build your own applications.
  1858. #NOT TESTED RECENTLY - probably needs work.
  1859. netbsd+ssl+srp+zlib:
  1860.     @echo Making C-Kermit $(CKVER) for NetBSD with curses...
  1861.     $(MAKE) CC=$(CC) CC2=$(CC2) xermit KTARGET=$${KTARGET:-$(@)} \
  1862.     "CFLAGS= -DBSD44 -DCK_CURSES -DTCPSOCKET -DUSE_STRERROR -DNETBSD15 \
  1863.     -DCK_DTRCD -DCK_DTRCTS -DTPUTSARGTYPE=int -DHAVE_OPENPTY \
  1864.     -I/usr/include/openssl -I/usr/pkg/include \
  1865.     -DCK_AUTHENTICATION -DCK_SRP -DPRE_SRP_1_4_5 -DCK_ENCRYPTION \
  1866.     -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL -DZLIB -DFNFLOAT $(KFLAGS) -O" \
  1867.     "LIBS= -L/usr/pkg/lib -R/usr/pkg/lib -lcurses -lsrp -lgmp -ldes \
  1868.     -lssl -lkrypto -lcrypto -lcrypt -lz -lm -lutil $(LIBS)"
  1869.  
  1870. #NetBSD with curses left out (e.g. for use as IKSD).
  1871. netbsdnc:
  1872.     @echo Making C-Kermit $(CKVER) for NetBSD with no curses...
  1873.     $(MAKE) CC=$(CC) CC2=$(CC2) netbsd KTARGET=$${KTARGET:-$(@)} \
  1874.     "KFLAGS=-DNOCURSES"
  1875.  
  1876. #NetBSD with ncurses requested explicitly rather than curses-which-is-ncurses
  1877. netbsdn:
  1878.     @echo Making C-Kermit $(CKVER) for NetBSD with curses...
  1879.     $(MAKE) CC=$(CC) CC2=$(CC2) xermit KTARGET=$${KTARGET:-$(@)} \
  1880.     "CFLAGS=`grep fseeko /usr/include/stdio.h > /dev/null && \
  1881.     echo '-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'` \
  1882.     -DBSD44 -DCK_CURSES -DTCPSOCKET -DUSE_STRERROR -DHAVE_OPENPTY \
  1883.     -DHERALD=\"\\\" NetBSD `uname -r`\\\"\" \
  1884.     -DCK_DTRCD -DCK_DTRCTS -DTPUTSARGTYPE=int -DFNFLOAT $(KFLAGS) -O" \
  1885.     "LIBS= -L/usr/pkg/lib -lncurses -lcrypt -lm -lutil $(LIBS)"
  1886.  
  1887. #OpenBSD before 2.3.
  1888. #Uses ncurses as its curses so use -ltermlib, not -ltermcap
  1889. #But it doesn't use uu_lock() which was introduced in OpenBSD 2.3.
  1890. #For that use the next entry.
  1891. #Add -DMAINTYPE=int if you get complaints about main: return type is not int.
  1892. openbsdold:
  1893.     @echo Making C-Kermit $(CKVER) for OpenBSD...
  1894.     $(MAKE) CC=$(CC) CC2=$(CC2) xermit KTARGET=$${KTARGET:-$(@)} \
  1895.     "CFLAGS= -DBSD44 -DCK_CURSES -DCK_NEWTERM -DTCPSOCKET -DOPENBSD \
  1896.     -DFNFLOAT -DNDSYSERRLIST $(KFLAGS) -O" "LIBS= -lcurses -ltermlib -lm"
  1897.  
  1898. #OpenBSD 2.3 or later
  1899. #Add -DMAINTYPE=int if you get complaints about main: return type is not int.
  1900. #For C-Kermit 8.0 (Christian Weisgerber):
  1901. # -ltermlib removed (presumably because -lcurses==ncurses already includes it)
  1902. # -DUSE_UU_LOCK and -lutil added for uu_lock()
  1903. # -DNDSYSERRLIST changed to -DUSE_STRERROR
  1904. #If this gives you trouble use the previous entry.
  1905. openbsd:
  1906.     @echo Making C-Kermit $(CKVER) for OpenBSD 2.3 or later...
  1907.     $(MAKE) CC=$(CC) CC2=$(CC2) xermit KTARGET=$${KTARGET:-$(@)} \
  1908.     "CFLAGS= -DBSD44 -DCK_CURSES -DCK_NEWTERM -DTCPSOCKET -DOPENBSD \
  1909.     -DHERALD=\"\\\" OpenBSD `uname -r`\\\"\" \
  1910.     -DUSE_UU_LOCK -DFNFLOAT -DUSE_STRERROR $(KFLAGS) -O" \
  1911.     "LIBS= -lcurses -lutil -lm"
  1912.  
  1913. #Better to chain to the openbsd target but...
  1914. mirbsd:
  1915.     @echo Making C-Kermit $(CKVER) for OpenBSD 2.3 or later...
  1916.     $(MAKE) CC=$(CC) CC2=$(CC2) xermit KTARGET=$${KTARGET:-$(@)} \
  1917.     "CFLAGS= -DBSD44 -DCK_CURSES -DCK_NEWTERM -DTCPSOCKET -DOPENBSD \
  1918.     -DHERALD=\"\\\" MirBSD `uname -r`\\\"\" \
  1919.     -DUSE_UU_LOCK -DFNFLOAT -DUSE_STRERROR $(KFLAGS) -O" \
  1920.     "LIBS= -lcurses -lutil -lm"
  1921.  
  1922. #OpenBSD 3.0 or later includes OpenSSL
  1923. #Add -DMAINTYPE=int if you get complaints about main: return type is not int.
  1924. #For C-Kermit 8.0 (Christian Weisgerber):
  1925. # -ltermlib removed (presumably because -lcurses==ncurses already includes it)
  1926. # -DUSE_UU_LOCK and -lutil added for uu_lock()
  1927. # -DNDSYSERRLIST changed to -DUSE_STRERROR
  1928. #If this gives you trouble use the previous entry.
  1929. openbsd+ssl:
  1930.     @echo Making C-Kermit $(CKVER) for OpenBSD 3.0 or later...
  1931.     $(MAKE) CC=$(CC) CC2=$(CC2) xermit KTARGET=$${KTARGET:-$(@)} \
  1932.     "CFLAGS= -DBSD44 -DCK_CURSES -DCK_NEWTERM -DTCPSOCKET -DOPENBSD \
  1933.     -DHERALD=\"\\\" OpenBSD `uname -r`\\\"\" \
  1934.     -DUSE_UU_LOCK -DFNFLOAT -DUSE_STRERROR -DCK_AUTHENTICATION \
  1935.     -DCK_SSL $(KFLAGS) -O" \
  1936.     "LIBS= -lcurses -lutil -lm -lssl -lcrypto"
  1937.  
  1938. mirbsd+ssl:
  1939.     @echo Making C-Kermit $(CKVER) for OpenBSD 3.0 or later...
  1940.     $(MAKE) CC=$(CC) CC2=$(CC2) xermit KTARGET=$${KTARGET:-$(@)} \
  1941.     "CFLAGS= -DBSD44 -DCK_CURSES -DCK_NEWTERM -DTCPSOCKET -DOPENBSD \
  1942.     -DHERALD=\"\\\" MirBSD `uname -r`\\\"\" \
  1943.     -DUSE_UU_LOCK -DFNFLOAT -DUSE_STRERROR -DCK_AUTHENTICATION \
  1944.     -DCK_SSL -DNO_DCL_INET_ATON $(KFLAGS) -O" \
  1945.     "LIBS= -lcurses -lutil -lm -lssl -lcrypto"
  1946.  
  1947. # make 386bsd 0.0new, posix
  1948. # for  386bsd 0.1.24, change /usr/include/termios.h to #define NCCS if
  1949. #  _POSIX_SOURCE is #defined. (source: lewine, posix prgmrs guide, o`reilly)
  1950. #NOTE: Lock directory is /var/spool/lock.  Formerly, it was /var/spool/uucp,
  1951. #but reportedly <wjones@halcyon.com> that was due to a typo in 'man tip'.
  1952. 386bsd:
  1953.     @echo 'Making C-Kermit $(CKVER) for jolix 386BSD 0.0new and 0.1.24...'
  1954.     $(MAKE) CC=$(CC) CC2=$(CC2) xermit KTARGET=$${KTARGET:-$(@)} \
  1955.     "CFLAGS= -DPOSIX -DSETREUID -DPIDSTRING -DUSLEEP \
  1956.     -D_386BSD -DCK_CURSES -DTCPSOCKET \
  1957.     -DLOCK_DIR=\\\"/var/spool/lock\\\" \
  1958.     $(KFLAGS) -O" "LNKFLAGS = -s" "LIBS = -lcurses -ltermcap"
  1959.  
  1960. # Mac OS X 10 early versions.
  1961. # For 10.3.9 and later, use the macosx target below.
  1962.  
  1963. #Mac OS X 1.0 (Rhapsody, Darwin) -- TCP/IP but no curses.
  1964. oldmacosx10:
  1965.     @echo Making C-Kermit $(CKVER) for `uname -s`...
  1966.     $(MAKE) CC=$(CC) CC2=$(CC2) xermit KTARGET=$${KTARGET:-$(@)} \
  1967.     "CFLAGS= -DMACOSX10 -DTCPSOCKET -DUSE_STRERROR -O $(KFLAGS)"
  1968.  
  1969. #Mac OS X 1.0 (Rhapsody, Darwin) -- TCP/IP and curses.
  1970. #Note: curses must be obtained separately.  See next entry for ncurses.
  1971. #Add "LIBS = -lcurses -ltermcap" if necessary (but reportedly it is not).
  1972. oldmacosx10c:
  1973.     @echo Making C-Kermit $(CKVER) for `uname -s` + curses...
  1974.     $(MAKE) CC=$(CC) CC2=$(CC2) xermit KTARGET=$${KTARGET:-$(@)} \
  1975.     "CFLAGS= -DMACOSX10 -DCK_CURSES -DTPUTSFNTYPE=void -DTPUTSISVOID \
  1976.     -DTCPSOCKET -DUSE_STRERROR -O $(KFLAGS)"
  1977.  
  1978. #Mac OS X 1.0 (Rhapsody, Darwin) -- TCP/IP and ncurses.
  1979. #Note: ncurses must be obtained separately.
  1980. #In the event of trouble with this one try the next one.
  1981. oldmacosx10nc:
  1982.     @echo Making C-Kermit $(CKVER) for `uname -s` + ncurses...
  1983.     $(MAKE) CC=$(CC) CC2=$(CC2) xermit KTARGET=$${KTARGET:-$(@)} \
  1984.     "CFLAGS= -DMACOSX10 -DCK_NCURSES -DTCPSOCKET -DUSE_STRERROR -O \
  1985.     $(KFLAGS)" "LIBS= -lncurses $(LIBS)"
  1986.  
  1987. #Mac OS X 10.2 (Jaguar) ncurses.
  1988. oldmacosx102nc:
  1989.     @echo Making C-Kermit $(CKVER) for `uname -s` + ncurses...
  1990.     $(MAKE) CC=$(CC) CC2=$(CC2) xermit KTARGET=$${KTARGET:-$(@)} \
  1991.     "CFLAGS= -DMACOSX10 -DCK_NCURSES -DTCPSOCKET -DUSE_STRERROR -O \
  1992.     $(KFLAGS) " "LIBS= -lncurses $(LIBS)"
  1993.  
  1994. #The problem here is that if curses.h also exists, it conflicts with
  1995. #ncurses.h and and we have fatal errors.  If this happens to you, then
  1996. #try this target.
  1997. oldmacosx10ncx:
  1998.     @echo Making C-Kermit $(CKVER) for `uname -s` + ncurses...
  1999.     @rm -f ./curses.h; touch ./curses.h
  2000.     $(MAKE) CC=$(CC) CC2=$(CC2) xermit KTARGET=$${KTARGET:-$(@)} \
  2001.     "CFLAGS= -DMACOSX10 -DCK_NCURSES -DTCPSOCKET -DUSE_STRERROR \
  2002.     -I. -O $(KFLAGS) " \
  2003.     "LIBS= -lncurses $(LIBS)"
  2004.     @rm -f ./curses.h
  2005.  
  2006. #Mac OS X 10.3 (Panther) - Assumes ncurses is installed.
  2007. oldmacosx103: 
  2008.     @echo Making C-Kermit $(CKVER) for `uname -s` + ncurses...
  2009.     $(MAKE) CC=$(CC) CC2=$(CC2) xermit KTARGET=$${KTARGET:-$(@)} \
  2010.     "CFLAGS= -DMACOSX10 -DMACOSX103 -DCK_NCURSES -DTCPSOCKET -DCKHTTP \
  2011.     -DUSE_STRERROR -DUSE_NAMESER_COMPAT -O \
  2012.     $(KFLAGS) " "LIBS= -lncurses -lresolv $(LIBS)"
  2013.  
  2014. #Mac OS X 10.3 (Panther) with Kerberos 5 and SSL, assumes ncurses is installed.
  2015. oldmacosx103+secure:
  2016.     @echo Making Secure C-Kermit $(CKVER) for `uname -s` + ncurses...
  2017.     $(MAKE) CC=$(CC) CC2=$(CC2) xermit KTARGET=$${KTARGET:-$(@)} \
  2018.     "CFLAGS= -DMACOSX10 -DMACOSX103 -DCK_NCURSES -DTCPSOCKET \
  2019.     -DUSE_STRERROR -DUSE_NAMESER_COMPAT -O -DCK_PAM \
  2020.     -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 -DZLIB \
  2021.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL \
  2022.     $(KFLAGS) " "LIBS= -lssl -lcrypto -lkrb5 -lcom_err \
  2023.     -lk5crypto -lgssapi_krb5 -lpam -lncurses -lresolv $(LIBS)"
  2024.  
  2025. # THIS IS THE MAIN MAC OS X TARGET (the next one is for Kerberos/SSL builds).
  2026. # Use this target for 10.3.9 (or maybe earlier) through 10.6 (maybe later)
  2027. # on both Power and Intel architectures.  This one uses utmp.h on 10.4 and
  2028. # earlier and utmpx.h on 10.5 onwards.
  2029. # Note: Mac OS X 10.5 and earlier are 32-bit; 10.6 and later 64-bit.
  2030. # Note 2: As of C-Kermit 9.0 -NOUUCP is included by default because
  2031. # Mac OS X doesn't support UUCP.  To undo this, use KFLAGS=-UNOUUCP.
  2032. #OK: 2011/06/14 (for 10.4.11, 10.5.8, 10.6.7)
  2033. macosx macosx10 macosx10.3.9 macosx10.4 macosx10.5 macosx10.6:
  2034.     @MACOSNAME=`/usr/bin/sw_vers -productName`; \
  2035.     MACOSV=`/usr/bin/sw_vers -productVersion`; \
  2036.     echo Making C-Kermit $(CKVER) for $$MACOSNAME $$MACOSV... ; \
  2037.     MACCPU=$$HOSTTYPE; \
  2038.     if test `uname -r | cut -d . -f 1` -gt 8; \
  2039.     then if test -f /usr/include/utmpx.h ; \
  2040.     then HAVE_UTMPX='-DHAVEUTMPX -D_UTMPX_COMPAT' ; \
  2041.     else HAVE_UTMPX='' ; fi ; fi; \
  2042.     $(MAKE) CC=$(CC) CC2=$(CC2) xermit KTARGET=$${KTARGET:-$(@)} \
  2043.     "CFLAGS= -DMACOSX10 -DMACOSX103 -DCK_NCURSES -DTCPSOCKET -DCKHTTP \
  2044.     -DUSE_STRERROR -DUSE_NAMESER_COMPAT -DNOCHECKOVERFLOW -DFNFLOAT \
  2045.     -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 $$HAVE_UTMPX \
  2046.     -funsigned-char -DNODCLINITGROUPS \
  2047.     -DNOUUCP -O -DHERALD=\"\\\" $${MACOSNAME} $${MACOSV}\\\"\" \
  2048.     -DCKCPU=\"\\\"$${MACCPU}\\\"\" \
  2049.     $(KFLAGS)" "LIBS= -lncurses -lresolv $(LIBS)"
  2050.  
  2051. # Mac OS X 10.3.9 or later with Kerberos 5 and OpenSSL...
  2052. # NOTE: Apple has removed all support for DES in OpenSSL and Kerberos
  2053. #   in Mac OS X 10.6 and later.  The DES flags are included or left out
  2054. #   automatically based on the Mac OS X version number.
  2055. # See note about UUCP in previous target.
  2056. #OK: 2009/11/16 (for 10.3.9, 10.4.11, 10.5.8, 10.6.1)
  2057. #OK: 2011/06/14 (for 10.4.11, 10.5.8, 10.6.7)
  2058. macosx+krb5+ssl macosx10.5+krb5+ssl macosx10.6+krb5+ssl \
  2059. macosx+krb5+openssl macosx10.5+krb5+openssl macosx10.6+krb5+openssl:
  2060.     @MACOSNAME=`/usr/bin/sw_vers -productName`; \
  2061.     MACOSV=`/usr/bin/sw_vers -productVersion`; \
  2062.     echo Making C-Kermit $(CKVER) for $$MACOSNAME $$MACOSV... ; \
  2063.     MACCPU=$$HOSTTYPE; \
  2064.     if test `uname -r | cut -d . -f 1` -gt 8; \
  2065.     then if test -f /usr/include/utmpx.h ; \
  2066.     then HAVE_UTMPX='-DHAVEUTMPX -D_UTMPX_COMPAT' ; \
  2067.     else HAVE_UTMPX='' ; fi ; fi; \
  2068.     if test `uname -r | cut -d . -f 1` -eq 7; \
  2069.     then IS_MACOSX103='-DMACOSX103' ; \
  2070.     else IS_MACOSX103='' ; fi; \
  2071.     case $$MACOSV in \
  2072.       10.[012345].*) HAVE_DES='-DCK_DES -DLIBDES' ;; \
  2073.       *.*) HAVE_DES='' ;; \
  2074.     esac ; \
  2075.     if test -x /usr/bin/krb5-config ; \
  2076.     then HAVE_KRB5CONFIG=`/usr/bin/krb5-config --libs krb5 gssapi` ; \
  2077.     else HAVE_KRB5CONFIG='-lgssapi_krb5 -lkrb5 -lk5crypto \
  2078.     -lcom_err -lresolv' ; fi; \
  2079.     $(MAKE) CC=$(CC) CC2=$(CC2) xermit KTARGET=$${KTARGET:-$(@)} \
  2080.     "CFLAGS= -DMACOSX10 $$IS_MACOSX103 -DCK_NCURSES -DTCPSOCKET \
  2081.     -DUSE_STRERROR -DUSE_NAMESER_COMPAT -DNOCHECKOVERFLOW -DFNFLOAT \
  2082.     -DCKHTTP -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 $$HAVE_UTMPX \
  2083.     -DNODCLINITGROUPS -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 -DZLIB \
  2084.     -DCK_ENCRYPTION -DCK_CAST -DCK_SSL -DOPENSSL_098 $$HAVE_DES \
  2085.     -DNOUUCP -DHERALD=\"\\\" $${MACOSNAME} $${MACOSV}\\\"\" \
  2086.     -DCKCPU=\"\\\"$${MACCPU}\\\"\" \
  2087.     -funsigned-char -O $(KFLAGS)" \
  2088.     "LIBS= $$HAVE_KRB5CONFIG -lssl -lcrypto -lpam -lncurses $(LIBS)"
  2089.  
  2090. # End of Mac OS X Section
  2091.  
  2092. #Acorn RISCiX, based on ...
  2093. #Berkeley Unix 4.2 or 4.3 with lock directory /usr/spool/uucp/LCK/LCK..ttyxx,
  2094. #but without acucntrl program
  2095. riscix:
  2096.     @echo Making C-Kermit $(CKVER) for RISCiX, /usr/spool/uucp/LCK..ttyxx
  2097.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  2098.         "CFLAGS= -DBSD42 -DBSD4 -DRISCIX -DNOCSETS \
  2099.         -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DDIRENT -DCK_CURSES \
  2100.         -DMAXSP=9024 -DMAXRD=9024 -DSBSIZ=9050 -DRBSIZ=9050 \
  2101.         -DDFTTY=\\\"/dev/serial\\\" -DNOCSETS -DNOCYRIL \
  2102.         -DNOANSI -w -O2 -fomit-frame-pointer" \
  2103.         "LIBS= -lcurses -ltermcap " \
  2104.         "CC= /usr/ucb/cc" \
  2105.         "CC2= /usr/ucb/cc"
  2106.  
  2107. #Acorn RISCiX, as above, but using gcc
  2108. riscix-gcc:
  2109.     @echo Making C-Kermit $(CKVER) for RISCiX, /usr/spool/uucp/LCK..ttyxx
  2110.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  2111.         "CFLAGS= -DBSD42 -DBSD4 -DRISCIX -DNOCSETS \
  2112.         -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DDIRENT -DCK_CURSES \
  2113.         -DMAXSP=9024 -DMAXRD=9024 -DSBSIZ=9050 -DRBSIZ=9050 \
  2114.         -DDFTTY=\\\"/dev/serial\\\" -DNOCSETS -DNOCYRIL \
  2115.         -DNOANSI -w -O2 -fomit-frame-pointer" \
  2116.         "LIBS= -lcurses -ltermcap " \
  2117.         "CC= gcc -mbsd" \
  2118.         "CC2= gcc -mbsd"
  2119.  
  2120. #Convergent CTIX 6.4.1
  2121. ctix:
  2122.     @echo 'Making C-Kermit $(CKVER) for Convergent CTIX 6.4.1'
  2123.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  2124.     "CFLAGS= -DSVR3 -DDIRENT -DTCPSOCKET -DHDBUUCP -DCK_CURSES \
  2125.     -DNONAWS -DNOLEARN -DNOLONGLONG $(KFLAGS) -XO" \
  2126.     "LNKFLAGS=-s" "LIBS=-lsocket -lcurses -lc_s"
  2127.     mcs -d wermit
  2128.  
  2129. # The following makefile entry should work for any Harris Night Hawk system
  2130. # (either 88k or 68k based) running release 6.1 or later of the CX/UX
  2131. # operating system. This is a POSIX and ANSI-C compliant system which also
  2132. # supports BSD networking. (Earlier CX/UX releases will probably work with
  2133. # sys5r3, but this has not been verified).
  2134. #
  2135. cx_ux:
  2136.     @echo Making C-Kermit $(CKVER) for Harris Night Hawk CX/UX 6.1 or later
  2137.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  2138.     "CFLAGS=-DPOSIX -DTCPSOCKET -DHDBUUCP -DPID_T=pid_t -DWAIT_T=int \
  2139.     -Dd_ino=d_fileno -DUID_T=uid_t -DGID_T=gid_t -DNOLONGLONG \
  2140.     $(KFLAGS) -Xa -O3 -g" "LNKFLAGS=-O3"
  2141.  
  2142. #Intergraph Clipper, CLIX, job control, HDB UUCP.
  2143. clix:
  2144.     @echo 'Making C-Kermit $(CKVER) for Intergraph CLIX...'
  2145.     $(MAKE) wermit "CC=acc" "CC2=acc" KTARGET=$${KTARGET:-$(@)} \
  2146.     "CFLAGS= -w -DSVR3 -DCLIX -DDIRENT -DHDBUUCP -DNOSYSLOG -DUSE_MEMCPY \
  2147.     -DNOGETUSERSHELL -DNOREALPATH -DNOLEARN $(KFLAGS) -O" \
  2148.     "LNKFLAGS=" "LIBS= -lbsd"
  2149.  
  2150. #As above + TCP/IP...
  2151. clixnet:
  2152.     @echo 'Making networked C-Kermit $(CKVER) for Intergraph CLIX...'
  2153.     $(MAKE) wermit "CC=acc" "CC2=acc" KTARGET=$${KTARGET:-$(@)} \
  2154.     "CFLAGS= -w -DSVR3 -DCLIX -DDIRENT -DHDBUUCP -DNOSYSLOG -DUSE_MEMCPY \
  2155.     -DTCPSOCKET -DNOGETUSERSHELL -DNOLEARN -DNOREALPATH $(KFLAGS) -O" \
  2156.     "LNKFLAGS=" "LIBS= -lbsd"
  2157.  
  2158. #Mark Williams Coherent 286 or 386 on IBM PC family.
  2159. #There is a 64K limit on program size, so this is a command-line only version.
  2160. coherent:
  2161.     $(MAKE) "CFLAGS = -O -DCOHERENT -DNOANSI -DNOICP -DNOSETKEY -DNOLEARN \
  2162.     -DNOCSETS -DNOHELP -DNODIAL -DNOSCRIPT -DNODEBUG -DNOTLOG -DNOXMIT \
  2163.     -DNOMSEND -DNOFRILLS -DNOSYSIOCTLH -DSELECT_H $(KFLAGS) -VSUVAR" \
  2164.     -DNOFLOAT KTARGET=$${KTARGET:-$(@)} wermit
  2165.  
  2166. #Mark Williams Coherent 386 on IBM PC family.
  2167. #This will make a "minimum interactive" version - no scripts,
  2168. #no character sets, no help, no dial, no debug/transaction logging, no
  2169. #transmit, msend, mail, type, etc.
  2170. coherentmi:
  2171.     $(MAKE) "CFLAGS = -O -DCOHERENT -DNOANSI -DNOSETKEY -DNOLEARN \
  2172.     -DNOSHOW -DNOCSETS -DNOHELP -DNODIAL -DNOSCRIPT -DNODEBUG -DNOTLOG \
  2173.     -DNOXMIT -DNOMSEND -DNOFRILLS -DNOSYSIOCTLH -DNOSERVER -DNOUUCP \
  2174.     -DNOSPL -DNOPUSH -DNOMDMHUP -DNOJC -DNOFDZERO -DNOESCSEQ -DNOFLOAT \
  2175.     -DNOCMDL $(KFLAGS) -VSUVAR -DSELECT_H" KTARGET=$${KTARGET:-$(@)} \
  2176.     wermit
  2177.  
  2178. #Mark Williams Coherent 386 on IBM PC/AT family.
  2179. coherentmax:
  2180.     $(MAKE) "CFLAGS = -O -DCOHERENT -DNOANSI -DSELECT_H -DNOLEARN \
  2181.     -DNOFLOAT -DNOSYSIOCTLH $(KFLAGS) -VSUVAR" "LNKFLAGS = -O -s" \
  2182.     KTARGET=$${KTARGET:-$(@)} wermit
  2183.  
  2184. #Mark Williams Coherent 386 4.2.  Includes curses but not TCP/IP.
  2185. #Requires updates to the 4.2.10 compiler; the regular compiler fails to
  2186. #to handle "complex expressions".  NOFLOAT is so it can work on old PCs
  2187. #without floating-point hardware.
  2188. coherent42:
  2189.     $(MAKE) "CFLAGS = -T500000 -DNOFLOAT -DCOHERENT -DNOANSI -DSELECT \
  2190.     -DNOSYSLOG -DDIRENT -DCK_CURSES -DCK_NEWTERM -DCK_WREFRESH -VSUVAR \
  2191.     -DDCLGETCWD -DNOSYSIOCTLH -DNOINITGROUPS -DNOSYMLINK -DSELECT_H \
  2192.     -DDCLGETCWD -O $(KFLAGS)" \
  2193.     "LNKFLAGS = -O -s" KTARGET=$${KTARGET:-$(@)} \
  2194.     "LIBS  = -lsocket -lcurses" wermit
  2195.  
  2196. #DEC Ultrix 2.x
  2197. # Add -O, -DDYNAMIC, -s, etc, if they work.
  2198. ultrix2x:
  2199.     @echo Making C-Kermit $(CKVER) for Ultrix 2.x ...
  2200.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  2201.     "CFLAGS= -DBSD4 -DTCPSOCKET -DDU2 -DNOGETUSERSHELL $(KFLAGS)"
  2202.  
  2203. du2:
  2204.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET-$(@)} ultrix2x
  2205.  
  2206. #DEC Ultrix 3.0 and 3.1
  2207. ultrix30:
  2208.     @echo Making C-Kermit $(CKVER) for Ultrix 3.0...
  2209.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  2210.     "CFLAGS= -DBSD4 -DTCPSOCKET -DDIRENT -DSIG_V -DNOGETUSERSHELL \
  2211.     -DULTRIX3 -DCK_CURSES $(KFLAGS) -O" "LIBS= -lcurses -ltermcap"
  2212.  
  2213. du3:
  2214.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET-$(@)} ultrix30
  2215.  
  2216. ultrix3x:
  2217.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET-$(@)} ultrix30
  2218.  
  2219. #DEC Ultrix 4.0 or 4.1 on DECstation, VAXstation, VAX, etc.
  2220. ultrix40:
  2221.     @echo Making C-Kermit $(CKVER) for Ultrix 4.0 or 4.1...
  2222.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  2223.     "CFLAGS= -DBSD4 -DTCPSOCKET -DSIG_V -DDU4 -DNOGETUSERSHELL \
  2224.     $(KFLAGS) -Olimit 1450" "LNKFLAGS = -s"
  2225.  
  2226. #DEC Ultrix 4.2-4.5 on DECstation, DECsystem, VAXstation, VAX, etc.
  2227. #Like ultrix40, except now C compiler supports -O2 optimization.
  2228. ultrix42:
  2229.     @echo Making C-Kermit $(CKVER) for Ultrix 4.2 or later...
  2230.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  2231.     "CFLAGS= -DBSD4 -DTCPSOCKET -DSIG_V -DNOGETUSERSHELL $(KFLAGS) \
  2232.     -O2 -Olimit 1750" "LNKFLAGS = -s"
  2233.  
  2234. du42:
  2235.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET-$(@)} ultrix42
  2236.  
  2237. #DEC Ultrix 4.2-4.5 on DECstation, DECsystem, VAXstation, VAX, etc.
  2238. #Like du42, but with curses support added and a couple features.
  2239. ultrix42c:
  2240.     @echo Making C-Kermit $(CKVER) for Ultrix 4.2 or later...
  2241.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  2242.     "CFLAGS= -DBSD4 -DTCPSOCKET -DSIG_V -DNOGETUSERSHELL \
  2243.     -DCK_CURSES -DNOIKSD $(KFLAGS)-G6 -O2 -Olimit 3000 " \
  2244.     "LNKFLAGS = -s" "LIBS= -lcurses -ltermcap"
  2245.  
  2246. ultrix43:
  2247.     $(MAKE) "MAKE=$(MAKE)" CC=$(CC) CC2=$(CC2) \
  2248.     "KFLAGS=-DULTRIX43 $(KFLAGS)" KTARGET=$${KTARGET-$(@)} ultrix42c
  2249.  
  2250. ultrix43notcp:
  2251.     $(MAKE) "MAKE=$(MAKE)" CC=$(CC) CC2=$(CC2) \
  2252.     "KFLAGS=-DULTRIX43 -DNONET $(KFLAGS)" \
  2253.     KTARGET=$${KTARGET-$(@)} ultrix42c
  2254.  
  2255. # NOTE: need -DNODEBUG on MIPS to avoid relocation errors at link time.
  2256. # Actually now (8.0) that we have discovered the -G option maybe debugging
  2257. # can be put back.
  2258. ultrix44:
  2259.     $(MAKE) "MAKE=$(MAKE)" CC=$(CC) CC2=$(CC2) \
  2260.     "KFLAGS=-DULTRIX44 -G7 -DNODEBUG -DNETPTY -DNO_DEVTTY $(KFLAGS)" \
  2261.     KTARGET=$${KTARGET-$(@)} ultrix42c
  2262.  
  2263. ultrix45:
  2264.     $(MAKE) "MAKE=$(MAKE)" CC=$(CC) CC2=$(CC2) \
  2265.     "KFLAGS=-DULTRIX45 $(KFLAGS)-DNETPTY -DNO_DEVTTY $(KFLAGS)" \
  2266.     KTARGET=$${KTARGET-$(@)} ultrix42c
  2267.  
  2268. du42c:
  2269.     $(MAKE) "MAKE=$(MAKE)" CC=$(CC) CC2=$(CC2) \
  2270.     KTARGET=$${KTARGET-$(@)} ultrix42c
  2271.  
  2272. #DEC Ultrix 4.3A or later on DECsystem and DECstation 5000/50, /150 or /260
  2273. #with MIPS R4x00 processor.  The "-mips3" switch generates R4000-specific
  2274. #code, which is faster and more compact, but *won't* run on earlier
  2275. #DECsystems and DECstations.
  2276. ultrix43-mips3:
  2277.     @echo Making C-Kermit $(CKVER) for Ultrix 4.3A or later, R4000 cpu...
  2278.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  2279.     "CFLAGS= -DBSD4 -DTCPSOCKET -DSIG_V -DNOGETUSERSHELL \
  2280.     $(KFLAGS) -O2 -Olimit 1750 -mips3" "LNKFLAGS = -s -mips3"
  2281.  
  2282. du43-mips3:
  2283.     $(MAKE) "MAKE=$(MAKE)" CC=$(CC) CC2=$(CC2) ultrix43-mips3
  2284.  
  2285. #DEC Ultrix 4.3A or later on MIPS R4x000 based systems.
  2286. #Like ultrix43-mips3 but with curses support added
  2287. ultrix43c-mips3:
  2288.     @echo Making C-Kermit $(CKVER) for Ultrix 4.3A or later, R4000 cpu...
  2289.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  2290.     "CFLAGS= -DBSD4 -DTCPSOCKET -DSIG_V -DNOGETUSERSHELL -DCK_CURSES \
  2291.     $(KFLAGS) -O2 -Olimit 3000 -mips3" "LNKFLAGS = -s -mips3" \
  2292.     "LIBS= -lcurses -ltermcap"
  2293.  
  2294. du43c-mips3:
  2295.     $(MAKE) "MAKE=$(MAKE)" CC=$(CC) CC2=$(CC2) \
  2296.     KTARGET=$${KTARGET-$(@)} ultrix43c-mips3
  2297.  
  2298. #DEC Ultrix 4.4 on DECstation 5000/50 or /150 with R4000 MIPS processor,
  2299. #or 5000/260 with R4400.  The "-mips3" switch generates R4000-specific code,
  2300. #which is faster and more compact but *won't* run on earlier DECstations.
  2301. ultrix44-mips3:
  2302.     @echo Making C-Kermit $(CKVER) for Ultrix 4.4, R4000 cpu ...
  2303.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  2304.     "CFLAGS= -DBSD4 -DTCPSOCKET -DSIG_V -DNOGETUSERSHELL \
  2305.     $(KFLAGS) -O2 -Olimit 1450 -mips3" "LNKFLAGS = -s -mips3"
  2306.  
  2307. du44-mips3:
  2308.     $(MAKE) "MAKE=$(MAKE)" CC=$(CC) CC2=$(CC2) \
  2309.     KTARGET=$${KTARGET-$(@)} ultrix44c-mips3
  2310.  
  2311. #DEC Ultrix 4.2 on DECstation, VAXstation, VAX, etc, System V R4 environment
  2312. ultrix42s5r4:
  2313.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4 on Ultrix...'
  2314.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  2315.     "CFLAGS = -O2 -Olimit 1500 -DSVR4 -DDIRENT -DHDBUUCP -DNOGETUSERSHELL \
  2316.     -DTCPSOCKET $(KFLAGS)" "LNKFLAGS = -s"
  2317.  
  2318. #OSF/1
  2319. osf osf1:
  2320.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2321.     "CFLAGS= -DBSD4 -DOSF -D_BSD -DTCPSOCKET -DCK_ANSIC -DSIG_V \
  2322.     -DCK_CURSES -DCK_RTSCTS -DFNFLOAT $(KFLAGS)" \
  2323.     "LNKFLAGS = -s" "LIBS = $(LIBS) -lbsd -lcurses -ltermcap -lm"
  2324.  
  2325. #DEC OSF/1 V1.0-1.3 on DECstation, VAX, Alpha, or PC.
  2326. dec-osf dec-osf1:
  2327.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2328.     "CFLAGS= -DBSD4 -DOSF -DOSF13 -D_BSD -DTCPSOCKET -DCK_ANSIC -DSIG_V \
  2329.     -DNOREALPATH -DNOIKSD -DCK_CURSES -DCK_RTSCTS -DFNFLOAT -DNODEBUG \
  2330.     -DNOUNICODE $(KFLAGS)" \
  2331.     "LNKFLAGS = -non_shared" "LIBS = -lbsd -lcurses -ltermcap -lm"
  2332.  
  2333. # This one causes "relocation out-of-range" errors in the linker.
  2334. old-dec-osf:
  2335.     @echo Making C-Kermit $(CKVER) for DEC OSF/1 V1.x...
  2336.     @echo If you are building for DEC OSF/1 2.0, please use dec-osf20.
  2337.     @echo Remove or adjust -O2 and/or -Olimit if they cause trouble.
  2338.     $(MAKE) CC=$(CC) CC2=$(CC2) osf KTARGET=$${KTARGET:-$(@)} \
  2339.     "KFLAGS= -O2 -Olimit 2400 $(KFLAGS)"
  2340.  
  2341. #DEC OSF/1 2.0 on Alpha and probably nowhere else.
  2342. #The only difference from OSF/1 is that optimization is omitted.
  2343. #The optimized version gets strange runtime errors, like the PAUSE command
  2344. #not working.  Add "-unsigned" to make all chars unsigned.
  2345. dec-osf20:
  2346.     @echo Making C-Kermit $(CKVER) for DEC OSF/1 V2.0...
  2347.     @echo Optimization omitted because it causes runtime errors.
  2348.     @echo See comments in makefile.
  2349.     $(MAKE) CC=$(CC) CC2=$(CC2) osf KTARGET=$${KTARGET:-$(@)} \
  2350.     "KFLAGS= -DOSF20 $(KFLAGS)"
  2351.  
  2352. dec-osf30:
  2353.     @echo Making C-Kermit $(CKVER) for DEC OSF/1 V3.0...
  2354.     $(MAKE) CC=$(CC) CC2=$(CC2) osf KTARGET=$${KTARGET:-$(@)} \
  2355.     "KFLAGS= -DOSF30 -O2 -Olimit 2400 $(KFLAGS)"
  2356.  
  2357. #Digital UNIX 3.2
  2358. # Must compile ckuus[6x].c separately without optimization otherwise
  2359. # the optimizer dumps core - keep CFLAGS here in sync with those from osf.
  2360. du32:
  2361.     @echo Making C-Kermit $(CKVER) for Digital UNIX 3.2...
  2362.     $(MAKE) CC=$(CC) CC2=$(CC2) ckuus6.$(EXT) \
  2363.     "CFLAGS= -DBSD4 -DOSF -D_BSD -DTCPSOCKET -DCK_ANSIC -DSIG_V \
  2364.     -DCK_CURSES -DCK_RTSCTS -DFNFLOAT -DOSF32 -DHDBUUCP $(KFLAGS)"
  2365.     $(MAKE) CC=$(CC) CC2=$(CC2) ckuusx.$(EXT) \
  2366.     "CFLAGS= -DBSD4 -DOSF -D_BSD -DTCPSOCKET -DCK_ANSIC -DSIG_V \
  2367.     -DCK_CURSES -DCK_RTSCTS -DFNFLOAT -DOSF32 -DHDBUUCP $(KFLAGS)"
  2368.     $(MAKE) CC=$(CC) CC2=$(CC2) osf \
  2369.     "KFLAGS= -DOSF32 -DHDBUUCP -O2 -Olimit 3200 $(KFLAGS)"
  2370.  
  2371. dec-osf32:
  2372.     $(MAKE) "MAKE=$(MAKE)" CC=$(CC) CC2=$(CC2) du32 \
  2373.     KTARGET=$${KTARGET:-$(@)}
  2374.  
  2375. #Digital UNIX 4.0 through 4.0D (use tru64 targets for 4.0E and above)...
  2376. du40:
  2377.     @echo Making C-Kermit $(CKVER) for Digital UNIX 4.0...
  2378.     $(MAKE) CC=$(CC) CC2=$(CC2) osf KTARGET=$${KTARGET:-$(@)} \
  2379.     "KFLAGS= -DOSF40 -DHDBUUCP -DFNFLOAT \
  2380.     -unsigned -std1 -O3 -Olimit 2400 $(KFLAGS)" "LIBS=-lm"
  2381.  
  2382. du40gcc:
  2383.     @echo Making C-Kermit $(CKVER) for Digital UNIX 4.0 with gcc ...
  2384.     $(MAKE) osf CC=gcc CC2=gcc KTARGET=$${KTARGET:-$(@)} \
  2385.     "KFLAGS= -DOSF40 -DHDBUUCP $(KFLAGS)"
  2386.  
  2387. #Tru64 Unix 4.0E
  2388. tru64-40e:
  2389.     @echo Making C-Kermit $(CKVER) for Tru64 UNIX 4.0E...
  2390.     $(MAKE) CC=$(CC) CC2=$(CC2) osf KTARGET=$${KTARGET:-$(@)} \
  2391.     "KFLAGS= -DOSF40 -DOSF40E -DTRU64 -DHDBUUCP -DFNFLOAT -DNOCOTFMC \
  2392.     -unsigned -std1 -O3 -Olimit 2400 $(KFLAGS)" "LIBS=-lm"
  2393.  
  2394. tru64-40f:
  2395.     @echo Making C-Kermit $(CKVER) for Tru64 UNIX 4.0F...
  2396.     $(MAKE) CC=$(CC) CC2=$(CC2) osf KTARGET=$${KTARGET:-$(@)} \
  2397.     "KFLAGS= -DOSF40 -DOSF40F -DTRU64 -DHDBUUCP -DFNFLOAT -DNOCOTFMC \
  2398.     -unsigned -std1 -O3 -Olimit 2400 $(KFLAGS)" "LIBS=-lm"
  2399.  
  2400. tru64-40g:
  2401.     @echo Making C-Kermit $(CKVER) for Tru64 UNIX 4.0G...
  2402.     $(MAKE) CC=$(CC) CC2=$(CC2) osf KTARGET=$${KTARGET:-$(@)} \
  2403.     "KFLAGS= -DOSF40 -DOSF40G -DTRU64 -DHDBUUCP -DFNFLOAT -DNOCOTFMC \
  2404.     -unsigned -std1 -O3 -Olimit 2400 $(KFLAGS)" "LIBS=-lm"
  2405.  
  2406. tru64-50a:
  2407.     @echo Making C-Kermit $(CKVER) for Tru64 UNIX 5.0A...
  2408.     $(MAKE) CC=$(CC) CC2=$(CC2) osf KTARGET=$${KTARGET:-$(@)} \
  2409.     "KFLAGS= -DTRU64 -DOSF50 -DHDBUUCP \
  2410.     -unsigned -std1 -O3 -Olimit 2400 $(KFLAGS)"
  2411.  
  2412. tru64-51a:
  2413.     @echo Making C-Kermit $(CKVER) for Tru64 UNIX 5.1A...
  2414.     $(MAKE) CC=$(CC) CC2=$(CC2) osf KTARGET=$${KTARGET:-$(@)} \
  2415.     "KFLAGS= -DTRU64 -DOSF50 -DOSF51A -DHDBUUCP \
  2416.     -unsigned -std1 -O3 -Olimit 2400 $(KFLAGS)"
  2417.  
  2418. tru64-51b:
  2419.     @echo Making C-Kermit $(CKVER) for Tru64 UNIX 5.1B...
  2420.     $(MAKE) CC=$(CC) CC2=$(CC2) osf KTARGET=$${KTARGET:-$(@)} \
  2421.     "KFLAGS= -DTRU64 -DOSF50 -DOSF51A -DOSF51B -DHDBUUCP \
  2422.     -unsigned -std1 -O3 -Olimit 2400 $(KFLAGS)"
  2423.  
  2424. # Added 5.1b version with OpenSSL - CDW 6-13-2005...
  2425. tru64-51b+openssl:
  2426.     @echo Making C-Kermit $(CKVER) for Tru64 UNIX 5.1b
  2427.     @echo  including OpenSSL...
  2428.     $(MAKE) CC=$(CC) CC2=$(CC2) osf KTARGET=$${KTARGET:-$(@)} \
  2429.     "KFLAGS= -DTRU64 -DOSF50 -DOSF51A -DOSF51B -DHDBUUCP \
  2430.     -unsigned -std1 -O3 -Olimit 2400 \
  2431.     -DCK_AUTHENTICATION -DCK_SSL $(SSLINC) $(KFLAGS)" \
  2432.     "LIBS= $(SSLLIB) -rpath $(sslroot)/ssl/lib -lssl -lcrypto"
  2433.  
  2434. du50:
  2435.     $(MAKE) CC=$(CC) CC2=$(CC2) tru64-50a KTARGET=$${KTARGET:-$(@)}
  2436.  
  2437. du40-ridiculous-checking:
  2438.     @echo Making C-Kermit $(CKVER) for Digital UNIX 4.0.
  2439.     @echo Checking everything - assumes DECC...
  2440.     $(MAKE) CC=$(CC) CC2=$(CC2) osf KTARGET=$${KTARGET:-$(@)} \
  2441.     "KFLAGS= -DOSF40 -DHDBUUCP -w0 -warnprotos -check -portable \
  2442.     -unsigned -std1 -O3 -Olimit 1760 $(KFLAGS)"
  2443.  
  2444. #Sequent DYNIX/ptx 1.2.1
  2445. dynixptx12:
  2446.     @echo Making C-Kermit $(CKVER) for Sequent DYNIX/ptx 1.2.1...
  2447.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  2448.     "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -DPTX -DNOGETUSERSHELL -DNOLEARN \
  2449.     -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t $(KFLAGS) -i -O" \
  2450.     "LNKFLAGS = -i"
  2451.  
  2452. #Sequent DYNIX/ptx 1.3 or 1.4
  2453. dynixptx13:
  2454.     @echo Making C-Kermit $(CKVER) for Sequent DYNIX/ptx 1.3 TCP/IP...
  2455.     $(MAKE) xermit "CFLAGS= -O KTARGET=$${KTARGET:-$(@)} \
  2456.     -DSVR3 -DDIRENT -DHDBUUCP -DPTX -DCK_POLL -DNOGETUSERSHELL \
  2457.     -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t -DTCPSOCKET $(KFLAGS) -i" \
  2458.     "LNKFLAGS = -i" "LIBS = -lsocket -linet -lnsl"
  2459.  
  2460. #Sequent DYNIX/ptx 2.0, ANSI C compilation
  2461. #Should work on any hardware platform when DYNIX/ptx runs, including
  2462. #386, 486, Pentium.
  2463. dynixptx20:
  2464.     @echo 'Making C-Kermit $(CKVER) for POSIX, Sequent DYNIX/ptx 2.0...'
  2465.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2466.     "CFLAGS= -DPOSIX -DHDBUUCP -DTCPSOCKET \
  2467.     -DWAIT_T=int -DPTX -DNOGETUSERSHELL $(KFLAGS) -O" \
  2468.     "LIBS = -lsocket -linet -lnsl"
  2469.  
  2470. #Sequent DYNIX/ptx 2.0, ANSI C compilation, with curses
  2471. dynixptx20c:
  2472.     @echo 'Making C-Kermit $(CKVER) for POSIX, Sequent DYNIX/ptx 2.0...'
  2473.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2474.     "CFLAGS= -DPOSIX -DHDBUUCP -DTCPSOCKET -DWAIT_T=int -DPTX -DCK_CURSES \
  2475.     -DCK_NEWTERM -DNOGETUSERSHELL $(KFLAGS) -O" \
  2476.     "LIBS = -lsocket -linet -lnsl -lcurses -ltermcap"
  2477.  
  2478. #Sequent DYNIX/ptx 2.1.6, 80486, ANSI C compilation, with curses:
  2479. # -Xa -- use ANSI compiler.
  2480. # -Wc,-pw -- suppress portability warnings.
  2481. # -Wc,-i386 -- 80386 cpu.
  2482. # -Wc,-i486 -- 80486 cpu.
  2483. # -Wc,-P5 -- Pentium (default).
  2484. # -Wc,-O3 -- highest optimization.
  2485. # -Wa,-N17061 -- increase symbol table from default of 15013 for ckcuni.c.
  2486. # Early versions of DYNIX/ptx 2.1.x may need -DCK_POLL instead of -DSELECT.
  2487. # Add "$&" after the colon in the "xermit" target for parallel makes.
  2488. dynixptx216c:
  2489.     @echo 'Making C-Kermit $(CKVER) for POSIX, Sequent DYNIX/ptx 2.1.6'
  2490.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2491.     "CFLAGS= -DPOSIX -DHDBUUCP -DDYNAMIC -DTCPSOCKET \
  2492.     -DSELECT -DCK_REDIR -DCK_NAWS -DCK_WREFRESH -DSW_ACC_ID \
  2493.     -DTCP_NODELAY=1 -DTRMBUFL=2048 -DBIGBUFOK -DHADDRLIST \
  2494.     -DPTX  -DCK_CURSES -DCK_NEWTERM -DNOGETUSERSHELL -DNOREALPATH \
  2495.     $(KFLAGS) -Xa -Wc,-pw -Wc,-i486 -Wc,-O3 -Wa,-N17061" \
  2496.     "LIBS = -lXbsd -lseq -lsocket -linet -lnsl -lmalloc -lm -lcurses" \
  2497.     "LNKFLAGS = -s"
  2498.  
  2499. #Sequent DYNIX/ptx 2.1.6, gcc 2.7.2.2, with curses:
  2500. dynixptx216cgcc:
  2501.     @echo 'Making C-Kermit $(CKVER) for POSIX, Sequent DYNIX/ptx 2.1.6 gcc'
  2502.     $(MAKE) xermit "CC = gcc" "CC2 = gcc" KTARGET=$${KTARGET:-$(@)} \
  2503.     "CFLAGS= -DPOSIX -DHDBUUCP -DDYNAMIC -DTCPSOCKET \
  2504.     -DSELECT -DCK_REDIR -DCK_NAWS -DCK_WREFRESH -DSW_ACC_ID \
  2505.     -DTCP_NODELAY=1 -DTRMBUFL=2048 -DBIGBUFOK -DHADDRLIST \
  2506.     -DPTX  -DCK_CURSES -DCK_NEWTERM -DNOGETUSERSHELL -DNOREALPATH \
  2507.     $(KFLAGS) -O3 -pipe -funsigned-char" \
  2508.     "LIBS = -lXbsd -lseq -lsocket -linet -lnsl -lmalloc -lm -lcurses" \
  2509.     "LNKFLAGS = -s"
  2510.  
  2511. #Sequent DYNIX/ptx 4.0, ANSI C compilation, with curses
  2512. dynixptx41c:
  2513.     @echo 'Making C-Kermit $(CKVER) for POSIX, Sequent DYNIX/ptx 4.0...'
  2514.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2515.     "CFLAGS= -DPOSIX -DHDBUUCP -DTCPSOCKET \
  2516.     -DWAIT_T=int -DPTX -DPTX4 -DCK_CURSES -DCK_NEWTERM \
  2517.     -DNOGETUSERSHELL $(KFLAGS) -O" \
  2518.     "LIBS = -lsocket -lnsl -lcurses -ltermcap"
  2519.  
  2520. #Sequent DYNIX/ptx 4.4, ANSI C compilation, with curses
  2521. dynixptx44:
  2522.     @echo 'Making C-Kermit $(CKVER) for POSIX, Sequent DYNIX/ptx 4.4...'
  2523.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2524.     "CFLAGS= -DPTX -DPTX4 -DPOSIX -DHDBUUCP -DTCPSOCKET -DWAIT_T=int \
  2525.     -DCK_CURSES -DCK_NEWTERM -DBIGBUFOK -DSELECT -DNOGETUSERSHELL \
  2526.     $(KFLAGS) -O" "LIBS = -lsocket -lnsl -lcurses -ltermcap"
  2527.  
  2528. #Sequent DYNIX 3.0.x
  2529. dynix3:
  2530.     @echo Making C-Kermit $(CKVER) for Sequent DYNIX 3.0.x...
  2531.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2532.     "CFLAGS= -DBSD43 -DACUCNTRL -DTCPSOCKET -O \
  2533.     -DPWUID_T=int -DGID_T=int $(KFLAGS)"
  2534.  
  2535. #Sequent DYNIX 3.0.x, no ACUCNTRL
  2536. dynix3noacu:
  2537.     @echo Making C-Kermit $(CKVER) for Sequent DYNIX 3.0.x...
  2538.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2539.     "CFLAGS= -DBSD43 -DLCKDIR -DTCPSOCKET -O \
  2540.     -DUID_T=int -DGID_T=int $(KFLAGS)"
  2541.  
  2542. #Sequent DYNIX 3.1.x
  2543. dynix31:
  2544.     @echo Making C-Kermit $(CKVER) for Sequent DYNIX 3.1.x...
  2545.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2546.     "CFLAGS= -O -DDCLPOPEN -DLCKDIR -DBSD4 -DTCPSOCKET $(KFLAGS)"
  2547.  
  2548. #Sequent DYNIX 3.1.2, as above but with curses, to be compiled by gcc 2.3.3.
  2549. dynix31c:
  2550.     @echo 'Making C-Kermit $(CKVER) for Sequent DYNIX 3.1.2, curses...'
  2551.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2552.     "CFLAGS= -O2 -DDCLPOPEN -DACUCNTRL \
  2553.     -DBSD43 -DTCPSOCKET -DCK_CURSES -DUID_T=int \
  2554.     $(KFLAGS)" "LIBS= -lcurses -ltermcap"
  2555.  
  2556. #Convex C1 with Berkeley Unix
  2557. convex:
  2558.     @echo Making C-Kermit $(CKVER) for Convex C1 / BSD...
  2559.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  2560.     "CFLAGS= -DBSD4 -DNOLEARN $(KFLAGS) -Dmsleep=mnap"
  2561.  
  2562. #Convex C210 with Convex/OS 8
  2563. convex8:
  2564.     @echo Making C-Kermit $(CKVER) for Convex C210 with OS 8
  2565.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2566.     "CFLAGS= -DBSD4 -DTCPSOCKET -DNODEBUG -DDIRENT -DNOFILEH \
  2567.     $(KFLAGS) -DSIG_V -Dmsleep=mnap"
  2568.  
  2569. #Convex C2 with Convex OS 9.1 (should also work with 8.1 or later)
  2570. #with ANSI C compiler, uses BSD 4.3 uucp lockfile convention.
  2571. convex9:
  2572.     @echo Making C-Kermit $(CKVER) for Convex C210 with OS 9.1
  2573.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2574.     "CFLAGS= -DPOSIX -DCONVEX9 -DNOIEXTEN -DDIRENT -DNOFILEH -DTCPSOCKET \
  2575.     -D__STDC__ -DLCKDIR -Dmsleep=mnap -O -ext -tm c1 $(KFLAGS)" \
  2576.     "LNKFLAGS = -ext"
  2577.  
  2578. #Convex C2 with Convex OS 10.1 or later
  2579. #with gcc 2.x C compiler
  2580. convex10gcc:
  2581.     @echo Making C-Kermit $(CKVER) for Convex C2 with OS 10.1 using gcc
  2582.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2583.     "CFLAGS= -DPOSIX -DCONVEX9 -DNOIEXTEN -DDIRENT -DNOFILEH -DTCPSOCKET \
  2584.     -D__STDC__  -Dmsleep=mnap -O2 $(KFLAGS)" CC=gcc CC2=gcc
  2585.  
  2586. #Cray X-MP or Y-MP UNICOS 6.x or 7.x.
  2587. #NOTE: NPROC tells how many parallel makes to run.  If your Cray has multiple
  2588. #processors, you can set NPROC up to the number of CPUs, e.g. NPROC=16.
  2589. cray:
  2590.     @echo 'Making C-Kermit $(CKVER) for Cray X/Y-MP UNICOS 6.x or 7.0...
  2591.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} NPROC=1 \
  2592.     "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -DTCPSOCKET $(KFLAGS) -O1"
  2593.  
  2594. #Cray X-MP or Y-MP UNICOS 8.0 Alpha.
  2595. cray8:
  2596.     @echo 'Making C-Kermit $(CKVER) for Cray X/Y-MP UNICOS 8.0 Alpha...
  2597.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} NPROC=1 \
  2598.     "CFLAGS= -DSVR4 -DDIRENT -DHDBUUCP -DTCPSOCKET $(KFLAGS) -O1"
  2599.  
  2600. #Cray X-MP or Y-MP UNICOS 9.0.
  2601. #This one was executed successfully for C-Kermit 8.0.209.
  2602. #Earlier versions of Unicos will probably need the same flags.
  2603. cray9:
  2604.     @echo 'Making C-Kermit $(CKVER) for Cray X/Y-MP UNICOS 9.0...
  2605.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} NPROC=1 \
  2606.     "CFLAGS= -DSVR4 -DDIRENT -DHDBUUCP -DNOLFDEVNO \
  2607.     -DTCPSOCKET $(KFLAGS) -O1"
  2608.  
  2609. #Cray-2 or Cray 3-CSOS
  2610. #NOTE: NPROC tells how many parallel makes to run.  If your Cray has multiple
  2611. #processors, you can set NPROC up to the number of CPUs, e.g. NPROC=16.
  2612. craycsos:
  2613.     @echo 'Making C-Kermit $(CKVER) for Cray-2/3 CSOS
  2614.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} NPROC=1 \
  2615.     "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -DTCPSOCKET \
  2616.     $(KFLAGS) -DCK_ANSIC -DCK_CURSES" "LIBS=-lnet"
  2617.  
  2618. #NeXTSTEP 1.0 through 3.2.
  2619. #Includes fullscreen file transfer display (curses) and TCP/IP support.
  2620. #Uses shared library to make executable program about 80K smaller.
  2621. #Remove "LIBS = -lsys_s" if this causes trouble.
  2622. next:
  2623.     @echo Making C-Kermit $(CKVER) for NeXTSTEP...
  2624.     @echo 'If you get errors in ckutio.c about w_S, w_T, etc,'
  2625.     @echo 'add KFGLAGS=-DNOREDIRECT to your make command.'
  2626.     $(MAKE) xermit CC=$(CC) CC2=$(CC2) KTARGET=$${KTARGET:-$(@)} \
  2627.     "CFLAGS= -DNEXT -DTCPSOCKET -DLCKDIR -DNOPUTENV -DFNFLOAT \
  2628.     -pipe -DCK_CURSES $(KFLAGS) -O -w" "LIBS = -lsys_s -lcurses -ltermcap"
  2629.  
  2630. nextc:
  2631.     $(MAKE) "MAKE=$(MAKE)" CC=$(CC) CC2=$(CC2) next \
  2632.     KTARGET=$${KTARGET:-$(@)}
  2633.  
  2634. nextg:
  2635.     $(MAKE) "MAKE=$(MAKE)" CC=$(CC) CC2=$(CC2) next \
  2636.     KFLAGS=-Wall KTARGET=$${KTARGET:-$(@)}
  2637.  
  2638. nextgc:
  2639.     $(MAKE) "MAKE=$(MAKE)" CC=$(CC) CC2=$(CC2) next \
  2640.     KFLAGS=-Wall KTARGET=$${KTARGET:-$(@)}
  2641.  
  2642. #NeXTSTEP 3.3.
  2643. #Includes fullscreen file transfer display and TCP/IP.
  2644. # You might have to add 1 line to 1 NeXT header file <ip.h>
  2645. # to declare n_long as u_long by adding #include <bsd/netinet/in_systm.h>
  2646.  
  2647. next33:
  2648.     @echo Making C-Kermit $(CKVER) for NeXTSTEP 3.3...
  2649.     $(MAKE) xermit CC=$(CC) CC2=$(CC2) KTARGET=$${KTARGET:-$(@)} \
  2650.     "CFLAGS= -DNEXT33 -DTCPSOCKET -DLCKDIR -DNOPUTENV -DFNFLOAT \
  2651.     -pipe -DCK_CURSES $(KFLAGS) -O -w" "LIBS = -lsys_s -lcurses -ltermcap"
  2652.  
  2653. #OPENSTEP 4.2 for Sparc, m680x0, HP PA-RISC, and Intel.
  2654. #Includes fullscreen file transfer display and TCP/IP.
  2655. #ckcpro.c compiled without optimization because it crashes the compiler.
  2656. openstep42:
  2657.     @echo Making C-Kermit $(CKVER) for OPENSTEP 4.2...
  2658.     $(MAKE) ckcpro.$(EXT) \
  2659.     "CFLAGS= -DOPENSTEP42 -DNEXT33 -DTCPSOCKET -DLCKDIR -DNOPUTENV \
  2660.     -DFNFLOAT -pipe -DCK_CURSES $(KFLAGS) -w"
  2661.     $(MAKE) xermit CC=$(CC) CC2=$(CC2) KTARGET=$${KTARGET:-$(@)} \
  2662.     "CFLAGS= -DOPENSTEP42 -DNEXT33 -DTCPSOCKET -DLCKDIR -DNOPUTENV \
  2663.     -DFNFLOAT -pipe -DCK_CURSES $(KFLAGS) -O -w" \
  2664.     "LIBS = -lsys_s -lcurses -ltermcap"
  2665.  
  2666. #NeXT with malloc debugger
  2667. nextmd:
  2668.     @echo Making C-Kermit $(CKVER) for NeXT with malloc debugging...
  2669.     $(MAKE) mermit KTARGET=$${KTARGET:-$(@)} \
  2670.     "CFLAGS= -DNEXT -DTCPSOCKET -DLCKDIR -DNOPUTENV -DFNFLOAT \
  2671.     -DCK_CURSES $(KFLAGS) -O -w -Dmalloc=dmalloc -Dfree=dfree -DMDEBUG" \
  2672.     "LIBS = -lsys_s -lcurses -ltermcap"
  2673.  
  2674. #Build for NeXTSTEP with "fat" binaries (MABs) that run on both Motorola
  2675. #and Intel platforms.
  2676. nextfat:
  2677.     $(MAKE) "MAKE=$(MAKE)" CC=$(CC) CC2=$(CC2) \
  2678.     next KTARGET=$${KTARGET:-$(@)} \
  2679.     "KFLAGS=-Wall -arch m68k -arch i386" "LNKFLAGS = -arch m68k -arch i386"
  2680.  
  2681. #NeXTSTEP on Intel Platforms.
  2682. next486:
  2683.     @echo Making C-Kermit $(CKVER) for NeXTSTEP on Intel Platforms...
  2684.     @echo 'If you get errors in ckutio.c about w_S, w_T, etc,'
  2685.     @echo 'add KFGLAGS=D-DNOREDIRECT to your make command.'
  2686.     $(MAKE) xermit CC=$(CC) CC2=$(CC2) KTARGET=$${KTARGET:-$(@)} \
  2687.     "CFLAGS= -DNEXT -DTCPSOCKET -DLCKDIR -DNOPUTENV -DFNFLOAT \
  2688.     -DNODEBUG -O3 -fno-omit-frame-pointer -fschedule-insns2 -pipe \
  2689.     -DCK_CURSES $(KFLAGS) -w" "LIBS = -lsys_s -lcurses -ltermcap"
  2690.  
  2691. #Single binary that runs on NeXT 68030 and 68040, Intel, HP, and Sparc,
  2692. #as well as on OpenStep/Mach.
  2693. nextquadfat:
  2694.     $(MAKE) "MAKE=$(MAKE)" CC=$(CC) CC2=$(CC2) next \
  2695.     KTARGET=$${KTARGET:-$(@)} \
  2696.     "KFLAGS=-Wall -arch m68k -arch i386 -arch hppa -arch sparc" \
  2697.     "LNKFLAGS = -arch m68k -arch i386 -arch hppa -arch sparc"
  2698.  
  2699. #BeBox
  2700. beboxdr7:
  2701.     @echo 'Making C-Kermit $(CKVER) for the BeBox...'
  2702.     @echo 'Link step will fail with default Metroworks linker 64K limit.'
  2703.     @echo 'Code Warrior Gold required to link big programs.'
  2704.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  2705.     "CC=/boot/develop/tools/mwcc" "CC2=/boot/develop/tools/mwld" \
  2706.     "CFLAGS= -DBEBOX -DBE_DR_7 -DPOSIX -DNOUUCP -DNOLEARN $(KFLAGS) -O"
  2707.  
  2708. #BeBox BeOS DR7 only
  2709. bebox:
  2710.     @echo 'Making C-Kermit $(CKVER) for BeBox...'
  2711.     @echo 'Link step will fail with default Metroworks linker 64K limit.'
  2712.     @echo 'Code Warrior Pro 3.0 for BeBox required to link big programs.'
  2713.     $(MAKE) wermit "CC=mwcc" "CC2=mwld" KTARGET=$${KTARGET:-$(@)} \
  2714.     "CFLAGS= -DBEBOX -DPOSIX -DNOLEARN -DNOUUCP $(KFLAGS) -O"
  2715.  
  2716. #BeOS 4.5
  2717. #We have to use the wermit target because 'fd_set' is unknown.
  2718. beos45:
  2719.     $(MAKE) wermit "CC=$(CC)" "CC2=$(CC2)" KTARGET=$${KTARGET:-$(@)} \
  2720.     "CFLAGS= -DBEOS -DBEOS45 -DPOSIX -DNOIKSD -DNOREALPATH -DSYSTIMEH \
  2721.     -DNOCOTFMC -DNOUUCP -DNOLEARN $(KFLAGS) -O" \
  2722.     "LIBS = $(LIBS)"
  2723.  
  2724. #BeOS 4.5
  2725. beos45net:
  2726.     $(MAKE) CC=$(CC) CC2=$(CC2) beos45 \
  2727.     "KFLAGS=-DTCPSOCKET -DNO_DNS_SRV $(KFLAGS)" "LIBS=-lnet -lnetapi"
  2728.  
  2729. #Plan 9 from Bell Labs
  2730. plan9:
  2731.     @echo 'C-Kermit for Plan 9 from Bell Labs - calling ckpker.mk...'
  2732.     make -f ckpker.mk
  2733.  
  2734. #POSIX
  2735. posix:
  2736.     @echo 'Making C-Kermit $(CKVER) for pure POSIX...'
  2737.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  2738.     "CFLAGS= -DPOSIX -DNOUUCP -DNOLEARN $(KFLAGS) -O"
  2739.  
  2740. # PowerMAX OS (SVR4) from Concurrent (tested on PowerMAX 5.1)
  2741. powermax:
  2742.     @echo 'Making C-Kermit $(CKVER) for Concurrent PowerMAX OS...'
  2743.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2744.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DPOWERMAX \
  2745.     -DNETPTY -DHAVE_STREAMS -DHAVE_GRANTPT -DHAVE_PTSNAME -DPUSH_PTEM \
  2746.     -DPUSH_LDTERM -DPUSH_TTCOMPAT \
  2747.     -DSTERMIOX -DTCPSOCKET -DCK_CURSES $(KFLAGS)" \
  2748.     "LIBS= -lsocket -lnsl -lresolv -lcurses -lgen -lc -lucbc"
  2749.  
  2750. #Berkeley Software Design Inc. BSDI
  2751. # Substitute "LIBS= -lnewcurses -ltermcap" if desired.
  2752. bsdi:
  2753.     @echo 'Making C-Kermit $(CKVER) for BSDI ...'
  2754.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2755.     "CFLAGS= -DBSD44 -DSETREUID -DSW_ACC_ID -DBIGBUFOK -DFIXCRTSCTS \
  2756.     -DTCPSOCKET -DCK_CURSES -DFNFLOAT $(KFLAGS) -O" \
  2757.     "LIBS= -lcurses -ltermcap -lm"
  2758.  
  2759. #Berkeley Software Design Inc. BSDI - has higher serial speeds than 1.x.
  2760. bsdi2:
  2761.     $(MAKE) "MAKE=$(MAKE)" CC=$(CC) CC2=$(CC2) bsdi \
  2762.     KTARGET=$${KTARGET:-$(@)} "KFLAGS=-DBSDI2 $(KFLAGS)"
  2763.  
  2764. bsdi3:
  2765.     $(MAKE) "MAKE=$(MAKE)" CC=$(CC) CC2=$(CC2) bsdi \
  2766.     KTARGET=$${KTARGET:-$(@)} "KFLAGS=-DBSDI2 -DBSDI3 $(KFLAGS)"
  2767.  
  2768. bsdi4:
  2769.     $(MAKE) "MAKE=$(MAKE)" CC=$(CC) CC2=$(CC2) bsdi \
  2770.     KTARGET=$${KTARGET:-$(@)} \
  2771.     "KFLAGS=-DBSDI2 -DBSDI3 -DBSDI4 -DTPUTSFNTYPE=void -DTPUTSISVOID \
  2772.     -DCKHTTP -m486 $(KFLAGS)"
  2773.  
  2774. # (old name for the above)
  2775. bsdiposix:
  2776.     $(MAKE) "MAKE=$(MAKE)" CC=$(CC) CC2=$(CC2) bsdi
  2777.  
  2778.  
  2779. #Build a BSDI 4.x binary that also runs under FreeBSD (Terry Kennedy).
  2780. #But watch out for details like serial-port locking.
  2781. bsdix:
  2782.     $(MAKE) "MAKE=$(MAKE)" CC=$(CC) CC2=$(CC2) bsdi \
  2783.     KTARGET=$${KTARGET:-$(@)} \
  2784.     "KFLAGS=-DBSDI2 -DBSDI3 -DBSDI4 -DTPUTSFNTYPE=void -DTPUTSISVOID \
  2785.     -m486 $(KFLAGS)" "LNKFLAGS=-static -Wl,-m,i386bsdi -Wl,-e,_start"
  2786.  
  2787. #Pyramid 9XXX (e.g. 9845) or MIServer T series, OSx 4.4b thru 5.1
  2788. pyramid:
  2789.     @echo Making C-Kermit $(CKVER) for Pyramid Dual Port OSx
  2790.     ucb $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2791.     "CFLAGS= -DBSD43 -DTCPSOCKET -DPYRAMID -O $(KFLAGS)" "LNKFLAGS = -s"
  2792.  
  2793. #Pyramid Dual Port OSx using HoneyDanBer UUCP, curses and TCP
  2794. pyramid-hdb:
  2795.     @echo Making C-Kermit $(CKVER) for Pyramid Dual Port OSx
  2796.     ucb $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2797.     "CFLAGS= -DBSD43 -DTCPSOCKET -DHBDUUCP -DCK_CURSES -O $(KFLAGS)" \
  2798.     "LNKFLAGS = -s" "LIBS = -lcurses -ltermcap"
  2799.  
  2800. #Pyramid DC/OSx (UNIX System V R4).
  2801. #Has <sys/termiox.h>, regular Berkeley sockets library, i.e. in.h and inet.h
  2802. #are not misplaced in sys (rather than netinet and arpa, respectively).
  2803. #Uses ANSI C.
  2804. #NOTE: Remove -O and Olimit:2500 from CFLAGS if TELNET connections do not work.
  2805. pyrdcosx:
  2806.     @echo 'Making C-Kermit $(CKVER) for Pyramid DC/OSx...'
  2807.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2808.     "CFLAGS = -Xa -O -DSVR4 -DDIRENT -DHDBUUCP -DSELECT -DNOGETUSERSHELL \
  2809.     -DCK_CURSES -DSTERMIOX -DTCPSOCKET -DPYRAMID -K Olimit:3100 \
  2810.     -DNO_DNS_SRV $(KFLAGS)" "LIBS= -lcurses -lsocket -lnsl" "LNKFLAGS = -s"
  2811.  
  2812. #IBM's AIX 3.0 on IBM 370 mainframe, tested on AIX F44 thru F50.
  2813. aix370:
  2814.     @echo Making C-Kermit $(CKVER) for IBM System/370 AIX 3.0...
  2815.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2816.     "CFLAGS= -DAIX370 -DTCPSOCKET -DLCKDIR -DDIRENT $(KFLAGS)" \
  2817.     "LIBS = -lbsd"
  2818.  
  2819. #IBM's AIX/ESA 2.1 (OSF/1) on IBM mainframe
  2820. aixesa:
  2821.     @echo Making C-Kermit $(CKVER) for IBM AIX/ESA...
  2822.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2823.     "CFLAGS= -DAIXESA -DTCPSOCKET $(KFLAGS) -O"
  2824.  
  2825. #IBM PS/2 with AIX 1.0 thru 1.3.
  2826. #  Reports indicate that -O switch must be omitted.
  2827. #  It is also possible that "make bsd" will work (reports welcome).
  2828. #  One report said "make LIBS=-lbsd bsd" did the trick.
  2829. #  NOTLOG is to get around a 'tlog' symbol defined in one of the headers.
  2830. ps2aix:
  2831.     @echo 'Making C-Kermit $(CKVER) for IBM AIX 1.x PS/2...'
  2832.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  2833.     "CFLAGS = -DATTSV -DNOREALPATH -DPS2AIX10 -DSIG_V \
  2834.     -DNOUNICODE -DNOTLOG -DNOLEARN $(KFLAGS) -i" \
  2835.     "LNKFLAGS = -i"
  2836.  
  2837. ps2aixnetc:
  2838.     @echo 'Making C-Kermit $(CKVER) for IBM AIX 1.x PS/2...'
  2839.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  2840.     "CFLAGS = -DATTSV -DNOREALPATH -DPS2AIX10 -DTCPSOCKET -DCK_CURSES \
  2841.     -DSIG_V -DNOUNICODE -DNOTLOG -DNOLEARN $(KFLAGS) -i" \
  2842.     "LIBS = -lcurses" "LNKFLAGS = -i"
  2843.  
  2844. ps2aix3:
  2845.     $(MAKE) ps2aix KTARGET=$${KTARGET:-$(@)}
  2846.  
  2847. #IBM RT PC with AIX 2.2.1, valid as of C-Kermit 8.0.
  2848. #NOTLOG because of a conflict in <sys/termio.h>.
  2849. #This one has unique and strange lockfiles.
  2850. #  -O removed on purpose (8.0).
  2851. #  In case of "compiler error: symbol table full", increase the -Nn number.
  2852. #  In case of "compiler error: Constant pool too big", boost the -Np number.
  2853. #  Add -DNOPUTENV if putenv() causes trouble.
  2854. #  Put -DNOIKSD back if IKSD-related problems occur.
  2855. rtaix:
  2856.     @echo 'Making C-Kermit $(CKVER) for IBM RT PC, AIX 2.2.1...'
  2857.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  2858.     "CFLAGS = -DATTSV -DRTAIX -DHDBUUCP -DDIRENT -DNOTLOG -DTCPSOCKET \
  2859.     -DNOGETUSERSHELL -DCLSOPN -DNOREALPATH -DNOUNICODE -DBSD_INCLUDES \
  2860.     -DUSE_LSTAT -DFNFLOAT -Nn2500 -Np1000 -Wq,-SJ2 -a -w $(KFLAGS)" \
  2861.     "LIBS = -lm $(LIBS)" "LNKFLAGS = -s"
  2862.  
  2863. #### IBM RT PC - these targets were last verified in C-Kermit 8.0.211.
  2864.  
  2865. #IBM RT PC with AIX 2.2.1 + curses
  2866. rtaixc:
  2867.     $(MAKE) rtaix CC=$(CC) CC2=$(CC2) "KFLAGS=-DCK_CURSES" "LIBS=-lcurses"
  2868.  
  2869. #IBM RT PC with AIX (ACIS) 2.2.1 (BSD 4.3)
  2870. # Add -O, -DDYNAMIC, -s, etc, if they work.
  2871. rtacis:
  2872.     @echo Making C-Kermit $(CKVER) for RT PC with ACIS 2.2.1 = BSD 4.3...
  2873.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  2874.     "CFLAGS= -DBSD4 -DTCPSOCKET -DNOREALPATH -DNOIKSD -DNOPUTENV \
  2875.     $(KFLAGS) -U__STDC__" "LNKFLAGS = -s"
  2876.  
  2877. #### IBM AIX.  The first two targets should work for any version of AIX
  2878. #### from 4.2 onwards.  The ones after that are for older versions or
  2879. #### specific configurations, and/or with gcc.
  2880.  
  2881. # This one should work for any AIX 4.2 or later: "make aix".
  2882. # Other tags are for compatibility with old makefile targets.
  2883. #OK: 2011/06/11
  2884. aix aix42 aix43 aix44 aix45 aix50 aix51 aix52 aix53 aix54 aix61:
  2885.     @echo Making C-Kermit $(CKVER) for IBM AIX...
  2886.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2887.     "CFLAGS= -DAIXRS -DAIX41 -DAIX42 -DSVR4 -DSTERMIOX -DTCPSOCKET \
  2888.     -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DCK_NEWTERM -DFNFLOAT \
  2889.     -DSELECT -DSELECT_H -DNOGETUSERSHELL -qmaxmem=16000 -O \
  2890.     -DCKCPU=\\\"`uname -p`\\\" \
  2891.     -DHERALD=\"\\\" IBM AIX `uname -v`.`uname -r`\\\"\" \
  2892.     -D_LARGE_FILES $(KFLAGS)" "LNKFLAGS = -s" "LIBS=-lcurses -lm"
  2893.  
  2894. # Same but using gcc instead of cc
  2895. # This works but we get "gcc: unrecognized option '-qmaxmem-..'" each module.
  2896. aixg:
  2897.     @echo "Using gcc..."
  2898.     $(MAKE) aix KTARGET=$${KTARGET:-$(@)} \
  2899.     CC=gcc CC2=gcc "KFLAGS=-pipe -funsigned-char"
  2900.  
  2901. # AIX 4.2 or later with OpenSSL 0.9.7 or later: "make aix+ssl"
  2902. # For earlier OpenSSL remove -DOPENSSL_097 or add "KFLAGS=-UOPENSSL_097".
  2903. # Synonym target names added to cover old redundant targets that were removed.
  2904. # If SSL is not installed in the /usr/local tree (see SSLINC and SSLLIB
  2905. # definitions near the top), you can specify the locations in your make
  2906. # command as in this example:
  2907. #
  2908. #  SSLINC=-I/opt/ssl/include SSLLIB=-L/opt/ssl/lib make -e aix+ssl
  2909. #
  2910. # To build with gcc use "make aix CC=gcc CC2=gcc", or "make aixg"
  2911. #
  2912. #OK: 2011/06/15
  2913. aix+ssl aix51+openssl aix52+openssl aix53+openssl:
  2914.     @echo "Making C-Kermit $(CKVER) for IBM AIX with OpenSSL..."
  2915.     @echo "SSLINC=$(SSLINC) SSLLIB=$(SSLLIB)"
  2916.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2917.     CC=$(CC) CC2=$(CC2) \
  2918.     "CFLAGS=-DAIXRS -DAIX41 -DAIX42 -DSVR4 -DSTERMIOX -DTCPSOCKET \
  2919.     -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DCK_NEWTERM -DFNFLOAT \
  2920.     -D_LARGE_FILES -DSELECT -DSELECT_H -DNOGETUSERSHELL \
  2921.     -DCKCPU=\\\"`uname -p`\\\" \
  2922.     -DHERALD=\"\\\" IBM AIX `uname -v`.`uname -r`\\\"\" \
  2923.     -DCK_AUTHENTICATION -DCK_SSL -DOPENSSL_097 $(SSLINC) $(KFLAGS)" \
  2924.     "LNKFLAGS=-s" "LIBS=$(SSLLIB) -lssl -lcrypto -lcurses -lm -lcrypt"
  2925.  
  2926. # AIX 5.3 or 6.1 or later with IBM OpenSSL, which is always in the directories
  2927. # shown below so you don't have to set SSLINC and SSLLIB.  If for some reason
  2928. # the SSL include files and libraries are not in the places assumed, then use
  2929. # "make aix+ssl" (just above) and set SSLINC and SSLLIB to indicate where the
  2930. # SSL files are.  To build with gcc use "make aix+ibmssl CC=gcc CC2=gcc".
  2931. aix+ibmssl:
  2932.     @echo "Making C-Kermit $(CKVER) for IBM AIX 6.1 with OpenSSL..."
  2933.     @echo "If this fails use 'make aix+ss' and specify SSLINC and SSLLIB"
  2934.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2935.     CC=$(CC) CC2=$(CC2) \
  2936.     "CFLAGS=-DAIXRS -DAIX41 -DAIX42 -DSVR4 -DSTERMIOX -DTCPSOCKET \
  2937.     -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DCK_NEWTERM -DFNFLOAT \
  2938.     -D_LARGE_FILES -DSELECT -DSELECT_H -DNOGETUSERSHELL \
  2939.     -DCKCPU=\\\"`uname -p`\\\" \
  2940.     -DHERALD=\"\\\" IBM AIX `uname -v`.`uname -r`\\\"\" \
  2941.     -DCK_AUTHENTICATION -DCK_SSL -DOPENSSL_098 \
  2942.     -I/usr/include/openssl $(KFLAGS)" \
  2943.     "LNKFLAGS=-s" \
  2944.     "LIBS=-L/usr/lib/openssl -lssl -lcrypto -lcurses -lm -lcrypt"
  2945.  
  2946. # Old AIX versions...
  2947.  
  2948. #IBM AIX 3.0, 3.1, or 3.2 for RISC System/6000.
  2949. rs6000:
  2950.     @echo Making C-Kermit $(CKVER) for IBM AIX 3.0 or 3.1, RS/6000...
  2951.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2952.     "CFLAGS= -DAIXRS -DTCPSOCKET -DSVR3 -DDIRENT -DCK_ANSIC \
  2953.     -DCK_POLL -DCLSOPN -DSELECT_H -DNOTTYLOCK -O $(KFLAGS)" \
  2954.     "LNKFLAGS = -s"
  2955.  
  2956. #IBM AIX 3.0, 3.1, or 3.2 for RISC System/6000, with curses.
  2957. rs6000c:
  2958.     @echo Making C-Kermit $(CKVER) for IBM AIX 3.0 or 3.1, RS/6000...
  2959.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2960.     "CFLAGS= -DAIXRS -DTCPSOCKET -DSVR3 -DDIRENT -DCK_ANSIC \
  2961.     -DCK_POLL -DCLSOPN -DCK_CURSES -DSELECT_H -DNOTTYLOCK -DNOREALPATH \
  2962.     -O $(KFLAGS)" "LIBS= -lcurses -ltermcap" "LNKFLAGS = -s"
  2963.  
  2964. aix30:
  2965.     $(MAKE) rs6000 CC=$(CC) CC2=$(CC2) KTARGET=$${KTARGET:-$(@)}
  2966.  
  2967. aix31:
  2968.     $(MAKE) rs6000 CC=$(CC) CC2=$(CC2) KTARGET=$${KTARGET:-$(@)}
  2969.  
  2970. #IBM AIX 3.2 for RISC System/6000.
  2971. #In case of "subprogram too complex" warnings, add "-qmaxmem=16000" to CFLAGS.
  2972. rs6aix32:
  2973.     @echo Making C-Kermit $(CKVER) for IBM AIX 3.2, RS/6000...
  2974.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2975.     "CFLAGS= -DAIXRS -DTCPSOCKET -DSVR4 -DDIRENT -DCK_ANSIC -DNOREALPATH \
  2976.     -DSELECT_H -DCLSOPN -DNOTTYLOCK -O $(KFLAGS)" "LNKFLAGS = -s"
  2977.  
  2978. #IBM AIX 3.2 for RISC System/6000.
  2979. rs6aix32c:
  2980.     @echo Making C-Kermit $(CKVER) for IBM AIX 3.2, RS/6000, TCP+curses...
  2981.     @echo In case of Subprogram Too Complex warnings,
  2982.     @echo add -qmaxmem=16000 to CFLAGS.
  2983.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2984.     "CFLAGS= -DAIXRS -DTCPSOCKET -DSVR4 -DDIRENT -DCK_ANSIC -DNOREALPATH \
  2985.     -DCLSOPN -DCK_CURSES -DSELECT_H -DNOTTYLOCK -O $(KFLAGS)" \
  2986.     "LNKFLAGS = -s" "LIBS=-lcurses"
  2987.  
  2988. aix32:
  2989.     $(MAKE) rs6aix32c KTARGET=$${KTARGET:-$(@)}
  2990.  
  2991. #IBM AIX 4.1, 4.1.x on RISC System/6000 or Power Series.
  2992. #Generates common binary for all platforms if using xlc (IBM C compiler).
  2993. #When using gcc, add -mcpu=common to generate common binary.
  2994. #Note that this one needs CK_NEWTERM.
  2995. # Add -bbigtoc in case ld fails with TOC overflow.
  2996. aix41:
  2997.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.1.1 RS/6000 or PowerPC...
  2998.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2999.     "CFLAGS= -DAIXRS -DAIX41 -DSVR4 -DSTERMIOX -DTCPSOCKET -DDIRENT \
  3000.     -DCK_ANSIC -DCLSOPN -DCK_CURSES -DCK_NEWTERM -DSELECT -DSELECT_H \
  3001.     -DNOGETUSERSHELL -qmaxmem=16000 -O $(KFLAGS)" \
  3002.     "LNKFLAGS = -s" "LIBS=-lcurses"
  3003.  
  3004. #Ditto but with gcc.
  3005. #Remove "CC=gcc CC2=gcc" if you have gcc installed as cc.
  3006. aix41g:
  3007.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.1.1 RS/6000 or PowerPC...
  3008.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC=gcc" "CC2=gcc" \
  3009.     "CFLAGS= -DAIXRS -DAIX41 -DSVR4 -DSTERMIOX -DTCPSOCKET -DDIRENT \
  3010.     -DCK_ANSIC -DCLSOPN -DCK_CURSES -DCK_NEWTERM -DSELECT -DSELECT_H \
  3011.     -DNOGETUSERSHELL -O $(KFLAGS)" \
  3012.     "LNKFLAGS = -s -Xlinker -bbigtoc" "LIBS=-lcurses"
  3013.  
  3014. # Add -bbigtoc in case ld fails with TOC overflow.
  3015. aix41+krb5+krb4:
  3016.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.1.1 RS/6000 or PowerPC...
  3017.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3018.     "CFLAGS= -DAIXRS -DAIX41 -DSVR4 -DSTERMIOX -DTCPSOCKET -DDIRENT \
  3019.     -DCK_ANSIC -DCLSOPN -DCK_CURSES -DCK_NEWTERM -DSELECT -DSELECT_H \
  3020.     -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 -DKRB4 -DKRB524 \
  3021.     -DCK_ENCRYPTION -DCK_DES $(K5INC) $(K5INC)/krb5  \
  3022.     -DNOGETUSERSHELL -qmaxmem=16000 -O $(KFLAGS)" \
  3023.     "LNKFLAGS = -s" \
  3024.     "LIBS = $(K5LIB) -lcurses -lkrb4 -ldes425 -lkrb5 \
  3025.     -lcom_err -lk5crypto -lgssapi_krb5"
  3026.  
  3027. #Old name for "aix41".
  3028. rs6aix41c:
  3029.     $(MAKE) aix41 KTARGET=$${KTARGET:-$(@)}
  3030.  
  3031. #IBM AIX 4.1, 4.1.x, or 4.2 on RISC System/6000 or Power Series,
  3032. # with X.25 support
  3033. #Generates common binary for all platforms if using xlc (IBM C compiler).
  3034. #When using gcc, add -mcpu=common to generate common binary.
  3035. # Add -bbigtoc in case ld fails with TOC overflow.
  3036. aix41x25:
  3037.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.1.1 RS/6000 or PowerPC...
  3038.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3039.     "CFLAGS= -DAIXRS -DAIX41 -DSVR4 -DSTERMIOX -DTCPSOCKET -DDIRENT \
  3040.     -DCK_ANSIC -DCLSOPN -DCK_CURSES -DCK_NEWTERM -DSELECT -DSELECT_H \
  3041.     -DIBMX25 -DDEBUG -DNOGETUSERSHELL -qmaxmem=16000 -g $(KFLAGS)" \
  3042.     "LNKFLAGS = -g -bI:/lib/pse.exp" "LIBS=-lcurses -lodm -lcfg"
  3043.     -@echo "]0;kermit done\c"
  3044.  
  3045. #As above but without -g in LNKFLAGS.
  3046. # Add -bbigtoc in case ld fails with TOC overflow.
  3047. aix41x25o:
  3048.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.1.1 RS/6000 or PowerPC...
  3049.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3050.     "CFLAGS= -DAIXRS -DAIX41 -DSVR4 -DSTERMIOX -DTCPSOCKET -DDIRENT \
  3051.     -DCK_ANSIC -DCLSOPN -DCK_CURSES -DCK_NEWTERM -DSELECT -DSELECT_H \
  3052.     -DIBMX25 -DNODEBUG -DNOGETUSERSHELL -qmaxmem=16000 $(KFLAGS)" \
  3053.     "LNKFLAGS = -bI:/lib/pse.exp" "LIBS=-lcurses -lodm -lcfg"
  3054.     -@echo "]0;kermit done\c"
  3055.  
  3056. #AIX 4.2 -- Use this target if the regular "make aix" doesn't work.
  3057. # Must have CK_NEWTERM or echoing is lost after curses.
  3058. # Add -bbigtoc in case ld fails with TOC overflow.  As of C-Kermit 8.0.212,
  3059. # all AIX builds 4.2 and later include large file support.
  3060. oldaix42:
  3061.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.2 or higher...
  3062.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3063.     "CFLAGS= -DAIXRS -DAIX41 -DAIX42 -DSVR4 -DSTERMIOX -DTCPSOCKET \
  3064.     -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DCK_NEWTERM -DFNFLOAT \
  3065.     -DSELECT -DSELECT_H -DNOGETUSERSHELL -qmaxmem=16000 -O \
  3066.     -DCKCPU=\\\"`uname -p`\\\" \
  3067.     -DHERALD=\\\"\ IBM\ AIX\ `uname -v`.`uname -r`\\\" \
  3068.     -D_LARGE_FILES $(KFLAGS)" "LNKFLAGS = -s" "LIBS=-lcurses -lm"
  3069.  
  3070. #AIX 4.3 - Use this target if the regular "make aix" doesn't work.
  3071. # Must NOT have CK_NEWTERM or else C-Kermit hangs after curses.
  3072. # -bbigtoc needed on some systems but not others to avoid TOC overflow.
  3073. # "man ld" says -bbigtoc makes program run slower.
  3074. oldaix43:
  3075.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.3 or higher...
  3076.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3077.     "CFLAGS= -DAIXRS -DAIX41 -DAIX43 -DSVR4 -DSTERMIOX -DTCPSOCKET \
  3078.     -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DSELECT -DSELECT_H \
  3079.     -DFNFLOAT -DNOGETUSERSHELL -qmaxmem=16000 -bbigtoc -O $(KFLAGS)" \
  3080.     "LNKFLAGS = -s" "LIBS=-lcurses -lm"
  3081.  
  3082. #AIX 4.3 with IBM X.25.
  3083. aix43x25:
  3084.     @echo "Making C-Kermit $(CKVER) for IBM AIX 4.3 with X.25..."
  3085.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3086.     "CFLAGS= -DAIXRS -DAIX41 -DAIX43 -DSVR4 -DSTERMIOX -DTCPSOCKET \
  3087.     -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DSELECT -DSELECT_H \
  3088.     -DFNFLOAT -DNOGETUSERSHELL -DIBMX25 \
  3089.     -qmaxmem=16000 -bbigtoc -O $(KFLAGS)" \
  3090.     "LNKFLAGS = -bI:/lib/pse.exp" "LIBS=-lcurses -lodm -lcfg -lm"
  3091.  
  3092. #AIX 4.3 -- Must NOT have CK_NEWTERM or else C-Kermit hangs after curses.
  3093. # -mminimal-toc needed on some systems but not others to avoid TOC overflow.
  3094. # "man ld" says -bbigtoc makes program run slower.
  3095. aix43g:
  3096.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.3 gcc...
  3097.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  3098.     "CFLAGS= -mminimal-toc -g -O -DAIXRS -DAIX41 -DAIX43 -DSVR4 \
  3099.     -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DSELECT -DSELECT_H \
  3100.     -DSTERMIOX -DTCPSOCKET -DFNFLOAT -DNOGETUSERSHELL $(KFLAGS)" \
  3101.     "LIBS=-lcurses -lm"
  3102.  
  3103. aix43gcc:
  3104.     $(MAKE) aix43g
  3105.  
  3106. # None of the following aix43gcc attempts work on a gcc-only AIX 4.3.3 box.
  3107. # It just plain can't find the math routines (fmod, pow, exp, sqrt, log10,...)
  3108. # Which is odd because nm /usr/lib/libC.a finds them...
  3109.  
  3110. #in case aix43gcc can't find its math library...
  3111. aix43gccx:
  3112.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.3 gcc...
  3113.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  3114.     "CFLAGS= -mminimal-toc -g -O -DAIXRS -DAIX41 -DAIX43 -DSVR4 \
  3115.     -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DSELECT -DSELECT_H \
  3116.     -DSTERMIOX -DTCPSOCKET -DFNFLOAT -DNOGETUSERSHELL $(KFLAGS)" \
  3117.     "LIBS= -L/usr/local/lib/gcc-lib/powerpc-ibm-aix4.3.1.0/2.95.2 \
  3118.     -lcurses -bloadmap -bnoquiet"
  3119.  
  3120. #in case aix43gccx can't find its math library...
  3121. aix43gccy:
  3122.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.3 gcc...
  3123.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  3124.     "CFLAGS= -mminimal-toc -g -O -DAIXRS -DAIX41 -DAIX43 -DSVR4 \
  3125.     -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DSELECT -DSELECT_H \
  3126.     -DSTERMIOX -DTCPSOCKET -DFNFLOAT -DNOGETUSERSHELL $(KFLAGS)" \
  3127.     "LIBS= -lcurses -bloadmap -bnoquiet"
  3128.  
  3129. #in case aix43gccx can't find its math library...
  3130. aix43gccz:
  3131.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.3 gcc...
  3132.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  3133.     "CFLAGS= -mminimal-toc -g -O -DAIXRS -DAIX41 -DAIX43 -DSVR4 \
  3134.     -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DSELECT -DSELECT_H \
  3135.     -DSTERMIOX -DTCPSOCKET -DFNFLOAT -DNOGETUSERSHELL $(KFLAGS)" \
  3136.     "LIBS= -L. -lcurses -bloadmap -bnoquiet"
  3137.  
  3138. #AIX 4.3 with MIT Kerberos 5 and Kerberos 4 compatibility mode
  3139. # Must NOT have CK_NEWTERM or else C-Kermit hangs after curses.
  3140. # -mminimal-toc needed on some systems but not others to avoid TOC overflow.
  3141. # "man ld" says -bbigtoc makes program run slower.
  3142. aix43gcc+krb5+krb4:
  3143.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.3 or higher w/Kerberos...
  3144.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  3145.     "CFLAGS= -mminimal-toc -g -O -DAIXRS -DAIX41 -DAIX43 -DSVR4 \
  3146.     -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DSELECT -DSELECT_H \
  3147.     -DSTERMIOX -DTCPSOCKET -DFNFLOAT -DNOGETUSERSHELL \
  3148.     -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 -DKRB4 -DKRB524 \
  3149.     -DCK_ENCRYPTION -DCK_DES -funsigned-char $(K5INC) $(K5INC)/krb5 \
  3150.     $(KFLAGS)" \
  3151.     "LIBS=$(K5LIB) -lcurses -lm -lkrb4 -ldes425 -lkrb5 \
  3152.     -lcom_err -lk5crypto -lcrypt -lgssapi_krb5"
  3153.  
  3154. #AIX 4.3 with MIT Kerberos 5, Kerberos 4 compatibility mode and OpenSSL
  3155. # Must NOT have CK_NEWTERM or else C-Kermit hangs after curses.
  3156. # -mminimal-toc needed on some systems but not others to avoid TOC overflow.
  3157. # "man ld" says -bbigtoc makes program run slower.
  3158. aix43gcc+krb5+krb4+openssl:
  3159.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.3 or higher w/Kerberos...
  3160.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  3161.     "CFLAGS= -mminimal-toc -g -O -DAIXRS -DAIX41 -DAIX43 -DSVR4 \
  3162.     -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DSELECT -DSELECT_H \
  3163.     -DSTERMIOX -DTCPSOCKET -DFNFLOAT -DNOGETUSERSHELL \
  3164.     -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 -DKRB4 -DKRB524 \
  3165.     -DCK_ENCRYPTION -DCK_DES -DCK_CAST -DLIBDES -DCK_SSL \
  3166.     -funsigned-char $(K5INC) $(K5INC)/krb5 $(SSLINC) $(KFLAGS)" \
  3167.     "LIBS=$(K5LIB) $(SSLLIB) -lssl -lcrypto \
  3168.     -lcurses -lm -lkrb4 -ldes425 -lkrb5 -lcom_err -lk5crypto -lcrypt \
  3169.     -lgssapi_krb5"
  3170.  
  3171. aix43gcc+openssl:
  3172.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.3 or higher w/OpenSSL...
  3173.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  3174.     "CFLAGS= -mminimal-toc -g -O -DAIXRS -DAIX41 -DAIX43 -DSVR4 \
  3175.     -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DSELECT -DSELECT_H \
  3176.     -DSTERMIOX -DTCPSOCKET -DFNFLOAT -DNOGETUSERSHELL \
  3177.     -DCK_AUTHENTICATION -DCK_SSL -funsigned-char $(SSLINC) $(KFLAGS)" \
  3178.     "LIBS=$(SSLLIB) -lssl -lcrypto -lcurses -lm -lcrypt"
  3179.  
  3180. aix44gcc:
  3181.     $(MAKE) aix43g "KFLAGS=-DAIX44 $(KFLAGS)" \
  3182.     KTARGET=$${KTARGET:-$(@)}
  3183.  
  3184. aix45gcc:
  3185.     $(MAKE) aix43g "KFLAGS=-DAIX45 $(KFLAGS)" \
  3186.     KTARGET=$${KTARGET:-$(@)}
  3187.  
  3188. aix50gcc:
  3189.     $(MAKE) aix43g "KFLAGS=-DAIX50 $(KFLAGS)" \
  3190.     KTARGET=$${KTARGET:-$(@)}
  3191.  
  3192. aix51gcc:
  3193.     $(MAKE) aix43g "KFLAGS=-DAIX51 $(KFLAGS)" \
  3194.     KTARGET=$${KTARGET:-$(@)}
  3195.  
  3196. aix52gcc:
  3197.     $(MAKE) aix43g "KFLAGS=-DAIX52 $(KFLAGS)" \
  3198.     KTARGET=$${KTARGET:-$(@)}
  3199.  
  3200. aix53gcc:
  3201.     $(MAKE) aix43g "KFLAGS=-DAIX53 $(KFLAGS)" \
  3202.     KTARGET=$${KTARGET:-$(@)}
  3203.  
  3204. #Bull DPX/2 with BOS/X, like AIX/RS6000
  3205. bulldpx2:
  3206.     @echo Making C-Kermit $(CKVER) for Bull DPX/2 with BOS/X...
  3207.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3208.     "CFLAGS= -DSVR3 -DDIRENT -DCK_ANSIC -DCKTYP_H=<sys/types.h> \
  3209.     -DCK_POLL -DNOGETUSERSHELL -DCLSOPN -DNOLEARN -O $(KFLAGS)" \
  3210.     "LNKFLAGS = -s"
  3211.  
  3212. #Sun UNIX 3.5 with gcc 2.3.3.
  3213. sunos3gcc:
  3214.     @echo Making C-Kermit $(CKVER) for Sun UNIX 3.5 and gcc...
  3215.     $(MAKE) xermit CC=gcc CC2=gcc KTARGET=$${KTARGET:-$(@)} \
  3216.     CFLAGS="-g -O -DBSD4 -DTCPSOCKET $(KFLAGS)"
  3217.  
  3218. #SunOS version 4.0, BSD environment, has saved original euid feature.
  3219. # Add "CC=/usr/ucb/cc CC2=/usr/ucb/cc" if necessary.
  3220. # Note: Including Unicode crashes the assembler in ckcuni.c.
  3221. sunos4:
  3222.     @echo Making C-Kermit $(CKVER) for SunOS 4.0, BSD environment...
  3223.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3224.     "CFLAGS= -O -DSUNOS4 -DFNFLOAT -DNOUNICODE $(KFLAGS)" \
  3225.     "LIBS=-lm"
  3226.  
  3227. #As above, but with SunLink X.25 support
  3228. sunos4x25:
  3229.     @echo SunLink X.25 support
  3230.     $(MAKE) "MAKE=$(MAKE)" sunos4 KTARGET=$${KTARGET:-$(@)} \
  3231.     "KFLAGS=$(KFLAGS) -DFNFLOAT -DSUNX25" \
  3232.     "LIBS=-lm"
  3233.  
  3234. #SUN OS version 4.1 - 4.1.3, BSD environment, has saved original euid feature.
  3235. #Uses Honey DanBer UUCP.  Requires presence of /usr/spool/locks directory.
  3236. # /var/spool/ should be a symbolic link to  /usr/spool/.
  3237. # ... or 'make xermit "CC= /usr/ucb/cc " \'
  3238. # Note: "xermit" means use the select() version of the CONNECT module.
  3239. # Note for C-Kermit 9.0: Reportedly 'you need to modify the sys/ioctl.h
  3240. # include file, i.e. comment out the "struct winsize" and "struct
  3241. # ttysize". Otherwise there will be a conflict with sys/ttycom.h (included by
  3242. # termios.h) which also declares these structs. But you need both includes.'
  3243. sunos41:
  3244.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 / BSD...
  3245.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3246.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNOUNICODE $(KFLAGS)" \
  3247.     "LIBS= $(LIBS) -lresolv -lm"
  3248.  
  3249. #As above, but compiled with gcc.  Gives 24-32K size reduction
  3250. #with gcc 2.1 or 2.2.2.  CAUTION: make sure "fixincludes" has been run on
  3251. #the include files, so gcc's are in sync with the regular Sun ones.
  3252. #This includes the curses library for fullscreen file transfer display.
  3253. #NDGPWNAM needed for GCC 2.5.6, not needed for 2.4.0, but it's uncertain
  3254. #whether it will do any harm for 2.4.0 compilation -- if so, remove it.
  3255. sunos41gcc:
  3256.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 with gcc and curses...
  3257.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
  3258.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT \
  3259.     -funsigned-char $(KFLAGS)" "LIBS= -lcurses -ltermcap -lresolv -lm"
  3260.  
  3261. # As above, but without -funsigned-char so I can see the warnings that
  3262. # everybody else will get when they use ANSI compilers that don't have this
  3263. # option (gsc = gcc signed char).
  3264. sunos41gsc:
  3265.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 with gcc and curses...
  3266.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
  3267.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT \
  3268.     $(KFLAGS)" "LIBS= -lcurses -ltermcap -lresolv -lm"
  3269.  
  3270. #As above but with ckucon.c rather than ckucns.c (for testing only)
  3271. sunos41gccfork:
  3272.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 with gcc and curses...
  3273.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
  3274.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT \
  3275.     -DNOLEARN -funsigned-char $(KFLAGS)" \
  3276.     "LIBS= -lcurses -ltermcap -lresolv -lm"
  3277.  
  3278. #as above but configured for Kerberos IV
  3279. sunos41gcc+krb4:
  3280.     @echo Making C-Kermit $(CKVER) for SunOS 4.1, gcc, curses, krb4...
  3281.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
  3282.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT \
  3283.     -DTCPSOCKET -DCK_AUTHENTICATION -DCK_KERBEROS  -DKRB4 \
  3284.     -DCK_ENCRYPTION -DCK_DES -DCK_CAST -DBIGBUFOK -funsigned-char \
  3285.     $(K4INC) $(KFLAGS)" \
  3286.     "LIBS= $(K4LIB) -lcurses -ltermcap -lresolv -lm -lkrb -ldes"
  3287.  
  3288. #as above but configured for SSL/TLS
  3289. sunos41gcc+openssl:
  3290.     @echo Making C-Kermit $(CKVER) for SunOS 4.1, gcc, curses, ssl...
  3291.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
  3292.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT \
  3293.     -DCK_AUTHENTICATION -funsigned-char \
  3294.     -DCK_SSL -DTCPSOCKET -DBIGBUFOK $(SSLINC) $(KFLAGS)" \
  3295.     "LIBS= $(SSLLIB) -lcurses -ltermcap -lresolv -lm -lssl -lcrypto"
  3296.  
  3297. #as above but configured for Kerberos IV and SSL/TLS
  3298. sunos41gcc+krb4+openssl:
  3299.     @echo Making C-Kermit $(CKVER) for SunOS 4.1, gcc, curses, krb4...
  3300.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
  3301.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT \
  3302.     -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB4 -DCK_ENCRYPTION -DCK_DES \
  3303.     -DCK_CAST -DCK_SSL -DLIBDES -DTCPSOCKET -DBIGBUFOK -funsigned-char \
  3304.     $(K4INC) $(SSLINC) $(KFLAGS)" \
  3305.     "LIBS= $(K4LIB) $(SSLLIB) \
  3306.     -lcurses -ltermcap -lresolv -lm -lkrb -lssl -lcrypto"
  3307.  
  3308. #as above but configured for Kerberos IV and ZLIB enabled SSL/TLS
  3309. sunos41gcc+krb4+openssl+zlib:
  3310.     @echo Making C-Kermit $(CKVER) for SunOS 4.1, gcc, curses, krb4...
  3311.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
  3312.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT \
  3313.     -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB4 -DCK_ENCRYPTION -DCK_DES \
  3314.     -DCK_CAST -DCK_SSL -DLIBDES -DTCPSOCKET -DBIGBUFOK -funsigned-char \
  3315.     -DZLIB $(K4INC) $(SSLINC) \
  3316.     $(KFLAGS)" \
  3317.     "LIBS= $(K4LIB) $(SSLLIB) \
  3318.     -lcurses -ltermcap -lresolv -lm -lkrb -lssl -lcrypto -lz"
  3319.  
  3320. #as above but configured for Kerberos IV and SRP and ZLIB enabled SSL/TLS
  3321. sunos41gcc+krb4+srp+openssl+zlib:
  3322.     @echo "C-Kermit $(CKVER) SunOS 4.1: gcc,curses,krb4,srp,ssl,zlib..."
  3323.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
  3324.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT \
  3325.     -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB4 -DCK_ENCRYPTION -DCK_DES \
  3326.     -DCK_CAST -DCK_SSL -DLIBDES -DTCPSOCKET -DBIGBUFOK -funsigned-char \
  3327.     -DZLIB -DCK_SRP $(K4INC) $(SRPINC) $(SSLINC) $(KFLAGS)" \
  3328.     "LIBS= $(K4LIB) $(SRPLIB) $(SSLLIB) \
  3329.     -lcurses -ltermcap -lresolv -lm -lkrb -lkrypto \
  3330.     -lsrp -lssl -lcrypto -lz"
  3331.  
  3332. #as above but configured for Kerberos IV and SRP and ZLIB enabled SSL/TLS
  3333. sunos41gcc+srp+openssl+zlib:
  3334.     @echo "C-Kermit $(CKVER) SunOS 4.1: gcc,curses,srp,ssl,zlib..."
  3335.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
  3336.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT \
  3337.     -DCK_AUTHENTICATION -DCK_ENCRYPTION -DCK_DES \
  3338.     -DCK_CAST -DCK_SSL -DLIBDES -DTCPSOCKET -DBIGBUFOK -funsigned-char \
  3339.     -DZLIB -DCK_SRP $(SRPINC) $(SSLINC) \
  3340.     $(KFLAGS)" \
  3341.     "LIBS= $(SRPLIB) $(SSLLIB) \
  3342.     -lcurses -ltermcap -lresolv -lm -lkrypto -lsrp -lssl -lcrypto -lz "
  3343.  
  3344. #SUNOS 4.1 as sunos41 above, but also with curses support
  3345. sunos41c:
  3346.     @echo Curses support
  3347.     $(MAKE) "MAKE=$(MAKE)" sunos41 KTARGET=$${KTARGET:-$(@)} \
  3348.     "KFLAGS=$(KFLAGS) -DCK_CURSES -DFNFLOAT " \
  3349.     "LIBS= -lcurses -ltermcap"
  3350.  
  3351. #As SunOS 4.1.x, gcc, configured as Internet Kermit Server.
  3352. # . NOLOCAL removes capability to make connections
  3353. # . TNCODE allows server-side Telnet negotiation.
  3354. # . used to include -lpwent, why?
  3355. # . used to include -L/usr/local/lib -lm, why?
  3356. sunos41giks:
  3357.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 with gcc for IKS...
  3358.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
  3359.     "CFLAGS= -O -DSUNOS41 -DNDGPWNAM -DFNFLOAT \
  3360.     -DNOLOCAL -DTCPSOCKET -DTNCODE -DNOPUSH $(KFLAGS)" \
  3361.     "LIBS= -lm -lresolv"
  3362.  
  3363. #SUNOS 4.1 with SunLink X.25 support
  3364. sunos41x25:
  3365.     @echo SunLink X.25 support
  3366.     $(MAKE) "MAKE=$(MAKE)" wermit KTARGET=$${KTARGET:-$(@)} \
  3367.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNOUNICODE -DFNFLOAT -DSUNX25 \
  3368.     -DNOLEARN $(KFLAGS)" "LIBS= $(LIBS) -lresolv -lm"
  3369.  
  3370. #SUNOS 4.1 with SunLink X.25 support and curses
  3371. sunos41x25c:
  3372.     @echo SunLink X.25 support + curses
  3373.     $(MAKE) "MAKE=$(MAKE)" wermit KTARGET=$${KTARGET:-$(@)} \
  3374.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNOUNICODE -DFNFLOAT -DSUNX25 \
  3375.     -DCK_CURSES -DNOLEARN $(KFLAGS)" \
  3376.     "LIBS= $(LIBS) -lcurses -ltermcap -lresolv -lm"
  3377.  
  3378. #SUN with Solaris 2.0 = SunOS 5.0.
  3379. #Mostly the same as System V R4.  Don't use this with later Solaris versions.
  3380. solaris20:
  3381.     @echo 'Making C-Kermit $(CKVER) for Sun with Solaris 2.0 and curses...'
  3382.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3383.     "CFLAGS = -O -DSVR4 -DSOLARIS -DDIRENT -DHDBUUCP -DSTERMIOX \
  3384.     -DTCPSOCKET -DCK_CURSES -DFNFLOAT -DCK_POLL $(KFLAGS)" \
  3385.     "LIBS= -lsocket -lnsl -lcurses -ltermlib -lm" "LNKFLAGS = -s"
  3386.  
  3387. #SUN with Solaris 2.0.
  3388. #As above, but built with the gcc compiler from the Cygnus CD-ROM.
  3389. solaris20g:
  3390.     @echo 'Making C-Kermit $(CKVER) for Sun Solaris 2.0, gcc, and curses..'
  3391.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3392.     "CFLAGS = -O -DSVR4 -DSOLARIS -DDIRENT -DHDBUUCP -DSTERMIOX \
  3393.     -DTCPSOCKET -DCK_CURSES -DCK_POLL -DFNFLOAT $(KFLAGS)" \
  3394.     "LIBS= -lsocket -lnsl -lcurses -ltermlib -lm" "LNKFLAGS = -s" \
  3395.     CC=/opt/cygnus-sol2-1.1/bin/gcc CC2=/opt/cygnus-sol2-1.1/bin/gcc
  3396.  
  3397. #SunOS 5.1 = Solaris 2.1.
  3398. #NOTE: A C compiler is no longer bundled with SunOS 5.1, so to compile C
  3399. #programs, you might have to change your PATH to include the directory
  3400. #/usr/ccs/bin AFTER the directory containing the compiler.  SunPRO C is
  3401. #installed by default in /opt/SUNWspro/bin.  So a sample PATH might be:
  3402. #
  3403. # /usr/local/bin:/usr/bin:/opt/SUNWspro/bin:/usr/ccs/bin:\
  3404. # /usr/ucb:/usr/sbin:/sbin:.
  3405. #
  3406. # or:
  3407. #
  3408. # /usr/openwin/bin:/export/home/SUNWspro/bin:/usr/ccs/bin:/usr/sbin:/usr/bin.
  3409. #
  3410. #NOTE 2: Compilation with the Apogee C compiler (apcc) might not work,
  3411. #because it refuses to allow "-Usun".  Reportedly, newer releases of apcc
  3412. #(such as 1.2.17) work OK, use: "make -e sunos51 CC=apcc CC2=apcc".
  3413. solaris21:
  3414.     @echo 'Making C-Kermit $(CKVER) for SunOS 5.x....'
  3415.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3416.     "CFLAGS = -O -Usun -DSVR4 -DSOLARIS -DDIRENT -DHDBUUCP -DFNFLOAT \
  3417.     -DSELECT -DNODEBUG -DSTERMIOX $(KFLAGS)" "LIBS = -lm" "LNKFLAGS = -s"
  3418.  
  3419. #Solaris 2.0 - 2.4, SunPro compiler, includes curses and TCP/IP.
  3420. #When using SUNWspro CC 2.0.1 under Solaris 2.3, be sure all cc patches
  3421. #are applied, otherwise corrupt or truncated object files can result.
  3422. #To build, set your PATH as follows:
  3423. #  /usr/local/bin:/usr/bin:/opt/SUNWspro/bin:/usr/ccs/bin:\
  3424. #  /usr/ucb:/usr/sbin:/sbin:.
  3425. # or (depending on where the compiler has been installed):
  3426. #  /usr/openwin/bin:/export/home/SUNWspro/bin:/usr/ccs/bin:/usr/sbin:/usr/bin.
  3427. #For additional optimization try using "-fast -xO4 -xdepend".
  3428. solaris2x:
  3429.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.x with SunPro cc...'
  3430.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3431.     "CFLAGS = -O -Usun -i -DSVR4 -DDIRENT -DSOLARIS -DHDBUUCP -DFNFLOAT \
  3432.     -DSELECT -DCK_CURSES -DCK_NEWTERM -DSTERMIOX -DTCPSOCKET $(KFLAGS)" \
  3433.     "LNKFLAGS = -s" "LIBS= -ltermlib -lsocket -lnsl -lm -lresolv"
  3434.  
  3435. #as above but configured for Kerberos IV
  3436. solaris2x+krb4:
  3437.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.x, SunPro cc, krb4...'
  3438.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3439.     "CFLAGS = -O -Usun -i -DSVR4 -DDIRENT -DSOLARIS -DHDBUUCP -DFNFLOAT \
  3440.     -DSELECT -DCK_CURSES -DCK_NEWTERM -DSTERMIOX -DTCPSOCKET  \
  3441.     -DCK_AUTHENTICATION -DCK_KERBEROS  -DKRB4 \
  3442.     -DCK_ENCRYPTION -DCK_DES -DCK_CAST $(K4INC) $(KFLAGS)" \
  3443.     "LNKFLAGS = -s" \
  3444.     "LIBS= $(K4LIB) -ltermlib -lsocket -lnsl -lm -lresolv -lkrb -ldes"
  3445.  
  3446. #C-Kermit for Solaris 2.0-2.4 compiled with gcc, includes curses and TCP/IP.
  3447. #Change -O2 to -O if -O2 gives trouble.
  3448. #Remove -Usun if it causes trouble.
  3449. #Your PATH should start with something like:
  3450. #  /usr/local/gnu/bin:/usr/ccs/bin:
  3451. #Produces a huge executable -- strip with /usr/ccs/bin/strip (not Gnu strip).
  3452. #Also don't add "LNKFLAGS = -s" -- strip manually instead.
  3453. #Also note: this can NOT be linked statically - Sun makes it impossible.
  3454. #And for Solaris 2.4, you might have to replace:
  3455. # /usr/local/lib/gcc-lib/i486-sun-solaris2/2.4.5/include/sys/stat.h
  3456. #with /usr/include/sys/stat.h.
  3457. solaris2xg:
  3458.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.x with GNU cc...'
  3459.     @echo 'Please read the comments that accompany the solaris2xg target.'
  3460.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  3461.     "CFLAGS = -g -O -Usun -DSVR4 -DSOLARIS -DSTERMIOX -DSELECT -DFNFLOAT \
  3462.     -DCK_CURSES -DCK_NEWTERM -DDIRENT -DHDBUUCP -DTCPSOCKET $(KFLAGS)" \
  3463.     "LIBS= -ltermlib -lsocket -lnsl -lm -lresolv $(LIBS)"
  3464.  
  3465. #ditto but no curses.
  3466. solaris2xgnc:
  3467.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.x with GNU cc...'
  3468.     @echo 'Please read the comments that accompany the solaris2xg target.'
  3469.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  3470.     "CFLAGS = -g -O -Usun -DSVR4 -DSOLARIS -DSTERMIOX -DSELECT -DFNFLOAT \
  3471.     -DDIRENT -DHDBUUCP -DTCPSOCKET $(KFLAGS)" \
  3472.     "LIBS= -lsocket -lnsl -lm -lresolv $(LIBS)"
  3473.  
  3474. #and with Kerberos IV
  3475. solaris2xg+krb4:
  3476.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.x with GNU cc, krb4...'
  3477.     @echo 'Please read the comments that accompany the solaris2xg target.'
  3478.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  3479.     "CFLAGS = -g -O -Usun -DSVR4 -DSOLARIS -DSTERMIOX -DSELECT -DFNFLOAT \
  3480.     -DCK_CURSES -DCK_NEWTERM -DDIRENT -DHDBUUCP -DTCPSOCKET \
  3481.     -DCK_AUTHENTICATION -DCK_KERBEROS  -DKRB4 -DCK_ENCRYPTION \
  3482.     -DCK_DES -DCK_CAST -DBIGBUFOK $(K4INC) $(KFLAGS)" \
  3483.     "LIBS= $(K4LIB) -ltermlib -lsocket -lnsl -lm -lresolv -lkrb -ldes \
  3484.     $(LIBS)"
  3485.  
  3486. #and with OpenSSL,ZLIB,PAM,SHADOW
  3487. solaris2xg+openssl+zlib+pam+shadow:
  3488.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.x with gcc, OpenSSL...'
  3489.     @echo 'Please read the comments that accompany the solaris2xg target.'
  3490.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  3491.     "CFLAGS = -g -O -Usun -DSVR4 -DSOLARIS -DSTERMIOX -DSELECT -DFNFLOAT \
  3492.     -DCK_CURSES -DCK_NEWTERM -DDIRENT -DHDBUUCP -DTCPSOCKET \
  3493.     -DCK_AUTHENTICATION -DCK_SSL -DCK_PAM -DCK_SHADOW  -DZLIB \
  3494.     -DBIGBUFOK $(SSLINC) $(KFLAGS)" \
  3495.     "LIBS= $(SSLLIB) -ltermlib \
  3496.     -lsocket -lnsl -lm -lresolv -lssl -lcrypto -lpam -lz"
  3497.  
  3498. #Ditto but with GCC 3.1 in which you have to specify 32-bit with -m32.
  3499. #In Solaris 9 (and maybe 8) you'll also need specifiy the Library path.
  3500. #Reportedly this can be done here, but only with:
  3501. # crle -l /usr/lib:/usr/local/ssl/lib
  3502. #prior to building.  Note: 64-bit not tested with SSL.
  3503. #For no-crypto 64-bit builds see the solaris9g64 target.
  3504. solaris2xg32+openssl+zlib+pam+shadow:
  3505.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.x with gcc, OpenSSL...'
  3506.     @echo 'Please read the comments that accompany the solaris2xg target.'
  3507.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC="gcc -m32" CC2="gcc -m32" \
  3508.     "CFLAGS = -g -O -Usun -DSVR4 -DSOLARIS -DSTERMIOX -DSELECT -DFNFLOAT \
  3509.     -DCK_CURSES -DCK_NEWTERM -DDIRENT -DHDBUUCP -DTCPSOCKET \
  3510.     -DCK_AUTHENTICATION -DCK_SSL -DCK_PAM -DCK_SHADOW  -DZLIB \
  3511.     -DBIGBUFOK $(SSLINC) $(KFLAGS)" \
  3512.     "LIBS= $(SSLLIB) -ltermlib \
  3513.     -lsocket -lnsl -lm -lresolv -lssl -lcrypto -lpam -lz"
  3514.  
  3515. #and with Krb5,Krb4,OpenSSL,SHADOW
  3516. solaris2xg+krb5+krb4+openssl+shadow:
  3517.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.x with gcc,k5,k4,ssl...'
  3518.     @echo 'Please read the comments that accompany the solaris2xg target.'
  3519.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  3520.     "CFLAGS = -O -Usun -DSVR4 -DSOLARIS -DSTERMIOX -DSELECT -DFNFLOAT \
  3521.     -DCK_CURSES -DCK_NEWTERM -DDIRENT -DHDBUUCP -DTCPSOCKET \
  3522.     -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 -DKRB4 -DKRB524 \
  3523.     -DCK_ENCRYPTION -DCK_SSL -DCK_DES -DCK_CAST -DBIGBUFOK \
  3524.     $(K5INC) $(K5INC)/krb5 $(SSLINC) $(KFLAGS)" \
  3525.     "LIBS= $(K5LIB) $(SSLLIB) -ltermlib -lsocket -lnsl -lm -lresolv \
  3526.     -lkrb4 -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto \
  3527.     -ldes $(LIBS)"
  3528.  
  3529. #and with OpenSSL
  3530. solaris2xg+openssl+pam+shadow:
  3531.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.x with gcc, OpenSSL...'
  3532.     @echo 'Please read the comments that accompany the solaris2xg target.'
  3533.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  3534.     "CFLAGS = -g -O -Usun -DSVR4 -DSOLARIS -DSTERMIOX -DSELECT -DFNFLOAT \
  3535.     -DCK_CURSES -DCK_NEWTERM -DDIRENT -DHDBUUCP -DTCPSOCKET \
  3536.     -DCK_AUTHENTICATION -DCK_SSL -DCK_PAM -DCK_SHADOW \
  3537.     -DBIGBUFOK $(SSLINC) $(KFLAGS)" \
  3538.     "LIBS= $(SSLLIB) -ltermlib \
  3539.     -lsocket -lnsl -lm -lresolv -lssl -lcrypto -lpam"
  3540.  
  3541. solaris2xg+openssl+zlib+srp+pam+shadow:    
  3542.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.x with gcc, OpenSSL...'
  3543.     @echo 'Please read the comments that accompany the solaris2xg target.'
  3544.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  3545.     "CFLAGS = -g -O -Usun -DSVR4 -DSOLARIS -DSTERMIOX -DSELECT -DFNFLOAT \
  3546.     -DCK_CURSES -DCK_NEWTERM -DDIRENT -DHDBUUCP -DTCPSOCKET -DBIGBUFOK \
  3547.     -DCK_AUTHENTICATION -DCK_ENCRYPTION -DCK_DES -DLIBDES -DCK_CAST \
  3548.     -DCK_SSL -DCK_PAM -DCK_SHADOW -DZLIB -DCK_SRP $(SSLINC) $(KFLAGS)" \
  3549.     "LIBS= $(SSLLIB) -ltermlib -lsocket -lnsl -lm -lresolv -lsrp -lssl \
  3550.     -ldes -lkrypto -lcrypto -lpam -lz"
  3551.  
  3552. solaris22g:
  3553.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=-DPOSIX_CRTSCTS $(KFLAGS)" solaris2xg \
  3554.     KTARGET=$${KTARGET:-$(@)}
  3555.  
  3556. solaris23g:
  3557.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=-DPOSIX_CRTSCTS $(KFLAGS)" solaris2xg \
  3558.     KTARGET=$${KTARGET:-$(@)}
  3559.  
  3560. #Solaris 2.4 built with gcc
  3561. solaris24g:
  3562.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET:-$(@)} \
  3563.     solaris2xg "KFLAGS=-DSOLARIS24 -DPOSIX_CRTSCTS $(KFLAGS)"
  3564.  
  3565. #Solaris 2.0-2.3, SunPro compiler, with SunLink X.25 support.
  3566. #This will only run if user has /opt/SUNWconn/lib/libsockx25.so.1
  3567. #exists and can be dynamically linked.
  3568. #NOTE: Do not change target to xermit -- it doesn't support X.25.
  3569. solaris2x25:
  3570.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.x+X.25 with SunPro cc...'
  3571.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3572.     "CFLAGS = -O -i -Usun -DSVR4 -DSOLARIS -DDIRENT \
  3573.     -DSUNX25 -DTCPSOCKET -DHDBUUCP -DFNFLOAT -DNOLEARN \
  3574.     -DSELECT -DCK_CURSES -DCK_NEWTERM -DSTERMIOX $(KFLAGS)" \
  3575.     "LNKFLAGS = -s" \
  3576.     "LIBS= -ltermlib -L/opt/SUNWconn/lib -R/opt/SUNWconn/lib \
  3577.     -lsockx25 -lsocket -lnsl -lm -lresolv"
  3578.  
  3579. #Solaris 2.0-2.4, gcc, SunLink X.25 added.
  3580. #NOTE: Can't use xermit target with X.25.
  3581. solaris2xgx25:
  3582.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.x + X.25 with GNU cc...'
  3583.     @echo 'Please read the comments that accompany the solaris2xg entry.'
  3584.     $(MAKE) wermit CC=gcc CC2=gcc KTARGET=$${KTARGET:-$(@)} \
  3585.     "CFLAGS = -g -O -Usun -DSVR4 -DSOLARIS -DSTERMIOX -DSELECT -DSUNX25 \
  3586.     -DCK_CURSES -DCK_NEWTERM -DDIRENT -DHDBUUCP -DTCPSOCKET -DFNFLOAT \
  3587.     -DNOLEARN $(KFLAGS)" \
  3588.     "LIBS= -ltermlib -lm -L/opt/SUNWconn/lib -R/opt/SUNWconn/lib \
  3589.     -lsockx25 -lsocket -lnsl"
  3590.  
  3591. #Solaris 2.4, SunPro compiler, with SunLink X.25 support.
  3592. #This will only run if user has /opt/SUNWconn/lib/libsockx25.so.1
  3593. #exists and can be dynamically linked.
  3594. solaris24x25:
  3595.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.4+X.25 with SunPro cc...'
  3596.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3597.     "CFLAGS = -O -i -Usun -DSVR4 -DSOLARIS -DSOLARIS24 -DDIRENT -DNOLEARN \
  3598.     -DSUNX25 -DTCPSOCKET -DHDBUUCP -DFNFLOAT -DPOSIX_CRTSCTS \
  3599.     -DSELECT -DCK_CURSES -DCK_NEWTERM -DSTERMIOX $(KFLAGS)" \
  3600.     "LNKFLAGS = -s" \
  3601.     "LIBS= -ltermlib -L/opt/SUNWconn/lib -R/opt/SUNWconn/lib \
  3602.     -lsockx25 -lsocket -lnsl -lm -lresolv"
  3603.  
  3604. #Solaris 2.5, SunPro compiler, with SunLink X.25 support.
  3605. solaris25x25:
  3606.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.5+X.25 with SunPro cc...'
  3607.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3608.     "CFLAGS = -O -i -Usun -DSVR4 -DSOLARIS25 -DDIRENT -DSUNX25 \
  3609.     -DTCPSOCKET -DHDBUUCP -DSELECT -DCK_CURSES \
  3610.     -DCK_NEWTERM -DSTERMIOX -DFNFLOAT -DPOSIX_CRTSCTS -DNOLEARN \
  3611.     -I/opt/SUNWconn/include $(KFLAGS)" \
  3612.     "LIBS= -ltermlib -L/opt/SUNWconn/lib -R/opt/SUNWconn/lib \
  3613.     -lsockx25 -lsocket -lnsl -lm -lresolv"
  3614.  
  3615. solaris23:
  3616.     $(MAKE) "MAKE=$(MAKE)" solaris2x KTARGET=$${KTARGET:-$(@)} \
  3617.     "KFLAGS=$(KFLAGS)"
  3618.  
  3619. solaris24:
  3620.     $(MAKE) "MAKE=$(MAKE)" solaris2x KTARGET=$${KTARGET:-$(@)} \
  3621.     "KFLAGS=-DSOLARIS24 -DPOSIX_CRTSCTS $(KFLAGS)"
  3622.  
  3623. # template for Solaris 2.5 and above.
  3624. solaris25x:
  3625.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.x with SunPro cc...'
  3626.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3627.     "CFLAGS = -DFNFLOAT -O -Usun -i $(KFLAGS)" \
  3628.     "LNKFLAGS = -s" \
  3629.     "LIBS= -ltermlib -lsocket -lnsl -lm -lresolv $(LIBS)"
  3630.  
  3631. #Solaris 2.5, SunPro compiler, curses, TCP/IP
  3632. solaris25:
  3633.     $(MAKE) "MAKE=$(MAKE)" solaris25x KTARGET=$${KTARGET:-$(@)} \
  3634.     "KFLAGS=-DSOLARIS25 $(KFLAGS)"
  3635.  
  3636. #Solaris 2.5, SunPro compiler, curses, TCP/IP, Kerberos IV
  3637. solaris25+krb4:
  3638.     $(MAKE) "MAKE=$(MAKE)" solaris25x+krb4 KTARGET=$${KTARGET:-$(@)} \
  3639.     "KFLAGS=-DSOLARIS25 $(KFLAGS)"
  3640.  
  3641. #Solaris 2.5 built with gcc
  3642. solaris25g:
  3643.     $(MAKE) "MAKE=$(MAKE)" solaris2xg KTARGET=$${KTARGET:-$(@)} \
  3644.     "KFLAGS=-funsigned-char -DSOLARIS25 $(KFLAGS)"
  3645.  
  3646. #Solaris 2.5 built with gcc and Kerberos IV
  3647. solaris25g+krb4:
  3648.     $(MAKE) "MAKE=$(MAKE)" solaris2xg+krb4 KTARGET=$${KTARGET:-$(@)} \
  3649.     "KFLAGS=-funsigned-char -DSOLARIS25 $(KFLAGS)"
  3650.  
  3651. #Solaris 2.5 built with gcc and Kerberos V/IV, SSL, ...
  3652. solaris25g+krb5+krb4+openssl+shadow:
  3653.     $(MAKE) "MAKE=$(MAKE)" solaris2xg+krb5+krb4+openssl+shadow \
  3654.     KTARGET=$${KTARGET:-$(@)} \
  3655.     "KFLAGS=-funsigned-char -DSOLARIS25 $(KFLAGS)"
  3656.  
  3657. #Solaris 2.5, gcc, SunLink X.25 added.
  3658. solaris25gx25:
  3659.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET:-$(@)} solaris2xgx25 \
  3660.     "KFLAGS=-DSOLARIS25 $(KFLAGS)"
  3661.  
  3662. #Solaris 2.6, gcc, SunLink X.25 added.
  3663. solaris26gx25:
  3664.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET:-$(@)} solaris2xgx25 \
  3665.     "KFLAGS=-DSOLARIS26 -DCK_PAM -DCK_SHADOW $(KFLAGS)" \
  3666.     "LIBS= -lpam"
  3667.  
  3668. #Solaris 2.6, SunPro compiler, curses, TCP/IP
  3669. solaris26:
  3670.     $(MAKE) "MAKE=$(MAKE)" solaris25x KTARGET=$${KTARGET:-$(@)} \
  3671.     "KFLAGS=-DSOLARIS26 -DCK_PAM -DCK_SHADOW $(KFLAGS)" \
  3672.     "LIBS= -lpam"
  3673.  
  3674. #Solaris 2.6 with gcc
  3675. solaris26g:
  3676.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET:-$(@)} solaris2xg \
  3677.     "KFLAGS= -DSOLARIS26 -DCK_PAM -DCK_SHADOW $(KFLAGS)" \
  3678.     "LIBS = -lpam"
  3679.  
  3680. #Solaris 2.6 with gcc and SSL
  3681. solaris26g+openssl:
  3682.     $(MAKE) "MAKE=$(MAKE)"  solaris2xg+openssl+pam+shadow \
  3683.     KTARGET=$${KTARGET:-$(@)} "KFLAGS= -DSOLARIS26 $(KFLAGS)"
  3684.  
  3685. #Solaris 2.6 with gcc, no curses (e.g. because libtermlib is missing).
  3686. solaris26gnc:
  3687.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET:-$(@)} solaris2xgnc \
  3688.     "KFLAGS= -DSOLARIS26 -DCK_PAM -DCK_SHADOW $(KFLAGS)" \
  3689.     "LIBS= -lpam"
  3690.  
  3691. #Solaris 2.6, SunPro compiler, with SunLink X.25 support.
  3692. solaris26x25:
  3693.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.6+X.25 with SunPro cc...'
  3694.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3695.     "CFLAGS = -O -i -Usun -DSVR4 -DSOLARIS26 -DDIRENT -DSUNX25 \
  3696.     -DTCPSOCKET -DHDBUUCP -DSELECT -DCK_CURSES -DCK_PAM -DCK_SHADOW \
  3697.     -DCK_NEWTERM -DSTERMIOX -DFNFLOAT -DPOSIX_CRTSCTS -DNOLEARN \
  3698.     -I/opt/SUNWconn/include $(KFLAGS)" \
  3699.     "LIBS= -ltermlib -L/opt/SUNWconn/lib -R/opt/SUNWconn/lib \
  3700.     -lsockx25 -lsocket -lnsl -lm -lresolv -lpam"
  3701.  
  3702. #Solaris 7 (2.7) with Sun CC
  3703. solaris7:
  3704.     $(MAKE) "MAKE=$(MAKE)" solaris25x KTARGET=$${KTARGET:-$(@)} \
  3705.     "KFLAGS=-DSOLARIS7 -DCK_PAM -DCK_SHADOW $(KFLAGS)" \
  3706.     "LIBS= -lpam"
  3707.  
  3708. #Solaris 7 with gcc (32-bit)
  3709. solaris7g:
  3710.     $(MAKE) "MAKE=$(MAKE)" solaris2xg KTARGET=$${KTARGET:-$(@)} \
  3711.     "KFLAGS=-DSOLARIS7 -DCK_PAM -DCK_SHADOW $(KFLAGS)" \
  3712.     "LIBS= -lpam"
  3713.  
  3714. #Solaris 7 with gcc + Kerberos IV (32-bit)
  3715. solaris7g+krb4:
  3716.     $(MAKE) "MAKE=$(MAKE)" solaris2xg+krb4 KTARGET=$${KTARGET:-$(@)} \
  3717.     "KFLAGS=-DSOLARIS7 -DCK_PAM -DCK_SHADOW $(KFLAGS)" \
  3718.     "LIBS= -lpam"
  3719.  
  3720. solaris7g+openssl+zlib+pam+shadow:
  3721.     $(MAKE) "MAKE=$(MAKE)" solaris2xg+openssl+zlib+pam+shadow \
  3722.     KTARGET=$${KTARGET:-$(@)} \
  3723.     "KFLAGS=-DSOLARIS7 -DCK_PAM -DCK_SHADOW $(KFLAGS)"
  3724.  
  3725. #Solaris 7 with gcc + OpenSSL (32-bit)
  3726. solaris7g+openssl+zlib+srp+pam+shadow:
  3727.     $(MAKE) "MAKE=$(MAKE)" solaris2xg+openssl+zlib+srp+pam+shadow \
  3728.     KTARGET=$${KTARGET:-$(@)} \
  3729.     "KFLAGS=-DSOLARIS7 -DCK_PAM -DCK_SHADOW $(KFLAGS)"
  3730.  
  3731. #Solaris 8
  3732. solaris8:
  3733.     $(MAKE) "MAKE=$(MAKE)" solaris25x KTARGET=$${KTARGET:-$(@)} \
  3734.     "KFLAGS=-DSOLARIS8 -DCK_PAM -DCK_SHADOW $(KFLAGS)" \
  3735.     "LIBS= -lpam"
  3736.  
  3737. #Solaris 8 with gcc (32-bit)
  3738. solaris8g:
  3739.     $(MAKE) "MAKE=$(MAKE)" solaris2xg KTARGET=$${KTARGET:-$(@)} \
  3740.     "KFLAGS=-DSOLARIS8 -DCK_PAM -DCK_SHADOW $(KFLAGS)" \
  3741.     "LIBS= -lpam"
  3742.  
  3743. # In OpenSSL builds add -ldl if you get unresolved references for
  3744. # dlclose, dlsym, dlopen, dlerror.
  3745.  
  3746. #Solaris 8 with gcc + OpenSSL (32-bit)
  3747. solaris8g+openssl+zlib+pam+shadow:
  3748.     $(MAKE) "MAKE=$(MAKE)" solaris2xg+openssl+zlib+pam+shadow \
  3749.     KTARGET=$${KTARGET:-$(@)} "KFLAGS=-DSOLARIS8 $(KFLAGS)"
  3750.  
  3751. #Solaris 8 with gcc + Kerberos IV (32-bit)
  3752. solaris8g+krb4:
  3753.     $(MAKE) "MAKE=$(MAKE)" solaris2xg+krb4 KTARGET=$${KTARGET:-$(@)} \
  3754.     "KFLAGS=-DSOLARIS8 -DCK_PAM -DCK_SHADOW $(KFLAGS)" \
  3755.     "LIBS= -lpam"
  3756.  
  3757. solaris9nolfs:
  3758.     $(MAKE) "MAKE=$(MAKE)" solaris25x KTARGET=$${KTARGET:-$(@)} \
  3759.     "KFLAGS=-DSOLARIS9 -DCK_PAM -DCK_SHADOW -DUSE_STRERROR $(KFLAGS)" \
  3760.     "LIBS= -lpam"
  3761.  
  3762. #Solaris 9 with malloc debugging
  3763. solaris9md:
  3764.     $(MAKE) mermit KTARGET=$${KTARGET:-$(@)} \
  3765.     "CFLAGS = -DFNFLOAT -O -Usun -i -D_FILE_OFFSET_BITS=64 \
  3766.     -DSOLARIS9 -Dmalloc=dmalloc -Dfree=dfree -DMDEBUG \
  3767.     -DCK_PAM -DCK_SHADOW -DUSE_STRERROR $(KFLAGS)" \
  3768.     "LIBS= -lpam -ltermlib -lsocket -lnsl -lm -lresolv"
  3769.  
  3770. #Solaris 9 with gcc + OpenSSL + Shadow (32-bit)
  3771. #Add -DOPENSSL_097 for OpenSSL 0.9.7 or later.
  3772. solaris9g+openssl+shadow+pam+zlib:
  3773.     $(MAKE) "MAKE=$(MAKE)" solaris2xg+openssl+zlib+pam+shadow \
  3774.     KTARGET=$${KTARGET:-$(@)} \
  3775.     "KFLAGS=-DSOLARIS9 -DHDBUUCP -DDIRENT -D_FILE_OFFSET_BITS=64 \
  3776.     -DNO_DCL_INET_ATON -DZLIB -DCK_PAM -DCK_SHADOW -DLIBDES $(KFLAGS)" \
  3777.     "LIBS= -lpam -ldes425 -lz $(LIBS)"
  3778.  
  3779. #Solaris 9 with gcc + OpenSSL + Kerberos 5 + Krb4 + Shadow (32-bit)
  3780. #Add -DOPENSSL_097 for OpenSSL 0.9.7 or later.
  3781. solaris9g+krb5+krb4+openssl+shadow+pam+zlib:
  3782.     $(MAKE) "MAKE=$(MAKE)" solaris2xg+krb5+krb4+openssl+shadow \
  3783.     KTARGET=$${KTARGET:-$(@)} \
  3784.     "KFLAGS=-DSOLARIS9 -DHDBUUCP -DDIRENT -D_FILE_OFFSET_BITS=64 \
  3785.     -DNO_DCL_INET_ATON -DZLIB -DCK_PAM -DCK_SHADOW -DLIBDES $(KFLAGS)" \
  3786.     "LIBS= -lpam -ldes -lz $(LIBS)"
  3787.  
  3788. #Solaris 9 with gcc + Kerberos 4 and 5:
  3789. solaris9g+krb5+krb4:
  3790.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  3791.     "CFLAGS = -O -Usun -DSVR4 -DSOLARIS9 -DSTERMIOX -DSELECT -DFNFLOAT \
  3792.     -DCK_CURSES -DCK_NEWTERM -DDIRENT -DHDBUUCP -DTCPSOCKET \
  3793.     -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 -DKRB4 -DKRB524 \
  3794.     -D_FILE_OFFSET_BITS=64 \
  3795.     -DCK_ENCRYPTION -DCK_DES -DCK_CAST -DBIGBUFOK \
  3796.     $(K5INC) $(K5INC)/krb5 $(KFLAGS)" \
  3797.     "LIBS= $(K5LIB) -ltermlib -lsocket -lnsl -lm -lresolv \
  3798.     -lkrb4 -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto \
  3799.     -ldes $(LIBS)"
  3800.  
  3801. #Solaris 9, 10, or 11 with gcc...  
  3802. #Uses streams PTYs rather than BSD ptys as in C-Kermit 8.0 and earlier.
  3803. #This target is chained to be the secure solaris9g+xxx targets below.
  3804. solaris9g solaris10g solaris11g:
  3805.     @echo 'Making C-Kermit $(CKVER) for Solaris 9 or later with gcc'
  3806.     @case `uname -r` in \
  3807.       5.9) SOLARISVERSION="-DSOLARIS9" ;; \
  3808.       5.10) SOLARISVERSION="-DSOLARIS10" ;; \
  3809.       5.11) SOLARISVERSION="-DSOLARIS11" ;; \
  3810.       *) SOLARISVERSION="-DSOLARIS" ;; \
  3811.     esac ; \
  3812.     $(MAKE) "MAKE=$(MAKE)" CC="gcc -m32" CC2="gcc -m32" xermit \
  3813.     KTARGET=$${KTARGET:-$(@)} \
  3814.     "CFLAGS = -g -O -Usun -DSVR4 $$SOLARISVERSION -DUSE_STRERROR \
  3815.     -DSTERMIOX -DSELECT -DFNFLOAT -DCK_PAM -DCK_SHADOW -funsigned-char \
  3816.     -DHAVE_STREAMS -DHAVE_GRANTPT -DHAVE_PTSNAME -DPUSH_PTEM \
  3817.     -DPUSH_LDTERM -DPUSH_TTCOMPAT \
  3818.     -DCK_CURSES -DCK_NEWTERM -DDIRENT -DHDBUUCP -DTCPSOCKET \
  3819.     -D_FILE_OFFSET_BITS=64 $(KFLAGS)" \
  3820.     "LIBS= -ltermlib -lsocket -lnsl -lm -lresolv -lpam $(LIBS)"
  3821.  
  3822. #Solaris 9, 10, or 11 with gcc + Kerberos 5 + OpenSSL.
  3823. #OK C-Kermit 9.0.301.
  3824. solaris9g+krb5+ssl solaris10g+krb5+ssl solaris11g+krb5+ssl:
  3825.     @case `openssl version` in \
  3826.       *0.9.7*) OPENSSLOPTION="-DOPENSSL_097" ;; \
  3827.       *0.9.8*) OPENSSLOPTION="-DOPENSSL_098" ;; \
  3828.       *1.[0-9].[0-9]*) OPENSSLOPTION="-DOPENSSL_100" ;; \
  3829.       *) OPENSSLOPTION="" ;; \
  3830.     esac ; \
  3831.     HAVE_DES=''; \
  3832.     DES_LIB=''; \
  3833.     if ls $(SSLLIB)/libdes* > /dev/null 2> /dev/null; then \
  3834.           DES_LIB='-ldes425'; \
  3835.           HAVE_DES='-DCK_DES -DLIBDES'; \
  3836.               echo "HAVE DES"; \
  3837.            else echo "NO DES"; \
  3838.     fi; \
  3839.     GSSAPILIB=''; \
  3840.     K5DIR=`echo $(K5LIB) | sed 's|-L||'`; \
  3841.     echo K5DIR=$$K5DIR; \
  3842.     if ls $$K5DIR/libgssapi_krb5* > /dev/null 2> /dev/null; then \
  3843.               GSSAPILIB='-lgssapi_krb5'; \
  3844.           else GSSAPILIB='-lgssapi'; \
  3845.         fi; \
  3846.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  3847.     "CFLAGS = -O -Usun -DSVR4 -DSOLARIS9 -DSTERMIOX -DSELECT -DFNFLOAT \
  3848.     -DCK_CURSES -DCK_NEWTERM -DDIRENT -DHDBUUCP -DTCPSOCKET  -DBIGBUFOK \
  3849.     -DCK_AUTHENTICATION -DCK_SSL -DZLIB -DCK_KERBEROS -DKRB5 \
  3850.     -DCK_ENCRYPTION -DCK_CAST $$OPENSSLOPTION \
  3851.     $$HAVE_DES $(SSLINC) $(K5INC) $(K5INC)/krb5 $(KFLAGS)" \
  3852.     "LIBS= $(SSLLIB) $(K5LIB) -lz -lssl -ltermlib -lsocket -lnsl -lm \
  3853.     -lresolv -lcrypto \
  3854.     $$GSSAPILIB -lkrb5 -lcom_err -lk5crypto $$DES_LIB $(LIBS)"
  3855.  
  3856. #Solaris 9, 10, or 11 with gcc, 64 bit build.
  3857. #Peeking inside FILE struct not allowed in 64-bit world.
  3858. #DON'T USE THIS ONE ON PC ARCHITECTURE - It compiles and links but won't run.
  3859. #OK: 2009/09/25 (but not tested on Solaris 11)
  3860. solaris9g64 solaris10g64 solaris11g64:
  3861.     @echo 'Making C-Kermit $(CKVER) for Solaris 9++ with gcc 64-bit'
  3862.     @case `uname -r` in \
  3863.       5.9) SOLARISVERSION="-DSOLARIS9" ;; \
  3864.       5.10) SOLARISVERSION="-DSOLARIS10" ;; \
  3865.       5.11) SOLARISVERSION="-DSOLARIS11" ;; \
  3866.       *) SOLARISVERSION="-DSOLARIS" ;; \
  3867.     esac ; \
  3868.     $(MAKE) "MAKE=$(MAKE)" CC="gcc -m64" CC2="gcc -m64" xermit \
  3869.     KTARGET=$${KTARGET:-$(@)} \
  3870.     "CFLAGS = -g -O -Usun -funsigned-char \
  3871.     -DSVR4 $$SOLARISVERSION -DNOARROWKEYS \
  3872.     -DSTERMIOX -DSELECT -DFNFLOAT -DUSE_STRERROR -DCK_PAM -DCK_SHADOW \
  3873.     -DHAVE_STREAMS -DHAVE_GRANTPT -DHAVE_PTSNAME -DPUSH_PTEM \
  3874.     -DPUSH_LDTERM -DPUSH_TTCOMPAT \
  3875.     -DCK_CURSES -DCK_NEWTERM -DDIRENT -DHDBUUCP -DTCPSOCKET $(KFLAGS)" \
  3876.     "LIBS= -ltermlib -lsocket -lnsl -lm -lresolv -lpam $(LIBS)"
  3877.  
  3878. #Solaris 9, 10, or 11 with SunPro CC
  3879. #Uses streams PTYs rather than BSD ptys as in C-Kermit 8.0 and earlier.
  3880. #This target is chained to by the secure targets below.
  3881. #OK C-Kermit 9.0
  3882. solaris9 solaris10 solaris11:
  3883.     @echo 'Making C-Kermit $(CKVER) for Solaris 9 or later with Sun CC'
  3884.     @case `uname -r` in \
  3885.       5.9) SOLARISVERSION="-DSOLARIS9" ;; \
  3886.       5.10) SOLARISVERSION="-DSOLARIS10" ;; \
  3887.       5.11) SOLARISVERSION="-DSOLARIS11" ;; \
  3888.       *) SOLARISVERSION="-DSOLARIS" ;; \
  3889.     esac ; \
  3890.     $(MAKE) "MAKE=$(MAKE)" xermit KTARGET=$${KTARGET:-$(@)} \
  3891.     "CFLAGS = -O -Usun -DSVR4 $$SOLARISVERSION -DUSE_STRERROR \
  3892.     -DSTERMIOX -DSELECT -DFNFLOAT -DCK_PAM -DCK_SHADOW \
  3893.     -DHAVE_STREAMS -DHAVE_GRANTPT -DHAVE_PTSNAME -DPUSH_PTEM \
  3894.     -DPUSH_LDTERM -DPUSH_TTCOMPAT \
  3895.     -DCK_CURSES -DCK_NEWTERM -DDIRENT -DHDBUUCP -DTCPSOCKET \
  3896.     -D_FILE_OFFSET_BITS=64 $(KFLAGS)" \
  3897.     "LIBS= $(LIBS) -ltermlib -lsocket -lnsl -lm -lresolv -lpam"
  3898.  
  3899. # Solaris 9, 10, or 11 with OpenSSL built with Sun CC.
  3900. # Here's an example of how to invoke this target in case your OpenSSL
  3901. # headers and libraries are not in /usr/local:
  3902. #
  3903. # make solaris9+openssl "SSLINC=" "SSLLIB=" \
  3904. #  "KFLAGS= -I/opt/openssl-0.9.8k/include -L/opt/openssl-0.9.8k/lib"
  3905. #
  3906. # Don't use 'make -e' because that inhibits passing of KFLAGS to
  3907. # the base (solaris9) target.
  3908. #
  3909. #OK C-Kermit 9.0
  3910. solaris9+ssl solaris10+ssl solaris11+ssl \
  3911. solaris9+openssl solaris10+openssl solaris11+openssl:
  3912.     @echo 'Making C-Kermit $(CKVER) for Solaris 9/10/11 with OpenSSL: cc'
  3913.     @case `openssl version` in \
  3914.       *0.9.7*) OPENSSLOPTION="-DOPENSSL_097" ;; \
  3915.       *0.9.8*) OPENSSLOPTION="-DOPENSSL_098" ;; \
  3916.       *1.[0-9].[0-9]*) OPENSSLOPTION="-DOPENSSL_100" ;; \
  3917.       *) OPENSSLOPTION="" ;; \
  3918.     esac ; \
  3919.     HAVE_DES=''; \
  3920.     DES_LIB=''; \
  3921.     if ls $(SSLLIB)/libdes* > /dev/null 2> /dev/null; then \
  3922.           DES_LIB='-ldes425'; \
  3923.           HAVE_DES='-DCK_DES -DLIBDES'; \
  3924.               echo "HAVE DES"; \
  3925.            else echo "NO DES"; \
  3926.     fi; \
  3927.     $(MAKE) "MAKE=$(MAKE)" solaris9 KTARGET=$${KTARGET:-$(@)} \
  3928.     "KFLAGS=-DCK_AUTHENTICATION -DCK_SSL -DZLIB $$HAVE_DES \
  3929.     -DNO_DCL_INET_ATON $$OPENSSLOPTION $(SSLINC) $(KFLAGS)" \
  3930.     "LIBS= $(SSLLIB) -lz -lssl $$DES_LIB -lcrypto  $(LIBS)"
  3931.  
  3932. # Solaris 9 or later with OpenSSL, built with gcc.
  3933. # Remove -DNO_DCL_INET_ATON if inet_aton comes up missing.  This target nicely
  3934. # chains to the solaris{9,10,11}g target but for some reason it doesn't work if
  3935. # you add the -DFORWARD_X option, thus the solaris9g+openssl+forward_x target.
  3936. #
  3937. #OK: 2011/06/14
  3938. solaris9g+ssl solaris10g+ssl solaris11g+ssl \
  3939. solaris9g+openssl solaris10g+openssl solaris11g+openssl:
  3940.     @echo 'Making C-Kermit $(CKVER) for Solaris 9/10/11 with OpenSSL: gcc'
  3941.     @case `openssl version` in \
  3942.       *0.9.7*) OPENSSLOPTION="-DOPENSSL_097" ;; \
  3943.       *0.9.8*) OPENSSLOPTION="-DOPENSSL_098" ;; \
  3944.       *1.[0-9].[0-9]*) OPENSSLOPTION="-DOPENSSL_100" ;; \
  3945.       *) OPENSSLOPTION="" ;; \
  3946.     esac ; \
  3947.     HAVE_DES=''; \
  3948.     DES_LIB=''; \
  3949.     if ls $(SSLLIB)/libdes* > /dev/null 2> /dev/null; then \
  3950.           DES_LIB='-ldes425'; \
  3951.           HAVE_DES='-DCK_DES -DLIBDES'; \
  3952.               echo "HAVE DES"; \
  3953.            else echo "NO DES"; \
  3954.     fi; \
  3955.     $(MAKE) "MAKE=$(MAKE)" solaris9g KTARGET=$${KTARGET:-$(@)} \
  3956.     "KFLAGS=-DCK_AUTHENTICATION -DCK_SSL -DZLIB $$HAVE_DES \
  3957.     -DNO_DCL_INET_ATON $$OPENSSLOPTION $(SSLINC) $(KFLAGS)" \
  3958.     "LIBS= $(SSLLIB) -lz -lssl $$DES_LIB -lcrypto  $(LIBS)"
  3959.  
  3960. # Solaris 9 or later with gcc + OpenSSL + Shadow (32-bit).
  3961. # Remove -DNO_DCL_INET_ATON if inet_aton comes up missing.
  3962. # Includes long file support - not sure if this was available before Solaris 9.
  3963. # Detects Solaris version automatically.
  3964. #
  3965. solaris9g+openssl+forward_x:
  3966.     @echo 'Making C-Kermit $(CKVER) for Solaris 9 or later with OpenSSL...'
  3967.     @case `openssl version` in \
  3968.       *0.9.7*) OPENSSLOPTION="-DOPENSSL_097" ;; \
  3969.       *0.9.8*) OPENSSLOPTION="-DOPENSSL_098" ;; \
  3970.       *1.[0-9].[0-9]*) OPENSSLOPTION="-DOPENSSL_100" ;; \
  3971.       *) OPENSSLOPTION="" ;; \
  3972.     esac ; case `uname -r` in \
  3973.       5.9) SOLARISVERSION="-DSOLARIS9" ;; \
  3974.       5.10) SOLARISVERSION="-DSOLARIS10" ;; \
  3975.       5.11) SOLARISVERSION="-DSOLARIS11" ;; \
  3976.       *) SOLARISVERSION="-DSOLARIS" ;; \
  3977.     esac ; \
  3978.     $(MAKE) xermit     KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  3979.     "CFLAGS = -g -O -Usun -DSVR4 $$SOLARISVERSION \
  3980.     -DHAVE_STREAMS -DHAVE_GRANTPT -DHAVE_PTSNAME -DPUSH_PTEM \
  3981.     -DPUSH_LDTERM -DPUSH_TTCOMPAT \
  3982.     -DSTERMIOX -DSELECT -DFNFLOAT -DBIGBUFOK -D_FILE_OFFSET_BITS=64 \
  3983.     -DCK_AUTHENTICATION -DCK_SSL -DCK_PAM -DCK_SHADOW -DZLIB -DLIBDES \
  3984.     -DFORWARD_X $$OPENSSLOPTION $(SSLINC) $(KFLAGS)" \
  3985.     "LIBS= $(SSLLIB) -lpam -ldes425 -lz -ltermlib \
  3986.     -lsocket -lnsl -lm -lresolv -lssl -lcrypto -lpam -lz $(LIBS)"
  3987.  
  3988. # These two should be folded in with the ones just above.
  3989.  
  3990. #Solaris 9 with gcc 3.1 + OpenSSL (32-bit)
  3991. solaris9g+openssl+zlib+pam+shadow:
  3992.     $(MAKE) "MAKE=$(MAKE)" solaris2xg32+openssl+zlib+pam+shadow \
  3993.     KTARGET=$${KTARGET:-$(@)} \
  3994.     "KFLAGS=-DSOLARIS9 -DUSE_STRERROR $(KFLAGS)"
  3995.  
  3996. #Solaris 10 with gcc 3.1 + OpenSSL (32-bit)
  3997. solaris10g+openssl+zlib+pam+shadow:
  3998.     $(MAKE) "MAKE=$(MAKE)" solaris2xg32+openssl+zlib+pam+shadow \
  3999.     KTARGET=$${KTARGET:-$(@)} \
  4000.     "KFLAGS=-DSOLARIS10 -DUSE_STRERROR $(KFLAGS)"
  4001.  
  4002. #The following (old, old) sunosxxx entries are for debugging and testing only.
  4003.  
  4004. sunos41x:
  4005.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4006.     "CFLAGS= -O -DSUNOS41 -DDIRENT -DNOTLOG -DNOMSEND \
  4007.     -DNOUUCP -DNOSIGWINCH -DNOREDIRECT -DNOPUSH -DNOCCTRAP \
  4008.     -DNOICP -DNOLOCAL $(KFLAGS)"
  4009.  
  4010. #SunOS 4.1.x, debugging with Pure Software, Inc., Purify 2 (commercial runtime
  4011. #error-detection software for catching wild array references, etc).
  4012. #Before running the resulting wermit, you'll also need to define and export
  4013. #the following environment variables (as in this example):
  4014. #PURIFYHOME=/usr/local/purify ; export PURIFYHOME
  4015. #PURIFYCACHEDIR=/tmp ; export PURIFYCACHEDIR
  4016. sunos41cp:
  4017.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 / BSD / Curses / Purify...
  4018.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4019.     "CC2= purify -cache_dir=/usr/tmp cc" \
  4020.     "CFLAGS= -g -DSUNOS41 -DHDBUUCP -DDIRENT -DTCPSOCKET \
  4021.     -DSAVEDUID -DCK_CURSES $(KFLAGS)" \
  4022.     "LIBS= -lcurses -ltermcap"
  4023.  
  4024. #SunOS 4.1 with malloc debugger
  4025. sunos41md:
  4026.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 malloc debug...
  4027.     $(MAKE) mermit KTARGET=$${KTARGET:-$(@)} \
  4028.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DDIRENT -DTCPSOCKET \
  4029.     -DSAVEDUID $(KFLAGS) -Dmalloc=dmalloc -Dfree=dfree -DMDEBUG"
  4030.  
  4031. sunos41gmd:
  4032.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 with gcc and curses...
  4033.     $(MAKE) mermit KTARGET=$${KTARGET:-$(@)} "CC= gcc " "CC2= gcc" \
  4034.     "CFLAGS= -g -DSUNOS41 -DHDBUUCP -DDIRENT -DTCPSOCKET \
  4035.     -DNDGPWNAM -DSAVEDUID -DCK_CURSES -DRLOGCODE \
  4036.     $(KFLAGS) -Dmalloc=dmalloc -Dfree=dfree -DMDEBUG" \
  4037.     "LIBS= -lcurses -ltermcap"
  4038.  
  4039. #SunOS version 4.1, gcc, profiling with gprof, no debugging.
  4040. #To get profile, "make sunos41p" (on Sun), then "./wermit".  After running
  4041. #wermit, "gprof ./wermit | lpr" (or whatever) to get execution profile.
  4042. sunos41p:
  4043.     @echo Making C-Kermit $(CKVER) for SunOS 4.x with profiling...
  4044.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC= gcc " "CC2= gcc" \
  4045.     "CFLAGS= -DSUNOS41 -DNODEBUG -DSAVEDUID -DDIRENT -DTCPSOCKET \
  4046.     -DNDGPWNAM $(KFLAGS) -pg" "LNKFLAGS = -pg"
  4047.  
  4048. #SunOS version 4.1 or later, BSD environment, minimum features.
  4049. sunos41min:
  4050.     @echo Minimum interactive
  4051.     $(MAKE) "MAKE=$(MAKE)" sunos41 KTARGET=$${KTARGET:-$(@)} \
  4052.     "KFLAGS=-DNOSPL -DNOXMIT -DNOMSEND -DNOFRILLS -DNORETRY \
  4053.     -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG -DNOSCRIPT -DNOCSETS \
  4054.     -DNOSHOW -DNOSETKEY -DNOUUCP -DNORECALL -DNOREDIRECT \
  4055.     -DNOPUSH -DNOMDMHUP -DNOJC -DNOFDZERO -DNOESCSEQ \
  4056.     -DNONET -DCK_SMALL -DNOCKSPEED -DNOCKTIMERS -DNOLOGIN \
  4057.     -DNOCKXYZ -DNOKERBEROS -DNOMKDIR -DNOPATTERNS -DNOPERMS -DNOPIPESEND \
  4058.     -DNORECURSIVE -DNORENAME -DNORESEND -DNOSETKEY \
  4059.     -DNOTRIGGER -DNOTUNING $(KFLAGS)" "LNKFLAGS = -s"
  4060.  
  4061. #SunOS version 4.1, BSD environment, min size, command-line only...
  4062. sunos41m:
  4063.     @echo Minimum size
  4064.     $(MAKE) "MAKE=$(MAKE)" sunos41min KTARGET=$${KTARGET:-$(@)} \
  4065.     "KFLAGS=-DNOICP $(KFLAGS)"
  4066.  
  4067. #SunOS version 4.1, BSD environment, min size, cmd-line only, remote only...
  4068. #
  4069. sunos41mr:
  4070.     @echo Minimum size
  4071.     $(MAKE) "MAKE=$(MAKE)" sunos41min KTARGET=$${KTARGET:-$(@)} \
  4072.     "KFLAGS=-DNOICP -DNOLOCAL $(KFLAGS)"
  4073.  
  4074. #SunOS version 4.1, BSD environment, min size, interactive...
  4075. sunos41mi:
  4076.     @echo Minimum size
  4077.     $(MAKE) "MAKE=$(MAKE)" sunos41min KTARGET=$${KTARGET:-$(@)} \
  4078.     "KFLAGS=-DNOCMDL $(KFLAGS)"
  4079.  
  4080. #SunOS version 4.1, BSD environment, min size, interactive, remote only...
  4081. sunos41mir:
  4082.     @echo Minimum size
  4083.     $(MAKE) "MAKE=$(MAKE)" sunos41min KTARGET=$${KTARGET:-$(@)} \
  4084.     "KFLAGS=-DNOCMDL -DNOLOCAL $(KFLAGS)"
  4085.  
  4086. #SunOS 4.1, System V R3 environment (-i option omitted).
  4087. sunos41s5:
  4088.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 System V R3...
  4089.     @echo For testing purposes only - NOT for production use.
  4090.     @echo For a useable version, make sunos41 instead.
  4091.     $(MAKE) wermit "CC= /usr/5bin/cc " "CC2=/usr/5bin/cc " \
  4092.     KTARGET=$${KTARGET:-$(@)} \
  4093.     "CFLAGS = -DSUN4S5 -DDIRENT -DHDBUUCP -DNOLEARN -DCK_POLL $(KFLAGS) -O"
  4094.  
  4095. #As above, but with curses support
  4096. sunos41s5c:
  4097.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 System V R3...
  4098.     @echo Curses included.
  4099.     @echo For testing purposes only - NOT for production use.
  4100.     @echo For a useable version, make sunos41 instead.
  4101.     $(MAKE) wermit "CC= /usr/5bin/cc " "CC2=/usr/5bin/cc " \
  4102.     KTARGET=$${KTARGET:-$(@)} \
  4103.     "CFLAGS = -DSUN4S5 -DDIRENT -DHDBUUCP -DNOLEARN \
  4104.     -DCK_POLL -DCK_CURSES -DCK_NEWTERM $(KFLAGS) -O" "LIBS= -lcurses"
  4105.  
  4106. #As above, but with curses support AND net support
  4107. sunos41s5tcpc:
  4108.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 System V R3...
  4109.     @echo TCP/IP and curses included.  No debug log.
  4110.     @echo For testing purposes only - NOT for production use.
  4111.     @echo For a useable version, make sunos41 instead.
  4112.     $(MAKE) xermit "CC= /usr/5bin/cc " "CC2=/usr/5bin/cc " \
  4113.     KTARGET=$${KTARGET:-$(@)} \
  4114.     "CFLAGS = -DSUN4S5 -DDIRENT -DHDBUUCP -DCK_POLL \
  4115.     -DNODEBUG -DCK_CURSES -DCK_NEWTERM -DTCPSOCKET $(KFLAGS) -O" \
  4116.     "LIBS= -lcurses -lresolv"
  4117.  
  4118. # (End of SunOS test entries...)
  4119.  
  4120. #Apollo with Domain SR10.0 or later, BSD environment
  4121. #Reportedly, it might also help to add '-A,systype=bsd4.3' to CFLAGS.
  4122. #Reportedly, there is also a problem with getc & putc macros that can
  4123. #be handled by using '#ifdef apollo' somewhere to redefine them???
  4124. #On the other hand, other reports indicate that it works fine as-is.
  4125. #NOTE: This entry was previously like this:
  4126. #    $(MAKE) wermit "CFLAGS= -DNOFILEH -DBSD4 $(KFLAGS) -Uaegis \
  4127. #    -DTCPSOCKET -U__STDC__"
  4128. #Reports (Dec 91) indicate SR10 has an ANSI-compliant C compiler,
  4129. #in addition to an older one that claimed to be ANSI-compliant but wasn't.
  4130. #The following make entry (plus checks that are made in ckcdeb.h) detect
  4131. #which compiler is used and define the CK_ANSIC or NOANSI flags accordingly.
  4132. sr10-bsd:
  4133.     @echo Making C-Kermit $(CKVER) for Apollo SR10.0 / BSD ...
  4134.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4135.     "CFLAGS= -O -DAPOLLOSR10 -DBSD43 -DTCPSOCKET -DCK_CURSES -DNOLEARN \
  4136.     -Uaegis $(KFLAGS)" "LIBS= -lcurses -ltermcap"
  4137.  
  4138. #Apollo with Domain SR10.0 or later, System V R3 environment.
  4139. #Don't use the optimizer (-O), it causes problems at runtime.
  4140. sr10-s5r3:
  4141.     @echo Making C-Kermit $(CKVER) for Apollo SR10.0 / Sys V R3 ...
  4142.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4143.     "CFLAGS= -DNOFILEH -DSVR3 -DAPOLLOSR10 -DNOLEARN $(KFLAGS) \
  4144.     -Uaegis -U__STDC__"
  4145.  
  4146. #Apollo Domain/IX (untested, try this if sr10-bsd doesn't work)
  4147. # -DTCPSOCKET can probably be added here.
  4148. apollobsd:
  4149.     @echo Making C-Kermit $(CKVER) for Apollo Domain/IX...
  4150.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4151.     "CC= /bin/cc " "CC2= /bin/cc " \
  4152.     "CFLAGS= -DNOFILEH -DBSD4 -DAPOLLOBSD -DNOLEARN $(KFLAGS) -Uaegis"
  4153.  
  4154. #Version 7 Unix (see comments near top of makefile)
  4155. v7:
  4156.     @echo Making C-Kermit $(CKVER) for UNIX Version 7.
  4157.     @echo Read the makefile if you have trouble with this...
  4158.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4159.     "CFLAGS=-DV7 -DPROCNAME=\\\"$(PROC)\\\" \
  4160.     -DBOOTNAME=\\\"$(BOOTFILE)\\\" -DNPROCNAME=\\\"$(NPROC)\\\" \
  4161.     -DNPTYPE=$(NPTYPE) $(DIRECT) -DO_RDWR=2 -DO_NDELAY=0 -DO_SCCS_ID \
  4162.     -DNOLEARN $(KFLAGS)"
  4163.  
  4164. #AT&T UNIX System V R3, signal() is void rather than int.
  4165. #Uses dirent.h and Honey DanBer UUCP.
  4166. #Add the -i link option if necessary.
  4167. #If you get errors like "ws_row undefined" in ckutio.c, add -DNONAWS.
  4168. sys5r3:
  4169.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R3...'
  4170.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4171.     "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -DNOLEARN $(KFLAGS) -O" \
  4172.     "LNKFLAGS="
  4173.  
  4174. #As above, plus curses.
  4175. sys5r3c:
  4176.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R3 + curses...'
  4177.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4178.     "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -DCK_CURSES -DNONAWS -DNOLEARN \
  4179.     $(KFLAGS) -O" "LNKFLAGS=" "LIBS = -ltermlib"
  4180.  
  4181. #System V R3.2 for PCs built on Interactive UNIX SV/386 R4.x
  4182. #but with all calls to dup2() disabled because generic SVR3 does not have dup2.
  4183. # (The -linet library might not need to be in this one.)
  4184. sys5r32is:
  4185.     @echo 'Making C-Kermit $(CKVER) for System V/386 R32
  4186.     $(MAKE) wermit CC="$(CC)" CC2="$(CC2)" \
  4187.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -O -DNOCSETS -DNOREALPATH \
  4188.     -DUID_T=ushort -DGID_T=ushort -DI386IX -DSVR3JC -DCK_CURSES -DNONAWS \
  4189.     -DPOSIX_JC -DCK_REDIR -DCK_POLL -DDCLGETCWD -DNOFDZERO -DNOREDIRECT \
  4190.     -DNOZEXEC -DNOLEARN $(KFLAGS)" "LIBS=-lcurses -lc_s -linet"
  4191.  
  4192. #System V R3.2 for PCs built on Interactive UNIX SV/386 R4.x
  4193. #but with all calls to dup2() disabled because generic SVR3 does not have dup2.
  4194. #With TCP/IP added.
  4195. sys5r32isnet:
  4196.     @echo 'Making C-Kermit $(CKVER) for System V/386 R32 + TCP/IP
  4197.     $(MAKE) wermit CC="$(CC)" CC2="$(CC2)" \
  4198.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -O -DNOCSETS -DNOREALPATH \
  4199.     -DUID_T=ushort -DGID_T=ushort -DI386IX -DSVR3JC -DCK_CURSES -DNONAWS \
  4200.     -DPOSIX_JC -DCK_REDIR -DCK_POLL -DDCLGETCWD -DNOFDZERO -DNOREDIRECT \
  4201.     -DNOLEARN -DNOZEXEC -DTCPSOCKET $(KFLAGS)" "LIBS=-lcurses -lc_s -linet"
  4202.  
  4203. iclsys5r3:
  4204.     make sys5r3 KTARGET=$${KTARGET:-$(@)} KFLAGS=-DICLSVR3
  4205.  
  4206. #AT&T UNIX System V R3.  As above, but no ANSI prototyping.
  4207. sys5r3na:
  4208.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R3...'
  4209.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4210.     "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -DNOANSI -DNOLEARN $(KFLAGS) -O" \
  4211.     "LNKFLAGS="
  4212.  
  4213. #AT&T UNIX System V R3, for 3B computers with Wollongong TCP/IP.
  4214. sys5r3net3b:
  4215.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX SVR3/3B/Wollongong...'
  4216.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4217.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DWOLLONGONG -DNOLEARN $(KFLAGS) \
  4218.     -O" "LIBS= -lnet -lnsl_s" "LNKFLAGS ="
  4219.  
  4220. #AT&T UNIX System V R3, signal() is void rather than int.
  4221. #Uses dirent.h and Honey DanBer uucp, has <termiox.h>.
  4222. #Has <termiox.h> for RTS/CTS flow control.
  4223. sys5r3tx:
  4224.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R3...'
  4225.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4226.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DTERMIOX -DNOLEARN \
  4227.     $(KFLAGS) -i -O" "LNKFLAGS ="
  4228.  
  4229. #AT&T UNIX System V R3, signal() is void rather than int.
  4230. #Uses dirent.h and Honey DanBer uucp, has <termiox.h>.
  4231. #Has <sys/termiox.h> for RTS/CTS flow control.
  4232. sys5r3sx:
  4233.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R3...'
  4234.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4235.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DSTERMIOX -DNOLEARN \
  4236.     $(KFLAGS) -i -O" "LNKFLAGS ="
  4237.  
  4238. #AT&T UNIX System V R4.
  4239. #Has <termiox.h>.
  4240. sys5r4:
  4241.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  4242.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4243.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DTERMIOX -DNOLEARN $(KFLAGS)" \
  4244.     "LNKFLAGS = -s"
  4245.  
  4246. #AT&T UNIX System V R4 with Wollongong TCP/IP.
  4247. #Has <termiox.h>.
  4248. sys5r4net:
  4249.     @echo 'Making C-Kermit $(CKVER) for System V R4 + Wollongong TCP/IP...'
  4250.     @echo ' If sockets-library routines are missing at link time, then'
  4251.     @echo ' try the sys5r4net2 entry.'
  4252.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4253.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DNOLEARN \
  4254.     -DTERMIOX -DWOLLONGONG $(KFLAGS)" "LNKFLAGS = -s"
  4255.  
  4256. #As above, but needs libs included.
  4257. sys5r4net2:
  4258.     @echo ' PLEASE READ ckuins.txt IF YOU GET MISSING HEADER FILES.'
  4259.     @echo ' (Search for WOLLONGONG...)'
  4260.     $(MAKE) sys5r4net KTARGET=$${KTARGET:-$(@)} "LIBS= -lsocket -lnsl"
  4261.  
  4262. #As above plus curses.
  4263. sys5r4net2c:
  4264.     echo 'Making C-Kermit $(CKVER) for System V R4 + Wollongong TCP/IP...'
  4265.     @echo ' PLEASE READ ckuins.txt IF YOU GET MISSING HEADER FILES.'
  4266.     @echo ' (Search for WOLLONGONG...)'
  4267.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4268.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DNOLEARN \
  4269.     -DTERMIOX -DWOLLONGONG -DCK_CURSES $(KFLAGS)" "LNKFLAGS = -s" \
  4270.     "LIBS= -lsocket -lnsl -lcurses"
  4271.  
  4272. #DELL UNIX System V R4.
  4273. #Has <sys/termiox.h>, regular Berkeley sockets library, i.e. in.h and inet.h
  4274. #are not misplaced in sys (rather than netinet and arpa, respectively).
  4275. #Uses ANSI C constructs, advisory file locking on devices, etc.
  4276. #Warning: -DSTERMIOX enables hardware flow control (RTS/CTS), but reportedly
  4277. #this does not work with the normal drivers.  However, it might still work
  4278. #on non-Dell systems, or even Dell systems with different drivers installed.
  4279. dellsys5r4:
  4280.     @echo 'Making C-Kermit $(CKVER) for DELL UNIX System V R4...'
  4281.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4282.     "CFLAGS = -O -DSVR4 -DDELL_SVR4 -DDIRENT -DHDBUUCP \
  4283.     -DTCPSOCKET -DSTERMIOX -DCK_POLL $(KFLAGS)" \
  4284.     "LIBS= -lsocket -lnsl" "LNKFLAGS = -s"
  4285.  
  4286. #As above, curses support added...
  4287. dellsys5r4c:
  4288.     @echo 'Making C-Kermit $(CKVER) for DELL UNIX System V R4...'
  4289.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4290.     "CFLAGS = -O -DSVR4 -DDELL_SVR4 -DDIRENT -DHDBUUCP \
  4291.     -DTCPSOCKET -DSTERMIOX -DCK_CURSES -DCK_POLL \
  4292.     $(KFLAGS)" "LIBS= -lsocket -lnsl -lcurses -ltermcap" "LNKFLAGS = -s"
  4293.  
  4294. #Minimum interactive: As above, but with every conceivable option removed.
  4295. dellsys5r4mi:
  4296.     @echo 'Making C-Kermit $(CKVER) for DELL UNIX System V R4...'
  4297.     @echo 'Minimum-size interactive'
  4298.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4299.     "CFLAGS = -O -DSVR4 -DDELL_SVR4 -DDIRENT \
  4300.     -UTCPSOCKET -DNOCMDL -DNOSPL -DNOXMIT -DCK_POLL \
  4301.     -DNOMSEND -DNOFRILLS -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG \
  4302.     -DNOSCRIPT -DNOCSETS -DNOSHOW -DNOSETKEY -DNOSERVER -DNOUUCP \
  4303.     -DNOPUSH -DNOMDMHUP -DNOJC -DNOFDZERO -DNOESCSEQ  \
  4304.     $(KFLAGS)" "LNKFLAGS = -s"
  4305.  
  4306. #Command-line only version.
  4307. dellsys5r4m:
  4308.     @echo 'Making C-Kermit $(CKVER) for DELL UNIX System V R4...'
  4309.     @echo 'Command-line only'
  4310.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4311.     "CFLAGS = -O -DSVR4 -DDELL_SVR4 -DDIRENT \
  4312.     -UTCPSOCKET -DNOICP -DNOFRILLS -DNODIAL -DNODEBUG -DNOTLOG -DNOCSETS \
  4313.     -DNOSETKEY -DNOESCSEQ -DNOJC -DNOFDZERO -DCK_POLL \
  4314.     $(KFLAGS)" "LNKFLAGS = -s"
  4315.  
  4316. #AT&T UNIX System V R4.
  4317. #Has <sys/termiox.h>.
  4318. sys5r4sx:
  4319.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  4320.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4321.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DSTERMIOX -DNOLEARN \
  4322.     $(KFLAGS)" "LNKFLAGS = -s" "LIBS=$(LIBS)"
  4323.  
  4324. #AT&T UNIX System V R4.
  4325. #Has <sys/termiox.h>, regular Berkeley sockets library, i.e. in.h and inet.h
  4326. #are not misplaced in sys (rather than netinet and arpa, respectively).
  4327. #Uses ANSI C constructs, <sys/termiox.h>, etc etc.
  4328. sys5r4sxtcp:
  4329.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  4330.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4331.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP \
  4332.     -DSTERMIOX -DTCPSOCKET $(KFLAGS)" \
  4333.     "LIBS= -lsocket -lnsl $(LIBS)" "LNKFLAGS= -s"
  4334.  
  4335. #AT&T UNIX System V R4.
  4336. #As above + curses.
  4337. sys5r4sxtcpc:
  4338.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  4339.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4340.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP \
  4341.     -DSTERMIOX  -DCK_CURSES -DTCPSOCKET $(KFLAGS)" \
  4342.     "LIBS= -lsocket -lnsl -lcurses -ltermcap $(LIBS)" "LNKFLAGS = -s"
  4343.  
  4344. #AT&T UNIX System V R4.  CONSENSYS SVR4.2-1.
  4345. #Has <sys/termiox.h>, regular Berkeley sockets library, i.e. in.h and inet.h
  4346. #are not misplaced in sys (rather than netinet and arpa, respectively).
  4347. #Uses ANSI C constructs, <sys/termiox.h>, etc.
  4348. # Fullscreen -DCK_CURSES added (with curses & termcap libs)
  4349. # Submission by Robert Weiner/Programming Plus, rweiner@watsun.cc.columbia.edu
  4350. sys5r4sxtcpf:
  4351.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  4352.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4353.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP \
  4354.     -DSTERMIOX -DTCPSOCKET -DCK_CURSES $(KFLAGS)" \
  4355.     "LIBS= -lsocket -lnsl -L/usr/ccs/lib -lcurses -ltermcap" \
  4356.     "LIBS=$(LIBS)" "LNKFLAGS = -s"
  4357.  
  4358. #Smallest possible version for System V R4
  4359. s5r4m:
  4360.     @echo Minimum size
  4361.     $(MAKE) "MAKE=$(MAKE)" sys5r4sx KTARGET=$${KTARGET:-$(@)} \
  4362.     "KFLAGS=$(KFLAGS) -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG \
  4363.     -DNOSCRIPT -DNOCSETS -DNOICP -DNOMSEND -UTCPSOCKET" "LNKFLAGS = -s"
  4364.  
  4365. #Smallest possible interactive version of above
  4366. s5r4mi:
  4367.     @echo Minimum interactive
  4368.     $(MAKE) "MAKE=$(MAKE)" sys5r4sx \
  4369.     "KFLAGS=-DNOSPL -DNOXMIT -DNOMSEND -DNOFRILLS -DNOSHOW \
  4370.     -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG -DNOSCRIPT -DNOCSETS -DNOSETKEY \
  4371.     -UTCPSOCKET $(KFLAGS)" "LNKFLAGS = -s"
  4372.  
  4373. #AT&T UNIX System V R4, has <sys/termiox.h>
  4374. #ANSI C function prototyping disabled.
  4375. sys5r4sxna:
  4376.     @echo No ANSI C prototyping...
  4377.     $(MAKE) "MAKE=$(MAKE)" sys5r4sx KTARGET=$${KTARGET:-$(@)} \
  4378.     "KFLAGS=$(KFLAGS) -DNOANSI"
  4379.  
  4380. #Stratus FTX.
  4381. ftx:
  4382.     @echo 'Making C-Kermit $(CKVER) for Stratus FTX 3.x...'
  4383.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4384.     "CFLAGS = -O -DSVR4 -DFTX -DDIRENT -DHDBUUCP -DSTERMIOX \
  4385.     -DNOGETUSERSHELL -DNOLEARN +DA1.1 $(KFLAGS)" \
  4386.     "LNKFLAGS = -s" "LIBS=$(LIBS)"
  4387.  
  4388. #Stratus FTX + TCP/IP.
  4389. ftxtcp:
  4390.     @echo 'Making C-Kermit $(CKVER) for Stratus FTX 3.x...'
  4391.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4392.     "CFLAGS = -O -DSVR4 -DFTX -DDIRENT -DHDBUUCP -DNOGETUSERSHELL \
  4393.     -DSTERMIOX -DTCPSOCKET -DNO_DNS_SRV +DA1.1 $(KFLAGS)" \
  4394.     "LIBS= -lsocket -lnsl $(LIBS)" "LNKFLAGS= -s"
  4395.  
  4396. #NCR MP-RAS 2.03 or 3.02
  4397. mpras:
  4398.     @echo 'Making C-Kermit $(CKVER) for NCR MP-RAS...'
  4399.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4400.     "CFLAGS = -O -DSVR4 -DNCRMPRAS -DDIRENT -DHDBUUCP -DSTERMIOX \
  4401.     -DNOGETUSERSHELL -DUSE_FILE__CNT -DNOLEARN -DNO_DNS_SRV $(KFLAGS)" \
  4402.     "LNKFLAGS = -s" "LIBS=$(LIBS)"
  4403.  
  4404. #NCR MP-RAS 2.03 or 3.02 with TCP/IP and curses
  4405. mprastcpc:
  4406.     @echo 'Making C-Kermit $(CKVER) for NCR MP-RAS + TCP/IP + curses...'
  4407.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CFLAGS=-DTCPSOCKET \
  4408.     -DCK_CURSES -DSVR4 -DNCRMPRAS -DDIRENT -DHDBUUCP -DSTERMIOX -DNOLEARN \
  4409.     -DNOGETUSERSHELL -DNO_DNS_SRV DUSE_FILE__CNT -O $(KFLAGS)" \
  4410.     "LNKFLAGS = -s" "LIBS= -lsocket -lnsl -lcurses -ltermcap $(LIBS)"
  4411.  
  4412. #SINIX-L V5.41 - includes curses, tcp/ip - Use this one for i386.
  4413. #This version of SINIX doesn't like fdopen() or popen().
  4414. sinix541:
  4415.     @echo 'Making C-Kermit $(CKVER) for Siemens/Nixdorf SINIX V5.41/i386'
  4416.     $(MAKE) ckcpro.$(EXT) "CFLAGS = -DSINIX -DSVR4 -DDIRENT -DHDBUUCP \
  4417.     -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DSELECT -DCK_ANSIC -DNO_DNS_SRV \
  4418.     -DSNI541 -DNOGETUSERSHELL -DNONETCMD -DNOPOPEN -kansi -W0 $(KFLAGS)"
  4419.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4420.     "CFLAGS = -DSINIX -DSVR4 -DDIRENT -DHDBUUCP -DNO_DNS_SRV -DNOPOPEN \
  4421.     -DFNFLOAT -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DSELECT -DCK_ANSIC \
  4422.     -DSNI541 -DNOGETUSERSHELL -DNONETCMD -kansi -W0 -O $(KFLAGS)" \
  4423.     "LIBS= -lsocket -lnsl -lcurses -ltermcap -lm" "LNKFLAGS = -s"
  4424.  
  4425. sinix541i:
  4426.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=$(KFLAGS)" sinix541
  4427.  
  4428. #SINIX V5.42 - includes curses, tcp/ip, everything - Use this one for MIPS.
  4429. # As of C-Kermit 7.1, optimization removed -- takes (literally) forever.
  4430. sinix542:
  4431.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4432.     "CFLAGS = -DSINIX -DSVR4 -DDIRENT -DHDBUUCP -DNO_DNS_SRV \
  4433.     -DFNFLOAT -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DSELECT -DCK_ANSIC \
  4434.     -DSNI542 -DNOGETUSERSHELL -kansi -W0 $(KFLAGS)" \
  4435.     "LIBS= -lsocket -lnsl -lcurses -ltermcap -lm" "LNKFLAGS = -s"
  4436.  
  4437. #SINIX V5.42 gcc - includes curses, tcp/ip, everything.
  4438. #This one was used to build the Pyramid-architecture RM600 version
  4439. #on SINIX-P 5.42 A10 with gcc but should work for SINIX 5.42 on any other
  4440. #architecture with gcc.
  4441. sinix542g:
  4442.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC=gcc" "CC2=gcc" \
  4443.     "CFLAGS = -DSINIX -DSVR4 -DDIRENT -DHDBUUCP -DNO_DNS_SRV \
  4444.     -DFNFLOAT -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DSELECT -DCK_ANSIC \
  4445.     -DSNI542 -DNOGETUSERSHELL $(KFLAGS)" \
  4446.     "LIBS= -lsocket -lnsl -lcurses -ltermcap -lm" \
  4447.     "LNKFLAGS = -s"
  4448.  
  4449. #SINIX V5.42 - includes curses, tcp/ip, everything - Use this one for Intel.
  4450. # (Note: SNI discontinued Intel support after 5.42.)
  4451. sinix542i:
  4452.     @echo 'Making C-Kermit $(CKVER) for Siemens/Nixdorf SINIX-Z V5.42...'
  4453.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4454.     "CFLAGS = -DSINIX -DSVR4 -DDIRENT -DHDBUUCP -DFNFLOAT -DSTERMIOX \
  4455.     -DCK_CURSES -DTCPSOCKET -DSELECT -DCK_ANSIC -DNO_DNS_SRV -kansi \
  4456.     -DSNI542 $(KFLAGS)" \
  4457.     "LIBS= -lsocket -lnsl -lcurses -ltermcap -lm" \
  4458.     "LNKFLAGS = -s"
  4459.  
  4460. #Siemens Nixdorf Reliant UNIX V5.43 - includes curses, tcp/ip, everything:
  4461. # . gettimeofday() suddenly has only one arg instead of two (GTODONEARG).
  4462. # . The syntax of the Olimit specifier changed.
  4463. # . The name was changed from SINIX to Reliant UNIX in version 5.43C.
  4464. sni543:
  4465.     @echo 'Making C-Kermit $(CKVER) for Siemens/Nixdorf Reliant UNIX V5.43'
  4466.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4467.     "CFLAGS = -DSINIX -DSNI543 -DSVR4 -DDIRENT -DHDBUUCP \
  4468.     -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DSELECT -DCK_ANSIC -DGTODONEARG \
  4469.     -DNO_DNS_SRV -kansi -W0 -O -F Olimit,3100 $(KFLAGS)" \
  4470.     "LIBS= -lsocket -lnsl -lcurses -ltermcap" "LNKFLAGS = -s"
  4471.  
  4472. #Siemens Nixdorf Reliant UNIX V5.44 - Like 5.43 but with different banner.
  4473. sni544:
  4474.     @echo 'Making C-Kermit $(CKVER) for Siemens/Nixdorf Reliant UNIX V5.44'
  4475.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4476.     "CFLAGS = -DSINIX -DSNI544 -DSVR4 -DDIRENT -DHDBUUCP \
  4477.     -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DSELECT -DCK_ANSIC -DGTODONEARG \
  4478.     -DNO_DNS_SRV -kansi -W0 -O -K Olimit,3100 $(KFLAGS)" \
  4479.     "LIBS= -lsocket -lnsl -lcurses -ltermcap" "LNKFLAGS = -s"
  4480.  
  4481. #Commodore Amiga with AT&T UNIX System V R4 and TCP/IP support.
  4482. #Has <sys/termiox.h>.
  4483. svr4amiganet:
  4484.     @echo 'Making C-Kermit $(CKVER) for Amiga SVR4 + TCP/IP...'
  4485.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC=gcc" "CC2=gcc" \
  4486.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DSTERMIOX \
  4487.     -DTCPSOCKET -DCK_CURSES $(KFLAGS)" "LNKFLAGS = -s" \
  4488.     "LIBS = -lsocket -lnsl -ltermlib"
  4489.  
  4490. #SCO (Novell (Univel)) UnixWare 1.x or 2.0, no TCP/IP.
  4491. #This assumes the Novell SDK 1.0, which has <sys/termiox.h>.
  4492. #UnixWare users with the "Prime Time Freeware" CD-ROM SDK will probably have
  4493. #to use the sys5r4 entry (no termiox.h file, so no hardware flow control).
  4494. #Change -DSELECT to -DCK_POLL if -DSELECT causes problems.
  4495. # NOTE: Unixware 1.x builds have not been tried in C-Kermit 7.0.
  4496. unixware:
  4497.     $(MAKE) "MAKE=$(MAKE)" sys5r4sx KTARGET=$${KTARGET:-$(@)} \
  4498.     "KFLAGS=-DOLD_UNIXWARE -DCK_NEWTERM -DSELECT -DNOGETUSERSHELL \
  4499.     -DNOSYSLOG $(KFLAGS)" "LIBS=-lcrypt"
  4500.  
  4501. #UnixWare 1.x or 2.0 with TCP/IP and curses.
  4502. #fork()-based CONNECT - no high serial speeds.
  4503. unixwarenetc:
  4504.     $(MAKE) "MAKE=$(MAKE)" sys5r4sxtcpc KTARGET=$${KTARGET:-$(@)} \
  4505.     "KFLAGS=-DOLD_UNIXWARE -DCK_NEWTERM -DSELECT -DNOGETUSERSHELL \
  4506.     -DNOSYSLOG $(KFLAGS)" "LIBS=-lcrypt -lresolv"
  4507.  
  4508. uw10:
  4509.     $(MAKE) unixwarenetc KTARGET=$${KTARGET:-$(@)} "KFLAGS=$(KFLAGS)"
  4510.  
  4511. #This is for Unixware 2.0.x only - use unixware21 for UW 2.1.x.
  4512. #Has special library search and enables special kludge around library
  4513. #foulup regarding vfork() (which Kermit doesn't use).  Forces POSIX-style
  4514. #hangup.
  4515. unixware20:
  4516.     @echo 'Making C-Kermit $(CKVER) for UnixWare 2.0.x...'
  4517.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4518.     "CFLAGS = -O -DOLD_UNIXWARE -DUNIXWARE2 -DSELECT -DSVR4 -DDIRENT \
  4519.     -DHDBUUCP -DBIGBUFOK -DNOGETUSERSHELL -DSTERMIOX  -DCK_CURSES \
  4520.     -DTCPSOCKET -DUW200 -DFNFLOAT -DCK_NEWTERM -DNOSYSLOG $(KFLAGS)" \
  4521.     "LIBS= -lsocket -lnsl -lcurses -ltermcap -lcrypt -lgen -lm -lresolv" \
  4522.     "LNKFLAGS = -s"
  4523.  
  4524. uw20:
  4525.     $(MAKE) unixware20 KTARGET=$${KTARGET:-$(@)} "KFLAGS=$(KFLAGS)"
  4526.  
  4527. #Adds big buffers ("large memory model") - otherwise the same as UnixWare 1.x.
  4528. unixware21:
  4529.     @echo 'Making C-Kermit $(CKVER) for UnixWare 2.1.x...'
  4530.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4531.     "CFLAGS = -O -DUNIXWARE -DSELECT -DSVR4 -DDIRENT -DHDBUUCP -DBIGBUFOK \
  4532.     -DNOSYSLOG -DSTERMIOX  -DCK_CURSES -DTCPSOCKET \
  4533.     -DCK_NEWTERM -DFNFLOAT -DUNIXWARE2 $(KFLAGS)" \
  4534.     "LIBS= -lsocket -lnsl -lcurses -ltermcap -lcrypt -lm -lresolv \
  4535.     $(LIBS)" "LNKFLAGS = -s"
  4536.  
  4537. #Unixware 2.1.0
  4538. uw21:
  4539.     $(MAKE) unixware21 KTARGET=$${KTARGET:-$(@)} "KFLAGS=$(KFLAGS)"
  4540.  
  4541. #Unixware 2.1.3
  4542. uw213:
  4543.     $(MAKE) unixware21 KTARGET=$${KTARGET:-$(@)} \
  4544.     "KFLAGS=-DUSE_FILE__CNT $(KFLAGS)"
  4545.  
  4546. #Unixware 2.1 with IKSD support
  4547. uw21iksd:
  4548.     $(MAKE) unixware21 KTARGET=$${KTARGET:-$(@)} \
  4549.     "KFLAGS=-DCK_SHADOW $(KFLAGS)" "LIBS= -lgen"
  4550.  
  4551. #UnixWare 7 with tc[gs]etspeed() high serial speeds & select()-based CONNECT
  4552. #and as of C-Kermit 8.0.212, large file support (LFS).
  4553. #NOTE: This is the one we use.
  4554. unixware7t:
  4555.     @echo 'Making C-Kermit $(CKVER) for UnixWare 7 with POSIX i/o...'
  4556.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4557.     "CFLAGS = -O -DUNIXWARE -DSELECT -DSVR4 -DDIRENT -DHDBUUCP -DBIGBUFOK \
  4558.     -DFNFLOAT -DNOGETUSERSHELL -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DPOSIX \
  4559.     -DUW7 -DUSETCSETSPEED -DCK_NEWTERM -DNOLSTAT -DDCLTIMEVAL \
  4560.     -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DNEEDMDMDEFS $(KFLAGS)" \
  4561.     "LIBS=-lsocket -lnsl -lcurses -ltermcap -lcrypt -lm -lresolv $(LIBS)" \
  4562.     "LNKFLAGS = -s"
  4563.  
  4564. #UnixWare 7 - select()-based CONNECT - no POSIX i/o - no high serial speeds.
  4565. #In other words, just like the UnixWare 1 and 2 builds.
  4566. unixware7x:
  4567.     @echo 'Making C-Kermit $(CKVER) for UnixWare 7...'
  4568.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4569.     "CFLAGS = -O -DUNIXWARE -DSELECT -DSVR4 -DDIRENT -DHDBUUCP -DBIGBUFOK \
  4570.     -DUW7 -DNOGETUSERSHELL -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DNOLSTAT \
  4571.     -DFNFLOAT -DCK_NEWTERM $(KFLAGS)" \
  4572.     "LIBS=-lsocket -lnsl -lcurses -ltermcap -lcrypt -lm -lresolv $(LIBS)" \
  4573.     "LNKFLAGS = -s"
  4574.  
  4575. #UnixWare 7 with POSIX cfset[oi]speed() to allow high serial speeds.
  4576. #(but the high speeds don't work)
  4577. unixware7p:
  4578.     @echo 'Making C-Kermit $(CKVER) for UnixWare 7 with POSIX i/o...'
  4579.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4580.     "CFLAGS = -O -DUNIXWARE -DSELECT -DSVR4 -DDIRENT -DHDBUUCP -DBIGBUFOK \
  4581.     -DUW7 -DNOGETUSERSHELL -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DPOSIX \
  4582.     -DFNFLOAT -DCK_NEWTERM -DNOLSTAT $(KFLAGS)" \
  4583.     "LIBS=-lsocket -lnsl -lcurses -ltermcap -lcrypt -lm -lresolv $(LIBS)" \
  4584.     "LNKFLAGS = -s"
  4585.  
  4586. # UnixWare 7 built with gcc - This does not work at all...
  4587. # Reportedly gcc 2.8.1 is broken on Unixware 7.  Try egcs?
  4588. unixware7g:
  4589.     @echo 'Making C-Kermit $(CKVER) for UnixWare 7 with gcc...'
  4590.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4591.     "CC = gcc" "CC2 = gcc" "LNKFLAGS = -s -shlib"
  4592.     "CFLAGS = -O -DUNIXWARE -DSELECT -DSVR4 -DDIRENT -DHDBUUCP -DBIGBUFOK \
  4593.     -DUW7 -DNOGETUSERSHELL -DSTERMIOX  -DCK_CURSES -DTCPSOCKET -DNOLSTAT \
  4594.     -DFNFLOAT -DCK_NEWTERM $(KFLAGS)" \
  4595.     "LIBS=-lsocket -lnsl -lcurses -ltermcap -lcrypt -lm -lresolv $(LIBS)" \
  4596.     "LNKFLAGS = -s"
  4597.  
  4598. unixware7:
  4599.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=$(KFLAGS)" unixware7t \
  4600.     KTARGET=$${KTARGET:-$(@)}
  4601.  
  4602. uw7:
  4603.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=$(KFLAGS)" unixware7t \
  4604.     KTARGET=$${KTARGET:-$(@)}
  4605.  
  4606. #SCO OpenUNIX 8.0
  4607. ou8:
  4608.     @echo 'Making C-Kermit $(CKVER) for Open UNIX 8...'
  4609.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=-DOU8 $(KFLAGS)" unixware7t \
  4610.     KTARGET=$${KTARGET:-$(@)}
  4611.  
  4612. #UnixWare 7 with OpenSSL
  4613. uw7ssl uw7+ssl:
  4614.     @echo 'Making C-Kermit $(CKVER) for UnixWare 7 and OpenSSL...'
  4615.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4616.     "CFLAGS = -O -DCK_AUTHENTICATION -DCK_SSL -DCK_SHADOW \
  4617.     -DUNIXWARE -DSELECT -DSVR4 -DDIRENT -DHDBUUCP -DBIGBUFOK \
  4618.     -DFNFLOAT -DNOGETUSERSHELL -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DPOSIX \
  4619.     -DUW7 -DUSETCSETSPEED -DCK_NEWTERM -DNOLSTAT -DDCLTIMEVAL \
  4620.     $(SSLINC) $(KFLAGS)" \
  4621.     "LIBS=-lsocket -lnsl -lcurses -ltermcap -lcrypt -lm -lresolv \
  4622.     -lgen -lcudk70 $(SSLLIB) -lssl -lcrypto $(LIBS)" \
  4623.     "LNKFLAGS = -s"
  4624.  
  4625. #As above but includes Shadow password support needed for IKSD.
  4626. uw7iksd:
  4627.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=-DCK_SHADOW $(KFLAGS)" \
  4628.     KTARGET=$${KTARGET:-$(@)} "LIBS= -lgen" unixware7t
  4629.  
  4630. #As above but links with static API for realpath() so a binary built
  4631. #with this target on UW7.1 will also work on 7.0.  Requires SCO UDK
  4632. #rather than the stock compiler.
  4633. uw7iksdudk:
  4634.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=-DCK_SHADOW $(KFLAGS)" \
  4635.     KTARGET=$${KTARGET:-$(@)} "LIBS= -lgen -lcudk70" unixware7t
  4636.  
  4637. #ESIX SVR4.0.3 or 4.04 with TCP/IP support.
  4638. #Has <sys/termiox.h>, ANSI C function prototyping disabled.
  4639. #Add -m486 to CFLAGS if desired.
  4640. esixr4:
  4641.     @echo 'Making C-Kermit $(CKVER) for ESIX SVR4 + TCP/IP...'
  4642.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4643.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DNOANSI \
  4644.     -DSTERMIOX -DTCPSOCKET $(KFLAGS)" "LNKFLAGS = -s" \
  4645.     "LIBS = -lsocket -lnsl"
  4646.  
  4647. #AT&T UNIX System V R4.
  4648. #Has <sys/termiox.h>, Wollongong WIN/TCP TCP/IP.
  4649. sys5r4sxnet:
  4650.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  4651.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4652.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP \
  4653.     -DSTERMIOX -DWOLLONGONG $(KFLAGS)" "LNKFLAGS = -s"
  4654.  
  4655. #AT&T UNIX System V R4, no <termio.x> or <sys/termio.x>.
  4656. sys5r4nx:
  4657.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  4658.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4659.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DNOLEARN $(KFLAGS)" \
  4660.     "LNKFLAGS = -s"
  4661.  
  4662. #AT&T UNIX System V R4, no <termio.x> or <sys/termio.x>, curses, TCP/IP.
  4663. sys5r4nxnetc:
  4664.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  4665.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4666.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP \
  4667.     -DCK_CURSES -DTCPSOCKET $(KFLAGS)" \
  4668.     "LIBS = -lcurses -lsocket -lnsl -ltcpip" \
  4669.     "LNKFLAGS = -s"
  4670.  
  4671. #AT&T UNIX System V R4, no <termio.x> or <sys/termio.x>, Wollongong TCP/IP.
  4672. sys5r4nxtwg:
  4673.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  4674.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4675.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DWOLLONGONG $(KFLAGS)"
  4676.     "LNKFLAGS = -s"
  4677.  
  4678. #ICL UNIX System V R4.(DRS N/X) version :-
  4679. #UNIX System V Release 4.0 ICL DRS 6000 (SPARC)
  4680. #DRS/NX 6000 SVR4 Version 5  Level 1  Increment 4
  4681. #Has <sys/termiox.h>, regular Berkeley sockets library, i.e. in.h and inet.h
  4682. #are not misplaced in sys (rather than netinet and arpa, respectively).
  4683. #Uses ANSI C constructs, advisory file locking on devices, etc.
  4684. #Remove -lnsl if it causes trouble.
  4685. iclsys5r4:
  4686.     @echo 'Making C-Kermit $(CKVER) for ICL UNIX System V R4 (DRS N/X)'
  4687.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4688.     "CFLAGS = -O -DSVR4 -DICL_SVR4 -DDIRENT -DHDBUUCP -DNOGETUSERSHELL \
  4689.     -DSTERMIOX -DTCPSOCKET $(KFLAGS)" \
  4690.     "LIBS= -lsocket -lnsl -lresolv " "LNKFLAGS = -s"
  4691.  
  4692. #As above but for DRS/NX 4.2MP 7MPlus.
  4693. iclsys5r4m+:
  4694.     @echo 'Making C-Kermit $(CKVER) for ICL UNIX System V R4 DRS/NX 4.2MP+'
  4695.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4696.     "CFLAGS = -O -DSVR4 -DICL_SVR4 -DDIRENT -DHDBUUCP -DNOIKSD \
  4697.     -DSTERMIOX -DTCPSOCKET $(KFLAGS)" \
  4698.     "LIBS= -lsocket -lnsl -lm -lc -g -lgen " "LNKFLAGS = -s"
  4699.  
  4700. #As above but for DRS/NX 4.2MP 7MPlus with IKSD support.
  4701. iclsys5r4m+iksd:
  4702.     @echo 'Making C-Kermit $(CKVER) for ICL UNIX System V R4 DRS/NX 4.2MP+'
  4703.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4704.     "CFLAGS = -O -DSVR4 -DICL_SVR4 -DDIRENT -DHDBUUCP -DNOGETUSERSHELL \
  4705.     -DSTERMIOX -DTCPSOCKET $(KFLAGS)" \
  4706.     "LIBS= -lsocket -lnsl -lm -lc -g -lgen -lresolv " "LNKFLAGS = -s"
  4707.  
  4708. iclsys5r4_486:
  4709.     $(MAKE) "MAKE=$(MAKE)" iclsys5r4 KTARGET=$${KTARGET:-$(@)}
  4710.  
  4711. #Data General DG/UX 4.30 (System V R3) for DG AViiON, with TCP/IP support.
  4712. dgux430:
  4713.     @echo 'Making C-Kermit $(CKVER) for DG AViiON DG/UX 4.30...'
  4714.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4715.     "CFLAGS = -O -DDGUX430 -DSVR3 -DDIRENT -DTCPSOCKET \
  4716.     -DNOINADDRX -DNOGETUSERSHELL $(KFLAGS)"
  4717.  
  4718. #Data General DG/UX 4.30 for DG AViiON, with TCP/IP support with BSDisms.
  4719. dgux430bsd:
  4720.     @echo 'Making C-Kermit $(CKVER) for DG AViiON DG/UX 4.30...'
  4721.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4722.     "CFLAGS = -O -DDGUX430 -D_BSD_SOURCE -DBSD4 \
  4723.     -DNOINADDRX -DTCPSOCKET -DNOGETUSERSHELL $(KFLAGS)"
  4724.  
  4725. #Data General DG/UX 5.4 (System V R4) for DG AViiON, with TCP/IP support.
  4726. #Add -lsocket -lnsl if inet_addr comes up missing...
  4727. #Hmmm - I really think CK_POLL can be removed from this one in which case
  4728. #there is no difference between dgux540 and dgux540i.
  4729. dgux540:
  4730.     @echo 'Making C-Kermit $(CKVER) for DG AViiON DG/UX 5.40...'
  4731.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4732.     "CFLAGS = -O -DDGUX540 -DDIRENT -DHDBUUCP -DNOINADDRX \
  4733.     -DSTERMIOX -DTCPSOCKET -DCK_POLL -DNOGETUSERSHELL $(KFLAGS)"
  4734.  
  4735. #Data General DG/UX 5.40 (System V R4) for Intel AViiON, with TCP/IP support.
  4736. dgux540i:
  4737.     @echo 'Making C-Kermit $(CKVER) for DG AViiON DG/UX 5.40...'
  4738.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4739.     "CFLAGS = -O -DDGUX540 -DDIRENT -DHDBUUCP -DNOINADDRX \
  4740.     -DSTERMIOX -DTCPSOCKET -DNOGETUSERSHELL $(KFLAGS)" \
  4741.     "LIBS = -lsocket -lnsl"
  4742.  
  4743. dgux54:
  4744.     make dgux540 KTARGET=$${KTARGET:-$(@)}
  4745.  
  4746. #Data General DG/UX 5.4 (= System V R4) for DG AViiON, with TCP/IP support.
  4747. # And curses.
  4748. dgux540c:
  4749.     @echo 'Making C-Kermit $(CKVER) for DG AViiON DG/UX 5.4...'
  4750.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4751.     "CFLAGS = -O -DDGUX540 -DDIRENT -DHDBUUCP -DNOINADDRX \
  4752.     -DSTERMIOX -DTCPSOCKET -DCK_CURSES -DCK_NEWTERM -DNOGETUSERSHELL \
  4753.     $(KFLAGS)" "LIBS= -lcurses8 -ltermcap" "LNKFLAGS = -s"
  4754.  
  4755. #As above but for Intel - only difference is name library names.
  4756. dgux540ic:
  4757.     @echo 'Making C-Kermit $(CKVER) for DG AViiON DG/UX 5.40...'
  4758.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4759.     "CFLAGS = -O -DDGUX540 -DDIRENT -DHDBUUCP -DNOINADDRX \
  4760.     -DSTERMIOX -DTCPSOCKET -DCK_CURSES -DCK_NEWTERM -DNOGETUSERSHELL \
  4761.     $(KFLAGS)" "LIBS = -lsocket -lnsl -lcurses -ltermcap"
  4762.  
  4763. dgux54c:
  4764.     make dgux540c KTARGET=$${KTARGET:-$(@)}
  4765.  
  4766. #DG/UX 5.4R3.10
  4767. dgux54310:
  4768.     @echo 'Making C-Kermit $(CKVER) for DG AViiON DG/UX 5.4R3...'
  4769.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4770.     "CFLAGS = -DDGUX540 -DDGUX54310 -DDIRENT -DHDBUUCP -DSELECT \
  4771.     -DSTERMIOX -DTCPSOCKET -DCK_CURSES -DCK_NEWTERM    -DNOGETUSERSHELL \
  4772.     -DNOINADDRX $(KFLAGS)" "LIBS= -lcurses8 -ltermcap" "LNKFLAGS = -s"
  4773.  
  4774. #DG/UX 5.4R4.10 - Includes everything.
  4775. dgux54410:
  4776.     @echo 'Making C-Kermit $(CKVER) for DG/UX 5.4R4.10...'
  4777.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4778.     "CFLAGS = -O -DDGUX540 -DDGUX54410 -DDIRENT -DHDBUUCP -DSELECT \
  4779.     -DSTERMIOX -DTCPSOCKET -DCK_CURSES -DCK_NEWTERM -DNOGETUSERSHELL \
  4780.     -DNOINADDRX $(KFLAGS)" "LIBS = -lsocket -lnsl -lcurses -ltermcap"
  4781.  
  4782. #DG/UX 5.4R4.11 - Includes everything.
  4783. dgux54411:
  4784.     @echo 'Making C-Kermit $(CKVER) for DG/UX 5.4R4.11...'
  4785.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4786.     "CFLAGS = -O -DDGUX540 -DDGUX54411 -DDIRENT -DHDBUUCP -DSELECT \
  4787.     -DSTERMIOX -DTCPSOCKET -DCK_CURSES -DCK_NEWTERM -DNOGETUSERSHELL \
  4788.     -DNOINADDRX $(KFLAGS)" "LIBS = -lsocket -lnsl -lcurses -ltermcap"
  4789.  
  4790. #DG/UX 5.4R4.20 - Includes everything.
  4791. dgux54420:
  4792.     @echo 'Making C-Kermit $(CKVER) for DG/UX 5.4R4.20...'
  4793.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4794.     "CFLAGS = -O -DDGUX540 -DDGUX54420 -DDIRENT -DHDBUUCP -DSELECT \
  4795.     -DSTERMIOX -DTCPSOCKET -DCK_CURSES -DCK_NEWTERM -DNOGETUSERSHELL \
  4796.     -DNOINADDRX $(KFLAGS)" \
  4797.     "LIBS = -lsocket -lresolv -lnsl -lcurses -ltermcap"
  4798.  
  4799. #Silicon Graphics System V R3 with BSD file system (IRIS)
  4800. iris:
  4801.     @echo Making C-Kermit $(CKVER) for Silicon Graphics IRIX pre-3.3...
  4802.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4803.     "CFLAGS = -O -DSVR3 -DLONGFN -DNOLEARN $(KFLAGS) -I/usr/include/bsd" \
  4804.     "LIBS = -lbsd"
  4805.  
  4806. #Silicon Graphics IRIS System V R3
  4807. irix33:
  4808.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 3.3...'
  4809.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4810.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DNOLEARN $(KFLAGS) -O" \
  4811.     "LNKFLAGS = -s"
  4812.  
  4813. #Silicon Graphics Iris Indigo with IRIX 4.0.0 or 5.0...
  4814. #Strict ANSI C compilation, TCP/IP support included
  4815. irix40:
  4816.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 4.0...'
  4817.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4818.     "CFLAGS = -DIRIX40 -DSVR3 -DDIRENT -DHDBUUCP -DPWID_T=uid_t \
  4819.     -DCK_ANSIC -DTCPSOCKET $(KFLAGS) -O -Olimit 1600 -I/usr/include/bsd" \
  4820.     "LNKFLAGS = -s"
  4821.  
  4822. #As above, but with fullscreen display (curses) and Sun Yellow Pages support.
  4823. #NOTE: IRIX versions prior to 5 run COFF binaries.
  4824. irix40ypc:
  4825.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 4.0.'
  4826.     @echo 'Includes fullscreen file display and Sun Yellow Pages...'
  4827.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4828.     "CFLAGS = -DIRIX40 -DSVR3 -DDIRENT -DHDBUUCP -DCK_CURSES \
  4829.     -DPWID_T=uid_t -DCK_ANSIC -DTCPSOCKET $(KFLAGS) \
  4830.     -O -Olimit 1600 -I/usr/include/bsd" \
  4831.     "LIBS = -lcurses -lsun" "LNKFLAGS = -s"
  4832.  
  4833. # Silicon Graphics Iris Series 4D/*, IRIX 4.0.x, -O4 ucode optimized.
  4834. # Huge temporary file space needed for ucode optimizer.  If you get an error
  4835. # like "ugen: internal error writing to /tmp/ctmca08777: Error 0", define the
  4836. # the TMPDIR environment variable to point to a file system that has more
  4837. # space available, e.g. "setenv TMPDIR /usr/tmp".
  4838. irix40u:
  4839.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 4.0...'
  4840.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4841.     "CFLAGS = -DIRIX40 -DSVR3 -DDIRENT -DHDBUUCP -DPWID_T=uid_t \
  4842.     -DCK_ANSIC -DTCPSOCKET $(KFLAGS) -O4 -Olimit 1600" \
  4843.     "LNKFLAGS=-O4 -Olimit 1600 -s" "EXT=u"
  4844.  
  4845. # As above, with Curses Support added
  4846. irix40uc:
  4847.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 4.0...'
  4848.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4849.     "CFLAGS = -DIRIX40 -DSVR3 -DDIRENT -DHDBUUCP -DPWID_T=uid_t \
  4850.     -DCK_ANSIC -DCK_CURSES -DTCPSOCKET $(KFLAGS) -O4 -Olimit 1600" \
  4851.     "LNKFLAGS=-O4 -Olimit 1600 -s" "EXT=u" "LIBS= -lcurses -ltermcap"
  4852.  
  4853. #Silicon Graphics IRIX 5.x.
  4854. #Yellow Pages and Curses support included.
  4855. #IRIX version 5.x can run COFF or ELF binaries.
  4856. irix51:
  4857.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 5.x'
  4858.     @echo 'Includes fullscreen file display and Yellow Pages...'
  4859.     @echo 'Add -mips<n> to CFLAGS specify a particular hardware target.'
  4860.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4861.     "CFLAGS = -DIRIX51 -DSVR4 -DDIRENT -DHDBUUCP -DCK_CURSES -DCK_NEWTERM \
  4862.     -DPWID_T=uid_t -DCK_ANSIC -DTCPSOCKET -DSELECT -DNOGETUSERSHELL \
  4863.     -DSYSTIMEH -DDCLPOPEN -DDCLFDOPEN $(KFLAGS) -ansi -O -Olimit 3000" \
  4864.     "LIBS = -lcurses" "LNKFLAGS = -s"
  4865.  
  4866. #Use this one if irix51 blows up due to lack of swap space or whatever.
  4867. irix51x:
  4868.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 5.x'
  4869.     @echo 'Includes fullscreen file display and Yellow Pages...'
  4870.     @echo 'Add -mips<n> to CFLAGS specify a particular hardware target.'
  4871.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4872.     "CFLAGS = -DIRIX51 -DSVR4 -DDIRENT -DHDBUUCP -DCK_CURSES -DCK_NEWTERM \
  4873.     -DPWID_T=uid_t -DCK_ANSIC -DTCPSOCKET -DSELECT -DNOGETUSERSHELL \
  4874.     -DSYSTIMEH -DDCLPOPEN -DDCLFDOPEN $(KFLAGS)" \
  4875.     "LIBS = -lcurses" "LNKFLAGS = -s"
  4876.  
  4877. irix51ypc:
  4878.     $(MAKE) "MAKE=$(MAKE)" irix51 KTARGET=$${KTARGET:-$(@)} \
  4879.     "KFLAGS= $(KFLAGS)"
  4880.  
  4881. #IRIX 5.2 adds RTS/CTS
  4882. irix52:
  4883.     $(MAKE) "MAKE=$(MAKE)" irix51 KTARGET=$${KTARGET:-$(@)} \
  4884.     "KFLAGS=-DIRIX52 -DCK_RTSCTS $(KFLAGS)"
  4885.  
  4886. irix53:
  4887.     $(MAKE) "MAKE=$(MAKE)" irix51 KTARGET=$${KTARGET:-$(@)} \
  4888.     "KFLAGS=-DIRIX52 -DIRIX53 -DCK_RTSCTS $(KFLAGS)"
  4889.  
  4890. irix53x:
  4891.     $(MAKE) "MAKE=$(MAKE)" irix51x KTARGET=$${KTARGET:-$(@)} \
  4892.     "KFLAGS=-DIRIX52 -DIRIX53 -DCK_RTSCTS $(KFLAGS)"
  4893.  
  4894. #Silicon Graphics IRIX 6.[024] common stuff.
  4895. #Yellow Pages and Curses support included.
  4896. #IRIX version 6.0 and later runs only ELF binaries.
  4897. #Depends on code changes in ckcdeb.h that make -DIRIX6x define all
  4898. #lower IRIX6x values and IRIX51.
  4899. irix6x:
  4900.     @echo 'Includes fullscreen file display and Yellow Pages...'
  4901.     @echo 'Add -mips<n> to specify a particular hardware target.'
  4902.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4903.     "CFLAGS = -DSVR4 -DDIRENT -DHDBUUCP -DNOGETUSERSHELL \
  4904.     -DCK_CURSES -DCK_NEWTERM -DPWID_T=uid_t -DCK_ANSIC -DTCPSOCKET \
  4905.     -DSELECT -DCK_RTSCTS -O $(KFLAGS)" \
  4906.     "LIBS = -lcurses" "LNKFLAGS = -s $(LNKFLAGS)"
  4907.  
  4908. #Silicon Graphics IRIX 6.0.
  4909. irix60:
  4910.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 6.0'
  4911.     @$(MAKE) "MAKE=$(MAKE)" \
  4912.     "KFLAGS=-DIRIX60 -Olimit 2138 $(KFLAGS)" \
  4913.     irix6x KTARGET=$${KTARGET:-$(@)}
  4914.  
  4915. #Silicon Graphics IRIX 6.2.
  4916. #Serial speeds > 38400 are available in IRIX 6.2 on O-class machines only.
  4917. #Note: Olimit must be a number > 0.
  4918. irix62:
  4919.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 6.2'
  4920.     @$(MAKE) "MAKE=$(MAKE)" \
  4921.     LNKFLAGS="-Wl,-woff,84" \
  4922.     "KFLAGS=-DIRIX62 -Olimit 4700 $(KFLAGS)" \
  4923.     irix6x KTARGET=$${KTARGET:-$(@)}
  4924.  
  4925. #Silicon Graphics IRIX 6.3.
  4926. irix63:
  4927.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 6.3'
  4928.     @$(MAKE) "MAKE=$(MAKE)" irix62 KTARGET=$${KTARGET:-$(@)} \
  4929.     "KFLAGS=-DIRIX63"
  4930.  
  4931. #Silicon Graphics IRIX 6.4.
  4932. # -woff,84 to linker stops complaints about no symbols loaded from
  4933. # curses, and -woff 1110 stops complaints about unreachable "break;"
  4934. # statements in ckcpro.c among others.
  4935. # tested on SGI Octane, running IRIX 6.4 up to 115200 bps.
  4936. # -Olimit 0 means infinite.
  4937. irix64:
  4938.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 6.4'
  4939.     @$(MAKE) "MAKE=$(MAKE)" \
  4940.     LNKFLAGS="-Wl,-woff,84" \
  4941.     "KFLAGS=-DIRIX64 -DCK_RTSCTS -Olimit 3000 -woff 1110 $(KFLAGS)" \
  4942.     irix6x KTARGET=$${KTARGET:-$(@)}
  4943.  
  4944. irix64gcc:
  4945.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 6.4 gcc'
  4946.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  4947.     "CFLAGS= -DSVR4 -DIRIX64 -DDIRENT -DHDBUUCP -DNOGETUSERSHELL \
  4948.     -DSELECT -DPWID_T=uid_t -DTCPSOCKET -DNOCOTFMC \
  4949.     -DCK_ANSIC -DCK_RTSCTS -DCK_NEWTERM -DCK_CURSES \
  4950.     $(KFLAGS) -O" "LIBS= -lcurses -ltermcap -lcrypt"
  4951.  
  4952. #Note the new Optimization option syntax for MIPSpro CC 7.2.1.2m.
  4953. #See note on irix65gcc target about Large File Support (LFS).
  4954. irix65:
  4955.     @echo 'Making C-Kermit $(CKVER) for SGI IRIX 6.5'
  4956.     @$(MAKE) "MAKE=$(MAKE)" LNKFLAGS="-Wl,-woff,84" \
  4957.     "KFLAGS=-DIRIX65 -D_LARGEFILE_SOURCE -DCK_RTSCTS -OPT:Olimit=0 \
  4958.     -woff 1110,1552,1174 $(KFLAGS)" \
  4959.     irix6x KTARGET=$${KTARGET:-$(@)}
  4960.  
  4961. #Build for those that have GCC instead of MIPSpro.
  4962. #
  4963. # Large File Support note: use the define _LARGEFILE_SOURCE to enable support
  4964. # for files larger than 2GB.  This may work on releases of Irix prior to
  4965. # 6.5.xx.  To verify, check the man page for fstat and verify that off_t is a
  4966. # 64 bit value for an -n32 build.  Also check the manpage for fseek and ftell
  4967. # to verify that the fseek64 and ftell64 functions are provided.  If so, then
  4968. # LFS support should work and you can try adding -D_LARGEFILE_SOURCE to CFLAGS
  4969. # for your selected Irix target.
  4970. #
  4971. irix65gcc:
  4972.     @echo 'Making C-Kermit $(CKVER) for SGI IRIX 6.5 with gcc'
  4973.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4974.     "CC = gcc" "CC2 = gcc" \
  4975.     "CFLAGS= -DSVR4 -DIRIX65 -D_LARGEFILE_SOURCE -DDIRENT -DHDBUUCP \
  4976.     -DNOGETUSERSHELL -DSELECT -DPWID_T=uid_t -DTCPSOCKET -DNOCOTFMC \
  4977.     -DCK_ANSIC -DCK_RTSCTS -DCK_NEWTERM -DCK_CURSES \
  4978.     $(KFLAGS) -O" "LIBS= -lcurses"
  4979.  
  4980. # The 64-bit IRIX target works but presumably is no longer needed given the
  4981. # large file support in the more portable and compact 32-bit version.
  4982. irix65_64:
  4983.     @echo 'Making C-Kermit $(CKVER) 64-bit for SGI IRIX 6.5'
  4984.     @$(MAKE) "MAKE=$(MAKE)" LNKFLAGS="-Wl,-woff,84" \
  4985.     "KFLAGS=-DIRIX65 -64 -DCK_RTSCTS -OPT:Olimit=0 -woff 1110,1552,1174 \
  4986.     -DCK_64BIT $(KFLAGS)" \
  4987.     irix6x KTARGET=$${KTARGET:-$(@)}
  4988.  
  4989. #Dumb down to MIPS-2 if building on R5000 or higher...
  4990. irix65mips2:
  4991.     @echo 'Making C-Kermit $(CKVER) for SGI IRIX 6.5 MIPS-2'
  4992.     @$(MAKE) "MAKE=$(MAKE)" LNKFLAGS="-o32 -mips2 -Wl,-woff,84" \
  4993.     "KFLAGS=-DIRIX65 -DCK_RTSCTS -OPT:Olimit=0 -o32 -mips2 \
  4994.     -woff 1110,1552,1174 $(KFLAGS)" \
  4995.     irix6x KTARGET=$${KTARGET:-$(@)}
  4996.  
  4997. #Special target that adds srp, ssl, and zlib support.  This requires
  4998. #that you have pkgsrc installed instead of Irix Freeware.  See
  4999. #NetBSD.org for pkgsrc for Irix.  You will need to BUILD the srp_client
  5000. #package yourself.  Install it manually using the directions found
  5001. #in the netbsds+ssl+srp+zlib target comments.
  5002. irix65+ssl+srp+zlib:
  5003.     @echo 'Making C-Kermit $(CKVER) for IRIX 6.5 with gcc and SSL SRP ZLIB'
  5004.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  5005.     "CC = gcc" "CC2 = gcc" \
  5006.     "CFLAGS= -DIRIX65 -DSVR4 -DDIRENT -DHDBUUCP -DNOGETUSERSHELL -DSELECT \
  5007.     -DTCPSOCKET -DNOCOTFMC -DCK_NEWTERM -DPWID_T=uid_t -DCK_ANSIC \
  5008.     -I/usr/pkg/include -DCK_AUTHENTICATION -DCK_SRP -DPRE_SRP_1_4_5 \
  5009.     -DCK_RTSCTS -DCK_NCURSES -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DCK_SSL \
  5010.     -DLIBDES -DZLIB -DFNFLOAT -I/usr/pkg/include/openssl $(KFLAGS) -O" \
  5011.     "LIBS= -L/usr/pkg/lib -rpath /usr/pkg/lib -lncurses -lsrp -lgmp -ldes \
  5012.     -lssl -lkrypto -lcrypto -lcrypt -lz -lm"
  5013.  
  5014. irix6x+krb5:
  5015.     @echo 'Includes fullscreen file display and Yellow Pages...'
  5016.     @echo 'Add -mips<n> to specify a particular hardware target.'
  5017.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  5018.     "CFLAGS = -DSVR4 -DDIRENT -DHDBUUCP -DNOGETUSERSHELL \
  5019.     -DCK_CURSES -DCK_NEWTERM -DPWID_T=uid_t -DCK_ANSIC -DTCPSOCKET\
  5020.     -DSELECT -DCK_RTSCTS -O \
  5021.     -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 -DCK_ENCRYPTION -DCK_DES \
  5022.     $(K5INC) $(K5INC)/krb5 $(KFLAGS)" \
  5023.     "LIBS = -lcurses $(K5LIB) -ldes425 -lkrb5 \
  5024.     -lcom_err -lcrypto -lcrypt -lgssapi_krb5" \
  5025.     "LNKFLAGS = -s $(LNKFLAGS)"
  5026.  
  5027. irix65+krb5:
  5028.     @echo 'Making C-Kermit $(CKVER) for SGI IRIX 6.5'
  5029.     @$(MAKE) "MAKE=$(MAKE)" \
  5030.     LNKFLAGS="-Wl,-woff,84" \
  5031.     "KFLAGS=-DIRIX65 -DCK_RTSCTS -OPT:Olimit=0 -woff 1110,1552,1174 \
  5032.     $(KFLAGS)" \
  5033.     irix6x+krb5 KTARGET=$${KTARGET:-$(@)}
  5034.  
  5035. #In case they type "make sys5"...
  5036. sys5:
  5037.     $(MAKE) "MAKE=$(MAKE)" sys3 KTARGET=$${KTARGET:-$(@)}
  5038.  
  5039. #Generic ATT System III or System V (with I&D space)
  5040. sys3:
  5041.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System III'
  5042.     @echo 'or System V R2 or earlier...'
  5043.     @echo 'add -DNOMKDIR if mkdir is an undefined symbol.'
  5044.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  5045.     "CFLAGS = -DATTSV -DNOUNICODE -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL \
  5046.     -DNOINITGROUPS -DNOFTRUNCATE -DNOREALPATH -DNOLEARN $(KFLAGS) -i -O" \
  5047.     "LNKFLAGS = -i"
  5048.  
  5049. #Generic ATT System III or System V (no I&D space)
  5050. sys3nid:
  5051.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System III'
  5052.     @echo 'or System V R2 or earlier, no I&D space...'
  5053.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  5054.     "CFLAGS = -DATTSV -DNOREALPATH -DNOUNICODE -DNOSYSLOG -DNOSYMLINK \
  5055.     -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE -DNOLEARN $(KFLAGS) -O" \
  5056.     "LNKFLAGS ="
  5057.  
  5058. #Generic ATT System III or System V R2 or earlier, "no void":
  5059. #special entry to remove "Illegal pointer combination" warnings.
  5060. sys3nv:
  5061.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System III'
  5062.     @echo 'or System V R2 or earlier...'
  5063.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  5064.     "CFLAGS= -DATTSV -DNOREALPATH -DNOUNICODE -DNOSYSLOG -DNOGETUSERSHELL \
  5065.     -DNOSYMLINK -DNOFTRUNCATE -DNOINITGROUPS -DNOLEARN \
  5066.     -Dvoid=int $(KFLAGS) -i -O" \
  5067.     "LNKFLAGS = -i"
  5068.  
  5069. # AT&T 7300 UNIX PC.  As of C-Kermit 6.1, many of these entries don't work
  5070. # any more due to "Out of memory" or "Too many defines" errors during
  5071. # compilation, at least not on systems without lots of memory.  The sys3upcgc
  5072. # entry works (using gcc) with optimization removed, and might also work
  5073. # with optimization enabled on machines with larger memories.
  5074.  
  5075. #AT&T 7300/UNIX PC (3B1) systems, sys3 but special handling for internal modem.
  5076. #Link with the shared library -- the conflict with openi in shared library
  5077. #is solved with -Dopeni=xopeni.  Note that the xermit target can't be used
  5078. #for the Unix PC; there is no select().
  5079. sys3upc:
  5080.     @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC, shared lib...'
  5081.     @echo 'If shared lib causes trouble, use make sys3upcold.'
  5082.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  5083.     "CFLAGS = -O -DATT7300 -DNOMKDIR -DUSE_MEMCPY -DNOREALPATH -DNOLEARN \
  5084.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  5085.     -DNOREDIRECT -DNOGFTIMER -DNOUNICODE $(KFLAGS) -Dopeni=xopeni" \
  5086.     "CC2 = ld /lib/crt0s.o /lib/shlib.ifile" "LNKFLAGS = -s"
  5087.  
  5088. #AT&T 7300/Unix PC systems, minimum kermit for those with smaller amounts
  5089. #of memory.
  5090. sys3upcm:
  5091.     @echo Minimum interactive
  5092.     $(MAKE) "MAKE=$(MAKE)" sys3upc KTARGET=$${KTARGET:-$(@)} \
  5093.     "KFLAGS=-DNOSPL -DNOFRILLS -DNOHELP -DNODEBUG -DNOTLOG -DNOCSETS \
  5094.     -DNOSYSLOG -DNOSETKEY -DNOREALPATH"
  5095.  
  5096. #AT&T 7300/UNIX PC (3B1) systems, with curses support.
  5097. #Curses and the shared library don't get along, so we don't use the
  5098. #shared library.  We need to include CK_NEWTERM to avoid a conflict
  5099. #with curses and buffering on stdout.  Merged with submission by
  5100. #Robert Weiner/Programming Plus, rweiner@watsun.cc.columbia.edu.
  5101. #We don't need -Dopeni=xopeni since we're not using the shared library,
  5102. #but we keep it to be consistent with the other entries.
  5103. sys3upcc:
  5104.     @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC, curses...'
  5105.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  5106.     "CFLAGS = -O -DATT7300 -DNOREALPATH \
  5107.     -DCK_CURSES -DCK_NEWTERM -DNOMKDIR -DNOREDIRECT -DNOGFTIMER -DNOLEARN \
  5108.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  5109.     -DUSE_MEMCPY -DNOUNICODE $(KFLAGS) -Dopeni=xopeni" \
  5110.     "LIBS = -lcurses" "LNKFLAGS = -s"
  5111.  
  5112. #Like sys3upcc but for AT&T UNIX 3.51m (released as a patch on Fix Disk 2),
  5113. #adds hardware flow control.
  5114. att351m:
  5115.     $(MAKE) "MAKE=$(MAKE)" sys3upcc KTARGET=$${KTARGET:-$(@)} \
  5116.     "KFLAGS=-DCK_RTSCTS -DUNIX351M"
  5117.  
  5118. #As above but with gcc.
  5119. att351gm:
  5120.     $(MAKE) "MAKE=$(MAKE)" sys3upcgc KTARGET=$${KTARGET:-$(@)} \
  5121.     "KFLAGS=-DCK_RTSCTS -DUNIX351M"
  5122.  
  5123. #AT&T 7300 UNIX PC (3B1), as above, but no newterm().
  5124. sys3upcx:
  5125.     @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC, curses...'
  5126.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  5127.     "CFLAGS = -O -DATT7300 -DNOREALPATH -DNOUNICODE -DNOLEARN \
  5128.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  5129.     -DCK_CURSES -DNOMKDIR -DNOREDIRECT -DNOGFTIMER -DUSE_MEMCPY $(KFLAGS) \
  5130.     -Dopeni=xopeni" "LIBS = -lcurses -ltermcap" "LNKFLAGS = -s"
  5131.  
  5132. #AT&T 7300/UNIX PC (3B1) systems, with curses and shared library support.
  5133. sys3upcshcc:
  5134.     @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC, shared lib...'
  5135.     @echo 'With curses.  Requires shcc.'
  5136.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  5137.     "CFLAGS = -O -DATT7300 -DNOMKDIR -DNOREALPATH -DNOLEARN \
  5138.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  5139.     -DCK_NEWTERM -DCK_CURSES  -DNOREDIRECT -DNOGFTIMER \
  5140.     -DUSE_MEMCPY -DNOUNICODE $(KFLAGS) -Dopeni=xopeni" \
  5141.     "LNKFLAGS = -i -s" "CC = shcc" "CC2 = shcc" "LIBS = -lcurses"
  5142.  
  5143. #AT&T 7300/UNIX PC (3B1) systems, as above, no curses, but use gcc.
  5144. sys3upcg:
  5145.     @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC...'
  5146.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  5147.     "CFLAGS = -DATT7300 -DNOREDIRECT -DUSE_MEMCPY -DNOUNICODE -DNOLEARN \
  5148.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  5149.     -DNOGFTIMER -DNOMKDIR -DNOREALPATH $(KFLAGS) -Dopeni=xopeni" \
  5150.     "CC = gcc" "CC2 = gcc" "LNKFLAGS = -s -shlib"
  5151.  
  5152. #AT&T 7300/UNIX PC (3B1) systems, curses and gcc.
  5153. #Optimization omitted -- add it back in if your machine has lots of memory.
  5154. sys3upcgc:
  5155.     @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC, curses...'
  5156.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  5157.     "CFLAGS = -DATT7300 -DNOREDIRECT -DUSE_MEMCPY -DNOGFTIMER -DNOUNICODE \
  5158.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  5159.     -DCK_CURSES -DCK_NEWTERM -DNOMKDIR -DNOREALPATH -DNOLEARN $(KFLAGS)" \
  5160.     "CC = gcc" "CC2 = gcc" "LIBS = -lcurses" "LNKFLAGS = -s"
  5161.  
  5162. #AT&T 7300/UNIX PC (3B1) systems, special handling for internal modem.
  5163. #No FULLSCREEN file transfer display (curses).
  5164. sys3upcold:
  5165.     @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC...'
  5166.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  5167.     "CFLAGS = -DATT7300 -DNOMKDIR -DUSE_MEMCPY -DNOUNICODE -DNOLEARN \
  5168.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  5169.     -DNOGFTIMER -DNOREDIRECT -DNOREALPATH $(KFLAGS) -O" "LNKFLAGS = -i"
  5170.  
  5171. #As above, but with gcc. mininum features - fits on a 400K UNIX PC floppy
  5172. #after compression with room to spare; add -DNOSHOW or other -DNOxxxx items
  5173. #to reduce size even further.
  5174. sys3upcgm:
  5175.     @echo Minimum interactive
  5176.     $(MAKE) "MAKE=$(MAKE)" sys3upcg KTARGET=$${KTARGET:-$(@)} \
  5177.     "KFLAGS=-DNOSPL -DNOFRILLS -DNOHELP -DNODEBUG -DNOTLOG -DNOCSETS \
  5178.     -DNOSETKEY $(KFLAGS)"
  5179.  
  5180. #This target is designed to create a version with the most features possible
  5181. #that, after compression, still fits on a 400K UNIX PC floppy.
  5182. sys3upcgfd:
  5183.     @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC floppy...'
  5184.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  5185.     "CFLAGS = -DATT7300 -DNOREDIRECT -DUSE_MEMCPY -DNOSPL -DNOLEARN \
  5186.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  5187.     -DNOGFTIMER -DNOREALPATH -Dopeni=xopeni \
  5188.     -DNOHELP -DNODEBUG -DNOTLOG -DNOCSETS -DNOSETKEY -DNOMKDIR $(KFLAGS)" \
  5189.     "CC = gcc" "CC2 = gcc" "LNKFLAGS = -s"
  5190.  
  5191. #AT&T 6300 PLUS (warning, -O might make it run out of space).
  5192. #NOTE: Remove -DHDBUUCP if not using Honey DanBer UUCP.
  5193. att6300:
  5194.     @echo 'Making C-Kermit $(CKVER) for AT&T 6300 PLUS...'
  5195.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  5196.     "CFLAGS = -DATT6300 -DHDBUUCP -DNOFILEH -DNOREALPATH -DNOLEARN \
  5197.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  5198.     -DNOUNICODE $(KFLAGS) -O -Ml -i" "LNKFLAGS = -i -Ml"
  5199.  
  5200. #As above, but with curses support.  Debugging disabled to prevent thrashing.
  5201. att6300c:
  5202.     @echo 'Making C-Kermit $(CKVER) for AT&T 6300 PLUS...'
  5203.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  5204.     "CFLAGS = -DATT6300 -DHDBUUCP -DNOFILEH -DNOCSETS -DNOREALPATH \
  5205.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  5206.     -DCK_CURSES -DNODEBUG -DNOUNICODE -DNOLEARN $(KFLAGS) -O -Ml -i" \
  5207.     "LNKFLAGS = -i -Ml" "LIBS = -lcurses"
  5208.  
  5209. #AT&T 6300 PLUS with no curses, no debugging (about 34K smaller)
  5210. # -Optimization saves about 20K too.
  5211. att6300nd:
  5212.     @echo 'Making C-Kermit $(CKVER) for AT&T 6300 PLUS, no debugging...'
  5213.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  5214.     "CFLAGS = -DATT6300 -DHDBUUCP -DNODEBUG -DNOFILEH -DNOREALPATH \
  5215.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  5216.     -DNOUNICODE -DNOLEARN $(KFLAGS) -O -i -Ml" "LNKFLAGS = -i -Ml"
  5217.  
  5218. #AT&T 3B2 and maybe 3B20-series computers running AT&T UNIX System V R3.
  5219. #This one was actually used to build C-Kermit 7.0 successfully on a 3B2/300.
  5220. att3b2:
  5221.     @echo 'Making C-Kermit $(CKVER) for AT&T 3B2'
  5222.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  5223.     "CFLAGS = -DATTSV -DNOREDIRECT -DUSE_MEMCPY \
  5224.     -DNOTIMEVAL -DNOTIMEZONE -DMINIDIAL -DNOCHANNELIO -DNOBIGBUF \
  5225.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  5226.     -DNOGFTIMER -DNOREALPATH -Dopeni=xopeni -DNOFRILLS -DNOLEARN \
  5227.     -DNOHELP -DNODEBUG -DNOTLOG -DNOCSETS -DNOSETKEY -DNOMKDIR $(KFLAGS)" \
  5228.     "CC = gcc" "CC2 = gcc" "LNKFLAGS = -s"
  5229.  
  5230. # The next two are likely not to work as-is.
  5231.  
  5232. #AT&T 3B2, 3B20-series computers running AT&T UNIX System V.
  5233. #This is just generic System V with Honey DanBer UUCP, so refer to sys3hdb.
  5234. #Remove -DNONAWS if you can get away with it.
  5235. att3bx:
  5236.     $(MAKE) "MAKE=$(MAKE)" sys3hdb KTARGET=$${KTARGET:-$(@)} \
  5237.     "KFLAGS=$(KFLAGS) -DNONAWS -DNOTIMEVAL"
  5238.  
  5239. # 3Bx with charsets (except Unicode) but no curses.
  5240. att3bx1:
  5241.     @echo 'Making C-Kermit $(CKVER) for AT&T 3B2 or 3B20'
  5242.     @echo 'with Honey DanBer UUCP  no curses...'
  5243.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  5244.     "CFLAGS = -DATTSV -DHDBUUCP $(KFLAGS) -DNOREDIRECT \
  5245.     -DNOTIMEVAL -DNOTIMEZONE -DMINIDIAL -DNOCHANNELIO -DNOBIGBUF \
  5246.     -DNOHELP -DNODEBUG -DNOGFTIMER -DNOLEARN \
  5247.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  5248.     -DNOREALPATH -DNOUNICODE -i" \
  5249.     "CC = gcc" "CC2 = gcc" "LNKFLAGS = -i -s"
  5250.  
  5251. #AT&T 3B2, 3B20-series computers running AT&T UNIX System V,
  5252. #with fullscreen file transfer display.
  5253. att3bxc:
  5254.     @echo 'Making C-Kermit $(CKVER) for AT&T 3B2 or 3B20'
  5255.     @echo 'with Honey DanBer UUCP and curses...'
  5256.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  5257.     "CFLAGS = -DATTSV -DHDBUUCP -DNONAWS -DNOTIMEVAL $(KFLAGS) \
  5258.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  5259.     -DNOREALPATH -DCK_CURSES -DCK_NEWTERM -DNOUNICODE -DNOLEARN -i -O" \
  5260.     "LNKFLAGS = -i" "LIBS=-lcurses"
  5261.  
  5262. #3bx with curses but no charsets
  5263. att3bxc3:
  5264.     @echo 'Making C-Kermit $(CKVER) for AT&T 3B2 or 3B20'
  5265.     @echo 'with Honey DanBer UUCP with curses...  no CSETS'
  5266.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  5267.     "CFLAGS = -DATTSV -DHDBUUCP $(KFLAGS) -DNOREDIRECT \
  5268.     -DNOTIMEVAL -DNOTIMEZONE -DMINIDIAL -DNOCHANNELIO -DNOBIGBUF \
  5269.     -DNOHELP -DNODEBUG -DNOGFTIMER -DNOLEARN \
  5270.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  5271.     -DNOREALPATH -DNOCSETS -DCK_CURSES -DCK_NEWTERM -i" \
  5272.     "CC = gcc" "CC2 = gcc" "LNKFLAGS = -i -s" "LIBS = -lcurses"
  5273.  
  5274. #Any System V R2 or earlier with Honey DanBer UUCP (same as above)
  5275. sys3hdb:
  5276.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System III'
  5277.     @echo 'or System V R2 or earlier with Honey DanBer UUCP...'
  5278.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  5279.     "CFLAGS = -DATTSV -DHDBUUCP -DNOREALPATH -DNOUNICODE -DNOLEARN \
  5280.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  5281.     $(KFLAGS) -i -O" "LNKFLAGS = -i"
  5282.  
  5283. #Sperry/UNISYS 5000 UTS V 5.2 (System V R2), Honey DanBer UUCP
  5284. unisys5r2:
  5285.     @echo 'Making C-Kermit $(CKVER) for Sperry/UNISYS 5000 UTS V 5.2...'
  5286.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  5287.     "CFLAGS = -DATTSV -DUNISYS52 -DHDBUUCP -DNOREALPATH -DNOUNICODE \
  5288.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  5289.     -DNOLEARN $(KFLAGS) -i -O" "LNKFLAGS = -i"
  5290.  
  5291. #In case they say "make sys5hdb" instead of "make sys3hdb"...
  5292. sys5hdb:
  5293.     $(MAKE) "MAKE=$(MAKE)" sys3hdb
  5294.  
  5295. #Create the common header line for all hpux[5-11]* entries and above. This 
  5296. #extra entry is here because our header message length may differ for each 
  5297. #C-Kermit version. Don't use 'fold -s' for HP-UX 5.x - 7.x! This option is 
  5298. #available only for HP-UX 8.0 and above!
  5299. hpux-header:
  5300.     @HPUX=`uname -r | sed -e 's/^[^1-9]*//' -e 's/\.00$$/.0/'` ; \
  5301.     [ "$(MESSAGE0)" ] && MESSAGE1="$(MESSAGE0)" ; \
  5302.     Message0='Making C-Kermit $(CKVER) for HP9000 HP-UX' ; \
  5303.     Message1=$${MESSAGE1:='without any extra compiler optimization'} ; \
  5304.     MessageH="$$Message0 $$HPUX" ; \
  5305.     case $$HPUX in \
  5306.       [567].*) echo "$$MessageH\n$$Message1" ;; \
  5307.           *.*) echo "$$MessageH $${Message1}$(MESSAGE1A)" | fold -s ;; \
  5308.     esac | sed -e 's/^ //' -e 's/ *$$//'
  5309.  
  5310. # Peter E's updated HP-UX 5.xx entries Oct 2001.
  5311.  
  5312. #HP-9000 500 HP-UX 5.xx, no TCP/IP.
  5313. # Last known successful build: C-Kermit 8.0.206 2002/20/27.
  5314. hpux0500:
  5315.     @MESSAGE0="no TCP/IP and no compiler optimization";\
  5316.     MESSAGE0=$${MESSAGE1:-$$MESSAGE0} \
  5317.     $(MAKE) hpux-header
  5318.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  5319.     "CFLAGS = -DHPUX -DHPUX5 -DHPUXPRE65 -DNOREDIRECT -DDCLGETCWD \
  5320.     -DNOGETUSERSHELL -DNOGFTIMER -DNOSYSLOG -DNOTOMACROS -DNOLSTAT \
  5321.     -DNOSYMLINK -DNOINITGROUPS -DNOUNICODE -DNOLEARN -DNOLONGLONG \
  5322.     -DVOID=int -DCKVOID=int $(KFLAGS)" "LIBS = $(LIBS)" "LNKFLAGS = "
  5323.  
  5324. #HP-9000 500 HP-UX 5.21 with Wollongong WIN/TCP 1.2 TCP/IP.
  5325. #Requires /usr/wins/usr/include and /usr/lib/libnet.a from Wollongong.
  5326. #Optimization skipped - takes forever.    Really.
  5327. # WARNING: this doesn't work if a file called "hpux0500" is on the disk.
  5328. # Last known successful build: C-Kermit 8.0.206 2002/20/27.
  5329. hpux0500wintcp:
  5330.     @MESSAGE1="with WIN/TCP but without any extra compiler optimization" \
  5331.     $(MAKE) hpux0500 KTARGET=$${KTARGET:-$(@)} \
  5332.     "KFLAGS = -DTCPSOCKET -DHPUX5WINTCP -DINADDRX -DNO_DNS_SRV \
  5333.     -DNOMHHOST -DVOID=int -DCKVOID=int -DNOHADDRLIST -DNOLONGLONG \
  5334.     -I/usr/wins/usr/include $(KFLAGS)" "LIBS = /usr/lib/libnet.a"
  5335.  
  5336. #HP-UX 6.5, short filenames, no network and no curses support.
  5337. #ckcpro, ckuusr, ckuus3 and others are broken out because they make the
  5338. #optimizer run away.  Note that the XERMIT target does not work with HP-UX 6.5!
  5339. #
  5340. #If you get compiler warnings like:
  5341. #'Switch table overflow. Try the -Wc,-Nw option.' (for ckcuni.c, or
  5342. #other files) increase the '...' value in '-Wc,-Nw...'! The default maximum
  5343. #switch table stack (-Nw) is 250 table entries. ckcuni.c from Oct 16 2009
  5344. #needs 257 table entries (C-Kermit Version "9.0.299").
  5345. #OK: 2010/03/26
  5346. hpux0650:
  5347.     @$(MAKE) hpux-header
  5348.     @MESSAGE2=$${MESSAGE2:-'and NO network'}; \
  5349.     echo "supporting: NO long filenames $$MESSAGE2."
  5350.  
  5351.     $(MAKE) KTARGET=$${KTARGET:-$(@)} \
  5352.         ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) ckuus6.$(EXT) \
  5353.         ckuusr.$(EXT) ckuxla.$(EXT) ckcftp.$(EXT) ckcpro.$(EXT) \
  5354.     "CFLAGS = -DHPUX -DHPUX6 -DSIG_V -DNOSYSLOG -DNOSELECT -DFNFLOAT \
  5355.     -DDCLGETCWD -DNOGETUSERSHELL -DNO_DNS_SRV -DNOLEARN -DNOLONGLONG \
  5356.     $(KFLAGS)"
  5357.  
  5358.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  5359.     "CFLAGS = -DHPUX -DHPUX6 -DSIG_V -DNOSYSLOG -DNOSELECT -DFNFLOAT \
  5360.     -DDCLGETCWD -DNOGETUSERSHELL -DNO_DNS_SRV -DNOLEARN -DNOLONGLONG \
  5361.     $(KFLAGS) -Wc,-Nw260 $(OFLAGS)" "LNKFLAGS = -s" "LIBS = -lm $(LIBS)"
  5362.  
  5363. #Exactly as above, plus curses:
  5364. #OK: 2009/10/06
  5365. hpux0650c:
  5366.     @MESSAGE2="and NO network but with curses" \
  5367.     $(MAKE) hpux0650 KTARGET=$${KTARGET:-$(@)} \
  5368.     "KFLAGS = -DCK_CURSES $(KFLAGS)" \
  5369.     "LIBS = -lcurses"
  5370.  
  5371. #Exactly as above, plus curses + network:
  5372. #OK: 2009/10/02
  5373. hpux0650tcpc:
  5374.     @MESSAGE2="but with curses and with TCP/IP" \
  5375.     $(MAKE) hpux0650 KTARGET=$${KTARGET:-$(@)} \
  5376.     "KFLAGS=-DCK_CURSES -DTCPSOCKET -DNOHADDRLIST \
  5377.     -DINTSELECT -DNOCKGETFQHOST $(KFLAGS)" \
  5378.     "LIBS=-lcurses"
  5379.  
  5380. #Exactly as hpux0650 but with compiler optimization:
  5381. #OK: 2009/10/06
  5382. hpux0650o:
  5383.     @MESSAGE1="with compiler optimization" \
  5384.     $(MAKE) hpux0650 KTARGET=$${KTARGET:-$(@)} \
  5385.     "KFLAGS = $(KFLAGS)" "OFLAGS = -O"
  5386.  
  5387. #Exactly as hpux0650c but with compiler optimization:
  5388. #OK: 2009/10/06
  5389. hpux0650oc:
  5390.     @MESSAGE1="with compiler optimization" \
  5391.     $(MAKE) hpux0650c KTARGET=$${KTARGET:-$(@)} \
  5392.     "KFLAGS = $(KFLAGS)" "OFLAGS = -O"
  5393.  
  5394. #Exactly as hpux0650tcpc but with compiler optimization:
  5395. #OK: 2009/10/06
  5396. hpux0650otcpc:
  5397.     @MESSAGE1="with compiler optimization" \
  5398.     $(MAKE) hpux0650tcpc KTARGET=$${KTARGET:-$(@)} \
  5399.     "KFLAGS = $(KFLAGS)" "OFLAGS = -O"
  5400.  
  5401. #Take this as startup entry for all 'non-optimized' files under HP-UX 7.x!
  5402. #Make sure we don't call it with the '-O' option because this will blow up
  5403. #the compiler!
  5404. #OK: 2009/09/30
  5405. hpux0700noopt:
  5406.     @case "$(CFLAGS)" in \
  5407.     *-O*) echo "Don't use CFLAGS= -O here!" ;; \
  5408.        *) $(MAKE) KTARGET=$${KTARGET:-$(@)} \
  5409.           ckuusr.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) \
  5410.           ckuus6.$(EXT) ckuus7.$(EXT) ckuxla.$(EXT) \
  5411.           ckcuni.$(EXT) ckcftp.$(EXT) ckcpro.$(EXT) \
  5412.           ;; \
  5413.     esac
  5414.  
  5415. #HP-UX 7.0, no long filenames, no network support, no curses.
  5416. #If you get compiler warnings like:
  5417. #'Switch table overflow. Try the -Wc,-Nw option.' (for ckcuni.c, or
  5418. #other files) increase the '...' value in '-Wc,-Nw...'! The default maximum
  5419. #switch table stack (-Nw) is 250 table entries. ckcuni.c from Oct 16 2009
  5420. #needs 257 table entries (C-Kermit Version "9.0.299").
  5421. #OK: 2010/10/26
  5422. hpux0700sf:
  5423.     @$(MAKE) hpux-header
  5424.     @echo 'supporting: NO long filenames, NO network, NO curses.'
  5425.     $(MAKE) hpux0700noopt KTARGET=$${KTARGET:-$(@)} \
  5426.     "CFLAGS = -DHPUX -DHPUX7 -DSIG_V -DNOGETUSERSHELL -DFNFLOAT \
  5427.     -DNO_DNS_SRV $(KFLAGS) -Wc,-Nw260"
  5428.  
  5429.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  5430.     "CFLAGS = -DHPUX -DHPUX7 -DSIG_V -DNOGETUSERSHELL -DFNFLOAT \
  5431.     -DNO_DNS_SRV $(KFLAGS) -Wc,-Nw260 $(OFLAGS)" \
  5432.     "LNKFLAGS = -s" "LIBS = -lm $(LIBS)"
  5433.  
  5434. #Exactly as hpux0700sf but with compiler optimization:
  5435. #OK: 2009/09/30
  5436. hpux0700osf:
  5437.     @MESSAGE1="with compiler optimization" \
  5438.     $(MAKE) hpux0700sf KTARGET=$${KTARGET:-$(@)} \
  5439.     "KFLAGS = $(KFLAGS)" "OFLAGS = -O"
  5440.  
  5441. #HP-UX 7.0, short filenames, but with tcp/ip and curses.
  5442. #To use this, you must have bought the ARPA Services Product from HP, and you
  5443. #must have /usr/lib/libBSD.a.
  5444. #
  5445. #If you get compiler warnings like:
  5446. #'Symbol table overflow. Try the -Wc,-Ns option.' (as for ckuus4.c or
  5447. #other files) increase the '...' value in '-Wc,-Ns...'! The default maximum
  5448. #symbol table size (-Ns) is 2000 table entries. ckuus4.c from Mar 12 2010
  5449. #needs 2031 table entries (C-Kermit Version "9.0.299").
  5450. #OK: 2010/03/24
  5451. hpux0700sftcpc:
  5452.     @$(MAKE) hpux-header
  5453.     @echo 'supporting: NO long filenames, \c'
  5454.     @echo 'but with networking, curses, HDB uucp...'
  5455.     $(MAKE) hpux0700noopt KTARGET=$${KTARGET:-$(@)} \
  5456.     "CFLAGS =  -DHPUXDEBUG -DHPUX -DHPUX7 -DTCPSOCKET -DSIG_V \
  5457.     -DCK_REDIR -DCK_RTSCTS -DCK_CURSES -DNOGETUSERSHELL -DFNFLOAT \
  5458.     -DNO_DNS_SRV -DHDBUUCP -DLOCK_DIR=\\\"/usr/spool/uucp\\\" \
  5459.     -DNOLONGLONG $(KFLAGS) -Wc,-Nw260,-Ns2040"
  5460.  
  5461.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  5462.     "CFLAGS =  -DHPUXDEBUG -DHPUX -DHPUX7 -DTCPSOCKET -DSIG_V \
  5463.     -DCK_REDIR -DCK_RTSCTS -DCK_CURSES -DNOGETUSERSHELL -DFNFLOAT \
  5464.     -DNO_DNS_SRV -DHDBUUCP -DLOCK_DIR=\\\"/usr/spool/uucp\\\" \
  5465.     -DNOLONGLONG $(KFLAGS) -Wc,-Nw260,-Ns2040 $(OFLAGS)" \
  5466.     "LNKFLAGS = -s" "LIBS = -lm -lBSD -lcurses"
  5467.  
  5468. #Exactly as above but with compiler optimization:
  5469. #OK: 2009/09/30
  5470. hpux0700osftcpc:
  5471.     @MESSAGE1="with compiler optimization" \
  5472.     $(MAKE) hpux0700sftcpc KTARGET=$${KTARGET:-$(@)} \
  5473.     "KFLAGS = $(KFLAGS)" "OFLAGS = -O"
  5474.  
  5475. #HP 9000 series 300/800 HP-UX 7.0, long filenames, network support, HDB uucp,
  5476. #but NO curses. See comments in hpux0700sftcpc about TCP/IP support.
  5477. #
  5478. #If you get compiler warnings like:
  5479. #'Symbol table overflow. Try the -Wc,-Ns option.' (as for ckuus4.c or
  5480. #other files) increase the '...' value in '-Wc,-Ns...'! The default maximum
  5481. #symbol table size (-Ns) is 2000 table entries. ckuus4.c from Mar 12 2010
  5482. #needs 2031 table entries (C-Kermit Version "9.0.299").
  5483. #OK: 2010/03/24
  5484. hpux0700lfn:
  5485.     @$(MAKE) hpux-header
  5486.     @echo 'supporting: long filenames, networking, HDB uucp$(MESSAGE2)...'
  5487.     $(MAKE) hpux0700noopt KTARGET=$${KTARGET:-$(@)} \
  5488.     "CFLAGS =  -DHPUXDEBUG -DHPUX -DHPUX7 -DTCPSOCKET -DSIG_V -DFNFLOAT \
  5489.     -DNOGETUSERSHELL -DNOSETBUF -DCK_REDIR -DCK_RTSCTS -DLONGFN \
  5490.     -DNO_DNS_SRV -DDIRENT -DHDBUUCP -DLOCK_DIR=\\\"/usr/spool/uucp\\\" \
  5491.     -DNOLONGLONG $(KFLAGS) -Wc,-Nw260,-Ns2040"
  5492.  
  5493.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  5494.     "CFLAGS =  -DHPUXDEBUG -DHPUX -DHPUX7 -DTCPSOCKET -DSIG_V -DFNFLOAT \
  5495.     -DNOGETUSERSHELL -DNOSETBUF -DCK_REDIR -DCK_RTSCTS -DLONGFN \
  5496.     -DNO_DNS_SRV -DDIRENT -DHDBUUCP -DLOCK_DIR=\\\"/usr/spool/uucp\\\" \
  5497.     -DNOLONGLONG $(KFLAGS) -Wc,-Nw260,-Ns2040 $(OFLAGS)" \
  5498.     "LNKFLAGS = -s" "LIBS = -lm -lBSD $(LIBS)"
  5499.  
  5500. #Exactly as above + curses.
  5501. #OK: 2009/09/30
  5502. hpux0700lfnc:
  5503.     @MESSAGE2=', curses' \
  5504.     $(MAKE) hpux0700lfn KTARGET=$${KTARGET:-$(@)} \
  5505.     "KFLAGS = -DCK_CURSES $(KFLAGS)" \
  5506.     "LIBS = -lcurses"
  5507.  
  5508. #Exactly as above hpux0700lfn but with compiler optimization:
  5509. #OK: 2009/09/30
  5510. hpux0700olfn:
  5511.     @MESSAGE1="with compiler optimization" \
  5512.     $(MAKE) hpux0700lfn KTARGET=$${KTARGET:-$(@)} \
  5513.     "KFLAGS = $(KFLAGS)" "OFLAGS = -O"
  5514.  
  5515. #Exactly as above hpux0700lfnc but with compiler optimization:
  5516. #OK: 2009/09/30
  5517. hpux0700olfnc:
  5518.     @MESSAGE1="with compiler optimization" \
  5519.     $(MAKE) hpux0700lfnc KTARGET=$${KTARGET:-$(@)} \
  5520.     "KFLAGS = $(KFLAGS)" "OFLAGS = -O"
  5521.  
  5522. #HP 9000 Series 300 or 400, HP-UX 8.0, long filenames and TCP/IP support.
  5523. #This one should also work on 700/800, but without PA-specific optimization.
  5524. #In case -DCK_RTSCTS and -DCK_REDIR make trouble, remove them.
  5525. #NOTE: ckcpro.c, ckuusr.c and ckuus3.c blow up the optimizer, so don't optimize
  5526. #them.
  5527. #For HP-UX 8.0 on Motorola CPUs, you might have to reinstall your kernel with
  5528. #maxdsiz >= 0x03000000.  But if physical memory is small, that still will not
  5529. #help much.
  5530. #OK: 2009/10/01
  5531. hpux0800:
  5532.     @$(MAKE) hpux-header
  5533.     @MESSAGE3=$${MESSAGE3:='TCP/IP'}; \
  5534.     echo "supporting: long filenames, $$MESSAGE3, HDB UUCP$(MESSAGE2)..."
  5535.     $(MAKE) -B "CC=$(CC)" "CC2=$(CC2)" KTARGET=$${KTARGET:-$(@)} \
  5536.     ckcpro.$(EXT) ckuusr.$(EXT) ckuus3.$(EXT) \
  5537.     "CFLAGS =  -DCK_REDIR -DHPUXDEBUG -DHPUX -DHPUX8 -DRENAME -DSIG_V \
  5538.     -DNOSETBUF -DDIRENT -DCK_RTSCTS -DSTERMIOX -DLONGFN -DTCPSOCKET \
  5539.     -DHDBUUCP  -DNO_DNS_SRV -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DFNFLOAT \
  5540.     -DNOLONGLONG $(KFLAGS)"
  5541.  
  5542.     $(MAKE) -B "CC=$(CC)" "CC2=$(CC2)" xermit KTARGET=$${KTARGET:-$(@)} \
  5543.     "CFLAGS =  -DCK_REDIR -DHPUXDEBUG -DHPUX -DHPUX8 -DRENAME -DSIG_V \
  5544.     -DNOSETBUF -DDIRENT -DCK_RTSCTS -DSTERMIOX -DLONGFN -DTCPSOCKET \
  5545.     -DHDBUUCP  -DNO_DNS_SRV -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DFNFLOAT \
  5546.     -DNOLONGLONG -DNODCLENDUSERSHELL $(KFLAGS) $(OFLAGS)" \
  5547.     "LNKFLAGS = -s" "LIBS = -lm -lBSD $(LIBS)"
  5548.  
  5549. #Exactly as above hpux0800 + curses.
  5550. #OK: 2009/10/01
  5551. hpux0800c:
  5552.     @MESSAGE2=', curses' \
  5553.     $(MAKE) hpux0800  KTARGET=$${KTARGET:-$(@)} \
  5554.     "KFLAGS = $(KFLAGS) -DCK_CURSES" "LIBS = -lcurses"
  5555.  
  5556. #HP 9000 HP-UX 8.0, no TCP/IP because /usr/lib/libBSD.a can't be found,
  5557. #or TCP/IP header files missing.
  5558. #OK: 2009/10/01
  5559. hpux0800notcp:
  5560.     @MESSAGE3='NO network, NO curses' \
  5561.     $(MAKE) "MAKE=$(MAKE)" hpux0800 KTARGET=$${KTARGET:-$(@)} \
  5562.     "KFLAGS = $(KFLAGS) -UTCPSOCKET"
  5563.  
  5564. #Now the same as above hpux0800 but with compiler optimization
  5565. #OK: 2009/10/01
  5566. hpux0800o:
  5567.     @MESSAGE1="with compiler optimization" \
  5568.     $(MAKE) hpux0800 KTARGET=$${KTARGET:-$(@)} \
  5569.     "KFLAGS = $(KFLAGS)" "OFLAGS = -O"
  5570.  
  5571. #Exactly as above hpux0800 + curses and with compiler optimization.
  5572. #OK: 2009/10/01
  5573. hpux0800oc:
  5574.     @MESSAGE1="with compiler optimization" \
  5575.     $(MAKE) hpux0800c KTARGET=$${KTARGET:-$(@)} \
  5576.     "KFLAGS = $(KFLAGS)" "OFLAGS = -O" "LIBS = -lcurses"
  5577.  
  5578. #Exactly as above hpux0800notcp but with compiler optimization
  5579. #OK: 2009/10/01
  5580. hpux0800onotcp:
  5581.     @MESSAGE1="with compiler optimization" \
  5582.     $(MAKE) "MAKE=$(MAKE)" hpux0800notcp KTARGET=$${KTARGET:-$(@)} \
  5583.     "KFLAGS = $(KFLAGS)" "OFLAGS = -O"
  5584.  
  5585. #HP 9000 Series 700 or 800, HP-UX 8.0, long filenames and TCP/IP support.
  5586. # Like the previous entries, but with PA-RISC-specific optimization.
  5587. #OK: 2009/10/01
  5588. hpux0800pa:
  5589.     @MESSAGE1="with PA-RISC-specific optimization" \
  5590.     $(MAKE) hpux0800 KTARGET=$${KTARGET:-$(@)} \
  5591.     "KFLAGS = $(KFLAGS) +Obb1100"
  5592.  
  5593. #As above, but with curses.
  5594. #OK: 2009/10/01
  5595. hpux0800pac:
  5596.     @MESSAGE1="with PA-RISC-specific optimization" \
  5597.     $(MAKE) hpux0800c KTARGET=$${KTARGET:-$(@)} \
  5598.     "KFLAGS = $(KFLAGS) +Obb1100"
  5599.  
  5600. #As above, but compiled with GCC 2.3.3.
  5601. #OK: 2009/10/01
  5602. hpux0800pagcc:
  5603.     @MESSAGE1='using the gcc compiler' \
  5604.     $(MAKE) hpux0800 KTARGET=$${KTARGET:-$(@)} \
  5605.     "CC=gcc" "CC2=gcc" "KFLAGS = -funsigned-char $(KFLAGS)"
  5606.  
  5607. #HP-UX 9.0, 9.01, 9.03, 9.04, 9.05, 9.07, 9.10 ..., + TCP/IP + curses, fully
  5608. #configured.  Use this entry with the restricted compiler: no optimization, no
  5609. #ANSI support.  If you get unresolved sockets library references at link time,
  5610. #then try adding -lBSD to LIBS, or else remove -DTCPSOCKET to build a version
  5611. #without TCP/IP support.
  5612. #
  5613. #Please note that we have to add the compiler option +DA1.0/+DA1.1 to avoid
  5614. #core-dumps for large arguments in IF MATCH. The man page says these options
  5615. #are default but C-Kermit dumps core without them! Therefore keep them
  5616. #untouched. If you want to overwrite or disable the +DA1.0/+DA1.1 option use
  5617. #'make hpux0900 OFLAGS=...'. An other possibility would be to create a new
  5618. #kernel with maxssiz >= 0x01185000 (default maxssiz=0x00800000).
  5619. #OK: 2009/09/24
  5620. hpux0900:
  5621.     @MESSAGE1A='. Read hpux0900 entry comments if you have trouble.' \
  5622.     $(MAKE) hpux-header
  5623.     @case `uname -m` in \
  5624.       */[34]*) KFLAGS='-DNOLONGLONG $(KFLAGS)' ;; \
  5625.       */7*)    AFLAGS='+DA1.1' ;; \
  5626.       */8*)    AFLAGS='+DA1.0' ;; \
  5627.     esac ; \
  5628.     OFLAGS=$${OFLAGS:-$$AFLAGS} ; \
  5629.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  5630.     "CFLAGS = -DHPUXDEBUG -DHPUX9 -DSTERMIOX -DDIRENT -DUTIMEH \
  5631.     -DNOSETBUF -DCK_CURSES -DTCPSOCKET -DRENAME -DCK_REDIR -DLONGFN \
  5632.     -DHDBUUCP -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DFNFLOAT \
  5633.     -DNODCLENDUSERSHELL $$KFLAGS $$OFLAGS" \
  5634.     "LNKFLAGS = -s" "LIBS = -lm -lcurses" "CC=$(CC)" "CC2=$(CC2)"
  5635.  
  5636. #Like hpux0900, but for the "value-added" compiler on all HP 9000 models.
  5637. #Adds optimization and ANSI compilation:
  5638. # +O2 makes smaller executable (= -O = Level-1 and global optimization)
  5639. # +O3 adds interprocedural global optimization, makes bigger executable.
  5640. # Please note: To support long-long we would need compiler switch '-Ae' but
  5641. # this one works only on Risc systems. But the equivalant compiler flags
  5642. # '-Aa -D_HPUX_SOURCE +e' works for Motorola and Risc.
  5643. # If optimization fails on some modules, you can add:
  5644. #  +Obb<n>, +Olimit <n>, or +Onolimit, depending on your cc version,
  5645. # where <n> is a number, e.g. +Obb1200.  In other words, if you get optimizer
  5646. # warnings, add (for example) +Obb1200; if you still get optimizer warnings,
  5647. # increase the number.  Repeat until warnings go away.  If your compiler
  5648. # permits it, use +Onolimit. If optimizer blows up on ckcpro.c, see next entry.
  5649. # Reportedly, on some configurations, such as HP9000/425e or /340, perhaps
  5650. # depending on the amount of main memory, this entry might fail no matter what
  5651. # you do ("Out of Memory", "cc: Fatal error in /lib/c.c1", etc).  In that case
  5652. # use "make hpux0900" (no "o").
  5653. #OK: 2009/09/24
  5654. hpux0900o:
  5655.     @MESSAGE1=$${MESSAGE1:-"with compiler optimization"} \
  5656.     $(MAKE) hpux0900 KTARGET=$${KTARGET:-$(@)} \
  5657.     "KFLAGS = $(KFLAGS) -Aa -DCK_ANSIC -D_HPUX_SOURCE +O2 +e"
  5658.  
  5659. # For HP-UX 9.0 on Motorola CPUs, optimization of ckcpro.c tends to blow up
  5660. # the compiler.  You might have to reinstall your kernel with maxdsiz >=
  5661. # 0x03000000.  But if physical memory is small, that still will not help much.
  5662. # In that case, use this entry to skip optimization of ckcpro.c.  But for
  5663. # C-Kermit 8.0.208 you need a kernel with maxdsiz >= 0x02000000 to compile an
  5664. # optimized ckcftp.c.
  5665. # Please note: To support long-long we would need compiler switch '-Ae' but
  5666. # this one works only on Risc systems. But the equivalant compiler flags
  5667. # '-Aa -D_HPUX_SOURCE +e' works for Motorola and Risc.
  5668. hpux0900m68ko:
  5669.     @MESSAGE1='without compiler optimization for ckcpro.$(EXT) ...' \
  5670.     $(MAKE) hpux-header
  5671.     $(MAKE) ckuusr.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) \
  5672.     ckcftp.$(EXT) ckcpro.$(EXT) \
  5673.     "CFLAGS = -DHPUXDEBUG -DHPUX9 -DSTERMIOX -DDIRENT \
  5674.     -DNOSETBUF -DCK_CURSES -DTCPSOCKET -DRENAME  -DCK_REDIR -DLONGFN \
  5675.     -DHDBUUCP -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DFNFLOAT $(KFLAGS)"
  5676.     @echo
  5677.     @MESSAGE1="with compiler optimization for the rest" \
  5678.     $(MAKE) hpux0900 KTARGET=$${KTARGET:-$(@)} \
  5679.     "KFLAGS = $(KFLAGS) -Aa -DCK_ANSIC -D_HPUX_SOURCE +O2 +e"
  5680.  
  5681. # Old name for hpux0900m68ko.
  5682. hpux0900mot:
  5683.     $(MAKE) hpux0900m68ko KTARGET=$${KTARGET:-$(@)} "KFLAGS = $(KFLAGS)"
  5684.  
  5685. #Like hpux0900o but with additional model-700/800-specific optimizations.
  5686. # +ESlit = consolidate strings in read-only memory.
  5687. # +ESfsc = inline millicode calls when comparing pointers.
  5688. hpux0900o700:
  5689.     @echo 'If you get optimizer warnings \c'
  5690.     @echo 'try "make hpux0900o700 KFLAGS=+Obb1200"'
  5691.     @MESSAGE1="with PA-RISC-specific optimizations" \
  5692.     $(MAKE) hpux0900o KTARGET=$${KTARGET:-$(@)} \
  5693.     "KFLAGS = $(KFLAGS) +ESlit +ESsfc"
  5694.  
  5695. #HP-UX 9.0, 9.01, 9.03, 9.04, 9.05, 9.07, 9.10 ..., + TCP/IP + curses, fully
  5696. #configured, built with gcc, all models except 800 series.
  5697. #You might need to add the include path for gcc headers, for example:
  5698. # 'KFLAGS=-I/usr/gnu/lib/gcc-lib/hppa1.1-hp-hpux/2.4.5/include/'
  5699. hpux0900gcc:
  5700.     @MESSAGE1='using the gcc compiler' \
  5701.     $(MAKE) hpux0900 KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  5702.     "KFLAGS = -DCK_ANSIC $(KFLAGS)" \
  5703.     "OFLAGS = -funsigned-char -O2 $(OFLAGS)"
  5704.  
  5705. #HP-9000 HP-UX 10.0 + TCP/IP + curses, fully configured.
  5706. #Use with restricted (bundled) compiler: no optimization, no ANSI support.
  5707. #libcurses needed for fullscreen file xfer display in HP-UX 10.00 and 10.01.
  5708. #libHcurses (NOT libcurses!) for fullscreen display, to work around fatal bugs
  5709. #in HP-UX 10.10 and 10.20 curses. Maybe we could use lcurses for 10.30, since
  5710. #the 10.10 curses problem is supposedly fixed in 10.30.
  5711. # +DA1.0 = Generate PA-RISC 1.0 code that runs on both 700 and 800 models.
  5712. # +DA1.1 = Generate PA-RISC 1.1 code that runs on both 700 and 800 models.
  5713. # Note that HP-UX 10.20 and upwards do not support PA-RISC 1.0 systems.
  5714. # And that as of Dec 2001, 11.00 and 11.11 are PA-only and 11.20 is IA64-only.
  5715. # Later 11.2x releases are expected to be for both.  Architecture can be
  5716. # determined with the model command, at least in 10.20 and later...
  5717. #For future releases, we need to include +DA1.1 for PA builds, so that a
  5718. #binary built on PA 2.0 will still work on PA 1.1 machines, whereas +DA1.1
  5719. #must NOT be included for IA64 builds.
  5720. #4 Jan 2006 - Added Large File Support (LFS).  Large files (>2GB) are
  5721. #possible in HP-UX 10.20 and later.  The only change is to add:
  5722. # -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
  5723. #to KFLAGS.  These should be harmless in 10.00 and 10.10, if any of examples
  5724. #of those still exist, but I have no way to test this hypothesis.
  5725. #OK: 2009/11/16
  5726. hpux1000:
  5727.     @$(MAKE) hpux-header
  5728.     @LIBS='-lHcurses' ; \
  5729.     AFLAGS='+DA1.1' ; \
  5730.     case `uname -r` in \
  5731.        [AB].10.0*)  KFLAGS='-DHPUX1000 $(KFLAGS)' ; \
  5732.                     AFLAGS='+DA1.0' ; LIBS='-lcurses'  ;; \
  5733.        [AB].10.1*)  KFLAGS='-DHPUX1010 -D__HP_CURSES $(KFLAGS)' ; \
  5734.                     ;; \
  5735.        [AB].10.2*)  KFLAGS='-DHPUX1020 -D__HP_CURSES $(KFLAGS)' ; \
  5736.                     ;; \
  5737.        [AB].10.3*)  KFLAGS='-DHPUX1030 -D__HP_CURSES $(KFLAGS)' ; \
  5738.                     ;; \
  5739.        [AB].10.?*)  KFLAGS='-DHPUX10XX -D__HP_CURSES $(KFLAGS)' ; \
  5740.                     ;; \
  5741.        [AB].11.0*)  KFLAGS='-DHPUX1100 -D__HP_CURSES $(KFLAGS)' ; \
  5742.                     ;; \
  5743.        [AB].11.1*)  KFLAGS='-DHPUX1100 -D__HP_CURSES $(KFLAGS)' ; \
  5744.                     ;; \
  5745.        [AB].11.?*)  KFLAGS='-DHPUX1100 -D__HP_CURSES $(KFLAGS)' ; \
  5746.                     AFLAGS='' ; LIBS='-lcurses' ;; \
  5747.     esac ; \
  5748.     OFLAGS=$${OFLAGS:-$$AFLAGS} ; \
  5749.     $(MAKE) "SHELL=/usr/bin/sh" xermit KTARGET=$${KTARGET:-$(@)} \
  5750.     "CC=$(CC)" "CC2=$(CC2)" \
  5751.     "CFLAGS = -DHPUX10 -DDIRENT -DSTERMIOX -DCK_DSYSINI -DHDBUUCP \
  5752.     -DCK_CURSES -DCK_WREFRESH -DTCPSOCKET -DCK_REDIR -DRENAME -DFNFLOAT \
  5753.     -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 \
  5754.     $$KFLAGS $$OFLAGS" \
  5755.     "LNKFLAGS=-s $(LNKFLAGS)" "LIBS = -lm $$LIBS $(KLIBS)"
  5756.  
  5757. # This is a kludge, copying hpux0900gcc and adapting hpux1000
  5758. # (add CC and CC2, drop the A1.[0||1])
  5759. # Builds w/ no compiler warnings but minimally tested.
  5760. #
  5761. #OK: 2009/09/21
  5762. hpux1000gcc:
  5763.     @MESSAGE1="using the gcc compiler $(MESSAGE1)" \
  5764.     $(MAKE) hpux1000 KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  5765.     "KFLAGS = $(KFLAGS)" "OFLAGS = -DCK_ANSIC -funsigned-char -O2"
  5766.  
  5767. # Trusted HP-UX 10
  5768. # echo KFLAGS=$(KFLAGS) YTARGET YTARGET=$(YTARGET) $(XTARGET) ;
  5769. hpux1000t:
  5770.     @case "$(KTARGET)" in \
  5771.        *+openssl | *+ssl) \
  5772.         KENTRY=hpux1000o+openssl ;; \
  5773.        *gcc) \
  5774.         KENTRY=hpux1000gcc ;; \
  5775.        *o+) KENTRY=hpux1000o+ ;; \
  5776.        *o)    KENTRY=hpux1000o ;; \
  5777.        *)    KENTRY=hpux1000 ;; \
  5778.     esac ; \
  5779.     MESSAGE1="and support for 'Trusted HP-UX'" \
  5780.     $(MAKE) $$KENTRY KTARGET=$${KTARGET:-$(@)} \
  5781.     "KFLAGS = $(KFLAGS) -DHPUX10_TRUSTED" "KLIBS=-lsec"
  5782.  
  5783. hpux1000to:
  5784.     $(MAKE) hpux1000t KTARGET=$${KTARGET:-$(@)}
  5785.  
  5786. hpux1000to+:
  5787.     $(MAKE) hpux1000t KTARGET=$${KTARGET:-$(@)}
  5788.  
  5789. hpux1000tgcc:
  5790.     $(MAKE) hpux1000t KTARGET=$${KTARGET:-$(@)}
  5791.  
  5792. hpux1000to+ssl hpux1000to+openssl:
  5793.     $(MAKE) hpux1000t KTARGET=$${KTARGET:-$(@)}
  5794.  
  5795. hpux1000tgcc+ssl hpux1000tgcc+openssl:
  5796.     $(MAKE) hpux1000t KTARGET=$${KTARGET:-$(@)}
  5797.  
  5798. #HP-9000 HP-UX 10.00 and higher with ANSI prototyping and optimization.
  5799. #PA-RISC only, no Motorola or other hardware is support in HP-UX 10.00++.
  5800. #The unbundled optional compiler is required.
  5801. #Your path should start with /opt/ansic/bin.
  5802. # -Wl,-Fw = Remove stack unwind table (info used by debuggers).
  5803. # +O2 makes a smaller executable (= -O = Level-1 and global optimization).
  5804. # +O3 adds interprocedural global optimization, makes a bigger executable.
  5805. # +Onolimit allows all modules to be optimized, no matter how complex.  But:
  5806. #  (a) +Onolimit does not seem to always be there in HP-UX 10.00, and:
  5807. #  (b) some modules might take hours on low-memory and/or slow systems.
  5808. # The following are PA-RISC-specific optimizations:
  5809. # +ESlit = Consolidate strings in read-only memory.
  5810. # +ESfsc = Inline millicode calls when comparing pointers.
  5811. # You might need to configure your kernel for a maxdsiz of 0x0B000000 (176MB)
  5812. # or greater to prevent the optimizer from running out of space.
  5813. # December 2001: +ESlit +ESsfc removed because not supported on IA64.
  5814. # Somebody who cares can use 'model' to see whether it's PA-RISC or IA64
  5815. # and include the architecture-specific optimization flags.  Also note:
  5816. # +DA1.1 is PA-only.  If this is included in in HP-UX 11.00 or later,
  5817. # then +DS2.0 should be included too (but don't use +DS2.0 without +DA1.1,
  5818. # or else the binary won't run on older PA hardware).
  5819. #OK: 2009/09/21
  5820. hpux1000o:
  5821.     @case `uname -m` in \
  5822.       ia64) ;; \
  5823.       *) MFLAGS='+ESlit +ESsfc' ;; \
  5824.     esac ; \
  5825.     MESSAGE1="with PA-RISC-specific optimizations $(MESSAGE1)" \
  5826.     $(MAKE) "SHELL=/usr/bin/sh" "PATH=/opt/ansic/bin:$$PATH" hpux1000 \
  5827.     KTARGET=$${KTARGET:-$(@)} "KFLAGS = $(KFLAGS) \
  5828.     -Ae -D_HPUX_SOURCE -DCK_ANSIC -DUTIMEH \
  5829.     +O2 -Wl,-Fw $$MFLAGS"
  5830.  
  5831. #Like hpux1000o but with "+Onolimit".
  5832. #On 700 series set kernel parameter maxdsiz >= 0x0D000000 (=208MB).
  5833. #Takes a long time.
  5834. hpux1000o+:
  5835.     @MESSAGE1="and +Onolimit $(MESSAGE1)" KTARGET=$${KTARGET:-$(@)} \
  5836.     $(MAKE) hpux1000o \
  5837.     "KFLAGS = $(KFLAGS) +Onolimit"
  5838.  
  5839. #HP-UX 10.xx + 11.xx with optimizing ANSI compiler and OpenSSL.
  5840. #Define SSLLIB and SSLINC appropriately for your OpenSSL installation.
  5841. #To overwrite the default SSLLIB and SSLINC settings you can also use the
  5842. #command-line variable KSSLLIB and KSSLINC like:
  5843. #make hpux1000o+openssl KSSLLIB=-L/opt/openssl/lib KSSLINC=-I/...
  5844. #Ditto for the Zlib location.
  5845. #This entry works for C-Kermit 8.0.206 on HP-UX 10.20 + 11.11
  5846. #with OpenSSL 0.9.6 + 0.9.7
  5847. #NOTE: an ANSI C compiler is required for the SSL interface.  If you don't
  5848. #have the HP Optimizing ANSI compiler, see the hpux1000gcc+openssl target
  5849. #below.
  5850. hpux1000o+ssl hpux1000o+openssl:
  5851.     @case "$(KTARGET)" in \
  5852.        *gcc+*) \
  5853.             KENTRY=hpux1000gcc ;; \
  5854.        *)   KENTRY=hpux1000o ;; \
  5855.     esac ; \
  5856.     case "$(KTARGET)" in \
  5857.        *-zlib*) \
  5858.             DZLIB= LZLIB= ;; \
  5859.        *)   DZLIB=-DZLIB LZLIB='-L/opt/zlib/lib -lz' ;; \
  5860.     esac ; \
  5861.     SSLINC=$${KSSLINC:-$(SSLINC)}; \
  5862.     SSLLIB=$${KSSLLIB:-$(SSLLIB)}; \
  5863.     MESSAGE1="and with OpenSSL $(MESSAGE1)" \
  5864.     $(MAKE) $$KENTRY KTARGET=$${KTARGET:-$(@)} \
  5865.     KFLAGS="-DCK_AUTHENTICATION -DCK_SSL -DOPENSSL_097 $$DZLIB \
  5866.     $$SSLINC $(KFLAGS)" \
  5867.     KLIBS="$(KLIBS) \
  5868.     $$SSLLIB -lssl -lcrypto \
  5869.     $$LZLIB \
  5870.     "
  5871.  
  5872. # Ditto but without Zlib:
  5873. hpux1000o+ssl-zlib hpux1000o+openssl-zlib:
  5874.     @MESSAGE1="but without Zlib $(MESSAGE1)" \
  5875.     $(MAKE) hpux1000o+ssl KTARGET=$${KTARGET:-$(@)}
  5876.  
  5877. #HP-UX 10.00 or higher with OpenSSL 0.9.7.  Compiled with gcc.
  5878. #From Chris Chaney, NEC America Inc.  His instructions:
  5879. # (1) Install gcc version 3.2.3 & binutils version 2.13.2
  5880. #     (used binary depot from http://hpux.cs.utah.edu/)
  5881. # (2) Install gcc make version 3.80 from http://hpux.cs.utah.edu/
  5882. #
  5883. # or: gcc 2.9.2000-12-1 from "Linux to hp-ux 11.0/11i porting kit version 1.0
  5884. #     (2CD)" free from:  http://www.software.hp.com
  5885. #
  5886. # (3) Install openSSL version 0.9.7b from http://www.software.hp.com
  5887. # (4) Install flex version 2.5.4 from http://hpux.cs.utah.edu/
  5888. # (5) Install gmp version 3.1.1 from http://hpux.cs.utah.edu/
  5889. #
  5890. #Note from Peter Eichhorn, assyst Munich. It works also without gcc make!
  5891. hpux1000gcc+ssl hpux1000gcc+openssl:
  5892.     $(MAKE) hpux1000o+openssl KTARGET=$${KTARGET:-$(@)}
  5893.  
  5894. # Ditto but without Zlib:
  5895. hpux1000gcc+ssl-zlib hpux1000gcc+openssl-zlib:
  5896.     $(MAKE) hpux1000o+openssl-zlib KTARGET=$${KTARGET:-$(@)}
  5897.  
  5898. # Same for HP-UX 11
  5899. hpux1100o+ssl hpux1100o+openssl:
  5900.     $(MAKE) hpux1000o+openssl KTARGET=$${KTARGET:-$(@)}
  5901.  
  5902. #OK: 2009/09/26
  5903. hpux1100gcc+ssl hpux1100gcc+openssl:
  5904.     $(MAKE) hpux1000gcc+openssl KTARGET=$${KTARGET:-$(@)}
  5905.  
  5906. hpux1100o+ssl-zlib hpux1100o+openssl-zlib:
  5907.     $(MAKE) hpux1000o+openssl-zlib KTARGET=$${KTARGET:-$(@)}
  5908.  
  5909. hpux1100gcc+ssl-zlib hpux1100gcc+openssl-zlib:
  5910.     $(MAKE) hpux1000gcc+openssl-zlib KTARGET=$${KTARGET:-$(@)}
  5911.  
  5912. # HP-UX 11
  5913. # Note: these are 32-bit builds even on IA64.
  5914. # Adding +DD64 to CFLAGS produces 64-bit object files,
  5915. # but the linker fails to find the needed 64-bit libs.
  5916. #OK: 2009/09/26
  5917. hpux1100:
  5918.     $(MAKE) hpux1000 KTARGET=$${KTARGET:-$(@)}
  5919.  
  5920. #OK: 2009/09/26
  5921. hpux1100o:
  5922.     $(MAKE) hpux1000o KTARGET=$${KTARGET:-$(@)}
  5923.  
  5924. hpux1100o+:
  5925.     $(MAKE) hpux1000o+ KTARGET=$${KTARGET:-$(@)}
  5926.  
  5927. #OK: 2009/09/26
  5928. hpux1100gcc:
  5929.     $(MAKE) hpux1000gcc KTARGET=$${KTARGET:-$(@)}
  5930.  
  5931. # Trusted HP-UX 11
  5932. hpux1100t:
  5933.     $(MAKE) hpux1000t KTARGET=$${KTARGET:-$(@)}
  5934.  
  5935. hpux1100to:
  5936.     $(MAKE) hpux1000to KTARGET=$${KTARGET:-$(@)}
  5937.  
  5938. hpux1100to+:
  5939.     $(MAKE) hpux1000to+ KTARGET=$${KTARGET:-$(@)}
  5940.  
  5941. hpux1100tgcc:
  5942.     $(MAKE) hpux1000tgcc KTARGET=$${KTARGET:-$(@)}
  5943.  
  5944. hpux1100to+ssl hpux1100to+openssl:
  5945.     $(MAKE) hpux1000to+openssl KTARGET=$${KTARGET:-$(@)}
  5946.  
  5947. hpux1100tgcc+ssl hpux1100tgcc+openssl:
  5948.     $(MAKE) hpux1000tgcc+openssl KTARGET=$${KTARGET:-$(@)}
  5949.  
  5950. #Regulus on CIE Systems 680/20
  5951. cie:
  5952.     @echo 'Making C-Kermit $(CKVER) for CIE Systems 680/20 Regulus...'
  5953.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  5954.     "CFLAGS = -DATTSV -DNOFILEH -DCIE -DNOLEARN $(KFLAGS) -O" "LNKFLAGS ="
  5955.  
  5956. # Linux 1.2 or later with gcc, dynamic libraries, ncurses, TCP/IP.
  5957. #
  5958. # If your Linux system has curses rather than ncurses, use the linuxc
  5959. # entry, or if that doesn't work, linuxnc.
  5960. #
  5961. # The Kermit "large memory model" is used by default to configure big packet
  5962. # and script buffers, etc.  For small-memory or limited-resource systems,
  5963. # "make linux KFLAGS=-DNOBIGBUF".
  5964. #
  5965. # -DLINUXFSSTND (Linux File System Standard 1.2) gives UUCP lockfile /var/lock
  5966. # with string pid.  Remove this to get /usr/spool/uucp with int pid, used in
  5967. # very early Linux versions.  FSSTND 1.2 also says that the PID string in the
  5968. # UUCP lock file has leading spaces.  This is a change from FSSTND 1.0, which
  5969. # used leading zeros.  Add -DFSSTND10 to support FSSTND 1.0 instead of 1.2.
  5970. # I hope subsequent editions of the file-system standard did not change these
  5971. # again.
  5972. #
  5973. # Add -DOLINUXHISPEED (Old Linux High Speed support) to turn on an ugly kludge
  5974. # in Linux 1.0 and earlier to support speeds of 57600 and 115200.  Extremely
  5975. # old Linux systems (pre-0.99pl15) will not support this.  If OLINUXHISPEED is
  5976. # not defined, then only the standard POSIX termios methods of setting the port
  5977. # speed will be used, and in this case speeds can be as high as 460800 in most
  5978. # modern Linux versions.
  5979. #
  5980. # -DCK_POSIX_SIG (POSIX signal handling) is good for Linux releases back to at
  5981. # least 0.99.14; if it causes trouble for you, remove it from the CFLAGS.
  5982. #
  5983. # -pipe removes the need for temp files - remove it if it causes trouble.
  5984. #
  5985. # -funsigned-char makes all characters unsigned, as they should have been
  5986. #  in the first place.
  5987. #
  5988. # Add -DCK_DSYSINI if you want a shared system-wide init file.
  5989. #
  5990. # See http://www.columbia.edu/kermit/ckubwr.html about -DNOCOTFMC.
  5991. # Better still, should read the entire Linux section of that document.
  5992. #
  5993. # The "linuxa" entry can be referenced directly on LIBC systems, but not
  5994. # GLIBC, where -lcrypt is required.  The "make linux" entry should normally
  5995. # be used for all builds on all Linux distributions unless you have special
  5996. # requirements, in which case keep reading.  CK_NEWTERM added after 7.0b04
  5997. # due to new complaints about ncurses changing buffering of tty.
  5998.  
  5999. linuxa:
  6000.     @echo 'Making C-Kermit $(CKVER) for Linux 1.2 or later...'
  6001.     @echo 'IMPORTANT: Read the comments in the linux section of the'
  6002.     @echo 'makefile if you have trouble.'
  6003.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  6004.     "CFLAGS = -O -DLINUX -pipe -funsigned-char -DFNFLOAT -DCK_POSIX_SIG \
  6005.     -DCK_NEWTERM -DTCPSOCKET -DLINUXFSSTND -DNOCOTFMC -DPOSIX \
  6006.     -DUSE_STRERROR $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  6007.     "LIBS = $(LIBS) -lm"
  6008.  
  6009. # As above but with profiling
  6010. linuxp:
  6011.     $(MAKE) linuxa KTARGET=$${KTARGET:-$(@)} "KFLAGS=$(KFLAGS) -pg" \
  6012.     "LIBS=-pg -lcrypt -lresolv"
  6013.  
  6014. #Linux.  This entry should work for any Linux distribution on any platform,
  6015. #32-bit or 64-bit, except for extremely ancient ones.  Automatically detects:
  6016. # . curses, ncurses, or no curses
  6017. # . Old versus new pty handling (new == glibc 2.1++)
  6018. # . Presence or absence of libcrypt.a and <crypt.h>
  6019. # . Presence or absence of libresolv.a
  6020. # . Transitional Long File API for 32-bit platforms (SUS V2 UNIX 98 LFS).
  6021. #Note: The HAVE_PTMX test was previously "if test -c /dev/ptmx" but this was
  6022. #not sufficient for Debian 2.1, because although it had /dev/ptmx, it did not
  6023. #have grantpt(), unlockpt(), or ptsname(), so has been changed to look for a
  6024. #grantpt() prototype in the header files.  Modified in 8.0.206 to allow for
  6025. #libraries that contain .so's but no .a's, e.g. Mandrake 9.0.
  6026. #HAVE_BAUDBOY added in 8.0.210 for Red Hat -- it's like AIX ttylock().
  6027. #Modified 17 Aug 2005 to use openpty() if available because the other stuff
  6028. #dumps core in 64-bit ia64 and x86_64 builds.
  6029. #Long file support for 32-bit builds added in 8.0.212 - if features.h contains
  6030. #__USE_LARGEFILE64 then we set the flags that must be set before reading any
  6031. #header files; on 32-bit platforms such as i386, this produces a 32-bit build
  6032. #capable of accessing, sending, receiving, and managing long (> 2GB) files.
  6033. #On 64-bit platforms, it does no harm.
  6034. #As of 3 March 2009 we detect automatically if we have curses, ncurses,
  6035. #or no curses at all.
  6036. #Added HAVE_LOCKDEV as openSuSE >= 11.3 uses ttylock directly instead of
  6037. #baudboy 2010/08/23
  6038. #OK: 2011/06/18
  6039. linux:
  6040.     @if test \
  6041.     `grep grantpt /usr/include/*.h /usr/include/sys/*.h | wc -l` -gt 0; \
  6042.     then if test -c /dev/ptmx; then HAVE_PTMX='-DHAVE_PTMX'; \
  6043.     else HAVE_PTMX=''; fi; fi ; \
  6044.     if test `grep openpty /usr/include/pty.h | wc -l` -gt 0; \
  6045.     then HAVE_OPENPTY='-DHAVE_OPENPTY'; \
  6046.     else HAVE_OPENPTY=''; fi ; \
  6047.     HAVE_LIBCURSES=''; \
  6048.     if test -f /usr/lib64/libncurses.so || \
  6049.        test -f /usr/lib/libncurses.a  || \
  6050.        test -f /usr/lib/libncurses.so; then \
  6051.       HAVE_LIBCURSES='-lncurses'; \
  6052.     else if test -f /usr/lib64/libcurses.so || \
  6053.        test -f /usr/lib/libcurses.a || \
  6054.        test -f /usr/lib/libcurses.so; then \
  6055.          HAVE_LIBCURSES='-lcurses'; fi; fi; \
  6056.     HAVE_CURSES=''; \
  6057.     if test -n '$$HAVE_LIBCURSES'; then \
  6058.       if test -f /usr/include/ncurses.h; then \
  6059.         HAVE_CURSES='-DCK_NCURSES  -I/usr/include/ncurses'; \
  6060.       else if test -f /usr/include/curses.h; then \
  6061.         HAVE_CURSES='-DCK_CURSES'; \
  6062.     fi; fi; fi; \
  6063.     if test -f /usr/include/baudboy.h || test -f /usr/include/ttylock.h; \
  6064.     then HAVE_LOCKDEV='-DHAVE_LOCKDEV' ; \
  6065.     else HAVE_LOCKDEV='' ; fi ; \
  6066.     if test -f /usr/include/baudboy.h ; \
  6067.     then HAVE_BAUDBOY='-DHAVE_BAUDBOY' ; \
  6068.     else HAVE_BAUDBOY='' ; fi ; \
  6069.     $(MAKE) KTARGET=$${KTARGET:-$(@)} \
  6070.     "KFLAGS=$$HAVE_CURSES $$HAVE_PTMX $$HAVE_LOCKDEV \
  6071.     $$HAVE_BAUDBOY $$HAVE_OPENPTY \
  6072.     `grep __USE_LARGEFILE64 /usr/include/features.h > /dev/null && \
  6073.     echo '-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'` \
  6074.     `if test -f /usr/include/crypt.h; then echo -DHAVE_CRYPT_H; fi` \
  6075.     $(KFLAGS)" \
  6076.     "LIBS=$(LIBS) $$HAVE_LIBCURSES \
  6077.     `if test -n '$$HAVE_OPENPTY'; then echo -lutil; fi` \
  6078.     `if test -f /usr/lib64/libresolv.a || test -f /usr/lib64/libresolv.so \
  6079.     || test -f /usr/lib/libresolv.a || test -f /usr/lib/libresolv.so \
  6080.     || test -f /usr/lib/i386-linux-gnu/libresolv.a \
  6081.     || test -f /usr/lib/i386-linux-gnu/libresolv.so \
  6082.     || ls /lib/x86_64-linux-gnu/libresolv.* > /dev/null 2> /dev/null; \
  6083.     then echo -lresolv; fi` \
  6084.     `if test -f /usr/lib64/libcrypt.a || test -f /usr/lib64/libcrypt.so \
  6085.     || test -f /usr/lib/libcrypt.a || test -f /usr/lib/libcrypt.so \
  6086.     || ls /lib/x86_64-linux-gnu/libcrypt.* > /dev/null 2> /dev/null; \
  6087.     then echo -lcrypt; fi` \
  6088.     `if test -f /usr/lib64/liblockdev.a || \
  6089.     test -f /usr/lib64/liblockdev.so || \
  6090.     test -f /usr/lib/liblockdev.a || \
  6091.     test -f /usr/lib/liblockdev.so; \
  6092.     then echo -llockdev; fi`" \
  6093.     linuxa
  6094.  
  6095. # Linux + Shadow passwords + PAM
  6096. # OK 2011/06/18
  6097. linux+shadow+pam:
  6098.     @echo 'Making C-Kermit $(CKVER) for Linux+Shadow+PAM...'
  6099.     $(MAKE) linux KTARGET=$${KTARGET:-$(@)} \
  6100.     KFLAGS="-DCK_SHADOW -DCK_PAM $(KFLAGS)" \
  6101.     "LNKFLAGS = $(LNKFLAGS)" \
  6102.     "LIBS = -lpam"
  6103.  
  6104. # Linux systems that have no <sys/select.h>.
  6105. # (not tested in recent years, perhaps no longer needed)
  6106. linuxns:
  6107.     $(MAKE) linux KTARGET=$${KTARGET:-$(@)} KFLAGS=-DNO_SYS_SELECT_H
  6108.  
  6109. # Linux-script-only:
  6110. # A minimum-size version for Linux that does only scripting and
  6111. # serial communication -- no networks, no file transfer, no security.
  6112. # OK 2011/06/18
  6113. linuxso:
  6114.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  6115.     "CFLAGS = -O -DLINUX -pipe -funsigned-char -DPOSIX -DCK_POSIX_SIG \
  6116.     -DLINUXFSSTND -DNOCOTFMC -DNOXFER -DNODEBUG -DNOCSETS -DNOHELP \
  6117.     -DNONET -DMINIDIAL -DNOSCRIPT -DNOIKSD -DNOPUSH $(KFLAGS)" \
  6118.     "LNKFLAGS = $(LNKFLAGS)" "LIBS = "
  6119.  
  6120. # Secure targets for Linux.  These work on RHAS4, RHEL4, and RHEL5,
  6121. # unlike some of the older targets that follow.  They hook into the main Linux
  6122. # target so we pick up all the other new stuff - large files, baudboy.h, the
  6123. # appropriate pty interface, etc.
  6124.  
  6125. # Linux with Kerberos 5.
  6126. # Use "make linux+krb5 KFLAGS=-DNO_KRB5_INIT_ETS" if necessary.
  6127. #OK 2011/06/16 on Fedora 14 with:
  6128. # make linux+krb5 "LIBS=$LIBS /lib/libk5crypto.so.3 /lib/libcom_err.so.2"
  6129. # On RHEL5: make linux+krb5 -UCK_DES
  6130. linux+krb5:
  6131.     @echo 'Making C-Kermit $(CKVER) for Linux with Kerberos 5...'
  6132.     @case `openssl version` in \
  6133.       *0.9.7*) OPENSSLOPTION="-DOPENSSL_097" ;; \
  6134.       *0.9.8*) OPENSSLOPTION="-DOPENSSL_098" ;; \
  6135.       *1.[0-9].[0-9]*) OPENSSLOPTION="-DOPENSSL_100" ;; \
  6136.       *) OPENSSLOPTION="" ;; \
  6137.     esac; \
  6138.     HAVE_DES=''; \
  6139.     DES_LIB=''; \
  6140.     if ls /usr/lib/libdes* > /dev/null 2> /dev/null || \
  6141.        ls $(SSLLIB)/libdes* > /dev/null 2> /dev/null; then \
  6142.           DES_LIB='-ldes425'; \
  6143.           HAVE_DES='-DCK_DES -DLIBDES'; \
  6144.               echo "HAVE DES"; \
  6145.            else echo "NO DES"; \
  6146.     fi; \
  6147.     K5CRYPTO=''; \
  6148.         if ls /lib/libk5crypto* > /dev/null 2> /dev/null; then \
  6149.                 K5CRYPTO='-lk5crypto'; \
  6150.     else if ls /usr/lib/libk5crypto* > /dev/null 2> /dev/null; then \
  6151.         K5CRYPTO='-lk5crypto'; \
  6152.         else if ls /usr/lib64/libk5crypto* > /dev/null 2> /dev/null; then \
  6153.                 K5CRYPTO='-lk5crypto'; \
  6154.         fi; fi; fi; \
  6155.     COM_ERR=''; \
  6156.     if ls /lib/libcom_err* > /dev/null 2> /dev/null; then \
  6157.         COM_ERR='-lcom_err'; \
  6158.     fi; \
  6159.     GSSAPILIB='-lgssapi'; \
  6160.     if ls /lib/libgssapi_krb5* > /dev/null 2> /dev/null; then \
  6161.         GSSAPILIB='-lgssapi_krb5'; \
  6162.     else if ls /usr/lib/libgssapi_krb5* > /dev/null 2> /dev/null; then \
  6163.         GSSAPILIB='-lgssapi_krb5'; \
  6164.     else K5DIR=`echo $(K5LIB) | sed 's|-L||'`; \
  6165.         if ls $$K5DIR/libgssapi_krb5* > /dev/null 2> /dev/null; then \
  6166.             GSSAPILIB='-lgssapi_krb5'; \
  6167.     fi; fi; fi; \
  6168.     $(MAKE) linux KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  6169.     "KFLAGS= -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 $$OPENSSLOPTION \
  6170.     -DCK_ENCRYPTION $$HAVE_DES $(K5INC) $(K5INC)/krb5 \
  6171.     -I/usr/include/et $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  6172.     "LIBS = $(K5LIB) $$DES_LIB -lcrypto $$GSSAPILIB -lkrb5 \
  6173.     $$K5CRYPTO $$COM_ERR $(LIBS)" ; \
  6174.     if [ ! -f ./wermit ] || [ ./ckcmai.o -nt ./wermit ] ; then \
  6175.         echo ""; \
  6176.         echo "If build failed try:"; \
  6177.         echo ""; \
  6178.         echo "  make clean ; make $${KTARGET:-$(@)} KFLAGS=-UCK_DES"; \
  6179.         echo ""; \
  6180.     fi
  6181.  
  6182. # Linux with Kerberos 5 and Kerberos 4.
  6183. # Use "make linux+krb5 KFLAGS=-DNO_KRB5_INIT_ETS" if necessary.
  6184. # Add "KFLAGS=-UCK_DES" if failure messages look DES-related.
  6185. # UNTESTED (because I can't find a box with Krb4 and Krb5 installed)
  6186. linux+krb5+krb4:
  6187.     @echo 'Making C-Kermit for Linux with Kerberos 4 and Kerberos 5'
  6188.     $(MAKE) linux+krb5 KTARGET=$${KTARGET:-$(@)} \
  6189.     "KFLAGS=-DKRB4 -DKRB524 $(KFLAGS)" "LIBS=$(LIBS) -lkrb4"
  6190.  
  6191. # Linux with OpenSSL 
  6192. # In Linux, SSL libs are often in /lib or /usr/lib and so found by default.
  6193. # This targets takes into account the DES library might or might not
  6194. # exist.  If it does exist, however, the target will require some editing
  6195. # if its basename is not libdes425.  - fdc Tue Sep 21 14:28:00 2010
  6196. # IMPORTANT: Some Linux platforms have DES libraries but they are missing
  6197. # functions used by Kermit.  In that case you will get fatal errors at
  6198. # link time involving routines such as des_ecb3_encrypt, des_random_seed,
  6199. # and des_set_odd_parity.  In that case, "make linux KFLAGS=-UCK_DES"
  6200. # There's a new warning at the end that should come out if this happens,
  6201. # and that should not come out if it didn't.
  6202. #
  6203. linux+ssl linux+openssl linux+openssl+zlib+shadow+pam linux+openssl+shadow:
  6204.     @echo 'Making C-Kermit $(CKVER) for Linux+OpenSSL SSLLIB=$(SSLLIB)'
  6205.     @case `openssl version` in \
  6206.       *0.9.7*) OPENSSLOPTION="-DOPENSSL_097" ;; \
  6207.       *0.9.8*) OPENSSLOPTION="-DOPENSSL_098" ;; \
  6208.       *1.[0-9].[0-9]*) OPENSSLOPTION="-DOPENSSL_100" ;; \
  6209.       *) OPENSSLOPTION="" ;; \
  6210.     esac; \
  6211.     HAVE_DES=''; \
  6212.     DES_LIB=''; \
  6213.     if ls /usr/lib/libdes* > /dev/null 2> /dev/null || \
  6214.        ls $(SSLLIB)/libdes* > /dev/null 2> /dev/null; then \
  6215.           DES_LIB='-ldes425'; \
  6216.           HAVE_DES='-DCK_DES -DLIBDES'; \
  6217.           echo "HAVE DES"; \
  6218.        else echo "NO DES"; \
  6219.     fi; \
  6220.     $(MAKE) linux KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  6221.     "KFLAGS= -DCK_AUTHENTICATION -DCK_ENCRYPTION -DCK_CAST $$HAVE_DES \
  6222.     -DCK_SSL -DCK_PAM -DZLIB -DCK_SHADOW $$OPENSSLOPTION $(SSLINC) \
  6223.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  6224.     "LIBS = $(SSLLIB) -lssl $$DES_LIB -lcrypto -lpam -ldl -lz $(LIBS)" ; \
  6225.     if [ ! -f ./wermit ] || [ ./ckcmai.o -nt ./wermit ] ; then \
  6226.         echo ""; \
  6227.         echo "If build failed try:"; \
  6228.         echo ""; \
  6229.         echo "  make clean ; make $${KTARGET:-$(@)} KFLAGS=-UCK_DES"; \
  6230.         echo ""; \
  6231.     fi
  6232.  
  6233. # Linux with Kerberos 5 and OpenSSL
  6234. # OK 2011/05/16
  6235. # Add -UCK_DES if functions like des_ecb3_encrypt, es_random_seed,
  6236. # come up missing at link time.
  6237. linux+krb5+ssl linux+krb5+openssl:
  6238.     @echo 'Making C-Kermit $(CKVER) for Linux with Krb5 and OpenSSL...'
  6239.     @case `openssl version` in \
  6240.       *0.9.7*) OPENSSLOPTION="-DOPENSSL_097" ;; \
  6241.       *0.9.8*) OPENSSLOPTION="-DOPENSSL_098" ;; \
  6242.       *1.[0-9].[0-9]*) OPENSSLOPTION="-DOPENSSL_100" ;; \
  6243.       *) OPENSSLOPTION="" ;; \
  6244.     esac; \
  6245.     HAVE_DES=''; \
  6246.     DES_LIB=''; \
  6247.     if ls /usr/lib/libdes* > /dev/null 2> /dev/null || \
  6248.        ls $(SSLLIB)/libdes* > /dev/null 2> /dev/null; then \
  6249.           DES_LIB='-ldes425'; \
  6250.           HAVE_DES='-DCK_DES -DLIBDES'; \
  6251.           echo "HAVE DES"; \
  6252.        else echo "NO DES"; \
  6253.     fi; \
  6254.     K5CRYPTO=''; \
  6255.         if ls /lib/libk5crypto* > /dev/null 2> /dev/null; then \
  6256.                 K5CRYPTO='-lk5crypto'; \
  6257.     else if ls /usr/lib/libk5crypto* > /dev/null 2> /dev/null; then \
  6258.         K5CRYPTO='-lk5crypto'; \
  6259.         else if ls /usr/lib64/libk5crypto* > /dev/null 2> /dev/null; then \
  6260.                 K5CRYPTO='-lk5crypto'; \
  6261.     fi; fi; fi; \
  6262.     COM_ERR=''; \
  6263.     if ls /lib/libcom_err* > /dev/null 2> /dev/null; then \
  6264.         COM_ERR='-lcom_err'; \
  6265.     fi; \
  6266.     GSSAPILIB='-lgssapi'; \
  6267.     if ls /lib/libgssapi_krb5* > /dev/null 2> /dev/null; then \
  6268.         GSSAPILIB='-lgssapi_krb5'; \
  6269.     else if ls /usr/lib/libgssapi_krb5* > /dev/null 2> /dev/null; then \
  6270.         GSSAPILIB='-lgssapi_krb5'; \
  6271.     else K5DIR=`echo $(K5LIB) | sed 's|-L||'`; \
  6272.         if ls $$K5DIR/libgssapi_krb5* > /dev/null 2> /dev/null; then \
  6273.             GSSAPILIB='-lgssapi_krb5'; \
  6274.     fi; fi; fi; \
  6275.     $(MAKE) linux KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  6276.     "KFLAGS= -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 \
  6277.     -DCK_SSL -DCK_PAM -DZLIB -DCK_SHADOW $$OPENSSLOPTION $(SSLINC) \
  6278.     -DCK_ENCRYPTION $$HAVE_DES $(K5INC) $(K5INC)/krb5 \
  6279.     -I/usr/include/et $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  6280.     "LIBS = $(K5LIB) $(SSLLIB) -lssl $$DES_LIB -lpam -lz \
  6281.     -lcrypto $$GSSAPILIB -lkrb5 $$K5CRYPTO $$COM_ERR $(LIBS)" ; \
  6282.     if [ ! -f ./wermit ] || [ ./ckcmai.o -nt ./wermit ] ; then \
  6283.         echo ""; \
  6284.         echo "If build failed try:"; \
  6285.         echo ""; \
  6286.         echo "  make clean ; make $${KTARGET:-$(@)} KFLAGS=-UCK_DES"; \
  6287.         echo ""; \
  6288.     fi
  6289.  
  6290. # ::BEGIN_OLD_LINUX_TARGETS::
  6291.  
  6292. # The remaining Linux entries are for special or customized builds.  They have
  6293. # not been generalized ("subroutinized") like the ones above.  Ideally, we
  6294. # should allow for every combination of libc vs glibc, gcc vs egcs, curses vs
  6295. # ncurses, Kerberos IV vs Kerberos V vs SRP (in any combination), and so on.
  6296. # The best way to do this is to set KFLAGS and LIBS values and then chain to
  6297. # the main "linux" target, as in the examples just above.  To skip past all of
  6298. # these old targets (and there are many) search for ::END_OLD_LINUX_TARGETS::
  6299. # (after this line).
  6300.  
  6301. #Sharp Zaurus SL-5500 - Linux based
  6302. zsl5500:
  6303.     @echo 'Making C-Kermit $(CKVER) for Sharp Zaurus SL-5500...'
  6304.     @touch ckcpro.c
  6305.     @touch wart
  6306.     $(MAKE) linuxnc KTARGET=$${KTARGET:-$(@)} "KFLAGS=-DZSL5500" \
  6307.     "CC = gcc" "CC2 = gcc"
  6308.  
  6309. #Mklinux DR3 has horrible bug in <utmpbits.h> - see ckufio.c.
  6310. mklinux:
  6311.     $(MAKE) KTARGET=$${KTARGET:-$(@)} "KFLAGS=-DUTMPBUG" \
  6312.     "LIBS=-lcrypt -lresolv" linuxa
  6313.  
  6314. #LinuxPPC 1999
  6315. linuxppc:
  6316.     @echo 'Making C-Kermit $(CKVER) for LinuxPPC 1999...'
  6317.     @if test -f /usr/lib/libcrypt.a; then \
  6318.         if test -f /usr/lib/libresolv.a; then \
  6319.             $(MAKE) KTARGET=$${KTARGET:-$(@)} \
  6320.         "KFLAGS=$(NCURSES_CPP) -DHAVE_CRYPT_H \
  6321.         -DLOCK_DIR=\\\\\\"\"/var/lock/modem\\\\\\"\" $(KFLAGS)" \
  6322.             "LIBS=-lncurses -lresolv -lcrypt" linuxa ; \
  6323.         else \
  6324.             $(MAKE) KTARGET=$${KTARGET:-$(@)} \
  6325.         "KFLAGS=$(NCURSES_CPP) -DHAVE_CRYPT_H \
  6326.         -DLOCK_DIR=\\\\\\"\"/var/lock/modem\\\\\\"\" $(KFLAGS)" \
  6327.             "LIBS=-lncurses -lcrypt" linuxa ; \
  6328.         fi \
  6329.     else \
  6330.         if test -f /usr/lib/libresolv.a; then \
  6331.             $(MAKE) KTARGET=$${KTARGET:-$(@)} \
  6332.         "KFLAGS=$(NCURSES_CPP) \
  6333.         -DLOCK_DIR=\\\\\\"\"/var/lock/modem\\\\\\"\" $(KFLAGS)" \
  6334.             "LIBS=-lncurses -lresolv" linuxa ; \
  6335.         else \
  6336.             $(MAKE) KTARGET=$${KTARGET:-$(@)} \
  6337.         "KFLAGS=$(NCURSES_CPP) \
  6338.         -DLOCK_DIR=\\\\\\"\"/var/lock/modem\\\\\\"\" $(KFLAGS)" \
  6339.             "LIBS=-lncurses" linuxa ; \
  6340.         fi \
  6341.     fi
  6342.  
  6343.  
  6344. # Like "make linux" but built with egcs rather than gcc.
  6345. # If you get "Internal compiler error xxx, output pipe has been closed",
  6346. # try removing -pipe.
  6347. linuxegcs:
  6348.     @echo 'Making C-Kermit $(CKVER) for Linux 1.2 or later with egcs...'
  6349.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = egcs" "CC2 = egcs" \
  6350.     "CFLAGS = -O -DLINUX -pipe -funsigned-char \
  6351.     -DPOSIX -DCK_POSIX_SIG -DCK_NCURSES -DNOCOTFMC \
  6352.     -DTCPSOCKET -DLINUXFSSTND $(KFLAGS)" \
  6353.     "LNKFLAGS = $(LNKFLAGS)" "LIBS = -lncurses -lcrypt -lresolv"
  6354.  
  6355. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.1 (no K4 compatibility).
  6356. linux+krb5-old:
  6357.     @echo 'Making C-Kermit $(CKVER) for Linux on Intel with Kerberos...'
  6358.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  6359.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  6360.     -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 \
  6361.     -DCK_ENCRYPTION -DCK_DES -DCK_CURSES -DCK_POSIX_SIG \
  6362.     -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H $(K5INC) $(K5INC)/krb5 \
  6363.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  6364.     "LIBS = $(K5LIB) -lncurses -ltermcap -ldes425 -lkrb5 \
  6365.     -lcom_err -lk5crypto -lgssapi_krb5 -lcrypt -lresolv"
  6366.  
  6367. # Linux on Intel PC with SRP 1.7.4 using GNU MP, Krypto, and Eric Young's
  6368. # DES library.  Remove the -DCK_DES, -DLIBDES and -ldes if you do not have
  6369. # Eric Young's# libdes.a installed.
  6370. #
  6371. linux+srp+gmp:
  6372.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SRP...'
  6373.     $(MAKE) srpmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  6374.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  6375.     -DCK_AUTHENTICATION -DCK_SRP \
  6376.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES \
  6377.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  6378.     $(SRPINC) $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  6379.     "LIBS = $(SRPLIB) \
  6380.     -lncurses -ltermcap -lsrp -lgmp -ldes -lkrypto -lcrypt -lresolv"
  6381.  
  6382. linux+srp+gmp+no-des:
  6383.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SRP ...'
  6384.     $(MAKE) srpmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  6385.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  6386.     -DCK_AUTHENTICATION -DCK_SRP \
  6387.     -DCK_ENCRYPTION -DCK_CAST \
  6388.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  6389.     $(SRPINC) $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  6390.     "LIBS = $(SRPLIB) \
  6391.     -lncurses -ltermcap -lsrp -lgmp -lkrypto -lcrypt -lresolv"
  6392.  
  6393. linux+srp+gmp-export:
  6394.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SRP...'
  6395.     $(MAKE) srpmit-export KTARGET=$${KTARGET:-$(@)} \
  6396.     "CC = gcc" "CC2 = gcc" \
  6397.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  6398.     -DCK_AUTHENTICATION -DCK_SRP -DFNFLOAT \
  6399.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  6400.     $(SRPINC) $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  6401.     "LIBS = $(SRPLIB) \
  6402.     -lncurses -ltermcap -lsrp -lgmp -lkrypto -lcrypt -lm -lresolv"
  6403.  
  6404. linux+srp+gmp+pam:
  6405.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SRP...'
  6406.     $(MAKE) srpmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  6407.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  6408.     -DCK_AUTHENTICATION -DCK_SRP \
  6409.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES \
  6410.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  6411.     -DCK_PAM -DFNFLOAT $(SRPINC) $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  6412.     "LIBS = $(SRPLIB) -lncurses -ltermcap -lsrp -lgmp -ldes -lkrypto \
  6413.     -lcrypt -lpam -ldl -lm -lresolv"
  6414.  
  6415. #Linux on Intel PC with SRP 1.7.4 built with OpenSSL for Big Number Math
  6416. #and Cryptographic functionality.
  6417. #
  6418. linux+srp:
  6419.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SRP...'
  6420.     $(MAKE) srpmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  6421.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  6422.     -DCK_AUTHENTICATION -DCK_SRP \
  6423.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES \
  6424.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  6425.     $(SRPINC) $(SSLINC) $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  6426.     "LIBS = $(SRPLIB) $(SSLLIB) \
  6427.     -lncurses -ltermcap -lsrp -lkrypto -lcrypto -lcrypt -lresolv"
  6428.  
  6429. linux+srp+pam:
  6430.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SRP...'
  6431.     $(MAKE) srpmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  6432.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  6433.     -DCK_AUTHENTICATION -DCK_SRP \
  6434.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES \
  6435.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  6436.     -DCK_PAM -DFNFLOAT $(SRPINC) $(SSLINC) $(KFLAGS)" \
  6437.     "LNKFLAGS = $(LNKFLAGS)" \
  6438.     "LIBS = $(SRPLIB) $(SSLLIB) -lncurses -ltermcap -lsrp -lkrypto \
  6439.     -lcrypto -lcrypt -lpam -ldl -lm -lresolv"
  6440.  
  6441. #Linux on Intel PC with SRP and SSL/TLS.
  6442. #
  6443. # libsrp.a should be build with OpenSSL
  6444. # Requires the Kerberos 1.2.2 or higher to be compiled with KRB4 compatibility.
  6445. #Remove -ltermcap if it causes trouble e.g. in Debian 2.2.
  6446. #If you have OpenSSL 0.9.7 or later, add -DOPENSSL_097 to KFLAGS.
  6447. linux+srp+openssl:
  6448.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SRP,SSL...'
  6449.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  6450.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  6451.     -DCK_AUTHENTICATION -DCK_SRP \
  6452.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL \
  6453.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  6454.     $(SRPINC) $(SSLINC) $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  6455.     "LIBS = $(SRPLIB) $(SSLLIB) \
  6456.     -lncurses -ltermcap -lsrp -lssl -lkrypto -lcrypto \
  6457.     -lcrypt -lresolv"
  6458.  
  6459. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.2 and SRP.
  6460. #
  6461. # libsrp.a should be build with GNU MP (libgmp.a)
  6462. # instead of AT&T CryptoLib (libcrypt.a) due to naming conflicts with
  6463. # standard distribution Linux libraries.
  6464. # Requires the Kerberos 1.2.2 or higher to be compiled with KRB4 compatibility.
  6465. linux+krb5+krb4+srp:
  6466.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB54+SRP...'
  6467.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  6468.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  6469.     -DCK_AUTHENTICATION -DCK_SRP -DCK_KERBEROS  -DKRB5 -DKRB4 -DKRB524 \
  6470.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES \
  6471.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  6472.     $(K5INC) $(K5INC)/krb5 $(SRPINC) \
  6473.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  6474.     "LIBS = $(K5LIB) $(SRPLIB) \
  6475.     -lncurses -ltermcap -lsrp -lgmp -lgssapi_krb5 -lkrypto \
  6476.     -ldes -lkrb4 -ldes425 -lkrb5 -lcom_err -lk5crypto -lcrypt -lresolv"
  6477.  
  6478. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.2, SRP and SSL/TLS.
  6479. #
  6480. # libsrp.a should be build with OpenSSL
  6481. # Requires the Kerberos 1.2.2 or higher to be compiled with KRB4 compatibility.
  6482. # Requires OpenSSL 0.9.6a or higher
  6483. #If you have OpenSSL 0.9.7 or later, add -DOPENSSL_097 to KFLAGS.
  6484. linux+krb5+krb4+srp+openssl:
  6485.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SRP,SSL...'
  6486.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  6487.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  6488.     -DCK_AUTHENTICATION -DCK_SRP -DCK_KERBEROS  -DKRB5 -DKRB4 -DKRB524 \
  6489.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL \
  6490.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  6491.     $(K5INC) $(K5INC)/krb5 $(SRPINC) $(SSLINC) \
  6492.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  6493.     "LIBS = $(K5LIB) $(SRPLIB) $(SSLLIB) \
  6494.     -lncurses -ltermcap -lsrp \
  6495.     -lkrb4 -lssl -lkrypto -lcrypto \
  6496.     -lkrb5 -lcom_err -lk5crypto -lgssapi_krb5 -lcrypt -lresolv"
  6497.  
  6498. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.2, SSL/TLS.
  6499. #
  6500. # libsrp.a should be build with OpenSSL
  6501. # Requires the Kerberos 1.2.2 be compiled with KRB4 compatibility.
  6502. #If you have OpenSSL 0.9.7 or later, add -DOPENSSL_097 to KFLAGS.
  6503. linux+krb5+krb4+openssl:
  6504.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SSL...'
  6505.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  6506.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  6507.     -DCK_AUTHENTICATION -DCK_KERBEROS  -DKRB5 -DKRB4 -DKRB524 \
  6508.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL \
  6509.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  6510.     $(K5INC) $(K5INC)/krb5 $(SSLINC) \
  6511.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  6512.     "LIBS = $(K5LIB) $(SSLLIB) \
  6513.     -lncurses -ltermcap \
  6514.     -lkrb4 -lssl -lcrypto -lkrb5 -lcom_err \
  6515.     -lk5crypto -lgssapi_krb5 -lcrypt -lresolv"
  6516.  
  6517. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.1, SSL/TLS.
  6518. #
  6519. # libsrp.a should be build with OpenSSL
  6520. # Requires the Kerberos 1.2.2 be compiled with KRB4 compatibility.
  6521. # If you have OpenSSL 0.9.7 or later, add -DOPENSSL_097 to KFLAGS.
  6522. linux+krb5+krb4+openssl+shadow:
  6523.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SSL...'
  6524.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  6525.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  6526.     -DCK_AUTHENTICATION -DCK_KERBEROS  -DKRB5 -DKRB4 -DKRB524 \
  6527.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL -DCK_SHADOW \
  6528.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  6529.     $(K5INC) $(K5INC)/krb5 $(SSLINC) \
  6530.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  6531.     "LIBS = $(K5LIB) $(SSLLIB)  \
  6532.     -lncurses -ltermcap \
  6533.     -lkrb4 -lssl -lcrypto -lkrb5 -lcom_err \
  6534.     -lk5crypto -lgssapi_krb5 -lcrypt -lresolv"
  6535.  
  6536. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2, SSL/TLS.
  6537. #
  6538. # libsrp.a should be build with OpenSSL
  6539. # Requires the Kerberos 1.2.2 be compiled with KRB4 compatibility.
  6540. # If you have OpenSSL 0.9.7 or later, add -DOPENSSL_097 to KFLAGS.
  6541. linux+krb5+krb4+openssl+zlib+shadow:
  6542.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SSL...'
  6543.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  6544.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  6545.     -DCK_AUTHENTICATION -DCK_KERBEROS  -DKRB5 -DKRB4 -DKRB524 -DZLIB \
  6546.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL -DCK_SHADOW \
  6547.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  6548.     $(K5INC) $(K5INC)/krb5 $(SSLINC) \
  6549.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  6550.     "LIBS = $(K5LIB) $(SSLLIB) \
  6551.     -lncurses -ltermcap \
  6552.     -lkrb4 -lssl -lcrypto -lkrb5 -lcom_err \
  6553.     -lk5crypto -lgssapi_krb5 -lcrypt -lresolv -lz"
  6554.  
  6555. linux+krb5+krb4+srp-export:
  6556.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SRP...'
  6557.     $(MAKE) xermit-export KTARGET=$${KTARGET:-$(@)} \
  6558.     "CC = gcc" "CC2 = gcc" \
  6559.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  6560.     -DCK_AUTHENTICATION -DCK_SRP -DCK_KERBEROS  -DKRB5 -DKRB4 -DKRB524 \
  6561.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  6562.     $(K5INC) $(K5INC)/krb5 $(SRPINC) \
  6563.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  6564.     "LIBS = $(SRPLIB) $(K5LIB) \
  6565.     -lncurses -ltermcap -lsrp -lgmp -lkrb4 -ldes425 -lkrb5 -lgssapi_krb5 \
  6566.     -lcom_err -lk5crypto -lkrypto -lcrypt -lresolv"
  6567.  
  6568. linux+krb5+krb4+srp+pam:
  6569.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SRP...'
  6570.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  6571.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  6572.     -DCK_AUTHENTICATION -DCK_SRP -DCK_KERBEROS  -DKRB5 -DKRB4 -DKRB524 \
  6573.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES \
  6574.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  6575.     -DCK_PAM $(K5INC) $(K5INC)/krb5 $(SRPINC) \
  6576.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  6577.     "LIBS = $(SRPLIB) $(K5LIB) \
  6578.     -lncurses -ltermcap -lsrp -lgmp -ldes -lkrb4 -ldes425 -lkrb5 \
  6579.     -lcom_err -lk5crypto -lgssapi_krb5 -lkrypto -lcrypt -lpam -ldl \
  6580.     -lresolv"
  6581.  
  6582. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.2, SRP and SSL/TLS.
  6583. # and PAM.
  6584. #
  6585. # libsrp.a should be build with OpenSSL
  6586. # Requires the Kerberos 1.2.2 be compiled with KRB4 compatibility.
  6587. # If you have OpenSSL 0.9.7 or later, add -DOPENSSL_097 to KFLAGS.
  6588. linux+krb5+krb4+srp+openssl+pam-debug:
  6589.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SRP,SSL...'
  6590.     $(MAKE) xermit-debug KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  6591.     "CFLAGS = -g -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  6592.     -DCK_AUTHENTICATION -DCK_SRP -DCK_KERBEROS  -DKRB5 -DKRB4 -DKRB524 \
  6593.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL -DCK_PAM \
  6594.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  6595.     -w -Dmalloc=dmalloc -Dfree=dfree -DMDEBUG $(K5INC) $(K5INC)/krb5 \
  6596.     $(SRPINC) $(SSLINC) $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  6597.     "LIBS = $(SRPLIB) $(K5LIB) $(SSLLIB) \
  6598.     -lncurses -ltermcap -lsrp -lkrb4 -lssl -lkrypto -lcrypto \
  6599.     -lkrb5 -lcom_err -lk5crypto -lgssapi_krb5 -lcrypt -lresolv -lpam -ldl"
  6600.  
  6601. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.1, SRP and SSL/TLS.
  6602. # and PAM.
  6603. #
  6604. # libsrp.a should be build with OpenSSL
  6605. # Requires the Kerberos 1.2.2 be compiled with KRB4 compatibility.
  6606. # If you have OpenSSL 0.9.7 or later, add -DOPENSSL_097 to KFLAGS.
  6607. linux+krb5+krb4+srp+openssl+pam:
  6608.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SRP,SSL...'
  6609.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  6610.     "CFLAGS = -g -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  6611.     -DCK_AUTHENTICATION -DCK_SRP -DCK_KERBEROS  -DKRB5 -DKRB4 -DKRB524 \
  6612.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL -DCK_PAM \
  6613.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  6614.     $(K5INC) $(K5INC)/krb5 $(SRPINC) $(SSLINC) \
  6615.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  6616.     "LIBS = $(SRPLIB) $(K5LIB) $(SSLLIB)  \
  6617.     -lm -lncurses -ltermcap -lsrp \
  6618.     -lkrb4 -lssl -lkrypto  -lcrypto -lgssapi_krb5 \
  6619.     -lkrb5 -lcom_err -lk5crypto -lcrypt -lresolv -lpam -ldl"
  6620.  
  6621. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.2, SRP, OpenSSL
  6622. # with ZLIB and PAM
  6623. #
  6624. # libsrp.a should be build with OpenSSL
  6625. # Requires the Kerberos 1.2.2 be compiled with KRB4 compatibility.
  6626. # If you have OpenSSL 0.9.7 or later, add -DOPENSSL_097 to KFLAGS.
  6627. linux+krb5+krb4+srp+openssl+zlib+pam:
  6628.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SRP,SSL...'
  6629.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  6630.     "CFLAGS = -g -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  6631.     -DCK_AUTHENTICATION -DCK_SRP -DCK_KERBEROS  -DKRB5 -DKRB4 -DKRB524 \
  6632.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL -DCK_PAM -DZLIB \
  6633.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  6634.     $(K5INC) $(K5INC)/krb5 $(SRPINC) $(SSLINC) \
  6635.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  6636.     "LIBS = $(SRPLIB) $(K5LIB) $(SSLLIB) \
  6637.     -lm -lncurses -ltermcap -lsrp \
  6638.     -lkrb4 -lssl -lkrypto  -lcrypto -lgssapi_krb5 \
  6639.     -lkrb5 -lcom_err -lk5crypto -lcrypt -lresolv -lpam -ldl -lz"
  6640.  
  6641. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.2, SRP, OpenSSL
  6642. # with ZLIB, Shadow Passwords, and PAM
  6643. #
  6644. # libsrp.a should be build with OpenSSL
  6645. # Requires the Kerberos 1.2.2 be compiled with KRB4 compatibility.
  6646. # If you have OpenSSL 0.9.7 or later, add -DOPENSSL_097 to KFLAGS.
  6647. linux+krb5+krb4+srp+openssl+zlib+shadow+pam:
  6648.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SRP,SSL...'
  6649.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  6650.     "CFLAGS = -g -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  6651.     -DCK_AUTHENTICATION -DCK_SRP -DCK_KERBEROS  -DKRB5 -DKRB4 -DKRB524 \
  6652.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL -DCK_PAM -DZLIB \
  6653.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  6654.     -DCK_SHADOW $(K5INC) $(K5INC)/krb5 $(SRPINC) $(SSLINC) \
  6655.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  6656.     "LIBS = $(SRPLIB) $(K5LIB) $(SSLLIB) \
  6657.     -lm -lncurses -ltermcap -lsrp -lkrypto \
  6658.     -lkrb4 -lssl -lcrypto -lgssapi_krb5 \
  6659.     -lkrb5 -lcom_err -lk5crypto -lcrypt -lresolv -lpam -ldl -lz"
  6660.  
  6661. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.2, OpenSSL
  6662. # with Shadow Passwords, PAM
  6663. #
  6664. # Requires the Kerberos 1.2.2 be compiled with KRB4 compatibility.
  6665. linux+krb5+krb4+openssl+shadow+pam:
  6666.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SSL,...'
  6667.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  6668.     "CFLAGS = -g -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  6669.     -DCK_AUTHENTICATION -DCK_KERBEROS  -DKRB5 -DKRB4 -DKRB524 \
  6670.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL -DCK_PAM \
  6671.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  6672.     -DCK_SHADOW $(K5INC) $(K5INC)/krb5 $(SSLINC) \
  6673.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  6674.     "LIBS = $(K5LIB) $(SSLLIB) \
  6675.     -lm -lncurses -ltermcap \
  6676.     -lkrb4 -lssl -lcrypto -lgssapi_krb5 \
  6677.     -lkrb5 -lcom_err -lk5crypto -lcrypt -lresolv -lpam -ldl"
  6678.  
  6679. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.2, OpenSSL
  6680. # with ZLIB, Shadow Passwords, PAM
  6681. #
  6682. # libsrp.a should be build with OpenSSL
  6683. # Requires the Kerberos 1.2.2 be compiled with KRB4 compatibility.
  6684. # If you have OpenSSL 0.9.7 or later, add -DOPENSSL_097 to KFLAGS.
  6685. linux+krb5+krb4+openssl+zlib+shadow+pam:
  6686.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SRP,SSL...'
  6687.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  6688.     "CFLAGS = -g -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  6689.     -DCK_AUTHENTICATION -DCK_KERBEROS  -DKRB5 -DKRB4 -DKRB524 \
  6690.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL -DCK_PAM -DZLIB \
  6691.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  6692.     -DCK_SHADOW $(K5INC) $(K5INC)/krb5 $(SSLINC) \
  6693.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  6694.     "LIBS = $(K5LIB) $(SSLLIB) \
  6695.     -lm -lncurses -ltermcap \
  6696.     -lkrb4 -lssl -lcrypto -lgssapi_krb5 \
  6697.     -lkrb5 -lcom_err -lk5crypto -lcrypt -lresolv -lpam -ldl -lz"
  6698.  
  6699. #Red Hat 9 - full install includes Kerberos 5 (4 compat), PAM, SSL.
  6700. #Also works around bug in curses in which terminal goes dead after
  6701. #returning from file-transfer display.  Assumes OpenSSL 0.9.7 or later.
  6702. redhat9:
  6703.     @echo "Building SECURE Kermit for Red Hat 9.0..."
  6704.     $(MAKE) linux+krb5+krb4+openssl+zlib+shadow+pam \
  6705.     KTARGET=$${KTARGET:-$(@)} "KFLAGS = -DRH90 -DOPENSSL_097 $(KFLAGS)"
  6706.  
  6707. #Ditto plus SRP (which is not normally included with RH Linux).
  6708. redhat9+srp:
  6709.     @echo "Building SECURE Kermit for Red Hat 9.0..."
  6710.     $(MAKE) linux+krb5+krb4+srp+openssl+zlib+shadow+pam \
  6711.     KTARGET=$${KTARGET:-$(@)} "KFLAGS = -DRH90 -DOPENSSL_097 $(KFLAGS)"
  6712.  
  6713. #For Red Hat AS 2.1 with OpenSSL
  6714. redhat21+ssl:
  6715.     @echo "Building SECURE Kermit for Red Hat 2.1..."
  6716.     $(MAKE) linux+openssl+zlib+shadow+pam \
  6717.     KTARGET=$${KTARGET:-$(@)} "KFLAGS =  $(KFLAGS)"
  6718.  
  6719. #Red Hat Linux 8.0 - full install includes Kerberos 5 (4 compat), PAM, SSL.
  6720. #Also works around bug in curses in which terminal goes dead after
  6721. #returning from file-transfer display.
  6722. redhat80:
  6723.     @echo "Building SECURE Kermit for Red Hat 8.0..."
  6724.     $(MAKE) linux+krb5+krb4+openssl+zlib+shadow+pam \
  6725.     KTARGET=$${KTARGET:-$(@)} "KFLAGS = -DRH80 $(KFLAGS)"
  6726.  
  6727. redhat80+srp:
  6728.     @echo "Building SECURE Kermit for Red Hat 8.0..."
  6729.     $(MAKE) linux+krb5+krb4+srp+openssl+zlib+shadow+pam \
  6730.     KTARGET=$${KTARGET:-$(@)} "KFLAGS = -DRH80 $(KFLAGS)"
  6731.  
  6732. #Red Hat Linux 7.3 - full install includes Kerberos 5 (4 compat), PAM, SSL.
  6733. #Also works around bug in curses in which terminal goes dead after
  6734. #returning from file-transfer display.
  6735. redhat73:
  6736.     @echo "Building SECURE Kermit for Red Hat 7.3..."
  6737.     $(MAKE) linux+krb5+krb4+openssl+zlib+shadow+pam \
  6738.     KTARGET=$${KTARGET:-$(@)} "KFLAGS = -DRH73 $(KFLAGS)"
  6739.  
  6740. redhat73+srp:
  6741.     @echo "Building SECURE Kermit for Red Hat 7.3..."
  6742.     $(MAKE) linux+krb5+krb4+srp+openssl+zlib+shadow+pam \
  6743.     KTARGET=$${KTARGET:-$(@)} "KFLAGS = -DRH73 $(KFLAGS)"
  6744.  
  6745. #Red Hat Linux 7.2 - full install includes Kerberos 5 (4 compat), PAM, SSL.
  6746. #Also works around bug in curses in which terminal goes dead after
  6747. #returning from file-transfer display.
  6748. redhat72:
  6749.     @echo "Building SECURE Kermit for Red Hat 7.2..."
  6750.     $(MAKE) linux+krb5+krb4+openssl+zlib+shadow+pam \
  6751.     KTARGET=$${KTARGET:-$(@)} "KFLAGS = -DRH72 $(KFLAGS)"
  6752.  
  6753. redhat72+srp:
  6754.     @echo "Building SECURE Kermit for Red Hat 7.2..."
  6755.     $(MAKE) linux+krb5+krb4+srp+openssl+zlib+shadow+pam \
  6756.     KTARGET=$${KTARGET:-$(@)} "KFLAGS = -DRH72 $(KFLAGS)"
  6757.  
  6758. #Red Hat Linux 7.1 - full install includes Kerberos 5 (4 compat), PAM, SSL.
  6759. #Also works around bug in curses in which terminal goes dead after
  6760. #returning from file-transfer display.
  6761. redhat71:
  6762.     @echo "Building SECURE Kermit for Red Hat 7.1..."
  6763.     $(MAKE) linux+krb5+krb4+openssl+zlib+shadow+pam \
  6764.     KTARGET=$${KTARGET:-$(@)} "KFLAGS = -DRH71 $(KFLAGS)"
  6765.  
  6766. redhat71+srp:
  6767.     @echo "Building SECURE Kermit for Red Hat 7.1..."
  6768.     $(MAKE) linux+krb5+krb4+srp+openssl+zlib+shadow+pam \
  6769.     KTARGET=$${KTARGET:-$(@)} "KFLAGS = -DRH71 $(KFLAGS)"
  6770.  
  6771. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.2, OpenSSL
  6772. # with ZLIB and PAM and Shadow passwords
  6773. linux+krb5+openssl+zlib+shadow+pam:
  6774.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB5,SSL...'
  6775.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  6776.     "CFLAGS = -g -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  6777.     -DCK_AUTHENTICATION -DCK_KERBEROS  -DKRB5 -DCK_SHADOW -DHAVE_PTMX \
  6778.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL -DCK_PAM -DZLIB \
  6779.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  6780.     $(K5INC) $(K5INC)/krb5 $(SSLINC) \
  6781.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  6782.     "LIBS = $(K5LIB) $(SSLLIB) \
  6783.     -lm -lncurses -ltermcap -lssl -lcrypto -lgssapi_krb5 \
  6784.     -lkrb5 -lcom_err -lk5crypto -lcrypt -lresolv -lpam -ldl -lz"
  6785.  
  6786. linuxnotcp:
  6787.     $(MAKE) linux KTARGET=$${KTARGET:-$(@)} "KFLAGS = -DNONET $(KFLAGS)"
  6788.  
  6789. # "make linuxnotcp" with lcc (see http://www.cs.princeton.edu/software/lcc)
  6790. # lcc does not understand various gcc extensions:
  6791. #  "__inline__" -- can be eliminated by adding "-D__inline__="
  6792. #  "__asm__ and "long long" -- in header files, should be surrounded by
  6793. #                              "#ifndef(__STRICT_ANSI__)"/"#endif"
  6794. #  however, TCP requires some __asm__ functions, so cannot be compiled
  6795. linuxnotcp-lcc:
  6796.     @echo 'Making C-Kermit $(CKVER) for Linux with lcc ...'
  6797.     @echo 'Read comments in makefile for additional information.'
  6798.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC = lcc" "CC2 = lcc" \
  6799.     "CFLAGS = -DLINUX -DPOSIX -DCK_CURSES -DCK_POSIX_SIG \
  6800.     -UTCPSOCKET -DLINUXFSSTND -DNOLEARN $(KFLAGS)" \
  6801.     "LNKFLAGS = $(LNKFLAGS)" "LIBS = -lcurses -ltermcap"
  6802.  
  6803. # Linux 0.99.14 thru 1.0 with gcc, dynamic libraries, curses, TCP/IP.
  6804. # For Linux 1.2 or later, use "make linux" (above).
  6805. #
  6806. # -DLINUXFSSTND (Linux File System Standard) gives UUCP lockfile /var/lock with
  6807. # string pid.  Remove this and get /usr/spool/uucp with int pid, which was used
  6808. # in early Linux versions.
  6809. #
  6810. # If you get compiler errors regarding <linux/serial.h>, add -DNOHISPEED.
  6811. #
  6812. # -DCK_POSIX_SIG (POSIX signal handling) is good for Linux releases back to at
  6813. # least 0.99.14; if it causes trouble for you, just remove it.
  6814. #
  6815. # -DCK_CURSES: Here we link with the regular curses library.  But you should
  6816. # be using ncurses.  Internally, the ckuusx.c module includes <curses.h>, but
  6817. # this really should be <ncurses.h>.  Thus if you have the new curses
  6818. # material, you should either install it with the standard names, or else
  6819. # create symbolic links from the standard names to the new ones.  If you get
  6820. # compile-time errors complaining about data definitions in termcap.h, it
  6821. # means you have new kernel material mixed with older libc header files.  To
  6822. # fix, add "#include <termios.h>" to the <termcap.h> file.  Or if all this is
  6823. # too confusing, create a new makefile entry based on this one, but with
  6824. # -DCK_CURSES removed from CFLAGS and the entire LIBS= clause removed.
  6825. #
  6826. # But wait, there's more.  On most Linux systems, -ltermcap must be included
  6827. # in LIBS.  But on others, the linker complains that libtermcap can't be
  6828. # found.  In that case, try removing -ltermcap from LIBS=.
  6829. #
  6830. # But wait, there's more.  The format of the PID string in the UUCP lockfile
  6831. # changed between Linux FSSTND 1.0 and 1.2.  In the earlier standard, it had
  6832. # leading zeros; in the second, it has leading spaces.  By default this entry
  6833. # uses the newer standard.  To force the older one, add -DFSSTND10.
  6834. #
  6835. # "The nice thing about the Linux standard is there are so many to choose from"
  6836. #
  6837. # NOTE: Remove -DBIGBUFOK for small-memory or limited-resource systems.
  6838. linux10:
  6839.     @echo 'Making C-Kermit $(CKVER) for Linux 1.0 or earlier...'
  6840.     @echo 'IMPORTANT: Read the comments in the linux section of the'
  6841.     @echo 'makefile if you get compilation or link errors.'
  6842.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  6843.     "CFLAGS = -O -DPOSIX -DCK_CURSES -DCK_POSIX_SIG -DLINUX \
  6844.     -DTCPSOCKET -DLINUXFSSTND -DOLINUXHISPEED -DNOLEARN $(KFLAGS)" \
  6845.     "LNKFLAGS = $(LNKFLAGS)" "LIBS = -lcurses -ltermcap"
  6846.  
  6847. #This version was used for Linux prior to C-Kermit 6.0.192.
  6848. #Now the "Linux File System Standard" is considered standard, ditto TCP/IP.
  6849. linuxold:
  6850.     @echo 'Making C-Kermit $(CKVER) for Linux...'
  6851.     @echo 'For FSSTND-recommended UUCP lockfiles, use:'
  6852.     @echo '  make linux "KFLAGS=-DLINUXFSSTND".'
  6853.     @echo 'Read comments in makefile for additional options.'
  6854.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  6855.     "CFLAGS = -O -DLINUX -DPOSIX -DCK_CURSES -DCK_POSIX_SIG -DNOLEARN \
  6856.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" "LIBS = -lcurses -ltermcap"
  6857.  
  6858. # ::END_OLD_LINUX_TARGETS::
  6859.  
  6860. # LynxOS 2.2 with GCC compiler, TCP/IP and fullscreen display.
  6861. # Probably also works with Lynx 2.1, and maybe even Lynx 2.0.
  6862. # -X means use termios serial drivers rather than BSD4.3-style sgtty drivers.
  6863. # If you have trouble with this, try "make bsd KFLAGS=-DNOFDZERO".
  6864. lynx:
  6865.     @echo 'Making C-Kermit $(CKVER) for LynxOS 2.2 with TCP/IP'
  6866.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  6867.     "CFLAGS= -O -DPOSIX -DDIRENT -DSETREUID -DCK_CURSES -DTCPSOCKET \
  6868.     -DCK_ANSIC -DLYNXOS -DNOLEARN" "LNKFLAGS = -X" "LIBS = -lcurses -lbsd"
  6869.  
  6870. lynx22:
  6871.     $(MAKE) lynx KTARGET=$${KTARGET:-$(@)} "KFLAGS=$(KFLAGS)"
  6872.  
  6873. # LynxOS 2.1 with GCC compiler 1.40 and TCP/IP.
  6874. lynx21:
  6875.     @echo 'Making C-Kermit $(CKVER) for LynxOS 2.1 with TCP/IP'
  6876.     $(MAKE) kermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  6877.     "CFLAGS= -O -DSETREUID -DTCPSOCKET -DCK_ANSIC -DBSD4 -DLYNXOS" \
  6878.     "LIBS = -lbsd"
  6879.  
  6880. #SCO Xenix 2.2.1 for IBM PC, XT, PS2/30, or other 8088 or 8086 machine
  6881. #Should this not work, try some of the tricks from sco286.
  6882. #NOTE: -DRENAME is omitted for early SCO Xenix releases because it didn't
  6883. #exist, or its semantics were different from the later POSIX-compliant
  6884. #version of rename().
  6885. sco86:
  6886.     @echo 'Making C-Kermit $(CKVER) for SCO Xenix/86...'
  6887.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  6888.     "CFLAGS= -DXENIX -DNOFILEH -DNOIKSD -DNOUNICODE -DNOLEARN \
  6889.     $(KFLAGS) -Dunix -F 3000 -i -M0me" \
  6890.     "LNKFLAGS = -F 3000 -i -s -M0me" "LIBS = -lx"
  6891.  
  6892. #SCO Xenix/286 2.2.1, e.g. for IBM PC/AT, PS/2 Model 50, etc.
  6893. #Reportedly, this "make" can fail simply because of the size of this
  6894. #makefile.  If that happens, use "makeL", or edit out some of the
  6895. #other entries.  No debugging or character-set translation.
  6896. sco286:
  6897.     @echo 'Making C-Kermit $(CKVER) for SCO Xenix/286...'
  6898.     @echo 'If make fails, try using makeL.'
  6899.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  6900.     "CFLAGS= -xenix -s -O -LARGE -DXENIX -DNOFILEH -Dunix -DRDCHK -DNAP \
  6901.     -DNOIKSD -DNODEBUG -DNOTLOG -DNOCSETS -DNOLEARN \
  6902.     $(KFLAGS) -F 3000 -i -M2let16" \
  6903.     "LIBS = -lx" "LNKFLAGS = -xenix -s -O -LARGE -F 3000 -i -M2let16"
  6904.  
  6905. #SCO Xenix/286 2.2.1, e.g. for IBM PC/AT, PS/2 Model 50, etc.
  6906. #As above, but with HDBUUCP (This one might need fixing -- see sco286).
  6907. sco286hdb:
  6908.     @echo 'Making C-Kermit $(CKVER) for SCO Xenix/286 with HDB UUCP...'
  6909.     @echo 'If make fails, try using makeL.'
  6910.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  6911.     "CFLAGS= -s -O -LARGE -DXENIX -DNOFILEH -Dunix -DRDCHK -DNAP \
  6912.     -DHDBUUCP -DNOIKSD -DNOUNICODE -DNOLEARN \
  6913.     $(KFLAGS) -F 3000 -i -M2let32" \
  6914.     "LIBS = -lx" "LNKFLAGS = -s -O -LARGE -F 3000 -i -M2let32"
  6915.  
  6916. #SCO Xenix/386 2.2.2 and 2.2.3
  6917. sco386:
  6918.     @echo 'Making C-Kermit $(CKVER) for SCO Xenix/386 2.2.2...'
  6919.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  6920.     "CFLAGS= -DXENIX -DNOFILEH -DNOIKSD -DNOREDIRECT -DNOLEARN \
  6921.     -Dunix -DRDCHK -DNAP -DNOUNICODE $(KFLAGS) -Otcl -M3e" \
  6922.     "LNKFLAGS = -s" "LIBS = -lx"
  6923.  
  6924. #SCO XENIX/386 2.2.3 with Excelan TCP/IP + curses.
  6925. # NOTE: This one might need some work in C-Kermit 6.0.
  6926. # You might need to include /usr/include/sys/types.h
  6927. # containing "typedef char *caddr_t;".  Then at least it compiles.
  6928. sco386netc:
  6929.     @echo 'Making C-Kermit $(CKVER) for SCO Xenix/386 2.2.3 + Excelan TCP'
  6930.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  6931.     "CFLAGS= -I/usr/include/exos -DXENIX -DCK_CURSES -DNOUNICODE \
  6932.     -Dunix -DRDCHK -DNAP -DTCPSOCKET -DEXCELAN -DNOJC -DNOMKDIR -DNOFILEH \
  6933.     -DNOLEARN -DNOREDIRECT -DNOIKSD -DNO_DNS_SRV $(KFLAGS) -Otcl -M3e" \
  6934.     "LNKFLAGS = -s" "LIBS = -lc -lx -lsocket -lcurses -ltermcap"
  6935.  
  6936. #SCO XENIX/386 2.3.3 with gcc 1.37 or later...
  6937. sco386gcc:
  6938.     @echo 'Making C-Kermit $(CKVER) for SCO Xenix/386 2.3.3, gcc...'
  6939.     @echo 'Add -D_NO_PROTOTYPE if you have trouble with Xenix header files'
  6940.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  6941.     "CFLAGS= -O -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP \
  6942.     -DNOJC -DNODEBUG -DNOUNICODE -DNOLEARN $(KFLAGS) \
  6943.     -traditional -fpcc-struct-return -fstrength-reduce \
  6944.     -DM_BITFIELDS -DM_COFF -DM_I386 -DM_I86 -DM_I86SM \
  6945.     -DM_INTERNAT -DM_SDATA -DM_STEXT -DM_SYS3 -DM_SYS5 \
  6946.     -DM_SYSIII -DM_SYSV -DM_WORDSWAP -DM_XENIX -DNOIKSD -DNOREDIRECT \
  6947.     -DPWID_T=int " "LNKFLAGS = -s" "LIBS = -lx"
  6948.  
  6949. #As above, but with curses...
  6950. sco386gccc:
  6951.     @echo 'Making C-Kermit $(CKVER) for SCO Xenix/386 2.3.3, gcc...'
  6952.     @echo 'Add -D_NO_PROTOTYPE if you have trouble with Xenix header files'
  6953.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  6954.     "CFLAGS= -O -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP \
  6955.     -DNOJC -DNODEBUG -DCK_CURSES -DNOUNICODE -DNOLEARN $(KFLAGS) \
  6956.     -traditional -fpcc-struct-return -fstrength-reduce \
  6957.     -DM_BITFIELDS -DM_COFF -DM_I386 -DM_I86 -DM_I86SM -DNOREDIRECT \
  6958.     -DM_INTERNAT -DM_SDATA -DM_STEXT -DM_SYS3 -DM_SYS5 \
  6959.     -DM_SYSIII -DM_SYSV -DM_WORDSWAP -DM_XENIX -DNOIKSD \
  6960.     -DPWID_T=int " "LNKFLAGS = -s" "LIBS = -lx -lcurses -ltermlib"
  6961.  
  6962. #SCO UNIX (and ODT) entries...
  6963. #
  6964. #NOTE: All SCO UNIX entry LIBS should have "-lc_s -lc -lx" IN THAT ORDER (if
  6965. #shared C library is desired), or else "-lc -lx" IN THAT ORDER.  Use shared C
  6966. #libraries to save memory, but then don't expect to run the resulting binary
  6967. #on a different machine.  When using -lc_s, you must also use -lc, because the
  6968. #shared C library does not contain all of libc.a.  And in all cases, -lc must
  6969. #ALWAYS precede -lx.
  6970. #
  6971. #ANOTHER NOTE: -DRENAME is included in all SCO UNIX entries.  Remove it if it
  6972. #causes trouble.  No harm is done by removing it (see ckuins.txt).
  6973. #
  6974. #AND ANOTHER: In theory, it should be possible to run SCO UNIX binaries on
  6975. #SCO Xenix 2.3 and later.  In practice, this might not work because of the
  6976. #libraries, etc.  Also, don't add the -link -z switch (which is supposed to
  6977. #root out references to null pointers) because it makes UNIX binaries core
  6978. #dump when they are run under Xenix.
  6979.  
  6980. #NOTE: -Otcl removed and replaced by -O, since -Otcl produced incorrect code.
  6981. #SCO UNIX/386 3.2.0, 3.2.1, and SCO Xenix 2.3.x
  6982. sco3r2:
  6983.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2.0 or 3.2.1 ...'
  6984.     @echo 'Warning: If make blows up, edit the makefile to join'
  6985.     @echo 'the following three continued lines into one line.'
  6986.     @echo 'Also, remove -DRENAME if _rename unresolved at link time.'
  6987.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  6988.     "CFLAGS= -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP -DNOLEARN \
  6989.     -DRENAME -DNOIKSD -DNOJC $(KFLAGS) -O" \
  6990.     "LNKFLAGS = -s" "LIBS = -lc -lx"
  6991.  
  6992. #SCO UNIX/386 3.2.0 and SCO Xenix 2.3.x with Excelan TCP/IP support.
  6993. #In case of compilation or runtime problems, try adding
  6994. #"-DUID_T=int -DGID_T=int" to the CFLAGS.  If that doesn't work, try
  6995. #"-DUID_T=uid_t -DGID_T=gid_t".
  6996. sco3r2net:
  6997.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 / Excelan...'
  6998.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  6999.     "CFLAGS= -I/usr/include/exos -DXENIX -DSVR3 -DNOFILEH -DNOLEARN \
  7000.     -DHDBUUCP -DRDCHK -DNAP -DRENAME -DTCPSOCKET -DEXCELAN -DNOJC \
  7001.     -DNOIKSD -DNOREDIRECT $(KFLAGS) -O" \
  7002.     "LNKFLAGS = -s" "LIBS = -lc -lx -lsocket"
  7003.  
  7004. #SCO UNIX/386 3.2.0 and SCO Xenix 2.3.x with Excelan TCP/IP support.
  7005. #As above, with curses added.
  7006. sco3r2netc:
  7007.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 / Excelan / curses...'
  7008.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  7009.     "CFLAGS= -I/usr/include/exos -DXENIX -DSVR3 -DNOFILEH -DNOLEARN \
  7010.     -DHDBUUCP -DRDCHK -DNAP -DTCPSOCKET -DEXCELAN -DNOJC $(KFLAGS) \
  7011.     -DRENAME -DCK_CURSES -DNOREDIRECT -DNOIKSD -O" "LNKFLAGS = -s" \
  7012.     "LIBS = -lc -lx -lsocket -lcurses -ltermcap"
  7013.  
  7014. #SCO UNIX 3.2.x or SCO Xenix 2.3.x with Racal InterLan TCP/IP support
  7015. # Extra compile flags for other version of Racal InterLan TCP/IP:
  7016. # Xenix286/NP621-286, use -Ml -DPARAMH -DINTERLAN -Di286 -DSYSV
  7017. # Xenix386/NP621-386, use -DPARAMH -DINTERLAN -Di386 -DSYSV
  7018. # ISC386ix/NP622I, use -DSYSV -Di386
  7019. # SCO Unix3.2/NP622S, use -DSYSV -Di386 -DSCO_UNIX
  7020. # AT&T SVR3.2/NP622A, use -DSYSV -Di386 -DATT
  7021. sco3r2netri:
  7022.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 / Racal InterLan...'
  7023.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  7024.     "CFLAGS= -I/usr/include/interlan -DXENIX -DNOFILEH -DHDBUUCP \
  7025.     -DSVR3 -DRDCHK -DNAP -DTCPSOCKET -DPARAMH -DINTERLAN -Di386 -DSYSV \
  7026.     -DRENAME -DNOREDIRECT -DNOIKSD -DNOJC -DNOLEARN $(KFLAGS) -Otcl -M3e" \
  7027.     "LNKFLAGS = -s" "LIBS = -lc -lx -ltcp"
  7028.  
  7029. # SCO XENIX/386 2.3.3 SysV with SCO TCP/IP
  7030. # System V STREAMS TCP developed by Lachman Associates Inc and
  7031. # Convergent Technologies.
  7032. # -DRENAME removed since some reports indicate it is not supported
  7033. # (whereas others say it is.)
  7034. sco3r2lai:
  7035.     @echo 'Making C-Kermit $(CKVER) for SCO XENIX/386 2.3.3 + TCP/IP...'
  7036.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  7037.     "CFLAGS= -DLAI_TCP -Di386 -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK \
  7038.     -DNAP -DTCPSOCKET -DPWID_T=int -DNOREDIRECT -DNOIKSD -DNOLEARN \
  7039.     $(KFLAGS) -Otcl -i -M3e" \
  7040.     "LNKFLAGS = -i -s" "LIBS = -lc -lx -lsocket"
  7041.  
  7042. sco3r2laic:
  7043.     @echo 'Making C-Kermit $(CKVER) for SCO XENIX/386 2.3.3 + TCP/IP...'
  7044.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  7045.     "CFLAGS= -DLAI_TCP -Di386 -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK \
  7046.     -DNAP -DTCPSOCKET -DCK_ANSIC -DCK_CURSES -DM_TERMINFO -DNOLEARN \
  7047.     -DPWID_T=int -DNOREDIRECT -DNOIKSD $(KFLAGS) -Otcl -i -M3e" \
  7048.     "LNKFLAGS = -i -s" "LIBS = -ltinfo -lc -lx -lsocket"
  7049.  
  7050. #SCO UNIX/386 3.2v2 (POSIX job control), shared libraries.
  7051. sco3r22:
  7052.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v2 ...'
  7053.     make wermit KTARGET=$${KTARGET:-$(@)} \
  7054.     "CFLAGS= -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNOLEARN \
  7055.     -DNAP -DRENAME -DPID_T=pid_t -DPWID_T=int -DDIRENT -DNOIKSD \
  7056.     -DNOREDIRECT $(KFLAGS) -O" \
  7057.     "LNKFLAGS = -s" "LIBS = -lc_s -lc -lx"
  7058.  
  7059. #SCO UNIX/386 3.2v2, POSIX job control, fullscreen file transfer display,
  7060. #dynamic memory allocation, shared C library
  7061. sco3r22c:
  7062.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v2 ...'
  7063.     @echo 'Warning: If make blows up, edit the makefile to join'
  7064.     @echo 'the following four continued lines into one line.'
  7065.     make wermit KTARGET=$${KTARGET:-$(@)} \
  7066.     "CFLAGS= -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP -DNOLEARN \
  7067.     -DCK_CURSES -DDIRENT -DRENAME -DNOREDIRECT -DNOIKSD \
  7068.     -DPID_T=pid_t -DPWID_T=int $(KFLAGS) -O" \
  7069.     "LNKFLAGS = -s" "LIBS = -lcurses -lc_s -lc -lx"
  7070.  
  7071. #SCO UNIX/386 3.2v2 with gcc 1.40 or later (POSIX job control)
  7072. sco3r22gcc:
  7073.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v2, gcc'
  7074.     @echo 'Warning: If make blows up, edit the makefile to join'
  7075.     @echo 'the following seven continued lines into one line.'
  7076.     make wermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" \
  7077.     "CFLAGS= -O -DPOSIX -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP \
  7078.     -DNOLEARN -DRENAME -traditional -fpcc-struct-return -fstrength-reduce \
  7079.     -DM_BITFIELDS -DM_COFF -DM_I386 -DM_I86 -DM_I86SM \
  7080.     -DM_INTERNAT -DM_SDATA -DM_STEXT -DM_SYS3 -DM_SYS5 \
  7081.     -DM_SYSIII -DM_SYSV -DM_UNIX -DM_WORDSWAP -DM_XENIX -Dunix \
  7082.     -DPID_T=pid_t -DPWID_T=int -DNOREDIRECT -DNOIKSD $(KFLAGS) " \
  7083.     "LNKFLAGS = -s" "LIBS = -lc_s -lc -lx"
  7084.  
  7085. #SCO UNIX/386 3.2v2 (ODT 1.1) (POSIX job control) with SCO TCP/IP, shared libs
  7086. #Requires SCO TCP/IP or ODT development system for telnet.h, etc.
  7087. sco3r22net:
  7088.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2.2 + TCP/IP...'
  7089.     @echo 'Warning: If make blows up, edit the makefile to join'
  7090.     @echo 'the following three continued lines into one line.'
  7091.     make xermit KTARGET=$${KTARGET:-$(@)} \
  7092.     "CFLAGS= -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP -DTCPSOCKET \
  7093.     -DRENAME -DPID_T=pid_t -DPWID_T=int -DDIRENT -DNOREDIRECT -DNOIKSD \
  7094.     $(KFLAGS) -O" "LNKFLAGS = -s" "LIBS = -lsocket -lc_s -lc -lx"
  7095.  
  7096. #As above, but with curses for fullscreen file transfer display.
  7097. #Requires SCO TCP/IP or ODT development system for telnet.h, etc.
  7098. sco3r22netc:
  7099.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v2 + TCP/IP...'
  7100.     @echo 'Warning: If make blows up, edit the makefile to join'
  7101.     @echo 'the following three continued lines into one line.'
  7102.     make xermit KTARGET=$${KTARGET:-$(@)} "CFLAGS= \
  7103.     -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP -DTCPSOCKET -DRENAME \
  7104.     -DCK_CURSES -DDIRENT -DNOIKSD -DNOREDIRECT \
  7105.     -DPID_T=pid_t -DPWID_T=int -O $(KFLAGS)" \
  7106.     "LNKFLAGS = -s" "LIBS = -lcurses -lsocket -lc_s -lc -lx"
  7107.  
  7108. #SCO XENIX 2.3.4, no curses, no TCP/IP, no IKSD.
  7109. #This one built and tested in C-Kermit 7.0.
  7110. #lcfp is C library floating-point support.
  7111. #Use -M3 to generate 32-bit i386 code instead of 16-bit segmented i286 code.
  7112. #Use -Me to enable MS nonstandard keywords in system headers.
  7113. #Use -W2 or W3 to increase the warning level.
  7114. #OK: 2011/06/15
  7115. sco234:
  7116.     @echo 'Making C-Kermit $(CKVER) for SCO XENIX 2.3.4...'
  7117.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  7118.     "CFLAGS= -DSCO32 -DXENIX -DNOFILEH -DHDBUUCP -DRDCHK -DNOLEARN \
  7119.     -DNAP -DNOJC -DNOCOTFMC -DNOIKSD -DNOREDIRECT -DNOTNCODE -DNOGFTIMER \
  7120.     -DNOTIMEVAL -DNOTIMEZONE -DNOSYMLINK -DSCO234 -DDCLGETCWD $(KFLAGS) \
  7121.     -Otcl" "LNKFLAGS = -s" "LIBS = -lcfp -lc -lx"
  7122.  
  7123. #SCO XENIX 2.3.4, no TCP/IP, no IKSD, but with curses.
  7124. # Built and tested in C-Kermit 7.0.
  7125. # Note: XENIX 2.3.4 does not have newterm() so no point in adding -DCK_NEWTERM.
  7126. sco234c:
  7127.     @echo 'Making C-Kermit $(CKVER) for SCO XENIX 2.3.4 + curses...'
  7128.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  7129.     "CFLAGS= -DSCO32 -DXENIX -DNOFILEH -DHDBUUCP -DRDCHK -DNOLEARN \
  7130.     -DNAP -DNOJC -DNOCOTFMC -DNOIKSD -DNOREDIRECT -DNOTNCODE -DNOGFTIMER \
  7131.     -DNOTIMEVAL -DNOTIMEZONE -DNOSYMLINK -DCK_CURSES -DSCO234 \
  7132.     -DDCLGETCWD $(KFLAGS) -Otcl" \
  7133.     "LNKFLAGS = -s" "LIBS = -lcfp -lc -ltinfo -lx"
  7134.  
  7135. #SCO XENIX 2.3.4 with SCO TCP/IP and curses, no IKSD.
  7136. # Built and tested in C-Kermit 7.0.  TCP/IP works and curses works.
  7137. # Previous versions of this target included -lmalloc, but this caused "error:
  7138. # " _calloc : symbol defined more than once" at link time so I removed it.
  7139. # Results are likely to vary depending on exactly which version of the SDK
  7140. # and TCP/IP SDK you have.
  7141. sco234netc:
  7142.     @echo 'Making C-Kermit $(CKVER) for SCO XENIX 2.3.4 + TCP + curses...'
  7143.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  7144.     "CFLAGS= -DSCO32 -DXENIX -DNOFILEH -DHDBUUCP -DRDCHK -DNOLEARN \
  7145.     -DNAP -DNOJC -DNOCOTFMC -DNOIKSD -DNOREDIRECT -DNOTNCODE -DNOGFTIMER \
  7146.     -DNOTIMEVAL -DNOTIMEZONE -DNOSYMLINK -DCK_CURSES -DSCO234 \
  7147.     -DDCLGETCWD -DTCPSOCKET -DNO_DNS_SRV $(KFLAGS) -Otcl" \
  7148.     "LNKFLAGS = -s" "LIBS = -ltinfo -lsocket -lcfp -lc -lx"
  7149.  
  7150. # SCO 3.2v4.x targets...
  7151.  
  7152. #  NOTE: Add -DDCLPOPEN and/or -DDCLFDOPEN to anySCO 3.2v4.x non-gcc entries
  7153. #  that complain about fdopen() or popen() at compile time.  They compile OK
  7154. #  without these flags as of July 1999.  However, the gcc entries seem to
  7155. #  need them, at least for gcc 2.7.2.2.
  7156.  
  7157. #  NOTE 2: To enable IKSD support, add:
  7158. #  -DCK_LOGIN -DNOGETUSERSHELL -DNOINITGROUPS
  7159. #  to CFLAGS (not tested).
  7160.  
  7161. #SCO UNIX/386 3.2v4 (POSIX job control), curses, ANSI C compilation,
  7162. #<dirent.h> (EAFS) file system.  Remove -lmalloc if it causes trouble.  It was
  7163. #put there to avoid core dumps caused by regular libc.a malloc.  Add -J to make
  7164. #all chars unsigned.  This version uses select() for CONNECT and also has
  7165. #high-precision timers and so might not work on non-TCP systems, in which case
  7166. #sco32v4ns should be used instead.
  7167. # If you get _ftime redefinition_ complaint, try adding -DODT30 to CFLAGS.
  7168. sco32v4:
  7169.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v4...'
  7170.     make xermit KTARGET=$${KTARGET:-$(@)} \
  7171.     "CFLAGS= -DCK_SCO32V4 -DNOFILEH -DHDBUUCP -DCK_CURSES -DM_TERMINFO \
  7172.     -DNOANSI -DSELECT -DNOIKSD -DDCLGETCWD -NOLSTAT \
  7173.     -DNOLINKBITS -DDCLGETCWD $(KFLAGS) -O" \
  7174.     "LNKFLAGS = -s" "LIBS = -lcurses -lmalloc -lsocket -lc_s -lc -lx"
  7175.  
  7176. # As above, but with no dependence on sockets library or select().
  7177. sco32v4ns:
  7178.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v4...'
  7179.     @echo 'No select() and no sockets library.'
  7180.     make wermit KTARGET=$${KTARGET:-$(@)} \
  7181.     "CFLAGS= -DCK_SCO32V4 -DNOFILEH -DHDBUUCP -DCK_CURSES -DM_TERMINFO \
  7182.     -DNOANSI -DNOIKSD -DNOGFTIMER -DCK_POLL -DNAP -DDCLGETCWD -DNOLSTAT \
  7183.     -DNOLINKBITS -DDCLGETCWD -DNOLEARN -O $(KFLAGS)" \
  7184.     "LNKFLAGS = -s" "LIBS = -lcurses -lmalloc -lc_s -lc -lx"
  7185.  
  7186. #SCO UNIX/386 3.2v4 (POSIX job control), TCP/IP, curses, ANSI C compilation,
  7187. #<dirent.h> (EAFS) file system.  With DIRENT, -lc must come before -lx.
  7188. #Reportedly it's OK to add -DCK_REDIR and -DCK_WREFRESH, and to remove -lc_s.
  7189. #Requires SCO TCP/IP development system or ODT for telnet.h, etc.
  7190. #See sco32v4 above for additional comments.
  7191. #NOTE: No more room for -Dxxx -- 25 seems to be the limit.  Move some to
  7192. #ckcdeb.h or somewhere...
  7193. sco32v4net:
  7194.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v4...'
  7195.     @echo 'If you get _ftime redefinition_ complaint,'
  7196.     @echo 'use make sco-odt30.'
  7197.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  7198.     "CFLAGS= -DNOFILEH -DHDBUUCP -DTCPSOCKET -DCK_ANSIC -DCK_CURSES \
  7199.     -DNAP -DCK_WREFRESH -DNOLINKBITS -D_IBCS2 -DSELECT -DNOLSTAT \
  7200.     -DDCLGETCWD -DCK_SCO32V4 -DNOIKSD -O \
  7201.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS) -s" \
  7202.     "LIBS = $(LIBS) -lcurses -lsocket -lmalloc -lsocket -lc_s -lc -lx"
  7203.  
  7204. #SCO UNIX/386 3.2v4 with gcc 1.40 or later, POSIX job control.
  7205. #Also see comments in sco32r4 entry.
  7206. sco32v4gcc:
  7207.     make xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" \
  7208.     "CFLAGS= -O -DNOFILEH -DHDBUUCP -DNOANSI -DCK_CURSES -DM_TERMINFO \
  7209.     -traditional -fpcc-struct-return -fstrength-reduce -funsigned-char \
  7210.     -D_KR -D_NO_PROTOTYPE -D_SVID -DNOIKSD -DCK_SCO32V4 -DNOLINKBITS \
  7211.     -DM_BITFIELDS -DM_COFF -DM_I386 -DM_I86 -DM_I86SM -DSELECT -DNOLSTAT \
  7212.     -DM_INTERNAT -DM_SDATA -DM_STEXT -DM_SYS3 -DM_SYS5 -DDCLGETCWD \
  7213.     -DM_SYSIII -DM_SYSV -DM_UNIX -DM_WORDSWAP -DM_XENIX -Dunix \
  7214.     -DDCLPOPEN -DDCLFDOPEN $(KFLAGS) " \
  7215.     "LNKFLAGS = -s" "LIBS = -lcurses -lsocket -lc_s -lc -lx"
  7216.  
  7217. #SCO UNIX/386 3.2v4 (POSIX job control), TCP/IP, curses, ANSI C compilation,
  7218. #Requires SCO TCP/IP or ODT development system for telnet.h, etc.
  7219. #<dirent.h> (EAFS) file system.  With DIRENT, -lc must come before -lx.
  7220. #gcc 1.40 or later.  Also see comments in sco32r4 entry.
  7221. sco32v4netgcc:
  7222.     make xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2=gcc" \
  7223.     "CFLAGS= -O2 -DNOFILEH -DHDBUUCP -DSELECT -DNOLSTAT \
  7224.     -DNOANSI -DTCPSOCKET -DCK_CURSES -DM_TERMINFO \
  7225.     -D_KR -D_NO_PROTOTYPE -D_SVID -DNOIKSD -DCK_SCO32V4 -DNOLINKBITS \
  7226.     -DM_BITFIELDS -DM_COFF -DM_I386 -DM_I86 -DM_I86SM -DDCLGETCWD \
  7227.     -DM_INTERNAT -DM_SDATA -DM_STEXT -DM_SYS3 -DM_SYS5 \
  7228.     -DM_SYSIII -DM_SYSV -DM_UNIX -DM_WORDSWAP -DM_XENIX -Dunix \
  7229.     -DDCLPOPEN -DDCLFDOPEN $(KFLAGS)" \
  7230.     "LNKFLAGS = -s" "LIBS = -lcurses -lsocket -lc_s -lc -lx"
  7231.  
  7232. #As above but with bgcc BOUNDS CHECKING (for developers only).  -lcheck has
  7233. #bounds-checking replacements for malloc, memcpy, bcopy, etc, so must come
  7234. #before -lsocket and -lc.
  7235. sco32v4netbgcc:
  7236.     make xermit KTARGET=$${KTARGET:-$(@)} \
  7237.     "CC = bgcc -pipe -m386" "CC2=bgcc -pipe -m386" \
  7238.     "CFLAGS= -O1 -g -DNOFILEH -DHDBUUCP -DSELECT \
  7239.     -DNOANSI -DTCPSOCKET -DCK_CURSES -DM_TERMINFO \
  7240.     -D_KR -D_NO_PROTOTYPE -D_SVID -DNOIKSD -DCK_SCO32V4 -DNOLSTAT \
  7241.     -DM_BITFIELDS -DM_COFF -DM_I386 -DM_I86 -DM_I86SM -DNOLINKBITS \
  7242.     -DM_INTERNAT -DM_SDATA -DM_STEXT -DM_SYS3 -DM_SYS5 -DDCLGETCWD \
  7243.     -DM_SYSIII -DM_SYSV -DM_UNIX -DM_WORDSWAP -DM_XENIX -Dunix \
  7244.     -DDCLPOPEN -DDCLFDOPEN $(KFLAGS) " \
  7245.     "LNKFLAGS = -g" "LIBS = -lcurses -lcheck -lsocket -lx"
  7246.  
  7247. sco32v4netnd:
  7248.     @echo sco32v4net with no debug
  7249.     $(MAKE) "MAKE=$(MAKE)" sco32v4net KTARGET=$${KTARGET:-$(@)} \
  7250.     "KFLAGS=$(KFLAGS) -DNODEBUG -DNOTLOG" "LIBS=$(LIBS)"
  7251.  
  7252. sco3r2netnd:
  7253.     @echo sco32v4netnd built for SCO XENIX 2.3 under SCO UNIX...
  7254.     @echo   requires copying /lib/386/Slibc.a to /lib/386/Slibc_s.a and
  7255.     @echo   getting /lib/386/Slibsocket.a from a XENIX devkit.
  7256.     @echo   WARNING: poll/CK_POLL supported only on XENIX 2.3.4
  7257.     echo    For earlier XENIX systems, replace CK_POLL with RDCHK.
  7258.     $(MAKE) "MAKE=$(MAKE)" sco32v4netnd KTARGET=$${KTARGET:-$(@)} \
  7259.     "KFLAGS=$(KFLAGS) -x2.3 -DNORENAME -DNOSYMLINK" \
  7260.     "LNKFLAGS = $(LNKFLAGS) -x2.3" \
  7261.     "LIBS=-ldir -lcfp $(LIBS)"
  7262.  
  7263. #SCO UNIX/386 3.2v4 (POSIX job control), TCP/IP, curses, ANSI C compilation,
  7264. #<dirent.h> (EAFS) file system.  With DIRENT, -lc must come before -lx.
  7265. #Reportedly it's OK to add -DCK_REDIR and -DCK_WREFRESH, and to remove -lc_s.
  7266. #Requires SCO TCP/IP development system or ODT for telnet.h, etc.
  7267. #See sco32v4 above for additional comments.
  7268. # Note: "xermit" means use the select() version of the CONNECT module.
  7269. sco32v4netx:
  7270.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v4...'
  7271.     @echo 'If you get _ftime redefinition_ complaint,'
  7272.     @echo 'use make sco-odt30.'
  7273.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  7274.     "CFLAGS= -DNOFILEH -DHDBUUCP -DTCPSOCKET -DCK_ANSIC -DCK_CURSES -DNAP \
  7275.     -DCK_WREFRESH -DNOLINKBITS -D_IBCS2 -DSELECT -DDCLGETCWD \
  7276.     -DCK_SCO32V4 -DNOIKSD -DNOLSTAT -O $(KFLAGS)" \
  7277.     "LNKFLAGS = $(LNKFLAGS) -s" \
  7278.     "LIBS = $(LIBS) -lcurses -lsocket -lmalloc -lsocket -lc_s -lc -lx"
  7279.  
  7280. sco32v4netndx:
  7281.     @echo sco32v4netx with no debug
  7282.     $(MAKE) "MAKE=$(MAKE)" sco32v4netx KTARGET=$${KTARGET:-$(@)} \
  7283.     "KFLAGS=$(KFLAGS) -DNODEBUG -DNOTLOG" "LIBS=$(LIBS)"
  7284.  
  7285. sco3r2netndx:
  7286.     @echo sco32v4netndx built for SCO XENIX 2.3 under SCO UNIX...
  7287.     @echo   requires copying /lib/386/Slibc.a to /lib/386/Slibc_s.a and
  7288.     @echo   getting /lib/386/Slibsocket.a from a XENIX devkit.
  7289.     @echo   WARNING: poll/CK_POLL supported only on XENIX 2.3.4
  7290.     echo    For earlier XENIX systems, replace CK_POLL with RDCHK.
  7291.     $(MAKE) "MAKE=$(MAKE)" sco32v4netndx KTARGET=$${KTARGET:-$(@)} \
  7292.     "KFLAGS=$(KFLAGS) -x2.3 -DNORENAME -DNOSYMLINK" \
  7293.     "LNKFLAGS = $(LNKFLAGS) -x2.3" \
  7294.     "LIBS=-ldir -lcfp $(LIBS)"
  7295.  
  7296. sco-odt30:
  7297.     @echo SCO ODT 3.0
  7298.     $(MAKE) "MAKE=$(MAKE)" sco32v4net KTARGET=$${KTARGET:-$(@)} \
  7299.     "KFLAGS=$(KFLAGS) -DODT30"
  7300.  
  7301. #SCO OpenServer 5.0 (SCO UNIX 3.2v5.0) with SCO development tools, no TCP/IP.
  7302. #SCO OSR5 is much more like standard System V than previous SCO releases.
  7303. #The SCO development tools include TCP/IP, so this target is only for creating
  7304. #artificially limited versions of kermit required by site policy rather than
  7305. #the operating system.  NOSYSLOG is included because syslog() requires the
  7306. #sockets library.
  7307. sco32v500:
  7308.     @echo Making C-Kermit $(CKVER) for SCO OpenServer Release 5...
  7309.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  7310.     "CFLAGS= -O -DDIRENT -DHDBUUCP -DSVR4 -DCK_SCOV5 -DCK_RTSCTS \
  7311.     -DCK_CURSES -DCK_WREFRESH -DCK_NEWTERM -DSELECT -DSELECT_H \
  7312.     -DNOGETUSERSHELL -DNOLSTAT -DNOLINKBITS -DNOSYSLOG \
  7313.     $(KFLAGS)" \
  7314.     "LIBS=-lcurses $(LIBS)" "LNKFLAGS=$(LNKFLAGS)"
  7315.  
  7316. sco32v5:
  7317.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=$(KFLAGS)" sco32v500
  7318.  
  7319.  
  7320. #SCO OpenServer 5.0 with networking, SCO development tools.
  7321. #Networking libraries are now provided with the OS.
  7322. sco32v500net:
  7323.     @echo Making C-Kermit $(CKVER) for SCO OpenServer Release 5...
  7324.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  7325.     "CFLAGS= -O -DDIRENT -DHDBUUCP -DSVR4 -DCK_SCOV5 -DCK_RTSCTS \
  7326.     -DCK_CURSES -DCK_WREFRESH -DCK_NEWTERM -DSELECT -DSELECT_H \
  7327.     -DNOGETUSERSHELL -DNOLSTAT -DNOLINKBITS -DTCPSOCKET \
  7328.     -DNO_DNS_SRV $(KFLAGS)" \
  7329.     "LIBS=-lcurses -lsocket $(LIBS)" "LNKFLAGS=$(LNKFLAGS)"
  7330.  
  7331. sco32v5net:
  7332.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=$(KFLAGS)" sco32v500net
  7333.  
  7334. #SCO OpenServer 5.0 with networking and OpenSSL, SCO development tools.
  7335. #Networking libraries are now provided with the OS.
  7336. sco32v500net+ssl:
  7337.     @echo Making C-Kermit $(CKVER) for SCO OSR5 with OpenSSL...
  7338.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  7339.     "CFLAGS= -O -DDIRENT -DHDBUUCP -DSVR4 -DCK_SCOV5 -DCK_RTSCTS \
  7340.     -DCK_CURSES -DCK_WREFRESH -DCK_NEWTERM -DSELECT -DSELECT_H \
  7341.     -DNOGETUSERSHELL -DNOLSTAT -DNOLINKBITS -DTCPSOCKET \
  7342.     -DNO_DNS_SRV -DCK_AUTHENTICATION -DCK_SSL -DCK_TRIGGER \
  7343.     $(SSLINC) $(SSLLIB) $(KFLAGS)" \
  7344.     "LIBS=$(SSLLIB) -lcurses -lsocket -lssl -lcrypto $(LIBS)" \
  7345.     "LNKFLAGS=$(LNKFLAGS)"
  7346.  
  7347. #SCO OpenServer 5.0 with gcc, no networking.
  7348. #Note: NOSYSLOG required for non-net entries because it requires <socket.h>
  7349. sco32v500gcc:
  7350.     @echo Using gcc...
  7351.     $(MAKE) "MAKE=$(MAKE)" sco32v500CC=gcc CC2=gcc \
  7352.     KTARGET=$${KTARGET:-$(@)} "KFLAGS= $(KFLAGS)"
  7353.  
  7354. #SCO OpenServer 5.0 with networking, gcc.
  7355. sco32v500netgcc:
  7356.     @echo TCP/IP networking added - using gcc...
  7357.     $(MAKE) "MAKE=$(MAKE)" sco32v500net CC=gcc CC2=gcc \
  7358.     KTARGET=$${KTARGET:-$(@)} "KFLAGS=$(KFLAGS)"
  7359.  
  7360. #SCO OpenServer 5.0 with networking, gcc, elf.
  7361. sco32v500netgccelf:
  7362.     @echo TCP/IP networking added - using gcc, dynamic elf library
  7363.     $(MAKE) "MAKE=$(MAKE)" sco32v500net "CC=gcc" "CC2=gcc" \
  7364.     KTARGET=$${KTARGET:-$(@)} "KFLAGS=-O3 -belf" "LNKFLAGS=-belf"
  7365.  
  7366. sco32v502:
  7367.     $(MAKE) "MAKE=$(MAKE)" sco32v500 KTARGET=$${KTARGET:-$(@)} \
  7368.     "KFLAGS=-DSCO_OSR502 $(KFLAGS)"
  7369.  
  7370. #SCO OpenServer 5.0.2 with networking, SCO development tools.
  7371. sco32v502net:
  7372.     @echo TCP/IP networking added...
  7373.     $(MAKE) "MAKE=$(MAKE)" sco32v500net KTARGET=$${KTARGET:-$(@)} \
  7374.     "KFLAGS=-b elf -DSCO_OSR502 $(KFLAGS)"
  7375.  
  7376. #SCO OpenServer 5.0.4 (SCO UNIX 3.2v5.0.4) with SCO development tools.
  7377. #Like 5.0, but adds high serial speeds.  First POSIX-based SCO version.
  7378. #Note: the -O flag is deliberately omitted for /bin/cc (= /usr/ccs/bin/cc).
  7379. sco32v504:
  7380.     @echo Making C-Kermit $(CKVER) for SCO OpenServer Release 5.0.4...
  7381.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  7382.     "CFLAGS= -DDIRENT -DHDBUUCP -DSVR4 -DCK_SCOV5 -DCK_RTSCTS \
  7383.     -DSCO_OSR504 -b elf -DPOSIX \
  7384.     -DCK_CURSES -DCK_WREFRESH -DCK_NEWTERM -DSELECT -DSELECT_H \
  7385.     -DNOGETUSERSHELL -DNOLSTAT -DNOLINKBITS -DNOSYSLOG $(KFLAGS)" \
  7386.     "LIBS=-lcurses $(LIBS)" "LNKFLAGS=$(LNKFLAGS)"
  7387.  
  7388. #SCO OpenServer 5.0.4 with gcc, no networking.
  7389. sco32v504gcc:
  7390.     @echo Using gcc...
  7391.     $(MAKE) "MAKE=$(MAKE)" sco32v504 "CC=gcc" "CC2=gcc" \
  7392.     KTARGET=$${KTARGET:-$(@)} "KFLAGS= $(KFLAGS)"
  7393.  
  7394. #SCO OpenServer 5.0.4 with networking.
  7395. #SCO development tools (/bin/cc = /usr/ccs/bin/cc).
  7396. #Optimization deliberately suppressed.
  7397. sco32v504net:
  7398.     @echo Making C-Kermit $(CKVER) for SCO OpenServer Release 5.0.4...
  7399.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  7400.     "CFLAGS= -DDIRENT -DHDBUUCP -DSVR4 -DCK_SCOV5 -DCK_RTSCTS \
  7401.     -DCK_CURSES -DCK_WREFRESH -DCK_NEWTERM -DSELECT -DSELECT_H \
  7402.     -DNOGETUSERSHELL -DNOLSTAT -DNOLINKBITS -DTCPSOCKET \
  7403.     -b elf -DSCO_OSR504 -DPOSIX -DNO_DNS_SRV $(KFLAGS)" \
  7404.     "LIBS=-lcurses -lsocket $(LIBS)" "LNKFLAGS=$(LNKFLAGS)"
  7405.  
  7406. #SCO OpenServer 5.0.4 with networking, gcc.
  7407. sco32v504netgcc:
  7408.     @echo TCP/IP networking added - using gcc...
  7409.     @echo If gcc crashes on ckwart.c then build it by hand:
  7410.     @echo " gcc -o wart -DCK_SCOV5 ckwart.c"
  7411.     $(MAKE) "MAKE=$(MAKE)" sco32v500net "CC=gcc" "CC2=gcc" \
  7412.     KTARGET=$${KTARGET:-$(@)} "KFLAGS=-DSCO_OSR504 -DPOSIX $(KFLAGS)"
  7413.  
  7414. #SCO OpenServer 5.0.4 with networking, gcc, elf.
  7415. sco32v504netgccelf:
  7416.     @echo TCP/IP networking added - using gcc, dynamic elf library
  7417.     $(MAKE) "MAKE=$(MAKE)" sco32v500net "CC=gcc" "CC2=gcc"
  7418.     KTARGET=$${KTARGET:-$(@)} \
  7419.     "KFLAGS=-DSCO_OSR504 -DPOSIX -O3 -belf $(KFLAGS)" \
  7420.     LNKFLAGS="-belf"
  7421.  
  7422. #SCO OpenServer 5.0.5 (SCO UNIX 3.2v5.0.5) with SCO /bin/cc.
  7423. #Like 5.0, but adds high serial speeds.  First POSIX-based SCO version.
  7424. #You might have to add "LIBS=-ltinfo" (some do, some don't).
  7425. sco32v505:
  7426.     $(MAKE) "MAKE=$(MAKE)" sco32v500 KTARGET=$${KTARGET:-$(@)} \
  7427.     "KFLAGS=-DSCO_OSR505 -DNOSHADOW -b elf -DPOSIX $(KFLAGS)"
  7428.  
  7429. #SCO OpenServer 5.0.5 (SCO UNIX 3.2v5.0.5) with SCO UDK.
  7430. #This one can't see the high serial speeds and anything to do with modem
  7431. #signals doesn't work because UKD cc has its own alternative universe of
  7432. #header files.
  7433. sco32v505udk:
  7434.     $(MAKE) "MAKE=$(MAKE)" sco32v500 KTARGET=$${KTARGET:-$(@)} \
  7435.     "KFLAGS=-DSCO_OSR505 -DDCLTIMEVAL -DNOSHADOW -b elf -DPOSIX $(KFLAGS)"
  7436.  
  7437. #SCO OpenServer 5.0.5 with networking, SCO /bin/cc.
  7438. #See comments with sco32v505 targets.
  7439. sco32v505net:
  7440.     @echo TCP/IP networking added...
  7441.     $(MAKE) "MAKE=$(MAKE)" sco32v500net KTARGET=$${KTARGET:-$(@)} \
  7442.     "KFLAGS=-DSCO_OSR505 -DNOSHADOW -b elf -DPOSIX $(KFLAGS)"
  7443.  
  7444. #SCO OpenServer 5.0.5 with networking and OpenSSL, SCO /bin/cc.
  7445. #See comments with sco32v505 targets.
  7446. sco32v505net+ssl:
  7447.     @echo TCP/IP networking and OpenSSL added...
  7448.     $(MAKE) "MAKE=$(MAKE)" sco32v500net+ssl KTARGET=$${KTARGET:-$(@)} \
  7449.     "KFLAGS=-DSCO_OSR505 -DNOSHADOW -b elf -DPOSIX $(KFLAGS) " \
  7450.     "LIBS=$(SSLLIB) -lcurses -lsocket -lssl -lcrypto $(LIBS)" \
  7451.     "LNKFLAGS=$(LNKFLAGS)"
  7452.  
  7453. #SCO OpenServer 5.0.5 with networking, SCO UDK.
  7454. #See comments with above sco32v505 targets.
  7455. sco32v505udknet:
  7456.     @echo TCP/IP networking added...
  7457.     $(MAKE) "MAKE=$(MAKE)" sco32v500net KTARGET=$${KTARGET:-$(@)} \
  7458.     "KFLAGS=-DSCO_OSR505 -DDCLTIMEVAL -DNOSHADOW -b elf -DPOSIX $(KFLAGS)"
  7459.  
  7460. #SCO OpenServer 5.0.5 with gcc, no networking.
  7461. sco32v505gcc:
  7462.     @echo Using gcc...
  7463.     $(MAKE) "MAKE=$(MAKE)" sco32v500 "CC=gcc" "CC2=gcc" \
  7464.     KTARGET=$${KTARGET:-$(@)} \
  7465.     "KFLAGS=-DSCO_OSR505 -DPOSIX -funsigned-char $(KFLAGS)"
  7466.  
  7467. #SCO OpenServer 5.0.5 with gcc, no networking, no shadow passwords.
  7468. sco32v505xgcc:
  7469.     @echo Using gcc...
  7470.     $(MAKE) "MAKE=$(MAKE)" sco32v500 "CC=gcc" "CC2=gcc" \
  7471.     KTARGET=$${KTARGET:-$(@)} \
  7472.     "KFLAGS=-DSCO_OSR505 -DNOSHADOW -DPOSIX -funsigned-char $(KFLAGS)"
  7473.  
  7474. #SCO OpenServer 5.0.5 with networking, gcc.
  7475. sco32v505netgcc:
  7476.     @echo TCP/IP networking added - using gcc...
  7477.     @echo If gcc crashes on ckwart.c then build it by hand:
  7478.     @echo " gcc -o wart -DCK_SCOV5 ckwart.c"
  7479.     $(MAKE) "MAKE=$(MAKE)" sco32v500net "CC=gcc" "CC2=gcc" \
  7480.     KTARGET=$${KTARGET:-$(@)} \
  7481.     "KFLAGS=-DSCO_OSR505 -DNOSHADOW -DPOSIX -funsigned-char $(KFLAGS)"
  7482.  
  7483. #egcs is just like gcc but generates ELF by default.
  7484. #Or you can include -melf (not -belf) to force it.
  7485. sco32v505netegcs:
  7486.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=$(KFLAGS)" sco32v505netgcc \
  7487.     KTARGET=$${KTARGET:-$(@)}
  7488.  
  7489. #SCO OpenServer 5.0.5 with networking, gcc, elf.
  7490. sco32v505netgccelf:
  7491.     @echo TCP/IP networking added - using gcc, dynamic elf library
  7492.     $(MAKE) "MAKE=$(MAKE)" sco32v500net "CC=gcc" "CC2=gcc" \
  7493.     "KFLAGS=-DSCO_OSR505 -DPOSIX -funsigned-char -O3 -belf $(KFLAGS)" \
  7494.     KTARGET=$${KTARGET:-$(@)} LNKFLAGS="-belf"
  7495.  
  7496. #SCO OpenServer 5.0.6 with SCO /bin/cc.
  7497. # Add -DDCLTIMEVAL when building with UDK.
  7498. #Like 5.0.5.   IMPORTANT: Use sco32v506a target for 5.0.6a.
  7499. sco32v506:
  7500.     $(MAKE) "MAKE=$(MAKE)" sco32v500 KTARGET=$${KTARGET:-$(@)} \
  7501.     "KFLAGS=-DSCO_OSR505 -DSCO_OSR506 -b elf -DPOSIX $(KFLAGS)"
  7502.  
  7503. #SCO OpenServer 5.0.6 with networking, SCO /bin/cc.
  7504. # Add -DDCLTIMEVAL when building with UDK.
  7505. # IMPORTANT: Use sco32v506a target for 5.0.6a.
  7506. sco32v506net:
  7507.     @echo TCP/IP networking added...
  7508.     $(MAKE) "MAKE=$(MAKE)" sco32v500net KTARGET=$${KTARGET:-$(@)} \
  7509.     "KFLAGS=-DSCO_OSR505 -DSCO_OSR506 -b elf -DPOSIX $(KFLAGS)"
  7510.  
  7511. #SCO OpenServer 5.0.6a, no networking, SCO development tools.
  7512. #This one has patched sio drivers that, for the first time,
  7513. #actually handle modem signals correctly.
  7514. # Add -DDCLTIMEVAL when building with UDK.
  7515. sco32v506a:
  7516.     $(MAKE) "MAKE=$(MAKE)" sco32v500 KTARGET=$${KTARGET:-$(@)} \
  7517.     "KFLAGS=-DSCO_OSR505 -DSCO_OSR506 -DSCO_OSR506A -DNEEDMDMDEFS \
  7518.     -b elf -DPOSIX $(KFLAGS)"
  7519.  
  7520. #SCO OpenServer 5.0.6a with networking, SCO development tools.
  7521. # Add -DDCLTIMEVAL when building with UDK.
  7522. sco32v506anet:
  7523.     @echo TCP/IP networking added...
  7524.     $(MAKE) "MAKE=$(MAKE)" sco32v500net KTARGET=$${KTARGET:-$(@)} \
  7525.     "KFLAGS=-DSCO_OSR505 -DSCO_OSR506 -DSCO_OSR506A -DNEEDMDMDEFS \
  7526.     -b elf -DPOSIX $(KFLAGS)"
  7527.  
  7528. #SCO OpenServer 5.0.7, no networking, SCO development tools.
  7529. #Adds flags to make PTY and SSH commands work.  These have been tested
  7530. #only in 5.0.7 but probably they can also be added to earlier OSR5 targets.
  7531. sco32v507:
  7532.     $(MAKE) "MAKE=$(MAKE)" sco32v500 KTARGET=$${KTARGET:-$(@)} \
  7533.     "KFLAGS=-DSCO_OSR505 -DSCO_OSR506 -DSCO_OSR507 -DNEEDMDMDEFS \
  7534.     -DHAVE_PTSNAME -DHAVE_PTMX -DHAVE_GRANTPT \
  7535.     -b elf -DPOSIX $(KFLAGS)"
  7536.  
  7537. #SCO OpenServer 5.0.7 as above but with networking.
  7538. sco32v507net:
  7539.     @echo TCP/IP networking added...
  7540.     $(MAKE) "MAKE=$(MAKE)" sco32v500net KTARGET=$${KTARGET:-$(@)} \
  7541.     "KFLAGS=-DSCO_OSR505 -DSCO_OSR506 -DSCO_OSR507 -DNEEDMDMDEFS \
  7542.     -DHAVE_PTSNAME -DHAVE_PTMX -DHAVE_GRANTPT \
  7543.     -b elf -DPOSIX $(KFLAGS)"
  7544.  
  7545. #SCO OpenServer 6 (new target 30 Jan 2006)
  7546. sco_osr600 sco600:
  7547.     @echo Making C-Kermit $(CKVER) for SCO OpenServer 6.0.0...
  7548.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  7549.     "CFLAGS= -O -DDIRENT -DHDBUUCP -DSVR4 -DCK_SCOV5 -DCK_RTSCTS \
  7550.     -DCK_CURSES -DCK_WREFRESH -DCK_NEWTERM -DSELECT -DSELECT_H \
  7551.     -DNOGETUSERSHELL -DNOLSTAT -DNOLINKBITS -DTCPSOCKET \
  7552.     -DNO_DNS_SRV -DSCO_OSR505 -DSCO_OSR506 -DSCO_OSR507 -DNEEDMDMDEFS \
  7553.     -DHAVE_PTSNAME -DHAVE_PTMX -DHAVE_GRANTPT -DDCLTIMEVAL \
  7554.     -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 \
  7555.     -DSOCKOPT_T=socklen_t -DGSOCKNAME_T=size_t -DGPEERNAME_T=size_t \
  7556.     -DHERALD=\"\\\" SCO OpenServer `uname -v`\\\"\" \
  7557.     -b elf -DPOSIX $(KFLAGS)" \
  7558.     "LIBS=-lcurses -lsocket $(LIBS)" "LNKFLAGS=$(LNKFLAGS)"
  7559.  
  7560. #Tandy 16/6000 with Xenix 3.0 (16 bits)
  7561. #C-Kermit 7.0 (and later) do not build here; "too many defines".
  7562. #Add more -DNOxxx options to remove features if program won't load.
  7563. #Successful operation is a function of program size, physical memory,
  7564. #available swap space, etc.  The following stripped-down configuration
  7565. #seems to work on most Tandy 6000s.  NOTE: "-+" means allow long variable
  7566. #names, needed for C-Kermit 6.0 because some identifiers are not unique
  7567. #within the first six characters.
  7568. trs16:
  7569.     @echo 'Making C-Kermit $(CKVER) for Tandy 16/6000, Xenix 3.0...'
  7570.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  7571.     "CFLAGS = -+ -DATTSV -DTRS16 -DNOMKDIR -DDCLPOPEN -DCK_CURSES \
  7572.     -DNODEBUG -DNOTLOG -DNOHELP -DNOSCRIPT -DNOCSETS -DNOIKSD \
  7573.     -DNOREDIRECT -DNOSYSLOG -DNOPUTENV -DNOREALPATH -DNOLEARN \
  7574.     $(KFLAGS) -O" "LIBS= -lcurses -ltermcap" "LNKFLAGS = -+ -n -s"
  7575.  
  7576. # QNX 4.21 and above, 32-bit version, Watcom C32 10.6, fully configured,
  7577. # except no job control because QNX 4.x does not support it.  New NCURSES
  7578. # library used instead of CURSES.
  7579. #
  7580. # -Oatx optimizes to favor speed over size: loop optimization, inline fn's.
  7581. # -Os favors size over speed.  Saves 30-40K out of about 1.75M.
  7582. # -3r = generate 386 code with register-based arg passing.
  7583. # -3s = generate 386 code with stack-based arg passing.
  7584. # -ms = separate code & data 4GB segments (32-bit builds only).
  7585. # -mf = flat memory model code+data in one 4GB segment (ditto).
  7586. # -zc = place literal strings in code segment.
  7587. # -N4M = Big stack (increase the digit upon SIGSEGVs at runtime).
  7588. # chars are unsigned by default (-j makes them signed by default).
  7589. # -NOUUCP is included because QNX doesn't use it.
  7590. # Add these to the end if you like but they dump core on my QNX 4.25 system:
  7591. #
  7592. #    @wermit -h >use.qnx
  7593. #    @usemsg wermit use.qnx
  7594. #    @rm use.qnx
  7595. #
  7596. # If you get warnings about HEADER or C_IN add -DNO_DNS_SRV.
  7597. # OK 2011/06/14
  7598. qnx32:
  7599.     @echo 'Making C-Kermit $(CKVER) for QNX 4.2x, 32-bit...'
  7600.     $(MAKE) xermit \
  7601.     "LNKFLAGS = -N4M -3r" \
  7602.     "CFLAGS = -ms -3r -DQNX -DTCPSOCKET -DCK_CURSES -DNOGETUSERSHELL \
  7603.     -DCK_WREFRESH -DCK_REDIR -DSELECT -DSELECT_H -DCK_RTSCTS -DNOJC \
  7604.     -DNOINITGROUPS -DNOUUCP -DCK_ANSIC -DPID_T=pid_t -Oatx -zc $(KFLAGS)" \
  7605.     "LIBS= -lsocket -lncurses -ltermcap"
  7606.  
  7607. # As above but no networking since some QNX systems do not have TCP/IP
  7608. # installed, or the TCP/IP developers kit, which includes all the needed
  7609. # header files.  This entry has not been tested on a QNX system that, in
  7610. # fact, does not have TCP/IP installed; some adjustments might be necessary,
  7611. # in particular regarding the use of select(): is -lsocket needed, can we
  7612. # get the needed definitions from non-TCP/IP header files (FD_SET, etc)?
  7613. qnx32nonet:
  7614.     @echo 'Making C-Kermit $(CKVER) for QNX 4.2x, 32-bit, no net...'
  7615.     $(MAKE) xermit \
  7616.     "LNKFLAGS = -N4M -3r" \
  7617.     "CFLAGS = -3r -ms -DQNX -DNONET -DNOIKSD -DCK_CURSES \
  7618.     -DCK_WREFRESH -DCK_REDIR -DSELECT -DSELECT_H -DCK_RTSCTS -DNOJC \
  7619.     -DNOUUCP -DCK_ANSIC -DPID_T=pid_t -Oatx -zc $(KFLAGS)" \
  7620.     "LIBS= -lsocket -lncurses -ltermcap"
  7621.     @wermit -h >use.qnx
  7622.     @usemsg wermit use.qnx
  7623.     @rm use.qnx
  7624.  
  7625. # Synonym for qnx32.
  7626. qnx:
  7627.     $(MAKE) qnx32 "KFLAGS=$(KFLAGS)"
  7628.  
  7629. # QNX 4.21 and above, 16-bit version, Watcom C 8.5 - and higher on i286 PCs
  7630. # and above.
  7631. #
  7632. #    IMPORTANT: Do not use Watcom C 10.6!!!
  7633. #    If you have it installed, add "-v9.52 to CFLAGS"
  7634. #
  7635. # NOTE: QNX 4.23 onward does not work on 286's anyway.
  7636. # Stacksize 26000, objects larger than 100 bytes in their own segments,
  7637. # string constants to the codesegment, etc.  Fully configured except job ctrl.
  7638. # This entry works for building a 16-bit executable on a 32-bit system, but
  7639. # has not been tested on a 16-bit system.  Uses large memory model, links
  7640. # explicitly with large-model sockets library.  Correct-model curses library
  7641. # is chosen automatically.  See comment in qnx32 entry about -DNOUUCP.
  7642. #
  7643. # WARNING:
  7644. #
  7645. # Watcom C prior to 10.6 never had released curses library. To link against it,
  7646. # you must obtain ported free curses source from ftp://ftp.qnx.com/usr/free,
  7647. # then compile and build library (cursesl.lib) and place it in /usr/lib.  You
  7648. # must also copy curses.h to /usr/include.  Be aware that if you have Watcom
  7649. # 10.6 installed, you should already have curses.h, which is the new ncurses
  7650. # library. You must back it up and use free curses.h instead, since ncurses is
  7651. # only for 32-bit applications and some definitions in these files are
  7652. # different (e.g., clearok()).  For safety, curses is not defined in build.
  7653. #
  7654. # In 7.0 -DNOHELP added to keep ckuus2.c from blowing up; NOCSETS and NOSPL
  7655. # added because ckuus4 was blowing up, and NOFLOAT just because it seemed
  7656. # dangerous (remove -DNOFLOAT if you want to try it), The result works OK
  7657. # except for some mysterious beeps upon termination of the top-level keyword.
  7658. #
  7659. # Things to try next time we get in trouble:
  7660. #  . Change -zt100 to something smaller like -zt25
  7661. #  . Change -Oatx to -Omilerat (enable stack checking)
  7662. #  . Maybe get rid of -v9.52 -- it's only there because we were warned.
  7663. #
  7664. qnx16:
  7665.     @echo 'Making C-Kermit $(CKVER) for QNX 4.21, 16-bit...'
  7666.     $(MAKE) xermit \
  7667.     "LNKFLAGS = -2 -ml -N 26000" \
  7668.     "CFLAGS = -2 -Oatx -zc -zt100 -ml -DQNX -DQNX16 -DNOUUCP -DNOHELP \
  7669.     -DCK_REDIR -DSELECT -DSELECT_H -DNOJC -DNOGETUSERSHELL -DNOCSETS \
  7670.     -v9.52 -DTCPSOCKET -DCK_RTSCTS -DCK_ANSIC -DNOINITGROUPS -DNOKVERBS \
  7671.     -DNORANDOM -DNOCSETS -DNOSPL -DNOFLOAT -DPID_T=pid_t $(KFLAGS)"
  7672.  
  7673. # QNX 4.1, 16-bit version, with Watcom C 8.5 on i286 PCs and above.
  7674. # stacksize 26000, objects larger than 100 bytes in their own segments,
  7675. # string constants to the codesegment, etc.  Add -DNOUUCP if desired.
  7676. qnx16_41:
  7677.     @echo 'Making C-Kermit $(CKVER) for QNX 4.1, 16-bit...'
  7678.     $(MAKE) xermit \
  7679.     "LNKFLAGS = -mh -N 26000" "CFLAGS = -Wc,-fpc -Wc,-j -DNOGETUSERSHELL \
  7680.     -Wc,-Ols -Wc,-zdf -Wc,-zc -Wc,-zt100 -mh -DPOSIX -DQNX -DDIRENT \
  7681.     -DNOCYRIL -DNODEBUG -DNOMSEND -DMINIDIAL -DNOXMIT -DNOSCRIPT -DNOSPL \
  7682.     -DNOSETKEY -DNOINITGROUPS -DQNX16 -DPID_T=pid_t $(KFLAGS)"
  7683.  
  7684. # QNX Neutrino 2 (pwaechtler@qnx.de) crosscompiled on QNX 4.25.
  7685. # Gets lots of compiler warnings.
  7686. qnx_nto2+:
  7687.     @echo 'Making C-Kermit $(CKVER) for QNX Neutrino 2+ '
  7688.     cc -o wart ckwart.c
  7689.     $(MAKE) xermit \
  7690.     "CC = qcc -Vgcc_ntox86" \
  7691.     "CC2 = qcc -Vgcc_ntox86" \
  7692.     "LNKFLAGS = " \
  7693.     "CFLAGS = -DNEUTRINO -DTCPSOCKET -DCK_CURSES -DNOGETUSERSHELL \
  7694.     -DNOUUCP -DCK_WREFRESH -DCK_REDIR -DSELECT -DSELECT_H -DCK_RTSCTS \
  7695.     -DNOJC -DNOINITGROUPS -DCK_ANSIC -DPID_T=pid_t -DUNIX -DDIRENT \
  7696.     -DMYREAD -DBSD44ORPOSIX -DSVORPOSIX -DNDGPWNAM $(KFLAGS)" \
  7697.     "LIBS= -lsocket -lncurses "
  7698.  
  7699. # QNX 6 (= Neutrino 2.xx) native build (kirussel@cisco.com).
  7700. qnx6:
  7701.     @echo 'Making C-Kermit $(CKVER) for QNX6'
  7702.     $(MAKE) xermit KTARGET=QNX6 \
  7703.     "CFLAGS = -DPOSIX -DCK_POSIX_SIG -DNETPTY -DNOARROWKEYS \
  7704.     -DUSE_TIOCSDTR -DBIGBUFOK -DCKMAXOPEN=100 -DRLOGCODE -DNOREALPATH \
  7705.     -DMAXNAMLEN=48 -DQNX6 -DUSE_TERMIO -DINIT_SPTY \
  7706.     -DCK_CURSES -DCK_WREFRESH -DCK_NEWTERM -DDYNAMIC \
  7707.     -DTCPSOCKET -DNOGETUSERSHELL -DCK_REDIR -DSELECT -DSELECT_H \
  7708.     -DCK_RTSCTS -DNOJC -DSVORPOSIX -DBSD44ORPOSIX -DNOUUCP -DCK_ANSIC \
  7709.     $(KFLAGS) -O" \
  7710.     "LIBS= -lsocket  -lncurses"
  7711.  
  7712. #MINIX/2.0 32 Bit version for intel 386+ running the POSIX-compliant MINIX
  7713. # version 2.0 (The definition of fatal avoids a conflict with a symbol by
  7714. # the same name in the curses library.) It is impossible to compile with
  7715. # network support since Minix does not support Berkeley sockets.
  7716. # Note: use chmem liberally on the compiler passes, make, and the final
  7717. # kermit executable. (3 megabytes of memory for each is sufficient.)
  7718. # From Terry McConnell, Syracuse U, and Will Rose.  Will says:
  7719. # The stacks for make and some compiler passes needed to be increased
  7720. # with chmem as follows:
  7721. #   make 1MB
  7722. #   /usr/lib/em_cemcom.ansi 3MB
  7723. #   /usr/lib/em_opt 1MB
  7724. #   /usr/lib/i386/cg 1MB
  7725. #   /usr/lib/i386/as 1MB
  7726. # The compiler temporary directory was set to /usr/tmp via the TMPDIR
  7727. # environment variable; more than 1MB of temporary space was needed.
  7728. # Kermit itself needs at least 1MB of stack.
  7729. minix20:
  7730.     @echo 'Making C-Kermit $(CKVER) for MINIX 2.0/386...'
  7731.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} EXT=o \
  7732.     "CFLAGS=  -wo -DV7 -DMINIX2 -DMINIX -DSIG_V -D_POSIX_SOURCE \
  7733.     -DCKCPU=\\\"i-386\\\" -DNOIKSD -Dfatal=myfatal -DCK_CURSES -DNOLEARN \
  7734.     -DNOSYSLOG -DUSE_MEMCPY -DNOREALPATH $(KFLAGS)" "LIBS= -lcurses"
  7735.  
  7736. #MINIX/386 (PC Minix modified by Bruce Evans in Australia for 386 addressing)
  7737. # For MINIX 1.5+ (but < 2.0)
  7738. minix386:
  7739.     @echo 'Making C-Kermit $(CKVER) for MINIX/386...'
  7740.     @echo 'TOTALLY UNTESTED!'
  7741.     $(MAKE) wermit EXT=s KTARGET=$${KTARGET:-$(@)} \
  7742.     "CFLAGS= -DV7 -DMINIX -D_POSIX_SOURCE -DNOLEARN $(KFLAGS)"
  7743.  
  7744. #MINIX/386 Minix modified by Bruce Evans in Australia to use 386 addressing
  7745. minix386gcc:
  7746.     @echo 'Making C-Kermit $(CKVER) for MINIX/386 with gcc...'
  7747.     @echo 'TOTALLY UNTESTED!'
  7748.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC=gcc -g -O" "CC2=gcc -g" \
  7749.     "CFLAGS= -DV7 -DMINIX -D_POSIX_SOURCE -DNOLEARN $(KFLAGS)"
  7750.  
  7751. #MINIX - 68k version with ACK compiler.
  7752. # If you have trouble compiling or running wart, "touch wart".
  7753. # If it still doesn't work, "touch ckcpro.c".
  7754. # The version configured below has many features removed, including
  7755. # the TRANSMIT, MSEND, HELP, and SCRIPT commands, international
  7756. # character set support, and the entire script programming language.
  7757. # But it does have an interactive command parser.
  7758. # Make sure make(1) has (at least) 100000 chmemory!
  7759. # If you are using the Amsterdam C compiler, you might have to add "-D__ACK__".
  7760. minix68k:
  7761.     @echo 'Making C-Kermit $(CKVER) for MINIX 68k with ACK...'
  7762.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  7763.     "CFLAGS= -DV7 -DMINIX -D_MINIX -D_POSIX_SOURCE -DNOLEARN \
  7764.     -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG \
  7765.     -DNOSCRIPT -DNOCSETS -DNOSPL $(KFLAGS) \
  7766.     -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t -DSIG_V"
  7767.  
  7768. #MINIX - 68k version with c68 compiler.
  7769. # If you have trouble compiling or running wart, "touch wart" or
  7770. # "touch ckcpro.c". Compiling ckudia.c (no -DNODIAL!) might fail. :-(
  7771. # Give c68 250000 bytes of stack+heap; make sure make(1) has at least
  7772. # 100000 chmemory.  On a 1MB Atari ST this means that the recursive
  7773. # call of make fails due to memory shortage.  Try "make -n minixc68 >makeit",
  7774. # followed by ". makeit".  Otherwise, as above.
  7775. minixc68:
  7776.     @echo 'Making C-Kermit $(CKVER) for MINIX 68k with c68...'
  7777.     $(MAKE) wermit "CC= cc -c68" KTARGET=$${KTARGET:-$(@)} \
  7778.     "CFLAGS= -DV7 -DMINIX -D_MINIX -D_POSIX_SOURCE -DNOLEARN \
  7779.     -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG \
  7780.     -DNOSCRIPT -DNOCSETS -DNOSPL $(KFLAGS) \
  7781.     -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t -DSIG_V"
  7782.  
  7783. #MINIX - 68k version with c68 compiler.
  7784. #A variation on the above that was recently (Sep 95) reported to work.
  7785. minixc68a:
  7786.     @echo 'Making C-Kermit $(CKVER) for MINIX 68k with c68...'
  7787.     $(MAKE) wermit "CC= cc -c68" KTARGET=$${KTARGET:-$(@)} \
  7788.     "CFLAGS= -DV7 -DMINIX -D_MINIX -D_POSIX_SOURCE \
  7789.     -DCK_ANSIC -DNODEBUG -DNOTLOG -DMINIDIAL -DEXTEN -DMYCURSES \
  7790.     -DNOSCRIPT -DNOCSETS -DNOSPL -DNOJC -DDIRENT -DNOLEARN \
  7791.     -DNOSETKEY -DNOESCSEQ $(KFLAGS) \
  7792.     -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t -DSIG_V"
  7793.  
  7794. #MIPS Computer Systems with UMIPS RISC/OS 4.52 = AT&T UNIX System V R3.0.
  7795. #Remove -DNOJC if job control can be safely used.
  7796. mips:
  7797.     @echo 'Making C-Kermit $(CKVER) for MIPS RISC/OS...'
  7798.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  7799.     "CFLAGS = -DMIPS -DDIRENT -DCK_POLL -DNOJC -DNOLEARN -DPID_T=int \
  7800.     -DGID_T=gid_t -DUID_T=uid_t -i -O1500 $(KFLAGS)"
  7801.  
  7802. #As above, but with TCP/IP and fullscreen support.
  7803. mipstcpc:
  7804.     @echo 'Making C-Kermit $(CKVER) for MIPS RISC/OS...'
  7805.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  7806.     "CFLAGS = -DMIPS -DDIRENT -DCK_POLL -DNOJC \
  7807.     -DTCPSOCKET -DCK_CURSES -I/usr/include/bsd \
  7808.     -DPID_T=int -DGID_T=gid_t -DUID_T=uid_t -i -O1500 $(KFLAGS)" \
  7809.     "LIBS = -lcurses -lbsd"
  7810.  
  7811. #Motorola Delta System V/68 R3, signal() is void rather than int.
  7812. #Uses dirent.h and Honey DanBer uucp.  Supports TCP/IP.
  7813. #After building, use "mcs -d" to reduce size of the executable program.
  7814. sv68r3:
  7815.     @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/68 R3...'
  7816.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  7817.     "CFLAGS = -DSVR3 -DSV68 -DDIRENT -DHDBUUCP -DNO_DNS_SRV -DTCPSOCKET \
  7818.     -DNOUNICODE -DNOLEARN -DUSE_MEMCPY $(KFLAGS) -O" "LNKFLAGS ="
  7819.  
  7820. #Motorola Delta System V/68 R3V5, signal() is void rather than int.
  7821. #Uses dirent.h and Honey DanBer UUCP.  Supports TCP/IP.
  7822. #After building, use "mcs -d" to reduce size of the executable program.
  7823. sv68r3v5:
  7824.     @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/68 R3V5'
  7825.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  7826.     "CFLAGS = -DSVR3 -DSV68 -DDIRENT -DHDBUUCP -DNO_DNS_SRV -DUSE_MEMCPY \
  7827.     -DTCPSOCKET -DINADDRX -DNOUNICODE -DFNFLOAT -DNOLEARN $(KFLAGS) -O" \
  7828.     "LNKFLAGS =" "LIBS = -linet -lm"
  7829.  
  7830. #Motorola MVME147 System V/68 R3 V5.1. Requires gcc 2.1 to compile.
  7831. #After building, use "mcs -d" to reduce size of the executable program.
  7832. sv68r3v51:
  7833.     @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/68 R3V5.1'
  7834.     $(MAKE) wermit "CC=gcc-delta" "CC2=gcc-delta" \
  7835.     KTARGET=$${KTARGET:-$(@)} \
  7836.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DNODEBUG -DNO_DNS_SRV -DNOLEARN \
  7837.     -DNOUNICODE -DFNFLOAT -DSV68 -DUSE_MEMCPY $(KFLAGS) \
  7838.     -O2 -v -ftraditional" \
  7839.     "LNKFLAGS = -s -v" "LIBS = -lm881 -lm"
  7840.  
  7841. #Motorola MVME147 System V/68 R3V6. derived from Motorola Delta System R3V5.
  7842. #Checked on larger Motorola System V/68 R3V6 (with NSE Network Services Ext.)
  7843. #After building, use "strip" to reduce size of the executable program.
  7844. # "LIBS = -lnsl" removed in C-Kermit 6.1 - put back if needed.
  7845. # "LIBS = lm" added in 7.1/8.0 for floating-point math.
  7846. # ckuusr.c clobbers the optimizer.
  7847. sv68r3v6:
  7848.     @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/68 R3V6'
  7849.     $(MAKE) ckuusr.$(EXT) KTARGET=$${KTARGET:-$(@)} \
  7850.     "CFLAGS = -DSV68R3V6 -DDIRENT -DHDBUUCP -DNOLOGIN -DNOINITGROUPS \
  7851.     -DNOSYMLINK -DNOREDIRECT -DNOGFTIMER -DTCPSOCKET -DDCLGETCWD -DSV68 \
  7852.     -DNO_DNS_SRV -DNOUNICODE -DFNFLOAT -DSELECT -DUSE_MEMCPY $(KFLAGS)"
  7853.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  7854.     "CFLAGS = -O -DSV68R3V6 -DDIRENT -DHDBUUCP -DNOLOGIN -DNOINITGROUPS \
  7855.     -DNOSYMLINK -DNOREDIRECT -DNOGFTIMER -DTCPSOCKET -DDCLGETCWD -DSV68 \
  7856.     -DNO_DNS_SRV -DNOUNICODE -DFNFLOAT -DSELECT -DUSE_MEMCPY $(KFLAGS)" \
  7857.     "LNKFLAGS =" "LIBS = -lm"
  7858.  
  7859. #Motorola Delta System V/88 R32, signal() is void rather than int.
  7860. #Uses dirent.h and Honey DanBer uucp.  Needs <sys/utime.h> for setting
  7861. #file dates.  Supports TCP/IP.
  7862. #After building, use "mcs -d" to reduce size of the executable program.
  7863. sv88r32:
  7864.     @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/88 R32...'
  7865.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  7866.     "CFLAGS = -DSV88R32 -DDIRENT -DHDBUUCP -DTCPSOCKET \
  7867.     -DSYSUTIMEH -DCK_CURSES -DNOGETUSERSHELL -DGTODONEARG $(KFLAGS) -O" \
  7868.     "LIBS= -lcurses -lresolv" "LNKFLAGS = -s"
  7869.  
  7870. #Motorola Delta System V/88 R40.  Has <sys/termiox.h>, regular Berkeley
  7871. #sockets library, i.e. in.h and inet.h are not misplaced in sys (rather than
  7872. #netinet and arpa, respectively).  Uses ANSI C constructs, advisory file
  7873. #locking on devices, etc.  curses support added.  Reportedly, the
  7874. #/usr/include/sys/vnode.h file has a bug which must be fixed before this
  7875. #makefile entry can work correctly.  The "if DEBUG" directive at about line
  7876. #320 must be changed to "ifdef DEBUG" (Reportedly, this was fixed in
  7877. #in System V/88 R4.3).
  7878. #After building, use "mcs -d" to reduce size of the executable program.
  7879. sv88r40:
  7880.     @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/88 R40...'
  7881.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  7882.     "CFLAGS = -O -DSVR4 -DMOTSV88R4 -DDIRENT -DHDBUUCP -DSTERMIOX \
  7883.     -DTCPSOCKET -DCK_CURSES -DNOGETUSERSHELL -DGTODONEARG -DFNFLOAT \
  7884.     $(KFLAGS)" \
  7885.     "LIBS= -lsocket -lnsl -lcurses -lresolv -lm" "LNKFLAGS = -s"
  7886.  
  7887. #As above but without the floating-point math library.
  7888. sv88r40nm:
  7889.     @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/88 R40...'
  7890.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  7891.     "CFLAGS = -O -DSVR4 -DMOTSV88R4 -DDIRENT -DHDBUUCP -DSTERMIOX \
  7892.     -DTCPSOCKET -DCK_CURSES -DNOGETUSERSHELL -DGTODONEARG $(KFLAGS)" \
  7893.     "LIBS= -lsocket -lnsl -lcurses -lresolv" "LNKFLAGS = -s"
  7894.  
  7895. #As above but with floating-point math library support \ffp...() functions
  7896. #and S-Expressions.
  7897.  
  7898. #Olivetti X/OS R2.3, 3.x.
  7899. #NOTES:
  7900. # . If you build the executable on 2.x X/OS, it will also run on 3.x.
  7901. # . If you build it on 3.x X/OS, it will NOT run on 2.x.
  7902. # . Kermit can run with no privileges unless the uucp lines are protected,
  7903. #   in which case kermit must be owned by uucp with suid bit set:
  7904. #   chown uucp kermit ; chmod 4111 kermit.
  7905. xos23:
  7906.     @echo 'Making C-Kermit $(CKVER) for Olivetti X/OS...'
  7907.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  7908.     'CFLAGS=-OLM -DOXOS -DTCPSOCKET -DHDBUUCP $(KFLAGS)' \
  7909.     "LIBS=" "LNKFLAGS="
  7910.  
  7911. #As above, but with curses.
  7912. xos23c:
  7913.     @echo 'Making C-Kermit $(CKVER) for Olivetti X/OS with curses...'
  7914.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  7915.     'CFLAGS=-OLM -DOXOS -DTCPSOCKET -DHDBUUCP -DCK_CURSES $(KFLAGS)' \
  7916.     "LIBS=-lcurses" "LNKFLAGS="
  7917.  
  7918. ckuuid:
  7919.     @echo 'building C-Kermit $(CKVER) set-UID/set-GID test programs'
  7920.     $(CC) -DANYBSD -DSAVEDUID -o ckuuid1 ckuuid.c
  7921.     $(CC) -DANYBSD -o ckuuid2 ckuuid.c
  7922.     $(CC) -DANYBSD -DNOSETREU -o ckuuid3 ckuuid.c
  7923.     $(CC) -DANYBSD -DSETEUID -DNOSETREU -o ckuuid4 ckuuid.c
  7924.     $(CC) -o ckuuid5 ckuuid.c
  7925.     @echo 'Read the top of ckuuid.c for directions...for testing'
  7926.     @echo 'you must make these programs setuid and setgid'
  7927.  
  7928. ############################################################################
  7929. # A N T I Q U I T I E S
  7930. #
  7931. # The following are antique targets from C-Kermit 5A or earlier.  They have
  7932. # not been updated or tested in years.  Most of them will need recent features
  7933. # disabled, usually with some combination of -DNOUNICODE, -DNOIKSD, -DNOANSI,
  7934. # -DNOCKGHNLHOST, -DNO_DNS_SRV, -DNOREDIRECT, -DNOREALPATH, -DNOCURSES, etc.
  7935. # They are also missing the KTARGET=$${KTARGET:-$(@)} business.
  7936. # For details see ckuins.txt and ckccfg.txt.
  7937. #
  7938. ############################################################################
  7939.  
  7940. #Berkeley Unix 2.8, 2.9 for PDP-11s with I&D space, maybe also Ultrix-11???
  7941. #C-Kermit(5A) is simply too large (even turning off almost every feature
  7942. #available) to run without both I&D space plus overlays.  The old comment
  7943. #suggested running 'pcc' but that won't help.  Changing 'cc' to 'ckustr.sed'
  7944. #will cause a string extraction to be done, saving D space by moving strings
  7945. #to a file.
  7946. bsd29:
  7947.     @echo Making C-Kermit $(CKVER) for 2.8 or 2.9BSD.
  7948.     @echo Read the makefile if you have trouble with this...
  7949.     $(MAKE) ovwermit \
  7950.     "CFLAGS= -DBSD29 -DNODEBUG -DNOTLOG -DNOCSETS -DNOHELP \
  7951.     -DNOSCRIPT -DNOSPL -DNOXMIT -DNODIAL $(KFLAGS)" \
  7952.     "LNKFLAGS= -i -lndir" "CC= cc " "CC2= cc"
  7953.  
  7954. bsd210:
  7955.     @echo Please use ckubs2.mak to build C-Kermit $(CKVER) for 2.10BSD.
  7956.  
  7957. bsd211:
  7958.     @echo Please use ckubs2.mak to build C-Kermit $(CKVER) for 2.11BSD.
  7959.  
  7960. #Charles River Data Systems Universe with UNOS Version 9.2
  7961. crds:
  7962.     @echo 'Making C-Kermit $(CKVER) for Charles River Data Systems...'
  7963.     make xermit \
  7964.     "CFLAGS = -DATTSV -DNOANSI -DDIRENT -DLONGFN -DTCPSOCKET \
  7965.     -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DNOSETREU \
  7966.     -Dsuspend=ksuspend $(KFLAGS) -O" "LNKFLAGS ="
  7967.  
  7968. #Microport SV/AT for IBM PC/AT 286 and clones, System V R2.
  7969. #The -O flag may fail on some modules (like ckuus2.c), in which case you
  7970. #should compile them by hand, omitting the -O.  If you get "hash table
  7971. #overflow", try adding -DNODEBUG.
  7972. #Also, reportedly this compiles better with gcc than with cc.
  7973. mpsysv:
  7974.     @echo 'Making C-Kermit $(CKVER) for Microport SV/AT 286...'
  7975.     $(MAKE) wermit \
  7976.     "CFLAGS= -DATTSV -DNOLEARN $(KFLAGS) -O -Ml" "LNKFLAGS = -Ml"
  7977.  
  7978. #Microsoft "Xenix/286" e.g. for IBM PC/AT
  7979. xenix:
  7980.     @echo 'Making C-Kermit $(CKVER) for Xenix/286'
  7981.     $(MAKE) wermit \
  7982.     "CFLAGS= -DXENIX -DNOFILEH -DNOLEARN $(KFLAGS) -Dunix -F 3000 -i" \
  7983.     "LNKFLAGS = -F 3000 -i"
  7984.  
  7985. #PC/IX, Interactive Corp System III for IBM PC/XT
  7986. pcix:
  7987.     @echo 'Making C-Kermit $(CKVER) for PC/IX...'
  7988.     $(MAKE) wermit \
  7989.     "CFLAGS= -DPCIX -DISIII -DNOLEARN $(KFLAGS) \
  7990.     -Dsdata=sdatax -O -i" "LNKFLAGS = -i"
  7991.  
  7992. #Integrated Solutions Inc V8S VME 68020
  7993. isi:
  7994.     @echo Making C-Kermit $(CKVER) for 4.2BSD on ISI...
  7995.     $(MAKE) wermit "CC = cc" \
  7996.     "CFLAGS= -DBSD4 -DTCPSOCKET -DINADDRX -DDCLPOPEN -DDEBUG -DNOSETREU \
  7997.     -DCK_CURSES -DNOLEARN $(KFLAGS)" "LIBS = -lcurses -ltermcap"
  7998.  
  7999. #Interactive Corp version of AT&T System III
  8000. #is3: (very old, probably not sufficient for 5A or later)
  8001. #    @echo 'Making C-Kermit $(CKVER) for Interactive System III...'
  8002. #    make wermit "CFLAGS = -DISIII -Ddata=datax -O -i" "LNKFLAGS = -i"
  8003. #The following should work, use it if you don't have gcc.
  8004. #Use is3gcc if you have gcc.
  8005. is3:
  8006.     @echo 'Making C-Kermit $(CKVER) for Interactive System III...'
  8007.     $(MAKE) wermit \
  8008.     "CFLAGS= -DISIII $(KFLAGS) -Ddata=datax -DNAP -DHDBUUCP
  8009.     -DLOCK_DIR=\"/usr/spool/uucp\" -DSIGTYP=void -O -i" "LNKFLAGS = -i"
  8010.  
  8011. #Interactive UNIX System V R3, no network support.  Uses <dirent.h> and Honey
  8012. #DanBer UUCP.  If this entry does not compile correctly, try any or all of the
  8013. #following.  These suggestions also apply more or less to the other is5r3xxx
  8014. #entries that follow this one.
  8015. # . Remove the UID_T and GID_T definitions, or change them as required.
  8016. # . Change -DDIRENT to -DSDIRENT.
  8017. # . Add -DSIGTYP=void.
  8018. # . Remove -g from LNKFLAGS.
  8019. # . Add -DNOANSI to remove compiler complaints about ANSI C constructions
  8020. # . Add other -DNOxxx's to save space (e.g. -DNOCSETS)
  8021. # See the next few makefile entries for related examples.
  8022. # Also see sys5r32is for making a portable i386 SVR3 binary.
  8023. is5r3:
  8024.     @echo 'Making C-Kermit $(CKVER) for Interactive 386/ix or later...'
  8025.     @echo 'If this does not work please read the makefile entry.'
  8026.     $(MAKE) wermit \
  8027.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -g -DNOCSETS -DNOREALPATH \
  8028.     -DUID_T=ushort -DGID_T=ushort -DI386IX $(KFLAGS)" \
  8029.     "LNKFLAGS = -g"
  8030.  
  8031. #Interactive Corp System System V R3 with gcc
  8032. is3gcc:
  8033.     @echo 'Making C-Kermit $(CKVER) for Interactive System V R3 / gcc...'
  8034.     $(MAKE) wermit CC=gcc CC2=gcc \
  8035.     'CFLAGS = -D_SYSV3 -DISIII -Ddata=datax -DNAP -DHDBUUCP -DNOREALPATH \
  8036.     -DLOCK_DIR=\"/usr/spool/uucp\" -DSIGTYP=void -O' "LNKFLAGS ="
  8037.  
  8038. #Interactive UNIX System V R3, POSIX variant.  Untested.
  8039. #Uses dirent.h and Honey DanBer uucp.  Read comments in is5r3 entry.
  8040. is5r3p:
  8041.     @echo 'Making C-Kermit $(CKVER) for Interactive 386/ix or later...'
  8042.     $(MAKE) wermit \
  8043.     "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -g -DNOCSETS -DNOREALPATH \
  8044.     -DI386IX -DPOSIX $(KFLAGS)" "LNKFLAGS=" "LIBS=-lcposix"
  8045.  
  8046. #Interactive UNIX SVR3 2.2.1, job control, curses, no net, gcc.
  8047. is5r3gcc:
  8048.     $(MAKE) wermit CC=gcc CC2=gcc \
  8049.     "CFLAGS=-g -posix -DSVR3 -DDIRENT -DNOREALPATH \
  8050.     -DHDBUUCP -O -DNOCSETS -DI386IX -DSVR3JC -DCK_CURSES \
  8051.     $(KFLAGS)" LNKFLAGS="-posix" LIBS="-lcurses -lc_s"
  8052.  
  8053. #Interactive UNIX System V R3 with TCP/IP network support.
  8054. #Needs -linet for net functions.  signal() is void rather than int.
  8055. #Uses dirent.h and Honey DanBer uucp. Read comments in is5r3 entry.
  8056. #Also see is5r3net2 if you have trouble with this entry.
  8057. is5r3net:
  8058.     @echo 'Making C-Kermit $(CKVER) for Interactive 386/ix...'
  8059.     @echo 'If this does not work please read the makefile entry.'
  8060.     $(MAKE) wermit CC="$(CC)" CC2="$(CC2)" \
  8061.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DTCPSOCKET -DNOREALPATH \
  8062.     -DI386IX $(KFLAGS) -O" "LIBS = -linet"
  8063.  
  8064. is5r3netgcc:
  8065.     $(MAKE) is5r3net CC=gcc CC2=gcc
  8066.  
  8067. #Interactive UNIX System V R3, no job control, signal() void rather than int.
  8068. #Uses dirent.h and Honey DanBer uucp.  Needs -linet for net functions.
  8069. #Read comments in is5r3 entry.  Use this entry if is5r3net fails.
  8070. #Saves some space by stripping (-s) and using shared library (-lc_s).
  8071. is5r3net2:
  8072.     @echo 'Making C-Kermit $(CKVER) for Interactive 386/ix...'
  8073.     $(MAKE) wermit \
  8074.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DTCPSOCKET -DNOJC -DNOREALPATH \
  8075.     -DSIGTYP=void -DNOANSI -DI386IX $(KFLAGS) -O" \
  8076.     "LNKFLAGS= -s" "LIBS = -linet -lc_s"
  8077.  
  8078. #Interactive UNIX System V R3 (version 2.2 or later) with job control & curses.
  8079. #Uses dirent.h and Honey DanBer UUCP.
  8080. is5r3jc:
  8081.     @echo 'Making C-Kermit $(CKVER) for Interactive Unix 2.2 or later...'
  8082.     $(MAKE) wermit CC="$(CC)" CC2="$(CC2)" \
  8083.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -O -DNOCSETS -DNOREALPATH \
  8084.     -DUID_T=ushort -DGID_T=ushort -DI386IX -DSVR3JC -DCK_CURSES \
  8085.     -DPOSIX_JC -DCK_REDIR -DCK_POLL -DDCLGETCWD \
  8086.     $(KFLAGS)" "LIBS=-lcurses -lc_s -linet"
  8087.  
  8088. is5r3jcgcc:
  8089.     $(MAKE) is5r3jc CC="gcc -DCK_ANSILIBS -DDCGPWNAM -O4" CC2=gcc \
  8090.     KFLAGS="$(KFLAGS)" LNKFLAGS="$(LNKFLAGS)"
  8091.  
  8092. #Sunsoft/Interactive UNIX System V R3 (version 2.2 or later)
  8093. #with job control, curses, and TCP/IP networking.
  8094. #Uses dirent.h and Honey DanBer UUCP.
  8095. is5r3netjc:
  8096.     @echo 'Making C-Kermit $(CKVER) for Interactive Unix 2.2 or later...'
  8097.     $(MAKE) wermit CC="$(CC)" CC2="$(CC2)" \
  8098.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -O -DNOCSETS -DNOREALPATH \
  8099.     -DUID_T=ushort -DGID_T=ushort -DI386IX -DSVR3JC -DCK_CURSES \
  8100.     -DPOSIX_JC -DCK_REDIR -DTCPSOCKET -DSELECT \
  8101.     $(KFLAGS)" "LIBS=-linet -lcurses -lc_s"
  8102.  
  8103. is5r3netjcgcc:
  8104.     $(MAKE) is5r3netjc CC="gcc -DCK_ANSILIBS -DDCGPWNAM -O4" CC2=gcc \
  8105.     KFLAGS="$(KFLAGS)" LNKFLAGS="$(LNKFLAGS)"
  8106.  
  8107. #Masscomp System III
  8108. rtu:
  8109.     @echo 'Making C-Kermit $(CKVER) for Masscomp RTU System III...'
  8110.     $(MAKE) wermit \
  8111.     "CFLAGS= -UFIONREAD -DATTSV $(KFLAGS) -O" "LNKFLAGS =" "LIBS= -ljobs"
  8112.  
  8113. #Masscomp/Concurrent RTU 4.0 or later, Berkeley environment.
  8114. #Includes <ndir.h> = /usr/include/ndir.h
  8115. #Note "LIBS = -lndir" might not be necessary because of "ucb make".
  8116. rtubsd:
  8117.     @echo 'Making C-Kermit $(CKVER) for Masscomp RTU 4.1A...'
  8118.     ucb make wermit \
  8119.     "CFLAGS= -DBSD4 -DRTU -DNDIR -DHDBUUCP -DTCPSOCKET $(KFLAGS)" \
  8120.     "LIBS = -lndir"
  8121.  
  8122. #Masscomp/Concurrent RTU 4.0 or later, same as above,
  8123. #Includes "usr/lib/ndir.h"
  8124. #Note "LIBS = -lndir" might not be necessary because of "ucb make".
  8125. rtubsd2:
  8126.     @echo 'Making C-Kermit $(CKVER) for Masscomp RTU 4.1A...'
  8127.     ucb make wermit \
  8128.     "CFLAGS= -DBSD4 -DRTU -DXNDIR -DHDBUUCP $(KFLAGS)" \
  8129.     "LIBS = -lndir"
  8130.  
  8131. #Masscomp/Concurrent RTU 4.0 or later, same as above,
  8132. #Includes <sys/ndir.h>
  8133. #Note "LIBS = -lndir" might not be necessary because of "ucb make".
  8134. rtubsd3:
  8135.     @echo 'Making C-Kermit $(CKVER) for Masscomp RTU 4.x BSD...'
  8136.     ucb make wermit "CFLAGS= -DBSD4 -DRTU -DHDBUUCP $(KFLAGS)" \
  8137.     "LIBS = -lndir"
  8138.  
  8139. #Masscomp/Concurrent RTU 4.0 or later, System V R2, using <dirent.h>.
  8140. #In case of problems, add back the -DRTU switch.
  8141. #In case -DTCPSOCKET gives trouble, remove it.
  8142. rtus5:
  8143.     @echo 'Making C-Kermit $(CKVER) for Masscomp RTU 4.x...'
  8144.     $(MAKE) wermit \
  8145.     "CFLAGS= -DATTSV -DHDBUUCP -DDIRENT -DTCPSOCKET $(KFLAGS)"
  8146.  
  8147. #Masscomp/Concurrent RTU 4.x, System V R3, using <dirent.h>.
  8148. #Use this one if rtus5 gives warnings about pointer type mismatches.
  8149. #In case of problems, add back the -DRTU switch.
  8150. rtus5r3:
  8151.     @echo 'Making C-Kermit $(CKVER) for Masscomp RTU Sys V R3...'
  8152.     $(MAKE) wermit "CFLAGS= -DSVR3 -DHDBUUCP -DDIRENT $(KFLAGS)"
  8153.  
  8154. #DEC Pro-3xx with Pro/Venix V1.0 or V1.1
  8155. # Requires code-mapping on non-I&D-space 11/23 processor, plus some
  8156. # fiddling to get interrupt targets into resident code section.
  8157. # This almost certainly doesn't work any more.
  8158. provx1:
  8159.     @echo 'Making C-Kermit $(CKVER) for DEC Pro-3xx, Pro/Venix 1.x...'
  8160.     $(MAKE) wart "CFLAGS= -DPROVX1 $(KFLAGS)" "LNKFLAGS= "
  8161.     $(MAKE) wermit "CFLAGS = -DPROVX1 -DNOFILEH -md780" \
  8162.         "LNKFLAGS= -u _sleep -lc -md780"
  8163.  
  8164. #Nixdorf Targon/31.
  8165. #AT&T UNIX System V R3, signal() is void rather than int.
  8166. #Uses dirent.h without Honey DanBer uucp.
  8167. t31tos40x:
  8168.     @echo 'Making C-Kermit $(CKVER) for Targon/31 with TOS 4.0.xx...'
  8169.         $(MAKE) wermit \
  8170.         "CFLAGS= -DSVR3 -DDIRENT $(KFLAGS) -O" \
  8171.         "LNKFLAGS="
  8172.  
  8173. #NCR Tower 1632, OS 1.02
  8174. tower1:
  8175.     @echo 'Making C-Kermit $(CKVER) for NCR Tower 1632, OS 1.02...'
  8176.     $(MAKE) wermit "CFLAGS= -DTOWER1 $(KFLAGS)"
  8177.  
  8178. #NCR Tower 32, OS Release 1.xx.xx
  8179. tower32-1:
  8180.     @echo 'Making C-Kermit $(CKVER) for NCR Tower 32 Rel 1 System V R2...'
  8181.     @echo 'Add KFLAGS=-DISDIRBUG if you get errors about S_ISREG/S_ISDIR.'
  8182.     $(MAKE) wermit \
  8183.     "CFLAGS = -DATTSV $(KFLAGS) -O" "LNKFLAGS = -n"
  8184.  
  8185. #NCR Tower 32, OS Release 2.xx.xx
  8186. tower32-2:
  8187.     @echo 'Making C-Kermit $(CKVER) for NCR Tower 32 Rel 2 System V R2...'
  8188.     $(MAKE) wermit \
  8189.     "CFLAGS = -DATTSV -DHDBUUCP $(KFLAGS) -O2" \
  8190.     "LNKFLAGS = -n"
  8191.  
  8192. #NCR Tower 32, OS Releases based on System V R3
  8193. #Don't add -DNAP (doesn't work right) or -DRDCHK (not available in libc).
  8194. tower32:
  8195.     @echo 'Making C-Kermit $(CKVER) for NCR Tower 32 System V R3...'
  8196.     $(MAKE) wermit \
  8197.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DNOSYSIOCTLH $(KFLAGS) \
  8198.     -DUID_T=ushort -DGID_T=ushort -O1"
  8199.  
  8200. #NCR Tower 32, OS Releases based on System V R3
  8201. tower32g:
  8202.     @echo 'Making C-Kermit $(CKVER) for NCR Tower 32 System V R3, gcc...'
  8203.     $(MAKE) wermit "CC = gcc" \
  8204.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DNOSYSIOCTLH $(KFLAGS) \
  8205.     DUID_T=ushort -DGID_T=ushort -O -fstrength-reduce -fomit-frame-pointer"
  8206.  
  8207. #Fortune 32:16, For:Pro 1.8 (mostly like 4.1bsd)
  8208. ft18:
  8209.     @echo 'Making C-Kermit $(CKVER) for Fortune 32:16 For:Pro 1.8...'
  8210.     $(MAKE) wermit \
  8211.     "CFLAGS= -DNODEBUG -DBSD4 -DFT18 -DNOFILEH $(KFLAGS) \
  8212.     -DPID_T=short"
  8213.  
  8214. #Fortune 32:16, For:Pro 2.1 (mostly like 4.1bsd).
  8215. #The modules that break the optimizer are compiled separately.
  8216. ft21:
  8217.     @echo 'Making C-Kermit $(CKVER) for Fortune 32:16 For:Pro 2.1...'
  8218.     $(MAKE) ckuusx.$(EXT) "CFLAGS= -DNODEBUG -DBSD4 -DFT21 -DNOFILEH \
  8219.     -SYM 800  -DCK_CURSES $(KFLAGS) -DPID_T=short" \
  8220.     "LNKFLAGS= -n -s" "LIBS= -lcurses -ltermcap -lv -lnet"
  8221.     $(MAKE) ckuxla.$(EXT) "CFLAGS= -DNODEBUG -DBSD4 -DFT21 -DNOFILEH \
  8222.     -SYM 800  -DCK_CURSES $(KFLAGS) -DPID_T=short" \
  8223.     "LNKFLAGS= -n -s" "LIBS= -lcurses -ltermcap -lv -lnet"
  8224.     $(MAKE) ckudia.$(EXT) "CFLAGS= -DNODEBUG -DBSD4 -DFT21 -DNOFILEH \
  8225.     -SYM 800  -DCK_CURSES $(KFLAGS) -DPID_T=short" \
  8226.     "LNKFLAGS= -n -s" "LIBS= -lcurses -ltermcap -lv -lnet"
  8227.     $(MAKE) wermit \
  8228.     "CFLAGS= -O -DNODEBUG -DBSD4 -DFT21 -DNOFILEH -SYM 800 \
  8229.     -DCK_CURSES $(KFLAGS) -DPID_T=short" \
  8230.     "LNKFLAGS= -n -s" "LIBS= -lcurses -ltermcap -lv -lnet"
  8231.  
  8232. #Valid Scaldstar
  8233. #Berkeleyish, but need to change some variable names.
  8234. valid:
  8235.     @echo 'Making C-Kermit $(CKVER) for Valid Scaldstar...'
  8236.     $(MAKE) wermit \
  8237.     "CFLAGS= -DBSD4 -DNODEBUG -DNOTLOG -Dcc=ccx -DFREAD=1 $(KFLAGS)"
  8238.  
  8239. #IBM IX/370 on IBM 370 Series mainframes
  8240. #Mostly like sys3, but should buffer packets.
  8241. ix370:
  8242.     @echo 'Making C-Kermit $(CKVER) for IBM IX/370...'
  8243.     $(MAKE) wermit "CFLAGS = -DIX370 -DATTSV $(KFLAGS) -i -O" \
  8244.     "LNKFLAGS = -i"
  8245.  
  8246. #Amdahl UTS 2.4 on IBM 370 series compatible mainframes.
  8247. #Mostly like V7, but can't do initrawq() buffer peeking.
  8248. uts24:
  8249.     @echo 'Making C-Kermit $(CKVER) for Amdahl UTS 2.4...'
  8250.     $(MAKE) wermit "CFLAGS=-DV7 -DPROCNAME=\\\"$(PROC)\\\" \
  8251.     -DUTS24 -DBOOTNAME=\\\"$(BOOTFILE)\\\" -DNPROCNAME=\\\"$(NPROC)\\\" \
  8252.     -DNPTYPE=$(NPTYPE) $(DIRECT) $(KFLAGS)"
  8253.  
  8254. #Amdahl UTSV UNIX System V = System V R2 or earlier.
  8255. utsv:
  8256.     @echo 'Making C-Kermit $(CKVER) for Amdahl UTSV...'
  8257.     $(MAKE) wermit \
  8258.     "CFLAGS = -DUTSV $(KFLAGS) -i -O" "LNKFLAGS = -i"
  8259.  
  8260. #Amdahl UTSV UNIX System V = System V R2 or earlier, with TCP sockets library.
  8261. utsvtcp:
  8262.     @echo 'Making C-Kermit $(CKVER) for Amdahl UTSV w/tcp...'
  8263.     $(MAKE) wermit "CFLAGS = \
  8264.     -DTCPSOCKET -DUTSV $(KFLAGS) -i -O" "LNKFLAGS = -i" \
  8265.     "LIBS = -lsocket"
  8266.  
  8267. #BBN C/70 with IOS 2.0
  8268. #Mostly Berkeley-like, but with some ATTisms
  8269. c70:
  8270.     @echo 'Making C-Kermit $(CKVER) for BBN C/70 IOS 2.0...'
  8271.     $(MAKE) wermit "CFLAGS= -DBSD4 -DC70 $(KFLAGS)"
  8272.  
  8273. #Zilog ZEUS 3.21
  8274. zilog:
  8275.     @echo 'Making C-Kermit $(CKVER) for Zilog Zeus 3.21...'
  8276.     $(MAKE) wermit \
  8277.     "CFLAGS = -DATTSV -DZILOG -DNODEBUG $(KFLAGS) -i -O" \
  8278.     "LNKFLAGS = -i -lpw"
  8279.  
  8280. #Whitechapel MG-1 Genix 1.3
  8281. white:
  8282.     @echo 'Making C-Kermit $(CKVER) for Whitechapel MG-1 Genix 1.3...'
  8283.     @touch ckcpro.c
  8284.     $(MAKE) wermit "CFLAGS= -DBSD4 -Dzkself()=0  $(KFLAGS)"
  8285.  
  8286. #Pixel 1000
  8287. pixel:
  8288.     @echo 'Making C-Kermit $(CKVER) for Pixel 1000...'
  8289.     $(MAKE) wermit "CFLAGS= -DBSD4 -Dzkself()=0 $(KFLAGS)"
  8290.  
  8291. ptx:
  8292.     $(MAKE) "MAKE=$(MAKE)" dynixptx12
  8293.  
  8294. #CDC VX/VE 5.2.1
  8295. vxve:
  8296.     @echo 'Making C-Kermit $(CKVER) for CDC VX/VE 5.2.1...'
  8297.     $(MAKE) wermit \
  8298.     "CFLAGS = -DATTSV -DVXVE -DNODEBUG -DNOTLOG $(KFLAGS) -i -O" \
  8299.     "LNKFLAGS = -i"
  8300.  
  8301. #DIAB DS90 or LUXOR ABC-9000 with pre-5.2 DNIX.  Sys V with nap() and rdchk().
  8302. # nd = no opendir(), readdir(), closedir(), etc.
  8303. # Some of the modules fail to compile with -O.
  8304. dnixnd:
  8305.     @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with very old DNIX 5.2.'
  8306.     $(MAKE) wermit \
  8307.     "CFLAGS = -DATTSV -DNAP -DRDCHK -DDCLPOPEN \
  8308.     -U__STDC__ $(KFLAGS)"
  8309.  
  8310. #DIAB DS90 with DNIX 5.2.  Sys V with nap() and rdchk().
  8311. # This one has opendir(), readdir(), closedir(), etc.
  8312. # Some of the modules fail to compile with -O.
  8313. dnix:
  8314.     @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with old DNIX 5.2...'
  8315.     $(MAKE) wermit \
  8316.     "CFLAGS = -DATTSV -DNAP -DRDCHK -DDIRENT  \
  8317.     -U__STDC__ $(KFLAGS)"
  8318.  
  8319. #DIAB DS90 with DNIX 5.2.  Sys V with nap() and rdchk().
  8320. # As above, but with curses and TCP/IP.
  8321. # You might get complaints about redefinition of O_RDONLY, etc, because
  8322. # of bugs in the DNIX header files, which can be fixed by adding #ifndef...
  8323. # around the offending definitions in the header files.
  8324. dnixnetc:
  8325.     @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with old DNIX 5.2...'
  8326.     $(MAKE) wermit \
  8327.     "CFLAGS = -DATTSV -DNAP -DRDCHK -DDIRENT  \
  8328.     -DTCPSOCKET -DCK_CURSES -I/usr/include/bsd -U__STDC__ $(KFLAGS)" \
  8329.     "LIBS = -ln -lcurses"
  8330.  
  8331. #DIAB DS90 with DNIX 5.3 or later, with HDB UUCP, nap() and rdchk().
  8332. dnix5r3:
  8333.     @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with DNIX 5.3...'
  8334.     @echo 'with Honey DanBer UUCP'
  8335.     $(MAKE) wermit \
  8336.     "CFLAGS = -DSVR3 -DHDBUUCP -DNAP -DRDCHK -DDIRENT \
  8337.     -DCK_CURSES -DRENAME $(KFLAGS) -O" "LIBS= -lcurses"
  8338.  
  8339. #DIAB DS90 with DNIX 5.3 or later, with HDB UUCP, nap() and rdchk() + TCP/IP
  8340. dnix5r3net:
  8341.     @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with DNIX 5.3...'
  8342.     @echo 'with Honey DanBer UUCP and TCP/IP'
  8343.     $(MAKE) wermit \
  8344.     "CFLAGS = -DSVR3 -DHDBUUCP -DNAP -DRDCHK -DDIRENT \
  8345.     -DTCPSOCKET -DCK_CURSES -DRENAME $(KFLAGS) -O \
  8346.     -I/usr/include/bsd" "LIBS = -ln -lcurses"
  8347.  
  8348. #DIAB DS90 with DNIX 5.3 2.2 or later, with HDB UUCP, nap() and rdchk(),
  8349. #ANSI C compilation and libraries.
  8350. #Note that for DNIX 5.3 2.2 you have to correct a bug in /usr/include/stdlib.h:
  8351. #change "extern    void free(char *str);"
  8352. #to     "extern void free(void *str);"
  8353. #NOTE: This bug is reportedly fixed in DNIX 5.3 2.2.1.
  8354. #Should you get fatal errors caused by harmless pointer-type mismatches,
  8355. #like between signed and unsigned char, just remove -X7.
  8356. dnix5r3ansi:
  8357.     @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with DNIX 5.3...'
  8358.     @echo 'with ANSI C Honey DanBer UUCP'
  8359.     $(MAKE) wermit \
  8360.     "CFLAGS = -DSVR3 -DDIAB -DHDBUUCP -DNAP -DRDCHK -DDIRENT \
  8361.     -DCK_ANSILIBS -DCK_CURSES -DRENAME -O -X7 -X9 $(KFLAGS)" \
  8362.     "LIBS= -lcurses"
  8363.  
  8364. #DIAB DS90 with DNIX 5.3 2.2 or later, with HDB UUCP, nap() and rdchk(),
  8365. # + TCP/IP, ANSI C compilation and libraries.
  8366. #Should you get fatal errors caused by harmless pointer-type mismatches,
  8367. #like between signed and unsigned char, just remove -X7.
  8368. dnix5r3ansinet:
  8369.     @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with DNIX 5.3...'
  8370.     @echo 'with ANSI C Honey DanBer UUCP'
  8371.     $(MAKE) wermit \
  8372.     "CFLAGS = -DSVR3 -DDIAB -DHDBUUCP -DNAP -DRDCHK -DDIRENT \
  8373.     -DTCPSOCKET -DCK_ANSILIBS -DCK_CURSES -DRENAME -O -X7 -X9 $(KFLAGS) \
  8374.     -I/usr/include/bsd" "LIBS= -ln -lcurses"
  8375.  
  8376. #Ridge 32 with ROS 3.2
  8377. ridge32:
  8378.     @echo 'Making C-Kermit $(CKVER) Ridge 32 ROS 3.2'
  8379.     $(MAKE) wermit \
  8380.     "CFLAGS = -DATTSV -DNOFILEH -DNODEBUG -DNOTLOG $(KFLAGS) -i -O" \
  8381.     "LNKFLAGS = -i"
  8382.  
  8383. #Altos 486, 586, or 986 with Xenix 3.0
  8384. altos:
  8385.     @echo 'Making C-Kermit $(CKVER) for Altos x86 with Xenix 3.0...'
  8386.     $(MAKE) wermit \
  8387.     "CFLAGS= -DATTSV -DA986 -DNODEBUG -DNOTLOG $(KFLAGS) -i -O" \
  8388.     "LNKFLAGS= -i"
  8389.  
  8390. #Altos 986 with Xenix 3.0, as above, but command-line only, minimal size.
  8391. #For systems with small memories.  It might also be necessary to chop certain
  8392. #modules up into smaller pieces, e.g. ckuus3-6, because of symbol table
  8393. #overflow.   If this makefile is too big or complex for the Altos, compile
  8394. #and link by hand or write shell scripts.
  8395. altosc:
  8396.     @echo 'Making C-Kermit $(CKVER) for Altos x86 Xenix 3.0, remote...'
  8397.     $(MAKE) wermit \
  8398.     "CFLAGS= -DATTSV -DA986 -DNODEBUG -DNOTLOG -DNOSCRIPT -DNODIAL \
  8399.     -DNOCSETS -DNOANSI -DNOMSEND -DNOSPL -DNOICP $(KFLAGS) -Mm -O" \
  8400.     "LNKFLAGS= -Mm -s"
  8401.  
  8402. #Altos 986 with Xenix 3.0, as above, but interactive only, minimal size.
  8403. altosi:
  8404.     @echo 'Making C-Kermit $(CKVER) for Altos x86 Xenix 3.0, local...'
  8405.     $(MAKE) wermit \
  8406.     "CFLAGS= -DATTSV -DA986 -DNODEBUG -DNOTLOG -DNOSCRIPT -DNODIAL \
  8407.     -DNOCSETS -DNOANSI -DNOMSEND -DNOSPL -DNOCMDL -DNOFRILLS -DNOHELP \
  8408.     -DNOSETKEY $(KFLAGS) -Mm -O" "LNKFLAGS= -Mm -s"
  8409.  
  8410. # Altos ACS68000 68000 System, UNIX System 3 Release 2, 512k memory.
  8411. # also needs getcwd() external function; see ckuins.txt file.
  8412. # also, sys/types.h needed modifying:
  8413. #   #ifdef __SYS_TYPES_H__, #define ..., #endif
  8414. # also, ckuus2.c MUST be compiled NOOPT else symbol table is destroyed!
  8415. # Submission by Robert Weiner/Programming Plus, rweiner@progplus.com.
  8416. #
  8417. altos3:
  8418.     @echo 'Making C-Kermit $(CKVER) for Altos ACS68k UNIX System III'
  8419.     $(MAKE) ckuus2.$(EXT) "CFLAGS = -DATTSV -DNOCSETS -DNOSETKEY -DNOJC \
  8420.     -DNODIAL -DDCLPOPEN -DNOSCRIPT -DNOHELP $(KFLAGS) -i"
  8421.     $(MAKE) wermit \
  8422.     "CFLAGS = -DATTSV -DNOCSETS -DNOSETKEY -DNOJC \
  8423.     -DNODIAL -DDCLPOPEN -DNOSCRIPT -DNOHELP $(KFLAGS) -i -O" \
  8424.     "LNKFLAGS = -i" "LIBS = getcwd.$(EXT)"
  8425.  
  8426. #MINIX - Original PC version with 64K+64K limit.
  8427. # Reportedly, the linker (asld) can run out of space while linking.  The only
  8428. # way around this is to make a copy of libc.a from which all modules that are
  8429. # not used by Kermit are removed.  If you have trouble compiling or running
  8430. # wart, "touch wart".  If that doesn't help, "touch ckcpro.c".
  8431. # The version configured below has no interactive command parser.
  8432. # If you can build this version successfully, maybe there will be room for
  8433. # a minimal interactive command parser too; try replacing -DNOICP with
  8434. # -DNOSPL, plus every other -DNOxxx flag there is, except for -DNOICP
  8435. # (see ckccfg.txt).
  8436. minix:
  8437.     @echo 'Making C-Kermit $(CKVER) for MINIX, no command parser...'
  8438.     @echo 'TOTALLY UNTESTED!'
  8439.     $(MAKE) wermit EXT=s \
  8440.     "CFLAGS= -DV7 -DMINIX -i -D_MINIX -D_POSIX_SOURCE \
  8441.     -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t -DSIG_V \
  8442.     -DNOXMIT -DNOMSEND -DNOFRILLS -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG \
  8443.     -DNOSCRIPT -DNOCSETS -DNOICP -DNOSETKEY $(KFLAGS)" \
  8444.     "LNKFLAGS= -i -T"
  8445.  
  8446. #MINIX - PC version with 64K+64K limit, new (as yet unreleased) ACK 2.0 beta C
  8447. #compiler, which outputs .o object files, rather than .s.  But 'make' still
  8448. #expects .s files, so must be patched to use .o.  Tested on Minix 1.5.10.
  8449. minix15:
  8450.     @echo 'Making C-Kermit $(CKVER) for MINIX (new ACK 2.0 compiler),'
  8451.     @echo 'no command parser...  TOTALLY UNTESTED!'
  8452.     $(MAKE) wermit \
  8453.     "CFLAGS= -DV7 -DMINIX -i -D_MINIX -D_POSIX_SOURCE \
  8454.     -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t -DSIG_V -DNODIAL \
  8455.     -DNOHELP -DNODEBUG -DNOTLOG -DNOSCRIPT -DNOCSETS -DNOICP $(KFLAGS)" \
  8456.     "LNKFLAGS= -i -T"
  8457.  
  8458. #MINIX3 - MINIX 3.0 (no VM) - May-Aug 2005 (not sure if this ever worked...)
  8459. minix3:
  8460.     @echo 'Making C-Kermit $(CKVER) for MINIX3...'
  8461.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  8462.     "CFLAGS= -DPOSIX -DNOUUCP -DNOLEARN $(KFLAGS) -DMINIX2 \
  8463.     -DMINIX3 -DNO_PARAM_H -DNOSYSLOG -DNOGETUSERSHELL \
  8464.     -DNOINITGROUPS -DNOFTRUNCATE -DNOARROWKEYS -DDNOREALPATH \
  8465.     -DTCPSOCKET -DNOTIMEZONE -DNOFTP -DNO_DNS_SRV -O"
  8466.  
  8467. #MINIX315 - MINIX 3 1.5 - January 2010
  8468. minix315:
  8469.     @echo 'Making C-Kermit $(CKVER) for Minix 3 1.5...'
  8470.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  8471.     "CFLAGS= -DMINIX315 -DPOSIX -DNOUUCP -DNOJC -DNOLEARN $(KFLAGS) \
  8472.     -DHAVE_OPENPTY -DNO_PARAM_H -DNOSYSLOG -DNOGETUSERSHELL \
  8473.     -DSYSTIMEH -DNOINITGROUPS -DNOFTRUNCATE -DNOARROWKEYS -DNOREALPATH \
  8474.     -DTCPSOCKET -DNOTIMEZONE -DNO_DNS_SRV -DNOFTP -O"
  8475.  
  8476. #PFU Compact A Series UNIX System V R3, SX/A TISP V10/L50 (Japan)
  8477. #Maybe the -i link option should be removed?
  8478. sxae50:
  8479.     @echo 'Making C-Kermit $(CKVER) for PFU SX/A V10/L50...'
  8480.     $(MAKE) xermit \
  8481.     "CFLAGS= -DSVR3 -DDIRENT -DsxaE50 -DTCPSOCKET $(KFLAGS) -i -O" \
  8482.     "LNKFLAGS= "
  8483.  
  8484. #Tektronix 6130, 4319, 4301, etc, with UTek OS, /usr/spool/uucp/LCK./...
  8485. #The models that support hardware flow control.
  8486. utek:
  8487.     @echo 'Making C-Kermit $(CKVER) for 4.2BSD/UTek, hardware flow control'
  8488.     $(MAKE) wermit \
  8489.     "CFLAGS= -O -DLCKDIR -DBSD4 -DTCPSOCKET \
  8490.     -DUTEK -DDCLPOPEN -DLOCK_DIR=\\\"/usr/spool/uucp/LCK.\\\" \
  8491.     -DTRMBUFL=2048 -DCK_DTRCTS $(KFLAGS)"
  8492.  
  8493. #Tektronix 4315, 4316, 4317 with UTek OS, /usr/spool/uucp/LCK./...
  8494. #The models that do not fully support hardware flow control.
  8495. uteknohwfc:
  8496.     @echo 'Making C-Kermit $(CKVER) for 4.2BSD/UTek, no h/w flow control'
  8497.     $(MAKE) wermit \
  8498.     "CFLAGS= -O -DLCKDIR -DBSD4 -DTCPSOCKET \
  8499.     -DUTEK -DDCLPOPEN -DLOCK_DIR=\\\"/usr/spool/uucp/LCK.\\\" \
  8500.     -DTRMBUFL=2048 $(KFLAGS)"
  8501.  
  8502. #Tektronix XD88 with  UTekV OS
  8503. utekvr3:
  8504.     @echo 'Making C-Kermit $(CKVER) for Tektronix XD88 UTekV R3...'
  8505.     $(MAKE) wermit \
  8506.     "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP \
  8507.     -DTCPSOCKET -DSYSUTIMEH -DCK_CURSES $(KFLAGS) -O" \
  8508.     "LIBS= -lcurses" "LNKFLAGS= -s"
  8509.  
  8510. #Perkin-Elmer 3200 Xelos R02 or earlier
  8511. ccop1:
  8512.     @echo 'Making C-Kermit $(CKVER) for Xelos & Public Domain Dirent calls'
  8513.     @echo 'or System V R2 or earlier...'
  8514.     $(MAKE) wermit \
  8515.     "CFLAGS = -DATTSV -Dvoid=int -DDIRENT -DCK_CURSES \
  8516.     $(KFLAGS) -O" "LNKFLAGS =" "LIBS= -lcurses -ltermlib"
  8517.  
  8518. #Encore, UMAX 4.3 (BSD) but without acucntrl program.
  8519. encore:
  8520.     $(MAKE) "MAKE=$(MAKE)" umax43 "KFLAGS=$(KFLAGS)"
  8521.  
  8522. #Encore, as above, but with curses file transfer display included.
  8523. encorec:
  8524.     $(MAKE) "MAKE=$(MAKE)" umax43 "KFLAGS=-DCK_CURSES $(KFLAGS)" \
  8525.     "LIBS= -lcurses -ltermcap"
  8526.  
  8527. #Encore, UMAX 4.3 (BSD) but without acucntrl program.
  8528. umax43:
  8529.     @echo Making C-Kermit $(CKVER) for Encore UMAX 4.3...
  8530.     $(MAKE) "MAKE=$(MAKE)" PARALLEL=4 xermit \
  8531.     "CFLAGS= -DBSD43 -DENCORE -DTCPSOCKET $(KFLAGS) -O"
  8532.  
  8533. #Encore, UMAX 4.2 (BSD)
  8534. umax42:
  8535.     @echo Making C-Kermit $(CKVER) for Encore UMAX 4.2...
  8536.     $(MAKE) "MAKE=$(MAKE)" PARALLEL=4 xermit \
  8537.     "CFLAGS= -DBSD4 -DENCORE -DTCPSOCKET $(KFLAGS) -O"
  8538.  
  8539. #Encore 88K UMAX 5.3 with TCP/IP support
  8540. encore88k:
  8541.     @echo 'Making C-Kermit $(CKVER) for Encore 88K UMAX V, TCP/IP...'
  8542.     $(MAKE) xermit \
  8543.     "CFLAGS = -q ext=pcc -DSVR3 -DTCPSOCKET -DDIRENT \
  8544.     -DNOGETID_PROTOS -DHDBUUCP $(KFLAGS) -O" "LNKFLAGS ="
  8545.  
  8546. #Encore 88K UMAX 5.3 with TCP/IP support
  8547. encore88kgcc:
  8548.     @echo 'Making C-Kermit $(CKVER) for Encore 88K UMAX V, TCP/IP, gcc...'
  8549.     $(MAKE) xermit CC=gcc CC2=gcc \
  8550.     "CFLAGS = -DSVR3 -DTCPSOCKET -DDIRENT \
  8551.     -DNOGETID_PROTOS -DHDBUUCP $(KFLAGS) -O" "LNKFLAGS ="
  8552.  
  8553. #SONY NEWS, NEWS-OS 4.01C
  8554. sonynews:
  8555.     @echo Making C-Kermit $(CKVER) for SONY NEWS-OS 4.01C...
  8556.     $(MAKE) xermit "CFLAGS= -DBSD43 -DACUCNTRL -DTCPSOCKET -O"
  8557.  
  8558. #Run Lint on this mess for selected versions.
  8559. #These are pretty much obsolete since ANSI C / gcc.
  8560. lintsun:
  8561.     @echo 'Running Lint on C-Kermit $(CKVER) sources for SunOS version...'
  8562.     lint -x -DSUNOS4 -DDIRENT -DTCPSOCKET -DSAVEDUID \
  8563.     ck[cu]*.c > ckuker.lint.sun
  8564.  
  8565. lintbsd:
  8566.     @echo 'Running Lint on C-Kermit $(CKVER) sources for BSD 4.2 version..'
  8567.     lint -x -DBSD4 -DTCPSOCKET ck[cu]*.c > ckuker.lint.bsd42
  8568.  
  8569. lints5:
  8570.     @echo 'Running Lint on C-Kermit $(CKVER) sources for Sys V version...'
  8571.     lint -x -DATTSV ck[cu]*.c > ckuker.lint.s5
  8572.  
  8573. #Who remembers TECO?
  8574. love:
  8575.     @echo 'Not war?'
  8576.