home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / archives / cku206txt.tar / makefile < prev   
Makefile  |  2002-11-16  |  329KB  |  7,501 lines

  1. # makefile / Makefile / ckuker.mak / CKUKER.MAK
  2. #
  3. # Thu Oct 24 14:33:48 2002
  4. BUILDID=20021024
  5. #
  6. CKVER= "8.0.206"
  7. #
  8. # -- Makefile to build C-Kermit for UNIX and UNIX-like platforms --
  9. #
  10. # Copyright (C) 1985, 2002,
  11. #   Trustees of Columbia University in the City of New York.
  12. #   All rights reserved.  See the C-Kermit COPYING.TXT file or the
  13. #   copyright text in the ckcmai.c module for disclaimer and permissions.
  14. #
  15. # Author: Frank da Cruz, Columbia University
  16. # 612 West 115th Street, New York NY 10025-7799, USA
  17. # E-mail: fdc@columbia.edu
  18. # Fax:    +1 212 662-6442
  19. # Web:    http://www.columbia.edu/kermit/
  20. #
  21. # Contributions from many others.  Special thanks to Jeff Altman for the
  22. # secure-target entries, Peter Eichhorn, assyst GmbH, for the consolidated
  23. # HP-UX entries 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 5.0, "make freebsd50"
  316. # ? for Harris HCX-2900, "make sys5r3"
  317. # ? for Harris Night Hawk 88K or 68K with CX/UX pre-6.1, "make sys5r3"
  318. # ? for Harris Night Hawk 88K or 68K with CX/UX 6.1 or later, "make cx_ux"
  319. # ? for Heurikon, "make sys3"
  320. # ? for HP-3000, MPE/ix, "make posix"?
  321. # + for HP-9000 Series 300 with 4.4BSD, "make bsd44"
  322. # + for HP-9000 Series 500, HP-UX 5.21 and no networking "make hpux0500"
  323. # + for HP-9000 Series 500, HP-UX 5.21 with WIN/TCP 1.2 "make hpux0500wintcp"
  324. # + for HP-9000 Series, HP-UX 6.5, without long filenames,
  325. #     "make hpux0650" or "make hpux0650c"
  326. # + for HP-9000 Series, HP-UX 7.0 or later no long filenames, "make hpux0700sf"
  327. #     or (to include tcp/ip, curses, etc) "make hpux0700sftcpc"
  328. # + for HP-9000 Series with HP-UX 7.0, TCP/IP,long filenames,"make hpux0700lfn"
  329. # + for HP-9000 300/400 Series (680x0) with HP-UX 8.0, TCP/IP, "make hpux0800"
  330. #      or "make hpux0800c"
  331. # + for HP-9000 700/800 Series (PA-RISC), HP-UX 8.0, TCP/IP, "make hpux0800pa"
  332. #      or "make hpux0800pac"
  333. # + for HP-9000 Series with HP-UX 8.0, no TCP/IP, long filenames,
  334. #      "make hpux0800notcp"
  335. # + for HP-9000 Series, HP-UX 9.0 - 9.10, TCP/IP, curses, restricted compiler
  336. #     (no optimization, no ANSI), all models, "make hpux0900".  Read the
  337. #     hpux0900 entry below for more info.
  338. # + for HP-9000 700 and 800 Series, HP-UX 9.x, TCP/IP, curses,
  339. #     HP optimizing ANSI C compiler, "make hpux0900o700".
  340. # + for HP-9000 with Motorola CPUs, HP-UX 9.x, TCP/IP, curses,
  341. #     HP optimizing ANSI C compiler, "make hpux0900mot".
  342. # + for HP-9000 on other CPUs, HP-UX 9.x, TCP/IP, curses,
  343. #     HP optimizing ANSI C compiler, "make hpux0900o".
  344. # + for HP-9000 series, HP-UX 9.x, TCP/IP, curses, gcc, all models,
  345. #     "make hpux0900gcc"
  346. # + for HP-9000 700/800 Series, HP-UX 10.00,10.01,10.10,10.20,10.30, TCP/IP,
  347. #     curses, restricted compiler (no optimization, no ANSI) "make hpux1000".
  348. # + for HP-9000 700/800 Series, HP-UX 10.00,10.01,10.10,10.20,10.30, TCP/IP,
  349. #     curses, HP ANSI/optimizing compiler "make hpux1000o" or "make hpux1000o+"
  350. # + for HP-9000 HP-UX 10.00 or later with gcc, "make hpux1000gcc"
  351. # + for Trusted HP-UX 10.xx "make hpux1000t", "make hpux1000to",
  352. #     or make hpux1000to+"
  353. # + for HP-9000 700/800 Series, HP-UX 11.00,TCP/IP,curses, restricted compiler
  354. #     (no optimization, no ANSI) "make hpux1100".
  355. # + for HP-9000 700/800 Series, HP-UX 11.00,TCP/IP,curses, restricted compiler
  356. #     HP ANSI/optimizing compiler "make hpux1100o" or "make hpux1100o+"
  357. # + for Trusted HP-UX 11.xx "make hpux1100t", "make hpux1100to",
  358. #     make hpux1100to+"
  359. # + for HP-9000 PA-RISC models with NeXTSTEP 3.3, "make nextquadfat".
  360. # + for HP-9000 PA-RISC models with OPENSTEP/Mach 4.1, "make nextquadfat".
  361. # ? for IBM 370 Series with IX/370, "make ix370"
  362. # ? for IBM 370 Series with AIX/370 1.2, "make aix370"
  363. # ? for IBM 370 Series with AIX/370 3.0, "make aix370"
  364. # ? for IBM 370 Series with AIX/ESA 2.1, "make aixesa"
  365. # - for IBM PC/AT 286 & compatibles with Mark Williams Coherent OS,
  366. #     command-line-only version, "make coherent" (version 5A & later too big)
  367. # ? for IBM PC 386 & compatibles with Mark Williams Coherent OS,
  368. #     minimum interactive version, "make coherentmi"
  369. # ? for IBM PC 386 & compatibles with Mark Williams Coherent OS,
  370. #     full interactive version, prior to v4.2, "make coherentmax"
  371. # + for IBM PC 386 & compatibles with Mark Williams Coherent OS 4.2,
  372. #     "make coherent42"
  373. # ? for IBM PC 386 & compatibles with LynxOS 2.0 or 2.1, "make lynx21"
  374. # ? for IBM PC 386 & compatibles with LynxOS 2.2, "make lynx"
  375. # - for IBM PC/AT & compatibles with original MINIX, "make minix" (too big)
  376. # ? for IBM PC family, 386-based, with MINIX/386 1.5, "make minix386"
  377. #     or if you have GNU CC, "make minix386gcc"
  378. # + for IBM PC family, 386-based, with MINIX 2.0, "make minix20"
  379. # + for IBM PS/2 with PS/2 AIX 1.0, 1.1, or 1.2, "make ps2aix" or ps2aixnetc.
  380. # ? for IBM PS/2 with PS/2 AIX 1.3, "make ps2aix3"
  381. # ? for IBM RISC System/6000 with AIX 3.0, "make aix30"
  382. # ? for IBM RISC System/6000 with AIX 3.1.x, "make aix31"
  383. # + for IBM RISC System/6000 with AIX 3.2.0 thru 3.2.5, "make aix32"
  384. # + for IBM RS/6000 or Power Series with AIX 4.1.x, "make aix41"
  385. # + for IBM RS/6000 or Power Series with AIX 4.1.x with gcc, "make aix41g"
  386. # + for IBM RS/6000 or Power Series with AIX 4.1 with X.25, "make aix41x25"
  387. # + for IBM RS/6000 or Power Series with AIX 4.2, "make aix42"
  388. # + for IBM RS/6000 or Power Series with AIX 4.3, "make aix43" or "make aix43g"
  389. # + for IBM RS/6000 or Power Series with AIX 4.4, "make aix44"
  390. # + for IBM RS/6000 or Power Series with AIX 4.5, "make aix45"
  391. # + for IBM RS/6000 or Power Series with AIX 5.0, "make aix50"
  392. # + for IBM RS/6000 or Power Series with AIX 5.1, "make aix51"
  393. # ? for IBM RS/6000 or Power Series with AIX 5.2, "make aix52"
  394. # ? for IBM RS/6000 or Power Series with AIX 5.3, "make aix53"
  395. # ? for IBM RT PC with AIX 2.1, "make sys3"
  396. # + for IBM RT PC with AIX 2.2.1, "make rtaix" or "make rtaixc"
  397. # ? for IBM RT PC with ACIS 4.2, "make bsd"
  398. # ? for IBM RT PC with ACIS 4.3, "make rtacis" or "make bsd KFLAGS=-DNOANSI"
  399. # ? for IBM RT PC with 4.3BSD/Reno, "make bsd44" or "make bsd44c"
  400. # ? for ICL DRS400 or 400E, "make iclsys5r3"
  401. # ? for ICL DRS3000 (80486) with DRS/NX, "make iclsys5r4_486"
  402. # ? for ICL DRS6000 (SPARC) with DRS/NX, "make iclsys5r4"
  403. # + for ICL DRS6000 (SPARC) with DRS/NX 4.2MP 7MPlus, "make iclsys5r4m+"
  404. # ?     Ditto but with IKSD support included, "make iclsys5r4m+iksd"
  405. # ? for Integrated Solutions Inc V8S VME 68020, "make isi"
  406. # ? for Intel 302 with Bell Tech Sys V/386 R3.2, "make sys5r3"
  407. # ? for Intel Xenix/286, "make sco286"
  408. # ? for Interactive System III (PC/IX), "make pcix" or "make is3"
  409. # ? for Interactive System III (PC/IX) with gcc, "make is3gcc"
  410. # ? for Interactive 386/ix 1.0.6 with TCP/IP networking, "make is5r3net2"
  411. # ? for Interactive 386/ix 2.0.x, "make is5r3" or (POSIX) "make is5r3p"
  412. # ? for Interactive 386/ix 2.0.x with TCP/IP networking, "make is5r3net"
  413. #     or "make is5r3net2"
  414. # ? for Interactive 386/ix 2.2.1, job control, curses, no net, gcc,
  415. #     "make is5r3gcc"
  416. # + for Interactive UNIX Sys V R3.2 V2.2 - 4.0 without TCP/IP, "make is5r3jc"
  417. # + for Interactive UNIX Sys V R3.2 V2.2 - 4.0 with TCP/IP, "make is5r3netjc"
  418. # + for Intergraph Clipper, "make clix" or "make clixnet"
  419. # ? for Jolix (see 386BSD)
  420. # + for Red Hat Linux 7.1 (and higher) fully configured (krb5, SSL, etc): 
  421. #     "make redhat71", "make redhat72", "make redhat73", "make redhat80"
  422. #     NOTE: You must use this target for Red Hat 7.1 since it 
  423. #     also includes a workaround for its broken curses library.
  424. #     WARNING: These targets create binaries that include code for
  425. #     strong encryption and are therefore not exportable. DO NOT PUT
  426. #     THESE BINARIES ON US OR CANADIAN WEB OR FTP SITES.
  427. # + for Linux 1.2 and later, "make linux".  Uses ncurses.  This version
  428. #     handles serial speeds up to 460800 bps, Linux FSSTD 1.2, TCP/IP, and
  429. #     should work on both libc and glibc systems.  For static linking, use
  430. #     "make linux LNKFLAGS=-static".  Please read the comments that accompany
  431. #     the linux entry.
  432. # + for Linux builds that fail with "sys/select.h: No such file or directory",
  433. #     "make linuxns"
  434. # + for Linux 1.2 and later but with curses.h and libcurses (rather than
  435. #     ncurses.h and libncurses), use "make linuxc".
  436. # + for Linux 1.2 and later with no curses support at all, "make linuxnc".
  437. # + for Linux on PowerMac (Mklinux DR3), "make mklinux".
  438. # + for Linux 1.2 and later, to build with egcs, "make linuxegcs".
  439. # + for Linux with no TCP/IP, "make linuxnotcp"
  440. # + for Linux with lcc compiler, no TCP/IP, "make linuxnotcp-lcc"
  441. # ? for Linux 1.0 or earlier, "make linux10", or (to remove TCP/IP)
  442. #     "make linuxnotcp".
  443. #     IMPORTANT: Read the comments that accompany the "linux:" entry.
  444. # ? for Mach 2.6 on (anything, e.g. DECstation), "make bsd42" or "make bsd43".
  445. # ? for MachTen (Tenon) 2.1.1.D on (e.g.) Apple Powerbook, "make machten".
  446. # ? for Masscomp RTU AT&T System III, "make rtu"
  447. #   for other Masscomp, see Concurrent.
  448. # ? for Microport SV/AT (System V R2), "make mpsysv" (last edit tested: 144)
  449. # ? for Microport SVR4 2.2, 3.1, or 4.1 "make sys5r4sx"
  450. # ? for Microsoft,IBM Xenix (/286, PC/AT, etc), "make xenix" or "make sco286"
  451. # ? for MIPS System with RISC/os (UMIPS) 4.52 = AT&T SVR3, "make mips"
  452. #     or "make mipstcpc"
  453. # + for MkLinux on Power Macintosh, "make mklinux"
  454. # ? for Modcomp 9730, Real/IX, "make sys5r3" (or modify to use gcc = GLS cc)
  455. # ? for Modcomp Realstar 1000 with REAL/IX D.1, "make sv88r32"
  456. # ? for Motorola Four Phase, "make sys3" or "make sys3nid"
  457. # + for Motorola Delta System V/68 R3, "make sv68r3"
  458. # + for Motorola Delta System V/68 R3V5, "make sv68r3v5"
  459. # + for Motorola Delta System V/68 R3V5.1, "make sv68r3v51"
  460. # + for Motorola Delta System V/68 R3V6 with NSE TCP/IP, "make sv68r3v6"
  461. # + for Motorola Delta System V/88 R32, "make sv88r32"
  462. # + for Motorola Delta System V/88 R40, "make sv88r40"
  463. # ? for Mt Xinu Mach386 on 386/486-based PCs, "make bsd43"
  464. # ? for NCR Tower 1632, OS 1.02, "make tower1"
  465. # ? for NCR Tower 1632 or Minitower with System V R2, "make sys3"
  466. #     or "make sys3nv"
  467. # ? for NCR Tower 32, OS Release 1.xx.xx, "make tower32-1"
  468. # ? for NCR Tower 32, OS Release 2.xx.xx, "make tower32-2"
  469. # ? for NCR Tower 32, OS Releases based on Sys V R3, "make tower32"
  470. # ? for NCR Tower 32, OS Releases based on Sys V R3 with gcc "make tower32g"
  471. # ? for NCR System 3000, AT&T UNIX System V R4 2.0, "make sys5r4sxna"
  472. # ? for NCR System 3000, AT&T UNIX System V R4 2.0 with Wollongong TCP/IP,
  473. #     "make sys5r4net2" or "make sys5r4net2c".
  474. #      Some header files might be misplaced; try this:
  475. #       ln /usr/include/netinet/in.h /usr/include/sys/in.h
  476. #       ln /usr/include/arpa/inet.h /usr/include/sys/inet.h
  477. #       ln /usr/include/sys/termiox.h /usr/include/termiox.h
  478. # ? for NCR System 3000, NCR UNIX 02.02.01, same as above.
  479. # + for NCR MP-RAS System V R4 V2.03 or 3.02, "make mpras" or "make mprastcpc"
  480. # + for NetBSD through 1.4.x on any architecture, "make netbsd"
  481. # + for NetBSD 1.5.0 and later, "make netbsd15"
  482. # + for NeXT with NeXTSTEP 1.0 through 3.2, "make next" (on a NeXT)
  483. # + for NeXT with NeXTSTEP 3.3, "make next33"
  484. # ? for NeXT with OPENSTEP/Mach 4.1, "make nextquadfat".
  485. # + for NeXT with OPENSTEP/Mach 4.2, "make openstep42".
  486. # ? for NeXTSTEP/486, "make next" (on a PC)
  487. # ? for NeXTSTEP portable binary (runs on Intel or Motorola), "make nextfat"
  488. # ? for NeXTSTEP portable binary (Intel, Motorola, HP PA-RISC, or SPARC),
  489. #     "make nextquadfat"
  490. # ? for Nixdorf Targon/31, "make t31tos40x"
  491. # ? for Norsk Data Uniline 88/17 with SV/88 R3.2, "make sv88r32"
  492. #   for Novell UnixWare - see UnixWare
  493. # ? for OSF/1 (vanilla, from OS/F), "make posix"
  494. # ? for OkiStation 7300 Series, "make sys5r4sxtcp"
  495. # ? for Olivetti LSX-3020 with X/OS R.2.3, "make xos23" or "make xos23c"
  496. # + for OpenBSD, "make openbsd" (also see secure targets listed below).
  497. # ? for OPENSTEP/Mach 4.1, "make nextquadfat" (NeXT, Intel, PA-RISC, SPARC)
  498. # + for OPENSTEP/Mach 4.2, "make openstep42" (tested on NeXT)
  499. # ? for Perkin-Elmer (Concurrent) 3200 series, "make sys5".
  500. # ? for Perkin-Elmer (Concurrent) 3200 series with <dirent.h>, "make ccop1"
  501. # ? for Perkin-Elmer/Concurrent 3200 with Xelos R02, "make ccop1"
  502. # ? for PFU Compact A Series SX/A TISP V10/E50 (Japan), "make sxae50"
  503. # ? for Plexus, "make sys3"
  504. # + for Pyramid 9XXX (e.g. 9845) or MIServer T series, OSx 4.4b thru 5.1,
  505. #     "ucb make pyramid" or for HDB UUCP, "ucb make pyramid-hdb" or:
  506. # + for Pyramid MIServer S or ES Series, DataCenter/OSx, "make pyrdcosx"
  507. # + for Pyramid MIS-S MIPS R3000, DataCenter OSx System V R4, "make pyrdcosx"
  508. # + for POSIX on anything, "make posix" (but adjustments might be necessary).
  509. # ? for Prime 8000 MIPS, SVR3, "make mips" or "make mipstcpc"
  510. # - for QNX 2.x (sorry we don't have a version of C-Kermit for QNX 2.x)
  511. # ? for QNX 4.0 or 4.1, 16-bit, on 286 PC, Watcom C 8.5, "make qnx16_41"
  512. # + for QNX 4.21 - 4.22A (286+), and 4.23 (386+), or higher, 16-bit,
  513. #     Watcom C 9.5x or higher, "make qnx16"
  514. # + for QNX 4.21-4.25, 32-bit, 386 or above, Watcom C 10.6, "make qnx32"
  515. #     NOTE: ("make qnx" == "make qnx32")
  516. # ? for QNX Neutrino 2+, "make qnx_nto2+" (crosscompiled on QNX4 with Watcom C)
  517. # + for QNX 6 = Neutrino 2.xx, "make qnx6"
  518. # ? for Ridge 32 (ROS3.2), "make ridge32"
  519. # ? for Samsung MagicStation, "make sys5r4"
  520. # ? for SCO Xenix 2.2.1 with development system 2.2 on 8086/8 "make sco86"
  521. # ? for SCO Xenix/286 2.2.1 with development system 2.2 on 80286, "make sco286"
  522. #     NOTE: reportedly this makefile is too long for SCO Xenix/286 make, but it
  523. #     works with "makeL", or if some of the other make entries are edited out.
  524. # ? for SCO Xenix/386 2.2.2, "make sco386"
  525. # ? for SCO Xenix/386 2.3.x, "make sco3r2"
  526. # ? for SCO Xenix/386 SCO 2.3.3 or 2.3.4 with gcc 1.37 or later,
  527. #     "make sco386gcc" or (to add curses) "make sco386gccc".
  528. # ? for SCO Xenix/386 or UNIX/386 with Excelan TCP/IP, "make sco3r2net"
  529. #     or (to add curses support) "make sco3r2netc" or "sco386netc"
  530. # + for SCO XENIX 2.3.4, "make sco234" or "make sco234c" to add curses.
  531. # + for SCO XENIX 2.3.4 with SCO TCP/IP & curses, "make sco234netc".
  532. # ? for SCO Xenix 2.3.x with Racal-InterLan TCP/IP, "make sco3r2netri"
  533. #   for other UNIX varieties with Racal Interlan TCP/IP, read sco3r2netri entry
  534. # ? for SCO Xenix 2.3.x with SCO (Lachman) TCP/IP, "make sco3r2lai"
  535. #     or (to add curses) "make sco3r2laic"
  536. #   for SCO UNIX...  ALSO READ COMMENTS in the SCO UNIX entries for more info!
  537. # ? for SCO UNIX/386 3.2.0 or 3.2.1, "make sco3r2" or "make sco3r2x"
  538. # ? for SCO UNIX/386 3.2.2, "make sco3r22" or "make sco3r22gcc"
  539. #     or "make sco3r22c"
  540. # ? for SCO UNIX/386 3.2.2 with SCO TCP/IP, "make sco3r22net"
  541. #     or "make sco3r22netc" (curses)
  542. # ? for SCO ODT 1.1, "make sco3r22net" or "make sco3r22netc" (curses)
  543. # + for SCO UNIX/386 3.2 V4.x, no network support, "make sco32v4"
  544. # +   or "make sco32v4ns" (this one uses no select() or sockets library)
  545. # + for SCO UNIX/386 3.2 V4.x with TCP/IP, "make sco32v4net"
  546. #     (also sco32v4gcc, sco32v4netgcc)
  547. # + for SCO UNIX/386 3.2 V5.0 - see SCO OpenServer.
  548. # + for SCO UNIX 3.2v4.x with TCP/IP, <dirent.h> for Extended Acer File
  549. #     System (EAFS), curses, ANSI C compilation, "make sco32v4net"
  550. # +   or (to use select()-based CONNECT module) "make sco32v4netx".
  551. # + for SCO UNIX 3.2v4.2, "make sco-odt30" (includes TCP/IP).
  552. # + for SCO MPX 3.0 - The SCO UNIX binary runs on the corresponding MPX system.
  553. #
  554. # NOTE: Also see below for other entries that are variations on these.
  555. # Also be sure to read the comments accompanying each SCO entry.
  556. # And yes, I know it's called Caldera now instead of SCO.
  557. # Also see Unixware section; Unixware has had so many owners there's no point
  558. # keeping track.
  559. #
  560. # + for SCO ODT 2.0, "make sco32v4net"
  561. # + for SCO ODT 3.0, "make sco-odt30"
  562. # + for SCO OpenServer 5.0 (OSR5), "make sco32v500"
  563. # + for SCO OpenServer 5.0 (OSR5) with networking, "make sco32v500net"
  564. # + for SCO OpenServer 5.0 (OSR5), gcc, "make sco32v500gcc"
  565. # + for SCO OpenServer 5.0 (OSR5), gcc, with networking, "make sco32v500netgcc"
  566. # + for SCO OpenServer 5.0 (OSR5), as above, ELF, "make sco32v500netgccelf"
  567. # + for SCO OpenServer 5.0.2, use "make sco32v502xxx" entries as above.
  568. # + for SCO OpenServer 5.0.4, use "make sco32v504xxx" entries as above.
  569. # + for SCO OpenServer 5.0.5, use "make sco32v505xxx" entries as above.
  570. #     Use the sco32v505udkxxx entries if you have the UDK rather than /bin/cc.
  571. # + for SCO OpenServer 5.0.6, use "make sco32v506xxx" entries as above.
  572. # + for SCO OpenServer 5.0.6a,use "make sco32v506axxx" entries as above.
  573. # ? for SCO (Univel) UnixWare 1.x, "make unixware" or "make unixwarenetc".
  574. #     If there are problems with this in C-K 7+ see notes at unixware entry.
  575. # + for SCO UnixWare 2.0.x, "make uw20"
  576. # + for SCO UnixWare 2.1.0, "make uw21"
  577. # + for SCO UnixWare 2.1.3, "make uw213"
  578. # + for SCO UnixWare 7, "make uw7"
  579. # + for SCO UnixWare 7 with IKSD support, "make uw7iksd" or "make uw7iksdudk"
  580. # + for SCO UnixWare 7 with OpenSSL, "make uw7ssl"
  581. # + for SCO (Caldera) Open UNIX 8, "make ou8"
  582. # + for Sharp Zaurus SL5500 PDA, "make zsl5500".
  583. # ? for Sequent with DYNIX/ptx 1.2.1, "make dynixptx12"
  584. # ? for Sequent with DYNIX/ptx 1.3 or 1.4 with TCP/IP, "make dynixptx13"
  585. # ? for Sequent with DYNIX/ptx 2.0 or 2.1 with TCP/IP, "make dynixptx20"
  586. #     or "dynixptx20c"
  587. # + for Sequent with DYNIX/ptx 2.1.6 on i486, "dynixptx216c"
  588. # ? for Sequent with DYNIX/ptx V4.1.3 with TCP/IP, "make dynixptx41c"
  589. # + for Sequent with DYNIX/ptx V4.4.2 with TCP/IP, "make dynixptx44"
  590. # ? for Sequent Balance 8000 or B8 with DYNIX 3.0.xx, "make dynix3"
  591. #    or "make dynix3noacu"
  592. # ? for Sequent Symmetry S81 with DYNIX 3.0.xx, "make dynix3"
  593. # ? for Sequent DYNIX 3.1.xx, "make dynix31" or "make dynix31c"
  594. # + for Siemens/Nixdorf SINIX-L Intel V5.41, "make sinix541i"
  595. # + for Siemens/Nixdorf SINIX-N MIPS V5.42, "make sinix542"
  596. # + for Siemens/Nixdorf SINIX-P MIPS V5.42 with gcc, "make sinix542g"
  597. # + for Siemens/Nixdorf SINIX-Z Intel V5.42, "make sinix542i"
  598. # + for Siemens/Nixdorf Reliant UNIX V5.43, "make sni543"
  599. # + for Siemens/Nixdorf Reliant UNIX V5.44, "make sni544"
  600. # ? for Silicon Graphics Iris System V IRIX 3.2 or earlier, "make iris"
  601. # ? for Silicon Graphics Sys V R3 with IRIX 3.3 or later, "make sys5r3"
  602. # ? for Silicon Graphics Iris Indigo with IRIX 4.0 or 5.0, "make irix40" or
  603. #     (to include Yellow Pages and Curses) "make irix40ypc"
  604. # ? for Silicon Graphics Iris Indigo or Elan with IRIX 4.0.x with microcode
  605. #     optimization and -O4, "make irix40u" or "irix40uc" (and read notes
  606. #     accompanying these entries).
  607. # + for Silicon Graphics IRIX 5.1, "make irix51" or "irix51x" (no optimize)
  608. # + for Silicon Graphics IRIX 5.2, "make irix52"
  609. # + for Silicon Graphics IRIX 5.3, "make irix53" or "irix53x" (no optimize)
  610. # + for Silicon Graphics IRIX 6.0, "make irix60".
  611. # + for Silicon Graphics IRIX 6.2, "make irix62".
  612. # + for Silicon Graphics IRIX 6.3, "make irix63".
  613. # + for Silicon Graphics IRIX 6.4, "make irix64" or "make irix64gcc".
  614. # + for Silicon Graphics (SGI) IRIX 6.5, "make irix65".
  615. # ? for Solaris 2.0-2.3 on SPARC or Intel, SunPro CC, "make solaris2x",
  616. # ?   or to add SunLink X.25 8.0x support, "make solaris2x25".
  617. # + for Solaris 2.4 built with gcc, "make solaris24g".
  618. # + for Solaris 2.0-2.3 on SPARC or Intel, GNU CC, "make solaris2xg".
  619. # + for Solaris 2.4 with X.25, "make solaris24x25".
  620. # + for Solaris 2.5 on SPARC or Intel, SunPro CC, "make solaris25".
  621. # +   or to add SunLink X.25 8.0x support, "make solaris25x25".
  622. # + for Solaris 2.5 on SPARC or Intel, GNU CC, "make solaris25g".
  623. # + for Solaris 2.6 on SPARC or Intel, "make solaris26".
  624. # + for Solaris 7 on SPARC or Intel, SunPro CC, "make solaris7".
  625. # + for Solaris 7 on SPARC or Intel, GNU CC, "make solaris7g".
  626. # + for Solaris 8 on SPARC or Intel, SunPro CC, "make solaris8".
  627. # + for Solaris 8 on SPARC or Intel, GNU CC, "make solaris8g".
  628. # + for Solaris 9 on SPARC (or Intel?), 32-bit, SunPro CC, "make solaris9".
  629. # + for Solaris 9 on SPARC (or Intel?), 32-bit, GNU CC, "make solaris9g".
  630. # + for Solaris 9 on SPARC (or Intel?), 64-bit, GNU CC, "make solaris9g64".
  631. # + for Solbourne 4/500 with OS/MP 4 "make sunos4"
  632. # + for Solbourne 4/500 with OS/MP 4.1 "make sunos41" or "make sunos41c"
  633. # ? for SONY NEWS with NEWS-OS 4.0.1C, "make sonynews"
  634. # ? for SONY NEWS with NEWS-OS 4.1.2C, "make sonynews"
  635. # ? for Sperry/UNISYS 5000/20, UTS V 5.2 3R1, "make sys5"
  636. # ? for Sperry/UNISYS 5000/30/35/50/55, UTS V 5.2 2.01, "make unisys5r2"
  637. # ? for Sperry/UNISYS 5000/80 with System V R3, "make sys5r3"
  638. # ? for Sperry/UNISYS 5000/95 with System V R3, "make sys5r3"
  639. #     For UNISYS SVR3 it might be necessary to "make sys5r3 KFLAGS=-UDYNAMIC"
  640. # ? for Stardent 1520, "make sys5r3"
  641. # ? for Stratus FTX 2.x, try "make ftx" or else "make sys5r4" or "sys5r4sx"
  642. # + for Stratus FTX 3.x, PA-RISC 1.0 or 2.0, "make ftx" or "make ftxtcp"
  643. # ? for Sun with Sun UNIX 3.5 and gcc, "make sunos3gcc"
  644. # ? for Sun with pre-4.0 SunOS versions, "make bsd" (or appropriate variant)
  645. # ? for Sun with SunOS 4.0, BSD environment, "make sunos4"
  646. # ? for Sun with SunOS 4.0, BSD, with SunLink X.25, make sunos4x25
  647. # + for Sun with SunOS 4.1 or 4.1.1, BSD environment, "make sunos41"
  648. #     or "make sunos41c" (curses) or "make sunos41gcc" (compile with gcc)
  649. # + for Sun with SunOS 4.1.x, BSD, with SunLink X.25 7.00 or earlier,
  650. #     "make sunos41x25" or "make sunos41x25c" (curses)
  651. # + for Sun with SunOS 4.1, 4.1.1, AT&T Sys V R3 environment, "make sunos41s5"
  652. # + for Sun with SunOS 4.1.2, "make sunos41" or any of its variations.
  653. #     NOTE:  All SunOS 4.x systems -- Shared libraries are used by default.
  654. #       If this causes problems, add -Bstatic to CFLAGS.
  655. #     NOTE2: When building C-Kermit under SunOS for the BSD universe,
  656. #       but /usr/5bin/cc is ahead of /usr/ucb/cc in your PATH, add
  657. #       "CC=/usr/ucb/cc CC2=/usr/ucb/cc" to the make entry.
  658. #     NOTE3: If an executable built on one type of Sun hardware does not work
  659. #       on another type, rebuild the program from source on the target machine.
  660. #   for Sun with Solaris 1.x use SunOS 4.1 entries.
  661. #   for Sun with Solaris 2.0 and higher use Solaris entries.
  662. # + for Sun SPARC with Linux, "make linux"
  663. # ? for Sun SPARC with OPENSTEP/Mach 4.1, "make nextquadfat"
  664. # ? for Sun SPARC with OPENSTEP/Mach 4.2, "make openstep42"
  665. # - for Tandy 16/6000 with Xenix 3.0, "make trs16" (C-Kermit 7.0 is too big)
  666. # ? for Tektronix 6130/4132/43xx (e.g.4301) with UTek OS, "make utek"
  667. #     or (for models without hardware flow control), "make uteknohwfc"
  668. # ? for Tektronix XD88 series with UTekV OS, "make utekvr3"
  669. # ? for Tri Star Flash Cache with Esix SVR3.2, "make sys5r3"
  670. # + for Tru-64 UNIX 4.0E, "make tru64-40e"
  671. # + for Tru-64 UNIX 4.0F, "make tru64-40f"
  672. # + for Tru-64 UNIX 4.0G, "make tru64-40g"
  673. # + for Tru-64 UNIX 5.0A, "make tru64-50a"
  674. # + for Tru-64 UNIX 5.1A, "make tru64-51a"
  675. # ? for Unistar, "make sys5"
  676. # ? for Unisys S/4040 68040 CTIX SVR3.2 6.4.1, "make ctix" or "make sys5r3"
  677. # ? for Unisys U5000 UNIX SVR3 6.x, "make sys5r3" or "make sys5r3c"
  678. # ? for Unisys U6000 UNIX SVR4 1.x, "make sys5r4nx" or "make sys5r4nxnetc"
  679. #   for Unisys ... (also see Sperry)
  680. #   for Univel - see UnixWare
  681. #   for Unixware - see SCO
  682. # ? for Valid Scaldstar, "make valid"
  683. # ? for Whitechapel MG01 Genix 1.3, "make white"
  684. # ? for Zilog ZEUS 3.21, "make zilog"
  685. #
  686. # The result should be a runnable program called "wermit" in the current
  687. # directory.  After satisfactory testing, you can rename wermit to "kermit"
  688. # and put it where users can find it.
  689. #
  690. # To remove intermediate and object files, "make clean".
  691. # If your C compiler produces files with an extension other than "o",
  692. # then "make clean EXT=u", "make clean EXT=s", or whatever.
  693. #
  694. # To run lint on the source files, "make lintsun", "make lintbsd",
  695. # "make lints5", as appropriate.
  696. #
  697. # ******************************
  698. # SECURE TARGETS
  699. #
  700. # Beginning with C-Kermit 7.0, secure targets are included, as are the
  701. # source modules (ckuat*.[ch], ck_*.[ch]) needed to build them.  Secure
  702. # target names are like the regular names, but with security features
  703. # indicated by plus (+) signs.  The features are:
  704. #
  705. # krb4     MIT Kerberos IV
  706. # krb5     MIT Kerberos V
  707. # openssl  OpenSSL (SSL/TLS)
  708. # zlib     ZLIB compression for SSL/TLS
  709. # srp      Stanford Secure Remote Password
  710. # pam      PAM (pluggable authentication module)
  711. # shadow   Shadow Password File
  712. #
  713. # You can build these targets if you have the Kermit source files and the
  714. # required libraries (Kerberos, OpenSSL, SRP, etc) and header files.  See:
  715. #   http://www.columbia.edu/kermit/security.html 
  716. # for specific details regarding supported versions.
  717. #
  718. # NOTE: OpenSSL 0.9.6 and earler are not compatible with 0.9.7 and later.
  719. # C-Kermit code is designed for 0.9.6.  To build with 0.9.7 you must add
  720. # -DOPENSSL_097 to avoid missing symbols in the DES library and to use the
  721. # entry points that were renamed to avoid conflict with Kerberos 4.
  722. #
  723. # The following symbols are used to specify library and header file locations
  724. # Redefine them to the values used on your system by:
  725. # . editing this file
  726. # . defining the values on the command line
  727. # . defining the values in the environment and use the -e option
  728. #
  729. K4LIB=-L/usr/kerberos/lib
  730. K4INC=-I/usr/kerberos/include
  731. K5LIB=-L/usr/kerberos/lib
  732. K5INC=-I/usr/kerberos/include
  733. SRPLIB=-L/usr/local/lib
  734. SRPINC=-I/usr/local/include
  735. SSLLIB=-L/usr/local/ssl/lib
  736. SSLINC=-I/usr/local/ssl/include
  737. #
  738. # aix41+krb5+krb4:                    IBM AIX 4.1 with Kerberos IV and V
  739. # aix43gcc+krb5+krb4:                 IBM AIX 4.3 built with gcc, ditto
  740. # aix43gcc+krb5+krb4+openssl:         Ditto, plus SSL/TLS
  741. # irix6x+krb5:
  742. # irix65+krb5:
  743. # linux+krb5:
  744. # linux+krb5+krb4:
  745. # linux+srp:
  746. # linux+srp+pam:
  747. # linux+srp+gmp:
  748. # linux+srp+gmp+no-des:
  749. # linux+srp+gmp-export:
  750. # linux+srp+gmp+pam:
  751. # linux+shadow+pam:
  752. # linux+openssl:
  753. # linux+openssl+shadow:
  754. # linux+openssl+zlib+shadow+pam:
  755. # linux+srp+openssl:
  756. # linux+krb5+krb4+srp:
  757. # linux+krb5+krb4+srp+openssl:
  758. # linux+krb5+krb4+openssl:
  759. # linux+krb5+krb4+openssl+shadow:
  760. # linux+krb5+krb4+openssl+zlib+shadow:
  761. # linux+krb5+krb4+srp-export:
  762. # linux+krb5+krb4+srp+pam:
  763. # linux+krb5+krb4+srp+openssl+pam-debug:
  764. # linux+krb5+krb4+srp+openssl+pam:
  765. # linux+krb5+krb4+srp+openssl+zlib+pam:
  766. # linux+krb5+openssl+zlib+shadow+pam:
  767. # openbsd30+ssl (includes OpenSSL):
  768. # redhat71, redhat72, redhat73, redhat80 (Krb5, OpenSSL, Showdow, PAM, Zlib)
  769. # sco32v500net+ssl:
  770. # sco32v505net+ssl:
  771. # solaris2x+krb4:  
  772. # solaris2xg+krb4:
  773. # solaris2xg+openssl+pam+shadow:
  774. # solaris2xg+openssl+zlib+pam+shadow:
  775. # solaris2xg+krb5+krb4+openssl+shadow:
  776. # solaris25+krb4:
  777. # solaris25g+krb4:
  778. # solaris26g+openssl:
  779. # solaris8g+openssl+zlib+pam+shadow:
  780. # solaris8g+krb4:
  781. # solaris9g+openssl+zlib+pam+shadow:
  782. # sunos41gcc+krb4:                    SunOS 4.1 built with gcc with Kerberos IV
  783. # sunos41gcc+openssl:                 SunOS 4.1 built with gcc with OpenSSL
  784. # sunos41gcc+krb4+openssl:            ...with Kerberos IV and OpenSSL
  785. # sunos41gcc+krb4+openssl+zlib:       ditto, plus ZLIB compression
  786. # sunos41gcc+krb4+srp+openssl+zlib:   ditto, plus SRP
  787. # sunos41gcc+srp+openssl+zlib:        
  788. # uw7ssl
  789. #
  790. ##############################################################################
  791. #
  792. # NOTES FOR V7 AND 2.X BSD (BASED ON VERSION 4E OF C-KERMIT, 1987):
  793. #
  794. # For Unix Version 7, several variables must be defined to the values
  795. # associated with your system.  BOOTNAME=/edition7 is the kernel image on
  796. # okstate's Perkin-Elmer 3230.  Others will probably be /unix.  PROCNAME=proc
  797. # is the name of the structure assigned to each process on okstate's system.
  798. # This may be "_proc" or some other variation.  See <sys/proc.h> for more
  799. # info on your systems name conventions.  NPROCNAME=nproc is the name of a
  800. # kernel variable that tells how many "proc" structures there are.  Again
  801. # this may be different on your system, but nproc will probably be somewhere.
  802. # The variable NPTYPE is the type of the nproc variable -- int, short, etc.
  803. # which can probably be gleaned from <sys/param.h>.  The definition of DIRECT
  804. # is a little more complicated.  If nlist() returns, for "proc" only, the
  805. # address of the array, then you should define DIRECT as it is below.  If
  806. # however, nlist() returns the address of a pointer to the array, then you
  807. # should give DIRECT a null definition (DIRECT= ).  The extern declaration in
  808. # <sys/proc.h> should clarify this for you.  If it is "extern struct proc
  809. # *proc", then you should NOT define DIRECT.  If it is "extern struct proc
  810. # proc[]", then you should probably define DIRECT as it is below.  See
  811. # ckuv7.hlp for further information.
  812. #
  813. # For 2.9 BSD, the makefile may use pcc rather than cc for compiles; that's
  814. # what the CC and CC2 definitions are for (the current version of the
  815. # makefile uses cc for both; this was tested in version 4E of C-Kermit and
  816. # worked OK on the DEC Pro 380, but all bets are off for version 5A).  2.9
  817. # support basically follows the 4.1 path.  Some 2.9 systems use "dir.h" for
  818. # the directory header file, others will need to change this to "ndir.h".
  819. #
  820. # The v7 and 2.9bsd versions assume I&D space on a PDP-11.  When building
  821. # C-Kermit for v7 on a PDP-11, you should probably add the -i option to the
  822. # link flags.  Without I&D space, overlays will be necessary (if available),
  823. # or code segment mapping (a`la Pro/Venix) if that's available.
  824. #
  825. # C-Kermit 5A (and 6.0?) can be built for 2.10 and 2.11BSD, using overlays,
  826. # but a separate makefile is used because this one is too big.
  827. #
  828. ##############################################################################
  829. #
  830. # V7-specific variables.
  831. # These are set up for Perkin-Elmer 3230 V7 Unix:
  832. #
  833. PROC=proc
  834. DIRECT=
  835. NPROC=nproc
  836. NPTYPE=int
  837. BOOTFILE=/edition7
  838. #
  839. # ( For old Tandy TRS-80 Model 16A or 6000 V7-based Xenix, use PROC=_proc,
  840. #   DIRECT=-DDIRECT, NPROC=_Nproc, NPTYPE=short, BOOTFILE=/xenix )
  841. #
  842. ###########################################################################
  843. #
  844. #  Compile and Link variables:
  845. #
  846. #  EXT is the extension (file type) for object files, normally o.
  847. #  See MINIX entry for what to do if another filetype must be used.
  848. #
  849. EXT=o
  850. #LNKFLAGS=
  851. SHAREDLIB=
  852. CC= cc
  853. CC2= cc
  854. MAKE= make
  855. SHELL=/bin/sh
  856.  
  857. ###########################################################################
  858. # SAMPLE INSTALLATION SCRIPT
  859. #
  860. # Modify to suit your own computer's file organization and permissions.  If
  861. # you don't have write access to the destination directories, "make install"
  862. # fails.  In most cases, a real installation also requires you to chown /
  863. # chgrp the Kermit binary for the UUCP lockfile and/or tty devices, and
  864. # perhaps also to chmod +s the corresponding permission fields.
  865. #
  866. # Default binary, man, and doc directories are supplied below.  You can
  867. # override them in your 'make' command.  Examples:
  868. #
  869. #   make install                                   # Accept defaults.
  870. #   make "INFODIR=/usr/share/lib/kermit" install   # Override INFODIR default.
  871. #   make "BINARY=krbmit" install                   # Install Kerberized binary.
  872. #
  873. # You can also build and install in one step, e.g.:
  874. #
  875. #   make solaris8 install
  876. #
  877. # If you use the 'install' target to install C-Kermit, it creates an
  878. # UNINSTALL script that can be used to uninstall it.
  879. #
  880. WERMIT = makewhat
  881. BINARY = wermit
  882. DESTDIR = 
  883. BINDIR = /usr/local/bin
  884. MANDIR = /usr/man/man1
  885. MANEXT = 1
  886. SRCDIR =
  887. INFODIR =
  888. CERTDIR =
  889.  
  890. TEXTFILES = COPYING.TXT ckcbwr.txt ckubwr.txt ckuins.txt ckccfg.txt \
  891.         ckcplm.txt ckermit.ini ckermod.ini ckermit70.txt ckermit80.txt
  892.  
  893. ALL = $(WERMIT)
  894.  
  895. all: $(ALL)
  896.  
  897. .c.o:
  898.     $(CC) $(CFLAGS) -DKTARGET=\"$(KTARGET)\" -c $<
  899.  
  900. #Clean up intermediate and object files
  901. clean:
  902.     @echo 'Removing object files...'
  903.     -rm -f ckcmai.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) ckuus2.$(EXT) \
  904. ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) ckcpro.$(EXT) ckcfns.$(EXT) \
  905. ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) ckucon.$(EXT) ckutio.$(EXT) \
  906. ckufio.$(EXT) ckudia.$(EXT) ckuscr.$(EXT) ckwart.$(EXT) ckuusx.$(EXT) \
  907. ckuusy.$(EXT) ckcnet.$(EXT) ckuus6.$(EXT) ckuus7.$(EXT) ckusig.$(EXT) \
  908. ckucns.$(EXT) ckcmdb.$(EXT) ckuath.$(EXT) ckctel.$(EXT) ckclib.$(EXT) \
  909. ckcuni.$(EXT) ck_crp.$(EXT) ck_ssl.$(EXT) ckupty.$(EXT) ckcftp.$(EXT) \
  910. ckcpro.c wart
  911.  
  912. # Install C-Kermit after building -- IMPORTANT: Read the instructions above
  913. # (SAMPLE INSTALLATION SCRIPT).  For secure versions, note the that binary
  914. # generated by this makefile might have a different name, like krbmit.  Also
  915. # note that ca_certs.pem file should be installed in the appropriate place
  916. # 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)
  1180.     $(CC2) $(LNKFLAGS) -o wermit \
  1181.         ckcmai.$(EXT) ckclib.$(EXT) ckutio.$(EXT) ckufio.$(EXT) \
  1182.         ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) \
  1183.         ckcpro.$(EXT) ckucmd.$(EXT) ckuus2.$(EXT) ckuus3.$(EXT) \
  1184.         ckuus4.$(EXT) ckuus5.$(EXT) ckuus6.$(EXT) ckuus7.$(EXT) \
  1185.         ckuusx.$(EXT) ckuusy.$(EXT) ckuusr.$(EXT) ckucns.$(EXT) \
  1186.         ckudia.$(EXT) ckuscr.$(EXT) ckcnet.$(EXT) ckusig.$(EXT) \
  1187.         ckctel.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) ckcftp.$(EXT) \
  1188.         $(LIBS)
  1189.  
  1190. # Malloc Debugging version
  1191.  
  1192. mermit:    ckcmdb.$(EXT) ckcmai.$(EXT) ckclib.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) \
  1193.         ckuus2.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) \
  1194.         ckuus6.$(EXT) ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) \
  1195.         ckcpro.$(EXT) ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) \
  1196.         ckuxla.$(EXT) ckucon.$(EXT) ckutio.$(EXT) ckufio.$(EXT) \
  1197.         ckudia.$(EXT) ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) \
  1198.         ckusig.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) ckcftp.$(EXT)
  1199.     $(CC2) $(LNKFLAGS) -o mermit ckcmdb.$(EXT) ckclib.$(EXT) ckcmai.$(EXT)\
  1200.         ckutio.$(EXT) ckufio.$(EXT) ckcfns.$(EXT) ckcfn2.$(EXT) \
  1201.         ckcfn3.$(EXT) ckuxla.$(EXT) ckcpro.$(EXT) ckucmd.$(EXT) \
  1202.         ckuus2.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) \
  1203.         ckuus6.$(EXT) ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) \
  1204.         ckuusr.$(EXT) ckucon.$(EXT) ckudia.$(EXT) ckuscr.$(EXT) \
  1205.         ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) ckcuni.$(EXT) \
  1206.         ckupty.$(EXT) ckcftp.$(EXT) $(LIBS)
  1207.  
  1208. # Kerberized Version - Subject to USA export restrictions.
  1209.  
  1210. krbmit:    ckcmai.$(EXT) ckclib.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) ckuus2.$(EXT) \
  1211.         ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) ckuus6.$(EXT) \
  1212.         ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) ckcpro.$(EXT) \
  1213.         ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) \
  1214.         ckucns.$(EXT) ckutio.$(EXT) ckufio.$(EXT) ckudia.$(EXT) \
  1215.         ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) \
  1216.         ckuath.$(EXT) ck_crp.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) \
  1217.         ckcftp.$(EXT) ck_ssl.$(EXT)
  1218.     $(CC2) $(LNKFLAGS) -o krbmit ckcmai.$(EXT) ckclib.$(EXT) \
  1219.         ckutio.$(EXT) ckufio.$(EXT) ckcfns.$(EXT) ckcfn2.$(EXT) \
  1220.         ckcfn3.$(EXT) ckuxla.$(EXT) ckcpro.$(EXT) ckucmd.$(EXT) \
  1221.         ckuus2.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) \
  1222.         ckuus6.$(EXT) ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) \
  1223.         ckuusr.$(EXT) ckucns.$(EXT) ckudia.$(EXT) ckuscr.$(EXT) \
  1224.         ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) ckuath.$(EXT) \
  1225.         ck_crp.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) ckcftp.$(EXT) \
  1226.         ck_ssl.$(EXT) $(LIBS)
  1227.  
  1228. krbmit-debug:    ckcmai.$(EXT) ckclib.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) \
  1229.         ckuus2.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) \
  1230.         ckuus6.$(EXT) ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) \
  1231.         ckcpro.$(EXT) ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) \
  1232.         ckuxla.$(EXT) ckucns.$(EXT) ckutio.$(EXT) ckufio.$(EXT) \
  1233.         ckudia.$(EXT) ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) \
  1234.         ckusig.$(EXT) ckuath.$(EXT) ck_crp.$(EXT) ckcuni.$(EXT) \
  1235.         ckupty.$(EXT) ck_ssl.$(EXT) ckcmdb.$(EXT) ckcftp.$(EXT)
  1236.     $(CC2) $(LNKFLAGS) -o krbmit ckcmdb.$(EXT) ckcmai.$(EXT) \
  1237.         ckclib.$(EXT) ckutio.$(EXT) ckufio.$(EXT) ckcfns.$(EXT) \
  1238.         ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) ckcpro.$(EXT) \
  1239.         ckucmd.$(EXT) ckuus2.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) \
  1240.         ckuus5.$(EXT) ckuus6.$(EXT) ckuus7.$(EXT) ckuusx.$(EXT) \
  1241.         ckuusy.$(EXT) ckuusr.$(EXT) ckucns.$(EXT) ckudia.$(EXT) \
  1242.         ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) \
  1243.         ckuath.$(EXT) ck_crp.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) \
  1244.         ckcftp.$(EXT) ck_ssl.$(EXT) $(LIBS)
  1245.  
  1246. # SRP(TM) Version - Subject to USA export restrictions.
  1247.  
  1248. srpmit:    ckcmai.$(EXT) ckclib.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) ckuus2.$(EXT) \
  1249.         ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) ckuus6.$(EXT) \
  1250.         ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) ckcpro.$(EXT) \
  1251.         ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) \
  1252.         ckucns.$(EXT) ckutio.$(EXT) ckufio.$(EXT) ckudia.$(EXT) \
  1253.         ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) \
  1254.         ckuath.$(EXT) ck_crp.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) \
  1255.         ckcftp.$(EXT) ck_ssl.$(EXT)
  1256.     $(CC2) $(LNKFLAGS) -o srpmit ckcmai.$(EXT) ckclib.$(EXT) \
  1257.         ckutio.$(EXT) ckufio.$(EXT) ckcfns.$(EXT) ckcfn2.$(EXT) \
  1258.         ckcfn3.$(EXT) ckuxla.$(EXT) ckcpro.$(EXT) ckucmd.$(EXT) \
  1259.         ckuus2.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) \
  1260.         ckuus6.$(EXT) ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) \
  1261.         ckuusr.$(EXT) ckucns.$(EXT) ckudia.$(EXT) ckuscr.$(EXT) \
  1262.         ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) ckuath.$(EXT) \
  1263.         ck_crp.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) ck_ssl.$(EXT) \
  1264.         ckcftp.$(EXT) $(LIBS)
  1265.  
  1266. # Kerberized Version - Not subject to USA export restrictions.
  1267.  
  1268. krbmit-export:    ckcmai.$(EXT) \
  1269.         ckclib.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) ckuus2.$(EXT) \
  1270.         ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) ckuus6.$(EXT) \
  1271.         ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) ckcpro.$(EXT) \
  1272.         ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) \
  1273.         ckucns.$(EXT) ckutio.$(EXT) ckufio.$(EXT) ckudia.$(EXT) \
  1274.         ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) \
  1275.         ckuath.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) ckcftp.$(EXT)
  1276.     $(CC2) $(LNKFLAGS) -o krbmit-export ckcmai.$(EXT) ckclib.$(EXT) \
  1277.         ckutio.$(EXT) ckufio.$(EXT) ckcfns.$(EXT) ckcfn2.$(EXT) \
  1278.         ckcfn3.$(EXT) ckuxla.$(EXT) ckcpro.$(EXT) ckucmd.$(EXT) \
  1279.         ckuus2.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) \
  1280.         ckuus6.$(EXT) ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) \
  1281.         ckuusr.$(EXT) ckucns.$(EXT) ckudia.$(EXT) ckuscr.$(EXT) \
  1282.         ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) ckuath.$(EXT) \
  1283.         ckcuni.$(EXT) ckupty.$(EXT) ckcftp.$(EXT) $(LIBS)
  1284.  
  1285. # SRP(TM) Version - Not subject to USA export restrictions.
  1286.  
  1287. srpmit-export:    ckcmai.$(EXT) \
  1288.         ckclib.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) ckuus2.$(EXT) \
  1289.         ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) ckuus6.$(EXT) \
  1290.         ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) ckcpro.$(EXT) \
  1291.         ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) \
  1292.         ckucns.$(EXT) ckutio.$(EXT) ckufio.$(EXT) ckudia.$(EXT) \
  1293.         ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) \
  1294.         ckuath.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) ckcftp.$(EXT)
  1295.     $(CC2) $(LNKFLAGS) -o srpmit-export ckcmai.$(EXT) ckclib.$(EXT) \
  1296.         ckutio.$(EXT) ckufio.$(EXT) ckcfns.$(EXT) ckcfn2.$(EXT) \
  1297.         ckcfn3.$(EXT) ckuxla.$(EXT) ckcpro.$(EXT) ckucmd.$(EXT) \
  1298.         ckuus2.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) \
  1299.         ckuus6.$(EXT) ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) \
  1300.         ckuusr.$(EXT) ckucns.$(EXT) ckudia.$(EXT) ckuscr.$(EXT) \
  1301.         ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) ckuath.$(EXT) \
  1302.         ckcuni.$(EXT) ckupty.$(EXT) ckcftp.$(EXT) $(LIBS)
  1303.  
  1304. ###########################################################################
  1305. # man page...
  1306. #
  1307. ckuker.nr:
  1308.     @echo This target is obsolete.
  1309.     @echo The ckuker.nr file no longer needs any preprocessing.
  1310.  
  1311. ###########################################################################
  1312. # Dependencies for each module...
  1313. #
  1314. ckcmai.$(EXT): ckcmai.c ckcker.h ckcdeb.h ckcsym.h ckcasc.h ckcnet.h ckcsig.h \
  1315.         ckuusr.h ckctel.h ckclib.h
  1316.  
  1317. ckclib.$(EXT): ckclib.c ckclib.h ckcdeb.h ckcasc.h ckcsym.h
  1318.  
  1319. ckcpro.$(EXT): ckcpro.c ckcker.h ckcdeb.h ckcsym.h ckcasc.h ckclib.h
  1320.  
  1321. ckcpro.c: ckcpro.w wart ckcdeb.h ckcsym.h ckcasc.h ckcker.h ckcnet.h ckctel.h \
  1322.      ckclib.h
  1323.     ./wart ckcpro.w ckcpro.c
  1324.  
  1325. ckcfns.$(EXT): ckcfns.c ckcker.h ckcdeb.h ckcsym.h ckcasc.h ckcxla.h ckcuni.h \
  1326.         ckuxla.h ckclib.h ckcnet.h
  1327.  
  1328. ckcfn2.$(EXT): ckcfn2.c ckcker.h ckcdeb.h ckcsym.h ckcasc.h ckcxla.h \
  1329.         ckuxla.h ckctel.h ckclib.h ckcnet.h ckcuni.h
  1330.  
  1331. ckcfn3.$(EXT): ckcfn3.c ckcker.h ckcdeb.h ckcsym.h ckcasc.h ckcxla.h \
  1332.         ckuxla.h ckclib.h ckcuni.h
  1333.  
  1334. ckuxla.$(EXT): ckuxla.c ckcker.h ckcsym.h ckcdeb.h ckcxla.h ckuxla.h ckclib.h \
  1335.          ckcuni.h
  1336.  
  1337. ckcuni.$(EXT): ckcuni.c ckcdeb.h ckcker.h ckucmd.h ckcuni.h ckcxla.h ckuxla.h
  1338.  
  1339. ckuusr.$(EXT): ckuusr.c ckucmd.h ckcker.h ckuusr.h ckcsym.h ckcdeb.h ckcxla.h \
  1340.         ckuxla.h ckcasc.h ckcnet.h ckctel.h ckclib.h ckcuni.h
  1341.  
  1342. ckuus2.$(EXT): ckuus2.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcxla.h ckuxla.h \
  1343.         ckcasc.h ckcnet.h ckcsym.h ckctel.h ckclib.h ckcuni.h
  1344.  
  1345. ckuus3.$(EXT): ckuus3.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcxla.h ckuxla.h \
  1346.         ckcasc.h ckcnet.h ckcsym.h ckctel.h ckclib.h ckcuni.h
  1347.  
  1348. ckuus4.$(EXT): ckuus4.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcxla.h ckuxla.h \
  1349.         ckcasc.h ckcnet.h ckuver.h ckcsym.h ckctel.h ckclib.h ckcuni.h
  1350.  
  1351. ckuus5.$(EXT): ckuus5.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcasc.h ckcnet.h \
  1352.          ckcsym.h ckctel.h ckclib.h ckcxla.h ckuxla.h ckcuni.h
  1353.  
  1354. ckuus6.$(EXT): ckuus6.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcasc.h ckcnet.h \
  1355.          ckcsym.h ckctel.h ckclib.h
  1356.  
  1357. ckuus7.$(EXT): ckuus7.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcxla.h ckuxla.h \
  1358.         ckcasc.h ckcnet.h ckcsym.h ckctel.h ckclib.h ckcuni.h
  1359.  
  1360. ckuusx.$(EXT): ckuusx.c ckcker.h ckuusr.h ckcdeb.h ckcasc.h ckcsym.h \
  1361.         ckcsig.h ckcnet.h ckctel.h ckclib.h ckcxla.h ckuxla.h ckcuni.h
  1362.  
  1363. ckuusy.$(EXT): ckuusy.c ckcker.h ckcdeb.h ckcasc.h ckcnet.h ckcsym.h ckctel.h \
  1364.          ckclib.h
  1365.  
  1366. ckucmd.$(EXT): ckucmd.c ckcasc.h ckucmd.h ckcdeb.h ckcsym.h ckctel.h ckclib.h
  1367.  
  1368. ckufio.$(EXT): ckufio.c ckcdeb.h ckuver.h ckcsym.h ckclib.h \
  1369.         ckcxla.h ckuxla.h ckcuni.h
  1370.  
  1371. ckutio.$(EXT): ckutio.c ckcdeb.h ckcnet.h ckuver.h ckcsym.h ckctel.h ckclib.h
  1372.  
  1373. ckucon.$(EXT): ckucon.c ckcker.h ckcdeb.h ckcasc.h ckcnet.h ckcsym.h ckctel.h \
  1374.          ckclib.h
  1375.  
  1376. ckucns.$(EXT): ckucns.c ckcker.h ckcdeb.h ckcasc.h ckcnet.h ckcsym.h ckctel.h \
  1377.          ckclib.h ckcxla.h ckuxla.h ckcuni.h
  1378.  
  1379. ckcnet.$(EXT): ckcnet.c ckcdeb.h ckcker.h ckcnet.h ckcsym.h ckcsig.h ckctel.h \
  1380.          ckclib.h
  1381.  
  1382. ckctel.$(EXT): ckcsym.h ckcdeb.h ckcker.h ckcnet.h ckctel.h ckclib.h
  1383.  
  1384. wart: ckwart.$(EXT)
  1385.     $(CC) $(LNKFLAGS) -o wart ckwart.$(EXT) $(LIBS)
  1386.  
  1387. ckcmdb.$(EXT): ckcmdb.c ckcdeb.h ckcsym.h ckclib.h
  1388.  
  1389. ckwart.$(EXT): ckwart.c
  1390.  
  1391. ckudia.$(EXT): ckudia.c ckcker.h ckcdeb.h ckucmd.h ckcasc.h ckcsym.h ckcsig.h \
  1392.         ckcnet.h ckctel.h ckclib.h
  1393.  
  1394. ckuscr.$(EXT): ckuscr.c ckcker.h ckcdeb.h ckcasc.h ckcsym.h ckcsig.h \
  1395.         ckcnet.h ckctel.h ckclib.h
  1396.  
  1397. ckusig.$(EXT): ckusig.c ckcasc.h ckcdeb.h ckcker.h ckcnet.h ckuusr.h \
  1398.         ckcsig.h ckctel.h ckclib.h
  1399.  
  1400. ckcftp.$(EXT): ckcftp.c ckcdeb.h ckcasc.h ckcker.h ckucmd.h ckuusr.h \
  1401.         ckcnet.h ckctel.h ckcxla.h ckuxla.h ckcuni.h
  1402.  
  1403. ckupty.$(EXT): ckupty.c ckupty.h ckcdeb.h
  1404.  
  1405. ckuath.$(EXT): ckuath.c ckcdeb.h ckucmd.h ckuath.h ckuat2.h ckctel.h \
  1406.          ckclib.h ckcnet.h
  1407.  
  1408. ck_crp.$(EXT): ck_crp.c ckcdeb.h ckcnet.h ckuath.h ckclib.h
  1409.  
  1410. ck_ssl.$(EXT): ck_ssl.c ckcdeb.h ckucmd.h ckuath.h ckuat2.h ckctel.h \
  1411.          ckclib.h ck_ssl.h
  1412.  
  1413. ###########################################################################
  1414. #
  1415. # Entries to make C-Kermit for specific systems.
  1416. #
  1417. # Put the ones that need short makefiles first.
  1418.  
  1419. #Apollo Aegis 9.x.  Includes TCP/IP support.
  1420. #You can also add processor-dependent optimization switches like -M570.
  1421. aegis:
  1422.     @echo Making C-Kermit $(CKVER) for Apollo Aegis 9.x...
  1423.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  1424.     "CFLAGS= -DBSD4 -DTCPSOCKET -DNOCSETS -DCK_CURSES -O $(KFLAGS)" \
  1425.     "LIBS = -lcurses -ltermcap"
  1426.  
  1427. #Apple Mac II, A/UX pre-3.0
  1428. #Warning, if "send *" doesn't work, try the auxufs makefile entry below.
  1429. aux:
  1430.     @echo Making C-Kermit $(CKVER) for Macintosh A/UX...
  1431.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  1432.     "CFLAGS = -DAUX -DTCPSOCKET $(KFLAGS) -i -O" "LNKFLAGS = -i"
  1433.  
  1434. #Apple Mac II, A/UX pre-3.0, compiled with gcc
  1435. auxgcc:
  1436.     @echo Making C-Kermit $(CKVER) for Macintosh A/UX...
  1437.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  1438.     "CFLAGS = -DAUX -DTCPSOCKET -traditional $(KFLAGS) -i -O" \
  1439.     "LNKFLAGS = " "CC = gcc" "CC2 = gcc"
  1440.  
  1441. #Apple Mac II, A/UX, pre-3.0, but with ufs file volumes, uses <dirent.h>.
  1442. auxufs:
  1443.     @echo Making C-Kermit $(CKVER) for Macintosh A/UX...
  1444.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  1445.     "CFLAGS = -DAUX -DTCPSOCKET -DDIRENT $(KFLAGS) -i -O" "LNKFLAGS = -i"
  1446.  
  1447. #Apple Mac II, A/UX 3.0, compiled with gcc
  1448. aux3gcc:
  1449.     @echo Making C-Kermit $(CKVER) for Macintosh A/UX 3.0...
  1450.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  1451.     "CFLAGS = -DAUX -DHDBUUCP -DLFDEVNO -DTCPSOCKET -DDIRENT $(KFLAGS)" \
  1452.     "LNKFLAGS = -s" "LIBS = $(LIBS)" \
  1453.     "CC=gcc -pipe -traditional" "CC2=gcc -pipe -traditional"
  1454.  
  1455. #Apple Mac II, A/UX 3.0, compiled with gcc, uses curses
  1456. aux3cgcc:
  1457.     @echo Making C-Kermit $(CKVER) for Macintosh A/UX 3.0...
  1458.     $(MAKE) "MAKE=$(MAKE)" aux3gcc KTARGET=$${KTARGET:-$(@)} \
  1459.     "KFLAGS=$(KFLAGS) -DCK_CURSES" "LIBS = -lcurses $(LIBS)"
  1460.  
  1461. # Tenon MachTen, tested on Apple Powerbook with MachTen 2.1.1.D.
  1462. # NOTE: This doesn't do anything about UUCP.  It only works if /usr/spool/uucp
  1463. # has permission of 777, and dialout device is world read/writeable.
  1464. machten:
  1465.     @echo Making C-Kermit $(CKVER) for MachTen...
  1466.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1467.     "CFLAGS= -DBSD43 -DTCPSOCKET -DSIG_V -DNDGPWNAM -DCK_CURSES -O \
  1468.     $(KFLAGS)"  "LIBS=-lcurses -ltermcap"
  1469.  
  1470. #Bell Labs Research UNIX V10
  1471. #Can't add TCP/IP because there is no sockets library.  It would have to
  1472. #be done using streams, but there is no code in C-Kermit for that.
  1473. #Remove -DNOJC if desired (if your system has csh, ksh, or bash).
  1474. bellv10:
  1475.     @echo Making C-Kermit $(CKVER) for Bell Labs Research UNIX V10...
  1476.     $(MAKE) wermit KTARGET=$${KTARGET-$(@)} \
  1477.     "CFLAGS= -DBELLV10 -DBSD4 -DNDIR -DNOJC -DNOSYSIOCTLH -DNOSETREU \
  1478.     -DNOCSETS -MINIDIAL $(KFLAGS)"
  1479.  
  1480. # WARNING: The early BSD entries do not build in version 7.0 with the stock
  1481. # BSD compiler: "Too many defines".  Unless you can rebuild cpp to have more
  1482. # space for defines, these builds must be accomplished by:
  1483. # copying the /usr/include tree to someplace else, preprocessing there with cc
  1484. # -E -I./include or whatever (plus all the same -D's, adding any necessary
  1485. # -U/-D to override the architecture)), renaming the the resulting files back
  1486. # to their original names, bringing them back to the original BSD system, and
  1487. # running the make target there.  This technique was used for 4.2 and 4.3 BSD
  1488. # on a VAX in C-Kermit 7.0 (later, cpp on that machine was rebuilt to allow
  1489. # more symbols, so the C-Kermit 8.0 build proceeds normally).
  1490.  
  1491. #Berkeley Unix 4.1
  1492. bsd41:
  1493.     @echo Making C-Kermit $(CKVER) for 4.1BSD...
  1494.     $(MAKE) wermit KTARGET=$${KTARGET-$(@)} \
  1495.     "CFLAGS= -DBSD41" "LIBS = -ljobs"
  1496.  
  1497. #Berkeley 4.2, 4.3, also Ultrix-32 1.x, 2.x, 3.x, many others
  1498. # Add -O, -s, etc, if they work.
  1499. # If you have a version of BSD but signal() is void rather than int,
  1500. # "make bsd KFLAGS=-DSIG_V".
  1501. bsd42:
  1502.     @echo Making C-Kermit $(CKVER) for 4.2BSD...
  1503.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  1504.     "CFLAGS= -DBSD4 -DTCPSOCKET -DNOREALPATH -DNOTIMEH -DNOIKSD \
  1505.     -DCK_CURSES -DSYSTIMEBH -DNOPUTENV -DNOANSI -DBIGBUFOK -DBSD42HACK \
  1506.     $(KFLAGS)" "LIBS=-lcurses -ltermcap $(LIBS)"
  1507.  
  1508. bsd:
  1509.     $(MAKE) bsd42 KTARGET=$${KTARGET-$(@)}
  1510.  
  1511. #Berkeley Unix 4.2 or 4.3 with HoneyDanBer UUCP
  1512. bsdhdb:
  1513.     @echo Making C-Kermit $(CKVER) for 4.2BSD with HDB UUCP...
  1514.     $(MAKE) bsd KTARGET=$${KTARGET-$(@)} \
  1515.     "KFLAGS= -DHDBUUCP $(KFLAGS)"
  1516.  
  1517. #Berkeley Unix 4.3 with acucntrl program, curses, TCP/IP included.
  1518. bsd43:
  1519.     @echo Making C-Kermit $(CKVER) for 4.3BSD...
  1520.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  1521.     "CFLAGS= -DBSD4 -DBSD43 -DTCPSOCKET -DNOREALPATH -DNOTIMEH -DNOIKSD \
  1522.     -DCK_CURSES -DACUCNTRL -DSYSTIMEBH -DNOPUTENV -DNOANSI -DBIGBUFOK \
  1523.     -DBSD42HACK $(KFLAGS)" "LIBS=-lcurses -ltermcap $(LIBS)"
  1524.  
  1525. #4.3BSD, curses excluded
  1526. bsd43nc:
  1527.     @echo Making C-Kermit $(CKVER) for 4.3BSD...
  1528.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  1529.     "CFLAGS= -DBSD4 -DBSD43 -DTCPSOCKET -DNOREALPATH -DNOTIMEH \
  1530.     -DACUCNTRL -DSYSTIMEBH -DNOIKSD -DNOPUTENV -DNOANSI -DBIGBUFOK \
  1531.     -DBSD42HACK $(KFLAGS)" "LIBS=$(LIBS)"
  1532.  
  1533. #4.3BSD, TCP/IP excluded.
  1534. bsd43nonet:
  1535.     @echo Making C-Kermit $(CKVER) for 4.3BSD + curses...
  1536.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  1537.     "CFLAGS= -DBSD4 -DBSD43 -DTCPSOCKET -DNOREALPATH -DNOTIMEH -DNOIKSD \
  1538.     -DCK_CURSES -DACUCNTRL -DSYSTIMEBH -DNOPUTENV -DNOANSI -DBIGBUFOK \
  1539.     -DBSD42HACK -DNONET $(KFLAGS)" "LIBS=-lcurses -ltermcap $(LIBS)"
  1540.  
  1541. #Berkeley Unix 4.2 or 4.3 with lock directory /usr/spool/uucp/LCK/LCK..ttyxx,
  1542. #but without acucntrl program
  1543. bsdlck:
  1544.     @echo Making C-Kermit $(CKVER) for 4.2BSD, /usr/spool/uucp/LCK/...
  1545.     $(MAKE) bsd KTARGET=$${KTARGET-$(@)} \
  1546.     "KFLAGS= -DLCKDIR $(KFLAGS)"
  1547.  
  1548. #Berkeley UNIX 4.4-Lite, 4.4-Encumbered, Net/2, etc (Post-Reno),
  1549. #with TCP/IP networking.  This includes NetBSD, FreeBSD, etc.
  1550. #NOTE: This is not a pure POSIX configuration.  Using -DPOSIX instead of
  1551. # -DBSD44 prevents any kind of directory-reading (for wildcard expansion),
  1552. #and disallows use of ENOTCONN symbol for detecting broken network
  1553. #connections, and disallows RTS/CTS flow control, and would also require
  1554. #definition of the appropriate UUCP lockfile convention.
  1555. #Do not add -DCK_POSIX_SIG without reading <signal.h> first!  For example,
  1556. #sigsetjmp(), etc, tend to be defined but not implemented.
  1557. bsd44:
  1558.     @echo Making C-Kermit $(CKVER) for 4.4BSD...
  1559.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1560.     "CFLAGS= -DBSD44 -DTCPSOCKET $(KFLAGS) -O"
  1561.  
  1562. #Berkeley UNIX 4.4, as above, but with curses for fullscreen display
  1563. #Please read notes for bsd44 entry just above.
  1564. # NOTE: This one dumps core on the real 4.4BSD system at UC Berkeley
  1565. # (an HP-9000 300), so use the no-curses version for that one.
  1566. bsd44c:
  1567.     @echo Making C-Kermit $(CKVER) for 4.4BSD with curses...
  1568.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1569.     "CFLAGS= -DBSD44 -DCK_CURSES -DTCPSOCKET $(KFLAGS) -O" \
  1570.     "LIBS= -lcurses -ltermcap $(LIBS)"
  1571.  
  1572. #For FreeBSD 1.x.
  1573. freebsd1:
  1574.     @echo 'Making C-Kermit $(CKVER) for FreeBSD...'
  1575.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1576.     "CFLAGS= -DBSD44 -DCK_CURSES -DTCPSOCKET -DNOCOTFMC -funsigned-char \
  1577.     -DFNFLOAT -DNOHTERMCAP -DNOREALPATH -DNOSYSCONF $(KFLAGS) -O -pipe" \
  1578.     "LIBS= -lcurses -ltermcap -lm $(LIBS)"
  1579.  
  1580. #FreeBSD 2.x with ncurses
  1581. freebsd2:
  1582.     @echo 'Making C-Kermit $(CKVER) for FreeBSD 2.x with ncurses...'
  1583.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1584.     "CFLAGS= -DBSD44 -DCK_NCURSES -DTCPSOCKET -DNOCOTFMC -DUSE_STRERROR \
  1585.     -DTPUTSARGTYPE=int -DTPUTSARG1CONST -DFREEBSD2 -funsigned-char \
  1586.     -DFNFLOAT $(KFLAGS) -O -pipe" \
  1587.     "LIBS= -lncurses -ltermlib -lcrypt -lm $(LIBS)"
  1588.  
  1589. #For FreeBSD 2.x -- Uses curses rather than ncurses
  1590. freebsd2c:
  1591.     @echo 'Making C-Kermit $(CKVER) for FreeBSD 2.x with curses...'
  1592.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1593.     "CFLAGS= -DBSD44 -DCK_CURSES -DTCPSOCKET -DNOCOTFMC -DUSE_STRERROR \
  1594.     -DTPUTSARGTYPE=int -DTPUTSARG1CONST -DFREEBSD2 -DFNFLOAT \
  1595.     -funsigned-char $(KFLAGS) -O -pipe" \
  1596.     "LIBS= -lcurses -ltermlib -lcrypt -lm $(LIBS)"
  1597.  
  1598. #FreeBSD 3.x with ncurses and uu_lock()
  1599. #(Note: uu_lock() goes back to 2.2.2, but not necessarily 2.0)
  1600. freebsd3:
  1601.     @echo 'Making C-Kermit $(CKVER) for FreeBSD 3.x with ncurses...'
  1602.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1603.     "CFLAGS= -DBSD44 -DCK_NCURSES -DTCPSOCKET -DNOCOTFMC -funsigned-char \
  1604.     -DTPUTSARGTYPE=int -DUSE_STRERROR -DFREEBSD3 -DUSE_UU_LOCK -DFNFLOAT \
  1605.     $(KFLAGS) -O -pipe" \
  1606.     "LIBS= -lncurses -lcrypt -lutil -lm $(LIBS)"
  1607.  
  1608. #As above but with curses rather than ncurses.
  1609. freebsd3c:
  1610.     @echo 'Making C-Kermit $(CKVER) for FreeBSD 3.x with curses...'
  1611.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1612.     "CFLAGS= -DBSD44 -DCK_CURSES -DTCPSOCKET -DNOCOTFMC -DUSE_UU_LOCK \
  1613.     -DTPUTSARGTYPE=int -DUSE_STRERROR -DFREEBSD3 $(KFLAGS) -DFNFLOAT \
  1614.     -funsigned-char -pipe -O" \
  1615.     "LIBS= -lcurses -lcrypt -lutil -lm $(LIBS)"
  1616.  
  1617. #FreeBSD 4.0 with ncurses and uu_lock().  Note - there is no curses in 4.0.
  1618. #ncurses 5.0 is broken requiring us to work around with setbuf().
  1619. freebsd4:
  1620.     @echo 'Making C-Kermit $(CKVER) for FreeBSD 4.x with ncurses...'
  1621.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1622.     "CFLAGS= -DBSD44 -DCK_NCURSES -DTCPSOCKET -DNOCOTFMC -DFNFLOAT \
  1623.     -funsigned-char -DTPUTSARGTYPE=int -DUSE_STRERROR -DFREEBSD4 \
  1624.     -DNONOSETBUF -DUSE_UU_LOCK $(KFLAGS) -O -pipe" \
  1625.     "LIBS= -lncurses -lcrypt -lutil -lm $(LIBS)"
  1626.  
  1627. #FreeBSD 4.1, as above but without the NONOSETBUF hack and with CK_NEWTERM.
  1628. #This works with ncurses 5.1.
  1629. freebsd41:
  1630.     @echo 'Making C-Kermit $(CKVER) for FreeBSD 4.1 with ncurses...'
  1631.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1632.     "CFLAGS= -DBSD44 -DCK_NCURSES -DCK_NEWTERM -DTCPSOCKET -DNOCOTFMC \
  1633.     -DFREEBSD4 -DFREEBSD41 -DUSE_UU_LOCK -DFNFLOAT \
  1634.     -funsigned-char -DTPUTSARGTYPE=int -DUSE_STRERROR $(KFLAGS) -O -pipe" \
  1635.     "LIBS= -lncurses -lcrypt -lutil -lm $(LIBS)"
  1636.  
  1637. #Default FreeBSD make for C-Kermit 8.0...
  1638. freebsd:
  1639.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET-$(@)} freebsd45
  1640.  
  1641. #FreeBSD 4.2, like 4.1.
  1642. freebsd42:
  1643.     @echo 'Making C-Kermit $(CKVER) for FreeBSD 4.2...'
  1644.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1645.     "CFLAGS= -DBSD44 -DCK_NCURSES -DCK_NEWTERM -DTCPSOCKET -DNOCOTFMC \
  1646.     -DFREEBSD4 -DFREEBSD41 -DFREEBSD42 -DUSE_UU_LOCK -DFNFLOAT \
  1647.     -funsigned-char -DTPUTSARGTYPE=int -DUSE_STRERROR $(KFLAGS) -O -pipe" \
  1648.     "LIBS= -lncurses -lcrypt -lutil -lm $(LIBS)"
  1649.  
  1650. #FreeBSD 4.3, like 4.2.
  1651. freebsd43:
  1652.     @echo 'Making C-Kermit $(CKVER) for FreeBSD 4.3...'
  1653.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1654.     "CFLAGS= -DBSD44 -DCK_NCURSES -DCK_NEWTERM -DTCPSOCKET -DNOCOTFMC \
  1655.     -DFREEBSD4 -DFREEBSD41 -DFREEBSD42 -DFREEBSD43 -DUSE_UU_LOCK \
  1656.     -DFNFLOAT -funsigned-char -DTPUTSARGTYPE=int -DUSE_STRERROR $(KFLAGS) \
  1657.     -O -pipe" "LIBS= -lncurses -lcrypt -lutil -lm $(LIBS)"
  1658.  
  1659. #FreeBSD 4.4, like 4.3.
  1660. freebsd44:
  1661.     @echo 'Making C-Kermit $(CKVER) for FreeBSD 4.4...'
  1662.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1663.     "CFLAGS= -DBSD44 -DCK_NCURSES -DCK_NEWTERM -DTCPSOCKET -DNOCOTFMC \
  1664.     -DFREEBSD4 -DFREEBSD41 -DFREEBSD42 -DFREEBSD43 -DFREEBSD44 \
  1665.     -DUSE_UU_LOCK -DFNFLOAT -funsigned-char -DTPUTSARGTYPE=int \
  1666.     -DUSE_STRERROR $(KFLAGS) -O -pipe" \
  1667.     "LIBS= -lncurses -lcrypt -lutil -lm $(LIBS)"
  1668.  
  1669. #FreeBSD 4.5, like 4.3 and 4.4.
  1670. freebsd45:
  1671.     @echo 'Making C-Kermit $(CKVER) for FreeBSD 4.5...'
  1672.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1673.     "CFLAGS= -DBSD44 -DCK_NCURSES -DCK_NEWTERM -DTCPSOCKET -DNOCOTFMC \
  1674.     -DFREEBSD4 -DUSE_UU_LOCK -DFNFLOAT -funsigned-char -DTPUTSARGTYPE=int \
  1675.     -DFREEBSD41 -DFREEBSD42 -DFREEBSD43 -DFREEBSD44 -DFREEBSD45 \
  1676.     -DUSE_STRERROR $(KFLAGS) -O -pipe" \
  1677.     "LIBS= -lncurses -lcrypt -lutil -lm $(LIBS)"
  1678.  
  1679. #FreeBSD 4.6, like 4.5
  1680. freebsd46:
  1681.     @echo 'Making C-Kermit $(CKVER) for FreeBSD 4.6...'
  1682.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1683.     "CFLAGS= -DBSD44 -DCK_NCURSES -DCK_NEWTERM -DTCPSOCKET -DNOCOTFMC \
  1684.     -DFREEBSD4 -DUSE_UU_LOCK -DFNFLOAT -funsigned-char -DTPUTSARGTYPE=int \
  1685.     -DFREEBSD41 -DFREEBSD42 -DFREEBSD43 -DFREEBSD44 -DFREEBSD45 \
  1686.     -DFREEBSD46 -DUSE_STRERROR $(KFLAGS) -O -pipe" \
  1687.     "LIBS= -lncurses -lcrypt -lutil -lm $(LIBS)"
  1688.  
  1689. #FreeBSD 4.7, like 4.6
  1690. freebsd47:
  1691.     @echo 'Making C-Kermit $(CKVER) for FreeBSD 4.7...'
  1692.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1693.     "CFLAGS= -DBSD44 -DCK_NCURSES -DCK_NEWTERM -DTCPSOCKET -DNOCOTFMC \
  1694.     -DFREEBSD4 -DUSE_UU_LOCK -DFNFLOAT -funsigned-char -DTPUTSARGTYPE=int \
  1695.     -DFREEBSD41 -DFREEBSD42 -DFREEBSD43 -DFREEBSD44 -DFREEBSD45 \
  1696.     -DFREEBSD46 -DFREEBSD47 -DUSE_STRERROR $(KFLAGS) -O -pipe" \
  1697.     "LIBS= -lncurses -lcrypt -lutil -lm $(LIBS)"
  1698.  
  1699. #FreeBSD 5.0, like 4.6
  1700. freebsd50:
  1701.     @echo 'Making C-Kermit $(CKVER) for FreeBSD 5.0 with ncurses...'
  1702.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1703.     "CFLAGS= -DBSD44 -DCK_NCURSES -DCK_NEWTERM -DTCPSOCKET -DNOCOTFMC \
  1704.     -DFREEBSD4 -DUSE_UU_LOCK -DFNFLOAT -funsigned-char -DTPUTSARGTYPE=int \
  1705.     -DFREEBSD41 -DFREEBSD42 -DFREEBSD43 -DFREEBSD44 -DFREEBSD45 \
  1706.     -DFREEBSD46 -DFREEBSD50 -DUSE_STRERROR $(KFLAGS) -O -pipe" \
  1707.     "LIBS= -lncurses -lcrypt -lutil -lm $(LIBS)"
  1708.  
  1709. freebsd44+srp+openssl:
  1710.     @echo 'Making C-Kermit $(CKVER) for FreeBSD 4.3 with SRP,SSL...'
  1711.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  1712.     "CFLAGS= -DBSD44 -DCK_NCURSES -DCK_NEWTERM -DTCPSOCKET -DNOCOTFMC \
  1713.     -DFREEBSD4 -DFREEBSD41 -DFREEBSD42 -DFREEBSD43 -DFREEBSD44 \
  1714.     -DCK_AUTHENTICATION -DCK_SRP \
  1715.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL \
  1716.     -DCK_CURSES -DTCPSOCKET  \
  1717.     $(SRPINC) $(SSLINC) $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  1718.     "LIBS = $(SRPLIB) $(SSLLIB) \
  1719.     -lncurses -ltermcap -lsrp -lssl -lkrypto -lcrypto \
  1720.     -lcrypt "
  1721.  
  1722. # The following fragmentary FreeBSD+SLL target was suggested, but it's not
  1723. # clear which version of FreeBSD it applies to.
  1724. #
  1725. # ALL_TARGET=    krbmit
  1726. # MAKE_ARGS=    KTARGET=freebsd \
  1727. #        CFLAGS="${CFLAGS} -DBSD44 -DCK_NCURSES -DCK_NEWTERM \
  1728. #        -DTCPSOCKET -DNOCOTFMC -DFREEBSD4 -DUSE_UU_LOCK -DFNFLOAT \
  1729. #        -funsigned-char -DTPUTSARGTYPE=int -DUSE_STRERROR -DCKHTTP \
  1730. #        -DCK_SSL -DCK_AUTHENTICATION -DCK_ENCRYPTION -DCK_DES" \
  1731. #        LIBS="-lssl -lcrypto -ldes -lncurses -lcrypt -lutil -lm"
  1732.  
  1733. #NetBSD - all versions - with curses, not ncurses.
  1734. #Some builds seem to need KFLAGS=-DTPUTSFNTYPE=int, others don't.
  1735. #(Only to get rid of a warning -- the binaries are identical.)
  1736. netbsd:
  1737.     @echo Making C-Kermit $(CKVER) for NetBSD with curses...
  1738.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1739.     "CFLAGS= -DBSD44 -DCK_CURSES -DTCPSOCKET -DUSE_STRERROR -DTPUTSISVOID \
  1740.     -DCK_DTRCD -DCK_DTRCTS -DTPUTSARGTYPE=int -DFNFLOAT $(KFLAGS) -O" \
  1741.     "LIBS= -lcurses -lcrypt -lm $(LIBS)"
  1742.  
  1743. #NetBSD 1.5.x in which the return type of the function pointer that is the 
  1744. #third argument of tputs() was changed from void to int...  The regular NetBSD
  1745. #target builds OK here but this one eliminates the (harmless) warning.
  1746. netbsd15:
  1747.     @echo Making C-Kermit $(CKVER) for NetBSD with curses...
  1748.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1749.     "CFLAGS= -DBSD44 -DCK_CURSES -DTCPSOCKET -DUSE_STRERROR -DNETBSD15 \
  1750.     -DCK_DTRCD -DCK_DTRCTS -DTPUTSARGTYPE=int -DFNFLOAT $(KFLAGS) -O" \
  1751.     "LIBS= -lcurses -lcrypt -lm $(LIBS)"
  1752.  
  1753. #NetBSD 1.6 - like 1.5.x but with vanity banner saying 1.6.
  1754. netbsd16:
  1755.     @echo Making C-Kermit $(CKVER) for NetBSD with curses...
  1756.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1757.     "CFLAGS= -DBSD44 -DCK_CURSES -DTCPSOCKET -DUSE_STRERROR \
  1758.     -DNETBSD15 -DNETBSD16 \
  1759.     -DCK_DTRCD -DCK_DTRCTS -DTPUTSARGTYPE=int -DFNFLOAT $(KFLAGS) -O" \
  1760.     "LIBS= -lcurses -lcrypt -lm $(LIBS)"
  1761.  
  1762. #NetBSD with ncurses requested explicitly rather than curses-which-is-ncurses
  1763. netbsdn:
  1764.     @echo Making C-Kermit $(CKVER) for NetBSD with ncurses...
  1765.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1766.     "CFLAGS= -DBSD44 -DCK_CURSES -DTCPSOCKET -DNOCOTFMC -DCK_DTRCD \
  1767.     -DCK_DTRCTS -DFNFLOAT -DUSE_STRERROR -DTPUTSISVOID -DTPUTSARGTYPE=int \
  1768.     $(KFLAGS) -O" \
  1769.     "LIBS= -L/usr/pkg/lib -lncurses -lcrypt -lm $(LIBS)"
  1770.  
  1771. #OpenBSD - All versions.
  1772. #Uses ncurses as its curses so use -ltermlib, not -ltermcap
  1773. #But it doesn't use uu_lock() which was introduced in OpenBSD 2.3.
  1774. #For that use the next entry.
  1775. #Add -DMAINTYPE=int if you get complaints about main: return type is not int.
  1776. openbsdold:
  1777.     @echo Making C-Kermit $(CKVER) for OpenBSD...
  1778.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1779.     "CFLAGS= -DBSD44 -DCK_CURSES -DCK_NEWTERM -DTCPSOCKET -DOPENBSD \
  1780.     -DFNFLOAT -DNDSYSERRLIST $(KFLAGS) -O" "LIBS= -lcurses -ltermlib -lm"
  1781.  
  1782. #OpenBSD 2.3 or later
  1783. #Add -DMAINTYPE=int if you get complaints about main: return type is not int.
  1784. #For C-Kermit 8.0 (Christian Weisgerber):
  1785. # -ltermlib removed (presumably because -lcurses==ncurses already includes it)
  1786. # -DUSE_UU_LOCK and -lutil added for uu_lock()
  1787. # -DNDSYSERRLIST changed to -DUSE_STRERROR
  1788. #If this gives you trouble use the previous entry.
  1789. openbsd:
  1790.     @echo Making C-Kermit $(CKVER) for OpenBSD 2.3 or later...
  1791.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1792.     "CFLAGS= -DBSD44 -DCK_CURSES -DCK_NEWTERM -DTCPSOCKET -DOPENBSD \
  1793.     -DUSE_UU_LOCK -DFNFLOAT -DUSE_STRERROR $(KFLAGS) -O" \
  1794.     "LIBS= -lcurses -lutil -lm"
  1795.  
  1796. #OpenBSD 3.0 or later includes OpenSSL
  1797. #Add -DMAINTYPE=int if you get complaints about main: return type is not int.
  1798. #For C-Kermit 8.0 (Christian Weisgerber):
  1799. # -ltermlib removed (presumably because -lcurses==ncurses already includes it)
  1800. # -DUSE_UU_LOCK and -lutil added for uu_lock()
  1801. # -DNDSYSERRLIST changed to -DUSE_STRERROR
  1802. #If this gives you trouble use the previous entry.
  1803. openbsd30+ssl:
  1804.     @echo Making C-Kermit $(CKVER) for OpenBSD 3.0 or later...
  1805.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} \
  1806.     "CFLAGS= -DBSD44 -DCK_CURSES -DCK_NEWTERM -DTCPSOCKET -DOPENBSD \
  1807.     -DUSE_UU_LOCK -DFNFLOAT -DUSE_STRERROR -DCK_AUTHENTICATION \
  1808.     -DCK_SSL $(KFLAGS) -O" \
  1809.     "LIBS= -lcurses -lutil -lm -lssl -lcrypto"
  1810.  
  1811. # make 386bsd 0.0new, posix
  1812. # for  386bsd 0.1.24, change /usr/include/termios.h to #define NCCS if
  1813. #  _POSIX_SOURCE is #defined. (source: lewine, posix prgmrs guide, o`reilly)
  1814. #NOTE: Lock directory is /var/spool/lock.  Formerly, it was /var/spool/uucp,
  1815. #but reportedly <wjones@halcyon.com> that was due to a typo in 'man tip'.
  1816. 386bsd:
  1817.     @echo 'Making C-Kermit $(CKVER) for jolix 386BSD 0.0new and 0.1.24...'
  1818.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1819.     "CFLAGS= -DPOSIX -DSETREUID -DPIDSTRING -DUSLEEP \
  1820.     -D_386BSD -DCK_CURSES -DTCPSOCKET \
  1821.     -DLOCK_DIR=\\\"/var/spool/lock\\\" \
  1822.     $(KFLAGS) -O" "LNKFLAGS = -s" "LIBS = -lcurses -ltermcap"
  1823.  
  1824. #Mac OS X 1.0 (Rhapsody, Darwin) -- TCP/IP but no curses.
  1825. macosx10:
  1826.     @echo Making C-Kermit $(CKVER) for `uname -s`...
  1827.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1828.     "CFLAGS= -DMACOSX10 -DTCPSOCKET -O $(KFLAGS)"
  1829.  
  1830. #Mac OS X 1.0 (Rhapsody, Darwin) -- TCP/IP and curses.
  1831. #Note: curses must be obtained separately.  See next entry for ncurses.
  1832. #Add "LIBS = -lcurses -ltermcap" if necessary (but reportedly it is not).
  1833. macosx10c:
  1834.     @echo Making C-Kermit $(CKVER) for `uname -s` + curses...
  1835.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1836.     "CFLAGS= -DMACOSX10 -DCK_CURSES -DTPUTSFNTYPE=void -DTPUTSISVOID \
  1837.     -DTCPSOCKET -O $(KFLAGS)"
  1838.  
  1839. #Mac OS X 1.0 (Rhapsody, Darwin) -- TCP/IP and ncurses.
  1840. #Note: ncurses must be obtained separately.
  1841. #In the event of trouble with this one try the next one.
  1842. macosx10nc:
  1843.     @echo Making C-Kermit $(CKVER) for `uname -s` + ncurses...
  1844.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1845.     "CFLAGS= -DMACOSX10 -DCK_NCURSES -DTCPSOCKET -O $(KFLAGS) " \
  1846.     "LIBS= -lncurses $(LIBS)"
  1847.  
  1848. #Mac OS X 10.2 (Jaguar) ncurses.
  1849. macosx102nc:
  1850.     @echo Making C-Kermit $(CKVER) for `uname -s` + ncurses...
  1851.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1852.     "CFLAGS= -DMACOSX10 -DCK_NCURSES -DTCPSOCKET \
  1853.     -DNDSYSERRLIST -O $(KFLAGS) " "LIBS= -lncurses $(LIBS)"
  1854.  
  1855. #The problem here is that if curses.h also exists, it conflicts with
  1856. #ncurses.h and and we have fatal errors.  If this happens to you, then
  1857. #try this entry.
  1858. macosx10ncx:
  1859.     @echo Making C-Kermit $(CKVER) for `uname -s` + ncurses...
  1860.     @rm -f ./curses.h; touch ./curses.h
  1861.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1862.     "CFLAGS= -DMACOSX10 -DCK_NCURSES -DTCPSOCKET -I. -O $(KFLAGS) " \
  1863.     "LIBS= -lncurses $(LIBS)"
  1864.     @rm -f ./curses.h
  1865.  
  1866. #Acorn RISCiX, based on ...
  1867. #Berkeley Unix 4.2 or 4.3 with lock directory /usr/spool/uucp/LCK/LCK..ttyxx,
  1868. #but without acucntrl program
  1869. riscix:
  1870.     @echo Making C-Kermit $(CKVER) for RISCiX, /usr/spool/uucp/LCK..ttyxx
  1871.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  1872.         "CFLAGS= -DBSD42 -DBSD4 -DRISCIX -DNOCSETS \
  1873.         -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DDIRENT -DCK_CURSES \
  1874.         -DMAXSP=9024 -DMAXRD=9024 -DSBSIZ=9050 -DRBSIZ=9050 \
  1875.         -DDFTTY=\\\"/dev/serial\\\" -DNOCSETS -DNOCYRIL \
  1876.         -DNOANSI -w -O2 -fomit-frame-pointer" \
  1877.         "LIBS= -lcurses -ltermcap " \
  1878.         "CC= /usr/ucb/cc" \
  1879.         "CC2= /usr/ucb/cc"
  1880.  
  1881. #Acorn RISCiX, as above, but using gcc
  1882. riscix-gcc:
  1883.     @echo Making C-Kermit $(CKVER) for RISCiX, /usr/spool/uucp/LCK..ttyxx
  1884.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  1885.         "CFLAGS= -DBSD42 -DBSD4 -DRISCIX -DNOCSETS \
  1886.         -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DDIRENT -DCK_CURSES \
  1887.         -DMAXSP=9024 -DMAXRD=9024 -DSBSIZ=9050 -DRBSIZ=9050 \
  1888.         -DDFTTY=\\\"/dev/serial\\\" -DNOCSETS -DNOCYRIL \
  1889.         -DNOANSI -w -O2 -fomit-frame-pointer" \
  1890.         "LIBS= -lcurses -ltermcap " \
  1891.         "CC= gcc -mbsd" \
  1892.         "CC2= gcc -mbsd"
  1893.  
  1894. #Convergent CTIX 6.4.1
  1895. ctix:
  1896.     @echo 'Making C-Kermit $(CKVER) for Convergent CTIX 6.4.1'
  1897.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  1898.     "CFLAGS= -DSVR3 -DDIRENT -DTCPSOCKET -DHDBUUCP -DCK_CURSES \
  1899.     -DNONAWS -DNOLEARN $(KFLAGS) -XO" \
  1900.     "LNKFLAGS=-s" "LIBS=-lsocket -lcurses -lc_s"
  1901.     mcs -d wermit
  1902.  
  1903. # The following makefile entry should work for any Harris Night Hawk system
  1904. # (either 88k or 68k based) running release 6.1 or later of the CX/UX
  1905. # operating system. This is a POSIX and ANSI-C compliant system which also
  1906. # supports BSD networking. (Earlier CX/UX releases will probably work with
  1907. # sys5r3, but this has not been verified).
  1908. #
  1909. cx_ux:
  1910.     @echo Making C-Kermit $(CKVER) for Harris Night Hawk CX/UX 6.1 or later
  1911.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  1912.     "CFLAGS=-DPOSIX -DTCPSOCKET -DHDBUUCP -DPID_T=pid_t -DWAIT_T=int \
  1913.     -Dd_ino=d_fileno -DUID_T=uid_t -DGID_T=gid_t $(KFLAGS) -Xa \
  1914.     -O3 -g" "LNKFLAGS=-O3"
  1915.  
  1916. #Intergraph Clipper, CLIX, job control, HDB UUCP.
  1917. clix:
  1918.     @echo 'Making C-Kermit $(CKVER) for Intergraph CLIX...'
  1919.     $(MAKE) wermit "CC=acc" "CC2=acc" KTARGET=$${KTARGET:-$(@)} \
  1920.     "CFLAGS= -w -DSVR3 -DCLIX -DDIRENT -DHDBUUCP -DNOSYSLOG -DUSE_MEMCPY \
  1921.     -DNOGETUSERSHELL -DNOREALPATH -DNOLEARN $(KFLAGS) -O" \
  1922.     "LNKFLAGS=" "LIBS= -lbsd"
  1923.  
  1924. #As above + TCP/IP...
  1925. clixnet:
  1926.     @echo 'Making networked C-Kermit $(CKVER) for Intergraph CLIX...'
  1927.     $(MAKE) wermit "CC=acc" "CC2=acc" KTARGET=$${KTARGET:-$(@)} \
  1928.     "CFLAGS= -w -DSVR3 -DCLIX -DDIRENT -DHDBUUCP -DNOSYSLOG -DUSE_MEMCPY \
  1929.     -DTCPSOCKET -DNOGETUSERSHELL -DNOLEARN -DNOREALPATH $(KFLAGS) -O" \
  1930.     "LNKFLAGS=" "LIBS= -lbsd"
  1931.  
  1932. #Mark Williams Coherent 286 or 386 on IBM PC family.
  1933. #There is a 64K limit on program size, so this is a command-line only version.
  1934. coherent:
  1935.     $(MAKE) "CFLAGS = -O -DCOHERENT -DNOANSI -DNOICP -DNOSETKEY -DNOLEARN \
  1936.     -DNOCSETS -DNOHELP -DNODIAL -DNOSCRIPT -DNODEBUG -DNOTLOG -DNOXMIT \
  1937.     -DNOMSEND -DNOFRILLS -DNOSYSIOCTLH -DSELECT_H $(KFLAGS) -VSUVAR" \
  1938.     -DNOFLOAT KTARGET=$${KTARGET:-$(@)} wermit
  1939.  
  1940. #Mark Williams Coherent 386 on IBM PC family.
  1941. #This will make a "minimum interactive" version - no scripts,
  1942. #no character sets, no help, no dial, no debug/transaction logging, no
  1943. #transmit, msend, mail, type, etc.
  1944. coherentmi:
  1945.     $(MAKE) "CFLAGS = -O -DCOHERENT -DNOANSI -DNOSETKEY -DNOLEARN \
  1946.     -DNOSHOW -DNOCSETS -DNOHELP -DNODIAL -DNOSCRIPT -DNODEBUG -DNOTLOG \
  1947.     -DNOXMIT -DNOMSEND -DNOFRILLS -DNOSYSIOCTLH -DNOSERVER -DNOUUCP \
  1948.     -DNOSPL -DNOPUSH -DNOMDMHUP -DNOJC -DNOFDZERO -DNOESCSEQ -DNOFLOAT \
  1949.     -DNOCMDL $(KFLAGS) -VSUVAR -DSELECT_H" KTARGET=$${KTARGET:-$(@)} \
  1950.     wermit
  1951.  
  1952. #Mark Williams Coherent 386 on IBM PC/AT family.
  1953. coherentmax:
  1954.     $(MAKE) "CFLAGS = -O -DCOHERENT -DNOANSI -DSELECT_H -DNOLEARN \
  1955.     -DNOFLOAT -DNOSYSIOCTLH $(KFLAGS) -VSUVAR" "LNKFLAGS = -O -s" \
  1956.     KTARGET=$${KTARGET:-$(@)} wermit
  1957.  
  1958. #Mark Williams Coherent 386 4.2.  Includes curses but not TCP/IP.
  1959. #Requires updates to the 4.2.10 compiler; the regular compiler fails to
  1960. #to handle "complex expressions".  NOFLOAT is so it can work on old PCs
  1961. #without floating-point hardware.
  1962. coherent42:
  1963.     $(MAKE) "CFLAGS = -T500000 -DNOFLOAT -DCOHERENT -DNOANSI -DSELECT \
  1964.     -DNOSYSLOG -DDIRENT -DCK_CURSES -DCK_NEWTERM -DCK_WREFRESH -VSUVAR \
  1965.     -DDCLGETCWD -DNOSYSIOCTLH -DNOINITGROUPS -DNOSYMLINK -DSELECT_H \
  1966.     -DDCLGETCWD -O $(KFLAGS)" \
  1967.     "LNKFLAGS = -O -s" KTARGET=$${KTARGET:-$(@)} \
  1968.     "LIBS  = -lsocket -lcurses" wermit
  1969.  
  1970. #DEC Ultrix 2.x
  1971. # Add -O, -DDYNAMIC, -s, etc, if they work.
  1972. ultrix2x:
  1973.     @echo Making C-Kermit $(CKVER) for Ultrix 2.x ...
  1974.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  1975.     "CFLAGS= -DBSD4 -DTCPSOCKET -DDU2 -DNOGETUSERSHELL $(KFLAGS)"
  1976.  
  1977. du2:
  1978.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET-$(@)} ultrix2x
  1979.  
  1980. #DEC Ultrix 3.0 and 3.1
  1981. ultrix30:
  1982.     @echo Making C-Kermit $(CKVER) for Ultrix 3.0...
  1983.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  1984.     "CFLAGS= -DBSD4 -DTCPSOCKET -DDIRENT -DSIG_V -DNOGETUSERSHELL \
  1985.     -DULTRIX3 -DCK_CURSES $(KFLAGS) -O" "LIBS= -lcurses -ltermcap"
  1986.  
  1987. du3:
  1988.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET-$(@)} ultrix30
  1989.  
  1990. ultrix3x:
  1991.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET-$(@)} ultrix30
  1992.  
  1993. #DEC Ultrix 4.0 or 4.1 on DECstation, VAXstation, VAX, etc.
  1994. ultrix40:
  1995.     @echo Making C-Kermit $(CKVER) for Ultrix 4.0 or 4.1...
  1996.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  1997.     "CFLAGS= -DBSD4 -DTCPSOCKET -DSIG_V -DDU4 -DNOGETUSERSHELL \
  1998.     $(KFLAGS) -Olimit 1450" "LNKFLAGS = -s"
  1999.  
  2000. #DEC Ultrix 4.2-4.5 on DECstation, DECsystem, VAXstation, VAX, etc.
  2001. #Like ultrix40, except now C compiler supports -O2 optimization.
  2002. ultrix42:
  2003.     @echo Making C-Kermit $(CKVER) for Ultrix 4.2 or later...
  2004.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  2005.     "CFLAGS= -DBSD4 -DTCPSOCKET -DSIG_V -DNOGETUSERSHELL $(KFLAGS) \
  2006.     -O2 -Olimit 1750" "LNKFLAGS = -s"
  2007.  
  2008. du42:
  2009.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET-$(@)} ultrix42
  2010.  
  2011. #DEC Ultrix 4.2-4.5 on DECstation, DECsystem, VAXstation, VAX, etc.
  2012. #Like du42, but with curses support added and a couple features.
  2013. ultrix42c:
  2014.     @echo Making C-Kermit $(CKVER) for Ultrix 4.2 or later...
  2015.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  2016.     "CFLAGS= -DBSD4 -DTCPSOCKET -DSIG_V -DNOGETUSERSHELL \
  2017.     -DCK_CURSES -DNOIKSD $(KFLAGS)-G6 -O2 -Olimit 3000 " \
  2018.     "LNKFLAGS = -s" "LIBS= -lcurses -ltermcap"
  2019.  
  2020. ultrix43:
  2021.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=-DULTRIX43 $(KFLAGS)" \
  2022.     KTARGET=$${KTARGET-$(@)} ultrix42c
  2023.  
  2024. ultrix43notcp:
  2025.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=-DULTRIX43 -DNONET $(KFLAGS)" \
  2026.     KTARGET=$${KTARGET-$(@)} ultrix42c
  2027.  
  2028. # NOTE: need -DNODEBUG on MIPS to avoid relocation errors at link time.
  2029. # Actually now (8.0) that we have discovered the -G option maybe debugging 
  2030. # can be put back.
  2031. ultrix44:
  2032.     $(MAKE) "MAKE=$(MAKE)" \
  2033.     "KFLAGS=-DULTRIX44 -G7 -DNODEBUG -DNETPTY -DNO_DEVTTY $(KFLAGS)" \
  2034.     KTARGET=$${KTARGET-$(@)} ultrix42c
  2035.  
  2036. ultrix45:
  2037.     $(MAKE) "MAKE=$(MAKE)" \
  2038.     "KFLAGS=-DULTRIX45 $(KFLAGS)-DNETPTY -DNO_DEVTTY $(KFLAGS)" \
  2039.     KTARGET=$${KTARGET-$(@)} ultrix42c
  2040.  
  2041. du42c:
  2042.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET-$(@)} ultrix42c
  2043.  
  2044. #DEC Ultrix 4.3A or later on DECsystem and DECstation 5000/50, /150 or /260
  2045. #with MIPS R4x00 processor.  The "-mips3" switch generates R4000-specific
  2046. #code, which is faster and more compact, but *won't* run on earlier
  2047. #DECsystems and DECstations.
  2048. ultrix43-mips3:
  2049.     @echo Making C-Kermit $(CKVER) for Ultrix 4.3A or later, R4000 cpu...
  2050.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  2051.     "CFLAGS= -DBSD4 -DTCPSOCKET -DSIG_V -DNOGETUSERSHELL \
  2052.     $(KFLAGS) -O2 -Olimit 1750 -mips3" "LNKFLAGS = -s -mips3"
  2053.  
  2054. du43-mips3:
  2055.     $(MAKE) "MAKE=$(MAKE)" ultrix43-mips3
  2056.  
  2057. #DEC Ultrix 4.3A or later on MIPS R4x000 based systems.
  2058. #Like ultrix43-mips3 but with curses support added
  2059. ultrix43c-mips3:
  2060.     @echo Making C-Kermit $(CKVER) for Ultrix 4.3A or later, R4000 cpu...
  2061.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  2062.     "CFLAGS= -DBSD4 -DTCPSOCKET -DSIG_V -DNOGETUSERSHELL -DCK_CURSES \
  2063.     $(KFLAGS) -O2 -Olimit 3000 -mips3" "LNKFLAGS = -s -mips3" \
  2064.     "LIBS= -lcurses -ltermcap"
  2065.  
  2066. du43c-mips3:
  2067.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET-$(@)} ultrix43c-mips3
  2068.  
  2069. #DEC Ultrix 4.4 on DECstation 5000/50 or /150 with R4000 MIPS processor,
  2070. #or 5000/260 with R4400.  The "-mips3" switch generates R4000-specific code,
  2071. #which is faster and more compact but *won't* run on earlier DECstations.
  2072. ultrix44-mips3:
  2073.     @echo Making C-Kermit $(CKVER) for Ultrix 4.4, R4000 cpu ...
  2074.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  2075.     "CFLAGS= -DBSD4 -DTCPSOCKET -DSIG_V -DNOGETUSERSHELL \
  2076.     $(KFLAGS) -O2 -Olimit 1450 -mips3" "LNKFLAGS = -s -mips3"
  2077.  
  2078. du44-mips3:
  2079.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET-$(@)} ultrix44c-mips3
  2080.  
  2081. #DEC Ultrix 4.2 on DECstation, VAXstation, VAX, etc, System V R4 environment
  2082. ultrix42s5r4:
  2083.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4 on Ultrix...'
  2084.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  2085.     "CFLAGS = -O2 -Olimit 1500 -DSVR4 -DDIRENT -DHDBUUCP -DNOGETUSERSHELL \
  2086.     -DTCPSOCKET $(KFLAGS)" "LNKFLAGS = -s"
  2087.  
  2088. #OSF/1
  2089. osf:
  2090.     $(MAKE) xermit CC=$(CC) CC2=$(CC2) KTARGET=$${KTARGET:-$(@)} \
  2091.     "CFLAGS= -DBSD4 -DOSF -D_BSD -DTCPSOCKET -DCK_ANSIC -DSIG_V \
  2092.     -DCK_CURSES -DCK_RTSCTS -DFNFLOAT $(KFLAGS)" \
  2093.     "LNKFLAGS = -s" "LIBS = -lbsd -lcurses -ltermcap -lm"
  2094.  
  2095. #DEC OSF/1 V1.0-1.3 on DECstation, VAX, Alpha, or PC.
  2096. dec-osf:
  2097.     $(MAKE) xermit CC=$(CC) CC2=$(CC2) KTARGET=$${KTARGET:-$(@)} \
  2098.     "CFLAGS= -DBSD4 -DOSF -DOSF13 -D_BSD -DTCPSOCKET -DCK_ANSIC -DSIG_V \
  2099.     -DNOREALPATH -DNOIKSD -DCK_CURSES -DCK_RTSCTS -DFNFLOAT -DNODEBUG \
  2100.     -DNOUNICODE $(KFLAGS)" \
  2101.     "LNKFLAGS = -non_shared" "LIBS = -lbsd -lcurses -ltermcap -lm"
  2102.  
  2103. # This one causes "relocation out-of-range" errors in the linker.
  2104. old-dec-osf:
  2105.     @echo Making C-Kermit $(CKVER) for DEC OSF/1 V1.x...
  2106.     @echo If you are building for DEC OSF/1 2.0, please use dec-osf20.
  2107.     @echo Remove or adjust -O2 and/or -Olimit if they cause trouble.
  2108.     $(MAKE) osf KTARGET=$${KTARGET:-$(@)} \
  2109.     "KFLAGS= -O2 -Olimit 2400 $(KFLAGS)"
  2110.  
  2111. #DEC OSF/1 2.0 on Alpha and probably nowhere else.
  2112. #The only difference from OSF/1 is that optimization is omitted.
  2113. #The optimized version gets strange runtime errors, like the PAUSE command
  2114. #not working.  Add "-unsigned" to make all chars unsigned.
  2115. dec-osf20:
  2116.     @echo Making C-Kermit $(CKVER) for DEC OSF/1 V2.0...
  2117.     @echo Optimization omitted because it causes runtime errors.
  2118.     @echo See comments in makefile.
  2119.     $(MAKE) osf KTARGET=$${KTARGET:-$(@)} "KFLAGS= -DOSF20 $(KFLAGS)"
  2120.  
  2121. dec-osf30:
  2122.     @echo Making C-Kermit $(CKVER) for DEC OSF/1 V3.0...
  2123.     $(MAKE) osf KTARGET=$${KTARGET:-$(@)} \
  2124.     "KFLAGS= -DOSF30 -O2 -Olimit 2400 $(KFLAGS)"
  2125.  
  2126. #Digital UNIX 3.2
  2127. # Must compile ckuus[6x].c separately without optimization otherwise
  2128. # the optimizer dumps core - keep CFLAGS here in sync with those from osf.
  2129. du32:
  2130.     @echo Making C-Kermit $(CKVER) for Digital UNIX 3.2...
  2131.     $(MAKE) ckuus6.$(EXT) \
  2132.     "CFLAGS= -DBSD4 -DOSF -D_BSD -DTCPSOCKET -DCK_ANSIC -DSIG_V \
  2133.     -DCK_CURSES -DCK_RTSCTS -DFNFLOAT -DOSF32 -DHDBUUCP $(KFLAGS)"
  2134.     $(MAKE) ckuusx.$(EXT) \
  2135.     "CFLAGS= -DBSD4 -DOSF -D_BSD -DTCPSOCKET -DCK_ANSIC -DSIG_V \
  2136.     -DCK_CURSES -DCK_RTSCTS -DFNFLOAT -DOSF32 -DHDBUUCP $(KFLAGS)"
  2137.     $(MAKE) osf "KFLAGS= -DOSF32 -DHDBUUCP -O2 -Olimit 3200 $(KFLAGS)"
  2138.  
  2139. dec-osf32:
  2140.     $(MAKE) "MAKE=$(MAKE)" du32 KTARGET=$${KTARGET:-$(@)}
  2141.  
  2142. #Digital UNIX 4.0 through 4.0D (use tru64 targets for 4.0E and above)...
  2143. du40:
  2144.     @echo Making C-Kermit $(CKVER) for Digital UNIX 4.0...
  2145.     $(MAKE) osf KTARGET=$${KTARGET:-$(@)} \
  2146.     "KFLAGS= -DOSF40 -DHDBUUCP -DFNFLOAT \
  2147.     -unsigned -std1 -O3 -Olimit 2400 $(KFLAGS)" "LIBS=-lm"
  2148.  
  2149. du40gcc:
  2150.     @echo Making C-Kermit $(CKVER) for Digital UNIX 4.0 with gcc ...
  2151.     $(MAKE) osf CC=gcc CC2=gcc KTARGET=$${KTARGET:-$(@)} \
  2152.     "KFLAGS= -DOSF40 -DHDBUUCP $(KFLAGS)"
  2153.  
  2154. #Tru64 Unix 4.0E
  2155. tru64-40e:
  2156.     @echo Making C-Kermit $(CKVER) for Tru64 UNIX 4.0E...
  2157.     $(MAKE) osf KTARGET=$${KTARGET:-$(@)} \
  2158.     "KFLAGS= -DOSF40 -DOSF40E -DTRU64 -DHDBUUCP -DFNFLOAT -DNOCOTFMC \
  2159.     -unsigned -std1 -O3 -Olimit 2400 $(KFLAGS)" "LIBS=-lm"
  2160.  
  2161. tru64-40f:
  2162.     @echo Making C-Kermit $(CKVER) for Tru64 UNIX 4.0F...
  2163.     $(MAKE) osf KTARGET=$${KTARGET:-$(@)} \
  2164.     "KFLAGS= -DOSF40 -DOSF40F -DTRU64 -DHDBUUCP -DFNFLOAT -DNOCOTFMC \
  2165.     -unsigned -std1 -O3 -Olimit 2400 $(KFLAGS)" "LIBS=-lm"
  2166.  
  2167. tru64-40g:
  2168.     @echo Making C-Kermit $(CKVER) for Tru64 UNIX 4.0G...
  2169.     $(MAKE) osf KTARGET=$${KTARGET:-$(@)} \
  2170.     "KFLAGS= -DOSF40 -DOSF40G -DTRU64 -DHDBUUCP -DFNFLOAT -DNOCOTFMC \
  2171.     -unsigned -std1 -O3 -Olimit 2400 $(KFLAGS)" "LIBS=-lm"
  2172.  
  2173. tru64-50a:
  2174.     @echo Making C-Kermit $(CKVER) for Tru64 UNIX 5.0A...
  2175.     $(MAKE) osf KTARGET=$${KTARGET:-$(@)} \
  2176.     "KFLAGS= -DTRU64 -DOSF50 -DHDBUUCP \
  2177.     -unsigned -std1 -O3 -Olimit 2400 $(KFLAGS)"
  2178.  
  2179. tru64-51a:
  2180.     @echo Making C-Kermit $(CKVER) for Tru64 UNIX 5.1A...
  2181.     $(MAKE) osf KTARGET=$${KTARGET:-$(@)} \
  2182.     "KFLAGS= -DTRU64 -DOSF50 -DOSF51A -DHDBUUCP \
  2183.     -unsigned -std1 -O3 -Olimit 2400 $(KFLAGS)"
  2184.  
  2185. du50:
  2186.     $(MAKE) tru64-50a KTARGET=$${KTARGET:-$(@)}
  2187.  
  2188. du40-ridiculous-checking:
  2189.     @echo Making C-Kermit $(CKVER) for Digital UNIX 4.0.
  2190.     @echo Checking everything - assumes DECC...
  2191.     $(MAKE) osf KTARGET=$${KTARGET:-$(@)} \
  2192.     "KFLAGS= -DOSF40 -DHDBUUCP -w0 -warnprotos -check -portable \
  2193.     -unsigned -std1 -O3 -Olimit 1760 $(KFLAGS)"
  2194.  
  2195. #Sequent DYNIX/ptx 1.2.1
  2196. dynixptx12:
  2197.     @echo Making C-Kermit $(CKVER) for Sequent DYNIX/ptx 1.2.1...
  2198.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  2199.     "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -DPTX -DNOGETUSERSHELL -DNOLEARN \
  2200.     -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t $(KFLAGS) -i -O" \
  2201.     "LNKFLAGS = -i"
  2202.  
  2203. #Sequent DYNIX/ptx 1.3 or 1.4
  2204. dynixptx13:
  2205.     @echo Making C-Kermit $(CKVER) for Sequent DYNIX/ptx 1.3 TCP/IP...
  2206.     $(MAKE) xermit "CFLAGS= -O KTARGET=$${KTARGET:-$(@)} \
  2207.     -DSVR3 -DDIRENT -DHDBUUCP -DPTX -DCK_POLL -DNOGETUSERSHELL \
  2208.     -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t -DTCPSOCKET $(KFLAGS) -i" \
  2209.     "LNKFLAGS = -i" "LIBS = -lsocket -linet -lnsl"
  2210.  
  2211. #Sequent DYNIX/ptx 2.0, ANSI C compilation
  2212. #Should work on any hardware platform when DYNIX/ptx runs, including
  2213. #386, 486, Pentium.
  2214. dynixptx20:
  2215.     @echo 'Making C-Kermit $(CKVER) for POSIX, Sequent DYNIX/ptx 2.0...'
  2216.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2217.     "CFLAGS= -DPOSIX -DHDBUUCP -DTCPSOCKET \
  2218.     -DWAIT_T=int -DPTX -DNOGETUSERSHELL $(KFLAGS) -O" \
  2219.     "LIBS = -lsocket -linet -lnsl"
  2220.  
  2221. #Sequent DYNIX/ptx 2.0, ANSI C compilation, with curses
  2222. dynixptx20c:
  2223.     @echo 'Making C-Kermit $(CKVER) for POSIX, Sequent DYNIX/ptx 2.0...'
  2224.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2225.     "CFLAGS= -DPOSIX -DHDBUUCP -DTCPSOCKET -DWAIT_T=int -DPTX -DCK_CURSES \
  2226.     -DCK_NEWTERM -DNOGETUSERSHELL $(KFLAGS) -O" \
  2227.     "LIBS = -lsocket -linet -lnsl -lcurses -ltermcap"
  2228.  
  2229. #Sequent DYNIX/ptx 2.1.6, 80486, ANSI C compilation, with curses:
  2230. # -Xa -- use ANSI compiler.
  2231. # -Wc,-pw -- suppress portability warnings.
  2232. # -Wc,-i386 -- 80386 cpu.
  2233. # -Wc,-i486 -- 80486 cpu.
  2234. # -Wc,-P5 -- Pentium (default).
  2235. # -Wc,-O3 -- highest optimization.
  2236. # -Wa,-N17061 -- increase symbol table from default of 15013 for ckcuni.c.
  2237. # Early versions of DYNIX/ptx 2.1.x may need -DCK_POLL instead of -DSELECT.
  2238. # Add "$&" after the colon in the "xermit" target for parallel makes.
  2239. dynixptx216c:
  2240.     @echo 'Making C-Kermit $(CKVER) for POSIX, Sequent DYNIX/ptx 2.1.6'
  2241.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2242.     "CFLAGS= -DPOSIX -DHDBUUCP -DDYNAMIC -DTCPSOCKET \
  2243.     -DSELECT -DCK_REDIR -DCK_NAWS -DCK_WREFRESH -DSW_ACC_ID \
  2244.     -DTCP_NODELAY=1 -DTRMBUFL=2048 -DBIGBUFOK -DHADDRLIST \
  2245.     -DPTX  -DCK_CURSES -DCK_NEWTERM -DNOGETUSERSHELL -DNOREALPATH \
  2246.     $(KFLAGS) -Xa -Wc,-pw -Wc,-i486 -Wc,-O3 -Wa,-N17061" \
  2247.     "LIBS = -lXbsd -lseq -lsocket -linet -lnsl -lmalloc -lm -lcurses" \
  2248.     "LNKFLAGS = -s"
  2249.  
  2250. #Sequent DYNIX/ptx 2.1.6, gcc 2.7.2.2, with curses:
  2251. dynixptx216cgcc:
  2252.     @echo 'Making C-Kermit $(CKVER) for POSIX, Sequent DYNIX/ptx 2.1.6 gcc'
  2253.     $(MAKE) xermit "CC = gcc" "CC2 = gcc" KTARGET=$${KTARGET:-$(@)} \
  2254.     "CFLAGS= -DPOSIX -DHDBUUCP -DDYNAMIC -DTCPSOCKET \
  2255.     -DSELECT -DCK_REDIR -DCK_NAWS -DCK_WREFRESH -DSW_ACC_ID \
  2256.     -DTCP_NODELAY=1 -DTRMBUFL=2048 -DBIGBUFOK -DHADDRLIST \
  2257.     -DPTX  -DCK_CURSES -DCK_NEWTERM -DNOGETUSERSHELL -DNOREALPATH \
  2258.     $(KFLAGS) -O3 -pipe -funsigned-char" \
  2259.     "LIBS = -lXbsd -lseq -lsocket -linet -lnsl -lmalloc -lm -lcurses" \
  2260.     "LNKFLAGS = -s"
  2261.  
  2262. #Sequent DYNIX/ptx 4.0, ANSI C compilation, with curses
  2263. dynixptx41c:
  2264.     @echo 'Making C-Kermit $(CKVER) for POSIX, Sequent DYNIX/ptx 4.0...'
  2265.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2266.     "CFLAGS= -DPOSIX -DHDBUUCP -DTCPSOCKET \
  2267.     -DWAIT_T=int -DPTX -DPTX4 -DCK_CURSES -DCK_NEWTERM \
  2268.     -DNOGETUSERSHELL $(KFLAGS) -O" \
  2269.     "LIBS = -lsocket -lnsl -lcurses -ltermcap"
  2270.  
  2271. #Sequent DYNIX/ptx 4.4, ANSI C compilation, with curses
  2272. dynixptx44:
  2273.     @echo 'Making C-Kermit $(CKVER) for POSIX, Sequent DYNIX/ptx 4.4...'
  2274.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2275.     "CFLAGS= -DPTX -DPTX4 -DPOSIX -DHDBUUCP -DTCPSOCKET -DWAIT_T=int \
  2276.     -DCK_CURSES -DCK_NEWTERM -DBIGBUFOK -DSELECT -DNOGETUSERSHELL \
  2277.     $(KFLAGS) -O" "LIBS = -lsocket -lnsl -lcurses -ltermcap"
  2278.  
  2279. #Sequent DYNIX 3.0.x
  2280. dynix3:
  2281.     @echo Making C-Kermit $(CKVER) for Sequent DYNIX 3.0.x...
  2282.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2283.     "CFLAGS= -DBSD43 -DACUCNTRL -DTCPSOCKET -O \
  2284.     -DPWUID_T=int -DGID_T=int $(KFLAGS)"
  2285.  
  2286. #Sequent DYNIX 3.0.x, no ACUCNTRL
  2287. dynix3noacu:
  2288.     @echo Making C-Kermit $(CKVER) for Sequent DYNIX 3.0.x...
  2289.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2290.     "CFLAGS= -DBSD43 -DLCKDIR -DTCPSOCKET -O \
  2291.     -DUID_T=int -DGID_T=int $(KFLAGS)"
  2292.  
  2293. #Sequent DYNIX 3.1.x
  2294. dynix31:
  2295.     @echo Making C-Kermit $(CKVER) for Sequent DYNIX 3.1.x...
  2296.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2297.     "CFLAGS= -O -DDCLPOPEN -DLCKDIR -DBSD4 -DTCPSOCKET $(KFLAGS)"
  2298.  
  2299. #Sequent DYNIX 3.1.2, as above but with curses, to be compiled by gcc 2.3.3.
  2300. dynix31c:
  2301.     @echo 'Making C-Kermit $(CKVER) for Sequent DYNIX 3.1.2, curses...'
  2302.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2303.     "CFLAGS= -O2 -DDCLPOPEN -DACUCNTRL \
  2304.     -DBSD43 -DTCPSOCKET -DCK_CURSES -DUID_T=int \
  2305.     $(KFLAGS)" "LIBS= -lcurses -ltermcap"
  2306.  
  2307. #Convex C1 with Berkeley Unix
  2308. convex:
  2309.     @echo Making C-Kermit $(CKVER) for Convex C1 / BSD...
  2310.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  2311.     "CFLAGS= -DBSD4 -DNOLEARN $(KFLAGS) -Dmsleep=mnap"
  2312.  
  2313. #Convex C210 with Convex/OS 8
  2314. convex8:
  2315.     @echo Making C-Kermit $(CKVER) for Convex C210 with OS 8
  2316.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2317.     "CFLAGS= -DBSD4 -DTCPSOCKET -DNODEBUG -DDIRENT -DNOFILEH \
  2318.     $(KFLAGS) -DSIG_V -Dmsleep=mnap"
  2319.  
  2320. #Convex C2 with Convex OS 9.1 (should also work with 8.1 or later)
  2321. #with ANSI C compiler, uses BSD 4.3 uucp lockfile convention.
  2322. convex9:
  2323.     @echo Making C-Kermit $(CKVER) for Convex C210 with OS 9.1
  2324.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2325.     "CFLAGS= -DPOSIX -DCONVEX9 -DNOIEXTEN -DDIRENT -DNOFILEH -DTCPSOCKET \
  2326.     -D__STDC__ -DLCKDIR -Dmsleep=mnap -O -ext -tm c1 $(KFLAGS)" \
  2327.     "LNKFLAGS = -ext"
  2328.  
  2329. #Convex C2 with Convex OS 10.1 or later
  2330. #with gcc 2.x C compiler
  2331. convex10gcc:
  2332.     @echo Making C-Kermit $(CKVER) for Convex C2 with OS 10.1 using gcc
  2333.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2334.     "CFLAGS= -DPOSIX -DCONVEX9 -DNOIEXTEN -DDIRENT -DNOFILEH -DTCPSOCKET \
  2335.     -D__STDC__  -Dmsleep=mnap -O2 $(KFLAGS)" CC=gcc CC2=gcc
  2336.  
  2337. #Cray X-MP or Y-MP UNICOS 6.x or 7.x.
  2338. #NOTE: NPROC tells how many parallel makes to run.  If your Cray has multiple
  2339. #processors, you can set NPROC up to the number of CPUs, e.g. NPROC=16.
  2340. cray:
  2341.     @echo 'Making C-Kermit $(CKVER) for Cray X/Y-MP UNICOS 6.x or 7.0...
  2342.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} NPROC=1 \
  2343.     "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -DTCPSOCKET $(KFLAGS) -O1"
  2344.  
  2345. #Cray X-MP or Y-MP UNICOS 8.0 Alpha.
  2346. cray8:
  2347.     @echo 'Making C-Kermit $(CKVER) for Cray X/Y-MP UNICOS 8.0 Alpha...
  2348.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} NPROC=1 \
  2349.     "CFLAGS= -DSVR4 -DDIRENT -DHDBUUCP -DTCPSOCKET $(KFLAGS) -O1"
  2350.  
  2351. #Cray-2 or Cray 3-CSOS
  2352. #NOTE: NPROC tells how many parallel makes to run.  If your Cray has multiple
  2353. #processors, you can set NPROC up to the number of CPUs, e.g. NPROC=16.
  2354. craycsos:
  2355.     @echo 'Making C-Kermit $(CKVER) for Cray-2/3 CSOS
  2356.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} NPROC=1 \
  2357.     "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -DTCPSOCKET \
  2358.     $(KFLAGS) -DCK_ANSIC -DCK_CURSES" "LIBS=-lnet"
  2359.  
  2360. #NeXTSTEP 1.0 through 3.2.
  2361. #Includes fullscreen file transfer display (curses) and TCP/IP support.
  2362. #Uses shared library to make executable program about 80K smaller.
  2363. #Remove "LIBS = -lsys_s" if this causes trouble.
  2364. next:
  2365.     @echo Making C-Kermit $(CKVER) for NeXTSTEP...
  2366.     @echo 'If you get errors in ckutio.c about w_S, w_T, etc,'
  2367.     @echo 'add KFGLAGS=-DNOREDIRECT to your make command.'
  2368.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2369.     "CFLAGS= -DNEXT -DTCPSOCKET -DLCKDIR -DNOPUTENV -DFNFLOAT \
  2370.     -pipe -DCK_CURSES $(KFLAGS) -O -w" "LIBS = -lsys_s -lcurses -ltermcap"
  2371.  
  2372. nextc:
  2373.     $(MAKE) "MAKE=$(MAKE)" next KTARGET=$${KTARGET:-$(@)}
  2374.  
  2375. nextg:
  2376.     $(MAKE) "MAKE=$(MAKE)" next KFLAGS=-Wall KTARGET=$${KTARGET:-$(@)}
  2377.  
  2378. nextgc:
  2379.     $(MAKE) "MAKE=$(MAKE)" next KFLAGS=-Wall KTARGET=$${KTARGET:-$(@)}
  2380.  
  2381. #NeXTSTEP 3.3.
  2382. #Includes fullscreen file transfer display and TCP/IP.
  2383. next33:
  2384.     @echo Making C-Kermit $(CKVER) for NeXTSTEP 3.3...
  2385.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2386.     "CFLAGS= -DNEXT33 -DTCPSOCKET -DLCKDIR -DNOPUTENV -DFNFLOAT \
  2387.     -pipe -DCK_CURSES $(KFLAGS) -O -w" "LIBS = -lsys_s -lcurses -ltermcap"
  2388.  
  2389. #OPENSTEP 4.2 for Sparc, m680x0, HP PA-RISC, and Intel.
  2390. #Includes fullscreen file transfer display and TCP/IP.
  2391. #ckcpro.c compiled without optimization because it crashes the compiler.
  2392. openstep42:
  2393.     @echo Making C-Kermit $(CKVER) for OPENSTEP 4.2...
  2394.     $(MAKE) ckcpro.$(EXT) \
  2395.     "CFLAGS= -DOPENSTEP42 -DNEXT33 -DTCPSOCKET -DLCKDIR -DNOPUTENV \
  2396.     -DFNFLOAT -pipe -DCK_CURSES $(KFLAGS) -w"
  2397.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2398.     "CFLAGS= -DOPENSTEP42 -DNEXT33 -DTCPSOCKET -DLCKDIR -DNOPUTENV \
  2399.     -DFNFLOAT -pipe -DCK_CURSES $(KFLAGS) -O -w" \
  2400.     "LIBS = -lsys_s -lcurses -ltermcap"
  2401.  
  2402. #NeXT with malloc debugger
  2403. nextmd:
  2404.     @echo Making C-Kermit $(CKVER) for NeXT with malloc debugging...
  2405.     $(MAKE) mermit KTARGET=$${KTARGET:-$(@)} \
  2406.     "CFLAGS= -DNEXT -DTCPSOCKET -DLCKDIR -DNOPUTENV -DFNFLOAT \
  2407.     -DCK_CURSES $(KFLAGS) -O -w -Dmalloc=dmalloc -Dfree=dfree -DMDEBUG" \
  2408.     "LIBS = -lsys_s -lcurses -ltermcap"
  2409.  
  2410. #Build for NeXTSTEP with "fat" binaries (MABs) that run on both Motorola
  2411. #and Intel platforms.
  2412. nextfat:
  2413.     $(MAKE) "MAKE=$(MAKE)" next KTARGET=$${KTARGET:-$(@)} \
  2414.     "KFLAGS=-Wall -arch m68k -arch i386" "LNKFLAGS = -arch m68k -arch i386"
  2415.  
  2416. #NeXTSTEP on Intel Platforms.
  2417. next486:
  2418.     @echo Making C-Kermit $(CKVER) for NeXTSTEP on Intel Platforms...
  2419.     @echo 'If you get errors in ckutio.c about w_S, w_T, etc,'
  2420.     @echo 'add KFGLAGS=D-DNOREDIRECT to your make command.'
  2421.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2422.     "CFLAGS= -DNEXT -DTCPSOCKET -DLCKDIR -DNOPUTENV -DFNFLOAT \
  2423.     -DNODEBUG -O3 -fno-omit-frame-pointer -fschedule-insns2 -pipe \
  2424.     -DCK_CURSES $(KFLAGS) -w" "LIBS = -lsys_s -lcurses -ltermcap"
  2425.  
  2426. #Single binary that runs on NeXT 68030 and 68040, Intel, HP, and Sparc,
  2427. #as well as on OpenStep/Mach.
  2428. nextquadfat:
  2429.     $(MAKE) "MAKE=$(MAKE)" next KTARGET=$${KTARGET:-$(@)} \
  2430.     "KFLAGS=-Wall -arch m68k -arch i386 -arch hppa -arch sparc" \
  2431.     "LNKFLAGS = -arch m68k -arch i386 -arch hppa -arch sparc"
  2432.  
  2433. #BeBox
  2434. beboxdr7:
  2435.     @echo 'Making C-Kermit $(CKVER) for the BeBox...'
  2436.     @echo 'Link step will fail with default Metroworks linker 64K limit.'
  2437.     @echo 'Code Warrior Gold required to link big programs.'
  2438.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  2439.     "CC=/boot/develop/tools/mwcc" "CC2=/boot/develop/tools/mwld" \
  2440.     "CFLAGS= -DBEBOX -DBE_DR_7 -DPOSIX -DNOUUCP -DNOLEARN $(KFLAGS) -O"
  2441.  
  2442. #BeBox BeOS DR7 only
  2443. bebox:
  2444.     @echo 'Making C-Kermit $(CKVER) for BeBox...'
  2445.     @echo 'Link step will fail with default Metroworks linker 64K limit.'
  2446.     @echo 'Code Warrior Pro 3.0 for BeBox required to link big programs.'
  2447.     $(MAKE) wermit "CC=mwcc" "CC2=mwld" KTARGET=$${KTARGET:-$(@)} \
  2448.     "CFLAGS= -DBEBOX -DPOSIX -DNOLEARN -DNOUUCP $(KFLAGS) -O"
  2449.  
  2450. #BeOS 4.5
  2451. #We have to use the wermit target because 'fd_set' is unknown.
  2452. beos45:
  2453.     $(MAKE) wermit "CC=$(CC)" "CC2=$(CC2)" KTARGET=$${KTARGET:-$(@)} \
  2454.     "CFLAGS= -DBEOS -DBEOS45 -DPOSIX -DNOIKSD -DNOREALPATH -DSYSTIMEH \
  2455.     -DNOCOTFMC -DNOUUCP -DNOLEARN $(KFLAGS) -O" \
  2456.     "LIBS = $(LIBS)"
  2457.  
  2458. #BeOS 4.5
  2459. beos45net:
  2460.     $(MAKE) beos45 "KFLAGS=-DTCPSOCKET -DNO_DNS_SRV $(KFLAGS)" \
  2461.     "LIBS=-lnet -lnetapi"
  2462.  
  2463. #Plan 9 from Bell Labs
  2464. plan9:
  2465.     @echo 'C-Kermit for Plan 9 from Bell Labs - calling ckpker.mk...'
  2466.     make -f ckpker.mk
  2467.  
  2468. #POSIX
  2469. posix:
  2470.     @echo 'Making C-Kermit $(CKVER) for pure POSIX...'
  2471.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  2472.     "CFLAGS= -DPOSIX -DNOUUCP -DNOLEARN $(KFLAGS) -O"
  2473.  
  2474. # PowerMAX OS (SVR4) from Concurrent (tested on PowerMAX 5.1)
  2475. powermax:
  2476.     @echo 'Making C-Kermit $(CKVER) for Concurrent PowerMAX OS...'
  2477.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2478.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DPOWERMAX \
  2479.     -DNETPTY -DHAVE_STREAMS -DHAVE_GRANTPT -DHAVE_PTSNAME -DPUSH_PTEM \
  2480.     -DPUSH_LDTERM -DPUSH_TTCOMPAT \
  2481.     -DSTERMIOX -DTCPSOCKET -DCK_CURSES $(KFLAGS)" \
  2482.     "LIBS= -lsocket -lnsl -lresolv -lcurses -lgen -lc -lucbc"
  2483.  
  2484. #Berkeley Software Design Inc. BSDI
  2485. # Substitute "LIBS= -lnewcurses -ltermcap" if desired.
  2486. bsdi:
  2487.     @echo 'Making C-Kermit $(CKVER) for BSDI ...'
  2488.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2489.     "CFLAGS= -DBSD44 -DSETREUID -DSW_ACC_ID -DBIGBUFOK -DFIXCRTSCTS \
  2490.     -DTCPSOCKET -DCK_CURSES -DFNFLOAT $(KFLAGS) -O" \
  2491.     "LIBS= -lcurses -ltermcap -lm"
  2492.  
  2493. #Berkeley Software Design Inc. BSDI - has higher serial speeds than 1.x.
  2494. bsdi2:
  2495.     $(MAKE) "MAKE=$(MAKE)" bsdi KTARGET=$${KTARGET:-$(@)} \
  2496.     "KFLAGS=-DBSDI2 $(KFLAGS)"
  2497.  
  2498. bsdi3:
  2499.     $(MAKE) "MAKE=$(MAKE)" bsdi KTARGET=$${KTARGET:-$(@)} \
  2500.     "KFLAGS=-DBSDI2 -DBSDI3 $(KFLAGS)"
  2501.  
  2502. bsdi4:
  2503.     $(MAKE) "MAKE=$(MAKE)" bsdi KTARGET=$${KTARGET:-$(@)} \
  2504.     "KFLAGS=-DBSDI2 -DBSDI3 -DBSDI4 -DTPUTSFNTYPE=void -DTPUTSISVOID \
  2505.     -m486 $(KFLAGS)"
  2506.  
  2507. # (old name for the above)
  2508. bsdiposix:
  2509.     $(MAKE) "MAKE=$(MAKE)" bsdi
  2510.  
  2511.  
  2512. #Build a BSDI 4.x binary that also runs under FreeBSD (Terry Kennedy).
  2513. #But watch out for details like serial-port locking.
  2514. bsdix:
  2515.     $(MAKE) "MAKE=$(MAKE)" bsdi KTARGET=$${KTARGET:-$(@)} \
  2516.     "KFLAGS=-DBSDI2 -DBSDI3 -DBSDI4 -DTPUTSFNTYPE=void -DTPUTSISVOID \
  2517.     -m486 $(KFLAGS)" "LNKFLAGS=-static -Wl,-m,i386bsdi -Wl,-e,_start"
  2518.  
  2519. #Pyramid 9XXX (e.g. 9845) or MIServer T series, OSx 4.4b thru 5.1
  2520. pyramid:
  2521.     @echo Making C-Kermit $(CKVER) for Pyramid Dual Port OSx
  2522.     ucb $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2523.     "CFLAGS= -DBSD43 -DTCPSOCKET -DPYRAMID -O $(KFLAGS)" "LNKFLAGS = -s"
  2524.  
  2525. #Pyramid Dual Port OSx using HoneyDanBer UUCP, curses and TCP
  2526. pyramid-hdb:
  2527.     @echo Making C-Kermit $(CKVER) for Pyramid Dual Port OSx
  2528.     ucb $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2529.     "CFLAGS= -DBSD43 -DTCPSOCKET -DHBDUUCP -DCK_CURSES -O $(KFLAGS)" \
  2530.     "LNKFLAGS = -s" "LIBS = -lcurses -ltermcap"
  2531.  
  2532. #Pyramid DC/OSx (UNIX System V R4).
  2533. #Has <sys/termiox.h>, regular Berkeley sockets library, i.e. in.h and inet.h
  2534. #are not misplaced in sys (rather than netinet and arpa, respectively).
  2535. #Uses ANSI C.
  2536. #NOTE: Remove -O and Olimit:2500 from CFLAGS if TELNET connections do not work.
  2537. pyrdcosx:
  2538.     @echo 'Making C-Kermit $(CKVER) for Pyramid DC/OSx...'
  2539.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2540.     "CFLAGS = -Xa -O -DSVR4 -DDIRENT -DHDBUUCP -DSELECT -DNOGETUSERSHELL \
  2541.     -DCK_CURSES -DSTERMIOX -DTCPSOCKET -DPYRAMID -K Olimit:3100 \
  2542.     -DNO_DNS_SRV $(KFLAGS)" "LIBS= -lcurses -lsocket -lnsl" "LNKFLAGS = -s"
  2543.  
  2544. #IBM's AIX 3.0 on IBM 370 mainframe, tested on AIX F44 thru F50.
  2545. aix370:
  2546.     @echo Making C-Kermit $(CKVER) for IBM System/370 AIX 3.0...
  2547.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2548.     "CFLAGS= -DAIX370 -DTCPSOCKET -DLCKDIR -DDIRENT $(KFLAGS)" \
  2549.     "LIBS = -lbsd"
  2550.  
  2551. #IBM's AIX/ESA 2.1 (OSF/1) on IBM mainframe
  2552. aixesa:
  2553.     @echo Making C-Kermit $(CKVER) for IBM AIX/ESA...
  2554.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2555.     "CFLAGS= -DAIXESA -DTCPSOCKET $(KFLAGS) -O"
  2556.  
  2557. #IBM PS/2 with AIX 1.0 thru 1.3.
  2558. #  Reports indicate that -O switch must be omitted.
  2559. #  It is also possible that "make bsd" will work (reports welcome).
  2560. #  One report said "make LIBS=-lbsd bsd" did the trick.
  2561. #  NOTLOG is to get around a 'tlog' symbol defined in one of the headers.
  2562. ps2aix:
  2563.     @echo 'Making C-Kermit $(CKVER) for IBM AIX 1.x PS/2...'
  2564.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  2565.     "CFLAGS = -DATTSV -DNOREALPATH -DPS2AIX10 -DSIG_V \
  2566.     -DNOUNICODE -DNOTLOG -DNOLEARN $(KFLAGS) -i" \
  2567.     "LNKFLAGS = -i"
  2568.  
  2569. ps2aixnetc:
  2570.     @echo 'Making C-Kermit $(CKVER) for IBM AIX 1.x PS/2...'
  2571.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  2572.     "CFLAGS = -DATTSV -DNOREALPATH -DPS2AIX10 -DTCPSOCKET -DCK_CURSES \
  2573.     -DSIG_V -DNOUNICODE -DNOTLOG -DNOLEARN $(KFLAGS) -i" \
  2574.     "LIBS = -lcurses" "LNKFLAGS = -i"
  2575.  
  2576. ps2aix3:
  2577.     $(MAKE) ps2aix KTARGET=$${KTARGET:-$(@)}
  2578.  
  2579. #IBM RT PC with AIX 2.2.1, valid as of C-Kermit 8.0.
  2580. #NOTLOG because of a conflict in <sys/termio.h>.
  2581. #This one has unique and strange lockfiles.
  2582. #  -O removed on purpose (8.0).
  2583. #  In case of "compiler error: symbol table full", increase the -Nn number.
  2584. #  In case of "compiler error: Constant pool too big", boost the -Np number.
  2585. #  Add -DNOPUTENV if putenv() causes trouble.
  2586. #  Put -DNOIKSD back if IKSD-related problems occur.
  2587. rtaix:
  2588.     @echo 'Making C-Kermit $(CKVER) for IBM RT PC, AIX 2.2.1...'
  2589.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  2590.     "CFLAGS = -DATTSV -DRTAIX -DHDBUUCP -DDIRENT -DNOTLOG -DTCPSOCKET \
  2591.     -DNOGETUSERSHELL -DCLSOPN -DNOREALPATH -DNOUNICODE -DBSD_INCLUDES \
  2592.     -DUSE_LSTAT -DFNFLOAT -Nn2500 -Np1000 -Wq,-SJ2 -a -w $(KFLAGS)" \
  2593.     "LIBS = -lm $(LIBS)" "LNKFLAGS = -s"
  2594.  
  2595. #IBM RT PC with AIX 2.2.1 + curses
  2596. rtaixc:
  2597.     $(MAKE) rtaix "KFLAGS=-DCK_CURSES" "LIBS=-lcurses"
  2598.  
  2599. #IBM RT PC with AIX (ACIS) 2.2.1 (BSD 4.3)
  2600. # Add -O, -DDYNAMIC, -s, etc, if they work.
  2601. rtacis:
  2602.     @echo Making C-Kermit $(CKVER) for RT PC with ACIS 2.2.1 = BSD 4.3...
  2603.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  2604.     "CFLAGS= -DBSD4 -DTCPSOCKET -DNOREALPATH -DNOIKSD -DNOPUTENV \
  2605.     $(KFLAGS) -U__STDC__" "LNKFLAGS = -s"
  2606.  
  2607. #IBM AIX 3.0, 3.1, or 3.2 for RISC System/6000.
  2608. rs6000:
  2609.     @echo Making C-Kermit $(CKVER) for IBM AIX 3.0 or 3.1, RS/6000...
  2610.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2611.     "CFLAGS= -DAIXRS -DTCPSOCKET -DSVR3 -DDIRENT -DCK_ANSIC \
  2612.     -DCK_POLL -DCLSOPN -DSELECT_H -DNOTTYLOCK -O $(KFLAGS)" \
  2613.     "LNKFLAGS = -s"
  2614.  
  2615. #IBM AIX 3.0, 3.1, or 3.2 for RISC System/6000, with curses.
  2616. rs6000c:
  2617.     @echo Making C-Kermit $(CKVER) for IBM AIX 3.0 or 3.1, RS/6000...
  2618.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2619.     "CFLAGS= -DAIXRS -DTCPSOCKET -DSVR3 -DDIRENT -DCK_ANSIC \
  2620.     -DCK_POLL -DCLSOPN -DCK_CURSES -DSELECT_H -DNOTTYLOCK -DNOREALPATH \
  2621.     -O $(KFLAGS)" "LIBS= -lcurses -ltermcap" "LNKFLAGS = -s"
  2622.  
  2623. aix30:
  2624.     $(MAKE) rs6000 KTARGET=$${KTARGET:-$(@)}
  2625.  
  2626. aix31:
  2627.     $(MAKE) rs6000 KTARGET=$${KTARGET:-$(@)}
  2628.  
  2629. #IBM AIX 3.2 for RISC System/6000.
  2630. #In case of "subprogram too complex" warnings, add "-qmaxmem=16000" to CFLAGS.
  2631. rs6aix32:
  2632.     @echo Making C-Kermit $(CKVER) for IBM AIX 3.2, RS/6000...
  2633.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2634.     "CFLAGS= -DAIXRS -DTCPSOCKET -DSVR4 -DDIRENT -DCK_ANSIC -DNOREALPATH \
  2635.     -DSELECT_H -DCLSOPN -DNOTTYLOCK -O $(KFLAGS)" "LNKFLAGS = -s"
  2636.  
  2637. #IBM AIX 3.2 for RISC System/6000.
  2638. rs6aix32c:
  2639.     @echo Making C-Kermit $(CKVER) for IBM AIX 3.2, RS/6000, TCP+curses...
  2640.     @echo In case of Subprogram Too Complex warnings,
  2641.     @echo add -qmaxmem=16000 to CFLAGS.
  2642.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2643.     "CFLAGS= -DAIXRS -DTCPSOCKET -DSVR4 -DDIRENT -DCK_ANSIC -DNOREALPATH \
  2644.     -DCLSOPN -DCK_CURSES -DSELECT_H -DNOTTYLOCK -O $(KFLAGS)" \
  2645.     "LNKFLAGS = -s" "LIBS=-lcurses"
  2646.  
  2647. aix32:
  2648.     $(MAKE) rs6aix32c KTARGET=$${KTARGET:-$(@)}
  2649.  
  2650. #IBM AIX 4.1, 4.1.x on RISC System/6000 or Power Series.
  2651. #Generates common binary for all platforms if using xlc (IBM C compiler).
  2652. #When using gcc, add -mcpu=common to generate common binary.
  2653. #Note that this one needs CK_NEWTERM.
  2654. # Add -bbigtoc in case ld fails with TOC overflow.
  2655. aix41:
  2656.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.1.1 RS/6000 or PowerPC...
  2657.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2658.     "CFLAGS= -DAIXRS -DAIX41 -DSVR4 -DSTERMIOX -DTCPSOCKET -DDIRENT \
  2659.     -DCK_ANSIC -DCLSOPN -DCK_CURSES -DCK_NEWTERM -DSELECT -DSELECT_H \
  2660.     -DNOGETUSERSHELL -qmaxmem=16000 -O $(KFLAGS)" \
  2661.     "LNKFLAGS = -s" "LIBS=-lcurses"
  2662.  
  2663. #Ditto but with gcc.
  2664. #Remove "CC=gcc CC2=gcc" if you have gcc installed as cc.
  2665. aix41g:
  2666.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.1.1 RS/6000 or PowerPC...
  2667.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC=gcc" "CC2=gcc" \
  2668.     "CFLAGS= -DAIXRS -DAIX41 -DSVR4 -DSTERMIOX -DTCPSOCKET -DDIRENT \
  2669.     -DCK_ANSIC -DCLSOPN -DCK_CURSES -DCK_NEWTERM -DSELECT -DSELECT_H \
  2670.     -DNOGETUSERSHELL -O $(KFLAGS)" \
  2671.     "LNKFLAGS = -s -Xlinker -bbigtoc" "LIBS=-lcurses"
  2672.  
  2673. # Add -bbigtoc in case ld fails with TOC overflow.
  2674. aix41+krb5+krb4:
  2675.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.1.1 RS/6000 or PowerPC...
  2676.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} \
  2677.     "CFLAGS= -DAIXRS -DAIX41 -DSVR4 -DSTERMIOX -DTCPSOCKET -DDIRENT \
  2678.     -DCK_ANSIC -DCLSOPN -DCK_CURSES -DCK_NEWTERM -DSELECT -DSELECT_H \
  2679.     -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 -DKRB4 -DKRB524 \
  2680.     -DCK_ENCRYPTION -DCK_DES $(K5INC) $(K5INC)/krb5  \
  2681.     -DNOGETUSERSHELL -qmaxmem=16000 -O $(KFLAGS)" \
  2682.     "LNKFLAGS = -s" \
  2683.     "LIBS = $(K5LIB) -lcurses -lkrb4 -ldes425 -lkrb5 \
  2684.     -lcom_err -lk5crypto -lgssapi_krb5"
  2685.  
  2686. #Old name for "aix41".
  2687. rs6aix41c:
  2688.     $(MAKE) aix41 KTARGET=$${KTARGET:-$(@)}
  2689.  
  2690. #IBM AIX 4.1, 4.1.x, or 4.2 on RISC System/6000 or Power Series,
  2691. # with X.25 support
  2692. #Generates common binary for all platforms if using xlc (IBM C compiler).
  2693. #When using gcc, add -mcpu=common to generate common binary.
  2694. # Add -bbigtoc in case ld fails with TOC overflow.
  2695. aix41x25:
  2696.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.1.1 RS/6000 or PowerPC...
  2697.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2698.     "CFLAGS= -DAIXRS -DAIX41 -DSVR4 -DSTERMIOX -DTCPSOCKET -DDIRENT \
  2699.     -DCK_ANSIC -DCLSOPN -DCK_CURSES -DCK_NEWTERM -DSELECT -DSELECT_H \
  2700.     -DIBMX25 -DDEBUG -DNOGETUSERSHELL -qmaxmem=16000 -g $(KFLAGS)" \
  2701.     "LNKFLAGS = -g -bI:/lib/pse.exp" "LIBS=-lcurses -lodm -lcfg"
  2702.     -@echo "]0;kermit done\c"
  2703.  
  2704. #As above but without -g in LNKFLAGS.
  2705. # Add -bbigtoc in case ld fails with TOC overflow.
  2706. aix41x25o:
  2707.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.1.1 RS/6000 or PowerPC...
  2708.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2709.     "CFLAGS= -DAIXRS -DAIX41 -DSVR4 -DSTERMIOX -DTCPSOCKET -DDIRENT \
  2710.     -DCK_ANSIC -DCLSOPN -DCK_CURSES -DCK_NEWTERM -DSELECT -DSELECT_H \
  2711.     -DIBMX25 -DNODEBUG -DNOGETUSERSHELL -qmaxmem=16000 $(KFLAGS)" \
  2712.     "LNKFLAGS = -bI:/lib/pse.exp" "LIBS=-lcurses -lodm -lcfg"
  2713.     -@echo "]0;kermit done\c"
  2714.  
  2715. #AIX 4.2 -- Must have CK_NEWTERM or echoing is lost after curses.
  2716. # Add -bbigtoc in case ld fails with TOC overflow.
  2717. aix42:
  2718.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.2 or higher...
  2719.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2720.     "CFLAGS= -DAIXRS -DAIX41 -DAIX42 -DSVR4 -DSTERMIOX -DTCPSOCKET \
  2721.     -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DCK_NEWTERM -DFNFLOAT \
  2722.     -DSELECT -DSELECT_H -DNOGETUSERSHELL -qmaxmem=16000 -O $(KFLAGS)" \
  2723.     "LNKFLAGS = -s" "LIBS=-lcurses -lm"
  2724.  
  2725. #AIX 4.3 -- Must NOT have CK_NEWTERM or else C-Kermit hangs after curses.
  2726. # -bbigtoc needed on some systems but not others to avoid TOC overflow.
  2727. # "man ld" says -bbigtoc makes program run slower.
  2728. aix43:
  2729.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.3 or higher...
  2730.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2731.     "CFLAGS= -DAIXRS -DAIX41 -DAIX43 -DSVR4 -DSTERMIOX -DTCPSOCKET \
  2732.     -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DSELECT -DSELECT_H \
  2733.     -DFNFLOAT -DNOGETUSERSHELL -qmaxmem=16000 -bbigtoc -O $(KFLAGS)" \
  2734.     "LNKFLAGS = -s" "LIBS=-lcurses -lm"
  2735.  
  2736. #AIX 4.3 with IBM X.25.
  2737. aix43x25:
  2738.     @echo "Making C-Kermit $(CKVER) for IBM AIX 4.3 with X.25..."
  2739.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2740.     "CFLAGS= -DAIXRS -DAIX41 -DAIX43 -DSVR4 -DSTERMIOX -DTCPSOCKET \
  2741.     -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DSELECT -DSELECT_H \
  2742.     -DFNFLOAT -DNOGETUSERSHELL -DIBMX25 \
  2743.     -qmaxmem=16000 -bbigtoc -O $(KFLAGS)" \
  2744.     "LNKFLAGS = -bI:/lib/pse.exp" "LIBS=-lcurses -lodm -lcfg -lm"
  2745.  
  2746. #AIX 4.3 -- Must NOT have CK_NEWTERM or else C-Kermit hangs after curses.
  2747. # -mminimal-toc needed on some systems but not others to avoid TOC overflow.
  2748. # "man ld" says -bbigtoc makes program run slower.
  2749. aix43g:
  2750.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.3 gcc...
  2751.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  2752.     "CFLAGS= -mminimal-toc -g -O -DAIXRS -DAIX41 -DAIX43 -DSVR4 \
  2753.     -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DSELECT -DSELECT_H \
  2754.     -DSTERMIOX -DTCPSOCKET -DFNFLOAT -DNOGETUSERSHELL $(KFLAGS)" \
  2755.     "LIBS=-lcurses -lm"
  2756.  
  2757. aix43gcc:
  2758.     $(MAKE) aix43g
  2759.  
  2760. # None of the following aix43gcc attempts work on a gcc-only AIX 4.3.3 box.
  2761. # It just plain can't find the math routines (fmod, pow, exp, sqrt, log10,...)
  2762. # Which is odd because nm /usr/lib/libC.a finds them...
  2763.  
  2764. #in case aix43gcc can't find its math library...
  2765. aix43gccx:
  2766.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.3 gcc...
  2767.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  2768.     "CFLAGS= -mminimal-toc -g -O -DAIXRS -DAIX41 -DAIX43 -DSVR4 \
  2769.     -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DSELECT -DSELECT_H \
  2770.     -DSTERMIOX -DTCPSOCKET -DFNFLOAT -DNOGETUSERSHELL $(KFLAGS)" \
  2771.     "LIBS= -L/usr/local/lib/gcc-lib/powerpc-ibm-aix4.3.1.0/2.95.2 \
  2772.     -lcurses -bloadmap -bnoquiet"
  2773.  
  2774. #in case aix43gccx can't find its math library...
  2775. aix43gccy:
  2776.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.3 gcc...
  2777.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  2778.     "CFLAGS= -mminimal-toc -g -O -DAIXRS -DAIX41 -DAIX43 -DSVR4 \
  2779.     -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DSELECT -DSELECT_H \
  2780.     -DSTERMIOX -DTCPSOCKET -DFNFLOAT -DNOGETUSERSHELL $(KFLAGS)" \
  2781.     "LIBS= -lcurses -bloadmap -bnoquiet"
  2782.  
  2783. #in case aix43gccx can't find its math library...
  2784. aix43gccz:
  2785.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.3 gcc...
  2786.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  2787.     "CFLAGS= -mminimal-toc -g -O -DAIXRS -DAIX41 -DAIX43 -DSVR4 \
  2788.     -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DSELECT -DSELECT_H \
  2789.     -DSTERMIOX -DTCPSOCKET -DFNFLOAT -DNOGETUSERSHELL $(KFLAGS)" \
  2790.     "LIBS= -L. -lcurses -bloadmap -bnoquiet"
  2791.  
  2792.  
  2793. #AIX 4.3 with MIT Kerberos 5 and Kerberos 4 compatibility mode
  2794. # Must NOT have CK_NEWTERM or else C-Kermit hangs after curses.
  2795. # -mminimal-toc needed on some systems but not others to avoid TOC overflow.
  2796. # "man ld" says -bbigtoc makes program run slower.
  2797. aix43gcc+krb5+krb4:
  2798.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.3 or higher w/Kerberos...
  2799.     $(MAKE) krbmit 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 \
  2803.     -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 -DKRB4 -DKRB524 \
  2804.     -DCK_ENCRYPTION -DCK_DES -funsigned-char $(K5INC) $(K5INC)/krb5 \
  2805.     $(KFLAGS)" \
  2806.     "LIBS=$(K5LIB) -lcurses -lm -lkrb4 -ldes425 -lkrb5 \
  2807.     -lcom_err -lk5crypto -lcrypt -lgssapi_krb5"
  2808.  
  2809. #AIX 4.3 with MIT Kerberos 5, Kerberos 4 compatibility mode and OpenSSL
  2810. # Must NOT have CK_NEWTERM or else C-Kermit hangs after curses.
  2811. # -mminimal-toc needed on some systems but not others to avoid TOC overflow.
  2812. # "man ld" says -bbigtoc makes program run slower.
  2813. aix43gcc+krb5+krb4+openssl:
  2814.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.3 or higher w/Kerberos...
  2815.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  2816.     "CFLAGS= -mminimal-toc -g -O -DAIXRS -DAIX41 -DAIX43 -DSVR4 \
  2817.     -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DSELECT -DSELECT_H \
  2818.     -DSTERMIOX -DTCPSOCKET -DFNFLOAT -DNOGETUSERSHELL \
  2819.     -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 -DKRB4 -DKRB524 \
  2820.     -DCK_ENCRYPTION -DCK_DES -DCK_CAST -DLIBDES -DCK_SSL \
  2821.     -funsigned-char $(K5INC) $(K5INC)/krb5 $(SSLINC) $(KFLAGS)" \
  2822.     "LIBS=$(K5LIB) $(SSLLIB) -lssl -lcrypto \
  2823.     -lcurses -lm -lkrb4 -ldes425 -lkrb5 -lcom_err -lk5crypto -lcrypt \
  2824.     -lgssapi_krb5"
  2825.  
  2826. aix43gcc+openssl:
  2827.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.3 or higher w/OpenSSL...
  2828.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  2829.     "CFLAGS= -mminimal-toc -g -O -DAIXRS -DAIX41 -DAIX43 -DSVR4 \
  2830.     -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DSELECT -DSELECT_H \
  2831.     -DSTERMIOX -DTCPSOCKET -DFNFLOAT -DNOGETUSERSHELL \
  2832.     -DCK_AUTHENTICATION -DCK_SSL -funsigned-char $(SSLINC) $(KFLAGS)" \
  2833.     "LIBS=$(SSLLIB) -lssl -lcrypto -lcurses -lm -lcrypt"
  2834.  
  2835. aix44:
  2836.     $(MAKE) aix42 "KFLAGS=-DAIX44 -qmaxmem=20000 $(KFLAGS)" \
  2837.     KTARGET=$${KTARGET:-$(@)}
  2838.  
  2839. aix45:
  2840.     $(MAKE) aix42 "KFLAGS=-DAIX45 -qmaxmem=20000 $(KFLAGS)" \
  2841.     KTARGET=$${KTARGET:-$(@)}
  2842.  
  2843. aix50:
  2844.     $(MAKE) aix42 "KFLAGS=-DAIX50 -qmaxmem=20000 $(KFLAGS)" \
  2845.     KTARGET=$${KTARGET:-$(@)}
  2846.  
  2847. aix51:
  2848.     $(MAKE) aix42 "KFLAGS=-DAIX51 -qmaxmem=20000 $(KFLAGS)" \
  2849.     KTARGET=$${KTARGET:-$(@)}
  2850.  
  2851. aix52:
  2852.     $(MAKE) aix42 "KFLAGS=-DAIX51 -DAIX52 -qmaxmem=20000 $(KFLAGS)" \
  2853.     KTARGET=$${KTARGET:-$(@)}
  2854.  
  2855. aix53:
  2856.     $(MAKE) aix42 "KFLAGS=-DAIX51 -DAIX52 -qmaxmem=20000 $(KFLAGS)" \
  2857.     KTARGET=$${KTARGET:-$(@)}
  2858.  
  2859. #Bull DPX/2 with BOS/X, like AIX/RS6000
  2860. bulldpx2:
  2861.     @echo Making C-Kermit $(CKVER) for Bull DPX/2 with BOS/X...
  2862.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  2863.     "CFLAGS= -DSVR3 -DDIRENT -DCK_ANSIC -DCKTYP_H=<sys/types.h> \
  2864.     -DCK_POLL -DNOGETUSERSHELL -DCLSOPN -DNOLEARN -O $(KFLAGS)" \
  2865.     "LNKFLAGS = -s"
  2866.  
  2867. #Sun UNIX 3.5 with gcc 2.3.3.
  2868. sunos3gcc:
  2869.     @echo Making C-Kermit $(CKVER) for Sun UNIX 3.5 and gcc...
  2870.     $(MAKE) xermit CC=gcc CC2=gcc KTARGET=$${KTARGET:-$(@)} \
  2871.     CFLAGS="-g -O -DBSD4 -DTCPSOCKET $(KFLAGS)"
  2872.  
  2873. #SunOS version 4.0, BSD environment, has saved original euid feature.
  2874. # Add "CC=/usr/ucb/cc CC2=/usr/ucb/cc" if necessary.
  2875. # Note: Including Unicode crashes the assembler in ckcuni.c.
  2876. sunos4:
  2877.     @echo Making C-Kermit $(CKVER) for SunOS 4.0, BSD environment...
  2878.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2879.     "CFLAGS= -O -DSUNOS4 -DFNFLOAT -DNOUNICODE $(KFLAGS)" \
  2880.     "LIBS=-lm"
  2881.  
  2882. #As above, but with SunLink X.25 support
  2883. sunos4x25:
  2884.     @echo SunLink X.25 support
  2885.     $(MAKE) "MAKE=$(MAKE)" sunos4 KTARGET=$${KTARGET:-$(@)} \
  2886.     "KFLAGS=$(KFLAGS) -DFNFLOAT -DSUNX25" \
  2887.     "LIBS=-lm"
  2888.  
  2889. #SUN OS version 4.1 - 4.1.3, BSD environment, has saved original euid feature.
  2890. #Uses Honey DanBer UUCP.  Requires presence of /usr/spool/locks directory.
  2891. # /var/spool/ should be a symbolic link to  /usr/spool/.
  2892. # ... or 'make xermit "CC= /usr/ucb/cc " \'
  2893. # Note: "xermit" means use the select() version of the CONNECT module.
  2894. sunos41:
  2895.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 / BSD...
  2896.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2897.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNOUNICODE $(KFLAGS)" \
  2898.     "LIBS= $(LIBS) -lresolv -lm"
  2899.  
  2900. #As above, but compiled with gcc.  Gives 24-32K size reduction
  2901. #with gcc 2.1 or 2.2.2.  CAUTION: make sure "fixincludes" has been run on
  2902. #the include files, so gcc's are in sync with the regular Sun ones!
  2903. #This includes the curses library for fullscreen file transfer display.
  2904. #NDGPWNAM needed for GCC 2.5.6, not needed for 2.4.0, but it's uncertain
  2905. #whether it will do any harm for 2.4.0 compilation -- if so, remove it.
  2906. sunos41gcc:
  2907.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 with gcc and curses...
  2908.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
  2909.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT \
  2910.     -funsigned-char $(KFLAGS)" "LIBS= -lcurses -ltermcap -lresolv -lm"
  2911.  
  2912. # As above, but without -funsigned-char so I can see the warnings that
  2913. # everybody else will get when they use ANSI compilers that don't have this
  2914. # option (gsc = gcc signed char).
  2915. sunos41gsc:
  2916.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 with gcc and curses...
  2917.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
  2918.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT \
  2919.     $(KFLAGS)" "LIBS= -lcurses -ltermcap -lresolv -lm"
  2920.  
  2921. #As above but with ckucon.c rather than ckucns.c (for testing only)
  2922. sunos41gccfork:
  2923.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 with gcc and curses...
  2924.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
  2925.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT \
  2926.     -DNOLEARN -funsigned-char $(KFLAGS)" \
  2927.     "LIBS= -lcurses -ltermcap -lresolv -lm"
  2928.  
  2929. #as above but configured for Kerberos IV
  2930. sunos41gcc+krb4:
  2931.     @echo Making C-Kermit $(CKVER) for SunOS 4.1, gcc, curses, krb4...
  2932.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
  2933.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT \
  2934.     -DTCPSOCKET -DCK_AUTHENTICATION -DCK_KERBEROS  -DKRB4 \
  2935.     -DCK_ENCRYPTION -DCK_DES -DCK_CAST -DBIGBUFOK -funsigned-char \
  2936.     $(K4INC) $(KFLAGS)" \
  2937.     "LIBS= $(K4LIB) -lcurses -ltermcap -lresolv -lm -lkrb -ldes"
  2938.  
  2939. #as above but configured for SSL/TLS
  2940. sunos41gcc+openssl:
  2941.     @echo Making C-Kermit $(CKVER) for SunOS 4.1, gcc, curses, ssl...
  2942.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
  2943.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT \
  2944.     -DCK_AUTHENTICATION -funsigned-char \
  2945.     -DCK_SSL -DTCPSOCKET -DBIGBUFOK $(SSLINC) $(KFLAGS)" \
  2946.     "LIBS= $(SSLLIB) -lcurses -ltermcap -lresolv -lm -lssl -lcrypto"
  2947.  
  2948. #as above but configured for Kerberos IV and SSL/TLS
  2949. sunos41gcc+krb4+openssl:
  2950.     @echo Making C-Kermit $(CKVER) for SunOS 4.1, gcc, curses, krb4...
  2951.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
  2952.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT \
  2953.     -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB4 -DCK_ENCRYPTION -DCK_DES \
  2954.     -DCK_CAST -DCK_SSL -DLIBDES -DTCPSOCKET -DBIGBUFOK -funsigned-char \
  2955.     $(K4INC) $(SSLINC) $(KFLAGS)" \
  2956.     "LIBS= $(K4LIB) $(SSLLIB) \
  2957.     -lcurses -ltermcap -lresolv -lm -lkrb -lssl -lcrypto"
  2958.  
  2959. #as above but configured for Kerberos IV and ZLIB enabled SSL/TLS
  2960. sunos41gcc+krb4+openssl+zlib:
  2961.     @echo Making C-Kermit $(CKVER) for SunOS 4.1, gcc, curses, krb4...
  2962.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
  2963.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT \
  2964.     -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB4 -DCK_ENCRYPTION -DCK_DES \
  2965.     -DCK_CAST -DCK_SSL -DLIBDES -DTCPSOCKET -DBIGBUFOK -funsigned-char \
  2966.     -DZLIB $(K4INC) $(SSLINC) \
  2967.     $(KFLAGS)" \
  2968.     "LIBS= $(K4LIB) $(SSLLIB) \
  2969.     -lcurses -ltermcap -lresolv -lm -lkrb -lssl -lcrypto -lz"
  2970.  
  2971. #as above but configured for Kerberos IV and SRP and ZLIB enabled SSL/TLS
  2972. sunos41gcc+krb4+srp+openssl+zlib:
  2973.     @echo "C-Kermit $(CKVER) SunOS 4.1: gcc,curses,krb4,srp,ssl,zlib..."
  2974.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
  2975.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT \
  2976.     -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB4 -DCK_ENCRYPTION -DCK_DES \
  2977.     -DCK_CAST -DCK_SSL -DLIBDES -DTCPSOCKET -DBIGBUFOK -funsigned-char \
  2978.     -DZLIB -DCK_SRP $(K4INC) $(SRPINC) $(SSLINC) $(KFLAGS)" \
  2979.     "LIBS= $(K4LIB) $(SRPLIB) $(SSLLIB) \
  2980.     -lcurses -ltermcap -lresolv -lm -lkrb -lkrypto \
  2981.     -lsrp -lssl -lcrypto -lz"
  2982.  
  2983. #as above but configured for Kerberos IV and SRP and ZLIB enabled SSL/TLS
  2984. sunos41gcc+srp+openssl+zlib:
  2985.     @echo "C-Kermit $(CKVER) SunOS 4.1: gcc,curses,srp,ssl,zlib..."
  2986.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
  2987.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT \
  2988.     -DCK_AUTHENTICATION -DCK_ENCRYPTION -DCK_DES \
  2989.     -DCK_CAST -DCK_SSL -DLIBDES -DTCPSOCKET -DBIGBUFOK -funsigned-char \
  2990.     -DZLIB -DCK_SRP $(SRPINC) $(SSLINC) \
  2991.     $(KFLAGS)" \
  2992.     "LIBS= $(SRPLIB) $(SSLLIB) \
  2993.     -lcurses -ltermcap -lresolv -lm -lkrypto -lsrp -lssl -lcrypto -lz "
  2994.  
  2995. #SUNOS 4.1 as sunos41 above, but also with curses support
  2996. sunos41c:
  2997.     @echo Curses support
  2998.     $(MAKE) "MAKE=$(MAKE)" sunos41 KTARGET=$${KTARGET:-$(@)} \
  2999.     "KFLAGS=$(KFLAGS) -DCK_CURSES -DFNFLOAT " \
  3000.     "LIBS= -lcurses -ltermcap"
  3001.  
  3002. #As SunOS 4.1.x, gcc, configured as Internet Kermit Server.
  3003. # . NOLOCAL removes capability to make connections
  3004. # . TNCODE allows server-side Telnet negotiation.
  3005. # . used to include -lpwent, why?
  3006. # . used to include -L/usr/local/lib -lm, why?
  3007. sunos41giks:
  3008.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 with gcc for IKS...
  3009.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
  3010.     "CFLAGS= -O -DSUNOS41 -DNDGPWNAM -DFNFLOAT \
  3011.     -DNOLOCAL -DTCPSOCKET -DTNCODE -DNOPUSH $(KFLAGS)" \
  3012.     "LIBS= -lm -lresolv"
  3013.  
  3014. #SUNOS 4.1 with SunLink X.25 support
  3015. sunos41x25:
  3016.     @echo SunLink X.25 support
  3017.     $(MAKE) "MAKE=$(MAKE)" wermit KTARGET=$${KTARGET:-$(@)} \
  3018.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNOUNICODE -DFNFLOAT -DSUNX25 \
  3019.     -DNOLEARN $(KFLAGS)" "LIBS= $(LIBS) -lresolv -lm"
  3020.  
  3021. #SUNOS 4.1 with SunLink X.25 support and curses
  3022. sunos41x25c:
  3023.     @echo SunLink X.25 support + curses
  3024.     $(MAKE) "MAKE=$(MAKE)" wermit KTARGET=$${KTARGET:-$(@)} \
  3025.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNOUNICODE -DFNFLOAT -DSUNX25 \
  3026.     -DCK_CURSES -DNOLEARN $(KFLAGS)" \
  3027.     "LIBS= $(LIBS) -lcurses -ltermcap -lresolv -lm"
  3028.  
  3029. #SUN with Solaris 2.0 = SunOS 5.0.
  3030. #Mostly the same as System V R4.  Don't use this with later Solaris versions.
  3031. solaris20:
  3032.     @echo 'Making C-Kermit $(CKVER) for Sun with Solaris 2.0 and curses...'
  3033.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3034.     "CFLAGS = -O -DSVR4 -DSOLARIS -DDIRENT -DHDBUUCP -DSTERMIOX \
  3035.     -DTCPSOCKET -DCK_CURSES -DFNFLOAT -DCK_POLL $(KFLAGS)" \
  3036.     "LIBS= -lsocket -lnsl -lcurses -ltermlib -lm" "LNKFLAGS = -s"
  3037.  
  3038. #SUN with Solaris 2.0.
  3039. #As above, but built with the gcc compiler from the Cygnus CD-ROM.
  3040. solaris20g:
  3041.     @echo 'Making C-Kermit $(CKVER) for Sun Solaris 2.0, gcc, and curses..'
  3042.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3043.     "CFLAGS = -O -DSVR4 -DSOLARIS -DDIRENT -DHDBUUCP -DSTERMIOX \
  3044.     -DTCPSOCKET -DCK_CURSES -DCK_POLL -DFNFLOAT $(KFLAGS)" \
  3045.     "LIBS= -lsocket -lnsl -lcurses -ltermlib -lm" "LNKFLAGS = -s" \
  3046.     CC=/opt/cygnus-sol2-1.1/bin/gcc CC2=/opt/cygnus-sol2-1.1/bin/gcc
  3047.  
  3048. #SunOS 5.1 = Solaris 2.1.
  3049. #NOTE: A C compiler is no longer bundled with SunOS 5.1, so to compile C
  3050. #programs, you might have to change your PATH to include the directory
  3051. #/usr/ccs/bin AFTER the directory containing the compiler.  SunPRO C is
  3052. #installed by default in /opt/SUNWspro/bin.  So a sample PATH might be:
  3053. #
  3054. # /usr/local/bin:/usr/bin:/opt/SUNWspro/bin:/usr/ccs/bin:\
  3055. # /usr/ucb:/usr/sbin:/sbin:.
  3056. #
  3057. # or:
  3058. #
  3059. # /usr/openwin/bin:/export/home/SUNWspro/bin:/usr/ccs/bin:/usr/sbin:/usr/bin.
  3060. #
  3061. #NOTE 2: Compilation with the Apogee C compiler (apcc) might not work,
  3062. #because it refuses to allow "-Usun".  Reportedly, newer releases of apcc
  3063. #(such as 1.2.17) work OK, use: "make -e sunos51 CC=apcc CC2=apcc".
  3064. solaris21:
  3065.     @echo 'Making C-Kermit $(CKVER) for SunOS 5.x....'
  3066.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3067.     "CFLAGS = -O -Usun -DSVR4 -DSOLARIS -DDIRENT -DHDBUUCP -DFNFLOAT \
  3068.     -DSELECT -DNODEBUG -DSTERMIOX $(KFLAGS)" "LIBS = -lm" "LNKFLAGS = -s"
  3069.  
  3070. #C-Kermit for Solaris 2.0-2.4 compiled with gcc, includes curses and TCP/IP.
  3071. #Change -O2 to -O if -O2 gives trouble.
  3072. #Remove -Usun if it causes trouble.
  3073. #Your PATH should start with something like:
  3074. #  /usr/local/gnu/bin:/usr/ccs/bin:
  3075. #Produces a huge executable -- strip with /usr/ccs/bin/strip (not Gnu strip).
  3076. #Also don't add "LNKFLAGS = -s" -- strip manually instead.
  3077. #Also note: this can NOT be linked statically - Sun makes it impossible.
  3078. #And for Solaris 2.4, you might have to replace:
  3079. # /usr/local/lib/gcc-lib/i486-sun-solaris2/2.4.5/include/sys/stat.h
  3080. #with /usr/include/sys/stat.h.
  3081. solaris2xg:
  3082.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.x with GNU cc...'
  3083.     @echo 'Please read the comments that accompany the solaris2xg target.'
  3084.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  3085.     "CFLAGS = -g -O -Usun -DSVR4 -DSOLARIS -DSTERMIOX -DSELECT -DFNFLOAT \
  3086.     -DCK_CURSES -DCK_NEWTERM -DDIRENT -DHDBUUCP -DTCPSOCKET $(KFLAGS)" \
  3087.     "LIBS= -ltermlib -lsocket -lnsl -lm -lresolv $(LIBS)"
  3088.  
  3089. #ditto but no curses.
  3090. solaris2xgnc:
  3091.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.x with GNU cc...'
  3092.     @echo 'Please read the comments that accompany the solaris2xg target.'
  3093.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  3094.     "CFLAGS = -g -O -Usun -DSVR4 -DSOLARIS -DSTERMIOX -DSELECT -DFNFLOAT \
  3095.     -DDIRENT -DHDBUUCP -DTCPSOCKET $(KFLAGS)" \
  3096.     "LIBS= -lsocket -lnsl -lm -lresolv $(LIBS)"
  3097.  
  3098. #and with Kerberos IV
  3099. solaris2xg+krb4:
  3100.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.x with GNU cc, krb4...'
  3101.     @echo 'Please read the comments that accompany the solaris2xg target.'
  3102.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  3103.     "CFLAGS = -g -O -Usun -DSVR4 -DSOLARIS -DSTERMIOX -DSELECT -DFNFLOAT \
  3104.     -DCK_CURSES -DCK_NEWTERM -DDIRENT -DHDBUUCP -DTCPSOCKET \
  3105.     -DCK_AUTHENTICATION -DCK_KERBEROS  -DKRB4 -DCK_ENCRYPTION \
  3106.     -DCK_DES -DCK_CAST -DBIGBUFOK $(K4INC) $(KFLAGS)" \
  3107.     "LIBS= $(K4LIB) -ltermlib -lsocket -lnsl -lm -lresolv -lkrb -ldes \
  3108.     $(LIBS)" 
  3109.  
  3110. #and with OpenSSL,ZLIB,PAM,SHADOW
  3111. solaris2xg+openssl+zlib+pam+shadow:
  3112.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.x with gcc, OpenSSL...'
  3113.     @echo 'Please read the comments that accompany the solaris2xg target.'
  3114.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  3115.     "CFLAGS = -g -O -Usun -DSVR4 -DSOLARIS -DSTERMIOX -DSELECT -DFNFLOAT \
  3116.     -DCK_CURSES -DCK_NEWTERM -DDIRENT -DHDBUUCP -DTCPSOCKET \
  3117.     -DCK_AUTHENTICATION -DCK_SSL -DCK_PAM -DCK_SHADOW  -DZLIB \
  3118.     -DBIGBUFOK $(SSLINC) $(KFLAGS)" \
  3119.     "LIBS= $(SSLLIB) -ltermlib \
  3120.     -lsocket -lnsl -lm -lresolv -lssl -lcrypto -lpam -lz" 
  3121.  
  3122. #Ditto but with GCC 3.1 in which you have to specify 32-bit with -m32.
  3123. #In Solaris 9 (and maybe 8) you'll also need specifiy the Library path.
  3124. #Reportedly this can't be done here, but only with:
  3125. # crle -l /usr/lib:/usr/local/ssl/lib
  3126. #prior to building.  Note: 64-bit not tested with SSL.
  3127. #For no-crypto 64-bit builds see the solaris9g64 target.
  3128. solaris2xg32+openssl+zlib+pam+shadow:
  3129.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.x with gcc, OpenSSL...'
  3130.     @echo 'Please read the comments that accompany the solaris2xg target.'
  3131.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} CC="gcc -m32" CC2="gcc -m32" \
  3132.     "CFLAGS = -g -O -Usun -DSVR4 -DSOLARIS -DSTERMIOX -DSELECT -DFNFLOAT \
  3133.     -DCK_CURSES -DCK_NEWTERM -DDIRENT -DHDBUUCP -DTCPSOCKET \
  3134.     -DCK_AUTHENTICATION -DCK_SSL -DCK_PAM -DCK_SHADOW  -DZLIB \
  3135.     -DBIGBUFOK $(SSLINC) $(KFLAGS)" \
  3136.     "LIBS= $(SSLLIB) -ltermlib \
  3137.     -lsocket -lnsl -lm -lresolv -lssl -lcrypto -lpam -lz" 
  3138.  
  3139. #and with Krb5,Krb4,OpenSSL,SHADOW
  3140. solaris2xg+krb5+krb4+openssl+shadow:
  3141.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.x with gcc,k5,k4,ssl...'
  3142.     @echo 'Please read the comments that accompany the solaris2xg target.'
  3143.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  3144.     "CFLAGS = -O -Usun -DSVR4 -DSOLARIS -DSTERMIOX -DSELECT -DFNFLOAT \
  3145.     -DCK_CURSES -DCK_NEWTERM -DDIRENT -DHDBUUCP -DTCPSOCKET \
  3146.     -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 -DKRB4 -DKRB524 \
  3147.     -DCK_ENCRYPTION -DCK_SSL -DCK_DES -DCK_CAST -DBIGBUFOK \
  3148.     $(K5INC) $(K5INC)/krb5 $(SSLINC) $(KFLAGS)" \
  3149.     "LIBS= $(K5LIB) $(SSLLIB) -ltermlib -lsocket -lnsl -lm -lresolv \
  3150.     -lkrb4 -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto"
  3151.  
  3152. #and with OpenSSL
  3153. solaris2xg+openssl+pam+shadow:
  3154.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.x with gcc, OpenSSL...'
  3155.     @echo 'Please read the comments that accompany the solaris2xg target.'
  3156.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  3157.     "CFLAGS = -g -O -Usun -DSVR4 -DSOLARIS -DSTERMIOX -DSELECT -DFNFLOAT \
  3158.     -DCK_CURSES -DCK_NEWTERM -DDIRENT -DHDBUUCP -DTCPSOCKET \
  3159.     -DCK_AUTHENTICATION -DCK_SSL -DCK_PAM -DCK_SHADOW \
  3160.     -DBIGBUFOK $(SSLINC) $(KFLAGS)" \
  3161.     "LIBS= $(SSLLIB) -ltermlib \
  3162.     -lsocket -lnsl -lm -lresolv -lssl -lcrypto -lpam" 
  3163.  
  3164. solaris22g:
  3165.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=-DPOSIX_CRTSCTS $(KFLAGS)" solaris2xg \
  3166.     KTARGET=$${KTARGET:-$(@)}
  3167.  
  3168. solaris23g:
  3169.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=-DPOSIX_CRTSCTS $(KFLAGS)" solaris2xg \
  3170.     KTARGET=$${KTARGET:-$(@)}
  3171.  
  3172. #Solaris 2.4 built with gcc
  3173. solaris24g:
  3174.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET:-$(@)} \
  3175.     solaris2xg "KFLAGS=-DSOLARIS24 -DPOSIX_CRTSCTS $(KFLAGS)"
  3176.  
  3177. #Solaris 2.5 built with gcc
  3178. solaris25g:
  3179.     $(MAKE) "MAKE=$(MAKE)" solaris2xg KTARGET=$${KTARGET:-$(@)} \
  3180.     "KFLAGS=-funsigned-char -DSOLARIS25 $(KFLAGS)"
  3181.  
  3182. #Solaris 2.5 built with gcc and Kerberos IV
  3183. solaris25g+krb4:
  3184.     $(MAKE) "MAKE=$(MAKE)" solaris2xg+krb4 KTARGET=$${KTARGET:-$(@)} \
  3185.     "KFLAGS=-funsigned-char -DSOLARIS25 $(KFLAGS)"
  3186.  
  3187. #Solaris 2.5 built with gcc and Kerberos V/IV, SSL, ...
  3188. solaris25g+krb5+krb4+openssl+shadow:
  3189.     $(MAKE) "MAKE=$(MAKE)" solaris2xg+krb5+krb4+openssl+shadow \
  3190.     KTARGET=$${KTARGET:-$(@)} \
  3191.     "KFLAGS=-funsigned-char -DSOLARIS25 $(KFLAGS)"
  3192.  
  3193. #Solaris 2.6 with gcc
  3194. solaris26g:
  3195.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET:-$(@)} solaris2xg \
  3196.     "KFLAGS= -DSOLARIS26 -DCK_PAM -DCK_SHADOW $(KFLAGS)" \
  3197.     "LIBS = -lpam"
  3198.  
  3199. #Solaris 2.6 with gcc and SSL
  3200. solaris26g+openssl:
  3201.     $(MAKE) "MAKE=$(MAKE)"  solaris2xg+openssl+pam+shadow \
  3202.     KTARGET=$${KTARGET:-$(@)} "KFLAGS= -DSOLARIS26 $(KFLAGS)"
  3203.  
  3204. #Solaris 2.6 with gcc, no curses (e.g. because libtermlib is missing).
  3205. solaris26gnc:
  3206.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET:-$(@)} solaris2xgnc \
  3207.     "KFLAGS= -DSOLARIS26 -DCK_PAM -DCK_SHADOW $(KFLAGS)" \
  3208.     "LIBS= -lpam"
  3209.  
  3210. #Solaris 7 with gcc (32-bit)
  3211. solaris7g:
  3212.     $(MAKE) "MAKE=$(MAKE)" solaris2xg KTARGET=$${KTARGET:-$(@)} \
  3213.     "KFLAGS=-DSOLARIS7 -DCK_PAM -DCK_SHADOW $(KFLAGS)" \
  3214.     "LIBS= -lpam"
  3215.  
  3216. #Solaris 7 with gcc + OpenSSL (32-bit)
  3217. solaris7g+openssl+zlib+pam+shadow:
  3218.     $(MAKE) "MAKE=$(MAKE)" solaris2xg+openssl+zlib+pam+shadow \
  3219.     KTARGET=$${KTARGET:-$(@)} \
  3220.     "KFLAGS=-DSOLARIS7 -DCK_PAM -DCK_SHADOW $(KFLAGS)"
  3221.  
  3222. #Solaris 7 with gcc + Kerberos IV (32-bit)
  3223. solaris7g+krb4:
  3224.     $(MAKE) "MAKE=$(MAKE)" solaris2xg+krb4 KTARGET=$${KTARGET:-$(@)} \
  3225.     "KFLAGS=-DSOLARIS7 -DCK_PAM -DCK_SHADOW $(KFLAGS)" \
  3226.     "LIBS= -lpam"
  3227.  
  3228. #Solaris 8 with gcc (32-bit)
  3229. solaris8g:
  3230.     $(MAKE) "MAKE=$(MAKE)" solaris2xg KTARGET=$${KTARGET:-$(@)} \
  3231.     "KFLAGS=-DSOLARIS8 -DCK_PAM -DCK_SHADOW $(KFLAGS)" \
  3232.     "LIBS= -lpam"
  3233.  
  3234. #Solaris 9 with gcc 3.1 (32-bit)
  3235. solaris9g:
  3236.     @echo 'Making C-Kermit $(CKVER) for Solaris 9 with gcc'
  3237.     $(MAKE) "MAKE=$(MAKE)" CC="gcc -m32" CC2="gcc -m32" xermit \
  3238.     KTARGET=$${KTARGET:-$(@)} \
  3239.     "CFLAGS = -g -O -Usun -DSVR4 -DSOLARIS -DSOLARIS9 -DUSE_STRERROR \
  3240.     -DSTERMIOX -DSELECT -DFNFLOAT -DCK_PAM -DCK_SHADOW \
  3241.     -DCK_CURSES -DCK_NEWTERM -DDIRENT -DHDBUUCP -DTCPSOCKET $(KFLAGS)" \
  3242.     "LIBS= -ltermlib -lsocket -lnsl -lm -lresolv -lpam"
  3243.  
  3244. #Solaris 9 with gcc 3.1 (64-bit)
  3245. #Peeking inside struct FILE at its members ist strengst verboten.
  3246. solaris9g64:
  3247.     @echo 'Making C-Kermit $(CKVER) for Solaris 9 with gcc'
  3248.     $(MAKE) "MAKE=$(MAKE)" CC="gcc -m64" CC2="gcc -m64" xermit \
  3249.     KTARGET=$${KTARGET:-$(@)} \
  3250.     "CFLAGS = -g -O -Usun -DSVR4 -DSOLARIS     -DSOLARIS9 -DNOARROWKEYS \
  3251.     -DSTERMIOX -DSELECT -DFNFLOAT -DUSE_STRERROR -DCK_PAM -DCK_SHADOW \
  3252.     -DCK_CURSES -DCK_NEWTERM -DDIRENT -DHDBUUCP -DTCPSOCKET $(KFLAGS)" \
  3253.     "LIBS= -ltermlib -lsocket -lnsl -lm -lresolv -lpam"
  3254.  
  3255. #Solaris 8 with gcc + OpenSSL (32-bit)
  3256. solaris8g+openssl+zlib+pam+shadow:
  3257.     $(MAKE) "MAKE=$(MAKE)" solaris2xg+openssl+zlib+pam+shadow \
  3258.     KTARGET=$${KTARGET:-$(@)} "KFLAGS=-DSOLARIS8 $(KFLAGS)"
  3259.  
  3260. #Solaris 9 with gcc 3.1 + OpenSSL (32-bit)
  3261. solaris9g+openssl+zlib+pam+shadow:
  3262.     $(MAKE) "MAKE=$(MAKE)" solaris2xg32+openssl+zlib+pam+shadow \
  3263.     KTARGET=$${KTARGET:-$(@)} \
  3264.     "KFLAGS=-DSOLARIS9 -DUSE_STRERROR $(KFLAGS)"
  3265.  
  3266. #Solaris 8 with gcc + Kerberos IV (32-bit)
  3267. solaris8g+krb4:
  3268.     $(MAKE) "MAKE=$(MAKE)" solaris2xg+krb4 KTARGET=$${KTARGET:-$(@)} \
  3269.     "KFLAGS=-DSOLARIS8 -DCK_PAM -DCK_SHADOW $(KFLAGS)" \
  3270.     "LIBS= -lpam"
  3271.  
  3272. #Solaris 2.0-2.4, gcc, SunLink X.25 added.
  3273. #NOTE: Can't use xermit target with X.25.
  3274. solaris2xgx25:
  3275.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.x + X.25 with GNU cc...'
  3276.     @echo 'Please read the comments that accompany the solaris2xg entry.'
  3277.     $(MAKE) wermit CC=gcc CC2=gcc KTARGET=$${KTARGET:-$(@)} \
  3278.     "CFLAGS = -g -O -Usun -DSVR4 -DSOLARIS -DSTERMIOX -DSELECT -DSUNX25 \
  3279.     -DCK_CURSES -DCK_NEWTERM -DDIRENT -DHDBUUCP -DTCPSOCKET -DFNFLOAT \
  3280.     -DNOLEARN $(KFLAGS)" \
  3281.     "LIBS= -ltermlib -lm -L/opt/SUNWconn/lib -R/opt/SUNWconn/lib \
  3282.     -lsockx25 -lsocket -lnsl"
  3283.  
  3284. #Solaris 2.5, gcc, SunLink X.25 added.
  3285. solaris25gx25:
  3286.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET:-$(@)} solaris2xgx25 \
  3287.     "KFLAGS=-DSOLARIS25 $(KFLAGS)"
  3288.  
  3289. #Solaris 2.6, gcc, SunLink X.25 added.
  3290. solaris26gx25:
  3291.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET:-$(@)} solaris2xgx25 \
  3292.     "KFLAGS=-DSOLARIS26 -DCK_PAM -DCK_SHADOW $(KFLAGS)" \
  3293.     "LIBS= -lpam"
  3294.  
  3295. #Solaris 2.0 - 2.4, SunPro compiler, includes curses and TCP/IP.
  3296. #When using SUNWspro CC 2.0.1 under Solaris 2.3, be sure all cc patches
  3297. #are applied, otherwise corrupt or truncated object files can result.
  3298. #To build, set your PATH as follows:
  3299. #  /usr/local/bin:/usr/bin:/opt/SUNWspro/bin:/usr/ccs/bin:\
  3300. #  /usr/ucb:/usr/sbin:/sbin:.
  3301. # or (depending on where the compiler has been installed):
  3302. #  /usr/openwin/bin:/export/home/SUNWspro/bin:/usr/ccs/bin:/usr/sbin:/usr/bin.
  3303. #For additional optimization try using "-fast -xO4 -xdepend".
  3304. solaris2x:
  3305.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.x with SunPro cc...'
  3306.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3307.     "CFLAGS = -O -Usun -i -DSVR4 -DDIRENT -DSOLARIS -DHDBUUCP -DFNFLOAT \
  3308.     -DSELECT -DCK_CURSES -DCK_NEWTERM -DSTERMIOX -DTCPSOCKET $(KFLAGS)" \
  3309.     "LNKFLAGS = -s" "LIBS= -ltermlib -lsocket -lnsl -lm -lresolv"
  3310.  
  3311. #as above but configured for Kerberos IV
  3312. solaris2x+krb4:  
  3313.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.x, SunPro cc, krb4...'
  3314.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} \
  3315.     "CFLAGS = -O -Usun -i -DSVR4 -DDIRENT -DSOLARIS -DHDBUUCP -DFNFLOAT \
  3316.     -DSELECT -DCK_CURSES -DCK_NEWTERM -DSTERMIOX -DTCPSOCKET  \
  3317.     -DCK_AUTHENTICATION -DCK_KERBEROS  -DKRB4 \
  3318.     -DCK_ENCRYPTION -DCK_DES -DCK_CAST $(K4INC) $(KFLAGS)" \
  3319.     "LNKFLAGS = -s" \
  3320.     "LIBS= $(K4LIB) -ltermlib -lsocket -lnsl -lm -lresolv -lkrb -ldes"
  3321.  
  3322. solaris23:
  3323.     $(MAKE) "MAKE=$(MAKE)" solaris2x KTARGET=$${KTARGET:-$(@)} \
  3324.     "KFLAGS=$(KFLAGS)"
  3325.  
  3326. solaris24:
  3327.     $(MAKE) "MAKE=$(MAKE)" solaris2x KTARGET=$${KTARGET:-$(@)} \
  3328.     "KFLAGS=-DSOLARIS24 -DPOSIX_CRTSCTS $(KFLAGS)"
  3329.  
  3330. # template for Solaris 2.5 and above.
  3331. solaris25x:
  3332.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.x with SunPro cc...'
  3333.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3334.     "CFLAGS = -DFNFLOAT -O -Usun -i $(KFLAGS)" \
  3335.     "LNKFLAGS = -s" \
  3336.     "LIBS= -ltermlib -lsocket -lnsl -lm -lresolv $(LIBS)"
  3337.  
  3338. #Solaris 2.5, SunPro compiler, curses, TCP/IP
  3339. solaris25:
  3340.     $(MAKE) "MAKE=$(MAKE)" solaris25x KTARGET=$${KTARGET:-$(@)} \
  3341.     "KFLAGS=-DSOLARIS25 $(KFLAGS)"
  3342.  
  3343. #Solaris 2.5, SunPro compiler, curses, TCP/IP, Kerberos IV
  3344. solaris25+krb4:
  3345.     $(MAKE) "MAKE=$(MAKE)" solaris25x+krb4 KTARGET=$${KTARGET:-$(@)} \
  3346.     "KFLAGS=-DSOLARIS25 $(KFLAGS)"
  3347.  
  3348. #Solaris 2.6, SunPro compiler, curses, TCP/IP
  3349. solaris26:
  3350.     $(MAKE) "MAKE=$(MAKE)" solaris25x KTARGET=$${KTARGET:-$(@)} \
  3351.     "KFLAGS=-DSOLARIS26 -DCK_PAM -DCK_SHADOW $(KFLAGS)" \
  3352.     "LIBS= -lpam"
  3353.  
  3354. #Solaris 7 (aka 2.7)
  3355. solaris7:
  3356.     $(MAKE) "MAKE=$(MAKE)" solaris25x KTARGET=$${KTARGET:-$(@)} \
  3357.     "KFLAGS=-DSOLARIS7 -DCK_PAM -DCK_SHADOW $(KFLAGS)" \
  3358.     "LIBS= -lpam"
  3359.  
  3360. #Solaris 8
  3361. solaris8:
  3362.     $(MAKE) "MAKE=$(MAKE)" solaris25x KTARGET=$${KTARGET:-$(@)} \
  3363.     "KFLAGS=-DSOLARIS8 -DCK_PAM -DCK_SHADOW $(KFLAGS)" \
  3364.     "LIBS= -lpam"
  3365.  
  3366. #Solaris 9
  3367. solaris9:
  3368.     $(MAKE) "MAKE=$(MAKE)" solaris25x KTARGET=$${KTARGET:-$(@)} \
  3369.     "KFLAGS=-DSOLARIS9 -DCK_PAM -DCK_SHADOW -DUSE_STRERROR $(KFLAGS)" \
  3370.     "LIBS= -lpam"
  3371.  
  3372. #Solaris 2.0-2.3, SunPro compiler, with SunLink X.25 support.
  3373. #This will only run if user has /opt/SUNWconn/lib/libsockx25.so.1
  3374. #exists and can be dynamically linked.
  3375. #NOTE: Do not change target to xermit -- it doesn't support X.25.
  3376. solaris2x25:
  3377.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.x+X.25 with SunPro cc...'
  3378.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3379.     "CFLAGS = -O -i -Usun -DSVR4 -DSOLARIS -DDIRENT \
  3380.     -DSUNX25 -DTCPSOCKET -DHDBUUCP -DFNFLOAT -DNOLEARN \
  3381.     -DSELECT -DCK_CURSES -DCK_NEWTERM -DSTERMIOX $(KFLAGS)" \
  3382.     "LNKFLAGS = -s" \
  3383.     "LIBS= -ltermlib -L/opt/SUNWconn/lib -R/opt/SUNWconn/lib \
  3384.     -lsockx25 -lsocket -lnsl -lm -lresolv"
  3385.  
  3386. #Solaris 2.4, SunPro compiler, with SunLink X.25 support.
  3387. #This will only run if user has /opt/SUNWconn/lib/libsockx25.so.1
  3388. #exists and can be dynamically linked.
  3389. solaris24x25:
  3390.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.4+X.25 with SunPro cc...'
  3391.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3392.     "CFLAGS = -O -i -Usun -DSVR4 -DSOLARIS -DSOLARIS24 -DDIRENT -DNOLEARN \
  3393.     -DSUNX25 -DTCPSOCKET -DHDBUUCP -DFNFLOAT -DPOSIX_CRTSCTS \
  3394.     -DSELECT -DCK_CURSES -DCK_NEWTERM -DSTERMIOX $(KFLAGS)" \
  3395.     "LNKFLAGS = -s" \
  3396.     "LIBS= -ltermlib -L/opt/SUNWconn/lib -R/opt/SUNWconn/lib \
  3397.     -lsockx25 -lsocket -lnsl -lm -lresolv"
  3398.  
  3399. #Solaris 2.5, SunPro compiler, with SunLink X.25 support.
  3400. solaris25x25:
  3401.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.5+X.25 with SunPro cc...'
  3402.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3403.     "CFLAGS = -O -i -Usun -DSVR4 -DSOLARIS25 -DDIRENT -DSUNX25 \
  3404.     -DTCPSOCKET -DHDBUUCP -DSELECT -DCK_CURSES \
  3405.     -DCK_NEWTERM -DSTERMIOX -DFNFLOAT -DPOSIX_CRTSCTS -DNOLEARN \
  3406.     -I/opt/SUNWconn/include $(KFLAGS)" \
  3407.     "LIBS= -ltermlib -L/opt/SUNWconn/lib -R/opt/SUNWconn/lib \
  3408.     -lsockx25 -lsocket -lnsl -lm -lresolv"
  3409.  
  3410. #Solaris 2.6, SunPro compiler, with SunLink X.25 support.
  3411. solaris26x25:
  3412.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.6+X.25 with SunPro cc...'
  3413.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3414.     "CFLAGS = -O -i -Usun -DSVR4 -DSOLARIS26 -DDIRENT -DSUNX25 \
  3415.     -DTCPSOCKET -DHDBUUCP -DSELECT -DCK_CURSES -DCK_PAM -DCK_SHADOW \
  3416.     -DCK_NEWTERM -DSTERMIOX -DFNFLOAT -DPOSIX_CRTSCTS -DNOLEARN \
  3417.     -I/opt/SUNWconn/include $(KFLAGS)" \
  3418.     "LIBS= -ltermlib -L/opt/SUNWconn/lib -R/opt/SUNWconn/lib \
  3419.     -lsockx25 -lsocket -lnsl -lm -lresolv -lpam"
  3420.  
  3421. #The following sunosxxx entries are for debugging and testing only.
  3422.  
  3423. sunos41x:
  3424.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3425.     "CFLAGS= -O -DSUNOS41 -DDIRENT -DNOTLOG -DNOMSEND \
  3426.     -DNOUUCP -DNOSIGWINCH -DNOREDIRECT -DNOPUSH -DNOCCTRAP \
  3427.     -DNOICP -DNOLOCAL $(KFLAGS)"
  3428.  
  3429. #SunOS 4.1.x, debugging with Pure Software, Inc., Purify 2 (commercial runtime
  3430. #error-detection software for catching wild array references, etc).
  3431. #Before running the resulting wermit, you'll also need to define and export
  3432. #the following environment variables (as in this example):
  3433. #PURIFYHOME=/usr/local/purify ; export PURIFYHOME
  3434. #PURIFYCACHEDIR=/tmp ; export PURIFYCACHEDIR
  3435. sunos41cp:
  3436.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 / BSD / Curses / Purify...
  3437.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3438.     "CC2= purify -cache_dir=/usr/tmp cc" \
  3439.     "CFLAGS= -g -DSUNOS41 -DHDBUUCP -DDIRENT -DTCPSOCKET \
  3440.     -DSAVEDUID -DCK_CURSES $(KFLAGS)" \
  3441.     "LIBS= -lcurses -ltermcap"
  3442.  
  3443. #SunOS 4.1 with malloc debugger
  3444. sunos41md:
  3445.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 malloc debug...
  3446.     $(MAKE) mermit KTARGET=$${KTARGET:-$(@)} \
  3447.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DDIRENT -DTCPSOCKET \
  3448.     -DSAVEDUID $(KFLAGS) -Dmalloc=dmalloc -Dfree=dfree -DMDEBUG"
  3449.  
  3450. sunos41gmd:
  3451.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 with gcc and curses...
  3452.     $(MAKE) mermit KTARGET=$${KTARGET:-$(@)} "CC= gcc " "CC2= gcc" \
  3453.     "CFLAGS= -g -DSUNOS41 -DHDBUUCP -DDIRENT -DTCPSOCKET \
  3454.     -DNDGPWNAM -DSAVEDUID -DCK_CURSES -DRLOGCODE \
  3455.     $(KFLAGS) -Dmalloc=dmalloc -Dfree=dfree -DMDEBUG" \
  3456.     "LIBS= -lcurses -ltermcap"
  3457.  
  3458. #SunOS version 4.1, gcc, profiling with gprof, no debugging.
  3459. #To get profile, "make sunos41p" (on Sun), then "./wermit".  After running
  3460. #wermit, "gprof ./wermit | lpr" (or whatever) to get execution profile.
  3461. sunos41p:
  3462.     @echo Making C-Kermit $(CKVER) for SunOS 4.x with profiling...
  3463.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC= gcc " "CC2= gcc" \
  3464.     "CFLAGS= -DSUNOS41 -DNODEBUG -DSAVEDUID -DDIRENT -DTCPSOCKET \
  3465.     -DNDGPWNAM $(KFLAGS) -pg" "LNKFLAGS = -pg"
  3466.  
  3467. #SunOS version 4.1 or later, BSD environment, minimum features.
  3468. sunos41min:
  3469.     @echo Minimum interactive
  3470.     $(MAKE) "MAKE=$(MAKE)" sunos41 KTARGET=$${KTARGET:-$(@)} \
  3471.     "KFLAGS=-DNOSPL -DNOXMIT -DNOMSEND -DNOFRILLS -DNORETRY \
  3472.     -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG -DNOSCRIPT -DNOCSETS \
  3473.     -DNOSHOW -DNOSETKEY -DNOUUCP -DNORECALL -DNOREDIRECT \
  3474.     -DNOPUSH -DNOMDMHUP -DNOJC -DNOFDZERO -DNOESCSEQ \
  3475.     -DNONET -DCK_SMALL -DNOCKSPEED -DNOCKTIMERS -DNOLOGIN \
  3476.     -DNOCKXYZ -DNOKERBEROS -DNOMKDIR -DNOPATTERNS -DNOPERMS -DNOPIPESEND \
  3477.     -DNORECURSIVE -DNORENAME -DNORESEND -DNOSETKEY \
  3478.     -DNOTRIGGER -DNOTUNING $(KFLAGS)" "LNKFLAGS = -s"
  3479.  
  3480. #SunOS version 4.1, BSD environment, min size, command-line only...
  3481. sunos41m:
  3482.     @echo Minimum size
  3483.     $(MAKE) "MAKE=$(MAKE)" sunos41min KTARGET=$${KTARGET:-$(@)} \
  3484.     "KFLAGS=-DNOICP $(KFLAGS)"
  3485.  
  3486. #SunOS version 4.1, BSD environment, min size, cmd-line only, remote only...
  3487. #
  3488. sunos41mr:
  3489.     @echo Minimum size
  3490.     $(MAKE) "MAKE=$(MAKE)" sunos41min KTARGET=$${KTARGET:-$(@)} \
  3491.     "KFLAGS=-DNOICP -DNOLOCAL $(KFLAGS)"
  3492.  
  3493. #SunOS version 4.1, BSD environment, min size, interactive...
  3494. sunos41mi:
  3495.     @echo Minimum size
  3496.     $(MAKE) "MAKE=$(MAKE)" sunos41min KTARGET=$${KTARGET:-$(@)} \
  3497.     "KFLAGS=-DNOCMDL $(KFLAGS)"
  3498.  
  3499. #SunOS version 4.1, BSD environment, min size, interactive, remote only...
  3500. sunos41mir:
  3501.     @echo Minimum size
  3502.     $(MAKE) "MAKE=$(MAKE)" sunos41min KTARGET=$${KTARGET:-$(@)} \
  3503.     "KFLAGS=-DNOCMDL -DNOLOCAL $(KFLAGS)"
  3504.  
  3505. #SunOS 4.1, System V R3 environment (-i option omitted).
  3506. sunos41s5:
  3507.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 System V R3...
  3508.     @echo For testing purposes only - NOT for production use.
  3509.     @echo For a useable version, make sunos41 instead.
  3510.     $(MAKE) wermit "CC= /usr/5bin/cc " "CC2=/usr/5bin/cc " \
  3511.     KTARGET=$${KTARGET:-$(@)} \
  3512.     "CFLAGS = -DSUN4S5 -DDIRENT -DHDBUUCP -DNOLEARN -DCK_POLL $(KFLAGS) -O"
  3513.  
  3514. #As above, but with curses support
  3515. sunos41s5c:
  3516.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 System V R3...
  3517.     @echo Curses included.
  3518.     @echo For testing purposes only - NOT for production use.
  3519.     @echo For a useable version, make sunos41 instead.
  3520.     $(MAKE) wermit "CC= /usr/5bin/cc " "CC2=/usr/5bin/cc " \
  3521.     KTARGET=$${KTARGET:-$(@)} \
  3522.     "CFLAGS = -DSUN4S5 -DDIRENT -DHDBUUCP -DNOLEARN \
  3523.     -DCK_POLL -DCK_CURSES -DCK_NEWTERM $(KFLAGS) -O" "LIBS= -lcurses"
  3524.  
  3525. #As above, but with curses support AND net support
  3526. sunos41s5tcpc:
  3527.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 System V R3...
  3528.     @echo TCP/IP and curses included.  No debug log.
  3529.     @echo For testing purposes only - NOT for production use.
  3530.     @echo For a useable version, make sunos41 instead.
  3531.     $(MAKE) xermit "CC= /usr/5bin/cc " "CC2=/usr/5bin/cc " \
  3532.     KTARGET=$${KTARGET:-$(@)} \
  3533.     "CFLAGS = -DSUN4S5 -DDIRENT -DHDBUUCP -DCK_POLL \
  3534.     -DNODEBUG -DCK_CURSES -DCK_NEWTERM -DTCPSOCKET $(KFLAGS) -O" \
  3535.     "LIBS= -lcurses -lresolv"
  3536.  
  3537. # (End of SunOS test entries...)
  3538.  
  3539. #Apollo with Domain SR10.0 or later, BSD environment
  3540. #Reportedly, it might also help to add '-A,systype=bsd4.3' to CFLAGS.
  3541. #Reportedly, there is also a problem with getc & putc macros that can
  3542. #be handled by using '#ifdef apollo' somewhere to redefine them???
  3543. #On the other hand, other reports indicate that it works fine as-is.
  3544. #NOTE: This entry was previously like this:
  3545. #    $(MAKE) wermit "CFLAGS= -DNOFILEH -DBSD4 $(KFLAGS) -Uaegis \
  3546. #    -DTCPSOCKET -U__STDC__"
  3547. #Reports (Dec 91) indicate SR10 has an ANSI-compliant C compiler,
  3548. #in addition to an older one that claimed to be ANSI-compliant but wasn't.
  3549. #The following make entry (plus checks that are made in ckcdeb.h) detect
  3550. #which compiler is used and define the CK_ANSIC or NOANSI flags accordingly.
  3551. sr10-bsd:
  3552.     @echo Making C-Kermit $(CKVER) for Apollo SR10.0 / BSD ...
  3553.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3554.     "CFLAGS= -O -DAPOLLOSR10 -DBSD43 -DTCPSOCKET -DCK_CURSES -DNOLEARN \
  3555.     -Uaegis $(KFLAGS)" "LIBS= -lcurses -ltermcap"
  3556.  
  3557. #Apollo with Domain SR10.0 or later, System V R3 environment.
  3558. #Don't use the optimizer (-O), it causes problems at runtime.
  3559. sr10-s5r3:
  3560.     @echo Making C-Kermit $(CKVER) for Apollo SR10.0 / Sys V R3 ...
  3561.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3562.     "CFLAGS= -DNOFILEH -DSVR3 -DAPOLLOSR10 -DNOLEARN $(KFLAGS) \
  3563.     -Uaegis -U__STDC__"
  3564.  
  3565. #Apollo Domain/IX (untested, try this if sr10-bsd doesn't work)
  3566. # -DTCPSOCKET can probably be added here.
  3567. apollobsd:
  3568.     @echo Making C-Kermit $(CKVER) for Apollo Domain/IX...
  3569.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3570.     "CC= /bin/cc " "CC2= /bin/cc " \
  3571.     "CFLAGS= -DNOFILEH -DBSD4 -DAPOLLOBSD -DNOLEARN $(KFLAGS) -Uaegis"
  3572.  
  3573. #Version 7 Unix (see comments near top of makefile)
  3574. v7:
  3575.     @echo Making C-Kermit $(CKVER) for UNIX Version 7.
  3576.     @echo Read the makefile if you have trouble with this...
  3577.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3578.     "CFLAGS=-DV7 -DPROCNAME=\\\"$(PROC)\\\" \
  3579.     -DBOOTNAME=\\\"$(BOOTFILE)\\\" -DNPROCNAME=\\\"$(NPROC)\\\" \
  3580.     -DNPTYPE=$(NPTYPE) $(DIRECT) -DO_RDWR=2 -DO_NDELAY=0 -DO_SCCS_ID \
  3581.     -DNOLEARN $(KFLAGS)"
  3582.  
  3583. #AT&T UNIX System V R3, signal() is void rather than int.
  3584. #Uses dirent.h and Honey DanBer UUCP.
  3585. #Add the -i link option if necessary.
  3586. #If you get errors like "ws_row undefined" in ckutio.c, add -DNONAWS.
  3587. sys5r3:
  3588.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R3...'
  3589.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3590.     "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -DNOLEARN $(KFLAGS) -O" \
  3591.     "LNKFLAGS="
  3592.  
  3593. #As above, plus curses.
  3594. sys5r3c:
  3595.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R3 + curses...'
  3596.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3597.     "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -DCK_CURSES -DNONAWS -DNOLEARN \
  3598.     $(KFLAGS) -O" "LNKFLAGS=" "LIBS = -ltermlib"
  3599.  
  3600. #System V R3.2 for PCs built on Interactive UNIX SV/386 R4.x
  3601. #but with all calls to dup2() disabled because generic SVR3 does not have dup2.
  3602. # (The -linet library might not need to be in this one.)
  3603. sys5r32is:
  3604.     @echo 'Making C-Kermit $(CKVER) for System V/386 R32
  3605.     $(MAKE) wermit CC="$(CC)" CC2="$(CC2)" \
  3606.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -O -DNOCSETS -DNOREALPATH \
  3607.     -DUID_T=ushort -DGID_T=ushort -DI386IX -DSVR3JC -DCK_CURSES -DNONAWS \
  3608.     -DPOSIX_JC -DCK_REDIR -DCK_POLL -DDCLGETCWD -DNOFDZERO -DNOREDIRECT \
  3609.     -DNOZEXEC -DNOLEARN $(KFLAGS)" "LIBS=-lcurses -lc_s -linet"
  3610.  
  3611. #System V R3.2 for PCs built on Interactive UNIX SV/386 R4.x
  3612. #but with all calls to dup2() disabled because generic SVR3 does not have dup2.
  3613. #With TCP/IP added.
  3614. sys5r32isnet:
  3615.     @echo 'Making C-Kermit $(CKVER) for System V/386 R32 + TCP/IP
  3616.     $(MAKE) wermit CC="$(CC)" CC2="$(CC2)" \
  3617.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -O -DNOCSETS -DNOREALPATH \
  3618.     -DUID_T=ushort -DGID_T=ushort -DI386IX -DSVR3JC -DCK_CURSES -DNONAWS \
  3619.     -DPOSIX_JC -DCK_REDIR -DCK_POLL -DDCLGETCWD -DNOFDZERO -DNOREDIRECT \
  3620.     -DNOLEARN -DNOZEXEC -DTCPSOCKET $(KFLAGS)" "LIBS=-lcurses -lc_s -linet"
  3621.  
  3622. iclsys5r3:
  3623.     make sys5r3 KTARGET=$${KTARGET:-$(@)} KFLAGS=-DICLSVR3
  3624.  
  3625. #AT&T UNIX System V R3.  As above, but no ANSI prototyping.
  3626. sys5r3na:
  3627.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R3...'
  3628.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3629.     "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -DNOANSI -DNOLEARN $(KFLAGS) -O" \
  3630.     "LNKFLAGS="
  3631.  
  3632. #AT&T UNIX System V R3, for 3B computers with Wollongong TCP/IP.
  3633. sys5r3net3b:
  3634.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX SVR3/3B/Wollongong...'
  3635.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3636.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DWOLLONGONG -DNOLEARN $(KFLAGS) \
  3637.     -O" "LIBS= -lnet -lnsl_s" "LNKFLAGS ="
  3638.  
  3639. #AT&T UNIX System V R3, signal() is void rather than int.
  3640. #Uses dirent.h and Honey DanBer uucp, has <termiox.h>.
  3641. #Has <termiox.h> for RTS/CTS flow control.
  3642. sys5r3tx:
  3643.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R3...'
  3644.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3645.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DTERMIOX -DNOLEARN \
  3646.     $(KFLAGS) -i -O" "LNKFLAGS ="
  3647.  
  3648. #AT&T UNIX System V R3, signal() is void rather than int.
  3649. #Uses dirent.h and Honey DanBer uucp, has <termiox.h>.
  3650. #Has <sys/termiox.h> for RTS/CTS flow control.
  3651. sys5r3sx:
  3652.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R3...'
  3653.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3654.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DSTERMIOX -DNOLEARN \
  3655.     $(KFLAGS) -i -O" "LNKFLAGS ="
  3656.  
  3657. #AT&T UNIX System V R4.
  3658. #Has <termiox.h>.
  3659. sys5r4:
  3660.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  3661.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3662.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DTERMIOX -DNOLEARN $(KFLAGS)" \
  3663.     "LNKFLAGS = -s"
  3664.  
  3665. #AT&T UNIX System V R4 with Wollongong TCP/IP.
  3666. #Has <termiox.h>.
  3667. sys5r4net:
  3668.     @echo 'Making C-Kermit $(CKVER) for System V R4 + Wollongong TCP/IP...'
  3669.     @echo ' If sockets-library routines are missing at link time, then'
  3670.     @echo ' try the sys5r4net2 entry.'
  3671.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3672.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DNOLEARN \
  3673.     -DTERMIOX -DWOLLONGONG $(KFLAGS)" "LNKFLAGS = -s"
  3674.  
  3675. #As above, but needs libs included.
  3676. sys5r4net2:
  3677.     @echo ' PLEASE READ ckuins.txt IF YOU GET MISSING HEADER FILES.'
  3678.     @echo ' (Search for WOLLONGONG...)'
  3679.     $(MAKE) sys5r4net KTARGET=$${KTARGET:-$(@)} "LIBS= -lsocket -lnsl"
  3680.  
  3681. #As above plus curses.
  3682. sys5r4net2c:
  3683.     echo 'Making C-Kermit $(CKVER) for System V R4 + Wollongong TCP/IP...'
  3684.     @echo ' PLEASE READ ckuins.txt IF YOU GET MISSING HEADER FILES.'
  3685.     @echo ' (Search for WOLLONGONG...)'
  3686.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3687.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DNOLEARN \
  3688.     -DTERMIOX -DWOLLONGONG -DCK_CURSES $(KFLAGS)" "LNKFLAGS = -s" \
  3689.     "LIBS= -lsocket -lnsl -lcurses"
  3690.  
  3691. #DELL UNIX System V R4.
  3692. #Has <sys/termiox.h>, regular Berkeley sockets library, i.e. in.h and inet.h
  3693. #are not misplaced in sys (rather than netinet and arpa, respectively).
  3694. #Uses ANSI C constructs, advisory file locking on devices, etc.
  3695. #Warning: -DSTERMIOX enables hardware flow control (RTS/CTS), but reportedly
  3696. #this does not work with the normal drivers.  However, it might still work
  3697. #on non-Dell systems, or even Dell systems with different drivers installed.
  3698. dellsys5r4:
  3699.     @echo 'Making C-Kermit $(CKVER) for DELL UNIX System V R4...'
  3700.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3701.     "CFLAGS = -O -DSVR4 -DDELL_SVR4 -DDIRENT -DHDBUUCP \
  3702.     -DTCPSOCKET -DSTERMIOX -DCK_POLL $(KFLAGS)" \
  3703.     "LIBS= -lsocket -lnsl" "LNKFLAGS = -s"
  3704.  
  3705. #As above, curses support added...
  3706. dellsys5r4c:
  3707.     @echo 'Making C-Kermit $(CKVER) for DELL UNIX System V R4...'
  3708.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3709.     "CFLAGS = -O -DSVR4 -DDELL_SVR4 -DDIRENT -DHDBUUCP \
  3710.     -DTCPSOCKET -DSTERMIOX -DCK_CURSES -DCK_POLL \
  3711.     $(KFLAGS)" "LIBS= -lsocket -lnsl -lcurses -ltermcap" "LNKFLAGS = -s"
  3712.  
  3713. #Minimum interactive: As above, but with every conceivable option removed.
  3714. dellsys5r4mi:
  3715.     @echo 'Making C-Kermit $(CKVER) for DELL UNIX System V R4...'
  3716.     @echo 'Minimum-size interactive'
  3717.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3718.     "CFLAGS = -O -DSVR4 -DDELL_SVR4 -DDIRENT \
  3719.     -UTCPSOCKET -DNOCMDL -DNOSPL -DNOXMIT -DCK_POLL \
  3720.     -DNOMSEND -DNOFRILLS -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG \
  3721.     -DNOSCRIPT -DNOCSETS -DNOSHOW -DNOSETKEY -DNOSERVER -DNOUUCP \
  3722.     -DNOPUSH -DNOMDMHUP -DNOJC -DNOFDZERO -DNOESCSEQ  \
  3723.     $(KFLAGS)" "LNKFLAGS = -s"
  3724.  
  3725. #Command-line only version.
  3726. dellsys5r4m:
  3727.     @echo 'Making C-Kermit $(CKVER) for DELL UNIX System V R4...'
  3728.     @echo 'Command-line only'
  3729.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3730.     "CFLAGS = -O -DSVR4 -DDELL_SVR4 -DDIRENT \
  3731.     -UTCPSOCKET -DNOICP -DNOFRILLS -DNODIAL -DNODEBUG -DNOTLOG -DNOCSETS \
  3732.     -DNOSETKEY -DNOESCSEQ -DNOJC -DNOFDZERO -DCK_POLL \
  3733.     $(KFLAGS)" "LNKFLAGS = -s"
  3734.  
  3735. #AT&T UNIX System V R4.
  3736. #Has <sys/termiox.h>.
  3737. sys5r4sx:
  3738.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  3739.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3740.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DSTERMIOX -DNOLEARN \
  3741.     $(KFLAGS)" "LNKFLAGS = -s" "LIBS=$(LIBS)"
  3742.  
  3743. #AT&T UNIX System V R4.
  3744. #Has <sys/termiox.h>, regular Berkeley sockets library, i.e. in.h and inet.h
  3745. #are not misplaced in sys (rather than netinet and arpa, respectively).
  3746. #Uses ANSI C constructs, <sys/termiox.h>, etc etc.
  3747. sys5r4sxtcp:
  3748.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  3749.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3750.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP \
  3751.     -DSTERMIOX -DTCPSOCKET $(KFLAGS)" \
  3752.     "LIBS= -lsocket -lnsl $(LIBS)" "LNKFLAGS= -s"
  3753.  
  3754. #AT&T UNIX System V R4.
  3755. #As above + curses.
  3756. sys5r4sxtcpc:
  3757.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  3758.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3759.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP \
  3760.     -DSTERMIOX  -DCK_CURSES -DTCPSOCKET $(KFLAGS)" \
  3761.     "LIBS= -lsocket -lnsl -lcurses -ltermcap $(LIBS)" "LNKFLAGS = -s"
  3762.  
  3763. #AT&T UNIX System V R4.  CONSENSYS SVR4.2-1.
  3764. #Has <sys/termiox.h>, regular Berkeley sockets library, i.e. in.h and inet.h
  3765. #are not misplaced in sys (rather than netinet and arpa, respectively).
  3766. #Uses ANSI C constructs, <sys/termiox.h>, etc.
  3767. # Fullscreen -DCK_CURSES added (with curses & termcap libs)
  3768. # Submission by Robert Weiner/Programming Plus, rweiner@watsun.cc.columbia.edu
  3769. sys5r4sxtcpf:
  3770.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  3771.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3772.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP \
  3773.     -DSTERMIOX -DTCPSOCKET -DCK_CURSES $(KFLAGS)" \
  3774.     "LIBS= -lsocket -lnsl -L/usr/ccs/lib -lcurses -ltermcap" \
  3775.     "LIBS=$(LIBS)" "LNKFLAGS = -s"
  3776.  
  3777. #Smallest possible version for System V R4
  3778. s5r4m:
  3779.     @echo Minimum size
  3780.     $(MAKE) "MAKE=$(MAKE)" sys5r4sx KTARGET=$${KTARGET:-$(@)} \
  3781.     "KFLAGS=$(KFLAGS) -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG \
  3782.     -DNOSCRIPT -DNOCSETS -DNOICP -DNOMSEND -UTCPSOCKET" "LNKFLAGS = -s"
  3783.  
  3784. #Smallest possible interactive version of above
  3785. s5r4mi:
  3786.     @echo Minimum interactive
  3787.     $(MAKE) "MAKE=$(MAKE)" sys5r4sx \
  3788.     "KFLAGS=-DNOSPL -DNOXMIT -DNOMSEND -DNOFRILLS -DNOSHOW \
  3789.     -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG -DNOSCRIPT -DNOCSETS -DNOSETKEY \
  3790.     -UTCPSOCKET $(KFLAGS)" "LNKFLAGS = -s"
  3791.  
  3792. #AT&T UNIX System V R4, has <sys/termiox.h>
  3793. #ANSI C function prototyping disabled.
  3794. sys5r4sxna:
  3795.     @echo No ANSI C prototyping...
  3796.     $(MAKE) "MAKE=$(MAKE)" sys5r4sx KTARGET=$${KTARGET:-$(@)} \
  3797.     "KFLAGS=$(KFLAGS) -DNOANSI"
  3798.  
  3799. #Stratus FTX.
  3800. ftx:
  3801.     @echo 'Making C-Kermit $(CKVER) for Stratus FTX 3.x...'
  3802.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3803.     "CFLAGS = -O -DSVR4 -DFTX -DDIRENT -DHDBUUCP -DSTERMIOX 
  3804.     -DNOGETUSERSHELL -DNOLEARN +DA1.1 $(KFLAGS)" \
  3805.     "LNKFLAGS = -s" "LIBS=$(LIBS)"
  3806.  
  3807. #Stratus FTX + TCP/IP.
  3808. ftxtcp:
  3809.     @echo 'Making C-Kermit $(CKVER) for Stratus FTX 3.x...'
  3810.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3811.     "CFLAGS = -O -DSVR4 -DFTX -DDIRENT -DHDBUUCP -DNOGETUSERSHELL \
  3812.     -DSTERMIOX -DTCPSOCKET -DNO_DNS_SRV +DA1.1 $(KFLAGS)" \
  3813.     "LIBS= -lsocket -lnsl $(LIBS)" "LNKFLAGS= -s"
  3814.  
  3815. #NCR MP-RAS 2.03 or 3.02
  3816. mpras:
  3817.     @echo 'Making C-Kermit $(CKVER) for NCR MP-RAS...'
  3818.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3819.     "CFLAGS = -O -DSVR4 -DNCRMPRAS -DDIRENT -DHDBUUCP -DSTERMIOX \
  3820.     -DNOGETUSERSHELL -DUSE_FILE__CNT -DNOLEARN -DNO_DNS_SRV $(KFLAGS)" \
  3821.     "LNKFLAGS = -s" "LIBS=$(LIBS)"
  3822.  
  3823. #NCR MP-RAS 2.03 or 3.02 with TCP/IP and curses
  3824. mprastcpc:
  3825.     @echo 'Making C-Kermit $(CKVER) for NCR MP-RAS + TCP/IP + curses...'
  3826.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CFLAGS=-DTCPSOCKET \
  3827.     -DCK_CURSES -DSVR4 -DNCRMPRAS -DDIRENT -DHDBUUCP -DSTERMIOX -DNOLEARN \
  3828.     -DNOGETUSERSHELL -DNO_DNS_SRV DUSE_FILE__CNT -O $(KFLAGS)" \
  3829.     "LNKFLAGS = -s" "LIBS= -lsocket -lnsl -lcurses -ltermcap $(LIBS)"
  3830.  
  3831. #SINIX-L V5.41 - includes curses, tcp/ip - Use this one for i386.
  3832. #This version of SINIX doesn't like fdopen() or popen().
  3833. sinix541:
  3834.     @echo 'Making C-Kermit $(CKVER) for Siemens/Nixdorf SINIX V5.41/i386'
  3835.     $(MAKE) ckcpro.$(EXT) "CFLAGS = -DSINIX -DSVR4 -DDIRENT -DHDBUUCP \
  3836.     -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DSELECT -DCK_ANSIC -DNO_DNS_SRV \
  3837.     -DSNI541 -DNOGETUSERSHELL -DNONETCMD -DNOPOPEN -kansi -W0 $(KFLAGS)"
  3838.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3839.     "CFLAGS = -DSINIX -DSVR4 -DDIRENT -DHDBUUCP -DNO_DNS_SRV -DNOPOPEN \
  3840.     -DFNFLOAT -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DSELECT -DCK_ANSIC \
  3841.     -DSNI541 -DNOGETUSERSHELL -DNONETCMD -kansi -W0 -O $(KFLAGS)" \
  3842.     "LIBS= -lsocket -lnsl -lcurses -ltermcap -lm" "LNKFLAGS = -s"
  3843.  
  3844. sinix541i:
  3845.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=$(KFLAGS)" sinix541
  3846.  
  3847. #SINIX V5.42 - includes curses, tcp/ip, everything - Use this one for MIPS.
  3848. # As of C-Kermit 7.1, optimization removed -- takes (literally) forever.
  3849. sinix542:
  3850.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3851.     "CFLAGS = -DSINIX -DSVR4 -DDIRENT -DHDBUUCP -DNO_DNS_SRV \
  3852.     -DFNFLOAT -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DSELECT -DCK_ANSIC \
  3853.     -DSNI542 -DNOGETUSERSHELL -kansi -W0 $(KFLAGS)" \
  3854.     "LIBS= -lsocket -lnsl -lcurses -ltermcap -lm" "LNKFLAGS = -s"
  3855.  
  3856. #SINIX V5.42 gcc - includes curses, tcp/ip, everything.
  3857. #This one was used to build the Pyramid-architecture RM600 version
  3858. #on SINIX-P 5.42 A10 with gcc but should work for SINIX 5.42 on any other
  3859. #architecture with gcc.
  3860. sinix542g:
  3861.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC=gcc" "CC2=gcc" \
  3862.     "CFLAGS = -DSINIX -DSVR4 -DDIRENT -DHDBUUCP -DNO_DNS_SRV \
  3863.     -DFNFLOAT -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DSELECT -DCK_ANSIC \
  3864.     -DSNI542 -DNOGETUSERSHELL $(KFLAGS)" \
  3865.     "LIBS= -lsocket -lnsl -lcurses -ltermcap -lm" \
  3866.     "LNKFLAGS = -s"
  3867.  
  3868. #SINIX V5.42 - includes curses, tcp/ip, everything - Use this one for Intel.
  3869. # (Note: SNI discontinued Intel support after 5.42.)
  3870. sinix542i:
  3871.     @echo 'Making C-Kermit $(CKVER) for Siemens/Nixdorf SINIX-Z V5.42...'
  3872.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3873.     "CFLAGS = -DSINIX -DSVR4 -DDIRENT -DHDBUUCP -DFNFLOAT -DSTERMIOX \
  3874.     -DCK_CURSES -DTCPSOCKET -DSELECT -DCK_ANSIC -DNO_DNS_SRV -kansi \
  3875.     -DSNI542 $(KFLAGS)" \
  3876.     "LIBS= -lsocket -lnsl -lcurses -ltermcap -lm" \
  3877.     "LNKFLAGS = -s"
  3878.  
  3879. #Siemens Nixdorf Reliant UNIX V5.43 - includes curses, tcp/ip, everything:
  3880. # . gettimeofday() suddenly has only one arg instead of two (GTODONEARG).
  3881. # . The syntax of the Olimit specifier changed.
  3882. # . The name was changed from SINIX to Reliant UNIX in version 5.43C.
  3883. sni543:
  3884.     @echo 'Making C-Kermit $(CKVER) for Siemens/Nixdorf Reliant UNIX V5.43'
  3885.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3886.     "CFLAGS = -DSINIX -DSNI543 -DSVR4 -DDIRENT -DHDBUUCP \
  3887.     -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DSELECT -DCK_ANSIC -DGTODONEARG \
  3888.     -DNO_DNS_SRV -kansi -W0 -O -F Olimit,3100 $(KFLAGS)" \
  3889.     "LIBS= -lsocket -lnsl -lcurses -ltermcap" "LNKFLAGS = -s"
  3890.  
  3891. #Siemens Nixdorf Reliant UNIX V5.44 - Like 5.43 but with different banner.
  3892. sni544:
  3893.     @echo 'Making C-Kermit $(CKVER) for Siemens/Nixdorf Reliant UNIX V5.44'
  3894.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3895.     "CFLAGS = -DSINIX -DSNI544 -DSVR4 -DDIRENT -DHDBUUCP \
  3896.     -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DSELECT -DCK_ANSIC -DGTODONEARG \
  3897.     -DNO_DNS_SRV -kansi -W0 -O -K Olimit,3100 $(KFLAGS)" \
  3898.     "LIBS= -lsocket -lnsl -lcurses -ltermcap" "LNKFLAGS = -s"
  3899.  
  3900. #Commodore Amiga with AT&T UNIX System V R4 and TCP/IP support.
  3901. #Has <sys/termiox.h>.
  3902. svr4amiganet:
  3903.     @echo 'Making C-Kermit $(CKVER) for Amiga SVR4 + TCP/IP...'
  3904.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC=gcc" "CC2=gcc" \
  3905.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DSTERMIOX \
  3906.     -DTCPSOCKET -DCK_CURSES $(KFLAGS)" "LNKFLAGS = -s" \
  3907.     "LIBS = -lsocket -lnsl -ltermlib"
  3908.  
  3909. #SCO (Novell (Univel)) UnixWare 1.x or 2.0, no TCP/IP.
  3910. #This assumes the Novell SDK 1.0, which has <sys/termiox.h>.
  3911. #UnixWare users with the "Prime Time Freeware" CD-ROM SDK will probably have
  3912. #to use the sys5r4 entry (no termiox.h file, so no hardware flow control).
  3913. #Change -DSELECT to -DCK_POLL if -DSELECT causes problems.
  3914. # NOTE: Unixware 1.x builds have not been tried in C-Kermit 7.0.
  3915. unixware:
  3916.     $(MAKE) "MAKE=$(MAKE)" sys5r4sx KTARGET=$${KTARGET:-$(@)} \
  3917.     "KFLAGS=-DOLD_UNIXWARE -DCK_NEWTERM -DSELECT -DNOGETUSERSHELL \
  3918.     -DNOSYSLOG $(KFLAGS)" "LIBS=-lcrypt"
  3919.  
  3920. #UnixWare 1.x or 2.0 with TCP/IP and curses.
  3921. #fork()-based CONNECT - no high serial speeds.
  3922. unixwarenetc:
  3923.     $(MAKE) "MAKE=$(MAKE)" sys5r4sxtcpc KTARGET=$${KTARGET:-$(@)} \
  3924.     "KFLAGS=-DOLD_UNIXWARE -DCK_NEWTERM -DSELECT -DNOGETUSERSHELL \
  3925.     -DNOSYSLOG $(KFLAGS)" "LIBS=-lcrypt -lresolv"
  3926.  
  3927. uw10:
  3928.     $(MAKE) unixwarenetc KTARGET=$${KTARGET:-$(@)} "KFLAGS=$(KFLAGS)"
  3929.  
  3930. #This is for Unixware 2.0.x only - use unixware21 for UW 2.1.x.
  3931. #Has special library search and enables special kludge around library
  3932. #foulup regarding vfork() (which Kermit doesn't use).  Forces POSIX-style
  3933. #hangup.
  3934. unixware20:
  3935.     @echo 'Making C-Kermit $(CKVER) for UnixWare 2.0.x...'
  3936.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3937.     "CFLAGS = -O -DOLD_UNIXWARE -DUNIXWARE2 -DSELECT -DSVR4 -DDIRENT \
  3938.     -DHDBUUCP -DBIGBUFOK -DNOGETUSERSHELL -DSTERMIOX  -DCK_CURSES \
  3939.     -DTCPSOCKET -DUW200 -DFNFLOAT -DCK_NEWTERM -DNOSYSLOG $(KFLAGS)" \
  3940.     "LIBS= -lsocket -lnsl -lcurses -ltermcap -lcrypt -lgen -lm -lresolv" \
  3941.     "LNKFLAGS = -s"
  3942.  
  3943. uw20:
  3944.     $(MAKE) unixware20 KTARGET=$${KTARGET:-$(@)} "KFLAGS=$(KFLAGS)"
  3945.  
  3946. #Adds big buffers ("large memory model") - otherwise the same as UnixWare 1.x.
  3947. unixware21:
  3948.     @echo 'Making C-Kermit $(CKVER) for UnixWare 2.1.x...'
  3949.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3950.     "CFLAGS = -O -DUNIXWARE -DSELECT -DSVR4 -DDIRENT -DHDBUUCP -DBIGBUFOK \
  3951.     -DNOSYSLOG -DSTERMIOX  -DCK_CURSES -DTCPSOCKET \
  3952.     -DCK_NEWTERM -DFNFLOAT -DUNIXWARE2 $(KFLAGS)" \
  3953.     "LIBS= -lsocket -lnsl -lcurses -ltermcap -lcrypt -lm -lresolv \
  3954.     $(LIBS)" "LNKFLAGS = -s"
  3955.  
  3956. #Unixware 2.1.0
  3957. uw21:
  3958.     $(MAKE) unixware21 KTARGET=$${KTARGET:-$(@)} "KFLAGS=$(KFLAGS)"
  3959.  
  3960. #Unixware 2.1.3
  3961. uw213:
  3962.     $(MAKE) unixware21 KTARGET=$${KTARGET:-$(@)} \
  3963.     "KFLAGS=-DUSE_FILE__CNT $(KFLAGS)"
  3964.  
  3965. #Unixware 2.1 with IKSD support
  3966. uw21iksd:
  3967.     $(MAKE) unixware21 KTARGET=$${KTARGET:-$(@)} \
  3968.     "KFLAGS=-DCK_SHADOW $(KFLAGS)" "LIBS= -lgen"
  3969.  
  3970. #UnixWare 7 with tc[gs]etspeed() high serial speeds & select()-based CONNECT
  3971. #NOTE: This is the one we use.
  3972. unixware7t:
  3973.     @echo 'Making C-Kermit $(CKVER) for UnixWare 7 with POSIX i/o...'
  3974.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3975.     "CFLAGS = -O -DUNIXWARE -DSELECT -DSVR4 -DDIRENT -DHDBUUCP -DBIGBUFOK \
  3976.     -DFNFLOAT -DNOGETUSERSHELL -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DPOSIX \
  3977.     -DUW7 -DUSETCSETSPEED -DCK_NEWTERM -DNOLSTAT -DDCLTIMEVAL \
  3978.     -DNEEDMDMDEFS $(KFLAGS)" \
  3979.     "LIBS=-lsocket -lnsl -lcurses -ltermcap -lcrypt -lm -lresolv $(LIBS)" \
  3980.     "LNKFLAGS = -s"
  3981.  
  3982. #UnixWare 7 - select()-based CONNECT - no POSIX i/o - no high serial speeds.
  3983. #In other words, just like the UnixWare 1 and 2 builds.
  3984. unixware7x:
  3985.     @echo 'Making C-Kermit $(CKVER) for UnixWare 7...'
  3986.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3987.     "CFLAGS = -O -DUNIXWARE -DSELECT -DSVR4 -DDIRENT -DHDBUUCP -DBIGBUFOK \
  3988.     -DUW7 -DNOGETUSERSHELL -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DNOLSTAT \
  3989.     -DFNFLOAT -DCK_NEWTERM $(KFLAGS)" \
  3990.     "LIBS=-lsocket -lnsl -lcurses -ltermcap -lcrypt -lm -lresolv $(LIBS)" \
  3991.     "LNKFLAGS = -s"
  3992.  
  3993. #UnixWare 7 with POSIX cfset[oi]speed() to allow high serial speeds.
  3994. #(but the high speeds don't work)
  3995. unixware7p:
  3996.     @echo 'Making C-Kermit $(CKVER) for UnixWare 7 with POSIX i/o...'
  3997.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3998.     "CFLAGS = -O -DUNIXWARE -DSELECT -DSVR4 -DDIRENT -DHDBUUCP -DBIGBUFOK \
  3999.     -DUW7 -DNOGETUSERSHELL -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DPOSIX \
  4000.     -DFNFLOAT -DCK_NEWTERM -DNOLSTAT $(KFLAGS)" \
  4001.     "LIBS=-lsocket -lnsl -lcurses -ltermcap -lcrypt -lm -lresolv $(LIBS)" \
  4002.     "LNKFLAGS = -s"
  4003.  
  4004. # UnixWare 7 built with gcc - This does not work at all...
  4005. # Reportedly gcc 2.8.1 is broken on Unixware 7.  Try egcs?
  4006. unixware7g:
  4007.     @echo 'Making C-Kermit $(CKVER) for UnixWare 7 with gcc...'
  4008.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4009.     "CC = gcc" "CC2 = gcc" "LNKFLAGS = -s -shlib"
  4010.     "CFLAGS = -O -DUNIXWARE -DSELECT -DSVR4 -DDIRENT -DHDBUUCP -DBIGBUFOK \
  4011.     -DUW7 -DNOGETUSERSHELL -DSTERMIOX  -DCK_CURSES -DTCPSOCKET -DNOLSTAT \
  4012.     -DFNFLOAT -DCK_NEWTERM $(KFLAGS)" \
  4013.     "LIBS=-lsocket -lnsl -lcurses -ltermcap -lcrypt -lm -lresolv $(LIBS)" \
  4014.     "LNKFLAGS = -s"
  4015.  
  4016. unixware7:
  4017.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=$(KFLAGS)" unixware7t \
  4018.     KTARGET=$${KTARGET:-$(@)}
  4019.  
  4020. uw7:
  4021.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=$(KFLAGS)" unixware7t \
  4022.     KTARGET=$${KTARGET:-$(@)}
  4023.  
  4024. #SCO OpenUNIX 8.0
  4025. ou8:
  4026.     @echo 'Making C-Kermit $(CKVER) for Open UNIX 8...'
  4027.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=-DOU8 $(KFLAGS)" unixware7t \
  4028.     KTARGET=$${KTARGET:-$(@)}
  4029.  
  4030. #UnixWare 7 with OpenSSL
  4031. uw7ssl:
  4032.     @echo 'Making C-Kermit $(CKVER) for UnixWare 7 and OpenSSL...'
  4033.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} \
  4034.     "CFLAGS = -O -DCK_AUTHENTICATION -DCK_SSL -DCK_SHADOW \
  4035.     -DUNIXWARE -DSELECT -DSVR4 -DDIRENT -DHDBUUCP -DBIGBUFOK \
  4036.     -DFNFLOAT -DNOGETUSERSHELL -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DPOSIX \
  4037.     -DUW7 -DUSETCSETSPEED -DCK_NEWTERM -DNOLSTAT -DDCLTIMEVAL \
  4038.     $(SSLINC) $(KFLAGS)" \
  4039.     "LIBS=-lsocket -lnsl -lcurses -ltermcap -lcrypt -lm -lresolv \
  4040.     -lgen -lcudk70 $(SSLLIB) -lssl -lcrypto $(LIBS)" \
  4041.     "LNKFLAGS = -s"
  4042.  
  4043. #As above but includes Shadow password support needed for IKSD.
  4044. uw7iksd:
  4045.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=-DCK_SHADOW $(KFLAGS)" \
  4046.     KTARGET=$${KTARGET:-$(@)} "LIBS= -lgen" unixware7t
  4047.  
  4048. #As above but links with static API for realpath() so a binary built
  4049. #with this target on UW7.1 will also work on 7.0.  Requires SCO UDK
  4050. #rather than the stock compiler.
  4051. uw7iksdudk:
  4052.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=-DCK_SHADOW $(KFLAGS)" \
  4053.     KTARGET=$${KTARGET:-$(@)} "LIBS= -lgen -lcudk70" unixware7t
  4054.  
  4055. #ESIX SVR4.0.3 or 4.04 with TCP/IP support.
  4056. #Has <sys/termiox.h>, ANSI C function prototyping disabled.
  4057. #Add -m486 to CFLAGS if desired.
  4058. esixr4:
  4059.     @echo 'Making C-Kermit $(CKVER) for ESIX SVR4 + TCP/IP...'
  4060.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4061.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DNOANSI \
  4062.     -DSTERMIOX -DTCPSOCKET $(KFLAGS)" "LNKFLAGS = -s" \
  4063.     "LIBS = -lsocket -lnsl"
  4064.  
  4065. #AT&T UNIX System V R4.
  4066. #Has <sys/termiox.h>, Wollongong WIN/TCP TCP/IP.
  4067. sys5r4sxnet:
  4068.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  4069.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4070.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP \
  4071.     -DSTERMIOX -DWOLLONGONG $(KFLAGS)" "LNKFLAGS = -s"
  4072.  
  4073. #AT&T UNIX System V R4, no <termio.x> or <sys/termio.x>.
  4074. sys5r4nx:
  4075.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  4076.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4077.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DNOLEARN $(KFLAGS)" \
  4078.     "LNKFLAGS = -s"
  4079.  
  4080. #AT&T UNIX System V R4, no <termio.x> or <sys/termio.x>, curses, TCP/IP.
  4081. sys5r4nxnetc:
  4082.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  4083.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4084.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP \
  4085.     -DCK_CURSES -DTCPSOCKET $(KFLAGS)" \
  4086.     "LIBS = -lcurses -lsocket -lnsl -ltcpip" \
  4087.     "LNKFLAGS = -s"
  4088.  
  4089. #AT&T UNIX System V R4, no <termio.x> or <sys/termio.x>, Wollongong TCP/IP.
  4090. sys5r4nxtwg:
  4091.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  4092.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4093.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DWOLLONGONG $(KFLAGS)"
  4094.     "LNKFLAGS = -s"
  4095.  
  4096. #ICL UNIX System V R4.(DRS N/X) version :-
  4097. #UNIX System V Release 4.0 ICL DRS 6000 (SPARC)
  4098. #DRS/NX 6000 SVR4 Version 5  Level 1  Increment 4
  4099. #Has <sys/termiox.h>, regular Berkeley sockets library, i.e. in.h and inet.h
  4100. #are not misplaced in sys (rather than netinet and arpa, respectively).
  4101. #Uses ANSI C constructs, advisory file locking on devices, etc.
  4102. #Remove -lnsl if it causes trouble.
  4103. iclsys5r4:
  4104.     @echo 'Making C-Kermit $(CKVER) for ICL UNIX System V R4 (DRS N/X)'
  4105.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4106.     "CFLAGS = -O -DSVR4 -DICL_SVR4 -DDIRENT -DHDBUUCP -DNOGETUSERSHELL \
  4107.     -DSTERMIOX -DTCPSOCKET $(KFLAGS)" \
  4108.     "LIBS= -lsocket -lnsl -lresolv " "LNKFLAGS = -s"
  4109.  
  4110. #As above but for DRS/NX 4.2MP 7MPlus.
  4111. iclsys5r4m+:
  4112.     @echo 'Making C-Kermit $(CKVER) for ICL UNIX System V R4 DRS/NX 4.2MP+'
  4113.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4114.     "CFLAGS = -O -DSVR4 -DICL_SVR4 -DDIRENT -DHDBUUCP -DNOIKSD \
  4115.     -DSTERMIOX -DTCPSOCKET $(KFLAGS)" \
  4116.     "LIBS= -lsocket -lnsl -lm -lc -g -lgen " "LNKFLAGS = -s"
  4117.  
  4118. #As above but for DRS/NX 4.2MP 7MPlus with IKSD support.
  4119. iclsys5r4m+iksd:
  4120.     @echo 'Making C-Kermit $(CKVER) for ICL UNIX System V R4 DRS/NX 4.2MP+'
  4121.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4122.     "CFLAGS = -O -DSVR4 -DICL_SVR4 -DDIRENT -DHDBUUCP -DNOGETUSERSHELL \
  4123.     -DSTERMIOX -DTCPSOCKET $(KFLAGS)" \
  4124.     "LIBS= -lsocket -lnsl -lm -lc -g -lgen -lresolv " "LNKFLAGS = -s"
  4125.  
  4126. iclsys5r4_486:
  4127.     $(MAKE) "MAKE=$(MAKE)" iclsys5r4 KTARGET=$${KTARGET:-$(@)}
  4128.  
  4129. #Data General DG/UX 4.30 (System V R3) for DG AViiON, with TCP/IP support.
  4130. dgux430:
  4131.     @echo 'Making C-Kermit $(CKVER) for DG AViiON DG/UX 4.30...'
  4132.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4133.     "CFLAGS = -O -DDGUX430 -DSVR3 -DDIRENT -DTCPSOCKET \
  4134.     -DNOINADDRX -DNOGETUSERSHELL $(KFLAGS)"
  4135.  
  4136. #Data General DG/UX 4.30 for DG AViiON, with TCP/IP support with BSDisms.
  4137. dgux430bsd:
  4138.     @echo 'Making C-Kermit $(CKVER) for DG AViiON DG/UX 4.30...'
  4139.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4140.     "CFLAGS = -O -DDGUX430 -D_BSD_SOURCE -DBSD4 \
  4141.     -DNOINADDRX -DTCPSOCKET -DNOGETUSERSHELL $(KFLAGS)"
  4142.  
  4143. #Data General DG/UX 5.4 (System V R4) for DG AViiON, with TCP/IP support.
  4144. #Add -lsocket -lnsl if inet_addr comes up missing...
  4145. #Hmmm - I really think CK_POLL can be removed from this one in which case
  4146. #there is no difference between dgux540 and dgux540i.
  4147. dgux540:
  4148.     @echo 'Making C-Kermit $(CKVER) for DG AViiON DG/UX 5.40...'
  4149.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4150.     "CFLAGS = -O -DDGUX540 -DDIRENT -DHDBUUCP -DNOINADDRX \
  4151.     -DSTERMIOX -DTCPSOCKET -DCK_POLL -DNOGETUSERSHELL $(KFLAGS)"
  4152.  
  4153. #Data General DG/UX 5.40 (System V R4) for Intel AViiON, with TCP/IP support.
  4154. dgux540i:
  4155.     @echo 'Making C-Kermit $(CKVER) for DG AViiON DG/UX 5.40...'
  4156.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4157.     "CFLAGS = -O -DDGUX540 -DDIRENT -DHDBUUCP -DNOINADDRX \
  4158.     -DSTERMIOX -DTCPSOCKET -DNOGETUSERSHELL $(KFLAGS)" \
  4159.     "LIBS = -lsocket -lnsl"
  4160.  
  4161. dgux54:
  4162.     make dgux540 KTARGET=$${KTARGET:-$(@)}
  4163.  
  4164. #Data General DG/UX 5.4 (= System V R4) for DG AViiON, with TCP/IP support.
  4165. # And curses.
  4166. dgux540c:
  4167.     @echo 'Making C-Kermit $(CKVER) for DG AViiON DG/UX 5.4...'
  4168.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4169.     "CFLAGS = -O -DDGUX540 -DDIRENT -DHDBUUCP -DNOINADDRX \
  4170.     -DSTERMIOX -DTCPSOCKET -DCK_CURSES -DCK_NEWTERM -DNOGETUSERSHELL \
  4171.     $(KFLAGS)" "LIBS= -lcurses8 -ltermcap" "LNKFLAGS = -s"
  4172.  
  4173. #As above but for Intel - only difference is name library names.
  4174. dgux540ic:
  4175.     @echo 'Making C-Kermit $(CKVER) for DG AViiON DG/UX 5.40...'
  4176.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4177.     "CFLAGS = -O -DDGUX540 -DDIRENT -DHDBUUCP -DNOINADDRX \
  4178.     -DSTERMIOX -DTCPSOCKET -DCK_CURSES -DCK_NEWTERM -DNOGETUSERSHELL \
  4179.     $(KFLAGS)" "LIBS = -lsocket -lnsl -lcurses -ltermcap"
  4180.  
  4181. dgux54c:
  4182.     make dgux540c KTARGET=$${KTARGET:-$(@)}
  4183.  
  4184. #DG/UX 5.4R3.10
  4185. dgux54310:
  4186.     @echo 'Making C-Kermit $(CKVER) for DG AViiON DG/UX 5.4R3...'
  4187.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4188.     "CFLAGS = -DDGUX540 -DDGUX54310 -DDIRENT -DHDBUUCP -DSELECT \
  4189.     -DSTERMIOX -DTCPSOCKET -DCK_CURSES -DCK_NEWTERM    -DNOGETUSERSHELL \
  4190.     -DNOINADDRX $(KFLAGS)" "LIBS= -lcurses8 -ltermcap" "LNKFLAGS = -s"
  4191.  
  4192. #DG/UX 5.4R4.10 - Includes everything.
  4193. dgux54410:
  4194.     @echo 'Making C-Kermit $(CKVER) for DG/UX 5.4R4.10...'
  4195.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4196.     "CFLAGS = -O -DDGUX540 -DDGUX54410 -DDIRENT -DHDBUUCP -DSELECT \
  4197.     -DSTERMIOX -DTCPSOCKET -DCK_CURSES -DCK_NEWTERM -DNOGETUSERSHELL \
  4198.     -DNOINADDRX $(KFLAGS)" "LIBS = -lsocket -lnsl -lcurses -ltermcap"
  4199.  
  4200. #DG/UX 5.4R4.11 - Includes everything.
  4201. dgux54411:
  4202.     @echo 'Making C-Kermit $(CKVER) for DG/UX 5.4R4.11...'
  4203.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4204.     "CFLAGS = -O -DDGUX540 -DDGUX54411 -DDIRENT -DHDBUUCP -DSELECT \
  4205.     -DSTERMIOX -DTCPSOCKET -DCK_CURSES -DCK_NEWTERM -DNOGETUSERSHELL \
  4206.     -DNOINADDRX $(KFLAGS)" "LIBS = -lsocket -lnsl -lcurses -ltermcap"
  4207.  
  4208. #DG/UX 5.4R4.20 - Includes everything.
  4209. dgux54420:
  4210.     @echo 'Making C-Kermit $(CKVER) for DG/UX 5.4R4.20...'
  4211.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4212.     "CFLAGS = -O -DDGUX540 -DDGUX54420 -DDIRENT -DHDBUUCP -DSELECT \
  4213.     -DSTERMIOX -DTCPSOCKET -DCK_CURSES -DCK_NEWTERM -DNOGETUSERSHELL \
  4214.     -DNOINADDRX $(KFLAGS)" \
  4215.     "LIBS = -lsocket -lresolv -lnsl -lcurses -ltermcap"
  4216.  
  4217. #Silicon Graphics System V R3 with BSD file system (IRIS)
  4218. iris:
  4219.     @echo Making C-Kermit $(CKVER) for Silicon Graphics IRIX pre-3.3...
  4220.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4221.     "CFLAGS = -O -DSVR3 -DLONGFN -DNOLEARN $(KFLAGS) -I/usr/include/bsd" \
  4222.     "LIBS = -lbsd"
  4223.  
  4224. #Silicon Graphics IRIS System V R3
  4225. irix33:
  4226.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 3.3...'
  4227.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4228.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DNOLEARN $(KFLAGS) -O" \
  4229.     "LNKFLAGS = -s"
  4230.  
  4231. #Silicon Graphics Iris Indigo with IRIX 4.0.0 or 5.0...
  4232. #Strict ANSI C compilation, TCP/IP support included
  4233. irix40:
  4234.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 4.0...'
  4235.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4236.     "CFLAGS = -DIRIX40 -DSVR3 -DDIRENT -DHDBUUCP -DPWID_T=uid_t \
  4237.     -DCK_ANSIC -DTCPSOCKET $(KFLAGS) -O -Olimit 1600 -I/usr/include/bsd" \
  4238.     "LNKFLAGS = -s"
  4239.  
  4240. #As above, but with fullscreen display (curses) and Sun Yellow Pages support.
  4241. #NOTE: IRIX versions prior to 5 run COFF binaries.
  4242. irix40ypc:
  4243.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 4.0.'
  4244.     @echo 'Includes fullscreen file display and Sun Yellow Pages...'
  4245.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4246.     "CFLAGS = -DIRIX40 -DSVR3 -DDIRENT -DHDBUUCP -DCK_CURSES \
  4247.     -DPWID_T=uid_t -DCK_ANSIC -DTCPSOCKET $(KFLAGS) \
  4248.     -O -Olimit 1600 -I/usr/include/bsd" \
  4249.     "LIBS = -lcurses -lsun" "LNKFLAGS = -s"
  4250.  
  4251. # Silicon Graphics Iris Series 4D/*, IRIX 4.0.x, -O4 ucode optimized.
  4252. # Huge temporary file space needed for ucode optimizer.  If you get an error
  4253. # like "ugen: internal error writing to /tmp/ctmca08777: Error 0", define the
  4254. # the TMPDIR environment variable to point to a file system that has more
  4255. # space available, e.g. "setenv TMPDIR /usr/tmp".
  4256. irix40u:
  4257.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 4.0...'
  4258.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4259.     "CFLAGS = -DIRIX40 -DSVR3 -DDIRENT -DHDBUUCP -DPWID_T=uid_t \
  4260.     -DCK_ANSIC -DTCPSOCKET $(KFLAGS) -O4 -Olimit 1600" \
  4261.     "LNKFLAGS=-O4 -Olimit 1600 -s" "EXT=u"
  4262.  
  4263. # As above, with Curses Support added
  4264. irix40uc:
  4265.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 4.0...'
  4266.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4267.     "CFLAGS = -DIRIX40 -DSVR3 -DDIRENT -DHDBUUCP -DPWID_T=uid_t \
  4268.     -DCK_ANSIC -DCK_CURSES -DTCPSOCKET $(KFLAGS) -O4 -Olimit 1600" \
  4269.     "LNKFLAGS=-O4 -Olimit 1600 -s" "EXT=u" "LIBS= -lcurses -ltermcap"
  4270.  
  4271. #Silicon Graphics IRIX 5.x.
  4272. #Yellow Pages and Curses support included.
  4273. #IRIX version 5.x can run COFF or ELF binaries.
  4274. irix51:
  4275.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 5.x'
  4276.     @echo 'Includes fullscreen file display and Yellow Pages...'
  4277.     @echo 'Add -mips<n> to CFLAGS specify a particular hardware target.'
  4278.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4279.     "CFLAGS = -DIRIX51 -DSVR4 -DDIRENT -DHDBUUCP -DCK_CURSES -DCK_NEWTERM \
  4280.     -DPWID_T=uid_t -DCK_ANSIC -DTCPSOCKET -DSELECT -DNOGETUSERSHELL \
  4281.     -DSYSTIMEH -DDCLPOPEN -DDCLFDOPEN $(KFLAGS) -ansi -O -Olimit 3000" \
  4282.     "LIBS = -lcurses" "LNKFLAGS = -s"
  4283.  
  4284. #Use this one if irix51 blows up due to lack of swap space or whatever.
  4285. irix51x:
  4286.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 5.x'
  4287.     @echo 'Includes fullscreen file display and Yellow Pages...'
  4288.     @echo 'Add -mips<n> to CFLAGS specify a particular hardware target.'
  4289.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4290.     "CFLAGS = -DIRIX51 -DSVR4 -DDIRENT -DHDBUUCP -DCK_CURSES -DCK_NEWTERM \
  4291.     -DPWID_T=uid_t -DCK_ANSIC -DTCPSOCKET -DSELECT -DNOGETUSERSHELL \
  4292.     -DSYSTIMEH -DDCLPOPEN -DDCLFDOPEN $(KFLAGS)" \
  4293.     "LIBS = -lcurses" "LNKFLAGS = -s"
  4294.  
  4295. irix51ypc:
  4296.     $(MAKE) "MAKE=$(MAKE)" irix51 KTARGET=$${KTARGET:-$(@)} \
  4297.     "KFLAGS= $(KFLAGS)"
  4298.  
  4299. #IRIX 5.2 adds RTS/CTS
  4300. irix52:
  4301.     $(MAKE) "MAKE=$(MAKE)" irix51 KTARGET=$${KTARGET:-$(@)} \
  4302.     "KFLAGS=-DIRIX52 -DCK_RTSCTS $(KFLAGS)"
  4303.  
  4304. irix53:
  4305.     $(MAKE) "MAKE=$(MAKE)" irix51 KTARGET=$${KTARGET:-$(@)} \
  4306.     "KFLAGS=-DIRIX52 -DIRIX53 -DCK_RTSCTS $(KFLAGS)"
  4307.  
  4308. irix53x:
  4309.     $(MAKE) "MAKE=$(MAKE)" irix51x KTARGET=$${KTARGET:-$(@)} \
  4310.     "KFLAGS=-DIRIX52 -DIRIX53 -DCK_RTSCTS $(KFLAGS)"
  4311.  
  4312. #Silicon Graphics IRIX 6.[024] common stuff.
  4313. #Yellow Pages and Curses support included.
  4314. #IRIX version 6.0 and later runs only ELF binaries.
  4315. #Depends on code changes in ckudeb.h that make -DIRIX6x define all
  4316. #lower IRIX6x values and IRIX51.
  4317. irix6x:
  4318.     @echo 'Includes fullscreen file display and Yellow Pages...'
  4319.     @echo 'Add -mips<n> to specify a particular hardware target.'
  4320.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4321.     "CFLAGS = -DSVR4 -DDIRENT -DHDBUUCP -DNOGETUSERSHELL \
  4322.     -DCK_CURSES -DCK_NEWTERM -DPWID_T=uid_t -DCK_ANSIC -DTCPSOCKET \
  4323.     -DSELECT -DCK_RTSCTS -O $(KFLAGS)" \
  4324.     "LIBS = -lcurses" "LNKFLAGS = -s $(LNKFLAGS)"
  4325.  
  4326. #Silicon Graphics IRIX 6.0.
  4327. irix60:
  4328.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 6.0'
  4329.     @$(MAKE) "MAKE=$(MAKE)" \
  4330.     "KFLAGS=-DIRIX60 -Olimit 2138 $(KFLAGS)" \
  4331.     irix6x KTARGET=$${KTARGET:-$(@)}
  4332.  
  4333. #Silicon Graphics IRIX 6.2.
  4334. #Serial speeds > 38400 are available in IRIX 6.2 on O-class machines only.
  4335. #Note: Olimit must be a number > 0.
  4336. irix62:
  4337.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 6.2'
  4338.     @$(MAKE) "MAKE=$(MAKE)" \
  4339.     LNKFLAGS="-Wl,-woff,84" \
  4340.     "KFLAGS=-DIRIX62 -Olimit 4700 $(KFLAGS)" \
  4341.     irix6x KTARGET=$${KTARGET:-$(@)}
  4342.  
  4343. #Silicon Graphics IRIX 6.3.
  4344. irix63:
  4345.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 6.3'
  4346.     @$(MAKE) "MAKE=$(MAKE)" irix62 KTARGET=$${KTARGET:-$(@)} \
  4347.     "KFLAGS=-DIRIX63"
  4348.  
  4349. #Silicon Graphics IRIX 6.4.
  4350. # -woff,84 to linker stops complaints about no symbols loaded from
  4351. # curses, and -woff 1110 stops complaints about unreachable "break;"
  4352. # statements in ckcpro.c among others.
  4353. # tested on SGI Octane, running IRIX 6.4 up to 115200 bps.
  4354. # -Olimit 0 means infinite.
  4355. irix64:
  4356.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 6.4'
  4357.     @$(MAKE) "MAKE=$(MAKE)" \
  4358.     LNKFLAGS="-Wl,-woff,84" \
  4359.     "KFLAGS=-DIRIX64 -DCK_RTSCTS -Olimit 3000 -woff 1110 $(KFLAGS)" \
  4360.     irix6x KTARGET=$${KTARGET:-$(@)}
  4361.  
  4362. irix64gcc:
  4363.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 6.4 gcc'
  4364.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  4365.     "CFLAGS= -DSVR4 -DIRIX64 -DCK_CURSES -DTCPSOCKET -DNOCOTFMC \
  4366.     $(KFLAGS) -O" "LIBS= -lcurses -ltermcap -lcrypt"
  4367.  
  4368. #Note the new Optimization option syntax for MIPSpro CC 7.2.1.2m.
  4369. irix65:
  4370.     @echo 'Making C-Kermit $(CKVER) for SGI IRIX 6.5'
  4371.     @$(MAKE) "MAKE=$(MAKE)" LNKFLAGS="-Wl,-woff,84" \
  4372.     "KFLAGS=-DIRIX65 -DCK_RTSCTS -OPT:Olimit=0 -woff 1110,1552,1174 \
  4373.     $(KFLAGS)" \
  4374.     irix6x KTARGET=$${KTARGET:-$(@)}
  4375.  
  4376. irix6x+krb5:
  4377.     @echo 'Includes fullscreen file display and Yellow Pages...'
  4378.     @echo 'Add -mips<n> to specify a particular hardware target.'
  4379.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} \
  4380.     "CFLAGS = -DSVR4 -DDIRENT -DHDBUUCP -DNOGETUSERSHELL \
  4381.     -DCK_CURSES -DCK_NEWTERM -DPWID_T=uid_t -DCK_ANSIC -DTCPSOCKET\
  4382.     -DSELECT -DCK_RTSCTS -O \
  4383.     -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 -DCK_ENCRYPTION -DCK_DES \
  4384.     $(K5INC) $(K5INC)/krb5 $(KFLAGS)" \
  4385.     "LIBS = -lcurses $(K5LIB) -ldes425 -lkrb5 \
  4386.     -lcom_err -lcrypto -lcrypt -lgssapi_krb5" \
  4387.     "LNKFLAGS = -s $(LNKFLAGS)"
  4388.  
  4389. irix65+krb5:
  4390.     @echo 'Making C-Kermit $(CKVER) for SGI IRIX 6.5'
  4391.     @$(MAKE) "MAKE=$(MAKE)" \
  4392.     LNKFLAGS="-Wl,-woff,84" \
  4393.     "KFLAGS=-DIRIX65 -DCK_RTSCTS -OPT:Olimit=0 -woff 1110,1552,1174 \
  4394.     $(KFLAGS)" \
  4395.     irix6x+krb5 KTARGET=$${KTARGET:-$(@)}
  4396.  
  4397. #In case they type "make sys5"...
  4398. sys5:
  4399.     $(MAKE) "MAKE=$(MAKE)" sys3 KTARGET=$${KTARGET:-$(@)}
  4400.  
  4401. #Generic ATT System III or System V (with I&D space)
  4402. sys3:
  4403.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System III'
  4404.     @echo 'or System V R2 or earlier...'
  4405.     @echo 'add -DNOMKDIR if mkdir is an undefined symbol.'
  4406.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4407.     "CFLAGS = -DATTSV -DNOUNICODE -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL \
  4408.     -DNOINITGROUPS -DNOFTRUNCATE -DNOREALPATH -DNOLEARN $(KFLAGS) -i -O" \
  4409.     "LNKFLAGS = -i"
  4410.  
  4411. #Generic ATT System III or System V (no I&D space)
  4412. sys3nid:
  4413.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System III'
  4414.     @echo 'or System V R2 or earlier, no I&D space...'
  4415.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4416.     "CFLAGS = -DATTSV -DNOREALPATH -DNOUNICODE -DNOSYSLOG -DNOSYMLINK \
  4417.     -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE -DNOLEARN $(KFLAGS) -O" \
  4418.     "LNKFLAGS ="
  4419.  
  4420. #Generic ATT System III or System V R2 or earlier, "no void":
  4421. #special entry to remove "Illegal pointer combination" warnings.
  4422. sys3nv:
  4423.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System III'
  4424.     @echo 'or System V R2 or earlier...'
  4425.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4426.     "CFLAGS= -DATTSV -DNOREALPATH -DNOUNICODE -DNOSYSLOG -DNOGETUSERSHELL \
  4427.     -DNOSYMLINK -DNOFTRUNCATE -DNOINITGROUPS -DNOLEARN \
  4428.     -Dvoid=int $(KFLAGS) -i -O" \
  4429.     "LNKFLAGS = -i"
  4430.  
  4431. # AT&T 7300 UNIX PC.  As of C-Kermit 6.1, many of these entries don't work
  4432. # any more due to "Out of memory" or "Too many defines" errors during
  4433. # compilation, at least not on systems without lots of memory.  The sys3upcgc
  4434. # entry works (using gcc) with optimization removed, and might also work
  4435. # with optimization enabled on machines with larger memories.
  4436.  
  4437. #AT&T 7300/UNIX PC (3B1) systems, sys3 but special handling for internal modem.
  4438. #Link with the shared library -- the conflict with openi in shared library
  4439. #is solved with -Dopeni=xopeni.  Note that the xermit target can't be used
  4440. #for the Unix PC; there is no select().
  4441. sys3upc:
  4442.     @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC, shared lib...'
  4443.     @echo 'If shared lib causes trouble, use make sys3upcold.'
  4444.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4445.     "CFLAGS = -O -DATT7300 -DNOMKDIR -DUSE_MEMCPY -DNOREALPATH -DNOLEARN \
  4446.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  4447.     -DNOREDIRECT -DNOGFTIMER -DNOUNICODE $(KFLAGS) -Dopeni=xopeni" \
  4448.     "CC2 = ld /lib/crt0s.o /lib/shlib.ifile" "LNKFLAGS = -s"
  4449.  
  4450. #AT&T 7300/Unix PC systems, minimum kermit for those with smaller amounts
  4451. #of memory.
  4452. sys3upcm:
  4453.     @echo Minimum interactive
  4454.     $(MAKE) "MAKE=$(MAKE)" sys3upc KTARGET=$${KTARGET:-$(@)} \
  4455.     "KFLAGS=-DNOSPL -DNOFRILLS -DNOHELP -DNODEBUG -DNOTLOG -DNOCSETS \
  4456.     -DNOSYSLOG -DNOSETKEY -DNOREALPATH"
  4457.  
  4458. #AT&T 7300/UNIX PC (3B1) systems, with curses support.
  4459. #Curses and the shared library don't get along, so we don't use the
  4460. #shared library.  We need to include CK_NEWTERM to avoid a conflict
  4461. #with curses and buffering on stdout.  Merged with submission by
  4462. #Robert Weiner/Programming Plus, rweiner@watsun.cc.columbia.edu.
  4463. #We don't need -Dopeni=xopeni since we're not using the shared library,
  4464. #but we keep it to be consistent with the other entries.
  4465. sys3upcc:
  4466.     @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC, curses...'
  4467.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4468.     "CFLAGS = -O -DATT7300 -DNOREALPATH \
  4469.     -DCK_CURSES -DCK_NEWTERM -DNOMKDIR -DNOREDIRECT -DNOGFTIMER -DNOLEARN \
  4470.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  4471.     -DUSE_MEMCPY -DNOUNICODE $(KFLAGS) -Dopeni=xopeni" \
  4472.     "LIBS = -lcurses" "LNKFLAGS = -s"
  4473.  
  4474. #Like sys3upcc but for AT&T UNIX 3.51m (released as a patch on Fix Disk 2),
  4475. #adds hardware flow control.
  4476. att351m:
  4477.     $(MAKE) "MAKE=$(MAKE)" sys3upcc KTARGET=$${KTARGET:-$(@)} \
  4478.     "KFLAGS=-DCK_RTSCTS -DUNIX351M"
  4479.  
  4480. #As above but with gcc.
  4481. att351gm:
  4482.     $(MAKE) "MAKE=$(MAKE)" sys3upcgc KTARGET=$${KTARGET:-$(@)} \
  4483.     "KFLAGS=-DCK_RTSCTS -DUNIX351M"
  4484.  
  4485. #AT&T 7300 UNIX PC (3B1), as above, but no newterm().
  4486. sys3upcx:
  4487.     @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC, curses...'
  4488.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4489.     "CFLAGS = -O -DATT7300 -DNOREALPATH -DNOUNICODE -DNOLEARN \
  4490.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  4491.     -DCK_CURSES -DNOMKDIR -DNOREDIRECT -DNOGFTIMER -DUSE_MEMCPY $(KFLAGS) \
  4492.     -Dopeni=xopeni" "LIBS = -lcurses -ltermcap" "LNKFLAGS = -s"
  4493.  
  4494. #AT&T 7300/UNIX PC (3B1) systems, with curses and shared library support.
  4495. sys3upcshcc:
  4496.     @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC, shared lib...'
  4497.     @echo 'With curses.  Requires shcc.'
  4498.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4499.     "CFLAGS = -O -DATT7300 -DNOMKDIR -DNOREALPATH -DNOLEARN \
  4500.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  4501.     -DCK_NEWTERM -DCK_CURSES  -DNOREDIRECT -DNOGFTIMER \
  4502.     -DUSE_MEMCPY -DNOUNICODE $(KFLAGS) -Dopeni=xopeni" \
  4503.     "LNKFLAGS = -i -s" "CC = shcc" "CC2 = shcc" "LIBS = -lcurses"
  4504.  
  4505. #AT&T 7300/UNIX PC (3B1) systems, as above, no curses, but use gcc.
  4506. sys3upcg:
  4507.     @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC...'
  4508.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4509.     "CFLAGS = -DATT7300 -DNOREDIRECT -DUSE_MEMCPY -DNOUNICODE -DNOLEARN \
  4510.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  4511.     -DNOGFTIMER -DNOMKDIR -DNOREALPATH $(KFLAGS) -Dopeni=xopeni" \
  4512.     "CC = gcc" "CC2 = gcc" "LNKFLAGS = -s -shlib"
  4513.  
  4514. #AT&T 7300/UNIX PC (3B1) systems, curses and gcc.
  4515. #Optimization omitted -- add it back in if your machine has lots of memory.
  4516. sys3upcgc:
  4517.     @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC, curses...'
  4518.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4519.     "CFLAGS = -DATT7300 -DNOREDIRECT -DUSE_MEMCPY -DNOGFTIMER -DNOUNICODE \
  4520.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  4521.     -DCK_CURSES -DCK_NEWTERM -DNOMKDIR -DNOREALPATH -DNOLEARN $(KFLAGS)" \
  4522.     "CC = gcc" "CC2 = gcc" "LIBS = -lcurses" "LNKFLAGS = -s"
  4523.  
  4524. #AT&T 7300/UNIX PC (3B1) systems, special handling for internal modem.
  4525. #No FULLSCREEN file transfer display (curses).
  4526. sys3upcold:
  4527.     @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC...'
  4528.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4529.     "CFLAGS = -DATT7300 -DNOMKDIR -DUSE_MEMCPY -DNOUNICODE -DNOLEARN \
  4530.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  4531.     -DNOGFTIMER -DNOREDIRECT -DNOREALPATH $(KFLAGS) -O" "LNKFLAGS = -i"
  4532.  
  4533. #As above, but with gcc. mininum features - fits on a 400K UNIX PC floppy
  4534. #after compression with room to spare; add -DNOSHOW or other -DNOxxxx items
  4535. #to reduce size even further.
  4536. sys3upcgm:
  4537.     @echo Minimum interactive
  4538.     $(MAKE) "MAKE=$(MAKE)" sys3upcg KTARGET=$${KTARGET:-$(@)} \
  4539.     "KFLAGS=-DNOSPL -DNOFRILLS -DNOHELP -DNODEBUG -DNOTLOG -DNOCSETS \
  4540.     -DNOSETKEY $(KFLAGS)"
  4541.  
  4542. #This target is designed to create a version with the most features possible
  4543. #that, after compression, still fits on a 400K UNIX PC floppy.
  4544. sys3upcgfd:
  4545.     @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC floppy...'
  4546.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4547.     "CFLAGS = -DATT7300 -DNOREDIRECT -DUSE_MEMCPY -DNOSPL -DNOLEARN \
  4548.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  4549.     -DNOGFTIMER -DNOREALPATH -Dopeni=xopeni \
  4550.     -DNOHELP -DNODEBUG -DNOTLOG -DNOCSETS -DNOSETKEY -DNOMKDIR $(KFLAGS)" \
  4551.     "CC = gcc" "CC2 = gcc" "LNKFLAGS = -s"
  4552.  
  4553. #AT&T 6300 PLUS (warning, -O might make it run out of space).
  4554. #NOTE: Remove -DHDBUUCP if not using Honey DanBer UUCP.
  4555. att6300:
  4556.     @echo 'Making C-Kermit $(CKVER) for AT&T 6300 PLUS...'
  4557.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4558.     "CFLAGS = -DATT6300 -DHDBUUCP -DNOFILEH -DNOREALPATH -DNOLEARN \
  4559.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  4560.     -DNOUNICODE $(KFLAGS) -O -Ml -i" "LNKFLAGS = -i -Ml"
  4561.  
  4562. #As above, but with curses support.  Debugging disabled to prevent thrashing.
  4563. att6300c:
  4564.     @echo 'Making C-Kermit $(CKVER) for AT&T 6300 PLUS...'
  4565.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4566.     "CFLAGS = -DATT6300 -DHDBUUCP -DNOFILEH -DNOCSETS -DNOREALPATH \
  4567.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  4568.     -DCK_CURSES -DNODEBUG -DNOUNICODE -DNOLEARN $(KFLAGS) -O -Ml -i" \
  4569.     "LNKFLAGS = -i -Ml" "LIBS = -lcurses"
  4570.  
  4571. #AT&T 6300 PLUS with no curses, no debugging (about 34K smaller)
  4572. # -Optimization saves about 20K too.
  4573. att6300nd:
  4574.     @echo 'Making C-Kermit $(CKVER) for AT&T 6300 PLUS, no debugging...'
  4575.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4576.     "CFLAGS = -DATT6300 -DHDBUUCP -DNODEBUG -DNOFILEH -DNOREALPATH \
  4577.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  4578.     -DNOUNICODE -DNOLEARN $(KFLAGS) -O -i -Ml" "LNKFLAGS = -i -Ml"
  4579.  
  4580. #AT&T 3B2 and maybe 3B20-series computers running AT&T UNIX System V R3.
  4581. #This one was actually used to build C-Kermit 7.0 successfully on a 3B2/300.
  4582. att3b2:
  4583.     @echo 'Making C-Kermit $(CKVER) for AT&T 3B2'
  4584.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4585.     "CFLAGS = -DATTSV -DNOREDIRECT -DUSE_MEMCPY \
  4586.     -DNOTIMEVAL -DNOTIMEZONE -DMINIDIAL -DNOCHANNELIO -DNOBIGBUF \
  4587.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  4588.     -DNOGFTIMER -DNOREALPATH -Dopeni=xopeni -DNOFRILLS -DNOLEARN \
  4589.     -DNOHELP -DNODEBUG -DNOTLOG -DNOCSETS -DNOSETKEY -DNOMKDIR $(KFLAGS)" \
  4590.     "CC = gcc" "CC2 = gcc" "LNKFLAGS = -s"
  4591.  
  4592. # The next two are likely not to work as-is.
  4593.  
  4594. #AT&T 3B2, 3B20-series computers running AT&T UNIX System V.
  4595. #This is just generic System V with Honey DanBer UUCP, so refer to sys3hdb.
  4596. #Remove -DNONAWS if you can get away with it.
  4597. att3bx:
  4598.     $(MAKE) "MAKE=$(MAKE)" sys3hdb KTARGET=$${KTARGET:-$(@)} \
  4599.     "KFLAGS=$(KFLAGS) -DNONAWS -DNOTIMEVAL"
  4600.  
  4601. # 3Bx with charsets (except Unicode) but no curses.
  4602. att3bx1:
  4603.     @echo 'Making C-Kermit $(CKVER) for AT&T 3B2 or 3B20'
  4604.     @echo 'with Honey DanBer UUCP  no curses...'
  4605.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4606.     "CFLAGS = -DATTSV -DHDBUUCP $(KFLAGS) -DNOREDIRECT \
  4607.     -DNOTIMEVAL -DNOTIMEZONE -DMINIDIAL -DNOCHANNELIO -DNOBIGBUF \
  4608.     -DNOHELP -DNODEBUG -DNOGFTIMER -DNOLEARN \
  4609.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  4610.     -DNOREALPATH -DNOUNICODE -i" \
  4611.     "CC = gcc" "CC2 = gcc" "LNKFLAGS = -i -s"
  4612.  
  4613. #AT&T 3B2, 3B20-series computers running AT&T UNIX System V,
  4614. #with fullscreen file transfer display.
  4615. att3bxc:
  4616.     @echo 'Making C-Kermit $(CKVER) for AT&T 3B2 or 3B20'
  4617.     @echo 'with Honey DanBer UUCP and curses...'
  4618.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4619.     "CFLAGS = -DATTSV -DHDBUUCP -DNONAWS -DNOTIMEVAL $(KFLAGS) \
  4620.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  4621.     -DNOREALPATH -DCK_CURSES -DCK_NEWTERM -DNOUNICODE -DNOLEARN -i -O" \
  4622.     "LNKFLAGS = -i" "LIBS=-lcurses"
  4623.  
  4624. #3bx with curses but no charsets
  4625. att3bxc3:
  4626.     @echo 'Making C-Kermit $(CKVER) for AT&T 3B2 or 3B20'
  4627.     @echo 'with Honey DanBer UUCP with curses...  no CSETS'
  4628.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4629.     "CFLAGS = -DATTSV -DHDBUUCP $(KFLAGS) -DNOREDIRECT \
  4630.     -DNOTIMEVAL -DNOTIMEZONE -DMINIDIAL -DNOCHANNELIO -DNOBIGBUF \
  4631.     -DNOHELP -DNODEBUG -DNOGFTIMER -DNOLEARN \
  4632.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  4633.     -DNOREALPATH -DNOCSETS -DCK_CURSES -DCK_NEWTERM -i" \
  4634.     "CC = gcc" "CC2 = gcc" "LNKFLAGS = -i -s" "LIBS = -lcurses"
  4635.  
  4636. #Any System V R2 or earlier with Honey DanBer UUCP (same as above)
  4637. sys3hdb:
  4638.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System III'
  4639.     @echo 'or System V R2 or earlier with Honey DanBer UUCP...'
  4640.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4641.     "CFLAGS = -DATTSV -DHDBUUCP -DNOREALPATH -DNOUNICODE -DNOLEARN \
  4642.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  4643.     $(KFLAGS) -i -O" "LNKFLAGS = -i"
  4644.  
  4645. #Sperry/UNISYS 5000 UTS V 5.2 (System V R2), Honey DanBer UUCP
  4646. unisys5r2:
  4647.     @echo 'Making C-Kermit $(CKVER) for Sperry/UNISYS 5000 UTS V 5.2...'
  4648.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4649.     "CFLAGS = -DATTSV -DUNISYS52 -DHDBUUCP -DNOREALPATH -DNOUNICODE \
  4650.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  4651.     -DNOLEARN $(KFLAGS) -i -O" "LNKFLAGS = -i"
  4652.  
  4653. #In case they say "make sys5hdb" instead of "make sys3hdb"...
  4654. sys5hdb:
  4655.     $(MAKE) "MAKE=$(MAKE)" sys3hdb
  4656.  
  4657. #Create the common header line for all hpux[5-10]* entries. This extra entry is
  4658. #here because our header message length may differ for each C-Kermit version.
  4659. #Don't use 'fold -s' for HP-UX 5.x - 7.x! This option is there only since
  4660. #HP-UX 8.0!
  4661. hpux-header:
  4662.     @HPUX=`uname -r | sed -e 's/^[^1-9]*//' -e 's/\.00$$/.0/'` ; \
  4663.     [ "$(MESSAGE0)" ] && MESSAGE1="$(MESSAGE0)" ; \
  4664.     Message0='Making C-Kermit $(CKVER) for HP9000 HP-UX' ; \
  4665.     Message1=$${MESSAGE1:='without any extra compiler optimization'} ; \
  4666.     MessageH="$$Message0 $$HPUX" ; \
  4667.     case $$HPUX in \
  4668.       [567].*) echo "$$MessageH\n$$Message1" ;; \
  4669.           *.*) echo "$$MessageH $${Message1}$(MESSAGE1A)" | fold -s ;; \
  4670.     esac | sed -e 's/^ //' -e 's/ *$$//'
  4671.  
  4672. # Peter E's updated HP-UX 5.xx entries Oct 2001.
  4673.  
  4674. #HP-9000 500 HP-UX 5.xx, no TCP/IP.
  4675. hpux0500:
  4676.     @MESSAGE0="no TCP/IP and no compiler optimization";\
  4677.     MESSAGE0=$${MESSAGE1:-$$MESSAGE0} \
  4678.     $(MAKE) hpux-header
  4679.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4680.     "CFLAGS = -DHPUX -DHPUX5 -DHPUXPRE65 -DNOREDIRECT -DDCLGETCWD \
  4681.     -DNOGETUSERSHELL -DNOGFTIMER -DNOSYSLOG -DNOTOMACROS -DNOLSTAT \
  4682.     -DNOSYMLINK -DNOINITGROUPS -DNOUNICODE -DNOLEARN $(KFLAGS)" \
  4683.     "LIBS = $(LIBS)" "LNKFLAGS = "
  4684.  
  4685. #HP-9000 500 HP-UX 5.21 with Wollongong WIN/TCP 1.2 TCP/IP.
  4686. #Requires /usr/wins/usr/include and /usr/lib/libnet.a from Wollongong.
  4687. #Optimization skipped - takes forever.    Really.
  4688. # WARNING: this doesn't work if a file called "hpux0500" is on the disk.
  4689. hpux0500wintcp:
  4690.     @MESSAGE1="with WIN/TCP but without any extra compiler optimization" \
  4691.     $(MAKE) hpux0500 KTARGET=$${KTARGET:-$(@)} \
  4692.     "KFLAGS = -DTCPSOCKET -DHPUX5WINTCP -DINADDRX -DNO_DNS_SRV -DNOMHHOST \
  4693.     -DNOHADDRLIST -I/usr/wins/usr/include $(KFLAGS)" \
  4694.     "LIBS = /usr/lib/libnet.a"
  4695.  
  4696. #HP-UX 6.5, short filenames, no network and no curses support.
  4697. #ckcpro, ckuusr, ckuus3 and others are broken out because they make the
  4698. #optimizer run away.  Note that xermit target does not work with this one!
  4699. #If you get compiler warnings like 'Switch table overflow' increase the '...'
  4700. #value in '-Wc,-Nw...'!
  4701. hpux0650:
  4702.     @$(MAKE) hpux-header
  4703.     @echo 'supporting: NO long filenames, NO network${MESSAGE2}.'
  4704.  
  4705.     $(MAKE) KTARGET=$${KTARGET:-$(@)} \
  4706.         ckuusr.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) \
  4707.             ckuus6.$(EXT) ckuxla.$(EXT) ckcpro.$(EXT) \
  4708.     "CFLAGS = -DHPUX -DHPUX6 -DSIG_V -DNOSYSLOG -DNOSELECT -DFNFLOAT \
  4709.     -DDCLGETCWD -DNOGETUSERSHELL -DNO_DNS_SRV -DNOLEARN $(KFLAGS) \
  4710.     -Wc,-Nw260"
  4711.  
  4712.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4713.     "CFLAGS = -DHPUX -DHPUX6 -DSIG_V -DNOSYSLOG -DNOSELECT -DFNFLOAT \
  4714.     -DDCLGETCWD -DNOGETUSERSHELL -DNO_DNS_SRV -DNOLEARN $(KFLAGS) \
  4715.     -Wc,-Nw260 $(OFLAGS)" "LNKFLAGS = -s" "LIBS = -lm $(LIBS)"
  4716.  
  4717. #Exactly as above, plus curses:
  4718. hpux0650c:
  4719.     @MESSAGE2=", but with curses" \
  4720.     $(MAKE) hpux0650 KTARGET=$${KTARGET:-$(@)} \
  4721.     "KFLAGS= -DCK_CURSES $(KFLAGS)" \
  4722.     "LIBS= -lcurses"
  4723.  
  4724. #Exactly as above, plus curses + network:
  4725. #(doesn't work -- HP-UX 6 lacks the FD_SET macros -- this can be addressed
  4726.  
  4727. hpux0650tcpc:
  4728.     @MESSAGE2=", but with curses and with tcp/ip" \
  4729.     $(MAKE) hpux0650 KTARGET=$${KTARGET:-$(@)} \
  4730.     "KFLAGS= -DCK_CURSES -DTCPSOCKET -DNOHADDRLIST $(KFLAGS)" \
  4731.     "LIBS= -lcurses"
  4732.  
  4733. #Exactly as hpux0650 but with compiler optimization:
  4734. hpux0650o:
  4735.     @MESSAGE1="with compiler optimization" \
  4736.     $(MAKE) hpux0650 KTARGET=$${KTARGET:-$(@)} \
  4737.     "KFLAGS= $(KFLAGS)" "OFLAGS = -O"
  4738.  
  4739. #Exactly as hpux0650c but with compiler optimization:
  4740. hpux0650oc:
  4741.     @MESSAGE1="with compiler optimization" \
  4742.     $(MAKE) hpux0650c KTARGET=$${KTARGET:-$(@)} \
  4743.     "KFLAGS= $(KFLAGS)" "OFLAGS = -O"
  4744.  
  4745. #Take this as startup entry for all 'none optimized' files under HP-UX 7.x!
  4746. #Make sure we doesn't call it with the '-O' option because this will blow up
  4747. #the compiler!
  4748. hpux0700noopt:
  4749.     @case "$(CFLAGS)" in \
  4750.     *-O*) echo "Don't use CFLAGS= -O here!" ;; \
  4751.        *) $(MAKE) KTARGET=$${KTARGET:-$(@)} \
  4752.           ckuusr.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) \
  4753.           ckuus6.$(EXT) ckuus7.$(EXT) ckuxla.$(EXT) \
  4754.           ckcuni.$(EXT) ckcftp.$(EXT) ckcpro.$(EXT) \
  4755.           ;; \
  4756.     esac
  4757.  
  4758. #HP-UX 7.0, no long filenames, no network support, no curses.
  4759. #If you get compiler warnings like 'Switch table overflow' increase the '...'
  4760. #value in '-Wc,-Nw...'!
  4761. hpux0700sf:
  4762.     @$(MAKE) hpux-header
  4763.     @echo 'supporting: NO long filenames, NO network, NO curses.'
  4764.     $(MAKE) hpux0700noopt KTARGET=$${KTARGET:-$(@)} \
  4765.     "CFLAGS = -DHPUX -DHPUX7 -DSIG_V -DNOGETUSERSHELL -DFNFLOAT \
  4766.     -DNO_DNS_SRV $(KFLAGS) -Wc,-Nw260"
  4767.  
  4768.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4769.     "CFLAGS = -DHPUX -DHPUX7 -DSIG_V -DNOGETUSERSHELL -DFNFLOAT \
  4770.     -DNO_DNS_SRV $(KFLAGS) -Wc,-Nw260 $(OFLAGS)" \
  4771.     "LNKFLAGS = -s" "LIBS = -lm $(LIBS)"
  4772.  
  4773. #Exactly as hpux0700sf but with compiler optimization:
  4774. hpux0700osf:
  4775.     @MESSAGE1="with compiler optimization" \
  4776.     $(MAKE) hpux0700sf KTARGET=$${KTARGET:-$(@)} \
  4777.     "KFLAGS= $(KFLAGS)" "OFLAGS = -O"
  4778.  
  4779. #HP-UX 7.0, short filenames, but with tcp/ip and curses.
  4780. #To use this, you must have bought the ARPA Services Product from HP, and you 
  4781. #must have /usr/lib/libBSD.a.
  4782. hpux0700sftcpc:
  4783.     @$(MAKE) hpux-header
  4784.     @echo 'supporting: NO long filenames, \c'
  4785.     @echo 'but with networking, curses, HDB uucp...'
  4786.     $(MAKE) hpux0700noopt KTARGET=$${KTARGET:-$(@)} \
  4787.     "CFLAGS =  -DHPUXDEBUG -DHPUX -DHPUX7 -DTCPSOCKET -DSIG_V \
  4788.     -DCK_REDIR -DCK_RTSCTS -DCK_CURSES -DNOGETUSERSHELL -DFNFLOAT \
  4789.     -DNO_DNS_SRV -DHDBUUCP -DLOCK_DIR=\\\"/usr/spool/uucp\\\" $(KFLAGS) \
  4790.     -Wc,-Nw260"
  4791.  
  4792.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4793.     "CFLAGS =  -DHPUXDEBUG -DHPUX -DHPUX7 -DTCPSOCKET -DSIG_V \
  4794.     -DCK_REDIR -DCK_RTSCTS -DCK_CURSES -DNOGETUSERSHELL -DFNFLOAT \
  4795.     -DNO_DNS_SRV -DHDBUUCP  -DLOCK_DIR=\\\"/usr/spool/uucp\\\" $(KFLAGS) \
  4796.     -Wc,-Nw260 $(OFLAGS)" "LNKFLAGS = -s" "LIBS= -lm -lBSD -lcurses"
  4797.  
  4798. #Exactly as above but with compiler optimization:
  4799. hpux0700osftcpc:
  4800.     @MESSAGE1="with compiler optimization" \
  4801.     $(MAKE) hpux0700sftcpc KTARGET=$${KTARGET:-$(@)} \
  4802.     "KFLAGS= $(KFLAGS)" "OFLAGS = -O"
  4803.  
  4804. #HP 9000 series 300/800 HP-UX 7.0, long filenames, network support, HDB uucp,
  4805. #but NO curses. See comments in hpux0700sftcpc about TCP/IP support.
  4806. hpux0700lfn:
  4807.     @$(MAKE) hpux-header
  4808.     @echo 'supporting: long filenames, networking, HDB uucp$(MESSAGE2)...'
  4809.     $(MAKE) hpux0700noopt KTARGET=$${KTARGET:-$(@)} \
  4810.     "CFLAGS =  -DHPUXDEBUG -DHPUX -DHPUX7 -DTCPSOCKET -DSIG_V -DFNFLOAT \
  4811.     -DNOGETUSERSHELL -DNOSETBUF -DCK_REDIR -DCK_RTSCTS -DLONGFN \
  4812.     -DNO_DNS_SRV -DDIRENT -DHDBUUCP -DLOCK_DIR=\\\"/usr/spool/uucp\\\" \
  4813.     $(KFLAGS) -Wc,-Nw260"
  4814.  
  4815.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4816.     "CFLAGS =  -DHPUXDEBUG -DHPUX -DHPUX7 -DTCPSOCKET -DSIG_V -DFNFLOAT \
  4817.     -DNOGETUSERSHELL -DNOSETBUF -DCK_REDIR -DCK_RTSCTS -DLONGFN \
  4818.     -DNO_DNS_SRV -DDIRENT -DHDBUUCP -DLOCK_DIR=\\\"/usr/spool/uucp\\\" \
  4819.     $(KFLAGS) -Wc,-Nw260 \
  4820.     $(OFLAGS)" "LNKFLAGS = -s" "LIBS = -lm -lBSD $(LIBS)"
  4821.  
  4822. #Exactly as above + curses.
  4823. hpux0700lfnc:
  4824.     @MESSAGE2=', curses' \
  4825.     $(MAKE) hpux0700lfn KTARGET=$${KTARGET:-$(@)} \
  4826.     "KFLAGS= -DCK_CURSES $(KFLAGS)" \
  4827.     "LIBS= -lcurses"
  4828.  
  4829. #Exactly as above hpux0700lfn but with compiler optimization:
  4830. hpux0700olfn:
  4831.     @MESSAGE1="with compiler optimization" \
  4832.     $(MAKE) hpux0700lfn KTARGET=$${KTARGET:-$(@)} \
  4833.     "KFLAGS= $(KFLAGS)" "OFLAGS = -O"
  4834.  
  4835. #Exactly as above hpux0700lfnc but with compiler optimization:
  4836. hpux0700olfnc:
  4837.     @MESSAGE1="with compiler optimization" \
  4838.     $(MAKE) hpux0700lfnc KTARGET=$${KTARGET:-$(@)} \
  4839.     "KFLAGS= $(KFLAGS)" "OFLAGS = -O"
  4840.  
  4841. #HP 9000 Series 300 or 400, HP-UX 8.0, long filenames and TCP/IP support.
  4842. #This one should also work on 700/800, but without PA-specific optimization.
  4843. #In case -DCK_RTSCTS and -DCK_REDIR make trouble, remove them.
  4844. #NOTE: ckcpro.c, ckuusr.c and ckuus3.c blow up the optimizer, so don't optimize
  4845. #them.
  4846. #For HP-UX 8.0 on Motorola CPUs, you might have to reinstall your kernel with
  4847. #maxdsiz >= 0x03000000.  But if physical memory is small, that still will not
  4848. #help much.
  4849. hpux0800:
  4850.     @$(MAKE) hpux-header
  4851.     @MESSAGE3=$${MESSAGE3:='TCP/IP'}; \
  4852.     echo "supporting: long filenames, $$MESSAGE3, HDB UUCP$(MESSAGE2)..."
  4853.     $(MAKE) -B "CC=$(CC)" "CC2=$(CC2)" KTARGET=$${KTARGET:-$(@)} \
  4854.     ckcpro.$(EXT) ckuusr.$(EXT) ckuus3.$(EXT) \
  4855.     "CFLAGS =  -DCK_REDIR -DHPUXDEBUG -DHPUX -DHPUX8 -DRENAME -DSIG_V \
  4856.     -DNOSETBUF -DDIRENT -DCK_RTSCTS -DSTERMIOX -DLONGFN -DTCPSOCKET \
  4857.     -DHDBUUCP  -DNO_DNS_SRV -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DFNFLOAT \
  4858.     $(KFLAGS)"
  4859.  
  4860.     $(MAKE) -B "CC=$(CC)" "CC2=$(CC2)" xermit KTARGET=$${KTARGET:-$(@)} \
  4861.     "CFLAGS =  -DCK_REDIR -DHPUXDEBUG -DHPUX -DHPUX8 -DRENAME -DSIG_V \
  4862.     -DNOSETBUF -DDIRENT -DCK_RTSCTS -DSTERMIOX -DLONGFN -DTCPSOCKET \
  4863.     -DHDBUUCP  -DNO_DNS_SRV -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DFNFLOAT \
  4864.     $(KFLAGS) $(OFLAGS)" "LNKFLAGS = -s" "LIBS = -lm -lBSD $(LIBS)"
  4865.  
  4866. #Exactly as above hpux0800 + curses.
  4867. hpux0800c:
  4868.     @MESSAGE2=', curses' \
  4869.     $(MAKE) hpux0800  KTARGET=$${KTARGET:-$(@)} \
  4870.     "KFLAGS = $(KFLAGS) -DCK_CURSES" "LIBS = -lcurses"
  4871.  
  4872. #HP 9000 HP-UX 8.0, no TCP/IP because /usr/lib/libBSD.a can't be found,
  4873. #or TCP/IP header files missing.
  4874. hpux0800notcp:
  4875.     @MESSAGE3='NO network, NO curses' \
  4876.     $(MAKE) "MAKE=$(MAKE)" hpux0800 KTARGET=$${KTARGET:-$(@)} \
  4877.     "KFLAGS = $(KFLAGS) -UTCPSOCKET"
  4878.  
  4879. #Now the same as above hpux0800 but with compiler optimization
  4880. hpux0800o:
  4881.     @MESSAGE1="with compiler optimization" \
  4882.     $(MAKE) hpux0800 KTARGET=$${KTARGET:-$(@)} \
  4883.     "KFLAGS = $(KFLAGS)" "OFLAGS = -O"
  4884.  
  4885. #Exactly as above hpux0800 + curses and with compiler optimization.
  4886. hpux0800oc:
  4887.     @MESSAGE1="with compiler optimization" \
  4888.     $(MAKE) hpux0800c KTARGET=$${KTARGET:-$(@)} \
  4889.     "KFLAGS = $(KFLAGS)" "OFLAGS = -O" "LIBS = -lcurses"
  4890.  
  4891. #Exactly as above hpux0800notcp but with compiler optimization
  4892. hpux0800onotcp:
  4893.     @MESSAGE1="with compiler optimization" \
  4894.     $(MAKE) "MAKE=$(MAKE)" hpux0800notcp KTARGET=$${KTARGET:-$(@)} \
  4895.     "KFLAGS = $(KFLAGS)" "OFLAGS = -O"
  4896.  
  4897. #HP 9000 Series 700 or 800, HP-UX 8.0, long filenames and TCP/IP support.
  4898. # Like the previous entries, but with PA-RISC-specific optimization.
  4899. hpux0800pa:
  4900.     @MESSAGE1="with PA-RISC-specific optimization" \
  4901.     $(MAKE) hpux0800 KTARGET=$${KTARGET:-$(@)} \
  4902.     "KFLAGS = $(KFLAGS) +Obb1100"
  4903.  
  4904. #As above, but with curses.
  4905. hpux0800pac:
  4906.     @MESSAGE1="with PA-RISC-specific optimization" \
  4907.     $(MAKE) hpux0800c KTARGET=$${KTARGET:-$(@)} \
  4908.     "KFLAGS = $(KFLAGS) +Obb1100"
  4909.  
  4910. #As above, but compiled with GCC 2.3.3.
  4911. hpux0800pagcc:
  4912.     @MESSAGE1='using the gcc compiler' \
  4913.     $(MAKE) hpux0800 KTARGET=$${KTARGET:-$(@)} \
  4914.     "CC=gcc" "CC2=gcc" "KFLAGS= -funsigned-char $(KFLAGS)"
  4915.  
  4916. #HP-UX 9.0, 9.01, 9.03, 9.04, 9.05, 9.07, 9.10 ..., + TCP/IP + curses, fully
  4917. #configured.  Use this entry with the restricted compiler: no optimization, no
  4918. #ANSI support.  If you get unresolved sockets library references at link time,
  4919. #then try adding -lBSD to LIBS, or else remove -DTCPSOCKET to build a version
  4920. #without TCP/IP support.
  4921. hpux0900:
  4922.     @MESSAGE1A='. Read hpux0900 entry comments if you have trouble.' \
  4923.     $(MAKE) hpux-header
  4924.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4925.     "CFLAGS = -DHPUXDEBUG -DHPUX9 -DSTERMIOX -DDIRENT -DUTIMEH \
  4926.     -DNOSETBUF -DCK_CURSES -DTCPSOCKET -DRENAME -DCK_REDIR -DLONGFN \
  4927.     -DHDBUUCP -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DFNFLOAT $(KFLAGS)" \
  4928.     "LNKFLAGS = -s" "LIBS = -lm -lcurses" "CC=$(CC)" "CC2=$(CC2)"
  4929.  
  4930. #Like hpux0900, but for the "value-added" compiler on all HP 9000 models.
  4931. #Adds optimization and ANSI compilation:
  4932. # +O2 makes smaller executable (= -O = Level-1 and global optimization)
  4933. # +O3 adds interprocedural global optimization, makes bigger executable.
  4934. # If optimization fails on some modules, you can add:
  4935. #  +Obb<n>, +Olimit <n>, or +Onolimit, depending on your cc version,
  4936. # where <n> is a number, e.g. +Obb1200.  In other words, if you get optimizer
  4937. # warnings, add (for example) +Obb1200; if you still get optimizer warnings,
  4938. # increase the number.  Repeat until warnings go away.  If your compiler
  4939. # permits it, use +Onolimit. If optimizer blows up on ckcpro.c, see next entry.
  4940. # Reportedly, on some configurations, such as HP9000/425e or /340, perhaps
  4941. # depending on the amount of main memory, this entry might fail no matter what
  4942. # you do ("Out of Memory", "cc: Fatal error in /lib/c.c1", etc).  In that case
  4943. # use "make hpux0900" (no "o").
  4944. hpux0900o:
  4945.     @MESSAGE1=$${MESSAGE1:-"with compiler optimization"} \
  4946.     $(MAKE) hpux0900 KTARGET=$${KTARGET:-$(@)} \
  4947.     "KFLAGS = $(KFLAGS) -Aa -DCK_ANSIC -D_HPUX_SOURCE +O2"
  4948.  
  4949. # For HP-UX 9.0 on Motorola CPUs, optimization of ckcpro.c tends to blow up
  4950. # the compiler.  You might have to reinstall your kernel with maxdsiz >=
  4951. # 0x03000000.  But if physical memory is small, that still will not help much.
  4952. # In that case, use this entry to skip optimization of ckcpro.c.
  4953. hpux0900m68ko:
  4954.     @MESSAGE1='without compiler optimization for ckcpro.$(EXT) ...' \
  4955.     $(MAKE) hpux-header
  4956.     $(MAKE) ckuusr.$(EXT) ckuus3.$(EXT) ckcpro.$(EXT) \
  4957.     "CFLAGS = -DHPUXDEBUG -DHPUX9 -DSTERMIOX -DDIRENT \
  4958.     -DNOSETBUF -DCK_CURSES -DTCPSOCKET -DRENAME  -DCK_REDIR -DLONGFN \
  4959.     -DHDBUUCP -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DFNFLOAT $(KFLAGS)"
  4960.     @echo
  4961.     @MESSAGE1="with compiler optimization for the rest" \
  4962.     $(MAKE) hpux0900 KTARGET=$${KTARGET:-$(@)} \
  4963.     "KFLAGS = $(KFLAGS) -Aa -DCK_ANSIC -D_HPUX_SOURCE +O2"
  4964.  
  4965. # Old name for hpux0900m68ko.
  4966. hpux0900mot:
  4967.     $(MAKE) hpux0900m68ko KTARGET=$${KTARGET:-$(@)} "KFLAGS = $(KFLAGS)"
  4968.  
  4969. #Like hpux0900o but with additional model-700/800-specific optimizations.
  4970. # +ESlit = consolidate strings in read-only memory.
  4971. # +ESfsc = inline millicode calls when comparing pointers.
  4972. hpux0900o700:
  4973.     @echo 'If you get optimizer warnings \c'
  4974.     @echo 'try "make hpux0900o700 KFLAGS=+Obb1200"'
  4975.     @MESSAGE1="with PA-RISC-specific optimizations" \
  4976.     $(MAKE) hpux0900o KTARGET=$${KTARGET:-$(@)} \
  4977.     "KFLAGS = $(KFLAGS) +ESlit +ESsfc"
  4978.  
  4979. #HP-UX 9.0, 9.01, 9.03, 9.04, 9.05, 9.07, 9.10 ..., + TCP/IP + curses, fully
  4980. #configured, built with gcc, all models except 800 series.
  4981. #You might need to add the include path for gcc headers, for example:
  4982. # 'KFLAGS=-I/usr/gnu/lib/gcc-lib/hppa1.1-hp-hpux/2.4.5/include/'
  4983. hpux0900gcc:
  4984.     @MESSAGE1='using the gcc compiler' \
  4985.     $(MAKE) hpux0900 KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  4986.     "KFLAGS = $(KFLAGS) -DCK_ANSIC -funsigned-char -O2"
  4987.  
  4988. #HP-9000 HP-UX 10.0 + TCP/IP + curses, fully configured.
  4989. #Use with restricted (bundled) compiler: no optimization, no ANSI support.
  4990. #libcurses needed for fullscreen file xfer display in HP-UX 10.00 and 10.01.
  4991. #libHcurses (NOT libcurses!) for fullscreen display, to work around fatal bugs
  4992. #in HP-UX 10.10 and 10.20 curses. Maybe we could use lcurses for 10.30, since
  4993. #the 10.10 curses problem is supposedly fixed in 10.30.
  4994. # +DA1.0 = Generate PA-RISC 1.0 code that runs on both 700 and 800 models.
  4995. # +DA1.1 = Generate PA-RISC 1.1 code that runs on both 700 and 800 models.
  4996. # Note that HP-UX 10.20 and upwards  not support PA-RISC 1.0 systems.
  4997. # And that as of Dec 2001, 11.00 and 11.11 are PA-only and 11.20 is IA64-only.
  4998. # Later 11.2x releases are expected to be for both.  Architecture can be
  4999. # determined with the model command, at least in 10.20 and later...
  5000. #For future releases, we need to include +DA1.1 for PA builds, so that a
  5001. #binary built on PA 2.0 will still work on PA 1.1 machines, whereas +DA1.1
  5002. #must NOT be included for IA64 builds.
  5003. #
  5004. hpux1000:
  5005.     @$(MAKE) hpux-header
  5006.     @LIBS='-lHcurses' ; \
  5007.     AFLAGS='+DA1.1' ; \
  5008.     case `uname -r` in \
  5009.        [AB].10.0*)  KFLAGS='-DHPUX1000 $(KFLAGS)' ; \
  5010.                     AFLAGS='+DA1.0' ; LIBS='-lcurses'  ;; \
  5011.        [AB].10.1*)  KFLAGS='-DHPUX1010 -D__HP_CURSES $(KFLAGS)' ; \
  5012.                     ;; \
  5013.        [AB].10.2*)  KFLAGS='-DHPUX1020 -D__HP_CURSES $(KFLAGS)' ; \
  5014.                     ;; \
  5015.        [AB].10.3*)  KFLAGS='-DHPUX1030 -D__HP_CURSES $(KFLAGS)' ; \
  5016.                     ;; \
  5017.        [AB].10.?*)  KFLAGS='-DHPUX10XX -D__HP_CURSES $(KFLAGS)' ; \
  5018.                     ;; \
  5019.        [AB].11.0*)  KFLAGS='-DHPUX1100 -D__HP_CURSES $(KFLAGS)' ; \
  5020.                     ;; \
  5021.        [AB].11.1*)  KFLAGS='-DHPUX1100 -D__HP_CURSES $(KFLAGS)' ; \
  5022.                     ;; \
  5023.        [AB].11.?*)  KFLAGS='-DHPUX1100 -D__HP_CURSES $(KFLAGS)' ; \
  5024.                     AFLAGS='' ; LIBS='-lcurses' ;; \
  5025.     esac ; \
  5026.     OFLAGS=$${OFLAGS:-$$AFLAGS} ; \
  5027.     $(MAKE) "SHELL=/usr/bin/sh" xermit KTARGET=$${KTARGET:-$(@)} \
  5028.     "CC=$(CC)" "CC2=$(CC2)" \
  5029.     "CFLAGS = -DHPUX10 -DDIRENT -DSTERMIOX -DCK_DSYSINI -DHDBUUCP \
  5030.     -DCK_CURSES -DCK_WREFRESH -DTCPSOCKET -DCK_REDIR -DRENAME -DFNFLOAT \
  5031.     $$KFLAGS $$OFLAGS" \
  5032.     "LNKFLAGS=-s $(LNKFLAGS)" "LIBS = -lm $$LIBS $(KLIBS)"
  5033.  
  5034. # This is a kludge, copying hpux0900gcc and adapting hpux1000 
  5035. # (add CC and CC2, drop the A1.[0||1])
  5036. # Builds w/ no compiler warnings but minimally tested.
  5037. #
  5038. hpux1000gcc:
  5039.     @MESSAGE1='using the gcc compiler' \
  5040.     $(MAKE) hpux1000 KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  5041.     "KFLAGS = $(KFLAGS)" OFLAGS=" -DCK_ANSIC -funsigned-char -O2"
  5042.  
  5043. # Trusted HP-UX 10
  5044. # echo KFLAGS=$(KFLAGS) YTARGET YTARGET=$(YTARGET) $(XTARGET) ;
  5045. hpux1000t:
  5046.     @case "$(KTARGET)" in \
  5047.        *o+) KENTRY=hpux1000o+ ;; \
  5048.        *o)  KENTRY=hpux1000o ;; \
  5049.        *)   KENTRY=hpux1000 ;; \
  5050.     esac ; \
  5051.     MESSAGE1="and support for 'Trusted HP-UX'" \
  5052.     $(MAKE) $$KENTRY KTARGET=$${KTARGET:-$(@)} \
  5053.     "KFLAGS= $(KFLAGS) -DHPUX10_TRUSTED" "KLIBS=-lsec"
  5054.  
  5055. hpux1000to:
  5056.     $(MAKE) hpux1000t KTARGET=$${KTARGET:-$(@)}
  5057.  
  5058. hpux1000to+:
  5059.     $(MAKE) hpux1000t KTARGET=$${KTARGET:-$(@)}
  5060.  
  5061. #HP-9000 HP-UX 10.00 and higher with ANSI prototyping and optimization.
  5062. #PA-RISC only, no Motorola or other hardware is support in HP-UX 10.00++.
  5063. #The unbundled optional compiler is required.
  5064. #Your path should start with /opt/ansic/bin.
  5065. # -Wl,-Fw = Remove stack unwind table (info used by debuggers).
  5066. # +O2 makes a smaller executable (= -O = Level-1 and global optimization).
  5067. # +O3 adds interprocedural global optimization, makes a bigger executable.
  5068. # +Onolimit allows all modules to be optimized, no matter how complex.  But:
  5069. #  (a) +Onolimit does not seem to always be there in HP-UX 10.00, and:
  5070. #  (b) some modules might take hours on low-memory and/or slow systems.
  5071. # The following are PA-RISC-specific optimizations:
  5072. # +ESlit = Consolidate strings in read-only memory.
  5073. # +ESfsc = Inline millicode calls when comparing pointers.
  5074. # You might need to configure your kernel for a maxdsiz of 0x0B000000 (176MB)
  5075. # or greater to prevent the optimizer from running out of space.
  5076. # December 2001: +ESlit +ESsfc removed because not supported on IA64.
  5077. # Somebody who cares can use 'model' to see whether it's PA-RISC or IA64
  5078. # and include the architecture-specific optimization flags.  Also note:
  5079. # +DA1.1 is PA-only.  If this is included in in HP-UX 11.00 or later,
  5080. # then +DS2.0 should be included too (but don't use +DS2.0 without +DA1.1,
  5081. # or else the binary won't run on older PA hardware).
  5082. hpux1000o:
  5083.     @case `uname -m` in \
  5084.       ia64) ;; \
  5085.       *) MFLAGS='+ESlit +ESsfc' ;; \
  5086.     esac ; \
  5087.     MESSAGE1="with PA-RISC-specific optimizations $(MESSAGE1)" \
  5088.     $(MAKE) "SHELL=/usr/bin/sh" "PATH=/opt/ansic/bin:$$PATH" hpux1000 \
  5089.     KTARGET=$${KTARGET:-$(@)} "KFLAGS = $(KFLAGS) \
  5090.     -Aa -D_HPUX_SOURCE -DCK_ANSIC -DUTIMEH \
  5091.     +O2 -Wl,-Fw $$MFLAGS"
  5092.  
  5093. #Like hpux1000o but with "+Onolimit".
  5094. #On 700 series set kernel parameter maxdsiz >= 0x0D000000 (=208MB).
  5095. #Takes a long time.
  5096. hpux1000o+:
  5097.     @MESSAGE1="and +Onolimit $(MESSAGE1)" KTARGET=$${KTARGET:-$(@)} \
  5098.     $(MAKE) hpux1000o \
  5099.     "KFLAGS = $(KFLAGS) +Onolimit"
  5100.  
  5101. hpux1100:
  5102.     $(MAKE) hpux1000 KTARGET=$${KTARGET:-$(@)}
  5103.  
  5104. hpux1100o:
  5105.     $(MAKE) hpux1000o KTARGET=$${KTARGET:-$(@)}
  5106.  
  5107. hpux1100o+:
  5108.     $(MAKE) hpux1000o+ KTARGET=$${KTARGET:-$(@)}
  5109.  
  5110. hpux1100gcc:
  5111.     $(MAKE) hpux1000gcc KTARGET=$${KTARGET:-$(@)}
  5112.  
  5113. # Trusted HP-UX 11
  5114. hpux1100t:
  5115.     $(MAKE) hpux1000t KTARGET=$${KTARGET:-$(@)}
  5116.  
  5117. hpux1100to:
  5118.     $(MAKE) hpux1000to KTARGET=$${KTARGET:-$(@)}
  5119.  
  5120. hpux1100to+:
  5121.     $(MAKE) hpux1000to+ KTARGET=$${KTARGET:-$(@)}
  5122.  
  5123. #Regulus on CIE Systems 680/20
  5124. cie:
  5125.     @echo 'Making C-Kermit $(CKVER) for CIE Systems 680/20 Regulus...'
  5126.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  5127.     "CFLAGS = -DATTSV -DNOFILEH -DCIE -DNOLEARN $(KFLAGS) -O" "LNKFLAGS ="
  5128.  
  5129. # Linux 1.2 or later with gcc, dynamic libraries, ncurses, TCP/IP.
  5130. #
  5131. # If your Linux system has curses rather than ncurses, use the linuxc
  5132. # entry, or if that doesn't work, linuxnc.
  5133. #
  5134. # The Kermit "large memory model" is used by default to configure big packet
  5135. # and script buffers, etc.  For small-memory or limited-resource systems,
  5136. # "make linux KFLAGS=-DNOBIGBUF".
  5137. #
  5138. # -DLINUXFSSTND (Linux File System Standard 1.2) gives UUCP lockfile /var/lock
  5139. # with string pid.  Remove this to get /usr/spool/uucp with int pid, used in
  5140. # very early Linux versions.  FSSTND 1.2 also says that the PID string in the
  5141. # UUCP lock file has leading spaces.  This is a change from FSSTND 1.0, which
  5142. # used leading zeros.  Add -DFSSTND10 to support FSSTND 1.0 instead of 1.2.
  5143. # I hope subsequent editions of the file-system standard did not change these
  5144. # again.
  5145. #
  5146. # Add -DOLINUXHISPEED (Old Linux High Speed support) to turn on an ugly kludge
  5147. # in Linux 1.0 and earlier to support speeds of 57600 and 115200.  Extremely
  5148. # old Linux systems (pre-0.99pl15) will not support this.  If OLINUXHISPEED is
  5149. # not defined, then only the standard POSIX termios methods of setting the port
  5150. # speed will be used, and in this case speeds can be as high as 460800 in most
  5151. # modern Linux versions.
  5152. #
  5153. # -DCK_POSIX_SIG (POSIX signal handling) is good for Linux releases back to at
  5154. # least 0.99.14; if it causes trouble for you, remove it from the CFLAGS.
  5155. #
  5156. # -pipe removes the need for temp files - remove it if it causes trouble.
  5157. #
  5158. # -funsigned-char makes all characters unsigned, as they should have been
  5159. #  in the first place.
  5160. #
  5161. # Add -DCK_DSYSINI if you want a shared system-wide init file.
  5162. #
  5163. # See ckubwr.txt about -DNOCOTFMC.  In fact, you really should read the
  5164. # entire Linux section of ckubwr.txt.
  5165. #
  5166. # The "linuxa" entry can be referenced directly on LIBC systems, but not
  5167. # GLIBC, where -lcrypt is required.  The "make linux" entry should normally
  5168. # be used for all builds on all Linux distributions unless you have special
  5169. # requirements, in which case keep reading.  CK_NEWTERM added after 7.0B04
  5170. # due to new complaints about ncurses changing buffering of tty.
  5171.  
  5172. linuxa:
  5173.     @echo 'Making C-Kermit $(CKVER) for Linux 1.2 or later...'
  5174.     @echo 'IMPORTANT: Read the comments in the linux section of the'
  5175.     @echo 'makefile if you have trouble.'
  5176.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5177.     "CFLAGS = -O -DLINUX -pipe -funsigned-char -DFNFLOAT -DCK_POSIX_SIG \
  5178.     -DCK_NEWTERM -DTCPSOCKET -DLINUXFSSTND -DNOCOTFMC -DPOSIX \
  5179.     -DUSE_STRERROR $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" "LIBS = $(LIBS) -lm"
  5180.  
  5181. # As above but with profiling
  5182. linuxp:
  5183.     $(MAKE) linuxa KTARGET=$${KTARGET:-$(@)} "KFLAGS=$(KFLAGS) -pg" \
  5184.     "LIBS=-pg -lcrypt -lresolv"
  5185.  
  5186. #New primary Linux entry for C-Kermit 8.0, replacing big nested
  5187. #if-then-else construction full of repeated clauses with a simpler scheme
  5188. #for automatically detecting:
  5189. # . Old versus new pty handling (new == glibc 2.1++)
  5190. # . Presence or absence of librypt.a and <crypt.h>
  5191. # . Presence or absence of libresolv.a
  5192. #Unlike the previous scheme, this one is easily extended to include more tests.
  5193. #Note: The HAVE_PTMX test was previously "if test -c /dev/ptmx" but this was
  5194. #not sufficient for Debian 2.1, because although it had /dev/ptmx, it did not
  5195. #have grantpt(), unlockpt(), or ptsname(), so has been changed to look for a
  5196. #grantpt() prototype in the header files.  Warning: uses a temporary file in
  5197. #the current directory.  Modified in 8.0.206 to allow for libraries that
  5198. #contain .so's but no .a's, e.g. Mandrake 9.0.
  5199. linux:
  5200.     @if test \
  5201.     `grep grantpt /usr/include/*.h /usr/include/sys/*.h | wc -l` -gt 0; \
  5202.     then if test -c /dev/ptmx; then HAVE_PTMX='-DHAVE_PTMX'; \
  5203.     else HAVE_PTMX=''; fi; fi ; \
  5204.     $(MAKE) KTARGET=$${KTARGET:-$(@)} \
  5205.     "KFLAGS=-DCK_NCURSES -I/usr/include/ncurses $$HAVE_PTMX \
  5206.     `if test -f /usr/lib/libcrypt.a || test -f /usr/lib/libcrypt.so; \
  5207.     then echo -DHAVE_CRYPTH; fi` \
  5208.     $(KFLAGS)" \
  5209.     "LIBS=-lncurses \
  5210.     `if test -f /usr/lib/libresolv.a || test -f /usr/lib/libresolv.so; \
  5211.     then echo -lresolv; fi` \
  5212.     `if test -f /usr/lib/libcrypt.a || test -f /usr/lib/libcrypt.so; \
  5213.     then echo -lcrypt; fi`" \
  5214.     linuxa
  5215.  
  5216. # As above but for Linux systems that have no <sys/select.h>.
  5217. linuxns:
  5218.     $(MAKE) linux KTARGET=$${KTARGET:-$(@)} KFLAGS=-DNO_SYS_SELECT_H
  5219.  
  5220. # As above, but forces use of curses rather than ncurses.
  5221. # Add -ltermcap to LIBS if necessary.
  5222. # Also watch out for libcurses and/or libtermcap having been moved.
  5223. # In that case you might need something like:
  5224. #  "LIBS = -L/usr/lib/curses -lcurses -L/usr/lib/termcap -ltermcap"
  5225.  
  5226. linuxc:
  5227.     @if test \
  5228.     `grep grantpt /usr/include/*.h /usr/include/sys/*.h | wc -l` -gt 0; \
  5229.     then if test -c /dev/ptmx; then HAVE_PTMX='-DHAVE_PTMX'; \
  5230.     else HAVE_PTMX=''; fi; fi ; \
  5231.     $(MAKE) KTARGET=$${KTARGET:-$(@)} \
  5232.     "KFLAGS=-DCK_CURSES $$HAVE_PTMX \
  5233.     `if test -f /usr/lib/libcrypt.a; then echo -DHAVE_CRYPTH; fi` \
  5234.     $(KFLAGS)" \
  5235.     "LIBS=-lcurses \
  5236.     `if test -f /usr/lib/libresolv.a; then echo -lresolv; fi` \
  5237.     `if test -f /usr/lib/libcrypt.a; then echo -lcrypt; fi`" \
  5238.     linuxa
  5239.  
  5240. # As above but with with no curses support, for example because you installed
  5241. # the developer tools but did not install (n)curses.
  5242. linuxnc:
  5243.     @if test \
  5244.     `grep grantpt /usr/include/*.h /usr/include/sys/*.h | wc -l` -gt 0; \
  5245.     then if test -c /dev/ptmx; then HAVE_PTMX='-DHAVE_PTMX'; \
  5246.     else HAVE_PTMX=''; fi; fi ; \
  5247.     $(MAKE) KTARGET=$${KTARGET:-$(@)} \
  5248.     "KFLAGS= $$HAVE_PTMX \
  5249.     `if test -f /usr/lib/libcrypt.a; then echo -DHAVE_CRYPTH; fi` \
  5250.     $(KFLAGS)" "LIBS= \
  5251.     `if test -f /usr/lib/libresolv.a; then echo -lresolv; fi` \
  5252.     `if test -f /usr/lib/libcrypt.a; then echo -lcrypt; fi`" \
  5253.     linuxa
  5254.  
  5255. #Sharp Zaurus SL-5500 - Linux based
  5256. zsl5500:
  5257.     @echo 'Making C-Kermit $(CKVER) for Sharp Zaurus SL-5500...'
  5258.     @touch ckcpro.c
  5259.     @touch wart
  5260.     $(MAKE) linuxnc KTARGET=$${KTARGET:-$(@)} "KFLAGS=-DZSL5500" \
  5261.     "CC = gcc" "CC2 = gcc"
  5262.  
  5263. # A minimum-size version for Linux that does only scripting and
  5264. # serial communication -- no networks, no file transfer.
  5265. linuxso:
  5266.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5267.     "CFLAGS = -O -DLINUX -pipe -funsigned-char -DPOSIX -DCK_POSIX_SIG \
  5268.     -DLINUXFSSTND -DNOCOTFMC -DNOXFER -DNODEBUG -DNOCSETS -DNOHELP \
  5269.     -DNONET -DMINIDIAL -DNOSCRIPT -DNOIKSD -DNOPUSH $(KFLAGS)" \
  5270.     "LNKFLAGS = $(LNKFLAGS)" "LIBS = "
  5271.  
  5272. #Mklinux DR3 has horrible bug in <utmpbits.h> - see ckufio.c.
  5273. mklinux:
  5274.     $(MAKE) KTARGET=$${KTARGET:-$(@)} "KFLAGS=-DUTMPBUG" \
  5275.     "LIBS=-lcrypt -lresolv" linuxa
  5276.  
  5277. #LinuxPPC 1999
  5278. linuxppc:
  5279.     @echo 'Making C-Kermit $(CKVER) for LinuxPPC 1999...'
  5280.     @if test -f /usr/lib/libcrypt.a; then \
  5281.         if test -f /usr/lib/libresolv.a; then \
  5282.             $(MAKE) KTARGET=$${KTARGET:-$(@)} \
  5283.         "KFLAGS=$(NCURSES_CPP) -DHAVE_CRYPT_H \
  5284.         -DLOCK_DIR=\\\\\\"\"/var/lock/modem\\\\\\"\" $(KFLAGS)" \
  5285.             "LIBS=-lncurses -lresolv -lcrypt" linuxa ; \
  5286.         else \
  5287.             $(MAKE) KTARGET=$${KTARGET:-$(@)} \
  5288.         "KFLAGS=$(NCURSES_CPP) -DHAVE_CRYPT_H \
  5289.         -DLOCK_DIR=\\\\\\"\"/var/lock/modem\\\\\\"\" $(KFLAGS)" \
  5290.             "LIBS=-lncurses -lcrypt" linuxa ; \
  5291.         fi \
  5292.     else \
  5293.         if test -f /usr/lib/libresolv.a; then \
  5294.             $(MAKE) KTARGET=$${KTARGET:-$(@)} \
  5295.         "KFLAGS=$(NCURSES_CPP) \
  5296.         -DLOCK_DIR=\\\\\\"\"/var/lock/modem\\\\\\"\" $(KFLAGS)" \
  5297.             "LIBS=-lncurses -lresolv" linuxa ; \
  5298.         else \
  5299.             $(MAKE) KTARGET=$${KTARGET:-$(@)} \
  5300.         "KFLAGS=$(NCURSES_CPP) \
  5301.         -DLOCK_DIR=\\\\\\"\"/var/lock/modem\\\\\\"\" $(KFLAGS)" \
  5302.             "LIBS=-lncurses" linuxa ; \
  5303.         fi \
  5304.     fi
  5305.  
  5306.  
  5307. # The remaining Linux entries are for special or customized builds.  They
  5308. # have not been generalized like the ones above.  Ideally, we should allow
  5309. # for every combination of libc vs glibc, gcc vs egcs, curses vs ncurses,
  5310. # Kerberos IV vs Kerberos V vs SRP (in any combination), and so on --
  5311. # volunteers welcome.
  5312.  
  5313. # If you get "Internal compiler error xxx, output pipe has been closed",
  5314. # try removing -pipe.
  5315.  
  5316. # Like "make linux" but built with egcs rather than gcc.
  5317. linuxegcs:
  5318.     @echo 'Making C-Kermit $(CKVER) for Linux 1.2 or later with egcs...'
  5319.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = egcs" "CC2 = egcs" \
  5320.     "CFLAGS = -O -DLINUX -pipe -funsigned-char \
  5321.     -DPOSIX -DCK_POSIX_SIG -DCK_NCURSES -DNOCOTFMC \
  5322.     -DTCPSOCKET -DLINUXFSSTND $(KFLAGS)" \
  5323.     "LNKFLAGS = $(LNKFLAGS)" "LIBS = -lncurses -lcrypt -lresolv"
  5324.  
  5325. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.1 (no K4 compatibility).
  5326. linux+krb5:
  5327.     @echo 'Making C-Kermit $(CKVER) for Linux on Intel with Kerberos...'
  5328.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5329.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5330.     -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 \
  5331.     -DCK_ENCRYPTION -DCK_DES -DCK_CURSES -DCK_POSIX_SIG \
  5332.     -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H $(K5INC) $(K5INC)/krb5 \
  5333.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5334.     "LIBS = $(K5LIB) -lncurses -ltermcap -ldes425 -lkrb5 \
  5335.     -lcom_err -lk5crypto -lgssapi_krb5 -lcrypt -lresolv"
  5336.  
  5337. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.1 with K4 compatibility.
  5338. #
  5339. # Requires the Kerberos 1.2.1 be compiled with KRB4 compatibility.
  5340. linux+krb5+krb4:
  5341.     @echo 'Making C-Kermit $(CKVER) for Linux on Intel with Kerberos...'
  5342.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5343.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5344.     -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 -DKRB4 -DKRB524 \
  5345.     -DCK_ENCRYPTION -DCK_DES -DCK_CURSES -DCK_POSIX_SIG \
  5346.     -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H $(K5INC) $(K5INC)/krb5 \
  5347.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5348.     "LIBS = $(K5LIB) -lncurses -ltermcap -lkrb4 -ldes425 -lkrb5 \
  5349.     -lcom_err -lk5crypto -lcrypt -lgssapi_krb5 -lresolv"
  5350.  
  5351. # Linux on Intel PC with SRP 1.7.4 using GNU MP, Krypto, and Eric Young's
  5352. # DES library.  Remove the -DCK_DES, -DLIBDES and -ldes if you do not have
  5353. # Eric Young's# libdes.a installed.
  5354. #
  5355. linux+srp+gmp:
  5356.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SRP...'
  5357.     $(MAKE) srpmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5358.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5359.     -DCK_AUTHENTICATION -DCK_SRP \
  5360.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES \
  5361.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5362.     $(SRPINC) $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5363.     "LIBS = $(SRPLIB) \
  5364.     -lncurses -ltermcap -lsrp -lgmp -ldes -lkrypto -lcrypt -lresolv"
  5365.  
  5366. linux+srp+gmp+no-des:
  5367.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SRP ...'
  5368.     $(MAKE) srpmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5369.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5370.     -DCK_AUTHENTICATION -DCK_SRP \
  5371.     -DCK_ENCRYPTION -DCK_CAST \
  5372.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5373.     $(SRPINC) $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5374.     "LIBS = $(SRPLIB) \
  5375.     -lncurses -ltermcap -lsrp -lgmp -lkrypto -lcrypt -lresolv"
  5376.  
  5377. linux+srp+gmp-export:
  5378.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SRP...'
  5379.     $(MAKE) srpmit-export KTARGET=$${KTARGET:-$(@)} \
  5380.     "CC = gcc" "CC2 = gcc" \
  5381.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5382.     -DCK_AUTHENTICATION -DCK_SRP -DFNFLOAT \
  5383.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5384.     $(SRPINC) $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5385.     "LIBS = $(SRPLIB) \
  5386.     -lncurses -ltermcap -lsrp -lgmp -lkrypto -lcrypt -lm -lresolv"
  5387.  
  5388. linux+srp+gmp+pam:
  5389.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SRP...'
  5390.     $(MAKE) srpmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5391.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5392.     -DCK_AUTHENTICATION -DCK_SRP \
  5393.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES \
  5394.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5395.     -DCK_PAM -DFNFLOAT $(SRPINC) $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5396.     "LIBS = $(SRPLIB) -lncurses -ltermcap -lsrp -lgmp -ldes -lkrypto \
  5397.     -lcrypt -lpam -ldl -lm -lresolv"
  5398.  
  5399. #Linux on Intel PC with SRP 1.7.4 built with OpenSSL for Big Number Math
  5400. #and Cryptographic functionality.
  5401. #
  5402. linux+srp:
  5403.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SRP...'
  5404.     $(MAKE) srpmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5405.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5406.     -DCK_AUTHENTICATION -DCK_SRP \
  5407.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES \
  5408.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5409.     $(SRPINC) $(SSLINC) $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5410.     "LIBS = $(SRPLIB) $(SSLLIB) \
  5411.     -lncurses -ltermcap -lsrp -lkrypto -lcrypto -lcrypt -lresolv"
  5412.  
  5413. linux+srp+pam:
  5414.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SRP...'
  5415.     $(MAKE) srpmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5416.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5417.     -DCK_AUTHENTICATION -DCK_SRP \
  5418.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES \
  5419.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5420.     -DCK_PAM -DFNFLOAT $(SRPINC) $(SSLINC) $(KFLAGS)" \
  5421.     "LNKFLAGS = $(LNKFLAGS)" \
  5422.     "LIBS = $(SRPLIB) $(SSLLIB) -lncurses -ltermcap -lsrp -lkrypto \
  5423.     -lcrypto -lcrypt -lpam -ldl -lm -lresolv"
  5424.  
  5425. linux+shadow+pam:
  5426.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with Shadow+PAM...'
  5427.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5428.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5429.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5430.     -DCK_SHADOW -DCK_PAM -DFNFLOAT \
  5431.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5432.     "LIBS = -lncurses -ltermcap -lcrypt -lpam -ldl -lm -lresolv"
  5433.  
  5434. #Linux configured for SSL/TLS.
  5435. #Remove -ltermcap if it causes trouble e.g. in Debian 2.2.
  5436. linux+openssl:
  5437.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SSL/TLS...'
  5438.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5439.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5440.     -DCK_AUTHENTICATION -DCK_SSL \
  5441.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5442.     -DFNFLOAT $(SSLINC) $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5443.     "LIBS= $(SSLLIB) \
  5444.     -lncurses -ltermcap -lssl -lcrypto -lm -lresolv -lcrypt"
  5445.  
  5446. #Linux configured for SSL/TLS and Shadow Passwords
  5447. #Remove -ltermcap if it causes trouble e.g. in Debian 2.2.
  5448. linux+openssl+shadow:
  5449.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SSL/TLS...'
  5450.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5451.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5452.     -DCK_AUTHENTICATION -DCK_SSL \
  5453.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5454.     -DFNFLOAT -DCK_SHADOW $(SSLINC) $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5455.     "LIBS= $(SSLLIB) \
  5456.     -lncurses -ltermcap -lssl -lcrypto -lm -lresolv -lcrypt"
  5457.  
  5458. #Linux configured for SSL/TLS, ZLIB, PAM and Shadow Passwords
  5459. #Remove -ltermcap if it causes trouble e.g. in Debian 2.2.
  5460. linux+openssl+zlib+shadow+pam:
  5461.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SSL/TLS...'
  5462.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5463.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5464.     -DCK_AUTHENTICATION -DCK_SSL -DCK_PAM -DZLIB \
  5465.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5466.     -DFNFLOAT -DCK_SHADOW $(SSLINC) $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5467.     "LIBS= $(SSLLIB) \
  5468.     -lncurses -ltermcap -lssl -lcrypto -lm -lresolv -lcrypt -lz -lpam -ldl"
  5469.  
  5470. #Linux on Intel PC with SRP and SSL/TLS.
  5471. #
  5472. # libsrp.a should be build with OpenSSL
  5473. # Requires the Kerberos 1.2.2 or higher to be compiled with KRB4 compatibility.
  5474. #Remove -ltermcap if it causes trouble e.g. in Debian 2.2.
  5475. linux+srp+openssl:
  5476.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SRP,SSL...'
  5477.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5478.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5479.     -DCK_AUTHENTICATION -DCK_SRP \
  5480.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL \
  5481.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5482.     $(SRPINC) $(SSLINC) $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5483.     "LIBS = $(SRPLIB) $(SSLLIB) \
  5484.     -lncurses -ltermcap -lsrp -lssl -lkrypto -lcrypto \
  5485.     -lcrypt -lresolv"
  5486.  
  5487. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.2 and SRP.
  5488. #
  5489. # libsrp.a should be build with GNU MP (libgmp.a)
  5490. # instead of AT&T CryptoLib (libcrypt.a) due to naming conflicts with
  5491. # standard distribution Linux libraries.
  5492. # Requires the Kerberos 1.2.2 or higher to be compiled with KRB4 compatibility.
  5493. linux+krb5+krb4+srp:
  5494.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB54+SRP...'
  5495.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5496.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5497.     -DCK_AUTHENTICATION -DCK_SRP -DCK_KERBEROS  -DKRB5 -DKRB4 -DKRB524 \
  5498.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES \
  5499.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5500.     $(K5INC) $(K5INC)/krb5 $(SRPINC) \
  5501.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5502.     "LIBS = $(K5LIB) $(SRPLIB) \
  5503.     -lncurses -ltermcap -lsrp -lgmp -lgssapi_krb5 -lkrypto \
  5504.     -ldes -lkrb4 -ldes425 -lkrb5 -lcom_err -lk5crypto -lcrypt -lresolv"
  5505.  
  5506. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.2, SRP and SSL/TLS.
  5507. #
  5508. # libsrp.a should be build with OpenSSL
  5509. # Requires the Kerberos 1.2.2 or higher to be compiled with KRB4 compatibility.
  5510. # Requires OpenSSL 0.9.6a or higher
  5511. linux+krb5+krb4+srp+openssl:
  5512.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SRP,SSL...'
  5513.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5514.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5515.     -DCK_AUTHENTICATION -DCK_SRP -DCK_KERBEROS  -DKRB5 -DKRB4 -DKRB524 \
  5516.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL \
  5517.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5518.     $(K5INC) $(K5INC)/krb5 $(SRPINC) $(SSLINC) \
  5519.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5520.     "LIBS = $(K5LIB) $(SRPLIB) $(SSLLIB) \
  5521.     -lncurses -ltermcap -lsrp \
  5522.     -lkrb4 -lssl -lkrypto -lcrypto \
  5523.     -lkrb5 -lcom_err -lk5crypto -lgssapi_krb5 -lcrypt -lresolv"
  5524.  
  5525. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.2, SSL/TLS.
  5526. #
  5527. # libsrp.a should be build with OpenSSL
  5528. # Requires the Kerberos 1.2.2 be compiled with KRB4 compatibility.
  5529. linux+krb5+krb4+openssl:
  5530.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SSL...'
  5531.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5532.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5533.     -DCK_AUTHENTICATION -DCK_KERBEROS  -DKRB5 -DKRB4 -DKRB524 \
  5534.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL \
  5535.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5536.     $(K5INC) $(K5INC)/krb5 $(SSLINC) \
  5537.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5538.     "LIBS = $(K5LIB) $(SSLLIB) \
  5539.     -lncurses -ltermcap \
  5540.     -lkrb4 -lssl -lcrypto -lkrb5 -lcom_err \
  5541.     -lk5crypto -lgssapi_krb5 -lcrypt -lresolv"
  5542.  
  5543. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.1, SSL/TLS.
  5544. #
  5545. # libsrp.a should be build with OpenSSL
  5546. # Requires the Kerberos 1.2.2 be compiled with KRB4 compatibility.
  5547. linux+krb5+krb4+openssl+shadow:
  5548.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SSL...'
  5549.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5550.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5551.     -DCK_AUTHENTICATION -DCK_KERBEROS  -DKRB5 -DKRB4 -DKRB524 \
  5552.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL -DCK_SHADOW \
  5553.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5554.     $(K5INC) $(K5INC)/krb5 $(SSLINC) \
  5555.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5556.     "LIBS = $(K5LIB) $(SSLLIB)  \
  5557.     -lncurses -ltermcap \
  5558.     -lkrb4 -lssl -lcrypto -lkrb5 -lcom_err \
  5559.     -lk5crypto -lgssapi_krb5 -lcrypt -lresolv"
  5560.  
  5561. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2, SSL/TLS.
  5562. #
  5563. # libsrp.a should be build with OpenSSL
  5564. # Requires the Kerberos 1.2.2 be compiled with KRB4 compatibility.
  5565. linux+krb5+krb4+openssl+zlib+shadow:
  5566.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SSL...'
  5567.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5568.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5569.     -DCK_AUTHENTICATION -DCK_KERBEROS  -DKRB5 -DKRB4 -DKRB524 -DZLIB \
  5570.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL -DCK_SHADOW \
  5571.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5572.     $(K5INC) $(K5INC)/krb5 $(SSLINC) \
  5573.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5574.     "LIBS = $(K5LIB) $(SSLLIB) \
  5575.     -lncurses -ltermcap \
  5576.     -lkrb4 -lssl -lcrypto -lkrb5 -lcom_err \
  5577.     -lk5crypto -lgssapi_krb5 -lcrypt -lresolv -lz"
  5578.  
  5579. linux+krb5+krb4+srp-export:
  5580.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SRP...'
  5581.     $(MAKE) krbmit-export KTARGET=$${KTARGET:-$(@)} \
  5582.     "CC = gcc" "CC2 = gcc" \
  5583.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5584.     -DCK_AUTHENTICATION -DCK_SRP -DCK_KERBEROS  -DKRB5 -DKRB4 -DKRB524 \
  5585.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5586.     $(K5INC) $(K5INC)/krb5 $(SRPINC) \
  5587.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5588.     "LIBS = $(SRPLIB) $(K5LIB) \
  5589.     -lncurses -ltermcap -lsrp -lgmp -lkrb4 -ldes425 -lkrb5 -lgssapi_krb5 \
  5590.     -lcom_err -lk5crypto -lkrypto -lcrypt -lresolv"
  5591.  
  5592. linux+krb5+krb4+srp+pam:
  5593.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SRP...'
  5594.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5595.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5596.     -DCK_AUTHENTICATION -DCK_SRP -DCK_KERBEROS  -DKRB5 -DKRB4 -DKRB524 \
  5597.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES \
  5598.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5599.     -DCK_PAM $(K5INC) $(K5INC)/krb5 $(SRPINC) \
  5600.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5601.     "LIBS = $(SRPLIB) $(K5LIB) \
  5602.     -lncurses -ltermcap -lsrp -lgmp -ldes -lkrb4 -ldes425 -lkrb5 \
  5603.     -lcom_err -lk5crypto -lgssapi_krb5 -lkrypto -lcrypt -lpam -ldl \
  5604.     -lresolv"
  5605.  
  5606. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.2, SRP and SSL/TLS.
  5607. # and PAM.
  5608. #
  5609. # libsrp.a should be build with OpenSSL
  5610. # Requires the Kerberos 1.2.2 be compiled with KRB4 compatibility.
  5611. linux+krb5+krb4+srp+openssl+pam-debug:
  5612.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SRP,SSL...'
  5613.     $(MAKE) krbmit-debug KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5614.     "CFLAGS = -g -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5615.     -DCK_AUTHENTICATION -DCK_SRP -DCK_KERBEROS  -DKRB5 -DKRB4 -DKRB524 \
  5616.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL -DCK_PAM \
  5617.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5618.     -w -Dmalloc=dmalloc -Dfree=dfree -DMDEBUG $(K5INC) $(K5INC)/krb5 \
  5619.     $(SRPINC) $(SSLINC) $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5620.     "LIBS = $(SRPLIB) $(K5LIB) $(SSLLIB) \
  5621.     -lncurses -ltermcap -lsrp -lkrb4 -lssl -lkrypto -lcrypto \
  5622.     -lkrb5 -lcom_err -lk5crypto -lgssapi_krb5 -lcrypt -lresolv -lpam -ldl"
  5623.  
  5624. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.1, SRP and SSL/TLS.
  5625. # and PAM.
  5626. #
  5627. # libsrp.a should be build with OpenSSL
  5628. # Requires the Kerberos 1.2.2 be compiled with KRB4 compatibility.
  5629. linux+krb5+krb4+srp+openssl+pam:
  5630.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SRP,SSL...'
  5631.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5632.     "CFLAGS = -g -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5633.     -DCK_AUTHENTICATION -DCK_SRP -DCK_KERBEROS  -DKRB5 -DKRB4 -DKRB524 \
  5634.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL -DCK_PAM \
  5635.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5636.     $(K5INC) $(K5INC)/krb5 $(SRPINC) $(SSLINC) \
  5637.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5638.     "LIBS = $(SRPLIB) $(K5LIB) $(SSLLIB)  \
  5639.     -lm -lncurses -ltermcap -lsrp \
  5640.     -lkrb4 -lssl -lkrypto  -lcrypto -lgssapi_krb5 \
  5641.     -lkrb5 -lcom_err -lk5crypto -lcrypt -lresolv -lpam -ldl"
  5642.  
  5643. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.2, SRP, OpenSSL
  5644. # with ZLIB and PAM
  5645. #
  5646. # libsrp.a should be build with OpenSSL
  5647. # Requires the Kerberos 1.2.2 be compiled with KRB4 compatibility.
  5648. linux+krb5+krb4+srp+openssl+zlib+pam:
  5649.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SRP,SSL...'
  5650.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5651.     "CFLAGS = -g -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5652.     -DCK_AUTHENTICATION -DCK_SRP -DCK_KERBEROS  -DKRB5 -DKRB4 -DKRB524 \
  5653.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL -DCK_PAM -DZLIB \
  5654.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5655.     $(K5INC) $(K5INC)/krb5 $(SRPINC) $(SSLINC) \
  5656.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5657.     "LIBS = $(SRPLIB) $(K5LIB) $(SSLLIB) \
  5658.     -lm -lncurses -ltermcap -lsrp \
  5659.     -lkrb4 -lssl -lkrypto  -lcrypto -lgssapi_krb5 \
  5660.     -lkrb5 -lcom_err -lk5crypto -lcrypt -lresolv -lpam -ldl -lz"
  5661.  
  5662. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.2, SRP, OpenSSL
  5663. # with ZLIB, Shadow Passwords, and PAM
  5664. #
  5665. # libsrp.a should be build with OpenSSL
  5666. # Requires the Kerberos 1.2.2 be compiled with KRB4 compatibility.
  5667. linux+krb5+krb4+srp+openssl+zlib+shadow+pam:
  5668.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SRP,SSL...'
  5669.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5670.     "CFLAGS = -g -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5671.     -DCK_AUTHENTICATION -DCK_SRP -DCK_KERBEROS  -DKRB5 -DKRB4 -DKRB524 \
  5672.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL -DCK_PAM -DZLIB \
  5673.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5674.     -DCK_SHADOW $(K5INC) $(K5INC)/krb5 $(SRPINC) $(SSLINC) \
  5675.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5676.     "LIBS = $(SRPLIB) $(K5LIB) $(SSLLIB) \
  5677.     -lm -lncurses -ltermcap -lsrp -lkrypto \
  5678.     -lkrb4 -lssl -lcrypto -lgssapi_krb5 \
  5679.     -lkrb5 -lcom_err -lk5crypto -lcrypt -lresolv -lpam -ldl -lz"
  5680.  
  5681. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.2, OpenSSL
  5682. # with ZLIB, Shadow Passwords, PAM
  5683. #
  5684. # libsrp.a should be build with OpenSSL
  5685. # Requires the Kerberos 1.2.2 be compiled with KRB4 compatibility.
  5686. linux+krb5+krb4+openssl+zlib+shadow+pam:
  5687.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SRP,SSL...'
  5688.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5689.     "CFLAGS = -g -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5690.     -DCK_AUTHENTICATION -DCK_KERBEROS  -DKRB5 -DKRB4 -DKRB524 \
  5691.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL -DCK_PAM -DZLIB \
  5692.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5693.     -DCK_SHADOW $(K5INC) $(K5INC)/krb5 $(SSLINC) \
  5694.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5695.     "LIBS = $(K5LIB) $(SSLLIB) \
  5696.     -lm -lncurses -ltermcap \
  5697.     -lkrb4 -lssl -lcrypto -lgssapi_krb5 \
  5698.     -lkrb5 -lcom_err -lk5crypto -lcrypt -lresolv -lpam -ldl -lz"
  5699.  
  5700. #Red Hat Linux 8.0 - full install includes Kerberos 5 (4 compat), PAM, SSL.
  5701. #Also works around bug in curses in which terminal goes dead after
  5702. #returning from file-transfer display.
  5703. redhat80:
  5704.     @echo "Building SECURE Kermit for Red Hat 8.0..."
  5705.     $(MAKE) linux+krb5+krb4+openssl+zlib+shadow+pam \
  5706.     KTARGET=$${KTARGET:-$(@)} "KFLAGS = -DRH80 $(KFLAGS)"
  5707.  
  5708. redhat80+srp:
  5709.     @echo "Building SECURE Kermit for Red Hat 8.0..."
  5710.     $(MAKE) linux+krb5+krb4+srp+openssl+zlib+shadow+pam \
  5711.     KTARGET=$${KTARGET:-$(@)} "KFLAGS = -DRH80 $(KFLAGS)"
  5712.  
  5713. #Red Hat Linux 7.3 - full install includes Kerberos 5 (4 compat), PAM, SSL.
  5714. #Also works around bug in curses in which terminal goes dead after
  5715. #returning from file-transfer display.
  5716. redhat73:
  5717.     @echo "Building SECURE Kermit for Red Hat 7.3..."
  5718.     $(MAKE) linux+krb5+krb4+openssl+zlib+shadow+pam \
  5719.     KTARGET=$${KTARGET:-$(@)} "KFLAGS = -DRH73 $(KFLAGS)"
  5720.  
  5721. redhat73+srp:
  5722.     @echo "Building SECURE Kermit for Red Hat 7.3..."
  5723.     $(MAKE) linux+krb5+krb4+srp+openssl+zlib+shadow+pam \
  5724.     KTARGET=$${KTARGET:-$(@)} "KFLAGS = -DRH73 $(KFLAGS)"
  5725.  
  5726. #Red Hat Linux 7.2 - full install includes Kerberos 5 (4 compat), PAM, SSL.
  5727. #Also works around bug in curses in which terminal goes dead after
  5728. #returning from file-transfer display.
  5729. redhat72:
  5730.     @echo "Building SECURE Kermit for Red Hat 7.2..."
  5731.     $(MAKE) linux+krb5+krb4+openssl+zlib+shadow+pam \
  5732.     KTARGET=$${KTARGET:-$(@)} "KFLAGS = -DRH72 $(KFLAGS)"
  5733.  
  5734. redhat72+srp:
  5735.     @echo "Building SECURE Kermit for Red Hat 7.2..."
  5736.     $(MAKE) linux+krb5+krb4+srp+openssl+zlib+shadow+pam \
  5737.     KTARGET=$${KTARGET:-$(@)} "KFLAGS = -DRH72 $(KFLAGS)"
  5738.  
  5739. #Red Hat Linux 7.1 - full install includes Kerberos 5 (4 compat), PAM, SSL.
  5740. #Also works around bug in curses in which terminal goes dead after
  5741. #returning from file-transfer display.
  5742. redhat71:
  5743.     @echo "Building SECURE Kermit for Red Hat 7.1..."
  5744.     $(MAKE) linux+krb5+krb4+openssl+zlib+shadow+pam \
  5745.     KTARGET=$${KTARGET:-$(@)} "KFLAGS = -DRH71 $(KFLAGS)"
  5746.  
  5747. redhat71+srp:
  5748.     @echo "Building SECURE Kermit for Red Hat 7.1..."
  5749.     $(MAKE) linux+krb5+krb4+srp+openssl+zlib+shadow+pam \
  5750.     KTARGET=$${KTARGET:-$(@)} "KFLAGS = -DRH71 $(KFLAGS)"
  5751.  
  5752. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.2, OpenSSL
  5753. # with ZLIB and PAM and Shadow passwords
  5754. linux+krb5+openssl+zlib+shadow+pam:
  5755.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB5,SSL...'
  5756.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5757.     "CFLAGS = -g -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  5758.     -DCK_AUTHENTICATION -DCK_KERBEROS  -DKRB5 -DCK_SHADOW \
  5759.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL -DCK_PAM -DZLIB \
  5760.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  5761.     $(K5INC) $(K5INC)/krb5 $(SSLINC) \
  5762.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  5763.     "LIBS = $(K5LIB) $(SSLLIB) \
  5764.     -lm -lncurses -ltermcap -lssl -lcrypto -lgssapi_krb5 \
  5765.     -lkrb5 -lcom_err -lk5crypto -lcrypt -lresolv -lpam -ldl -lz"
  5766.  
  5767. linuxnotcp:
  5768.     $(MAKE) linux KTARGET=$${KTARGET:-$(@)} "KFLAGS = -DNONET $(KFLAGS)"
  5769.  
  5770. # "make linuxnotcp" with lcc (see http://www.cs.princeton.edu/software/lcc)
  5771. # lcc does not understand various gcc extensions:
  5772. #  "__inline__" -- can be eliminated by adding "-D__inline__="
  5773. #  "__asm__ and "long long" -- in header files, should be surrounded by
  5774. #                              "#ifndef(__STRICT_ANSI__)"/"#endif"
  5775. #  however, TCP requires some __asm__ functions, so cannot be compiled
  5776. linuxnotcp-lcc:
  5777.     @echo 'Making C-Kermit $(CKVER) for Linux with lcc ...'
  5778.     @echo 'Read comments in makefile for additional information.'
  5779.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC = lcc" "CC2 = lcc" \
  5780.     "CFLAGS = -DLINUX -DPOSIX -DCK_CURSES -DCK_POSIX_SIG \
  5781.     -UTCPSOCKET -DLINUXFSSTND -DNOLEARN $(KFLAGS)" \
  5782.     "LNKFLAGS = $(LNKFLAGS)" "LIBS = -lcurses -ltermcap"
  5783.  
  5784. # Linux 0.99.14 thru 1.0 with gcc, dynamic libraries, curses, TCP/IP.
  5785. # For Linux 1.2 or later, use "make linux" (above).
  5786. #
  5787. # -DLINUXFSSTND (Linux File System Standard) gives UUCP lockfile /var/lock with
  5788. # string pid.  Remove this and get /usr/spool/uucp with int pid, which was used
  5789. # in early Linux versions.
  5790. #
  5791. # If you get compiler errors regarding <linux/serial.h>, add -DNOHISPEED.
  5792. #
  5793. # -DCK_POSIX_SIG (POSIX signal handling) is good for Linux releases back to at
  5794. # least 0.99.14; if it causes trouble for you, just remove it.
  5795. #
  5796. # -DCK_CURSES: Here we link with the regular curses library.  But you should
  5797. # be using ncurses.  Internally, the ckuusx.c module includes <curses.h>, but
  5798. # this really should be <ncurses.h>.  Thus if you have the new curses
  5799. # material, you should either install it with the standard names, or else
  5800. # create symbolic links from the standard names to the new ones.  If you get
  5801. # compile-time errors complaining about data definitions in termcap.h, it
  5802. # means you have new kernel material mixed with older libc header files.  To
  5803. # fix, add "#include <termios.h>" to the <termcap.h> file.  Or if all this is
  5804. # too confusing, create a new makefile entry based on this one, but with
  5805. # -DCK_CURSES removed from CFLAGS and the entire LIBS= clause removed.
  5806. #
  5807. # But wait, there's more.  On most Linux systems, -ltermcap must be included
  5808. # in LIBS.  But on others, the linker complains that libtermcap can't be
  5809. # found.  In that case, try removing -ltermcap from LIBS=.
  5810. #
  5811. # But wait, there's more.  The format of the PID string in the UUCP lockfile
  5812. # changed between Linux FSSTND 1.0 and 1.2.  In the earlier standard, it had
  5813. # leading zeros; in the second, it has leading spaces.  By default this entry
  5814. # uses the newer standard.  To force the older one, add -DFSSTND10.
  5815. #
  5816. # "The nice thing about the Linux standard is there are so many to choose from"
  5817. #
  5818. # NOTE: Remove -DBIGBUFOK for small-memory or limited-resource systems.
  5819. linux10:
  5820.     @echo 'Making C-Kermit $(CKVER) for Linux 1.0 or earlier...'
  5821.     @echo 'IMPORTANT: Read the comments in the linux section of the'
  5822.     @echo 'makefile if you get compilation or link errors.'
  5823.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5824.     "CFLAGS = -O -DPOSIX -DCK_CURSES -DCK_POSIX_SIG -DLINUX \
  5825.     -DTCPSOCKET -DLINUXFSSTND -DOLINUXHISPEED -DNOLEARN $(KFLAGS)" \
  5826.     "LNKFLAGS = $(LNKFLAGS)" "LIBS = -lcurses -ltermcap"
  5827.  
  5828. #This version was used for Linux prior to C-Kermit 6.0.192.
  5829. #Now the "Linux File System Standard" is considered standard, ditto TCP/IP.
  5830. linuxold:
  5831.     @echo 'Making C-Kermit $(CKVER) for Linux...'
  5832.     @echo 'For FSSTND-recommended UUCP lockfiles, use:'
  5833.     @echo '  make linux "KFLAGS=-DLINUXFSSTND".'
  5834.     @echo 'Read comments in makefile for additional options.'
  5835.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5836.     "CFLAGS = -O -DLINUX -DPOSIX -DCK_CURSES -DCK_POSIX_SIG -DNOLEARN \
  5837.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" "LIBS = -lcurses -ltermcap"
  5838.  
  5839. # LynxOS 2.2 with GCC compiler, TCP/IP and fullscreen display.
  5840. # Probably also works with Lynx 2.1, and maybe even Lynx 2.0.
  5841. # -X means use termios serial drivers rather than BSD4.3-style sgtty drivers.
  5842. # If you have trouble with this, try "make bsd KFLAGS=-DNOFDZERO".
  5843. lynx:
  5844.     @echo 'Making C-Kermit $(CKVER) for LynxOS 2.2 with TCP/IP'
  5845.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5846.     "CFLAGS= -O -DPOSIX -DDIRENT -DSETREUID -DCK_CURSES -DTCPSOCKET \
  5847.     -DCK_ANSIC -DLYNXOS -DNOLEARN" "LNKFLAGS = -X" "LIBS = -lcurses -lbsd"
  5848.  
  5849. lynx22:
  5850.     $(MAKE) lynx KTARGET=$${KTARGET:-$(@)} "KFLAGS=$(KFLAGS)"
  5851.  
  5852. # LynxOS 2.1 with GCC compiler 1.40 and TCP/IP.
  5853. lynx21:
  5854.     @echo 'Making C-Kermit $(CKVER) for LynxOS 2.1 with TCP/IP'
  5855.     $(MAKE) kermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5856.     "CFLAGS= -O -DSETREUID -DTCPSOCKET -DCK_ANSIC -DBSD4 -DLYNXOS" \
  5857.     "LIBS = -lbsd"
  5858.  
  5859. #SCO Xenix 2.2.1 for IBM PC, XT, PS2/30, or other 8088 or 8086 machine
  5860. #Should this not work, try some of the tricks from sco286.
  5861. #NOTE: -DRENAME is omitted for early SCO Xenix releases because it didn't
  5862. #exist, or its semantics were different from the later POSIX-compliant
  5863. #version of rename().
  5864. sco86:
  5865.     @echo 'Making C-Kermit $(CKVER) for SCO Xenix/86...'
  5866.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  5867.     "CFLAGS= -DXENIX -DNOFILEH -DNOIKSD -DNOUNICODE -DNOLEARN \
  5868.     $(KFLAGS) -Dunix -F 3000 -i -M0me" \
  5869.     "LNKFLAGS = -F 3000 -i -s -M0me" "LIBS = -lx"
  5870.  
  5871. #SCO Xenix/286 2.2.1, e.g. for IBM PC/AT, PS/2 Model 50, etc.
  5872. #Reportedly, this "make" can fail simply because of the size of this
  5873. #makefile.  If that happens, use "makeL", or edit out some of the
  5874. #other entries.  No debugging or character-set translation.
  5875. sco286:
  5876.     @echo 'Making C-Kermit $(CKVER) for SCO Xenix/286...'
  5877.     @echo 'If make fails, try using makeL.'
  5878.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  5879.     "CFLAGS= -xenix -s -O -LARGE -DXENIX -DNOFILEH -Dunix -DRDCHK -DNAP \
  5880.     -DNOIKSD -DNODEBUG -DNOTLOG -DNOCSETS -DNOLEARN \
  5881.     $(KFLAGS) -F 3000 -i -M2let16" \
  5882.     "LIBS = -lx" "LNKFLAGS = -xenix -s -O -LARGE -F 3000 -i -M2let16"
  5883.  
  5884. #SCO Xenix/286 2.2.1, e.g. for IBM PC/AT, PS/2 Model 50, etc.
  5885. #As above, but with HDBUUCP (This one might need fixing -- see sco286).
  5886. sco286hdb:
  5887.     @echo 'Making C-Kermit $(CKVER) for SCO Xenix/286 with HDB UUCP...'
  5888.     @echo 'If make fails, try using makeL.'
  5889.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  5890.     "CFLAGS= -s -O -LARGE -DXENIX -DNOFILEH -Dunix -DRDCHK -DNAP \
  5891.     -DHDBUUCP -DNOIKSD -DNOUNICODE -DNOLEARN \
  5892.     $(KFLAGS) -F 3000 -i -M2let32" \
  5893.     "LIBS = -lx" "LNKFLAGS = -s -O -LARGE -F 3000 -i -M2let32"
  5894.  
  5895. #SCO Xenix/386 2.2.2 and 2.2.3
  5896. sco386:
  5897.     @echo 'Making C-Kermit $(CKVER) for SCO Xenix/386 2.2.2...'
  5898.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  5899.     "CFLAGS= -DXENIX -DNOFILEH -DNOIKSD -DNOREDIRECT -DNOLEARN \
  5900.     -Dunix -DRDCHK -DNAP -DNOUNICODE $(KFLAGS) -Otcl -M3e" \
  5901.     "LNKFLAGS = -s" "LIBS = -lx"
  5902.  
  5903. #SCO XENIX/386 2.2.3 with Excelan TCP/IP + curses.
  5904. # NOTE: This one might need some work in C-Kermit 6.0.
  5905. # You might need to include /usr/include/sys/types.h
  5906. # containing "typedef char *caddr_t;".  Then at least it compiles.
  5907. sco386netc:
  5908.     @echo 'Making C-Kermit $(CKVER) for SCO Xenix/386 2.2.3 + Excelan TCP'
  5909.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  5910.     "CFLAGS= -I/usr/include/exos -DXENIX -DCK_CURSES -DNOUNICODE \
  5911.     -Dunix -DRDCHK -DNAP -DTCPSOCKET -DEXCELAN -DNOJC -DNOMKDIR -DNOFILEH \
  5912.     -DNOLEARN -DNOREDIRECT -DNOIKSD -DNO_DNS_SRV $(KFLAGS) -Otcl -M3e" \
  5913.     "LNKFLAGS = -s" "LIBS = -lc -lx -lsocket -lcurses -ltermcap"
  5914.  
  5915. #SCO XENIX/386 2.3.3 with gcc 1.37 or later...
  5916. sco386gcc:
  5917.     @echo 'Making C-Kermit $(CKVER) for SCO Xenix/386 2.3.3, gcc...'
  5918.     @echo 'Add -D_NO_PROTOTYPE if you have trouble with Xenix header files'
  5919.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5920.     "CFLAGS= -O -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP \
  5921.     -DNOJC -DNODEBUG -DNOUNICODE -DNOLEARN $(KFLAGS) \
  5922.     -traditional -fpcc-struct-return -fstrength-reduce \
  5923.     -DM_BITFIELDS -DM_COFF -DM_I386 -DM_I86 -DM_I86SM \
  5924.     -DM_INTERNAT -DM_SDATA -DM_STEXT -DM_SYS3 -DM_SYS5 \
  5925.     -DM_SYSIII -DM_SYSV -DM_WORDSWAP -DM_XENIX -DNOIKSD -DNOREDIRECT \
  5926.     -DPWID_T=int " "LNKFLAGS = -s" "LIBS = -lx"
  5927.  
  5928. #As above, but with curses...
  5929. sco386gccc:
  5930.     @echo 'Making C-Kermit $(CKVER) for SCO Xenix/386 2.3.3, gcc...'
  5931.     @echo 'Add -D_NO_PROTOTYPE if you have trouble with Xenix header files'
  5932.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  5933.     "CFLAGS= -O -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP \
  5934.     -DNOJC -DNODEBUG -DCK_CURSES -DNOUNICODE -DNOLEARN $(KFLAGS) \
  5935.     -traditional -fpcc-struct-return -fstrength-reduce \
  5936.     -DM_BITFIELDS -DM_COFF -DM_I386 -DM_I86 -DM_I86SM -DNOREDIRECT \
  5937.     -DM_INTERNAT -DM_SDATA -DM_STEXT -DM_SYS3 -DM_SYS5 \
  5938.     -DM_SYSIII -DM_SYSV -DM_WORDSWAP -DM_XENIX -DNOIKSD \
  5939.     -DPWID_T=int " "LNKFLAGS = -s" "LIBS = -lx -lcurses -ltermlib"
  5940.  
  5941. #SCO UNIX (and ODT) entries...
  5942. #
  5943. #NOTE: All SCO UNIX entry LIBS should have "-lc_s -lc -lx" IN THAT ORDER (if
  5944. #shared C library is desired), or else "-lc -lx" IN THAT ORDER.  Use shared C
  5945. #libraries to save memory, but then don't expect to run the resulting binary
  5946. #on a different machine.  When using -lc_s, you must also use -lc, because the
  5947. #shared C library does not contain all of libc.a.  And in all cases, -lc must
  5948. #ALWAYS precede -lx.
  5949. #
  5950. #ANOTHER NOTE: -DRENAME is included in all SCO UNIX entries.  Remove it if it
  5951. #causes trouble.  No harm is done by removing it (see ckuins.txt).
  5952. #
  5953. #AND ANOTHER: In theory, it should be possible to run SCO UNIX binaries on
  5954. #SCO Xenix 2.3 and later.  In practice, this might not work because of the
  5955. #libraries, etc.  Also, don't add the -link -z switch (which is supposed to
  5956. #root out references to null pointers) because it makes UNIX binaries core
  5957. #dump when they are run under Xenix.
  5958.  
  5959. #NOTE: -Otcl removed and replaced by -O, since -Otcl produced incorrect code.
  5960. #SCO UNIX/386 3.2.0, 3.2.1, and SCO Xenix 2.3.x
  5961. sco3r2:
  5962.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2.0 or 3.2.1 ...'
  5963.     @echo 'Warning: If make blows up, edit the makefile to join'
  5964.     @echo 'the following three continued lines into one line.'
  5965.     @echo 'Also, remove -DRENAME if _rename unresolved at link time.'
  5966.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  5967.     "CFLAGS= -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP -DNOLEARN \
  5968.     -DRENAME -DNOIKSD -DNOJC $(KFLAGS) -O" \
  5969.     "LNKFLAGS = -s" "LIBS = -lc -lx"
  5970.  
  5971. #SCO UNIX/386 3.2.0 and SCO Xenix 2.3.x with Excelan TCP/IP support.
  5972. #In case of compilation or runtime problems, try adding
  5973. #"-DUID_T=int -DGID_T=int" to the CFLAGS.  If that doesn't work, try
  5974. #"-DUID_T=uid_t -DGID_T=gid_t".
  5975. sco3r2net:
  5976.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 / Excelan...'
  5977.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  5978.     "CFLAGS= -I/usr/include/exos -DXENIX -DSVR3 -DNOFILEH -DNOLEARN \
  5979.     -DHDBUUCP -DRDCHK -DNAP -DRENAME -DTCPSOCKET -DEXCELAN -DNOJC \
  5980.     -DNOIKSD -DNOREDIRECT $(KFLAGS) -O" \
  5981.     "LNKFLAGS = -s" "LIBS = -lc -lx -lsocket"
  5982.  
  5983. #SCO UNIX/386 3.2.0 and SCO Xenix 2.3.x with Excelan TCP/IP support.
  5984. #As above, with curses added.
  5985. sco3r2netc:
  5986.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 / Excelan / curses...'
  5987.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  5988.     "CFLAGS= -I/usr/include/exos -DXENIX -DSVR3 -DNOFILEH -DNOLEARN \
  5989.     -DHDBUUCP -DRDCHK -DNAP -DTCPSOCKET -DEXCELAN -DNOJC $(KFLAGS) \
  5990.     -DRENAME -DCK_CURSES -DNOREDIRECT -DNOIKSD -O" "LNKFLAGS = -s" \
  5991.     "LIBS = -lc -lx -lsocket -lcurses -ltermcap"
  5992.  
  5993. #SCO UNIX 3.2.x or SCO Xenix 2.3.x with Racal InterLan TCP/IP support
  5994. # Extra compile flags for other version of Racal InterLan TCP/IP:
  5995. # Xenix286/NP621-286, use -Ml -DPARAMH -DINTERLAN -Di286 -DSYSV
  5996. # Xenix386/NP621-386, use -DPARAMH -DINTERLAN -Di386 -DSYSV
  5997. # ISC386ix/NP622I, use -DSYSV -Di386
  5998. # SCO Unix3.2/NP622S, use -DSYSV -Di386 -DSCO_UNIX
  5999. # AT&T SVR3.2/NP622A, use -DSYSV -Di386 -DATT
  6000. sco3r2netri:
  6001.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 / Racal InterLan...'
  6002.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  6003.     "CFLAGS= -I/usr/include/interlan -DXENIX -DNOFILEH -DHDBUUCP \
  6004.     -DSVR3 -DRDCHK -DNAP -DTCPSOCKET -DPARAMH -DINTERLAN -Di386 -DSYSV \
  6005.     -DRENAME -DNOREDIRECT -DNOIKSD -DNOJC -DNOLEARN $(KFLAGS) -Otcl -M3e" \
  6006.     "LNKFLAGS = -s" "LIBS = -lc -lx -ltcp"
  6007.  
  6008. # SCO XENIX/386 2.3.3 SysV with SCO TCP/IP
  6009. # System V STREAMS TCP developed by Lachman Associates Inc and
  6010. # Convergent Technologies.
  6011. # -DRENAME removed since some reports indicate it is not supported
  6012. # (whereas others say it is.)
  6013. sco3r2lai:
  6014.     @echo 'Making C-Kermit $(CKVER) for SCO XENIX/386 2.3.3 + TCP/IP...'
  6015.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  6016.     "CFLAGS= -DLAI_TCP -Di386 -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK \
  6017.     -DNAP -DTCPSOCKET -DPWID_T=int -DNOREDIRECT -DNOIKSD -DNOLEARN \
  6018.     $(KFLAGS) -Otcl -i -M3e" \
  6019.     "LNKFLAGS = -i -s" "LIBS = -lc -lx -lsocket"
  6020.  
  6021. sco3r2laic:
  6022.     @echo 'Making C-Kermit $(CKVER) for SCO XENIX/386 2.3.3 + TCP/IP...'
  6023.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  6024.     "CFLAGS= -DLAI_TCP -Di386 -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK \
  6025.     -DNAP -DTCPSOCKET -DCK_ANSIC -DCK_CURSES -DM_TERMINFO -DNOLEARN \
  6026.     -DPWID_T=int -DNOREDIRECT -DNOIKSD $(KFLAGS) -Otcl -i -M3e" \
  6027.     "LNKFLAGS = -i -s" "LIBS = -ltinfo -lc -lx -lsocket"
  6028.  
  6029. #SCO UNIX/386 3.2v2 (POSIX job control), shared libraries.
  6030. sco3r22:
  6031.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v2 ...'
  6032.     make wermit KTARGET=$${KTARGET:-$(@)} \
  6033.     "CFLAGS= -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNOLEARN \
  6034.     -DNAP -DRENAME -DPID_T=pid_t -DPWID_T=int -DDIRENT -DNOIKSD \
  6035.     -DNOREDIRECT $(KFLAGS) -O" \
  6036.     "LNKFLAGS = -s" "LIBS = -lc_s -lc -lx"
  6037.  
  6038. #SCO UNIX/386 3.2v2, POSIX job control, fullscreen file transfer display,
  6039. #dynamic memory allocation, shared C library
  6040. sco3r22c:
  6041.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v2 ...'
  6042.     @echo 'Warning: If make blows up, edit the makefile to join'
  6043.     @echo 'the following four continued lines into one line.'
  6044.     make wermit KTARGET=$${KTARGET:-$(@)} \
  6045.     "CFLAGS= -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP -DNOLEARN \
  6046.     -DCK_CURSES -DDIRENT -DRENAME -DNOREDIRECT -DNOIKSD \
  6047.     -DPID_T=pid_t -DPWID_T=int $(KFLAGS) -O" \
  6048.     "LNKFLAGS = -s" "LIBS = -lcurses -lc_s -lc -lx"
  6049.  
  6050. #SCO UNIX/386 3.2v2 with gcc 1.40 or later (POSIX job control)
  6051. sco3r22gcc:
  6052.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v2, gcc'
  6053.     @echo 'Warning: If make blows up, edit the makefile to join'
  6054.     @echo 'the following seven continued lines into one line.'
  6055.     make wermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" \
  6056.     "CFLAGS= -O -DPOSIX -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP \
  6057.     -DNOLEARN -DRENAME -traditional -fpcc-struct-return -fstrength-reduce \
  6058.     -DM_BITFIELDS -DM_COFF -DM_I386 -DM_I86 -DM_I86SM \
  6059.     -DM_INTERNAT -DM_SDATA -DM_STEXT -DM_SYS3 -DM_SYS5 \
  6060.     -DM_SYSIII -DM_SYSV -DM_UNIX -DM_WORDSWAP -DM_XENIX -Dunix \
  6061.     -DPID_T=pid_t -DPWID_T=int -DNOREDIRECT -DNOIKSD $(KFLAGS) " \
  6062.     "LNKFLAGS = -s" "LIBS = -lc_s -lc -lx"
  6063.  
  6064. #SCO UNIX/386 3.2v2 (ODT 1.1) (POSIX job control) with SCO TCP/IP, shared libs
  6065. #Requires SCO TCP/IP or ODT development system for telnet.h, etc.
  6066. sco3r22net:
  6067.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2.2 + TCP/IP...'
  6068.     @echo 'Warning: If make blows up, edit the makefile to join'
  6069.     @echo 'the following three continued lines into one line.'
  6070.     make xermit KTARGET=$${KTARGET:-$(@)} \
  6071.     "CFLAGS= -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP -DTCPSOCKET \
  6072.     -DRENAME -DPID_T=pid_t -DPWID_T=int -DDIRENT -DNOREDIRECT -DNOIKSD \
  6073.     $(KFLAGS) -O" "LNKFLAGS = -s" "LIBS = -lsocket -lc_s -lc -lx"
  6074.  
  6075. #As above, but with curses for fullscreen file transfer display.
  6076. #Requires SCO TCP/IP or ODT development system for telnet.h, etc.
  6077. sco3r22netc:
  6078.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v2 + TCP/IP...'
  6079.     @echo 'Warning: If make blows up, edit the makefile to join'
  6080.     @echo 'the following three continued lines into one line.'
  6081.     make xermit KTARGET=$${KTARGET:-$(@)} "CFLAGS= \
  6082.     -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP -DTCPSOCKET -DRENAME \
  6083.     -DCK_CURSES -DDIRENT -DNOIKSD -DNOREDIRECT \
  6084.     -DPID_T=pid_t -DPWID_T=int -O $(KFLAGS)" \
  6085.     "LNKFLAGS = -s" "LIBS = -lcurses -lsocket -lc_s -lc -lx"
  6086.  
  6087. #SCO XENIX 2.3.4, no curses, no TCP/IP, no IKSD.
  6088. #This one built and tested in C-Kermit 7.0.
  6089. #lcfp is C library floating-point support.
  6090. #Use -M3 to generate 32-bit i386 code instead of 16-bit segmented i286 code.
  6091. #Use -Me to enable MS nonstandard keywords in system headers.
  6092. #Use -W2 or W3 to increase the warning level.
  6093. sco234:
  6094.     @echo 'Making C-Kermit $(CKVER) for SCO XENIX 2.3.4...'
  6095.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  6096.     "CFLAGS= -DSCO32 -DXENIX -DNOFILEH -DHDBUUCP -DRDCHK -DNOLEARN \
  6097.     -DNAP -DNOJC -DNOCOTFMC -DNOIKSD -DNOREDIRECT -DNOTNCODE -DNOGFTIMER \
  6098.     -DNOTIMEVAL -DNOTIMEZONE -DNOSYMLINK -DSCO234 -DDCLGETCWD $(KFLAGS) \
  6099.     -Otcl" "LNKFLAGS = -s" "LIBS = -lcfp -lc -lx"
  6100.  
  6101. #SCO XENIX 2.3.4, no TCP/IP, no IKSD, but with curses.
  6102. # Built and tested in C-Kermit 7.0.
  6103. # Note: XENIX 2.3.4 does not have newterm() so no point in adding -DCK_NEWTERM.
  6104. sco234c:
  6105.     @echo 'Making C-Kermit $(CKVER) for SCO XENIX 2.3.4 + curses...'
  6106.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  6107.     "CFLAGS= -DSCO32 -DXENIX -DNOFILEH -DHDBUUCP -DRDCHK -DNOLEARN \
  6108.     -DNAP -DNOJC -DNOCOTFMC -DNOIKSD -DNOREDIRECT -DNOTNCODE -DNOGFTIMER \
  6109.     -DNOTIMEVAL -DNOTIMEZONE -DNOSYMLINK -DCK_CURSES -DSCO234 \
  6110.     -DDCLGETCWD $(KFLAGS) -Otcl" \
  6111.     "LNKFLAGS = -s" "LIBS = -lcfp -lc -ltinfo -lx"
  6112.  
  6113. #SCO XENIX 2.3.4 with SCO TCP/IP and curses, no IKSD.
  6114. # Built and tested in C-Kermit 7.0.  TCP/IP works and curses works.
  6115. # Previous versions of this target included -lmalloc, but this caused "error:
  6116. # " _calloc : symbol defined more than once" at link time so I removed it.
  6117. # Results are likely to vary depending on exactly which version of the SDK
  6118. # and TCP/IP SDK you have.
  6119. sco234netc:
  6120.     @echo 'Making C-Kermit $(CKVER) for SCO XENIX 2.3.4 + TCP + curses...'
  6121.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  6122.     "CFLAGS= -DSCO32 -DXENIX -DNOFILEH -DHDBUUCP -DRDCHK -DNOLEARN \
  6123.     -DNAP -DNOJC -DNOCOTFMC -DNOIKSD -DNOREDIRECT -DNOTNCODE -DNOGFTIMER \
  6124.     -DNOTIMEVAL -DNOTIMEZONE -DNOSYMLINK -DCK_CURSES -DSCO234 \
  6125.     -DDCLGETCWD -DTCPSOCKET -DNO_DNS_SRV $(KFLAGS) -Otcl" \
  6126.     "LNKFLAGS = -s" "LIBS = -ltinfo -lsocket -lcfp -lc -lx"
  6127.  
  6128. # SCO 3.2v4.x targets...
  6129.  
  6130. #  NOTE: Add -DDCLPOPEN and/or -DDCLFDOPEN to anySCO 3.2v4.x non-gcc entries
  6131. #  that complain about fdopen() or popen() at compile time.  They compile OK
  6132. #  without these flags as of July 1999.  However, the gcc entries seem to
  6133. #  need them, at least for gcc 2.7.2.2.
  6134.  
  6135. #  NOTE 2: To enable IKSD support, add:
  6136. #  -DCK_LOGIN -DNOGETUSERSHELL -DNOINITGROUPS
  6137. #  to CFLAGS (not tested).
  6138.  
  6139. #SCO UNIX/386 3.2v4 (POSIX job control), curses, ANSI C compilation,
  6140. #<dirent.h> (EAFS) file system.  Remove -lmalloc if it causes trouble.  It was
  6141. #put there to avoid core dumps caused by regular libc.a malloc.  Add -J to make
  6142. #all chars unsigned.  This version uses select() for CONNECT and also has
  6143. #high-precision timers and so might not work on non-TCP systems, in which case
  6144. #sco32v4ns should be used instead.
  6145. # If you get _ftime redefinition_ complaint, try adding -DODT30 to CFLAGS.
  6146. sco32v4:
  6147.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v4...'
  6148.     make xermit KTARGET=$${KTARGET:-$(@)} \
  6149.     "CFLAGS= -DCK_SCO32V4 -DNOFILEH -DHDBUUCP -DCK_CURSES -DM_TERMINFO \
  6150.     -DNOANSI -DSELECT -DNOIKSD -DDCLGETCWD -NOLSTAT \
  6151.     -DNOLINKBITS -DDCLGETCWD $(KFLAGS) -O" \
  6152.     "LNKFLAGS = -s" "LIBS = -lcurses -lmalloc -lsocket -lc_s -lc -lx"
  6153.  
  6154. # As above, but with no dependence on sockets library or select().
  6155. sco32v4ns:
  6156.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v4...'
  6157.     @echo 'No select() and no sockets library.'
  6158.     make wermit KTARGET=$${KTARGET:-$(@)} \
  6159.     "CFLAGS= -DCK_SCO32V4 -DNOFILEH -DHDBUUCP -DCK_CURSES -DM_TERMINFO \
  6160.     -DNOANSI -DNOIKSD -DNOGFTIMER -DCK_POLL -DNAP -DDCLGETCWD -DNOLSTAT \
  6161.     -DNOLINKBITS -DDCLGETCWD -DNOLEARN -O $(KFLAGS)" \
  6162.     "LNKFLAGS = -s" "LIBS = -lcurses -lmalloc -lc_s -lc -lx"
  6163.  
  6164. #SCO UNIX/386 3.2v4 (POSIX job control), TCP/IP, curses, ANSI C compilation,
  6165. #<dirent.h> (EAFS) file system.  With DIRENT, -lc must come before -lx.
  6166. #Reportedly it's OK to add -DCK_REDIR and -DCK_WREFRESH, and to remove -lc_s.
  6167. #Requires SCO TCP/IP development system or ODT for telnet.h, etc.
  6168. #See sco32v4 above for additional comments.
  6169. #NOTE: No more room for -Dxxx -- 25 seems to be the limit.  Move some to
  6170. #ckcdeb.h or somewhere...
  6171. sco32v4net:
  6172.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v4...'
  6173.     @echo 'If you get _ftime redefinition_ complaint,'
  6174.     @echo 'use make sco-odt30.'
  6175.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  6176.     "CFLAGS= -DNOFILEH -DHDBUUCP -DTCPSOCKET -DCK_ANSIC -DCK_CURSES \
  6177.     -DNAP -DCK_WREFRESH -DNOLINKBITS -D_IBCS2 -DSELECT -DNOLSTAT \
  6178.     -DDCLGETCWD -DCK_SCO32V4 -DNOIKSD -O \
  6179.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS) -s" \
  6180.     "LIBS = $(LIBS) -lcurses -lsocket -lmalloc -lsocket -lc_s -lc -lx"
  6181.  
  6182. #SCO UNIX/386 3.2v4 with gcc 1.40 or later, POSIX job control.
  6183. #Also see comments in sco32r4 entry.
  6184. sco32v4gcc:
  6185.     make xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" \
  6186.     "CFLAGS= -O -DNOFILEH -DHDBUUCP -DNOANSI -DCK_CURSES -DM_TERMINFO \
  6187.     -traditional -fpcc-struct-return -fstrength-reduce -funsigned-char \
  6188.     -D_KR -D_NO_PROTOTYPE -D_SVID -DNOIKSD -DCK_SCO32V4 -DNOLINKBITS \
  6189.     -DM_BITFIELDS -DM_COFF -DM_I386 -DM_I86 -DM_I86SM -DSELECT -DNOLSTAT \
  6190.     -DM_INTERNAT -DM_SDATA -DM_STEXT -DM_SYS3 -DM_SYS5 -DDCLGETCWD \
  6191.     -DM_SYSIII -DM_SYSV -DM_UNIX -DM_WORDSWAP -DM_XENIX -Dunix \
  6192.     -DDCLPOPEN -DDCLFDOPEN $(KFLAGS) " \
  6193.     "LNKFLAGS = -s" "LIBS = -lcurses -lsocket -lc_s -lc -lx"
  6194.  
  6195. #SCO UNIX/386 3.2v4 (POSIX job control), TCP/IP, curses, ANSI C compilation,
  6196. #Requires SCO TCP/IP or ODT development system for telnet.h, etc.
  6197. #<dirent.h> (EAFS) file system.  With DIRENT, -lc must come before -lx.
  6198. #gcc 1.40 or later.  Also see comments in sco32r4 entry.
  6199. sco32v4netgcc:
  6200.     make xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2=gcc" \
  6201.     "CFLAGS= -O2 -DNOFILEH -DHDBUUCP -DSELECT -DNOLSTAT \
  6202.     -DNOANSI -DTCPSOCKET -DCK_CURSES -DM_TERMINFO \
  6203.     -D_KR -D_NO_PROTOTYPE -D_SVID -DNOIKSD -DCK_SCO32V4 -DNOLINKBITS \
  6204.     -DM_BITFIELDS -DM_COFF -DM_I386 -DM_I86 -DM_I86SM -DDCLGETCWD \
  6205.     -DM_INTERNAT -DM_SDATA -DM_STEXT -DM_SYS3 -DM_SYS5 \
  6206.     -DM_SYSIII -DM_SYSV -DM_UNIX -DM_WORDSWAP -DM_XENIX -Dunix \
  6207.     -DDCLPOPEN -DDCLFDOPEN $(KFLAGS)" \
  6208.     "LNKFLAGS = -s" "LIBS = -lcurses -lsocket -lc_s -lc -lx"
  6209.  
  6210. #As above but with bgcc BOUNDS CHECKING (for developers only).  -lcheck has
  6211. #bounds-checking replacements for malloc, memcpy, bcopy, etc, so must come
  6212. #before -lsocket and -lc.
  6213. sco32v4netbgcc:
  6214.     make xermit KTARGET=$${KTARGET:-$(@)} \
  6215.     "CC = bgcc -pipe -m386" "CC2=bgcc -pipe -m386" \
  6216.     "CFLAGS= -O1 -g -DNOFILEH -DHDBUUCP -DSELECT \
  6217.     -DNOANSI -DTCPSOCKET -DCK_CURSES -DM_TERMINFO \
  6218.     -D_KR -D_NO_PROTOTYPE -D_SVID -DNOIKSD -DCK_SCO32V4 -DNOLSTAT \
  6219.     -DM_BITFIELDS -DM_COFF -DM_I386 -DM_I86 -DM_I86SM -DNOLINKBITS \
  6220.     -DM_INTERNAT -DM_SDATA -DM_STEXT -DM_SYS3 -DM_SYS5 -DDCLGETCWD \
  6221.     -DM_SYSIII -DM_SYSV -DM_UNIX -DM_WORDSWAP -DM_XENIX -Dunix \
  6222.     -DDCLPOPEN -DDCLFDOPEN $(KFLAGS) " \
  6223.     "LNKFLAGS = -g" "LIBS = -lcurses -lcheck -lsocket -lx"
  6224.  
  6225. sco32v4netnd:
  6226.     @echo sco32v4net with no debug
  6227.     $(MAKE) "MAKE=$(MAKE)" sco32v4net KTARGET=$${KTARGET:-$(@)} \
  6228.     "KFLAGS=$(KFLAGS) -DNODEBUG -DNOTLOG" "LIBS=$(LIBS)"
  6229.  
  6230. sco3r2netnd:
  6231.     @echo sco32v4netnd built for SCO XENIX 2.3 under SCO UNIX...
  6232.     @echo   requires copying /lib/386/Slibc.a to /lib/386/Slibc_s.a and
  6233.     @echo   getting /lib/386/Slibsocket.a from a XENIX devkit.
  6234.     @echo   WARNING: poll/CK_POLL supported only on XENIX 2.3.4
  6235.     echo    For earlier XENIX systems, replace CK_POLL with RDCHK.
  6236.     $(MAKE) "MAKE=$(MAKE)" sco32v4netnd KTARGET=$${KTARGET:-$(@)} \
  6237.     "KFLAGS=$(KFLAGS) -x2.3 -DNORENAME -DNOSYMLINK" \
  6238.     "LNKFLAGS = $(LNKFLAGS) -x2.3" \
  6239.     "LIBS=-ldir -lcfp $(LIBS)"
  6240.  
  6241. #SCO UNIX/386 3.2v4 (POSIX job control), TCP/IP, curses, ANSI C compilation,
  6242. #<dirent.h> (EAFS) file system.  With DIRENT, -lc must come before -lx.
  6243. #Reportedly it's OK to add -DCK_REDIR and -DCK_WREFRESH, and to remove -lc_s.
  6244. #Requires SCO TCP/IP development system or ODT for telnet.h, etc.
  6245. #See sco32v4 above for additional comments.
  6246. # Note: "xermit" means use the select() version of the CONNECT module.
  6247. sco32v4netx:
  6248.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v4...'
  6249.     @echo 'If you get _ftime redefinition_ complaint,'
  6250.     @echo 'use make sco-odt30.'
  6251.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  6252.     "CFLAGS= -DNOFILEH -DHDBUUCP -DTCPSOCKET -DCK_ANSIC -DCK_CURSES -DNAP \
  6253.     -DCK_WREFRESH -DNOLINKBITS -D_IBCS2 -DSELECT -DDCLGETCWD \
  6254.     -DCK_SCO32V4 -DNOIKSD -DNOLSTAT -O $(KFLAGS)" \
  6255.     "LNKFLAGS = $(LNKFLAGS) -s" \
  6256.     "LIBS = $(LIBS) -lcurses -lsocket -lmalloc -lsocket -lc_s -lc -lx"
  6257.  
  6258. sco32v4netndx:
  6259.     @echo sco32v4netx with no debug
  6260.     $(MAKE) "MAKE=$(MAKE)" sco32v4netx KTARGET=$${KTARGET:-$(@)} \
  6261.     "KFLAGS=$(KFLAGS) -DNODEBUG -DNOTLOG" "LIBS=$(LIBS)"
  6262.  
  6263. sco3r2netndx:
  6264.     @echo sco32v4netndx built for SCO XENIX 2.3 under SCO UNIX...
  6265.     @echo   requires copying /lib/386/Slibc.a to /lib/386/Slibc_s.a and
  6266.     @echo   getting /lib/386/Slibsocket.a from a XENIX devkit.
  6267.     @echo   WARNING: poll/CK_POLL supported only on XENIX 2.3.4
  6268.     echo    For earlier XENIX systems, replace CK_POLL with RDCHK.
  6269.     $(MAKE) "MAKE=$(MAKE)" sco32v4netndx KTARGET=$${KTARGET:-$(@)} \
  6270.     "KFLAGS=$(KFLAGS) -x2.3 -DNORENAME -DNOSYMLINK" \
  6271.     "LNKFLAGS = $(LNKFLAGS) -x2.3" \
  6272.     "LIBS=-ldir -lcfp $(LIBS)"
  6273.  
  6274. sco-odt30:
  6275.     @echo SCO ODT 3.0
  6276.     $(MAKE) "MAKE=$(MAKE)" sco32v4net KTARGET=$${KTARGET:-$(@)} \
  6277.     "KFLAGS=$(KFLAGS) -DODT30"
  6278.  
  6279. #SCO OpenServer 5.0 (SCO UNIX 3.2v5.0) with SCO development tools, no TCP/IP.
  6280. #SCO OSR5 is much more like standard System V than previous SCO releases.
  6281. #The SCO development tools include TCP/IP, so this target is only for creating
  6282. #artificially limited versions of kermit required by site policy rather than
  6283. #the operating system.  NOSYSLOG is included because syslog() requires the
  6284. #sockets library.
  6285. sco32v500:
  6286.     @echo Making C-Kermit $(CKVER) for SCO OpenServer Release 5...
  6287.     $(MAKE) xermit CC=$(CC) CC2=$(CC2) KTARGET=$${KTARGET:-$(@)} \
  6288.     "CFLAGS= -O -DDIRENT -DHDBUUCP -DSVR4 -DCK_SCOV5 -DCK_RTSCTS \
  6289.     -DCK_CURSES -DCK_WREFRESH -DCK_NEWTERM -DSELECT -DSELECT_H \
  6290.     -DNOGETUSERSHELL -DNOLSTAT -DNOLINKBITS -DNOSYSLOG \
  6291.     $(KFLAGS)" \
  6292.     "LIBS=-lcurses $(LIBS)" "LNKFLAGS=$(LNKFLAGS)"
  6293.  
  6294. sco32v5:
  6295.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=$(KFLAGS)" sco32v500
  6296.  
  6297.  
  6298. #SCO OpenServer 5.0 with networking, SCO development tools.
  6299. #Networking libraries are now provided with the OS.
  6300. sco32v500net:
  6301.     @echo Making C-Kermit $(CKVER) for SCO OpenServer Release 5...
  6302.     $(MAKE) xermit CC=$(CC) CC2=$(CC2) KTARGET=$${KTARGET:-$(@)} \
  6303.     "CFLAGS= -O -DDIRENT -DHDBUUCP -DSVR4 -DCK_SCOV5 -DCK_RTSCTS \
  6304.     -DCK_CURSES -DCK_WREFRESH -DCK_NEWTERM -DSELECT -DSELECT_H \
  6305.     -DNOGETUSERSHELL -DNOLSTAT -DNOLINKBITS -DTCPSOCKET \
  6306.     -DNO_DNS_SRV $(KFLAGS)" \
  6307.     "LIBS=-lcurses -lsocket $(LIBS)" "LNKFLAGS=$(LNKFLAGS)"
  6308.  
  6309. sco32v5net:
  6310.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=$(KFLAGS)" sco32v500net
  6311.  
  6312. #SCO OpenServer 5.0 with networking and OpenSSL, SCO development tools.
  6313. #Networking libraries are now provided with the OS.
  6314. sco32v500net+ssl:
  6315.     @echo Making C-Kermit $(CKVER) for SCO OSR5 with OpenSSL...
  6316.     $(MAKE) krbmit CC=$(CC) CC2=$(CC2) KTARGET=$${KTARGET:-$(@)} \
  6317.     "CFLAGS= -O -DDIRENT -DHDBUUCP -DSVR4 -DCK_SCOV5 -DCK_RTSCTS \
  6318.     -DCK_CURSES -DCK_WREFRESH -DCK_NEWTERM -DSELECT -DSELECT_H \
  6319.     -DNOGETUSERSHELL -DNOLSTAT -DNOLINKBITS -DTCPSOCKET \
  6320.     -DNO_DNS_SRV -DCK_AUTHENTICATION -DCK_SSL -DCK_TRIGGER \
  6321.     $(SSLINC) $(SSLLIB) $(KFLAGS)" \
  6322.     "LIBS=$(SSLLIB) -lcurses -lsocket -lssl -lcrypto $(LIBS)" \
  6323.     "LNKFLAGS=$(LNKFLAGS)"
  6324.  
  6325. #SCO OpenServer 5.0 with gcc, no networking.
  6326. #Note: NOSYSLOG required for non-net entries because it requires <socket.h>
  6327. sco32v500gcc:
  6328.     @echo Using gcc...
  6329.     $(MAKE) "MAKE=$(MAKE)" sco32v500CC=gcc CC2=gcc \
  6330.     KTARGET=$${KTARGET:-$(@)} "KFLAGS= $(KFLAGS)"
  6331.  
  6332. #SCO OpenServer 5.0 with networking, gcc.
  6333. sco32v500netgcc:
  6334.     @echo TCP/IP networking added - using gcc...
  6335.     $(MAKE) "MAKE=$(MAKE)" sco32v500net CC=gcc CC2=gcc \
  6336.     KTARGET=$${KTARGET:-$(@)} "KFLAGS=$(KFLAGS)"
  6337.  
  6338. #SCO OpenServer 5.0 with networking, gcc, elf.
  6339. sco32v500netgccelf:
  6340.     @echo TCP/IP networking added - using gcc, dynamic elf library
  6341.     $(MAKE) "MAKE=$(MAKE)" sco32v500net "CC=gcc" "CC2=gcc" \
  6342.     KTARGET=$${KTARGET:-$(@)} "KFLAGS=-O3 -belf" "LNKFLAGS=-belf"
  6343.  
  6344. sco32v502:
  6345.     $(MAKE) "MAKE=$(MAKE)" sco32v500 KTARGET=$${KTARGET:-$(@)} \
  6346.     "KFLAGS=-DSCO_OSR502 $(KFLAGS)"
  6347.  
  6348. #SCO OpenServer 5.0.2 with networking, SCO development tools.
  6349. sco32v502net:
  6350.     @echo TCP/IP networking added...
  6351.     $(MAKE) "MAKE=$(MAKE)" sco32v500net KTARGET=$${KTARGET:-$(@)} \
  6352.     "KFLAGS=-b elf -DSCO_OSR502 $(KFLAGS)"
  6353.  
  6354. #SCO OpenServer 5.0.4 (SCO UNIX 3.2v5.0.4) with SCO development tools.
  6355. #Like 5.0, but adds high serial speeds.  First POSIX-based SCO version.
  6356. #Note: the -O flag is deliberately omitted for /bin/cc (= /usr/ccs/bin/cc).
  6357. sco32v504:
  6358.     @echo Making C-Kermit $(CKVER) for SCO OpenServer Release 5.0.4...
  6359.     $(MAKE) xermit CC=$(CC) CC2=$(CC2) KTARGET=$${KTARGET:-$(@)} \
  6360.     "CFLAGS= -DDIRENT -DHDBUUCP -DSVR4 -DCK_SCOV5 -DCK_RTSCTS \
  6361.     -DSCO_OSR504 -b elf -DPOSIX \
  6362.     -DCK_CURSES -DCK_WREFRESH -DCK_NEWTERM -DSELECT -DSELECT_H \
  6363.     -DNOGETUSERSHELL -DNOLSTAT -DNOLINKBITS -DNOSYSLOG $(KFLAGS)" \
  6364.     "LIBS=-lcurses $(LIBS)" "LNKFLAGS=$(LNKFLAGS)"
  6365.  
  6366. #SCO OpenServer 5.0.4 with gcc, no networking.
  6367. sco32v504gcc:
  6368.     @echo Using gcc...
  6369.     $(MAKE) "MAKE=$(MAKE)" sco32v504 "CC=gcc" "CC2=gcc" \
  6370.     KTARGET=$${KTARGET:-$(@)} "KFLAGS= $(KFLAGS)"
  6371.  
  6372. #SCO OpenServer 5.0.4 with networking.
  6373. #SCO development tools (/bin/cc = /usr/ccs/bin/cc).
  6374. #Optimization deliberately suppressed.
  6375. sco32v504net:
  6376.     @echo Making C-Kermit $(CKVER) for SCO OpenServer Release 5.0.4...
  6377.     $(MAKE) xermit CC=$(CC) CC2=$(CC2) KTARGET=$${KTARGET:-$(@)} \
  6378.     "CFLAGS= -DDIRENT -DHDBUUCP -DSVR4 -DCK_SCOV5 -DCK_RTSCTS \
  6379.     -DCK_CURSES -DCK_WREFRESH -DCK_NEWTERM -DSELECT -DSELECT_H \
  6380.     -DNOGETUSERSHELL -DNOLSTAT -DNOLINKBITS -DTCPSOCKET \
  6381.     -b elf -DSCO_OSR504 -DPOSIX -DNO_DNS_SRV $(KFLAGS)" \
  6382.     "LIBS=-lcurses -lsocket $(LIBS)" "LNKFLAGS=$(LNKFLAGS)"
  6383.  
  6384. #SCO OpenServer 5.0.4 with networking, gcc.
  6385. sco32v504netgcc:
  6386.     @echo TCP/IP networking added - using gcc...
  6387.     @echo If gcc crashes on ckwart.c then build it by hand:
  6388.     @echo " gcc -o wart -DCK_SCOV5 ckwart.c"
  6389.     $(MAKE) "MAKE=$(MAKE)" sco32v500net "CC=gcc" "CC2=gcc" \
  6390.     KTARGET=$${KTARGET:-$(@)} "KFLAGS=-DSCO_OSR504 -DPOSIX $(KFLAGS)"
  6391.  
  6392. #SCO OpenServer 5.0.4 with networking, gcc, elf.
  6393. sco32v504netgccelf:
  6394.     @echo TCP/IP networking added - using gcc, dynamic elf library
  6395.     $(MAKE) "MAKE=$(MAKE)" sco32v500net "CC=gcc" "CC2=gcc"
  6396.     KTARGET=$${KTARGET:-$(@)} \
  6397.     "KFLAGS=-DSCO_OSR504 -DPOSIX -O3 -belf $(KFLAGS)" \
  6398.     LNKFLAGS="-belf"
  6399.  
  6400. #SCO OpenServer 5.0.5 (SCO UNIX 3.2v5.0.5) with SCO /bin/cc.
  6401. #Like 5.0, but adds high serial speeds.  First POSIX-based SCO version.
  6402. #You might have to add "LIBS=-ltinfo" (some do, some don't).
  6403. sco32v505:
  6404.     $(MAKE) "MAKE=$(MAKE)" sco32v500 KTARGET=$${KTARGET:-$(@)} \
  6405.     "KFLAGS=-DSCO_OSR505 -DNOSHADOW -b elf -DPOSIX $(KFLAGS)"
  6406.  
  6407. #SCO OpenServer 5.0.5 (SCO UNIX 3.2v5.0.5) with SCO UDK.
  6408. #This one can't see the high serial speeds and anything to do with modem
  6409. #signals doesn't work because UKD cc has its own alternative universe of
  6410. #header files.
  6411. sco32v505udk:
  6412.     $(MAKE) "MAKE=$(MAKE)" sco32v500 KTARGET=$${KTARGET:-$(@)} \
  6413.     "KFLAGS=-DSCO_OSR505 -DDCLTIMEVAL -DNOSHADOW -b elf -DPOSIX $(KFLAGS)"
  6414.  
  6415. #SCO OpenServer 5.0.5 with networking, SCO /bin/cc.
  6416. #See comments with sco32v505 targets.
  6417. sco32v505net:
  6418.     @echo TCP/IP networking added...
  6419.     $(MAKE) "MAKE=$(MAKE)" sco32v500net KTARGET=$${KTARGET:-$(@)} \
  6420.     "KFLAGS=-DSCO_OSR505 -DNOSHADOW -b elf -DPOSIX $(KFLAGS)"
  6421.  
  6422. #SCO OpenServer 5.0.5 with networking and OpenSSL, SCO /bin/cc.
  6423. #See comments with sco32v505 targets.
  6424. sco32v505net+ssl:
  6425.     @echo TCP/IP networking and OpenSSL added...
  6426.     $(MAKE) "MAKE=$(MAKE)" sco32v500net+ssl KTARGET=$${KTARGET:-$(@)} \
  6427.     "KFLAGS=-DSCO_OSR505 -DNOSHADOW -b elf -DPOSIX $(KFLAGS) " \
  6428.  
  6429. #SCO OpenServer 5.0.5 with networking, SCO UDK.
  6430. #See comments with above sco32v505 targets.
  6431. sco32v505udknet:
  6432.     @echo TCP/IP networking added...
  6433.     $(MAKE) "MAKE=$(MAKE)" sco32v500net KTARGET=$${KTARGET:-$(@)} \
  6434.     "KFLAGS=-DSCO_OSR505 -DDCLTIMEVAL -DNOSHADOW -b elf -DPOSIX $(KFLAGS)"
  6435.  
  6436. #SCO OpenServer 5.0.5 with gcc, no networking.
  6437. sco32v505gcc:
  6438.     @echo Using gcc...
  6439.     $(MAKE) "MAKE=$(MAKE)" sco32v500 "CC=gcc" "CC2=gcc" \
  6440.     KTARGET=$${KTARGET:-$(@)} \
  6441.     "KFLAGS=-DSCO_OSR505 -DPOSIX -funsigned-char $(KFLAGS)"
  6442.  
  6443. #SCO OpenServer 5.0.5 with gcc, no networking, no shadow passwords.
  6444. sco32v505xgcc:
  6445.     @echo Using gcc...
  6446.     $(MAKE) "MAKE=$(MAKE)" sco32v500 "CC=gcc" "CC2=gcc" \
  6447.     KTARGET=$${KTARGET:-$(@)} \
  6448.     "KFLAGS=-DSCO_OSR505 -DNOSHADOW -DPOSIX -funsigned-char $(KFLAGS)"
  6449.  
  6450. #SCO OpenServer 5.0.5 with networking, gcc.
  6451. sco32v505netgcc:
  6452.     @echo TCP/IP networking added - using gcc...
  6453.     @echo If gcc crashes on ckwart.c then build it by hand:
  6454.     @echo " gcc -o wart -DCK_SCOV5 ckwart.c"
  6455.     $(MAKE) "MAKE=$(MAKE)" sco32v500net "CC=gcc" "CC2=gcc" \
  6456.     KTARGET=$${KTARGET:-$(@)} \
  6457.     "KFLAGS=-DSCO_OSR505 -DNOSHADOW -DPOSIX -funsigned-char $(KFLAGS)"
  6458.  
  6459. #egcs is just like gcc but generates ELF by default.
  6460. #Or you can include -melf (not -belf) to force it.
  6461. sco32v505netegcs:
  6462.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=$(KFLAGS)" sco32v505netgcc \
  6463.     KTARGET=$${KTARGET:-$(@)}
  6464.  
  6465. #SCO OpenServer 5.0.5 with networking, gcc, elf.
  6466. sco32v505netgccelf:
  6467.     @echo TCP/IP networking added - using gcc, dynamic elf library
  6468.     $(MAKE) "MAKE=$(MAKE)" sco32v500net "CC=gcc" "CC2=gcc" \
  6469.     "KFLAGS=-DSCO_OSR505 -DPOSIX -funsigned-char -O3 -belf $(KFLAGS)" \
  6470.     KTARGET=$${KTARGET:-$(@)} LNKFLAGS="-belf"
  6471.  
  6472. #SCO OpenServer 5.0.6 with SCO /bin/cc.
  6473. # Add -DDCLTIMEVAL when building with UDK.
  6474. #Like 5.0.5.   IMPORTANT: Use sco32v506a target for 5.0.6a.
  6475. sco32v506:
  6476.     $(MAKE) "MAKE=$(MAKE)" sco32v500 KTARGET=$${KTARGET:-$(@)} \
  6477.     "KFLAGS=-DSCO_OSR505 -DSCO_OSR506 -b elf -DPOSIX $(KFLAGS)"
  6478.  
  6479. #SCO OpenServer 5.0.6 with networking, SCO /bin/cc.
  6480. # Add -DDCLTIMEVAL when building with UDK.
  6481. # IMPORTANT: Use sco32v506a target for 5.0.6a.
  6482. sco32v506net:
  6483.     @echo TCP/IP networking added...
  6484.     $(MAKE) "MAKE=$(MAKE)" sco32v500net KTARGET=$${KTARGET:-$(@)} \
  6485.     "KFLAGS=-DSCO_OSR505 -DSCO_OSR506 -b elf -DPOSIX $(KFLAGS)"
  6486.  
  6487. #SCO OpenServer 5.0.6a, no networking, SCO development tools.
  6488. #This one has patched sio drivers that, for the first time,
  6489. #actually handle modem signals correctly.
  6490. # Add -DDCLTIMEVAL when building with UDK.
  6491. sco32v506a:
  6492.     $(MAKE) "MAKE=$(MAKE)" sco32v500 KTARGET=$${KTARGET:-$(@)} \
  6493.     "KFLAGS=-DSCO_OSR505 -DSCO_OSR506 -DSCO_OSR506A -DNEEDMDMDEFS \
  6494.     -b elf -DPOSIX $(KFLAGS)"
  6495.  
  6496. #SCO OpenServer 5.0.6 with networking, SCO development tools.
  6497. # Add -DDCLTIMEVAL when building with UDK.
  6498. sco32v506anet:
  6499.     @echo TCP/IP networking added...
  6500.     $(MAKE) "MAKE=$(MAKE)" sco32v500net KTARGET=$${KTARGET:-$(@)} \
  6501.     "KFLAGS=-DSCO_OSR505 -DSCO_OSR506 -DSCO_OSR506A -DNEEDMDMDEFS \
  6502.     -b elf -DPOSIX $(KFLAGS)"
  6503.  
  6504. #Tandy 16/6000 with Xenix 3.0
  6505. #Add more -DNOxxx options to remove features if program won't load.
  6506. #Successful operation is a function of program size, physical memory,
  6507. #available swap space, etc.  The following stripped-down configuration
  6508. #seems to work on most Tandy 6000s.  NOTE: "-+" means allow long variable
  6509. #names, needed for C-Kermit 6.0 because some identifiers are not unique
  6510. #within the first six characters.
  6511. #C-Kermit 7.0 does not build here; "too many defines".
  6512. trs16:
  6513.     @echo 'Making C-Kermit $(CKVER) for Tandy 16/6000, Xenix 3.0...'
  6514.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  6515.     "CFLAGS = -+ -DATTSV -DTRS16 -DNOMKDIR -DDCLPOPEN -DCK_CURSES \
  6516.     -DNODEBUG -DNOTLOG -DNOHELP -DNOSCRIPT -DNOCSETS -DNOIKSD \
  6517.     -DNOREDIRECT -DNOSYSLOG -DNOPUTENV -DNOREALPATH -DNOLEARN \
  6518.     $(KFLAGS) -O" "LIBS= -lcurses -ltermcap" "LNKFLAGS = -+ -n -s"
  6519.  
  6520. #MINIX/2.0 32 Bit version for intel 386+ running the POSIX-compliant MINIX
  6521. # version 2.0 (The definition of fatal avoids a conflict with a symbol by
  6522. # the same name in the curses library.) It is impossible to compile with
  6523. # network support since Minix does not support Berkeley sockets.
  6524. # Note: use chmem liberally on the compiler passes, make, and the final
  6525. # kermit executable. (3 megabytes of memory for each is sufficient.)
  6526. # From Terry McConnell, Syracuse U, and Will Rose.  Will says:
  6527. # The stacks for make and some compiler passes needed to be increased
  6528. # with chmem as follows:
  6529. #   make 1MB
  6530. #   /usr/lib/em_cemcom.ansi 3MB
  6531. #   /usr/lib/em_opt 1MB
  6532. #   /usr/lib/i386/cg 1MB
  6533. #   /usr/lib/i386/as 1MB
  6534. # The compiler temporary directory was set to /usr/tmp via the TMPDIR
  6535. # environment variable; more than 1MB of temporary space was needed.
  6536. # Kermit itself needs at least 1MB of stack.
  6537. minix20:
  6538.     @echo 'Making C-Kermit $(CKVER) for MINIX 2.0/386...'
  6539.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} EXT=o \
  6540.     "CFLAGS=  -wo -DV7 -DMINIX2 -DMINIX -DSIG_V -D_POSIX_SOURCE \
  6541.     -DCKCPU=\\\"i-386\\\" -DNOIKSD -Dfatal=myfatal -DCK_CURSES -DNOLEARN \
  6542.     -DNOSYSLOG -DUSE_MEMCPY -DNOREALPATH $(KFLAGS)" "LIBS= -lcurses"
  6543.  
  6544. #MINIX/386 (PC Minix modified by Bruce Evans in Australia for 386 addressing)
  6545. # For MINIX 1.5+ (but < 2.0)
  6546. minix386:
  6547.     @echo 'Making C-Kermit $(CKVER) for MINIX/386...'
  6548.     @echo 'TOTALLY UNTESTED!'
  6549.     $(MAKE) wermit EXT=s KTARGET=$${KTARGET:-$(@)} \
  6550.     "CFLAGS= -DV7 -DMINIX -D_POSIX_SOURCE -DNOLEARN $(KFLAGS)"
  6551.  
  6552. #MINIX/386 Minix modified by Bruce Evans in Australia to use 386 addressing
  6553. minix386gcc:
  6554.     @echo 'Making C-Kermit $(CKVER) for MINIX/386 with gcc...'
  6555.     @echo 'TOTALLY UNTESTED!'
  6556.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC=gcc -g -O" "CC2=gcc -g" \
  6557.     "CFLAGS= -DV7 -DMINIX -D_POSIX_SOURCE -DNOLEARN $(KFLAGS)"
  6558.  
  6559. #MINIX - 68k version with ACK compiler.
  6560. # If you have trouble compiling or running wart, "touch wart".
  6561. # If it still doesn't work, "touch ckcpro.c".
  6562. # The version configured below has many features removed, including
  6563. # the TRANSMIT, MSEND, HELP, and SCRIPT commands, international
  6564. # character set support, and the entire script programming language.
  6565. # But it does have an interactive command parser.
  6566. # Make sure make(1) has (at least) 100000 chmemory!
  6567. # If you are using the Amsterdam C compiler, you might have to add "-D__ACK__".
  6568. minix68k:
  6569.     @echo 'Making C-Kermit $(CKVER) for MINIX 68k with ACK...
  6570.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  6571.     "CFLAGS= -DV7 -DMINIX -D_MINIX -D_POSIX_SOURCE -DNOLEARN \
  6572.     -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG \
  6573.     -DNOSCRIPT -DNOCSETS -DNOSPL $(KFLAGS) \
  6574.     -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t -DSIG_V"
  6575.  
  6576. #MINIX - 68k version with c68 compiler.
  6577. # If you have trouble compiling or running wart, "touch wart" or
  6578. # "touch ckcpro.c". Compiling ckudia.c (no -DNODIAL!) might fail. :-(
  6579. # Give c68 250000 bytes of stack+heap; make sure make(1) has at least
  6580. # 100000 chmemory.  On a 1MB Atari ST this means that the recursive
  6581. # call of make fails due to memory shortage.  Try "make -n minixc68 >makeit",
  6582. # followed by ". makeit".  Otherwise, as above.
  6583. minixc68:
  6584.     @echo 'Making C-Kermit $(CKVER) for MINIX 68k with c68...
  6585.     $(MAKE) wermit "CC= cc -c68" KTARGET=$${KTARGET:-$(@)} \
  6586.     "CFLAGS= -DV7 -DMINIX -D_MINIX -D_POSIX_SOURCE -DNOLEARN \
  6587.     -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG \
  6588.     -DNOSCRIPT -DNOCSETS -DNOSPL $(KFLAGS) \
  6589.     -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t -DSIG_V"
  6590.  
  6591. #MINIX - 68k version with c68 compiler.
  6592. #A variation on the above that was recently (Sep 95) reported to work.
  6593. minixc68a:
  6594.     @echo 'Making C-Kermit $(CKVER) for MINIX 68k with c68...
  6595.     $(MAKE) wermit "CC= cc -c68" KTARGET=$${KTARGET:-$(@)} \
  6596.     "CFLAGS= -DV7 -DMINIX -D_MINIX -D_POSIX_SOURCE \
  6597.     -DCK_ANSIC -DNODEBUG -DNOTLOG -DMINIDIAL -DEXTEN -DMYCURSES \
  6598.     -DNOSCRIPT -DNOCSETS -DNOSPL -DNOJC -DDIRENT -DNOLEARN \
  6599.     -DNOSETKEY -DNOESCSEQ $(KFLAGS) \
  6600.     -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t -DSIG_V"
  6601.  
  6602. #MIPS Computer Systems with UMIPS RISC/OS 4.52 = AT&T UNIX System V R3.0.
  6603. #Remove -DNOJC if job control can be safely used.
  6604. mips:
  6605.     @echo 'Making C-Kermit $(CKVER) for MIPS RISC/OS...'
  6606.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  6607.     "CFLAGS = -DMIPS -DDIRENT -DCK_POLL -DNOJC -DNOLEARN -DPID_T=int \
  6608.     -DGID_T=gid_t -DUID_T=uid_t -i -O1500 $(KFLAGS)"
  6609.  
  6610. #As above, but with TCP/IP and fullscreen support.
  6611. mipstcpc:
  6612.     @echo 'Making C-Kermit $(CKVER) for MIPS RISC/OS...'
  6613.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  6614.     "CFLAGS = -DMIPS -DDIRENT -DCK_POLL -DNOJC \
  6615.     -DTCPSOCKET -DCK_CURSES -I/usr/include/bsd \
  6616.     -DPID_T=int -DGID_T=gid_t -DUID_T=uid_t -i -O1500 $(KFLAGS)" \
  6617.     "LIBS = -lcurses -lbsd"
  6618.  
  6619. #Motorola Delta System V/68 R3, signal() is void rather than int.
  6620. #Uses dirent.h and Honey DanBer uucp.  Supports TCP/IP.
  6621. #After building, use "mcs -d" to reduce size of the executable program.
  6622. sv68r3:
  6623.     @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/68 R3...'
  6624.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  6625.     "CFLAGS = -DSVR3 -DSV68 -DDIRENT -DHDBUUCP -DNO_DNS_SRV -DTCPSOCKET \
  6626.     -DNOUNICODE -DNOLEARN $(KFLAGS) -O" "LNKFLAGS ="
  6627.  
  6628. #Motorola Delta System V/68 R3V5, signal() is void rather than int.
  6629. #Uses dirent.h and Honey DanBer UUCP.  Supports TCP/IP.
  6630. #After building, use "mcs -d" to reduce size of the executable program.
  6631. sv68r3v5:
  6632.     @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/68 R3V5'
  6633.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  6634.     "CFLAGS = -DSVR3 -DSV68 -DDIRENT -DHDBUUCP -DNO_DNS_SRV \
  6635.     -DTCPSOCKET -DINADDRX -DNOUNICODE -DFNFLOAT -DNOLEARN $(KFLAGS) -O" \
  6636.     "LNKFLAGS =" "LIBS = -linet -lm"
  6637.  
  6638. #Motorola MVME147 System V/68 R3 V5.1. Requires gcc 2.1 to compile.
  6639. #After building, use "mcs -d" to reduce size of the executable program.
  6640. sv68r3v51:
  6641.     @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/68 R3V5.1'
  6642.     $(MAKE) wermit "CC=gcc-delta" "CC2=gcc-delta" \
  6643.     KTARGET=$${KTARGET:-$(@)} \
  6644.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DNODEBUG -DNO_DNS_SRV -DNOLEARN \
  6645.     -DNOUNICODE -DFNFLOAT -DSV68 $(KFLAGS) -O2 -v -ftraditional" \
  6646.     "LNKFLAGS = -s -v" "LIBS = -lm881 -lm"
  6647.  
  6648. #Motorola MVME147 System V/68 R3V6. derived from Motorola Delta System R3V5.
  6649. #Checked on larger Motorola System V/68 R3V6 (with NSE Network Services Ext.)
  6650. #After building, use "strip" to reduce size of the executable program.
  6651. # "LIBS = -lnsl" removed in C-Kermit 6.1 - put back if needed.
  6652. # "LIBS = lm" added in 7.1/8.0 for floating-point math.
  6653. # ckuusr.c clobbers the optimizer.
  6654. sv68r3v6:
  6655.     @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/68 R3V6'
  6656.     $(MAKE) ckuusr.$(EXT) KTARGET=$${KTARGET:-$(@)} \
  6657.     "CFLAGS = -DSV68R3V6 -DDIRENT -DHDBUUCP -DNOLOGIN -DNOINITGROUPS \
  6658.     -DNOSYMLINK -DNOREDIRECT -DNOGFTIMER -DTCPSOCKET -DDCLGETCWD -DSV68 \
  6659.     -DNO_DNS_SRV -DNOUNICODE -DFNFLOAT -DSELECT $(KFLAGS)"
  6660.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  6661.     "CFLAGS = -DSV68R3V6 -DDIRENT -DHDBUUCP -DNOLOGIN -DNOINITGROUPS \
  6662.     -DNOSYMLINK -DNOREDIRECT -DNOGFTIMER -DTCPSOCKET -DDCLGETCWD -DSV68 \
  6663.     -DNO_DNS_SRV -DNOUNICODE -DFNFLOAT -DSELECT $(KFLAGS) -O" \
  6664.     "LNKFLAGS =" "LIBS = -lm"
  6665.  
  6666. #Motorola Delta System V/88 R32, signal() is void rather than int.
  6667. #Uses dirent.h and Honey DanBer uucp.  Needs <sys/utime.h> for setting
  6668. #file dates.  Supports TCP/IP.
  6669. #After building, use "mcs -d" to reduce size of the executable program.
  6670. sv88r32:
  6671.     @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/88 R32...'
  6672.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  6673.     "CFLAGS = -DSV88R32 -DDIRENT -DHDBUUCP -DTCPSOCKET \
  6674.     -DSYSUTIMEH -DCK_CURSES -DNOGETUSERSHELL -DGTODONEARG $(KFLAGS) -O" \
  6675.     "LIBS= -lcurses -lresolv" "LNKFLAGS = -s"
  6676.  
  6677. #Motorola Delta System V/88 R40.  Has <sys/termiox.h>, regular Berkeley
  6678. #sockets library, i.e. in.h and inet.h are not misplaced in sys (rather than
  6679. #netinet and arpa, respectively).  Uses ANSI C constructs, advisory file
  6680. #locking on devices, etc.  curses support added.  Reportedly, the
  6681. #/usr/include/sys/vnode.h file has a bug which must be fixed before this
  6682. #makefile entry can work correctly.  The "if DEBUG" directive at about line
  6683. #320 must be changed to "ifdef DEBUG" (Reportedly, this was fixed in
  6684. #in System V/88 R4.3).
  6685. #After building, use "mcs -d" to reduce size of the executable program.
  6686. sv88r40:
  6687.     @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/88 R40...'
  6688.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  6689.     "CFLAGS = -O -DSVR4 -DMOTSV88R4 -DDIRENT -DHDBUUCP -DSTERMIOX \
  6690.     -DTCPSOCKET -DCK_CURSES -DNOGETUSERSHELL -DGTODONEARG -DFNFLOAT \
  6691.     $(KFLAGS)" \
  6692.     "LIBS= -lsocket -lnsl -lcurses -lresolv -lm" "LNKFLAGS = -s"
  6693.  
  6694. #As above but without the floating-point math library.
  6695. sv88r40nm:
  6696.     @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/88 R40...'
  6697.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  6698.     "CFLAGS = -O -DSVR4 -DMOTSV88R4 -DDIRENT -DHDBUUCP -DSTERMIOX \
  6699.     -DTCPSOCKET -DCK_CURSES -DNOGETUSERSHELL -DGTODONEARG $(KFLAGS)" \
  6700.     "LIBS= -lsocket -lnsl -lcurses -lresolv" "LNKFLAGS = -s"
  6701.  
  6702. #As above but with floating-point math library support \ffp...() functions
  6703. #and S-Expressions.
  6704.  
  6705. #Olivetti X/OS R2.3, 3.x.
  6706. #NOTES:
  6707. # . If you build the executable on 2.x X/OS, it will also run on 3.x.
  6708. # . If you build it on 3.x X/OS, it will NOT run on 2.x.
  6709. # . Kermit can run with no privileges unless the uucp lines are protected,
  6710. #   in which case kermit must be owned by uucp with suid bit set:
  6711. #   chown uucp kermit ; chmod 4111 kermit.
  6712. xos23:
  6713.     @echo 'Making C-Kermit $(CKVER) for Olivetti X/OS...'
  6714.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  6715.     'CFLAGS=-OLM -DOXOS -DTCPSOCKET -DHDBUUCP $(KFLAGS)' \
  6716.     "LIBS=" "LNKFLAGS="
  6717.  
  6718. #As above, but with curses.
  6719. xos23c:
  6720.     @echo 'Making C-Kermit $(CKVER) for Olivetti X/OS with curses...'
  6721.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  6722.     'CFLAGS=-OLM -DOXOS -DTCPSOCKET -DHDBUUCP -DCK_CURSES $(KFLAGS)' \
  6723.     "LIBS=-lcurses" "LNKFLAGS="
  6724.  
  6725. ckuuid:
  6726.     @echo 'building C-Kermit $(CKVER) set-UID/set-GID test programs'
  6727.     $(CC) -DANYBSD -DSAVEDUID -o ckuuid1 ckuuid.c
  6728.     $(CC) -DANYBSD -o ckuuid2 ckuuid.c
  6729.     $(CC) -DANYBSD -DNOSETREU -o ckuuid3 ckuuid.c
  6730.     $(CC) -DANYBSD -DSETEUID -DNOSETREU -o ckuuid4 ckuuid.c
  6731.     $(CC) -o ckuuid5 ckuuid.c
  6732.     @echo 'Read the top of ckuuid.c for directions...for testing'
  6733.     @echo 'you must make these programs setuid and setgid'
  6734.  
  6735. ############################################################################
  6736. # A N T I Q U I T I E S
  6737. #
  6738. # The following are antique targets from C-Kermit 5A or earlier.  They have
  6739. # not been updated or tested in years.  Most of them will need recent features
  6740. # disabled, usually with some combination of -DNOUNICODE, -DNOIKSD, -DNOANSI,
  6741. # -DNOCKGHNLHOST, -DNO_DNS_SRV, -DNOREDIRECT, -DNOREALPATH, -DNOCURSES, etc.
  6742. # They are also missing the KTARGET=$${KTARGET:-$(@)} business.
  6743. # For details see ckuins.txt and ckccfg.txt.
  6744. #
  6745. ############################################################################
  6746.  
  6747. #Berkeley Unix 2.8, 2.9 for PDP-11s with I&D space, maybe also Ultrix-11???
  6748. #C-Kermit(5A) is simply too large (even turning off almost every feature
  6749. #available) to run without both I&D space plus overlays.  The old comment
  6750. #suggested running 'pcc' but that won't help.  Changing 'cc' to 'ckustr.sed'
  6751. #will cause a string extraction to be done, saving D space by moving strings
  6752. #to a file.
  6753. bsd29:
  6754.     @echo Making C-Kermit $(CKVER) for 2.8 or 2.9BSD.
  6755.     @echo Read the makefile if you have trouble with this...
  6756.     $(MAKE) ovwermit \
  6757.     "CFLAGS= -DBSD29 -DNODEBUG -DNOTLOG -DNOCSETS -DNOHELP \
  6758.     -DNOSCRIPT -DNOSPL -DNOXMIT -DNODIAL $(KFLAGS)" \
  6759.     "LNKFLAGS= -i -lndir" "CC= cc " "CC2= cc"
  6760.  
  6761. bsd210:
  6762.     @echo Please use ckubs2.mak to build C-Kermit $(CKVER) for 2.10BSD.
  6763.  
  6764. bsd211:
  6765.     @echo Please use ckubs2.mak to build C-Kermit $(CKVER) for 2.11BSD.
  6766.  
  6767. #Charles River Data Systems Universe with UNOS Version 9.2
  6768. crds:
  6769.     @echo 'Making C-Kermit $(CKVER) for Charles River Data Systems...'
  6770.     make xermit \
  6771.     "CFLAGS = -DATTSV -DNOANSI -DDIRENT -DLONGFN -DTCPSOCKET \
  6772.     -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DNOSETREU \
  6773.     -Dsuspend=ksuspend $(KFLAGS) -O" "LNKFLAGS ="
  6774.  
  6775. #Microport SV/AT for IBM PC/AT 286 and clones, System V R2.
  6776. #The -O flag may fail on some modules (like ckuus2.c), in which case you
  6777. #should compile them by hand, omitting the -O.  If you get "hash table
  6778. #overflow", try adding -DNODEBUG.
  6779. #Also, reportedly this compiles better with gcc than with cc.
  6780. mpsysv:
  6781.     @echo 'Making C-Kermit $(CKVER) for Microport SV/AT 286...'
  6782.     $(MAKE) wermit \
  6783.     "CFLAGS= -DATTSV -DNOLEARN $(KFLAGS) -O -Ml" "LNKFLAGS = -Ml"
  6784.  
  6785. #Microsoft "Xenix/286" e.g. for IBM PC/AT
  6786. xenix:
  6787.     @echo 'Making C-Kermit $(CKVER) for Xenix/286'
  6788.     $(MAKE) wermit \
  6789.     "CFLAGS= -DXENIX -DNOFILEH -DNOLEARN $(KFLAGS) -Dunix -F 3000 -i" \
  6790.     "LNKFLAGS = -F 3000 -i"
  6791.  
  6792. #PC/IX, Interactive Corp System III for IBM PC/XT
  6793. pcix:
  6794.     @echo 'Making C-Kermit $(CKVER) for PC/IX...'
  6795.     $(MAKE) wermit \
  6796.     "CFLAGS= -DPCIX -DISIII -DNOLEARN $(KFLAGS) \
  6797.     -Dsdata=sdatax -O -i" "LNKFLAGS = -i"
  6798.  
  6799. #Integrated Solutions Inc V8S VME 68020
  6800. isi:
  6801.     @echo Making C-Kermit $(CKVER) for 4.2BSD on ISI...
  6802.     $(MAKE) wermit "CC = cc" \
  6803.     "CFLAGS= -DBSD4 -DTCPSOCKET -DINADDRX -DDCLPOPEN -DDEBUG -DNOSETREU \
  6804.     -DCK_CURSES -DNOLEARN $(KFLAGS)" "LIBS = -lcurses -ltermcap"
  6805.  
  6806. #Interactive Corp version of AT&T System III
  6807. #is3: (very old, probably not sufficient for 5A or later)
  6808. #    @echo 'Making C-Kermit $(CKVER) for Interactive System III...'
  6809. #    make wermit "CFLAGS = -DISIII -Ddata=datax -O -i" "LNKFLAGS = -i"
  6810. #The following should work, use it if you don't have gcc.
  6811. #Use is3gcc if you have gcc.
  6812. is3:
  6813.     @echo 'Making C-Kermit $(CKVER) for Interactive System III...'
  6814.     $(MAKE) wermit \
  6815.     "CFLAGS= -DISIII $(KFLAGS) -Ddata=datax -DNAP -DHDBUUCP
  6816.     -DLOCK_DIR=\"/usr/spool/uucp\" -DSIGTYP=void -O -i" "LNKFLAGS = -i"
  6817.  
  6818. #Interactive UNIX System V R3, no network support.  Uses <dirent.h> and Honey
  6819. #DanBer UUCP.  If this entry does not compile correctly, try any or all of the
  6820. #following.  These suggestions also apply more or less to the other is5r3xxx
  6821. #entries that follow this one.
  6822. # . Remove the UID_T and GID_T definitions, or change them as required.
  6823. # . Change -DDIRENT to -DSDIRENT.
  6824. # . Add -DSIGTYP=void.
  6825. # . Remove -g from LNKFLAGS.
  6826. # . Add -DNOANSI to remove compiler complaints about ANSI C constructions
  6827. # . Add other -DNOxxx's to save space (e.g. -DNOCSETS)
  6828. # See the next few makefile entries for related examples.
  6829. # Also see sys5r32is for making a portable i386 SVR3 binary.
  6830. is5r3:
  6831.     @echo 'Making C-Kermit $(CKVER) for Interactive 386/ix or later...'
  6832.     @echo 'If this does not work please read the makefile entry.'
  6833.     $(MAKE) wermit \
  6834.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -g -DNOCSETS -DNOREALPATH \
  6835.     -DUID_T=ushort -DGID_T=ushort -DI386IX $(KFLAGS)" \
  6836.     "LNKFLAGS = -g"
  6837.  
  6838. #Interactive Corp System System V R3 with gcc
  6839. is3gcc:
  6840.     @echo 'Making C-Kermit $(CKVER) for Interactive System V R3 / gcc...'
  6841.     $(MAKE) wermit CC=gcc CC2=gcc \
  6842.     'CFLAGS = -D_SYSV3 -DISIII -Ddata=datax -DNAP -DHDBUUCP -DNOREALPATH \
  6843.     -DLOCK_DIR=\"/usr/spool/uucp\" -DSIGTYP=void -O' "LNKFLAGS ="
  6844.  
  6845. #Interactive UNIX System V R3, POSIX variant.  Untested.
  6846. #Uses dirent.h and Honey DanBer uucp.  Read comments in is5r3 entry.
  6847. is5r3p:
  6848.     @echo 'Making C-Kermit $(CKVER) for Interactive 386/ix or later...'
  6849.     $(MAKE) wermit \
  6850.     "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -g -DNOCSETS -DNOREALPATH \
  6851.     -DI386IX -DPOSIX $(KFLAGS)" "LNKFLAGS=" "LIBS=-lcposix"
  6852.  
  6853. #Interactive UNIX SVR3 2.2.1, job control, curses, no net, gcc.
  6854. is5r3gcc:
  6855.     $(MAKE) wermit CC=gcc CC2=gcc \
  6856.     "CFLAGS=-g -posix -DSVR3 -DDIRENT -DNOREALPATH \
  6857.     -DHDBUUCP -O -DNOCSETS -DI386IX -DSVR3JC -DCK_CURSES \
  6858.     $(KFLAGS)" LNKFLAGS="-posix" LIBS="-lcurses -lc_s"
  6859.  
  6860. #Interactive UNIX System V R3 with TCP/IP network support.
  6861. #Needs -linet for net functions.  signal() is void rather than int.
  6862. #Uses dirent.h and Honey DanBer uucp. Read comments in is5r3 entry.
  6863. #Also see is5r3net2 if you have trouble with this entry.
  6864. is5r3net:
  6865.     @echo 'Making C-Kermit $(CKVER) for Interactive 386/ix...'
  6866.     @echo 'If this does not work please read the makefile entry.'
  6867.     $(MAKE) wermit CC="$(CC)" CC2="$(CC2)" \
  6868.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DTCPSOCKET -DNOREALPATH \
  6869.     -DI386IX $(KFLAGS) -O" "LIBS = -linet"
  6870.  
  6871. is5r3netgcc:
  6872.     $(MAKE) is5r3net CC=gcc CC2=gcc
  6873.  
  6874. #Interactive UNIX System V R3, no job control, signal() void rather than int.
  6875. #Uses dirent.h and Honey DanBer uucp.  Needs -linet for net functions.
  6876. #Read comments in is5r3 entry.  Use this entry if is5r3net fails.
  6877. #Saves some space by stripping (-s) and using shared library (-lc_s).
  6878. is5r3net2:
  6879.     @echo 'Making C-Kermit $(CKVER) for Interactive 386/ix...'
  6880.     $(MAKE) wermit \
  6881.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DTCPSOCKET -DNOJC -DNOREALPATH \
  6882.     -DSIGTYP=void -DNOANSI -DI386IX $(KFLAGS) -O" \
  6883.     "LNKFLAGS= -s" "LIBS = -linet -lc_s"
  6884.  
  6885. #Interactive UNIX System V R3 (version 2.2 or later) with job control & curses.
  6886. #Uses dirent.h and Honey DanBer UUCP.
  6887. is5r3jc:
  6888.     @echo 'Making C-Kermit $(CKVER) for Interactive Unix 2.2 or later...'
  6889.     $(MAKE) wermit CC="$(CC)" CC2="$(CC2)" \
  6890.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -O -DNOCSETS -DNOREALPATH \
  6891.     -DUID_T=ushort -DGID_T=ushort -DI386IX -DSVR3JC -DCK_CURSES \
  6892.     -DPOSIX_JC -DCK_REDIR -DCK_POLL -DDCLGETCWD \
  6893.     $(KFLAGS)" "LIBS=-lcurses -lc_s -linet"
  6894.  
  6895. is5r3jcgcc:
  6896.     $(MAKE) is5r3jc CC="gcc -DCK_ANSILIBS -DDCGPWNAM -O4" CC2=gcc \
  6897.     KFLAGS="$(KFLAGS)" LNKFLAGS="$(LNKFLAGS)"
  6898.  
  6899. #Sunsoft/Interactive UNIX System V R3 (version 2.2 or later)
  6900. #with job control, curses, and TCP/IP networking.
  6901. #Uses dirent.h and Honey DanBer UUCP.
  6902. is5r3netjc:
  6903.     @echo 'Making C-Kermit $(CKVER) for Interactive Unix 2.2 or later...'
  6904.     $(MAKE) wermit CC="$(CC)" CC2="$(CC2)" \
  6905.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -O -DNOCSETS -DNOREALPATH \
  6906.     -DUID_T=ushort -DGID_T=ushort -DI386IX -DSVR3JC -DCK_CURSES \
  6907.     -DPOSIX_JC -DCK_REDIR -DTCPSOCKET -DSELECT \
  6908.     $(KFLAGS)" "LIBS=-linet -lcurses -lc_s"
  6909.  
  6910. is5r3netjcgcc:
  6911.     $(MAKE) is5r3netjc CC="gcc -DCK_ANSILIBS -DDCGPWNAM -O4" CC2=gcc \
  6912.     KFLAGS="$(KFLAGS)" LNKFLAGS="$(LNKFLAGS)"
  6913.  
  6914. #Masscomp System III
  6915. rtu:
  6916.     @echo 'Making C-Kermit $(CKVER) for Masscomp RTU System III...'
  6917.     $(MAKE) wermit \
  6918.     "CFLAGS= -UFIONREAD -DATTSV $(KFLAGS) -O" "LNKFLAGS =" "LIBS= -ljobs"
  6919.  
  6920. #Masscomp/Concurrent RTU 4.0 or later, Berkeley environment.
  6921. #Includes <ndir.h> = /usr/include/ndir.h
  6922. #Note "LIBS = -lndir" might not be necessary because of "ucb make".
  6923. rtubsd:
  6924.     @echo 'Making C-Kermit $(CKVER) for Masscomp RTU 4.1A...'
  6925.     ucb make wermit \
  6926.     "CFLAGS= -DBSD4 -DRTU -DNDIR -DHDBUUCP -DTCPSOCKET $(KFLAGS)" \
  6927.     "LIBS = -lndir"
  6928.  
  6929. #Masscomp/Concurrent RTU 4.0 or later, same as above,
  6930. #Includes "usr/lib/ndir.h"
  6931. #Note "LIBS = -lndir" might not be necessary because of "ucb make".
  6932. rtubsd2:
  6933.     @echo 'Making C-Kermit $(CKVER) for Masscomp RTU 4.1A...'
  6934.     ucb make wermit \
  6935.     "CFLAGS= -DBSD4 -DRTU -DXNDIR -DHDBUUCP $(KFLAGS)" \
  6936.     "LIBS = -lndir"
  6937.  
  6938. #Masscomp/Concurrent RTU 4.0 or later, same as above,
  6939. #Includes <sys/ndir.h>
  6940. #Note "LIBS = -lndir" might not be necessary because of "ucb make".
  6941. rtubsd3:
  6942.     @echo 'Making C-Kermit $(CKVER) for Masscomp RTU 4.x BSD...'
  6943.     ucb make wermit "CFLAGS= -DBSD4 -DRTU -DHDBUUCP $(KFLAGS)" \
  6944.     "LIBS = -lndir"
  6945.  
  6946. #Masscomp/Concurrent RTU 4.0 or later, System V R2, using <dirent.h>.
  6947. #In case of problems, add back the -DRTU switch.
  6948. #In case -DTCPSOCKET gives trouble, remove it.
  6949. rtus5:
  6950.     @echo 'Making C-Kermit $(CKVER) for Masscomp RTU 4.x...'
  6951.     $(MAKE) wermit \
  6952.     "CFLAGS= -DATTSV -DHDBUUCP -DDIRENT -DTCPSOCKET $(KFLAGS)"
  6953.  
  6954. #Masscomp/Concurrent RTU 4.x, System V R3, using <dirent.h>.
  6955. #Use this one if rtus5 gives warnings about pointer type mismatches.
  6956. #In case of problems, add back the -DRTU switch.
  6957. rtus5r3:
  6958.     @echo 'Making C-Kermit $(CKVER) for Masscomp RTU Sys V R3...'
  6959.     $(MAKE) wermit "CFLAGS= -DSVR3 -DHDBUUCP -DDIRENT $(KFLAGS)"
  6960.  
  6961. #DEC Pro-3xx with Pro/Venix V1.0 or V1.1
  6962. # Requires code-mapping on non-I&D-space 11/23 processor, plus some
  6963. # fiddling to get interrupt targets into resident code section.
  6964. # This almost certainly doesn't work any more.
  6965. provx1:
  6966.     @echo 'Making C-Kermit $(CKVER) for DEC Pro-3xx, Pro/Venix 1.x...'
  6967.     $(MAKE) wart "CFLAGS= -DPROVX1 $(KFLAGS)" "LNKFLAGS= "
  6968.     $(MAKE) wermit "CFLAGS = -DPROVX1 -DNOFILEH -md780" \
  6969.         "LNKFLAGS= -u _sleep -lc -md780"
  6970.  
  6971. #Nixdorf Targon/31.
  6972. #AT&T UNIX System V R3, signal() is void rather than int.
  6973. #Uses dirent.h without Honey DanBer uucp.
  6974. t31tos40x:
  6975.     @echo 'Making C-Kermit $(CKVER) for Targon/31 with TOS 4.0.xx...'
  6976.         $(MAKE) wermit \
  6977.         "CFLAGS= -DSVR3 -DDIRENT $(KFLAGS) -O" \
  6978.         "LNKFLAGS="
  6979.  
  6980. #NCR Tower 1632, OS 1.02
  6981. tower1:
  6982.     @echo 'Making C-Kermit $(CKVER) for NCR Tower 1632, OS 1.02...'
  6983.     $(MAKE) wermit "CFLAGS= -DTOWER1 $(KFLAGS)"
  6984.  
  6985. #NCR Tower 32, OS Release 1.xx.xx
  6986. tower32-1:
  6987.     @echo 'Making C-Kermit $(CKVER) for NCR Tower 32 Rel 1 System V R2...'
  6988.     @echo 'Add KFLAGS=-DISDIRBUG if you get errors about S_ISREG/S_ISDIR.'
  6989.     $(MAKE) wermit \
  6990.     "CFLAGS = -DATTSV $(KFLAGS) -O" "LNKFLAGS = -n"
  6991.  
  6992. #NCR Tower 32, OS Release 2.xx.xx
  6993. tower32-2:
  6994.     @echo 'Making C-Kermit $(CKVER) for NCR Tower 32 Rel 2 System V R2...'
  6995.     $(MAKE) wermit \
  6996.     "CFLAGS = -DATTSV -DHDBUUCP $(KFLAGS) -O2" \
  6997.     "LNKFLAGS = -n"
  6998.  
  6999. #NCR Tower 32, OS Releases based on System V R3
  7000. #Don't add -DNAP (doesn't work right) or -DRDCHK (not available in libc).
  7001. tower32:
  7002.     @echo 'Making C-Kermit $(CKVER) for NCR Tower 32 System V R3...'
  7003.     $(MAKE) wermit \
  7004.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DNOSYSIOCTLH $(KFLAGS) \
  7005.     -DUID_T=ushort -DGID_T=ushort -O1"
  7006.  
  7007. #NCR Tower 32, OS Releases based on System V R3
  7008. tower32g:
  7009.     @echo 'Making C-Kermit $(CKVER) for NCR Tower 32 System V R3, gcc...'
  7010.     $(MAKE) wermit "CC = gcc" \
  7011.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DNOSYSIOCTLH $(KFLAGS) \
  7012.     DUID_T=ushort -DGID_T=ushort -O -fstrength-reduce -fomit-frame-pointer"
  7013.  
  7014. #Fortune 32:16, For:Pro 1.8 (mostly like 4.1bsd)
  7015. ft18:
  7016.     @echo 'Making C-Kermit $(CKVER) for Fortune 32:16 For:Pro 1.8...'
  7017.     $(MAKE) wermit \
  7018.     "CFLAGS= -DNODEBUG -DBSD4 -DFT18 -DNOFILEH $(KFLAGS) \
  7019.     -DPID_T=short"
  7020.  
  7021. #Fortune 32:16, For:Pro 2.1 (mostly like 4.1bsd).
  7022. #The modules that break the optimizer are compiled separately.
  7023. ft21:
  7024.     @echo 'Making C-Kermit $(CKVER) for Fortune 32:16 For:Pro 2.1...'
  7025.     $(MAKE) ckuusx.$(EXT) "CFLAGS= -DNODEBUG -DBSD4 -DFT21 -DNOFILEH \
  7026.     -SYM 800  -DCK_CURSES $(KFLAGS) -DPID_T=short" \
  7027.     "LNKFLAGS= -n -s" "LIBS= -lcurses -ltermcap -lv -lnet"
  7028.     $(MAKE) ckuxla.$(EXT) "CFLAGS= -DNODEBUG -DBSD4 -DFT21 -DNOFILEH \
  7029.     -SYM 800  -DCK_CURSES $(KFLAGS) -DPID_T=short" \
  7030.     "LNKFLAGS= -n -s" "LIBS= -lcurses -ltermcap -lv -lnet"
  7031.     $(MAKE) ckudia.$(EXT) "CFLAGS= -DNODEBUG -DBSD4 -DFT21 -DNOFILEH \
  7032.     -SYM 800  -DCK_CURSES $(KFLAGS) -DPID_T=short" \
  7033.     "LNKFLAGS= -n -s" "LIBS= -lcurses -ltermcap -lv -lnet"
  7034.     $(MAKE) wermit \
  7035.     "CFLAGS= -O -DNODEBUG -DBSD4 -DFT21 -DNOFILEH -SYM 800 \
  7036.     -DCK_CURSES $(KFLAGS) -DPID_T=short" \
  7037.     "LNKFLAGS= -n -s" "LIBS= -lcurses -ltermcap -lv -lnet"
  7038.  
  7039. #Valid Scaldstar
  7040. #Berkeleyish, but need to change some variable names.
  7041. valid:
  7042.     @echo 'Making C-Kermit $(CKVER) for Valid Scaldstar...'
  7043.     $(MAKE) wermit \
  7044.     "CFLAGS= -DBSD4 -DNODEBUG -DNOTLOG -Dcc=ccx -DFREAD=1 $(KFLAGS)"
  7045.  
  7046. #IBM IX/370 on IBM 370 Series mainframes
  7047. #Mostly like sys3, but should buffer packets.
  7048. ix370:
  7049.     @echo 'Making C-Kermit $(CKVER) for IBM IX/370...'
  7050.     $(MAKE) wermit "CFLAGS = -DIX370 -DATTSV $(KFLAGS) -i -O" \
  7051.     "LNKFLAGS = -i"
  7052.  
  7053. #Amdahl UTS 2.4 on IBM 370 series compatible mainframes.
  7054. #Mostly like V7, but can't do initrawq() buffer peeking.
  7055. uts24:
  7056.     @echo 'Making C-Kermit $(CKVER) for Amdahl UTS 2.4...'
  7057.     $(MAKE) wermit "CFLAGS=-DV7 -DPROCNAME=\\\"$(PROC)\\\" \
  7058.     -DUTS24 -DBOOTNAME=\\\"$(BOOTFILE)\\\" -DNPROCNAME=\\\"$(NPROC)\\\" \
  7059.     -DNPTYPE=$(NPTYPE) $(DIRECT) $(KFLAGS)"
  7060.  
  7061. #Amdahl UTSV UNIX System V = System V R2 or earlier.
  7062. utsv:
  7063.     @echo 'Making C-Kermit $(CKVER) for Amdahl UTSV...'
  7064.     $(MAKE) wermit \
  7065.     "CFLAGS = -DUTSV $(KFLAGS) -i -O" "LNKFLAGS = -i"
  7066.  
  7067. #Amdahl UTSV UNIX System V = System V R2 or earlier, with TCP sockets library.
  7068. utsvtcp:
  7069.     @echo 'Making C-Kermit $(CKVER) for Amdahl UTSV w/tcp...'
  7070.     $(MAKE) wermit "CFLAGS = \
  7071.     -DTCPSOCKET -DUTSV $(KFLAGS) -i -O" "LNKFLAGS = -i" \
  7072.     "LIBS = -lsocket"
  7073.  
  7074. #BBN C/70 with IOS 2.0
  7075. #Mostly Berkeley-like, but with some ATTisms
  7076. c70:
  7077.     @echo 'Making C-Kermit $(CKVER) for BBN C/70 IOS 2.0...'
  7078.     $(MAKE) wermit "CFLAGS= -DBSD4 -DC70 $(KFLAGS)"
  7079.  
  7080. #Zilog ZEUS 3.21
  7081. zilog:
  7082.     @echo 'Making C-Kermit $(CKVER) for Zilog Zeus 3.21...'
  7083.     $(MAKE) wermit \
  7084.     "CFLAGS = -DATTSV -DZILOG -DNODEBUG $(KFLAGS) -i -O" \
  7085.     "LNKFLAGS = -i -lpw"
  7086.  
  7087. #Whitechapel MG-1 Genix 1.3
  7088. white:
  7089.     @echo 'Making C-Kermit $(CKVER) for Whitechapel MG-1 Genix 1.3...'
  7090.     @touch ckcpro.c
  7091.     $(MAKE) wermit "CFLAGS= -DBSD4 -Dzkself()=0  $(KFLAGS)"
  7092.  
  7093. #Pixel 1000
  7094. pixel:
  7095.     @echo 'Making C-Kermit $(CKVER) for Pixel 1000...'
  7096.     $(MAKE) wermit "CFLAGS= -DBSD4 -Dzkself()=0 $(KFLAGS)"
  7097.  
  7098. ptx:
  7099.     $(MAKE) "MAKE=$(MAKE)" dynixptx12
  7100.  
  7101. #CDC VX/VE 5.2.1
  7102. vxve:
  7103.     @echo 'Making C-Kermit $(CKVER) for CDC VX/VE 5.2.1...'
  7104.     $(MAKE) wermit \
  7105.     "CFLAGS = -DATTSV -DVXVE -DNODEBUG -DNOTLOG $(KFLAGS) -i -O" \
  7106.     "LNKFLAGS = -i"
  7107.  
  7108. #DIAB DS90 or LUXOR ABC-9000 with pre-5.2 DNIX.  Sys V with nap() and rdchk().
  7109. # nd = no opendir(), readdir(), closedir(), etc.
  7110. # Some of the modules fail to compile with -O.
  7111. dnixnd:
  7112.     @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with very old DNIX 5.2.'
  7113.     $(MAKE) wermit \
  7114.     "CFLAGS = -DATTSV -DNAP -DRDCHK -DDCLPOPEN \
  7115.     -U__STDC__ $(KFLAGS)"
  7116.  
  7117. #DIAB DS90 with DNIX 5.2.  Sys V with nap() and rdchk().
  7118. # This one has opendir(), readdir(), closedir(), etc.
  7119. # Some of the modules fail to compile with -O.
  7120. dnix:
  7121.     @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with old DNIX 5.2...'
  7122.     $(MAKE) wermit \
  7123.     "CFLAGS = -DATTSV -DNAP -DRDCHK -DDIRENT  \
  7124.     -U__STDC__ $(KFLAGS)"
  7125.  
  7126. #DIAB DS90 with DNIX 5.2.  Sys V with nap() and rdchk().
  7127. # As above, but with curses and TCP/IP.
  7128. # You might get complaints about redefinition of O_RDONLY, etc, because
  7129. # of bugs in the DNIX header files, which can be fixed by adding #ifndef...
  7130. # around the offending definitions in the header files.
  7131. dnixnetc:
  7132.     @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with old DNIX 5.2...'
  7133.     $(MAKE) wermit \
  7134.     "CFLAGS = -DATTSV -DNAP -DRDCHK -DDIRENT  \
  7135.     -DTCPSOCKET -DCK_CURSES -I/usr/include/bsd -U__STDC__ $(KFLAGS)" \
  7136.     "LIBS = -ln -lcurses"
  7137.  
  7138. #DIAB DS90 with DNIX 5.3 or later, with HDB UUCP, nap() and rdchk().
  7139. dnix5r3:
  7140.     @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with DNIX 5.3...'
  7141.     @echo 'with Honey DanBer UUCP'
  7142.     $(MAKE) wermit \
  7143.     "CFLAGS = -DSVR3 -DHDBUUCP -DNAP -DRDCHK -DDIRENT \
  7144.     -DCK_CURSES -DRENAME $(KFLAGS) -O" "LIBS= -lcurses"
  7145.  
  7146. #DIAB DS90 with DNIX 5.3 or later, with HDB UUCP, nap() and rdchk() + TCP/IP
  7147. dnix5r3net:
  7148.     @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with DNIX 5.3...'
  7149.     @echo 'with Honey DanBer UUCP and TCP/IP'
  7150.     $(MAKE) wermit \
  7151.     "CFLAGS = -DSVR3 -DHDBUUCP -DNAP -DRDCHK -DDIRENT \
  7152.     -DTCPSOCKET -DCK_CURSES -DRENAME $(KFLAGS) -O \
  7153.     -I/usr/include/bsd" "LIBS = -ln -lcurses"
  7154.  
  7155. #DIAB DS90 with DNIX 5.3 2.2 or later, with HDB UUCP, nap() and rdchk(),
  7156. #ANSI C compilation and libraries.
  7157. #Note that for DNIX 5.3 2.2 you have to correct a bug in /usr/include/stdlib.h:
  7158. #change "extern    void free(char *str);"
  7159. #to     "extern void free(void *str);"
  7160. #NOTE: This bug is reportedly fixed in DNIX 5.3 2.2.1.
  7161. #Should you get fatal errors caused by harmless pointer-type mismatches,
  7162. #like between signed and unsigned char, just remove -X7.
  7163. dnix5r3ansi:
  7164.     @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with DNIX 5.3...'
  7165.     @echo 'with ANSI C Honey DanBer UUCP'
  7166.     $(MAKE) wermit \
  7167.     "CFLAGS = -DSVR3 -DDIAB -DHDBUUCP -DNAP -DRDCHK -DDIRENT \
  7168.     -DCK_ANSILIBS -DCK_CURSES -DRENAME -O -X7 -X9 $(KFLAGS)" \
  7169.     "LIBS= -lcurses"
  7170.  
  7171. #DIAB DS90 with DNIX 5.3 2.2 or later, with HDB UUCP, nap() and rdchk(),
  7172. # + TCP/IP, ANSI C compilation and libraries.
  7173. #Should you get fatal errors caused by harmless pointer-type mismatches,
  7174. #like between signed and unsigned char, just remove -X7.
  7175. dnix5r3ansinet:
  7176.     @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with DNIX 5.3...'
  7177.     @echo 'with ANSI C Honey DanBer UUCP'
  7178.     $(MAKE) wermit \
  7179.     "CFLAGS = -DSVR3 -DDIAB -DHDBUUCP -DNAP -DRDCHK -DDIRENT \
  7180.     -DTCPSOCKET -DCK_ANSILIBS -DCK_CURSES -DRENAME -O -X7 -X9 $(KFLAGS) \
  7181.     -I/usr/include/bsd" "LIBS= -ln -lcurses"
  7182.  
  7183. # QNX 4.21 and above, 32-bit version, Watcom C32 10.6, fully configured,
  7184. # except no job control because QNX 4.x does not support it.  New NCURSES
  7185. # library used instead of CURSES.
  7186. #
  7187. # -Oatx optimizes to favor speed over size: loop optimization, inline fn's.
  7188. # -Os favors size over speed.  Saves 30-40K out of about 1.75M.
  7189. # -3r = generate 386 code with register-based arg passing.
  7190. # -3s = generate 386 code with stack-based arg passing.
  7191. # -ms = separate code & data 4GB segments (32-bit builds only).
  7192. # -mf = flat memory model code+data in one 4GB segment (ditto).
  7193. # -zc = place literal strings in code segment.
  7194. # -N4M = Big stack (increase the digit upon SIGSEGVs at runtime).
  7195. # chars are unsigned by default (-j makes them signed by default).
  7196. # -NOUUCP is included because QNX doesn't use it.
  7197. # Add these to the end if you like but they dump core on my QNX 4.25 system:
  7198. #
  7199. #    @wermit -h >use.qnx
  7200. #    @usemsg wermit use.qnx
  7201. #    @rm use.qnx
  7202. #
  7203. # If you get warnings about HEADER or C_IN add -DNO_DNS_SRV.
  7204. qnx32:
  7205.     @echo 'Making C-Kermit $(CKVER) for QNX 4.2x, 32-bit...'
  7206.     $(MAKE) xermit \
  7207.     "LNKFLAGS = -N4M -3r" \
  7208.     "CFLAGS = -ms -3r -DQNX -DTCPSOCKET -DCK_CURSES -DNOGETUSERSHELL \
  7209.     -DCK_WREFRESH -DCK_REDIR -DSELECT -DSELECT_H -DCK_RTSCTS -DNOJC \
  7210.     -DNOINITGROUPS -DNOUUCP -DCK_ANSIC -DPID_T=pid_t -Oatx -zc $(KFLAGS)" \
  7211.     "LIBS= -lsocket -lncurses -ltermcap"
  7212.  
  7213. # As above but no networking since some QNX systems do not have TCP/IP
  7214. # installed, or the TCP/IP developers kit, which includes all the needed
  7215. # header files.  This entry has not been tested on a QNX system that, in
  7216. # fact, does not have TCP/IP installed; some adjustments might be necessary,
  7217. # in particular regarding the use of select(): is -lsocket needed, can we
  7218. # get the needed definitions from non-TCP/IP header files (FD_SET, etc)?
  7219. qnx32nonet:
  7220.     @echo 'Making C-Kermit $(CKVER) for QNX 4.2x, 32-bit, no net...'
  7221.     $(MAKE) xermit \
  7222.     "LNKFLAGS = -N4M -3r" \
  7223.     "CFLAGS = -3r -ms -DQNX -DNONET -DNOIKSD -DCK_CURSES \
  7224.     -DCK_WREFRESH -DCK_REDIR -DSELECT -DSELECT_H -DCK_RTSCTS -DNOJC \
  7225.     -DNOUUCP -DCK_ANSIC -DPID_T=pid_t -Oatx -zc $(KFLAGS)" \
  7226.     "LIBS= -lsocket -lncurses -ltermcap"
  7227.     @wermit -h >use.qnx
  7228.     @usemsg wermit use.qnx
  7229.     @rm use.qnx
  7230.  
  7231. # Synonym for qnx32.
  7232. qnx:
  7233.     $(MAKE) qnx32 "KFLAGS=$(KFLAGS)"
  7234.  
  7235. # QNX 4.21 and above, 16-bit version, Watcom C 8.5 - and higher on i286 PCs
  7236. # and above.
  7237. #
  7238. #    IMPORTANT: Do not use Watcom C 10.6!!!
  7239. #    If you have it installed, add "-v9.52 to CFLAGS"
  7240. #
  7241. # NOTE: QNX 4.23 onward does not work on 286's anyway.
  7242. # Stacksize 26000, objects larger than 100 bytes in their own segments,
  7243. # string constants to the codesegment, etc.  Fully configured except job ctrl.
  7244. # This entry works for building a 16-bit executable on a 32-bit system, but
  7245. # has not been tested on a 16-bit system.  Uses large memory model, links
  7246. # explicitly with large-model sockets library.  Correct-model curses library
  7247. # is chosen automatically.  See comment in qnx32 entry about -DNOUUCP.
  7248. #
  7249. # WARNING:
  7250. #
  7251. # Watcom C prior to 10.6 never had released curses library. To link against it,
  7252. # you must obtain ported free curses source from ftp://ftp.qnx.com/usr/free,
  7253. # then compile and build library (cursesl.lib) and place it in /usr/lib.  You
  7254. # must also copy curses.h to /usr/include.  Be aware that if you have Watcom
  7255. # 10.6 installed, you should already have curses.h, which is the new ncurses
  7256. # library. You must back it up and use free curses.h instead, since ncurses is
  7257. # only for 32-bit applications and some definitions in these files are
  7258. # different (e.g., clearok()).  For safety, curses is not defined in build.
  7259. #
  7260. # In 7.0 -DNOHELP added to keep ckuus2.c from blowing up; NOCSETS and NOSPL
  7261. # added because ckuus4 was blowing up, and NOFLOAT just because it seemed
  7262. # dangerous (remove -DNOFLOAT if you want to try it), The result works OK
  7263. # except for some mysterious beeps upon termination of the top-level keyword.
  7264. #
  7265. # Things to try next time we get in trouble:
  7266. #  . Change -zt100 to something smaller like -zt25
  7267. #  . Change -Oatx to -Omilerat (enable stack checking)
  7268. #  . Maybe get rid of -v9.52 -- it's only there because we were warned.
  7269. #
  7270. qnx16:
  7271.     @echo 'Making C-Kermit $(CKVER) for QNX 4.21, 16-bit...'
  7272.     $(MAKE) xermit \
  7273.     "LNKFLAGS = -2 -ml -N 26000" \
  7274.     "CFLAGS = -2 -Oatx -zc -zt100 -ml -DQNX -DQNX16 -DNOUUCP -DNOHELP \
  7275.     -DCK_REDIR -DSELECT -DSELECT_H -DNOJC -DNOGETUSERSHELL -DNOCSETS \
  7276.     -v9.52 -DTCPSOCKET -DCK_RTSCTS -DCK_ANSIC -DNOINITGROUPS -DNOKVERBS \
  7277.     -DNORANDOM -DNOCSETS -DNOSPL -DNOFLOAT -DPID_T=pid_t $(KFLAGS)"
  7278.  
  7279. # QNX 4.1, 16-bit version, with Watcom C 8.5 on i286 PCs and above.
  7280. # stacksize 26000, objects larger than 100 bytes in their own segments,
  7281. # string constants to the codesegment, etc.  Add -DNOUUCP if desired.
  7282. qnx16_41:
  7283.     @echo 'Making C-Kermit $(CKVER) for QNX 4.1, 16-bit...'
  7284.     $(MAKE) xermit \
  7285.     "LNKFLAGS = -mh -N 26000" "CFLAGS = -Wc,-fpc -Wc,-j -DNOGETUSERSHELL \
  7286.     -Wc,-Ols -Wc,-zdf -Wc,-zc -Wc,-zt100 -mh -DPOSIX -DQNX -DDIRENT \
  7287.     -DNOCYRIL -DNODEBUG -DNOMSEND -DMINIDIAL -DNOXMIT -DNOSCRIPT -DNOSPL \
  7288.     -DNOSETKEY -DNOINITGROUPS -DQNX16 -DPID_T=pid_t $(KFLAGS)"
  7289.  
  7290. # QNX Neutrino 2 (pwaechtler@qnx.de) crosscompiled on QNX 4.25.
  7291. # Gets lots of compiler warnings.
  7292. qnx_nto2+:
  7293.     @echo 'Making C-Kermit $(CKVER) for QNX Neutrino 2+ '
  7294.     cc -o wart ckwart.c
  7295.     $(MAKE) xermit \
  7296.     "CC = qcc -Vgcc_ntox86" \
  7297.     "CC2 = qcc -Vgcc_ntox86" \
  7298.     "LNKFLAGS = " \
  7299.     "CFLAGS = -DNEUTRINO -DTCPSOCKET -DCK_CURSES -DNOGETUSERSHELL \
  7300.     -DNOUUCP -DCK_WREFRESH -DCK_REDIR -DSELECT -DSELECT_H -DCK_RTSCTS \
  7301.     -DNOJC -DNOINITGROUPS -DCK_ANSIC -DPID_T=pid_t -DUNIX -DDIRENT \
  7302.     -DMYREAD -DBSD44ORPOSIX -DSVORPOSIX -DNDGPWNAM $(KFLAGS)" \
  7303.     "LIBS= -lsocket -lncurses "
  7304.  
  7305. # QNX 6 (= Neutrino 2.xx) native build (kirussel@cisco.com).
  7306. qnx6:
  7307.     @echo 'Making C-Kermit $(CKVER) for QNX6'
  7308.     $(MAKE) xermit KTARGET=QNX6 \
  7309.     "CFLAGS = -DPOSIX -DCK_POSIX_SIG -DNETPTY -DNOARROWKEYS \
  7310.     -DUSE_TIOCSDTR -DBIGBUFOK -DCKMAXOPEN=100 -DRLOGCODE -DNOREALPATH \
  7311.     -DMAXNAMLEN=48 -DQNX6 -DUSE_TERMIO -DINIT_SPTY \
  7312.     -DCK_CURSES -DCK_WREFRESH -DCK_NEWTERM -DDYNAMIC \
  7313.     -DTCPSOCKET -DNOGETUSERSHELL -DCK_REDIR -DSELECT -DSELECT_H \
  7314.     -DCK_RTSCTS -DNOJC -DSVORPOSIX -DBSD44ORPOSIX -DNOUUCP -DCK_ANSIC \
  7315.     $(KFLAGS) -O" \
  7316.     "LIBS= -lsocket  -lncurses"
  7317.  
  7318. #Ridge 32 with ROS 3.2
  7319. ridge32:
  7320.     @echo 'Making C-Kermit $(CKVER) Ridge 32 ROS 3.2'
  7321.     $(MAKE) wermit \
  7322.     "CFLAGS = -DATTSV -DNOFILEH -DNODEBUG -DNOTLOG $(KFLAGS) -i -O" \
  7323.     "LNKFLAGS = -i"
  7324.  
  7325. #Altos 486, 586, or 986 with Xenix 3.0
  7326. altos:
  7327.     @echo 'Making C-Kermit $(CKVER) for Altos x86 with Xenix 3.0...'
  7328.     $(MAKE) wermit \
  7329.     "CFLAGS= -DATTSV -DA986 -DNODEBUG -DNOTLOG $(KFLAGS) -i -O" \
  7330.     "LNKFLAGS= -i"
  7331.  
  7332. #Altos 986 with Xenix 3.0, as above, but command-line only, minimal size.
  7333. #For systems with small memories.  It might also be necessary to chop certain
  7334. #modules up into smaller pieces, e.g. ckuus3-6, because of symbol table
  7335. #overflow.   If this makefile is too big or complex for the Altos, compile
  7336. #and link by hand or write shell scripts.
  7337. altosc:
  7338.     @echo 'Making C-Kermit $(CKVER) for Altos x86 Xenix 3.0, remote...'
  7339.     $(MAKE) wermit \
  7340.     "CFLAGS= -DATTSV -DA986 -DNODEBUG -DNOTLOG -DNOSCRIPT -DNODIAL \
  7341.     -DNOCSETS -DNOANSI -DNOMSEND -DNOSPL -DNOICP $(KFLAGS) -Mm -O" \
  7342.     "LNKFLAGS= -Mm -s"
  7343.  
  7344. #Altos 986 with Xenix 3.0, as above, but interactive only, minimal size.
  7345. altosi:
  7346.     @echo 'Making C-Kermit $(CKVER) for Altos x86 Xenix 3.0, local...'
  7347.     $(MAKE) wermit \
  7348.     "CFLAGS= -DATTSV -DA986 -DNODEBUG -DNOTLOG -DNOSCRIPT -DNODIAL \
  7349.     -DNOCSETS -DNOANSI -DNOMSEND -DNOSPL -DNOCMDL -DNOFRILLS -DNOHELP \
  7350.     -DNOSETKEY $(KFLAGS) -Mm -O" "LNKFLAGS= -Mm -s"
  7351.  
  7352. # Altos ACS68000 68000 System, UNIX System 3 Release 2, 512k memory.
  7353. # also needs getcwd() external function; see ckuins.txt file.
  7354. # also, sys/types.h needed modifying:
  7355. #   #ifdef __SYS_TYPES_H__, #define ..., #endif
  7356. # also, ckuus2.c MUST be compiled NOOPT else symbol table is destroyed!
  7357. # Submission by Robert Weiner/Programming Plus, rweiner@progplus.com.
  7358. #
  7359. altos3:
  7360.     @echo 'Making C-Kermit $(CKVER) for Altos ACS68k UNIX System III'
  7361.     $(MAKE) ckuus2.$(EXT) "CFLAGS = -DATTSV -DNOCSETS -DNOSETKEY -DNOJC \
  7362.     -DNODIAL -DDCLPOPEN -DNOSCRIPT -DNOHELP $(KFLAGS) -i"
  7363.     $(MAKE) wermit \
  7364.     "CFLAGS = -DATTSV -DNOCSETS -DNOSETKEY -DNOJC \
  7365.     -DNODIAL -DDCLPOPEN -DNOSCRIPT -DNOHELP $(KFLAGS) -i -O" \
  7366.     "LNKFLAGS = -i" "LIBS = getcwd.$(EXT)"
  7367.  
  7368. #MINIX - Original PC version with 64K+64K limit.
  7369. # Reportedly, the linker (asld) can run out of space while linking.  The only
  7370. # way around this is to make a copy of libc.a from which all modules that are
  7371. # not used by Kermit are removed.  If you have trouble compiling or running
  7372. # wart, "touch wart".  If that doesn't help, "touch ckcpro.c".
  7373. # The version configured below has no interactive command parser.
  7374. # If you can build this version successfully, maybe there will be room for
  7375. # a minimal interactive command parser too; try replacing -DNOICP with
  7376. # -DNOSPL, plus every other -DNOxxx flag there is, except for -DNOICP
  7377. # (see ckccfg.txt).
  7378. minix:
  7379.     @echo 'Making C-Kermit $(CKVER) for MINIX, no command parser...
  7380.     @echo 'TOTALLY UNTESTED!'
  7381.     $(MAKE) wermit EXT=s \
  7382.     "CFLAGS= -DV7 -DMINIX -i -D_MINIX -D_POSIX_SOURCE \
  7383.     -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t -DSIG_V \
  7384.     -DNOXMIT -DNOMSEND -DNOFRILLS -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG \
  7385.     -DNOSCRIPT -DNOCSETS -DNOICP -DNOSETKEY $(KFLAGS)" \
  7386.     "LNKFLAGS= -i -T"
  7387.  
  7388. #MINIX - PC version with 64K+64K limit, new (as yet unreleased) ACK 2.0 beta C
  7389. #compiler, which outputs .o object files, rather than .s.  But 'make' still
  7390. #expects .s files, so must be patched to use .o.  Tested on Minix 1.5.10.
  7391. minixnew:
  7392.     @echo 'Making C-Kermit $(CKVER) for MINIX (new ACK 2.0 compiler),'
  7393.     @echo 'no command parser...  TOTALLY UNTESTED!'
  7394.     $(MAKE) wermit \
  7395.     "CFLAGS= -DV7 -DMINIX -i -D_MINIX -D_POSIX_SOURCE \
  7396.     -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t -DSIG_V -DNODIAL \
  7397.     -DNOHELP -DNODEBUG -DNOTLOG -DNOSCRIPT -DNOCSETS -DNOICP $(KFLAGS)" \
  7398.     "LNKFLAGS= -i -T"
  7399.  
  7400. #PFU Compact A Series UNIX System V R3, SX/A TISP V10/L50 (Japan)
  7401. #Maybe the -i link option should be removed?
  7402. sxae50:
  7403.     @echo 'Making C-Kermit $(CKVER) for PFU SX/A V10/L50...'
  7404.     $(MAKE) xermit \
  7405.     "CFLAGS= -DSVR3 -DDIRENT -DsxaE50 -DTCPSOCKET $(KFLAGS) -i -O" \
  7406.     "LNKFLAGS= "
  7407.  
  7408. #Tektronix 6130, 4319, 4301, etc, with UTek OS, /usr/spool/uucp/LCK./...
  7409. #The models that support hardware flow control.
  7410. utek:
  7411.     @echo 'Making C-Kermit $(CKVER) for 4.2BSD/UTek, hardware flow control'
  7412.     $(MAKE) wermit \
  7413.     "CFLAGS= -O -DLCKDIR -DBSD4 -DTCPSOCKET \
  7414.     -DUTEK -DDCLPOPEN -DLOCK_DIR=\\\"/usr/spool/uucp/LCK.\\\" \
  7415.     -DTRMBUFL=2048 -DCK_DTRCTS $(KFLAGS)"
  7416.  
  7417. #Tektronix 4315, 4316, 4317 with UTek OS, /usr/spool/uucp/LCK./...
  7418. #The models that do not fully support hardware flow control.
  7419. uteknohwfc:
  7420.     @echo 'Making C-Kermit $(CKVER) for 4.2BSD/UTek, no h/w flow control'
  7421.     $(MAKE) wermit \
  7422.     "CFLAGS= -O -DLCKDIR -DBSD4 -DTCPSOCKET \
  7423.     -DUTEK -DDCLPOPEN -DLOCK_DIR=\\\"/usr/spool/uucp/LCK.\\\" \
  7424.     -DTRMBUFL=2048 $(KFLAGS)"
  7425.  
  7426. #Tektronix XD88 with  UTekV OS
  7427. utekvr3:
  7428.     @echo 'Making C-Kermit $(CKVER) for Tektronix XD88 UTekV R3...'
  7429.     $(MAKE) wermit \
  7430.     "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP \
  7431.     -DTCPSOCKET -DSYSUTIMEH -DCK_CURSES $(KFLAGS) -O" \
  7432.     "LIBS= -lcurses" "LNKFLAGS= -s"
  7433.  
  7434. #Perkin-Elmer 3200 Xelos R02 or earlier
  7435. ccop1:
  7436.     @echo 'Making C-Kermit $(CKVER) for Xelos & Public Domain Dirent calls'
  7437.     @echo 'or System V R2 or earlier...'
  7438.     $(MAKE) wermit \
  7439.     "CFLAGS = -DATTSV -Dvoid=int -DDIRENT -DCK_CURSES \
  7440.     $(KFLAGS) -O" "LNKFLAGS =" "LIBS= -lcurses -ltermlib"
  7441.  
  7442. #Encore, UMAX 4.3 (BSD) but without acucntrl program.
  7443. encore:
  7444.     $(MAKE) "MAKE=$(MAKE)" umax43 "KFLAGS=$(KFLAGS)"
  7445.  
  7446. #Encore, as above, but with curses file transfer display included.
  7447. encorec:
  7448.     $(MAKE) "MAKE=$(MAKE)" umax43 "KFLAGS=-DCK_CURSES $(KFLAGS)" \
  7449.     "LIBS= -lcurses -ltermcap"
  7450.  
  7451. #Encore, UMAX 4.3 (BSD) but without acucntrl program.
  7452. umax43:
  7453.     @echo Making C-Kermit $(CKVER) for Encore UMAX 4.3...
  7454.     $(MAKE) "MAKE=$(MAKE)" PARALLEL=4 xermit \
  7455.     "CFLAGS= -DBSD43 -DENCORE -DTCPSOCKET $(KFLAGS) -O"
  7456.  
  7457. #Encore, UMAX 4.2 (BSD)
  7458. umax42:
  7459.     @echo Making C-Kermit $(CKVER) for Encore UMAX 4.2...
  7460.     $(MAKE) "MAKE=$(MAKE)" PARALLEL=4 xermit \
  7461.     "CFLAGS= -DBSD4 -DENCORE -DTCPSOCKET $(KFLAGS) -O"
  7462.  
  7463. #Encore 88K UMAX 5.3 with TCP/IP support
  7464. encore88k:
  7465.     @echo 'Making C-Kermit $(CKVER) for Encore 88K UMAX V, TCP/IP...'
  7466.     $(MAKE) xermit \
  7467.     "CFLAGS = -q ext=pcc -DSVR3 -DTCPSOCKET -DDIRENT \
  7468.     -DNOGETID_PROTOS -DHDBUUCP $(KFLAGS) -O" "LNKFLAGS ="
  7469.  
  7470. #Encore 88K UMAX 5.3 with TCP/IP support
  7471. encore88kgcc:
  7472.     @echo 'Making C-Kermit $(CKVER) for Encore 88K UMAX V, TCP/IP, gcc...'
  7473.     $(MAKE) xermit CC=gcc CC2=gcc \
  7474.     "CFLAGS = -DSVR3 -DTCPSOCKET -DDIRENT \
  7475.     -DNOGETID_PROTOS -DHDBUUCP $(KFLAGS) -O" "LNKFLAGS ="
  7476.  
  7477. #SONY NEWS, NEWS-OS 4.01C
  7478. sonynews:
  7479.     @echo Making C-Kermit $(CKVER) for SONY NEWS-OS 4.01C...
  7480.     $(MAKE) xermit "CFLAGS= -DBSD43 -DACUCNTRL -DTCPSOCKET -O"
  7481.  
  7482. #Run Lint on this mess for selected versions.
  7483. #These are pretty much obsolete since ANSI C / gcc.
  7484. lintsun:
  7485.     @echo 'Running Lint on C-Kermit $(CKVER) sources for SunOS version...'
  7486.     lint -x -DSUNOS4 -DDIRENT -DTCPSOCKET -DSAVEDUID \
  7487.     ck[cu]*.c > ckuker.lint.sun
  7488.  
  7489. lintbsd:
  7490.     @echo 'Running Lint on C-Kermit $(CKVER) sources for BSD 4.2 version..'
  7491.     lint -x -DBSD4 -DTCPSOCKET ck[cu]*.c > ckuker.lint.bsd42
  7492.  
  7493. lints5:
  7494.     @echo 'Running Lint on C-Kermit $(CKVER) sources for Sys V version...'
  7495.     lint -x -DATTSV ck[cu]*.c > ckuker.lint.s5
  7496.  
  7497. #Who remembers TECO?
  7498. love:
  7499.     @echo 'Not war?'
  7500.