home *** CD-ROM | disk | FTP | other *** search
/ kermit.columbia.edu / kermit.columbia.edu.tar / kermit.columbia.edu / archives / cku196.openstep42-sparc.tar.gz / cku196.openstep42-sparc.tar / c-kermit7.0.196.S.b / makefile < prev    next >
Makefile  |  2000-01-06  |  262KB  |  5,969 lines

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