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