home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / archives / ckc197.zip / ckuker.mak < prev    next >
Text File  |  2000-03-02  |  283KB  |  6,303 lines

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