home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / archives / ckc197.zip / makefile < prev    next >
Makefile  |  2000-03-20  |  285KB  |  6,338 lines

  1. # makefile / Makefile / ckuker.mak / CKUKER.MAK
  2. #
  3. # Tue Feb  8 17:07:26 2000
  4. BUILDID=20000208
  5. #
  6. CKVER= "7.0.197"
  7. #
  8. # -- Makefile to build C-Kermit for UNIX and UNIX-like systems --
  9. #
  10. # Copyright (C) 1985, 2000,
  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 Peter Eichhorn,
  22. # assyst GmbH, for the consolidated HP-UX entries, to Robert Lipe for
  23. # the updated & consolidated SCO UNIX / ODT / OSR5 entries, to Ric Anderson
  24. # for new IRIX 6.x entires, and Jeff Altman for the Kerberos/SRP targets.
  25. #
  26. # Most entries use the "xermit" target, which uses the select()-based CONNECT
  27. # module, ckucns.c.  The "wermit" target uses the older fork()-base CONNECT
  28. # module, ckucon.c, which has some drawbacks (but is more portable).  If your
  29. # entry still uses the "wermit" target, please try substituting the "xermit"
  30. # one and if it works, let us know.
  31. #
  32. # CAREFUL: Don't put the lowercase word "if", "define", or "end" as the first
  33. # word after the "#" comment introducer in the makefile, even if it is
  34. # separated by whitespace.  Some versions of "make" understand these as
  35. # directives.  Uppercase letters remove the danger, e.g. "# If you have..."
  36. #
  37. # WARNING: This is a huge makefile, and it contains nested makes.
  38. # Some "make" programs run out of memory.  If this happens to you, edit
  39. # away the parts that do not apply to your system and try again.
  40. #
  41. # Certain UNIX variations have their own separate makefiles:
  42. #  . For 2.10 or 2.11 BSD on DEC PDP-11s, use ckubs2.mak.
  43. #  . For Plan 9, use ckpker.mk.
  44. #
  45. # Separate build procedures are provided non-UNIX platforms: VMS, VOS,
  46. # AOS/VS, etc.  See the ckaaaa.txt file for details.
  47. #
  48. #
  49. # DIRECTIONS
  50. #
  51. # Rename this file to "makefile" or "Makefile" if necessary.  Pick out the
  52. # entry most appropriate for your UNIX system from the list below and then
  53. # give the appropriate "make" command, for example "make aix43", "make sys5r4",
  54. # "make linux".  If you experience any difficulties with the build procedure,
  55. # then please also read any comments that accompany the make entry itself
  56. # (search for the make entry name on the left margin).
  57. #
  58. # Other entries:
  59. #  'make manpage' creates the nroff man page file from ckuker.cpp.
  60. #  'make install' is a SAMPLE installation script.
  61. #  'make clean' removes intermediate and object files.
  62. #
  63. # IMPORTANT:
  64. #   For more detailed installation instructions, read the files ckuins.txt
  65. #   and ckccfg.txt.  For descriptions of known problems and limitations,
  66. #   read the files ckcbwr.txt and ckubwr.txt (the "beware files").
  67. #
  68. # Most entries build C-Kermit with its symbol table included.  To reduce the
  69. # size of the executable program, add "LNKFLAGS=-s" to the end of your 'make'
  70. # command or to the makefile entry, or 'strip' the executable after
  71. # building.  To further reduce the size after building, use 'mcs -d' if your
  72. # system has such a command.  For further details on size reduction, read
  73. # ckccfg.txt to find out how to remove features that you don't need.
  74. #
  75. # TCP/IP networking support: If your C-Kermit version does not include TCP/IP
  76. # networking, but your UNIX system does, try adding -DTCPSOCKET to the CFLAGS
  77. # of your makefile entry.  If that doesn't work, look at some of the other
  78. # entries that include this flag for ideas about what libraries might need to
  79. # be included, etc.  NOTE: In some cases (old versions of SCO or HP-UX), you
  80. # might need not only a C compiler, but also a "TCP/IP developers kit" for the
  81. # required object libraries and header files.
  82. #
  83. # Fullscreen file transfer display support: If you are going to use C-Kermit
  84. # for establishing connections (dialed, network, etc), you can configure it to
  85. # produce a formatted file transfer display by including the curses library
  86. # and adding -DCK_CURSES to the CFLAGS for your option, and linking with the
  87. # appropriate libraries.  There are many examples below, usually ending in
  88. # "c", like sunos41c.  Also add -DCK_WREFRESH if your curses library includes
  89. # clearok() and wrefresh() functions (or remove -DNOWREFRESH if the linker
  90. # complains that it can't find these functions).  After building, you still
  91. # have to SET FILE DISPLAY FULLSCREEN to get the formatted screen display.
  92. #
  93. # Please report modifications, failures (preferably with fixes) or successes
  94. # to the author.
  95. #
  96. # TARGETS FOR DIFFERENT UNIX PLATFORMS AND VERSIONS:
  97. #
  98. # + Marks those that have been tested successfully in the current version.
  99. # - Marks those that are known not to work in the current version.
  100. # ? Marks those that worked in a previous version but have not been tested
  101. #     in the current version.
  102. # --------------------------
  103. # ? for 386BSD (Jolix) 0.0, 0.1, "make 386bsd" (see comments in entry),
  104. #     or (preferably, if it works) "make bsd44" or "make bsd44c".
  105. # ? for Acorn RISCiX, "make riscix" or "make riscixgcc"
  106. # ? for Alliant FX/8 with Concentrix 4.1 or later, "make bsdlck"
  107. # ? for Altos 486, 586, 986 with Xenix 3.0, "make altos"
  108. # ? for Altos ACS68000, 8Mhz 68000, UNIX System 3 Rel 2, 512K, "make altos3"
  109. # ? for Amdahl UTS 2.4 on IBM 370 series & compatible mainframes, "make uts24"
  110. # ? for Amdahl UTSV IBM 370 series & compatible mainframes, "make utsv"
  111. # ? for Amdahl UTSV IBM 370 series mainframes with TCP/IP, "make utsvtcp"
  112. # ? for Amdahl mainframes with UNIX System V R 5.2.6b 580, "make sys3"
  113. # ? for Apollo Aegis 9.x, DOMAIN/IX 9.x, "make aegis"
  114. #    (Last tested in C-Kermit 5A(189))
  115. # ? for Apollo DOMAIN/IX, if the above fails, try "make apollobsd"
  116. # ? for Apollo with SR10.0 or later, BSD environment, "make sr10-bsd"
  117. # ? for Apollo with SR10.0 or later, System V environment, "make sr10-s5r3"
  118. # ? for Apple Macintosh II with A/UX pre-3.0, "make aux", "auxgcc" or "auxufs"
  119. # ? for Apple Macintosh with A/UX 3.0 and gcc, "make aux3gcc" or aux3gccc
  120. # + for Apple PowerMac with MkLinux, "make mklinux" (read Linux entry first)
  121. # + for Apple PowerMac with LinuxPPC, "make linuxppc"
  122. # ? for Apple Macintosh with Minix 1.5.10, "make minix68k" or "make minixc68"
  123. # + for Apple Macintosh with Mac OS X 1.0 (Rhapsody), "make macosx10"
  124. #     (no curses), "make macosx10c" (curses), or "make macosx10nc" (ncurses).
  125. #     Or "make macosx10ncx" (ncurses but "make macosx10nc" doesn't work).
  126. # ? for Arix System 90 with AT&T SVR3, "make sys5r3na"
  127. # ? for AT&T 6300 with IN/ix, "make sys5"
  128. # ? for AT&T 6300 PLUS, "make att6300" or (with no debugging) "make att6300nd"
  129. # ? for AT&T 6386 WGS UNIX PC, "make sys5r3"
  130. # + for AT&T 3B2, 3B20 systems, "make att3b2".
  131. #   for AT&T 3B1, 7300 UNIX PC (see notes with the entries):
  132. #     In C-Kermit 7.0, only the gcc entries work:
  133. # +   "make sys3upcg", "make sys3upcgc", "make sys3upcgcm", "make att351gm"
  134. #    The others fail with "too many defines" (usually in ckuusr.h):
  135. # -   "make sys3upc", "make sys3upcold", "make sys3upcc", "make sys3upcx",
  136. #       "make sys3upcm", "make att351m"
  137. # ? for AT&T System III/System V R2 or earlier, "make sys3" or "make sys3nid"
  138. # ? for AT&T System III/System V with Honey DanBer UUCP, "make sys3hdb"
  139. # ? for AT&T System V on DEC VAX, "make sys3" or "make sys5r3"
  140. # + for AT&T System V R3, use "make sys5r3" or "make sys5r3c"
  141. # + for AT&T System V/386 R3.2 built on Interactive 4.1.1, "make sys5r32is".
  142. # ? for AT&T System V/386 R320.0 Versyss Systems, use "make sys5r3"
  143. #     or "make sys5r3c".
  144. # + for AT&T System V R4, "make sys5r4", "make sys5r4sx", or "make sys5r4nx",
  145. #     or if the ANSI C function prototyping makes trouble, add -DNOANSI,
  146. #     as in "sys5r4sxna" entry
  147. # + for AT&T System V R4 with bundled TCP/IP, "make sys5r4netc", ...
  148. # + for AT&T System V R4 with Wollongong TCP/IP, "make sys5r4twg", ...
  149. # + for AT&T (USL) System V R4.2 use the sys5r4* entries.
  150. # ? for Atari Falcon with MiNT, "make posix"
  151. # ? for Atari ST with Minix ST 1.5.10.3, "make minix68k" or "make minixc68"
  152. # ? for BBN C/70 with IOS 2.0, "make c70"
  153. # ? for BeBox with Be OS 1.x DR7, "make beboxdr7"
  154. #     Compiles OK but doesn't link with default linker which is limited to 64K.
  155. #     Links OK with "Code Warrior Gold".  Many hacks in the source code need
  156. #     to be removed when DR8 and later come out.
  157. #     (Last tested in C-Kermit 6.0)
  158. # - for BeBox with Be OS 1.x DR8, "make bebox"
  159. #     (Needed functions missing from operating system and/or not working.)
  160. # - for Bell Labs UNIX Version 6 (6th Edition), there is no makefile entry.
  161. # ? for Bell Labs UNIX Version 7 (7th Edition), "make v7" (but see notes below)
  162. #    (last built successfully in C-Kermit 5A188)
  163. # ? for Bell Labs Research UNIX Version 10, "make bellv10"
  164. #    (last built successfully in C-Kermit 6.0)
  165. # + for Bell Labs / Lucent Plan 9, use separate makefile ckpker.mk:
  166. #    can be built for Intel, MIPS, 680x0, and PowerPC.
  167. # + for BSDI BSD/386 1.x, "make bsdi"
  168. # + for BSDI BSD/OS 2.x, "make bsdi2"
  169. # + for BSDI BSD/OS 3.0 or 3.1, "make bsdi3"
  170. # + for BSDI BSD/OS 4.0, "make bsdi4"
  171. # ? for Berkeley Unix 2.4, "make v7" (but read v7 material below)
  172. # ? for Berkeley Unix 2.9 (DEC PDP-11 or Pro-3xx), "make bsd29"
  173. # - for Berkeley Unix 2.10, use ckubs2.mak (a separate makefile)
  174. # - for Berkeley Unix 2.11, use ckubs2.mak (a separate makefile)
  175. #     This makefile is too big.  Read the instructions in ckubs2.mak.
  176. #     "make -f ckubs2.mak bsd210" or "make - f ckubs2.mak bsd211".
  177. #     (last built successfully in C-Kermit 6.0 - later versions too big)
  178. # + for Berkeley Unix 2.11 "make -f ckubs2.mak bsd210noicp" (no command parser)
  179. # ? for Berkeley Unix 4.1, "make bsd41"
  180. # + for Berkeley Unix 4.2 on VAX, "make bsd42" or "make bsd42c"
  181. # ? for Berkeley Unix 4.2 or 4.3 with HoneyDanBer UUCP, "make bsdhdb"
  182. # + for Berkeley Unix 4.3 on VAX, "make bsd43" or "make bsd43c" 
  183. # + for Berkeley Unix 4.3 without acucntrl program, "make bsd42" or "bsd42c"
  184. #     NOTE: all the C-Kermit 7.0 full builds for old BSDs fail with
  185. #     "too many defines" in CPP, even on big architectures like VAX.  This
  186. #     can be worked around with a clever ruse.  See comments at target.
  187. # + for Berkeley Unix 4.3, command-line only, "make bsdm".
  188. # + for Berkeley Unix 4.3-Tahoe, same as 4.3 BSD
  189. # + for Berkeley Unix 4.3-Reno, "make bsd43" or "make bsd44" or "make bsd44c"
  190. # + for Berkeley Unix 4.3-Carson City, "make bsd44" or "make bsd44c"
  191. # + for Berkeley Unix 4.4-Networking/2 or -Alpha, "make bsd44" or "make bsd44c"
  192. # + for Berkeley Unix 4.4, "make bsd44" or "make bsd44c"
  193. # + for Berkeley Unix 4.4-Lite, "make bsd44" or "make bsd44c"
  194. # ? for Bull DPX/2 with BOS/X, "make bulldpx2"
  195. # ? for Cadmus, "make sys3"
  196. # ? for Callan Unistar, "make sys3"
  197. # ? for CDC VX/VE 5.2.1 System V emulation, "make vxve"
  198. # ? for Charles River Data Systems Universe 680x0 with UNOS 9.2, maybe
  199. #     also other UNOS versions, "make crds"
  200. # ? for CIE Systems 680/20 with Regulus, "make cie"
  201. # + for Commodore Amiga 3000UX Sys V R4, "make sys5r4sx"
  202. # + for Commodore Amiga 3000UX Sys V R4 and TCP/IP, "make svr4amiganet"
  203. # ? for Commodore Amiga with Minix 1.5.10, "make minix68k" of "make minixc68"
  204. # ? for Concurrent/Masscomp with RTU 4.0 or later, BSD environment, "make
  205. #     rtubsd", "make rtubsd2", "make rtubsd3" (depending on where ndir.h
  206. #     is stored, see entries below).
  207. # ? for Concurrent/Masscomp with RTU 4.0 or later, System V R2, "make rtus5"
  208. # ? for Concurrent/Masscomp with RTU 5.0 or later, System V R3, "make rtusvr3"
  209. # ? for Concurrent (Perkin-Elmer) 3200 series, "make sys5".
  210. # ? for Concurrent (Perkin-Elmer) 3200 series with <dirent.h>, "make ccop1"
  211. # ? for Consensys UNIX SV/386 R4V3, "make sys5r4sxtcpc" or "make sys5r4sx"
  212. # ? for Convergent with CTIX Sys V R2, "make sys5"
  213. # ? for Convergent with CTIX 6.4.1, "make ctix"
  214. # ? for Convex C1, "make convex"
  215. # ? for Convex C210 with Convex/OS 8, "make convex8"
  216. # ? for Convex C2 with Convex/OS 9.1, "make convex9"
  217. # ? for Convex C2 with Convex/OS 10.1 and gcc 2.x, "make convex10gcc"
  218. # ? for Cray Research X/MP or YMP or C90 with UNICOS 6.x (System V R3),
  219. #    "make cray"
  220. # ? for Cray Research X/MP or YMP or C90 with UNICOS 7.x (System V R4),
  221. #    "make cray"
  222. # ? for Cray Research X/MP or YMP or C90 with UNICOS 8.0 Alpha, "make cray8"
  223. # ? for Cray Computer Cray-2 or Cray3 with CSOS, "make craycsos"
  224. # ? for Cyber 910 (Silicon-Graphics Iris) with Irix 3.3, "irix33"
  225. # ? for Data General AViiON with DG/UX 5.4R3.xx or later, "make dgux543c"
  226. # ? for Data General AViiON with DG/UX 5.4 before R3.00, "make dgux540"
  227. #     or "make dgux540c" (compile ckwart separately if necessary)
  228. # + for DG/UX 5.4 on AViiON Intel models, "make dgux540i" or dgux540ic.
  229. # ? for DG/UX 5.4R4.11 on AViiON, all models, "make dgux54411"
  230. # + for DG/UX 5.4R4.20 on AViiON, all models, "make dgux54420"
  231. # + for Data General AViiON with DG/UX 4.3x using Sys V-isms, "make dgux430"
  232. # ? for Data General AViiON with DG/UX 4.3x using BSD-isms, "make dgux430bsd"
  233. # ? for Data General AViiON, earlier UNIX versions,
  234. #     "make sys5r3" (maybe compile ckwart separately, or "touch ckcpro.c")
  235. # ? for Data General MV systems with DG/UX, ???
  236. # ? for Data General MV systems with MV/UX, use AOS/VS C-Kermit (CKDKER.MAK)
  237. # + for Data General MV systems with AOS/VS, use CKDKER.MAK.
  238. #   for DEC PDP-11 with Berkeley UNIX 2.x, see Berkeley UNIX 2.x.
  239. # ? for DEC PDP-11 with Mini-UNIX (Bell 6th Edition for PDP-11 with no MMU),
  240. #     probably no way to fit C-Kermit without I&D space.
  241. # ? for DEC PDP-11 with Ultrix-11 3.x, ??? (probably needs overlays)
  242. # ? for DEC VAX with Ultrix 1.x "make bsd"
  243. # ? for DEC VAX with Ultrix 2.x "make ultrix2s"
  244. # ? for DEC VAX or DECstation with Ultrix 3.0, 3.1, "make ultrix3x"
  245. # ? for DECstation or VAX with Ultrix 4.0 or 4.1, "make ultrix40"
  246. # ? for DECstation or VAX with Ultrix 4.2, "make ultrix42" or "make ultrix42c"
  247. # ? for DECstation or VAX with Ultrix 4.2, Sys V R4 world, "make du42s5r4"
  248. # ? for DECstation or VAX with Ultrix 4.x, POSIX world, "make posix"
  249. # + for DECstation or VAX with Ultrix 4.3, "make ultrix43".
  250. # + for DECstation or VAX with Ultrix 4.4, "make ultrix44".
  251. # ? for DECstation 5000/50, /150 or /260 (R4x00 MIPS CPU), Ultrix 4.3A or later
  252. #     "make ultrix43-mips3" or "make ultrix43c-mips3"
  253. # ? for DECstation (MIPS) with Berkeley Sprite, "make bsd44"?
  254. # ? for DECstation (MIPS) with OSF/1 V1.0 to 1.3, "make dec-osf"
  255. # ? for DEC Alpha with OSF/1 1.0 to 1.3, "make dec-osf"
  256. # ? for DEC PC 486 with OSF/1, "make dec-osf"
  257. # ? for DEC Alpha with OSF/1 2.x, "make dec-osf20"
  258. # + for DEC Alpha with OSF/1 3.0, "make dec-osf30"
  259. # + for DEC Alpha with Digital UNIX 3.2, "make du32"
  260. # + for DEC Alpha with Digital UNIX 4.0, "make du40" or "make du40gcc"
  261. # + for DEC Alpha with Digital UNIX 5.0, "make du50"
  262. # - for DEC Pro-350 with Pro/Venix V1.x, "make provx1" (version 5A is too big)
  263. # ? for DEC Pro-380 with Pro/Venix V2.0 (Sys V), "make sys3" or "make sys3nid"
  264. # ? for DEC Pro-380 with 2.9, 2.10, or 2.11 BSD, "make bsd29" or "make bsd210"
  265. #   for DEC PDP-11 with 2.xBSD (use separate makefile ckubs2.mak)
  266. # ? for Dell UNIX Issue 2.x (= USL Sys V/386 R4.x + fixes), "make dellsys5r4"
  267. #     or "make dellsys5r4c" (last tested in C-Kermit 5A).
  268. # ? for DIAB DS90 with DNIX (any version) create an empty <sys/file.h> if
  269. #     this file does not already exist (or add -DNOFILEH to the make entry).
  270. # ? for DIAB DS90 or LUXOR ABC-9000 with pre-5.2 DNIX, add "getcwd" to libc.a
  271. #     (see ckuins.txt), then "make dnixold".
  272. # ? for DIAB DS90 with DNIX 5.2 (Sys V.2) or earlier, "make dnix",
  273. #     "make dnixnd", or (to add curses and TCP/IP) "make dnixnetc",
  274. # ? for DIAB DS90 with DNIX 5.3 (Sys V.3), "make dnix5r3"
  275. # ? for DIAB DS90 with DNIX 5.3 (Sys V.3) and TCP/IP, "make dnix5r3net"
  276. # ? for DIAB DS90 with DNIX 5.3 2.2 (Sys V.3), ANSI C, "make dnix5r3ansi"
  277. #     or, to include TCP/IP, "make dnix5r3ansinet",
  278. #     but you have to fix a bug in /usr/include/stdlib.h first:
  279. #     change "extern void free(char *str);" to "extern void free(void *str);"
  280. # ? for Dolphin Server Technology Triton 88/17 with SV/88 R3.2, "make sv88r32"
  281. # ? for Encore Multimax 310, 510 with Umax 4.2, "make umax42"
  282. # ? for Encore Multimax 310, 510 with Umax 4.3, "make umax43"
  283. # ? for Encore Multimax 310, 510 with Umax V 2.2, use Berkeley cc, "make bsd"
  284. # ? for Encore 88K with Umax V 5.2, "make encore88k"
  285. # ? for ESIX System V R4.0.3 or 4.04 with TCP/IP support, "make esixr4"
  286. #     NOTE: You can also build on Unixware 2.x with "make esixr4", and run
  287. #     on ESIX, but there you must first:
  288. #       ln /usr/lib/libsocket.so /usr/lib/libsocket.so.1
  289. #       ln /usr/lib/libnsl.so /usr/lib/libnsl.so.1
  290. #     (This worked for C-Kermit 6.0 but does not work for 7.0)
  291. #     (But you can probably still build a non-networking version this way)
  292. # ? for Everex STEP 386/25 Rev G with ESIX Sys V R3.2D, "make sys5r3"
  293. # ? for Fortune 32:16, For:Pro 1.8, "make ft18"
  294. # ? for Fortune 32:16, For:Pro 2.1, "make ft21"
  295. # ? for FPS 500 with FPX 4.1, "made bsd"
  296. # ? for FreeBSD 1.0, "make freebsd"
  297. # + for FreeBSD 2.x, "make freebsd2" (ncurses) or "make freebsd2c" (curses)
  298. # + for FreeBSD 3.x, "make freebsd3" (ncurses) or "make freebsd3c" (curses)
  299. # + for FreeBSD 4.x, "make freebsd4"
  300. # ? for Harris HCX-2900, "make sys5r3"
  301. # ? for Harris Night Hawk 88K or 68K with CX/UX pre-6.1, "make sys5r3"
  302. # ? for Harris Night Hawk 88K or 68K with CX/UX 6.1 or later, "make cx_ux"
  303. # ? for Heurikon, "make sys3"
  304. # ? for HP-3000, MPE/ix, "make posix"?
  305. # + for HP-9000 Series 300 with 4.4BSD, "make bsd44"
  306. # + for HP-9000 Series 500, HP-UX 5.21 with WIN/TCP 1.2 "make hpux500wintcp"
  307. # + for HP-9000 Series, HP-UX < 6.5, without long filenames, no job control,
  308. #     "make hpuxpre65"
  309. # + for HP-9000 Series, HP-UX pre-7.0, without long filenames, "make hpux"
  310. # + for HP-9000 Series, HP-UX 6.5, without long filenames,
  311. #     "make hpux65" or "make hpux65c"
  312. # + for HP-9000 Series, HP-UX 7.0 or later, no long filenames, "make hpux70sf"
  313. #     or (to include tcp/ip, curses, etc) "make hpux70sftcpc"
  314. # + for HP-9000 Series with HP-UX Sys V R2, BSD long names, "make hpuxlf"
  315. # + for HP-9000 Series with HP-UX Sys V R2, dirent long names, "make hpuxde"
  316. #     or (to include TCP/IP support) "make hpuxdetcp"
  317. # + for HP-9000 Series with HP-UX Sys V R3, "make hpuxs5r3"
  318. # + for HP-9000 Series with HP-UX 7.0, TCP/IP, long filenames, "make hpux70lfn"
  319. # + for HP-9000 300/400 Series (680x0) with HP-UX 8.0, TCP/IP, "make hpux80"
  320. #      or "make hpux80c"
  321. # + for HP-9000 700/800 Series (PA-RISC), HP-UX 8.0, TCP/IP, "make hpux80pa"
  322. #      or "make hpux80pac"
  323. # + for HP-9000 Series with HP-UX 8.0, no TCP/IP, long filenames,
  324. #      "make hpux80notcp" or "make hpuxde"
  325. # + for HP-9000 Series, HP-UX 9.0 - 9.10, TCP/IP, curses, restricted compiler
  326. #     (no optimization, no ANSI), all models, "make hpux90".  Read the hpux90
  327. #     entry below for more info.
  328. # + for HP-9000 700 and 800 Series, HP-UX 9.x, TCP/IP, curses,
  329. #     HP optimizing ANSI C compiler, "make hpux90o700".
  330. # + for HP-9000 with Motorola CPUs, HP-UX 9.x, TCP/IP, curses,
  331. #     HP optimizing ANSI C compiler, "make hpux90mot".
  332. # + for HP-9000 on other CPUs, HP-UX 9.x, TCP/IP, curses,
  333. #     HP optimizing ANSI C compiler, "make hpux90o".
  334. # + for HP-9000 series, HP-UX 9.x, TCP/IP, curses, gcc, all models,
  335. #     "make hpux90gcc"
  336. # + for HP-9000 700/800 Series, HP-UX 10.00,10.01,10.10,10.20,10.30, TCP/IP,
  337. #     curses, restricted compiler (no optimization, no ANSI) "make hpux100".
  338. # + for HP-9000 700/800 Series, HP-UX 10.00,10.01,10.10,10.20,10.30, TCP/IP,
  339. #     curses, HP ANSI/optimizing compiler "make hpux100o" or "make hpux100o+"
  340. # + for Trusted HP-UX 10.xx "make hpux100t", "make hpux100to", make hpux100to+"
  341. # + for HP-9000 700/800 Series, HP-UX 11.00,TCP/IP,curses, restricted compiler
  342. #     (no optimization, no ANSI) "make hpux110".
  343. # + for HP-9000 700/800 Series, HP-UX 11.00,TCP/IP,curses, restricted compiler
  344. #     HP ANSI/optimizing compiler "make hpux110o" or "make hpux110o+"
  345. # + for Trusted HP-UX 11.xx "make hpux110t", "make hpux110to", make hpux110to+"
  346. # + for HP-9000 PA-RISC models with NeXTSTEP 3.3, "make nextquadfat".
  347. # + for HP-9000 PA-RISC models with OPENSTEP/Mach 4.1, "make nextquadfat".
  348. # ? for IBM 370 Series with IX/370, "make ix370"
  349. # ? for IBM 370 Series with AIX/370 1.2, "make aix370"
  350. # ? for IBM 370 Series with AIX/370 3.0, "make aix370"
  351. # ? for IBM 370 Series with AIX/ESA 2.1, "make aixesa"
  352. # - for IBM PC/AT 286 & compatibles with Mark Williams Coherent OS,
  353. #     command-line-only version, "make coherent" (version 5A & later too big)
  354. # ? for IBM PC 386 & compatibles with Mark Williams Coherent OS,
  355. #     minimum interactive version, "make coherentmi"
  356. # ? for IBM PC 386 & compatibles with Mark Williams Coherent OS,
  357. #     full interactive version, prior to v4.2, "make coherentmax"
  358. # + for IBM PC 386 & compatibles with Mark Williams Coherent OS 4.2,
  359. #     "make coherent42"
  360. # ? for IBM PC 386 & compatibles with LynxOS 2.0 or 2.1, "make lynx21"
  361. # ? for IBM PC 386 & compatibles with LynxOS 2.2, "make lynx"
  362. # - for IBM PC/AT & compatibles with original MINIX, "make minix" (too big)
  363. # ? for IBM PC family, 386-based, with MINIX/386 1.5, "make minix386"
  364. #     or if you have GNU CC, "make minix386gcc"
  365. # + for IBM PC family, 386-based, with MINIX 2.0, "make minix20"
  366. # + for IBM PS/2 with PS/2 AIX 1.0, 1.1, or 1.2, "make ps2aix" or ps2aixnetc.
  367. # ? for IBM PS/2 with PS/2 AIX 1.3, "make ps2aix3"
  368. # ? for IBM RISC System/6000 with AIX 3.0, "make aix30"
  369. # ? for IBM RISC System/6000 with AIX 3.1.x, "make aix31"
  370. # + for IBM RISC System/6000 with AIX 3.2.0 thru 3.2.5, "make aix32"
  371. # + for IBM RS/6000 or Power Series with AIX 4.1 or AIX 4.1.1, "make aix41"
  372. # + for IBM RS/6000 or Power Series with AIX 4.1 with X.25, "make aix41x25"
  373. # + for IBM RS/6000 or Power Series with AIX 4.2, "make aix42"
  374. # + for IBM RS/6000 or Power Series with AIX 4.3, "make aix43"
  375. # ? for IBM RT PC with AIX 2.1, "make sys3"
  376. # ? for IBM RT PC with AIX 2.2.1, "make rtaix" or "make rtaixc"
  377. # ? for IBM RT PC with ACIS 4.2, "make bsd"
  378. # ? for IBM RT PC with ACIS 4.3, "make rtacis" or "make bsd KFLAGS=-DNOANSI"
  379. # ? for IBM RT PC with 4.3BSD/Reno, "make bsd44" or "make bsd44c"
  380. # ? for ICL DRS400 or 400E, "make iclsys5r3"
  381. # ? for ICL DRS3000 (80486) with DRS/NX, "make iclsys5r4_486"
  382. # ? for ICL DRS6000 (SPARC) with DRS/NX, "make iclsys5r4"
  383. # + for ICL DRS6000 (SPARC) with DRS/NX 4.2MP 7MPlus, "make iclsys5r4m+"
  384. # ?     Ditto but with IKSD support included, "make iclsys5r4m+iksd"
  385. # ? for Integrated Solutions Inc V8S VME 68020, "make isi"
  386. # ? for Intel 302 with Bell Tech Sys V/386 R3.2, "make sys5r3"
  387. # ? for Intel Xenix/286, "make sco286"
  388. # ? for Interactive System III (PC/IX), "make pcix" or "make is3"
  389. # ? for Interactive System III (PC/IX) with gcc, "make is3gcc"
  390. # ? for Interactive 386/ix 1.0.6 with TCP/IP networking, "make is5r3net2"
  391. # ? for Interactive 386/ix 2.0.x, "make is5r3" or (POSIX) "make is5r3p"
  392. # ? for Interactive 386/ix 2.0.x with TCP/IP networking, "make is5r3net"
  393. #     or "make is5r3net2"
  394. # ? for Interactive 386/ix 2.2.1, job control, curses, no net, gcc,
  395. #     "make is5r3gcc"
  396. # + for Interactive UNIX Sys V R3.2 V2.2 - 4.0 without TCP/IP, "make is5r3jc"
  397. # + for Interactive UNIX Sys V R3.2 V2.2 - 4.0 with TCP/IP, "make is5r3netjc"
  398. # + for Intergraph Clipper, "make clix" or "make clixnet"
  399. # ? for Jolix (see 386BSD)
  400. # + for Linux on PowerMac (Mklinux DR3), "make mklinux".
  401. # + for Linux 1.2 and later, "make linux".  Uses ncurses.  This version
  402. #     handles serial speeds up to 460800 bps, Linux FSSTD 1.2, TCP/IP, and
  403. #     should work on both libc and glibc systems.  For static linking, use
  404. #     "make linux LNKFLAGS=-static".  Please read the comments that accompany
  405. #     the linux entry.
  406. # + for Linux builds that fail with "sys/select.h: No such file or directory",
  407. #     "make linuxns"
  408. # + for Linux 1.2 and later but with curses.h and libcurses (rather than
  409. #     ncurses.h and libncurses), use "make linuxc".
  410. # + for Linux 1.2 and later with no curses support at all, "make linuxnc".
  411. # + for Linux 1.2 and later, to build with egcs, "make linuxegcs".
  412. # + for Linux with no TCP/IP, "make linuxnotcp"
  413. # + for Linux with lcc compiler, no TCP/IP, "make linuxnotcp-lcc"
  414. # ? for Linux 1.0 or earlier, "make linux10", or (to remove TCP/IP)
  415. #     "make linuxnotcp".  For static linking, use "make linuxs".
  416. #     IMPORTANT: Read the comments that accompany the "linux:" entry.
  417. # ? for Luxor ABC-9000 (DIAB DS-90) with pre-5.2 DNIX, add "getcwd" to libc.a
  418. #     (see ckuins.txt), then "make dnixold".
  419. # ? for Mach 2.6 on (anything, e.g. DECstation), "make bsd42" or "make bsd43".
  420. # ? for MachTen (Tenon) 2.1.1.D on (e.g.) Apple Powerbook, "make machten".
  421. # ? for Masscomp RTU AT&T System III, "make rtu"
  422. #   for other Masscomp, see Concurrent.
  423. # ? for Microport SV/AT (System V R2), "make mpsysv" (last edit tested: 144)
  424. # ? for Microport SVR4 2.2, 3.1, or 4.1 "make sys5r4sx"
  425. # ? for Microsoft,IBM Xenix (/286, PC/AT, etc), "make xenix" or "make sco286"
  426. # ? for MIPS System with RISC/os (UMIPS) 4.52 = AT&T SVR3, "make mips"
  427. #     or "make mipstcpc"
  428. # + for MkLinux on Power Macintosh, "make mklinux"
  429. # ? for Modcomp 9730, Real/IX, "make sys5r3" (or modify to use gcc = GLS cc)
  430. # ? for Modcomp Realstar 1000 with REAL/IX D.1, "make sv88r32"
  431. # ? for Motorola Four Phase, "make sys3" or "make sys3nid"
  432. # + for Motorola Delta System V/68 R3, "make sv68r3"
  433. # + for Motorola Delta System V/68 R3V5, "make sv68r3v5"
  434. # + for Motorola Delta System V/68 R3V5.1, "make sv68r3v51"
  435. # + for Motorola Delta System V/68 R3V6 with NSE TCP/IP, "make sv68r3v6"
  436. # + for Motorola Delta System V/88 R32, "make sv88r32"
  437. # + for Motorola Delta System V/88 R40, "make sv88r40"
  438. # ? for Mt Xinu Mach386 on 386/486-based PCs, "make bsd43"
  439. # ? for NCR Tower 1632, OS 1.02, "make tower1"
  440. # ? for NCR Tower 1632 or Minitower with System V R2, "make sys3"
  441. #     or "make sys3nv"
  442. # ? for NCR Tower 32, OS Release 1.xx.xx, "make tower32-1"
  443. # ? for NCR Tower 32, OS Release 2.xx.xx, "make tower32-2"
  444. # ? for NCR Tower 32, OS Releases based on Sys V R3, "make tower32"
  445. # ? for NCR Tower 32, OS Releases based on Sys V R3 with gcc "make tower32g"
  446. # ? for NCR System 3000, AT&T UNIX System V R4 2.0, "make sys5r4sxna"
  447. # ? for NCR System 3000, AT&T UNIX System V R4 2.0 with Wollongong TCP/IP,
  448. #     "make sys5r4net2" or "make sys5r4net2c".
  449. #      Some header files might be misplaced; try this:
  450. #       ln /usr/include/netinet/in.h /usr/include/sys/in.h
  451. #       ln /usr/include/arpa/inet.h /usr/include/sys/inet.h
  452. #       ln /usr/include/sys/termiox.h /usr/include/termiox.h
  453. # ? for NCR System 3000, NCR UNIX 02.02.01, same as above.
  454. # + for NCR MP-RAS System V R4 V2.03 or 3.02, "make mpras" or "make mprastcpc"
  455. # + for NetBSD 1.0-3.x on PC 386/486, Sparc, ..., "make netbsd"
  456. #     or (ncurses) "make netbsdn"
  457. #     or "make netbsdnoiksd" (no IKSD).
  458. # + for NeXT with NeXTSTEP 1.0 through 3.2, "make next" (on a NeXT)
  459. # + for NeXT with NeXTSTEP 3.3, "make next33"
  460. # ? for NeXT with OPENSTEP/Mach 4.1, "make nextquadfat".
  461. # + for NeXT with OPENSTEP/Mach 4.2, "make openstep42".
  462. # ? for NeXTSTEP/486, "make next" (on a PC)
  463. # ? for NeXTSTEP portable binary (runs on Intel or Motorola), "make nextfat"
  464. # ? for NeXTSTEP portable binary (Intel, Motorola, HP PA-RISC, or SPARC),
  465. #     "make nextquadfat"
  466. # ? for Nixdorf Targon/31, "make t31tos40x"
  467. # ? for Norsk Data Uniline 88/17 with SV/88 R3.2, "make sv88r32"
  468. #   for Novell UnixWare - see UnixWare
  469. # ? for OSF/1 (vanilla, from OS/F), "make posix"
  470. # ? for OkiStation 7300 Series, "make sys5r4sxtcp"
  471. # ? for Olivetti LSX-3020 with X/OS R.2.3, "make xos23" or "make xos23c"
  472. # + for OpenBSD, "make openbsd"
  473. # ? for OPENSTEP/Mach 4.1, "make nextquadfat" (NeXT, Intel, PA-RISC, SPARC)
  474. # + for OPENSTEP/Mach 4.2, "make openstep42" (tested on NeXT)
  475. # ? for Perkin-Elmer (Concurrent) 3200 series, "make sys5".
  476. # ? for Perkin-Elmer (Concurrent) 3200 series with <dirent.h>, "make ccop1"
  477. # ? for Perkin-Elmer/Concurrent 3200 with Xelos R02, "make ccop1"
  478. # ? for PFU Compact A Series SX/A TISP V10/E50 (Japan), "make sxae50"
  479. # ? for Plexus, "make sys3"
  480. # + for Pyramid 9XXX (e.g. 9845) or MIServer T series, OSx 4.4b thru 5.1,
  481. #     "ucb make pyramid" or for HDB UUCP, "ucb make pyramid-hdb" or:
  482. # + for Pyramid MIServer S or ES Series, DataCenter/OSx, "make pyrdcosx"
  483. # + for Pyramid MIS-S MIPS R3000, DataCenter OSx System V R4, "make pyrdcosx"
  484. # + for POSIX on anything, "make posix" (but adjustments might be necessary).
  485. # + for POSIX on SunOS 4.1 or later, "make sunposix"
  486. # ? for Prime 8000 MIPS, SVR3, "make mips" or "make mipstcpc"
  487. # - for QNX 2.x (sorry we don't have a version of C-Kermit for QNX 2.x)
  488. # ? for QNX 4.0 or 4.1, 16-bit, on 286 PC, Watcom C 8.5, "make qnx16_41"
  489. # + for QNX 4.21 - 4.22A (286+), and 4.23 (386+), or higher, 16-bit,
  490. #     Watcom C 9.5x or higher, "make qnx16"
  491. # + for QNX 4.21 and above, 32-bit, 386 or above, Watcom C 10.6, "make qnx32"
  492. #     NOTE: ("make qnx" == "make qnx32")
  493. # + for QNX Neutrino 2+, "make qnx_nto2+"
  494. # ? for Ridge 32 (ROS3.2), "make ridge32"
  495. # ? for Samsung MagicStation, "make sys5r4"
  496. # ? for SCO Xenix 2.2.1 with development system 2.2 on 8086/8 "make sco86"
  497. # ? for SCO Xenix/286 2.2.1 with development system 2.2 on 80286, "make sco286"
  498. #     NOTE: reportedly this makefile is too long for SCO Xenix/286 make, but it
  499. #     works with "makeL", or if some of the other make entries are edited out.
  500. # ? for SCO Xenix/386 2.2.2, "make sco386"
  501. # ? for SCO Xenix/386 2.3.x, "make sco3r2" or "make sco3r2x"
  502. # ? for SCO Xenix/386 SCO 2.3.3 or 2.3.4 with gcc 1.37 or later,
  503. #     "make sco386gcc" or (to add curses) "make sco386gccc".
  504. # ? for SCO Xenix/386 or UNIX/386 with Excelan TCP/IP, "make sco3r2net"
  505. #     or (to add curses support) "make sco3r2netc" or "sco386netc"
  506. # + for SCO XENIX 2.3.4, "make sco234" or "make sco234c" to add curses.
  507. # + for SCO XENIX 2.3.4 with SCO TCP/IP & curses, "make sco234netc".
  508. # ? for SCO Xenix 2.3.x with Racal-InterLan TCP/IP, "make sco3r2netri"
  509. #   for other UNIX varieties with Racal Interlan TCP/IP, read sco3r2netri entry
  510. # ? for SCO Xenix 2.3.x with SCO (Lachman) TCP/IP, "make sco3r2lai"
  511. #     or (to add curses) "make sco3r2laic"
  512. #   for SCO UNIX...  ALSO READ COMMENTS in the SCO UNIX entries for more info!
  513. # ? for SCO UNIX/386 3.2.0 or 3.2.1, "make sco3r2" or "make sco3r2x"
  514. # ? for SCO UNIX/386 3.2.2, "make sco3r22" or "make sco3r22gcc"
  515. #     or "make sco3r22c"
  516. # ? for SCO UNIX/386 3.2.2 with SCO TCP/IP, "make sco3r22net"
  517. #     or "make sco3r22netc" (curses)
  518. # ? for SCO ODT 1.1, "make sco3r22net" or "make sco3r22netc" (curses)
  519. # + for SCO UNIX/386 3.2 V4.x, no network support, "make sco32v4"
  520. # +   or "make sco32v4ns" (this one uses no select() or sockets library)
  521. # + for SCO UNIX/386 3.2 V4.x with TCP/IP, "make sco32v4net"
  522. #     (also sco32v4gcc, sco32v4netgcc)
  523. # + for SCO UNIX/386 3.2 V5.0 - see SCO OpenServer.
  524. # + for SCO UNIX 3.2v4.x with TCP/IP, <dirent.h> for Extended Acer File
  525. #     System (EAFS), curses, ANSI C compilation, "make sco32v4net"
  526. # +   or (to use select()-based CONNECT module) "make sco32v4netx".
  527. # + for SCO UNIX 3.2v4.2, "make sco-odt30"
  528. # + for SCO MPX 3.0 - The SCO UNIX binary runs on the corresponding MPX system.
  529. #
  530. # NOTE: Also see below for other entries that are variations on these.
  531. # Also be sure to read the comments accompanying each SCO entry.
  532. #
  533. # + for SCO ODT 2.0, "make sco32v4net"
  534. # + for SCO ODT 3.0, "make sco-odt30"
  535. # + for SCO OpenServer 5.0 (OSR5), "make sco32v500"
  536. # + for SCO OpenServer 5.0 (OSR5) with networking, "make sco32v500net"
  537. # + for SCO OpenServer 5.0 (OSR5), gcc, "make sco32v500gcc"
  538. # + for SCO OpenServer 5.0 (OSR5), gcc, with networking, "make sco32v500netgcc"
  539. # + for SCO OpenServer 5.0 (OSR5), as above, ELF, "make sco32v500netgccelf"
  540. # + for SCO OpenServer 5.0.4, use "make sco32v504xxx" entries as above.
  541. # + for SCO OpenServer 5.0.5, use "make sco32v505xxx" entries as above.
  542. # + for SCO OpenServer 5.0.5 with UDK, use "make sco32v505udk".
  543. #  (for SCO UnixWare - see UnixWare)
  544. # ? for Sequent with DYNIX/ptx 1.2.1, "make dynixptx12"
  545. # ? for Sequent with DYNIX/ptx 1.3 or 1.4 with TCP/IP, "make dynixptx13"
  546. # ? for Sequent with DYNIX/ptx 2.0 or 2.1 with TCP/IP, "make dynixptx20"
  547. #     or "dynixptx20c"
  548. # + for Sequent with DYNIX/ptx 2.1.6 on i486, "dynixptx216c"
  549. # ? for Sequent with DYNIX/ptx V4.1.3 with TCP/IP, "make dynixptx41c"
  550. # + for Sequent with DYNIX/ptx V4.4.2 with TCP/IP, "make dynixptx44"
  551. # ? for Sequent Balance 8000 or B8 with DYNIX 3.0.xx, "make dynix3"
  552. #    or "make dynix3noacu"
  553. # ? for Sequent Symmetry S81 with DYNIX 3.0.xx, "make dynix3"
  554. # ? for Sequent DYNIX 3.1.xx, "make dynix31" or "make dynix31c"
  555. # + for Siemens/Nixdorf SINIX-L Intel V5.41, "make sinix541i"
  556. # + for Siemens/Nixdorf SINIX-N MIPS V5.42, "make sinix542"
  557. # + for Siemens/Nixdorf SINIX-Z Intel V5.42, "make sinix542i"
  558. # + for Siemens/Nixdorf Reliant UNIX V5.43, "make sni543"
  559. # + for Siemens/Nixdorf Reliant UNIX V5.44, "make sni544"
  560. # ? for Silicon Graphics Iris System V IRIX 3.2 or earlier, "make iris"
  561. # ? for Silicon Graphics Sys V R3 with IRIX 3.3 or later, "make sys5r3"
  562. # ? for Silicon Graphics Iris Indigo with IRIX 4.0 or 5.0, "make irix40" or
  563. #     (to include Yellow Pages and Curses) "make irix40ypc"
  564. # ? for Silicon Graphics Iris Indigo or Elan with IRIX 4.0.x with microcode
  565. #     optimization and -O4, "make irix40u" or "irix40uc" (and read notes
  566. #     accompanying these entries).
  567. # + for Silicon Graphics IRIX 5.1, "make irix51"
  568. # + for Silicon Graphics IRIX 5.2, "make irix52"
  569. # + for Silicon Graphics IRIX 5.3, "make irix53"
  570. # + for Silicon Graphics IRIX 6.0, "make irix60".
  571. # + for Silicon Graphics IRIX 6.2, "make irix62".
  572. # + for Silicon Graphics IRIX 6.3, "make irix63".
  573. # + for Silicon Graphics IRIX 6.4, "make irix64" or "make irix64gcc".
  574. # + for Silicon Graphics IRIX 6.5, "make irix65".
  575. # + for SGI IRIX 6.5.5 (new company name) "make irix65"
  576. # ? for Solaris 2.0-2.3 on SPARC or Intel, SunPro CC, "make solaris2x",
  577. # ?   or to add SunLink X.25 8.0x support, "make solaris2x25".
  578. # + for Solaris 2.4 build with gcc, "make solaris24g".
  579. # + for Solaris 2.0-2.3 on SPARC or Intel, GNU CC, "make solaris2xg".
  580. # + for Solaris 2.4 with X.25, "make solaris24x25".
  581. # + for Solaris 2.5 on SPARC or Intel, SunPro CC, "make solaris25".
  582. # +   or to add SunLink X.25 8.0x support, "make solaris25x25".
  583. # + for Solaris 2.5 on SPARC or Intel, GNU CC, "make solaris25g".
  584. # + for Solaris 2.6 on SPARC or Intel, "make solaris26".
  585. # + for Solaris 7 (a.k.a. 2.7) on SPARC or Intel, "make solaris7".
  586. # + for Solbourne 4/500 with OS/MP 4 "make sunos4"
  587. # + for Solbourne 4/500 with OS/MP 4.1 "make sunos41" or "make sunos41c"
  588. # ? for SONY NEWS with NEWS-OS 4.0.1C, "make sonynews"
  589. # ? for SONY NEWS with NEWS-OS 4.1.2C, "make sonynews"
  590. # ? for Sperry/UNISYS 5000/20, UTS V 5.2 3R1, "make sys5"
  591. # ? for Sperry/UNISYS 5000/30/35/50/55, UTS V 5.2 2.01, "make unisys5r2"
  592. # ? for Sperry/UNISYS 5000/80 with System V R3, "make sys5r3"
  593. # ? for Sperry/UNISYS 5000/95 with System V R3, "make sys5r3"
  594. #     For UNISYS SVR3 it might be necessary to "make sys5r3 KFLAGS=-UDYNAMIC"
  595. # ? for Stardent 1520, "make sys5r3"
  596. # ? for Stratus FTX 2.x, try "make ftx" or else "make sys5r4" or "sys5r4sx"
  597. # + for Stratus FTX 3.x, PA-RISC 1.0 or 2.0, "make ftx" or "make ftxtcp"
  598. # ? for Sun with Sun UNIX 3.5 and gcc, "make sunos3gcc"
  599. # ? for Sun with pre-4.0 SunOS versions, "make bsd" (or appropriate variant)
  600. # ? for Sun with SunOS 4.0, BSD environment, "make sunos4"
  601. # ? for Sun with SunOS 4.0, BSD, with SunLink X.25, make sunos4x25
  602. # ? for Sun with SunOS 4.0, AT&T Sys V R3 environment, "make sunos4s5"
  603. # + for Sun with SunOS 4.1 or 4.1.1, BSD environment, "make sunos41"
  604. #     or "make sunos41c" (curses) or "make sunos41gcc" (compile with gcc)
  605. # + for Sun with SunOS 4.1.x, BSD, with SunLink X.25 7.00 or earlier,
  606. #     "make sunos41x25" or "make sunos41x25c" (curses)
  607. # + for Sun with SunOS 4.1, 4.1.1, AT&T Sys V R3 environment, "make sunos41s5"
  608. # + for Sun with SunOS 4.1, 4.1.1, POSIX environment, "make sunposix"
  609. # + for Sun with SunOS 4.1.2, "make sunos41" or any of its variations.
  610. #     NOTE:  All SunOS 4.x systems -- Shared libraries are used by default.
  611. #       If this causes problems, add -Bstatic to CFLAGS.
  612. #     NOTE2: When building C-Kermit under SunOS for the BSD universe,
  613. #       but /usr/5bin/cc is ahead of /usr/ucb/cc in your PATH, add
  614. #       "CC=/usr/ucb/cc CC2=/usr/ucb/cc" to the make entry.
  615. #     NOTE3: If an executable built on one type of Sun hardware does not work
  616. #       on another type, rebuild the program from source on the target machine.
  617. #   for Sun with Solaris 1.x use SunOS 4.1 entries.
  618. #   for Sun with Solaris 2.0 and higher use Solaris entries.
  619. # + for Sun SPARC with Linux, "make linux"
  620. # ? for Sun SPARC with OPENSTEP/Mach 4.1, "make nextquadfat"
  621. # ? for Sun SPARC with OPENSTEP/Mach 4.2, "make openstep42"
  622. # - for Tandy 16/6000 with Xenix 3.0, "make trs16" (C-Kermit 7.0 is too big)
  623. # ? for Tektronix 6130/4132/43xx (e.g.4301) with UTek OS, "make utek"
  624. #     or (for models without hardware flow control), "make uteknohwfc"
  625. # ? for Tektronix XD88 series with UTekV OS, "make utekvr3"
  626. # ? for Tri Star Flash Cache with Esix SVR3.2, "make sys5r3"
  627. # ? for Unistar, "make sys5"
  628. # ? for Unisys S/4040 68040 CTIX SVR3.2 6.4.1, "make ctix" or "make sys5r3"
  629. # ? for Unisys U5000 UNIX SVR3 6.x, "make sys5r3" or "make sys5r3c"
  630. # ? for Unisys U6000 UNIX SVR4 1.x, "make sys5r4nx" or "make sys5r4nxnetc"
  631. #   for Unisys ... (also see Sperry)
  632. #   for Univel - see UnixWare
  633. # ? for UnixWare 1.x, "make unixware" or "make unixwarenetc".
  634. #     If there are problems with this in C-K 7.0 see notes at unixware entry.
  635. # + for Unixware 2.0.x "make uw2"
  636. # + for UnixWare 2.1.x, "make uw21"
  637. # + for UnixWare 2.x with IKSD (shadow password) support, "make uw2iksd"
  638. # + for UnixWare 7, "make uw7"
  639. # + for UnixWare 7 with IKSD support, "make uw7iksd" or "make uw7iksdudk"
  640. # + for UnixWare 7 with OpenSSL, "make uw7ssl"
  641. # ? for Valid Scaldstar, "make valid"
  642. # ? for Whitechapel MG01 Genix 1.3, "make white"
  643. # ? for Zilog ZEUS 3.21, "make zilog"
  644. #
  645. # The result should be a runnable program called "wermit" in the current
  646. # directory.  After satisfactory testing, you can rename wermit to "kermit"
  647. # and put it where users can find it.
  648. #
  649. # To remove intermediate and object files, "make clean".
  650. # If your C compiler produces files with an extension other than "o",
  651. # then "make clean EXT=u", "make clean EXT=s", or whatever.
  652. #
  653. # To run lint on the source files, "make lintsun", "make lintbsd",
  654. # "make lints5", as appropriate.
  655. #
  656. ##############################################################################
  657. #
  658. # NOTES FOR V7 AND 2.X BSD (BASED ON VERSION 4E OF C-KERMIT, 1987):
  659. #
  660. # For Unix Version 7, several variables must be defined to the values
  661. # associated with your system.  BOOTNAME=/edition7 is the kernel image on
  662. # okstate's Perkin-Elmer 3230.  Others will probably be /unix.  PROCNAME=proc
  663. # is the name of the structure assigned to each process on okstate's system.
  664. # This may be "_proc" or some other variation.  See <sys/proc.h> for more
  665. # info on your systems name conventions.  NPROCNAME=nproc is the name of a
  666. # kernel variable that tells how many "proc" structures there are.  Again
  667. # this may be different on your system, but nproc will probably be somewhere.
  668. # The variable NPTYPE is the type of the nproc variable -- int, short, etc.
  669. # which can probably be gleaned from <sys/param.h>.  The definition of DIRECT
  670. # is a little more complicated.  If nlist() returns, for "proc" only, the
  671. # address of the array, then you should define DIRECT as it is below.  If
  672. # however, nlist() returns the address of a pointer to the array, then you
  673. # should give DIRECT a null definition (DIRECT= ).  The extern declaration in
  674. # <sys/proc.h> should clarify this for you.  If it is "extern struct proc
  675. # *proc", then you should NOT define DIRECT.  If it is "extern struct proc
  676. # proc[]", then you should probably define DIRECT as it is below.  See
  677. # ckuv7.hlp for further information.
  678. #
  679. # For 2.9 BSD, the makefile may use pcc rather than cc for compiles; that's
  680. # what the CC and CC2 definitions are for (the current version of the
  681. # makefile uses cc for both; this was tested in version 4E of C-Kermit and
  682. # worked OK on the DEC Pro 380, but all bets are off for version 5A).  2.9
  683. # support basically follows the 4.1 path.  Some 2.9 systems use "dir.h" for
  684. # the directory header file, others will need to change this to "ndir.h".
  685. #
  686. # The v7 and 2.9bsd versions assume I&D space on a PDP-11.  When building
  687. # C-Kermit for v7 on a PDP-11, you should probably add the -i option to the
  688. # link flags.  Without I&D space, overlays will be necessary (if available),
  689. # or code segment mapping (a`la Pro/Venix) if that's available.
  690. #
  691. # C-Kermit 5A (and 6.0?) can be built for 2.10 and 2.11BSD, using overlays,
  692. # but a separate makefile is used because this one is too big.
  693. #
  694. ##############################################################################
  695. #
  696. # V7-specific variables.
  697. # These are set up for Perkin-Elmer 3230 V7 Unix:
  698. #
  699. PROC=proc
  700. DIRECT=
  701. NPROC=nproc
  702. NPTYPE=int
  703. BOOTFILE=/edition7
  704. #
  705. # ( For old Tandy TRS-80 Model 16A or 6000 V7-based Xenix, use PROC=_proc,
  706. #   DIRECT=-DDIRECT, NPROC=_Nproc, NPTYPE=short, BOOTFILE=/xenix )
  707. #
  708. ###########################################################################
  709. #
  710. #  Compile and Link variables:
  711. #
  712. #  EXT is the extension (file type) for object files, normally o.
  713. #  See MINIX entry for what to do if another filetype must be used.
  714. #
  715. EXT=o
  716. #LNKFLAGS=
  717. SHAREDLIB=
  718. CC= cc
  719. CC2= cc
  720. MAKE= make
  721. SHELL=/bin/sh
  722.  
  723. ###########################################################################
  724. # SAMPLE INSTALLATION SCRIPT
  725. #
  726. # Modify to suit your own computer's file organization
  727. # and permissions.  If you don't have write access to the destination
  728. # directories, "make install" will fail.  In most cases, a real installation
  729. # will also require you to chown / chgrp for the UUCP lockfile and/or tty
  730. # devices, and perhaps also to chmod +s the appropriate permission fields.
  731. #
  732. # Default binary, man, and doc directories are supplied below.  You can
  733. # override them in your 'make' command.  Examples:
  734. #
  735. #   make install                                   # Accept defaults.
  736. #   make "INFODIR=/usr/share/lib/kermit" install   # Override INFODIR default.
  737. #
  738. # You can also build and install in one step, e.g.:
  739. #
  740. #   make sunos41gcc install
  741. #
  742. WERMIT = makewhat
  743. DESTDIR =
  744. BINDIR = /usr/local/bin
  745. MANDIR = /usr/man/manl
  746. INFODIR = /usr/local/doc/kermit
  747. MANEXT = l
  748. ALL = $(WERMIT)
  749.  
  750. all: $(ALL)
  751.  
  752. .c.o:
  753.     $(CC) $(CFLAGS) -DKTARGET=\"$(KTARGET)\" -c $<
  754.  
  755. #Clean up intermediate and object files
  756. clean:
  757.     @echo 'Removing object files...'
  758.     -rm -f ckcmai.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) ckuus2.$(EXT) \
  759. ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) ckcpro.$(EXT) ckcfns.$(EXT) \
  760. ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) ckucon.$(EXT) ckutio.$(EXT) \
  761. ckufio.$(EXT) ckudia.$(EXT) ckuscr.$(EXT) ckwart.$(EXT) ckuusx.$(EXT) \
  762. ckuusy.$(EXT) ckcnet.$(EXT) ckuus6.$(EXT) ckuus7.$(EXT) ckusig.$(EXT) \
  763. ckucns.$(EXT) ckcmdb.$(EXT) ckuath.$(EXT) ckctel.$(EXT) ckclib.$(EXT) \
  764. ckcuni.$(EXT) ck_crp.$(EXT) ck_ssl.$(EXT) ckupty.$(EXT) ckcpro.c wart
  765.  
  766. # Install C-Kermit after building -- IMPORTANT: Read the instructions above.
  767. install:
  768.     cp wermit $(DESTDIR)$(BINDIR)/kermit
  769.     chmod 755 $(DESTDIR)$(BINDIR)/kermit
  770.     @echo
  771.     @echo "Kermit binary installed:"
  772.     @ls -l $(DESTDIR)$(BINDIR)/kermit
  773.     @echo
  774.     @echo " WARNING: If C-Kermit is to be used for dialing out, you will"
  775.     @echo " probably need to change its owner and group and permissions to"
  776.     @echo " match the cu program.  See the ckuins.txt file for details."
  777.     @echo
  778.     @echo "Installing man page..."
  779.     cp ckuker.nr $(DESTDIR)$(MANDIR)/kermit.$(MANEXT)
  780. # To make sure 'man' notices the new source file and doesn't keep
  781. # showing the old formatted version, remove the old formatted version,
  782. # something like this:
  783. #    rm -f $(DESTDIR)$(MANDIR)/../cat$(MANEXT)/kermit.$(MANEXT)
  784. # or this (which requires CATDIR to be defined):
  785. #    rm -f $(DESTDIR)$(CATDIR)/kermit.$(MANEXT)
  786.     chmod 644 $(DESTDIR)$(MANDIR)/kermit.$(MANEXT)
  787.     @echo
  788.     @echo "Installing info files..."
  789.     @if test -d $(INFODIR); then \
  790.         echo "$(INFODIR) exists..." ; \
  791.     else \
  792.         echo "Creating $(INFODIR)/..." ; \
  793.         mkdir $(INFODIR) ; \
  794.         chmod 755 $(INFODIR) ; \
  795.     fi
  796.     @echo "Copying text files to $(INFODIR)..."
  797.     @cp COPYING.TXT $(INFODIR)
  798.     @cp ckaaaa.txt $(INFODIR)/READ.ME
  799.     @cp ckuaaa.txt $(INFODIR)
  800.     @cp ckermit2.txt ckcbwr.txt ckubwr.txt ckuins.txt $(INFODIR)
  801.     @cp ckermit.ini ckermod.ini ckurzsz.ini ckermit.k*d $(INFODIR)
  802.     @cp telnet.txt security.txt iksd.txt $(INFODIR)
  803.     @cp cke*.ksc $(INFODIR)
  804.     @cp ckcplm.txt ckccfg.txt $(INFODIR)
  805.     @chmod 644 $(INFODIR)/*
  806.     @ls -l $(INFODIR)/*
  807.  
  808. makewhat:
  809.     @echo 'make what?  You must tell which platform to make C-Kermit for.'
  810.     @echo Examples:  make hpux1100, make aix43, make solaris26, etc.
  811.     @echo Please read the comments at the beginning of the makefile.
  812.  
  813. ###########################################################################
  814. #
  815. # Dependencies Section:
  816.  
  817. manpage: ckuker.nr
  818.  
  819. # Normal version
  820.  
  821. wermit:    ckcmai.$(EXT) ckclib.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) ckuus2.$(EXT) \
  822.         ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) ckuus6.$(EXT) \
  823.         ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) ckcpro.$(EXT) \
  824.         ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) \
  825.         ckucon.$(EXT) ckutio.$(EXT) ckufio.$(EXT) ckudia.$(EXT) \
  826.         ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) \
  827.         ckcuni.$(EXT) ckupty.$(EXT)
  828.     $(CC2) $(LNKFLAGS) -o wermit \
  829.         ckcmai.$(EXT) ckclib.$(EXT) ckutio.$(EXT) ckufio.$(EXT) \
  830.         ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) \
  831.         ckcpro.$(EXT) ckucmd.$(EXT) ckuus2.$(EXT) ckuus3.$(EXT) \
  832.         ckuus4.$(EXT) ckuus5.$(EXT) ckuus6.$(EXT) ckuus7.$(EXT) \
  833.         ckuusx.$(EXT) ckuusy.$(EXT) ckuusr.$(EXT) ckucon.$(EXT) \
  834.         ckudia.$(EXT) ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) \
  835.         ckusig.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) $(LIBS)
  836.  
  837. # Version with CONNECT module that uses select() instead of fork()
  838.  
  839. xermit:    ckcmai.$(EXT) ckclib.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) ckuus2.$(EXT) \
  840.         ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) ckuus6.$(EXT) \
  841.         ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) ckcpro.$(EXT) \
  842.         ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) \
  843.         ckucns.$(EXT) ckutio.$(EXT) ckufio.$(EXT) ckudia.$(EXT) \
  844.         ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) \
  845.         ckcuni.$(EXT) ckupty.$(EXT)
  846.     $(CC2) $(LNKFLAGS) -o wermit \
  847.         ckcmai.$(EXT) ckclib.$(EXT) ckutio.$(EXT) ckufio.$(EXT) \
  848.         ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) \
  849.         ckcpro.$(EXT) ckucmd.$(EXT) ckuus2.$(EXT) ckuus3.$(EXT) \
  850.         ckuus4.$(EXT) ckuus5.$(EXT) ckuus6.$(EXT) ckuus7.$(EXT) \
  851.         ckuusx.$(EXT) ckuusy.$(EXT) ckuusr.$(EXT) ckucns.$(EXT) \
  852.         ckudia.$(EXT) ckuscr.$(EXT) ckcnet.$(EXT) ckusig.$(EXT) \
  853.         ckctel.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) $(LIBS)
  854.  
  855. # Malloc Debugging version
  856.  
  857. mermit:    ckcmdb.$(EXT) ckcmai.$(EXT) ckclib.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) \
  858.         ckuus2.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) \
  859.         ckuus6.$(EXT) ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) \
  860.         ckcpro.$(EXT) ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) \
  861.         ckuxla.$(EXT) ckucon.$(EXT) ckutio.$(EXT) ckufio.$(EXT) \
  862.         ckudia.$(EXT) ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) \
  863.         ckusig.$(EXT) ckcuni.$(EXT)
  864.     $(CC2) $(LNKFLAGS) -o mermit ckcmdb.$(EXT) ckclib.$(EXT) ckcmai.$(EXT)\
  865.         ckutio.$(EXT) ckufio.$(EXT) ckcfns.$(EXT) ckcfn2.$(EXT) \
  866.         ckcfn3.$(EXT) ckuxla.$(EXT) ckcpro.$(EXT) ckucmd.$(EXT) \
  867.         ckuus2.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) \
  868.         ckuus6.$(EXT) ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) \
  869.         ckuusr.$(EXT) ckucon.$(EXT) ckudia.$(EXT) ckuscr.$(EXT) \
  870.         ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) ckcuni.$(EXT) $(LIBS)
  871.  
  872. # Kerberized Version - Subject to USA export restrictions.
  873.  
  874. krbmit:    ckcmai.$(EXT) ckclib.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) ckuus2.$(EXT) \
  875.         ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) ckuus6.$(EXT) \
  876.         ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) ckcpro.$(EXT) \
  877.         ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) \
  878.         ckucns.$(EXT) ckutio.$(EXT) ckufio.$(EXT) ckudia.$(EXT) \
  879.         ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) \
  880.         ckuath.$(EXT) ck_crp.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) \
  881.         ck_ssl.$(EXT)
  882.     $(CC2) $(LNKFLAGS) -o krbmit ckcmai.$(EXT) ckclib.$(EXT) \
  883.         ckutio.$(EXT) ckufio.$(EXT) ckcfns.$(EXT) ckcfn2.$(EXT) \
  884.         ckcfn3.$(EXT) ckuxla.$(EXT) ckcpro.$(EXT) ckucmd.$(EXT) \
  885.         ckuus2.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) \
  886.         ckuus6.$(EXT) ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) \
  887.         ckuusr.$(EXT) ckucns.$(EXT) ckudia.$(EXT) ckuscr.$(EXT) \
  888.         ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) ckuath.$(EXT) \
  889.         ck_crp.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) ck_ssl.$(EXT) $(LIBS)
  890.  
  891. krbmit-debug:    ckcmai.$(EXT) ckclib.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) \
  892.         ckuus2.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) \
  893.         ckuus6.$(EXT) ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) \
  894.         ckcpro.$(EXT) ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) \
  895.         ckuxla.$(EXT) ckucns.$(EXT) ckutio.$(EXT) ckufio.$(EXT) \
  896.         ckudia.$(EXT) ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) \
  897.         ckusig.$(EXT) ckuath.$(EXT) ck_crp.$(EXT) ckcuni.$(EXT) \
  898.         ckupty.$(EXT) ck_ssl.$(EXT) ckcmdb.$(EXT)
  899.     $(CC2) $(LNKFLAGS) -o krbmit ckcmdb.$(EXT) ckcmai.$(EXT) \
  900.         ckclib.$(EXT) ckutio.$(EXT) ckufio.$(EXT) ckcfns.$(EXT) \
  901.         ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) ckcpro.$(EXT) \
  902.         ckucmd.$(EXT) ckuus2.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) \
  903.         ckuus5.$(EXT) ckuus6.$(EXT) ckuus7.$(EXT) ckuusx.$(EXT) \
  904.         ckuusy.$(EXT) ckuusr.$(EXT) ckucns.$(EXT) ckudia.$(EXT) \
  905.         ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) \
  906.         ckuath.$(EXT) ck_crp.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) \
  907.         ck_ssl.$(EXT) $(LIBS)
  908.  
  909. # SRP(TM) Version - Subject to USA export restrictions.
  910.  
  911. srpmit:    ckcmai.$(EXT) ckclib.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) ckuus2.$(EXT) \
  912.         ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) ckuus6.$(EXT) \
  913.         ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) ckcpro.$(EXT) \
  914.         ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) \
  915.         ckucns.$(EXT) ckutio.$(EXT) ckufio.$(EXT) ckudia.$(EXT) \
  916.         ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) \
  917.         ckuath.$(EXT) ck_crp.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) \
  918.         ck_ssl.$(EXT)
  919.     $(CC2) $(LNKFLAGS) -o srpmit ckcmai.$(EXT) ckclib.$(EXT) \
  920.         ckutio.$(EXT) ckufio.$(EXT) ckcfns.$(EXT) ckcfn2.$(EXT) \
  921.         ckcfn3.$(EXT) ckuxla.$(EXT) ckcpro.$(EXT) ckucmd.$(EXT) \
  922.         ckuus2.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) \
  923.         ckuus6.$(EXT) ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) \
  924.         ckuusr.$(EXT) ckucns.$(EXT) ckudia.$(EXT) ckuscr.$(EXT) \
  925.         ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) ckuath.$(EXT) \
  926.         ck_crp.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) ck_ssl.$(EXT) $(LIBS)
  927.  
  928. # Kerberized Version - Not subject to USA export restrictions.
  929.  
  930. krbmit-export:    ckcmai.$(EXT) \
  931.         ckclib.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) ckuus2.$(EXT) \
  932.         ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) ckuus6.$(EXT) \
  933.         ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) ckcpro.$(EXT) \
  934.         ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) \
  935.         ckucns.$(EXT) ckutio.$(EXT) ckufio.$(EXT) ckudia.$(EXT) \
  936.         ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) \
  937.         ckuath.$(EXT) ckcuni.$(EXT) ckupty.$(EXT)
  938.     $(CC2) $(LNKFLAGS) -o krbmit-export ckcmai.$(EXT) ckclib.$(EXT) \
  939.         ckutio.$(EXT) ckufio.$(EXT) ckcfns.$(EXT) ckcfn2.$(EXT) \
  940.         ckcfn3.$(EXT) ckuxla.$(EXT) ckcpro.$(EXT) ckucmd.$(EXT) \
  941.         ckuus2.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) \
  942.         ckuus6.$(EXT) ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) \
  943.         ckuusr.$(EXT) ckucns.$(EXT) ckudia.$(EXT) ckuscr.$(EXT) \
  944.         ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) ckuath.$(EXT) \
  945.         ckcuni.$(EXT) ckupty.$(EXT) $(LIBS)
  946.  
  947. # SRP(TM) Version - Not subject to USA export restrictions.
  948.  
  949. srpmit-export:    ckcmai.$(EXT) \
  950.         ckclib.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) ckuus2.$(EXT) \
  951.         ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) ckuus6.$(EXT) \
  952.         ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) ckcpro.$(EXT) \
  953.         ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) \
  954.         ckucns.$(EXT) ckutio.$(EXT) ckufio.$(EXT) ckudia.$(EXT) \
  955.         ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) \
  956.         ckuath.$(EXT) ckcuni.$(EXT) ckupty.$(EXT)
  957.     $(CC2) $(LNKFLAGS) -o srpmit-export ckcmai.$(EXT) ckclib.$(EXT) \
  958.         ckutio.$(EXT) ckufio.$(EXT) ckcfns.$(EXT) ckcfn2.$(EXT) \
  959.         ckcfn3.$(EXT) ckuxla.$(EXT) ckcpro.$(EXT) ckucmd.$(EXT) \
  960.         ckuus2.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) \
  961.         ckuus6.$(EXT) ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) \
  962.         ckuusr.$(EXT) ckucns.$(EXT) ckudia.$(EXT) ckuscr.$(EXT) \
  963.         ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) ckuath.$(EXT) \
  964.         ckcuni.$(EXT) ckupty.$(EXT) $(LIBS)
  965.  
  966. ###########################################################################
  967. # man page...
  968. #
  969. # WARNING: Using "cc -E" to preprocess the man page is not portable, but it
  970. # works OK in SunOS 4.1.x, HP-UX, etc.  We use the preprocessor to produce
  971. # custom man pages based on ifdef, else, and endif directives.  But the
  972. # preprocessor replaces omitted lines by blank lines and comment lines, so we
  973. # use grep to filter them out.  THIS MEANS THAT THE SOURCE FILE, ckuker.cpp,
  974. # MUST NOT CONTAIN ANY BLANK LINES!
  975. # Note: on some systems you might need to add -x to the first grep invocation.
  976. #
  977. ckuker.nr: ckuker.cpp
  978.     $(CC) $(CFLAGS) -E ckuker.cpp |grep -v "^$$" |grep -v "^\#" > ckuker.nr
  979.  
  980. ###########################################################################
  981. # Dependencies for each module...
  982. #
  983. ckcmai.$(EXT): ckcmai.c ckcker.h ckcdeb.h ckcsym.h ckcasc.h ckcnet.h ckcsig.h \
  984.         ckuusr.h ckctel.h ckclib.h
  985.  
  986. ckclib.$(EXT): ckclib.c ckclib.h ckcdeb.h ckcasc.h ckcsym.h
  987.  
  988. ckcpro.$(EXT): ckcpro.c ckcker.h ckcdeb.h ckcsym.h ckcasc.h ckclib.h
  989.  
  990. ckcpro.c: ckcpro.w wart ckcdeb.h ckcsym.h ckcasc.h ckcker.h ckcnet.h ckctel.h \
  991.      ckclib.h
  992.     ./wart ckcpro.w ckcpro.c
  993.  
  994. ckcfns.$(EXT): ckcfns.c ckcker.h ckcdeb.h ckcsym.h ckcasc.h ckcxla.h ckcuni.h \
  995.         ckuxla.h ckclib.h ckcnet.h
  996.  
  997. ckcfn2.$(EXT): ckcfn2.c ckcker.h ckcdeb.h ckcsym.h ckcasc.h ckcxla.h \
  998.         ckuxla.h ckctel.h ckclib.h ckcnet.h ckcuni.h
  999.  
  1000. ckcfn3.$(EXT): ckcfn3.c ckcker.h ckcdeb.h ckcsym.h ckcasc.h ckcxla.h \
  1001.         ckuxla.h ckclib.h ckcuni.h
  1002.  
  1003. ckuxla.$(EXT): ckuxla.c ckcker.h ckcsym.h ckcdeb.h ckcxla.h ckuxla.h ckclib.h \
  1004.          ckcuni.h
  1005.  
  1006. ckcuni.$(EXT): ckcuni.c ckcdeb.h ckcker.h ckucmd.h ckcuni.h ckcxla.h \
  1007.         ckuxla.h ckcuni.h
  1008.  
  1009. ckuusr.$(EXT): ckuusr.c ckucmd.h ckcker.h ckuusr.h ckcsym.h ckcdeb.h ckcxla.h \
  1010.         ckuxla.h ckcasc.h ckcnet.h ckctel.h ckclib.h ckcuni.h
  1011.  
  1012. ckuus2.$(EXT): ckuus2.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcxla.h ckuxla.h \
  1013.         ckcasc.h ckcnet.h ckcsym.h ckctel.h ckclib.h ckcuni.h
  1014.  
  1015. ckuus3.$(EXT): ckuus3.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcxla.h ckuxla.h \
  1016.         ckcasc.h ckcnet.h ckcsym.h ckctel.h ckctel.h ckclib.h ckcuni.h
  1017.  
  1018. ckuus4.$(EXT): ckuus4.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcxla.h ckuxla.h \
  1019.         ckcasc.h ckcnet.h ckuver.h ckcsym.h ckctel.h ckclib.h ckcuni.h
  1020.  
  1021. ckuus5.$(EXT): ckuus5.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcasc.h ckcnet.h \
  1022.          ckcsym.h ckctel.h ckclib.h ckcxla.h ckuxla.h ckcuni.h
  1023.  
  1024. ckuus6.$(EXT): ckuus6.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcasc.h ckcnet.h \
  1025.          ckcsym.h ckctel.h ckclib.h
  1026.  
  1027. ckuus7.$(EXT): ckuus7.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcxla.h ckuxla.h \
  1028.         ckcasc.h ckcnet.h ckcsym.h ckctel.h ckclib.h ckcuni.h
  1029.  
  1030. ckuusx.$(EXT): ckuusx.c ckcker.h ckuusr.h ckcdeb.h ckcasc.h ckcsym.h \
  1031.         ckcsig.h ckcnet.h ckctel.h ckclib.h ckcxla.h ckuxla.h ckcuni.h
  1032.  
  1033. ckuusy.$(EXT): ckuusy.c ckcker.h ckcdeb.h ckcasc.h ckcnet.h ckcsym.h ckctel.h \
  1034.          ckclib.h
  1035.  
  1036. ckucmd.$(EXT): ckucmd.c ckcasc.h ckucmd.h ckcdeb.h ckcsym.h ckctel.h ckclib.h
  1037.  
  1038. ckufio.$(EXT): ckufio.c ckcdeb.h ckuver.h ckcsym.h ckclib.h \
  1039.         ckcxla.h ckuxla.h ckcuni.h
  1040.  
  1041. ckutio.$(EXT): ckutio.c ckcdeb.h ckcnet.h ckuver.h ckcsym.h ckctel.h ckclib.h
  1042.  
  1043. ckucon.$(EXT): ckucon.c ckcker.h ckcdeb.h ckcasc.h ckcnet.h ckcsym.h ckctel.h \
  1044.          ckclib.h
  1045.  
  1046. ckucns.$(EXT): ckucns.c ckcker.h ckcdeb.h ckcasc.h ckcnet.h ckcsym.h ckctel.h \
  1047.          ckclib.h ckcxla.h ckuxla.h ckcuni.h
  1048.  
  1049. ckcnet.$(EXT): ckcnet.c ckcdeb.h ckcker.h ckcnet.h ckcsym.h ckcsig.h ckctel.h \
  1050.          ckclib.h
  1051.  
  1052. ckctel.$(EXT): ckcsym.h ckcdeb.h ckcker.h ckcnet.h ckctel.h ckclib.h
  1053.  
  1054. wart: ckwart.$(EXT)
  1055.     $(CC) $(LNKFLAGS) -o wart ckwart.$(EXT) $(LIBS)
  1056.  
  1057. ckcmdb.$(EXT): ckcmdb.c ckcdeb.h ckcsym.h ckclib.h
  1058.  
  1059. ckwart.$(EXT): ckwart.c
  1060.  
  1061. ckudia.$(EXT): ckudia.c ckcker.h ckcdeb.h ckucmd.h ckcasc.h ckcsym.h ckcsig.h \
  1062.         ckcnet.h ckctel.h ckclib.h
  1063.  
  1064. ckuscr.$(EXT): ckuscr.c ckcker.h ckcdeb.h ckcasc.h ckcsym.h ckcsig.h \
  1065.         ckcnet.h ckctel.h ckclib.h
  1066.  
  1067. ckusig.$(EXT): ckusig.c ckcasc.h ckcdeb.h ckcker.h ckcnet.h ckuusr.h \
  1068.         ckcsig.h ckctel.h ckclib.h
  1069.  
  1070. ckupty.$(EXT): ckupty.c ckupty.h ckcdeb.h
  1071.  
  1072. ckuath.$(EXT): ckuath.c ckcdeb.h ckucmd.h ckuath.h ckuat2.h ckctel.h \
  1073.          ckclib.h ckcnet.h
  1074.  
  1075. ck_crp.$(EXT): ck_crp.c ckcdeb.h ckcnet.h ckuath.h ckclib.h
  1076.  
  1077. ck_ssl.$(EXT): ck_ssl.c ckcdeb.h ckucmd.h ckuath.h ckuat2.h ckctel.h \
  1078.          ckclib.h ck_ssl.h
  1079.  
  1080. ###########################################################################
  1081. #
  1082. # Entries to make C-Kermit for specific systems.
  1083. #
  1084. # Put the ones that need short makefiles first.
  1085.  
  1086. #Apollo Aegis 9.x.  Includes TCP/IP support.
  1087. #You can also add processor-dependent optimization switches like -M570.
  1088. aegis:
  1089.     @echo Making C-Kermit $(CKVER) for Apollo Aegis 9.x...
  1090.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  1091.     "CFLAGS= -DBSD4 -DTCPSOCKET -DNOCSETS -DCK_CURSES -O $(KFLAGS)" \
  1092.     "LIBS = -lcurses -ltermcap"
  1093.  
  1094. #Apple Mac II, A/UX pre-3.0
  1095. #Warning, if "send *" doesn't work, try the auxufs makefile entry below.
  1096. aux:
  1097.     @echo Making C-Kermit $(CKVER) for Macintosh A/UX...
  1098.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  1099.     "CFLAGS = -DAUX -DTCPSOCKET $(KFLAGS) -i -O" "LNKFLAGS = -i"
  1100.  
  1101. #Apple Mac II, A/UX pre-3.0, compiled with gcc
  1102. auxgcc:
  1103.     @echo Making C-Kermit $(CKVER) for Macintosh A/UX...
  1104.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  1105.     "CFLAGS = -DAUX -DTCPSOCKET -traditional $(KFLAGS) -i -O" \
  1106.     "LNKFLAGS = " "CC = gcc" "CC2 = gcc"
  1107.  
  1108. #Apple Mac II, A/UX, pre-3.0, but with ufs file volumes, uses <dirent.h>.
  1109. auxufs:
  1110.     @echo Making C-Kermit $(CKVER) for Macintosh A/UX...
  1111.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  1112.     "CFLAGS = -DAUX -DTCPSOCKET -DDIRENT $(KFLAGS) -i -O" "LNKFLAGS = -i"
  1113.  
  1114. #Apple Mac II, A/UX 3.0, compiled with gcc
  1115. aux3gcc:
  1116.     @echo Making C-Kermit $(CKVER) for Macintosh A/UX 3.0...
  1117.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  1118.     "CFLAGS = -DAUX -DHDBUUCP -DLFDEVNO -DTCPSOCKET -DDIRENT $(KFLAGS)" \
  1119.     "LNKFLAGS = -s" "LIBS = $(LIBS)" \
  1120.     "CC=gcc -pipe -traditional" "CC2=gcc -pipe -traditional"
  1121.  
  1122. #Apple Mac II, A/UX 3.0, compiled with gcc, uses curses
  1123. aux3cgcc:
  1124.     @echo Making C-Kermit $(CKVER) for Macintosh A/UX 3.0...
  1125.     $(MAKE) "MAKE=$(MAKE)" aux3gcc KTARGET=$${KTARGET:-$(@)} \
  1126.     "KFLAGS=$(KFLAGS) -DCK_CURSES" "LIBS = -lcurses $(LIBS)"
  1127.  
  1128. # Tenon MachTen, tested on Apple Powerbook with MachTen 2.1.1.D.
  1129. # NOTE: This doesn't do anything about UUCP.  It only works if /usr/spool/uucp
  1130. # has permission of 777, and dialout device is world read/writeable.
  1131. machten:
  1132.     @echo Making C-Kermit $(CKVER) for MachTen...
  1133.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1134.     "CFLAGS= -DBSD43 -DTCPSOCKET -DSIG_V -DNDGPWNAM -DCK_CURSES -O \
  1135.     $(KFLAGS)"  "LIBS=-lcurses -ltermcap"
  1136.  
  1137. #Bell Labs Research UNIX V10
  1138. #Can't add TCP/IP because there is no sockets library.  It would have to
  1139. #be done using streams, but there is no code in C-Kermit for that.
  1140. #Remove -DNOJC if desired (if your system has csh, ksh, or bash).
  1141. bellv10:
  1142.     @echo Making C-Kermit $(CKVER) for Bell Labs Research UNIX V10...
  1143.     $(MAKE) wermit KTARGET=$${KTARGET-$(@)} \
  1144.     "CFLAGS= -DBELLV10 -DBSD4 -DNDIR -DNOJC -DNOSYSIOCTLH -DNOSETREU \
  1145.     -DNOCSETS -MINIDIAL $(KFLAGS)"
  1146.  
  1147. # WARNING: The early BSD entries do not build in version 7.0 with the stock
  1148. # BSD compiler: "Too many defines".  These builds must be accomplished by:
  1149. # copying the /usr/include tree to someplace else, preprocessing there with cc
  1150. # -E -I./include or whatever (plus all the same -D's), renaming the the
  1151. # resulting files back to their original names, bringing them back to the
  1152. # original BSD system, and running the make target there.  This technique was
  1153. # used for 4.2 and 4.3 BSD on a VAX.  If you how to rebuild cpp to have more
  1154. # space for defines, that would be easier...
  1155.  
  1156. #Berkeley Unix 4.1
  1157. bsd41:
  1158.     @echo Making C-Kermit $(CKVER) for 4.1BSD...
  1159.     $(MAKE) wermit KTARGET=$${KTARGET-$(@)} \
  1160.     "CFLAGS= -DBSD41" "LIBS = -ljobs"
  1161.  
  1162. #Berkeley 4.2, 4.3, also Ultrix-32 1.x, 2.x, 3.x, many others
  1163. # Add -O, -s, etc, if they work.
  1164. # If you have a version of BSD but signal() is void rather than int,
  1165. # "make bsd KFLAGS=-DSIG_V".
  1166. bsd42:
  1167.     @echo Making C-Kermit $(CKVER) for 4.2BSD...
  1168.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  1169.     "CFLAGS= -DBSD4 -DTCPSOCKET -DNOREALPATH -DNOTIMEH -DSYSTIMEBH \
  1170.     -DNOIKSD -DNOPUTENV -DNOANSI -DBIGBUFOK $(KFLAGS)" "LIBS=$(LIBS)"
  1171.  
  1172. bsd42c:
  1173.     $(MAKE) bsd42 "KFLAGS=-DCK_CURSES $(KFLAGS)" \
  1174.     "LIBS=-lcurses -ltermcap $(LIBS)"
  1175.  
  1176. bsd:
  1177.     $(MAKE) bsd42 KTARGET=$${KTARGET-$(@)}
  1178.  
  1179. #Berkeley 4.2, 4.3, minimum size (command-line only)
  1180. bsdm:
  1181.     @echo Making C-Kermit $(CKVER) for 4.2BSD...
  1182.     $(MAKE) bsd KTARGET=$${KTARGET-$(@)} \
  1183.     "KFLAGS= -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG -DNOSCRIPT \
  1184.     -DNOCSETS -DNOICP $(KFLAGS)"
  1185.  
  1186. #Berkeley 4.2, 4.3, minimimum interactive (no scripting, no charsets)
  1187. bsdmi:
  1188.     @echo Making C-Kermit $(CKVER) for 4.2BSD...
  1189.     $(MAKE) bsd KTARGET=$${KTARGET-$(@)} \
  1190.     "KFLAGS= -DNODIAL -DNOCSETS -DNOSPL $(KFLAGS)"
  1191.  
  1192. #Berkeley Unix with HoneyDanBer UUCP
  1193. bsdhdb:
  1194.     @echo Making C-Kermit $(CKVER) for 4.2BSD with HDB UUCP...
  1195.     $(MAKE) bsd KTARGET=$${KTARGET-$(@)} \
  1196.     "KFLAGS= -DHDBUUCP $(KFLAGS)"
  1197.  
  1198. #Berkeley Unix 4.3 with acucntrl program
  1199. bsd43:
  1200.     @echo Making C-Kermit $(CKVER) for 4.3BSD...
  1201.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  1202.     "CFLAGS= -DBSD4 -DBSD43 -DTCPSOCKET -DNOREALPATH -DNOTIMEH \
  1203.     -DACUCNTRL -DSYSTIMEBH -DNOIKSD -DNOPUTENV -DNOANSI -DBIGBUFOK \
  1204.     $(KFLAGS)" "LIBS=$(LIBS)"
  1205.  
  1206. #Ditto, with curses support.
  1207. bsd43c:
  1208.     @echo Making C-Kermit $(CKVER) for 4.3BSD + curses...
  1209.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  1210.     "CFLAGS= -DBSD4 -DBSD43 -DTCPSOCKET -DNOREALPATH -DNOTIMEH -DNOIKSD \
  1211.     DCK_CURSES -DACUCNTRL -DSYSTIMEBH -DNOPUTENV -DNOANSI -DBIGBUFOK \
  1212.     $(KFLAGS)" "LIBS=-lcurses -ltermcap $(LIBS)"
  1213.  
  1214. #Berkeley Unix 4.2 or 4.3 with lock directory /usr/spool/uucp/LCK/LCK..ttyxx,
  1215. #but without acucntrl program
  1216. bsdlck:
  1217.     @echo Making C-Kermit $(CKVER) for 4.2BSD, /usr/spool/uucp/LCK/...
  1218.     $(MAKE) bsd KTARGET=$${KTARGET-$(@)} \
  1219.     "KFLAGS= -DLCKDIR $(KFLAGS)"
  1220.  
  1221. #Berkeley UNIX 4.4-Lite, 4.4-Encumbered, Net/2, etc (Post-Reno),
  1222. #with TCP/IP networking.  This includes NetBSD, FreeBSD, etc.
  1223. #NOTE: This is not a pure POSIX configuration.  Using -DPOSIX instead of
  1224. # -DBSD44 prevents any kind of directory-reading (for wildcard expansion),
  1225. #and disallows use of ENOTCONN symbol for detecting broken network
  1226. #connections, and disallows RTS/CTS flow control, and would also require
  1227. #definition of the appropriate UUCP lockfile convention.
  1228. #Do not add -DCK_POSIX_SIG without reading <signal.h> first!  For example,
  1229. #sigsetjmp(), etc, tend to be defined but not implemented.
  1230. bsd44:
  1231.     @echo Making C-Kermit $(CKVER) for 4.4BSD...
  1232.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1233.     "CFLAGS= -DBSD44 -DTCPSOCKET $(KFLAGS) -O"
  1234.  
  1235. #Berkeley UNIX 4.4, as above, but with curses for fullscreen display
  1236. #Please read notes for bsd44 entry just above.
  1237. # NOTE: This one dumps core on the real 4.4BSD system at UC Berkeley
  1238. # (an HP-9000 300), so use the no-curses version for that one.
  1239. bsd44c:
  1240.     @echo Making C-Kermit $(CKVER) for 4.4BSD with curses...
  1241.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1242.     "CFLAGS= -DBSD44 -DCK_CURSES -DTCPSOCKET $(KFLAGS) -O" \
  1243.     "LIBS= -lcurses -ltermcap $(LIBS)"
  1244.  
  1245. #For FreeBSD 1.x.  Not tested recently - might need ncurses.
  1246. freebsd:
  1247.     @echo 'Making C-Kermit $(CKVER) for FreeBSD...'
  1248.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1249.     "CFLAGS= -DBSD44 -DCK_CURSES -DTCPSOCKET -DNOCOTFMC -funsigned-char \
  1250.     $(KFLAGS) -O -pipe" "LIBS= -lcurses -ltermcap -lcrypt $(LIBS)"
  1251.  
  1252. #FreeBSD 2.x with ncurses
  1253. freebsd2:
  1254.     @echo 'Making C-Kermit $(CKVER) for FreeBSD 2.x with ncurses...'
  1255.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1256.     "CFLAGS= -DBSD44 -DCK_NCURSES -DTCPSOCKET -DNOCOTFMC -DUSE_STRERROR \
  1257.     -DTPUTSARGTYPE=int -DTPUTSARG1CONST -DFREEBSD2 -funsigned-char \
  1258.     $(KFLAGS) -O -pipe" \
  1259.     "LIBS= -lncurses -ltermlib -lcrypt $(LIBS)"
  1260.  
  1261. #For FreeBSD 2.x -- Uses curses rather than ncurses
  1262. freebsd2c:
  1263.     @echo 'Making C-Kermit $(CKVER) for FreeBSD 2.x with curses...'
  1264.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1265.     "CFLAGS= -DBSD44 -DCK_CURSES -DTCPSOCKET -DNOCOTFMC -DUSE_STRERROR \
  1266.     -DTPUTSARGTYPE=int -DTPUTSARG1CONST -DFREEBSD2 \
  1267.     -funsigned-char $(KFLAGS) -O -pipe" \
  1268.     "LIBS= -lcurses -ltermlib -lcrypt $(LIBS)"
  1269.  
  1270. #FreeBSD 3.x with ncurses and uu_lock()
  1271. #(Note: uu_lock() goes back to 2.2.2, but not necessarily 2.0)
  1272. freebsd3:
  1273.     @echo 'Making C-Kermit $(CKVER) for FreeBSD 3.x with ncurses...'
  1274.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1275.     "CFLAGS= -DBSD44 -DCK_NCURSES -DTCPSOCKET -DNOCOTFMC -funsigned-char \
  1276.     -DTPUTSARGTYPE=int -DUSE_STRERROR -DFREEBSD3 -DUSE_UU_LOCK \
  1277.     $(KFLAGS) -O -pipe" \
  1278.     "LIBS= -lncurses -lcrypt -lutil $(LIBS)"
  1279.  
  1280. #As above but with curses rather than ncurses.
  1281. freebsd3c:
  1282.     @echo 'Making C-Kermit $(CKVER) for FreeBSD 3.x with curses...'
  1283.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1284.     "CFLAGS= -DBSD44 -DCK_CURSES -DTCPSOCKET -DNOCOTFMC -DUSE_UU_LOCK \
  1285.     -DTPUTSARGTYPE=int -DUSE_STRERROR -DFREEBSD3 $(KFLAGS) \
  1286.     -funsigned-char -pipe -O" \
  1287.     "LIBS= -lcurses -lcrypt -lutil $(LIBS)"
  1288.  
  1289. #FreeBSD 4.x with ncurses and uu_lock().  Note - there is no curses in 4.0.
  1290. freebsd4:
  1291.     @echo 'Making C-Kermit $(CKVER) for FreeBSD 4.x with ncurses...'
  1292.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1293.     "CFLAGS= -DBSD44 -DCK_NCURSES -DTCPSOCKET -DNOCOTFMC \
  1294.     -funsigned-char -DTPUTSARGTYPE=int -DUSE_STRERROR -DFREEBSD4 \
  1295.     -DNONOSETBUF -DUSE_UU_LOCK $(KFLAGS) -O -pipe" \
  1296.     "LIBS= -lncurses -lcrypt -lutil $(LIBS)"
  1297.  
  1298. #NetBSD - all versions - with curses, not ncurses.
  1299. netbsd:
  1300.     @echo Making C-Kermit $(CKVER) for NetBSD with curses...
  1301.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1302.     "CFLAGS= -DBSD44 -DCK_CURSES -DTCPSOCKET -DUSE_STRERROR -DTPUTSISVOID \
  1303.     -DCK_DTRCD -DCK_DTRCTS -DTPUTSARGTYPE=int $(KFLAGS) -O" \
  1304.     "LIBS= -lcurses -lcrypt $(LIBS)"
  1305.  
  1306. #NetBSD with ncurses rather than curses
  1307. netbsdn:
  1308.     @echo Making C-Kermit $(CKVER) for NetBSD with ncurses...
  1309.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1310.     "CFLAGS= -DBSD44 -DCK_CURSES -DTCPSOCKET -DNOCOTFMC \
  1311.     -DCK_DTRCD -DCK_DTRCTS \
  1312.     -DUSE_STRERROR -DTPUTSISVOID -DTPUTSARGTYPE=int $(KFLAGS) -O" \
  1313.     "LIBS= -L/usr/pkg/lib -lncurses -lcrypt"
  1314.  
  1315. #NetBSD with no IKSD
  1316. netbsdnoiksd:
  1317.     @echo Making C-Kermit $(CKVER) for NetBSD with curses...
  1318.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1319.     "CFLAGS= -DBSD44 -DCK_CURSES -DTCPSOCKET -DUSE_STRERROR -DTPUTSISVOID \
  1320.     -DCK_DTRCD -DCK_DTRCTS \
  1321.     -DNOIKSD -DTPUTSARGTYPE=int $(KFLAGS) -O" \
  1322.     "LIBS= -lcurses $(LIBS)"
  1323.  
  1324. #OpenBSD - Uses ncurses as its curses so use -ltermlib, not -ltermcap
  1325. #Add -DMAINTYPE=int if you get complaints about main: return type is not int.
  1326. openbsd:
  1327.     @echo Making C-Kermit $(CKVER) for OpenBSD...
  1328.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1329.     "CFLAGS= -DBSD44 -DCK_CURSES -DCK_NEWTERM -DTCPSOCKET -DOPENBSD \
  1330.     -DNDSYSERRLIST $(KFLAGS) -O" "LIBS= -lcurses -ltermlib"
  1331.  
  1332. # make 386bsd 0.0new, posix
  1333. # for  386bsd 0.1.24, change /usr/include/termios.h to #define NCCS if
  1334. #  _POSIX_SOURCE is #defined. (source: lewine, posix prgmrs guide, o`reilly)
  1335. #NOTE: Lock directory is /var/spool/lock.  Formerly, it was /var/spool/uucp,
  1336. #but reportedly <wjones@halcyon.com> that was due to a typo in 'man tip'.
  1337. 386bsd:
  1338.     @echo 'Making C-Kermit $(CKVER) for jolix 386BSD 0.0new and 0.1.24...'
  1339.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1340.     "CFLAGS= -DPOSIX -DSETREUID -DPIDSTRING -DUSLEEP \
  1341.     -D_386BSD -DCK_CURSES -DTCPSOCKET \
  1342.     -DLOCK_DIR=\\\"/var/spool/lock\\\" \
  1343.     $(KFLAGS) -O" "LNKFLAGS = -s" "LIBS = -lcurses -ltermcap"
  1344.  
  1345. #Mac OS X 1.0 (Rhapsody) -- TCP/IP but no curses.
  1346. macosx10:
  1347.     @echo Making C-Kermit $(CKVER) for `uname -s`...
  1348.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1349.     "CFLAGS= -DMACOSX10 -DTCPSOCKET -O $(KFLAGS)"
  1350.  
  1351. #Mac OS X 1.0 (Rhapsody) -- TCP/IP and curses.
  1352. #Note: curses must be obtained separately.  See next entry for ncurses.
  1353. #Add "LIBS = -lcurses -ltermcap" if necessary (but reportedly it is not).
  1354. macosx10c:
  1355.     @echo Making C-Kermit $(CKVER) for `uname -s` + curses...
  1356.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1357.     "CFLAGS= -DMACOSX10 -DCK_CURSES -DTPUTSFNTYPE=void -DTPUTSISVOID \
  1358.     -DTCPSOCKET -O $(KFLAGS)"
  1359.  
  1360. #Mac OS X 1.0 (Rhapsody) -- TCP/IP and ncurses.
  1361. #Note: ncurses must be obtained separately.
  1362. #In the event of trouble with this one try the next one.
  1363. macosx10nc:
  1364.     @echo Making C-Kermit $(CKVER) for `uname -s` + ncurses...
  1365.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1366.     "CFLAGS= -DMACOSX10 -DCK_NCURSES -DTCPSOCKET -O $(KFLAGS) " \
  1367.     "LIBS= -lncurses $(LIBS)"
  1368.  
  1369. #The problem here is that if curses.h also exists, it conflicts with
  1370. #ncurses.h and and we have fatal errors.  If this happens to you, then
  1371. #try this entry.
  1372. macosx10ncx:
  1373.     @echo Making C-Kermit $(CKVER) for `uname -s` + ncurses...
  1374.     @rm -f ./curses.h; touch ./curses.h
  1375.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1376.     "CFLAGS= -DMACOSX10 -DCK_NCURSES -DTCPSOCKET -I. -O $(KFLAGS) " \
  1377.     "LIBS= -lncurses $(LIBS)"
  1378.     @rm -f ./curses.h
  1379.  
  1380. #Acorn RISCiX, based on ...
  1381. #Berkeley Unix 4.2 or 4.3 with lock directory /usr/spool/uucp/LCK/LCK..ttyxx,
  1382. #but without acucntrl program
  1383. riscix:
  1384.     @echo Making C-Kermit $(CKVER) for RISCiX, /usr/spool/uucp/LCK..ttyxx
  1385.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  1386.         "CFLAGS= -DBSD42 -DBSD4 -DRISCIX -DNOCSETS \
  1387.         -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DDIRENT -DCK_CURSES \
  1388.         -DMAXSP=9024 -DMAXRD=9024 -DSBSIZ=9050 -DRBSIZ=9050 \
  1389.         -DFTTY=\\\"/dev/serial\\\" -DNOCSETS -DNOCYRIL \
  1390.         -DNOANSI -w -O2 -fomit-frame-pointer" \
  1391.         "LIBS= -lcurses -ltermcap " \
  1392.         "CC= /usr/ucb/cc" \
  1393.         "CC2= /usr/ucb/cc"
  1394.  
  1395. #Acorn RISCiX, as above, but using gcc
  1396. riscix-gcc:
  1397.     @echo Making C-Kermit $(CKVER) for RISCiX, /usr/spool/uucp/LCK..ttyxx
  1398.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  1399.         "CFLAGS= -DBSD42 -DBSD4 -DRISCIX -DNOCSETS \
  1400.         -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DDIRENT -DCK_CURSES \
  1401.         -DMAXSP=9024 -DMAXRD=9024 -DSBSIZ=9050 -DRBSIZ=9050 \
  1402.         -DFTTY=\\\"/dev/serial\\\" -DNOCSETS -DNOCYRIL \
  1403.         -DNOANSI -w -O2 -fomit-frame-pointer" \
  1404.         "LIBS= -lcurses -ltermcap " \
  1405.         "CC= gcc -mbsd" \
  1406.         "CC2= gcc -mbsd"
  1407.  
  1408. #Convergent CTIX 6.4.1
  1409. ctix:
  1410.     @echo 'Making C-Kermit $(CKVER) for Convergent CTIX 6.4.1'
  1411.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  1412.     "CFLAGS= -DSVR3 -DDIRENT -DTCPSOCKET -DHDBUUCP -DCK_CURSES \
  1413.     -DNONAWS $(KFLAGS) -XO" "LNKFLAGS=-s" "LIBS=-lsocket -lcurses -lc_s"
  1414.     mcs -d wermit
  1415.  
  1416. # The following makefile entry should work for any Harris Night Hawk system
  1417. # (either 88k or 68k based) running release 6.1 or later of the CX/UX
  1418. # operating system. This is a POSIX and ANSI-C compliant system which also
  1419. # supports BSD networking. (Earlier CX/UX releases will probably work with
  1420. # sys5r3, but this has not been verified).
  1421. #
  1422. cx_ux:
  1423.     @echo Making C-Kermit $(CKVER) for Harris Night Hawk CX/UX 6.1 or later
  1424.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  1425.     "CFLAGS=-DPOSIX -DTCPSOCKET -DHDBUUCP -DPID_T=pid_t -DWAIT_T=int \
  1426.     -Dd_ino=d_fileno -DUID_T=uid_t -DGID_T=gid_t $(KFLAGS) -Xa \
  1427.     -O3 -g" "LNKFLAGS=-O3"
  1428.  
  1429. #Intergraph Clipper, CLIX, job control, HDB UUCP.
  1430. clix:
  1431.     @echo 'Making C-Kermit $(CKVER) for Intergraph CLIX...'
  1432.     $(MAKE) wermit "CC=acc" "CC2=acc" KTARGET=$${KTARGET:-$(@)} \
  1433.     "CFLAGS= -w -DSVR3 -DCLIX -DDIRENT -DHDBUUCP -DNOSYSLOG -DUSE_MEMCPY \
  1434.     -DNOGETUSERSHELL -DNOREALPATH $(KFLAGS) -O" \
  1435.     "LNKFLAGS=" "LIBS= -lbsd"
  1436.  
  1437. #As above + TCP/IP...
  1438. clixnet:
  1439.     @echo 'Making networked C-Kermit $(CKVER) for Intergraph CLIX...'
  1440.     $(MAKE) wermit "CC=acc" "CC2=acc" KTARGET=$${KTARGET:-$(@)} \
  1441.     "CFLAGS= -w -DSVR3 -DCLIX -DDIRENT -DHDBUUCP -DNOSYSLOG -DUSE_MEMCPY \
  1442.     -DTCPSOCKET -DNOGETUSERSHELL -DNOREALPATH $(KFLAGS) -O" \
  1443.     "LNKFLAGS=" "LIBS= -lbsd"
  1444.  
  1445. #Mark Williams Coherent 286 or 386 on IBM PC family.
  1446. #There is a 64K limit on program size, so this is a command-line only version.
  1447. coherent:
  1448.     $(MAKE) "CFLAGS = -O -DCOHERENT -DNOANSI -DNOICP -DNOSETKEY \
  1449.     -DNOCSETS -DNOHELP -DNODIAL -DNOSCRIPT -DNODEBUG -DNOTLOG -DNOXMIT \
  1450.     -DNOMSEND -DNOFRILLS -DNOSYSIOCTLH -DSELECT_H $(KFLAGS) -VSUVAR" \
  1451.     KTARGET=$${KTARGET:-$(@)} wermit
  1452.  
  1453. #Mark Williams Coherent 386 on IBM PC family.
  1454. #This will make a "minimum interactive" version - no scripts,
  1455. #no character sets, no help, no dial, no debug/transaction logging, no
  1456. #transmit, msend, mail, type, etc.
  1457. coherentmi:
  1458.     $(MAKE) "CFLAGS = -O -DCOHERENT -DNOANSI -DNOSETKEY \
  1459.     -DNOSHOW -DNOCSETS -DNOHELP -DNODIAL -DNOSCRIPT -DNODEBUG -DNOTLOG \
  1460.     -DNOXMIT -DNOMSEND -DNOFRILLS -DNOSYSIOCTLH -DNOSERVER -DNOUUCP \
  1461.     -DNOSPL -DNOPUSH -DNOMDMHUP -DNOJC -DNOFDZERO -DNOESCSEQ \
  1462.     -DNOCMDL $(KFLAGS) -VSUVAR -DSELECT_H" KTARGET=$${KTARGET:-$(@)} \
  1463.     wermit
  1464.  
  1465. #Mark Williams Coherent 386 on IBM PC/AT family.
  1466. coherentmax:
  1467.     $(MAKE) "CFLAGS = -O -DCOHERENT -DNOANSI -DSELECT_H \
  1468.     -DNOSYSIOCTLH $(KFLAGS) -VSUVAR" "LNKFLAGS = -O -s" \
  1469.     KTARGET=$${KTARGET:-$(@)} wermit
  1470.  
  1471. #Mark Williams Coherent 386 4.2.  Includes curses but not TCP/IP.
  1472. #Requires updates to the 4.2.10 compiler; the regular compiler fails to
  1473. #to handle "complex expressions".
  1474. coherent42:
  1475.     $(MAKE) "CFLAGS = -T500000 -DCOHERENT -DNOANSI -DSELECT -DDCLGETCWD \
  1476.     -DNOSYSLOG -DDIRENT -DCK_CURSES -DCK_NEWTERM -DCK_WREFRESH -VSUVAR \
  1477.     -DNOSYSIOCTLH -DNOINITGROUPS -DNOSYMLINK -DSELECT_H -O $(KFLAGS)" \
  1478.     "LNKFLAGS = -O -s" KTARGET=$${KTARGET:-$(@)} \
  1479.     "LIBS  = -lsocket -lcurses" wermit
  1480.  
  1481. #DEC Ultrix 2.x
  1482. # Add -O, -DDYNAMIC, -s, etc, if they work.
  1483. ultrix2x:
  1484.     @echo Making C-Kermit $(CKVER) for Ultrix 2.x ...
  1485.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  1486.     "CFLAGS= -DBSD4 -DTCPSOCKET -DDU2 -DNOGETUSERSHELL $(KFLAGS)"
  1487.  
  1488. du2:
  1489.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET-$(@)} ultrix2x
  1490.  
  1491. #DEC Ultrix 3.1 (and probably also 3.0)
  1492. ultrix3x:
  1493.     @echo Making C-Kermit $(CKVER) for Ultrix 3.x...
  1494.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  1495.     "CFLAGS= -DBSD4 -DTCPSOCKET -DDIRENT -DSIG_V -DNOGETUSERSHELL \
  1496.     $(KFLAGS) -O" "LNKFLAGS = -s"
  1497.  
  1498. du3:
  1499.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET-$(@)} ultrix3x
  1500.  
  1501.  
  1502. #DEC Ultrix 4.0 or 4.1 on DECstation, VAXstation, VAX, etc.
  1503. ultrix40:
  1504.     @echo Making C-Kermit $(CKVER) for Ultrix 4.0 or 4.1...
  1505.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  1506.     "CFLAGS= -DBSD4 -DTCPSOCKET -DSIG_V -DDU4 -DNOGETUSERSHELL \
  1507.     $(KFLAGS) -Olimit 1450" "LNKFLAGS = -s"
  1508.  
  1509. #DEC Ultrix 4.2-4.5 on DECstation, DECsystem, VAXstation, VAX, etc.
  1510. #Like ultrix40, except now C compiler supports -O2 optimization.
  1511. ultrix42:
  1512.     @echo Making C-Kermit $(CKVER) for Ultrix 4.2 or later...
  1513.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  1514.     "CFLAGS= -DBSD4 -DTCPSOCKET -DSIG_V -DNOGETUSERSHELL $(KFLAGS) \
  1515.     -O2 -Olimit 1750" "LNKFLAGS = -s"
  1516.  
  1517. du42:
  1518.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET-$(@)} ultrix42
  1519.  
  1520. #DEC Ultrix 4.2-4.5 on DECstation, DECsystem, VAXstation, VAX, etc.
  1521. #Like du42, but with curses support added, optimization and a couple features
  1522. #removed because in C-Kermit 7.0 we get bizarre relocation errors otherwise.
  1523. ultrix42c:
  1524.     @echo Making C-Kermit $(CKVER) for Ultrix 4.2 or later...
  1525.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  1526.     "CFLAGS= -DBSD4 -DTCPSOCKET -DSIG_V -DNOGETUSERSHELL \
  1527.     -DCK_CURSES -DNODEBUG -DNOIKSD $(KFLAGS)" "LNKFLAGS = -s" \
  1528.     "LIBS= -lcurses -ltermcap"
  1529.  
  1530. ultrix43:
  1531.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=-DULTRIX43 $(KFLAGS)" \
  1532.     KTARGET=$${KTARGET-$(@)} ultrix42c
  1533.  
  1534. ultrix43notcp:
  1535.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=-DULTRIX43 -DNONET $(KFLAGS)" \
  1536.     KTARGET=$${KTARGET-$(@)} ultrix42c
  1537.  
  1538. ultrix44:
  1539.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=-DULTRIX44 $(KFLAGS)" \
  1540.     KTARGET=$${KTARGET-$(@)} ultrix42c
  1541.  
  1542. ultrix45:
  1543.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=-DULTRIX45 $(KFLAGS)" \
  1544.     KTARGET=$${KTARGET-$(@)} ultrix42c
  1545.  
  1546. du42c:
  1547.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET-$(@)} ultrix42c
  1548.  
  1549. #DEC Ultrix 4.3A or later on DECsystem and DECstation 5000/50, /150 or /260
  1550. #with MIPS R4x00 processor.  The "-mips3" switch generates R4000-specific
  1551. #code, which is faster and more compact, but *won't* run on earlier
  1552. #DECsystems and DECstations.
  1553. ultrix43-mips3:
  1554.     @echo Making C-Kermit $(CKVER) for Ultrix 4.3A or later, R4000 cpu...
  1555.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  1556.     "CFLAGS= -DBSD4 -DTCPSOCKET -DSIG_V -DNOGETUSERSHELL \
  1557.     $(KFLAGS) -O2 -Olimit 1750 -mips3" "LNKFLAGS = -s -mips3"
  1558.  
  1559. du43-mips3:
  1560.     $(MAKE) "MAKE=$(MAKE)" ultrix43-mips3
  1561.  
  1562. #DEC Ultrix 4.3A or later on MIPS R4x000 based systems.
  1563. #Like ultrix43-mips3 but with curses support added
  1564. ultrix43c-mips3:
  1565.     @echo Making C-Kermit $(CKVER) for Ultrix 4.3A or later, R4000 cpu...
  1566.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  1567.     "CFLAGS= -DBSD4 -DTCPSOCKET -DSIG_V -DNOGETUSERSHELL -DCK_CURSES \
  1568.     $(KFLAGS) -O2 -Olimit 3000 -mips3" "LNKFLAGS = -s -mips3" \
  1569.     "LIBS= -lcurses -ltermcap"
  1570.  
  1571. du43c-mips3:
  1572.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET-$(@)} ultrix43c-mips3
  1573.  
  1574. #DEC Ultrix 4.4 on DECstation 5000/50 or /150 with R4000 MIPS processor,
  1575. #or 5000/260 with R4400.  The "-mips3" switch generates R4000-specific code,
  1576. #which is faster and more compact but *won't* run on earlier DECstations.
  1577. ultrix44-mips3:
  1578.     @echo Making C-Kermit $(CKVER) for Ultrix 4.4, R4000 cpu ...
  1579.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  1580.     "CFLAGS= -DBSD4 -DTCPSOCKET -DSIG_V -DNOGETUSERSHELL \
  1581.     $(KFLAGS) -O2 -Olimit 1450 -mips3" "LNKFLAGS = -s -mips3"
  1582.  
  1583. du44-mips3:
  1584.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET-$(@)} ultrix44c-mips3
  1585.  
  1586. #DEC Ultrix 4.2 on DECstation, VAXstation, VAX, etc, System V R4 environment
  1587. ultrix42s5r4:
  1588.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4 on Ultrix...'
  1589.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  1590.     "CFLAGS = -O2 -Olimit 1500 -DSVR4 -DDIRENT -DHDBUUCP -DNOGETUSERSHELL \
  1591.     -DTCPSOCKET $(KFLAGS)" "LNKFLAGS = -s"
  1592.  
  1593. #OSF/1
  1594. osf:
  1595.     $(MAKE) xermit CC=$(CC) CC2=$(CC2) KTARGET=$${KTARGET:-$(@)} \
  1596.     "CFLAGS= -DBSD4 -DOSF -D_BSD -DTCPSOCKET -DCK_ANSIC -DSIG_V \
  1597.     -DCK_CURSES -DCK_RTSCTS -DFNFLOAT $(KFLAGS)" \
  1598.     "LNKFLAGS = -s" "LIBS = -lbsd -lcurses -ltermcap -lm"
  1599.  
  1600. #DEC OSF/1 V1.0-1.3 on DECstation, VAX, Alpha, or PC.
  1601. dec-osf:
  1602.     $(MAKE) xermit CC=$(CC) CC2=$(CC2) KTARGET=$${KTARGET:-$(@)} \
  1603.     "CFLAGS= -DBSD4 -DOSF -DOSF13 -D_BSD -DTCPSOCKET -DCK_ANSIC -DSIG_V \
  1604.     -DNOREALPATH -DNOIKSD -DCK_CURSES -DCK_RTSCTS -DFNFLOAT -DNODEBUG \
  1605.     -DNOUNICODE $(KFLAGS)" \
  1606.     "LNKFLAGS = -non_shared" "LIBS = -lbsd -lcurses -ltermcap -lm"
  1607.  
  1608. # This one causes "relocation out-of-range" errors in the linker.
  1609. old-dec-osf:
  1610.     @echo Making C-Kermit $(CKVER) for DEC OSF/1 V1.x...
  1611.     @echo If you are building for DEC OSF/1 2.0, please use dec-osf20.
  1612.     @echo Remove or adjust -O2 and/or -Olimit if they cause trouble.
  1613.     $(MAKE) osf KTARGET=$${KTARGET:-$(@)} \
  1614.     "KFLAGS= -O2 -Olimit 2400 $(KFLAGS)"
  1615.  
  1616. #DEC OSF/1 2.0 on Alpha and probably nowhere else.
  1617. #The only difference from OSF/1 is that optimization is omitted.
  1618. #The optimized version gets strange runtime errors, like the PAUSE command
  1619. #not working.  Add "-unsigned" to make all chars unsigned.
  1620. dec-osf20:
  1621.     @echo Making C-Kermit $(CKVER) for DEC OSF/1 V2.0...
  1622.     @echo Optimization omitted because it causes runtime errors.
  1623.     @echo See comments in makefile.
  1624.     $(MAKE) osf KTARGET=$${KTARGET:-$(@)} "KFLAGS= -DOSF20 $(KFLAGS)"
  1625.  
  1626. dec-osf30:
  1627.     @echo Making C-Kermit $(CKVER) for DEC OSF/1 V3.0...
  1628.     $(MAKE) osf KTARGET=$${KTARGET:-$(@)} \
  1629.     "KFLAGS= -DOSF30 -O2 -Olimit 2400 $(KFLAGS)"
  1630.  
  1631. #Digital UNIX 3.2
  1632. # Must compile ckuus[6x].c separately without optimization otherwise
  1633. # the optimizer dumps core - keep CFLAGS here in sync with those from osf.
  1634. du32:
  1635.     @echo Making C-Kermit $(CKVER) for Digital UNIX 3.2...
  1636.     $(MAKE) ckuus6.$(EXT) \
  1637.     "CFLAGS= -DBSD4 -DOSF -D_BSD -DTCPSOCKET -DCK_ANSIC -DSIG_V \
  1638.     -DCK_CURSES -DCK_RTSCTS -DFNFLOAT $(KFLAGS)"
  1639.     $(MAKE) ckuusx.$(EXT) \
  1640.     "CFLAGS= -DBSD4 -DOSF -D_BSD -DTCPSOCKET -DCK_ANSIC -DSIG_V \
  1641.     -DCK_CURSES -DCK_RTSCTS -DFNFLOAT $(KFLAGS)"
  1642.     $(MAKE) osf "KFLAGS= -DOSF32 -DHDBUUCP -O2 -Olimit 3000 $(KFLAGS)"
  1643.  
  1644. dec-osf32:
  1645.     $(MAKE) "MAKE=$(MAKE)" du32 KTARGET=$${KTARGET:-$(@)}
  1646.  
  1647. du40:
  1648.     @echo Making C-Kermit $(CKVER) for Digital UNIX 4.0...
  1649.     $(MAKE) osf KTARGET=$${KTARGET:-$(@)} \
  1650.     "KFLAGS= -DOSF40 -DHDBUUCP -DFNFLOAT \
  1651.     -unsigned -std1 -O3 -Olimit 2400 $(KFLAGS)" "LIBS=-lm"
  1652.  
  1653. du40gcc:
  1654.     @echo Making C-Kermit $(CKVER) for Digital UNIX 4.0 with gcc ...
  1655.     $(MAKE) osf CC=gcc CC2=gcc KTARGET=$${KTARGET:-$(@)} \
  1656.     "KFLAGS= -DOSF40 -DHDBUUCP $(KFLAGS)"
  1657.  
  1658. #Tru64 Unix 4.0E
  1659. tru64-40e:
  1660.     @echo Making C-Kermit $(CKVER) for Tru64 UNIX 4.0E...
  1661.     $(MAKE) osf KTARGET=$${KTARGET:-$(@)} \
  1662.     "KFLAGS= -DOSF40 -DTRU64 -DHDBUUCP -DFNFLOAT -DNOCOTFMC \
  1663.     -unsigned -std1 -O3 -Olimit 2400 $(KFLAGS)" "LIBS=-lm"
  1664.  
  1665. tru64-40f:
  1666.     @echo Making C-Kermit $(CKVER) for Tru64 UNIX 4.0F...
  1667.     $(MAKE) osf KTARGET=$${KTARGET:-$(@)} \
  1668.     "KFLAGS= -DOSF40 -DTRU64 -DHDBUUCP -DFNFLOAT -DNOCOTFMC \
  1669.     -unsigned -std1 -O3 -Olimit 2400 $(KFLAGS)" "LIBS=-lm"
  1670.  
  1671. tru64-40g:
  1672.     @echo Making C-Kermit $(CKVER) for Tru64 UNIX 4.0G...
  1673.     $(MAKE) osf KTARGET=$${KTARGET:-$(@)} \
  1674.     "KFLAGS= -DOSF40 -DOSF40G -DTRU64 -DHDBUUCP -DFNFLOAT -DNOCOTFMC \
  1675.     -unsigned -std1 -O3 -Olimit 2400 $(KFLAGS)" "LIBS=-lm"
  1676.  
  1677. tru64-50:
  1678.     @echo Making C-Kermit $(CKVER) for Tru64 UNIX 5.0...
  1679.     $(MAKE) osf KTARGET=$${KTARGET:-$(@)} \
  1680.     "KFLAGS= -DTRU64 -DOSF50 -DHDBUUCP \
  1681.     -unsigned -std1 -O3 -Olimit 2400 $(KFLAGS)"
  1682.  
  1683. du50:
  1684.     $(MAKE) tru64-50 KTARGET=$${KTARGET:-$(@)}
  1685.  
  1686. du40-ridiculous-checking:
  1687.     @echo Making C-Kermit $(CKVER) for Digital UNIX 4.0.
  1688.     @echo Checking everything - assumes DECC...
  1689.     $(MAKE) osf KTARGET=$${KTARGET:-$(@)} \
  1690.     "KFLAGS= -DOSF40 -DHDBUUCP -w0 -warnprotos -check -portable \
  1691.     -unsigned -std1 -O3 -Olimit 1760 $(KFLAGS)"
  1692.  
  1693. #Sequent DYNIX/ptx 1.2.1
  1694. dynixptx12:
  1695.     @echo Making C-Kermit $(CKVER) for Sequent DYNIX/ptx 1.2.1...
  1696.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  1697.     "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -DPTX -DNOGETUSERSHELL \
  1698.     -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t $(KFLAGS) -i -O" \
  1699.     "LNKFLAGS = -i"
  1700.  
  1701. #Sequent DYNIX/ptx 1.3 or 1.4
  1702. dynixptx13:
  1703.     @echo Making C-Kermit $(CKVER) for Sequent DYNIX/ptx 1.3 TCP/IP...
  1704.     $(MAKE) xermit "CFLAGS= -O KTARGET=$${KTARGET:-$(@)} \
  1705.     -DSVR3 -DDIRENT -DHDBUUCP -DPTX -DCK_POLL -DNOGETUSERSHELL \
  1706.     -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t -DTCPSOCKET $(KFLAGS) -i" \
  1707.     "LNKFLAGS = -i" "LIBS = -lsocket -linet -lnsl"
  1708.  
  1709. #Sequent DYNIX/ptx 2.0, ANSI C compilation
  1710. #Should work on any hardware platform when DYNIX/ptx runs, including
  1711. #386, 486, Pentium.
  1712. dynixptx20:
  1713.     @echo 'Making C-Kermit $(CKVER) for POSIX, Sequent DYNIX/ptx 2.0...'
  1714.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1715.     "CFLAGS= -DPOSIX -DHDBUUCP -DTCPSOCKET \
  1716.     -DWAIT_T=int -DPTX -DNOGETUSERSHELL $(KFLAGS) -O" \
  1717.     "LIBS = -lsocket -linet -lnsl"
  1718.  
  1719. #Sequent DYNIX/ptx 2.0, ANSI C compilation, with curses
  1720. dynixptx20c:
  1721.     @echo 'Making C-Kermit $(CKVER) for POSIX, Sequent DYNIX/ptx 2.0...'
  1722.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1723.     "CFLAGS= -DPOSIX -DHDBUUCP -DTCPSOCKET -DWAIT_T=int -DPTX -DCK_CURSES \
  1724.     -DCK_NEWTERM -DNOGETUSERSHELL $(KFLAGS) -O" \
  1725.     "LIBS = -lsocket -linet -lnsl -lcurses -ltermcap"
  1726.  
  1727. #Sequent DYNIX/ptx 2.1.6, 80486, ANSI C compilation, with curses:
  1728. # -Xa -- use ANSI compiler.
  1729. # -Wc,-pw -- suppress portability warnings.
  1730. # -Wc,-i386 -- 80386 cpu.
  1731. # -Wc,-i486 -- 80486 cpu.
  1732. # -Wc,-P5 -- Pentium (default).
  1733. # -Wc,-O3 -- highest optimization.
  1734. # -Wa,-N17061 -- increase symbol table from default of 15013 for ckcuni.c.
  1735. # Early versions of DYNIX/ptx 2.1.x may need -DCK_POLL instead of -DSELECT.
  1736. # Add "$&" after the colon in the "xermit" target for parallel makes.
  1737. dynixptx216c:
  1738.     @echo 'Making C-Kermit $(CKVER) for POSIX, Sequent DYNIX/ptx 2.1.6'
  1739.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1740.     "CFLAGS= -DPOSIX -DHDBUUCP -DDYNAMIC -DTCPSOCKET \
  1741.     -DSELECT -DCK_REDIR -DCK_NAWS -DCK_WREFRESH -DSW_ACC_ID \
  1742.     -DTCP_NODELAY -DTRMBUFL=2048 -DBIGBUFOK -DHADDRLIST \
  1743.     -DPTX  -DCK_CURSES -DCK_NEWTERM -DNOGETUSERSHELL -DNOREALPATH \
  1744.     $(KFLAGS) -Xa -Wc,-pw -Wc,-i486 -Wc,-O3 -Wa,-N17061" \
  1745.     "LIBS = -lXbsd -lseq -lsocket -linet -lnsl -lmalloc -lm -lcurses" \
  1746.     "LNKFLAGS = -s"
  1747.  
  1748. #Sequent DYNIX/ptx 2.1.6, gcc 2.7.2.2, with curses:
  1749. dynixptx216cgcc:
  1750.     @echo 'Making C-Kermit $(CKVER) for POSIX, Sequent DYNIX/ptx 2.1.6 gcc'
  1751.     $(MAKE) xermit "CC = gcc" "CC2 = gcc" KTARGET=$${KTARGET:-$(@)} \
  1752.     "CFLAGS= -DPOSIX -DHDBUUCP -DDYNAMIC -DTCPSOCKET \
  1753.     -DSELECT -DCK_REDIR -DCK_NAWS -DCK_WREFRESH -DSW_ACC_ID \
  1754.     -DTCP_NODELAY -DTRMBUFL=2048 -DBIGBUFOK -DHADDRLIST \
  1755.     -DPTX  -DCK_CURSES -DCK_NEWTERM -DNOGETUSERSHELL -DNOREALPATH \
  1756.     $(KFLAGS) -O3 -pipe -funsigned-char" \
  1757.     "LIBS = -lXbsd -lseq -lsocket -linet -lnsl -lmalloc -lm -lcurses" \
  1758.     "LNKFLAGS = -s"
  1759.  
  1760. #Sequent DYNIX/ptx 4.0, ANSI C compilation, with curses
  1761. dynixptx41c:
  1762.     @echo 'Making C-Kermit $(CKVER) for POSIX, Sequent DYNIX/ptx 4.0...'
  1763.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1764.     "CFLAGS= -DPOSIX -DHDBUUCP -DTCPSOCKET \
  1765.     -DWAIT_T=int -DPTX -DPTX4 -DCK_CURSES -DCK_NEWTERM \
  1766.     -DNOGETUSERSHELL $(KFLAGS) -O" \
  1767.     "LIBS = -lsocket -lnsl -lcurses -ltermcap"
  1768.  
  1769. #Sequent DYNIX/ptx 4.4, ANSI C compilation, with curses
  1770. dynixptx44:
  1771.     @echo 'Making C-Kermit $(CKVER) for POSIX, Sequent DYNIX/ptx 4.4...'
  1772.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1773.     "CFLAGS= -DPTX -DPTX4 -DPOSIX -DHDBUUCP -DTCPSOCKET -DWAIT_T=int \
  1774.     -DCK_CURSES -DCK_NEWTERM -DBIGBUFOK -DSELECT -DNOGETUSERSHELL \
  1775.     $(KFLAGS) -O" "LIBS = -lsocket -lnsl -lcurses -ltermcap"
  1776.  
  1777. #Sequent DYNIX 3.0.x
  1778. dynix3:
  1779.     @echo Making C-Kermit $(CKVER) for Sequent DYNIX 3.0.x...
  1780.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1781.     "CFLAGS= -DBSD43 -DACUCNTRL -DTCPSOCKET -O \
  1782.     -DPWUID_T=int -DGID_T=int $(KFLAGS)"
  1783.  
  1784. #Sequent DYNIX 3.0.x, no ACUCNTRL
  1785. dynix3noacu:
  1786.     @echo Making C-Kermit $(CKVER) for Sequent DYNIX 3.0.x...
  1787.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1788.     "CFLAGS= -DBSD43 -DLCKDIR -DTCPSOCKET -O \
  1789.     -DUID_T=int -DGID_T=int $(KFLAGS)"
  1790.  
  1791. #Sequent DYNIX 3.1.x
  1792. dynix31:
  1793.     @echo Making C-Kermit $(CKVER) for Sequent DYNIX 3.1.x...
  1794.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1795.     "CFLAGS= -O -DDCLPOPEN -DLCKDIR -DBSD4 -DTCPSOCKET $(KFLAGS)"
  1796.  
  1797. #Sequent DYNIX 3.1.2, as above but with curses, to be compiled by gcc 2.3.3.
  1798. dynix31c:
  1799.     @echo 'Making C-Kermit $(CKVER) for Sequent DYNIX 3.1.2, curses...'
  1800.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1801.     "CFLAGS= -O2 -DDCLPOPEN -DACUCNTRL \
  1802.     -DBSD43 -DTCPSOCKET -DCK_CURSES -DUID_T=int \
  1803.     $(KFLAGS)" "LIBS= -lcurses -ltermcap"
  1804.  
  1805. #Convex C1 with Berkeley Unix
  1806. convex:
  1807.     @echo Making C-Kermit $(CKVER) for Convex C1 / BSD...
  1808.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  1809.     "CFLAGS= -DBSD4 $(KFLAGS) -Dmsleep=mnap"
  1810.  
  1811. #Convex C210 with Convex/OS 8
  1812. convex8:
  1813.     @echo Making C-Kermit $(CKVER) for Convex C210 with OS 8
  1814.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1815.     "CFLAGS= -DBSD4 -DTCPSOCKET -DNODEBUG -DDIRENT -DNOFILEH \
  1816.     $(KFLAGS) -DSIG_V -Dmsleep=mnap"
  1817.  
  1818. #Convex C2 with Convex OS 9.1 (should also work with 8.1 or later)
  1819. #with ANSI C compiler, uses BSD 4.3 uucp lockfile convention.
  1820. convex9:
  1821.     @echo Making C-Kermit $(CKVER) for Convex C210 with OS 9.1
  1822.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1823.     "CFLAGS= -DPOSIX -DCONVEX9 -DNOIEXTEN -DDIRENT -DNOFILEH -DTCPSOCKET \
  1824.     -D__STDC__ -DLCKDIR -Dmsleep=mnap -O -ext -tm c1 $(KFLAGS)" \
  1825.     "LNKFLAGS = -ext"
  1826.  
  1827. #Convex C2 with Convex OS 10.1 or later
  1828. #with gcc 2.x C compiler
  1829. convex10gcc:
  1830.     @echo Making C-Kermit $(CKVER) for Convex C2 with OS 10.1 using gcc
  1831.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1832.     "CFLAGS= -DPOSIX -DCONVEX9 -DNOIEXTEN -DDIRENT -DNOFILEH -DTCPSOCKET \
  1833.     -D__STDC__  -Dmsleep=mnap -O2 $(KFLAGS)" CC=gcc CC2=gcc
  1834.  
  1835. #Cray X-MP or Y-MP UNICOS 6.x or 7.x.
  1836. #NOTE: NPROC tells how many parallel makes to run.  If your Cray has multiple
  1837. #processors, you can set NPROC up to the number of CPUs, e.g. NPROC=16.
  1838. cray:
  1839.     @echo 'Making C-Kermit $(CKVER) for Cray X/Y-MP UNICOS 6.x or 7.0...
  1840.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} NPROC=1 \
  1841.     "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -DTCPSOCKET $(KFLAGS) -O1"
  1842.  
  1843. #Cray X-MP or Y-MP UNICOS 8.0 Alpha.
  1844. cray8:
  1845.     @echo 'Making C-Kermit $(CKVER) for Cray X/Y-MP UNICOS 8.0 Alpha...
  1846.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} NPROC=1 \
  1847.     "CFLAGS= -DSVR4 -DDIRENT -DHDBUUCP -DTCPSOCKET $(KFLAGS) -O1"
  1848.  
  1849. #Cray-2 or Cray 3-CSOS
  1850. #NOTE: NPROC tells how many parallel makes to run.  If your Cray has multiple
  1851. #processors, you can set NPROC up to the number of CPUs, e.g. NPROC=16.
  1852. craycsos:
  1853.     @echo 'Making C-Kermit $(CKVER) for Cray-2/3 CSOS
  1854.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} NPROC=1 \
  1855.     "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -DTCPSOCKET \
  1856.     $(KFLAGS) -DCK_ANSIC -DCK_CURSES" "LIBS=-lnet"
  1857.  
  1858. #NeXTSTEP 1.0 through 3.2.
  1859. #Includes fullscreen file transfer display (curses) and TCP/IP support.
  1860. #Uses shared library to make executable program about 80K smaller.
  1861. #Remove "LIBS = -lsys_s" if this causes trouble.
  1862. next:
  1863.     @echo Making C-Kermit $(CKVER) for NeXTSTEP...
  1864.     @echo 'If you get errors in ckutio.c about w_S, w_T, etc,'
  1865.     @echo 'add KFGLAGS=-DNOREDIRECT to your make command.'
  1866.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1867.     "CFLAGS= -DNEXT -DTCPSOCKET -DLCKDIR -DNOPUTENV -DFNFLOAT \
  1868.     -pipe -DCK_CURSES $(KFLAGS) -O -w" "LIBS = -lsys_s -lcurses -ltermcap"
  1869.  
  1870. nextc:
  1871.     $(MAKE) "MAKE=$(MAKE)" next KTARGET=$${KTARGET:-$(@)}
  1872.  
  1873. nextg:
  1874.     $(MAKE) "MAKE=$(MAKE)" next KFLAGS=-Wall KTARGET=$${KTARGET:-$(@)}
  1875.  
  1876. nextgc:
  1877.     $(MAKE) "MAKE=$(MAKE)" next KFLAGS=-Wall KTARGET=$${KTARGET:-$(@)}
  1878.  
  1879. #NeXTSTEP 3.3.
  1880. #Includes fullscreen file transfer display and TCP/IP.
  1881. next33:
  1882.     @echo Making C-Kermit $(CKVER) for NeXTSTEP 3.3...
  1883.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1884.     "CFLAGS= -DNEXT33 -DTCPSOCKET -DLCKDIR -DNOPUTENV -DFNFLOAT \
  1885.     -pipe -DCK_CURSES $(KFLAGS) -O -w" "LIBS = -lsys_s -lcurses -ltermcap"
  1886.  
  1887. #OPENSTEP 4.2 for Sparc, m680x0, HP PA-RISC, and Intel.
  1888. #Includes fullscreen file transfer display and TCP/IP.
  1889. #ckcpro.c compiled without optimization because it crashes the compiler.
  1890. openstep42:
  1891.     @echo Making C-Kermit $(CKVER) for OPENSTEP 4.2...
  1892.     $(MAKE) ckcpro.$(EXT) \
  1893.     "CFLAGS= -DOPENSTEP42 -DNEXT33 -DTCPSOCKET -DLCKDIR -DNOPUTENV \
  1894.     -DFNFLOAT -pipe -DCK_CURSES $(KFLAGS) -w"
  1895.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1896.     "CFLAGS= -DOPENSTEP42 -DNEXT33 -DTCPSOCKET -DLCKDIR -DNOPUTENV \
  1897.     -DFNFLOAT -pipe -DCK_CURSES $(KFLAGS) -O -w" \
  1898.     "LIBS = -lsys_s -lcurses -ltermcap"
  1899.  
  1900. #NeXT with malloc debugger
  1901. nextmd:
  1902.     @echo Making C-Kermit $(CKVER) for NeXT with malloc debugging...
  1903.     $(MAKE) mermit KTARGET=$${KTARGET:-$(@)} \
  1904.     "CFLAGS= -DNEXT -DTCPSOCKET -DLCKDIR -DNOPUTENV -DFNFLOAT \
  1905.     -DCK_CURSES $(KFLAGS) -O -w -Dmalloc=dmalloc -Dfree=dfree -DMDEBUG" \
  1906.     "LIBS = -lsys_s -lcurses -ltermcap"
  1907.  
  1908. #Build for NeXTSTEP with "fat" binaries (MABs) that run on both Motorola
  1909. #and Intel platforms.
  1910. nextfat:
  1911.     $(MAKE) "MAKE=$(MAKE)" next KTARGET=$${KTARGET:-$(@)} \
  1912.     "KFLAGS=-Wall -arch m68k -arch i386" "LNKFLAGS = -arch m68k -arch i386"
  1913.  
  1914. #NeXTSTEP on Intel Platforms.
  1915. next486:
  1916.     @echo Making C-Kermit $(CKVER) for NeXTSTEP on Intel Platforms...
  1917.     @echo 'If you get errors in ckutio.c about w_S, w_T, etc,'
  1918.     @echo 'add KFGLAGS=D-DNOREDIRECT to your make command.'
  1919.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1920.     "CFLAGS= -DNEXT -DTCPSOCKET -DLCKDIR -DNOPUTENV -DFNFLOAT \
  1921.     -DNODEBUG -O3 -fno-omit-frame-pointer -fschedule-insns2 -pipe \
  1922.     -DCK_CURSES $(KFLAGS) -w" "LIBS = -lsys_s -lcurses -ltermcap"
  1923.  
  1924. #Single binary that runs on NeXT 68030 and 68040, Intel, HP, and Sparc,
  1925. #as well as on OpenStep/Mach.
  1926. nextquadfat:
  1927.     $(MAKE) "MAKE=$(MAKE)" next KTARGET=$${KTARGET:-$(@)} \
  1928.     "KFLAGS=-Wall -arch m68k -arch i386 -arch hppa -arch sparc" \
  1929.     "LNKFLAGS = -arch m68k -arch i386 -arch hppa -arch sparc"
  1930.  
  1931. #BeBox
  1932. beboxdr7:
  1933.     @echo 'Making C-Kermit $(CKVER) for the BeBox...'
  1934.     @echo 'Link step will fail with default Metroworks linker 64K limit.'
  1935.     @echo 'Code Warrior Gold required to link big programs.'
  1936.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  1937.     "CC=/boot/develop/tools/mwcc" "CC2=/boot/develop/tools/mwld" \
  1938.     "CFLAGS= -DBEBOX -DBE_DR_7 -DPOSIX -DNOUUCP $(KFLAGS) -O"
  1939.  
  1940. #BeBox BeOS DR7 only
  1941. bebox:
  1942.     @echo 'Making C-Kermit $(CKVER) for BeBox...'
  1943.     @echo 'Link step will fail with default Metroworks linker 64K limit.'
  1944.     @echo 'Code Warrior Pro 3.0 for BeBox required to link big programs.'
  1945.     $(MAKE) wermit "CC=mwcc" "CC2=mwld" KTARGET=$${KTARGET:-$(@)} \
  1946.     "CFLAGS= -DBEBOX -DPOSIX -DNOUUCP $(KFLAGS) -O"
  1947.  
  1948. #BeOS 4.5
  1949. #We have to use the wermit target because 'fd_set' is unknown.
  1950. beos45:
  1951.     $(MAKE) wermit "CC=$(CC)" "CC2=$(CC2)" KTARGET=$${KTARGET:-$(@)} \
  1952.     "CFLAGS= -DBEOS -DBEOS45 -DPOSIX -DNOIKSD -DNOREALPATH -DSYSTIMEH \
  1953.     -DNOCOTFMC -DNOUUCP $(KFLAGS) -O" \
  1954.     "LIBS = $(LIBS)"
  1955.  
  1956. #BeOS 4.5
  1957. beos45net:
  1958.     $(MAKE) beos45 "KFLAGS=-DTCPSOCKET -DNO_DNS_SRV $(KFLAGS)" \
  1959.     "LIBS=-lnet -lnetapi"
  1960.  
  1961. #Plan 9 from Bell Labs
  1962. plan9:
  1963.     @echo 'C-Kermit for Plan 9 from Bell Labs - calling ckpker.mk...'
  1964.     make -f ckpker.mk
  1965.  
  1966. #POSIX
  1967. posix:
  1968.     @echo 'Making C-Kermit $(CKVER) for pure POSIX...'
  1969.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  1970.     "CFLAGS= -DPOSIX -DNOUUCP $(KFLAGS) -O"
  1971.  
  1972. #Berkeley Software Design Inc. BSDI
  1973. # Substitute "LIBS= -lnewcurses -ltermcap" if desired.
  1974. bsdi:
  1975.     @echo 'Making C-Kermit $(CKVER) for BSDI ...'
  1976.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  1977.     "CFLAGS= -DBSD44 -DSETREUID -DSW_ACC_ID -DBIGBUFOK \
  1978.     -DTCPSOCKET -DCK_CURSES -DFNFLOAT $(KFLAGS) -O" \
  1979.     "LIBS= -lcurses -ltermcap -lm"
  1980.  
  1981. #Berkeley Software Design Inc. BSDI - has higher serial speeds than 1.x.
  1982. bsdi2:
  1983.     $(MAKE) "MAKE=$(MAKE)" bsdi KTARGET=$${KTARGET:-$(@)} \
  1984.     "KFLAGS=-DBSDI2 $(KFLAGS)"
  1985.  
  1986. bsdi3:
  1987.     $(MAKE) "MAKE=$(MAKE)" bsdi KTARGET=$${KTARGET:-$(@)} \
  1988.     "KFLAGS=-DBSDI2 -DBSDI3 $(KFLAGS)"
  1989.  
  1990. bsdi4:
  1991.     $(MAKE) "MAKE=$(MAKE)" bsdi KTARGET=$${KTARGET:-$(@)} \
  1992.     "KFLAGS=-DBSDI2 -DBSDI3 -DBSDI4 -DTPUTSFNTYPE=void -DTPUTSISVOID \
  1993.     -m486 $(KFLAGS)"
  1994.  
  1995. # (old name for the above)
  1996. bsdiposix:
  1997.     $(MAKE) "MAKE=$(MAKE)" bsdi
  1998.  
  1999.  
  2000. #Pyramid 9XXX (e.g. 9845) or MIServer T series, OSx 4.4b thru 5.1
  2001. pyramid:
  2002.     @echo Making C-Kermit $(CKVER) for Pyramid Dual Port OSx
  2003.     ucb $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2004.     "CFLAGS= -DBSD43 -DTCPSOCKET -DPYRAMID -O $(KFLAGS)" "LNKFLAGS = -s"
  2005.  
  2006. #Pyramid Dual Port OSx using HonyDanBer UUCP, curses and TCP
  2007. pyramid-hdb:
  2008.     @echo Making C-Kermit $(CKVER) for Pyramid Dual Port OSx
  2009.     ucb $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2010.     "CFLAGS= -DBSD43 -DTCPSOCKET -DHBDUUCP -DCK_CURSES -O $(KFLAGS)" \
  2011.     "LNKFLAGS = -s" "LIBS = -lcurses -ltermcap"
  2012.  
  2013. #Pyramid DC/OSx (UNIX System V R4).
  2014. #Has <sys/termiox.h>, regular Berkeley sockets library, i.e. in.h and inet.h
  2015. #are not misplaced in sys (rather than netinet and arpa, respectively).
  2016. #Uses ANSI C.
  2017. #NOTE: Remove -O and Olimit:2500 from CFLAGS if TELNET connections do not work.
  2018. pyrdcosx:
  2019.     @echo 'Making C-Kermit $(CKVER) for Pyramid DC/OSx...'
  2020.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2021.     "CFLAGS = -Xa -O -DSVR4 -DDIRENT -DHDBUUCP -DSELECT -DNOGETUSERSHELL \
  2022.     -DCK_CURSES -DSTERMIOX -DTCPSOCKET -DPYRAMID -K Olimit:3100 \
  2023.     -DNO_DNS_SRV $(KFLAGS)" "LIBS= -lcurses -lsocket -lnsl" "LNKFLAGS = -s"
  2024.  
  2025. #IBM's AIX 3.0 on IBM 370 mainframe, tested on AIX F44 thru F50.
  2026. aix370:
  2027.     @echo Making C-Kermit $(CKVER) for IBM System/370 AIX 3.0...
  2028.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2029.     "CFLAGS= -DAIX370 -DTCPSOCKET -DLCKDIR -DDIRENT $(KFLAGS)" \
  2030.     "LIBS = -lbsd"
  2031.  
  2032. #IBM's AIX/ESA 2.1 (OSF/1) on IBM mainframe
  2033. aixesa:
  2034.     @echo Making C-Kermit $(CKVER) for IBM AIX/ESA...
  2035.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2036.     "CFLAGS= -DAIXESA -DTCPSOCKET $(KFLAGS) -O"
  2037.  
  2038. #IBM PS/2 with AIX 1.0 thru 1.3.
  2039. #  Reports indicate that -O switch must be omitted.
  2040. #  It is also possible that "make bsd" will work (reports welcome).
  2041. #  One report said "make LIBS=-lbsd bsd" did the trick.
  2042. #  NOTLOG is to get around a 'tlog' symbol defined in one of the headers.
  2043. ps2aix:
  2044.     @echo 'Making C-Kermit $(CKVER) for IBM AIX 1.x PS/2...'
  2045.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  2046.     "CFLAGS = -DATTSV -DNOREALPATH -DPS2AIX10 -DSIG_V \
  2047.     -DNOUNICODE -DNOTLOG $(KFLAGS) -i" \
  2048.     "LNKFLAGS = -i"
  2049.  
  2050. ps2aixnetc:
  2051.     @echo 'Making C-Kermit $(CKVER) for IBM AIX 1.x PS/2...'
  2052.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  2053.     "CFLAGS = -DATTSV -DNOREALPATH -DPS2AIX10 -DTCPSOCKET -DCK_CURSES \
  2054.     -DSIG_V -DNOUNICODE -DNOTLOG $(KFLAGS) -i" \
  2055.     "LIBS = -lcurses" "LNKFLAGS = -i"
  2056.  
  2057. ps2aix3:
  2058.     $(MAKE) ps2aix KTARGET=$${KTARGET:-$(@)}
  2059.  
  2060. #IBM RT PC with AIX 2.2.1
  2061. #This one has unique and strange lockfiles.
  2062. rtaix:
  2063.     @echo 'Making C-Kermit $(CKVER) for IBM RT PC, AIX 2.2.1...'
  2064.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  2065.     "CFLAGS = -DATTSV -DRTAIX -DHDBUUCP -DTCPSOCKET -DNOIKSD -Wq,-SJ2 \
  2066.     -DCLSOPN -DNOREALPATH -DNOUNICODE -DNOPUTENV $(KFLAGS) -O -w" \
  2067.     "LNKFLAGS = -s"
  2068.  
  2069. #IBM RT PC with AIX 2.2.1
  2070. #This one has unique and strange lockfiles.
  2071. rtaixc:
  2072.     @echo 'Making C-Kermit $(CKVER) for IBM RT PC, AIX 2.2.1, curses...'
  2073.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  2074.     "CFLAGS = -DATTSV -DRTAIX -DHDBUUCP -DTCPSOCKET -DCK_CURSES \
  2075.     -DCLSOPN -DNOREALPATH -DNOIKSD -DNOPUTENV -Wq,-SJ2 $(KFLAGS) -O -w" \
  2076.     "LIBS=-lcurses" "LNKFLAGS = -s"
  2077.  
  2078. #IBM RT PC with AIX (ACIS) 2.2.1 (BSD 4.3)
  2079. # Add -O, -DDYNAMIC, -s, etc, if they work.
  2080. rtacis:
  2081.     @echo Making C-Kermit $(CKVER) for RT PC with ACIS 2.2.1 = BSD 4.3...
  2082.     $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
  2083.     "CFLAGS= -DBSD4 -DTCPSOCKET -DNOREALPATH -DNOIKSD -DNOPUTENV \
  2084.     $(KFLAGS) -U__STDC__" "LNKFLAGS = -s"
  2085.  
  2086. #IBM AIX 3.0, 3.1, or 3.2 for RISC System/6000.
  2087. rs6000:
  2088.     @echo Making C-Kermit $(CKVER) for IBM AIX 3.0 or 3.1, RS/6000...
  2089.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2090.     "CFLAGS= -DAIXRS -DTCPSOCKET -DSVR3 -DDIRENT -DCK_ANSIC \
  2091.     -DCK_POLL -DCLSOPN -DSELECT_H -DNOTTYLOCK -O $(KFLAGS)" \
  2092.     "LNKFLAGS = -s"
  2093.  
  2094. #IBM AIX 3.0, 3.1, or 3.2 for RISC System/6000, with curses.
  2095. rs6000c:
  2096.     @echo Making C-Kermit $(CKVER) for IBM AIX 3.0 or 3.1, RS/6000...
  2097.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2098.     "CFLAGS= -DAIXRS -DTCPSOCKET -DSVR3 -DDIRENT -DCK_ANSIC \
  2099.     -DCK_POLL -DCLSOPN -DCK_CURSES -DSELECT_H -DNOTTYLOCK -DNOREALPATH \
  2100.     -O $(KFLAGS)" "LIBS= -lcurses -ltermcap" "LNKFLAGS = -s"
  2101.  
  2102. aix30:
  2103.     $(MAKE) rs6000 KTARGET=$${KTARGET:-$(@)}
  2104.  
  2105. aix31:
  2106.     $(MAKE) rs6000 KTARGET=$${KTARGET:-$(@)}
  2107.  
  2108. #IBM AIX 3.2 for RISC System/6000.
  2109. #In case of "subprogram too complex" warnings, add "-qmaxmem=4000" to CFLAGS.
  2110. rs6aix32:
  2111.     @echo Making C-Kermit $(CKVER) for IBM AIX 3.2, RS/6000...
  2112.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2113.     "CFLAGS= -DAIXRS -DTCPSOCKET -DSVR4 -DDIRENT -DCK_ANSIC -DNOREALPATH \
  2114.     -DSELECT_H -DCLSOPN -DNOTTYLOCK -O $(KFLAGS)" "LNKFLAGS = -s"
  2115.  
  2116. #IBM AIX 3.2 for RISC System/6000.
  2117. rs6aix32c:
  2118.     @echo Making C-Kermit $(CKVER) for IBM AIX 3.2, RS/6000, TCP+curses...
  2119.     @echo In case of Subprogram Too Complex warnings,
  2120.     @echo add -qmaxmem=6000 to CFLAGS.
  2121.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2122.     "CFLAGS= -DAIXRS -DTCPSOCKET -DSVR4 -DDIRENT -DCK_ANSIC -DNOREALPATH \
  2123.     -DCLSOPN -DCK_CURSES -DSELECT_H -DNOTTYLOCK -O $(KFLAGS)" \
  2124.     "LNKFLAGS = -s" "LIBS=-lcurses"
  2125.  
  2126. aix32:
  2127.     $(MAKE) rs6aix32c KTARGET=$${KTARGET:-$(@)}
  2128.  
  2129. #IBM AIX 4.1, 4.1.x on RISC System/6000 or Power Series.
  2130. #Generates common binary for all platforms if using xlc (IBM C compiler).
  2131. #When using gcc, add -mcpu=common to generate common binary.
  2132. #Note that this one needs CK_NEWTERM.
  2133. # Add -bbigtoc in case ld fails with TOC overflow.
  2134. aix41:
  2135.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.1.1 RS/6000 or PowerPC...
  2136.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2137.     "CFLAGS= -DAIXRS -DAIX41 -DSVR4 -DSTERMIOX -DTCPSOCKET -DDIRENT \
  2138.     -DCK_ANSIC -DCLSOPN -DCK_CURSES -DCK_NEWTERM -DSELECT -DSELECT_H \
  2139.     -DNOGETUSERSHELL -qmaxmem=16000 -O $(KFLAGS)" \
  2140.     "LNKFLAGS = -s" "LIBS=-lcurses"
  2141.  
  2142. # Add -bbigtoc in case ld fails with TOC overflow.
  2143. aix41+krb5+krb4:
  2144.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.1.1 RS/6000 or PowerPC...
  2145.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} \
  2146.     "CFLAGS= -DAIXRS -DAIX41 -DSVR4 -DSTERMIOX -DTCPSOCKET -DDIRENT \
  2147.     -DCK_ANSIC -DCLSOPN -DCK_CURSES -DCK_NEWTERM -DSELECT -DSELECT_H \
  2148.     -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 -DKRB4 -DKRB524 \
  2149.     -DCK_ENCRYPTION -DCK_DES \
  2150.     -I/usr/local/include/  \
  2151.     -DNOGETUSERSHELL -qmaxmem=16000 -O $(KFLAGS)" \
  2152.     "LNKFLAGS = -s" \
  2153.     "LIBS = -L/usr/local/lib -lcurses -lkrb4 -ldes425 -lkrb5 \
  2154.     -lcom_err -lk5crypto"
  2155.  
  2156. #IBM AIX 4.1 (Beta) or AIX 4.1.1 for RISC System/6000 or Power Series
  2157. # Add -bbigtoc in case ld fails with TOC overflow.
  2158. rs6aix41d:
  2159.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.1.1 - debugging...
  2160.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2161.     "CFLAGS= -g -DAIXRS -DAIX41 -DSVR4 -DSTERMIOX -DTCPSOCKET -DDIRENT \
  2162.     -DCK_ANSIC -DCLSOPN -DCK_CURSES -DCK_NEWTERM -DSELECT -DSELECT_H \
  2163.     -DNOGETUSERSHELL -DRLOGCODE -qcheck -qextchk -qinfo -qproto \
  2164.     -qflag=i:i -langlvl=ansi -qtbtable=full -bnoquiet -qmaxmem=16000 \
  2165.     $(KFLAGS)" "LNKFLAGS =" "LIBS=-lcurses"
  2166.  
  2167. #Old name for "aix41".
  2168. rs6aix41c:
  2169.     $(MAKE) aix41 KTARGET=$${KTARGET:-$(@)}
  2170.  
  2171. #IBM AIX 4.1, 4.1.x, or 4.2 on RISC System/6000 or Power Series,
  2172. # with X.25 support
  2173. #Generates common binary for all platforms if using xlc (IBM C compiler).
  2174. #When using gcc, add -mcpu=common to generate common binary.
  2175. # Add -bbigtoc in case ld fails with TOC overflow.
  2176. aix41x25:
  2177.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.1.1 RS/6000 or PowerPC...
  2178.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2179.     "CFLAGS= -DAIXRS -DAIX41 -DSVR4 -DSTERMIOX -DTCPSOCKET -DDIRENT \
  2180.     -DCK_ANSIC -DCLSOPN -DCK_CURSES -DCK_NEWTERM -DSELECT -DSELECT_H \
  2181.     -DIBMX25 -DDEBUG -DNOGETUSERSHELL -qmaxmem=16000 -g $(KFLAGS)" \
  2182.     "LNKFLAGS = -g -bI:/lib/pse.exp" "LIBS=-lcurses -lodm -lcfg"
  2183.     -@echo "]0;kermit done\c"
  2184.  
  2185. #As above but without -g in LNKFLAGS.
  2186. # Add -bbigtoc in case ld fails with TOC overflow.
  2187. aix41x25o:
  2188.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.1.1 RS/6000 or PowerPC...
  2189.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2190.     "CFLAGS= -DAIXRS -DAIX41 -DSVR4 -DSTERMIOX -DTCPSOCKET -DDIRENT \
  2191.     -DCK_ANSIC -DCLSOPN -DCK_CURSES -DCK_NEWTERM -DSELECT -DSELECT_H \
  2192.     -DIBMX25 -DNODEBUG -DNOGETUSERSHELL -qmaxmem=16000 $(KFLAGS)" \
  2193.     "LNKFLAGS = -bI:/lib/pse.exp" "LIBS=-lcurses -lodm -lcfg"
  2194.     -@echo "]0;kermit done\c"
  2195.  
  2196. #AIX 4.2 -- Must have CK_NEWTERM or echoing is lost after curses.
  2197. # Add -bbigtoc in case ld fails with TOC overflow.
  2198. aix42:
  2199.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.2 or higher...
  2200.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2201.     "CFLAGS= -DAIXRS -DAIX41 -DAIX42 -DSVR4 -DSTERMIOX -DTCPSOCKET \
  2202.     -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DCK_NEWTERM -DFNFLOAT \
  2203.     -DSELECT -DSELECT_H -DNOGETUSERSHELL -qmaxmem=16000 -O $(KFLAGS)" \
  2204.     "LNKFLAGS = -s" "LIBS=-lcurses -lm"
  2205.  
  2206. #AIX 4.3 -- Must NOT have CK_NEWTERM or else C-Kermit hangs after curses.
  2207. # -bbigtoc needed on some systems but not others to avoid TOC overflow.
  2208. # "man ld" says -bbigtoc makes program run slower.
  2209. aix43:
  2210.     @echo Making C-Kermit $(CKVER) for IBM AIX 4.3 or higher...
  2211.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2212.     "CFLAGS= -DAIXRS -DAIX41 -DAIX43 -DSVR4 -DSTERMIOX -DTCPSOCKET \
  2213.     -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DSELECT -DSELECT_H \
  2214.     -DFNFLOAT -DNOGETUSERSHELL -qmaxmem=16000 -bbigtoc -O $(KFLAGS)" \
  2215.     "LNKFLAGS = -s" "LIBS=-lcurses -lm"
  2216.  
  2217. aix44:
  2218.     $(MAKE) aix42 "KFLAGS=-DAIX44 -qmaxmem=20000 $(KFLAGS)" \
  2219.     KTARGET=$${KTARGET:-$(@)}
  2220.  
  2221. aix45:
  2222.     $(MAKE) aix42 "KFLAGS=-DAIX45 -qmaxmem=20000 $(KFLAGS)" \
  2223.     KTARGET=$${KTARGET:-$(@)}
  2224.  
  2225. #Bull DPX/2 with BOS/X, like AIX/RS6000
  2226. bulldpx2:
  2227.     @echo Making C-Kermit $(CKVER) for Bull DPX/2 with BOS/X...
  2228.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  2229.     "CFLAGS= -DSVR3 -DDIRENT -DCK_ANSIC -DCKTYP_H=<sys/types.h> \
  2230.     -DCK_POLL -DNOGETUSERSHELL -DCLSOPN -O $(KFLAGS)" \
  2231.     "LNKFLAGS = -s"
  2232.  
  2233. #Sun UNIX 3.5 with gcc 2.3.3.
  2234. sunos3gcc:
  2235.     @echo Making C-Kermit $(CKVER) for Sun UNIX 3.5 and gcc...
  2236.     $(MAKE) xermit CC=gcc CC2=gcc KTARGET=$${KTARGET:-$(@)} \
  2237.     CFLAGS="-g -O -DBSD4 -DTCPSOCKET $(KFLAGS)"
  2238.  
  2239. #SunOS version 4.0, BSD environment, has saved original euid feature.
  2240. # Add "CC=/usr/ucb/cc CC2=/usr/ucb/cc" if necessary.
  2241. # Note: Including Unicode crashes the assembler in ckcuni.c.
  2242. sunos4:
  2243.     @echo Making C-Kermit $(CKVER) for SunOS 4.0, BSD environment...
  2244.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2245.     "CFLAGS= -O -DSUNOS4 -DFNFLOAT -DNOUNICODE $(KFLAGS)" \
  2246.     "LIBS=-lm"
  2247.  
  2248. #As above, but with SunLink X.25 support
  2249. sunos4x25:
  2250.     @echo SunLink X.25 support
  2251.     $(MAKE) "MAKE=$(MAKE)" sunos4 KTARGET=$${KTARGET:-$(@)} \
  2252.     "KFLAGS=$(KFLAGS) -DFNFLOAT -DSUNX25" \
  2253.     "LIBS=-lm"
  2254.  
  2255. #SUN OS version 4.1 - 4.1.3, BSD environment, has saved original euid feature.
  2256. #Uses Honey DanBer UUCP.  Requires presence of /usr/spool/locks directory.
  2257. # /var/spool/ should be a symbolic link to  /usr/spool/.
  2258. # ... or 'make xermit "CC= /usr/ucb/cc " \'
  2259. # Note: "xermit" means use the select() version of the CONNECT module.
  2260. sunos41:
  2261.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 / BSD...
  2262.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2263.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNOUNICODE $(KFLAGS)" \
  2264.     "LIBS= $(LIBS) -lresolv -lm"
  2265.  
  2266. #As above, but compile with gcc.  Gives 24-32K size reduction
  2267. #with gcc 2.1 or 2.2.2.  CAUTION: make sure "fixincludes" has been run on
  2268. #the include files, so gcc's are in sync with the regular Sun ones!
  2269. #This includes the curses library for fullscreen file transfer display.
  2270. #NDGPWNAM needed for GCC 2.5.6, not needed for 2.4.0, but it's uncertain
  2271. #whether it will do any harm for 2.4.0 compilation -- if so, remove it.
  2272. sunos41gcc:
  2273.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 with gcc and curses...
  2274.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
  2275.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT \
  2276.     -funsigned-char $(KFLAGS)" "LIBS= -lcurses -ltermcap -lresolv -lm"
  2277.  
  2278. # As above, but without -funsigned-char so I can see the warnings that
  2279. # everybody else will get when they use ANSI compilers that don't have this
  2280. # option (gsc = gcc signed char).
  2281. sunos41gsc:
  2282.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 with gcc and curses...
  2283.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
  2284.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT \
  2285.     $(KFLAGS)" "LIBS= -lcurses -ltermcap -lresolv -lm"
  2286.  
  2287. #As above but build with ckucon.c rather than ckucns.c for testing.
  2288. sunos41wgcc:
  2289.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 with gcc and curses...
  2290.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
  2291.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT \
  2292.     -funsigned-char $(KFLAGS)" "LIBS= -lcurses -ltermcap -lresolv -lm"
  2293.  
  2294. #As above but with ckucon.c rather than ckucns.c (for testing only)
  2295. sunos41gccfork:
  2296.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 with gcc and curses...
  2297.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
  2298.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT \
  2299.     -funsigned-char $(KFLAGS)" "LIBS= -lcurses -ltermcap -lresolv -lm"
  2300.  
  2301. #as above but configured for Kerberos IV
  2302. sunos41gcc+krb4:
  2303.     @echo Making C-Kermit $(CKVER) for SunOS 4.1, gcc, curses, krb4...
  2304.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
  2305.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT \
  2306.     -DTCPSOCKET -DCK_AUTHENTICATION -DCK_KERBEROS  -DKRB4 \
  2307.     -DCK_ENCRYPTION -DCK_DES -DCK_CAST -DBIGBUFOK -funsigned-char \
  2308.     -I/usr/kerberos/include/ \
  2309.     $(KFLAGS)" \
  2310.     "LIBS= \
  2311.     -L/usr/kerberos/lib \
  2312.     -lcurses -ltermcap -lresolv -lm -lkrb -ldes"
  2313.  
  2314. #as above but configured for SSL/TLS
  2315. sunos41gcc+openssl:
  2316.     @echo Making C-Kermit $(CKVER) for SunOS 4.1, gcc, curses, ssl...
  2317.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
  2318.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT \
  2319.     -DCK_AUTHENTICATION -funsigned-char \
  2320.     -DCK_SSL -DTCPSOCKET -DBIGBUFOK \
  2321.     -I/w/jaltman2/ssl/openssl-0.9.4/include/ \
  2322.     $(KFLAGS)" \
  2323.     "LIBS= \
  2324.     -L/w/jaltman2/ssl/openssl-0.9.4/ \
  2325.     -lcurses -ltermcap -lresolv -lm -lssl -lcrypto"
  2326.  
  2327. #as above but configured for Kerberos IV and SSL/TLS
  2328. sunos41gcc+krb4+openssl:
  2329.     @echo Making C-Kermit $(CKVER) for SunOS 4.1, gcc, curses, krb4...
  2330.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
  2331.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT \
  2332.     -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB4 -DCK_ENCRYPTION -DCK_DES \
  2333.     -DCK_CAST -DCK_SSL -DLIBDES -DTCPSOCKET -DBIGBUFOK -funsigned-char \
  2334.     -I/usr/kerberos/include/ \
  2335.     -I/w/jaltman2/ssl/openssl-0.9.4/include/ \
  2336.     $(KFLAGS)" \
  2337.     "LIBS= \
  2338.     -L/usr/kerberos/lib \
  2339.     -L/w/jaltman2/ssl/openssl-0.9.4/ \
  2340.     -lcurses -ltermcap -lresolv -lm -lkrb -lssl -lcrypto"
  2341.  
  2342. #SUNOS 4.1 as sunos41 above, but also with curses support
  2343. sunos41c:
  2344.     @echo Curses support
  2345.     $(MAKE) "MAKE=$(MAKE)" sunos41 KTARGET=$${KTARGET:-$(@)} \
  2346.     "KFLAGS=$(KFLAGS) -DCK_CURSES -DFNFLOAT " \
  2347.     "LIBS= -lcurses -ltermcap"
  2348.  
  2349. #As SunOS 4.1.x, gcc, configured as Internet Kermit Server.
  2350. # . NOLOCAL removes capability to make connections
  2351. # . TNCODE allows server-side Telnet negotiation.
  2352. sunos41giks:
  2353.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 with gcc for IKS...
  2354.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
  2355.     "CFLAGS= -O -DSUNOS41 -DNDGPWNAM -DFNFLOAT \
  2356.     -DNOLOCAL -DTNCODE -DNOPUSH $(KFLAGS)" \
  2357.     "LIBS= -lm -L/usr/local/lib -lpwent -lm -lresolv"
  2358.  
  2359. #SUNOS 4.1 with SunLink X.25 support
  2360. sunos41x25:
  2361.     @echo SunLink X.25 support
  2362.     $(MAKE) "MAKE=$(MAKE)" wermit KTARGET=$${KTARGET:-$(@)} \
  2363.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNOUNICODE -DFNFLOAT -DSUNX25 \
  2364.     $(KFLAGS)" "LIBS= $(LIBS) -lresolv -lm"
  2365.  
  2366. #SUNOS 4.1 with SunLink X.25 support and curses
  2367. sunos41x25c:
  2368.     @echo SunLink X.25 support + curses
  2369.     $(MAKE) "MAKE=$(MAKE)" wermit KTARGET=$${KTARGET:-$(@)} \
  2370.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNOUNICODE -DFNFLOAT -DSUNX25 \
  2371.     -DCK_CURSES $(KFLAGS)" "LIBS= $(LIBS) -lcurses -ltermcap -lresolv -lm"
  2372.  
  2373. #SUN with Solaris 2.0 = SunOS 5.0.
  2374. #Mostly the same as System V R4.  Don't use this with later Solaris versions.
  2375. solaris20:
  2376.     @echo 'Making C-Kermit $(CKVER) for Sun with Solaris 2.0 and curses...'
  2377.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2378.     "CFLAGS = -O -DSVR4 -DSOLARIS -DDIRENT -DHDBUUCP -DSTERMIOX \
  2379.     -DTCPSOCKET -DCK_CURSES -DFNFLOAT -DCK_POLL $(KFLAGS)" \
  2380.     "LIBS= -lsocket -lnsl -lcurses -ltermlib -lm" "LNKFLAGS = -s"
  2381.  
  2382. #SUN with Solaris 2.0.
  2383. #As above, but built with the gcc compiler from the Cygnus CD-ROM.
  2384. solaris20g:
  2385.     @echo 'Making C-Kermit $(CKVER) for Sun Solaris 2.0, gcc, and curses..'
  2386.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2387.     "CFLAGS = -O -DSVR4 -DSOLARIS -DDIRENT -DHDBUUCP -DSTERMIOX \
  2388.     -DTCPSOCKET -DCK_CURSES -DCK_POLL -DFNFLOAT $(KFLAGS)" \
  2389.     "LIBS= -lsocket -lnsl -lcurses -ltermlib -lm" "LNKFLAGS = -s" \
  2390.     CC=/opt/cygnus-sol2-1.1/bin/gcc CC2=/opt/cygnus-sol2-1.1/bin/gcc
  2391.  
  2392. #SunOS 5.1 = Solaris 2.1.
  2393. #NOTE: A C compiler is no longer bundled with SunOS 5.1, so to compile C
  2394. #programs, you might have to change your PATH to include the directory
  2395. #/usr/ccs/bin AFTER the directory containing the compiler.  SunPRO C is
  2396. #installed by default in /opt/SUNWspro/bin.  So a sample PATH might be:
  2397. #
  2398. # /usr/local/bin:/usr/bin:/opt/SUNWspro/bin:/usr/ccs/bin:\
  2399. # /usr/ucb:/usr/sbin:/sbin:.
  2400. #
  2401. # or:
  2402. #
  2403. # /usr/openwin/bin:/export/home/SUNWspro/bin:/usr/ccs/bin:/usr/sbin:/usr/bin.
  2404. #
  2405. #NOTE 2: Compilation with the Apogee C compiler (apcc) might not work,
  2406. #because it refuses to allow "-Usun".  Reportedly, newer releases of apcc
  2407. #(such as 1.057) work OK, use: "make -e sunos51 CC=apcc CC2=apcc".
  2408. solaris21:
  2409.     @echo 'Making C-Kermit $(CKVER) for SunOS 5.x....'
  2410.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2411.     "CFLAGS = -O -Usun -DSVR4 -DSOLARIS -DDIRENT -DHDBUUCP -DFNFLOAT \
  2412.     -DSELECT -DNODEBUG -DSTERMIOX $(KFLAGS)" "LIBS = -lm" "LNKFLAGS = -s"
  2413.  
  2414. #C-Kermit for Solaris 2.0-2.4 compiled with gcc, includes curses and TCP/IP.
  2415. #Change -O2 to -O if -O2 gives trouble.
  2416. #Remove -Usun if it causes trouble.
  2417. #Your PATH should start with something like:
  2418. #  /usr/local/gnu/bin:/usr/ccs/bin:
  2419. #Produces a huge executable -- strip with /usr/ccs/bin/strip (not Gnu strip).
  2420. #Also don't add "LNKFLAGS = -s" -- strip manually instead.
  2421. #Also note: this can NOT be linked statically - Sun makes it impossible.
  2422. #And for Solaris 2.4, you might have to replace:
  2423. # /usr/local/lib/gcc-lib/i486-sun-solaris2/2.4.5/include/sys/stat.h
  2424. #with /usr/include/sys/stat.h.
  2425. solaris2xg:
  2426.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.x with GNU cc...'
  2427.     @echo 'Please read the comments that accompany the solaris2xg target.'
  2428.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  2429.     "CFLAGS = -g -O -Usun -DSVR4 -DSOLARIS -DSTERMIOX -DSELECT -DFNFLOAT \
  2430.     -DCK_CURSES -DCK_NEWTERM -DDIRENT -DHDBUUCP -DTCPSOCKET $(KFLAGS)" \
  2431.     "LIBS= -ltermlib -lsocket -lnsl -lm -lresolv"
  2432.  
  2433. #ditto but no curses.
  2434. solaris2xgnc:
  2435.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.x with GNU cc...'
  2436.     @echo 'Please read the comments that accompany the solaris2xg target.'
  2437.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  2438.     "CFLAGS = -g -O -Usun -DSVR4 -DSOLARIS -DSTERMIOX -DSELECT -DFNFLOAT \
  2439.     -DDIRENT -DHDBUUCP -DTCPSOCKET $(KFLAGS)" \
  2440.     "LIBS= -lsocket -lnsl -lm -lresolv"
  2441.  
  2442. solaris22g:
  2443.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=$(KFLAGS)" solaris2xg \
  2444.     KTARGET=$${KTARGET:-$(@)}
  2445.  
  2446. solaris23g:
  2447.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=$(KFLAGS)" solaris2xg \
  2448.     KTARGET=$${KTARGET:-$(@)}
  2449.  
  2450. #Solaris 2.4 built with gcc
  2451. solaris24g:
  2452.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET:-$(@)} \
  2453.     solaris2xg "KFLAGS=-DSOLARIS24 $(KFLAGS)"
  2454.  
  2455. #Solaris 2.5 built with gcc
  2456. solaris25g:
  2457.     $(MAKE) "MAKE=$(MAKE)" solaris2xg KTARGET=$${KTARGET:-$(@)} \
  2458.     "KFLAGS=-funsigned-char -DPOSIX -DSOLARIS25 -DCK_WREFRESH $(KFLAGS)"
  2459.  
  2460. #Solaris 2.6 with gcc
  2461. solaris26g:
  2462.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET:-$(@)} solaris2xg \
  2463.     "KFLAGS=-DPOSIX -DSOLARIS26 -DCK_WREFRESH $(KFLAGS)"
  2464.  
  2465. #Solaris 2.6 with gcc, no curses (e.g. because libtermlib is missing).
  2466. solaris26gnc:
  2467.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET:-$(@)} solaris2xgnc \
  2468.     "KFLAGS=-DPOSIX -DSOLARIS26 $(KFLAGS)"
  2469.  
  2470. #Solaris 7 with gcc (32-bit)
  2471. solaris7g:
  2472.     $(MAKE) "MAKE=$(MAKE)" solaris2xg KTARGET=$${KTARGET:-$(@)} \
  2473.     "KFLAGS=-DPOSIX -DSOLARIS7 -DCK_WREFRESH $(KFLAGS)"
  2474.  
  2475. #Solaris 8 with gcc (32-bit)
  2476. solaris8g:
  2477.     $(MAKE) "MAKE=$(MAKE)" solaris2xg KTARGET=$${KTARGET:-$(@)} \
  2478.     "KFLAGS=-DPOSIX -DSOLARIS8 -DSOLARIS8 -DCK_WREFRESH $(KFLAGS)"
  2479.  
  2480. #Solaris 2.0-2.4, gcc, SunLink X.25 added.
  2481. #NOTE: Can't use xermit target with X.25.
  2482. solaris2xgx25:
  2483.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.x + X.25 with GNU cc...'
  2484.     @echo 'Please read the comments that accompany the solaris2xg entry.'
  2485.     $(MAKE) wermit CC=gcc CC2=gcc KTARGET=$${KTARGET:-$(@)} \
  2486.     "CFLAGS = -g -O -Usun -DSVR4 -DSOLARIS -DSTERMIOX -DSELECT -DSUNX25 \
  2487.     -DCK_CURSES -DCK_NEWTERM -DDIRENT -DHDBUUCP -DTCPSOCKET -DFNFLOAT \
  2488.     $(KFLAGS)" \
  2489.     "LIBS= -ltermlib -lm -L/opt/SUNWconn/lib -R/opt/SUNWconn/lib \
  2490.     -lsockx25 -lsocket -lnsl"
  2491.  
  2492. #Solaris 2.5, gcc, SunLink X.25 added.
  2493. solaris25gx25:
  2494.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET:-$(@)} \
  2495.     solaris2xg "KFLAGS=-DPOSIX -DSOLARIS25 -DCK_WREFRESH $(KFLAGS)"
  2496.  
  2497. #Solaris 2.6, gcc, SunLink X.25 added.
  2498. solaris26gx25:
  2499.     $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET:-$(@)} \
  2500.     solaris2xg "KFLAGS=-DPOSIX -DSOLARIS26 -DCK_WREFRESH $(KFLAGS)"
  2501.  
  2502. #Solaris 2.0-2.4, SunPro compiler, includes curses and TCP/IP.
  2503. #When using SUNWspro CC 2.0.1 under Solaris 2.3, be sure all cc patches
  2504. #are applied, otherwise corrupt or truncated object files can result.
  2505. #To build, set your PATH as follows:
  2506. #  /usr/local/bin:/usr/bin:/opt/SUNWspro/bin:/usr/ccs/bin:\
  2507. #  /usr/ucb:/usr/sbin:/sbin:.
  2508. # or (depending on where the compiler has been installed):
  2509. #  /usr/openwin/bin:/export/home/SUNWspro/bin:/usr/ccs/bin:/usr/sbin:/usr/bin.
  2510. #For additional optimization try using "-fast -xO4 -xdepend".
  2511. solaris2x:
  2512.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.x with SunPro cc...'
  2513.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2514.     "CFLAGS = -O -Usun -i -DSVR4 -DDIRENT -DSOLARIS -DHDBUUCP -DFNFLOAT \
  2515.     -DSELECT -DCK_CURSES -DCK_NEWTERM -DSTERMIOX -DTCPSOCKET $(KFLAGS)" \
  2516.     "LNKFLAGS = -s" "LIBS= -ltermlib -lsocket -lnsl -lm -lresolv"
  2517.  
  2518. solaris23:
  2519.     $(MAKE) "MAKE=$(MAKE)" solaris2x KTARGET=$${KTARGET:-$(@)} \
  2520.     "KFLAGS=$(KFLAGS)"
  2521.  
  2522. solaris24:
  2523.     $(MAKE) "MAKE=$(MAKE)" solaris2x KTARGET=$${KTARGET:-$(@)} \
  2524.     "KFLAGS=-DSOLARIS24 $(KFLAGS)"
  2525.  
  2526. # template for Solaris 2.5 and above.
  2527. solaris25x:
  2528.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.x with SunPro cc...'
  2529.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2530.     "CFLAGS = -DFNFLOAT -O -Usun -i $(KFLAGS)" \
  2531.     "LNKFLAGS = -s" "LIBS= -ltermlib -lsocket -lnsl -lm -lresolv"
  2532.  
  2533. #Solaris 2.5, SunPro compiler, curses, TCP/IP
  2534. solaris25:
  2535.     $(MAKE) "MAKE=$(MAKE)" solaris25x KTARGET=$${KTARGET:-$(@)} \
  2536.     "KFLAGS=-DSOLARIS25 $(KFLAGS)"
  2537.  
  2538. #Solaris 2.6, SunPro compiler, curses, TCP/IP
  2539. solaris26:
  2540.     $(MAKE) "MAKE=$(MAKE)" solaris25x KTARGET=$${KTARGET:-$(@)} \
  2541.     "KFLAGS=-DSOLARIS26 $(KFLAGS)"
  2542.  
  2543. #Solaris 7 (aka 2.7)
  2544. solaris7:
  2545.     $(MAKE) "MAKE=$(MAKE)" solaris25x KTARGET=$${KTARGET:-$(@)} \
  2546.     "KFLAGS=-DSOLARIS7 $(KFLAGS)"
  2547.  
  2548. #Solaris 8
  2549. solaris8:
  2550.     $(MAKE) "MAKE=$(MAKE)" solaris25x KTARGET=$${KTARGET:-$(@)} \
  2551.     "KFLAGS=-DSOLARIS8 -DSOLARIS7 $(KFLAGS)"
  2552.  
  2553. #Solaris 2.0-2.3, SunPro compiler, with SunLink X.25 support.
  2554. #This will only run if user has /opt/SUNWconn/lib/libsockx25.so.1
  2555. #exists and can be dynamically linked.
  2556. #NOTE: Do not change target to xermit -- it doesn't support X.25.
  2557. solaris2x25:
  2558.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.x+X.25 with SunPro cc...'
  2559.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  2560.     "CFLAGS = -O -i -Usun -DSVR4 -DSOLARIS -DDIRENT \
  2561.     -DSUNX25 -DTCPSOCKET -DHDBUUCP -DFNFLOAT \
  2562.     -DSELECT -DCK_CURSES -DCK_NEWTERM -DSTERMIOX $(KFLAGS)" \
  2563.     "LNKFLAGS = -s" \
  2564.     "LIBS= -ltermlib -L/opt/SUNWconn/lib -R/opt/SUNWconn/lib \
  2565.     -lsockx25 -lsocket -lnsl -lm -lresolv"
  2566.  
  2567. #Solaris 2.4, SunPro compiler, with SunLink X.25 support.
  2568. #This will only run if user has /opt/SUNWconn/lib/libsockx25.so.1
  2569. #exists and can be dynamically linked.
  2570. solaris24x25:
  2571.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.4+X.25 with SunPro cc...'
  2572.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  2573.     "CFLAGS = -O -i -Usun -DSVR4 -DSOLARIS -DSOLARIS24 -DDIRENT \
  2574.     -DSUNX25 -DTCPSOCKET -DHDBUUCP -DFNFLOAT \
  2575.     -DSELECT -DCK_CURSES -DCK_NEWTERM -DSTERMIOX $(KFLAGS)" \
  2576.     "LNKFLAGS = -s" \
  2577.     "LIBS= -ltermlib -L/opt/SUNWconn/lib -R/opt/SUNWconn/lib \
  2578.     -lsockx25 -lsocket -lnsl -lm -lresolv"
  2579.  
  2580. #Solaris 2.5, SunPro compiler, with SunLink X.25 support.
  2581. solaris25x25:
  2582.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.5+X.25 with SunPro cc...'
  2583.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  2584.     "CFLAGS = -O -i -Usun -DSVR4 -DSOLARIS -DSOLARIS25 -DDIRENT -DSUNX25 \
  2585.     -DTCPSOCKET -DHDBUUCP -DPOSIX -DCK_WREFRESH -DSELECT -DCK_CURSES \
  2586.     -DCK_NEWTERM -DSTERMIOX -DFNFLOAT -I/opt/SUNWconn/include $(KFLAGS)" \
  2587.     "LIBS= -ltermlib -L/opt/SUNWconn/lib -R/opt/SUNWconn/lib \
  2588.     -lsockx25 -lsocket -lnsl -lm -lresolv"
  2589.  
  2590. #Solaris 2.6, SunPro compiler, with SunLink X.25 support.
  2591. solaris26x25:
  2592.     @echo 'Making C-Kermit $(CKVER) for Solaris 2.6+X.25 with SunPro cc...'
  2593.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  2594.     "CFLAGS = -O -i -Usun -DSVR4 -DSOLARIS -DSOLARIS26 -DDIRENT -DSUNX25 \
  2595.     -DTCPSOCKET -DHDBUUCP -DPOSIX -DCK_WREFRESH -DSELECT -DCK_CURSES \
  2596.     -DCK_NEWTERM -DSTERMIOX -DFNFLOAT -I/opt/SUNWconn/include $(KFLAGS)" \
  2597.     "LIBS= -ltermlib -L/opt/SUNWconn/lib -R/opt/SUNWconn/lib \
  2598.     -lsockx25 -lsocket -lnsl -lm -lresolv"
  2599.  
  2600. #The following sunosxxx entries are for debugging and testing only.
  2601.  
  2602. sunos41x:
  2603.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2604.     "CFLAGS= -O -DSUNOS41 -DDIRENT -DNOTLOG -DNOMSEND \
  2605.     -DNOUUCP -DNOSIGWINCH -DNOREDIRECT -DNOPUSH -DNOCCTRAP \
  2606.     -DNOICP -DNOLOCAL $(KFLAGS)"
  2607.  
  2608. #SunOS 4.1.x, debugging with Pure Software, Inc., Purify 2 (commercial runtime
  2609. #error-detection software for catching wild array references, etc).
  2610. #Before running the resulting wermit, you'll also need to define and export
  2611. #the following environment variables (as in this example):
  2612. #PURIFYHOME=/usr/local/purify ; export PURIFYHOME
  2613. #PURIFYCACHEDIR=/tmp ; export PURIFYCACHEDIR
  2614. sunos41cp:
  2615.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 / BSD / Curses / Purify...
  2616.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2617.     "CC2= purify -cache_dir=/usr/tmp cc" \
  2618.     "CFLAGS= -g -DSUNOS41 -DHDBUUCP -DDIRENT -DTCPSOCKET \
  2619.     -DSAVEDUID -DCK_CURSES $(KFLAGS)" \
  2620.     "LIBS= -lcurses -ltermcap"
  2621.  
  2622. #SunOS 4.1 with malloc debugger
  2623. sunos41md:
  2624.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 malloc debug...
  2625.     $(MAKE) mermit KTARGET=$${KTARGET:-$(@)} \
  2626.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DDIRENT -DTCPSOCKET \
  2627.     -DSAVEDUID $(KFLAGS) -Dmalloc=dmalloc -Dfree=dfree -DMDEBUG"
  2628.  
  2629. sunos41gmd:
  2630.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 with gcc and curses...
  2631.     $(MAKE) mermit KTARGET=$${KTARGET:-$(@)} "CC= gcc " "CC2= gcc" \
  2632.     "CFLAGS= -g -DSUNOS41 -DHDBUUCP -DDIRENT -DTCPSOCKET \
  2633.     -DNDGPWNAM -DSAVEDUID -DCK_CURSES -DRLOGCODE \
  2634.     $(KFLAGS) -Dmalloc=dmalloc -Dfree=dfree -DMDEBUG" \
  2635.     "LIBS= -lcurses -ltermcap"
  2636.  
  2637. #SunOS version 4.1, gcc, profiling with gprof, no debugging.
  2638. #To get profile, "make sunos4p" (on Sun), then "./wermit".  After running
  2639. #wermit, "gprof ./wermit | lpr" (or whatever) to get execution profile.
  2640. sunos41p:
  2641.     @echo Making C-Kermit $(CKVER) for SunOS 4.x with profiling...
  2642.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC= gcc " "CC2= gcc" \
  2643.     "CFLAGS= -DSUNOS41 -DNODEBUG -DSAVEDUID -DDIRENT -DTCPSOCKET \
  2644.     -DNDGPWNAM $(KFLAGS) -pg" "LNKFLAGS = -pg"
  2645.  
  2646. #SunOS version 4.1 or later, BSD environment, minimum features.
  2647. sunos41min:
  2648.     @echo Minimum interactive
  2649.     $(MAKE) "MAKE=$(MAKE)" sunos41 KTARGET=$${KTARGET:-$(@)} \
  2650.     "KFLAGS=-DNOSPL -DNOXMIT -DNOMSEND -DNOFRILLS -DNORETRY \
  2651.     -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG -DNOSCRIPT -DNOCSETS \
  2652.     -DNOSHOW -DNOSETKEY -DNOUUCP -DNORECALL -DNOREDIRECT \
  2653.     -DNOPUSH -DNOMDMHUP -DNOJC -DNOFDZERO -DNOESCSEQ \
  2654.     -DNONET -DCK_SMALL -DNOPUSH -DNOCKSPEED -DNOCKTIMERS -DNOLOGIN \
  2655.     -DNOCKXYZ -DNOKERBEROS -DNOMKDIR -DNOPATTERNS -DNOPERMS -DNOPIPESEND \
  2656.     -DNORECURSIVE -DNORENAME -DNORESEND -DNOSETKEY \
  2657.     -DNOTRIGGER -DNOTUNING $(KFLAGS)" "LNKFLAGS = -s"
  2658.  
  2659. #SunOS version 4.1, BSD environment, min size, command-line only...
  2660. sunos41m:
  2661.     @echo Minimum size
  2662.     $(MAKE) "MAKE=$(MAKE)" sunos41min KTARGET=$${KTARGET:-$(@)} \
  2663.     "KFLAGS=-DNOICP $(KFLAGS)"
  2664.  
  2665. #SunOS version 4.1, BSD environment, min size, cmd-line only, remote only...
  2666. #
  2667. sunos41mr:
  2668.     @echo Minimum size
  2669.     $(MAKE) "MAKE=$(MAKE)" sunos41min KTARGET=$${KTARGET:-$(@)} \
  2670.     "KFLAGS=-DNOICP -DNOLOCAL $(KFLAGS)"
  2671.  
  2672. #SunOS version 4.1, BSD environment, min size, interactive...
  2673. sunos41mi:
  2674.     @echo Minimum size
  2675.     $(MAKE) "MAKE=$(MAKE)" sunos41min KTARGET=$${KTARGET:-$(@)} \
  2676.     "KFLAGS=-DNOCMDL $(KFLAGS)"
  2677.  
  2678. #SunOS version 4.1, BSD environment, min size, interactive, remote only...
  2679. sunos41mir:
  2680.     @echo Minimum size
  2681.     $(MAKE) "MAKE=$(MAKE)" sunos41min KTARGET=$${KTARGET:-$(@)} \
  2682.     "KFLAGS=-DNOCMDL -DNOLOCAL $(KFLAGS)"
  2683.  
  2684. #SunOS 4.1, System V R3 environment (-i option omitted).
  2685. sunos41s5:
  2686.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 System V R3...
  2687.     @echo For testing purposes only - NOT for production use.
  2688.     @echo For a useable version, make sunos41 instead.
  2689.     $(MAKE) wermit "CC= /usr/5bin/cc " "CC2=/usr/5bin/cc " \
  2690.     KTARGET=$${KTARGET:-$(@)} \
  2691.     "CFLAGS = -DSUN4S5 -DDIRENT -DHDBUUCP -DCK_POLL $(KFLAGS) -O"
  2692.  
  2693. #As above, but with curses support
  2694. sunos41s5c:
  2695.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 System V R3...
  2696.     @echo Curses included.
  2697.     @echo For testing purposes only - NOT for production use.
  2698.     @echo For a useable version, make sunos41 instead.
  2699.     $(MAKE) wermit "CC= /usr/5bin/cc " "CC2=/usr/5bin/cc " \
  2700.     KTARGET=$${KTARGET:-$(@)} \
  2701.     "CFLAGS = -DSUN4S5 -DDIRENT -DHDBUUCP \
  2702.     -DCK_POLL -DCK_CURSES -DCK_NEWTERM $(KFLAGS) -O" "LIBS= -lcurses"
  2703.  
  2704. #As above, but with curses support AND net support
  2705. sunos41s5tcpc:
  2706.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 System V R3...
  2707.     @echo TCP/IP and curses included.  No debug log.
  2708.     @echo For testing purposes only - NOT for production use.
  2709.     @echo For a useable version, make sunos41 instead.
  2710.     $(MAKE) xermit "CC= /usr/5bin/cc " "CC2=/usr/5bin/cc " \
  2711.     KTARGET=$${KTARGET:-$(@)} \
  2712.     "CFLAGS = -DSUN4S5 -DDIRENT -DHDBUUCP -DCK_POLL \
  2713.     -DNODEBUG -DCK_CURSES -DCK_NEWTERM -DTCPSOCKET $(KFLAGS) -O" \
  2714.     "LIBS= -lcurses -lresolv"
  2715.  
  2716. # (End of SunOS test entries...)
  2717.  
  2718. #Apollo with Domain SR10.0 or later, BSD environment
  2719. #Reportedly, it might also help to add '-A,systype=bsd4.3' to CFLAGS.
  2720. #Reportedly, there is also a problem with getc & putc macros that can
  2721. #be handled by using '#ifdef apollo' somewhere to redefine them???
  2722. #On the other hand, other reports indicate that it works fine as-is.
  2723. #NOTE: This entry was previously like this:
  2724. #    $(MAKE) wermit "CFLAGS= -DNOFILEH -DBSD4 $(KFLAGS) -Uaegis \
  2725. #    -DTCPSOCKET -U__STDC__"
  2726. #Reports (Dec 91) indicate SR10 has an ANSI-compliant C compiler,
  2727. #in addition to an older one that claimed to be ANSI-compliant but wasn't.
  2728. #The following make entry (plus checks that are made in ckcdeb.h) detect
  2729. #which compiler is used and define the CK_ANSIC or NOANSI flags accordingly.
  2730. sr10-bsd:
  2731.     @echo Making C-Kermit $(CKVER) for Apollo SR10.0 / BSD ...
  2732.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  2733.     "CFLAGS= -O -DAPOLLOSR10 -DBSD43 -DTCPSOCKET -DCK_CURSES \
  2734.     -Uaegis $(KFLAGS)" "LIBS= -lcurses -ltermcap"
  2735.  
  2736. #Apollo with Domain SR10.0 or later, System V R3 environment.
  2737. #Don't use the optimizer (-O), it causes problems at runtime.
  2738. sr10-s5r3:
  2739.     @echo Making C-Kermit $(CKVER) for Apollo SR10.0 / Sys V R3 ...
  2740.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  2741.     "CFLAGS= -DNOFILEH -DSVR3 -DAPOLLOSR10 $(KFLAGS) -Uaegis -U__STDC__"
  2742.  
  2743. #Apollo Domain/IX (untested, try this if sr10-bsd doesn't work)
  2744. # -DTCPSOCKET can probably be added here.
  2745. apollobsd:
  2746.     @echo Making C-Kermit $(CKVER) for Apollo Domain/IX...
  2747.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  2748.     "CC= /bin/cc " "CC2= /bin/cc " \
  2749.     "CFLAGS= -DNOFILEH -DBSD4 -DAPOLLOBSD $(KFLAGS) -Uaegis"
  2750.  
  2751. #Version 7 Unix (see comments near top of makefile)
  2752. v7:
  2753.     @echo Making C-Kermit $(CKVER) for UNIX Version 7.
  2754.     @echo Read the makefile if you have trouble with this...
  2755.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  2756.     "CFLAGS=-DV7 -DPROCNAME=\\\"$(PROC)\\\" \
  2757.     -DBOOTNAME=\\\"$(BOOTFILE)\\\" -DNPROCNAME=\\\"$(NPROC)\\\" \
  2758.     -DNPTYPE=$(NPTYPE) $(DIRECT) -DO_RDWR=2 -DO_NDELAY=0 -DO_SCCS_ID \
  2759.     $(KFLAGS)"
  2760.  
  2761. #AT&T UNIX System V R3, signal() is void rather than int.
  2762. #Uses dirent.h and Honey DanBer UUCP.
  2763. #Add the -i link option if necessary.
  2764. #If you get errors like "ws_row undefined" in ckutio.c, add -DNONAWS.
  2765. sys5r3:
  2766.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R3...'
  2767.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  2768.     "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP $(KFLAGS) -O" \
  2769.     "LNKFLAGS="
  2770.  
  2771. #As above, plus curses.
  2772. sys5r3c:
  2773.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R3 + curses...'
  2774.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  2775.     "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -DCK_CURSES -DNONAWS $(KFLAGS) -O" \
  2776.     "LNKFLAGS=" "LIBS = -ltermlib"
  2777.  
  2778. #System V R3.2 for PCs built on Interactive UNIX SV/386 R4.x
  2779. #but with all calls to dup2() disabled because generic SVR3 does not have dup2.
  2780. # (The -linet library might not need to be in this one.)
  2781. sys5r32is:
  2782.     @echo 'Making C-Kermit $(CKVER) for System V/386 R32
  2783.     $(MAKE) wermit CC="$(CC)" CC2="$(CC2)" \
  2784.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -O -DNOCSETS -DNOREALPATH \
  2785.     -DUID_T=ushort -DGID_T=ushort -DI386IX -DSVR3JC -DCK_CURSES -DNONAWS \
  2786.     -DPOSIX_JC -DCK_REDIR -DCK_POLL -DDCLGETCWD -DNOFDZERO -DNOREDIRECT \
  2787.     -DNOZEXEC $(KFLAGS)" "LIBS=-lcurses -lc_s -linet"
  2788.  
  2789. #System V R3.2 for PCs built on Interactive UNIX SV/386 R4.x
  2790. #but with all calls to dup2() disabled because generic SVR3 does not have dup2.
  2791. #With TCP/IP added.
  2792. sys5r32isnet:
  2793.     @echo 'Making C-Kermit $(CKVER) for System V/386 R32 + TCP/IP
  2794.     $(MAKE) wermit CC="$(CC)" CC2="$(CC2)" \
  2795.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -O -DNOCSETS -DNOREALPATH \
  2796.     -DUID_T=ushort -DGID_T=ushort -DI386IX -DSVR3JC -DCK_CURSES -DNONAWS \
  2797.     -DPOSIX_JC -DCK_REDIR -DCK_POLL -DDCLGETCWD -DNOFDZERO -DNOREDIRECT \
  2798.     -DNOZEXEC -DTCPSOCKET $(KFLAGS)" "LIBS=-lcurses -lc_s -linet"
  2799.  
  2800. iclsys5r3:
  2801.     make sys5r3 KTARGET=$${KTARGET:-$(@)} KFLAGS=-DICLSVR3
  2802.  
  2803. #AT&T UNIX System V R3.  As above, but no ANSI prototyping.
  2804. sys5r3na:
  2805.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R3...'
  2806.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  2807.     "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -DNOANSI $(KFLAGS) -O" \
  2808.     "LNKFLAGS="
  2809.  
  2810. #AT&T UNIX System V R3, for 3B computers with Wollongong TCP/IP.
  2811. sys5r3net3b:
  2812.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX SVR3/3B/Wollongong...'
  2813.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  2814.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DWOLLONGONG $(KFLAGS) \
  2815.     -O" "LIBS= -lnet -lnsl_s" "LNKFLAGS ="
  2816.  
  2817. #AT&T UNIX System V R3, signal() is void rather than int.
  2818. #Uses dirent.h and Honey DanBer uucp, has <termiox.h>.
  2819. #Has <termiox.h> for RTS/CTS flow control.
  2820. sys5r3tx:
  2821.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R3...'
  2822.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  2823.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DTERMIOX $(KFLAGS) -i -O" \
  2824.     "LNKFLAGS ="
  2825.  
  2826. #AT&T UNIX System V R3, signal() is void rather than int.
  2827. #Uses dirent.h and Honey DanBer uucp, has <termiox.h>.
  2828. #Has <sys/termiox.h> for RTS/CTS flow control.
  2829. sys5r3sx:
  2830.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R3...'
  2831.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  2832.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DSTERMIOX $(KFLAGS) -i -O" \
  2833.     "LNKFLAGS ="
  2834.  
  2835. #AT&T UNIX System V R4.
  2836. #Has <termiox.h>.
  2837. sys5r4:
  2838.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  2839.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  2840.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DTERMIOX $(KFLAGS)" \
  2841.     "LNKFLAGS = -s"
  2842.  
  2843. #AT&T UNIX System V R4 with Wollongong TCP/IP.
  2844. #Has <termiox.h>.
  2845. sys5r4net:
  2846.     @echo 'Making C-Kermit $(CKVER) for System V R4 + Wollongong TCP/IP...'
  2847.     @echo ' If sockets-library routines are missing at link time, then'
  2848.     @echo ' try the sys5r4net2 entry.'
  2849.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  2850.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP \
  2851.     -DTERMIOX -DWOLLONGONG $(KFLAGS)" "LNKFLAGS = -s"
  2852.  
  2853. #As above, but needs libs included.
  2854. sys5r4net2:
  2855.     @echo ' PLEASE READ ckuins.txt IF YOU GET MISSING HEADER FILES.'
  2856.     @echo ' (Search for WOLLONGONG...)'
  2857.     $(MAKE) sys5r4net KTARGET=$${KTARGET:-$(@)} "LIBS= -lsocket -lnsl"
  2858.  
  2859. #As above plus curses.
  2860. sys5r4net2c:
  2861.     echo 'Making C-Kermit $(CKVER) for System V R4 + Wollongong TCP/IP...'
  2862.     @echo ' PLEASE READ ckuins.txt IF YOU GET MISSING HEADER FILES.'
  2863.     @echo ' (Search for WOLLONGONG...)'
  2864.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  2865.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP \
  2866.     -DTERMIOX -DWOLLONGONG -DCK_CURSES $(KFLAGS)" "LNKFLAGS = -s" \
  2867.     "LIBS= -lsocket -lnsl -lcurses"
  2868.  
  2869. #DELL UNIX System V R4.
  2870. #Has <sys/termiox.h>, regular Berkeley sockets library, i.e. in.h and inet.h
  2871. #are not misplaced in sys (rather than netinet and arpa, respectively).
  2872. #Uses ANSI C constructs, advisory file locking on devices, etc.
  2873. #Warning: -DSTERMIOX enables hardware flow control (RTS/CTS), but reportedly
  2874. #this does not work with the normal drivers.  However, it might still work
  2875. #on non-Dell systems, or even Dell systems with different drivers installed.
  2876. dellsys5r4:
  2877.     @echo 'Making C-Kermit $(CKVER) for DELL UNIX System V R4...'
  2878.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2879.     "CFLAGS = -O -DSVR4 -DDELL_SVR4 -DDIRENT -DHDBUUCP \
  2880.     -DTCPSOCKET -DSTERMIOX -DCK_POLL $(KFLAGS)" \
  2881.     "LIBS= -lsocket -lnsl" "LNKFLAGS = -s"
  2882.  
  2883. #As above, curses support added...
  2884. dellsys5r4c:
  2885.     @echo 'Making C-Kermit $(CKVER) for DELL UNIX System V R4...'
  2886.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2887.     "CFLAGS = -O -DSVR4 -DDELL_SVR4 -DDIRENT -DHDBUUCP \
  2888.     -DTCPSOCKET -DSTERMIOX -DCK_CURSES -DCK_POLL \
  2889.     $(KFLAGS)" "LIBS= -lsocket -lnsl -lcurses -ltermcap" "LNKFLAGS = -s"
  2890.  
  2891. #Mininum interactive: As above, but with every conceivable option removed.
  2892. dellsys5r4mi:
  2893.     @echo 'Making C-Kermit $(CKVER) for DELL UNIX System V R4...'
  2894.     @echo 'Minimum-size interactive'
  2895.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2896.     "CFLAGS = -O -DSVR4 -DDELL_SVR4 -DDIRENT \
  2897.     -UTCPSOCKET -DNOCMDL -DNOSPL -DNOXMIT -DCK_POLL \
  2898.     -DNOMSEND -DNOFRILLS -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG \
  2899.     -DNOSCRIPT -DNOCSETS -DNOSHOW -DNOSETKEY -DNOSERVER -DNOUUCP \
  2900.     -DNOPUSH -DNOMDMHUP -DNOJC -DNOFDZERO -DNOESCSEQ  \
  2901.     $(KFLAGS)" "LNKFLAGS = -s"
  2902.  
  2903. #Command-line only version.
  2904. dellsys5r4m:
  2905.     @echo 'Making C-Kermit $(CKVER) for DELL UNIX System V R4...'
  2906.     @echo 'Command-line only'
  2907.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2908.     "CFLAGS = -O -DSVR4 -DDELL_SVR4 -DDIRENT \
  2909.     -UTCPSOCKET -DNOICP -DNOFRILLS -DNODIAL -DNODEBUG -DNOTLOG -DNOCSETS \
  2910.     -DNOSETKEY -DNOESCSEQ -DNOJC -DNOFDZERO -DCK_POLL \
  2911.     $(KFLAGS)" "LNKFLAGS = -s"
  2912.  
  2913. #AT&T UNIX System V R4.
  2914. #Has <sys/termiox.h>.
  2915. sys5r4sx:
  2916.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  2917.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  2918.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DSTERMIOX $(KFLAGS)" \
  2919.     "LNKFLAGS = -s" "LIBS=$(LIBS)"
  2920.  
  2921. #AT&T UNIX System V R4.
  2922. #Has <sys/termiox.h>, regular Berkeley sockets library, i.e. in.h and inet.h
  2923. #are not misplaced in sys (rather than netinet and arpa, respectively).
  2924. #Uses ANSI C constructs, <sys/termiox.h>, etc etc.
  2925. sys5r4sxtcp:
  2926.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  2927.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2928.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP \
  2929.     -DSTERMIOX -DTCPSOCKET $(KFLAGS)" \
  2930.     "LIBS= -lsocket -lnsl $(LIBS)" "LNKFLAGS= -s"
  2931.  
  2932. #AT&T UNIX System V R4.
  2933. #As above + curses.
  2934. sys5r4sxtcpc:
  2935.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  2936.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2937.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP \
  2938.     -DSTERMIOX  -DCK_CURSES -DTCPSOCKET $(KFLAGS)" \
  2939.     "LIBS= -lsocket -lnsl -lcurses -ltermcap $(LIBS)" "LNKFLAGS = -s"
  2940.  
  2941. #AT&T UNIX System V R4.  CONSENSYS SVR4.2-1.
  2942. #Has <sys/termiox.h>, regular Berkeley sockets library, i.e. in.h and inet.h
  2943. #are not misplaced in sys (rather than netinet and arpa, respectively).
  2944. #Uses ANSI C constructs, <sys/termiox.h>, etc.
  2945. # Fullscreen -DCK_CURSES added (with curses & termcap libs)
  2946. # Submission by Robert Weiner/Programming Plus, rweiner@watsun.cc.columbia.edu
  2947. sys5r4sxtcpf:
  2948.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  2949.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2950.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP \
  2951.     -DSTERMIOX -DTCPSOCKET -DCK_CURSES $(KFLAGS)" \
  2952.     "LIBS= -lsocket -lnsl -L/usr/ccs/lib -lcurses -ltermcap" \
  2953.     "LIBS=$(LIBS)" "LNKFLAGS = -s"
  2954.  
  2955. #Smallest possible version for System V R4
  2956. s5r4m:
  2957.     @echo Minimum size
  2958.     $(MAKE) "MAKE=$(MAKE)" sys5r4sx KTARGET=$${KTARGET:-$(@)} \
  2959.     "KFLAGS=$(KFLAGS) -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG \
  2960.     -DNOSCRIPT -DNOCSETS -DNOICP -DNOMSEND -UTCPSOCKET" "LNKFLAGS = -s"
  2961.  
  2962. #Smallest possible interactive version of above
  2963. s5r4mi:
  2964.     @echo Minimum interactive
  2965.     $(MAKE) "MAKE=$(MAKE)" sys5r4sx \
  2966.     "KFLAGS=-DNOSPL -DNOXMIT -DNOMSEND -DNOFRILLS -DNOSHOW \
  2967.     -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG -DNOSCRIPT -DNOCSETS -DNOSETKEY \
  2968.     -UTCPSOCKET $(KFLAGS)" "LNKFLAGS = -s"
  2969.  
  2970. #AT&T UNIX System V R4, has <sys/termiox.h>
  2971. #ANSI C function prototyping disabled.
  2972. sys5r4sxna:
  2973.     @echo No ANSI C prototyping...
  2974.     $(MAKE) "MAKE=$(MAKE)" sys5r4sx KTARGET=$${KTARGET:-$(@)} \
  2975.     "KFLAGS=$(KFLAGS) -DNOANSI"
  2976.  
  2977. #Stratus FTX.
  2978. ftx:
  2979.     @echo 'Making C-Kermit $(CKVER) for Stratus FTX 3.x...'
  2980.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  2981.     "CFLAGS = -O -DSVR4 -DFTX -DDIRENT -DHDBUUCP -DSTERMIOX 
  2982.     -DNOGETUSERSHELL +DA1.1 $(KFLAGS)" \
  2983.     "LNKFLAGS = -s" "LIBS=$(LIBS)"
  2984.  
  2985. #Stratus FTX + TCP/IP.
  2986. ftxtcp:
  2987.     @echo 'Making C-Kermit $(CKVER) for Stratus FTX 3.x...'
  2988.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  2989.     "CFLAGS = -O -DSVR4 -DFTX -DDIRENT -DHDBUUCP -DNOGETUSERSHELL \
  2990.     -DSTERMIOX -DTCPSOCKET -DNO_DNS_SRV +DA1.1 $(KFLAGS)" \
  2991.     "LIBS= -lsocket -lnsl $(LIBS)" "LNKFLAGS= -s"
  2992.  
  2993. #NCR MP-RAS 2.03 or 3.02
  2994. mpras:
  2995.     @echo 'Making C-Kermit $(CKVER) for NCR MP-RAS...'
  2996.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  2997.     "CFLAGS = -O -DSVR4 -DNCRMPRAS -DDIRENT -DHDBUUCP -DSTERMIOX \
  2998.     -DNOGETUSERSHELL -DNO_DNS_SRV $(KFLAGS)" \
  2999.     "LNKFLAGS = -s" "LIBS=$(LIBS)"
  3000.  
  3001. #NCR MP-RAS 2.03 or 3.02 with TCP/IP and curses
  3002. mprastcpc:
  3003.     @echo 'Making C-Kermit $(CKVER) for NCR MP-RAS + TCP/IP + curses...'
  3004.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CFLAGS=-DTCPSOCKET \
  3005.     -DCK_CURSES -DSVR4 -DNCRMPRAS -DDIRENT -DHDBUUCP -DSTERMIOX \
  3006.     -DNOGETUSERSHELL -DNO_DNS_SRV -O $(KFLAGS)" "LNKFLAGS = -s" \
  3007.     "LIBS= -lsocket -lnsl -lcurses -ltermcap $(LIBS)"
  3008.  
  3009. #SINIX-L V5.41 - includes curses, tcp/ip - Use this one for i386.
  3010. #This version of SINIX doesn't like fdopen() or popen().
  3011. sinix541:
  3012.     @echo 'Making C-Kermit $(CKVER) for Siemens/Nixdorf SINIX V5.41/i386'
  3013.     $(MAKE) ckcpro.$(EXT) "CFLAGS = -DSINIX -DSVR4 -DDIRENT -DHDBUUCP \
  3014.     -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DSELECT -DCK_ANSIC -DNO_DNS_SRV \
  3015.     -DSNI541 -DNOGETUSERSHELL -DNONETCMD -DNOPOPEN -kansi -W0 $(KFLAGS)"
  3016.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3017.     "CFLAGS = -DSINIX -DSVR4 -DDIRENT -DHDBUUCP -DNO_DNS_SRV -DNOPOPEN \
  3018.     -DFNFLOAT -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DSELECT -DCK_ANSIC \
  3019.     -DSNI541 -DNOGETUSERSHELL -DNONETCMD -kansi -W0 -O $(KFLAGS)" \
  3020.     "LIBS= -lsocket -lnsl -lcurses -ltermcap -lm" "LNKFLAGS = -s"
  3021.  
  3022. sinix541i:
  3023.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=$(KFLAGS)" sinix541
  3024.  
  3025. #SINIX V5.42 - includes curses, tcp/ip, everything - Use this one for MIPS.
  3026. # As of C-Kermit 6.1, optimizer can't handle ckcpro.c.
  3027. sinix542:
  3028.     @echo 'Making C-Kermit $(CKVER) for Siemens/Nixdorf SINIX V5.42...'
  3029.     $(MAKE) ckcpro.$(EXT) "CFLAGS = -DSINIX -DSVR4 -DDIRENT -DHDBUUCP \
  3030.     -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DSELECT -DCK_ANSIC -DNO_DNS_SRV \
  3031.     -DSNI542 -DNOGETUSERSHELL -kansi -W0 $(KFLAGS)"
  3032.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3033.     "CFLAGS = -DSINIX -DSVR4 -DDIRENT -DHDBUUCP -DNO_DNS_SRV \
  3034.     -DFNFLOAT -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DSELECT -DCK_ANSIC \
  3035.     -DSNI542 -DNOGETUSERSHELL -kansi -W0 -O -KOlimit,2400 $(KFLAGS)" \
  3036.     "LIBS= -lsocket -lnsl -lcurses -ltermcap -lm" "LNKFLAGS = -s"
  3037.  
  3038. #SINIX V5.42 - includes curses, tcp/ip, everything - Use this one for Intel.
  3039. # (Note: SNI discontinued Intel support after 5.42.)
  3040. sinix542i:
  3041.     @echo 'Making C-Kermit $(CKVER) for Siemens/Nixdorf SINIX-Z V5.42...'
  3042.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3043.     "CFLAGS = -DSINIX -DSVR4 -DDIRENT -DHDBUUCP -DFNFLOAT -DSTERMIOX \
  3044.     -DCK_CURSES -DTCPSOCKET -DSELECT -DCK_ANSIC -DNO_DNS_SRV -kansi \
  3045.     -DSNI542 $(KFLAGS)" \
  3046.     "LIBS= -lsocket -lnsl -lcurses -ltermcap -lm" \
  3047.     "LNKFLAGS = -s"
  3048.  
  3049. #Siemens Nixdorf Reliant UNIX V5.43 - includes curses, tcp/ip, everything:
  3050. # . gettimeofday() suddenly has only one arg instead of two (GTODONEARG).
  3051. # . The syntax of the Olimit specifier changed.
  3052. # . The name was changed from SINIX to Reliant UNIX in version 5.43C.
  3053. sni543:
  3054.     @echo 'Making C-Kermit $(CKVER) for Siemens/Nixdorf Reliant UNIX V5.43'
  3055.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3056.     "CFLAGS = -DSINIX -DSNI543 -DSVR4 -DDIRENT -DHDBUUCP \
  3057.     -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DSELECT -DCK_ANSIC -DGTODONEARG \
  3058.     -DNO_DNS_SRV -kansi -W0 -O -F Olimit,3100 $(KFLAGS)" \
  3059.     "LIBS= -lsocket -lnsl -lcurses -ltermcap" "LNKFLAGS = -s"
  3060.  
  3061. #Siemens Nixdorf Reliant UNIX V5.44 - Like 5.43 but with different banner.
  3062. sni544:
  3063.     @echo 'Making C-Kermit $(CKVER) for Siemens/Nixdorf Reliant UNIX V5.44'
  3064.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3065.     "CFLAGS = -DSINIX -DSNI544 -DSVR4 -DDIRENT -DHDBUUCP \
  3066.     -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DSELECT -DCK_ANSIC -DGTODONEARG \
  3067.     -DNO_DNS_SRV -kansi -W0 -O -K Olimit,3100 $(KFLAGS)" \
  3068.     "LIBS= -lsocket -lnsl -lcurses -ltermcap" "LNKFLAGS = -s"
  3069.  
  3070. #Commodore Amiga with AT&T UNIX System V R4 and TCP/IP support.
  3071. #Has <sys/termiox.h>.
  3072. svr4amiganet:
  3073.     @echo 'Making C-Kermit $(CKVER) for Amiga SVR4 + TCP/IP...'
  3074.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC=gcc" "CC2=gcc" \
  3075.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DSTERMIOX \
  3076.     -DTCPSOCKET -DCK_CURSES $(KFLAGS)" "LNKFLAGS = -s" \
  3077.     "LIBS = -lsocket -lnsl -ltermlib"
  3078.  
  3079. #SCO (Novell (Univel)) UnixWare 1.x or 2.0, no TCP/IP.
  3080. #This assumes the Novell SDK 1.0, which has <sys/termiox.h>.
  3081. #UnixWare users with the "Prime Time Freeware" CD-ROM SDK will probably have
  3082. #to use the sys5r4 entry (no termiox.h file, so no hardware flow control).
  3083. #Change -DSELECT to -DCK_POLL if -DSELECT causes problems.
  3084. # NOTE: Unixware 1.x builds have not been tried in C-Kermit 7.0.
  3085. unixware:
  3086.     $(MAKE) "MAKE=$(MAKE)" sys5r4sx KTARGET=$${KTARGET:-$(@)} \
  3087.     "KFLAGS=-DOLD_UNIXWARE -DCK_NEWTERM -DSELECT -DNOGETUSERSHELL \
  3088.     -DNOSYSLOG $(KFLAGS)" "LIBS=-lcrypt"
  3089.  
  3090. #UnixWare 1.x or 2.0 with TCP/IP and curses.
  3091. #fork()-based CONNECT - no high serial speeds.
  3092. unixwarenetc:
  3093.     $(MAKE) "MAKE=$(MAKE)" sys5r4sxtcpc KTARGET=$${KTARGET:-$(@)} \
  3094.     "KFLAGS=-DOLD_UNIXWARE -DCK_NEWTERM -DSELECT -DNOGETUSERSHELL \
  3095.     -DNOSYSLOG $(KFLAGS)" "LIBS=-lcrypt -lresolv"
  3096.  
  3097. uw10:
  3098.     $(MAKE) unixwarenetc KTARGET=$${KTARGET:-$(@)} "KFLAGS=$(KFLAGS)"
  3099.  
  3100. #This is for Unixware 2.0.x only - use unixware21 for UW 2.1.x.
  3101. #Has special library search and enables special kludge around library
  3102. #foulup regarding vfork() (which Kermit doesn't use).  Forces POSIX-style
  3103. #hangup.
  3104. unixware20:
  3105.     @echo 'Making C-Kermit $(CKVER) for UnixWare 2.0.x...'
  3106.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3107.     "CFLAGS = -O -DOLD_UNIXWARE -DSELECT -DSVR4 -DDIRENT -DHDBUUCP \
  3108.     -DBIGBUFOK -DNOGETUSERSHELL -DSTERMIOX  -DCK_CURSES -DTCPSOCKET \
  3109.     -DUW200 -DFNFLOAT -DCK_NEWTERM -DNOSYSLOG -DHUP_POSIX $(KFLAGS)" \
  3110.     "LIBS= -lsocket -lnsl -lcurses -ltermcap -lcrypt -lgen -lm -lresolv" \
  3111.     "LNKFLAGS = -s"
  3112.  
  3113. uw20:
  3114.     $(MAKE) unixware20 KTARGET=$${KTARGET:-$(@)} "KFLAGS=$(KFLAGS)"
  3115.  
  3116. #Adds big buffers ("large memory model") - otherwise the same as UnixWare 1.x.
  3117. unixware21:
  3118.     @echo 'Making C-Kermit $(CKVER) for UnixWare 2.1.x...'
  3119.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3120.     "CFLAGS = -O -DUNIXWARE -DSELECT -DSVR4 -DDIRENT -DHDBUUCP -DBIGBUFOK \
  3121.     -DNOGETUSERSHELL -DNOSYSLOG -DSTERMIOX  -DCK_CURSES -DTCPSOCKET \
  3122.     -DCK_NEWTERM -DFNFLOAT $(KFLAGS)" \
  3123.     "LIBS= -lsocket -lnsl -lcurses -ltermcap -lcrypt -lm -lresolv \
  3124.     $(LIBS)" "LNKFLAGS = -s"
  3125.  
  3126. uw21:
  3127.     $(MAKE) unixware21 KTARGET=$${KTARGET:-$(@)} "KFLAGS=$(KFLAGS)"
  3128.  
  3129. #Unixware 2.1 with IKSD support
  3130. uw21iksd:
  3131.     $(MAKE) unixware21 KTARGET=$${KTARGET:-$(@)} \
  3132.     "KFLAGS=-DCK_SHADOW $(KFLAGS)" "LIBS= -lgen"
  3133.  
  3134. #UnixWare 7 with tc[gs]etspeed() high serial speeds & select()-based CONNECT
  3135. #NOTE: This is the one we use.
  3136. unixware7t:
  3137.     @echo 'Making C-Kermit $(CKVER) for UnixWare 7 with POSIX i/o...'
  3138.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3139.     "CFLAGS = -O -DUNIXWARE -DSELECT -DSVR4 -DDIRENT -DHDBUUCP -DBIGBUFOK \
  3140.     -DFNFLOAT -DNOGETUSERSHELL -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DPOSIX \
  3141.     -DUW7 -DUSETCSETSPEED -DCK_NEWTERM -DNOLSTAT -DDCLTIMEVAL $(KFLAGS)" \
  3142.     "LIBS=-lsocket -lnsl -lcurses -ltermcap -lcrypt -lm -lresolv $(LIBS)" \
  3143.     "LNKFLAGS = -s"
  3144.  
  3145. #UnixWare 7 - select()-based CONNECT - no POSIX i/o - no high serial speeds.
  3146. #In other words, just like the UnixWare 1 and 2 builds.
  3147. unixware7x:
  3148.     @echo 'Making C-Kermit $(CKVER) for UnixWare 7...'
  3149.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3150.     "CFLAGS = -O -DUNIXWARE -DSELECT -DSVR4 -DDIRENT -DHDBUUCP -DBIGBUFOK \
  3151.     -DUW7 -DNOGETUSERSHELL -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DNOLSTAT \
  3152.     -DFNFLOAT -DCK_NEWTERM $(KFLAGS)" \
  3153.     "LIBS=-lsocket -lnsl -lcurses -ltermcap -lcrypt -lm -lresolv $(LIBS)" \
  3154.     "LNKFLAGS = -s"
  3155.  
  3156. #UnixWare 7 with POSIX cfset[oi]speed() to allow high serial speeds.
  3157. #(but the high speeds don't work)
  3158. unixware7p:
  3159.     @echo 'Making C-Kermit $(CKVER) for UnixWare 7 with POSIX i/o...'
  3160.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3161.     "CFLAGS = -O -DUNIXWARE -DSELECT -DSVR4 -DDIRENT -DHDBUUCP -DBIGBUFOK \
  3162.     -DUW7 -DNOGETUSERSHELL -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DPOSIX \
  3163.     -DFNFLOAT -DCK_NEWTERM -DNOLSTAT $(KFLAGS)" \
  3164.     "LIBS=-lsocket -lnsl -lcurses -ltermcap -lcrypt -lm -lresolv $(LIBS)" \
  3165.     "LNKFLAGS = -s"
  3166.  
  3167. # UnixWare 7 built with gcc - This does not work at all...
  3168. # Reportedly gcc 2.8.1 is broken on Unixware 7.  Try egcs?
  3169. unixware7g:
  3170.     @echo 'Making C-Kermit $(CKVER) for UnixWare 7 with gcc...'
  3171.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3172.     "CC = gcc" "CC2 = gcc" "LNKFLAGS = -s -shlib"
  3173.     "CFLAGS = -O -DUNIXWARE -DSELECT -DSVR4 -DDIRENT -DHDBUUCP -DBIGBUFOK \
  3174.     -DUW7 -DNOGETUSERSHELL -DSTERMIOX  -DCK_CURSES -DTCPSOCKET -DNOLSTAT \
  3175.     -DFNFLOAT -DCK_NEWTERM $(KFLAGS)" \
  3176.     "LIBS=-lsocket -lnsl -lcurses -ltermcap -lcrypt -lm -lresolv $(LIBS)" \
  3177.     "LNKFLAGS = -s"
  3178.  
  3179. unixware7:
  3180.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=$(KFLAGS)" unixware7t \
  3181.     KTARGET=$${KTARGET:-$(@)}
  3182.  
  3183. uw7:
  3184.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=$(KFLAGS)" unixware7t \
  3185.     KTARGET=$${KTARGET:-$(@)}
  3186.  
  3187. #UnixWare 7 with OpenSSL
  3188. uw7ssl:
  3189.     @echo 'Making C-Kermit $(CKVER) for UnixWare 7 and OpenSSL...'
  3190.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} \
  3191.     "CFLAGS = -O -DCK_AUTHENTICATION -DCK_SSL -DCK_SHADOW
  3192.     -DUNIXWARE -DSELECT -DSVR4 -DDIRENT -DHDBUUCP -DBIGBUFOK \
  3193.     -DFNFLOAT -DNOGETUSERSHELL -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DPOSIX \
  3194.     -DUW7 -DUSETCSETSPEED -DCK_NEWTERM -DNOLSTAT -DDCLTIMEVAL \
  3195.     -I/usr/local/ssl/include $(KFLAGS)" \
  3196.     "LIBS=-lsocket -lnsl -lcurses -ltermcap -lcrypt -lm -lresolv \
  3197.     -lgen -lcudk70 -L/usr/local/ssl/lib -lssl -lcrypto $(LIBS)" \
  3198.     "LNKFLAGS = -s"
  3199.  
  3200. #As above but includes Shadow password support needed for IKSD.
  3201. uw7iksd:
  3202.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=-DCK_SHADOW $(KFLAGS)" \
  3203.     KTARGET=$${KTARGET:-$(@)} "LIBS= -lgen" unixware7t
  3204.  
  3205. #As above but links with static API for realpath() so a binary built
  3206. #with this target on UW7.1 will also work on 7.0.  Requires SCO UDK
  3207. #rather than the stock compiler.
  3208. uw7iksdudk:
  3209.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=-DCK_SHADOW $(KFLAGS)" \
  3210.     KTARGET=$${KTARGET:-$(@)} "LIBS= -lgen -lcudk70" unixware7t
  3211.  
  3212. #ESIX SVR4.0.3 or 4.04 with TCP/IP support.
  3213. #Has <sys/termiox.h>, ANSI C function prototyping disabled.
  3214. #Add -m486 to CFLAGS if desired.
  3215. esixr4:
  3216.     @echo 'Making C-Kermit $(CKVER) for ESIX SVR4 + TCP/IP...'
  3217.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3218.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DNOANSI \
  3219.     -DSTERMIOX -DTCPSOCKET $(KFLAGS)" "LNKFLAGS = -s" \
  3220.     "LIBS = -lsocket -lnsl"
  3221.  
  3222. #AT&T UNIX System V R4.
  3223. #Has <sys/termiox.h>, Wollongong WIN/TCP TCP/IP.
  3224. sys5r4sxnet:
  3225.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  3226.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3227.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP \
  3228.     -DSTERMIOX -DWOLLONGONG $(KFLAGS)" "LNKFLAGS = -s"
  3229.  
  3230. #AT&T UNIX System V R4, no <termio.x> or <sys/termio.x>.
  3231. sys5r4nx:
  3232.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  3233.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3234.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP $(KFLAGS)" \
  3235.     "LNKFLAGS = -s"
  3236.  
  3237. #AT&T UNIX System V R4, no <termio.x> or <sys/termio.x>, curses, TCP/IP.
  3238. sys5r4nxnetc:
  3239.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  3240.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3241.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP \
  3242.     -DCK_CURSES -DTCPSOCKET $(KFLAGS)" \
  3243.     "LIBS = -lcurses -lsocket -lnsl -ltcpip" \
  3244.     "LNKFLAGS = -s"
  3245.  
  3246. #AT&T UNIX System V R4, no <termio.x> or <sys/termio.x>, Wollongong TCP/IP.
  3247. sys5r4nxtwg:
  3248.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  3249.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3250.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DWOLLONGONG $(KFLAGS)"
  3251.     "LNKFLAGS = -s"
  3252.  
  3253. #ICL UNIX System V R4.(DRS N/X) version :-
  3254. #UNIX System V Release 4.0 ICL DRS 6000 (SPARC)
  3255. #DRS/NX 6000 SVR4 Version 5  Level 1  Increment 4
  3256. #Has <sys/termiox.h>, regular Berkeley sockets library, i.e. in.h and inet.h
  3257. #are not misplaced in sys (rather than netinet and arpa, respectively).
  3258. #Uses ANSI C constructs, advisory file locking on devices, etc.
  3259. #Remove -lnsl if it causes trouble.
  3260. iclsys5r4:
  3261.     @echo 'Making C-Kermit $(CKVER) for ICL UNIX System V R4 (DRS N/X)'
  3262.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3263.     "CFLAGS = -O -DSVR4 -DICL_SVR4 -DDIRENT -DHDBUUCP -DNOGETUSERSHELL \
  3264.     -DSTERMIOX -DTCPSOCKET $(KFLAGS)" \
  3265.     "LIBS= -lsocket -lnsl -lresolv " "LNKFLAGS = -s"
  3266.  
  3267. #As above but for DRS/NX 4.2MP 7MPlus.
  3268. iclsys5r4m+:
  3269.     @echo 'Making C-Kermit $(CKVER) for ICL UNIX System V R4 DRS/NX 4.2MP+'
  3270.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3271.     "CFLAGS = -O -DSVR4 -DICL_SVR4 -DDIRENT -DHDBUUCP -DNOIKSD \
  3272.     -DSTERMIOX -DTCPSOCKET $(KFLAGS)" \
  3273.     "LIBS= -lsocket -lnsl -lm -lc -g -lgen " "LNKFLAGS = -s"
  3274.  
  3275. #As above but for DRS/NX 4.2MP 7MPlus with IKSD support.
  3276. iclsys5r4m+iksd:
  3277.     @echo 'Making C-Kermit $(CKVER) for ICL UNIX System V R4 DRS/NX 4.2MP+'
  3278.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3279.     "CFLAGS = -O -DSVR4 -DICL_SVR4 -DDIRENT -DHDBUUCP -DNOGETUSERSHELL \
  3280.     -DSTERMIOX -DTCPSOCKET $(KFLAGS)" \
  3281.     "LIBS= -lsocket -lnsl -lm -lc -g -lgen -lresolv " "LNKFLAGS = -s"
  3282.  
  3283. iclsys5r4_486:
  3284.     $(MAKE) "MAKE=$(MAKE)" iclsys5r4 KTARGET=$${KTARGET:-$(@)}
  3285.  
  3286. #Data General DG/UX 4.30 (System V R3) for DG AViiON, with TCP/IP support.
  3287. dgux430:
  3288.     @echo 'Making C-Kermit $(CKVER) for DG AViiON DG/UX 4.30...'
  3289.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3290.     "CFLAGS = -O -DDGUX430 -DSVR3 -DDIRENT -DTCPSOCKET \
  3291.     -DNOINADDRX -DNOGETUSERSHELL $(KFLAGS)"
  3292.  
  3293. #Data General DG/UX 4.30 for DG AViiON, with TCP/IP support with BSDisms.
  3294. dgux430bsd:
  3295.     @echo 'Making C-Kermit $(CKVER) for DG AViiON DG/UX 4.30...'
  3296.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3297.     "CFLAGS = -O -DDGUX430 -D_BSD_SOURCE -DBSD4 \
  3298.     -DNOINADDRX -DTCPSOCKET -DNOGETUSERSHELL $(KFLAGS)"
  3299.  
  3300. #Data General DG/UX 5.4 (System V R4) for DG AViiON, with TCP/IP support.
  3301. #Add -lsocket -lnsl if inet_addr comes up missing...
  3302. #Hmmm - I really think CK_POLL can be removed from this one in which case
  3303. #there is no difference between dgux540 and dgux540i.
  3304. dgux540:
  3305.     @echo 'Making C-Kermit $(CKVER) for DG AViiON DG/UX 5.40...'
  3306.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3307.     "CFLAGS = -O -DDGUX540 -DDIRENT -DHDBUUCP -DNOINADDRX \
  3308.     -DSTERMIOX -DTCPSOCKET -DCK_POLL -DNOGETUSERSHELL $(KFLAGS)"
  3309.  
  3310. #Data General DG/UX 5.40 (System V R4) for Intel AViiON, with TCP/IP support.
  3311. dgux540i:
  3312.     @echo 'Making C-Kermit $(CKVER) for DG AViiON DG/UX 5.40...'
  3313.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3314.     "CFLAGS = -O -DDGUX540 -DDIRENT -DHDBUUCP -DNOINADDRX \
  3315.     -DSTERMIOX -DTCPSOCKET -DNOGETUSERSHELL $(KFLAGS)" \
  3316.     "LIBS = -lsocket -lnsl"
  3317.  
  3318. dgux54:
  3319.     make dgux540 KTARGET=$${KTARGET:-$(@)}
  3320.  
  3321. #Data General DG/UX 5.4 (= System V R4) for DG AViiON, with TCP/IP support.
  3322. # And curses.
  3323. dgux540c:
  3324.     @echo 'Making C-Kermit $(CKVER) for DG AViiON DG/UX 5.4...'
  3325.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3326.     "CFLAGS = -O -DDGUX540 -DDIRENT -DHDBUUCP -DNOINADDRX \
  3327.     -DSTERMIOX -DTCPSOCKET -DCK_CURSES -DCK_NEWTERM -DNOGETUSERSHELL \
  3328.     $(KFLAGS)" "LIBS= -lcurses8 -ltermcap" "LNKFLAGS = -s"
  3329.  
  3330. #As above but for Intel - only difference is name library names.
  3331. dgux540ic:
  3332.     @echo 'Making C-Kermit $(CKVER) for DG AViiON DG/UX 5.40...'
  3333.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3334.     "CFLAGS = -O -DDGUX540 -DDIRENT -DHDBUUCP -DNOINADDRX \
  3335.     -DSTERMIOX -DTCPSOCKET -DCK_CURSES -DCK_NEWTERM -DNOGETUSERSHELL \
  3336.     $(KFLAGS)" "LIBS = -lsocket -lnsl -lcurses -ltermcap"
  3337.  
  3338. dgux54c:
  3339.     make dgux540c KTARGET=$${KTARGET:-$(@)}
  3340.  
  3341. #DG/UX 5.4R3.10
  3342. dgux54310:
  3343.     @echo 'Making C-Kermit $(CKVER) for DG AViiON DG/UX 5.4R3...'
  3344.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3345.     "CFLAGS = -O -DDGUX540 -DDGUX54310 -DDIRENT -DHDBUUCP -DSELECT \
  3346.     -DSTERMIOX -DTCPSOCKET -DCK_CURSES -DCK_NEWTERM    -DNOGETUSERSHELL \
  3347.     -DNOINADDRX $(KFLAGS)" "LIBS= -lcurses8 -ltermcap" "LNKFLAGS = -s"
  3348.  
  3349. #DG/UX 5.4R4.10 - Includes everything.
  3350. dgux54410:
  3351.     @echo 'Making C-Kermit $(CKVER) for DG/UX 5.4R4.10...'
  3352.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3353.     "CFLAGS = -O -DDGUX540 -DDGUX54410 -DDIRENT -DHDBUUCP -DSELECT \
  3354.     -DSTERMIOX -DTCPSOCKET -DCK_CURSES -DCK_NEWTERM -DNOGETUSERSHELL \
  3355.     -DNOINADDRX $(KFLAGS)" "LIBS = -lsocket -lnsl -lcurses -ltermcap"
  3356.  
  3357. #DG/UX 5.4R4.11 - Includes everything.
  3358. dgux54411:
  3359.     @echo 'Making C-Kermit $(CKVER) for DG/UX 5.4R4.11...'
  3360.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3361.     "CFLAGS = -O -DDGUX540 -DDGUX54411 -DDIRENT -DHDBUUCP -DSELECT \
  3362.     -DSTERMIOX -DTCPSOCKET -DCK_CURSES -DCK_NEWTERM -DNOGETUSERSHELL \
  3363.     -DNOINADDRX $(KFLAGS)" "LIBS = -lsocket -lnsl -lcurses -ltermcap"
  3364.  
  3365. #DG/UX 5.4R4.20 - Includes everything.
  3366. dgux54420:
  3367.     @echo 'Making C-Kermit $(CKVER) for DG/UX 5.4R4.20...'
  3368.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3369.     "CFLAGS = -O -DDGUX540 -DDGUX54420 -DDIRENT -DHDBUUCP -DSELECT \
  3370.     -DSTERMIOX -DTCPSOCKET -DCK_CURSES -DCK_NEWTERM -DNOGETUSERSHELL \
  3371.     -DNOINADDRX $(KFLAGS)" \
  3372.     "LIBS = -lsocket -lresolv -lnsl -lcurses -ltermcap"
  3373.  
  3374. #Silicon Graphics System V R3 with BSD file system (IRIS)
  3375. iris:
  3376.     @echo Making C-Kermit $(CKVER) for Silicon Graphics IRIX pre-3.3...
  3377.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3378.     "CFLAGS = -O -DSVR3 -DLONGFN  $(KFLAGS) -I/usr/include/bsd" \
  3379.     "LIBS = -lbsd"
  3380.  
  3381. #Silicon Graphics IRIS System V R3
  3382. irix33:
  3383.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 3.3...'
  3384.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3385.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP $(KFLAGS) -O" \
  3386.     "LNKFLAGS = -s"
  3387.  
  3388. #Silicon Graphics Iris Indigo with IRIX 4.0.0 or 5.0...
  3389. #Strict ANSI C compilation, TCP/IP support included
  3390. irix40:
  3391.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 4.0...'
  3392.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3393.     "CFLAGS = -DIRIX40 -DSVR3 -DDIRENT -DHDBUUCP -DPWID_T=uid_t \
  3394.     -DCK_ANSIC -DTCPSOCKET $(KFLAGS) -O -Olimit 1600 -I/usr/include/bsd" \
  3395.     "LNKFLAGS = -s"
  3396.  
  3397. #As above, but with fullscreen display (curses) and Sun Yellow Pages support.
  3398. #NOTE: IRIX versions prior to 5 run COFF binaries.
  3399. irix40ypc:
  3400.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 4.0.'
  3401.     @echo 'Includes fullscreen file display and Sun Yellow Pages...'
  3402.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3403.     "CFLAGS = -DIRIX40 -DSVR3 -DDIRENT -DHDBUUCP -DCK_CURSES \
  3404.     -DPWID_T=uid_t -DCK_ANSIC -DTCPSOCKET $(KFLAGS) \
  3405.     -O -Olimit 1600 -I/usr/include/bsd" \
  3406.     "LIBS = -lcurses -lsun" "LNKFLAGS = -s"
  3407.  
  3408. # Silicon Graphics Iris Series 4D/*, IRIX 4.0.x, -O4 ucode optimized.
  3409. # Huge temporary file space needed for ucode optimizer.  If you get an error
  3410. # like "ugen: internal error writing to /tmp/ctmca08777: Error 0", define the
  3411. # the TMPDIR environment variable to point to a file system that has more
  3412. # space available, e.g. "setenv TMPDIR /usr/tmp".
  3413. irix40u:
  3414.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 4.0...'
  3415.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3416.     "CFLAGS = -DIRIX40 -DSVR3 -DDIRENT -DHDBUUCP -DPWID_T=uid_t \
  3417.     -DCK_ANSIC -DTCPSOCKET $(KFLAGS) -O4 -Olimit 1600" \
  3418.     "LNKFLAGS=-O4 -Olimit 1600 -s" "EXT=u"
  3419.  
  3420. # As above, with Curses Support added
  3421. irix40uc:
  3422.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 4.0...'
  3423.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3424.     "CFLAGS = -DIRIX40 -DSVR3 -DDIRENT -DHDBUUCP -DPWID_T=uid_t \
  3425.     -DCK_ANSIC -DCK_CURSES -DTCPSOCKET $(KFLAGS) -O4 -Olimit 1600" \
  3426.     "LNKFLAGS=-O4 -Olimit 1600 -s" "EXT=u" "LIBS= -lcurses -ltermcap"
  3427.  
  3428. #Silicon Graphics IRIX 5.x.
  3429. #Yellow Pages and Curses support included.
  3430. #IRIX version 5.x can run COFF or ELF binaries.
  3431. irix51:
  3432.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 5.x'
  3433.     @echo 'Includes fullscreen file display and Yellow Pages...'
  3434.     @echo 'Add -mips<n> to CFLAGS specify a particular hardware target.'
  3435.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3436.     "CFLAGS = -DIRIX51 -DSVR4 -DDIRENT -DHDBUUCP -DCK_CURSES -DCK_NEWTERM \
  3437.     -DPWID_T=uid_t -DCK_ANSIC -DTCPSOCKET -DSELECT -DNOGETUSERSHELL \
  3438.     $(KFLAGS) -O -Olimit 2400" "LIBS = -lcurses" "LNKFLAGS = -s"
  3439.  
  3440. irix51ypc:
  3441.     $(MAKE) "MAKE=$(MAKE)" irix51 KTARGET=$${KTARGET:-$(@)}
  3442.  
  3443. #IRIX 5.2 adds RTS/CTS
  3444. irix52:
  3445.     $(MAKE) "MAKE=$(MAKE)" irix51 KTARGET=$${KTARGET:-$(@)} \
  3446.     "KFLAGS=-DIRIX52 -DCK_RTSCTS"
  3447.  
  3448. irix53:
  3449.     $(MAKE) "MAKE=$(MAKE)" irix51 KTARGET=$${KTARGET:-$(@)} \
  3450.     "KFLAGS=-DIRIX52 -DIRIX53 -DCK_RTSCTS"
  3451.  
  3452. #Silicon Graphics IRIX 6.[024] common stuff.
  3453. #Yellow Pages and Curses support included.
  3454. #IRIX version 6.0 and later runs only ELF binaries.
  3455. #Depends on code changes in ckudeb.h that make -DIRIX6x define all
  3456. #lower IRIX6x values and IRIX51.
  3457. irix6x:
  3458.     @echo 'Includes fullscreen file display and Yellow Pages...'
  3459.     @echo 'Add -mips<n> to specify a particular hardware target.'
  3460.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3461.     "CFLAGS = -DSVR4 -DDIRENT -DHDBUUCP -DNOGETUSERSHELL \
  3462.     -DCK_CURSES -DCK_NEWTERM -DPWID_T=uid_t -DCK_ANSIC -DTCPSOCKET \
  3463.     -DSELECT -DCK_RTSCTS -O $(KFLAGS)" \
  3464.     "LIBS = -lcurses" "LNKFLAGS = -s $(LNKFLAGS)"
  3465.  
  3466. #Silicon Graphics IRIX 6.0.
  3467. irix60:
  3468.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 6.0'
  3469.     @$(MAKE) "MAKE=$(MAKE)" \
  3470.     "KFLAGS=-DIRIX60 -Olimit 2138 $(KFLAGS)" \
  3471.     irix6x KTARGET=$${KTARGET:-$(@)}
  3472.  
  3473. #Silicon Graphics IRIX 6.2.
  3474. #Serial speeds > 38400 are available in IRIX 6.2 on O-class machines only.
  3475. #Note: Olimit must be a number > 0.
  3476. irix62:
  3477.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 6.2'
  3478.     @$(MAKE) "MAKE=$(MAKE)" \
  3479.     LNKFLAGS="-Wl,-woff,84" \
  3480.     "KFLAGS=-DIRIX62 -Olimit 4700 $(KFLAGS)" \
  3481.     irix6x KTARGET=$${KTARGET:-$(@)}
  3482.  
  3483. #Silicon Graphics IRIX 6.3.
  3484. irix63:
  3485.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 6.3'
  3486.     @$(MAKE) "MAKE=$(MAKE)" irix62 KTARGET=$${KTARGET:-$(@)} \
  3487.     "KFLAGS=-DIRIX63"
  3488.  
  3489. #Silicon Graphics IRIX 6.4.
  3490. # -woff,84 to linker stops complaints about no symbols loaded from
  3491. # curses, and -woff 1110 stops complaints about unreachable "break;"
  3492. # statements in ckcpro.c among others.
  3493. # tested on SGI Octane, running IRIX 6.4 up to 115200 bps.
  3494. # -Olimit 0 means infinite.
  3495. irix64:
  3496.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 6.4'
  3497.     @$(MAKE) "MAKE=$(MAKE)" \
  3498.     LNKFLAGS="-Wl,-woff,84" \
  3499.     "KFLAGS=-DIRIX64 -DCK_RTSCTS -Olimit 3000 -woff 1110 $(KFLAGS)" \
  3500.     irix6x KTARGET=$${KTARGET:-$(@)}
  3501.  
  3502. irix64gcc:
  3503.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 6.4 gcc'
  3504.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  3505.     "CFLAGS= -DSVR4 -DIRIX64 -DCK_CURSES -DTCPSOCKET -DNOCOTFMC \
  3506.     $(KFLAGS) -O" "LIBS= -lcurses -ltermcap -lcrypt"
  3507.  
  3508. #Note the new Optimization option syntax for MIPSpro CC 7.2.1.2m.
  3509. irix65:
  3510.     @echo 'Making C-Kermit $(CKVER) for SGI IRIX 6.5'
  3511.     @$(MAKE) "MAKE=$(MAKE)" \
  3512.     LNKFLAGS="-Wl,-woff,84" \
  3513.     "KFLAGS=-DIRIX65 -DCK_RTSCTS -OPT:Olimit=0 -woff 1110 $(KFLAGS)" \
  3514.     irix6x KTARGET=$${KTARGET:-$(@)}
  3515.  
  3516. irix6x+krb5:
  3517.     @echo 'Includes fullscreen file display and Yellow Pages...'
  3518.     @echo 'Add -mips<n> to specify a particular hardware target.'
  3519.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} \
  3520.     "CFLAGS = -DSVR4 -DDIRENT -DHDBUUCP -DNOGETUSERSHELL \
  3521.     -DCK_CURSES -DCK_NEWTERM -DPWID_T=uid_t -DCK_ANSIC -DTCPSOCKET\
  3522.     -DSELECT -DCK_RTSCTS -O \
  3523.     -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 -DCK_ENCRYPTION -DCK_DES \
  3524.     -I/usr/KRB5/include/ $(KFLAGS)" \
  3525.     "LIBS = -lcurses -L/usr/KRB5/lib -ldes425 -lkrb5 \
  3526.     -lcom_err -lcrypto -lcrypt" \
  3527.     "LNKFLAGS = -s $(LNKFLAGS)"
  3528.  
  3529. irix65+krb5:
  3530.     @echo 'Making C-Kermit $(CKVER) for SGI IRIX 6.5'
  3531.     @$(MAKE) "MAKE=$(MAKE)" \
  3532.     LNKFLAGS="-Wl,-woff,84" \
  3533.     "KFLAGS=-DIRIX65 -DCK_RTSCTS -OPT:Olimit=0 -woff 1110 $(KFLAGS)" \
  3534.     irix6x+krb5 KTARGET=$${KTARGET:-$(@)}
  3535.  
  3536. #In case they type "make sys5"...
  3537. sys5:
  3538.     $(MAKE) "MAKE=$(MAKE)" sys3 KTARGET=$${KTARGET:-$(@)}
  3539.  
  3540. #Generic ATT System III or System V (with I&D space)
  3541. sys3:
  3542.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System III'
  3543.     @echo 'or System V R2 or earlier...'
  3544.     @echo 'add -DNOMKDIR if mkdir is an undefined symbol.'
  3545.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3546.     "CFLAGS = -DATTSV -DNOUNICODE -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL \
  3547.     -DNOINITGROUPS -DNOFTRUNCATE -DNOREALPATH $(KFLAGS) -i -O" \
  3548.     "LNKFLAGS = -i"
  3549.  
  3550. #Generic ATT System III or System V (no I&D space)
  3551. sys3nid:
  3552.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System III'
  3553.     @echo 'or System V R2 or earlier, no I&D space...'
  3554.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3555.     "CFLAGS = -DATTSV -DNOREALPATH -DNOUNICODE -DNOSYSLOG -DNOSYMLINK \
  3556.     -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE $(KFLAGS) -O" \
  3557.     "LNKFLAGS ="
  3558.  
  3559. #Generic ATT System III or System V R2 or earlier, "no void":
  3560. #special entry to remove "Illegal pointer combination" warnings.
  3561. sys3nv:
  3562.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System III'
  3563.     @echo 'or System V R2 or earlier...'
  3564.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3565.     "CFLAGS= -DATTSV -DNOREALPATH -DNOUNICODE -DNOSYSLOG -DNOGETUSERSHELL \
  3566.     -DNOSYMLINK -DNOFTRUNCATE -DNOINITGROUPS -Dvoid=int $(KFLAGS) -i -O" \
  3567.     "LNKFLAGS = -i"
  3568.  
  3569. # AT&T 7300 UNIX PC.  As of C-Kermit 6.1, many of these entries don't work
  3570. # any more due to "Out of memory" or "Too many defines" errors during
  3571. # compilation, at least not on systems without lots of memory.  The sys3upcgc
  3572. # entry works (using gcc) with optimization removed, and might also work
  3573. # with optimization enabled on machines with larger memories.
  3574.  
  3575. #AT&T 7300/UNIX PC (3B1) systems, sys3 but special handling for internal modem.
  3576. #Link with the shared library -- the conflict with openi in shared library
  3577. #is solved with -Dopeni=xopeni.  Note that the xermit target can't be used
  3578. #for the Unix PC; there is no select().
  3579. sys3upc:
  3580.     @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC, shared lib...'
  3581.     @echo 'If shared lib causes trouble, use make sys3upcold.'
  3582.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3583.     "CFLAGS = -O -DATT7300 -DNOMKDIR -DUSE_MEMCPY -DNOREALPATH \
  3584.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  3585.     -DNOREDIRECT -DNOGFTIMER -DNOUNICODE $(KFLAGS) -Dopeni=xopeni" \
  3586.     "CC2 = ld /lib/crt0s.o /lib/shlib.ifile" "LNKFLAGS = -s"
  3587.  
  3588. #AT&T 7300/Unix PC systems, minimum kermit for those with smaller amounts
  3589. #of memory.
  3590. sys3upcm:
  3591.     @echo Minimum interactive
  3592.     $(MAKE) "MAKE=$(MAKE)" sys3upc KTARGET=$${KTARGET:-$(@)} \
  3593.     "KFLAGS=-DNOSPL -DNOFRILLS -DNOHELP -DNODEBUG -DNOTLOG -DNOCSETS \
  3594.     -DNOSYSLOG -DNOSETKEY -DNOREALPATH"
  3595.  
  3596. #AT&T 7300/UNIX PC (3B1) systems, with curses support.
  3597. #Curses and the shared library don't get along, so we don't use the
  3598. #shared library.  We need to include CK_NEWTERM to avoid a conflict
  3599. #with curses and buffering on stdout.  Merged with submission by
  3600. #Robert Weiner/Programming Plus, rweiner@watsun.cc.columbia.edu.
  3601. #We don't need -Dopeni=xopeni since we're not using the shared library,
  3602. #but we keep it to be consistent with the other entries.
  3603. sys3upcc:
  3604.     @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC, curses...'
  3605.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3606.     "CFLAGS = -O -DATT7300 -DNOREALPATH \
  3607.     -DCK_CURSES -DCK_NEWTERM -DNOMKDIR -DNOREDIRECT -DNOGFTIMER \
  3608.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  3609.     -DUSE_MEMCPY -DNOUNICODE $(KFLAGS) -Dopeni=xopeni" \
  3610.     "LIBS = -lcurses" "LNKFLAGS = -s"
  3611.  
  3612. #Like sys3upcc but for AT&T UNIX 3.51m (released as a patch on Fix Disk 2),
  3613. #adds hardware flow control.
  3614. att351m:
  3615.     $(MAKE) "MAKE=$(MAKE)" sys3upcc KTARGET=$${KTARGET:-$(@)} \
  3616.     "KFLAGS=-DCK_RTSCTS -DUNIX351M"
  3617.  
  3618. #As above but with gcc.
  3619. att351gm:
  3620.     $(MAKE) "MAKE=$(MAKE)" sys3upcgc KTARGET=$${KTARGET:-$(@)} \
  3621.     "KFLAGS=-DCK_RTSCTS -DUNIX351M"
  3622.  
  3623. #AT&T 7300 UNIX PC (3B1), as above, but no newterm().
  3624. sys3upcx:
  3625.     @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC, curses...'
  3626.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3627.     "CFLAGS = -O -DATT7300 -DNOREALPATH -DNOUNICODE \
  3628.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  3629.     -DCK_CURSES -DNOMKDIR -DNOREDIRECT -DNOGFTIMER -DUSE_MEMCPY $(KFLAGS) \
  3630.     -Dopeni=xopeni" "LIBS = -lcurses -ltermcap" "LNKFLAGS = -s"
  3631.  
  3632. #AT&T 7300/UNIX PC (3B1) systems, with curses and shared library support.
  3633. sys3upcshcc:
  3634.     @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC, shared lib...'
  3635.     @echo 'With curses.  Requires shcc.'
  3636.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3637.     "CFLAGS = -O -DATT7300 -DNOMKDIR -DNOREALPATH \
  3638.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  3639.     -DCK_NEWTERM -DCK_CURSES  -DNOREDIRECT -DNOGFTIMER \
  3640.     -DUSE_MEMCPY -DNOUNICODE $(KFLAGS) -Dopeni=xopeni" \
  3641.     "LNKFLAGS = -i -s" "CC = shcc" "CC2 = shcc" "LIBS = -lcurses"
  3642.  
  3643. #AT&T 7300/UNIX PC (3B1) systems, as above, no curses, but use gcc.
  3644. sys3upcg:
  3645.     @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC...'
  3646.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3647.     "CFLAGS = -DATT7300 -DNOREDIRECT -DUSE_MEMCPY -DNOUNICODE \
  3648.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  3649.     -DNOGFTIMER -DNOMKDIR -DNOREALPATH $(KFLAGS) -Dopeni=xopeni" \
  3650.     "CC = gcc" "CC2 = gcc" "LNKFLAGS = -s -shlib"
  3651.  
  3652. #AT&T 7300/UNIX PC (3B1) systems, curses and gcc.
  3653. #Optimization omitted -- add it back in if your machine has lots of memory.
  3654. sys3upcgc:
  3655.     @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC, curses...'
  3656.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3657.     "CFLAGS = -DATT7300 -DNOREDIRECT -DUSE_MEMCPY -DNOGFTIMER -DNOUNICODE \
  3658.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  3659.     -DCK_CURSES -DIFDEBUG -DCK_NEWTERM -DNOMKDIR -DNOREALPATH $(KFLAGS)" \
  3660.     "CC = gcc" "CC2 = gcc" "LIBS = -lcurses" "LNKFLAGS = -s"
  3661.  
  3662. #AT&T 7300/UNIX PC (3B1) systems, special handling for internal modem.
  3663. #No FULLSCREEN file transfer display (curses).
  3664. sys3upcold:
  3665.     @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC...'
  3666.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3667.     "CFLAGS = -DATT7300 -DNOMKDIR -DUSE_MEMCPY -DNOUNICODE \
  3668.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  3669.     -DNOGFTIMER -DNOREDIRECT -DNOREALPATH $(KFLAGS) -O" "LNKFLAGS = -i"
  3670.  
  3671. #As above, but with gcc. miminum features - fits on a 400K UNIX PC floppy
  3672. #after compression with room to spare; add -DNOSHOW or other -DNOxxxx items
  3673. #to reduce size even further.
  3674. sys3upcgm:
  3675.     @echo Minimum interactive
  3676.     $(MAKE) "MAKE=$(MAKE)" sys3upcg KTARGET=$${KTARGET:-$(@)} \
  3677.     "KFLAGS=-DNOSPL -DNOFRILLS -DNOHELP -DNODEBUG -DNOTLOG -DNOCSETS \
  3678.     -DNOSETKEY $(KFLAGS)"
  3679.  
  3680. #This target is designed to create a version with the most features possible
  3681. #that, after compression, still fits on a 400K UNIX PC floppy.
  3682. sys3upcgfd:
  3683.     @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC floppy...'
  3684.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3685.     "CFLAGS = -DATT7300 -DNOREDIRECT -DUSE_MEMCPY -DNOSPL \
  3686.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  3687.     -DNOGFTIMER -DNOREALPATH -Dopeni=xopeni \
  3688.     -DNOHELP -DNODEBUG -DNOTLOG -DNOCSETS -DNOSETKEY -DNOMKDIR $(KFLAGS)" \
  3689.     "CC = gcc" "CC2 = gcc" "LNKFLAGS = -s"
  3690.  
  3691. #AT&T 6300 PLUS (warning, -O might make it run out of space).
  3692. #NOTE: Remove -DHDBUUCP if not using Honey DanBer UUCP.
  3693. att6300:
  3694.     @echo 'Making C-Kermit $(CKVER) for AT&T 6300 PLUS...'
  3695.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3696.     "CFLAGS = -DATT6300 -DHDBUUCP -DNOFILEH -DNOREALPATH \
  3697.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  3698.     -DNOUNICODE $(KFLAGS) -O -Ml -i" "LNKFLAGS = -i -Ml"
  3699.  
  3700. #As above, but with curses support.  Debugging disabled to prevent thrashing.
  3701. att6300c:
  3702.     @echo 'Making C-Kermit $(CKVER) for AT&T 6300 PLUS...'
  3703.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3704.     "CFLAGS = -DATT6300 -DHDBUUCP -DNOFILEH -DNOCSETS -DNOREALPATH \
  3705.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  3706.     -DCK_CURSES -DNODEBUG -DNOUNICODE $(KFLAGS) -O -Ml -i" \
  3707.     "LNKFLAGS = -i -Ml" "LIBS = -lcurses"
  3708.  
  3709. #AT&T 6300 PLUS with no curses, no debugging (about 34K smaller)
  3710. # -Optimization saves about 20K too.
  3711. att6300nd:
  3712.     @echo 'Making C-Kermit $(CKVER) for AT&T 6300 PLUS, no debugging...'
  3713.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3714.     "CFLAGS = -DATT6300 -DHDBUUCP -DNODEBUG -DNOFILEH -DNOREALPATH \
  3715.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  3716.     -DNOUNICODE $(KFLAGS) -O -i -Ml" "LNKFLAGS = -i -Ml"
  3717.  
  3718. #AT&T 3B2 and maybe 3B20-series computers running AT&T UNIX System V R3.
  3719. #This one was actually used to build C-Kermit 7.0 successfully on a 3B2/300.
  3720. att3b2:
  3721.     @echo 'Making C-Kermit $(CKVER) for AT&T 3B2'
  3722.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3723.     "CFLAGS = -DATTSV -DNOREDIRECT -DUSE_MEMCPY \
  3724.     -DNOTIMEVAL -DNOTIMEZONE -DMINIDIAL -DNOCHANNELIO -DNOBIGBUF \
  3725.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  3726.     -DNOGFTIMER -DNOREALPATH -Dopeni=xopeni -DNOFRILLS \
  3727.     -DNOHELP -DNODEBUG -DNOTLOG -DNOCSETS -DNOSETKEY -DNOMKDIR $(KFLAGS)" \
  3728.     "CC = gcc" "CC2 = gcc" "LNKFLAGS = -s"
  3729.  
  3730. # The next two are likely not to work as-is.
  3731.  
  3732. #AT&T 3B2, 3B20-series computers running AT&T UNIX System V.
  3733. #This is just generic System V with Honey DanBer UUCP, so refer to sys3hdb.
  3734. #Remove -DNONAWS if you can get away with it.
  3735. att3bx:
  3736.     $(MAKE) "MAKE=$(MAKE)" sys3hdb KTARGET=$${KTARGET:-$(@)} \
  3737.     "KFLAGS=$(KFLAGS) -DNONAWS -DNOTIMEVAL"
  3738.  
  3739. # 3Bx with charsets (except Unicode) but no curses.
  3740. att3bx1:
  3741.     @echo 'Making C-Kermit $(CKVER) for AT&T 3B2 or 3B20'
  3742.     @echo 'with Honey DanBer UUCP  no curses...'
  3743.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3744.     "CFLAGS = -DATTSV -DHDBUUCP $(KFLAGS) -DNOREDIRECT \
  3745.     -DNOTIMEVAL -DNOTIMEZONE -DMINIDIAL -DNOCHANNELIO -DNOBIGBUF \
  3746.     -DNOHELP -DNODEBUG -DNOGFTIMER \
  3747.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  3748.     -DNOREALPATH -DNOUNICODE -i" \
  3749.     "CC = gcc" "CC2 = gcc" "LNKFLAGS = -i -s"
  3750.  
  3751. #AT&T 3B2, 3B20-series computers running AT&T UNIX System V,
  3752. #with fullscreen file transfer display.
  3753. att3bxc:
  3754.     @echo 'Making C-Kermit $(CKVER) for AT&T 3B2 or 3B20'
  3755.     @echo 'with Honey DanBer UUCP and curses...'
  3756.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3757.     "CFLAGS = -DATTSV -DHDBUUCP -DNONAWS -DNOTIMEVAL $(KFLAGS) \
  3758.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  3759.     -DNOREALPATH -DCK_CURSES -DCK_NEWTERM -DNOUNICODE -i -O" \
  3760.     "LNKFLAGS = -i" "LIBS=-lcurses"
  3761.  
  3762. #3bx with curses but no charsets
  3763. att3bxc3:
  3764.     @echo 'Making C-Kermit $(CKVER) for AT&T 3B2 or 3B20'
  3765.     @echo 'with Honey DanBer UUCP with curses...  no CSETS'
  3766.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3767.     "CFLAGS = -DATTSV -DHDBUUCP $(KFLAGS) -DNOREDIRECT \
  3768.     -DNOTIMEVAL -DNOTIMEZONE -DMINIDIAL -DNOCHANNELIO -DNOBIGBUF \
  3769.     -DNOHELP -DNODEBUG -DNOGFTIMER \
  3770.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  3771.     -DNOREALPATH -DNOCSETS -DCK_CURSES -DCK_NEWTERM -i" \
  3772.     "CC = gcc" "CC2 = gcc" "LNKFLAGS = -i -s" "LIBS = -lcurses"
  3773.  
  3774. #Any System V R2 or earlier with Honey DanBer UUCP (same as above)
  3775. sys3hdb:
  3776.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System III'
  3777.     @echo 'or System V R2 or earlier with Honey DanBer UUCP...'
  3778.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3779.     "CFLAGS = -DATTSV -DHDBUUCP -DNOREALPATH -DNOUNICODE \
  3780.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  3781.     $(KFLAGS) -i -O" "LNKFLAGS = -i"
  3782.  
  3783. #Sperry/UNISYS 5000 UTS V 5.2 (System V R2), Honey DanBer UUCP
  3784. unisys5r2:
  3785.     @echo 'Making C-Kermit $(CKVER) for Sperry/UNISYS 5000 UTS V 5.2...'
  3786.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3787.     "CFLAGS = -DATTSV -DUNISYS52 -DHDBUUCP -DNOREALPATH -DNOUNICODE \
  3788.     -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
  3789.     $(KFLAGS) -i -O" "LNKFLAGS = -i"
  3790.  
  3791. #In case they say "make sys5hdb" instead of "make sys3hdb"...
  3792. sys5hdb:
  3793.     $(MAKE) "MAKE=$(MAKE)" sys3hdb
  3794.  
  3795. #Create the common header line for all hpux[6-10]* entries. This extra entry is
  3796. #here because our header message length may differ for each C-Kermit version.
  3797. #Don't use 'fold -s' for HP-UX 6.x or 7.x! This option is there only since
  3798. #HP-UX 8.0!
  3799. hpux-header:
  3800.     @HPUX=`uname -r | sed -e 's/^[^1-9]*//' -e 's/\.00$$/.0/'` ; \
  3801.     Message0='Making C-Kermit $(CKVER) for HP9000 HP-UX' ; \
  3802.     Message1=$${MESSAGE1:='without any extra compiler optimization'} ; \
  3803.     MessageH="$$Message0 $$HPUX" ; \
  3804.     case $$HPUX in \
  3805.       [67].*) echo "$$MessageH\n$$Message1" ;; \
  3806.          *.*) echo "$$MessageH $${Message1}$(MESSAGE1A)" | fold -s ;; \
  3807.     esac | sed -e 's/^ //' -e 's/ *$$//'
  3808.  
  3809. #HP-9000 500 HP-UX 5.xx, no TCP/IP.
  3810. hpux500:
  3811.     @echo 'Making C-Kermit $(CKVER) for HP-UX 5.xx - no TCP/IP'
  3812.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3813.     "CFLAGS = -DHPUX -DHPUX5 -DHPUXPRE65 -DNOREDIRECT -DDCLGETCWD \
  3814.     -DNOGETUSERSHELL -DNOGFTIMER -DNOSYSLOG -DNOTOMACROS -DNOLSTAT \
  3815.     -DNOSYMLINK -DNOINITGROUPS -DNOUNICODE $(KFLAGS)" \
  3816.     "LIBS = " "LNKFLAGS = "
  3817.  
  3818. #HP-9000 500 HP-UX 5.21 with Wollongong WIN/TCP 1.2 TCP/IP.
  3819. #Requires /usr/wins/usr/include and /usr/lib/libnet.a from Wollongong.
  3820. #Optimization skipped - takes forever.    Really.
  3821. hpux500wintcp:
  3822.     @echo 'Making C-Kermit $(CKVER) for HP-UX 5.21 WIN/TCP'
  3823.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  3824.     "CFLAGS = -DHPUX -DHPUX5 -DHPUXPRE65 -DTCPSOCKET -DHPUX5WINTCP \
  3825.     -DNOREDIRECT -DDCLGETCWD -DNOGETUSERSHELL -DNOGFTIMER -DINADDRX \
  3826.     -DNOSYSLOG -DNOTOMACROS -DNO_DNS_SRV -DNOSYMLINK -DNOINITGROUPS \
  3827.     -DNOMHHOST -DNOLSTAT -DNOUNICODE -DNOHADDRLIST \
  3828.     -I/usr/wins/usr/include $(KFLAGS)" \
  3829.     "LIBS = /usr/lib/libnet.a" "LNKFLAGS = "
  3830.  
  3831. #HP-UX 6.5, short filenames, no network and no curses support.
  3832. #ckcpro, ckuusr, ckuus3 and others are broken out because they make the
  3833. #optimizer run away.  Note that xermit target does not work with this one!
  3834. #If you get compiler warnings like 'Switch table overflow' increase the '...'
  3835. #value in '-Wc,-Nw...'!
  3836. hpux65:
  3837.     @$(MAKE) hpux-header
  3838.     @echo 'supporting: NO long filenames, NO network${MESSAGE2}.'
  3839.     $(MAKE) KTARGET=$${KTARGET:-$(@)} \
  3840.         ckuusr.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) \
  3841.             ckctel.$(EXT) ckuxla.$(EXT) ckcpro.$(EXT) \
  3842.     "CFLAGS = -DHPUX -DHPUX6 -DSIG_V -DNOSYSLOG -DNOSELECT -DFNFLOAT \
  3843.     -DDCLGETCWD -DNOGETUSERSHELL -DNO_DNS_SRV $(KFLAGS) -Wc,-Nw260"
  3844.     $(MAKE) wermit \
  3845.     "CFLAGS = -DHPUX -DHPUX6 -DSIG_V -DNOSYSLOG -DNOSELECT -DFNFLOAT \
  3846.     -DDCLGETCWD -DNOGETUSERSHELL -DNO_DNS_SRV $(KFLAGS) -Wc,-Nw260 \
  3847.     $(OFLAGS)" "LNKFLAGS = -s" "LIBS = -lm $(LIBS)"
  3848.  
  3849.  
  3850. #Exactly as above, plus curses:
  3851. hpux65c:
  3852.     @MESSAGE2=", but with curses" \
  3853.     $(MAKE) hpux65 KTARGET=$${KTARGET:-$(@)} \
  3854.     "KFLAGS= -DCK_CURSES $(KFLAGS)" \
  3855.     "LIBS= -lcurses"
  3856.  
  3857. #Exactly as hpux65 but with compiler optimization:
  3858. hpux65o:
  3859.     @MESSAGE1="with compiler optimization" \
  3860.     $(MAKE) hpux65 KTARGET=$${KTARGET:-$(@)} \
  3861.     "KFLAGS= $(KFLAGS)" "OFLAGS = -O"
  3862.  
  3863. #Exactly as hpux65c but with compiler optimization:
  3864. hpux65oc:
  3865.     @MESSAGE1="with compiler optimization" \
  3866.     $(MAKE) hpux65c KTARGET=$${KTARGET:-$(@)} \
  3867.     "KFLAGS= $(KFLAGS)" "OFLAGS = -O"
  3868.  
  3869. #Take this as startup entry for all 'none optimezed' files under HP-UX 7.x!
  3870. #Make sure we doesn't call it with the '-O' option because this will blow up
  3871. #the compiler!
  3872. hpux70noopt:
  3873.     @case "$(CFLAGS)" in \
  3874.     *-O*) echo "Don't use CFLAGS= -O here!" ;; \
  3875.        *) $(MAKE) ckuusr.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) \
  3876.                   ckcnet.$(EXT) ckctel.$(EXT) ckuxla.$(EXT) ckcpro.$(EXT) \
  3877.             KTARGET=$${KTARGET:-$(@)} \
  3878.           ;; \
  3879.     esac
  3880.  
  3881. #HP-UX 7.0, no long filenames, no network support, no curses.
  3882. #If you get compiler warnings like 'Switch table overflow' increase the '...'
  3883. #value in '-Wc,-Nw...'!
  3884. hpux70sf:
  3885.     @$(MAKE) hpux-header
  3886.     @echo 'supporting: NO long filenames, NO network, NO curses.'
  3887.     $(MAKE) hpux70noopt KTARGET=$${KTARGET:-$(@)} \
  3888.     "CFLAGS = -DHPUX -DHPUX7 -DSIG_V -DNOGETUSERSHELL -DFNFLOAT \
  3889.     -DNO_DNS_SRV $(KFLAGS) -Wc,-Nw260"
  3890.  
  3891.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3892.     "CFLAGS = -DHPUX -DHPUX7 -DSIG_V -DNOGETUSERSHELL -DFNFLOAT \
  3893.     -DNO_DNS_SRV $(KFLAGS) -Wc,-Nw260 $(OFLAGS)" \
  3894.     "LNKFLAGS = -s" "LIBS = -lm $(LIBS)"
  3895.  
  3896. #Exactly as hpux70sf but with compiler optimization:
  3897. hpux70osf:
  3898.     @MESSAGE1="with compiler optimization" \
  3899.     $(MAKE) hpux70sf KTARGET=$${KTARGET:-$(@)} \
  3900.     "KFLAGS= $(KFLAGS)" "OFLAGS = -O"
  3901.  
  3902. #HP-UX 7.0, short filenames, but with tcp/ip and curses.
  3903. #There must be <arpa/telnet.h> & <arpa/inet.h> present to support this
  3904. #configuration.  To use this, you must have bought the ARPA Services
  3905. #Product from HP, and you must get the files "telnet.h" and "inet.h"
  3906. #from the Berkeley Standard Distribution because (reportedly) they are not
  3907. #part of the HP product.  And you need /usr/lib/libBSD.a.
  3908. hpux70sftcpc:
  3909.     @$(MAKE) hpux-header
  3910.     @echo 'supporting: NO long filenames, \c'
  3911.     @echo 'but with networking, curses, HDB uucp...'
  3912.     $(MAKE) hpux70noopt KTARGET=$${KTARGET:-$(@)} \
  3913.     "CFLAGS =  -DHPUXDEBUG -DHPUX -DHPUX7 -DTCPSOCKET -DSIG_V \
  3914.     -DCK_REDIR -DCK_RTSCTS -DCK_CURSES -DNOGETUSERSHELL -DFNFLOAT \
  3915.     -DNO_DNS_SRV -DHDBUUCP -DLOCK_DIR=\\\"/usr/spool/uucp\\\" $(KFLAGS) \
  3916.     -Wc,-Nw260"
  3917.  
  3918.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3919.     "CFLAGS =  -DHPUXDEBUG -DHPUX -DHPUX7 -DTCPSOCKET -DSIG_V \
  3920.     -DCK_REDIR -DCK_RTSCTS -DCK_CURSES -DNOGETUSERSHELL -DFNFLOAT \
  3921.     -DNO_DNS_SRV -DHDBUUCP  -DLOCK_DIR=\\\"/usr/spool/uucp\\\" $(KFLAGS) \
  3922.     -Wc,-Nw260 $(OFLAGS)" "LNKFLAGS = -s" "LIBS= -lm -lBSD -lcurses"
  3923.  
  3924. #Exactly as above but with compiler optimization:
  3925. hpux70osftcpc:
  3926.     @MESSAGE1="with compiler optimization" \
  3927.     $(MAKE) hpux70sftcpc KTARGET=$${KTARGET:-$(@)} \
  3928.     "KFLAGS= $(KFLAGS)" "OFLAGS = -O"
  3929.  
  3930. #HP 9000 series 300/800 HP-UX 7.0, long filenames, network support, HDB uucp,
  3931. #but NO curses. See comments in hpux70sftcpc about TCP/IP support.
  3932. hpux70lfn:
  3933.     @$(MAKE) hpux-header
  3934.     @echo 'supporting: long filenames, networking, HDB uucp$(MESSAGE2)...'
  3935.     $(MAKE) hpux70noopt KTARGET=$${KTARGET:-$(@)} \
  3936.     "CFLAGS =  -DHPUXDEBUG -DHPUX -DHPUX7 -DTCPSOCKET -DSIG_V -DFNFLOAT \
  3937.     -DNOGETUSERSHELL -DNOSETBUF -DCK_REDIR -DCK_RTSCTS -DLONGFN \
  3938.     -DNO_DNS_SRV -DDIRENT -DHDBUUCP -DLOCK_DIR=\\\"/usr/spool/uucp\\\" \
  3939.     $(KFLAGS) -Wc,-Nw260"
  3940.  
  3941.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  3942.     "CFLAGS =  -DHPUXDEBUG -DHPUX -DHPUX7 -DTCPSOCKET -DSIG_V -DFNFLOAT \
  3943.     -DNOGETUSERSHELL -DNOSETBUF -DCK_REDIR -DCK_RTSCTS -DLONGFN \
  3944.     -DNO_DNS_SRV -DDIRENT -DHDBUUCP -DLOCK_DIR=\\\"/usr/spool/uucp\\\" \
  3945.     $(KFLAGS) -Wc,-Nw260 \
  3946.     $(OFLAGS)" "LNKFLAGS = -s" "LIBS = -lm -lBSD $(LIBS)"
  3947.  
  3948. #Exactly as above + curses.
  3949. hpux70lfnc:
  3950.     @MESSAGE2=', curses' \
  3951.     $(MAKE) hpux70lfn KTARGET=$${KTARGET:-$(@)} \
  3952.     "KFLAGS= -DCK_CURSES $(KFLAGS)" \
  3953.     "LIBS= -lcurses"
  3954.  
  3955. #Exactly as above hpux70lfn but with compiler optimization:
  3956. hpux70olfn:
  3957.     @MESSAGE1="with compiler optimization" \
  3958.     $(MAKE) hpux70lfn KTARGET=$${KTARGET:-$(@)} \
  3959.     "KFLAGS= $(KFLAGS)" "OFLAGS = -O"
  3960.  
  3961. #Exactly as above hpux70lfnc but with compiler optimization:
  3962. hpux70olfnc:
  3963.     @MESSAGE1="with compiler optimization" \
  3964.     $(MAKE) hpux70lfnc KTARGET=$${KTARGET:-$(@)} \
  3965.     "KFLAGS= $(KFLAGS)" "OFLAGS = -O"
  3966.  
  3967. #HP 9000 Series 300 or 400, HP-UX 8.0, long filenames and TCP/IP support.
  3968. #This one should also work on 700/800, but without PA-specific optimization.
  3969. #In case -DCK_RTSCTS and -DCK_REDIR make trouble, remove them.
  3970. #NOTE: ckcpro.c and ckuusr.c blow up the optimizer, so don't optimize them.
  3971. #For HP-UX 8.0 on Motorola CPUs, you might have to reinstall your kernel with
  3972. #maxdsiz >= #0x02000000.  But if physical memory is small, that still will not
  3973. #help much.
  3974. hpux80:
  3975.     @$(MAKE) hpux-header
  3976.     @MESSAGE3=$${MESSAGE3:='TCP/IP'}; \
  3977.     echo "supporting: long filenames, $$MESSAGE3, HDB UUCP$(MESSAGE2)..."
  3978.     $(MAKE) -B "CC=$(CC)" "CC2=$(CC2)" ckcpro.$(EXT) ckuusr.$(EXT) \
  3979.     "CFLAGS =  -DCK_REDIR -DHPUXDEBUG -DHPUX -DHPUX8 -DRENAME -DSIG_V \
  3980.     -DNOSETBUF -DDIRENT -DCK_RTSCTS -DSTERMIOX -DLONGFN -DTCPSOCKET \
  3981.     -DHDBUUCP  -DNO_DNS_SRV -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DFNFLOAT \
  3982.     $(KFLAGS)"
  3983.  
  3984.     $(MAKE) -B "CC=$(CC)" "CC2=$(CC2)" xermit KTARGET=$${KTARGET:-$(@)} \
  3985.     "CFLAGS =  -DCK_REDIR -DHPUXDEBUG -DHPUX -DHPUX8 -DRENAME -DSIG_V \
  3986.     -DNOSETBUF -DDIRENT -DCK_RTSCTS -DSTERMIOX -DLONGFN -DTCPSOCKET \
  3987.     -DHDBUUCP  -DNO_DNS_SRV -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DFNFLOAT \
  3988.     $(KFLAGS) $(OFLAGS)" "LNKFLAGS = -s" "LIBS = -lm -lBSD $(LIBS)"
  3989.  
  3990. #Exactly as above hpux80 + curses.
  3991. hpux80c:
  3992.     @MESSAGE2=', curses' \
  3993.     $(MAKE) hpux80  KTARGET=$${KTARGET:-$(@)} \
  3994.     "KFLAGS = $(KFLAGS) -DCK_CURSES" "LIBS = -lcurses"
  3995.  
  3996. #HP 9000 HP-UX 8.0, no TCP/IP because /usr/lib/libBSD.a can't be found,
  3997. #or TCP/IP header files missing.
  3998. hpux80notcp:
  3999.     @MESSAGE3='NO network, NO curses' \
  4000.     $(MAKE) "MAKE=$(MAKE)" hpux80 KTARGET=$${KTARGET:-$(@)} \
  4001.     "KFLAGS = $(KFLAGS) -UTCPSOCKET"
  4002.  
  4003. #Now the same as above hpux80 but with compiler optimization
  4004. hpux80o:
  4005.     @MESSAGE1="with compiler optimization" \
  4006.     $(MAKE) hpux80 KTARGET=$${KTARGET:-$(@)} \
  4007.     "KFLAGS = $(KFLAGS)" "OFLAGS = -O"
  4008.  
  4009. #Exactly as above hpux80 + curses and with compiler optimization.
  4010. hpux80oc:
  4011.     @MESSAGE1="with compiler optimization" \
  4012.     $(MAKE) hpux80c KTARGET=$${KTARGET:-$(@)} \
  4013.     "KFLAGS = $(KFLAGS)" "OFLAGS = -O" "LIBS = -lcurses"
  4014.  
  4015. #Exactly as above hpux80notcp but with compiler optimization
  4016. hpux80onotcp:
  4017.     @MESSAGE1="with compiler optimization" \
  4018.     $(MAKE) "MAKE=$(MAKE)" hpux80notcp KTARGET=$${KTARGET:-$(@)} \
  4019.     "KFLAGS = $(KFLAGS)" "OFLAGS = -O"
  4020.  
  4021. #HP 9000 Series 700 or 800, HP-UX 8.0, long filenames and TCP/IP support.
  4022. # Like the previous entries, but with PA-RISC-specific optimization.
  4023. hpux80pa:
  4024.     @MESSAGE1="with PA-RISC-specific optimization" \
  4025.     $(MAKE) hpux80 KTARGET=$${KTARGET:-$(@)} \
  4026.     "KFLAGS = $(KFLAGS) +Obb1100"
  4027.  
  4028. #As above, but with curses.
  4029. hpux80pac:
  4030.     @MESSAGE1="with PA-RISC-specific optimization" \
  4031.     $(MAKE) hpux80c KTARGET=$${KTARGET:-$(@)} \
  4032.     "KFLAGS = $(KFLAGS) +Obb1100"
  4033.  
  4034. #As above, but compiled with GCC 2.3.3.
  4035. hpux80pagcc:
  4036.     @MESSAGE1='using the gcc compiler' \
  4037.     $(MAKE) hpux80 KTARGET=$${KTARGET:-$(@)} \
  4038.     "CC=gcc" "CC2=gcc" "KFLAGS= -funsigned-char $(KFLAGS)"
  4039.  
  4040. #HP-UX 9.0, 9.01, 9.03, 9.04, 9.05, 9.07, 9.10 ..., + TCP/IP + curses, fully
  4041. #configured.  Use this entry with the restricted compiler: no optimization, no
  4042. #ANSI support.  If you get unresolved sockets library references at link time,
  4043. #then try adding -lBSD to LIBS, or else remove -DTCPSOCKET to build a version
  4044. #without TCP/IP support.
  4045. hpux90:
  4046.     @MESSAGE1A='. Read comments in the hpux90 entry if you have trouble.' \
  4047.     $(MAKE) hpux-header
  4048.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  4049.     "CFLAGS = -DHPUXDEBUG -DHPUX9 -DSTERMIOX -DDIRENT \
  4050.     -DNOSETBUF -DCK_CURSES -DTCPSOCKET -DRENAME -DCK_REDIR -DLONGFN \
  4051.     -DHDBUUCP -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DFNFLOAT $(KFLAGS)" \
  4052.     "LNKFLAGS = -s" "LIBS = -lm -lcurses" "CC=$(CC)" "CC2=$(CC2)"
  4053.  
  4054. #Like hpux90, but for the "value-added" compiler on all HP 9000 models.
  4055. #Adds optimization and ANSI compilation:
  4056. # +O2 makes smaller executable (= -O = Level-1 and global optimization)
  4057. # +O3 adds interprocedural global optimization, makes bigger executable.
  4058. # If optimization fails on some modules, you can add:
  4059. #  +Obb<n>, +Olimit <n>, or +Onolimit, depending on your cc version,
  4060. # where <n> is a number, e.g. +Obb1200.  In other words, if you get optimizer
  4061. # warnings, add (for example) +Obb1200; if you still get optimizer warnings,
  4062. # increase the number.  Repeat until warnings go away.  If your compiler
  4063. # permits it, use +Onolimit. If optimizer blows up on ckcpro.c, see next entry.
  4064. # Reportedly, on some configurations, such as HP9000/425e or /340, perhaps
  4065. # depending on the amount of main memory, this entry might fail no matter what
  4066. # you do ("Out of Memory", "cc: Fatal error in /lib/c.c1", etc).  In that case
  4067. # use "make hpux90" (no "o").
  4068. hpux90o:
  4069.     @MESSAGE1=$${MESSAGE1:-"with compiler optimization"} \
  4070.     $(MAKE) hpux90 KTARGET=$${KTARGET:-$(@)} \
  4071.     "KFLAGS = $(KFLAGS) -Aa -DCK_ANSIC -D_HPUX_SOURCE +O2"
  4072.  
  4073. # For HP-UX 9.0 on Motorola CPUs, optimization of ckcpro.c tends to blow up
  4074. # the compiler.  You might have to reinstall your kernel with maxdsiz >=
  4075. # 0x03000000.  But if physical memory is small, that still will not help much.
  4076. # In that case, use this entry to skip optimization of ckcpro.c.
  4077. hpux90m68ko:
  4078.     @MESSAGE1='without compiler optimization for ckcpro.$(EXT) ...' \
  4079.     $(MAKE) hpux-header
  4080.     $(MAKE) ckuusr.$(EXT) ckuus3.$(EXT) ckcpro.$(EXT) \
  4081.     "CFLAGS = -DHPUXDEBUG -DHPUX9 -DSTERMIOX -DDIRENT \
  4082.     -DNOSETBUF -DCK_CURSES -DTCPSOCKET -DRENAME  -DCK_REDIR -DLONGFN \
  4083.     -DHDBUUCP -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DFNFLOAT $(KFLAGS)"
  4084.     @echo
  4085.     @MESSAGE1="with compiler optimization for the rest" \
  4086.     $(MAKE) hpux90 KTARGET=$${KTARGET:-$(@)} \
  4087.     "KFLAGS = $(KFLAGS) -Aa -DCK_ANSIC -D_HPUX_SOURCE +O2"
  4088.  
  4089. # Old name for hpux90m68ko.
  4090. hpux90mot:
  4091.     $(MAKE) hpux90m68ko KTARGET=$${KTARGET:-$(@)} "KFLAGS = $(KFLAGS)"
  4092.  
  4093. #Like hpux90o but with additional model-700/800-specific optimizations.
  4094. # +ESlit = consolidate strings in read-only memory.
  4095. # +ESfsc = inline millicode calls when comparing pointers.
  4096. hpux90o700:
  4097.     @echo 'If you get optimizer warnings \c'
  4098.     @echo 'try "make hpux90o700 KFLAGS=+Obb1200"'
  4099.     @MESSAGE1="with PA-RISC-specific optimizations" \
  4100.     $(MAKE) hpux90o KTARGET=$${KTARGET:-$(@)} \
  4101.     "KFLAGS = $(KFLAGS) +ESlit +ESsfc"
  4102.  
  4103. #HP-UX 9.0, 9.01, 9.03, 9.04, 9.05, 9.07, 9.10 ..., + TCP/IP + curses, fully
  4104. #configured, built with gcc, all models except 800 series.
  4105. #You might need to add the include path for gcc headers, for example:
  4106. # 'KFLAGS=-I/usr/gnu/lib/gcc-lib/hppa1.1-hp-hpux/2.4.5/include/'
  4107. hpux90gcc:
  4108.     @MESSAGE1='using the gcc compiler' \
  4109.     $(MAKE) hpux90 KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
  4110.     "KFLAGS = $(KFLAGS) -DCK_ANSIC -funsigned-char -O2"
  4111.  
  4112. #Make man page for HP-UX 10.00 or later.
  4113. hpux100man:
  4114.     @touch ckuker.cpp
  4115.     $(MAKE) "SHELL=/usr/bin/sh" "CFLAGS=-DHPUX10" manpage
  4116.  
  4117. #HP-9000 HP-UX 10.0 + TCP/IP + curses, fully configured.
  4118. #Use with restricted (bundled) compiler: no optimization, no ANSI support.
  4119. #libcurses needed for fullscreen file xfer display in HP-UX 10.00 and 10.01.
  4120. #libHcurses (NOT libcurses!) for fullscreen display, to work around fatal bugs
  4121. #in HP-UX 10.10 and 10.20 curses. Maybe we could use lcurses for 10.30, since
  4122. #the 10.10 curses problem is supposedly fixed in 10.30.
  4123. # +DA1.0 = Generate PA-RISC 1.0 code that runs on both 700 and 800 models.
  4124. # +DA1.1 = Generate PA-RISC 1.1 code that runs on both 700 and 800 models.
  4125. # Note that HP-UX 10.20 and upwards do not support PA-RISC 1.0 systems.
  4126. hpux100:
  4127.     @$(MAKE) hpux-header
  4128.     @case `uname -r` in \
  4129.        [AB].10.0*)  KFLAGS='-DHPUX1000 +DA1.0 $(KFLAGS)' ; \
  4130.                     LIBS='  -lcurses'  ;; \
  4131.        [AB].10.1*)  KFLAGS='-DHPUX1010 -D__HP_CURSES +DA1.0 $(KFLAGS)' ; \
  4132.                     LIBS='  -lHcurses' ;; \
  4133.        [AB].10.2*)  KFLAGS='-DHPUX1020 -D__HP_CURSES +DA1.1 $(KFLAGS)' ; \
  4134.                     LIBS='  -lHcurses' ;; \
  4135.        [AB].10.3*)  KFLAGS='-DHPUX1030 -D__HP_CURSES +DA1.1 $(KFLAGS)' ; \
  4136.                     LIBS='  -lHcurses' ;; \
  4137.        [AB].10.?*)  KFLAGS='-DHPUX10XX -D__HP_CURSES +DA1.1 $(KFLAGS)' ; \
  4138.                     LIBS='  -lHcurses' ;; \
  4139.        [AB].11.0*)  KFLAGS='-DHPUX1100 -D__HP_CURSES +DA1.1 $(KFLAGS)' ; \
  4140.                     LIBS='  -lHcurses' ;; \
  4141.     esac ; \
  4142.     $(MAKE) "SHELL=/usr/bin/sh" xermit KTARGET=$${KTARGET:-$(@)} \
  4143.     "CFLAGS = -DHPUX10 -DDIRENT -DSTERMIOX -DCK_DSYSINI -DHDBUUCP \
  4144.     -DCK_CURSES -DCK_WREFRESH -DTCPSOCKET -DCK_REDIR -DRENAME -DFNFLOAT \
  4145.     $$KFLAGS " \
  4146.     "LNKFLAGS=-s $(LNKFLAGS)" "LIBS = -lm $$LIBS $(KLIBS)"
  4147.  
  4148. # Trusted HP-UX 10
  4149. # echo KFLAGS=$(KFLGS) YTARGET YTARGET=$(YTARGET) $(XTARGET) ;
  4150. hpux100t:
  4151.     @case "$(KTARGET)" in \
  4152.        *o+) KENTRY=hpux100o+ ;; \
  4153.        *o)  KENTRY=hpux100o ;; \
  4154.        *)   KENTRY=hpux100 ;; \
  4155.     esac ; \
  4156.     MESSAGE1="and support for 'Trusted HP-UX'" \
  4157.     $(MAKE) $$KENTRY KTARGET=$${KTARGET:-$(@)} \
  4158.     "KFLAGS= $(KFLAGS) -DHPUX10_TRUSTED" "KLIBS=-lsec"
  4159.  
  4160. hpux100to:
  4161.     $(MAKE) hpux100t KTARGET=$${KTARGET:-$(@)}
  4162.  
  4163. hpux100to+:
  4164.     $(MAKE) hpux100t KTARGET=$${KTARGET:-$(@)}
  4165.  
  4166. #HP-9000 HP-UX 10.00 and higher with ANSI prototyping and optimization.
  4167. #PA-RISC only, no Motorola or other hardware is support in HP-UX 10.00++.
  4168. #The unbundled optional compiler is required.
  4169. #Your path should start with /opt/ansic/bin.
  4170. # -Wl,-Fw = Remove stack unwind table (info used by debuggers).
  4171. # +O2 makes a smaller executable (= -O = Level-1 and global optimization).
  4172. # +O3 adds interprocedural global optimization, makes a bigger executable.
  4173. # +Onolimit allows all modules to be optimized, no matter how complex.  But:
  4174. #  (a) +Onolimit does not seem to always be there in HP-UX 10.00, and:
  4175. #  (b) some modules might take hours on low-memory and/or slow systems.
  4176. # The following are PA-RISC-specific optimizations:
  4177. # +ESlit = Consolidate strings in read-only memory.
  4178. # +ESfsc = Inline millicode calls when comparing pointers.
  4179. # You might need to configure your kernel for a maxdsiz of 0x07000000 (112MB)
  4180. # or greater to prevent the optimizer from running out of space.
  4181. hpux100o:
  4182.     @MESSAGE1="with PA-RISC-specific optimizations $(MESSAGE1)" \
  4183.     $(MAKE) "SHELL=/usr/bin/sh" "PATH=/opt/ansic/bin:$$PATH" hpux100 \
  4184.     "KFLAGS = $(KFLAGS) \
  4185.     -Aa -D_HPUX_SOURCE -DCK_ANSIC -DUTIMEH \
  4186.     +O2 -Wl,-Fw +ESlit +ESsfc"
  4187.  
  4188. #The same like hpux100o but with "+Onolimit".
  4189. #On 700 series maxdsize >= 0xB000 (=176MB).  Takes a long time.
  4190. hpux100o+:
  4191.     @MESSAGE1="and +Onolimit $(MESSAGE1)" \
  4192.     $(MAKE) hpux100o \
  4193.     "KFLAGS = $(KFLAGS) +Onolimit"
  4194.  
  4195. hpux110:
  4196.     $(MAKE) hpux100 KTARGET=$${KTARGET:-$(@)}
  4197.  
  4198. hpux110o:
  4199.     $(MAKE) hpux100o KTARGET=$${KTARGET:-$(@)}
  4200.  
  4201. hpux110o+:
  4202.     $(MAKE) hpux100o+ KTARGET=$${KTARGET:-$(@)}
  4203.  
  4204. # Trusted HP-UX 11
  4205. hpux110t:
  4206.     $(MAKE) hpux100t KTARGET=$${KTARGET:-$(@)}
  4207.  
  4208. hpux110to:
  4209.     $(MAKE) hpux100t KTARGET=$${KTARGET:-$(@)}
  4210.  
  4211. hpux110to+:
  4212.     $(MAKE) hpux100t KTARGET=$${KTARGET:-$(@)}
  4213.  
  4214. # Synonyms for the HP-UX 11.xx entries just above:
  4215. hpux1100:
  4216.     $(MAKE) hpux100 KTARGET=$${KTARGET:-$(@)}
  4217.  
  4218. hpux1100o:
  4219.     $(MAKE) hpux100o KTARGET=$${KTARGET:-$(@)}
  4220.  
  4221. hpux1100o+:
  4222.     $(MAKE) hpux100o+ KTARGET=$${KTARGET:-$(@)}
  4223.  
  4224. # Trusted HP-UX 11
  4225. hpux1100t:
  4226.     $(MAKE) hpux100t KTARGET=$${KTARGET:-$(@)}
  4227.  
  4228. hpux1100to:
  4229.     $(MAKE) hpux100t KTARGET=$${KTARGET:-$(@)}
  4230.  
  4231. hpux1100to+:
  4232.     $(MAKE) hpux100t KTARGET=$${KTARGET:-$(@)}
  4233.  
  4234. #Regulus on CIE Systems 680/20
  4235. cie:
  4236.     @echo 'Making C-Kermit $(CKVER) for CIE Systems 680/20 Regulus...'
  4237.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4238.     "CFLAGS = -DATTSV -DNOFILEH -DCIE $(KFLAGS) -O" "LNKFLAGS ="
  4239.  
  4240. # Linux 1.2 or later with gcc, dynamic libraries, ncurses, TCP/IP.
  4241. #
  4242. # Most modern Linux systems use ncurses (with curses.h and an ncurses
  4243. # shared library).   Modern Linux systems also generally use FSSTND 1.2.
  4244. # So this entry should work for most people.  Read on if you have trouble.
  4245. #
  4246. # If your Linux system has curses rather than ncurses, use the linuxc
  4247. # entry, or if that doesn't work, linuxnc.
  4248. #
  4249. # The Kermit "large memory model" is used by default to configure big packet
  4250. # and script buffers, etc.  For small-memory or limited-resource systems,
  4251. # "make linux KFLAGS=-DNOBIGBUF".
  4252. #
  4253. # -DLINUXFSSTND (Linux File System Standard 1.2) gives UUCP lockfile /var/lock
  4254. # with string pid.  Remove this to get /usr/spool/uucp with int pid, used in
  4255. # very early Linux versions.  FSSTND 1.2 also says that the PID string in the
  4256. # UUCP lock file has leading spaces.  This is a change from FSSTND 1.0, which
  4257. # used leading zeros.  Add -DFSSTND10 to support FSSTND 1.0 instead of 1.2.
  4258. #
  4259. # Add -DOLINUXHISPEED (Old Linux High Speed support) to turn on an ugly kludge
  4260. # in Linux 1.0 and earlier to support speeds of 57600 and 115200.  Extremely
  4261. # old Linux systems (pre-0.99pl15) will not support this.  If OLINUXHISPEED is
  4262. # not defined, then only the standard POSIX termios methods of setting the port
  4263. # speed will be used, and in this case speeds can be as high as 460800 in most
  4264. # modern Linux versions.
  4265. #
  4266. # -DCK_POSIX_SIG (POSIX signal handling) is good for Linux releases back to at
  4267. # least 0.99.14; if it causes trouble for you, remove it from the CFLAGS.
  4268. #
  4269. # -pipe removes the need for temp files - remove it if it causes trouble.
  4270. #
  4271. # -funsigned-char makes all characters unsigned, as they should have been
  4272. #  in the first place.
  4273. #
  4274. # Add -DCK_DSYSINI if you want a shared system-wide init file.
  4275. #
  4276. # See ckubwr.txt about -DNOCOTFMC.  In fact, you really should read the
  4277. # entire Linux section of ckubwr.txt.
  4278. #
  4279. # The "linuxa" entry can be referenced directly on LIBC systems, but not
  4280. # GLIBC, where -lcrypt is required.  The "make linux" entry should normally
  4281. # be used for all builds on all Linux distributions unless you have special
  4282. # requirements, in which case keep reading.  CK_NEWTERM added after 7.0B04
  4283. # due to new complaints about ncurses changing buffering of tty.
  4284.  
  4285. linuxa:
  4286.     @echo 'Making C-Kermit $(CKVER) for Linux 1.2 or later...'
  4287.     @echo 'IMPORTANT: Read the comments in the linux section of the'
  4288.     @echo 'makefile if you have trouble.'
  4289.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  4290.     "CFLAGS = -O -DLINUX -pipe -funsigned-char -DFNFLOAT -DCK_POSIX_SIG \
  4291.     -DCK_NEWTERM -DTCPSOCKET -DLINUXFSSTND -DNOCOTFMC -DPOSIX $(KFLAGS)" \
  4292.     "LNKFLAGS = $(LNKFLAGS)" "LIBS = $(LIBS) -lm"
  4293.  
  4294. # Default linux entry.  This one sets LIBS according whether libcrypt.a
  4295. # is present (in which case we must search it: GLIBC) or not (in which case
  4296. # we must not search it: LIBC), and similarly for libresolv.a, in all four
  4297. # possible combinations.  Please read the comments above the linuxa entry just
  4298. # above.  This one also requires ncurses.  The NCURSES_CPP lets us find
  4299. # ncurses.h in case it is not in /usr/include, as some distributions are wont
  4300. # to put it in its own directory (the -I is ignored if ncurses.h is found in
  4301. # /usr/include).
  4302.  
  4303. NCURSES_CPP = -DCK_NCURSES -I/usr/include/ncurses
  4304.  
  4305. linux:
  4306.     @if test -f /usr/lib/libcrypt.a; then \
  4307.         if test -f /usr/lib/libresolv.a; then \
  4308.             $(MAKE) KTARGET=$${KTARGET:-$(@)} \
  4309.         "KFLAGS=$(NCURSES_CPP) -DHAVE_CRYPT_H $(KFLAGS)" \
  4310.             "LIBS=-lncurses -lresolv -lcrypt" linuxa ; \
  4311.         else \
  4312.             $(MAKE) KTARGET=$${KTARGET:-$(@)} \
  4313.         "KFLAGS=$(NCURSES_CPP) -DHAVE_CRYPT_H $(KFLAGS)" \
  4314.             "LIBS=-lncurses -lcrypt" linuxa ; \
  4315.         fi \
  4316.     else \
  4317.         if test -f /usr/lib/libresolv.a; then \
  4318.             $(MAKE) KTARGET=$${KTARGET:-$(@)} \
  4319.         "KFLAGS=$(NCURSES_CPP) $(KFLAGS)" \
  4320.             "LIBS=-lncurses -lresolv" linuxa ; \
  4321.         else \
  4322.             $(MAKE) KTARGET=$${KTARGET:-$(@)} \
  4323.         "KFLAGS=$(NCURSES_CPP) $(KFLAGS)" \
  4324.             "LIBS=-lncurses" linuxa ; \
  4325.         fi \
  4326.     fi
  4327.  
  4328. # As above but for Linux systems that have no <sys/select.h>.
  4329. linuxns:
  4330.     $(MAKE) linux KTARGET=$${KTARGET:-$(@)} KFLAGS=-DNO_SYS_SELECT_H
  4331.  
  4332. # As above, but forces use of curses rather than ncurses.
  4333. # Add -ltermcap to LIBS if necessary.
  4334. # Also watch out for libcurses and/or libtermcap having been moved.
  4335. # In that case you might need something like:
  4336. #  "LIBS = -L/usr/lib/curses -lcurses -L/usr/lib/termcap -ltermcap"
  4337.  
  4338. linuxc:
  4339.     @if test -f /usr/lib/libcrypt.a; then \
  4340.         if test -f /usr/lib/libresolv.a; then \
  4341.             $(MAKE) KTARGET=$${KTARGET:-$(@)} \
  4342.         "KFLAGS=-DCK_CURSES -DHAVE_CRYPT_H $(KFLAGS)" \
  4343.             "LIBS=-lcurses -lresolv -lcrypt" linuxa ; \
  4344.         else \
  4345.             $(MAKE) KTARGET=$${KTARGET:-$(@)} \
  4346.         "KFLAGS=-DCK_CURSES -DHAVE_CRYPT_H $(KFLAGS)" \
  4347.             "LIBS=-lcurses -lcrypt" linuxa ; \
  4348.         fi \
  4349.     else \
  4350.         if test -f /usr/lib/libresolv.a; then \
  4351.             $(MAKE) KTARGET=$${KTARGET:-$(@)} \
  4352.         "KFLAGS=-DCK_CURSES $(KFLAGS)" \
  4353.             "LIBS=-lcurses -lresolv" linuxa ; \
  4354.         else \
  4355.             $(MAKE) KTARGET=$${KTARGET:-$(@)} \
  4356.         "KFLAGS=-DCK_CURSES $(KFLAGS)" \
  4357.             "LIBS=-lcurses" linuxa ; \
  4358.         fi \
  4359.     fi
  4360.  
  4361. # As above but with with no curses support, for example because you installed
  4362. # the developer tools but did not install (n)curses.
  4363. linuxnc:
  4364.     @if test -f /usr/lib/libcrypt.a; then \
  4365.         if test -f /usr/lib/libresolv.a; then \
  4366.             $(MAKE) KTARGET=$${KTARGET:-$(@)} \
  4367.         "KFLAGS=-DNOTERMCAP -DHAVE_CRYPT_H $(KFLAGS)" \
  4368.             "LIBS=-lresolv -lcrypt" linuxa ; \
  4369.         else \
  4370.             $(MAKE) KTARGET=$${KTARGET:-$(@)} \
  4371.         "KFLAGS=-DNOTERMCAP -DHAVE_CRYPT_H $(KFLAGS)" \
  4372.             "LIBS=-lcrypt" linuxa ; \
  4373.         fi \
  4374.     else \
  4375.         if test -f /usr/lib/libresolv.a; then \
  4376.             $(MAKE) KTARGET=$${KTARGET:-$(@)} \
  4377.         "KFLAGS=-DNOTERMCAP $(KFLAGS)" \
  4378.             "LIBS=-lresolv" linuxa ; \
  4379.         else \
  4380.             $(MAKE) KTARGET=$${KTARGET:-$(@)} \
  4381.         "KFLAGS=-DNOTERMCAP $(KFLAGS)" \
  4382.             "LIBS=" linuxa ; \
  4383.         fi \
  4384.     fi
  4385.  
  4386. # A minimum-size version for Linux that does only scripting and
  4387. # serial communication -- no networks, no file transfer.
  4388. linuxso:
  4389.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  4390.     "CFLAGS = -O -DLINUX -pipe -funsigned-char -DPOSIX -DCK_POSIX_SIG \
  4391.     -DLINUXFSSTND -DNOCOTFMC -DNOXFER -DNODEBUG -DNOCSETS -DNOHELP \
  4392.     -DNONET -DMINIDIAL -DNOSCRIPT -DNOIKSD -DNOPUSH $(KFLAGS)" \
  4393.     "LNKFLAGS = $(LNKFLAGS)" "LIBS = "
  4394.  
  4395. #Mklinux DR3 has horrible bug in <utmpbits.h> - see ckufio.c.
  4396. mklinux:
  4397.     $(MAKE) KTARGET=$${KTARGET:-$(@)} "KFLAGS=-DUTMPBUG" \
  4398.     "LIBS=-lcrypt -lresolv" linuxa
  4399.  
  4400. #LinuxPPC 1999
  4401. linuxppc:
  4402.     @echo 'Making C-Kermit $(CKVER) for LinuxPPC 1999...'
  4403.     @if test -f /usr/lib/libcrypt.a; then \
  4404.         if test -f /usr/lib/libresolv.a; then \
  4405.             $(MAKE) KTARGET=$${KTARGET:-$(@)} \
  4406.         "KFLAGS=$(NCURSES_CPP) -DHAVE_CRYPT_H \
  4407.         -DLOCK_DIR=\\\\\\"\"/var/lock/modem\\\\\\"\" $(KFLAGS)" \
  4408.             "LIBS=-lncurses -lresolv -lcrypt" linuxa ; \
  4409.         else \
  4410.             $(MAKE) KTARGET=$${KTARGET:-$(@)} \
  4411.         "KFLAGS=$(NCURSES_CPP) -DHAVE_CRYPT_H \
  4412.         -DLOCK_DIR=\\\\\\"\"/var/lock/modem\\\\\\"\" $(KFLAGS)" \
  4413.             "LIBS=-lncurses -lcrypt" linuxa ; \
  4414.         fi \
  4415.     else \
  4416.         if test -f /usr/lib/libresolv.a; then \
  4417.             $(MAKE) KTARGET=$${KTARGET:-$(@)} \
  4418.         "KFLAGS=$(NCURSES_CPP) \
  4419.         -DLOCK_DIR=\\\\\\"\"/var/lock/modem\\\\\\"\" $(KFLAGS)" \
  4420.             "LIBS=-lncurses -lresolv" linuxa ; \
  4421.         else \
  4422.             $(MAKE) KTARGET=$${KTARGET:-$(@)} \
  4423.         "KFLAGS=$(NCURSES_CPP) \
  4424.         -DLOCK_DIR=\\\\\\"\"/var/lock/modem\\\\\\"\" $(KFLAGS)" \
  4425.             "LIBS=-lncurses" linuxa ; \
  4426.         fi \
  4427.     fi
  4428.  
  4429.  
  4430. # The remaining Linux entries are for special or customized builds.
  4431. # They have not been generalized like the two just above.  Ideally, we
  4432. # should allow for every combination of libc vs glibc, gcc vs egcs,
  4433. # curses vs ncurses, Kerberos IV vs Kerberos V vs SRP (in any combination),
  4434. # and so on -- volunteers welcome.
  4435.  
  4436. # If you get "Internal compiler error xxx, output pipe has been closed",
  4437. # try removing -pipe.
  4438.  
  4439. # Like "make linux" but built with egcs rather than gcc.
  4440. linuxegcs:
  4441.     @echo 'Making C-Kermit $(CKVER) for Linux 1.2 or later with egcs...'
  4442.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = egcs" "CC2 = egcs" \
  4443.     "CFLAGS = -O -DLINUX -pipe -funsigned-char \
  4444.     -DPOSIX -DCK_POSIX_SIG -DCK_NCURSES -DNOCOTFMC \
  4445.     -DTCPSOCKET -DLINUXFSSTND $(KFLAGS)" \
  4446.     "LNKFLAGS = $(LNKFLAGS)" "LIBS = -lncurses -lcrypt -lresolv"
  4447.  
  4448. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.05 (no K4 compatibility).
  4449. linux+krb5:
  4450.     @echo 'Making C-Kermit $(CKVER) for Linux on Intel with Kerberos...'
  4451.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  4452.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  4453.     -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 \
  4454.     -DCK_ENCRYPTION -DCK_DES -DCK_CURSES -DCK_POSIX_SIG \
  4455.     -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H -I/usr/local/include/ \
  4456.     -I/usr/local/include/krb5/ \
  4457.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  4458.     "LIBS = -L/usr/local/lib -lncurses -ltermcap -ldes425 -lkrb5 \
  4459.     -lcom_err -lk5crypto -lcrypt -lresolv"
  4460.  
  4461. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.05 with K4 compat.
  4462. #
  4463. # Requires the Kerberos 1.0.5 be compiled with KRB4 compatibility.
  4464. linux+krb5+krb4:
  4465.     @echo 'Making C-Kermit $(CKVER) for Linux on Intel with Kerberos...'
  4466.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  4467.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  4468.     -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 -DKRB4 -DKRB524 \
  4469.     -DCK_ENCRYPTION -DCK_DES -DCK_CURSES -DCK_POSIX_SIG \
  4470.     -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H -I/usr/local/include/ \
  4471.     -I/usr/local/include/krb5/ \
  4472.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  4473.     "LIBS = -L/usr/local/lib -lncurses -ltermcap -lkrb4 -ldes425 -lkrb5 \
  4474.     -lcom_err -lk5crypto -lcrypt -lresolv"
  4475.  
  4476. #Linux on Intel PC with SRP 1.4.5.
  4477. #
  4478. # remove the -DCK_DES, -DLIBDES and -ldes if you do not have Eric Young's
  4479. # libdes.a installed.  libsrp.a should be build with GNU MP (libgmp.a)
  4480. # instead of AT&T CryptoLib (libcrypt.a) due to naming conflicts with
  4481. # standard distribution Linux libraries.
  4482. #
  4483. linux+srp:
  4484.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SRP...'
  4485.     $(MAKE) srpmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  4486.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  4487.     -DCK_AUTHENTICATION -DCK_SRP \
  4488.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES \
  4489.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  4490.     -I/usr/src/srp-1.4.5/include/ \
  4491.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  4492.     "LIBS = -L/usr/src/srp-1.4.5/lib \
  4493.     -lncurses -ltermcap -lsrp -lgmp -ldes -lcrypt -lresolv"
  4494.  
  4495. linux+srp+no-des:
  4496.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SRP ...'
  4497.     $(MAKE) srpmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  4498.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  4499.     -DCK_AUTHENTICATION -DCK_SRP \
  4500.     -DCK_ENCRYPTION -DCK_CAST \
  4501.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  4502.     -I/usr/src/srp-1.4.5/include/ \
  4503.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  4504.     "LIBS = -L/usr/src/srp-1.4.5/lib \
  4505.     -lncurses -ltermcap -lsrp -lgmp -lcrypt -lresolv"
  4506.  
  4507. linux+srp-export:
  4508.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SRP...'
  4509.     $(MAKE) srpmit-export KTARGET=$${KTARGET:-$(@)} \
  4510.     "CC = gcc" "CC2 = gcc" \
  4511.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  4512.     -DCK_AUTHENTICATION -DCK_SRP -DFNFLOAT \
  4513.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  4514.     -I/usr/src/srp-1.4.5/include/ \
  4515.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  4516.     "LIBS = -L/usr/src/srp-1.4.5/lib \
  4517.     -lncurses -ltermcap -lsrp -lgmp -lcrypt -lm -lresolv"
  4518.  
  4519. linux+srp+pam:
  4520.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SRP...'
  4521.     $(MAKE) srpmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  4522.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  4523.     -DCK_AUTHENTICATION -DCK_SRP \
  4524.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES \
  4525.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  4526.     -DCK_PAM -DFNFLOAT \
  4527.     -I/usr/src/srp-1.4.5/include/ \
  4528.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  4529.     "LIBS = -L/usr/src/srp-1.4.5/lib \
  4530.     -lncurses -ltermcap -lsrp -lgmp -ldes -lcrypt -lpam -ldl -lm -lresolv"
  4531.  
  4532. #Linux configured for SSL/TLS
  4533. linux+openssl:
  4534.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SSL/TLS...'
  4535.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  4536.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  4537.     -DCK_AUTHENTICATION -DCK_SSL \
  4538.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  4539.     -DFNFLOAT \
  4540.     -I/usr/local/ssl/include/ \
  4541.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  4542.     "LIBS= -L/usr/local/ssl/lib/ \
  4543.     -lncurses -ltermcap -lssl -lsslcrypto -lm -lresolv"
  4544.  
  4545. #Linux configured for SSL/TLS and Shadow Passwords
  4546. linux+openssl+shadow:
  4547.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SSL/TLS...'
  4548.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  4549.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  4550.     -DCK_AUTHENTICATION -DCK_SSL \
  4551.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  4552.     -DFNFLOAT -DCK_SHADOW \
  4553.     -I/usr/local/ssl/include/ \
  4554.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  4555.     "LIBS= -L/usr/local/ssl/lib/ \
  4556.     -lncurses -ltermcap -lssl -lsslcrypto -lm -lresolv"
  4557.  
  4558. #Linux on Intel PC with SRP and SSL/TLS.
  4559. #
  4560. # libsrp.a should be build with GNU MP (libgmp.a)
  4561. # instead of AT&T CryptoLib (libcrypt.a) due to naming conflicts with
  4562. # standard distribution Linux libraries.
  4563. # Requires the Kerberos 1.0.5 be compiled with KRB4 compatibility.
  4564. linux+srp+openssl:
  4565.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SRP,SSL...'
  4566.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  4567.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  4568.     -DCK_AUTHENTICATION -DCK_SRP \
  4569.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL \
  4570.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  4571.     -I/usr/local/include/ \
  4572.     -I/usr/src/srp-1.4.5/include/ \
  4573.     -I/usr/local/ssl/include/ \
  4574.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  4575.     "LIBS = -L/usr/src/srp-1.4.5/lib -L/usr/local/lib \
  4576.     -L/usr/local/ssl/lib/ \
  4577.     -lncurses -ltermcap -lsrp -lgmp \
  4578.     -ldes -lssl -lsslcrypto \
  4579.     -lcrypt -lresolv"
  4580.  
  4581. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.05 and SRP.
  4582. #
  4583. # libsrp.a should be build with GNU MP (libgmp.a)
  4584. # instead of AT&T CryptoLib (libcrypt.a) due to naming conflicts with
  4585. # standard distribution Linux libraries.
  4586. # Requires the Kerberos 1.0.5 be compiled with KRB4 compatibility.
  4587. linux+krb5+krb4+srp:
  4588.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB54+SRP...'
  4589.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  4590.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  4591.     -DCK_AUTHENTICATION -DCK_SRP -DCK_KERBEROS  -DKRB5 -DKRB4 -DKRB524 \
  4592.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES \
  4593.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  4594.     -I/usr/local/include/ \
  4595.     -I/usr/local/include/krb5/ \
  4596.     -I/usr/src/srp-1.4.5/include/ \
  4597.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  4598.     "LIBS = -L/usr/src/srp-1.4.5/lib -L/usr/local/lib \
  4599.     -lncurses -ltermcap -lsrp -lgmp \
  4600.     -ldes -lkrb4 -ldes425 -lkrb5 -lcom_err -lk5crypto -lcrypt -lresolv"
  4601.  
  4602. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.05, SRP and SSL/TLS.
  4603. #
  4604. # libsrp.a should be build with GNU MP (libgmp.a)
  4605. # instead of AT&T CryptoLib (libcrypt.a) due to naming conflicts with
  4606. # standard distribution Linux libraries.
  4607. # Requires the Kerberos 1.0.5 be compiled with KRB4 compatibility.
  4608. linux+krb5+krb4+srp+openssl:
  4609.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SRP,SSL...'
  4610.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  4611.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  4612.     -DCK_AUTHENTICATION -DCK_SRP -DCK_KERBEROS  -DKRB5 -DKRB4 -DKRB524 \
  4613.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL \
  4614.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  4615.     -I/usr/local/include/ \
  4616.     -I/usr/local/include/krb5/ \
  4617.     -I/usr/src/srp-1.4.5/include/ \
  4618.     -I/usr/local/ssl/include/ \
  4619.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  4620.     "LIBS = -L/usr/src/srp-1.4.5/lib -L/usr/local/lib \
  4621.     -L/usr/local/ssl/lib/ \
  4622.     -lncurses -ltermcap -lsrp -lgmp \
  4623.     -ldes -lkrb4 -ldes425 -lssl -lsslcrypto \
  4624.     -lkrb5 -lcom_err -lk5crypto -lcrypt -lresolv"
  4625.  
  4626. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.05, SSL/TLS.
  4627. #
  4628. # libsrp.a should be build with GNU MP (libgmp.a)
  4629. # instead of AT&T CryptoLib (libcrypt.a) due to naming conflicts with
  4630. # standard distribution Linux libraries.
  4631. # Requires the Kerberos 1.0.5 be compiled with KRB4 compatibility.
  4632. linux+krb5+krb4+openssl:
  4633.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SSL...'
  4634.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  4635.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  4636.     -DCK_AUTHENTICATION -DCK_KERBEROS  -DKRB5 -DKRB4 -DKRB524 \
  4637.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL \
  4638.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  4639.     -I/usr/local/include/ \
  4640.     -I/usr/local/include/krb5/ \
  4641.     -I/usr/local/ssl/include/ \
  4642.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  4643.     "LIBS = -L/usr/local/lib \
  4644.     -L/usr/local/ssl/lib/ \
  4645.     -lncurses -ltermcap \
  4646.     -ldes -lkrb4 -ldes425 -lssl -lsslcrypto -lkrb5 -lcom_err \
  4647.     -lk5crypto -lcrypt -lresolv"
  4648.  
  4649. linux+krb5+krb4+srp-export:
  4650.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SRP...'
  4651.     $(MAKE) krbmit-export KTARGET=$${KTARGET:-$(@)} \
  4652.     "CC = gcc" "CC2 = gcc" \
  4653.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  4654.     -DCK_AUTHENTICATION -DCK_SRP -DCK_KERBEROS  -DKRB5 -DKRB4 -DKRB524 \
  4655.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  4656.     -I/usr/local/include/ \
  4657.     -I/usr/local/include/krb5/ \
  4658.     -I/usr/src/srp-1.4.5/include/ \
  4659.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  4660.     "LIBS = -L/usr/src/srp-1.4.5/lib -L/usr/local/lib \
  4661.     -lncurses -ltermcap -lsrp -lgmp \
  4662.     -lkrb4 -ldes425 -lkrb5 -lcom_err -lk5crypto -lcrypt -lresolv"
  4663.  
  4664. linux+krb5+krb4+srp+pam:
  4665.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SRP...'
  4666.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  4667.     "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  4668.     -DCK_AUTHENTICATION -DCK_SRP -DCK_KERBEROS  -DKRB5 -DKRB4 -DKRB524 \
  4669.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES \
  4670.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  4671.     -DCK_PAM \
  4672.     -I/usr/local/include/ \
  4673.     -I/usr/local/include/krb5/ \
  4674.     -I/usr/src/srp-1.4.5/include/ \
  4675.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  4676.     "LIBS = -L/usr/src/srp-1.4.5/lib -L/usr/local/lib \
  4677.     -lncurses -ltermcap -lsrp -lgmp -ldes -lkrb4 -ldes425 -lkrb5 \
  4678.     -lcom_err -lk5crypto -lcrypt -lpam -ldl -lresolv"
  4679.  
  4680. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.05, SRP and SSL/TLS.
  4681. # and PAM.
  4682. #
  4683. # libsrp.a should be build with GNU MP (libgmp.a)
  4684. # instead of AT&T CryptoLib (libcrypt.a) due to naming conflicts with
  4685. # standard distribution Linux libraries.
  4686. # Requires the Kerberos 1.0.5 be compiled with KRB4 compatibility.
  4687. linux+krb5+krb4+srp+openssl+pam-debug:
  4688.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SRP,SSL...'
  4689.     $(MAKE) krbmit-debug KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  4690.     "CFLAGS = -g -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  4691.     -DCK_AUTHENTICATION -DCK_SRP -DCK_KERBEROS  -DKRB5 -DKRB4 -DKRB524 \
  4692.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL -DCK_PAM \
  4693.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  4694.     -w -Dmalloc=dmalloc -Dfree=dfree -DMDEBUG -I/usr/local/include/ \
  4695.     -I/usr/local/include/krb5/ \
  4696.     -I/usr/src/srp-1.4.5/include/ \
  4697.     -I/usr/local/ssl/include/ \
  4698.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  4699.     "LIBS = -L/usr/src/srp-1.4.5/lib -L/usr/local/lib \
  4700.     -L/usr/local/ssl/lib/ \
  4701.     -lncurses -ltermcap -lsrp -lgmp \
  4702.     -ldes -lkrb4 -ldes425 -lssl -lsslcrypto \
  4703.     -lkrb5 -lcom_err -lk5crypto -lcrypt -lresolv -lpam -ldl"
  4704.  
  4705. #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.05, SRP and SSL/TLS.
  4706. # and PAM.
  4707. #
  4708. # libsrp.a should be build with GNU MP (libgmp.a)
  4709. # instead of AT&T CryptoLib (libcrypt.a) due to naming conflicts with
  4710. # standard distribution Linux libraries.
  4711. # Requires the Kerberos 1.0.5 be compiled with KRB4 compatibility.
  4712. linux+krb5+krb4+srp+openssl+pam:
  4713.     @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SRP,SSL...'
  4714.     $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  4715.     "CFLAGS = -g -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
  4716.     -DCK_AUTHENTICATION -DCK_SRP -DCK_KERBEROS  -DKRB5 -DKRB4 -DKRB524 \
  4717.     -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL -DCK_PAM \
  4718.     -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
  4719.     -I/usr/local/include/ \
  4720.     -I/usr/local/include/krb5/ \
  4721.     -I/usr/src/srp-1.4.5/include/ \
  4722.     -I/usr/local/ssl/include/ \
  4723.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
  4724.     "LIBS = -L/usr/src/srp-1.4.5/lib -L/usr/local/lib \
  4725.     -L/usr/local/ssl/lib/ \
  4726.     -lncurses -ltermcap -lsrp -lgmp \
  4727.     -ldes -lkrb4 -ldes425 -lssl -lsslcrypto \
  4728.     -lkrb5 -lcom_err -lk5crypto -lcrypt -lresolv -lpam -ldl"
  4729.  
  4730. linuxnotcp:
  4731.     $(MAKE) linux KTARGET=$${KTARGET:-$(@)} "KFLAGS = -DNONET $(KFLAGS)"
  4732.  
  4733. # "make linuxnotcp" with lcc (see http://www.cs.princeton.edu/software/lcc)
  4734. # lcc does not understand various gcc extensions:
  4735. #  "__inline__" -- can be eliminated by adding "-D__inline__="
  4736. #  "__asm__ and "long long" -- in header files, should be surrounded by
  4737. #                              "#ifndef(__STRICT_ANSI__)"/"#endif"
  4738. #  however, TCP requires some __asm__ functions, so cannot be compiled
  4739. linuxnotcp-lcc:
  4740.     @echo 'Making C-Kermit $(CKVER) for Linux with lcc ...'
  4741.     @echo 'Read comments in makefile for additional information.'
  4742.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC = lcc" "CC2 = lcc" \
  4743.     "CFLAGS = -DLINUX -DPOSIX -DCK_CURSES -DCK_POSIX_SIG \
  4744.     -UTCPSOCKET -DLINUXFSSTND $(KFLAGS)" \
  4745.     "LNKFLAGS = $(LNKFLAGS)" "LIBS = -lcurses -ltermcap"
  4746.  
  4747. # Linux 0.99.14 thru 1.0 with gcc, dynamic libraries, curses, TCP/IP.
  4748. # For Linux 1.2 or later, use "make linux" (above).
  4749. #
  4750. # -DLINUXFSSTND (Linux File System Standard) gives UUCP lockfil /var/lock with
  4751. # string pid.  Remove this and get /usr/spool/uucp with int pid, which was used
  4752. # in early Linux versions.
  4753. #
  4754. # If you get compiler errors regarding <linux/serial.h>, add -DNOHISPEED.
  4755. #
  4756. # -DCK_POSIX_SIG (POSIX signal handling) is good for Linux releases back to at
  4757. # least 0.99.14; if it causes trouble for you, just remove it.
  4758. #
  4759. # -DCK_CURSES: Here we link with the regular curses library.  But you should
  4760. # be using ncurses.  Internally, the ckuusx.c module includes <curses.h>, but
  4761. # this really should be <ncurses.h>.  Thus if you have the new curses
  4762. # material, you should either install it with the standard names, or else
  4763. # create symbolic links from the standard names to the new ones.  If you get
  4764. # compile-time errors complaining about data definitions in termcap.h, it
  4765. # means you have new kernel material mixed with older libc header files.  To
  4766. # fix, add "#include <termios.h>" to the <termcap.h> file.  Or if all this is
  4767. # too confusing, create a new makefile entry based on this one, but with
  4768. # -DCK_CURSES removed from CFLAGS and the entire LIBS= clause removed.
  4769. #
  4770. # But wait, there's more.  On most Linux systems, -ltermcap must be included
  4771. # in LIBS.  But on others, the linker complains that libtermcap can't be
  4772. # found.  In that case, try removing -ltermcap from LIBS=.
  4773. #
  4774. # But wait, there's more.  The format of the PID string in the UUCP lockfile
  4775. # changed between Linux FSSTND 1.0 and 1.2.  In the earlier standard, it had
  4776. # leading zeros; in the second, it has leading spaces.  By default this entry
  4777. # uses the newer standard.  To force the older one, add -DFSSTND10.
  4778. #
  4779. # "The nice thing about the Linux standard is there are so many to choose from"
  4780. #
  4781. # NOTE: Remove -DBIGBUFOK for small-memory or limited-resource systems.
  4782. linux10:
  4783.     @echo 'Making C-Kermit $(CKVER) for Linux 1.0 or earlier...'
  4784.     @echo 'IMPORTANT: Read the comments in the linux section of the'
  4785.     @echo 'makefile if you get compilation or link errors.'
  4786.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  4787.     "CFLAGS = -O -DPOSIX -DCK_CURSES -DCK_POSIX_SIG -DLINUX \
  4788.     -DTCPSOCKET -DLINUXFSSTND -DOLINUXHISPEED $(KFLAGS)" \
  4789.     "LNKFLAGS = $(LNKFLAGS)" "LIBS = -lcurses -ltermcap"
  4790.  
  4791. #This version was used for Linux prior to C-Kermit 6.0.192.
  4792. #Now the "Linux File System Standard" is considered standard, ditto TCP/IP.
  4793. linuxold:
  4794.     @echo 'Making C-Kermit $(CKVER) for Linux...'
  4795.     @echo 'For FSSTND-recommended UUCP lockfiles, use:'
  4796.     @echo '  make linux "KFLAGS=-DLINUXFSSTND".'
  4797.     @echo 'Read comments in makefile for additional options.'
  4798.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  4799.     "CFLAGS = -O -DLINUX -DPOSIX -DCK_CURSES -DCK_POSIX_SIG \
  4800.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" "LIBS = -lcurses -ltermcap"
  4801.  
  4802. # LynxOS 2.2 with GCC compiler, TCP/IP and fullscreen display.
  4803. # Probably also works with Lynx 2.1, and maybe even Lynx 2.0.
  4804. # -X means use termios serial drivers rather than BSD4.3-style sgtty drivers.
  4805. # If you have trouble with this, try "make bsd KFLAGS=-DNOFDZERO".
  4806. lynx:
  4807.     @echo 'Making C-Kermit $(CKVER) for LynxOS 2.2 with TCP/IP'
  4808.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  4809.     "CFLAGS= -O -DPOSIX -DDIRENT -DSETREUID -DCK_CURSES -DTCPSOCKET \
  4810.     -DCK_ANSIC -DLYNXOS" "LNKFLAGS = -X" "LIBS = -lcurses -lbsd"
  4811.  
  4812. lynx22:
  4813.     $(MAKE) lynx KTARGET=$${KTARGET:-$(@)} "KFLAGS=$(KFLAGS)"
  4814.  
  4815. # LynxOS 2.1 with GCC compiler 1.40 and TCP/IP.
  4816. lynx21:
  4817.     @echo 'Making C-Kermit $(CKVER) for LynxOS 2.1 with TCP/IP'
  4818.     $(MAKE) kermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  4819.     "CFLAGS= -O -DSETREUID -DTCPSOCKET -DCK_ANSIC -DBSD4 -DLYNXOS" \
  4820.     "LIBS = -lbsd"
  4821.  
  4822. #SCO Xenix 2.2.1 for IBM PC, XT, PS2/30, or other 8088 or 8086 machine
  4823. #Should this not work, try some of the tricks from sco286.
  4824. #NOTE: -DRENAME is omitted for early SCO Xenix releases because it didn't
  4825. #exist, or its semantics were different from the later POSIX-compliant
  4826. #version of rename().
  4827. sco86:
  4828.     @echo 'Making C-Kermit $(CKVER) for SCO Xenix/86...'
  4829.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4830.     "CFLAGS= -DXENIX -DNOFILEH -DNOIKSD -DNOUNICODE \
  4831.     $(KFLAGS) -Dunix -F 3000 -i -M0me" \
  4832.     "LNKFLAGS = -F 3000 -i -s -M0me" "LIBS = -lx"
  4833.  
  4834. #SCO Xenix/286 2.2.1, e.g. for IBM PC/AT, PS/2 Model 50, etc.
  4835. #Reportedly, this "make" can fail simply because of the size of this
  4836. #makefile.  If that happens, use "makeL", or edit out some of the
  4837. #other entries.  No debugging or character-set translation.
  4838. sco286:
  4839.     @echo 'Making C-Kermit $(CKVER) for SCO Xenix/286...'
  4840.     @echo 'If make fails, try using makeL.'
  4841.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4842.     "CFLAGS= -xenix -s -O -LARGE -DXENIX -DNOFILEH -Dunix -DRDCHK -DNAP \
  4843.     -DNOIKSD -DNODEBUG -DNOTLOG -DNOCSETS \
  4844.     $(KFLAGS) -F 3000 -i -M2let16" \
  4845.     "LIBS = -lx" "LNKFLAGS = -xenix -s -O -LARGE -F 3000 -i -M2let16"
  4846.  
  4847. #SCO Xenix/286 2.2.1, e.g. for IBM PC/AT, PS/2 Model 50, etc.
  4848. #As above, but with HDBUUCP (This one might need fixing -- see sco286).
  4849. sco286hdb:
  4850.     @echo 'Making C-Kermit $(CKVER) for SCO Xenix/286 with HDB UUCP...'
  4851.     @echo 'If make fails, try using makeL.'
  4852.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4853.     "CFLAGS= -s -O -LARGE -DXENIX -DNOFILEH -Dunix -DRDCHK -DNAP \
  4854.     -DHDBUUCP -DNOIKSD -DNOUNICODE $(KFLAGS) -F 3000 -i -M2let32" \
  4855.     "LIBS = -lx" "LNKFLAGS = -s -O -LARGE -F 3000 -i -M2let32"
  4856.  
  4857. #SCO Xenix/386 2.2.2 and 2.2.3
  4858. sco386:
  4859.     @echo 'Making C-Kermit $(CKVER) for SCO Xenix/386 2.2.2...'
  4860.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4861.     "CFLAGS= -DXENIX -DNOFILEH -DNOIKSD -DNOREDIRECT \
  4862.     -Dunix -DRDCHK -DNAP -DNOUNICODE $(KFLAGS) -Otcl -M3e" \
  4863.     "LNKFLAGS = -s" "LIBS = -lx"
  4864.  
  4865. #SCO XENIX/386 2.2.3 with Excelan TCP/IP + curses.
  4866. # NOTE: This one might need some work in C-Kermit 6.0.
  4867. # You might need to include /usr/include/sys/types.h
  4868. # containing "typedef char *caddr_t;".  Then at least it compiles.
  4869. sco386netc:
  4870.     @echo 'Making C-Kermit $(CKVER) for SCO Xenix/386 2.2.3 + Excelan TCP'
  4871.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4872.     "CFLAGS= -I/usr/include/exos -DXENIX -DCK_CURSES -DNOUNICODE \
  4873.     -Dunix -DRDCHK -DNAP -DTCPSOCKET -DEXCELAN -DNOJC -DNOMKDIR -DNOFILEH \
  4874.     -DNOREDIRECT -DNOIKSD -DNO_DNS_SRV $(KFLAGS) -Otcl -M3e" \
  4875.     "LNKFLAGS = -s" "LIBS = -lc -lx -lsocket -lcurses -ltermcap"
  4876.  
  4877. #SCO XENIX/386 2.3.3 with gcc 1.37 or later...
  4878. sco386gcc:
  4879.     @echo 'Making C-Kermit $(CKVER) for SCO Xenix/386 2.3.3, gcc...'
  4880.     @echo 'Add -D_NO_PROTOTYPE if you have trouble with Xenix header files'
  4881.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  4882.     "CFLAGS= -O -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP \
  4883.     -DNOJC -DNODEBUG -DNOUNICODE $(KFLAGS) \
  4884.     -traditional -fpcc-struct-return -fstrength-reduce \
  4885.     -DM_BITFIELDS -DM_COFF -DM_I386 -DM_I86 -DM_I86SM \
  4886.     -DM_INTERNAT -DM_SDATA -DM_STEXT -DM_SYS3 -DM_SYS5 \
  4887.     -DM_SYSIII -DM_SYSV -DM_WORDSWAP -DM_XENIX -DNOIKSD -DNOREDIRECT \
  4888.     -DPWID_T=int " "LNKFLAGS = -s" "LIBS = -lx"
  4889.  
  4890. #As above, but with curses...
  4891. sco386gccc:
  4892.     @echo 'Making C-Kermit $(CKVER) for SCO Xenix/386 2.3.3, gcc...'
  4893.     @echo 'Add -D_NO_PROTOTYPE if you have trouble with Xenix header files'
  4894.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
  4895.     "CFLAGS= -O -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP \
  4896.     -DNOJC -DNODEBUG -DCK_CURSES -DNOUNICODE $(KFLAGS) \
  4897.     -traditional -fpcc-struct-return -fstrength-reduce \
  4898.     -DM_BITFIELDS -DM_COFF -DM_I386 -DM_I86 -DM_I86SM -DNOREDIRECT \
  4899.     -DM_INTERNAT -DM_SDATA -DM_STEXT -DM_SYS3 -DM_SYS5 \
  4900.     -DM_SYSIII -DM_SYSV -DM_WORDSWAP -DM_XENIX -DNOIKSD \
  4901.     -DPWID_T=int " "LNKFLAGS = -s" "LIBS = -lx -lcurses -ltermlib"
  4902.  
  4903. #SCO UNIX (and ODT) entries...
  4904. #
  4905. #NOTE: All SCO UNIX entry LIBS should have "-lc_s -lc -lx" IN THAT ORDER (if
  4906. #shared C library is desired), or else "-lc -lx" IN THAT ORDER.  Use shared C
  4907. #libraries to save memory, but then don't expect to run the resulting binary
  4908. #on a different machine.  When using -lc_s, you must also use -lc, because the
  4909. #shared C library does not contain all of libc.a.  And in all cases, -lc must
  4910. #ALWAYS precede -lx.
  4911. #
  4912. #ANOTHER NOTE: -DRENAME is included in all SCO UNIX entries.  Remove it if it
  4913. #causes trouble.  No harm is done by removing it (see ckuins.txt).
  4914. #
  4915. #AND ANOTHER: In theory, it should be possible to run SCO UNIX binaries on
  4916. #SCO Xenix 2.3 and later.  In practice, this might not work because of the
  4917. #libraries, etc.  Also, don't add the -link -z switch (which is supposed to
  4918. #root out references to null pointers) because it makes UNIX binaries core
  4919. #dump when they are run under Xenix.
  4920.  
  4921. #NOTE: -Otcl removed and replaced by -O, since -Otcl produced incorrect code.
  4922. #SCO UNIX/386 3.2.0, 3.2.1, and SCO Xenix 2.3.x
  4923. sco3r2:
  4924.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2.0 or 3.2.1 ...'
  4925.     @echo 'Warning: If make blows up, edit the makefile to join'
  4926.     @echo 'the following three continued lines into one line.'
  4927.     @echo 'Also, remove -DRENAME if _rename unresolved at link time.'
  4928.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4929.     "CFLAGS= -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP \
  4930.     -DRENAME -DNOIKSD -DNOJC $(KFLAGS) -O" \
  4931.     "LNKFLAGS = -s" "LIBS = -lc -lx"
  4932.  
  4933. #SCO UNIX/386 3.2.0 and SCO Xenix 2.3.x with Excelan TCP/IP support.
  4934. #In case of compilation or runtime problems, try adding
  4935. #"-DUID_T=int -DGID_T=int" to the CFLAGS.  If that doesn't work, try
  4936. #"-DUID_T=uid_t -DGID_T=gid_t".
  4937. sco3r2net:
  4938.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 / Excelan...'
  4939.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4940.     "CFLAGS= -I/usr/include/exos -DXENIX -DSVR3 -DNOFILEH \
  4941.     -DHDBUUCP -DRDCHK -DNAP -DRENAME -DTCPSOCKET -DEXCELAN -DNOJC \
  4942.     -DNOIKSD -DNOREDIRECT $(KFLAGS) -O" \
  4943.     "LNKFLAGS = -s" "LIBS = -lc -lx -lsocket"
  4944.  
  4945. #SCO UNIX/386 3.2.0 and SCO Xenix 2.3.x with Excelan TCP/IP support.
  4946. #As above, with curses added.
  4947. sco3r2netc:
  4948.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 / Excelan / curses...'
  4949.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4950.     "CFLAGS= -I/usr/include/exos -DXENIX -DSVR3 -DNOFILEH \
  4951.     -DHDBUUCP -DRDCHK -DNAP -DTCPSOCKET -DEXCELAN -DNOJC $(KFLAGS) \
  4952.     -DRENAME -DCK_CURSES -DNOREDIRECT -DNOIKSD -O" "LNKFLAGS = -s" \
  4953.     "LIBS = -lc -lx -lsocket -lcurses -ltermcap"
  4954.  
  4955. #SCO UNIX 3.2.x or SCO Xenix 2.3.x with Racal InterLan TCP/IP support
  4956. # Extra compile flags for other version of Racal InterLan TCP/IP:
  4957. # Xenix286/NP621-286, use -Ml -DPARAMH -DINTERLAN -Di286 -DSYSV
  4958. # Xenix386/NP621-386, use -DPARAMH -DINTERLAN -Di386 -DSYSV
  4959. # ISC386ix/NP622I, use -DSYSV -Di386
  4960. # SCO Unix3.2/NP622S, use -DSYSV -Di386 -DSCO_UNIX
  4961. # AT&T SVR3.2/NP622A, use -DSYSV -Di386 -DATT
  4962. sco3r2netri:
  4963.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 / Racal InterLan...'
  4964.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4965.     "CFLAGS= -I/usr/include/interlan -DXENIX -DNOFILEH -DHDBUUCP \
  4966.     -DSVR3 -DRDCHK -DNAP -DTCPSOCKET -DPARAMH -DINTERLAN -Di386 -DSYSV \
  4967.     -DRENAME -DNOREDIRECT -DNOIKSD -DNOJC $(KFLAGS) -Otcl -M3e" \
  4968.     "LNKFLAGS = -s" "LIBS = -lc -lx -ltcp"
  4969.  
  4970. # SCO XENIX/386 2.3.3 SysV with SCO TCP/IP
  4971. # System V STREAMS TCP developed by Lachman Associates Inc and
  4972. # Convergent Technologies.
  4973. # -DRENAME removed since some reports indicate it is not supported
  4974. # (whereas others say it is.)
  4975. sco3r2lai:
  4976.     @echo 'Making C-Kermit $(CKVER) for SCO XENIX/386 2.3.3 + TCP/IP...'
  4977.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4978.     "CFLAGS= -DLAI_TCP -Di386 -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK \
  4979.     -DNAP -DTCPSOCKET -DPWID_T=int -DNOREDIRECT -DNOIKSD $(KFLAGS) \
  4980.     -Otcl -i -M3e" \
  4981.     "LNKFLAGS = -i -s" "LIBS = -lc -lx -lsocket"
  4982.  
  4983. sco3r2laic:
  4984.     @echo 'Making C-Kermit $(CKVER) for SCO XENIX/386 2.3.3 + TCP/IP...'
  4985.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  4986.     "CFLAGS= -DLAI_TCP -Di386 -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK \
  4987.     -DNAP -DTCPSOCKET -DCK_ANSIC -DCK_CURSES -DM_TERMINFO \
  4988.     -DPWID_T=int -DNOREDIRECT -DNOIKSD $(KFLAGS) -Otcl -i -M3e" \
  4989.     "LNKFLAGS = -i -s" "LIBS = -ltinfo -lc -lx -lsocket"
  4990.  
  4991. #SCO UNIX/386 3.2v2 (POSIX job control), shared libraries.
  4992. sco3r22:
  4993.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v2 ...'
  4994.     make wermit KTARGET=$${KTARGET:-$(@)} \
  4995.     "CFLAGS= -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK \
  4996.     -DNAP -DRENAME -DPID_T=pid_t -DPWID_T=int -DDIRENT -DNOIKSD \
  4997.     -DNOREDIRECT $(KFLAGS) -O" \
  4998.     "LNKFLAGS = -s" "LIBS = -lc_s -lc -lx"
  4999.  
  5000. #SCO UNIX/386 3.2v2, POSIX job control, fullscreen file transfer display,
  5001. #dynamic memory allocation, shared C library
  5002. sco3r22c:
  5003.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v2 ...'
  5004.     @echo 'Warning: If make blows up, edit the makefile to join'
  5005.     @echo 'the following four continued lines into one line.'
  5006.     make wermit KTARGET=$${KTARGET:-$(@)} \
  5007.     "CFLAGS= -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP \
  5008.     -DCK_CURSES -DDIRENT -DRENAME -DNOREDIRECT -DNOIKSD \
  5009.     -DPID_T=pid_t -DPWID_T=int $(KFLAGS) -O" \
  5010.     "LNKFLAGS = -s" "LIBS = -lcurses -lc_s -lc -lx"
  5011.  
  5012. #SCO UNIX/386 3.2v2 with gcc 1.40 or later (POSIX job control)
  5013. sco3r22gcc:
  5014.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v2, gcc'
  5015.     @echo 'Warning: If make blows up, edit the makefile to join'
  5016.     @echo 'the following seven continued lines into one line.'
  5017.     make wermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" \
  5018.     "CFLAGS= -O -DPOSIX -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP \
  5019.     -DRENAME -traditional -fpcc-struct-return -fstrength-reduce \
  5020.     -DM_BITFIELDS -DM_COFF -DM_I386 -DM_I86 -DM_I86SM \
  5021.     -DM_INTERNAT -DM_SDATA -DM_STEXT -DM_SYS3 -DM_SYS5 \
  5022.     -DM_SYSIII -DM_SYSV -DM_UNIX -DM_WORDSWAP -DM_XENIX -Dunix \
  5023.     -DPID_T=pid_t -DPWID_T=int -DNOREDIRECT -DNOIKSD $(KFLAGS) " \
  5024.     "LNKFLAGS = -s" "LIBS = -lc_s -lc -lx"
  5025.  
  5026. #SCO UNIX/386 3.2v2 (ODT 1.1) (POSIX job control) with SCO TCP/IP, shared libs
  5027. #Requires SCO TCP/IP or ODT development system for telnet.h, etc.
  5028. sco3r22net:
  5029.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2.2 + TCP/IP...'
  5030.     @echo 'Warning: If make blows up, edit the makefile to join'
  5031.     @echo 'the following three continued lines into one line.'
  5032.     make xermit KTARGET=$${KTARGET:-$(@)} \
  5033.     "CFLAGS= -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP -DTCPSOCKET \
  5034.     -DRENAME -DPID_T=pid_t -DPWID_T=int -DDIRENT -DNOREDIRECT -DNOIKSD \
  5035.     $(KFLAGS) -O" "LNKFLAGS = -s" "LIBS = -lsocket -lc_s -lc -lx"
  5036.  
  5037. #As above, but with curses for fullscreen file transfer display.
  5038. #Requires SCO TCP/IP or ODT development system for telnet.h, etc.
  5039. sco3r22netc:
  5040.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v2 + TCP/IP...'
  5041.     @echo 'Warning: If make blows up, edit the makefile to join'
  5042.     @echo 'the following three continued lines into one line.'
  5043.     make xermit KTARGET=$${KTARGET:-$(@)} "CFLAGS= \
  5044.     -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP -DTCPSOCKET -DRENAME \
  5045.     -DCK_CURSES -DDIRENT -DNOIKSD -DNOREDIRECT \
  5046.     -DPID_T=pid_t -DPWID_T=int -O $(KFLAGS)" \
  5047.     "LNKFLAGS = -s" "LIBS = -lcurses -lsocket -lc_s -lc -lx"
  5048.  
  5049. #SCO XENIX 2.3.4, no curses, no TCP/IP, no IKSD.
  5050. #This one built and tested in C-Kermit 7.0.
  5051. #lcfp is C library floating-point support.
  5052. #Use -M3 to generate 32-bit i386 code instead of 16-bit segmented i286 code.
  5053. #Use -Me to enable MS nonstandard keywords in system headers.
  5054. #Use -W2 or W3 to increase the warning level.
  5055. sco234:
  5056.     @echo 'Making C-Kermit $(CKVER) for SCO XENIX 2.3.4...'
  5057.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  5058.     "CFLAGS= -DSCO32 -DXENIX -DNOFILEH -DHDBUUCP -DRDCHK \
  5059.     -DNAP -DNOJC -DNOCOTFMC -DNOIKSD -DNOREDIRECT -DNOTNCODE -DNOGFTIMER \
  5060.     -DNOTIMEVAL -DNOTIMEZONE -DNOSYMLINK -DSCO234 -DDCLGETCWD $(KFLAGS) \
  5061.     -Otcl" "LNKFLAGS = -s" "LIBS = -lcfp -lc -lx"
  5062.  
  5063. #SCO XENIX 2.3.4, no TCP/IP, no IKSD, but with curses.
  5064. # Built and tested in C-Kermit 7.0.
  5065. # Note: XENIX 2.3.4 does not have newterm() so no point in adding -DCK_NEWTERM.
  5066. sco234c:
  5067.     @echo 'Making C-Kermit $(CKVER) for SCO XENIX 2.3.4 + curses...'
  5068.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  5069.     "CFLAGS= -DSCO32 -DXENIX -DNOFILEH -DHDBUUCP -DRDCHK \
  5070.     -DNAP -DNOJC -DNOCOTFMC -DNOIKSD -DNOREDIRECT -DNOTNCODE -DNOGFTIMER \
  5071.     -DNOTIMEVAL -DNOTIMEZONE -DNOSYMLINK -DM_TERMCAP -DCK_CURSES -DSCO234 \
  5072.     -DDCLGETCWD $(KFLAGS) -Otcl" \
  5073.     "LNKFLAGS = -s" "LIBS = -lcfp -lc -lx -lcurses -ltermlib"
  5074.  
  5075. #SCO XENIX 2.3.4 with SCO TCP/IP and curses, no IKSD.
  5076. # Built and tested in C-Kermit 7.0.  TCP/IP works and curses works.
  5077. # Previous versions of this target included -lmalloc, but this caused "error:
  5078. # " _calloc : symbol defined more than once" at link time so I removed it.
  5079. # Results are likely to vary depending on exactly which version of the SDK
  5080. # and TCP/IP SDK you have.
  5081. sco234netc:
  5082.     @echo 'Making C-Kermit $(CKVER) for SCO XENIX 2.3.4 + TCP + curses...'
  5083.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  5084.     "CFLAGS= -DSCO32 -DXENIX -DNOFILEH -DHDBUUCP -DRDCHK \
  5085.     -DNAP -DNOJC -DNOCOTFMC -DNOIKSD -DNOREDIRECT -DNOTNCODE -DNOGFTIMER \
  5086.     -DNOTIMEVAL -DNOTIMEZONE -DNOSYMLINK -DM_TERMCAP -DCK_CURSES -DSCO234 \
  5087.     -DDCLGETCWD -DTCPSOCKET -DNO_DNS_SRV $(KFLAGS) -Otcl" \
  5088.     "LNKFLAGS = -s" \
  5089.     "LIBS = -lcurses -ltermlib -lsocket -lcfp -lc -lx"
  5090.  
  5091. # SCO 3.2v4.x targets...
  5092.  
  5093. #  NOTE: Add -DDCLPOPEN and/or -DDCLFDOPEN to anySCO 3.2v4.x non-gcc entries
  5094. #  that complain about fdopen() or popen() at compile time.  They compile OK
  5095. #  without these flags as of July 1999.  However, the gcc entries seem to
  5096. #  need them, at least for gcc 2.7.2.2.
  5097.  
  5098. #  NOTE 2: To enable IKSD support, add:
  5099. #  -DCK_LOGIN -DNOGETUSERSHELL -DNOINITGROUPS
  5100. #  to CFLAGS (not tested).
  5101.  
  5102. #SCO UNIX/386 3.2v4 (POSIX job control), curses, ANSI C compilation,
  5103. #<dirent.h> (EAFS) file system.  Remove -lmalloc if it causes trouble.  It was
  5104. #put there to avoid core dumps caused by regular libc.a malloc.  Add -J to make
  5105. #all chars unsigned.  This version uses select() for CONNECT and also has
  5106. #high-precision timers and so might not work on non-TCP systems, in which case
  5107. #sco32v4ns should be used instead.
  5108. # If you get _ftime redefinition_ complaint, try adding -DODT30 to CFLAGS.
  5109. sco32v4:
  5110.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v4...'
  5111.     make xermit KTARGET=$${KTARGET:-$(@)} \
  5112.     "CFLAGS= -DCK_SCO32V4 -DNOFILEH -DHDBUUCP -DCK_CURSES -DM_TERMINFO \
  5113.     -DNOANSI -DSELECT -DNOIKSD -DDCLGETCWD -NOLSTAT \
  5114.     -DNOLINKBITS -DDCLGETCWD $(KFLAGS) -O" \
  5115.     "LNKFLAGS = -s" "LIBS = -lcurses -lmalloc -lsocket -lc_s -lc -lx"
  5116.  
  5117. # As above, but with no dependence on sockets library or select().
  5118. sco32v4ns:
  5119.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v4...'
  5120.     @echo 'No select() and no sockets library.'
  5121.     make wermit KTARGET=$${KTARGET:-$(@)} \
  5122.     "CFLAGS= -DCK_SCO32V4 -DNOFILEH -DHDBUUCP -DCK_CURSES -DM_TERMINFO \
  5123.     -DNOANSI -DNOIKSD -DNOGFTIMER -DCK_POLL -DNAP -DDCLGETCWD -DNOLSTAT \
  5124.     -DNOLINKBITS -DDCLGETCWD -O $(KFLAGS)" \
  5125.     "LNKFLAGS = -s" "LIBS = -lcurses -lmalloc -lc_s -lc -lx"
  5126.  
  5127. #SCO UNIX/386 3.2v4 (POSIX job control), TCP/IP, curses, ANSI C compilation,
  5128. #<dirent.h> (EAFS) file system.  With DIRENT, -lc must come before -lx.
  5129. #Reportedly it's OK to add -DCK_REDIR and -DCK_WREFRESH, and to remove -lc_s.
  5130. #Requires SCO TCP/IP development system or ODT for telnet.h, etc.
  5131. #See sco32v4 above for additional comments.
  5132. #NOTE: No more room for -Dxxx -- 25 seems to be the limit.  Move some to
  5133. #ckcdeb.h or somewhere...
  5134. sco32v4net:
  5135.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v4...'
  5136.     @echo 'If you get _ftime redefinition_ complaint,'
  5137.     @echo 'use make sco-odt30.'
  5138.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  5139.     "CFLAGS= -DNOFILEH -DHDBUUCP -DTCPSOCKET -DCK_ANSIC -DCK_CURSES \
  5140.     -DNAP -DCK_WREFRESH -DNOLINKBITS -D_IBCS2 -DSELECT -DNOLSTAT \
  5141.     -DDCLGETCWD -DCK_SCO32V4 -DNOIKSD -O \
  5142.     $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS) -s" \
  5143.     "LIBS = $(LIBS) -lcurses -lsocket -lmalloc -lsocket -lc_s -lc -lx"
  5144.  
  5145. #SCO UNIX/386 3.2v4 with gcc 1.40 or later, POSIX job control.
  5146. #Also see comments in sco32r4 entry.
  5147. sco32v4gcc:
  5148.     make xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" \
  5149.     "CFLAGS= -O -DNOFILEH -DHDBUUCP -DNOANSI -DCK_CURSES -DM_TERMINFO \
  5150.     -traditional -fpcc-struct-return -fstrength-reduce -funsigned-char \
  5151.     -D_KR -D_NO_PROTOTYPE -D_SVID -DNOIKSD -DCK_SCO32V4 -DNOLINKBITS \
  5152.     -DM_BITFIELDS -DM_COFF -DM_I386 -DM_I86 -DM_I86SM -DSELECT -DNOLSTAT \
  5153.     -DM_INTERNAT -DM_SDATA -DM_STEXT -DM_SYS3 -DM_SYS5 -DDCLGETCWD \
  5154.     -DM_SYSIII -DM_SYSV -DM_UNIX -DM_WORDSWAP -DM_XENIX -Dunix \
  5155.     -DDCLPOPEN -DDCLFDOPEN $(KFLAGS) " \
  5156.     "LNKFLAGS = -s" "LIBS = -lcurses -lsocket -lc_s -lc -lx"
  5157.  
  5158. #SCO UNIX/386 3.2v4 (POSIX job control), TCP/IP, curses, ANSI C compilation,
  5159. #Requires SCO TCP/IP or ODT development system for telnet.h, etc.
  5160. #<dirent.h> (EAFS) file system.  With DIRENT, -lc must come before -lx.
  5161. #gcc 1.40 or later.  Also see comments in sco32r4 entry.
  5162. sco32v4netgcc:
  5163.     make xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2=gcc" \
  5164.     "CFLAGS= -O2 -DNOFILEH -DHDBUUCP -DSELECT -DNOLSTAT \
  5165.     -DNOANSI -DTCPSOCKET -DCK_CURSES -DM_TERMINFO \
  5166.     -D_KR -D_NO_PROTOTYPE -D_SVID -DNOIKSD -DCK_SCO32V4 -DNOLINKBITS \
  5167.     -DM_BITFIELDS -DM_COFF -DM_I386 -DM_I86 -DM_I86SM -DDCLGETCWD \
  5168.     -DM_INTERNAT -DM_SDATA -DM_STEXT -DM_SYS3 -DM_SYS5 \
  5169.     -DM_SYSIII -DM_SYSV -DM_UNIX -DM_WORDSWAP -DM_XENIX -Dunix \
  5170.     -DDCLPOPEN -DDCLFDOPEN $(KFLAGS)" \
  5171.     "LNKFLAGS = -s" "LIBS = -lcurses -lsocket -lc_s -lc -lx"
  5172.  
  5173. #As above but with bgcc BOUNDS CHECKING (for developers only).  -lcheck has
  5174. #bounds-checking replacements for malloc, memcpy, bcopy, etc, so must come
  5175. #before -lsocket and -lc.
  5176. sco32v4netbgcc:
  5177.     make xermit KTARGET=$${KTARGET:-$(@)} \
  5178.     "CC = bgcc -pipe -m386" "CC2=bgcc -pipe -m386" \
  5179.     "CFLAGS= -O1 -g -DNOFILEH -DHDBUUCP -DSELECT \
  5180.     -DNOANSI -DTCPSOCKET -DCK_CURSES -DM_TERMINFO \
  5181.     -D_KR -D_NO_PROTOTYPE -D_SVID -DNOIKSD -DCK_SCO32V4 -DNOLSTAT \
  5182.     -DM_BITFIELDS -DM_COFF -DM_I386 -DM_I86 -DM_I86SM -DNOLINKBITS \
  5183.     -DM_INTERNAT -DM_SDATA -DM_STEXT -DM_SYS3 -DM_SYS5 -DDCLGETCWD \
  5184.     -DM_SYSIII -DM_SYSV -DM_UNIX -DM_WORDSWAP -DM_XENIX -Dunix \
  5185.     -DDCLPOPEN -DDCLFDOPEN $(KFLAGS) " \
  5186.     "LNKFLAGS = -g" "LIBS = -lcurses -lcheck -lsocket -lx"
  5187.  
  5188. sco32v4netnd:
  5189.     @echo sco32v4net with no debug
  5190.     $(MAKE) "MAKE=$(MAKE)" sco32v4net KTARGET=$${KTARGET:-$(@)} \
  5191.     "KFLAGS=$(KFLAGS) -DNODEBUG -DNOTLOG" "LIBS=$(LIBS)"
  5192.  
  5193. sco3r2netnd:
  5194.     @echo sco32v4netnd built for SCO XENIX 2.3 under SCO UNIX...
  5195.     @echo   requires copying /lib/386/Slibc.a to /lib/386/Slibc_s.a and
  5196.     @echo   getting /lib/386/Slibsocket.a from a XENIX devkit.
  5197.     @echo   WARNING: poll/CK_POLL supported only on XENIX 2.3.4
  5198.     echo    For earlier XENIX systems, replace CK_POLL with RDCHK.
  5199.     $(MAKE) "MAKE=$(MAKE)" sco32v4netnd KTARGET=$${KTARGET:-$(@)} \
  5200.     "KFLAGS=$(KFLAGS) -x2.3 -DNORENAME -DNOSYMLINK" \
  5201.     "LNKFLAGS = $(LNKFLAGS) -x2.3" \
  5202.     "LIBS=-ldir -lcfp $(LIBS)"
  5203.  
  5204. #SCO UNIX/386 3.2v4 (POSIX job control), TCP/IP, curses, ANSI C compilation,
  5205. #<dirent.h> (EAFS) file system.  With DIRENT, -lc must come before -lx.
  5206. #Reportedly it's OK to add -DCK_REDIR and -DCK_WREFRESH, and to remove -lc_s.
  5207. #Requires SCO TCP/IP development system or ODT for telnet.h, etc.
  5208. #See sco32v4 above for additional comments.
  5209. # Note: "xermit" means use the select() version of the CONNECT module.
  5210. sco32v4netx:
  5211.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v4...'
  5212.     @echo 'If you get _ftime redefinition_ complaint,'
  5213.     @echo 'use make sco-odt30.'
  5214.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  5215.     "CFLAGS= -DNOFILEH -DHDBUUCP -DTCPSOCKET -DCK_ANSIC -DCK_CURSES -DNAP \
  5216.     -DCK_WREFRESH -DNOLINKBITS -D_IBCS2 -DSELECT -DDCLGETCWD \
  5217.     -DCK_SCO32V4 -DNOIKSD -DNOLSTAT -O $(KFLAGS)" \
  5218.     "LNKFLAGS = $(LNKFLAGS) -s" \
  5219.     "LIBS = $(LIBS) -lcurses -lsocket -lmalloc -lsocket -lc_s -lc -lx"
  5220.  
  5221. sco32v4netndx:
  5222.     @echo sco32v4netx with no debug
  5223.     $(MAKE) "MAKE=$(MAKE)" sco32v4netx KTARGET=$${KTARGET:-$(@)} \
  5224.     "KFLAGS=$(KFLAGS) -DNODEBUG -DNOTLOG" "LIBS=$(LIBS)"
  5225.  
  5226. sco3r2netndx:
  5227.     @echo sco32v4netndx built for SCO XENIX 2.3 under SCO UNIX...
  5228.     @echo   requires copying /lib/386/Slibc.a to /lib/386/Slibc_s.a and
  5229.     @echo   getting /lib/386/Slibsocket.a from a XENIX devkit.
  5230.     @echo   WARNING: poll/CK_POLL supported only on XENIX 2.3.4
  5231.     echo    For earlier XENIX systems, replace CK_POLL with RDCHK.
  5232.     $(MAKE) "MAKE=$(MAKE)" sco32v4netndx KTARGET=$${KTARGET:-$(@)} \
  5233.     "KFLAGS=$(KFLAGS) -x2.3 -DNORENAME -DNOSYMLINK" \
  5234.     "LNKFLAGS = $(LNKFLAGS) -x2.3" \
  5235.     "LIBS=-ldir -lcfp $(LIBS)"
  5236.  
  5237. sco-odt30:
  5238.     @echo SCO ODT 3.0
  5239.     $(MAKE) "MAKE=$(MAKE)" sco32v4net KTARGET=$${KTARGET:-$(@)} \
  5240.     "KFLAGS=$(KFLAGS) -DODT30"
  5241.  
  5242. #SCO OpenServer 5.0 (SCO UNIX 3.2v5.0) with SCO development tools, no TCP/IP.
  5243. #SCO OSR5 is much more like standard System V than previous SCO releases.
  5244. #The SCO development tools include TCP/IP, so this target is only for creating
  5245. #artificially limited versions of kermit required by site policy rather than
  5246. #the operating system.  NOSYSLOG is included because syslog() requires the
  5247. #sockets library.
  5248. sco32v500:
  5249.     @echo Making C-Kermit $(CKVER) for SCO OpenServer Release 5...
  5250.     $(MAKE) xermit CC=$(CC) CC2=$(CC2) KTARGET=$${KTARGET:-$(@)} \
  5251.     "CFLAGS= -O -DDIRENT -DHDBUUCP -DSVR4 -DCK_SCOV5 -DCK_RTSCTS \
  5252.     -DCK_CURSES -DCK_WREFRESH -DCK_NEWTERM -DSELECT -DSELECT_H \
  5253.     -DNOGETUSERSHELL -DNOLSTAT -DNOLINKBITS -DNOSYSLOG $(KFLAGS)" \
  5254.     "LIBS=-lcurses $(LIBS)" "LNKFLAGS=$(LNKFLAGS)"
  5255.  
  5256. sco32v5:
  5257.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=$(KFLAGS)" sco32v500
  5258.  
  5259.  
  5260. #SCO OpenServer 5.0 with networking, SCO development tools.
  5261. #Networking libraries are now provided with the OS.
  5262. sco32v500net:
  5263.     @echo Making C-Kermit $(CKVER) for SCO OpenServer Release 5...
  5264.     $(MAKE) xermit CC=$(CC) CC2=$(CC2) KTARGET=$${KTARGET:-$(@)} \
  5265.     "CFLAGS= -O -DDIRENT -DHDBUUCP -DSVR4 -DCK_SCOV5 -DCK_RTSCTS \
  5266.     -DCK_CURSES -DCK_WREFRESH -DCK_NEWTERM -DSELECT -DSELECT_H \
  5267.     -DNOGETUSERSHELL -DNOLSTAT -DNOLINKBITS -DTCPSOCKET $(KFLAGS)" \
  5268.     "LIBS=-lcurses -lsocket $(LIBS)" "LNKFLAGS=$(LNKFLAGS)"
  5269.  
  5270. sco32v5net:
  5271.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=$(KFLAGS)" sco32v500net
  5272.  
  5273. #SCO OpenServer 5.0 with gcc, no networking.
  5274. #Note: NOSYSLOG required for non-net entries because it requires <socket.h>
  5275. sco32v500gcc:
  5276.     @echo Using gcc...
  5277.     $(MAKE) "MAKE=$(MAKE)" sco32v500CC=gcc CC2=gcc \
  5278.     KTARGET=$${KTARGET:-$(@)} "KFLAGS= $(KFLAGS)"
  5279.  
  5280. #SCO OpenServer 5.0 with networking, gcc.
  5281. sco32v500netgcc:
  5282.     @echo TCP/IP networking added - using gcc...
  5283.     $(MAKE) "MAKE=$(MAKE)" sco32v500net CC=gcc CC2=gcc \
  5284.     KTARGET=$${KTARGET:-$(@)} "KFLAGS=$(KFLAGS)"
  5285.  
  5286. #SCO OpenServer 5.0 with networking, gcc, elf.
  5287. sco32v500netgccelf:
  5288.     @echo TCP/IP networking added - using gcc, dynamic elf library
  5289.     $(MAKE) "MAKE=$(MAKE)" sco32v500net "CC=gcc" "CC2=gcc" \
  5290.     KTARGET=$${KTARGET:-$(@)} "KFLAGS=-O3 -belf" "LNKFLAGS=-belf"
  5291.  
  5292. sco32v502:
  5293.     $(MAKE) "MAKE=$(MAKE)" sco32v500 KTARGET=$${KTARGET:-$(@)} \
  5294.     "KFLAGS=-DSCO_OSR502 $(KFLAGS)"
  5295.  
  5296. #SCO OpenServer 5.0.2 with networking, SCO development tools.
  5297. sco32v502net:
  5298.     @echo TCP/IP networking added...
  5299.     $(MAKE) "MAKE=$(MAKE)" sco32v500net KTARGET=$${KTARGET:-$(@)} \
  5300.     "KFLAGS=-b elf -DSCO_OSR502 $(KFLAGS)"
  5301.  
  5302. #SCO OpenServer 5.0.4 (SCO UNIX 3.2v5.0.4) with SCO development tools.
  5303. #Like 5.0, but adds high serial speeds.  First POSIX-based SCO version.
  5304. sco32v504:
  5305.     $(MAKE) "MAKE=$(MAKE)" sco32v500 KTARGET=$${KTARGET:-$(@)} \
  5306.     "KFLAGS=-DSCO_OSR504 -b elf -DPOSIX $(KFLAGS)"
  5307.  
  5308. #SCO OpenServer 5.0.4 with gcc, no networking.
  5309. sco32v504gcc:
  5310.     @echo Using gcc...
  5311.     $(MAKE) "MAKE=$(MAKE)" sco32v500"CC=gcc" "CC2=gcc" \
  5312.     KTARGET=$${KTARGET:-$(@)} "KFLAGS=-DSCO_OSR504 -DPOSIX $(KFLAGS)"
  5313.  
  5314. #SCO OpenServer 5.0.4 with networking, SCO development tools.
  5315. sco32v504net:
  5316.     @echo TCP/IP networking added...
  5317.     $(MAKE) "MAKE=$(MAKE)" sco32v500net KTARGET=$${KTARGET:-$(@)} \
  5318.     "KFLAGS=-b elf -DSCO_OSR504 -DPOSIX $(KFLAGS)"
  5319.  
  5320. #SCO OpenServer 5.0.4 with networking, gcc.
  5321. sco32v504netgcc:
  5322.     @echo TCP/IP networking added - using gcc...
  5323.     @echo If gcc crashes on ckwart.c then build it by hand:
  5324.     @echo " gcc -o wart -DCK_SCOV5 ckwart.c"
  5325.     $(MAKE) "MAKE=$(MAKE)" sco32v500net "CC=gcc" "CC2=gcc" \
  5326.     KTARGET=$${KTARGET:-$(@)} "KFLAGS=-DSCO_OSR504 -DPOSIX $(KFLAGS)"
  5327.  
  5328. #SCO OpenServer 5.0.4 with networking, gcc, elf.
  5329. sco32v504netgccelf:
  5330.     @echo TCP/IP networking added - using gcc, dynamic elf library
  5331.     $(MAKE) "MAKE=$(MAKE)" sco32v500net "CC=gcc" "CC2=gcc"
  5332.     KTARGET=$${KTARGET:-$(@)} \
  5333.     "KFLAGS=-DSCO_OSR504 -DPOSIX -O3 -belf $(KFLAGS)" \
  5334.     LNKFLAGS="-belf"
  5335.  
  5336. #SCO OpenServer 5.0.5 (SCO UNIX 3.2v5.0.5) with SCO development tools.
  5337. #Like 5.0, but adds high serial speeds.  First POSIX-based SCO version.
  5338. sco32v505:
  5339.     $(MAKE) "MAKE=$(MAKE)" sco32v500 KTARGET=$${KTARGET:-$(@)} \
  5340.     "KFLAGS=-DSCO_OSR505 -b elf -DPOSIX $(KFLAGS)"
  5341.  
  5342. #SCO OpenServer 5.0.5 (SCO UNIX 3.2v5.0.5) with UDK.
  5343. sco32v505udk:
  5344.     $(MAKE) "MAKE=$(MAKE)" sco32v500 KTARGET=$${KTARGET:-$(@)} \
  5345.     "KFLAGS=-DSCO_OSR505 -DDCLTIMEVAL -b elf -DPOSIX $(KFLAGS)"
  5346.  
  5347. #SCO OpenServer 5.0.5 with gcc, no networking.
  5348. sco32v505gcc:
  5349.     @echo Using gcc...
  5350.     $(MAKE) "MAKE=$(MAKE)" sco32v500"CC=gcc" "CC2=gcc" \
  5351.     KTARGET=$${KTARGET:-$(@)} \
  5352.     "KFLAGS=-DSCO_OSR505 -DPOSIX -funsigned-char $(KFLAGS)"
  5353.  
  5354. #SCO OpenServer 5.0.5 with networking, SCO development tools.
  5355. sco32v505net:
  5356.     @echo TCP/IP networking added...
  5357.     $(MAKE) "MAKE=$(MAKE)" sco32v500net KTARGET=$${KTARGET:-$(@)} \
  5358.     "KFLAGS=-DSCO_OSR505 -b elf -DPOSIX $(KFLAGS)"
  5359.  
  5360. #SCO OpenServer 5.0.5 with networking, gcc.
  5361. sco32v505netgcc:
  5362.     @echo TCP/IP networking added - using gcc...
  5363.     @echo If gcc crashes on ckwart.c then build it by hand:
  5364.     @echo " gcc -o wart -DCK_SCOV5 ckwart.c"
  5365.     $(MAKE) "MAKE=$(MAKE)" sco32v500net "CC=gcc" "CC2=gcc" \
  5366.     KTARGET=$${KTARGET:-$(@)} \
  5367.     "KFLAGS=-DSCO_OSR505 -DPOSIX -funsigned-char $(KFLAGS)"
  5368.  
  5369. #egcs is just like gcc but generates ELF by default.
  5370. #Or you can include -melf (not -belf) to force it.
  5371. sco32v505netegcs:
  5372.     $(MAKE) "MAKE=$(MAKE)" "KFLAGS=$(KFLAGS)" sco32v505netgcc \
  5373.     KTARGET=$${KTARGET:-$(@)}
  5374.  
  5375. #SCO OpenServer 5.0.5 with networking, gcc, elf.
  5376. sco32v505netgccelf:
  5377.     @echo TCP/IP networking added - using gcc, dynamic elf library
  5378.     $(MAKE) "MAKE=$(MAKE)" sco32v500net "CC=gcc" "CC2=gcc"
  5379.     "KFLAGS=-DSCO_OSR505 -DPOSIX -funsigned-char -O3 -belf $(KFLAGS)" \
  5380.     KTARGET=$${KTARGET:-$(@)} LNKFLAGS="-belf"
  5381.  
  5382. #Tandy 16/6000 with Xenix 3.0
  5383. #Add more -DNOxxx options to remove features if program won't load.
  5384. #Successful operation is a function of program size, physical memory,
  5385. #available swap space, etc.  The following stripped-down configuration
  5386. #seems to work on most Tandy 6000s.  NOTE: "-+" means allow long variable
  5387. #names, needed for C-Kermit 6.0 because some identifiers are not unique
  5388. #within the first six characters.
  5389. #C-Kermit 7.0 does not build here; "too many defines".
  5390. trs16:
  5391.     @echo 'Making C-Kermit $(CKVER) for Tandy 16/6000, Xenix 3.0...'
  5392.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  5393.     "CFLAGS = -+ -DATTSV -DTRS16 -DNOMKDIR -DDCLPOPEN -DCK_CURSES \
  5394.     -DNODEBUG -DNOTLOG -DNOHELP -DNOSCRIPT -DNOCSETS -DNOIKSD \
  5395.     -DNOREDIRECT -DNOSYSLOG -DNOPUTENV -DNOREALPATH \
  5396.     $(KFLAGS) -O" "LIBS= -lcurses -ltermcap" "LNKFLAGS = -+ -n -s"
  5397.  
  5398. #MINIX/2.0 32 Bit version for intel 386+ running the POSIX-compliant MINIX
  5399. # version 2.0 (The definition of fatal avoids a conflict with a symbol by
  5400. # the same name in the curses library.) It is impossible to compile with
  5401. # network support since Minix does not support Berkeley sockets.
  5402. # Note: use chmem liberally on the compiler passes, make, and the final
  5403. # kermit executable. (3 megabytes of memory for each is sufficient.)
  5404. # From Terry McConnell, Syracuse U, and Will Rose.  Will says:
  5405. # The stacks for make and some compiler passes needed to be increased
  5406. # with chmem as follows:
  5407. #   make 1MB
  5408. #   /usr/lib/em_cemcom.ansi 3MB
  5409. #   /usr/lib/em_opt 1MB
  5410. #   /usr/lib/i386/cg 1MB
  5411. #   /usr/lib/i386/as 1MB
  5412. # The compiler temporary directory was set to /usr/tmp via the TMPDIR
  5413. # environment variable; more than 1MB of temporary space was needed.
  5414. # Kermit itself needs at least 1MB of stack.
  5415. minix20:
  5416.     @echo 'Making C-Kermit $(CKVER) for MINIX 2.0/386...'
  5417.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} EXT=o \
  5418.     "CFLAGS=  -wo -DV7 -DMINIX2 -DMINIX -DSIG_V -D_POSIX_SOURCE \
  5419.     -DCKCPU=\\\"i-386\\\" -DNOIKSD -Dfatal=myfatal -DCK_CURSES \
  5420.     -DNOSYSLOG -DUSE_MEMCPY -DNOREALPATH $(KFLAGS)" "LIBS= -lcurses"
  5421.  
  5422. #MINIX/386 (PC Minix modified by Bruce Evans in Australia for 386 addressing)
  5423. # For MINIX 1.5+ (but < 2.0)
  5424. minix386:
  5425.     @echo 'Making C-Kermit $(CKVER) for MINIX/386...'
  5426.     @echo 'TOTALLY UNTESTED!'
  5427.     $(MAKE) wermit EXT=s KTARGET=$${KTARGET:-$(@)} \
  5428.     "CFLAGS= -DV7 -DMINIX -D_POSIX_SOURCE $(KFLAGS)"
  5429.  
  5430. #MINIX/386 (PC Minix modifed by Bruce Evans in Australia to use 386 addressing)
  5431. minix386gcc:
  5432.     @echo 'Making C-Kermit $(CKVER) for MINIX/386 with gcc...'
  5433.     @echo 'TOTALLY UNTESTED!'
  5434.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC=gcc -g -O" "CC2=gcc -g" \
  5435.     "CFLAGS= -DV7 -DMINIX -D_POSIX_SOURCE $(KFLAGS)"
  5436.  
  5437. #MINIX - 68k version with ACK compiler.
  5438. # If you have trouble compiling or running wart, "touch wart".
  5439. # If it still doesn't work, "touch ckcpro.c".
  5440. # The version configured below has many features removed, including
  5441. # the TRANSMIT, MSEND, HELP, and SCRIPT commands, international
  5442. # character set support, and the entire script programming language.
  5443. # But it does have an interactive command parser.
  5444. # Make sure make(1) has (at least) 100000 chmemory!
  5445. # If you are using the Amsterdam C compiler, you might have to add "-D__ACK__".
  5446. minix68k:
  5447.     @echo 'Making C-Kermit $(CKVER) for MINIX 68k with ACK...
  5448.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  5449.     "CFLAGS= -DV7 -DMINIX -D_MINIX -D_POSIX_SOURCE \
  5450.     -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG \
  5451.     -DNOSCRIPT -DNOCSETS -DNOSPL $(KFLAGS) \
  5452.     -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t -DSIG_V"
  5453.  
  5454. #MINIX - 68k version with c68 compiler.
  5455. # If you have trouble compiling or running wart, "touch wart" or
  5456. # "touch ckcpro.c". Compiling ckudia.c (no -DNODIAL!) might fail. :-(
  5457. # Give c68 250000 bytes of stack+heap; make sure make(1) has at least
  5458. # 100000 chmemory.  On a 1Mb Atari ST this means that the recursive
  5459. # call of make fails due to memory shortage.  Try "make -n minixc68 >makeit",
  5460. # followed by ". makeit".  Otherwise, as above.
  5461. minixc68:
  5462.     @echo 'Making C-Kermit $(CKVER) for MINIX 68k with c68...
  5463.     $(MAKE) wermit "CC= cc -c68" KTARGET=$${KTARGET:-$(@)} \
  5464.     "CFLAGS= -DV7 -DMINIX -D_MINIX -D_POSIX_SOURCE \
  5465.     -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG \
  5466.     -DNOSCRIPT -DNOCSETS -DNOSPL $(KFLAGS) \
  5467.     -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t -DSIG_V"
  5468.  
  5469. #MINIX - 68k version with c68 compiler.
  5470. #A variation on the above that was recently (Sep 95) reported to work.
  5471. minixc68a:
  5472.     @echo 'Making C-Kermit $(CKVER) for MINIX 68k with c68...
  5473.     $(MAKE) wermit "CC= cc -c68" KTARGET=$${KTARGET:-$(@)} \
  5474.     "CFLAGS= -DV7 -DMINIX -D_MINIX -D_POSIX_SOURCE \
  5475.     -DCK_ANSIC -DNODEBUG -DNOTLOG -DMINIDIAL -DEXTEN -DMYCURSES \
  5476.     -DNOSCRIPT -DNOCSETS -DNOSPL -DNOJC -DDIRENT \
  5477.     -DNOSETKEY -DNOESCSEQ $(KFLAGS) \
  5478.     -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t -DSIG_V"
  5479.  
  5480. #MIPS Computer Systems with UMIPS RISC/OS 4.52 = AT&T UNIX System V R3.0.
  5481. #Remove -DNOJC if job control can be safely used.
  5482. mips:
  5483.     @echo 'Making C-Kermit $(CKVER) for MIPS RISC/OS...'
  5484.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  5485.     "CFLAGS = -DMIPS -DDIRENT -DCK_POLL -DNOJC -DPID_T=int \
  5486.     -DGID_T=gid_t -DUID_T=uid_t -i -O1500 $(KFLAGS)"
  5487.  
  5488. #As above, but with TCP/IP and fullscreen support.
  5489. mipstcpc:
  5490.     @echo 'Making C-Kermit $(CKVER) for MIPS RISC/OS...'
  5491.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  5492.     "CFLAGS = -DMIPS -DDIRENT -DCK_POLL -DNOJC \
  5493.     -DTCPSOCKET -DCK_CURSES -I/usr/include/bsd \
  5494.     -DPID_T=int -DGID_T=gid_t -DUID_T=uid_t -i -O1500 $(KFLAGS)" \
  5495.     "LIBS = -lcurses -lbsd"
  5496.  
  5497. #Motorola Delta System V/68 R3, signal() is void rather than int.
  5498. #Uses dirent.h and Honey DanBer uucp.  Supports TCP/IP.
  5499. #After building, use "mcs -d" to reduce size of the executable program.
  5500. sv68r3:
  5501.     @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/68 R3...'
  5502.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  5503.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DNO_DNS_SRV -DTCPSOCKET \
  5504.     -DNOUNICODE $(KFLAGS) -O" "LNKFLAGS ="
  5505.  
  5506. #Motorola Delta System V/68 R3V5, signal() is void rather than int.
  5507. #Uses dirent.h and Honey DanBer UUCP.  Supports TCP/IP.
  5508. #After building, use "mcs -d" to reduce size of the executable program.
  5509. sv68r3v5:
  5510.     @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/68 R3V5'
  5511.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  5512.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DNO_DNS_SRV \
  5513.     -DTCPSOCKET -DINADDRX -DNOUNICODE $(KFLAGS) -O" \
  5514.     "LNKFLAGS =" "LIBS = -linet"
  5515.  
  5516. #Motorola MVME147 System V/68 R3 V5.1. Requires gcc 2.1 to compile.
  5517. #After building, use "mcs -d" to reduce size of the executable program.
  5518. sv68r3v51:
  5519.     @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/68 R3V5.1'
  5520.     $(MAKE) wermit "CC=gcc-delta" "CC2=gcc-delta" \
  5521.     KTARGET=$${KTARGET:-$(@)} \
  5522.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DNODEBUG -DNO_DNS_SRV \
  5523.     -DNOUNICODE $(KFLAGS) -O2 -v -ftraditional" \
  5524.     "LNKFLAGS = -s -v" "LIBS = -lm881"
  5525.  
  5526. #Motorola MVME147 System V/68 R3V6. derived from Motorola Delta System R3V5.
  5527. #Checked on larger Motorola System V/68 R3V6 (with NSE Network Services Ext.)
  5528. #After building, use "strip" to reduce size of the executable program.
  5529. #Try removing the LIBS clause if it causes trouble (libnsl might not actually
  5530. #be necessary, and reportedly it is missing on some systems).
  5531. #  "LIBS = -lnsl" removed in C-Kermit 6.1 - put back if needed.
  5532. sv68r3v6:
  5533.     @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/68 R3V6'
  5534.     $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
  5535.     "CFLAGS = -DSV68R3V6 -DDIRENT -DHDBUUCP -DNOLOGIN -DNOINITGROUPS \
  5536.     -DNOSYMLINK -DNOREDIRECT -DNOGFTIMER -DTCPSOCKET -DDCLGETCWD \
  5537.     -DNO_DNS_SRV -DNOUNICODE $(KFLAGS) -O" "LNKFLAGS ="
  5538.  
  5539. #Motorola Delta System V/88 R32, signal() is void rather than int.
  5540. #Uses dirent.h and Honey DanBer uucp.  Needs <sys/utime.h> for setting
  5541. #file dates.  Supports TCP/IP.
  5542. #After building, use "mcs -d" to reduce size of the executable program.
  5543. sv88r32:
  5544.     @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/88 R32...'
  5545.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  5546.     "CFLAGS = -DSV88R32 -DDIRENT -DHDBUUCP -DTCPSOCKET \
  5547.     -DSYSUTIMEH -DCK_CURSES -DNOGETUSERSHELL -DGTODONEARG $(KFLAGS) -O" \
  5548.     "LIBS= -lcurses -lresolv" "LNKFLAGS = -s"
  5549.  
  5550. #Motorola Delta System V/88 R40.  Has <sys/termiox.h>, regular Berkeley
  5551. #sockets library, i.e. in.h and inet.h are not misplaced in sys (rather than
  5552. #netinet and arpa, respectively).  Uses ANSI C constructs, advisory file
  5553. #locking on devices, etc.  curses support added.  Reportedly, the
  5554. #/usr/include/sys/vnode.h file has a bug which must be fixed before this
  5555. #makefile entry can work correctly.  The "if DEBUG" directive at about line
  5556. #320 must be changed to "ifdef DEBUG" (Reportedly, this was fixed in
  5557. #in System V/88 R4.3).
  5558. #After building, use "mcs -d" to reduce size of the executable program.
  5559. sv88r40:
  5560.     @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/88 R40...'
  5561.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  5562.     "CFLAGS = -O -DSVR4 -DMOTSV88R4 -DDIRENT -DHDBUUCP -DSTERMIOX \
  5563.     -DTCPSOCKET -DCK_CURSES -DNOGETUSERSHELL -DGTODONEARG $(KFLAGS)" \
  5564.     "LIBS= -lsocket -lnsl -lcurses -lresolv" "LNKFLAGS = -s"
  5565.  
  5566. #Olivetti X/OS R2.3, 3.x.
  5567. #NOTES:
  5568. # . If you build the executable on 2.x X/OS, it will also run on 3.x.
  5569. # . If you build it on 3.x X/OS, it will NOT run on 2.x.
  5570. # . Kermit can run with no privileges unless the uucp lines are protected,
  5571. #   in which case kermit must be owned by uucp with suid bit set:
  5572. #   chown uucp kermit ; chmod 4111 kermit.
  5573. xos23:
  5574.     @echo 'Making C-Kermit $(CKVER) for Olivetti X/OS...'
  5575.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  5576.     'CFLAGS=-OLM -DOXOS -DTCPSOCKET -DHDBUUCP $(KFLAGS)' \
  5577.     "LIBS=" "LNKFLAGS="
  5578.  
  5579. #As above, but with curses.
  5580. xos23c:
  5581.     @echo 'Making C-Kermit $(CKVER) for Olivetti X/OS with curses...'
  5582.     $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
  5583.     'CFLAGS=-OLM -DOXOS -DTCPSOCKET -DHDBUUCP -DCK_CURSES $(KFLAGS)' \
  5584.     "LIBS=-lcurses" "LNKFLAGS="
  5585.  
  5586. ckuuid:
  5587.     @echo 'building C-Kermit $(CKVER) set-UID/set-GID test programs'
  5588.     $(CC) -DANYBSD -DSAVEDUID -o ckuuid1 ckuuid.c
  5589.     $(CC) -DANYBSD -o ckuuid2 ckuuid.c
  5590.     $(CC) -DANYBSD -DNOSETREU -o ckuuid3 ckuuid.c
  5591.     $(CC) -DANYBSD -DSETEUID -DNOSETREU -o ckuuid4 ckuuid.c
  5592.     $(CC) -o ckuuid5 ckuuid.c
  5593.     @echo 'Read the top of ckuuid.c for directions...for testing'
  5594.     @echo 'you must make these programs setuid and setgid'
  5595.  
  5596. ############################################################################
  5597. # A N T I Q U I T I E S
  5598. #
  5599. # The following are antique targets from C-Kermit 5A or earlier.  They have
  5600. # not been updated or tested in years.  Most of them will need recent features
  5601. # disabled, usually with some combination of -DNOUNICODE, -DNOIKSD, -DNOANSI,
  5602. # -DNOCKGHNLHOST, -DNO_DNS_SRV, -DNOREDIRECT, -DNOREALPATH, -DNOCURSES, etc.
  5603. # They are also missing the KTARGET=$${KTARGET:-$(@)} business.
  5604. # For details see ckuins.txt and ckccfg.txt.
  5605. #
  5606. ############################################################################
  5607.  
  5608. #Berkeley Unix 2.8, 2.9 for PDP-11s with I&D space, maybe also Ultrix-11???
  5609. #C-Kermit(5A) is simply too large (even turning off almost every feature
  5610. #available) to run without both I&D space plus overlays.  The old comment
  5611. #suggested running 'pcc' but that won't help.  Changing 'cc' to 'ckustr.sed'
  5612. #will cause a string extraction to be done, saving D space by moving strings
  5613. #to a file.
  5614. bsd29:
  5615.     @echo Making C-Kermit $(CKVER) for 2.8 or 2.9BSD.
  5616.     @echo Read the makefile if you have trouble with this...
  5617.     $(MAKE) ovwermit \
  5618.     "CFLAGS= -DBSD29 -DNODEBUG -DNOTLOG -DNOCSETS -DNOHELP \
  5619.     -DNOSCRIPT -DNOSPL -DNOXMIT -DNODIAL $(KFLAGS)" \
  5620.     "LNKFLAGS= -i -lndir" "CC= cc " "CC2= cc"
  5621.  
  5622. bsd210:
  5623.     @echo Please use ckubs2.mak to build C-Kermit $(CKVER) for 2.10BSD.
  5624.  
  5625. bsd211:
  5626.     @echo Please use ckubs2.mak to build C-Kermit $(CKVER) for 2.11BSD.
  5627.  
  5628. #Charles River Data Systems Universe with UNOS Version 9.2
  5629. crds:
  5630.     @echo 'Making C-Kermit $(CKVER) for Charles River Data Systems...'
  5631.     make xermit \
  5632.     "CFLAGS = -DATTSV -DNOANSI -DDIRENT -DLONGFN -DTCPSOCKET \
  5633.     -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DNOSETREU \
  5634.     -Dsuspend=ksuspend $(KFLAGS) -O" "LNKFLAGS ="
  5635.  
  5636. #Microport SV/AT for IBM PC/AT 286 and clones, System V R2.
  5637. #The -O flag may fail on some modules (like ckuus2.c), in which case you
  5638. #should compile them by hand, omitting the -O.  If you get "hash table
  5639. #overflow", try adding -DNODEBUG.
  5640. #Also, reportedly this compiles better with gcc than with cc.
  5641. mpsysv:
  5642.     @echo 'Making C-Kermit $(CKVER) for Microport SV/AT 286...'
  5643.     $(MAKE) wermit \
  5644.     "CFLAGS= -DATTSV $(KFLAGS) -O -Ml" "LNKFLAGS = -Ml"
  5645.  
  5646. #Microsoft "Xenix/286" e.g. for IBM PC/AT
  5647. xenix:
  5648.     @echo 'Making C-Kermit $(CKVER) for Xenix/286'
  5649.     $(MAKE) wermit \
  5650.     "CFLAGS= -DXENIX -DNOFILEH $(KFLAGS) -Dunix -F 3000 -i" \
  5651.     "LNKFLAGS = -F 3000 -i"
  5652.  
  5653. #PC/IX, Interactive Corp System III for IBM PC/XT
  5654. pcix:
  5655.     @echo 'Making C-Kermit $(CKVER) for PC/IX...'
  5656.     $(MAKE) wermit \
  5657.     "CFLAGS= -DPCIX -DISIII $(KFLAGS) -Dsdata=sdatax -O -i" "LNKFLAGS = -i"
  5658.  
  5659. #Integrated Solutions Inc V8S VME 68020
  5660. isi:
  5661.     @echo Making C-Kermit $(CKVER) for 4.2BSD on ISI...
  5662.     $(MAKE) wermit "CC = cc" \
  5663.     "CFLAGS= -DBSD4 -DTCPSOCKET -DINADDRX -DDCLPOPEN -DDEBUG -DNOSETREU \
  5664.     -DCK_CURSES $(KFLAGS)" "LIBS = -lcurses -ltermcap"
  5665.  
  5666. #Interactive Corp version of AT&T System III
  5667. #is3: (very old, probably not sufficient for 5A or later)
  5668. #    @echo 'Making C-Kermit $(CKVER) for Interactive System III...'
  5669. #    make wermit "CFLAGS = -DISIII -Ddata=datax -O -i" "LNKFLAGS = -i"
  5670. #The following should work, use it if you don't have gcc.
  5671. #Use is3gcc if you have gcc.
  5672. is3:
  5673.     @echo 'Making C-Kermit $(CKVER) for Interactive System III...'
  5674.     $(MAKE) wermit \
  5675.     "CFLAGS= -DISIII $(KFLAGS) -Ddata=datax -DNAP -DHDBUUCP
  5676.     -DLOCK_DIR=\"/usr/spool/uucp\" -DSIGTYP=void -O -i" "LNKFLAGS = -i"
  5677.  
  5678. #Interactive UNIX System V R3, no network support.  Uses <dirent.h> and Honey
  5679. #DanBer UUCP.  If this entry does not compile correctly, try any or all of the
  5680. #following.  These suggestions also apply more or less to the other is5r3xxx
  5681. #entries that follow this one.
  5682. # . Remove the UID_T and GID_T definitions, or change them as required.
  5683. # . Change -DDIRENT to -DSDIRENT.
  5684. # . Add -DSIGTYP=void.
  5685. # . Remove -g from LNKFLAGS.
  5686. # . Add -DNOANSI to remove compiler complaints about ANSI C constructions
  5687. # . Add other -DNOxxx's to save space (e.g. -DNOCSETS)
  5688. # See the next few makefile entries for related examples.
  5689. # Also see sys5r32is for making a portable i386 SVR3 binary.
  5690. is5r3:
  5691.     @echo 'Making C-Kermit $(CKVER) for Interactive 386/ix or later...'
  5692.     @echo 'If this does not work please read the makefile entry.'
  5693.     $(MAKE) wermit \
  5694.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -g -DNOCSETS -DNOREALPATH \
  5695.     -DUID_T=ushort -DGID_T=ushort -DI386IX $(KFLAGS)" \
  5696.     "LNKFLAGS = -g"
  5697.  
  5698. #Interactive Corp System System V R3 with gcc
  5699. is3gcc:
  5700.     @echo 'Making C-Kermit $(CKVER) for Interactive System V R3 / gcc...'
  5701.     $(MAKE) wermit CC=gcc CC2=gcc \
  5702.     'CFLAGS = -D_SYSV3 -DISIII -Ddata=datax -DNAP -DHDBUUCP -DNOREALPATH \
  5703.     -DLOCK_DIR=\"/usr/spool/uucp\" -DSIGTYP=void -O' "LNKFLAGS ="
  5704.  
  5705. #Interactive UNIX System V R3, POSIX variant.  Untested.
  5706. #Uses dirent.h and Honey DanBer uucp.  Read comments in is5r3 entry.
  5707. is5r3p:
  5708.     @echo 'Making C-Kermit $(CKVER) for Interactive 386/ix or later...'
  5709.     $(MAKE) wermit \
  5710.     "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -g -DNOCSETS -DNOREALPATH \
  5711.     -DI386IX -DPOSIX $(KFLAGS)" "LNKFLAGS=" "LIBS=-lcposix"
  5712.  
  5713. #Interactive UNIX SVR3 2.2.1, job control, curses, no net, gcc.
  5714. is5r3gcc:
  5715.     $(MAKE) wermit CC=gcc CC2=gcc \
  5716.     "CFLAGS=-g -posix -DSVR3 -DDIRENT -DNOREALPATH \
  5717.     -DHDBUUCP -O -DNOCSETS -DI386IX -DSVR3JC -DCK_CURSES \
  5718.     $(KFLAGS)" LNKFLAGS="-posix" LIBS="-lcurses -lc_s"
  5719.  
  5720. #Interactive UNIX System V R3 with TCP/IP network support.
  5721. #Needs -linet for net functions.  signal() is void rather than int.
  5722. #Uses dirent.h and Honey DanBer uucp. Read comments in is5r3 entry.
  5723. #Also see is5r3net2 if you have trouble with this entry.
  5724. is5r3net:
  5725.     @echo 'Making C-Kermit $(CKVER) for Interactive 386/ix...'
  5726.     @echo 'If this does not work please read the makefile entry.'
  5727.     $(MAKE) wermit CC="$(CC)" CC2="$(CC2)" \
  5728.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DTCPSOCKET -DNOREALPATH \
  5729.     -DI386IX $(KFLAGS) -O" "LIBS = -linet"
  5730.  
  5731. is5r3netgcc:
  5732.     $(MAKE) is5r3net CC=gcc CC2=gcc
  5733.  
  5734. #Interactive UNIX System V R3, no job control, signal() void rather than int.
  5735. #Uses dirent.h and Honey DanBer uucp.  Needs -linet for net functions.
  5736. #Read comments in is5r3 entry.  Use this entry if is5r3net fails.
  5737. #Saves some space by stripping (-s) and using shared library (-lc_s).
  5738. is5r3net2:
  5739.     @echo 'Making C-Kermit $(CKVER) for Interactive 386/ix...'
  5740.     $(MAKE) wermit \
  5741.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DTCPSOCKET -DNOJC -DNOREALPATH \
  5742.     -DSIGTYP=void -DNOANSI -DI386IX $(KFLAGS) -O" \
  5743.     "LNKFLAGS= -s" "LIBS = -linet -lc_s"
  5744.  
  5745. #Interactive UNIX System V R3 (version 2.2 or later) with job control & curses.
  5746. #Uses dirent.h and Honey DanBer UUCP.
  5747. is5r3jc:
  5748.     @echo 'Making C-Kermit $(CKVER) for Interactive Unix 2.2 or later...'
  5749.     $(MAKE) wermit CC="$(CC)" CC2="$(CC2)" \
  5750.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -O -DNOCSETS -DNOREALPATH \
  5751.     -DUID_T=ushort -DGID_T=ushort -DI386IX -DSVR3JC -DCK_CURSES \
  5752.     -DPOSIX_JC -DCK_REDIR -DCK_POLL -DDCLGETCWD \
  5753.     $(KFLAGS)" "LIBS=-lcurses -lc_s -linet"
  5754.  
  5755. is5r3jcgcc:
  5756.     $(MAKE) is5r3jc CC="gcc -DCK_ANSILIBS -DDCGPWNAM -O4" CC2=gcc \
  5757.     KFLAGS="$(KFLAGS)" LNKFLAGS="$(LNKFLAGS)"
  5758.  
  5759. #Sunsoft/Interactive UNIX System V R3 (version 2.2 or later)
  5760. #with job control, curses, and TCP/IP networking.
  5761. #Uses dirent.h and Honey DanBer UUCP.
  5762. is5r3netjc:
  5763.     @echo 'Making C-Kermit $(CKVER) for Interactive Unix 2.2 or later...'
  5764.     $(MAKE) wermit CC="$(CC)" CC2="$(CC2)" \
  5765.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -O -DNOCSETS -DNOREALPATH \
  5766.     -DUID_T=ushort -DGID_T=ushort -DI386IX -DSVR3JC -DCK_CURSES \
  5767.     -DPOSIX_JC -DCK_REDIR -DTCPSOCKET -DSELECT \
  5768.     $(KFLAGS)" "LIBS=-linet -lcurses -lc_s"
  5769.  
  5770. is5r3netjcgcc:
  5771.     $(MAKE) is5r3netjc CC="gcc -DCK_ANSILIBS -DDCGPWNAM -O4" CC2=gcc \
  5772.     KFLAGS="$(KFLAGS)" LNKFLAGS="$(LNKFLAGS)"
  5773.  
  5774. #Masscomp System III
  5775. rtu:
  5776.     @echo 'Making C-Kermit $(CKVER) for Masscomp RTU System III...'
  5777.     $(MAKE) wermit \
  5778.     "CFLAGS= -UFIONREAD -DATTSV $(KFLAGS) -O" "LNKFLAGS =" "LIBS= -ljobs"
  5779.  
  5780. #Masscomp/Concurrent RTU 4.0 or later, Berkeley environment.
  5781. #Includes <ndir.h> = /usr/include/ndir.h
  5782. #Note "LIBS = -lndir" might not be necessary because of "ucb make".
  5783. rtubsd:
  5784.     @echo 'Making C-Kermit $(CKVER) for Masscomp RTU 4.1A...'
  5785.     ucb make wermit \
  5786.     "CFLAGS= -DBSD4 -DRTU -DNDIR -DHDBUUCP -DTCPSOCKET $(KFLAGS)" \
  5787.     "LIBS = -lndir"
  5788.  
  5789. #Masscomp/Concurrent RTU 4.0 or later, same as above,
  5790. #Includes "usr/lib/ndir.h"
  5791. #Note "LIBS = -lndir" might not be necessary because of "ucb make".
  5792. rtubsd2:
  5793.     @echo 'Making C-Kermit $(CKVER) for Masscomp RTU 4.1A...'
  5794.     ucb make wermit \
  5795.     "CFLAGS= -DBSD4 -DRTU -DXNDIR -DHDBUUCP $(KFLAGS)" \
  5796.     "LIBS = -lndir"
  5797.  
  5798. #Masscomp/Concurrent RTU 4.0 or later, same as above,
  5799. #Includes <sys/ndir.h>
  5800. #Note "LIBS = -lndir" might not be necessary because of "ucb make".
  5801. rtubsd3:
  5802.     @echo 'Making C-Kermit $(CKVER) for Masscomp RTU 4.x BSD...'
  5803.     ucb make wermit "CFLAGS= -DBSD4 -DRTU -DHDBUUCP $(KFLAGS)" \
  5804.     "LIBS = -lndir"
  5805.  
  5806. #Masscomp/Concurrent RTU 4.0 or later, System V R2, using <dirent.h>.
  5807. #In case of problems, add back the -DRTU switch.
  5808. #In case -DTCPSOCKET gives trouble, remove it.
  5809. rtus5:
  5810.     @echo 'Making C-Kermit $(CKVER) for Masscomp RTU 4.x...'
  5811.     $(MAKE) wermit \
  5812.     "CFLAGS= -DATTSV -DHDBUUCP -DDIRENT -DTCPSOCKET $(KFLAGS)"
  5813.  
  5814. #Masscomp/Concurrent RTU 4.x, System V R3, using <dirent.h>.
  5815. #Use this one if rtus5 gives warnings about pointer type mismatches.
  5816. #In case of problems, add back the -DRTU switch.
  5817. rtus5r3:
  5818.     @echo 'Making C-Kermit $(CKVER) for Masscomp RTU Sys V R3...'
  5819.     $(MAKE) wermit "CFLAGS= -DSVR3 -DHDBUUCP -DDIRENT $(KFLAGS)"
  5820.  
  5821. #DEC Pro-3xx with Pro/Venix V1.0 or V1.1
  5822. # Requires code-mapping on non-I&D-space 11/23 processor, plus some
  5823. # fiddling to get interrupt targets into resident code section.
  5824. # This almost certainly doesn't work any more.
  5825. provx1:
  5826.     @echo 'Making C-Kermit $(CKVER) for DEC Pro-3xx, Pro/Venix 1.x...'
  5827.     $(MAKE) wart "CFLAGS= -DPROVX1 $(KFLAGS)" "LNKFLAGS= "
  5828.     $(MAKE) wermit "CFLAGS = -DPROVX1 -DNOFILEH -md780" \
  5829.         "LNKFLAGS= -u _sleep -lc -md780"
  5830.  
  5831. #Nixdorf Targon/31.
  5832. #AT&T UNIX System V R3, signal() is void rather than int.
  5833. #Uses dirent.h without Honey DanBer uucp.
  5834. t31tos40x:
  5835.     @echo 'Making C-Kermit $(CKVER) for Targon/31 with TOS 4.0.xx...'
  5836.         $(MAKE) wermit \
  5837.         "CFLAGS= -DSVR3 -DDIRENT $(KFLAGS) -O" \
  5838.         "LNKFLAGS="
  5839.  
  5840. #NCR Tower 1632, OS 1.02
  5841. tower1:
  5842.     @echo 'Making C-Kermit $(CKVER) for NCR Tower 1632, OS 1.02...'
  5843.     $(MAKE) wermit "CFLAGS= -DTOWER1 $(KFLAGS)"
  5844.  
  5845. #NCR Tower 32, OS Release 1.xx.xx
  5846. tower32-1:
  5847.     @echo 'Making C-Kermit $(CKVER) for NCR Tower 32 Rel 1 System V R2...'
  5848.     @echo 'Add KFLAGS=-DISDIRBUG if you get errors about S_ISREG/S_ISDIR.'
  5849.     $(MAKE) wermit \
  5850.     "CFLAGS = -DATTSV $(KFLAGS) -O" "LNKFLAGS = -n"
  5851.  
  5852. #NCR Tower 32, OS Release 2.xx.xx
  5853. tower32-2:
  5854.     @echo 'Making C-Kermit $(CKVER) for NCR Tower 32 Rel 2 System V R2...'
  5855.     $(MAKE) wermit \
  5856.     "CFLAGS = -DATTSV -DHDBUUCP $(KFLAGS) -O2" \
  5857.     "LNKFLAGS = -n"
  5858.  
  5859. #NCR Tower 32, OS Releases based on System V R3
  5860. #Don't add -DNAP (doesn't work right) or -DRDCHK (not available in libc).
  5861. tower32:
  5862.     @echo 'Making C-Kermit $(CKVER) for NCR Tower 32 System V R3...'
  5863.     $(MAKE) wermit \
  5864.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DNOSYSIOCTLH $(KFLAGS) \
  5865.     -DUID_T=ushort -DGID_T=ushort -O1"
  5866.  
  5867. #NCR Tower 32, OS Releases based on System V R3
  5868. tower32g:
  5869.     @echo 'Making C-Kermit $(CKVER) for NCR Tower 32 System V R3, gcc...'
  5870.     $(MAKE) wermit "CC = gcc" \
  5871.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DNOSYSIOCTLH $(KFLAGS) \
  5872.     DUID_T=ushort -DGID_T=ushort -O -fstrength-reduce -fomit-frame-pointer"
  5873.  
  5874. #Fortune 32:16, For:Pro 1.8 (mostly like 4.1bsd)
  5875. ft18:
  5876.     @echo 'Making C-Kermit $(CKVER) for Fortune 32:16 For:Pro 1.8...'
  5877.     $(MAKE) wermit \
  5878.     "CFLAGS= -DNODEBUG -DBSD4 -DFT18 -DNOFILEH $(KFLAGS) \
  5879.     -DPID_T=short"
  5880.  
  5881. #Fortune 32:16, For:Pro 2.1 (mostly like 4.1bsd).
  5882. #The modules that break the optimizer are compiled separately.
  5883. ft21:
  5884.     @echo 'Making C-Kermit $(CKVER) for Fortune 32:16 For:Pro 2.1...'
  5885.     $(MAKE) ckuusx.$(EXT) "CFLAGS= -DNODEBUG -DBSD4 -DFT21 -DNOFILEH \
  5886.     -SYM 800  -DCK_CURSES $(KFLAGS) -DPID_T=short" \
  5887.     "LNKFLAGS= -n -s" "LIBS= -lcurses -ltermcap -lv -lnet"
  5888.     $(MAKE) ckuxla.$(EXT) "CFLAGS= -DNODEBUG -DBSD4 -DFT21 -DNOFILEH \
  5889.     -SYM 800  -DCK_CURSES $(KFLAGS) -DPID_T=short" \
  5890.     "LNKFLAGS= -n -s" "LIBS= -lcurses -ltermcap -lv -lnet"
  5891.     $(MAKE) ckudia.$(EXT) "CFLAGS= -DNODEBUG -DBSD4 -DFT21 -DNOFILEH \
  5892.     -SYM 800  -DCK_CURSES $(KFLAGS) -DPID_T=short" \
  5893.     "LNKFLAGS= -n -s" "LIBS= -lcurses -ltermcap -lv -lnet"
  5894.     $(MAKE) wermit \
  5895.     "CFLAGS= -O -DNODEBUG -DBSD4 -DFT21 -DNOFILEH -SYM 800 \
  5896.     -DCK_CURSES $(KFLAGS) -DPID_T=short" \
  5897.     "LNKFLAGS= -n -s" "LIBS= -lcurses -ltermcap -lv -lnet"
  5898.  
  5899. #Valid Scaldstar
  5900. #Berkeleyish, but need to change some variable names.
  5901. valid:
  5902.     @echo 'Making C-Kermit $(CKVER) for Valid Scaldstar...'
  5903.     $(MAKE) wermit \
  5904.     "CFLAGS= -DBSD4 -DNODEBUG -DNOTLOG -Dcc=ccx -DFREAD=1 $(KFLAGS)"
  5905.  
  5906. #IBM IX/370 on IBM 370 Series mainframes
  5907. #Mostly like sys3, but should buffer packets.
  5908. ix370:
  5909.     @echo 'Making C-Kermit $(CKVER) for IBM IX/370...'
  5910.     $(MAKE) wermit "CFLAGS = -DIX370 -DATTSV $(KFLAGS) -i -O" \
  5911.     "LNKFLAGS = -i"
  5912.  
  5913. #Amdahl UTS 2.4 on IBM 370 series compatible mainframes.
  5914. #Mostly like V7, but can't do initrawq() buffer peeking.
  5915. uts24:
  5916.     @echo 'Making C-Kermit $(CKVER) for Amdahl UTS 2.4...'
  5917.     $(MAKE) wermit "CFLAGS=-DV7 -DPROCNAME=\\\"$(PROC)\\\" \
  5918.     -DUTS24 -DBOOTNAME=\\\"$(BOOTFILE)\\\" -DNPROCNAME=\\\"$(NPROC)\\\" \
  5919.     -DNPTYPE=$(NPTYPE) $(DIRECT) $(KFLAGS)"
  5920.  
  5921. #Amdahl UTSV UNIX System V = System V R2 or earlier.
  5922. utsv:
  5923.     @echo 'Making C-Kermit $(CKVER) for Amdahl UTSV...'
  5924.     $(MAKE) wermit \
  5925.     "CFLAGS = -DUTSV $(KFLAGS) -i -O" "LNKFLAGS = -i"
  5926.  
  5927. #Amdahl UTSV UNIX System V = System V R2 or earlier, with TCP sockets library.
  5928. utsvtcp:
  5929.     @echo 'Making C-Kermit $(CKVER) for Amdahl UTSV w/tcp...'
  5930.     $(MAKE) wermit "CFLAGS = \
  5931.     -DTCPSOCKET -DUTSV $(KFLAGS) -i -O" "LNKFLAGS = -i" \
  5932.     "LIBS = -lsocket"
  5933.  
  5934. #BBN C/70 with IOS 2.0
  5935. #Mostly Berkeley-like, but with some ATTisms
  5936. c70:
  5937.     @echo 'Making C-Kermit $(CKVER) for BBN C/70 IOS 2.0...'
  5938.     $(MAKE) wermit "CFLAGS= -DBSD4 -DC70 $(KFLAGS)"
  5939.  
  5940. #Zilog ZEUS 3.21
  5941. zilog:
  5942.     @echo 'Making C-Kermit $(CKVER) for Zilog Zeus 3.21...'
  5943.     $(MAKE) wermit \
  5944.     "CFLAGS = -DATTSV -DZILOG -DNODEBUG $(KFLAGS) -i -O" \
  5945.     "LNKFLAGS = -i -lpw"
  5946.  
  5947. #Whitechapel MG-1 Genix 1.3
  5948. white:
  5949.     @echo 'Making C-Kermit $(CKVER) for Whitechapel MG-1 Genix 1.3...'
  5950.     @touch ckcpro.c
  5951.     $(MAKE) wermit "CFLAGS= -DBSD4 -Dzkself()=0  $(KFLAGS)"
  5952.  
  5953. #Pixel 1000
  5954. pixel:
  5955.     @echo 'Making C-Kermit $(CKVER) for Pixel 1000...'
  5956.     $(MAKE) wermit "CFLAGS= -DBSD4 -Dzkself()=0 $(KFLAGS)"
  5957.  
  5958. ptx:
  5959.     $(MAKE) "MAKE=$(MAKE)" dynixptx12
  5960.  
  5961. #CDC VX/VE 5.2.1
  5962. vxve:
  5963.     @echo 'Making C-Kermit $(CKVER) for CDC VX/VE 5.2.1...'
  5964.     $(MAKE) wermit \
  5965.     "CFLAGS = -DATTSV -DVXVE -DNODEBUG -DNOTLOG $(KFLAGS) -i -O" \
  5966.     "LNKFLAGS = -i"
  5967.  
  5968. #DIAB DS90 or LUXOR ABC-9000 with pre-5.2 DNIX.  Sys V with nap() and rdchk().
  5969. # nd = no opendir(), readdir(), closedir(), etc.
  5970. # Some of the modules fail to compile with -O.
  5971. dnixnd:
  5972.     @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with very old DNIX 5.2.'
  5973.     $(MAKE) wermit \
  5974.     "CFLAGS = -DATTSV -DNAP -DRDCHK -DDCLPOPEN \
  5975.     -U__STDC__ $(KFLAGS)"
  5976.  
  5977. #DIAB DS90 with DNIX 5.2.  Sys V with nap() and rdchk().
  5978. # This one has opendir(), readdir(), closedir(), etc.
  5979. # Some of the modules fail to compile with -O.
  5980. dnix:
  5981.     @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with old DNIX 5.2...'
  5982.     $(MAKE) wermit \
  5983.     "CFLAGS = -DATTSV -DNAP -DRDCHK -DDIRENT  \
  5984.     -U__STDC__ $(KFLAGS)"
  5985.  
  5986. #DIAB DS90 with DNIX 5.2.  Sys V with nap() and rdchk().
  5987. # As above, but with curses and TCP/IP.
  5988. # You might get complaints about redefinition of O_RDONLY, etc, because
  5989. # of bugs in the DNIX header files, which can be fixed by adding #ifndef...
  5990. # around the offending definitions in the header files.
  5991. dnixnetc:
  5992.     @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with old DNIX 5.2...'
  5993.     $(MAKE) wermit \
  5994.     "CFLAGS = -DATTSV -DNAP -DRDCHK -DDIRENT  \
  5995.     -DTCPSOCKET -DCK_CURSES -I/usr/include/bsd -U__STDC__ $(KFLAGS)" \
  5996.     "LIBS = -ln -lcurses"
  5997.  
  5998. #DIAB DS90 with DNIX 5.3 or later, with HDB UUCP, nap() and rdchk().
  5999. dnix5r3:
  6000.     @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with DNIX 5.3...'
  6001.     @echo 'with Honey DanBer UUCP'
  6002.     $(MAKE) wermit \
  6003.     "CFLAGS = -DSVR3 -DHDBUUCP -DNAP -DRDCHK -DDIRENT \
  6004.     -DCK_CURSES -DRENAME $(KFLAGS) -O" "LIBS= -lcurses"
  6005.  
  6006. #DIAB DS90 with DNIX 5.3 or later, with HDB UUCP, nap() and rdchk() + TCP/IP
  6007. dnix5r3net:
  6008.     @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with DNIX 5.3...'
  6009.     @echo 'with Honey DanBer UUCP and TCP/IP'
  6010.     $(MAKE) wermit \
  6011.     "CFLAGS = -DSVR3 -DHDBUUCP -DNAP -DRDCHK -DDIRENT \
  6012.     -DTCPSOCKET -DCK_CURSES -DRENAME $(KFLAGS) -O \
  6013.     -I/usr/include/bsd" "LIBS = -ln -lcurses"
  6014.  
  6015. #DIAB DS90 with DNIX 5.3 2.2 or later, with HDB UUCP, nap() and rdchk(),
  6016. #ANSI C compilation and libraries.
  6017. #Note that for DNIX 5.3 2.2 you have to correct a bug in /usr/include/stdlib.h:
  6018. #change "extern    void free(char *str);"
  6019. #to     "extern void free(void *str);"
  6020. #NOTE: This bug is reportedly fixed in DNIX 5.3 2.2.1.
  6021. #Should you get fatal errors caused by harmless pointer-type mismatches,
  6022. #like between signed and unsigned char, just remove -X7.
  6023. dnix5r3ansi:
  6024.     @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with DNIX 5.3...'
  6025.     @echo 'with ANSI C Honey DanBer UUCP'
  6026.     $(MAKE) wermit \
  6027.     "CFLAGS = -DSVR3 -DDIAB -DHDBUUCP -DNAP -DRDCHK -DDIRENT \
  6028.     -DCK_ANSILIBS -DCK_CURSES -DRENAME -O -X7 -X9 $(KFLAGS)" \
  6029.     "LIBS= -lcurses"
  6030.  
  6031. #DIAB DS90 with DNIX 5.3 2.2 or later, with HDB UUCP, nap() and rdchk(),
  6032. # + TCP/IP, ANSI C compilation and libraries.
  6033. #Should you get fatal errors caused by harmless pointer-type mismatches,
  6034. #like between signed and unsigned char, just remove -X7.
  6035. dnix5r3ansinet:
  6036.     @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with DNIX 5.3...'
  6037.     @echo 'with ANSI C Honey DanBer UUCP'
  6038.     $(MAKE) wermit \
  6039.     "CFLAGS = -DSVR3 -DDIAB -DHDBUUCP -DNAP -DRDCHK -DDIRENT \
  6040.     -DTCPSOCKET -DCK_ANSILIBS -DCK_CURSES -DRENAME -O -X7 -X9 $(KFLAGS) \
  6041.     -I/usr/include/bsd" "LIBS= -ln -lcurses"
  6042.  
  6043. # QNX 4.21 and above, 32-bit version, Watcom C32 10.6, register calling
  6044. # conventions, fully configured, except no job control because QNX 4.x
  6045. # does not support it.  New NCURSES library used instead of CURSES.
  6046. #
  6047. # -Oatx optimizes to favor speed over size: loop optimization, inline fn's.
  6048. # -Os favors size over speed.  The size difference is about 30-40K.
  6049. # -NOUUCP is included because QNX is shipped without UUCP and no native
  6050. # QNX software uses UUCP lockfiles.  Remove -DNOUUCP if you want to use
  6051. # UUCP lockfiles for exclusive access to dialout devices.
  6052. #
  6053. # If you get warnings about HEADER or C_IN add -DNO_DNS_SRV.
  6054. qnx32:
  6055.     @echo 'Making C-Kermit $(CKVER) for QNX 4.2x, 32-bit...'
  6056.     $(MAKE) xermit \
  6057.     "LNKFLAGS = -3r" \
  6058.     "CFLAGS = -3r -ms -DQNX -DTCPSOCKET -DCK_CURSES -DNOGETUSERSHELL \
  6059.     -DCK_WREFRESH -DCK_REDIR -DSELECT -DSELECT_H -DCK_RTSCTS -DNOJC \
  6060.     -DNOINITGROUPS -DNOUUCP -DCK_ANSIC -DPID_T=pid_t -Oatx -zc $(KFLAGS)" \
  6061.     "LIBS= -lsocket -lncurses -ltermcap"
  6062.     @wermit -h >use.qnx
  6063.     @usemsg wermit use.qnx
  6064.     @rm use.qnx
  6065.  
  6066. # As above but no networking since some QNX systems do not have TCP/IP
  6067. # installed, or the TCP/IP developers kit, which includes all the needed
  6068. # header files.  This entry has not been tested on a QNX system that, in
  6069. # fact, does not have TCP/IP installed; some adjustments might be necessary,
  6070. # in particular regarding the use of select(): is -lsocket needed, can we
  6071. # get the needed definitions from non-TCP/IP header files (FD_SET, etc)?
  6072. qnx32nonet:
  6073.     @echo 'Making C-Kermit $(CKVER) for QNX 4.2x, 32-bit, no net...'
  6074.     $(MAKE) xermit \
  6075.     "LNKFLAGS = -3r" \
  6076.     "CFLAGS = -3r -ms -DQNX -DNONET -DNOIKSD -DCK_CURSES \
  6077.     -DCK_WREFRESH -DCK_REDIR -DSELECT -DSELECT_H -DCK_RTSCTS -DNOJC \
  6078.     -DNOUUCP -DCK_ANSIC -DPID_T=pid_t -Oatx -zc $(KFLAGS)" \
  6079.     "LIBS= -lsocket -lncurses -ltermcap"
  6080.     @wermit -h >use.qnx
  6081.     @usemsg wermit use.qnx
  6082.     @rm use.qnx
  6083.  
  6084. # Synonym for qnx32.
  6085. qnx:
  6086.     $(MAKE) qnx32 "KFLAGS=$(KFLAGS)"
  6087.  
  6088. # QNX 4.21 and above, 16-bit version, Watcom C 8.5 - and higher on i286 PCs
  6089. # and above.
  6090. #
  6091. #    IMPORTANT: Do not use Watcom C 10.6!!!
  6092. #    If you have it installed, add "-v9.52 to CFLAGS"
  6093. #
  6094. # NOTE: QNX 4.23 onward does not work on 286's anyway.
  6095. # Stacksize 26000, objects larger than 100 bytes in their own segments,
  6096. # string constants to the codesegment, etc.  Fully configured except job ctrl.
  6097. # This entry works for building a 16-bit executable on a 32-bit system, but
  6098. # has not been tested on a 16-bit system.  Uses large memory model, links
  6099. # explicitly with large-model sockets library.  Correct-model curses library
  6100. # is chosen automatically.  See comment in qnx32 entry about -DNOUUCP.
  6101. #
  6102. # WARNING:
  6103. #
  6104. # Watcom C prior to 10.6 never had released curses library. To link against it,
  6105. # you must obtain ported free curses source from ftp://ftp.qnx.com/usr/free,
  6106. # then compile and build library (cursesl.lib) and place it in /usr/lib.  You
  6107. # must also copy curses.h to /usr/include.  Be aware that if you have Watcom
  6108. # 10.6 installed, you should already have curses.h, which is the new ncurses
  6109. # library. You must back it up and use free curses.h instead, since ncurses is
  6110. # only for 32-bit applications and some definitions in these files are
  6111. # different (e.g., clearok()).  For safety, curses is not defined in build.
  6112. #
  6113. # In 7.0 -DNOHELP added to keep ckuus2.c from blowing up; NOCSETS and NOSPL
  6114. # added because ckuus4 was blowing up, and NOFLOAT just because it seemed
  6115. # dangerous (remove -DNOFLOAT if you want to try it), The result works OK
  6116. # except for some mysterious beeps upon termination of the top-level keyword.
  6117. #
  6118. # Things to try next time we get in trouble:
  6119. #  . Change -zt100 to something smaller like -zt25
  6120. #  . Change -Oatx to -Omilerat (enable stack checking)
  6121. #  . Maybe get rid of -v9.52 -- it's only there because we were warned.
  6122. #
  6123. qnx16:
  6124.     @echo 'Making C-Kermit $(CKVER) for QNX 4.21, 16-bit...'
  6125.     $(MAKE) xermit \
  6126.     "LNKFLAGS = -2 -ml -N 26000" \
  6127.     "CFLAGS = -2 -Oatx -zc -zt100 -ml -DQNX -DQNX16 -DNOUUCP -DNOHELP \
  6128.     -DCK_REDIR -DSELECT -DSELECT_H -DNOJC -DNOGETUSERSHELL -DNOCSETS \
  6129.     -v9.52 -DTCPSOCKET -DCK_RTSCTS -DCK_ANSIC -DNOINITGROUPS -DNOKVERBS \
  6130.     -DNORANDOM -DNOCSETS -DNOSPL -DNOFLOAT -DPID_T=pid_t $(KFLAGS)"
  6131.  
  6132. # QNX 4.1, 16-bit version, with Watcom C 8.5 on i286 PCs and above.
  6133. # stacksize 26000, objects larger than 100 bytes in their own segments,
  6134. # string constants to the codesegment, etc.  Add -DNOUUCP if desired.
  6135. qnx16_41:
  6136.     @echo 'Making C-Kermit $(CKVER) for QNX 4.1, 16-bit...'
  6137.     $(MAKE) xermit \
  6138.     "LNKFLAGS = -mh -N 26000" "CFLAGS = -Wc,-fpc -Wc,-j -DNOGETUSERSHELL \
  6139.     -Wc,-Ols -Wc,-zdf -Wc,-zc -Wc,-zt100 -mh -DPOSIX -DQNX -DDIRENT \
  6140.     -DNOCYRIL -DNODEBUG -DNOMSEND -DMINIDIAL -DNOXMIT -DNOSCRIPT -DNOSPL \
  6141.     -DNOSETKEY -DNOINITGROUPS -DPID_T=pid_t $(KFLAGS)"
  6142.  
  6143. # QNX Neutrino 2 (pwaechtler@qnx.de) crosscompiled on QNX 4.25.
  6144. qnx_nto2+:
  6145.     @echo 'Making C-Kermit $(CKVER) for QNX Neutrino 2+ '
  6146.     $(MAKE) xermit \
  6147.     "CC = qcc -Vgcc_ntox86" \
  6148.     "CC2 = qcc -Vgcc_ntox86" \
  6149.     "LNKFLAGS = " \
  6150.     "CFLAGS = -DTCPSOCKET -DCK_CURSES -DNOGETUSERSHELL \
  6151.     -DCK_WREFRESH -DCK_REDIR -DSELECT -DSELECT_H -DCK_RTSCTS -DNOJC \
  6152.     -DNOINITGROUPS -DCK_ANSIC -DPID_T=pid_t -DUNIX -DDIRENT -DMYREAD \
  6153.     -DBSD44ORPOSIX -DSVORPOSIX -DNDGPWNAM $(KFLAGS)" \
  6154.     "LIBS= -lsocket -lncurses "
  6155.  
  6156. #Ridge 32 with ROS 3.2
  6157. ridge32:
  6158.     @echo 'Making C-Kermit $(CKVER) Ridge 32 ROS 3.2'
  6159.     $(MAKE) wermit \
  6160.     "CFLAGS = -DATTSV -DNOFILEH -DNODEBUG -DNOTLOG $(KFLAGS) -i -O" \
  6161.     "LNKFLAGS = -i"
  6162.  
  6163. #Altos 486, 586, or 986 with Xenix 3.0
  6164. altos:
  6165.     @echo 'Making C-Kermit $(CKVER) for Altos x86 with Xenix 3.0...'
  6166.     $(MAKE) wermit \
  6167.     "CFLAGS= -DATTSV -DA986 -DNODEBUG -DNOTLOG $(KFLAGS) -i -O" \
  6168.     "LNKFLAGS= -i"
  6169.  
  6170. #Altos 986 with Xenix 3.0, as above, but command-line only, minimal size.
  6171. #For systems with small memories.  It might also be necessary to chop certain
  6172. #modules up into smaller pieces, e.g. ckuus3-6, because of symbol table
  6173. #overflow.   If this makefile is too big or complex for the Altos, compile
  6174. #and link by hand or write shell scripts.
  6175. altosc:
  6176.     @echo 'Making C-Kermit $(CKVER) for Altos x86 Xenix 3.0, remote...'
  6177.     $(MAKE) wermit \
  6178.     "CFLAGS= -DATTSV -DA986 -DNODEBUG -DNOTLOG -DNOSCRIPT -DNODIAL \
  6179.     -DNOCSETS -DNOANSI -DNOMSEND -DNOSPL -DNOICP $(KFLAGS) -Mm -O" \
  6180.     "LNKFLAGS= -Mm -s"
  6181.  
  6182. #Altos 986 with Xenix 3.0, as above, but interactive only, minimal size.
  6183. altosi:
  6184.     @echo 'Making C-Kermit $(CKVER) for Altos x86 Xenix 3.0, local...'
  6185.     $(MAKE) wermit \
  6186.     "CFLAGS= -DATTSV -DA986 -DNODEBUG -DNOTLOG -DNOSCRIPT -DNODIAL \
  6187.     -DNOCSETS -DNOANSI -DNOMSEND -DNOSPL -DNOCMDL -DNOFRILLS -DNOHELP \
  6188.     -DNOSETKEY $(KFLAGS) -Mm -O" "LNKFLAGS= -Mm -s"
  6189.  
  6190. # Altos ACS68000 68000 System, UNIX System 3 Release 2, 512k memory.
  6191. # also needs getcwd() external function; see ckuins.txt file.
  6192. # also, sys/types.h needed modifying:
  6193. #   #ifdef __SYS_TYPES_H__, #define ..., #endif
  6194. # also, ckuus2.c MUST be compiled NOOPT else symbol table is destroyed!
  6195. # Submission by Robert Weiner/Programming Plus, rweiner@progplus.com.
  6196. #
  6197. altos3:
  6198.     @echo 'Making C-Kermit $(CKVER) for Altos ACS68k UNIX System III'
  6199.     $(MAKE) ckuus2.$(EXT) "CFLAGS = -DATTSV -DNOCSETS -DNOSETKEY -DNOJC \
  6200.     -DNODIAL -DDCLPOPEN -DNOSCRIPT -DNOHELP $(KFLAGS) -i"
  6201.     $(MAKE) wermit \
  6202.     "CFLAGS = -DATTSV -DNOCSETS -DNOSETKEY -DNOJC \
  6203.     -DNODIAL -DDCLPOPEN -DNOSCRIPT -DNOHELP $(KFLAGS) -i -O" \
  6204.     "LNKFLAGS = -i" "LIBS = getcwd.$(EXT)"
  6205.  
  6206. #MINIX - Original PC version with 64K+64K limit.
  6207. # Reportedly, the linker (asld) can run out of space while linking.  The only
  6208. # way around this is to make a copy of libc.a from which all modules that are
  6209. # not used by Kermit are removed.  If you have trouble compiling or running
  6210. # wart, "touch wart".  If that doesn't help, "touch ckcpro.c".
  6211. # The version configured below has no interactive command parser.
  6212. # If you can build this version successfully, maybe there will be room for
  6213. # a minimal interactive command parser too; try replacing -DNOICP with
  6214. # -DNOSPL, plus every other -DNOxxx flag there is, except for -DNOICP
  6215. # (see ckccfg.txt).
  6216. minix:
  6217.     @echo 'Making C-Kermit $(CKVER) for MINIX, no command parser...
  6218.     @echo 'TOTALLY UNTESTED!'
  6219.     $(MAKE) wermit EXT=s \
  6220.     "CFLAGS= -DV7 -DMINIX -i -D_MINIX -D_POSIX_SOURCE \
  6221.     -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t -DSIG_V \
  6222.     -DNOXMIT -DNOMSEND -DNOFRILLS -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG \
  6223.     -DNOSCRIPT -DNOCSETS -DNOICP -DNOSETKEY $(KFLAGS)" \
  6224.     "LNKFLAGS= -i -T"
  6225.  
  6226. #MINIX - PC version with 64K+64K limit, new (as yet unreleased) ACK 2.0 beta C
  6227. #compiler, which outputs .o object files, rather than .s.  But 'make' still
  6228. #expects .s files, so must be patched to use .o.  Tested on Minix 1.5.10.
  6229. minixnew:
  6230.     @echo 'Making C-Kermit $(CKVER) for MINIX (new ACK 2.0 compiler),'
  6231.     @echo 'no command parser...  TOTALLY UNTESTED!'
  6232.     $(MAKE) wermit \
  6233.     "CFLAGS= -DV7 -DMINIX -i -D_MINIX -D_POSIX_SOURCE \
  6234.     -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t -DSIG_V -DNODIAL \
  6235.     -DNOHELP -DNODEBUG -DNOTLOG -DNOSCRIPT -DNOCSETS -DNOICP $(KFLAGS)" \
  6236.     "LNKFLAGS= -i -T"
  6237.  
  6238. #PFU Compact A Series UNIX System V R3, SX/A TISP V10/L50 (Japan)
  6239. #Maybe the -i link option should be removed?
  6240. sxae50:
  6241.     @echo 'Making C-Kermit $(CKVER) for PFU SX/A V10/L50...'
  6242.     $(MAKE) xermit \
  6243.     "CFLAGS= -DSVR3 -DDIRENT -DsxaE50 -DTCPSOCKET $(KFLAGS) -i -O" \
  6244.     "LNKFLAGS= "
  6245.  
  6246. #Tektronix 6130, 4319, 4301, etc, with UTek OS, /usr/spool/uucp/LCK./...
  6247. #The models that support hardware flow control.
  6248. utek:
  6249.     @echo 'Making C-Kermit $(CKVER) for 4.2BSD/UTek, hardware flow control'
  6250.     $(MAKE) wermit \
  6251.     "CFLAGS= -O -DLCKDIR -DBSD4 -DTCPSOCKET \
  6252.     -DUTEK -DDCLPOPEN -DLOCK_DIR=\\\"/usr/spool/uucp/LCK.\\\" \
  6253.     -DTRMBUFL=2048 -DCK_DTRCTS $(KFLAGS)"
  6254.  
  6255. #Tektronix 4315, 4316, 4317 with UTek OS, /usr/spool/uucp/LCK./...
  6256. #The models that do not fully support hardware flow control.
  6257. uteknohwfc:
  6258.     @echo 'Making C-Kermit $(CKVER) for 4.2BSD/UTek, no h/w flow control'
  6259.     $(MAKE) wermit \
  6260.     "CFLAGS= -O -DLCKDIR -DBSD4 -DTCPSOCKET \
  6261.     -DUTEK -DDCLPOPEN -DLOCK_DIR=\\\"/usr/spool/uucp/LCK.\\\" \
  6262.     -DTRMBUFL=2048 $(KFLAGS)"
  6263.  
  6264. #Tektronix XD88 with  UTekV OS
  6265. utekvr3:
  6266.     @echo 'Making C-Kermit $(CKVER) for Tektronix XD88 UTekV R3...'
  6267.     $(MAKE) wermit \
  6268.     "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP \
  6269.     -DTCPSOCKET -DSYSUTIMEH -DCK_CURSES $(KFLAGS) -O" \
  6270.     "LIBS= -lcurses" "LNKFLAGS= -s"
  6271.  
  6272. #Perkin-Elmer 3200 Xelos R02 or earlier
  6273. ccop1:
  6274.     @echo 'Making C-Kermit $(CKVER) for Xelos & Public Domain Dirent calls'
  6275.     @echo 'or System V R2 or earlier...'
  6276.     $(MAKE) wermit \
  6277.     "CFLAGS = -DATTSV -Dvoid=int -DDIRENT -DCK_CURSES \
  6278.     $(KFLAGS) -O" "LNKFLAGS =" "LIBS= -lcurses -ltermlib"
  6279.  
  6280. #Encore, UMAX 4.3 (BSD) but without acucntrl program.
  6281. encore:
  6282.     $(MAKE) "MAKE=$(MAKE)" umax43 "KFLAGS=$(KFLAGS)"
  6283.  
  6284. #Encore, as above, but with curses file transfer display included.
  6285. encorec:
  6286.     $(MAKE) "MAKE=$(MAKE)" umax43 "KFLAGS=-DCK_CURSES $(KFLAGS)" \
  6287.     "LIBS= -lcurses -ltermcap"
  6288.  
  6289. #Encore, UMAX 4.3 (BSD) but without acucntrl program.
  6290. umax43:
  6291.     @echo Making C-Kermit $(CKVER) for Encore UMAX 4.3...
  6292.     $(MAKE) "MAKE=$(MAKE)" PARALLEL=4 xermit \
  6293.     "CFLAGS= -DBSD43 -DENCORE -DTCPSOCKET $(KFLAGS) -O"
  6294.  
  6295. #Encore, UMAX 4.2 (BSD)
  6296. umax42:
  6297.     @echo Making C-Kermit $(CKVER) for Encore UMAX 4.2...
  6298.     $(MAKE) "MAKE=$(MAKE)" PARALLEL=4 xermit \
  6299.     "CFLAGS= -DBSD4 -DENCORE -DTCPSOCKET $(KFLAGS) -O"
  6300.  
  6301. #Encore 88K UMAX 5.3 with TCP/IP support
  6302. encore88k:
  6303.     @echo 'Making C-Kermit $(CKVER) for Encore 88K UMAX V, TCP/IP...'
  6304.     $(MAKE) xermit \
  6305.     "CFLAGS = -q ext=pcc -DSVR3 -DTCPSOCKET -DDIRENT \
  6306.     -DNOGETID_PROTOS -DHDBUUCP $(KFLAGS) -O" "LNKFLAGS ="
  6307.  
  6308. #Encore 88K UMAX 5.3 with TCP/IP support
  6309. encore88kgcc:
  6310.     @echo 'Making C-Kermit $(CKVER) for Encore 88K UMAX V, TCP/IP, gcc...'
  6311.     $(MAKE) xermit CC=gcc CC2=gcc \
  6312.     "CFLAGS = -DSVR3 -DTCPSOCKET -DDIRENT \
  6313.     -DNOGETID_PROTOS -DHDBUUCP $(KFLAGS) -O" "LNKFLAGS ="
  6314.  
  6315. #SONY NEWS, NEWS-OS 4.01C
  6316. sonynews:
  6317.     @echo Making C-Kermit $(CKVER) for SONY NEWS-OS 4.01C...
  6318.     $(MAKE) xermit "CFLAGS= -DBSD43 -DACUCNTRL -DTCPSOCKET -O"
  6319.  
  6320. #Run Lint on this mess for selected versions.
  6321. #These are pretty much obsolete since ANSI C / gcc.
  6322. lintsun:
  6323.     @echo 'Running Lint on C-Kermit $(CKVER) sources for SunOS version...'
  6324.     lint -x -DSUNOS4 -DDIRENT -DTCPSOCKET -DSAVEDUID \
  6325.     ck[cu]*.c > ckuker.lint.sun
  6326.  
  6327. lintbsd:
  6328.     @echo 'Running Lint on C-Kermit $(CKVER) sources for BSD 4.2 version..'
  6329.     lint -x -DBSD4 -DTCPSOCKET ck[cu]*.c > ckuker.lint.bsd42
  6330.  
  6331. lints5:
  6332.     @echo 'Running Lint on C-Kermit $(CKVER) sources for Sys V version...'
  6333.     lint -x -DATTSV ck[cu]*.c > ckuker.lint.s5
  6334.  
  6335. #Who remembers TECO?
  6336. love:
  6337.     @echo 'Not war?'
  6338.