home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / archives / ck208 / cku208.tar.gz / cku208.tar / makefile < prev   
Makefile  |  2003-03-07  |  332KB  |  7,580 lines

  1. # makefile / Makefile / ckuker.mak / CKUKER.MAK
  2. #
  3. # Fri Mar  7 13:25:00 2003
  4. BUILDID=20030307
  5. #
  6. CKVER= "8.0.208"
  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 Computer Cray-2 or Cray3 with CSOS, "make craycsos"
  236. # ? for Cyber 910 (Silicon-Graphics Iris) with Irix 3.3, "irix33"
  237. # ? for Data General AViiON with DG/UX 5.4 before R3.00, "make dgux540"
  238. #     or "make dgux540c" (compile ckwart separately if necessary)
  239. # + for DG/UX 5.4 on AViiON Intel models, "make dgux540i" or dgux540ic.
  240. # ? for DG/UX 5.4R4.11 on AViiON, all models, "make dgux54411"
  241. # + for DG/UX 5.4R4.20 on AViiON, all models, "make dgux54420"
  242. # + for Data General AViiON with DG/UX 4.3x using Sys V-isms, "make dgux430"
  243. # ? for Data General AViiON with DG/UX 4.3x using BSD-isms, "make dgux430bsd"
  244. # ? for Data General AViiON, earlier UNIX versions,
  245. #     "make sys5r3" (maybe compile ckwart separately, or "touch ckcpro.c")
  246. # ? for Data General MV systems with DG/UX, ???
  247. # ? for Data General MV systems with MV/UX, use AOS/VS C-Kermit (CKDKER.MAK)
  248. # ? for Data General MV systems with AOS/VS, use CKDKER.MAK (last = C-K 7.0)
  249. #   for DEC PDP-11 with Berkeley UNIX 2.x, see Berkeley UNIX 2.x.
  250. # ? for DEC PDP-11 with Mini-UNIX (Bell 6th Edition for PDP-11 with no MMU),
  251. #     probably no way to fit C-Kermit without I&D space.
  252. # ? for DEC PDP-11 with Ultrix-11 3.x, ??? (probably needs overlays)
  253. # ? for DEC VAX with Ultrix 1.x "make bsd"
  254. # ? for DEC VAX with Ultrix 2.x "make ultrix2x"
  255. # ? for DEC VAX or DECstation with Ultrix 3.0, 3.1, "make ultrix3x"
  256. # ? for DECstation or VAX with Ultrix 4.0 or 4.1, "make ultrix40"
  257. # ? for DECstation or VAX with Ultrix 4.2, "make ultrix42" or "make ultrix42c"
  258. # ? for DECstation or VAX with Ultrix 4.x, POSIX world, "make posix"
  259. # + for DECstation or VAX with Ultrix 4.3, "make ultrix43".
  260. # + for DECstation or VAX with Ultrix 4.4, "make ultrix44".
  261. # ? for DECstation 5000/50, /150 or /260 (R4x00 MIPS CPU), Ultrix 4.3A or later
  262. #     "make ultrix43-mips3" or "make ultrix43c-mips3"
  263. # ? for DECstation (MIPS) with Berkeley Sprite, "make bsd44"?
  264. # ? for DECstation (MIPS) with OSF/1 V1.0 to 1.3, "make dec-osf"
  265. # ? for DEC Alpha with OSF/1 1.0 to 1.3, "make dec-osf"
  266. # ? for DEC PC 486 with OSF/1, "make dec-osf"
  267. # ? for DEC Alpha with OSF/1 2.x, "make dec-osf20"
  268. # + for DEC Alpha with OSF/1 3.0, "make dec-osf30"
  269. # + for DEC Alpha with Digital UNIX 3.2, "make du32"
  270. # + for DEC Alpha with Digital UNIX 4.0-4.0D, "make du40" or "make du40gcc"
  271. # + for DEC Alpha with Digital UNIX 4.0E or higher, see Tru64.
  272. # - for DEC Pro-350 with Pro/Venix V1.x, "make provx1" (version 5A is too big)
  273. # ? for DEC Pro-380 with Pro/Venix V2.0 (Sys V), "make sys3" or "make sys3nid"
  274. # ? for DEC Pro-380 with 2.9, 2.10, or 2.11 BSD, "make bsd29" or "make bsd210"
  275. #   for DEC PDP-11 with 2.xBSD (use separate makefile ckubs2.mak)
  276. # ? for Dell UNIX Issue 2.x (= USL Sys V/386 R4.x + fixes), "make dellsys5r4"
  277. #     or "make dellsys5r4c" (last tested in C-Kermit 5A).
  278. # ? for DIAB DS90 with DNIX (any version) create an empty <sys/file.h> if
  279. #     this file does not already exist (or add -DNOFILEH to the make entry).
  280. # ? for DIAB DS90 with DNIX 5.2 (Sys V.2) or earlier, "make dnix",
  281. #     "make dnixnd", or (to add curses and TCP/IP) "make dnixnetc",
  282. # ? for DIAB DS90 with DNIX 5.3 (Sys V.3), "make dnix5r3"
  283. # ? for DIAB DS90 with DNIX 5.3 (Sys V.3) and TCP/IP, "make dnix5r3net"
  284. # ? for DIAB DS90 with DNIX 5.3 2.2 (Sys V.3), ANSI C, "make dnix5r3ansi"
  285. #     or, to include TCP/IP, "make dnix5r3ansinet",
  286. #     but you have to fix a bug in /usr/include/stdlib.h first:
  287. #     change "extern void free(char *str);" to "extern void free(void *str);"
  288. # ? for Dolphin Server Technology Triton 88/17 with SV/88 R3.2, "make sv88r32"
  289. # ? for Encore Multimax 310, 510 with Umax 4.2, "make umax42"
  290. # ? for Encore Multimax 310, 510 with Umax 4.3, "make umax43"
  291. # ? for Encore Multimax 310, 510 with Umax V 2.2, use Berkeley cc, "make bsd"
  292. # ? for Encore 88K with Umax V 5.2, "make encore88k"
  293. # ? for ESIX System V R4.0.3 or 4.04 with TCP/IP support, "make esixr4"
  294. #     NOTE: You can also build on Unixware 2.x with "make esixr4", and run
  295. #     on ESIX, but there you must first:
  296. #       ln /usr/lib/libsocket.so /usr/lib/libsocket.so.1
  297. #       ln /usr/lib/libnsl.so /usr/lib/libnsl.so.1
  298. #     (This worked for C-Kermit 6.0 but does not work for 7.0)
  299. #     (But you can probably still build a non-networking version this way)
  300. # ? for Everex STEP 386/25 Rev G with ESIX Sys V R3.2D, "make sys5r3"
  301. # ? for Fortune 32:16, For:Pro 1.8, "make ft18"
  302. # ? for Fortune 32:16, For:Pro 2.1, "make ft21"
  303. # ? for FPS 500 with FPX 4.1, "made bsd"
  304. # + for FreeBSD 1.0, "make freebsd1"
  305. # + for FreeBSD 2.x, "make freebsd2" (ncurses) or "make freebsd2c" (curses)
  306. # + for FreeBSD 3.x, "make freebsd3" (ncurses) or "make freebsd3c" (curses)
  307. # + for FreeBSD 4.0, "make freebsd4"
  308. # + for FreeBSD 4.1, "make freebsd41"
  309. # + for FreeBSD 4.2, "make freebsd42"
  310. # + for FreeBSD 4.3, "make freebsd43"
  311. # + for FreeBSD 4.4, "make freebsd44"
  312. # + for FreeBSD 4.5, "make freebsd45"
  313. # + for FreeBSD 4.6, "make freebsd46"
  314. # + for FreeBSD 4.7, "make freebsd47"
  315. # + for FreeBSD 4.8, "make freebsd48"
  316. # ? for FreeBSD 5.0, "make freebsd50"
  317. # ? for Harris HCX-2900, "make sys5r3"
  318. # ? for Harris Night Hawk 88K or 68K with CX/UX pre-6.1, "make sys5r3"
  319. # ? for Harris Night Hawk 88K or 68K with CX/UX 6.1 or later, "make cx_ux"
  320. # ? for Heurikon, "make sys3"
  321. # ? for HP-3000, MPE/ix, "make posix"?
  322. # + for HP-9000 Series 300 with 4.4BSD, "make bsd44"
  323. # + for HP-9000 Series 500, HP-UX 5.21 and no networking "make hpux0500"
  324. # + for HP-9000 Series 500, HP-UX 5.21 with WIN/TCP 1.2 "make hpux0500wintcp"
  325. # + for HP-9000 Series, HP-UX 6.5, without long filenames,
  326. #     "make hpux0650" or "make hpux0650c"
  327. # + for HP-9000 Series, HP-UX 7.0 or later no long filenames, "make hpux0700sf"
  328. #     or (to include tcp/ip, curses, etc) "make hpux0700sftcpc"
  329. # + for HP-9000 Series with HP-UX 7.0, TCP/IP,long filenames,"make hpux0700lfn"
  330. # + for HP-9000 300/400 Series (680x0) with HP-UX 8.0, TCP/IP, "make hpux0800"
  331. #      or "make hpux0800c"
  332. # + for HP-9000 700/800 Series (PA-RISC), HP-UX 8.0, TCP/IP, "make hpux0800pa"
  333. #      or "make hpux0800pac"
  334. # + for HP-9000 Series with HP-UX 8.0, no TCP/IP, long filenames,
  335. #      "make hpux0800notcp"
  336. # + for HP-9000 Series, HP-UX 9.0 - 9.10, TCP/IP, curses, restricted compiler
  337. #     (no optimization, no ANSI), all models, "make hpux0900".  Read the
  338. #     hpux0900 entry below for more info.
  339. # + for HP-9000 700 and 800 Series, HP-UX 9.x, TCP/IP, curses,
  340. #     HP optimizing ANSI C compiler, "make hpux0900o700".
  341. # + for HP-9000 with Motorola CPUs, HP-UX 9.x, TCP/IP, curses,
  342. #     HP optimizing ANSI C compiler, "make hpux0900mot".
  343. # + for HP-9000 on other CPUs, HP-UX 9.x, TCP/IP, curses,
  344. #     HP optimizing ANSI C compiler, "make hpux0900o".
  345. # + for HP-9000 series, HP-UX 9.x, TCP/IP, curses, gcc, all models,
  346. #     "make hpux0900gcc"
  347. # + for HP-9000 700/800 Series, HP-UX 10.00,10.01,10.10,10.20,10.30, TCP/IP,
  348. #     curses, restricted compiler (no optimization, no ANSI) "make hpux1000".
  349. # + for HP-9000 700/800 Series, HP-UX 10.00,10.01,10.10,10.20,10.30, TCP/IP,
  350. #     curses, HP ANSI/optimizing compiler "make hpux1000o" or "make hpux1000o+"
  351. # + for HP-9000 HP-UX 10.00 or later with gcc, "make hpux1000gcc"
  352. # + for Trusted HP-UX 10.xx "make hpux1000t", "make hpux1000to",
  353. #     or make hpux1000to+"
  354. # + for HP-9000 700/800 Series, HP-UX 11.00,TCP/IP,curses, restricted compiler
  355. #     (no optimization, no ANSI) "make hpux1100".
  356. # + for HP-9000 700/800 Series, HP-UX 11.00,TCP/IP,curses, restricted compiler
  357. #     HP ANSI/optimizing compiler "make hpux1100o" or "make hpux1100o+"
  358. # + for Trusted HP-UX 11.xx "make hpux1100t", "make hpux1100to",
  359. #     make hpux1100to+"
  360. # + for HP-9000 PA-RISC models with NeXTSTEP 3.3, "make nextquadfat".
  361. # + for HP-9000 PA-RISC models with OPENSTEP/Mach 4.1, "make nextquadfat".
  362. # ? for IBM 370 Series with IX/370, "make ix370"
  363. # ? for IBM 370 Series with AIX/370 1.2, "make aix370"
  364. # ? for IBM 370 Series with AIX/370 3.0, "make aix370"
  365. # ? for IBM 370 Series with AIX/ESA 2.1, "make aixesa"
  366. # - for IBM PC/AT 286 & compatibles with Mark Williams Coherent OS,
  367. #     command-line-only version, "make coherent" (version 5A & later too big)
  368. # ? for IBM PC 386 & compatibles with Mark Williams Coherent OS,
  369. #     minimum interactive version, "make coherentmi"
  370. # ? for IBM PC 386 & compatibles with Mark Williams Coherent OS,
  371. #     full interactive version, prior to v4.2, "make coherentmax"
  372. # + for IBM PC 386 & compatibles with Mark Williams Coherent OS 4.2,
  373. #     "make coherent42"
  374. # ? for IBM PC 386 & compatibles with LynxOS 2.0 or 2.1, "make lynx21"
  375. # ? for IBM PC 386 & compatibles with LynxOS 2.2, "make lynx"
  376. # - for IBM PC/AT & compatibles with original MINIX, "make minix" (too big)
  377. # ? for IBM PC family, 386-based, with MINIX/386 1.5, "make minix386"
  378. #     or if you have GNU CC, "make minix386gcc"
  379. # + for IBM PC family, 386-based, with MINIX 2.0, "make minix20"
  380. # + for IBM PS/2 with PS/2 AIX 1.0, 1.1, or 1.2, "make ps2aix" or ps2aixnetc.
  381. # ? for IBM PS/2 with PS/2 AIX 1.3, "make ps2aix3"
  382. # ? for IBM RISC System/6000 with AIX 3.0, "make aix30"
  383. # ? for IBM RISC System/6000 with AIX 3.1.x, "make aix31"
  384. # + for IBM RISC System/6000 with AIX 3.2.0 thru 3.2.5, "make aix32"
  385. # + for IBM RS/6000 or Power Series with AIX 4.1.x, "make aix41"
  386. # + for IBM RS/6000 or Power Series with AIX 4.1.x with gcc, "make aix41g"
  387. # + for IBM RS/6000 or Power Series with AIX 4.1 with X.25, "make aix41x25"
  388. # + for IBM RS/6000 or Power Series with AIX 4.2, "make aix42"
  389. # + for IBM RS/6000 or Power Series with AIX 4.3, "make aix43" (or aix43gcc)
  390. # + for IBM RS/6000 or Power Series with AIX 4.4, "make aix44" (or aix44gcc)
  391. # + for IBM RS/6000 or Power Series with AIX 4.5, "make aix45" (or aix45gcc)
  392. # + for IBM RS/6000 or Power Series with AIX 5.0, "make aix50" (or aix50gcc)
  393. # + for IBM RS/6000 or Power Series with AIX 5.1, "make aix51" (or aix51gcc)
  394. # ? for IBM RS/6000 or Power Series with AIX 5.2, "make aix52" (or aix52gcc)
  395. # ? for IBM RS/6000 or Power Series with AIX 5.3, "make aix53" (or aix53gcc)
  396. # ? for IBM RT PC with AIX 2.1, "make sys3"
  397. # + for IBM RT PC with AIX 2.2.1, "make rtaix" or "make rtaixc"
  398. # ? for IBM RT PC with ACIS 4.2, "make bsd"
  399. # ? for IBM RT PC with ACIS 4.3, "make rtacis" or "make bsd KFLAGS=-DNOANSI"
  400. # ? for IBM RT PC with 4.3BSD/Reno, "make bsd44" or "make bsd44c"
  401. # ? for ICL DRS400 or 400E, "make iclsys5r3"
  402. # ? for ICL DRS3000 (80486) with DRS/NX, "make iclsys5r4_486"
  403. # ? for ICL DRS6000 (SPARC) with DRS/NX, "make iclsys5r4"
  404. # + for ICL DRS6000 (SPARC) with DRS/NX 4.2MP 7MPlus, "make iclsys5r4m+"
  405. # ?     Ditto but with IKSD support included, "make iclsys5r4m+iksd"
  406. # ? for Integrated Solutions Inc V8S VME 68020, "make isi"
  407. # ? for Intel 302 with Bell Tech Sys V/386 R3.2, "make sys5r3"
  408. # ? for Intel Xenix/286, "make sco286"
  409. # ? for Interactive System III (PC/IX), "make pcix" or "make is3"
  410. # ? for Interactive System III (PC/IX) with gcc, "make is3gcc"
  411. # ? for Interactive 386/ix 1.0.6 with TCP/IP networking, "make is5r3net2"
  412. # ? for Interactive 386/ix 2.0.x, "make is5r3" or (POSIX) "make is5r3p"
  413. # ? for Interactive 386/ix 2.0.x with TCP/IP networking, "make is5r3net"
  414. #     or "make is5r3net2"
  415. # ? for Interactive 386/ix 2.2.1, job control, curses, no net, gcc,
  416. #     "make is5r3gcc"
  417. # + for Interactive UNIX Sys V R3.2 V2.2 - 4.0 without TCP/IP, "make is5r3jc"
  418. # + for Interactive UNIX Sys V R3.2 V2.2 - 4.0 with TCP/IP, "make is5r3netjc"
  419. # + for Intergraph Clipper, "make clix" or "make clixnet"
  420. # ? for Jolix (see 386BSD)
  421. # + for Red Hat Linux 7.1 (and higher) fully configured (krb5, SSL, etc): 
  422. #     "make redhat71", "make redhat72", "make redhat73", "make redhat80"
  423. #     NOTE: You must use this target for Red Hat 7.1 since it 
  424. #     also includes a workaround for its broken curses library.
  425. #     WARNING: These targets create binaries that include code for
  426. #     strong encryption and are therefore not exportable. DO NOT PUT
  427. #     THESE BINARIES ON US OR CANADIAN WEB OR FTP SITES.
  428. # + for Linux 1.2 and later, "make linux".  Uses ncurses.  This version
  429. #     handles serial speeds up to 460800 bps, Linux FSSTD 1.2, TCP/IP, and
  430. #     should work on both libc and glibc systems.  For static linking, use
  431. #     "make linux LNKFLAGS=-static".  Please read the comments that accompany
  432. #     the linux entry.
  433. # + for Linux builds that fail with "sys/select.h: No such file or directory",
  434. #     "make linuxns"
  435. # + for Linux 1.2 and later but with curses.h and libcurses (rather than
  436. #     ncurses.h and libncurses), use "make linuxc".
  437. # + for Linux 1.2 and later with no curses support at all, "make linuxnc".
  438. # + for Linux on PowerMac (Mklinux DR3), "make mklinux".
  439. # + for Linux 1.2 and later, to build with egcs, "make linuxegcs".
  440. # + for Linux with no TCP/IP, "make linuxnotcp"
  441. # + for Linux with lcc compiler, no TCP/IP, "make linuxnotcp-lcc"
  442. # ? for Linux 1.0 or earlier, "make linux10", or (to remove TCP/IP)
  443. #     "make linuxnotcp".
  444. #     IMPORTANT: Read the comments that accompany the "linux:" entry.
  445. # ? for Mach 2.6 on (anything, e.g. DECstation), "make bsd42" or "make bsd43".
  446. # ? for MachTen (Tenon) 2.1.1.D on (e.g.) Apple Powerbook, "make machten".
  447. # ? for Masscomp RTU AT&T System III, "make rtu"
  448. #   for other Masscomp, see Concurrent.
  449. # ? for Microport SV/AT (System V R2), "make mpsysv" (last edit tested: 144)
  450. # ? for Microport SVR4 2.2, 3.1, or 4.1 "make sys5r4sx"
  451. # ? for Microsoft,IBM Xenix (/286, PC/AT, etc), "make xenix" or "make sco286"
  452. # ? for MIPS System with RISC/os (UMIPS) 4.52 = AT&T SVR3, "make mips"
  453. #     or "make mipstcpc"
  454. # + for MkLinux on Power Macintosh, "make mklinux"
  455. # ? for Modcomp 9730, Real/IX, "make sys5r3" (or modify to use gcc = GLS cc)
  456. # ? for Modcomp Realstar 1000 with REAL/IX D.1, "make sv88r32"
  457. # ? for Motorola Four Phase, "make sys3" or "make sys3nid"
  458. # + for Motorola Delta System V/68 R3, "make sv68r3"
  459. # + for Motorola Delta System V/68 R3V5, "make sv68r3v5"
  460. # + for Motorola Delta System V/68 R3V5.1, "make sv68r3v51"
  461. # + for Motorola Delta System V/68 R3V6 with NSE TCP/IP, "make sv68r3v6"
  462. # + for Motorola Delta System V/88 R32, "make sv88r32"
  463. # + for Motorola Delta System V/88 R40, "make sv88r40"
  464. # ? for Mt Xinu Mach386 on 386/486-based PCs, "make bsd43"
  465. # ? for NCR Tower 1632, OS 1.02, "make tower1"
  466. # ? for NCR Tower 1632 or Minitower with System V R2, "make sys3"
  467. #     or "make sys3nv"
  468. # ? for NCR Tower 32, OS Release 1.xx.xx, "make tower32-1"
  469. # ? for NCR Tower 32, OS Release 2.xx.xx, "make tower32-2"
  470. # ? for NCR Tower 32, OS Releases based on Sys V R3, "make tower32"
  471. # ? for NCR Tower 32, OS Releases based on Sys V R3 with gcc "make tower32g"
  472. # ? for NCR System 3000, AT&T UNIX System V R4 2.0, "make sys5r4sxna"
  473. # ? for NCR System 3000, AT&T UNIX System V R4 2.0 with Wollongong TCP/IP,
  474. #     "make sys5r4net2" or "make sys5r4net2c".
  475. #      Some header files might be misplaced; try this:
  476. #       ln /usr/include/netinet/in.h /usr/include/sys/in.h
  477. #       ln /usr/include/arpa/inet.h /usr/include/sys/inet.h
  478. #       ln /usr/include/sys/termiox.h /usr/include/termiox.h
  479. # ? for NCR System 3000, NCR UNIX 02.02.01, same as above.
  480. # + for NCR MP-RAS System V R4 V2.03 or 3.02, "make mpras" or "make mprastcpc"
  481. # + for NetBSD through 1.4.x on any architecture, "make netbsd"
  482. # + for NetBSD 1.5.0 and later, "make netbsd15"
  483. # + for NeXT with NeXTSTEP 1.0 through 3.2, "make next" (on a NeXT)
  484. # + for NeXT with NeXTSTEP 3.3, "make next33"
  485. # ? for NeXT with OPENSTEP/Mach 4.1, "make nextquadfat".
  486. # + for NeXT with OPENSTEP/Mach 4.2, "make openstep42".
  487. # ? for NeXTSTEP/486, "make next" (on a PC)
  488. # ? for NeXTSTEP portable binary (runs on Intel or Motorola), "make nextfat"
  489. # ? for NeXTSTEP portable binary (Intel, Motorola, HP PA-RISC, or SPARC),
  490. #     "make nextquadfat"
  491. # ? for Nixdorf Targon/31, "make t31tos40x"
  492. # ? for Norsk Data Uniline 88/17 with SV/88 R3.2, "make sv88r32"
  493. #   for Novell UnixWare - see UnixWare
  494. # ? for OSF/1 (vanilla, from OS/F), "make posix"
  495. # ? for OkiStation 7300 Series, "make sys5r4sxtcp"
  496. # ? for Olivetti LSX-3020 with X/OS R.2.3, "make xos23" or "make xos23c"
  497. # + for OpenBSD, "make openbsd" (also see secure targets listed below).
  498. # ? for OPENSTEP/Mach 4.1, "make nextquadfat" (NeXT, Intel, PA-RISC, SPARC)
  499. # + for OPENSTEP/Mach 4.2, "make openstep42" (tested on NeXT)
  500. # ? for Perkin-Elmer (Concurrent) 3200 series, "make sys5".
  501. # ? for Perkin-Elmer (Concurrent) 3200 series with <dirent.h>, "make ccop1"
  502. # ? for Perkin-Elmer/Concurrent 3200 with Xelos R02, "make ccop1"
  503. # ? for PFU Compact A Series SX/A TISP V10/E50 (Japan), "make sxae50"
  504. # ? for Plexus, "make sys3"
  505. # + for Pyramid 9XXX (e.g. 9845) or MIServer T series, OSx 4.4b thru 5.1,
  506. #     "ucb make pyramid" or for HDB UUCP, "ucb make pyramid-hdb" or:
  507. # + for Pyramid MIServer S or ES Series, DataCenter/OSx, "make pyrdcosx"
  508. # + for Pyramid MIS-S MIPS R3000, DataCenter OSx System V R4, "make pyrdcosx"
  509. # + for POSIX on anything, "make posix" (but adjustments might be necessary).
  510. # ? for Prime 8000 MIPS, SVR3, "make mips" or "make mipstcpc"
  511. # - for QNX 2.x (sorry we don't have a version of C-Kermit for QNX 2.x)
  512. # ? for QNX 4.0 or 4.1, 16-bit, on 286 PC, Watcom C 8.5, "make qnx16_41"
  513. # + for QNX 4.21 - 4.22A (286+), and 4.23 (386+), or higher, 16-bit,
  514. #     Watcom C 9.5x or higher, "make qnx16"
  515. # + for QNX 4.21-4.25, 32-bit, 386 or above, Watcom C 10.6, "make qnx32"
  516. #     NOTE: ("make qnx" == "make qnx32")
  517. # ? for QNX Neutrino 2+, "make qnx_nto2+" (crosscompiled on QNX4 with Watcom C)
  518. # + for QNX 6 = Neutrino 2.xx, "make qnx6"
  519. # ? for Ridge 32 (ROS3.2), "make ridge32"
  520. # ? for Samsung MagicStation, "make sys5r4"
  521. # ? for SCO Xenix 2.2.1 with development system 2.2 on 8086/8 "make sco86"
  522. # ? for SCO Xenix/286 2.2.1 with development system 2.2 on 80286, "make sco286"
  523. #     NOTE: reportedly this makefile is too long for SCO Xenix/286 make, but it
  524. #     works with "makeL", or if some of the other make entries are edited out.
  525. # ? for SCO Xenix/386 2.2.2, "make sco386"
  526. # ? for SCO Xenix/386 2.3.x, "make sco3r2"
  527. # ? for SCO Xenix/386 SCO 2.3.3 or 2.3.4 with gcc 1.37 or later,
  528. #     "make sco386gcc" or (to add curses) "make sco386gccc".
  529. # ? for SCO Xenix/386 or UNIX/386 with Excelan TCP/IP, "make sco3r2net"
  530. #     or (to add curses support) "make sco3r2netc" or "sco386netc"
  531. # + for SCO XENIX 2.3.4, "make sco234" or "make sco234c" to add curses.
  532. # + for SCO XENIX 2.3.4 with SCO TCP/IP & curses, "make sco234netc".
  533. # ? for SCO Xenix 2.3.x with Racal-InterLan TCP/IP, "make sco3r2netri"
  534. #   for other UNIX varieties with Racal Interlan TCP/IP, read sco3r2netri entry
  535. # ? for SCO Xenix 2.3.x with SCO (Lachman) TCP/IP, "make sco3r2lai"
  536. #     or (to add curses) "make sco3r2laic"
  537. #   for SCO UNIX...  ALSO READ COMMENTS in the SCO UNIX entries for more info!
  538. # ? for SCO UNIX/386 3.2.0 or 3.2.1, "make sco3r2" or "make sco3r2x"
  539. # ? for SCO UNIX/386 3.2.2, "make sco3r22" or "make sco3r22gcc"
  540. #     or "make sco3r22c"
  541. # ? for SCO UNIX/386 3.2.2 with SCO TCP/IP, "make sco3r22net"
  542. #     or "make sco3r22netc" (curses)
  543. # ? for SCO ODT 1.1, "make sco3r22net" or "make sco3r22netc" (curses)
  544. # + for SCO UNIX/386 3.2 V4.x, no network support, "make sco32v4"
  545. # +   or "make sco32v4ns" (this one uses no select() or sockets library)
  546. # + for SCO UNIX/386 3.2 V4.x with TCP/IP, "make sco32v4net"
  547. #     (also sco32v4gcc, sco32v4netgcc)
  548. # + for SCO UNIX/386 3.2 V5.0 - see SCO OpenServer.
  549. # + for SCO UNIX 3.2v4.x with TCP/IP, <dirent.h> for Extended Acer File
  550. #     System (EAFS), curses, ANSI C compilation, "make sco32v4net"
  551. # +   or (to use select()-based CONNECT module) "make sco32v4netx".
  552. # + for SCO UNIX 3.2v4.2, "make sco-odt30" (includes TCP/IP).
  553. # + for SCO MPX 3.0 - The SCO UNIX binary runs on the corresponding MPX system.
  554. #
  555. # NOTE: Also see below for other entries that are variations on these.
  556. # Also be sure to read the comments accompanying each SCO entry.
  557. # And yes, I know it's called Caldera now instead of SCO.
  558. # Also see Unixware section; Unixware has had so many owners there's no point
  559. # keeping track.
  560. #
  561. # + for SCO ODT 2.0, "make sco32v4net"
  562. # + for SCO ODT 3.0, "make sco-odt30"
  563. # + for SCO OpenServer 5.0 (OSR5), "make sco32v500"
  564. # + for SCO OpenServer 5.0 (OSR5) with networking, "make sco32v500net"
  565. # + for SCO OpenServer 5.0 (OSR5), gcc, "make sco32v500gcc"
  566. # + for SCO OpenServer 5.0 (OSR5), gcc, with networking, "make sco32v500netgcc"
  567. # + for SCO OpenServer 5.0 (OSR5), as above, ELF, "make sco32v500netgccelf"
  568. # + for SCO OpenServer 5.0.2, use "make sco32v502xxx" entries as above.
  569. # + for SCO OpenServer 5.0.4, use "make sco32v504xxx" entries as above.
  570. # + for SCO OpenServer 5.0.5, use "make sco32v505xxx" entries as above.
  571. #     Use the sco32v505udkxxx entries if you have the UDK rather than /bin/cc.
  572. # + for SCO OpenServer 5.0.6, use "make sco32v506xxx" entries as above.
  573. # + for SCO OpenServer 5.0.6a,use "make sco32v506axxx" entries as above.
  574. # ? for SCO (Univel) UnixWare 1.x, "make unixware" or "make unixwarenetc".
  575. #     If there are problems with this in C-K 7+ see notes at unixware entry.
  576. # + for SCO UnixWare 2.0.x, "make uw20"
  577. # + for SCO UnixWare 2.1.0, "make uw21"
  578. # + for SCO UnixWare 2.1.3, "make uw213"
  579. # + for SCO UnixWare 7, "make uw7"
  580. # + for SCO UnixWare 7 with IKSD support, "make uw7iksd" or "make uw7iksdudk"
  581. # + for SCO UnixWare 7 with OpenSSL, "make uw7ssl"
  582. # + for SCO (Caldera) Open UNIX 8, "make ou8"
  583. # + for Sharp Zaurus SL5500 PDA, "make zsl5500".
  584. # ? for Sequent with DYNIX/ptx 1.2.1, "make dynixptx12"
  585. # ? for Sequent with DYNIX/ptx 1.3 or 1.4 with TCP/IP, "make dynixptx13"
  586. # ? for Sequent with DYNIX/ptx 2.0 or 2.1 with TCP/IP, "make dynixptx20"
  587. #     or "dynixptx20c"
  588. # + for Sequent with DYNIX/ptx 2.1.6 on i486, "dynixptx216c"
  589. # ? for Sequent with DYNIX/ptx V4.1.3 with TCP/IP, "make dynixptx41c"
  590. # + for Sequent with DYNIX/ptx V4.4.2 with TCP/IP, "make dynixptx44"
  591. # ? for Sequent Balance 8000 or B8 with DYNIX 3.0.xx, "make dynix3"
  592. #    or "make dynix3noacu"
  593. # ? for Sequent Symmetry S81 with DYNIX 3.0.xx, "make dynix3"
  594. # ? for Sequent DYNIX 3.1.xx, "make dynix31" or "make dynix31c"
  595. # + for Siemens/Nixdorf SINIX-L Intel V5.41, "make sinix541i"
  596. # + for Siemens/Nixdorf SINIX-N MIPS V5.42, "make sinix542"
  597. # + for Siemens/Nixdorf SINIX-P MIPS V5.42 with gcc, "make sinix542g"
  598. # + for Siemens/Nixdorf SINIX-Z Intel V5.42, "make sinix542i"
  599. # + for Siemens/Nixdorf Reliant UNIX V5.43, "make sni543"
  600. # + for Siemens/Nixdorf Reliant UNIX V5.44, "make sni544"
  601. # ? for Silicon Graphics Iris System V IRIX 3.2 or earlier, "make iris"
  602. # ? for Silicon Graphics Sys V R3 with IRIX 3.3 or later, "make sys5r3"
  603. # ? for Silicon Graphics Iris Indigo with IRIX 4.0 or 5.0, "make irix40" or
  604. #     (to include Yellow Pages and Curses) "make irix40ypc"
  605. # ? for Silicon Graphics Iris Indigo or Elan with IRIX 4.0.x with microcode
  606. #     optimization and -O4, "make irix40u" or "irix40uc" (and read notes
  607. #     accompanying these entries).
  608. # + for Silicon Graphics IRIX 5.1, "make irix51" or "irix51x" (no optimize)
  609. # + for Silicon Graphics IRIX 5.2, "make irix52"
  610. # + for Silicon Graphics IRIX 5.3, "make irix53" or "irix53x" (no optimize)
  611. # + for Silicon Graphics IRIX 6.0, "make irix60".
  612. # + for Silicon Graphics IRIX 6.2, "make irix62".
  613. # + for Silicon Graphics IRIX 6.3, "make irix63".
  614. # + for Silicon Graphics IRIX 6.4, "make irix64" or "make irix64gcc".
  615. # + for Silicon Graphics (SGI) IRIX 6.5, "make irix65".
  616. # ? for Solaris 2.0-2.3 on SPARC or Intel, SunPro CC, "make solaris2x",
  617. # ?   or to add SunLink X.25 8.0x support, "make solaris2x25".
  618. # + for Solaris 2.4 built with gcc, "make solaris24g".
  619. # + for Solaris 2.0-2.3 on SPARC or Intel, GNU CC, "make solaris2xg".
  620. # + for Solaris 2.4 with X.25, "make solaris24x25".
  621. # + for Solaris 2.5 on SPARC or Intel, SunPro CC, "make solaris25".
  622. # +   or to add SunLink X.25 8.0x support, "make solaris25x25".
  623. # + for Solaris 2.5 on SPARC or Intel, GNU CC, "make solaris25g".
  624. # + for Solaris 2.6 on SPARC or Intel, "make solaris26".
  625. # + for Solaris 7 on SPARC or Intel, SunPro CC, "make solaris7".
  626. # + for Solaris 7 on SPARC or Intel, GNU CC, "make solaris7g".
  627. # + for Solaris 8 on SPARC or Intel, SunPro CC, "make solaris8".
  628. # + for Solaris 8 on SPARC or Intel, GNU CC, "make solaris8g".
  629. # + for Solaris 9 on SPARC (or Intel?), 32-bit, SunPro CC, "make solaris9".
  630. # + for Solaris 9 on SPARC (or Intel?), 32-bit, GNU CC, "make solaris9g".
  631. # + for Solaris 9 on SPARC (or Intel?), 64-bit, GNU CC, "make solaris9g64".
  632. # + for Solbourne 4/500 with OS/MP 4 "make sunos4"
  633. # + for Solbourne 4/500 with OS/MP 4.1 "make sunos41" or "make sunos41c"
  634. # ? for SONY NEWS with NEWS-OS 4.0.1C, "make sonynews"
  635. # ? for SONY NEWS with NEWS-OS 4.1.2C, "make sonynews"
  636. # ? for Sperry/UNISYS 5000/20, UTS V 5.2 3R1, "make sys5"
  637. # ? for Sperry/UNISYS 5000/30/35/50/55, UTS V 5.2 2.01, "make unisys5r2"
  638. # ? for Sperry/UNISYS 5000/80 with System V R3, "make sys5r3"
  639. # ? for Sperry/UNISYS 5000/95 with System V R3, "make sys5r3"
  640. #     For UNISYS SVR3 it might be necessary to "make sys5r3 KFLAGS=-UDYNAMIC"
  641. # ? for Stardent 1520, "make sys5r3"
  642. # ? for Stratus FTX 2.x, try "make ftx" or else "make sys5r4" or "sys5r4sx"
  643. # + for Stratus FTX 3.x, PA-RISC 1.0 or 2.0, "make ftx" or "make ftxtcp"
  644. # ? for Sun with Sun UNIX 3.5 and gcc, "make sunos3gcc"
  645. # ? for Sun with pre-4.0 SunOS versions, "make bsd" (or appropriate variant)
  646. # ? for Sun with SunOS 4.0, BSD environment, "make sunos4"
  647. # ? for Sun with SunOS 4.0, BSD, with SunLink X.25, make sunos4x25
  648. # + for Sun with SunOS 4.1 or 4.1.1, BSD environment, "make sunos41"
  649. #     or "make sunos41c" (curses) or "make sunos41gcc" (compile with gcc)
  650. # + for Sun with SunOS 4.1.x, BSD, with SunLink X.25 7.00 or earlier,
  651. #     "make sunos41x25" or "make sunos41x25c" (curses)
  652. # + for Sun with SunOS 4.1, 4.1.1, AT&T Sys V R3 environment, "make sunos41s5"
  653. # + for Sun with SunOS 4.1.2, "make sunos41" or any of its variations.
  654. #     NOTE:  All SunOS 4.x systems -- Shared libraries are used by default.
  655. #       If this causes problems, add -Bstatic to CFLAGS.
  656. #     NOTE2: When building C-Kermit under SunOS for the BSD universe,
  657. #       but /usr/5bin/cc is ahead of /usr/ucb/cc in your PATH, add
  658. #       "CC=/usr/ucb/cc CC2=/usr/ucb/cc" to the make entry.
  659. #     NOTE3: If an executable built on one type of Sun hardware does not work
  660. #       on another type, rebuild the program from source on the target machine.
  661. #   for Sun with Solaris 1.x use SunOS 4.1 entries.
  662. #   for Sun with Solaris 2.0 and higher use Solaris entries.
  663. # + for Sun SPARC with Linux, "make linux"
  664. # ? for Sun SPARC with OPENSTEP/Mach 4.1, "make nextquadfat"
  665. # ? for Sun SPARC with OPENSTEP/Mach 4.2, "make openstep42"
  666. # - for Tandy 16/6000 with Xenix 3.0, "make trs16" (C-Kermit 7.0 is too big)
  667. # ? for Tektronix 6130/4132/43xx (e.g.4301) with UTek OS, "make utek"
  668. #     or (for models without hardware flow control), "make uteknohwfc"
  669. # ? for Tektronix XD88 series with UTekV OS, "make utekvr3"
  670. # ? for Tri Star Flash Cache with Esix SVR3.2, "make sys5r3"
  671. # + for Tru-64 UNIX 4.0E, "make tru64-40e"
  672. # + for Tru-64 UNIX 4.0F, "make tru64-40f"
  673. # + for Tru-64 UNIX 4.0G, "make tru64-40g"
  674. # + for Tru-64 UNIX 5.0A, "make tru64-50a"
  675. # + for Tru-64 UNIX 5.1A, "make tru64-51a"
  676. # ? for Unistar, "make sys5"
  677. # ? for Unisys S/4040 68040 CTIX SVR3.2 6.4.1, "make ctix" or "make sys5r3"
  678. # ? for Unisys U5000 UNIX SVR3 6.x, "make sys5r3" or "make sys5r3c"
  679. # ? for Unisys U6000 UNIX SVR4 1.x, "make sys5r4nx" or "make sys5r4nxnetc"
  680. #   for Unisys ... (also see Sperry)
  681. #   for Univel - see UnixWare
  682. #   for Unixware - see SCO
  683. # ? for Valid Scaldstar, "make valid"
  684. # ? for Whitechapel MG01 Genix 1.3, "make white"
  685. # ? for Zilog ZEUS 3.21, "make zilog"
  686. #
  687. # The result should be a runnable program called "wermit" in the current
  688. # directory.  After satisfactory testing, you can rename wermit to "kermit"
  689. # and put it where users can find it.
  690. #
  691. # To remove intermediate and object files, "make clean".
  692. # If your C compiler produces files with an extension other than "o",
  693. # then "make clean EXT=u", "make clean EXT=s", or whatever.
  694. #
  695. # To run lint on the source files, "make lintsun", "make lintbsd",
  696. # "make lints5", as appropriate.
  697. #
  698. # ******************************
  699. # SECURE TARGETS
  700. #
  701. # Beginning with C-Kermit 7.0, secure targets are included, as are the
  702. # source modules (ckuat*.[ch], ck_*.[ch]) needed to build them.  Secure
  703. # target names are like the regular names, but with security features
  704. # indicated by plus (+) signs.  The features are:
  705. #
  706. # krb4     MIT Kerberos IV
  707. # krb5     MIT Kerberos V
  708. # openssl  OpenSSL (SSL/TLS)
  709. # zlib     ZLIB compression for SSL/TLS
  710. # srp      Stanford Secure Remote Password
  711. # pam      PAM (pluggable authentication module)
  712. # shadow   Shadow Password File
  713. #
  714. # You can build these targets if you have the Kermit source files and the
  715. # required libraries (Kerberos, OpenSSL, SRP, etc) and header files.  See:
  716. #   http://www.columbia.edu/kermit/security.html 
  717. # for specific details regarding supported versions.
  718. #
  719. # NOTE: OpenSSL 0.9.6 and earlier are not compatible with 0.9.7 and later.
  720. # C-Kermit code is designed for 0.9.6.  To build with 0.9.7 you must add
  721. # -DOPENSSL_097 to avoid missing symbols in the DES library and to use the
  722. # entry points that were renamed to avoid conflict with Kerberos 4.
  723. #
  724. # The following symbols are used to specify library and header file locations
  725. # Redefine them to the values used on your system by:
  726. # . editing this file
  727. # . defining the values on the command line
  728. # . defining the values in the environment and use the -e option
  729. #
  730. K4LIB=-L/usr/kerberos/lib
  731. K4INC=-I/usr/kerberos/include
  732. K5LIB=-L/usr/kerberos/lib
  733. K5INC=-I/usr/kerberos/include
  734. SRPLIB=-L/usr/local/lib
  735. SRPINC=-I/usr/local/include
  736. SSLLIB=-L/usr/local/ssl/lib
  737. SSLINC=-I/usr/local/ssl/include
  738. #
  739. # aix41+krb5+krb4:                    IBM AIX 4.1 with Kerberos IV and V
  740. # aix43gcc+krb5+krb4:                 IBM AIX 4.3 built with gcc, ditto
  741. # aix43gcc+krb5+krb4+openssl:         Ditto, plus SSL/TLS
  742. # aix43gcc+openssl:
  743. # hpux1100+openssl:                   HP-UX 11.xx with OpenSSL
  744. # irix6x+krb5:                        IRIX 6.x with Kerberos V
  745. # irix65+krb5:                        etc etc...
  746. # linux+krb5:
  747. # linux+krb5+krb4:
  748. # linux+srp:
  749. # linux+srp+pam:
  750. # linux+srp+gmp:
  751. # linux+srp+gmp+no-des:
  752. # linux+srp+gmp-export:
  753. # linux+srp+gmp+pam:
  754. # linux+shadow+pam:
  755. # linux+openssl:
  756. # linux+openssl+shadow:
  757. # linux+openssl+zlib+shadow+pam:
  758. # linux+srp+openssl:
  759. # linux+krb5+krb4+srp:
  760. # linux+krb5+krb4+srp+openssl:
  761. # linux+krb5+krb4+openssl:
  762. # linux+krb5+krb4+openssl+shadow:
  763. # linux+krb5+krb4+openssl+zlib+shadow:
  764. # linux+krb5+krb4+srp-export:
  765. # linux+krb5+krb4+srp+pam:
  766. # linux+krb5+krb4+srp+openssl+pam-debug:
  767. # linux+krb5+krb4+srp+openssl+pam:
  768. # linux+krb5+krb4+srp+openssl+zlib+pam:
  769. # linux+krb5+openssl+zlib+shadow+pam:
  770. # openbsd30+ssl (includes OpenSSL):
  771. # redhat71, redhat72, redhat73, redhat80 (Krb5, OpenSSL, Showdow, PAM, Zlib)
  772. # sco32v500net+ssl:
  773. # sco32v505net+ssl:
  774. # solaris2x+krb4:  
  775. # solaris2xg+krb4:
  776. # solaris2xg+openssl+pam+shadow:
  777. # solaris2xg+openssl+zlib+pam+shadow:
  778. # solaris2xg+krb5+krb4+openssl+shadow:
  779. # solaris25+krb4:
  780. # solaris25g+krb4:
  781. # solaris26g+openssl:
  782. # solaris8g+openssl+zlib+pam+shadow:
  783. # solaris8g+krb4:
  784. # solaris9g+openssl+zlib+pam+shadow:
  785. # sunos41gcc+krb4:                    SunOS 4.1 built with gcc with Kerberos IV
  786. # sunos41gcc+openssl:                 SunOS 4.1 built with gcc with OpenSSL
  787. # sunos41gcc+krb4+openssl:            ...with Kerberos IV and OpenSSL
  788. # sunos41gcc+krb4+openssl+zlib:       ditto, plus ZLIB compression
  789. # sunos41gcc+krb4+srp+openssl+zlib:   ditto, plus SRP
  790. # sunos41gcc+srp+openssl+zlib:        
  791. # uw7ssl
  792. #
  793. ##############################################################################
  794. #
  795. # NOTES FOR V7 AND 2.X BSD (BASED ON VERSION 4E OF C-KERMIT, 1987):
  796. #
  797. # For Unix Version 7, several variables must be defined to the values
  798. # associated with your system.  BOOTNAME=/edition7 is the kernel image on
  799. # okstate's Perkin-Elmer 3230.  Others will probably be /unix.  PROCNAME=proc
  800. # is the name of the structure assigned to each process on okstate's system.
  801. # This may be "_proc" or some other variation.  See <sys/proc.h> for more
  802. # info on your systems name conventions.  NPROCNAME=nproc is the name of a
  803. # kernel variable that tells how many "proc" structures there are.  Again
  804. # this may be different on your system, but nproc will probably be somewhere.
  805. # The variable NPTYPE is the type of the nproc variable -- int, short, etc.
  806. # which can probably be gleaned from <sys/param.h>.  The definition of DIRECT
  807. # is a little more complicated.  If nlist() returns, for "proc" only, the
  808. # address of the array, then you should define DIRECT as it is below.  If
  809. # however, nlist() returns the address of a pointer to the array, then you
  810. # should give DIRECT a null definition (DIRECT= ).  The extern declaration in
  811. # <sys/proc.h> should clarify this for you.  If it is "extern struct proc
  812. # *proc", then you should NOT define DIRECT.  If it is "extern struct proc
  813. # proc[]", then you should probably define DIRECT as it is below.  See
  814. # ckuv7.hlp for further information.
  815. #
  816. # For 2.9 BSD, the makefile may use pcc rather than cc for compiles; that's
  817. # what the CC and CC2 definitions are for (the current version of the
  818. # makefile uses cc for both; this was tested in version 4E of C-Kermit and
  819. # worked OK on the DEC Pro 380, but all bets are off for version 5A).  2.9
  820. # support basically follows the 4.1 path.  Some 2.9 systems use "dir.h" for
  821. # the directory header file, others will need to change this to "ndir.h".
  822. #
  823. # The v7 and 2.9bsd versions assume I&D space on a PDP-11.  When building
  824. # C-Kermit for v7 on a PDP-11, you should probably add the -i option to the
  825. # link flags.  Without I&D space, overlays will be necessary (if available),
  826. # or code segment mapping (a`la Pro/Venix) if that's available.
  827. #
  828. # C-Kermit 5A (and 6.0?) can be built for 2.10 and 2.11BSD, using overlays,
  829. # but a separate makefile is used because this one is too big.
  830. #
  831. ##############################################################################
  832. #
  833. # V7-specific variables.
  834. # These are set up for Perkin-Elmer 3230 V7 Unix:
  835. #
  836. PROC=proc
  837. DIRECT=
  838. NPROC=nproc
  839. NPTYPE=int
  840. BOOTFILE=/edition7
  841. #
  842. # ( For old Tandy TRS-80 Model 16A or 6000 V7-based Xenix, use PROC=_proc,
  843. #   DIRECT=-DDIRECT, NPROC=_Nproc, NPTYPE=short, BOOTFILE=/xenix )
  844. #
  845. ###########################################################################
  846. #
  847. #  Compile and Link variables:
  848. #
  849. #  EXT is the extension (file type) for object files, normally o.
  850. #  See MINIX entry for what to do if another filetype must be used.
  851. #
  852. EXT=o
  853. #LNKFLAGS=
  854. SHAREDLIB=
  855. CC= cc
  856. CC2= cc
  857. MAKE= make
  858. SHELL=/bin/sh
  859.  
  860. ###########################################################################
  861. # SAMPLE INSTALLATION SCRIPT
  862. #
  863. # Modify to suit your own computer's file organization and permissions.  If
  864. # you don't have write access to the destination directories, "make install"
  865. # fails.  In most cases, a real installation also requires you to chown /
  866. # chgrp the Kermit binary for the UUCP lockfile and/or tty devices, and
  867. # perhaps also to chmod +s the corresponding permission fields.
  868. #
  869. # Default binary, man, and doc directories are supplied below.  You can
  870. # override them in your 'make' command.  Examples:
  871. #
  872. #   make install                                   # Accept defaults.
  873. #   make "INFODIR=/usr/share/lib/kermit" install   # Override INFODIR default.
  874. #
  875. # You can also build and install in one step, e.g.:
  876. #
  877. #   make solaris8 install
  878. #
  879. # If you use the 'install' target to install C-Kermit, it creates an
  880. # UNINSTALL script that can be used to uninstall it.
  881. #
  882. WERMIT = makewhat
  883. BINARY = wermit
  884. DESTDIR = 
  885. BINDIR = /usr/local/bin
  886. MANDIR = /usr/man/man1
  887. MANEXT = 1
  888. SRCDIR =
  889. INFODIR =
  890. CERTDIR =
  891.  
  892. TEXTFILES = COPYING.TXT ckcbwr.txt ckubwr.txt ckuins.txt ckccfg.txt \
  893.         ckcplm.txt ckermit.ini ckermod.ini ckermit70.txt ckermit80.txt
  894.  
  895. ALL = $(WERMIT)
  896.  
  897. all: $(ALL)
  898.  
  899. .c.o:
  900.     $(CC) $(CFLAGS) -DKTARGET=\"$(KTARGET)\" -c $<
  901.  
  902. #Clean up intermediate and object files
  903. clean:
  904.     @echo 'Removing object files...'
  905.     -rm -f ckcmai.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) ckuus2.$(EXT) \
  906. ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) ckcpro.$(EXT) ckcfns.$(EXT) \
  907. ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) ckucon.$(EXT) ckutio.$(EXT) \
  908. ckufio.$(EXT) ckudia.$(EXT) ckuscr.$(EXT) ckwart.$(EXT) ckuusx.$(EXT) \
  909. ckuusy.$(EXT) ckcnet.$(EXT) ckuus6.$(EXT) ckuus7.$(EXT) ckusig.$(EXT) \
  910. ckucns.$(EXT) ckcmdb.$(EXT) ckuath.$(EXT) ckctel.$(EXT) ckclib.$(EXT) \
  911. ckcuni.$(EXT) ck_crp.$(EXT) ck_ssl.$(EXT) ckupty.$(EXT) ckcftp.$(EXT) \
  912. ckcpro.c wart
  913.  
  914. # Install C-Kermit after building -- IMPORTANT: Read the instructions above
  915. # (SAMPLE INSTALLATION SCRIPT).  For SSL/TLS versions, ca_certs.pem file
  916. # should be installed in the appropriate place for your OpenSSL library, e.g.:
  917. #   cp ca_certs.pem /usr/local/ssl/
  918. #   cp ca_certs.pem /usr/share/ssl/
  919. #
  920. # To make sure 'man' notices the new source file and doesn't keep
  921. # showing the old formatted version, remove the old formatted version,
  922. # something like this:
  923. #        rm -f $(MANDIR)/../cat$(MANEXT)/kermit.$(MANEXT)
  924. # or this (which requires CATDIR to be defined):
  925. #        rm -f $(CATDIR)/kermit.$(MANEXT)
  926. #
  927. # As of C-Kermit 8.0.205 this target also builds an UNINSTALL script, and
  928. # so it might be too long for some old Bourne shells, in which case you can
  929. # use a different shell:
  930. #
  931. #   make SHELL=ksh install
  932. #   make SHELL=/bin/posix/sh install
  933. #
  934. install:
  935.     @echo Installing C-Kermit version $(CKVER)...;\
  936.     rm -f UNINSTALL;\
  937.     exec 3>./UNINSTALL;\
  938.     echo "# C-Kermit UNINSTALL script" >&3;\
  939.     echo "# `date`\n" >&3;\
  940.     echo "CKVER=$(CKVER)" >&3;\
  941.     echo "PrN Uninstalling C-Kermit version $(CKVER)..." >&3;\
  942.     echo DESTDIR=$(DESTDIR);\
  943.     if test -n "$(DESTDIR)"; then\
  944.         if test -d $(DESTDIR); then\
  945.             echo  "$(DESTDIR) exists...\n";\
  946.         else\
  947.             echo "Creating $(DESTDIR)...";\
  948.             DESTDIR=`echo $(DESTDIR) | sed 's!/*$$!!'`;\
  949.             mkdir $$DESTDIR  || exit 1;\
  950.         fi;\
  951.         chmod 755 $(DESTDIR) || exit 1;\
  952.     fi;\
  953.     echo BINARY=$(BINARY);\
  954.     if test -f $(BINARY); then\
  955.         ls -l $(BINARY);\
  956.     else\
  957.         echo "?$(BINARY) not found";\
  958.         exit 1;\
  959.     fi;\
  960.     if test -z "$(DESTDIR)$(BINDIR)"; then\
  961.         echo "Binary directory not specified";\
  962.         exit 1;\
  963.     fi;\
  964.     if test -d $(DESTDIR)$(BINDIR); then\
  965.         echo  "$(DESTDIR)$(BINDIR) exists...";\
  966.     else\
  967.         echo "Creating $(DESTDIR)$(BINDIR)/...";\
  968.         mkdir     $(DESTDIR)$(BINDIR) || exit 1;\
  969.         chmod 755 $(DESTDIR)$(BINDIR);\
  970.     fi;\
  971.     cp $(BINARY) $(DESTDIR)$(BINDIR)/kermit || exit 1;\
  972.     chmod 755    $(DESTDIR)$(BINDIR)/kermit || exit 1;\
  973.     rm -f        $(DESTDIR)$(BINDIR)/kermit-sshsub;\
  974.     ln -s        $(DESTDIR)$(BINDIR)/kermit\
  975.              $(DESTDIR)$(BINDIR)/kermit-sshsub || exit 1;\
  976.     echo 'set flag=f\nPrC Removing binaries' >&3;\
  977.     echo "RmF $(DESTDIR)$(BINDIR)/kermit-sshsub" >&3;\
  978.     echo "RmF $(DESTDIR)$(BINDIR)/kermit" >&3;\
  979.     if test -f ckermit.ini; then\
  980.         echo "#!$(DESTDIR)$(BINDIR)/kermit" >\
  981.             $(DESTDIR)$(BINDIR)/_tmp.ini;\
  982.         cat ckermit.ini >> $(DESTDIR)$(BINDIR)/_tmp.ini;\
  983.         mv $(DESTDIR)$(BINDIR)/_tmp.ini\
  984.            $(DESTDIR)$(BINDIR)/ckermit.ini;\
  985.         chmod 755 $(DESTDIR)$(BINDIR)/ckermit.ini;\
  986.         echo "RmF $(DESTDIR)$(BINDIR)/ckermit.ini" >&3;\
  987.     fi;\
  988.     echo;\
  989.     echo 'EfM' >&3;\
  990.     echo "Kermit binary installed:";\
  991.     ls -l $(DESTDIR)$(BINDIR)/kermit\
  992.           $(DESTDIR)$(BINDIR)/kermit-sshsub\
  993.           $(DESTDIR)$(BINDIR)/ckermit.ini;\
  994.     echo;\
  995.     echo " WARNING: If C-Kermit is to be used for dialing out,";\
  996.     echo " you must change its owner and group and permissions";\
  997.     echo " to match the 'cu' program.  See the ckuins.txt file";\
  998.     echo " for details.";\
  999.     echo;\
  1000.     echo MANDIR=$(MANDIR);\
  1001.     if test -n "$(MANDIR)"; then\
  1002.         if test -d $(MANDIR); then\
  1003.             echo  "$(MANDIR) exists...";\
  1004.         else\
  1005.             echo "Creating $(MANDIR)...";\
  1006.             mkdir $(MANDIR) || exit 1;\
  1007.             chmod 755 $(MANDIR) || exit 1;\
  1008.         fi;\
  1009.         echo "Installing man page...";\
  1010.         rm -f $(MANDIR)/kermit.$(MANEXT);\
  1011.         cp    ckuker.nr $(MANDIR)/kermit.$(MANEXT) || exit 1;\
  1012.         chmod 644       $(MANDIR)/kermit.$(MANEXT) || exit 1;\
  1013.         echo 'set flag=f\nPrC Removing man pages' >&3;\
  1014.         echo "RmF $(MANDIR)/kermit.$(MANEXT)" >&3;\
  1015.         echo 'EfM' >&3;\
  1016.         echo;\
  1017.     else\
  1018.         echo "Not installing man page!\n";\
  1019.     fi;\
  1020.     echo CERTDIR=$(CERTDIR);\
  1021.     if test -n "$(CERTDIR)"; then\
  1022.         if test -f ca_certs.pem; then\
  1023.             if test -d $(CERTDIR); then\
  1024.                 echo  "$(CERTDIR) exists...";\
  1025.             else\
  1026.                 echo "Creating $(CERTDIR)...";\
  1027.                 mkdir $(CERTDIR) || exit 1;\
  1028.                 chmod 755 $(CERTDIR) || exit 1;\
  1029.             fi;\
  1030.             echo "Installing certificates file...";\
  1031.             cp ca_certs.pem $(CERTDIR) || exit 1;\
  1032.             echo 'set flag=f' >&3;\
  1033.             echo 'PrC Removing certificates file' >&3;\
  1034.             echo "RmF $(CERTDIR)/ca_certs.pem" >&3;\
  1035.             echo 'EfM' >&3;\
  1036.             echo;\
  1037.         fi;\
  1038.     else\
  1039.         echo "Not installing certificates file!\n";\
  1040.     fi;\
  1041.     echo SRCDIR=$(DESTDIR)$(SRCDIR);\
  1042.     if test -n "$(SRCDIR)"; then\
  1043.         echo "Installing source files...";\
  1044.         if test -d $(DESTDIR)$(SRCDIR); then\
  1045.             echo  "$(DESTDIR)$(SRCDIR) exists...";\
  1046.         else\
  1047.             echo "Creating $(DESTDIR)$(SRCDIR)/...";\
  1048.             mkdir     $(DESTDIR)$(SRCDIR) || exit 1;\
  1049.             chmod 755 $(DESTDIR)$(SRCDIR);\
  1050.         fi;\
  1051.         echo "Copying source files to $(DESTDIR)$(SRCDIR)...";\
  1052.         echo 'set flag=f\nPrC Removing source files' >&3;\
  1053.         for TextFile in COPYING.TXT ck[cuw_]*.[cwh] makefile; do\
  1054.             cp $$TextFile $(DESTDIR)$(SRCDIR)/ && echo ".\c";\
  1055.             echo "RmF $(DESTDIR)$(SRCDIR)/$$TextFile" >&3;\
  1056.         done; echo;\
  1057.         echo 'EfM' >&3;\
  1058.         ( cd $(DESTDIR)$(SRCDIR)/ &&\
  1059.         ls -l COPYING.TXT ck[cuw_]*.[cwh] makefile );echo;\
  1060.     else\
  1061.         echo "Not installing source code!\n";\
  1062.     fi;\
  1063.     echo INFODIR=$(DESTDIR)$(INFODIR);\
  1064.     if test -n "$(INFODIR)"; then\
  1065.         echo "Installing info files...";\
  1066.         if test -d $(DESTDIR)$(INFODIR); then\
  1067.             echo  "$(DESTDIR)$(INFODIR) exists...";\
  1068.         else\
  1069.             echo "Creating $(DESTDIR)$(INFODIR)/...";\
  1070.             mkdir     $(DESTDIR)$(INFODIR) || exit 1;\
  1071.             chmod 755 $(DESTDIR)$(INFODIR);\
  1072.         fi;\
  1073.         echo "Copying text files to $(DESTDIR)$(INFODIR)...";\
  1074.         echo 'set flag=f\nPrC Removing text files' >&3;\
  1075.         FileCopyList='';\
  1076.         for TextFile in $(TEXTFILES); do\
  1077.             test -f $$TextFile || continue;\
  1078.             cp $$TextFile $(DESTDIR)$(INFODIR) && echo ".\c" &&\
  1079.             FileCopyList="$$FileCopyList $$TextFile";\
  1080.             echo "RmF $(DESTDIR)$(INFODIR)/$$TextFile" >&3;\
  1081.         done; echo;\
  1082.         echo 'EfM' >&3;\
  1083.         ( cd $(DESTDIR)$(INFODIR)/ && chmod  644   $$FileCopyList );\
  1084.         ( cd $(DESTDIR)$(INFODIR)/ && pwd && ls -l $$FileCopyList );\
  1085.     else\
  1086.         echo "Not installing text files!\n";\
  1087.     fi;\
  1088.     echo "set flag=d\nPrN Removing empty dirs..." >&3;\
  1089.     echo "RmD $(DESTDIR)$(BINDIR)" >&3;\
  1090.     echo "RmD $(DESTDIR)$(SRCDIR)" >&3;\
  1091.     echo "RmD $(DESTDIR)$(INFODIR)" >&3;\
  1092.     echo "RmD $(CERTDIR)" >&3;\
  1093.     echo "RmD $(MANDIR)" >&3;\
  1094.     echo "RmD $(DESTDIR)" >&3;\
  1095.     echo "EfM" >&3;\
  1096.     echo "PrN C-Kermit version $(CKVER) is uninstalled!" >&3;\
  1097.     echo C-Kermit version $(CKVER) installed!
  1098.  
  1099. # UN-Install C-Kermit after building
  1100. # Please to not remove the extra blanks before and after '{}' within the 
  1101. # functions. You would get syntax errors for some older Bourne shells! Best is 
  1102. # you don't change or remove anything.
  1103. #
  1104. uninstall:
  1105.     @if test ! -f UNINSTALL; then\
  1106.         echo "?C-Kermit UNINSTALL data file not found!";\
  1107.         exit 1;\
  1108.     fi; \
  1109.     X=`grep '^CKVER='$(CKVER)'$$' ./UNINSTALL || :`;\
  1110.     if test -z "$$X"; then\
  1111.         echo "?UNINSTALL file is not for C-Kermit version $(CKVER)";\
  1112.         exit 2;\
  1113.     fi;\
  1114.     PrN () { echo "$$*"; };\
  1115.     PrC () { echo "$$* \c"; };\
  1116.     RmF () { test -f "$$1" && rm -f "$$1" && echo ".\c" && flag=F ; };\
  1117.     RmD () { \
  1118.     dir=$$1;\
  1119.     while test -d "$$dir"; do\
  1120.         rmdir "$$dir" 2>&- || return && echo "$$dir" && flag=D;\
  1121.         dir=`echo "$$dir" | sed 's!/[^/]*/*$$!!'`;\
  1122.     done; \
  1123.     };\
  1124.     EfM () { \
  1125.     case "$$flag" in\
  1126.         f) echo "- Nothing to remove!";;\
  1127.         d) echo "Nothing to remove!";;\
  1128.         F) echo " done";;\
  1129.         D) echo "done";;\
  1130.     esac; \
  1131.     };\
  1132.     while read Act Args; do\
  1133.         case $$Act in\
  1134.             EfM) EfM;;\
  1135.             RmD) RmD $$Args;;\
  1136.             RmF) RmF $$Args;;\
  1137.             PrN) PrN $$Args;;\
  1138.             PrC) PrC $$Args;;\
  1139.             set) eval $$Args;;\
  1140.         esac;\
  1141.     done < ./UNINSTALL
  1142.  
  1143. makewhat:
  1144.     @echo 'make what?  You must tell which platform to make C-Kermit for.'
  1145.     @echo Examples: make linux, make hpux1100, make aix43, make solaris8.
  1146.     @echo Please read the comments at the beginning of the makefile.
  1147.  
  1148. ###########################################################################
  1149. #
  1150. # Dependencies Section:
  1151.  
  1152. # Normal version
  1153.  
  1154. wermit:    ckcmai.$(EXT) ckclib.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) ckuus2.$(EXT) \
  1155.         ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) ckuus6.$(EXT) \
  1156.         ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) ckcpro.$(EXT) \
  1157.         ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) \
  1158.         ckucon.$(EXT) ckutio.$(EXT) ckufio.$(EXT) ckudia.$(EXT) \
  1159.         ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) \
  1160.         ckcuni.$(EXT) ckupty.$(EXT) ckcftp.$(EXT)
  1161.     $(CC2) $(LNKFLAGS) -o wermit \
  1162.         ckcmai.$(EXT) ckclib.$(EXT) ckutio.$(EXT) ckufio.$(EXT) \
  1163.         ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) \
  1164.         ckcpro.$(EXT) ckucmd.$(EXT) ckuus2.$(EXT) ckuus3.$(EXT) \
  1165.         ckuus4.$(EXT) ckuus5.$(EXT) ckuus6.$(EXT) ckuus7.$(EXT) \
  1166.         ckuusx.$(EXT) ckuusy.$(EXT) ckuusr.$(EXT) ckucon.$(EXT) \
  1167.         ckudia.$(EXT) ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) \
  1168.         ckusig.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) ckcftp.$(EXT) \
  1169.         $(LIBS)
  1170.  
  1171. # Version with CONNECT module that uses select() instead of fork()
  1172.  
  1173. xermit:    ckcmai.$(EXT) ckclib.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) ckuus2.$(EXT) \
  1174.         ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) ckuus6.$(EXT) \
  1175.         ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) ckcpro.$(EXT) \
  1176.         ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) \
  1177.         ckucns.$(EXT) ckutio.$(EXT) ckufio.$(EXT) ckudia.$(EXT) \
  1178.         ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) \
  1179.         ckcuni.$(EXT) ckupty.$(EXT) ckcftp.$(EXT) ckuath.$(EXT) \
  1180.         ck_crp.$(EXT) ck_ssl.$(EXT)
  1181.     $(CC2) $(LNKFLAGS) -o wermit \
  1182.         ckcmai.$(EXT) ckclib.$(EXT) ckutio.$(EXT) ckufio.$(EXT) \
  1183.         ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) \
  1184.         ckcpro.$(EXT) ckucmd.$(EXT) ckuus2.$(EXT) ckuus3.$(EXT) \
  1185.         ckuus4.$(EXT) ckuus5.$(EXT) ckuus6.$(EXT) ckuus7.$(EXT) \
  1186.         ckuusx.$(EXT) ckuusy.$(EXT) ckuusr.$(EXT) ckucns.$(EXT) \
  1187.         ckudia.$(EXT) ckuscr.$(EXT) ckcnet.$(EXT) ckusig.$(EXT) \
  1188.         ckctel.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) ckcftp.$(EXT) \
  1189.         ckuath.$(EXT) ck_crp.$(EXT) ck_ssl.$(EXT) $(LIBS)
  1190.  
  1191. # Malloc Debugging version
  1192.  
  1193. mermit:    ckcmdb.$(EXT) ckcmai.$(EXT) ckclib.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) \
  1194.         ckuus2.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) \
  1195.         ckuus6.$(EXT) ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) \
  1196.         ckcpro.$(EXT) ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) \
  1197.         ckuxla.$(EXT) ckucon.$(EXT) ckutio.$(EXT) ckufio.$(EXT) \
  1198.         ckudia.$(EXT) ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) \
  1199.         ckusig.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) ckcftp.$(EXT)
  1200.     $(CC2) $(LNKFLAGS) -o mermit ckcmdb.$(EXT) ckclib.$(EXT) ckcmai.$(EXT)\
  1201.         ckutio.$(EXT) ckufio.$(EXT) ckcfns.$(EXT) ckcfn2.$(EXT) \
  1202.         ckcfn3.$(EXT) ckuxla.$(EXT) ckcpro.$(EXT) ckucmd.$(EXT) \
  1203.         ckuus2.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) \
  1204.         ckuus6.$(EXT) ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) \
  1205.         ckuusr.$(EXT) ckucon.$(EXT) ckudia.$(EXT) ckuscr.$(EXT) \
  1206.         ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) ckcuni.$(EXT) \
  1207.         ckupty.$(EXT) ckcftp.$(EXT) $(LIBS)
  1208.  
  1209. # Kerberized Version - Subject to USA export restrictions.
  1210.  
  1211. # NOTE: We don't use this any more -- As of 15 Feb 2003, the "xermit"
  1212. # target is used for both secure and regular version.
  1213.  
  1214. krbmit:    ckcmai.$(EXT) ckclib.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) ckuus2.$(EXT) \
  1215.         ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) ckuus6.$(EXT) \
  1216.         ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) ckcpro.$(EXT) \
  1217.         ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) \
  1218.         ckucns.$(EXT) ckutio.$(EXT) ckufio.$(EXT) ckudia.$(EXT) \
  1219.         ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) \
  1220.         ckuath.$(EXT) ck_crp.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) \
  1221.         ckcftp.$(EXT) ck_ssl.$(EXT)
  1222.     $(CC2) $(LNKFLAGS) -o krbmit ckcmai.$(EXT) ckclib.$(EXT) \
  1223.         ckutio.$(EXT) ckufio.$(EXT) ckcfns.$(EXT) ckcfn2.$(EXT) \
  1224.         ckcfn3.$(EXT) ckuxla.$(EXT) ckcpro.$(EXT) ckucmd.$(EXT) \
  1225.         ckuus2.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) \
  1226.         ckuus6.$(EXT) ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) \
  1227.         ckuusr.$(EXT) ckucns.$(EXT) ckudia.$(EXT) ckuscr.$(EXT) \
  1228.         ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) ckuath.$(EXT) \
  1229.         ck_crp.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) ckcftp.$(EXT) \
  1230.         ck_ssl.$(EXT) $(LIBS)
  1231.  
  1232. krbmit-debug:    ckcmai.$(EXT) ckclib.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) \
  1233.         ckuus2.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) \
  1234.         ckuus6.$(EXT) ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) \
  1235.         ckcpro.$(EXT) ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) \
  1236.         ckuxla.$(EXT) ckucns.$(EXT) ckutio.$(EXT) ckufio.$(EXT) \
  1237.         ckudia.$(EXT) ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) \
  1238.         ckusig.$(EXT) ckuath.$(EXT) ck_crp.$(EXT) ckcuni.$(EXT) \
  1239.         ckupty.$(EXT) ck_ssl.$(EXT) ckcmdb.$(EXT) ckcftp.$(EXT)
  1240.     $(CC2) $(LNKFLAGS) -o krbmit ckcmdb.$(EXT) ckcmai.$(EXT) \
  1241.         ckclib.$(EXT) ckutio.$(EXT) ckufio.$(EXT) ckcfns.$(EXT) \
  1242.         ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) ckcpro.$(EXT) \
  1243.         ckucmd.$(EXT) ckuus2.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) \
  1244.         ckuus5.$(EXT) ckuus6.$(EXT) ckuus7.$(EXT) ckuusx.$(EXT) \
  1245.         ckuusy.$(EXT) ckuusr.$(EXT) ckucns.$(EXT) ckudia.$(EXT) \
  1246.         ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) \
  1247.         ckuath.$(EXT) ck_crp.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) \
  1248.         ckcftp.$(EXT) ck_ssl.$(EXT) $(LIBS)
  1249.  
  1250. # SRP(TM) Version - Subject to USA export restrictions.
  1251.  
  1252. srpmit:    ckcmai.$(EXT) ckclib.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) ckuus2.$(EXT) \
  1253.         ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) ckuus6.$(EXT) \
  1254.         ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) ckcpro.$(EXT) \
  1255.         ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) \
  1256.         ckucns.$(EXT) ckutio.$(EXT) ckufio.$(EXT) ckudia.$(EXT) \
  1257.         ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) \
  1258.         ckuath.$(EXT) ck_crp.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) \
  1259.         ckcftp.$(EXT) ck_ssl.$(EXT)
  1260.     $(CC2) $(LNKFLAGS) -o srpmit ckcmai.$(EXT) ckclib.$(EXT) \
  1261.         ckutio.$(EXT) ckufio.$(EXT) ckcfns.$(EXT) ckcfn2.$(EXT) \
  1262.         ckcfn3.$(EXT) ckuxla.$(EXT) ckcpro.$(EXT) ckucmd.$(EXT) \
  1263.         ckuus2.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) \
  1264.         ckuus6.$(EXT) ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) \
  1265.         ckuusr.$(EXT) ckucns.$(EXT) ckudia.$(EXT) ckuscr.$(EXT) \
  1266.         ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) ckuath.$(EXT) \
  1267.         ck_crp.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) ck_ssl.$(EXT) \
  1268.         ckcftp.$(EXT) $(LIBS)
  1269.  
  1270. # Kerberized Version - Not subject to USA export restrictions.
  1271.  
  1272. krbmit-export:    ckcmai.$(EXT) \
  1273.         ckclib.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) ckuus2.$(EXT) \
  1274.         ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) ckuus6.$(EXT) \
  1275.         ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) ckcpro.$(EXT) \
  1276.         ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) \
  1277.         ckucns.$(EXT) ckutio.$(EXT) ckufio.$(EXT) ckudia.$(EXT) \
  1278.         ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) \
  1279.         ckuath.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) ckcftp.$(EXT)
  1280.     $(CC2) $(LNKFLAGS) -o krbmit-export ckcmai.$(EXT) ckclib.$(EXT) \
  1281.         ckutio.$(EXT) ckufio.$(EXT) ckcfns.$(EXT) ckcfn2.$(EXT) \
  1282.         ckcfn3.$(EXT) ckuxla.$(EXT) ckcpro.$(EXT) ckucmd.$(EXT) \
  1283.         ckuus2.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) \
  1284.         ckuus6.$(EXT) ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) \
  1285.         ckuusr.$(EXT) ckucns.$(EXT) ckudia.$(EXT) ckuscr.$(EXT) \
  1286.         ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) ckuath.$(EXT) \
  1287.         ckcuni.$(EXT) ckupty.$(EXT) ckcftp.$(EXT) $(LIBS)
  1288.  
  1289. # SRP(TM) Version - Not subject to USA export restrictions.
  1290.  
  1291. srpmit-export:    ckcmai.$(EXT) \
  1292.         ckclib.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) ckuus2.$(EXT) \
  1293.         ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) ckuus6.$(EXT) \
  1294.         ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) ckcpro.$(EXT) \
  1295.         ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) \
  1296.         ckucns.$(EXT) ckutio.$(EXT) ckufio.$(EXT) ckudia.$(EXT) \
  1297.         ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) \
  1298.         ckuath.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) ckcftp.$(EXT)
  1299.     $(CC2) $(LNKFLAGS) -o srpmit-export ckcmai.$(EXT) ckclib.$(EXT) \
  1300.         ckutio.$(EXT) ckufio.$(EXT) ckcfns.$(EXT) ckcfn2.$(EXT) \
  1301.         ckcfn3.$(EXT) ckuxla.$(EXT) ckcpro.$(EXT) ckucmd.$(EXT) \
  1302.         ckuus2.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) \
  1303.         ckuus6.$(EXT) ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) \
  1304.         ckuusr.$(EXT) ckucns.$(EXT) ckudia.$(EXT) ckuscr.$(EXT) \
  1305.         ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) ckuath.$(EXT) \
  1306.         ckcuni.$(EXT) ckupty.$(EXT) ckcftp.$(EXT) $(LIBS)
  1307.  
  1308. ###########################################################################
  1309. # man page...
  1310. #
  1311. ckuker.nr:
  1312.     @echo This target is obsolete.
  1313.     @echo The ckuker.nr file no longer needs any preprocessing.
  1314.  
  1315. ###########################################################################
  1316. # Dependencies for each module...
  1317. #
  1318. ckcmai.$(EXT): ckcmai.c ckcker.h ckcdeb.h ckcsym.h ckcasc.h ckcnet.h ckcsig.h \
  1319.         ckuusr.h ckctel.h ckclib.h
  1320.  
  1321. ckclib.$(EXT): ckclib.c ckclib.h ckcdeb.h ckcasc.h ckcsym.h
  1322.  
  1323. ckcpro.$(EXT): ckcpro.c ckcker.h ckcdeb.h ckcsym.h ckcasc.h ckclib.h
  1324.  
  1325. ckcpro.c: ckcpro.w wart ckcdeb.h ckcsym.h ckcasc.h ckcker.h ckcnet.h ckctel.h \
  1326.      ckclib.h
  1327.     ./wart ckcpro.w ckcpro.c
  1328.  
  1329. ckcfns.$(EXT): ckcfns.c ckcker.h ckcdeb.h ckcsym.h ckcasc.h ckcxla.h ckcuni.h \
  1330.         ckuxla.h ckclib.h ckcnet.h
  1331.  
  1332. ckcfn2.$(EXT): ckcfn2.c ckcker.h ckcdeb.h ckcsym.h ckcasc.h ckcxla.h \
  1333.         ckuxla.h ckctel.h ckclib.h ckcnet.h ckcuni.h
  1334.  
  1335. ckcfn3.$(EXT): ckcfn3.c ckcker.h ckcdeb.h ckcsym.h ckcasc.h ckcxla.h \
  1336.         ckuxla.h ckclib.h ckcuni.h
  1337.  
  1338. ckuxla.$(EXT): ckuxla.c ckcker.h ckcsym.h ckcdeb.h ckcxla.h ckuxla.h ckclib.h \
  1339.          ckcuni.h
  1340.  
  1341. ckcuni.$(EXT): ckcuni.c ckcdeb.h ckcker.h ckucmd.h ckcuni.h ckcxla.h ckuxla.h
  1342.  
  1343. ckuusr.$(EXT): ckuusr.c ckucmd.h ckcker.h ckuusr.h ckcsym.h ckcdeb.h ckcxla.h \
  1344.         ckuxla.h ckcasc.h ckcnet.h ckctel.h ckclib.h ckcuni.h
  1345.  
  1346. ckuus2.$(EXT): ckuus2.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcxla.h ckuxla.h \
  1347.         ckcasc.h ckcnet.h ckcsym.h ckctel.h ckclib.h ckcuni.h
  1348.  
  1349. ckuus3.$(EXT): ckuus3.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcxla.h ckuxla.h \
  1350.         ckcasc.h ckcnet.h ckcsym.h ckctel.h ckclib.h ckcuni.h
  1351.  
  1352. ckuus4.$(EXT): ckuus4.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcxla.h ckuxla.h \
  1353.         ckcasc.h ckcnet.h ckuver.h ckcsym.h ckctel.h ckclib.h ckcuni.h
  1354.  
  1355. ckuus5.$(EXT): ckuus5.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcasc.h ckcnet.h \
  1356.          ckcsym.h ckctel.h ckclib.h ckcxla.h ckuxla.h ckcuni.h
  1357.  
  1358. ckuus6.$(EXT): ckuus6.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcasc.h ckcnet.h \
  1359.          ckcsym.h ckctel.h ckclib.h
  1360.  
  1361. ckuus7.$(EXT): ckuus7.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcxla.h ckuxla.h \
  1362.         ckcasc.h ckcnet.h ckcsym.h ckctel.h ckclib.h ckcuni.h
  1363.  
  1364. ckuusx.$(EXT): ckuusx.c ckcker.h ckuusr.h ckcdeb.h ckcasc.h ckcsym.h \
  1365.         ckcsig.h ckcnet.h ckctel.h ckclib.h ckcxla.h ckuxla.h ckcuni.h
  1366.  
  1367. ckuusy.$(EXT): ckuusy.c ckcker.h ckcdeb.h ckcasc.h ckcnet.h ckcsym.h ckctel.h \
  1368.          ckclib.h
  1369.  
  1370. ckucmd.$(EXT): ckucmd.c ckcasc.h ckucmd.h ckcdeb.h ckcsym.h ckctel.h ckclib.h
  1371.  
  1372. ckufio.$(EXT): ckufio.c ckcdeb.h ckuver.h ckcsym.h ckclib.h \
  1373.         ckcxla.h ckuxla.h ckcuni.h
  1374.  
  1375. ckutio.$(EXT): ckutio.c ckcdeb.h ckcnet.h ckuver.h ckcsym.h ckctel.h ckclib.h
  1376.  
  1377. ckucon.$(EXT): ckucon.c ckcker.h ckcdeb.h ckcasc.h ckcnet.h ckcsym.h ckctel.h \
  1378.          ckclib.h
  1379.  
  1380. ckucns.$(EXT): ckucns.c ckcker.h ckcdeb.h ckcasc.h ckcnet.h ckcsym.h ckctel.h \
  1381.          ckclib.h ckcxla.h ckuxla.h ckcuni.h
  1382.  
  1383. ckcnet.$(EXT): ckcnet.c ckcdeb.h ckcker.h ckcnet.h ckcsym.h ckcsig.h ckctel.h \
  1384.          ckclib.h
  1385.  
  1386. ckctel.$(EXT): ckcsym.h ckcdeb.h ckcker.h ckcnet.h ckctel.h ckclib.h
  1387.  
  1388. wart: ckwart.$(EXT)
  1389.     $(CC) $(LNKFLAGS) -o wart ckwart.$(EXT) $(LIBS)
  1390.  
  1391. ckcmdb.$(EXT): ckcmdb.c ckcdeb.h ckcsym.h ckclib.h
  1392.  
  1393. ckwart.$(EXT): ckwart.c
  1394.  
  1395. ckudia.$(EXT): ckudia.c ckcker.h ckcdeb.h ckucmd.h ckcasc.h ckcsym.h ckcsig.h \
  1396.         ckcnet.h ckctel.h ckclib.h
  1397.  
  1398. ckuscr.$(EXT): ckuscr.c ckcker.h ckcdeb.h ckcasc.h ckcsym.h ckcsig.h \
  1399.         ckcnet.h ckctel.h ckclib.h
  1400.  
  1401. ckusig.$(EXT): ckusig.c ckcasc.h ckcdeb.h ckcker.h ckcnet.h ckuusr.h \
  1402.         ckcsig.h ckctel.h ckclib.h
  1403.  
  1404. ckcftp.$(EXT): ckcftp.c ckcdeb.h ckcasc.h ckcker.h ckucmd.h ckuusr.h \
  1405.         ckcnet.h ckctel.h ckcxla.h ckuxla.h ckcuni.h
  1406.  
  1407. ckupty.$(EXT): ckupty.c ckupty.h ckcdeb.h
  1408.  
  1409. ckuath.$(EXT): ckuath.c ckcdeb.h ckucmd.h ckuath.h ckuat2.h ckctel.h \
  1410.          ckclib.h ckcnet.h
  1411.  
  1412. ck_crp.$(EXT): ck_crp.c ckcdeb.h ckcnet.h ckuath.h ckclib.h
  1413.  
  1414. ck_ssl.$(EXT): ck_ssl.c ckcdeb.h ckucmd.h ckuath.h ckuat2.h ckctel.h \
  1415.          ckclib.h ck_ssl.h
  1416.  
  1417. ###########################################################################
  1418. #
  1419. # Entries to make C-Kermit for specific systems.
  1420. #
  1421. # Put the ones that need short makefiles first.
  1422.  
  1423. #Apollo Aegis 9.x.  Includes TCP/IP support.
  1424. #You can also add processor-dependent optimization switches like -M570.
  1425. aegis:
  1426.     @echo Making C-Kermit $(CKVER) for Apollo Aegis 9.x...
  1427.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  1428.     "CFLAGS= -DBSD4 -DTCPSOCKET -DNOCSETS -DCK_CURSES -O $(KFLAGS)" \
  1429.     "LIBS = -lcurses -ltermcap"
  1430.  
  1431. #Apple Mac II, A/UX pre-3.0
  1432. #Warning, if "send *" doesn't work, try the auxufs makefile entry below.
  1433. aux:
  1434.     @echo Making C-Kermit $(CKVER) for Macintosh A/UX...
  1435.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  1436.     "CFLAGS = -DAUX -DTCPSOCKET $(KFLAGS) -i -O" "LNKFLAGS = -i"
  1437.  
  1438. #Apple Mac II, A/UX pre-3.0, compiled with gcc
  1439. auxgcc:
  1440.     @echo Making C-Kermit $(CKVER) for Macintosh A/UX...
  1441.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  1442.     "CFLAGS = -DAUX -DTCPSOCKET -traditional $(KFLAGS) -i -O" \
  1443.     "LNKFLAGS = " "CC = gcc" "CC2 = gcc"
  1444.  
  1445. #Apple Mac II, A/UX, pre-3.0, but with ufs file volumes, uses <dirent.h>.
  1446. auxufs:
  1447.     @echo Making C-Kermit $(CKVER) for Macintosh A/UX...
  1448.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  1449.     "CFLAGS = -DAUX -DTCPSOCKET -DDIRENT $(KFLAGS) -i -O" "LNKFLAGS = -i"
  1450.  
  1451. #Apple Mac II, A/UX 3.0, compiled with gcc
  1452. aux3gcc:
  1453.     @echo Making C-Kermit $(CKVER) for Macintosh A/UX 3.0...
  1454.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  1455.     "CFLAGS = -DAUX -DHDBUUCP -DLFDEVNO -DTCPSOCKET -DDIRENT $(KFLAGS)" \
  1456.     "LNKFLAGS = -s" "LIBS = $(LIBS)" \
  1457.     "CC=gcc -pipe -traditional" "CC2=gcc -pipe -traditional"
  1458.  
  1459. #Apple Mac II, A/UX 3.0, compiled with gcc, uses curses
  1460. aux3cgcc:
  1461.     @echo Making C-Kermit $(CKVER) for Macintosh A/UX 3.0...
  1462.     $(MAKE) "MAKE=$(MAKE)" aux3gcc KTARGET=$${KTARGET:-$(@)} \
  1463.     "KFLAGS=$(KFLAGS) -DCK_CURSES" "LIBS = -lcurses $(LIBS)"
  1464.  
  1465. # Tenon MachTen, tested on Apple Powerbook with MachTen 2.1.1.D.
  1466. # NOTE: This doesn't do anything about UUCP.  It only works if /usr/spool/uucp
  1467. # has permission of 777, and dialout device is world read/writeable.
  1468. machten:
  1469.     @echo Making C-Kermit $(CKVER) for MachTen...
  1470.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1471.     "CFLAGS= -DBSD43 -DTCPSOCKET -DSIG_V -DNDGPWNAM -DCK_CURSES -O \
  1472.     $(KFLAGS)"  "LIBS=-lcurses -ltermcap"
  1473.  
  1474. #Bell Labs Research UNIX V10
  1475. #Can't add TCP/IP because there is no sockets library.  It would have to
  1476. #be done using streams, but there is no code in C-Kermit for that.
  1477. #Remove -DNOJC if desired (if your system has csh, ksh, or bash).
  1478. bellv10:
  1479.     @echo Making C-Kermit $(CKVER) for Bell Labs Research UNIX V10...
  1480.     $(MAKE) wermit KTARGET=$${KTARGET-$(@)} \
  1481.     "CFLAGS= -DBELLV10 -DBSD4 -DNDIR -DNOJC -DNOSYSIOCTLH -DNOSETREU \
  1482.     -DNOCSETS -MINIDIAL $(KFLAGS)"
  1483.  
  1484. # WARNING: The early BSD entries do not build in version 7.0 with the stock
  1485. # BSD compiler: "Too many defines".  Unless you can rebuild cpp to have more
  1486. # space for defines, these builds must be accomplished by:
  1487. # copying the /usr/include tree to someplace else, preprocessing there with cc
  1488. # -E -I./include or whatever (plus all the same -D's, adding any necessary
  1489. # -U/-D to override the architecture)), renaming the the resulting files back
  1490. # to their original names, bringing them back to the original BSD system, and
  1491. # running the make target there.  This technique was used for 4.2 and 4.3 BSD
  1492. # on a VAX in C-Kermit 7.0 (later, cpp on that machine was rebuilt to allow
  1493. # more symbols, so the C-Kermit 8.0 build proceeds normally).
  1494.  
  1495. #Berkeley Unix 4.1
  1496. bsd41:
  1497.     @echo Making C-Kermit $(CKVER) for 4.1BSD...
  1498.     $(MAKE) wermit KTARGET=$${KTARGET-$(@)} \
  1499.     "CFLAGS= -DBSD41" "LIBS = -ljobs"
  1500.  
  1501. #Berkeley 4.2, 4.3, also Ultrix-32 1.x, 2.x, 3.x, many others
  1502. # Add -O, -s, etc, if they work.
  1503. # If you have a version of BSD but signal() is void rather than int,
  1504. # "make bsd KFLAGS=-DSIG_V".
  1505. bsd42:
  1506.     @echo Making C-Kermit $(CKVER) for 4.2BSD...
  1507.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  1508.     "CFLAGS= -DBSD4 -DTCPSOCKET -DNOREALPATH -DNOTIMEH -DNOIKSD \
  1509.     -DCK_CURSES -DSYSTIMEBH -DNOPUTENV -DNOANSI -DBIGBUFOK -DBSD42HACK \
  1510.     $(KFLAGS)" "LIBS=-lcurses -ltermcap $(LIBS)"
  1511.  
  1512. bsd:
  1513.     $(MAKE) bsd42 KTARGET=$${KTARGET-$(@)}
  1514.  
  1515. #Berkeley Unix 4.2 or 4.3 with HoneyDanBer UUCP
  1516. bsdhdb:
  1517.     @echo Making C-Kermit $(CKVER) for 4.2BSD with HDB UUCP...
  1518.     $(MAKE) bsd KTARGET=$${KTARGET-$(@)} \
  1519.     "KFLAGS= -DHDBUUCP $(KFLAGS)"
  1520.  
  1521. #Berkeley Unix 4.3 with acucntrl program, curses, TCP/IP included.
  1522. bsd43:
  1523.     @echo Making C-Kermit $(CKVER) for 4.3BSD...
  1524.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  1525.     "CFLAGS= -DBSD4 -DBSD43 -DTCPSOCKET -DNOREALPATH -DNOTIMEH -DNOIKSD \
  1526.     -DCK_CURSES -DACUCNTRL -DSYSTIMEBH -DNOPUTENV -DNOANSI -DBIGBUFOK \
  1527.     -DBSD42HACK $(KFLAGS)" "LIBS=-lcurses -ltermcap $(LIBS)"
  1528.  
  1529. #4.3BSD, curses excluded
  1530. bsd43nc:
  1531.     @echo Making C-Kermit $(CKVER) for 4.3BSD...
  1532.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  1533.     "CFLAGS= -DBSD4 -DBSD43 -DTCPSOCKET -DNOREALPATH -DNOTIMEH \
  1534.     -DACUCNTRL -DSYSTIMEBH -DNOIKSD -DNOPUTENV -DNOANSI -DBIGBUFOK \
  1535.     -DBSD42HACK $(KFLAGS)" "LIBS=$(LIBS)"
  1536.  
  1537. #4.3BSD, TCP/IP excluded.
  1538. bsd43nonet:
  1539.     @echo Making C-Kermit $(CKVER) for 4.3BSD + curses...
  1540.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  1541.     "CFLAGS= -DBSD4 -DBSD43 -DTCPSOCKET -DNOREALPATH -DNOTIMEH -DNOIKSD \
  1542.     -DCK_CURSES -DACUCNTRL -DSYSTIMEBH -DNOPUTENV -DNOANSI -DBIGBUFOK \
  1543.     -DBSD42HACK -DNONET $(KFLAGS)" "LIBS=-lcurses -ltermcap $(LIBS)"
  1544.  
  1545. #Berkeley Unix 4.2 or 4.3 with lock directory /usr/spool/uucp/LCK/LCK..ttyxx,
  1546. #but without acucntrl program
  1547. bsdlck:
  1548.     @echo Making C-Kermit $(CKVER) for 4.2BSD, /usr/spool/uucp/LCK/...
  1549.     $(MAKE) bsd KTARGET=$${KTARGET-$(@)} \
  1550.     "KFLAGS= -DLCKDIR $(KFLAGS)"
  1551.  
  1552. #Berkeley UNIX 4.4-Lite, 4.4-Encumbered, Net/2, etc (Post-Reno),
  1553. #with TCP/IP networking.  This includes NetBSD, FreeBSD, etc.
  1554. #NOTE: This is not a pure POSIX configuration.  Using -DPOSIX instead of
  1555. # -DBSD44 prevents any kind of directory-reading (for wildcard expansion),
  1556. #and disallows use of ENOTCONN symbol for detecting broken network
  1557. #connections, and disallows RTS/CTS flow control, and would also require
  1558. #definition of the appropriate UUCP lockfile convention.
  1559. #Do not add -DCK_POSIX_SIG without reading <signal.h> first!  For example,
  1560. #sigsetjmp(), etc, tend to be defined but not implemented.
  1561. bsd44:
  1562.     @echo Making C-Kermit $(CKVER) for 4.4BSD...
  1563.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1564.     "CFLAGS= -DBSD44 -DTCPSOCKET $(KFLAGS) -O"
  1565.  
  1566. #Berkeley UNIX 4.4, as above, but with curses for fullscreen display
  1567. #Please read notes for bsd44 entry just above.
  1568. # NOTE: This one dumps core on the real 4.4BSD system at UC Berkeley
  1569. # (an HP-9000 300), so use the no-curses version for that one.
  1570. bsd44c:
  1571.     @echo Making C-Kermit $(CKVER) for 4.4BSD with curses...
  1572.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1573.     "CFLAGS= -DBSD44 -DCK_CURSES -DTCPSOCKET $(KFLAGS) -O" \
  1574.     "LIBS= -lcurses -ltermcap $(LIBS)"
  1575.  
  1576. #For FreeBSD 1.x.
  1577. freebsd1:
  1578.     @echo 'Making C-Kermit $(CKVER) for FreeBSD...'
  1579.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1580.     "CFLAGS= -DBSD44 -DCK_CURSES -DTCPSOCKET -DNOCOTFMC -funsigned-char \
  1581.     -DFNFLOAT -DNOHTERMCAP -DNOREALPATH -DNOSYSCONF $(KFLAGS) -O -pipe" \
  1582.     "LIBS= -lcurses -ltermcap -lm $(LIBS)"
  1583.  
  1584. #FreeBSD 2.x with ncurses
  1585. freebsd2:
  1586.     @echo 'Making C-Kermit $(CKVER) for FreeBSD 2.x with ncurses...'
  1587.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1588.     "CFLAGS= -DBSD44 -DCK_NCURSES -DTCPSOCKET -DNOCOTFMC -DUSE_STRERROR \
  1589.     -DTPUTSARGTYPE=int -DTPUTSARG1CONST -DFREEBSD2 -funsigned-char \
  1590.     -DFNFLOAT $(KFLAGS) -O -pipe" \
  1591.     "LIBS= -lncurses -ltermlib -lcrypt -lm $(LIBS)"
  1592.  
  1593. #For FreeBSD 2.x -- Uses curses rather than ncurses
  1594. freebsd2c:
  1595.     @echo 'Making C-Kermit $(CKVER) for FreeBSD 2.x with curses...'
  1596.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1597.     "CFLAGS= -DBSD44 -DCK_CURSES -DTCPSOCKET -DNOCOTFMC -DUSE_STRERROR \
  1598.     -DTPUTSARGTYPE=int -DTPUTSARG1CONST -DFREEBSD2 -DFNFLOAT \
  1599.     -funsigned-char $(KFLAGS) -O -pipe" \
  1600.     "LIBS= -lcurses -ltermlib -lcrypt -lm $(LIBS)"
  1601.  
  1602. #FreeBSD 3.x with ncurses and uu_lock()
  1603. #(Note: uu_lock() goes back to 2.2.2, but not necessarily 2.0)
  1604. freebsd3:
  1605.     @echo 'Making C-Kermit $(CKVER) for FreeBSD 3.x with ncurses...'
  1606.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1607.     "CFLAGS= -DBSD44 -DCK_NCURSES -DTCPSOCKET -DNOCOTFMC -funsigned-char \
  1608.     -DTPUTSARGTYPE=int -DUSE_STRERROR -DFREEBSD3 -DUSE_UU_LOCK -DFNFLOAT \
  1609.     $(KFLAGS) -O -pipe" \
  1610.     "LIBS= -lncurses -lcrypt -lutil -lm $(LIBS)"
  1611.  
  1612. #As above but with curses rather than ncurses.
  1613. freebsd3c:
  1614.     @echo 'Making C-Kermit $(CKVER) for FreeBSD 3.x with curses...'
  1615.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1616.     "CFLAGS= -DBSD44 -DCK_CURSES -DTCPSOCKET -DNOCOTFMC -DUSE_UU_LOCK \
  1617.     -DTPUTSARGTYPE=int -DUSE_STRERROR -DFREEBSD3 $(KFLAGS) -DFNFLOAT \
  1618.     -funsigned-char -pipe -O" \
  1619.     "LIBS= -lcurses -lcrypt -lutil -lm $(LIBS)"
  1620.  
  1621. #FreeBSD 4.0 with ncurses and uu_lock().  Note - there is no curses in 4.0.
  1622. #ncurses 5.0 is broken requiring us to work around with setbuf().
  1623. freebsd4:
  1624.     @echo 'Making C-Kermit $(CKVER) for FreeBSD 4.x with ncurses...'
  1625.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1626.     "CFLAGS= -DBSD44 -DCK_NCURSES -DTCPSOCKET -DNOCOTFMC -DFNFLOAT \
  1627.     -funsigned-char -DTPUTSARGTYPE=int -DUSE_STRERROR -DFREEBSD4 \
  1628.     -DNONOSETBUF -DUSE_UU_LOCK $(KFLAGS) -O -pipe" \
  1629.     "LIBS= -lncurses -lcrypt -lutil -lm $(LIBS)"
  1630.  
  1631. #FreeBSD 4.1, as above but without the NONOSETBUF hack and with CK_NEWTERM.
  1632. #This works with ncurses 5.1.
  1633. freebsd41:
  1634.     @echo 'Making C-Kermit $(CKVER) for FreeBSD 4.1 with ncurses...'
  1635.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1636.     "CFLAGS= -DBSD44 -DCK_NCURSES -DCK_NEWTERM -DTCPSOCKET -DNOCOTFMC \
  1637.     -DFREEBSD4 -DFREEBSD41 -DUSE_UU_LOCK -DFNFLOAT \
  1638.     -funsigned-char -DTPUTSARGTYPE=int -DUSE_STRERROR $(KFLAGS) -O -pipe" \
  1639.     "LIBS= -lncurses -lcrypt -lutil -lm $(LIBS)"
  1640.  
  1641. #Default FreeBSD make for C-Kermit 8.0...
  1642. freebsd:
  1643.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET-$(@)} freebsd45
  1644.  
  1645. #FreeBSD 4.2, like 4.1.
  1646. freebsd42:
  1647.     @echo 'Making C-Kermit $(CKVER) for FreeBSD 4.2...'
  1648.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1649.     "CFLAGS= -DBSD44 -DCK_NCURSES -DCK_NEWTERM -DTCPSOCKET -DNOCOTFMC \
  1650.     -DFREEBSD4 -DFREEBSD41 -DFREEBSD42 -DUSE_UU_LOCK -DFNFLOAT \
  1651.     -funsigned-char -DTPUTSARGTYPE=int -DUSE_STRERROR $(KFLAGS) -O -pipe" \
  1652.     "LIBS= -lncurses -lcrypt -lutil -lm $(LIBS)"
  1653.  
  1654. #FreeBSD 4.3, like 4.2.
  1655. freebsd43:
  1656.     @echo 'Making C-Kermit $(CKVER) for FreeBSD 4.3...'
  1657.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1658.     "CFLAGS= -DBSD44 -DCK_NCURSES -DCK_NEWTERM -DTCPSOCKET -DNOCOTFMC \
  1659.     -DFREEBSD4 -DFREEBSD41 -DFREEBSD42 -DFREEBSD43 -DUSE_UU_LOCK \
  1660.     -DFNFLOAT -funsigned-char -DTPUTSARGTYPE=int -DUSE_STRERROR $(KFLAGS) \
  1661.     -O -pipe" "LIBS= -lncurses -lcrypt -lutil -lm $(LIBS)"
  1662.  
  1663. #FreeBSD 4.4, like 4.3.
  1664. freebsd44:
  1665.     @echo 'Making C-Kermit $(CKVER) for FreeBSD 4.4...'
  1666.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1667.     "CFLAGS= -DBSD44 -DCK_NCURSES -DCK_NEWTERM -DTCPSOCKET -DNOCOTFMC \
  1668.     -DFREEBSD4 -DFREEBSD41 -DFREEBSD42 -DFREEBSD43 -DFREEBSD44 \
  1669.     -DUSE_UU_LOCK -DFNFLOAT -funsigned-char -DTPUTSARGTYPE=int \
  1670.     -DUSE_STRERROR $(KFLAGS) -O -pipe" \
  1671.     "LIBS= -lncurses -lcrypt -lutil -lm $(LIBS)"
  1672.  
  1673. #FreeBSD 4.5, like 4.3 and 4.4.
  1674. freebsd45:
  1675.     @echo 'Making C-Kermit $(CKVER) for FreeBSD 4.5...'
  1676.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1677.     "CFLAGS= -DBSD44 -DCK_NCURSES -DCK_NEWTERM -DTCPSOCKET -DNOCOTFMC \
  1678.     -DFREEBSD4 -DUSE_UU_LOCK -DFNFLOAT -funsigned-char -DTPUTSARGTYPE=int \
  1679.     -DFREEBSD41 -DFREEBSD42 -DFREEBSD43 -DFREEBSD44 -DFREEBSD45 \
  1680.     -DUSE_STRERROR $(KFLAGS) -O -pipe" \
  1681.     "LIBS= -lncurses -lcrypt -lutil -lm $(LIBS)"
  1682.  
  1683. #FreeBSD 4.6, like 4.5
  1684. freebsd46:
  1685.     @echo 'Making C-Kermit $(CKVER) for FreeBSD 4.6...'
  1686.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1687.     "CFLAGS= -DBSD44 -DCK_NCURSES -DCK_NEWTERM -DTCPSOCKET -DNOCOTFMC \
  1688.     -DFREEBSD4 -DUSE_UU_LOCK -DFNFLOAT -funsigned-char -DTPUTSARGTYPE=int \
  1689.     -DFREEBSD41 -DFREEBSD42 -DFREEBSD43 -DFREEBSD44 -DFREEBSD45 \
  1690.     -DFREEBSD46 -DUSE_STRERROR $(KFLAGS) -O -pipe" \
  1691.     "LIBS= -lncurses -lcrypt -lutil -lm $(LIBS)"
  1692.  
  1693. #FreeBSD 4.7, like 4.6
  1694. freebsd47:
  1695.     @echo 'Making C-Kermit $(CKVER) for FreeBSD 4.7...'
  1696.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1697.     "CFLAGS= -DBSD44 -DCK_NCURSES -DCK_NEWTERM -DTCPSOCKET -DNOCOTFMC \
  1698.     -DFREEBSD4 -DUSE_UU_LOCK -DFNFLOAT -funsigned-char -DTPUTSARGTYPE=int \
  1699.     -DFREEBSD41 -DFREEBSD42 -DFREEBSD43 -DFREEBSD44 -DFREEBSD45 \
  1700.     -DFREEBSD46 -DFREEBSD47 -DUSE_STRERROR $(KFLAGS) -O -pipe" \
  1701.     "LIBS= -lncurses -lcrypt -lutil -lm $(LIBS)"
  1702.  
  1703. #FreeBSD 4.8, like 4.7
  1704. freebsd48:
  1705.     @echo 'Making C-Kermit $(CKVER) for FreeBSD 4.7...'
  1706.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1707.     "CFLAGS= -DBSD44 -DCK_NCURSES -DCK_NEWTERM -DTCPSOCKET -DNOCOTFMC \
  1708.     -DFREEBSD4 -DUSE_UU_LOCK -DFNFLOAT -funsigned-char -DTPUTSARGTYPE=int \
  1709.     -DFREEBSD41 -DFREEBSD42 -DFREEBSD43 -DFREEBSD44 -DFREEBSD45 \
  1710.     -DFREEBSD46 -DFREEBSD47 -DFREEBSD48 \
  1711.     -DUSE_STRERROR $(KFLAGS) -O -pipe" \
  1712.     "LIBS= -lncurses -lcrypt -lutil -lm $(LIBS)"
  1713.  
  1714. #FreeBSD 5.0, like 4.6
  1715. freebsd50:
  1716.     @echo 'Making C-Kermit $(CKVER) for FreeBSD 5.0 with ncurses...'
  1717.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1718.     "CFLAGS= -DBSD44 -DCK_NCURSES -DCK_NEWTERM -DTCPSOCKET -DNOCOTFMC \
  1719.     -DFREEBSD4 -DUSE_UU_LOCK -DFNFLOAT -funsigned-char -DTPUTSARGTYPE=int \
  1720.     -DFREEBSD41 -DFREEBSD42 -DFREEBSD43 -DFREEBSD44 -DFREEBSD45 \
  1721.     -DFREEBSD46 -DFREEBSD50 -DUSE_STRERROR $(KFLAGS) -O -pipe" \
  1722.     "LIBS= -lncurses -lcrypt -lutil -lm $(LIBS)"
  1723.  
  1724. freebsd44+srp+openssl:
  1725.     @echo 'Making C-Kermit $(CKVER) for FreeBSD 4.3 with SRP,SSL...'
  1726.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  1727.     "CFLAGS= -DBSD44 -DCK_NCURSES -DCK_NEWTERM -DTCPSOCKET -DNOCOTFMC \
  1728.     -DFREEBSD4 -DFREEBSD41 -DFREEBSD42 -DFREEBSD43 -DFREEBSD44 \
  1729.     -DCK_AUTHENTICATION -DCK_SRP \
  1730.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL \
  1731.     -DCK_CURSES -DTCPSOCKET  \
  1732.     $(SRPINC) $(SSLINC) $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  1733.     "LIBS = $(SRPLIB) $(SSLLIB) \
  1734.     -lncurses -ltermcap -lsrp -lssl -lkrypto -lcrypto \
  1735.     -lcrypt "
  1736.  
  1737. # The following fragmentary FreeBSD+SLL target was suggested, but it's not
  1738. # clear which version of FreeBSD it applies to.
  1739. #
  1740. # ALL_TARGET=    xermit
  1741. # MAKE_ARGS=    KTARGET=freebsd \
  1742. #        CFLAGS="${CFLAGS} -DBSD44 -DCK_NCURSES -DCK_NEWTERM \
  1743. #        -DTCPSOCKET -DNOCOTFMC -DFREEBSD4 -DUSE_UU_LOCK -DFNFLOAT \
  1744. #        -funsigned-char -DTPUTSARGTYPE=int -DUSE_STRERROR -DCKHTTP \
  1745. #        -DCK_SSL -DCK_AUTHENTICATION -DCK_ENCRYPTION -DCK_DES" \
  1746. #        LIBS="-lssl -lcrypto -ldes -lncurses -lcrypt -lutil -lm"
  1747.  
  1748. #NetBSD - all versions - with curses, not ncurses.
  1749. #Some builds seem to need KFLAGS=-DTPUTSFNTYPE=int, others don't.
  1750. #(Only to get rid of a warning -- the binaries are identical.)
  1751. netbsd:
  1752.     @echo Making C-Kermit $(CKVER) for NetBSD with curses...
  1753.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1754.     "CFLAGS= -DBSD44 -DCK_CURSES -DTCPSOCKET -DUSE_STRERROR -DTPUTSISVOID \
  1755.     -DCK_DTRCD -DCK_DTRCTS -DTPUTSARGTYPE=int -DFNFLOAT $(KFLAGS) -O" \
  1756.     "LIBS= -lcurses -lcrypt -lm $(LIBS)"
  1757.  
  1758. #NetBSD 1.5.x in which the return type of the function pointer that is the 
  1759. #third argument of tputs() was changed from void to int...  The regular NetBSD
  1760. #target builds OK here but this one eliminates the (harmless) warning.
  1761. netbsd15:
  1762.     @echo Making C-Kermit $(CKVER) for NetBSD with curses...
  1763.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1764.     "CFLAGS= -DBSD44 -DCK_CURSES -DTCPSOCKET -DUSE_STRERROR -DNETBSD15 \
  1765.     -DCK_DTRCD -DCK_DTRCTS -DTPUTSARGTYPE=int -DFNFLOAT $(KFLAGS) -O" \
  1766.     "LIBS= -lcurses -lcrypt -lm $(LIBS)"
  1767.  
  1768. #NetBSD 1.6 - like 1.5.x but with vanity banner saying 1.6.
  1769. netbsd16:
  1770.     @echo Making C-Kermit $(CKVER) for NetBSD with curses...
  1771.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1772.     "CFLAGS= -DBSD44 -DCK_CURSES -DTCPSOCKET -DUSE_STRERROR \
  1773.     -DNETBSD15 -DNETBSD16 \
  1774.     -DCK_DTRCD -DCK_DTRCTS -DTPUTSARGTYPE=int -DFNFLOAT $(KFLAGS) -O" \
  1775.     "LIBS= -lcurses -lcrypt -lm $(LIBS)"
  1776.  
  1777. #NetBSD with ncurses requested explicitly rather than curses-which-is-ncurses
  1778. netbsdn:
  1779.     @echo Making C-Kermit $(CKVER) for NetBSD with ncurses...
  1780.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1781.     "CFLAGS= -DBSD44 -DCK_CURSES -DTCPSOCKET -DNOCOTFMC -DCK_DTRCD \
  1782.     -DCK_DTRCTS -DFNFLOAT -DUSE_STRERROR -DTPUTSISVOID -DTPUTSARGTYPE=int \
  1783.     $(KFLAGS) -O" \
  1784.     "LIBS= -L/usr/pkg/lib -lncurses -lcrypt -lm $(LIBS)"
  1785.  
  1786. #OpenBSD - All versions.
  1787. #Uses ncurses as its curses so use -ltermlib, not -ltermcap
  1788. #But it doesn't use uu_lock() which was introduced in OpenBSD 2.3.
  1789. #For that use the next entry.
  1790. #Add -DMAINTYPE=int if you get complaints about main: return type is not int.
  1791. openbsdold:
  1792.     @echo Making C-Kermit $(CKVER) for OpenBSD...
  1793.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1794.     "CFLAGS= -DBSD44 -DCK_CURSES -DCK_NEWTERM -DTCPSOCKET -DOPENBSD \
  1795.     -DFNFLOAT -DNDSYSERRLIST $(KFLAGS) -O" "LIBS= -lcurses -ltermlib -lm"
  1796.  
  1797. #OpenBSD 2.3 or later
  1798. #Add -DMAINTYPE=int if you get complaints about main: return type is not int.
  1799. #For C-Kermit 8.0 (Christian Weisgerber):
  1800. # -ltermlib removed (presumably because -lcurses==ncurses already includes it)
  1801. # -DUSE_UU_LOCK and -lutil added for uu_lock()
  1802. # -DNDSYSERRLIST changed to -DUSE_STRERROR
  1803. #If this gives you trouble use the previous entry.
  1804. openbsd:
  1805.     @echo Making C-Kermit $(CKVER) for OpenBSD 2.3 or later...
  1806.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1807.     "CFLAGS= -DBSD44 -DCK_CURSES -DCK_NEWTERM -DTCPSOCKET -DOPENBSD \
  1808.     -DUSE_UU_LOCK -DFNFLOAT -DUSE_STRERROR $(KFLAGS) -O" \
  1809.     "LIBS= -lcurses -lutil -lm"
  1810.  
  1811. #OpenBSD 3.0 or later includes OpenSSL
  1812. #Add -DMAINTYPE=int if you get complaints about main: return type is not int.
  1813. #For C-Kermit 8.0 (Christian Weisgerber):
  1814. # -ltermlib removed (presumably because -lcurses==ncurses already includes it)
  1815. # -DUSE_UU_LOCK and -lutil added for uu_lock()
  1816. # -DNDSYSERRLIST changed to -DUSE_STRERROR
  1817. #If this gives you trouble use the previous entry.
  1818. openbsd30+ssl:
  1819.     @echo Making C-Kermit $(CKVER) for OpenBSD 3.0 or later...
  1820.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1821.     "CFLAGS= -DBSD44 -DCK_CURSES -DCK_NEWTERM -DTCPSOCKET -DOPENBSD \
  1822.     -DUSE_UU_LOCK -DFNFLOAT -DUSE_STRERROR -DCK_AUTHENTICATION \
  1823.     -DCK_SSL $(KFLAGS) -O" \
  1824.     "LIBS= -lcurses -lutil -lm -lssl -lcrypto"
  1825.  
  1826. # make 386bsd 0.0new, posix
  1827. # for  386bsd 0.1.24, change /usr/include/termios.h to #define NCCS if
  1828. #  _POSIX_SOURCE is #defined. (source: lewine, posix prgmrs guide, o`reilly)
  1829. #NOTE: Lock directory is /var/spool/lock.  Formerly, it was /var/spool/uucp,
  1830. #but reportedly <wjones@halcyon.com> that was due to a typo in 'man tip'.
  1831. 386bsd:
  1832.     @echo 'Making C-Kermit $(CKVER) for jolix 386BSD 0.0new and 0.1.24...'
  1833.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1834.     "CFLAGS= -DPOSIX -DSETREUID -DPIDSTRING -DUSLEEP \
  1835.     -D_386BSD -DCK_CURSES -DTCPSOCKET \
  1836.     -DLOCK_DIR=\\\"/var/spool/lock\\\" \
  1837.     $(KFLAGS) -O" "LNKFLAGS = -s" "LIBS = -lcurses -ltermcap"
  1838.  
  1839. #Mac OS X 1.0 (Rhapsody, Darwin) -- TCP/IP but no curses.
  1840. macosx10:
  1841.     @echo Making C-Kermit $(CKVER) for `uname -s`...
  1842.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1843.     "CFLAGS= -DMACOSX10 -DTCPSOCKET -DUSE_STRERROR -O $(KFLAGS)"
  1844.  
  1845. #Mac OS X 1.0 (Rhapsody, Darwin) -- TCP/IP and curses.
  1846. #Note: curses must be obtained separately.  See next entry for ncurses.
  1847. #Add "LIBS = -lcurses -ltermcap" if necessary (but reportedly it is not).
  1848. macosx10c:
  1849.     @echo Making C-Kermit $(CKVER) for `uname -s` + curses...
  1850.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1851.     "CFLAGS= -DMACOSX10 -DCK_CURSES -DTPUTSFNTYPE=void -DTPUTSISVOID \
  1852.     -DTCPSOCKET -DUSE_STRERROR -O $(KFLAGS)"
  1853.  
  1854. #Mac OS X 1.0 (Rhapsody, Darwin) -- TCP/IP and ncurses.
  1855. #Note: ncurses must be obtained separately.
  1856. #In the event of trouble with this one try the next one.
  1857. macosx10nc:
  1858.     @echo Making C-Kermit $(CKVER) for `uname -s` + ncurses...
  1859.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1860.     "CFLAGS= -DMACOSX10 -DCK_NCURSES -DTCPSOCKET -DUSE_STRERROR -O \
  1861.     $(KFLAGS)" "LIBS= -lncurses $(LIBS)"
  1862.  
  1863. #Mac OS X 10.2 (Jaguar) ncurses.
  1864. macosx102nc:
  1865.     @echo Making C-Kermit $(CKVER) for `uname -s` + ncurses...
  1866.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1867.     "CFLAGS= -DMACOSX10 -DCK_NCURSES -DTCPSOCKET -DUSE_STRERROR -O \
  1868.     $(KFLAGS) " "LIBS= -lncurses $(LIBS)"
  1869.  
  1870. #The problem here is that if curses.h also exists, it conflicts with
  1871. #ncurses.h and and we have fatal errors.  If this happens to you, then
  1872. #try this entry.
  1873. macosx10ncx:
  1874.     @echo Making C-Kermit $(CKVER) for `uname -s` + ncurses...
  1875.     @rm -f ./curses.h; touch ./curses.h
  1876.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1877.     "CFLAGS= -DMACOSX10 -DCK_NCURSES -DTCPSOCKET -DUSE_STRERROR \
  1878.     -I. -O $(KFLAGS) " \
  1879.     "LIBS= -lncurses $(LIBS)"
  1880.     @rm -f ./curses.h
  1881.  
  1882. #Acorn RISCiX, based on ...
  1883. #Berkeley Unix 4.2 or 4.3 with lock directory /usr/spool/uucp/LCK/LCK..ttyxx,
  1884. #but without acucntrl program
  1885. riscix:
  1886.     @echo Making C-Kermit $(CKVER) for RISCiX, /usr/spool/uucp/LCK..ttyxx
  1887.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  1888.         "CFLAGS= -DBSD42 -DBSD4 -DRISCIX -DNOCSETS \
  1889.         -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DDIRENT -DCK_CURSES \
  1890.         -DMAXSP=9024 -DMAXRD=9024 -DSBSIZ=9050 -DRBSIZ=9050 \
  1891.         -DDFTTY=\\\"/dev/serial\\\" -DNOCSETS -DNOCYRIL \
  1892.         -DNOANSI -w -O2 -fomit-frame-pointer" \
  1893.         "LIBS= -lcurses -ltermcap " \
  1894.         "CC= /usr/ucb/cc" \
  1895.         "CC2= /usr/ucb/cc"
  1896.  
  1897. #Acorn RISCiX, as above, but using gcc
  1898. riscix-gcc:
  1899.     @echo Making C-Kermit $(CKVER) for RISCiX, /usr/spool/uucp/LCK..ttyxx
  1900.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  1901.         "CFLAGS= -DBSD42 -DBSD4 -DRISCIX -DNOCSETS \
  1902.         -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DDIRENT -DCK_CURSES \
  1903.         -DMAXSP=9024 -DMAXRD=9024 -DSBSIZ=9050 -DRBSIZ=9050 \
  1904.         -DDFTTY=\\\"/dev/serial\\\" -DNOCSETS -DNOCYRIL \
  1905.         -DNOANSI -w -O2 -fomit-frame-pointer" \
  1906.         "LIBS= -lcurses -ltermcap " \
  1907.         "CC= gcc -mbsd" \
  1908.         "CC2= gcc -mbsd"
  1909.  
  1910. #Convergent CTIX 6.4.1
  1911. ctix:
  1912.     @echo 'Making C-Kermit $(CKVER) for Convergent CTIX 6.4.1'
  1913.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  1914.     "CFLAGS= -DSVR3 -DDIRENT -DTCPSOCKET -DHDBUUCP -DCK_CURSES \
  1915.     -DNONAWS -DNOLEARN $(KFLAGS) -XO" \
  1916.     "LNKFLAGS=-s" "LIBS=-lsocket -lcurses -lc_s"
  1917.     mcs -d wermit
  1918.  
  1919. # The following makefile entry should work for any Harris Night Hawk system
  1920. # (either 88k or 68k based) running release 6.1 or later of the CX/UX
  1921. # operating system. This is a POSIX and ANSI-C compliant system which also
  1922. # supports BSD networking. (Earlier CX/UX releases will probably work with
  1923. # sys5r3, but this has not been verified).
  1924. #
  1925. cx_ux:
  1926.     @echo Making C-Kermit $(CKVER) for Harris Night Hawk CX/UX 6.1 or later
  1927.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  1928.     "CFLAGS=-DPOSIX -DTCPSOCKET -DHDBUUCP -DPID_T=pid_t -DWAIT_T=int \
  1929.     -Dd_ino=d_fileno -DUID_T=uid_t -DGID_T=gid_t $(KFLAGS) -Xa \
  1930.     -O3 -g" "LNKFLAGS=-O3"
  1931.  
  1932. #Intergraph Clipper, CLIX, job control, HDB UUCP.
  1933. clix:
  1934.     @echo 'Making C-Kermit $(CKVER) for Intergraph CLIX...'
  1935.     $(MAKE) wermit "CC=acc" "CC2=acc" KTARGET=$${KTARGET:-$(@)} \
  1936.     "CFLAGS= -w -DSVR3 -DCLIX -DDIRENT -DHDBUUCP -DNOSYSLOG -DUSE_MEMCPY \
  1937.     -DNOGETUSERSHELL -DNOREALPATH -DNOLEARN $(KFLAGS) -O" \
  1938.     "LNKFLAGS=" "LIBS= -lbsd"
  1939.  
  1940. #As above + TCP/IP...
  1941. clixnet:
  1942.     @echo 'Making networked C-Kermit $(CKVER) for Intergraph CLIX...'
  1943.     $(MAKE) wermit "CC=acc" "CC2=acc" KTARGET=$${KTARGET:-$(@)} \
  1944.     "CFLAGS= -w -DSVR3 -DCLIX -DDIRENT -DHDBUUCP -DNOSYSLOG -DUSE_MEMCPY \
  1945.     -DTCPSOCKET -DNOGETUSERSHELL -DNOLEARN -DNOREALPATH $(KFLAGS) -O" \
  1946.     "LNKFLAGS=" "LIBS= -lbsd"
  1947.  
  1948. #Mark Williams Coherent 286 or 386 on IBM PC family.
  1949. #There is a 64K limit on program size, so this is a command-line only version.
  1950. coherent:
  1951.     $(MAKE) "CFLAGS = -O -DCOHERENT -DNOANSI -DNOICP -DNOSETKEY -DNOLEARN \
  1952.     -DNOCSETS -DNOHELP -DNODIAL -DNOSCRIPT -DNODEBUG -DNOTLOG -DNOXMIT \
  1953.     -DNOMSEND -DNOFRILLS -DNOSYSIOCTLH -DSELECT_H $(KFLAGS) -VSUVAR" \
  1954.     -DNOFLOAT KTARGET=$${KTARGET:-$(@)} wermit
  1955.  
  1956. #Mark Williams Coherent 386 on IBM PC family.
  1957. #This will make a "minimum interactive" version - no scripts,
  1958. #no character sets, no help, no dial, no debug/transaction logging, no
  1959. #transmit, msend, mail, type, etc.
  1960. coherentmi:
  1961.     $(MAKE) "CFLAGS = -O -DCOHERENT -DNOANSI -DNOSETKEY -DNOLEARN \
  1962.     -DNOSHOW -DNOCSETS -DNOHELP -DNODIAL -DNOSCRIPT -DNODEBUG -DNOTLOG \
  1963.     -DNOXMIT -DNOMSEND -DNOFRILLS -DNOSYSIOCTLH -DNOSERVER -DNOUUCP \
  1964.     -DNOSPL -DNOPUSH -DNOMDMHUP -DNOJC -DNOFDZERO -DNOESCSEQ -DNOFLOAT \
  1965.     -DNOCMDL $(KFLAGS) -VSUVAR -DSELECT_H" KTARGET=$${KTARGET:-$(@)} \
  1966.     wermit
  1967.  
  1968. #Mark Williams Coherent 386 on IBM PC/AT family.
  1969. coherentmax:
  1970.     $(MAKE) "CFLAGS = -O -DCOHERENT -DNOANSI -DSELECT_H -DNOLEARN \
  1971.     -DNOFLOAT -DNOSYSIOCTLH $(KFLAGS) -VSUVAR" "LNKFLAGS = -O -s" \
  1972.     KTARGET=$${KTARGET:-$(@)} wermit
  1973.  
  1974. #Mark Williams Coherent 386 4.2.  Includes curses but not TCP/IP.
  1975. #Requires updates to the 4.2.10 compiler; the regular compiler fails to
  1976. #to handle "complex expressions".  NOFLOAT is so it can work on old PCs
  1977. #without floating-point hardware.
  1978. coherent42:
  1979.     $(MAKE) "CFLAGS = -T500000 -DNOFLOAT -DCOHERENT -DNOANSI -DSELECT \
  1980.     -DNOSYSLOG -DDIRENT -DCK_CURSES -DCK_NEWTERM -DCK_WREFRESH -VSUVAR \
  1981.     -DDCLGETCWD -DNOSYSIOCTLH -DNOINITGROUPS -DNOSYMLINK -DSELECT_H \
  1982.     -DDCLGETCWD -O $(KFLAGS)" \
  1983.     "LNKFLAGS = -O -s" KTARGET=$${KTARGET:-$(@)} \
  1984.     "LIBS  = -lsocket -lcurses" wermit
  1985.  
  1986. #DEC Ultrix 2.x
  1987. # Add -O, -DDYNAMIC, -s, etc, if they work.
  1988. ultrix2x:
  1989.     @echo Making C-Kermit $(CKVER) for Ultrix 2.x ...
  1990.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  1991.     "CFLAGS= -DBSD4 -DTCPSOCKET -DDU2 -DNOGETUSERSHELL $(KFLAGS)"
  1992.  
  1993. du2:
  1994.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET-$(@)} ultrix2x
  1995.  
  1996. #DEC Ultrix 3.0 and 3.1
  1997. ultrix30:
  1998.     @echo Making C-Kermit $(CKVER) for Ultrix 3.0...
  1999.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  2000.     "CFLAGS= -DBSD4 -DTCPSOCKET -DDIRENT -DSIG_V -DNOGETUSERSHELL \
  2001.     -DULTRIX3 -DCK_CURSES $(KFLAGS) -O" "LIBS= -lcurses -ltermcap"
  2002.  
  2003. du3:
  2004.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET-$(@)} ultrix30
  2005.  
  2006. ultrix3x:
  2007.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET-$(@)} ultrix30
  2008.  
  2009. #DEC Ultrix 4.0 or 4.1 on DECstation, VAXstation, VAX, etc.
  2010. ultrix40:
  2011.     @echo Making C-Kermit $(CKVER) for Ultrix 4.0 or 4.1...
  2012.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  2013.     "CFLAGS= -DBSD4 -DTCPSOCKET -DSIG_V -DDU4 -DNOGETUSERSHELL \
  2014.     $(KFLAGS) -Olimit 1450" "LNKFLAGS = -s"
  2015.  
  2016. #DEC Ultrix 4.2-4.5 on DECstation, DECsystem, VAXstation, VAX, etc.
  2017. #Like ultrix40, except now C compiler supports -O2 optimization.
  2018. ultrix42:
  2019.     @echo Making C-Kermit $(CKVER) for Ultrix 4.2 or later...
  2020.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  2021.     "CFLAGS= -DBSD4 -DTCPSOCKET -DSIG_V -DNOGETUSERSHELL $(KFLAGS) \
  2022.     -O2 -Olimit 1750" "LNKFLAGS = -s"
  2023.  
  2024. du42:
  2025.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET-$(@)} ultrix42
  2026.  
  2027. #DEC Ultrix 4.2-4.5 on DECstation, DECsystem, VAXstation, VAX, etc.
  2028. #Like du42, but with curses support added and a couple features.
  2029. ultrix42c:
  2030.     @echo Making C-Kermit $(CKVER) for Ultrix 4.2 or later...
  2031.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  2032.     "CFLAGS= -DBSD4 -DTCPSOCKET -DSIG_V -DNOGETUSERSHELL \
  2033.     -DCK_CURSES -DNOIKSD $(KFLAGS)-G6 -O2 -Olimit 3000 " \
  2034.     "LNKFLAGS = -s" "LIBS= -lcurses -ltermcap"
  2035.  
  2036. ultrix43:
  2037.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=-DULTRIX43 $(KFLAGS)" \
  2038.     KTARGET=$${KTARGET-$(@)} ultrix42c
  2039.  
  2040. ultrix43notcp:
  2041.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=-DULTRIX43 -DNONET $(KFLAGS)" \
  2042.     KTARGET=$${KTARGET-$(@)} ultrix42c
  2043.  
  2044. # NOTE: need -DNODEBUG on MIPS to avoid relocation errors at link time.
  2045. # Actually now (8.0) that we have discovered the -G option maybe debugging 
  2046. # can be put back.
  2047. ultrix44:
  2048.     $(MAKE) "MAKE=$(MAKE)" \
  2049.     "KFLAGS=-DULTRIX44 -G7 -DNODEBUG -DNETPTY -DNO_DEVTTY $(KFLAGS)" \
  2050.     KTARGET=$${KTARGET-$(@)} ultrix42c
  2051.  
  2052. ultrix45:
  2053.     $(MAKE) "MAKE=$(MAKE)" \
  2054.     "KFLAGS=-DULTRIX45 $(KFLAGS)-DNETPTY -DNO_DEVTTY $(KFLAGS)" \
  2055.     KTARGET=$${KTARGET-$(@)} ultrix42c
  2056.  
  2057. du42c:
  2058.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET-$(@)} ultrix42c
  2059.  
  2060. #DEC Ultrix 4.3A or later on DECsystem and DECstation 5000/50, /150 or /260
  2061. #with MIPS R4x00 processor.  The "-mips3" switch generates R4000-specific
  2062. #code, which is faster and more compact, but *won't* run on earlier
  2063. #DECsystems and DECstations.
  2064. ultrix43-mips3:
  2065.     @echo Making C-Kermit $(CKVER) for Ultrix 4.3A or later, R4000 cpu...
  2066.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  2067.     "CFLAGS= -DBSD4 -DTCPSOCKET -DSIG_V -DNOGETUSERSHELL \
  2068.     $(KFLAGS) -O2 -Olimit 1750 -mips3" "LNKFLAGS = -s -mips3"
  2069.  
  2070. du43-mips3:
  2071.     $(MAKE) "MAKE=$(MAKE)" ultrix43-mips3
  2072.  
  2073. #DEC Ultrix 4.3A or later on MIPS R4x000 based systems.
  2074. #Like ultrix43-mips3 but with curses support added
  2075. ultrix43c-mips3:
  2076.     @echo Making C-Kermit $(CKVER) for Ultrix 4.3A or later, R4000 cpu...
  2077.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  2078.     "CFLAGS= -DBSD4 -DTCPSOCKET -DSIG_V -DNOGETUSERSHELL -DCK_CURSES \
  2079.     $(KFLAGS) -O2 -Olimit 3000 -mips3" "LNKFLAGS = -s -mips3" \
  2080.     "LIBS= -lcurses -ltermcap"
  2081.  
  2082. du43c-mips3:
  2083.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET-$(@)} ultrix43c-mips3
  2084.  
  2085. #DEC Ultrix 4.4 on DECstation 5000/50 or /150 with R4000 MIPS processor,
  2086. #or 5000/260 with R4400.  The "-mips3" switch generates R4000-specific code,
  2087. #which is faster and more compact but *won't* run on earlier DECstations.
  2088. ultrix44-mips3:
  2089.     @echo Making C-Kermit $(CKVER) for Ultrix 4.4, R4000 cpu ...
  2090.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  2091.     "CFLAGS= -DBSD4 -DTCPSOCKET -DSIG_V -DNOGETUSERSHELL \
  2092.     $(KFLAGS) -O2 -Olimit 1450 -mips3" "LNKFLAGS = -s -mips3"
  2093.  
  2094. du44-mips3:
  2095.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET-$(@)} ultrix44c-mips3
  2096.  
  2097. #DEC Ultrix 4.2 on DECstation, VAXstation, VAX, etc, System V R4 environment
  2098. ultrix42s5r4:
  2099.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4 on Ultrix...'
  2100.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  2101.     "CFLAGS = -O2 -Olimit 1500 -DSVR4 -DDIRENT -DHDBUUCP -DNOGETUSERSHELL \
  2102.     -DTCPSOCKET $(KFLAGS)" "LNKFLAGS = -s"
  2103.  
  2104. #OSF/1
  2105. osf:
  2106.     $(MAKE) xermit CC=$(CC) CC2=$(CC2) KTARGET=$${KTARGET:-$(@)} \
  2107.     "CFLAGS= -DBSD4 -DOSF -D_BSD -DTCPSOCKET -DCK_ANSIC -DSIG_V \
  2108.     -DCK_CURSES -DCK_RTSCTS -DFNFLOAT $(KFLAGS)" \
  2109.     "LNKFLAGS = -s" "LIBS = -lbsd -lcurses -ltermcap -lm"
  2110.  
  2111. #DEC OSF/1 V1.0-1.3 on DECstation, VAX, Alpha, or PC.
  2112. dec-osf:
  2113.     $(MAKE) xermit CC=$(CC) CC2=$(CC2) KTARGET=$${KTARGET:-$(@)} \
  2114.     "CFLAGS= -DBSD4 -DOSF -DOSF13 -D_BSD -DTCPSOCKET -DCK_ANSIC -DSIG_V \
  2115.     -DNOREALPATH -DNOIKSD -DCK_CURSES -DCK_RTSCTS -DFNFLOAT -DNODEBUG \
  2116.     -DNOUNICODE $(KFLAGS)" \
  2117.     "LNKFLAGS = -non_shared" "LIBS = -lbsd -lcurses -ltermcap -lm"
  2118.  
  2119. # This one causes "relocation out-of-range" errors in the linker.
  2120. old-dec-osf:
  2121.     @echo Making C-Kermit $(CKVER) for DEC OSF/1 V1.x...
  2122.     @echo If you are building for DEC OSF/1 2.0, please use dec-osf20.
  2123.     @echo Remove or adjust -O2 and/or -Olimit if they cause trouble.
  2124.     $(MAKE) osf KTARGET=$${KTARGET:-$(@)} \
  2125.     "KFLAGS= -O2 -Olimit 2400 $(KFLAGS)"
  2126.  
  2127. #DEC OSF/1 2.0 on Alpha and probably nowhere else.
  2128. #The only difference from OSF/1 is that optimization is omitted.
  2129. #The optimized version gets strange runtime errors, like the PAUSE command
  2130. #not working.  Add "-unsigned" to make all chars unsigned.
  2131. dec-osf20:
  2132.     @echo Making C-Kermit $(CKVER) for DEC OSF/1 V2.0...
  2133.     @echo Optimization omitted because it causes runtime errors.
  2134.     @echo See comments in makefile.
  2135.     $(MAKE) osf KTARGET=$${KTARGET:-$(@)} "KFLAGS= -DOSF20 $(KFLAGS)"
  2136.  
  2137. dec-osf30:
  2138.     @echo Making C-Kermit $(CKVER) for DEC OSF/1 V3.0...
  2139.     $(MAKE) osf KTARGET=$${KTARGET:-$(@)} \
  2140.     "KFLAGS= -DOSF30 -O2 -Olimit 2400 $(KFLAGS)"
  2141.  
  2142. #Digital UNIX 3.2
  2143. # Must compile ckuus[6x].c separately without optimization otherwise
  2144. # the optimizer dumps core - keep CFLAGS here in sync with those from osf.
  2145. du32:
  2146.     @echo Making C-Kermit $(CKVER) for Digital UNIX 3.2...
  2147.     $(MAKE) ckuus6.$(EXT) \
  2148.     "CFLAGS= -DBSD4 -DOSF -D_BSD -DTCPSOCKET -DCK_ANSIC -DSIG_V \
  2149.     -DCK_CURSES -DCK_RTSCTS -DFNFLOAT -DOSF32 -DHDBUUCP $(KFLAGS)"
  2150.     $(MAKE) ckuusx.$(EXT) \
  2151.     "CFLAGS= -DBSD4 -DOSF -D_BSD -DTCPSOCKET -DCK_ANSIC -DSIG_V \
  2152.     -DCK_CURSES -DCK_RTSCTS -DFNFLOAT -DOSF32 -DHDBUUCP $(KFLAGS)"
  2153.     $(MAKE) osf "KFLAGS= -DOSF32 -DHDBUUCP -O2 -Olimit 3200 $(KFLAGS)"
  2154.  
  2155. dec-osf32:
  2156.     $(MAKE) "MAKE=$(MAKE)" du32 KTARGET=$${KTARGET:-$(@)}
  2157.  
  2158. #Digital UNIX 4.0 through 4.0D (use tru64 targets for 4.0E and above)...
  2159. du40:
  2160.     @echo Making C-Kermit $(CKVER) for Digital UNIX 4.0...
  2161.     $(MAKE) osf KTARGET=$${KTARGET:-$(@)} \
  2162.     "KFLAGS= -DOSF40 -DHDBUUCP -DFNFLOAT \
  2163.     -unsigned -std1 -O3 -Olimit 2400 $(KFLAGS)" "LIBS=-lm"
  2164.  
  2165. du40gcc:
  2166.     @echo Making C-Kermit $(CKVER) for Digital UNIX 4.0 with gcc ...
  2167.     $(MAKE) osf CC=gcc CC2=gcc KTARGET=$${KTARGET:-$(@)} \
  2168.     "KFLAGS= -DOSF40 -DHDBUUCP $(KFLAGS)"
  2169.  
  2170. #Tru64 Unix 4.0E
  2171. tru64-40e:
  2172.     @echo Making C-Kermit $(CKVER) for Tru64 UNIX 4.0E...
  2173.     $(MAKE) osf KTARGET=$${KTARGET:-$(@)} \
  2174.     "KFLAGS= -DOSF40 -DOSF40E -DTRU64 -DHDBUUCP -DFNFLOAT -DNOCOTFMC \
  2175.     -unsigned -std1 -O3 -Olimit 2400 $(KFLAGS)" "LIBS=-lm"
  2176.  
  2177. tru64-40f:
  2178.     @echo Making C-Kermit $(CKVER) for Tru64 UNIX 4.0F...
  2179.     $(MAKE) osf KTARGET=$${KTARGET:-$(@)} \
  2180.     "KFLAGS= -DOSF40 -DOSF40F -DTRU64 -DHDBUUCP -DFNFLOAT -DNOCOTFMC \
  2181.     -unsigned -std1 -O3 -Olimit 2400 $(KFLAGS)" "LIBS=-lm"
  2182.  
  2183. tru64-40g:
  2184.     @echo Making C-Kermit $(CKVER) for Tru64 UNIX 4.0G...
  2185.     $(MAKE) osf KTARGET=$${KTARGET:-$(@)} \
  2186.     "KFLAGS= -DOSF40 -DOSF40G -DTRU64 -DHDBUUCP -DFNFLOAT -DNOCOTFMC \
  2187.     -unsigned -std1 -O3 -Olimit 2400 $(KFLAGS)" "LIBS=-lm"
  2188.  
  2189. tru64-50a:
  2190.     @echo Making C-Kermit $(CKVER) for Tru64 UNIX 5.0A...
  2191.     $(MAKE) osf KTARGET=$${KTARGET:-$(@)} \
  2192.     "KFLAGS= -DTRU64 -DOSF50 -DHDBUUCP \
  2193.     -unsigned -std1 -O3 -Olimit 2400 $(KFLAGS)"
  2194.  
  2195. tru64-51a:
  2196.     @echo Making C-Kermit $(CKVER) for Tru64 UNIX 5.1A...
  2197.     $(MAKE) osf KTARGET=$${KTARGET:-$(@)} \
  2198.     "KFLAGS= -DTRU64 -DOSF50 -DOSF51A -DHDBUUCP \
  2199.     -unsigned -std1 -O3 -Olimit 2400 $(KFLAGS)"
  2200.  
  2201. tru64-51b:
  2202.     @echo Making C-Kermit $(CKVER) for Tru64 UNIX 5.1A...
  2203.     $(MAKE) osf KTARGET=$${KTARGET:-$(@)} \
  2204.     "KFLAGS= -DTRU64 -DOSF50 -DOSF51A -DOSF51B -DHDBUUCP \
  2205.     -unsigned -std1 -O3 -Olimit 2400 $(KFLAGS)"
  2206.  
  2207. du50:
  2208.     $(MAKE) tru64-50a KTARGET=$${KTARGET:-$(@)}
  2209.  
  2210. du40-ridiculous-checking:
  2211.     @echo Making C-Kermit $(CKVER) for Digital UNIX 4.0.
  2212.     @echo Checking everything - assumes DECC...
  2213.     $(MAKE) osf KTARGET=$${KTARGET:-$(@)} \
  2214.     "KFLAGS= -DOSF40 -DHDBUUCP -w0 -warnprotos -check -portable \
  2215.     -unsigned -std1 -O3 -Olimit 1760 $(KFLAGS)"
  2216.  
  2217. #Sequent DYNIX/ptx 1.2.1
  2218. dynixptx12:
  2219.     @echo Making C-Kermit $(CKVER) for Sequent DYNIX/ptx 1.2.1...
  2220.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  2221.     "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -DPTX -DNOGETUSERSHELL -DNOLEARN \
  2222.     -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t $(KFLAGS) -i -O" \
  2223.     "LNKFLAGS = -i"
  2224.  
  2225. #Sequent DYNIX/ptx 1.3 or 1.4
  2226. dynixptx13:
  2227.     @echo Making C-Kermit $(CKVER) for Sequent DYNIX/ptx 1.3 TCP/IP...
  2228.     $(MAKE) xermit "CFLAGS= -O KTARGET=$${KTARGET:-$(@)} \
  2229.     -DSVR3 -DDIRENT -DHDBUUCP -DPTX -DCK_POLL -DNOGETUSERSHELL \
  2230.     -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t -DTCPSOCKET $(KFLAGS) -i" \
  2231.     "LNKFLAGS = -i" "LIBS = -lsocket -linet -lnsl"
  2232.  
  2233. #Sequent DYNIX/ptx 2.0, ANSI C compilation
  2234. #Should work on any hardware platform when DYNIX/ptx runs, including
  2235. #386, 486, Pentium.
  2236. dynixptx20:
  2237.     @echo 'Making C-Kermit $(CKVER) for POSIX, Sequent DYNIX/ptx 2.0...'
  2238.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2239.     "CFLAGS= -DPOSIX -DHDBUUCP -DTCPSOCKET \
  2240.     -DWAIT_T=int -DPTX -DNOGETUSERSHELL $(KFLAGS) -O" \
  2241.     "LIBS = -lsocket -linet -lnsl"
  2242.  
  2243. #Sequent DYNIX/ptx 2.0, ANSI C compilation, with curses
  2244. dynixptx20c:
  2245.     @echo 'Making C-Kermit $(CKVER) for POSIX, Sequent DYNIX/ptx 2.0...'
  2246.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2247.     "CFLAGS= -DPOSIX -DHDBUUCP -DTCPSOCKET -DWAIT_T=int -DPTX -DCK_CURSES \
  2248.     -DCK_NEWTERM -DNOGETUSERSHELL $(KFLAGS) -O" \
  2249.     "LIBS = -lsocket -linet -lnsl -lcurses -ltermcap"
  2250.  
  2251. #Sequent DYNIX/ptx 2.1.6, 80486, ANSI C compilation, with curses:
  2252. # -Xa -- use ANSI compiler.
  2253. # -Wc,-pw -- suppress portability warnings.
  2254. # -Wc,-i386 -- 80386 cpu.
  2255. # -Wc,-i486 -- 80486 cpu.
  2256. # -Wc,-P5 -- Pentium (default).
  2257. # -Wc,-O3 -- highest optimization.
  2258. # -Wa,-N17061 -- increase symbol table from default of 15013 for ckcuni.c.
  2259. # Early versions of DYNIX/ptx 2.1.x may need -DCK_POLL instead of -DSELECT.
  2260. # Add "$&" after the colon in the "xermit" target for parallel makes.
  2261. dynixptx216c:
  2262.     @echo 'Making C-Kermit $(CKVER) for POSIX, Sequent DYNIX/ptx 2.1.6'
  2263.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2264.     "CFLAGS= -DPOSIX -DHDBUUCP -DDYNAMIC -DTCPSOCKET \
  2265.     -DSELECT -DCK_REDIR -DCK_NAWS -DCK_WREFRESH -DSW_ACC_ID \
  2266.     -DTCP_NODELAY=1 -DTRMBUFL=2048 -DBIGBUFOK -DHADDRLIST \
  2267.     -DPTX  -DCK_CURSES -DCK_NEWTERM -DNOGETUSERSHELL -DNOREALPATH \
  2268.     $(KFLAGS) -Xa -Wc,-pw -Wc,-i486 -Wc,-O3 -Wa,-N17061" \
  2269.     "LIBS = -lXbsd -lseq -lsocket -linet -lnsl -lmalloc -lm -lcurses" \
  2270.     "LNKFLAGS = -s"
  2271.  
  2272. #Sequent DYNIX/ptx 2.1.6, gcc 2.7.2.2, with curses:
  2273. dynixptx216cgcc:
  2274.     @echo 'Making C-Kermit $(CKVER) for POSIX, Sequent DYNIX/ptx 2.1.6 gcc'
  2275.     $(MAKE) xermit "CC = gcc" "CC2 = gcc" KTARGET=$${KTARGET:-$(@)} \
  2276.     "CFLAGS= -DPOSIX -DHDBUUCP -DDYNAMIC -DTCPSOCKET \
  2277.     -DSELECT -DCK_REDIR -DCK_NAWS -DCK_WREFRESH -DSW_ACC_ID \
  2278.     -DTCP_NODELAY=1 -DTRMBUFL=2048 -DBIGBUFOK -DHADDRLIST \
  2279.     -DPTX  -DCK_CURSES -DCK_NEWTERM -DNOGETUSERSHELL -DNOREALPATH \
  2280.     $(KFLAGS) -O3 -pipe -funsigned-char" \
  2281.     "LIBS = -lXbsd -lseq -lsocket -linet -lnsl -lmalloc -lm -lcurses" \
  2282.     "LNKFLAGS = -s"
  2283.  
  2284. #Sequent DYNIX/ptx 4.0, ANSI C compilation, with curses
  2285. dynixptx41c:
  2286.     @echo 'Making C-Kermit $(CKVER) for POSIX, Sequent DYNIX/ptx 4.0...'
  2287.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2288.     "CFLAGS= -DPOSIX -DHDBUUCP -DTCPSOCKET \
  2289.     -DWAIT_T=int -DPTX -DPTX4 -DCK_CURSES -DCK_NEWTERM \
  2290.     -DNOGETUSERSHELL $(KFLAGS) -O" \
  2291.     "LIBS = -lsocket -lnsl -lcurses -ltermcap"
  2292.  
  2293. #Sequent DYNIX/ptx 4.4, ANSI C compilation, with curses
  2294. dynixptx44:
  2295.     @echo 'Making C-Kermit $(CKVER) for POSIX, Sequent DYNIX/ptx 4.4...'
  2296.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2297.     "CFLAGS= -DPTX -DPTX4 -DPOSIX -DHDBUUCP -DTCPSOCKET -DWAIT_T=int \
  2298.     -DCK_CURSES -DCK_NEWTERM -DBIGBUFOK -DSELECT -DNOGETUSERSHELL \
  2299.     $(KFLAGS) -O" "LIBS = -lsocket -lnsl -lcurses -ltermcap"
  2300.  
  2301. #Sequent DYNIX 3.0.x
  2302. dynix3:
  2303.     @echo Making C-Kermit $(CKVER) for Sequent DYNIX 3.0.x...
  2304.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2305.     "CFLAGS= -DBSD43 -DACUCNTRL -DTCPSOCKET -O \
  2306.     -DPWUID_T=int -DGID_T=int $(KFLAGS)"
  2307.  
  2308. #Sequent DYNIX 3.0.x, no ACUCNTRL
  2309. dynix3noacu:
  2310.     @echo Making C-Kermit $(CKVER) for Sequent DYNIX 3.0.x...
  2311.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2312.     "CFLAGS= -DBSD43 -DLCKDIR -DTCPSOCKET -O \
  2313.     -DUID_T=int -DGID_T=int $(KFLAGS)"
  2314.  
  2315. #Sequent DYNIX 3.1.x
  2316. dynix31:
  2317.     @echo Making C-Kermit $(CKVER) for Sequent DYNIX 3.1.x...
  2318.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2319.     "CFLAGS= -O -DDCLPOPEN -DLCKDIR -DBSD4 -DTCPSOCKET $(KFLAGS)"
  2320.  
  2321. #Sequent DYNIX 3.1.2, as above but with curses, to be compiled by gcc 2.3.3.
  2322. dynix31c:
  2323.     @echo 'Making C-Kermit $(CKVER) for Sequent DYNIX 3.1.2, curses...'
  2324.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2325.     "CFLAGS= -O2 -DDCLPOPEN -DACUCNTRL \
  2326.     -DBSD43 -DTCPSOCKET -DCK_CURSES -DUID_T=int \
  2327.     $(KFLAGS)" "LIBS= -lcurses -ltermcap"
  2328.  
  2329. #Convex C1 with Berkeley Unix
  2330. convex:
  2331.     @echo Making C-Kermit $(CKVER) for Convex C1 / BSD...
  2332.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  2333.     "CFLAGS= -DBSD4 -DNOLEARN $(KFLAGS) -Dmsleep=mnap"
  2334.  
  2335. #Convex C210 with Convex/OS 8
  2336. convex8:
  2337.     @echo Making C-Kermit $(CKVER) for Convex C210 with OS 8
  2338.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2339.     "CFLAGS= -DBSD4 -DTCPSOCKET -DNODEBUG -DDIRENT -DNOFILEH \
  2340.     $(KFLAGS) -DSIG_V -Dmsleep=mnap"
  2341.  
  2342. #Convex C2 with Convex OS 9.1 (should also work with 8.1 or later)
  2343. #with ANSI C compiler, uses BSD 4.3 uucp lockfile convention.
  2344. convex9:
  2345.     @echo Making C-Kermit $(CKVER) for Convex C210 with OS 9.1
  2346.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2347.     "CFLAGS= -DPOSIX -DCONVEX9 -DNOIEXTEN -DDIRENT -DNOFILEH -DTCPSOCKET \
  2348.     -D__STDC__ -DLCKDIR -Dmsleep=mnap -O -ext -tm c1 $(KFLAGS)" \
  2349.     "LNKFLAGS = -ext"
  2350.  
  2351. #Convex C2 with Convex OS 10.1 or later
  2352. #with gcc 2.x C compiler
  2353. convex10gcc:
  2354.     @echo Making C-Kermit $(CKVER) for Convex C2 with OS 10.1 using gcc
  2355.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2356.     "CFLAGS= -DPOSIX -DCONVEX9 -DNOIEXTEN -DDIRENT -DNOFILEH -DTCPSOCKET \
  2357.     -D__STDC__  -Dmsleep=mnap -O2 $(KFLAGS)" CC=gcc CC2=gcc
  2358.  
  2359. #Cray X-MP or Y-MP UNICOS 6.x or 7.x.
  2360. #NOTE: NPROC tells how many parallel makes to run.  If your Cray has multiple
  2361. #processors, you can set NPROC up to the number of CPUs, e.g. NPROC=16.
  2362. cray:
  2363.     @echo 'Making C-Kermit $(CKVER) for Cray X/Y-MP UNICOS 6.x or 7.0...
  2364.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} NPROC=1 \
  2365.     "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -DTCPSOCKET $(KFLAGS) -O1"
  2366.  
  2367. #Cray X-MP or Y-MP UNICOS 8.0 Alpha.
  2368. cray8:
  2369.     @echo 'Making C-Kermit $(CKVER) for Cray X/Y-MP UNICOS 8.0 Alpha...
  2370.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} NPROC=1 \
  2371.     "CFLAGS= -DSVR4 -DDIRENT -DHDBUUCP -DTCPSOCKET $(KFLAGS) -O1"
  2372.  
  2373. #Cray-2 or Cray 3-CSOS
  2374. #NOTE: NPROC tells how many parallel makes to run.  If your Cray has multiple
  2375. #processors, you can set NPROC up to the number of CPUs, e.g. NPROC=16.
  2376. craycsos:
  2377.     @echo 'Making C-Kermit $(CKVER) for Cray-2/3 CSOS
  2378.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} NPROC=1 \
  2379.     "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -DTCPSOCKET \
  2380.     $(KFLAGS) -DCK_ANSIC -DCK_CURSES" "LIBS=-lnet"
  2381.  
  2382. #NeXTSTEP 1.0 through 3.2.
  2383. #Includes fullscreen file transfer display (curses) and TCP/IP support.
  2384. #Uses shared library to make executable program about 80K smaller.
  2385. #Remove "LIBS = -lsys_s" if this causes trouble.
  2386. next:
  2387.     @echo Making C-Kermit $(CKVER) for NeXTSTEP...
  2388.     @echo 'If you get errors in ckutio.c about w_S, w_T, etc,'
  2389.     @echo 'add KFGLAGS=-DNOREDIRECT to your make command.'
  2390.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2391.     "CFLAGS= -DNEXT -DTCPSOCKET -DLCKDIR -DNOPUTENV -DFNFLOAT \
  2392.     -pipe -DCK_CURSES $(KFLAGS) -O -w" "LIBS = -lsys_s -lcurses -ltermcap"
  2393.  
  2394. nextc:
  2395.     $(MAKE) "MAKE=$(MAKE)" next KTARGET=$${KTARGET:-$(@)}
  2396.  
  2397. nextg:
  2398.     $(MAKE) "MAKE=$(MAKE)" next KFLAGS=-Wall KTARGET=$${KTARGET:-$(@)}
  2399.  
  2400. nextgc:
  2401.     $(MAKE) "MAKE=$(MAKE)" next KFLAGS=-Wall KTARGET=$${KTARGET:-$(@)}
  2402.  
  2403. #NeXTSTEP 3.3.
  2404. #Includes fullscreen file transfer display and TCP/IP.
  2405. next33:
  2406.     @echo Making C-Kermit $(CKVER) for NeXTSTEP 3.3...
  2407.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2408.     "CFLAGS= -DNEXT33 -DTCPSOCKET -DLCKDIR -DNOPUTENV -DFNFLOAT \
  2409.     -pipe -DCK_CURSES $(KFLAGS) -O -w" "LIBS = -lsys_s -lcurses -ltermcap"
  2410.  
  2411. #OPENSTEP 4.2 for Sparc, m680x0, HP PA-RISC, and Intel.
  2412. #Includes fullscreen file transfer display and TCP/IP.
  2413. #ckcpro.c compiled without optimization because it crashes the compiler.
  2414. openstep42:
  2415.     @echo Making C-Kermit $(CKVER) for OPENSTEP 4.2...
  2416.     $(MAKE) ckcpro.$(EXT) \
  2417.     "CFLAGS= -DOPENSTEP42 -DNEXT33 -DTCPSOCKET -DLCKDIR -DNOPUTENV \
  2418.     -DFNFLOAT -pipe -DCK_CURSES $(KFLAGS) -w"
  2419.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2420.     "CFLAGS= -DOPENSTEP42 -DNEXT33 -DTCPSOCKET -DLCKDIR -DNOPUTENV \
  2421.     -DFNFLOAT -pipe -DCK_CURSES $(KFLAGS) -O -w" \
  2422.     "LIBS = -lsys_s -lcurses -ltermcap"
  2423.  
  2424. #NeXT with malloc debugger
  2425. nextmd:
  2426.     @echo Making C-Kermit $(CKVER) for NeXT with malloc debugging...
  2427.     $(MAKE) mermit KTARGET=$${KTARGET:-$(@)} \
  2428.     "CFLAGS= -DNEXT -DTCPSOCKET -DLCKDIR -DNOPUTENV -DFNFLOAT \
  2429.     -DCK_CURSES $(KFLAGS) -O -w -Dmalloc=dmalloc -Dfree=dfree -DMDEBUG" \
  2430.     "LIBS = -lsys_s -lcurses -ltermcap"
  2431.  
  2432. #Build for NeXTSTEP with "fat" binaries (MABs) that run on both Motorola
  2433. #and Intel platforms.
  2434. nextfat:
  2435.     $(MAKE) "MAKE=$(MAKE)" next KTARGET=$${KTARGET:-$(@)} \
  2436.     "KFLAGS=-Wall -arch m68k -arch i386" "LNKFLAGS = -arch m68k -arch i386"
  2437.  
  2438. #NeXTSTEP on Intel Platforms.
  2439. next486:
  2440.     @echo Making C-Kermit $(CKVER) for NeXTSTEP on Intel Platforms...
  2441.     @echo 'If you get errors in ckutio.c about w_S, w_T, etc,'
  2442.     @echo 'add KFGLAGS=D-DNOREDIRECT to your make command.'
  2443.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2444.     "CFLAGS= -DNEXT -DTCPSOCKET -DLCKDIR -DNOPUTENV -DFNFLOAT \
  2445.     -DNODEBUG -O3 -fno-omit-frame-pointer -fschedule-insns2 -pipe \
  2446.     -DCK_CURSES $(KFLAGS) -w" "LIBS = -lsys_s -lcurses -ltermcap"
  2447.  
  2448. #Single binary that runs on NeXT 68030 and 68040, Intel, HP, and Sparc,
  2449. #as well as on OpenStep/Mach.
  2450. nextquadfat:
  2451.     $(MAKE) "MAKE=$(MAKE)" next KTARGET=$${KTARGET:-$(@)} \
  2452.     "KFLAGS=-Wall -arch m68k -arch i386 -arch hppa -arch sparc" \
  2453.     "LNKFLAGS = -arch m68k -arch i386 -arch hppa -arch sparc"
  2454.  
  2455. #BeBox
  2456. beboxdr7:
  2457.     @echo 'Making C-Kermit $(CKVER) for the BeBox...'
  2458.     @echo 'Link step will fail with default Metroworks linker 64K limit.'
  2459.     @echo 'Code Warrior Gold required to link big programs.'
  2460.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  2461.     "CC=/boot/develop/tools/mwcc" "CC2=/boot/develop/tools/mwld" \
  2462.     "CFLAGS= -DBEBOX -DBE_DR_7 -DPOSIX -DNOUUCP -DNOLEARN $(KFLAGS) -O"
  2463.  
  2464. #BeBox BeOS DR7 only
  2465. bebox:
  2466.     @echo 'Making C-Kermit $(CKVER) for BeBox...'
  2467.     @echo 'Link step will fail with default Metroworks linker 64K limit.'
  2468.     @echo 'Code Warrior Pro 3.0 for BeBox required to link big programs.'
  2469.     $(MAKE) wermit "CC=mwcc" "CC2=mwld" KTARGET=$${KTARGET:-$(@)} \
  2470.     "CFLAGS= -DBEBOX -DPOSIX -DNOLEARN -DNOUUCP $(KFLAGS) -O"
  2471.  
  2472. #BeOS 4.5
  2473. #We have to use the wermit target because 'fd_set' is unknown.
  2474. beos45:
  2475.     $(MAKE) wermit "CC=$(CC)" "CC2=$(CC2)" KTARGET=$${KTARGET:-$(@)} \
  2476.     "CFLAGS= -DBEOS -DBEOS45 -DPOSIX -DNOIKSD -DNOREALPATH -DSYSTIMEH \
  2477.     -DNOCOTFMC -DNOUUCP -DNOLEARN $(KFLAGS) -O" \
  2478.     "LIBS = $(LIBS)"
  2479.  
  2480. #BeOS 4.5
  2481. beos45net:
  2482.     $(MAKE) beos45 "KFLAGS=-DTCPSOCKET -DNO_DNS_SRV $(KFLAGS)" \
  2483.     "LIBS=-lnet -lnetapi"
  2484.  
  2485. #Plan 9 from Bell Labs
  2486. plan9:
  2487.     @echo 'C-Kermit for Plan 9 from Bell Labs - calling ckpker.mk...'
  2488.     make -f ckpker.mk
  2489.  
  2490. #POSIX
  2491. posix:
  2492.     @echo 'Making C-Kermit $(CKVER) for pure POSIX...'
  2493.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  2494.     "CFLAGS= -DPOSIX -DNOUUCP -DNOLEARN $(KFLAGS) -O"
  2495.  
  2496. # PowerMAX OS (SVR4) from Concurrent (tested on PowerMAX 5.1)
  2497. powermax:
  2498.     @echo 'Making C-Kermit $(CKVER) for Concurrent PowerMAX OS...'
  2499.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2500.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DPOWERMAX \
  2501.     -DNETPTY -DHAVE_STREAMS -DHAVE_GRANTPT -DHAVE_PTSNAME -DPUSH_PTEM \
  2502.     -DPUSH_LDTERM -DPUSH_TTCOMPAT \
  2503.     -DSTERMIOX -DTCPSOCKET -DCK_CURSES $(KFLAGS)" \
  2504.     "LIBS= -lsocket -lnsl -lresolv -lcurses -lgen -lc -lucbc"
  2505.  
  2506. #Berkeley Software Design Inc. BSDI
  2507. # Substitute "LIBS= -lnewcurses -ltermcap" if desired.
  2508. bsdi:
  2509.     @echo 'Making C-Kermit $(CKVER) for BSDI ...'
  2510.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2511.     "CFLAGS= -DBSD44 -DSETREUID -DSW_ACC_ID -DBIGBUFOK -DFIXCRTSCTS \
  2512.     -DTCPSOCKET -DCK_CURSES -DFNFLOAT $(KFLAGS) -O" \
  2513.     "LIBS= -lcurses -ltermcap -lm"
  2514.  
  2515. #Berkeley Software Design Inc. BSDI - has higher serial speeds than 1.x.
  2516. bsdi2:
  2517.     $(MAKE) "MAKE=$(MAKE)" bsdi KTARGET=$${KTARGET:-$(@)} \
  2518.     "KFLAGS=-DBSDI2 $(KFLAGS)"
  2519.  
  2520. bsdi3:
  2521.     $(MAKE) "MAKE=$(MAKE)" bsdi KTARGET=$${KTARGET:-$(@)} \
  2522.     "KFLAGS=-DBSDI2 -DBSDI3 $(KFLAGS)"
  2523.  
  2524. bsdi4:
  2525.     $(MAKE) "MAKE=$(MAKE)" bsdi KTARGET=$${KTARGET:-$(@)} \
  2526.     "KFLAGS=-DBSDI2 -DBSDI3 -DBSDI4 -DTPUTSFNTYPE=void -DTPUTSISVOID \
  2527.     -m486 $(KFLAGS)"
  2528.  
  2529. # (old name for the above)
  2530. bsdiposix:
  2531.     $(MAKE) "MAKE=$(MAKE)" bsdi
  2532.  
  2533.  
  2534. #Build a BSDI 4.x binary that also runs under FreeBSD (Terry Kennedy).
  2535. #But watch out for details like serial-port locking.
  2536. bsdix:
  2537.     $(MAKE) "MAKE=$(MAKE)" bsdi KTARGET=$${KTARGET:-$(@)} \
  2538.     "KFLAGS=-DBSDI2 -DBSDI3 -DBSDI4 -DTPUTSFNTYPE=void -DTPUTSISVOID \
  2539.     -m486 $(KFLAGS)" "LNKFLAGS=-static -Wl,-m,i386bsdi -Wl,-e,_start"
  2540.  
  2541. #Pyramid 9XXX (e.g. 9845) or MIServer T series, OSx 4.4b thru 5.1
  2542. pyramid:
  2543.     @echo Making C-Kermit $(CKVER) for Pyramid Dual Port OSx
  2544.     ucb $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2545.     "CFLAGS= -DBSD43 -DTCPSOCKET -DPYRAMID -O $(KFLAGS)" "LNKFLAGS = -s"
  2546.  
  2547. #Pyramid Dual Port OSx using HoneyDanBer UUCP, curses and TCP
  2548. pyramid-hdb:
  2549.     @echo Making C-Kermit $(CKVER) for Pyramid Dual Port OSx
  2550.     ucb $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2551.     "CFLAGS= -DBSD43 -DTCPSOCKET -DHBDUUCP -DCK_CURSES -O $(KFLAGS)" \
  2552.     "LNKFLAGS = -s" "LIBS = -lcurses -ltermcap"
  2553.  
  2554. #Pyramid DC/OSx (UNIX System V R4).
  2555. #Has <sys/termiox.h>, regular Berkeley sockets library, i.e. in.h and inet.h
  2556. #are not misplaced in sys (rather than netinet and arpa, respectively).
  2557. #Uses ANSI C.
  2558. #NOTE: Remove -O and Olimit:2500 from CFLAGS if TELNET connections do not work.
  2559. pyrdcosx:
  2560.     @echo 'Making C-Kermit $(CKVER) for Pyramid DC/OSx...'
  2561.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2562.     "CFLAGS = -Xa -O -DSVR4 -DDIRENT -DHDBUUCP -DSELECT -DNOGETUSERSHELL \
  2563.     -DCK_CURSES -DSTERMIOX -DTCPSOCKET -DPYRAMID -K Olimit:3100 \
  2564.     -DNO_DNS_SRV $(KFLAGS)" "LIBS= -lcurses -lsocket -lnsl" "LNKFLAGS = -s"
  2565.  
  2566. #IBM's AIX 3.0 on IBM 370 mainframe, tested on AIX F44 thru F50.
  2567. aix370:
  2568.     @echo Making C-Kermit $(CKVER) for IBM System/370 AIX 3.0...
  2569.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2570.     "CFLAGS= -DAIX370 -DTCPSOCKET -DLCKDIR -DDIRENT $(KFLAGS)" \
  2571.     "LIBS = -lbsd"
  2572.  
  2573. #IBM's AIX/ESA 2.1 (OSF/1) on IBM mainframe
  2574. aixesa:
  2575.     @echo Making C-Kermit $(CKVER) for IBM AIX/ESA...
  2576.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2577.     "CFLAGS= -DAIXESA -DTCPSOCKET $(KFLAGS) -O"
  2578.  
  2579. #IBM PS/2 with AIX 1.0 thru 1.3.
  2580. #  Reports indicate that -O switch must be omitted.
  2581. #  It is also possible that "make bsd" will work (reports welcome).
  2582. #  One report said "make LIBS=-lbsd bsd" did the trick.
  2583. #  NOTLOG is to get around a 'tlog' symbol defined in one of the headers.
  2584. ps2aix:
  2585.     @echo 'Making C-Kermit $(CKVER) for IBM AIX 1.x PS/2...'
  2586.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  2587.     "CFLAGS = -DATTSV -DNOREALPATH -DPS2AIX10 -DSIG_V \
  2588.     -DNOUNICODE -DNOTLOG -DNOLEARN $(KFLAGS) -i" \
  2589.     "LNKFLAGS = -i"
  2590.  
  2591. ps2aixnetc:
  2592.     @echo 'Making C-Kermit $(CKVER) for IBM AIX 1.x PS/2...'
  2593.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  2594.     "CFLAGS = -DATTSV -DNOREALPATH -DPS2AIX10 -DTCPSOCKET -DCK_CURSES \
  2595.     -DSIG_V -DNOUNICODE -DNOTLOG -DNOLEARN $(KFLAGS) -i" \
  2596.     "LIBS = -lcurses" "LNKFLAGS = -i"
  2597.  
  2598. ps2aix3:
  2599.     $(MAKE) ps2aix KTARGET=$${KTARGET:-$(@)}
  2600.  
  2601. #IBM RT PC with AIX 2.2.1, valid as of C-Kermit 8.0.
  2602. #NOTLOG because of a conflict in <sys/termio.h>.
  2603. #This one has unique and strange lockfiles.
  2604. #  -O removed on purpose (8.0).
  2605. #  In case of "compiler error: symbol table full", increase the -Nn number.
  2606. #  In case of "compiler error: Constant pool too big", boost the -Np number.
  2607. #  Add -DNOPUTENV if putenv() causes trouble.
  2608. #  Put -DNOIKSD back if IKSD-related problems occur.
  2609. rtaix:
  2610.     @echo 'Making C-Kermit $(CKVER) for IBM RT PC, AIX 2.2.1...'
  2611.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  2612.     "CFLAGS = -DATTSV -DRTAIX -DHDBUUCP -DDIRENT -DNOTLOG -DTCPSOCKET \
  2613.     -DNOGETUSERSHELL -DCLSOPN -DNOREALPATH -DNOUNICODE -DBSD_INCLUDES \
  2614.     -DUSE_LSTAT -DFNFLOAT -Nn2500 -Np1000 -Wq,-SJ2 -a -w $(KFLAGS)" \
  2615.     "LIBS = -lm $(LIBS)" "LNKFLAGS = -s"
  2616.  
  2617. #IBM RT PC with AIX 2.2.1 + curses
  2618. rtaixc:
  2619.     $(MAKE) rtaix "KFLAGS=-DCK_CURSES" "LIBS=-lcurses"
  2620.  
  2621. #IBM RT PC with AIX (ACIS) 2.2.1 (BSD 4.3)
  2622. # Add -O, -DDYNAMIC, -s, etc, if they work.
  2623. rtacis:
  2624.     @echo Making C-Kermit $(CKVER) for RT PC with ACIS 2.2.1 = BSD 4.3...
  2625.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  2626.     "CFLAGS= -DBSD4 -DTCPSOCKET -DNOREALPATH -DNOIKSD -DNOPUTENV \
  2627.     $(KFLAGS) -U__STDC__" "LNKFLAGS = -s"
  2628.  
  2629. #IBM AIX 3.0, 3.1, or 3.2 for RISC System/6000.
  2630. rs6000:
  2631.     @echo Making C-Kermit $(CKVER) for IBM AIX 3.0 or 3.1, RS/6000...
  2632.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2633.     "CFLAGS= -DAIXRS -DTCPSOCKET -DSVR3 -DDIRENT -DCK_ANSIC \
  2634.     -DCK_POLL -DCLSOPN -DSELECT_H -DNOTTYLOCK -O $(KFLAGS)" \
  2635.     "LNKFLAGS = -s"
  2636.  
  2637. #IBM AIX 3.0, 3.1, or 3.2 for RISC System/6000, with curses.
  2638. rs6000c:
  2639.     @echo Making C-Kermit $(CKVER) for IBM AIX 3.0 or 3.1, RS/6000...
  2640.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2641.     "CFLAGS= -DAIXRS -DTCPSOCKET -DSVR3 -DDIRENT -DCK_ANSIC \
  2642.     -DCK_POLL -DCLSOPN -DCK_CURSES -DSELECT_H -DNOTTYLOCK -DNOREALPATH \
  2643.     -O $(KFLAGS)" "LIBS= -lcurses -ltermcap" "LNKFLAGS = -s"
  2644.  
  2645. aix30:
  2646.     $(MAKE) rs6000 KTARGET=$${KTARGET:-$(@)}
  2647.  
  2648. aix31:
  2649.     $(MAKE) rs6000 KTARGET=$${KTARGET:-$(@)}
  2650.  
  2651. #IBM AIX 3.2 for RISC System/6000.
  2652. #In case of "subprogram too complex" warnings, add "-qmaxmem=16000" to CFLAGS.
  2653. rs6aix32:
  2654.     @echo Making C-Kermit $(CKVER) for IBM AIX 3.2, RS/6000...
  2655.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2656.     "CFLAGS= -DAIXRS -DTCPSOCKET -DSVR4 -DDIRENT -DCK_ANSIC -DNOREALPATH \
  2657.     -DSELECT_H -DCLSOPN -DNOTTYLOCK -O $(KFLAGS)" "LNKFLAGS = -s"
  2658.  
  2659. #IBM AIX 3.2 for RISC System/6000.
  2660. rs6aix32c:
  2661.     @echo Making C-Kermit $(CKVER) for IBM AIX 3.2, RS/6000, TCP+curses...
  2662.     @echo In case of Subprogram Too Complex warnings,
  2663.     @echo add -qmaxmem=16000 to CFLAGS.
  2664.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2665.     "CFLAGS= -DAIXRS -DTCPSOCKET -DSVR4 -DDIRENT -DCK_ANSIC -DNOREALPATH \
  2666.     -DCLSOPN -DCK_CURSES -DSELECT_H -DNOTTYLOCK -O $(KFLAGS)" \
  2667.     "LNKFLAGS = -s" "LIBS=-lcurses"
  2668.  
  2669. aix32:
  2670.     $(MAKE) rs6aix32c KTARGET=$${KTARGET:-$(@)}
  2671.  
  2672. #IBM AIX 4.1, 4.1.x on RISC System/6000 or Power Series.
  2673. #Generates common binary for all platforms if using xlc (IBM C compiler).
  2674. #When using gcc, add -mcpu=common to generate common binary.
  2675. #Note that this one needs CK_NEWTERM.
  2676. # Add -bbigtoc in case ld fails with TOC overflow.
  2677. aix41:
  2678.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.1.1 RS/6000 or PowerPC...
  2679.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2680.     "CFLAGS= -DAIXRS -DAIX41 -DSVR4 -DSTERMIOX -DTCPSOCKET -DDIRENT \
  2681.     -DCK_ANSIC -DCLSOPN -DCK_CURSES -DCK_NEWTERM -DSELECT -DSELECT_H \
  2682.     -DNOGETUSERSHELL -qmaxmem=16000 -O $(KFLAGS)" \
  2683.     "LNKFLAGS = -s" "LIBS=-lcurses"
  2684.  
  2685. #Ditto but with gcc.
  2686. #Remove "CC=gcc CC2=gcc" if you have gcc installed as cc.
  2687. aix41g:
  2688.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.1.1 RS/6000 or PowerPC...
  2689.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC=gcc" "CC2=gcc" \
  2690.     "CFLAGS= -DAIXRS -DAIX41 -DSVR4 -DSTERMIOX -DTCPSOCKET -DDIRENT \
  2691.     -DCK_ANSIC -DCLSOPN -DCK_CURSES -DCK_NEWTERM -DSELECT -DSELECT_H \
  2692.     -DNOGETUSERSHELL -O $(KFLAGS)" \
  2693.     "LNKFLAGS = -s -Xlinker -bbigtoc" "LIBS=-lcurses"
  2694.  
  2695. # Add -bbigtoc in case ld fails with TOC overflow.
  2696. aix41+krb5+krb4:
  2697.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.1.1 RS/6000 or PowerPC...
  2698.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2699.     "CFLAGS= -DAIXRS -DAIX41 -DSVR4 -DSTERMIOX -DTCPSOCKET -DDIRENT \
  2700.     -DCK_ANSIC -DCLSOPN -DCK_CURSES -DCK_NEWTERM -DSELECT -DSELECT_H \
  2701.     -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 -DKRB4 -DKRB524 \
  2702.     -DCK_ENCRYPTION -DCK_DES $(K5INC) $(K5INC)/krb5  \
  2703.     -DNOGETUSERSHELL -qmaxmem=16000 -O $(KFLAGS)" \
  2704.     "LNKFLAGS = -s" \
  2705.     "LIBS = $(K5LIB) -lcurses -lkrb4 -ldes425 -lkrb5 \
  2706.     -lcom_err -lk5crypto -lgssapi_krb5"
  2707.  
  2708. #Old name for "aix41".
  2709. rs6aix41c:
  2710.     $(MAKE) aix41 KTARGET=$${KTARGET:-$(@)}
  2711.  
  2712. #IBM AIX 4.1, 4.1.x, or 4.2 on RISC System/6000 or Power Series,
  2713. # with X.25 support
  2714. #Generates common binary for all platforms if using xlc (IBM C compiler).
  2715. #When using gcc, add -mcpu=common to generate common binary.
  2716. # Add -bbigtoc in case ld fails with TOC overflow.
  2717. aix41x25:
  2718.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.1.1 RS/6000 or PowerPC...
  2719.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2720.     "CFLAGS= -DAIXRS -DAIX41 -DSVR4 -DSTERMIOX -DTCPSOCKET -DDIRENT \
  2721.     -DCK_ANSIC -DCLSOPN -DCK_CURSES -DCK_NEWTERM -DSELECT -DSELECT_H \
  2722.     -DIBMX25 -DDEBUG -DNOGETUSERSHELL -qmaxmem=16000 -g $(KFLAGS)" \
  2723.     "LNKFLAGS = -g -bI:/lib/pse.exp" "LIBS=-lcurses -lodm -lcfg"
  2724.     -@echo "]0;kermit done\c"
  2725.  
  2726. #As above but without -g in LNKFLAGS.
  2727. # Add -bbigtoc in case ld fails with TOC overflow.
  2728. aix41x25o:
  2729.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.1.1 RS/6000 or PowerPC...
  2730.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2731.     "CFLAGS= -DAIXRS -DAIX41 -DSVR4 -DSTERMIOX -DTCPSOCKET -DDIRENT \
  2732.     -DCK_ANSIC -DCLSOPN -DCK_CURSES -DCK_NEWTERM -DSELECT -DSELECT_H \
  2733.     -DIBMX25 -DNODEBUG -DNOGETUSERSHELL -qmaxmem=16000 $(KFLAGS)" \
  2734.     "LNKFLAGS = -bI:/lib/pse.exp" "LIBS=-lcurses -lodm -lcfg"
  2735.     -@echo "]0;kermit done\c"
  2736.  
  2737. #AIX 4.2 -- Must have CK_NEWTERM or echoing is lost after curses.
  2738. # Add -bbigtoc in case ld fails with TOC overflow.
  2739. aix42:
  2740.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.2 or higher...
  2741.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2742.     "CFLAGS= -DAIXRS -DAIX41 -DAIX42 -DSVR4 -DSTERMIOX -DTCPSOCKET \
  2743.     -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DCK_NEWTERM -DFNFLOAT \
  2744.     -DSELECT -DSELECT_H -DNOGETUSERSHELL -qmaxmem=16000 -O $(KFLAGS)" \
  2745.     "LNKFLAGS = -s" "LIBS=-lcurses -lm"
  2746.  
  2747. #AIX 4.3 -- Must NOT have CK_NEWTERM or else C-Kermit hangs after curses.
  2748. # -bbigtoc needed on some systems but not others to avoid TOC overflow.
  2749. # "man ld" says -bbigtoc makes program run slower.
  2750. aix43:
  2751.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.3 or higher...
  2752.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2753.     "CFLAGS= -DAIXRS -DAIX41 -DAIX43 -DSVR4 -DSTERMIOX -DTCPSOCKET \
  2754.     -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DSELECT -DSELECT_H \
  2755.     -DFNFLOAT -DNOGETUSERSHELL -qmaxmem=16000 -bbigtoc -O $(KFLAGS)" \
  2756.     "LNKFLAGS = -s" "LIBS=-lcurses -lm"
  2757.  
  2758. #AIX 4.3 with IBM X.25.
  2759. aix43x25:
  2760.     @echo "Making C-Kermit $(CKVER) for IBM AIX 4.3 with X.25..."
  2761.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2762.     "CFLAGS= -DAIXRS -DAIX41 -DAIX43 -DSVR4 -DSTERMIOX -DTCPSOCKET \
  2763.     -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DSELECT -DSELECT_H \
  2764.     -DFNFLOAT -DNOGETUSERSHELL -DIBMX25 \
  2765.     -qmaxmem=16000 -bbigtoc -O $(KFLAGS)" \
  2766.     "LNKFLAGS = -bI:/lib/pse.exp" "LIBS=-lcurses -lodm -lcfg -lm"
  2767.  
  2768. #AIX 4.3 -- Must NOT have CK_NEWTERM or else C-Kermit hangs after curses.
  2769. # -mminimal-toc needed on some systems but not others to avoid TOC overflow.
  2770. # "man ld" says -bbigtoc makes program run slower.
  2771. aix43g:
  2772.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.3 gcc...
  2773.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  2774.     "CFLAGS= -mminimal-toc -g -O -DAIXRS -DAIX41 -DAIX43 -DSVR4 \
  2775.     -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DSELECT -DSELECT_H \
  2776.     -DSTERMIOX -DTCPSOCKET -DFNFLOAT -DNOGETUSERSHELL $(KFLAGS)" \
  2777.     "LIBS=-lcurses -lm"
  2778.  
  2779. aix43gcc:
  2780.     $(MAKE) aix43g
  2781.  
  2782. # None of the following aix43gcc attempts work on a gcc-only AIX 4.3.3 box.
  2783. # It just plain can't find the math routines (fmod, pow, exp, sqrt, log10,...)
  2784. # Which is odd because nm /usr/lib/libC.a finds them...
  2785.  
  2786. #in case aix43gcc can't find its math library...
  2787. aix43gccx:
  2788.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.3 gcc...
  2789.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  2790.     "CFLAGS= -mminimal-toc -g -O -DAIXRS -DAIX41 -DAIX43 -DSVR4 \
  2791.     -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DSELECT -DSELECT_H \
  2792.     -DSTERMIOX -DTCPSOCKET -DFNFLOAT -DNOGETUSERSHELL $(KFLAGS)" \
  2793.     "LIBS= -L/usr/local/lib/gcc-lib/powerpc-ibm-aix4.3.1.0/2.95.2 \
  2794.     -lcurses -bloadmap -bnoquiet"
  2795.  
  2796. #in case aix43gccx can't find its math library...
  2797. aix43gccy:
  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 -bloadmap -bnoquiet"
  2804.  
  2805. #in case aix43gccx can't find its math library...
  2806. aix43gccz:
  2807.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.3 gcc...
  2808.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  2809.     "CFLAGS= -mminimal-toc -g -O -DAIXRS -DAIX41 -DAIX43 -DSVR4 \
  2810.     -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DSELECT -DSELECT_H \
  2811.     -DSTERMIOX -DTCPSOCKET -DFNFLOAT -DNOGETUSERSHELL $(KFLAGS)" \
  2812.     "LIBS= -L. -lcurses -bloadmap -bnoquiet"
  2813.  
  2814.  
  2815. #AIX 4.3 with MIT Kerberos 5 and Kerberos 4 compatibility mode
  2816. # Must NOT have CK_NEWTERM or else C-Kermit hangs after curses.
  2817. # -mminimal-toc needed on some systems but not others to avoid TOC overflow.
  2818. # "man ld" says -bbigtoc makes program run slower.
  2819. aix43gcc+krb5+krb4:
  2820.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.3 or higher w/Kerberos...
  2821.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  2822.     "CFLAGS= -mminimal-toc -g -O -DAIXRS -DAIX41 -DAIX43 -DSVR4 \
  2823.     -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DSELECT -DSELECT_H \
  2824.     -DSTERMIOX -DTCPSOCKET -DFNFLOAT -DNOGETUSERSHELL \
  2825.     -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 -DKRB4 -DKRB524 \
  2826.     -DCK_ENCRYPTION -DCK_DES -funsigned-char $(K5INC) $(K5INC)/krb5 \
  2827.     $(KFLAGS)" \
  2828.     "LIBS=$(K5LIB) -lcurses -lm -lkrb4 -ldes425 -lkrb5 \
  2829.     -lcom_err -lk5crypto -lcrypt -lgssapi_krb5"
  2830.  
  2831. #AIX 4.3 with MIT Kerberos 5, Kerberos 4 compatibility mode and OpenSSL
  2832. # Must NOT have CK_NEWTERM or else C-Kermit hangs after curses.
  2833. # -mminimal-toc needed on some systems but not others to avoid TOC overflow.
  2834. # "man ld" says -bbigtoc makes program run slower.
  2835. aix43gcc+krb5+krb4+openssl:
  2836.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.3 or higher w/Kerberos...
  2837.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  2838.     "CFLAGS= -mminimal-toc -g -O -DAIXRS -DAIX41 -DAIX43 -DSVR4 \
  2839.     -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DSELECT -DSELECT_H \
  2840.     -DSTERMIOX -DTCPSOCKET -DFNFLOAT -DNOGETUSERSHELL \
  2841.     -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 -DKRB4 -DKRB524 \
  2842.     -DCK_ENCRYPTION -DCK_DES -DCK_CAST -DLIBDES -DCK_SSL \
  2843.     -funsigned-char $(K5INC) $(K5INC)/krb5 $(SSLINC) $(KFLAGS)" \
  2844.     "LIBS=$(K5LIB) $(SSLLIB) -lssl -lcrypto \
  2845.     -lcurses -lm -lkrb4 -ldes425 -lkrb5 -lcom_err -lk5crypto -lcrypt \
  2846.     -lgssapi_krb5"
  2847.  
  2848. aix43gcc+openssl:
  2849.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.3 or higher w/OpenSSL...
  2850.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  2851.     "CFLAGS= -mminimal-toc -g -O -DAIXRS -DAIX41 -DAIX43 -DSVR4 \
  2852.     -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DSELECT -DSELECT_H \
  2853.     -DSTERMIOX -DTCPSOCKET -DFNFLOAT -DNOGETUSERSHELL \
  2854.     -DCK_AUTHENTICATION -DCK_SSL -funsigned-char $(SSLINC) $(KFLAGS)" \
  2855.     "LIBS=$(SSLLIB) -lssl -lcrypto -lcurses -lm -lcrypt"
  2856.  
  2857. aix44:
  2858.     $(MAKE) aix42 "KFLAGS=-DAIX44 -qmaxmem=20000 $(KFLAGS)" \
  2859.     KTARGET=$${KTARGET:-$(@)}
  2860.  
  2861. aix45:
  2862.     $(MAKE) aix42 "KFLAGS=-DAIX45 -qmaxmem=20000 $(KFLAGS)" \
  2863.     KTARGET=$${KTARGET:-$(@)}
  2864.  
  2865. aix50:
  2866.     $(MAKE) aix42 "KFLAGS=-DAIX50 -qmaxmem=20000 $(KFLAGS)" \
  2867.     KTARGET=$${KTARGET:-$(@)}
  2868.  
  2869. aix51:
  2870.     $(MAKE) aix42 "KFLAGS=-DAIX51 -qmaxmem=20000 $(KFLAGS)" \
  2871.     KTARGET=$${KTARGET:-$(@)}
  2872.  
  2873. aix52:
  2874.     $(MAKE) aix42 "KFLAGS=-DAIX52 -qmaxmem=20000 $(KFLAGS)" \
  2875.     KTARGET=$${KTARGET:-$(@)}
  2876.  
  2877. aix53:
  2878.     $(MAKE) aix42 "KFLAGS=-DAIX53 -qmaxmem=20000 $(KFLAGS)" \
  2879.     KTARGET=$${KTARGET:-$(@)}
  2880.  
  2881. aix44gcc:
  2882.     $(MAKE) aix43g "KFLAGS=-DAIX44 $(KFLAGS)" \
  2883.     KTARGET=$${KTARGET:-$(@)}
  2884.  
  2885. aix45gcc:
  2886.     $(MAKE) aix43g "KFLAGS=-DAIX45 $(KFLAGS)" \
  2887.     KTARGET=$${KTARGET:-$(@)}
  2888.  
  2889. aix50gcc:
  2890.     $(MAKE) aix43g "KFLAGS=-DAIX50 $(KFLAGS)" \
  2891.     KTARGET=$${KTARGET:-$(@)}
  2892.  
  2893. aix51gcc:
  2894.     $(MAKE) aix43g "KFLAGS=-DAIX51 $(KFLAGS)" \
  2895.     KTARGET=$${KTARGET:-$(@)}
  2896.  
  2897. aix52gcc:
  2898.     $(MAKE) aix43g "KFLAGS=-DAIX52 $(KFLAGS)" \
  2899.     KTARGET=$${KTARGET:-$(@)}
  2900.  
  2901. aix53gcc:
  2902.     $(MAKE) aix43g "KFLAGS=-DAIX53 $(KFLAGS)" \
  2903.     KTARGET=$${KTARGET:-$(@)}
  2904.  
  2905. #Bull DPX/2 with BOS/X, like AIX/RS6000
  2906. bulldpx2:
  2907.     @echo Making C-Kermit $(CKVER) for Bull DPX/2 with BOS/X...
  2908.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  2909.     "CFLAGS= -DSVR3 -DDIRENT -DCK_ANSIC -DCKTYP_H=<sys/types.h> \
  2910.     -DCK_POLL -DNOGETUSERSHELL -DCLSOPN -DNOLEARN -O $(KFLAGS)" \
  2911.     "LNKFLAGS = -s"
  2912.  
  2913. #Sun UNIX 3.5 with gcc 2.3.3.
  2914. sunos3gcc:
  2915.     @echo Making C-Kermit $(CKVER) for Sun UNIX 3.5 and gcc...
  2916.     $(MAKE) xermit CC=gcc CC2=gcc KTARGET=$${KTARGET:-$(@)} \
  2917.     CFLAGS="-g -O -DBSD4 -DTCPSOCKET $(KFLAGS)"
  2918.  
  2919. #SunOS version 4.0, BSD environment, has saved original euid feature.
  2920. # Add "CC=/usr/ucb/cc CC2=/usr/ucb/cc" if necessary.
  2921. # Note: Including Unicode crashes the assembler in ckcuni.c.
  2922. sunos4:
  2923.     @echo Making C-Kermit $(CKVER) for SunOS 4.0, BSD environment...
  2924.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2925.     "CFLAGS= -O -DSUNOS4 -DFNFLOAT -DNOUNICODE $(KFLAGS)" \
  2926.     "LIBS=-lm"
  2927.  
  2928. #As above, but with SunLink X.25 support
  2929. sunos4x25:
  2930.     @echo SunLink X.25 support
  2931.     $(MAKE) "MAKE=$(MAKE)" sunos4 KTARGET=$${KTARGET:-$(@)} \
  2932.     "KFLAGS=$(KFLAGS) -DFNFLOAT -DSUNX25" \
  2933.     "LIBS=-lm"
  2934.  
  2935. #SUN OS version 4.1 - 4.1.3, BSD environment, has saved original euid feature.
  2936. #Uses Honey DanBer UUCP.  Requires presence of /usr/spool/locks directory.
  2937. # /var/spool/ should be a symbolic link to  /usr/spool/.
  2938. # ... or 'make xermit "CC= /usr/ucb/cc " \'
  2939. # Note: "xermit" means use the select() version of the CONNECT module.
  2940. sunos41:
  2941.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 / BSD...
  2942.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2943.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNOUNICODE $(KFLAGS)" \
  2944.     "LIBS= $(LIBS) -lresolv -lm"
  2945.  
  2946. #As above, but compiled with gcc.  Gives 24-32K size reduction
  2947. #with gcc 2.1 or 2.2.2.  CAUTION: make sure "fixincludes" has been run on
  2948. #the include files, so gcc's are in sync with the regular Sun ones!
  2949. #This includes the curses library for fullscreen file transfer display.
  2950. #NDGPWNAM needed for GCC 2.5.6, not needed for 2.4.0, but it's uncertain
  2951. #whether it will do any harm for 2.4.0 compilation -- if so, remove it.
  2952. sunos41gcc:
  2953.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 with gcc and curses...
  2954.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
  2955.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT \
  2956.     -funsigned-char $(KFLAGS)" "LIBS= -lcurses -ltermcap -lresolv -lm"
  2957.  
  2958. # As above, but without -funsigned-char so I can see the warnings that
  2959. # everybody else will get when they use ANSI compilers that don't have this
  2960. # option (gsc = gcc signed char).
  2961. sunos41gsc:
  2962.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 with gcc and curses...
  2963.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
  2964.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT \
  2965.     $(KFLAGS)" "LIBS= -lcurses -ltermcap -lresolv -lm"
  2966.  
  2967. #As above but with ckucon.c rather than ckucns.c (for testing only)
  2968. sunos41gccfork:
  2969.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 with gcc and curses...
  2970.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
  2971.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT \
  2972.     -DNOLEARN -funsigned-char $(KFLAGS)" \
  2973.     "LIBS= -lcurses -ltermcap -lresolv -lm"
  2974.  
  2975. #as above but configured for Kerberos IV
  2976. sunos41gcc+krb4:
  2977.     @echo Making C-Kermit $(CKVER) for SunOS 4.1, gcc, curses, krb4...
  2978.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
  2979.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT \
  2980.     -DTCPSOCKET -DCK_AUTHENTICATION -DCK_KERBEROS  -DKRB4 \
  2981.     -DCK_ENCRYPTION -DCK_DES -DCK_CAST -DBIGBUFOK -funsigned-char \
  2982.     $(K4INC) $(KFLAGS)" \
  2983.     "LIBS= $(K4LIB) -lcurses -ltermcap -lresolv -lm -lkrb -ldes"
  2984.  
  2985. #as above but configured for SSL/TLS
  2986. sunos41gcc+openssl:
  2987.     @echo Making C-Kermit $(CKVER) for SunOS 4.1, gcc, curses, ssl...
  2988.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
  2989.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT \
  2990.     -DCK_AUTHENTICATION -funsigned-char \
  2991.     -DCK_SSL -DTCPSOCKET -DBIGBUFOK $(SSLINC) $(KFLAGS)" \
  2992.     "LIBS= $(SSLLIB) -lcurses -ltermcap -lresolv -lm -lssl -lcrypto"
  2993.  
  2994. #as above but configured for Kerberos IV and SSL/TLS
  2995. sunos41gcc+krb4+openssl:
  2996.     @echo Making C-Kermit $(CKVER) for SunOS 4.1, gcc, curses, krb4...
  2997.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
  2998.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT \
  2999.     -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB4 -DCK_ENCRYPTION -DCK_DES \
  3000.     -DCK_CAST -DCK_SSL -DLIBDES -DTCPSOCKET -DBIGBUFOK -funsigned-char \
  3001.     $(K4INC) $(SSLINC) $(KFLAGS)" \
  3002.     "LIBS= $(K4LIB) $(SSLLIB) \
  3003.     -lcurses -ltermcap -lresolv -lm -lkrb -lssl -lcrypto"
  3004.  
  3005. #as above but configured for Kerberos IV and ZLIB enabled SSL/TLS
  3006. sunos41gcc+krb4+openssl+zlib:
  3007.     @echo Making C-Kermit $(CKVER) for SunOS 4.1, gcc, curses, krb4...
  3008.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
  3009.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT \
  3010.     -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB4 -DCK_ENCRYPTION -DCK_DES \
  3011.     -DCK_CAST -DCK_SSL -DLIBDES -DTCPSOCKET -DBIGBUFOK -funsigned-char \
  3012.     -DZLIB $(K4INC) $(SSLINC) \
  3013.     $(KFLAGS)" \
  3014.     "LIBS= $(K4LIB) $(SSLLIB) \
  3015.     -lcurses -ltermcap -lresolv -lm -lkrb -lssl -lcrypto -lz"
  3016.  
  3017. #as above but configured for Kerberos IV and SRP and ZLIB enabled SSL/TLS
  3018. sunos41gcc+krb4+srp+openssl+zlib:
  3019.     @echo "C-Kermit $(CKVER) SunOS 4.1: gcc,curses,krb4,srp,ssl,zlib..."
  3020.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
  3021.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT \
  3022.     -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB4 -DCK_ENCRYPTION -DCK_DES \
  3023.     -DCK_CAST -DCK_SSL -DLIBDES -DTCPSOCKET -DBIGBUFOK -funsigned-char \
  3024.     -DZLIB -DCK_SRP $(K4INC) $(SRPINC) $(SSLINC) $(KFLAGS)" \
  3025.     "LIBS= $(K4LIB) $(SRPLIB) $(SSLLIB) \
  3026.     -lcurses -ltermcap -lresolv -lm -lkrb -lkrypto \
  3027.     -lsrp -lssl -lcrypto -lz"
  3028.  
  3029. #as above but configured for Kerberos IV and SRP and ZLIB enabled SSL/TLS
  3030. sunos41gcc+srp+openssl+zlib:
  3031.     @echo "C-Kermit $(CKVER) SunOS 4.1: gcc,curses,srp,ssl,zlib..."
  3032.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
  3033.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT \
  3034.     -DCK_AUTHENTICATION -DCK_ENCRYPTION -DCK_DES \
  3035.     -DCK_CAST -DCK_SSL -DLIBDES -DTCPSOCKET -DBIGBUFOK -funsigned-char \
  3036.     -DZLIB -DCK_SRP $(SRPINC) $(SSLINC) \
  3037.     $(KFLAGS)" \
  3038.     "LIBS= $(SRPLIB) $(SSLLIB) \
  3039.     -lcurses -ltermcap -lresolv -lm -lkrypto -lsrp -lssl -lcrypto -lz "
  3040.  
  3041. #SUNOS 4.1 as sunos41 above, but also with curses support
  3042. sunos41c:
  3043.     @echo Curses support
  3044.     $(MAKE) "MAKE=$(MAKE)" sunos41 KTARGET=$${KTARGET:-$(@)} \
  3045.     "KFLAGS=$(KFLAGS) -DCK_CURSES -DFNFLOAT " \
  3046.     "LIBS= -lcurses -ltermcap"
  3047.  
  3048. #As SunOS 4.1.x, gcc, configured as Internet Kermit Server.
  3049. # . NOLOCAL removes capability to make connections
  3050. # . TNCODE allows server-side Telnet negotiation.
  3051. # . used to include -lpwent, why?
  3052. # . used to include -L/usr/local/lib -lm, why?
  3053. sunos41giks:
  3054.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 with gcc for IKS...
  3055.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
  3056.     "CFLAGS= -O -DSUNOS41 -DNDGPWNAM -DFNFLOAT \
  3057.     -DNOLOCAL -DTCPSOCKET -DTNCODE -DNOPUSH $(KFLAGS)" \
  3058.     "LIBS= -lm -lresolv"
  3059.  
  3060. #SUNOS 4.1 with SunLink X.25 support
  3061. sunos41x25:
  3062.     @echo SunLink X.25 support
  3063.     $(MAKE) "MAKE=$(MAKE)" wermit KTARGET=$${KTARGET:-$(@)} \
  3064.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNOUNICODE -DFNFLOAT -DSUNX25 \
  3065.     -DNOLEARN $(KFLAGS)" "LIBS= $(LIBS) -lresolv -lm"
  3066.  
  3067. #SUNOS 4.1 with SunLink X.25 support and curses
  3068. sunos41x25c:
  3069.     @echo SunLink X.25 support + curses
  3070.     $(MAKE) "MAKE=$(MAKE)" wermit KTARGET=$${KTARGET:-$(@)} \
  3071.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNOUNICODE -DFNFLOAT -DSUNX25 \
  3072.     -DCK_CURSES -DNOLEARN $(KFLAGS)" \
  3073.     "LIBS= $(LIBS) -lcurses -ltermcap -lresolv -lm"
  3074.  
  3075. #SUN with Solaris 2.0 = SunOS 5.0.
  3076. #Mostly the same as System V R4.  Don't use this with later Solaris versions.
  3077. solaris20:
  3078.     @echo 'Making C-Kermit $(CKVER) for Sun with Solaris 2.0 and curses...'
  3079.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3080.     "CFLAGS = -O -DSVR4 -DSOLARIS -DDIRENT -DHDBUUCP -DSTERMIOX \
  3081.     -DTCPSOCKET -DCK_CURSES -DFNFLOAT -DCK_POLL $(KFLAGS)" \
  3082.     "LIBS= -lsocket -lnsl -lcurses -ltermlib -lm" "LNKFLAGS = -s"
  3083.  
  3084. #SUN with Solaris 2.0.
  3085. #As above, but built with the gcc compiler from the Cygnus CD-ROM.
  3086. solaris20g:
  3087.     @echo 'Making C-Kermit $(CKVER) for Sun Solaris 2.0, gcc, and curses..'
  3088.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3089.     "CFLAGS = -O -DSVR4 -DSOLARIS -DDIRENT -DHDBUUCP -DSTERMIOX \
  3090.     -DTCPSOCKET -DCK_CURSES -DCK_POLL -DFNFLOAT $(KFLAGS)" \
  3091.     "LIBS= -lsocket -lnsl -lcurses -ltermlib -lm" "LNKFLAGS = -s" \
  3092.     CC=/opt/cygnus-sol2-1.1/bin/gcc CC2=/opt/cygnus-sol2-1.1/bin/gcc
  3093.  
  3094. #SunOS 5.1 = Solaris 2.1.
  3095. #NOTE: A C compiler is no longer bundled with SunOS 5.1, so to compile C
  3096. #programs, you might have to change your PATH to include the directory
  3097. #/usr/ccs/bin AFTER the directory containing the compiler.  SunPRO C is
  3098. #installed by default in /opt/SUNWspro/bin.  So a sample PATH might be:
  3099. #
  3100. # /usr/local/bin:/usr/bin:/opt/SUNWspro/bin:/usr/ccs/bin:\
  3101. # /usr/ucb:/usr/sbin:/sbin:.
  3102. #
  3103. # or:
  3104. #
  3105. # /usr/openwin/bin:/export/home/SUNWspro/bin:/usr/ccs/bin:/usr/sbin:/usr/bin.
  3106. #
  3107. #NOTE 2: Compilation with the Apogee C compiler (apcc) might not work,
  3108. #because it refuses to allow "-Usun".  Reportedly, newer releases of apcc
  3109. #(such as 1.2.17) work OK, use: "make -e sunos51 CC=apcc CC2=apcc".
  3110. solaris21:
  3111.     @echo 'Making C-Kermit $(CKVER) for SunOS 5.x....'
  3112.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3113.     "CFLAGS = -O -Usun -DSVR4 -DSOLARIS -DDIRENT -DHDBUUCP -DFNFLOAT \
  3114.     -DSELECT -DNODEBUG -DSTERMIOX $(KFLAGS)" "LIBS = -lm" "LNKFLAGS = -s"
  3115.  
  3116. #C-Kermit for Solaris 2.0-2.4 compiled with gcc, includes curses and TCP/IP.
  3117. #Change -O2 to -O if -O2 gives trouble.
  3118. #Remove -Usun if it causes trouble.
  3119. #Your PATH should start with something like:
  3120. #  /usr/local/gnu/bin:/usr/ccs/bin:
  3121. #Produces a huge executable -- strip with /usr/ccs/bin/strip (not Gnu strip).
  3122. #Also don't add "LNKFLAGS = -s" -- strip manually instead.
  3123. #Also note: this can NOT be linked statically - Sun makes it impossible.
  3124. #And for Solaris 2.4, you might have to replace:
  3125. # /usr/local/lib/gcc-lib/i486-sun-solaris2/2.4.5/include/sys/stat.h
  3126. #with /usr/include/sys/stat.h.
  3127. solaris2xg:
  3128.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.x with GNU cc...'
  3129.     @echo 'Please read the comments that accompany the solaris2xg target.'
  3130.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  3131.     "CFLAGS = -g -O -Usun -DSVR4 -DSOLARIS -DSTERMIOX -DSELECT -DFNFLOAT \
  3132.     -DCK_CURSES -DCK_NEWTERM -DDIRENT -DHDBUUCP -DTCPSOCKET $(KFLAGS)" \
  3133.     "LIBS= -ltermlib -lsocket -lnsl -lm -lresolv $(LIBS)"
  3134.  
  3135. #ditto but no curses.
  3136. solaris2xgnc:
  3137.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.x with GNU cc...'
  3138.     @echo 'Please read the comments that accompany the solaris2xg target.'
  3139.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  3140.     "CFLAGS = -g -O -Usun -DSVR4 -DSOLARIS -DSTERMIOX -DSELECT -DFNFLOAT \
  3141.     -DDIRENT -DHDBUUCP -DTCPSOCKET $(KFLAGS)" \
  3142.     "LIBS= -lsocket -lnsl -lm -lresolv $(LIBS)"
  3143.  
  3144. #and with Kerberos IV
  3145. solaris2xg+krb4:
  3146.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.x with GNU cc, krb4...'
  3147.     @echo 'Please read the comments that accompany the solaris2xg target.'
  3148.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  3149.     "CFLAGS = -g -O -Usun -DSVR4 -DSOLARIS -DSTERMIOX -DSELECT -DFNFLOAT \
  3150.     -DCK_CURSES -DCK_NEWTERM -DDIRENT -DHDBUUCP -DTCPSOCKET \
  3151.     -DCK_AUTHENTICATION -DCK_KERBEROS  -DKRB4 -DCK_ENCRYPTION \
  3152.     -DCK_DES -DCK_CAST -DBIGBUFOK $(K4INC) $(KFLAGS)" \
  3153.     "LIBS= $(K4LIB) -ltermlib -lsocket -lnsl -lm -lresolv -lkrb -ldes \
  3154.     $(LIBS)" 
  3155.  
  3156. #and with OpenSSL,ZLIB,PAM,SHADOW
  3157. solaris2xg+openssl+zlib+pam+shadow:
  3158.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.x with gcc, OpenSSL...'
  3159.     @echo 'Please read the comments that accompany the solaris2xg target.'
  3160.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  3161.     "CFLAGS = -g -O -Usun -DSVR4 -DSOLARIS -DSTERMIOX -DSELECT -DFNFLOAT \
  3162.     -DCK_CURSES -DCK_NEWTERM -DDIRENT -DHDBUUCP -DTCPSOCKET \
  3163.     -DCK_AUTHENTICATION -DCK_SSL -DCK_PAM -DCK_SHADOW  -DZLIB \
  3164.     -DBIGBUFOK $(SSLINC) $(KFLAGS)" \
  3165.     "LIBS= $(SSLLIB) -ltermlib \
  3166.     -lsocket -lnsl -lm -lresolv -lssl -lcrypto -lpam -lz" 
  3167.  
  3168. #Ditto but with GCC 3.1 in which you have to specify 32-bit with -m32.
  3169. #In Solaris 9 (and maybe 8) you'll also need specifiy the Library path.
  3170. #Reportedly this can't be done here, but only with:
  3171. # crle -l /usr/lib:/usr/local/ssl/lib
  3172. #prior to building.  Note: 64-bit not tested with SSL.
  3173. #For no-crypto 64-bit builds see the solaris9g64 target.
  3174. solaris2xg32+openssl+zlib+pam+shadow:
  3175.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.x with gcc, OpenSSL...'
  3176.     @echo 'Please read the comments that accompany the solaris2xg target.'
  3177.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC="gcc -m32" CC2="gcc -m32" \
  3178.     "CFLAGS = -g -O -Usun -DSVR4 -DSOLARIS -DSTERMIOX -DSELECT -DFNFLOAT \
  3179.     -DCK_CURSES -DCK_NEWTERM -DDIRENT -DHDBUUCP -DTCPSOCKET \
  3180.     -DCK_AUTHENTICATION -DCK_SSL -DCK_PAM -DCK_SHADOW  -DZLIB \
  3181.     -DBIGBUFOK $(SSLINC) $(KFLAGS)" \
  3182.     "LIBS= $(SSLLIB) -ltermlib \
  3183.     -lsocket -lnsl -lm -lresolv -lssl -lcrypto -lpam -lz" 
  3184.  
  3185. #and with Krb5,Krb4,OpenSSL,SHADOW
  3186. solaris2xg+krb5+krb4+openssl+shadow:
  3187.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.x with gcc,k5,k4,ssl...'
  3188.     @echo 'Please read the comments that accompany the solaris2xg target.'
  3189.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  3190.     "CFLAGS = -O -Usun -DSVR4 -DSOLARIS -DSTERMIOX -DSELECT -DFNFLOAT \
  3191.     -DCK_CURSES -DCK_NEWTERM -DDIRENT -DHDBUUCP -DTCPSOCKET \
  3192.     -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 -DKRB4 -DKRB524 \
  3193.     -DCK_ENCRYPTION -DCK_SSL -DCK_DES -DCK_CAST -DBIGBUFOK \
  3194.     $(K5INC) $(K5INC)/krb5 $(SSLINC) $(KFLAGS)" \
  3195.     "LIBS= $(K5LIB) $(SSLLIB) -ltermlib -lsocket -lnsl -lm -lresolv \
  3196.     -lkrb4 -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto"
  3197.  
  3198. #and with OpenSSL
  3199. solaris2xg+openssl+pam+shadow:
  3200.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.x with gcc, OpenSSL...'
  3201.     @echo 'Please read the comments that accompany the solaris2xg target.'
  3202.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  3203.     "CFLAGS = -g -O -Usun -DSVR4 -DSOLARIS -DSTERMIOX -DSELECT -DFNFLOAT \
  3204.     -DCK_CURSES -DCK_NEWTERM -DDIRENT -DHDBUUCP -DTCPSOCKET \
  3205.     -DCK_AUTHENTICATION -DCK_SSL -DCK_PAM -DCK_SHADOW \
  3206.     -DBIGBUFOK $(SSLINC) $(KFLAGS)" \
  3207.     "LIBS= $(SSLLIB) -ltermlib \
  3208.     -lsocket -lnsl -lm -lresolv -lssl -lcrypto -lpam" 
  3209.  
  3210. solaris22g:
  3211.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=-DPOSIX_CRTSCTS $(KFLAGS)" solaris2xg \
  3212.     KTARGET=$${KTARGET:-$(@)}
  3213.  
  3214. solaris23g:
  3215.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=-DPOSIX_CRTSCTS $(KFLAGS)" solaris2xg \
  3216.     KTARGET=$${KTARGET:-$(@)}
  3217.  
  3218. #Solaris 2.4 built with gcc
  3219. solaris24g:
  3220.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET:-$(@)} \
  3221.     solaris2xg "KFLAGS=-DSOLARIS24 -DPOSIX_CRTSCTS $(KFLAGS)"
  3222.  
  3223. #Solaris 2.5 built with gcc
  3224. solaris25g:
  3225.     $(MAKE) "MAKE=$(MAKE)" solaris2xg KTARGET=$${KTARGET:-$(@)} \
  3226.     "KFLAGS=-funsigned-char -DSOLARIS25 $(KFLAGS)"
  3227.  
  3228. #Solaris 2.5 built with gcc and Kerberos IV
  3229. solaris25g+krb4:
  3230.     $(MAKE) "MAKE=$(MAKE)" solaris2xg+krb4 KTARGET=$${KTARGET:-$(@)} \
  3231.     "KFLAGS=-funsigned-char -DSOLARIS25 $(KFLAGS)"
  3232.  
  3233. #Solaris 2.5 built with gcc and Kerberos V/IV, SSL, ...
  3234. solaris25g+krb5+krb4+openssl+shadow:
  3235.     $(MAKE) "MAKE=$(MAKE)" solaris2xg+krb5+krb4+openssl+shadow \
  3236.     KTARGET=$${KTARGET:-$(@)} \
  3237.     "KFLAGS=-funsigned-char -DSOLARIS25 $(KFLAGS)"
  3238.  
  3239. #Solaris 2.6 with gcc
  3240. solaris26g:
  3241.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET:-$(@)} solaris2xg \
  3242.     "KFLAGS= -DSOLARIS26 -DCK_PAM -DCK_SHADOW $(KFLAGS)" \
  3243.     "LIBS = -lpam"
  3244.  
  3245. #Solaris 2.6 with gcc and SSL
  3246. solaris26g+openssl:
  3247.     $(MAKE) "MAKE=$(MAKE)"  solaris2xg+openssl+pam+shadow \
  3248.     KTARGET=$${KTARGET:-$(@)} "KFLAGS= -DSOLARIS26 $(KFLAGS)"
  3249.  
  3250. #Solaris 2.6 with gcc, no curses (e.g. because libtermlib is missing).
  3251. solaris26gnc:
  3252.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET:-$(@)} solaris2xgnc \
  3253.     "KFLAGS= -DSOLARIS26 -DCK_PAM -DCK_SHADOW $(KFLAGS)" \
  3254.     "LIBS= -lpam"
  3255.  
  3256. #Solaris 7 with gcc (32-bit)
  3257. solaris7g:
  3258.     $(MAKE) "MAKE=$(MAKE)" solaris2xg KTARGET=$${KTARGET:-$(@)} \
  3259.     "KFLAGS=-DSOLARIS7 -DCK_PAM -DCK_SHADOW $(KFLAGS)" \
  3260.     "LIBS= -lpam"
  3261.  
  3262. #Solaris 7 with gcc + OpenSSL (32-bit)
  3263. solaris7g+openssl+zlib+pam+shadow:
  3264.     $(MAKE) "MAKE=$(MAKE)" solaris2xg+openssl+zlib+pam+shadow \
  3265.     KTARGET=$${KTARGET:-$(@)} \
  3266.     "KFLAGS=-DSOLARIS7 -DCK_PAM -DCK_SHADOW $(KFLAGS)"
  3267.  
  3268. #Solaris 7 with gcc + Kerberos IV (32-bit)
  3269. solaris7g+krb4:
  3270.     $(MAKE) "MAKE=$(MAKE)" solaris2xg+krb4 KTARGET=$${KTARGET:-$(@)} \
  3271.     "KFLAGS=-DSOLARIS7 -DCK_PAM -DCK_SHADOW $(KFLAGS)" \
  3272.     "LIBS= -lpam"
  3273.  
  3274. #Solaris 8 with gcc (32-bit)
  3275. solaris8g:
  3276.     $(MAKE) "MAKE=$(MAKE)" solaris2xg KTARGET=$${KTARGET:-$(@)} \
  3277.     "KFLAGS=-DSOLARIS8 -DCK_PAM -DCK_SHADOW $(KFLAGS)" \
  3278.     "LIBS= -lpam"
  3279.  
  3280. #Solaris 9 with gcc 3.1 (32-bit)
  3281. solaris9g:
  3282.     @echo 'Making C-Kermit $(CKVER) for Solaris 9 with gcc'
  3283.     $(MAKE) "MAKE=$(MAKE)" CC="gcc -m32" CC2="gcc -m32" xermit \
  3284.     KTARGET=$${KTARGET:-$(@)} \
  3285.     "CFLAGS = -g -O -Usun -DSVR4 -DSOLARIS -DSOLARIS9 -DUSE_STRERROR \
  3286.     -DSTERMIOX -DSELECT -DFNFLOAT -DCK_PAM -DCK_SHADOW -funsigned-char \
  3287.     -DCK_CURSES -DCK_NEWTERM -DDIRENT -DHDBUUCP -DTCPSOCKET $(KFLAGS)" \
  3288.     "LIBS= -ltermlib -lsocket -lnsl -lm -lresolv -lpam"
  3289.  
  3290. #Solaris 9 with gcc 3.1 (64-bit)
  3291. #Peeking inside struct FILE at its members ist strengst verboten.
  3292. solaris9g64:
  3293.     @echo 'Making C-Kermit $(CKVER) for Solaris 9 with gcc'
  3294.     $(MAKE) "MAKE=$(MAKE)" CC="gcc -m64" CC2="gcc -m64" xermit \
  3295.     KTARGET=$${KTARGET:-$(@)} \
  3296.     "CFLAGS = -g -O -Usun -DSVR4 -DSOLARIS     -DSOLARIS9 -DNOARROWKEYS \
  3297.     -DSTERMIOX -DSELECT -DFNFLOAT -DUSE_STRERROR -DCK_PAM -DCK_SHADOW \
  3298.     -DCK_CURSES -DCK_NEWTERM -DDIRENT -DHDBUUCP -DTCPSOCKET $(KFLAGS)" \
  3299.     "LIBS= -ltermlib -lsocket -lnsl -lm -lresolv -lpam"
  3300.  
  3301. #Solaris 8 with gcc + OpenSSL (32-bit)
  3302. solaris8g+openssl+zlib+pam+shadow:
  3303.     $(MAKE) "MAKE=$(MAKE)" solaris2xg+openssl+zlib+pam+shadow \
  3304.     KTARGET=$${KTARGET:-$(@)} "KFLAGS=-DSOLARIS8 $(KFLAGS)"
  3305.  
  3306. #Solaris 9 with gcc 3.1 + OpenSSL (32-bit)
  3307. solaris9g+openssl+zlib+pam+shadow:
  3308.     $(MAKE) "MAKE=$(MAKE)" solaris2xg32+openssl+zlib+pam+shadow \
  3309.     KTARGET=$${KTARGET:-$(@)} \
  3310.     "KFLAGS=-DSOLARIS9 -DUSE_STRERROR $(KFLAGS)"
  3311.  
  3312. #Solaris 8 with gcc + Kerberos IV (32-bit)
  3313. solaris8g+krb4:
  3314.     $(MAKE) "MAKE=$(MAKE)" solaris2xg+krb4 KTARGET=$${KTARGET:-$(@)} \
  3315.     "KFLAGS=-DSOLARIS8 -DCK_PAM -DCK_SHADOW $(KFLAGS)" \
  3316.     "LIBS= -lpam"
  3317.  
  3318. #Solaris 2.0-2.4, gcc, SunLink X.25 added.
  3319. #NOTE: Can't use xermit target with X.25.
  3320. solaris2xgx25:
  3321.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.x + X.25 with GNU cc...'
  3322.     @echo 'Please read the comments that accompany the solaris2xg entry.'
  3323.     $(MAKE) wermit CC=gcc CC2=gcc KTARGET=$${KTARGET:-$(@)} \
  3324.     "CFLAGS = -g -O -Usun -DSVR4 -DSOLARIS -DSTERMIOX -DSELECT -DSUNX25 \
  3325.     -DCK_CURSES -DCK_NEWTERM -DDIRENT -DHDBUUCP -DTCPSOCKET -DFNFLOAT \
  3326.     -DNOLEARN $(KFLAGS)" \
  3327.     "LIBS= -ltermlib -lm -L/opt/SUNWconn/lib -R/opt/SUNWconn/lib \
  3328.     -lsockx25 -lsocket -lnsl"
  3329.  
  3330. #Solaris 2.5, gcc, SunLink X.25 added.
  3331. solaris25gx25:
  3332.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET:-$(@)} solaris2xgx25 \
  3333.     "KFLAGS=-DSOLARIS25 $(KFLAGS)"
  3334.  
  3335. #Solaris 2.6, gcc, SunLink X.25 added.
  3336. solaris26gx25:
  3337.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET:-$(@)} solaris2xgx25 \
  3338.     "KFLAGS=-DSOLARIS26 -DCK_PAM -DCK_SHADOW $(KFLAGS)" \
  3339.     "LIBS= -lpam"
  3340.  
  3341. #Solaris 2.0 - 2.4, SunPro compiler, includes curses and TCP/IP.
  3342. #When using SUNWspro CC 2.0.1 under Solaris 2.3, be sure all cc patches
  3343. #are applied, otherwise corrupt or truncated object files can result.
  3344. #To build, set your PATH as follows:
  3345. #  /usr/local/bin:/usr/bin:/opt/SUNWspro/bin:/usr/ccs/bin:\
  3346. #  /usr/ucb:/usr/sbin:/sbin:.
  3347. # or (depending on where the compiler has been installed):
  3348. #  /usr/openwin/bin:/export/home/SUNWspro/bin:/usr/ccs/bin:/usr/sbin:/usr/bin.
  3349. #For additional optimization try using "-fast -xO4 -xdepend".
  3350. solaris2x:
  3351.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.x with SunPro cc...'
  3352.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3353.     "CFLAGS = -O -Usun -i -DSVR4 -DDIRENT -DSOLARIS -DHDBUUCP -DFNFLOAT \
  3354.     -DSELECT -DCK_CURSES -DCK_NEWTERM -DSTERMIOX -DTCPSOCKET $(KFLAGS)" \
  3355.     "LNKFLAGS = -s" "LIBS= -ltermlib -lsocket -lnsl -lm -lresolv"
  3356.  
  3357. #as above but configured for Kerberos IV
  3358. solaris2x+krb4:  
  3359.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.x, SunPro cc, krb4...'
  3360.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3361.     "CFLAGS = -O -Usun -i -DSVR4 -DDIRENT -DSOLARIS -DHDBUUCP -DFNFLOAT \
  3362.     -DSELECT -DCK_CURSES -DCK_NEWTERM -DSTERMIOX -DTCPSOCKET  \
  3363.     -DCK_AUTHENTICATION -DCK_KERBEROS  -DKRB4 \
  3364.     -DCK_ENCRYPTION -DCK_DES -DCK_CAST $(K4INC) $(KFLAGS)" \
  3365.     "LNKFLAGS = -s" \
  3366.     "LIBS= $(K4LIB) -ltermlib -lsocket -lnsl -lm -lresolv -lkrb -ldes"
  3367.  
  3368. solaris23:
  3369.     $(MAKE) "MAKE=$(MAKE)" solaris2x KTARGET=$${KTARGET:-$(@)} \
  3370.     "KFLAGS=$(KFLAGS)"
  3371.  
  3372. solaris24:
  3373.     $(MAKE) "MAKE=$(MAKE)" solaris2x KTARGET=$${KTARGET:-$(@)} \
  3374.     "KFLAGS=-DSOLARIS24 -DPOSIX_CRTSCTS $(KFLAGS)"
  3375.  
  3376. # template for Solaris 2.5 and above.
  3377. solaris25x:
  3378.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.x with SunPro cc...'
  3379.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3380.     "CFLAGS = -DFNFLOAT -O -Usun -i $(KFLAGS)" \
  3381.     "LNKFLAGS = -s" \
  3382.     "LIBS= -ltermlib -lsocket -lnsl -lm -lresolv $(LIBS)"
  3383.  
  3384. #Solaris 2.5, SunPro compiler, curses, TCP/IP
  3385. solaris25:
  3386.     $(MAKE) "MAKE=$(MAKE)" solaris25x KTARGET=$${KTARGET:-$(@)} \
  3387.     "KFLAGS=-DSOLARIS25 $(KFLAGS)"
  3388.  
  3389. #Solaris 2.5, SunPro compiler, curses, TCP/IP, Kerberos IV
  3390. solaris25+krb4:
  3391.     $(MAKE) "MAKE=$(MAKE)" solaris25x+krb4 KTARGET=$${KTARGET:-$(@)} \
  3392.     "KFLAGS=-DSOLARIS25 $(KFLAGS)"
  3393.  
  3394. #Solaris 2.6, SunPro compiler, curses, TCP/IP
  3395. solaris26:
  3396.     $(MAKE) "MAKE=$(MAKE)" solaris25x KTARGET=$${KTARGET:-$(@)} \
  3397.     "KFLAGS=-DSOLARIS26 -DCK_PAM -DCK_SHADOW $(KFLAGS)" \
  3398.     "LIBS= -lpam"
  3399.  
  3400. #Solaris 7 (aka 2.7)
  3401. solaris7:
  3402.     $(MAKE) "MAKE=$(MAKE)" solaris25x KTARGET=$${KTARGET:-$(@)} \
  3403.     "KFLAGS=-DSOLARIS7 -DCK_PAM -DCK_SHADOW $(KFLAGS)" \
  3404.     "LIBS= -lpam"
  3405.  
  3406. #Solaris 8
  3407. solaris8:
  3408.     $(MAKE) "MAKE=$(MAKE)" solaris25x KTARGET=$${KTARGET:-$(@)} \
  3409.     "KFLAGS=-DSOLARIS8 -DCK_PAM -DCK_SHADOW $(KFLAGS)" \
  3410.     "LIBS= -lpam"
  3411.  
  3412. #Solaris 9
  3413. solaris9:
  3414.     $(MAKE) "MAKE=$(MAKE)" solaris25x KTARGET=$${KTARGET:-$(@)} \
  3415.     "KFLAGS=-DSOLARIS9 -DCK_PAM -DCK_SHADOW -DUSE_STRERROR $(KFLAGS)" \
  3416.     "LIBS= -lpam"
  3417.  
  3418. #Solaris 9 with malloc debugging
  3419. solaris9md:
  3420.     $(MAKE) mermit KTARGET=$${KTARGET:-$(@)} \
  3421.     "CFLAGS = -DFNFLOAT -O -Usun -i \
  3422.     -DSOLARIS9 -Dmalloc=dmalloc -Dfree=dfree -DMDEBUG \
  3423.     -DCK_PAM -DCK_SHADOW -DUSE_STRERROR $(KFLAGS)" \
  3424.     "LIBS= -lpam -ltermlib -lsocket -lnsl -lm -lresolv"
  3425.  
  3426. #Solaris 2.0-2.3, SunPro compiler, with SunLink X.25 support.
  3427. #This will only run if user has /opt/SUNWconn/lib/libsockx25.so.1
  3428. #exists and can be dynamically linked.
  3429. #NOTE: Do not change target to xermit -- it doesn't support X.25.
  3430. solaris2x25:
  3431.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.x+X.25 with SunPro cc...'
  3432.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3433.     "CFLAGS = -O -i -Usun -DSVR4 -DSOLARIS -DDIRENT \
  3434.     -DSUNX25 -DTCPSOCKET -DHDBUUCP -DFNFLOAT -DNOLEARN \
  3435.     -DSELECT -DCK_CURSES -DCK_NEWTERM -DSTERMIOX $(KFLAGS)" \
  3436.     "LNKFLAGS = -s" \
  3437.     "LIBS= -ltermlib -L/opt/SUNWconn/lib -R/opt/SUNWconn/lib \
  3438.     -lsockx25 -lsocket -lnsl -lm -lresolv"
  3439.  
  3440. #Solaris 2.4, SunPro compiler, with SunLink X.25 support.
  3441. #This will only run if user has /opt/SUNWconn/lib/libsockx25.so.1
  3442. #exists and can be dynamically linked.
  3443. solaris24x25:
  3444.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.4+X.25 with SunPro cc...'
  3445.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3446.     "CFLAGS = -O -i -Usun -DSVR4 -DSOLARIS -DSOLARIS24 -DDIRENT -DNOLEARN \
  3447.     -DSUNX25 -DTCPSOCKET -DHDBUUCP -DFNFLOAT -DPOSIX_CRTSCTS \
  3448.     -DSELECT -DCK_CURSES -DCK_NEWTERM -DSTERMIOX $(KFLAGS)" \
  3449.     "LNKFLAGS = -s" \
  3450.     "LIBS= -ltermlib -L/opt/SUNWconn/lib -R/opt/SUNWconn/lib \
  3451.     -lsockx25 -lsocket -lnsl -lm -lresolv"
  3452.  
  3453. #Solaris 2.5, SunPro compiler, with SunLink X.25 support.
  3454. solaris25x25:
  3455.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.5+X.25 with SunPro cc...'
  3456.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3457.     "CFLAGS = -O -i -Usun -DSVR4 -DSOLARIS25 -DDIRENT -DSUNX25 \
  3458.     -DTCPSOCKET -DHDBUUCP -DSELECT -DCK_CURSES \
  3459.     -DCK_NEWTERM -DSTERMIOX -DFNFLOAT -DPOSIX_CRTSCTS -DNOLEARN \
  3460.     -I/opt/SUNWconn/include $(KFLAGS)" \
  3461.     "LIBS= -ltermlib -L/opt/SUNWconn/lib -R/opt/SUNWconn/lib \
  3462.     -lsockx25 -lsocket -lnsl -lm -lresolv"
  3463.  
  3464. #Solaris 2.6, SunPro compiler, with SunLink X.25 support.
  3465. solaris26x25:
  3466.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.6+X.25 with SunPro cc...'
  3467.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3468.     "CFLAGS = -O -i -Usun -DSVR4 -DSOLARIS26 -DDIRENT -DSUNX25 \
  3469.     -DTCPSOCKET -DHDBUUCP -DSELECT -DCK_CURSES -DCK_PAM -DCK_SHADOW \
  3470.     -DCK_NEWTERM -DSTERMIOX -DFNFLOAT -DPOSIX_CRTSCTS -DNOLEARN \
  3471.     -I/opt/SUNWconn/include $(KFLAGS)" \
  3472.     "LIBS= -ltermlib -L/opt/SUNWconn/lib -R/opt/SUNWconn/lib \
  3473.     -lsockx25 -lsocket -lnsl -lm -lresolv -lpam"
  3474.  
  3475. #The following sunosxxx entries are for debugging and testing only.
  3476.  
  3477. sunos41x:
  3478.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3479.     "CFLAGS= -O -DSUNOS41 -DDIRENT -DNOTLOG -DNOMSEND \
  3480.     -DNOUUCP -DNOSIGWINCH -DNOREDIRECT -DNOPUSH -DNOCCTRAP \
  3481.     -DNOICP -DNOLOCAL $(KFLAGS)"
  3482.  
  3483. #SunOS 4.1.x, debugging with Pure Software, Inc., Purify 2 (commercial runtime
  3484. #error-detection software for catching wild array references, etc).
  3485. #Before running the resulting wermit, you'll also need to define and export
  3486. #the following environment variables (as in this example):
  3487. #PURIFYHOME=/usr/local/purify ; export PURIFYHOME
  3488. #PURIFYCACHEDIR=/tmp ; export PURIFYCACHEDIR
  3489. sunos41cp:
  3490.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 / BSD / Curses / Purify...
  3491.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3492.     "CC2= purify -cache_dir=/usr/tmp cc" \
  3493.     "CFLAGS= -g -DSUNOS41 -DHDBUUCP -DDIRENT -DTCPSOCKET \
  3494.     -DSAVEDUID -DCK_CURSES $(KFLAGS)" \
  3495.     "LIBS= -lcurses -ltermcap"
  3496.  
  3497. #SunOS 4.1 with malloc debugger
  3498. sunos41md:
  3499.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 malloc debug...
  3500.     $(MAKE) mermit KTARGET=$${KTARGET:-$(@)} \
  3501.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DDIRENT -DTCPSOCKET \
  3502.     -DSAVEDUID $(KFLAGS) -Dmalloc=dmalloc -Dfree=dfree -DMDEBUG"
  3503.  
  3504. sunos41gmd:
  3505.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 with gcc and curses...
  3506.     $(MAKE) mermit KTARGET=$${KTARGET:-$(@)} "CC= gcc " "CC2= gcc" \
  3507.     "CFLAGS= -g -DSUNOS41 -DHDBUUCP -DDIRENT -DTCPSOCKET \
  3508.     -DNDGPWNAM -DSAVEDUID -DCK_CURSES -DRLOGCODE \
  3509.     $(KFLAGS) -Dmalloc=dmalloc -Dfree=dfree -DMDEBUG" \
  3510.     "LIBS= -lcurses -ltermcap"
  3511.  
  3512. #SunOS version 4.1, gcc, profiling with gprof, no debugging.
  3513. #To get profile, "make sunos41p" (on Sun), then "./wermit".  After running
  3514. #wermit, "gprof ./wermit | lpr" (or whatever) to get execution profile.
  3515. sunos41p:
  3516.     @echo Making C-Kermit $(CKVER) for SunOS 4.x with profiling...
  3517.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC= gcc " "CC2= gcc" \
  3518.     "CFLAGS= -DSUNOS41 -DNODEBUG -DSAVEDUID -DDIRENT -DTCPSOCKET \
  3519.     -DNDGPWNAM $(KFLAGS) -pg" "LNKFLAGS = -pg"
  3520.  
  3521. #SunOS version 4.1 or later, BSD environment, minimum features.
  3522. sunos41min:
  3523.     @echo Minimum interactive
  3524.     $(MAKE) "MAKE=$(MAKE)" sunos41 KTARGET=$${KTARGET:-$(@)} \
  3525.     "KFLAGS=-DNOSPL -DNOXMIT -DNOMSEND -DNOFRILLS -DNORETRY \
  3526.     -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG -DNOSCRIPT -DNOCSETS \
  3527.     -DNOSHOW -DNOSETKEY -DNOUUCP -DNORECALL -DNOREDIRECT \
  3528.     -DNOPUSH -DNOMDMHUP -DNOJC -DNOFDZERO -DNOESCSEQ \
  3529.     -DNONET -DCK_SMALL -DNOCKSPEED -DNOCKTIMERS -DNOLOGIN \
  3530.     -DNOCKXYZ -DNOKERBEROS -DNOMKDIR -DNOPATTERNS -DNOPERMS -DNOPIPESEND \
  3531.     -DNORECURSIVE -DNORENAME -DNORESEND -DNOSETKEY \
  3532.     -DNOTRIGGER -DNOTUNING $(KFLAGS)" "LNKFLAGS = -s"
  3533.  
  3534. #SunOS version 4.1, BSD environment, min size, command-line only...
  3535. sunos41m:
  3536.     @echo Minimum size
  3537.     $(MAKE) "MAKE=$(MAKE)" sunos41min KTARGET=$${KTARGET:-$(@)} \
  3538.     "KFLAGS=-DNOICP $(KFLAGS)"
  3539.  
  3540. #SunOS version 4.1, BSD environment, min size, cmd-line only, remote only...
  3541. #
  3542. sunos41mr:
  3543.     @echo Minimum size
  3544.     $(MAKE) "MAKE=$(MAKE)" sunos41min KTARGET=$${KTARGET:-$(@)} \
  3545.     "KFLAGS=-DNOICP -DNOLOCAL $(KFLAGS)"
  3546.  
  3547. #SunOS version 4.1, BSD environment, min size, interactive...
  3548. sunos41mi:
  3549.     @echo Minimum size
  3550.     $(MAKE) "MAKE=$(MAKE)" sunos41min KTARGET=$${KTARGET:-$(@)} \
  3551.     "KFLAGS=-DNOCMDL $(KFLAGS)"
  3552.  
  3553. #SunOS version 4.1, BSD environment, min size, interactive, remote only...
  3554. sunos41mir:
  3555.     @echo Minimum size
  3556.     $(MAKE) "MAKE=$(MAKE)" sunos41min KTARGET=$${KTARGET:-$(@)} \
  3557.     "KFLAGS=-DNOCMDL -DNOLOCAL $(KFLAGS)"
  3558.  
  3559. #SunOS 4.1, System V R3 environment (-i option omitted).
  3560. sunos41s5:
  3561.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 System V R3...
  3562.     @echo For testing purposes only - NOT for production use.
  3563.     @echo For a useable version, make sunos41 instead.
  3564.     $(MAKE) wermit "CC= /usr/5bin/cc " "CC2=/usr/5bin/cc " \
  3565.     KTARGET=$${KTARGET:-$(@)} \
  3566.     "CFLAGS = -DSUN4S5 -DDIRENT -DHDBUUCP -DNOLEARN -DCK_POLL $(KFLAGS) -O"
  3567.  
  3568. #As above, but with curses support
  3569. sunos41s5c:
  3570.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 System V R3...
  3571.     @echo Curses included.
  3572.     @echo For testing purposes only - NOT for production use.
  3573.     @echo For a useable version, make sunos41 instead.
  3574.     $(MAKE) wermit "CC= /usr/5bin/cc " "CC2=/usr/5bin/cc " \
  3575.     KTARGET=$${KTARGET:-$(@)} \
  3576.     "CFLAGS = -DSUN4S5 -DDIRENT -DHDBUUCP -DNOLEARN \
  3577.     -DCK_POLL -DCK_CURSES -DCK_NEWTERM $(KFLAGS) -O" "LIBS= -lcurses"
  3578.  
  3579. #As above, but with curses support AND net support
  3580. sunos41s5tcpc:
  3581.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 System V R3...
  3582.     @echo TCP/IP and curses included.  No debug log.
  3583.     @echo For testing purposes only - NOT for production use.
  3584.     @echo For a useable version, make sunos41 instead.
  3585.     $(MAKE) xermit "CC= /usr/5bin/cc " "CC2=/usr/5bin/cc " \
  3586.     KTARGET=$${KTARGET:-$(@)} \
  3587.     "CFLAGS = -DSUN4S5 -DDIRENT -DHDBUUCP -DCK_POLL \
  3588.     -DNODEBUG -DCK_CURSES -DCK_NEWTERM -DTCPSOCKET $(KFLAGS) -O" \
  3589.     "LIBS= -lcurses -lresolv"
  3590.  
  3591. # (End of SunOS test entries...)
  3592.  
  3593. #Apollo with Domain SR10.0 or later, BSD environment
  3594. #Reportedly, it might also help to add '-A,systype=bsd4.3' to CFLAGS.
  3595. #Reportedly, there is also a problem with getc & putc macros that can
  3596. #be handled by using '#ifdef apollo' somewhere to redefine them???
  3597. #On the other hand, other reports indicate that it works fine as-is.
  3598. #NOTE: This entry was previously like this:
  3599. #    $(MAKE) wermit "CFLAGS= -DNOFILEH -DBSD4 $(KFLAGS) -Uaegis \
  3600. #    -DTCPSOCKET -U__STDC__"
  3601. #Reports (Dec 91) indicate SR10 has an ANSI-compliant C compiler,
  3602. #in addition to an older one that claimed to be ANSI-compliant but wasn't.
  3603. #The following make entry (plus checks that are made in ckcdeb.h) detect
  3604. #which compiler is used and define the CK_ANSIC or NOANSI flags accordingly.
  3605. sr10-bsd:
  3606.     @echo Making C-Kermit $(CKVER) for Apollo SR10.0 / BSD ...
  3607.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3608.     "CFLAGS= -O -DAPOLLOSR10 -DBSD43 -DTCPSOCKET -DCK_CURSES -DNOLEARN \
  3609.     -Uaegis $(KFLAGS)" "LIBS= -lcurses -ltermcap"
  3610.  
  3611. #Apollo with Domain SR10.0 or later, System V R3 environment.
  3612. #Don't use the optimizer (-O), it causes problems at runtime.
  3613. sr10-s5r3:
  3614.     @echo Making C-Kermit $(CKVER) for Apollo SR10.0 / Sys V R3 ...
  3615.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3616.     "CFLAGS= -DNOFILEH -DSVR3 -DAPOLLOSR10 -DNOLEARN $(KFLAGS) \
  3617.     -Uaegis -U__STDC__"
  3618.  
  3619. #Apollo Domain/IX (untested, try this if sr10-bsd doesn't work)
  3620. # -DTCPSOCKET can probably be added here.
  3621. apollobsd:
  3622.     @echo Making C-Kermit $(CKVER) for Apollo Domain/IX...
  3623.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3624.     "CC= /bin/cc " "CC2= /bin/cc " \
  3625.     "CFLAGS= -DNOFILEH -DBSD4 -DAPOLLOBSD -DNOLEARN $(KFLAGS) -Uaegis"
  3626.  
  3627. #Version 7 Unix (see comments near top of makefile)
  3628. v7:
  3629.     @echo Making C-Kermit $(CKVER) for UNIX Version 7.
  3630.     @echo Read the makefile if you have trouble with this...
  3631.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3632.     "CFLAGS=-DV7 -DPROCNAME=\\\"$(PROC)\\\" \
  3633.     -DBOOTNAME=\\\"$(BOOTFILE)\\\" -DNPROCNAME=\\\"$(NPROC)\\\" \
  3634.     -DNPTYPE=$(NPTYPE) $(DIRECT) -DO_RDWR=2 -DO_NDELAY=0 -DO_SCCS_ID \
  3635.     -DNOLEARN $(KFLAGS)"
  3636.  
  3637. #AT&T UNIX System V R3, signal() is void rather than int.
  3638. #Uses dirent.h and Honey DanBer UUCP.
  3639. #Add the -i link option if necessary.
  3640. #If you get errors like "ws_row undefined" in ckutio.c, add -DNONAWS.
  3641. sys5r3:
  3642.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R3...'
  3643.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3644.     "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -DNOLEARN $(KFLAGS) -O" \
  3645.     "LNKFLAGS="
  3646.  
  3647. #As above, plus curses.
  3648. sys5r3c:
  3649.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R3 + curses...'
  3650.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3651.     "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -DCK_CURSES -DNONAWS -DNOLEARN \
  3652.     $(KFLAGS) -O" "LNKFLAGS=" "LIBS = -ltermlib"
  3653.  
  3654. #System V R3.2 for PCs built on Interactive UNIX SV/386 R4.x
  3655. #but with all calls to dup2() disabled because generic SVR3 does not have dup2.
  3656. # (The -linet library might not need to be in this one.)
  3657. sys5r32is:
  3658.     @echo 'Making C-Kermit $(CKVER) for System V/386 R32
  3659.     $(MAKE) wermit CC="$(CC)" CC2="$(CC2)" \
  3660.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -O -DNOCSETS -DNOREALPATH \
  3661.     -DUID_T=ushort -DGID_T=ushort -DI386IX -DSVR3JC -DCK_CURSES -DNONAWS \
  3662.     -DPOSIX_JC -DCK_REDIR -DCK_POLL -DDCLGETCWD -DNOFDZERO -DNOREDIRECT \
  3663.     -DNOZEXEC -DNOLEARN $(KFLAGS)" "LIBS=-lcurses -lc_s -linet"
  3664.  
  3665. #System V R3.2 for PCs built on Interactive UNIX SV/386 R4.x
  3666. #but with all calls to dup2() disabled because generic SVR3 does not have dup2.
  3667. #With TCP/IP added.
  3668. sys5r32isnet:
  3669.     @echo 'Making C-Kermit $(CKVER) for System V/386 R32 + TCP/IP
  3670.     $(MAKE) wermit CC="$(CC)" CC2="$(CC2)" \
  3671.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -O -DNOCSETS -DNOREALPATH \
  3672.     -DUID_T=ushort -DGID_T=ushort -DI386IX -DSVR3JC -DCK_CURSES -DNONAWS \
  3673.     -DPOSIX_JC -DCK_REDIR -DCK_POLL -DDCLGETCWD -DNOFDZERO -DNOREDIRECT \
  3674.     -DNOLEARN -DNOZEXEC -DTCPSOCKET $(KFLAGS)" "LIBS=-lcurses -lc_s -linet"
  3675.  
  3676. iclsys5r3:
  3677.     make sys5r3 KTARGET=$${KTARGET:-$(@)} KFLAGS=-DICLSVR3
  3678.  
  3679. #AT&T UNIX System V R3.  As above, but no ANSI prototyping.
  3680. sys5r3na:
  3681.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R3...'
  3682.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3683.     "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -DNOANSI -DNOLEARN $(KFLAGS) -O" \
  3684.     "LNKFLAGS="
  3685.  
  3686. #AT&T UNIX System V R3, for 3B computers with Wollongong TCP/IP.
  3687. sys5r3net3b:
  3688.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX SVR3/3B/Wollongong...'
  3689.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3690.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DWOLLONGONG -DNOLEARN $(KFLAGS) \
  3691.     -O" "LIBS= -lnet -lnsl_s" "LNKFLAGS ="
  3692.  
  3693. #AT&T UNIX System V R3, signal() is void rather than int.
  3694. #Uses dirent.h and Honey DanBer uucp, has <termiox.h>.
  3695. #Has <termiox.h> for RTS/CTS flow control.
  3696. sys5r3tx:
  3697.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R3...'
  3698.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3699.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DTERMIOX -DNOLEARN \
  3700.     $(KFLAGS) -i -O" "LNKFLAGS ="
  3701.  
  3702. #AT&T UNIX System V R3, signal() is void rather than int.
  3703. #Uses dirent.h and Honey DanBer uucp, has <termiox.h>.
  3704. #Has <sys/termiox.h> for RTS/CTS flow control.
  3705. sys5r3sx:
  3706.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R3...'
  3707.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3708.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DSTERMIOX -DNOLEARN \
  3709.     $(KFLAGS) -i -O" "LNKFLAGS ="
  3710.  
  3711. #AT&T UNIX System V R4.
  3712. #Has <termiox.h>.
  3713. sys5r4:
  3714.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  3715.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3716.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DTERMIOX -DNOLEARN $(KFLAGS)" \
  3717.     "LNKFLAGS = -s"
  3718.  
  3719. #AT&T UNIX System V R4 with Wollongong TCP/IP.
  3720. #Has <termiox.h>.
  3721. sys5r4net:
  3722.     @echo 'Making C-Kermit $(CKVER) for System V R4 + Wollongong TCP/IP...'
  3723.     @echo ' If sockets-library routines are missing at link time, then'
  3724.     @echo ' try the sys5r4net2 entry.'
  3725.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3726.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DNOLEARN \
  3727.     -DTERMIOX -DWOLLONGONG $(KFLAGS)" "LNKFLAGS = -s"
  3728.  
  3729. #As above, but needs libs included.
  3730. sys5r4net2:
  3731.     @echo ' PLEASE READ ckuins.txt IF YOU GET MISSING HEADER FILES.'
  3732.     @echo ' (Search for WOLLONGONG...)'
  3733.     $(MAKE) sys5r4net KTARGET=$${KTARGET:-$(@)} "LIBS= -lsocket -lnsl"
  3734.  
  3735. #As above plus curses.
  3736. sys5r4net2c:
  3737.     echo 'Making C-Kermit $(CKVER) for System V R4 + Wollongong TCP/IP...'
  3738.     @echo ' PLEASE READ ckuins.txt IF YOU GET MISSING HEADER FILES.'
  3739.     @echo ' (Search for WOLLONGONG...)'
  3740.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3741.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DNOLEARN \
  3742.     -DTERMIOX -DWOLLONGONG -DCK_CURSES $(KFLAGS)" "LNKFLAGS = -s" \
  3743.     "LIBS= -lsocket -lnsl -lcurses"
  3744.  
  3745. #DELL UNIX System V R4.
  3746. #Has <sys/termiox.h>, regular Berkeley sockets library, i.e. in.h and inet.h
  3747. #are not misplaced in sys (rather than netinet and arpa, respectively).
  3748. #Uses ANSI C constructs, advisory file locking on devices, etc.
  3749. #Warning: -DSTERMIOX enables hardware flow control (RTS/CTS), but reportedly
  3750. #this does not work with the normal drivers.  However, it might still work
  3751. #on non-Dell systems, or even Dell systems with different drivers installed.
  3752. dellsys5r4:
  3753.     @echo 'Making C-Kermit $(CKVER) for DELL UNIX System V R4...'
  3754.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3755.     "CFLAGS = -O -DSVR4 -DDELL_SVR4 -DDIRENT -DHDBUUCP \
  3756.     -DTCPSOCKET -DSTERMIOX -DCK_POLL $(KFLAGS)" \
  3757.     "LIBS= -lsocket -lnsl" "LNKFLAGS = -s"
  3758.  
  3759. #As above, curses support added...
  3760. dellsys5r4c:
  3761.     @echo 'Making C-Kermit $(CKVER) for DELL UNIX System V R4...'
  3762.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3763.     "CFLAGS = -O -DSVR4 -DDELL_SVR4 -DDIRENT -DHDBUUCP \
  3764.     -DTCPSOCKET -DSTERMIOX -DCK_CURSES -DCK_POLL \
  3765.     $(KFLAGS)" "LIBS= -lsocket -lnsl -lcurses -ltermcap" "LNKFLAGS = -s"
  3766.  
  3767. #Minimum interactive: As above, but with every conceivable option removed.
  3768. dellsys5r4mi:
  3769.     @echo 'Making C-Kermit $(CKVER) for DELL UNIX System V R4...'
  3770.     @echo 'Minimum-size interactive'
  3771.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3772.     "CFLAGS = -O -DSVR4 -DDELL_SVR4 -DDIRENT \
  3773.     -UTCPSOCKET -DNOCMDL -DNOSPL -DNOXMIT -DCK_POLL \
  3774.     -DNOMSEND -DNOFRILLS -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG \
  3775.     -DNOSCRIPT -DNOCSETS -DNOSHOW -DNOSETKEY -DNOSERVER -DNOUUCP \
  3776.     -DNOPUSH -DNOMDMHUP -DNOJC -DNOFDZERO -DNOESCSEQ  \
  3777.     $(KFLAGS)" "LNKFLAGS = -s"
  3778.  
  3779. #Command-line only version.
  3780. dellsys5r4m:
  3781.     @echo 'Making C-Kermit $(CKVER) for DELL UNIX System V R4...'
  3782.     @echo 'Command-line only'
  3783.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3784.     "CFLAGS = -O -DSVR4 -DDELL_SVR4 -DDIRENT \
  3785.     -UTCPSOCKET -DNOICP -DNOFRILLS -DNODIAL -DNODEBUG -DNOTLOG -DNOCSETS \
  3786.     -DNOSETKEY -DNOESCSEQ -DNOJC -DNOFDZERO -DCK_POLL \
  3787.     $(KFLAGS)" "LNKFLAGS = -s"
  3788.  
  3789. #AT&T UNIX System V R4.
  3790. #Has <sys/termiox.h>.
  3791. sys5r4sx:
  3792.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  3793.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3794.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DSTERMIOX -DNOLEARN \
  3795.     $(KFLAGS)" "LNKFLAGS = -s" "LIBS=$(LIBS)"
  3796.  
  3797. #AT&T UNIX System V R4.
  3798. #Has <sys/termiox.h>, regular Berkeley sockets library, i.e. in.h and inet.h
  3799. #are not misplaced in sys (rather than netinet and arpa, respectively).
  3800. #Uses ANSI C constructs, <sys/termiox.h>, etc etc.
  3801. sys5r4sxtcp:
  3802.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  3803.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3804.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP \
  3805.     -DSTERMIOX -DTCPSOCKET $(KFLAGS)" \
  3806.     "LIBS= -lsocket -lnsl $(LIBS)" "LNKFLAGS= -s"
  3807.  
  3808. #AT&T UNIX System V R4.
  3809. #As above + curses.
  3810. sys5r4sxtcpc:
  3811.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  3812.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3813.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP \
  3814.     -DSTERMIOX  -DCK_CURSES -DTCPSOCKET $(KFLAGS)" \
  3815.     "LIBS= -lsocket -lnsl -lcurses -ltermcap $(LIBS)" "LNKFLAGS = -s"
  3816.  
  3817. #AT&T UNIX System V R4.  CONSENSYS SVR4.2-1.
  3818. #Has <sys/termiox.h>, regular Berkeley sockets library, i.e. in.h and inet.h
  3819. #are not misplaced in sys (rather than netinet and arpa, respectively).
  3820. #Uses ANSI C constructs, <sys/termiox.h>, etc.
  3821. # Fullscreen -DCK_CURSES added (with curses & termcap libs)
  3822. # Submission by Robert Weiner/Programming Plus, rweiner@watsun.cc.columbia.edu
  3823. sys5r4sxtcpf:
  3824.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  3825.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3826.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP \
  3827.     -DSTERMIOX -DTCPSOCKET -DCK_CURSES $(KFLAGS)" \
  3828.     "LIBS= -lsocket -lnsl -L/usr/ccs/lib -lcurses -ltermcap" \
  3829.     "LIBS=$(LIBS)" "LNKFLAGS = -s"
  3830.  
  3831. #Smallest possible version for System V R4
  3832. s5r4m:
  3833.     @echo Minimum size
  3834.     $(MAKE) "MAKE=$(MAKE)" sys5r4sx KTARGET=$${KTARGET:-$(@)} \
  3835.     "KFLAGS=$(KFLAGS) -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG \
  3836.     -DNOSCRIPT -DNOCSETS -DNOICP -DNOMSEND -UTCPSOCKET" "LNKFLAGS = -s"
  3837.  
  3838. #Smallest possible interactive version of above
  3839. s5r4mi:
  3840.     @echo Minimum interactive
  3841.     $(MAKE) "MAKE=$(MAKE)" sys5r4sx \
  3842.     "KFLAGS=-DNOSPL -DNOXMIT -DNOMSEND -DNOFRILLS -DNOSHOW \
  3843.     -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG -DNOSCRIPT -DNOCSETS -DNOSETKEY \
  3844.     -UTCPSOCKET $(KFLAGS)" "LNKFLAGS = -s"
  3845.  
  3846. #AT&T UNIX System V R4, has <sys/termiox.h>
  3847. #ANSI C function prototyping disabled.
  3848. sys5r4sxna:
  3849.     @echo No ANSI C prototyping...
  3850.     $(MAKE) "MAKE=$(MAKE)" sys5r4sx KTARGET=$${KTARGET:-$(@)} \
  3851.     "KFLAGS=$(KFLAGS) -DNOANSI"
  3852.  
  3853. #Stratus FTX.
  3854. ftx:
  3855.     @echo 'Making C-Kermit $(CKVER) for Stratus FTX 3.x...'
  3856.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3857.     "CFLAGS = -O -DSVR4 -DFTX -DDIRENT -DHDBUUCP -DSTERMIOX 
  3858.     -DNOGETUSERSHELL -DNOLEARN +DA1.1 $(KFLAGS)" \
  3859.     "LNKFLAGS = -s" "LIBS=$(LIBS)"
  3860.  
  3861. #Stratus FTX + TCP/IP.
  3862. ftxtcp:
  3863.     @echo 'Making C-Kermit $(CKVER) for Stratus FTX 3.x...'
  3864.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3865.     "CFLAGS = -O -DSVR4 -DFTX -DDIRENT -DHDBUUCP -DNOGETUSERSHELL \
  3866.     -DSTERMIOX -DTCPSOCKET -DNO_DNS_SRV +DA1.1 $(KFLAGS)" \
  3867.     "LIBS= -lsocket -lnsl $(LIBS)" "LNKFLAGS= -s"
  3868.  
  3869. #NCR MP-RAS 2.03 or 3.02
  3870. mpras:
  3871.     @echo 'Making C-Kermit $(CKVER) for NCR MP-RAS...'
  3872.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3873.     "CFLAGS = -O -DSVR4 -DNCRMPRAS -DDIRENT -DHDBUUCP -DSTERMIOX \
  3874.     -DNOGETUSERSHELL -DUSE_FILE__CNT -DNOLEARN -DNO_DNS_SRV $(KFLAGS)" \
  3875.     "LNKFLAGS = -s" "LIBS=$(LIBS)"
  3876.  
  3877. #NCR MP-RAS 2.03 or 3.02 with TCP/IP and curses
  3878. mprastcpc:
  3879.     @echo 'Making C-Kermit $(CKVER) for NCR MP-RAS + TCP/IP + curses...'
  3880.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CFLAGS=-DTCPSOCKET \
  3881.     -DCK_CURSES -DSVR4 -DNCRMPRAS -DDIRENT -DHDBUUCP -DSTERMIOX -DNOLEARN \
  3882.     -DNOGETUSERSHELL -DNO_DNS_SRV DUSE_FILE__CNT -O $(KFLAGS)" \
  3883.     "LNKFLAGS = -s" "LIBS= -lsocket -lnsl -lcurses -ltermcap $(LIBS)"
  3884.  
  3885. #SINIX-L V5.41 - includes curses, tcp/ip - Use this one for i386.
  3886. #This version of SINIX doesn't like fdopen() or popen().
  3887. sinix541:
  3888.     @echo 'Making C-Kermit $(CKVER) for Siemens/Nixdorf SINIX V5.41/i386'
  3889.     $(MAKE) ckcpro.$(EXT) "CFLAGS = -DSINIX -DSVR4 -DDIRENT -DHDBUUCP \
  3890.     -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DSELECT -DCK_ANSIC -DNO_DNS_SRV \
  3891.     -DSNI541 -DNOGETUSERSHELL -DNONETCMD -DNOPOPEN -kansi -W0 $(KFLAGS)"
  3892.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3893.     "CFLAGS = -DSINIX -DSVR4 -DDIRENT -DHDBUUCP -DNO_DNS_SRV -DNOPOPEN \
  3894.     -DFNFLOAT -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DSELECT -DCK_ANSIC \
  3895.     -DSNI541 -DNOGETUSERSHELL -DNONETCMD -kansi -W0 -O $(KFLAGS)" \
  3896.     "LIBS= -lsocket -lnsl -lcurses -ltermcap -lm" "LNKFLAGS = -s"
  3897.  
  3898. sinix541i:
  3899.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=$(KFLAGS)" sinix541
  3900.  
  3901. #SINIX V5.42 - includes curses, tcp/ip, everything - Use this one for MIPS.
  3902. # As of C-Kermit 7.1, optimization removed -- takes (literally) forever.
  3903. sinix542:
  3904.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3905.     "CFLAGS = -DSINIX -DSVR4 -DDIRENT -DHDBUUCP -DNO_DNS_SRV \
  3906.     -DFNFLOAT -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DSELECT -DCK_ANSIC \
  3907.     -DSNI542 -DNOGETUSERSHELL -kansi -W0 $(KFLAGS)" \
  3908.     "LIBS= -lsocket -lnsl -lcurses -ltermcap -lm" "LNKFLAGS = -s"
  3909.  
  3910. #SINIX V5.42 gcc - includes curses, tcp/ip, everything.
  3911. #This one was used to build the Pyramid-architecture RM600 version
  3912. #on SINIX-P 5.42 A10 with gcc but should work for SINIX 5.42 on any other
  3913. #architecture with gcc.
  3914. sinix542g:
  3915.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC=gcc" "CC2=gcc" \
  3916.     "CFLAGS = -DSINIX -DSVR4 -DDIRENT -DHDBUUCP -DNO_DNS_SRV \
  3917.     -DFNFLOAT -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DSELECT -DCK_ANSIC \
  3918.     -DSNI542 -DNOGETUSERSHELL $(KFLAGS)" \
  3919.     "LIBS= -lsocket -lnsl -lcurses -ltermcap -lm" \
  3920.     "LNKFLAGS = -s"
  3921.  
  3922. #SINIX V5.42 - includes curses, tcp/ip, everything - Use this one for Intel.
  3923. # (Note: SNI discontinued Intel support after 5.42.)
  3924. sinix542i:
  3925.     @echo 'Making C-Kermit $(CKVER) for Siemens/Nixdorf SINIX-Z V5.42...'
  3926.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3927.     "CFLAGS = -DSINIX -DSVR4 -DDIRENT -DHDBUUCP -DFNFLOAT -DSTERMIOX \
  3928.     -DCK_CURSES -DTCPSOCKET -DSELECT -DCK_ANSIC -DNO_DNS_SRV -kansi \
  3929.     -DSNI542 $(KFLAGS)" \
  3930.     "LIBS= -lsocket -lnsl -lcurses -ltermcap -lm" \
  3931.     "LNKFLAGS = -s"
  3932.  
  3933. #Siemens Nixdorf Reliant UNIX V5.43 - includes curses, tcp/ip, everything:
  3934. # . gettimeofday() suddenly has only one arg instead of two (GTODONEARG).
  3935. # . The syntax of the Olimit specifier changed.
  3936. # . The name was changed from SINIX to Reliant UNIX in version 5.43C.
  3937. sni543:
  3938.     @echo 'Making C-Kermit $(CKVER) for Siemens/Nixdorf Reliant UNIX V5.43'
  3939.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3940.     "CFLAGS = -DSINIX -DSNI543 -DSVR4 -DDIRENT -DHDBUUCP \
  3941.     -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DSELECT -DCK_ANSIC -DGTODONEARG \
  3942.     -DNO_DNS_SRV -kansi -W0 -O -F Olimit,3100 $(KFLAGS)" \
  3943.     "LIBS= -lsocket -lnsl -lcurses -ltermcap" "LNKFLAGS = -s"
  3944.  
  3945. #Siemens Nixdorf Reliant UNIX V5.44 - Like 5.43 but with different banner.
  3946. sni544:
  3947.     @echo 'Making C-Kermit $(CKVER) for Siemens/Nixdorf Reliant UNIX V5.44'
  3948.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3949.     "CFLAGS = -DSINIX -DSNI544 -DSVR4 -DDIRENT -DHDBUUCP \
  3950.     -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DSELECT -DCK_ANSIC -DGTODONEARG \
  3951.     -DNO_DNS_SRV -kansi -W0 -O -K Olimit,3100 $(KFLAGS)" \
  3952.     "LIBS= -lsocket -lnsl -lcurses -ltermcap" "LNKFLAGS = -s"
  3953.  
  3954. #Commodore Amiga with AT&T UNIX System V R4 and TCP/IP support.
  3955. #Has <sys/termiox.h>.
  3956. svr4amiganet:
  3957.     @echo 'Making C-Kermit $(CKVER) for Amiga SVR4 + TCP/IP...'
  3958.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC=gcc" "CC2=gcc" \
  3959.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DSTERMIOX \
  3960.     -DTCPSOCKET -DCK_CURSES $(KFLAGS)" "LNKFLAGS = -s" \
  3961.     "LIBS = -lsocket -lnsl -ltermlib"
  3962.  
  3963. #SCO (Novell (Univel)) UnixWare 1.x or 2.0, no TCP/IP.
  3964. #This assumes the Novell SDK 1.0, which has <sys/termiox.h>.
  3965. #UnixWare users with the "Prime Time Freeware" CD-ROM SDK will probably have
  3966. #to use the sys5r4 entry (no termiox.h file, so no hardware flow control).
  3967. #Change -DSELECT to -DCK_POLL if -DSELECT causes problems.
  3968. # NOTE: Unixware 1.x builds have not been tried in C-Kermit 7.0.
  3969. unixware:
  3970.     $(MAKE) "MAKE=$(MAKE)" sys5r4sx KTARGET=$${KTARGET:-$(@)} \
  3971.     "KFLAGS=-DOLD_UNIXWARE -DCK_NEWTERM -DSELECT -DNOGETUSERSHELL \
  3972.     -DNOSYSLOG $(KFLAGS)" "LIBS=-lcrypt"
  3973.  
  3974. #UnixWare 1.x or 2.0 with TCP/IP and curses.
  3975. #fork()-based CONNECT - no high serial speeds.
  3976. unixwarenetc:
  3977.     $(MAKE) "MAKE=$(MAKE)" sys5r4sxtcpc KTARGET=$${KTARGET:-$(@)} \
  3978.     "KFLAGS=-DOLD_UNIXWARE -DCK_NEWTERM -DSELECT -DNOGETUSERSHELL \
  3979.     -DNOSYSLOG $(KFLAGS)" "LIBS=-lcrypt -lresolv"
  3980.  
  3981. uw10:
  3982.     $(MAKE) unixwarenetc KTARGET=$${KTARGET:-$(@)} "KFLAGS=$(KFLAGS)"
  3983.  
  3984. #This is for Unixware 2.0.x only - use unixware21 for UW 2.1.x.
  3985. #Has special library search and enables special kludge around library
  3986. #foulup regarding vfork() (which Kermit doesn't use).  Forces POSIX-style
  3987. #hangup.
  3988. unixware20:
  3989.     @echo 'Making C-Kermit $(CKVER) for UnixWare 2.0.x...'
  3990.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3991.     "CFLAGS = -O -DOLD_UNIXWARE -DUNIXWARE2 -DSELECT -DSVR4 -DDIRENT \
  3992.     -DHDBUUCP -DBIGBUFOK -DNOGETUSERSHELL -DSTERMIOX  -DCK_CURSES \
  3993.     -DTCPSOCKET -DUW200 -DFNFLOAT -DCK_NEWTERM -DNOSYSLOG $(KFLAGS)" \
  3994.     "LIBS= -lsocket -lnsl -lcurses -ltermcap -lcrypt -lgen -lm -lresolv" \
  3995.     "LNKFLAGS = -s"
  3996.  
  3997. uw20:
  3998.     $(MAKE) unixware20 KTARGET=$${KTARGET:-$(@)} "KFLAGS=$(KFLAGS)"
  3999.  
  4000. #Adds big buffers ("large memory model") - otherwise the same as UnixWare 1.x.
  4001. unixware21:
  4002.     @echo 'Making C-Kermit $(CKVER) for UnixWare 2.1.x...'
  4003.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4004.     "CFLAGS = -O -DUNIXWARE -DSELECT -DSVR4 -DDIRENT -DHDBUUCP -DBIGBUFOK \
  4005.     -DNOSYSLOG -DSTERMIOX  -DCK_CURSES -DTCPSOCKET \
  4006.     -DCK_NEWTERM -DFNFLOAT -DUNIXWARE2 $(KFLAGS)" \
  4007.     "LIBS= -lsocket -lnsl -lcurses -ltermcap -lcrypt -lm -lresolv \
  4008.     $(LIBS)" "LNKFLAGS = -s"
  4009.  
  4010. #Unixware 2.1.0
  4011. uw21:
  4012.     $(MAKE) unixware21 KTARGET=$${KTARGET:-$(@)} "KFLAGS=$(KFLAGS)"
  4013.  
  4014. #Unixware 2.1.3
  4015. uw213:
  4016.     $(MAKE) unixware21 KTARGET=$${KTARGET:-$(@)} \
  4017.     "KFLAGS=-DUSE_FILE__CNT $(KFLAGS)"
  4018.  
  4019. #Unixware 2.1 with IKSD support
  4020. uw21iksd:
  4021.     $(MAKE) unixware21 KTARGET=$${KTARGET:-$(@)} \
  4022.     "KFLAGS=-DCK_SHADOW $(KFLAGS)" "LIBS= -lgen"
  4023.  
  4024. #UnixWare 7 with tc[gs]etspeed() high serial speeds & select()-based CONNECT
  4025. #NOTE: This is the one we use.
  4026. unixware7t:
  4027.     @echo 'Making C-Kermit $(CKVER) for UnixWare 7 with POSIX i/o...'
  4028.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4029.     "CFLAGS = -O -DUNIXWARE -DSELECT -DSVR4 -DDIRENT -DHDBUUCP -DBIGBUFOK \
  4030.     -DFNFLOAT -DNOGETUSERSHELL -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DPOSIX \
  4031.     -DUW7 -DUSETCSETSPEED -DCK_NEWTERM -DNOLSTAT -DDCLTIMEVAL \
  4032.     -DNEEDMDMDEFS $(KFLAGS)" \
  4033.     "LIBS=-lsocket -lnsl -lcurses -ltermcap -lcrypt -lm -lresolv $(LIBS)" \
  4034.     "LNKFLAGS = -s"
  4035.  
  4036. #UnixWare 7 - select()-based CONNECT - no POSIX i/o - no high serial speeds.
  4037. #In other words, just like the UnixWare 1 and 2 builds.
  4038. unixware7x:
  4039.     @echo 'Making C-Kermit $(CKVER) for UnixWare 7...'
  4040.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4041.     "CFLAGS = -O -DUNIXWARE -DSELECT -DSVR4 -DDIRENT -DHDBUUCP -DBIGBUFOK \
  4042.     -DUW7 -DNOGETUSERSHELL -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DNOLSTAT \
  4043.     -DFNFLOAT -DCK_NEWTERM $(KFLAGS)" \
  4044.     "LIBS=-lsocket -lnsl -lcurses -ltermcap -lcrypt -lm -lresolv $(LIBS)" \
  4045.     "LNKFLAGS = -s"
  4046.  
  4047. #UnixWare 7 with POSIX cfset[oi]speed() to allow high serial speeds.
  4048. #(but the high speeds don't work)
  4049. unixware7p:
  4050.     @echo 'Making C-Kermit $(CKVER) for UnixWare 7 with POSIX i/o...'
  4051.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4052.     "CFLAGS = -O -DUNIXWARE -DSELECT -DSVR4 -DDIRENT -DHDBUUCP -DBIGBUFOK \
  4053.     -DUW7 -DNOGETUSERSHELL -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DPOSIX \
  4054.     -DFNFLOAT -DCK_NEWTERM -DNOLSTAT $(KFLAGS)" \
  4055.     "LIBS=-lsocket -lnsl -lcurses -ltermcap -lcrypt -lm -lresolv $(LIBS)" \
  4056.     "LNKFLAGS = -s"
  4057.  
  4058. # UnixWare 7 built with gcc - This does not work at all...
  4059. # Reportedly gcc 2.8.1 is broken on Unixware 7.  Try egcs?
  4060. unixware7g:
  4061.     @echo 'Making C-Kermit $(CKVER) for UnixWare 7 with gcc...'
  4062.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4063.     "CC = gcc" "CC2 = gcc" "LNKFLAGS = -s -shlib"
  4064.     "CFLAGS = -O -DUNIXWARE -DSELECT -DSVR4 -DDIRENT -DHDBUUCP -DBIGBUFOK \
  4065.     -DUW7 -DNOGETUSERSHELL -DSTERMIOX  -DCK_CURSES -DTCPSOCKET -DNOLSTAT \
  4066.     -DFNFLOAT -DCK_NEWTERM $(KFLAGS)" \
  4067.     "LIBS=-lsocket -lnsl -lcurses -ltermcap -lcrypt -lm -lresolv $(LIBS)" \
  4068.     "LNKFLAGS = -s"
  4069.  
  4070. unixware7:
  4071.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=$(KFLAGS)" unixware7t \
  4072.     KTARGET=$${KTARGET:-$(@)}
  4073.  
  4074. uw7:
  4075.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=$(KFLAGS)" unixware7t \
  4076.     KTARGET=$${KTARGET:-$(@)}
  4077.  
  4078. #SCO OpenUNIX 8.0
  4079. ou8:
  4080.     @echo 'Making C-Kermit $(CKVER) for Open UNIX 8...'
  4081.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=-DOU8 $(KFLAGS)" unixware7t \
  4082.     KTARGET=$${KTARGET:-$(@)}
  4083.  
  4084. #UnixWare 7 with OpenSSL
  4085. uw7ssl:
  4086.     @echo 'Making C-Kermit $(CKVER) for UnixWare 7 and OpenSSL...'
  4087.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4088.     "CFLAGS = -O -DCK_AUTHENTICATION -DCK_SSL -DCK_SHADOW \
  4089.     -DUNIXWARE -DSELECT -DSVR4 -DDIRENT -DHDBUUCP -DBIGBUFOK \
  4090.     -DFNFLOAT -DNOGETUSERSHELL -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DPOSIX \
  4091.     -DUW7 -DUSETCSETSPEED -DCK_NEWTERM -DNOLSTAT -DDCLTIMEVAL \
  4092.     $(SSLINC) $(KFLAGS)" \
  4093.     "LIBS=-lsocket -lnsl -lcurses -ltermcap -lcrypt -lm -lresolv \
  4094.     -lgen -lcudk70 $(SSLLIB) -lssl -lcrypto $(LIBS)" \
  4095.     "LNKFLAGS = -s"
  4096.  
  4097. #As above but includes Shadow password support needed for IKSD.
  4098. uw7iksd:
  4099.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=-DCK_SHADOW $(KFLAGS)" \
  4100.     KTARGET=$${KTARGET:-$(@)} "LIBS= -lgen" unixware7t
  4101.  
  4102. #As above but links with static API for realpath() so a binary built
  4103. #with this target on UW7.1 will also work on 7.0.  Requires SCO UDK
  4104. #rather than the stock compiler.
  4105. uw7iksdudk:
  4106.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=-DCK_SHADOW $(KFLAGS)" \
  4107.     KTARGET=$${KTARGET:-$(@)} "LIBS= -lgen -lcudk70" unixware7t
  4108.  
  4109. #ESIX SVR4.0.3 or 4.04 with TCP/IP support.
  4110. #Has <sys/termiox.h>, ANSI C function prototyping disabled.
  4111. #Add -m486 to CFLAGS if desired.
  4112. esixr4:
  4113.     @echo 'Making C-Kermit $(CKVER) for ESIX SVR4 + TCP/IP...'
  4114.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4115.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DNOANSI \
  4116.     -DSTERMIOX -DTCPSOCKET $(KFLAGS)" "LNKFLAGS = -s" \
  4117.     "LIBS = -lsocket -lnsl"
  4118.  
  4119. #AT&T UNIX System V R4.
  4120. #Has <sys/termiox.h>, Wollongong WIN/TCP TCP/IP.
  4121. sys5r4sxnet:
  4122.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  4123.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4124.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP \
  4125.     -DSTERMIOX -DWOLLONGONG $(KFLAGS)" "LNKFLAGS = -s"
  4126.  
  4127. #AT&T UNIX System V R4, no <termio.x> or <sys/termio.x>.
  4128. sys5r4nx:
  4129.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  4130.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4131.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DNOLEARN $(KFLAGS)" \
  4132.     "LNKFLAGS = -s"
  4133.  
  4134. #AT&T UNIX System V R4, no <termio.x> or <sys/termio.x>, curses, TCP/IP.
  4135. sys5r4nxnetc:
  4136.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  4137.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4138.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP \
  4139.     -DCK_CURSES -DTCPSOCKET $(KFLAGS)" \
  4140.     "LIBS = -lcurses -lsocket -lnsl -ltcpip" \
  4141.     "LNKFLAGS = -s"
  4142.  
  4143. #AT&T UNIX System V R4, no <termio.x> or <sys/termio.x>, Wollongong TCP/IP.
  4144. sys5r4nxtwg:
  4145.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  4146.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4147.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DWOLLONGONG $(KFLAGS)"
  4148.     "LNKFLAGS = -s"
  4149.  
  4150. #ICL UNIX System V R4.(DRS N/X) version :-
  4151. #UNIX System V Release 4.0 ICL DRS 6000 (SPARC)
  4152. #DRS/NX 6000 SVR4 Version 5  Level 1  Increment 4
  4153. #Has <sys/termiox.h>, regular Berkeley sockets library, i.e. in.h and inet.h
  4154. #are not misplaced in sys (rather than netinet and arpa, respectively).
  4155. #Uses ANSI C constructs, advisory file locking on devices, etc.
  4156. #Remove -lnsl if it causes trouble.
  4157. iclsys5r4:
  4158.     @echo 'Making C-Kermit $(CKVER) for ICL UNIX System V R4 (DRS N/X)'
  4159.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4160.     "CFLAGS = -O -DSVR4 -DICL_SVR4 -DDIRENT -DHDBUUCP -DNOGETUSERSHELL \
  4161.     -DSTERMIOX -DTCPSOCKET $(KFLAGS)" \
  4162.     "LIBS= -lsocket -lnsl -lresolv " "LNKFLAGS = -s"
  4163.  
  4164. #As above but for DRS/NX 4.2MP 7MPlus.
  4165. iclsys5r4m+:
  4166.     @echo 'Making C-Kermit $(CKVER) for ICL UNIX System V R4 DRS/NX 4.2MP+'
  4167.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4168.     "CFLAGS = -O -DSVR4 -DICL_SVR4 -DDIRENT -DHDBUUCP -DNOIKSD \
  4169.     -DSTERMIOX -DTCPSOCKET $(KFLAGS)" \
  4170.     "LIBS= -lsocket -lnsl -lm -lc -g -lgen " "LNKFLAGS = -s"
  4171.  
  4172. #As above but for DRS/NX 4.2MP 7MPlus with IKSD support.
  4173. iclsys5r4m+iksd:
  4174.     @echo 'Making C-Kermit $(CKVER) for ICL UNIX System V R4 DRS/NX 4.2MP+'
  4175.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4176.     "CFLAGS = -O -DSVR4 -DICL_SVR4 -DDIRENT -DHDBUUCP -DNOGETUSERSHELL \
  4177.     -DSTERMIOX -DTCPSOCKET $(KFLAGS)" \
  4178.     "LIBS= -lsocket -lnsl -lm -lc -g -lgen -lresolv " "LNKFLAGS = -s"
  4179.  
  4180. iclsys5r4_486:
  4181.     $(MAKE) "MAKE=$(MAKE)" iclsys5r4 KTARGET=$${KTARGET:-$(@)}
  4182.  
  4183. #Data General DG/UX 4.30 (System V R3) for DG AViiON, with TCP/IP support.
  4184. dgux430:
  4185.     @echo 'Making C-Kermit $(CKVER) for DG AViiON DG/UX 4.30...'
  4186.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4187.     "CFLAGS = -O -DDGUX430 -DSVR3 -DDIRENT -DTCPSOCKET \
  4188.     -DNOINADDRX -DNOGETUSERSHELL $(KFLAGS)"
  4189.  
  4190. #Data General DG/UX 4.30 for DG AViiON, with TCP/IP support with BSDisms.
  4191. dgux430bsd:
  4192.     @echo 'Making C-Kermit $(CKVER) for DG AViiON DG/UX 4.30...'
  4193.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4194.     "CFLAGS = -O -DDGUX430 -D_BSD_SOURCE -DBSD4 \
  4195.     -DNOINADDRX -DTCPSOCKET -DNOGETUSERSHELL $(KFLAGS)"
  4196.  
  4197. #Data General DG/UX 5.4 (System V R4) for DG AViiON, with TCP/IP support.
  4198. #Add -lsocket -lnsl if inet_addr comes up missing...
  4199. #Hmmm - I really think CK_POLL can be removed from this one in which case
  4200. #there is no difference between dgux540 and dgux540i.
  4201. dgux540:
  4202.     @echo 'Making C-Kermit $(CKVER) for DG AViiON DG/UX 5.40...'
  4203.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4204.     "CFLAGS = -O -DDGUX540 -DDIRENT -DHDBUUCP -DNOINADDRX \
  4205.     -DSTERMIOX -DTCPSOCKET -DCK_POLL -DNOGETUSERSHELL $(KFLAGS)"
  4206.  
  4207. #Data General DG/UX 5.40 (System V R4) for Intel AViiON, with TCP/IP support.
  4208. dgux540i:
  4209.     @echo 'Making C-Kermit $(CKVER) for DG AViiON DG/UX 5.40...'
  4210.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4211.     "CFLAGS = -O -DDGUX540 -DDIRENT -DHDBUUCP -DNOINADDRX \
  4212.     -DSTERMIOX -DTCPSOCKET -DNOGETUSERSHELL $(KFLAGS)" \
  4213.     "LIBS = -lsocket -lnsl"
  4214.  
  4215. dgux54:
  4216.     make dgux540 KTARGET=$${KTARGET:-$(@)}
  4217.  
  4218. #Data General DG/UX 5.4 (= System V R4) for DG AViiON, with TCP/IP support.
  4219. # And curses.
  4220. dgux540c:
  4221.     @echo 'Making C-Kermit $(CKVER) for DG AViiON DG/UX 5.4...'
  4222.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4223.     "CFLAGS = -O -DDGUX540 -DDIRENT -DHDBUUCP -DNOINADDRX \
  4224.     -DSTERMIOX -DTCPSOCKET -DCK_CURSES -DCK_NEWTERM -DNOGETUSERSHELL \
  4225.     $(KFLAGS)" "LIBS= -lcurses8 -ltermcap" "LNKFLAGS = -s"
  4226.  
  4227. #As above but for Intel - only difference is name library names.
  4228. dgux540ic:
  4229.     @echo 'Making C-Kermit $(CKVER) for DG AViiON DG/UX 5.40...'
  4230.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4231.     "CFLAGS = -O -DDGUX540 -DDIRENT -DHDBUUCP -DNOINADDRX \
  4232.     -DSTERMIOX -DTCPSOCKET -DCK_CURSES -DCK_NEWTERM -DNOGETUSERSHELL \
  4233.     $(KFLAGS)" "LIBS = -lsocket -lnsl -lcurses -ltermcap"
  4234.  
  4235. dgux54c:
  4236.     make dgux540c KTARGET=$${KTARGET:-$(@)}
  4237.  
  4238. #DG/UX 5.4R3.10
  4239. dgux54310:
  4240.     @echo 'Making C-Kermit $(CKVER) for DG AViiON DG/UX 5.4R3...'
  4241.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4242.     "CFLAGS = -DDGUX540 -DDGUX54310 -DDIRENT -DHDBUUCP -DSELECT \
  4243.     -DSTERMIOX -DTCPSOCKET -DCK_CURSES -DCK_NEWTERM    -DNOGETUSERSHELL \
  4244.     -DNOINADDRX $(KFLAGS)" "LIBS= -lcurses8 -ltermcap" "LNKFLAGS = -s"
  4245.  
  4246. #DG/UX 5.4R4.10 - Includes everything.
  4247. dgux54410:
  4248.     @echo 'Making C-Kermit $(CKVER) for DG/UX 5.4R4.10...'
  4249.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4250.     "CFLAGS = -O -DDGUX540 -DDGUX54410 -DDIRENT -DHDBUUCP -DSELECT \
  4251.     -DSTERMIOX -DTCPSOCKET -DCK_CURSES -DCK_NEWTERM -DNOGETUSERSHELL \
  4252.     -DNOINADDRX $(KFLAGS)" "LIBS = -lsocket -lnsl -lcurses -ltermcap"
  4253.  
  4254. #DG/UX 5.4R4.11 - Includes everything.
  4255. dgux54411:
  4256.     @echo 'Making C-Kermit $(CKVER) for DG/UX 5.4R4.11...'
  4257.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4258.     "CFLAGS = -O -DDGUX540 -DDGUX54411 -DDIRENT -DHDBUUCP -DSELECT \
  4259.     -DSTERMIOX -DTCPSOCKET -DCK_CURSES -DCK_NEWTERM -DNOGETUSERSHELL \
  4260.     -DNOINADDRX $(KFLAGS)" "LIBS = -lsocket -lnsl -lcurses -ltermcap"
  4261.  
  4262. #DG/UX 5.4R4.20 - Includes everything.
  4263. dgux54420:
  4264.     @echo 'Making C-Kermit $(CKVER) for DG/UX 5.4R4.20...'
  4265.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4266.     "CFLAGS = -O -DDGUX540 -DDGUX54420 -DDIRENT -DHDBUUCP -DSELECT \
  4267.     -DSTERMIOX -DTCPSOCKET -DCK_CURSES -DCK_NEWTERM -DNOGETUSERSHELL \
  4268.     -DNOINADDRX $(KFLAGS)" \
  4269.     "LIBS = -lsocket -lresolv -lnsl -lcurses -ltermcap"
  4270.  
  4271. #Silicon Graphics System V R3 with BSD file system (IRIS)
  4272. iris:
  4273.     @echo Making C-Kermit $(CKVER) for Silicon Graphics IRIX pre-3.3...
  4274.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4275.     "CFLAGS = -O -DSVR3 -DLONGFN -DNOLEARN $(KFLAGS) -I/usr/include/bsd" \
  4276.     "LIBS = -lbsd"
  4277.  
  4278. #Silicon Graphics IRIS System V R3
  4279. irix33:
  4280.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 3.3...'
  4281.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4282.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DNOLEARN $(KFLAGS) -O" \
  4283.     "LNKFLAGS = -s"
  4284.  
  4285. #Silicon Graphics Iris Indigo with IRIX 4.0.0 or 5.0...
  4286. #Strict ANSI C compilation, TCP/IP support included
  4287. irix40:
  4288.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 4.0...'
  4289.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4290.     "CFLAGS = -DIRIX40 -DSVR3 -DDIRENT -DHDBUUCP -DPWID_T=uid_t \
  4291.     -DCK_ANSIC -DTCPSOCKET $(KFLAGS) -O -Olimit 1600 -I/usr/include/bsd" \
  4292.     "LNKFLAGS = -s"
  4293.  
  4294. #As above, but with fullscreen display (curses) and Sun Yellow Pages support.
  4295. #NOTE: IRIX versions prior to 5 run COFF binaries.
  4296. irix40ypc:
  4297.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 4.0.'
  4298.     @echo 'Includes fullscreen file display and Sun Yellow Pages...'
  4299.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4300.     "CFLAGS = -DIRIX40 -DSVR3 -DDIRENT -DHDBUUCP -DCK_CURSES \
  4301.     -DPWID_T=uid_t -DCK_ANSIC -DTCPSOCKET $(KFLAGS) \
  4302.     -O -Olimit 1600 -I/usr/include/bsd" \
  4303.     "LIBS = -lcurses -lsun" "LNKFLAGS = -s"
  4304.  
  4305. # Silicon Graphics Iris Series 4D/*, IRIX 4.0.x, -O4 ucode optimized.
  4306. # Huge temporary file space needed for ucode optimizer.  If you get an error
  4307. # like "ugen: internal error writing to /tmp/ctmca08777: Error 0", define the
  4308. # the TMPDIR environment variable to point to a file system that has more
  4309. # space available, e.g. "setenv TMPDIR /usr/tmp".
  4310. irix40u:
  4311.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 4.0...'
  4312.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4313.     "CFLAGS = -DIRIX40 -DSVR3 -DDIRENT -DHDBUUCP -DPWID_T=uid_t \
  4314.     -DCK_ANSIC -DTCPSOCKET $(KFLAGS) -O4 -Olimit 1600" \
  4315.     "LNKFLAGS=-O4 -Olimit 1600 -s" "EXT=u"
  4316.  
  4317. # As above, with Curses Support added
  4318. irix40uc:
  4319.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 4.0...'
  4320.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4321.     "CFLAGS = -DIRIX40 -DSVR3 -DDIRENT -DHDBUUCP -DPWID_T=uid_t \
  4322.     -DCK_ANSIC -DCK_CURSES -DTCPSOCKET $(KFLAGS) -O4 -Olimit 1600" \
  4323.     "LNKFLAGS=-O4 -Olimit 1600 -s" "EXT=u" "LIBS= -lcurses -ltermcap"
  4324.  
  4325. #Silicon Graphics IRIX 5.x.
  4326. #Yellow Pages and Curses support included.
  4327. #IRIX version 5.x can run COFF or ELF binaries.
  4328. irix51:
  4329.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 5.x'
  4330.     @echo 'Includes fullscreen file display and Yellow Pages...'
  4331.     @echo 'Add -mips<n> to CFLAGS specify a particular hardware target.'
  4332.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4333.     "CFLAGS = -DIRIX51 -DSVR4 -DDIRENT -DHDBUUCP -DCK_CURSES -DCK_NEWTERM \
  4334.     -DPWID_T=uid_t -DCK_ANSIC -DTCPSOCKET -DSELECT -DNOGETUSERSHELL \
  4335.     -DSYSTIMEH -DDCLPOPEN -DDCLFDOPEN $(KFLAGS) -ansi -O -Olimit 3000" \
  4336.     "LIBS = -lcurses" "LNKFLAGS = -s"
  4337.  
  4338. #Use this one if irix51 blows up due to lack of swap space or whatever.
  4339. irix51x:
  4340.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 5.x'
  4341.     @echo 'Includes fullscreen file display and Yellow Pages...'
  4342.     @echo 'Add -mips<n> to CFLAGS specify a particular hardware target.'
  4343.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4344.     "CFLAGS = -DIRIX51 -DSVR4 -DDIRENT -DHDBUUCP -DCK_CURSES -DCK_NEWTERM \
  4345.     -DPWID_T=uid_t -DCK_ANSIC -DTCPSOCKET -DSELECT -DNOGETUSERSHELL \
  4346.     -DSYSTIMEH -DDCLPOPEN -DDCLFDOPEN $(KFLAGS)" \
  4347.     "LIBS = -lcurses" "LNKFLAGS = -s"
  4348.  
  4349. irix51ypc:
  4350.     $(MAKE) "MAKE=$(MAKE)" irix51 KTARGET=$${KTARGET:-$(@)} \
  4351.     "KFLAGS= $(KFLAGS)"
  4352.  
  4353. #IRIX 5.2 adds RTS/CTS
  4354. irix52:
  4355.     $(MAKE) "MAKE=$(MAKE)" irix51 KTARGET=$${KTARGET:-$(@)} \
  4356.     "KFLAGS=-DIRIX52 -DCK_RTSCTS $(KFLAGS)"
  4357.  
  4358. irix53:
  4359.     $(MAKE) "MAKE=$(MAKE)" irix51 KTARGET=$${KTARGET:-$(@)} \
  4360.     "KFLAGS=-DIRIX52 -DIRIX53 -DCK_RTSCTS $(KFLAGS)"
  4361.  
  4362. irix53x:
  4363.     $(MAKE) "MAKE=$(MAKE)" irix51x KTARGET=$${KTARGET:-$(@)} \
  4364.     "KFLAGS=-DIRIX52 -DIRIX53 -DCK_RTSCTS $(KFLAGS)"
  4365.  
  4366. #Silicon Graphics IRIX 6.[024] common stuff.
  4367. #Yellow Pages and Curses support included.
  4368. #IRIX version 6.0 and later runs only ELF binaries.
  4369. #Depends on code changes in ckudeb.h that make -DIRIX6x define all
  4370. #lower IRIX6x values and IRIX51.
  4371. irix6x:
  4372.     @echo 'Includes fullscreen file display and Yellow Pages...'
  4373.     @echo 'Add -mips<n> to specify a particular hardware target.'
  4374.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4375.     "CFLAGS = -DSVR4 -DDIRENT -DHDBUUCP -DNOGETUSERSHELL \
  4376.     -DCK_CURSES -DCK_NEWTERM -DPWID_T=uid_t -DCK_ANSIC -DTCPSOCKET \
  4377.     -DSELECT -DCK_RTSCTS -O $(KFLAGS)" \
  4378.     "LIBS = -lcurses" "LNKFLAGS = -s $(LNKFLAGS)"
  4379.  
  4380. #Silicon Graphics IRIX 6.0.
  4381. irix60:
  4382.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 6.0'
  4383.     @$(MAKE) "MAKE=$(MAKE)" \
  4384.     "KFLAGS=-DIRIX60 -Olimit 2138 $(KFLAGS)" \
  4385.     irix6x KTARGET=$${KTARGET:-$(@)}
  4386.  
  4387. #Silicon Graphics IRIX 6.2.
  4388. #Serial speeds > 38400 are available in IRIX 6.2 on O-class machines only.
  4389. #Note: Olimit must be a number > 0.
  4390. irix62:
  4391.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 6.2'
  4392.     @$(MAKE) "MAKE=$(MAKE)" \
  4393.     LNKFLAGS="-Wl,-woff,84" \
  4394.     "KFLAGS=-DIRIX62 -Olimit 4700 $(KFLAGS)" \
  4395.     irix6x KTARGET=$${KTARGET:-$(@)}
  4396.  
  4397. #Silicon Graphics IRIX 6.3.
  4398. irix63:
  4399.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 6.3'
  4400.     @$(MAKE) "MAKE=$(MAKE)" irix62 KTARGET=$${KTARGET:-$(@)} \
  4401.     "KFLAGS=-DIRIX63"
  4402.  
  4403. #Silicon Graphics IRIX 6.4.
  4404. # -woff,84 to linker stops complaints about no symbols loaded from
  4405. # curses, and -woff 1110 stops complaints about unreachable "break;"
  4406. # statements in ckcpro.c among others.
  4407. # tested on SGI Octane, running IRIX 6.4 up to 115200 bps.
  4408. # -Olimit 0 means infinite.
  4409. irix64:
  4410.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 6.4'
  4411.     @$(MAKE) "MAKE=$(MAKE)" \
  4412.     LNKFLAGS="-Wl,-woff,84" \
  4413.     "KFLAGS=-DIRIX64 -DCK_RTSCTS -Olimit 3000 -woff 1110 $(KFLAGS)" \
  4414.     irix6x KTARGET=$${KTARGET:-$(@)}
  4415.  
  4416. irix64gcc:
  4417.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 6.4 gcc'
  4418.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  4419.     "CFLAGS= -DSVR4 -DIRIX64 -DCK_CURSES -DTCPSOCKET -DNOCOTFMC \
  4420.     $(KFLAGS) -O" "LIBS= -lcurses -ltermcap -lcrypt"
  4421.  
  4422. #Note the new Optimization option syntax for MIPSpro CC 7.2.1.2m.
  4423. irix65:
  4424.     @echo 'Making C-Kermit $(CKVER) for SGI IRIX 6.5'
  4425.     @$(MAKE) "MAKE=$(MAKE)" LNKFLAGS="-Wl,-woff,84" \
  4426.     "KFLAGS=-DIRIX65 -DCK_RTSCTS -OPT:Olimit=0 -woff 1110,1552,1174 \
  4427.     $(KFLAGS)" \
  4428.     irix6x KTARGET=$${KTARGET:-$(@)}
  4429.  
  4430. irix6x+krb5:
  4431.     @echo 'Includes fullscreen file display and Yellow Pages...'
  4432.     @echo 'Add -mips<n> to specify a particular hardware target.'
  4433.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4434.     "CFLAGS = -DSVR4 -DDIRENT -DHDBUUCP -DNOGETUSERSHELL \
  4435.     -DCK_CURSES -DCK_NEWTERM -DPWID_T=uid_t -DCK_ANSIC -DTCPSOCKET\
  4436.     -DSELECT -DCK_RTSCTS -O \
  4437.     -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 -DCK_ENCRYPTION -DCK_DES \
  4438.     $(K5INC) $(K5INC)/krb5 $(KFLAGS)" \
  4439.     "LIBS = -lcurses $(K5LIB) -ldes425 -lkrb5 \
  4440.     -lcom_err -lcrypto -lcrypt -lgssapi_krb5" \
  4441.     "LNKFLAGS = -s $(LNKFLAGS)"
  4442.  
  4443. irix65+krb5:
  4444.     @echo 'Making C-Kermit $(CKVER) for SGI IRIX 6.5'
  4445.     @$(MAKE) "MAKE=$(MAKE)" \
  4446.     LNKFLAGS="-Wl,-woff,84" \
  4447.     "KFLAGS=-DIRIX65 -DCK_RTSCTS -OPT:Olimit=0 -woff 1110,1552,1174 \
  4448.     $(KFLAGS)" \
  4449.     irix6x+krb5 KTARGET=$${KTARGET:-$(@)}
  4450.  
  4451. #In case they type "make sys5"...
  4452. sys5:
  4453.     $(MAKE) "MAKE=$(MAKE)" sys3 KTARGET=$${KTARGET:-$(@)}
  4454.  
  4455. #Generic ATT System III or System V (with I&D space)
  4456. sys3:
  4457.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System III'
  4458.     @echo 'or System V R2 or earlier...'
  4459.     @echo 'add -DNOMKDIR if mkdir is an undefined symbol.'
  4460.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4461.     "CFLAGS = -DATTSV -DNOUNICODE -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL \
  4462.     -DNOINITGROUPS -DNOFTRUNCATE -DNOREALPATH -DNOLEARN $(KFLAGS) -i -O" \
  4463.     "LNKFLAGS = -i"
  4464.  
  4465. #Generic ATT System III or System V (no I&D space)
  4466. sys3nid:
  4467.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System III'
  4468.     @echo 'or System V R2 or earlier, no I&D space...'
  4469.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4470.     "CFLAGS = -DATTSV -DNOREALPATH -DNOUNICODE -DNOSYSLOG -DNOSYMLINK \
  4471.     -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE -DNOLEARN $(KFLAGS) -O" \
  4472.     "LNKFLAGS ="
  4473.  
  4474. #Generic ATT System III or System V R2 or earlier, "no void":
  4475. #special entry to remove "Illegal pointer combination" warnings.
  4476. sys3nv:
  4477.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System III'
  4478.     @echo 'or System V R2 or earlier...'
  4479.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4480.     "CFLAGS= -DATTSV -DNOREALPATH -DNOUNICODE -DNOSYSLOG -DNOGETUSERSHELL \
  4481.     -DNOSYMLINK -DNOFTRUNCATE -DNOINITGROUPS -DNOLEARN \
  4482.     -Dvoid=int $(KFLAGS) -i -O" \
  4483.     "LNKFLAGS = -i"
  4484.  
  4485. # AT&T 7300 UNIX PC.  As of C-Kermit 6.1, many of these entries don't work
  4486. # any more due to "Out of memory" or "Too many defines" errors during
  4487. # compilation, at least not on systems without lots of memory.  The sys3upcgc
  4488. # entry works (using gcc) with optimization removed, and might also work
  4489. # with optimization enabled on machines with larger memories.
  4490.  
  4491. #AT&T 7300/UNIX PC (3B1) systems, sys3 but special handling for internal modem.
  4492. #Link with the shared library -- the conflict with openi in shared library
  4493. #is solved with -Dopeni=xopeni.  Note that the xermit target can't be used
  4494. #for the Unix PC; there is no select().
  4495. sys3upc:
  4496.     @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC, shared lib...'
  4497.     @echo 'If shared lib causes trouble, use make sys3upcold.'
  4498.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4499.     "CFLAGS = -O -DATT7300 -DNOMKDIR -DUSE_MEMCPY -DNOREALPATH -DNOLEARN \
  4500.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  4501.     -DNOREDIRECT -DNOGFTIMER -DNOUNICODE $(KFLAGS) -Dopeni=xopeni" \
  4502.     "CC2 = ld /lib/crt0s.o /lib/shlib.ifile" "LNKFLAGS = -s"
  4503.  
  4504. #AT&T 7300/Unix PC systems, minimum kermit for those with smaller amounts
  4505. #of memory.
  4506. sys3upcm:
  4507.     @echo Minimum interactive
  4508.     $(MAKE) "MAKE=$(MAKE)" sys3upc KTARGET=$${KTARGET:-$(@)} \
  4509.     "KFLAGS=-DNOSPL -DNOFRILLS -DNOHELP -DNODEBUG -DNOTLOG -DNOCSETS \
  4510.     -DNOSYSLOG -DNOSETKEY -DNOREALPATH"
  4511.  
  4512. #AT&T 7300/UNIX PC (3B1) systems, with curses support.
  4513. #Curses and the shared library don't get along, so we don't use the
  4514. #shared library.  We need to include CK_NEWTERM to avoid a conflict
  4515. #with curses and buffering on stdout.  Merged with submission by
  4516. #Robert Weiner/Programming Plus, rweiner@watsun.cc.columbia.edu.
  4517. #We don't need -Dopeni=xopeni since we're not using the shared library,
  4518. #but we keep it to be consistent with the other entries.
  4519. sys3upcc:
  4520.     @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC, curses...'
  4521.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4522.     "CFLAGS = -O -DATT7300 -DNOREALPATH \
  4523.     -DCK_CURSES -DCK_NEWTERM -DNOMKDIR -DNOREDIRECT -DNOGFTIMER -DNOLEARN \
  4524.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  4525.     -DUSE_MEMCPY -DNOUNICODE $(KFLAGS) -Dopeni=xopeni" \
  4526.     "LIBS = -lcurses" "LNKFLAGS = -s"
  4527.  
  4528. #Like sys3upcc but for AT&T UNIX 3.51m (released as a patch on Fix Disk 2),
  4529. #adds hardware flow control.
  4530. att351m:
  4531.     $(MAKE) "MAKE=$(MAKE)" sys3upcc KTARGET=$${KTARGET:-$(@)} \
  4532.     "KFLAGS=-DCK_RTSCTS -DUNIX351M"
  4533.  
  4534. #As above but with gcc.
  4535. att351gm:
  4536.     $(MAKE) "MAKE=$(MAKE)" sys3upcgc KTARGET=$${KTARGET:-$(@)} \
  4537.     "KFLAGS=-DCK_RTSCTS -DUNIX351M"
  4538.  
  4539. #AT&T 7300 UNIX PC (3B1), as above, but no newterm().
  4540. sys3upcx:
  4541.     @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC, curses...'
  4542.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4543.     "CFLAGS = -O -DATT7300 -DNOREALPATH -DNOUNICODE -DNOLEARN \
  4544.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  4545.     -DCK_CURSES -DNOMKDIR -DNOREDIRECT -DNOGFTIMER -DUSE_MEMCPY $(KFLAGS) \
  4546.     -Dopeni=xopeni" "LIBS = -lcurses -ltermcap" "LNKFLAGS = -s"
  4547.  
  4548. #AT&T 7300/UNIX PC (3B1) systems, with curses and shared library support.
  4549. sys3upcshcc:
  4550.     @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC, shared lib...'
  4551.     @echo 'With curses.  Requires shcc.'
  4552.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4553.     "CFLAGS = -O -DATT7300 -DNOMKDIR -DNOREALPATH -DNOLEARN \
  4554.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  4555.     -DCK_NEWTERM -DCK_CURSES  -DNOREDIRECT -DNOGFTIMER \
  4556.     -DUSE_MEMCPY -DNOUNICODE $(KFLAGS) -Dopeni=xopeni" \
  4557.     "LNKFLAGS = -i -s" "CC = shcc" "CC2 = shcc" "LIBS = -lcurses"
  4558.  
  4559. #AT&T 7300/UNIX PC (3B1) systems, as above, no curses, but use gcc.
  4560. sys3upcg:
  4561.     @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC...'
  4562.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4563.     "CFLAGS = -DATT7300 -DNOREDIRECT -DUSE_MEMCPY -DNOUNICODE -DNOLEARN \
  4564.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  4565.     -DNOGFTIMER -DNOMKDIR -DNOREALPATH $(KFLAGS) -Dopeni=xopeni" \
  4566.     "CC = gcc" "CC2 = gcc" "LNKFLAGS = -s -shlib"
  4567.  
  4568. #AT&T 7300/UNIX PC (3B1) systems, curses and gcc.
  4569. #Optimization omitted -- add it back in if your machine has lots of memory.
  4570. sys3upcgc:
  4571.     @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC, curses...'
  4572.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4573.     "CFLAGS = -DATT7300 -DNOREDIRECT -DUSE_MEMCPY -DNOGFTIMER -DNOUNICODE \
  4574.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  4575.     -DCK_CURSES -DCK_NEWTERM -DNOMKDIR -DNOREALPATH -DNOLEARN $(KFLAGS)" \
  4576.     "CC = gcc" "CC2 = gcc" "LIBS = -lcurses" "LNKFLAGS = -s"
  4577.  
  4578. #AT&T 7300/UNIX PC (3B1) systems, special handling for internal modem.
  4579. #No FULLSCREEN file transfer display (curses).
  4580. sys3upcold:
  4581.     @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC...'
  4582.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4583.     "CFLAGS = -DATT7300 -DNOMKDIR -DUSE_MEMCPY -DNOUNICODE -DNOLEARN \
  4584.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  4585.     -DNOGFTIMER -DNOREDIRECT -DNOREALPATH $(KFLAGS) -O" "LNKFLAGS = -i"
  4586.  
  4587. #As above, but with gcc. mininum features - fits on a 400K UNIX PC floppy
  4588. #after compression with room to spare; add -DNOSHOW or other -DNOxxxx items
  4589. #to reduce size even further.
  4590. sys3upcgm:
  4591.     @echo Minimum interactive
  4592.     $(MAKE) "MAKE=$(MAKE)" sys3upcg KTARGET=$${KTARGET:-$(@)} \
  4593.     "KFLAGS=-DNOSPL -DNOFRILLS -DNOHELP -DNODEBUG -DNOTLOG -DNOCSETS \
  4594.     -DNOSETKEY $(KFLAGS)"
  4595.  
  4596. #This target is designed to create a version with the most features possible
  4597. #that, after compression, still fits on a 400K UNIX PC floppy.
  4598. sys3upcgfd:
  4599.     @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC floppy...'
  4600.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4601.     "CFLAGS = -DATT7300 -DNOREDIRECT -DUSE_MEMCPY -DNOSPL -DNOLEARN \
  4602.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  4603.     -DNOGFTIMER -DNOREALPATH -Dopeni=xopeni \
  4604.     -DNOHELP -DNODEBUG -DNOTLOG -DNOCSETS -DNOSETKEY -DNOMKDIR $(KFLAGS)" \
  4605.     "CC = gcc" "CC2 = gcc" "LNKFLAGS = -s"
  4606.  
  4607. #AT&T 6300 PLUS (warning, -O might make it run out of space).
  4608. #NOTE: Remove -DHDBUUCP if not using Honey DanBer UUCP.
  4609. att6300:
  4610.     @echo 'Making C-Kermit $(CKVER) for AT&T 6300 PLUS...'
  4611.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4612.     "CFLAGS = -DATT6300 -DHDBUUCP -DNOFILEH -DNOREALPATH -DNOLEARN \
  4613.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  4614.     -DNOUNICODE $(KFLAGS) -O -Ml -i" "LNKFLAGS = -i -Ml"
  4615.  
  4616. #As above, but with curses support.  Debugging disabled to prevent thrashing.
  4617. att6300c:
  4618.     @echo 'Making C-Kermit $(CKVER) for AT&T 6300 PLUS...'
  4619.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4620.     "CFLAGS = -DATT6300 -DHDBUUCP -DNOFILEH -DNOCSETS -DNOREALPATH \
  4621.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  4622.     -DCK_CURSES -DNODEBUG -DNOUNICODE -DNOLEARN $(KFLAGS) -O -Ml -i" \
  4623.     "LNKFLAGS = -i -Ml" "LIBS = -lcurses"
  4624.  
  4625. #AT&T 6300 PLUS with no curses, no debugging (about 34K smaller)
  4626. # -Optimization saves about 20K too.
  4627. att6300nd:
  4628.     @echo 'Making C-Kermit $(CKVER) for AT&T 6300 PLUS, no debugging...'
  4629.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4630.     "CFLAGS = -DATT6300 -DHDBUUCP -DNODEBUG -DNOFILEH -DNOREALPATH \
  4631.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  4632.     -DNOUNICODE -DNOLEARN $(KFLAGS) -O -i -Ml" "LNKFLAGS = -i -Ml"
  4633.  
  4634. #AT&T 3B2 and maybe 3B20-series computers running AT&T UNIX System V R3.
  4635. #This one was actually used to build C-Kermit 7.0 successfully on a 3B2/300.
  4636. att3b2:
  4637.     @echo 'Making C-Kermit $(CKVER) for AT&T 3B2'
  4638.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4639.     "CFLAGS = -DATTSV -DNOREDIRECT -DUSE_MEMCPY \
  4640.     -DNOTIMEVAL -DNOTIMEZONE -DMINIDIAL -DNOCHANNELIO -DNOBIGBUF \
  4641.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  4642.     -DNOGFTIMER -DNOREALPATH -Dopeni=xopeni -DNOFRILLS -DNOLEARN \
  4643.     -DNOHELP -DNODEBUG -DNOTLOG -DNOCSETS -DNOSETKEY -DNOMKDIR $(KFLAGS)" \
  4644.     "CC = gcc" "CC2 = gcc" "LNKFLAGS = -s"
  4645.  
  4646. # The next two are likely not to work as-is.
  4647.  
  4648. #AT&T 3B2, 3B20-series computers running AT&T UNIX System V.
  4649. #This is just generic System V with Honey DanBer UUCP, so refer to sys3hdb.
  4650. #Remove -DNONAWS if you can get away with it.
  4651. att3bx:
  4652.     $(MAKE) "MAKE=$(MAKE)" sys3hdb KTARGET=$${KTARGET:-$(@)} \
  4653.     "KFLAGS=$(KFLAGS) -DNONAWS -DNOTIMEVAL"
  4654.  
  4655. # 3Bx with charsets (except Unicode) but no curses.
  4656. att3bx1:
  4657.     @echo 'Making C-Kermit $(CKVER) for AT&T 3B2 or 3B20'
  4658.     @echo 'with Honey DanBer UUCP  no curses...'
  4659.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4660.     "CFLAGS = -DATTSV -DHDBUUCP $(KFLAGS) -DNOREDIRECT \
  4661.     -DNOTIMEVAL -DNOTIMEZONE -DMINIDIAL -DNOCHANNELIO -DNOBIGBUF \
  4662.     -DNOHELP -DNODEBUG -DNOGFTIMER -DNOLEARN \
  4663.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  4664.     -DNOREALPATH -DNOUNICODE -i" \
  4665.     "CC = gcc" "CC2 = gcc" "LNKFLAGS = -i -s"
  4666.  
  4667. #AT&T 3B2, 3B20-series computers running AT&T UNIX System V,
  4668. #with fullscreen file transfer display.
  4669. att3bxc:
  4670.     @echo 'Making C-Kermit $(CKVER) for AT&T 3B2 or 3B20'
  4671.     @echo 'with Honey DanBer UUCP and curses...'
  4672.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4673.     "CFLAGS = -DATTSV -DHDBUUCP -DNONAWS -DNOTIMEVAL $(KFLAGS) \
  4674.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  4675.     -DNOREALPATH -DCK_CURSES -DCK_NEWTERM -DNOUNICODE -DNOLEARN -i -O" \
  4676.     "LNKFLAGS = -i" "LIBS=-lcurses"
  4677.  
  4678. #3bx with curses but no charsets
  4679. att3bxc3:
  4680.     @echo 'Making C-Kermit $(CKVER) for AT&T 3B2 or 3B20'
  4681.     @echo 'with Honey DanBer UUCP with curses...  no CSETS'
  4682.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4683.     "CFLAGS = -DATTSV -DHDBUUCP $(KFLAGS) -DNOREDIRECT \
  4684.     -DNOTIMEVAL -DNOTIMEZONE -DMINIDIAL -DNOCHANNELIO -DNOBIGBUF \
  4685.     -DNOHELP -DNODEBUG -DNOGFTIMER -DNOLEARN \
  4686.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  4687.     -DNOREALPATH -DNOCSETS -DCK_CURSES -DCK_NEWTERM -i" \
  4688.     "CC = gcc" "CC2 = gcc" "LNKFLAGS = -i -s" "LIBS = -lcurses"
  4689.  
  4690. #Any System V R2 or earlier with Honey DanBer UUCP (same as above)
  4691. sys3hdb:
  4692.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System III'
  4693.     @echo 'or System V R2 or earlier with Honey DanBer UUCP...'
  4694.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4695.     "CFLAGS = -DATTSV -DHDBUUCP -DNOREALPATH -DNOUNICODE -DNOLEARN \
  4696.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  4697.     $(KFLAGS) -i -O" "LNKFLAGS = -i"
  4698.  
  4699. #Sperry/UNISYS 5000 UTS V 5.2 (System V R2), Honey DanBer UUCP
  4700. unisys5r2:
  4701.     @echo 'Making C-Kermit $(CKVER) for Sperry/UNISYS 5000 UTS V 5.2...'
  4702.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4703.     "CFLAGS = -DATTSV -DUNISYS52 -DHDBUUCP -DNOREALPATH -DNOUNICODE \
  4704.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  4705.     -DNOLEARN $(KFLAGS) -i -O" "LNKFLAGS = -i"
  4706.  
  4707. #In case they say "make sys5hdb" instead of "make sys3hdb"...
  4708. sys5hdb:
  4709.     $(MAKE) "MAKE=$(MAKE)" sys3hdb
  4710.  
  4711. #Create the common header line for all hpux[5-10]* entries. This extra entry is
  4712. #here because our header message length may differ for each C-Kermit version.
  4713. #Don't use 'fold -s' for HP-UX 5.x - 7.x! This option is there only since
  4714. #HP-UX 8.0!
  4715. hpux-header:
  4716.     @HPUX=`uname -r | sed -e 's/^[^1-9]*//' -e 's/\.00$$/.0/'` ; \
  4717.     [ "$(MESSAGE0)" ] && MESSAGE1="$(MESSAGE0)" ; \
  4718.     Message0='Making C-Kermit $(CKVER) for HP9000 HP-UX' ; \
  4719.     Message1=$${MESSAGE1:='without any extra compiler optimization'} ; \
  4720.     MessageH="$$Message0 $$HPUX" ; \
  4721.     case $$HPUX in \
  4722.       [567].*) echo "$$MessageH\n$$Message1" ;; \
  4723.           *.*) echo "$$MessageH $${Message1}$(MESSAGE1A)" | fold -s ;; \
  4724.     esac | sed -e 's/^ //' -e 's/ *$$//'
  4725.  
  4726. # Peter E's updated HP-UX 5.xx entries Oct 2001.
  4727.  
  4728. #HP-9000 500 HP-UX 5.xx, no TCP/IP.
  4729. hpux0500:
  4730.     @MESSAGE0="no TCP/IP and no compiler optimization";\
  4731.     MESSAGE0=$${MESSAGE1:-$$MESSAGE0} \
  4732.     $(MAKE) hpux-header
  4733.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4734.     "CFLAGS = -DHPUX -DHPUX5 -DHPUXPRE65 -DNOREDIRECT -DDCLGETCWD \
  4735.     -DNOGETUSERSHELL -DNOGFTIMER -DNOSYSLOG -DNOTOMACROS -DNOLSTAT \
  4736.     -DNOSYMLINK -DNOINITGROUPS -DNOUNICODE -DNOLEARN $(KFLAGS)" \
  4737.     "LIBS = $(LIBS)" "LNKFLAGS = "
  4738.  
  4739. #HP-9000 500 HP-UX 5.21 with Wollongong WIN/TCP 1.2 TCP/IP.
  4740. #Requires /usr/wins/usr/include and /usr/lib/libnet.a from Wollongong.
  4741. #Optimization skipped - takes forever.    Really.
  4742. # WARNING: this doesn't work if a file called "hpux0500" is on the disk.
  4743. hpux0500wintcp:
  4744.     @MESSAGE1="with WIN/TCP but without any extra compiler optimization" \
  4745.     $(MAKE) hpux0500 KTARGET=$${KTARGET:-$(@)} \
  4746.     "KFLAGS = -DTCPSOCKET -DHPUX5WINTCP -DINADDRX -DNO_DNS_SRV -DNOMHHOST \
  4747.     -DNOHADDRLIST -I/usr/wins/usr/include $(KFLAGS)" \
  4748.     "LIBS = /usr/lib/libnet.a"
  4749.  
  4750. #HP-UX 6.5, short filenames, no network and no curses support.
  4751. #ckcpro, ckuusr, ckuus3 and others are broken out because they make the
  4752. #optimizer run away.  Note that xermit target does not work with this one!
  4753. #If you get compiler warnings like 'Switch table overflow' increase the '...'
  4754. #value in '-Wc,-Nw...'!
  4755. hpux0650:
  4756.     @$(MAKE) hpux-header
  4757.     @echo 'supporting: NO long filenames, NO network${MESSAGE2}.'
  4758.  
  4759.     $(MAKE) KTARGET=$${KTARGET:-$(@)} \
  4760.         ckuusr.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) \
  4761.             ckuus6.$(EXT) ckuxla.$(EXT) ckcpro.$(EXT) \
  4762.     "CFLAGS = -DHPUX -DHPUX6 -DSIG_V -DNOSYSLOG -DNOSELECT -DFNFLOAT \
  4763.     -DDCLGETCWD -DNOGETUSERSHELL -DNO_DNS_SRV -DNOLEARN $(KFLAGS) \
  4764.     -Wc,-Nw260"
  4765.  
  4766.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4767.     "CFLAGS = -DHPUX -DHPUX6 -DSIG_V -DNOSYSLOG -DNOSELECT -DFNFLOAT \
  4768.     -DDCLGETCWD -DNOGETUSERSHELL -DNO_DNS_SRV -DNOLEARN $(KFLAGS) \
  4769.     -Wc,-Nw260 $(OFLAGS)" "LNKFLAGS = -s" "LIBS = -lm $(LIBS)"
  4770.  
  4771. #Exactly as above, plus curses:
  4772. hpux0650c:
  4773.     @MESSAGE2=", but with curses" \
  4774.     $(MAKE) hpux0650 KTARGET=$${KTARGET:-$(@)} \
  4775.     "KFLAGS= -DCK_CURSES $(KFLAGS)" \
  4776.     "LIBS= -lcurses"
  4777.  
  4778. #Exactly as above, plus curses + network:
  4779. #(doesn't work -- HP-UX 6 lacks the FD_SET macros -- this can be addressed
  4780.  
  4781. hpux0650tcpc:
  4782.     @MESSAGE2=", but with curses and with tcp/ip" \
  4783.     $(MAKE) hpux0650 KTARGET=$${KTARGET:-$(@)} \
  4784.     "KFLAGS= -DCK_CURSES -DTCPSOCKET -DNOHADDRLIST $(KFLAGS)" \
  4785.     "LIBS= -lcurses"
  4786.  
  4787. #Exactly as hpux0650 but with compiler optimization:
  4788. hpux0650o:
  4789.     @MESSAGE1="with compiler optimization" \
  4790.     $(MAKE) hpux0650 KTARGET=$${KTARGET:-$(@)} \
  4791.     "KFLAGS= $(KFLAGS)" "OFLAGS = -O"
  4792.  
  4793. #Exactly as hpux0650c but with compiler optimization:
  4794. hpux0650oc:
  4795.     @MESSAGE1="with compiler optimization" \
  4796.     $(MAKE) hpux0650c KTARGET=$${KTARGET:-$(@)} \
  4797.     "KFLAGS= $(KFLAGS)" "OFLAGS = -O"
  4798.  
  4799. #Take this as startup entry for all 'none optimized' files under HP-UX 7.x!
  4800. #Make sure we doesn't call it with the '-O' option because this will blow up
  4801. #the compiler!
  4802. hpux0700noopt:
  4803.     @case "$(CFLAGS)" in \
  4804.     *-O*) echo "Don't use CFLAGS= -O here!" ;; \
  4805.        *) $(MAKE) KTARGET=$${KTARGET:-$(@)} \
  4806.           ckuusr.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) \
  4807.           ckuus6.$(EXT) ckuus7.$(EXT) ckuxla.$(EXT) \
  4808.           ckcuni.$(EXT) ckcftp.$(EXT) ckcpro.$(EXT) \
  4809.           ;; \
  4810.     esac
  4811.  
  4812. #HP-UX 7.0, no long filenames, no network support, no curses.
  4813. #If you get compiler warnings like 'Switch table overflow' increase the '...'
  4814. #value in '-Wc,-Nw...'!
  4815. hpux0700sf:
  4816.     @$(MAKE) hpux-header
  4817.     @echo 'supporting: NO long filenames, NO network, NO curses.'
  4818.     $(MAKE) hpux0700noopt KTARGET=$${KTARGET:-$(@)} \
  4819.     "CFLAGS = -DHPUX -DHPUX7 -DSIG_V -DNOGETUSERSHELL -DFNFLOAT \
  4820.     -DNO_DNS_SRV $(KFLAGS) -Wc,-Nw260"
  4821.  
  4822.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4823.     "CFLAGS = -DHPUX -DHPUX7 -DSIG_V -DNOGETUSERSHELL -DFNFLOAT \
  4824.     -DNO_DNS_SRV $(KFLAGS) -Wc,-Nw260 $(OFLAGS)" \
  4825.     "LNKFLAGS = -s" "LIBS = -lm $(LIBS)"
  4826.  
  4827. #Exactly as hpux0700sf but with compiler optimization:
  4828. hpux0700osf:
  4829.     @MESSAGE1="with compiler optimization" \
  4830.     $(MAKE) hpux0700sf KTARGET=$${KTARGET:-$(@)} \
  4831.     "KFLAGS= $(KFLAGS)" "OFLAGS = -O"
  4832.  
  4833. #HP-UX 7.0, short filenames, but with tcp/ip and curses.
  4834. #To use this, you must have bought the ARPA Services Product from HP, and you 
  4835. #must have /usr/lib/libBSD.a.
  4836. hpux0700sftcpc:
  4837.     @$(MAKE) hpux-header
  4838.     @echo 'supporting: NO long filenames, \c'
  4839.     @echo 'but with networking, curses, HDB uucp...'
  4840.     $(MAKE) hpux0700noopt KTARGET=$${KTARGET:-$(@)} \
  4841.     "CFLAGS =  -DHPUXDEBUG -DHPUX -DHPUX7 -DTCPSOCKET -DSIG_V \
  4842.     -DCK_REDIR -DCK_RTSCTS -DCK_CURSES -DNOGETUSERSHELL -DFNFLOAT \
  4843.     -DNO_DNS_SRV -DHDBUUCP -DLOCK_DIR=\\\"/usr/spool/uucp\\\" $(KFLAGS) \
  4844.     -Wc,-Nw260"
  4845.  
  4846.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4847.     "CFLAGS =  -DHPUXDEBUG -DHPUX -DHPUX7 -DTCPSOCKET -DSIG_V \
  4848.     -DCK_REDIR -DCK_RTSCTS -DCK_CURSES -DNOGETUSERSHELL -DFNFLOAT \
  4849.     -DNO_DNS_SRV -DHDBUUCP  -DLOCK_DIR=\\\"/usr/spool/uucp\\\" $(KFLAGS) \
  4850.     -Wc,-Nw260 $(OFLAGS)" "LNKFLAGS = -s" "LIBS= -lm -lBSD -lcurses"
  4851.  
  4852. #Exactly as above but with compiler optimization:
  4853. hpux0700osftcpc:
  4854.     @MESSAGE1="with compiler optimization" \
  4855.     $(MAKE) hpux0700sftcpc KTARGET=$${KTARGET:-$(@)} \
  4856.     "KFLAGS= $(KFLAGS)" "OFLAGS = -O"
  4857.  
  4858. #HP 9000 series 300/800 HP-UX 7.0, long filenames, network support, HDB uucp,
  4859. #but NO curses. See comments in hpux0700sftcpc about TCP/IP support.
  4860. hpux0700lfn:
  4861.     @$(MAKE) hpux-header
  4862.     @echo 'supporting: long filenames, networking, HDB uucp$(MESSAGE2)...'
  4863.     $(MAKE) hpux0700noopt KTARGET=$${KTARGET:-$(@)} \
  4864.     "CFLAGS =  -DHPUXDEBUG -DHPUX -DHPUX7 -DTCPSOCKET -DSIG_V -DFNFLOAT \
  4865.     -DNOGETUSERSHELL -DNOSETBUF -DCK_REDIR -DCK_RTSCTS -DLONGFN \
  4866.     -DNO_DNS_SRV -DDIRENT -DHDBUUCP -DLOCK_DIR=\\\"/usr/spool/uucp\\\" \
  4867.     $(KFLAGS) -Wc,-Nw260"
  4868.  
  4869.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4870.     "CFLAGS =  -DHPUXDEBUG -DHPUX -DHPUX7 -DTCPSOCKET -DSIG_V -DFNFLOAT \
  4871.     -DNOGETUSERSHELL -DNOSETBUF -DCK_REDIR -DCK_RTSCTS -DLONGFN \
  4872.     -DNO_DNS_SRV -DDIRENT -DHDBUUCP -DLOCK_DIR=\\\"/usr/spool/uucp\\\" \
  4873.     $(KFLAGS) -Wc,-Nw260 \
  4874.     $(OFLAGS)" "LNKFLAGS = -s" "LIBS = -lm -lBSD $(LIBS)"
  4875.  
  4876. #Exactly as above + curses.
  4877. hpux0700lfnc:
  4878.     @MESSAGE2=', curses' \
  4879.     $(MAKE) hpux0700lfn KTARGET=$${KTARGET:-$(@)} \
  4880.     "KFLAGS= -DCK_CURSES $(KFLAGS)" \
  4881.     "LIBS= -lcurses"
  4882.  
  4883. #Exactly as above hpux0700lfn but with compiler optimization:
  4884. hpux0700olfn:
  4885.     @MESSAGE1="with compiler optimization" \
  4886.     $(MAKE) hpux0700lfn KTARGET=$${KTARGET:-$(@)} \
  4887.     "KFLAGS= $(KFLAGS)" "OFLAGS = -O"
  4888.  
  4889. #Exactly as above hpux0700lfnc but with compiler optimization:
  4890. hpux0700olfnc:
  4891.     @MESSAGE1="with compiler optimization" \
  4892.     $(MAKE) hpux0700lfnc KTARGET=$${KTARGET:-$(@)} \
  4893.     "KFLAGS= $(KFLAGS)" "OFLAGS = -O"
  4894.  
  4895. #HP 9000 Series 300 or 400, HP-UX 8.0, long filenames and TCP/IP support.
  4896. #This one should also work on 700/800, but without PA-specific optimization.
  4897. #In case -DCK_RTSCTS and -DCK_REDIR make trouble, remove them.
  4898. #NOTE: ckcpro.c, ckuusr.c and ckuus3.c blow up the optimizer, so don't optimize
  4899. #them.
  4900. #For HP-UX 8.0 on Motorola CPUs, you might have to reinstall your kernel with
  4901. #maxdsiz >= 0x03000000.  But if physical memory is small, that still will not
  4902. #help much.
  4903. hpux0800:
  4904.     @$(MAKE) hpux-header
  4905.     @MESSAGE3=$${MESSAGE3:='TCP/IP'}; \
  4906.     echo "supporting: long filenames, $$MESSAGE3, HDB UUCP$(MESSAGE2)..."
  4907.     $(MAKE) -B "CC=$(CC)" "CC2=$(CC2)" KTARGET=$${KTARGET:-$(@)} \
  4908.     ckcpro.$(EXT) ckuusr.$(EXT) ckuus3.$(EXT) \
  4909.     "CFLAGS =  -DCK_REDIR -DHPUXDEBUG -DHPUX -DHPUX8 -DRENAME -DSIG_V \
  4910.     -DNOSETBUF -DDIRENT -DCK_RTSCTS -DSTERMIOX -DLONGFN -DTCPSOCKET \
  4911.     -DHDBUUCP  -DNO_DNS_SRV -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DFNFLOAT \
  4912.     $(KFLAGS)"
  4913.  
  4914.     $(MAKE) -B "CC=$(CC)" "CC2=$(CC2)" xermit KTARGET=$${KTARGET:-$(@)} \
  4915.     "CFLAGS =  -DCK_REDIR -DHPUXDEBUG -DHPUX -DHPUX8 -DRENAME -DSIG_V \
  4916.     -DNOSETBUF -DDIRENT -DCK_RTSCTS -DSTERMIOX -DLONGFN -DTCPSOCKET \
  4917.     -DHDBUUCP  -DNO_DNS_SRV -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DFNFLOAT \
  4918.     $(KFLAGS) $(OFLAGS)" "LNKFLAGS = -s" "LIBS = -lm -lBSD $(LIBS)"
  4919.  
  4920. #Exactly as above hpux0800 + curses.
  4921. hpux0800c:
  4922.     @MESSAGE2=', curses' \
  4923.     $(MAKE) hpux0800  KTARGET=$${KTARGET:-$(@)} \
  4924.     "KFLAGS = $(KFLAGS) -DCK_CURSES" "LIBS = -lcurses"
  4925.  
  4926. #HP 9000 HP-UX 8.0, no TCP/IP because /usr/lib/libBSD.a can't be found,
  4927. #or TCP/IP header files missing.
  4928. hpux0800notcp:
  4929.     @MESSAGE3='NO network, NO curses' \
  4930.     $(MAKE) "MAKE=$(MAKE)" hpux0800 KTARGET=$${KTARGET:-$(@)} \
  4931.     "KFLAGS = $(KFLAGS) -UTCPSOCKET"
  4932.  
  4933. #Now the same as above hpux0800 but with compiler optimization
  4934. hpux0800o:
  4935.     @MESSAGE1="with compiler optimization" \
  4936.     $(MAKE) hpux0800 KTARGET=$${KTARGET:-$(@)} \
  4937.     "KFLAGS = $(KFLAGS)" "OFLAGS = -O"
  4938.  
  4939. #Exactly as above hpux0800 + curses and with compiler optimization.
  4940. hpux0800oc:
  4941.     @MESSAGE1="with compiler optimization" \
  4942.     $(MAKE) hpux0800c KTARGET=$${KTARGET:-$(@)} \
  4943.     "KFLAGS = $(KFLAGS)" "OFLAGS = -O" "LIBS = -lcurses"
  4944.  
  4945. #Exactly as above hpux0800notcp but with compiler optimization
  4946. hpux0800onotcp:
  4947.     @MESSAGE1="with compiler optimization" \
  4948.     $(MAKE) "MAKE=$(MAKE)" hpux0800notcp KTARGET=$${KTARGET:-$(@)} \
  4949.     "KFLAGS = $(KFLAGS)" "OFLAGS = -O"
  4950.  
  4951. #HP 9000 Series 700 or 800, HP-UX 8.0, long filenames and TCP/IP support.
  4952. # Like the previous entries, but with PA-RISC-specific optimization.
  4953. hpux0800pa:
  4954.     @MESSAGE1="with PA-RISC-specific optimization" \
  4955.     $(MAKE) hpux0800 KTARGET=$${KTARGET:-$(@)} \
  4956.     "KFLAGS = $(KFLAGS) +Obb1100"
  4957.  
  4958. #As above, but with curses.
  4959. hpux0800pac:
  4960.     @MESSAGE1="with PA-RISC-specific optimization" \
  4961.     $(MAKE) hpux0800c KTARGET=$${KTARGET:-$(@)} \
  4962.     "KFLAGS = $(KFLAGS) +Obb1100"
  4963.  
  4964. #As above, but compiled with GCC 2.3.3.
  4965. hpux0800pagcc:
  4966.     @MESSAGE1='using the gcc compiler' \
  4967.     $(MAKE) hpux0800 KTARGET=$${KTARGET:-$(@)} \
  4968.     "CC=gcc" "CC2=gcc" "KFLAGS= -funsigned-char $(KFLAGS)"
  4969.  
  4970. #HP-UX 9.0, 9.01, 9.03, 9.04, 9.05, 9.07, 9.10 ..., + TCP/IP + curses, fully
  4971. #configured.  Use this entry with the restricted compiler: no optimization, no
  4972. #ANSI support.  If you get unresolved sockets library references at link time,
  4973. #then try adding -lBSD to LIBS, or else remove -DTCPSOCKET to build a version
  4974. #without TCP/IP support.
  4975. hpux0900:
  4976.     @MESSAGE1A='. Read hpux0900 entry comments if you have trouble.' \
  4977.     $(MAKE) hpux-header
  4978.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4979.     "CFLAGS = -DHPUXDEBUG -DHPUX9 -DSTERMIOX -DDIRENT -DUTIMEH \
  4980.     -DNOSETBUF -DCK_CURSES -DTCPSOCKET -DRENAME -DCK_REDIR -DLONGFN \
  4981.     -DHDBUUCP -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DFNFLOAT $(KFLAGS)" \
  4982.     "LNKFLAGS = -s" "LIBS = -lm -lcurses" "CC=$(CC)" "CC2=$(CC2)"
  4983.  
  4984. #Like hpux0900, but for the "value-added" compiler on all HP 9000 models.
  4985. #Adds optimization and ANSI compilation:
  4986. # +O2 makes smaller executable (= -O = Level-1 and global optimization)
  4987. # +O3 adds interprocedural global optimization, makes bigger executable.
  4988. # If optimization fails on some modules, you can add:
  4989. #  +Obb<n>, +Olimit <n>, or +Onolimit, depending on your cc version,
  4990. # where <n> is a number, e.g. +Obb1200.  In other words, if you get optimizer
  4991. # warnings, add (for example) +Obb1200; if you still get optimizer warnings,
  4992. # increase the number.  Repeat until warnings go away.  If your compiler
  4993. # permits it, use +Onolimit. If optimizer blows up on ckcpro.c, see next entry.
  4994. # Reportedly, on some configurations, such as HP9000/425e or /340, perhaps
  4995. # depending on the amount of main memory, this entry might fail no matter what
  4996. # you do ("Out of Memory", "cc: Fatal error in /lib/c.c1", etc).  In that case
  4997. # use "make hpux0900" (no "o").
  4998. hpux0900o:
  4999.     @MESSAGE1=$${MESSAGE1:-"with compiler optimization"} \
  5000.     $(MAKE) hpux0900 KTARGET=$${KTARGET:-$(@)} \
  5001.     "KFLAGS = $(KFLAGS) -Aa -DCK_ANSIC -D_HPUX_SOURCE +O2"
  5002.  
  5003. # For HP-UX 9.0 on Motorola CPUs, optimization of ckcpro.c tends to blow up
  5004. # the compiler.  You might have to reinstall your kernel with maxdsiz >=
  5005. # 0x03000000.  But if physical memory is small, that still will not help much.
  5006. # In that case, use this entry to skip optimization of ckcpro.c.  But for 
  5007. # C-Kermit 8.0.208 you need a kernel with maxdsiz >= 0x02000000 to compile an
  5008. # optimized ckcftp.c.
  5009. hpux0900m68ko:
  5010.     @MESSAGE1='without compiler optimization for ckcpro.$(EXT) ...' \
  5011.     $(MAKE) hpux-header
  5012.     $(MAKE) ckuusr.$(EXT) ckuus3.$(EXT) ckcpro.$(EXT) \
  5013.     "CFLAGS = -DHPUXDEBUG -DHPUX9 -DSTERMIOX -DDIRENT \
  5014.     -DNOSETBUF -DCK_CURSES -DTCPSOCKET -DRENAME  -DCK_REDIR -DLONGFN \
  5015.     -DHDBUUCP -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DFNFLOAT $(KFLAGS)"
  5016.     @echo
  5017.     @MESSAGE1="with compiler optimization for the rest" \
  5018.     $(MAKE) hpux0900 KTARGET=$${KTARGET:-$(@)} \
  5019.     "KFLAGS = $(KFLAGS) -Aa -DCK_ANSIC -D_HPUX_SOURCE +O2"
  5020.  
  5021. # Old name for hpux0900m68ko.
  5022. hpux0900mot:
  5023.     $(MAKE) hpux0900m68ko KTARGET=$${KTARGET:-$(@)} "KFLAGS = $(KFLAGS)"
  5024.  
  5025. #Like hpux0900o but with additional model-700/800-specific optimizations.
  5026. # +ESlit = consolidate strings in read-only memory.
  5027. # +ESfsc = inline millicode calls when comparing pointers.
  5028. hpux0900o700:
  5029.     @echo 'If you get optimizer warnings \c'
  5030.     @echo 'try "make hpux0900o700 KFLAGS=+Obb1200"'
  5031.     @MESSAGE1="with PA-RISC-specific optimizations" \
  5032.     $(MAKE) hpux0900o KTARGET=$${KTARGET:-$(@)} \
  5033.     "KFLAGS = $(KFLAGS) +ESlit +ESsfc"
  5034.  
  5035. #HP-UX 9.0, 9.01, 9.03, 9.04, 9.05, 9.07, 9.10 ..., + TCP/IP + curses, fully
  5036. #configured, built with gcc, all models except 800 series.
  5037. #You might need to add the include path for gcc headers, for example:
  5038. # 'KFLAGS=-I/usr/gnu/lib/gcc-lib/hppa1.1-hp-hpux/2.4.5/include/'
  5039. hpux0900gcc:
  5040.     @MESSAGE1='using the gcc compiler' \
  5041.     $(MAKE) hpux0900 KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  5042.     "KFLAGS = $(KFLAGS) -DCK_ANSIC -funsigned-char -O2"
  5043.  
  5044. #HP-9000 HP-UX 10.0 + TCP/IP + curses, fully configured.
  5045. #Use with restricted (bundled) compiler: no optimization, no ANSI support.
  5046. #libcurses needed for fullscreen file xfer display in HP-UX 10.00 and 10.01.
  5047. #libHcurses (NOT libcurses!) for fullscreen display, to work around fatal bugs
  5048. #in HP-UX 10.10 and 10.20 curses. Maybe we could use lcurses for 10.30, since
  5049. #the 10.10 curses problem is supposedly fixed in 10.30.
  5050. # +DA1.0 = Generate PA-RISC 1.0 code that runs on both 700 and 800 models.
  5051. # +DA1.1 = Generate PA-RISC 1.1 code that runs on both 700 and 800 models.
  5052. # Note that HP-UX 10.20 and upwards  not support PA-RISC 1.0 systems.
  5053. # And that as of Dec 2001, 11.00 and 11.11 are PA-only and 11.20 is IA64-only.
  5054. # Later 11.2x releases are expected to be for both.  Architecture can be
  5055. # determined with the model command, at least in 10.20 and later...
  5056. #For future releases, we need to include +DA1.1 for PA builds, so that a
  5057. #binary built on PA 2.0 will still work on PA 1.1 machines, whereas +DA1.1
  5058. #must NOT be included for IA64 builds.
  5059. #
  5060. hpux1000:
  5061.     @$(MAKE) hpux-header
  5062.     @LIBS='-lHcurses' ; \
  5063.     AFLAGS='+DA1.1' ; \
  5064.     case `uname -r` in \
  5065.        [AB].10.0*)  KFLAGS='-DHPUX1000 $(KFLAGS)' ; \
  5066.                     AFLAGS='+DA1.0' ; LIBS='-lcurses'  ;; \
  5067.        [AB].10.1*)  KFLAGS='-DHPUX1010 -D__HP_CURSES $(KFLAGS)' ; \
  5068.                     ;; \
  5069.        [AB].10.2*)  KFLAGS='-DHPUX1020 -D__HP_CURSES $(KFLAGS)' ; \
  5070.                     ;; \
  5071.        [AB].10.3*)  KFLAGS='-DHPUX1030 -D__HP_CURSES $(KFLAGS)' ; \
  5072.                     ;; \
  5073.        [AB].10.?*)  KFLAGS='-DHPUX10XX -D__HP_CURSES $(KFLAGS)' ; \
  5074.                     ;; \
  5075.        [AB].11.0*)  KFLAGS='-DHPUX1100 -D__HP_CURSES $(KFLAGS)' ; \
  5076.                     ;; \
  5077.        [AB].11.1*)  KFLAGS='-DHPUX1100 -D__HP_CURSES $(KFLAGS)' ; \
  5078.                     ;; \
  5079.        [AB].11.?*)  KFLAGS='-DHPUX1100 -D__HP_CURSES $(KFLAGS)' ; \
  5080.                     AFLAGS='' ; LIBS='-lcurses' ;; \
  5081.     esac ; \
  5082.     OFLAGS=$${OFLAGS:-$$AFLAGS} ; \
  5083.     $(MAKE) "SHELL=/usr/bin/sh" xermit KTARGET=$${KTARGET:-$(@)} \
  5084.     "CC=$(CC)" "CC2=$(CC2)" \
  5085.     "CFLAGS = -DHPUX10 -DDIRENT -DSTERMIOX -DCK_DSYSINI -DHDBUUCP \
  5086.     -DCK_CURSES -DCK_WREFRESH -DTCPSOCKET -DCK_REDIR -DRENAME -DFNFLOAT \
  5087.     $$KFLAGS $$OFLAGS" \
  5088.     "LNKFLAGS=-s $(LNKFLAGS)" "LIBS = -lm $$LIBS $(KLIBS)"
  5089.  
  5090. # This is a kludge, copying hpux0900gcc and adapting hpux1000 
  5091. # (add CC and CC2, drop the A1.[0||1])
  5092. # Builds w/ no compiler warnings but minimally tested.
  5093. #
  5094. hpux1000gcc:
  5095.     @MESSAGE1='using the gcc compiler' \
  5096.     $(MAKE) hpux1000 KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  5097.     "KFLAGS = $(KFLAGS)" OFLAGS=" -DCK_ANSIC -funsigned-char -O2"
  5098.  
  5099. # Trusted HP-UX 10
  5100. # echo KFLAGS=$(KFLAGS) YTARGET YTARGET=$(YTARGET) $(XTARGET) ;
  5101. hpux1000t:
  5102.     @case "$(KTARGET)" in \
  5103.        *o+) KENTRY=hpux1000o+ ;; \
  5104.        *o)  KENTRY=hpux1000o ;; \
  5105.        *)   KENTRY=hpux1000 ;; \
  5106.     esac ; \
  5107.     MESSAGE1="and support for 'Trusted HP-UX'" \
  5108.     $(MAKE) $$KENTRY KTARGET=$${KTARGET:-$(@)} \
  5109.     "KFLAGS= $(KFLAGS) -DHPUX10_TRUSTED" "KLIBS=-lsec"
  5110.  
  5111. hpux1000to:
  5112.     $(MAKE) hpux1000t KTARGET=$${KTARGET:-$(@)}
  5113.  
  5114. hpux1000to+:
  5115.     $(MAKE) hpux1000t KTARGET=$${KTARGET:-$(@)}
  5116.  
  5117. #HP-9000 HP-UX 10.00 and higher with ANSI prototyping and optimization.
  5118. #PA-RISC only, no Motorola or other hardware is support in HP-UX 10.00++.
  5119. #The unbundled optional compiler is required.
  5120. #Your path should start with /opt/ansic/bin.
  5121. # -Wl,-Fw = Remove stack unwind table (info used by debuggers).
  5122. # +O2 makes a smaller executable (= -O = Level-1 and global optimization).
  5123. # +O3 adds interprocedural global optimization, makes a bigger executable.
  5124. # +Onolimit allows all modules to be optimized, no matter how complex.  But:
  5125. #  (a) +Onolimit does not seem to always be there in HP-UX 10.00, and:
  5126. #  (b) some modules might take hours on low-memory and/or slow systems.
  5127. # The following are PA-RISC-specific optimizations:
  5128. # +ESlit = Consolidate strings in read-only memory.
  5129. # +ESfsc = Inline millicode calls when comparing pointers.
  5130. # You might need to configure your kernel for a maxdsiz of 0x0B000000 (176MB)
  5131. # or greater to prevent the optimizer from running out of space.
  5132. # December 2001: +ESlit +ESsfc removed because not supported on IA64.
  5133. # Somebody who cares can use 'model' to see whether it's PA-RISC or IA64
  5134. # and include the architecture-specific optimization flags.  Also note:
  5135. # +DA1.1 is PA-only.  If this is included in in HP-UX 11.00 or later,
  5136. # then +DS2.0 should be included too (but don't use +DS2.0 without +DA1.1,
  5137. # or else the binary won't run on older PA hardware).
  5138. hpux1000o:
  5139.     @case `uname -m` in \
  5140.       ia64) ;; \
  5141.       *) MFLAGS='+ESlit +ESsfc' ;; \
  5142.     esac ; \
  5143.     MESSAGE1="with PA-RISC-specific optimizations $(MESSAGE1)" \
  5144.     $(MAKE) "SHELL=/usr/bin/sh" "PATH=/opt/ansic/bin:$$PATH" hpux1000 \
  5145.     KTARGET=$${KTARGET:-$(@)} "KFLAGS = $(KFLAGS) \
  5146.     -Aa -D_HPUX_SOURCE -DCK_ANSIC -DUTIMEH \
  5147.     +O2 -Wl,-Fw $$MFLAGS"
  5148.  
  5149. #Like hpux1000o but with "+Onolimit".
  5150. #On 700 series set kernel parameter maxdsiz >= 0x0D000000 (=208MB).
  5151. #Takes a long time.
  5152. hpux1000o+:
  5153.     @MESSAGE1="and +Onolimit $(MESSAGE1)" KTARGET=$${KTARGET:-$(@)} \
  5154.     $(MAKE) hpux1000o \
  5155.     "KFLAGS = $(KFLAGS) +Onolimit"
  5156.  
  5157. #HP-UX 11.xx with optimizing ANSI compiler and OpenSSL.
  5158. #Define SSLIBS and SSLINC appropriately for your OpenSSL installation.
  5159. #Ditto for the Zlib location.
  5160. #The KRB5LIB and K5INC references are for Kerberos and probably are
  5161. #superfluous for an SSL-only build.
  5162. #This entry works for C-Kermit 8.0.206 on HP-UX 11.11 with OpenSSL 0.9.7
  5163. #but needs to be integrated with and tested on the other HP-UX 10/11 targets.
  5164. #
  5165. hpux1100o+openssl:
  5166.     MFLAGS='+ESlit +ESsfc' ; \
  5167.     KFLAGS="-DCK_AUTHENTICATION -DCK_SSL -I/opt/zlib/include \
  5168.     -DZLIB -DOPENSSL_097 $(SSLINC) $(KFLAGS) -DHPUX1100 -D__HP_CURSES \
  5169.     -Aa -D_HPUX_SOURCE -DCK_ANSIC -DUTIMEH +O2 -Wl,-Fw $$MFLAGS" ; \
  5170.     LIBS="$(SSLLIB) $(KRB5LIB) -lssl -lcrypto \
  5171.     -L/opt/zlib/lib -lz $(LIBS)" \
  5172.     $(MAKE) "SHELL=/usr/bin/sh" "PATH=/opt/ansic/bin:$$PATH" xermit \
  5173.     KTARGET=$${KTARGET:-$(@)} \
  5174.     "CFLAGS = -DHPUX10 -DDIRENT -DSTERMIOX -DCK_DSYSINI -DHDBUUCP \
  5175.     -DCK_CURSES -DCK_WREFRESH -DTCPSOCKET -DCK_REDIR -DRENAME -DFNFLOAT \
  5176.     $$KFLAGS $$OFLAGS" \
  5177.     "LNKFLAGS=-s $(LNKFLAGS)" "LIBS = -lm -lcurses $(KRB5LIB) $(SSLLIB) \
  5178.     -lcrypto -lssl $(KLIBS)" 
  5179.  
  5180. hpux1100:
  5181.     $(MAKE) hpux1000 KTARGET=$${KTARGET:-$(@)}
  5182.  
  5183. hpux1100o:
  5184.     $(MAKE) hpux1000o KTARGET=$${KTARGET:-$(@)}
  5185.  
  5186. hpux1100o+:
  5187.     $(MAKE) hpux1000o+ KTARGET=$${KTARGET:-$(@)}
  5188.  
  5189. hpux1100gcc:
  5190.     $(MAKE) hpux1000gcc KTARGET=$${KTARGET:-$(@)}
  5191.  
  5192. # Trusted HP-UX 11
  5193. hpux1100t:
  5194.     $(MAKE) hpux1000t KTARGET=$${KTARGET:-$(@)}
  5195.  
  5196. hpux1100to:
  5197.     $(MAKE) hpux1000to KTARGET=$${KTARGET:-$(@)}
  5198.  
  5199. hpux1100to+:
  5200.     $(MAKE) hpux1000to+ KTARGET=$${KTARGET:-$(@)}
  5201.  
  5202. #Regulus on CIE Systems 680/20
  5203. cie:
  5204.     @echo 'Making C-Kermit $(CKVER) for CIE Systems 680/20 Regulus...'
  5205.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  5206.     "CFLAGS = -DATTSV -DNOFILEH -DCIE -DNOLEARN $(KFLAGS) -O" "LNKFLAGS ="
  5207.  
  5208. # Linux 1.2 or later with gcc, dynamic libraries, ncurses, TCP/IP.
  5209. #
  5210. # If your Linux system has curses rather than ncurses, use the linuxc
  5211. # entry, or if that doesn't work, linuxnc.
  5212. #
  5213. # The Kermit "large memory model" is used by default to configure big packet
  5214. # and script buffers, etc.  For small-memory or limited-resource systems,
  5215. # "make linux KFLAGS=-DNOBIGBUF".
  5216. #
  5217. # -DLINUXFSSTND (Linux File System Standard 1.2) gives UUCP lockfile /var/lock
  5218. # with string pid.  Remove this to get /usr/spool/uucp with int pid, used in
  5219. # very early Linux versions.  FSSTND 1.2 also says that the PID string in the
  5220. # UUCP lock file has leading spaces.  This is a change from FSSTND 1.0, which
  5221. # used leading zeros.  Add -DFSSTND10 to support FSSTND 1.0 instead of 1.2.
  5222. # I hope subsequent editions of the file-system standard did not change these
  5223. # again.
  5224. #
  5225. # Add -DOLINUXHISPEED (Old Linux High Speed support) to turn on an ugly kludge
  5226. # in Linux 1.0 and earlier to support speeds of 57600 and 115200.  Extremely
  5227. # old Linux systems (pre-0.99pl15) will not support this.  If OLINUXHISPEED is
  5228. # not defined, then only the standard POSIX termios methods of setting the port
  5229. # speed will be used, and in this case speeds can be as high as 460800 in most
  5230. # modern Linux versions.
  5231. #
  5232. # -DCK_POSIX_SIG (POSIX signal handling) is good for Linux releases back to at
  5233. # least 0.99.14; if it causes trouble for you, remove it from the CFLAGS.
  5234. #
  5235. # -pipe removes the need for temp files - remove it if it causes trouble.
  5236. #
  5237. # -funsigned-char makes all characters unsigned, as they should have been
  5238. #  in the first place.
  5239. #
  5240. # Add -DCK_DSYSINI if you want a shared system-wide init file.
  5241. #
  5242. # See ckubwr.txt about -DNOCOTFMC.  In fact, you really should read the
  5243. # entire Linux section of ckubwr.txt.
  5244. #
  5245. # The "linuxa" entry can be referenced directly on LIBC systems, but not
  5246. # GLIBC, where -lcrypt is required.  The "make linux" entry should normally
  5247. # be used for all builds on all Linux distributions unless you have special
  5248. # requirements, in which case keep reading.  CK_NEWTERM added after 7.0B04
  5249. # due to new complaints about ncurses changing buffering of tty.
  5250.  
  5251. linuxa:
  5252.     @echo 'Making C-Kermit $(CKVER) for Linux 1.2 or later...'
  5253.     @echo 'IMPORTANT: Read the comments in the linux section of the'
  5254.     @echo 'makefile if you have trouble.'
  5255.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5256.     "CFLAGS = -O -DLINUX -pipe -funsigned-char -DFNFLOAT -DCK_POSIX_SIG \
  5257.     -DCK_NEWTERM -DTCPSOCKET -DLINUXFSSTND -DNOCOTFMC -DPOSIX \
  5258.     -DUSE_STRERROR $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" "LIBS = $(LIBS) -lm"
  5259.  
  5260. # As above but with profiling
  5261. linuxp:
  5262.     $(MAKE) linuxa KTARGET=$${KTARGET:-$(@)} "KFLAGS=$(KFLAGS) -pg" \
  5263.     "LIBS=-pg -lcrypt -lresolv"
  5264.  
  5265. #New primary Linux entry for C-Kermit 8.0, replacing big nested
  5266. #if-then-else construction full of repeated clauses with a simpler scheme
  5267. #for automatically detecting:
  5268. # . Old versus new pty handling (new == glibc 2.1++)
  5269. # . Presence or absence of librypt.a and <crypt.h>
  5270. # . Presence or absence of libresolv.a
  5271. #Unlike the previous scheme, this one is easily extended to include more tests.
  5272. #Note: The HAVE_PTMX test was previously "if test -c /dev/ptmx" but this was
  5273. #not sufficient for Debian 2.1, because although it had /dev/ptmx, it did not
  5274. #have grantpt(), unlockpt(), or ptsname(), so has been changed to look for a
  5275. #grantpt() prototype in the header files.  Warning: uses a temporary file in
  5276. #the current directory.  Modified in 8.0.206 to allow for libraries that
  5277. #contain .so's but no .a's, e.g. Mandrake 9.0.
  5278. linux:
  5279.     @if test \
  5280.     `grep grantpt /usr/include/*.h /usr/include/sys/*.h | wc -l` -gt 0; \
  5281.     then if test -c /dev/ptmx; then HAVE_PTMX='-DHAVE_PTMX'; \
  5282.     else HAVE_PTMX=''; fi; fi ; \
  5283.     $(MAKE) KTARGET=$${KTARGET:-$(@)} \
  5284.     "KFLAGS=-DCK_NCURSES -I/usr/include/ncurses $$HAVE_PTMX \
  5285.     `if test -f /usr/lib/libcrypt.a || test -f /usr/lib/libcrypt.so; \
  5286.     then echo -DHAVE_CRYPTH; fi` \
  5287.     $(KFLAGS)" \
  5288.     "LIBS=-lncurses \
  5289.     `if test -f /usr/lib/libresolv.a || test -f /usr/lib/libresolv.so; \
  5290.     then echo -lresolv; fi` \
  5291.     `if test -f /usr/lib/libcrypt.a || test -f /usr/lib/libcrypt.so; \
  5292.     then echo -lcrypt; fi`" \
  5293.     linuxa
  5294.  
  5295. # As above but for Linux systems that have no <sys/select.h>.
  5296. linuxns:
  5297.     $(MAKE) linux KTARGET=$${KTARGET:-$(@)} KFLAGS=-DNO_SYS_SELECT_H
  5298.  
  5299. # As above, but forces use of curses rather than ncurses.
  5300. # Add -ltermcap to LIBS if necessary.
  5301. # Also watch out for libcurses and/or libtermcap having been moved.
  5302. # In that case you might need something like:
  5303. #  "LIBS = -L/usr/lib/curses -lcurses -L/usr/lib/termcap -ltermcap"
  5304.  
  5305. linuxc:
  5306.     @if test \
  5307.     `grep grantpt /usr/include/*.h /usr/include/sys/*.h | wc -l` -gt 0; \
  5308.     then if test -c /dev/ptmx; then HAVE_PTMX='-DHAVE_PTMX'; \
  5309.     else HAVE_PTMX=''; fi; fi ; \
  5310.     $(MAKE) KTARGET=$${KTARGET:-$(@)} \
  5311.     "KFLAGS=-DCK_CURSES $$HAVE_PTMX \
  5312.     `if test -f /usr/lib/libcrypt.a; then echo -DHAVE_CRYPTH; fi` \
  5313.     $(KFLAGS)" \
  5314.     "LIBS=-lcurses \
  5315.     `if test -f /usr/lib/libresolv.a; then echo -lresolv; fi` \
  5316.     `if test -f /usr/lib/libcrypt.a; then echo -lcrypt; fi`" \
  5317.     linuxa
  5318.  
  5319. # As above but with with no curses support, for example because you installed
  5320. # the developer tools but did not install (n)curses.
  5321. linuxnc:
  5322.     @if test \
  5323.     `grep grantpt /usr/include/*.h /usr/include/sys/*.h | wc -l` -gt 0; \
  5324.     then if test -c /dev/ptmx; then HAVE_PTMX='-DHAVE_PTMX'; \
  5325.     else HAVE_PTMX=''; fi; fi ; \
  5326.     $(MAKE) KTARGET=$${KTARGET:-$(@)} \
  5327.     "KFLAGS= $$HAVE_PTMX \
  5328.     `if test -f /usr/lib/libcrypt.a; then echo -DHAVE_CRYPTH; fi` \
  5329.     $(KFLAGS)" "LIBS= \
  5330.     `if test -f /usr/lib/libresolv.a; then echo -lresolv; fi` \
  5331.     `if test -f /usr/lib/libcrypt.a; then echo -lcrypt; fi`" \
  5332.     linuxa
  5333.  
  5334. #Sharp Zaurus SL-5500 - Linux based
  5335. zsl5500:
  5336.     @echo 'Making C-Kermit $(CKVER) for Sharp Zaurus SL-5500...'
  5337.     @touch ckcpro.c
  5338.     @touch wart
  5339.     $(MAKE) linuxnc KTARGET=$${KTARGET:-$(@)} "KFLAGS=-DZSL5500" \
  5340.     "CC = gcc" "CC2 = gcc"
  5341.  
  5342. # A minimum-size version for Linux that does only scripting and
  5343. # serial communication -- no networks, no file transfer.
  5344. linuxso:
  5345.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5346.     "CFLAGS = -O -DLINUX -pipe -funsigned-char -DPOSIX -DCK_POSIX_SIG \
  5347.     -DLINUXFSSTND -DNOCOTFMC -DNOXFER -DNODEBUG -DNOCSETS -DNOHELP \
  5348.     -DNONET -DMINIDIAL -DNOSCRIPT -DNOIKSD -DNOPUSH $(KFLAGS)" \
  5349.     "LNKFLAGS = $(LNKFLAGS)" "LIBS = "
  5350.  
  5351. #Mklinux DR3 has horrible bug in <utmpbits.h> - see ckufio.c.
  5352. mklinux:
  5353.     $(MAKE) KTARGET=$${KTARGET:-$(@)} "KFLAGS=-DUTMPBUG" \
  5354.     "LIBS=-lcrypt -lresolv" linuxa
  5355.  
  5356. #LinuxPPC 1999
  5357. linuxppc:
  5358.     @echo 'Making C-Kermit $(CKVER) for LinuxPPC 1999...'
  5359.     @if test -f /usr/lib/libcrypt.a; then \
  5360.         if test -f /usr/lib/libresolv.a; then \
  5361.             $(MAKE) KTARGET=$${KTARGET:-$(@)} \
  5362.         "KFLAGS=$(NCURSES_CPP) -DHAVE_CRYPT_H \
  5363.         -DLOCK_DIR=\\\\\\"\"/var/lock/modem\\\\\\"\" $(KFLAGS)" \
  5364.             "LIBS=-lncurses -lresolv -lcrypt" linuxa ; \
  5365.         else \
  5366.             $(MAKE) KTARGET=$${KTARGET:-$(@)} \
  5367.         "KFLAGS=$(NCURSES_CPP) -DHAVE_CRYPT_H \
  5368.         -DLOCK_DIR=\\\\\\"\"/var/lock/modem\\\\\\"\" $(KFLAGS)" \
  5369.             "LIBS=-lncurses -lcrypt" linuxa ; \
  5370.         fi \
  5371.     else \
  5372.         if test -f /usr/lib/libresolv.a; then \
  5373.             $(MAKE) KTARGET=$${KTARGET:-$(@)} \
  5374.         "KFLAGS=$(NCURSES_CPP) \
  5375.         -DLOCK_DIR=\\\\\\"\"/var/lock/modem\\\\\\"\" $(KFLAGS)" \
  5376.             "LIBS=-lncurses -lresolv" linuxa ; \
  5377.         else \
  5378.             $(MAKE) KTARGET=$${KTARGET:-$(@)} \
  5379.         "KFLAGS=$(NCURSES_CPP) \
  5380.         -DLOCK_DIR=\\\\\\"\"/var/lock/modem\\\\\\"\" $(KFLAGS)" \
  5381.             "LIBS=-lncurses" linuxa ; \
  5382.         fi \
  5383.     fi
  5384.  
  5385.  
  5386. # The remaining Linux entries are for special or customized builds.  They
  5387. # have not been generalized like the ones above.  Ideally, we should allow
  5388. # for every combination of libc vs glibc, gcc vs egcs, curses vs ncurses,
  5389. # Kerberos IV vs Kerberos V vs SRP (in any combination), and so on --
  5390. # volunteers welcome.
  5391.  
  5392. # If you get "Internal compiler error xxx, output pipe has been closed",
  5393. # try removing -pipe.
  5394.  
  5395. # Like "make linux" but built with egcs rather than gcc.
  5396. linuxegcs:
  5397.     @echo 'Making C-Kermit $(CKVER) for Linux 1.2 or later with egcs...'
  5398.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = egcs" "CC2 = egcs" \
  5399.     "CFLAGS = -O -DLINUX -pipe -funsigned-char \
  5400.     -DPOSIX -DCK_POSIX_SIG -DCK_NCURSES -DNOCOTFMC \
  5401.     -DTCPSOCKET -DLINUXFSSTND $(KFLAGS)" \
  5402.     "LNKFLAGS = $(LNKFLAGS)" "LIBS = -lncurses -lcrypt -lresolv"
  5403.  
  5404. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.1 (no K4 compatibility).
  5405. linux+krb5:
  5406.     @echo 'Making C-Kermit $(CKVER) for Linux on Intel with Kerberos...'
  5407.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5408.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5409.     -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 \
  5410.     -DCK_ENCRYPTION -DCK_DES -DCK_CURSES -DCK_POSIX_SIG \
  5411.     -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H $(K5INC) $(K5INC)/krb5 \
  5412.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5413.     "LIBS = $(K5LIB) -lncurses -ltermcap -ldes425 -lkrb5 \
  5414.     -lcom_err -lk5crypto -lgssapi_krb5 -lcrypt -lresolv"
  5415.  
  5416. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.1 with K4 compatibility.
  5417. #
  5418. # Requires the Kerberos 1.2.1 be compiled with KRB4 compatibility.
  5419. linux+krb5+krb4:
  5420.     @echo 'Making C-Kermit $(CKVER) for Linux on Intel with Kerberos...'
  5421.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5422.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5423.     -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 -DKRB4 -DKRB524 \
  5424.     -DCK_ENCRYPTION -DCK_DES -DCK_CURSES -DCK_POSIX_SIG \
  5425.     -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H $(K5INC) $(K5INC)/krb5 \
  5426.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5427.     "LIBS = $(K5LIB) -lncurses -ltermcap -lkrb4 -ldes425 -lkrb5 \
  5428.     -lcom_err -lk5crypto -lcrypt -lgssapi_krb5 -lresolv"
  5429.  
  5430. # Linux on Intel PC with SRP 1.7.4 using GNU MP, Krypto, and Eric Young's
  5431. # DES library.  Remove the -DCK_DES, -DLIBDES and -ldes if you do not have
  5432. # Eric Young's# libdes.a installed.
  5433. #
  5434. linux+srp+gmp:
  5435.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SRP...'
  5436.     $(MAKE) srpmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5437.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5438.     -DCK_AUTHENTICATION -DCK_SRP \
  5439.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES \
  5440.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5441.     $(SRPINC) $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5442.     "LIBS = $(SRPLIB) \
  5443.     -lncurses -ltermcap -lsrp -lgmp -ldes -lkrypto -lcrypt -lresolv"
  5444.  
  5445. linux+srp+gmp+no-des:
  5446.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SRP ...'
  5447.     $(MAKE) srpmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5448.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5449.     -DCK_AUTHENTICATION -DCK_SRP \
  5450.     -DCK_ENCRYPTION -DCK_CAST \
  5451.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5452.     $(SRPINC) $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5453.     "LIBS = $(SRPLIB) \
  5454.     -lncurses -ltermcap -lsrp -lgmp -lkrypto -lcrypt -lresolv"
  5455.  
  5456. linux+srp+gmp-export:
  5457.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SRP...'
  5458.     $(MAKE) srpmit-export KTARGET=$${KTARGET:-$(@)} \
  5459.     "CC = gcc" "CC2 = gcc" \
  5460.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5461.     -DCK_AUTHENTICATION -DCK_SRP -DFNFLOAT \
  5462.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5463.     $(SRPINC) $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5464.     "LIBS = $(SRPLIB) \
  5465.     -lncurses -ltermcap -lsrp -lgmp -lkrypto -lcrypt -lm -lresolv"
  5466.  
  5467. linux+srp+gmp+pam:
  5468.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SRP...'
  5469.     $(MAKE) srpmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5470.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5471.     -DCK_AUTHENTICATION -DCK_SRP \
  5472.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES \
  5473.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5474.     -DCK_PAM -DFNFLOAT $(SRPINC) $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5475.     "LIBS = $(SRPLIB) -lncurses -ltermcap -lsrp -lgmp -ldes -lkrypto \
  5476.     -lcrypt -lpam -ldl -lm -lresolv"
  5477.  
  5478. #Linux on Intel PC with SRP 1.7.4 built with OpenSSL for Big Number Math
  5479. #and Cryptographic functionality.
  5480. #
  5481. linux+srp:
  5482.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SRP...'
  5483.     $(MAKE) srpmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5484.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5485.     -DCK_AUTHENTICATION -DCK_SRP \
  5486.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES \
  5487.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5488.     $(SRPINC) $(SSLINC) $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5489.     "LIBS = $(SRPLIB) $(SSLLIB) \
  5490.     -lncurses -ltermcap -lsrp -lkrypto -lcrypto -lcrypt -lresolv"
  5491.  
  5492. linux+srp+pam:
  5493.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SRP...'
  5494.     $(MAKE) srpmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5495.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5496.     -DCK_AUTHENTICATION -DCK_SRP \
  5497.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES \
  5498.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5499.     -DCK_PAM -DFNFLOAT $(SRPINC) $(SSLINC) $(KFLAGS)" \
  5500.     "LNKFLAGS = $(LNKFLAGS)" \
  5501.     "LIBS = $(SRPLIB) $(SSLLIB) -lncurses -ltermcap -lsrp -lkrypto \
  5502.     -lcrypto -lcrypt -lpam -ldl -lm -lresolv"
  5503.  
  5504. linux+shadow+pam:
  5505.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with Shadow+PAM...'
  5506.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5507.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5508.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5509.     -DCK_SHADOW -DCK_PAM -DFNFLOAT \
  5510.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5511.     "LIBS = -lncurses -ltermcap -lcrypt -lpam -ldl -lm -lresolv"
  5512.  
  5513. #Linux configured for SSL/TLS.
  5514. #Remove -ltermcap if it causes trouble e.g. in Debian 2.2.
  5515. linux+openssl:
  5516.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SSL/TLS...'
  5517.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5518.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5519.     -DCK_AUTHENTICATION -DCK_SSL \
  5520.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5521.     -DFNFLOAT $(SSLINC) $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5522.     "LIBS= $(SSLLIB) \
  5523.     -lncurses -ltermcap -lssl -lcrypto -lm -lresolv -lcrypt"
  5524.  
  5525. #Linux configured for SSL/TLS and Shadow Passwords
  5526. #Remove -ltermcap if it causes trouble e.g. in Debian 2.2.
  5527. linux+openssl+shadow:
  5528.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SSL/TLS...'
  5529.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5530.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5531.     -DCK_AUTHENTICATION -DCK_SSL \
  5532.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5533.     -DFNFLOAT -DCK_SHADOW $(SSLINC) $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5534.     "LIBS= $(SSLLIB) \
  5535.     -lncurses -ltermcap -lssl -lcrypto -lm -lresolv -lcrypt"
  5536.  
  5537. #Linux configured for SSL/TLS, ZLIB, PAM and Shadow Passwords
  5538. #Remove -ltermcap if it causes trouble e.g. in Debian 2.2.
  5539. linux+openssl+zlib+shadow+pam:
  5540.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SSL/TLS...'
  5541.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5542.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5543.     -DCK_AUTHENTICATION -DCK_SSL -DCK_PAM -DZLIB \
  5544.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5545.     -DFNFLOAT -DCK_SHADOW $(SSLINC) $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5546.     "LIBS= $(SSLLIB) \
  5547.     -lncurses -ltermcap -lssl -lcrypto -lm -lresolv -lcrypt -lz -lpam -ldl"
  5548.  
  5549. #Linux on Intel PC with SRP and SSL/TLS.
  5550. #
  5551. # libsrp.a should be build with OpenSSL
  5552. # Requires the Kerberos 1.2.2 or higher to be compiled with KRB4 compatibility.
  5553. #Remove -ltermcap if it causes trouble e.g. in Debian 2.2.
  5554. linux+srp+openssl:
  5555.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SRP,SSL...'
  5556.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5557.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5558.     -DCK_AUTHENTICATION -DCK_SRP \
  5559.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL \
  5560.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5561.     $(SRPINC) $(SSLINC) $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5562.     "LIBS = $(SRPLIB) $(SSLLIB) \
  5563.     -lncurses -ltermcap -lsrp -lssl -lkrypto -lcrypto \
  5564.     -lcrypt -lresolv"
  5565.  
  5566. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.2 and SRP.
  5567. #
  5568. # libsrp.a should be build with GNU MP (libgmp.a)
  5569. # instead of AT&T CryptoLib (libcrypt.a) due to naming conflicts with
  5570. # standard distribution Linux libraries.
  5571. # Requires the Kerberos 1.2.2 or higher to be compiled with KRB4 compatibility.
  5572. linux+krb5+krb4+srp:
  5573.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB54+SRP...'
  5574.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5575.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5576.     -DCK_AUTHENTICATION -DCK_SRP -DCK_KERBEROS  -DKRB5 -DKRB4 -DKRB524 \
  5577.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES \
  5578.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5579.     $(K5INC) $(K5INC)/krb5 $(SRPINC) \
  5580.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5581.     "LIBS = $(K5LIB) $(SRPLIB) \
  5582.     -lncurses -ltermcap -lsrp -lgmp -lgssapi_krb5 -lkrypto \
  5583.     -ldes -lkrb4 -ldes425 -lkrb5 -lcom_err -lk5crypto -lcrypt -lresolv"
  5584.  
  5585. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.2, SRP and SSL/TLS.
  5586. #
  5587. # libsrp.a should be build with OpenSSL
  5588. # Requires the Kerberos 1.2.2 or higher to be compiled with KRB4 compatibility.
  5589. # Requires OpenSSL 0.9.6a or higher
  5590. linux+krb5+krb4+srp+openssl:
  5591.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SRP,SSL...'
  5592.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5593.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5594.     -DCK_AUTHENTICATION -DCK_SRP -DCK_KERBEROS  -DKRB5 -DKRB4 -DKRB524 \
  5595.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL \
  5596.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5597.     $(K5INC) $(K5INC)/krb5 $(SRPINC) $(SSLINC) \
  5598.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5599.     "LIBS = $(K5LIB) $(SRPLIB) $(SSLLIB) \
  5600.     -lncurses -ltermcap -lsrp \
  5601.     -lkrb4 -lssl -lkrypto -lcrypto \
  5602.     -lkrb5 -lcom_err -lk5crypto -lgssapi_krb5 -lcrypt -lresolv"
  5603.  
  5604. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.2, SSL/TLS.
  5605. #
  5606. # libsrp.a should be build with OpenSSL
  5607. # Requires the Kerberos 1.2.2 be compiled with KRB4 compatibility.
  5608. linux+krb5+krb4+openssl:
  5609.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SSL...'
  5610.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5611.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5612.     -DCK_AUTHENTICATION -DCK_KERBEROS  -DKRB5 -DKRB4 -DKRB524 \
  5613.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL \
  5614.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5615.     $(K5INC) $(K5INC)/krb5 $(SSLINC) \
  5616.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5617.     "LIBS = $(K5LIB) $(SSLLIB) \
  5618.     -lncurses -ltermcap \
  5619.     -lkrb4 -lssl -lcrypto -lkrb5 -lcom_err \
  5620.     -lk5crypto -lgssapi_krb5 -lcrypt -lresolv"
  5621.  
  5622. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.1, SSL/TLS.
  5623. #
  5624. # libsrp.a should be build with OpenSSL
  5625. # Requires the Kerberos 1.2.2 be compiled with KRB4 compatibility.
  5626. linux+krb5+krb4+openssl+shadow:
  5627.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SSL...'
  5628.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5629.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5630.     -DCK_AUTHENTICATION -DCK_KERBEROS  -DKRB5 -DKRB4 -DKRB524 \
  5631.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL -DCK_SHADOW \
  5632.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5633.     $(K5INC) $(K5INC)/krb5 $(SSLINC) \
  5634.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5635.     "LIBS = $(K5LIB) $(SSLLIB)  \
  5636.     -lncurses -ltermcap \
  5637.     -lkrb4 -lssl -lcrypto -lkrb5 -lcom_err \
  5638.     -lk5crypto -lgssapi_krb5 -lcrypt -lresolv"
  5639.  
  5640. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2, SSL/TLS.
  5641. #
  5642. # libsrp.a should be build with OpenSSL
  5643. # Requires the Kerberos 1.2.2 be compiled with KRB4 compatibility.
  5644. linux+krb5+krb4+openssl+zlib+shadow:
  5645.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SSL...'
  5646.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5647.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5648.     -DCK_AUTHENTICATION -DCK_KERBEROS  -DKRB5 -DKRB4 -DKRB524 -DZLIB \
  5649.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL -DCK_SHADOW \
  5650.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5651.     $(K5INC) $(K5INC)/krb5 $(SSLINC) \
  5652.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5653.     "LIBS = $(K5LIB) $(SSLLIB) \
  5654.     -lncurses -ltermcap \
  5655.     -lkrb4 -lssl -lcrypto -lkrb5 -lcom_err \
  5656.     -lk5crypto -lgssapi_krb5 -lcrypt -lresolv -lz"
  5657.  
  5658. linux+krb5+krb4+srp-export:
  5659.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SRP...'
  5660.     $(MAKE) xermit-export KTARGET=$${KTARGET:-$(@)} \
  5661.     "CC = gcc" "CC2 = gcc" \
  5662.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5663.     -DCK_AUTHENTICATION -DCK_SRP -DCK_KERBEROS  -DKRB5 -DKRB4 -DKRB524 \
  5664.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5665.     $(K5INC) $(K5INC)/krb5 $(SRPINC) \
  5666.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5667.     "LIBS = $(SRPLIB) $(K5LIB) \
  5668.     -lncurses -ltermcap -lsrp -lgmp -lkrb4 -ldes425 -lkrb5 -lgssapi_krb5 \
  5669.     -lcom_err -lk5crypto -lkrypto -lcrypt -lresolv"
  5670.  
  5671. linux+krb5+krb4+srp+pam:
  5672.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SRP...'
  5673.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5674.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5675.     -DCK_AUTHENTICATION -DCK_SRP -DCK_KERBEROS  -DKRB5 -DKRB4 -DKRB524 \
  5676.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES \
  5677.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5678.     -DCK_PAM $(K5INC) $(K5INC)/krb5 $(SRPINC) \
  5679.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5680.     "LIBS = $(SRPLIB) $(K5LIB) \
  5681.     -lncurses -ltermcap -lsrp -lgmp -ldes -lkrb4 -ldes425 -lkrb5 \
  5682.     -lcom_err -lk5crypto -lgssapi_krb5 -lkrypto -lcrypt -lpam -ldl \
  5683.     -lresolv"
  5684.  
  5685. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.2, SRP and SSL/TLS.
  5686. # and PAM.
  5687. #
  5688. # libsrp.a should be build with OpenSSL
  5689. # Requires the Kerberos 1.2.2 be compiled with KRB4 compatibility.
  5690. linux+krb5+krb4+srp+openssl+pam-debug:
  5691.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SRP,SSL...'
  5692.     $(MAKE) xermit-debug KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5693.     "CFLAGS = -g -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5694.     -DCK_AUTHENTICATION -DCK_SRP -DCK_KERBEROS  -DKRB5 -DKRB4 -DKRB524 \
  5695.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL -DCK_PAM \
  5696.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5697.     -w -Dmalloc=dmalloc -Dfree=dfree -DMDEBUG $(K5INC) $(K5INC)/krb5 \
  5698.     $(SRPINC) $(SSLINC) $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5699.     "LIBS = $(SRPLIB) $(K5LIB) $(SSLLIB) \
  5700.     -lncurses -ltermcap -lsrp -lkrb4 -lssl -lkrypto -lcrypto \
  5701.     -lkrb5 -lcom_err -lk5crypto -lgssapi_krb5 -lcrypt -lresolv -lpam -ldl"
  5702.  
  5703. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.1, SRP and SSL/TLS.
  5704. # and PAM.
  5705. #
  5706. # libsrp.a should be build with OpenSSL
  5707. # Requires the Kerberos 1.2.2 be compiled with KRB4 compatibility.
  5708. linux+krb5+krb4+srp+openssl+pam:
  5709.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SRP,SSL...'
  5710.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5711.     "CFLAGS = -g -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5712.     -DCK_AUTHENTICATION -DCK_SRP -DCK_KERBEROS  -DKRB5 -DKRB4 -DKRB524 \
  5713.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL -DCK_PAM \
  5714.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5715.     $(K5INC) $(K5INC)/krb5 $(SRPINC) $(SSLINC) \
  5716.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5717.     "LIBS = $(SRPLIB) $(K5LIB) $(SSLLIB)  \
  5718.     -lm -lncurses -ltermcap -lsrp \
  5719.     -lkrb4 -lssl -lkrypto  -lcrypto -lgssapi_krb5 \
  5720.     -lkrb5 -lcom_err -lk5crypto -lcrypt -lresolv -lpam -ldl"
  5721.  
  5722. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.2, SRP, OpenSSL
  5723. # with ZLIB and PAM
  5724. #
  5725. # libsrp.a should be build with OpenSSL
  5726. # Requires the Kerberos 1.2.2 be compiled with KRB4 compatibility.
  5727. linux+krb5+krb4+srp+openssl+zlib+pam:
  5728.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SRP,SSL...'
  5729.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5730.     "CFLAGS = -g -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5731.     -DCK_AUTHENTICATION -DCK_SRP -DCK_KERBEROS  -DKRB5 -DKRB4 -DKRB524 \
  5732.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL -DCK_PAM -DZLIB \
  5733.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5734.     $(K5INC) $(K5INC)/krb5 $(SRPINC) $(SSLINC) \
  5735.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5736.     "LIBS = $(SRPLIB) $(K5LIB) $(SSLLIB) \
  5737.     -lm -lncurses -ltermcap -lsrp \
  5738.     -lkrb4 -lssl -lkrypto  -lcrypto -lgssapi_krb5 \
  5739.     -lkrb5 -lcom_err -lk5crypto -lcrypt -lresolv -lpam -ldl -lz"
  5740.  
  5741. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.2, SRP, OpenSSL
  5742. # with ZLIB, Shadow Passwords, and PAM
  5743. #
  5744. # libsrp.a should be build with OpenSSL
  5745. # Requires the Kerberos 1.2.2 be compiled with KRB4 compatibility.
  5746. linux+krb5+krb4+srp+openssl+zlib+shadow+pam:
  5747.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SRP,SSL...'
  5748.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5749.     "CFLAGS = -g -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5750.     -DCK_AUTHENTICATION -DCK_SRP -DCK_KERBEROS  -DKRB5 -DKRB4 -DKRB524 \
  5751.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL -DCK_PAM -DZLIB \
  5752.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5753.     -DCK_SHADOW $(K5INC) $(K5INC)/krb5 $(SRPINC) $(SSLINC) \
  5754.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5755.     "LIBS = $(SRPLIB) $(K5LIB) $(SSLLIB) \
  5756.     -lm -lncurses -ltermcap -lsrp -lkrypto \
  5757.     -lkrb4 -lssl -lcrypto -lgssapi_krb5 \
  5758.     -lkrb5 -lcom_err -lk5crypto -lcrypt -lresolv -lpam -ldl -lz"
  5759.  
  5760. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.2, OpenSSL
  5761. # with ZLIB, Shadow Passwords, PAM
  5762. #
  5763. # libsrp.a should be build with OpenSSL
  5764. # Requires the Kerberos 1.2.2 be compiled with KRB4 compatibility.
  5765. linux+krb5+krb4+openssl+zlib+shadow+pam:
  5766.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SRP,SSL...'
  5767.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5768.     "CFLAGS = -g -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5769.     -DCK_AUTHENTICATION -DCK_KERBEROS  -DKRB5 -DKRB4 -DKRB524 \
  5770.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL -DCK_PAM -DZLIB \
  5771.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5772.     -DCK_SHADOW $(K5INC) $(K5INC)/krb5 $(SSLINC) \
  5773.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5774.     "LIBS = $(K5LIB) $(SSLLIB) \
  5775.     -lm -lncurses -ltermcap \
  5776.     -lkrb4 -lssl -lcrypto -lgssapi_krb5 \
  5777.     -lkrb5 -lcom_err -lk5crypto -lcrypt -lresolv -lpam -ldl -lz"
  5778.  
  5779. #Red Hat Linux 8.0 - full install includes Kerberos 5 (4 compat), PAM, SSL.
  5780. #Also works around bug in curses in which terminal goes dead after
  5781. #returning from file-transfer display.
  5782. redhat80:
  5783.     @echo "Building SECURE Kermit for Red Hat 8.0..."
  5784.     $(MAKE) linux+krb5+krb4+openssl+zlib+shadow+pam \
  5785.     KTARGET=$${KTARGET:-$(@)} "KFLAGS = -DRH80 $(KFLAGS)"
  5786.  
  5787. redhat80+srp:
  5788.     @echo "Building SECURE Kermit for Red Hat 8.0..."
  5789.     $(MAKE) linux+krb5+krb4+srp+openssl+zlib+shadow+pam \
  5790.     KTARGET=$${KTARGET:-$(@)} "KFLAGS = -DRH80 $(KFLAGS)"
  5791.  
  5792. #Red Hat Linux 7.3 - full install includes Kerberos 5 (4 compat), PAM, SSL.
  5793. #Also works around bug in curses in which terminal goes dead after
  5794. #returning from file-transfer display.
  5795. redhat73:
  5796.     @echo "Building SECURE Kermit for Red Hat 7.3..."
  5797.     $(MAKE) linux+krb5+krb4+openssl+zlib+shadow+pam \
  5798.     KTARGET=$${KTARGET:-$(@)} "KFLAGS = -DRH73 $(KFLAGS)"
  5799.  
  5800. redhat73+srp:
  5801.     @echo "Building SECURE Kermit for Red Hat 7.3..."
  5802.     $(MAKE) linux+krb5+krb4+srp+openssl+zlib+shadow+pam \
  5803.     KTARGET=$${KTARGET:-$(@)} "KFLAGS = -DRH73 $(KFLAGS)"
  5804.  
  5805. #Red Hat Linux 7.2 - full install includes Kerberos 5 (4 compat), PAM, SSL.
  5806. #Also works around bug in curses in which terminal goes dead after
  5807. #returning from file-transfer display.
  5808. redhat72:
  5809.     @echo "Building SECURE Kermit for Red Hat 7.2..."
  5810.     $(MAKE) linux+krb5+krb4+openssl+zlib+shadow+pam \
  5811.     KTARGET=$${KTARGET:-$(@)} "KFLAGS = -DRH72 $(KFLAGS)"
  5812.  
  5813. redhat72+srp:
  5814.     @echo "Building SECURE Kermit for Red Hat 7.2..."
  5815.     $(MAKE) linux+krb5+krb4+srp+openssl+zlib+shadow+pam \
  5816.     KTARGET=$${KTARGET:-$(@)} "KFLAGS = -DRH72 $(KFLAGS)"
  5817.  
  5818. #Red Hat Linux 7.1 - full install includes Kerberos 5 (4 compat), PAM, SSL.
  5819. #Also works around bug in curses in which terminal goes dead after
  5820. #returning from file-transfer display.
  5821. redhat71:
  5822.     @echo "Building SECURE Kermit for Red Hat 7.1..."
  5823.     $(MAKE) linux+krb5+krb4+openssl+zlib+shadow+pam \
  5824.     KTARGET=$${KTARGET:-$(@)} "KFLAGS = -DRH71 $(KFLAGS)"
  5825.  
  5826. redhat71+srp:
  5827.     @echo "Building SECURE Kermit for Red Hat 7.1..."
  5828.     $(MAKE) linux+krb5+krb4+srp+openssl+zlib+shadow+pam \
  5829.     KTARGET=$${KTARGET:-$(@)} "KFLAGS = -DRH71 $(KFLAGS)"
  5830.  
  5831. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.2, OpenSSL
  5832. # with ZLIB and PAM and Shadow passwords
  5833. linux+krb5+openssl+zlib+shadow+pam:
  5834.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB5,SSL...'
  5835.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5836.     "CFLAGS = -g -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5837.     -DCK_AUTHENTICATION -DCK_KERBEROS  -DKRB5 -DCK_SHADOW \
  5838.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL -DCK_PAM -DZLIB \
  5839.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5840.     $(K5INC) $(K5INC)/krb5 $(SSLINC) \
  5841.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5842.     "LIBS = $(K5LIB) $(SSLLIB) \
  5843.     -lm -lncurses -ltermcap -lssl -lcrypto -lgssapi_krb5 \
  5844.     -lkrb5 -lcom_err -lk5crypto -lcrypt -lresolv -lpam -ldl -lz"
  5845.  
  5846. linuxnotcp:
  5847.     $(MAKE) linux KTARGET=$${KTARGET:-$(@)} "KFLAGS = -DNONET $(KFLAGS)"
  5848.  
  5849. # "make linuxnotcp" with lcc (see http://www.cs.princeton.edu/software/lcc)
  5850. # lcc does not understand various gcc extensions:
  5851. #  "__inline__" -- can be eliminated by adding "-D__inline__="
  5852. #  "__asm__ and "long long" -- in header files, should be surrounded by
  5853. #                              "#ifndef(__STRICT_ANSI__)"/"#endif"
  5854. #  however, TCP requires some __asm__ functions, so cannot be compiled
  5855. linuxnotcp-lcc:
  5856.     @echo 'Making C-Kermit $(CKVER) for Linux with lcc ...'
  5857.     @echo 'Read comments in makefile for additional information.'
  5858.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC = lcc" "CC2 = lcc" \
  5859.     "CFLAGS = -DLINUX -DPOSIX -DCK_CURSES -DCK_POSIX_SIG \
  5860.     -UTCPSOCKET -DLINUXFSSTND -DNOLEARN $(KFLAGS)" \
  5861.     "LNKFLAGS = $(LNKFLAGS)" "LIBS = -lcurses -ltermcap"
  5862.  
  5863. # Linux 0.99.14 thru 1.0 with gcc, dynamic libraries, curses, TCP/IP.
  5864. # For Linux 1.2 or later, use "make linux" (above).
  5865. #
  5866. # -DLINUXFSSTND (Linux File System Standard) gives UUCP lockfile /var/lock with
  5867. # string pid.  Remove this and get /usr/spool/uucp with int pid, which was used
  5868. # in early Linux versions.
  5869. #
  5870. # If you get compiler errors regarding <linux/serial.h>, add -DNOHISPEED.
  5871. #
  5872. # -DCK_POSIX_SIG (POSIX signal handling) is good for Linux releases back to at
  5873. # least 0.99.14; if it causes trouble for you, just remove it.
  5874. #
  5875. # -DCK_CURSES: Here we link with the regular curses library.  But you should
  5876. # be using ncurses.  Internally, the ckuusx.c module includes <curses.h>, but
  5877. # this really should be <ncurses.h>.  Thus if you have the new curses
  5878. # material, you should either install it with the standard names, or else
  5879. # create symbolic links from the standard names to the new ones.  If you get
  5880. # compile-time errors complaining about data definitions in termcap.h, it
  5881. # means you have new kernel material mixed with older libc header files.  To
  5882. # fix, add "#include <termios.h>" to the <termcap.h> file.  Or if all this is
  5883. # too confusing, create a new makefile entry based on this one, but with
  5884. # -DCK_CURSES removed from CFLAGS and the entire LIBS= clause removed.
  5885. #
  5886. # But wait, there's more.  On most Linux systems, -ltermcap must be included
  5887. # in LIBS.  But on others, the linker complains that libtermcap can't be
  5888. # found.  In that case, try removing -ltermcap from LIBS=.
  5889. #
  5890. # But wait, there's more.  The format of the PID string in the UUCP lockfile
  5891. # changed between Linux FSSTND 1.0 and 1.2.  In the earlier standard, it had
  5892. # leading zeros; in the second, it has leading spaces.  By default this entry
  5893. # uses the newer standard.  To force the older one, add -DFSSTND10.
  5894. #
  5895. # "The nice thing about the Linux standard is there are so many to choose from"
  5896. #
  5897. # NOTE: Remove -DBIGBUFOK for small-memory or limited-resource systems.
  5898. linux10:
  5899.     @echo 'Making C-Kermit $(CKVER) for Linux 1.0 or earlier...'
  5900.     @echo 'IMPORTANT: Read the comments in the linux section of the'
  5901.     @echo 'makefile if you get compilation or link errors.'
  5902.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5903.     "CFLAGS = -O -DPOSIX -DCK_CURSES -DCK_POSIX_SIG -DLINUX \
  5904.     -DTCPSOCKET -DLINUXFSSTND -DOLINUXHISPEED -DNOLEARN $(KFLAGS)" \
  5905.     "LNKFLAGS = $(LNKFLAGS)" "LIBS = -lcurses -ltermcap"
  5906.  
  5907. #This version was used for Linux prior to C-Kermit 6.0.192.
  5908. #Now the "Linux File System Standard" is considered standard, ditto TCP/IP.
  5909. linuxold:
  5910.     @echo 'Making C-Kermit $(CKVER) for Linux...'
  5911.     @echo 'For FSSTND-recommended UUCP lockfiles, use:'
  5912.     @echo '  make linux "KFLAGS=-DLINUXFSSTND".'
  5913.     @echo 'Read comments in makefile for additional options.'
  5914.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5915.     "CFLAGS = -O -DLINUX -DPOSIX -DCK_CURSES -DCK_POSIX_SIG -DNOLEARN \
  5916.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" "LIBS = -lcurses -ltermcap"
  5917.  
  5918. # LynxOS 2.2 with GCC compiler, TCP/IP and fullscreen display.
  5919. # Probably also works with Lynx 2.1, and maybe even Lynx 2.0.
  5920. # -X means use termios serial drivers rather than BSD4.3-style sgtty drivers.
  5921. # If you have trouble with this, try "make bsd KFLAGS=-DNOFDZERO".
  5922. lynx:
  5923.     @echo 'Making C-Kermit $(CKVER) for LynxOS 2.2 with TCP/IP'
  5924.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5925.     "CFLAGS= -O -DPOSIX -DDIRENT -DSETREUID -DCK_CURSES -DTCPSOCKET \
  5926.     -DCK_ANSIC -DLYNXOS -DNOLEARN" "LNKFLAGS = -X" "LIBS = -lcurses -lbsd"
  5927.  
  5928. lynx22:
  5929.     $(MAKE) lynx KTARGET=$${KTARGET:-$(@)} "KFLAGS=$(KFLAGS)"
  5930.  
  5931. # LynxOS 2.1 with GCC compiler 1.40 and TCP/IP.
  5932. lynx21:
  5933.     @echo 'Making C-Kermit $(CKVER) for LynxOS 2.1 with TCP/IP'
  5934.     $(MAKE) kermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5935.     "CFLAGS= -O -DSETREUID -DTCPSOCKET -DCK_ANSIC -DBSD4 -DLYNXOS" \
  5936.     "LIBS = -lbsd"
  5937.  
  5938. #SCO Xenix 2.2.1 for IBM PC, XT, PS2/30, or other 8088 or 8086 machine
  5939. #Should this not work, try some of the tricks from sco286.
  5940. #NOTE: -DRENAME is omitted for early SCO Xenix releases because it didn't
  5941. #exist, or its semantics were different from the later POSIX-compliant
  5942. #version of rename().
  5943. sco86:
  5944.     @echo 'Making C-Kermit $(CKVER) for SCO Xenix/86...'
  5945.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  5946.     "CFLAGS= -DXENIX -DNOFILEH -DNOIKSD -DNOUNICODE -DNOLEARN \
  5947.     $(KFLAGS) -Dunix -F 3000 -i -M0me" \
  5948.     "LNKFLAGS = -F 3000 -i -s -M0me" "LIBS = -lx"
  5949.  
  5950. #SCO Xenix/286 2.2.1, e.g. for IBM PC/AT, PS/2 Model 50, etc.
  5951. #Reportedly, this "make" can fail simply because of the size of this
  5952. #makefile.  If that happens, use "makeL", or edit out some of the
  5953. #other entries.  No debugging or character-set translation.
  5954. sco286:
  5955.     @echo 'Making C-Kermit $(CKVER) for SCO Xenix/286...'
  5956.     @echo 'If make fails, try using makeL.'
  5957.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  5958.     "CFLAGS= -xenix -s -O -LARGE -DXENIX -DNOFILEH -Dunix -DRDCHK -DNAP \
  5959.     -DNOIKSD -DNODEBUG -DNOTLOG -DNOCSETS -DNOLEARN \
  5960.     $(KFLAGS) -F 3000 -i -M2let16" \
  5961.     "LIBS = -lx" "LNKFLAGS = -xenix -s -O -LARGE -F 3000 -i -M2let16"
  5962.  
  5963. #SCO Xenix/286 2.2.1, e.g. for IBM PC/AT, PS/2 Model 50, etc.
  5964. #As above, but with HDBUUCP (This one might need fixing -- see sco286).
  5965. sco286hdb:
  5966.     @echo 'Making C-Kermit $(CKVER) for SCO Xenix/286 with HDB UUCP...'
  5967.     @echo 'If make fails, try using makeL.'
  5968.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  5969.     "CFLAGS= -s -O -LARGE -DXENIX -DNOFILEH -Dunix -DRDCHK -DNAP \
  5970.     -DHDBUUCP -DNOIKSD -DNOUNICODE -DNOLEARN \
  5971.     $(KFLAGS) -F 3000 -i -M2let32" \
  5972.     "LIBS = -lx" "LNKFLAGS = -s -O -LARGE -F 3000 -i -M2let32"
  5973.  
  5974. #SCO Xenix/386 2.2.2 and 2.2.3
  5975. sco386:
  5976.     @echo 'Making C-Kermit $(CKVER) for SCO Xenix/386 2.2.2...'
  5977.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  5978.     "CFLAGS= -DXENIX -DNOFILEH -DNOIKSD -DNOREDIRECT -DNOLEARN \
  5979.     -Dunix -DRDCHK -DNAP -DNOUNICODE $(KFLAGS) -Otcl -M3e" \
  5980.     "LNKFLAGS = -s" "LIBS = -lx"
  5981.  
  5982. #SCO XENIX/386 2.2.3 with Excelan TCP/IP + curses.
  5983. # NOTE: This one might need some work in C-Kermit 6.0.
  5984. # You might need to include /usr/include/sys/types.h
  5985. # containing "typedef char *caddr_t;".  Then at least it compiles.
  5986. sco386netc:
  5987.     @echo 'Making C-Kermit $(CKVER) for SCO Xenix/386 2.2.3 + Excelan TCP'
  5988.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  5989.     "CFLAGS= -I/usr/include/exos -DXENIX -DCK_CURSES -DNOUNICODE \
  5990.     -Dunix -DRDCHK -DNAP -DTCPSOCKET -DEXCELAN -DNOJC -DNOMKDIR -DNOFILEH \
  5991.     -DNOLEARN -DNOREDIRECT -DNOIKSD -DNO_DNS_SRV $(KFLAGS) -Otcl -M3e" \
  5992.     "LNKFLAGS = -s" "LIBS = -lc -lx -lsocket -lcurses -ltermcap"
  5993.  
  5994. #SCO XENIX/386 2.3.3 with gcc 1.37 or later...
  5995. sco386gcc:
  5996.     @echo 'Making C-Kermit $(CKVER) for SCO Xenix/386 2.3.3, gcc...'
  5997.     @echo 'Add -D_NO_PROTOTYPE if you have trouble with Xenix header files'
  5998.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5999.     "CFLAGS= -O -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP \
  6000.     -DNOJC -DNODEBUG -DNOUNICODE -DNOLEARN $(KFLAGS) \
  6001.     -traditional -fpcc-struct-return -fstrength-reduce \
  6002.     -DM_BITFIELDS -DM_COFF -DM_I386 -DM_I86 -DM_I86SM \
  6003.     -DM_INTERNAT -DM_SDATA -DM_STEXT -DM_SYS3 -DM_SYS5 \
  6004.     -DM_SYSIII -DM_SYSV -DM_WORDSWAP -DM_XENIX -DNOIKSD -DNOREDIRECT \
  6005.     -DPWID_T=int " "LNKFLAGS = -s" "LIBS = -lx"
  6006.  
  6007. #As above, but with curses...
  6008. sco386gccc:
  6009.     @echo 'Making C-Kermit $(CKVER) for SCO Xenix/386 2.3.3, gcc...'
  6010.     @echo 'Add -D_NO_PROTOTYPE if you have trouble with Xenix header files'
  6011.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  6012.     "CFLAGS= -O -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP \
  6013.     -DNOJC -DNODEBUG -DCK_CURSES -DNOUNICODE -DNOLEARN $(KFLAGS) \
  6014.     -traditional -fpcc-struct-return -fstrength-reduce \
  6015.     -DM_BITFIELDS -DM_COFF -DM_I386 -DM_I86 -DM_I86SM -DNOREDIRECT \
  6016.     -DM_INTERNAT -DM_SDATA -DM_STEXT -DM_SYS3 -DM_SYS5 \
  6017.     -DM_SYSIII -DM_SYSV -DM_WORDSWAP -DM_XENIX -DNOIKSD \
  6018.     -DPWID_T=int " "LNKFLAGS = -s" "LIBS = -lx -lcurses -ltermlib"
  6019.  
  6020. #SCO UNIX (and ODT) entries...
  6021. #
  6022. #NOTE: All SCO UNIX entry LIBS should have "-lc_s -lc -lx" IN THAT ORDER (if
  6023. #shared C library is desired), or else "-lc -lx" IN THAT ORDER.  Use shared C
  6024. #libraries to save memory, but then don't expect to run the resulting binary
  6025. #on a different machine.  When using -lc_s, you must also use -lc, because the
  6026. #shared C library does not contain all of libc.a.  And in all cases, -lc must
  6027. #ALWAYS precede -lx.
  6028. #
  6029. #ANOTHER NOTE: -DRENAME is included in all SCO UNIX entries.  Remove it if it
  6030. #causes trouble.  No harm is done by removing it (see ckuins.txt).
  6031. #
  6032. #AND ANOTHER: In theory, it should be possible to run SCO UNIX binaries on
  6033. #SCO Xenix 2.3 and later.  In practice, this might not work because of the
  6034. #libraries, etc.  Also, don't add the -link -z switch (which is supposed to
  6035. #root out references to null pointers) because it makes UNIX binaries core
  6036. #dump when they are run under Xenix.
  6037.  
  6038. #NOTE: -Otcl removed and replaced by -O, since -Otcl produced incorrect code.
  6039. #SCO UNIX/386 3.2.0, 3.2.1, and SCO Xenix 2.3.x
  6040. sco3r2:
  6041.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2.0 or 3.2.1 ...'
  6042.     @echo 'Warning: If make blows up, edit the makefile to join'
  6043.     @echo 'the following three continued lines into one line.'
  6044.     @echo 'Also, remove -DRENAME if _rename unresolved at link time.'
  6045.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  6046.     "CFLAGS= -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP -DNOLEARN \
  6047.     -DRENAME -DNOIKSD -DNOJC $(KFLAGS) -O" \
  6048.     "LNKFLAGS = -s" "LIBS = -lc -lx"
  6049.  
  6050. #SCO UNIX/386 3.2.0 and SCO Xenix 2.3.x with Excelan TCP/IP support.
  6051. #In case of compilation or runtime problems, try adding
  6052. #"-DUID_T=int -DGID_T=int" to the CFLAGS.  If that doesn't work, try
  6053. #"-DUID_T=uid_t -DGID_T=gid_t".
  6054. sco3r2net:
  6055.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 / Excelan...'
  6056.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  6057.     "CFLAGS= -I/usr/include/exos -DXENIX -DSVR3 -DNOFILEH -DNOLEARN \
  6058.     -DHDBUUCP -DRDCHK -DNAP -DRENAME -DTCPSOCKET -DEXCELAN -DNOJC \
  6059.     -DNOIKSD -DNOREDIRECT $(KFLAGS) -O" \
  6060.     "LNKFLAGS = -s" "LIBS = -lc -lx -lsocket"
  6061.  
  6062. #SCO UNIX/386 3.2.0 and SCO Xenix 2.3.x with Excelan TCP/IP support.
  6063. #As above, with curses added.
  6064. sco3r2netc:
  6065.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 / Excelan / curses...'
  6066.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  6067.     "CFLAGS= -I/usr/include/exos -DXENIX -DSVR3 -DNOFILEH -DNOLEARN \
  6068.     -DHDBUUCP -DRDCHK -DNAP -DTCPSOCKET -DEXCELAN -DNOJC $(KFLAGS) \
  6069.     -DRENAME -DCK_CURSES -DNOREDIRECT -DNOIKSD -O" "LNKFLAGS = -s" \
  6070.     "LIBS = -lc -lx -lsocket -lcurses -ltermcap"
  6071.  
  6072. #SCO UNIX 3.2.x or SCO Xenix 2.3.x with Racal InterLan TCP/IP support
  6073. # Extra compile flags for other version of Racal InterLan TCP/IP:
  6074. # Xenix286/NP621-286, use -Ml -DPARAMH -DINTERLAN -Di286 -DSYSV
  6075. # Xenix386/NP621-386, use -DPARAMH -DINTERLAN -Di386 -DSYSV
  6076. # ISC386ix/NP622I, use -DSYSV -Di386
  6077. # SCO Unix3.2/NP622S, use -DSYSV -Di386 -DSCO_UNIX
  6078. # AT&T SVR3.2/NP622A, use -DSYSV -Di386 -DATT
  6079. sco3r2netri:
  6080.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 / Racal InterLan...'
  6081.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  6082.     "CFLAGS= -I/usr/include/interlan -DXENIX -DNOFILEH -DHDBUUCP \
  6083.     -DSVR3 -DRDCHK -DNAP -DTCPSOCKET -DPARAMH -DINTERLAN -Di386 -DSYSV \
  6084.     -DRENAME -DNOREDIRECT -DNOIKSD -DNOJC -DNOLEARN $(KFLAGS) -Otcl -M3e" \
  6085.     "LNKFLAGS = -s" "LIBS = -lc -lx -ltcp"
  6086.  
  6087. # SCO XENIX/386 2.3.3 SysV with SCO TCP/IP
  6088. # System V STREAMS TCP developed by Lachman Associates Inc and
  6089. # Convergent Technologies.
  6090. # -DRENAME removed since some reports indicate it is not supported
  6091. # (whereas others say it is.)
  6092. sco3r2lai:
  6093.     @echo 'Making C-Kermit $(CKVER) for SCO XENIX/386 2.3.3 + TCP/IP...'
  6094.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  6095.     "CFLAGS= -DLAI_TCP -Di386 -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK \
  6096.     -DNAP -DTCPSOCKET -DPWID_T=int -DNOREDIRECT -DNOIKSD -DNOLEARN \
  6097.     $(KFLAGS) -Otcl -i -M3e" \
  6098.     "LNKFLAGS = -i -s" "LIBS = -lc -lx -lsocket"
  6099.  
  6100. sco3r2laic:
  6101.     @echo 'Making C-Kermit $(CKVER) for SCO XENIX/386 2.3.3 + TCP/IP...'
  6102.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  6103.     "CFLAGS= -DLAI_TCP -Di386 -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK \
  6104.     -DNAP -DTCPSOCKET -DCK_ANSIC -DCK_CURSES -DM_TERMINFO -DNOLEARN \
  6105.     -DPWID_T=int -DNOREDIRECT -DNOIKSD $(KFLAGS) -Otcl -i -M3e" \
  6106.     "LNKFLAGS = -i -s" "LIBS = -ltinfo -lc -lx -lsocket"
  6107.  
  6108. #SCO UNIX/386 3.2v2 (POSIX job control), shared libraries.
  6109. sco3r22:
  6110.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v2 ...'
  6111.     make wermit KTARGET=$${KTARGET:-$(@)} \
  6112.     "CFLAGS= -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNOLEARN \
  6113.     -DNAP -DRENAME -DPID_T=pid_t -DPWID_T=int -DDIRENT -DNOIKSD \
  6114.     -DNOREDIRECT $(KFLAGS) -O" \
  6115.     "LNKFLAGS = -s" "LIBS = -lc_s -lc -lx"
  6116.  
  6117. #SCO UNIX/386 3.2v2, POSIX job control, fullscreen file transfer display,
  6118. #dynamic memory allocation, shared C library
  6119. sco3r22c:
  6120.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v2 ...'
  6121.     @echo 'Warning: If make blows up, edit the makefile to join'
  6122.     @echo 'the following four continued lines into one line.'
  6123.     make wermit KTARGET=$${KTARGET:-$(@)} \
  6124.     "CFLAGS= -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP -DNOLEARN \
  6125.     -DCK_CURSES -DDIRENT -DRENAME -DNOREDIRECT -DNOIKSD \
  6126.     -DPID_T=pid_t -DPWID_T=int $(KFLAGS) -O" \
  6127.     "LNKFLAGS = -s" "LIBS = -lcurses -lc_s -lc -lx"
  6128.  
  6129. #SCO UNIX/386 3.2v2 with gcc 1.40 or later (POSIX job control)
  6130. sco3r22gcc:
  6131.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v2, gcc'
  6132.     @echo 'Warning: If make blows up, edit the makefile to join'
  6133.     @echo 'the following seven continued lines into one line.'
  6134.     make wermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" \
  6135.     "CFLAGS= -O -DPOSIX -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP \
  6136.     -DNOLEARN -DRENAME -traditional -fpcc-struct-return -fstrength-reduce \
  6137.     -DM_BITFIELDS -DM_COFF -DM_I386 -DM_I86 -DM_I86SM \
  6138.     -DM_INTERNAT -DM_SDATA -DM_STEXT -DM_SYS3 -DM_SYS5 \
  6139.     -DM_SYSIII -DM_SYSV -DM_UNIX -DM_WORDSWAP -DM_XENIX -Dunix \
  6140.     -DPID_T=pid_t -DPWID_T=int -DNOREDIRECT -DNOIKSD $(KFLAGS) " \
  6141.     "LNKFLAGS = -s" "LIBS = -lc_s -lc -lx"
  6142.  
  6143. #SCO UNIX/386 3.2v2 (ODT 1.1) (POSIX job control) with SCO TCP/IP, shared libs
  6144. #Requires SCO TCP/IP or ODT development system for telnet.h, etc.
  6145. sco3r22net:
  6146.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2.2 + TCP/IP...'
  6147.     @echo 'Warning: If make blows up, edit the makefile to join'
  6148.     @echo 'the following three continued lines into one line.'
  6149.     make xermit KTARGET=$${KTARGET:-$(@)} \
  6150.     "CFLAGS= -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP -DTCPSOCKET \
  6151.     -DRENAME -DPID_T=pid_t -DPWID_T=int -DDIRENT -DNOREDIRECT -DNOIKSD \
  6152.     $(KFLAGS) -O" "LNKFLAGS = -s" "LIBS = -lsocket -lc_s -lc -lx"
  6153.  
  6154. #As above, but with curses for fullscreen file transfer display.
  6155. #Requires SCO TCP/IP or ODT development system for telnet.h, etc.
  6156. sco3r22netc:
  6157.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v2 + TCP/IP...'
  6158.     @echo 'Warning: If make blows up, edit the makefile to join'
  6159.     @echo 'the following three continued lines into one line.'
  6160.     make xermit KTARGET=$${KTARGET:-$(@)} "CFLAGS= \
  6161.     -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP -DTCPSOCKET -DRENAME \
  6162.     -DCK_CURSES -DDIRENT -DNOIKSD -DNOREDIRECT \
  6163.     -DPID_T=pid_t -DPWID_T=int -O $(KFLAGS)" \
  6164.     "LNKFLAGS = -s" "LIBS = -lcurses -lsocket -lc_s -lc -lx"
  6165.  
  6166. #SCO XENIX 2.3.4, no curses, no TCP/IP, no IKSD.
  6167. #This one built and tested in C-Kermit 7.0.
  6168. #lcfp is C library floating-point support.
  6169. #Use -M3 to generate 32-bit i386 code instead of 16-bit segmented i286 code.
  6170. #Use -Me to enable MS nonstandard keywords in system headers.
  6171. #Use -W2 or W3 to increase the warning level.
  6172. sco234:
  6173.     @echo 'Making C-Kermit $(CKVER) for SCO XENIX 2.3.4...'
  6174.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  6175.     "CFLAGS= -DSCO32 -DXENIX -DNOFILEH -DHDBUUCP -DRDCHK -DNOLEARN \
  6176.     -DNAP -DNOJC -DNOCOTFMC -DNOIKSD -DNOREDIRECT -DNOTNCODE -DNOGFTIMER \
  6177.     -DNOTIMEVAL -DNOTIMEZONE -DNOSYMLINK -DSCO234 -DDCLGETCWD $(KFLAGS) \
  6178.     -Otcl" "LNKFLAGS = -s" "LIBS = -lcfp -lc -lx"
  6179.  
  6180. #SCO XENIX 2.3.4, no TCP/IP, no IKSD, but with curses.
  6181. # Built and tested in C-Kermit 7.0.
  6182. # Note: XENIX 2.3.4 does not have newterm() so no point in adding -DCK_NEWTERM.
  6183. sco234c:
  6184.     @echo 'Making C-Kermit $(CKVER) for SCO XENIX 2.3.4 + curses...'
  6185.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  6186.     "CFLAGS= -DSCO32 -DXENIX -DNOFILEH -DHDBUUCP -DRDCHK -DNOLEARN \
  6187.     -DNAP -DNOJC -DNOCOTFMC -DNOIKSD -DNOREDIRECT -DNOTNCODE -DNOGFTIMER \
  6188.     -DNOTIMEVAL -DNOTIMEZONE -DNOSYMLINK -DCK_CURSES -DSCO234 \
  6189.     -DDCLGETCWD $(KFLAGS) -Otcl" \
  6190.     "LNKFLAGS = -s" "LIBS = -lcfp -lc -ltinfo -lx"
  6191.  
  6192. #SCO XENIX 2.3.4 with SCO TCP/IP and curses, no IKSD.
  6193. # Built and tested in C-Kermit 7.0.  TCP/IP works and curses works.
  6194. # Previous versions of this target included -lmalloc, but this caused "error:
  6195. # " _calloc : symbol defined more than once" at link time so I removed it.
  6196. # Results are likely to vary depending on exactly which version of the SDK
  6197. # and TCP/IP SDK you have.
  6198. sco234netc:
  6199.     @echo 'Making C-Kermit $(CKVER) for SCO XENIX 2.3.4 + TCP + curses...'
  6200.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  6201.     "CFLAGS= -DSCO32 -DXENIX -DNOFILEH -DHDBUUCP -DRDCHK -DNOLEARN \
  6202.     -DNAP -DNOJC -DNOCOTFMC -DNOIKSD -DNOREDIRECT -DNOTNCODE -DNOGFTIMER \
  6203.     -DNOTIMEVAL -DNOTIMEZONE -DNOSYMLINK -DCK_CURSES -DSCO234 \
  6204.     -DDCLGETCWD -DTCPSOCKET -DNO_DNS_SRV $(KFLAGS) -Otcl" \
  6205.     "LNKFLAGS = -s" "LIBS = -ltinfo -lsocket -lcfp -lc -lx"
  6206.  
  6207. # SCO 3.2v4.x targets...
  6208.  
  6209. #  NOTE: Add -DDCLPOPEN and/or -DDCLFDOPEN to anySCO 3.2v4.x non-gcc entries
  6210. #  that complain about fdopen() or popen() at compile time.  They compile OK
  6211. #  without these flags as of July 1999.  However, the gcc entries seem to
  6212. #  need them, at least for gcc 2.7.2.2.
  6213.  
  6214. #  NOTE 2: To enable IKSD support, add:
  6215. #  -DCK_LOGIN -DNOGETUSERSHELL -DNOINITGROUPS
  6216. #  to CFLAGS (not tested).
  6217.  
  6218. #SCO UNIX/386 3.2v4 (POSIX job control), curses, ANSI C compilation,
  6219. #<dirent.h> (EAFS) file system.  Remove -lmalloc if it causes trouble.  It was
  6220. #put there to avoid core dumps caused by regular libc.a malloc.  Add -J to make
  6221. #all chars unsigned.  This version uses select() for CONNECT and also has
  6222. #high-precision timers and so might not work on non-TCP systems, in which case
  6223. #sco32v4ns should be used instead.
  6224. # If you get _ftime redefinition_ complaint, try adding -DODT30 to CFLAGS.
  6225. sco32v4:
  6226.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v4...'
  6227.     make xermit KTARGET=$${KTARGET:-$(@)} \
  6228.     "CFLAGS= -DCK_SCO32V4 -DNOFILEH -DHDBUUCP -DCK_CURSES -DM_TERMINFO \
  6229.     -DNOANSI -DSELECT -DNOIKSD -DDCLGETCWD -NOLSTAT \
  6230.     -DNOLINKBITS -DDCLGETCWD $(KFLAGS) -O" \
  6231.     "LNKFLAGS = -s" "LIBS = -lcurses -lmalloc -lsocket -lc_s -lc -lx"
  6232.  
  6233. # As above, but with no dependence on sockets library or select().
  6234. sco32v4ns:
  6235.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v4...'
  6236.     @echo 'No select() and no sockets library.'
  6237.     make wermit KTARGET=$${KTARGET:-$(@)} \
  6238.     "CFLAGS= -DCK_SCO32V4 -DNOFILEH -DHDBUUCP -DCK_CURSES -DM_TERMINFO \
  6239.     -DNOANSI -DNOIKSD -DNOGFTIMER -DCK_POLL -DNAP -DDCLGETCWD -DNOLSTAT \
  6240.     -DNOLINKBITS -DDCLGETCWD -DNOLEARN -O $(KFLAGS)" \
  6241.     "LNKFLAGS = -s" "LIBS = -lcurses -lmalloc -lc_s -lc -lx"
  6242.  
  6243. #SCO UNIX/386 3.2v4 (POSIX job control), TCP/IP, curses, ANSI C compilation,
  6244. #<dirent.h> (EAFS) file system.  With DIRENT, -lc must come before -lx.
  6245. #Reportedly it's OK to add -DCK_REDIR and -DCK_WREFRESH, and to remove -lc_s.
  6246. #Requires SCO TCP/IP development system or ODT for telnet.h, etc.
  6247. #See sco32v4 above for additional comments.
  6248. #NOTE: No more room for -Dxxx -- 25 seems to be the limit.  Move some to
  6249. #ckcdeb.h or somewhere...
  6250. sco32v4net:
  6251.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v4...'
  6252.     @echo 'If you get _ftime redefinition_ complaint,'
  6253.     @echo 'use make sco-odt30.'
  6254.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  6255.     "CFLAGS= -DNOFILEH -DHDBUUCP -DTCPSOCKET -DCK_ANSIC -DCK_CURSES \
  6256.     -DNAP -DCK_WREFRESH -DNOLINKBITS -D_IBCS2 -DSELECT -DNOLSTAT \
  6257.     -DDCLGETCWD -DCK_SCO32V4 -DNOIKSD -O \
  6258.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS) -s" \
  6259.     "LIBS = $(LIBS) -lcurses -lsocket -lmalloc -lsocket -lc_s -lc -lx"
  6260.  
  6261. #SCO UNIX/386 3.2v4 with gcc 1.40 or later, POSIX job control.
  6262. #Also see comments in sco32r4 entry.
  6263. sco32v4gcc:
  6264.     make xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" \
  6265.     "CFLAGS= -O -DNOFILEH -DHDBUUCP -DNOANSI -DCK_CURSES -DM_TERMINFO \
  6266.     -traditional -fpcc-struct-return -fstrength-reduce -funsigned-char \
  6267.     -D_KR -D_NO_PROTOTYPE -D_SVID -DNOIKSD -DCK_SCO32V4 -DNOLINKBITS \
  6268.     -DM_BITFIELDS -DM_COFF -DM_I386 -DM_I86 -DM_I86SM -DSELECT -DNOLSTAT \
  6269.     -DM_INTERNAT -DM_SDATA -DM_STEXT -DM_SYS3 -DM_SYS5 -DDCLGETCWD \
  6270.     -DM_SYSIII -DM_SYSV -DM_UNIX -DM_WORDSWAP -DM_XENIX -Dunix \
  6271.     -DDCLPOPEN -DDCLFDOPEN $(KFLAGS) " \
  6272.     "LNKFLAGS = -s" "LIBS = -lcurses -lsocket -lc_s -lc -lx"
  6273.  
  6274. #SCO UNIX/386 3.2v4 (POSIX job control), TCP/IP, curses, ANSI C compilation,
  6275. #Requires SCO TCP/IP or ODT development system for telnet.h, etc.
  6276. #<dirent.h> (EAFS) file system.  With DIRENT, -lc must come before -lx.
  6277. #gcc 1.40 or later.  Also see comments in sco32r4 entry.
  6278. sco32v4netgcc:
  6279.     make xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2=gcc" \
  6280.     "CFLAGS= -O2 -DNOFILEH -DHDBUUCP -DSELECT -DNOLSTAT \
  6281.     -DNOANSI -DTCPSOCKET -DCK_CURSES -DM_TERMINFO \
  6282.     -D_KR -D_NO_PROTOTYPE -D_SVID -DNOIKSD -DCK_SCO32V4 -DNOLINKBITS \
  6283.     -DM_BITFIELDS -DM_COFF -DM_I386 -DM_I86 -DM_I86SM -DDCLGETCWD \
  6284.     -DM_INTERNAT -DM_SDATA -DM_STEXT -DM_SYS3 -DM_SYS5 \
  6285.     -DM_SYSIII -DM_SYSV -DM_UNIX -DM_WORDSWAP -DM_XENIX -Dunix \
  6286.     -DDCLPOPEN -DDCLFDOPEN $(KFLAGS)" \
  6287.     "LNKFLAGS = -s" "LIBS = -lcurses -lsocket -lc_s -lc -lx"
  6288.  
  6289. #As above but with bgcc BOUNDS CHECKING (for developers only).  -lcheck has
  6290. #bounds-checking replacements for malloc, memcpy, bcopy, etc, so must come
  6291. #before -lsocket and -lc.
  6292. sco32v4netbgcc:
  6293.     make xermit KTARGET=$${KTARGET:-$(@)} \
  6294.     "CC = bgcc -pipe -m386" "CC2=bgcc -pipe -m386" \
  6295.     "CFLAGS= -O1 -g -DNOFILEH -DHDBUUCP -DSELECT \
  6296.     -DNOANSI -DTCPSOCKET -DCK_CURSES -DM_TERMINFO \
  6297.     -D_KR -D_NO_PROTOTYPE -D_SVID -DNOIKSD -DCK_SCO32V4 -DNOLSTAT \
  6298.     -DM_BITFIELDS -DM_COFF -DM_I386 -DM_I86 -DM_I86SM -DNOLINKBITS \
  6299.     -DM_INTERNAT -DM_SDATA -DM_STEXT -DM_SYS3 -DM_SYS5 -DDCLGETCWD \
  6300.     -DM_SYSIII -DM_SYSV -DM_UNIX -DM_WORDSWAP -DM_XENIX -Dunix \
  6301.     -DDCLPOPEN -DDCLFDOPEN $(KFLAGS) " \
  6302.     "LNKFLAGS = -g" "LIBS = -lcurses -lcheck -lsocket -lx"
  6303.  
  6304. sco32v4netnd:
  6305.     @echo sco32v4net with no debug
  6306.     $(MAKE) "MAKE=$(MAKE)" sco32v4net KTARGET=$${KTARGET:-$(@)} \
  6307.     "KFLAGS=$(KFLAGS) -DNODEBUG -DNOTLOG" "LIBS=$(LIBS)"
  6308.  
  6309. sco3r2netnd:
  6310.     @echo sco32v4netnd built for SCO XENIX 2.3 under SCO UNIX...
  6311.     @echo   requires copying /lib/386/Slibc.a to /lib/386/Slibc_s.a and
  6312.     @echo   getting /lib/386/Slibsocket.a from a XENIX devkit.
  6313.     @echo   WARNING: poll/CK_POLL supported only on XENIX 2.3.4
  6314.     echo    For earlier XENIX systems, replace CK_POLL with RDCHK.
  6315.     $(MAKE) "MAKE=$(MAKE)" sco32v4netnd KTARGET=$${KTARGET:-$(@)} \
  6316.     "KFLAGS=$(KFLAGS) -x2.3 -DNORENAME -DNOSYMLINK" \
  6317.     "LNKFLAGS = $(LNKFLAGS) -x2.3" \
  6318.     "LIBS=-ldir -lcfp $(LIBS)"
  6319.  
  6320. #SCO UNIX/386 3.2v4 (POSIX job control), TCP/IP, curses, ANSI C compilation,
  6321. #<dirent.h> (EAFS) file system.  With DIRENT, -lc must come before -lx.
  6322. #Reportedly it's OK to add -DCK_REDIR and -DCK_WREFRESH, and to remove -lc_s.
  6323. #Requires SCO TCP/IP development system or ODT for telnet.h, etc.
  6324. #See sco32v4 above for additional comments.
  6325. # Note: "xermit" means use the select() version of the CONNECT module.
  6326. sco32v4netx:
  6327.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v4...'
  6328.     @echo 'If you get _ftime redefinition_ complaint,'
  6329.     @echo 'use make sco-odt30.'
  6330.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  6331.     "CFLAGS= -DNOFILEH -DHDBUUCP -DTCPSOCKET -DCK_ANSIC -DCK_CURSES -DNAP \
  6332.     -DCK_WREFRESH -DNOLINKBITS -D_IBCS2 -DSELECT -DDCLGETCWD \
  6333.     -DCK_SCO32V4 -DNOIKSD -DNOLSTAT -O $(KFLAGS)" \
  6334.     "LNKFLAGS = $(LNKFLAGS) -s" \
  6335.     "LIBS = $(LIBS) -lcurses -lsocket -lmalloc -lsocket -lc_s -lc -lx"
  6336.  
  6337. sco32v4netndx:
  6338.     @echo sco32v4netx with no debug
  6339.     $(MAKE) "MAKE=$(MAKE)" sco32v4netx KTARGET=$${KTARGET:-$(@)} \
  6340.     "KFLAGS=$(KFLAGS) -DNODEBUG -DNOTLOG" "LIBS=$(LIBS)"
  6341.  
  6342. sco3r2netndx:
  6343.     @echo sco32v4netndx built for SCO XENIX 2.3 under SCO UNIX...
  6344.     @echo   requires copying /lib/386/Slibc.a to /lib/386/Slibc_s.a and
  6345.     @echo   getting /lib/386/Slibsocket.a from a XENIX devkit.
  6346.     @echo   WARNING: poll/CK_POLL supported only on XENIX 2.3.4
  6347.     echo    For earlier XENIX systems, replace CK_POLL with RDCHK.
  6348.     $(MAKE) "MAKE=$(MAKE)" sco32v4netndx KTARGET=$${KTARGET:-$(@)} \
  6349.     "KFLAGS=$(KFLAGS) -x2.3 -DNORENAME -DNOSYMLINK" \
  6350.     "LNKFLAGS = $(LNKFLAGS) -x2.3" \
  6351.     "LIBS=-ldir -lcfp $(LIBS)"
  6352.  
  6353. sco-odt30:
  6354.     @echo SCO ODT 3.0
  6355.     $(MAKE) "MAKE=$(MAKE)" sco32v4net KTARGET=$${KTARGET:-$(@)} \
  6356.     "KFLAGS=$(KFLAGS) -DODT30"
  6357.  
  6358. #SCO OpenServer 5.0 (SCO UNIX 3.2v5.0) with SCO development tools, no TCP/IP.
  6359. #SCO OSR5 is much more like standard System V than previous SCO releases.
  6360. #The SCO development tools include TCP/IP, so this target is only for creating
  6361. #artificially limited versions of kermit required by site policy rather than
  6362. #the operating system.  NOSYSLOG is included because syslog() requires the
  6363. #sockets library.
  6364. sco32v500:
  6365.     @echo Making C-Kermit $(CKVER) for SCO OpenServer Release 5...
  6366.     $(MAKE) xermit CC=$(CC) CC2=$(CC2) KTARGET=$${KTARGET:-$(@)} \
  6367.     "CFLAGS= -O -DDIRENT -DHDBUUCP -DSVR4 -DCK_SCOV5 -DCK_RTSCTS \
  6368.     -DCK_CURSES -DCK_WREFRESH -DCK_NEWTERM -DSELECT -DSELECT_H \
  6369.     -DNOGETUSERSHELL -DNOLSTAT -DNOLINKBITS -DNOSYSLOG \
  6370.     $(KFLAGS)" \
  6371.     "LIBS=-lcurses $(LIBS)" "LNKFLAGS=$(LNKFLAGS)"
  6372.  
  6373. sco32v5:
  6374.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=$(KFLAGS)" sco32v500
  6375.  
  6376.  
  6377. #SCO OpenServer 5.0 with networking, SCO development tools.
  6378. #Networking libraries are now provided with the OS.
  6379. sco32v500net:
  6380.     @echo Making C-Kermit $(CKVER) for SCO OpenServer Release 5...
  6381.     $(MAKE) xermit CC=$(CC) CC2=$(CC2) KTARGET=$${KTARGET:-$(@)} \
  6382.     "CFLAGS= -O -DDIRENT -DHDBUUCP -DSVR4 -DCK_SCOV5 -DCK_RTSCTS \
  6383.     -DCK_CURSES -DCK_WREFRESH -DCK_NEWTERM -DSELECT -DSELECT_H \
  6384.     -DNOGETUSERSHELL -DNOLSTAT -DNOLINKBITS -DTCPSOCKET \
  6385.     -DNO_DNS_SRV $(KFLAGS)" \
  6386.     "LIBS=-lcurses -lsocket $(LIBS)" "LNKFLAGS=$(LNKFLAGS)"
  6387.  
  6388. sco32v5net:
  6389.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=$(KFLAGS)" sco32v500net
  6390.  
  6391. #SCO OpenServer 5.0 with networking and OpenSSL, SCO development tools.
  6392. #Networking libraries are now provided with the OS.
  6393. sco32v500net+ssl:
  6394.     @echo Making C-Kermit $(CKVER) for SCO OSR5 with OpenSSL...
  6395.     $(MAKE) xermit CC=$(CC) CC2=$(CC2) KTARGET=$${KTARGET:-$(@)} \
  6396.     "CFLAGS= -O -DDIRENT -DHDBUUCP -DSVR4 -DCK_SCOV5 -DCK_RTSCTS \
  6397.     -DCK_CURSES -DCK_WREFRESH -DCK_NEWTERM -DSELECT -DSELECT_H \
  6398.     -DNOGETUSERSHELL -DNOLSTAT -DNOLINKBITS -DTCPSOCKET \
  6399.     -DNO_DNS_SRV -DCK_AUTHENTICATION -DCK_SSL -DCK_TRIGGER \
  6400.     $(SSLINC) $(SSLLIB) $(KFLAGS)" \
  6401.     "LIBS=$(SSLLIB) -lcurses -lsocket -lssl -lcrypto $(LIBS)" \
  6402.     "LNKFLAGS=$(LNKFLAGS)"
  6403.  
  6404. #SCO OpenServer 5.0 with gcc, no networking.
  6405. #Note: NOSYSLOG required for non-net entries because it requires <socket.h>
  6406. sco32v500gcc:
  6407.     @echo Using gcc...
  6408.     $(MAKE) "MAKE=$(MAKE)" sco32v500CC=gcc CC2=gcc \
  6409.     KTARGET=$${KTARGET:-$(@)} "KFLAGS= $(KFLAGS)"
  6410.  
  6411. #SCO OpenServer 5.0 with networking, gcc.
  6412. sco32v500netgcc:
  6413.     @echo TCP/IP networking added - using gcc...
  6414.     $(MAKE) "MAKE=$(MAKE)" sco32v500net CC=gcc CC2=gcc \
  6415.     KTARGET=$${KTARGET:-$(@)} "KFLAGS=$(KFLAGS)"
  6416.  
  6417. #SCO OpenServer 5.0 with networking, gcc, elf.
  6418. sco32v500netgccelf:
  6419.     @echo TCP/IP networking added - using gcc, dynamic elf library
  6420.     $(MAKE) "MAKE=$(MAKE)" sco32v500net "CC=gcc" "CC2=gcc" \
  6421.     KTARGET=$${KTARGET:-$(@)} "KFLAGS=-O3 -belf" "LNKFLAGS=-belf"
  6422.  
  6423. sco32v502:
  6424.     $(MAKE) "MAKE=$(MAKE)" sco32v500 KTARGET=$${KTARGET:-$(@)} \
  6425.     "KFLAGS=-DSCO_OSR502 $(KFLAGS)"
  6426.  
  6427. #SCO OpenServer 5.0.2 with networking, SCO development tools.
  6428. sco32v502net:
  6429.     @echo TCP/IP networking added...
  6430.     $(MAKE) "MAKE=$(MAKE)" sco32v500net KTARGET=$${KTARGET:-$(@)} \
  6431.     "KFLAGS=-b elf -DSCO_OSR502 $(KFLAGS)"
  6432.  
  6433. #SCO OpenServer 5.0.4 (SCO UNIX 3.2v5.0.4) with SCO development tools.
  6434. #Like 5.0, but adds high serial speeds.  First POSIX-based SCO version.
  6435. #Note: the -O flag is deliberately omitted for /bin/cc (= /usr/ccs/bin/cc).
  6436. sco32v504:
  6437.     @echo Making C-Kermit $(CKVER) for SCO OpenServer Release 5.0.4...
  6438.     $(MAKE) xermit CC=$(CC) CC2=$(CC2) KTARGET=$${KTARGET:-$(@)} \
  6439.     "CFLAGS= -DDIRENT -DHDBUUCP -DSVR4 -DCK_SCOV5 -DCK_RTSCTS \
  6440.     -DSCO_OSR504 -b elf -DPOSIX \
  6441.     -DCK_CURSES -DCK_WREFRESH -DCK_NEWTERM -DSELECT -DSELECT_H \
  6442.     -DNOGETUSERSHELL -DNOLSTAT -DNOLINKBITS -DNOSYSLOG $(KFLAGS)" \
  6443.     "LIBS=-lcurses $(LIBS)" "LNKFLAGS=$(LNKFLAGS)"
  6444.  
  6445. #SCO OpenServer 5.0.4 with gcc, no networking.
  6446. sco32v504gcc:
  6447.     @echo Using gcc...
  6448.     $(MAKE) "MAKE=$(MAKE)" sco32v504 "CC=gcc" "CC2=gcc" \
  6449.     KTARGET=$${KTARGET:-$(@)} "KFLAGS= $(KFLAGS)"
  6450.  
  6451. #SCO OpenServer 5.0.4 with networking.
  6452. #SCO development tools (/bin/cc = /usr/ccs/bin/cc).
  6453. #Optimization deliberately suppressed.
  6454. sco32v504net:
  6455.     @echo Making C-Kermit $(CKVER) for SCO OpenServer Release 5.0.4...
  6456.     $(MAKE) xermit CC=$(CC) CC2=$(CC2) KTARGET=$${KTARGET:-$(@)} \
  6457.     "CFLAGS= -DDIRENT -DHDBUUCP -DSVR4 -DCK_SCOV5 -DCK_RTSCTS \
  6458.     -DCK_CURSES -DCK_WREFRESH -DCK_NEWTERM -DSELECT -DSELECT_H \
  6459.     -DNOGETUSERSHELL -DNOLSTAT -DNOLINKBITS -DTCPSOCKET \
  6460.     -b elf -DSCO_OSR504 -DPOSIX -DNO_DNS_SRV $(KFLAGS)" \
  6461.     "LIBS=-lcurses -lsocket $(LIBS)" "LNKFLAGS=$(LNKFLAGS)"
  6462.  
  6463. #SCO OpenServer 5.0.4 with networking, gcc.
  6464. sco32v504netgcc:
  6465.     @echo TCP/IP networking added - using gcc...
  6466.     @echo If gcc crashes on ckwart.c then build it by hand:
  6467.     @echo " gcc -o wart -DCK_SCOV5 ckwart.c"
  6468.     $(MAKE) "MAKE=$(MAKE)" sco32v500net "CC=gcc" "CC2=gcc" \
  6469.     KTARGET=$${KTARGET:-$(@)} "KFLAGS=-DSCO_OSR504 -DPOSIX $(KFLAGS)"
  6470.  
  6471. #SCO OpenServer 5.0.4 with networking, gcc, elf.
  6472. sco32v504netgccelf:
  6473.     @echo TCP/IP networking added - using gcc, dynamic elf library
  6474.     $(MAKE) "MAKE=$(MAKE)" sco32v500net "CC=gcc" "CC2=gcc"
  6475.     KTARGET=$${KTARGET:-$(@)} \
  6476.     "KFLAGS=-DSCO_OSR504 -DPOSIX -O3 -belf $(KFLAGS)" \
  6477.     LNKFLAGS="-belf"
  6478.  
  6479. #SCO OpenServer 5.0.5 (SCO UNIX 3.2v5.0.5) with SCO /bin/cc.
  6480. #Like 5.0, but adds high serial speeds.  First POSIX-based SCO version.
  6481. #You might have to add "LIBS=-ltinfo" (some do, some don't).
  6482. sco32v505:
  6483.     $(MAKE) "MAKE=$(MAKE)" sco32v500 KTARGET=$${KTARGET:-$(@)} \
  6484.     "KFLAGS=-DSCO_OSR505 -DNOSHADOW -b elf -DPOSIX $(KFLAGS)"
  6485.  
  6486. #SCO OpenServer 5.0.5 (SCO UNIX 3.2v5.0.5) with SCO UDK.
  6487. #This one can't see the high serial speeds and anything to do with modem
  6488. #signals doesn't work because UKD cc has its own alternative universe of
  6489. #header files.
  6490. sco32v505udk:
  6491.     $(MAKE) "MAKE=$(MAKE)" sco32v500 KTARGET=$${KTARGET:-$(@)} \
  6492.     "KFLAGS=-DSCO_OSR505 -DDCLTIMEVAL -DNOSHADOW -b elf -DPOSIX $(KFLAGS)"
  6493.  
  6494. #SCO OpenServer 5.0.5 with networking, SCO /bin/cc.
  6495. #See comments with sco32v505 targets.
  6496. sco32v505net:
  6497.     @echo TCP/IP networking added...
  6498.     $(MAKE) "MAKE=$(MAKE)" sco32v500net KTARGET=$${KTARGET:-$(@)} \
  6499.     "KFLAGS=-DSCO_OSR505 -DNOSHADOW -b elf -DPOSIX $(KFLAGS)"
  6500.  
  6501. #SCO OpenServer 5.0.5 with networking and OpenSSL, SCO /bin/cc.
  6502. #See comments with sco32v505 targets.
  6503. sco32v505net+ssl:
  6504.     @echo TCP/IP networking and OpenSSL added...
  6505.     $(MAKE) "MAKE=$(MAKE)" sco32v500net+ssl KTARGET=$${KTARGET:-$(@)} \
  6506.     "KFLAGS=-DSCO_OSR505 -DNOSHADOW -b elf -DPOSIX $(KFLAGS) " \
  6507.  
  6508. #SCO OpenServer 5.0.5 with networking, SCO UDK.
  6509. #See comments with above sco32v505 targets.
  6510. sco32v505udknet:
  6511.     @echo TCP/IP networking added...
  6512.     $(MAKE) "MAKE=$(MAKE)" sco32v500net KTARGET=$${KTARGET:-$(@)} \
  6513.     "KFLAGS=-DSCO_OSR505 -DDCLTIMEVAL -DNOSHADOW -b elf -DPOSIX $(KFLAGS)"
  6514.  
  6515. #SCO OpenServer 5.0.5 with gcc, no networking.
  6516. sco32v505gcc:
  6517.     @echo Using gcc...
  6518.     $(MAKE) "MAKE=$(MAKE)" sco32v500 "CC=gcc" "CC2=gcc" \
  6519.     KTARGET=$${KTARGET:-$(@)} \
  6520.     "KFLAGS=-DSCO_OSR505 -DPOSIX -funsigned-char $(KFLAGS)"
  6521.  
  6522. #SCO OpenServer 5.0.5 with gcc, no networking, no shadow passwords.
  6523. sco32v505xgcc:
  6524.     @echo Using gcc...
  6525.     $(MAKE) "MAKE=$(MAKE)" sco32v500 "CC=gcc" "CC2=gcc" \
  6526.     KTARGET=$${KTARGET:-$(@)} \
  6527.     "KFLAGS=-DSCO_OSR505 -DNOSHADOW -DPOSIX -funsigned-char $(KFLAGS)"
  6528.  
  6529. #SCO OpenServer 5.0.5 with networking, gcc.
  6530. sco32v505netgcc:
  6531.     @echo TCP/IP networking added - using gcc...
  6532.     @echo If gcc crashes on ckwart.c then build it by hand:
  6533.     @echo " gcc -o wart -DCK_SCOV5 ckwart.c"
  6534.     $(MAKE) "MAKE=$(MAKE)" sco32v500net "CC=gcc" "CC2=gcc" \
  6535.     KTARGET=$${KTARGET:-$(@)} \
  6536.     "KFLAGS=-DSCO_OSR505 -DNOSHADOW -DPOSIX -funsigned-char $(KFLAGS)"
  6537.  
  6538. #egcs is just like gcc but generates ELF by default.
  6539. #Or you can include -melf (not -belf) to force it.
  6540. sco32v505netegcs:
  6541.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=$(KFLAGS)" sco32v505netgcc \
  6542.     KTARGET=$${KTARGET:-$(@)}
  6543.  
  6544. #SCO OpenServer 5.0.5 with networking, gcc, elf.
  6545. sco32v505netgccelf:
  6546.     @echo TCP/IP networking added - using gcc, dynamic elf library
  6547.     $(MAKE) "MAKE=$(MAKE)" sco32v500net "CC=gcc" "CC2=gcc" \
  6548.     "KFLAGS=-DSCO_OSR505 -DPOSIX -funsigned-char -O3 -belf $(KFLAGS)" \
  6549.     KTARGET=$${KTARGET:-$(@)} LNKFLAGS="-belf"
  6550.  
  6551. #SCO OpenServer 5.0.6 with SCO /bin/cc.
  6552. # Add -DDCLTIMEVAL when building with UDK.
  6553. #Like 5.0.5.   IMPORTANT: Use sco32v506a target for 5.0.6a.
  6554. sco32v506:
  6555.     $(MAKE) "MAKE=$(MAKE)" sco32v500 KTARGET=$${KTARGET:-$(@)} \
  6556.     "KFLAGS=-DSCO_OSR505 -DSCO_OSR506 -b elf -DPOSIX $(KFLAGS)"
  6557.  
  6558. #SCO OpenServer 5.0.6 with networking, SCO /bin/cc.
  6559. # Add -DDCLTIMEVAL when building with UDK.
  6560. # IMPORTANT: Use sco32v506a target for 5.0.6a.
  6561. sco32v506net:
  6562.     @echo TCP/IP networking added...
  6563.     $(MAKE) "MAKE=$(MAKE)" sco32v500net KTARGET=$${KTARGET:-$(@)} \
  6564.     "KFLAGS=-DSCO_OSR505 -DSCO_OSR506 -b elf -DPOSIX $(KFLAGS)"
  6565.  
  6566. #SCO OpenServer 5.0.6a, no networking, SCO development tools.
  6567. #This one has patched sio drivers that, for the first time,
  6568. #actually handle modem signals correctly.
  6569. # Add -DDCLTIMEVAL when building with UDK.
  6570. sco32v506a:
  6571.     $(MAKE) "MAKE=$(MAKE)" sco32v500 KTARGET=$${KTARGET:-$(@)} \
  6572.     "KFLAGS=-DSCO_OSR505 -DSCO_OSR506 -DSCO_OSR506A -DNEEDMDMDEFS \
  6573.     -b elf -DPOSIX $(KFLAGS)"
  6574.  
  6575. #SCO OpenServer 5.0.6 with networking, SCO development tools.
  6576. # Add -DDCLTIMEVAL when building with UDK.
  6577. sco32v506anet:
  6578.     @echo TCP/IP networking added...
  6579.     $(MAKE) "MAKE=$(MAKE)" sco32v500net KTARGET=$${KTARGET:-$(@)} \
  6580.     "KFLAGS=-DSCO_OSR505 -DSCO_OSR506 -DSCO_OSR506A -DNEEDMDMDEFS \
  6581.     -b elf -DPOSIX $(KFLAGS)"
  6582.  
  6583. #Tandy 16/6000 with Xenix 3.0
  6584. #Add more -DNOxxx options to remove features if program won't load.
  6585. #Successful operation is a function of program size, physical memory,
  6586. #available swap space, etc.  The following stripped-down configuration
  6587. #seems to work on most Tandy 6000s.  NOTE: "-+" means allow long variable
  6588. #names, needed for C-Kermit 6.0 because some identifiers are not unique
  6589. #within the first six characters.
  6590. #C-Kermit 7.0 does not build here; "too many defines".
  6591. trs16:
  6592.     @echo 'Making C-Kermit $(CKVER) for Tandy 16/6000, Xenix 3.0...'
  6593.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  6594.     "CFLAGS = -+ -DATTSV -DTRS16 -DNOMKDIR -DDCLPOPEN -DCK_CURSES \
  6595.     -DNODEBUG -DNOTLOG -DNOHELP -DNOSCRIPT -DNOCSETS -DNOIKSD \
  6596.     -DNOREDIRECT -DNOSYSLOG -DNOPUTENV -DNOREALPATH -DNOLEARN \
  6597.     $(KFLAGS) -O" "LIBS= -lcurses -ltermcap" "LNKFLAGS = -+ -n -s"
  6598.  
  6599. #MINIX/2.0 32 Bit version for intel 386+ running the POSIX-compliant MINIX
  6600. # version 2.0 (The definition of fatal avoids a conflict with a symbol by
  6601. # the same name in the curses library.) It is impossible to compile with
  6602. # network support since Minix does not support Berkeley sockets.
  6603. # Note: use chmem liberally on the compiler passes, make, and the final
  6604. # kermit executable. (3 megabytes of memory for each is sufficient.)
  6605. # From Terry McConnell, Syracuse U, and Will Rose.  Will says:
  6606. # The stacks for make and some compiler passes needed to be increased
  6607. # with chmem as follows:
  6608. #   make 1MB
  6609. #   /usr/lib/em_cemcom.ansi 3MB
  6610. #   /usr/lib/em_opt 1MB
  6611. #   /usr/lib/i386/cg 1MB
  6612. #   /usr/lib/i386/as 1MB
  6613. # The compiler temporary directory was set to /usr/tmp via the TMPDIR
  6614. # environment variable; more than 1MB of temporary space was needed.
  6615. # Kermit itself needs at least 1MB of stack.
  6616. minix20:
  6617.     @echo 'Making C-Kermit $(CKVER) for MINIX 2.0/386...'
  6618.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} EXT=o \
  6619.     "CFLAGS=  -wo -DV7 -DMINIX2 -DMINIX -DSIG_V -D_POSIX_SOURCE \
  6620.     -DCKCPU=\\\"i-386\\\" -DNOIKSD -Dfatal=myfatal -DCK_CURSES -DNOLEARN \
  6621.     -DNOSYSLOG -DUSE_MEMCPY -DNOREALPATH $(KFLAGS)" "LIBS= -lcurses"
  6622.  
  6623. #MINIX/386 (PC Minix modified by Bruce Evans in Australia for 386 addressing)
  6624. # For MINIX 1.5+ (but < 2.0)
  6625. minix386:
  6626.     @echo 'Making C-Kermit $(CKVER) for MINIX/386...'
  6627.     @echo 'TOTALLY UNTESTED!'
  6628.     $(MAKE) wermit EXT=s KTARGET=$${KTARGET:-$(@)} \
  6629.     "CFLAGS= -DV7 -DMINIX -D_POSIX_SOURCE -DNOLEARN $(KFLAGS)"
  6630.  
  6631. #MINIX/386 Minix modified by Bruce Evans in Australia to use 386 addressing
  6632. minix386gcc:
  6633.     @echo 'Making C-Kermit $(CKVER) for MINIX/386 with gcc...'
  6634.     @echo 'TOTALLY UNTESTED!'
  6635.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC=gcc -g -O" "CC2=gcc -g" \
  6636.     "CFLAGS= -DV7 -DMINIX -D_POSIX_SOURCE -DNOLEARN $(KFLAGS)"
  6637.  
  6638. #MINIX - 68k version with ACK compiler.
  6639. # If you have trouble compiling or running wart, "touch wart".
  6640. # If it still doesn't work, "touch ckcpro.c".
  6641. # The version configured below has many features removed, including
  6642. # the TRANSMIT, MSEND, HELP, and SCRIPT commands, international
  6643. # character set support, and the entire script programming language.
  6644. # But it does have an interactive command parser.
  6645. # Make sure make(1) has (at least) 100000 chmemory!
  6646. # If you are using the Amsterdam C compiler, you might have to add "-D__ACK__".
  6647. minix68k:
  6648.     @echo 'Making C-Kermit $(CKVER) for MINIX 68k with ACK...
  6649.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  6650.     "CFLAGS= -DV7 -DMINIX -D_MINIX -D_POSIX_SOURCE -DNOLEARN \
  6651.     -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG \
  6652.     -DNOSCRIPT -DNOCSETS -DNOSPL $(KFLAGS) \
  6653.     -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t -DSIG_V"
  6654.  
  6655. #MINIX - 68k version with c68 compiler.
  6656. # If you have trouble compiling or running wart, "touch wart" or
  6657. # "touch ckcpro.c". Compiling ckudia.c (no -DNODIAL!) might fail. :-(
  6658. # Give c68 250000 bytes of stack+heap; make sure make(1) has at least
  6659. # 100000 chmemory.  On a 1MB Atari ST this means that the recursive
  6660. # call of make fails due to memory shortage.  Try "make -n minixc68 >makeit",
  6661. # followed by ". makeit".  Otherwise, as above.
  6662. minixc68:
  6663.     @echo 'Making C-Kermit $(CKVER) for MINIX 68k with c68...
  6664.     $(MAKE) wermit "CC= cc -c68" KTARGET=$${KTARGET:-$(@)} \
  6665.     "CFLAGS= -DV7 -DMINIX -D_MINIX -D_POSIX_SOURCE -DNOLEARN \
  6666.     -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG \
  6667.     -DNOSCRIPT -DNOCSETS -DNOSPL $(KFLAGS) \
  6668.     -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t -DSIG_V"
  6669.  
  6670. #MINIX - 68k version with c68 compiler.
  6671. #A variation on the above that was recently (Sep 95) reported to work.
  6672. minixc68a:
  6673.     @echo 'Making C-Kermit $(CKVER) for MINIX 68k with c68...
  6674.     $(MAKE) wermit "CC= cc -c68" KTARGET=$${KTARGET:-$(@)} \
  6675.     "CFLAGS= -DV7 -DMINIX -D_MINIX -D_POSIX_SOURCE \
  6676.     -DCK_ANSIC -DNODEBUG -DNOTLOG -DMINIDIAL -DEXTEN -DMYCURSES \
  6677.     -DNOSCRIPT -DNOCSETS -DNOSPL -DNOJC -DDIRENT -DNOLEARN \
  6678.     -DNOSETKEY -DNOESCSEQ $(KFLAGS) \
  6679.     -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t -DSIG_V"
  6680.  
  6681. #MIPS Computer Systems with UMIPS RISC/OS 4.52 = AT&T UNIX System V R3.0.
  6682. #Remove -DNOJC if job control can be safely used.
  6683. mips:
  6684.     @echo 'Making C-Kermit $(CKVER) for MIPS RISC/OS...'
  6685.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  6686.     "CFLAGS = -DMIPS -DDIRENT -DCK_POLL -DNOJC -DNOLEARN -DPID_T=int \
  6687.     -DGID_T=gid_t -DUID_T=uid_t -i -O1500 $(KFLAGS)"
  6688.  
  6689. #As above, but with TCP/IP and fullscreen support.
  6690. mipstcpc:
  6691.     @echo 'Making C-Kermit $(CKVER) for MIPS RISC/OS...'
  6692.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  6693.     "CFLAGS = -DMIPS -DDIRENT -DCK_POLL -DNOJC \
  6694.     -DTCPSOCKET -DCK_CURSES -I/usr/include/bsd \
  6695.     -DPID_T=int -DGID_T=gid_t -DUID_T=uid_t -i -O1500 $(KFLAGS)" \
  6696.     "LIBS = -lcurses -lbsd"
  6697.  
  6698. #Motorola Delta System V/68 R3, signal() is void rather than int.
  6699. #Uses dirent.h and Honey DanBer uucp.  Supports TCP/IP.
  6700. #After building, use "mcs -d" to reduce size of the executable program.
  6701. sv68r3:
  6702.     @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/68 R3...'
  6703.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  6704.     "CFLAGS = -DSVR3 -DSV68 -DDIRENT -DHDBUUCP -DNO_DNS_SRV -DTCPSOCKET \
  6705.     -DNOUNICODE -DNOLEARN $(KFLAGS) -O" "LNKFLAGS ="
  6706.  
  6707. #Motorola Delta System V/68 R3V5, signal() is void rather than int.
  6708. #Uses dirent.h and Honey DanBer UUCP.  Supports TCP/IP.
  6709. #After building, use "mcs -d" to reduce size of the executable program.
  6710. sv68r3v5:
  6711.     @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/68 R3V5'
  6712.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  6713.     "CFLAGS = -DSVR3 -DSV68 -DDIRENT -DHDBUUCP -DNO_DNS_SRV \
  6714.     -DTCPSOCKET -DINADDRX -DNOUNICODE -DFNFLOAT -DNOLEARN $(KFLAGS) -O" \
  6715.     "LNKFLAGS =" "LIBS = -linet -lm"
  6716.  
  6717. #Motorola MVME147 System V/68 R3 V5.1. Requires gcc 2.1 to compile.
  6718. #After building, use "mcs -d" to reduce size of the executable program.
  6719. sv68r3v51:
  6720.     @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/68 R3V5.1'
  6721.     $(MAKE) wermit "CC=gcc-delta" "CC2=gcc-delta" \
  6722.     KTARGET=$${KTARGET:-$(@)} \
  6723.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DNODEBUG -DNO_DNS_SRV -DNOLEARN \
  6724.     -DNOUNICODE -DFNFLOAT -DSV68 $(KFLAGS) -O2 -v -ftraditional" \
  6725.     "LNKFLAGS = -s -v" "LIBS = -lm881 -lm"
  6726.  
  6727. #Motorola MVME147 System V/68 R3V6. derived from Motorola Delta System R3V5.
  6728. #Checked on larger Motorola System V/68 R3V6 (with NSE Network Services Ext.)
  6729. #After building, use "strip" to reduce size of the executable program.
  6730. # "LIBS = -lnsl" removed in C-Kermit 6.1 - put back if needed.
  6731. # "LIBS = lm" added in 7.1/8.0 for floating-point math.
  6732. # ckuusr.c clobbers the optimizer.
  6733. sv68r3v6:
  6734.     @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/68 R3V6'
  6735.     $(MAKE) ckuusr.$(EXT) KTARGET=$${KTARGET:-$(@)} \
  6736.     "CFLAGS = -DSV68R3V6 -DDIRENT -DHDBUUCP -DNOLOGIN -DNOINITGROUPS \
  6737.     -DNOSYMLINK -DNOREDIRECT -DNOGFTIMER -DTCPSOCKET -DDCLGETCWD -DSV68 \
  6738.     -DNO_DNS_SRV -DNOUNICODE -DFNFLOAT -DSELECT $(KFLAGS)"
  6739.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  6740.     "CFLAGS = -DSV68R3V6 -DDIRENT -DHDBUUCP -DNOLOGIN -DNOINITGROUPS \
  6741.     -DNOSYMLINK -DNOREDIRECT -DNOGFTIMER -DTCPSOCKET -DDCLGETCWD -DSV68 \
  6742.     -DNO_DNS_SRV -DNOUNICODE -DFNFLOAT -DSELECT $(KFLAGS) -O" \
  6743.     "LNKFLAGS =" "LIBS = -lm"
  6744.  
  6745. #Motorola Delta System V/88 R32, signal() is void rather than int.
  6746. #Uses dirent.h and Honey DanBer uucp.  Needs <sys/utime.h> for setting
  6747. #file dates.  Supports TCP/IP.
  6748. #After building, use "mcs -d" to reduce size of the executable program.
  6749. sv88r32:
  6750.     @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/88 R32...'
  6751.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  6752.     "CFLAGS = -DSV88R32 -DDIRENT -DHDBUUCP -DTCPSOCKET \
  6753.     -DSYSUTIMEH -DCK_CURSES -DNOGETUSERSHELL -DGTODONEARG $(KFLAGS) -O" \
  6754.     "LIBS= -lcurses -lresolv" "LNKFLAGS = -s"
  6755.  
  6756. #Motorola Delta System V/88 R40.  Has <sys/termiox.h>, regular Berkeley
  6757. #sockets library, i.e. in.h and inet.h are not misplaced in sys (rather than
  6758. #netinet and arpa, respectively).  Uses ANSI C constructs, advisory file
  6759. #locking on devices, etc.  curses support added.  Reportedly, the
  6760. #/usr/include/sys/vnode.h file has a bug which must be fixed before this
  6761. #makefile entry can work correctly.  The "if DEBUG" directive at about line
  6762. #320 must be changed to "ifdef DEBUG" (Reportedly, this was fixed in
  6763. #in System V/88 R4.3).
  6764. #After building, use "mcs -d" to reduce size of the executable program.
  6765. sv88r40:
  6766.     @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/88 R40...'
  6767.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  6768.     "CFLAGS = -O -DSVR4 -DMOTSV88R4 -DDIRENT -DHDBUUCP -DSTERMIOX \
  6769.     -DTCPSOCKET -DCK_CURSES -DNOGETUSERSHELL -DGTODONEARG -DFNFLOAT \
  6770.     $(KFLAGS)" \
  6771.     "LIBS= -lsocket -lnsl -lcurses -lresolv -lm" "LNKFLAGS = -s"
  6772.  
  6773. #As above but without the floating-point math library.
  6774. sv88r40nm:
  6775.     @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/88 R40...'
  6776.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  6777.     "CFLAGS = -O -DSVR4 -DMOTSV88R4 -DDIRENT -DHDBUUCP -DSTERMIOX \
  6778.     -DTCPSOCKET -DCK_CURSES -DNOGETUSERSHELL -DGTODONEARG $(KFLAGS)" \
  6779.     "LIBS= -lsocket -lnsl -lcurses -lresolv" "LNKFLAGS = -s"
  6780.  
  6781. #As above but with floating-point math library support \ffp...() functions
  6782. #and S-Expressions.
  6783.  
  6784. #Olivetti X/OS R2.3, 3.x.
  6785. #NOTES:
  6786. # . If you build the executable on 2.x X/OS, it will also run on 3.x.
  6787. # . If you build it on 3.x X/OS, it will NOT run on 2.x.
  6788. # . Kermit can run with no privileges unless the uucp lines are protected,
  6789. #   in which case kermit must be owned by uucp with suid bit set:
  6790. #   chown uucp kermit ; chmod 4111 kermit.
  6791. xos23:
  6792.     @echo 'Making C-Kermit $(CKVER) for Olivetti X/OS...'
  6793.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  6794.     'CFLAGS=-OLM -DOXOS -DTCPSOCKET -DHDBUUCP $(KFLAGS)' \
  6795.     "LIBS=" "LNKFLAGS="
  6796.  
  6797. #As above, but with curses.
  6798. xos23c:
  6799.     @echo 'Making C-Kermit $(CKVER) for Olivetti X/OS with curses...'
  6800.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  6801.     'CFLAGS=-OLM -DOXOS -DTCPSOCKET -DHDBUUCP -DCK_CURSES $(KFLAGS)' \
  6802.     "LIBS=-lcurses" "LNKFLAGS="
  6803.  
  6804. ckuuid:
  6805.     @echo 'building C-Kermit $(CKVER) set-UID/set-GID test programs'
  6806.     $(CC) -DANYBSD -DSAVEDUID -o ckuuid1 ckuuid.c
  6807.     $(CC) -DANYBSD -o ckuuid2 ckuuid.c
  6808.     $(CC) -DANYBSD -DNOSETREU -o ckuuid3 ckuuid.c
  6809.     $(CC) -DANYBSD -DSETEUID -DNOSETREU -o ckuuid4 ckuuid.c
  6810.     $(CC) -o ckuuid5 ckuuid.c
  6811.     @echo 'Read the top of ckuuid.c for directions...for testing'
  6812.     @echo 'you must make these programs setuid and setgid'
  6813.  
  6814. ############################################################################
  6815. # A N T I Q U I T I E S
  6816. #
  6817. # The following are antique targets from C-Kermit 5A or earlier.  They have
  6818. # not been updated or tested in years.  Most of them will need recent features
  6819. # disabled, usually with some combination of -DNOUNICODE, -DNOIKSD, -DNOANSI,
  6820. # -DNOCKGHNLHOST, -DNO_DNS_SRV, -DNOREDIRECT, -DNOREALPATH, -DNOCURSES, etc.
  6821. # They are also missing the KTARGET=$${KTARGET:-$(@)} business.
  6822. # For details see ckuins.txt and ckccfg.txt.
  6823. #
  6824. ############################################################################
  6825.  
  6826. #Berkeley Unix 2.8, 2.9 for PDP-11s with I&D space, maybe also Ultrix-11???
  6827. #C-Kermit(5A) is simply too large (even turning off almost every feature
  6828. #available) to run without both I&D space plus overlays.  The old comment
  6829. #suggested running 'pcc' but that won't help.  Changing 'cc' to 'ckustr.sed'
  6830. #will cause a string extraction to be done, saving D space by moving strings
  6831. #to a file.
  6832. bsd29:
  6833.     @echo Making C-Kermit $(CKVER) for 2.8 or 2.9BSD.
  6834.     @echo Read the makefile if you have trouble with this...
  6835.     $(MAKE) ovwermit \
  6836.     "CFLAGS= -DBSD29 -DNODEBUG -DNOTLOG -DNOCSETS -DNOHELP \
  6837.     -DNOSCRIPT -DNOSPL -DNOXMIT -DNODIAL $(KFLAGS)" \
  6838.     "LNKFLAGS= -i -lndir" "CC= cc " "CC2= cc"
  6839.  
  6840. bsd210:
  6841.     @echo Please use ckubs2.mak to build C-Kermit $(CKVER) for 2.10BSD.
  6842.  
  6843. bsd211:
  6844.     @echo Please use ckubs2.mak to build C-Kermit $(CKVER) for 2.11BSD.
  6845.  
  6846. #Charles River Data Systems Universe with UNOS Version 9.2
  6847. crds:
  6848.     @echo 'Making C-Kermit $(CKVER) for Charles River Data Systems...'
  6849.     make xermit \
  6850.     "CFLAGS = -DATTSV -DNOANSI -DDIRENT -DLONGFN -DTCPSOCKET \
  6851.     -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DNOSETREU \
  6852.     -Dsuspend=ksuspend $(KFLAGS) -O" "LNKFLAGS ="
  6853.  
  6854. #Microport SV/AT for IBM PC/AT 286 and clones, System V R2.
  6855. #The -O flag may fail on some modules (like ckuus2.c), in which case you
  6856. #should compile them by hand, omitting the -O.  If you get "hash table
  6857. #overflow", try adding -DNODEBUG.
  6858. #Also, reportedly this compiles better with gcc than with cc.
  6859. mpsysv:
  6860.     @echo 'Making C-Kermit $(CKVER) for Microport SV/AT 286...'
  6861.     $(MAKE) wermit \
  6862.     "CFLAGS= -DATTSV -DNOLEARN $(KFLAGS) -O -Ml" "LNKFLAGS = -Ml"
  6863.  
  6864. #Microsoft "Xenix/286" e.g. for IBM PC/AT
  6865. xenix:
  6866.     @echo 'Making C-Kermit $(CKVER) for Xenix/286'
  6867.     $(MAKE) wermit \
  6868.     "CFLAGS= -DXENIX -DNOFILEH -DNOLEARN $(KFLAGS) -Dunix -F 3000 -i" \
  6869.     "LNKFLAGS = -F 3000 -i"
  6870.  
  6871. #PC/IX, Interactive Corp System III for IBM PC/XT
  6872. pcix:
  6873.     @echo 'Making C-Kermit $(CKVER) for PC/IX...'
  6874.     $(MAKE) wermit \
  6875.     "CFLAGS= -DPCIX -DISIII -DNOLEARN $(KFLAGS) \
  6876.     -Dsdata=sdatax -O -i" "LNKFLAGS = -i"
  6877.  
  6878. #Integrated Solutions Inc V8S VME 68020
  6879. isi:
  6880.     @echo Making C-Kermit $(CKVER) for 4.2BSD on ISI...
  6881.     $(MAKE) wermit "CC = cc" \
  6882.     "CFLAGS= -DBSD4 -DTCPSOCKET -DINADDRX -DDCLPOPEN -DDEBUG -DNOSETREU \
  6883.     -DCK_CURSES -DNOLEARN $(KFLAGS)" "LIBS = -lcurses -ltermcap"
  6884.  
  6885. #Interactive Corp version of AT&T System III
  6886. #is3: (very old, probably not sufficient for 5A or later)
  6887. #    @echo 'Making C-Kermit $(CKVER) for Interactive System III...'
  6888. #    make wermit "CFLAGS = -DISIII -Ddata=datax -O -i" "LNKFLAGS = -i"
  6889. #The following should work, use it if you don't have gcc.
  6890. #Use is3gcc if you have gcc.
  6891. is3:
  6892.     @echo 'Making C-Kermit $(CKVER) for Interactive System III...'
  6893.     $(MAKE) wermit \
  6894.     "CFLAGS= -DISIII $(KFLAGS) -Ddata=datax -DNAP -DHDBUUCP
  6895.     -DLOCK_DIR=\"/usr/spool/uucp\" -DSIGTYP=void -O -i" "LNKFLAGS = -i"
  6896.  
  6897. #Interactive UNIX System V R3, no network support.  Uses <dirent.h> and Honey
  6898. #DanBer UUCP.  If this entry does not compile correctly, try any or all of the
  6899. #following.  These suggestions also apply more or less to the other is5r3xxx
  6900. #entries that follow this one.
  6901. # . Remove the UID_T and GID_T definitions, or change them as required.
  6902. # . Change -DDIRENT to -DSDIRENT.
  6903. # . Add -DSIGTYP=void.
  6904. # . Remove -g from LNKFLAGS.
  6905. # . Add -DNOANSI to remove compiler complaints about ANSI C constructions
  6906. # . Add other -DNOxxx's to save space (e.g. -DNOCSETS)
  6907. # See the next few makefile entries for related examples.
  6908. # Also see sys5r32is for making a portable i386 SVR3 binary.
  6909. is5r3:
  6910.     @echo 'Making C-Kermit $(CKVER) for Interactive 386/ix or later...'
  6911.     @echo 'If this does not work please read the makefile entry.'
  6912.     $(MAKE) wermit \
  6913.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -g -DNOCSETS -DNOREALPATH \
  6914.     -DUID_T=ushort -DGID_T=ushort -DI386IX $(KFLAGS)" \
  6915.     "LNKFLAGS = -g"
  6916.  
  6917. #Interactive Corp System System V R3 with gcc
  6918. is3gcc:
  6919.     @echo 'Making C-Kermit $(CKVER) for Interactive System V R3 / gcc...'
  6920.     $(MAKE) wermit CC=gcc CC2=gcc \
  6921.     'CFLAGS = -D_SYSV3 -DISIII -Ddata=datax -DNAP -DHDBUUCP -DNOREALPATH \
  6922.     -DLOCK_DIR=\"/usr/spool/uucp\" -DSIGTYP=void -O' "LNKFLAGS ="
  6923.  
  6924. #Interactive UNIX System V R3, POSIX variant.  Untested.
  6925. #Uses dirent.h and Honey DanBer uucp.  Read comments in is5r3 entry.
  6926. is5r3p:
  6927.     @echo 'Making C-Kermit $(CKVER) for Interactive 386/ix or later...'
  6928.     $(MAKE) wermit \
  6929.     "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -g -DNOCSETS -DNOREALPATH \
  6930.     -DI386IX -DPOSIX $(KFLAGS)" "LNKFLAGS=" "LIBS=-lcposix"
  6931.  
  6932. #Interactive UNIX SVR3 2.2.1, job control, curses, no net, gcc.
  6933. is5r3gcc:
  6934.     $(MAKE) wermit CC=gcc CC2=gcc \
  6935.     "CFLAGS=-g -posix -DSVR3 -DDIRENT -DNOREALPATH \
  6936.     -DHDBUUCP -O -DNOCSETS -DI386IX -DSVR3JC -DCK_CURSES \
  6937.     $(KFLAGS)" LNKFLAGS="-posix" LIBS="-lcurses -lc_s"
  6938.  
  6939. #Interactive UNIX System V R3 with TCP/IP network support.
  6940. #Needs -linet for net functions.  signal() is void rather than int.
  6941. #Uses dirent.h and Honey DanBer uucp. Read comments in is5r3 entry.
  6942. #Also see is5r3net2 if you have trouble with this entry.
  6943. is5r3net:
  6944.     @echo 'Making C-Kermit $(CKVER) for Interactive 386/ix...'
  6945.     @echo 'If this does not work please read the makefile entry.'
  6946.     $(MAKE) wermit CC="$(CC)" CC2="$(CC2)" \
  6947.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DTCPSOCKET -DNOREALPATH \
  6948.     -DI386IX $(KFLAGS) -O" "LIBS = -linet"
  6949.  
  6950. is5r3netgcc:
  6951.     $(MAKE) is5r3net CC=gcc CC2=gcc
  6952.  
  6953. #Interactive UNIX System V R3, no job control, signal() void rather than int.
  6954. #Uses dirent.h and Honey DanBer uucp.  Needs -linet for net functions.
  6955. #Read comments in is5r3 entry.  Use this entry if is5r3net fails.
  6956. #Saves some space by stripping (-s) and using shared library (-lc_s).
  6957. is5r3net2:
  6958.     @echo 'Making C-Kermit $(CKVER) for Interactive 386/ix...'
  6959.     $(MAKE) wermit \
  6960.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DTCPSOCKET -DNOJC -DNOREALPATH \
  6961.     -DSIGTYP=void -DNOANSI -DI386IX $(KFLAGS) -O" \
  6962.     "LNKFLAGS= -s" "LIBS = -linet -lc_s"
  6963.  
  6964. #Interactive UNIX System V R3 (version 2.2 or later) with job control & curses.
  6965. #Uses dirent.h and Honey DanBer UUCP.
  6966. is5r3jc:
  6967.     @echo 'Making C-Kermit $(CKVER) for Interactive Unix 2.2 or later...'
  6968.     $(MAKE) wermit CC="$(CC)" CC2="$(CC2)" \
  6969.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -O -DNOCSETS -DNOREALPATH \
  6970.     -DUID_T=ushort -DGID_T=ushort -DI386IX -DSVR3JC -DCK_CURSES \
  6971.     -DPOSIX_JC -DCK_REDIR -DCK_POLL -DDCLGETCWD \
  6972.     $(KFLAGS)" "LIBS=-lcurses -lc_s -linet"
  6973.  
  6974. is5r3jcgcc:
  6975.     $(MAKE) is5r3jc CC="gcc -DCK_ANSILIBS -DDCGPWNAM -O4" CC2=gcc \
  6976.     KFLAGS="$(KFLAGS)" LNKFLAGS="$(LNKFLAGS)"
  6977.  
  6978. #Sunsoft/Interactive UNIX System V R3 (version 2.2 or later)
  6979. #with job control, curses, and TCP/IP networking.
  6980. #Uses dirent.h and Honey DanBer UUCP.
  6981. is5r3netjc:
  6982.     @echo 'Making C-Kermit $(CKVER) for Interactive Unix 2.2 or later...'
  6983.     $(MAKE) wermit CC="$(CC)" CC2="$(CC2)" \
  6984.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -O -DNOCSETS -DNOREALPATH \
  6985.     -DUID_T=ushort -DGID_T=ushort -DI386IX -DSVR3JC -DCK_CURSES \
  6986.     -DPOSIX_JC -DCK_REDIR -DTCPSOCKET -DSELECT \
  6987.     $(KFLAGS)" "LIBS=-linet -lcurses -lc_s"
  6988.  
  6989. is5r3netjcgcc:
  6990.     $(MAKE) is5r3netjc CC="gcc -DCK_ANSILIBS -DDCGPWNAM -O4" CC2=gcc \
  6991.     KFLAGS="$(KFLAGS)" LNKFLAGS="$(LNKFLAGS)"
  6992.  
  6993. #Masscomp System III
  6994. rtu:
  6995.     @echo 'Making C-Kermit $(CKVER) for Masscomp RTU System III...'
  6996.     $(MAKE) wermit \
  6997.     "CFLAGS= -UFIONREAD -DATTSV $(KFLAGS) -O" "LNKFLAGS =" "LIBS= -ljobs"
  6998.  
  6999. #Masscomp/Concurrent RTU 4.0 or later, Berkeley environment.
  7000. #Includes <ndir.h> = /usr/include/ndir.h
  7001. #Note "LIBS = -lndir" might not be necessary because of "ucb make".
  7002. rtubsd:
  7003.     @echo 'Making C-Kermit $(CKVER) for Masscomp RTU 4.1A...'
  7004.     ucb make wermit \
  7005.     "CFLAGS= -DBSD4 -DRTU -DNDIR -DHDBUUCP -DTCPSOCKET $(KFLAGS)" \
  7006.     "LIBS = -lndir"
  7007.  
  7008. #Masscomp/Concurrent RTU 4.0 or later, same as above,
  7009. #Includes "usr/lib/ndir.h"
  7010. #Note "LIBS = -lndir" might not be necessary because of "ucb make".
  7011. rtubsd2:
  7012.     @echo 'Making C-Kermit $(CKVER) for Masscomp RTU 4.1A...'
  7013.     ucb make wermit \
  7014.     "CFLAGS= -DBSD4 -DRTU -DXNDIR -DHDBUUCP $(KFLAGS)" \
  7015.     "LIBS = -lndir"
  7016.  
  7017. #Masscomp/Concurrent RTU 4.0 or later, same as above,
  7018. #Includes <sys/ndir.h>
  7019. #Note "LIBS = -lndir" might not be necessary because of "ucb make".
  7020. rtubsd3:
  7021.     @echo 'Making C-Kermit $(CKVER) for Masscomp RTU 4.x BSD...'
  7022.     ucb make wermit "CFLAGS= -DBSD4 -DRTU -DHDBUUCP $(KFLAGS)" \
  7023.     "LIBS = -lndir"
  7024.  
  7025. #Masscomp/Concurrent RTU 4.0 or later, System V R2, using <dirent.h>.
  7026. #In case of problems, add back the -DRTU switch.
  7027. #In case -DTCPSOCKET gives trouble, remove it.
  7028. rtus5:
  7029.     @echo 'Making C-Kermit $(CKVER) for Masscomp RTU 4.x...'
  7030.     $(MAKE) wermit \
  7031.     "CFLAGS= -DATTSV -DHDBUUCP -DDIRENT -DTCPSOCKET $(KFLAGS)"
  7032.  
  7033. #Masscomp/Concurrent RTU 4.x, System V R3, using <dirent.h>.
  7034. #Use this one if rtus5 gives warnings about pointer type mismatches.
  7035. #In case of problems, add back the -DRTU switch.
  7036. rtus5r3:
  7037.     @echo 'Making C-Kermit $(CKVER) for Masscomp RTU Sys V R3...'
  7038.     $(MAKE) wermit "CFLAGS= -DSVR3 -DHDBUUCP -DDIRENT $(KFLAGS)"
  7039.  
  7040. #DEC Pro-3xx with Pro/Venix V1.0 or V1.1
  7041. # Requires code-mapping on non-I&D-space 11/23 processor, plus some
  7042. # fiddling to get interrupt targets into resident code section.
  7043. # This almost certainly doesn't work any more.
  7044. provx1:
  7045.     @echo 'Making C-Kermit $(CKVER) for DEC Pro-3xx, Pro/Venix 1.x...'
  7046.     $(MAKE) wart "CFLAGS= -DPROVX1 $(KFLAGS)" "LNKFLAGS= "
  7047.     $(MAKE) wermit "CFLAGS = -DPROVX1 -DNOFILEH -md780" \
  7048.         "LNKFLAGS= -u _sleep -lc -md780"
  7049.  
  7050. #Nixdorf Targon/31.
  7051. #AT&T UNIX System V R3, signal() is void rather than int.
  7052. #Uses dirent.h without Honey DanBer uucp.
  7053. t31tos40x:
  7054.     @echo 'Making C-Kermit $(CKVER) for Targon/31 with TOS 4.0.xx...'
  7055.         $(MAKE) wermit \
  7056.         "CFLAGS= -DSVR3 -DDIRENT $(KFLAGS) -O" \
  7057.         "LNKFLAGS="
  7058.  
  7059. #NCR Tower 1632, OS 1.02
  7060. tower1:
  7061.     @echo 'Making C-Kermit $(CKVER) for NCR Tower 1632, OS 1.02...'
  7062.     $(MAKE) wermit "CFLAGS= -DTOWER1 $(KFLAGS)"
  7063.  
  7064. #NCR Tower 32, OS Release 1.xx.xx
  7065. tower32-1:
  7066.     @echo 'Making C-Kermit $(CKVER) for NCR Tower 32 Rel 1 System V R2...'
  7067.     @echo 'Add KFLAGS=-DISDIRBUG if you get errors about S_ISREG/S_ISDIR.'
  7068.     $(MAKE) wermit \
  7069.     "CFLAGS = -DATTSV $(KFLAGS) -O" "LNKFLAGS = -n"
  7070.  
  7071. #NCR Tower 32, OS Release 2.xx.xx
  7072. tower32-2:
  7073.     @echo 'Making C-Kermit $(CKVER) for NCR Tower 32 Rel 2 System V R2...'
  7074.     $(MAKE) wermit \
  7075.     "CFLAGS = -DATTSV -DHDBUUCP $(KFLAGS) -O2" \
  7076.     "LNKFLAGS = -n"
  7077.  
  7078. #NCR Tower 32, OS Releases based on System V R3
  7079. #Don't add -DNAP (doesn't work right) or -DRDCHK (not available in libc).
  7080. tower32:
  7081.     @echo 'Making C-Kermit $(CKVER) for NCR Tower 32 System V R3...'
  7082.     $(MAKE) wermit \
  7083.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DNOSYSIOCTLH $(KFLAGS) \
  7084.     -DUID_T=ushort -DGID_T=ushort -O1"
  7085.  
  7086. #NCR Tower 32, OS Releases based on System V R3
  7087. tower32g:
  7088.     @echo 'Making C-Kermit $(CKVER) for NCR Tower 32 System V R3, gcc...'
  7089.     $(MAKE) wermit "CC = gcc" \
  7090.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DNOSYSIOCTLH $(KFLAGS) \
  7091.     DUID_T=ushort -DGID_T=ushort -O -fstrength-reduce -fomit-frame-pointer"
  7092.  
  7093. #Fortune 32:16, For:Pro 1.8 (mostly like 4.1bsd)
  7094. ft18:
  7095.     @echo 'Making C-Kermit $(CKVER) for Fortune 32:16 For:Pro 1.8...'
  7096.     $(MAKE) wermit \
  7097.     "CFLAGS= -DNODEBUG -DBSD4 -DFT18 -DNOFILEH $(KFLAGS) \
  7098.     -DPID_T=short"
  7099.  
  7100. #Fortune 32:16, For:Pro 2.1 (mostly like 4.1bsd).
  7101. #The modules that break the optimizer are compiled separately.
  7102. ft21:
  7103.     @echo 'Making C-Kermit $(CKVER) for Fortune 32:16 For:Pro 2.1...'
  7104.     $(MAKE) ckuusx.$(EXT) "CFLAGS= -DNODEBUG -DBSD4 -DFT21 -DNOFILEH \
  7105.     -SYM 800  -DCK_CURSES $(KFLAGS) -DPID_T=short" \
  7106.     "LNKFLAGS= -n -s" "LIBS= -lcurses -ltermcap -lv -lnet"
  7107.     $(MAKE) ckuxla.$(EXT) "CFLAGS= -DNODEBUG -DBSD4 -DFT21 -DNOFILEH \
  7108.     -SYM 800  -DCK_CURSES $(KFLAGS) -DPID_T=short" \
  7109.     "LNKFLAGS= -n -s" "LIBS= -lcurses -ltermcap -lv -lnet"
  7110.     $(MAKE) ckudia.$(EXT) "CFLAGS= -DNODEBUG -DBSD4 -DFT21 -DNOFILEH \
  7111.     -SYM 800  -DCK_CURSES $(KFLAGS) -DPID_T=short" \
  7112.     "LNKFLAGS= -n -s" "LIBS= -lcurses -ltermcap -lv -lnet"
  7113.     $(MAKE) wermit \
  7114.     "CFLAGS= -O -DNODEBUG -DBSD4 -DFT21 -DNOFILEH -SYM 800 \
  7115.     -DCK_CURSES $(KFLAGS) -DPID_T=short" \
  7116.     "LNKFLAGS= -n -s" "LIBS= -lcurses -ltermcap -lv -lnet"
  7117.  
  7118. #Valid Scaldstar
  7119. #Berkeleyish, but need to change some variable names.
  7120. valid:
  7121.     @echo 'Making C-Kermit $(CKVER) for Valid Scaldstar...'
  7122.     $(MAKE) wermit \
  7123.     "CFLAGS= -DBSD4 -DNODEBUG -DNOTLOG -Dcc=ccx -DFREAD=1 $(KFLAGS)"
  7124.  
  7125. #IBM IX/370 on IBM 370 Series mainframes
  7126. #Mostly like sys3, but should buffer packets.
  7127. ix370:
  7128.     @echo 'Making C-Kermit $(CKVER) for IBM IX/370...'
  7129.     $(MAKE) wermit "CFLAGS = -DIX370 -DATTSV $(KFLAGS) -i -O" \
  7130.     "LNKFLAGS = -i"
  7131.  
  7132. #Amdahl UTS 2.4 on IBM 370 series compatible mainframes.
  7133. #Mostly like V7, but can't do initrawq() buffer peeking.
  7134. uts24:
  7135.     @echo 'Making C-Kermit $(CKVER) for Amdahl UTS 2.4...'
  7136.     $(MAKE) wermit "CFLAGS=-DV7 -DPROCNAME=\\\"$(PROC)\\\" \
  7137.     -DUTS24 -DBOOTNAME=\\\"$(BOOTFILE)\\\" -DNPROCNAME=\\\"$(NPROC)\\\" \
  7138.     -DNPTYPE=$(NPTYPE) $(DIRECT) $(KFLAGS)"
  7139.  
  7140. #Amdahl UTSV UNIX System V = System V R2 or earlier.
  7141. utsv:
  7142.     @echo 'Making C-Kermit $(CKVER) for Amdahl UTSV...'
  7143.     $(MAKE) wermit \
  7144.     "CFLAGS = -DUTSV $(KFLAGS) -i -O" "LNKFLAGS = -i"
  7145.  
  7146. #Amdahl UTSV UNIX System V = System V R2 or earlier, with TCP sockets library.
  7147. utsvtcp:
  7148.     @echo 'Making C-Kermit $(CKVER) for Amdahl UTSV w/tcp...'
  7149.     $(MAKE) wermit "CFLAGS = \
  7150.     -DTCPSOCKET -DUTSV $(KFLAGS) -i -O" "LNKFLAGS = -i" \
  7151.     "LIBS = -lsocket"
  7152.  
  7153. #BBN C/70 with IOS 2.0
  7154. #Mostly Berkeley-like, but with some ATTisms
  7155. c70:
  7156.     @echo 'Making C-Kermit $(CKVER) for BBN C/70 IOS 2.0...'
  7157.     $(MAKE) wermit "CFLAGS= -DBSD4 -DC70 $(KFLAGS)"
  7158.  
  7159. #Zilog ZEUS 3.21
  7160. zilog:
  7161.     @echo 'Making C-Kermit $(CKVER) for Zilog Zeus 3.21...'
  7162.     $(MAKE) wermit \
  7163.     "CFLAGS = -DATTSV -DZILOG -DNODEBUG $(KFLAGS) -i -O" \
  7164.     "LNKFLAGS = -i -lpw"
  7165.  
  7166. #Whitechapel MG-1 Genix 1.3
  7167. white:
  7168.     @echo 'Making C-Kermit $(CKVER) for Whitechapel MG-1 Genix 1.3...'
  7169.     @touch ckcpro.c
  7170.     $(MAKE) wermit "CFLAGS= -DBSD4 -Dzkself()=0  $(KFLAGS)"
  7171.  
  7172. #Pixel 1000
  7173. pixel:
  7174.     @echo 'Making C-Kermit $(CKVER) for Pixel 1000...'
  7175.     $(MAKE) wermit "CFLAGS= -DBSD4 -Dzkself()=0 $(KFLAGS)"
  7176.  
  7177. ptx:
  7178.     $(MAKE) "MAKE=$(MAKE)" dynixptx12
  7179.  
  7180. #CDC VX/VE 5.2.1
  7181. vxve:
  7182.     @echo 'Making C-Kermit $(CKVER) for CDC VX/VE 5.2.1...'
  7183.     $(MAKE) wermit \
  7184.     "CFLAGS = -DATTSV -DVXVE -DNODEBUG -DNOTLOG $(KFLAGS) -i -O" \
  7185.     "LNKFLAGS = -i"
  7186.  
  7187. #DIAB DS90 or LUXOR ABC-9000 with pre-5.2 DNIX.  Sys V with nap() and rdchk().
  7188. # nd = no opendir(), readdir(), closedir(), etc.
  7189. # Some of the modules fail to compile with -O.
  7190. dnixnd:
  7191.     @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with very old DNIX 5.2.'
  7192.     $(MAKE) wermit \
  7193.     "CFLAGS = -DATTSV -DNAP -DRDCHK -DDCLPOPEN \
  7194.     -U__STDC__ $(KFLAGS)"
  7195.  
  7196. #DIAB DS90 with DNIX 5.2.  Sys V with nap() and rdchk().
  7197. # This one has opendir(), readdir(), closedir(), etc.
  7198. # Some of the modules fail to compile with -O.
  7199. dnix:
  7200.     @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with old DNIX 5.2...'
  7201.     $(MAKE) wermit \
  7202.     "CFLAGS = -DATTSV -DNAP -DRDCHK -DDIRENT  \
  7203.     -U__STDC__ $(KFLAGS)"
  7204.  
  7205. #DIAB DS90 with DNIX 5.2.  Sys V with nap() and rdchk().
  7206. # As above, but with curses and TCP/IP.
  7207. # You might get complaints about redefinition of O_RDONLY, etc, because
  7208. # of bugs in the DNIX header files, which can be fixed by adding #ifndef...
  7209. # around the offending definitions in the header files.
  7210. dnixnetc:
  7211.     @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with old DNIX 5.2...'
  7212.     $(MAKE) wermit \
  7213.     "CFLAGS = -DATTSV -DNAP -DRDCHK -DDIRENT  \
  7214.     -DTCPSOCKET -DCK_CURSES -I/usr/include/bsd -U__STDC__ $(KFLAGS)" \
  7215.     "LIBS = -ln -lcurses"
  7216.  
  7217. #DIAB DS90 with DNIX 5.3 or later, with HDB UUCP, nap() and rdchk().
  7218. dnix5r3:
  7219.     @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with DNIX 5.3...'
  7220.     @echo 'with Honey DanBer UUCP'
  7221.     $(MAKE) wermit \
  7222.     "CFLAGS = -DSVR3 -DHDBUUCP -DNAP -DRDCHK -DDIRENT \
  7223.     -DCK_CURSES -DRENAME $(KFLAGS) -O" "LIBS= -lcurses"
  7224.  
  7225. #DIAB DS90 with DNIX 5.3 or later, with HDB UUCP, nap() and rdchk() + TCP/IP
  7226. dnix5r3net:
  7227.     @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with DNIX 5.3...'
  7228.     @echo 'with Honey DanBer UUCP and TCP/IP'
  7229.     $(MAKE) wermit \
  7230.     "CFLAGS = -DSVR3 -DHDBUUCP -DNAP -DRDCHK -DDIRENT \
  7231.     -DTCPSOCKET -DCK_CURSES -DRENAME $(KFLAGS) -O \
  7232.     -I/usr/include/bsd" "LIBS = -ln -lcurses"
  7233.  
  7234. #DIAB DS90 with DNIX 5.3 2.2 or later, with HDB UUCP, nap() and rdchk(),
  7235. #ANSI C compilation and libraries.
  7236. #Note that for DNIX 5.3 2.2 you have to correct a bug in /usr/include/stdlib.h:
  7237. #change "extern    void free(char *str);"
  7238. #to     "extern void free(void *str);"
  7239. #NOTE: This bug is reportedly fixed in DNIX 5.3 2.2.1.
  7240. #Should you get fatal errors caused by harmless pointer-type mismatches,
  7241. #like between signed and unsigned char, just remove -X7.
  7242. dnix5r3ansi:
  7243.     @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with DNIX 5.3...'
  7244.     @echo 'with ANSI C Honey DanBer UUCP'
  7245.     $(MAKE) wermit \
  7246.     "CFLAGS = -DSVR3 -DDIAB -DHDBUUCP -DNAP -DRDCHK -DDIRENT \
  7247.     -DCK_ANSILIBS -DCK_CURSES -DRENAME -O -X7 -X9 $(KFLAGS)" \
  7248.     "LIBS= -lcurses"
  7249.  
  7250. #DIAB DS90 with DNIX 5.3 2.2 or later, with HDB UUCP, nap() and rdchk(),
  7251. # + TCP/IP, ANSI C compilation and libraries.
  7252. #Should you get fatal errors caused by harmless pointer-type mismatches,
  7253. #like between signed and unsigned char, just remove -X7.
  7254. dnix5r3ansinet:
  7255.     @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with DNIX 5.3...'
  7256.     @echo 'with ANSI C Honey DanBer UUCP'
  7257.     $(MAKE) wermit \
  7258.     "CFLAGS = -DSVR3 -DDIAB -DHDBUUCP -DNAP -DRDCHK -DDIRENT \
  7259.     -DTCPSOCKET -DCK_ANSILIBS -DCK_CURSES -DRENAME -O -X7 -X9 $(KFLAGS) \
  7260.     -I/usr/include/bsd" "LIBS= -ln -lcurses"
  7261.  
  7262. # QNX 4.21 and above, 32-bit version, Watcom C32 10.6, fully configured,
  7263. # except no job control because QNX 4.x does not support it.  New NCURSES
  7264. # library used instead of CURSES.
  7265. #
  7266. # -Oatx optimizes to favor speed over size: loop optimization, inline fn's.
  7267. # -Os favors size over speed.  Saves 30-40K out of about 1.75M.
  7268. # -3r = generate 386 code with register-based arg passing.
  7269. # -3s = generate 386 code with stack-based arg passing.
  7270. # -ms = separate code & data 4GB segments (32-bit builds only).
  7271. # -mf = flat memory model code+data in one 4GB segment (ditto).
  7272. # -zc = place literal strings in code segment.
  7273. # -N4M = Big stack (increase the digit upon SIGSEGVs at runtime).
  7274. # chars are unsigned by default (-j makes them signed by default).
  7275. # -NOUUCP is included because QNX doesn't use it.
  7276. # Add these to the end if you like but they dump core on my QNX 4.25 system:
  7277. #
  7278. #    @wermit -h >use.qnx
  7279. #    @usemsg wermit use.qnx
  7280. #    @rm use.qnx
  7281. #
  7282. # If you get warnings about HEADER or C_IN add -DNO_DNS_SRV.
  7283. qnx32:
  7284.     @echo 'Making C-Kermit $(CKVER) for QNX 4.2x, 32-bit...'
  7285.     $(MAKE) xermit \
  7286.     "LNKFLAGS = -N4M -3r" \
  7287.     "CFLAGS = -ms -3r -DQNX -DTCPSOCKET -DCK_CURSES -DNOGETUSERSHELL \
  7288.     -DCK_WREFRESH -DCK_REDIR -DSELECT -DSELECT_H -DCK_RTSCTS -DNOJC \
  7289.     -DNOINITGROUPS -DNOUUCP -DCK_ANSIC -DPID_T=pid_t -Oatx -zc $(KFLAGS)" \
  7290.     "LIBS= -lsocket -lncurses -ltermcap"
  7291.  
  7292. # As above but no networking since some QNX systems do not have TCP/IP
  7293. # installed, or the TCP/IP developers kit, which includes all the needed
  7294. # header files.  This entry has not been tested on a QNX system that, in
  7295. # fact, does not have TCP/IP installed; some adjustments might be necessary,
  7296. # in particular regarding the use of select(): is -lsocket needed, can we
  7297. # get the needed definitions from non-TCP/IP header files (FD_SET, etc)?
  7298. qnx32nonet:
  7299.     @echo 'Making C-Kermit $(CKVER) for QNX 4.2x, 32-bit, no net...'
  7300.     $(MAKE) xermit \
  7301.     "LNKFLAGS = -N4M -3r" \
  7302.     "CFLAGS = -3r -ms -DQNX -DNONET -DNOIKSD -DCK_CURSES \
  7303.     -DCK_WREFRESH -DCK_REDIR -DSELECT -DSELECT_H -DCK_RTSCTS -DNOJC \
  7304.     -DNOUUCP -DCK_ANSIC -DPID_T=pid_t -Oatx -zc $(KFLAGS)" \
  7305.     "LIBS= -lsocket -lncurses -ltermcap"
  7306.     @wermit -h >use.qnx
  7307.     @usemsg wermit use.qnx
  7308.     @rm use.qnx
  7309.  
  7310. # Synonym for qnx32.
  7311. qnx:
  7312.     $(MAKE) qnx32 "KFLAGS=$(KFLAGS)"
  7313.  
  7314. # QNX 4.21 and above, 16-bit version, Watcom C 8.5 - and higher on i286 PCs
  7315. # and above.
  7316. #
  7317. #    IMPORTANT: Do not use Watcom C 10.6!!!
  7318. #    If you have it installed, add "-v9.52 to CFLAGS"
  7319. #
  7320. # NOTE: QNX 4.23 onward does not work on 286's anyway.
  7321. # Stacksize 26000, objects larger than 100 bytes in their own segments,
  7322. # string constants to the codesegment, etc.  Fully configured except job ctrl.
  7323. # This entry works for building a 16-bit executable on a 32-bit system, but
  7324. # has not been tested on a 16-bit system.  Uses large memory model, links
  7325. # explicitly with large-model sockets library.  Correct-model curses library
  7326. # is chosen automatically.  See comment in qnx32 entry about -DNOUUCP.
  7327. #
  7328. # WARNING:
  7329. #
  7330. # Watcom C prior to 10.6 never had released curses library. To link against it,
  7331. # you must obtain ported free curses source from ftp://ftp.qnx.com/usr/free,
  7332. # then compile and build library (cursesl.lib) and place it in /usr/lib.  You
  7333. # must also copy curses.h to /usr/include.  Be aware that if you have Watcom
  7334. # 10.6 installed, you should already have curses.h, which is the new ncurses
  7335. # library. You must back it up and use free curses.h instead, since ncurses is
  7336. # only for 32-bit applications and some definitions in these files are
  7337. # different (e.g., clearok()).  For safety, curses is not defined in build.
  7338. #
  7339. # In 7.0 -DNOHELP added to keep ckuus2.c from blowing up; NOCSETS and NOSPL
  7340. # added because ckuus4 was blowing up, and NOFLOAT just because it seemed
  7341. # dangerous (remove -DNOFLOAT if you want to try it), The result works OK
  7342. # except for some mysterious beeps upon termination of the top-level keyword.
  7343. #
  7344. # Things to try next time we get in trouble:
  7345. #  . Change -zt100 to something smaller like -zt25
  7346. #  . Change -Oatx to -Omilerat (enable stack checking)
  7347. #  . Maybe get rid of -v9.52 -- it's only there because we were warned.
  7348. #
  7349. qnx16:
  7350.     @echo 'Making C-Kermit $(CKVER) for QNX 4.21, 16-bit...'
  7351.     $(MAKE) xermit \
  7352.     "LNKFLAGS = -2 -ml -N 26000" \
  7353.     "CFLAGS = -2 -Oatx -zc -zt100 -ml -DQNX -DQNX16 -DNOUUCP -DNOHELP \
  7354.     -DCK_REDIR -DSELECT -DSELECT_H -DNOJC -DNOGETUSERSHELL -DNOCSETS \
  7355.     -v9.52 -DTCPSOCKET -DCK_RTSCTS -DCK_ANSIC -DNOINITGROUPS -DNOKVERBS \
  7356.     -DNORANDOM -DNOCSETS -DNOSPL -DNOFLOAT -DPID_T=pid_t $(KFLAGS)"
  7357.  
  7358. # QNX 4.1, 16-bit version, with Watcom C 8.5 on i286 PCs and above.
  7359. # stacksize 26000, objects larger than 100 bytes in their own segments,
  7360. # string constants to the codesegment, etc.  Add -DNOUUCP if desired.
  7361. qnx16_41:
  7362.     @echo 'Making C-Kermit $(CKVER) for QNX 4.1, 16-bit...'
  7363.     $(MAKE) xermit \
  7364.     "LNKFLAGS = -mh -N 26000" "CFLAGS = -Wc,-fpc -Wc,-j -DNOGETUSERSHELL \
  7365.     -Wc,-Ols -Wc,-zdf -Wc,-zc -Wc,-zt100 -mh -DPOSIX -DQNX -DDIRENT \
  7366.     -DNOCYRIL -DNODEBUG -DNOMSEND -DMINIDIAL -DNOXMIT -DNOSCRIPT -DNOSPL \
  7367.     -DNOSETKEY -DNOINITGROUPS -DQNX16 -DPID_T=pid_t $(KFLAGS)"
  7368.  
  7369. # QNX Neutrino 2 (pwaechtler@qnx.de) crosscompiled on QNX 4.25.
  7370. # Gets lots of compiler warnings.
  7371. qnx_nto2+:
  7372.     @echo 'Making C-Kermit $(CKVER) for QNX Neutrino 2+ '
  7373.     cc -o wart ckwart.c
  7374.     $(MAKE) xermit \
  7375.     "CC = qcc -Vgcc_ntox86" \
  7376.     "CC2 = qcc -Vgcc_ntox86" \
  7377.     "LNKFLAGS = " \
  7378.     "CFLAGS = -DNEUTRINO -DTCPSOCKET -DCK_CURSES -DNOGETUSERSHELL \
  7379.     -DNOUUCP -DCK_WREFRESH -DCK_REDIR -DSELECT -DSELECT_H -DCK_RTSCTS \
  7380.     -DNOJC -DNOINITGROUPS -DCK_ANSIC -DPID_T=pid_t -DUNIX -DDIRENT \
  7381.     -DMYREAD -DBSD44ORPOSIX -DSVORPOSIX -DNDGPWNAM $(KFLAGS)" \
  7382.     "LIBS= -lsocket -lncurses "
  7383.  
  7384. # QNX 6 (= Neutrino 2.xx) native build (kirussel@cisco.com).
  7385. qnx6:
  7386.     @echo 'Making C-Kermit $(CKVER) for QNX6'
  7387.     $(MAKE) xermit KTARGET=QNX6 \
  7388.     "CFLAGS = -DPOSIX -DCK_POSIX_SIG -DNETPTY -DNOARROWKEYS \
  7389.     -DUSE_TIOCSDTR -DBIGBUFOK -DCKMAXOPEN=100 -DRLOGCODE -DNOREALPATH \
  7390.     -DMAXNAMLEN=48 -DQNX6 -DUSE_TERMIO -DINIT_SPTY \
  7391.     -DCK_CURSES -DCK_WREFRESH -DCK_NEWTERM -DDYNAMIC \
  7392.     -DTCPSOCKET -DNOGETUSERSHELL -DCK_REDIR -DSELECT -DSELECT_H \
  7393.     -DCK_RTSCTS -DNOJC -DSVORPOSIX -DBSD44ORPOSIX -DNOUUCP -DCK_ANSIC \
  7394.     $(KFLAGS) -O" \
  7395.     "LIBS= -lsocket  -lncurses"
  7396.  
  7397. #Ridge 32 with ROS 3.2
  7398. ridge32:
  7399.     @echo 'Making C-Kermit $(CKVER) Ridge 32 ROS 3.2'
  7400.     $(MAKE) wermit \
  7401.     "CFLAGS = -DATTSV -DNOFILEH -DNODEBUG -DNOTLOG $(KFLAGS) -i -O" \
  7402.     "LNKFLAGS = -i"
  7403.  
  7404. #Altos 486, 586, or 986 with Xenix 3.0
  7405. altos:
  7406.     @echo 'Making C-Kermit $(CKVER) for Altos x86 with Xenix 3.0...'
  7407.     $(MAKE) wermit \
  7408.     "CFLAGS= -DATTSV -DA986 -DNODEBUG -DNOTLOG $(KFLAGS) -i -O" \
  7409.     "LNKFLAGS= -i"
  7410.  
  7411. #Altos 986 with Xenix 3.0, as above, but command-line only, minimal size.
  7412. #For systems with small memories.  It might also be necessary to chop certain
  7413. #modules up into smaller pieces, e.g. ckuus3-6, because of symbol table
  7414. #overflow.   If this makefile is too big or complex for the Altos, compile
  7415. #and link by hand or write shell scripts.
  7416. altosc:
  7417.     @echo 'Making C-Kermit $(CKVER) for Altos x86 Xenix 3.0, remote...'
  7418.     $(MAKE) wermit \
  7419.     "CFLAGS= -DATTSV -DA986 -DNODEBUG -DNOTLOG -DNOSCRIPT -DNODIAL \
  7420.     -DNOCSETS -DNOANSI -DNOMSEND -DNOSPL -DNOICP $(KFLAGS) -Mm -O" \
  7421.     "LNKFLAGS= -Mm -s"
  7422.  
  7423. #Altos 986 with Xenix 3.0, as above, but interactive only, minimal size.
  7424. altosi:
  7425.     @echo 'Making C-Kermit $(CKVER) for Altos x86 Xenix 3.0, local...'
  7426.     $(MAKE) wermit \
  7427.     "CFLAGS= -DATTSV -DA986 -DNODEBUG -DNOTLOG -DNOSCRIPT -DNODIAL \
  7428.     -DNOCSETS -DNOANSI -DNOMSEND -DNOSPL -DNOCMDL -DNOFRILLS -DNOHELP \
  7429.     -DNOSETKEY $(KFLAGS) -Mm -O" "LNKFLAGS= -Mm -s"
  7430.  
  7431. # Altos ACS68000 68000 System, UNIX System 3 Release 2, 512k memory.
  7432. # also needs getcwd() external function; see ckuins.txt file.
  7433. # also, sys/types.h needed modifying:
  7434. #   #ifdef __SYS_TYPES_H__, #define ..., #endif
  7435. # also, ckuus2.c MUST be compiled NOOPT else symbol table is destroyed!
  7436. # Submission by Robert Weiner/Programming Plus, rweiner@progplus.com.
  7437. #
  7438. altos3:
  7439.     @echo 'Making C-Kermit $(CKVER) for Altos ACS68k UNIX System III'
  7440.     $(MAKE) ckuus2.$(EXT) "CFLAGS = -DATTSV -DNOCSETS -DNOSETKEY -DNOJC \
  7441.     -DNODIAL -DDCLPOPEN -DNOSCRIPT -DNOHELP $(KFLAGS) -i"
  7442.     $(MAKE) wermit \
  7443.     "CFLAGS = -DATTSV -DNOCSETS -DNOSETKEY -DNOJC \
  7444.     -DNODIAL -DDCLPOPEN -DNOSCRIPT -DNOHELP $(KFLAGS) -i -O" \
  7445.     "LNKFLAGS = -i" "LIBS = getcwd.$(EXT)"
  7446.  
  7447. #MINIX - Original PC version with 64K+64K limit.
  7448. # Reportedly, the linker (asld) can run out of space while linking.  The only
  7449. # way around this is to make a copy of libc.a from which all modules that are
  7450. # not used by Kermit are removed.  If you have trouble compiling or running
  7451. # wart, "touch wart".  If that doesn't help, "touch ckcpro.c".
  7452. # The version configured below has no interactive command parser.
  7453. # If you can build this version successfully, maybe there will be room for
  7454. # a minimal interactive command parser too; try replacing -DNOICP with
  7455. # -DNOSPL, plus every other -DNOxxx flag there is, except for -DNOICP
  7456. # (see ckccfg.txt).
  7457. minix:
  7458.     @echo 'Making C-Kermit $(CKVER) for MINIX, no command parser...
  7459.     @echo 'TOTALLY UNTESTED!'
  7460.     $(MAKE) wermit EXT=s \
  7461.     "CFLAGS= -DV7 -DMINIX -i -D_MINIX -D_POSIX_SOURCE \
  7462.     -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t -DSIG_V \
  7463.     -DNOXMIT -DNOMSEND -DNOFRILLS -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG \
  7464.     -DNOSCRIPT -DNOCSETS -DNOICP -DNOSETKEY $(KFLAGS)" \
  7465.     "LNKFLAGS= -i -T"
  7466.  
  7467. #MINIX - PC version with 64K+64K limit, new (as yet unreleased) ACK 2.0 beta C
  7468. #compiler, which outputs .o object files, rather than .s.  But 'make' still
  7469. #expects .s files, so must be patched to use .o.  Tested on Minix 1.5.10.
  7470. minixnew:
  7471.     @echo 'Making C-Kermit $(CKVER) for MINIX (new ACK 2.0 compiler),'
  7472.     @echo 'no command parser...  TOTALLY UNTESTED!'
  7473.     $(MAKE) wermit \
  7474.     "CFLAGS= -DV7 -DMINIX -i -D_MINIX -D_POSIX_SOURCE \
  7475.     -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t -DSIG_V -DNODIAL \
  7476.     -DNOHELP -DNODEBUG -DNOTLOG -DNOSCRIPT -DNOCSETS -DNOICP $(KFLAGS)" \
  7477.     "LNKFLAGS= -i -T"
  7478.  
  7479. #PFU Compact A Series UNIX System V R3, SX/A TISP V10/L50 (Japan)
  7480. #Maybe the -i link option should be removed?
  7481. sxae50:
  7482.     @echo 'Making C-Kermit $(CKVER) for PFU SX/A V10/L50...'
  7483.     $(MAKE) xermit \
  7484.     "CFLAGS= -DSVR3 -DDIRENT -DsxaE50 -DTCPSOCKET $(KFLAGS) -i -O" \
  7485.     "LNKFLAGS= "
  7486.  
  7487. #Tektronix 6130, 4319, 4301, etc, with UTek OS, /usr/spool/uucp/LCK./...
  7488. #The models that support hardware flow control.
  7489. utek:
  7490.     @echo 'Making C-Kermit $(CKVER) for 4.2BSD/UTek, hardware flow control'
  7491.     $(MAKE) wermit \
  7492.     "CFLAGS= -O -DLCKDIR -DBSD4 -DTCPSOCKET \
  7493.     -DUTEK -DDCLPOPEN -DLOCK_DIR=\\\"/usr/spool/uucp/LCK.\\\" \
  7494.     -DTRMBUFL=2048 -DCK_DTRCTS $(KFLAGS)"
  7495.  
  7496. #Tektronix 4315, 4316, 4317 with UTek OS, /usr/spool/uucp/LCK./...
  7497. #The models that do not fully support hardware flow control.
  7498. uteknohwfc:
  7499.     @echo 'Making C-Kermit $(CKVER) for 4.2BSD/UTek, no h/w flow control'
  7500.     $(MAKE) wermit \
  7501.     "CFLAGS= -O -DLCKDIR -DBSD4 -DTCPSOCKET \
  7502.     -DUTEK -DDCLPOPEN -DLOCK_DIR=\\\"/usr/spool/uucp/LCK.\\\" \
  7503.     -DTRMBUFL=2048 $(KFLAGS)"
  7504.  
  7505. #Tektronix XD88 with  UTekV OS
  7506. utekvr3:
  7507.     @echo 'Making C-Kermit $(CKVER) for Tektronix XD88 UTekV R3...'
  7508.     $(MAKE) wermit \
  7509.     "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP \
  7510.     -DTCPSOCKET -DSYSUTIMEH -DCK_CURSES $(KFLAGS) -O" \
  7511.     "LIBS= -lcurses" "LNKFLAGS= -s"
  7512.  
  7513. #Perkin-Elmer 3200 Xelos R02 or earlier
  7514. ccop1:
  7515.     @echo 'Making C-Kermit $(CKVER) for Xelos & Public Domain Dirent calls'
  7516.     @echo 'or System V R2 or earlier...'
  7517.     $(MAKE) wermit \
  7518.     "CFLAGS = -DATTSV -Dvoid=int -DDIRENT -DCK_CURSES \
  7519.     $(KFLAGS) -O" "LNKFLAGS =" "LIBS= -lcurses -ltermlib"
  7520.  
  7521. #Encore, UMAX 4.3 (BSD) but without acucntrl program.
  7522. encore:
  7523.     $(MAKE) "MAKE=$(MAKE)" umax43 "KFLAGS=$(KFLAGS)"
  7524.  
  7525. #Encore, as above, but with curses file transfer display included.
  7526. encorec:
  7527.     $(MAKE) "MAKE=$(MAKE)" umax43 "KFLAGS=-DCK_CURSES $(KFLAGS)" \
  7528.     "LIBS= -lcurses -ltermcap"
  7529.  
  7530. #Encore, UMAX 4.3 (BSD) but without acucntrl program.
  7531. umax43:
  7532.     @echo Making C-Kermit $(CKVER) for Encore UMAX 4.3...
  7533.     $(MAKE) "MAKE=$(MAKE)" PARALLEL=4 xermit \
  7534.     "CFLAGS= -DBSD43 -DENCORE -DTCPSOCKET $(KFLAGS) -O"
  7535.  
  7536. #Encore, UMAX 4.2 (BSD)
  7537. umax42:
  7538.     @echo Making C-Kermit $(CKVER) for Encore UMAX 4.2...
  7539.     $(MAKE) "MAKE=$(MAKE)" PARALLEL=4 xermit \
  7540.     "CFLAGS= -DBSD4 -DENCORE -DTCPSOCKET $(KFLAGS) -O"
  7541.  
  7542. #Encore 88K UMAX 5.3 with TCP/IP support
  7543. encore88k:
  7544.     @echo 'Making C-Kermit $(CKVER) for Encore 88K UMAX V, TCP/IP...'
  7545.     $(MAKE) xermit \
  7546.     "CFLAGS = -q ext=pcc -DSVR3 -DTCPSOCKET -DDIRENT \
  7547.     -DNOGETID_PROTOS -DHDBUUCP $(KFLAGS) -O" "LNKFLAGS ="
  7548.  
  7549. #Encore 88K UMAX 5.3 with TCP/IP support
  7550. encore88kgcc:
  7551.     @echo 'Making C-Kermit $(CKVER) for Encore 88K UMAX V, TCP/IP, gcc...'
  7552.     $(MAKE) xermit CC=gcc CC2=gcc \
  7553.     "CFLAGS = -DSVR3 -DTCPSOCKET -DDIRENT \
  7554.     -DNOGETID_PROTOS -DHDBUUCP $(KFLAGS) -O" "LNKFLAGS ="
  7555.  
  7556. #SONY NEWS, NEWS-OS 4.01C
  7557. sonynews:
  7558.     @echo Making C-Kermit $(CKVER) for SONY NEWS-OS 4.01C...
  7559.     $(MAKE) xermit "CFLAGS= -DBSD43 -DACUCNTRL -DTCPSOCKET -O"
  7560.  
  7561. #Run Lint on this mess for selected versions.
  7562. #These are pretty much obsolete since ANSI C / gcc.
  7563. lintsun:
  7564.     @echo 'Running Lint on C-Kermit $(CKVER) sources for SunOS version...'
  7565.     lint -x -DSUNOS4 -DDIRENT -DTCPSOCKET -DSAVEDUID \
  7566.     ck[cu]*.c > ckuker.lint.sun
  7567.  
  7568. lintbsd:
  7569.     @echo 'Running Lint on C-Kermit $(CKVER) sources for BSD 4.2 version..'
  7570.     lint -x -DBSD4 -DTCPSOCKET ck[cu]*.c > ckuker.lint.bsd42
  7571.  
  7572. lints5:
  7573.     @echo 'Running Lint on C-Kermit $(CKVER) sources for Sys V version...'
  7574.     lint -x -DATTSV ck[cu]*.c > ckuker.lint.s5
  7575.  
  7576. #Who remembers TECO?
  7577. love:
  7578.     @echo 'Not war?'
  7579.