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