Annotation of coherent/e/bin/cku179/makefile, revision 1.1.1.1

1.1       root        1: # CKUKER.MAK, Sat Feb  8 14:17:01 1992
                      2: #
                      3: CKVER= "5A(179) BETA"
                      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: [email protected], [email protected], or [email protected].
                     10: #
                     11: # WARNING: This is a pre-Beta test release.  Use at your own risk.
                     12: #
                     13: # WARNING #2: This is a huge makefile, and it contains nested makes.
                     14: # Some make programs run out of memory.  If this happens to you (as it will,
                     15: # for example, for 2.xBSD on PDP-11s), edit away all the parts that do not 
                     16: # apply to your system and try again.
                     17: #
                     18: #   C-Kermit can also be built for many other systems not supported by
                     19: #   this makefile, including the Apple Macintosh, the Commodore Amiga,
                     20: #   OS-9, IBM OS/2, DEC VAX/VMS.  See the ckaaaa.hlp file for information.
                     21: #   Support was also added to C-Kermit for some other systems like Data
                     22: #   General AOS/VS and Apollo Aegis, but the system-dependent modules for
                     23: #   these versions need a lot of work to bring them up to 5A level.
                     24: #
                     25: # INSTALLATION NOTES:
                     26: #
                     27: # Rename this file to "makefile" or "Makefile" if necessary.  Pick out the
                     28: # make entry most appropriate for your UNIX system from the list below and
                     29: # then give the appropriate "make" command, for example "make bsd", "make
                     30: # sys5r3", "make posix".  For more detailed installation instructions,
                     31: # read the file ckuins.doc.  For descriptions of known problems and
                     32: # limitations, read the file ckuker.bwr (the "beware file").
                     33: #
                     34: # Some of the implementations listed below are untested for v5A:
                     35: # + Marks those that have been tested successfully.
                     36: # - Marks those that are known not to work.
                     37: # ? Marks those yet untested.
                     38: #
                     39: # Those marked with + are not guaranteed to work.  The "+" means that C-Kermit
                     40: # 5A was built successfully and tested to some degree without showing obvious
                     41: # problems, but not necessarily in the current edit.  That is, something that
                     42: # has been done to the program in recent edits might have broken a previously
                     43: # working version.
                     44: #
                     45: # Please report failures (preferably with fixes) or successes to the author.
                     46: #
                     47: # MAKE COMMANDS FOR DIFFERENT UNIX VERSIONS:
                     48: #
                     49: # + for Alliant FX/8 with Concentrix 4.1 or later, "make bsdlck"
                     50: # + for Altos 486, 586, 986 with Xenix 3.0, "make altos"
                     51: # ? for Amdahl UTS 2.4 on IBM 370 series & compatible mainframes, "make uts24"
                     52: # + for Amdahl UTSV IBM 370 series & compatible mainframes, "make utsv"
                     53: # + for Amdahl mainframes with with UNIX System V R 5.2.6b 580, "make sys3"
                     54: # ? for Apollo DOMAIN/IX, "make bsd" or "make sys3", for desired environment
                     55: # ? for Apollo DOMAIN/IX, if the above fails, try "make apollobsd"
                     56: # + for Apollo with SR10.0 or later, BSD environment, "make sr10-bsd"
                     57: # + for Apollo with SR10.0 or later, System V environment, "make sr10-s5r3"
                     58: # ? for Apollo with straight Aegis using native Aegis i/o,
                     59: #     give "cc" commands for each module, then "bind" to link them together.
                     60: # + for Apple Macintosh II with A/UX, "make aux" or "make auxufs"
                     61: # ? for Apple Macintosh with Minix 1.5.10, "make minix68k" or "make minixc68"
                     62: # + for AT&T 6300 PLUS, "make att6300" or (with no debugging) "make att6300nd"
                     63: # + for AT&T 6386 WGS Unix PC, "make sys5r3"
                     64: # + for AT&T 3B2, 3B20 systems, "make att3bx"
                     65: # + for AT&T 3B1, 7300 Unix PC, "make sys3upc", "sys3upcg" (gcc), "sys3upcold"
                     66: # + for AT&T System III/System V R2 or earlier, "make sys3" or "make sys3nid"
                     67: # + for AT&T System III/System V with Honey DanBer UUCP, "make sys3hdb"
                     68: # + for AT&T System V on DEC VAX, "make sys3" or "make sys5r3"
                     69: # + for AT&T System V R3, use "make sys5r3".  This is different from the above.
                     70: # + for AT&T System V R4, "make sys5r4", "make sys5r4sx", or "make sys5r4nx",
                     71: #     or if the ANSI C function prototyping makes trouble, add -DNOANSI,
                     72: #     as in "sys5r4sxna" entry (used with AT&T System V/386 R 4.0 V 2.1.
                     73: # + for AT&T System V R4 with Wollongong TCP/IP, "make sys5r4net", ...
                     74: # + for Atari ST with Minix ST 1.5.10.3, "make minix68k" or "make minixc68"
                     75: # ? for BBN C/70 with IOS 2.0, "make c70"
                     76: # + for Bell Unix Version 7 (aka 7th Edition), "make v7" (but see below)
                     77: # + for Berkeley Unix 2.4, "make v7" (but read v7 material below)
                     78: # ? for Berkeley Unix 2.9 (DEC PDP-11 or Pro-3xx), "make bsd29"
                     79: # + for Berkeley Unix 2.10 "make bsd210" (but read the makefile entry first)
                     80: # + for Berkeley Unix 2.11 "make bsd210" (but read the makefile entry first)
                     81: # + for Berkeley Unix 4.1, "make bsd41"
                     82: # + for Berkeley Unix 4.2, "make bsd" (tested with 4.2 and 4.3)
                     83: # + for Berkeley Unix 4.2 or 4.3 with HoneyDanBer UUCP, "make bsdhdb"
                     84: # + for Berkeley Unix 4.3, "make bsd43" (uses acucntrl program for locks)
                     85: # + for Berkeley Unix 4.3 without acucntrl program, "make bsdlck" or "make bsd"
                     86: # + for Berkeley Unix 4.3-Tahoe, same as 4.3 BSD.
                     87: # ? for Berkeley Unix 4.3-Reno, same as 4.3 BSD.
                     88: # ? for Berkeley Unix 4.4, maybe "make posix"?
                     89: # ? for Cadmus, "make sys3"
                     90: # ? for Callan, "make sys3"
                     91: # ? for CDC VX/VE 5.2.1 Sys V emulation, "make vxve"
                     92: # ? for Charles River Data Systems 680x0 systems with Unos, "make sys3nid"
                     93: # ? for CIE Systems 680/20 with Regulus, "make cie"
                     94: # + for Commodore Amiga 3000UX Sys V R4, "make sys5r4sx"
                     95: # + for Commodore Amiga 3000UX Sys V R4 and TCP/IP, "make svr4amiganet"
                     96: # ? for Commodore Amiga with Minix 1.5.10, "make minix68k" of "make minixc68"
                     97: # + for Convergent with CTIX Sys V R2, "make sys5"
                     98: # + for Convex C1, "make convex"
                     99: # + for Convex C210 with Convex/OS 8, "make convex8"
                    100: # + for Convex C2 with Convex/OS 9.1, "make convex9"
                    101: # + for Cray X/MP or Y/MP with Unicos System V R3, "make cray"
                    102: # + for Cyber 910 (Silicon-Graphics Iris) with Irix 3.3, "irix33"
                    103: # + for Data General Aviion with Sys V R4 (DG UX 5.40), "make dgux540"
                    104: #     (compile ckwart separately if necessary)
                    105: # + for Data General Aviion, earlier UNIX versions,
                    106: #     "make sys5r3" (maybe compile ckwart separately)
                    107: # ? for Data General MVxxxxx with DG/UX, ???
                    108: # + for DEC VAX (or DECstation?) with Ultrix 1.x "make bsd"
                    109: # + for DEC VAX (or DECstation?) with Ultrix 2.x "make du2"
                    110: # + for DEC VAX (or DECstation?) with Ultrix 3.0, 3.1, "make du3"
                    111: # + for DECstation (or VAX) with Ultrix 4.0 or 4.1, "make du4"
                    112: # + for DECstation (or VAX) with Ultrix 4.x and Kanji support, "make du4kanji"
                    113: # + for DECstation (or VAX) with Ultrix 4.2, "make du42"
                    114: # + for DECstation (or VAX) with Ultrix 4.2, Sys V R4 world, "make du42s5r4"
                    115: # + for DECstation (or VAX) with Ultrix 4.x, POSIX world, "make posix"
                    116: # + for DECstation (or VAX) with Ultrix 4.0 or 4.1, "make du4"
                    117: # ? for DEC Pro-350 with Pro/Venix V1.x, "make provx1"
                    118: # ? for DEC Pro-350 with Pro/Venix V2.0 (Sys V), "make sys3nid" 
                    119: # ? for DEC Pro-380 with Pro/Venix V2.0 (Sys V), "make sys3" or "make sys3nid"
                    120: # ? for DEC Pro-380 with 2.9, 2.10, or 2.11 BSD, "make bsd29" or "make bsd210"
                    121: # + for Dell UNIX Issue 2.1 (= AT&T Sys V/386 R4.3 + fixes), "make sys5r4sxtcp"
                    122: # + for Dell UNIX Issue 2.2 (= AT&T Sys V/386 R4.4 + fixes), "make sys5r4sxtcp"
                    123: # + for DIAB DS90 with DNIX (any version) create an empty <sys/file.h>
                    124: #     if this file does not already exist (or add -DNOFILEH to the make entry).
                    125: # + for DIAB DS90 or LUXOR ABC-9000 with pre-5.2 DNIX, add "getcwd" to libc.a
                    126: #     (search below for "getcwd"), then "make dnixold".
                    127: # + for DIAB DS90 with DNIX 5.2 (Sys V.2) or earlier, "make dnix" or "dnixnd".
                    128: # + for DIAB DS90 with DNIX 5.3 (Sys V.3), "make dnix5r3"
                    129: # + for DIAB DS90 with DNIX 5.3 (Sys V.3) and TCP/IP, "make dnix5r3net"
                    130: # ? for DIAB DS90 with DNIX 5.3 (Sys V.3), ANSI C, "make dnix5r3ansi"
                    131: # + for Encore Multimax 310, 510 with UMAX 4.2, "make umax42"
                    132: # + for Encore Multimax 310, 510 with UMAX 4.3, "make umax43"
                    133: # + for Encore Multimax 310, 510 with UMAX V 2.2, use Berkeley cc, "make bsd"
                    134: # + for Encore 88K with UMAX V 5.2, "make encore88k"
                    135: # + for ESIX System V R4.0.3 with TCP/IP support, "make esixr4"
                    136: # ? for Fortune 32:16, For:Pro 1.8, "make ft18"
                    137: # + for Fortune 32:16, For:Pro 2.1, "make ft21"
                    138: # + for FPS 500 with FPX 4.1, "made bsd"
                    139: # ? for Heurikon, "make sys3"
                    140: # ? for HP-3000, MPE/ix, "make posix"?
                    141: # + for HP-9000 Series, HP-UX < 6.5, without long filenames, no job control,
                    142: #   "make hpuxpre65"
                    143: # + for HP-9000 Series, HP-UX pre-7.0, without long filenames, "make hpux"
                    144: # ? for HP-9000 Series, HP-UX 7.0 or later, no long filenames, "make hpux7sf"
                    145: # + for HP-9000 Series with HP-UX Sys V R2, BSD long names, "make hpuxlf"
                    146: # + for HP-9000 Series with HP-UX Sys V R2, dirent long names, "make hpuxde"
                    147: # + for HP-9000 Series with HP-UX Sys V R3, "make hpuxs5r3"
                    148: # ? for IBM 370 Series with IX/370, "make ix370"
                    149: # + for IBM 370 Series with AIX/370 3.0, "make aix370"
                    150: # + for IBM PC/AT & compatibles with Mark Williams Coherent OS,
                    151: #     command-line version only, "make coherent".
                    152: # + for IBM PC/AT & compatibles with Mark Williams Coherent OS,
                    153: #     minimum interactive version, "make coherentmi" (386 version only)
                    154: # + for IBM PC/AT & compatibles with Mark Williams Coherent OS,
                    155: #     full interactive version, "make coherentmax" (386 version only)
                    156: # ? for IBM PC/AT & compatibles with original MINIX, "make minix".
                    157: # + for IBM PC/AT & compatibles with MINIX, new compiler, "make minixnew"
                    158: # + for IBM PC family, 386-based, with MINIX/386, "make minix386"
                    159: #     or if you have GNU CC, "make minix386gcc"
                    160: # + for IBM PS/2 with PS/2 AIX 1.0, 1.1, or 1.2, "make ps2aix"
                    161: # + for IBM PS/2 with PS/2 AIX 3.0, "make ps2aix3"
                    162: # + for IBM RISC System/6000 with AIX 3.0, "make rs6000"
                    163: # + for IBM RISC System/6000 with AIX 3.1, "make rs6000"
                    164: # ? for IBM RISC System/6000 with AIX 3.2 (OSF/AES compliant), "???"
                    165: # ? for IBM RT PC with AIX 2.1, "make sys3"
                    166: # + for IBM RT PC with AIX 2.2.1, "make rtaix" (special lockfile handling)
                    167: # ? for IBM RT PC with ACIS 4.2, "make bsd"
                    168: # + for IBM RT PC with ACIS 4.3, "make rtacis" or "make bsd KFLAGS=-DNOANSI"
                    169: # + for Intel 302 with Bell Tech Sys V/386 R3.2, "make sys5r3"
                    170: # ? for Intel Xenix/286, "make sco286"
                    171: # ? for Interactive System III (PC/IX) on PC/XT, "make pcix"
                    172: # ? for Interactive System III on other systems, "make is3"
                    173: # + for Interactive 386/ix 2.x, "make is5r3"
                    174: # + for Interactive 386/ix 2.x with Ethernet, "make is5r3net" or "is5r3netg"
                    175: # + for Luxor ABC-9000 (DIAB DS-90) with pre-5.2 DNIX, add "getcwd" to libc.a
                    176: #     (search below for "getcwd"), then "make dnixold".
                    177: # ? for Masscomp RTU AT&T System III, "make rtu"
                    178: # + for Masscomp/Concurrent with RTU 4.0 or later, BSD environment, "make 
                    179: #     rtubsd", "make rtubsd2", "make rtubsd3" (depending on where ndir.h 
                    180: #     is stored, see entries below).
                    181: # ? for Masscomp/Concurrent with RTU 4.0 or later, System V environment,
                    182: #     "make rtus5" (System V R2) or "make rtus5r3" (System V R3 or later).
                    183: # + for Microport SV/AT (System V R2), "make mpsysv"
                    184: # + for Microport SVR4 2.2, "make sys5r4"
                    185: # ? for Microsoft,IBM Xenix (/286, PC/AT, etc), "make xenix" or "make sco286"
                    186: # + for MIPS machine with AT&T System V R3.0, "make mips"
                    187: # + for Modcomp 9730, Real/IX, "make sys5r3" (or modify to use gcc = GLS cc)
                    188: # ? for Motorola Four Phase, "make sys3" or "make sys3nid"
                    189: # + for Motorola Delta System V/68 R3, "make sv68r3"
                    190: # + for Motorola Delta System V/88 R32, "make sv88r32"
                    191: # ? for NCR Tower 1632, OS 1.02, "make tower1"
                    192: # + for NCR Tower 1632 with System V, "make sys3"
                    193: # + for NCR Tower 32, OS Release 1.xx.xx, "make tower32-1"
                    194: # + for NCR Tower 32, OS Release 2.xx.xx, "make tower32-2"
                    195: # + for NCR Tower 32, OS Releases based on Sys V R3, "make tower32"
                    196: # + for NCR Tower 32, OS Releases based on Sys V R3 with gcc "make tower32g"
                    197: # + for NeXT, "make next"
                    198: # + for OkiStation 7300 Series, "make sys5r4sxtcp" 
                    199: # + for Olivetti X/OS R.2.3, "make xos23"
                    200: # + for PFU Compact A Series SX/A TISP V10/E50 (Japan), "make sxae50"
                    201: # ? for Plexus, "make sys3"
                    202: # + for Pyramid, "make bsd"
                    203: # + for POSIX on anything, "make posix" (but adjustments might be necessary).
                    204: # + for POSIX on SUNOS 4.1 or later, "make sunposix"
                    205: # + for POSIX on SUNOS 4.1 or later with GNU cc, "make gccposix"
                    206: # ? for Ridge 32 (ROS3.2), "make ridge32"
                    207: # ? for Samsung MagicStation, "make sys5r4"
                    208: # ? for SCO Xenix 2.2.1 with development system 2.2 on 8086/8 "make sco86"
                    209: # + for SCO Xenix/286 2.2.1 with development system 2.2 on 80286, "make sco286"
                    210: #     NOTE: reportedly this makefile is too long for SCO Xenix/286 make, but it
                    211: #     works with "makeL", or if some of the other make entries are edited out.
                    212: # + for SCO Xenix/386 2.2.2, "make sco386"
                    213: # + for SCO Xenix/386 2.3.x, "make sco3r2" or "make sco3r2x"
                    214: # + for SCO UNIX/386 3.2.0 or 3.2.1, "make sco3r2" or "make sco3r2x"
                    215: # + for SCO UNIX/386 3.2.2, "make sco3r22"
                    216: # + for SCO UNIX/386 3.2.2 with SCO TCP/IP, "make sco3r22net"
                    217: # + for SCO Xenix/386 or UNIX/386 with Excelan TCP/IP, "make sco3r2net"
                    218: # + for SCO Xenix 2.3.x with Racal InterLan TCP/IP, "make sco3r2netri"
                    219: # + for other Unix varieties with Racal Interlan TCP/IP, read sco3r2netri entry
                    220: # + for Sequent Balance 8000 or B8 with DYNIX 3.0.xx, "make bsdlck"
                    221: # + for Sequent Symmetry S81 with DYNIX 3.0.xx, "make bsdlck"
                    222: # + for Sequent DYNIX 3.0.xx, if the above two don't work, "make dynix3"
                    223: # + for Sequent DYNIX 3.1.xx, "make dynix31"
                    224: # + for Sequent with DYNIX/PTX 1.2.1, "make ptx"
                    225: # + for Silicon Graphics Iris System V IRIX 3.2 or earlier, "make iris"
                    226: # + for Silicon Graphics Sys V R3 with IRIX 3.3 or later, "make sys5r3"
                    227: # + for Silicon Graphics Iris Indigo with IRIX 4.0, "make irix40"
                    228: # + for Solbourne 4/500 with OS/MP 4 "make sunos4"
                    229: # + for Solbourne 4/500 with OS/MP 4.1 "make sunos41"
                    230: # + for SONY NEWS with NEWS-OS 4.01C, "make sonynews"
                    231: # + for Sperry (Unisys) 5000-80, "make sys5r3"
                    232: # + for Stardent 1520, "make sys5r3"
                    233: # + for SUN with pre-4.0 SUNOS versions, "make bsd" (or appropriate variant)
                    234: # + for SUN with SUNOS 4.0, BSD environment, "make sunos4"
                    235: # + for SUN with SUNOS 4.0, BSD, with SunLink X.25, make sunos4x25
                    236: # + for SUN with SUNOS 4.0, AT&T Sys V R3 environment, "make sunos4s5"
                    237: # + for SUN with SUNOS 4.1 or 4.1.1, BSD environment, "make sunos41" 
                    238: # + for SUN with SUNOS 4.1, BSD, with SunLink X.25, "make sunos41x25"
                    239: # + for SUN with SUNOS 4.1, 4.1.1, AT&T Sys V R3 environment, "make sunos41s5" 
                    240: # + for SUN with SUNOS 4.1 or later, POSIX environment, "make sunposix"
                    241: # + for Tandy 16/6000 with Xenix 3.0, "make trs16"
                    242: # + for Tektronix 6130/4132/43xx (e.g.4301) with UTek OS, "make utek"
                    243: # + for Tri Star Flash Cache with Esix SVR3.2, "make sys5r3"
                    244: # ? for Unistar, "make sys3"
                    245: # ? for Valid Scaldstar, "make valid"
                    246: # ? for Whitechapel MG01 Genix 1.3, "make white"
                    247: # ? for Zilog ZEUS 3.21, "make zilog"
                    248: #
                    249: # The result should be a runnable program called "wermit" in the current 
                    250: # directory.  After satisfactory testing, you can rename wermit to "kermit" 
                    251: # and put it where users can find it.
                    252: #
                    253: # To remove intermediate and object files, "make clean".
                    254: # To run lint on the source files, "make lintsun", "make lintbsd",
                    255: # "make lints5", as appropriate.
                    256: #
                    257: ##############################################################################
                    258: #
                    259: # NOTES FOR V7 AND 2.X BSD (BASED ON VERSION 4E OF C-KERMIT):
                    260: #
                    261: # For Unix Version 7, several variables must be defined to the values
                    262: # associated with your system.  BOOTNAME=/edition7 is the kernel image on
                    263: # okstate's Perkin-Elmer 3230.  Others will probably be /unix.  PROCNAME=proc
                    264: # is the name of the structure assigned to each process on okstate's system.
                    265: # This may be "_proc" or some other variation.  See <sys/proc.h> for more
                    266: # info on your systems name conventions.  NPROCNAME=nproc is the name of a
                    267: # kernel variable that tells how many "proc" structures there are.  Again
                    268: # this may be different on your system, but nproc will probably be somewhere.
                    269: # The variable NPTYPE is the type of the nproc variable -- int, short, etc.
                    270: # which can probably be gleaned from <sys/param.h>.  The definition of DIRECT
                    271: # is a little more complicated.  If nlist() returns, for "proc" only, the
                    272: # address of the array, then you should define DIRECT as it is below.  If
                    273: # however, nlist() returns the address of a pointer to the array, then you
                    274: # should give DIRECT a null definition (DIRECT= ).  The extern declaration in
                    275: # <sys/proc.h> should clarify this for you.  If it is "extern struct proc
                    276: # *proc", then you should NOT define DIRECT.  If it is "extern struct proc
                    277: # proc[]", then you should probably define DIRECT as it is below.  See
                    278: # ckuv7.hlp for further information.
                    279: #
                    280: # For 2.9 BSD, the makefile may use pcc rather than cc for compiles; that's
                    281: # what the CC and CC2 definitions are for (the current version of the
                    282: # makefile uses cc for both; this was tested in version 4E of C-Kermit and
                    283: # worked OK on the DEC Pro 380, but all bets are off for version 5A).  2.9
                    284: # support basically follows the 4.1 path.  Some 2.9 systems use "dir.h" for
                    285: # the directory header file, others will need to change this to "ndir.h".
                    286: # There are also newer entries for 2.10 BSD, which need testing and probably
                    287: # refinement, particularly a new entry that builds the program with overlays
                    288: # for DEC PDP-11s.
                    289: #
                    290: # The v7 and 2.9bsd versions assume I&D space on a PDP-11.  When building
                    291: # C-Kermit for v7 on a PDP-11, you should probably add the -i option to the
                    292: # link flags.  Without I&D space, overlays will be necessary (if available),
                    293: # or code segment mapping (a`la Pro/Venix if that's available).
                    294: #
                    295: ##############################################################################
                    296: #
                    297: # V7-specific variables.
                    298: # These are set up for Perkin-Elmer 3230 V7 Unix:
                    299: # 
                    300: PROC=proc
                    301: DIRECT=
                    302: NPROC=nproc
                    303: NPTYPE=int
                    304: BOOTFILE=/edition7
                    305: #
                    306: # ( For old Tandy TRS-80 Model 16A or 6000 V7-based Xenix, use PROC=_proc,
                    307: #   DIRECT=-DDIRECT, NPROC=_Nproc, NPTYPE=short, BOOTFILE=/xenix )
                    308: #
                    309: ###########################################################################
                    310: #
                    311: #  Compile and Link variables:
                    312: #
                    313: #  EXT is the extension (file type) for object files, normally o.
                    314: #  See MINIX entry for what to do if another filetype must be used.
                    315: #
                    316: EXT=o
                    317: #LNKFLAGS=
                    318: SHAREDLIB=
                    319: CC= cc
                    320: CC2= cc
                    321: SHELL=/bin/sh
                    322: #
                    323: ###########################################################################
                    324: #
                    325: # Easy installation. Modify this to suit your own computer's file organization
                    326: # and permissions.  If you don't have write access to the destination
                    327: # directories, "make install" will fail.
                    328: 
                    329: WERMIT = makewhat
                    330: DESTDIR =/bin386/usr/bin/
                    331: BINDIR = /usr/local/bin
                    332: MANDIR = /usr/man/manl
                    333: MANEXT = l
                    334: ALL = $(WERMIT)
                    335: 
                    336: all: $(ALL)
                    337: 
                    338: install: $(ALL)
                    339:        cp wermit $(DESTDIR)$(BINDIR)/kermit
                    340:        strip $(DESTDIR)$(BINDIR)/kermit
                    341:        chmod 755 $(DESTDIR)$(BINDIR)/kermit
                    342:        cp ckuker.nr $(DESTDIR)$(BINDIR)/kermit.$(MANEXT)
                    343:        chmod 644 $(DESTDIR)$(BINDIR)/kermit.$(MANEXT)
                    344: 
                    345: makewhat:
                    346:        @echo 'make what?  You must tell which system to make C-Kermit for.'
                    347:        @echo Examples:  make bsd, make sys3, make sunos4, etc.
                    348: 
                    349: ###########################################################################
                    350: #
                    351: # Dependencies Section:
                    352: 
                    353: wermit:        ckcmai.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) ckuus2.$(EXT) ckuus3.$(EXT) \
                    354:                ckuus4.$(EXT) ckuus5.$(EXT) ckuus6.$(EXT) ckuus7.$(EXT) \
                    355:                ckuusx.$(EXT) ckuusy.$(EXT) ckcpro.$(EXT) ckcfns.$(EXT) \
                    356:                ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) ckucon.$(EXT) \
                    357:                ckutio.$(EXT) ckufio.$(EXT) ckudia.$(EXT) ckuscr.$(EXT) \
                    358:                ckcnet.$(EXT)
                    359:        $(CC2) $(LNKFLAGS) -o $(DESTDIR)kermit ckcmai.$(EXT) ckutio.$(EXT) \
                    360:                ckufio.$(EXT) ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) \
                    361:                ckuxla.$(EXT) ckcpro.$(EXT) ckucmd.$(EXT) ckuus2.$(EXT) \
                    362:                ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) ckuus6.$(EXT) \
                    363:                ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) ckuusr.$(EXT) \
                    364:                ckucon.$(EXT) ckudia.$(EXT) ckuscr.$(EXT) ckcnet.$(EXT) $(LIBS)
                    365:        su root ln -f $(DESTDIR)kermit $(DESTDIR)ckermit
                    366: 
                    367: #Malloc Debugging version
                    368: 
                    369: mermit:        ckcmdb.$(EXT) ckcmai.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) ckuus2.$(EXT) \
                    370:                ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) ckuus6.$(EXT) \
                    371:                ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) ckcpro.$(EXT) \
                    372:                ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) \
                    373:                ckucon.$(EXT) ckutio.$(EXT) ckufio.$(EXT) ckudia.$(EXT) \
                    374:                ckuscr.$(EXT) ckcnet.$(EXT)
                    375:        $(CC2) $(LNKFLAGS) -o mermit ckcmdb.$(EXT) ckcmai.$(EXT) \
                    376:                ckutio.$(EXT) ckufio.$(EXT) ckcfns.$(EXT) ckcfn2.$(EXT) \
                    377:                ckcfn3.$(EXT) ckuxla.$(EXT) ckcpro.$(EXT) ckucmd.$(EXT) \
                    378:                ckuus2.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) \
                    379:                ckuus6.$(EXT) ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) \
                    380:                ckuusr.$(EXT) ckucon.$(EXT) ckudia.$(EXT) ckuscr.$(EXT) \
                    381:                ckcnet.$(EXT) $(LIBS)
                    382: 
                    383: # Here is an example of building Kermit with overlays for a small machine,
                    384: # Like a PDP-11 without separate I&D space. This example comes from a 
                    385: # submission by Steven M Schultz <[email protected]>.
                    386: 
                    387: ovwermit: ckcmai.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) ckuus2.$(EXT) \
                    388:        ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) ckcpro.$(EXT) \
                    389:        ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) \
                    390:        ckucon.$(EXT) ckutio.$(EXT) ckufio.$(EXT) ckudia.$(EXT) \
                    391:        ckuscr.$(EXT) ckcnet.$(EXT) ckuus6.$(EXT) ckuus7.$(EXT) ckuusx.$(EXT) \
                    392:        ckuusy.$(EXT) ckustr.o strings.o
                    393:        ar x /lib/libc.a getpwent.o ctime.o ndbm.o
                    394:        $(CC2) $(LNKFLAGS) -o wermit ckcmai.$(EXT) \
                    395:                ckutio.$(EXT) ckufio.$(EXT) ckcfns.$(EXT) ckcfn2.$(EXT) \
                    396:                ckcfn3.$(EXT) \
                    397:                 -Z ckuxla.$(EXT) ckcpro.$(EXT) ckucmd.$(EXT) ckuus2.$(EXT) \
                    398:                    ckuus3.$(EXT) \
                    399:                 -Z ckuus4.$(EXT) ckuus5.$(EXT) ckuusr.$(EXT) ckuus6.$(EXT) \
                    400:                    ctime.o \
                    401:                 -Z ckuus7.$(EXT) ckcfn3.$(EXT) ckudia.$(EXT) ckuscr.$(EXT) \
                    402:                    ckcnet.$(EXT) ckuusy.$(EXT) \
                    403:                 -Z ckuusx.$(EXT) ckucon.$(EXT) getpwent.o ndbm.o \
                    404:                 -Y ckustr.o strings.o $(LIBS)
                    405: 
                    406: strings.o: strings
                    407:        xstr
                    408:        cc -c xs.c
                    409:        mv -f xs.o strings.o
                    410:        rm -f xs.c
                    411: 
                    412: # Dependencies for each module...
                    413: #
                    414: # The following almost makes this work with gcc on the Sun-4.
                    415: # .SUFFIXES: .c .$(EXT)
                    416: # .$(EXT).c: ; $(CC) $(CFLAGS) -c $<
                    417: 
                    418: ckcmai.$(EXT): ckcmai.c ckcker.h ckcdeb.h ckcsym.h ckcasc.h ckcnet.h
                    419: 
                    420: ckcpro.$(EXT): ckcpro.c ckcker.h ckcdeb.h ckcasc.h
                    421: 
                    422: ckcpro.c: ckcpro.w wart ckcdeb.h ckcasc.h ckcker.h
                    423:        ./wart ckcpro.w ckcpro.c
                    424: 
                    425: ckcfns.$(EXT): ckcfns.c ckcker.h ckcdeb.h ckcsym.h ckcasc.h ckcxla.h \
                    426:                ckuxla.h
                    427: 
                    428: ckcfn2.$(EXT): ckcfn2.c ckcker.h ckcdeb.h ckcsym.h ckcasc.h ckcxla.h ckuxla.h
                    429: 
                    430: ckcfn3.$(EXT): ckcfn3.c ckcker.h ckcdeb.h ckcsym.h ckcasc.h ckcxla.h \
                    431:                ckuxla.h
                    432: 
                    433: ckuxla.$(EXT): ckuxla.c ckcker.h ckcdeb.h ckcxla.h ckuxla.h
                    434: 
                    435: ckuusr.$(EXT): ckuusr.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcxla.h ckuxla.h \
                    436:                ckcasc.h ckcnet.h
                    437: 
                    438: ckuus2.$(EXT): ckuus2.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcxla.h ckuxla.h \
                    439:                ckcasc.h
                    440: 
                    441: ckuus3.$(EXT): ckuus3.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcxla.h ckuxla.h \
                    442:                ckcasc.h ckcnet.h
                    443: 
                    444: ckuus4.$(EXT): ckuus4.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcxla.h ckuxla.h \
                    445:                ckcasc.h ckcnet.h ckuver.h
                    446: 
                    447: ckuus5.$(EXT): ckuus5.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcasc.h
                    448: 
                    449: ckuus6.$(EXT): ckuus6.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcasc.h
                    450: 
                    451: ckuus7.$(EXT): ckuus7.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcxla.h ckuxla.h \
                    452:                ckcasc.h ckcnet.h
                    453: 
                    454: ckuusx.$(EXT): ckuusx.c  ckcker.h ckuusr.h ckcdeb.h ckcasc.h
                    455: 
                    456: ckuusy.$(EXT): ckuusy.c  ckcker.h ckcdeb.h ckcasc.h
                    457: 
                    458: ckucmd.$(EXT): ckucmd.c ckcasc.h ckucmd.h ckcdeb.h
                    459: 
                    460: ckufio.$(EXT): ckufio.c ckcdeb.h ckuver.h
                    461: 
                    462: ckutio.$(EXT): ckutio.c ckcdeb.h ckcnet.h ckuver.h
                    463: 
                    464: ckucon.$(EXT): ckucon.c ckcker.h ckcdeb.h ckcasc.h ckcnet.h
                    465: 
                    466: ckcnet.$(EXT): ckcnet.c ckcdeb.h ckcker.h ckcnet.h
                    467: 
                    468: wart: ckwart.$(EXT)
                    469:        $(CC) $(LNKFLAGS) -o wart ckwart.$(EXT) $(LIBS)
                    470: 
                    471: ckcmdb.$(EXT): ckcmdb.c ckcdeb.h
                    472: 
                    473: ckwart.$(EXT): ckwart.c
                    474: 
                    475: ckudia.$(EXT): ckudia.c ckcker.h ckcdeb.h ckucmd.h ckcasc.h
                    476: 
                    477: ckuscr.$(EXT): ckuscr.c ckcker.h ckcdeb.h ckcasc.h
                    478: 
                    479: ###########################################################################
                    480: #
                    481: # Entries to make C-Kermit for specific systems.
                    482: #
                    483: # Put the ones that need short makefiles first (read instructions for
                    484: # BSD 2.10 for hints...)
                    485: 
                    486: #Berkeley UNIX 2.10 and 2.11 on the DEC PDP-11.
                    487: #
                    488: #2.10BSD and 2.11BSD (the latter to a larger extent) are the same as 4.3BSD
                    489: #but without a large address space.  The BSD29 define should *not* be used.
                    490: #This entry doesn't work because "make" runs out of memory on the PDP-11,
                    491: #because of the size of this makefile.  A separate makefile, ckubs2.mak, is
                    492: #provided, which should be identical with this makefile, but with all the
                    493: #parts stripped away that are not relevant to this entry.  Use it like this:
                    494: #
                    495: #  mv ckubs2.mak makefile     -- or --     make -f ckubs2.mak bsd210
                    496: #  make bsd210
                    497: #
                    498: #If you don't have the ckubs2.mak file, edit this makefile to remove 
                    499: #everything below this entry.  Here's an easy way:
                    500: #
                    501: #  grep -n ^.BSD210END makefile    (notice the line number)
                    502: #  head -x makefile > ckubs2.mak   (use the same line number in place of x)
                    503: #  mv ckubs2.mak makefile
                    504: #  make bsd210
                    505: #
                    506: #NOTE: A string extraction method is used to put approx. 9kb of strings into
                    507: #a file. The module ckustr.c should be edited, if necessary, to change the
                    508: #pathname of the string file to where this file will reside (or just define
                    509: #the environment variable KSTR to be the pathname for the string file before
                    510: #running "make"), e.g. "setenv KSTR `pwd`kermit5.sr".  After make is finished,
                    511: #the file kermit5.sr should be moved to the where ckustr.c has been told to
                    512: #look for it.
                    513: #
                    514: bsd210:
                    515:        @echo Making C-Kermit $(CKVER) for 2.10BSD with overlays
                    516:        @echo -n "Be sure to install kermit5.sr with the same pathname"
                    517:        @echo " specified in ckustr.c"
                    518:        chmod +x ckustr.sed
                    519:        make ovwermit "CFLAGS= -O -DBSD43 -DLCKDIR -DNODEBUG -DNOTLOG \
                    520:        -DNOCSETS -DNOHELP -DNOSCRIPT -DNOSPL -DNOXMIT $(KFLAGS) \
                    521:        -Dgethostname=gethnam" "LNKFLAGS= -i " "CC= ./ckustr.sed " "CC2= cc"
                    522: 
                    523: #BSD210END
                    524: 
                    525: #Apple Mac II, A/UX
                    526: #Warning, if "send *" doesn't work, try the auxufs makefile entry below.
                    527: aux:
                    528:        @echo Making C-Kermit $(CKVER) for Macintosh A/UX...
                    529:        make wermit "CFLAGS = -DAUX -DDYNAMIC -DTCPSOCKET $(KFLAGS) -i -O" \
                    530:                "LNKFLAGS = -i"
                    531: 
                    532: #Apple Mac II, A/UX, but with ufs file volumes, uses <dirent.h>.
                    533: auxufs:
                    534:        @echo Making C-Kermit $(CKVER) for Macintosh A/UX...
                    535:        make wermit "CFLAGS = -DAUX -DDYNAMIC -DTCPSOCKET -DDIRENT $(KFLAGS) \
                    536:                -i -O" "LNKFLAGS = -i"
                    537: 
                    538: #Berkeley Unix 4.1
                    539: bsd41:
                    540:        @echo Making C-Kermit $(CKVER) for 4.1BSD...
                    541:        make wermit "CFLAGS= -DBSD41" "LIBS = -ljobs"
                    542: 
                    543: #Berkeley 4.2, 4.3, also Ultrix-32 1.x, 2.x, 3.x, many others
                    544: # Add -O, -DDYNAMIC, -s, etc, if they work.
                    545: bsd:
                    546:        @echo Making C-Kermit $(CKVER) for 4.2BSD...
                    547:        make wermit "CFLAGS= -DBSD4 -DTCPSOCKET $(KFLAGS)"
                    548: 
                    549: #Berkeley 4.2, 4.3, minimum size
                    550: bsdm:
                    551:        @echo Making C-Kermit $(CKVER) for 4.2BSD...
                    552:        make wermit "CFLAGS= -O -DBSD4 -DDYNAMIC -DNODIAL -DNOHELP -DNODEBUG \
                    553:        -DNOTLOG -DNOSCRIPT -DNOCSETS -DNOICP $(KFLAGS)" "LNKFLAGS = -s"
                    554: 
                    555: #Berkeley Unix with HoneyDanBer UUCP
                    556: bsdhdb:
                    557:        @echo Making C-Kermit $(CKVER) for 4.2BSD with HDB UUCP...
                    558:        make wermit "CFLAGS= -DHDBUUCP -DBSD4 -DTCPSOCKET $(KFLAGS)"
                    559: 
                    560: #Berkeley Unix 4.3 with acucntrl program
                    561: bsd43:
                    562:        @echo Making C-Kermit $(CKVER) for 4.3BSD with acucntrl...
                    563:        make wermit "CFLAGS= -DBSD43 -DACUCNTRL -DTCPSOCKET $(KFLAGS) -O"
                    564: 
                    565: #Berkeley Unix 4.2 or 4.3 with lock directory /usr/spool/uucp/LCK/LCK..ttyxx,
                    566: #but without acucntrl program
                    567: bsdlck:
                    568:        @echo Making C-Kermit $(CKVER) for 4.2BSD, /usr/spool/uucp/LCK/...
                    569:        make wermit "CFLAGS= -DLCKDIR -DBSD4 -DTCPSOCKET $(KFLAGS)"
                    570: 
                    571: #Tektronix 6130, 4132, 43xx with UTek OS, /usr/spool/uucp/LCK./...
                    572: utek:
                    573:        @echo Making C-Kermit $(CKVER) for 4.2BSD/UTek
                    574:        make wermit "CFLAGS= -O -DLCKDIR -DBSD4 -DTCPSOCKET -DDYNAMIC \
                    575:        -DUTEK -DLOCK_DIR=\\\"/usr/spool/uucp/LCK.\\\" $(KFLAGS)"
                    576: 
                    577: #Mark Williams Coherent 286 or 386 on IBM PC/AT family.
                    578: #There is a 64K limit on program size, so this is a command-line only version.
                    579: coherent:
                    580:        make "CFLAGS = -O -DCOHERENT -DDYNAMIC -DNOANSI -DNOICP -DNOSETKEY \
                    581:        -DNOCSETS -DNOHELP -DNODIAL -DNOSCRIPT -DNODEBUG -DNOTLOG -DNOXMIT \
                    582:        -DNOMSEND -DNOFRILLS -DNOSYSIOCTLH $(KFLAGS) -VSUVAR" wermit
                    583: 
                    584: #Mark Williams Coherent 386 on IBM PC/AT family.
                    585: #This will make a "minimum interactive" version - no scripts,
                    586: #no character sets, no help, no dial, no debug/transaction logging, no
                    587: #transmit, msend, mail, type, etc.
                    588: coherentmi:
                    589:        make "CFLAGS = -O -DCOHERENT -DDYNAMIC -DNOANSI -DNOSETKEY -DNOSHOW \
                    590:        -DNOCSETS -DNOHELP -DNODIAL -DNOSCRIPT -DNODEBUG -DNOTLOG -DNOXMIT \
                    591:        -DNOMSEND -DNOFRILLS -DNOSYSIOCTLH $(KFLAGS) -VSUVAR" wermit
                    592: 
                    593: #Mark Williams Coherent 386 on IBM PC/AT family.
                    594: coherentmax:
                    595:        make "CFLAGS = -O -DCOHERENT -DDYNAMIC -DNOANSI \
                    596:        -DNOSYSIOCTLH $(KFLAGS) -VSUVAR" "LNKFLAGS = -O" wermit
                    597: 
                    598: #DEC Ultrix 2.x
                    599: # Add -O, -DDYNAMIC, -s, etc, if they work.
                    600: du2:
                    601:        @echo Making C-Kermit $(CKVER) for Ultrix 2.x ...
                    602:        make wermit "CFLAGS= -DBSD4 -DTCPSOCKET -DDU2 $(KFLAGS)"
                    603: 
                    604: #DEC Ultrix 3.1 (and probably also 3.0)
                    605: du3:
                    606:        @echo Making C-Kermit $(CKVER) for Ultrix 3.x...
                    607:        make wermit "CFLAGS= -DBSD4 -DTCPSOCKET -DDIRENT -DSIG_V \
                    608:        -DDYNAMIC $(KFLAGS) -O" "LNKFLAGS = -s"
                    609: 
                    610: #Name changed from ds4 to du4, should work on VAXes as well as DECstations.
                    611: ds4:
                    612:        make du4
                    613: 
                    614: #DEC Ultrix 4.0 or 4.1 on DECstation, VAXstation, VAX, etc.
                    615: du4:
                    616:        @echo Making C-Kermit $(CKVER) for Ultrix 4.0 or 4.1...
                    617:        make wermit "CFLAGS= -DBSD4 -DTCPSOCKET -DSIG_V -DDYNAMIC \
                    618:        $(KFLAGS) -Olimit 1000" "LNKFLAGS = -s"
                    619: 
                    620: #DEC Ultrix 4.2 on DECstation, VAXstation, VAX, etc.
                    621: #Like du4, except new C compiler supports -O2 optimization.
                    622: du42:
                    623:        @echo Making C-Kermit $(CKVER) for Ultrix 4.2...
                    624:        make wermit "CFLAGS= -DBSD4 -DTCPSOCKET -DSIG_V -DDYNAMIC \
                    625:        $(KFLAGS) -O2 -Olimit 1000" "LNKFLAGS = -s"
                    626: 
                    627: #DEC Ultrix 4.2 on DECstation, VAXstation, VAX, etc, System V R4 environment
                    628: du42s5r4:
                    629:        @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4 on Ultrix...'
                    630:        make wermit "CFLAGS = -O2 -Olimit 1000 -DSVR4 -DDIRENT -DHDBUUCP \
                    631:        -DDYNAMIC -DTCPSOCKET $(KFLAGS)" "LNKFLAGS = -s"
                    632: 
                    633: #Sequent Dynix 3.x
                    634: dynix3:
                    635:        @echo Making C-Kermit $(CKVER) for Sequent Dynix 3.x...
                    636:        make wermit "CFLAGS= -DBSD43 -DACUCNTRL -DTCPSOCKET $(KFLAGS) -O \
                    637:        -DUID_T=int -DGID_T=int"
                    638: 
                    639: #Sequent Dynix 3.1.x
                    640: dynix31:
                    641:        @echo Making C-Kermit $(CKVER) for Sequent Dynix 3.1.x...
                    642:        make wermit "CFLAGS= -O -DDYNAMIC -DDCLPOPEN -DLCKDIR -DBSD4 \
                    643:        $(KFLAGS) -DTCPSOCKET"
                    644: 
                    645: #Encore, UMAX 4.3 (BSD) but without acucntrl program.
                    646: encore:
                    647:        make umax43
                    648: 
                    649: #Encore, UMAX 4.3 (BSD) but without acucntrl program.
                    650: umax43:
                    651:        @echo Making C-Kermit $(CKVER) for Encore UMAX 4.3...
                    652:        make PARALLEL=4 wermit \
                    653:        "CFLAGS= -DBSD43 -DENCORE -DDYNAMIC -DTCPSOCKET $(KFLAGS) -O"
                    654: 
                    655: #Encore, UMAX 4.2 (BSD)
                    656: umax42:
                    657:        @echo Making C-Kermit $(CKVER) for Encore UMAX 4.2...
                    658:        make PARALLEL=4 wermit \
                    659:        "CFLAGS= -DBSD4 -DENCORE -DDYNAMIC -DTCPSOCKET $(KFLAGS) -O"
                    660: 
                    661: #Encore 88K UMAX 5.3 with TCP/IP support
                    662: encore88K:
                    663:        @echo 'Making C-Kermit $(CKVER) for Encore 88K UMAX V, TCP/IP...'
                    664:        make wermit "CFLAGS = -q ext=pcc -DSVR3 -DTCPSOCKET -DDIRENT \
                    665:        -DHDBUUCP -DDYNAMIC $(KFLAGS) -O" "LNKFLAGS ="
                    666: 
                    667: #Berkeley Unix 2.8, 2.9 for PDP-11s with I&D space, maybe also Ultrix-11???
                    668: #C-Kermit(5A) is simply too large (even turning off almost every feature
                    669: #available) to run without both I&D space plus overlays.  The old comment
                    670: #suggested running 'pcc' but that won't help.  Changing 'cc' to 'ckustr.sed'
                    671: #will cause a string extraction to be done, saving D space by moving strings
                    672: #to a file.
                    673: bsd29:
                    674:        @echo Making C-Kermit $(CKVER) for 2.8 or 2.9BSD.
                    675:        @echo Read the makefile if you have trouble with this...
                    676:        make ovwermit "CFLAGS= -DBSD29 -DNODEBUG -DNOTLOG -DNOCSETS -DNOHELP \
                    677:        -DNOSCRIPT -DNOSPL -DNOXMIT -DNODIAL $(KFLAGS)" \
                    678:        "LNKFLAGS= -i -lndir" "CC= cc " "CC2= cc"
                    679: 
                    680: #Convex C1 with Berkeley Unix
                    681: convex:
                    682:        @echo Making C-Kermit $(CKVER) for Convex C1 / BSD...
                    683:        make wermit "CFLAGS= -DBSD4 $(KFLAGS) -Dmsleep=mnap"
                    684: 
                    685: #Convex C210 with Convex/OS 8
                    686: convex8:
                    687:        @echo Making C-Kermit $(CKVER) for Convex C210 with OS 8
                    688:        make wermit \
                    689:        "CFLAGS= -DBSD4 -DTCPSOCKET -DNODEBUG -DDIRENT -DNOFILEH \
                    690:        -DDYNAMIC $(KFLAGS) -DSIG_V -Dmsleep=mnap"
                    691: 
                    692: #Convex C2 with Convex OS 9.1 (should also work with 8.1 or later)
                    693: #with ANSI C compiler, uses BSD 4.3 uucp lockfile convention.
                    694: convex9:
                    695:        @echo Making C-Kermit $(CKVER) for Convex C210 with OS 9.1
                    696:        make wermit \
                    697:        "CFLAGS= -DPOSIX -DDIRENT -DNOFILEH -O \
                    698:        -DDYNAMIC -D__STDC__ -DLCKDIR $(KFLAGS) -Dmsleep=mnap -ext -tm c1" \
                    699:        "LNKFLAGS = -ext"
                    700: 
                    701: #Cray X-MP or Y-MP UNICOS System V R3
                    702: #Maybe the -i link option should be removed.
                    703: cray:
                    704:        @echo 'Making C-Kermit $(CKVER) for Cray X/Y-MP UNICOS System V R3...'
                    705:        make wermit NPROC=1 "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP $(KFLAGS) \
                    706:        -i -O" "LNKFLAGS = -i"
                    707: 
                    708: #NeXT
                    709: #Uses shared library to make executable program about 80K smaller.
                    710: #Remove "LIBS = -lsys_s" if this causes trouble.
                    711: next:
                    712:        @echo Making C-Kermit $(CKVER) for NeXT...
                    713:        make wermit \
                    714:        "CFLAGS= -DNEXT -DNOSETBUF -DTCPSOCKET -DDYNAMIC -DLCKDIR \
                    715:        $(KFLAGS) -O -w" "LIBS = -lsys_s"
                    716: 
                    717: #NeXT version built with C-Kermit malloc debugger.
                    718: nextmd:
                    719:        @echo Making C-Kermit $(CKVER) for NeXT with malloc debug...
                    720:        make mermit \
                    721:        "CFLAGS= -DNEXT -DTCPSOCKET -DDYNAMIC -DLCKDIR -DNOSETBUF -O -w \
                    722:        -Dmalloc=dmalloc -Dfree=dfree -DMDEBUG" "LIBS = -lsys_s"
                    723: 
                    724: #nextg - Gets useful error messages out of GNU cc.
                    725: # can't use -ansi here for some reason it clobbers definition of SIGQUIT (?)
                    726: nextg:
                    727:        @echo Making C-Kermit $(CKVER) for NeXT...
                    728:        make wermit "CFLAGS= -DNEXT -DTCPSOCKET -DDYNAMIC -DLCKDIR -DKANJI \
                    729:        -DNOSETBUF $(KFLAGS) -Wall -O" \
                    730:        "LIBS = -lsys_s"
                    731: 
                    732: #NeXT minimum interactive
                    733: nextmi:
                    734:        @echo Minimum interactive
                    735:        make nextg "KFLAGS=-DNOSPL -DNOXMIT -DNOMSEND -DNOFRILLS \
                    736:        -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG -DNOSCRIPT -DNOCSETS \
                    737:        -DNOSETKEY -DNOSETBUF -UTCPSOCKET" "LNKFLAGS = -s"
                    738: 
                    739: #POSIX
                    740: posix:
                    741:        @echo 'Making C-Kermit $(CKVER) for POSIX, no UUCP lockfile support...'
                    742:        make wermit "CFLAGS= -DPOSIX -DNOUUCP $(KFLAGS) -O"
                    743: 
                    744: #SONY NEWS, NEWS-OS 4.01C
                    745: sonynews:
                    746:        @echo Making C-Kermit $(CKVER) for SONY NEWS-OS 4.01C...
                    747:        make wermit "CFLAGS= -DBSD43 -DKANJI -DACUCNTRL \
                    748:        -DTCPSOCKET -O"
                    749: 
                    750: #SUNPOSIX
                    751: sunposix:
                    752:        @echo Making C-Kermit $(CKVER) for POSIX...
                    753:        make wermit "CC= /usr/5bin/cc " \
                    754:        "CFLAGS= -DPOSIX -DHDBUUCP -DVOID=void -O"
                    755: 
                    756: #IBM's AIX 3.0 on IBM 370 mainframe, tested on AIX F44 thru F50.
                    757: aix370:
                    758:        @echo Making C-Kermit $(CKVER) for IBM System/370 AIX 3.0...
                    759:        make wermit "CFLAGS= -DAIX370 -DTCPSOCKET -DLCKDIR -DDIRENT -DYNAMIC \
                    760:        $(KFLAGS)" "LIBS = -lbsd"
                    761: 
                    762: #IBM's AIX 3.0 on IBM PS/2, tested on AIX F44 thru F50.
                    763: #This is exactly the same as AIX370 except for the version herald.
                    764: #(Note, apparently AIX 3.0 for PS/2's was never formally released).
                    765: ps2aix3:
                    766:        @echo Making C-Kermit $(CKVER) for IBM PS/2 AIX 3.0...
                    767:        make wermit "CFLAGS= -DAIXPS2 -DTCPSOCKET -DLCKDIR -DDIRENT -DYNAMIC \
                    768:        $(KFLAGS)" "LIBS = -lbsd"
                    769: 
                    770: #IBM AIX 3.0 for RISC System/6000.
                    771: rs6000:
                    772:        @echo Making C-Kermit $(CKVER) for IBM AIX 3.0 or 3.1, RS/6000...
                    773:        make wermit \
                    774:        "CFLAGS= -DAIXRS -DTCPSOCKET -DSVR3 -DDIRENT -DDYNAMIC -DCK_ANSIC -O \
                    775:        $(KFLAGS)" "LNKFLAGS = -s"
                    776: 
                    777: #SUN OS version 4.0, BSD environment, has saved original euid feature.
                    778: sunos4:
                    779:        @echo Making C-Kermit $(CKVER) for SUNOS 4.0, BSD environment...
                    780:        make wermit "CFLAGS= -O -DSUNOS4 -DDIRENT -DTCPSOCKET -DSAVEDUID \
                    781:        -DDYNAMIC $(KFLAGS)"
                    782: 
                    783: #As above, but with SunLink X.25 support
                    784: sunos4x25:
                    785:        @echo SunLink X.25 support
                    786:        make sunos4 "KFLAGS=$(KFLAGS) -DSUNX25"
                    787: 
                    788: #SUN OS version 4.1, BSD environment, has saved original euid feature.
                    789: #Uses Honey DanBer UUCP.  Requires presence of /usr/spool/locks directory.
                    790: # /var/spool/ should be a symbolic link to  /usr/spool/.
                    791: sunos41:
                    792:        @echo Making C-Kermit $(CKVER) for SUNOS 4.1 / BSD...
                    793:        make wermit \
                    794:        "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DDIRENT -DTCPSOCKET -DNOSETBUF \
                    795:        -DSAVEDUID -DDYNAMIC $(KFLAGS)"
                    796: 
                    797: #SUNOS 4.1 with SunLink X.25 support
                    798: sunos41x25:
                    799:        @echo SunLink X.25 support
                    800:        make sunos41 "KFLAGS=$(KFLAGS) -DSUNX25"
                    801: 
                    802: #SUNOS 4.1 with Kanji support.
                    803: sunos41k:
                    804:        @echo Kanji support
                    805:        make sunos41 "KFLAGS=$(KFLAGS) -DKANJI"
                    806: 
                    807: #As above, but without Cyrillic support.
                    808: sunos41knc:
                    809:        @echo Kanji, no Cyrillic
                    810:        make sunos41 "KFLAGS=$(KFLAGS) -DKANJI -DNOCYRIL"
                    811: 
                    812: #SUN OS version 4.1, BSD environment, no character set translation.
                    813: # Otherwise just like sunos41.
                    814: sunos41ncs:
                    815:        @echo No character sets
                    816:        make sunos41 "KFLAGS=$(KFLAGS) -DNOCSETS"
                    817: 
                    818: #SUN OS version 4.1, BSD environment, no DIAL command.
                    819: # Otherwise just like sunos41.
                    820: sunos41xd:
                    821:        @echo No DIAL command
                    822:        make sunos41 "KFLAGS=$(KFLAGS) -DNODIAL"
                    823: 
                    824: #SUN OS version 4.0, BSD environment, minimum size...
                    825: sunos4m:
                    826:        @echo Minimum size
                    827:        make sunos4 "KFLAGS=$(KFLAGS) -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG \
                    828:        -DNOSCRIPT -DNOCSETS -DNOICP -DNOMSEND" "LNKFLAGS = -s"
                    829: 
                    830: #SUN OS version 4.1, BSD environment, minimum size...
                    831: sunos41m:
                    832:        @echo Minimum size
                    833:        make sunos41 "KFLAGS=$(KFLAGS) -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG \
                    834:        -DNOSCRIPT -DNOCSETS -DNOICP -DNOMSEND -UTCPSOCKET" "LNKFLAGS = -s"
                    835: 
                    836: #SUN OS version 4.0, BSD environment, minimum size w/command parser.
                    837: sunos4mi:
                    838:        @echo Minimum interactive
                    839:        make sunos4 "KFLAGS=-DNOSPL -DNOXMIT -DNOMSEND -DNOFRILLS \
                    840:        -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG -DNOSCRIPT -DNOCSETS \
                    841:        -DNOSETKEY -DNOSHOW -UTCPSOCKET $(KFLAGS)" "LNKFLAGS = -s"
                    842: 
                    843: #SUN OS version 4.1 or later, BSD environment, minimum size w/command parser.
                    844: sunos41mi:
                    845:        @echo Minimum interactive
                    846:        make sunos41 "KFLAGS=-DNOSPL -DNOXMIT -DNOMSEND -DNOFRILLS \
                    847:        -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG -DNOSCRIPT -DNOCSETS \
                    848:        -DNOSHOW -DNOSETKEY -UTCPSOCKET $(KFLAGS)" "LNKFLAGS = -s"
                    849: 
                    850: #SUN OS version 4.1, BSD environment, no network support.
                    851: sunos41nn:
                    852:        @echo Making C-Kermit $(CKVER) for SUNOS 4.1, BSD, no networks...
                    853:        make sunos41 "KFLAGS=$(KFLAGS) -UTCPSOCKET"
                    854: 
                    855: #SUN OS version 4.1 or later, BSD, no debugging log.
                    856: sunos41nd:
                    857:        @echo No debugging...
                    858:        make sunos41 "KFLAGS=$(KFLAGS) -DNODEBUG"
                    859: 
                    860: #SUN OS version 4.1 or later, BSD, no transaction log.
                    861: sunos41nt:
                    862:        @echo No transaction log...
                    863:        make sunos41 "KFLAGS=$(KFLAGS) -DNOTLOG"
                    864: 
                    865: #SUN OS version 4.1 or later, BSD, no frills.
                    866: sunos41nf:
                    867:        @echo No frills...
                    868:        make sunos41 "KFLAGS=$(KFLAGS) -DNOFRILLS"
                    869: 
                    870: #SUN OS version 4.1 or later, BSD, no command-line options.
                    871: sunos41nl:
                    872:        @echo No command-line options...
                    873:        make sunos41 "KFLAGS=$(KFLAGS) -DNOCMDL"
                    874: 
                    875: #SUN OS version 4.1 or later, BSD, no job control.
                    876: sunos41nj:
                    877:        @echo No job control...
                    878:        make sunos41 "KFLAGS=$(KFLAGS) -DNOJC"
                    879: 
                    880: #SUNOS 4.1 with malloc debugger
                    881: sunos41md:
                    882:        @echo Making C-Kermit $(CKVER) for SUNOS 4.1 malloc debug...
                    883:        make mermit \
                    884:        "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DDIRENT -DTCPSOCKET \
                    885:        -DSAVEDUID -DDYNAMIC $(KFLAGS) -Dmalloc=dmalloc -Dfree=dfree -DMDEBUG"
                    886: 
                    887: #SUN OS version 4.0, System V R3 environment (-i option omitted).
                    888: sunos4s5:
                    889:        @echo Making C-Kermit $(CKVER) for SUNOS 4.0, System V R3...
                    890:        @echo Ignore harmless complaints about redefinition of symbols...
                    891:        make wermit "CC= /usr/5bin/cc " \
                    892:        "CFLAGS = -DDIRENT -DSUN4S5 -DYNAMIC $(KFLAGS) -O"
                    893: 
                    894: #SUN OS version 4.1 or later, System V R3 environment (-i option omitted).
                    895: #Like sunos4s5, but SUNOS 4.1 has switched to HDB UUCP lockfile conventions.
                    896: sunos41s5:
                    897:        @echo Making C-Kermit $(CKVER) for SUNOS 4.1 System V R3...
                    898:        @echo Ignore harmless complaints about redefinition of symbols...
                    899:        make wermit "CC= /usr/5bin/cc " \
                    900:        "CFLAGS = -DSUN4S5 -DDIRENT -DHDBUUCP -DDYNAMIC $(KFLAGS) -O"
                    901: 
                    902: #SUN OS version 4.1 or later, gcc, profiling with gprof, no debugging.
                    903: #To get profile, "make sunos4p" (on SUN), then "./wermit".  After running
                    904: #wermit, "gprof ./wermit | lpr" or whatever to get execution profile.
                    905: sunos41p:
                    906:        @echo Making C-Kermit $(CKVER) for SUNOS 4.x with profiling...
                    907:        make wermit "CC= gcc " \
                    908:        "CFLAGS= -DSUNOS41 -DNODEBUG -DSAVEDUID -DDIRENT -DTCPSOCKET \
                    909:        -DDYNAMIC $(KFLAGS) -pg" "LNKFLAGS = -pg"
                    910: 
                    911: #Apollo with Domain SR10.0 or later, BSD environment
                    912: #Reportedly, it might also help to add '-A,systype=bsd4.3' to CFLAGS.
                    913: #Reportedly, there is also a problem with getc & putc macros that can
                    914: #be handled by using '#ifdef apollo' somewhere to redefine them???
                    915: #On the other hand, other reports indicate that it works fine as-is.
                    916: #NOTE: This entry was previously like this:
                    917: #      make wermit "CFLAGS= -DNOFILEH -DBSD4 $(KFLAGS) -Uaegis \
                    918: #      -DTCPSOCKET -U__STDC__"
                    919: #Recent reports (Dec 91) indicate SR10 has an ANSI-compliant C compiler,
                    920: #in addition to an older one that claimed to be ANSI-compliant but wasn't.
                    921: #The following make entry (plus checks that are made in ckcdeb.h) detect
                    922: #which compiler is used and define the CK_ANSIC or NOANSI flags accordingly.
                    923: sr10-bsd:
                    924:        @echo Making C-Kermit $(CKVER) for Apollo SR10.0 / BSD ...
                    925:        make wermit "CFLAGS= -O -DBSD43 -DTCPSOCKET -Uaegis $(KFLAGS)"
                    926: 
                    927: #Apollo with Domain SR10.0 or later, System V R3 environment.
                    928: #Don't use the optimizer (-O), it causes problems at runtime.
                    929: sr10-s5r3:
                    930:        @echo Making C-Kermit $(CKVER) for Apollo SR10.0 / Sys V R3 ...
                    931:        make wermit "CFLAGS= -DNOFILEH -DSVR3 $(KFLAGS) -Uaegis -U__STDC__"
                    932: 
                    933: #Apollo Domain/IX (untested, try this if sr10-bsd doesn't work)
                    934: # (Can we add -DTCPSOCKET here?)
                    935: apollobsd:
                    936:        @echo Making C-Kermit $(CKVER) for Apollo Domain/IX...
                    937:        make wermit "CC= /bin/cc " "CC2= /bin/cc " \
                    938:        "CFLAGS= -DNOFILEH -DBSD4 $(KFLAGS) -Uaegis"
                    939: 
                    940: #Version 7 Unix (see comments above)
                    941: v7:
                    942:        @echo Making C-Kermit $(CKVER) for UNIX Version 7.
                    943:        @echo Read the makefile if you have trouble with this...
                    944:        make wermit "CFLAGS=-DV7 -DPROCNAME=\\\"$(PROC)\\\" \
                    945:        -DBOOTNAME=\\\"$(BOOTFILE)\\\" -DNPROCNAME=\\\"$(NPROC)\\\" \
                    946:        -DNPTYPE=$(NPTYPE) $(DIRECT) -DO_RDWR=2 -DO_NDELAY=0 -DO_SCCS_ID \
                    947:        $(KFLAGS)"
                    948: 
                    949: #AT&T UNIX System V R3, signal() is void rather than int.
                    950: #Uses dirent.h and Honey DanBer uucp.
                    951: #Add the -i link option if necessary.
                    952: sys5r3:
                    953:        @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R3...'
                    954:        make wermit "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DDYNAMIC $(KFLAGS) \
                    955:        -O" "LNKFLAGS ="
                    956: 
                    957: #AT&T UNIX System V R3, for 3B computers with Wollongong TCP/IP.
                    958: sys5r3net3b:
                    959:        @echo 'Making C-Kermit $(CKVER) for AT&T UNIX SVR3/3B/Wollongong...'
                    960:        make wermit \
                    961:        "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DDYNAMIC -DWOLLONGONG $(KFLAGS) \
                    962:        -O" "LIBS= -lnet -lnsl_s" "LNKFLAGS ="
                    963: 
                    964: #AT&T UNIX System V R3, signal() is void rather than int.
                    965: #Uses dirent.h and Honey DanBer uucp, has <termiox.h>.
                    966: #Has <termiox.h> for RTS/CTS flow control.
                    967: sys5r3tx:
                    968:        @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R3...'
                    969:        make wermit "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DDYNAMIC \
                    970:        -DTERMIOX $(KFLAGS) -i -O" "LNKFLAGS ="
                    971: 
                    972: #AT&T UNIX System V R3, signal() is void rather than int.
                    973: #Uses dirent.h and Honey DanBer uucp, has <termiox.h>.
                    974: #Has <sys/termiox.h> for RTS/CTS flow control.
                    975: sys5r3sx:
                    976:        @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R3...'
                    977:        make wermit "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DDYNAMIC \
                    978:        -DSTERMIOX $(KFLAGS) -i -O" "LNKFLAGS ="
                    979: 
                    980: #AT&T UNIX System V R4.
                    981: #Has <termiox.h>.
                    982: sys5r4:
                    983:        @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
                    984:        make wermit "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DDYNAMIC \
                    985:        -DTERMIOX $(KFLAGS)" "LNKFLAGS = -s"
                    986: 
                    987: #AT&T UNIX System V R4 with Wollongong TCP/IP.
                    988: #Has <termiox.h>.
                    989: sys5r4net:
                    990:        @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
                    991:        make wermit "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DDYNAMIC \
                    992:        -DTERMIOX -DWOLLONGONG $(KFLAGS)" "LNKFLAGS = -s"
                    993: 
                    994: #AT&T UNIX System V R4.
                    995: #Has <sys/termiox.h>.
                    996: sys5r4sx:
                    997:        @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
                    998:        make wermit "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DDYNAMIC \
                    999:        -DSTERMIOX $(KFLAGS)" "LNKFLAGS = -s"
                   1000: 
                   1001: #AT&T UNIX System V R4.
                   1002: #Has <sys/termiox.h>, regular Berkeley sockets library, i.e. in.h and inet.h
                   1003: #are not misplaced in sys (rather than netinet and arpa, respectively).
                   1004: #Uses ANSI C constructs, <sys/termiox.h>, etc etc. 
                   1005: sys5r4sxtcp:
                   1006:        @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
                   1007:        make wermit "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DDYNAMIC \
                   1008:        -DSTERMIOX -DTCPSOCKET $(KFLAGS)" \
                   1009:        "LIBS= -lsocket -lnsl" "LNKFLAGS = -s"
                   1010: 
                   1011: #Smallest possible version of above
                   1012: s5r4m:
                   1013:        @echo Minimum size
                   1014:        make sys5r4sx "KFLAGS=$(KFLAGS) -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG \
                   1015:        -DNOSCRIPT -DNOCSETS -DNOICP -DNOMSEND -UTCPSOCKET" "LNKFLAGS = -s"
                   1016: 
                   1017: #Smallest possible interactive version of above
                   1018: s5r4mi:
                   1019:        @echo Minimum interactive
                   1020:        make sys5r4sx "KFLAGS=-DNOSPL -DNOXMIT -DNOMSEND -DNOFRILLS -DNOSHOW \
                   1021:        -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG -DNOSCRIPT -DNOCSETS -DNOSETKEY \
                   1022:        -UTCPSOCKET $(KFLAGS)" "LNKFLAGS = -s"
                   1023: 
                   1024: #AT&T UNIX System V R4, has <sys/termiox.h>
                   1025: #ANSI C function prototyping disabled.
                   1026: sys5r4sxna:
                   1027:        @echo No ANSI C prototyping...
                   1028:        make sys5r4sx "KFLAGS=$(KFLAGS) -DNOANSI"
                   1029: 
                   1030: #Commodore Amiga with AT&T UNIX System V R4 and TCP/IP support.
                   1031: #Has <sys/termiox.h>.
                   1032: svr4amiganet:
                   1033:        @echo 'Making C-Kermit $(CKVER) for Amiga SVR4 + TCP/IP...'
                   1034:        make wermit "CC=gcc" "CC2=gcc" \
                   1035:        "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DDYNAMIC -DSTERMIOX \
                   1036:        -DTCPSOCKET $(KFLAGS)" "LNKFLAGS = -s" "LIBS = -lsocket -lnsl"
                   1037: 
                   1038: #ESIX SVR4.0.3 with TCP/IP support.
                   1039: #Has <sys/termiox.h>, ANSI C function prototyping disabled.
                   1040: esixr4:
                   1041:        @echo 'Making C-Kermit $(CKVER) for ESIX SVR4 + TCP/IP...'
                   1042:        make wermit "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DDYNAMIC -DNOANSI \
                   1043:        -DSTERMIOX -DTCPSOCKET $(KFLAGS)" "LNKFLAGS = -s" \
                   1044:        "LIBS = -lsocket -lnsl"
                   1045: 
                   1046: #AT&T UNIX System V R4.
                   1047: #Has <sys/termiox.h>, Wollongong TCP/IP.
                   1048: sys5r4sxnet:
                   1049:        @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
                   1050:        make wermit "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DDYNAMIC \
                   1051:        -DSTERMIOX -DWOLLONGONG $(KFLAGS)" "LNKFLAGS = -s"
                   1052: 
                   1053: #AT&T UNIX System V R4, no <termio.x> or <sys/termio.x>.
                   1054: sys5r4nx:
                   1055:        @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
                   1056:        make wermit "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DDYNAMIC \
                   1057:        $(KFLAGS)" "LNKFLAGS = -s"
                   1058: 
                   1059: #AT&T UNIX System V R4, no <termio.x> or <sys/termio.x>, has Wollongong TCP/IP.
                   1060: sys5r4nxnet:
                   1061:        @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
                   1062:        make wermit "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DDYNAMIC \
                   1063:        -DWOLLONGONG $(KFLAGS)" "LNKFLAGS = -s"
                   1064: 
                   1065: #Data General UX 5.40 (= System V R4) for DG Aviion, with TCP/IP support.
                   1066: dgux540:
                   1067:        @echo 'Making C-Kermit $(CKVER) for DG Aviion UX 5.40...'
                   1068:        make wermit "CFLAGS = -O -DDGUX540 -DDIRENT -DHDBUUCP \
                   1069:        -DDYNAMIC -DSTERMIOX -DTCPSOCKET $(KFLAGS)" "LNKFLAGS = -s"
                   1070: 
                   1071: #Silicon Graphics System V R3 with BSD file system (IRIS)
                   1072: iris:
                   1073:        @echo Making C-Kermit $(CKVER) for Silicon Graphics IRIX pre-3.3...
                   1074:        make wermit "CFLAGS = -O -DSVR3 -DLONGFN  $(KFLAGS) \
                   1075:        -I/usr/include/bsd" "LIBS = -lbsd"
                   1076: 
                   1077: #Silicon Graphics IRIS System V R3
                   1078: irix33:
                   1079:        @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 3.3...'
                   1080:        make wermit \
                   1081:        "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DDYNAMIC $(KFLAGS) -O" \
                   1082:        "LNKFLAGS ="
                   1083: 
                   1084: #Silicon Graphics Iris Indigo with IRIX 4.0.0
                   1085: #Strict ANSI C compilation, TCP/IP support included
                   1086: irix40:
                   1087:        @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 4.0...'
                   1088:        make wermit \
                   1089:        "CFLAGS = -DIRIX40 -DSVR3 -DDIRENT -DHDBUUCP -DDYNAMIC -DPWID_T=uid_t \
                   1090:        -DCK_ANSIC -DTCPSOCKET $(KFLAGS) -O -I/usr/include/bsd"
                   1091: 
                   1092: #In case they type "make sys5"...
                   1093: sys5:
                   1094:        make sys3
                   1095: 
                   1096: #Generic ATT System III or System V (with I&D space)
                   1097: sys3:
                   1098:        @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System III'
                   1099:        @echo 'or System V R2 or earlier...'
                   1100:        make wermit "CFLAGS = -DATTSV $(KFLAGS) -i -O" "LNKFLAGS = -i"
                   1101: 
                   1102: #Generic ATT System III or System V R2 or earlier, "no void":
                   1103: #special entry to remove "Illegal pointer combination" warnings.
                   1104: sys3nv:
                   1105:        @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System III'
                   1106:        @echo 'or System V R2 or earlier...'
                   1107:        make wermit "CFLAGS = -DATTSV -Dvoid=int  $(KFLAGS) -i -O" \
                   1108:        "LNKFLAGS = -i"
                   1109: 
                   1110: #Generic ATT System III or System V (no I&D space)
                   1111: sys3nid:
                   1112:        @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System III'
                   1113:        @echo 'or System V R2 or earlier, no I&D space...'
                   1114:        make wermit "CFLAGS = -DATTSV $(KFLAGS) -O" "LNKFLAGS ="
                   1115: 
                   1116: #AT&T 7300/Unix PC systems, sys3 but special handling for internal modem.
                   1117: #Link with the shared library -- the conflict with openi in shared library
                   1118: #is solved with -Dopeni=xopeni
                   1119: sys3upc:
                   1120:        @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC, shared lib...'
                   1121:        @echo 'If shared lib causes trouble, use make sys3upcold.'
                   1122:        make wermit "CFLAGS = -O -DATT7300 -DDYNAMIC -DNOSETBUF $(KFLAGS) \
                   1123:        -Dopeni=xopeni" \
                   1124:        "CC2 = ld /lib/crt0s.o /lib/shlib.ifile" "LNKFLAGS = -s"
                   1125: 
                   1126: #AT&T 7300/Unix PC systems, as above, but use gcc.
                   1127: sys3upcg:
                   1128:        @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC...'
                   1129:        make wermit "CFLAGS = -O -DATT7300 -DDYNAMIC -DNOSETBUF $(KFLAGS) \
                   1130:        -Dopeni=xopeni" \
                   1131:        "CC = gcc" "CC2 = gcc" "LNKFLAGS = -s -shlib"
                   1132: 
                   1133: #AT&T 7300/Unix PC systems, sys3 but special handling for internal modem.
                   1134: sys3upcold:
                   1135:        @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC...'
                   1136:        make wermit "CFLAGS = -DATT7300 $(KFLAGS) -O" "LNKFLAGS = -i"
                   1137: 
                   1138: #AT&T 6300 PLUS (warning, -O makes it run out of space).
                   1139: #NOTE: Remove -DHDBUUCP if not using Honey DanBer UUCP.
                   1140: att6300:
                   1141:        @echo 'Making C-Kermit $(CKVER) for AT&T 6300 PLUS...'
                   1142:        make wermit "CFLAGS = -DATT6300 -DHDBUUCP $(KFLAGS) -O -Ml -i" \
                   1143:        "LNKFLAGS = -i -Ml"
                   1144: 
                   1145: #AT&T 6300 PLUS with no debugging (about 34K smaller)
                   1146: # -Optimization saves about 20K too.
                   1147: att6300nd:
                   1148:        @echo 'Making C-Kermit $(CKVER) for AT&T 6300 PLUS, no debugging...'
                   1149:        make wermit \
                   1150:        "CFLAGS = -DATT6300 -DHDBUUCP -DNODEBUG $(KFLAGS) -O -i -Ml" \
                   1151:                "LNKFLAGS = -i -Ml"
                   1152: 
                   1153: #AT&T 3B2, 3B20-series computers running AT&T UNIX System V.
                   1154: #This is just generic System V with Honey DanBer UUCP, so refer to sys3hdb.
                   1155: att3bx:
                   1156:        make sys3hdb
                   1157: 
                   1158: #Any System V R2 or earlier with Honey DanBer UUCP (same as above)
                   1159: sys3hdb:
                   1160:        @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System III'
                   1161:        @echo 'or System V R2 or earlier with Honey DanBer UUCP...'
                   1162:        make wermit "CFLAGS = -DATTSV -DHDBUUCP $(KFLAGS) -i -O" \
                   1163:        "LNKFLAGS = -i"
                   1164: 
                   1165: #In case they say "make sys5hdb" instead of "make sys3hdb"...
                   1166: sys5hdb:
                   1167:        make sys3hdb
                   1168: 
                   1169: #IBM PS/2 with AIX 1.0 (currently in field test as F10A)
                   1170: #  Reports indicate that -O switch must be omitted.
                   1171: #  It is also possible that "made bsd" will work (reports welcome).
                   1172: #  One report recommended "make LIBS=-lbsd bsd" did the trick.
                   1173: ps2aix:
                   1174:        @echo 'Making C-Kermit $(CKVER) for IBM AIX 1.0 PS/2...'
                   1175:        make wermit "CFLAGS = -DATTSV -DPS2AIX10 $(KFLAGS) -i" "LNKFLAGS = -i"
                   1176: 
                   1177: #IBM RT PC with AIX 2.2.1
                   1178: #This one has unique and strange lockfiles.
                   1179: rtaix:
                   1180:        @echo 'Making C-Kermit $(CKVER) for IBM RT PC, AIX 2.2.1...'
                   1181:        make wermit \
                   1182:        "CFLAGS = -DATTSV -DRTAIX -DHDBUUCP -DTCPSOCKET $(KFLAGS) -O -w" \
                   1183:        "LNKFLAGS = -s"
                   1184: 
                   1185: #IBM RT PC with AIX 2.2.1 (BSD 4.3)
                   1186: # Add -O, -DDYNAMIC, -s, etc, if they work.
                   1187: rtacis:
                   1188:        @echo Making C-Kermit $(CKVER) for RT PC with ACIS 2.2.1 = BSD 4.3...
                   1189:        make wermit "CFLAGS= -DBSD4 -DTCPSOCKET $(KFLAGS) -U__STDC__" \
                   1190:        "LNKFLAGS = -s"
                   1191: 
                   1192: #HP 9000 series 300, 500, 800, no long filenames and no job control.
                   1193: #This is certainly only good for HPUX versions earlier than 6.5.
                   1194: hpuxpre65:
                   1195:        @echo 'Making C-Kermit $(CKVER) for HP-9000 HP-UX, no long filenames.'
                   1196:        make wermit "CFLAGS = -DHPUX -DHPUXPRE65 $(KFLAGS) -O" "LNKFLAGS ="
                   1197: 
                   1198: #HP 9000 series 300, 500, 800, no long filenames.
                   1199: #This is probably only good for HPUX versions earlier than 6.2.
                   1200: hpux:
                   1201:        @echo 'Making C-Kermit $(CKVER) for HP-9000 HP-UX, no long filenames.'
                   1202:        make wermit "CFLAGS = -DHPUX $(KFLAGS) -O" "LNKFLAGS ="
                   1203: 
                   1204: #HP-UX 7.0, no long filenames, no network support.
                   1205: hpux7sf:
                   1206:        @echo 'Making C-Kermit $(CKVER) for HP-9000 HP-UX, no long filenames.'
                   1207:        make wermit "CFLAGS = -DHPUX $(KFLAGS) -DSIG_V -O" "LNKFLAGS ="
                   1208: 
                   1209: #HP 9000 series 300, 500, 800, long filenames (using BSD file system)
                   1210: # (This one is probably necessary for the Series 300)
                   1211: hpuxlf:
                   1212:        @echo 'Making C-Kermit $(CKVER) for HP-9000 HP-UX, long filenames...'
                   1213:        make wermit "CFLAGS = -DHPUX -DNDIR -DLONGFN -DYNAMIC $(KFLAGS) -O" \
                   1214:        "LNKFLAGS ="
                   1215: 
                   1216: #HP 9000 series 300, 500, 800, long filenames (using <dirent.h>)
                   1217: hpuxde:
                   1218:        @echo 'Making C-Kermit $(CKVER) for HP-9000 HP-UX, long filenames...'
                   1219:        make wermit "CFLAGS = -DHPUX -DDIRENT -DDYNAMIC $(KFLAGS) -O" \
                   1220:        "LNKFLAGS ="
                   1221: 
                   1222: #HP 9000 series 300, 500, 800, long filenames, System V R3 or later
                   1223: # (Does anybody know what is the earliest release of HP-UX based on SVR3?)
                   1224: hpuxs5r3:
                   1225:        @echo 'Making C-Kermit $(CKVER) for HP-9000 HP-UX, long filenames...'
                   1226:        make wermit \
                   1227:        "CFLAGS = -DHPUX -DSVR3 -DDIRENT -DTCPSOCKET -DDYNAMIC \
                   1228:        -DNOSETBUF $(KFLAGS) -O" "LNKFLAGS =" "LIBS=-lBSD"
                   1229: 
                   1230: #HP 9000 series 800 HP-UX 7.0, long filenames, network support, HDB uucp
                   1231: #there must be <arpa/telnet.h> & <arpa/inet.h> present to support this
                   1232: #configuration.  To use this, you must have bought the ARPA Services
                   1233: #Product from HP, and you must get the files "telnet.h" and "inet.h"
                   1234: #from the Berkeley Standard Distribution because (reportedly) they are not
                   1235: #part of the HP product.
                   1236: hpux70lfn:
                   1237:        @echo 'Making C-Kermit $(CKVER) for HP9000/8xx HP-UX V. 7.0'
                   1238:        @echo 'supporting: long filenames, networking, HDB uucp...'
                   1239:        make wermit "CFLAGS = -DHPUXDEBUG -DHPUX -DSVR3 -DDIRENT -DLONGFN \
                   1240:        -DHDBUUCP $(KFLAGS) -DLOCK_DIR=\\\"/usr/spool/uucp\\\" \
                   1241:        -DNOSETBUF -DTCPSOCKET -O" "LNKFLAGS = -s" "LIBS = -lBSD"
                   1242: 
                   1243: #Regulus on CIE Systems 680/20
                   1244: cie:
                   1245:        @echo 'Making C-Kermit $(CKVER) for CIE Systems 680/20 Regulus...'
                   1246:        make wermit "CFLAGS = -DATTSV -DNOFILEH -DCIE $(KFLAGS) -O" \
                   1247:        "LNKFLAGS ="
                   1248: 
                   1249: #Microport SV/AT for IBM PC/AT 286 and clones, System V R2.
                   1250: #The -O flag may fail on some modules (like ckuus2.c), in which case you 
                   1251: #should compile them by hand, omitting the -O.  If you get "hash table
                   1252: #overflow", try adding -DNODEBUG.
                   1253: #Also, reportedly this compiles better with gcc than with cc.
                   1254: mpsysv:
                   1255:        @echo 'Making C-Kermit $(CKVER) for Microport SV/AT 286...'
                   1256:        make wermit "CFLAGS= -DATTSV $(KFLAGS) -O -Ml" "LNKFLAGS = -Ml"
                   1257: 
                   1258: #Microsoft "Xenix/286" e.g. for IBM PC/AT
                   1259: xenix:
                   1260:        @echo 'Making C-Kermit $(CKVER) for Xenix/286'
                   1261:        make wermit "CFLAGS= -DXENIX -DNOFILEH $(KFLAGS) -Dunix -F 3000 -i" \
                   1262:        "LNKFLAGS = -F 3000 -i"
                   1263: 
                   1264: #SCO Xenix 2.2.1 for IBM PC, XT, PS2/30, or other 8088 or 8086 machine
                   1265: #If this doesn't work, try some of the tricks from sco286.
                   1266: sco86:
                   1267:        @echo 'Making C-Kermit $(CKVER) for SCO Xenix/86...'
                   1268:        make wermit \
                   1269:        "CFLAGS= -DXENIX -DNOFILEH $(KFLAGS) -Dunix -F 3000 -i -M0me" \
                   1270:        "LNKFLAGS = -F 3000 -i -M0me" "LIBS = -lx"
                   1271: 
                   1272: #SCO Xenix/286 2.2.1, e.g. for IBM PC/AT, PS/2 Model 50, etc.
                   1273: #Reportedly, this "make" can fail simply because of the size of this
                   1274: #makefile.  If that happens, use "makeL", or edit out some of the
                   1275: #other entries.
                   1276: sco286:
                   1277:        @echo 'Making C-Kermit $(CKVER) for SCO Xenix/286...'
                   1278:        @echo 'If make fails, try using makeL.'
                   1279:        make wermit \
                   1280:        "CFLAGS= -s -O -LARGE -DXENIX -DNOFILEH -Dunix -DRDCHK -DNAP \
                   1281:        $(KFLAGS) -F 3000 -i -M2let32" \
                   1282:        "LIBS = -lx" "LNKFLAGS = -s -O -LARGE -F 3000 -i -M2let32"
                   1283: 
                   1284: #SCO Xenix/286 2.2.1, e.g. for IBM PC/AT, PS/2 Model 50, etc.
                   1285: #As above, but with HDBUUCP
                   1286: sco286hdb:
                   1287:        @echo 'Making C-Kermit $(CKVER) for SCO Xenix/286 with HDB UUCP...'
                   1288:        @echo 'If make fails, try using makeL.'
                   1289:        make wermit \
                   1290:        "CFLAGS= -s -O -LARGE -DXENIX -DNOFILEH -Dunix -DRDCHK -DNAP \
                   1291:        -DHDBUUCP $(KFLAGS) -F 3000 -i -M2let32" \
                   1292:        "LIBS = -lx" "LNKFLAGS = -s -O -LARGE -F 3000 -i -M2let32"
                   1293: 
                   1294: #SCO Xenix/386 2.2.2
                   1295: sco386:
                   1296:        @echo 'Making C-Kermit $(CKVER) for SCO Xenix/386...'
                   1297:        make wermit \
                   1298:        "CFLAGS= -DXENIX -DNOFILEH -Dunix -DRDCHK -DNAP $(KFLAGS) -Otcl -M3e" \
                   1299:        "LIBS = -lx"
                   1300: 
                   1301: #SCO XENIX/386 2.3.3 with gcc 1.37 or later...
                   1302: sco386gcc:
                   1303:        @echo 'Making C-Kermit $(CKVER) for SCO Xenix/386 2.3.3, gcc...'
                   1304:        make wermit "CC = gcc" "CC2 = gcc" \
                   1305:        "CFLAGS= -O -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP \
                   1306:        -DNOJC -DNODEBUG -DDYNAMIC $(KFLAGS) \
                   1307:        -traditional -fpcc-struct-return -fstrength-reduce \
                   1308:        -DM_BITFIELDS -DM_COFF -DM_I386 -DM_I86 -DM_I86SM \
                   1309:        -DM_INTERNAT -DM_SDATA -DM_STEXT -DM_SYS3 -DM_SYS5 \
                   1310:        -DM_SYSIII -DM_SYSV -DM_WORDSWAP -DM_XENIX \
                   1311:        -DPWID_T=int " "LNKFLAGS = " "LIBS = -lx"
                   1312: 
                   1313: #SCO UNIX/386 3.2.0, 3.2.1, and SCO Xenix 2.3.x
                   1314: sco3r2:
                   1315:        @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386...'
                   1316:        @echo 'Warning: If make blows up, edit the makefile to join'
                   1317:        @echo 'the following three continued lines into one line.'
                   1318:        make wermit \
                   1319:        "CFLAGS= -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP \
                   1320:        -DNOJC $(KFLAGS) -Otcl" "LIBS = -lc -lx"
                   1321: 
                   1322: # Exactly the same as above, but enables some special SCO-specific code
                   1323: # that allegedly clears up some problems with HANGUP and with uugetty.
                   1324: # For satisfactory operation on bidrectional lines that are handled by
                   1325: # uugetty, you must install the kermit program with owner=group=uucp
                   1326: # and permission 06755.
                   1327: sco3r2x:
                   1328:        @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386...'
                   1329:        @echo 'Warning: If make blows up, edit the makefile to join'
                   1330:        @echo 'the following three continued lines into one line.'
                   1331:        make wermit \
                   1332:        "CFLAGS= -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP -DNOJC \
                   1333:        -DSCO32 $(KFLAGS) -Otcl" "LIBS = -lc -lx"
                   1334: 
                   1335: #SCO UNIX/386 3.2.0 and SCO Xenix 2.3.x with Excelan TCP/IP support
                   1336: sco3r2net:
                   1337:        @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 / Excelan...'
                   1338:        @echo 'Warning: If make blows up, edit the makefile to join'
                   1339:        @echo 'the following three continued lines into one line.'
                   1340:        make wermit \
                   1341:        "CFLAGS= -I/usr/include/exos -DXENIX -DNOFILEH -DHDBUUCP -DRDCHK \
                   1342:        -DSVR3 -DNAP -DTCPSOCKET -DEXCELAN -DNOJC $(KFLAGS) -Otcl" \
                   1343:        "LIBS = -lc -lx -lsocket"
                   1344: 
                   1345: #SCO Xenix 2.3.x with Racal InterLan TCP/IP support
                   1346: # Extra compile flags for other version of Racal InterLan TCP/IP:
                   1347: # Xenix286/NP621-286, use -Ml -DPARAMH -DINTERLAN -Di286 -DSYSV
                   1348: # Xenix386/NP621-386, use -DPARAMH -DINTERLAN -Di386 -DSYSV
                   1349: # ISC386ix/NP622I, use -DSYSV -Di386
                   1350: # SCO Unix3.2/NP622S, use -DSYSV -Di386 -DSCO_UNIX
                   1351: # AT&T SVR3.2/NP622A, use -DSYSV -Di386 -DATT
                   1352: sco3r2netri:
                   1353:        @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 / Racal InterLan...'
                   1354:        @echo 'Warning: If make blows up, edit the makefile to join'
                   1355:        @echo 'the following four continued lines into one line.'
                   1356:        make wermit \
                   1357:        "CFLAGS= -I/usr/include/interlan -DXENIX -DNOFILEH -DHDBUUCP \
                   1358:        -DSVR3 -DRDCHK -DNAP -DTCPSOCKET -DPARAMH -DINTERLAN -Di386 -DSYSV \
                   1359:        -DNOJC $(KFLAGS) -Otcl -M3e" "LIBS = -lc -lx -ltcp"
                   1360: 
                   1361: #SCO UNIX/386 3.2.2 or later (supports POSIX job control)
                   1362: sco3r22:
                   1363:        @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2.2...'
                   1364:        @echo 'Warning: If make blows up, edit the makefile to join'
                   1365:        @echo 'the following three continued lines into one line.'
                   1366:        make wermit \
                   1367:        "CFLAGS= -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP \
                   1368:        -DPWID_T=int $(KFLAGS) -Otcl" "LIBS = -lx"
                   1369: 
                   1370: #SCO UNIX/386 3.2.2 or later with gcc 1.40 or later, POSIX job control
                   1371: sco3r22gcc:
                   1372:        @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2.2, gcc'
                   1373:        @echo 'Warning: If make blows up, edit the makefile to join'
                   1374:        @echo 'the following three continued lines into one line.'
                   1375:        make wermit "CC = gcc" \
                   1376:        "CFLAGS= -O -DPOSIX -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP \
                   1377:        -traditional -fpcc-struct-return -fstrength-reduce \
                   1378:        -DM_BITFIELDS -DM_COFF -DM_I386 -DM_I86 -DM_I86SM \
                   1379:        -DM_INTERNAT -DM_SDATA -DM_STEXT -DM_SYS3 -DM_SYS5 \
                   1380:        -DM_SYSIII -DM_SYSV -DM_UNIX -DM_WORDSWAP -DM_XENIX -Dunix \
                   1381:        -DPWID_T=int $(KFLAGS) " "LNKFLAGS = " "LIBS = -lc -lx"
                   1382: 
                   1383: #SCO UNIX/386 3.2.2 or later (supports POSIX job control) with SCO TCP/IP
                   1384: sco3r22net:
                   1385:        @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2.2 + TCP/IP...'
                   1386:        @echo 'Warning: If make blows up, edit the makefile to join'
                   1387:        @echo 'the following three continued lines into one line.'
                   1388:        make wermit \
                   1389:        "CFLAGS= -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP -DTCPSOCKET \
                   1390:        $(KFLAGS) -DPWID_T=int -Otcl" \
                   1391:        "LNKFLAGS = " "LIBS = -lc -lx -lsocket -lc_s"
                   1392: 
                   1393: #PC/IX, Interactive Corp System III for IBM PC/XT
                   1394: pcix:
                   1395:        @echo 'Making C-Kermit $(CKVER) for PC/IX...'
                   1396:        make wermit \
                   1397:        "CFLAGS= -DPCIX -DISIII $(KFLAGS) -Dsdata=sdatax -O -i" "LNKFLAGS = -i"
                   1398: 
                   1399: #Interactive Corp System III port in general --
                   1400: is3:
                   1401:        @echo 'Making C-Kermit $(CKVER) for Interactive System III...'
                   1402:        make wermit \
                   1403:        "CFLAGS= -DISIII $(KFLAGS) -Ddata=datax -O -i" "LNKFLAGS= -i"
                   1404: 
                   1405: #Interactive UNIX System V R3, signal() is void rather than int.
                   1406: #Uses dirent.h and Honey DanBer uucp.
                   1407: #NOTE: One user claims the definitions for UID_T and GID_T are required.
                   1408: #If they make trouble for you, remove them.  On the other hand, if you
                   1409: #have trouble with the other is5r3 entries below, try adding these
                   1410: #definitions.
                   1411: is5r3:
                   1412:        @echo 'Making C-Kermit $(CKVER) for Interactive 386/ix or later...'
                   1413:        make wermit "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -g -DNOCSETS \
                   1414:        -DUID_T=ushort -DGID_T=ushort -DDYNAMIC -DI386IX $(KFLAGS)" \
                   1415:        "LNKFLAGS = -g"
                   1416: 
                   1417: #Interactive UNIX System V R3, Posix variant.  Untested.
                   1418: #Uses dirent.h and Honey DanBer uucp.
                   1419: is5r3p:
                   1420:        @echo 'Making C-Kermit $(CKVER) for Interactive 386/ix or later...'
                   1421:        make wermit "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -g -DNOCSETS \
                   1422:        -DDYNAMIC -DI386IX -DPOSIX $(KFLAGS)" "LNKFLAGS=" "LIBS=-lcposix"
                   1423: 
                   1424: #Interactive UNIX System V R3, signal() is void rather than int.
                   1425: #Uses dirent.h and Honey DanBer uucp. Needs -linet for net functions.
                   1426: is5r3net:
                   1427:        @echo 'Making C-Kermit $(CKVER) for Interactive 386/ix or later...'
                   1428:        make wermit "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DDYNAMIC -DTCPSOCKET \
                   1429:        -DI386IX $(KFLAGS) -O" "LIBS = -linet"
                   1430: 
                   1431: #Interactive UNIX System V R3.
                   1432: #Like is5r3net, but with -g (whatever that is, some like it, some don't).
                   1433: is5r3netg:
                   1434:        @echo 'Making C-Kermit $(CKVER) for Interactive 386/ix or later...'
                   1435:        make wermit "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DDYNAMIC -DTCPSOCKET \
                   1436:        -DI386IX $(KFLAGS) -g" "LNKFLAGS = -g" "LIBS = -linet"
                   1437: 
                   1438: #Masscomp System III
                   1439: rtu:
                   1440:        @echo 'Making C-Kermit $(CKVER) for Masscomp RTU System III...'
                   1441:        make wermit \
                   1442:        "CFLAGS= -UFIONREAD -DATTSV $(KFLAGS) -O" "LNKFLAGS =" "LIBS= -ljobs"
                   1443: 
                   1444: #Masscomp/Concurrent RTU 4.0 or later, Berkeley environment.
                   1445: #Includes <ndir.h> = /usr/include/ndir.h
                   1446: #Note "LIBS = lndir" might not be necessary because of "ucb make".
                   1447: rtubsd:
                   1448:        @echo 'Making C-Kermit $(CKVER) for Masscomp RTU 4.1A...'
                   1449:        ucb make wermit \
                   1450:        "CFLAGS= -DBSD4 -DRTU -DNDIR -DHDBUUCP -DTCPSOCKET $(KFLAGS)" \
                   1451:        "LIBS = -lndir"
                   1452:        
                   1453: #Masscomp/Concurrent RTU 4.0 or later, same as above,
                   1454: #Includes "usr/lib/ndir.h"
                   1455: #Note "LIBS = -lndir" might not be necessary because of "ucb make".
                   1456: rtubsd2:
                   1457:        @echo 'Making C-Kermit $(CKVER) for Masscomp RTU 4.1A...'
                   1458:        ucb make wermit "CFLAGS= -DBSD4 -DRTU -DXNDIR -DHDBUUCP $(KFLAGS)" \
                   1459:        "LIBS = -lndir"
                   1460: 
                   1461: #Masscomp/Concurrent RTU 4.0 or later, same as above,
                   1462: #Includes <sys/ndir.h>
                   1463: #Note "LIBS = lndir" might not be necessary because of "ucb make".
                   1464: rtubsd3:
                   1465:        @echo 'Making C-Kermit $(CKVER) for Masscomp RTU 4.x BSD...'
                   1466:        ucb make wermit "CFLAGS= -DBSD4 -DRTU -DHDBUUCP $(KFLAGS)" \
                   1467:        "LIBS = -lndir"
                   1468: 
                   1469: #Masscomp/Concurrent RTU 4.0 or later, System V R2, using <dirent.h>.
                   1470: #If this gives problems, add back the -DRTU switch.
                   1471: rtus5:
                   1472:        @echo 'Making C-Kermit $(CKVER) for Masscomp RTU 4.x BSD...'
                   1473:        make wermit "CFLAGS= -DATTSV -DHDBUUCP -DDIRENT -DNOSETBUF $(KFLAGS)"
                   1474: 
                   1475: #Masscomp/Concurrent RTU 4.x, System V R3, using <dirent.h>.
                   1476: #Use this one if rtus5 gives warnings about pointer type mismatches.
                   1477: #If this gives problems, add back the -DRTU switch.
                   1478: rtus5r3:
                   1479:        @echo 'Making C-Kermit $(CKVER) for Masscomp RTU Sys V R3...'
                   1480:        make wermit "CFLAGS= -DSVR3 -DHDBUUCP -DDIRENT $(KFLAGS)"
                   1481: 
                   1482: #DEC Pro-3xx with Pro/Venix V1.0 or V1.1
                   1483: # Requires code-mapping on non-I&D-space 11/23 processor, plus some
                   1484: # fiddling to get interrupt targets into resident code section.
                   1485: # This almost certainly doesn't work any more, but there are almost certainly
                   1486: # no more of these systems in existence.
                   1487: provx1:
                   1488:        @echo 'Making C-Kermit $(CKVER) for DEC Pro-3xx, Pro/Venix 1.x...'
                   1489:        make wart "CFLAGS= -DPROVX1 $(KFLAGS)" "LNKFLAGS= "
                   1490:        make wermit "CFLAGS = -DPROVX1 -DNOFILEH -md780" \
                   1491:                "LNKFLAGS= -u _sleep -lc -md780"
                   1492: 
                   1493: #NCR Tower 1632, OS 1.02
                   1494: tower1:
                   1495:        @echo 'Making C-Kermit $(CKVER) for NCR Tower 1632, OS 1.02...'
                   1496:        make wermit "CFLAGS= -DTOWER1 $(KFLAGS)"
                   1497: 
                   1498: #NCR Tower 32, OS Release 1.xx.xx
                   1499: tower32-1:
                   1500:        @echo 'Making C-Kermit $(CKVER) for NCR Tower 32 Rel 1 System V R2...'
                   1501:        make wermit "CFLAGS = -DATTSV -DDYNAMIC $(KFLAGS) -O" "LNKFLAGS = -n"
                   1502: 
                   1503: #NCR Tower 32, OS Release 2.xx.xx
                   1504: tower32-2:
                   1505:        @echo 'Making C-Kermit $(CKVER) for NCR Tower 32 Rel 2 System V R2...'
                   1506:        make wermit "CFLAGS = -DATTSV -DHDBUUCP -DDYNAMIC $(KFLAGS) -O2" \
                   1507:        "LNKFLAGS = -n"
                   1508: 
                   1509: #NCR Tower 32, OS Releases based on System V R3
                   1510: #Don't add -DNAP (doesn't work right) or -DRDCHK (not available in libc).
                   1511: tower32:
                   1512:        @echo 'Making C-Kermit $(CKVER) for NCR Tower 32 System V R3...'
                   1513:        make wermit \
                   1514:        "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DDYNAMIC -DNOSYSIOCTLH $(KFLAGS) \
                   1515:        -DUID_T=ushort -DGID_T=ushort -O1"
                   1516: 
                   1517: #NCR Tower 32, OS Releases based on System V R3
                   1518: tower32g:
                   1519:        @echo 'Making C-Kermit $(CKVER) for NCR Tower 32 System V R3, gcc...'
                   1520:        make wermit "CC = gcc" \
                   1521:        "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DDYNAMIC -DNOSYSIOCTLH $(KFLAGS) \
                   1522:        DUID_T=ushort -DGID_T=ushort -O -fstrength-reduce -fomit-frame-pointer"
                   1523: 
                   1524: #Fortune 32:16, For:Pro 1.8 (mostly like 4.1bsd)
                   1525: ft18:
                   1526:        @echo 'Making C-Kermit $(CKVER) for Fortune 32:16 For:Pro 1.8...'
                   1527:        make wermit "CFLAGS= -DNODEBUG -DBSD4 -DFT18 -DNOFILEH $(KFLAGS) \
                   1528:        -DPID_T=short"
                   1529: 
                   1530: #Fortune 32:16, For:Pro 2.1 (mostly like 4.1bsd)
                   1531: ft21:
                   1532:        @echo 'Making C-Kermit $(CKVER) for Fortune 32:16 For:Pro 2.1...'
                   1533:        make wermit "CFLAGS= -O -DNODEBUG -DBSD4 -DFT21 -DNOFILEH -SYM 800 \
                   1534:        -DDYNAMIC $(KFLAGS) -DPID_T=short" "LNKFLAGS= -n -s" "LIBS= -lv -lnet"
                   1535: 
                   1536: #Valid Scaldstar
                   1537: #Berkeleyish, but need to change some variable names.
                   1538: valid:
                   1539:        @echo 'Making C-Kermit $(CKVER) for Valid Scaldstar...'
                   1540:        make wermit \
                   1541:        "CFLAGS= -DBSD4 -DNODEBUG -DNOTLOG -Dcc=ccx -DFREAD=1 $(KFLAGS)"
                   1542: 
                   1543: #IBM IX/370 on IBM 370 Series mainframes
                   1544: #Mostly like sys3, but should buffer packets.
                   1545: ix370:
                   1546:        @echo 'Making C-Kermit $(CKVER) for IBM IX/370...'
                   1547:        make wermit "CFLAGS = -DIX370 -DATTSV $(KFLAGS) -i -O" \
                   1548:        "LNKFLAGS = -i"
                   1549: 
                   1550: #Amdahl UTS 2.4 on IBM 370 series compatible mainframes.
                   1551: #Mostly like V7, but can't do initrawq() buffer peeking.
                   1552: uts24:
                   1553:        @echo 'Making C-Kermit $(CKVER) for Amdahl UTS 2.4...'
                   1554:        make wermit "CFLAGS=-DV7 -DPROCNAME=\\\"$(PROC)\\\" \
                   1555:        -DUTS24 -DBOOTNAME=\\\"$(BOOTFILE)\\\" -DNPROCNAME=\\\"$(NPROC)\\\" \
                   1556:        -DNPTYPE=$(NPTYPE) $(DIRECT) $(KFLAGS)"
                   1557: 
                   1558: #Amdahl UTSV UNIX System V = System V R2 or earlier.
                   1559: utsv:
                   1560:        @echo 'Making C-Kermit $(CKVER) for Amdahl UTSV...'
                   1561:        make wermit "CFLAGS = -DUTSV $(KFLAGS) -i -O" "LNKFLAGS = -i"
                   1562: 
                   1563: #BBN C/70 with IOS 2.0
                   1564: #Mostly Berkeley-like, but with some ATTisms
                   1565: c70:
                   1566:        @echo 'Making C-Kermit $(CKVER) for BBN C/70 IOS 2.0...'
                   1567:        make wermit "CFLAGS= -DBSD4 -DC70 $(KFLAGS)"
                   1568: 
                   1569: #Zilog ZEUS 3.21
                   1570: zilog:
                   1571:        @echo 'Making C-Kermit $(CKVER) for Zilog Zeus 3.21...'
                   1572:        make wermit "CFLAGS = -DATTSV -DZILOG -DNODEBUG $(KFLAGS) -i -O" \
                   1573:        "LNKFLAGS = -i -lpw"
                   1574: 
                   1575: #Whitechapel MG-1 Genix 1.3
                   1576: white:
                   1577:        @echo 'Making C-Kermit $(CKVER) for Whitechapel MG-1 Genix 1.3...'
                   1578:        @touch ckcpro.c
                   1579:        make wermit "CFLAGS= -DBSD4 -Dzkself()=0  $(KFLAGS)"
                   1580: 
                   1581: #Pixel 1000
                   1582: pixel:
                   1583:        @echo 'Making C-Kermit $(CKVER) for Pixel 1000...'
                   1584:        make wermit "CFLAGS= -DBSD4 -Dzkself()=0 $(KFLAGS)"
                   1585: 
                   1586: #Sequent DYNIX/PTX 1.2.1
                   1587: ptx:
                   1588:        @echo Making C-Kermit $(CKVER) for Sequent DYNIX/PTX 1.2.1...
                   1589:        make wermit "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -DDYNAMIC -DPTX \
                   1590:        -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t $(KFLAGS) -i -O" \
                   1591:        "LNKFLAGS = -i"
                   1592: 
                   1593: #CDC VX/VE 5.2.1
                   1594: vxve:
                   1595:        @echo 'Making C-Kermit $(CKVER) for CDC VX/VE 5.2.1...'
                   1596:        make wermit \
                   1597:        "CFLAGS = -DATTSV -DVXVE -DNODEBUG -DNOTLOG $(KFLAGS) -i -O" \
                   1598:        "LNKFLAGS = -i"
                   1599: 
                   1600: #Tandy 16/6000 with Xenix 3.0
                   1601: #Add -DNOxxx options to remove features if program won't load.
                   1602: trs16:
                   1603:        @echo 'Making C-Kermit $(CKVER) for Tandy 16/16000, Xenix 3.0...'
                   1604:        make wermit "CFLAGS = -DATTSV -DTRS16 -DDCLPOPEN $(KFLAGS) -O" \
                   1605:        "LNKFLAGS = -n -s"
                   1606: 
                   1607: #DIAB DS90 or LUXOR ABC-9000 with pre-5.2 DNIX.  Sys V with nap() and rdchk().
                   1608: # nd = no opendir(), readdir(), closedir(), etc.
                   1609: # Some of the modules fail to compile with -O.
                   1610: dnixnd:
                   1611:        @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with very old DNIX 5.2.'
                   1612:        make wermit "CFLAGS = -DATTSV -DNAP -DRDCHK -DDYNAMIC -DDCLPOPEN \
                   1613:        -U__STDC__ $(KFLAGS)"
                   1614: 
                   1615: #DIAB DS90 with DNIX 5.2.  Sys V with nap() and rdchk().
                   1616: # This one has opendir(), readdir(), closedir(), etc.
                   1617: # Some of the modules fail to compile with -O.
                   1618: dnix:
                   1619:        @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with old DNIX 5.2...'
                   1620:        make wermit "CFLAGS = -DATTSV -DNAP -DRDCHK -DDIRENT -DDYNAMIC  \
                   1621:        -U__STDC__ $(KFLAGS)"
                   1622: 
                   1623: #DIAB DS90 with DNIX 5.3 or later, with HDB UUCP, nap() and rdchk().
                   1624: dnix5r3:
                   1625:        @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with DNIX 5.3...'
                   1626:        @echo 'with Honey DanBer UUCP'
                   1627:        make wermit "CFLAGS = -DSVR3 -DHDBUUCP -DNAP -DRDCHK -DDIRENT \
                   1628:        -DDYNAMIC $(KFLAGS) -O"
                   1629: 
                   1630: #DIAB DS90 with DNIX 5.3 or later, with HDB UUCP, nap() and rdchk() + TCP/IP
                   1631: dnix5r3net:
                   1632:        @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with DNIX 5.3...'
                   1633:        @echo 'with Honey DanBer UUCP and TCP/IP'
                   1634:        make wermit "CFLAGS = -DSVR3 -DHDBUUCP -DNAP -DRDCHK -DDIRENT \
                   1635:        -DTCPSOCKET -DDYNAMIC $(KFLAGS) -O -I/usr/include/bsd" "LIBS = ln"
                   1636: 
                   1637: #DIAB DS90 with DNIX 5.3 or later, with HDB UUCP, nap() and rdchk(),
                   1638: #ANSI C compilation and libraries:
                   1639: dnix5r3ansi:
                   1640:        @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with DNIX 5.3...'
                   1641:        @echo 'with ANSI C Honey DanBer UUCP'
                   1642:        make wermit \
                   1643:        "CFLAGS = -DSVR3 -DDIAB -DHDBUUCP -DNAP -DRDCHK -DDIRENT -DDYNAMIC \
                   1644:        -DCK_ANSILIBS -O -X7 -X9 $(KFLAGS)"
                   1645: 
                   1646: #Ridge 32 with ROS 3.2
                   1647: ridge32:
                   1648:        @echo 'Making C-Kermit $(CKVER) Ridge 32 ROS 3.2'
                   1649:        make wermit \
                   1650:        "CFLAGS = -DATTSV -DNOFILEH -DNODEBUG -DNOTLOG $(KFLAGS) -i -O" \
                   1651:        "LNKFLAGS = -i"
                   1652: 
                   1653: #Altos 486, 586, or 986 with Xenix 3.0
                   1654: altos:
                   1655:        @echo 'Making C-Kermit $(CKVER) for Altos x86 with Xenix 3.0...'
                   1656:        make wermit \
                   1657:        "CFLAGS= -DATTSV -DA986 -DNODEBUG -DNOTLOG $(KFLAGS) -i -O" \
                   1658:        "LNKFLAGS= -i"
                   1659: 
                   1660: #Altos 986 with Xenix 3.0, as above, but command-line only, minimal size.
                   1661: #For systems with small memories.  It might also be necessary to chop certain
                   1662: #modules up into smaller pieces, e.g. ckuus3-6, because of symbol table
                   1663: #overflow.   If this makefile is too big or complex for the Altos, compile
                   1664: #and link by hand or write shell scripts.
                   1665: altosc:
                   1666:        @echo 'Making C-Kermit $(CKVER) for Altos x86 Xenix 3.0, remote...'
                   1667:        make wermit \
                   1668:        "CFLAGS= -DATTSV -DA986 -DNODEBUG -DNOTLOG -DNOSCRIPT -DNODIAL \
                   1669:        -DNOCSETS -DNOANSI -DNOMSEND -DNOSPL -DNOICP $(KFLAGS) -Mm -O" \
                   1670:        "LNKFLAGS= -Mm -s"
                   1671: 
                   1672: #Altos 986 with Xenix 3.0, as above, but interactive only, minimal size.
                   1673: altosi:
                   1674:        @echo 'Making C-Kermit $(CKVER) for Altos x86 Xenix 3.0, local...'
                   1675:        make wermit \
                   1676:        "CFLAGS= -DATTSV -DA986 -DNODEBUG -DNOTLOG -DNOSCRIPT -DNODIAL \
                   1677:        -DNOCSETS -DNOANSI -DNOMSEND -DNOSPL -DNOCMDL -DNOFRILLS -DNOHELP \
                   1678:        -DNOSETKEY $(KFLAGS) -Mm -O" "LNKFLAGS= -Mm -s"
                   1679: 
                   1680: #MINIX - PC version with 64K+64K limit.
                   1681: # Reportedly, the linker (asld) can run out of space while linking.  The only
                   1682: # way around this is to make a copy of libc.a from which all modules that are
                   1683: # not used by Kermit are removed.  If you have trouble compiling or running
                   1684: # wart, "touch wart".  If that doesn't help, "touch ckcpro.c".
                   1685: # The version configured below has no interactive command parser.
                   1686: # If you can build this version successfully, maybe there will be room for
                   1687: # a minimal interactive command parser too; try replacing -DNOICP with
                   1688: # -DNOSPL.
                   1689: minix:
                   1690:        @echo 'Making C-Kermit $(CKVER) for MINIX, no command parser...
                   1691:        @echo 'TOTALLY UNTESTED!'
                   1692:        make wermit EXT=s \
                   1693:        "CFLAGS= -DV7 -DMINIX -i -D_MINIX -D_POSIX_SOURCE -DDYNAMIC \
                   1694:        -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t -DSIG_V \
                   1695:        -DNOXMIT -DNOMSEND -DNOFRILLS -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG \
                   1696:        -DNOSCRIPT -DNOCSETS -DNOICP -DNOSETKEY $(KFLAGS)" \
                   1697:        "LNKFLAGS= -i -T"
                   1698: 
                   1699: #MINIX - PC version with 64K+64K limit, new (as yet unreleased) ACK 2.0 beta C 
                   1700: #compiler, which outputs .o object files, rather than .s.  But 'make' still
                   1701: #expects .s files, so must be patched to use .o.  Tested on Minix 1.5.10.
                   1702: minixnew:
                   1703:        @echo 'Making C-Kermit $(CKVER) for MINIX (new ACK 2.0 compiler),'
                   1704:        @echo 'no command parser...  TOTALLY UNTESTED!'
                   1705:        make wermit \
                   1706:        "CFLAGS= -DV7 -DMINIX -i -D_MINIX -D_POSIX_SOURCE -DDYNAMIC \
                   1707:        -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t -DSIG_V -DNODIAL \
                   1708:        -DNOHELP -DNODEBUG -DNOTLOG -DNOSCRIPT -DNOCSETS -DNOICP $(KFLAGS)" \
                   1709:        "LNKFLAGS= -i -T"
                   1710: 
                   1711: #MINIX/386 (PC Minix modifed by Bruce Evans in Australia to use 386 addressing)
                   1712: minix386:
                   1713:        @echo 'Making C-Kermit $(CKVER) for MINIX/386...'
                   1714:        @echo 'TOTALLY UNTESTED!'
                   1715:        make wermit EXT=s \
                   1716:        "CFLAGS= -DV7 -DMINIX -D_POSIX_SOURCE -DDYNAMIC $(KFLAGS)"
                   1717: 
                   1718: #MINIX/386 (PC Minix modifed by Bruce Evans in Australia to use 386 addressing)
                   1719: minix386gcc:
                   1720:        @echo 'Making C-Kermit $(CKVER) for MINIX/386 with gcc...'
                   1721:        @echo 'TOTALLY UNTESTED!'
                   1722:        make wermit "CC=gcc -g -O" "CC2=gcc -g" \
                   1723:        "CFLAGS= -DV7 -DMINIX -D_POSIX_SOURCE -DDYNAMIC $(KFLAGS)"
                   1724: 
                   1725: #MINIX - 68k version with ACK compiler.
                   1726: # If you have trouble compiling or running wart, "touch wart".
                   1727: # If it still doesn't work, "touch ckcpro.c".
                   1728: # The version configured below has many features removed, including
                   1729: # the TRANSMIT, MSEND, HELP, and SCRIPT commands, international
                   1730: # character set support, and the entire script programming language.
                   1731: # Make sure make(1) has (at least) 100000 chmemory!
                   1732: # But it does have an interactive command parser.
                   1733: minix68k:
                   1734:        @echo 'Making C-Kermit $(CKVER) for MINIX 68k with ACK...
                   1735:        make wermit \
                   1736:        "CFLAGS= -DV7 -DMINIX -D_MINIX -D_POSIX_SOURCE -DDYNAMIC \
                   1737:        -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG \
                   1738:        -DNOSCRIPT -DNOCSETS -DNOSPL $(KFLAGS) \
                   1739:        -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t -DSIG_V"
                   1740: 
                   1741: #MINIX - 68k version with c68 compiler.
                   1742: # If you have trouble compiling or running wart, "touch wart" or
                   1743: # "touch ckcpro.c". Compiling ckudia.c (no -DNODIAL!) might fail. :-(
                   1744: # Give c68 250000 bytes of stack+heap; make sure make(1) has at least
                   1745: # 100000 chmemory.  On a 1Mb Atari ST this means that the recursive
                   1746: # call of make fails due to memory shortage.  Try "make -n minixc68 >makeit",
                   1747: # followed by ". makeit".  Otherwise, as above.
                   1748: minixc68:
                   1749:        @echo 'Making C-Kermit $(CKVER) for MINIX 68k with c68...
                   1750:        make wermit "CC= cc -c68" \
                   1751:        "CFLAGS= -DV7 -DMINIX -D_MINIX -D_POSIX_SOURCE -DDYNAMIC \
                   1752:        -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG \
                   1753:        -DNOSCRIPT -DNOCSETS -DNOSPL $(KFLAGS) \
                   1754:        -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t -DSIG_V"
                   1755: 
                   1756: #MIPS machine with AT&T UNIX System V R3.0
                   1757: mips:
                   1758:        @echo 'Making C-Kermit $(CKVER) for MIPS AT&T System V R3.0...'
                   1759:        make wermit "CFLAGS = -DMIPS -DDIRENT -DPID_T=int \
                   1760:        -DNOJC $(KFLAGS) -DGID_T=gid_t -DUID_T=uid_t -i -O1500"
                   1761: 
                   1762: #Motorola Delta System V/68 R3, signal() is void rather than int.
                   1763: #Uses dirent.h and Honey DanBer uucp.
                   1764: #Supports TCPSOCKET
                   1765: sv68r3:
                   1766:        @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/68 R3...'
                   1767:        make wermit "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DDYNAMIC \
                   1768:        -DTCPSOCKET $(KFLAGS) \
                   1769:        -O" "LNKFLAGS ="
                   1770: 
                   1771: #Motorola Delta System V/88 R32, signal() is void rather than int.
                   1772: #Uses dirent.h and Honey DanBer uucp.
                   1773: #Supports TCPSOCKET
                   1774: sv88r32:
                   1775:        @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/88 R32...'
                   1776:        make wermit "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DDYNAMIC \
                   1777:        -DTCPSOCKET $(KFLAGS) \
                   1778:        -O" "LNKFLAGS ="
                   1779: 
                   1780: #PFU Compact A Series UNIX System V R3, SX/A TISP V10/L50 (Japan)
                   1781: #Maybe the -i link option should be removed?
                   1782: sxae50:
                   1783:        @echo 'Making C-Kermit $(CKVER) for PFU SX/A V10/L50...'
                   1784:        make wermit \
                   1785:        "CFLAGS= -DSVR3 -DDIRENT -DsxaE50 -DTCPSOCKET $(KFLAGS) -i -O \
                   1786:        -DKANJI" "LNKFLAGS= "
                   1787: 
                   1788: #Olivetti X/OS R2.3
                   1789: xos23:
                   1790:        @echo 'Making C-Kermit $(CKVER) for Olivetti X/OS R2.3...'
                   1791:        $(MAKE) wermit \
                   1792:        'CFLAGS=-ucb -DBSD4 -DTCPSOCKET -DHDBUUCP -DDYNAMIC -DOXOS $(KFLAGS)' \
                   1793:        "LNKFLAGS=-ucb -s"              
                   1794: 
                   1795: #Clean up intermediate and object files
                   1796: clean:
                   1797:        @echo 'Removing object files...'
                   1798:        -rm -f ckcmai.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) ckuus2.$(EXT) \
                   1799: ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) ckcpro.$(EXT) ckcfns.$(EXT) \
                   1800: ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) ckucon.$(EXT) ckutio.$(EXT) \
                   1801: ckufio.$(EXT) ckudia.$(EXT) ckuscr.$(EXT) ckwart.$(EXT) ckuusx.$(EXT) \
                   1802: ckuusy.$(EXT) ckcnet.$(EXT) ckuus6.$(EXT) ckuus7.$(EXT) ckcmdb.$(EXT) \
                   1803: ckcpro.c wart
                   1804: 
                   1805: #Run Lint on this mess for the SUN/BSD version.
                   1806: lintsun:
                   1807:        @echo 'Running Lint on C-Kermit $(CKVER) sources for SUNOS version...'
                   1808:        lint -x -DSUNOS4 -DDIRENT -DTCPSOCKET -DSAVEDUID -DDYNAMIC \
                   1809:        ck[cu]*.c > ckuker.lint.sun
                   1810: 
                   1811: lintbsd:
                   1812:        @echo 'Running Lint on C-Kermit $(CKVER) sources for BSD 4.2 version..'
                   1813:        lint -x -DBSD4 -DTCPSOCKET ck[cu]*.c > ckuker.lint.bsd42
                   1814: 
                   1815: lints5:
                   1816:        @echo 'Running Lint on C-Kermit $(CKVER) sources for Sys V version...'
                   1817:        lint -x -DATTSV ck[cu]*.c > ckuker.lint.s5
                   1818: 
                   1819: lintmips:
                   1820:        @echo 'Running lint on C-Kermit $(CKVER) sources for MIPS version...'
                   1821:        lint -DMIPS -DDIRENT -DPID_T=int -DGID_T=gid_t \
                   1822:        -DUID_T=uid_t -DNOJC ck[cu]*.c > ckuker.lint.mips

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.