home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / archives / cku208.tar / makefile < prev   
Makefile  |  2003-03-30  |  335KB  |  7,628 lines

  1. # makefile / Makefile / ckuker.mak / CKUKER.MAK
  2. #
  3. # Mon Mar 17 09:38:28 2003
  4. BUILDID=20030317
  5. #
  6. CKVER= "8.0.209"
  7. #
  8. # -- Makefile to build C-Kermit for UNIX and UNIX-like platforms --
  9. #
  10. # Copyright (C) 1985, 2003,
  11. #   Trustees of Columbia University in the City of New York.
  12. #   All rights reserved.  See the C-Kermit COPYING.TXT file or the
  13. #   copyright text in the ckcmai.c module for disclaimer and permissions.
  14. #
  15. # Author: Frank da Cruz, Columbia University
  16. # 612 West 115th Street, New York NY 10025-7799, USA
  17. # E-mail: fdc@columbia.edu
  18. # Fax:    +1 212 662-6442
  19. # Web:    http://www.columbia.edu/kermit/
  20. #
  21. # Contributions from many others.  Special thanks to Jeff Altman for the
  22. # secure-target entries, Peter Eichhorn, assyst GmbH, for the consolidated
  23. # HP-UX entries and the "uninstall" target, to Robert Lipe for the updated
  24. # and consolidated SCO UNIX / ODT / OSR5 entries, to Ric Anderson for the
  25. # IRIX 6.x entries.
  26. #
  27. # Most entries use the "xermit" target, which uses the select()-based CONNECT
  28. # module, ckucns.c.  The "wermit" target uses the older fork()-base CONNECT
  29. # module, ckucon.c, which has some drawbacks (but is more portable).  If your
  30. # entry still uses the "wermit" target, please try substituting the "xermit"
  31. # one and if it works, let us know (mailto:kermit-support@columbia.edu).
  32. # When changing a target over from wermit to xermit, also remove -DNOLOEARN.
  33. #
  34. # CAREFUL: Don't put the lowercase word "if", "define", or "end" as the first
  35. # word after the "#" comment introducer in the makefile, even if it is
  36. # separated by whitespace.  Some versions of "make" understand these as
  37. # directives.  Uppercase letters remove the danger, e.g. "# If you have..."
  38. #
  39. # WARNING: This is a huge makefile, and it contains nested makes.  Some "make"
  40. # programs might run out of memory.  If this happens to you, edit away the
  41. # parts that do not apply to your platform and try again.
  42. #
  43. # Certain UNIX variations have their own separate makefiles:
  44. #  . For 2.10 or 2.11 BSD on DEC PDP-11s, use ckubs2.mak.
  45. #  . For Plan 9, use ckpker.mk.
  46. #
  47. # Separate build procedures are provided non-UNIX platforms: VMS, VOS,
  48. # AOS/VS, etc.  See the ckaaaa.txt file for details.
  49. #
  50. #
  51. # DIRECTIONS
  52. #
  53. # Rename this file to "makefile" or "Makefile" if necessary.  Pick out the
  54. # entry most appropriate for your UNIX version from the list below and then
  55. # give the appropriate "make" command, for example "make aix43", "make sys5r4",
  56. # "make linux".  If you experience any difficulties with the build procedure,
  57. # then please also read any comments that accompany the make entry itself
  58. # (search for the make entry name on the left margin).
  59. #
  60. # Other entries:
  61. #  'make install' is an installation script (read accompanying comments!).
  62. #  'make clean' removes intermediate and object files.
  63. #
  64. # IMPORTANT:
  65. #   For more detailed installation instructions, read the files ckuins.txt
  66. #   and ckccfg.txt, also available at the Kermit website in HTML form:
  67. #   http://www.columbia.edu/kermit/ckuins.html
  68. #   http://www.columbia.edu/kermit/ckccfg.html
  69. #
  70. #  For descriptions of known problems and limitations,
  71. #   read the files ckcbwr.txt and ckubwr.txt (the "beware files") or:
  72. #   http://www.columbia.edu/kermit/ckcbwr.html
  73. #   http://www.columbia.edu/kermit/ckubwr.html
  74. #
  75. # Most entries build C-Kermit with its symbol table included.  To reduce the
  76. # size of the executable program, add "LNKFLAGS=-s" to the end of your 'make'
  77. # command or to the makefile entry, or 'strip' the executable after
  78. # building.  To further reduce the size after building, use 'mcs -d' if your
  79. # Unix version has such a command.  For further details on size reduction, read
  80. # ckccfg.txt to find out how to remove features that you don't need.
  81. #
  82. # TCP/IP networking support: If your C-Kermit version does not include TCP/IP
  83. # networking, but your UNIX system does, try adding -DTCPSOCKET to the CFLAGS
  84. # of your makefile entry.  If that doesn't work, look at some of the other
  85. # entries that include this flag for ideas about what libraries might need to
  86. # be included (typically -lsocket and/or -lBSD and/or -lnsl and/or -linet).
  87. # NOTE: In some cases (old versions of SCO or HP-UX), you might need not only
  88. # a C compiler, but also a "TCP/IP developers kit" for the required object
  89. # libraries and header files.
  90. #
  91. # Fullscreen file transfer display support: If you are going to use C-Kermit
  92. # for establishing connections (dialed, network, etc), you can configure it to
  93. # produce a formatted file transfer display by including the curses library
  94. # and adding -DCK_CURSES to the CFLAGS for your option, and linking with the
  95. # appropriate libraries.  There are many examples below, usually ending in
  96. # "c", like sunos41c.  Also add -DCK_WREFRESH if your curses library includes
  97. # clearok() and wrefresh() functions (or remove -DNOWREFRESH if the linker
  98. # complains that it can't find these functions).
  99. #
  100. # Please report modifications, failures (preferably with fixes) or successes
  101. # to the author.
  102. #
  103. # SECURE TARGETS
  104. #  These are described after the next section.  Search for ******* below.
  105. #
  106. # TARGETS FOR DIFFERENT UNIX PLATFORMS AND VERSIONS:
  107. #
  108. # + Marks those that have been built successfully for C-Kermit 8.0 or later.
  109. # - Those that once built OK but no longer do (e.g. too big).
  110. # ? Those that worked in a previous version but have not been tested recently.
  111. # --------------------------
  112. # ? for 386BSD (Jolix) 0.0, 0.1, "make 386bsd" (see comments in entry),
  113. #     or (preferably, if it works) "make bsd44" or "make bsd44c".
  114. # ? for Acorn RISCiX, "make riscix" or "make riscix-gcc"
  115. # ? for Alliant FX/8 with Concentrix 4.1 or later, "make bsdlck"
  116. # ? for Altos 486, 586, 986 with Xenix 3.0, "make altos"
  117. # ? for Altos ACS68000, 8Mhz 68000, UNIX System 3 Rel 2, 512K, "make altos3"
  118. # ? for Amdahl UTS 2.4 on IBM 370 series & compatible mainframes, "make uts24"
  119. # ? for Amdahl UTSV IBM 370 series & compatible mainframes, "make utsv"
  120. # ? for Amdahl UTSV IBM 370 series mainframes with TCP/IP, "make utsvtcp"
  121. # ? for Amdahl mainframes with UNIX System V R 5.2.6b 580, "make sys3"
  122. # ? for Apollo Aegis 9.x, DOMAIN/IX 9.x, "make aegis"
  123. #    (Last tested in C-Kermit 5A(189))
  124. # ? for Apollo DOMAIN/IX, if the above fails, try "make apollobsd"
  125. # ? for Apollo with SR10.0 or later, BSD environment, "make sr10-bsd"
  126. # ? for Apollo with SR10.0 or later, System V environment, "make sr10-s5r3"
  127. # ? for Apple Macintosh II with A/UX pre-3.0, "make aux", "auxgcc" or "auxufs"
  128. # ? for Apple Macintosh with A/UX 3.0 and gcc, "make aux3gcc" or aux3gccc
  129. # ? for Apple PowerMac with MkLinux, "make mklinux" (read Linux entry first)
  130. # + for Apple PowerMac with LinuxPPC, "make linuxppc"
  131. # ? for Apple Macintosh with Minix 1.5.10, "make minix68k" or "make minixc68"
  132. # + for Apple Macintosh with Mac OS X 1.0 (Rhapsody), "make macosx10"
  133. #     (no curses), "make macosx10c" (curses), or "make macosx10nc" (ncurses).
  134. #     Or "make macosx10ncx" (ncurses but "make macosx10nc" doesn't work).
  135. # + for Apple Macintosh with Mac OS X 10.2, "make macosx102nc" (ncurses).
  136. # ? for Arix System 90 with AT&T SVR3, "make sys5r3na"
  137. # - for AT&T 6300 with IN/ix, "make sys5"
  138. # - for AT&T 6300 PLUS, "make att6300" or (with no debugging) "make att6300nd"
  139. # ? for AT&T 6386 WGS UNIX PC, "make sys5r3"
  140. # + for AT&T 3B2, 3B20 systems, "make att3b2".
  141. #   for AT&T 3B1, 7300 UNIX PC (see notes with the entries):
  142. #     In C-Kermit 7.0, only the gcc entries work:
  143. # +   "make sys3upcg", "make sys3upcgc", "make att351gm"
  144. #    The others fail with "too many defines" (usually in ckuusr.h):
  145. # -   "make sys3upc", "make sys3upcold", "make sys3upcc", "make sys3upcx",
  146. #       "make sys3upcm", "make att351m"
  147. # ? for AT&T System III/System V R2 or earlier, "make sys3" or "make sys3nid"
  148. # ? for AT&T System III/System V with Honey DanBer UUCP, "make sys3hdb"
  149. # ? for AT&T System V on DEC VAX, "make sys3" or "make sys5r3"
  150. # + for AT&T System V R3, use "make sys5r3" or "make sys5r3c"
  151. # + for AT&T System V/386 R3.2 built on Interactive 4.1.1, "make sys5r32is".
  152. # ? for AT&T System V/386 R320.0 Versyss Systems, use "make sys5r3"
  153. #     or "make sys5r3c".
  154. # + for AT&T System V R4, "make sys5r4", "make sys5r4sx", or "make sys5r4nx",
  155. #     or if the ANSI C function prototyping makes trouble, add -DNOANSI,
  156. #     as in "sys5r4sxna" entry
  157. # + for AT&T (USL) System V R4.2 use the sys5r4* entries.
  158. # ? for Atari Falcon with MiNT, "make posix"
  159. # ? for Atari ST with Minix ST 1.5.10.3, "make minix68k" or "make minixc68"
  160. # ? for BBN C/70 with IOS 2.0, "make c70"
  161. # ? for BeBox with Be OS 1.x DR7, "make beboxdr7"
  162. #     Compiles OK but doesn't link with default linker which is limited to 64K.
  163. #     Links OK with "Code Warrior Gold".  Many hacks in the source code need
  164. #     to be removed when DR8 and later come out.
  165. #     (Last tested in C-Kermit 6.0)
  166. # - for BeBox with Be OS 1.x DR8, "make bebox"
  167. #     (Needed functions missing from operating system and/or not working.)
  168. # - for Bell Labs UNIX Version 6 (6th Edition), there is no makefile entry.
  169. # ? for Bell Labs UNIX Version 7 (7th Edition), "make v7" (but see notes below)
  170. #    (last built successfully in C-Kermit 5A188)
  171. # ? for Bell Labs Research UNIX Version 10, "make bellv10"
  172. #    (last built successfully in C-Kermit 6.0)
  173. # ? for Bell Labs / Lucent Plan 9, use separate makefile ckpker.mk:
  174. #    can be built for Intel, MIPS, 680x0, and PowerPC (last built C-Kermit 7.0)
  175. # + for BSDI BSD/386 1.x, "make bsdi"
  176. # + for BSDI BSD/OS 2.x, "make bsdi2"
  177. # + for BSDI BSD/OS 3.0 or 3.1, "make bsdi3"
  178. # + for BSDI BSD/OS 4.x, "make bsdi4"
  179. # + for BSDI BSD/OS 4.x, to build a binary that also works on FreeBSD,
  180. #     "make bsdix".
  181. # ? for Berkeley Unix 2.4, "make v7" (but read v7 material below)
  182. # ? for Berkeley Unix 2.9 (DEC PDP-11 or Pro-3xx), "make bsd29"
  183. # - for Berkeley Unix 2.10, use ckubs2.mak (a separate makefile)
  184. # - for Berkeley Unix 2.11, use ckubs2.mak (a separate makefile)
  185. #     This makefile is too big.  Read the instructions in ckubs2.mak.
  186. #     "make -f ckubs2.mak bsd210" or "make -f ckubs2.mak bsd211".
  187. #     (last built successfully in C-Kermit 6.0 - later versions too big)
  188. # + for Berkeley Unix 2.11 "make -f ckubs2.mak bsd210noicp" (no command parser)
  189. # ? for Berkeley Unix 4.1, "make bsd41"
  190. # + for Berkeley Unix 4.2 on VAX, "make bsd42" or "make bsd42c"
  191. # ? for Berkeley Unix 4.2 or 4.3 with HoneyDanBer UUCP, "make bsdhdb"
  192. # + for Berkeley Unix 4.3 on VAX, "make bsd43", "make bsd43nc".
  193. # + for Berkeley Unix 4.3 on VAX, no networking "make bsd43nonet.
  194. # + for Berkeley Unix 4.3 without acucntrl program, "make bsd42" or "bsd42c"
  195. #     NOTE: all the C-Kermit 7.0 full builds for old BSDs fail with
  196. #     "too many defines" in CPP, even on big architectures like VAX.  This
  197. #     can be worked around with a clever ruse.  See comments at target.
  198. # + for Berkeley Unix 4.3, command-line only, "make bsdm".
  199. # + for Berkeley Unix 4.3-Tahoe, same as 4.3 BSD
  200. # + for Berkeley Unix 4.3-Reno, "make bsd43" or "make bsd44" or "make bsd44c"
  201. # + for Berkeley Unix 4.3-Carson City, "make bsd44" or "make bsd44c"
  202. # + for Berkeley Unix 4.4-Networking/2 or -Alpha, "make bsd44" or "make bsd44c"
  203. # + for Berkeley Unix 4.4, "make bsd44" or "make bsd44c"
  204. # + for Berkeley Unix 4.4-Lite, "make bsd44" or "make bsd44c"
  205. # ? for Bull DPX/2 with BOS/X, "make bulldpx2"
  206. # ? for Cadmus, "make sys3"
  207. #   for Caldera, see SCO, Linux.
  208. # ? for Callan Unistar, "make sys3"
  209. # ? for CDC VX/VE 5.2.1 System V emulation, "make vxve"
  210. # ? for Charles River Data Systems Universe 680x0 with UNOS 9.2, maybe
  211. #     also other UNOS versions, "make crds"
  212. # ? for CIE Systems 680/20 with Regulus, "make cie"
  213. # + for Commodore Amiga 3000UX Sys V R4, "make sys5r4sx"
  214. # + for Commodore Amiga 3000UX Sys V R4 and TCP/IP, "make svr4amiganet"
  215. # ? for Commodore Amiga with Minix 1.5.10, "make minix68k" of "make minixc68"
  216. # ? for Concurrent/Masscomp with RTU 4.0 or later, BSD environment, "make
  217. #     rtubsd", "make rtubsd2", "make rtubsd3" (depending on where ndir.h
  218. #     is stored, see entries below).
  219. # ? for Concurrent/Masscomp with RTU 4.0 or later, System V R2, "make rtus5"
  220. # ? for Concurrent (Perkin-Elmer) 3200 series, "make sys5".
  221. # ? for Concurrent (Perkin-Elmer) 3200 series with <dirent.h>, "make ccop1"
  222. # + for Concurrent PowerMAX OS SVR4, "make powermax"
  223. # ? for Consensys UNIX SV/386 R4V3, "make sys5r4sxtcpc" or "make sys5r4sx"
  224. # ? for Convergent with CTIX Sys V R2, "make sys5"
  225. # ? for Convergent with CTIX 6.4.1, "make ctix"
  226. # ? for Convex C1, "make convex"
  227. # ? for Convex C210 with Convex/OS 8, "make convex8"
  228. # ? for Convex C2 with Convex/OS 9.1, "make convex9"
  229. # ? for Convex C2 with Convex/OS 10.1 and gcc 2.x, "make convex10gcc"
  230. # ? for Cray Research X/MP or YMP or C90 with UNICOS 6.x (System V R3),
  231. #    "make cray"
  232. # ? for Cray Research X/MP or YMP or C90 with UNICOS 7.x (System V R4),
  233. #    "make cray"
  234. # ? for Cray Research X/MP or YMP or C90 with UNICOS 8.0 Alpha, "make cray8"
  235. # ? for Cray Research X/MP or Y-MP or C90 with UNICOS 9.0, "make cray9"
  236. # ? for Cray Computer Cray-2 or Cray3 with CSOS, "make craycsos"
  237. # ? for Cyber 910 (Silicon-Graphics Iris) with Irix 3.3, "irix33"
  238. # ? for Data General AViiON with DG/UX 5.4 before R3.00, "make dgux540"
  239. #     or "make dgux540c" (compile ckwart separately if necessary)
  240. # + for DG/UX 5.4 on AViiON Intel models, "make dgux540i" or dgux540ic.
  241. # ? for DG/UX 5.4R4.11 on AViiON, all models, "make dgux54411"
  242. # + for DG/UX 5.4R4.20 on AViiON, all models, "make dgux54420"
  243. # + for Data General AViiON with DG/UX 4.3x using Sys V-isms, "make dgux430"
  244. # ? for Data General AViiON with DG/UX 4.3x using BSD-isms, "make dgux430bsd"
  245. # ? for Data General AViiON, earlier UNIX versions,
  246. #     "make sys5r3" (maybe compile ckwart separately, or "touch ckcpro.c")
  247. # ? for Data General MV systems with DG/UX, ???
  248. # ? for Data General MV systems with MV/UX, use AOS/VS C-Kermit (CKDKER.MAK)
  249. # ? for Data General MV systems with AOS/VS, use CKDKER.MAK (last = C-K 7.0)
  250. #   for DEC PDP-11 with Berkeley UNIX 2.x, see Berkeley UNIX 2.x.
  251. # ? for DEC PDP-11 with Mini-UNIX (Bell 6th Edition for PDP-11 with no MMU),
  252. #     probably no way to fit C-Kermit without I&D space.
  253. # ? for DEC PDP-11 with Ultrix-11 3.x, ??? (probably needs overlays)
  254. # ? for DEC VAX with Ultrix 1.x "make bsd"
  255. # ? for DEC VAX with Ultrix 2.x "make ultrix2x"
  256. # ? for DEC VAX or DECstation with Ultrix 3.0, 3.1, "make ultrix3x"
  257. # ? for DECstation or VAX with Ultrix 4.0 or 4.1, "make ultrix40"
  258. # ? for DECstation or VAX with Ultrix 4.2, "make ultrix42" or "make ultrix42c"
  259. # ? for DECstation or VAX with Ultrix 4.x, POSIX world, "make posix"
  260. # + for DECstation or VAX with Ultrix 4.3, "make ultrix43".
  261. # + for DECstation or VAX with Ultrix 4.4, "make ultrix44".
  262. # ? for DECstation 5000/50, /150 or /260 (R4x00 MIPS CPU), Ultrix 4.3A or later
  263. #     "make ultrix43-mips3" or "make ultrix43c-mips3"
  264. # ? for DECstation (MIPS) with Berkeley Sprite, "make bsd44"?
  265. # ? for DECstation (MIPS) with OSF/1 V1.0 to 1.3, "make dec-osf"
  266. # ? for DEC Alpha with OSF/1 1.0 to 1.3, "make dec-osf"
  267. # ? for DEC PC 486 with OSF/1, "make dec-osf"
  268. # ? for DEC Alpha with OSF/1 2.x, "make dec-osf20"
  269. # + for DEC Alpha with OSF/1 3.0, "make dec-osf30"
  270. # + for DEC Alpha with Digital UNIX 3.2, "make du32"
  271. # + for DEC Alpha with Digital UNIX 4.0-4.0D, "make du40" or "make du40gcc"
  272. # + for DEC Alpha with Digital UNIX 4.0E or higher, see Tru64.
  273. # - for DEC Pro-350 with Pro/Venix V1.x, "make provx1" (version 5A is too big)
  274. # ? for DEC Pro-380 with Pro/Venix V2.0 (Sys V), "make sys3" or "make sys3nid"
  275. # ? for DEC Pro-380 with 2.9, 2.10, or 2.11 BSD, "make bsd29" or "make bsd210"
  276. #   for DEC PDP-11 with 2.xBSD (use separate makefile ckubs2.mak)
  277. # ? for Dell UNIX Issue 2.x (= USL Sys V/386 R4.x + fixes), "make dellsys5r4"
  278. #     or "make dellsys5r4c" (last tested in C-Kermit 5A).
  279. # ? for DIAB DS90 with DNIX (any version) create an empty <sys/file.h> if
  280. #     this file does not already exist (or add -DNOFILEH to the make entry).
  281. # ? for DIAB DS90 with DNIX 5.2 (Sys V.2) or earlier, "make dnix",
  282. #     "make dnixnd", or (to add curses and TCP/IP) "make dnixnetc",
  283. # ? for DIAB DS90 with DNIX 5.3 (Sys V.3), "make dnix5r3"
  284. # ? for DIAB DS90 with DNIX 5.3 (Sys V.3) and TCP/IP, "make dnix5r3net"
  285. # ? for DIAB DS90 with DNIX 5.3 2.2 (Sys V.3), ANSI C, "make dnix5r3ansi"
  286. #     or, to include TCP/IP, "make dnix5r3ansinet",
  287. #     but you have to fix a bug in /usr/include/stdlib.h first:
  288. #     change "extern void free(char *str);" to "extern void free(void *str);"
  289. # ? for Dolphin Server Technology Triton 88/17 with SV/88 R3.2, "make sv88r32"
  290. # ? for Encore Multimax 310, 510 with Umax 4.2, "make umax42"
  291. # ? for Encore Multimax 310, 510 with Umax 4.3, "make umax43"
  292. # ? for Encore Multimax 310, 510 with Umax V 2.2, use Berkeley cc, "make bsd"
  293. # ? for Encore 88K with Umax V 5.2, "make encore88k"
  294. # ? for ESIX System V R4.0.3 or 4.04 with TCP/IP support, "make esixr4"
  295. #     NOTE: You can also build on Unixware 2.x with "make esixr4", and run
  296. #     on ESIX, but there you must first:
  297. #       ln /usr/lib/libsocket.so /usr/lib/libsocket.so.1
  298. #       ln /usr/lib/libnsl.so /usr/lib/libnsl.so.1
  299. #     (This worked for C-Kermit 6.0 but does not work for 7.0)
  300. #     (But you can probably still build a non-networking version this way)
  301. # ? for Everex STEP 386/25 Rev G with ESIX Sys V R3.2D, "make sys5r3"
  302. # ? for Fortune 32:16, For:Pro 1.8, "make ft18"
  303. # ? for Fortune 32:16, For:Pro 2.1, "make ft21"
  304. # ? for FPS 500 with FPX 4.1, "made bsd"
  305. # + for FreeBSD 1.0, "make freebsd1"
  306. # + for FreeBSD 2.x, "make freebsd2" (ncurses) or "make freebsd2c" (curses)
  307. # + for FreeBSD 3.x, "make freebsd3" (ncurses) or "make freebsd3c" (curses)
  308. # + for FreeBSD 4.0, "make freebsd4"
  309. # + for FreeBSD 4.1, "make freebsd41"
  310. # + for FreeBSD 4.2, "make freebsd42"
  311. # + for FreeBSD 4.3, "make freebsd43"
  312. # + for FreeBSD 4.4, "make freebsd44"
  313. # + for FreeBSD 4.5, "make freebsd45"
  314. # + for FreeBSD 4.6, "make freebsd46"
  315. # + for FreeBSD 4.7, "make freebsd47"
  316. # + for FreeBSD 4.8, "make freebsd48"
  317. # ? for FreeBSD 5.0, "make freebsd50"
  318. # ? for Harris HCX-2900, "make sys5r3"
  319. # ? for Harris Night Hawk 88K or 68K with CX/UX pre-6.1, "make sys5r3"
  320. # ? for Harris Night Hawk 88K or 68K with CX/UX 6.1 or later, "make cx_ux"
  321. # ? for Heurikon, "make sys3"
  322. # ? for HP-3000, MPE/ix, "make posix"?
  323. # + for HP-9000 Series 300 with 4.4BSD, "make bsd44"
  324. # + for HP-9000 Series 500, HP-UX 5.21 and no networking "make hpux0500"
  325. # + for HP-9000 Series 500, HP-UX 5.21 with WIN/TCP 1.2 "make hpux0500wintcp"
  326. # + for HP-9000 Series, HP-UX 6.5, without long filenames,
  327. #     "make hpux0650" or "make hpux0650c"
  328. # + for HP-9000 Series, HP-UX 7.0 or later no long filenames, "make hpux0700sf"
  329. #     or (to include tcp/ip, curses, etc) "make hpux0700sftcpc"
  330. # + for HP-9000 Series with HP-UX 7.0, TCP/IP,long filenames,"make hpux0700lfn"
  331. # + for HP-9000 300/400 Series (680x0) with HP-UX 8.0, TCP/IP, "make hpux0800"
  332. #      or "make hpux0800c"
  333. # + for HP-9000 700/800 Series (PA-RISC), HP-UX 8.0, TCP/IP, "make hpux0800pa"
  334. #      or "make hpux0800pac"
  335. # + for HP-9000 Series with HP-UX 8.0, no TCP/IP, long filenames,
  336. #      "make hpux0800notcp"
  337. # + for HP-9000 Series, HP-UX 9.0 - 9.10, TCP/IP, curses, restricted compiler
  338. #     (no optimization, no ANSI), all models, "make hpux0900".  Read the
  339. #     hpux0900 entry below for more info.
  340. # + for HP-9000 700 and 800 Series, HP-UX 9.x, TCP/IP, curses,
  341. #     HP optimizing ANSI C compiler, "make hpux0900o700".
  342. # + for HP-9000 with Motorola CPUs, HP-UX 9.x, TCP/IP, curses,
  343. #     HP optimizing ANSI C compiler, "make hpux0900mot".
  344. # + for HP-9000 on other CPUs, HP-UX 9.x, TCP/IP, curses,
  345. #     HP optimizing ANSI C compiler, "make hpux0900o".
  346. # + for HP-9000 series, HP-UX 9.x, TCP/IP, curses, gcc, all models,
  347. #     "make hpux0900gcc"
  348. # + for HP-9000 700/800 Series, HP-UX 10.00,10.01,10.10,10.20,10.30, TCP/IP,
  349. #     curses, restricted compiler (no optimization, no ANSI) "make hpux1000".
  350. # + for HP-9000 700/800 Series, HP-UX 10.00,10.01,10.10,10.20,10.30, TCP/IP,
  351. #     curses, HP ANSI/optimizing compiler "make hpux1000o" or "make hpux1000o+"
  352. # + for HP-9000 HP-UX 10.00 or later with gcc, "make hpux1000gcc"
  353. # + for Trusted HP-UX 10.xx "make hpux1000t", "make hpux1000to",
  354. #     or make hpux1000to+"
  355. # + for HP-9000 700/800 Series, HP-UX 11.00,TCP/IP,curses, restricted compiler
  356. #     (no optimization, no ANSI) "make hpux1100".
  357. # + for HP-9000 700/800 Series, HP-UX 11.00,TCP/IP,curses, restricted compiler
  358. #     HP ANSI/optimizing compiler "make hpux1100o" or "make hpux1100o+"
  359. # + for Trusted HP-UX 11.xx "make hpux1100t", "make hpux1100to",
  360. #     make hpux1100to+"
  361. # + for HP-9000 PA-RISC models with NeXTSTEP 3.3, "make nextquadfat".
  362. # + for HP-9000 PA-RISC models with OPENSTEP/Mach 4.1, "make nextquadfat".
  363. # ? for IBM 370 Series with IX/370, "make ix370"
  364. # ? for IBM 370 Series with AIX/370 1.2, "make aix370"
  365. # ? for IBM 370 Series with AIX/370 3.0, "make aix370"
  366. # ? for IBM 370 Series with AIX/ESA 2.1, "make aixesa"
  367. # - for IBM PC/AT 286 & compatibles with Mark Williams Coherent OS,
  368. #     command-line-only version, "make coherent" (version 5A & later too big)
  369. # ? for IBM PC 386 & compatibles with Mark Williams Coherent OS,
  370. #     minimum interactive version, "make coherentmi"
  371. # ? for IBM PC 386 & compatibles with Mark Williams Coherent OS,
  372. #     full interactive version, prior to v4.2, "make coherentmax"
  373. # + for IBM PC 386 & compatibles with Mark Williams Coherent OS 4.2,
  374. #     "make coherent42"
  375. # ? for IBM PC 386 & compatibles with LynxOS 2.0 or 2.1, "make lynx21"
  376. # ? for IBM PC 386 & compatibles with LynxOS 2.2, "make lynx"
  377. # - for IBM PC/AT & compatibles with original MINIX, "make minix" (too big)
  378. # ? for IBM PC family, 386-based, with MINIX/386 1.5, "make minix386"
  379. #     or if you have GNU CC, "make minix386gcc"
  380. # + for IBM PC family, 386-based, with MINIX 2.0, "make minix20"
  381. # + for IBM PS/2 with PS/2 AIX 1.0, 1.1, or 1.2, "make ps2aix" or ps2aixnetc.
  382. # ? for IBM PS/2 with PS/2 AIX 1.3, "make ps2aix3"
  383. # ? for IBM RISC System/6000 with AIX 3.0, "make aix30"
  384. # ? for IBM RISC System/6000 with AIX 3.1.x, "make aix31"
  385. # + for IBM RISC System/6000 with AIX 3.2.0 thru 3.2.5, "make aix32"
  386. # + for IBM RS/6000 or Power Series with AIX 4.1.x, "make aix41"
  387. # + for IBM RS/6000 or Power Series with AIX 4.1.x with gcc, "make aix41g"
  388. # + for IBM RS/6000 or Power Series with AIX 4.1 with X.25, "make aix41x25"
  389. # + for IBM RS/6000 or Power Series with AIX 4.2, "make aix42"
  390. # + for IBM RS/6000 or Power Series with AIX 4.3, "make aix43" (or aix43gcc)
  391. # + for IBM RS/6000 or Power Series with AIX 4.4, "make aix44" (or aix44gcc)
  392. # + for IBM RS/6000 or Power Series with AIX 4.5, "make aix45" (or aix45gcc)
  393. # + for IBM RS/6000 or Power Series with AIX 5.0, "make aix50" (or aix50gcc)
  394. # + for IBM RS/6000 or Power Series with AIX 5.1, "make aix51" (or aix51gcc)
  395. # ? for IBM RS/6000 or Power Series with AIX 5.2, "make aix52" (or aix52gcc)
  396. # ? for IBM RS/6000 or Power Series with AIX 5.3, "make aix53" (or aix53gcc)
  397. # ? for IBM RT PC with AIX 2.1, "make sys3"
  398. # + for IBM RT PC with AIX 2.2.1, "make rtaix" or "make rtaixc"
  399. # ? for IBM RT PC with ACIS 4.2, "make bsd"
  400. # ? for IBM RT PC with ACIS 4.3, "make rtacis" or "make bsd KFLAGS=-DNOANSI"
  401. # ? for IBM RT PC with 4.3BSD/Reno, "make bsd44" or "make bsd44c"
  402. # ? for ICL DRS400 or 400E, "make iclsys5r3"
  403. # ? for ICL DRS3000 (80486) with DRS/NX, "make iclsys5r4_486"
  404. # ? for ICL DRS6000 (SPARC) with DRS/NX, "make iclsys5r4"
  405. # + for ICL DRS6000 (SPARC) with DRS/NX 4.2MP 7MPlus, "make iclsys5r4m+"
  406. # ?     Ditto but with IKSD support included, "make iclsys5r4m+iksd"
  407. # ? for Integrated Solutions Inc V8S VME 68020, "make isi"
  408. # ? for Intel 302 with Bell Tech Sys V/386 R3.2, "make sys5r3"
  409. # ? for Intel Xenix/286, "make sco286"
  410. # ? for Interactive System III (PC/IX), "make pcix" or "make is3"
  411. # ? for Interactive System III (PC/IX) with gcc, "make is3gcc"
  412. # ? for Interactive 386/ix 1.0.6 with TCP/IP networking, "make is5r3net2"
  413. # ? for Interactive 386/ix 2.0.x, "make is5r3" or (POSIX) "make is5r3p"
  414. # ? for Interactive 386/ix 2.0.x with TCP/IP networking, "make is5r3net"
  415. #     or "make is5r3net2"
  416. # ? for Interactive 386/ix 2.2.1, job control, curses, no net, gcc,
  417. #     "make is5r3gcc"
  418. # + for Interactive UNIX Sys V R3.2 V2.2 - 4.0 without TCP/IP, "make is5r3jc"
  419. # + for Interactive UNIX Sys V R3.2 V2.2 - 4.0 with TCP/IP, "make is5r3netjc"
  420. # + for Intergraph Clipper, "make clix" or "make clixnet"
  421. # ? for Jolix (see 386BSD)
  422. # + for Red Hat Linux 7.1 (and higher) fully configured (krb5, SSL, etc): 
  423. #     "make redhat71", "make redhat72", "make redhat73", "make redhat80"
  424. #     NOTE: You must use this target for Red Hat 7.1 since it 
  425. #     also includes a workaround for its broken curses library.
  426. #     WARNING: These targets create binaries that include code for
  427. #     strong encryption and are therefore not exportable. DO NOT PUT
  428. #     THESE BINARIES ON US OR CANADIAN WEB OR FTP SITES.
  429. # + for Linux 1.2 and later, "make linux".  Uses ncurses.  This version
  430. #     handles serial speeds up to 460800 bps, Linux FSSTD 1.2, TCP/IP, and
  431. #     should work on both libc and glibc systems.  For static linking, use
  432. #     "make linux LNKFLAGS=-static".  Please read the comments that accompany
  433. #     the linux entry.
  434. # + for Linux builds that fail with "sys/select.h: No such file or directory",
  435. #     "make linuxns"
  436. # + for Linux 1.2 and later but with curses.h and libcurses (rather than
  437. #     ncurses.h and libncurses), use "make linuxc".
  438. # + for Linux 1.2 and later with no curses support at all, "make linuxnc".
  439. # + for Linux on PowerMac (Mklinux DR3), "make mklinux".
  440. # + for Linux 1.2 and later, to build with egcs, "make linuxegcs".
  441. # + for Linux with no TCP/IP, "make linuxnotcp"
  442. # + for Linux with lcc compiler, no TCP/IP, "make linuxnotcp-lcc"
  443. # ? for Linux 1.0 or earlier, "make linux10", or (to remove TCP/IP)
  444. #     "make linuxnotcp".
  445. #     IMPORTANT: Read the comments that accompany the "linux:" entry.
  446. # ? for Mach 2.6 on (anything, e.g. DECstation), "make bsd42" or "make bsd43".
  447. # ? for MachTen (Tenon) 2.1.1.D on (e.g.) Apple Powerbook, "make machten".
  448. # ? for Masscomp RTU AT&T System III, "make rtu"
  449. #   for other Masscomp, see Concurrent.
  450. # ? for Microport SV/AT (System V R2), "make mpsysv" (last edit tested: 144)
  451. # ? for Microport SVR4 2.2, 3.1, or 4.1 "make sys5r4sx"
  452. # ? for Microsoft,IBM Xenix (/286, PC/AT, etc), "make xenix" or "make sco286"
  453. # ? for MIPS System with RISC/os (UMIPS) 4.52 = AT&T SVR3, "make mips"
  454. #     or "make mipstcpc"
  455. # + for MkLinux on Power Macintosh, "make mklinux"
  456. # ? for Modcomp 9730, Real/IX, "make sys5r3" (or modify to use gcc = GLS cc)
  457. # ? for Modcomp Realstar 1000 with REAL/IX D.1, "make sv88r32"
  458. # ? for Motorola Four Phase, "make sys3" or "make sys3nid"
  459. # + for Motorola Delta System V/68 R3, "make sv68r3"
  460. # + for Motorola Delta System V/68 R3V5, "make sv68r3v5"
  461. # + for Motorola Delta System V/68 R3V5.1, "make sv68r3v51"
  462. # + for Motorola Delta System V/68 R3V6 with NSE TCP/IP, "make sv68r3v6"
  463. # + for Motorola Delta System V/88 R32, "make sv88r32"
  464. # + for Motorola Delta System V/88 R40, "make sv88r40"
  465. # ? for Mt Xinu Mach386 on 386/486-based PCs, "make bsd43"
  466. # ? for NCR Tower 1632, OS 1.02, "make tower1"
  467. # ? for NCR Tower 1632 or Minitower with System V R2, "make sys3"
  468. #     or "make sys3nv"
  469. # ? for NCR Tower 32, OS Release 1.xx.xx, "make tower32-1"
  470. # ? for NCR Tower 32, OS Release 2.xx.xx, "make tower32-2"
  471. # ? for NCR Tower 32, OS Releases based on Sys V R3, "make tower32"
  472. # ? for NCR Tower 32, OS Releases based on Sys V R3 with gcc "make tower32g"
  473. # ? for NCR System 3000, AT&T UNIX System V R4 2.0, "make sys5r4sxna"
  474. # ? for NCR System 3000, AT&T UNIX System V R4 2.0 with Wollongong TCP/IP,
  475. #     "make sys5r4net2" or "make sys5r4net2c".
  476. #      Some header files might be misplaced; try this:
  477. #       ln /usr/include/netinet/in.h /usr/include/sys/in.h
  478. #       ln /usr/include/arpa/inet.h /usr/include/sys/inet.h
  479. #       ln /usr/include/sys/termiox.h /usr/include/termiox.h
  480. # ? for NCR System 3000, NCR UNIX 02.02.01, same as above.
  481. # + for NCR MP-RAS System V R4 V2.03 or 3.02, "make mpras" or "make mprastcpc"
  482. # + for NetBSD through 1.4.x on any architecture, "make netbsd"
  483. # + for NetBSD 1.5.0 and later, "make netbsd15"
  484. # + for NeXT with NeXTSTEP 1.0 through 3.2, "make next" (on a NeXT)
  485. # + for NeXT with NeXTSTEP 3.3, "make next33"
  486. # ? for NeXT with OPENSTEP/Mach 4.1, "make nextquadfat".
  487. # + for NeXT with OPENSTEP/Mach 4.2, "make openstep42".
  488. # ? for NeXTSTEP/486, "make next" (on a PC)
  489. # ? for NeXTSTEP portable binary (runs on Intel or Motorola), "make nextfat"
  490. # ? for NeXTSTEP portable binary (Intel, Motorola, HP PA-RISC, or SPARC),
  491. #     "make nextquadfat"
  492. # ? for Nixdorf Targon/31, "make t31tos40x"
  493. # ? for Norsk Data Uniline 88/17 with SV/88 R3.2, "make sv88r32"
  494. #   for Novell UnixWare - see UnixWare
  495. # ? for OSF/1 (vanilla, from OS/F), "make posix"
  496. # ? for OkiStation 7300 Series, "make sys5r4sxtcp"
  497. # ? for Olivetti LSX-3020 with X/OS R.2.3, "make xos23" or "make xos23c"
  498. # + for OpenBSD, "make openbsd" (also see secure targets listed below).
  499. # ? for OPENSTEP/Mach 4.1, "make nextquadfat" (NeXT, Intel, PA-RISC, SPARC)
  500. # + for OPENSTEP/Mach 4.2, "make openstep42" (tested on NeXT)
  501. # ? for Perkin-Elmer (Concurrent) 3200 series, "make sys5".
  502. # ? for Perkin-Elmer (Concurrent) 3200 series with <dirent.h>, "make ccop1"
  503. # ? for Perkin-Elmer/Concurrent 3200 with Xelos R02, "make ccop1"
  504. # ? for PFU Compact A Series SX/A TISP V10/E50 (Japan), "make sxae50"
  505. # ? for Plexus, "make sys3"
  506. # + for Pyramid 9XXX (e.g. 9845) or MIServer T series, OSx 4.4b thru 5.1,
  507. #     "ucb make pyramid" or for HDB UUCP, "ucb make pyramid-hdb" or:
  508. # + for Pyramid MIServer S or ES Series, DataCenter/OSx, "make pyrdcosx"
  509. # + for Pyramid MIS-S MIPS R3000, DataCenter OSx System V R4, "make pyrdcosx"
  510. # + for POSIX on anything, "make posix" (but adjustments might be necessary).
  511. # ? for Prime 8000 MIPS, SVR3, "make mips" or "make mipstcpc"
  512. # - for QNX 2.x (sorry we don't have a version of C-Kermit for QNX 2.x)
  513. # ? for QNX 4.0 or 4.1, 16-bit, on 286 PC, Watcom C 8.5, "make qnx16_41"
  514. # + for QNX 4.21 - 4.22A (286+), and 4.23 (386+), or higher, 16-bit,
  515. #     Watcom C 9.5x or higher, "make qnx16"
  516. # + for QNX 4.21-4.25, 32-bit, 386 or above, Watcom C 10.6, "make qnx32"
  517. #     NOTE: ("make qnx" == "make qnx32")
  518. # ? for QNX Neutrino 2+, "make qnx_nto2+" (crosscompiled on QNX4 with Watcom C)
  519. # + for QNX 6 = Neutrino 2.xx, "make qnx6"
  520. # ? for Ridge 32 (ROS3.2), "make ridge32"
  521. # ? for Samsung MagicStation, "make sys5r4"
  522. # ? for SCO Xenix 2.2.1 with development system 2.2 on 8086/8 "make sco86"
  523. # ? for SCO Xenix/286 2.2.1 with development system 2.2 on 80286, "make sco286"
  524. #     NOTE: reportedly this makefile is too long for SCO Xenix/286 make, but it
  525. #     works with "makeL", or if some of the other make entries are edited out.
  526. # ? for SCO Xenix/386 2.2.2, "make sco386"
  527. # ? for SCO Xenix/386 2.3.x, "make sco3r2"
  528. # ? for SCO Xenix/386 SCO 2.3.3 or 2.3.4 with gcc 1.37 or later,
  529. #     "make sco386gcc" or (to add curses) "make sco386gccc".
  530. # ? for SCO Xenix/386 or UNIX/386 with Excelan TCP/IP, "make sco3r2net"
  531. #     or (to add curses support) "make sco3r2netc" or "sco386netc"
  532. # + for SCO XENIX 2.3.4, "make sco234" or "make sco234c" to add curses.
  533. # + for SCO XENIX 2.3.4 with SCO TCP/IP & curses, "make sco234netc".
  534. # ? for SCO Xenix 2.3.x with Racal-InterLan TCP/IP, "make sco3r2netri"
  535. #   for other UNIX varieties with Racal Interlan TCP/IP, read sco3r2netri entry
  536. # ? for SCO Xenix 2.3.x with SCO (Lachman) TCP/IP, "make sco3r2lai"
  537. #     or (to add curses) "make sco3r2laic"
  538. #   for SCO UNIX...  ALSO READ COMMENTS in the SCO UNIX entries for more info!
  539. # ? for SCO UNIX/386 3.2.0 or 3.2.1, "make sco3r2" or "make sco3r2x"
  540. # ? for SCO UNIX/386 3.2.2, "make sco3r22" or "make sco3r22gcc"
  541. #     or "make sco3r22c"
  542. # ? for SCO UNIX/386 3.2.2 with SCO TCP/IP, "make sco3r22net"
  543. #     or "make sco3r22netc" (curses)
  544. # ? for SCO ODT 1.1, "make sco3r22net" or "make sco3r22netc" (curses)
  545. # + for SCO UNIX/386 3.2 V4.x, no network support, "make sco32v4"
  546. # +   or "make sco32v4ns" (this one uses no select() or sockets library)
  547. # + for SCO UNIX/386 3.2 V4.x with TCP/IP, "make sco32v4net"
  548. #     (also sco32v4gcc, sco32v4netgcc)
  549. # + for SCO UNIX/386 3.2 V5.0 - see SCO OpenServer.
  550. # + for SCO UNIX 3.2v4.x with TCP/IP, <dirent.h> for Extended Acer File
  551. #     System (EAFS), curses, ANSI C compilation, "make sco32v4net"
  552. # +   or (to use select()-based CONNECT module) "make sco32v4netx".
  553. # + for SCO UNIX 3.2v4.2, "make sco-odt30" (includes TCP/IP).
  554. # + for SCO MPX 3.0 - The SCO UNIX binary runs on the corresponding MPX system.
  555. #
  556. # NOTE: Also see below for other entries that are variations on these.
  557. # Also be sure to read the comments accompanying each SCO entry.
  558. # And yes, I know it's called Caldera now instead of SCO.
  559. # Also see Unixware section; Unixware has had so many owners there's no point
  560. # keeping track.
  561. #
  562. # + for SCO ODT 2.0, "make sco32v4net"
  563. # + for SCO ODT 3.0, "make sco-odt30"
  564. # + for SCO OpenServer 5.0 (OSR5), "make sco32v500"
  565. # + for SCO OpenServer 5.0 (OSR5) with networking, "make sco32v500net"
  566. # + for SCO OpenServer 5.0 (OSR5), gcc, "make sco32v500gcc"
  567. # + for SCO OpenServer 5.0 (OSR5), gcc, with networking, "make sco32v500netgcc"
  568. # + for SCO OpenServer 5.0 (OSR5), as above, ELF, "make sco32v500netgccelf"
  569. # + for SCO OpenServer 5.0.2, use "make sco32v502xxx" entries as above.
  570. # + for SCO OpenServer 5.0.4, use "make sco32v504xxx" entries as above.
  571. # + for SCO OpenServer 5.0.5, use "make sco32v505xxx" entries as above.
  572. #     Use the sco32v505udkxxx entries if you have the UDK rather than /bin/cc.
  573. # + for SCO OpenServer 5.0.6, use "make sco32v506xxx" entries as above.
  574. # + for SCO OpenServer 5.0.6a,use "make sco32v506axxx" entries as above.
  575. # + for SCO OpenServer 5.0.7, use "make sco32v507", "make sco32v507net"
  576. # ? for SCO (Univel) UnixWare 1.x, "make unixware" or "make unixwarenetc".
  577. #     If there are problems with this in C-K 7+ see notes at unixware entry.
  578. # + for SCO UnixWare 2.0.x, "make uw20"
  579. # + for SCO UnixWare 2.1.0, "make uw21"
  580. # + for SCO UnixWare 2.1.3, "make uw213"
  581. # + for SCO UnixWare 7, "make uw7"
  582. # + for SCO UnixWare 7 with IKSD support, "make uw7iksd" or "make uw7iksdudk"
  583. # + for SCO UnixWare 7 with OpenSSL, "make uw7ssl"
  584. # + for SCO (Caldera) Open UNIX 8, "make ou8"
  585. # + for Sharp Zaurus SL5500 PDA, "make zsl5500".
  586. # ? for Sequent with DYNIX/ptx 1.2.1, "make dynixptx12"
  587. # ? for Sequent with DYNIX/ptx 1.3 or 1.4 with TCP/IP, "make dynixptx13"
  588. # ? for Sequent with DYNIX/ptx 2.0 or 2.1 with TCP/IP, "make dynixptx20"
  589. #     or "dynixptx20c"
  590. # + for Sequent with DYNIX/ptx 2.1.6 on i486, "dynixptx216c"
  591. # ? for Sequent with DYNIX/ptx V4.1.3 with TCP/IP, "make dynixptx41c"
  592. # + for Sequent with DYNIX/ptx V4.4.2 with TCP/IP, "make dynixptx44"
  593. # ? for Sequent Balance 8000 or B8 with DYNIX 3.0.xx, "make dynix3"
  594. #    or "make dynix3noacu"
  595. # ? for Sequent Symmetry S81 with DYNIX 3.0.xx, "make dynix3"
  596. # ? for Sequent DYNIX 3.1.xx, "make dynix31" or "make dynix31c"
  597. # + for Siemens/Nixdorf SINIX-L Intel V5.41, "make sinix541i"
  598. # + for Siemens/Nixdorf SINIX-N MIPS V5.42, "make sinix542"
  599. # + for Siemens/Nixdorf SINIX-P MIPS V5.42 with gcc, "make sinix542g"
  600. # + for Siemens/Nixdorf SINIX-Z Intel V5.42, "make sinix542i"
  601. # + for Siemens/Nixdorf Reliant UNIX V5.43, "make sni543"
  602. # + for Siemens/Nixdorf Reliant UNIX V5.44, "make sni544"
  603. # ? for Silicon Graphics Iris System V IRIX 3.2 or earlier, "make iris"
  604. # ? for Silicon Graphics Sys V R3 with IRIX 3.3 or later, "make sys5r3"
  605. # ? for Silicon Graphics Iris Indigo with IRIX 4.0 or 5.0, "make irix40" or
  606. #     (to include Yellow Pages and Curses) "make irix40ypc"
  607. # ? for Silicon Graphics Iris Indigo or Elan with IRIX 4.0.x with microcode
  608. #     optimization and -O4, "make irix40u" or "irix40uc" (and read notes
  609. #     accompanying these entries).
  610. # + for Silicon Graphics IRIX 5.1, "make irix51" or "irix51x" (no optimize)
  611. # + for Silicon Graphics IRIX 5.2, "make irix52"
  612. # + for Silicon Graphics IRIX 5.3, "make irix53" or "irix53x" (no optimize)
  613. # + for Silicon Graphics IRIX 6.0, "make irix60".
  614. # + for Silicon Graphics IRIX 6.2, "make irix62".
  615. # + for Silicon Graphics IRIX 6.3, "make irix63".
  616. # + for Silicon Graphics IRIX 6.4, "make irix64" or "make irix64gcc".
  617. # + for Silicon Graphics (SGI) IRIX 6.5, "make irix65" or "make irix65mips2"
  618. # ? for Solaris 2.0-2.3 on SPARC or Intel, SunPro CC, "make solaris2x",
  619. # ?   or to add SunLink X.25 8.0x support, "make solaris2x25".
  620. # + for Solaris 2.4 built with gcc, "make solaris24g".
  621. # + for Solaris 2.0-2.3 on SPARC or Intel, GNU CC, "make solaris2xg".
  622. # + for Solaris 2.4 with X.25, "make solaris24x25".
  623. # + for Solaris 2.5 on SPARC or Intel, SunPro CC, "make solaris25".
  624. # +   or to add SunLink X.25 8.0x support, "make solaris25x25".
  625. # + for Solaris 2.5 on SPARC or Intel, GNU CC, "make solaris25g".
  626. # + for Solaris 2.6 on SPARC or Intel, "make solaris26".
  627. # + for Solaris 7 on SPARC or Intel, SunPro CC, "make solaris7".
  628. # + for Solaris 7 on SPARC or Intel, GNU CC, "make solaris7g".
  629. # + for Solaris 8 on SPARC or Intel, SunPro CC, "make solaris8".
  630. # + for Solaris 8 on SPARC or Intel, GNU CC, "make solaris8g".
  631. # + for Solaris 9 on SPARC (or Intel?), 32-bit, SunPro CC, "make solaris9".
  632. # + for Solaris 9 on SPARC (or Intel?), 32-bit, GNU CC, "make solaris9g".
  633. # + for Solaris 9 on SPARC (or Intel?), 64-bit, GNU CC, "make solaris9g64".
  634. # + for Solbourne 4/500 with OS/MP 4 "make sunos4"
  635. # + for Solbourne 4/500 with OS/MP 4.1 "make sunos41" or "make sunos41c"
  636. # ? for SONY NEWS with NEWS-OS 4.0.1C, "make sonynews"
  637. # ? for SONY NEWS with NEWS-OS 4.1.2C, "make sonynews"
  638. # ? for Sperry/UNISYS 5000/20, UTS V 5.2 3R1, "make sys5"
  639. # ? for Sperry/UNISYS 5000/30/35/50/55, UTS V 5.2 2.01, "make unisys5r2"
  640. # ? for Sperry/UNISYS 5000/80 with System V R3, "make sys5r3"
  641. # ? for Sperry/UNISYS 5000/95 with System V R3, "make sys5r3"
  642. #     For UNISYS SVR3 it might be necessary to "make sys5r3 KFLAGS=-UDYNAMIC"
  643. # ? for Stardent 1520, "make sys5r3"
  644. # ? for Stratus FTX 2.x, try "make ftx" or else "make sys5r4" or "sys5r4sx"
  645. # + for Stratus FTX 3.x, PA-RISC 1.0 or 2.0, "make ftx" or "make ftxtcp"
  646. # ? for Sun with Sun UNIX 3.5 and gcc, "make sunos3gcc"
  647. # ? for Sun with pre-4.0 SunOS versions, "make bsd" (or appropriate variant)
  648. # ? for Sun with SunOS 4.0, BSD environment, "make sunos4"
  649. # ? for Sun with SunOS 4.0, BSD, with SunLink X.25, make sunos4x25
  650. # + for Sun with SunOS 4.1 or 4.1.1, BSD environment, "make sunos41"
  651. #     or "make sunos41c" (curses) or "make sunos41gcc" (compile with gcc)
  652. # + for Sun with SunOS 4.1.x, BSD, with SunLink X.25 7.00 or earlier,
  653. #     "make sunos41x25" or "make sunos41x25c" (curses)
  654. # + for Sun with SunOS 4.1, 4.1.1, AT&T Sys V R3 environment, "make sunos41s5"
  655. # + for Sun with SunOS 4.1.2, "make sunos41" or any of its variations.
  656. #     NOTE:  All SunOS 4.x systems -- Shared libraries are used by default.
  657. #       If this causes problems, add -Bstatic to CFLAGS.
  658. #     NOTE2: When building C-Kermit under SunOS for the BSD universe,
  659. #       but /usr/5bin/cc is ahead of /usr/ucb/cc in your PATH, add
  660. #       "CC=/usr/ucb/cc CC2=/usr/ucb/cc" to the make entry.
  661. #     NOTE3: If an executable built on one type of Sun hardware does not work
  662. #       on another type, rebuild the program from source on the target machine.
  663. #   for Sun with Solaris 1.x use SunOS 4.1 entries.
  664. #   for Sun with Solaris 2.0 and higher use Solaris entries.
  665. # + for Sun SPARC with Linux, "make linux"
  666. # ? for Sun SPARC with OPENSTEP/Mach 4.1, "make nextquadfat"
  667. # ? for Sun SPARC with OPENSTEP/Mach 4.2, "make openstep42"
  668. # - for Tandy 16/6000 with Xenix 3.0, "make trs16" (C-Kermit 7.0 is too big)
  669. # ? for Tektronix 6130/4132/43xx (e.g.4301) with UTek OS, "make utek"
  670. #     or (for models without hardware flow control), "make uteknohwfc"
  671. # ? for Tektronix XD88 series with UTekV OS, "make utekvr3"
  672. # ? for Tri Star Flash Cache with Esix SVR3.2, "make sys5r3"
  673. # + for Tru-64 UNIX 4.0E, "make tru64-40e"
  674. # + for Tru-64 UNIX 4.0F, "make tru64-40f"
  675. # + for Tru-64 UNIX 4.0G, "make tru64-40g"
  676. # + for Tru-64 UNIX 5.0A, "make tru64-50a"
  677. # + for Tru-64 UNIX 5.1A, "make tru64-51a"
  678. # ? for Unistar, "make sys5"
  679. # ? for Unisys S/4040 68040 CTIX SVR3.2 6.4.1, "make ctix" or "make sys5r3"
  680. # ? for Unisys U5000 UNIX SVR3 6.x, "make sys5r3" or "make sys5r3c"
  681. # ? for Unisys U6000 UNIX SVR4 1.x, "make sys5r4nx" or "make sys5r4nxnetc"
  682. #   for Unisys ... (also see Sperry)
  683. #   for Univel - see UnixWare
  684. #   for Unixware - see SCO
  685. # ? for Valid Scaldstar, "make valid"
  686. # ? for Whitechapel MG01 Genix 1.3, "make white"
  687. # ? for Zilog ZEUS 3.21, "make zilog"
  688. #
  689. # The result should be a runnable program called "wermit" in the current
  690. # directory.  After satisfactory testing, you can rename wermit to "kermit"
  691. # and put it where users can find it.
  692. #
  693. # To remove intermediate and object files, "make clean".
  694. # If your C compiler produces files with an extension other than "o",
  695. # then "make clean EXT=u", "make clean EXT=s", or whatever.
  696. #
  697. # To run lint on the source files, "make lintsun", "make lintbsd",
  698. # "make lints5", as appropriate.
  699. #
  700. # ******************************
  701. # SECURE TARGETS
  702. #
  703. # Beginning with C-Kermit 7.0, secure targets are included, as are the
  704. # source modules (ckuat*.[ch], ck_*.[ch]) needed to build them.  Secure
  705. # target names are like the regular names, but with security features
  706. # indicated by plus (+) signs.  The features are:
  707. #
  708. # krb4     MIT Kerberos IV
  709. # krb5     MIT Kerberos V
  710. # openssl  OpenSSL (SSL/TLS)
  711. # zlib     ZLIB compression for SSL/TLS
  712. # srp      Stanford Secure Remote Password
  713. # pam      PAM (pluggable authentication module)
  714. # shadow   Shadow Password File
  715. #
  716. # You can build these targets if you have the Kermit source files and the
  717. # required libraries (Kerberos, OpenSSL, SRP, etc) and header files.  See:
  718. #   http://www.columbia.edu/kermit/security.html 
  719. # for specific details regarding supported versions.
  720. #
  721. # NOTE: OpenSSL 0.9.6 and earlier are not compatible with 0.9.7 and later.
  722. # C-Kermit code is designed for 0.9.6.  To build with 0.9.7 you must add
  723. # -DOPENSSL_097 to avoid missing symbols in the DES library and to use the
  724. # entry points that were renamed to avoid conflict with Kerberos 4.
  725. #
  726. # The following symbols are used to specify library and header file locations
  727. # Redefine them to the values used on your system by:
  728. # . editing this file
  729. # . defining the values on the command line
  730. # . defining the values in the environment and use the -e option
  731. #
  732. K4LIB=-L/usr/kerberos/lib
  733. K4INC=-I/usr/kerberos/include
  734. K5LIB=-L/usr/kerberos/lib
  735. K5INC=-I/usr/kerberos/include
  736. SRPLIB=-L/usr/local/lib
  737. SRPINC=-I/usr/local/include
  738. SSLLIB=-L/usr/local/ssl/lib
  739. SSLINC=-I/usr/local/ssl/include
  740. #
  741. # aix41+krb5+krb4:                    IBM AIX 4.1 with Kerberos IV and V
  742. # aix43gcc+krb5+krb4:                 IBM AIX 4.3 built with gcc, ditto
  743. # aix43gcc+krb5+krb4+openssl:         Ditto, plus OpenSSL (SSL/TLS)
  744. # aix43gcc+openssl:                   IBM AIX 4.3 with OpenSSL
  745. # freebsd44+srp+openssl               FreeBSD 4.4 with SRP and OpenSSL
  746. # freebsd50+openssl                   FreeBSD 5.0 with OpenSSL
  747. # hpux1100+openssl:                   HP-UX 11.xx with OpenSSL
  748. # irix6x+krb5:                        IRIX 6.x with Kerberos V
  749. # irix65+krb5:                        etc etc...
  750. # linux+krb5:
  751. # linux+krb5+krb4:
  752. # linux+srp:
  753. # linux+srp+pam:
  754. # linux+srp+gmp:
  755. # linux+srp+gmp+no-des:
  756. # linux+srp+gmp-export:
  757. # linux+srp+gmp+pam:
  758. # linux+shadow+pam:
  759. # linux+openssl:
  760. # linux+openssl+shadow:
  761. # linux+openssl+zlib+shadow+pam:
  762. # linux+srp+openssl:
  763. # linux+krb5+krb4+srp:
  764. # linux+krb5+krb4+srp+openssl:
  765. # linux+krb5+krb4+openssl:
  766. # linux+krb5+krb4+openssl+shadow:
  767. # linux+krb5+krb4+openssl+zlib+shadow:
  768. # linux+krb5+krb4+srp-export:
  769. # linux+krb5+krb4+srp+pam:
  770. # linux+krb5+krb4+srp+openssl+pam-debug:
  771. # linux+krb5+krb4+srp+openssl+pam:
  772. # linux+krb5+krb4+srp+openssl+zlib+pam:
  773. # linux+krb5+openssl+zlib+shadow+pam:
  774. # openbsd30+ssl (includes OpenSSL):
  775. # redhat71, redhat72, redhat73, redhat80 (Krb5, OpenSSL, Showdow, PAM, Zlib)
  776. # sco32v500net+ssl:
  777. # sco32v505net+ssl:
  778. # solaris2x+krb4:  
  779. # solaris2xg+krb4:
  780. # solaris2xg+openssl+pam+shadow:
  781. # solaris2xg+openssl+zlib+pam+shadow:
  782. # solaris2xg+krb5+krb4+openssl+shadow:
  783. # solaris25+krb4:
  784. # solaris25g+krb4:
  785. # solaris26g+openssl:
  786. # solaris8g+openssl+zlib+pam+shadow:
  787. # solaris8g+krb4:
  788. # solaris9g+openssl+zlib+pam+shadow:
  789. # sunos41gcc+krb4:                    SunOS 4.1 built with gcc with Kerberos IV
  790. # sunos41gcc+openssl:                 SunOS 4.1 built with gcc with OpenSSL
  791. # sunos41gcc+krb4+openssl:            ...with Kerberos IV and OpenSSL
  792. # sunos41gcc+krb4+openssl+zlib:       ditto, plus ZLIB compression
  793. # sunos41gcc+krb4+srp+openssl+zlib:   ditto, plus SRP
  794. # sunos41gcc+srp+openssl+zlib:        
  795. # uw7ssl
  796. #
  797. ##############################################################################
  798. #
  799. # NOTES FOR V7 AND 2.X BSD (BASED ON VERSION 4E OF C-KERMIT, 1987):
  800. #
  801. # For Unix Version 7, several variables must be defined to the values
  802. # associated with your system.  BOOTNAME=/edition7 is the kernel image on
  803. # okstate's Perkin-Elmer 3230.  Others will probably be /unix.  PROCNAME=proc
  804. # is the name of the structure assigned to each process on okstate's system.
  805. # This may be "_proc" or some other variation.  See <sys/proc.h> for more
  806. # info on your systems name conventions.  NPROCNAME=nproc is the name of a
  807. # kernel variable that tells how many "proc" structures there are.  Again
  808. # this may be different on your system, but nproc will probably be somewhere.
  809. # The variable NPTYPE is the type of the nproc variable -- int, short, etc.
  810. # which can probably be gleaned from <sys/param.h>.  The definition of DIRECT
  811. # is a little more complicated.  If nlist() returns, for "proc" only, the
  812. # address of the array, then you should define DIRECT as it is below.  If
  813. # however, nlist() returns the address of a pointer to the array, then you
  814. # should give DIRECT a null definition (DIRECT= ).  The extern declaration in
  815. # <sys/proc.h> should clarify this for you.  If it is "extern struct proc
  816. # *proc", then you should NOT define DIRECT.  If it is "extern struct proc
  817. # proc[]", then you should probably define DIRECT as it is below.  See
  818. # ckuv7.hlp for further information.
  819. #
  820. # For 2.9 BSD, the makefile may use pcc rather than cc for compiles; that's
  821. # what the CC and CC2 definitions are for (the current version of the
  822. # makefile uses cc for both; this was tested in version 4E of C-Kermit and
  823. # worked OK on the DEC Pro 380, but all bets are off for version 5A).  2.9
  824. # support basically follows the 4.1 path.  Some 2.9 systems use "dir.h" for
  825. # the directory header file, others will need to change this to "ndir.h".
  826. #
  827. # The v7 and 2.9bsd versions assume I&D space on a PDP-11.  When building
  828. # C-Kermit for v7 on a PDP-11, you should probably add the -i option to the
  829. # link flags.  Without I&D space, overlays will be necessary (if available),
  830. # or code segment mapping (a`la Pro/Venix) if that's available.
  831. #
  832. # C-Kermit 5A (and 6.0?) can be built for 2.10 and 2.11BSD, using overlays,
  833. # but a separate makefile is used because this one is too big.
  834. #
  835. ##############################################################################
  836. #
  837. # V7-specific variables.
  838. # These are set up for Perkin-Elmer 3230 V7 Unix:
  839. #
  840. PROC=proc
  841. DIRECT=
  842. NPROC=nproc
  843. NPTYPE=int
  844. BOOTFILE=/edition7
  845. #
  846. # ( For old Tandy TRS-80 Model 16A or 6000 V7-based Xenix, use PROC=_proc,
  847. #   DIRECT=-DDIRECT, NPROC=_Nproc, NPTYPE=short, BOOTFILE=/xenix )
  848. #
  849. ###########################################################################
  850. #
  851. #  Compile and Link variables:
  852. #
  853. #  EXT is the extension (file type) for object files, normally o.
  854. #  See MINIX entry for what to do if another filetype must be used.
  855. #
  856. EXT=o
  857. #LNKFLAGS=
  858. SHAREDLIB=
  859. CC= cc
  860. CC2= cc
  861. MAKE= make
  862. SHELL=/bin/sh
  863.  
  864. ###########################################################################
  865. # SAMPLE INSTALLATION SCRIPT
  866. #
  867. # Modify to suit your own computer's file organization and permissions.  If
  868. # you don't have write access to the destination directories, "make install"
  869. # fails.  In most cases, a real installation also requires you to chown /
  870. # chgrp the Kermit binary for the UUCP lockfile and/or tty devices, and
  871. # perhaps also to chmod +s the corresponding permission fields.
  872. #
  873. # Default binary, man, and doc directories are supplied below.  You can
  874. # override them in your 'make' command.  Examples:
  875. #
  876. #   make install                                   # Accept defaults.
  877. #   make "INFODIR=/usr/share/lib/kermit" install   # Override INFODIR default.
  878. #
  879. # You can also build and install in one step, e.g.:
  880. #
  881. #   make solaris8 install
  882. #
  883. # If you use the 'install' target to install C-Kermit, it creates an
  884. # UNINSTALL script that can be used to uninstall it.
  885. #
  886. WERMIT = makewhat
  887. BINARY = wermit
  888. DESTDIR = 
  889. BINDIR = /usr/local/bin
  890. MANDIR = /usr/man/man1
  891. MANEXT = 1
  892. SRCDIR =
  893. INFODIR =
  894. CERTDIR =
  895.  
  896. TEXTFILES = COPYING.TXT ckcbwr.txt ckubwr.txt ckuins.txt ckccfg.txt \
  897.         ckcplm.txt ckermit.ini ckermod.ini ckermit70.txt ckermit80.txt
  898.  
  899. ALL = $(WERMIT)
  900.  
  901. all: $(ALL)
  902.  
  903. .c.o:
  904.     $(CC) $(CFLAGS) -DKTARGET=\"$(KTARGET)\" -c $<
  905.  
  906. #Clean up intermediate and object files
  907. clean:
  908.     @echo 'Removing object files...'
  909.     -rm -f ckcmai.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) ckuus2.$(EXT) \
  910. ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) ckcpro.$(EXT) ckcfns.$(EXT) \
  911. ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) ckucon.$(EXT) ckutio.$(EXT) \
  912. ckufio.$(EXT) ckudia.$(EXT) ckuscr.$(EXT) ckwart.$(EXT) ckuusx.$(EXT) \
  913. ckuusy.$(EXT) ckcnet.$(EXT) ckuus6.$(EXT) ckuus7.$(EXT) ckusig.$(EXT) \
  914. ckucns.$(EXT) ckcmdb.$(EXT) ckuath.$(EXT) ckctel.$(EXT) ckclib.$(EXT) \
  915. ckcuni.$(EXT) ck_crp.$(EXT) ck_ssl.$(EXT) ckupty.$(EXT) ckcftp.$(EXT) \
  916. ckcpro.c wart
  917.  
  918. # Install C-Kermit after building -- IMPORTANT: Read the instructions above
  919. # (SAMPLE INSTALLATION SCRIPT).  For SSL/TLS versions, ca_certs.pem file
  920. # should be installed in the appropriate place for your OpenSSL library, e.g.:
  921. #   cp ca_certs.pem /usr/local/ssl/
  922. #   cp ca_certs.pem /usr/share/ssl/
  923. #
  924. # To make sure 'man' notices the new source file and doesn't keep
  925. # showing the old formatted version, remove the old formatted version,
  926. # something like this:
  927. #        rm -f $(MANDIR)/../cat$(MANEXT)/kermit.$(MANEXT)
  928. # or this (which requires CATDIR to be defined):
  929. #        rm -f $(CATDIR)/kermit.$(MANEXT)
  930. #
  931. # As of C-Kermit 8.0.205 this target also builds an UNINSTALL script, and
  932. # so it might be too long for some old Bourne shells, in which case you can
  933. # use a different shell:
  934. #
  935. #   make SHELL=ksh install
  936. #   make SHELL=/bin/posix/sh install
  937. #
  938. install:
  939.     @echo Installing C-Kermit version $(CKVER)...;\
  940.     rm -f UNINSTALL;\
  941.     exec 3>./UNINSTALL;\
  942.     echo "# C-Kermit UNINSTALL script" >&3;\
  943.     echo "# `date`\n" >&3;\
  944.     echo "CKVER=$(CKVER)" >&3;\
  945.     echo "PrN Uninstalling C-Kermit version $(CKVER)..." >&3;\
  946.     echo DESTDIR=$(DESTDIR);\
  947.     if test -n "$(DESTDIR)"; then\
  948.         if test -d $(DESTDIR); then\
  949.             echo  "$(DESTDIR) exists...\n";\
  950.         else\
  951.             echo "Creating $(DESTDIR)...";\
  952.             DESTDIR=`echo $(DESTDIR) | sed 's!/*$$!!'`;\
  953.             mkdir $$DESTDIR  || exit 1;\
  954.         fi;\
  955.         chmod 755 $(DESTDIR) || exit 1;\
  956.     fi;\
  957.     echo BINARY=$(BINARY);\
  958.     if test -f $(BINARY); then\
  959.         ls -l $(BINARY);\
  960.     else\
  961.         echo "?$(BINARY) not found";\
  962.         exit 1;\
  963.     fi;\
  964.     if test -z "$(DESTDIR)$(BINDIR)"; then\
  965.         echo "Binary directory not specified";\
  966.         exit 1;\
  967.     fi;\
  968.     if test -d $(DESTDIR)$(BINDIR); then\
  969.         echo  "$(DESTDIR)$(BINDIR) exists...";\
  970.     else\
  971.         echo "Creating $(DESTDIR)$(BINDIR)/...";\
  972.         mkdir     $(DESTDIR)$(BINDIR) || exit 1;\
  973.         chmod 755 $(DESTDIR)$(BINDIR);\
  974.     fi;\
  975.     cp $(BINARY) $(DESTDIR)$(BINDIR)/kermit || exit 1;\
  976.     chmod 755    $(DESTDIR)$(BINDIR)/kermit || exit 1;\
  977.     rm -f        $(DESTDIR)$(BINDIR)/kermit-sshsub;\
  978.     ln -s        $(DESTDIR)$(BINDIR)/kermit\
  979.              $(DESTDIR)$(BINDIR)/kermit-sshsub || exit 1;\
  980.     echo 'set flag=f\nPrC Removing binaries' >&3;\
  981.     echo "RmF $(DESTDIR)$(BINDIR)/kermit-sshsub" >&3;\
  982.     echo "RmF $(DESTDIR)$(BINDIR)/kermit" >&3;\
  983.     if test -f ckermit.ini; then\
  984.         echo "#!$(DESTDIR)$(BINDIR)/kermit" >\
  985.             $(DESTDIR)$(BINDIR)/_tmp.ini;\
  986.         cat ckermit.ini >> $(DESTDIR)$(BINDIR)/_tmp.ini;\
  987.         mv $(DESTDIR)$(BINDIR)/_tmp.ini\
  988.            $(DESTDIR)$(BINDIR)/ckermit.ini;\
  989.         chmod 755 $(DESTDIR)$(BINDIR)/ckermit.ini;\
  990.         echo "RmF $(DESTDIR)$(BINDIR)/ckermit.ini" >&3;\
  991.     fi;\
  992.     echo;\
  993.     echo 'EfM' >&3;\
  994.     echo "Kermit binary installed:";\
  995.     ls -l $(DESTDIR)$(BINDIR)/kermit\
  996.           $(DESTDIR)$(BINDIR)/kermit-sshsub\
  997.           $(DESTDIR)$(BINDIR)/ckermit.ini;\
  998.     echo;\
  999.     echo " WARNING: If C-Kermit is to be used for dialing out,";\
  1000.     echo " you must change its owner and group and permissions";\
  1001.     echo " to match the 'cu' program.  See the ckuins.txt file";\
  1002.     echo " for details.";\
  1003.     echo;\
  1004.     echo MANDIR=$(MANDIR);\
  1005.     if test -n "$(MANDIR)"; then\
  1006.         if test -d $(MANDIR); then\
  1007.             echo  "$(MANDIR) exists...";\
  1008.         else\
  1009.             echo "Creating $(MANDIR)...";\
  1010.             mkdir $(MANDIR) || exit 1;\
  1011.             chmod 755 $(MANDIR) || exit 1;\
  1012.         fi;\
  1013.         echo "Installing man page...";\
  1014.         rm -f $(MANDIR)/kermit.$(MANEXT);\
  1015.         cp    ckuker.nr $(MANDIR)/kermit.$(MANEXT) || exit 1;\
  1016.         chmod 644       $(MANDIR)/kermit.$(MANEXT) || exit 1;\
  1017.         echo 'set flag=f\nPrC Removing man pages' >&3;\
  1018.         echo "RmF $(MANDIR)/kermit.$(MANEXT)" >&3;\
  1019.         echo 'EfM' >&3;\
  1020.         echo;\
  1021.     else\
  1022.         echo "Not installing man page!\n";\
  1023.     fi;\
  1024.     echo CERTDIR=$(CERTDIR);\
  1025.     if test -n "$(CERTDIR)"; then\
  1026.         if test -f ca_certs.pem; then\
  1027.             if test -d $(CERTDIR); then\
  1028.                 echo  "$(CERTDIR) exists...";\
  1029.             else\
  1030.                 echo "Creating $(CERTDIR)...";\
  1031.                 mkdir $(CERTDIR) || exit 1;\
  1032.                 chmod 755 $(CERTDIR) || exit 1;\
  1033.             fi;\
  1034.             echo "Installing certificates file...";\
  1035.             cp ca_certs.pem $(CERTDIR) || exit 1;\
  1036.             echo 'set flag=f' >&3;\
  1037.             echo 'PrC Removing certificates file' >&3;\
  1038.             echo "RmF $(CERTDIR)/ca_certs.pem" >&3;\
  1039.             echo 'EfM' >&3;\
  1040.             echo;\
  1041.         fi;\
  1042.     else\
  1043.         echo "Not installing certificates file!\n";\
  1044.     fi;\
  1045.     echo SRCDIR=$(DESTDIR)$(SRCDIR);\
  1046.     if test -n "$(SRCDIR)"; then\
  1047.         echo "Installing source files...";\
  1048.         if test -d $(DESTDIR)$(SRCDIR); then\
  1049.             echo  "$(DESTDIR)$(SRCDIR) exists...";\
  1050.         else\
  1051.             echo "Creating $(DESTDIR)$(SRCDIR)/...";\
  1052.             mkdir     $(DESTDIR)$(SRCDIR) || exit 1;\
  1053.             chmod 755 $(DESTDIR)$(SRCDIR);\
  1054.         fi;\
  1055.         echo "Copying source files to $(DESTDIR)$(SRCDIR)...";\
  1056.         echo 'set flag=f\nPrC Removing source files' >&3;\
  1057.         for TextFile in COPYING.TXT ck[cuw_]*.[cwh] makefile; do\
  1058.             cp $$TextFile $(DESTDIR)$(SRCDIR)/ && echo ".\c";\
  1059.             echo "RmF $(DESTDIR)$(SRCDIR)/$$TextFile" >&3;\
  1060.         done; echo;\
  1061.         echo 'EfM' >&3;\
  1062.         ( cd $(DESTDIR)$(SRCDIR)/ &&\
  1063.         ls -l COPYING.TXT ck[cuw_]*.[cwh] makefile );echo;\
  1064.     else\
  1065.         echo "Not installing source code!\n";\
  1066.     fi;\
  1067.     echo INFODIR=$(DESTDIR)$(INFODIR);\
  1068.     if test -n "$(INFODIR)"; then\
  1069.         echo "Installing info files...";\
  1070.         if test -d $(DESTDIR)$(INFODIR); then\
  1071.             echo  "$(DESTDIR)$(INFODIR) exists...";\
  1072.         else\
  1073.             echo "Creating $(DESTDIR)$(INFODIR)/...";\
  1074.             mkdir     $(DESTDIR)$(INFODIR) || exit 1;\
  1075.             chmod 755 $(DESTDIR)$(INFODIR);\
  1076.         fi;\
  1077.         echo "Copying text files to $(DESTDIR)$(INFODIR)...";\
  1078.         echo 'set flag=f\nPrC Removing text files' >&3;\
  1079.         FileCopyList='';\
  1080.         for TextFile in $(TEXTFILES); do\
  1081.             test -f $$TextFile || continue;\
  1082.             cp $$TextFile $(DESTDIR)$(INFODIR) && echo ".\c" &&\
  1083.             FileCopyList="$$FileCopyList $$TextFile";\
  1084.             echo "RmF $(DESTDIR)$(INFODIR)/$$TextFile" >&3;\
  1085.         done; echo;\
  1086.         echo 'EfM' >&3;\
  1087.         ( cd $(DESTDIR)$(INFODIR)/ && chmod  644   $$FileCopyList );\
  1088.         ( cd $(DESTDIR)$(INFODIR)/ && pwd && ls -l $$FileCopyList );\
  1089.     else\
  1090.         echo "Not installing text files!\n";\
  1091.     fi;\
  1092.     echo "set flag=d\nPrN Removing empty dirs..." >&3;\
  1093.     echo "RmD $(DESTDIR)$(BINDIR)" >&3;\
  1094.     echo "RmD $(DESTDIR)$(SRCDIR)" >&3;\
  1095.     echo "RmD $(DESTDIR)$(INFODIR)" >&3;\
  1096.     echo "RmD $(CERTDIR)" >&3;\
  1097.     echo "RmD $(MANDIR)" >&3;\
  1098.     echo "RmD $(DESTDIR)" >&3;\
  1099.     echo "EfM" >&3;\
  1100.     echo "PrN C-Kermit version $(CKVER) is uninstalled!" >&3;\
  1101.     echo C-Kermit version $(CKVER) installed!
  1102.  
  1103. # UN-Install C-Kermit after building
  1104. # Please to not remove the extra blanks before and after '{}' within the 
  1105. # functions. You would get syntax errors for some older Bourne shells! Best is 
  1106. # you don't change or remove anything.
  1107. #
  1108. uninstall:
  1109.     @if test ! -f UNINSTALL; then\
  1110.         echo "?C-Kermit UNINSTALL data file not found!";\
  1111.         exit 1;\
  1112.     fi; \
  1113.     X=`grep '^CKVER='$(CKVER)'$$' ./UNINSTALL || :`;\
  1114.     if test -z "$$X"; then\
  1115.         echo "?UNINSTALL file is not for C-Kermit version $(CKVER)";\
  1116.         exit 2;\
  1117.     fi;\
  1118.     PrN () { echo "$$*"; };\
  1119.     PrC () { echo "$$* \c"; };\
  1120.     RmF () { test -f "$$1" && rm -f "$$1" && echo ".\c" && flag=F ; };\
  1121.     RmD () { \
  1122.     dir=$$1;\
  1123.     while test -d "$$dir"; do\
  1124.         rmdir "$$dir" 2>&- || return && echo "$$dir" && flag=D;\
  1125.         dir=`echo "$$dir" | sed 's!/[^/]*/*$$!!'`;\
  1126.     done; \
  1127.     };\
  1128.     EfM () { \
  1129.     case "$$flag" in\
  1130.         f) echo "- Nothing to remove!";;\
  1131.         d) echo "Nothing to remove!";;\
  1132.         F) echo " done";;\
  1133.         D) echo "done";;\
  1134.     esac; \
  1135.     };\
  1136.     while read Act Args; do\
  1137.         case $$Act in\
  1138.             EfM) EfM;;\
  1139.             RmD) RmD $$Args;;\
  1140.             RmF) RmF $$Args;;\
  1141.             PrN) PrN $$Args;;\
  1142.             PrC) PrC $$Args;;\
  1143.             set) eval $$Args;;\
  1144.         esac;\
  1145.     done < ./UNINSTALL
  1146.  
  1147. makewhat:
  1148.     @echo 'make what?  You must tell which platform to make C-Kermit for.'
  1149.     @echo Examples: make linux, make hpux1100, make aix43, make solaris8.
  1150.     @echo Please read the comments at the beginning of the makefile.
  1151.  
  1152. ###########################################################################
  1153. #
  1154. # Dependencies Section:
  1155.  
  1156. # Normal version
  1157.  
  1158. wermit:    ckcmai.$(EXT) ckclib.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) ckuus2.$(EXT) \
  1159.         ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) ckuus6.$(EXT) \
  1160.         ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) ckcpro.$(EXT) \
  1161.         ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) \
  1162.         ckucon.$(EXT) ckutio.$(EXT) ckufio.$(EXT) ckudia.$(EXT) \
  1163.         ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) \
  1164.         ckcuni.$(EXT) ckupty.$(EXT) ckcftp.$(EXT)
  1165.     $(CC2) $(LNKFLAGS) -o wermit \
  1166.         ckcmai.$(EXT) ckclib.$(EXT) ckutio.$(EXT) ckufio.$(EXT) \
  1167.         ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) \
  1168.         ckcpro.$(EXT) ckucmd.$(EXT) ckuus2.$(EXT) ckuus3.$(EXT) \
  1169.         ckuus4.$(EXT) ckuus5.$(EXT) ckuus6.$(EXT) ckuus7.$(EXT) \
  1170.         ckuusx.$(EXT) ckuusy.$(EXT) ckuusr.$(EXT) ckucon.$(EXT) \
  1171.         ckudia.$(EXT) ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) \
  1172.         ckusig.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) ckcftp.$(EXT) \
  1173.         $(LIBS)
  1174.  
  1175. # Version with CONNECT module that uses select() instead of fork()
  1176.  
  1177. xermit:    ckcmai.$(EXT) ckclib.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) ckuus2.$(EXT) \
  1178.         ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) ckuus6.$(EXT) \
  1179.         ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) ckcpro.$(EXT) \
  1180.         ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) \
  1181.         ckucns.$(EXT) ckutio.$(EXT) ckufio.$(EXT) ckudia.$(EXT) \
  1182.         ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) \
  1183.         ckcuni.$(EXT) ckupty.$(EXT) ckcftp.$(EXT) ckuath.$(EXT) \
  1184.         ck_crp.$(EXT) ck_ssl.$(EXT)
  1185.     $(CC2) $(LNKFLAGS) -o wermit \
  1186.         ckcmai.$(EXT) ckclib.$(EXT) ckutio.$(EXT) ckufio.$(EXT) \
  1187.         ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) \
  1188.         ckcpro.$(EXT) ckucmd.$(EXT) ckuus2.$(EXT) ckuus3.$(EXT) \
  1189.         ckuus4.$(EXT) ckuus5.$(EXT) ckuus6.$(EXT) ckuus7.$(EXT) \
  1190.         ckuusx.$(EXT) ckuusy.$(EXT) ckuusr.$(EXT) ckucns.$(EXT) \
  1191.         ckudia.$(EXT) ckuscr.$(EXT) ckcnet.$(EXT) ckusig.$(EXT) \
  1192.         ckctel.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) ckcftp.$(EXT) \
  1193.         ckuath.$(EXT) ck_crp.$(EXT) ck_ssl.$(EXT) $(LIBS)
  1194.  
  1195. # Malloc Debugging version
  1196.  
  1197. mermit:    ckcmdb.$(EXT) ckcmai.$(EXT) ckclib.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) \
  1198.         ckuus2.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) \
  1199.         ckuus6.$(EXT) ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) \
  1200.         ckcpro.$(EXT) ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) \
  1201.         ckuxla.$(EXT) ckucon.$(EXT) ckutio.$(EXT) ckufio.$(EXT) \
  1202.         ckudia.$(EXT) ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) \
  1203.         ckusig.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) ckcftp.$(EXT)
  1204.     $(CC2) $(LNKFLAGS) -o mermit ckcmdb.$(EXT) ckclib.$(EXT) ckcmai.$(EXT)\
  1205.         ckutio.$(EXT) ckufio.$(EXT) ckcfns.$(EXT) ckcfn2.$(EXT) \
  1206.         ckcfn3.$(EXT) ckuxla.$(EXT) ckcpro.$(EXT) ckucmd.$(EXT) \
  1207.         ckuus2.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) \
  1208.         ckuus6.$(EXT) ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) \
  1209.         ckuusr.$(EXT) ckucon.$(EXT) ckudia.$(EXT) ckuscr.$(EXT) \
  1210.         ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) ckcuni.$(EXT) \
  1211.         ckupty.$(EXT) ckcftp.$(EXT) $(LIBS)
  1212.  
  1213. # Kerberized Version - Subject to USA export restrictions.
  1214.  
  1215. # NOTE: We don't use this any more -- As of 15 Feb 2003, the "xermit"
  1216. # target is used for both secure and regular version.
  1217.  
  1218. krbmit:    ckcmai.$(EXT) ckclib.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) ckuus2.$(EXT) \
  1219.         ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) ckuus6.$(EXT) \
  1220.         ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) ckcpro.$(EXT) \
  1221.         ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) \
  1222.         ckucns.$(EXT) ckutio.$(EXT) ckufio.$(EXT) ckudia.$(EXT) \
  1223.         ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) \
  1224.         ckuath.$(EXT) ck_crp.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) \
  1225.         ckcftp.$(EXT) ck_ssl.$(EXT)
  1226.     $(CC2) $(LNKFLAGS) -o krbmit ckcmai.$(EXT) ckclib.$(EXT) \
  1227.         ckutio.$(EXT) ckufio.$(EXT) ckcfns.$(EXT) ckcfn2.$(EXT) \
  1228.         ckcfn3.$(EXT) ckuxla.$(EXT) ckcpro.$(EXT) ckucmd.$(EXT) \
  1229.         ckuus2.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) \
  1230.         ckuus6.$(EXT) ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) \
  1231.         ckuusr.$(EXT) ckucns.$(EXT) ckudia.$(EXT) ckuscr.$(EXT) \
  1232.         ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) ckuath.$(EXT) \
  1233.         ck_crp.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) ckcftp.$(EXT) \
  1234.         ck_ssl.$(EXT) $(LIBS)
  1235.  
  1236. krbmit-debug:    ckcmai.$(EXT) ckclib.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) \
  1237.         ckuus2.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) \
  1238.         ckuus6.$(EXT) ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) \
  1239.         ckcpro.$(EXT) ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) \
  1240.         ckuxla.$(EXT) ckucns.$(EXT) ckutio.$(EXT) ckufio.$(EXT) \
  1241.         ckudia.$(EXT) ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) \
  1242.         ckusig.$(EXT) ckuath.$(EXT) ck_crp.$(EXT) ckcuni.$(EXT) \
  1243.         ckupty.$(EXT) ck_ssl.$(EXT) ckcmdb.$(EXT) ckcftp.$(EXT)
  1244.     $(CC2) $(LNKFLAGS) -o krbmit ckcmdb.$(EXT) ckcmai.$(EXT) \
  1245.         ckclib.$(EXT) ckutio.$(EXT) ckufio.$(EXT) ckcfns.$(EXT) \
  1246.         ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) ckcpro.$(EXT) \
  1247.         ckucmd.$(EXT) ckuus2.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) \
  1248.         ckuus5.$(EXT) ckuus6.$(EXT) ckuus7.$(EXT) ckuusx.$(EXT) \
  1249.         ckuusy.$(EXT) ckuusr.$(EXT) ckucns.$(EXT) ckudia.$(EXT) \
  1250.         ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) \
  1251.         ckuath.$(EXT) ck_crp.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) \
  1252.         ckcftp.$(EXT) ck_ssl.$(EXT) $(LIBS)
  1253.  
  1254. # SRP(TM) Version - Subject to USA export restrictions.
  1255.  
  1256. srpmit:    ckcmai.$(EXT) ckclib.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) ckuus2.$(EXT) \
  1257.         ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) ckuus6.$(EXT) \
  1258.         ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) ckcpro.$(EXT) \
  1259.         ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) \
  1260.         ckucns.$(EXT) ckutio.$(EXT) ckufio.$(EXT) ckudia.$(EXT) \
  1261.         ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) \
  1262.         ckuath.$(EXT) ck_crp.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) \
  1263.         ckcftp.$(EXT) ck_ssl.$(EXT)
  1264.     $(CC2) $(LNKFLAGS) -o srpmit ckcmai.$(EXT) ckclib.$(EXT) \
  1265.         ckutio.$(EXT) ckufio.$(EXT) ckcfns.$(EXT) ckcfn2.$(EXT) \
  1266.         ckcfn3.$(EXT) ckuxla.$(EXT) ckcpro.$(EXT) ckucmd.$(EXT) \
  1267.         ckuus2.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) \
  1268.         ckuus6.$(EXT) ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) \
  1269.         ckuusr.$(EXT) ckucns.$(EXT) ckudia.$(EXT) ckuscr.$(EXT) \
  1270.         ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) ckuath.$(EXT) \
  1271.         ck_crp.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) ck_ssl.$(EXT) \
  1272.         ckcftp.$(EXT) $(LIBS)
  1273.  
  1274. # Kerberized Version - Not subject to USA export restrictions.
  1275.  
  1276. krbmit-export:    ckcmai.$(EXT) \
  1277.         ckclib.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) ckuus2.$(EXT) \
  1278.         ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) ckuus6.$(EXT) \
  1279.         ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) ckcpro.$(EXT) \
  1280.         ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) \
  1281.         ckucns.$(EXT) ckutio.$(EXT) ckufio.$(EXT) ckudia.$(EXT) \
  1282.         ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) \
  1283.         ckuath.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) ckcftp.$(EXT)
  1284.     $(CC2) $(LNKFLAGS) -o krbmit-export ckcmai.$(EXT) ckclib.$(EXT) \
  1285.         ckutio.$(EXT) ckufio.$(EXT) ckcfns.$(EXT) ckcfn2.$(EXT) \
  1286.         ckcfn3.$(EXT) ckuxla.$(EXT) ckcpro.$(EXT) ckucmd.$(EXT) \
  1287.         ckuus2.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) \
  1288.         ckuus6.$(EXT) ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) \
  1289.         ckuusr.$(EXT) ckucns.$(EXT) ckudia.$(EXT) ckuscr.$(EXT) \
  1290.         ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) ckuath.$(EXT) \
  1291.         ckcuni.$(EXT) ckupty.$(EXT) ckcftp.$(EXT) $(LIBS)
  1292.  
  1293. # SRP(TM) Version - Not subject to USA export restrictions.
  1294.  
  1295. srpmit-export:    ckcmai.$(EXT) \
  1296.         ckclib.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) ckuus2.$(EXT) \
  1297.         ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) ckuus6.$(EXT) \
  1298.         ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) ckcpro.$(EXT) \
  1299.         ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) \
  1300.         ckucns.$(EXT) ckutio.$(EXT) ckufio.$(EXT) ckudia.$(EXT) \
  1301.         ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) \
  1302.         ckuath.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) ckcftp.$(EXT)
  1303.     $(CC2) $(LNKFLAGS) -o srpmit-export ckcmai.$(EXT) ckclib.$(EXT) \
  1304.         ckutio.$(EXT) ckufio.$(EXT) ckcfns.$(EXT) ckcfn2.$(EXT) \
  1305.         ckcfn3.$(EXT) ckuxla.$(EXT) ckcpro.$(EXT) ckucmd.$(EXT) \
  1306.         ckuus2.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) \
  1307.         ckuus6.$(EXT) ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) \
  1308.         ckuusr.$(EXT) ckucns.$(EXT) ckudia.$(EXT) ckuscr.$(EXT) \
  1309.         ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) ckuath.$(EXT) \
  1310.         ckcuni.$(EXT) ckupty.$(EXT) ckcftp.$(EXT) $(LIBS)
  1311.  
  1312. ###########################################################################
  1313. # man page...
  1314. #
  1315. ckuker.nr:
  1316.     @echo This target is obsolete.
  1317.     @echo The ckuker.nr file no longer needs any preprocessing.
  1318.  
  1319. ###########################################################################
  1320. # Dependencies for each module...
  1321. #
  1322. ckcmai.$(EXT): ckcmai.c ckcker.h ckcdeb.h ckcsym.h ckcasc.h ckcnet.h ckcsig.h \
  1323.         ckuusr.h ckctel.h ckclib.h
  1324.  
  1325. ckclib.$(EXT): ckclib.c ckclib.h ckcdeb.h ckcasc.h ckcsym.h
  1326.  
  1327. ckcpro.$(EXT): ckcpro.c ckcker.h ckcdeb.h ckcsym.h ckcasc.h ckclib.h
  1328.  
  1329. ckcpro.c: ckcpro.w wart ckcdeb.h ckcsym.h ckcasc.h ckcker.h ckcnet.h ckctel.h \
  1330.      ckclib.h
  1331.     ./wart ckcpro.w ckcpro.c
  1332.  
  1333. ckcfns.$(EXT): ckcfns.c ckcker.h ckcdeb.h ckcsym.h ckcasc.h ckcxla.h ckcuni.h \
  1334.         ckuxla.h ckclib.h ckcnet.h
  1335.  
  1336. ckcfn2.$(EXT): ckcfn2.c ckcker.h ckcdeb.h ckcsym.h ckcasc.h ckcxla.h \
  1337.         ckuxla.h ckctel.h ckclib.h ckcnet.h ckcuni.h
  1338.  
  1339. ckcfn3.$(EXT): ckcfn3.c ckcker.h ckcdeb.h ckcsym.h ckcasc.h ckcxla.h \
  1340.         ckuxla.h ckclib.h ckcuni.h
  1341.  
  1342. ckuxla.$(EXT): ckuxla.c ckcker.h ckcsym.h ckcdeb.h ckcxla.h ckuxla.h ckclib.h \
  1343.          ckcuni.h
  1344.  
  1345. ckcuni.$(EXT): ckcuni.c ckcdeb.h ckcker.h ckucmd.h ckcuni.h ckcxla.h ckuxla.h
  1346.  
  1347. ckuusr.$(EXT): ckuusr.c ckucmd.h ckcker.h ckuusr.h ckcsym.h ckcdeb.h ckcxla.h \
  1348.         ckuxla.h ckcasc.h ckcnet.h ckctel.h ckclib.h ckcuni.h
  1349.  
  1350. ckuus2.$(EXT): ckuus2.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcxla.h ckuxla.h \
  1351.         ckcasc.h ckcnet.h ckcsym.h ckctel.h ckclib.h ckcuni.h
  1352.  
  1353. ckuus3.$(EXT): ckuus3.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcxla.h ckuxla.h \
  1354.         ckcasc.h ckcnet.h ckcsym.h ckctel.h ckclib.h ckcuni.h
  1355.  
  1356. ckuus4.$(EXT): ckuus4.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcxla.h ckuxla.h \
  1357.         ckcasc.h ckcnet.h ckuver.h ckcsym.h ckctel.h ckclib.h ckcuni.h
  1358.  
  1359. ckuus5.$(EXT): ckuus5.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcasc.h ckcnet.h \
  1360.          ckcsym.h ckctel.h ckclib.h ckcxla.h ckuxla.h ckcuni.h
  1361.  
  1362. ckuus6.$(EXT): ckuus6.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcasc.h ckcnet.h \
  1363.          ckcsym.h ckctel.h ckclib.h
  1364.  
  1365. ckuus7.$(EXT): ckuus7.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcxla.h ckuxla.h \
  1366.         ckcasc.h ckcnet.h ckcsym.h ckctel.h ckclib.h ckcuni.h
  1367.  
  1368. ckuusx.$(EXT): ckuusx.c ckcker.h ckuusr.h ckcdeb.h ckcasc.h ckcsym.h \
  1369.         ckcsig.h ckcnet.h ckctel.h ckclib.h ckcxla.h ckuxla.h ckcuni.h
  1370.  
  1371. ckuusy.$(EXT): ckuusy.c ckcker.h ckcdeb.h ckcasc.h ckcnet.h ckcsym.h ckctel.h \
  1372.          ckclib.h
  1373.  
  1374. ckucmd.$(EXT): ckucmd.c ckcasc.h ckucmd.h ckcdeb.h ckcsym.h ckctel.h ckclib.h
  1375.  
  1376. ckufio.$(EXT): ckufio.c ckcdeb.h ckuver.h ckcsym.h ckclib.h \
  1377.         ckcxla.h ckuxla.h ckcuni.h
  1378.  
  1379. ckutio.$(EXT): ckutio.c ckcdeb.h ckcnet.h ckuver.h ckcsym.h ckctel.h ckclib.h
  1380.  
  1381. ckucon.$(EXT): ckucon.c ckcker.h ckcdeb.h ckcasc.h ckcnet.h ckcsym.h ckctel.h \
  1382.          ckclib.h
  1383.  
  1384. ckucns.$(EXT): ckucns.c ckcker.h ckcdeb.h ckcasc.h ckcnet.h ckcsym.h ckctel.h \
  1385.          ckclib.h ckcxla.h ckuxla.h ckcuni.h
  1386.  
  1387. ckcnet.$(EXT): ckcnet.c ckcdeb.h ckcker.h ckcnet.h ckcsym.h ckcsig.h ckctel.h \
  1388.          ckclib.h
  1389.  
  1390. ckctel.$(EXT): ckcsym.h ckcdeb.h ckcker.h ckcnet.h ckctel.h ckclib.h
  1391.  
  1392. wart: ckwart.$(EXT)
  1393.     $(CC) $(LNKFLAGS) -o wart ckwart.$(EXT) $(LIBS)
  1394.  
  1395. ckcmdb.$(EXT): ckcmdb.c ckcdeb.h ckcsym.h ckclib.h
  1396.  
  1397. ckwart.$(EXT): ckwart.c
  1398.  
  1399. ckudia.$(EXT): ckudia.c ckcker.h ckcdeb.h ckucmd.h ckcasc.h ckcsym.h ckcsig.h \
  1400.         ckcnet.h ckctel.h ckclib.h
  1401.  
  1402. ckuscr.$(EXT): ckuscr.c ckcker.h ckcdeb.h ckcasc.h ckcsym.h ckcsig.h \
  1403.         ckcnet.h ckctel.h ckclib.h
  1404.  
  1405. ckusig.$(EXT): ckusig.c ckcasc.h ckcdeb.h ckcker.h ckcnet.h ckuusr.h \
  1406.         ckcsig.h ckctel.h ckclib.h
  1407.  
  1408. ckcftp.$(EXT): ckcftp.c ckcdeb.h ckcasc.h ckcker.h ckucmd.h ckuusr.h \
  1409.         ckcnet.h ckctel.h ckcxla.h ckuxla.h ckcuni.h
  1410.  
  1411. ckupty.$(EXT): ckupty.c ckupty.h ckcdeb.h
  1412.  
  1413. ckuath.$(EXT): ckuath.c ckcdeb.h ckucmd.h ckuath.h ckuat2.h ckctel.h \
  1414.          ckclib.h ckcnet.h
  1415.  
  1416. ck_crp.$(EXT): ck_crp.c ckcdeb.h ckcnet.h ckuath.h ckclib.h
  1417.  
  1418. ck_ssl.$(EXT): ck_ssl.c ckcdeb.h ckucmd.h ckuath.h ckuat2.h ckctel.h \
  1419.          ckclib.h ck_ssl.h
  1420.  
  1421. ###########################################################################
  1422. #
  1423. # Entries to make C-Kermit for specific systems.
  1424. #
  1425. # Put the ones that need short makefiles first.
  1426.  
  1427. #Apollo Aegis 9.x.  Includes TCP/IP support.
  1428. #You can also add processor-dependent optimization switches like -M570.
  1429. aegis:
  1430.     @echo Making C-Kermit $(CKVER) for Apollo Aegis 9.x...
  1431.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  1432.     "CFLAGS= -DBSD4 -DTCPSOCKET -DNOCSETS -DCK_CURSES -O $(KFLAGS)" \
  1433.     "LIBS = -lcurses -ltermcap"
  1434.  
  1435. #Apple Mac II, A/UX pre-3.0
  1436. #Warning, if "send *" doesn't work, try the auxufs makefile entry below.
  1437. aux:
  1438.     @echo Making C-Kermit $(CKVER) for Macintosh A/UX...
  1439.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  1440.     "CFLAGS = -DAUX -DTCPSOCKET $(KFLAGS) -i -O" "LNKFLAGS = -i"
  1441.  
  1442. #Apple Mac II, A/UX pre-3.0, compiled with gcc
  1443. auxgcc:
  1444.     @echo Making C-Kermit $(CKVER) for Macintosh A/UX...
  1445.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  1446.     "CFLAGS = -DAUX -DTCPSOCKET -traditional $(KFLAGS) -i -O" \
  1447.     "LNKFLAGS = " "CC = gcc" "CC2 = gcc"
  1448.  
  1449. #Apple Mac II, A/UX, pre-3.0, but with ufs file volumes, uses <dirent.h>.
  1450. auxufs:
  1451.     @echo Making C-Kermit $(CKVER) for Macintosh A/UX...
  1452.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  1453.     "CFLAGS = -DAUX -DTCPSOCKET -DDIRENT $(KFLAGS) -i -O" "LNKFLAGS = -i"
  1454.  
  1455. #Apple Mac II, A/UX 3.0, compiled with gcc
  1456. aux3gcc:
  1457.     @echo Making C-Kermit $(CKVER) for Macintosh A/UX 3.0...
  1458.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  1459.     "CFLAGS = -DAUX -DHDBUUCP -DLFDEVNO -DTCPSOCKET -DDIRENT $(KFLAGS)" \
  1460.     "LNKFLAGS = -s" "LIBS = $(LIBS)" \
  1461.     "CC=gcc -pipe -traditional" "CC2=gcc -pipe -traditional"
  1462.  
  1463. #Apple Mac II, A/UX 3.0, compiled with gcc, uses curses
  1464. aux3cgcc:
  1465.     @echo Making C-Kermit $(CKVER) for Macintosh A/UX 3.0...
  1466.     $(MAKE) "MAKE=$(MAKE)" aux3gcc KTARGET=$${KTARGET:-$(@)} \
  1467.     "KFLAGS=$(KFLAGS) -DCK_CURSES" "LIBS = -lcurses $(LIBS)"
  1468.  
  1469. # Tenon MachTen, tested on Apple Powerbook with MachTen 2.1.1.D.
  1470. # NOTE: This doesn't do anything about UUCP.  It only works if /usr/spool/uucp
  1471. # has permission of 777, and dialout device is world read/writeable.
  1472. machten:
  1473.     @echo Making C-Kermit $(CKVER) for MachTen...
  1474.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1475.     "CFLAGS= -DBSD43 -DTCPSOCKET -DSIG_V -DNDGPWNAM -DCK_CURSES -O \
  1476.     $(KFLAGS)"  "LIBS=-lcurses -ltermcap"
  1477.  
  1478. #Bell Labs Research UNIX V10
  1479. #Can't add TCP/IP because there is no sockets library.  It would have to
  1480. #be done using streams, but there is no code in C-Kermit for that.
  1481. #Remove -DNOJC if desired (if your system has csh, ksh, or bash).
  1482. bellv10:
  1483.     @echo Making C-Kermit $(CKVER) for Bell Labs Research UNIX V10...
  1484.     $(MAKE) wermit KTARGET=$${KTARGET-$(@)} \
  1485.     "CFLAGS= -DBELLV10 -DBSD4 -DNDIR -DNOJC -DNOSYSIOCTLH -DNOSETREU \
  1486.     -DNOCSETS -MINIDIAL $(KFLAGS)"
  1487.  
  1488. # WARNING: The early BSD entries do not build in version 7.0 with the stock
  1489. # BSD compiler: "Too many defines".  Unless you can rebuild cpp to have more
  1490. # space for defines, these builds must be accomplished by:
  1491. # copying the /usr/include tree to someplace else, preprocessing there with cc
  1492. # -E -I./include or whatever (plus all the same -D's, adding any necessary
  1493. # -U/-D to override the architecture)), renaming the the resulting files back
  1494. # to their original names, bringing them back to the original BSD system, and
  1495. # running the make target there.  This technique was used for 4.2 and 4.3 BSD
  1496. # on a VAX in C-Kermit 7.0 (later, cpp on that machine was rebuilt to allow
  1497. # more symbols, so the C-Kermit 8.0 build proceeds normally).
  1498.  
  1499. #Berkeley Unix 4.1
  1500. bsd41:
  1501.     @echo Making C-Kermit $(CKVER) for 4.1BSD...
  1502.     $(MAKE) wermit KTARGET=$${KTARGET-$(@)} \
  1503.     "CFLAGS= -DBSD41" "LIBS = -ljobs"
  1504.  
  1505. #Berkeley 4.2, 4.3, also Ultrix-32 1.x, 2.x, 3.x, many others
  1506. # Add -O, -s, etc, if they work.
  1507. # If you have a version of BSD but signal() is void rather than int,
  1508. # "make bsd KFLAGS=-DSIG_V".
  1509. bsd42:
  1510.     @echo Making C-Kermit $(CKVER) for 4.2BSD...
  1511.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  1512.     "CFLAGS= -DBSD4 -DTCPSOCKET -DNOREALPATH -DNOTIMEH -DNOIKSD \
  1513.     -DCK_CURSES -DSYSTIMEBH -DNOPUTENV -DNOANSI -DBIGBUFOK -DBSD42HACK \
  1514.     $(KFLAGS)" "LIBS=-lcurses -ltermcap $(LIBS)"
  1515.  
  1516. bsd:
  1517.     $(MAKE) bsd42 KTARGET=$${KTARGET-$(@)}
  1518.  
  1519. #Berkeley Unix 4.2 or 4.3 with HoneyDanBer UUCP
  1520. bsdhdb:
  1521.     @echo Making C-Kermit $(CKVER) for 4.2BSD with HDB UUCP...
  1522.     $(MAKE) bsd KTARGET=$${KTARGET-$(@)} \
  1523.     "KFLAGS= -DHDBUUCP $(KFLAGS)"
  1524.  
  1525. #Berkeley Unix 4.3 with acucntrl program, curses, TCP/IP included.
  1526. bsd43:
  1527.     @echo Making C-Kermit $(CKVER) for 4.3BSD...
  1528.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  1529.     "CFLAGS= -DBSD4 -DBSD43 -DTCPSOCKET -DNOREALPATH -DNOTIMEH -DNOIKSD \
  1530.     -DCK_CURSES -DACUCNTRL -DSYSTIMEBH -DNOPUTENV -DNOANSI -DBIGBUFOK \
  1531.     -DBSD42HACK $(KFLAGS)" "LIBS=-lcurses -ltermcap $(LIBS)"
  1532.  
  1533. #4.3BSD, curses excluded
  1534. bsd43nc:
  1535.     @echo Making C-Kermit $(CKVER) for 4.3BSD...
  1536.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  1537.     "CFLAGS= -DBSD4 -DBSD43 -DTCPSOCKET -DNOREALPATH -DNOTIMEH \
  1538.     -DACUCNTRL -DSYSTIMEBH -DNOIKSD -DNOPUTENV -DNOANSI -DBIGBUFOK \
  1539.     -DBSD42HACK $(KFLAGS)" "LIBS=$(LIBS)"
  1540.  
  1541. #4.3BSD, TCP/IP excluded.
  1542. bsd43nonet:
  1543.     @echo Making C-Kermit $(CKVER) for 4.3BSD + curses...
  1544.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  1545.     "CFLAGS= -DBSD4 -DBSD43 -DTCPSOCKET -DNOREALPATH -DNOTIMEH -DNOIKSD \
  1546.     -DCK_CURSES -DACUCNTRL -DSYSTIMEBH -DNOPUTENV -DNOANSI -DBIGBUFOK \
  1547.     -DBSD42HACK -DNONET $(KFLAGS)" "LIBS=-lcurses -ltermcap $(LIBS)"
  1548.  
  1549. #Berkeley Unix 4.2 or 4.3 with lock directory /usr/spool/uucp/LCK/LCK..ttyxx,
  1550. #but without acucntrl program
  1551. bsdlck:
  1552.     @echo Making C-Kermit $(CKVER) for 4.2BSD, /usr/spool/uucp/LCK/...
  1553.     $(MAKE) bsd KTARGET=$${KTARGET-$(@)} \
  1554.     "KFLAGS= -DLCKDIR $(KFLAGS)"
  1555.  
  1556. #Berkeley UNIX 4.4-Lite, 4.4-Encumbered, Net/2, etc (Post-Reno),
  1557. #with TCP/IP networking.  This includes NetBSD, FreeBSD, etc.
  1558. #NOTE: This is not a pure POSIX configuration.  Using -DPOSIX instead of
  1559. # -DBSD44 prevents any kind of directory-reading (for wildcard expansion),
  1560. #and disallows use of ENOTCONN symbol for detecting broken network
  1561. #connections, and disallows RTS/CTS flow control, and would also require
  1562. #definition of the appropriate UUCP lockfile convention.
  1563. #Do not add -DCK_POSIX_SIG without reading <signal.h> first!  For example,
  1564. #sigsetjmp(), etc, tend to be defined but not implemented.
  1565. bsd44:
  1566.     @echo Making C-Kermit $(CKVER) for 4.4BSD...
  1567.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1568.     "CFLAGS= -DBSD44 -DTCPSOCKET $(KFLAGS) -O"
  1569.  
  1570. #Berkeley UNIX 4.4, as above, but with curses for fullscreen display
  1571. #Please read notes for bsd44 entry just above.
  1572. # NOTE: This one dumps core on the real 4.4BSD system at UC Berkeley
  1573. # (an HP-9000 300), so use the no-curses version for that one.
  1574. bsd44c:
  1575.     @echo Making C-Kermit $(CKVER) for 4.4BSD with curses...
  1576.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1577.     "CFLAGS= -DBSD44 -DCK_CURSES -DTCPSOCKET $(KFLAGS) -O" \
  1578.     "LIBS= -lcurses -ltermcap $(LIBS)"
  1579.  
  1580. #For FreeBSD 1.x.
  1581. freebsd1:
  1582.     @echo 'Making C-Kermit $(CKVER) for FreeBSD...'
  1583.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1584.     "CFLAGS= -DBSD44 -DCK_CURSES -DTCPSOCKET -DNOCOTFMC -funsigned-char \
  1585.     -DFNFLOAT -DNOHTERMCAP -DNOREALPATH -DNOSYSCONF $(KFLAGS) -O -pipe" \
  1586.     "LIBS= -lcurses -ltermcap -lm $(LIBS)"
  1587.  
  1588. #FreeBSD 2.x with ncurses
  1589. freebsd2:
  1590.     @echo 'Making C-Kermit $(CKVER) for FreeBSD 2.x with ncurses...'
  1591.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1592.     "CFLAGS= -DBSD44 -DCK_NCURSES -DTCPSOCKET -DNOCOTFMC -DUSE_STRERROR \
  1593.     -DTPUTSARGTYPE=int -DTPUTSARG1CONST -DFREEBSD2 -funsigned-char \
  1594.     -DFNFLOAT $(KFLAGS) -O -pipe" \
  1595.     "LIBS= -lncurses -ltermlib -lcrypt -lm $(LIBS)"
  1596.  
  1597. #For FreeBSD 2.x -- Uses curses rather than ncurses
  1598. freebsd2c:
  1599.     @echo 'Making C-Kermit $(CKVER) for FreeBSD 2.x with curses...'
  1600.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1601.     "CFLAGS= -DBSD44 -DCK_CURSES -DTCPSOCKET -DNOCOTFMC -DUSE_STRERROR \
  1602.     -DTPUTSARGTYPE=int -DTPUTSARG1CONST -DFREEBSD2 -DFNFLOAT \
  1603.     -funsigned-char $(KFLAGS) -O -pipe" \
  1604.     "LIBS= -lcurses -ltermlib -lcrypt -lm $(LIBS)"
  1605.  
  1606. #FreeBSD 3.x with ncurses and uu_lock()
  1607. #(Note: uu_lock() goes back to 2.2.2, but not necessarily 2.0)
  1608. freebsd3:
  1609.     @echo 'Making C-Kermit $(CKVER) for FreeBSD 3.x with ncurses...'
  1610.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1611.     "CFLAGS= -DBSD44 -DCK_NCURSES -DTCPSOCKET -DNOCOTFMC -funsigned-char \
  1612.     -DTPUTSARGTYPE=int -DUSE_STRERROR -DFREEBSD3 -DUSE_UU_LOCK -DFNFLOAT \
  1613.     $(KFLAGS) -O -pipe" \
  1614.     "LIBS= -lncurses -lcrypt -lutil -lm $(LIBS)"
  1615.  
  1616. #As above but with curses rather than ncurses.
  1617. freebsd3c:
  1618.     @echo 'Making C-Kermit $(CKVER) for FreeBSD 3.x with curses...'
  1619.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1620.     "CFLAGS= -DBSD44 -DCK_CURSES -DTCPSOCKET -DNOCOTFMC -DUSE_UU_LOCK \
  1621.     -DTPUTSARGTYPE=int -DUSE_STRERROR -DFREEBSD3 $(KFLAGS) -DFNFLOAT \
  1622.     -funsigned-char -pipe -O" \
  1623.     "LIBS= -lcurses -lcrypt -lutil -lm $(LIBS)"
  1624.  
  1625. #FreeBSD 4.0 with ncurses and uu_lock().  Note - there is no curses in 4.0.
  1626. #ncurses 5.0 is broken requiring us to work around with setbuf().
  1627. freebsd4:
  1628.     @echo 'Making C-Kermit $(CKVER) for FreeBSD 4.x with ncurses...'
  1629.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1630.     "CFLAGS= -DBSD44 -DCK_NCURSES -DTCPSOCKET -DNOCOTFMC -DFNFLOAT \
  1631.     -funsigned-char -DTPUTSARGTYPE=int -DUSE_STRERROR -DFREEBSD4 \
  1632.     -DNONOSETBUF -DUSE_UU_LOCK $(KFLAGS) -O -pipe" \
  1633.     "LIBS= -lncurses -lcrypt -lutil -lm $(LIBS)"
  1634.  
  1635. #FreeBSD 4.1, as above but without the NONOSETBUF hack and with CK_NEWTERM.
  1636. #This works with ncurses 5.1.
  1637. freebsd41:
  1638.     @echo 'Making C-Kermit $(CKVER) for FreeBSD 4.1 with ncurses...'
  1639.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1640.     "CFLAGS= -DBSD44 -DCK_NCURSES -DCK_NEWTERM -DTCPSOCKET -DNOCOTFMC \
  1641.     -DFREEBSD4 -DFREEBSD41 -DUSE_UU_LOCK -DFNFLOAT \
  1642.     -funsigned-char -DTPUTSARGTYPE=int -DUSE_STRERROR $(KFLAGS) -O -pipe" \
  1643.     "LIBS= -lncurses -lcrypt -lutil -lm $(LIBS)"
  1644.  
  1645. #Default FreeBSD make for C-Kermit 8.0...
  1646. freebsd:
  1647.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET-$(@)} freebsd45
  1648.  
  1649. #FreeBSD 4.2, like 4.1.
  1650. freebsd42:
  1651.     @echo 'Making C-Kermit $(CKVER) for FreeBSD 4.2...'
  1652.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1653.     "CFLAGS= -DBSD44 -DCK_NCURSES -DCK_NEWTERM -DTCPSOCKET -DNOCOTFMC \
  1654.     -DFREEBSD4 -DFREEBSD41 -DFREEBSD42 -DUSE_UU_LOCK -DFNFLOAT \
  1655.     -funsigned-char -DTPUTSARGTYPE=int -DUSE_STRERROR $(KFLAGS) -O -pipe" \
  1656.     "LIBS= -lncurses -lcrypt -lutil -lm $(LIBS)"
  1657.  
  1658. #FreeBSD 4.3, like 4.2.
  1659. freebsd43:
  1660.     @echo 'Making C-Kermit $(CKVER) for FreeBSD 4.3...'
  1661.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1662.     "CFLAGS= -DBSD44 -DCK_NCURSES -DCK_NEWTERM -DTCPSOCKET -DNOCOTFMC \
  1663.     -DFREEBSD4 -DFREEBSD41 -DFREEBSD42 -DFREEBSD43 -DUSE_UU_LOCK \
  1664.     -DFNFLOAT -funsigned-char -DTPUTSARGTYPE=int -DUSE_STRERROR $(KFLAGS) \
  1665.     -O -pipe" "LIBS= -lncurses -lcrypt -lutil -lm $(LIBS)"
  1666.  
  1667. #FreeBSD 4.4, like 4.3.
  1668. freebsd44:
  1669.     @echo 'Making C-Kermit $(CKVER) for FreeBSD 4.4...'
  1670.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1671.     "CFLAGS= -DBSD44 -DCK_NCURSES -DCK_NEWTERM -DTCPSOCKET -DNOCOTFMC \
  1672.     -DFREEBSD4 -DFREEBSD41 -DFREEBSD42 -DFREEBSD43 -DFREEBSD44 \
  1673.     -DUSE_UU_LOCK -DFNFLOAT -funsigned-char -DTPUTSARGTYPE=int \
  1674.     -DUSE_STRERROR $(KFLAGS) -O -pipe" \
  1675.     "LIBS= -lncurses -lcrypt -lutil -lm $(LIBS)"
  1676.  
  1677. #FreeBSD 4.5, like 4.3 and 4.4.
  1678. freebsd45:
  1679.     @echo 'Making C-Kermit $(CKVER) for FreeBSD 4.5...'
  1680.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1681.     "CFLAGS= -DBSD44 -DCK_NCURSES -DCK_NEWTERM -DTCPSOCKET -DNOCOTFMC \
  1682.     -DFREEBSD4 -DUSE_UU_LOCK -DFNFLOAT -funsigned-char -DTPUTSARGTYPE=int \
  1683.     -DFREEBSD41 -DFREEBSD42 -DFREEBSD43 -DFREEBSD44 -DFREEBSD45 \
  1684.     -DUSE_STRERROR $(KFLAGS) -O -pipe" \
  1685.     "LIBS= -lncurses -lcrypt -lutil -lm $(LIBS)"
  1686.  
  1687. #FreeBSD 4.6, like 4.5
  1688. freebsd46:
  1689.     @echo 'Making C-Kermit $(CKVER) for FreeBSD 4.6...'
  1690.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1691.     "CFLAGS= -DBSD44 -DCK_NCURSES -DCK_NEWTERM -DTCPSOCKET -DNOCOTFMC \
  1692.     -DFREEBSD4 -DUSE_UU_LOCK -DFNFLOAT -funsigned-char -DTPUTSARGTYPE=int \
  1693.     -DFREEBSD41 -DFREEBSD42 -DFREEBSD43 -DFREEBSD44 -DFREEBSD45 \
  1694.     -DFREEBSD46 -DUSE_STRERROR $(KFLAGS) -O -pipe" \
  1695.     "LIBS= -lncurses -lcrypt -lutil -lm $(LIBS)"
  1696.  
  1697. #FreeBSD 4.7, like 4.6
  1698. freebsd47:
  1699.     @echo 'Making C-Kermit $(CKVER) for FreeBSD 4.7...'
  1700.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1701.     "CFLAGS= -DBSD44 -DCK_NCURSES -DCK_NEWTERM -DTCPSOCKET -DNOCOTFMC \
  1702.     -DFREEBSD4 -DUSE_UU_LOCK -DFNFLOAT -funsigned-char -DTPUTSARGTYPE=int \
  1703.     -DFREEBSD41 -DFREEBSD42 -DFREEBSD43 -DFREEBSD44 -DFREEBSD45 \
  1704.     -DFREEBSD46 -DFREEBSD47 -DUSE_STRERROR $(KFLAGS) -O -pipe" \
  1705.     "LIBS= -lncurses -lcrypt -lutil -lm $(LIBS)"
  1706.  
  1707. #FreeBSD 4.8, like 4.7
  1708. freebsd48:
  1709.     @echo 'Making C-Kermit $(CKVER) for FreeBSD 4.7...'
  1710.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1711.     "CFLAGS= -DBSD44 -DCK_NCURSES -DCK_NEWTERM -DTCPSOCKET -DNOCOTFMC \
  1712.     -DFREEBSD4 -DUSE_UU_LOCK -DFNFLOAT -funsigned-char -DTPUTSARGTYPE=int \
  1713.     -DFREEBSD41 -DFREEBSD42 -DFREEBSD43 -DFREEBSD44 -DFREEBSD45 \
  1714.     -DFREEBSD46 -DFREEBSD47 -DFREEBSD48 \
  1715.     -DUSE_STRERROR $(KFLAGS) -O -pipe" \
  1716.     "LIBS= -lncurses -lcrypt -lutil -lm $(LIBS)"
  1717.  
  1718. #FreeBSD 5.0, like 4.6
  1719. freebsd50:
  1720.     @echo 'Making C-Kermit $(CKVER) for FreeBSD 5.0 with ncurses...'
  1721.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1722.     "CFLAGS= -DBSD44 -DCK_NCURSES -DCK_NEWTERM -DTCPSOCKET -DNOCOTFMC \
  1723.     -DFREEBSD4 -DUSE_UU_LOCK -DFNFLOAT -funsigned-char -DTPUTSARGTYPE=int \
  1724.     -DFREEBSD41 -DFREEBSD42 -DFREEBSD43 -DFREEBSD44 -DFREEBSD45 \
  1725.     -DFREEBSD46 -DFREEBSD50 -DUSE_STRERROR $(KFLAGS) -O -pipe" \
  1726.     "LIBS= -lncurses -lcrypt -lutil -lm $(LIBS)"
  1727.  
  1728. #Secure builds for FreeBSD...
  1729.  
  1730. freebsd44+srp+openssl:
  1731.     @echo 'Making C-Kermit $(CKVER) for FreeBSD 4.3 with SRP,SSL...'
  1732.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  1733.     "CFLAGS= -DBSD44 -DCK_NCURSES -DCK_NEWTERM -DTCPSOCKET -DNOCOTFMC \
  1734.     -DFREEBSD4 -DFREEBSD41 -DFREEBSD42 -DFREEBSD43 -DFREEBSD44 \
  1735.     -DCK_AUTHENTICATION -DCK_SRP \
  1736.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL \
  1737.     -DCK_CURSES -DTCPSOCKET  \
  1738.     $(SRPINC) $(SSLINC) $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  1739.     "LIBS = $(SRPLIB) $(SSLLIB) \
  1740.     -lncurses -ltermcap -lsrp -lssl -lkrypto -lcrypto \
  1741.     -lcrypt "
  1742.  
  1743. # The following fragmentary FreeBSD+SLL target was suggested, but it's not
  1744. # clear which version of FreeBSD it applies to.
  1745. #
  1746. # ALL_TARGET=    xermit
  1747. # MAKE_ARGS=    KTARGET=freebsd \
  1748. #        CFLAGS="${CFLAGS} -DBSD44 -DCK_NCURSES -DCK_NEWTERM \
  1749. #        -DTCPSOCKET -DNOCOTFMC -DFREEBSD4 -DUSE_UU_LOCK -DFNFLOAT \
  1750. #        -funsigned-char -DTPUTSARGTYPE=int -DUSE_STRERROR -DCKHTTP \
  1751. #        -DCK_SSL -DCK_AUTHENTICATION -DCK_ENCRYPTION -DCK_DES" \
  1752. #        LIBS="-lssl -lcrypto -ldes -lncurses -lcrypt -lutil -lm"
  1753.  
  1754. #FreeBSD 5.0 with OpenSSL 0.9.7.
  1755. freebsd50+openssl:
  1756.     @echo 'Making C-Kermit $(CKVER) for FreeBSD 5.0, ncurses, openssl'
  1757.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1758.     "CFLAGS= -DBSD44 -DCK_NCURSES -DCK_NEWTERM -DTCPSOCKET -DNOCOTFMC \
  1759.     -DCK_AUTHENTICATION -DCK_SSL $(SSLINC) -DZLIB \
  1760.     -DFREEBSD4 -DUSE_UU_LOCK -DFNFLOAT -funsigned-char -DTPUTSARGTYPE=int \
  1761.     -DFREEBSD41 -DFREEBSD42 -DFREEBSD43 -DFREEBSD44 -DFREEBSD45 \
  1762.     -DFREEBSD46 -DFREEBSD50 -DUSE_STRERROR $(KFLAGS) -O -pipe" \
  1763.     "LIBS= -lncurses -lcrypt -lssl -lcrypto -lutil -lm $(SSLLIB) $(LIBS)"
  1764.  
  1765. #NetBSD - all versions - with curses, not ncurses.
  1766. #Some builds seem to need KFLAGS=-DTPUTSFNTYPE=int, others don't.
  1767. #(Only to get rid of a warning -- the binaries are identical.)
  1768. netbsd:
  1769.     @echo Making C-Kermit $(CKVER) for NetBSD with curses...
  1770.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1771.     "CFLAGS= -DBSD44 -DCK_CURSES -DTCPSOCKET -DUSE_STRERROR -DTPUTSISVOID \
  1772.     -DCK_DTRCD -DCK_DTRCTS -DTPUTSARGTYPE=int -DFNFLOAT $(KFLAGS) -O" \
  1773.     "LIBS= -lcurses -lcrypt -lm $(LIBS)"
  1774.  
  1775. #NetBSD 1.5.x in which the return type of the function pointer that is the 
  1776. #third argument of tputs() was changed from void to int...  The regular NetBSD
  1777. #target builds OK here but this one eliminates the (harmless) warning.
  1778. netbsd15:
  1779.     @echo Making C-Kermit $(CKVER) for NetBSD with curses...
  1780.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1781.     "CFLAGS= -DBSD44 -DCK_CURSES -DTCPSOCKET -DUSE_STRERROR -DNETBSD15 \
  1782.     -DCK_DTRCD -DCK_DTRCTS -DTPUTSARGTYPE=int -DFNFLOAT $(KFLAGS) -O" \
  1783.     "LIBS= -lcurses -lcrypt -lm $(LIBS)"
  1784.  
  1785. #NetBSD 1.6 - like 1.5.x but with vanity banner saying 1.6.
  1786. netbsd16:
  1787.     @echo Making C-Kermit $(CKVER) for NetBSD with curses...
  1788.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1789.     "CFLAGS= -DBSD44 -DCK_CURSES -DTCPSOCKET -DUSE_STRERROR \
  1790.     -DNETBSD15 -DNETBSD16 \
  1791.     -DCK_DTRCD -DCK_DTRCTS -DTPUTSARGTYPE=int -DFNFLOAT $(KFLAGS) -O" \
  1792.     "LIBS= -lcurses -lcrypt -lm $(LIBS)"
  1793.  
  1794. #NetBSD with ncurses requested explicitly rather than curses-which-is-ncurses
  1795. netbsdn:
  1796.     @echo Making C-Kermit $(CKVER) for NetBSD with ncurses...
  1797.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1798.     "CFLAGS= -DBSD44 -DCK_CURSES -DTCPSOCKET -DNOCOTFMC -DCK_DTRCD \
  1799.     -DCK_DTRCTS -DFNFLOAT -DUSE_STRERROR -DTPUTSISVOID -DTPUTSARGTYPE=int \
  1800.     $(KFLAGS) -O" \
  1801.     "LIBS= -L/usr/pkg/lib -lncurses -lcrypt -lm $(LIBS)"
  1802.  
  1803. #OpenBSD - All versions.
  1804. #Uses ncurses as its curses so use -ltermlib, not -ltermcap
  1805. #But it doesn't use uu_lock() which was introduced in OpenBSD 2.3.
  1806. #For that use the next entry.
  1807. #Add -DMAINTYPE=int if you get complaints about main: return type is not int.
  1808. openbsdold:
  1809.     @echo Making C-Kermit $(CKVER) for OpenBSD...
  1810.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1811.     "CFLAGS= -DBSD44 -DCK_CURSES -DCK_NEWTERM -DTCPSOCKET -DOPENBSD \
  1812.     -DFNFLOAT -DNDSYSERRLIST $(KFLAGS) -O" "LIBS= -lcurses -ltermlib -lm"
  1813.  
  1814. #OpenBSD 2.3 or later
  1815. #Add -DMAINTYPE=int if you get complaints about main: return type is not int.
  1816. #For C-Kermit 8.0 (Christian Weisgerber):
  1817. # -ltermlib removed (presumably because -lcurses==ncurses already includes it)
  1818. # -DUSE_UU_LOCK and -lutil added for uu_lock()
  1819. # -DNDSYSERRLIST changed to -DUSE_STRERROR
  1820. #If this gives you trouble use the previous entry.
  1821. openbsd:
  1822.     @echo Making C-Kermit $(CKVER) for OpenBSD 2.3 or later...
  1823.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1824.     "CFLAGS= -DBSD44 -DCK_CURSES -DCK_NEWTERM -DTCPSOCKET -DOPENBSD \
  1825.     -DUSE_UU_LOCK -DFNFLOAT -DUSE_STRERROR $(KFLAGS) -O" \
  1826.     "LIBS= -lcurses -lutil -lm"
  1827.  
  1828. #OpenBSD 3.0 or later includes OpenSSL
  1829. #Add -DMAINTYPE=int if you get complaints about main: return type is not int.
  1830. #For C-Kermit 8.0 (Christian Weisgerber):
  1831. # -ltermlib removed (presumably because -lcurses==ncurses already includes it)
  1832. # -DUSE_UU_LOCK and -lutil added for uu_lock()
  1833. # -DNDSYSERRLIST changed to -DUSE_STRERROR
  1834. #If this gives you trouble use the previous entry.
  1835. openbsd30+ssl:
  1836.     @echo Making C-Kermit $(CKVER) for OpenBSD 3.0 or later...
  1837.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1838.     "CFLAGS= -DBSD44 -DCK_CURSES -DCK_NEWTERM -DTCPSOCKET -DOPENBSD \
  1839.     -DUSE_UU_LOCK -DFNFLOAT -DUSE_STRERROR -DCK_AUTHENTICATION \
  1840.     -DCK_SSL $(KFLAGS) -O" \
  1841.     "LIBS= -lcurses -lutil -lm -lssl -lcrypto"
  1842.  
  1843. # make 386bsd 0.0new, posix
  1844. # for  386bsd 0.1.24, change /usr/include/termios.h to #define NCCS if
  1845. #  _POSIX_SOURCE is #defined. (source: lewine, posix prgmrs guide, o`reilly)
  1846. #NOTE: Lock directory is /var/spool/lock.  Formerly, it was /var/spool/uucp,
  1847. #but reportedly <wjones@halcyon.com> that was due to a typo in 'man tip'.
  1848. 386bsd:
  1849.     @echo 'Making C-Kermit $(CKVER) for jolix 386BSD 0.0new and 0.1.24...'
  1850.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1851.     "CFLAGS= -DPOSIX -DSETREUID -DPIDSTRING -DUSLEEP \
  1852.     -D_386BSD -DCK_CURSES -DTCPSOCKET \
  1853.     -DLOCK_DIR=\\\"/var/spool/lock\\\" \
  1854.     $(KFLAGS) -O" "LNKFLAGS = -s" "LIBS = -lcurses -ltermcap"
  1855.  
  1856. #Mac OS X 1.0 (Rhapsody, Darwin) -- TCP/IP but no curses.
  1857. macosx10:
  1858.     @echo Making C-Kermit $(CKVER) for `uname -s`...
  1859.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1860.     "CFLAGS= -DMACOSX10 -DTCPSOCKET -DUSE_STRERROR -O $(KFLAGS)"
  1861.  
  1862. #Mac OS X 1.0 (Rhapsody, Darwin) -- TCP/IP and curses.
  1863. #Note: curses must be obtained separately.  See next entry for ncurses.
  1864. #Add "LIBS = -lcurses -ltermcap" if necessary (but reportedly it is not).
  1865. macosx10c:
  1866.     @echo Making C-Kermit $(CKVER) for `uname -s` + curses...
  1867.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1868.     "CFLAGS= -DMACOSX10 -DCK_CURSES -DTPUTSFNTYPE=void -DTPUTSISVOID \
  1869.     -DTCPSOCKET -DUSE_STRERROR -O $(KFLAGS)"
  1870.  
  1871. #Mac OS X 1.0 (Rhapsody, Darwin) -- TCP/IP and ncurses.
  1872. #Note: ncurses must be obtained separately.
  1873. #In the event of trouble with this one try the next one.
  1874. macosx10nc:
  1875.     @echo Making C-Kermit $(CKVER) for `uname -s` + ncurses...
  1876.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1877.     "CFLAGS= -DMACOSX10 -DCK_NCURSES -DTCPSOCKET -DUSE_STRERROR -O \
  1878.     $(KFLAGS)" "LIBS= -lncurses $(LIBS)"
  1879.  
  1880. #Mac OS X 10.2 (Jaguar) ncurses.
  1881. macosx102nc:
  1882.     @echo Making C-Kermit $(CKVER) for `uname -s` + ncurses...
  1883.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1884.     "CFLAGS= -DMACOSX10 -DCK_NCURSES -DTCPSOCKET -DUSE_STRERROR -O \
  1885.     $(KFLAGS) " "LIBS= -lncurses $(LIBS)"
  1886.  
  1887. #The problem here is that if curses.h also exists, it conflicts with
  1888. #ncurses.h and and we have fatal errors.  If this happens to you, then
  1889. #try this entry.
  1890. macosx10ncx:
  1891.     @echo Making C-Kermit $(CKVER) for `uname -s` + ncurses...
  1892.     @rm -f ./curses.h; touch ./curses.h
  1893.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1894.     "CFLAGS= -DMACOSX10 -DCK_NCURSES -DTCPSOCKET -DUSE_STRERROR \
  1895.     -I. -O $(KFLAGS) " \
  1896.     "LIBS= -lncurses $(LIBS)"
  1897.     @rm -f ./curses.h
  1898.  
  1899. #Acorn RISCiX, based on ...
  1900. #Berkeley Unix 4.2 or 4.3 with lock directory /usr/spool/uucp/LCK/LCK..ttyxx,
  1901. #but without acucntrl program
  1902. riscix:
  1903.     @echo Making C-Kermit $(CKVER) for RISCiX, /usr/spool/uucp/LCK..ttyxx
  1904.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  1905.         "CFLAGS= -DBSD42 -DBSD4 -DRISCIX -DNOCSETS \
  1906.         -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DDIRENT -DCK_CURSES \
  1907.         -DMAXSP=9024 -DMAXRD=9024 -DSBSIZ=9050 -DRBSIZ=9050 \
  1908.         -DDFTTY=\\\"/dev/serial\\\" -DNOCSETS -DNOCYRIL \
  1909.         -DNOANSI -w -O2 -fomit-frame-pointer" \
  1910.         "LIBS= -lcurses -ltermcap " \
  1911.         "CC= /usr/ucb/cc" \
  1912.         "CC2= /usr/ucb/cc"
  1913.  
  1914. #Acorn RISCiX, as above, but using gcc
  1915. riscix-gcc:
  1916.     @echo Making C-Kermit $(CKVER) for RISCiX, /usr/spool/uucp/LCK..ttyxx
  1917.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  1918.         "CFLAGS= -DBSD42 -DBSD4 -DRISCIX -DNOCSETS \
  1919.         -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DDIRENT -DCK_CURSES \
  1920.         -DMAXSP=9024 -DMAXRD=9024 -DSBSIZ=9050 -DRBSIZ=9050 \
  1921.         -DDFTTY=\\\"/dev/serial\\\" -DNOCSETS -DNOCYRIL \
  1922.         -DNOANSI -w -O2 -fomit-frame-pointer" \
  1923.         "LIBS= -lcurses -ltermcap " \
  1924.         "CC= gcc -mbsd" \
  1925.         "CC2= gcc -mbsd"
  1926.  
  1927. #Convergent CTIX 6.4.1
  1928. ctix:
  1929.     @echo 'Making C-Kermit $(CKVER) for Convergent CTIX 6.4.1'
  1930.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  1931.     "CFLAGS= -DSVR3 -DDIRENT -DTCPSOCKET -DHDBUUCP -DCK_CURSES \
  1932.     -DNONAWS -DNOLEARN $(KFLAGS) -XO" \
  1933.     "LNKFLAGS=-s" "LIBS=-lsocket -lcurses -lc_s"
  1934.     mcs -d wermit
  1935.  
  1936. # The following makefile entry should work for any Harris Night Hawk system
  1937. # (either 88k or 68k based) running release 6.1 or later of the CX/UX
  1938. # operating system. This is a POSIX and ANSI-C compliant system which also
  1939. # supports BSD networking. (Earlier CX/UX releases will probably work with
  1940. # sys5r3, but this has not been verified).
  1941. #
  1942. cx_ux:
  1943.     @echo Making C-Kermit $(CKVER) for Harris Night Hawk CX/UX 6.1 or later
  1944.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  1945.     "CFLAGS=-DPOSIX -DTCPSOCKET -DHDBUUCP -DPID_T=pid_t -DWAIT_T=int \
  1946.     -Dd_ino=d_fileno -DUID_T=uid_t -DGID_T=gid_t $(KFLAGS) -Xa \
  1947.     -O3 -g" "LNKFLAGS=-O3"
  1948.  
  1949. #Intergraph Clipper, CLIX, job control, HDB UUCP.
  1950. clix:
  1951.     @echo 'Making C-Kermit $(CKVER) for Intergraph CLIX...'
  1952.     $(MAKE) wermit "CC=acc" "CC2=acc" KTARGET=$${KTARGET:-$(@)} \
  1953.     "CFLAGS= -w -DSVR3 -DCLIX -DDIRENT -DHDBUUCP -DNOSYSLOG -DUSE_MEMCPY \
  1954.     -DNOGETUSERSHELL -DNOREALPATH -DNOLEARN $(KFLAGS) -O" \
  1955.     "LNKFLAGS=" "LIBS= -lbsd"
  1956.  
  1957. #As above + TCP/IP...
  1958. clixnet:
  1959.     @echo 'Making networked C-Kermit $(CKVER) for Intergraph CLIX...'
  1960.     $(MAKE) wermit "CC=acc" "CC2=acc" KTARGET=$${KTARGET:-$(@)} \
  1961.     "CFLAGS= -w -DSVR3 -DCLIX -DDIRENT -DHDBUUCP -DNOSYSLOG -DUSE_MEMCPY \
  1962.     -DTCPSOCKET -DNOGETUSERSHELL -DNOLEARN -DNOREALPATH $(KFLAGS) -O" \
  1963.     "LNKFLAGS=" "LIBS= -lbsd"
  1964.  
  1965. #Mark Williams Coherent 286 or 386 on IBM PC family.
  1966. #There is a 64K limit on program size, so this is a command-line only version.
  1967. coherent:
  1968.     $(MAKE) "CFLAGS = -O -DCOHERENT -DNOANSI -DNOICP -DNOSETKEY -DNOLEARN \
  1969.     -DNOCSETS -DNOHELP -DNODIAL -DNOSCRIPT -DNODEBUG -DNOTLOG -DNOXMIT \
  1970.     -DNOMSEND -DNOFRILLS -DNOSYSIOCTLH -DSELECT_H $(KFLAGS) -VSUVAR" \
  1971.     -DNOFLOAT KTARGET=$${KTARGET:-$(@)} wermit
  1972.  
  1973. #Mark Williams Coherent 386 on IBM PC family.
  1974. #This will make a "minimum interactive" version - no scripts,
  1975. #no character sets, no help, no dial, no debug/transaction logging, no
  1976. #transmit, msend, mail, type, etc.
  1977. coherentmi:
  1978.     $(MAKE) "CFLAGS = -O -DCOHERENT -DNOANSI -DNOSETKEY -DNOLEARN \
  1979.     -DNOSHOW -DNOCSETS -DNOHELP -DNODIAL -DNOSCRIPT -DNODEBUG -DNOTLOG \
  1980.     -DNOXMIT -DNOMSEND -DNOFRILLS -DNOSYSIOCTLH -DNOSERVER -DNOUUCP \
  1981.     -DNOSPL -DNOPUSH -DNOMDMHUP -DNOJC -DNOFDZERO -DNOESCSEQ -DNOFLOAT \
  1982.     -DNOCMDL $(KFLAGS) -VSUVAR -DSELECT_H" KTARGET=$${KTARGET:-$(@)} \
  1983.     wermit
  1984.  
  1985. #Mark Williams Coherent 386 on IBM PC/AT family.
  1986. coherentmax:
  1987.     $(MAKE) "CFLAGS = -O -DCOHERENT -DNOANSI -DSELECT_H -DNOLEARN \
  1988.     -DNOFLOAT -DNOSYSIOCTLH $(KFLAGS) -VSUVAR" "LNKFLAGS = -O -s" \
  1989.     KTARGET=$${KTARGET:-$(@)} wermit
  1990.  
  1991. #Mark Williams Coherent 386 4.2.  Includes curses but not TCP/IP.
  1992. #Requires updates to the 4.2.10 compiler; the regular compiler fails to
  1993. #to handle "complex expressions".  NOFLOAT is so it can work on old PCs
  1994. #without floating-point hardware.
  1995. coherent42:
  1996.     $(MAKE) "CFLAGS = -T500000 -DNOFLOAT -DCOHERENT -DNOANSI -DSELECT \
  1997.     -DNOSYSLOG -DDIRENT -DCK_CURSES -DCK_NEWTERM -DCK_WREFRESH -VSUVAR \
  1998.     -DDCLGETCWD -DNOSYSIOCTLH -DNOINITGROUPS -DNOSYMLINK -DSELECT_H \
  1999.     -DDCLGETCWD -O $(KFLAGS)" \
  2000.     "LNKFLAGS = -O -s" KTARGET=$${KTARGET:-$(@)} \
  2001.     "LIBS  = -lsocket -lcurses" wermit
  2002.  
  2003. #DEC Ultrix 2.x
  2004. # Add -O, -DDYNAMIC, -s, etc, if they work.
  2005. ultrix2x:
  2006.     @echo Making C-Kermit $(CKVER) for Ultrix 2.x ...
  2007.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  2008.     "CFLAGS= -DBSD4 -DTCPSOCKET -DDU2 -DNOGETUSERSHELL $(KFLAGS)"
  2009.  
  2010. du2:
  2011.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET-$(@)} ultrix2x
  2012.  
  2013. #DEC Ultrix 3.0 and 3.1
  2014. ultrix30:
  2015.     @echo Making C-Kermit $(CKVER) for Ultrix 3.0...
  2016.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  2017.     "CFLAGS= -DBSD4 -DTCPSOCKET -DDIRENT -DSIG_V -DNOGETUSERSHELL \
  2018.     -DULTRIX3 -DCK_CURSES $(KFLAGS) -O" "LIBS= -lcurses -ltermcap"
  2019.  
  2020. du3:
  2021.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET-$(@)} ultrix30
  2022.  
  2023. ultrix3x:
  2024.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET-$(@)} ultrix30
  2025.  
  2026. #DEC Ultrix 4.0 or 4.1 on DECstation, VAXstation, VAX, etc.
  2027. ultrix40:
  2028.     @echo Making C-Kermit $(CKVER) for Ultrix 4.0 or 4.1...
  2029.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  2030.     "CFLAGS= -DBSD4 -DTCPSOCKET -DSIG_V -DDU4 -DNOGETUSERSHELL \
  2031.     $(KFLAGS) -Olimit 1450" "LNKFLAGS = -s"
  2032.  
  2033. #DEC Ultrix 4.2-4.5 on DECstation, DECsystem, VAXstation, VAX, etc.
  2034. #Like ultrix40, except now C compiler supports -O2 optimization.
  2035. ultrix42:
  2036.     @echo Making C-Kermit $(CKVER) for Ultrix 4.2 or later...
  2037.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  2038.     "CFLAGS= -DBSD4 -DTCPSOCKET -DSIG_V -DNOGETUSERSHELL $(KFLAGS) \
  2039.     -O2 -Olimit 1750" "LNKFLAGS = -s"
  2040.  
  2041. du42:
  2042.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET-$(@)} ultrix42
  2043.  
  2044. #DEC Ultrix 4.2-4.5 on DECstation, DECsystem, VAXstation, VAX, etc.
  2045. #Like du42, but with curses support added and a couple features.
  2046. ultrix42c:
  2047.     @echo Making C-Kermit $(CKVER) for Ultrix 4.2 or later...
  2048.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  2049.     "CFLAGS= -DBSD4 -DTCPSOCKET -DSIG_V -DNOGETUSERSHELL \
  2050.     -DCK_CURSES -DNOIKSD $(KFLAGS)-G6 -O2 -Olimit 3000 " \
  2051.     "LNKFLAGS = -s" "LIBS= -lcurses -ltermcap"
  2052.  
  2053. ultrix43:
  2054.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=-DULTRIX43 $(KFLAGS)" \
  2055.     KTARGET=$${KTARGET-$(@)} ultrix42c
  2056.  
  2057. ultrix43notcp:
  2058.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=-DULTRIX43 -DNONET $(KFLAGS)" \
  2059.     KTARGET=$${KTARGET-$(@)} ultrix42c
  2060.  
  2061. # NOTE: need -DNODEBUG on MIPS to avoid relocation errors at link time.
  2062. # Actually now (8.0) that we have discovered the -G option maybe debugging 
  2063. # can be put back.
  2064. ultrix44:
  2065.     $(MAKE) "MAKE=$(MAKE)" \
  2066.     "KFLAGS=-DULTRIX44 -G7 -DNODEBUG -DNETPTY -DNO_DEVTTY $(KFLAGS)" \
  2067.     KTARGET=$${KTARGET-$(@)} ultrix42c
  2068.  
  2069. ultrix45:
  2070.     $(MAKE) "MAKE=$(MAKE)" \
  2071.     "KFLAGS=-DULTRIX45 $(KFLAGS)-DNETPTY -DNO_DEVTTY $(KFLAGS)" \
  2072.     KTARGET=$${KTARGET-$(@)} ultrix42c
  2073.  
  2074. du42c:
  2075.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET-$(@)} ultrix42c
  2076.  
  2077. #DEC Ultrix 4.3A or later on DECsystem and DECstation 5000/50, /150 or /260
  2078. #with MIPS R4x00 processor.  The "-mips3" switch generates R4000-specific
  2079. #code, which is faster and more compact, but *won't* run on earlier
  2080. #DECsystems and DECstations.
  2081. ultrix43-mips3:
  2082.     @echo Making C-Kermit $(CKVER) for Ultrix 4.3A or later, R4000 cpu...
  2083.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  2084.     "CFLAGS= -DBSD4 -DTCPSOCKET -DSIG_V -DNOGETUSERSHELL \
  2085.     $(KFLAGS) -O2 -Olimit 1750 -mips3" "LNKFLAGS = -s -mips3"
  2086.  
  2087. du43-mips3:
  2088.     $(MAKE) "MAKE=$(MAKE)" ultrix43-mips3
  2089.  
  2090. #DEC Ultrix 4.3A or later on MIPS R4x000 based systems.
  2091. #Like ultrix43-mips3 but with curses support added
  2092. ultrix43c-mips3:
  2093.     @echo Making C-Kermit $(CKVER) for Ultrix 4.3A or later, R4000 cpu...
  2094.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  2095.     "CFLAGS= -DBSD4 -DTCPSOCKET -DSIG_V -DNOGETUSERSHELL -DCK_CURSES \
  2096.     $(KFLAGS) -O2 -Olimit 3000 -mips3" "LNKFLAGS = -s -mips3" \
  2097.     "LIBS= -lcurses -ltermcap"
  2098.  
  2099. du43c-mips3:
  2100.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET-$(@)} ultrix43c-mips3
  2101.  
  2102. #DEC Ultrix 4.4 on DECstation 5000/50 or /150 with R4000 MIPS processor,
  2103. #or 5000/260 with R4400.  The "-mips3" switch generates R4000-specific code,
  2104. #which is faster and more compact but *won't* run on earlier DECstations.
  2105. ultrix44-mips3:
  2106.     @echo Making C-Kermit $(CKVER) for Ultrix 4.4, R4000 cpu ...
  2107.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  2108.     "CFLAGS= -DBSD4 -DTCPSOCKET -DSIG_V -DNOGETUSERSHELL \
  2109.     $(KFLAGS) -O2 -Olimit 1450 -mips3" "LNKFLAGS = -s -mips3"
  2110.  
  2111. du44-mips3:
  2112.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET-$(@)} ultrix44c-mips3
  2113.  
  2114. #DEC Ultrix 4.2 on DECstation, VAXstation, VAX, etc, System V R4 environment
  2115. ultrix42s5r4:
  2116.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4 on Ultrix...'
  2117.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  2118.     "CFLAGS = -O2 -Olimit 1500 -DSVR4 -DDIRENT -DHDBUUCP -DNOGETUSERSHELL \
  2119.     -DTCPSOCKET $(KFLAGS)" "LNKFLAGS = -s"
  2120.  
  2121. #OSF/1
  2122. osf:
  2123.     $(MAKE) xermit CC=$(CC) CC2=$(CC2) KTARGET=$${KTARGET:-$(@)} \
  2124.     "CFLAGS= -DBSD4 -DOSF -D_BSD -DTCPSOCKET -DCK_ANSIC -DSIG_V \
  2125.     -DCK_CURSES -DCK_RTSCTS -DFNFLOAT $(KFLAGS)" \
  2126.     "LNKFLAGS = -s" "LIBS = -lbsd -lcurses -ltermcap -lm"
  2127.  
  2128. #DEC OSF/1 V1.0-1.3 on DECstation, VAX, Alpha, or PC.
  2129. dec-osf:
  2130.     $(MAKE) xermit CC=$(CC) CC2=$(CC2) KTARGET=$${KTARGET:-$(@)} \
  2131.     "CFLAGS= -DBSD4 -DOSF -DOSF13 -D_BSD -DTCPSOCKET -DCK_ANSIC -DSIG_V \
  2132.     -DNOREALPATH -DNOIKSD -DCK_CURSES -DCK_RTSCTS -DFNFLOAT -DNODEBUG \
  2133.     -DNOUNICODE $(KFLAGS)" \
  2134.     "LNKFLAGS = -non_shared" "LIBS = -lbsd -lcurses -ltermcap -lm"
  2135.  
  2136. # This one causes "relocation out-of-range" errors in the linker.
  2137. old-dec-osf:
  2138.     @echo Making C-Kermit $(CKVER) for DEC OSF/1 V1.x...
  2139.     @echo If you are building for DEC OSF/1 2.0, please use dec-osf20.
  2140.     @echo Remove or adjust -O2 and/or -Olimit if they cause trouble.
  2141.     $(MAKE) osf KTARGET=$${KTARGET:-$(@)} \
  2142.     "KFLAGS= -O2 -Olimit 2400 $(KFLAGS)"
  2143.  
  2144. #DEC OSF/1 2.0 on Alpha and probably nowhere else.
  2145. #The only difference from OSF/1 is that optimization is omitted.
  2146. #The optimized version gets strange runtime errors, like the PAUSE command
  2147. #not working.  Add "-unsigned" to make all chars unsigned.
  2148. dec-osf20:
  2149.     @echo Making C-Kermit $(CKVER) for DEC OSF/1 V2.0...
  2150.     @echo Optimization omitted because it causes runtime errors.
  2151.     @echo See comments in makefile.
  2152.     $(MAKE) osf KTARGET=$${KTARGET:-$(@)} "KFLAGS= -DOSF20 $(KFLAGS)"
  2153.  
  2154. dec-osf30:
  2155.     @echo Making C-Kermit $(CKVER) for DEC OSF/1 V3.0...
  2156.     $(MAKE) osf KTARGET=$${KTARGET:-$(@)} \
  2157.     "KFLAGS= -DOSF30 -O2 -Olimit 2400 $(KFLAGS)"
  2158.  
  2159. #Digital UNIX 3.2
  2160. # Must compile ckuus[6x].c separately without optimization otherwise
  2161. # the optimizer dumps core - keep CFLAGS here in sync with those from osf.
  2162. du32:
  2163.     @echo Making C-Kermit $(CKVER) for Digital UNIX 3.2...
  2164.     $(MAKE) ckuus6.$(EXT) \
  2165.     "CFLAGS= -DBSD4 -DOSF -D_BSD -DTCPSOCKET -DCK_ANSIC -DSIG_V \
  2166.     -DCK_CURSES -DCK_RTSCTS -DFNFLOAT -DOSF32 -DHDBUUCP $(KFLAGS)"
  2167.     $(MAKE) ckuusx.$(EXT) \
  2168.     "CFLAGS= -DBSD4 -DOSF -D_BSD -DTCPSOCKET -DCK_ANSIC -DSIG_V \
  2169.     -DCK_CURSES -DCK_RTSCTS -DFNFLOAT -DOSF32 -DHDBUUCP $(KFLAGS)"
  2170.     $(MAKE) osf "KFLAGS= -DOSF32 -DHDBUUCP -O2 -Olimit 3200 $(KFLAGS)"
  2171.  
  2172. dec-osf32:
  2173.     $(MAKE) "MAKE=$(MAKE)" du32 KTARGET=$${KTARGET:-$(@)}
  2174.  
  2175. #Digital UNIX 4.0 through 4.0D (use tru64 targets for 4.0E and above)...
  2176. du40:
  2177.     @echo Making C-Kermit $(CKVER) for Digital UNIX 4.0...
  2178.     $(MAKE) osf KTARGET=$${KTARGET:-$(@)} \
  2179.     "KFLAGS= -DOSF40 -DHDBUUCP -DFNFLOAT \
  2180.     -unsigned -std1 -O3 -Olimit 2400 $(KFLAGS)" "LIBS=-lm"
  2181.  
  2182. du40gcc:
  2183.     @echo Making C-Kermit $(CKVER) for Digital UNIX 4.0 with gcc ...
  2184.     $(MAKE) osf CC=gcc CC2=gcc KTARGET=$${KTARGET:-$(@)} \
  2185.     "KFLAGS= -DOSF40 -DHDBUUCP $(KFLAGS)"
  2186.  
  2187. #Tru64 Unix 4.0E
  2188. tru64-40e:
  2189.     @echo Making C-Kermit $(CKVER) for Tru64 UNIX 4.0E...
  2190.     $(MAKE) osf KTARGET=$${KTARGET:-$(@)} \
  2191.     "KFLAGS= -DOSF40 -DOSF40E -DTRU64 -DHDBUUCP -DFNFLOAT -DNOCOTFMC \
  2192.     -unsigned -std1 -O3 -Olimit 2400 $(KFLAGS)" "LIBS=-lm"
  2193.  
  2194. tru64-40f:
  2195.     @echo Making C-Kermit $(CKVER) for Tru64 UNIX 4.0F...
  2196.     $(MAKE) osf KTARGET=$${KTARGET:-$(@)} \
  2197.     "KFLAGS= -DOSF40 -DOSF40F -DTRU64 -DHDBUUCP -DFNFLOAT -DNOCOTFMC \
  2198.     -unsigned -std1 -O3 -Olimit 2400 $(KFLAGS)" "LIBS=-lm"
  2199.  
  2200. tru64-40g:
  2201.     @echo Making C-Kermit $(CKVER) for Tru64 UNIX 4.0G...
  2202.     $(MAKE) osf KTARGET=$${KTARGET:-$(@)} \
  2203.     "KFLAGS= -DOSF40 -DOSF40G -DTRU64 -DHDBUUCP -DFNFLOAT -DNOCOTFMC \
  2204.     -unsigned -std1 -O3 -Olimit 2400 $(KFLAGS)" "LIBS=-lm"
  2205.  
  2206. tru64-50a:
  2207.     @echo Making C-Kermit $(CKVER) for Tru64 UNIX 5.0A...
  2208.     $(MAKE) osf KTARGET=$${KTARGET:-$(@)} \
  2209.     "KFLAGS= -DTRU64 -DOSF50 -DHDBUUCP \
  2210.     -unsigned -std1 -O3 -Olimit 2400 $(KFLAGS)"
  2211.  
  2212. tru64-51a:
  2213.     @echo Making C-Kermit $(CKVER) for Tru64 UNIX 5.1A...
  2214.     $(MAKE) osf KTARGET=$${KTARGET:-$(@)} \
  2215.     "KFLAGS= -DTRU64 -DOSF50 -DOSF51A -DHDBUUCP \
  2216.     -unsigned -std1 -O3 -Olimit 2400 $(KFLAGS)"
  2217.  
  2218. tru64-51b:
  2219.     @echo Making C-Kermit $(CKVER) for Tru64 UNIX 5.1A...
  2220.     $(MAKE) osf KTARGET=$${KTARGET:-$(@)} \
  2221.     "KFLAGS= -DTRU64 -DOSF50 -DOSF51A -DOSF51B -DHDBUUCP \
  2222.     -unsigned -std1 -O3 -Olimit 2400 $(KFLAGS)"
  2223.  
  2224. du50:
  2225.     $(MAKE) tru64-50a KTARGET=$${KTARGET:-$(@)}
  2226.  
  2227. du40-ridiculous-checking:
  2228.     @echo Making C-Kermit $(CKVER) for Digital UNIX 4.0.
  2229.     @echo Checking everything - assumes DECC...
  2230.     $(MAKE) osf KTARGET=$${KTARGET:-$(@)} \
  2231.     "KFLAGS= -DOSF40 -DHDBUUCP -w0 -warnprotos -check -portable \
  2232.     -unsigned -std1 -O3 -Olimit 1760 $(KFLAGS)"
  2233.  
  2234. #Sequent DYNIX/ptx 1.2.1
  2235. dynixptx12:
  2236.     @echo Making C-Kermit $(CKVER) for Sequent DYNIX/ptx 1.2.1...
  2237.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  2238.     "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -DPTX -DNOGETUSERSHELL -DNOLEARN \
  2239.     -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t $(KFLAGS) -i -O" \
  2240.     "LNKFLAGS = -i"
  2241.  
  2242. #Sequent DYNIX/ptx 1.3 or 1.4
  2243. dynixptx13:
  2244.     @echo Making C-Kermit $(CKVER) for Sequent DYNIX/ptx 1.3 TCP/IP...
  2245.     $(MAKE) xermit "CFLAGS= -O KTARGET=$${KTARGET:-$(@)} \
  2246.     -DSVR3 -DDIRENT -DHDBUUCP -DPTX -DCK_POLL -DNOGETUSERSHELL \
  2247.     -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t -DTCPSOCKET $(KFLAGS) -i" \
  2248.     "LNKFLAGS = -i" "LIBS = -lsocket -linet -lnsl"
  2249.  
  2250. #Sequent DYNIX/ptx 2.0, ANSI C compilation
  2251. #Should work on any hardware platform when DYNIX/ptx runs, including
  2252. #386, 486, Pentium.
  2253. dynixptx20:
  2254.     @echo 'Making C-Kermit $(CKVER) for POSIX, Sequent DYNIX/ptx 2.0...'
  2255.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2256.     "CFLAGS= -DPOSIX -DHDBUUCP -DTCPSOCKET \
  2257.     -DWAIT_T=int -DPTX -DNOGETUSERSHELL $(KFLAGS) -O" \
  2258.     "LIBS = -lsocket -linet -lnsl"
  2259.  
  2260. #Sequent DYNIX/ptx 2.0, ANSI C compilation, with curses
  2261. dynixptx20c:
  2262.     @echo 'Making C-Kermit $(CKVER) for POSIX, Sequent DYNIX/ptx 2.0...'
  2263.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2264.     "CFLAGS= -DPOSIX -DHDBUUCP -DTCPSOCKET -DWAIT_T=int -DPTX -DCK_CURSES \
  2265.     -DCK_NEWTERM -DNOGETUSERSHELL $(KFLAGS) -O" \
  2266.     "LIBS = -lsocket -linet -lnsl -lcurses -ltermcap"
  2267.  
  2268. #Sequent DYNIX/ptx 2.1.6, 80486, ANSI C compilation, with curses:
  2269. # -Xa -- use ANSI compiler.
  2270. # -Wc,-pw -- suppress portability warnings.
  2271. # -Wc,-i386 -- 80386 cpu.
  2272. # -Wc,-i486 -- 80486 cpu.
  2273. # -Wc,-P5 -- Pentium (default).
  2274. # -Wc,-O3 -- highest optimization.
  2275. # -Wa,-N17061 -- increase symbol table from default of 15013 for ckcuni.c.
  2276. # Early versions of DYNIX/ptx 2.1.x may need -DCK_POLL instead of -DSELECT.
  2277. # Add "$&" after the colon in the "xermit" target for parallel makes.
  2278. dynixptx216c:
  2279.     @echo 'Making C-Kermit $(CKVER) for POSIX, Sequent DYNIX/ptx 2.1.6'
  2280.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2281.     "CFLAGS= -DPOSIX -DHDBUUCP -DDYNAMIC -DTCPSOCKET \
  2282.     -DSELECT -DCK_REDIR -DCK_NAWS -DCK_WREFRESH -DSW_ACC_ID \
  2283.     -DTCP_NODELAY=1 -DTRMBUFL=2048 -DBIGBUFOK -DHADDRLIST \
  2284.     -DPTX  -DCK_CURSES -DCK_NEWTERM -DNOGETUSERSHELL -DNOREALPATH \
  2285.     $(KFLAGS) -Xa -Wc,-pw -Wc,-i486 -Wc,-O3 -Wa,-N17061" \
  2286.     "LIBS = -lXbsd -lseq -lsocket -linet -lnsl -lmalloc -lm -lcurses" \
  2287.     "LNKFLAGS = -s"
  2288.  
  2289. #Sequent DYNIX/ptx 2.1.6, gcc 2.7.2.2, with curses:
  2290. dynixptx216cgcc:
  2291.     @echo 'Making C-Kermit $(CKVER) for POSIX, Sequent DYNIX/ptx 2.1.6 gcc'
  2292.     $(MAKE) xermit "CC = gcc" "CC2 = gcc" KTARGET=$${KTARGET:-$(@)} \
  2293.     "CFLAGS= -DPOSIX -DHDBUUCP -DDYNAMIC -DTCPSOCKET \
  2294.     -DSELECT -DCK_REDIR -DCK_NAWS -DCK_WREFRESH -DSW_ACC_ID \
  2295.     -DTCP_NODELAY=1 -DTRMBUFL=2048 -DBIGBUFOK -DHADDRLIST \
  2296.     -DPTX  -DCK_CURSES -DCK_NEWTERM -DNOGETUSERSHELL -DNOREALPATH \
  2297.     $(KFLAGS) -O3 -pipe -funsigned-char" \
  2298.     "LIBS = -lXbsd -lseq -lsocket -linet -lnsl -lmalloc -lm -lcurses" \
  2299.     "LNKFLAGS = -s"
  2300.  
  2301. #Sequent DYNIX/ptx 4.0, ANSI C compilation, with curses
  2302. dynixptx41c:
  2303.     @echo 'Making C-Kermit $(CKVER) for POSIX, Sequent DYNIX/ptx 4.0...'
  2304.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2305.     "CFLAGS= -DPOSIX -DHDBUUCP -DTCPSOCKET \
  2306.     -DWAIT_T=int -DPTX -DPTX4 -DCK_CURSES -DCK_NEWTERM \
  2307.     -DNOGETUSERSHELL $(KFLAGS) -O" \
  2308.     "LIBS = -lsocket -lnsl -lcurses -ltermcap"
  2309.  
  2310. #Sequent DYNIX/ptx 4.4, ANSI C compilation, with curses
  2311. dynixptx44:
  2312.     @echo 'Making C-Kermit $(CKVER) for POSIX, Sequent DYNIX/ptx 4.4...'
  2313.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2314.     "CFLAGS= -DPTX -DPTX4 -DPOSIX -DHDBUUCP -DTCPSOCKET -DWAIT_T=int \
  2315.     -DCK_CURSES -DCK_NEWTERM -DBIGBUFOK -DSELECT -DNOGETUSERSHELL \
  2316.     $(KFLAGS) -O" "LIBS = -lsocket -lnsl -lcurses -ltermcap"
  2317.  
  2318. #Sequent DYNIX 3.0.x
  2319. dynix3:
  2320.     @echo Making C-Kermit $(CKVER) for Sequent DYNIX 3.0.x...
  2321.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2322.     "CFLAGS= -DBSD43 -DACUCNTRL -DTCPSOCKET -O \
  2323.     -DPWUID_T=int -DGID_T=int $(KFLAGS)"
  2324.  
  2325. #Sequent DYNIX 3.0.x, no ACUCNTRL
  2326. dynix3noacu:
  2327.     @echo Making C-Kermit $(CKVER) for Sequent DYNIX 3.0.x...
  2328.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2329.     "CFLAGS= -DBSD43 -DLCKDIR -DTCPSOCKET -O \
  2330.     -DUID_T=int -DGID_T=int $(KFLAGS)"
  2331.  
  2332. #Sequent DYNIX 3.1.x
  2333. dynix31:
  2334.     @echo Making C-Kermit $(CKVER) for Sequent DYNIX 3.1.x...
  2335.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2336.     "CFLAGS= -O -DDCLPOPEN -DLCKDIR -DBSD4 -DTCPSOCKET $(KFLAGS)"
  2337.  
  2338. #Sequent DYNIX 3.1.2, as above but with curses, to be compiled by gcc 2.3.3.
  2339. dynix31c:
  2340.     @echo 'Making C-Kermit $(CKVER) for Sequent DYNIX 3.1.2, curses...'
  2341.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2342.     "CFLAGS= -O2 -DDCLPOPEN -DACUCNTRL \
  2343.     -DBSD43 -DTCPSOCKET -DCK_CURSES -DUID_T=int \
  2344.     $(KFLAGS)" "LIBS= -lcurses -ltermcap"
  2345.  
  2346. #Convex C1 with Berkeley Unix
  2347. convex:
  2348.     @echo Making C-Kermit $(CKVER) for Convex C1 / BSD...
  2349.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  2350.     "CFLAGS= -DBSD4 -DNOLEARN $(KFLAGS) -Dmsleep=mnap"
  2351.  
  2352. #Convex C210 with Convex/OS 8
  2353. convex8:
  2354.     @echo Making C-Kermit $(CKVER) for Convex C210 with OS 8
  2355.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2356.     "CFLAGS= -DBSD4 -DTCPSOCKET -DNODEBUG -DDIRENT -DNOFILEH \
  2357.     $(KFLAGS) -DSIG_V -Dmsleep=mnap"
  2358.  
  2359. #Convex C2 with Convex OS 9.1 (should also work with 8.1 or later)
  2360. #with ANSI C compiler, uses BSD 4.3 uucp lockfile convention.
  2361. convex9:
  2362.     @echo Making C-Kermit $(CKVER) for Convex C210 with OS 9.1
  2363.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2364.     "CFLAGS= -DPOSIX -DCONVEX9 -DNOIEXTEN -DDIRENT -DNOFILEH -DTCPSOCKET \
  2365.     -D__STDC__ -DLCKDIR -Dmsleep=mnap -O -ext -tm c1 $(KFLAGS)" \
  2366.     "LNKFLAGS = -ext"
  2367.  
  2368. #Convex C2 with Convex OS 10.1 or later
  2369. #with gcc 2.x C compiler
  2370. convex10gcc:
  2371.     @echo Making C-Kermit $(CKVER) for Convex C2 with OS 10.1 using gcc
  2372.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2373.     "CFLAGS= -DPOSIX -DCONVEX9 -DNOIEXTEN -DDIRENT -DNOFILEH -DTCPSOCKET \
  2374.     -D__STDC__  -Dmsleep=mnap -O2 $(KFLAGS)" CC=gcc CC2=gcc
  2375.  
  2376. #Cray X-MP or Y-MP UNICOS 6.x or 7.x.
  2377. #NOTE: NPROC tells how many parallel makes to run.  If your Cray has multiple
  2378. #processors, you can set NPROC up to the number of CPUs, e.g. NPROC=16.
  2379. cray:
  2380.     @echo 'Making C-Kermit $(CKVER) for Cray X/Y-MP UNICOS 6.x or 7.0...
  2381.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} NPROC=1 \
  2382.     "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -DTCPSOCKET $(KFLAGS) -O1"
  2383.  
  2384. #Cray X-MP or Y-MP UNICOS 8.0 Alpha.
  2385. cray8:
  2386.     @echo 'Making C-Kermit $(CKVER) for Cray X/Y-MP UNICOS 8.0 Alpha...
  2387.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} NPROC=1 \
  2388.     "CFLAGS= -DSVR4 -DDIRENT -DHDBUUCP -DTCPSOCKET $(KFLAGS) -O1"
  2389.  
  2390. #Cray X-MP or Y-MP UNICOS 9.0.
  2391. #This one was executed successfully for C-Kermit 8.0.209.
  2392. #Earlier versions of Unicos will probably need the same flags.
  2393. cray9:
  2394.     @echo 'Making C-Kermit $(CKVER) for Cray X/Y-MP UNICOS 9.0...
  2395.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} NPROC=1 \
  2396.     "CFLAGS= -DSVR4 -DDIRENT -DHDBUUCP -DNOLFDEVNO \
  2397.     -DTCPSOCKET $(KFLAGS) -O1"
  2398.  
  2399. #Cray-2 or Cray 3-CSOS
  2400. #NOTE: NPROC tells how many parallel makes to run.  If your Cray has multiple
  2401. #processors, you can set NPROC up to the number of CPUs, e.g. NPROC=16.
  2402. craycsos:
  2403.     @echo 'Making C-Kermit $(CKVER) for Cray-2/3 CSOS
  2404.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} NPROC=1 \
  2405.     "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -DTCPSOCKET \
  2406.     $(KFLAGS) -DCK_ANSIC -DCK_CURSES" "LIBS=-lnet"
  2407.  
  2408. #NeXTSTEP 1.0 through 3.2.
  2409. #Includes fullscreen file transfer display (curses) and TCP/IP support.
  2410. #Uses shared library to make executable program about 80K smaller.
  2411. #Remove "LIBS = -lsys_s" if this causes trouble.
  2412. next:
  2413.     @echo Making C-Kermit $(CKVER) for NeXTSTEP...
  2414.     @echo 'If you get errors in ckutio.c about w_S, w_T, etc,'
  2415.     @echo 'add KFGLAGS=-DNOREDIRECT to your make command.'
  2416.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2417.     "CFLAGS= -DNEXT -DTCPSOCKET -DLCKDIR -DNOPUTENV -DFNFLOAT \
  2418.     -pipe -DCK_CURSES $(KFLAGS) -O -w" "LIBS = -lsys_s -lcurses -ltermcap"
  2419.  
  2420. nextc:
  2421.     $(MAKE) "MAKE=$(MAKE)" next KTARGET=$${KTARGET:-$(@)}
  2422.  
  2423. nextg:
  2424.     $(MAKE) "MAKE=$(MAKE)" next KFLAGS=-Wall KTARGET=$${KTARGET:-$(@)}
  2425.  
  2426. nextgc:
  2427.     $(MAKE) "MAKE=$(MAKE)" next KFLAGS=-Wall KTARGET=$${KTARGET:-$(@)}
  2428.  
  2429. #NeXTSTEP 3.3.
  2430. #Includes fullscreen file transfer display and TCP/IP.
  2431. next33:
  2432.     @echo Making C-Kermit $(CKVER) for NeXTSTEP 3.3...
  2433.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2434.     "CFLAGS= -DNEXT33 -DTCPSOCKET -DLCKDIR -DNOPUTENV -DFNFLOAT \
  2435.     -pipe -DCK_CURSES $(KFLAGS) -O -w" "LIBS = -lsys_s -lcurses -ltermcap"
  2436.  
  2437. #OPENSTEP 4.2 for Sparc, m680x0, HP PA-RISC, and Intel.
  2438. #Includes fullscreen file transfer display and TCP/IP.
  2439. #ckcpro.c compiled without optimization because it crashes the compiler.
  2440. openstep42:
  2441.     @echo Making C-Kermit $(CKVER) for OPENSTEP 4.2...
  2442.     $(MAKE) ckcpro.$(EXT) \
  2443.     "CFLAGS= -DOPENSTEP42 -DNEXT33 -DTCPSOCKET -DLCKDIR -DNOPUTENV \
  2444.     -DFNFLOAT -pipe -DCK_CURSES $(KFLAGS) -w"
  2445.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2446.     "CFLAGS= -DOPENSTEP42 -DNEXT33 -DTCPSOCKET -DLCKDIR -DNOPUTENV \
  2447.     -DFNFLOAT -pipe -DCK_CURSES $(KFLAGS) -O -w" \
  2448.     "LIBS = -lsys_s -lcurses -ltermcap"
  2449.  
  2450. #NeXT with malloc debugger
  2451. nextmd:
  2452.     @echo Making C-Kermit $(CKVER) for NeXT with malloc debugging...
  2453.     $(MAKE) mermit KTARGET=$${KTARGET:-$(@)} \
  2454.     "CFLAGS= -DNEXT -DTCPSOCKET -DLCKDIR -DNOPUTENV -DFNFLOAT \
  2455.     -DCK_CURSES $(KFLAGS) -O -w -Dmalloc=dmalloc -Dfree=dfree -DMDEBUG" \
  2456.     "LIBS = -lsys_s -lcurses -ltermcap"
  2457.  
  2458. #Build for NeXTSTEP with "fat" binaries (MABs) that run on both Motorola
  2459. #and Intel platforms.
  2460. nextfat:
  2461.     $(MAKE) "MAKE=$(MAKE)" next KTARGET=$${KTARGET:-$(@)} \
  2462.     "KFLAGS=-Wall -arch m68k -arch i386" "LNKFLAGS = -arch m68k -arch i386"
  2463.  
  2464. #NeXTSTEP on Intel Platforms.
  2465. next486:
  2466.     @echo Making C-Kermit $(CKVER) for NeXTSTEP on Intel Platforms...
  2467.     @echo 'If you get errors in ckutio.c about w_S, w_T, etc,'
  2468.     @echo 'add KFGLAGS=D-DNOREDIRECT to your make command.'
  2469.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2470.     "CFLAGS= -DNEXT -DTCPSOCKET -DLCKDIR -DNOPUTENV -DFNFLOAT \
  2471.     -DNODEBUG -O3 -fno-omit-frame-pointer -fschedule-insns2 -pipe \
  2472.     -DCK_CURSES $(KFLAGS) -w" "LIBS = -lsys_s -lcurses -ltermcap"
  2473.  
  2474. #Single binary that runs on NeXT 68030 and 68040, Intel, HP, and Sparc,
  2475. #as well as on OpenStep/Mach.
  2476. nextquadfat:
  2477.     $(MAKE) "MAKE=$(MAKE)" next KTARGET=$${KTARGET:-$(@)} \
  2478.     "KFLAGS=-Wall -arch m68k -arch i386 -arch hppa -arch sparc" \
  2479.     "LNKFLAGS = -arch m68k -arch i386 -arch hppa -arch sparc"
  2480.  
  2481. #BeBox
  2482. beboxdr7:
  2483.     @echo 'Making C-Kermit $(CKVER) for the BeBox...'
  2484.     @echo 'Link step will fail with default Metroworks linker 64K limit.'
  2485.     @echo 'Code Warrior Gold required to link big programs.'
  2486.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  2487.     "CC=/boot/develop/tools/mwcc" "CC2=/boot/develop/tools/mwld" \
  2488.     "CFLAGS= -DBEBOX -DBE_DR_7 -DPOSIX -DNOUUCP -DNOLEARN $(KFLAGS) -O"
  2489.  
  2490. #BeBox BeOS DR7 only
  2491. bebox:
  2492.     @echo 'Making C-Kermit $(CKVER) for BeBox...'
  2493.     @echo 'Link step will fail with default Metroworks linker 64K limit.'
  2494.     @echo 'Code Warrior Pro 3.0 for BeBox required to link big programs.'
  2495.     $(MAKE) wermit "CC=mwcc" "CC2=mwld" KTARGET=$${KTARGET:-$(@)} \
  2496.     "CFLAGS= -DBEBOX -DPOSIX -DNOLEARN -DNOUUCP $(KFLAGS) -O"
  2497.  
  2498. #BeOS 4.5
  2499. #We have to use the wermit target because 'fd_set' is unknown.
  2500. beos45:
  2501.     $(MAKE) wermit "CC=$(CC)" "CC2=$(CC2)" KTARGET=$${KTARGET:-$(@)} \
  2502.     "CFLAGS= -DBEOS -DBEOS45 -DPOSIX -DNOIKSD -DNOREALPATH -DSYSTIMEH \
  2503.     -DNOCOTFMC -DNOUUCP -DNOLEARN $(KFLAGS) -O" \
  2504.     "LIBS = $(LIBS)"
  2505.  
  2506. #BeOS 4.5
  2507. beos45net:
  2508.     $(MAKE) beos45 "KFLAGS=-DTCPSOCKET -DNO_DNS_SRV $(KFLAGS)" \
  2509.     "LIBS=-lnet -lnetapi"
  2510.  
  2511. #Plan 9 from Bell Labs
  2512. plan9:
  2513.     @echo 'C-Kermit for Plan 9 from Bell Labs - calling ckpker.mk...'
  2514.     make -f ckpker.mk
  2515.  
  2516. #POSIX
  2517. posix:
  2518.     @echo 'Making C-Kermit $(CKVER) for pure POSIX...'
  2519.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  2520.     "CFLAGS= -DPOSIX -DNOUUCP -DNOLEARN $(KFLAGS) -O"
  2521.  
  2522. # PowerMAX OS (SVR4) from Concurrent (tested on PowerMAX 5.1)
  2523. powermax:
  2524.     @echo 'Making C-Kermit $(CKVER) for Concurrent PowerMAX OS...'
  2525.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2526.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DPOWERMAX \
  2527.     -DNETPTY -DHAVE_STREAMS -DHAVE_GRANTPT -DHAVE_PTSNAME -DPUSH_PTEM \
  2528.     -DPUSH_LDTERM -DPUSH_TTCOMPAT \
  2529.     -DSTERMIOX -DTCPSOCKET -DCK_CURSES $(KFLAGS)" \
  2530.     "LIBS= -lsocket -lnsl -lresolv -lcurses -lgen -lc -lucbc"
  2531.  
  2532. #Berkeley Software Design Inc. BSDI
  2533. # Substitute "LIBS= -lnewcurses -ltermcap" if desired.
  2534. bsdi:
  2535.     @echo 'Making C-Kermit $(CKVER) for BSDI ...'
  2536.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2537.     "CFLAGS= -DBSD44 -DSETREUID -DSW_ACC_ID -DBIGBUFOK -DFIXCRTSCTS \
  2538.     -DTCPSOCKET -DCK_CURSES -DFNFLOAT $(KFLAGS) -O" \
  2539.     "LIBS= -lcurses -ltermcap -lm"
  2540.  
  2541. #Berkeley Software Design Inc. BSDI - has higher serial speeds than 1.x.
  2542. bsdi2:
  2543.     $(MAKE) "MAKE=$(MAKE)" bsdi KTARGET=$${KTARGET:-$(@)} \
  2544.     "KFLAGS=-DBSDI2 $(KFLAGS)"
  2545.  
  2546. bsdi3:
  2547.     $(MAKE) "MAKE=$(MAKE)" bsdi KTARGET=$${KTARGET:-$(@)} \
  2548.     "KFLAGS=-DBSDI2 -DBSDI3 $(KFLAGS)"
  2549.  
  2550. bsdi4:
  2551.     $(MAKE) "MAKE=$(MAKE)" bsdi KTARGET=$${KTARGET:-$(@)} \
  2552.     "KFLAGS=-DBSDI2 -DBSDI3 -DBSDI4 -DTPUTSFNTYPE=void -DTPUTSISVOID \
  2553.     -m486 $(KFLAGS)"
  2554.  
  2555. # (old name for the above)
  2556. bsdiposix:
  2557.     $(MAKE) "MAKE=$(MAKE)" bsdi
  2558.  
  2559.  
  2560. #Build a BSDI 4.x binary that also runs under FreeBSD (Terry Kennedy).
  2561. #But watch out for details like serial-port locking.
  2562. bsdix:
  2563.     $(MAKE) "MAKE=$(MAKE)" bsdi KTARGET=$${KTARGET:-$(@)} \
  2564.     "KFLAGS=-DBSDI2 -DBSDI3 -DBSDI4 -DTPUTSFNTYPE=void -DTPUTSISVOID \
  2565.     -m486 $(KFLAGS)" "LNKFLAGS=-static -Wl,-m,i386bsdi -Wl,-e,_start"
  2566.  
  2567. #Pyramid 9XXX (e.g. 9845) or MIServer T series, OSx 4.4b thru 5.1
  2568. pyramid:
  2569.     @echo Making C-Kermit $(CKVER) for Pyramid Dual Port OSx
  2570.     ucb $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2571.     "CFLAGS= -DBSD43 -DTCPSOCKET -DPYRAMID -O $(KFLAGS)" "LNKFLAGS = -s"
  2572.  
  2573. #Pyramid Dual Port OSx using HoneyDanBer UUCP, curses and TCP
  2574. pyramid-hdb:
  2575.     @echo Making C-Kermit $(CKVER) for Pyramid Dual Port OSx
  2576.     ucb $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2577.     "CFLAGS= -DBSD43 -DTCPSOCKET -DHBDUUCP -DCK_CURSES -O $(KFLAGS)" \
  2578.     "LNKFLAGS = -s" "LIBS = -lcurses -ltermcap"
  2579.  
  2580. #Pyramid DC/OSx (UNIX System V R4).
  2581. #Has <sys/termiox.h>, regular Berkeley sockets library, i.e. in.h and inet.h
  2582. #are not misplaced in sys (rather than netinet and arpa, respectively).
  2583. #Uses ANSI C.
  2584. #NOTE: Remove -O and Olimit:2500 from CFLAGS if TELNET connections do not work.
  2585. pyrdcosx:
  2586.     @echo 'Making C-Kermit $(CKVER) for Pyramid DC/OSx...'
  2587.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2588.     "CFLAGS = -Xa -O -DSVR4 -DDIRENT -DHDBUUCP -DSELECT -DNOGETUSERSHELL \
  2589.     -DCK_CURSES -DSTERMIOX -DTCPSOCKET -DPYRAMID -K Olimit:3100 \
  2590.     -DNO_DNS_SRV $(KFLAGS)" "LIBS= -lcurses -lsocket -lnsl" "LNKFLAGS = -s"
  2591.  
  2592. #IBM's AIX 3.0 on IBM 370 mainframe, tested on AIX F44 thru F50.
  2593. aix370:
  2594.     @echo Making C-Kermit $(CKVER) for IBM System/370 AIX 3.0...
  2595.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2596.     "CFLAGS= -DAIX370 -DTCPSOCKET -DLCKDIR -DDIRENT $(KFLAGS)" \
  2597.     "LIBS = -lbsd"
  2598.  
  2599. #IBM's AIX/ESA 2.1 (OSF/1) on IBM mainframe
  2600. aixesa:
  2601.     @echo Making C-Kermit $(CKVER) for IBM AIX/ESA...
  2602.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2603.     "CFLAGS= -DAIXESA -DTCPSOCKET $(KFLAGS) -O"
  2604.  
  2605. #IBM PS/2 with AIX 1.0 thru 1.3.
  2606. #  Reports indicate that -O switch must be omitted.
  2607. #  It is also possible that "make bsd" will work (reports welcome).
  2608. #  One report said "make LIBS=-lbsd bsd" did the trick.
  2609. #  NOTLOG is to get around a 'tlog' symbol defined in one of the headers.
  2610. ps2aix:
  2611.     @echo 'Making C-Kermit $(CKVER) for IBM AIX 1.x PS/2...'
  2612.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  2613.     "CFLAGS = -DATTSV -DNOREALPATH -DPS2AIX10 -DSIG_V \
  2614.     -DNOUNICODE -DNOTLOG -DNOLEARN $(KFLAGS) -i" \
  2615.     "LNKFLAGS = -i"
  2616.  
  2617. ps2aixnetc:
  2618.     @echo 'Making C-Kermit $(CKVER) for IBM AIX 1.x PS/2...'
  2619.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  2620.     "CFLAGS = -DATTSV -DNOREALPATH -DPS2AIX10 -DTCPSOCKET -DCK_CURSES \
  2621.     -DSIG_V -DNOUNICODE -DNOTLOG -DNOLEARN $(KFLAGS) -i" \
  2622.     "LIBS = -lcurses" "LNKFLAGS = -i"
  2623.  
  2624. ps2aix3:
  2625.     $(MAKE) ps2aix KTARGET=$${KTARGET:-$(@)}
  2626.  
  2627. #IBM RT PC with AIX 2.2.1, valid as of C-Kermit 8.0.
  2628. #NOTLOG because of a conflict in <sys/termio.h>.
  2629. #This one has unique and strange lockfiles.
  2630. #  -O removed on purpose (8.0).
  2631. #  In case of "compiler error: symbol table full", increase the -Nn number.
  2632. #  In case of "compiler error: Constant pool too big", boost the -Np number.
  2633. #  Add -DNOPUTENV if putenv() causes trouble.
  2634. #  Put -DNOIKSD back if IKSD-related problems occur.
  2635. rtaix:
  2636.     @echo 'Making C-Kermit $(CKVER) for IBM RT PC, AIX 2.2.1...'
  2637.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  2638.     "CFLAGS = -DATTSV -DRTAIX -DHDBUUCP -DDIRENT -DNOTLOG -DTCPSOCKET \
  2639.     -DNOGETUSERSHELL -DCLSOPN -DNOREALPATH -DNOUNICODE -DBSD_INCLUDES \
  2640.     -DUSE_LSTAT -DFNFLOAT -Nn2500 -Np1000 -Wq,-SJ2 -a -w $(KFLAGS)" \
  2641.     "LIBS = -lm $(LIBS)" "LNKFLAGS = -s"
  2642.  
  2643. #IBM RT PC with AIX 2.2.1 + curses
  2644. rtaixc:
  2645.     $(MAKE) rtaix "KFLAGS=-DCK_CURSES" "LIBS=-lcurses"
  2646.  
  2647. #IBM RT PC with AIX (ACIS) 2.2.1 (BSD 4.3)
  2648. # Add -O, -DDYNAMIC, -s, etc, if they work.
  2649. rtacis:
  2650.     @echo Making C-Kermit $(CKVER) for RT PC with ACIS 2.2.1 = BSD 4.3...
  2651.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  2652.     "CFLAGS= -DBSD4 -DTCPSOCKET -DNOREALPATH -DNOIKSD -DNOPUTENV \
  2653.     $(KFLAGS) -U__STDC__" "LNKFLAGS = -s"
  2654.  
  2655. #IBM AIX 3.0, 3.1, or 3.2 for RISC System/6000.
  2656. rs6000:
  2657.     @echo Making C-Kermit $(CKVER) for IBM AIX 3.0 or 3.1, RS/6000...
  2658.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2659.     "CFLAGS= -DAIXRS -DTCPSOCKET -DSVR3 -DDIRENT -DCK_ANSIC \
  2660.     -DCK_POLL -DCLSOPN -DSELECT_H -DNOTTYLOCK -O $(KFLAGS)" \
  2661.     "LNKFLAGS = -s"
  2662.  
  2663. #IBM AIX 3.0, 3.1, or 3.2 for RISC System/6000, with curses.
  2664. rs6000c:
  2665.     @echo Making C-Kermit $(CKVER) for IBM AIX 3.0 or 3.1, RS/6000...
  2666.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2667.     "CFLAGS= -DAIXRS -DTCPSOCKET -DSVR3 -DDIRENT -DCK_ANSIC \
  2668.     -DCK_POLL -DCLSOPN -DCK_CURSES -DSELECT_H -DNOTTYLOCK -DNOREALPATH \
  2669.     -O $(KFLAGS)" "LIBS= -lcurses -ltermcap" "LNKFLAGS = -s"
  2670.  
  2671. aix30:
  2672.     $(MAKE) rs6000 KTARGET=$${KTARGET:-$(@)}
  2673.  
  2674. aix31:
  2675.     $(MAKE) rs6000 KTARGET=$${KTARGET:-$(@)}
  2676.  
  2677. #IBM AIX 3.2 for RISC System/6000.
  2678. #In case of "subprogram too complex" warnings, add "-qmaxmem=16000" to CFLAGS.
  2679. rs6aix32:
  2680.     @echo Making C-Kermit $(CKVER) for IBM AIX 3.2, RS/6000...
  2681.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2682.     "CFLAGS= -DAIXRS -DTCPSOCKET -DSVR4 -DDIRENT -DCK_ANSIC -DNOREALPATH \
  2683.     -DSELECT_H -DCLSOPN -DNOTTYLOCK -O $(KFLAGS)" "LNKFLAGS = -s"
  2684.  
  2685. #IBM AIX 3.2 for RISC System/6000.
  2686. rs6aix32c:
  2687.     @echo Making C-Kermit $(CKVER) for IBM AIX 3.2, RS/6000, TCP+curses...
  2688.     @echo In case of Subprogram Too Complex warnings,
  2689.     @echo add -qmaxmem=16000 to CFLAGS.
  2690.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2691.     "CFLAGS= -DAIXRS -DTCPSOCKET -DSVR4 -DDIRENT -DCK_ANSIC -DNOREALPATH \
  2692.     -DCLSOPN -DCK_CURSES -DSELECT_H -DNOTTYLOCK -O $(KFLAGS)" \
  2693.     "LNKFLAGS = -s" "LIBS=-lcurses"
  2694.  
  2695. aix32:
  2696.     $(MAKE) rs6aix32c KTARGET=$${KTARGET:-$(@)}
  2697.  
  2698. #IBM AIX 4.1, 4.1.x on RISC System/6000 or Power Series.
  2699. #Generates common binary for all platforms if using xlc (IBM C compiler).
  2700. #When using gcc, add -mcpu=common to generate common binary.
  2701. #Note that this one needs CK_NEWTERM.
  2702. # Add -bbigtoc in case ld fails with TOC overflow.
  2703. aix41:
  2704.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.1.1 RS/6000 or PowerPC...
  2705.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2706.     "CFLAGS= -DAIXRS -DAIX41 -DSVR4 -DSTERMIOX -DTCPSOCKET -DDIRENT \
  2707.     -DCK_ANSIC -DCLSOPN -DCK_CURSES -DCK_NEWTERM -DSELECT -DSELECT_H \
  2708.     -DNOGETUSERSHELL -qmaxmem=16000 -O $(KFLAGS)" \
  2709.     "LNKFLAGS = -s" "LIBS=-lcurses"
  2710.  
  2711. #Ditto but with gcc.
  2712. #Remove "CC=gcc CC2=gcc" if you have gcc installed as cc.
  2713. aix41g:
  2714.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.1.1 RS/6000 or PowerPC...
  2715.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC=gcc" "CC2=gcc" \
  2716.     "CFLAGS= -DAIXRS -DAIX41 -DSVR4 -DSTERMIOX -DTCPSOCKET -DDIRENT \
  2717.     -DCK_ANSIC -DCLSOPN -DCK_CURSES -DCK_NEWTERM -DSELECT -DSELECT_H \
  2718.     -DNOGETUSERSHELL -O $(KFLAGS)" \
  2719.     "LNKFLAGS = -s -Xlinker -bbigtoc" "LIBS=-lcurses"
  2720.  
  2721. # Add -bbigtoc in case ld fails with TOC overflow.
  2722. aix41+krb5+krb4:
  2723.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.1.1 RS/6000 or PowerPC...
  2724.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2725.     "CFLAGS= -DAIXRS -DAIX41 -DSVR4 -DSTERMIOX -DTCPSOCKET -DDIRENT \
  2726.     -DCK_ANSIC -DCLSOPN -DCK_CURSES -DCK_NEWTERM -DSELECT -DSELECT_H \
  2727.     -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 -DKRB4 -DKRB524 \
  2728.     -DCK_ENCRYPTION -DCK_DES $(K5INC) $(K5INC)/krb5  \
  2729.     -DNOGETUSERSHELL -qmaxmem=16000 -O $(KFLAGS)" \
  2730.     "LNKFLAGS = -s" \
  2731.     "LIBS = $(K5LIB) -lcurses -lkrb4 -ldes425 -lkrb5 \
  2732.     -lcom_err -lk5crypto -lgssapi_krb5"
  2733.  
  2734. #Old name for "aix41".
  2735. rs6aix41c:
  2736.     $(MAKE) aix41 KTARGET=$${KTARGET:-$(@)}
  2737.  
  2738. #IBM AIX 4.1, 4.1.x, or 4.2 on RISC System/6000 or Power Series,
  2739. # with X.25 support
  2740. #Generates common binary for all platforms if using xlc (IBM C compiler).
  2741. #When using gcc, add -mcpu=common to generate common binary.
  2742. # Add -bbigtoc in case ld fails with TOC overflow.
  2743. aix41x25:
  2744.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.1.1 RS/6000 or PowerPC...
  2745.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2746.     "CFLAGS= -DAIXRS -DAIX41 -DSVR4 -DSTERMIOX -DTCPSOCKET -DDIRENT \
  2747.     -DCK_ANSIC -DCLSOPN -DCK_CURSES -DCK_NEWTERM -DSELECT -DSELECT_H \
  2748.     -DIBMX25 -DDEBUG -DNOGETUSERSHELL -qmaxmem=16000 -g $(KFLAGS)" \
  2749.     "LNKFLAGS = -g -bI:/lib/pse.exp" "LIBS=-lcurses -lodm -lcfg"
  2750.     -@echo "]0;kermit done\c"
  2751.  
  2752. #As above but without -g in LNKFLAGS.
  2753. # Add -bbigtoc in case ld fails with TOC overflow.
  2754. aix41x25o:
  2755.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.1.1 RS/6000 or PowerPC...
  2756.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2757.     "CFLAGS= -DAIXRS -DAIX41 -DSVR4 -DSTERMIOX -DTCPSOCKET -DDIRENT \
  2758.     -DCK_ANSIC -DCLSOPN -DCK_CURSES -DCK_NEWTERM -DSELECT -DSELECT_H \
  2759.     -DIBMX25 -DNODEBUG -DNOGETUSERSHELL -qmaxmem=16000 $(KFLAGS)" \
  2760.     "LNKFLAGS = -bI:/lib/pse.exp" "LIBS=-lcurses -lodm -lcfg"
  2761.     -@echo "]0;kermit done\c"
  2762.  
  2763. #AIX 4.2 -- Must have CK_NEWTERM or echoing is lost after curses.
  2764. # Add -bbigtoc in case ld fails with TOC overflow.
  2765. aix42:
  2766.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.2 or higher...
  2767.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2768.     "CFLAGS= -DAIXRS -DAIX41 -DAIX42 -DSVR4 -DSTERMIOX -DTCPSOCKET \
  2769.     -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DCK_NEWTERM -DFNFLOAT \
  2770.     -DSELECT -DSELECT_H -DNOGETUSERSHELL -qmaxmem=16000 -O $(KFLAGS)" \
  2771.     "LNKFLAGS = -s" "LIBS=-lcurses -lm"
  2772.  
  2773. #AIX 4.3 -- Must NOT have CK_NEWTERM or else C-Kermit hangs after curses.
  2774. # -bbigtoc needed on some systems but not others to avoid TOC overflow.
  2775. # "man ld" says -bbigtoc makes program run slower.
  2776. aix43:
  2777.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.3 or higher...
  2778.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2779.     "CFLAGS= -DAIXRS -DAIX41 -DAIX43 -DSVR4 -DSTERMIOX -DTCPSOCKET \
  2780.     -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DSELECT -DSELECT_H \
  2781.     -DFNFLOAT -DNOGETUSERSHELL -qmaxmem=16000 -bbigtoc -O $(KFLAGS)" \
  2782.     "LNKFLAGS = -s" "LIBS=-lcurses -lm"
  2783.  
  2784. #AIX 4.3 with IBM X.25.
  2785. aix43x25:
  2786.     @echo "Making C-Kermit $(CKVER) for IBM AIX 4.3 with X.25..."
  2787.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2788.     "CFLAGS= -DAIXRS -DAIX41 -DAIX43 -DSVR4 -DSTERMIOX -DTCPSOCKET \
  2789.     -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DSELECT -DSELECT_H \
  2790.     -DFNFLOAT -DNOGETUSERSHELL -DIBMX25 \
  2791.     -qmaxmem=16000 -bbigtoc -O $(KFLAGS)" \
  2792.     "LNKFLAGS = -bI:/lib/pse.exp" "LIBS=-lcurses -lodm -lcfg -lm"
  2793.  
  2794. #AIX 4.3 -- Must NOT have CK_NEWTERM or else C-Kermit hangs after curses.
  2795. # -mminimal-toc needed on some systems but not others to avoid TOC overflow.
  2796. # "man ld" says -bbigtoc makes program run slower.
  2797. aix43g:
  2798.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.3 gcc...
  2799.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  2800.     "CFLAGS= -mminimal-toc -g -O -DAIXRS -DAIX41 -DAIX43 -DSVR4 \
  2801.     -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DSELECT -DSELECT_H \
  2802.     -DSTERMIOX -DTCPSOCKET -DFNFLOAT -DNOGETUSERSHELL $(KFLAGS)" \
  2803.     "LIBS=-lcurses -lm"
  2804.  
  2805. aix43gcc:
  2806.     $(MAKE) aix43g
  2807.  
  2808. # None of the following aix43gcc attempts work on a gcc-only AIX 4.3.3 box.
  2809. # It just plain can't find the math routines (fmod, pow, exp, sqrt, log10,...)
  2810. # Which is odd because nm /usr/lib/libC.a finds them...
  2811.  
  2812. #in case aix43gcc can't find its math library...
  2813. aix43gccx:
  2814.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.3 gcc...
  2815.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  2816.     "CFLAGS= -mminimal-toc -g -O -DAIXRS -DAIX41 -DAIX43 -DSVR4 \
  2817.     -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DSELECT -DSELECT_H \
  2818.     -DSTERMIOX -DTCPSOCKET -DFNFLOAT -DNOGETUSERSHELL $(KFLAGS)" \
  2819.     "LIBS= -L/usr/local/lib/gcc-lib/powerpc-ibm-aix4.3.1.0/2.95.2 \
  2820.     -lcurses -bloadmap -bnoquiet"
  2821.  
  2822. #in case aix43gccx can't find its math library...
  2823. aix43gccy:
  2824.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.3 gcc...
  2825.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  2826.     "CFLAGS= -mminimal-toc -g -O -DAIXRS -DAIX41 -DAIX43 -DSVR4 \
  2827.     -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DSELECT -DSELECT_H \
  2828.     -DSTERMIOX -DTCPSOCKET -DFNFLOAT -DNOGETUSERSHELL $(KFLAGS)" \
  2829.     "LIBS= -lcurses -bloadmap -bnoquiet"
  2830.  
  2831. #in case aix43gccx can't find its math library...
  2832. aix43gccz:
  2833.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.3 gcc...
  2834.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  2835.     "CFLAGS= -mminimal-toc -g -O -DAIXRS -DAIX41 -DAIX43 -DSVR4 \
  2836.     -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DSELECT -DSELECT_H \
  2837.     -DSTERMIOX -DTCPSOCKET -DFNFLOAT -DNOGETUSERSHELL $(KFLAGS)" \
  2838.     "LIBS= -L. -lcurses -bloadmap -bnoquiet"
  2839.  
  2840.  
  2841. #AIX 4.3 with MIT Kerberos 5 and Kerberos 4 compatibility mode
  2842. # Must NOT have CK_NEWTERM or else C-Kermit hangs after curses.
  2843. # -mminimal-toc needed on some systems but not others to avoid TOC overflow.
  2844. # "man ld" says -bbigtoc makes program run slower.
  2845. aix43gcc+krb5+krb4:
  2846.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.3 or higher w/Kerberos...
  2847.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  2848.     "CFLAGS= -mminimal-toc -g -O -DAIXRS -DAIX41 -DAIX43 -DSVR4 \
  2849.     -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DSELECT -DSELECT_H \
  2850.     -DSTERMIOX -DTCPSOCKET -DFNFLOAT -DNOGETUSERSHELL \
  2851.     -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 -DKRB4 -DKRB524 \
  2852.     -DCK_ENCRYPTION -DCK_DES -funsigned-char $(K5INC) $(K5INC)/krb5 \
  2853.     $(KFLAGS)" \
  2854.     "LIBS=$(K5LIB) -lcurses -lm -lkrb4 -ldes425 -lkrb5 \
  2855.     -lcom_err -lk5crypto -lcrypt -lgssapi_krb5"
  2856.  
  2857. #AIX 4.3 with MIT Kerberos 5, Kerberos 4 compatibility mode and OpenSSL
  2858. # Must NOT have CK_NEWTERM or else C-Kermit hangs after curses.
  2859. # -mminimal-toc needed on some systems but not others to avoid TOC overflow.
  2860. # "man ld" says -bbigtoc makes program run slower.
  2861. aix43gcc+krb5+krb4+openssl:
  2862.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.3 or higher w/Kerberos...
  2863.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  2864.     "CFLAGS= -mminimal-toc -g -O -DAIXRS -DAIX41 -DAIX43 -DSVR4 \
  2865.     -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DSELECT -DSELECT_H \
  2866.     -DSTERMIOX -DTCPSOCKET -DFNFLOAT -DNOGETUSERSHELL \
  2867.     -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 -DKRB4 -DKRB524 \
  2868.     -DCK_ENCRYPTION -DCK_DES -DCK_CAST -DLIBDES -DCK_SSL \
  2869.     -funsigned-char $(K5INC) $(K5INC)/krb5 $(SSLINC) $(KFLAGS)" \
  2870.     "LIBS=$(K5LIB) $(SSLLIB) -lssl -lcrypto \
  2871.     -lcurses -lm -lkrb4 -ldes425 -lkrb5 -lcom_err -lk5crypto -lcrypt \
  2872.     -lgssapi_krb5"
  2873.  
  2874. aix43gcc+openssl:
  2875.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.3 or higher w/OpenSSL...
  2876.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  2877.     "CFLAGS= -mminimal-toc -g -O -DAIXRS -DAIX41 -DAIX43 -DSVR4 \
  2878.     -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DSELECT -DSELECT_H \
  2879.     -DSTERMIOX -DTCPSOCKET -DFNFLOAT -DNOGETUSERSHELL \
  2880.     -DCK_AUTHENTICATION -DCK_SSL -funsigned-char $(SSLINC) $(KFLAGS)" \
  2881.     "LIBS=$(SSLLIB) -lssl -lcrypto -lcurses -lm -lcrypt"
  2882.  
  2883. aix44:
  2884.     $(MAKE) aix42 "KFLAGS=-DAIX44 -qmaxmem=20000 $(KFLAGS)" \
  2885.     KTARGET=$${KTARGET:-$(@)}
  2886.  
  2887. aix45:
  2888.     $(MAKE) aix42 "KFLAGS=-DAIX45 -qmaxmem=20000 $(KFLAGS)" \
  2889.     KTARGET=$${KTARGET:-$(@)}
  2890.  
  2891. aix50:
  2892.     $(MAKE) aix42 "KFLAGS=-DAIX50 -qmaxmem=20000 $(KFLAGS)" \
  2893.     KTARGET=$${KTARGET:-$(@)}
  2894.  
  2895. aix51:
  2896.     $(MAKE) aix42 "KFLAGS=-DAIX51 -qmaxmem=20000 $(KFLAGS)" \
  2897.     KTARGET=$${KTARGET:-$(@)}
  2898.  
  2899. aix52:
  2900.     $(MAKE) aix42 "KFLAGS=-DAIX52 -qmaxmem=20000 $(KFLAGS)" \
  2901.     KTARGET=$${KTARGET:-$(@)}
  2902.  
  2903. aix53:
  2904.     $(MAKE) aix42 "KFLAGS=-DAIX53 -qmaxmem=20000 $(KFLAGS)" \
  2905.     KTARGET=$${KTARGET:-$(@)}
  2906.  
  2907. aix44gcc:
  2908.     $(MAKE) aix43g "KFLAGS=-DAIX44 $(KFLAGS)" \
  2909.     KTARGET=$${KTARGET:-$(@)}
  2910.  
  2911. aix45gcc:
  2912.     $(MAKE) aix43g "KFLAGS=-DAIX45 $(KFLAGS)" \
  2913.     KTARGET=$${KTARGET:-$(@)}
  2914.  
  2915. aix50gcc:
  2916.     $(MAKE) aix43g "KFLAGS=-DAIX50 $(KFLAGS)" \
  2917.     KTARGET=$${KTARGET:-$(@)}
  2918.  
  2919. aix51gcc:
  2920.     $(MAKE) aix43g "KFLAGS=-DAIX51 $(KFLAGS)" \
  2921.     KTARGET=$${KTARGET:-$(@)}
  2922.  
  2923. aix52gcc:
  2924.     $(MAKE) aix43g "KFLAGS=-DAIX52 $(KFLAGS)" \
  2925.     KTARGET=$${KTARGET:-$(@)}
  2926.  
  2927. aix53gcc:
  2928.     $(MAKE) aix43g "KFLAGS=-DAIX53 $(KFLAGS)" \
  2929.     KTARGET=$${KTARGET:-$(@)}
  2930.  
  2931. #Bull DPX/2 with BOS/X, like AIX/RS6000
  2932. bulldpx2:
  2933.     @echo Making C-Kermit $(CKVER) for Bull DPX/2 with BOS/X...
  2934.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  2935.     "CFLAGS= -DSVR3 -DDIRENT -DCK_ANSIC -DCKTYP_H=<sys/types.h> \
  2936.     -DCK_POLL -DNOGETUSERSHELL -DCLSOPN -DNOLEARN -O $(KFLAGS)" \
  2937.     "LNKFLAGS = -s"
  2938.  
  2939. #Sun UNIX 3.5 with gcc 2.3.3.
  2940. sunos3gcc:
  2941.     @echo Making C-Kermit $(CKVER) for Sun UNIX 3.5 and gcc...
  2942.     $(MAKE) xermit CC=gcc CC2=gcc KTARGET=$${KTARGET:-$(@)} \
  2943.     CFLAGS="-g -O -DBSD4 -DTCPSOCKET $(KFLAGS)"
  2944.  
  2945. #SunOS version 4.0, BSD environment, has saved original euid feature.
  2946. # Add "CC=/usr/ucb/cc CC2=/usr/ucb/cc" if necessary.
  2947. # Note: Including Unicode crashes the assembler in ckcuni.c.
  2948. sunos4:
  2949.     @echo Making C-Kermit $(CKVER) for SunOS 4.0, BSD environment...
  2950.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2951.     "CFLAGS= -O -DSUNOS4 -DFNFLOAT -DNOUNICODE $(KFLAGS)" \
  2952.     "LIBS=-lm"
  2953.  
  2954. #As above, but with SunLink X.25 support
  2955. sunos4x25:
  2956.     @echo SunLink X.25 support
  2957.     $(MAKE) "MAKE=$(MAKE)" sunos4 KTARGET=$${KTARGET:-$(@)} \
  2958.     "KFLAGS=$(KFLAGS) -DFNFLOAT -DSUNX25" \
  2959.     "LIBS=-lm"
  2960.  
  2961. #SUN OS version 4.1 - 4.1.3, BSD environment, has saved original euid feature.
  2962. #Uses Honey DanBer UUCP.  Requires presence of /usr/spool/locks directory.
  2963. # /var/spool/ should be a symbolic link to  /usr/spool/.
  2964. # ... or 'make xermit "CC= /usr/ucb/cc " \'
  2965. # Note: "xermit" means use the select() version of the CONNECT module.
  2966. sunos41:
  2967.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 / BSD...
  2968.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2969.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNOUNICODE $(KFLAGS)" \
  2970.     "LIBS= $(LIBS) -lresolv -lm"
  2971.  
  2972. #As above, but compiled with gcc.  Gives 24-32K size reduction
  2973. #with gcc 2.1 or 2.2.2.  CAUTION: make sure "fixincludes" has been run on
  2974. #the include files, so gcc's are in sync with the regular Sun ones!
  2975. #This includes the curses library for fullscreen file transfer display.
  2976. #NDGPWNAM needed for GCC 2.5.6, not needed for 2.4.0, but it's uncertain
  2977. #whether it will do any harm for 2.4.0 compilation -- if so, remove it.
  2978. sunos41gcc:
  2979.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 with gcc and curses...
  2980.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
  2981.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT \
  2982.     -funsigned-char $(KFLAGS)" "LIBS= -lcurses -ltermcap -lresolv -lm"
  2983.  
  2984. # As above, but without -funsigned-char so I can see the warnings that
  2985. # everybody else will get when they use ANSI compilers that don't have this
  2986. # option (gsc = gcc signed char).
  2987. sunos41gsc:
  2988.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 with gcc and curses...
  2989.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
  2990.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT \
  2991.     $(KFLAGS)" "LIBS= -lcurses -ltermcap -lresolv -lm"
  2992.  
  2993. #As above but with ckucon.c rather than ckucns.c (for testing only)
  2994. sunos41gccfork:
  2995.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 with gcc and curses...
  2996.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
  2997.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT \
  2998.     -DNOLEARN -funsigned-char $(KFLAGS)" \
  2999.     "LIBS= -lcurses -ltermcap -lresolv -lm"
  3000.  
  3001. #as above but configured for Kerberos IV
  3002. sunos41gcc+krb4:
  3003.     @echo Making C-Kermit $(CKVER) for SunOS 4.1, gcc, curses, krb4...
  3004.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
  3005.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT \
  3006.     -DTCPSOCKET -DCK_AUTHENTICATION -DCK_KERBEROS  -DKRB4 \
  3007.     -DCK_ENCRYPTION -DCK_DES -DCK_CAST -DBIGBUFOK -funsigned-char \
  3008.     $(K4INC) $(KFLAGS)" \
  3009.     "LIBS= $(K4LIB) -lcurses -ltermcap -lresolv -lm -lkrb -ldes"
  3010.  
  3011. #as above but configured for SSL/TLS
  3012. sunos41gcc+openssl:
  3013.     @echo Making C-Kermit $(CKVER) for SunOS 4.1, gcc, curses, ssl...
  3014.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
  3015.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT \
  3016.     -DCK_AUTHENTICATION -funsigned-char \
  3017.     -DCK_SSL -DTCPSOCKET -DBIGBUFOK $(SSLINC) $(KFLAGS)" \
  3018.     "LIBS= $(SSLLIB) -lcurses -ltermcap -lresolv -lm -lssl -lcrypto"
  3019.  
  3020. #as above but configured for Kerberos IV and SSL/TLS
  3021. sunos41gcc+krb4+openssl:
  3022.     @echo Making C-Kermit $(CKVER) for SunOS 4.1, gcc, curses, krb4...
  3023.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
  3024.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT \
  3025.     -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB4 -DCK_ENCRYPTION -DCK_DES \
  3026.     -DCK_CAST -DCK_SSL -DLIBDES -DTCPSOCKET -DBIGBUFOK -funsigned-char \
  3027.     $(K4INC) $(SSLINC) $(KFLAGS)" \
  3028.     "LIBS= $(K4LIB) $(SSLLIB) \
  3029.     -lcurses -ltermcap -lresolv -lm -lkrb -lssl -lcrypto"
  3030.  
  3031. #as above but configured for Kerberos IV and ZLIB enabled SSL/TLS
  3032. sunos41gcc+krb4+openssl+zlib:
  3033.     @echo Making C-Kermit $(CKVER) for SunOS 4.1, gcc, curses, krb4...
  3034.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
  3035.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT \
  3036.     -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB4 -DCK_ENCRYPTION -DCK_DES \
  3037.     -DCK_CAST -DCK_SSL -DLIBDES -DTCPSOCKET -DBIGBUFOK -funsigned-char \
  3038.     -DZLIB $(K4INC) $(SSLINC) \
  3039.     $(KFLAGS)" \
  3040.     "LIBS= $(K4LIB) $(SSLLIB) \
  3041.     -lcurses -ltermcap -lresolv -lm -lkrb -lssl -lcrypto -lz"
  3042.  
  3043. #as above but configured for Kerberos IV and SRP and ZLIB enabled SSL/TLS
  3044. sunos41gcc+krb4+srp+openssl+zlib:
  3045.     @echo "C-Kermit $(CKVER) SunOS 4.1: gcc,curses,krb4,srp,ssl,zlib..."
  3046.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
  3047.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT \
  3048.     -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB4 -DCK_ENCRYPTION -DCK_DES \
  3049.     -DCK_CAST -DCK_SSL -DLIBDES -DTCPSOCKET -DBIGBUFOK -funsigned-char \
  3050.     -DZLIB -DCK_SRP $(K4INC) $(SRPINC) $(SSLINC) $(KFLAGS)" \
  3051.     "LIBS= $(K4LIB) $(SRPLIB) $(SSLLIB) \
  3052.     -lcurses -ltermcap -lresolv -lm -lkrb -lkrypto \
  3053.     -lsrp -lssl -lcrypto -lz"
  3054.  
  3055. #as above but configured for Kerberos IV and SRP and ZLIB enabled SSL/TLS
  3056. sunos41gcc+srp+openssl+zlib:
  3057.     @echo "C-Kermit $(CKVER) SunOS 4.1: gcc,curses,srp,ssl,zlib..."
  3058.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
  3059.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT \
  3060.     -DCK_AUTHENTICATION -DCK_ENCRYPTION -DCK_DES \
  3061.     -DCK_CAST -DCK_SSL -DLIBDES -DTCPSOCKET -DBIGBUFOK -funsigned-char \
  3062.     -DZLIB -DCK_SRP $(SRPINC) $(SSLINC) \
  3063.     $(KFLAGS)" \
  3064.     "LIBS= $(SRPLIB) $(SSLLIB) \
  3065.     -lcurses -ltermcap -lresolv -lm -lkrypto -lsrp -lssl -lcrypto -lz "
  3066.  
  3067. #SUNOS 4.1 as sunos41 above, but also with curses support
  3068. sunos41c:
  3069.     @echo Curses support
  3070.     $(MAKE) "MAKE=$(MAKE)" sunos41 KTARGET=$${KTARGET:-$(@)} \
  3071.     "KFLAGS=$(KFLAGS) -DCK_CURSES -DFNFLOAT " \
  3072.     "LIBS= -lcurses -ltermcap"
  3073.  
  3074. #As SunOS 4.1.x, gcc, configured as Internet Kermit Server.
  3075. # . NOLOCAL removes capability to make connections
  3076. # . TNCODE allows server-side Telnet negotiation.
  3077. # . used to include -lpwent, why?
  3078. # . used to include -L/usr/local/lib -lm, why?
  3079. sunos41giks:
  3080.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 with gcc for IKS...
  3081.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
  3082.     "CFLAGS= -O -DSUNOS41 -DNDGPWNAM -DFNFLOAT \
  3083.     -DNOLOCAL -DTCPSOCKET -DTNCODE -DNOPUSH $(KFLAGS)" \
  3084.     "LIBS= -lm -lresolv"
  3085.  
  3086. #SUNOS 4.1 with SunLink X.25 support
  3087. sunos41x25:
  3088.     @echo SunLink X.25 support
  3089.     $(MAKE) "MAKE=$(MAKE)" wermit KTARGET=$${KTARGET:-$(@)} \
  3090.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNOUNICODE -DFNFLOAT -DSUNX25 \
  3091.     -DNOLEARN $(KFLAGS)" "LIBS= $(LIBS) -lresolv -lm"
  3092.  
  3093. #SUNOS 4.1 with SunLink X.25 support and curses
  3094. sunos41x25c:
  3095.     @echo SunLink X.25 support + curses
  3096.     $(MAKE) "MAKE=$(MAKE)" wermit KTARGET=$${KTARGET:-$(@)} \
  3097.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNOUNICODE -DFNFLOAT -DSUNX25 \
  3098.     -DCK_CURSES -DNOLEARN $(KFLAGS)" \
  3099.     "LIBS= $(LIBS) -lcurses -ltermcap -lresolv -lm"
  3100.  
  3101. #SUN with Solaris 2.0 = SunOS 5.0.
  3102. #Mostly the same as System V R4.  Don't use this with later Solaris versions.
  3103. solaris20:
  3104.     @echo 'Making C-Kermit $(CKVER) for Sun with Solaris 2.0 and curses...'
  3105.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3106.     "CFLAGS = -O -DSVR4 -DSOLARIS -DDIRENT -DHDBUUCP -DSTERMIOX \
  3107.     -DTCPSOCKET -DCK_CURSES -DFNFLOAT -DCK_POLL $(KFLAGS)" \
  3108.     "LIBS= -lsocket -lnsl -lcurses -ltermlib -lm" "LNKFLAGS = -s"
  3109.  
  3110. #SUN with Solaris 2.0.
  3111. #As above, but built with the gcc compiler from the Cygnus CD-ROM.
  3112. solaris20g:
  3113.     @echo 'Making C-Kermit $(CKVER) for Sun Solaris 2.0, gcc, and curses..'
  3114.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3115.     "CFLAGS = -O -DSVR4 -DSOLARIS -DDIRENT -DHDBUUCP -DSTERMIOX \
  3116.     -DTCPSOCKET -DCK_CURSES -DCK_POLL -DFNFLOAT $(KFLAGS)" \
  3117.     "LIBS= -lsocket -lnsl -lcurses -ltermlib -lm" "LNKFLAGS = -s" \
  3118.     CC=/opt/cygnus-sol2-1.1/bin/gcc CC2=/opt/cygnus-sol2-1.1/bin/gcc
  3119.  
  3120. #SunOS 5.1 = Solaris 2.1.
  3121. #NOTE: A C compiler is no longer bundled with SunOS 5.1, so to compile C
  3122. #programs, you might have to change your PATH to include the directory
  3123. #/usr/ccs/bin AFTER the directory containing the compiler.  SunPRO C is
  3124. #installed by default in /opt/SUNWspro/bin.  So a sample PATH might be:
  3125. #
  3126. # /usr/local/bin:/usr/bin:/opt/SUNWspro/bin:/usr/ccs/bin:\
  3127. # /usr/ucb:/usr/sbin:/sbin:.
  3128. #
  3129. # or:
  3130. #
  3131. # /usr/openwin/bin:/export/home/SUNWspro/bin:/usr/ccs/bin:/usr/sbin:/usr/bin.
  3132. #
  3133. #NOTE 2: Compilation with the Apogee C compiler (apcc) might not work,
  3134. #because it refuses to allow "-Usun".  Reportedly, newer releases of apcc
  3135. #(such as 1.2.17) work OK, use: "make -e sunos51 CC=apcc CC2=apcc".
  3136. solaris21:
  3137.     @echo 'Making C-Kermit $(CKVER) for SunOS 5.x....'
  3138.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3139.     "CFLAGS = -O -Usun -DSVR4 -DSOLARIS -DDIRENT -DHDBUUCP -DFNFLOAT \
  3140.     -DSELECT -DNODEBUG -DSTERMIOX $(KFLAGS)" "LIBS = -lm" "LNKFLAGS = -s"
  3141.  
  3142. #C-Kermit for Solaris 2.0-2.4 compiled with gcc, includes curses and TCP/IP.
  3143. #Change -O2 to -O if -O2 gives trouble.
  3144. #Remove -Usun if it causes trouble.
  3145. #Your PATH should start with something like:
  3146. #  /usr/local/gnu/bin:/usr/ccs/bin:
  3147. #Produces a huge executable -- strip with /usr/ccs/bin/strip (not Gnu strip).
  3148. #Also don't add "LNKFLAGS = -s" -- strip manually instead.
  3149. #Also note: this can NOT be linked statically - Sun makes it impossible.
  3150. #And for Solaris 2.4, you might have to replace:
  3151. # /usr/local/lib/gcc-lib/i486-sun-solaris2/2.4.5/include/sys/stat.h
  3152. #with /usr/include/sys/stat.h.
  3153. solaris2xg:
  3154.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.x with GNU cc...'
  3155.     @echo 'Please read the comments that accompany the solaris2xg target.'
  3156.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  3157.     "CFLAGS = -g -O -Usun -DSVR4 -DSOLARIS -DSTERMIOX -DSELECT -DFNFLOAT \
  3158.     -DCK_CURSES -DCK_NEWTERM -DDIRENT -DHDBUUCP -DTCPSOCKET $(KFLAGS)" \
  3159.     "LIBS= -ltermlib -lsocket -lnsl -lm -lresolv $(LIBS)"
  3160.  
  3161. #ditto but no curses.
  3162. solaris2xgnc:
  3163.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.x with GNU cc...'
  3164.     @echo 'Please read the comments that accompany the solaris2xg target.'
  3165.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  3166.     "CFLAGS = -g -O -Usun -DSVR4 -DSOLARIS -DSTERMIOX -DSELECT -DFNFLOAT \
  3167.     -DDIRENT -DHDBUUCP -DTCPSOCKET $(KFLAGS)" \
  3168.     "LIBS= -lsocket -lnsl -lm -lresolv $(LIBS)"
  3169.  
  3170. #and with Kerberos IV
  3171. solaris2xg+krb4:
  3172.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.x with GNU cc, krb4...'
  3173.     @echo 'Please read the comments that accompany the solaris2xg target.'
  3174.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  3175.     "CFLAGS = -g -O -Usun -DSVR4 -DSOLARIS -DSTERMIOX -DSELECT -DFNFLOAT \
  3176.     -DCK_CURSES -DCK_NEWTERM -DDIRENT -DHDBUUCP -DTCPSOCKET \
  3177.     -DCK_AUTHENTICATION -DCK_KERBEROS  -DKRB4 -DCK_ENCRYPTION \
  3178.     -DCK_DES -DCK_CAST -DBIGBUFOK $(K4INC) $(KFLAGS)" \
  3179.     "LIBS= $(K4LIB) -ltermlib -lsocket -lnsl -lm -lresolv -lkrb -ldes \
  3180.     $(LIBS)" 
  3181.  
  3182. #and with OpenSSL,ZLIB,PAM,SHADOW
  3183. solaris2xg+openssl+zlib+pam+shadow:
  3184.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.x with gcc, OpenSSL...'
  3185.     @echo 'Please read the comments that accompany the solaris2xg target.'
  3186.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  3187.     "CFLAGS = -g -O -Usun -DSVR4 -DSOLARIS -DSTERMIOX -DSELECT -DFNFLOAT \
  3188.     -DCK_CURSES -DCK_NEWTERM -DDIRENT -DHDBUUCP -DTCPSOCKET \
  3189.     -DCK_AUTHENTICATION -DCK_SSL -DCK_PAM -DCK_SHADOW  -DZLIB \
  3190.     -DBIGBUFOK $(SSLINC) $(KFLAGS)" \
  3191.     "LIBS= $(SSLLIB) -ltermlib \
  3192.     -lsocket -lnsl -lm -lresolv -lssl -lcrypto -lpam -lz" 
  3193.  
  3194. #Ditto but with GCC 3.1 in which you have to specify 32-bit with -m32.
  3195. #In Solaris 9 (and maybe 8) you'll also need specifiy the Library path.
  3196. #Reportedly this can't be done here, but only with:
  3197. # crle -l /usr/lib:/usr/local/ssl/lib
  3198. #prior to building.  Note: 64-bit not tested with SSL.
  3199. #For no-crypto 64-bit builds see the solaris9g64 target.
  3200. solaris2xg32+openssl+zlib+pam+shadow:
  3201.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.x with gcc, OpenSSL...'
  3202.     @echo 'Please read the comments that accompany the solaris2xg target.'
  3203.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC="gcc -m32" CC2="gcc -m32" \
  3204.     "CFLAGS = -g -O -Usun -DSVR4 -DSOLARIS -DSTERMIOX -DSELECT -DFNFLOAT \
  3205.     -DCK_CURSES -DCK_NEWTERM -DDIRENT -DHDBUUCP -DTCPSOCKET \
  3206.     -DCK_AUTHENTICATION -DCK_SSL -DCK_PAM -DCK_SHADOW  -DZLIB \
  3207.     -DBIGBUFOK $(SSLINC) $(KFLAGS)" \
  3208.     "LIBS= $(SSLLIB) -ltermlib \
  3209.     -lsocket -lnsl -lm -lresolv -lssl -lcrypto -lpam -lz" 
  3210.  
  3211. #and with Krb5,Krb4,OpenSSL,SHADOW
  3212. solaris2xg+krb5+krb4+openssl+shadow:
  3213.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.x with gcc,k5,k4,ssl...'
  3214.     @echo 'Please read the comments that accompany the solaris2xg target.'
  3215.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  3216.     "CFLAGS = -O -Usun -DSVR4 -DSOLARIS -DSTERMIOX -DSELECT -DFNFLOAT \
  3217.     -DCK_CURSES -DCK_NEWTERM -DDIRENT -DHDBUUCP -DTCPSOCKET \
  3218.     -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 -DKRB4 -DKRB524 \
  3219.     -DCK_ENCRYPTION -DCK_SSL -DCK_DES -DCK_CAST -DBIGBUFOK \
  3220.     $(K5INC) $(K5INC)/krb5 $(SSLINC) $(KFLAGS)" \
  3221.     "LIBS= $(K5LIB) $(SSLLIB) -ltermlib -lsocket -lnsl -lm -lresolv \
  3222.     -lkrb4 -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto"
  3223.  
  3224. #and with OpenSSL
  3225. solaris2xg+openssl+pam+shadow:
  3226.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.x with gcc, OpenSSL...'
  3227.     @echo 'Please read the comments that accompany the solaris2xg target.'
  3228.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  3229.     "CFLAGS = -g -O -Usun -DSVR4 -DSOLARIS -DSTERMIOX -DSELECT -DFNFLOAT \
  3230.     -DCK_CURSES -DCK_NEWTERM -DDIRENT -DHDBUUCP -DTCPSOCKET \
  3231.     -DCK_AUTHENTICATION -DCK_SSL -DCK_PAM -DCK_SHADOW \
  3232.     -DBIGBUFOK $(SSLINC) $(KFLAGS)" \
  3233.     "LIBS= $(SSLLIB) -ltermlib \
  3234.     -lsocket -lnsl -lm -lresolv -lssl -lcrypto -lpam" 
  3235.  
  3236. solaris22g:
  3237.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=-DPOSIX_CRTSCTS $(KFLAGS)" solaris2xg \
  3238.     KTARGET=$${KTARGET:-$(@)}
  3239.  
  3240. solaris23g:
  3241.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=-DPOSIX_CRTSCTS $(KFLAGS)" solaris2xg \
  3242.     KTARGET=$${KTARGET:-$(@)}
  3243.  
  3244. #Solaris 2.4 built with gcc
  3245. solaris24g:
  3246.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET:-$(@)} \
  3247.     solaris2xg "KFLAGS=-DSOLARIS24 -DPOSIX_CRTSCTS $(KFLAGS)"
  3248.  
  3249. #Solaris 2.5 built with gcc
  3250. solaris25g:
  3251.     $(MAKE) "MAKE=$(MAKE)" solaris2xg KTARGET=$${KTARGET:-$(@)} \
  3252.     "KFLAGS=-funsigned-char -DSOLARIS25 $(KFLAGS)"
  3253.  
  3254. #Solaris 2.5 built with gcc and Kerberos IV
  3255. solaris25g+krb4:
  3256.     $(MAKE) "MAKE=$(MAKE)" solaris2xg+krb4 KTARGET=$${KTARGET:-$(@)} \
  3257.     "KFLAGS=-funsigned-char -DSOLARIS25 $(KFLAGS)"
  3258.  
  3259. #Solaris 2.5 built with gcc and Kerberos V/IV, SSL, ...
  3260. solaris25g+krb5+krb4+openssl+shadow:
  3261.     $(MAKE) "MAKE=$(MAKE)" solaris2xg+krb5+krb4+openssl+shadow \
  3262.     KTARGET=$${KTARGET:-$(@)} \
  3263.     "KFLAGS=-funsigned-char -DSOLARIS25 $(KFLAGS)"
  3264.  
  3265. #Solaris 2.6 with gcc
  3266. solaris26g:
  3267.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET:-$(@)} solaris2xg \
  3268.     "KFLAGS= -DSOLARIS26 -DCK_PAM -DCK_SHADOW $(KFLAGS)" \
  3269.     "LIBS = -lpam"
  3270.  
  3271. #Solaris 2.6 with gcc and SSL
  3272. solaris26g+openssl:
  3273.     $(MAKE) "MAKE=$(MAKE)"  solaris2xg+openssl+pam+shadow \
  3274.     KTARGET=$${KTARGET:-$(@)} "KFLAGS= -DSOLARIS26 $(KFLAGS)"
  3275.  
  3276. #Solaris 2.6 with gcc, no curses (e.g. because libtermlib is missing).
  3277. solaris26gnc:
  3278.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET:-$(@)} solaris2xgnc \
  3279.     "KFLAGS= -DSOLARIS26 -DCK_PAM -DCK_SHADOW $(KFLAGS)" \
  3280.     "LIBS= -lpam"
  3281.  
  3282. #Solaris 7 with gcc (32-bit)
  3283. solaris7g:
  3284.     $(MAKE) "MAKE=$(MAKE)" solaris2xg KTARGET=$${KTARGET:-$(@)} \
  3285.     "KFLAGS=-DSOLARIS7 -DCK_PAM -DCK_SHADOW $(KFLAGS)" \
  3286.     "LIBS= -lpam"
  3287.  
  3288. #Solaris 7 with gcc + OpenSSL (32-bit)
  3289. solaris7g+openssl+zlib+pam+shadow:
  3290.     $(MAKE) "MAKE=$(MAKE)" solaris2xg+openssl+zlib+pam+shadow \
  3291.     KTARGET=$${KTARGET:-$(@)} \
  3292.     "KFLAGS=-DSOLARIS7 -DCK_PAM -DCK_SHADOW $(KFLAGS)"
  3293.  
  3294. #Solaris 7 with gcc + Kerberos IV (32-bit)
  3295. solaris7g+krb4:
  3296.     $(MAKE) "MAKE=$(MAKE)" solaris2xg+krb4 KTARGET=$${KTARGET:-$(@)} \
  3297.     "KFLAGS=-DSOLARIS7 -DCK_PAM -DCK_SHADOW $(KFLAGS)" \
  3298.     "LIBS= -lpam"
  3299.  
  3300. #Solaris 8 with gcc (32-bit)
  3301. solaris8g:
  3302.     $(MAKE) "MAKE=$(MAKE)" solaris2xg KTARGET=$${KTARGET:-$(@)} \
  3303.     "KFLAGS=-DSOLARIS8 -DCK_PAM -DCK_SHADOW $(KFLAGS)" \
  3304.     "LIBS= -lpam"
  3305.  
  3306. #Solaris 9 with gcc 3.1 (32-bit)
  3307. solaris9g:
  3308.     @echo 'Making C-Kermit $(CKVER) for Solaris 9 with gcc'
  3309.     $(MAKE) "MAKE=$(MAKE)" CC="gcc -m32" CC2="gcc -m32" xermit \
  3310.     KTARGET=$${KTARGET:-$(@)} \
  3311.     "CFLAGS = -g -O -Usun -DSVR4 -DSOLARIS -DSOLARIS9 -DUSE_STRERROR \
  3312.     -DSTERMIOX -DSELECT -DFNFLOAT -DCK_PAM -DCK_SHADOW -funsigned-char \
  3313.     -DCK_CURSES -DCK_NEWTERM -DDIRENT -DHDBUUCP -DTCPSOCKET $(KFLAGS)" \
  3314.     "LIBS= -ltermlib -lsocket -lnsl -lm -lresolv -lpam"
  3315.  
  3316. #Solaris 9 with gcc 3.1 (64-bit)
  3317. #Peeking inside struct FILE at its members ist strengst verboten.
  3318. solaris9g64:
  3319.     @echo 'Making C-Kermit $(CKVER) for Solaris 9 with gcc'
  3320.     $(MAKE) "MAKE=$(MAKE)" CC="gcc -m64" CC2="gcc -m64" xermit \
  3321.     KTARGET=$${KTARGET:-$(@)} \
  3322.     "CFLAGS = -g -O -Usun -DSVR4 -DSOLARIS     -DSOLARIS9 -DNOARROWKEYS \
  3323.     -DSTERMIOX -DSELECT -DFNFLOAT -DUSE_STRERROR -DCK_PAM -DCK_SHADOW \
  3324.     -DCK_CURSES -DCK_NEWTERM -DDIRENT -DHDBUUCP -DTCPSOCKET $(KFLAGS)" \
  3325.     "LIBS= -ltermlib -lsocket -lnsl -lm -lresolv -lpam"
  3326.  
  3327. #Solaris 8 with gcc + OpenSSL (32-bit)
  3328. solaris8g+openssl+zlib+pam+shadow:
  3329.     $(MAKE) "MAKE=$(MAKE)" solaris2xg+openssl+zlib+pam+shadow \
  3330.     KTARGET=$${KTARGET:-$(@)} "KFLAGS=-DSOLARIS8 $(KFLAGS)"
  3331.  
  3332. #Solaris 9 with gcc 3.1 + OpenSSL (32-bit)
  3333. solaris9g+openssl+zlib+pam+shadow:
  3334.     $(MAKE) "MAKE=$(MAKE)" solaris2xg32+openssl+zlib+pam+shadow \
  3335.     KTARGET=$${KTARGET:-$(@)} \
  3336.     "KFLAGS=-DSOLARIS9 -DUSE_STRERROR $(KFLAGS)"
  3337.  
  3338. #Solaris 8 with gcc + Kerberos IV (32-bit)
  3339. solaris8g+krb4:
  3340.     $(MAKE) "MAKE=$(MAKE)" solaris2xg+krb4 KTARGET=$${KTARGET:-$(@)} \
  3341.     "KFLAGS=-DSOLARIS8 -DCK_PAM -DCK_SHADOW $(KFLAGS)" \
  3342.     "LIBS= -lpam"
  3343.  
  3344. #Solaris 2.0-2.4, gcc, SunLink X.25 added.
  3345. #NOTE: Can't use xermit target with X.25.
  3346. solaris2xgx25:
  3347.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.x + X.25 with GNU cc...'
  3348.     @echo 'Please read the comments that accompany the solaris2xg entry.'
  3349.     $(MAKE) wermit CC=gcc CC2=gcc KTARGET=$${KTARGET:-$(@)} \
  3350.     "CFLAGS = -g -O -Usun -DSVR4 -DSOLARIS -DSTERMIOX -DSELECT -DSUNX25 \
  3351.     -DCK_CURSES -DCK_NEWTERM -DDIRENT -DHDBUUCP -DTCPSOCKET -DFNFLOAT \
  3352.     -DNOLEARN $(KFLAGS)" \
  3353.     "LIBS= -ltermlib -lm -L/opt/SUNWconn/lib -R/opt/SUNWconn/lib \
  3354.     -lsockx25 -lsocket -lnsl"
  3355.  
  3356. #Solaris 2.5, gcc, SunLink X.25 added.
  3357. solaris25gx25:
  3358.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET:-$(@)} solaris2xgx25 \
  3359.     "KFLAGS=-DSOLARIS25 $(KFLAGS)"
  3360.  
  3361. #Solaris 2.6, gcc, SunLink X.25 added.
  3362. solaris26gx25:
  3363.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET:-$(@)} solaris2xgx25 \
  3364.     "KFLAGS=-DSOLARIS26 -DCK_PAM -DCK_SHADOW $(KFLAGS)" \
  3365.     "LIBS= -lpam"
  3366.  
  3367. #Solaris 2.0 - 2.4, SunPro compiler, includes curses and TCP/IP.
  3368. #When using SUNWspro CC 2.0.1 under Solaris 2.3, be sure all cc patches
  3369. #are applied, otherwise corrupt or truncated object files can result.
  3370. #To build, set your PATH as follows:
  3371. #  /usr/local/bin:/usr/bin:/opt/SUNWspro/bin:/usr/ccs/bin:\
  3372. #  /usr/ucb:/usr/sbin:/sbin:.
  3373. # or (depending on where the compiler has been installed):
  3374. #  /usr/openwin/bin:/export/home/SUNWspro/bin:/usr/ccs/bin:/usr/sbin:/usr/bin.
  3375. #For additional optimization try using "-fast -xO4 -xdepend".
  3376. solaris2x:
  3377.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.x with SunPro cc...'
  3378.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3379.     "CFLAGS = -O -Usun -i -DSVR4 -DDIRENT -DSOLARIS -DHDBUUCP -DFNFLOAT \
  3380.     -DSELECT -DCK_CURSES -DCK_NEWTERM -DSTERMIOX -DTCPSOCKET $(KFLAGS)" \
  3381.     "LNKFLAGS = -s" "LIBS= -ltermlib -lsocket -lnsl -lm -lresolv"
  3382.  
  3383. #as above but configured for Kerberos IV
  3384. solaris2x+krb4:  
  3385.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.x, SunPro cc, krb4...'
  3386.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3387.     "CFLAGS = -O -Usun -i -DSVR4 -DDIRENT -DSOLARIS -DHDBUUCP -DFNFLOAT \
  3388.     -DSELECT -DCK_CURSES -DCK_NEWTERM -DSTERMIOX -DTCPSOCKET  \
  3389.     -DCK_AUTHENTICATION -DCK_KERBEROS  -DKRB4 \
  3390.     -DCK_ENCRYPTION -DCK_DES -DCK_CAST $(K4INC) $(KFLAGS)" \
  3391.     "LNKFLAGS = -s" \
  3392.     "LIBS= $(K4LIB) -ltermlib -lsocket -lnsl -lm -lresolv -lkrb -ldes"
  3393.  
  3394. solaris23:
  3395.     $(MAKE) "MAKE=$(MAKE)" solaris2x KTARGET=$${KTARGET:-$(@)} \
  3396.     "KFLAGS=$(KFLAGS)"
  3397.  
  3398. solaris24:
  3399.     $(MAKE) "MAKE=$(MAKE)" solaris2x KTARGET=$${KTARGET:-$(@)} \
  3400.     "KFLAGS=-DSOLARIS24 -DPOSIX_CRTSCTS $(KFLAGS)"
  3401.  
  3402. # template for Solaris 2.5 and above.
  3403. solaris25x:
  3404.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.x with SunPro cc...'
  3405.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3406.     "CFLAGS = -DFNFLOAT -O -Usun -i $(KFLAGS)" \
  3407.     "LNKFLAGS = -s" \
  3408.     "LIBS= -ltermlib -lsocket -lnsl -lm -lresolv $(LIBS)"
  3409.  
  3410. #Solaris 2.5, SunPro compiler, curses, TCP/IP
  3411. solaris25:
  3412.     $(MAKE) "MAKE=$(MAKE)" solaris25x KTARGET=$${KTARGET:-$(@)} \
  3413.     "KFLAGS=-DSOLARIS25 $(KFLAGS)"
  3414.  
  3415. #Solaris 2.5, SunPro compiler, curses, TCP/IP, Kerberos IV
  3416. solaris25+krb4:
  3417.     $(MAKE) "MAKE=$(MAKE)" solaris25x+krb4 KTARGET=$${KTARGET:-$(@)} \
  3418.     "KFLAGS=-DSOLARIS25 $(KFLAGS)"
  3419.  
  3420. #Solaris 2.6, SunPro compiler, curses, TCP/IP
  3421. solaris26:
  3422.     $(MAKE) "MAKE=$(MAKE)" solaris25x KTARGET=$${KTARGET:-$(@)} \
  3423.     "KFLAGS=-DSOLARIS26 -DCK_PAM -DCK_SHADOW $(KFLAGS)" \
  3424.     "LIBS= -lpam"
  3425.  
  3426. #Solaris 7 (aka 2.7)
  3427. solaris7:
  3428.     $(MAKE) "MAKE=$(MAKE)" solaris25x KTARGET=$${KTARGET:-$(@)} \
  3429.     "KFLAGS=-DSOLARIS7 -DCK_PAM -DCK_SHADOW $(KFLAGS)" \
  3430.     "LIBS= -lpam"
  3431.  
  3432. #Solaris 8
  3433. solaris8:
  3434.     $(MAKE) "MAKE=$(MAKE)" solaris25x KTARGET=$${KTARGET:-$(@)} \
  3435.     "KFLAGS=-DSOLARIS8 -DCK_PAM -DCK_SHADOW $(KFLAGS)" \
  3436.     "LIBS= -lpam"
  3437.  
  3438. #Solaris 9
  3439. solaris9:
  3440.     $(MAKE) "MAKE=$(MAKE)" solaris25x KTARGET=$${KTARGET:-$(@)} \
  3441.     "KFLAGS=-DSOLARIS9 -DCK_PAM -DCK_SHADOW -DUSE_STRERROR $(KFLAGS)" \
  3442.     "LIBS= -lpam"
  3443.  
  3444. #Solaris 9 with malloc debugging
  3445. solaris9md:
  3446.     $(MAKE) mermit KTARGET=$${KTARGET:-$(@)} \
  3447.     "CFLAGS = -DFNFLOAT -O -Usun -i \
  3448.     -DSOLARIS9 -Dmalloc=dmalloc -Dfree=dfree -DMDEBUG \
  3449.     -DCK_PAM -DCK_SHADOW -DUSE_STRERROR $(KFLAGS)" \
  3450.     "LIBS= -lpam -ltermlib -lsocket -lnsl -lm -lresolv"
  3451.  
  3452. #Solaris 2.0-2.3, SunPro compiler, with SunLink X.25 support.
  3453. #This will only run if user has /opt/SUNWconn/lib/libsockx25.so.1
  3454. #exists and can be dynamically linked.
  3455. #NOTE: Do not change target to xermit -- it doesn't support X.25.
  3456. solaris2x25:
  3457.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.x+X.25 with SunPro cc...'
  3458.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3459.     "CFLAGS = -O -i -Usun -DSVR4 -DSOLARIS -DDIRENT \
  3460.     -DSUNX25 -DTCPSOCKET -DHDBUUCP -DFNFLOAT -DNOLEARN \
  3461.     -DSELECT -DCK_CURSES -DCK_NEWTERM -DSTERMIOX $(KFLAGS)" \
  3462.     "LNKFLAGS = -s" \
  3463.     "LIBS= -ltermlib -L/opt/SUNWconn/lib -R/opt/SUNWconn/lib \
  3464.     -lsockx25 -lsocket -lnsl -lm -lresolv"
  3465.  
  3466. #Solaris 2.4, SunPro compiler, with SunLink X.25 support.
  3467. #This will only run if user has /opt/SUNWconn/lib/libsockx25.so.1
  3468. #exists and can be dynamically linked.
  3469. solaris24x25:
  3470.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.4+X.25 with SunPro cc...'
  3471.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3472.     "CFLAGS = -O -i -Usun -DSVR4 -DSOLARIS -DSOLARIS24 -DDIRENT -DNOLEARN \
  3473.     -DSUNX25 -DTCPSOCKET -DHDBUUCP -DFNFLOAT -DPOSIX_CRTSCTS \
  3474.     -DSELECT -DCK_CURSES -DCK_NEWTERM -DSTERMIOX $(KFLAGS)" \
  3475.     "LNKFLAGS = -s" \
  3476.     "LIBS= -ltermlib -L/opt/SUNWconn/lib -R/opt/SUNWconn/lib \
  3477.     -lsockx25 -lsocket -lnsl -lm -lresolv"
  3478.  
  3479. #Solaris 2.5, SunPro compiler, with SunLink X.25 support.
  3480. solaris25x25:
  3481.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.5+X.25 with SunPro cc...'
  3482.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3483.     "CFLAGS = -O -i -Usun -DSVR4 -DSOLARIS25 -DDIRENT -DSUNX25 \
  3484.     -DTCPSOCKET -DHDBUUCP -DSELECT -DCK_CURSES \
  3485.     -DCK_NEWTERM -DSTERMIOX -DFNFLOAT -DPOSIX_CRTSCTS -DNOLEARN \
  3486.     -I/opt/SUNWconn/include $(KFLAGS)" \
  3487.     "LIBS= -ltermlib -L/opt/SUNWconn/lib -R/opt/SUNWconn/lib \
  3488.     -lsockx25 -lsocket -lnsl -lm -lresolv"
  3489.  
  3490. #Solaris 2.6, SunPro compiler, with SunLink X.25 support.
  3491. solaris26x25:
  3492.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.6+X.25 with SunPro cc...'
  3493.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3494.     "CFLAGS = -O -i -Usun -DSVR4 -DSOLARIS26 -DDIRENT -DSUNX25 \
  3495.     -DTCPSOCKET -DHDBUUCP -DSELECT -DCK_CURSES -DCK_PAM -DCK_SHADOW \
  3496.     -DCK_NEWTERM -DSTERMIOX -DFNFLOAT -DPOSIX_CRTSCTS -DNOLEARN \
  3497.     -I/opt/SUNWconn/include $(KFLAGS)" \
  3498.     "LIBS= -ltermlib -L/opt/SUNWconn/lib -R/opt/SUNWconn/lib \
  3499.     -lsockx25 -lsocket -lnsl -lm -lresolv -lpam"
  3500.  
  3501. #The following sunosxxx entries are for debugging and testing only.
  3502.  
  3503. sunos41x:
  3504.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3505.     "CFLAGS= -O -DSUNOS41 -DDIRENT -DNOTLOG -DNOMSEND \
  3506.     -DNOUUCP -DNOSIGWINCH -DNOREDIRECT -DNOPUSH -DNOCCTRAP \
  3507.     -DNOICP -DNOLOCAL $(KFLAGS)"
  3508.  
  3509. #SunOS 4.1.x, debugging with Pure Software, Inc., Purify 2 (commercial runtime
  3510. #error-detection software for catching wild array references, etc).
  3511. #Before running the resulting wermit, you'll also need to define and export
  3512. #the following environment variables (as in this example):
  3513. #PURIFYHOME=/usr/local/purify ; export PURIFYHOME
  3514. #PURIFYCACHEDIR=/tmp ; export PURIFYCACHEDIR
  3515. sunos41cp:
  3516.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 / BSD / Curses / Purify...
  3517.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3518.     "CC2= purify -cache_dir=/usr/tmp cc" \
  3519.     "CFLAGS= -g -DSUNOS41 -DHDBUUCP -DDIRENT -DTCPSOCKET \
  3520.     -DSAVEDUID -DCK_CURSES $(KFLAGS)" \
  3521.     "LIBS= -lcurses -ltermcap"
  3522.  
  3523. #SunOS 4.1 with malloc debugger
  3524. sunos41md:
  3525.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 malloc debug...
  3526.     $(MAKE) mermit KTARGET=$${KTARGET:-$(@)} \
  3527.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DDIRENT -DTCPSOCKET \
  3528.     -DSAVEDUID $(KFLAGS) -Dmalloc=dmalloc -Dfree=dfree -DMDEBUG"
  3529.  
  3530. sunos41gmd:
  3531.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 with gcc and curses...
  3532.     $(MAKE) mermit KTARGET=$${KTARGET:-$(@)} "CC= gcc " "CC2= gcc" \
  3533.     "CFLAGS= -g -DSUNOS41 -DHDBUUCP -DDIRENT -DTCPSOCKET \
  3534.     -DNDGPWNAM -DSAVEDUID -DCK_CURSES -DRLOGCODE \
  3535.     $(KFLAGS) -Dmalloc=dmalloc -Dfree=dfree -DMDEBUG" \
  3536.     "LIBS= -lcurses -ltermcap"
  3537.  
  3538. #SunOS version 4.1, gcc, profiling with gprof, no debugging.
  3539. #To get profile, "make sunos41p" (on Sun), then "./wermit".  After running
  3540. #wermit, "gprof ./wermit | lpr" (or whatever) to get execution profile.
  3541. sunos41p:
  3542.     @echo Making C-Kermit $(CKVER) for SunOS 4.x with profiling...
  3543.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC= gcc " "CC2= gcc" \
  3544.     "CFLAGS= -DSUNOS41 -DNODEBUG -DSAVEDUID -DDIRENT -DTCPSOCKET \
  3545.     -DNDGPWNAM $(KFLAGS) -pg" "LNKFLAGS = -pg"
  3546.  
  3547. #SunOS version 4.1 or later, BSD environment, minimum features.
  3548. sunos41min:
  3549.     @echo Minimum interactive
  3550.     $(MAKE) "MAKE=$(MAKE)" sunos41 KTARGET=$${KTARGET:-$(@)} \
  3551.     "KFLAGS=-DNOSPL -DNOXMIT -DNOMSEND -DNOFRILLS -DNORETRY \
  3552.     -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG -DNOSCRIPT -DNOCSETS \
  3553.     -DNOSHOW -DNOSETKEY -DNOUUCP -DNORECALL -DNOREDIRECT \
  3554.     -DNOPUSH -DNOMDMHUP -DNOJC -DNOFDZERO -DNOESCSEQ \
  3555.     -DNONET -DCK_SMALL -DNOCKSPEED -DNOCKTIMERS -DNOLOGIN \
  3556.     -DNOCKXYZ -DNOKERBEROS -DNOMKDIR -DNOPATTERNS -DNOPERMS -DNOPIPESEND \
  3557.     -DNORECURSIVE -DNORENAME -DNORESEND -DNOSETKEY \
  3558.     -DNOTRIGGER -DNOTUNING $(KFLAGS)" "LNKFLAGS = -s"
  3559.  
  3560. #SunOS version 4.1, BSD environment, min size, command-line only...
  3561. sunos41m:
  3562.     @echo Minimum size
  3563.     $(MAKE) "MAKE=$(MAKE)" sunos41min KTARGET=$${KTARGET:-$(@)} \
  3564.     "KFLAGS=-DNOICP $(KFLAGS)"
  3565.  
  3566. #SunOS version 4.1, BSD environment, min size, cmd-line only, remote only...
  3567. #
  3568. sunos41mr:
  3569.     @echo Minimum size
  3570.     $(MAKE) "MAKE=$(MAKE)" sunos41min KTARGET=$${KTARGET:-$(@)} \
  3571.     "KFLAGS=-DNOICP -DNOLOCAL $(KFLAGS)"
  3572.  
  3573. #SunOS version 4.1, BSD environment, min size, interactive...
  3574. sunos41mi:
  3575.     @echo Minimum size
  3576.     $(MAKE) "MAKE=$(MAKE)" sunos41min KTARGET=$${KTARGET:-$(@)} \
  3577.     "KFLAGS=-DNOCMDL $(KFLAGS)"
  3578.  
  3579. #SunOS version 4.1, BSD environment, min size, interactive, remote only...
  3580. sunos41mir:
  3581.     @echo Minimum size
  3582.     $(MAKE) "MAKE=$(MAKE)" sunos41min KTARGET=$${KTARGET:-$(@)} \
  3583.     "KFLAGS=-DNOCMDL -DNOLOCAL $(KFLAGS)"
  3584.  
  3585. #SunOS 4.1, System V R3 environment (-i option omitted).
  3586. sunos41s5:
  3587.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 System V R3...
  3588.     @echo For testing purposes only - NOT for production use.
  3589.     @echo For a useable version, make sunos41 instead.
  3590.     $(MAKE) wermit "CC= /usr/5bin/cc " "CC2=/usr/5bin/cc " \
  3591.     KTARGET=$${KTARGET:-$(@)} \
  3592.     "CFLAGS = -DSUN4S5 -DDIRENT -DHDBUUCP -DNOLEARN -DCK_POLL $(KFLAGS) -O"
  3593.  
  3594. #As above, but with curses support
  3595. sunos41s5c:
  3596.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 System V R3...
  3597.     @echo Curses included.
  3598.     @echo For testing purposes only - NOT for production use.
  3599.     @echo For a useable version, make sunos41 instead.
  3600.     $(MAKE) wermit "CC= /usr/5bin/cc " "CC2=/usr/5bin/cc " \
  3601.     KTARGET=$${KTARGET:-$(@)} \
  3602.     "CFLAGS = -DSUN4S5 -DDIRENT -DHDBUUCP -DNOLEARN \
  3603.     -DCK_POLL -DCK_CURSES -DCK_NEWTERM $(KFLAGS) -O" "LIBS= -lcurses"
  3604.  
  3605. #As above, but with curses support AND net support
  3606. sunos41s5tcpc:
  3607.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 System V R3...
  3608.     @echo TCP/IP and curses included.  No debug log.
  3609.     @echo For testing purposes only - NOT for production use.
  3610.     @echo For a useable version, make sunos41 instead.
  3611.     $(MAKE) xermit "CC= /usr/5bin/cc " "CC2=/usr/5bin/cc " \
  3612.     KTARGET=$${KTARGET:-$(@)} \
  3613.     "CFLAGS = -DSUN4S5 -DDIRENT -DHDBUUCP -DCK_POLL \
  3614.     -DNODEBUG -DCK_CURSES -DCK_NEWTERM -DTCPSOCKET $(KFLAGS) -O" \
  3615.     "LIBS= -lcurses -lresolv"
  3616.  
  3617. # (End of SunOS test entries...)
  3618.  
  3619. #Apollo with Domain SR10.0 or later, BSD environment
  3620. #Reportedly, it might also help to add '-A,systype=bsd4.3' to CFLAGS.
  3621. #Reportedly, there is also a problem with getc & putc macros that can
  3622. #be handled by using '#ifdef apollo' somewhere to redefine them???
  3623. #On the other hand, other reports indicate that it works fine as-is.
  3624. #NOTE: This entry was previously like this:
  3625. #    $(MAKE) wermit "CFLAGS= -DNOFILEH -DBSD4 $(KFLAGS) -Uaegis \
  3626. #    -DTCPSOCKET -U__STDC__"
  3627. #Reports (Dec 91) indicate SR10 has an ANSI-compliant C compiler,
  3628. #in addition to an older one that claimed to be ANSI-compliant but wasn't.
  3629. #The following make entry (plus checks that are made in ckcdeb.h) detect
  3630. #which compiler is used and define the CK_ANSIC or NOANSI flags accordingly.
  3631. sr10-bsd:
  3632.     @echo Making C-Kermit $(CKVER) for Apollo SR10.0 / BSD ...
  3633.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3634.     "CFLAGS= -O -DAPOLLOSR10 -DBSD43 -DTCPSOCKET -DCK_CURSES -DNOLEARN \
  3635.     -Uaegis $(KFLAGS)" "LIBS= -lcurses -ltermcap"
  3636.  
  3637. #Apollo with Domain SR10.0 or later, System V R3 environment.
  3638. #Don't use the optimizer (-O), it causes problems at runtime.
  3639. sr10-s5r3:
  3640.     @echo Making C-Kermit $(CKVER) for Apollo SR10.0 / Sys V R3 ...
  3641.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3642.     "CFLAGS= -DNOFILEH -DSVR3 -DAPOLLOSR10 -DNOLEARN $(KFLAGS) \
  3643.     -Uaegis -U__STDC__"
  3644.  
  3645. #Apollo Domain/IX (untested, try this if sr10-bsd doesn't work)
  3646. # -DTCPSOCKET can probably be added here.
  3647. apollobsd:
  3648.     @echo Making C-Kermit $(CKVER) for Apollo Domain/IX...
  3649.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3650.     "CC= /bin/cc " "CC2= /bin/cc " \
  3651.     "CFLAGS= -DNOFILEH -DBSD4 -DAPOLLOBSD -DNOLEARN $(KFLAGS) -Uaegis"
  3652.  
  3653. #Version 7 Unix (see comments near top of makefile)
  3654. v7:
  3655.     @echo Making C-Kermit $(CKVER) for UNIX Version 7.
  3656.     @echo Read the makefile if you have trouble with this...
  3657.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3658.     "CFLAGS=-DV7 -DPROCNAME=\\\"$(PROC)\\\" \
  3659.     -DBOOTNAME=\\\"$(BOOTFILE)\\\" -DNPROCNAME=\\\"$(NPROC)\\\" \
  3660.     -DNPTYPE=$(NPTYPE) $(DIRECT) -DO_RDWR=2 -DO_NDELAY=0 -DO_SCCS_ID \
  3661.     -DNOLEARN $(KFLAGS)"
  3662.  
  3663. #AT&T UNIX System V R3, signal() is void rather than int.
  3664. #Uses dirent.h and Honey DanBer UUCP.
  3665. #Add the -i link option if necessary.
  3666. #If you get errors like "ws_row undefined" in ckutio.c, add -DNONAWS.
  3667. sys5r3:
  3668.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R3...'
  3669.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3670.     "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -DNOLEARN $(KFLAGS) -O" \
  3671.     "LNKFLAGS="
  3672.  
  3673. #As above, plus curses.
  3674. sys5r3c:
  3675.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R3 + curses...'
  3676.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3677.     "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -DCK_CURSES -DNONAWS -DNOLEARN \
  3678.     $(KFLAGS) -O" "LNKFLAGS=" "LIBS = -ltermlib"
  3679.  
  3680. #System V R3.2 for PCs built on Interactive UNIX SV/386 R4.x
  3681. #but with all calls to dup2() disabled because generic SVR3 does not have dup2.
  3682. # (The -linet library might not need to be in this one.)
  3683. sys5r32is:
  3684.     @echo 'Making C-Kermit $(CKVER) for System V/386 R32
  3685.     $(MAKE) wermit CC="$(CC)" CC2="$(CC2)" \
  3686.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -O -DNOCSETS -DNOREALPATH \
  3687.     -DUID_T=ushort -DGID_T=ushort -DI386IX -DSVR3JC -DCK_CURSES -DNONAWS \
  3688.     -DPOSIX_JC -DCK_REDIR -DCK_POLL -DDCLGETCWD -DNOFDZERO -DNOREDIRECT \
  3689.     -DNOZEXEC -DNOLEARN $(KFLAGS)" "LIBS=-lcurses -lc_s -linet"
  3690.  
  3691. #System V R3.2 for PCs built on Interactive UNIX SV/386 R4.x
  3692. #but with all calls to dup2() disabled because generic SVR3 does not have dup2.
  3693. #With TCP/IP added.
  3694. sys5r32isnet:
  3695.     @echo 'Making C-Kermit $(CKVER) for System V/386 R32 + TCP/IP
  3696.     $(MAKE) wermit CC="$(CC)" CC2="$(CC2)" \
  3697.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -O -DNOCSETS -DNOREALPATH \
  3698.     -DUID_T=ushort -DGID_T=ushort -DI386IX -DSVR3JC -DCK_CURSES -DNONAWS \
  3699.     -DPOSIX_JC -DCK_REDIR -DCK_POLL -DDCLGETCWD -DNOFDZERO -DNOREDIRECT \
  3700.     -DNOLEARN -DNOZEXEC -DTCPSOCKET $(KFLAGS)" "LIBS=-lcurses -lc_s -linet"
  3701.  
  3702. iclsys5r3:
  3703.     make sys5r3 KTARGET=$${KTARGET:-$(@)} KFLAGS=-DICLSVR3
  3704.  
  3705. #AT&T UNIX System V R3.  As above, but no ANSI prototyping.
  3706. sys5r3na:
  3707.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R3...'
  3708.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3709.     "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -DNOANSI -DNOLEARN $(KFLAGS) -O" \
  3710.     "LNKFLAGS="
  3711.  
  3712. #AT&T UNIX System V R3, for 3B computers with Wollongong TCP/IP.
  3713. sys5r3net3b:
  3714.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX SVR3/3B/Wollongong...'
  3715.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3716.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DWOLLONGONG -DNOLEARN $(KFLAGS) \
  3717.     -O" "LIBS= -lnet -lnsl_s" "LNKFLAGS ="
  3718.  
  3719. #AT&T UNIX System V R3, signal() is void rather than int.
  3720. #Uses dirent.h and Honey DanBer uucp, has <termiox.h>.
  3721. #Has <termiox.h> for RTS/CTS flow control.
  3722. sys5r3tx:
  3723.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R3...'
  3724.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3725.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DTERMIOX -DNOLEARN \
  3726.     $(KFLAGS) -i -O" "LNKFLAGS ="
  3727.  
  3728. #AT&T UNIX System V R3, signal() is void rather than int.
  3729. #Uses dirent.h and Honey DanBer uucp, has <termiox.h>.
  3730. #Has <sys/termiox.h> for RTS/CTS flow control.
  3731. sys5r3sx:
  3732.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R3...'
  3733.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3734.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DSTERMIOX -DNOLEARN \
  3735.     $(KFLAGS) -i -O" "LNKFLAGS ="
  3736.  
  3737. #AT&T UNIX System V R4.
  3738. #Has <termiox.h>.
  3739. sys5r4:
  3740.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  3741.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3742.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DTERMIOX -DNOLEARN $(KFLAGS)" \
  3743.     "LNKFLAGS = -s"
  3744.  
  3745. #AT&T UNIX System V R4 with Wollongong TCP/IP.
  3746. #Has <termiox.h>.
  3747. sys5r4net:
  3748.     @echo 'Making C-Kermit $(CKVER) for System V R4 + Wollongong TCP/IP...'
  3749.     @echo ' If sockets-library routines are missing at link time, then'
  3750.     @echo ' try the sys5r4net2 entry.'
  3751.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3752.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DNOLEARN \
  3753.     -DTERMIOX -DWOLLONGONG $(KFLAGS)" "LNKFLAGS = -s"
  3754.  
  3755. #As above, but needs libs included.
  3756. sys5r4net2:
  3757.     @echo ' PLEASE READ ckuins.txt IF YOU GET MISSING HEADER FILES.'
  3758.     @echo ' (Search for WOLLONGONG...)'
  3759.     $(MAKE) sys5r4net KTARGET=$${KTARGET:-$(@)} "LIBS= -lsocket -lnsl"
  3760.  
  3761. #As above plus curses.
  3762. sys5r4net2c:
  3763.     echo 'Making C-Kermit $(CKVER) for System V R4 + Wollongong TCP/IP...'
  3764.     @echo ' PLEASE READ ckuins.txt IF YOU GET MISSING HEADER FILES.'
  3765.     @echo ' (Search for WOLLONGONG...)'
  3766.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3767.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DNOLEARN \
  3768.     -DTERMIOX -DWOLLONGONG -DCK_CURSES $(KFLAGS)" "LNKFLAGS = -s" \
  3769.     "LIBS= -lsocket -lnsl -lcurses"
  3770.  
  3771. #DELL UNIX System V R4.
  3772. #Has <sys/termiox.h>, regular Berkeley sockets library, i.e. in.h and inet.h
  3773. #are not misplaced in sys (rather than netinet and arpa, respectively).
  3774. #Uses ANSI C constructs, advisory file locking on devices, etc.
  3775. #Warning: -DSTERMIOX enables hardware flow control (RTS/CTS), but reportedly
  3776. #this does not work with the normal drivers.  However, it might still work
  3777. #on non-Dell systems, or even Dell systems with different drivers installed.
  3778. dellsys5r4:
  3779.     @echo 'Making C-Kermit $(CKVER) for DELL UNIX System V R4...'
  3780.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3781.     "CFLAGS = -O -DSVR4 -DDELL_SVR4 -DDIRENT -DHDBUUCP \
  3782.     -DTCPSOCKET -DSTERMIOX -DCK_POLL $(KFLAGS)" \
  3783.     "LIBS= -lsocket -lnsl" "LNKFLAGS = -s"
  3784.  
  3785. #As above, curses support added...
  3786. dellsys5r4c:
  3787.     @echo 'Making C-Kermit $(CKVER) for DELL UNIX System V R4...'
  3788.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3789.     "CFLAGS = -O -DSVR4 -DDELL_SVR4 -DDIRENT -DHDBUUCP \
  3790.     -DTCPSOCKET -DSTERMIOX -DCK_CURSES -DCK_POLL \
  3791.     $(KFLAGS)" "LIBS= -lsocket -lnsl -lcurses -ltermcap" "LNKFLAGS = -s"
  3792.  
  3793. #Minimum interactive: As above, but with every conceivable option removed.
  3794. dellsys5r4mi:
  3795.     @echo 'Making C-Kermit $(CKVER) for DELL UNIX System V R4...'
  3796.     @echo 'Minimum-size interactive'
  3797.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3798.     "CFLAGS = -O -DSVR4 -DDELL_SVR4 -DDIRENT \
  3799.     -UTCPSOCKET -DNOCMDL -DNOSPL -DNOXMIT -DCK_POLL \
  3800.     -DNOMSEND -DNOFRILLS -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG \
  3801.     -DNOSCRIPT -DNOCSETS -DNOSHOW -DNOSETKEY -DNOSERVER -DNOUUCP \
  3802.     -DNOPUSH -DNOMDMHUP -DNOJC -DNOFDZERO -DNOESCSEQ  \
  3803.     $(KFLAGS)" "LNKFLAGS = -s"
  3804.  
  3805. #Command-line only version.
  3806. dellsys5r4m:
  3807.     @echo 'Making C-Kermit $(CKVER) for DELL UNIX System V R4...'
  3808.     @echo 'Command-line only'
  3809.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3810.     "CFLAGS = -O -DSVR4 -DDELL_SVR4 -DDIRENT \
  3811.     -UTCPSOCKET -DNOICP -DNOFRILLS -DNODIAL -DNODEBUG -DNOTLOG -DNOCSETS \
  3812.     -DNOSETKEY -DNOESCSEQ -DNOJC -DNOFDZERO -DCK_POLL \
  3813.     $(KFLAGS)" "LNKFLAGS = -s"
  3814.  
  3815. #AT&T UNIX System V R4.
  3816. #Has <sys/termiox.h>.
  3817. sys5r4sx:
  3818.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  3819.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3820.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DSTERMIOX -DNOLEARN \
  3821.     $(KFLAGS)" "LNKFLAGS = -s" "LIBS=$(LIBS)"
  3822.  
  3823. #AT&T UNIX System V R4.
  3824. #Has <sys/termiox.h>, regular Berkeley sockets library, i.e. in.h and inet.h
  3825. #are not misplaced in sys (rather than netinet and arpa, respectively).
  3826. #Uses ANSI C constructs, <sys/termiox.h>, etc etc.
  3827. sys5r4sxtcp:
  3828.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  3829.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3830.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP \
  3831.     -DSTERMIOX -DTCPSOCKET $(KFLAGS)" \
  3832.     "LIBS= -lsocket -lnsl $(LIBS)" "LNKFLAGS= -s"
  3833.  
  3834. #AT&T UNIX System V R4.
  3835. #As above + curses.
  3836. sys5r4sxtcpc:
  3837.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  3838.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3839.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP \
  3840.     -DSTERMIOX  -DCK_CURSES -DTCPSOCKET $(KFLAGS)" \
  3841.     "LIBS= -lsocket -lnsl -lcurses -ltermcap $(LIBS)" "LNKFLAGS = -s"
  3842.  
  3843. #AT&T UNIX System V R4.  CONSENSYS SVR4.2-1.
  3844. #Has <sys/termiox.h>, regular Berkeley sockets library, i.e. in.h and inet.h
  3845. #are not misplaced in sys (rather than netinet and arpa, respectively).
  3846. #Uses ANSI C constructs, <sys/termiox.h>, etc.
  3847. # Fullscreen -DCK_CURSES added (with curses & termcap libs)
  3848. # Submission by Robert Weiner/Programming Plus, rweiner@watsun.cc.columbia.edu
  3849. sys5r4sxtcpf:
  3850.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  3851.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3852.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP \
  3853.     -DSTERMIOX -DTCPSOCKET -DCK_CURSES $(KFLAGS)" \
  3854.     "LIBS= -lsocket -lnsl -L/usr/ccs/lib -lcurses -ltermcap" \
  3855.     "LIBS=$(LIBS)" "LNKFLAGS = -s"
  3856.  
  3857. #Smallest possible version for System V R4
  3858. s5r4m:
  3859.     @echo Minimum size
  3860.     $(MAKE) "MAKE=$(MAKE)" sys5r4sx KTARGET=$${KTARGET:-$(@)} \
  3861.     "KFLAGS=$(KFLAGS) -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG \
  3862.     -DNOSCRIPT -DNOCSETS -DNOICP -DNOMSEND -UTCPSOCKET" "LNKFLAGS = -s"
  3863.  
  3864. #Smallest possible interactive version of above
  3865. s5r4mi:
  3866.     @echo Minimum interactive
  3867.     $(MAKE) "MAKE=$(MAKE)" sys5r4sx \
  3868.     "KFLAGS=-DNOSPL -DNOXMIT -DNOMSEND -DNOFRILLS -DNOSHOW \
  3869.     -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG -DNOSCRIPT -DNOCSETS -DNOSETKEY \
  3870.     -UTCPSOCKET $(KFLAGS)" "LNKFLAGS = -s"
  3871.  
  3872. #AT&T UNIX System V R4, has <sys/termiox.h>
  3873. #ANSI C function prototyping disabled.
  3874. sys5r4sxna:
  3875.     @echo No ANSI C prototyping...
  3876.     $(MAKE) "MAKE=$(MAKE)" sys5r4sx KTARGET=$${KTARGET:-$(@)} \
  3877.     "KFLAGS=$(KFLAGS) -DNOANSI"
  3878.  
  3879. #Stratus FTX.
  3880. ftx:
  3881.     @echo 'Making C-Kermit $(CKVER) for Stratus FTX 3.x...'
  3882.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3883.     "CFLAGS = -O -DSVR4 -DFTX -DDIRENT -DHDBUUCP -DSTERMIOX 
  3884.     -DNOGETUSERSHELL -DNOLEARN +DA1.1 $(KFLAGS)" \
  3885.     "LNKFLAGS = -s" "LIBS=$(LIBS)"
  3886.  
  3887. #Stratus FTX + TCP/IP.
  3888. ftxtcp:
  3889.     @echo 'Making C-Kermit $(CKVER) for Stratus FTX 3.x...'
  3890.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3891.     "CFLAGS = -O -DSVR4 -DFTX -DDIRENT -DHDBUUCP -DNOGETUSERSHELL \
  3892.     -DSTERMIOX -DTCPSOCKET -DNO_DNS_SRV +DA1.1 $(KFLAGS)" \
  3893.     "LIBS= -lsocket -lnsl $(LIBS)" "LNKFLAGS= -s"
  3894.  
  3895. #NCR MP-RAS 2.03 or 3.02
  3896. mpras:
  3897.     @echo 'Making C-Kermit $(CKVER) for NCR MP-RAS...'
  3898.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3899.     "CFLAGS = -O -DSVR4 -DNCRMPRAS -DDIRENT -DHDBUUCP -DSTERMIOX \
  3900.     -DNOGETUSERSHELL -DUSE_FILE__CNT -DNOLEARN -DNO_DNS_SRV $(KFLAGS)" \
  3901.     "LNKFLAGS = -s" "LIBS=$(LIBS)"
  3902.  
  3903. #NCR MP-RAS 2.03 or 3.02 with TCP/IP and curses
  3904. mprastcpc:
  3905.     @echo 'Making C-Kermit $(CKVER) for NCR MP-RAS + TCP/IP + curses...'
  3906.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CFLAGS=-DTCPSOCKET \
  3907.     -DCK_CURSES -DSVR4 -DNCRMPRAS -DDIRENT -DHDBUUCP -DSTERMIOX -DNOLEARN \
  3908.     -DNOGETUSERSHELL -DNO_DNS_SRV DUSE_FILE__CNT -O $(KFLAGS)" \
  3909.     "LNKFLAGS = -s" "LIBS= -lsocket -lnsl -lcurses -ltermcap $(LIBS)"
  3910.  
  3911. #SINIX-L V5.41 - includes curses, tcp/ip - Use this one for i386.
  3912. #This version of SINIX doesn't like fdopen() or popen().
  3913. sinix541:
  3914.     @echo 'Making C-Kermit $(CKVER) for Siemens/Nixdorf SINIX V5.41/i386'
  3915.     $(MAKE) ckcpro.$(EXT) "CFLAGS = -DSINIX -DSVR4 -DDIRENT -DHDBUUCP \
  3916.     -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DSELECT -DCK_ANSIC -DNO_DNS_SRV \
  3917.     -DSNI541 -DNOGETUSERSHELL -DNONETCMD -DNOPOPEN -kansi -W0 $(KFLAGS)"
  3918.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3919.     "CFLAGS = -DSINIX -DSVR4 -DDIRENT -DHDBUUCP -DNO_DNS_SRV -DNOPOPEN \
  3920.     -DFNFLOAT -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DSELECT -DCK_ANSIC \
  3921.     -DSNI541 -DNOGETUSERSHELL -DNONETCMD -kansi -W0 -O $(KFLAGS)" \
  3922.     "LIBS= -lsocket -lnsl -lcurses -ltermcap -lm" "LNKFLAGS = -s"
  3923.  
  3924. sinix541i:
  3925.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=$(KFLAGS)" sinix541
  3926.  
  3927. #SINIX V5.42 - includes curses, tcp/ip, everything - Use this one for MIPS.
  3928. # As of C-Kermit 7.1, optimization removed -- takes (literally) forever.
  3929. sinix542:
  3930.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3931.     "CFLAGS = -DSINIX -DSVR4 -DDIRENT -DHDBUUCP -DNO_DNS_SRV \
  3932.     -DFNFLOAT -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DSELECT -DCK_ANSIC \
  3933.     -DSNI542 -DNOGETUSERSHELL -kansi -W0 $(KFLAGS)" \
  3934.     "LIBS= -lsocket -lnsl -lcurses -ltermcap -lm" "LNKFLAGS = -s"
  3935.  
  3936. #SINIX V5.42 gcc - includes curses, tcp/ip, everything.
  3937. #This one was used to build the Pyramid-architecture RM600 version
  3938. #on SINIX-P 5.42 A10 with gcc but should work for SINIX 5.42 on any other
  3939. #architecture with gcc.
  3940. sinix542g:
  3941.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC=gcc" "CC2=gcc" \
  3942.     "CFLAGS = -DSINIX -DSVR4 -DDIRENT -DHDBUUCP -DNO_DNS_SRV \
  3943.     -DFNFLOAT -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DSELECT -DCK_ANSIC \
  3944.     -DSNI542 -DNOGETUSERSHELL $(KFLAGS)" \
  3945.     "LIBS= -lsocket -lnsl -lcurses -ltermcap -lm" \
  3946.     "LNKFLAGS = -s"
  3947.  
  3948. #SINIX V5.42 - includes curses, tcp/ip, everything - Use this one for Intel.
  3949. # (Note: SNI discontinued Intel support after 5.42.)
  3950. sinix542i:
  3951.     @echo 'Making C-Kermit $(CKVER) for Siemens/Nixdorf SINIX-Z V5.42...'
  3952.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3953.     "CFLAGS = -DSINIX -DSVR4 -DDIRENT -DHDBUUCP -DFNFLOAT -DSTERMIOX \
  3954.     -DCK_CURSES -DTCPSOCKET -DSELECT -DCK_ANSIC -DNO_DNS_SRV -kansi \
  3955.     -DSNI542 $(KFLAGS)" \
  3956.     "LIBS= -lsocket -lnsl -lcurses -ltermcap -lm" \
  3957.     "LNKFLAGS = -s"
  3958.  
  3959. #Siemens Nixdorf Reliant UNIX V5.43 - includes curses, tcp/ip, everything:
  3960. # . gettimeofday() suddenly has only one arg instead of two (GTODONEARG).
  3961. # . The syntax of the Olimit specifier changed.
  3962. # . The name was changed from SINIX to Reliant UNIX in version 5.43C.
  3963. sni543:
  3964.     @echo 'Making C-Kermit $(CKVER) for Siemens/Nixdorf Reliant UNIX V5.43'
  3965.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3966.     "CFLAGS = -DSINIX -DSNI543 -DSVR4 -DDIRENT -DHDBUUCP \
  3967.     -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DSELECT -DCK_ANSIC -DGTODONEARG \
  3968.     -DNO_DNS_SRV -kansi -W0 -O -F Olimit,3100 $(KFLAGS)" \
  3969.     "LIBS= -lsocket -lnsl -lcurses -ltermcap" "LNKFLAGS = -s"
  3970.  
  3971. #Siemens Nixdorf Reliant UNIX V5.44 - Like 5.43 but with different banner.
  3972. sni544:
  3973.     @echo 'Making C-Kermit $(CKVER) for Siemens/Nixdorf Reliant UNIX V5.44'
  3974.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3975.     "CFLAGS = -DSINIX -DSNI544 -DSVR4 -DDIRENT -DHDBUUCP \
  3976.     -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DSELECT -DCK_ANSIC -DGTODONEARG \
  3977.     -DNO_DNS_SRV -kansi -W0 -O -K Olimit,3100 $(KFLAGS)" \
  3978.     "LIBS= -lsocket -lnsl -lcurses -ltermcap" "LNKFLAGS = -s"
  3979.  
  3980. #Commodore Amiga with AT&T UNIX System V R4 and TCP/IP support.
  3981. #Has <sys/termiox.h>.
  3982. svr4amiganet:
  3983.     @echo 'Making C-Kermit $(CKVER) for Amiga SVR4 + TCP/IP...'
  3984.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC=gcc" "CC2=gcc" \
  3985.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DSTERMIOX \
  3986.     -DTCPSOCKET -DCK_CURSES $(KFLAGS)" "LNKFLAGS = -s" \
  3987.     "LIBS = -lsocket -lnsl -ltermlib"
  3988.  
  3989. #SCO (Novell (Univel)) UnixWare 1.x or 2.0, no TCP/IP.
  3990. #This assumes the Novell SDK 1.0, which has <sys/termiox.h>.
  3991. #UnixWare users with the "Prime Time Freeware" CD-ROM SDK will probably have
  3992. #to use the sys5r4 entry (no termiox.h file, so no hardware flow control).
  3993. #Change -DSELECT to -DCK_POLL if -DSELECT causes problems.
  3994. # NOTE: Unixware 1.x builds have not been tried in C-Kermit 7.0.
  3995. unixware:
  3996.     $(MAKE) "MAKE=$(MAKE)" sys5r4sx KTARGET=$${KTARGET:-$(@)} \
  3997.     "KFLAGS=-DOLD_UNIXWARE -DCK_NEWTERM -DSELECT -DNOGETUSERSHELL \
  3998.     -DNOSYSLOG $(KFLAGS)" "LIBS=-lcrypt"
  3999.  
  4000. #UnixWare 1.x or 2.0 with TCP/IP and curses.
  4001. #fork()-based CONNECT - no high serial speeds.
  4002. unixwarenetc:
  4003.     $(MAKE) "MAKE=$(MAKE)" sys5r4sxtcpc KTARGET=$${KTARGET:-$(@)} \
  4004.     "KFLAGS=-DOLD_UNIXWARE -DCK_NEWTERM -DSELECT -DNOGETUSERSHELL \
  4005.     -DNOSYSLOG $(KFLAGS)" "LIBS=-lcrypt -lresolv"
  4006.  
  4007. uw10:
  4008.     $(MAKE) unixwarenetc KTARGET=$${KTARGET:-$(@)} "KFLAGS=$(KFLAGS)"
  4009.  
  4010. #This is for Unixware 2.0.x only - use unixware21 for UW 2.1.x.
  4011. #Has special library search and enables special kludge around library
  4012. #foulup regarding vfork() (which Kermit doesn't use).  Forces POSIX-style
  4013. #hangup.
  4014. unixware20:
  4015.     @echo 'Making C-Kermit $(CKVER) for UnixWare 2.0.x...'
  4016.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4017.     "CFLAGS = -O -DOLD_UNIXWARE -DUNIXWARE2 -DSELECT -DSVR4 -DDIRENT \
  4018.     -DHDBUUCP -DBIGBUFOK -DNOGETUSERSHELL -DSTERMIOX  -DCK_CURSES \
  4019.     -DTCPSOCKET -DUW200 -DFNFLOAT -DCK_NEWTERM -DNOSYSLOG $(KFLAGS)" \
  4020.     "LIBS= -lsocket -lnsl -lcurses -ltermcap -lcrypt -lgen -lm -lresolv" \
  4021.     "LNKFLAGS = -s"
  4022.  
  4023. uw20:
  4024.     $(MAKE) unixware20 KTARGET=$${KTARGET:-$(@)} "KFLAGS=$(KFLAGS)"
  4025.  
  4026. #Adds big buffers ("large memory model") - otherwise the same as UnixWare 1.x.
  4027. unixware21:
  4028.     @echo 'Making C-Kermit $(CKVER) for UnixWare 2.1.x...'
  4029.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4030.     "CFLAGS = -O -DUNIXWARE -DSELECT -DSVR4 -DDIRENT -DHDBUUCP -DBIGBUFOK \
  4031.     -DNOSYSLOG -DSTERMIOX  -DCK_CURSES -DTCPSOCKET \
  4032.     -DCK_NEWTERM -DFNFLOAT -DUNIXWARE2 $(KFLAGS)" \
  4033.     "LIBS= -lsocket -lnsl -lcurses -ltermcap -lcrypt -lm -lresolv \
  4034.     $(LIBS)" "LNKFLAGS = -s"
  4035.  
  4036. #Unixware 2.1.0
  4037. uw21:
  4038.     $(MAKE) unixware21 KTARGET=$${KTARGET:-$(@)} "KFLAGS=$(KFLAGS)"
  4039.  
  4040. #Unixware 2.1.3
  4041. uw213:
  4042.     $(MAKE) unixware21 KTARGET=$${KTARGET:-$(@)} \
  4043.     "KFLAGS=-DUSE_FILE__CNT $(KFLAGS)"
  4044.  
  4045. #Unixware 2.1 with IKSD support
  4046. uw21iksd:
  4047.     $(MAKE) unixware21 KTARGET=$${KTARGET:-$(@)} \
  4048.     "KFLAGS=-DCK_SHADOW $(KFLAGS)" "LIBS= -lgen"
  4049.  
  4050. #UnixWare 7 with tc[gs]etspeed() high serial speeds & select()-based CONNECT
  4051. #NOTE: This is the one we use.
  4052. unixware7t:
  4053.     @echo 'Making C-Kermit $(CKVER) for UnixWare 7 with POSIX i/o...'
  4054.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4055.     "CFLAGS = -O -DUNIXWARE -DSELECT -DSVR4 -DDIRENT -DHDBUUCP -DBIGBUFOK \
  4056.     -DFNFLOAT -DNOGETUSERSHELL -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DPOSIX \
  4057.     -DUW7 -DUSETCSETSPEED -DCK_NEWTERM -DNOLSTAT -DDCLTIMEVAL \
  4058.     -DNEEDMDMDEFS $(KFLAGS)" \
  4059.     "LIBS=-lsocket -lnsl -lcurses -ltermcap -lcrypt -lm -lresolv $(LIBS)" \
  4060.     "LNKFLAGS = -s"
  4061.  
  4062. #UnixWare 7 - select()-based CONNECT - no POSIX i/o - no high serial speeds.
  4063. #In other words, just like the UnixWare 1 and 2 builds.
  4064. unixware7x:
  4065.     @echo 'Making C-Kermit $(CKVER) for UnixWare 7...'
  4066.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4067.     "CFLAGS = -O -DUNIXWARE -DSELECT -DSVR4 -DDIRENT -DHDBUUCP -DBIGBUFOK \
  4068.     -DUW7 -DNOGETUSERSHELL -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DNOLSTAT \
  4069.     -DFNFLOAT -DCK_NEWTERM $(KFLAGS)" \
  4070.     "LIBS=-lsocket -lnsl -lcurses -ltermcap -lcrypt -lm -lresolv $(LIBS)" \
  4071.     "LNKFLAGS = -s"
  4072.  
  4073. #UnixWare 7 with POSIX cfset[oi]speed() to allow high serial speeds.
  4074. #(but the high speeds don't work)
  4075. unixware7p:
  4076.     @echo 'Making C-Kermit $(CKVER) for UnixWare 7 with POSIX i/o...'
  4077.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4078.     "CFLAGS = -O -DUNIXWARE -DSELECT -DSVR4 -DDIRENT -DHDBUUCP -DBIGBUFOK \
  4079.     -DUW7 -DNOGETUSERSHELL -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DPOSIX \
  4080.     -DFNFLOAT -DCK_NEWTERM -DNOLSTAT $(KFLAGS)" \
  4081.     "LIBS=-lsocket -lnsl -lcurses -ltermcap -lcrypt -lm -lresolv $(LIBS)" \
  4082.     "LNKFLAGS = -s"
  4083.  
  4084. # UnixWare 7 built with gcc - This does not work at all...
  4085. # Reportedly gcc 2.8.1 is broken on Unixware 7.  Try egcs?
  4086. unixware7g:
  4087.     @echo 'Making C-Kermit $(CKVER) for UnixWare 7 with gcc...'
  4088.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4089.     "CC = gcc" "CC2 = gcc" "LNKFLAGS = -s -shlib"
  4090.     "CFLAGS = -O -DUNIXWARE -DSELECT -DSVR4 -DDIRENT -DHDBUUCP -DBIGBUFOK \
  4091.     -DUW7 -DNOGETUSERSHELL -DSTERMIOX  -DCK_CURSES -DTCPSOCKET -DNOLSTAT \
  4092.     -DFNFLOAT -DCK_NEWTERM $(KFLAGS)" \
  4093.     "LIBS=-lsocket -lnsl -lcurses -ltermcap -lcrypt -lm -lresolv $(LIBS)" \
  4094.     "LNKFLAGS = -s"
  4095.  
  4096. unixware7:
  4097.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=$(KFLAGS)" unixware7t \
  4098.     KTARGET=$${KTARGET:-$(@)}
  4099.  
  4100. uw7:
  4101.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=$(KFLAGS)" unixware7t \
  4102.     KTARGET=$${KTARGET:-$(@)}
  4103.  
  4104. #SCO OpenUNIX 8.0
  4105. ou8:
  4106.     @echo 'Making C-Kermit $(CKVER) for Open UNIX 8...'
  4107.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=-DOU8 $(KFLAGS)" unixware7t \
  4108.     KTARGET=$${KTARGET:-$(@)}
  4109.  
  4110. #UnixWare 7 with OpenSSL
  4111. uw7ssl:
  4112.     @echo 'Making C-Kermit $(CKVER) for UnixWare 7 and OpenSSL...'
  4113.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4114.     "CFLAGS = -O -DCK_AUTHENTICATION -DCK_SSL -DCK_SHADOW \
  4115.     -DUNIXWARE -DSELECT -DSVR4 -DDIRENT -DHDBUUCP -DBIGBUFOK \
  4116.     -DFNFLOAT -DNOGETUSERSHELL -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DPOSIX \
  4117.     -DUW7 -DUSETCSETSPEED -DCK_NEWTERM -DNOLSTAT -DDCLTIMEVAL \
  4118.     $(SSLINC) $(KFLAGS)" \
  4119.     "LIBS=-lsocket -lnsl -lcurses -ltermcap -lcrypt -lm -lresolv \
  4120.     -lgen -lcudk70 $(SSLLIB) -lssl -lcrypto $(LIBS)" \
  4121.     "LNKFLAGS = -s"
  4122.  
  4123. #As above but includes Shadow password support needed for IKSD.
  4124. uw7iksd:
  4125.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=-DCK_SHADOW $(KFLAGS)" \
  4126.     KTARGET=$${KTARGET:-$(@)} "LIBS= -lgen" unixware7t
  4127.  
  4128. #As above but links with static API for realpath() so a binary built
  4129. #with this target on UW7.1 will also work on 7.0.  Requires SCO UDK
  4130. #rather than the stock compiler.
  4131. uw7iksdudk:
  4132.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=-DCK_SHADOW $(KFLAGS)" \
  4133.     KTARGET=$${KTARGET:-$(@)} "LIBS= -lgen -lcudk70" unixware7t
  4134.  
  4135. #ESIX SVR4.0.3 or 4.04 with TCP/IP support.
  4136. #Has <sys/termiox.h>, ANSI C function prototyping disabled.
  4137. #Add -m486 to CFLAGS if desired.
  4138. esixr4:
  4139.     @echo 'Making C-Kermit $(CKVER) for ESIX SVR4 + TCP/IP...'
  4140.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4141.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DNOANSI \
  4142.     -DSTERMIOX -DTCPSOCKET $(KFLAGS)" "LNKFLAGS = -s" \
  4143.     "LIBS = -lsocket -lnsl"
  4144.  
  4145. #AT&T UNIX System V R4.
  4146. #Has <sys/termiox.h>, Wollongong WIN/TCP TCP/IP.
  4147. sys5r4sxnet:
  4148.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  4149.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4150.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP \
  4151.     -DSTERMIOX -DWOLLONGONG $(KFLAGS)" "LNKFLAGS = -s"
  4152.  
  4153. #AT&T UNIX System V R4, no <termio.x> or <sys/termio.x>.
  4154. sys5r4nx:
  4155.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  4156.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4157.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DNOLEARN $(KFLAGS)" \
  4158.     "LNKFLAGS = -s"
  4159.  
  4160. #AT&T UNIX System V R4, no <termio.x> or <sys/termio.x>, curses, TCP/IP.
  4161. sys5r4nxnetc:
  4162.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  4163.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4164.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP \
  4165.     -DCK_CURSES -DTCPSOCKET $(KFLAGS)" \
  4166.     "LIBS = -lcurses -lsocket -lnsl -ltcpip" \
  4167.     "LNKFLAGS = -s"
  4168.  
  4169. #AT&T UNIX System V R4, no <termio.x> or <sys/termio.x>, Wollongong TCP/IP.
  4170. sys5r4nxtwg:
  4171.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  4172.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4173.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DWOLLONGONG $(KFLAGS)"
  4174.     "LNKFLAGS = -s"
  4175.  
  4176. #ICL UNIX System V R4.(DRS N/X) version :-
  4177. #UNIX System V Release 4.0 ICL DRS 6000 (SPARC)
  4178. #DRS/NX 6000 SVR4 Version 5  Level 1  Increment 4
  4179. #Has <sys/termiox.h>, regular Berkeley sockets library, i.e. in.h and inet.h
  4180. #are not misplaced in sys (rather than netinet and arpa, respectively).
  4181. #Uses ANSI C constructs, advisory file locking on devices, etc.
  4182. #Remove -lnsl if it causes trouble.
  4183. iclsys5r4:
  4184.     @echo 'Making C-Kermit $(CKVER) for ICL UNIX System V R4 (DRS N/X)'
  4185.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4186.     "CFLAGS = -O -DSVR4 -DICL_SVR4 -DDIRENT -DHDBUUCP -DNOGETUSERSHELL \
  4187.     -DSTERMIOX -DTCPSOCKET $(KFLAGS)" \
  4188.     "LIBS= -lsocket -lnsl -lresolv " "LNKFLAGS = -s"
  4189.  
  4190. #As above but for DRS/NX 4.2MP 7MPlus.
  4191. iclsys5r4m+:
  4192.     @echo 'Making C-Kermit $(CKVER) for ICL UNIX System V R4 DRS/NX 4.2MP+'
  4193.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4194.     "CFLAGS = -O -DSVR4 -DICL_SVR4 -DDIRENT -DHDBUUCP -DNOIKSD \
  4195.     -DSTERMIOX -DTCPSOCKET $(KFLAGS)" \
  4196.     "LIBS= -lsocket -lnsl -lm -lc -g -lgen " "LNKFLAGS = -s"
  4197.  
  4198. #As above but for DRS/NX 4.2MP 7MPlus with IKSD support.
  4199. iclsys5r4m+iksd:
  4200.     @echo 'Making C-Kermit $(CKVER) for ICL UNIX System V R4 DRS/NX 4.2MP+'
  4201.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4202.     "CFLAGS = -O -DSVR4 -DICL_SVR4 -DDIRENT -DHDBUUCP -DNOGETUSERSHELL \
  4203.     -DSTERMIOX -DTCPSOCKET $(KFLAGS)" \
  4204.     "LIBS= -lsocket -lnsl -lm -lc -g -lgen -lresolv " "LNKFLAGS = -s"
  4205.  
  4206. iclsys5r4_486:
  4207.     $(MAKE) "MAKE=$(MAKE)" iclsys5r4 KTARGET=$${KTARGET:-$(@)}
  4208.  
  4209. #Data General DG/UX 4.30 (System V R3) for DG AViiON, with TCP/IP support.
  4210. dgux430:
  4211.     @echo 'Making C-Kermit $(CKVER) for DG AViiON DG/UX 4.30...'
  4212.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4213.     "CFLAGS = -O -DDGUX430 -DSVR3 -DDIRENT -DTCPSOCKET \
  4214.     -DNOINADDRX -DNOGETUSERSHELL $(KFLAGS)"
  4215.  
  4216. #Data General DG/UX 4.30 for DG AViiON, with TCP/IP support with BSDisms.
  4217. dgux430bsd:
  4218.     @echo 'Making C-Kermit $(CKVER) for DG AViiON DG/UX 4.30...'
  4219.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4220.     "CFLAGS = -O -DDGUX430 -D_BSD_SOURCE -DBSD4 \
  4221.     -DNOINADDRX -DTCPSOCKET -DNOGETUSERSHELL $(KFLAGS)"
  4222.  
  4223. #Data General DG/UX 5.4 (System V R4) for DG AViiON, with TCP/IP support.
  4224. #Add -lsocket -lnsl if inet_addr comes up missing...
  4225. #Hmmm - I really think CK_POLL can be removed from this one in which case
  4226. #there is no difference between dgux540 and dgux540i.
  4227. dgux540:
  4228.     @echo 'Making C-Kermit $(CKVER) for DG AViiON DG/UX 5.40...'
  4229.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4230.     "CFLAGS = -O -DDGUX540 -DDIRENT -DHDBUUCP -DNOINADDRX \
  4231.     -DSTERMIOX -DTCPSOCKET -DCK_POLL -DNOGETUSERSHELL $(KFLAGS)"
  4232.  
  4233. #Data General DG/UX 5.40 (System V R4) for Intel AViiON, with TCP/IP support.
  4234. dgux540i:
  4235.     @echo 'Making C-Kermit $(CKVER) for DG AViiON DG/UX 5.40...'
  4236.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4237.     "CFLAGS = -O -DDGUX540 -DDIRENT -DHDBUUCP -DNOINADDRX \
  4238.     -DSTERMIOX -DTCPSOCKET -DNOGETUSERSHELL $(KFLAGS)" \
  4239.     "LIBS = -lsocket -lnsl"
  4240.  
  4241. dgux54:
  4242.     make dgux540 KTARGET=$${KTARGET:-$(@)}
  4243.  
  4244. #Data General DG/UX 5.4 (= System V R4) for DG AViiON, with TCP/IP support.
  4245. # And curses.
  4246. dgux540c:
  4247.     @echo 'Making C-Kermit $(CKVER) for DG AViiON DG/UX 5.4...'
  4248.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4249.     "CFLAGS = -O -DDGUX540 -DDIRENT -DHDBUUCP -DNOINADDRX \
  4250.     -DSTERMIOX -DTCPSOCKET -DCK_CURSES -DCK_NEWTERM -DNOGETUSERSHELL \
  4251.     $(KFLAGS)" "LIBS= -lcurses8 -ltermcap" "LNKFLAGS = -s"
  4252.  
  4253. #As above but for Intel - only difference is name library names.
  4254. dgux540ic:
  4255.     @echo 'Making C-Kermit $(CKVER) for DG AViiON DG/UX 5.40...'
  4256.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4257.     "CFLAGS = -O -DDGUX540 -DDIRENT -DHDBUUCP -DNOINADDRX \
  4258.     -DSTERMIOX -DTCPSOCKET -DCK_CURSES -DCK_NEWTERM -DNOGETUSERSHELL \
  4259.     $(KFLAGS)" "LIBS = -lsocket -lnsl -lcurses -ltermcap"
  4260.  
  4261. dgux54c:
  4262.     make dgux540c KTARGET=$${KTARGET:-$(@)}
  4263.  
  4264. #DG/UX 5.4R3.10
  4265. dgux54310:
  4266.     @echo 'Making C-Kermit $(CKVER) for DG AViiON DG/UX 5.4R3...'
  4267.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4268.     "CFLAGS = -DDGUX540 -DDGUX54310 -DDIRENT -DHDBUUCP -DSELECT \
  4269.     -DSTERMIOX -DTCPSOCKET -DCK_CURSES -DCK_NEWTERM    -DNOGETUSERSHELL \
  4270.     -DNOINADDRX $(KFLAGS)" "LIBS= -lcurses8 -ltermcap" "LNKFLAGS = -s"
  4271.  
  4272. #DG/UX 5.4R4.10 - Includes everything.
  4273. dgux54410:
  4274.     @echo 'Making C-Kermit $(CKVER) for DG/UX 5.4R4.10...'
  4275.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4276.     "CFLAGS = -O -DDGUX540 -DDGUX54410 -DDIRENT -DHDBUUCP -DSELECT \
  4277.     -DSTERMIOX -DTCPSOCKET -DCK_CURSES -DCK_NEWTERM -DNOGETUSERSHELL \
  4278.     -DNOINADDRX $(KFLAGS)" "LIBS = -lsocket -lnsl -lcurses -ltermcap"
  4279.  
  4280. #DG/UX 5.4R4.11 - Includes everything.
  4281. dgux54411:
  4282.     @echo 'Making C-Kermit $(CKVER) for DG/UX 5.4R4.11...'
  4283.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4284.     "CFLAGS = -O -DDGUX540 -DDGUX54411 -DDIRENT -DHDBUUCP -DSELECT \
  4285.     -DSTERMIOX -DTCPSOCKET -DCK_CURSES -DCK_NEWTERM -DNOGETUSERSHELL \
  4286.     -DNOINADDRX $(KFLAGS)" "LIBS = -lsocket -lnsl -lcurses -ltermcap"
  4287.  
  4288. #DG/UX 5.4R4.20 - Includes everything.
  4289. dgux54420:
  4290.     @echo 'Making C-Kermit $(CKVER) for DG/UX 5.4R4.20...'
  4291.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4292.     "CFLAGS = -O -DDGUX540 -DDGUX54420 -DDIRENT -DHDBUUCP -DSELECT \
  4293.     -DSTERMIOX -DTCPSOCKET -DCK_CURSES -DCK_NEWTERM -DNOGETUSERSHELL \
  4294.     -DNOINADDRX $(KFLAGS)" \
  4295.     "LIBS = -lsocket -lresolv -lnsl -lcurses -ltermcap"
  4296.  
  4297. #Silicon Graphics System V R3 with BSD file system (IRIS)
  4298. iris:
  4299.     @echo Making C-Kermit $(CKVER) for Silicon Graphics IRIX pre-3.3...
  4300.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4301.     "CFLAGS = -O -DSVR3 -DLONGFN -DNOLEARN $(KFLAGS) -I/usr/include/bsd" \
  4302.     "LIBS = -lbsd"
  4303.  
  4304. #Silicon Graphics IRIS System V R3
  4305. irix33:
  4306.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 3.3...'
  4307.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4308.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DNOLEARN $(KFLAGS) -O" \
  4309.     "LNKFLAGS = -s"
  4310.  
  4311. #Silicon Graphics Iris Indigo with IRIX 4.0.0 or 5.0...
  4312. #Strict ANSI C compilation, TCP/IP support included
  4313. irix40:
  4314.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 4.0...'
  4315.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4316.     "CFLAGS = -DIRIX40 -DSVR3 -DDIRENT -DHDBUUCP -DPWID_T=uid_t \
  4317.     -DCK_ANSIC -DTCPSOCKET $(KFLAGS) -O -Olimit 1600 -I/usr/include/bsd" \
  4318.     "LNKFLAGS = -s"
  4319.  
  4320. #As above, but with fullscreen display (curses) and Sun Yellow Pages support.
  4321. #NOTE: IRIX versions prior to 5 run COFF binaries.
  4322. irix40ypc:
  4323.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 4.0.'
  4324.     @echo 'Includes fullscreen file display and Sun Yellow Pages...'
  4325.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4326.     "CFLAGS = -DIRIX40 -DSVR3 -DDIRENT -DHDBUUCP -DCK_CURSES \
  4327.     -DPWID_T=uid_t -DCK_ANSIC -DTCPSOCKET $(KFLAGS) \
  4328.     -O -Olimit 1600 -I/usr/include/bsd" \
  4329.     "LIBS = -lcurses -lsun" "LNKFLAGS = -s"
  4330.  
  4331. # Silicon Graphics Iris Series 4D/*, IRIX 4.0.x, -O4 ucode optimized.
  4332. # Huge temporary file space needed for ucode optimizer.  If you get an error
  4333. # like "ugen: internal error writing to /tmp/ctmca08777: Error 0", define the
  4334. # the TMPDIR environment variable to point to a file system that has more
  4335. # space available, e.g. "setenv TMPDIR /usr/tmp".
  4336. irix40u:
  4337.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 4.0...'
  4338.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4339.     "CFLAGS = -DIRIX40 -DSVR3 -DDIRENT -DHDBUUCP -DPWID_T=uid_t \
  4340.     -DCK_ANSIC -DTCPSOCKET $(KFLAGS) -O4 -Olimit 1600" \
  4341.     "LNKFLAGS=-O4 -Olimit 1600 -s" "EXT=u"
  4342.  
  4343. # As above, with Curses Support added
  4344. irix40uc:
  4345.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 4.0...'
  4346.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4347.     "CFLAGS = -DIRIX40 -DSVR3 -DDIRENT -DHDBUUCP -DPWID_T=uid_t \
  4348.     -DCK_ANSIC -DCK_CURSES -DTCPSOCKET $(KFLAGS) -O4 -Olimit 1600" \
  4349.     "LNKFLAGS=-O4 -Olimit 1600 -s" "EXT=u" "LIBS= -lcurses -ltermcap"
  4350.  
  4351. #Silicon Graphics IRIX 5.x.
  4352. #Yellow Pages and Curses support included.
  4353. #IRIX version 5.x can run COFF or ELF binaries.
  4354. irix51:
  4355.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 5.x'
  4356.     @echo 'Includes fullscreen file display and Yellow Pages...'
  4357.     @echo 'Add -mips<n> to CFLAGS specify a particular hardware target.'
  4358.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4359.     "CFLAGS = -DIRIX51 -DSVR4 -DDIRENT -DHDBUUCP -DCK_CURSES -DCK_NEWTERM \
  4360.     -DPWID_T=uid_t -DCK_ANSIC -DTCPSOCKET -DSELECT -DNOGETUSERSHELL \
  4361.     -DSYSTIMEH -DDCLPOPEN -DDCLFDOPEN $(KFLAGS) -ansi -O -Olimit 3000" \
  4362.     "LIBS = -lcurses" "LNKFLAGS = -s"
  4363.  
  4364. #Use this one if irix51 blows up due to lack of swap space or whatever.
  4365. irix51x:
  4366.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 5.x'
  4367.     @echo 'Includes fullscreen file display and Yellow Pages...'
  4368.     @echo 'Add -mips<n> to CFLAGS specify a particular hardware target.'
  4369.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4370.     "CFLAGS = -DIRIX51 -DSVR4 -DDIRENT -DHDBUUCP -DCK_CURSES -DCK_NEWTERM \
  4371.     -DPWID_T=uid_t -DCK_ANSIC -DTCPSOCKET -DSELECT -DNOGETUSERSHELL \
  4372.     -DSYSTIMEH -DDCLPOPEN -DDCLFDOPEN $(KFLAGS)" \
  4373.     "LIBS = -lcurses" "LNKFLAGS = -s"
  4374.  
  4375. irix51ypc:
  4376.     $(MAKE) "MAKE=$(MAKE)" irix51 KTARGET=$${KTARGET:-$(@)} \
  4377.     "KFLAGS= $(KFLAGS)"
  4378.  
  4379. #IRIX 5.2 adds RTS/CTS
  4380. irix52:
  4381.     $(MAKE) "MAKE=$(MAKE)" irix51 KTARGET=$${KTARGET:-$(@)} \
  4382.     "KFLAGS=-DIRIX52 -DCK_RTSCTS $(KFLAGS)"
  4383.  
  4384. irix53:
  4385.     $(MAKE) "MAKE=$(MAKE)" irix51 KTARGET=$${KTARGET:-$(@)} \
  4386.     "KFLAGS=-DIRIX52 -DIRIX53 -DCK_RTSCTS $(KFLAGS)"
  4387.  
  4388. irix53x:
  4389.     $(MAKE) "MAKE=$(MAKE)" irix51x KTARGET=$${KTARGET:-$(@)} \
  4390.     "KFLAGS=-DIRIX52 -DIRIX53 -DCK_RTSCTS $(KFLAGS)"
  4391.  
  4392. #Silicon Graphics IRIX 6.[024] common stuff.
  4393. #Yellow Pages and Curses support included.
  4394. #IRIX version 6.0 and later runs only ELF binaries.
  4395. #Depends on code changes in ckudeb.h that make -DIRIX6x define all
  4396. #lower IRIX6x values and IRIX51.
  4397. irix6x:
  4398.     @echo 'Includes fullscreen file display and Yellow Pages...'
  4399.     @echo 'Add -mips<n> to specify a particular hardware target.'
  4400.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4401.     "CFLAGS = -DSVR4 -DDIRENT -DHDBUUCP -DNOGETUSERSHELL \
  4402.     -DCK_CURSES -DCK_NEWTERM -DPWID_T=uid_t -DCK_ANSIC -DTCPSOCKET \
  4403.     -DSELECT -DCK_RTSCTS -O $(KFLAGS)" \
  4404.     "LIBS = -lcurses" "LNKFLAGS = -s $(LNKFLAGS)"
  4405.  
  4406. #Silicon Graphics IRIX 6.0.
  4407. irix60:
  4408.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 6.0'
  4409.     @$(MAKE) "MAKE=$(MAKE)" \
  4410.     "KFLAGS=-DIRIX60 -Olimit 2138 $(KFLAGS)" \
  4411.     irix6x KTARGET=$${KTARGET:-$(@)}
  4412.  
  4413. #Silicon Graphics IRIX 6.2.
  4414. #Serial speeds > 38400 are available in IRIX 6.2 on O-class machines only.
  4415. #Note: Olimit must be a number > 0.
  4416. irix62:
  4417.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 6.2'
  4418.     @$(MAKE) "MAKE=$(MAKE)" \
  4419.     LNKFLAGS="-Wl,-woff,84" \
  4420.     "KFLAGS=-DIRIX62 -Olimit 4700 $(KFLAGS)" \
  4421.     irix6x KTARGET=$${KTARGET:-$(@)}
  4422.  
  4423. #Silicon Graphics IRIX 6.3.
  4424. irix63:
  4425.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 6.3'
  4426.     @$(MAKE) "MAKE=$(MAKE)" irix62 KTARGET=$${KTARGET:-$(@)} \
  4427.     "KFLAGS=-DIRIX63"
  4428.  
  4429. #Silicon Graphics IRIX 6.4.
  4430. # -woff,84 to linker stops complaints about no symbols loaded from
  4431. # curses, and -woff 1110 stops complaints about unreachable "break;"
  4432. # statements in ckcpro.c among others.
  4433. # tested on SGI Octane, running IRIX 6.4 up to 115200 bps.
  4434. # -Olimit 0 means infinite.
  4435. irix64:
  4436.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 6.4'
  4437.     @$(MAKE) "MAKE=$(MAKE)" \
  4438.     LNKFLAGS="-Wl,-woff,84" \
  4439.     "KFLAGS=-DIRIX64 -DCK_RTSCTS -Olimit 3000 -woff 1110 $(KFLAGS)" \
  4440.     irix6x KTARGET=$${KTARGET:-$(@)}
  4441.  
  4442. irix64gcc:
  4443.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 6.4 gcc'
  4444.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  4445.     "CFLAGS= -DSVR4 -DIRIX64 -DCK_CURSES -DTCPSOCKET -DNOCOTFMC \
  4446.     $(KFLAGS) -O" "LIBS= -lcurses -ltermcap -lcrypt"
  4447.  
  4448. #Note the new Optimization option syntax for MIPSpro CC 7.2.1.2m.
  4449. irix65:
  4450.     @echo 'Making C-Kermit $(CKVER) for SGI IRIX 6.5'
  4451.     @$(MAKE) "MAKE=$(MAKE)" LNKFLAGS="-Wl,-woff,84" \
  4452.     "KFLAGS=-DIRIX65 -DCK_RTSCTS -OPT:Olimit=0 -woff 1110,1552,1174 \
  4453.     $(KFLAGS)" \
  4454.     irix6x KTARGET=$${KTARGET:-$(@)}
  4455.  
  4456. #Dumb down to MIPS-2 if building on R5000 or higher...
  4457. irix65mips2:
  4458.     @echo 'Making C-Kermit $(CKVER) for SGI IRIX 6.5 MIPS-2'
  4459.     @$(MAKE) "MAKE=$(MAKE)" LNKFLAGS="-o32 -mips2 -Wl,-woff,84" \
  4460.     "KFLAGS=-DIRIX65 -DCK_RTSCTS -OPT:Olimit=0 -o32 -mips2 \
  4461.     -woff 1110,1552,1174 $(KFLAGS)" \
  4462.     irix6x KTARGET=$${KTARGET:-$(@)}
  4463.  
  4464. irix6x+krb5:
  4465.     @echo 'Includes fullscreen file display and Yellow Pages...'
  4466.     @echo 'Add -mips<n> to specify a particular hardware target.'
  4467.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4468.     "CFLAGS = -DSVR4 -DDIRENT -DHDBUUCP -DNOGETUSERSHELL \
  4469.     -DCK_CURSES -DCK_NEWTERM -DPWID_T=uid_t -DCK_ANSIC -DTCPSOCKET\
  4470.     -DSELECT -DCK_RTSCTS -O \
  4471.     -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 -DCK_ENCRYPTION -DCK_DES \
  4472.     $(K5INC) $(K5INC)/krb5 $(KFLAGS)" \
  4473.     "LIBS = -lcurses $(K5LIB) -ldes425 -lkrb5 \
  4474.     -lcom_err -lcrypto -lcrypt -lgssapi_krb5" \
  4475.     "LNKFLAGS = -s $(LNKFLAGS)"
  4476.  
  4477. irix65+krb5:
  4478.     @echo 'Making C-Kermit $(CKVER) for SGI IRIX 6.5'
  4479.     @$(MAKE) "MAKE=$(MAKE)" \
  4480.     LNKFLAGS="-Wl,-woff,84" \
  4481.     "KFLAGS=-DIRIX65 -DCK_RTSCTS -OPT:Olimit=0 -woff 1110,1552,1174 \
  4482.     $(KFLAGS)" \
  4483.     irix6x+krb5 KTARGET=$${KTARGET:-$(@)}
  4484.  
  4485. #In case they type "make sys5"...
  4486. sys5:
  4487.     $(MAKE) "MAKE=$(MAKE)" sys3 KTARGET=$${KTARGET:-$(@)}
  4488.  
  4489. #Generic ATT System III or System V (with I&D space)
  4490. sys3:
  4491.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System III'
  4492.     @echo 'or System V R2 or earlier...'
  4493.     @echo 'add -DNOMKDIR if mkdir is an undefined symbol.'
  4494.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4495.     "CFLAGS = -DATTSV -DNOUNICODE -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL \
  4496.     -DNOINITGROUPS -DNOFTRUNCATE -DNOREALPATH -DNOLEARN $(KFLAGS) -i -O" \
  4497.     "LNKFLAGS = -i"
  4498.  
  4499. #Generic ATT System III or System V (no I&D space)
  4500. sys3nid:
  4501.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System III'
  4502.     @echo 'or System V R2 or earlier, no I&D space...'
  4503.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4504.     "CFLAGS = -DATTSV -DNOREALPATH -DNOUNICODE -DNOSYSLOG -DNOSYMLINK \
  4505.     -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE -DNOLEARN $(KFLAGS) -O" \
  4506.     "LNKFLAGS ="
  4507.  
  4508. #Generic ATT System III or System V R2 or earlier, "no void":
  4509. #special entry to remove "Illegal pointer combination" warnings.
  4510. sys3nv:
  4511.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System III'
  4512.     @echo 'or System V R2 or earlier...'
  4513.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4514.     "CFLAGS= -DATTSV -DNOREALPATH -DNOUNICODE -DNOSYSLOG -DNOGETUSERSHELL \
  4515.     -DNOSYMLINK -DNOFTRUNCATE -DNOINITGROUPS -DNOLEARN \
  4516.     -Dvoid=int $(KFLAGS) -i -O" \
  4517.     "LNKFLAGS = -i"
  4518.  
  4519. # AT&T 7300 UNIX PC.  As of C-Kermit 6.1, many of these entries don't work
  4520. # any more due to "Out of memory" or "Too many defines" errors during
  4521. # compilation, at least not on systems without lots of memory.  The sys3upcgc
  4522. # entry works (using gcc) with optimization removed, and might also work
  4523. # with optimization enabled on machines with larger memories.
  4524.  
  4525. #AT&T 7300/UNIX PC (3B1) systems, sys3 but special handling for internal modem.
  4526. #Link with the shared library -- the conflict with openi in shared library
  4527. #is solved with -Dopeni=xopeni.  Note that the xermit target can't be used
  4528. #for the Unix PC; there is no select().
  4529. sys3upc:
  4530.     @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC, shared lib...'
  4531.     @echo 'If shared lib causes trouble, use make sys3upcold.'
  4532.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4533.     "CFLAGS = -O -DATT7300 -DNOMKDIR -DUSE_MEMCPY -DNOREALPATH -DNOLEARN \
  4534.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  4535.     -DNOREDIRECT -DNOGFTIMER -DNOUNICODE $(KFLAGS) -Dopeni=xopeni" \
  4536.     "CC2 = ld /lib/crt0s.o /lib/shlib.ifile" "LNKFLAGS = -s"
  4537.  
  4538. #AT&T 7300/Unix PC systems, minimum kermit for those with smaller amounts
  4539. #of memory.
  4540. sys3upcm:
  4541.     @echo Minimum interactive
  4542.     $(MAKE) "MAKE=$(MAKE)" sys3upc KTARGET=$${KTARGET:-$(@)} \
  4543.     "KFLAGS=-DNOSPL -DNOFRILLS -DNOHELP -DNODEBUG -DNOTLOG -DNOCSETS \
  4544.     -DNOSYSLOG -DNOSETKEY -DNOREALPATH"
  4545.  
  4546. #AT&T 7300/UNIX PC (3B1) systems, with curses support.
  4547. #Curses and the shared library don't get along, so we don't use the
  4548. #shared library.  We need to include CK_NEWTERM to avoid a conflict
  4549. #with curses and buffering on stdout.  Merged with submission by
  4550. #Robert Weiner/Programming Plus, rweiner@watsun.cc.columbia.edu.
  4551. #We don't need -Dopeni=xopeni since we're not using the shared library,
  4552. #but we keep it to be consistent with the other entries.
  4553. sys3upcc:
  4554.     @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC, curses...'
  4555.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4556.     "CFLAGS = -O -DATT7300 -DNOREALPATH \
  4557.     -DCK_CURSES -DCK_NEWTERM -DNOMKDIR -DNOREDIRECT -DNOGFTIMER -DNOLEARN \
  4558.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  4559.     -DUSE_MEMCPY -DNOUNICODE $(KFLAGS) -Dopeni=xopeni" \
  4560.     "LIBS = -lcurses" "LNKFLAGS = -s"
  4561.  
  4562. #Like sys3upcc but for AT&T UNIX 3.51m (released as a patch on Fix Disk 2),
  4563. #adds hardware flow control.
  4564. att351m:
  4565.     $(MAKE) "MAKE=$(MAKE)" sys3upcc KTARGET=$${KTARGET:-$(@)} \
  4566.     "KFLAGS=-DCK_RTSCTS -DUNIX351M"
  4567.  
  4568. #As above but with gcc.
  4569. att351gm:
  4570.     $(MAKE) "MAKE=$(MAKE)" sys3upcgc KTARGET=$${KTARGET:-$(@)} \
  4571.     "KFLAGS=-DCK_RTSCTS -DUNIX351M"
  4572.  
  4573. #AT&T 7300 UNIX PC (3B1), as above, but no newterm().
  4574. sys3upcx:
  4575.     @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC, curses...'
  4576.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4577.     "CFLAGS = -O -DATT7300 -DNOREALPATH -DNOUNICODE -DNOLEARN \
  4578.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  4579.     -DCK_CURSES -DNOMKDIR -DNOREDIRECT -DNOGFTIMER -DUSE_MEMCPY $(KFLAGS) \
  4580.     -Dopeni=xopeni" "LIBS = -lcurses -ltermcap" "LNKFLAGS = -s"
  4581.  
  4582. #AT&T 7300/UNIX PC (3B1) systems, with curses and shared library support.
  4583. sys3upcshcc:
  4584.     @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC, shared lib...'
  4585.     @echo 'With curses.  Requires shcc.'
  4586.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4587.     "CFLAGS = -O -DATT7300 -DNOMKDIR -DNOREALPATH -DNOLEARN \
  4588.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  4589.     -DCK_NEWTERM -DCK_CURSES  -DNOREDIRECT -DNOGFTIMER \
  4590.     -DUSE_MEMCPY -DNOUNICODE $(KFLAGS) -Dopeni=xopeni" \
  4591.     "LNKFLAGS = -i -s" "CC = shcc" "CC2 = shcc" "LIBS = -lcurses"
  4592.  
  4593. #AT&T 7300/UNIX PC (3B1) systems, as above, no curses, but use gcc.
  4594. sys3upcg:
  4595.     @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC...'
  4596.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4597.     "CFLAGS = -DATT7300 -DNOREDIRECT -DUSE_MEMCPY -DNOUNICODE -DNOLEARN \
  4598.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  4599.     -DNOGFTIMER -DNOMKDIR -DNOREALPATH $(KFLAGS) -Dopeni=xopeni" \
  4600.     "CC = gcc" "CC2 = gcc" "LNKFLAGS = -s -shlib"
  4601.  
  4602. #AT&T 7300/UNIX PC (3B1) systems, curses and gcc.
  4603. #Optimization omitted -- add it back in if your machine has lots of memory.
  4604. sys3upcgc:
  4605.     @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC, curses...'
  4606.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4607.     "CFLAGS = -DATT7300 -DNOREDIRECT -DUSE_MEMCPY -DNOGFTIMER -DNOUNICODE \
  4608.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  4609.     -DCK_CURSES -DCK_NEWTERM -DNOMKDIR -DNOREALPATH -DNOLEARN $(KFLAGS)" \
  4610.     "CC = gcc" "CC2 = gcc" "LIBS = -lcurses" "LNKFLAGS = -s"
  4611.  
  4612. #AT&T 7300/UNIX PC (3B1) systems, special handling for internal modem.
  4613. #No FULLSCREEN file transfer display (curses).
  4614. sys3upcold:
  4615.     @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC...'
  4616.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4617.     "CFLAGS = -DATT7300 -DNOMKDIR -DUSE_MEMCPY -DNOUNICODE -DNOLEARN \
  4618.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  4619.     -DNOGFTIMER -DNOREDIRECT -DNOREALPATH $(KFLAGS) -O" "LNKFLAGS = -i"
  4620.  
  4621. #As above, but with gcc. mininum features - fits on a 400K UNIX PC floppy
  4622. #after compression with room to spare; add -DNOSHOW or other -DNOxxxx items
  4623. #to reduce size even further.
  4624. sys3upcgm:
  4625.     @echo Minimum interactive
  4626.     $(MAKE) "MAKE=$(MAKE)" sys3upcg KTARGET=$${KTARGET:-$(@)} \
  4627.     "KFLAGS=-DNOSPL -DNOFRILLS -DNOHELP -DNODEBUG -DNOTLOG -DNOCSETS \
  4628.     -DNOSETKEY $(KFLAGS)"
  4629.  
  4630. #This target is designed to create a version with the most features possible
  4631. #that, after compression, still fits on a 400K UNIX PC floppy.
  4632. sys3upcgfd:
  4633.     @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC floppy...'
  4634.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4635.     "CFLAGS = -DATT7300 -DNOREDIRECT -DUSE_MEMCPY -DNOSPL -DNOLEARN \
  4636.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  4637.     -DNOGFTIMER -DNOREALPATH -Dopeni=xopeni \
  4638.     -DNOHELP -DNODEBUG -DNOTLOG -DNOCSETS -DNOSETKEY -DNOMKDIR $(KFLAGS)" \
  4639.     "CC = gcc" "CC2 = gcc" "LNKFLAGS = -s"
  4640.  
  4641. #AT&T 6300 PLUS (warning, -O might make it run out of space).
  4642. #NOTE: Remove -DHDBUUCP if not using Honey DanBer UUCP.
  4643. att6300:
  4644.     @echo 'Making C-Kermit $(CKVER) for AT&T 6300 PLUS...'
  4645.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4646.     "CFLAGS = -DATT6300 -DHDBUUCP -DNOFILEH -DNOREALPATH -DNOLEARN \
  4647.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  4648.     -DNOUNICODE $(KFLAGS) -O -Ml -i" "LNKFLAGS = -i -Ml"
  4649.  
  4650. #As above, but with curses support.  Debugging disabled to prevent thrashing.
  4651. att6300c:
  4652.     @echo 'Making C-Kermit $(CKVER) for AT&T 6300 PLUS...'
  4653.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4654.     "CFLAGS = -DATT6300 -DHDBUUCP -DNOFILEH -DNOCSETS -DNOREALPATH \
  4655.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  4656.     -DCK_CURSES -DNODEBUG -DNOUNICODE -DNOLEARN $(KFLAGS) -O -Ml -i" \
  4657.     "LNKFLAGS = -i -Ml" "LIBS = -lcurses"
  4658.  
  4659. #AT&T 6300 PLUS with no curses, no debugging (about 34K smaller)
  4660. # -Optimization saves about 20K too.
  4661. att6300nd:
  4662.     @echo 'Making C-Kermit $(CKVER) for AT&T 6300 PLUS, no debugging...'
  4663.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4664.     "CFLAGS = -DATT6300 -DHDBUUCP -DNODEBUG -DNOFILEH -DNOREALPATH \
  4665.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  4666.     -DNOUNICODE -DNOLEARN $(KFLAGS) -O -i -Ml" "LNKFLAGS = -i -Ml"
  4667.  
  4668. #AT&T 3B2 and maybe 3B20-series computers running AT&T UNIX System V R3.
  4669. #This one was actually used to build C-Kermit 7.0 successfully on a 3B2/300.
  4670. att3b2:
  4671.     @echo 'Making C-Kermit $(CKVER) for AT&T 3B2'
  4672.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4673.     "CFLAGS = -DATTSV -DNOREDIRECT -DUSE_MEMCPY \
  4674.     -DNOTIMEVAL -DNOTIMEZONE -DMINIDIAL -DNOCHANNELIO -DNOBIGBUF \
  4675.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  4676.     -DNOGFTIMER -DNOREALPATH -Dopeni=xopeni -DNOFRILLS -DNOLEARN \
  4677.     -DNOHELP -DNODEBUG -DNOTLOG -DNOCSETS -DNOSETKEY -DNOMKDIR $(KFLAGS)" \
  4678.     "CC = gcc" "CC2 = gcc" "LNKFLAGS = -s"
  4679.  
  4680. # The next two are likely not to work as-is.
  4681.  
  4682. #AT&T 3B2, 3B20-series computers running AT&T UNIX System V.
  4683. #This is just generic System V with Honey DanBer UUCP, so refer to sys3hdb.
  4684. #Remove -DNONAWS if you can get away with it.
  4685. att3bx:
  4686.     $(MAKE) "MAKE=$(MAKE)" sys3hdb KTARGET=$${KTARGET:-$(@)} \
  4687.     "KFLAGS=$(KFLAGS) -DNONAWS -DNOTIMEVAL"
  4688.  
  4689. # 3Bx with charsets (except Unicode) but no curses.
  4690. att3bx1:
  4691.     @echo 'Making C-Kermit $(CKVER) for AT&T 3B2 or 3B20'
  4692.     @echo 'with Honey DanBer UUCP  no curses...'
  4693.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4694.     "CFLAGS = -DATTSV -DHDBUUCP $(KFLAGS) -DNOREDIRECT \
  4695.     -DNOTIMEVAL -DNOTIMEZONE -DMINIDIAL -DNOCHANNELIO -DNOBIGBUF \
  4696.     -DNOHELP -DNODEBUG -DNOGFTIMER -DNOLEARN \
  4697.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  4698.     -DNOREALPATH -DNOUNICODE -i" \
  4699.     "CC = gcc" "CC2 = gcc" "LNKFLAGS = -i -s"
  4700.  
  4701. #AT&T 3B2, 3B20-series computers running AT&T UNIX System V,
  4702. #with fullscreen file transfer display.
  4703. att3bxc:
  4704.     @echo 'Making C-Kermit $(CKVER) for AT&T 3B2 or 3B20'
  4705.     @echo 'with Honey DanBer UUCP and curses...'
  4706.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4707.     "CFLAGS = -DATTSV -DHDBUUCP -DNONAWS -DNOTIMEVAL $(KFLAGS) \
  4708.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  4709.     -DNOREALPATH -DCK_CURSES -DCK_NEWTERM -DNOUNICODE -DNOLEARN -i -O" \
  4710.     "LNKFLAGS = -i" "LIBS=-lcurses"
  4711.  
  4712. #3bx with curses but no charsets
  4713. att3bxc3:
  4714.     @echo 'Making C-Kermit $(CKVER) for AT&T 3B2 or 3B20'
  4715.     @echo 'with Honey DanBer UUCP with curses...  no CSETS'
  4716.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4717.     "CFLAGS = -DATTSV -DHDBUUCP $(KFLAGS) -DNOREDIRECT \
  4718.     -DNOTIMEVAL -DNOTIMEZONE -DMINIDIAL -DNOCHANNELIO -DNOBIGBUF \
  4719.     -DNOHELP -DNODEBUG -DNOGFTIMER -DNOLEARN \
  4720.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  4721.     -DNOREALPATH -DNOCSETS -DCK_CURSES -DCK_NEWTERM -i" \
  4722.     "CC = gcc" "CC2 = gcc" "LNKFLAGS = -i -s" "LIBS = -lcurses"
  4723.  
  4724. #Any System V R2 or earlier with Honey DanBer UUCP (same as above)
  4725. sys3hdb:
  4726.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System III'
  4727.     @echo 'or System V R2 or earlier with Honey DanBer UUCP...'
  4728.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4729.     "CFLAGS = -DATTSV -DHDBUUCP -DNOREALPATH -DNOUNICODE -DNOLEARN \
  4730.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  4731.     $(KFLAGS) -i -O" "LNKFLAGS = -i"
  4732.  
  4733. #Sperry/UNISYS 5000 UTS V 5.2 (System V R2), Honey DanBer UUCP
  4734. unisys5r2:
  4735.     @echo 'Making C-Kermit $(CKVER) for Sperry/UNISYS 5000 UTS V 5.2...'
  4736.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4737.     "CFLAGS = -DATTSV -DUNISYS52 -DHDBUUCP -DNOREALPATH -DNOUNICODE \
  4738.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  4739.     -DNOLEARN $(KFLAGS) -i -O" "LNKFLAGS = -i"
  4740.  
  4741. #In case they say "make sys5hdb" instead of "make sys3hdb"...
  4742. sys5hdb:
  4743.     $(MAKE) "MAKE=$(MAKE)" sys3hdb
  4744.  
  4745. #Create the common header line for all hpux[5-10]* entries. This extra entry is
  4746. #here because our header message length may differ for each C-Kermit version.
  4747. #Don't use 'fold -s' for HP-UX 5.x - 7.x! This option is there only since
  4748. #HP-UX 8.0!
  4749. hpux-header:
  4750.     @HPUX=`uname -r | sed -e 's/^[^1-9]*//' -e 's/\.00$$/.0/'` ; \
  4751.     [ "$(MESSAGE0)" ] && MESSAGE1="$(MESSAGE0)" ; \
  4752.     Message0='Making C-Kermit $(CKVER) for HP9000 HP-UX' ; \
  4753.     Message1=$${MESSAGE1:='without any extra compiler optimization'} ; \
  4754.     MessageH="$$Message0 $$HPUX" ; \
  4755.     case $$HPUX in \
  4756.       [567].*) echo "$$MessageH\n$$Message1" ;; \
  4757.           *.*) echo "$$MessageH $${Message1}$(MESSAGE1A)" | fold -s ;; \
  4758.     esac | sed -e 's/^ //' -e 's/ *$$//'
  4759.  
  4760. # Peter E's updated HP-UX 5.xx entries Oct 2001.
  4761.  
  4762. #HP-9000 500 HP-UX 5.xx, no TCP/IP.
  4763. hpux0500:
  4764.     @MESSAGE0="no TCP/IP and no compiler optimization";\
  4765.     MESSAGE0=$${MESSAGE1:-$$MESSAGE0} \
  4766.     $(MAKE) hpux-header
  4767.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4768.     "CFLAGS = -DHPUX -DHPUX5 -DHPUXPRE65 -DNOREDIRECT -DDCLGETCWD \
  4769.     -DNOGETUSERSHELL -DNOGFTIMER -DNOSYSLOG -DNOTOMACROS -DNOLSTAT \
  4770.     -DNOSYMLINK -DNOINITGROUPS -DNOUNICODE -DNOLEARN $(KFLAGS)" \
  4771.     "LIBS = $(LIBS)" "LNKFLAGS = "
  4772.  
  4773. #HP-9000 500 HP-UX 5.21 with Wollongong WIN/TCP 1.2 TCP/IP.
  4774. #Requires /usr/wins/usr/include and /usr/lib/libnet.a from Wollongong.
  4775. #Optimization skipped - takes forever.    Really.
  4776. # WARNING: this doesn't work if a file called "hpux0500" is on the disk.
  4777. hpux0500wintcp:
  4778.     @MESSAGE1="with WIN/TCP but without any extra compiler optimization" \
  4779.     $(MAKE) hpux0500 KTARGET=$${KTARGET:-$(@)} \
  4780.     "KFLAGS = -DTCPSOCKET -DHPUX5WINTCP -DINADDRX -DNO_DNS_SRV -DNOMHHOST \
  4781.     -DNOHADDRLIST -I/usr/wins/usr/include $(KFLAGS)" \
  4782.     "LIBS = /usr/lib/libnet.a"
  4783.  
  4784. #HP-UX 6.5, short filenames, no network and no curses support.
  4785. #ckcpro, ckuusr, ckuus3 and others are broken out because they make the
  4786. #optimizer run away.  Note that xermit target does not work with this one!
  4787. #If you get compiler warnings like 'Switch table overflow' increase the '...'
  4788. #value in '-Wc,-Nw...'!
  4789. hpux0650:
  4790.     @$(MAKE) hpux-header
  4791.     @echo 'supporting: NO long filenames, NO network${MESSAGE2}.'
  4792.  
  4793.     $(MAKE) KTARGET=$${KTARGET:-$(@)} \
  4794.         ckuusr.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) \
  4795.             ckuus6.$(EXT) ckuxla.$(EXT) ckcpro.$(EXT) \
  4796.     "CFLAGS = -DHPUX -DHPUX6 -DSIG_V -DNOSYSLOG -DNOSELECT -DFNFLOAT \
  4797.     -DDCLGETCWD -DNOGETUSERSHELL -DNO_DNS_SRV -DNOLEARN $(KFLAGS) \
  4798.     -Wc,-Nw260"
  4799.  
  4800.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4801.     "CFLAGS = -DHPUX -DHPUX6 -DSIG_V -DNOSYSLOG -DNOSELECT -DFNFLOAT \
  4802.     -DDCLGETCWD -DNOGETUSERSHELL -DNO_DNS_SRV -DNOLEARN $(KFLAGS) \
  4803.     -Wc,-Nw260 $(OFLAGS)" "LNKFLAGS = -s" "LIBS = -lm $(LIBS)"
  4804.  
  4805. #Exactly as above, plus curses:
  4806. hpux0650c:
  4807.     @MESSAGE2=", but with curses" \
  4808.     $(MAKE) hpux0650 KTARGET=$${KTARGET:-$(@)} \
  4809.     "KFLAGS= -DCK_CURSES $(KFLAGS)" \
  4810.     "LIBS= -lcurses"
  4811.  
  4812. #Exactly as above, plus curses + network:
  4813. #(doesn't work -- HP-UX 6 lacks the FD_SET macros -- this can be addressed
  4814.  
  4815. hpux0650tcpc:
  4816.     @MESSAGE2=", but with curses and with tcp/ip" \
  4817.     $(MAKE) hpux0650 KTARGET=$${KTARGET:-$(@)} \
  4818.     "KFLAGS= -DCK_CURSES -DTCPSOCKET -DNOHADDRLIST $(KFLAGS)" \
  4819.     "LIBS= -lcurses"
  4820.  
  4821. #Exactly as hpux0650 but with compiler optimization:
  4822. hpux0650o:
  4823.     @MESSAGE1="with compiler optimization" \
  4824.     $(MAKE) hpux0650 KTARGET=$${KTARGET:-$(@)} \
  4825.     "KFLAGS= $(KFLAGS)" "OFLAGS = -O"
  4826.  
  4827. #Exactly as hpux0650c but with compiler optimization:
  4828. hpux0650oc:
  4829.     @MESSAGE1="with compiler optimization" \
  4830.     $(MAKE) hpux0650c KTARGET=$${KTARGET:-$(@)} \
  4831.     "KFLAGS= $(KFLAGS)" "OFLAGS = -O"
  4832.  
  4833. #Take this as startup entry for all 'none optimized' files under HP-UX 7.x!
  4834. #Make sure we doesn't call it with the '-O' option because this will blow up
  4835. #the compiler!
  4836. hpux0700noopt:
  4837.     @case "$(CFLAGS)" in \
  4838.     *-O*) echo "Don't use CFLAGS= -O here!" ;; \
  4839.        *) $(MAKE) KTARGET=$${KTARGET:-$(@)} \
  4840.           ckuusr.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) \
  4841.           ckuus6.$(EXT) ckuus7.$(EXT) ckuxla.$(EXT) \
  4842.           ckcuni.$(EXT) ckcftp.$(EXT) ckcpro.$(EXT) \
  4843.           ;; \
  4844.     esac
  4845.  
  4846. #HP-UX 7.0, no long filenames, no network support, no curses.
  4847. #If you get compiler warnings like 'Switch table overflow' increase the '...'
  4848. #value in '-Wc,-Nw...'!
  4849. hpux0700sf:
  4850.     @$(MAKE) hpux-header
  4851.     @echo 'supporting: NO long filenames, NO network, NO curses.'
  4852.     $(MAKE) hpux0700noopt KTARGET=$${KTARGET:-$(@)} \
  4853.     "CFLAGS = -DHPUX -DHPUX7 -DSIG_V -DNOGETUSERSHELL -DFNFLOAT \
  4854.     -DNO_DNS_SRV $(KFLAGS) -Wc,-Nw260"
  4855.  
  4856.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4857.     "CFLAGS = -DHPUX -DHPUX7 -DSIG_V -DNOGETUSERSHELL -DFNFLOAT \
  4858.     -DNO_DNS_SRV $(KFLAGS) -Wc,-Nw260 $(OFLAGS)" \
  4859.     "LNKFLAGS = -s" "LIBS = -lm $(LIBS)"
  4860.  
  4861. #Exactly as hpux0700sf but with compiler optimization:
  4862. hpux0700osf:
  4863.     @MESSAGE1="with compiler optimization" \
  4864.     $(MAKE) hpux0700sf KTARGET=$${KTARGET:-$(@)} \
  4865.     "KFLAGS= $(KFLAGS)" "OFLAGS = -O"
  4866.  
  4867. #HP-UX 7.0, short filenames, but with tcp/ip and curses.
  4868. #To use this, you must have bought the ARPA Services Product from HP, and you 
  4869. #must have /usr/lib/libBSD.a.
  4870. hpux0700sftcpc:
  4871.     @$(MAKE) hpux-header
  4872.     @echo 'supporting: NO long filenames, \c'
  4873.     @echo 'but with networking, curses, HDB uucp...'
  4874.     $(MAKE) hpux0700noopt KTARGET=$${KTARGET:-$(@)} \
  4875.     "CFLAGS =  -DHPUXDEBUG -DHPUX -DHPUX7 -DTCPSOCKET -DSIG_V \
  4876.     -DCK_REDIR -DCK_RTSCTS -DCK_CURSES -DNOGETUSERSHELL -DFNFLOAT \
  4877.     -DNO_DNS_SRV -DHDBUUCP -DLOCK_DIR=\\\"/usr/spool/uucp\\\" $(KFLAGS) \
  4878.     -Wc,-Nw260"
  4879.  
  4880.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4881.     "CFLAGS =  -DHPUXDEBUG -DHPUX -DHPUX7 -DTCPSOCKET -DSIG_V \
  4882.     -DCK_REDIR -DCK_RTSCTS -DCK_CURSES -DNOGETUSERSHELL -DFNFLOAT \
  4883.     -DNO_DNS_SRV -DHDBUUCP  -DLOCK_DIR=\\\"/usr/spool/uucp\\\" $(KFLAGS) \
  4884.     -Wc,-Nw260 $(OFLAGS)" "LNKFLAGS = -s" "LIBS= -lm -lBSD -lcurses"
  4885.  
  4886. #Exactly as above but with compiler optimization:
  4887. hpux0700osftcpc:
  4888.     @MESSAGE1="with compiler optimization" \
  4889.     $(MAKE) hpux0700sftcpc KTARGET=$${KTARGET:-$(@)} \
  4890.     "KFLAGS= $(KFLAGS)" "OFLAGS = -O"
  4891.  
  4892. #HP 9000 series 300/800 HP-UX 7.0, long filenames, network support, HDB uucp,
  4893. #but NO curses. See comments in hpux0700sftcpc about TCP/IP support.
  4894. hpux0700lfn:
  4895.     @$(MAKE) hpux-header
  4896.     @echo 'supporting: long filenames, networking, HDB uucp$(MESSAGE2)...'
  4897.     $(MAKE) hpux0700noopt KTARGET=$${KTARGET:-$(@)} \
  4898.     "CFLAGS =  -DHPUXDEBUG -DHPUX -DHPUX7 -DTCPSOCKET -DSIG_V -DFNFLOAT \
  4899.     -DNOGETUSERSHELL -DNOSETBUF -DCK_REDIR -DCK_RTSCTS -DLONGFN \
  4900.     -DNO_DNS_SRV -DDIRENT -DHDBUUCP -DLOCK_DIR=\\\"/usr/spool/uucp\\\" \
  4901.     $(KFLAGS) -Wc,-Nw260"
  4902.  
  4903.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4904.     "CFLAGS =  -DHPUXDEBUG -DHPUX -DHPUX7 -DTCPSOCKET -DSIG_V -DFNFLOAT \
  4905.     -DNOGETUSERSHELL -DNOSETBUF -DCK_REDIR -DCK_RTSCTS -DLONGFN \
  4906.     -DNO_DNS_SRV -DDIRENT -DHDBUUCP -DLOCK_DIR=\\\"/usr/spool/uucp\\\" \
  4907.     $(KFLAGS) -Wc,-Nw260 \
  4908.     $(OFLAGS)" "LNKFLAGS = -s" "LIBS = -lm -lBSD $(LIBS)"
  4909.  
  4910. #Exactly as above + curses.
  4911. hpux0700lfnc:
  4912.     @MESSAGE2=', curses' \
  4913.     $(MAKE) hpux0700lfn KTARGET=$${KTARGET:-$(@)} \
  4914.     "KFLAGS= -DCK_CURSES $(KFLAGS)" \
  4915.     "LIBS= -lcurses"
  4916.  
  4917. #Exactly as above hpux0700lfn but with compiler optimization:
  4918. hpux0700olfn:
  4919.     @MESSAGE1="with compiler optimization" \
  4920.     $(MAKE) hpux0700lfn KTARGET=$${KTARGET:-$(@)} \
  4921.     "KFLAGS= $(KFLAGS)" "OFLAGS = -O"
  4922.  
  4923. #Exactly as above hpux0700lfnc but with compiler optimization:
  4924. hpux0700olfnc:
  4925.     @MESSAGE1="with compiler optimization" \
  4926.     $(MAKE) hpux0700lfnc KTARGET=$${KTARGET:-$(@)} \
  4927.     "KFLAGS= $(KFLAGS)" "OFLAGS = -O"
  4928.  
  4929. #HP 9000 Series 300 or 400, HP-UX 8.0, long filenames and TCP/IP support.
  4930. #This one should also work on 700/800, but without PA-specific optimization.
  4931. #In case -DCK_RTSCTS and -DCK_REDIR make trouble, remove them.
  4932. #NOTE: ckcpro.c, ckuusr.c and ckuus3.c blow up the optimizer, so don't optimize
  4933. #them.
  4934. #For HP-UX 8.0 on Motorola CPUs, you might have to reinstall your kernel with
  4935. #maxdsiz >= 0x03000000.  But if physical memory is small, that still will not
  4936. #help much.
  4937. hpux0800:
  4938.     @$(MAKE) hpux-header
  4939.     @MESSAGE3=$${MESSAGE3:='TCP/IP'}; \
  4940.     echo "supporting: long filenames, $$MESSAGE3, HDB UUCP$(MESSAGE2)..."
  4941.     $(MAKE) -B "CC=$(CC)" "CC2=$(CC2)" KTARGET=$${KTARGET:-$(@)} \
  4942.     ckcpro.$(EXT) ckuusr.$(EXT) ckuus3.$(EXT) \
  4943.     "CFLAGS =  -DCK_REDIR -DHPUXDEBUG -DHPUX -DHPUX8 -DRENAME -DSIG_V \
  4944.     -DNOSETBUF -DDIRENT -DCK_RTSCTS -DSTERMIOX -DLONGFN -DTCPSOCKET \
  4945.     -DHDBUUCP  -DNO_DNS_SRV -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DFNFLOAT \
  4946.     $(KFLAGS)"
  4947.  
  4948.     $(MAKE) -B "CC=$(CC)" "CC2=$(CC2)" xermit KTARGET=$${KTARGET:-$(@)} \
  4949.     "CFLAGS =  -DCK_REDIR -DHPUXDEBUG -DHPUX -DHPUX8 -DRENAME -DSIG_V \
  4950.     -DNOSETBUF -DDIRENT -DCK_RTSCTS -DSTERMIOX -DLONGFN -DTCPSOCKET \
  4951.     -DHDBUUCP  -DNO_DNS_SRV -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DFNFLOAT \
  4952.     $(KFLAGS) $(OFLAGS)" "LNKFLAGS = -s" "LIBS = -lm -lBSD $(LIBS)"
  4953.  
  4954. #Exactly as above hpux0800 + curses.
  4955. hpux0800c:
  4956.     @MESSAGE2=', curses' \
  4957.     $(MAKE) hpux0800  KTARGET=$${KTARGET:-$(@)} \
  4958.     "KFLAGS = $(KFLAGS) -DCK_CURSES" "LIBS = -lcurses"
  4959.  
  4960. #HP 9000 HP-UX 8.0, no TCP/IP because /usr/lib/libBSD.a can't be found,
  4961. #or TCP/IP header files missing.
  4962. hpux0800notcp:
  4963.     @MESSAGE3='NO network, NO curses' \
  4964.     $(MAKE) "MAKE=$(MAKE)" hpux0800 KTARGET=$${KTARGET:-$(@)} \
  4965.     "KFLAGS = $(KFLAGS) -UTCPSOCKET"
  4966.  
  4967. #Now the same as above hpux0800 but with compiler optimization
  4968. hpux0800o:
  4969.     @MESSAGE1="with compiler optimization" \
  4970.     $(MAKE) hpux0800 KTARGET=$${KTARGET:-$(@)} \
  4971.     "KFLAGS = $(KFLAGS)" "OFLAGS = -O"
  4972.  
  4973. #Exactly as above hpux0800 + curses and with compiler optimization.
  4974. hpux0800oc:
  4975.     @MESSAGE1="with compiler optimization" \
  4976.     $(MAKE) hpux0800c KTARGET=$${KTARGET:-$(@)} \
  4977.     "KFLAGS = $(KFLAGS)" "OFLAGS = -O" "LIBS = -lcurses"
  4978.  
  4979. #Exactly as above hpux0800notcp but with compiler optimization
  4980. hpux0800onotcp:
  4981.     @MESSAGE1="with compiler optimization" \
  4982.     $(MAKE) "MAKE=$(MAKE)" hpux0800notcp KTARGET=$${KTARGET:-$(@)} \
  4983.     "KFLAGS = $(KFLAGS)" "OFLAGS = -O"
  4984.  
  4985. #HP 9000 Series 700 or 800, HP-UX 8.0, long filenames and TCP/IP support.
  4986. # Like the previous entries, but with PA-RISC-specific optimization.
  4987. hpux0800pa:
  4988.     @MESSAGE1="with PA-RISC-specific optimization" \
  4989.     $(MAKE) hpux0800 KTARGET=$${KTARGET:-$(@)} \
  4990.     "KFLAGS = $(KFLAGS) +Obb1100"
  4991.  
  4992. #As above, but with curses.
  4993. hpux0800pac:
  4994.     @MESSAGE1="with PA-RISC-specific optimization" \
  4995.     $(MAKE) hpux0800c KTARGET=$${KTARGET:-$(@)} \
  4996.     "KFLAGS = $(KFLAGS) +Obb1100"
  4997.  
  4998. #As above, but compiled with GCC 2.3.3.
  4999. hpux0800pagcc:
  5000.     @MESSAGE1='using the gcc compiler' \
  5001.     $(MAKE) hpux0800 KTARGET=$${KTARGET:-$(@)} \
  5002.     "CC=gcc" "CC2=gcc" "KFLAGS= -funsigned-char $(KFLAGS)"
  5003.  
  5004. #HP-UX 9.0, 9.01, 9.03, 9.04, 9.05, 9.07, 9.10 ..., + TCP/IP + curses, fully
  5005. #configured.  Use this entry with the restricted compiler: no optimization, no
  5006. #ANSI support.  If you get unresolved sockets library references at link time,
  5007. #then try adding -lBSD to LIBS, or else remove -DTCPSOCKET to build a version
  5008. #without TCP/IP support.
  5009. hpux0900:
  5010.     @MESSAGE1A='. Read hpux0900 entry comments if you have trouble.' \
  5011.     $(MAKE) hpux-header
  5012.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  5013.     "CFLAGS = -DHPUXDEBUG -DHPUX9 -DSTERMIOX -DDIRENT -DUTIMEH \
  5014.     -DNOSETBUF -DCK_CURSES -DTCPSOCKET -DRENAME -DCK_REDIR -DLONGFN \
  5015.     -DHDBUUCP -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DFNFLOAT $(KFLAGS)" \
  5016.     "LNKFLAGS = -s" "LIBS = -lm -lcurses" "CC=$(CC)" "CC2=$(CC2)"
  5017.  
  5018. #Like hpux0900, but for the "value-added" compiler on all HP 9000 models.
  5019. #Adds optimization and ANSI compilation:
  5020. # +O2 makes smaller executable (= -O = Level-1 and global optimization)
  5021. # +O3 adds interprocedural global optimization, makes bigger executable.
  5022. # If optimization fails on some modules, you can add:
  5023. #  +Obb<n>, +Olimit <n>, or +Onolimit, depending on your cc version,
  5024. # where <n> is a number, e.g. +Obb1200.  In other words, if you get optimizer
  5025. # warnings, add (for example) +Obb1200; if you still get optimizer warnings,
  5026. # increase the number.  Repeat until warnings go away.  If your compiler
  5027. # permits it, use +Onolimit. If optimizer blows up on ckcpro.c, see next entry.
  5028. # Reportedly, on some configurations, such as HP9000/425e or /340, perhaps
  5029. # depending on the amount of main memory, this entry might fail no matter what
  5030. # you do ("Out of Memory", "cc: Fatal error in /lib/c.c1", etc).  In that case
  5031. # use "make hpux0900" (no "o").
  5032. hpux0900o:
  5033.     @MESSAGE1=$${MESSAGE1:-"with compiler optimization"} \
  5034.     $(MAKE) hpux0900 KTARGET=$${KTARGET:-$(@)} \
  5035.     "KFLAGS = $(KFLAGS) -Aa -DCK_ANSIC -D_HPUX_SOURCE +O2"
  5036.  
  5037. # For HP-UX 9.0 on Motorola CPUs, optimization of ckcpro.c tends to blow up
  5038. # the compiler.  You might have to reinstall your kernel with maxdsiz >=
  5039. # 0x03000000.  But if physical memory is small, that still will not help much.
  5040. # In that case, use this entry to skip optimization of ckcpro.c.  But for 
  5041. # C-Kermit 8.0.208 you need a kernel with maxdsiz >= 0x02000000 to compile an
  5042. # optimized ckcftp.c.
  5043. hpux0900m68ko:
  5044.     @MESSAGE1='without compiler optimization for ckcpro.$(EXT) ...' \
  5045.     $(MAKE) hpux-header
  5046.     $(MAKE) ckuusr.$(EXT) ckuus3.$(EXT) ckcpro.$(EXT) \
  5047.     "CFLAGS = -DHPUXDEBUG -DHPUX9 -DSTERMIOX -DDIRENT \
  5048.     -DNOSETBUF -DCK_CURSES -DTCPSOCKET -DRENAME  -DCK_REDIR -DLONGFN \
  5049.     -DHDBUUCP -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DFNFLOAT $(KFLAGS)"
  5050.     @echo
  5051.     @MESSAGE1="with compiler optimization for the rest" \
  5052.     $(MAKE) hpux0900 KTARGET=$${KTARGET:-$(@)} \
  5053.     "KFLAGS = $(KFLAGS) -Aa -DCK_ANSIC -D_HPUX_SOURCE +O2"
  5054.  
  5055. # Old name for hpux0900m68ko.
  5056. hpux0900mot:
  5057.     $(MAKE) hpux0900m68ko KTARGET=$${KTARGET:-$(@)} "KFLAGS = $(KFLAGS)"
  5058.  
  5059. #Like hpux0900o but with additional model-700/800-specific optimizations.
  5060. # +ESlit = consolidate strings in read-only memory.
  5061. # +ESfsc = inline millicode calls when comparing pointers.
  5062. hpux0900o700:
  5063.     @echo 'If you get optimizer warnings \c'
  5064.     @echo 'try "make hpux0900o700 KFLAGS=+Obb1200"'
  5065.     @MESSAGE1="with PA-RISC-specific optimizations" \
  5066.     $(MAKE) hpux0900o KTARGET=$${KTARGET:-$(@)} \
  5067.     "KFLAGS = $(KFLAGS) +ESlit +ESsfc"
  5068.  
  5069. #HP-UX 9.0, 9.01, 9.03, 9.04, 9.05, 9.07, 9.10 ..., + TCP/IP + curses, fully
  5070. #configured, built with gcc, all models except 800 series.
  5071. #You might need to add the include path for gcc headers, for example:
  5072. # 'KFLAGS=-I/usr/gnu/lib/gcc-lib/hppa1.1-hp-hpux/2.4.5/include/'
  5073. hpux0900gcc:
  5074.     @MESSAGE1='using the gcc compiler' \
  5075.     $(MAKE) hpux0900 KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  5076.     "KFLAGS = $(KFLAGS) -DCK_ANSIC -funsigned-char -O2"
  5077.  
  5078. #HP-9000 HP-UX 10.0 + TCP/IP + curses, fully configured.
  5079. #Use with restricted (bundled) compiler: no optimization, no ANSI support.
  5080. #libcurses needed for fullscreen file xfer display in HP-UX 10.00 and 10.01.
  5081. #libHcurses (NOT libcurses!) for fullscreen display, to work around fatal bugs
  5082. #in HP-UX 10.10 and 10.20 curses. Maybe we could use lcurses for 10.30, since
  5083. #the 10.10 curses problem is supposedly fixed in 10.30.
  5084. # +DA1.0 = Generate PA-RISC 1.0 code that runs on both 700 and 800 models.
  5085. # +DA1.1 = Generate PA-RISC 1.1 code that runs on both 700 and 800 models.
  5086. # Note that HP-UX 10.20 and upwards  not support PA-RISC 1.0 systems.
  5087. # And that as of Dec 2001, 11.00 and 11.11 are PA-only and 11.20 is IA64-only.
  5088. # Later 11.2x releases are expected to be for both.  Architecture can be
  5089. # determined with the model command, at least in 10.20 and later...
  5090. #For future releases, we need to include +DA1.1 for PA builds, so that a
  5091. #binary built on PA 2.0 will still work on PA 1.1 machines, whereas +DA1.1
  5092. #must NOT be included for IA64 builds.
  5093. #
  5094. hpux1000:
  5095.     @$(MAKE) hpux-header
  5096.     @LIBS='-lHcurses' ; \
  5097.     AFLAGS='+DA1.1' ; \
  5098.     case `uname -r` in \
  5099.        [AB].10.0*)  KFLAGS='-DHPUX1000 $(KFLAGS)' ; \
  5100.                     AFLAGS='+DA1.0' ; LIBS='-lcurses'  ;; \
  5101.        [AB].10.1*)  KFLAGS='-DHPUX1010 -D__HP_CURSES $(KFLAGS)' ; \
  5102.                     ;; \
  5103.        [AB].10.2*)  KFLAGS='-DHPUX1020 -D__HP_CURSES $(KFLAGS)' ; \
  5104.                     ;; \
  5105.        [AB].10.3*)  KFLAGS='-DHPUX1030 -D__HP_CURSES $(KFLAGS)' ; \
  5106.                     ;; \
  5107.        [AB].10.?*)  KFLAGS='-DHPUX10XX -D__HP_CURSES $(KFLAGS)' ; \
  5108.                     ;; \
  5109.        [AB].11.0*)  KFLAGS='-DHPUX1100 -D__HP_CURSES $(KFLAGS)' ; \
  5110.                     ;; \
  5111.        [AB].11.1*)  KFLAGS='-DHPUX1100 -D__HP_CURSES $(KFLAGS)' ; \
  5112.                     ;; \
  5113.        [AB].11.?*)  KFLAGS='-DHPUX1100 -D__HP_CURSES $(KFLAGS)' ; \
  5114.                     AFLAGS='' ; LIBS='-lcurses' ;; \
  5115.     esac ; \
  5116.     OFLAGS=$${OFLAGS:-$$AFLAGS} ; \
  5117.     $(MAKE) "SHELL=/usr/bin/sh" xermit KTARGET=$${KTARGET:-$(@)} \
  5118.     "CC=$(CC)" "CC2=$(CC2)" \
  5119.     "CFLAGS = -DHPUX10 -DDIRENT -DSTERMIOX -DCK_DSYSINI -DHDBUUCP \
  5120.     -DCK_CURSES -DCK_WREFRESH -DTCPSOCKET -DCK_REDIR -DRENAME -DFNFLOAT \
  5121.     $$KFLAGS $$OFLAGS" \
  5122.     "LNKFLAGS=-s $(LNKFLAGS)" "LIBS = -lm $$LIBS $(KLIBS)"
  5123.  
  5124. # This is a kludge, copying hpux0900gcc and adapting hpux1000 
  5125. # (add CC and CC2, drop the A1.[0||1])
  5126. # Builds w/ no compiler warnings but minimally tested.
  5127. #
  5128. hpux1000gcc:
  5129.     @MESSAGE1='using the gcc compiler' \
  5130.     $(MAKE) hpux1000 KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  5131.     "KFLAGS = $(KFLAGS)" OFLAGS=" -DCK_ANSIC -funsigned-char -O2"
  5132.  
  5133. # Trusted HP-UX 10
  5134. # echo KFLAGS=$(KFLAGS) YTARGET YTARGET=$(YTARGET) $(XTARGET) ;
  5135. hpux1000t:
  5136.     @case "$(KTARGET)" in \
  5137.        *o+) KENTRY=hpux1000o+ ;; \
  5138.        *o)  KENTRY=hpux1000o ;; \
  5139.        *)   KENTRY=hpux1000 ;; \
  5140.     esac ; \
  5141.     MESSAGE1="and support for 'Trusted HP-UX'" \
  5142.     $(MAKE) $$KENTRY KTARGET=$${KTARGET:-$(@)} \
  5143.     "KFLAGS= $(KFLAGS) -DHPUX10_TRUSTED" "KLIBS=-lsec"
  5144.  
  5145. hpux1000to:
  5146.     $(MAKE) hpux1000t KTARGET=$${KTARGET:-$(@)}
  5147.  
  5148. hpux1000to+:
  5149.     $(MAKE) hpux1000t KTARGET=$${KTARGET:-$(@)}
  5150.  
  5151. #HP-9000 HP-UX 10.00 and higher with ANSI prototyping and optimization.
  5152. #PA-RISC only, no Motorola or other hardware is support in HP-UX 10.00++.
  5153. #The unbundled optional compiler is required.
  5154. #Your path should start with /opt/ansic/bin.
  5155. # -Wl,-Fw = Remove stack unwind table (info used by debuggers).
  5156. # +O2 makes a smaller executable (= -O = Level-1 and global optimization).
  5157. # +O3 adds interprocedural global optimization, makes a bigger executable.
  5158. # +Onolimit allows all modules to be optimized, no matter how complex.  But:
  5159. #  (a) +Onolimit does not seem to always be there in HP-UX 10.00, and:
  5160. #  (b) some modules might take hours on low-memory and/or slow systems.
  5161. # The following are PA-RISC-specific optimizations:
  5162. # +ESlit = Consolidate strings in read-only memory.
  5163. # +ESfsc = Inline millicode calls when comparing pointers.
  5164. # You might need to configure your kernel for a maxdsiz of 0x0B000000 (176MB)
  5165. # or greater to prevent the optimizer from running out of space.
  5166. # December 2001: +ESlit +ESsfc removed because not supported on IA64.
  5167. # Somebody who cares can use 'model' to see whether it's PA-RISC or IA64
  5168. # and include the architecture-specific optimization flags.  Also note:
  5169. # +DA1.1 is PA-only.  If this is included in in HP-UX 11.00 or later,
  5170. # then +DS2.0 should be included too (but don't use +DS2.0 without +DA1.1,
  5171. # or else the binary won't run on older PA hardware).
  5172. hpux1000o:
  5173.     @case `uname -m` in \
  5174.       ia64) ;; \
  5175.       *) MFLAGS='+ESlit +ESsfc' ;; \
  5176.     esac ; \
  5177.     MESSAGE1="with PA-RISC-specific optimizations $(MESSAGE1)" \
  5178.     $(MAKE) "SHELL=/usr/bin/sh" "PATH=/opt/ansic/bin:$$PATH" hpux1000 \
  5179.     KTARGET=$${KTARGET:-$(@)} "KFLAGS = $(KFLAGS) \
  5180.     -Aa -D_HPUX_SOURCE -DCK_ANSIC -DUTIMEH \
  5181.     +O2 -Wl,-Fw $$MFLAGS"
  5182.  
  5183. #Like hpux1000o but with "+Onolimit".
  5184. #On 700 series set kernel parameter maxdsiz >= 0x0D000000 (=208MB).
  5185. #Takes a long time.
  5186. hpux1000o+:
  5187.     @MESSAGE1="and +Onolimit $(MESSAGE1)" KTARGET=$${KTARGET:-$(@)} \
  5188.     $(MAKE) hpux1000o \
  5189.     "KFLAGS = $(KFLAGS) +Onolimit"
  5190.  
  5191. #HP-UX 11.xx with optimizing ANSI compiler and OpenSSL.
  5192. #Define SSLIBS and SSLINC appropriately for your OpenSSL installation.
  5193. #Ditto for the Zlib location.
  5194. #The KRB5LIB and K5INC references are for Kerberos and probably are
  5195. #superfluous for an SSL-only build.
  5196. #This entry works for C-Kermit 8.0.206 on HP-UX 11.11 with OpenSSL 0.9.7
  5197. #but needs to be integrated with and tested on the other HP-UX 10/11 targets.
  5198. #
  5199. hpux1100o+openssl:
  5200.     MFLAGS='+ESlit +ESsfc' ; \
  5201.     KFLAGS="-DCK_AUTHENTICATION -DCK_SSL -I/opt/zlib/include \
  5202.     -DZLIB -DOPENSSL_097 $(SSLINC) $(KFLAGS) -DHPUX1100 -D__HP_CURSES \
  5203.     -Aa -D_HPUX_SOURCE -DCK_ANSIC -DUTIMEH +O2 -Wl,-Fw $$MFLAGS" ; \
  5204.     LIBS="$(SSLLIB) $(KRB5LIB) -lssl -lcrypto \
  5205.     -L/opt/zlib/lib -lz $(LIBS)" \
  5206.     $(MAKE) "SHELL=/usr/bin/sh" "PATH=/opt/ansic/bin:$$PATH" xermit \
  5207.     KTARGET=$${KTARGET:-$(@)} \
  5208.     "CFLAGS = -DHPUX10 -DDIRENT -DSTERMIOX -DCK_DSYSINI -DHDBUUCP \
  5209.     -DCK_CURSES -DCK_WREFRESH -DTCPSOCKET -DCK_REDIR -DRENAME -DFNFLOAT \
  5210.     $$KFLAGS $$OFLAGS" \
  5211.     "LNKFLAGS=-s $(LNKFLAGS)" "LIBS = -lm -lcurses $(KRB5LIB) $(SSLLIB) \
  5212.     -lcrypto -lssl $(KLIBS)" 
  5213.  
  5214. hpux1100:
  5215.     $(MAKE) hpux1000 KTARGET=$${KTARGET:-$(@)}
  5216.  
  5217. hpux1100o:
  5218.     $(MAKE) hpux1000o KTARGET=$${KTARGET:-$(@)}
  5219.  
  5220. hpux1100o+:
  5221.     $(MAKE) hpux1000o+ KTARGET=$${KTARGET:-$(@)}
  5222.  
  5223. hpux1100gcc:
  5224.     $(MAKE) hpux1000gcc KTARGET=$${KTARGET:-$(@)}
  5225.  
  5226. # Trusted HP-UX 11
  5227. hpux1100t:
  5228.     $(MAKE) hpux1000t KTARGET=$${KTARGET:-$(@)}
  5229.  
  5230. hpux1100to:
  5231.     $(MAKE) hpux1000to KTARGET=$${KTARGET:-$(@)}
  5232.  
  5233. hpux1100to+:
  5234.     $(MAKE) hpux1000to+ KTARGET=$${KTARGET:-$(@)}
  5235.  
  5236. #Regulus on CIE Systems 680/20
  5237. cie:
  5238.     @echo 'Making C-Kermit $(CKVER) for CIE Systems 680/20 Regulus...'
  5239.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  5240.     "CFLAGS = -DATTSV -DNOFILEH -DCIE -DNOLEARN $(KFLAGS) -O" "LNKFLAGS ="
  5241.  
  5242. # Linux 1.2 or later with gcc, dynamic libraries, ncurses, TCP/IP.
  5243. #
  5244. # If your Linux system has curses rather than ncurses, use the linuxc
  5245. # entry, or if that doesn't work, linuxnc.
  5246. #
  5247. # The Kermit "large memory model" is used by default to configure big packet
  5248. # and script buffers, etc.  For small-memory or limited-resource systems,
  5249. # "make linux KFLAGS=-DNOBIGBUF".
  5250. #
  5251. # -DLINUXFSSTND (Linux File System Standard 1.2) gives UUCP lockfile /var/lock
  5252. # with string pid.  Remove this to get /usr/spool/uucp with int pid, used in
  5253. # very early Linux versions.  FSSTND 1.2 also says that the PID string in the
  5254. # UUCP lock file has leading spaces.  This is a change from FSSTND 1.0, which
  5255. # used leading zeros.  Add -DFSSTND10 to support FSSTND 1.0 instead of 1.2.
  5256. # I hope subsequent editions of the file-system standard did not change these
  5257. # again.
  5258. #
  5259. # Add -DOLINUXHISPEED (Old Linux High Speed support) to turn on an ugly kludge
  5260. # in Linux 1.0 and earlier to support speeds of 57600 and 115200.  Extremely
  5261. # old Linux systems (pre-0.99pl15) will not support this.  If OLINUXHISPEED is
  5262. # not defined, then only the standard POSIX termios methods of setting the port
  5263. # speed will be used, and in this case speeds can be as high as 460800 in most
  5264. # modern Linux versions.
  5265. #
  5266. # -DCK_POSIX_SIG (POSIX signal handling) is good for Linux releases back to at
  5267. # least 0.99.14; if it causes trouble for you, remove it from the CFLAGS.
  5268. #
  5269. # -pipe removes the need for temp files - remove it if it causes trouble.
  5270. #
  5271. # -funsigned-char makes all characters unsigned, as they should have been
  5272. #  in the first place.
  5273. #
  5274. # Add -DCK_DSYSINI if you want a shared system-wide init file.
  5275. #
  5276. # See ckubwr.txt about -DNOCOTFMC.  In fact, you really should read the
  5277. # entire Linux section of ckubwr.txt.
  5278. #
  5279. # The "linuxa" entry can be referenced directly on LIBC systems, but not
  5280. # GLIBC, where -lcrypt is required.  The "make linux" entry should normally
  5281. # be used for all builds on all Linux distributions unless you have special
  5282. # requirements, in which case keep reading.  CK_NEWTERM added after 7.0B04
  5283. # due to new complaints about ncurses changing buffering of tty.
  5284.  
  5285. linuxa:
  5286.     @echo 'Making C-Kermit $(CKVER) for Linux 1.2 or later...'
  5287.     @echo 'IMPORTANT: Read the comments in the linux section of the'
  5288.     @echo 'makefile if you have trouble.'
  5289.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5290.     "CFLAGS = -O -DLINUX -pipe -funsigned-char -DFNFLOAT -DCK_POSIX_SIG \
  5291.     -DCK_NEWTERM -DTCPSOCKET -DLINUXFSSTND -DNOCOTFMC -DPOSIX \
  5292.     -DUSE_STRERROR $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" "LIBS = $(LIBS) -lm"
  5293.  
  5294. # As above but with profiling
  5295. linuxp:
  5296.     $(MAKE) linuxa KTARGET=$${KTARGET:-$(@)} "KFLAGS=$(KFLAGS) -pg" \
  5297.     "LIBS=-pg -lcrypt -lresolv"
  5298.  
  5299. #New primary Linux entry for C-Kermit 8.0, replacing big nested
  5300. #if-then-else construction full of repeated clauses with a simpler scheme
  5301. #for automatically detecting:
  5302. # . Old versus new pty handling (new == glibc 2.1++)
  5303. # . Presence or absence of librypt.a and <crypt.h>
  5304. # . Presence or absence of libresolv.a
  5305. #Unlike the previous scheme, this one is easily extended to include more tests.
  5306. #Note: The HAVE_PTMX test was previously "if test -c /dev/ptmx" but this was
  5307. #not sufficient for Debian 2.1, because although it had /dev/ptmx, it did not
  5308. #have grantpt(), unlockpt(), or ptsname(), so has been changed to look for a
  5309. #grantpt() prototype in the header files.  Warning: uses a temporary file in
  5310. #the current directory.  Modified in 8.0.206 to allow for libraries that
  5311. #contain .so's but no .a's, e.g. Mandrake 9.0.
  5312. linux:
  5313.     @if test \
  5314.     `grep grantpt /usr/include/*.h /usr/include/sys/*.h | wc -l` -gt 0; \
  5315.     then if test -c /dev/ptmx; then HAVE_PTMX='-DHAVE_PTMX'; \
  5316.     else HAVE_PTMX=''; fi; fi ; \
  5317.     $(MAKE) KTARGET=$${KTARGET:-$(@)} \
  5318.     "KFLAGS=-DCK_NCURSES -I/usr/include/ncurses $$HAVE_PTMX \
  5319.     `if test -f /usr/lib/libcrypt.a || test -f /usr/lib/libcrypt.so; \
  5320.     then echo -DHAVE_CRYPTH; fi` \
  5321.     $(KFLAGS)" \
  5322.     "LIBS=-lncurses \
  5323.     `if test -f /usr/lib/libresolv.a || test -f /usr/lib/libresolv.so; \
  5324.     then echo -lresolv; fi` \
  5325.     `if test -f /usr/lib/libcrypt.a || test -f /usr/lib/libcrypt.so; \
  5326.     then echo -lcrypt; fi`" \
  5327.     linuxa
  5328.  
  5329. # As above but for Linux systems that have no <sys/select.h>.
  5330. linuxns:
  5331.     $(MAKE) linux KTARGET=$${KTARGET:-$(@)} KFLAGS=-DNO_SYS_SELECT_H
  5332.  
  5333. # As above, but forces use of curses rather than ncurses.
  5334. # Add -ltermcap to LIBS if necessary.
  5335. # Also watch out for libcurses and/or libtermcap having been moved.
  5336. # In that case you might need something like:
  5337. #  "LIBS = -L/usr/lib/curses -lcurses -L/usr/lib/termcap -ltermcap"
  5338.  
  5339. linuxc:
  5340.     @if test \
  5341.     `grep grantpt /usr/include/*.h /usr/include/sys/*.h | wc -l` -gt 0; \
  5342.     then if test -c /dev/ptmx; then HAVE_PTMX='-DHAVE_PTMX'; \
  5343.     else HAVE_PTMX=''; fi; fi ; \
  5344.     $(MAKE) KTARGET=$${KTARGET:-$(@)} \
  5345.     "KFLAGS=-DCK_CURSES $$HAVE_PTMX \
  5346.     `if test -f /usr/lib/libcrypt.a; then echo -DHAVE_CRYPTH; fi` \
  5347.     $(KFLAGS)" \
  5348.     "LIBS=-lcurses \
  5349.     `if test -f /usr/lib/libresolv.a; then echo -lresolv; fi` \
  5350.     `if test -f /usr/lib/libcrypt.a; then echo -lcrypt; fi`" \
  5351.     linuxa
  5352.  
  5353. # As above but with with no curses support, for example because you installed
  5354. # the developer tools but did not install (n)curses.
  5355. linuxnc:
  5356.     @if test \
  5357.     `grep grantpt /usr/include/*.h /usr/include/sys/*.h | wc -l` -gt 0; \
  5358.     then if test -c /dev/ptmx; then HAVE_PTMX='-DHAVE_PTMX'; \
  5359.     else HAVE_PTMX=''; fi; fi ; \
  5360.     $(MAKE) KTARGET=$${KTARGET:-$(@)} \
  5361.     "KFLAGS= $$HAVE_PTMX \
  5362.     `if test -f /usr/lib/libcrypt.a; then echo -DHAVE_CRYPTH; fi` \
  5363.     $(KFLAGS)" "LIBS= \
  5364.     `if test -f /usr/lib/libresolv.a; then echo -lresolv; fi` \
  5365.     `if test -f /usr/lib/libcrypt.a; then echo -lcrypt; fi`" \
  5366.     linuxa
  5367.  
  5368. #Sharp Zaurus SL-5500 - Linux based
  5369. zsl5500:
  5370.     @echo 'Making C-Kermit $(CKVER) for Sharp Zaurus SL-5500...'
  5371.     @touch ckcpro.c
  5372.     @touch wart
  5373.     $(MAKE) linuxnc KTARGET=$${KTARGET:-$(@)} "KFLAGS=-DZSL5500" \
  5374.     "CC = gcc" "CC2 = gcc"
  5375.  
  5376. # A minimum-size version for Linux that does only scripting and
  5377. # serial communication -- no networks, no file transfer.
  5378. linuxso:
  5379.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5380.     "CFLAGS = -O -DLINUX -pipe -funsigned-char -DPOSIX -DCK_POSIX_SIG \
  5381.     -DLINUXFSSTND -DNOCOTFMC -DNOXFER -DNODEBUG -DNOCSETS -DNOHELP \
  5382.     -DNONET -DMINIDIAL -DNOSCRIPT -DNOIKSD -DNOPUSH $(KFLAGS)" \
  5383.     "LNKFLAGS = $(LNKFLAGS)" "LIBS = "
  5384.  
  5385. #Mklinux DR3 has horrible bug in <utmpbits.h> - see ckufio.c.
  5386. mklinux:
  5387.     $(MAKE) KTARGET=$${KTARGET:-$(@)} "KFLAGS=-DUTMPBUG" \
  5388.     "LIBS=-lcrypt -lresolv" linuxa
  5389.  
  5390. #LinuxPPC 1999
  5391. linuxppc:
  5392.     @echo 'Making C-Kermit $(CKVER) for LinuxPPC 1999...'
  5393.     @if test -f /usr/lib/libcrypt.a; then \
  5394.         if test -f /usr/lib/libresolv.a; then \
  5395.             $(MAKE) KTARGET=$${KTARGET:-$(@)} \
  5396.         "KFLAGS=$(NCURSES_CPP) -DHAVE_CRYPT_H \
  5397.         -DLOCK_DIR=\\\\\\"\"/var/lock/modem\\\\\\"\" $(KFLAGS)" \
  5398.             "LIBS=-lncurses -lresolv -lcrypt" linuxa ; \
  5399.         else \
  5400.             $(MAKE) KTARGET=$${KTARGET:-$(@)} \
  5401.         "KFLAGS=$(NCURSES_CPP) -DHAVE_CRYPT_H \
  5402.         -DLOCK_DIR=\\\\\\"\"/var/lock/modem\\\\\\"\" $(KFLAGS)" \
  5403.             "LIBS=-lncurses -lcrypt" linuxa ; \
  5404.         fi \
  5405.     else \
  5406.         if test -f /usr/lib/libresolv.a; then \
  5407.             $(MAKE) KTARGET=$${KTARGET:-$(@)} \
  5408.         "KFLAGS=$(NCURSES_CPP) \
  5409.         -DLOCK_DIR=\\\\\\"\"/var/lock/modem\\\\\\"\" $(KFLAGS)" \
  5410.             "LIBS=-lncurses -lresolv" linuxa ; \
  5411.         else \
  5412.             $(MAKE) KTARGET=$${KTARGET:-$(@)} \
  5413.         "KFLAGS=$(NCURSES_CPP) \
  5414.         -DLOCK_DIR=\\\\\\"\"/var/lock/modem\\\\\\"\" $(KFLAGS)" \
  5415.             "LIBS=-lncurses" linuxa ; \
  5416.         fi \
  5417.     fi
  5418.  
  5419.  
  5420. # The remaining Linux entries are for special or customized builds.  They
  5421. # have not been generalized like the ones above.  Ideally, we should allow
  5422. # for every combination of libc vs glibc, gcc vs egcs, curses vs ncurses,
  5423. # Kerberos IV vs Kerberos V vs SRP (in any combination), and so on --
  5424. # volunteers welcome.
  5425.  
  5426. # If you get "Internal compiler error xxx, output pipe has been closed",
  5427. # try removing -pipe.
  5428.  
  5429. # Like "make linux" but built with egcs rather than gcc.
  5430. linuxegcs:
  5431.     @echo 'Making C-Kermit $(CKVER) for Linux 1.2 or later with egcs...'
  5432.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = egcs" "CC2 = egcs" \
  5433.     "CFLAGS = -O -DLINUX -pipe -funsigned-char \
  5434.     -DPOSIX -DCK_POSIX_SIG -DCK_NCURSES -DNOCOTFMC \
  5435.     -DTCPSOCKET -DLINUXFSSTND $(KFLAGS)" \
  5436.     "LNKFLAGS = $(LNKFLAGS)" "LIBS = -lncurses -lcrypt -lresolv"
  5437.  
  5438. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.1 (no K4 compatibility).
  5439. linux+krb5:
  5440.     @echo 'Making C-Kermit $(CKVER) for Linux on Intel with Kerberos...'
  5441.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5442.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5443.     -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 \
  5444.     -DCK_ENCRYPTION -DCK_DES -DCK_CURSES -DCK_POSIX_SIG \
  5445.     -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H $(K5INC) $(K5INC)/krb5 \
  5446.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5447.     "LIBS = $(K5LIB) -lncurses -ltermcap -ldes425 -lkrb5 \
  5448.     -lcom_err -lk5crypto -lgssapi_krb5 -lcrypt -lresolv"
  5449.  
  5450. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.1 with K4 compatibility.
  5451. #
  5452. # Requires the Kerberos 1.2.1 be compiled with KRB4 compatibility.
  5453. linux+krb5+krb4:
  5454.     @echo 'Making C-Kermit $(CKVER) for Linux on Intel with Kerberos...'
  5455.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5456.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5457.     -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 -DKRB4 -DKRB524 \
  5458.     -DCK_ENCRYPTION -DCK_DES -DCK_CURSES -DCK_POSIX_SIG \
  5459.     -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H $(K5INC) $(K5INC)/krb5 \
  5460.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5461.     "LIBS = $(K5LIB) -lncurses -ltermcap -lkrb4 -ldes425 -lkrb5 \
  5462.     -lcom_err -lk5crypto -lcrypt -lgssapi_krb5 -lresolv"
  5463.  
  5464. # Linux on Intel PC with SRP 1.7.4 using GNU MP, Krypto, and Eric Young's
  5465. # DES library.  Remove the -DCK_DES, -DLIBDES and -ldes if you do not have
  5466. # Eric Young's# libdes.a installed.
  5467. #
  5468. linux+srp+gmp:
  5469.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SRP...'
  5470.     $(MAKE) srpmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5471.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5472.     -DCK_AUTHENTICATION -DCK_SRP \
  5473.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES \
  5474.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5475.     $(SRPINC) $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5476.     "LIBS = $(SRPLIB) \
  5477.     -lncurses -ltermcap -lsrp -lgmp -ldes -lkrypto -lcrypt -lresolv"
  5478.  
  5479. linux+srp+gmp+no-des:
  5480.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SRP ...'
  5481.     $(MAKE) srpmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5482.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5483.     -DCK_AUTHENTICATION -DCK_SRP \
  5484.     -DCK_ENCRYPTION -DCK_CAST \
  5485.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5486.     $(SRPINC) $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5487.     "LIBS = $(SRPLIB) \
  5488.     -lncurses -ltermcap -lsrp -lgmp -lkrypto -lcrypt -lresolv"
  5489.  
  5490. linux+srp+gmp-export:
  5491.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SRP...'
  5492.     $(MAKE) srpmit-export KTARGET=$${KTARGET:-$(@)} \
  5493.     "CC = gcc" "CC2 = gcc" \
  5494.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5495.     -DCK_AUTHENTICATION -DCK_SRP -DFNFLOAT \
  5496.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5497.     $(SRPINC) $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5498.     "LIBS = $(SRPLIB) \
  5499.     -lncurses -ltermcap -lsrp -lgmp -lkrypto -lcrypt -lm -lresolv"
  5500.  
  5501. linux+srp+gmp+pam:
  5502.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SRP...'
  5503.     $(MAKE) srpmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5504.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5505.     -DCK_AUTHENTICATION -DCK_SRP \
  5506.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES \
  5507.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5508.     -DCK_PAM -DFNFLOAT $(SRPINC) $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5509.     "LIBS = $(SRPLIB) -lncurses -ltermcap -lsrp -lgmp -ldes -lkrypto \
  5510.     -lcrypt -lpam -ldl -lm -lresolv"
  5511.  
  5512. #Linux on Intel PC with SRP 1.7.4 built with OpenSSL for Big Number Math
  5513. #and Cryptographic functionality.
  5514. #
  5515. linux+srp:
  5516.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SRP...'
  5517.     $(MAKE) srpmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5518.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5519.     -DCK_AUTHENTICATION -DCK_SRP \
  5520.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES \
  5521.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5522.     $(SRPINC) $(SSLINC) $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5523.     "LIBS = $(SRPLIB) $(SSLLIB) \
  5524.     -lncurses -ltermcap -lsrp -lkrypto -lcrypto -lcrypt -lresolv"
  5525.  
  5526. linux+srp+pam:
  5527.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SRP...'
  5528.     $(MAKE) srpmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5529.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5530.     -DCK_AUTHENTICATION -DCK_SRP \
  5531.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES \
  5532.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5533.     -DCK_PAM -DFNFLOAT $(SRPINC) $(SSLINC) $(KFLAGS)" \
  5534.     "LNKFLAGS = $(LNKFLAGS)" \
  5535.     "LIBS = $(SRPLIB) $(SSLLIB) -lncurses -ltermcap -lsrp -lkrypto \
  5536.     -lcrypto -lcrypt -lpam -ldl -lm -lresolv"
  5537.  
  5538. linux+shadow+pam:
  5539.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with Shadow+PAM...'
  5540.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5541.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5542.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5543.     -DCK_SHADOW -DCK_PAM -DFNFLOAT \
  5544.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5545.     "LIBS = -lncurses -ltermcap -lcrypt -lpam -ldl -lm -lresolv"
  5546.  
  5547. #Linux configured for SSL/TLS.
  5548. #Remove -ltermcap if it causes trouble e.g. in Debian 2.2.
  5549. linux+openssl:
  5550.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SSL/TLS...'
  5551.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5552.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5553.     -DCK_AUTHENTICATION -DCK_SSL \
  5554.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5555.     -DFNFLOAT $(SSLINC) $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5556.     "LIBS= $(SSLLIB) \
  5557.     -lncurses -ltermcap -lssl -lcrypto -lm -lresolv -lcrypt"
  5558.  
  5559. #Linux configured for SSL/TLS and Shadow Passwords
  5560. #Remove -ltermcap if it causes trouble e.g. in Debian 2.2.
  5561. linux+openssl+shadow:
  5562.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SSL/TLS...'
  5563.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5564.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5565.     -DCK_AUTHENTICATION -DCK_SSL \
  5566.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5567.     -DFNFLOAT -DCK_SHADOW $(SSLINC) $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5568.     "LIBS= $(SSLLIB) \
  5569.     -lncurses -ltermcap -lssl -lcrypto -lm -lresolv -lcrypt"
  5570.  
  5571. #Linux configured for SSL/TLS, ZLIB, PAM and Shadow Passwords
  5572. #Remove -ltermcap if it causes trouble e.g. in Debian 2.2.
  5573. linux+openssl+zlib+shadow+pam:
  5574.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SSL/TLS...'
  5575.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5576.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5577.     -DCK_AUTHENTICATION -DCK_SSL -DCK_PAM -DZLIB \
  5578.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5579.     -DFNFLOAT -DCK_SHADOW $(SSLINC) $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5580.     "LIBS= $(SSLLIB) \
  5581.     -lncurses -ltermcap -lssl -lcrypto -lm -lresolv -lcrypt -lz -lpam -ldl"
  5582.  
  5583. #Linux on Intel PC with SRP and SSL/TLS.
  5584. #
  5585. # libsrp.a should be build with OpenSSL
  5586. # Requires the Kerberos 1.2.2 or higher to be compiled with KRB4 compatibility.
  5587. #Remove -ltermcap if it causes trouble e.g. in Debian 2.2.
  5588. linux+srp+openssl:
  5589.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SRP,SSL...'
  5590.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5591.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5592.     -DCK_AUTHENTICATION -DCK_SRP \
  5593.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL \
  5594.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5595.     $(SRPINC) $(SSLINC) $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5596.     "LIBS = $(SRPLIB) $(SSLLIB) \
  5597.     -lncurses -ltermcap -lsrp -lssl -lkrypto -lcrypto \
  5598.     -lcrypt -lresolv"
  5599.  
  5600. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.2 and SRP.
  5601. #
  5602. # libsrp.a should be build with GNU MP (libgmp.a)
  5603. # instead of AT&T CryptoLib (libcrypt.a) due to naming conflicts with
  5604. # standard distribution Linux libraries.
  5605. # Requires the Kerberos 1.2.2 or higher to be compiled with KRB4 compatibility.
  5606. linux+krb5+krb4+srp:
  5607.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB54+SRP...'
  5608.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5609.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5610.     -DCK_AUTHENTICATION -DCK_SRP -DCK_KERBEROS  -DKRB5 -DKRB4 -DKRB524 \
  5611.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES \
  5612.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5613.     $(K5INC) $(K5INC)/krb5 $(SRPINC) \
  5614.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5615.     "LIBS = $(K5LIB) $(SRPLIB) \
  5616.     -lncurses -ltermcap -lsrp -lgmp -lgssapi_krb5 -lkrypto \
  5617.     -ldes -lkrb4 -ldes425 -lkrb5 -lcom_err -lk5crypto -lcrypt -lresolv"
  5618.  
  5619. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.2, SRP and SSL/TLS.
  5620. #
  5621. # libsrp.a should be build with OpenSSL
  5622. # Requires the Kerberos 1.2.2 or higher to be compiled with KRB4 compatibility.
  5623. # Requires OpenSSL 0.9.6a or higher
  5624. linux+krb5+krb4+srp+openssl:
  5625.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SRP,SSL...'
  5626.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5627.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5628.     -DCK_AUTHENTICATION -DCK_SRP -DCK_KERBEROS  -DKRB5 -DKRB4 -DKRB524 \
  5629.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL \
  5630.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5631.     $(K5INC) $(K5INC)/krb5 $(SRPINC) $(SSLINC) \
  5632.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5633.     "LIBS = $(K5LIB) $(SRPLIB) $(SSLLIB) \
  5634.     -lncurses -ltermcap -lsrp \
  5635.     -lkrb4 -lssl -lkrypto -lcrypto \
  5636.     -lkrb5 -lcom_err -lk5crypto -lgssapi_krb5 -lcrypt -lresolv"
  5637.  
  5638. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.2, SSL/TLS.
  5639. #
  5640. # libsrp.a should be build with OpenSSL
  5641. # Requires the Kerberos 1.2.2 be compiled with KRB4 compatibility.
  5642. linux+krb5+krb4+openssl:
  5643.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SSL...'
  5644.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5645.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5646.     -DCK_AUTHENTICATION -DCK_KERBEROS  -DKRB5 -DKRB4 -DKRB524 \
  5647.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL \
  5648.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5649.     $(K5INC) $(K5INC)/krb5 $(SSLINC) \
  5650.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5651.     "LIBS = $(K5LIB) $(SSLLIB) \
  5652.     -lncurses -ltermcap \
  5653.     -lkrb4 -lssl -lcrypto -lkrb5 -lcom_err \
  5654.     -lk5crypto -lgssapi_krb5 -lcrypt -lresolv"
  5655.  
  5656. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.1, SSL/TLS.
  5657. #
  5658. # libsrp.a should be build with OpenSSL
  5659. # Requires the Kerberos 1.2.2 be compiled with KRB4 compatibility.
  5660. linux+krb5+krb4+openssl+shadow:
  5661.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SSL...'
  5662.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5663.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5664.     -DCK_AUTHENTICATION -DCK_KERBEROS  -DKRB5 -DKRB4 -DKRB524 \
  5665.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL -DCK_SHADOW \
  5666.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5667.     $(K5INC) $(K5INC)/krb5 $(SSLINC) \
  5668.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5669.     "LIBS = $(K5LIB) $(SSLLIB)  \
  5670.     -lncurses -ltermcap \
  5671.     -lkrb4 -lssl -lcrypto -lkrb5 -lcom_err \
  5672.     -lk5crypto -lgssapi_krb5 -lcrypt -lresolv"
  5673.  
  5674. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2, SSL/TLS.
  5675. #
  5676. # libsrp.a should be build with OpenSSL
  5677. # Requires the Kerberos 1.2.2 be compiled with KRB4 compatibility.
  5678. linux+krb5+krb4+openssl+zlib+shadow:
  5679.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SSL...'
  5680.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5681.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5682.     -DCK_AUTHENTICATION -DCK_KERBEROS  -DKRB5 -DKRB4 -DKRB524 -DZLIB \
  5683.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL -DCK_SHADOW \
  5684.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5685.     $(K5INC) $(K5INC)/krb5 $(SSLINC) \
  5686.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5687.     "LIBS = $(K5LIB) $(SSLLIB) \
  5688.     -lncurses -ltermcap \
  5689.     -lkrb4 -lssl -lcrypto -lkrb5 -lcom_err \
  5690.     -lk5crypto -lgssapi_krb5 -lcrypt -lresolv -lz"
  5691.  
  5692. linux+krb5+krb4+srp-export:
  5693.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SRP...'
  5694.     $(MAKE) xermit-export KTARGET=$${KTARGET:-$(@)} \
  5695.     "CC = gcc" "CC2 = gcc" \
  5696.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5697.     -DCK_AUTHENTICATION -DCK_SRP -DCK_KERBEROS  -DKRB5 -DKRB4 -DKRB524 \
  5698.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5699.     $(K5INC) $(K5INC)/krb5 $(SRPINC) \
  5700.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5701.     "LIBS = $(SRPLIB) $(K5LIB) \
  5702.     -lncurses -ltermcap -lsrp -lgmp -lkrb4 -ldes425 -lkrb5 -lgssapi_krb5 \
  5703.     -lcom_err -lk5crypto -lkrypto -lcrypt -lresolv"
  5704.  
  5705. linux+krb5+krb4+srp+pam:
  5706.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SRP...'
  5707.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5708.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5709.     -DCK_AUTHENTICATION -DCK_SRP -DCK_KERBEROS  -DKRB5 -DKRB4 -DKRB524 \
  5710.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES \
  5711.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5712.     -DCK_PAM $(K5INC) $(K5INC)/krb5 $(SRPINC) \
  5713.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5714.     "LIBS = $(SRPLIB) $(K5LIB) \
  5715.     -lncurses -ltermcap -lsrp -lgmp -ldes -lkrb4 -ldes425 -lkrb5 \
  5716.     -lcom_err -lk5crypto -lgssapi_krb5 -lkrypto -lcrypt -lpam -ldl \
  5717.     -lresolv"
  5718.  
  5719. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.2, SRP and SSL/TLS.
  5720. # and PAM.
  5721. #
  5722. # libsrp.a should be build with OpenSSL
  5723. # Requires the Kerberos 1.2.2 be compiled with KRB4 compatibility.
  5724. linux+krb5+krb4+srp+openssl+pam-debug:
  5725.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SRP,SSL...'
  5726.     $(MAKE) xermit-debug KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5727.     "CFLAGS = -g -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5728.     -DCK_AUTHENTICATION -DCK_SRP -DCK_KERBEROS  -DKRB5 -DKRB4 -DKRB524 \
  5729.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL -DCK_PAM \
  5730.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5731.     -w -Dmalloc=dmalloc -Dfree=dfree -DMDEBUG $(K5INC) $(K5INC)/krb5 \
  5732.     $(SRPINC) $(SSLINC) $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5733.     "LIBS = $(SRPLIB) $(K5LIB) $(SSLLIB) \
  5734.     -lncurses -ltermcap -lsrp -lkrb4 -lssl -lkrypto -lcrypto \
  5735.     -lkrb5 -lcom_err -lk5crypto -lgssapi_krb5 -lcrypt -lresolv -lpam -ldl"
  5736.  
  5737. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.1, SRP and SSL/TLS.
  5738. # and PAM.
  5739. #
  5740. # libsrp.a should be build with OpenSSL
  5741. # Requires the Kerberos 1.2.2 be compiled with KRB4 compatibility.
  5742. linux+krb5+krb4+srp+openssl+pam:
  5743.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SRP,SSL...'
  5744.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5745.     "CFLAGS = -g -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5746.     -DCK_AUTHENTICATION -DCK_SRP -DCK_KERBEROS  -DKRB5 -DKRB4 -DKRB524 \
  5747.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL -DCK_PAM \
  5748.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5749.     $(K5INC) $(K5INC)/krb5 $(SRPINC) $(SSLINC) \
  5750.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5751.     "LIBS = $(SRPLIB) $(K5LIB) $(SSLLIB)  \
  5752.     -lm -lncurses -ltermcap -lsrp \
  5753.     -lkrb4 -lssl -lkrypto  -lcrypto -lgssapi_krb5 \
  5754.     -lkrb5 -lcom_err -lk5crypto -lcrypt -lresolv -lpam -ldl"
  5755.  
  5756. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.2, SRP, OpenSSL
  5757. # with ZLIB and PAM
  5758. #
  5759. # libsrp.a should be build with OpenSSL
  5760. # Requires the Kerberos 1.2.2 be compiled with KRB4 compatibility.
  5761. linux+krb5+krb4+srp+openssl+zlib+pam:
  5762.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SRP,SSL...'
  5763.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5764.     "CFLAGS = -g -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5765.     -DCK_AUTHENTICATION -DCK_SRP -DCK_KERBEROS  -DKRB5 -DKRB4 -DKRB524 \
  5766.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL -DCK_PAM -DZLIB \
  5767.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5768.     $(K5INC) $(K5INC)/krb5 $(SRPINC) $(SSLINC) \
  5769.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5770.     "LIBS = $(SRPLIB) $(K5LIB) $(SSLLIB) \
  5771.     -lm -lncurses -ltermcap -lsrp \
  5772.     -lkrb4 -lssl -lkrypto  -lcrypto -lgssapi_krb5 \
  5773.     -lkrb5 -lcom_err -lk5crypto -lcrypt -lresolv -lpam -ldl -lz"
  5774.  
  5775. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.2, SRP, OpenSSL
  5776. # with ZLIB, Shadow Passwords, and PAM
  5777. #
  5778. # libsrp.a should be build with OpenSSL
  5779. # Requires the Kerberos 1.2.2 be compiled with KRB4 compatibility.
  5780. linux+krb5+krb4+srp+openssl+zlib+shadow+pam:
  5781.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SRP,SSL...'
  5782.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5783.     "CFLAGS = -g -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5784.     -DCK_AUTHENTICATION -DCK_SRP -DCK_KERBEROS  -DKRB5 -DKRB4 -DKRB524 \
  5785.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL -DCK_PAM -DZLIB \
  5786.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5787.     -DCK_SHADOW $(K5INC) $(K5INC)/krb5 $(SRPINC) $(SSLINC) \
  5788.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5789.     "LIBS = $(SRPLIB) $(K5LIB) $(SSLLIB) \
  5790.     -lm -lncurses -ltermcap -lsrp -lkrypto \
  5791.     -lkrb4 -lssl -lcrypto -lgssapi_krb5 \
  5792.     -lkrb5 -lcom_err -lk5crypto -lcrypt -lresolv -lpam -ldl -lz"
  5793.  
  5794. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.2, OpenSSL
  5795. # with ZLIB, Shadow Passwords, PAM
  5796. #
  5797. # libsrp.a should be build with OpenSSL
  5798. # Requires the Kerberos 1.2.2 be compiled with KRB4 compatibility.
  5799. linux+krb5+krb4+openssl+zlib+shadow+pam:
  5800.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SRP,SSL...'
  5801.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5802.     "CFLAGS = -g -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5803.     -DCK_AUTHENTICATION -DCK_KERBEROS  -DKRB5 -DKRB4 -DKRB524 \
  5804.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL -DCK_PAM -DZLIB \
  5805.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5806.     -DCK_SHADOW $(K5INC) $(K5INC)/krb5 $(SSLINC) \
  5807.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5808.     "LIBS = $(K5LIB) $(SSLLIB) \
  5809.     -lm -lncurses -ltermcap \
  5810.     -lkrb4 -lssl -lcrypto -lgssapi_krb5 \
  5811.     -lkrb5 -lcom_err -lk5crypto -lcrypt -lresolv -lpam -ldl -lz"
  5812.  
  5813. #Red Hat Linux 8.0 - full install includes Kerberos 5 (4 compat), PAM, SSL.
  5814. #Also works around bug in curses in which terminal goes dead after
  5815. #returning from file-transfer display.
  5816. redhat80:
  5817.     @echo "Building SECURE Kermit for Red Hat 8.0..."
  5818.     $(MAKE) linux+krb5+krb4+openssl+zlib+shadow+pam \
  5819.     KTARGET=$${KTARGET:-$(@)} "KFLAGS = -DRH80 $(KFLAGS)"
  5820.  
  5821. redhat80+srp:
  5822.     @echo "Building SECURE Kermit for Red Hat 8.0..."
  5823.     $(MAKE) linux+krb5+krb4+srp+openssl+zlib+shadow+pam \
  5824.     KTARGET=$${KTARGET:-$(@)} "KFLAGS = -DRH80 $(KFLAGS)"
  5825.  
  5826. #Red Hat Linux 7.3 - full install includes Kerberos 5 (4 compat), PAM, SSL.
  5827. #Also works around bug in curses in which terminal goes dead after
  5828. #returning from file-transfer display.
  5829. redhat73:
  5830.     @echo "Building SECURE Kermit for Red Hat 7.3..."
  5831.     $(MAKE) linux+krb5+krb4+openssl+zlib+shadow+pam \
  5832.     KTARGET=$${KTARGET:-$(@)} "KFLAGS = -DRH73 $(KFLAGS)"
  5833.  
  5834. redhat73+srp:
  5835.     @echo "Building SECURE Kermit for Red Hat 7.3..."
  5836.     $(MAKE) linux+krb5+krb4+srp+openssl+zlib+shadow+pam \
  5837.     KTARGET=$${KTARGET:-$(@)} "KFLAGS = -DRH73 $(KFLAGS)"
  5838.  
  5839. #Red Hat Linux 7.2 - full install includes Kerberos 5 (4 compat), PAM, SSL.
  5840. #Also works around bug in curses in which terminal goes dead after
  5841. #returning from file-transfer display.
  5842. redhat72:
  5843.     @echo "Building SECURE Kermit for Red Hat 7.2..."
  5844.     $(MAKE) linux+krb5+krb4+openssl+zlib+shadow+pam \
  5845.     KTARGET=$${KTARGET:-$(@)} "KFLAGS = -DRH72 $(KFLAGS)"
  5846.  
  5847. redhat72+srp:
  5848.     @echo "Building SECURE Kermit for Red Hat 7.2..."
  5849.     $(MAKE) linux+krb5+krb4+srp+openssl+zlib+shadow+pam \
  5850.     KTARGET=$${KTARGET:-$(@)} "KFLAGS = -DRH72 $(KFLAGS)"
  5851.  
  5852. #Red Hat Linux 7.1 - full install includes Kerberos 5 (4 compat), PAM, SSL.
  5853. #Also works around bug in curses in which terminal goes dead after
  5854. #returning from file-transfer display.
  5855. redhat71:
  5856.     @echo "Building SECURE Kermit for Red Hat 7.1..."
  5857.     $(MAKE) linux+krb5+krb4+openssl+zlib+shadow+pam \
  5858.     KTARGET=$${KTARGET:-$(@)} "KFLAGS = -DRH71 $(KFLAGS)"
  5859.  
  5860. redhat71+srp:
  5861.     @echo "Building SECURE Kermit for Red Hat 7.1..."
  5862.     $(MAKE) linux+krb5+krb4+srp+openssl+zlib+shadow+pam \
  5863.     KTARGET=$${KTARGET:-$(@)} "KFLAGS = -DRH71 $(KFLAGS)"
  5864.  
  5865. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.2, OpenSSL
  5866. # with ZLIB and PAM and Shadow passwords
  5867. linux+krb5+openssl+zlib+shadow+pam:
  5868.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB5,SSL...'
  5869.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5870.     "CFLAGS = -g -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5871.     -DCK_AUTHENTICATION -DCK_KERBEROS  -DKRB5 -DCK_SHADOW \
  5872.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL -DCK_PAM -DZLIB \
  5873.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5874.     $(K5INC) $(K5INC)/krb5 $(SSLINC) \
  5875.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5876.     "LIBS = $(K5LIB) $(SSLLIB) \
  5877.     -lm -lncurses -ltermcap -lssl -lcrypto -lgssapi_krb5 \
  5878.     -lkrb5 -lcom_err -lk5crypto -lcrypt -lresolv -lpam -ldl -lz"
  5879.  
  5880. linuxnotcp:
  5881.     $(MAKE) linux KTARGET=$${KTARGET:-$(@)} "KFLAGS = -DNONET $(KFLAGS)"
  5882.  
  5883. # "make linuxnotcp" with lcc (see http://www.cs.princeton.edu/software/lcc)
  5884. # lcc does not understand various gcc extensions:
  5885. #  "__inline__" -- can be eliminated by adding "-D__inline__="
  5886. #  "__asm__ and "long long" -- in header files, should be surrounded by
  5887. #                              "#ifndef(__STRICT_ANSI__)"/"#endif"
  5888. #  however, TCP requires some __asm__ functions, so cannot be compiled
  5889. linuxnotcp-lcc:
  5890.     @echo 'Making C-Kermit $(CKVER) for Linux with lcc ...'
  5891.     @echo 'Read comments in makefile for additional information.'
  5892.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC = lcc" "CC2 = lcc" \
  5893.     "CFLAGS = -DLINUX -DPOSIX -DCK_CURSES -DCK_POSIX_SIG \
  5894.     -UTCPSOCKET -DLINUXFSSTND -DNOLEARN $(KFLAGS)" \
  5895.     "LNKFLAGS = $(LNKFLAGS)" "LIBS = -lcurses -ltermcap"
  5896.  
  5897. # Linux 0.99.14 thru 1.0 with gcc, dynamic libraries, curses, TCP/IP.
  5898. # For Linux 1.2 or later, use "make linux" (above).
  5899. #
  5900. # -DLINUXFSSTND (Linux File System Standard) gives UUCP lockfile /var/lock with
  5901. # string pid.  Remove this and get /usr/spool/uucp with int pid, which was used
  5902. # in early Linux versions.
  5903. #
  5904. # If you get compiler errors regarding <linux/serial.h>, add -DNOHISPEED.
  5905. #
  5906. # -DCK_POSIX_SIG (POSIX signal handling) is good for Linux releases back to at
  5907. # least 0.99.14; if it causes trouble for you, just remove it.
  5908. #
  5909. # -DCK_CURSES: Here we link with the regular curses library.  But you should
  5910. # be using ncurses.  Internally, the ckuusx.c module includes <curses.h>, but
  5911. # this really should be <ncurses.h>.  Thus if you have the new curses
  5912. # material, you should either install it with the standard names, or else
  5913. # create symbolic links from the standard names to the new ones.  If you get
  5914. # compile-time errors complaining about data definitions in termcap.h, it
  5915. # means you have new kernel material mixed with older libc header files.  To
  5916. # fix, add "#include <termios.h>" to the <termcap.h> file.  Or if all this is
  5917. # too confusing, create a new makefile entry based on this one, but with
  5918. # -DCK_CURSES removed from CFLAGS and the entire LIBS= clause removed.
  5919. #
  5920. # But wait, there's more.  On most Linux systems, -ltermcap must be included
  5921. # in LIBS.  But on others, the linker complains that libtermcap can't be
  5922. # found.  In that case, try removing -ltermcap from LIBS=.
  5923. #
  5924. # But wait, there's more.  The format of the PID string in the UUCP lockfile
  5925. # changed between Linux FSSTND 1.0 and 1.2.  In the earlier standard, it had
  5926. # leading zeros; in the second, it has leading spaces.  By default this entry
  5927. # uses the newer standard.  To force the older one, add -DFSSTND10.
  5928. #
  5929. # "The nice thing about the Linux standard is there are so many to choose from"
  5930. #
  5931. # NOTE: Remove -DBIGBUFOK for small-memory or limited-resource systems.
  5932. linux10:
  5933.     @echo 'Making C-Kermit $(CKVER) for Linux 1.0 or earlier...'
  5934.     @echo 'IMPORTANT: Read the comments in the linux section of the'
  5935.     @echo 'makefile if you get compilation or link errors.'
  5936.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5937.     "CFLAGS = -O -DPOSIX -DCK_CURSES -DCK_POSIX_SIG -DLINUX \
  5938.     -DTCPSOCKET -DLINUXFSSTND -DOLINUXHISPEED -DNOLEARN $(KFLAGS)" \
  5939.     "LNKFLAGS = $(LNKFLAGS)" "LIBS = -lcurses -ltermcap"
  5940.  
  5941. #This version was used for Linux prior to C-Kermit 6.0.192.
  5942. #Now the "Linux File System Standard" is considered standard, ditto TCP/IP.
  5943. linuxold:
  5944.     @echo 'Making C-Kermit $(CKVER) for Linux...'
  5945.     @echo 'For FSSTND-recommended UUCP lockfiles, use:'
  5946.     @echo '  make linux "KFLAGS=-DLINUXFSSTND".'
  5947.     @echo 'Read comments in makefile for additional options.'
  5948.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5949.     "CFLAGS = -O -DLINUX -DPOSIX -DCK_CURSES -DCK_POSIX_SIG -DNOLEARN \
  5950.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" "LIBS = -lcurses -ltermcap"
  5951.  
  5952. # LynxOS 2.2 with GCC compiler, TCP/IP and fullscreen display.
  5953. # Probably also works with Lynx 2.1, and maybe even Lynx 2.0.
  5954. # -X means use termios serial drivers rather than BSD4.3-style sgtty drivers.
  5955. # If you have trouble with this, try "make bsd KFLAGS=-DNOFDZERO".
  5956. lynx:
  5957.     @echo 'Making C-Kermit $(CKVER) for LynxOS 2.2 with TCP/IP'
  5958.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5959.     "CFLAGS= -O -DPOSIX -DDIRENT -DSETREUID -DCK_CURSES -DTCPSOCKET \
  5960.     -DCK_ANSIC -DLYNXOS -DNOLEARN" "LNKFLAGS = -X" "LIBS = -lcurses -lbsd"
  5961.  
  5962. lynx22:
  5963.     $(MAKE) lynx KTARGET=$${KTARGET:-$(@)} "KFLAGS=$(KFLAGS)"
  5964.  
  5965. # LynxOS 2.1 with GCC compiler 1.40 and TCP/IP.
  5966. lynx21:
  5967.     @echo 'Making C-Kermit $(CKVER) for LynxOS 2.1 with TCP/IP'
  5968.     $(MAKE) kermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5969.     "CFLAGS= -O -DSETREUID -DTCPSOCKET -DCK_ANSIC -DBSD4 -DLYNXOS" \
  5970.     "LIBS = -lbsd"
  5971.  
  5972. #SCO Xenix 2.2.1 for IBM PC, XT, PS2/30, or other 8088 or 8086 machine
  5973. #Should this not work, try some of the tricks from sco286.
  5974. #NOTE: -DRENAME is omitted for early SCO Xenix releases because it didn't
  5975. #exist, or its semantics were different from the later POSIX-compliant
  5976. #version of rename().
  5977. sco86:
  5978.     @echo 'Making C-Kermit $(CKVER) for SCO Xenix/86...'
  5979.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  5980.     "CFLAGS= -DXENIX -DNOFILEH -DNOIKSD -DNOUNICODE -DNOLEARN \
  5981.     $(KFLAGS) -Dunix -F 3000 -i -M0me" \
  5982.     "LNKFLAGS = -F 3000 -i -s -M0me" "LIBS = -lx"
  5983.  
  5984. #SCO Xenix/286 2.2.1, e.g. for IBM PC/AT, PS/2 Model 50, etc.
  5985. #Reportedly, this "make" can fail simply because of the size of this
  5986. #makefile.  If that happens, use "makeL", or edit out some of the
  5987. #other entries.  No debugging or character-set translation.
  5988. sco286:
  5989.     @echo 'Making C-Kermit $(CKVER) for SCO Xenix/286...'
  5990.     @echo 'If make fails, try using makeL.'
  5991.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  5992.     "CFLAGS= -xenix -s -O -LARGE -DXENIX -DNOFILEH -Dunix -DRDCHK -DNAP \
  5993.     -DNOIKSD -DNODEBUG -DNOTLOG -DNOCSETS -DNOLEARN \
  5994.     $(KFLAGS) -F 3000 -i -M2let16" \
  5995.     "LIBS = -lx" "LNKFLAGS = -xenix -s -O -LARGE -F 3000 -i -M2let16"
  5996.  
  5997. #SCO Xenix/286 2.2.1, e.g. for IBM PC/AT, PS/2 Model 50, etc.
  5998. #As above, but with HDBUUCP (This one might need fixing -- see sco286).
  5999. sco286hdb:
  6000.     @echo 'Making C-Kermit $(CKVER) for SCO Xenix/286 with HDB UUCP...'
  6001.     @echo 'If make fails, try using makeL.'
  6002.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  6003.     "CFLAGS= -s -O -LARGE -DXENIX -DNOFILEH -Dunix -DRDCHK -DNAP \
  6004.     -DHDBUUCP -DNOIKSD -DNOUNICODE -DNOLEARN \
  6005.     $(KFLAGS) -F 3000 -i -M2let32" \
  6006.     "LIBS = -lx" "LNKFLAGS = -s -O -LARGE -F 3000 -i -M2let32"
  6007.  
  6008. #SCO Xenix/386 2.2.2 and 2.2.3
  6009. sco386:
  6010.     @echo 'Making C-Kermit $(CKVER) for SCO Xenix/386 2.2.2...'
  6011.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  6012.     "CFLAGS= -DXENIX -DNOFILEH -DNOIKSD -DNOREDIRECT -DNOLEARN \
  6013.     -Dunix -DRDCHK -DNAP -DNOUNICODE $(KFLAGS) -Otcl -M3e" \
  6014.     "LNKFLAGS = -s" "LIBS = -lx"
  6015.  
  6016. #SCO XENIX/386 2.2.3 with Excelan TCP/IP + curses.
  6017. # NOTE: This one might need some work in C-Kermit 6.0.
  6018. # You might need to include /usr/include/sys/types.h
  6019. # containing "typedef char *caddr_t;".  Then at least it compiles.
  6020. sco386netc:
  6021.     @echo 'Making C-Kermit $(CKVER) for SCO Xenix/386 2.2.3 + Excelan TCP'
  6022.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  6023.     "CFLAGS= -I/usr/include/exos -DXENIX -DCK_CURSES -DNOUNICODE \
  6024.     -Dunix -DRDCHK -DNAP -DTCPSOCKET -DEXCELAN -DNOJC -DNOMKDIR -DNOFILEH \
  6025.     -DNOLEARN -DNOREDIRECT -DNOIKSD -DNO_DNS_SRV $(KFLAGS) -Otcl -M3e" \
  6026.     "LNKFLAGS = -s" "LIBS = -lc -lx -lsocket -lcurses -ltermcap"
  6027.  
  6028. #SCO XENIX/386 2.3.3 with gcc 1.37 or later...
  6029. sco386gcc:
  6030.     @echo 'Making C-Kermit $(CKVER) for SCO Xenix/386 2.3.3, gcc...'
  6031.     @echo 'Add -D_NO_PROTOTYPE if you have trouble with Xenix header files'
  6032.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  6033.     "CFLAGS= -O -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP \
  6034.     -DNOJC -DNODEBUG -DNOUNICODE -DNOLEARN $(KFLAGS) \
  6035.     -traditional -fpcc-struct-return -fstrength-reduce \
  6036.     -DM_BITFIELDS -DM_COFF -DM_I386 -DM_I86 -DM_I86SM \
  6037.     -DM_INTERNAT -DM_SDATA -DM_STEXT -DM_SYS3 -DM_SYS5 \
  6038.     -DM_SYSIII -DM_SYSV -DM_WORDSWAP -DM_XENIX -DNOIKSD -DNOREDIRECT \
  6039.     -DPWID_T=int " "LNKFLAGS = -s" "LIBS = -lx"
  6040.  
  6041. #As above, but with curses...
  6042. sco386gccc:
  6043.     @echo 'Making C-Kermit $(CKVER) for SCO Xenix/386 2.3.3, gcc...'
  6044.     @echo 'Add -D_NO_PROTOTYPE if you have trouble with Xenix header files'
  6045.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  6046.     "CFLAGS= -O -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP \
  6047.     -DNOJC -DNODEBUG -DCK_CURSES -DNOUNICODE -DNOLEARN $(KFLAGS) \
  6048.     -traditional -fpcc-struct-return -fstrength-reduce \
  6049.     -DM_BITFIELDS -DM_COFF -DM_I386 -DM_I86 -DM_I86SM -DNOREDIRECT \
  6050.     -DM_INTERNAT -DM_SDATA -DM_STEXT -DM_SYS3 -DM_SYS5 \
  6051.     -DM_SYSIII -DM_SYSV -DM_WORDSWAP -DM_XENIX -DNOIKSD \
  6052.     -DPWID_T=int " "LNKFLAGS = -s" "LIBS = -lx -lcurses -ltermlib"
  6053.  
  6054. #SCO UNIX (and ODT) entries...
  6055. #
  6056. #NOTE: All SCO UNIX entry LIBS should have "-lc_s -lc -lx" IN THAT ORDER (if
  6057. #shared C library is desired), or else "-lc -lx" IN THAT ORDER.  Use shared C
  6058. #libraries to save memory, but then don't expect to run the resulting binary
  6059. #on a different machine.  When using -lc_s, you must also use -lc, because the
  6060. #shared C library does not contain all of libc.a.  And in all cases, -lc must
  6061. #ALWAYS precede -lx.
  6062. #
  6063. #ANOTHER NOTE: -DRENAME is included in all SCO UNIX entries.  Remove it if it
  6064. #causes trouble.  No harm is done by removing it (see ckuins.txt).
  6065. #
  6066. #AND ANOTHER: In theory, it should be possible to run SCO UNIX binaries on
  6067. #SCO Xenix 2.3 and later.  In practice, this might not work because of the
  6068. #libraries, etc.  Also, don't add the -link -z switch (which is supposed to
  6069. #root out references to null pointers) because it makes UNIX binaries core
  6070. #dump when they are run under Xenix.
  6071.  
  6072. #NOTE: -Otcl removed and replaced by -O, since -Otcl produced incorrect code.
  6073. #SCO UNIX/386 3.2.0, 3.2.1, and SCO Xenix 2.3.x
  6074. sco3r2:
  6075.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2.0 or 3.2.1 ...'
  6076.     @echo 'Warning: If make blows up, edit the makefile to join'
  6077.     @echo 'the following three continued lines into one line.'
  6078.     @echo 'Also, remove -DRENAME if _rename unresolved at link time.'
  6079.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  6080.     "CFLAGS= -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP -DNOLEARN \
  6081.     -DRENAME -DNOIKSD -DNOJC $(KFLAGS) -O" \
  6082.     "LNKFLAGS = -s" "LIBS = -lc -lx"
  6083.  
  6084. #SCO UNIX/386 3.2.0 and SCO Xenix 2.3.x with Excelan TCP/IP support.
  6085. #In case of compilation or runtime problems, try adding
  6086. #"-DUID_T=int -DGID_T=int" to the CFLAGS.  If that doesn't work, try
  6087. #"-DUID_T=uid_t -DGID_T=gid_t".
  6088. sco3r2net:
  6089.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 / Excelan...'
  6090.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  6091.     "CFLAGS= -I/usr/include/exos -DXENIX -DSVR3 -DNOFILEH -DNOLEARN \
  6092.     -DHDBUUCP -DRDCHK -DNAP -DRENAME -DTCPSOCKET -DEXCELAN -DNOJC \
  6093.     -DNOIKSD -DNOREDIRECT $(KFLAGS) -O" \
  6094.     "LNKFLAGS = -s" "LIBS = -lc -lx -lsocket"
  6095.  
  6096. #SCO UNIX/386 3.2.0 and SCO Xenix 2.3.x with Excelan TCP/IP support.
  6097. #As above, with curses added.
  6098. sco3r2netc:
  6099.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 / Excelan / curses...'
  6100.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  6101.     "CFLAGS= -I/usr/include/exos -DXENIX -DSVR3 -DNOFILEH -DNOLEARN \
  6102.     -DHDBUUCP -DRDCHK -DNAP -DTCPSOCKET -DEXCELAN -DNOJC $(KFLAGS) \
  6103.     -DRENAME -DCK_CURSES -DNOREDIRECT -DNOIKSD -O" "LNKFLAGS = -s" \
  6104.     "LIBS = -lc -lx -lsocket -lcurses -ltermcap"
  6105.  
  6106. #SCO UNIX 3.2.x or SCO Xenix 2.3.x with Racal InterLan TCP/IP support
  6107. # Extra compile flags for other version of Racal InterLan TCP/IP:
  6108. # Xenix286/NP621-286, use -Ml -DPARAMH -DINTERLAN -Di286 -DSYSV
  6109. # Xenix386/NP621-386, use -DPARAMH -DINTERLAN -Di386 -DSYSV
  6110. # ISC386ix/NP622I, use -DSYSV -Di386
  6111. # SCO Unix3.2/NP622S, use -DSYSV -Di386 -DSCO_UNIX
  6112. # AT&T SVR3.2/NP622A, use -DSYSV -Di386 -DATT
  6113. sco3r2netri:
  6114.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 / Racal InterLan...'
  6115.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  6116.     "CFLAGS= -I/usr/include/interlan -DXENIX -DNOFILEH -DHDBUUCP \
  6117.     -DSVR3 -DRDCHK -DNAP -DTCPSOCKET -DPARAMH -DINTERLAN -Di386 -DSYSV \
  6118.     -DRENAME -DNOREDIRECT -DNOIKSD -DNOJC -DNOLEARN $(KFLAGS) -Otcl -M3e" \
  6119.     "LNKFLAGS = -s" "LIBS = -lc -lx -ltcp"
  6120.  
  6121. # SCO XENIX/386 2.3.3 SysV with SCO TCP/IP
  6122. # System V STREAMS TCP developed by Lachman Associates Inc and
  6123. # Convergent Technologies.
  6124. # -DRENAME removed since some reports indicate it is not supported
  6125. # (whereas others say it is.)
  6126. sco3r2lai:
  6127.     @echo 'Making C-Kermit $(CKVER) for SCO XENIX/386 2.3.3 + TCP/IP...'
  6128.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  6129.     "CFLAGS= -DLAI_TCP -Di386 -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK \
  6130.     -DNAP -DTCPSOCKET -DPWID_T=int -DNOREDIRECT -DNOIKSD -DNOLEARN \
  6131.     $(KFLAGS) -Otcl -i -M3e" \
  6132.     "LNKFLAGS = -i -s" "LIBS = -lc -lx -lsocket"
  6133.  
  6134. sco3r2laic:
  6135.     @echo 'Making C-Kermit $(CKVER) for SCO XENIX/386 2.3.3 + TCP/IP...'
  6136.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  6137.     "CFLAGS= -DLAI_TCP -Di386 -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK \
  6138.     -DNAP -DTCPSOCKET -DCK_ANSIC -DCK_CURSES -DM_TERMINFO -DNOLEARN \
  6139.     -DPWID_T=int -DNOREDIRECT -DNOIKSD $(KFLAGS) -Otcl -i -M3e" \
  6140.     "LNKFLAGS = -i -s" "LIBS = -ltinfo -lc -lx -lsocket"
  6141.  
  6142. #SCO UNIX/386 3.2v2 (POSIX job control), shared libraries.
  6143. sco3r22:
  6144.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v2 ...'
  6145.     make wermit KTARGET=$${KTARGET:-$(@)} \
  6146.     "CFLAGS= -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNOLEARN \
  6147.     -DNAP -DRENAME -DPID_T=pid_t -DPWID_T=int -DDIRENT -DNOIKSD \
  6148.     -DNOREDIRECT $(KFLAGS) -O" \
  6149.     "LNKFLAGS = -s" "LIBS = -lc_s -lc -lx"
  6150.  
  6151. #SCO UNIX/386 3.2v2, POSIX job control, fullscreen file transfer display,
  6152. #dynamic memory allocation, shared C library
  6153. sco3r22c:
  6154.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v2 ...'
  6155.     @echo 'Warning: If make blows up, edit the makefile to join'
  6156.     @echo 'the following four continued lines into one line.'
  6157.     make wermit KTARGET=$${KTARGET:-$(@)} \
  6158.     "CFLAGS= -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP -DNOLEARN \
  6159.     -DCK_CURSES -DDIRENT -DRENAME -DNOREDIRECT -DNOIKSD \
  6160.     -DPID_T=pid_t -DPWID_T=int $(KFLAGS) -O" \
  6161.     "LNKFLAGS = -s" "LIBS = -lcurses -lc_s -lc -lx"
  6162.  
  6163. #SCO UNIX/386 3.2v2 with gcc 1.40 or later (POSIX job control)
  6164. sco3r22gcc:
  6165.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v2, gcc'
  6166.     @echo 'Warning: If make blows up, edit the makefile to join'
  6167.     @echo 'the following seven continued lines into one line.'
  6168.     make wermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" \
  6169.     "CFLAGS= -O -DPOSIX -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP \
  6170.     -DNOLEARN -DRENAME -traditional -fpcc-struct-return -fstrength-reduce \
  6171.     -DM_BITFIELDS -DM_COFF -DM_I386 -DM_I86 -DM_I86SM \
  6172.     -DM_INTERNAT -DM_SDATA -DM_STEXT -DM_SYS3 -DM_SYS5 \
  6173.     -DM_SYSIII -DM_SYSV -DM_UNIX -DM_WORDSWAP -DM_XENIX -Dunix \
  6174.     -DPID_T=pid_t -DPWID_T=int -DNOREDIRECT -DNOIKSD $(KFLAGS) " \
  6175.     "LNKFLAGS = -s" "LIBS = -lc_s -lc -lx"
  6176.  
  6177. #SCO UNIX/386 3.2v2 (ODT 1.1) (POSIX job control) with SCO TCP/IP, shared libs
  6178. #Requires SCO TCP/IP or ODT development system for telnet.h, etc.
  6179. sco3r22net:
  6180.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2.2 + TCP/IP...'
  6181.     @echo 'Warning: If make blows up, edit the makefile to join'
  6182.     @echo 'the following three continued lines into one line.'
  6183.     make xermit KTARGET=$${KTARGET:-$(@)} \
  6184.     "CFLAGS= -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP -DTCPSOCKET \
  6185.     -DRENAME -DPID_T=pid_t -DPWID_T=int -DDIRENT -DNOREDIRECT -DNOIKSD \
  6186.     $(KFLAGS) -O" "LNKFLAGS = -s" "LIBS = -lsocket -lc_s -lc -lx"
  6187.  
  6188. #As above, but with curses for fullscreen file transfer display.
  6189. #Requires SCO TCP/IP or ODT development system for telnet.h, etc.
  6190. sco3r22netc:
  6191.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v2 + TCP/IP...'
  6192.     @echo 'Warning: If make blows up, edit the makefile to join'
  6193.     @echo 'the following three continued lines into one line.'
  6194.     make xermit KTARGET=$${KTARGET:-$(@)} "CFLAGS= \
  6195.     -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP -DTCPSOCKET -DRENAME \
  6196.     -DCK_CURSES -DDIRENT -DNOIKSD -DNOREDIRECT \
  6197.     -DPID_T=pid_t -DPWID_T=int -O $(KFLAGS)" \
  6198.     "LNKFLAGS = -s" "LIBS = -lcurses -lsocket -lc_s -lc -lx"
  6199.  
  6200. #SCO XENIX 2.3.4, no curses, no TCP/IP, no IKSD.
  6201. #This one built and tested in C-Kermit 7.0.
  6202. #lcfp is C library floating-point support.
  6203. #Use -M3 to generate 32-bit i386 code instead of 16-bit segmented i286 code.
  6204. #Use -Me to enable MS nonstandard keywords in system headers.
  6205. #Use -W2 or W3 to increase the warning level.
  6206. sco234:
  6207.     @echo 'Making C-Kermit $(CKVER) for SCO XENIX 2.3.4...'
  6208.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  6209.     "CFLAGS= -DSCO32 -DXENIX -DNOFILEH -DHDBUUCP -DRDCHK -DNOLEARN \
  6210.     -DNAP -DNOJC -DNOCOTFMC -DNOIKSD -DNOREDIRECT -DNOTNCODE -DNOGFTIMER \
  6211.     -DNOTIMEVAL -DNOTIMEZONE -DNOSYMLINK -DSCO234 -DDCLGETCWD $(KFLAGS) \
  6212.     -Otcl" "LNKFLAGS = -s" "LIBS = -lcfp -lc -lx"
  6213.  
  6214. #SCO XENIX 2.3.4, no TCP/IP, no IKSD, but with curses.
  6215. # Built and tested in C-Kermit 7.0.
  6216. # Note: XENIX 2.3.4 does not have newterm() so no point in adding -DCK_NEWTERM.
  6217. sco234c:
  6218.     @echo 'Making C-Kermit $(CKVER) for SCO XENIX 2.3.4 + curses...'
  6219.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  6220.     "CFLAGS= -DSCO32 -DXENIX -DNOFILEH -DHDBUUCP -DRDCHK -DNOLEARN \
  6221.     -DNAP -DNOJC -DNOCOTFMC -DNOIKSD -DNOREDIRECT -DNOTNCODE -DNOGFTIMER \
  6222.     -DNOTIMEVAL -DNOTIMEZONE -DNOSYMLINK -DCK_CURSES -DSCO234 \
  6223.     -DDCLGETCWD $(KFLAGS) -Otcl" \
  6224.     "LNKFLAGS = -s" "LIBS = -lcfp -lc -ltinfo -lx"
  6225.  
  6226. #SCO XENIX 2.3.4 with SCO TCP/IP and curses, no IKSD.
  6227. # Built and tested in C-Kermit 7.0.  TCP/IP works and curses works.
  6228. # Previous versions of this target included -lmalloc, but this caused "error:
  6229. # " _calloc : symbol defined more than once" at link time so I removed it.
  6230. # Results are likely to vary depending on exactly which version of the SDK
  6231. # and TCP/IP SDK you have.
  6232. sco234netc:
  6233.     @echo 'Making C-Kermit $(CKVER) for SCO XENIX 2.3.4 + TCP + curses...'
  6234.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  6235.     "CFLAGS= -DSCO32 -DXENIX -DNOFILEH -DHDBUUCP -DRDCHK -DNOLEARN \
  6236.     -DNAP -DNOJC -DNOCOTFMC -DNOIKSD -DNOREDIRECT -DNOTNCODE -DNOGFTIMER \
  6237.     -DNOTIMEVAL -DNOTIMEZONE -DNOSYMLINK -DCK_CURSES -DSCO234 \
  6238.     -DDCLGETCWD -DTCPSOCKET -DNO_DNS_SRV $(KFLAGS) -Otcl" \
  6239.     "LNKFLAGS = -s" "LIBS = -ltinfo -lsocket -lcfp -lc -lx"
  6240.  
  6241. # SCO 3.2v4.x targets...
  6242.  
  6243. #  NOTE: Add -DDCLPOPEN and/or -DDCLFDOPEN to anySCO 3.2v4.x non-gcc entries
  6244. #  that complain about fdopen() or popen() at compile time.  They compile OK
  6245. #  without these flags as of July 1999.  However, the gcc entries seem to
  6246. #  need them, at least for gcc 2.7.2.2.
  6247.  
  6248. #  NOTE 2: To enable IKSD support, add:
  6249. #  -DCK_LOGIN -DNOGETUSERSHELL -DNOINITGROUPS
  6250. #  to CFLAGS (not tested).
  6251.  
  6252. #SCO UNIX/386 3.2v4 (POSIX job control), curses, ANSI C compilation,
  6253. #<dirent.h> (EAFS) file system.  Remove -lmalloc if it causes trouble.  It was
  6254. #put there to avoid core dumps caused by regular libc.a malloc.  Add -J to make
  6255. #all chars unsigned.  This version uses select() for CONNECT and also has
  6256. #high-precision timers and so might not work on non-TCP systems, in which case
  6257. #sco32v4ns should be used instead.
  6258. # If you get _ftime redefinition_ complaint, try adding -DODT30 to CFLAGS.
  6259. sco32v4:
  6260.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v4...'
  6261.     make xermit KTARGET=$${KTARGET:-$(@)} \
  6262.     "CFLAGS= -DCK_SCO32V4 -DNOFILEH -DHDBUUCP -DCK_CURSES -DM_TERMINFO \
  6263.     -DNOANSI -DSELECT -DNOIKSD -DDCLGETCWD -NOLSTAT \
  6264.     -DNOLINKBITS -DDCLGETCWD $(KFLAGS) -O" \
  6265.     "LNKFLAGS = -s" "LIBS = -lcurses -lmalloc -lsocket -lc_s -lc -lx"
  6266.  
  6267. # As above, but with no dependence on sockets library or select().
  6268. sco32v4ns:
  6269.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v4...'
  6270.     @echo 'No select() and no sockets library.'
  6271.     make wermit KTARGET=$${KTARGET:-$(@)} \
  6272.     "CFLAGS= -DCK_SCO32V4 -DNOFILEH -DHDBUUCP -DCK_CURSES -DM_TERMINFO \
  6273.     -DNOANSI -DNOIKSD -DNOGFTIMER -DCK_POLL -DNAP -DDCLGETCWD -DNOLSTAT \
  6274.     -DNOLINKBITS -DDCLGETCWD -DNOLEARN -O $(KFLAGS)" \
  6275.     "LNKFLAGS = -s" "LIBS = -lcurses -lmalloc -lc_s -lc -lx"
  6276.  
  6277. #SCO UNIX/386 3.2v4 (POSIX job control), TCP/IP, curses, ANSI C compilation,
  6278. #<dirent.h> (EAFS) file system.  With DIRENT, -lc must come before -lx.
  6279. #Reportedly it's OK to add -DCK_REDIR and -DCK_WREFRESH, and to remove -lc_s.
  6280. #Requires SCO TCP/IP development system or ODT for telnet.h, etc.
  6281. #See sco32v4 above for additional comments.
  6282. #NOTE: No more room for -Dxxx -- 25 seems to be the limit.  Move some to
  6283. #ckcdeb.h or somewhere...
  6284. sco32v4net:
  6285.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v4...'
  6286.     @echo 'If you get _ftime redefinition_ complaint,'
  6287.     @echo 'use make sco-odt30.'
  6288.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  6289.     "CFLAGS= -DNOFILEH -DHDBUUCP -DTCPSOCKET -DCK_ANSIC -DCK_CURSES \
  6290.     -DNAP -DCK_WREFRESH -DNOLINKBITS -D_IBCS2 -DSELECT -DNOLSTAT \
  6291.     -DDCLGETCWD -DCK_SCO32V4 -DNOIKSD -O \
  6292.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS) -s" \
  6293.     "LIBS = $(LIBS) -lcurses -lsocket -lmalloc -lsocket -lc_s -lc -lx"
  6294.  
  6295. #SCO UNIX/386 3.2v4 with gcc 1.40 or later, POSIX job control.
  6296. #Also see comments in sco32r4 entry.
  6297. sco32v4gcc:
  6298.     make xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" \
  6299.     "CFLAGS= -O -DNOFILEH -DHDBUUCP -DNOANSI -DCK_CURSES -DM_TERMINFO \
  6300.     -traditional -fpcc-struct-return -fstrength-reduce -funsigned-char \
  6301.     -D_KR -D_NO_PROTOTYPE -D_SVID -DNOIKSD -DCK_SCO32V4 -DNOLINKBITS \
  6302.     -DM_BITFIELDS -DM_COFF -DM_I386 -DM_I86 -DM_I86SM -DSELECT -DNOLSTAT \
  6303.     -DM_INTERNAT -DM_SDATA -DM_STEXT -DM_SYS3 -DM_SYS5 -DDCLGETCWD \
  6304.     -DM_SYSIII -DM_SYSV -DM_UNIX -DM_WORDSWAP -DM_XENIX -Dunix \
  6305.     -DDCLPOPEN -DDCLFDOPEN $(KFLAGS) " \
  6306.     "LNKFLAGS = -s" "LIBS = -lcurses -lsocket -lc_s -lc -lx"
  6307.  
  6308. #SCO UNIX/386 3.2v4 (POSIX job control), TCP/IP, curses, ANSI C compilation,
  6309. #Requires SCO TCP/IP or ODT development system for telnet.h, etc.
  6310. #<dirent.h> (EAFS) file system.  With DIRENT, -lc must come before -lx.
  6311. #gcc 1.40 or later.  Also see comments in sco32r4 entry.
  6312. sco32v4netgcc:
  6313.     make xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2=gcc" \
  6314.     "CFLAGS= -O2 -DNOFILEH -DHDBUUCP -DSELECT -DNOLSTAT \
  6315.     -DNOANSI -DTCPSOCKET -DCK_CURSES -DM_TERMINFO \
  6316.     -D_KR -D_NO_PROTOTYPE -D_SVID -DNOIKSD -DCK_SCO32V4 -DNOLINKBITS \
  6317.     -DM_BITFIELDS -DM_COFF -DM_I386 -DM_I86 -DM_I86SM -DDCLGETCWD \
  6318.     -DM_INTERNAT -DM_SDATA -DM_STEXT -DM_SYS3 -DM_SYS5 \
  6319.     -DM_SYSIII -DM_SYSV -DM_UNIX -DM_WORDSWAP -DM_XENIX -Dunix \
  6320.     -DDCLPOPEN -DDCLFDOPEN $(KFLAGS)" \
  6321.     "LNKFLAGS = -s" "LIBS = -lcurses -lsocket -lc_s -lc -lx"
  6322.  
  6323. #As above but with bgcc BOUNDS CHECKING (for developers only).  -lcheck has
  6324. #bounds-checking replacements for malloc, memcpy, bcopy, etc, so must come
  6325. #before -lsocket and -lc.
  6326. sco32v4netbgcc:
  6327.     make xermit KTARGET=$${KTARGET:-$(@)} \
  6328.     "CC = bgcc -pipe -m386" "CC2=bgcc -pipe -m386" \
  6329.     "CFLAGS= -O1 -g -DNOFILEH -DHDBUUCP -DSELECT \
  6330.     -DNOANSI -DTCPSOCKET -DCK_CURSES -DM_TERMINFO \
  6331.     -D_KR -D_NO_PROTOTYPE -D_SVID -DNOIKSD -DCK_SCO32V4 -DNOLSTAT \
  6332.     -DM_BITFIELDS -DM_COFF -DM_I386 -DM_I86 -DM_I86SM -DNOLINKBITS \
  6333.     -DM_INTERNAT -DM_SDATA -DM_STEXT -DM_SYS3 -DM_SYS5 -DDCLGETCWD \
  6334.     -DM_SYSIII -DM_SYSV -DM_UNIX -DM_WORDSWAP -DM_XENIX -Dunix \
  6335.     -DDCLPOPEN -DDCLFDOPEN $(KFLAGS) " \
  6336.     "LNKFLAGS = -g" "LIBS = -lcurses -lcheck -lsocket -lx"
  6337.  
  6338. sco32v4netnd:
  6339.     @echo sco32v4net with no debug
  6340.     $(MAKE) "MAKE=$(MAKE)" sco32v4net KTARGET=$${KTARGET:-$(@)} \
  6341.     "KFLAGS=$(KFLAGS) -DNODEBUG -DNOTLOG" "LIBS=$(LIBS)"
  6342.  
  6343. sco3r2netnd:
  6344.     @echo sco32v4netnd built for SCO XENIX 2.3 under SCO UNIX...
  6345.     @echo   requires copying /lib/386/Slibc.a to /lib/386/Slibc_s.a and
  6346.     @echo   getting /lib/386/Slibsocket.a from a XENIX devkit.
  6347.     @echo   WARNING: poll/CK_POLL supported only on XENIX 2.3.4
  6348.     echo    For earlier XENIX systems, replace CK_POLL with RDCHK.
  6349.     $(MAKE) "MAKE=$(MAKE)" sco32v4netnd KTARGET=$${KTARGET:-$(@)} \
  6350.     "KFLAGS=$(KFLAGS) -x2.3 -DNORENAME -DNOSYMLINK" \
  6351.     "LNKFLAGS = $(LNKFLAGS) -x2.3" \
  6352.     "LIBS=-ldir -lcfp $(LIBS)"
  6353.  
  6354. #SCO UNIX/386 3.2v4 (POSIX job control), TCP/IP, curses, ANSI C compilation,
  6355. #<dirent.h> (EAFS) file system.  With DIRENT, -lc must come before -lx.
  6356. #Reportedly it's OK to add -DCK_REDIR and -DCK_WREFRESH, and to remove -lc_s.
  6357. #Requires SCO TCP/IP development system or ODT for telnet.h, etc.
  6358. #See sco32v4 above for additional comments.
  6359. # Note: "xermit" means use the select() version of the CONNECT module.
  6360. sco32v4netx:
  6361.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v4...'
  6362.     @echo 'If you get _ftime redefinition_ complaint,'
  6363.     @echo 'use make sco-odt30.'
  6364.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  6365.     "CFLAGS= -DNOFILEH -DHDBUUCP -DTCPSOCKET -DCK_ANSIC -DCK_CURSES -DNAP \
  6366.     -DCK_WREFRESH -DNOLINKBITS -D_IBCS2 -DSELECT -DDCLGETCWD \
  6367.     -DCK_SCO32V4 -DNOIKSD -DNOLSTAT -O $(KFLAGS)" \
  6368.     "LNKFLAGS = $(LNKFLAGS) -s" \
  6369.     "LIBS = $(LIBS) -lcurses -lsocket -lmalloc -lsocket -lc_s -lc -lx"
  6370.  
  6371. sco32v4netndx:
  6372.     @echo sco32v4netx with no debug
  6373.     $(MAKE) "MAKE=$(MAKE)" sco32v4netx KTARGET=$${KTARGET:-$(@)} \
  6374.     "KFLAGS=$(KFLAGS) -DNODEBUG -DNOTLOG" "LIBS=$(LIBS)"
  6375.  
  6376. sco3r2netndx:
  6377.     @echo sco32v4netndx built for SCO XENIX 2.3 under SCO UNIX...
  6378.     @echo   requires copying /lib/386/Slibc.a to /lib/386/Slibc_s.a and
  6379.     @echo   getting /lib/386/Slibsocket.a from a XENIX devkit.
  6380.     @echo   WARNING: poll/CK_POLL supported only on XENIX 2.3.4
  6381.     echo    For earlier XENIX systems, replace CK_POLL with RDCHK.
  6382.     $(MAKE) "MAKE=$(MAKE)" sco32v4netndx KTARGET=$${KTARGET:-$(@)} \
  6383.     "KFLAGS=$(KFLAGS) -x2.3 -DNORENAME -DNOSYMLINK" \
  6384.     "LNKFLAGS = $(LNKFLAGS) -x2.3" \
  6385.     "LIBS=-ldir -lcfp $(LIBS)"
  6386.  
  6387. sco-odt30:
  6388.     @echo SCO ODT 3.0
  6389.     $(MAKE) "MAKE=$(MAKE)" sco32v4net KTARGET=$${KTARGET:-$(@)} \
  6390.     "KFLAGS=$(KFLAGS) -DODT30"
  6391.  
  6392. #SCO OpenServer 5.0 (SCO UNIX 3.2v5.0) with SCO development tools, no TCP/IP.
  6393. #SCO OSR5 is much more like standard System V than previous SCO releases.
  6394. #The SCO development tools include TCP/IP, so this target is only for creating
  6395. #artificially limited versions of kermit required by site policy rather than
  6396. #the operating system.  NOSYSLOG is included because syslog() requires the
  6397. #sockets library.
  6398. sco32v500:
  6399.     @echo Making C-Kermit $(CKVER) for SCO OpenServer Release 5...
  6400.     $(MAKE) xermit CC=$(CC) CC2=$(CC2) KTARGET=$${KTARGET:-$(@)} \
  6401.     "CFLAGS= -O -DDIRENT -DHDBUUCP -DSVR4 -DCK_SCOV5 -DCK_RTSCTS \
  6402.     -DCK_CURSES -DCK_WREFRESH -DCK_NEWTERM -DSELECT -DSELECT_H \
  6403.     -DNOGETUSERSHELL -DNOLSTAT -DNOLINKBITS -DNOSYSLOG \
  6404.     $(KFLAGS)" \
  6405.     "LIBS=-lcurses $(LIBS)" "LNKFLAGS=$(LNKFLAGS)"
  6406.  
  6407. sco32v5:
  6408.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=$(KFLAGS)" sco32v500
  6409.  
  6410.  
  6411. #SCO OpenServer 5.0 with networking, SCO development tools.
  6412. #Networking libraries are now provided with the OS.
  6413. sco32v500net:
  6414.     @echo Making C-Kermit $(CKVER) for SCO OpenServer Release 5...
  6415.     $(MAKE) xermit CC=$(CC) CC2=$(CC2) KTARGET=$${KTARGET:-$(@)} \
  6416.     "CFLAGS= -O -DDIRENT -DHDBUUCP -DSVR4 -DCK_SCOV5 -DCK_RTSCTS \
  6417.     -DCK_CURSES -DCK_WREFRESH -DCK_NEWTERM -DSELECT -DSELECT_H \
  6418.     -DNOGETUSERSHELL -DNOLSTAT -DNOLINKBITS -DTCPSOCKET \
  6419.     -DNO_DNS_SRV $(KFLAGS)" \
  6420.     "LIBS=-lcurses -lsocket $(LIBS)" "LNKFLAGS=$(LNKFLAGS)"
  6421.  
  6422. sco32v5net:
  6423.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=$(KFLAGS)" sco32v500net
  6424.  
  6425. #SCO OpenServer 5.0 with networking and OpenSSL, SCO development tools.
  6426. #Networking libraries are now provided with the OS.
  6427. sco32v500net+ssl:
  6428.     @echo Making C-Kermit $(CKVER) for SCO OSR5 with OpenSSL...
  6429.     $(MAKE) xermit CC=$(CC) CC2=$(CC2) KTARGET=$${KTARGET:-$(@)} \
  6430.     "CFLAGS= -O -DDIRENT -DHDBUUCP -DSVR4 -DCK_SCOV5 -DCK_RTSCTS \
  6431.     -DCK_CURSES -DCK_WREFRESH -DCK_NEWTERM -DSELECT -DSELECT_H \
  6432.     -DNOGETUSERSHELL -DNOLSTAT -DNOLINKBITS -DTCPSOCKET \
  6433.     -DNO_DNS_SRV -DCK_AUTHENTICATION -DCK_SSL -DCK_TRIGGER \
  6434.     $(SSLINC) $(SSLLIB) $(KFLAGS)" \
  6435.     "LIBS=$(SSLLIB) -lcurses -lsocket -lssl -lcrypto $(LIBS)" \
  6436.     "LNKFLAGS=$(LNKFLAGS)"
  6437.  
  6438. #SCO OpenServer 5.0 with gcc, no networking.
  6439. #Note: NOSYSLOG required for non-net entries because it requires <socket.h>
  6440. sco32v500gcc:
  6441.     @echo Using gcc...
  6442.     $(MAKE) "MAKE=$(MAKE)" sco32v500CC=gcc CC2=gcc \
  6443.     KTARGET=$${KTARGET:-$(@)} "KFLAGS= $(KFLAGS)"
  6444.  
  6445. #SCO OpenServer 5.0 with networking, gcc.
  6446. sco32v500netgcc:
  6447.     @echo TCP/IP networking added - using gcc...
  6448.     $(MAKE) "MAKE=$(MAKE)" sco32v500net CC=gcc CC2=gcc \
  6449.     KTARGET=$${KTARGET:-$(@)} "KFLAGS=$(KFLAGS)"
  6450.  
  6451. #SCO OpenServer 5.0 with networking, gcc, elf.
  6452. sco32v500netgccelf:
  6453.     @echo TCP/IP networking added - using gcc, dynamic elf library
  6454.     $(MAKE) "MAKE=$(MAKE)" sco32v500net "CC=gcc" "CC2=gcc" \
  6455.     KTARGET=$${KTARGET:-$(@)} "KFLAGS=-O3 -belf" "LNKFLAGS=-belf"
  6456.  
  6457. sco32v502:
  6458.     $(MAKE) "MAKE=$(MAKE)" sco32v500 KTARGET=$${KTARGET:-$(@)} \
  6459.     "KFLAGS=-DSCO_OSR502 $(KFLAGS)"
  6460.  
  6461. #SCO OpenServer 5.0.2 with networking, SCO development tools.
  6462. sco32v502net:
  6463.     @echo TCP/IP networking added...
  6464.     $(MAKE) "MAKE=$(MAKE)" sco32v500net KTARGET=$${KTARGET:-$(@)} \
  6465.     "KFLAGS=-b elf -DSCO_OSR502 $(KFLAGS)"
  6466.  
  6467. #SCO OpenServer 5.0.4 (SCO UNIX 3.2v5.0.4) with SCO development tools.
  6468. #Like 5.0, but adds high serial speeds.  First POSIX-based SCO version.
  6469. #Note: the -O flag is deliberately omitted for /bin/cc (= /usr/ccs/bin/cc).
  6470. sco32v504:
  6471.     @echo Making C-Kermit $(CKVER) for SCO OpenServer Release 5.0.4...
  6472.     $(MAKE) xermit CC=$(CC) CC2=$(CC2) KTARGET=$${KTARGET:-$(@)} \
  6473.     "CFLAGS= -DDIRENT -DHDBUUCP -DSVR4 -DCK_SCOV5 -DCK_RTSCTS \
  6474.     -DSCO_OSR504 -b elf -DPOSIX \
  6475.     -DCK_CURSES -DCK_WREFRESH -DCK_NEWTERM -DSELECT -DSELECT_H \
  6476.     -DNOGETUSERSHELL -DNOLSTAT -DNOLINKBITS -DNOSYSLOG $(KFLAGS)" \
  6477.     "LIBS=-lcurses $(LIBS)" "LNKFLAGS=$(LNKFLAGS)"
  6478.  
  6479. #SCO OpenServer 5.0.4 with gcc, no networking.
  6480. sco32v504gcc:
  6481.     @echo Using gcc...
  6482.     $(MAKE) "MAKE=$(MAKE)" sco32v504 "CC=gcc" "CC2=gcc" \
  6483.     KTARGET=$${KTARGET:-$(@)} "KFLAGS= $(KFLAGS)"
  6484.  
  6485. #SCO OpenServer 5.0.4 with networking.
  6486. #SCO development tools (/bin/cc = /usr/ccs/bin/cc).
  6487. #Optimization deliberately suppressed.
  6488. sco32v504net:
  6489.     @echo Making C-Kermit $(CKVER) for SCO OpenServer Release 5.0.4...
  6490.     $(MAKE) xermit CC=$(CC) CC2=$(CC2) KTARGET=$${KTARGET:-$(@)} \
  6491.     "CFLAGS= -DDIRENT -DHDBUUCP -DSVR4 -DCK_SCOV5 -DCK_RTSCTS \
  6492.     -DCK_CURSES -DCK_WREFRESH -DCK_NEWTERM -DSELECT -DSELECT_H \
  6493.     -DNOGETUSERSHELL -DNOLSTAT -DNOLINKBITS -DTCPSOCKET \
  6494.     -b elf -DSCO_OSR504 -DPOSIX -DNO_DNS_SRV $(KFLAGS)" \
  6495.     "LIBS=-lcurses -lsocket $(LIBS)" "LNKFLAGS=$(LNKFLAGS)"
  6496.  
  6497. #SCO OpenServer 5.0.4 with networking, gcc.
  6498. sco32v504netgcc:
  6499.     @echo TCP/IP networking added - using gcc...
  6500.     @echo If gcc crashes on ckwart.c then build it by hand:
  6501.     @echo " gcc -o wart -DCK_SCOV5 ckwart.c"
  6502.     $(MAKE) "MAKE=$(MAKE)" sco32v500net "CC=gcc" "CC2=gcc" \
  6503.     KTARGET=$${KTARGET:-$(@)} "KFLAGS=-DSCO_OSR504 -DPOSIX $(KFLAGS)"
  6504.  
  6505. #SCO OpenServer 5.0.4 with networking, gcc, elf.
  6506. sco32v504netgccelf:
  6507.     @echo TCP/IP networking added - using gcc, dynamic elf library
  6508.     $(MAKE) "MAKE=$(MAKE)" sco32v500net "CC=gcc" "CC2=gcc"
  6509.     KTARGET=$${KTARGET:-$(@)} \
  6510.     "KFLAGS=-DSCO_OSR504 -DPOSIX -O3 -belf $(KFLAGS)" \
  6511.     LNKFLAGS="-belf"
  6512.  
  6513. #SCO OpenServer 5.0.5 (SCO UNIX 3.2v5.0.5) with SCO /bin/cc.
  6514. #Like 5.0, but adds high serial speeds.  First POSIX-based SCO version.
  6515. #You might have to add "LIBS=-ltinfo" (some do, some don't).
  6516. sco32v505:
  6517.     $(MAKE) "MAKE=$(MAKE)" sco32v500 KTARGET=$${KTARGET:-$(@)} \
  6518.     "KFLAGS=-DSCO_OSR505 -DNOSHADOW -b elf -DPOSIX $(KFLAGS)"
  6519.  
  6520. #SCO OpenServer 5.0.5 (SCO UNIX 3.2v5.0.5) with SCO UDK.
  6521. #This one can't see the high serial speeds and anything to do with modem
  6522. #signals doesn't work because UKD cc has its own alternative universe of
  6523. #header files.
  6524. sco32v505udk:
  6525.     $(MAKE) "MAKE=$(MAKE)" sco32v500 KTARGET=$${KTARGET:-$(@)} \
  6526.     "KFLAGS=-DSCO_OSR505 -DDCLTIMEVAL -DNOSHADOW -b elf -DPOSIX $(KFLAGS)"
  6527.  
  6528. #SCO OpenServer 5.0.5 with networking, SCO /bin/cc.
  6529. #See comments with sco32v505 targets.
  6530. sco32v505net:
  6531.     @echo TCP/IP networking added...
  6532.     $(MAKE) "MAKE=$(MAKE)" sco32v500net KTARGET=$${KTARGET:-$(@)} \
  6533.     "KFLAGS=-DSCO_OSR505 -DNOSHADOW -b elf -DPOSIX $(KFLAGS)"
  6534.  
  6535. #SCO OpenServer 5.0.5 with networking and OpenSSL, SCO /bin/cc.
  6536. #See comments with sco32v505 targets.
  6537. sco32v505net+ssl:
  6538.     @echo TCP/IP networking and OpenSSL added...
  6539.     $(MAKE) "MAKE=$(MAKE)" sco32v500net+ssl KTARGET=$${KTARGET:-$(@)} \
  6540.     "KFLAGS=-DSCO_OSR505 -DNOSHADOW -b elf -DPOSIX $(KFLAGS) " \
  6541.  
  6542. #SCO OpenServer 5.0.5 with networking, SCO UDK.
  6543. #See comments with above sco32v505 targets.
  6544. sco32v505udknet:
  6545.     @echo TCP/IP networking added...
  6546.     $(MAKE) "MAKE=$(MAKE)" sco32v500net KTARGET=$${KTARGET:-$(@)} \
  6547.     "KFLAGS=-DSCO_OSR505 -DDCLTIMEVAL -DNOSHADOW -b elf -DPOSIX $(KFLAGS)"
  6548.  
  6549. #SCO OpenServer 5.0.5 with gcc, no networking.
  6550. sco32v505gcc:
  6551.     @echo Using gcc...
  6552.     $(MAKE) "MAKE=$(MAKE)" sco32v500 "CC=gcc" "CC2=gcc" \
  6553.     KTARGET=$${KTARGET:-$(@)} \
  6554.     "KFLAGS=-DSCO_OSR505 -DPOSIX -funsigned-char $(KFLAGS)"
  6555.  
  6556. #SCO OpenServer 5.0.5 with gcc, no networking, no shadow passwords.
  6557. sco32v505xgcc:
  6558.     @echo Using gcc...
  6559.     $(MAKE) "MAKE=$(MAKE)" sco32v500 "CC=gcc" "CC2=gcc" \
  6560.     KTARGET=$${KTARGET:-$(@)} \
  6561.     "KFLAGS=-DSCO_OSR505 -DNOSHADOW -DPOSIX -funsigned-char $(KFLAGS)"
  6562.  
  6563. #SCO OpenServer 5.0.5 with networking, gcc.
  6564. sco32v505netgcc:
  6565.     @echo TCP/IP networking added - using gcc...
  6566.     @echo If gcc crashes on ckwart.c then build it by hand:
  6567.     @echo " gcc -o wart -DCK_SCOV5 ckwart.c"
  6568.     $(MAKE) "MAKE=$(MAKE)" sco32v500net "CC=gcc" "CC2=gcc" \
  6569.     KTARGET=$${KTARGET:-$(@)} \
  6570.     "KFLAGS=-DSCO_OSR505 -DNOSHADOW -DPOSIX -funsigned-char $(KFLAGS)"
  6571.  
  6572. #egcs is just like gcc but generates ELF by default.
  6573. #Or you can include -melf (not -belf) to force it.
  6574. sco32v505netegcs:
  6575.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=$(KFLAGS)" sco32v505netgcc \
  6576.     KTARGET=$${KTARGET:-$(@)}
  6577.  
  6578. #SCO OpenServer 5.0.5 with networking, gcc, elf.
  6579. sco32v505netgccelf:
  6580.     @echo TCP/IP networking added - using gcc, dynamic elf library
  6581.     $(MAKE) "MAKE=$(MAKE)" sco32v500net "CC=gcc" "CC2=gcc" \
  6582.     "KFLAGS=-DSCO_OSR505 -DPOSIX -funsigned-char -O3 -belf $(KFLAGS)" \
  6583.     KTARGET=$${KTARGET:-$(@)} LNKFLAGS="-belf"
  6584.  
  6585. #SCO OpenServer 5.0.6 with SCO /bin/cc.
  6586. # Add -DDCLTIMEVAL when building with UDK.
  6587. #Like 5.0.5.   IMPORTANT: Use sco32v506a target for 5.0.6a.
  6588. sco32v506:
  6589.     $(MAKE) "MAKE=$(MAKE)" sco32v500 KTARGET=$${KTARGET:-$(@)} \
  6590.     "KFLAGS=-DSCO_OSR505 -DSCO_OSR506 -b elf -DPOSIX $(KFLAGS)"
  6591.  
  6592. #SCO OpenServer 5.0.6 with networking, SCO /bin/cc.
  6593. # Add -DDCLTIMEVAL when building with UDK.
  6594. # IMPORTANT: Use sco32v506a target for 5.0.6a.
  6595. sco32v506net:
  6596.     @echo TCP/IP networking added...
  6597.     $(MAKE) "MAKE=$(MAKE)" sco32v500net KTARGET=$${KTARGET:-$(@)} \
  6598.     "KFLAGS=-DSCO_OSR505 -DSCO_OSR506 -b elf -DPOSIX $(KFLAGS)"
  6599.  
  6600. #SCO OpenServer 5.0.6a, no networking, SCO development tools.
  6601. #This one has patched sio drivers that, for the first time,
  6602. #actually handle modem signals correctly.
  6603. # Add -DDCLTIMEVAL when building with UDK.
  6604. sco32v506a:
  6605.     $(MAKE) "MAKE=$(MAKE)" sco32v500 KTARGET=$${KTARGET:-$(@)} \
  6606.     "KFLAGS=-DSCO_OSR505 -DSCO_OSR506 -DSCO_OSR506A -DNEEDMDMDEFS \
  6607.     -b elf -DPOSIX $(KFLAGS)"
  6608.  
  6609. #SCO OpenServer 5.0.6a with networking, SCO development tools.
  6610. # Add -DDCLTIMEVAL when building with UDK.
  6611. sco32v506anet:
  6612.     @echo TCP/IP networking added...
  6613.     $(MAKE) "MAKE=$(MAKE)" sco32v500net KTARGET=$${KTARGET:-$(@)} \
  6614.     "KFLAGS=-DSCO_OSR505 -DSCO_OSR506 -DSCO_OSR506A -DNEEDMDMDEFS \
  6615.     -b elf -DPOSIX $(KFLAGS)"
  6616.  
  6617. #SCO OpenServer 5.0.7, no networking, SCO development tools.
  6618. # Like 5.0.6a except for banner.
  6619. sco32v507:
  6620.     $(MAKE) "MAKE=$(MAKE)" sco32v500 KTARGET=$${KTARGET:-$(@)} \
  6621.     "KFLAGS=-DSCO_OSR505 -DSCO_OSR506 -DSCO_OSR507 -DNEEDMDMDEFS \
  6622.     -b elf -DPOSIX $(KFLAGS)"
  6623.  
  6624. #SCO OpenServer 5.0.7 with networking, SCO development tools.
  6625. sco32v507net:
  6626.     @echo TCP/IP networking added...
  6627.     $(MAKE) "MAKE=$(MAKE)" sco32v500net KTARGET=$${KTARGET:-$(@)} \
  6628.     "KFLAGS=-DSCO_OSR505 -DSCO_OSR506 -DSCO_OSR507 -DNEEDMDMDEFS \
  6629.     -b elf -DPOSIX $(KFLAGS)"
  6630.  
  6631. #Tandy 16/6000 with Xenix 3.0
  6632. #Add more -DNOxxx options to remove features if program won't load.
  6633. #Successful operation is a function of program size, physical memory,
  6634. #available swap space, etc.  The following stripped-down configuration
  6635. #seems to work on most Tandy 6000s.  NOTE: "-+" means allow long variable
  6636. #names, needed for C-Kermit 6.0 because some identifiers are not unique
  6637. #within the first six characters.
  6638. #C-Kermit 7.0 does not build here; "too many defines".
  6639. trs16:
  6640.     @echo 'Making C-Kermit $(CKVER) for Tandy 16/6000, Xenix 3.0...'
  6641.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  6642.     "CFLAGS = -+ -DATTSV -DTRS16 -DNOMKDIR -DDCLPOPEN -DCK_CURSES \
  6643.     -DNODEBUG -DNOTLOG -DNOHELP -DNOSCRIPT -DNOCSETS -DNOIKSD \
  6644.     -DNOREDIRECT -DNOSYSLOG -DNOPUTENV -DNOREALPATH -DNOLEARN \
  6645.     $(KFLAGS) -O" "LIBS= -lcurses -ltermcap" "LNKFLAGS = -+ -n -s"
  6646.  
  6647. #MINIX/2.0 32 Bit version for intel 386+ running the POSIX-compliant MINIX
  6648. # version 2.0 (The definition of fatal avoids a conflict with a symbol by
  6649. # the same name in the curses library.) It is impossible to compile with
  6650. # network support since Minix does not support Berkeley sockets.
  6651. # Note: use chmem liberally on the compiler passes, make, and the final
  6652. # kermit executable. (3 megabytes of memory for each is sufficient.)
  6653. # From Terry McConnell, Syracuse U, and Will Rose.  Will says:
  6654. # The stacks for make and some compiler passes needed to be increased
  6655. # with chmem as follows:
  6656. #   make 1MB
  6657. #   /usr/lib/em_cemcom.ansi 3MB
  6658. #   /usr/lib/em_opt 1MB
  6659. #   /usr/lib/i386/cg 1MB
  6660. #   /usr/lib/i386/as 1MB
  6661. # The compiler temporary directory was set to /usr/tmp via the TMPDIR
  6662. # environment variable; more than 1MB of temporary space was needed.
  6663. # Kermit itself needs at least 1MB of stack.
  6664. minix20:
  6665.     @echo 'Making C-Kermit $(CKVER) for MINIX 2.0/386...'
  6666.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} EXT=o \
  6667.     "CFLAGS=  -wo -DV7 -DMINIX2 -DMINIX -DSIG_V -D_POSIX_SOURCE \
  6668.     -DCKCPU=\\\"i-386\\\" -DNOIKSD -Dfatal=myfatal -DCK_CURSES -DNOLEARN \
  6669.     -DNOSYSLOG -DUSE_MEMCPY -DNOREALPATH $(KFLAGS)" "LIBS= -lcurses"
  6670.  
  6671. #MINIX/386 (PC Minix modified by Bruce Evans in Australia for 386 addressing)
  6672. # For MINIX 1.5+ (but < 2.0)
  6673. minix386:
  6674.     @echo 'Making C-Kermit $(CKVER) for MINIX/386...'
  6675.     @echo 'TOTALLY UNTESTED!'
  6676.     $(MAKE) wermit EXT=s KTARGET=$${KTARGET:-$(@)} \
  6677.     "CFLAGS= -DV7 -DMINIX -D_POSIX_SOURCE -DNOLEARN $(KFLAGS)"
  6678.  
  6679. #MINIX/386 Minix modified by Bruce Evans in Australia to use 386 addressing
  6680. minix386gcc:
  6681.     @echo 'Making C-Kermit $(CKVER) for MINIX/386 with gcc...'
  6682.     @echo 'TOTALLY UNTESTED!'
  6683.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC=gcc -g -O" "CC2=gcc -g" \
  6684.     "CFLAGS= -DV7 -DMINIX -D_POSIX_SOURCE -DNOLEARN $(KFLAGS)"
  6685.  
  6686. #MINIX - 68k version with ACK compiler.
  6687. # If you have trouble compiling or running wart, "touch wart".
  6688. # If it still doesn't work, "touch ckcpro.c".
  6689. # The version configured below has many features removed, including
  6690. # the TRANSMIT, MSEND, HELP, and SCRIPT commands, international
  6691. # character set support, and the entire script programming language.
  6692. # But it does have an interactive command parser.
  6693. # Make sure make(1) has (at least) 100000 chmemory!
  6694. # If you are using the Amsterdam C compiler, you might have to add "-D__ACK__".
  6695. minix68k:
  6696.     @echo 'Making C-Kermit $(CKVER) for MINIX 68k with ACK...
  6697.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  6698.     "CFLAGS= -DV7 -DMINIX -D_MINIX -D_POSIX_SOURCE -DNOLEARN \
  6699.     -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG \
  6700.     -DNOSCRIPT -DNOCSETS -DNOSPL $(KFLAGS) \
  6701.     -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t -DSIG_V"
  6702.  
  6703. #MINIX - 68k version with c68 compiler.
  6704. # If you have trouble compiling or running wart, "touch wart" or
  6705. # "touch ckcpro.c". Compiling ckudia.c (no -DNODIAL!) might fail. :-(
  6706. # Give c68 250000 bytes of stack+heap; make sure make(1) has at least
  6707. # 100000 chmemory.  On a 1MB Atari ST this means that the recursive
  6708. # call of make fails due to memory shortage.  Try "make -n minixc68 >makeit",
  6709. # followed by ". makeit".  Otherwise, as above.
  6710. minixc68:
  6711.     @echo 'Making C-Kermit $(CKVER) for MINIX 68k with c68...
  6712.     $(MAKE) wermit "CC= cc -c68" KTARGET=$${KTARGET:-$(@)} \
  6713.     "CFLAGS= -DV7 -DMINIX -D_MINIX -D_POSIX_SOURCE -DNOLEARN \
  6714.     -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG \
  6715.     -DNOSCRIPT -DNOCSETS -DNOSPL $(KFLAGS) \
  6716.     -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t -DSIG_V"
  6717.  
  6718. #MINIX - 68k version with c68 compiler.
  6719. #A variation on the above that was recently (Sep 95) reported to work.
  6720. minixc68a:
  6721.     @echo 'Making C-Kermit $(CKVER) for MINIX 68k with c68...
  6722.     $(MAKE) wermit "CC= cc -c68" KTARGET=$${KTARGET:-$(@)} \
  6723.     "CFLAGS= -DV7 -DMINIX -D_MINIX -D_POSIX_SOURCE \
  6724.     -DCK_ANSIC -DNODEBUG -DNOTLOG -DMINIDIAL -DEXTEN -DMYCURSES \
  6725.     -DNOSCRIPT -DNOCSETS -DNOSPL -DNOJC -DDIRENT -DNOLEARN \
  6726.     -DNOSETKEY -DNOESCSEQ $(KFLAGS) \
  6727.     -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t -DSIG_V"
  6728.  
  6729. #MIPS Computer Systems with UMIPS RISC/OS 4.52 = AT&T UNIX System V R3.0.
  6730. #Remove -DNOJC if job control can be safely used.
  6731. mips:
  6732.     @echo 'Making C-Kermit $(CKVER) for MIPS RISC/OS...'
  6733.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  6734.     "CFLAGS = -DMIPS -DDIRENT -DCK_POLL -DNOJC -DNOLEARN -DPID_T=int \
  6735.     -DGID_T=gid_t -DUID_T=uid_t -i -O1500 $(KFLAGS)"
  6736.  
  6737. #As above, but with TCP/IP and fullscreen support.
  6738. mipstcpc:
  6739.     @echo 'Making C-Kermit $(CKVER) for MIPS RISC/OS...'
  6740.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  6741.     "CFLAGS = -DMIPS -DDIRENT -DCK_POLL -DNOJC \
  6742.     -DTCPSOCKET -DCK_CURSES -I/usr/include/bsd \
  6743.     -DPID_T=int -DGID_T=gid_t -DUID_T=uid_t -i -O1500 $(KFLAGS)" \
  6744.     "LIBS = -lcurses -lbsd"
  6745.  
  6746. #Motorola Delta System V/68 R3, signal() is void rather than int.
  6747. #Uses dirent.h and Honey DanBer uucp.  Supports TCP/IP.
  6748. #After building, use "mcs -d" to reduce size of the executable program.
  6749. sv68r3:
  6750.     @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/68 R3...'
  6751.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  6752.     "CFLAGS = -DSVR3 -DSV68 -DDIRENT -DHDBUUCP -DNO_DNS_SRV -DTCPSOCKET \
  6753.     -DNOUNICODE -DNOLEARN $(KFLAGS) -O" "LNKFLAGS ="
  6754.  
  6755. #Motorola Delta System V/68 R3V5, signal() is void rather than int.
  6756. #Uses dirent.h and Honey DanBer UUCP.  Supports TCP/IP.
  6757. #After building, use "mcs -d" to reduce size of the executable program.
  6758. sv68r3v5:
  6759.     @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/68 R3V5'
  6760.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  6761.     "CFLAGS = -DSVR3 -DSV68 -DDIRENT -DHDBUUCP -DNO_DNS_SRV \
  6762.     -DTCPSOCKET -DINADDRX -DNOUNICODE -DFNFLOAT -DNOLEARN $(KFLAGS) -O" \
  6763.     "LNKFLAGS =" "LIBS = -linet -lm"
  6764.  
  6765. #Motorola MVME147 System V/68 R3 V5.1. Requires gcc 2.1 to compile.
  6766. #After building, use "mcs -d" to reduce size of the executable program.
  6767. sv68r3v51:
  6768.     @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/68 R3V5.1'
  6769.     $(MAKE) wermit "CC=gcc-delta" "CC2=gcc-delta" \
  6770.     KTARGET=$${KTARGET:-$(@)} \
  6771.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DNODEBUG -DNO_DNS_SRV -DNOLEARN \
  6772.     -DNOUNICODE -DFNFLOAT -DSV68 $(KFLAGS) -O2 -v -ftraditional" \
  6773.     "LNKFLAGS = -s -v" "LIBS = -lm881 -lm"
  6774.  
  6775. #Motorola MVME147 System V/68 R3V6. derived from Motorola Delta System R3V5.
  6776. #Checked on larger Motorola System V/68 R3V6 (with NSE Network Services Ext.)
  6777. #After building, use "strip" to reduce size of the executable program.
  6778. # "LIBS = -lnsl" removed in C-Kermit 6.1 - put back if needed.
  6779. # "LIBS = lm" added in 7.1/8.0 for floating-point math.
  6780. # ckuusr.c clobbers the optimizer.
  6781. sv68r3v6:
  6782.     @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/68 R3V6'
  6783.     $(MAKE) ckuusr.$(EXT) KTARGET=$${KTARGET:-$(@)} \
  6784.     "CFLAGS = -DSV68R3V6 -DDIRENT -DHDBUUCP -DNOLOGIN -DNOINITGROUPS \
  6785.     -DNOSYMLINK -DNOREDIRECT -DNOGFTIMER -DTCPSOCKET -DDCLGETCWD -DSV68 \
  6786.     -DNO_DNS_SRV -DNOUNICODE -DFNFLOAT -DSELECT $(KFLAGS)"
  6787.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  6788.     "CFLAGS = -DSV68R3V6 -DDIRENT -DHDBUUCP -DNOLOGIN -DNOINITGROUPS \
  6789.     -DNOSYMLINK -DNOREDIRECT -DNOGFTIMER -DTCPSOCKET -DDCLGETCWD -DSV68 \
  6790.     -DNO_DNS_SRV -DNOUNICODE -DFNFLOAT -DSELECT $(KFLAGS) -O" \
  6791.     "LNKFLAGS =" "LIBS = -lm"
  6792.  
  6793. #Motorola Delta System V/88 R32, signal() is void rather than int.
  6794. #Uses dirent.h and Honey DanBer uucp.  Needs <sys/utime.h> for setting
  6795. #file dates.  Supports TCP/IP.
  6796. #After building, use "mcs -d" to reduce size of the executable program.
  6797. sv88r32:
  6798.     @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/88 R32...'
  6799.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  6800.     "CFLAGS = -DSV88R32 -DDIRENT -DHDBUUCP -DTCPSOCKET \
  6801.     -DSYSUTIMEH -DCK_CURSES -DNOGETUSERSHELL -DGTODONEARG $(KFLAGS) -O" \
  6802.     "LIBS= -lcurses -lresolv" "LNKFLAGS = -s"
  6803.  
  6804. #Motorola Delta System V/88 R40.  Has <sys/termiox.h>, regular Berkeley
  6805. #sockets library, i.e. in.h and inet.h are not misplaced in sys (rather than
  6806. #netinet and arpa, respectively).  Uses ANSI C constructs, advisory file
  6807. #locking on devices, etc.  curses support added.  Reportedly, the
  6808. #/usr/include/sys/vnode.h file has a bug which must be fixed before this
  6809. #makefile entry can work correctly.  The "if DEBUG" directive at about line
  6810. #320 must be changed to "ifdef DEBUG" (Reportedly, this was fixed in
  6811. #in System V/88 R4.3).
  6812. #After building, use "mcs -d" to reduce size of the executable program.
  6813. sv88r40:
  6814.     @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/88 R40...'
  6815.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  6816.     "CFLAGS = -O -DSVR4 -DMOTSV88R4 -DDIRENT -DHDBUUCP -DSTERMIOX \
  6817.     -DTCPSOCKET -DCK_CURSES -DNOGETUSERSHELL -DGTODONEARG -DFNFLOAT \
  6818.     $(KFLAGS)" \
  6819.     "LIBS= -lsocket -lnsl -lcurses -lresolv -lm" "LNKFLAGS = -s"
  6820.  
  6821. #As above but without the floating-point math library.
  6822. sv88r40nm:
  6823.     @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/88 R40...'
  6824.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  6825.     "CFLAGS = -O -DSVR4 -DMOTSV88R4 -DDIRENT -DHDBUUCP -DSTERMIOX \
  6826.     -DTCPSOCKET -DCK_CURSES -DNOGETUSERSHELL -DGTODONEARG $(KFLAGS)" \
  6827.     "LIBS= -lsocket -lnsl -lcurses -lresolv" "LNKFLAGS = -s"
  6828.  
  6829. #As above but with floating-point math library support \ffp...() functions
  6830. #and S-Expressions.
  6831.  
  6832. #Olivetti X/OS R2.3, 3.x.
  6833. #NOTES:
  6834. # . If you build the executable on 2.x X/OS, it will also run on 3.x.
  6835. # . If you build it on 3.x X/OS, it will NOT run on 2.x.
  6836. # . Kermit can run with no privileges unless the uucp lines are protected,
  6837. #   in which case kermit must be owned by uucp with suid bit set:
  6838. #   chown uucp kermit ; chmod 4111 kermit.
  6839. xos23:
  6840.     @echo 'Making C-Kermit $(CKVER) for Olivetti X/OS...'
  6841.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  6842.     'CFLAGS=-OLM -DOXOS -DTCPSOCKET -DHDBUUCP $(KFLAGS)' \
  6843.     "LIBS=" "LNKFLAGS="
  6844.  
  6845. #As above, but with curses.
  6846. xos23c:
  6847.     @echo 'Making C-Kermit $(CKVER) for Olivetti X/OS with curses...'
  6848.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  6849.     'CFLAGS=-OLM -DOXOS -DTCPSOCKET -DHDBUUCP -DCK_CURSES $(KFLAGS)' \
  6850.     "LIBS=-lcurses" "LNKFLAGS="
  6851.  
  6852. ckuuid:
  6853.     @echo 'building C-Kermit $(CKVER) set-UID/set-GID test programs'
  6854.     $(CC) -DANYBSD -DSAVEDUID -o ckuuid1 ckuuid.c
  6855.     $(CC) -DANYBSD -o ckuuid2 ckuuid.c
  6856.     $(CC) -DANYBSD -DNOSETREU -o ckuuid3 ckuuid.c
  6857.     $(CC) -DANYBSD -DSETEUID -DNOSETREU -o ckuuid4 ckuuid.c
  6858.     $(CC) -o ckuuid5 ckuuid.c
  6859.     @echo 'Read the top of ckuuid.c for directions...for testing'
  6860.     @echo 'you must make these programs setuid and setgid'
  6861.  
  6862. ############################################################################
  6863. # A N T I Q U I T I E S
  6864. #
  6865. # The following are antique targets from C-Kermit 5A or earlier.  They have
  6866. # not been updated or tested in years.  Most of them will need recent features
  6867. # disabled, usually with some combination of -DNOUNICODE, -DNOIKSD, -DNOANSI,
  6868. # -DNOCKGHNLHOST, -DNO_DNS_SRV, -DNOREDIRECT, -DNOREALPATH, -DNOCURSES, etc.
  6869. # They are also missing the KTARGET=$${KTARGET:-$(@)} business.
  6870. # For details see ckuins.txt and ckccfg.txt.
  6871. #
  6872. ############################################################################
  6873.  
  6874. #Berkeley Unix 2.8, 2.9 for PDP-11s with I&D space, maybe also Ultrix-11???
  6875. #C-Kermit(5A) is simply too large (even turning off almost every feature
  6876. #available) to run without both I&D space plus overlays.  The old comment
  6877. #suggested running 'pcc' but that won't help.  Changing 'cc' to 'ckustr.sed'
  6878. #will cause a string extraction to be done, saving D space by moving strings
  6879. #to a file.
  6880. bsd29:
  6881.     @echo Making C-Kermit $(CKVER) for 2.8 or 2.9BSD.
  6882.     @echo Read the makefile if you have trouble with this...
  6883.     $(MAKE) ovwermit \
  6884.     "CFLAGS= -DBSD29 -DNODEBUG -DNOTLOG -DNOCSETS -DNOHELP \
  6885.     -DNOSCRIPT -DNOSPL -DNOXMIT -DNODIAL $(KFLAGS)" \
  6886.     "LNKFLAGS= -i -lndir" "CC= cc " "CC2= cc"
  6887.  
  6888. bsd210:
  6889.     @echo Please use ckubs2.mak to build C-Kermit $(CKVER) for 2.10BSD.
  6890.  
  6891. bsd211:
  6892.     @echo Please use ckubs2.mak to build C-Kermit $(CKVER) for 2.11BSD.
  6893.  
  6894. #Charles River Data Systems Universe with UNOS Version 9.2
  6895. crds:
  6896.     @echo 'Making C-Kermit $(CKVER) for Charles River Data Systems...'
  6897.     make xermit \
  6898.     "CFLAGS = -DATTSV -DNOANSI -DDIRENT -DLONGFN -DTCPSOCKET \
  6899.     -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DNOSETREU \
  6900.     -Dsuspend=ksuspend $(KFLAGS) -O" "LNKFLAGS ="
  6901.  
  6902. #Microport SV/AT for IBM PC/AT 286 and clones, System V R2.
  6903. #The -O flag may fail on some modules (like ckuus2.c), in which case you
  6904. #should compile them by hand, omitting the -O.  If you get "hash table
  6905. #overflow", try adding -DNODEBUG.
  6906. #Also, reportedly this compiles better with gcc than with cc.
  6907. mpsysv:
  6908.     @echo 'Making C-Kermit $(CKVER) for Microport SV/AT 286...'
  6909.     $(MAKE) wermit \
  6910.     "CFLAGS= -DATTSV -DNOLEARN $(KFLAGS) -O -Ml" "LNKFLAGS = -Ml"
  6911.  
  6912. #Microsoft "Xenix/286" e.g. for IBM PC/AT
  6913. xenix:
  6914.     @echo 'Making C-Kermit $(CKVER) for Xenix/286'
  6915.     $(MAKE) wermit \
  6916.     "CFLAGS= -DXENIX -DNOFILEH -DNOLEARN $(KFLAGS) -Dunix -F 3000 -i" \
  6917.     "LNKFLAGS = -F 3000 -i"
  6918.  
  6919. #PC/IX, Interactive Corp System III for IBM PC/XT
  6920. pcix:
  6921.     @echo 'Making C-Kermit $(CKVER) for PC/IX...'
  6922.     $(MAKE) wermit \
  6923.     "CFLAGS= -DPCIX -DISIII -DNOLEARN $(KFLAGS) \
  6924.     -Dsdata=sdatax -O -i" "LNKFLAGS = -i"
  6925.  
  6926. #Integrated Solutions Inc V8S VME 68020
  6927. isi:
  6928.     @echo Making C-Kermit $(CKVER) for 4.2BSD on ISI...
  6929.     $(MAKE) wermit "CC = cc" \
  6930.     "CFLAGS= -DBSD4 -DTCPSOCKET -DINADDRX -DDCLPOPEN -DDEBUG -DNOSETREU \
  6931.     -DCK_CURSES -DNOLEARN $(KFLAGS)" "LIBS = -lcurses -ltermcap"
  6932.  
  6933. #Interactive Corp version of AT&T System III
  6934. #is3: (very old, probably not sufficient for 5A or later)
  6935. #    @echo 'Making C-Kermit $(CKVER) for Interactive System III...'
  6936. #    make wermit "CFLAGS = -DISIII -Ddata=datax -O -i" "LNKFLAGS = -i"
  6937. #The following should work, use it if you don't have gcc.
  6938. #Use is3gcc if you have gcc.
  6939. is3:
  6940.     @echo 'Making C-Kermit $(CKVER) for Interactive System III...'
  6941.     $(MAKE) wermit \
  6942.     "CFLAGS= -DISIII $(KFLAGS) -Ddata=datax -DNAP -DHDBUUCP
  6943.     -DLOCK_DIR=\"/usr/spool/uucp\" -DSIGTYP=void -O -i" "LNKFLAGS = -i"
  6944.  
  6945. #Interactive UNIX System V R3, no network support.  Uses <dirent.h> and Honey
  6946. #DanBer UUCP.  If this entry does not compile correctly, try any or all of the
  6947. #following.  These suggestions also apply more or less to the other is5r3xxx
  6948. #entries that follow this one.
  6949. # . Remove the UID_T and GID_T definitions, or change them as required.
  6950. # . Change -DDIRENT to -DSDIRENT.
  6951. # . Add -DSIGTYP=void.
  6952. # . Remove -g from LNKFLAGS.
  6953. # . Add -DNOANSI to remove compiler complaints about ANSI C constructions
  6954. # . Add other -DNOxxx's to save space (e.g. -DNOCSETS)
  6955. # See the next few makefile entries for related examples.
  6956. # Also see sys5r32is for making a portable i386 SVR3 binary.
  6957. is5r3:
  6958.     @echo 'Making C-Kermit $(CKVER) for Interactive 386/ix or later...'
  6959.     @echo 'If this does not work please read the makefile entry.'
  6960.     $(MAKE) wermit \
  6961.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -g -DNOCSETS -DNOREALPATH \
  6962.     -DUID_T=ushort -DGID_T=ushort -DI386IX $(KFLAGS)" \
  6963.     "LNKFLAGS = -g"
  6964.  
  6965. #Interactive Corp System System V R3 with gcc
  6966. is3gcc:
  6967.     @echo 'Making C-Kermit $(CKVER) for Interactive System V R3 / gcc...'
  6968.     $(MAKE) wermit CC=gcc CC2=gcc \
  6969.     'CFLAGS = -D_SYSV3 -DISIII -Ddata=datax -DNAP -DHDBUUCP -DNOREALPATH \
  6970.     -DLOCK_DIR=\"/usr/spool/uucp\" -DSIGTYP=void -O' "LNKFLAGS ="
  6971.  
  6972. #Interactive UNIX System V R3, POSIX variant.  Untested.
  6973. #Uses dirent.h and Honey DanBer uucp.  Read comments in is5r3 entry.
  6974. is5r3p:
  6975.     @echo 'Making C-Kermit $(CKVER) for Interactive 386/ix or later...'
  6976.     $(MAKE) wermit \
  6977.     "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -g -DNOCSETS -DNOREALPATH \
  6978.     -DI386IX -DPOSIX $(KFLAGS)" "LNKFLAGS=" "LIBS=-lcposix"
  6979.  
  6980. #Interactive UNIX SVR3 2.2.1, job control, curses, no net, gcc.
  6981. is5r3gcc:
  6982.     $(MAKE) wermit CC=gcc CC2=gcc \
  6983.     "CFLAGS=-g -posix -DSVR3 -DDIRENT -DNOREALPATH \
  6984.     -DHDBUUCP -O -DNOCSETS -DI386IX -DSVR3JC -DCK_CURSES \
  6985.     $(KFLAGS)" LNKFLAGS="-posix" LIBS="-lcurses -lc_s"
  6986.  
  6987. #Interactive UNIX System V R3 with TCP/IP network support.
  6988. #Needs -linet for net functions.  signal() is void rather than int.
  6989. #Uses dirent.h and Honey DanBer uucp. Read comments in is5r3 entry.
  6990. #Also see is5r3net2 if you have trouble with this entry.
  6991. is5r3net:
  6992.     @echo 'Making C-Kermit $(CKVER) for Interactive 386/ix...'
  6993.     @echo 'If this does not work please read the makefile entry.'
  6994.     $(MAKE) wermit CC="$(CC)" CC2="$(CC2)" \
  6995.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DTCPSOCKET -DNOREALPATH \
  6996.     -DI386IX $(KFLAGS) -O" "LIBS = -linet"
  6997.  
  6998. is5r3netgcc:
  6999.     $(MAKE) is5r3net CC=gcc CC2=gcc
  7000.  
  7001. #Interactive UNIX System V R3, no job control, signal() void rather than int.
  7002. #Uses dirent.h and Honey DanBer uucp.  Needs -linet for net functions.
  7003. #Read comments in is5r3 entry.  Use this entry if is5r3net fails.
  7004. #Saves some space by stripping (-s) and using shared library (-lc_s).
  7005. is5r3net2:
  7006.     @echo 'Making C-Kermit $(CKVER) for Interactive 386/ix...'
  7007.     $(MAKE) wermit \
  7008.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DTCPSOCKET -DNOJC -DNOREALPATH \
  7009.     -DSIGTYP=void -DNOANSI -DI386IX $(KFLAGS) -O" \
  7010.     "LNKFLAGS= -s" "LIBS = -linet -lc_s"
  7011.  
  7012. #Interactive UNIX System V R3 (version 2.2 or later) with job control & curses.
  7013. #Uses dirent.h and Honey DanBer UUCP.
  7014. is5r3jc:
  7015.     @echo 'Making C-Kermit $(CKVER) for Interactive Unix 2.2 or later...'
  7016.     $(MAKE) wermit CC="$(CC)" CC2="$(CC2)" \
  7017.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -O -DNOCSETS -DNOREALPATH \
  7018.     -DUID_T=ushort -DGID_T=ushort -DI386IX -DSVR3JC -DCK_CURSES \
  7019.     -DPOSIX_JC -DCK_REDIR -DCK_POLL -DDCLGETCWD \
  7020.     $(KFLAGS)" "LIBS=-lcurses -lc_s -linet"
  7021.  
  7022. is5r3jcgcc:
  7023.     $(MAKE) is5r3jc CC="gcc -DCK_ANSILIBS -DDCGPWNAM -O4" CC2=gcc \
  7024.     KFLAGS="$(KFLAGS)" LNKFLAGS="$(LNKFLAGS)"
  7025.  
  7026. #Sunsoft/Interactive UNIX System V R3 (version 2.2 or later)
  7027. #with job control, curses, and TCP/IP networking.
  7028. #Uses dirent.h and Honey DanBer UUCP.
  7029. is5r3netjc:
  7030.     @echo 'Making C-Kermit $(CKVER) for Interactive Unix 2.2 or later...'
  7031.     $(MAKE) wermit CC="$(CC)" CC2="$(CC2)" \
  7032.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -O -DNOCSETS -DNOREALPATH \
  7033.     -DUID_T=ushort -DGID_T=ushort -DI386IX -DSVR3JC -DCK_CURSES \
  7034.     -DPOSIX_JC -DCK_REDIR -DTCPSOCKET -DSELECT \
  7035.     $(KFLAGS)" "LIBS=-linet -lcurses -lc_s"
  7036.  
  7037. is5r3netjcgcc:
  7038.     $(MAKE) is5r3netjc CC="gcc -DCK_ANSILIBS -DDCGPWNAM -O4" CC2=gcc \
  7039.     KFLAGS="$(KFLAGS)" LNKFLAGS="$(LNKFLAGS)"
  7040.  
  7041. #Masscomp System III
  7042. rtu:
  7043.     @echo 'Making C-Kermit $(CKVER) for Masscomp RTU System III...'
  7044.     $(MAKE) wermit \
  7045.     "CFLAGS= -UFIONREAD -DATTSV $(KFLAGS) -O" "LNKFLAGS =" "LIBS= -ljobs"
  7046.  
  7047. #Masscomp/Concurrent RTU 4.0 or later, Berkeley environment.
  7048. #Includes <ndir.h> = /usr/include/ndir.h
  7049. #Note "LIBS = -lndir" might not be necessary because of "ucb make".
  7050. rtubsd:
  7051.     @echo 'Making C-Kermit $(CKVER) for Masscomp RTU 4.1A...'
  7052.     ucb make wermit \
  7053.     "CFLAGS= -DBSD4 -DRTU -DNDIR -DHDBUUCP -DTCPSOCKET $(KFLAGS)" \
  7054.     "LIBS = -lndir"
  7055.  
  7056. #Masscomp/Concurrent RTU 4.0 or later, same as above,
  7057. #Includes "usr/lib/ndir.h"
  7058. #Note "LIBS = -lndir" might not be necessary because of "ucb make".
  7059. rtubsd2:
  7060.     @echo 'Making C-Kermit $(CKVER) for Masscomp RTU 4.1A...'
  7061.     ucb make wermit \
  7062.     "CFLAGS= -DBSD4 -DRTU -DXNDIR -DHDBUUCP $(KFLAGS)" \
  7063.     "LIBS = -lndir"
  7064.  
  7065. #Masscomp/Concurrent RTU 4.0 or later, same as above,
  7066. #Includes <sys/ndir.h>
  7067. #Note "LIBS = -lndir" might not be necessary because of "ucb make".
  7068. rtubsd3:
  7069.     @echo 'Making C-Kermit $(CKVER) for Masscomp RTU 4.x BSD...'
  7070.     ucb make wermit "CFLAGS= -DBSD4 -DRTU -DHDBUUCP $(KFLAGS)" \
  7071.     "LIBS = -lndir"
  7072.  
  7073. #Masscomp/Concurrent RTU 4.0 or later, System V R2, using <dirent.h>.
  7074. #In case of problems, add back the -DRTU switch.
  7075. #In case -DTCPSOCKET gives trouble, remove it.
  7076. rtus5:
  7077.     @echo 'Making C-Kermit $(CKVER) for Masscomp RTU 4.x...'
  7078.     $(MAKE) wermit \
  7079.     "CFLAGS= -DATTSV -DHDBUUCP -DDIRENT -DTCPSOCKET $(KFLAGS)"
  7080.  
  7081. #Masscomp/Concurrent RTU 4.x, System V R3, using <dirent.h>.
  7082. #Use this one if rtus5 gives warnings about pointer type mismatches.
  7083. #In case of problems, add back the -DRTU switch.
  7084. rtus5r3:
  7085.     @echo 'Making C-Kermit $(CKVER) for Masscomp RTU Sys V R3...'
  7086.     $(MAKE) wermit "CFLAGS= -DSVR3 -DHDBUUCP -DDIRENT $(KFLAGS)"
  7087.  
  7088. #DEC Pro-3xx with Pro/Venix V1.0 or V1.1
  7089. # Requires code-mapping on non-I&D-space 11/23 processor, plus some
  7090. # fiddling to get interrupt targets into resident code section.
  7091. # This almost certainly doesn't work any more.
  7092. provx1:
  7093.     @echo 'Making C-Kermit $(CKVER) for DEC Pro-3xx, Pro/Venix 1.x...'
  7094.     $(MAKE) wart "CFLAGS= -DPROVX1 $(KFLAGS)" "LNKFLAGS= "
  7095.     $(MAKE) wermit "CFLAGS = -DPROVX1 -DNOFILEH -md780" \
  7096.         "LNKFLAGS= -u _sleep -lc -md780"
  7097.  
  7098. #Nixdorf Targon/31.
  7099. #AT&T UNIX System V R3, signal() is void rather than int.
  7100. #Uses dirent.h without Honey DanBer uucp.
  7101. t31tos40x:
  7102.     @echo 'Making C-Kermit $(CKVER) for Targon/31 with TOS 4.0.xx...'
  7103.         $(MAKE) wermit \
  7104.         "CFLAGS= -DSVR3 -DDIRENT $(KFLAGS) -O" \
  7105.         "LNKFLAGS="
  7106.  
  7107. #NCR Tower 1632, OS 1.02
  7108. tower1:
  7109.     @echo 'Making C-Kermit $(CKVER) for NCR Tower 1632, OS 1.02...'
  7110.     $(MAKE) wermit "CFLAGS= -DTOWER1 $(KFLAGS)"
  7111.  
  7112. #NCR Tower 32, OS Release 1.xx.xx
  7113. tower32-1:
  7114.     @echo 'Making C-Kermit $(CKVER) for NCR Tower 32 Rel 1 System V R2...'
  7115.     @echo 'Add KFLAGS=-DISDIRBUG if you get errors about S_ISREG/S_ISDIR.'
  7116.     $(MAKE) wermit \
  7117.     "CFLAGS = -DATTSV $(KFLAGS) -O" "LNKFLAGS = -n"
  7118.  
  7119. #NCR Tower 32, OS Release 2.xx.xx
  7120. tower32-2:
  7121.     @echo 'Making C-Kermit $(CKVER) for NCR Tower 32 Rel 2 System V R2...'
  7122.     $(MAKE) wermit \
  7123.     "CFLAGS = -DATTSV -DHDBUUCP $(KFLAGS) -O2" \
  7124.     "LNKFLAGS = -n"
  7125.  
  7126. #NCR Tower 32, OS Releases based on System V R3
  7127. #Don't add -DNAP (doesn't work right) or -DRDCHK (not available in libc).
  7128. tower32:
  7129.     @echo 'Making C-Kermit $(CKVER) for NCR Tower 32 System V R3...'
  7130.     $(MAKE) wermit \
  7131.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DNOSYSIOCTLH $(KFLAGS) \
  7132.     -DUID_T=ushort -DGID_T=ushort -O1"
  7133.  
  7134. #NCR Tower 32, OS Releases based on System V R3
  7135. tower32g:
  7136.     @echo 'Making C-Kermit $(CKVER) for NCR Tower 32 System V R3, gcc...'
  7137.     $(MAKE) wermit "CC = gcc" \
  7138.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DNOSYSIOCTLH $(KFLAGS) \
  7139.     DUID_T=ushort -DGID_T=ushort -O -fstrength-reduce -fomit-frame-pointer"
  7140.  
  7141. #Fortune 32:16, For:Pro 1.8 (mostly like 4.1bsd)
  7142. ft18:
  7143.     @echo 'Making C-Kermit $(CKVER) for Fortune 32:16 For:Pro 1.8...'
  7144.     $(MAKE) wermit \
  7145.     "CFLAGS= -DNODEBUG -DBSD4 -DFT18 -DNOFILEH $(KFLAGS) \
  7146.     -DPID_T=short"
  7147.  
  7148. #Fortune 32:16, For:Pro 2.1 (mostly like 4.1bsd).
  7149. #The modules that break the optimizer are compiled separately.
  7150. ft21:
  7151.     @echo 'Making C-Kermit $(CKVER) for Fortune 32:16 For:Pro 2.1...'
  7152.     $(MAKE) ckuusx.$(EXT) "CFLAGS= -DNODEBUG -DBSD4 -DFT21 -DNOFILEH \
  7153.     -SYM 800  -DCK_CURSES $(KFLAGS) -DPID_T=short" \
  7154.     "LNKFLAGS= -n -s" "LIBS= -lcurses -ltermcap -lv -lnet"
  7155.     $(MAKE) ckuxla.$(EXT) "CFLAGS= -DNODEBUG -DBSD4 -DFT21 -DNOFILEH \
  7156.     -SYM 800  -DCK_CURSES $(KFLAGS) -DPID_T=short" \
  7157.     "LNKFLAGS= -n -s" "LIBS= -lcurses -ltermcap -lv -lnet"
  7158.     $(MAKE) ckudia.$(EXT) "CFLAGS= -DNODEBUG -DBSD4 -DFT21 -DNOFILEH \
  7159.     -SYM 800  -DCK_CURSES $(KFLAGS) -DPID_T=short" \
  7160.     "LNKFLAGS= -n -s" "LIBS= -lcurses -ltermcap -lv -lnet"
  7161.     $(MAKE) wermit \
  7162.     "CFLAGS= -O -DNODEBUG -DBSD4 -DFT21 -DNOFILEH -SYM 800 \
  7163.     -DCK_CURSES $(KFLAGS) -DPID_T=short" \
  7164.     "LNKFLAGS= -n -s" "LIBS= -lcurses -ltermcap -lv -lnet"
  7165.  
  7166. #Valid Scaldstar
  7167. #Berkeleyish, but need to change some variable names.
  7168. valid:
  7169.     @echo 'Making C-Kermit $(CKVER) for Valid Scaldstar...'
  7170.     $(MAKE) wermit \
  7171.     "CFLAGS= -DBSD4 -DNODEBUG -DNOTLOG -Dcc=ccx -DFREAD=1 $(KFLAGS)"
  7172.  
  7173. #IBM IX/370 on IBM 370 Series mainframes
  7174. #Mostly like sys3, but should buffer packets.
  7175. ix370:
  7176.     @echo 'Making C-Kermit $(CKVER) for IBM IX/370...'
  7177.     $(MAKE) wermit "CFLAGS = -DIX370 -DATTSV $(KFLAGS) -i -O" \
  7178.     "LNKFLAGS = -i"
  7179.  
  7180. #Amdahl UTS 2.4 on IBM 370 series compatible mainframes.
  7181. #Mostly like V7, but can't do initrawq() buffer peeking.
  7182. uts24:
  7183.     @echo 'Making C-Kermit $(CKVER) for Amdahl UTS 2.4...'
  7184.     $(MAKE) wermit "CFLAGS=-DV7 -DPROCNAME=\\\"$(PROC)\\\" \
  7185.     -DUTS24 -DBOOTNAME=\\\"$(BOOTFILE)\\\" -DNPROCNAME=\\\"$(NPROC)\\\" \
  7186.     -DNPTYPE=$(NPTYPE) $(DIRECT) $(KFLAGS)"
  7187.  
  7188. #Amdahl UTSV UNIX System V = System V R2 or earlier.
  7189. utsv:
  7190.     @echo 'Making C-Kermit $(CKVER) for Amdahl UTSV...'
  7191.     $(MAKE) wermit \
  7192.     "CFLAGS = -DUTSV $(KFLAGS) -i -O" "LNKFLAGS = -i"
  7193.  
  7194. #Amdahl UTSV UNIX System V = System V R2 or earlier, with TCP sockets library.
  7195. utsvtcp:
  7196.     @echo 'Making C-Kermit $(CKVER) for Amdahl UTSV w/tcp...'
  7197.     $(MAKE) wermit "CFLAGS = \
  7198.     -DTCPSOCKET -DUTSV $(KFLAGS) -i -O" "LNKFLAGS = -i" \
  7199.     "LIBS = -lsocket"
  7200.  
  7201. #BBN C/70 with IOS 2.0
  7202. #Mostly Berkeley-like, but with some ATTisms
  7203. c70:
  7204.     @echo 'Making C-Kermit $(CKVER) for BBN C/70 IOS 2.0...'
  7205.     $(MAKE) wermit "CFLAGS= -DBSD4 -DC70 $(KFLAGS)"
  7206.  
  7207. #Zilog ZEUS 3.21
  7208. zilog:
  7209.     @echo 'Making C-Kermit $(CKVER) for Zilog Zeus 3.21...'
  7210.     $(MAKE) wermit \
  7211.     "CFLAGS = -DATTSV -DZILOG -DNODEBUG $(KFLAGS) -i -O" \
  7212.     "LNKFLAGS = -i -lpw"
  7213.  
  7214. #Whitechapel MG-1 Genix 1.3
  7215. white:
  7216.     @echo 'Making C-Kermit $(CKVER) for Whitechapel MG-1 Genix 1.3...'
  7217.     @touch ckcpro.c
  7218.     $(MAKE) wermit "CFLAGS= -DBSD4 -Dzkself()=0  $(KFLAGS)"
  7219.  
  7220. #Pixel 1000
  7221. pixel:
  7222.     @echo 'Making C-Kermit $(CKVER) for Pixel 1000...'
  7223.     $(MAKE) wermit "CFLAGS= -DBSD4 -Dzkself()=0 $(KFLAGS)"
  7224.  
  7225. ptx:
  7226.     $(MAKE) "MAKE=$(MAKE)" dynixptx12
  7227.  
  7228. #CDC VX/VE 5.2.1
  7229. vxve:
  7230.     @echo 'Making C-Kermit $(CKVER) for CDC VX/VE 5.2.1...'
  7231.     $(MAKE) wermit \
  7232.     "CFLAGS = -DATTSV -DVXVE -DNODEBUG -DNOTLOG $(KFLAGS) -i -O" \
  7233.     "LNKFLAGS = -i"
  7234.  
  7235. #DIAB DS90 or LUXOR ABC-9000 with pre-5.2 DNIX.  Sys V with nap() and rdchk().
  7236. # nd = no opendir(), readdir(), closedir(), etc.
  7237. # Some of the modules fail to compile with -O.
  7238. dnixnd:
  7239.     @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with very old DNIX 5.2.'
  7240.     $(MAKE) wermit \
  7241.     "CFLAGS = -DATTSV -DNAP -DRDCHK -DDCLPOPEN \
  7242.     -U__STDC__ $(KFLAGS)"
  7243.  
  7244. #DIAB DS90 with DNIX 5.2.  Sys V with nap() and rdchk().
  7245. # This one has opendir(), readdir(), closedir(), etc.
  7246. # Some of the modules fail to compile with -O.
  7247. dnix:
  7248.     @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with old DNIX 5.2...'
  7249.     $(MAKE) wermit \
  7250.     "CFLAGS = -DATTSV -DNAP -DRDCHK -DDIRENT  \
  7251.     -U__STDC__ $(KFLAGS)"
  7252.  
  7253. #DIAB DS90 with DNIX 5.2.  Sys V with nap() and rdchk().
  7254. # As above, but with curses and TCP/IP.
  7255. # You might get complaints about redefinition of O_RDONLY, etc, because
  7256. # of bugs in the DNIX header files, which can be fixed by adding #ifndef...
  7257. # around the offending definitions in the header files.
  7258. dnixnetc:
  7259.     @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with old DNIX 5.2...'
  7260.     $(MAKE) wermit \
  7261.     "CFLAGS = -DATTSV -DNAP -DRDCHK -DDIRENT  \
  7262.     -DTCPSOCKET -DCK_CURSES -I/usr/include/bsd -U__STDC__ $(KFLAGS)" \
  7263.     "LIBS = -ln -lcurses"
  7264.  
  7265. #DIAB DS90 with DNIX 5.3 or later, with HDB UUCP, nap() and rdchk().
  7266. dnix5r3:
  7267.     @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with DNIX 5.3...'
  7268.     @echo 'with Honey DanBer UUCP'
  7269.     $(MAKE) wermit \
  7270.     "CFLAGS = -DSVR3 -DHDBUUCP -DNAP -DRDCHK -DDIRENT \
  7271.     -DCK_CURSES -DRENAME $(KFLAGS) -O" "LIBS= -lcurses"
  7272.  
  7273. #DIAB DS90 with DNIX 5.3 or later, with HDB UUCP, nap() and rdchk() + TCP/IP
  7274. dnix5r3net:
  7275.     @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with DNIX 5.3...'
  7276.     @echo 'with Honey DanBer UUCP and TCP/IP'
  7277.     $(MAKE) wermit \
  7278.     "CFLAGS = -DSVR3 -DHDBUUCP -DNAP -DRDCHK -DDIRENT \
  7279.     -DTCPSOCKET -DCK_CURSES -DRENAME $(KFLAGS) -O \
  7280.     -I/usr/include/bsd" "LIBS = -ln -lcurses"
  7281.  
  7282. #DIAB DS90 with DNIX 5.3 2.2 or later, with HDB UUCP, nap() and rdchk(),
  7283. #ANSI C compilation and libraries.
  7284. #Note that for DNIX 5.3 2.2 you have to correct a bug in /usr/include/stdlib.h:
  7285. #change "extern    void free(char *str);"
  7286. #to     "extern void free(void *str);"
  7287. #NOTE: This bug is reportedly fixed in DNIX 5.3 2.2.1.
  7288. #Should you get fatal errors caused by harmless pointer-type mismatches,
  7289. #like between signed and unsigned char, just remove -X7.
  7290. dnix5r3ansi:
  7291.     @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with DNIX 5.3...'
  7292.     @echo 'with ANSI C Honey DanBer UUCP'
  7293.     $(MAKE) wermit \
  7294.     "CFLAGS = -DSVR3 -DDIAB -DHDBUUCP -DNAP -DRDCHK -DDIRENT \
  7295.     -DCK_ANSILIBS -DCK_CURSES -DRENAME -O -X7 -X9 $(KFLAGS)" \
  7296.     "LIBS= -lcurses"
  7297.  
  7298. #DIAB DS90 with DNIX 5.3 2.2 or later, with HDB UUCP, nap() and rdchk(),
  7299. # + TCP/IP, ANSI C compilation and libraries.
  7300. #Should you get fatal errors caused by harmless pointer-type mismatches,
  7301. #like between signed and unsigned char, just remove -X7.
  7302. dnix5r3ansinet:
  7303.     @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with DNIX 5.3...'
  7304.     @echo 'with ANSI C Honey DanBer UUCP'
  7305.     $(MAKE) wermit \
  7306.     "CFLAGS = -DSVR3 -DDIAB -DHDBUUCP -DNAP -DRDCHK -DDIRENT \
  7307.     -DTCPSOCKET -DCK_ANSILIBS -DCK_CURSES -DRENAME -O -X7 -X9 $(KFLAGS) \
  7308.     -I/usr/include/bsd" "LIBS= -ln -lcurses"
  7309.  
  7310. # QNX 4.21 and above, 32-bit version, Watcom C32 10.6, fully configured,
  7311. # except no job control because QNX 4.x does not support it.  New NCURSES
  7312. # library used instead of CURSES.
  7313. #
  7314. # -Oatx optimizes to favor speed over size: loop optimization, inline fn's.
  7315. # -Os favors size over speed.  Saves 30-40K out of about 1.75M.
  7316. # -3r = generate 386 code with register-based arg passing.
  7317. # -3s = generate 386 code with stack-based arg passing.
  7318. # -ms = separate code & data 4GB segments (32-bit builds only).
  7319. # -mf = flat memory model code+data in one 4GB segment (ditto).
  7320. # -zc = place literal strings in code segment.
  7321. # -N4M = Big stack (increase the digit upon SIGSEGVs at runtime).
  7322. # chars are unsigned by default (-j makes them signed by default).
  7323. # -NOUUCP is included because QNX doesn't use it.
  7324. # Add these to the end if you like but they dump core on my QNX 4.25 system:
  7325. #
  7326. #    @wermit -h >use.qnx
  7327. #    @usemsg wermit use.qnx
  7328. #    @rm use.qnx
  7329. #
  7330. # If you get warnings about HEADER or C_IN add -DNO_DNS_SRV.
  7331. qnx32:
  7332.     @echo 'Making C-Kermit $(CKVER) for QNX 4.2x, 32-bit...'
  7333.     $(MAKE) xermit \
  7334.     "LNKFLAGS = -N4M -3r" \
  7335.     "CFLAGS = -ms -3r -DQNX -DTCPSOCKET -DCK_CURSES -DNOGETUSERSHELL \
  7336.     -DCK_WREFRESH -DCK_REDIR -DSELECT -DSELECT_H -DCK_RTSCTS -DNOJC \
  7337.     -DNOINITGROUPS -DNOUUCP -DCK_ANSIC -DPID_T=pid_t -Oatx -zc $(KFLAGS)" \
  7338.     "LIBS= -lsocket -lncurses -ltermcap"
  7339.  
  7340. # As above but no networking since some QNX systems do not have TCP/IP
  7341. # installed, or the TCP/IP developers kit, which includes all the needed
  7342. # header files.  This entry has not been tested on a QNX system that, in
  7343. # fact, does not have TCP/IP installed; some adjustments might be necessary,
  7344. # in particular regarding the use of select(): is -lsocket needed, can we
  7345. # get the needed definitions from non-TCP/IP header files (FD_SET, etc)?
  7346. qnx32nonet:
  7347.     @echo 'Making C-Kermit $(CKVER) for QNX 4.2x, 32-bit, no net...'
  7348.     $(MAKE) xermit \
  7349.     "LNKFLAGS = -N4M -3r" \
  7350.     "CFLAGS = -3r -ms -DQNX -DNONET -DNOIKSD -DCK_CURSES \
  7351.     -DCK_WREFRESH -DCK_REDIR -DSELECT -DSELECT_H -DCK_RTSCTS -DNOJC \
  7352.     -DNOUUCP -DCK_ANSIC -DPID_T=pid_t -Oatx -zc $(KFLAGS)" \
  7353.     "LIBS= -lsocket -lncurses -ltermcap"
  7354.     @wermit -h >use.qnx
  7355.     @usemsg wermit use.qnx
  7356.     @rm use.qnx
  7357.  
  7358. # Synonym for qnx32.
  7359. qnx:
  7360.     $(MAKE) qnx32 "KFLAGS=$(KFLAGS)"
  7361.  
  7362. # QNX 4.21 and above, 16-bit version, Watcom C 8.5 - and higher on i286 PCs
  7363. # and above.
  7364. #
  7365. #    IMPORTANT: Do not use Watcom C 10.6!!!
  7366. #    If you have it installed, add "-v9.52 to CFLAGS"
  7367. #
  7368. # NOTE: QNX 4.23 onward does not work on 286's anyway.
  7369. # Stacksize 26000, objects larger than 100 bytes in their own segments,
  7370. # string constants to the codesegment, etc.  Fully configured except job ctrl.
  7371. # This entry works for building a 16-bit executable on a 32-bit system, but
  7372. # has not been tested on a 16-bit system.  Uses large memory model, links
  7373. # explicitly with large-model sockets library.  Correct-model curses library
  7374. # is chosen automatically.  See comment in qnx32 entry about -DNOUUCP.
  7375. #
  7376. # WARNING:
  7377. #
  7378. # Watcom C prior to 10.6 never had released curses library. To link against it,
  7379. # you must obtain ported free curses source from ftp://ftp.qnx.com/usr/free,
  7380. # then compile and build library (cursesl.lib) and place it in /usr/lib.  You
  7381. # must also copy curses.h to /usr/include.  Be aware that if you have Watcom
  7382. # 10.6 installed, you should already have curses.h, which is the new ncurses
  7383. # library. You must back it up and use free curses.h instead, since ncurses is
  7384. # only for 32-bit applications and some definitions in these files are
  7385. # different (e.g., clearok()).  For safety, curses is not defined in build.
  7386. #
  7387. # In 7.0 -DNOHELP added to keep ckuus2.c from blowing up; NOCSETS and NOSPL
  7388. # added because ckuus4 was blowing up, and NOFLOAT just because it seemed
  7389. # dangerous (remove -DNOFLOAT if you want to try it), The result works OK
  7390. # except for some mysterious beeps upon termination of the top-level keyword.
  7391. #
  7392. # Things to try next time we get in trouble:
  7393. #  . Change -zt100 to something smaller like -zt25
  7394. #  . Change -Oatx to -Omilerat (enable stack checking)
  7395. #  . Maybe get rid of -v9.52 -- it's only there because we were warned.
  7396. #
  7397. qnx16:
  7398.     @echo 'Making C-Kermit $(CKVER) for QNX 4.21, 16-bit...'
  7399.     $(MAKE) xermit \
  7400.     "LNKFLAGS = -2 -ml -N 26000" \
  7401.     "CFLAGS = -2 -Oatx -zc -zt100 -ml -DQNX -DQNX16 -DNOUUCP -DNOHELP \
  7402.     -DCK_REDIR -DSELECT -DSELECT_H -DNOJC -DNOGETUSERSHELL -DNOCSETS \
  7403.     -v9.52 -DTCPSOCKET -DCK_RTSCTS -DCK_ANSIC -DNOINITGROUPS -DNOKVERBS \
  7404.     -DNORANDOM -DNOCSETS -DNOSPL -DNOFLOAT -DPID_T=pid_t $(KFLAGS)"
  7405.  
  7406. # QNX 4.1, 16-bit version, with Watcom C 8.5 on i286 PCs and above.
  7407. # stacksize 26000, objects larger than 100 bytes in their own segments,
  7408. # string constants to the codesegment, etc.  Add -DNOUUCP if desired.
  7409. qnx16_41:
  7410.     @echo 'Making C-Kermit $(CKVER) for QNX 4.1, 16-bit...'
  7411.     $(MAKE) xermit \
  7412.     "LNKFLAGS = -mh -N 26000" "CFLAGS = -Wc,-fpc -Wc,-j -DNOGETUSERSHELL \
  7413.     -Wc,-Ols -Wc,-zdf -Wc,-zc -Wc,-zt100 -mh -DPOSIX -DQNX -DDIRENT \
  7414.     -DNOCYRIL -DNODEBUG -DNOMSEND -DMINIDIAL -DNOXMIT -DNOSCRIPT -DNOSPL \
  7415.     -DNOSETKEY -DNOINITGROUPS -DQNX16 -DPID_T=pid_t $(KFLAGS)"
  7416.  
  7417. # QNX Neutrino 2 (pwaechtler@qnx.de) crosscompiled on QNX 4.25.
  7418. # Gets lots of compiler warnings.
  7419. qnx_nto2+:
  7420.     @echo 'Making C-Kermit $(CKVER) for QNX Neutrino 2+ '
  7421.     cc -o wart ckwart.c
  7422.     $(MAKE) xermit \
  7423.     "CC = qcc -Vgcc_ntox86" \
  7424.     "CC2 = qcc -Vgcc_ntox86" \
  7425.     "LNKFLAGS = " \
  7426.     "CFLAGS = -DNEUTRINO -DTCPSOCKET -DCK_CURSES -DNOGETUSERSHELL \
  7427.     -DNOUUCP -DCK_WREFRESH -DCK_REDIR -DSELECT -DSELECT_H -DCK_RTSCTS \
  7428.     -DNOJC -DNOINITGROUPS -DCK_ANSIC -DPID_T=pid_t -DUNIX -DDIRENT \
  7429.     -DMYREAD -DBSD44ORPOSIX -DSVORPOSIX -DNDGPWNAM $(KFLAGS)" \
  7430.     "LIBS= -lsocket -lncurses "
  7431.  
  7432. # QNX 6 (= Neutrino 2.xx) native build (kirussel@cisco.com).
  7433. qnx6:
  7434.     @echo 'Making C-Kermit $(CKVER) for QNX6'
  7435.     $(MAKE) xermit KTARGET=QNX6 \
  7436.     "CFLAGS = -DPOSIX -DCK_POSIX_SIG -DNETPTY -DNOARROWKEYS \
  7437.     -DUSE_TIOCSDTR -DBIGBUFOK -DCKMAXOPEN=100 -DRLOGCODE -DNOREALPATH \
  7438.     -DMAXNAMLEN=48 -DQNX6 -DUSE_TERMIO -DINIT_SPTY \
  7439.     -DCK_CURSES -DCK_WREFRESH -DCK_NEWTERM -DDYNAMIC \
  7440.     -DTCPSOCKET -DNOGETUSERSHELL -DCK_REDIR -DSELECT -DSELECT_H \
  7441.     -DCK_RTSCTS -DNOJC -DSVORPOSIX -DBSD44ORPOSIX -DNOUUCP -DCK_ANSIC \
  7442.     $(KFLAGS) -O" \
  7443.     "LIBS= -lsocket  -lncurses"
  7444.  
  7445. #Ridge 32 with ROS 3.2
  7446. ridge32:
  7447.     @echo 'Making C-Kermit $(CKVER) Ridge 32 ROS 3.2'
  7448.     $(MAKE) wermit \
  7449.     "CFLAGS = -DATTSV -DNOFILEH -DNODEBUG -DNOTLOG $(KFLAGS) -i -O" \
  7450.     "LNKFLAGS = -i"
  7451.  
  7452. #Altos 486, 586, or 986 with Xenix 3.0
  7453. altos:
  7454.     @echo 'Making C-Kermit $(CKVER) for Altos x86 with Xenix 3.0...'
  7455.     $(MAKE) wermit \
  7456.     "CFLAGS= -DATTSV -DA986 -DNODEBUG -DNOTLOG $(KFLAGS) -i -O" \
  7457.     "LNKFLAGS= -i"
  7458.  
  7459. #Altos 986 with Xenix 3.0, as above, but command-line only, minimal size.
  7460. #For systems with small memories.  It might also be necessary to chop certain
  7461. #modules up into smaller pieces, e.g. ckuus3-6, because of symbol table
  7462. #overflow.   If this makefile is too big or complex for the Altos, compile
  7463. #and link by hand or write shell scripts.
  7464. altosc:
  7465.     @echo 'Making C-Kermit $(CKVER) for Altos x86 Xenix 3.0, remote...'
  7466.     $(MAKE) wermit \
  7467.     "CFLAGS= -DATTSV -DA986 -DNODEBUG -DNOTLOG -DNOSCRIPT -DNODIAL \
  7468.     -DNOCSETS -DNOANSI -DNOMSEND -DNOSPL -DNOICP $(KFLAGS) -Mm -O" \
  7469.     "LNKFLAGS= -Mm -s"
  7470.  
  7471. #Altos 986 with Xenix 3.0, as above, but interactive only, minimal size.
  7472. altosi:
  7473.     @echo 'Making C-Kermit $(CKVER) for Altos x86 Xenix 3.0, local...'
  7474.     $(MAKE) wermit \
  7475.     "CFLAGS= -DATTSV -DA986 -DNODEBUG -DNOTLOG -DNOSCRIPT -DNODIAL \
  7476.     -DNOCSETS -DNOANSI -DNOMSEND -DNOSPL -DNOCMDL -DNOFRILLS -DNOHELP \
  7477.     -DNOSETKEY $(KFLAGS) -Mm -O" "LNKFLAGS= -Mm -s"
  7478.  
  7479. # Altos ACS68000 68000 System, UNIX System 3 Release 2, 512k memory.
  7480. # also needs getcwd() external function; see ckuins.txt file.
  7481. # also, sys/types.h needed modifying:
  7482. #   #ifdef __SYS_TYPES_H__, #define ..., #endif
  7483. # also, ckuus2.c MUST be compiled NOOPT else symbol table is destroyed!
  7484. # Submission by Robert Weiner/Programming Plus, rweiner@progplus.com.
  7485. #
  7486. altos3:
  7487.     @echo 'Making C-Kermit $(CKVER) for Altos ACS68k UNIX System III'
  7488.     $(MAKE) ckuus2.$(EXT) "CFLAGS = -DATTSV -DNOCSETS -DNOSETKEY -DNOJC \
  7489.     -DNODIAL -DDCLPOPEN -DNOSCRIPT -DNOHELP $(KFLAGS) -i"
  7490.     $(MAKE) wermit \
  7491.     "CFLAGS = -DATTSV -DNOCSETS -DNOSETKEY -DNOJC \
  7492.     -DNODIAL -DDCLPOPEN -DNOSCRIPT -DNOHELP $(KFLAGS) -i -O" \
  7493.     "LNKFLAGS = -i" "LIBS = getcwd.$(EXT)"
  7494.  
  7495. #MINIX - Original PC version with 64K+64K limit.
  7496. # Reportedly, the linker (asld) can run out of space while linking.  The only
  7497. # way around this is to make a copy of libc.a from which all modules that are
  7498. # not used by Kermit are removed.  If you have trouble compiling or running
  7499. # wart, "touch wart".  If that doesn't help, "touch ckcpro.c".
  7500. # The version configured below has no interactive command parser.
  7501. # If you can build this version successfully, maybe there will be room for
  7502. # a minimal interactive command parser too; try replacing -DNOICP with
  7503. # -DNOSPL, plus every other -DNOxxx flag there is, except for -DNOICP
  7504. # (see ckccfg.txt).
  7505. minix:
  7506.     @echo 'Making C-Kermit $(CKVER) for MINIX, no command parser...
  7507.     @echo 'TOTALLY UNTESTED!'
  7508.     $(MAKE) wermit EXT=s \
  7509.     "CFLAGS= -DV7 -DMINIX -i -D_MINIX -D_POSIX_SOURCE \
  7510.     -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t -DSIG_V \
  7511.     -DNOXMIT -DNOMSEND -DNOFRILLS -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG \
  7512.     -DNOSCRIPT -DNOCSETS -DNOICP -DNOSETKEY $(KFLAGS)" \
  7513.     "LNKFLAGS= -i -T"
  7514.  
  7515. #MINIX - PC version with 64K+64K limit, new (as yet unreleased) ACK 2.0 beta C
  7516. #compiler, which outputs .o object files, rather than .s.  But 'make' still
  7517. #expects .s files, so must be patched to use .o.  Tested on Minix 1.5.10.
  7518. minixnew:
  7519.     @echo 'Making C-Kermit $(CKVER) for MINIX (new ACK 2.0 compiler),'
  7520.     @echo 'no command parser...  TOTALLY UNTESTED!'
  7521.     $(MAKE) wermit \
  7522.     "CFLAGS= -DV7 -DMINIX -i -D_MINIX -D_POSIX_SOURCE \
  7523.     -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t -DSIG_V -DNODIAL \
  7524.     -DNOHELP -DNODEBUG -DNOTLOG -DNOSCRIPT -DNOCSETS -DNOICP $(KFLAGS)" \
  7525.     "LNKFLAGS= -i -T"
  7526.  
  7527. #PFU Compact A Series UNIX System V R3, SX/A TISP V10/L50 (Japan)
  7528. #Maybe the -i link option should be removed?
  7529. sxae50:
  7530.     @echo 'Making C-Kermit $(CKVER) for PFU SX/A V10/L50...'
  7531.     $(MAKE) xermit \
  7532.     "CFLAGS= -DSVR3 -DDIRENT -DsxaE50 -DTCPSOCKET $(KFLAGS) -i -O" \
  7533.     "LNKFLAGS= "
  7534.  
  7535. #Tektronix 6130, 4319, 4301, etc, with UTek OS, /usr/spool/uucp/LCK./...
  7536. #The models that support hardware flow control.
  7537. utek:
  7538.     @echo 'Making C-Kermit $(CKVER) for 4.2BSD/UTek, hardware flow control'
  7539.     $(MAKE) wermit \
  7540.     "CFLAGS= -O -DLCKDIR -DBSD4 -DTCPSOCKET \
  7541.     -DUTEK -DDCLPOPEN -DLOCK_DIR=\\\"/usr/spool/uucp/LCK.\\\" \
  7542.     -DTRMBUFL=2048 -DCK_DTRCTS $(KFLAGS)"
  7543.  
  7544. #Tektronix 4315, 4316, 4317 with UTek OS, /usr/spool/uucp/LCK./...
  7545. #The models that do not fully support hardware flow control.
  7546. uteknohwfc:
  7547.     @echo 'Making C-Kermit $(CKVER) for 4.2BSD/UTek, no h/w flow control'
  7548.     $(MAKE) wermit \
  7549.     "CFLAGS= -O -DLCKDIR -DBSD4 -DTCPSOCKET \
  7550.     -DUTEK -DDCLPOPEN -DLOCK_DIR=\\\"/usr/spool/uucp/LCK.\\\" \
  7551.     -DTRMBUFL=2048 $(KFLAGS)"
  7552.  
  7553. #Tektronix XD88 with  UTekV OS
  7554. utekvr3:
  7555.     @echo 'Making C-Kermit $(CKVER) for Tektronix XD88 UTekV R3...'
  7556.     $(MAKE) wermit \
  7557.     "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP \
  7558.     -DTCPSOCKET -DSYSUTIMEH -DCK_CURSES $(KFLAGS) -O" \
  7559.     "LIBS= -lcurses" "LNKFLAGS= -s"
  7560.  
  7561. #Perkin-Elmer 3200 Xelos R02 or earlier
  7562. ccop1:
  7563.     @echo 'Making C-Kermit $(CKVER) for Xelos & Public Domain Dirent calls'
  7564.     @echo 'or System V R2 or earlier...'
  7565.     $(MAKE) wermit \
  7566.     "CFLAGS = -DATTSV -Dvoid=int -DDIRENT -DCK_CURSES \
  7567.     $(KFLAGS) -O" "LNKFLAGS =" "LIBS= -lcurses -ltermlib"
  7568.  
  7569. #Encore, UMAX 4.3 (BSD) but without acucntrl program.
  7570. encore:
  7571.     $(MAKE) "MAKE=$(MAKE)" umax43 "KFLAGS=$(KFLAGS)"
  7572.  
  7573. #Encore, as above, but with curses file transfer display included.
  7574. encorec:
  7575.     $(MAKE) "MAKE=$(MAKE)" umax43 "KFLAGS=-DCK_CURSES $(KFLAGS)" \
  7576.     "LIBS= -lcurses -ltermcap"
  7577.  
  7578. #Encore, UMAX 4.3 (BSD) but without acucntrl program.
  7579. umax43:
  7580.     @echo Making C-Kermit $(CKVER) for Encore UMAX 4.3...
  7581.     $(MAKE) "MAKE=$(MAKE)" PARALLEL=4 xermit \
  7582.     "CFLAGS= -DBSD43 -DENCORE -DTCPSOCKET $(KFLAGS) -O"
  7583.  
  7584. #Encore, UMAX 4.2 (BSD)
  7585. umax42:
  7586.     @echo Making C-Kermit $(CKVER) for Encore UMAX 4.2...
  7587.     $(MAKE) "MAKE=$(MAKE)" PARALLEL=4 xermit \
  7588.     "CFLAGS= -DBSD4 -DENCORE -DTCPSOCKET $(KFLAGS) -O"
  7589.  
  7590. #Encore 88K UMAX 5.3 with TCP/IP support
  7591. encore88k:
  7592.     @echo 'Making C-Kermit $(CKVER) for Encore 88K UMAX V, TCP/IP...'
  7593.     $(MAKE) xermit \
  7594.     "CFLAGS = -q ext=pcc -DSVR3 -DTCPSOCKET -DDIRENT \
  7595.     -DNOGETID_PROTOS -DHDBUUCP $(KFLAGS) -O" "LNKFLAGS ="
  7596.  
  7597. #Encore 88K UMAX 5.3 with TCP/IP support
  7598. encore88kgcc:
  7599.     @echo 'Making C-Kermit $(CKVER) for Encore 88K UMAX V, TCP/IP, gcc...'
  7600.     $(MAKE) xermit CC=gcc CC2=gcc \
  7601.     "CFLAGS = -DSVR3 -DTCPSOCKET -DDIRENT \
  7602.     -DNOGETID_PROTOS -DHDBUUCP $(KFLAGS) -O" "LNKFLAGS ="
  7603.  
  7604. #SONY NEWS, NEWS-OS 4.01C
  7605. sonynews:
  7606.     @echo Making C-Kermit $(CKVER) for SONY NEWS-OS 4.01C...
  7607.     $(MAKE) xermit "CFLAGS= -DBSD43 -DACUCNTRL -DTCPSOCKET -O"
  7608.  
  7609. #Run Lint on this mess for selected versions.
  7610. #These are pretty much obsolete since ANSI C / gcc.
  7611. lintsun:
  7612.     @echo 'Running Lint on C-Kermit $(CKVER) sources for SunOS version...'
  7613.     lint -x -DSUNOS4 -DDIRENT -DTCPSOCKET -DSAVEDUID \
  7614.     ck[cu]*.c > ckuker.lint.sun
  7615.  
  7616. lintbsd:
  7617.     @echo 'Running Lint on C-Kermit $(CKVER) sources for BSD 4.2 version..'
  7618.     lint -x -DBSD4 -DTCPSOCKET ck[cu]*.c > ckuker.lint.bsd42
  7619.  
  7620. lints5:
  7621.     @echo 'Running Lint on C-Kermit $(CKVER) sources for Sys V version...'
  7622.     lint -x -DATTSV ck[cu]*.c > ckuker.lint.s5
  7623.  
  7624. #Who remembers TECO?
  7625. love:
  7626.     @echo 'Not war?'
  7627.