home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / old / ckermit5a188 / makefile < prev   
Makefile  |  2020-01-01  |  119KB  |  2,727 lines

  1. # CKUKER.MAK, Mon Mar  8 13:20:42 1993
  2. #
  3. CKVER= "5A(188)"
  4. #
  5. # -- Makefile to build C-Kermit 5A for UNIX and UNIX-like systems --
  6. #
  7. # Author: Frank da Cruz, Columbia University Center for Computing Activities
  8. # 612 West 115th Street, New York, NY 10025, USA.  Phone (212) 854-5126.
  9. # e-mail: fdc@watsun.cc.columbia.edu, fdc@columbia.edu, or FDCCU@CUVMA.BITNET.
  10. #
  11. # Copyright (C) 1985, 1993, Trustees of Columbia University in the City of New
  12. # York.  Permission is granted to any individual or institution to use this
  13. # software as long as it is not sold for profit.  This copyright notice must be
  14. # retained.  This software may not be included in commercial products without
  15. # written permission of Columbia University.
  16. #
  17. # CAREFUL: Don't put the lowercase word "if", "define", or "end" as the first
  18. # word after the "#" comment introducer in the makefile, even if it is
  19. # separated by whitespace.  Some versions of "make" understand these as
  20. # directives.  Uppercase letters remove the danger, e.g. "# If you have..."
  21. #
  22. # WARNING: This is a huge makefile, and it contains nested makes.
  23. # Some "make" programs run out of memory.  If this happens to you, edit
  24. # away all the parts that do not apply to your system and try again.
  25. #
  26. # For 2.10 or 2.11 BSD on DEC PDP-11s, use the separate makefile, ckubs2.mak.
  27. #
  28. #   C-Kermit can also be built for many other systems not supported by
  29. #   this makefile, including VAX/VMS, Data General AOS/VS, OS/2, the Apple
  30. #   Macintosh, the Commodore Amiga, OS-9, and the Atari ST.  They have their
  31. #   own separate build procedures.  See the file CKAAAA.HLP for information.
  32. #
  33. # INSTALLATION NOTES:
  34. #
  35. # Rename this file to "makefile" or "Makefile" if necessary.  Pick out the
  36. # make entry most appropriate for your UNIX system from the list below and
  37. # then give the appropriate "make" command, for example "make bsd", "make
  38. # sys5r3", "make posix".  For more detailed installation instructions, read
  39. # the files ckuins.doc and ckccfg.doc.  For descriptions of known problems and
  40. # limitations, read the files ckcker.bwr and ckuker.bwr (the "beware files").
  41. #
  42. # Most entries build C-Kermit with its symbol table included.
  43. # To reduce the size of the executable program, add "LNKFLAGS=-s" to
  44. # the end of your 'make' command or to the makefile entry.  To further reduce
  45. # the size after building, use 'mcs -d' if your system has such a command.
  46. #
  47. # TCP/IP networking support: If your version does not include TCP/IP
  48. # networking, try adding -DTCPSOCKET to the CFLAGS of your makefile entry.
  49. # If that doesn't work, look at some of the other entries that include this
  50. # flag for ideas about what libraries might need to be included, etc.
  51. #
  52. # Fullscreen file transfer display support: If you are going to use C-Kermit
  53. # for establishing connections (dialed, network, etc), you can configure it
  54. # produce a formatted file transfer display by including the curses library
  55. # and adding CK_CURSES to the CFLAGS for your option.  There are many examples
  56. # below, like rs6000c, du42c, sunos41c, etc.  After building, you still have
  57. # to SET FILE DISPLAY FULLSCREEN to get the formatted screen display.
  58. #
  59. # Please report modifications, successes, failures (preferably with fixes) or
  60. # successes to the author.
  61. #
  62. # MAKE COMMANDS FOR DIFFERENT UNIX VERSIONS:
  63. #
  64. # Some of the implementations listed below are untested for v5A:
  65. # + Marks those that have been tested successfully.
  66. # - Marks those that are known not to work.
  67. # ? Marks those yet untested in version 5A.
  68. #
  69. # + for 386BSD (Jolix) 0.0, 0.1, "make 386bsd" (see comments in entry),
  70. #     or (preferably, if it works) "make bsd44" or "make bsd44c".
  71. # + for Alliant FX/8 with Concentrix 4.1 or later, "make bsdlck"
  72. # + for Altos 486, 586, 986 with Xenix 3.0, "make altos"
  73. # + for Altos ACS68000, 8Mhz 68000, UNIX System 3 Rel 2, 512K, "make altos3"
  74. # ? for Amdahl UTS 2.4 on IBM 370 series & compatible mainframes, "make uts24"
  75. # + for Amdahl UTSV IBM 370 series & compatible mainframes, "make utsv"
  76. # + for Amdahl mainframes with UNIX System V R 5.2.6b 580, "make sys3"
  77. # ? for Apollo DOMAIN/IX, "make bsd" or "make sys3", for desired environment
  78. # ? for Apollo DOMAIN/IX, if the above fails, try "make apollobsd"
  79. # + for Apollo with SR10.0 or later, BSD environment, "make sr10-bsd"
  80. # + for Apollo with SR10.0 or later, System V environment, "make sr10-s5r3"
  81. # ? for Apollo with straight Aegis using native Aegis i/o,
  82. #     give "cc" commands for each module, then "bind" to link them together.
  83. # + for Apple Macintosh II with A/UX pre-3.0, "make aux", "auxgcc" or "auxufs"
  84. # + for Apple Macintosh with A/UX 3.0 and gcc, "make aux3gcc"
  85. # ? for Apple Macintosh with Minix 1.5.10, "make minix68k" or "make minixc68"
  86. # + for AT&T 6300 PLUS, "make att6300" or (with no debugging) "make att6300nd"
  87. # + for AT&T 6386 WGS UNIX PC, "make sys5r3"
  88. # + for AT&T 3B2, 3B20 systems, "make att3bx" or "make att3bxc"
  89. # + for AT&T 3B1, 7300 UNIX PC, "make sys3upc", "sys3upcg" (gcc), "sys3upcold",
  90. #     or (for fullscreen curses display) "make sys3upcc", "sys3upcgc" (gcc)
  91. #        or "make sys3upcx" (see entries for more explanation),
  92. #     or (for fullscreen curses display and shared library) "make sys3upcshcc"
  93. # + for AT&T System III/System V R2 or earlier, "make sys3" or "make sys3nid"
  94. # + for AT&T System III/System V with Honey DanBer UUCP, "make sys3hdb"
  95. # + for AT&T System V on DEC VAX, "make sys3" or "make sys5r3"
  96. # + for AT&T System V R3, use "make sys5r3".  This is different from the above.
  97. # + for AT&T System V R4, "make sys5r4", "make sys5r4sx", or "make sys5r4nx",
  98. #     or if the ANSI C function prototyping makes trouble, add -DNOANSI,
  99. #     as in "sys5r4sxna" entry
  100. # + for AT&T System V R4 with Wollongong TCP/IP, "make sys5r4net", ...
  101. # + for AT&T (USL) System V R4.2 ("Destiny") use the sys5r4 entries.
  102. # + for Atari ST with Minix ST 1.5.10.3, "make minix68k" or "make minixc68"
  103. # ? for BBN C/70 with IOS 2.0, "make c70"
  104. # + for Bell UNIX Version 7 (aka 7th Edition), "make v7" (but see below)
  105. # + for BSDI/386, "make bsdiposix"
  106. # + for Berkeley Unix 2.4, "make v7" (but read v7 material below)
  107. # ? for Berkeley Unix 2.9 (DEC PDP-11 or Pro-3xx), "make bsd29"
  108. # + for Berkeley Unix 2.10, use ckubs2.mak (a separate makefile)
  109. # + for Berkeley Unix 2.11, use ckubs2.mak (a separate makefile)
  110. #     Read the instructions in ckubs2.mak.
  111. #     Rename ckubs2.mak to makefile, then "make bsd210" or "make bsd211".
  112. # + for Berkeley Unix 4.1, "make bsd41"
  113. # + for Berkeley Unix 4.2, "make bsd" (tested with 4.2 and 4.3)
  114. # + for Berkeley Unix 4.2 or 4.3 with HoneyDanBer UUCP, "make bsdhdb"
  115. # + for Berkeley Unix 4.3, "make bsd43" (uses acucntrl program for locks)
  116. # + for Berkeley Unix 4.3 without acucntrl program, "make bsdlck" or "make bsd"
  117. # ? for Berkeley Unix 4.3-Tahoe, same as 4.3 BSD
  118. # + for Berkeley Unix 4.3-Reno, "make bsd43" or "make bsd44" or "make bsd44c"
  119. # + for Berkeley Unix 4.3-Carson City, "make bsd44" or "make bsd44c"
  120. # + for Berkeley Unix 4.4-Networking/2, "make bsd44" or "make bsd44c"
  121. # + for Berkeley Unix 4.4-Alpha, "make bsd44" or "make bsd44c"
  122. # ? for Bull DPX/2 with BOS/X, "make rs6000"
  123. # ? for Cadmus, "make sys3"
  124. # ? for Callan Unistar, "make sys3"
  125. # ? for CDC VX/VE 5.2.1 Sys V emulation, "make vxve"
  126. # + for Charles River Data Systems Universe 680x0 with UNOS 9.2, maybe
  127. #     also other UNOS versions, "make crds"
  128. # ? for CIE Systems 680/20 with Regulus, "make cie"
  129. # + for Commodore Amiga 3000UX Sys V R4, "make sys5r4sx"
  130. # + for Commodore Amiga 3000UX Sys V R4 and TCP/IP, "make svr4amiganet"
  131. # ? for Commodore Amiga with Minix 1.5.10, "make minix68k" of "make minixc68"
  132. # + for Concurrent/Masscomp with RTU 4.0 or later, BSD environment, "make 
  133. #     rtubsd", "make rtubsd2", "make rtubsd3" (depending on where ndir.h 
  134. #     is stored, see entries below).
  135. # ? for Concurrent/Masscomp with RTU 4.0 or later, System V R2, "make rtus5"
  136. # + for Concurrent/Masscomp with RTU 5.0 or later, System V R3, "make rtusvr3"
  137. # + for Concurrent (Perkin-Elmer) 3200 series, "make sys5".
  138. # + for Concurrent (Perkin-Elmer) 3200 series with <dirent.h>, "make ccop1"
  139. # + for Consensys UNIX SV/386 R4V3, "make sys5r4sx"
  140. # ? for Convergent with CTIX Sys V R2, "make sys5"
  141. # + for Convergent with CTIX 6.4.1, "make ctix"
  142. # + for Convex C1, "make convex"
  143. # + for Convex C210 with Convex/OS 8, "make convex8"
  144. # + for Convex C2 with Convex/OS 9.1, "make convex9"
  145. # + for Cray X/MP or YMP or C90 with UNICOS 6.x (System V R3), "make cray"
  146. # + for Cray X/MP or YMP or C90 with UNICOS 7.x (System V R4), "make cray"
  147. # + for Cray X/MP or YMP or C90 with UNICOS 8.0 Alpha, "make cray8"
  148. # + for Cyber 910 (Silicon-Graphics Iris) with Irix 3.3, "irix33"
  149. # + for Data General Aviion with Sys V R4 (DG/UX 5.4), "make dgux540"
  150. #     or "make dgux540c" (compile ckwart separately if necessary)
  151. # + for Data General Aviion with DG/UX 4.3x using Sys V-isms, "make dgux430"
  152. # ? for Data General Aviion with DG/UX 4.3x using BSD-isms, "make dgux430bsd"
  153. # ? for Data General Aviion, earlier UNIX versions,
  154. #     "make sys5r3" (maybe compile ckwart separately)
  155. # ? for Data General MV systems with DG/UX, ???
  156. # + for Data General MV systems with MV/UX, use AOS/VS C-Kermit
  157. # + for Data General MV systems with AOS/VS, use CKDKER.MAK.
  158. # + for DEC VAX with Ultrix 1.x "make bsd"
  159. # + for DEC VAX with Ultrix 2.x "make du2"
  160. # + for DEC VAX or DECstation with Ultrix 3.0, 3.1, "make du3"
  161. # + for DECstation (or VAX) with Ultrix 4.0 or 4.1, "make du4"
  162. # + for DECstation (or VAX) with Ultrix 4.x and Kanji support, "make du4kanji"
  163. # + for DECstation (or VAX) with Ultrix 4.2, "make du42" or "make du42c"
  164. # + for DECstation (or VAX) with Ultrix 4.2, Sys V R4 world, "make du42s5r4"
  165. # + for DECstation (or VAX) with Ultrix 4.x, POSIX world, "make posix"
  166. # + for DECstation with Ultrix 4.3, "make du42"
  167. # + for DECstation with OSF/1 V1.0, "make dec-osf"
  168. # + for DEC Alpha AXP with OSF/1, "make dec-osf"
  169. # - for DEC Pro-350 with Pro/Venix V1.x, "make provx1" (5A is too big)
  170. # ? for DEC Pro-350 with Pro/Venix V2.0 (Sys V), "make sys3nid" 
  171. # ? for DEC Pro-380 with Pro/Venix V2.0 (Sys V), "make sys3" or "make sys3nid"
  172. # ? for DEC Pro-380 with 2.9, 2.10, or 2.11 BSD, "make bsd29" or "make bsd210"
  173. # + for Dell UNIX Issue 2.x (= USL Sys V/386 R4.x + fixes), "make dellsys5r4"
  174. #     or "make dellsys5r4c"
  175. # + for DIAB DS90 with DNIX (any version) create an empty <sys/file.h> if
  176. #     this file does not already exist (or add -DNOFILEH to the make entry).
  177. # + for DIAB DS90 or LUXOR ABC-9000 with pre-5.2 DNIX, add "getcwd" to libc.a
  178. #     (see ckuins.doc), then "make dnixold".
  179. # + for DIAB DS90 with DNIX 5.2 (Sys V.2) or earlier, "make dnix",
  180. #     "make dnixnd", or (to add curses and TCP/IP) "make dnixnetc",
  181. # + for DIAB DS90 with DNIX 5.3 (Sys V.3), "make dnix5r3"
  182. # + for DIAB DS90 with DNIX 5.3 (Sys V.3) and TCP/IP, "make dnix5r3net"
  183. # + for DIAB DS90 with DNIX 5.3 2.2 (Sys V.3), ANSI C, "make dnix5r3ansi"
  184. #     but you have to fix a bug in /usr/include/stdlib.h first:
  185. #     change "extern void free(char *str);" to "extern void free(void *str);"
  186. # + for Dolphin Server Technology Triton 88/17 with SV/88 R3.2, "make sv88r32"
  187. # + for Encore Multimax 310, 510 with Umax 4.2, "make umax42"
  188. # + for Encore Multimax 310, 510 with Umax 4.3, "make umax43"
  189. # + for Encore Multimax 310, 510 with Umax V 2.2, use Berkeley cc, "make bsd"
  190. # + for Encore 88K with Umax V 5.2, "make encore88k"
  191. # + for ESIX System V R4.0.3 with TCP/IP support, "make esixr4"
  192. # + for Everex STEP 386/25 Rev G with ESIX Sys V R3.2D, "make sys5r3"
  193. # ? for Fortune 32:16, For:Pro 1.8, "make ft18"
  194. # + for Fortune 32:16, For:Pro 2.1, "make ft21"
  195. # + for FPS 500 with FPX 4.1, "made bsd"
  196. # ? for Harris Night Hawk 88K or 68K with CX/UX pre-6.1, "make sys5r3"
  197. # + for Harris Night Hawk 88K or 68K with CX/UX 6.1 or later, "make cx_ux"
  198. # ? for Heurikon, "make sys3"
  199. # ? for HP-3000, MPE/ix, "make posix"?
  200. # + for HP-9000 Series 500, HP-UX 5.21 with WIN/TCP 1.2 "make hpux500wintcp"
  201. # + for HP-9000 Series, HP-UX < 6.5, without long filenames, no job control,
  202. #     "make hpuxpre65"
  203. # + for HP-9000 Series, HP-UX pre-7.0, without long filenames, "make hpux"
  204. # ? for HP-9000 Series, HP-UX 7.0 or later, no long filenames, "make hpux7sf"
  205. # + for HP-9000 Series with HP-UX Sys V R2, BSD long names, "make hpuxlf"
  206. # + for HP-9000 Series with HP-UX Sys V R2, dirent long names, "make hpuxde"
  207. #     or (to include TCP/IP support) "make hpuxdetcp"
  208. # + for HP-9000 Series with HP-UX Sys V R3, "make hpuxs5r3"
  209. # + for HP-9000 Series with HP-UX 7.0, TCP/IP, long filenames, "make hpux70lfn"
  210. # + for HP-9000 300/400 Series (680x0) with HP-UX 8.0, TCP/IP, "make hpux80"
  211. #      or "make hpux80c"
  212. # + for HP-9000 700/800 Series (PA-RISC), HP-UX 8.0, TCP/IP, "make hpux80pa"
  213. #      or "make hpux80pac"
  214. # + for HP-9000 Series with HP-UX 8.0, no TCP/IP, long filenames,
  215. #      "make hpux80notcp" or "make hpuxde"
  216. # ? for IBM 370 Series with IX/370, "make ix370"
  217. # + for IBM 370 Series with AIX/370 1.2, "make aix370"
  218. # ? for IBM 370 Series with AIX/370 3.0, "make aix370"
  219. # + for IBM 370 Series with AIX/ESA 2.1, "make aixesa"
  220. # - for IBM PC/AT 286 & compatibles with Mark Williams Coherent OS,
  221. #     command-line-only version, "make coherent" (5A is too big)
  222. # + for IBM PC/AT & compatibles with Mark Williams Coherent OS,
  223. #     minimum interactive version, "make coherentmi" (386 version only)
  224. # + for IBM PC/AT & compatibles with Mark Williams Coherent OS,
  225. #     full interactive version, "make coherentmax" (386 version only)
  226. # - for IBM PC/AT & compatibles with original MINIX, "make minix" (too big)
  227. # + for IBM PC/AT & compatibles with MINIX, new compiler, "make minixnew"
  228. # + for IBM PC family, 386-based, with MINIX/386, "make minix386"
  229. #     or if you have GNU CC, "make minix386gcc"
  230. # + for IBM PS/2 with PS/2 AIX 1.0, 1.1, or 1.2, "make ps2aix" on make level
  231. #      1009 with U401450
  232. # + for IBM PS/2 with PS/2 AIX 1.3, "make ps2aix3"
  233. # + for IBM RISC System/6000 with AIX 3.0 or 3.1 "make rs6000" or
  234. #     "make rs6000c" on make level 2008, 3.1.8 
  235. # + for IBM RISC System/6000 with AIX 3.2.3Extended
  236. #     "make rs6000", "make rs6000c", "make rs6aix32", or "make rs6aix32c"
  237. # ? for IBM RT PC with AIX 2.1, "make sys3"
  238. # + for IBM RT PC with AIX 2.2.1, "make rtaix" or "make rtaixc"
  239. # ? for IBM RT PC with ACIS 4.2, "make bsd"
  240. # + for IBM RT PC with ACIS 4.3, "make rtacis" or "make bsd KFLAGS=-DNOANSI"
  241. # + for IBM RT PC with 4.3BSD/Reno, "make bsd44" or "make bsd44c"
  242. # + for ICL DRS3000 (80486) with DRS/NX, "make iclsys5r4_486"
  243. # + for ICL DRS6000 (Sparc) with DRS/NX, "make iclsys5r4"
  244. # + Integrated Solutions Inc V8S VME 68020, "make isi"
  245. # + for Intel 302 with Bell Tech Sys V/386 R3.2, "make sys5r3"
  246. # ? for Intel Xenix/286, "make sco286"
  247. # ? for Interactive System III (PC/IX), "make pcix" or "make is3"
  248. # + for Interactive System III (PC/IX) with gcc, "make is3gcc"
  249. # + for Interactive 386/ix 1.0.6 with TCP/IP networking, "make is5r3net2"
  250. # + for Interactive 386/ix 2.0.x, "make is5r3" or (POSIX) "make is5r3p"
  251. # + for Interactive 386/ix 2.0.x with TCP/IP networking, "make is5r3net"
  252. #     or "make is5r3net2"
  253. # + for Interactive 386/ix 2.2.1, job control, curses, no net, gcc,
  254. #     "make is5r3gcc"
  255. # + for Interactive 386/ix 2.2 - 3.0 with TCP/IP networking and job control,
  256. #     "make is5r3netjc"
  257. # + for Interactive UNIX Sys V R3 2.2 with job control, curses, "make is5r3jc"
  258. # + for Interactive UNIX Sys V R3 3.0, "make is5r3jc"
  259. # + for Intergraph Clipper, "make clix"
  260. # + for Linux/386, "make linuxgcc2" or "make linuxgcc2net"
  261. #     (reportedly, the lockfile might need to be changed to /usr/spool/LCK).
  262. # + for Luxor ABC-9000 (DIAB DS-90) with pre-5.2 DNIX, add "getcwd" to libc.a
  263. #     (see ckuins.doc), then "make dnixold".
  264. # ? for Masscomp RTU AT&T System III, "make rtu"
  265. #   for other Masscomp, see Concurrent.
  266. # ? for Microport SV/AT (System V R2), "make mpsysv" (last edit tested: 144)
  267. # + for Microport SVR4 2.2, 3.1, or 4.1 "make sys5r4sx"
  268. # ? for Microsoft,IBM Xenix (/286, PC/AT, etc), "make xenix" or "make sco286"
  269. # + for MIPS System with RISC/os (UMIPS) 4.52 = AT&T SVR3, "make mips"
  270. #     or "make mipstcpc"
  271. # + for Modcomp 9730, Real/IX, "make sys5r3" (or modify to use gcc = GLS cc)
  272. # + for Modcomp Realstar 1000 with REAL/IX D.1, "make sv88r32"
  273. # ? for Motorola Four Phase, "make sys3" or "make sys3nid"
  274. # + for Motorola Delta System V/68 R3, "make sv68r3"
  275. # + for Motorola Delta System V/68 R3V5, "make sv68r3v5"
  276. # + for Motorola Delta System V/68 R3V5.1, "make sv68r3v51"
  277. # + for Motorola Delta System V/88 R32, "make sv88r32"
  278. # + for Motorola Delta System V/88 R40, "make sv88r40"
  279. # + for Mt Xinu Mach386 on 386/486-based PCs, "make bsd43"
  280. # ? for NCR Tower 1632, OS 1.02, "make tower1"
  281. # + for NCR Tower 1632 or Minitower with System V R2, "make sys3"
  282. #     or "make sys3nv"
  283. # + for NCR Tower 32, OS Release 1.xx.xx, "make tower32-1"
  284. # + for NCR Tower 32, OS Release 2.xx.xx, "make tower32-2"
  285. # + for NCR Tower 32, OS Releases based on Sys V R3, "make tower32"
  286. # + for NCR Tower 32, OS Releases based on Sys V R3 with gcc "make tower32g"
  287. # + for NCR System 3000, AT&T UNIX System V R4 2.0, "make sys5r4sxna"
  288. # + for NeXTSTEP 1.0 through 3.0, "make next"
  289. # + for Nixdorf Targon/31, "make t31tos40x"
  290. # + for Norsk Data Uniline 88/17 with SV/88 R3.2, "make sv88r32"
  291. # + for OkiStation 7300 Series, "make sys5r4sxtcp" 
  292. # + for Olivetti LSX-3020 with X/OS R.2.3, "make xos23" or "make xos23c"
  293. # + for Perkin-Elmer (Concurrent) 3200 series, "make sys5".
  294. # + for Perkin-Elmer (Concurrent) 3200 series with <dirent.h>, "make ccop1"
  295. # + for Perkin-Elmer/Concurrent 3200 with Xelos R02, "make ccop1"
  296. # + for PFU Compact A Series SX/A TISP V10/E50 (Japan), "make sxae50"
  297. # ? for Plexus, "make sys3"
  298. # + for Pyramid 9810x (T series) OSx 4.4b, "make pyramid" or "ucb make pyramid"
  299. # + for POSIX on anything, "make posix" (but adjustments might be necessary).
  300. # + for POSIX on SunOS 4.1 or later, "make sunposix"
  301. # + for QNX 4.1 on 286 PC or above, Watcom C 8.5, "make qnx"
  302. # ? for Ridge 32 (ROS3.2), "make ridge32"
  303. # ? for Samsung MagicStation, "make sys5r4"
  304. # ? for SCO Xenix 2.2.1 with development system 2.2 on 8086/8 "make sco86"
  305. # + for SCO Xenix/286 2.2.1 with development system 2.2 on 80286, "make sco286"
  306. #     NOTE: reportedly this makefile is too long for SCO Xenix/286 make, but it
  307. #     works with "makeL", or if some of the other make entries are edited out.
  308. # + for SCO Xenix/386 2.2.2, "make sco386"
  309. # + for SCO Xenix/386 2.3.x, "make sco3r2" or "make sco3r2x"
  310. # + for SCO UNIX/386 3.2.0 or 3.2.1, "make sco3r2" or "make sco3r2x"
  311. # + for SCO UNIX/386 3.2.2, "make sco3r22" or "make sco3r22gcc"
  312. # + for SCO UNIX/386 3.2.2 with SCO TCP/IP, "make sco3r22net" 
  313. #     or "make sco3r22netc" (curses)
  314. # + for SCO ODT 1.1, "make sco3r22net" or "make sco3r22netc" (curses)
  315. # + for SCO UNIX/386 3.2 V4.0, no network support, "make sco32v4"
  316. # + for SCO UNIX 3.2 V4.0 with TCP/IP, <dirent.h> for Extended Acer File 
  317. #     System (EAFS), curses, ANSI C compilation, "make sco32v4net"
  318. # + for SCO ODT 2.0, "make sco32v4net"
  319. # + for SCO Xenix/386 or UNIX/386 with Excelan TCP/IP, "make sco3r2net"
  320. #     or (to add curses support) "make sco3r2netc"
  321. # + for SCO Xenix 2.3.x with Racal-InterLan TCP/IP, "make sco3r2netri"
  322. # + for SCO Xenix 2.3.x with SCO (Lachman) TCP/IP, "make sco3r2lai"
  323. # + for other UNIX varieties with Racal Interlan TCP/IP, read sco3r2netri entry
  324. # + for Sequent with DYNIX/PTX 1.2.1, "make dynix12"
  325. # + for Sequent with DYNIX/PTX 1.3 or 1.4 with TCP/IP, "make dynix13"
  326. # + for Sequent Balance 8000 or B8 with DYNIX 3.0.xx, "make dynix3"
  327. #    or "make dynix3noacu"
  328. # + for Sequent Symmetry S81 with DYNIX 3.0.xx, "make dynix3"
  329. # + for Sequent DYNIX 3.1.xx, "make dynix31" or "make dynix31c"
  330. # + for Silicon Graphics Iris System V IRIX 3.2 or earlier, "make iris"
  331. # + for Silicon Graphics Sys V R3 with IRIX 3.3 or later, "make sys5r3"
  332. # + for Silicon Graphics Iris Indigo with IRIX 4.0, "make irix40"
  333. # + for Solaris 2.0, "make sunsol20" -- should work on any computer that
  334. #    runs Solaris 2.0, since it supposed to be portable.
  335. # + for Solaris 2.1 on a Sun SPARCstation, "make sunos51", "sunos51tcp", etc.
  336. # ? for Solaris 2.1 on a 486-based PC, "make sunos51", "sunos51tcp", etc.
  337. # + for Solbourne 4/500 with OS/MP 4 "make sunos4"
  338. # + for Solbourne 4/500 with OS/MP 4.1 "make sunos41" or "make sunos41c"
  339. # + for SONY NEWS with NEWS-OS 4.0.1C, "make sonynews"
  340. # + for SONY NEWS with NEWS-OS 4.1.2C, "make sonynews"
  341. # + for Sperry/UNISYS 5000/20, UTS V 5.2 3R1, "make sys5"
  342. # + for Sperry/UNISYS 5000/30/35/50/55, UTS V 5.2 2.01, "make unisys5r2"
  343. # + for Sperry/UNISYS 5000/80 with System V R3, "make sys5r3"
  344. # + for Sperry/UNISYS 5000/95 with System V R3, "make sys5r3"
  345. #     For UNISYS SVR3 it might be necessary to "make sys5r3 KFLAGS=-UDYNAMIC"
  346. # + for Stardent 1520, "make sys5r3"
  347. # + for Sun with Sun UNIX 3.5 and gcc, "make sunos3gcc"
  348. # + for Sun with pre-4.0 SunOS versions, "make bsd" (or appropriate variant)
  349. # + for Sun with SunOS 4.0, BSD environment, "make sunos4"
  350. # + for Sun with SunOS 4.0, BSD, with SunLink X.25, make sunos4x25
  351. # + for Sun with SunOS 4.0, AT&T Sys V R3 environment, "make sunos4s5"
  352. # + for Sun with SunOS 4.1 or 4.1.1, BSD environment, "make sunos41"
  353. #     or "make sunos41c" (curses) or "make sunos41gcc" (compile with gcc)
  354. # + for Sun with SunOS 4.1, BSD, with SunLink X.25, "make sunos41x25"
  355. #     or "make sunos41x25c" (curses)
  356. # + for Sun with SunOS 4.1, 4.1.1, AT&T Sys V R3 environment, "make sunos41s5" 
  357. # + for Sun with SunOS 4.1, 4.1.1, POSIX environment, "make sunposix"
  358. # + for Sun with SunOS 4.1.2, "make sunos41" or any of its variations.
  359. #     NOTE:  All SUNOS 4.x systems -- Shared libraries are used by default.
  360. #       If this causes problems, add -Bstatic to CFLAGS.
  361. #     NOTE2: When building C-Kermit under SunOS for the BSD universe,
  362. #       but /usr/5bin/cc is ahead of /usr/ucb/cc in your PATH, add
  363. #       "CC=/usr/ucb/cc CC2=/usr/ucb/cc" to the make entry.
  364. #     NOTE3: If an executable built on one type of Sun hardware does not work
  365. #       on another type, rebuild the program from source on the target machine.
  366. # + for Sun with Solaris 1.0 == SUNOS 4.1.2, "make sunos41"
  367. # + for Sun with SunOS 5.0 == Solaris 2.0, "make sunsol20"
  368. # + for Sun with Solaris 2.0, "make sunsol20"
  369. # + for Sun with Solaris 2.0 and CD-ROM gcc compiler, "make sunsol20gcc"
  370. # + for Sun with SunOS 5.1 == Solaris 2.1, "make sunos51", "make sunos51tcp",
  371. #     "make sunos51c", or "make sunos51cgcc".
  372. # + for Tandy 16/6000 with Xenix 3.0, "make trs16"
  373. # + for Tektronix 6130/4132/43xx (e.g.4301) with UTek OS, "make utek"
  374. #     or (for models without hardware flow control), "make uteknohwfc"
  375. # + for Tektronix XD88 series with UTekV OS, "make utekvr3"
  376. # + for Tri Star Flash Cache with Esix SVR3.2, "make sys5r3"
  377. # ? for Unistar, "make sys5"
  378. # + for UNISYS S/4040 68040 CTIX SVR3.2 6.4.1, "make ctix" or "make sys5r3"
  379. # + for UNISYS U6000/65 MP 486/50 UNIX SVR4 1.0.2, "make sys5r4nx"
  380. #   for UNISYS ... (also see Sperry)
  381. # ? for Univel UnixWare, "make sys5r4" or one of the other SVR4-related entries
  382. # ? for Valid Scaldstar, "make valid"
  383. # ? for Whitechapel MG01 Genix 1.3, "make white"
  384. # ? for Zilog ZEUS 3.21, "make zilog"
  385. #
  386. # The result should be a runnable program called "wermit" in the current 
  387. # directory.  After satisfactory testing, you can rename wermit to "kermit" 
  388. # and put it where users can find it.
  389. #
  390. # To remove intermediate and object files, "make clean".
  391. # To run lint on the source files, "make lintsun", "make lintbsd",
  392. # "make lints5", as appropriate.
  393. #
  394. ##############################################################################
  395. #
  396. # NOTES FOR V7 AND 2.X BSD (BASED ON VERSION 4E OF C-KERMIT):
  397. #
  398. # For Unix Version 7, several variables must be defined to the values
  399. # associated with your system.  BOOTNAME=/edition7 is the kernel image on
  400. # okstate's Perkin-Elmer 3230.  Others will probably be /unix.  PROCNAME=proc
  401. # is the name of the structure assigned to each process on okstate's system.
  402. # This may be "_proc" or some other variation.  See <sys/proc.h> for more
  403. # info on your systems name conventions.  NPROCNAME=nproc is the name of a
  404. # kernel variable that tells how many "proc" structures there are.  Again
  405. # this may be different on your system, but nproc will probably be somewhere.
  406. # The variable NPTYPE is the type of the nproc variable -- int, short, etc.
  407. # which can probably be gleaned from <sys/param.h>.  The definition of DIRECT
  408. # is a little more complicated.  If nlist() returns, for "proc" only, the
  409. # address of the array, then you should define DIRECT as it is below.  If
  410. # however, nlist() returns the address of a pointer to the array, then you
  411. # should give DIRECT a null definition (DIRECT= ).  The extern declaration in
  412. # <sys/proc.h> should clarify this for you.  If it is "extern struct proc
  413. # *proc", then you should NOT define DIRECT.  If it is "extern struct proc
  414. # proc[]", then you should probably define DIRECT as it is below.  See
  415. # ckuv7.hlp for further information.
  416. #
  417. # For 2.9 BSD, the makefile may use pcc rather than cc for compiles; that's
  418. # what the CC and CC2 definitions are for (the current version of the
  419. # makefile uses cc for both; this was tested in version 4E of C-Kermit and
  420. # worked OK on the DEC Pro 380, but all bets are off for version 5A).  2.9
  421. # support basically follows the 4.1 path.  Some 2.9 systems use "dir.h" for
  422. # the directory header file, others will need to change this to "ndir.h".
  423. # 2.10 and 2.11BSD follow the 4.3BSD path and are build with a special entry,
  424. # bsd210, which uses overlays.
  425. #
  426. # The v7 and 2.9bsd versions assume I&D space on a PDP-11.  When building
  427. # C-Kermit for v7 on a PDP-11, you should probably add the -i option to the
  428. # link flags.  Without I&D space, overlays will be necessary (if available),
  429. # or code segment mapping (a`la Pro/Venix) if that's available.
  430. #
  431. ##############################################################################
  432. #
  433. # V7-specific variables.
  434. # These are set up for Perkin-Elmer 3230 V7 Unix:
  435. PROC=proc
  436. DIRECT=
  437. NPROC=nproc
  438. NPTYPE=int
  439. BOOTFILE=/edition7
  440. #
  441. # ( For old Tandy TRS-80 Model 16A or 6000 V7-based Xenix, use PROC=_proc,
  442. #   DIRECT=-DDIRECT, NPROC=_Nproc, NPTYPE=short, BOOTFILE=/xenix )
  443. #
  444. ###########################################################################
  445. #
  446. #  Compile and Link variables:
  447. #
  448. #  EXT is the extension (file type) for object files, normally o.
  449. #  See MINIX entry for what to do if another filetype must be used.
  450. #
  451. EXT=o
  452. #LNKFLAGS=
  453. SHAREDLIB=
  454. CC= cc
  455. CC2= cc
  456. MAKE= make
  457. SHELL=/bin/sh
  458. #
  459. ###########################################################################
  460. #
  461. # Easy installation. Modify this to suit your own computer's file organization
  462. # and permissions.  If you don't have write access to the destination
  463. # directories, "make install" will fail.
  464.  
  465. WERMIT = makewhat
  466. DESTDIR =
  467. BINDIR = /usr/local/bin
  468. MANDIR = /usr/man/manl
  469. MANEXT = l
  470. ALL = $(WERMIT)
  471.  
  472. all: $(ALL)
  473.  
  474. install: $(ALL)
  475.     cp wermit $(DESTDIR)$(BINDIR)/kermit
  476. # The following can fail if the program image was already stripped,
  477. # for example by the link flags in the makefile entry.
  478. #    strip $(DESTDIR)$(BINDIR)/kermit
  479.     chmod 755 $(DESTDIR)$(BINDIR)/kermit
  480.     cp ckuker.nr $(DESTDIR)$(MANDIR)/kermit.$(MANEXT)
  481.     chmod 644 $(DESTDIR)$(MANDIR)/kermit.$(MANEXT)
  482.  
  483. makewhat:
  484.     @echo 'make what?  You must tell which system to make C-Kermit for.'
  485.     @echo Examples:  make bsd43, make sys5, make sunos41, etc.
  486.     @echo Please read the comments at the beginning of the makefile.
  487.  
  488. ###########################################################################
  489. #
  490. # Dependencies Section:
  491.  
  492. wermit:    ckcmai.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) ckuus2.$(EXT) ckuus3.$(EXT) \
  493.         ckuus4.$(EXT) ckuus5.$(EXT) ckuus6.$(EXT) ckuus7.$(EXT) \
  494.         ckuusx.$(EXT) ckuusy.$(EXT) ckcpro.$(EXT) ckcfns.$(EXT) \
  495.         ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) ckucon.$(EXT) \
  496.         ckutio.$(EXT) ckufio.$(EXT) ckudia.$(EXT) ckuscr.$(EXT) \
  497.         ckcnet.$(EXT)
  498.     $(CC2) $(LNKFLAGS) -o wermit ckcmai.$(EXT) ckutio.$(EXT) \
  499.         ckufio.$(EXT) ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) \
  500.         ckuxla.$(EXT) ckcpro.$(EXT) ckucmd.$(EXT) ckuus2.$(EXT) \
  501.         ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) ckuus6.$(EXT) \
  502.         ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) ckuusr.$(EXT) \
  503.         ckucon.$(EXT) ckudia.$(EXT) ckuscr.$(EXT) ckcnet.$(EXT) $(LIBS)
  504.  
  505. #Malloc Debugging version
  506.  
  507. mermit:    ckcmdb.$(EXT) ckcmai.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) ckuus2.$(EXT) \
  508.         ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) ckuus6.$(EXT) \
  509.         ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) ckcpro.$(EXT) \
  510.         ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) \
  511.         ckucon.$(EXT) ckutio.$(EXT) ckufio.$(EXT) ckudia.$(EXT) \
  512.         ckuscr.$(EXT) ckcnet.$(EXT)
  513.     $(CC2) $(LNKFLAGS) -o mermit ckcmdb.$(EXT) ckcmai.$(EXT) \
  514.         ckutio.$(EXT) ckufio.$(EXT) ckcfns.$(EXT) ckcfn2.$(EXT) \
  515.         ckcfn3.$(EXT) ckuxla.$(EXT) ckcpro.$(EXT) ckucmd.$(EXT) \
  516.         ckuus2.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) \
  517.         ckuus6.$(EXT) ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) \
  518.         ckuusr.$(EXT) ckucon.$(EXT) ckudia.$(EXT) ckuscr.$(EXT) \
  519.         ckcnet.$(EXT) $(LIBS)
  520.  
  521. # Here is an example of building Kermit with overlays for a small machine,
  522. # Like a PDP-11 without separate I&D space. This example is for 2.11 BSD:
  523.  
  524. ovwermit: ckcmai.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) ckuus2.$(EXT) \
  525.     ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) ckcpro.$(EXT) \
  526.     ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) \
  527.     ckucon.$(EXT) ckutio.$(EXT) ckufio.$(EXT) ckudia.$(EXT) \
  528.     ckuscr.$(EXT) ckcnet.$(EXT) ckuus6.$(EXT) ckuus7.$(EXT) ckuusx.$(EXT) \
  529.     ckuusy.$(EXT) ckustr.o strings.o
  530.     ar x /lib/libc.a getpwent.o ctime.o ndbm.o
  531.     $(CC2) $(LNKFLAGS) -o wermit ckcmai.$(EXT) \
  532.         ckutio.$(EXT) ckufio.$(EXT) ckcfns.$(EXT) ckcfn2.$(EXT) \
  533.         ckcfn3.$(EXT) \
  534.          -Z ckuxla.$(EXT) ckcpro.$(EXT) ckucmd.$(EXT) \
  535.             ckuus3.$(EXT) \
  536.          -Z ckuus4.$(EXT) ckuus5.$(EXT) ckuusr.$(EXT) ckuus6.$(EXT) \
  537.             ctime.o \
  538.          -Z ckuus7.$(EXT) ckcfn3.$(EXT) ckudia.$(EXT) ckuscr.$(EXT) \
  539.             ckcnet.$(EXT)  \
  540.          -Z ckuus2.$(EXT) ckuusx.$(EXT) ckucon.$(EXT) ckuusy.$(EXT) \
  541.             getpwent.o ndbm.o \
  542.          -Y ckustr.o strings.o $(LIBS)
  543.  
  544. strings.o: strings
  545.     xstr
  546.     cc -c xs.c
  547.     mv -f xs.o strings.o
  548.     rm -f xs.c
  549.  
  550. # Dependencies for each module...
  551. #
  552. # The following almost makes this work with gcc on the Sun-4.
  553. # .SUFFIXES: .c .$(EXT)
  554. # .$(EXT).c: ;    $(CC) $(CFLAGS) -c $<
  555.  
  556. ckcmai.$(EXT): ckcmai.c ckcker.h ckcdeb.h ckcsym.h ckcasc.h ckcnet.h
  557.  
  558. ckcpro.$(EXT): ckcpro.c ckcker.h ckcdeb.h ckcasc.h
  559.  
  560. ckcpro.c: ckcpro.w wart ckcdeb.h ckcasc.h ckcker.h
  561.     ./wart ckcpro.w ckcpro.c
  562.  
  563. ckcfns.$(EXT): ckcfns.c ckcker.h ckcdeb.h ckcsym.h ckcasc.h ckcxla.h \
  564.         ckuxla.h
  565.  
  566. ckcfn2.$(EXT): ckcfn2.c ckcker.h ckcdeb.h ckcsym.h ckcasc.h ckcxla.h ckuxla.h
  567.  
  568. ckcfn3.$(EXT): ckcfn3.c ckcker.h ckcdeb.h ckcsym.h ckcasc.h ckcxla.h \
  569.         ckuxla.h
  570.  
  571. ckuxla.$(EXT): ckuxla.c ckcker.h ckcdeb.h ckcxla.h ckuxla.h
  572.  
  573. ckuusr.$(EXT): ckuusr.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcxla.h ckuxla.h \
  574.         ckcasc.h ckcnet.h
  575.  
  576. ckuus2.$(EXT): ckuus2.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcxla.h ckuxla.h \
  577.         ckcasc.h
  578.  
  579. ckuus3.$(EXT): ckuus3.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcxla.h ckuxla.h \
  580.         ckcasc.h ckcnet.h
  581.  
  582. ckuus4.$(EXT): ckuus4.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcxla.h ckuxla.h \
  583.         ckcasc.h ckcnet.h ckuver.h
  584.  
  585. ckuus5.$(EXT): ckuus5.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcasc.h
  586.  
  587. ckuus6.$(EXT): ckuus6.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcasc.h
  588.  
  589. ckuus7.$(EXT): ckuus7.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcxla.h ckuxla.h \
  590.         ckcasc.h ckcnet.h
  591.  
  592. ckuusx.$(EXT): ckuusx.c  ckcker.h ckuusr.h ckcdeb.h ckcasc.h
  593.  
  594. ckuusy.$(EXT): ckuusy.c  ckcker.h ckcdeb.h ckcasc.h
  595.  
  596. ckucmd.$(EXT): ckucmd.c ckcasc.h ckucmd.h ckcdeb.h
  597.  
  598. ckufio.$(EXT): ckufio.c ckcdeb.h ckuver.h
  599.  
  600. ckutio.$(EXT): ckutio.c ckcdeb.h ckcnet.h ckuver.h
  601.  
  602. ckucon.$(EXT): ckucon.c ckcker.h ckcdeb.h ckcasc.h ckcnet.h
  603.  
  604. ckcnet.$(EXT): ckcnet.c ckcdeb.h ckcker.h ckcnet.h
  605.  
  606. wart: ckwart.$(EXT)
  607.     $(CC) $(LNKFLAGS) -o wart ckwart.$(EXT) $(LIBS)
  608.  
  609. ckcmdb.$(EXT): ckcmdb.c ckcdeb.h
  610.  
  611. ckwart.$(EXT): ckwart.c
  612.  
  613. ckudia.$(EXT): ckudia.c ckcker.h ckcdeb.h ckucmd.h ckcasc.h
  614.  
  615. ckuscr.$(EXT): ckuscr.c ckcker.h ckcdeb.h ckcasc.h
  616.  
  617. ###########################################################################
  618. #
  619. # Entries to make C-Kermit for specific systems.
  620. #
  621. # Put the ones that need short makefiles first.
  622.  
  623. bsd210:
  624.     @echo Please use ckubs2.mak to build C-Kermit $(CKVER) for 2.10BSD.
  625.  
  626. bsd211:
  627.     @echo Please use ckubs2.mak to build C-Kermit $(CKVER) for 2.11BSD.
  628.  
  629. #Apple Mac II, A/UX pre-3.0
  630. #Warning, if "send *" doesn't work, try the auxufs makefile entry below.
  631. aux:
  632.     @echo Making C-Kermit $(CKVER) for Macintosh A/UX...
  633.     $(MAKE) wermit "CFLAGS = -DAUX -DDYNAMIC -DTCPSOCKET $(KFLAGS) -i -O" \
  634.         "LNKFLAGS = -i"
  635.  
  636. #Apple Mac II, A/UX pre-3.0, compiled with gcc
  637. auxgcc:
  638.     @echo Making C-Kermit $(CKVER) for Macintosh A/UX...
  639.     $(MAKE) wermit "CFLAGS = -DAUX -DDYNAMIC -DTCPSOCKET $(KFLAGS) \
  640.     -traditional -i -O" "LNKFLAGS = " "CC = gcc" "CC2 = gcc"
  641.  
  642. #Apple Mac II, A/UX, pre-3.0, but with ufs file volumes, uses <dirent.h>.
  643. auxufs:
  644.     @echo Making C-Kermit $(CKVER) for Macintosh A/UX...
  645.     $(MAKE) wermit "CFLAGS = -DAUX -DDYNAMIC -DTCPSOCKET -DDIRENT \
  646.     $(KFLAGS) -i -O" "LNKFLAGS = -i"
  647.  
  648. #Apple Mac II, A/UX 3.0, compiled with gcc
  649. aux3gcc:
  650.     @echo Making C-Kermit $(CKVER) for Macintosh A/UX 3.0...
  651.     $(MAKE) wermit "CFLAGS = -DAUX -DHDBUUCP -DLFDEVNO -DDYNAMIC \
  652.     -DTCPSOCKET -DDIRENT $(KFLAGS) -O2" "LNKFLAGS =" \
  653.     "CC=gcc -pipe -traditional" "CC2=gcc -pipe -traditional"
  654.  
  655. #Berkeley Unix 4.1
  656. bsd41:
  657.     @echo Making C-Kermit $(CKVER) for 4.1BSD...
  658.     $(MAKE) wermit "CFLAGS= -DBSD41" "LIBS = -ljobs"
  659.  
  660. #Berkeley 4.2, 4.3, also Ultrix-32 1.x, 2.x, 3.x, many others
  661. # Add -O, -DDYNAMIC, -s, etc, if they work.
  662. # If you have a version of BSD but signal() is void rather than int,
  663. # "make bsd KFLAGS=-DSIG_V".
  664. bsd:
  665.     @echo Making C-Kermit $(CKVER) for 4.2BSD...
  666.     $(MAKE) wermit "CFLAGS= -DBSD4 -DTCPSOCKET $(KFLAGS)"
  667.  
  668. #Berkeley 4.2, 4.3, minimum size
  669. bsdm:
  670.     @echo Making C-Kermit $(CKVER) for 4.2BSD...
  671.     $(MAKE) wermit "CFLAGS= -O -DBSD4 -DDYNAMIC -DNODIAL -DNOHELP \
  672.     -DNODEBUG -DNOTLOG -DNOSCRIPT -DNOCSETS -DNOICP $(KFLAGS)" \
  673.     "LNKFLAGS = -s"
  674.  
  675. #Berkeley Unix with HoneyDanBer UUCP
  676. bsdhdb:
  677.     @echo Making C-Kermit $(CKVER) for 4.2BSD with HDB UUCP...
  678.     $(MAKE) wermit "CFLAGS= -DHDBUUCP -DBSD4 -DTCPSOCKET $(KFLAGS)"
  679.  
  680. #Berkeley Unix 4.3 with acucntrl program
  681. bsd43:
  682.     @echo Making C-Kermit $(CKVER) for 4.3BSD with acucntrl...
  683.     $(MAKE) wermit "CFLAGS= -DBSD43 -DACUCNTRL -DTCPSOCKET $(KFLAGS) -O"
  684.  
  685. #Ditto, with curses support.
  686. bsd43d:
  687.     @echo Making C-Kermit $(CKVER) for 4.3BSD with acucntrl and curses...
  688.     $(MAKE) wermit "CFLAGS= -DBSD43 -DACUCNTRL -DTCPSOCKET -DCK_CURSES \
  689.     $(KFLAGS) -O"  "LIBS=-lcurses -ltermcap"
  690.  
  691. #Berkeley Unix 4.2 or 4.3 with lock directory /usr/spool/uucp/LCK/LCK..ttyxx,
  692. #but without acucntrl program
  693. bsdlck:
  694.     @echo Making C-Kermit $(CKVER) for 4.2BSD, /usr/spool/uucp/LCK/...
  695.     $(MAKE) wermit "CFLAGS= -DLCKDIR -DBSD4 -DTCPSOCKET $(KFLAGS)"
  696.  
  697. #Berkeley UNIX 4.4-Alpha, NET/2, etc (Post-Reno), with TCP/IP networking.
  698. #NOTE: This is not a pure POSIX configuration.  Using -DPOSIX instead of
  699. #-DBSD44 prevents any kind of directory-reading (for wildcard expansion),
  700. #and disallows use of ENOTCONN symbol for detecting broken network
  701. #connections, and disallows RTS/CTS flow control, and would also require
  702. #definition of the appropriate UUCP lockfile convention.
  703. bsd44:
  704.     @echo Making C-Kermit $(CKVER) for 4.4BSD...
  705.     $(MAKE) wermit "CFLAGS= -DBSD44 -DDYNAMIC -DTCPSOCKET $(KFLAGS) -O"
  706.  
  707. #Berkeley UNIX 4.4, as above, but with curses for fullscreen display
  708. bsd44c:
  709.     @echo Making C-Kermit $(CKVER) for 4.4BSD with curses...
  710.     $(MAKE) wermit "CFLAGS= -DBSD44 -DCK_CURSES -DDYNAMIC -DTCPSOCKET \
  711.     $(KFLAGS) -O" "LIBS= -lcurses -ltermcap"
  712.  
  713. #Tektronix 6130, 4319, 4301, etc, with UTek OS, /usr/spool/uucp/LCK./...
  714. #The models that support hardware flow control.
  715. utek:
  716.     @echo 'Making C-Kermit $(CKVER) for 4.2BSD/UTek, hardware flow control'
  717.     $(MAKE) wermit "CFLAGS= -O -DLCKDIR -DBSD4 -DTCPSOCKET -DDYNAMIC \
  718.     -DUTEK -DDCLPOPEN -DLOCK_DIR=\\\"/usr/spool/uucp/LCK.\\\" \
  719.     -DTRMBUFL=2048 -DCK_DTRCTS $(KFLAGS)"
  720.  
  721.  
  722. #Tektronix 4315, 4316, 4317 with UTek OS, /usr/spool/uucp/LCK./...
  723. #The models that do not fully support hardware flow control.
  724. uteknohwfc:
  725.     @echo 'Making C-Kermit $(CKVER) for 4.2BSD/UTek, no h/w flow control'
  726.     $(MAKE) wermit "CFLAGS= -O -DLCKDIR -DBSD4 -DTCPSOCKET -DDYNAMIC \
  727.     -DUTEK -DDCLPOPEN -DLOCK_DIR=\\\"/usr/spool/uucp/LCK.\\\" \
  728.     -DTRMBUFL=2048 $(KFLAGS)"
  729.  
  730. #Tektronix XD88 with  UTekV OS 
  731. utekvr3:
  732.     @echo 'Making C-Kermit $(CKVER) for Tektronix XD88 UTekV R3...'
  733.     $(MAKE) wermit \
  734.     "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -DDYNAMIC \
  735.     -DTCPSOCKET -DSYSUTIMEH -DCK_CURSES $(KFLAGS) -O" \
  736.     "LIBS= -lcurses" "LNKFLAGS= -s"
  737.  
  738. #Convergent CTIX 6.4.1
  739. ctix:
  740.     @echo 'Making C-Kermit $(CKVER) for Convergent CTIX 6.4.1'
  741.     $(MAKE) wermit \
  742.     "CFLAGS= -DSVR3 -DDIRENT -DTCPSOCKET -DHDBUUCP -DCK_CURSES -DDYNAMIC \
  743.     $(KFLAGS) -XO" "LNKFLAGS=-s" "LIBS=-lsocket -lcurses -lc_s"
  744.     mcs -d wermit
  745.  
  746. # The following makefile entry should work for any Harris Night Hawk system
  747. # (either 88k or 68k based) running release 6.1 or later of the CX/UX
  748. # operating system. This is a POSIX and ANSI-C compliant system which also
  749. # supports BSD networking. (Earlier CX/UX releases will probably work with
  750. # sys5r3, but this has not been verified).
  751. #
  752. cx_ux:
  753.     @echo Making C-Kermit $(CKVER) for Harris Night Hawk CX/UX 6.1 or later
  754.     $(MAKE) wermit \
  755.     "CFLAGS=-DPOSIX -DTCPSOCKET -DHDBUUCP -DPID_T=pid_t -DWAIT_T=int \
  756.     -Dd_ino=d_fileno -DUID_T=uid_t -DGID_T=gid_t -DDYNAMIC $(KFLAGS) -Xa \
  757.     -O3 -g" "LNKFLAGS=-O3"
  758.  
  759. #Perkin-Elmer 3200 Xelos R02 or earlier
  760. ccop1:
  761.     @echo 'Making C-Kermit $(CKVER) for Xelos & Public Domain Dirent calls'
  762.     @echo 'or System V R2 or earlier...'
  763.     $(MAKE) wermit "CFLAGS = -DATTSV -Dvoid=int -DDIRENT -DCK_CURSES \
  764.     $(KFLAGS) -O" "LNKFLAGS =" "LIBS= -lcurses -ltermlib"
  765.  
  766. #Intergraph Clipper 2000, 3000, 4000, 5000, or 6000 with CLIX 3.1 = Sys V R3
  767. clix:
  768.     $(MAKE) "CC=acc" sys5r3
  769.  
  770. #Mark Williams Coherent 286 or 386 on IBM PC family.
  771. #There is a 64K limit on program size, so this is a command-line only version.
  772. coherent:
  773.     $(MAKE) "CFLAGS = -O -DCOHERENT -DDYNAMIC -DNOANSI -DNOICP -DNOSETKEY \
  774.     -DNOCSETS -DNOHELP -DNODIAL -DNOSCRIPT -DNODEBUG -DNOTLOG -DNOXMIT \
  775.     -DNOMSEND -DNOFRILLS -DNOSYSIOCTLH $(KFLAGS) -VSUVAR" wermit
  776.  
  777. #Mark Williams Coherent 386 on IBM PC family.
  778. #This will make a "minimum interactive" version - no scripts,
  779. #no character sets, no help, no dial, no debug/transaction logging, no
  780. #transmit, msend, mail, type, etc.
  781. coherentmi:
  782.     $(MAKE) "CFLAGS = -O -DCOHERENT -DDYNAMIC -DNOANSI -DNOSETKEY \
  783.     -DNOSHOW -DNOCSETS -DNOHELP -DNODIAL -DNOSCRIPT -DNODEBUG -DNOTLOG \
  784.     -DNOXMIT -DNOMSEND -DNOFRILLS -DNOSYSIOCTLH -DNOSERVER -DNOUUCP \
  785.     -DNOSPL -DNOSETBUF -DNOPUSH -DNOMDMHUP -DNOJC -DNOFDZERO -DNOESCSEQ \
  786.     -DNOCMDL $(KFLAGS) -VSUVAR" wermit
  787.  
  788. #Mark Williams Coherent 386 on IBM PC/AT family.
  789. coherentmax:
  790.     $(MAKE) "CFLAGS = -O -DCOHERENT -DDYNAMIC -DNOANSI \
  791.     -DNOSYSIOCTLH $(KFLAGS) -VSUVAR" "LNKFLAGS = -O -s" wermit
  792.  
  793. #DEC Ultrix 2.x
  794. # Add -O, -DDYNAMIC, -s, etc, if they work.
  795. du2:
  796.     @echo Making C-Kermit $(CKVER) for Ultrix 2.x ...
  797.     $(MAKE) wermit "CFLAGS= -DBSD4 -DTCPSOCKET -DDU2 $(KFLAGS)"
  798.  
  799. #DEC Ultrix 3.1 (and probably also 3.0)
  800. du3:
  801.     @echo Making C-Kermit $(CKVER) for Ultrix 3.x...
  802.     $(MAKE) wermit "CFLAGS= -DBSD4 -DTCPSOCKET -DDIRENT -DSIG_V \
  803.     -DDYNAMIC $(KFLAGS) -O" "LNKFLAGS = -s"
  804.  
  805. #Name changed from ds4 to du4, should work on VAXes as well as DECstations.
  806. ds4:
  807.     $(MAKE) "MAKE=$(MAKE)" du4
  808.  
  809. #DEC Ultrix 4.0 or 4.1 on DECstation, VAXstation, VAX, etc.
  810. du4:
  811.     @echo Making C-Kermit $(CKVER) for Ultrix 4.0 or 4.1...
  812.     $(MAKE) wermit "CFLAGS= -DBSD4 -DTCPSOCKET -DSIG_V -DDYNAMIC \
  813.     $(KFLAGS) -Olimit 1350" "LNKFLAGS = -s"
  814.  
  815. #DEC Ultrix 4.2 on DECstation, VAXstation, VAX, etc.
  816. #Like du4, except new C compiler supports -O2 optimization.
  817. du42:
  818.     @echo Making C-Kermit $(CKVER) for Ultrix 4.2...
  819.     $(MAKE) wermit "CFLAGS= -DBSD4 -DTCPSOCKET -DSIG_V -DDYNAMIC \
  820.     $(KFLAGS) -O2 -Olimit 1350" "LNKFLAGS = -s"
  821.  
  822. #DEC Ultrix 4.2 on DECstation, VAXstation, VAX, etc.
  823. #Like du42, but with curses support added
  824. du42c:
  825.     @echo Making C-Kermit $(CKVER) for Ultrix 4.2...
  826.     $(MAKE) wermit "CFLAGS= -DBSD4 -DTCPSOCKET -DSIG_V -DDYNAMIC \
  827.     -DCK_CURSES $(KFLAGS) -O2 -Olimit 1350" "LNKFLAGS = -s" \
  828.     "LIBS= -lcurses -ltermcap"
  829.  
  830. #DEC Ultrix 4.2 on DECstation, VAXstation, VAX, etc, System V R4 environment
  831. du42s5r4:
  832.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4 on Ultrix...'
  833.     $(MAKE) wermit "CFLAGS = -O2 -Olimit 1350 -DSVR4 -DDIRENT -DHDBUUCP \
  834.     -DDYNAMIC -DTCPSOCKET $(KFLAGS)" "LNKFLAGS = -s"
  835.  
  836. #DEC OSF/1 V1.0 on DECstation.
  837. dec-osf:
  838.     @echo Making C-Kermit $(CKVER) for DECstation OSF/1 V1.0...
  839.     $(MAKE) wermit "CFLAGS= -DBSD4 -DOSF -D_BSD -DTCPSOCKET -DSIG_V \
  840.     -DDYNAMIC $(KFLAGS) -Olimit 1350" "LNKFLAGS = -s" "LIBS = -lbsd"
  841.  
  842. #Sequent DYNIX/PTX 1.2.1
  843. dynix12:
  844.     @echo Making C-Kermit $(CKVER) for Sequent DYNIX/PTX 1.2.1...
  845.     $(MAKE) wermit "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -DDYNAMIC -DPTX \
  846.     -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t $(KFLAGS) -i -O" \
  847.     "LNKFLAGS = -i"
  848.  
  849. #Sequent DYNIX/PTX 1.3
  850. dynix13:
  851.     @echo Making C-Kermit $(CKVER) for Sequent DYNIX/PTX 1.3 TCP/IP...
  852.     $(MAKE) wermit "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -DDYNAMIC -DPTX  -O \
  853.     -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t -DTCPSOCKET $(KFLAGS) -i" \
  854.     "LNKFLAGS = -i" "LIBS = -lsocket -linet -lnsl"
  855.  
  856. #Sequent Dynix 3.0.x
  857. dynix3:
  858.     @echo Making C-Kermit $(CKVER) for Sequent Dynix 3.0.x...
  859.     $(MAKE) wermit "CFLAGS= -DBSD43 -DACUCNTRL -DTCPSOCKET -O \
  860.     -DPWUID_T=int -DGID_T=int $(KFLAGS)"
  861.  
  862. #Sequent Dynix 3.0.x, no ACUCNTRL
  863. dynix3noacu:
  864.     @echo Making C-Kermit $(CKVER) for Sequent Dynix 3.0.x...
  865.     $(MAKE) wermit "CFLAGS= -DBSD43 -DLCKDIR -DTCPSOCKET -O \
  866.     -DUID_T=int -DGID_T=int $(KFLAGS)"
  867.  
  868. #Sequent Dynix 3.1.x
  869. dynix31:
  870.     @echo Making C-Kermit $(CKVER) for Sequent Dynix 3.1.x...
  871.     $(MAKE) wermit "CFLAGS= -O -DDYNAMIC -DDCLPOPEN -DLCKDIR -DBSD4 \
  872.     -DTCPSOCKET $(KFLAGS)"
  873.  
  874. #Sequent Dynix 3.1.2, as above but with curses, to be compiled by gcc 2.3.3.
  875. dynix31c:
  876.     @echo 'Making C-Kermit $(CKVER) for Sequent Dynix 3.1.2, curses...'
  877.     $(MAKE) wermit "CFLAGS= -O2 -DDYNAMIC -DDCLPOPEN -DACUCNTRL \
  878.     -DBSD43 -DTCPSOCKET -DCK_CURSES -DNODEBUG -DNOSETBUF -DUID_T=int \
  879.     $(KFLAGS)" "LIBS= -lcurses -ltermcap"
  880.  
  881. #Encore, UMAX 4.3 (BSD) but without acucntrl program.
  882. encore:
  883.     $(MAKE) "MAKE=$(MAKE)" umax43 "KFLAGS=$(KFLAGS)"
  884.  
  885. #Encore, as above, but with curses file transfer display included.
  886. encorec:
  887.     $(MAKE) "MAKE=$(MAKE)" umax43 "KFLAGS=-DCK_CURSES $(KFLAGS)" \
  888.     "LIBS= -lcurses -ltermcap"
  889.  
  890. #Encore, UMAX 4.3 (BSD) but without acucntrl program.
  891. umax43:
  892.     @echo Making C-Kermit $(CKVER) for Encore UMAX 4.3...
  893.     $(MAKE) "MAKE=$(MAKE)" PARALLEL=4 wermit \
  894.     "CFLAGS= -DBSD43 -DENCORE -DDYNAMIC -DKANJI -DTCPSOCKET $(KFLAGS) -O"
  895.  
  896. #Encore, UMAX 4.2 (BSD)
  897. umax42:
  898.     @echo Making C-Kermit $(CKVER) for Encore UMAX 4.2...
  899.     $(MAKE) "MAKE=$(MAKE)" PARALLEL=4 wermit \
  900.     "CFLAGS= -DBSD4 -DENCORE -DDYNAMIC -DTCPSOCKET $(KFLAGS) -O"
  901.  
  902. #Encore 88K UMAX 5.3 with TCP/IP support
  903. encore88K:
  904.     @echo 'Making C-Kermit $(CKVER) for Encore 88K UMAX V, TCP/IP...'
  905.     $(MAKE) wermit "CFLAGS = -q ext=pcc -DSVR3 -DTCPSOCKET -DDIRENT \
  906.     -DHDBUUCP -DDYNAMIC $(KFLAGS) -O" "LNKFLAGS ="
  907.  
  908. #Berkeley Unix 2.8, 2.9 for PDP-11s with I&D space, maybe also Ultrix-11???
  909. #C-Kermit(5A) is simply too large (even turning off almost every feature
  910. #available) to run without both I&D space plus overlays.  The old comment
  911. #suggested running 'pcc' but that won't help.  Changing 'cc' to 'ckustr.sed'
  912. #will cause a string extraction to be done, saving D space by moving strings
  913. #to a file.
  914. bsd29:
  915.     @echo Making C-Kermit $(CKVER) for 2.8 or 2.9BSD.
  916.     @echo Read the makefile if you have trouble with this...
  917.     $(MAKE) ovwermit \
  918.     "CFLAGS= -DBSD29 -DNODEBUG -DNOTLOG -DNOCSETS -DNOHELP \
  919.     -DNOSCRIPT -DNOSPL -DNOXMIT -DNODIAL $(KFLAGS)" \
  920.     "LNKFLAGS= -i -lndir" "CC= cc " "CC2= cc"
  921.  
  922. #Convex C1 with Berkeley Unix
  923. convex:
  924.     @echo Making C-Kermit $(CKVER) for Convex C1 / BSD...
  925.     $(MAKE) wermit "CFLAGS= -DBSD4 $(KFLAGS) -Dmsleep=mnap"
  926.  
  927. #Convex C210 with Convex/OS 8
  928. convex8:
  929.     @echo Making C-Kermit $(CKVER) for Convex C210 with OS 8
  930.     $(MAKE) wermit \
  931.     "CFLAGS= -DBSD4 -DTCPSOCKET -DNODEBUG -DDIRENT -DNOFILEH \
  932.     -DDYNAMIC $(KFLAGS) -DSIG_V -Dmsleep=mnap"
  933.  
  934. #Convex C2 with Convex OS 9.1 (should also work with 8.1 or later)
  935. #with ANSI C compiler, uses BSD 4.3 uucp lockfile convention.
  936. convex9:
  937.     @echo Making C-Kermit $(CKVER) for Convex C210 with OS 9.1
  938.     $(MAKE) wermit \
  939.     "CFLAGS= -DPOSIX -DCONVEX9 -DNOIEXTEN -DDIRENT -DNOFILEH -DTCPSOCKET \
  940.     -DDYNAMIC -D__STDC__ -DLCKDIR -Dmsleep=mnap -O -ext -tm c1 $(KFLAGS)" \
  941.     "LNKFLAGS = -ext"
  942.  
  943. #Cray X-MP or Y-MP UNICOS 6.x or 7.x.
  944. #NOTE: NPROC tells how many parallel makes to run.  If your Cray has multiple
  945. #processors, you can set NPROC up to the number of CPUs, e.g. NPROC=16.
  946. cray:
  947.     @echo 'Making C-Kermit $(CKVER) for Cray X/Y-MP UNICOS 6.x or 7.0...
  948.     $(MAKE) wermit NPROC=1 "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -DTCPSOCKET \
  949.     $(KFLAGS) -O1"
  950.  
  951. #Cray X-MP or Y-MP UNICOS 8.0 Alpha.
  952. cray8:
  953.     @echo 'Making C-Kermit $(CKVER) for Cray X/Y-MP UNICOS 8.0 Alpha...
  954.     $(MAKE) wermit NPROC=1 "CFLAGS= -DSVR4 -DDIRENT -DHDBUUCP -DTCPSOCKET \
  955.     $(KFLAGS) -O1"
  956.  
  957. #Charles River Data Systems Universe with UNOS Version 9.2
  958. crds:
  959.     @echo 'Making C-Kermit $(CKVER) for Charles River Data Systems...'
  960.     make wermit \
  961.     "CFLAGS = -DATTSV -DNOANSI -DDIRENT -DDYNAMIC -DLONGFN -DTCPSOCKET \
  962.     -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DNOSETREU \
  963.     -Dsuspend=ksuspend $(KFLAGS) -O" "LNKFLAGS ="
  964.  
  965. #NeXTSTEP 1.0 through 3.0.
  966. #Includes fullscreen file transfer display (curses) and TCP/IP support.
  967. #Uses shared library to make executable program about 80K smaller.
  968. #Remove "LIBS = -lsys_s" if this causes trouble.
  969. next:
  970.     @echo Making C-Kermit $(CKVER) for NeXT...
  971.     $(MAKE) wermit \
  972.     "CFLAGS= -DNEXT -DNOSETBUF -DTCPSOCKET -DDYNAMIC -DLCKDIR -DKANJI \
  973.     -DCK_CURSES $(KFLAGS) -O -w" "LIBS = -lsys_s -lcurses -ltermcap"
  974.  
  975. nextc:
  976.     $(MAKE) "MAKE=$(MAKE)" next
  977.  
  978. nextg:
  979.     $(MAKE) "MAKE=$(MAKE)" next KFLAGS=-Wall
  980.  
  981. nextgc:
  982.     $(MAKE) "MAKE=$(MAKE)" next KFLAGS=-Wall
  983.  
  984. #POSIX
  985. posix:
  986.     @echo 'Making C-Kermit $(CKVER) for POSIX, no UUCP lockfile support...'
  987.     $(MAKE) wermit "CFLAGS= -DPOSIX -DNOUUCP $(KFLAGS) -O"
  988.  
  989. #POSIX, BSDI-style.
  990. bsdiposix:
  991.     @echo 'Making C-Kermit $(CKVER) for BSDI/386 POSIX...'
  992.     $(MAKE) wermit "CFLAGS= -DPOSIX -DSETREUID -DPIDSTRING -DUSLEEP \
  993.     -DDYNAMIC -DNOSETBUF -DLOCK_DIR=\\\"/var/spool/uucp\\\" $(KFLAGS) -O"
  994.  
  995. # make 386bsd 0.0new, posix
  996. # for  386bsd 0.1.24, change /usr/include/termios.h to #define NCCS if
  997. #  _POSIX_SOURCE is #defined. (source: lewine, posix prgmrs guide, o`reilly)
  998. 386bsd:
  999.     @echo 'Making C-Kermit $(CKVER) for jolix 386BSD 0.0new and 0.1.24...'
  1000.     $(MAKE) wermit "CFLAGS= -DPOSIX -DSETREUID -DPIDSTRING -DUSLEEP \
  1001.     -D_386BSD -DCK_CURSES -DTCPSOCKET -DDYNAMIC -DNOSETBUF \
  1002.     -DLOCK_DIR=\\\"/var/spool/uucp\\\" \
  1003.     $(KFLAGS) -O" "LNKFLAGS = -s" "LIBS = -lcurses -ltermcap"
  1004.  
  1005. #Pyramid 9810 OSx 4.4b-881028
  1006. pyramid:
  1007.     @echo Making C-Kermit $(CKVER) for Pyramid OSx 4.4b...
  1008.     $(MAKE) wermit "CFLAGS= -DBSD4 -DTCPSOCKET -DDYNAMIC -O $(KFLAGS)" \
  1009.     "LNKFLAGS = -s"
  1010.  
  1011. #SONY NEWS, NEWS-OS 4.01C
  1012. sonynews:
  1013.     @echo Making C-Kermit $(CKVER) for SONY NEWS-OS 4.01C...
  1014.     $(MAKE) wermit "CFLAGS= -DBSD43 -DKANJI -DACUCNTRL \
  1015.     -DTCPSOCKET -O"
  1016.  
  1017. #SUNPOSIX
  1018. sunposix:
  1019.     @echo Making C-Kermit $(CKVER) for POSIX...
  1020.     $(MAKE) wermit "CC= /usr/5bin/cc " \
  1021.     "CFLAGS= -DPOSIX -DHDBUUCP -DVOID=void -O"
  1022.  
  1023. #IBM's AIX 3.0 on IBM 370 mainframe, tested on AIX F44 thru F50.
  1024. aix370:
  1025.     @echo Making C-Kermit $(CKVER) for IBM System/370 AIX 3.0...
  1026.     $(MAKE) wermit \
  1027.     "CFLAGS= -DAIX370 -DTCPSOCKET -DLCKDIR -DDIRENT -DDYNAMIC $(KFLAGS)" \
  1028.     "LIBS = -lbsd"
  1029.  
  1030. #IBM's AIX/ESA 2.1 (OSF/1) on IBM mainframe
  1031. aixesa:
  1032.     @echo Making C-Kermit $(CKVER) for IBM AIX/ESA...
  1033.     $(MAKE) wermit "CFLAGS= -DAIXESA -DDYNAMIC -DTCPSOCKET $(KFLAGS) -O"
  1034.  
  1035. #IBM's AIX 1.3 on IBM PS/2, tested on AIX F44 thru F50.
  1036. #This is exactly the same as AIX370 except for the version herald.
  1037. ps2aix3:
  1038.     @echo Making C-Kermit $(CKVER) for IBM PS/2 AIX 3.0...
  1039.     $(MAKE) wermit \
  1040.     "CFLAGS= -DAIXPS2 -DTCPSOCKET -DLCKDIR -DDIRENT -DDYNAMIC $(KFLAGS)" \
  1041.     "LIBS = -lbsd"
  1042.  
  1043. #IBM AIX 3.0, 3.1, or 3.2 for RISC System/6000.
  1044. rs6000:
  1045.     @echo Making C-Kermit $(CKVER) for IBM AIX 3.0 or 3.1, RS/6000...
  1046.     $(MAKE) wermit \
  1047.     "CFLAGS= -DAIXRS -DTCPSOCKET -DSVR3 -DDIRENT -DDYNAMIC -DCK_ANSIC \
  1048.     -DNOSETBUF -DCLSOPN -DKANJI -O $(KFLAGS)" "LNKFLAGS = -s"
  1049.  
  1050. #IBM AIX 3.0, 3.1, or 3.2 for RISC System/6000, with curses.
  1051. rs6000c:
  1052.     @echo Making C-Kermit $(CKVER) for IBM AIX 3.0 or 3.1, RS/6000...
  1053.     $(MAKE) wermit \
  1054.     "CFLAGS= -DAIXRS -DTCPSOCKET -DSVR3 -DDIRENT -DDYNAMIC -DCK_ANSIC \
  1055.     -DNOSETBUF -DCLSOPN -DCK_CURSES -DKANJI -O $(KFLAGS)" \
  1056.     "LIBS= -lcurses -ltermcap" "LNKFLAGS = -s"
  1057.  
  1058. #IBM AIX 3.2 for RISC System/6000.
  1059. rs6aix32:
  1060.     @echo Making C-Kermit $(CKVER) for IBM AIX 3.2, RS/6000...
  1061.     $(MAKE) wermit \
  1062.     "CFLAGS= -DAIXRS -DTCPSOCKET -DSVR4 -DDIRENT -DDYNAMIC -DCK_ANSIC \
  1063.     -DCLSOPN -DKANJI -O $(KFLAGS)" "LNKFLAGS = -s"
  1064.  
  1065. #IBM AIX 3.2 for RISC System/6000.
  1066. rs6aix32c:
  1067.     @echo Making C-Kermit $(CKVER) for IBM AIX 3.2, RS/6000, curses...
  1068.     $(MAKE) wermit \
  1069.     "CFLAGS= -DAIXRS -DTCPSOCKET -DSVR4 -DDIRENT -DDYNAMIC -DCK_ANSIC \
  1070.     -DCLSOPN -DCK_CURSES -DKANJI -O $(KFLAGS)" "LNKFLAGS = -s" \
  1071.     "LIBS=-lcurses"
  1072.  
  1073. #Sun UNIX 3.5 with gcc 2.3.3.
  1074. sunos3gcc:
  1075.     @echo Making C-Kermit $(CKVER) for Sun UNIX 3.5 and gcc...
  1076.     $(MAKE) wermit CC=gcc CC2=gcc \
  1077.     CFLAGS="-g -O -DBSD4 -DTCPSOCKET $(KFLAGS)"
  1078.  
  1079. #SunOS version 4.0, BSD environment, has saved original euid feature.
  1080. # Add "CC=/usr/ucb/cc CC2=/usr/ucb/cc" if necessary.
  1081. sunos4:
  1082.     @echo Making C-Kermit $(CKVER) for SunOS 4.0, BSD environment...
  1083.     $(MAKE) wermit "CFLAGS= -O -DSUNOS4 -DDIRENT -DTCPSOCKET -DSAVEDUID \
  1084.     -DKANJI -DDYNAMIC $(KFLAGS)"
  1085.  
  1086. #As above, but with SunLink X.25 support
  1087. sunos4x25:
  1088.     @echo SunLink X.25 support
  1089.     $(MAKE) "MAKE=$(MAKE)" sunos4 "KFLAGS=$(KFLAGS) -DSUNX25"
  1090.  
  1091. #SUN OS version 4.1, BSD environment, has saved original euid feature.
  1092. #Uses Honey DanBer UUCP.  Requires presence of /usr/spool/locks directory.
  1093. # /var/spool/ should be a symbolic link to  /usr/spool/.
  1094. # ... or 'make wermit "CC= /usr/ucb/cc " \'
  1095. sunos41:
  1096.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 / BSD...
  1097.     $(MAKE) wermit \
  1098.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DDIRENT -DTCPSOCKET -DNOSETBUF \
  1099.     -DKANJI -DSAVEDUID -DDYNAMIC $(KFLAGS)"
  1100.  
  1101. #As above, but compile with gcc.  Reportedly gives 24-32K size reduction
  1102. #with gcc 2.1 or 2.2.2.  CAUTION: make sure "fixincludes" has been run on
  1103. #the include files, so gcc's are in sync with the regular SUN ones!
  1104. #Includes the curses library for fullscreen file transfer display.
  1105. sunos41gcc:
  1106.     @echo Making C-Kermit $(CKVER) for SunOS 4.1/BSD with gcc and curses...
  1107.     make wermit "CC= gcc " "CC2= gcc" \
  1108.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DDIRENT -DTCPSOCKET -DNOSETBUF \
  1109.     -DSAVEDUID -DDYNAMIC -DKANJI -DCK_CURSES -DKANJI $(KFLAGS)" \
  1110.     "LIBS= -lcurses -ltermcap"
  1111.  
  1112. #SUNOS 4.1 as sunos41 above, but also with curses support
  1113. sunos41c:
  1114.     @echo Curses support
  1115.     $(MAKE) "MAKE=$(MAKE)" sunos41 "KFLAGS=$(KFLAGS) -DCK_CURSES" \
  1116.     "LIBS= -lcurses -ltermcap"
  1117.  
  1118. #SUNOS 4.1 with SunLink X.25 support
  1119. sunos41x25:
  1120.     @echo SunLink X.25 support
  1121.     $(MAKE) "MAKE=$(MAKE)" sunos41 "KFLAGS=$(KFLAGS) -DSUNX25"
  1122.  
  1123. #SUNOS 4.1 with SunLink X.25 support
  1124. sunos41x25c:
  1125.     @echo SunLink X.25 support, curses
  1126.     $(MAKE) "MAKE=$(MAKE)" sunos41c "KFLAGS=$(KFLAGS) -DSUNX25"
  1127.  
  1128. #The following sunosxxx entries are for testing only. 
  1129.  
  1130. #SUN OS version 4.0, BSD environment, minimum size...
  1131. sunos4m:
  1132.     @echo Minimum size
  1133.     $(MAKE) "MAKE=$(MAKE)" sunos4 \
  1134.     "KFLAGS=$(KFLAGS) -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG \
  1135.     -DNOSCRIPT -DNOCSETS -DNOICP -DNOMSEND" "LNKFLAGS = -s"
  1136.  
  1137. #SUN OS version 4.1, BSD environment, minimum size...
  1138. sunos41m:
  1139.     @echo Minimum size
  1140.     $(MAKE) "MAKE=$(MAKE)" sunos41 \
  1141.     "KFLAGS=$(KFLAGS) -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG \
  1142.     -DNOSCRIPT -DNOCSETS -DNOICP -DNOMSEND -UTCPSOCKET" "LNKFLAGS = -s"
  1143.  
  1144. #SUN OS version 4.0, BSD environment, minimum size w/command parser.
  1145. sunos4mi:
  1146.     @echo Minimum interactive
  1147.     $(MAKE) "MAKE=$(MAKE)" sunos4 \
  1148.     "KFLAGS=-DNOSPL -DNOXMIT -DNOMSEND -DNOFRILLS \
  1149.     -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG -DNOSCRIPT -DNOCSETS \
  1150.     -DNOSETKEY -DNOSHOW -UTCPSOCKET $(KFLAGS)" "LNKFLAGS = -s"
  1151.  
  1152. #SUN OS version 4.1 or later, BSD environment, minimum size w/command parser.
  1153. sunos41mi:
  1154.     @echo Minimum interactive
  1155.     $(MAKE) "MAKE=$(MAKE)" sunos41 \
  1156.     "KFLAGS=-DNOSPL -DNOXMIT -DNOMSEND -DNOFRILLS \
  1157.     -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG -DNOSCRIPT -DNOCSETS \
  1158.     -DNOSHOW -DNOSETKEY -DNOSERVER -DNOUUCP \
  1159.     -DNOSETBUF -DNOPUSH -DNOMDMHUP -DNOJC -DNOFDZERO -DNOESCSEQ \
  1160.     -DNOCMDL -UTCPSOCKET $(KFLAGS)" "LNKFLAGS = -s
  1161.  
  1162. #SUN OS version 4.1 or later, BSD, no debugging log.
  1163. sunos41nd:
  1164.     @echo No debugging...
  1165.     $(MAKE) "MAKE=$(MAKE)" sunos41 "KFLAGS=$(KFLAGS) -DNODEBUG"
  1166.  
  1167. #SUNOS 4.1 with malloc debugger
  1168. sunos41md:
  1169.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 malloc debug...
  1170.     $(MAKE) mermit \
  1171.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DDIRENT -DTCPSOCKET \
  1172.     -DSAVEDUID -DDYNAMIC $(KFLAGS) -Dmalloc=dmalloc -Dfree=dfree -DMDEBUG"
  1173.  
  1174. #SUN OS version 4.0, System V R3 environment (-i option omitted).
  1175. sunos4s5:
  1176.     @echo Making C-Kermit $(CKVER) for SunOS 4.0, System V R3...
  1177.     @echo For testing purposes only - NOT for production use.
  1178.     @echo For a useable version, make sunos4 instead.
  1179.     $(MAKE) wermit "CC= /usr/5bin/cc " \
  1180.     "CFLAGS = -DDIRENT -DSUN4S5 -DDYNAMIC $(KFLAGS) -O"
  1181.  
  1182. #SUN OS version 4.1 or later, System V R3 environment (-i option omitted).
  1183. #Like sunos4s5, but SUNOS 4.1 has switched to HDB UUCP lockfile conventions.
  1184. sunos41s5:
  1185.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 System V R3...
  1186.     @echo For testing purposes only - NOT for production use.
  1187.     @echo For a useable version, make sunos41 instead.
  1188.     $(MAKE) wermit "CC= /usr/5bin/cc " CC2=/usr/5bin/cc \
  1189.     "CFLAGS = -DSUN4S5 -DDIRENT -DHDBUUCP -DDYNAMIC $(KFLAGS) -O"
  1190.  
  1191. #As above, but with curses support
  1192. sunos41s5c:
  1193.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 System V R3...
  1194.     @echo Curses included.
  1195.     @echo For testing purposes only - NOT for production use.
  1196.     @echo For a useable version, make sunos41 instead.
  1197.     $(MAKE) wermit "CC= /usr/5bin/cc " CC2=/usr/5bin/cc \
  1198.     "CFLAGS = -DSUN4S5 -DDIRENT -DHDBUUCP -DDYNAMIC \
  1199.     -DCK_CURSES -DCK_NEWTERM $(KFLAGS) -O" "LIBS= -lcurses"
  1200.  
  1201. #As above, but with curses support AND net support
  1202. sunos41s5tcpc:
  1203.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 System V R3...
  1204.     @echo TCP/IP and curses included.  No debug log.
  1205.     @echo For testing purposes only - NOT for production use.
  1206.     @echo For a useable version, make sunos41 instead.
  1207.     $(MAKE) wermit "CC= /usr/5bin/cc " CC2=/usr/5bin/cc \
  1208.     "CFLAGS = -DSUN4S5 -DDIRENT -DHDBUUCP -DDYNAMIC -DNOSETBUF \
  1209.     -DNODEBUG -DCK_CURSES -DCK_NEWTERM -DTCPSOCKET $(KFLAGS) -O" \
  1210.     "LIBS= -lcurses -lresolv"
  1211.  
  1212. #SUN with Solaris 2.0 = SunOS 5.0.
  1213. #Mostly the same as System V R4.
  1214. #The nsl library contains a partab symbol, so Kermit's must be redefined.
  1215. sunsol20:
  1216.     @echo 'Making C-Kermit $(CKVER) for Sun with Solaris 2.0 and curses...'
  1217.     $(MAKE) wermit "CFLAGS = -O -DSVR4 -DSOLARIS -Dpartab=partbl \
  1218.     -DDIRENT -DHDBUUCP -DDYNAMIC -DSTERMIOX -DTCPSOCKET -DCK_CURSES \
  1219.     $(KFLAGS)" "LIBS= -lsocket -lnsl -lcurses -ltermlib" "LNKFLAGS = -s"
  1220.  
  1221. #SUN with Solaris 2.0.
  1222. #As above, but built with the gcc compiler from the CD-ROM.
  1223. sunsol20gcc:
  1224.     @echo 'Making C-Kermit $(CKVER) for Sun Solaris 2.0, gcc, and curses..'
  1225.     $(MAKE) wermit "CFLAGS = -O -DSVR4 -DSOLARIS -Dpartab=partbl \
  1226.     -DDIRENT -DHDBUUCP -DDYNAMIC -DSTERMIOX -DTCPSOCKET -DCK_CURSES \
  1227.     $(KFLAGS)" "LIBS= -lsocket -lnsl -lcurses -ltermlib" "LNKFLAGS = -s" \
  1228.     CC=/opt/cygnus-sol2-1.1/bin/gcc CC2=/opt/cygnus-sol2-1.1/bin/gcc
  1229.  
  1230. #SunOS 5.1 = Solaris 2.1.
  1231. #NOTE: A C compiler is no longer bundled with SunOS 5.1, so to compile C
  1232. #programs, you might have to change your PATH to include the directory
  1233. #/usr/ccs/bin AFTER the directory containing the compiler.  SunPRO C is
  1234. #installed by default in /opt/SUNWspro/bin.  So a sample PATH might be:
  1235. #
  1236. # /usr/local/bin:/usr/bin:/opt/SUNWspro/bin:/usr/ccs/bin:
  1237. # /usr/ucb:/usr/sbin:/sbin:.
  1238. #
  1239. #NOTE 2: Compilation with the Apogee C compiler does not work, because
  1240. #it refuses to allow "-Usun".
  1241. sunos51:
  1242.     @echo 'Making C-Kermit $(CKVER) for SunOS 5.x....'
  1243.     $(MAKE) wermit "CFLAGS = -O -Usun -DSVR4 -DDIRENT -DHDBUUCP \
  1244.     -DDYNAMIC -DNOCSETS -DNODEBUG -DSTERMIOX $(KFLAGS)" "LNKFLAGS = -s"
  1245.  
  1246. #As above, but with gcc.  Tested with gcc 2.3.3.
  1247. sunos51cgcc:
  1248.     @echo 'Making C-Kermit $(CKVER) for SunOS 5.x with gcc....'
  1249.     $(MAKE) wermit CC=gcc CC2=gcc "CFLAGS = -g -O -Usun -DSVR4 \
  1250.     -DCK_CURSES -DDIRENT -DHDBUUCP -DDYNAMIC $(KFLAGS)" "LIBS= -ltermlib"
  1251.  
  1252. #SunOS 5.1.  As above, but with TCP/IP support added.
  1253. #partab redefined to avoid conflict with /usr/lib/libnsl.so.
  1254. sunos51tcp:
  1255.     @echo 'Making C-Kermit $(CKVER) for SunOS 5.1 + TCP....'
  1256.     $(MAKE) wermit "CFLAGS = -O -Usun -DSVR4 -DDIRENT -DHDBUUCP \
  1257.     -Dpartab=partbl \
  1258.     -DDYNAMIC -DNOCSETS -DNODEBUG -DSTERMIOX -DTCPSOCKET $(KFLAGS)" \
  1259.     "LNKFLAGS = -s" "LIBS= -lsocket -lnsl"
  1260.  
  1261. #SunOS 5.1.  As above, but with TCP/IP and curses support added.
  1262. sunos51tcpc:
  1263.     @echo 'Making C-Kermit $(CKVER) for SunOS 5.1 + TCP + curses....'
  1264.     $(MAKE) wermit "CFLAGS = -O -Usun -DSVR4 -DDIRENT -DHDBUUCP -DDYNAMIC \
  1265.     -Dpartab=partbl \
  1266.     -DNOCSETS -DCK_CURSES -DNODEBUG -DSTERMIOX -DTCPSOCKET $(KFLAGS)" \
  1267.     "LNKFLAGS = -s" "LIBS= -ltermlib"
  1268.  
  1269. #SUN OS version 4.1, gcc, profiling with gprof, no debugging.
  1270. #To get profile, "make sunos4p" (on SUN), then "./wermit".  After running
  1271. #wermit, "gprof ./wermit | lpr" (or whatever) to get execution profile.
  1272. sunos41p:
  1273.     @echo Making C-Kermit $(CKVER) for SunOS 4.x with profiling...
  1274.     $(MAKE) wermit "CC= gcc " "CC2= gcc" \
  1275.     "CFLAGS= -DSUNOS41 -DNODEBUG -DSAVEDUID -DDIRENT -DTCPSOCKET \
  1276.     -DDYNAMIC $(KFLAGS) -pg" "LNKFLAGS = -pg"
  1277.  
  1278. #Apollo with Domain SR10.0 or later, BSD environment
  1279. #Reportedly, it might also help to add '-A,systype=bsd4.3' to CFLAGS.
  1280. #Reportedly, there is also a problem with getc & putc macros that can
  1281. #be handled by using '#ifdef apollo' somewhere to redefine them???
  1282. #On the other hand, other reports indicate that it works fine as-is.
  1283. #NOTE: This entry was previously like this:
  1284. #    $(MAKE) wermit "CFLAGS= -DNOFILEH -DBSD4 $(KFLAGS) -Uaegis \
  1285. #    -DTCPSOCKET -U__STDC__"
  1286. #Reports (Dec 91) indicate SR10 has an ANSI-compliant C compiler,
  1287. #in addition to an older one that claimed to be ANSI-compliant but wasn't.
  1288. #The following make entry (plus checks that are made in ckcdeb.h) detect
  1289. #which compiler is used and define the CK_ANSIC or NOANSI flags accordingly.
  1290. sr10-bsd:
  1291.     @echo Making C-Kermit $(CKVER) for Apollo SR10.0 / BSD ...
  1292.     $(MAKE) wermit \
  1293.     "CFLAGS= -O -DDYNAMIC -DBSD43 -DTCPSOCKET -DCK_CURSES \
  1294.     -Uaegis $(KFLAGS)" "LIBS= -lcurses -ltermcap"
  1295.  
  1296. #Apollo with Domain SR10.0 or later, System V R3 environment.
  1297. #Don't use the optimizer (-O), it causes problems at runtime.
  1298. sr10-s5r3:
  1299.     @echo Making C-Kermit $(CKVER) for Apollo SR10.0 / Sys V R3 ...
  1300.     $(MAKE) wermit "CFLAGS= -DNOFILEH -DSVR3 $(KFLAGS) -Uaegis -U__STDC__"
  1301.  
  1302. #Apollo Domain/IX (untested, try this if sr10-bsd doesn't work)
  1303. # (Can we add -DTCPSOCKET here?)
  1304. apollobsd:
  1305.     @echo Making C-Kermit $(CKVER) for Apollo Domain/IX...
  1306.     $(MAKE) wermit "CC= /bin/cc " "CC2= /bin/cc " \
  1307.     "CFLAGS= -DNOFILEH -DBSD4 $(KFLAGS) -Uaegis"
  1308.  
  1309. #Version 7 Unix (see comments above)
  1310. v7:
  1311.     @echo Making C-Kermit $(CKVER) for UNIX Version 7.
  1312.     @echo Read the makefile if you have trouble with this...
  1313.     $(MAKE) wermit "CFLAGS=-DV7 -DPROCNAME=\\\"$(PROC)\\\" \
  1314.     -DBOOTNAME=\\\"$(BOOTFILE)\\\" -DNPROCNAME=\\\"$(NPROC)\\\" \
  1315.     -DNPTYPE=$(NPTYPE) $(DIRECT) -DO_RDWR=2 -DO_NDELAY=0 -DO_SCCS_ID \
  1316.     $(KFLAGS)"
  1317.  
  1318. #AT&T UNIX System V R3, signal() is void rather than int.
  1319. #Uses dirent.h and Honey DanBer uucp.
  1320. #Add the -i link option if necessary.
  1321. sys5r3:
  1322.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R3...'
  1323.     $(MAKE) wermit \
  1324.     "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -DDYNAMIC $(KFLAGS) -O" \
  1325.     "LNKFLAGS="
  1326.  
  1327. #AT&T UNIX System V R3, for 3B computers with Wollongong TCP/IP.
  1328. sys5r3net3b:
  1329.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX SVR3/3B/Wollongong...'
  1330.     $(MAKE) wermit \
  1331.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DDYNAMIC -DWOLLONGONG $(KFLAGS) \
  1332.     -O" "LIBS= -lnet -lnsl_s" "LNKFLAGS ="
  1333.  
  1334. #AT&T UNIX System V R3, signal() is void rather than int.
  1335. #Uses dirent.h and Honey DanBer uucp, has <termiox.h>.
  1336. #Has <termiox.h> for RTS/CTS flow control.
  1337. sys5r3tx:
  1338.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R3...'
  1339.     $(MAKE) wermit "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DDYNAMIC \
  1340.     -DTERMIOX $(KFLAGS) -i -O" "LNKFLAGS ="
  1341.  
  1342. #AT&T UNIX System V R3, signal() is void rather than int.
  1343. #Uses dirent.h and Honey DanBer uucp, has <termiox.h>.
  1344. #Has <sys/termiox.h> for RTS/CTS flow control.
  1345. sys5r3sx:
  1346.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R3...'
  1347.     $(MAKE) wermit "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DDYNAMIC \
  1348.     -DSTERMIOX $(KFLAGS) -i -O" "LNKFLAGS ="
  1349.  
  1350. #AT&T UNIX System V R4.
  1351. #Has <termiox.h>.
  1352. sys5r4:
  1353.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  1354.     $(MAKE) wermit "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DDYNAMIC \
  1355.     -DTERMIOX $(KFLAGS)" "LNKFLAGS = -s"
  1356.  
  1357. #AT&T UNIX System V R4 with Wollongong TCP/IP.
  1358. #Has <termiox.h>.
  1359. sys5r4net:
  1360.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  1361.     $(MAKE) wermit "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DDYNAMIC \
  1362.     -DTERMIOX -DWOLLONGONG $(KFLAGS)" "LNKFLAGS = -s"
  1363.  
  1364. #DELL UNIX System V R4.
  1365. #Has <sys/termiox.h>, regular Berkeley sockets library, i.e. in.h and inet.h
  1366. #are not misplaced in sys (rather than netinet and arpa, respectively).
  1367. #Uses ANSI C constructs, advisory file locking on devices, etc.
  1368. #Warning: -DSTERMIOX enables hardware flow control (RTS/CTS), but reportedly
  1369. #this does not work with the normal drivers.  However, it might still work
  1370. #on non-Dell systems, or even Dell systems with different drivers installed.
  1371. dellsys5r4:
  1372.     @echo 'Making C-Kermit $(CKVER) for DELL UNIX System V R4...'
  1373.     $(MAKE) wermit "CFLAGS = -O -DSVR4 -DDELL_SVR4 -DDIRENT -DHDBUUCP \
  1374.     -DDYNAMIC -DTCPSOCKET -DSTERMIOX -DKANJI $(KFLAGS)" \
  1375.     "LIBS= -lsocket -lnsl" "LNKFLAGS = -s"
  1376.  
  1377. #As above, curses support added...
  1378. dellsys5r4c:
  1379.     @echo 'Making C-Kermit $(CKVER) for DELL UNIX System V R4...'
  1380.     $(MAKE) wermit "CFLAGS = -O -DSVR4 -DDELL_SVR4 -DDIRENT -DHDBUUCP \
  1381.     -DDYNAMIC -DTCPSOCKET -DSTERMIOX -DKANJI -DCK_CURSES $(KFLAGS)" \
  1382.     "LIBS= -lsocket -lnsl -lcurses -ltermcap" "LNKFLAGS = -s"
  1383.  
  1384. #Miminum interactive: As above, but with every conceivable option removed.
  1385. dellsys5r4mi:
  1386.     @echo 'Making C-Kermit $(CKVER) for DELL UNIX System V R4...'
  1387.     @echo 'Minimum-size interactive'
  1388.     $(MAKE) wermit "CFLAGS = -O -DSVR4 -DDELL_SVR4 -DDIRENT \
  1389.     -DDYNAMIC -UTCPSOCKET -DNOCMDL -DNOSPL -DNOXMIT \
  1390.     -DNOMSEND -DNOFRILLS -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG \
  1391.     -DNOSCRIPT -DNOCSETS -DNOSHOW -DNOSETKEY -DNOSERVER -DNOUUCP \
  1392.     -DNOSETBUF -DNOPUSH -DNOMDMHUP -DNOJC -DNOFDZERO -DNOESCSEQ  \
  1393.     $(KFLAGS)" "LNKFLAGS = -s"
  1394.  
  1395. #Command-line only version.
  1396. dellsys5r4m:
  1397.     @echo 'Making C-Kermit $(CKVER) for DELL UNIX System V R4...'
  1398.     @echo 'Command-line only'
  1399.     $(MAKE) wermit "CFLAGS = -O -DSVR4 -DDELL_SVR4 -DDIRENT -DDYNAMIC \
  1400.     -UTCPSOCKET -DNOICP -DNOFRILLS -DNODIAL -DNODEBUG -DNOTLOG -DNOCSETS \
  1401.     -DNOSETKEY -DNOESCSEQ -DNOSETBUF -DNOJC -DNOFDZERO $(KFLAGS)" \
  1402.     "LNKFLAGS = -s"
  1403.  
  1404. #AT&T UNIX System V R4.
  1405. #Has <sys/termiox.h>.
  1406. sys5r4sx:
  1407.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  1408.     $(MAKE) wermit "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DDYNAMIC \
  1409.     -DSTERMIOX $(KFLAGS)" "LNKFLAGS = -s"
  1410.  
  1411. #AT&T UNIX System V R4.
  1412. #Has <sys/termiox.h>, regular Berkeley sockets library, i.e. in.h and inet.h
  1413. #are not misplaced in sys (rather than netinet and arpa, respectively).
  1414. #Uses ANSI C constructs, <sys/termiox.h>, etc etc. 
  1415. sys5r4sxtcp:
  1416.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  1417.     $(MAKE) wermit "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DDYNAMIC \
  1418.     -DSTERMIOX -DTCPSOCKET $(KFLAGS)" \
  1419.     "LIBS= -lsocket -lnsl" "LNKFLAGS = -s"
  1420.  
  1421. #Smallest possible version of above
  1422. s5r4m:
  1423.     @echo Minimum size
  1424.     $(MAKE) "MAKE=$(MAKE)" sys5r4sx \
  1425.     "KFLAGS=$(KFLAGS) -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG \
  1426.     -DNOSCRIPT -DNOCSETS -DNOICP -DNOMSEND -UTCPSOCKET" "LNKFLAGS = -s"
  1427.  
  1428. #Smallest possible interactive version of above
  1429. s5r4mi:
  1430.     @echo Minimum interactive
  1431.     $(MAKE) "MAKE=$(MAKE)" sys5r4sx \
  1432.     "KFLAGS=-DNOSPL -DNOXMIT -DNOMSEND -DNOFRILLS -DNOSHOW \
  1433.     -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG -DNOSCRIPT -DNOCSETS -DNOSETKEY \
  1434.     -UTCPSOCKET $(KFLAGS)" "LNKFLAGS = -s"
  1435.  
  1436. #AT&T UNIX System V R4, has <sys/termiox.h>
  1437. #ANSI C function prototyping disabled.
  1438. sys5r4sxna:
  1439.     @echo No ANSI C prototyping...
  1440.     $(MAKE) "MAKE=$(MAKE)" sys5r4sx "KFLAGS=$(KFLAGS) -DNOANSI"
  1441.  
  1442. #Commodore Amiga with AT&T UNIX System V R4 and TCP/IP support.
  1443. #Has <sys/termiox.h>.
  1444. svr4amiganet:
  1445.     @echo 'Making C-Kermit $(CKVER) for Amiga SVR4 + TCP/IP...'
  1446.     $(MAKE) wermit "CC=gcc" "CC2=gcc" \
  1447.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DDYNAMIC -DSTERMIOX \
  1448.     -DTCPSOCKET $(KFLAGS)" "LNKFLAGS = -s" "LIBS = -lsocket -lnsl"
  1449.  
  1450. #ESIX SVR4.0.3 with TCP/IP support.
  1451. #Has <sys/termiox.h>, ANSI C function prototyping disabled.
  1452. esixr4:
  1453.     @echo 'Making C-Kermit $(CKVER) for ESIX SVR4 + TCP/IP...'
  1454.     $(MAKE) wermit \
  1455.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DDYNAMIC -DNOANSI \
  1456.     -DSTERMIOX -DTCPSOCKET $(KFLAGS)" "LNKFLAGS = -s" \
  1457.     "LIBS = -lsocket -lnsl"
  1458.  
  1459. #AT&T UNIX System V R4.
  1460. #Has <sys/termiox.h>, Wollongong TCP/IP.
  1461. sys5r4sxnet:
  1462.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  1463.     $(MAKE) wermit "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DDYNAMIC \
  1464.     -DSTERMIOX -DWOLLONGONG $(KFLAGS)" "LNKFLAGS = -s"
  1465.  
  1466. #AT&T UNIX System V R4, no <termio.x> or <sys/termio.x>.
  1467. sys5r4nx:
  1468.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  1469.     $(MAKE) wermit "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DDYNAMIC \
  1470.     $(KFLAGS)" "LNKFLAGS = -s"
  1471.  
  1472. #AT&T UNIX System V R4, no <termio.x> or <sys/termio.x>, has Wollongong TCP/IP.
  1473. sys5r4nxnet:
  1474.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  1475.     $(MAKE) wermit "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DDYNAMIC \
  1476.     -DWOLLONGONG $(KFLAGS)" "LNKFLAGS = -s"
  1477.  
  1478. #ICL UNIX System V R4.(DRS N/X) version :-
  1479. #UNIX System V Release 4.0 ICL DRS 6000 (SPARC)
  1480. #DRS/NX 6000 SVR4 Version 5  Level 1  Increment 4
  1481. #Has <sys/termiox.h>, regular Berkeley sockets library, i.e. in.h and inet.h
  1482. #are not misplaced in sys (rather than netinet and arpa, respectively).
  1483. #Uses ANSI C constructs, advisory file locking on devices, etc.
  1484. iclsys5r4:
  1485.     @echo 'Making C-Kermit $(CKVER) for ICL UNIX System V R4 (DRS N/X)'
  1486.     $(MAKE) wermit "CFLAGS = -O -DSVR4 -DICL_SVR4 -DDIRENT -DHDBUUCP \
  1487.     -DDYNAMIC -DSTERMIOX -DTCPSOCKET $(KFLAGS)" \
  1488.     "LIBS= -lsocket " "LNKFLAGS = -s"
  1489.  
  1490. #ICL UNIX System V R4.(DRS N/X) version :-
  1491. #UNIX System V Release 4.0 ICL DRS 3000 (486)
  1492. #DRS/NX 6000 SVR4 Version 5  Level 1  Increment 4
  1493. #As above, but also needs -lnsl.
  1494. iclsys5r4_486:
  1495.     @echo 'Making C-Kermit $(CKVER) for ICL UNIX System V R4 (DRS N/X)'
  1496.     $(MAKE) wermit "CFLAGS = -O -DSVR4 -DICL_SVR4 -DDIRENT -DHDBUUCP \
  1497.     -DDYNAMIC -DSTERMIOX -DTCPSOCKET $(KFLAGS)" \
  1498.     "LIBS= -lsocket -lnsl " "LNKFLAGS = -s"
  1499.  
  1500. #Data General DG/UX 4.30 (System V R3) for DG Aviion, with TCP/IP support.
  1501. dgux430:
  1502.     @echo 'Making C-Kermit $(CKVER) for DG Aviion DG/UX 4.30...'
  1503.     $(MAKE) wermit "CFLAGS = -O -DDGUX430 -DSVR3 -DDIRENT -DDYNAMIC \
  1504.     -DTCPSOCKET $(KFLAGS)"
  1505.  
  1506. #Data General DG/UX 4.30 for DG Aviion, with TCP/IP support with BSDisms.
  1507. dgux430bsd:
  1508.     @echo 'Making C-Kermit $(CKVER) for DG Aviion DG/UX 4.30...'
  1509.     $(MAKE) wermit "CFLAGS = -O -DDGUX430 -D_BSD_SOURCE -DBSD4 \
  1510.     -DDYNAMIC -DTCPSOCKET $(KFLAGS)"
  1511.  
  1512. #Data General DG/UX 5.4 (System V R4) for DG Aviion, with TCP/IP support.
  1513. dgux540:
  1514.     @echo 'Making C-Kermit $(CKVER) for DG Aviion DG/UX 5.40...'
  1515.     $(MAKE) wermit "CFLAGS = -O -DDGUX540 -DDIRENT -DHDBUUCP \
  1516.     -DDYNAMIC -DSTERMIOX -DTCPSOCKET $(KFLAGS)" "LNKFLAGS = -s"
  1517.  
  1518. dgux54:
  1519.     make dgux540
  1520.  
  1521. #Data General DG/UX 5.4 (= System V R4) for DG Aviion, with TCP/IP support.
  1522. # And curses.
  1523. dgux540c:
  1524.     @echo 'Making C-Kermit $(CKVER) for DG Aviion DG/UX 5.4...'
  1525.     $(MAKE) wermit "CFLAGS = -O -DDGUX540 -DDIRENT -DHDBUUCP \
  1526.     -DDYNAMIC -DSTERMIOX -DTCPSOCKET -DCK_CURSES $(KFLAGS)" \
  1527.     "LIBS= -lcurses8 -ltermcap" "LNKFLAGS = -s"
  1528.  
  1529. dgux54c:
  1530.     make dgux540c
  1531.  
  1532. #Silicon Graphics System V R3 with BSD file system (IRIS)
  1533. iris:
  1534.     @echo Making C-Kermit $(CKVER) for Silicon Graphics IRIX pre-3.3...
  1535.     $(MAKE) wermit "CFLAGS = -O -DSVR3 -DLONGFN  $(KFLAGS) \
  1536.     -I/usr/include/bsd" "LIBS = -lbsd"
  1537.  
  1538. #Silicon Graphics IRIS System V R3
  1539. irix33:
  1540.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 3.3...'
  1541.     $(MAKE) wermit \
  1542.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DDYNAMIC $(KFLAGS) -O" \
  1543.     "LNKFLAGS ="
  1544.  
  1545. #Silicon Graphics Iris Indigo with IRIX 4.0.0
  1546. #Strict ANSI C compilation, TCP/IP support included
  1547. irix40:
  1548.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 4.0...'
  1549.     $(MAKE) wermit \
  1550.     "CFLAGS = -DIRIX40 -DSVR3 -DDIRENT -DHDBUUCP -DDYNAMIC -DPWID_T=uid_t \
  1551.     -DCK_ANSIC -DTCPSOCKET $(KFLAGS) -O -Olimit 1250 -I/usr/include/bsd"
  1552.  
  1553. #In case they type "make sys5"...
  1554. sys5:
  1555.     $(MAKE) "MAKE=$(MAKE)" sys3
  1556.  
  1557. #Generic ATT System III or System V (with I&D space)
  1558. sys3:
  1559.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System III'
  1560.     @echo 'or System V R2 or earlier...'
  1561.     $(MAKE) wermit "CFLAGS = -DATTSV $(KFLAGS) -i -O" "LNKFLAGS = -i"
  1562.  
  1563. #Generic ATT System III or System V R2 or earlier, "no void":
  1564. #special entry to remove "Illegal pointer combination" warnings.
  1565. sys3nv:
  1566.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System III'
  1567.     @echo 'or System V R2 or earlier...'
  1568.     $(MAKE) wermit "CFLAGS = -DATTSV -Dvoid=int  $(KFLAGS) -i -O" \
  1569.     "LNKFLAGS = -i"
  1570.  
  1571. #Generic ATT System III or System V (no I&D space)
  1572. sys3nid:
  1573.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System III'
  1574.     @echo 'or System V R2 or earlier, no I&D space...'
  1575.     $(MAKE) wermit "CFLAGS = -DATTSV $(KFLAGS) -O" "LNKFLAGS ="
  1576.  
  1577. #AT&T 7300/UNIX PC (3B1) systems, sys3 but special handling for internal modem.
  1578. #Link with the shared library -- the conflict with openi in shared library
  1579. #is solved with -Dopeni=xopeni
  1580. sys3upc:
  1581.     @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC, shared lib...'
  1582.     @echo 'If shared lib causes trouble, use make sys3upcold.'
  1583.     $(MAKE) wermit "CFLAGS = -O -DATT7300 -DDYNAMIC -DNOSETBUF $(KFLAGS) \
  1584.     -Dopeni=xopeni" \
  1585.     "CC2 = ld /lib/crt0s.o /lib/shlib.ifile" "LNKFLAGS = -s"
  1586.  
  1587. #AT&T 7300/UNIX PC (3B1) systems, with curses support.
  1588. #Curses and the shared library don't get along, so we don't use the
  1589. #shared library.  We need to include CK_NEWTERM to avoid a conflict
  1590. #with curses and buffering on stdout.  Merged with submission by
  1591. #Robert Weiner/Programming Plus, rweiner@watsun.cc.columbia.edu.
  1592. #We don't need -Dopeni=xopeni since we're not using the shared library,
  1593. #but we keep it to be consistent with the other entries.
  1594. sys3upcc:
  1595.     @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC, curses...'
  1596.     $(MAKE) wermit "CFLAGS = -O -DATT7300 -DDYNAMIC -DNOSETBUF \
  1597.     -DCK_CURSES -DCK_NEWTERM $(KFLAGS) -Dopeni=xopeni" \
  1598.     "LIBS = -lcurses" "LNKFLAGS = -s"
  1599.  
  1600. #AT&T 7300 UNIX PC (3B1), as above, but no newterm().
  1601. sys3upcx:
  1602.     @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC, curses...'
  1603.     $(MAKE) wermit "CFLAGS = -O -DATT7300 -DDYNAMIC -DNOSETBUF \
  1604.     -DCK_CURSES $(KFLAGS) -Dopeni=xopeni" \
  1605.     "LIBS = -lcurses -ltermcap" "LNKFLAGS = -s"
  1606.  
  1607. #AT&T 7300/UNIX PC (3B1) systems, with curses and shared library support.
  1608. sys3upcshcc:
  1609.     @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC, shared lib...'
  1610.     @echo 'With curses.  Requires shcc.'
  1611.     $(MAKE) wermit "CFLAGS = -O -DATT7300 -DDYNAMIC $(KFLAGS) \
  1612.     -DNOSETBUF -DCK_NEWTERM -DCK_CURSES -Dopeni=xopeni" \
  1613.     "LNKFLAGS = -i -s" "CC = shcc" "CC2 = shcc" "LIBS = -lcurses"
  1614.  
  1615. #AT&T 7300/UNIX PC (3B1) systems, as above, no curses, but use gcc.
  1616. sys3upcg:
  1617.     @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC...'
  1618.     $(MAKE) wermit "CFLAGS = -O -DATT7300 -DDYNAMIC -DNOSETBUF $(KFLAGS) \
  1619.     -Dopeni=xopeni" \
  1620.     "CC = gcc" "CC2 = gcc" "LNKFLAGS = -s -shlib"
  1621.  
  1622. #AT&T 7300/UNIX PC (3B1) systems, curses and gcc.
  1623. sys3upcgc:
  1624.     @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC, curses...'
  1625.     $(MAKE) wermit "CFLAGS = -O -DATT7300 -DDYNAMIC -DNOSETBUF \
  1626.     -DCK_CURSES -DIFDEBUG -DCK_NEWTERM $(KFLAGS)" \
  1627.     "CC = gcc" "CC2 = gcc" "LIBS = -lcurses" "LNKFLAGS = -s"
  1628.  
  1629. #AT&T 7300/UNIX PC (3B1) systems, special handling for internal modem.
  1630. #No FULLSCREEN file transfer display (curses).
  1631. sys3upcold:
  1632.     @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC...'
  1633.     $(MAKE) wermit "CFLAGS = -DATT7300 $(KFLAGS) -O" "LNKFLAGS = -i"
  1634.  
  1635. #AT&T 6300 PLUS (warning, -O might make it run out of space).
  1636. #NOTE: Remove -DHDBUUCP if not using Honey DanBer UUCP.
  1637. att6300:
  1638.     @echo 'Making C-Kermit $(CKVER) for AT&T 6300 PLUS...'
  1639.     $(MAKE) wermit "CFLAGS = -DATT6300 -DHDBUUCP -DNOFILEH \
  1640.     $(KFLAGS) -O -Ml -i" "LNKFLAGS = -i -Ml"
  1641.  
  1642. #As above, but with curses support.  Debugging disabled to prevent thrashing.
  1643. att6300c:
  1644.     @echo 'Making C-Kermit $(CKVER) for AT&T 6300 PLUS...'
  1645.     $(MAKE) wermit "CFLAGS = -DATT6300 -DHDBUUCP -DNOFILEH -DNOCSETS \
  1646.     -DCK_CURSES -DNODEBUG $(KFLAGS) -O -Ml -i" "LNKFLAGS = -i -Ml" \
  1647.     "LIBS = -lcurses"
  1648.  
  1649. #AT&T 6300 PLUS with no curses, no debugging (about 34K smaller)
  1650. # -Optimization saves about 20K too.
  1651. att6300nd:
  1652.     @echo 'Making C-Kermit $(CKVER) for AT&T 6300 PLUS, no debugging...'
  1653.     $(MAKE) wermit \
  1654.     "CFLAGS = -DATT6300 -DHDBUUCP -DNODEBUG -DNOFILEH $(KFLAGS) \
  1655.     -O -i -Ml" "LNKFLAGS = -i -Ml"
  1656.  
  1657. #AT&T 3B2, 3B20-series computers running AT&T UNIX System V.
  1658. #This is just generic System V with Honey DanBer UUCP, so refer to sys3hdb.
  1659. att3bx:
  1660.     $(MAKE) "MAKE=$(MAKE)" sys3hdb
  1661.  
  1662. #AT&T 3B2, 3B20-series computers running AT&T UNIX System V,
  1663. #with fullscreen file transfer display
  1664. att3bxc:
  1665.     @echo 'Making C-Kermit $(CKVER) for AT&T 3B2 or 3B20'
  1666.     @echo 'with Honey DanBer UUCP and curses...'
  1667.     $(MAKE) wermit "CFLAGS = -DATTSV -DHDBUUCP $(KFLAGS) \
  1668.         -DCK_CURSES -DCK_NEWTERM -i -O" \
  1669.     "LNKFLAGS = -i" "LIBS=-lcurses"
  1670.  
  1671. #Any System V R2 or earlier with Honey DanBer UUCP (same as above)
  1672. sys3hdb:
  1673.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System III'
  1674.     @echo 'or System V R2 or earlier with Honey DanBer UUCP...'
  1675.     $(MAKE) wermit "CFLAGS = -DATTSV -DHDBUUCP $(KFLAGS) -i -O" \
  1676.     "LNKFLAGS = -i"
  1677.  
  1678. #Sperry/UNISYS 5000 UTS V 5.2 (System V R2), Honey DanBer UUCP
  1679. unisys5r2:
  1680.     @echo 'Making C-Kermit $(CKVER) for Sperry/UNISYS 5000 UTS V 5.2...'
  1681.     $(MAKE) wermit \
  1682.     "CFLAGS = -DATTSV -DUNISYS52 -DHDBUUCP $(KFLAGS) -i -O" \
  1683.     "LNKFLAGS = -i"
  1684.  
  1685. #In case they say "make sys5hdb" instead of "make sys3hdb"...
  1686. sys5hdb:
  1687.     $(MAKE) "MAKE=$(MAKE)" sys3hdb
  1688.  
  1689. #IBM PS/2 with AIX 1.0.
  1690. #  Reports indicate that -O switch must be omitted.
  1691. #  It is also possible that "made bsd" will work (reports welcome).
  1692. #  One report said "make LIBS=-lbsd bsd" did the trick.
  1693. ps2aix:
  1694.     @echo 'Making C-Kermit $(CKVER) for IBM AIX 1.0 PS/2...'
  1695.     $(MAKE) wermit \
  1696.     "CFLAGS = -DATTSV -DPS2AIX10 $(KFLAGS) -i" "LNKFLAGS = -i"
  1697.  
  1698. #IBM RT PC with AIX 2.2.1
  1699. #This one has unique and strange lockfiles.
  1700. rtaix:
  1701.     @echo 'Making C-Kermit $(CKVER) for IBM RT PC, AIX 2.2.1...'
  1702.     $(MAKE) wermit \
  1703.     "CFLAGS = -DATTSV -DRTAIX -DHDBUUCP -DTCPSOCKET \
  1704.     -DCLSOPN $(KFLAGS) -O -w" "LNKFLAGS = -s"
  1705.  
  1706. #IBM RT PC with AIX 2.2.1
  1707. #This one has unique and strange lockfiles.
  1708. rtaixc:
  1709.     @echo 'Making C-Kermit $(CKVER) for IBM RT PC, AIX 2.2.1, curses...'
  1710.     $(MAKE) wermit \
  1711.     "CFLAGS = -DATTSV -DRTAIX -DHDBUUCP -DTCPSOCKET -DCK_CURSES \
  1712.     -DCLSOPN $(KFLAGS) -O -w" "LIBS=-lcurses" "LNKFLAGS = -s"
  1713.  
  1714. #IBM RT PC with AIX 2.2.1 (BSD 4.3)
  1715. # Add -O, -DDYNAMIC, -s, etc, if they work.
  1716. rtacis:
  1717.     @echo Making C-Kermit $(CKVER) for RT PC with ACIS 2.2.1 = BSD 4.3...
  1718.     $(MAKE) wermit "CFLAGS= -DBSD4 -DTCPSOCKET $(KFLAGS) -U__STDC__" \
  1719.     "LNKFLAGS = -s"
  1720.  
  1721. #HP 9000 series 300, 500, 800, no long filenames and no job control.
  1722. #This is certainly only good for HPUX versions earlier than 6.5.
  1723. hpuxpre65:
  1724.     @echo 'Making C-Kermit $(CKVER) for HP-9000 HP-UX, no long filenames.'
  1725.     $(MAKE) wermit "CFLAGS = -DHPUX -DHPUXPRE65 $(KFLAGS) -O" "LNKFLAGS ="
  1726.  
  1727. #HP 9000 series 300, 500, 800, no long filenames.
  1728. #This is probably only good for HPUX versions earlier than 6.2.
  1729. hpux:
  1730.     @echo 'Making C-Kermit $(CKVER) for HP-9000 HP-UX, no long filenames.'
  1731.     $(MAKE) wermit "CFLAGS = -DHPUX $(KFLAGS) -O" "LNKFLAGS ="
  1732.  
  1733. #HP-9000 500 HP-UX 5.21 with Wollongong WIN/TCP 1.2 TCP/IP
  1734. #Requires /usr/wins/usr/include and /usr/lib/libnet.a from Wollongong
  1735. hpux500wintcp:
  1736.     @echo 'Making C-Kermit $(CKVER) for HP-9000 500 HP-UX 5.21 WIN/TCP' 
  1737.     $(MAKE) wermit "CFLAGS = -DHPUX -DHPUXPRE65 -DTCPSOCKET -DDYNAMIC \
  1738.     -I/usr/wins/usr/include $(KFLAGS) -O" \
  1739.     "LIBS = /usr/lib/libnet.a" "LNKFLAGS = "
  1740.  
  1741. #HP-UX 7.0, no long filenames, no network support.
  1742. hpux7sf:
  1743.     @echo 'Making C-Kermit $(CKVER) for HP-9000 HP-UX, no long filenames.'
  1744.     $(MAKE) wermit "CFLAGS = -DHPUX $(KFLAGS) -DSIG_V -O" "LNKFLAGS ="
  1745.  
  1746. #HP 9000 series 300, 800, long filenames (using BSD file system)
  1747. # (This one is probably necessary for the Series 300)
  1748. hpuxlf:
  1749.     @echo 'Making C-Kermit $(CKVER) for HP-9000 HP-UX, long filenames...'
  1750.     $(MAKE) wermit \
  1751.     "CFLAGS = -DHPUX -DNDIR -DLONGFN -DDYNAMIC $(KFLAGS) -O" \
  1752.     "LNKFLAGS ="
  1753.  
  1754. #HP 9000 series 300, 800, long filenames (using <dirent.h>)
  1755. hpuxde:
  1756.     @echo 'Making C-Kermit $(CKVER) for HP-9000 HP-UX, long filenames...'
  1757.     $(MAKE) wermit "CFLAGS = -DHPUX -DDIRENT -DDYNAMIC $(KFLAGS) -O" \
  1758.     "LNKFLAGS ="
  1759.  
  1760. #HP 9000 series 300, 800, long filenames (using <dirent.h>) and TCP/IP
  1761. hpuxdetcp:
  1762.     @echo 'Making C-Kermit $(CKVER) for HP-9000 HP-UX, long filenames...'
  1763.     $(MAKE) wermit "CFLAGS = -DHPUX -DDIRENT -DDYNAMIC -DTCPSOCKET \
  1764.     $(KFLAGS) -O" "LNKFLAGS ="
  1765.  
  1766. #HP 9000 series 300, 800, long filenames, System V R3 or later
  1767. # (Does anybody know what is the earliest release of HP-UX based on SVR3?)
  1768. hpuxs5r3:
  1769.     @echo 'Making C-Kermit $(CKVER) for HP-9000 HP-UX, long filenames...'
  1770.     $(MAKE) wermit \
  1771.     "CFLAGS = -DHPUX -DSVR3 -DDIRENT -DTCPSOCKET -DDYNAMIC \
  1772.     -DNOSETBUF $(KFLAGS) -O" "LNKFLAGS =" "LIBS=-lBSD"
  1773.  
  1774. #HP 9000 series 800 HP-UX 7.0, long filenames, network support, HDB uucp.
  1775. #there must be <arpa/telnet.h> & <arpa/inet.h> present to support this
  1776. #configuration.  To use this, you must have bought the ARPA Services
  1777. #Product from HP, and you must get the files "telnet.h" and "inet.h"
  1778. #from the Berkeley Standard Distribution because (reportedly) they are not
  1779. #part of the HP product.  And you need /usr/lib/libBSD.a.
  1780. #
  1781. hpux70lfn:
  1782.     @echo 'Making C-Kermit $(CKVER) for HP9000/8xx HP-UX V. 7.0'
  1783.     @echo 'supporting: long filenames, networking, HDB uucp...'
  1784.     $(MAKE) wermit "CFLAGS = -DHPUXDEBUG -DHPUX -DSVR3 -DDIRENT -DLONGFN \
  1785.     -DHDBUUCP -DDYNAMIC -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DNOSETBUF \
  1786.     -DTCPSOCKET  $(KFLAGS) -O" "LNKFLAGS = -s" "LIBS = -lBSD"
  1787.  
  1788. hpux70lfnc:
  1789.     @echo 'Making C-Kermit $(CKVER) for HP9000/8xx HP-UX V. 7.0'
  1790.     @echo 'supporting: curses, long filenames, networking, HDB uucp...'
  1791.     $(MAKE) wermit "CFLAGS = -DHPUXDEBUG -DHPUX -DSVR3 -DDIRENT -DLONGFN \
  1792.     -DHDBUUCP -DDYNAMIC -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DNOSETBUF \
  1793.     -DTCPSOCKET  -DCK_CURSES $(KFLAGS) -O" \
  1794.     "LIBS= -lcurses -ltermcap -lBSD" "LNKFLAGS = -s"
  1795.  
  1796. #HP 9000 Series 300 or 400, HP-UX 8.0, long filenames and TCP/IP support.
  1797. # +Obb optimization option not available.
  1798. hpux80:
  1799.     @echo 'Making C-Kermit $(CKVER) for HP9000/8xx HP-UX V. 8.0'
  1800.     @echo 'supporting: long filenames, networking, HDB uucp...'
  1801.     $(MAKE) -B wermit "CFLAGS = \
  1802.     -DHPUXDEBUG -DHPUX -DSVR3 -DDIRENT -DLONGFN \
  1803.     -DHDBUUCP -DDYNAMIC -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DNOSETBUF \
  1804.     -DTCPSOCKET  $(KFLAGS) -O" "LNKFLAGS = -s" "LIBS = -lBSD"
  1805.  
  1806. #HP 9000 Series 300 or 400, HP-UX 8.0, long filenames and TCP/IP support.
  1807. #Fullscreen file display support via curses library.
  1808. # +Obb optimization option not available.
  1809. hpux80c:
  1810.     @echo 'Making C-Kermit $(CKVER) for HP9000/8xx HP-UX V. 8.0'
  1811.     @echo 'supporting: long filenames, networking, HDB uucp...'
  1812.     $(MAKE) -B wermit "CFLAGS = -DCK_CURSES \
  1813.     -DHPUXDEBUG -DHPUX -DSVR3 -DDIRENT -DLONGFN \
  1814.     -DHDBUUCP -DDYNAMIC -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DNOSETBUF \
  1815.     -DTCPSOCKET  $(KFLAGS) -O" "LNKFLAGS = -s" "LIBS = -lBSD -lcurses"
  1816.  
  1817. #HP 9000 HP-UX 8.0, same as 7.0 with long filenames and TCP/IP support.
  1818. #HP 9000 Series 700 or 800, HP-UX 8.0, long filenames and TCP/IP support.
  1819. # +Obb optimization option available.
  1820. hpux80pa:
  1821.     @echo 'Making C-Kermit $(CKVER) for HP9000/8xx HP-UX V. 8.0'
  1822.     @echo 'supporting: long filenames, networking, HDB uucp...'
  1823.     $(MAKE) -B wermit "CFLAGS = +Obb700 \
  1824.     -DHPUXDEBUG -DHPUX -DSVR3 -DDIRENT -DLONGFN \
  1825.     -DHDBUUCP -DDYNAMIC -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DNOSETBUF \
  1826.     -DTCPSOCKET  $(KFLAGS) -O" "LNKFLAGS = -s" "LIBS = -lBSD"
  1827.  
  1828. #HP 9000 HP-UX 8.0, same as 7.0 with long filenames and TCP/IP support.
  1829. #HP 9000 Series 700 or 800, HP-UX 8.0, long filenames and TCP/IP support.
  1830. #Fullscreen file display support via curses library.
  1831. # +Obb optimization option available.
  1832. #(Maybe the -DSVR3 here should be -DSVR4?) (Is the final -O redundant?)
  1833. hpux80pac:
  1834.     @echo 'Making C-Kermit $(CKVER) for HP9000/8xx HP-UX V. 8.0'
  1835.     @echo 'supporting: long filenames, networking, HDB uucp...'
  1836.     $(MAKE) -B wermit "CFLAGS = +Obb700 -DCK_CURSES \
  1837.     -DHPUXDEBUG -DHPUX -DSVR3 -DDIRENT -DLONGFN \
  1838.     -DHDBUUCP -DDYNAMIC -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DNOSETBUF \
  1839.     -DTCPSOCKET  $(KFLAGS) -O" "LNKFLAGS = -s" "LIBS = -lBSD -lcurses"
  1840.  
  1841. #As above, but compiled with GCC 2.3.3.
  1842. hpux80pagcc:
  1843.     @echo 'Making C-Kermit $(CKVER) for HP9000/8xx HP-UX 8.0 with gcc,'
  1844.     @echo 'supporting: long filenames, networking, HDB uucp...'
  1845.     $(MAKE) wermit CC=gcc CC2=gcc "CFLAGS = \
  1846.     -DHPUXDEBUG -DHPUX -DSVR4 -DDIRENT -DLONGFN \
  1847.     -DHDBUUCP -DDYNAMIC -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DNOSETBUF \
  1848.     -DTCPSOCKET  $(KFLAGS) -O" "LIBS = -lBSD"
  1849.  
  1850. #HP 9000 HP-UX 8.0, no TCP/IP because /usr/lib/libBSD.a can't be found,
  1851. #or TCP/IP header files missing.
  1852. hpux80notcp:
  1853.     $(MAKE) "MAKE=$(MAKE)" hpuxde
  1854.  
  1855. #Regulus on CIE Systems 680/20
  1856. cie:
  1857.     @echo 'Making C-Kermit $(CKVER) for CIE Systems 680/20 Regulus...'
  1858.     $(MAKE) wermit "CFLAGS = -DATTSV -DNOFILEH -DCIE $(KFLAGS) -O" \
  1859.     "LNKFLAGS ="
  1860.  
  1861. # Linux with the GCC 2.1 compiler.
  1862. linuxgcc2:
  1863.     @echo 'Making C-Kermit Linux with gcc2.1'
  1864.     $(MAKE) wermit "CC = gcc" "CFLAGS = -O -DPOSIX -DDIRENT -DDYNAMIC  \
  1865.     -DUSLEEP $(KFLAGS)" "CC2 = gcc" "LDFLAGS = -ltermcap "
  1866.  
  1867. # Linux with the GCC 2.1 compiler with TCP/IP and fullscreen display
  1868. linuxgcc2net:
  1869.     @echo 'Making C-Kermit Linux with gcc2.1 and TCP/IP'
  1870.     $(MAKE) wermit "CC = gcc" "CFLAGS = -O -DPOSIX -DDIRENT -DDYNAMIC  \
  1871.     -DUSLEEP -DTCPSOCKET -DCK_CURSES $(KFLAGS)" "CC2 = gcc" \
  1872.     "LIBS = -ltermcap -lcurses"
  1873.  
  1874. #Microport SV/AT for IBM PC/AT 286 and clones, System V R2.
  1875. #The -O flag may fail on some modules (like ckuus2.c), in which case you 
  1876. #should compile them by hand, omitting the -O.  If you get "hash table
  1877. #overflow", try adding -DNODEBUG.
  1878. #Also, reportedly this compiles better with gcc than with cc.
  1879. mpsysv:
  1880.     @echo 'Making C-Kermit $(CKVER) for Microport SV/AT 286...'
  1881.     $(MAKE) wermit "CFLAGS= -DATTSV $(KFLAGS) -O -Ml" "LNKFLAGS = -Ml"
  1882.  
  1883. #Microsoft "Xenix/286" e.g. for IBM PC/AT
  1884. xenix:
  1885.     @echo 'Making C-Kermit $(CKVER) for Xenix/286'
  1886.     $(MAKE) wermit \
  1887.     "CFLAGS= -DXENIX -DNOFILEH $(KFLAGS) -Dunix -F 3000 -i" \
  1888.     "LNKFLAGS = -F 3000 -i"
  1889.  
  1890. #SCO Xenix 2.2.1 for IBM PC, XT, PS2/30, or other 8088 or 8086 machine
  1891. #If this doesn't work, try some of the tricks from sco286.
  1892. sco86:
  1893.     @echo 'Making C-Kermit $(CKVER) for SCO Xenix/86...'
  1894.     $(MAKE) wermit \
  1895.     "CFLAGS= -DXENIX -DNOFILEH $(KFLAGS) -Dunix -F 3000 -i -M0me" \
  1896.     "LNKFLAGS = -F 3000 -i -M0me" "LIBS = -lx"
  1897.  
  1898. #SCO Xenix/286 2.2.1, e.g. for IBM PC/AT, PS/2 Model 50, etc.
  1899. #Reportedly, this "make" can fail simply because of the size of this
  1900. #makefile.  If that happens, use "makeL", or edit out some of the
  1901. #other entries.  No debugging or character-set translation.
  1902. sco286:
  1903.     @echo 'Making C-Kermit $(CKVER) for SCO Xenix/286...'
  1904.     @echo 'If make fails, try using makeL.'
  1905.     $(MAKE) wermit \
  1906.     "CFLAGS= -s -O -LARGE -DXENIX -DNOFILEH -Dunix -DRDCHK -DNAP \
  1907.     -DNODEBUG -DNOTLOG -DNOCSETS \
  1908.     $(KFLAGS) -F 3000 -i -M2let32" \
  1909.     "LIBS = -lx" "LNKFLAGS = -s -O -LARGE -F 3000 -i -M2let32"
  1910.  
  1911. #SCO Xenix/286 2.2.1, e.g. for IBM PC/AT, PS/2 Model 50, etc.
  1912. #As above, but with HDBUUCP
  1913. sco286hdb:
  1914.     @echo 'Making C-Kermit $(CKVER) for SCO Xenix/286 with HDB UUCP...'
  1915.     @echo 'If make fails, try using makeL.'
  1916.     $(MAKE) wermit \
  1917.     "CFLAGS= -s -O -LARGE -DXENIX -DNOFILEH -Dunix -DRDCHK -DNAP \
  1918.     -DHDBUUCP $(KFLAGS) -F 3000 -i -M2let32" \
  1919.     "LIBS = -lx" "LNKFLAGS = -s -O -LARGE -F 3000 -i -M2let32"
  1920.  
  1921. #SCO Xenix/386 2.2.2
  1922. sco386:
  1923.     @echo 'Making C-Kermit $(CKVER) for SCO Xenix/386...'
  1924.     $(MAKE) wermit \
  1925.     "CFLAGS= -DXENIX -DNOFILEH -Dunix -DRDCHK -DNAP $(KFLAGS) -Otcl -M3e" \
  1926.     "LIBS = -lx"
  1927.  
  1928. #SCO XENIX/386 2.3.3 with gcc 1.37 or later...
  1929. sco386gcc:
  1930.     @echo 'Making C-Kermit $(CKVER) for SCO Xenix/386 2.3.3, gcc...'
  1931.     $(MAKE) wermit "CC = gcc" "CC2 = gcc" \
  1932.     "CFLAGS= -O -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP \
  1933.     -DNOJC -DNODEBUG -DDYNAMIC $(KFLAGS) \
  1934.     -traditional -fpcc-struct-return -fstrength-reduce \
  1935.     -DM_BITFIELDS -DM_COFF -DM_I386 -DM_I86 -DM_I86SM \
  1936.     -DM_INTERNAT -DM_SDATA -DM_STEXT -DM_SYS3 -DM_SYS5 \
  1937.     -DM_SYSIII -DM_SYSV -DM_WORDSWAP -DM_XENIX \
  1938.     -DPWID_T=int " "LNKFLAGS = " "LIBS = -lx"
  1939.  
  1940. #NOTE: SCO UNIX entries need -lc in LIBS.  You can change this to -lc_s
  1941. #to use shared libraries to save memory.
  1942.  
  1943. #SCO UNIX/386 3.2.0, 3.2.1, and SCO Xenix 2.3.x
  1944. sco3r2:
  1945.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386...'
  1946.     @echo 'Warning: If make blows up, edit the makefile to join'
  1947.     @echo 'the following three continued lines into one line.'
  1948.     $(MAKE) wermit \
  1949.     "CFLAGS= -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP \
  1950.     -DNOJC $(KFLAGS) -Otcl" "LIBS = -lc -lx"
  1951.  
  1952. # Exactly the same as above, but enables some special SCO-specific code
  1953. # that allegedly clears up some problems with HANGUP and with uugetty.
  1954. # For satisfactory operation on bidrectional lines that are handled by
  1955. # uugetty, you must install the kermit program with owner=group=uucp
  1956. # and permission 06755.
  1957. sco3r2x:
  1958.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386...'
  1959.     @echo 'Warning: If make blows up, edit the makefile to join'
  1960.     @echo 'the following three continued lines into one line.'
  1961.     $(MAKE) wermit \
  1962.     "CFLAGS= -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP -DNOJC \
  1963.     -DSCO32 $(KFLAGS) -Otcl" "LIBS = -lc -lx"
  1964.  
  1965. #SCO UNIX/386 3.2.0 and SCO Xenix 2.3.x with Excelan TCP/IP support.
  1966. #If this entry has compilation or runtime problems, try adding 
  1967. #"-DUID_T=int -DGID_T=int" to the CFLAGS.  If that doesn't work, try
  1968. #"-DUID_T=uid_t -DGID_T=gid_t".
  1969. sco3r2net:
  1970.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 / Excelan...'
  1971.     @echo 'Warning: If make blows up, edit the makefile to join'
  1972.     @echo 'the following three continued lines into one line.'
  1973.     $(MAKE) wermit \
  1974.     "CFLAGS= -I/usr/include/exos -DXENIX -DSVR3 -DDYNAMIC -DNOFILEH \
  1975.     -DHDBUUCP -DRDCHK -DNAP -DTCPSOCKET -DEXCELAN -DNOJC $(KFLAGS) \
  1976.     -Otcl"
  1977.     "LIBS = -lc -lx -lsocket"
  1978.  
  1979. #SCO UNIX/386 3.2.0 and SCO Xenix 2.3.x with Excelan TCP/IP support.
  1980. #As above, with curses library added for FULLSCREEN file transfer display.
  1981. #See comments for sco3r2net.
  1982. sco3r2netc:
  1983.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 / Excelan / curses...'
  1984.     @echo 'Warning: If make blows up, edit the makefile to join'
  1985.     @echo 'the following three continued lines into one line.'
  1986.     $(MAKE) wermit \
  1987.     "CFLAGS= -I/usr/include/exos -DXENIX -DSVR3 -DDYNAMIC -DNOFILEH \
  1988.     -DHDBUUCP -DRDCHK -DNAP -DTCPSOCKET -DEXCELAN -DNOJC $(KFLAGS) \
  1989.     -DCK_CURSES -Otcl"
  1990.     "LIBS = -lc -lx -lsocket -lcurses -ltermcap"
  1991.  
  1992. #SCO UNIX 3.2.x or SCO Xenix 2.3.x with Racal InterLan TCP/IP support
  1993. # Extra compile flags for other version of Racal InterLan TCP/IP:
  1994. # Xenix286/NP621-286, use -Ml -DPARAMH -DINTERLAN -Di286 -DSYSV
  1995. # Xenix386/NP621-386, use -DPARAMH -DINTERLAN -Di386 -DSYSV
  1996. # ISC386ix/NP622I, use -DSYSV -Di386
  1997. # SCO Unix3.2/NP622S, use -DSYSV -Di386 -DSCO_UNIX
  1998. # AT&T SVR3.2/NP622A, use -DSYSV -Di386 -DATT
  1999. sco3r2netri:
  2000.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 / Racal InterLan...'
  2001.     @echo 'Warning: If make blows up, edit the makefile to join'
  2002.     @echo 'the following four continued lines into one line.'
  2003.     $(MAKE) wermit \
  2004.     "CFLAGS= -I/usr/include/interlan -DXENIX -DNOFILEH -DHDBUUCP \
  2005.     -DSVR3 -DRDCHK -DNAP -DTCPSOCKET -DPARAMH -DINTERLAN -Di386 -DSYSV \
  2006.     -DNOJC $(KFLAGS) -Otcl -M3e" "LIBS = -lc -lx -ltcp"
  2007.  
  2008. #NOTE: SCO UNIX entries need -lc in LIBS.  You can change this to -lc_s
  2009. #to use shared libraries to save memory.
  2010.  
  2011. #ANOTHER NOTE: SCO UNIX provides different directory routines in -lc and -lx.
  2012. #Either one works as long as the corresponding correct header file is used.
  2013. #When the wrong header file is used, the compilation and linking proceed
  2014. #without complaint, but the directory-reading routines don't work correctly.
  2015. #For example, filenames might have their first few characters missing.
  2016.  
  2017. #SCO UNIX/386 3.2v2 (POSIX job control)
  2018. sco3r22:
  2019.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v2 ...'
  2020.     @echo 'Warning: If make blows up, edit the makefile to join'
  2021.     @echo 'the following three continued lines into one line.'
  2022.     make wermit \
  2023.     "CFLAGS= -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP \
  2024.     -DPID_T=pid_t -DPWID_T=int $(KFLAGS) -Otcl" "LIBS = -lc -lx"
  2025.  
  2026. #SCO UNIX/386 3.2v2 with gcc 1.40 or later (POSIX job control)
  2027. sco3r22gcc:
  2028.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v2, gcc'
  2029.     @echo 'Warning: If make blows up, edit the makefile to join'
  2030.     @echo 'the following three continued lines into one line.'
  2031.     make wermit "CC = gcc" \
  2032.     "CFLAGS= -O -DPOSIX -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP \
  2033.     -traditional -fpcc-struct-return -fstrength-reduce \
  2034.     -DM_BITFIELDS -DM_COFF -DM_I386 -DM_I86 -DM_I86SM \
  2035.     -DM_INTERNAT -DM_SDATA -DM_STEXT -DM_SYS3 -DM_SYS5 \
  2036.     -DM_SYSIII -DM_SYSV -DM_UNIX -DM_WORDSWAP -DM_XENIX -Dunix \
  2037.     -DPID_T=pid_t -DPWID_T=int $(KFLAGS) " "LNKFLAGS = " "LIBS = -lx"
  2038.  
  2039. #SCO UNIX/386 3.2v2 (ODT 1.1) (POSIX job control) with SCO TCP/IP
  2040. sco3r22net:
  2041.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2.2 + TCP/IP...'
  2042.     @echo 'Warning: If make blows up, edit the makefile to join'
  2043.     @echo 'the following three continued lines into one line.'
  2044.     make wermit \
  2045.     "CFLAGS= -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP -DTCPSOCKET \
  2046.     -DPID_T=pid_t -DPWID_T=int $(KFLAGS) -Otcl" \
  2047.     "LNKFLAGS = " "LIBS = -lc -lx -lsocket -lc_s"
  2048.  
  2049. #As above, but with curses for fullscreen file transfer display.
  2050. #If you have problems at the link stage, try:
  2051. #"LIBS= -lx -lsocket -lcurses -ltermcap -lc_s".
  2052. #To save space in the executable, use "LNKFLAGS = -s".
  2053. sco3r22netc:
  2054.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v2 + TCP/IP...'
  2055.     @echo 'Warning: If make blows up, edit the makefile to join'
  2056.     @echo 'the following three continued lines into one line.'
  2057.     make wermit \
  2058.     "CFLAGS= -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP -DTCPSOCKET \
  2059.     -DCK_CURSES -DPID_T=pid_t -DPWID_T=int $(KFLAGS) -Otcl" \
  2060.     "LNKFLAGS = " "LIBS = -lcurses -lc -lx -lsocket -lc_s"
  2061.  
  2062. #SCO UNIX/386 3.2v4 (POSIX job control), curses, ANSI C compilation, 
  2063. #<dirent.h> (EAFS) file system. 
  2064. sco32v4:
  2065.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v4...'
  2066.     @echo 'Warning: If make blows up, edit the makefile to join'
  2067.     @echo 'the following three continued lines into one line.'
  2068.     make wermit \
  2069.     "CFLAGS= -DXENIX -DSVR3 -DDIRENT -DNOFILEH -DHDBUUCP -DRDCHK -DNAP \
  2070.     -DCK_CURSES -DM_TERMINFO -DNOANSI -DPID_T=pid_t -DPWID_T=int \
  2071.     $(KFLAGS) -Otcl" "LIBS = -lcurses -lc_s -lc -lx"
  2072.  
  2073. #SCO UNIX/386 3.2v4 with gcc 1.40 or later, POSIX job control
  2074. #gcc 1.40 or later
  2075. sco32v4gcc:
  2076.     make wermit "CC = gcc" \
  2077.     "CFLAGS= -O -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP -DNOANSI \
  2078.     -DDIRENT -DCK_CURSES -DM_TERMINFO \
  2079.      -traditional -fpcc-struct-return -fstrength-reduce \
  2080.     -D_KR -D_NO_PROTOTYPE -D_SVID \
  2081.     -DM_BITFIELDS -DM_COFF -DM_I386 -DM_I86 -DM_I86SM \
  2082.     -DM_INTERNAT -DM_SDATA -DM_STEXT -DM_SYS3 -DM_SYS5 \
  2083.     -DM_SYSIII -DM_SYSV -DM_UNIX -DM_WORDSWAP -DM_XENIX -Dunix \
  2084.     -DPID_T=pid_t -DPWID_T=int $(KFLAGS) " "LNKFLAGS = " \
  2085.     "LIBS = -lcurses -lc_s -lc -lx"
  2086.  
  2087. #SCO UNIX/386 3.2v4 (POSIX job control), TCP/IP, curses, ANSI C compilation, 
  2088. #<dirent.h> (EAFS) file system.  With DIRENT, -lc must come before -lx.
  2089. #gcc 1.40 or later
  2090. sco32v4netgcc:
  2091.     make wermit "CC = gcc" \
  2092.     "CFLAGS= -O -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP -DNOANSI \
  2093.     -DTCPSOCKET -DDIRENT -DCK_CURSES -DM_TERMINFO \
  2094.     -traditional -fpcc-struct-return -fstrength-reduce \
  2095.     -D_KR -D_NO_PROTOTYPE -D_SVID \
  2096.     -DM_BITFIELDS -DM_COFF -DM_I386 -DM_I86 -DM_I86SM \
  2097.     -DM_INTERNAT -DM_SDATA -DM_STEXT -DM_SYS3 -DM_SYS5 \
  2098.     -DM_SYSIII -DM_SYSV -DM_UNIX -DM_WORDSWAP -DM_XENIX -Dunix \
  2099.     -DPID_T=pid_t -DPWID_T=int $(KFLAGS) " "LNKFLAGS = " \
  2100.     "LIBS = -lcurses -lsocket -lc_s -lc -lx"
  2101.  
  2102. #SCO UNIX/386 3.2v4 (POSIX job control), TCP/IP, curses, ANSI C compilation, 
  2103. #<dirent.h> (EAFS) file system.  With DIRENT, -lc must come before -lx.
  2104. sco32v4net:
  2105.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v4...'
  2106.     $(MAKE) wermit \
  2107.     "CFLAGS= -DXENIX -DSVR3 -DDIRENT -DNOFILEH -DHDBUUCP -DRDCHK -DNAP \
  2108.     -DTCPSOCKET -DCK_ANSIC -DCK_CURSES $(KFLAGS) \
  2109.     -DPID_T=pid_t -DPWID_T=int -Otcl" \
  2110.     "LNKFLAGS = -s" "LIBS = -lcurses -lsocket -lc_s -lc -lx"
  2111.  
  2112. # SCO XENIX/386 2.3.3 SysV with SCO TCP/IP
  2113. # System V STREAMS TCP developed by Lachman Associates and
  2114. # Convergent Technologies.
  2115. sco3r2lai:
  2116.     @echo 'Making C-Kermit $(CKVER) for SCO XENIX/386 2.3.3 + TCP/IP...'
  2117.     @echo 'Warning: If make blows up, edit the makefile to join'
  2118.     @echo 'the following three continued lines into one line.'
  2119.     $(MAKE) wermit \
  2120.     "CFLAGS= -DLAI_TCP -Di386 -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK \
  2121.     -DNAP -DTCPSOCKET -DPWID_T=int $(KFLAGS) -Otcl -i -M3e" \
  2122.     "LNKFLAGS = -i" "LIBS = -lx -lsocket"
  2123.  
  2124. #PC/IX, Interactive Corp System III for IBM PC/XT
  2125. pcix:
  2126.     @echo 'Making C-Kermit $(CKVER) for PC/IX...'
  2127.     $(MAKE) wermit \
  2128.     "CFLAGS= -DPCIX -DISIII $(KFLAGS) -Dsdata=sdatax -O -i" "LNKFLAGS = -i"
  2129.  
  2130. #Integrated Solutions Inc V8S VME 68020
  2131. isi:
  2132.     @echo Making C-Kermit $(CKVER) for 4.2BSD on ISI...
  2133.     $(MAKE) wermit "CC = cc" \
  2134.     "CFLAGS= -DBSD4 -DTCPSOCKET -DINADDRX -DDCLPOPEN -DDEBUG -DNOSETREU \
  2135.     -DCK_CURSES $(KFLAGS)" "LIBS = -lcurses -ltermcap"
  2136.  
  2137. #Interactive Corp System III port in general --
  2138. #is3: (very old, probably not sufficient for 5A)
  2139. #       @echo 'Making C-Kermit $(CKVER) for Interactive System III...'
  2140. #     make wermit "CFLAGS = -DISIII -Ddata=datax -O -i" "LNKFLAGS = -i"
  2141. #The following should work, use it if you don't have gcc.
  2142. #Use is3gcc if you have gcc.
  2143. is3:
  2144.     @echo 'Making C-Kermit $(CKVER) for Interactive System III...'
  2145.     $(MAKE) wermit \
  2146.     "CFLAGS= -DISIII $(KFLAGS) -Ddata=datax -DNAP -DHDBUUCP
  2147.     -DLOCK_DIR=\"/usr/spool/uucp\" -DSIGTYP=void -O -i' "LNKFLAGS = -i"
  2148.  
  2149. #Interactive UNIX System V R3, no network support.  Uses <dirent.h> and Honey
  2150. #DanBer UUCP.  If this entry does not compile correctly, try any or all of the
  2151. #following.  These suggestions also apply more or less to the other is5r3xxx 
  2152. #entries that follow this one.
  2153. # . Remove the UID_T and GID_T definitions, or change them as required.
  2154. # . Change -DDIRENT to -DSDIRENT.
  2155. # . Add -DSIGTYP=void.
  2156. # . Remove -g from LNKFLAGS.
  2157. # . Add -DNOANSI to remove compiler complaints about ANSI C constructions
  2158. # . Add other -DNOxxx's to save space (e.g. -DNOCSETS)
  2159. # See the next few makefile entries for related examples.
  2160. is5r3:
  2161.     @echo 'Making C-Kermit $(CKVER) for Interactive 386/ix or later...'
  2162.     @echo 'If this does not work please read the makefile entry.'
  2163.     $(MAKE) wermit "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -g -DNOCSETS \
  2164.     -DUID_T=ushort -DGID_T=ushort -DDYNAMIC -DI386IX $(KFLAGS)" \
  2165.     "LNKFLAGS = -g"
  2166.  
  2167. #Interactive Corp System System V R3 with gcc
  2168. is3gcc:
  2169.     @echo 'Making C-Kermit $(CKVER) for Interactive System V R3 / gcc...'
  2170.     $(MAKE) wermit CC=gcc CC2=gcc \
  2171.     'CFLAGS = -D_SYSV3 -DISIII -Ddata=datax -DNAP -DHDBUUCP \
  2172.     -DLOCK_DIR=\"/usr/spool/uucp\" -DSIGTYP=void -O' "LNKFLAGS ="
  2173.  
  2174. #Interactive UNIX System V R3, POSIX variant.  Untested.
  2175. #Uses dirent.h and Honey DanBer uucp.  Read comments in is5r3 entry.
  2176. is5r3p:
  2177.     @echo 'Making C-Kermit $(CKVER) for Interactive 386/ix or later...'
  2178.     $(MAKE) wermit "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -g -DNOCSETS \
  2179.     -DDYNAMIC -DI386IX -DPOSIX $(KFLAGS)" "LNKFLAGS=" "LIBS=-lcposix"
  2180.  
  2181. #Interactive UNIX SVR3 2.2.1, job control, curses, no net, gcc.
  2182. is5r3gcc:
  2183.     $(MAKE) wermit CC=gcc CC2=gcc CFLAGS="-g -posix -DSVR3 -DDIRENT \
  2184.     -DHDBUUCP -O -DNOCSETS -DDYNAMIC -DI386IX -DSVR3JC -DCK_CURSES \
  2185.     $(KFLAGS)" LNKFLAGS="-posix" LIBS="-lcurses -lc_s"
  2186.  
  2187. #Interactive UNIX System V R3 with TCP/IP network support.
  2188. #Needs -linet for net functions.  signal() is void rather than int.
  2189. #Uses dirent.h and Honey DanBer uucp. Read comments in is5r3 entry.
  2190. #Also see is5r3net2 if you have trouble with this entry.
  2191. is5r3net:
  2192.     @echo 'Making C-Kermit $(CKVER) for Interactive 386/ix...'
  2193.     @echo 'If this does not work please read the makefile entry.'
  2194.     $(MAKE) wermit \
  2195.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DDYNAMIC -DTCPSOCKET \
  2196.     -DI386IX $(KFLAGS) -O" "LIBS = -linet"
  2197.  
  2198. #Interactive UNIX System V R3, no job control, signal() void rather than int.
  2199. #Uses dirent.h and Honey DanBer uucp.  Needs -linet for net functions.
  2200. #Read comments in is5r3 entry.  Use this entry if is5r3net fails.
  2201. #Saves some space by stripping (-s) and using shared library (-lc_s).
  2202. is5r3net2:
  2203.     @echo 'Making C-Kermit $(CKVER) for Interactive 386/ix...'
  2204.     $(MAKE) wermit \
  2205.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DDYNAMIC -DTCPSOCKET -DNOJC \
  2206.     -DSIGTYP=void -DNOANSI -DI386IX $(KFLAGS) -O" \
  2207.     "LNKFLAGS= -s" "LIBS = -linet -lc_s"
  2208.  
  2209. #Interactive UNIX System V R3 (version 2.2 or later) with job control & curses.
  2210. #Uses dirent.h and Honey DanBer UUCP.
  2211. is5r3jc:
  2212.     @echo 'Making C-Kermit $(CKVER) for Interactive Unix 2.2 or later...'
  2213.     $(MAKE) wermit "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -O -DNOCSETS \
  2214.     -DUID_T=ushort -DGID_T=ushort -DDYNAMIC -DI386IX -DSVR3JC -DCK_CURSES \
  2215.     $(KFLAGS)" "LNKFLAGS = -s" "LIBS=-lcurses -lc_s"
  2216.  
  2217. #Sunsoft/Interactive UNIX System V R3 (version 2.2 or later)
  2218. #with job control, curses, and TCP/IP networking.
  2219. #Uses dirent.h and Honey DanBer UUCP.
  2220. is5r3netjc:
  2221.     @echo 'Making C-Kermit $(CKVER) for Interactive Unix 2.2 or later...'
  2222.     $(MAKE) wermit "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -O -DNOCSETS \
  2223.     -DUID_T=ushort -DGID_T=ushort -DDYNAMIC -DI386IX -DSVR3JC -DCK_CURSES \
  2224.     -DTCPSOCKET $(KFLAGS)" "LNKFLAGS = -s" "LIBS=-linet -lcurses -lc_s"
  2225.  
  2226. #Masscomp System III
  2227. rtu:
  2228.     @echo 'Making C-Kermit $(CKVER) for Masscomp RTU System III...'
  2229.     $(MAKE) wermit \
  2230.     "CFLAGS= -UFIONREAD -DATTSV $(KFLAGS) -O" "LNKFLAGS =" "LIBS= -ljobs"
  2231.  
  2232. #Masscomp/Concurrent RTU 4.0 or later, Berkeley environment.
  2233. #Includes <ndir.h> = /usr/include/ndir.h
  2234. #Note "LIBS = -lndir" might not be necessary because of "ucb make".
  2235. rtubsd:
  2236.     @echo 'Making C-Kermit $(CKVER) for Masscomp RTU 4.1A...'
  2237.     ucb make wermit \
  2238.     "CFLAGS= -DBSD4 -DRTU -DNDIR -DHDBUUCP -DTCPSOCKET $(KFLAGS)" \
  2239.     "LIBS = -lndir"
  2240.     
  2241. #Masscomp/Concurrent RTU 4.0 or later, same as above,
  2242. #Includes "usr/lib/ndir.h"
  2243. #Note "LIBS = -lndir" might not be necessary because of "ucb make".
  2244. rtubsd2:
  2245.     @echo 'Making C-Kermit $(CKVER) for Masscomp RTU 4.1A...'
  2246.     ucb make wermit "CFLAGS= -DBSD4 -DRTU -DXNDIR -DHDBUUCP $(KFLAGS)" \
  2247.     "LIBS = -lndir"
  2248.  
  2249. #Masscomp/Concurrent RTU 4.0 or later, same as above,
  2250. #Includes <sys/ndir.h>
  2251. #Note "LIBS = -lndir" might not be necessary because of "ucb make".
  2252. rtubsd3:
  2253.     @echo 'Making C-Kermit $(CKVER) for Masscomp RTU 4.x BSD...'
  2254.     ucb make wermit "CFLAGS= -DBSD4 -DRTU -DHDBUUCP $(KFLAGS)" \
  2255.     "LIBS = -lndir"
  2256.  
  2257. #Masscomp/Concurrent RTU 4.0 or later, System V R2, using <dirent.h>.
  2258. #If this gives problems, add back the -DRTU switch.
  2259. #If the -DTCPSOCKET gives trouble, remove it.
  2260. rtus5:
  2261.     @echo 'Making C-Kermit $(CKVER) for Masscomp RTU 4.x...'
  2262.     $(MAKE) wermit \
  2263.     "CFLAGS= -DATTSV -DHDBUUCP -DDIRENT -DTCPSOCKET -DDYNAMIC \
  2264.     -DNOSETBUF $(KFLAGS)"
  2265.  
  2266. #Masscomp/Concurrent RTU 4.x, System V R3, using <dirent.h>.
  2267. #Use this one if rtus5 gives warnings about pointer type mismatches.
  2268. #If this gives problems, add back the -DRTU switch.
  2269. rtus5r3:
  2270.     @echo 'Making C-Kermit $(CKVER) for Masscomp RTU Sys V R3...'
  2271.     $(MAKE) wermit "CFLAGS= -DSVR3 -DHDBUUCP -DDIRENT $(KFLAGS)"
  2272.  
  2273. #DEC Pro-3xx with Pro/Venix V1.0 or V1.1
  2274. # Requires code-mapping on non-I&D-space 11/23 processor, plus some
  2275. # fiddling to get interrupt targets into resident code section.
  2276. # This almost certainly doesn't work any more.
  2277. provx1:
  2278.     @echo 'Making C-Kermit $(CKVER) for DEC Pro-3xx, Pro/Venix 1.x...'
  2279.     $(MAKE) wart "CFLAGS= -DPROVX1 $(KFLAGS)" "LNKFLAGS= "
  2280.     $(MAKE) wermit "CFLAGS = -DPROVX1 -DNOFILEH -md780" \
  2281.         "LNKFLAGS= -u _sleep -lc -md780"
  2282.  
  2283. #Nixdorf Targon/31.
  2284. #AT&T UNIX System V R3, signal() is void rather than int.
  2285. #Uses dirent.h without Honey DanBer uucp.
  2286. t31tos40x:
  2287.     @echo 'Making C-Kermit $(CKVER) for Targon/31 with TOS 4.0.xx...'
  2288.         $(MAKE) wermit \
  2289.         "CFLAGS= -DSVR3 -DDIRENT -DDYNAMIC $(KFLAGS) -O" \
  2290.         "LNKFLAGS="
  2291.  
  2292. #NCR Tower 1632, OS 1.02
  2293. tower1:
  2294.     @echo 'Making C-Kermit $(CKVER) for NCR Tower 1632, OS 1.02...'
  2295.     $(MAKE) wermit "CFLAGS= -DTOWER1 $(KFLAGS)"
  2296.  
  2297. #NCR Tower 32, OS Release 1.xx.xx
  2298. tower32-1:
  2299.     @echo 'Making C-Kermit $(CKVER) for NCR Tower 32 Rel 1 System V R2...'
  2300.     $(MAKE) wermit \
  2301.     "CFLAGS = -DATTSV -DDYNAMIC $(KFLAGS) -O" "LNKFLAGS = -n"
  2302.  
  2303. #NCR Tower 32, OS Release 2.xx.xx
  2304. tower32-2:
  2305.     @echo 'Making C-Kermit $(CKVER) for NCR Tower 32 Rel 2 System V R2...'
  2306.     $(MAKE) wermit "CFLAGS = -DATTSV -DHDBUUCP -DDYNAMIC $(KFLAGS) -O2" \
  2307.     "LNKFLAGS = -n"
  2308.  
  2309. #NCR Tower 32, OS Releases based on System V R3
  2310. #Don't add -DNAP (doesn't work right) or -DRDCHK (not available in libc).
  2311. tower32:
  2312.     @echo 'Making C-Kermit $(CKVER) for NCR Tower 32 System V R3...'
  2313.     $(MAKE) wermit \
  2314.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DDYNAMIC -DNOSYSIOCTLH $(KFLAGS) \
  2315.     -DUID_T=ushort -DGID_T=ushort -O1"
  2316.  
  2317. #NCR Tower 32, OS Releases based on System V R3
  2318. tower32g:
  2319.     @echo 'Making C-Kermit $(CKVER) for NCR Tower 32 System V R3, gcc...'
  2320.     $(MAKE) wermit "CC = gcc" \
  2321.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DDYNAMIC -DNOSYSIOCTLH $(KFLAGS) \
  2322.     DUID_T=ushort -DGID_T=ushort -O -fstrength-reduce -fomit-frame-pointer"
  2323.  
  2324. #Fortune 32:16, For:Pro 1.8 (mostly like 4.1bsd)
  2325. ft18:
  2326.     @echo 'Making C-Kermit $(CKVER) for Fortune 32:16 For:Pro 1.8...'
  2327.     $(MAKE) wermit "CFLAGS= -DNODEBUG -DBSD4 -DFT18 -DNOFILEH $(KFLAGS) \
  2328.     -DPID_T=short"
  2329.  
  2330. #Fortune 32:16, For:Pro 2.1 (mostly like 4.1bsd).
  2331. #The modules that break the optimizer are compiled separately.
  2332. ft21:
  2333.     @echo 'Making C-Kermit $(CKVER) for Fortune 32:16 For:Pro 2.1...'
  2334.     $(MAKE) ckuusx.$(EXT) "CFLAGS= -DNODEBUG -DBSD4 -DFT21 -DNOFILEH \
  2335.     -SYM 800  -DDYNAMIC -DNOSETBUF -DCK_CURSES $(KFLAGS) -DPID_T=short" \
  2336.     "LNKFLAGS= -n -s" "LIBS= -lcurses -ltermcap -lv -lnet"
  2337.     $(MAKE) ckuxla.$(EXT) "CFLAGS= -DNODEBUG -DBSD4 -DFT21 -DNOFILEH \
  2338.     -SYM 800  -DDYNAMIC -DNOSETBUF -DCK_CURSES $(KFLAGS) -DPID_T=short" \
  2339.     "LNKFLAGS= -n -s" "LIBS= -lcurses -ltermcap -lv -lnet"
  2340.     $(MAKE) ckudia.$(EXT) "CFLAGS= -DNODEBUG -DBSD4 -DFT21 -DNOFILEH \
  2341.     -SYM 800  -DDYNAMIC -DNOSETBUF -DCK_CURSES $(KFLAGS) -DPID_T=short" \
  2342.     "LNKFLAGS= -n -s" "LIBS= -lcurses -ltermcap -lv -lnet"
  2343.     $(MAKE) wermit "CFLAGS= -O -DNODEBUG -DBSD4 -DFT21 -DNOFILEH -SYM 800 \
  2344.     -DDYNAMIC -DNOSETBUF -DCK_CURSES $(KFLAGS) -DPID_T=short" \
  2345.     "LNKFLAGS= -n -s" "LIBS= -lcurses -ltermcap -lv -lnet"
  2346.  
  2347. #Valid Scaldstar
  2348. #Berkeleyish, but need to change some variable names.
  2349. valid:
  2350.     @echo 'Making C-Kermit $(CKVER) for Valid Scaldstar...'
  2351.     $(MAKE) wermit \
  2352.     "CFLAGS= -DBSD4 -DNODEBUG -DNOTLOG -Dcc=ccx -DFREAD=1 $(KFLAGS)"
  2353.  
  2354. #IBM IX/370 on IBM 370 Series mainframes
  2355. #Mostly like sys3, but should buffer packets.
  2356. ix370:
  2357.     @echo 'Making C-Kermit $(CKVER) for IBM IX/370...'
  2358.     $(MAKE) wermit "CFLAGS = -DIX370 -DATTSV $(KFLAGS) -i -O" \
  2359.     "LNKFLAGS = -i"
  2360.  
  2361. #Amdahl UTS 2.4 on IBM 370 series compatible mainframes.
  2362. #Mostly like V7, but can't do initrawq() buffer peeking.
  2363. uts24:
  2364.     @echo 'Making C-Kermit $(CKVER) for Amdahl UTS 2.4...'
  2365.     $(MAKE) wermit "CFLAGS=-DV7 -DPROCNAME=\\\"$(PROC)\\\" \
  2366.     -DUTS24 -DBOOTNAME=\\\"$(BOOTFILE)\\\" -DNPROCNAME=\\\"$(NPROC)\\\" \
  2367.     -DNPTYPE=$(NPTYPE) $(DIRECT) $(KFLAGS)"
  2368.  
  2369. #Amdahl UTSV UNIX System V = System V R2 or earlier.
  2370. utsv:
  2371.     @echo 'Making C-Kermit $(CKVER) for Amdahl UTSV...'
  2372.     $(MAKE) wermit "CFLAGS = -DUTSV $(KFLAGS) -i -O" "LNKFLAGS = -i"
  2373.  
  2374. #BBN C/70 with IOS 2.0
  2375. #Mostly Berkeley-like, but with some ATTisms
  2376. c70:
  2377.     @echo 'Making C-Kermit $(CKVER) for BBN C/70 IOS 2.0...'
  2378.     $(MAKE) wermit "CFLAGS= -DBSD4 -DC70 $(KFLAGS)"
  2379.  
  2380. #Zilog ZEUS 3.21
  2381. zilog:
  2382.     @echo 'Making C-Kermit $(CKVER) for Zilog Zeus 3.21...'
  2383.     $(MAKE) wermit "CFLAGS = -DATTSV -DZILOG -DNODEBUG $(KFLAGS) -i -O" \
  2384.     "LNKFLAGS = -i -lpw"
  2385.  
  2386. #Whitechapel MG-1 Genix 1.3
  2387. white:
  2388.     @echo 'Making C-Kermit $(CKVER) for Whitechapel MG-1 Genix 1.3...'
  2389.     @touch ckcpro.c
  2390.     $(MAKE) wermit "CFLAGS= -DBSD4 -Dzkself()=0  $(KFLAGS)"
  2391.  
  2392. #Pixel 1000
  2393. pixel:
  2394.     @echo 'Making C-Kermit $(CKVER) for Pixel 1000...'
  2395.     $(MAKE) wermit "CFLAGS= -DBSD4 -Dzkself()=0 $(KFLAGS)"
  2396.  
  2397. ptx:
  2398.     $(MAKE) "MAKE=$(MAKE)" dynix12
  2399.  
  2400. #CDC VX/VE 5.2.1
  2401. vxve:
  2402.     @echo 'Making C-Kermit $(CKVER) for CDC VX/VE 5.2.1...'
  2403.     $(MAKE) wermit \
  2404.     "CFLAGS = -DATTSV -DVXVE -DNODEBUG -DNOTLOG $(KFLAGS) -i -O" \
  2405.     "LNKFLAGS = -i"
  2406.  
  2407. #Tandy 16/6000 with Xenix 3.0
  2408. #Add -DNOxxx options to remove features if program won't load.
  2409. trs16:
  2410.     @echo 'Making C-Kermit $(CKVER) for Tandy 16/16000, Xenix 3.0...'
  2411.     $(MAKE) wermit "CFLAGS = -DATTSV -DTRS16 -DDCLPOPEN $(KFLAGS) -O" \
  2412.     "LNKFLAGS = -n -s"
  2413.  
  2414. #DIAB DS90 or LUXOR ABC-9000 with pre-5.2 DNIX.  Sys V with nap() and rdchk().
  2415. # nd = no opendir(), readdir(), closedir(), etc.
  2416. # Some of the modules fail to compile with -O.
  2417. dnixnd:
  2418.     @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with very old DNIX 5.2.'
  2419.     $(MAKE) wermit "CFLAGS = -DATTSV -DNAP -DRDCHK -DDYNAMIC -DDCLPOPEN \
  2420.     -U__STDC__ $(KFLAGS)"
  2421.  
  2422. #DIAB DS90 with DNIX 5.2.  Sys V with nap() and rdchk().
  2423. # This one has opendir(), readdir(), closedir(), etc.
  2424. # Some of the modules fail to compile with -O.
  2425. dnix:
  2426.     @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with old DNIX 5.2...'
  2427.     $(MAKE) wermit "CFLAGS = -DATTSV -DNAP -DRDCHK -DDIRENT -DDYNAMIC  \
  2428.     -U__STDC__ $(KFLAGS)"
  2429.  
  2430. #DIAB DS90 with DNIX 5.2.  Sys V with nap() and rdchk().
  2431. # As above, but with curses and TCP/IP.
  2432. # You might get complaints about redefinition of O_RDONLY, etc, because
  2433. # of bugs in the DNIX header files, which can be fixed by adding #ifndef...
  2434. # around the offending definitions in the header files.
  2435. dnixnetc:
  2436.     @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with old DNIX 5.2...'
  2437.     $(MAKE) wermit "CFLAGS = -DATTSV -DNAP -DRDCHK -DDIRENT -DDYNAMIC  \
  2438.     -DTCPSOCKET -DCK_CURSES -I/usr/include/bsd -U__STDC__ $(KFLAGS)" \
  2439.     "LIBS = -ln -lcurses"
  2440.  
  2441. #DIAB DS90 with DNIX 5.3 or later, with HDB UUCP, nap() and rdchk().
  2442. dnix5r3:
  2443.     @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with DNIX 5.3...'
  2444.     @echo 'with Honey DanBer UUCP'
  2445.     $(MAKE) wermit "CFLAGS = -DSVR3 -DHDBUUCP -DNAP -DRDCHK -DDIRENT \
  2446.     -DDYNAMIC -DCK_CURSES $(KFLAGS) -O" "LIBS= -lcurses"
  2447.  
  2448. #DIAB DS90 with DNIX 5.3 or later, with HDB UUCP, nap() and rdchk() + TCP/IP
  2449. dnix5r3net:
  2450.     @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with DNIX 5.3...'
  2451.     @echo 'with Honey DanBer UUCP and TCP/IP'
  2452.     $(MAKE) wermit "CFLAGS = -DSVR3 -DHDBUUCP -DNAP -DRDCHK -DDIRENT \
  2453.     -DTCPSOCKET -DDYNAMIC -DCK_CURSES $(KFLAGS) -O -I/usr/include/bsd" \
  2454.     "LIBS = -ln -lcurses"
  2455.  
  2456. #DIAB DS90 with DNIX 5.3 2.2 or later, with HDB UUCP, nap() and rdchk(),
  2457. #ANSI C compilation and libraries.
  2458. #Note that for DNIX 5.3 2.2 you have to correct a bug in /usr/include/stdlib.h:
  2459. #change "extern    void free(char *str);"
  2460. #to     "extern void free(void *str);"
  2461. #
  2462. dnix5r3ansi:
  2463.     @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with DNIX 5.3...'
  2464.     @echo 'with ANSI C Honey DanBer UUCP'
  2465.     $(MAKE) wermit \
  2466.     "CFLAGS = -DSVR3 -DDIAB -DHDBUUCP -DNAP -DRDCHK -DDIRENT -DDYNAMIC \
  2467.     -DCK_ANSILIBS -DCK_CURSES -O -X7 -X9 $(KFLAGS)" "LIBS= -lcurses"
  2468.  
  2469. #QNX 4.1 with Watcom C 8.5 on i286 PCs and above.
  2470. #A 16-bit OS, fully configured C-Kermit is too big.
  2471. #stacksize 26000, objects larger than 100 bytes in their own segments,
  2472. #string constants to the codesegment, etc.
  2473. qnx:
  2474.     @echo 'Making C-Kermit $(CKVER) for QNX 4.1...'
  2475.     $(MAKE) wermit "LNKFLAGS = -mh -N 26000" "CFLAGS = -Wc,-fpc -Wc,-j \
  2476.     -Wc,-Ols -Wc,-zdf -Wc,-zc -Wc,-zt100 -mh -DPOSIX -DQNX -DDIRENT \
  2477.     -DNOCYRIL -DNODEBUG -DNOMSEND -DMINIDIAL -DNOXMIT -DNOSCRIPT -DNOSPL \
  2478.     -DNOSETKEY -DDYNAMIC -DPID_T=pid_t $(KFLAGS)"
  2479.  
  2480. #Ridge 32 with ROS 3.2
  2481. ridge32:
  2482.     @echo 'Making C-Kermit $(CKVER) Ridge 32 ROS 3.2'
  2483.     $(MAKE) wermit \
  2484.     "CFLAGS = -DATTSV -DNOFILEH -DNODEBUG -DNOTLOG $(KFLAGS) -i -O" \
  2485.     "LNKFLAGS = -i"
  2486.  
  2487. #Altos 486, 586, or 986 with Xenix 3.0
  2488. altos:
  2489.     @echo 'Making C-Kermit $(CKVER) for Altos x86 with Xenix 3.0...'
  2490.     $(MAKE) wermit \
  2491.     "CFLAGS= -DATTSV -DA986 -DNODEBUG -DNOTLOG $(KFLAGS) -i -O" \
  2492.     "LNKFLAGS= -i"
  2493.  
  2494. #Altos 986 with Xenix 3.0, as above, but command-line only, minimal size.
  2495. #For systems with small memories.  It might also be necessary to chop certain
  2496. #modules up into smaller pieces, e.g. ckuus3-6, because of symbol table
  2497. #overflow.   If this makefile is too big or complex for the Altos, compile
  2498. #and link by hand or write shell scripts.
  2499. altosc:
  2500.     @echo 'Making C-Kermit $(CKVER) for Altos x86 Xenix 3.0, remote...'
  2501.     $(MAKE) wermit \
  2502.     "CFLAGS= -DATTSV -DA986 -DNODEBUG -DNOTLOG -DNOSCRIPT -DNODIAL \
  2503.     -DNOCSETS -DNOANSI -DNOMSEND -DNOSPL -DNOICP $(KFLAGS) -Mm -O" \
  2504.     "LNKFLAGS= -Mm -s"
  2505.  
  2506. #Altos 986 with Xenix 3.0, as above, but interactive only, minimal size.
  2507. altosi:
  2508.     @echo 'Making C-Kermit $(CKVER) for Altos x86 Xenix 3.0, local...'
  2509.     $(MAKE) wermit \
  2510.     "CFLAGS= -DATTSV -DA986 -DNODEBUG -DNOTLOG -DNOSCRIPT -DNODIAL \
  2511.     -DNOCSETS -DNOANSI -DNOMSEND -DNOSPL -DNOCMDL -DNOFRILLS -DNOHELP \
  2512.     -DNOSETKEY $(KFLAGS) -Mm -O" "LNKFLAGS= -Mm -s"
  2513.  
  2514. # Altos ACS68000 68000 System, UNIX System 3 Release 2, 512k memory.
  2515. # also needs getcwd() external function; see ckuins.doc file.
  2516. # also, sys/types.h needed modifying:
  2517. #   #ifdef __SYS_TYPES_H__, #define ..., #endif
  2518. # also, ckuus2.c MUST be compiled NOOPT else symbol table is destroyed!
  2519. # Submission by Robert Weiner/Programming Plus, rweiner@watsun.cc.columbia.edu
  2520. #
  2521. altos3:
  2522.     @echo 'Making C-Kermit $(CKVER) for Altos ACS68k UNIX System III'
  2523.     $(MAKE) ckuus2.$(EXT) "CFLAGS = -DATTSV -DNOCSETS -DNOSETKEY -DNOJC \
  2524.       -DNODIAL -DDCLPOPEN -DNOSETBUF -DNOSCRIPT -DNOHELP $(KFLAGS) -i"
  2525.     $(MAKE) wermit        "CFLAGS = -DATTSV -DNOCSETS -DNOSETKEY -DNOJC \
  2526.       -DNODIAL -DDCLPOPEN -DNOSETBUF -DNOSCRIPT -DNOHELP $(KFLAGS) -i -O" \
  2527.         "LNKFLAGS = -i" "LIBS = getcwd.$(EXT)"
  2528.  
  2529. #MINIX - Original PC version with 64K+64K limit.
  2530. # Reportedly, the linker (asld) can run out of space while linking.  The only
  2531. # way around this is to make a copy of libc.a from which all modules that are
  2532. # not used by Kermit are removed.  If you have trouble compiling or running
  2533. # wart, "touch wart".  If that doesn't help, "touch ckcpro.c".
  2534. # The version configured below has no interactive command parser.
  2535. # If you can build this version successfully, maybe there will be room for
  2536. # a minimal interactive command parser too; try replacing -DNOICP with
  2537. # -DNOSPL, plus every other -DNOxxx flag there is, except for -DNOICP
  2538. # (see ckccfg.doc).
  2539. minix:
  2540.     @echo 'Making C-Kermit $(CKVER) for MINIX, no command parser...
  2541.     @echo 'TOTALLY UNTESTED!'
  2542.     $(MAKE) wermit EXT=s \
  2543.     "CFLAGS= -DV7 -DMINIX -i -D_MINIX -D_POSIX_SOURCE -DDYNAMIC \
  2544.     -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t -DSIG_V \
  2545.     -DNOXMIT -DNOMSEND -DNOFRILLS -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG \
  2546.     -DNOSCRIPT -DNOCSETS -DNOICP -DNOSETKEY $(KFLAGS)" \
  2547.     "LNKFLAGS= -i -T"
  2548.  
  2549. #MINIX - PC version with 64K+64K limit, new (as yet unreleased) ACK 2.0 beta C 
  2550. #compiler, which outputs .o object files, rather than .s.  But 'make' still
  2551. #expects .s files, so must be patched to use .o.  Tested on Minix 1.5.10.
  2552. minixnew:
  2553.     @echo 'Making C-Kermit $(CKVER) for MINIX (new ACK 2.0 compiler),'
  2554.     @echo 'no command parser...  TOTALLY UNTESTED!'
  2555.     $(MAKE) wermit \
  2556.     "CFLAGS= -DV7 -DMINIX -i -D_MINIX -D_POSIX_SOURCE -DDYNAMIC \
  2557.     -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t -DSIG_V -DNODIAL \
  2558.     -DNOHELP -DNODEBUG -DNOTLOG -DNOSCRIPT -DNOCSETS -DNOICP $(KFLAGS)" \
  2559.     "LNKFLAGS= -i -T"
  2560.  
  2561. #MINIX/386 (PC Minix modifed by Bruce Evans in Australia to use 386 addressing)
  2562. minix386:
  2563.     @echo 'Making C-Kermit $(CKVER) for MINIX/386...'
  2564.     @echo 'TOTALLY UNTESTED!'
  2565.     $(MAKE) wermit EXT=s \
  2566.     "CFLAGS= -DV7 -DMINIX -D_POSIX_SOURCE -DDYNAMIC $(KFLAGS)"
  2567.  
  2568. #MINIX/386 (PC Minix modifed by Bruce Evans in Australia to use 386 addressing)
  2569. minix386gcc:
  2570.     @echo 'Making C-Kermit $(CKVER) for MINIX/386 with gcc...'
  2571.     @echo 'TOTALLY UNTESTED!'
  2572.     $(MAKE) wermit "CC=gcc -g -O" "CC2=gcc -g" \
  2573.     "CFLAGS= -DV7 -DMINIX -D_POSIX_SOURCE -DDYNAMIC $(KFLAGS)"
  2574.  
  2575. #MINIX - 68k version with ACK compiler.
  2576. # If you have trouble compiling or running wart, "touch wart".
  2577. # If it still doesn't work, "touch ckcpro.c".
  2578. # The version configured below has many features removed, including
  2579. # the TRANSMIT, MSEND, HELP, and SCRIPT commands, international
  2580. # character set support, and the entire script programming language.
  2581. # But it does have an interactive command parser.
  2582. # Make sure make(1) has (at least) 100000 chmemory!
  2583. # If you are using the Amsterdam C compiler, you might have to add "-D__ACK__".
  2584. minix68k:
  2585.     @echo 'Making C-Kermit $(CKVER) for MINIX 68k with ACK...
  2586.     $(MAKE) wermit \
  2587.     "CFLAGS= -DV7 -DMINIX -D_MINIX -D_POSIX_SOURCE -DDYNAMIC \
  2588.     -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG \
  2589.     -DNOSCRIPT -DNOCSETS -DNOSPL $(KFLAGS) \
  2590.     -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t -DSIG_V"
  2591.  
  2592. #MINIX - 68k version with c68 compiler.
  2593. # If you have trouble compiling or running wart, "touch wart" or
  2594. # "touch ckcpro.c". Compiling ckudia.c (no -DNODIAL!) might fail. :-(
  2595. # Give c68 250000 bytes of stack+heap; make sure make(1) has at least
  2596. # 100000 chmemory.  On a 1Mb Atari ST this means that the recursive
  2597. # call of make fails due to memory shortage.  Try "make -n minixc68 >makeit",
  2598. # followed by ". makeit".  Otherwise, as above.
  2599. minixc68:
  2600.     @echo 'Making C-Kermit $(CKVER) for MINIX 68k with c68...
  2601.     $(MAKE) wermit "CC= cc -c68" \
  2602.     "CFLAGS= -DV7 -DMINIX -D_MINIX -D_POSIX_SOURCE -DDYNAMIC \
  2603.     -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG \
  2604.     -DNOSCRIPT -DNOCSETS -DNOSPL $(KFLAGS) \
  2605.     -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t -DSIG_V"
  2606.  
  2607. #MIPS Computer Systems with UMIPS RISC/OS AT&T UNIX System V R3.0.
  2608. #Add -DNOJC if UNIX job control causes trouble.
  2609. mips:
  2610.     @echo 'Making C-Kermit $(CKVER) for MIPS AT&T System V R3.0...'
  2611.     $(MAKE) wermit "CFLAGS = -DMIPS -DDIRENT -DDYNAMIC -DPID_T=int \
  2612.     $(KFLAGS) -DGID_T=gid_t -DUID_T=uid_t -i -O1500"
  2613.  
  2614. #As above, but with TCP/IP and fullscreen support.
  2615. mipstcpc:
  2616.     @echo 'Making C-Kermit $(CKVER) for MIPS AT&T System V R3.0...'
  2617.     $(MAKE) wermit "CFLAGS = -DMIPS -DDIRENT -DDYNAMIC -DPID_T=int \
  2618.     -DTCPSOCKET -I/usr/include/bsd -DCK_CURSES \
  2619.     $(KFLAGS) -DGID_T=gid_t -DUID_T=uid_t -i -O1500" \
  2620.     "LIBS = -lcurses -lbsd"
  2621.  
  2622. #Motorola Delta System V/68 R3, signal() is void rather than int.
  2623. #Uses dirent.h and Honey DanBer uucp.  Supports TCP/IP.
  2624. #After building, use "mcs -d" to reduce size of the executable program.
  2625. sv68r3:
  2626.     @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/68 R3...'
  2627.     $(MAKE) wermit "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DDYNAMIC \
  2628.     -DTCPSOCKET $(KFLAGS) \
  2629.     -O" "LNKFLAGS ="
  2630.  
  2631. #Motorola Delta System V/68 R3V5, signal() is void rather than int.
  2632. #Uses dirent.h and Honey DanBer UUCP.  Supports TCP/IP.
  2633. #After building, use "mcs -d" to reduce size of the executable program.
  2634. sv68r3v5:
  2635.     @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/68 R3V5'
  2636.     $(MAKE) wermit "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DDYNAMIC \
  2637.     -DTCPSOCKET -DINADDRX $(KFLAGS) -O" "LNKFLAGS =" "LIBS = -linet"
  2638.  
  2639. #Motorola MVME147 System V/68 R3 V5.1. Requires gcc 2.1 to compile.
  2640. #After building, use "mcs -d" to reduce size of the executable program.
  2641. sv68r3v51:
  2642.     @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/68 R3V5.1'
  2643.     $(MAKE) wermit "CC=gcc-delta" "CC2=gcc-delta" \
  2644.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DDYNAMIC -DNODEBUG -DNOSETBUF \
  2645.     $(KFLAGS) -O2 -v -ftraditional" "LNKFLAGS = -s -v" "LIBS = -lm881"
  2646.  
  2647. #Motorola Delta System V/88 R32, signal() is void rather than int.
  2648. #Uses dirent.h and Honey DanBer uucp.  Needs <sys/utime.h> for setting
  2649. #file dates.  Supports TCP/IP.
  2650. #After building, use "mcs -d" to reduce size of the executable program.
  2651. sv88r32:
  2652.     @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/88 R32...'
  2653.     $(MAKE) wermit "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DDYNAMIC \
  2654.     -DTCPSOCKET -DSYSUTIMEH -DCK_CURSES $(KFLAGS) \
  2655.     -O" "LIBS= -lcurses" "LNKFLAGS = -s"
  2656.  
  2657. #Motorola Delta System V/88 R40.  Has <sys/termiox.h>, regular Berkeley
  2658. #sockets library, i.e. in.h and inet.h are not misplaced in sys (rather than
  2659. #netinet and arpa, respectively).  Uses ANSI C constructs, advisory file
  2660. #locking on devices, etc.  curses support added.  Reportedly, the
  2661. #/usr/include/sys/vnode.h file has a bug which must be fixed before this
  2662. #makefile entry can work correctly.  The "if DEBUG" directive at about line
  2663. #320 must be changed to "ifdef DEBUG".
  2664. #After building, use "mcs -d" to reduce size of the executable program.
  2665. sv88r40:
  2666.     @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/88 R40...'
  2667.     $(MAKE) wermit "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP \
  2668.     -DDYNAMIC -DSTERMIOX -DTCPSOCKET -DCK_CURSES $(KFLAGS)" \
  2669.     "LIBS= -lsocket -lnsl -lcurses" "LNKFLAGS = -s"
  2670.  
  2671. #PFU Compact A Series UNIX System V R3, SX/A TISP V10/L50 (Japan)
  2672. #Maybe the -i link option should be removed?
  2673. sxae50:
  2674.     @echo 'Making C-Kermit $(CKVER) for PFU SX/A V10/L50...'
  2675.     $(MAKE) wermit \
  2676.     "CFLAGS= -DSVR3 -DDIRENT -DsxaE50 -DTCPSOCKET $(KFLAGS) -i -O \
  2677.     -DKANJI" "LNKFLAGS= "
  2678.  
  2679. #Olivetti X/OS R2.3, 3.x.
  2680. #NOTES:
  2681. # . If you build the executable on 2.x X/OS, it will also run on 3.x.
  2682. # . If you build it on 3.x X/OS, it will NOT run on 2.x.
  2683. # . Kermit can run with no privileges unless the uucp lines are protected,
  2684. #   in which case kermit must be owned by uucp with suid bit set:
  2685. #   chown uucp kermit ; chmod 4111 kermit.
  2686. xos23:
  2687.     @echo 'Making C-Kermit $(CKVER) for Olivetti X/OS...'
  2688.     $(MAKE) wermit \
  2689.     'CFLAGS=-DOXOS -DTCPSOCKET -DHDBUUCP -DDYNAMIC $(KFLAGS)' \
  2690.     "LIBS=" "LNKFLAGS=" 
  2691.  
  2692. xos23c:
  2693.     @echo 'Making C-Kermit $(CKVER) for Olivetti X/OS with curses...'
  2694.     $(MAKE) wermit \
  2695.     'CFLAGS=-DOXOS -DTCPSOCKET -DHDBUUCP -DDYNAMIC -DCK_CURSES $(KFLAGS)' \
  2696.     "LIBS=-lcurses" "LNKFLAGS="
  2697.  
  2698. #Clean up intermediate and object files
  2699. clean:
  2700.     @echo 'Removing object files...'
  2701.     -rm -f ckcmai.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) ckuus2.$(EXT) \
  2702. ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) ckcpro.$(EXT) ckcfns.$(EXT) \
  2703. ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) ckucon.$(EXT) ckutio.$(EXT) \
  2704. ckufio.$(EXT) ckudia.$(EXT) ckuscr.$(EXT) ckwart.$(EXT) ckuusx.$(EXT) \
  2705. ckuusy.$(EXT) ckcnet.$(EXT) ckuus6.$(EXT) ckuus7.$(EXT) ckcmdb.$(EXT) \
  2706. ckcpro.c wart
  2707.  
  2708. #Run Lint on this mess for the SUN/BSD version.
  2709. lintsun:
  2710.     @echo 'Running Lint on C-Kermit $(CKVER) sources for SunOS version...'
  2711.     lint -x -DSUNOS4 -DDIRENT -DTCPSOCKET -DSAVEDUID -DDYNAMIC \
  2712.     ck[cu]*.c > ckuker.lint.sun
  2713.  
  2714. lintbsd:
  2715.     @echo 'Running Lint on C-Kermit $(CKVER) sources for BSD 4.2 version..'
  2716.     lint -x -DBSD4 -DTCPSOCKET ck[cu]*.c > ckuker.lint.bsd42
  2717.  
  2718. lints5:
  2719.     @echo 'Running Lint on C-Kermit $(CKVER) sources for Sys V version...'
  2720.     lint -x -DATTSV ck[cu]*.c > ckuker.lint.s5
  2721.  
  2722. lintmips:
  2723.     @echo 'Running lint on C-Kermit $(CKVER) sources for MIPS version...'
  2724.     lint -DMIPS -DDIRENT -DPID_T=int -DGID_T=gid_t \
  2725.     -DUID_T=uid_t -DNOJC ck[cu]*.c > ckuker.lint.mips
  2726.