Debian Codegraph @

makefile

raw ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
1 # makefile / Makefile / ckuker.mak / CKUKER.MAK
2 #
3 # Sun Mar 24 13:21:46 2024
4 BUILDID=20250322
5 CKVER= "10.0 Beta.12"
6 #
7 # -- Makefile to build C-Kermit for UNIX and UNIX-like platforms --
8 #
9 # Copyright (C) 1985, 2024,
10 # Trustees of Columbia University in the City of New York.
11 # All rights reserved. See the C-Kermit COPYING.TXT file or the
12 # copyright text in the ckcmai.c module for disclaimer and permissions.
13 # In case you can't find the COPYING.TXT file, as of 2011 it contains the
14 # Simplified 3-Clause BSD License, which is an Open Source license.
15 #
16 # Note: As of 3 February 2024, the ckcwart.c and ckcpro.w files have been
17 # reinstated. They are not used when building C-Kermit, but any changes to
18 # to the Kermit protocol itself must be made ckcpro.w, and then you must:
19 #
20 # make wart
21 # make ckcpro.c
22 #
23 # before building C-Kermit (e.g. with "make linux").
24 #
25 # Author: Frank da Cruz (principal author)
26 # Email: [email protected]
27 # Web: https://kermitproject.org
28 #
29 # Example for Linux:
30 # 1. cd to your C-Kermit source-code directory
31 # 2. make clean (to delete object files from previous builds)
32 # 3. rm wermit (remove any previous binary)
33 # 4. make linux (to build a version for your Linux machine)
34 # 5. make check (to check the result - depends on step 3)
35 # 6. test it and report any any problems by email to the address above
36 # 7. mv it to where it should reside, e.g. mv wermit /usr/local/bin/kermit
37 # 8. chmod 755 or 775 if necessary and give appropriate owner and gruop
38 # .. Many variations possible; see https://www.kermitproject.org/ckccfg.html
39 #
40 # Shortcut - Steps 4 and 5 can be combined: "make linux check"
41 #
42 # Note: Author is no longer at Columbia University or at the 115th Street
43 # address as of 1 July 2011. Even so, C-Kermit remains Copyright Columbia
44 # University because that is where it was first written in 1985 and further
45 # developed through mid-2011.
46 #
47 # Contributions from many others. Special thanks to Jeff Altman for the
48 # secure-build targets, Peter Eichhorn, assyst GmbH, for the consolidated
49 # HP-UX targets and the "uninstall" target, to Robert Lipe for the updated
50 # and consolidated SCO UNIX / ODT / OSR5 targets, to Ric Anderson for the
51 # IRIX 6.x targets, to Seth Theriault for major improvements to the
52 # Mac OS X targets, and to Alexey Dokuchaev for FreeBSD 9.0.
53 #
54 # C-Kermit is written and produced by hand without any external automated
55 # procedures such as autoconf / automake / configure, although some of the
56 # targets below (especially the linux target) inspect the environment and make
57 # some decisions in the most portable way possible. The automated tools are
58 # not used because (a) C-Kermit predates them, and (b) they are not portable
59 # to all the platforms where C-Kermit must be (or once was) built, (c) the
60 # automated tools are always changing, and (d) to keep C-Kermit as independent
61 # as possible from external tools over which we have no control.
62 #
63 # Most entries use the "xermit" target, which uses the select()-based CONNECT
64 # module, ckucns.c. The "wermit" target uses the original fork()-based
65 # CONNECT module, ckucon.c, which has some drawbacks but was portable to every
66 # Unix variant whether it had TCP/IP or not (select() is part of the TCP/IP
67 # library, which was not standard on older Unixes). If your target still uses
68 # the "wermit" target, please try substituting the "xermit" one and if it
69 # works, let us know (mailto:[email protected]). When changing a target over
70 # from wermit to xermit, also remove -DNOLOEARN.
71 #
72 # CAREFUL: Don't put the lowercase word "if", "define", or "end" as the first
73 # word after the "#" comment introducer in the makefile, even if it is
74 # separated by whitespace. Some versions of "make" understand these as
75 # directives, which older make versions do not understand. Uppercase letters
76 # remove the danger, e.g. "# If you have..."
77 #
78 # WARNING: This is a huge makefile. Although it is less likely since the
79 # turn of the century, some "make" programs might run out of memory. If this
80 # happens to you, edit away the parts that do not apply to your platform and
81 # try again.
82 #
83 # WARNING 2: In many cases this file invokes itself recursively, sometimes
84 # several levels deep (as in the Linux targets); i.e. some targets are used
85 # as 'subroutines' of other targets, with parameters passed by setting
86 # environment variables. For that reason, don't use 'make -e'.
87 #
88 # Certain UNIX variations have their own separate makefiles:
89 # . For Android, use android.mk.
90 # . For 2.10 or 2.11 BSD on the DEC PDP-11, use ckubs2.mak.
91 # . For Plan 9, use ckpker.mk.
92 #
93 # Separate build procedures are provided non-UNIX platforms: VMS, VOS,
94 # AOS/VS, etc. See the ckaaaa.txt file or the Kermit website for details.
95 #
96 #
97 # DIRECTIONS FOR UNIX
98 #
99 # Rename this file to "makefile" or "Makefile" if necessary. Pick out the
100 # entry most appropriate for your UNIX version from the list below and then
101 # give the appropriate "make" command, for example "make aix", "make macosx",
102 # "make linux". If you experience any difficulties with the build procedure,
103 # then please also read any comments that accompany the make entry itself
104 # (search for the make entry name on the left margin).
105 #
106 # Other targets:
107 # 'make install' is an installation script (read accompanying comments!).
108 # 'make uninstall' undoes 'make install' (read accompanying comments!).
109 # 'make clean' removes intermediate and object files.
110 # 'make show' tells the default include and lib paths for secure builds.
111 #
112 # IMPORTANT:
113 # For more detailed installation instructions, read the files ckuins.txt
114 # and ckccfg.txt, also available at the Kermit website in HTML form:
115 # http://www.columbia.edu/kermit/ckuins.html
116 # http://www.columbia.edu/kermit/ckccfg.html
117 #
118 # For descriptions of known problems and limitations,
119 # read the files ckcbwr.txt and ckubwr.txt (the "beware files") or:
120 # http://www.columbia.edu/kermit/ckcbwr.html
121 # http://www.columbia.edu/kermit/ckubwr.html
122 #
123 # Most targets build C-Kermit with its symbol table included. To reduce the
124 # size of the executable program, add "LNKFLAGS=-s" to the end of your 'make'
125 # command or to the makefile entry, or 'strip' the executable after
126 # building. To further reduce the size after building, use 'mcs -d' if your
127 # Unix version has such a command. For further details on size reduction, read
128 # ckccfg.txt to find out how to remove features that you don't need.
129 #
130 # TCP/IP networking support: If your C-Kermit version does not include TCP/IP
131 # networking, but your UNIX system does, try adding -DTCPSOCKET to the CFLAGS
132 # of your makefile entry. If that doesn't work, look at some of the other
133 # targets that include this flag for ideas about what libraries might need to
134 # be included (typically -lsocket and/or -lBSD and/or -lnsl and/or -linet).
135 # NOTE: In some cases (old versions of SCO or HP-UX), you might need not only
136 # a C compiler, but also a "TCP/IP developers kit" for the required object
137 # libraries and header files.
138 #
139 # Please report modifications, failures (preferably with fixes) or successes
140 # to the author, [email protected].
141 #
142 # TARGETS FOR DIFFERENT UNIX PLATFORMS AND VERSIONS:
143 #
144 # + Marks those that have been built successfully for C-Kermit 9.0 or later.
145 # - Those that once built OK but no longer do (e.g. too big).
146 # ? Those that worked in a previous version but have not been tested recently.
147 # --------------------------
148 # Some commonly used targets:
149 #
150 # + "make -f android.mk" (separate makefile) for Android.
151 # + "make linux" should work for any version of Linux on any hardware.
152 # Note: new "make linux" (2016) not yet widely tested.
153 # Use "make linux-2015" (the old "make linux")
154 # if "make linux" causes problems.
155 # + "make linux+ssl" ditto, with OpenSSL security added.
156 # + "make linux+krb5" ditto, with Kerberos 5 security added.
157 # + "make linux+krb5+ssl" Linux with OpenSSL and Kerberos 5.
158 # Note: the Linux targets work for Raspberry Pi with Debian 7.0 (Raspbian)
159 # + "make netbsd", NetBSD, any version.
160 # + "make netbsd+ssl", NetBSD with OpenSSL 0.9.7 or later.
161 # + "make netbsd+krb5", NetBSD with Kerberos 5.
162 # + "make netbsd+krb5+ssl", NetBSD with Kerberos 5 and OpenSSL 0.9.7 or later.
163 # ? "make freebsd1" for FreeBSD 1.x
164 # ? "make freebsd2" for FreeBSD 2.x
165 # + "make freebsd3" for FreeBSD 3.x
166 # ? "make freebsd4" for FreeBSD 4.0
167 # + "make freebsd", FreeBSD 4.1 or later.
168 # + "make freebsd+ssl", FreeBSD 5.0 or later with OpenSSL 0.9.7 or later.
169 # + "make openbsd", OpenBSD 2.3 or later.
170 # + "make openbsd+ssl", OpenBSD 2.3 or later with OpenSSL 0.9.7 or later.
171 # + "make mirbsd", MirBSD.
172 # + "make mirbsd+ssl", MirBSD with OpenSSL 0.9.7 or later.
173 # More recent macOS re-branded releases for Intel (x86_64) Sierra (10.12),
174 # High Sierra (10.13), Mojave (10.14), Catalina (10.15), and Intel x86_64/ARM
175 # Big Sur (11), Monterey (12)
176 # + "make macos" (without 'x') should be used for 10.12 and later.
177 # + "make macosx" should work for any Mac OS X version up until 10.8 or 10.12.
178 # + "make macosx+krb5+openssl" Mac OS X 10.3.9 or later + Kerberos V + OpenSSL.
179 # + "make aix" should work for any version of AIX 4.2 or later.
180 # + "make aixg" should work for any version of AIX 4.2 or later, using gcc.
181 # + "make aix+ssl" ditto, with OpenSSL (specifying SSLLIB and SSLINC)
182 # + "make aix+ibmssl" ditto, with IBM OpenSSL
183 # + "make solaris9", "make solaris10" for Solaris 9 or 10 with Sun cc.
184 # + "make solaris9g", "make solaris10g" for Solaris 9 or 10 with gcc.
185 # + "make solaris11" for Solaris 11 with Sun CC
186 # + "make solaris11g" for Solaris 11 with gcc
187 # + "make sco_osr600" for SCO OpenServer 6.0.0.
188 #
189 # For other current OSs such as Solaris, HP-UX, and SCO there are separate
190 # targets for different combinations of OS version and compiler; see the
191 # complete list. For older OS's see the complete list. If an old target
192 # doesn't work in this release of C-Kermit you can get a previous release from
193 # the Kermit FTP site: ftp://kermit.columbia.edu/kermit/
194 #
195 # SECURE TARGETS (versions that support authentication and encryption)
196 # are described after the following list. Search for ******* below.
197 #
198 # --------------------------
199 # Complete list (alphabetical):
200 # ? for 386BSD (Jolix) 0.0, 0.1, "make 386bsd" (see comments in entry),
201 # or (preferably, if it works) "make bsd44" or "make bsd44c".
202 # ? for Acorn RISCiX, "make riscix" or "make riscix-gcc"
203 # ? for Alliant FX/8 with Concentrix 4.1 or later, "make bsdlck"
204 # ? for Altos 486, 586, 986 with Xenix 3.0, "make altos"
205 # ? for Altos ACS68000, 8Mhz 68000, UNIX System 3 Rel 2, 512K, "make altos3"
206 # ? for Amdahl UTS 2.4 on IBM 370 series & compatible mainframes, "make uts24"
207 # ? for Amdahl UTSV IBM 370 series & compatible mainframes, "make utsv"
208 # ? for Amdahl UTSV IBM 370 series mainframes with TCP/IP, "make utsvtcp"
209 # ? for Amdahl mainframes with UNIX System V R 5.2.6b 580, "make sys3"
210 # ? for Apollo Aegis 9.x, DOMAIN/IX 9.x, "make aegis"
211 # (Last tested in C-Kermit 5A(189))
212 # ? for Apollo DOMAIN/IX, if the above fails, try "make apollobsd"
213 # ? for Apollo with SR10.0 or later, BSD environment, "make sr10-bsd"
214 # ? for Apollo with SR10.0 or later, System V environment, "make sr10-s5r3"
215 # ? for Apple Macintosh II with A/UX pre-3.0, "make aux", "auxgcc" or "auxufs"
216 # ? for Apple Macintosh with A/UX 3.0 and gcc, "make aux3gcc" or aux3gccc
217 # ? for Apple PowerMac with MkLinux, "make mklinux" (read Linux entry first)
218 # ? for Apple PowerMac with LinuxPPC, "make linuxppc"
219 # ? for Apple Macintosh with Minix 1.5.10, "make minix68k" or "make minixc68"
220 # ? for Apple Macintosh with Mac OS X 1.0 (Rhapsody), "make macosx10"
221 # (no curses), "make macosx10c" (curses), or "make macosx10nc" (ncurses).
222 # Or "make macosx10ncx" (ncurses but "make macosx10nc" doesn't work).
223 # ? for Apple Macintosh with Mac OS X 10.2, "make macosx102nc" (ncurses).
224 # ? for Apple Macintosh with Mac OS X 10.3, "make macosx103"
225 # ? for Apple Macintosh with Mac OS X 10.3.9 or later, "make macosx"
226 # ? for Arix System 90 with AT&T SVR3, "make sys5r3na"
227 # - for AT&T 6300 with IN/ix, "make sys5"
228 # - for AT&T 6300 PLUS, "make att6300" or (with no debugging) "make att6300nd"
229 # ? for AT&T 6386 WGS UNIX PC, "make sys5r3"
230 # ? for AT&T 3B2, 3B20 systems, "make att3b2".
231 # for AT&T 3B1, 7300 UNIX PC (see notes with the entries):
232 # In C-Kermit 7.0, only the gcc entries work:
233 # ? "make sys3upcg", "make sys3upcgc", "make att351gm"
234 # The others fail with "too many defines" (usually in ckuusr.h):
235 # - "make sys3upc", "make sys3upcold", "make sys3upcc", "make sys3upcx",
236 # "make sys3upcm", "make att351m"
237 # ? for AT&T System III/System V R2 or earlier, "make sys3" or "make sys3nid"
238 # ? for AT&T System III/System V with Honey DanBer UUCP, "make sys3hdb"
239 # ? for AT&T System V on DEC VAX, "make sys3" or "make sys5r3"
240 # ? for AT&T System V R3, use "make sys5r3" or "make sys5r3c"
241 # ? for AT&T System V/386 R3.2 built on Interactive 4.1.1, "make sys5r32is".
242 # ? for AT&T System V/386 R320.0 Versyss Systems, use "make sys5r3"
243 # or "make sys5r3c".
244 # ? for AT&T System V R4, "make sys5r4", "make sys5r4sx", or "make sys5r4nx",
245 # or if the ANSI C function prototyping makes trouble, add -DNOANSI,
246 # as in "sys5r4sxna" entry
247 # ? for AT&T (USL) System V R4.2 use the sys5r4* entries.
248 # ? for Atari Falcon with MiNT, "make posix"
249 # ? for Atari ST with Minix ST 1.5.10.3, "make minix68k" or "make minixc68"
250 # ? for BBN C/70 with IOS 2.0, "make c70"
251 # ? for BeBox with Be OS 1.x DR7, "make beboxdr7"
252 # Compiles OK but doesn't link with default linker which is limited to 64K.
253 # Links OK with "Code Warrior Gold". Many hacks in the source code need
254 # to be removed when DR8 and later come out.
255 # (Last tested in C-Kermit 6.0)
256 # - for BeBox with Be OS 1.x DR8, "make bebox"
257 # (Needed functions missing from operating system and/or not working.)
258 # - for Bell Labs UNIX Version 6 (6th Edition), there is no makefile entry.
259 # ? for Bell Labs UNIX Version 7 (7th Edition), "make v7" (but see notes below)
260 # (last built successfully in C-Kermit 5A188)
261 # ? for Bell Labs Research UNIX Version 10, "make bellv10"
262 # (last built successfully in C-Kermit 6.0)
263 # ? for Bell Labs / Lucent Plan 9, use separate makefile ckpker.mk:
264 # can be built for Intel, MIPS, 680x0, and PowerPC (last built C-Kermit 7.0)
265 # ? for BSDI BSD/386 1.x, "make bsdi"
266 # ? for BSDI BSD/OS 2.x, "make bsdi2"
267 # ? for BSDI BSD/OS 3.0 or 3.1, "make bsdi3"
268 # ? for BSDI BSD/OS 4.x, "make bsdi4"
269 # ? for BSDI BSD/OS 4.x, to build a binary that also works on FreeBSD,
270 # "make bsdix".
271 # ? for Berkeley Unix 2.4, "make v7" (but read v7 material below)
272 # ? for Berkeley Unix 2.9 (DEC PDP-11 or Pro-3xx), "make bsd29"
273 # - for Berkeley Unix 2.10, use ckubs2.mak (a separate makefile)
274 # - for Berkeley Unix 2.11, use ckubs2.mak (a separate makefile)
275 # This makefile is too big. Read the instructions in ckubs2.mak.
276 # "make -f ckubs2.mak bsd210" or "make -f ckubs2.mak bsd211".
277 # (last built successfully in C-Kermit 6.0 - later versions too big)
278 # ? for Berkeley Unix 2.11 "make -f ckubs2.mak bsd210noicp" (no command parser)
279 # ? for Berkeley Unix 4.1, "make bsd41"
280 # ? for Berkeley Unix 4.2 on VAX, "make bsd42" or "make bsd42c"
281 # ? for Berkeley Unix 4.2 or 4.3 with HoneyDanBer UUCP, "make bsdhdb"
282 # ? for Berkeley Unix 4.3 on VAX, "make bsd43", "make bsd43nc".
283 # ? for Berkeley Unix 4.3 on VAX, no networking "make bsd43nonet.
284 # ? for Berkeley Unix 4.3 without acucntrl program, "make bsd42" or "bsd42c"
285 # NOTE: all the C-Kermit 7.0 full builds for old BSDs fail with
286 # "too many defines" in CPP, even on big architectures like VAX. This
287 # can be worked around with a clever ruse. See comments at target.
288 # ? for Berkeley Unix 4.3, command-line only, "make bsdm".
289 # ? for Berkeley Unix 4.3-Tahoe, same as 4.3 BSD
290 # ? for Berkeley Unix 4.3-Reno, "make bsd43" or "make bsd44" or "make bsd44c"
291 # ? for Berkeley Unix 4.3-Carson City, "make bsd44" or "make bsd44c"
292 # ? for Berkeley Unix 4.4-Networking/2 or -Alpha, "make bsd44" or "make bsd44c"
293 # ? for Berkeley Unix 4.4, "make bsd44" or "make bsd44c"
294 # ? for Berkeley Unix 4.4-Lite, "make bsd44" or "make bsd44c"
295 # ? for Bull DPX/2 with BOS/X, "make bulldpx2"
296 # ? for Cadmus, "make sys3"
297 # for Caldera, see SCO, Linux.
298 # ? for Callan Unistar, "make sys3"
299 # ? for CDC VX/VE 5.2.1 System V emulation, "make vxve"
300 # ? for Charles River Data Systems Universe 680x0 with UNOS 9.2, maybe
301 # also other UNOS versions, "make crds"
302 # ? for CIE Systems 680/20 with Regulus, "make cie"
303 # ? for Commodore Amiga 3000UX Sys V R4, "make sys5r4sx"
304 # ? for Commodore Amiga 3000UX Sys V R4 and TCP/IP, "make svr4amiganet"
305 # ? for Commodore Amiga with Minix 1.5.10, "make minix68k" of "make minixc68"
306 # ? for Concurrent/Masscomp with RTU 4.0 or later, BSD environment, "make
307 # rtubsd", "make rtubsd2", "make rtubsd3" (depending on where ndir.h
308 # is stored, see entries below).
309 # ? for Concurrent/Masscomp with RTU 4.0 or later, System V R2, "make rtus5"
310 # ? for Concurrent (Perkin-Elmer) 3200 series, "make sys5".
311 # ? for Concurrent (Perkin-Elmer) 3200 series with <dirent.h>, "make ccop1"
312 # ? for Concurrent PowerMAX OS SVR4, "make powermax"
313 # ? for Consensys UNIX SV/386 R4V3, "make sys5r4sxtcpc" or "make sys5r4sx"
314 # ? for Convergent with CTIX Sys V R2, "make sys5"
315 # ? for Convergent with CTIX 6.4.1, "make ctix"
316 # ? for Convex C1, "make convex"
317 # ? for Convex C210 with Convex/OS 8, "make convex8"
318 # ? for Convex C2 with Convex/OS 9.1, "make convex9"
319 # ? for Convex C2 with Convex/OS 10.1 and gcc 2.x, "make convex10gcc"
320 # ? for Cray Research X/MP or YMP or C90 with UNICOS 6.x (System V R3),
321 # "make cray"
322 # ? for Cray Research X/MP or YMP or C90 with UNICOS 7.x (System V R4),
323 # "make cray"
324 # ? for Cray Research X/MP or YMP or C90 with UNICOS 8.0 Alpha, "make cray8"
325 # ? for Cray Research X/MP or Y-MP or C90 with UNICOS 9.0, "make cray9"
326 # ? for Cray Computer Cray-2 or Cray3 with CSOS, "make craycsos"
327 # ? for Cyber 910 (Silicon-Graphics Iris) with Irix 3.3, "irix33"
328 # ? for Data General AViiON with DG/UX 5.4 before R3.00, "make dgux540"
329 # or "make dgux540c"
330 # ? for DG/UX 5.4 on AViiON Intel models, "make dgux540i" or dgux540ic.
331 # ? for DG/UX 5.4R4.11 on AViiON, all models, "make dgux54411"
332 # ? for DG/UX 5.4R4.20 on AViiON, all models, "make dgux54420"
333 # ? for Data General AViiON with DG/UX 4.3x using Sys V-isms, "make dgux430"
334 # ? for Data General AViiON with DG/UX 4.3x using BSD-isms, "make dgux430bsd"
335 # ? for Data General AViiON, earlier UNIX versions, "make sys5r3"
336 # ? for Data General MV systems with DG/UX, ???
337 # ? for Data General MV systems with MV/UX, use AOS/VS C-Kermit (CKDKER.MAK)
338 # ? for Data General MV systems with AOS/VS, use CKDKER.MAK (last = C-K 7.0)
339 # ? for DEC PDP-11 with Berkeley UNIX 2.x, see Berkeley UNIX 2.x.
340 # ? for DEC PDP-11 with Mini-UNIX (Bell 6th Edition for PDP-11 with no MMU),
341 # probably no way to fit C-Kermit without I&D space.
342 # ? for DEC PDP-11 with Ultrix-11 3.x, ??? (probably needs overlays)
343 # ? for DEC VAX with Ultrix 1.x "make bsd"
344 # ? for DEC VAX with Ultrix 2.x "make ultrix2x"
345 # ? for DEC VAX or DECstation with Ultrix 3.0, 3.1, "make ultrix3x"
346 # ? for DECstation or VAX with Ultrix 4.0 or 4.1, "make ultrix40"
347 # ? for DECstation or VAX with Ultrix 4.2, "make ultrix42" or "make ultrix42c"
348 # ? for DECstation or VAX with Ultrix 4.x, POSIX world, "make posix"
349 # ? for DECstation or VAX with Ultrix 4.3, "make ultrix43".
350 # ? for DECstation or VAX with Ultrix 4.4, "make ultrix44".
351 # ? for DECstation 5000/50, /150 or /260 (R4x00 MIPS CPU), Ultrix 4.3A or later
352 # "make ultrix43-mips3" or "make ultrix43c-mips3"
353 # ? for DECstation (MIPS) with Berkeley Sprite, "make bsd44"?
354 # ? for DECstation (MIPS) with OSF/1 V1.0 to 1.3, "make dec-osf"
355 # ? for DEC Alpha with OSF/1 1.0 to 1.3, "make dec-osf"
356 # ? for DEC PC 486 with OSF/1, "make dec-osf"
357 # ? for DEC Alpha with OSF/1 2.x, "make dec-osf20"
358 # ? for DEC Alpha with OSF/1 3.0, "make dec-osf30"
359 # ? for DEC Alpha with Digital UNIX 3.2, "make du32"
360 # ? for DEC Alpha with Digital UNIX 4.0-4.0D, "make du40" or "make du40gcc"
361 # ? for DEC Alpha with Digital UNIX 4.0E or higher, see Tru64.
362 # + for DEC Alpha with any version of DU or OSF/1, "make dec-osf1"
363 # - for DEC Pro-350 with Pro/Venix V1.x, "make provx1" (version 5A is too big)
364 # ? for DEC Pro-380 with Pro/Venix V2.0 (Sys V), "make sys3" or "make sys3nid"
365 # ? for DEC Pro-380 with 2.9, 2.10, or 2.11 BSD, "make bsd29" or "make bsd210"
366 # for DEC PDP-11 with 2.xBSD (use separate makefile ckubs2.mak)
367 # ? for Dell UNIX Issue 2.x (= USL Sys V/386 R4.x + fixes), "make dellsys5r4"
368 # or "make dellsys5r4c" (last tested in C-Kermit 5A).
369 # ? for DIAB DS90 with DNIX (any version) create an empty <sys/file.h> if
370 # this file does not already exist (or add -DNOFILEH to the make entry).
371 # ? for DIAB DS90 with DNIX 5.2 (Sys V.2) or earlier, "make dnix",
372 # "make dnixnd", or (to add curses and TCP/IP) "make dnixnetc",
373 # ? for DIAB DS90 with DNIX 5.3 (Sys V.3), "make dnix5r3"
374 # ? for DIAB DS90 with DNIX 5.3 (Sys V.3) and TCP/IP, "make dnix5r3net"
375 # ? for DIAB DS90 with DNIX 5.3 2.2 (Sys V.3), ANSI C, "make dnix5r3ansi"
376 # or, to include TCP/IP, "make dnix5r3ansinet",
377 # but you have to fix a bug in /usr/include/stdlib.h first:
378 # change "extern void free(char *str);" to "extern void free(void *str);"
379 # ? for Dolphin Server Technology Triton 88/17 with SV/88 R3.2, "make sv88r32"
380 # ? for Encore Multimax 310, 510 with Umax 4.2, "make umax42"
381 # ? for Encore Multimax 310, 510 with Umax 4.3, "make umax43"
382 # ? for Encore Multimax 310, 510 with Umax V 2.2, use Berkeley cc, "make bsd"
383 # ? for Encore 88K with Umax V 5.2, "make encore88k"
384 # ? for ESIX System V R4.0.3 or 4.04 with TCP/IP support, "make esixr4"
385 # NOTE: You can also build on Unixware 2.x with "make esixr4", and run
386 # on ESIX, but there you must first:
387 # ln /usr/lib/libsocket.so /usr/lib/libsocket.so.1
388 # ln /usr/lib/libnsl.so /usr/lib/libnsl.so.1
389 # (This worked for C-Kermit 6.0 but does not work for 7.0)
390 # (But you can probably still build a non-networking version this way)
391 # ? for Everex STEP 386/25 Rev G with ESIX Sys V R3.2D, "make sys5r3"
392 # ? for Fortune 32:16, For:Pro 1.8, "make ft18"
393 # ? for Fortune 32:16, For:Pro 2.1, "make ft21"
394 # ? for FPS 500 with FPX 4.1, "made bsd"
395 # ? for FreeBSD 1.0, "make freebsd1"
396 # ? for FreeBSD 2.x, "make freebsd2" (ncurses) or "make freebsd2c" (curses)
397 # ? for FreeBSD 3.x, "make freebsd3" (ncurses) or "make freebsd3c" (curses)
398 # ? for FreeBSD 4.0, "make freebsd40"
399 # ? for FreeBSD 4.1 or later, "make freebsd"
400 # + NOTE: Just use "make freebsd" for any reasonably recent FreeBSD version.
401 # ? for Harris HCX-2900, "make sys5r3"
402 # ? for Harris Night Hawk 88K or 68K with CX/UX pre-6.1, "make sys5r3"
403 # ? for Harris Night Hawk 88K or 68K with CX/UX 6.1 or later, "make cx_ux"
404 # ? for Heurikon, "make sys3"
405 # ? for HP-3000, MPE/ix, "make posix"?
406 # ? for HP-9000 Series 300 with 4.4BSD, "make bsd44"
407
408 # NOTE: Most of the HP-UX targets were tested successfully in 2010.
409 # Verification needed for C-Kermit 9.0 Beta.01...
410
411 # ? for HP-9000 Series 500, HP-UX 5.21 and no networking "make hpux0500"
412 # ? for HP-9000 Series 500, HP-UX 5.21 with WIN/TCP 1.2 "make hpux0500wintcp"
413 # ? for HP-9000 Series, HP-UX 6.5, without long filenames,
414 # "make hpux0650", "make hpux0650c" or "make hpux0650tcpc"
415 # ? for HP-9000 Series, HP-UX 7.0 or later no long filenames, "make hpux0700sf"
416 # or (to include tcp/ip, curses, etc) "make hpux0700sftcpc"
417 # ? for HP-9000 Series with HP-UX 7.0, TCP/IP,long filenames,"make hpux0700lfn"
418 # ? for HP-9000 300/400 Series (680x0) with HP-UX 8.0, TCP/IP, "make hpux0800"
419 # or "make hpux0800c"
420 # ? for HP-9000 700/800 Series (PA-RISC), HP-UX 8.0, TCP/IP, "make hpux0800pa"
421 # or "make hpux0800pac"
422 # ? for HP-9000 Series with HP-UX 8.0, no TCP/IP, long filenames,
423 # "make hpux0800notcp"
424 # ? for HP-9000 Series, HP-UX 9.0 - 9.10, TCP/IP, curses, restricted compiler
425 # (no optimization, no ANSI), all models, "make hpux0900". Read the
426 # hpux0900 entry below for more info.
427 # ? for HP-9000 700 and 800 Series, HP-UX 9.x, TCP/IP, curses,
428 # HP optimizing ANSI C compiler, "make hpux0900o700".
429 # ? for HP-9000 with Motorola CPUs, HP-UX 9.x, TCP/IP, curses,
430 # HP optimizing ANSI C compiler, "make hpux0900mot".
431 # ? for HP-9000 on other CPUs, HP-UX 9.x, TCP/IP, curses,
432 # HP optimizing ANSI C compiler, "make hpux0900o".
433 # ? for HP-9000 series, HP-UX 9.x, TCP/IP, curses, gcc, all models,
434 # "make hpux0900gcc"
435 # ? for HP-9000 700/800 Series, HP-UX 10.00,10.01,10.10,10.20,10.30, TCP/IP,
436 # curses, restricted compiler (no optimization, no ANSI) "make hpux1000".
437 # ? for HP-9000 700/800 Series, HP-UX 10.00,10.01,10.10,10.20,10.30, TCP/IP,
438 # curses, HP ANSI/optimizing compiler "make hpux1000o" or "make hpux1000o+"
439 # ? for HP-9000 HP-UX 10.00 or later with gcc, "make hpux1000gcc"
440 # ? for Trusted HP-UX 10.xx "make hpux1000t", "make hpux1000to",
441 # or make hpux1000to+"
442 # ? for HP-9000 700/800 Series, HP-UX 11.00,TCP/IP,curses, restricted compiler
443 # (no optimization, no ANSI) "make hpux1100".
444 # ? for HP-9000 700/800 Series, HP-UX 11.00,TCP/IP,curses, restricted compiler
445 # HP ANSI/optimizing compiler "make hpux1100o" or "make hpux1100o+"
446 # ? for Trusted HP-UX 11.xx "make hpux1100t", "make hpux1100to",
447 # make hpux1100to+"
448 # ? for HP-9000 PA-RISC models with NeXTSTEP 3.3, "make nextquadfat".
449 # ? for HP-9000 PA-RISC models with OPENSTEP/Mach 4.1, "make nextquadfat".
450 # ? for IBM 370 Series with IX/370, "make ix370"
451 # ? for IBM 370 Series with AIX/370 1.2, "make aix370"
452 # ? for IBM 370 Series with AIX/370 3.0, "make aix370"
453 # ? for IBM 370 Series with AIX/ESA 2.1, "make aixesa"
454 # - for IBM PC/AT 286 & compatibles with Mark Williams Coherent OS,
455 # command-line-only version, "make coherent" (version 5A & later too big)
456 # ? for IBM PC 386 & compatibles with Mark Williams Coherent OS,
457 # minimum interactive version, "make coherentmi"
458 # ? for IBM PC 386 & compatibles with Mark Williams Coherent OS,
459 # full interactive version, prior to v4.2, "make coherentmax"
460 # ? for IBM PC 386 & compatibles with Mark Williams Coherent OS 4.2,
461 # "make coherent42"
462 # ? for IBM PC 386 & compatibles with LynxOS 2.0 or 2.1, "make lynx21"
463 # ? for IBM PC 386 & compatibles with LynxOS 2.2, "make lynx"
464 # - for IBM PC/AT & compatibles with original MINIX, "make minix" (too big)
465 # ? for IBM PC family, 386-based, with MINIX/386 1.5, "make minix386"
466 # or if you have GNU CC, "make minix386gcc"
467 # ? for IBM PC family, 386-based, with MINIX 2.0, "make minix20"
468 # ? for IBM PC family, 386-based, with MINIX 3.0, "make minix3"
469 # + for IBM PC family, 386-based, with MINIX 3.0, "make minix315"
470 # ? for IBM PS/2 with PS/2 AIX 1.0, 1.1, or 1.2, "make ps2aix" or ps2aixnetc.
471 # ? for IBM PS/2 with PS/2 AIX 1.3, "make ps2aix3"
472 # ? for IBM RISC System/6000 with AIX 3.0, "make aix30"
473 # ? for IBM RISC System/6000 with AIX 3.1.x, "make aix31"
474 # ? for IBM RISC System/6000 with AIX 3.2.0 thru 3.2.5, "make aix32"
475 # ? for IBM RS/6000 or Power Series with AIX 4.1.x, "make aix41"
476 # ? for IBM RS/6000 or Power Series with AIX 4.1.x with gcc, "make aix41g"
477 # ? for IBM RS/6000 or Power Series with AIX 4.1 with X.25, "make aix41x25"
478 # ? for IBM RS/6000 or Power Series with AIX 4.2 or later: "make aix"
479 # (the following "make aixnn" targets are no longer necessary except for gcc)
480 # ? for IBM RS/6000 or Power Series with AIX 4.2, "make aix42"
481 # ? for IBM RS/6000 or Power Series with AIX 4.3, "make aix43" (or aix43gcc)
482 # ? for IBM RS/6000 or Power Series with AIX 4.4, "make aix44" (or aix44gcc)
483 # ? for IBM RS/6000 or Power Series with AIX 4.5, "make aix45" (or aix45gcc)
484 # ? for IBM RS/6000 or Power Series with AIX 5.0, "make aix50" (or aix50gcc)
485 # ? for IBM RS/6000 or Power Series with AIX 5.1, "make aix51" (or aix51gcc)
486 # ? for IBM RS/6000 or Power Series with AIX 5.2, "make aix52" (or aix52gcc)
487 # ? for IBM RS/6000 or Power Series with AIX 5.3, "make aix53" (or aix53gcc)
488 # ? for IBM RS/6000 or Power Series with AIX 6.1, "make aix61" (or aix53gcc)
489 # ? for IBM RT PC with AIX 2.1, "make sys3"
490 # ? for IBM RT PC with AIX 2.2.1, "make rtaix" or "make rtaixc"
491 # ? for IBM RT PC with ACIS 4.2, "make bsd"
492 # ? for IBM RT PC with ACIS 4.3, "make rtacis" or "make bsd KFLAGS=-DNOANSI"
493 # ? for IBM RT PC with 4.3BSD/Reno, "make bsd44" or "make bsd44c"
494 # ? for ICL DRS400 or 400E, "make iclsys5r3"
495 # ? for ICL DRS3000 (80486) with DRS/NX, "make iclsys5r4_486"
496 # ? for ICL DRS6000 (SPARC) with DRS/NX, "make iclsys5r4"
497 # ? for ICL DRS6000 (SPARC) with DRS/NX 4.2MP 7MPlus, "make iclsys5r4m+"
498 # ? Ditto but with IKSD support included, "make iclsys5r4m+iksd"
499 # ? for Integrated Solutions Inc V8S VME 68020, "make isi"
500 # ? for Intel 302 with Bell Tech Sys V/386 R3.2, "make sys5r3"
501 # ? for Intel Xenix/286, "make sco286"
502 # ? for Interactive System III (PC/IX), "make pcix" or "make is3"
503 # ? for Interactive System III (PC/IX) with gcc, "make is3gcc"
504 # ? for Interactive 386/ix 1.0.6 with TCP/IP networking, "make is5r3net2"
505 # ? for Interactive 386/ix 2.0.x, "make is5r3" or (POSIX) "make is5r3p"
506 # ? for Interactive 386/ix 2.0.x with TCP/IP networking, "make is5r3net"
507 # or "make is5r3net2"
508 # ? for Interactive 386/ix 2.2.1, job control, curses, no net, gcc,
509 # "make is5r3gcc"
510 # ? for Interactive UNIX Sys V R3.2 V2.2 - 4.0 without TCP/IP, "make is5r3jc"
511 # ? for Interactive UNIX Sys V R3.2 V2.2 - 4.0 with TCP/IP, "make is5r3netjc"
512 # ? for Intergraph Clipper, "make clix" or "make clixnet"
513 # ? for Jolix (see 386BSD)
514 # + for Linux 1.2 and later, "make linux". Uses ncurses. This version
515 # handles serial speeds up to 460800 bps, Linux FSSTD 1.2, TCP/IP, and
516 # should work on both libc and glibc systems. For static linking, use
517 # "make linux LNKFLAGS=-static". Please read the comments that accompany
518 # the linux entry. As of 8.0.212 Dev.10, this also includes Large File
519 # Support (LFS).
520 # + for Linux builds that fail with "sys/select.h: No such file or directory",
521 # "make linuxns"
522 # + for Linux 1.2 and later but with curses.h and libcurses (rather than
523 # ncurses.h and libncurses), use "make linuxc".
524 # + for Linux 1.2 and later with no curses support at all, "make linuxnc".
525 # + for Linux with no TCP/IP, "make linuxnotcp"
526 # (The following Linux targets are historic and might not work...)
527 # ? for Red Hat Linux 7.1 through RH9, fully configured (krb5, SSL, etc):
528 # "make redhat71", "make redhat72", "make redhat73", "make redhat80"
529 # "make redhat9"
530 # NOTE: You must use this target for Red Hat 7.1 since it
531 # also includes a workaround for its broken curses library.
532 # WARNING: These targets create binaries that include code for
533 # strong encryption and are therefore not exportable. DO NOT PUT
534 # THESE BINARIES ON US OR CANADIAN WEB OR FTP SITES.
535 # ? for Linux on PowerMac (Mklinux DR3), "make mklinux".
536 # ? for Linux 1.2 and later, to build with egcs, "make linuxegcs".
537 # ? for Linux with lcc compiler, no TCP/IP, "make linuxnotcp-lcc"
538 # ? for Linux 1.0 or earlier, "make linux10".
539 # (End old linux targets)
540 # ? for Mach 2.6 on (anything, e.g. DECstation), "make bsd42" or "make bsd43".
541 # ? for MachTen (Tenon) 2.1.1.D on (e.g.) Apple Powerbook, "make machten".
542 # ? for Masscomp RTU AT&T System III, "make rtu"
543 # for other Masscomp, see Concurrent.
544 # ? for Microport SV/AT (System V R2), "make mpsysv" (last edit tested: 144)
545 # ? for Microport SVR4 2.2, 3.1, or 4.1 "make sys5r4sx"
546 # ? for Microsoft,IBM Xenix (/286, PC/AT, etc), "make xenix" or "make sco286"
547 # ? for MIPS System with RISC/os (UMIPS) 4.52 = AT&T SVR3, "make mips"
548 # or "make mipstcpc"
549 # ? for MkLinux on Power Macintosh, "make mklinux"
550 # ? for Modcomp 9730, Real/IX, "make sys5r3" (or modify to use gcc = GLS cc)
551 # ? for Modcomp Realstar 1000 with REAL/IX D.1, "make sv88r32"
552 # ? for Motorola Four Phase, "make sys3" or "make sys3nid"
553 # ? for Motorola Delta System V/68 R3, "make sv68r3"
554 # ? for Motorola Delta System V/68 R3V5, "make sv68r3v5"
555 # ? for Motorola Delta System V/68 R3V5.1, "make sv68r3v51"
556 # ? for Motorola Delta System V/68 R3V6 with NSE TCP/IP, "make sv68r3v6"
557 # ? for Motorola Delta System V/88 R32, "make sv88r32"
558 # ? for Motorola Delta System V/88 R40, "make sv88r40"
559 # ? for Mt Xinu Mach386 on 386/486-based PCs, "make bsd43"
560 # ? for NCR Tower 1632, OS 1.02, "make tower1"
561 # ? for NCR Tower 1632 or Minitower with System V R2, "make sys3"
562 # or "make sys3nv"
563 # ? for NCR Tower 32, OS Release 1.xx.xx, "make tower32-1"
564 # ? for NCR Tower 32, OS Release 2.xx.xx, "make tower32-2"
565 # ? for NCR Tower 32, OS Releases based on Sys V R3, "make tower32"
566 # ? for NCR Tower 32, OS Releases based on Sys V R3 with gcc "make tower32g"
567 # ? for NCR System 3000, AT&T UNIX System V R4 2.0, "make sys5r4sxna"
568 # ? for NCR System 3000, AT&T UNIX System V R4 2.0 with Wollongong TCP/IP,
569 # "make sys5r4net2" or "make sys5r4net2c".
570 # Some header files might be misplaced; try this:
571 # ln /usr/include/netinet/in.h /usr/include/sys/in.h
572 # ln /usr/include/arpa/inet.h /usr/include/sys/inet.h
573 # ln /usr/include/sys/termiox.h /usr/include/termiox.h
574 # ? for NCR System 3000, NCR UNIX 02.02.01, same as above.
575 # ? for NCR MP-RAS System V R4 V2.03 or 3.02, "make mpras" or "make mprastcpc"
576 # + for NetBSD any version on any architecture, "make netbsd"
577 # + for NetBSD with OpenSSL, "make netbsd+ssl"
578 # ? for NetBSD with ncurses specified instead of curses, "make netbsdn"
579 # ? for NetBSD with all curses support omitted, "make netbsdnc"
580 # ? for NeXT with NeXTSTEP 1.0 through 3.2, "make next" (on a NeXT)
581 # ? for NeXT with NeXTSTEP 3.3, "make next33"
582 # ? for NeXT with OPENSTEP/Mach 4.1, "make nextquadfat".
583 # ? for NeXT with OPENSTEP/Mach 4.2, "make openstep42".
584 # ? for NeXTSTEP/486, "make next" (on a PC)
585 # ? for NeXTSTEP portable binary (runs on Intel or Motorola), "make nextfat"
586 # ? for NeXTSTEP portable binary (Intel, Motorola, HP PA-RISC, or SPARC),
587 # "make nextquadfat"
588 # ? for Nixdorf Targon/31, "make t31tos40x"
589 # ? for Norsk Data Uniline 88/17 with SV/88 R3.2, "make sv88r32"
590 # for Novell UnixWare - see UnixWare
591 # ? for OSF/1 (vanilla, from OS/F), "make posix"
592 # ? for OkiStation 7300 Series, "make sys5r4sxtcp"
593 # ? for Olivetti LSX-3020 with X/OS R.2.3, "make xos23" or "make xos23c"
594 # + for OpenBSD, "make openbsd" (also see secure targets listed below).
595 # ? for OPENSTEP/Mach 4.1, "make nextquadfat" (NeXT, Intel, PA-RISC, SPARC)
596 # ? for OPENSTEP/Mach 4.2, "make openstep42" (tested on NeXT)
597 # ? for Perkin-Elmer (Concurrent) 3200 series, "make sys5".
598 # ? for Perkin-Elmer (Concurrent) 3200 series with <dirent.h>, "make ccop1"
599 # ? for Perkin-Elmer/Concurrent 3200 with Xelos R02, "make ccop1"
600 # ? for PFU Compact A Series SX/A TISP V10/E50 (Japan), "make sxae50"
601 # ? for Plexus, "make sys3"
602 # ? for Pyramid 9XXX (e.g. 9845) or MIServer T series, OSx 4.4b thru 5.1,
603 # "ucb make pyramid" or for HDB UUCP, "ucb make pyramid-hdb" or:
604 # ? for Pyramid MIServer S or ES Series, DataCenter/OSx, "make pyrdcosx"
605 # ? for Pyramid MIS-S MIPS R3000, DataCenter OSx System V R4, "make pyrdcosx"
606 # ? for POSIX on anything, "make posix" (but adjustments might be necessary).
607 # NOTE: this target is not very useful - many features are missing.
608 # ? for Prime 8000 MIPS, SVR3, "make mips" or "make mipstcpc"
609 # - for QNX 2.x (sorry we don't have a version of C-Kermit for QNX 2.x)
610 # ? for QNX 4.0 or 4.1, 16-bit, on 286 PC, Watcom C 8.5, "make qnx16_41"
611 # ? for QNX 4.21 - 4.22A (286+), and 4.23 (386+), or higher, 16-bit,
612 # Watcom C 9.5x or higher, "make qnx16"
613 # + for QNX 4.21-4.25, 32-bit, 386 or above, Watcom C 10.6, "make qnx32"
614 # NOTE: ("make qnx" == "make qnx32")
615 # ? for QNX Neutrino 2+, "make qnx_nto2+" (crosscompiled on QNX4 with Watcom C)
616 # ? for QNX 6 = Neutrino 2.xx, "make qnx6"
617 # + for QNX 8.0 x86_64, "make qnx8i"
618 # + for QNX 8.0 ARM64 , "make qnx8a"
619 # ? for Ridge 32 (ROS3.2), "make ridge32"
620 # ? for Samsung MagicStation, "make sys5r4"
621 # ? for SCO Xenix 2.2.1 with development system 2.2 on 8086/8 "make sco86"
622 # ? for SCO Xenix/286 2.2.1 with development system 2.2 on 80286, "make sco286"
623 # NOTE: reportedly this makefile is too long for SCO Xenix/286 make, but it
624 # works with "makeL", or if some of the other make entries are edited out.
625 # ? for SCO Xenix/386 2.2.2, "make sco386"
626 # ? for SCO Xenix/386 2.3.x, "make sco3r2"
627 # ? for SCO Xenix/386 SCO 2.3.3 or 2.3.4 with gcc 1.37 or later,
628 # "make sco386gcc" or (to add curses) "make sco386gccc".
629 # ? for SCO Xenix/386 or UNIX/386 with Excelan TCP/IP, "make sco3r2net"
630 # or (to add curses support) "make sco3r2netc" or "sco386netc"
631 # + for SCO XENIX 2.3.4, "make sco234" or "make sco234c" to add curses.
632 # ? for SCO XENIX 2.3.4 with SCO TCP/IP & curses, "make sco234netc".
633 # ? for SCO Xenix 2.3.x with Racal-InterLan TCP/IP, "make sco3r2netri"
634 # for other UNIX varieties with Racal Interlan TCP/IP, read sco3r2netri entry
635 # ? for SCO Xenix 2.3.x with SCO (Lachman) TCP/IP, "make sco3r2lai"
636 # or (to add curses) "make sco3r2laic"
637 # for SCO UNIX... ALSO READ COMMENTS in the SCO UNIX entries for more info!
638 # ? for SCO UNIX/386 3.2.0 or 3.2.1, "make sco3r2" or "make sco3r2x"
639 # ? for SCO UNIX/386 3.2.2, "make sco3r22" or "make sco3r22gcc"
640 # or "make sco3r22c"
641 # ? for SCO UNIX/386 3.2.2 with SCO TCP/IP, "make sco3r22net"
642 # or "make sco3r22netc" (curses)
643 # ? for SCO ODT 1.1, "make sco3r22net" or "make sco3r22netc" (curses)
644 # ? for SCO UNIX/386 3.2 V4.x, no network support, "make sco32v4"
645 # ? or "make sco32v4ns" (this one uses no select() or sockets library)
646 # ? for SCO UNIX/386 3.2 V4.x with TCP/IP, "make sco32v4net"
647 # (also sco32v4gcc, sco32v4netgcc)
648 # ? for SCO UNIX/386 3.2 V5.0 - see SCO OpenServer.
649 # ? for SCO UNIX 3.2v4.x with TCP/IP, <dirent.h> for Extended Acer File
650 # System (EAFS), curses, ANSI C compilation, "make sco32v4net"
651 # ? or (to use select()-based CONNECT module) "make sco32v4netx".
652 # ? for SCO UNIX 3.2v4.2, "make sco-odt30" (includes TCP/IP).
653 # ? for SCO MPX 3.0 - The SCO UNIX binary runs on the corresponding MPX system.
654 #
655 # NOTE: Also see below for other entries that are variations on these.
656 # Also be sure to read the comments accompanying each SCO entry.
657 # Also see Unixware section.
658 #
659 # ? for SCO ODT 2.0, "make sco32v4net"
660 # ? for SCO ODT 3.0, "make sco-odt30"
661 # ? for SCO OpenServer 5.0 (OSR5), "make sco32v500"
662 # ? for SCO OpenServer 5.0 (OSR5) with networking, "make sco32v500net"
663 # ? for SCO OpenServer 5.0 (OSR5), gcc, "make sco32v500gcc"
664 # ? for SCO OpenServer 5.0 (OSR5), gcc, with networking, "make sco32v500netgcc"
665 # ? for SCO OpenServer 5.0 (OSR5), as above, ELF, "make sco32v500netgccelf"
666 # ? for SCO OpenServer 5.0.2, use "make sco32v502xxx" entries as above.
667 # ? for SCO OpenServer 5.0.4, use "make sco32v504xxx" entries as above.
668 # ? for SCO OpenServer 5.0.5, use "make sco32v505xxx" entries as above.
669 # Use the sco32v505udkxxx entries if you have the UDK rather than /bin/cc.
670 # ? for SCO OpenServer 5.0.6, use "make sco32v506xxx" entries as above.
671 # ? for SCO OpenServer 5.0.6a,use "make sco32v506axxx" entries as above.
672 # ? for SCO OpenServer 5.0.7, use "make sco32v507", "make sco32v507net"
673 # ? for SCO (Univel) UnixWare 1.x, "make unixware" or "make unixwarenetc".
674 # If there are problems with this in C-K 7+ see notes at unixware entry.
675 # + for SCO OpenServer 6.0.0, "make sco_osr600"
676 # ? for SCO UnixWare 2.0.x, "make uw20"
677 # ? for SCO UnixWare 2.1.0, "make uw21"
678 # ? for SCO UnixWare 2.1.3, "make uw213"
679 # + for SCO UnixWare 7, "make uw7" (includes large file support)
680 # ? for SCO UnixWare 7 with IKSD support, "make uw7iksd" or "make uw7iksdudk"
681 # ? for SCO UnixWare 7 with OpenSSL, "make uw7ssl"
682 # ? for SCO (Caldera) Open UNIX 8, "make ou8"
683 # ? for Sharp Zaurus SL5500 PDA, "make zsl5500".
684 # ? for Sequent with DYNIX/ptx 1.2.1, "make dynixptx12"
685 # ? for Sequent with DYNIX/ptx 1.3 or 1.4 with TCP/IP, "make dynixptx13"
686 # ? for Sequent with DYNIX/ptx 2.0 or 2.1 with TCP/IP, "make dynixptx20"
687 # or "dynixptx20c"
688 # ? for Sequent with DYNIX/ptx 2.1.6 on i486, "dynixptx216c"
689 # ? for Sequent with DYNIX/ptx V4.1.3 with TCP/IP, "make dynixptx41c"
690 # ? for Sequent with DYNIX/ptx V4.4.2 with TCP/IP, "make dynixptx44"
691 # ? for Sequent Balance 8000 or B8 with DYNIX 3.0.xx, "make dynix3"
692 # or "make dynix3noacu"
693 # ? for Sequent Symmetry S81 with DYNIX 3.0.xx, "make dynix3"
694 # ? for Sequent DYNIX 3.1.xx, "make dynix31" or "make dynix31c"
695 # ? for Siemens/Nixdorf SINIX-L Intel V5.41, "make sinix541i"
696 # + for Siemens/Nixdorf SINIX-N MIPS V5.42, "make sinix542"
697 # ? for Siemens/Nixdorf SINIX-P MIPS V5.42 with gcc, "make sinix542g"
698 # ? for Siemens/Nixdorf SINIX-Z Intel V5.42, "make sinix542i"
699 # ? for Siemens/Nixdorf Reliant UNIX V5.43, "make sni543"
700 # ? for Siemens/Nixdorf Reliant UNIX V5.44, "make sni544"
701 # ? for Silicon Graphics Iris System V IRIX 3.2 or earlier, "make iris"
702 # ? for Silicon Graphics Sys V R3 with IRIX 3.3 or later, "make sys5r3"
703 # ? for Silicon Graphics Iris Indigo with IRIX 4.0 or 5.0, "make irix40" or
704 # (to include Yellow Pages and Curses) "make irix40ypc"
705 # ? for Silicon Graphics Iris Indigo or Elan with IRIX 4.0.x with microcode
706 # optimization and -O4, "make irix40u" or "irix40uc" (and read notes
707 # accompanying these entries).
708 # ? for Silicon Graphics IRIX 5.1, "make irix51" or "irix51x" (no optimize)
709 # ? for Silicon Graphics IRIX 5.2, "make irix52"
710 # ? for Silicon Graphics IRIX 5.3, "make irix53" or "irix53x" (no optimize)
711 # ? for Silicon Graphics IRIX 6.0, "make irix60".
712 # ? for Silicon Graphics IRIX 6.2, "make irix62".
713 # ? for Silicon Graphics IRIX 6.3, "make irix63".
714 # ? for Silicon Graphics IRIX 6.4, "make irix64" or "make irix64gcc".
715 # + for Silicon Graphics (SGI) IRIX 6.5, "make irix65"
716 # + or "make irix65mips2" to force MIPS2, or "make irix65gcc" for GCC.
717 # + for Silicon Graphics (SGI) IRIX 6.5, "make irix65" or "make irix65mips2"
718 # ? for SGI IRIX 6.5 with SSL/TLS, SRP, and ZLIB "make irix65+ssl+srp+zlib"
719 # ? for Solaris 2.0-2.3 on SPARC or Intel, SunPro CC, "make solaris2x",
720 # ? or to add SunLink X.25 8.0x support, "make solaris2x25".
721 # ? for Solaris 2.4 built with gcc, "make solaris24g".
722 # ? for Solaris 2.0-2.3 on SPARC or Intel, GNU CC, "make solaris2xg".
723 # ? for Solaris 2.4 with X.25, "make solaris24x25".
724 # ? for Solaris 2.5 on SPARC or Intel, SunPro CC, "make solaris25".
725 # ? or to add SunLink X.25 8.0x support, "make solaris25x25".
726 # ? for Solaris 2.5 on SPARC or Intel, GNU CC, "make solaris25g".
727 # ? for Solaris 2.6 on SPARC or Intel, "make solaris26".
728 # ? for Solaris 7 on SPARC or Intel, SunPro CC, "make solaris7".
729 # ? for Solaris 7 on SPARC or Intel, GNU CC, "make solaris7g".
730 # ? for Solaris 8 on SPARC or Intel, SunPro CC, "make solaris8".
731 # ? for Solaris 8 on SPARC or Intel, GNU CC, "make solaris8g".
732 # + for Solaris 9 on SPARC (or Intel?), 32-bit, SunPro CC, "make solaris9".
733 # + for Solaris 9 on SPARC (or Intel?), 32-bit, GNU CC, "make solaris9g".
734 # ? for Solaris 9 on SPARC (or Intel?), 64-bit, GNU CC, "make solaris9g64".
735 # + for Solaris 10 on SPARC (or Intel?), 32-bit, SunPro CC, "make solaris10".
736 # + for Solaris 10 on SPARC 64-bit, SunPro CC, "make solaris10_64".
737 # + for Solaris 10 on SPARC (or Intel?), 32-bit, GNU CC, "make solaris10g".
738 # ? for Solaris 10 on SPARC (or Intel?), 64-bit, GNU CC, "make solaris10g64".
739 # ? for Solbourne 4/500 with OS/MP 4 "make sunos4"
740 # ? for Solbourne 4/500 with OS/MP 4.1 "make sunos41" or "make sunos41c"
741 # ? for SONY NEWS with NEWS-OS 4.0.1C, "make sonynews"
742 # ? for SONY NEWS with NEWS-OS 4.1.2C, "make sonynews"
743 # ? for Sperry/UNISYS 5000/20, UTS V 5.2 3R1, "make sys5"
744 # ? for Sperry/UNISYS 5000/30/35/50/55, UTS V 5.2 2.01, "make unisys5r2"
745 # ? for Sperry/UNISYS 5000/80 with System V R3, "make sys5r3"
746 # ? for Sperry/UNISYS 5000/95 with System V R3, "make sys5r3"
747 # For UNISYS SVR3 it might be necessary to "make sys5r3 KFLAGS=-UDYNAMIC"
748 # ? for Stardent 1520, "make sys5r3"
749 # ? for Stratus FTX 2.x, try "make ftx" or else "make sys5r4" or "sys5r4sx"
750 # ? for Stratus FTX 3.x, PA-RISC 1.0 or 2.0, "make ftx" or "make ftxtcp"
751 # ? for Sun with Sun UNIX 3.5 and gcc, "make sunos3gcc"
752 # ? for Sun with pre-4.0 SunOS versions, "make bsd" (or appropriate variant)
753 # ? for Sun with SunOS 4.0, BSD environment, "make sunos4"
754 # ? for Sun with SunOS 4.0, BSD, with SunLink X.25, make sunos4x25
755 # ? for Sun with SunOS 4.1 or 4.1.1, BSD environment, "make sunos41"
756 # or "make sunos41c" (curses) or "make sunos41gcc" (compile with gcc)
757 # ? for Sun with SunOS 4.1.x, BSD, with SunLink X.25 7.00 or earlier,
758 # "make sunos41x25" or "make sunos41x25c" (curses)
759 # ? for Sun with SunOS 4.1, 4.1.1, AT&T Sys V R3 environment, "make sunos41s5"
760 # ? for Sun with SunOS 4.1.2, "make sunos41" or any of its variations.
761 # NOTE: All SunOS 4.x systems -- Shared libraries are used by default.
762 # If this causes problems, add -Bstatic to CFLAGS.
763 # NOTE2: When building C-Kermit under SunOS for the BSD universe,
764 # but /usr/5bin/cc is ahead of /usr/ucb/cc in your PATH, add
765 # "CC=/usr/ucb/cc CC2=/usr/ucb/cc" to the make entry.
766 # NOTE3: If an executable built on one type of Sun hardware does not work
767 # on another type, rebuild the program from source on the target machine.
768 # for Sun with Solaris 1.x use SunOS 4.1 entries.
769 # for Sun with Solaris 2.0 and higher use Solaris entries.
770 # + for Sun SPARC with Linux, "make linux"
771 # ? for Sun SPARC with OPENSTEP/Mach 4.1, "make nextquadfat"
772 # ? for Sun SPARC with OPENSTEP/Mach 4.2, "make openstep42"
773 # - for Tandy 16/6000 with Xenix 3.0, "make trs16" (C-Kermit 7.0 is too big)
774 # ? for Tektronix 6130/4132/43xx (e.g.4301) with UTek OS, "make utek"
775 # or (for models without hardware flow control), "make uteknohwfc"
776 # ? for Tektronix XD88 series with UTekV OS, "make utekvr3"
777 # ? for Tri Star Flash Cache with Esix SVR3.2, "make sys5r3"
778 # NOTE: The Tru64 builds have been failing since 2010, but "make dec-osf" is OK
779 # ? for Tru64 UNIX 4.0E, "make tru64-40e"
780 # ? for Tru64 UNIX 4.0F, "make tru64-40f"
781 # ? for Tru64 UNIX 4.0G, "make tru64-40g"
782 # ? for Tru64 UNIX 5.0A, "make tru64-50a"
783 # ? for Tru64 UNIX 5.1A, "make tru64-51a"
784 # ? for Tru64 UNIX 5.1B, "make tru64-51b"
785 # ? for Unistar, "make sys5"
786 # ? for Unisys S/4040 68040 CTIX SVR3.2 6.4.1, "make ctix" or "make sys5r3"
787 # ? for Unisys U5000 UNIX SVR3 6.x, "make sys5r3" or "make sys5r3c"
788 # ? for Unisys U6000 UNIX SVR4 1.x, "make sys5r4nx" or "make sys5r4nxnetc"
789 # for Unisys ... (also see Sperry)
790 # for Univel - see UnixWare
791 # for Unixware - see SCO
792 # ? for Valid Scaldstar, "make valid"
793 # ? for Whitechapel MG01 Genix 1.3, "make white"
794 # ? for Zilog ZEUS 3.21, "make zilog"
795 #
796 # The result should be a runnable program called "wermit" in the current
797 # directory. After satisfactory testing, you can rename wermit to "kermit"
798 # and put it in some directory that's in everybody's PATH, such as
799 # /usr/local or /opt/local.
800 #
801 # To remove intermediate and object files, "make clean".
802 # If your C compiler produces files with an extension other than "o",
803 # then "make clean EXT=u", "make clean EXT=s", or whatever.
804 #
805 # To run lint on the source files, "make lintsun", "make lintbsd",
806 # "make lints5", as appropriate.
807 #
808 # ******************************
809 # SECURE TARGETS
810 #
811 # Beginning with C-Kermit 7.0, secure targets are included, as are the
812 # source modules (ckuat*.[ch], ck_*.[ch]) needed to build them. Secure
813 # target names are like the regular names, but with security features
814 # indicated by plus (+) signs. The features are:
815 #
816 # krb4 MIT Kerberos IV
817 # krb5 MIT Kerberos V
818 # openssl OpenSSL (SSL/TLS)
819 # zlib ZLIB compression for SSL/TLS
820 # srp Stanford Secure Remote Password
821 # pam PAM (pluggable authentication module)
822 # shadow Shadow Password File
823 #
824 # You can build these targets if you have the Kermit source files and the
825 # required libraries (Kerberos, OpenSSL, SRP, etc) and header files. See:
826 # http://www.columbia.edu/kermit/security.html
827 # for specific details regarding supported versions.
828 #
829 # NOTE: OpenSSL 0.9.6 and earlier are not compatible with 0.9.7 and later.
830 # C-Kermit code was originally designed for 0.9.6. To build with 0.9.7 you
831 # must add -DOPENSSL_097 to avoid missing symbols in the DES library and to
832 # use the entry points that were renamed to avoid conflict with Kerberos 4.
833 # If you have OpenSSL 0.9.8, add -DOPENSSL_098, which is a synonym for
834 # -DOPENSSL_097. If you have 1.0.0 or later, add -DOPENSSL_100, which is
835 # another synonym.
836
837 # In OpenSSL builds add -ldl if you get unresolved references for
838 # dlopen, dlclose, dlsym, and/or dlerror.
839 #
840 # In order to build a secure version of Kermit, you need to know the location
841 # of the header (include) files and libraries for the desired form of
842 # security. Unless you specify a location, this makefile looks in /usr/local
843 # and if the required files are not found, the build fails.
844 #
845 # If the secure headers and libraries are not on your computer, you have
846 # to download and install them, for example from http://www.openssl.org .
847 #
848 # The following symbols are used to specify library and header file locations.
849 # prefix statement changed in 10.0 Beta.06 to allow prefix to be specified
850 # from the make command line e.g. $ env PREFIX=/usr/pkg make install.
851 # October 2022.
852 #
853 prefix = $${PREFIX:-/usr/local}
854 srproot = $(prefix)
855 sslroot = $(prefix)
856 manroot = $(prefix)
857
858 # The default Kerberos settings seem to be based on AIX, Irix, and Solaris
859 # but are not appropriate for (e.g.) Linux.
860
861 K4LIB=-L/usr/kerberos/lib
862 K4INC=-I/usr/kerberos/include
863 K5LIB=-L/usr/kerberos/lib
864 K5INC=-I/usr/kerberos/include
865 SRPLIB=-L$(srproot)/lib
866 SRPINC=-I$(srproot)/include
867 SSLLIB=-L$(sslroot)/ssl/lib
868 SSLINC=-I$(sslroot)/ssl/include
869
870 # To override these assignments; for example, if your OpenSSL files are
871 # not in /usr/local/ssl, invoke the desired target like this:
872 #
873 # make solaris9+openssl "SSLINC=-I/opt/openssl-0.9.8k/include" \
874 # "SSLLIB=-L/opt/openssl-0.9.8k/lib"
875 #
876 # (don't set the variables and then do "make -e" because that breaks
877 # chaining of makefile targets.)
878 #
879 # Here are some up-to-date secure targets as of Sep 2009:
880 #
881 # aix+openssl: IBM AIX 4.2 or later with OpenSSL
882 # freebsd44+srp+openssl FreeBSD 4.4 with SRP and OpenSSL
883 # freebsd50+openssl FreeBSD 5.0 with OpenSSL
884 # hpux1100o+openssl: HP-UX 11.xx with OpenSSL
885 # hpux1000gcc+openssl: HP-UX 10.xx with OpenSSL (build with gcc)
886 # hpux1100gcc+openssl: HP-UX 11.xx with OpenSSL (build with gcc)
887 # irix6x+krb5: IRIX 6.x with Kerberos V
888 # irix65+krb5: etc etc...
889 # solaris9+openssl Solaris 9,10, or 11 with Openssl (Sun cc)
890 # solaris9g+openssl Solaris 9,10, or 11 with Openssl (gcc)
891 # linux+ssl OpenSSL only
892 # linux+krb5+ssl Linux with Kerberos 5 and OpenSSL
893 # linux+krb5: Kerberos 5 only
894 #
895 # The following secure Linux targets have not been updated or tested recently.
896 # linux+krb5+krb4:
897 # linux+srp:
898 # linux+srp+pam:
899 # linux+srp+gmp:
900 # linux+srp+gmp+no-des:
901 # linux+srp+gmp-export:
902 # linux+srp+gmp+pam:
903 # linux+shadow+pam:
904 # linux+openssl:
905 # linux+openssl+shadow:
906 # linux+openssl+zlib+shadow+pam:
907 # linux+srp+openssl:
908 # linux+krb5+krb4+srp:
909 # linux+krb5+krb4+srp+openssl:
910 # linux+krb5+krb4+openssl:
911 # linux+krb5+krb4+openssl+shadow:
912 # linux+krb5+krb4+openssl+zlib+shadow:
913 # linux+krb5+krb4+srp-export:
914 # linux+krb5+krb4+srp+pam:
915 # linux+krb5+krb4+srp+openssl+pam-debug:
916 # linux+krb5+krb4+srp+openssl+pam:
917 # linux+krb5+krb4+srp+openssl+zlib+pam:
918 # linux+krb5+krb4+openssl+shadow+pam:
919 # linux+krb5+openssl+zlib+shadow+pam:
920 #
921 # The following have not been tested recently either and might
922 # need adjustment.
923 #
924 # macosx+krb5+ssl: Mac OS X 10.3.9 or later + OpenSSL and Kerberos 5
925 # macosx103+secure: This one is probably redundant
926 # netbsd+openssl: NetBSD with OpenSSL
927 # openbsd30+ssl: OpenBSD 3.0 with OpenSSL
928 # redhat71,redhat72,redhat73,redhat80,redhat9 (Krb5,OpenSSL,Showdow,PAM,Zlib)
929 # sco32v500net+ssl:
930 # sco32v505net+ssl:
931 # solaris2x+krb4:
932 # solaris2xg+krb4:
933 # solaris2xg+openssl+pam+shadow:
934 # solaris2xg+openssl+zlib+pam+shadow:
935 # solaris2xg+krb5+krb4+openssl+shadow:
936 # solaris25+krb4:
937 # solaris25g+krb4:
938 # solaris26g+openssl:
939 # solaris8g+openssl+zlib+pam+shadow:
940 # solaris8g+krb4:
941 # solaris9g+openssl+zlib+pam+shadow:
942 # solaris9g+openssl+shadow+pam+zlib
943 # sunos41gcc+krb4: SunOS 4.1 built with gcc with Kerberos IV
944 # sunos41gcc+openssl: SunOS 4.1 built with gcc with OpenSSL
945 # sunos41gcc+krb4+openssl: ...with Kerberos IV and OpenSSL
946 # sunos41gcc+krb4+openssl+zlib: ditto, plus ZLIB compression
947 # sunos41gcc+krb4+srp+openssl+zlib: ditto, plus SRP
948 # sunos41gcc+srp+openssl+zlib:
949 # tru64-51b-openssl: Tru64 (Digital) Unix 5.1B with OpenSSL
950 # uw7ssl Unixware 7 with SSL
951 #
952 ###########################################################################
953 #
954 # Compile and Link variables:
955 #
956 # EXT is the extension (file type) for object files, normally o.
957 # See MINIX entry for what to do if another filetype must be used.
958 #
959 EXT=o
960 #LNKFLAGS=
961 SHAREDLIB=
962 CC= cc
963 CC2= cc
964 MAKE= make
965 SHELL=/bin/sh
966
967 ###########################################################################
968 # (Ancient) UNIX V7-specific variables.
969 # These are set up for Perkin-Elmer 3230 V7 Unix:
970 #
971 PROC=proc
972 DIRECT=
973 NPROC=nproc
974 NPTYPE=int
975 BOOTFILE=/edition7
976 #
977 # ( For old Tandy TRS-80 Model 16A or 6000 V7-based Xenix, use PROC=_proc,
978 # DIRECT=-DDIRECT, NPROC=_Nproc, NPTYPE=short, BOOTFILE=/xenix )
979 #
980
981 ###########################################################################
982 # SAMPLE INSTALLATION SCRIPT
983 #
984 # Modify to suit your own computer's file organization and permissions. If
985 # you don't have write access to the destination directories, "make install"
986 # fails. In most cases, a real installation also requires you to chown /
987 # chgrp the Kermit binary for the UUCP lockfile and/or tty devices, and
988 # perhaps also to chmod +s the corresponding permission fields.
989 #
990 # Default binary, man, and doc directories are supplied below. You can
991 # override them in your 'make' command. Examples:
992 #
993 # make install # Accept defaults.
994 # make "INFODIR=/usr/share/lib/kermit" install # Override INFODIR default.
995 #
996 # You can also build and install in one step, e.g.:
997 #
998 # make linux install
999 #
1000 # If you use the 'install' target to install C-Kermit, it creates an
1001 # UNINSTALL script that can be used to uninstall it.
1002 #
1003 WERMIT = makewhat
1004 BINARY = wermit
1005 DESTDIR =
1006 BINDIR = $(prefix)/bin
1007 MANDIR = $(manroot)/man/man1
1008 MANEXT = 1
1009 SRCDIR =
1010 INFODIR =
1011 CERTDIR =
1012
1013 TEXTFILES = COPYING.TXT ckcbwr.txt ckubwr.txt ckuins.txt ckccfg.txt \
1014 ckcplm.txt ckermit.ini ckermod.ini ckermit70.txt ckermit80.txt
1015
1016 # How many targets?
1017 count:
1018 @grep -c '^[^#[:space:]].*:' makefile
1019
1020 # List all targets
1021 list:
1022 @grep '^[^#[:space:]].*:' makefile | sed 's/:.*$/:/'
1023 # @grep '^[^#[:space:]].*:' makefile
1024
1025 ALL = $(WERMIT)
1026
1027 all: $(ALL)
1028
1029 .c.o:
1030 $(CC) $(CFLAGS) -DKTARGET=\"$(KTARGET)\" -c $<
1031
1032 #Clean up intermediate and object files
1033 clean:
1034 @echo 'Removing object files...'
1035 -rm -f ckcmai.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) ckuus2.$(EXT) \
1036 ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) ckcpro.$(EXT) ckcfns.$(EXT) \
1037 ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) ckucon.$(EXT) ckutio.$(EXT) \
1038 ckufio.$(EXT) ckudia.$(EXT) ckuscr.$(EXT) ckwart.$(EXT) ckuusx.$(EXT) \
1039 ckuusy.$(EXT) ckcnet.$(EXT) ckuus6.$(EXT) ckuus7.$(EXT) ckusig.$(EXT) \
1040 ckucns.$(EXT) ckcmdb.$(EXT) ckuath.$(EXT) ckctel.$(EXT) ckclib.$(EXT) \
1041 ckcuni.$(EXT) ck_crp.$(EXT) ck_ssl.$(EXT) ckupty.$(EXT) ckcftp.$(EXT) \
1042 ckcpro.c wart
1043
1044 show:
1045 @echo prefix=$(prefix)
1046 @echo srproot=$(srproot)
1047 @echo sslroot=$(sslroot)
1048 @echo manroot=$(manroot)
1049 @echo K4LIB=$(K4LIB)
1050 @echo K4INC=$(K4INC)
1051 @echo K5LIB=$(K5LIB)
1052 @echo K5INC=$(K5INC)
1053 @echo SRPLIB=$(SRPLIB)
1054 @echo SRPINC=$(SRPINC)
1055 @echo SSLLIB=$(SSLLIB)
1056 @echo SSLINC=$(SSLINC)
1057 @exit
1058
1059 # Install C-Kermit after building -- IMPORTANT: Read the instructions above
1060 # (SAMPLE INSTALLATION SCRIPT). For SSL/TLS versions, ca_certs.pem file
1061 # should be installed in the appropriate place for your OpenSSL library, e.g.:
1062 #
1063 # cp ca_certs.pem /usr/local/ssl/
1064 # cp ca_certs.pem /usr/share/ssl/
1065 #
1066 # To make sure 'man' notices the new source file and doesn't keep
1067 # showing the old formatted version, remove the old formatted version,
1068 # something like this:
1069 # rm -f $(MANDIR)/../cat$(MANEXT)/kermit.$(MANEXT)
1070 # or this (which requires CATDIR to be defined):
1071 # rm -f $(CATDIR)/kermit.$(MANEXT)
1072 #
1073 # As of C-Kermit 8.0.205 this target also builds an UNINSTALL script, and
1074 # so it might be too long for some old Bourne shells, in which case you can
1075 # use a different shell:
1076 #
1077 # make SHELL=ksh install
1078 # make SHELL=/bin/posix/sh install
1079 #
1080 # POSTSCRIPT November 2022... This target can not possibly cover all the
1081 # possible scenarios. For example, installation on a multiuser timesharing
1082 # system by a sysadmin with root privilege versus installation on a desktop
1083 # by a home user who doesn't even know what "root" is. Not to mention
1084 # differences among BSD, Linux, macOS, and the hundreds of historical Unix
1085 # versions that this makefile still aims to support. If there is to be an
1086 # install script at this point, it makes more sense for it to be a Kermit
1087 # script. I hope to find the the time to write one in time for the C-Kermit
1088 # 10.0 release. - fdc, Thu Nov 24 08:13:18 2022
1089 #
1090 install:
1091 @echo Installing C-Kermit version $(CKVER)...;\
1092 rm -f UNINSTALL;\
1093 exec 3>./UNINSTALL;\
1094 echo "# C-Kermit UNINSTALL script" >&3;\
1095 echo "# `date`\n" >&3;\
1096 echo "CKVER=$(CKVER)" >&3;\
1097 echo "PrN Uninstalling C-Kermit version $(CKVER)..." >&3;\
1098 echo DESTDIR=$(DESTDIR);\
1099 if test -n "$(DESTDIR)"; then\
1100 if test -d $(DESTDIR); then\
1101 echo "$(DESTDIR) exists...\n";\
1102 else\
1103 echo "Creating $(DESTDIR)...";\
1104 DESTDIR=`echo $(DESTDIR) | sed 's!/*$$!!'`;\
1105 mkdir $$DESTDIR || exit 1;\
1106 fi;\
1107 chmod 755 $(DESTDIR) || exit 1;\
1108 fi;\
1109 echo BINARY=$(BINARY);\
1110 if test -f $(BINARY); then\
1111 ls -l $(BINARY);\
1112 else\
1113 echo "?$(BINARY) not found";\
1114 exit 1;\
1115 fi;\
1116 if test -z "$(DESTDIR)$(BINDIR)"; then\
1117 echo "Binary directory not specified";\
1118 exit 1;\
1119 fi;\
1120 if test -d $(DESTDIR)$(BINDIR); then\
1121 echo "$(DESTDIR)$(BINDIR) exists...";\
1122 else\
1123 echo "Creating $(DESTDIR)$(BINDIR)/...";\
1124 mkdir $(DESTDIR)$(BINDIR) || exit 1;\
1125 chmod 755 $(DESTDIR)$(BINDIR);\
1126 fi;\
1127 rm -f $(DESTDIR)$(BINDIR)/kermit;\
1128 cp $(BINARY) $(DESTDIR)$(BINDIR)/kermit || exit 1;\
1129 chmod 755 $(DESTDIR)$(BINDIR)/kermit || exit 1;\
1130 rm -f $(DESTDIR)$(BINDIR)/kermit-sshsub;\
1131 ln -s $(DESTDIR)$(BINDIR)/kermit\
1132 $(DESTDIR)$(BINDIR)/kermit-sshsub || exit 1;\
1133 echo 'set flag=f\nPrC Removing binaries' >&3;\
1134 echo "RmF $(DESTDIR)$(BINDIR)/kermit-sshsub" >&3;\
1135 echo "RmF $(DESTDIR)$(BINDIR)/kermit" >&3;\
1136 if test -f ckermit.ini; then\
1137 echo "#!$(BINDIR)/kermit" >\
1138 $(DESTDIR)$(BINDIR)/_tmp.ini;\
1139 cat ckermit.ini >> $(DESTDIR)$(BINDIR)/_tmp.ini;\
1140 mv $(DESTDIR)$(BINDIR)/_tmp.ini\
1141 $(DESTDIR)$(BINDIR)/ckermit.ini;\
1142 chmod 755 $(DESTDIR)$(BINDIR)/ckermit.ini;\
1143 echo "RmF $(DESTDIR)$(BINDIR)/ckermit.ini" >&3;\
1144 fi;\
1145 echo;\
1146 echo 'EfM' >&3;\
1147 echo "Kermit binary installed:";\
1148 ls -l $(DESTDIR)$(BINDIR)/kermit\
1149 $(DESTDIR)$(BINDIR)/kermit-sshsub\
1150 $(DESTDIR)$(BINDIR)/ckermit.ini;\
1151 echo;\
1152 echo " WARNING: If C-Kermit is to be used for dialing out,";\
1153 echo " you must change its owner and group and permissions";\
1154 echo " to match the 'cu' program. See the ckuins.txt file";\
1155 echo " for details.";\
1156 echo;\
1157 echo MANDIR=$(MANDIR);\
1158 if test -n "$(DESTDIR)$(MANDIR)"; then\
1159 if test -d $(DESTDIR)$(MANDIR); then\
1160 echo "$(DESTDIR)$(MANDIR) exists...";\
1161 else\
1162 echo "Creating $(MANDIR)...";\
1163 mkdir $(MANDIR) || exit 1;\
1164 chmod 755 $(MANDIR) || exit 1;\
1165 fi;\
1166 rm -f $(DESTDIR)$(MANDIR)/kermit.$(MANEXT);\
1167 cp ckuker.nr $(DESTDIR)$(MANDIR)/kermit.$(MANEXT) || exit 1;\
1168 chmod 644 $(DESTDIR)$(MANDIR)/kermit.$(MANEXT) || exit 1;\
1169 echo 'set flag=f\nPrC Removing man pages' >&3;\
1170 echo "RmF $(DESTDIR)$(MANDIR)/kermit.$(MANEXT)" >&3;\
1171 echo 'EfM' >&3;\
1172 echo;\
1173 else\
1174 echo "Not installing man page!\n";\
1175 fi;\
1176 echo CERTDIR=$(CERTDIR);\
1177 if test -n "$(CERTDIR)"; then\
1178 if test -f ca_certs.pem; then\
1179 if test -d $(CERTDIR); then\
1180 echo "$(CERTDIR) exists...";\
1181 else\
1182 echo "Creating $(CERTDIR)...";\
1183 mkdir $(CERTDIR) || exit 1;\
1184 chmod 755 $(CERTDIR) || exit 1;\
1185 fi;\
1186 echo "Installing certificates file...";\
1187 cp ca_certs.pem $(CERTDIR) || exit 1;\
1188 echo 'set flag=f' >&3;\
1189 echo 'PrC Removing certificates file' >&3;\
1190 echo "RmF $(CERTDIR)/ca_certs.pem" >&3;\
1191 echo 'EfM' >&3;\
1192 echo;\
1193 fi;\
1194 else\
1195 echo "Not installing certificates file!\n";\
1196 fi;\
1197 echo SRCDIR=$(DESTDIR)$(SRCDIR);\
1198 if test -n "$(SRCDIR)"; then\
1199 echo "Installing source files...";\
1200 if test -d $(DESTDIR)$(SRCDIR); then\
1201 echo "$(DESTDIR)$(SRCDIR) exists...";\
1202 else\
1203 echo "Creating $(DESTDIR)$(SRCDIR)/...";\
1204 mkdir $(DESTDIR)$(SRCDIR) || exit 1;\
1205 chmod 755 $(DESTDIR)$(SRCDIR);\
1206 fi;\
1207 echo "Copying source files to $(DESTDIR)$(SRCDIR)...";\
1208 echo 'set flag=f\nPrC Removing source files' >&3;\
1209 for TextFile in COPYING.TXT ck[cuw_]*.[cwh] makefile; do\
1210 cp $$TextFile $(DESTDIR)$(SRCDIR)/ && echo ".\c";\
1211 echo "RmF $(DESTDIR)$(SRCDIR)/$$TextFile" >&3;\
1212 done; echo;\
1213 echo 'EfM' >&3;\
1214 ( cd $(DESTDIR)$(SRCDIR)/ &&\
1215 ls -l COPYING.TXT ck[cuw_]*.[cwh] makefile );echo;\
1216 else\
1217 echo "Not installing source code!\n";\
1218 fi;\
1219 echo INFODIR=$(DESTDIR)$(INFODIR);\
1220 if test -n "$(INFODIR)"; then\
1221 echo "Installing info files...";\
1222 if test -d $(DESTDIR)$(INFODIR); then\
1223 echo "$(DESTDIR)$(INFODIR) exists...";\
1224 else\
1225 echo "Creating $(DESTDIR)$(INFODIR)/...";\
1226 mkdir $(DESTDIR)$(INFODIR) || exit 1;\
1227 chmod 755 $(DESTDIR)$(INFODIR);\
1228 fi;\
1229 echo "Copying text files to $(DESTDIR)$(INFODIR)...";\
1230 echo 'set flag=f\nPrC Removing text files' >&3;\
1231 FileCopyList='';\
1232 for TextFile in $(TEXTFILES); do\
1233 test -f $$TextFile || continue;\
1234 cp $$TextFile $(DESTDIR)$(INFODIR) && echo ".\c" &&\
1235 FileCopyList="$$FileCopyList $$TextFile";\
1236 echo "RmF $(DESTDIR)$(INFODIR)/$$TextFile" >&3;\
1237 done; echo;\
1238 echo 'EfM' >&3;\
1239 ( cd $(DESTDIR)$(INFODIR)/ && chmod 644 $$FileCopyList );\
1240 ( cd $(DESTDIR)$(INFODIR)/ && pwd && ls -l $$FileCopyList );\
1241 else\
1242 echo "Not installing text files!\n";\
1243 fi;\
1244 echo "set flag=d\nPrN Removing empty dirs..." >&3;\
1245 echo "RmD $(DESTDIR)$(BINDIR)" >&3;\
1246 echo "RmD $(DESTDIR)$(SRCDIR)" >&3;\
1247 echo "RmD $(DESTDIR)$(INFODIR)" >&3;\
1248 echo "RmD $(CERTDIR)" >&3;\
1249 echo "RmD $(MANDIR)" >&3;\
1250 echo "RmD $(DESTDIR)" >&3;\
1251 echo "EfM" >&3;\
1252 echo "PrN C-Kermit version $(CKVER) is uninstalled!" >&3;\
1253 echo C-Kermit version $(CKVER) installed!
1254
1255 # UN-Install C-Kermit after building
1256 # Please to not remove the extra blanks before and after '{}' within the
1257 # functions. You would get syntax errors for some older Bourne shells! Best is
1258 # you don't change or remove anything.
1259 #
1260 uninstall:
1261 @if test ! -f UNINSTALL; then\
1262 echo "?C-Kermit UNINSTALL data file not found!";\
1263 exit 1;\
1264 fi; \
1265 X=`grep '^CKVER='$(CKVER)'$$' ./UNINSTALL || :`;\
1266 if test -z "$$X"; then\
1267 echo "?UNINSTALL file is not for C-Kermit version $(CKVER)";\
1268 exit 2;\
1269 fi;\
1270 PrN () { echo "$$*"; };\
1271 PrC () { echo "$$* \c"; };\
1272 RmF () { test -f "$$1" && rm -f "$$1" && echo ".\c" && flag=F ; };\
1273 RmD () { \
1274 dir=$$1;\
1275 while test -d "$$dir"; do\
1276 rmdir "$$dir" 2>&- || return && echo "$$dir" && flag=D;\
1277 dir=`echo "$$dir" | sed 's!/[^/]*/*$$!!'`;\
1278 done; \
1279 };\
1280 EfM () { \
1281 case "$$flag" in\
1282 f) echo "- Nothing to remove!";;\
1283 d) echo "Nothing to remove!";;\
1284 F) echo " done";;\
1285 D) echo "done";;\
1286 esac; \
1287 };\
1288 while read Act Args; do\
1289 case $$Act in\
1290 EfM) EfM;;\
1291 RmD) RmD $$Args;;\
1292 RmF) RmF $$Args;;\
1293 PrN) PrN $$Args;;\
1294 PrC) PrC $$Args;;\
1295 set) eval $$Args;;\
1296 esac;\
1297 done < ./UNINSTALL
1298
1299 makewhat:
1300 @echo 'make what? You must tell which platform to make C-Kermit for.'
1301 @echo Examples: make linux, make aix, make solaris10, make hpux1100.
1302 @echo Please read the comments at the beginning of the makefile.
1303
1304 ###########################################################################
1305 #
1306 # Dependencies Section:
1307
1308 wermit: ckcmai.$(EXT) ckclib.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) ckuus2.$(EXT) \
1309 ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) ckuus6.$(EXT) \
1310 ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) ckcpro.$(EXT) \
1311 ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) \
1312 ckucon.$(EXT) ckutio.$(EXT) ckufio.$(EXT) ckudia.$(EXT) \
1313 ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) \
1314 ckcuni.$(EXT) ckupty.$(EXT) ckcftp.$(EXT) \
1315 $(CC2) $(LNKFLAGS) -o wermit \
1316 ckcmai.$(EXT) ckclib.$(EXT) ckutio.$(EXT) ckufio.$(EXT) \
1317 ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) \
1318 ckcpro.$(EXT) ckucmd.$(EXT) ckuus2.$(EXT) ckuus3.$(EXT) \
1319 ckuus4.$(EXT) ckuus5.$(EXT) ckuus6.$(EXT) ckuus7.$(EXT) \
1320 ckuusx.$(EXT) ckuusy.$(EXT) ckuusr.$(EXT) ckucon.$(EXT) \
1321 ckudia.$(EXT) ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) \
1322 ckusig.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) ckcftp.$(EXT) \
1323 $(LIBS)
1324
1325 # Preferred configuration with select()-based CONNECT
1326
1327 xermit: ckcmai.$(EXT) ckclib.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) ckuus2.$(EXT) \
1328 ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) ckuus6.$(EXT) \
1329 ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) ckcpro.$(EXT) \
1330 ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) \
1331 ckucns.$(EXT) ckutio.$(EXT) ckufio.$(EXT) ckudia.$(EXT) \
1332 ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) \
1333 ckcuni.$(EXT) ckupty.$(EXT) ckcftp.$(EXT) ckuath.$(EXT) \
1334 ck_crp.$(EXT) ck_ssl.$(EXT)
1335 $(CC2) $(LNKFLAGS) -o wermit \
1336 ckcmai.$(EXT) ckclib.$(EXT) ckutio.$(EXT) ckufio.$(EXT) \
1337 ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) \
1338 ckcpro.$(EXT) ckucmd.$(EXT) ckuus2.$(EXT) ckuus3.$(EXT) \
1339 ckuus4.$(EXT) ckuus5.$(EXT) ckuus6.$(EXT) ckuus7.$(EXT) \
1340 ckuusx.$(EXT) ckuusy.$(EXT) ckuusr.$(EXT) ckucns.$(EXT) \
1341 ckudia.$(EXT) ckuscr.$(EXT) ckcnet.$(EXT) ckusig.$(EXT) \
1342 ckctel.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) ckcftp.$(EXT) \
1343 ckuath.$(EXT) ck_crp.$(EXT) ck_ssl.$(EXT) $(LIBS)
1344
1345 # Malloc Debugging version
1346
1347 mermit: ckcmdb.$(EXT) ckcmai.$(EXT) ckclib.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) \
1348 ckuus2.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) \
1349 ckuus6.$(EXT) ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) \
1350 ckcpro.$(EXT) ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) \
1351 ckuxla.$(EXT) ckucon.$(EXT) ckutio.$(EXT) ckufio.$(EXT) \
1352 ckudia.$(EXT) ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) \
1353 ckusig.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) ckcftp.$(EXT)
1354 $(CC2) $(LNKFLAGS) -o mermit ckcmdb.$(EXT) ckclib.$(EXT) ckcmai.$(EXT)\
1355 ckutio.$(EXT) ckufio.$(EXT) ckcfns.$(EXT) ckcfn2.$(EXT) \
1356 ckcfn3.$(EXT) ckuxla.$(EXT) ckcpro.$(EXT) ckucmd.$(EXT) \
1357 ckuus2.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) \
1358 ckuus6.$(EXT) ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) \
1359 ckuusr.$(EXT) ckucon.$(EXT) ckudia.$(EXT) ckuscr.$(EXT) \
1360 ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) ckcuni.$(EXT) \
1361 ckupty.$(EXT) ckcftp.$(EXT) $(LIBS)
1362
1363 # Kerberized Version - Subject to USA export restrictions.
1364
1365 # NOTE: We don't use this any more -- As of 15 Feb 2003, the "xermit"
1366 # target is used for both secure and regular version.
1367
1368 krbmit: ckcmai.$(EXT) ckclib.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) ckuus2.$(EXT) \
1369 ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) ckuus6.$(EXT) \
1370 ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) ckcpro.$(EXT) \
1371 ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) \
1372 ckucns.$(EXT) ckutio.$(EXT) ckufio.$(EXT) ckudia.$(EXT) \
1373 ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) \
1374 ckuath.$(EXT) ck_crp.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) \
1375 ckcftp.$(EXT) ck_ssl.$(EXT)
1376 $(CC2) $(LNKFLAGS) -o krbmit ckcmai.$(EXT) ckclib.$(EXT) \
1377 ckutio.$(EXT) ckufio.$(EXT) ckcfns.$(EXT) ckcfn2.$(EXT) \
1378 ckcfn3.$(EXT) ckuxla.$(EXT) ckcpro.$(EXT) ckucmd.$(EXT) \
1379 ckuus2.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) \
1380 ckuus6.$(EXT) ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) \
1381 ckuusr.$(EXT) ckucns.$(EXT) ckudia.$(EXT) ckuscr.$(EXT) \
1382 ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) ckuath.$(EXT) \
1383 ck_crp.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) ckcftp.$(EXT) \
1384 ck_ssl.$(EXT) $(LIBS)
1385
1386 krbmit-debug: ckcmai.$(EXT) ckclib.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) \
1387 ckuus2.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) \
1388 ckuus6.$(EXT) ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) \
1389 ckcpro.$(EXT) ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) \
1390 ckuxla.$(EXT) ckucns.$(EXT) ckutio.$(EXT) ckufio.$(EXT) \
1391 ckudia.$(EXT) ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) \
1392 ckusig.$(EXT) ckuath.$(EXT) ck_crp.$(EXT) ckcuni.$(EXT) \
1393 ckupty.$(EXT) ck_ssl.$(EXT) ckcmdb.$(EXT) ckcftp.$(EXT)
1394 $(CC2) $(LNKFLAGS) -o krbmit ckcmdb.$(EXT) ckcmai.$(EXT) \
1395 ckclib.$(EXT) ckutio.$(EXT) ckufio.$(EXT) ckcfns.$(EXT) \
1396 ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) ckcpro.$(EXT) \
1397 ckucmd.$(EXT) ckuus2.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) \
1398 ckuus5.$(EXT) ckuus6.$(EXT) ckuus7.$(EXT) ckuusx.$(EXT) \
1399 ckuusy.$(EXT) ckuusr.$(EXT) ckucns.$(EXT) ckudia.$(EXT) \
1400 ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) \
1401 ckuath.$(EXT) ck_crp.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) \
1402 ckcftp.$(EXT) ck_ssl.$(EXT) $(LIBS)
1403
1404 # SRP(TM) Version - Subject to USA export restrictions.
1405
1406 srpmit: ckcmai.$(EXT) ckclib.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) ckuus2.$(EXT) \
1407 ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) ckuus6.$(EXT) \
1408 ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) ckcpro.$(EXT) \
1409 ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) \
1410 ckucns.$(EXT) ckutio.$(EXT) ckufio.$(EXT) ckudia.$(EXT) \
1411 ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) \
1412 ckuath.$(EXT) ck_crp.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) \
1413 ckcftp.$(EXT) ck_ssl.$(EXT)
1414 $(CC2) $(LNKFLAGS) -o srpmit ckcmai.$(EXT) ckclib.$(EXT) \
1415 ckutio.$(EXT) ckufio.$(EXT) ckcfns.$(EXT) ckcfn2.$(EXT) \
1416 ckcfn3.$(EXT) ckuxla.$(EXT) ckcpro.$(EXT) ckucmd.$(EXT) \
1417 ckuus2.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) \
1418 ckuus6.$(EXT) ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) \
1419 ckuusr.$(EXT) ckucns.$(EXT) ckudia.$(EXT) ckuscr.$(EXT) \
1420 ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) ckuath.$(EXT) \
1421 ck_crp.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) ck_ssl.$(EXT) \
1422 ckcftp.$(EXT) $(LIBS)
1423
1424 # Kerberized Version - Not subject to USA export restrictions.
1425
1426 krbmit-export: ckcmai.$(EXT) \
1427 ckclib.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) ckuus2.$(EXT) \
1428 ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) ckuus6.$(EXT) \
1429 ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) ckcpro.$(EXT) \
1430 ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) \
1431 ckucns.$(EXT) ckutio.$(EXT) ckufio.$(EXT) ckudia.$(EXT) \
1432 ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) \
1433 ckuath.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) ckcftp.$(EXT)
1434 $(CC2) $(LNKFLAGS) -o krbmit-export ckcmai.$(EXT) ckclib.$(EXT) \
1435 ckutio.$(EXT) ckufio.$(EXT) ckcfns.$(EXT) ckcfn2.$(EXT) \
1436 ckcfn3.$(EXT) ckuxla.$(EXT) ckcpro.$(EXT) ckucmd.$(EXT) \
1437 ckuus2.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) \
1438 ckuus6.$(EXT) ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) \
1439 ckuusr.$(EXT) ckucns.$(EXT) ckudia.$(EXT) ckuscr.$(EXT) \
1440 ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) ckuath.$(EXT) \
1441 ckcuni.$(EXT) ckupty.$(EXT) ckcftp.$(EXT) $(LIBS)
1442
1443 # SRP(TM) Version - Not subject to USA export restrictions.
1444
1445 srpmit-export: ckcmai.$(EXT) \
1446 ckclib.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) ckuus2.$(EXT) \
1447 ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) ckuus6.$(EXT) \
1448 ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) ckcpro.$(EXT) \
1449 ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) \
1450 ckucns.$(EXT) ckutio.$(EXT) ckufio.$(EXT) ckudia.$(EXT) \
1451 ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) \
1452 ckuath.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) ckcftp.$(EXT)
1453 $(CC2) $(LNKFLAGS) -o srpmit-export ckcmai.$(EXT) ckclib.$(EXT) \
1454 ckutio.$(EXT) ckufio.$(EXT) ckcfns.$(EXT) ckcfn2.$(EXT) \
1455 ckcfn3.$(EXT) ckuxla.$(EXT) ckcpro.$(EXT) ckucmd.$(EXT) \
1456 ckuus2.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) \
1457 ckuus6.$(EXT) ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) \
1458 ckuusr.$(EXT) ckucns.$(EXT) ckudia.$(EXT) ckuscr.$(EXT) \
1459 ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) ckuath.$(EXT) \
1460 ckcuni.$(EXT) ckupty.$(EXT) ckcftp.$(EXT) $(LIBS)
1461
1462 ###########################################################################
1463 # man page...
1464 #
1465 ckuker.nr:
1466 @echo This target is obsolete.
1467 @echo The ckuker.nr file no longer needs any preprocessing.
1468
1469 ###########################################################################
1470 # Dependencies for each module...
1471 #
1472 ckcmai.$(EXT): ckcmai.c ckcker.h ckcdeb.h ckcsym.h ckcasc.h ckcnet.h ckcsig.h \
1473 ckuusr.h ckctel.h ckclib.h ckcfnp.h
1474
1475 ckclib.$(EXT): ckclib.c ckclib.h ckcdeb.h ckcasc.h ckcsym.h ckcfnp.h
1476
1477 wart: ckwart.$(EXT)
1478 $(CC) $(LNKFLAGS) -o wart ckwart.$(EXT) $(LIBS)
1479
1480 ckcpro.c: ckcpro.w wart ckcdeb.h ckcsym.h ckcasc.h ckcker.h ckcnet.h ckctel.h \
1481 ckclib.h
1482 ./wart ckcpro.w ckcpro.c
1483
1484 ckcfns.$(EXT): ckcfns.c ckcker.h ckcdeb.h ckcsym.h ckcasc.h ckcxla.h ckcuni.h \
1485 ckuxla.h ckclib.h ckcnet.h ckcfnp.h
1486
1487 ckcfn2.$(EXT): ckcfn2.c ckcker.h ckcdeb.h ckcsym.h ckcasc.h ckcxla.h \
1488 ckuxla.h ckctel.h ckclib.h ckcnet.h ckcuni.h ckcfnp.h
1489
1490 ckcfn3.$(EXT): ckcfn3.c ckcker.h ckcdeb.h ckcsym.h ckcasc.h ckcxla.h \
1491 ckuxla.h ckclib.h ckcuni.h ckcfnp.h
1492
1493 ckuxla.$(EXT): ckuxla.c ckcker.h ckcsym.h ckcdeb.h ckcxla.h ckuxla.h ckclib.h \
1494 ckcuni.h ckcfnp.h
1495
1496 ckcuni.$(EXT): ckcuni.c ckcdeb.h ckcker.h ckucmd.h ckcuni.h ckcxla.h ckuxla.h \
1497 ckcfnp.h
1498
1499 ckuusr.$(EXT): ckuusr.c ckucmd.h ckcker.h ckuusr.h ckcsym.h ckcdeb.h ckcxla.h \
1500 ckuxla.h ckcasc.h ckcnet.h ckctel.h ckclib.h ckcuni.h ckcfnp.h
1501
1502 ckuus2.$(EXT): ckuus2.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcxla.h ckuxla.h \
1503 ckcasc.h ckcnet.h ckcsym.h ckctel.h ckclib.h ckcuni.h ckcfnp.h
1504
1505 ckuus3.$(EXT): ckuus3.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcxla.h ckuxla.h \
1506 ckcasc.h ckcnet.h ckcsym.h ckctel.h ckclib.h ckcuni.h ckcfnp.h
1507
1508 ckuus4.$(EXT): ckuus4.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcxla.h ckuxla.h \
1509 ckcasc.h ckcnet.h ckuver.h ckcsym.h ckctel.h ckclib.h \
1510 ckcuni.h ckcfnp.h
1511
1512 ckuus5.$(EXT): ckuus5.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcasc.h ckcnet.h \
1513 ckcsym.h ckctel.h ckclib.h ckcxla.h ckuxla.h ckcuni.h ckcfnp.h
1514
1515 ckuus6.$(EXT): ckuus6.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcasc.h ckcnet.h \
1516 ckcsym.h ckctel.h ckclib.h ckcfnp.h
1517
1518 ckuus7.$(EXT): ckuus7.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcxla.h ckuxla.h \
1519 ckcasc.h ckcnet.h ckcsym.h ckctel.h ckclib.h ckcuni.h ckcfnp.h
1520
1521 ckuusx.$(EXT): ckuusx.c ckcker.h ckuusr.h ckcdeb.h ckcasc.h ckcsym.h \
1522 ckcsig.h ckcnet.h ckctel.h ckclib.h ckcxla.h ckuxla.h \
1523 ckcuni.h ckcfnp.h
1524
1525 ckuusy.$(EXT): ckuusy.c ckcker.h ckcdeb.h ckcasc.h ckcnet.h ckcsym.h ckctel.h \
1526 ckclib.h ckcfnp.h
1527
1528 ckucmd.$(EXT): ckucmd.c ckcasc.h ckucmd.h ckcdeb.h ckcsym.h ckctel.h ckclib.h \
1529 ckcfnp.h
1530
1531 ckufio.$(EXT): ckufio.c ckcdeb.h ckuver.h ckcsym.h ckclib.h \
1532 ckcxla.h ckuxla.h ckcuni.h ckcfnp.h
1533
1534 ckutio.$(EXT): ckutio.c ckcdeb.h ckcnet.h ckuver.h ckcsym.h ckctel.h ckclib.h \
1535 ckcfnp.h
1536
1537 ckucon.$(EXT): ckucon.c ckcker.h ckcdeb.h ckcasc.h ckcnet.h ckcsym.h ckctel.h \
1538 ckclib.h ckcfnp.h
1539
1540 ckucns.$(EXT): ckucns.c ckcker.h ckcdeb.h ckcasc.h ckcnet.h ckcsym.h ckctel.h \
1541 ckclib.h ckcxla.h ckuxla.h ckcuni.h ckcfnp.h
1542
1543 ckcnet.$(EXT): ckcnet.c ckcdeb.h ckcker.h ckcnet.h ckcsym.h ckcsig.h ckctel.h \
1544 ckclib.h ckcfnp.h ckuusr.h
1545
1546 ckctel.$(EXT): ckcsym.h ckcdeb.h ckcker.h ckcnet.h ckctel.h ckclib.h ckcfnp.h
1547
1548 ckcmdb.$(EXT): ckcmdb.c ckcdeb.h ckcsym.h ckclib.h ckcfnp.h
1549
1550 ckudia.$(EXT): ckudia.c ckcker.h ckcdeb.h ckucmd.h ckcasc.h ckcsym.h ckcsig.h \
1551 ckcnet.h ckctel.h ckclib.h ckcfnp.h
1552
1553 ckuscr.$(EXT): ckuscr.c ckcker.h ckcdeb.h ckcasc.h ckcsym.h ckcsig.h \
1554 ckcnet.h ckctel.h ckclib.h ckcfnp.h
1555
1556 ckusig.$(EXT): ckusig.c ckcasc.h ckcdeb.h ckcker.h ckcnet.h ckuusr.h \
1557 ckcsig.h ckctel.h ckclib.h ckcfnp.h
1558
1559 ckcftp.$(EXT): ckcftp.c ckcdeb.h ckcasc.h ckcker.h ckucmd.h ckuusr.h \
1560 ckcnet.h ckctel.h ckcxla.h ckuxla.h ckcuni.h ckcfnp.h
1561
1562 ckupty.$(EXT): ckupty.c ckupty.h ckcdeb.h ckcfnp.h
1563
1564 ckuath.$(EXT): ckuath.c ckcdeb.h ckucmd.h ckuath.h ckuat2.h ckctel.h \
1565 ckclib.h ckcnet.h ckcfnp.h
1566
1567 ck_crp.$(EXT): ck_crp.c ckcdeb.h ckcnet.h ckuath.h ckclib.h ckcfnp.h
1568
1569 ck_ssl.$(EXT): ck_ssl.c ckcdeb.h ckucmd.h ckuath.h ckuat2.h ckctel.h \
1570 ckclib.h ck_ssl.h ckcfnp.h
1571
1572 ###########################################################################
1573 #
1574 # Entries to make C-Kermit for specific systems.
1575 #
1576 # Put the ones that need short makefiles first.
1577
1578 #Apollo Aegis 9.x. Includes TCP/IP support.
1579 #You can also add processor-dependent optimization switches like -M570.
1580 aegis:
1581 @echo Making C-Kermit $(CKVER) for Apollo Aegis 9.x...
1582 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
1583 "CFLAGS= -DBSD4 -DTCPSOCKET -DNOCSETS -DCK_CURSES -O $(KFLAGS)" \
1584 "LIBS = -lcurses -ltermcap"
1585
1586 #Apple Mac II, A/UX pre-3.0
1587 #Warning, if "send *" doesn't work, try the auxufs makefile entry below.
1588 aux:
1589 @echo Making C-Kermit $(CKVER) for Macintosh A/UX...
1590 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
1591 "CFLAGS = -DAUX -DTCPSOCKET $(KFLAGS) -i -O" "LNKFLAGS = -i"
1592
1593 #Apple Mac II, A/UX pre-3.0, compiled with gcc
1594 auxgcc:
1595 @echo Making C-Kermit $(CKVER) for Macintosh A/UX...
1596 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
1597 "CFLAGS = -DAUX -DTCPSOCKET -traditional $(KFLAGS) -i -O" \
1598 "LNKFLAGS = " "CC = gcc" "CC2 = gcc"
1599
1600 #Apple Mac II, A/UX, pre-3.0, but with ufs file volumes, uses <dirent.h>.
1601 auxufs:
1602 @echo Making C-Kermit $(CKVER) for Macintosh A/UX...
1603 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
1604 "CFLAGS = -DAUX -DTCPSOCKET -DDIRENT $(KFLAGS) -i -O" "LNKFLAGS = -i"
1605
1606 #Apple Mac II, A/UX 3.0, compiled with gcc
1607 aux3gcc:
1608 @echo Making C-Kermit $(CKVER) for Macintosh A/UX 3.0...
1609 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
1610 "CFLAGS = -DAUX -DHDBUUCP -DLFDEVNO -DTCPSOCKET -DDIRENT $(KFLAGS)" \
1611 "LNKFLAGS = -s" "LIBS = $(LIBS)" \
1612 "CC=gcc -pipe -traditional" "CC2=gcc -pipe -traditional"
1613
1614 #Apple Mac II, A/UX 3.0, compiled with gcc, uses curses
1615 aux3cgcc:
1616 @echo Making C-Kermit $(CKVER) for Macintosh A/UX 3.0...
1617 $(MAKE) "MAKE=$(MAKE)" CC=$(CC) CC2=$(CC2) aux3gcc \
1618 KTARGET=$${KTARGET:-$(@)} \
1619 "KFLAGS=$(KFLAGS) -DCK_CURSES" "LIBS = -lcurses $(LIBS)"
1620
1621 # Tenon MachTen, tested on Apple Powerbook with MachTen 2.1.1.D.
1622 # NOTE: This doesn't do anything about UUCP. It only works if /usr/spool/uucp
1623 # has permission of 777, and dialout device is world read/writeable.
1624 machten:
1625 @echo Making C-Kermit $(CKVER) for MachTen...
1626 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
1627 "CFLAGS= -DBSD43 -DTCPSOCKET -DSIG_V -DNDGPWNAM -DCK_CURSES -O \
1628 $(KFLAGS)" "LIBS=-lcurses -ltermcap"
1629
1630 #Bell Labs Research UNIX V10
1631 #Can't add TCP/IP because there is no sockets library. It would have to
1632 #be done using streams, but there is no code in C-Kermit for that.
1633 #Remove -DNOJC if desired (if your system has csh, ksh, or bash).
1634 bellv10:
1635 @echo Making C-Kermit $(CKVER) for Bell Labs Research UNIX V10...
1636 $(MAKE) wermit KTARGET=$${KTARGET-$(@)} \
1637 "CFLAGS= -DBELLV10 -DBSD4 -DNDIR -DNOJC -DNOSYSIOCTLH -DNOSETREU \
1638 -DNOCSETS -MINIDIAL $(KFLAGS)"
1639
1640 # WARNING: The early BSD entries do not build in version 7.0 with the stock
1641 # BSD compiler: "Too many defines". Unless you can rebuild cpp to have more
1642 # space for defines, these builds must be accomplished by:
1643 # copying the /usr/include tree to someplace else, preprocessing there with cc
1644 # -E -I./include or whatever (plus all the same -D's, adding any necessary
1645 # -U/-D to override the architecture)), renaming the the resulting files back
1646 # to their original names, bringing them back to the original BSD system, and
1647 # running the make target there. This technique was used for 4.2 and 4.3 BSD
1648 # on a VAX in C-Kermit 7.0 (later, cpp on that machine was rebuilt to allow
1649 # more symbols, so the C-Kermit 8.0 build proceeds normally).
1650
1651 #Berkeley Unix 4.1
1652 bsd41:
1653 @echo Making C-Kermit $(CKVER) for 4.1BSD...
1654 $(MAKE) wermit KTARGET=$${KTARGET-$(@)} \
1655 "CFLAGS= -DBSD41" "LIBS = -ljobs"
1656
1657 #Berkeley 4.2, 4.3, also Ultrix-32 1.x, 2.x, 3.x, many others
1658 # Add -O, -s, etc, if they work.
1659 # If you have a version of BSD but signal() is void rather than int,
1660 # "make bsd KFLAGS=-DSIG_V".
1661 bsd42:
1662 @echo Making C-Kermit $(CKVER) for 4.2BSD...
1663 $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
1664 "CFLAGS= -DBSD4 -DTCPSOCKET -DNOREALPATH -DNOTIMEH -DNOIKSD \
1665 -DCK_CURSES -DSYSTIMEBH -DNOPUTENV -DNOANSI -DBIGBUFOK -DBSD42HACK \
1666 $(KFLAGS)" "LIBS=-lcurses -ltermcap $(LIBS)"
1667
1668 bsd:
1669 $(MAKE) CC=$(CC) CC2=$(CC2) bsd42 KTARGET=$${KTARGET-$(@)}
1670
1671 #Berkeley Unix 4.2 or 4.3 with HoneyDanBer UUCP
1672 bsdhdb:
1673 @echo Making C-Kermit $(CKVER) for 4.2BSD with HDB UUCP...
1674 $(MAKE) CC=$(CC) CC2=$(CC2) bsd KTARGET=$${KTARGET-$(@)} \
1675 "KFLAGS= -DHDBUUCP $(KFLAGS)"
1676
1677 #Berkeley Unix 4.3 with acucntrl program, curses, TCP/IP included.
1678 bsd43:
1679 @echo Making C-Kermit $(CKVER) for 4.3BSD...
1680 $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
1681 "CFLAGS= -DBSD4 -DBSD43 -DTCPSOCKET -DNOREALPATH -DNOTIMEH -DNOIKSD \
1682 -DCK_CURSES -DACUCNTRL -DSYSTIMEBH -DNOPUTENV -DNOANSI -DBIGBUFOK \
1683 -DBSD42HACK $(KFLAGS)" "LIBS=-lcurses -ltermcap $(LIBS)"
1684
1685 #4.3BSD, curses excluded
1686 bsd43nc:
1687 @echo Making C-Kermit $(CKVER) for 4.3BSD...
1688 $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
1689 "CFLAGS= -DBSD4 -DBSD43 -DTCPSOCKET -DNOREALPATH -DNOTIMEH \
1690 -DACUCNTRL -DSYSTIMEBH -DNOIKSD -DNOPUTENV -DNOANSI -DBIGBUFOK \
1691 -DBSD42HACK $(KFLAGS)" "LIBS=$(LIBS)"
1692
1693 #4.3BSD, TCP/IP excluded.
1694 bsd43nonet:
1695 @echo Making C-Kermit $(CKVER) for 4.3BSD + curses...
1696 $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
1697 "CFLAGS= -DBSD4 -DBSD43 -DTCPSOCKET -DNOREALPATH -DNOTIMEH -DNOIKSD \
1698 -DCK_CURSES -DACUCNTRL -DSYSTIMEBH -DNOPUTENV -DNOANSI -DBIGBUFOK \
1699 -DBSD42HACK -DNONET $(KFLAGS)" "LIBS=-lcurses -ltermcap $(LIBS)"
1700
1701 #Berkeley Unix 4.2 or 4.3 with lock directory /usr/spool/uucp/LCK/LCK..ttyxx,
1702 #but without acucntrl program
1703 bsdlck:
1704 @echo Making C-Kermit $(CKVER) for 4.2BSD, /usr/spool/uucp/LCK/...
1705 $(MAKE) CC=$(CC) CC2=$(CC2) bsd KTARGET=$${KTARGET-$(@)} \
1706 "KFLAGS= -DLCKDIR $(KFLAGS)"
1707
1708 #Berkeley UNIX 4.4-Lite, 4.4-Encumbered, Net/2, etc (Post-Reno),
1709 #with TCP/IP networking. This was the basis for FreeBSD, NetBSD, OpenBSD,
1710 #BSDI, BSD/OS, and Mac OS X (each of which has its own set of targets that
1711 #are newer than this one).
1712 #
1713 #NOTE: This is not a pure POSIX configuration. Using -DPOSIX instead of
1714 # -DBSD44 prevents any kind of directory-reading (for wildcard expansion),
1715 #and disallows use of ENOTCONN symbol for detecting broken network
1716 #connections, and disallows RTS/CTS flow control, and would also require
1717 #definition of the appropriate UUCP lockfile convention.
1718 #Do not add -DCK_POSIX_SIG without reading <signal.h> first! For example,
1719 #sigsetjmp(), etc, tend to be defined but not implemented.
1720 #
1721 #NOTE: originally crypt was in libc - later it was unbundled.
1722 #Remove the LIBS clause to build on an early 4.4BSD platform.
1723 #
1724 bsd44:
1725 @echo Making C-Kermit $(CKVER) for 4.4BSD...
1726 $(MAKE) CC=$(CC) CC2=$(CC2) xermit KTARGET=$${KTARGET:-$(@)} \
1727 "CFLAGS= -DBSD44 -DTCPSOCKET $(KFLAGS) -O" "LIBS=-lcrypt"
1728
1729 #Berkeley UNIX 4.4, as above, but with curses for fullscreen display
1730 #Please read notes for bsd44 entry just above.
1731 # NOTE: This one dumped core on the real 4.4BSD development system at
1732 # UC Berkeley (an HP-9000/300), so the no-curses version was used
1733 # for that one, which was unplugged years ago.
1734 bsd44c:
1735 @echo Making C-Kermit $(CKVER) for 4.4BSD with curses...
1736 $(MAKE) CC=$(CC) CC2=$(CC2) xermit KTARGET=$${KTARGET:-$(@)} \
1737 "CFLAGS= -DBSD44 -DCK_CURSES -DTCPSOCKET $(KFLAGS) -O" \
1738 "LIBS= -lcurses -ltermcap -lcrypt $(LIBS)"
1739
1740 #For FreeBSD 1.x.
1741 freebsd1:
1742 @echo 'Making C-Kermit $(CKVER) for FreeBSD...'
1743 $(MAKE) CC=$(CC) CC2=$(CC2) xermit KTARGET=$${KTARGET:-$(@)} \
1744 "CFLAGS= -DBSD44 -DCK_CURSES -DTCPSOCKET -DNOCOTFMC -funsigned-char \
1745 -DFNFLOAT -DNOHTERMCAP -DNOREALPATH -DNOSYSCONF $(KFLAGS) -O -pipe" \
1746 "LIBS= -lcurses -ltermcap -lm $(LIBS)"
1747
1748 #FreeBSD 2.x with ncurses
1749 freebsd2:
1750 @echo 'Making C-Kermit $(CKVER) for FreeBSD 2.x with ncurses...'
1751 $(MAKE) CC=$(CC) CC2=$(CC2) xermit KTARGET=$${KTARGET:-$(@)} \
1752 "CFLAGS= -DBSD44 -DCK_NCURSES -DTCPSOCKET -DNOCOTFMC -DUSE_STRERROR \
1753 -DTPUTSARGTYPE=int -DTPUTSARG1CONST -DFREEBSD2 -funsigned-char \
1754 -DFNFLOAT $(KFLAGS) -O -pipe" \
1755 "LIBS= -lncurses -ltermlib -lcrypt -lm $(LIBS)"
1756
1757 #For FreeBSD 2.x -- Uses curses rather than ncurses
1758 freebsd2c:
1759 @echo 'Making C-Kermit $(CKVER) for FreeBSD 2.x with curses...'
1760 $(MAKE) CC=$(CC) CC2=$(CC2) xermit KTARGET=$${KTARGET:-$(@)} \
1761 "CFLAGS= -DBSD44 -DCK_CURSES -DTCPSOCKET -DNOCOTFMC -DUSE_STRERROR \
1762 -DTPUTSARGTYPE=int -DTPUTSARG1CONST -DFREEBSD2 -DFNFLOAT \
1763 -funsigned-char $(KFLAGS) -O -pipe" \
1764 "LIBS= -lcurses -ltermlib -lcrypt -lm $(LIBS)"
1765
1766 #FreeBSD 3.x with ncurses and uu_lock()
1767 #(Note: uu_lock() goes back to 2.2.2, but not necessarily 2.0)
1768 #OK 2011/08/20 FreeBSD 3.3
1769 freebsd3:
1770 @echo 'Making C-Kermit $(CKVER) for FreeBSD 3.x with ncurses...'
1771 $(MAKE) CC=$(CC) CC2=$(CC2) xermit KTARGET=$${KTARGET:-$(@)} \
1772 "CFLAGS= -DBSD44 -DCK_NCURSES -DTCPSOCKET -DNOCOTFMC -funsigned-char \
1773 -DTPUTSARGTYPE=int -DUSE_STRERROR -DFREEBSD3 -DUSE_UU_LOCK -DFNFLOAT \
1774 $(KFLAGS) -O -pipe" \
1775 "LIBS= -lncurses -lcrypt -lutil -lm $(LIBS)"
1776
1777 #As above but with curses rather than ncurses.
1778 freebsd3c:
1779 @echo 'Making C-Kermit $(CKVER) for FreeBSD 3.x with curses...'
1780 $(MAKE) CC=$(CC) CC2=$(CC2) xermit KTARGET=$${KTARGET:-$(@)} \
1781 "CFLAGS= -DBSD44 -DCK_CURSES -DTCPSOCKET -DNOCOTFMC -DUSE_UU_LOCK \
1782 -DTPUTSARGTYPE=int -DUSE_STRERROR -DFREEBSD3 $(KFLAGS) -DFNFLOAT \
1783 -funsigned-char -pipe -O" \
1784 "LIBS= -lcurses -lcrypt -lutil -lm $(LIBS)"
1785
1786 #FreeBSD 4.0 with ncurses and uu_lock(). Note - there is no curses in 4.0.
1787 #ncurses 5.0 is broken requiring us to work around with setbuf().
1788 freebsd40:
1789 @echo 'Making C-Kermit $(CKVER) for FreeBSD 4.x with ncurses...'
1790 $(MAKE) CC=$(CC) CC2=$(CC2) xermit KTARGET=$${KTARGET:-$(@)} \
1791 "CFLAGS= -DBSD44 -DCK_NCURSES -DTCPSOCKET -DNOCOTFMC -DFNFLOAT \
1792 -funsigned-char -DTPUTSARGTYPE=int -DUSE_STRERROR -DFREEBSD4 \
1793 -DNONOSETBUF -DUSE_UU_LOCK $(KFLAGS) -O -pipe" \
1794 "LIBS= -lncurses -lcrypt -lutil -lm $(LIBS)"
1795
1796 #FreeBSD 4.1 and above
1797 #Like FreeBSD 4.0 but without the NONOSETBUF hack and with CK_NEWTERM.
1798 #New stanza 27 June 2023 to squelch "sys/timeb.h deprecated" warning.
1799 #Most recently tested on FreeBSD 13.1
1800 #
1801 freebsd freebsd41 freebsd72 freebsd5 freebsd6 freebsd7 freebsd8 freebsd9:
1802 @echo 'Making C-Kermit $(CKVER) for FreeBSD 4.1 or later...'
1803 @if test `uname -r | cut -d . -f 1` -ge 8; then \
1804 HAVE_FBSD8='-DFREEBSD8'; \
1805 else HAVE_FBSD8=''; fi; \
1806 if test `uname -r | cut -d . -f 1` -ge 9; then \
1807 HAVE_FBSD9='-DFREEBSD9'; \
1808 else HAVE_FBSD9=''; fi; \
1809 if test -f /usr/include/utmpx.h ; \
1810 then HAVE_UTMPX='-DHAVEUTMPX' ; \
1811 else HAVE_UTMPX='' ; fi; \
1812 if test -f /usr/include/sys/wait.h ; \
1813 then HAVE_WAITH='-DHAVEWAITH' ; \
1814 else HAVE_WAITH='' ; fi; \
1815 NOSYSTIMEBH="-DNOSYSTIMEBH" ; \
1816 if test -f /usr/include/sys/timeb.h ; \
1817 then x=`grep deprecated /usr/include/sys/timeb.h | wc -l` ; \
1818 if [ $x > 0 ] ; \
1819 then NOSYSTIMEBH='' ; fi ; fi ; \
1820 if `grep -q "[[:space:]]utimes" /usr/include/sys/time.h` ; \
1821 then HAVE_UTIMES='-DHAVE_UTIMES' ; \
1822 else HAVE_UTIMES=''; fi; \
1823 $(MAKE) CC=$(CC) CC2=$(CC2) xermit KTARGET=$${KTARGET:-$(@)} \
1824 "CFLAGS= -DBSD44 -DCK_NCURSES -DCK_NEWTERM -DTCPSOCKET -DNOCOTFMC \
1825 -DFREEBSD4 $$HAVE_FBSD8 $$HAVE_FBSD9 -DUSE_UU_LOCK -DFNFLOAT \
1826 $$HAVE_UTMPX $$HAVE_WAITH $$NOSYSTIMEBH $$HAVE_UTIMES \
1827 -DHERALD=\"\\\" `uname -rs`\\\"\" \
1828 -funsigned-char -DTPUTSARGTYPE=int -DUSE_STRERROR $(KFLAGS) \
1829 -O2 -pipe"\
1830 "LIBS= -lncurses -lcrypt -lutil -lm $(LIBS)"
1831
1832 #FreeBSD 5.0 or later with OpenSSL.
1833 #OK 2011/06/15 FreeBSD 4.7 and 8.2
1834 #OK 2011/08/20 FreeBSD 9.0-CURRENT
1835 freebsd+ssl freebsd+openssl freebsd50+openssl:
1836 @echo 'Making C-Kermit $(CKVER) for FreeBSD with Kerberos 5...'
1837 @case `openssl version` in \
1838 *0.9.7*) OPENSSLOPTION="-DOPENSSL_097" ;; \
1839 *0.9.8*) OPENSSLOPTION="-DOPENSSL_098" ;; \
1840 *1.[0-9].[0-9]*) OPENSSLOPTION="-DOPENSSL_100" ;; \
1841 *3.[0-9].[0-9]*) OPENSSLOPTION="-DOPENSSL_300" ;; \
1842 *) OPENSSLOPTION="" ;; \
1843 esac; \
1844 HAVE_DES=''; \
1845 DES_LIB=''; \
1846 if ls /usr/lib/libdes* > /dev/null 2> /dev/null || \
1847 ls $(SSLLIB)/libdes* > /dev/null 2> /dev/null; then \
1848 DES_LIB='-ldes'; \
1849 HAVE_DES='-DCK_DES -DLIBDES'; \
1850 echo "HAVE DES"; \
1851 else echo "NO DES"; \
1852 fi; \
1853 $(MAKE) freebsd KTARGET=$${KTARGET:-$(@)} "CC = $(CC)" "CC2 = $(CC2)" \
1854 KFLAGS="-DCK_AUTHENTICATION -DCK_SSL $(SSLINC) -DZLIB $$OPENSSLOPTION \
1855 $$HAVE_DES $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
1856 "LIBS= -lncurses -lcrypt -lssl -lcrypto -lutil -lm \
1857 $(SSLLIB) $$DES_LIB $(LIBS)"; \
1858 if [ ! -f ./wermit ] || [ ./ckcmai.o -nt ./wermit ] ; then \
1859 echo ""; \
1860 echo "If build failed try:"; \
1861 echo ""; \
1862 echo " make clean ; make $${KTARGET:-$(@)} KFLAGS=-UCK_DES"; \
1863 echo ""; \
1864 fi
1865
1866 #NetBSD 1.4.1 or later with vanity banner automated with uname
1867 #and automatic inclusion of large file support if it is available.
1868 #This target tested successfully on NetBSD 1.4.1, 1.5.2, and 2.0.3 (Jan 2006).
1869 #Fails on NetBSD 2.0 on Sun/3 mc68030 with gcc 3.3.3 unless optimization is
1870 #disabled on ckcfn2.c ("KFLAGS=-O0") (Letter O Digit Zero).
1871 #(This could be automated by testing `uname -m` for "sun3".)
1872 #OK: 2011/06/15 on NetBSD 1.5.2 and 5.1.
1873 #NetBSD 4.1: have to include <time.h>.
1874 #OK: 2011/08/21 on 5.1.
1875 #OK: (many more up through NetBSD 9.2)
1876 #OK: NetBSD 8.x
1877 #OK: 2020/08/24 NetBSD 9.0
1878 #OK: 2022/10/02 NetBSD 9.3
1879 # `uname -r | grep "[6789].[0-9]" > /dev/null && echo '-DTIMEH'`
1880 # Note: netbsd15 and 15 are for 1.5 and 1.6 (not 15 and 16).
1881 netbsd netbsd2 netbsd15 netbsd16 old-netbsd:
1882 @echo Making C-Kermit $(CKVER) for NetBSD `uname -r` with curses...
1883 $(MAKE) CC=$(CC) CC2=$(CC2) xermit KTARGET=$${KTARGET:-$(@)} \
1884 "CFLAGS=`grep fseeko /usr/include/stdio.h > /dev/null && \
1885 echo '-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'` \
1886 -DTIMEH -DBSD44 -DCK_CURSES -DTCPSOCKET -DUSE_STRERROR \
1887 -funsigned-char -DHERALD=\"\\\" `uname -s -r`\\\"\" \
1888 -DCK_DTRCD -DCK_DTRCTS -DTPUTSARGTYPE=int -DFNFLOAT $(KFLAGS) -O" \
1889 "LIBS= -lcurses -lcrypt -lm -lutil $(LIBS)" ; $(shell ./ckubuildlog)
1890
1891 buildlog:
1892 @(shell ./ckubuildlog -v)
1893
1894 netbsd-clang netbsdclang:
1895 # Dummy comment \
1896 @echo 'Making C-Kermit $(CKVER) for Linux with Clang compiler'
1897 $(MAKE) CC=clang CC2=clang KTARGET=$${KTARGET:-$(@)} \
1898 "LNKFLAGS = $(LNKFLAGS)" \
1899 netbsd
1900
1901 # NetBSD with pedantic warnings (cc is gcc).
1902 netbsd-pedantic:
1903 @echo Making C-Kermit $(CKVER) for NetBSD `uname -r` gcc pedantic...
1904 $(MAKE) linux KTARGET=$${KTARGET:-$(@)} \
1905 KFLAGS="-Wpedantic $(KFLAGS)" \
1906 "LNKFLAGS = $(LNKFLAGS)" \
1907 netbsd
1908
1909 # NetBSD with no TCP/IP or any other kind of networking
1910 # but with the external SSH client
1911 netbsd-nonet:
1912 @echo Making C-Kermit $(CKVER) for NetBSD `uname -r` with no TCP/IP...
1913 $(MAKE) KTARGET=$${KTARGET:-$(@)} \
1914 KFLAGS="-DNONET -DSSHCMD -DANYSSH $(KFLAGS)" \
1915 "LNKFLAGS = $(LNKFLAGS)" \
1916 netbsd
1917
1918 # NetBSD with no TCP/IP but with the external SSH client
1919 netbsd-notcp:
1920 @echo Making C-Kermit $(CKVER) for NetBSD `uname -r` with no TCP/IP...
1921 $(MAKE) KTARGET=$${KTARGET:-$(@)} \
1922 KFLAGS="-DNOTCPIP -DSSHCMD -DANYSSH $(KFLAGS)" \
1923 "LNKFLAGS = $(LNKFLAGS)" \
1924 netbsd
1925
1926 # NetBSD with "legacy" and deprecated features removed:
1927 # FTP, Telnet, Rlogin, Wtmp logging, and arrow keys,
1928 # which depend on a deprecated API that has no undeprecated replacement.
1929 netbsd-nodeprecated: \
1930 # Dummy comment \
1931 @echo 'Making C-Kermit $(CKVER) for Linux without deprecated features'
1932 $(MAKE) KTARGET=$${KTARGET:-$(@)} \
1933 KFLAGS="-DNODEPRECATED $(KFLAGS)" \
1934 "LNKFLAGS = $(LNKFLAGS)" \
1935 netbsd
1936
1937 #NetBSD 1.4.1 or later with OpenSSL
1938 #OK: 2011/06/15 on NetBSD 5.1 (but not 1.5.2 with OpenSSL 0.9.5a)
1939 #OK: 2011/08/21 on 5.1.
1940 #OK (but with warnings) 2022/11/03.
1941 #Use "make netbsd+ssl-des" (minus DES) to get rid of DES warnings.
1942 netbsd+ssl netbsd+openssl:
1943 @echo 'Making C-Kermit $(CKVER) for NetBSD+OpenSSL SSLLIB=$(SSLLIB)'
1944 @echo 'If you get DES-related warnings try make netbsd+ssl-des'
1945 @case `openssl version` in \
1946 *0.9.7*) OPENSSLOPTION="-DOPENSSL_097" ;; \
1947 *0.9.8*) OPENSSLOPTION="-DOPENSSL_098" ;; \
1948 *1.[0-9].[0-9]*) OPENSSLOPTION="-DOPENSSL_100" ;; \
1949 *3.[0-9].[0-9]*) OPENSSLOPTION="-DOPENSSL_300" ;; \
1950 *) OPENSSLOPTION="" ;; \
1951 esac; \
1952 HAVE_DES=''; \
1953 DES_LIB=''; \
1954 if ls /usr/lib/libdes* > /dev/null 2> /dev/null || \
1955 ls $(SSLLIB)/libdes* > /dev/null 2> /dev/null; then \
1956 DES_LIB='-ldes'; \
1957 HAVE_DES='-DCK_DES -DLIBDES'; \
1958 echo "HAVE DES"; \
1959 else echo "NO DES"; \
1960 fi; \
1961 $(MAKE) netbsd KTARGET=$${KTARGET:-$(@)} "CC = $(CC)" "CC2 = $(CC2)" \
1962 "KFLAGS= -DCK_AUTHENTICATION -DCK_ENCRYPTION -DCK_CAST $$HAVE_DES \
1963 -DCK_SSL -DCK_PAM -DZLIB -DNO_DCL_INET_ATON $$OPENSSLOPTION \
1964 -I/usr/include/des $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
1965 "LIBS= -L/usr/pkg/lib -R/usr/pkg/lib -lssl $$DES_LIB -lcurses \
1966 -lcrypto -lcrypt -lz -lm -lpam -lutil $(LIBS)"
1967
1968 # ONLY ON PANIX5, which, as of 16 November 2022, has OpenSSL3 in a nonstandard
1969 # place because the production version, 1.1.1g is installed in the normal
1970 # place, so have to "export LD_LIBRARY_PATH=/usr/local/openssl3/lib"; adding
1971 # these to the this target doesn't work:
1972 # "LD_LIBRARY_PATH=/usr/local/openssl3/lib \
1973 # "LD_RUN_PATH=/usr/local/openssl3/lib \
1974 # But all this is only because we're doing an end-run around the production
1975 # SSL libs. If SSL3 is installed as the production version, the regular
1976 # netbsd+ssl target should work.
1977 #
1978 netbsd+ssl3:
1979 @echo 'Making C-Kermit $(CKVER) for NetBSD+OpenSSL SSLLIB=$(SSLLIB)'
1980 @case `openssl version` in \
1981 *0.9.7*) OPENSSLOPTION="-DOPENSSL_097" ;; \
1982 *0.9.8*) OPENSSLOPTION="-DOPENSSL_098" ;; \
1983 *1.[0-9].[0-9]*) OPENSSLOPTION="-DOPENSSL_100" ;; \
1984 *3.[0-9].[0-9]*) OPENSSLOPTION="-DOPENSSL_300" ;; \
1985 *) OPENSSLOPTION="" ;; \
1986 esac; \
1987 HAVE_DES=''; \
1988 $(MAKE) netbsd KTARGET=$${KTARGET:-$(@)} "CC = $(CC)" "CC2 = $(CC2)" \
1989 "KFLAGS=-DCK_AUTHENTICATION -DCK_ENCRYPTION -DCK_CAST $$HAVE_DES \
1990 -DCK_SSL -DCK_PAM -DZLIB -DNO_DCL_INET_ATON $$OPENSSLOPTION \
1991 -I/usr/local/openssl3/include $(KFLAGS)" \
1992 "LNKFLAGS = -L/usr/local/openssl3/lib $(LNKFLAGS)" \
1993 "LIBS= -lssl -lcurses -R/usr/pkg/lib -lcrypto -lcrypt -lz -lm -lpam \
1994 -lutil -W $(LIBS)"
1995
1996 netbsd+ssl-des:
1997 @echo 'Making C-Kermit $(CKVER) for NetBSD+OpenSSL SSLLIB=$(SSLLIB)'
1998 @case `openssl version` in \
1999 *0.9.7*) OPENSSLOPTION="-DOPENSSL_097" ;; \
2000 *0.9.8*) OPENSSLOPTION="-DOPENSSL_098" ;; \
2001 *1.[0-9].[0-9]*) OPENSSLOPTION="-DOPENSSL_100" ;; \
2002 *3.[0-9].[0-9]*) OPENSSLOPTION="-DOPENSSL_300" ;; \
2003 *) OPENSSLOPTION="" ;; \
2004 esac; \
2005 HAVE_DES=''; \
2006 DES_LIB=''; \
2007 $(MAKE) netbsd KTARGET=$${KTARGET:-$(@)} "CC = $(CC)" "CC2 = $(CC2)" \
2008 "KFLAGS= -DCK_AUTHENTICATION -DCK_ENCRYPTION -DCK_CAST $$HAVE_DES \
2009 -DCK_SSL -DCK_PAM -DZLIB -DNO_DCL_INET_ATON $$OPENSSLOPTION \
2010 $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
2011 "LIBS= -L/usr/pkg/lib -R/usr/pkg/lib -lssl $$DES_LIB -lcurses \
2012 -lcrypto -lcrypt -lz -lm -lpam -lutil $(LIBS)"
2013
2014 #NetBSD with MIT Kerberos 5:
2015 # OK 2011/06/15 (once K5INC and K5LIB were set right).
2016 # NOT OK for Heimdal - Heimdal Kerberos support in C-Kermit needs work.
2017 # OK: 2011/08/21 on 5.1.
2018 netbsd+krb5:
2019 @echo 'Making C-Kermit $(CKVER) for NetBSD with Kerberos 5...'
2020 @case `openssl version` in \
2021 *0.9.7*) OPENSSLOPTION="-DOPENSSL_097" ;; \
2022 *0.9.8*) OPENSSLOPTION="-DOPENSSL_098" ;; \
2023 *1.[0-9].[0-9]*) OPENSSLOPTION="-DOPENSSL_100" ;; \
2024 *3.[0-9].[0-9]*) OPENSSLOPTION="-DOPENSSL_300" ;; \
2025 *) OPENSSLOPTION="" ;; \
2026 esac; \
2027 HAVE_DES=''; \
2028 DES_LIB=''; \
2029 if ls /usr/lib/libdes* > /dev/null 2> /dev/null || \
2030 ls $(SSLLIB)/libdes* > /dev/null 2> /dev/null; then \
2031 DES_LIB='-ldes'; \
2032 HAVE_DES='-DCK_DES -DLIBDES'; \
2033 echo "HAVE DES"; \
2034 else echo "NO DES"; \
2035 fi; \
2036 $(MAKE) netbsd KTARGET=$${KTARGET:-$(@)} "CC = $(CC)" "CC2 = $(CC2)" \
2037 "KFLAGS= -DCK_AUTHENTICATION -DCK_ENCRYPTION -DCK_KERBEROS -DKRB5 \
2038 -DCK_CAST $$HAVE_DES -DNOFTP_GSSAPI $(K5INC) $(K5INC)/krb5 \
2039 $(KFLAGS)" \
2040 "LIBS= $(K5LIB) -L/usr/pkg/lib -R/usr/pkg/lib -lcurses $$DES_LIB \
2041 -lcrypto -lgssapi -lkrb5 -lm -lutil $(LIBS)"
2042
2043 # This target added 24 Nov 2022, based on linux+krb5-new.
2044 # This is for Heimdal Kerberos, not MIT.
2045 # It doesn't work. - fdc Thu Nov 24 19:15:47 2022
2046 netbsd+krb5-new:
2047 @echo 'Making C-Kermit $(CKVER) for NetBSD with Kerberos 5...'
2048 @case `openssl version` in \
2049 *0.9.7*) OPENSSLOPTION="-DOPENSSL_097" ;; \
2050 *0.9.8*) OPENSSLOPTION="-DOPENSSL_098" ;; \
2051 *1.[0-9].[0-9]*) OPENSSLOPTION="-DOPENSSL_100" ;; \
2052 *3.[0-9].[0-9]*) OPENSSLOPTION="-DOPENSSL_300" ;; \
2053 *) OPENSSLOPTION="" ;; \
2054 esac; \
2055 K5LIB=''; \
2056 if ld -lkrb5 > /dev/null 2> /dev/null; then \
2057 K5LIB='-lkrb5'; else \
2058 echo "Failed - Can't find Kerberos 5 library" ; exit 2; \
2059 fi; \
2060 KRB5_H=''; \
2061 KRB5_KRB5_H=''; \
2062 if test -f /usr/include/krb5/krb.h; then \
2063 KRB5_H=-DKRB5_H; \
2064 fi; \
2065 CRYPT_H=''; \
2066 if test -f /usr/include/crypt.h; then \
2067 CRYPT_H='-DCRYPT_H'; \
2068 fi; \
2069 LIBCRYPT=''; \
2070 if ld -lcrypt > /dev/null 2> /dev/null; then \
2071 LIBCRYPT='-lcrypt'; \
2072 fi; \
2073 LIBCRYPTO=''; \
2074 if ld -lcrypto > /dev/null 2> /dev/null; then \
2075 LIBCRYPTO='-lcrypto'; \
2076 fi; \
2077 LIBK5CRYPTO=''; \
2078 if ld -lk5crypto > /dev/null 2> /dev/null; then \
2079 LIBK5CRYPTO='-lk5crypto'; \
2080 fi; \
2081 HAVE_DES=''; \
2082 if ld -ldes > /dev/null 2> /dev/null; then \
2083 LIBDES='-ldes'; \
2084 HAVE_DES='-DCK_DES -DLIBDES'; \
2085 fi; \
2086 XX_COM_ERR=H''; \
2087 K5_COM_ERR_H=''; \
2088 ET_COM_ERR_H=''; \
2089 COM_ERR_LIB=''; \
2090 if ld -lcom_err > /dev/null 2> /dev/null; then \
2091 if test -f /usr/include/krb5/com_err.h; then \
2092 COM_ERR_LIB='-lcom_err'; \
2093 COM_ERR_H='-DK5_COM_ERR_H'; \
2094 else if test -f /usr/include/et/com_err.h; then \
2095 COM_ERR_LIB='-lcom_err'; \
2096 COM_ERR_H='-DET_COM_ERR_H'; \
2097 else if test -f /usr/include/com_err.h; then \
2098 COM_ERR_LIB='-lcom_err'; \
2099 COM_ERR_H='-DXX_COM_ERR_H'; \
2100 fi; \
2101 fi; \
2102 fi; \
2103 fi; \
2104 GSSAPILIB=''; \
2105 HAVE_GSSAPI=''; \
2106 if name=`locate libgssapi | grep ^/usr/lib | head -1`; then \
2107 echo name=$$name; \
2108 path=$${name%/*}; \
2109 echo PATH=$$path; \
2110 GSSAPILIB=$$(basename $$name); \
2111 echo GSSAPILIB=$$GSSAPILIB ; \
2112 HAVE_GSSAPI='-DHAVE_GSSAPI'; \
2113 fi ; \
2114 if [ -z "$$LD_LIBRARY_PATH" ] ; then \
2115 export LD_LIBRARY_PATH=$$path ; else \
2116 export LD_LIBRARY_PATH=$$LD_LIBRARY_PATH:$$path; \
2117 HAVE_GSSAPI='-DHAVE_GSSAPI'; \
2118 fi; \
2119 if ls $${path}/libgssapi_krb5.* >/dev/null 2>/dev/null; then \
2120 echo HAVE libgssapi_krb5 ; \
2121 GSSAPILIB=-lgssapi_krb5 ; else \
2122 if ls $${path}/libgssapi.* >/dev/null 2>/dev/null; then \
2123 GSSAPILIB=-lgssapi ; \
2124 fi; \
2125 fi; \
2126 echo GSSAPILIB=$GSSAPILIB; \
2127 echo LD_LIBRARY_PATH=$$LD_LIBRARY_PATH; \
2128 if ld -lggssapi_krb5 > /dev/null 2> /dev/null; then \
2129 GSSAPILIB='-lgssapi_krb5'; \
2130 HAVE_GSSAPI='-DHAVE_GSSAPI'; \
2131 echo GSSAPILIB-1=$$GSSAPILIB; \
2132 else if ld -lggssapi > /dev/null 2> /dev/null; then \
2133 GSSAPILIB='-lgssapi'; \
2134 HAVE_GSSAPI='-DHAVE_GSSAPI'; \
2135 echo GSSAPILIB-2=$$GSSAPILIB; \
2136 fi; \
2137 fi; \
2138 echo GSSAPILIB=$$GSSAPILIB; \
2139 $(MAKE) netbsd KTARGET=$${KTARGET:-$(@)} "CC = $(CC)" "CC2 = $(CC2)" \
2140 "KFLAGS= -DCK_AUTHENTICATION -DCK_ENCRYPTION -DCK_KERBEROS -DKRB5 \
2141 -DCK_CAST $$HAVE_DES $$CRYPT_H $$COM_ERR_H $$KRB5_H \
2142 -I/usr/include -I/usr/include/et /$(KFLAGS)" \
2143 "LNKFLAGS = $(LNKFLAGS)" \
2144 "LIBS= $$LIBCRYPT $$LIBCRYPTO $$LIBK5CRYPTO $$LIBDES $$COM_ERR_LIB \
2145 $$K5LIB $$GSSAPILIB $(K5LIB) -L/usr/pkg/lib -R/usr/pkg/lib \
2146 -lcurses $$DES_LIB -lm -lutil $(LIBS)"
2147
2148 # NetBSD - With Kerberos 5 and SSL and Zlib.
2149 # OK: 2011/08/21 on 5.1 with MIT Kerberos.
2150 netbsd+krb5+ssl netbsd+krb5+openssl+zlib:
2151 @echo 'Making C-Kermit $(CKVER) for NetBSD+OpenSSL+Kerberos5...'
2152 @case `openssl version` in \
2153 *0.9.7*) OPENSSLOPTION="-DOPENSSL_097" ;; \
2154 *0.9.8*) OPENSSLOPTION="-DOPENSSL_098" ;; \
2155 *1.[0-9].[0-9]*) OPENSSLOPTION="-DOPENSSL_100" ;; \
2156 *3.[0-9].[0-9]*) OPENSSLOPTION="-DOPENSSL_300" ;; \
2157 *) OPENSSLOPTION="" ;; \
2158 esac; \
2159 HAVE_DES=''; \
2160 DES_LIB=''; \
2161 if ls /usr/lib/libdes* > /dev/null 2> /dev/null || \
2162 ls $(SSLLIB)/libdes* > /dev/null 2> /dev/null; then \
2163 DES_LIB='-ldes'; \
2164 HAVE_DES='-DCK_DES -DLIBDES'; \
2165 echo "HAVE DES"; \
2166 else echo "NO DES"; \
2167 fi; \
2168 $(MAKE) netbsd KTARGET=$${KTARGET:-$(@)} "CC = $(CC)" "CC2 = $(CC2)" \
2169 "KFLAGS= -DCK_AUTHENTICATION -DCK_ENCRYPTION -DCK_CAST $$HAVE_DES \
2170 -DCK_KERBEROS -DKRB5 -DNOFTP_GSSAPI $(K5INC) $(K5INC)/krb5 \
2171 -DCK_SSL -DCK_PAM -DZLIB -DNO_DCL_INET_ATON $$OPENSSLOPTION \
2172 $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
2173 "LIBS= $(K5LIB) -L/usr/pkg/lib -R/usr/pkg/lib -lssl $$DES_LIB \
2174 -lcrypto -lcrypt -lgssapi -lkrb5 -lz -lm -lpam -lutil -lcurses $(LIBS)"
2175
2176 #Special Security Enhanced NetBSD target with SRP, SSL, and zlib support.
2177 #To build this, you need to BUILD the pkgsrc srp_client package. After
2178 #you build it, you must go into work/srp-x.y.z/libkrypto and "bmake install"
2179 #then go to work/srp-x.y.z/libsrp and "bmake install". As of 2005Q3, the
2180 #pkgsrc install only installed the statically linked client applications. You
2181 #need to manually install the libraries to build your own applications.
2182 #NOT TESTED RECENTLY - probably needs work.
2183 netbsd+ssl+srp+zlib:
2184 @echo Making C-Kermit $(CKVER) for NetBSD with curses...
2185 $(MAKE) CC=$(CC) CC2=$(CC2) xermit KTARGET=$${KTARGET:-$(@)} \
2186 "CFLAGS= -DBSD44 -DCK_CURSES -DTCPSOCKET -DUSE_STRERROR -DNETBSD15 \
2187 -DCK_DTRCD -DCK_DTRCTS -DTPUTSARGTYPE=int \
2188 -I/usr/include/openssl -I/usr/pkg/include \
2189 -DCK_AUTHENTICATION -DCK_SRP -DPRE_SRP_1_4_5 -DCK_ENCRYPTION \
2190 -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL -DZLIB -DFNFLOAT $(KFLAGS) -O" \
2191 "LIBS= -L/usr/pkg/lib -R/usr/pkg/lib -lcurses -lsrp -lgmp -ldes \
2192 -lssl -lkrypto -lcrypto -lcrypt -lz -lm -lutil $(LIBS)"
2193
2194 #NetBSD with curses left out (e.g. for use as IKSD).
2195 netbsdnc:
2196 @echo Making C-Kermit $(CKVER) for NetBSD with no curses...
2197 $(MAKE) CC=$(CC) CC2=$(CC2) netbsd KTARGET=$${KTARGET:-$(@)} \
2198 "KFLAGS=-DNOCURSES"
2199
2200 #NetBSD with ncurses requested explicitly rather than curses-which-is-ncurses
2201 netbsdn:
2202 @echo Making C-Kermit $(CKVER) for NetBSD with curses...
2203 $(MAKE) CC=$(CC) CC2=$(CC2) xermit KTARGET=$${KTARGET:-$(@)} \
2204 "CFLAGS=`grep fseeko /usr/include/stdio.h > /dev/null && \
2205 echo '-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'` \
2206 -DBSD44 -DCK_CURSES -DTCPSOCKET -DUSE_STRERROR \
2207 -DHERALD=\"\\\" NetBSD `uname -r`\\\"\" \
2208 -DCK_DTRCD -DCK_DTRCTS -DTPUTSARGTYPE=int -DFNFLOAT $(KFLAGS) -O" \
2209 "LIBS= -L/usr/pkg/lib -lncurses -lcrypt -lm -lutil $(LIBS)"
2210
2211 #OpenBSD before 2.3.
2212 #Uses ncurses as its curses so use -ltermlib, not -ltermcap
2213 #But it doesn't use uu_lock() which was introduced in OpenBSD 2.3.
2214 #For that use the next entry.
2215 #Add -DMAINTYPE=int if you get complaints about main: return type is not int.
2216 openbsdold:
2217 @echo Making C-Kermit $(CKVER) for OpenBSD...
2218 $(MAKE) CC=$(CC) CC2=$(CC2) xermit KTARGET=$${KTARGET:-$(@)} \
2219 "CFLAGS= -DBSD44 -DCK_CURSES -DCK_NEWTERM -DTCPSOCKET -DOPENBSD \
2220 -DFNFLOAT -DNDSYSERRLIST $(KFLAGS) -O" "LIBS= -lcurses -ltermlib -lm"
2221
2222 #OpenBSD 2.3 or later
2223 #Add -DMAINTYPE=int if you get complaints about main: return type is not int.
2224 #For C-Kermit 8.0 (Christian Weisgerber):
2225 # -ltermlib removed (presumably because -lcurses==ncurses already includes it)
2226 # -DUSE_UU_LOCK and -lutil added for uu_lock()
2227 # -DNDSYSERRLIST changed to -DUSE_STRERROR
2228 #If this gives you trouble use the previous entry.
2229 #29 April 2023 for C-Kermit 10.0: New clauses to account the presence
2230 # or absence of term.h (curses) sys/timeb.h (dates and times).
2231 openbsd:
2232 @echo Making C-Kermit $(CKVER) for OpenBSD 2.3 or later...
2233 NOTIMEBH='' ;
2234 if test -f /usr/include/sys/timeb.h ; \
2235 then if `grep deprecated /usr/include/sys/timeb.h` ; \
2236 then NOSYSTIMEBH='-DNOSYSTIMEBH' ; fi ; \
2237 else NOSYSTIMEBH='-DNOSYSTIMEBH' ; fi; \
2238 if test -f /usr/include/sys/term.h ; \
2239 then HAVETERMH='-DHAVETERMH' ; \
2240 else HAVETERMH='' ; fi; \
2241 if test -f /usr/include/sys/wait.h ; \
2242 then HAVE_WAITH='-DHAVEWAITH' ; \
2243 else HAVE_WAITH='' ; fi; \
2244 if `grep -q "[[:space:]]utimes" /usr/include/sys/time.h` ; \
2245 then HAVE_UTIMES='-DHAVE_UTIMES' ; \
2246 else HAVE_UTIMES=''; fi; \
2247 $(MAKE) CC=$(CC) CC2=$(CC2) xermit KTARGET=$${KTARGET:-$(@)} \
2248 "CFLAGS= -DBSD44 -DCK_CURSES -DCK_NEWTERM -DTCPSOCKET -DOPENBSD \
2249 $$NOSYSTIMEBH -DHERALD=\"\\\" OpenBSD `uname -r`\\\"\" \
2250 -DUSE_UU_LOCK -DFNFLOAT -DUSE_STRERROR $$HAVETERMH $$HAVE_WAITH \
2251 $$HAVE_UTIMES \
2252 $(KFLAGS) -O" \
2253 "LIBS= -lcurses -lutil -lm"
2254
2255 #Better to chain to the openbsd target but...
2256 mirbsd:
2257 @echo Making C-Kermit $(CKVER) for OpenBSD 2.3 or later...
2258 $(MAKE) CC=$(CC) CC2=$(CC2) xermit KTARGET=$${KTARGET:-$(@)} \
2259 "CFLAGS= -DBSD44 -DCK_CURSES -DCK_NEWTERM -DTCPSOCKET -DOPENBSD \
2260 -DHERALD=\"\\\" MirBSD `uname -r`\\\"\" \
2261 -DUSE_UU_LOCK -DFNFLOAT -DUSE_STRERROR $(KFLAGS) -O" \
2262 "LIBS= -lcurses -lutil -lm"
2263
2264 #New OpenBSD + OpenSSL target from Piotr Kolasinski, 18 September 2023...
2265 openbsd+ssl:
2266 @echo Making C-Kermit $(CKVER) for OpenBSD 3.0 or later...
2267 NOTIMEBH='' ;
2268 if test -f /usr/include/sys/timeb.h ; \
2269 then if `grep deprecated /usr/include/sys/timeb.h` ; \
2270 then NOSYSTIMEBH='-DNOSYSTIMEBH' ; fi ; \
2271 else NOSYSTIMEBH='-DNOSYSTIMEBH' ; fi; \
2272 if test -f /usr/include/sys/wait.h ; \
2273 then HAVE_WAITH='-DHAVEWAITH' ; \
2274 else HAVE_WAITH='' ; fi; \
2275 if `grep -q "[[:space:]]utimes" /usr/include/sys/time.h` ; \
2276 then HAVE_UTIMES='-DHAVE_UTIMES' ; \
2277 else HAVE_UTIMES=''; fi; \
2278 $(MAKE) CC=$(CC) CC2=$(CC2) xermit KTARGET=$${KTARGET:-$(@)} \
2279 "CFLAGS= -DBSD44 -DCK_CURSES -DCK_NEWTERM -DTCPSOCKET -DOPENBSD \
2280 $$NOSYSTIMEBH -DHERALD=\"\\\" OpenBSD `uname -r`\\\"\" \
2281 -DUSE_UU_LOCK -DFNFLOAT -DUSE_STRERROR -DCK_AUTHENTICATION \
2282 -DCK_SSL $$HAVE_WAITH $$HAVE_UTIMES $(KFLAGS) -O" \
2283 "LIBS= -lcurses -lutil -lm -lssl -lcrypto"
2284
2285 mirbsd+ssl:
2286 @echo Making C-Kermit $(CKVER) for OpenBSD 3.0 or later...
2287 $(MAKE) CC=$(CC) CC2=$(CC2) xermit KTARGET=$${KTARGET:-$(@)} \
2288 "CFLAGS= -DBSD44 -DCK_CURSES -DCK_NEWTERM -DTCPSOCKET -DOPENBSD \
2289 -DHERALD=\"\\\" MirBSD `uname -r`\\\"\" \
2290 -DUSE_UU_LOCK -DFNFLOAT -DUSE_STRERROR -DCK_AUTHENTICATION \
2291 -DCK_SSL -DNO_DCL_INET_ATON $(KFLAGS) -O" \
2292 "LIBS= -lcurses -lutil -lm -lssl -lcrypto"
2293
2294 # make 386bsd 0.0new, posix
2295 # for 386bsd 0.1.24, change /usr/include/termios.h to #define NCCS if
2296 # _POSIX_SOURCE is #defined. (source: lewine, posix prgmrs guide, o`reilly)
2297 #NOTE: Lock directory is /var/spool/lock. Formerly, it was /var/spool/uucp,
2298 #but reportedly <[email protected]> that was due to a typo in 'man tip'.
2299 386bsd:
2300 @echo 'Making C-Kermit $(CKVER) for jolix 386BSD 0.0new and 0.1.24...'
2301 $(MAKE) CC=$(CC) CC2=$(CC2) xermit KTARGET=$${KTARGET:-$(@)} \
2302 "CFLAGS= -DPOSIX -DSETREUID -DPIDSTRING -DUSLEEP \
2303 -D_386BSD -DCK_CURSES -DTCPSOCKET \
2304 -DLOCK_DIR=\\\"/var/spool/lock\\\" \
2305 $(KFLAGS) -O" "LNKFLAGS = -s" "LIBS = -lcurses -ltermcap"
2306
2307 # Mac OS X 10 early versions.
2308 # For 10.3.9 and later, use the macosx target below.
2309
2310 #Mac OS X 1.0 (Rhapsody, Darwin) -- TCP/IP but no curses.
2311 oldmacosx10:
2312 @echo Making C-Kermit $(CKVER) for `uname -s`...
2313 $(MAKE) CC=$(CC) CC2=$(CC2) xermit KTARGET=$${KTARGET:-$(@)} \
2314 "CFLAGS= -DMACOSX10 -DTCPSOCKET -DUSE_STRERROR -O $(KFLAGS)"
2315
2316 #Mac OS X 1.0 (Rhapsody, Darwin) -- TCP/IP and curses.
2317 #Note: curses must be obtained separately. See next entry for ncurses.
2318 #Add "LIBS = -lcurses -ltermcap" if necessary (but reportedly it is not).
2319 oldmacosx10c:
2320 @echo Making C-Kermit $(CKVER) for `uname -s` + curses...
2321 $(MAKE) CC=$(CC) CC2=$(CC2) xermit KTARGET=$${KTARGET:-$(@)} \
2322 "CFLAGS= -DMACOSX10 -DCK_CURSES -DTPUTSFNTYPE=void -DTPUTSISVOID \
2323 -DTCPSOCKET -DUSE_STRERROR -O $(KFLAGS)"
2324
2325 #Mac OS X 1.0 (Rhapsody, Darwin) -- TCP/IP and ncurses.
2326 #Note: ncurses must be obtained separately.
2327 #In the event of trouble with this one try the next one.
2328 oldmacosx10nc:
2329 @echo Making C-Kermit $(CKVER) for `uname -s` + ncurses...
2330 $(MAKE) CC=$(CC) CC2=$(CC2) xermit KTARGET=$${KTARGET:-$(@)} \
2331 "CFLAGS= -DMACOSX10 -DCK_NCURSES -DTCPSOCKET -DUSE_STRERROR -O \
2332 $(KFLAGS)" "LIBS= -lncurses $(LIBS)"
2333
2334 #Mac OS X 10.2 (Jaguar) ncurses.
2335 oldmacosx102nc:
2336 @echo Making C-Kermit $(CKVER) for `uname -s` + ncurses...
2337 $(MAKE) CC=$(CC) CC2=$(CC2) xermit KTARGET=$${KTARGET:-$(@)} \
2338 "CFLAGS= -DMACOSX10 -DCK_NCURSES -DTCPSOCKET -DUSE_STRERROR -O \
2339 $(KFLAGS) " "LIBS= -lncurses $(LIBS)"
2340
2341 #The problem here is that if curses.h also exists, it conflicts with
2342 #ncurses.h and and we have fatal errors. If this happens to you, then
2343 #try this target.
2344 oldmacosx10ncx:
2345 @echo Making C-Kermit $(CKVER) for `uname -s` + ncurses...
2346 @rm -f ./curses.h; touch ./curses.h
2347 $(MAKE) CC=$(CC) CC2=$(CC2) xermit KTARGET=$${KTARGET:-$(@)} \
2348 "CFLAGS= -DMACOSX10 -DCK_NCURSES -DTCPSOCKET -DUSE_STRERROR \
2349 -I. -O $(KFLAGS) " \
2350 "LIBS= -lncurses $(LIBS)"
2351 @rm -f ./curses.h
2352
2353 #Mac OS X 10.3 (Panther) - Assumes ncurses is installed.
2354 oldmacosx103:
2355 @echo Making C-Kermit $(CKVER) for `uname -s` + ncurses...
2356 $(MAKE) CC=$(CC) CC2=$(CC2) xermit KTARGET=$${KTARGET:-$(@)} \
2357 "CFLAGS= -DMACOSX10 -DMACOSX103 -DCK_NCURSES -DTCPSOCKET -DCKHTTP \
2358 -DUSE_STRERROR -DUSE_NAMESER_COMPAT -O \
2359 $(KFLAGS) " "LIBS= -lncurses -lresolv $(LIBS)"
2360
2361 #Mac OS X 10.3 (Panther) with Kerberos 5 and SSL, assumes ncurses is installed.
2362 oldmacosx103+secure:
2363 @echo Making Secure C-Kermit $(CKVER) for `uname -s` + ncurses...
2364 $(MAKE) CC=$(CC) CC2=$(CC2) xermit KTARGET=$${KTARGET:-$(@)} \
2365 "CFLAGS= -DMACOSX10 -DMACOSX103 -DCK_NCURSES -DTCPSOCKET \
2366 -DUSE_STRERROR -DUSE_NAMESER_COMPAT -O -DCK_PAM \
2367 -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 -DZLIB \
2368 -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL \
2369 $(KFLAGS) " "LIBS= -lssl -lcrypto -lkrb5 -lcom_err \
2370 -lk5crypto -lgssapi_krb5 -lpam -lncurses -lresolv $(LIBS)"
2371
2372 # THIS IS THE MAIN MAC OS X TARGET (the next one is for Kerberos/SSL builds).
2373 # Use this target for 10.3.9 (or maybe earlier) through 10.6 (maybe later)
2374 # on both Power and Intel architectures. This one uses utmp.h on 10.4 and
2375 # earlier and utmpx.h on 10.5 onwards.
2376 # Note: Mac OS X 10.5 and earlier are 32-bit; 10.6 and later 64-bit.
2377 # Note 2: As of C-Kermit 9.0 -DNOUUCP is included by default because
2378 # Mac OS X doesn't support UUCP. To undo this, use KFLAGS=-UNOUUCP.
2379 #OK: 2011/06/14 (for 10.4.11, 10.5.8, 10.6.7)
2380 macosx macosx10 macosx10.3.9 macosx10.4 macosx10.5 macosx10.6:
2381 @MACOSNAME=`/usr/bin/sw_vers -productName`; \
2382 MACOSV=`/usr/bin/sw_vers -productVersion`; \
2383 echo Making C-Kermit $(CKVER) for $$MACOSNAME $$MACOSV... ; \
2384 MACCPU=$$HOSTTYPE; \
2385 if test `uname -r | cut -d . -f 1` -gt 8; \
2386 then if test -f /usr/include/utmpx.h ; \
2387 then HAVE_UTMPX='-DHAVEUTMPX -D_UTMPX_COMPAT' ; \
2388 else HAVE_UTMPX='' ; fi ; fi; \
2389 $(MAKE) CC=$(CC) CC2=$(CC2) xermit KTARGET=$${KTARGET:-$(@)} \
2390 "CFLAGS= -DMACOSX10 -DMACOSX103 -DCK_NCURSES -DTCPSOCKET -DCKHTTP \
2391 -DUSE_STRERROR -DUSE_NAMESER_COMPAT -DNOCHECKOVERFLOW -DFNFLOAT \
2392 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 $$HAVE_UTMPX \
2393 -funsigned-char -DNODCLINITGROUPS -DMACOSHISPEED \
2394 -DNOUUCP -O -DHERALD=\"\\\" $${MACOSNAME} $${MACOSV}\\\"\" \
2395 -DCKCPU=\"\\\"$${MACCPU}\\\"\" \
2396 $(KFLAGS)" "LIBS= -lncurses -lresolv $(LIBS)"
2397
2398 # Mac OS X 10.3.9 or later with Kerberos 5 and OpenSSL...
2399 # NOTE: Apple has removed all support for DES in OpenSSL and Kerberos
2400 # in Mac OS X 10.6 and later. The DES flags are included or left out
2401 # automatically based on the Mac OS X version number.
2402 # See note about UUCP in previous target.
2403 #OK: 2009/11/16 (for 10.3.9, 10.4.11, 10.5.8, 10.6.1)
2404 #OK: 2011/06/14 (for 10.4.11, 10.5.8, 10.6.7)
2405 macosx+krb5+ssl macosx10.5+krb5+ssl macosx10.6+krb5+ssl \
2406 macosx+krb5+openssl macosx10.5+krb5+openssl macosx10.6+krb5+openssl:
2407 @MACOSNAME=`/usr/bin/sw_vers -productName`; \
2408 MACOSV=`/usr/bin/sw_vers -productVersion`; \
2409 echo Making C-Kermit $(CKVER) for $$MACOSNAME $$MACOSV... ; \
2410 MACCPU=$$HOSTTYPE; \
2411 if test `uname -r | cut -d . -f 1` -gt 8; \
2412 then if test -f /usr/include/utmpx.h ; \
2413 then HAVE_UTMPX='-DHAVEUTMPX -D_UTMPX_COMPAT' ; \
2414 else HAVE_UTMPX='' ; fi ; fi; \
2415 if test `uname -r | cut -d . -f 1` -eq 7; \
2416 then IS_MACOSX103='-DMACOSX103' ; \
2417 else IS_MACOSX103='' ; fi; \
2418 case $$MACOSV in \
2419 10.[012345].*) HAVE_DES='-DCK_DES -DLIBDES' ;; \
2420 *.*) HAVE_DES='' ;; \
2421 esac ; \
2422 if test -x /usr/bin/krb5-config ; \
2423 then HAVE_KRB5CONFIG=`/usr/bin/krb5-config --libs krb5 gssapi` ; \
2424 else HAVE_KRB5CONFIG='-lgssapi_krb5 -lkrb5 -lk5crypto \
2425 -lcom_err -lresolv' ; fi; \
2426 $(MAKE) CC=$(CC) CC2=$(CC2) xermit KTARGET=$${KTARGET:-$(@)} \
2427 "CFLAGS= -DMACOSX10 $$IS_MACOSX103 -DCK_NCURSES -DTCPSOCKET \
2428 -DUSE_STRERROR -DUSE_NAMESER_COMPAT -DNOCHECKOVERFLOW -DFNFLOAT \
2429 -DCKHTTP -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 $$HAVE_UTMPX \
2430 -DNODCLINITGROUPS -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 -DZLIB \
2431 -DCK_ENCRYPTION -DCK_CAST -DCK_SSL -DOPENSSL_098 $$HAVE_DES \
2432 -DNOUUCP -DHERALD=\"\\\" $${MACOSNAME} $${MACOSV}\\\"\" \
2433 -DCKCPU=\"\\\"$${MACCPU}\\\"\" \
2434 -funsigned-char -O $(KFLAGS)" \
2435 "LIBS= $$HAVE_KRB5CONFIG -lssl -lcrypto -lpam -lncurses $(LIBS)"
2436
2437 # Additional target "macos" by Tony Nicholson 4-Nov-2021.
2438 #
2439 # More recent macOS re-branded releases for Intel (x86_64) Sierra (10,12),
2440 # High Sierra (10,13), Mojave (10.14), Catalina (10.15), and Intel x86_64/ARM
2441 # Big Sur (11), Monterey (12)
2442 #
2443 # Apple's Clang C compiler reports many warnings that can safely be ignored -
2444 # so keep reporting the ones that may have not been detected by other
2445 # compilers by selectively disabling dangling-else, string-compare and
2446 # parentheses related warnings. -DNOWTMP added because it always provokes
2447 # a "deprecated" warning. Wtmp logging is only for IKSD, so if you're
2448 # not going to be using macOS C-Kermit as an IKSD server, no worries.
2449 # If you are, and want the server to make Wtmp log entries, do
2450 # 'make macos "KFLAGS=-UNOWTMP".
2451 #
2452 macos:
2453 @MACOSNAME=`/usr/bin/sw_vers -productName`; \
2454 MACOSV=`/usr/bin/sw_vers -productVersion`; \
2455 echo Making C-Kermit $(CKVER) for $$MACOSNAME $$MACOSV... ; \
2456 MACCPU=$$HOSTTYPE; \
2457 HAVE_UTMPX=''; \
2458 $(MAKE) CC=$(CC) CC2=$(CC2) xermit KTARGET=$${KTARGET:-$(@)} \
2459 "CFLAGS=-Wno-dangling-else -Wno-string-compare -Wno-parentheses \
2460 -Wno-pointer-sign -Wno-unused-value -Wdeprecated-declarations \
2461 -DMACOSX10 -DMACOSX103 -DCK_NCURSES -DTCPSOCKET -DCKHTTP \
2462 -DUSE_STRERROR -DUSE_NAMESER_COMPAT -DNOCHECKOVERFLOW -DFNFLOAT \
2463 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 $$HAVE_UTMPX \
2464 -funsigned-char -DNODCLINITGROUPS \
2465 -DNOUUCP -O -DHERALD=\"\\\" $${MACOSNAME} $${MACOSV}\\\"\" \
2466 -DCKCPU=\"\\\"$${MACCPU}\\\"\" \
2467 $(KFLAGS)" "LIBS= -lncurses -lresolv $(LIBS)"
2468
2469 # Experimental. 2022-11-30 SMS.
2470 macos+ssl macos+openssl:
2471 if test -n "$(KZLIBDIR)" ; then \
2472 ZLIBDIR="$(KZLIBDIR)" ; \
2473 else \
2474 ZLIBDIR='/usr/local/lib' ; \
2475 fi ; \
2476 case "$(KTARGET)" in \
2477 *-zlib*) ZLIBFLAG='' ; ZLIBOPT='' ;; \
2478 *) ZLIBFLAG='-DZLIB' ; ZLIBOPT="-L $$ZLIBDIR -lz" ;; \
2479 esac ; \
2480 case `openssl version` in \
2481 *0.9.7*) OPENSSLOPTION="-DOPENSSL_097" ;; \
2482 *0.9.8*) OPENSSLOPTION="-DOPENSSL_098" ;; \
2483 *1.[0-9].[0-9]*) OPENSSLOPTION="-DOPENSSL_100" ;; \
2484 *3.[0-9].[0-9]*) OPENSSLOPTION="-DOPENSSL_300" ;; \
2485 *) OPENSSLOPTION="" ;; \
2486 esac ; \
2487 SSLINC=$${KSSLINC:-$(SSLINC)}; \
2488 SSLLIB=$${KSSLLIB:-$(SSLLIB)}; \
2489 $(MAKE) CC=$(CC) CC2=$(CC2) macos KTARGET=$${KTARGET:-$(@)} \
2490 "KFLAGS=-DCK_AUTHENTICATION -DCK_SSL $(KCFLAGS) \
2491 $$OPENSSLOPTION $$ZLIBFLAG $$SSLINC" \
2492 "LIBS= $$SSLLIB -lssl -lcrypto $$ZLIBOPT $(KLIBS)"
2493
2494 macos+ssl-zlib macos+openssl-zlib:
2495 $(MAKE) macos+ssl KTARGET=$${KTARGET:-$(@)}
2496
2497 # Trial using the Homebrew install of krb5 and openssl
2498 # (newer versions of macOS have dropped the Kerberos5 include
2499 # files and moved to LibreSSL).
2500 # NB: not yet working **DON'T USE THIS TARGET**
2501 #
2502 macos+krb5+ssl macos+krb5+openssl:
2503 @MACOSNAME=`/usr/bin/sw_vers -productName`; \
2504 MACOSV=`/usr/bin/sw_vers -productVersion`; \
2505 echo Making C-Kermit $(CKVER) for $$MACOSNAME $$MACOSV... ; \
2506 MACCPU=$$HOSTTYPE; \
2507 HAVE_UTMPX=''; \
2508 IS_MACOSX103=''; \
2509 HAVE_DES=''; \
2510 if test -x ${HOMEBREW_PREFIX}/opt/krb5/bin/krb5-config ; \
2511 then HAVE_KRB5CONFIG=`${HOMEBREW_PREFIX}/opt/krb5/bin/krb5-config \
2512 --libs krb5 gssapi` ; \
2513 else HAVE_KRB5CONFIG='-lgssapi_krb5 -lkrb5 -lk5crypto \
2514 -lcom_err -lresolv' ; fi; \
2515 $(MAKE) CC=$(CC) CC2=$(CC2) xermit KTARGET=$${KTARGET:-$(@)} \
2516 "CFLAGS=-Wno-dangling-else -DMACOSX10 $$IS_MACOSX103 -DCK_NCURSES \
2517 -DTCPSOCKET -DUSE_STRERROR -DUSE_NAMESER_COMPAT -DNOCHECKOVERFLOW \
2518 -DFNFLOAT -DCKHTTP -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 \
2519 $$HAVE_UTMPX -DNODCLINITGROUPS -DCK_AUTHENTICATION -DCK_KERBEROS \
2520 -DKRB5 -DZLIB -DCK_ENCRYPTION -DCK_CAST -DCK_SSL -DOPENSSL_098 \
2521 $$HAVE_DES -DNOUUCP -DHERALD=\"\\\" $${MACOSNAME} $${MACOSV}\\\"\" \
2522 -DCKCPU=\"\\\"$${MACCPU}\\\"\" \
2523 $${K5INC} $${SSLINC} \
2524 -funsigned-char -O $(KFLAGS)" \
2525 "LIBS= $$HAVE_KRB5CONFIG $${SSLLIB} \
2526 -lssl -lcrypto -lpam -lncurses $(LIBS)"
2527
2528 # End of Mac OS X Section
2529
2530 #Acorn RISCiX, based on ...
2531 #Berkeley Unix 4.2 or 4.3 with lock directory /usr/spool/uucp/LCK/LCK..ttyxx,
2532 #but without acucntrl program
2533 riscix:
2534 @echo Making C-Kermit $(CKVER) for RISCiX, /usr/spool/uucp/LCK..ttyxx
2535 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
2536 "CFLAGS= -DBSD42 -DBSD4 -DRISCIX -DNOCSETS \
2537 -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DDIRENT -DCK_CURSES \
2538 -DMAXSP=9024 -DMAXRD=9024 -DSBSIZ=9050 -DRBSIZ=9050 \
2539 -DDFTTY=\\\"/dev/serial\\\" -DNOCSETS -DNOCYRIL \
2540 -DNOANSI -w -O2 -fomit-frame-pointer" \
2541 "LIBS= -lcurses -ltermcap " \
2542 "CC= /usr/ucb/cc" \
2543 "CC2= /usr/ucb/cc"
2544
2545 #Acorn RISCiX, as above, but using gcc
2546 riscix-gcc:
2547 @echo Making C-Kermit $(CKVER) for RISCiX, /usr/spool/uucp/LCK..ttyxx
2548 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
2549 "CFLAGS= -DBSD42 -DBSD4 -DRISCIX -DNOCSETS \
2550 -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DDIRENT -DCK_CURSES \
2551 -DMAXSP=9024 -DMAXRD=9024 -DSBSIZ=9050 -DRBSIZ=9050 \
2552 -DDFTTY=\\\"/dev/serial\\\" -DNOCSETS -DNOCYRIL \
2553 -DNOANSI -w -O2 -fomit-frame-pointer" \
2554 "LIBS= -lcurses -ltermcap " \
2555 "CC= gcc -mbsd" \
2556 "CC2= gcc -mbsd"
2557
2558 #Convergent CTIX 6.4.1
2559 ctix:
2560 @echo 'Making C-Kermit $(CKVER) for Convergent CTIX 6.4.1'
2561 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
2562 "CFLAGS= -DSVR3 -DDIRENT -DTCPSOCKET -DHDBUUCP -DCK_CURSES \
2563 -DNONAWS -DNOLEARN -DNOLONGLONG $(KFLAGS) -XO" \
2564 "LNKFLAGS=-s" "LIBS=-lsocket -lcurses -lc_s"
2565 mcs -d wermit
2566
2567 # The following makefile entry should work for any Harris Night Hawk system
2568 # (either 88k or 68k based) running release 6.1 or later of the CX/UX
2569 # operating system. This is a POSIX and ANSI-C compliant system which also
2570 # supports BSD networking. (Earlier CX/UX releases will probably work with
2571 # sys5r3, but this has not been verified).
2572 #
2573 cx_ux:
2574 @echo Making C-Kermit $(CKVER) for Harris Night Hawk CX/UX 6.1 or later
2575 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
2576 "CFLAGS=-DPOSIX -DTCPSOCKET -DHDBUUCP -DPID_T=pid_t -DWAIT_T=int \
2577 -Dd_ino=d_fileno -DUID_T=uid_t -DGID_T=gid_t -DNOLONGLONG \
2578 $(KFLAGS) -Xa -O3 -g" "LNKFLAGS=-O3"
2579
2580 #Intergraph Clipper, CLIX, job control, HDB UUCP.
2581 clix:
2582 @echo 'Making C-Kermit $(CKVER) for Intergraph CLIX...'
2583 $(MAKE) wermit "CC=acc" "CC2=acc" KTARGET=$${KTARGET:-$(@)} \
2584 "CFLAGS= -w -DSVR3 -DCLIX -DDIRENT -DHDBUUCP -DNOSYSLOG -DUSE_MEMCPY \
2585 -DNOGETUSERSHELL -DNOREALPATH -DNOLEARN $(KFLAGS) -O" \
2586 "LNKFLAGS=" "LIBS= -lbsd"
2587
2588 #As above + TCP/IP...
2589 clixnet:
2590 @echo 'Making networked C-Kermit $(CKVER) for Intergraph CLIX...'
2591 $(MAKE) wermit "CC=acc" "CC2=acc" KTARGET=$${KTARGET:-$(@)} \
2592 "CFLAGS= -w -DSVR3 -DCLIX -DDIRENT -DHDBUUCP -DNOSYSLOG -DUSE_MEMCPY \
2593 -DTCPSOCKET -DNOGETUSERSHELL -DNOLEARN -DNOREALPATH $(KFLAGS) -O" \
2594 "LNKFLAGS=" "LIBS= -lbsd"
2595
2596 #Mark Williams Coherent 286 or 386 on IBM PC family.
2597 #There is a 64K limit on program size, so this is a command-line only version.
2598 coherent:
2599 $(MAKE) "CFLAGS = -O -DCOHERENT -DNOANSI -DNOICP -DNOSETKEY -DNOLEARN \
2600 -DNOCSETS -DNOHELP -DNODIAL -DNOSCRIPT -DNODEBUG -DNOTLOG -DNOXMIT \
2601 -DNOMSEND -DNOFRILLS -DNOSYSIOCTLH -DSELECT_H $(KFLAGS) -VSUVAR" \
2602 -DNOFLOAT KTARGET=$${KTARGET:-$(@)} wermit
2603
2604 #Mark Williams Coherent 386 on IBM PC family.
2605 #This will make a "minimum interactive" version - no scripts,
2606 #no character sets, no help, no dial, no debug/transaction logging, no
2607 #transmit, msend, mail, type, etc.
2608 coherentmi:
2609 $(MAKE) "CFLAGS = -O -DCOHERENT -DNOANSI -DNOSETKEY -DNOLEARN \
2610 -DNOSHOW -DNOCSETS -DNOHELP -DNODIAL -DNOSCRIPT -DNODEBUG -DNOTLOG \
2611 -DNOXMIT -DNOMSEND -DNOFRILLS -DNOSYSIOCTLH -DNOSERVER -DNOUUCP \
2612 -DNOSPL -DNOPUSH -DNOMDMHUP -DNOJC -DNOFDZERO -DNOESCSEQ -DNOFLOAT \
2613 -DNOCMDL $(KFLAGS) -VSUVAR -DSELECT_H" KTARGET=$${KTARGET:-$(@)} \
2614 wermit
2615
2616 #Mark Williams Coherent 386 on IBM PC/AT family.
2617 coherentmax:
2618 $(MAKE) "CFLAGS = -O -DCOHERENT -DNOANSI -DSELECT_H -DNOLEARN \
2619 -DNOFLOAT -DNOSYSIOCTLH $(KFLAGS) -VSUVAR" "LNKFLAGS = -O -s" \
2620 KTARGET=$${KTARGET:-$(@)} wermit
2621
2622 #Mark Williams Coherent 386 4.2. Includes curses but not TCP/IP.
2623 #Requires updates to the 4.2.10 compiler; the regular compiler fails to
2624 #to handle "complex expressions". NOFLOAT is so it can work on old PCs
2625 #without floating-point hardware.
2626 coherent42:
2627 $(MAKE) "CFLAGS = -T500000 -DNOFLOAT -DCOHERENT -DNOANSI -DSELECT \
2628 -DNOSYSLOG -DDIRENT -DCK_CURSES -DCK_NEWTERM -DCK_WREFRESH -VSUVAR \
2629 -DDCLGETCWD -DNOSYSIOCTLH -DNOINITGROUPS -DNOSYMLINK -DSELECT_H \
2630 -DDCLGETCWD -O $(KFLAGS)" \
2631 "LNKFLAGS = -O -s" KTARGET=$${KTARGET:-$(@)} \
2632 "LIBS = -lsocket -lcurses" wermit
2633
2634 #DEC Ultrix 2.x
2635 # Add -O, -DDYNAMIC, -s, etc, if they work.
2636 ultrix2x:
2637 @echo Making C-Kermit $(CKVER) for Ultrix 2.x ...
2638 $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
2639 "CFLAGS= -DBSD4 -DTCPSOCKET -DDU2 -DNOGETUSERSHELL $(KFLAGS)"
2640
2641 du2:
2642 $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET-$(@)} ultrix2x
2643
2644 #DEC Ultrix 3.0 and 3.1
2645 ultrix30:
2646 @echo Making C-Kermit $(CKVER) for Ultrix 3.0...
2647 $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
2648 "CFLAGS= -DBSD4 -DTCPSOCKET -DDIRENT -DSIG_V -DNOGETUSERSHELL \
2649 -DULTRIX3 -DCK_CURSES $(KFLAGS) -O" "LIBS= -lcurses -ltermcap"
2650
2651 du3:
2652 $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET-$(@)} ultrix30
2653
2654 ultrix3x:
2655 $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET-$(@)} ultrix30
2656
2657 #DEC Ultrix 4.0 or 4.1 on DECstation, VAXstation, VAX, etc.
2658 ultrix40:
2659 @echo Making C-Kermit $(CKVER) for Ultrix 4.0 or 4.1...
2660 $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
2661 "CFLAGS= -DBSD4 -DTCPSOCKET -DSIG_V -DDU4 -DNOGETUSERSHELL \
2662 $(KFLAGS) -Olimit 1450" "LNKFLAGS = -s"
2663
2664 #DEC Ultrix 4.2-4.5 on DECstation, DECsystem, VAXstation, VAX, etc.
2665 #Like ultrix40, except now C compiler supports -O2 optimization.
2666 ultrix42:
2667 @echo Making C-Kermit $(CKVER) for Ultrix 4.2 or later...
2668 $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
2669 "CFLAGS= -DBSD4 -DTCPSOCKET -DSIG_V -DNOGETUSERSHELL $(KFLAGS) \
2670 -O2 -Olimit 1750" "LNKFLAGS = -s"
2671
2672 du42:
2673 $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET-$(@)} ultrix42
2674
2675 #DEC Ultrix 4.2-4.5 on DECstation, DECsystem, VAXstation, VAX, etc.
2676 #Like du42, but with curses support added and a couple features.
2677 ultrix42c:
2678 @echo Making C-Kermit $(CKVER) for Ultrix 4.2 or later...
2679 $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
2680 "CFLAGS= -DBSD4 -DTCPSOCKET -DSIG_V -DNOGETUSERSHELL \
2681 -DCK_CURSES -DNOIKSD $(KFLAGS)-G6 -O2 -Olimit 3000 " \
2682 "LNKFLAGS = -s" "LIBS= -lcurses -ltermcap"
2683
2684 ultrix43:
2685 $(MAKE) "MAKE=$(MAKE)" CC=$(CC) CC2=$(CC2) \
2686 "KFLAGS=-DULTRIX43 $(KFLAGS)" KTARGET=$${KTARGET-$(@)} ultrix42c
2687
2688 ultrix43notcp:
2689 $(MAKE) "MAKE=$(MAKE)" CC=$(CC) CC2=$(CC2) \
2690 "KFLAGS=-DULTRIX43 -DNONET $(KFLAGS)" \
2691 KTARGET=$${KTARGET-$(@)} ultrix42c
2692
2693 # NOTE: need -DNODEBUG on MIPS to avoid relocation errors at link time.
2694 # Actually now (8.0) that we have discovered the -G option maybe debugging
2695 # can be put back.
2696 ultrix44:
2697 $(MAKE) "MAKE=$(MAKE)" CC=$(CC) CC2=$(CC2) \
2698 "KFLAGS=-DULTRIX44 -G7 -DNODEBUG -DNETPTY -DNO_DEVTTY $(KFLAGS)" \
2699 KTARGET=$${KTARGET-$(@)} ultrix42c
2700
2701 ultrix45:
2702 $(MAKE) "MAKE=$(MAKE)" CC=$(CC) CC2=$(CC2) \
2703 "KFLAGS=-DULTRIX45 $(KFLAGS)-DNETPTY -DNO_DEVTTY $(KFLAGS)" \
2704 KTARGET=$${KTARGET-$(@)} ultrix42c
2705
2706 du42c:
2707 $(MAKE) "MAKE=$(MAKE)" CC=$(CC) CC2=$(CC2) \
2708 KTARGET=$${KTARGET-$(@)} ultrix42c
2709
2710 #DEC Ultrix 4.3A or later on DECsystem and DECstation 5000/50, /150 or /260
2711 #with MIPS R4x00 processor. The "-mips3" switch generates R4000-specific
2712 #code, which is faster and more compact, but *won't* run on earlier
2713 #DECsystems and DECstations.
2714 ultrix43-mips3:
2715 @echo Making C-Kermit $(CKVER) for Ultrix 4.3A or later, R4000 cpu...
2716 $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
2717 "CFLAGS= -DBSD4 -DTCPSOCKET -DSIG_V -DNOGETUSERSHELL \
2718 $(KFLAGS) -O2 -Olimit 1750 -mips3" "LNKFLAGS = -s -mips3"
2719
2720 du43-mips3:
2721 $(MAKE) "MAKE=$(MAKE)" CC=$(CC) CC2=$(CC2) ultrix43-mips3
2722
2723 #DEC Ultrix 4.3A or later on MIPS R4x000 based systems.
2724 #Like ultrix43-mips3 but with curses support added
2725 ultrix43c-mips3:
2726 @echo Making C-Kermit $(CKVER) for Ultrix 4.3A or later, R4000 cpu...
2727 $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
2728 "CFLAGS= -DBSD4 -DTCPSOCKET -DSIG_V -DNOGETUSERSHELL -DCK_CURSES \
2729 $(KFLAGS) -O2 -Olimit 3000 -mips3" "LNKFLAGS = -s -mips3" \
2730 "LIBS= -lcurses -ltermcap"
2731
2732 du43c-mips3:
2733 $(MAKE) "MAKE=$(MAKE)" CC=$(CC) CC2=$(CC2) \
2734 KTARGET=$${KTARGET-$(@)} ultrix43c-mips3
2735
2736 #DEC Ultrix 4.4 on DECstation 5000/50 or /150 with R4000 MIPS processor,
2737 #or 5000/260 with R4400. The "-mips3" switch generates R4000-specific code,
2738 #which is faster and more compact but *won't* run on earlier DECstations.
2739 ultrix44-mips3:
2740 @echo Making C-Kermit $(CKVER) for Ultrix 4.4, R4000 cpu ...
2741 $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
2742 "CFLAGS= -DBSD4 -DTCPSOCKET -DSIG_V -DNOGETUSERSHELL \
2743 $(KFLAGS) -O2 -Olimit 1450 -mips3" "LNKFLAGS = -s -mips3"
2744
2745 du44-mips3:
2746 $(MAKE) "MAKE=$(MAKE)" CC=$(CC) CC2=$(CC2) \
2747 KTARGET=$${KTARGET-$(@)} ultrix44c-mips3
2748
2749 #DEC Ultrix 4.2 on DECstation, VAXstation, VAX, etc, System V R4 environment
2750 ultrix42s5r4:
2751 @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4 on Ultrix...'
2752 $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
2753 "CFLAGS = -O2 -Olimit 1500 -DSVR4 -DDIRENT -DHDBUUCP -DNOGETUSERSHELL \
2754 -DTCPSOCKET $(KFLAGS)" "LNKFLAGS = -s"
2755
2756 #OSF/1
2757 osf osf1:
2758 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
2759 "CFLAGS= -DBSD4 -DOSF -D_BSD -DTCPSOCKET -DCK_ANSIC -DSIG_V \
2760 -DCK_CURSES -DCK_RTSCTS -DFNFLOAT $(KFLAGS)" \
2761 "LNKFLAGS = -s" "LIBS = $(LIBS) -lbsd -lcurses -ltermcap -lm"
2762
2763 #DEC OSF/1 V1.0-1.3 on DECstation, VAX, Alpha, or PC.
2764 dec-osf dec-osf1:
2765 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
2766 "CFLAGS= -DBSD4 -DOSF -DOSF13 -D_BSD -DTCPSOCKET -DCK_ANSIC -DSIG_V \
2767 -DNOREALPATH -DNOIKSD -DCK_CURSES -DCK_RTSCTS -DFNFLOAT -DNODEBUG \
2768 -DNOUNICODE $(KFLAGS)" \
2769 "LNKFLAGS = -non_shared" "LIBS = -lbsd -lcurses -ltermcap -lm"
2770
2771 # This one causes "relocation out-of-range" errors in the linker.
2772 old-dec-osf:
2773 @echo Making C-Kermit $(CKVER) for DEC OSF/1 V1.x...
2774 @echo If you are building for DEC OSF/1 2.0, please use dec-osf20.
2775 @echo Remove or adjust -O2 and/or -Olimit if they cause trouble.
2776 $(MAKE) CC=$(CC) CC2=$(CC2) osf KTARGET=$${KTARGET:-$(@)} \
2777 "KFLAGS= -O2 -Olimit 2400 $(KFLAGS)"
2778
2779 #DEC OSF/1 2.0 on Alpha and probably nowhere else.
2780 #The only difference from OSF/1 is that optimization is omitted.
2781 #The optimized version gets strange runtime errors, like the PAUSE command
2782 #not working. Add "-unsigned" to make all chars unsigned.
2783 dec-osf20:
2784 @echo Making C-Kermit $(CKVER) for DEC OSF/1 V2.0...
2785 @echo Optimization omitted because it causes runtime errors.
2786 @echo See comments in makefile.
2787 $(MAKE) CC=$(CC) CC2=$(CC2) osf KTARGET=$${KTARGET:-$(@)} \
2788 "KFLAGS= -DOSF20 $(KFLAGS)"
2789
2790 dec-osf30:
2791 @echo Making C-Kermit $(CKVER) for DEC OSF/1 V3.0...
2792 $(MAKE) CC=$(CC) CC2=$(CC2) osf KTARGET=$${KTARGET:-$(@)} \
2793 "KFLAGS= -DOSF30 -O2 -Olimit 2400 $(KFLAGS)"
2794
2795 #Digital UNIX 3.2
2796 # Must compile ckuus[6x].c separately without optimization otherwise
2797 # the optimizer dumps core - keep CFLAGS here in sync with those from osf.
2798 du32:
2799 @echo Making C-Kermit $(CKVER) for Digital UNIX 3.2...
2800 $(MAKE) CC=$(CC) CC2=$(CC2) ckuus6.$(EXT) \
2801 "CFLAGS= -DBSD4 -DOSF -D_BSD -DTCPSOCKET -DCK_ANSIC -DSIG_V \
2802 -DCK_CURSES -DCK_RTSCTS -DFNFLOAT -DOSF32 -DHDBUUCP $(KFLAGS)"
2803 $(MAKE) CC=$(CC) CC2=$(CC2) ckuusx.$(EXT) \
2804 "CFLAGS= -DBSD4 -DOSF -D_BSD -DTCPSOCKET -DCK_ANSIC -DSIG_V \
2805 -DCK_CURSES -DCK_RTSCTS -DFNFLOAT -DOSF32 -DHDBUUCP $(KFLAGS)"
2806 $(MAKE) CC=$(CC) CC2=$(CC2) osf \
2807 "KFLAGS= -DOSF32 -DHDBUUCP -O2 -Olimit 3200 $(KFLAGS)"
2808
2809 dec-osf32:
2810 $(MAKE) "MAKE=$(MAKE)" CC=$(CC) CC2=$(CC2) du32 \
2811 KTARGET=$${KTARGET:-$(@)}
2812
2813 #Digital UNIX 4.0 through 4.0D (use tru64 targets for 4.0E and above)...
2814 du40:
2815 @echo Making C-Kermit $(CKVER) for Digital UNIX 4.0...
2816 $(MAKE) CC=$(CC) CC2=$(CC2) osf KTARGET=$${KTARGET:-$(@)} \
2817 "KFLAGS= -DOSF40 -DHDBUUCP -DFNFLOAT \
2818 -unsigned -std1 -O3 -Olimit 2400 $(KFLAGS)" "LIBS=-lm"
2819
2820 du40gcc:
2821 @echo Making C-Kermit $(CKVER) for Digital UNIX 4.0 with gcc ...
2822 $(MAKE) osf CC=gcc CC2=gcc KTARGET=$${KTARGET:-$(@)} \
2823 "KFLAGS= -DOSF40 -DHDBUUCP $(KFLAGS)"
2824
2825 #Tru64 Unix 4.0E
2826 tru64-40e:
2827 @echo Making C-Kermit $(CKVER) for Tru64 UNIX 4.0E...
2828 $(MAKE) CC=$(CC) CC2=$(CC2) osf KTARGET=$${KTARGET:-$(@)} \
2829 "KFLAGS= -DOSF40 -DOSF40E -DTRU64 -DHDBUUCP -DFNFLOAT -DNOCOTFMC \
2830 -unsigned -std1 -O3 -Olimit 2400 $(KFLAGS)" "LIBS=-lm"
2831
2832 tru64-40f:
2833 @echo Making C-Kermit $(CKVER) for Tru64 UNIX 4.0F...
2834 $(MAKE) CC=$(CC) CC2=$(CC2) osf KTARGET=$${KTARGET:-$(@)} \
2835 "KFLAGS= -DOSF40 -DOSF40F -DTRU64 -DHDBUUCP -DFNFLOAT -DNOCOTFMC \
2836 -unsigned -std1 -O3 -Olimit 2400 $(KFLAGS)" "LIBS=-lm"
2837
2838 tru64-40g:
2839 @echo Making C-Kermit $(CKVER) for Tru64 UNIX 4.0G...
2840 $(MAKE) CC=$(CC) CC2=$(CC2) osf KTARGET=$${KTARGET:-$(@)} \
2841 "KFLAGS= -DOSF40 -DOSF40G -DTRU64 -DHDBUUCP -DFNFLOAT -DNOCOTFMC \
2842 -unsigned -std1 -O3 -Olimit 2400 $(KFLAGS)" "LIBS=-lm"
2843
2844 tru64-50a:
2845 @echo Making C-Kermit $(CKVER) for Tru64 UNIX 5.0A...
2846 $(MAKE) CC=$(CC) CC2=$(CC2) osf KTARGET=$${KTARGET:-$(@)} \
2847 "KFLAGS= -DTRU64 -DOSF50 -DHDBUUCP \
2848 -unsigned -std1 -O3 -Olimit 2400 $(KFLAGS)"
2849
2850 tru64-51a:
2851 @echo Making C-Kermit $(CKVER) for Tru64 UNIX 5.1A...
2852 $(MAKE) CC=$(CC) CC2=$(CC2) osf KTARGET=$${KTARGET:-$(@)} \
2853 "KFLAGS= -DTRU64 -DOSF50 -DOSF51A -DHDBUUCP \
2854 -unsigned -std1 -O3 -Olimit 2400 $(KFLAGS)"
2855
2856 tru64-51b:
2857 @echo Making C-Kermit $(CKVER) for Tru64 UNIX 5.1B...
2858 $(MAKE) CC=$(CC) CC2=$(CC2) osf KTARGET=$${KTARGET:-$(@)} \
2859 "KFLAGS= -DTRU64 -DOSF50 -DOSF51A -DOSF51B -DHDBUUCP \
2860 -unsigned -std1 -O3 -Olimit 2400 $(KFLAGS)"
2861
2862 # Added 5.1b version with OpenSSL - CDW 6-13-2005...
2863 tru64-51b+openssl:
2864 @echo Making C-Kermit $(CKVER) for Tru64 UNIX 5.1b
2865 @echo including OpenSSL...
2866 $(MAKE) CC=$(CC) CC2=$(CC2) osf KTARGET=$${KTARGET:-$(@)} \
2867 "KFLAGS= -DTRU64 -DOSF50 -DOSF51A -DOSF51B -DHDBUUCP \
2868 -unsigned -std1 -O3 -Olimit 2400 \
2869 -DCK_AUTHENTICATION -DCK_SSL $(SSLINC) $(KFLAGS)" \
2870 "LIBS= $(SSLLIB) -rpath $(sslroot)/ssl/lib -lssl -lcrypto"
2871
2872 du50:
2873 $(MAKE) CC=$(CC) CC2=$(CC2) tru64-50a KTARGET=$${KTARGET:-$(@)}
2874
2875 du40-ridiculous-checking:
2876 @echo Making C-Kermit $(CKVER) for Digital UNIX 4.0.
2877 @echo Checking everything - assumes DECC...
2878 $(MAKE) CC=$(CC) CC2=$(CC2) osf KTARGET=$${KTARGET:-$(@)} \
2879 "KFLAGS= -DOSF40 -DHDBUUCP -w0 -warnprotos -check -portable \
2880 -unsigned -std1 -O3 -Olimit 1760 $(KFLAGS)"
2881
2882 #Sequent DYNIX/ptx 1.2.1
2883 dynixptx12:
2884 @echo Making C-Kermit $(CKVER) for Sequent DYNIX/ptx 1.2.1...
2885 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
2886 "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -DPTX -DNOGETUSERSHELL -DNOLEARN \
2887 -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t $(KFLAGS) -i -O" \
2888 "LNKFLAGS = -i"
2889
2890 #Sequent DYNIX/ptx 1.3 or 1.4
2891 dynixptx13:
2892 @echo Making C-Kermit $(CKVER) for Sequent DYNIX/ptx 1.3 TCP/IP...
2893 $(MAKE) xermit "CFLAGS= -O KTARGET=$${KTARGET:-$(@)} \
2894 -DSVR3 -DDIRENT -DHDBUUCP -DPTX -DCK_POLL -DNOGETUSERSHELL \
2895 -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t -DTCPSOCKET $(KFLAGS) -i" \
2896 "LNKFLAGS = -i" "LIBS = -lsocket -linet -lnsl"
2897
2898 #Sequent DYNIX/ptx 2.0, ANSI C compilation
2899 #Should work on any hardware platform when DYNIX/ptx runs, including
2900 #386, 486, Pentium.
2901 dynixptx20:
2902 @echo 'Making C-Kermit $(CKVER) for POSIX, Sequent DYNIX/ptx 2.0...'
2903 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
2904 "CFLAGS= -DPOSIX -DHDBUUCP -DTCPSOCKET \
2905 -DWAIT_T=int -DPTX -DNOGETUSERSHELL $(KFLAGS) -O" \
2906 "LIBS = -lsocket -linet -lnsl"
2907
2908 #Sequent DYNIX/ptx 2.0, ANSI C compilation, with curses
2909 dynixptx20c:
2910 @echo 'Making C-Kermit $(CKVER) for POSIX, Sequent DYNIX/ptx 2.0...'
2911 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
2912 "CFLAGS= -DPOSIX -DHDBUUCP -DTCPSOCKET -DWAIT_T=int -DPTX -DCK_CURSES \
2913 -DCK_NEWTERM -DNOGETUSERSHELL $(KFLAGS) -O" \
2914 "LIBS = -lsocket -linet -lnsl -lcurses -ltermcap"
2915
2916 #Sequent DYNIX/ptx 2.1.6, 80486, ANSI C compilation, with curses:
2917 # -Xa -- use ANSI compiler.
2918 # -Wc,-pw -- suppress portability warnings.
2919 # -Wc,-i386 -- 80386 cpu.
2920 # -Wc,-i486 -- 80486 cpu.
2921 # -Wc,-P5 -- Pentium (default).
2922 # -Wc,-O3 -- highest optimization.
2923 # -Wa,-N17061 -- increase symbol table from default of 15013 for ckcuni.c.
2924 # Early versions of DYNIX/ptx 2.1.x may need -DCK_POLL instead of -DSELECT.
2925 # Add "$&" after the colon in the "xermit" target for parallel makes.
2926 dynixptx216c:
2927 @echo 'Making C-Kermit $(CKVER) for POSIX, Sequent DYNIX/ptx 2.1.6'
2928 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
2929 "CFLAGS= -DPOSIX -DHDBUUCP -DDYNAMIC -DTCPSOCKET \
2930 -DSELECT -DCK_REDIR -DCK_NAWS -DCK_WREFRESH -DSW_ACC_ID \
2931 -DTCP_NODELAY=1 -DTRMBUFL=2048 -DBIGBUFOK -DHADDRLIST \
2932 -DPTX -DCK_CURSES -DCK_NEWTERM -DNOGETUSERSHELL -DNOREALPATH \
2933 $(KFLAGS) -Xa -Wc,-pw -Wc,-i486 -Wc,-O3 -Wa,-N17061" \
2934 "LIBS = -lXbsd -lseq -lsocket -linet -lnsl -lmalloc -lm -lcurses" \
2935 "LNKFLAGS = -s"
2936
2937 #Sequent DYNIX/ptx 2.1.6, gcc 2.7.2.2, with curses:
2938 dynixptx216cgcc:
2939 @echo 'Making C-Kermit $(CKVER) for POSIX, Sequent DYNIX/ptx 2.1.6 gcc'
2940 $(MAKE) xermit "CC = gcc" "CC2 = gcc" KTARGET=$${KTARGET:-$(@)} \
2941 "CFLAGS= -DPOSIX -DHDBUUCP -DDYNAMIC -DTCPSOCKET \
2942 -DSELECT -DCK_REDIR -DCK_NAWS -DCK_WREFRESH -DSW_ACC_ID \
2943 -DTCP_NODELAY=1 -DTRMBUFL=2048 -DBIGBUFOK -DHADDRLIST \
2944 -DPTX -DCK_CURSES -DCK_NEWTERM -DNOGETUSERSHELL -DNOREALPATH \
2945 $(KFLAGS) -O3 -pipe -funsigned-char" \
2946 "LIBS = -lXbsd -lseq -lsocket -linet -lnsl -lmalloc -lm -lcurses" \
2947 "LNKFLAGS = -s"
2948
2949 #Sequent DYNIX/ptx 4.0, ANSI C compilation, with curses
2950 dynixptx41c:
2951 @echo 'Making C-Kermit $(CKVER) for POSIX, Sequent DYNIX/ptx 4.0...'
2952 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
2953 "CFLAGS= -DPOSIX -DHDBUUCP -DTCPSOCKET \
2954 -DWAIT_T=int -DPTX -DPTX4 -DCK_CURSES -DCK_NEWTERM \
2955 -DNOGETUSERSHELL $(KFLAGS) -O" \
2956 "LIBS = -lsocket -lnsl -lcurses -ltermcap"
2957
2958 #Sequent DYNIX/ptx 4.4, ANSI C compilation, with curses
2959 dynixptx44:
2960 @echo 'Making C-Kermit $(CKVER) for POSIX, Sequent DYNIX/ptx 4.4...'
2961 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
2962 "CFLAGS= -DPTX -DPTX4 -DPOSIX -DHDBUUCP -DTCPSOCKET -DWAIT_T=int \
2963 -DCK_CURSES -DCK_NEWTERM -DBIGBUFOK -DSELECT -DNOGETUSERSHELL \
2964 $(KFLAGS) -O" "LIBS = -lsocket -lnsl -lcurses -ltermcap"
2965
2966 #Sequent DYNIX 3.0.x
2967 dynix3:
2968 @echo Making C-Kermit $(CKVER) for Sequent DYNIX 3.0.x...
2969 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
2970 "CFLAGS= -DBSD43 -DACUCNTRL -DTCPSOCKET -O \
2971 -DPWUID_T=int -DGID_T=int $(KFLAGS)"
2972
2973 #Sequent DYNIX 3.0.x, no ACUCNTRL
2974 dynix3noacu:
2975 @echo Making C-Kermit $(CKVER) for Sequent DYNIX 3.0.x...
2976 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
2977 "CFLAGS= -DBSD43 -DLCKDIR -DTCPSOCKET -O \
2978 -DUID_T=int -DGID_T=int $(KFLAGS)"
2979
2980 #Sequent DYNIX 3.1.x
2981 dynix31:
2982 @echo Making C-Kermit $(CKVER) for Sequent DYNIX 3.1.x...
2983 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
2984 "CFLAGS= -O -DDCLPOPEN -DLCKDIR -DBSD4 -DTCPSOCKET $(KFLAGS)"
2985
2986 #Sequent DYNIX 3.1.2, as above but with curses, to be compiled by gcc 2.3.3.
2987 dynix31c:
2988 @echo 'Making C-Kermit $(CKVER) for Sequent DYNIX 3.1.2, curses...'
2989 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
2990 "CFLAGS= -O2 -DDCLPOPEN -DACUCNTRL \
2991 -DBSD43 -DTCPSOCKET -DCK_CURSES -DUID_T=int \
2992 $(KFLAGS)" "LIBS= -lcurses -ltermcap"
2993
2994 #Convex C1 with Berkeley Unix
2995 convex:
2996 @echo Making C-Kermit $(CKVER) for Convex C1 / BSD...
2997 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
2998 "CFLAGS= -DBSD4 -DNOLEARN $(KFLAGS) -Dmsleep=mnap"
2999
3000 #Convex C210 with Convex/OS 8
3001 convex8:
3002 @echo Making C-Kermit $(CKVER) for Convex C210 with OS 8
3003 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
3004 "CFLAGS= -DBSD4 -DTCPSOCKET -DNODEBUG -DDIRENT -DNOFILEH \
3005 $(KFLAGS) -DSIG_V -Dmsleep=mnap"
3006
3007 #Convex C2 with Convex OS 9.1 (should also work with 8.1 or later)
3008 #with ANSI C compiler, uses BSD 4.3 uucp lockfile convention.
3009 convex9:
3010 @echo Making C-Kermit $(CKVER) for Convex C210 with OS 9.1
3011 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
3012 "CFLAGS= -DPOSIX -DCONVEX9 -DNOIEXTEN -DDIRENT -DNOFILEH -DTCPSOCKET \
3013 -D__STDC__ -DLCKDIR -Dmsleep=mnap -O -ext -tm c1 $(KFLAGS)" \
3014 "LNKFLAGS = -ext"
3015
3016 #Convex C2 with Convex OS 10.1 or later
3017 #with gcc 2.x C compiler
3018 convex10gcc:
3019 @echo Making C-Kermit $(CKVER) for Convex C2 with OS 10.1 using gcc
3020 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
3021 "CFLAGS= -DPOSIX -DCONVEX9 -DNOIEXTEN -DDIRENT -DNOFILEH -DTCPSOCKET \
3022 -D__STDC__ -Dmsleep=mnap -O2 $(KFLAGS)" CC=gcc CC2=gcc
3023
3024 #Cray X-MP or Y-MP UNICOS 6.x or 7.x.
3025 #NOTE: NPROC tells how many parallel makes to run. If your Cray has multiple
3026 #processors, you can set NPROC up to the number of CPUs, e.g. NPROC=16.
3027 cray:
3028 @echo 'Making C-Kermit $(CKVER) for Cray X/Y-MP UNICOS 6.x or 7.0...
3029 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} NPROC=1 \
3030 "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -DTCPSOCKET $(KFLAGS) -O1"
3031
3032 #Cray X-MP or Y-MP UNICOS 8.0 Alpha.
3033 cray8:
3034 @echo 'Making C-Kermit $(CKVER) for Cray X/Y-MP UNICOS 8.0 Alpha...
3035 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} NPROC=1 \
3036 "CFLAGS= -DSVR4 -DDIRENT -DHDBUUCP -DTCPSOCKET $(KFLAGS) -O1"
3037
3038 #Cray X-MP or Y-MP UNICOS 9.0.
3039 #This one was executed successfully for C-Kermit 8.0.209.
3040 #Earlier versions of Unicos will probably need the same flags.
3041 cray9:
3042 @echo 'Making C-Kermit $(CKVER) for Cray X/Y-MP UNICOS 9.0...
3043 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} NPROC=1 \
3044 "CFLAGS= -DSVR4 -DDIRENT -DHDBUUCP -DNOLFDEVNO \
3045 -DTCPSOCKET $(KFLAGS) -O1"
3046
3047 #Cray-2 or Cray 3-CSOS
3048 #NOTE: NPROC tells how many parallel makes to run. If your Cray has multiple
3049 #processors, you can set NPROC up to the number of CPUs, e.g. NPROC=16.
3050 craycsos:
3051 @echo 'Making C-Kermit $(CKVER) for Cray-2/3 CSOS
3052 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} NPROC=1 \
3053 "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -DTCPSOCKET \
3054 $(KFLAGS) -DCK_ANSIC -DCK_CURSES" "LIBS=-lnet"
3055
3056 #NeXTSTEP 1.0 through 3.2.
3057 #Includes fullscreen file transfer display (curses) and TCP/IP support.
3058 #Uses shared library to make executable program about 80K smaller.
3059 #Remove "LIBS = -lsys_s" if this causes trouble.
3060 next:
3061 @echo Making C-Kermit $(CKVER) for NeXTSTEP...
3062 @echo 'If you get errors in ckutio.c about w_S, w_T, etc,'
3063 @echo 'add KFGLAGS=-DNOREDIRECT to your make command.'
3064 $(MAKE) xermit CC=$(CC) CC2=$(CC2) KTARGET=$${KTARGET:-$(@)} \
3065 "CFLAGS= -DNEXT -DTCPSOCKET -DLCKDIR -DNOPUTENV -DFNFLOAT \
3066 -pipe -DCK_CURSES $(KFLAGS) -O -w" "LIBS = -lsys_s -lcurses -ltermcap"
3067
3068 nextc:
3069 $(MAKE) "MAKE=$(MAKE)" CC=$(CC) CC2=$(CC2) next \
3070 KTARGET=$${KTARGET:-$(@)}
3071
3072 nextg:
3073 $(MAKE) "MAKE=$(MAKE)" CC=$(CC) CC2=$(CC2) next \
3074 KFLAGS=-Wall KTARGET=$${KTARGET:-$(@)}
3075
3076 nextgc:
3077 $(MAKE) "MAKE=$(MAKE)" CC=$(CC) CC2=$(CC2) next \
3078 KFLAGS=-Wall KTARGET=$${KTARGET:-$(@)}
3079
3080 #NeXTSTEP 3.3.
3081 #Includes fullscreen file transfer display and TCP/IP.
3082 # You might have to add 1 line to 1 NeXT header file <ip.h>
3083 # to declare n_long as u_long by adding #include <bsd/netinet/in_systm.h>
3084
3085 next33:
3086 @echo Making C-Kermit $(CKVER) for NeXTSTEP 3.3...
3087 $(MAKE) xermit CC=$(CC) CC2=$(CC2) KTARGET=$${KTARGET:-$(@)} \
3088 "CFLAGS= -DNEXT33 -DTCPSOCKET -DLCKDIR -DNOPUTENV -DFNFLOAT \
3089 -pipe -DCK_CURSES $(KFLAGS) -O -w" "LIBS = -lsys_s -lcurses -ltermcap"
3090
3091 #OPENSTEP 4.2 for Sparc, m680x0, HP PA-RISC, and Intel.
3092 #Includes fullscreen file transfer display and TCP/IP.
3093 openstep42:
3094 @echo Making C-Kermit $(CKVER) for OPENSTEP 4.2...
3095 $(MAKE) ckcpro.$(EXT) \
3096 "CFLAGS= -DOPENSTEP42 -DNEXT33 -DTCPSOCKET -DLCKDIR -DNOPUTENV \
3097 -DFNFLOAT -pipe -DCK_CURSES $(KFLAGS) -w"
3098 $(MAKE) xermit CC=$(CC) CC2=$(CC2) KTARGET=$${KTARGET:-$(@)} \
3099 "CFLAGS= -DOPENSTEP42 -DNEXT33 -DTCPSOCKET -DLCKDIR -DNOPUTENV \
3100 -DFNFLOAT -pipe -DCK_CURSES $(KFLAGS) -O -w" \
3101 "LIBS = -lsys_s -lcurses -ltermcap"
3102
3103 #NeXT with malloc debugger
3104 nextmd:
3105 @echo Making C-Kermit $(CKVER) for NeXT with malloc debugging...
3106 $(MAKE) mermit KTARGET=$${KTARGET:-$(@)} \
3107 "CFLAGS= -DNEXT -DTCPSOCKET -DLCKDIR -DNOPUTENV -DFNFLOAT \
3108 -DCK_CURSES $(KFLAGS) -O -w -Dmalloc=dmalloc -Dfree=dfree -DMDEBUG" \
3109 "LIBS = -lsys_s -lcurses -ltermcap"
3110
3111 #Build for NeXTSTEP with "fat" binaries (MABs) that run on both Motorola
3112 #and Intel platforms.
3113 nextfat:
3114 $(MAKE) "MAKE=$(MAKE)" CC=$(CC) CC2=$(CC2) \
3115 next KTARGET=$${KTARGET:-$(@)} \
3116 "KFLAGS=-Wall -arch m68k -arch i386" "LNKFLAGS = -arch m68k -arch i386"
3117
3118 #NeXTSTEP on Intel Platforms.
3119 next486:
3120 @echo Making C-Kermit $(CKVER) for NeXTSTEP on Intel Platforms...
3121 @echo 'If you get errors in ckutio.c about w_S, w_T, etc,'
3122 @echo 'add KFGLAGS=D-DNOREDIRECT to your make command.'
3123 $(MAKE) xermit CC=$(CC) CC2=$(CC2) KTARGET=$${KTARGET:-$(@)} \
3124 "CFLAGS= -DNEXT -DTCPSOCKET -DLCKDIR -DNOPUTENV -DFNFLOAT \
3125 -DNODEBUG -O3 -fno-omit-frame-pointer -fschedule-insns2 -pipe \
3126 -DCK_CURSES $(KFLAGS) -w" "LIBS = -lsys_s -lcurses -ltermcap"
3127
3128 #Single binary that runs on NeXT 68030 and 68040, Intel, HP, and Sparc,
3129 #as well as on OpenStep/Mach.
3130 nextquadfat:
3131 $(MAKE) "MAKE=$(MAKE)" CC=$(CC) CC2=$(CC2) next \
3132 KTARGET=$${KTARGET:-$(@)} \
3133 "KFLAGS=-Wall -arch m68k -arch i386 -arch hppa -arch sparc" \
3134 "LNKFLAGS = -arch m68k -arch i386 -arch hppa -arch sparc"
3135
3136 #BeBox
3137 beboxdr7:
3138 @echo 'Making C-Kermit $(CKVER) for the BeBox...'
3139 @echo 'Link step will fail with default Metroworks linker 64K limit.'
3140 @echo 'Code Warrior Gold required to link big programs.'
3141 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
3142 "CC=/boot/develop/tools/mwcc" "CC2=/boot/develop/tools/mwld" \
3143 "CFLAGS= -DBEBOX -DBE_DR_7 -DPOSIX -DNOUUCP -DNOLEARN $(KFLAGS) -O"
3144
3145 #BeBox BeOS DR7 only
3146 bebox:
3147 @echo 'Making C-Kermit $(CKVER) for BeBox...'
3148 @echo 'Link step will fail with default Metroworks linker 64K limit.'
3149 @echo 'Code Warrior Pro 3.0 for BeBox required to link big programs.'
3150 $(MAKE) wermit "CC=mwcc" "CC2=mwld" KTARGET=$${KTARGET:-$(@)} \
3151 "CFLAGS= -DBEBOX -DPOSIX -DNOLEARN -DNOUUCP $(KFLAGS) -O"
3152
3153 #BeOS 4.5
3154 #We have to use the wermit target because 'fd_set' is unknown.
3155 beos45:
3156 $(MAKE) wermit "CC=$(CC)" "CC2=$(CC2)" KTARGET=$${KTARGET:-$(@)} \
3157 "CFLAGS= -DBEOS -DBEOS45 -DPOSIX -DNOIKSD -DNOREALPATH -DSYSTIMEH \
3158 -DNOCOTFMC -DNOUUCP -DNOLEARN $(KFLAGS) -O" \
3159 "LIBS = $(LIBS)"
3160
3161 #BeOS 4.5
3162 beos45net:
3163 $(MAKE) CC=$(CC) CC2=$(CC2) beos45 \
3164 "KFLAGS=-DTCPSOCKET -DNO_DNS_SRV $(KFLAGS)" "LIBS=-lnet -lnetapi"
3165
3166 #Plan 9 from Bell Labs
3167 plan9:
3168 @echo 'C-Kermit for Plan 9 from Bell Labs - calling ckpker.mk...'
3169 make -f ckpker.mk
3170
3171 #POSIX
3172 posix:
3173 @echo 'Making C-Kermit $(CKVER) for pure POSIX...'
3174 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
3175 "CFLAGS= -DPOSIX -DNOUUCP -DNOLEARN $(KFLAGS) -O"
3176
3177 # PowerMAX OS (SVR4) from Concurrent (tested on PowerMAX 5.1)
3178 powermax:
3179 @echo 'Making C-Kermit $(CKVER) for Concurrent PowerMAX OS...'
3180 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
3181 "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DPOWERMAX \
3182 -DNETPTY -DHAVE_STREAMS -DHAVE_GRANTPT -DHAVE_PTSNAME -DPUSH_PTEM \
3183 -DPUSH_LDTERM -DPUSH_TTCOMPAT \
3184 -DSTERMIOX -DTCPSOCKET -DCK_CURSES $(KFLAGS)" \
3185 "LIBS= -lsocket -lnsl -lresolv -lcurses -lgen -lc -lucbc"
3186
3187 #Berkeley Software Design Inc. BSDI
3188 # Substitute "LIBS= -lnewcurses -ltermcap" if desired.
3189 bsdi:
3190 @echo 'Making C-Kermit $(CKVER) for BSDI ...'
3191 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
3192 "CFLAGS= -DBSD44 -DSETREUID -DSW_ACC_ID -DBIGBUFOK -DFIXCRTSCTS \
3193 -DTCPSOCKET -DCK_CURSES -DFNFLOAT $(KFLAGS) -O" \
3194 "LIBS= -lcurses -ltermcap -lm"
3195
3196 #Berkeley Software Design Inc. BSDI - has higher serial speeds than 1.x.
3197 bsdi2:
3198 $(MAKE) "MAKE=$(MAKE)" CC=$(CC) CC2=$(CC2) bsdi \
3199 KTARGET=$${KTARGET:-$(@)} "KFLAGS=-DBSDI2 $(KFLAGS)"
3200
3201 bsdi3:
3202 $(MAKE) "MAKE=$(MAKE)" CC=$(CC) CC2=$(CC2) bsdi \
3203 KTARGET=$${KTARGET:-$(@)} "KFLAGS=-DBSDI2 -DBSDI3 $(KFLAGS)"
3204
3205 bsdi4:
3206 $(MAKE) "MAKE=$(MAKE)" CC=$(CC) CC2=$(CC2) bsdi \
3207 KTARGET=$${KTARGET:-$(@)} \
3208 "KFLAGS=-DBSDI2 -DBSDI3 -DBSDI4 -DTPUTSFNTYPE=void -DTPUTSISVOID \
3209 -DCKHTTP -m486 $(KFLAGS)"
3210
3211 # (old name for the above)
3212 bsdiposix:
3213 $(MAKE) "MAKE=$(MAKE)" CC=$(CC) CC2=$(CC2) bsdi
3214
3215
3216 #Build a BSDI 4.x binary that also runs under FreeBSD (Terry Kennedy).
3217 #But watch out for details like serial-port locking.
3218 bsdix:
3219 $(MAKE) "MAKE=$(MAKE)" CC=$(CC) CC2=$(CC2) bsdi \
3220 KTARGET=$${KTARGET:-$(@)} \
3221 "KFLAGS=-DBSDI2 -DBSDI3 -DBSDI4 -DTPUTSFNTYPE=void -DTPUTSISVOID \
3222 -m486 $(KFLAGS)" "LNKFLAGS=-static -Wl,-m,i386bsdi -Wl,-e,_start"
3223
3224 #Pyramid 9XXX (e.g. 9845) or MIServer T series, OSx 4.4b thru 5.1
3225 pyramid:
3226 @echo Making C-Kermit $(CKVER) for Pyramid Dual Port OSx
3227 ucb $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
3228 "CFLAGS= -DBSD43 -DTCPSOCKET -DPYRAMID -O $(KFLAGS)" "LNKFLAGS = -s"
3229
3230 #Pyramid Dual Port OSx using HoneyDanBer UUCP, curses and TCP
3231 pyramid-hdb:
3232 @echo Making C-Kermit $(CKVER) for Pyramid Dual Port OSx
3233 ucb $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
3234 "CFLAGS= -DBSD43 -DTCPSOCKET -DHBDUUCP -DCK_CURSES -O $(KFLAGS)" \
3235 "LNKFLAGS = -s" "LIBS = -lcurses -ltermcap"
3236
3237 #Pyramid DC/OSx (UNIX System V R4).
3238 #Has <sys/termiox.h>, regular Berkeley sockets library, i.e. in.h and inet.h
3239 #are not misplaced in sys (rather than netinet and arpa, respectively).
3240 #Uses ANSI C.
3241 #NOTE: Remove -O and Olimit:2500 from CFLAGS if TELNET connections do not work.
3242 pyrdcosx:
3243 @echo 'Making C-Kermit $(CKVER) for Pyramid DC/OSx...'
3244 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
3245 "CFLAGS = -Xa -O -DSVR4 -DDIRENT -DHDBUUCP -DSELECT -DNOGETUSERSHELL \
3246 -DCK_CURSES -DSTERMIOX -DTCPSOCKET -DPYRAMID -K Olimit:3100 \
3247 -DNO_DNS_SRV $(KFLAGS)" "LIBS= -lcurses -lsocket -lnsl" "LNKFLAGS = -s"
3248
3249 #IBM's AIX 3.0 on IBM 370 mainframe, tested on AIX F44 thru F50.
3250 aix370:
3251 @echo Making C-Kermit $(CKVER) for IBM System/370 AIX 3.0...
3252 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
3253 "CFLAGS= -DAIX370 -DTCPSOCKET -DLCKDIR -DDIRENT $(KFLAGS)" \
3254 "LIBS = -lbsd"
3255
3256 #IBM's AIX/ESA 2.1 (OSF/1) on IBM mainframe
3257 aixesa:
3258 @echo Making C-Kermit $(CKVER) for IBM AIX/ESA...
3259 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
3260 "CFLAGS= -DAIXESA -DTCPSOCKET $(KFLAGS) -O"
3261
3262 #IBM PS/2 with AIX 1.0 thru 1.3.
3263 # Reports indicate that -O switch must be omitted.
3264 # It is also possible that "make bsd" will work (reports welcome).
3265 # One report said "make LIBS=-lbsd bsd" did the trick.
3266 # NOTLOG is to get around a 'tlog' symbol defined in one of the headers.
3267 ps2aix:
3268 @echo 'Making C-Kermit $(CKVER) for IBM AIX 1.x PS/2...'
3269 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
3270 "CFLAGS = -DATTSV -DNOREALPATH -DPS2AIX10 -DSIG_V \
3271 -DNOUNICODE -DNOTLOG -DNOLEARN $(KFLAGS) -i" \
3272 "LNKFLAGS = -i"
3273
3274 ps2aixnetc:
3275 @echo 'Making C-Kermit $(CKVER) for IBM AIX 1.x PS/2...'
3276 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
3277 "CFLAGS = -DATTSV -DNOREALPATH -DPS2AIX10 -DTCPSOCKET -DCK_CURSES \
3278 -DSIG_V -DNOUNICODE -DNOTLOG -DNOLEARN $(KFLAGS) -i" \
3279 "LIBS = -lcurses" "LNKFLAGS = -i"
3280
3281 ps2aix3:
3282 $(MAKE) ps2aix KTARGET=$${KTARGET:-$(@)}
3283
3284 #IBM RT PC with AIX 2.2.1, valid as of C-Kermit 8.0.
3285 #NOTLOG because of a conflict in <sys/termio.h>.
3286 #This one has unique and strange lockfiles.
3287 # -O removed on purpose (8.0).
3288 # In case of "compiler error: symbol table full", increase the -Nn number.
3289 # In case of "compiler error: Constant pool too big", boost the -Np number.
3290 # Add -DNOPUTENV if putenv() causes trouble.
3291 # Put -DNOIKSD back if IKSD-related problems occur.
3292 rtaix:
3293 @echo 'Making C-Kermit $(CKVER) for IBM RT PC, AIX 2.2.1...'
3294 $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
3295 "CFLAGS = -DATTSV -DRTAIX -DHDBUUCP -DDIRENT -DNOTLOG -DTCPSOCKET \
3296 -DNOGETUSERSHELL -DCLSOPN -DNOREALPATH -DNOUNICODE -DBSD_INCLUDES \
3297 -DUSE_LSTAT -DFNFLOAT -Nn2500 -Np1000 -Wq,-SJ2 -a -w $(KFLAGS)" \
3298 "LIBS = -lm $(LIBS)" "LNKFLAGS = -s"
3299
3300 #### IBM RT PC - these targets were last verified in C-Kermit 8.0.211.
3301
3302 #IBM RT PC with AIX 2.2.1 + curses
3303 rtaixc:
3304 $(MAKE) rtaix CC=$(CC) CC2=$(CC2) "KFLAGS=-DCK_CURSES" "LIBS=-lcurses"
3305
3306 #IBM RT PC with AIX (ACIS) 2.2.1 (BSD 4.3)
3307 # Add -O, -DDYNAMIC, -s, etc, if they work.
3308 rtacis:
3309 @echo Making C-Kermit $(CKVER) for RT PC with ACIS 2.2.1 = BSD 4.3...
3310 $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
3311 "CFLAGS= -DBSD4 -DTCPSOCKET -DNOREALPATH -DNOIKSD -DNOPUTENV \
3312 $(KFLAGS) -U__STDC__" "LNKFLAGS = -s"
3313
3314 #### IBM AIX. The first two targets should work for any version of AIX
3315 #### from 4.2 onwards. The ones after that are for older versions or
3316 #### specific configurations, and/or with gcc.
3317
3318 # This one should work for any AIX 4.2 or later: "make aix".
3319 # Other tags are for compatibility with old makefile targets.
3320 #OK: 2011/06/11
3321 aix aix42 aix43 aix44 aix45 aix50 aix51 aix52 aix53 aix54 aix61:
3322 @echo Making C-Kermit $(CKVER) for IBM AIX...
3323 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
3324 "CFLAGS= -DAIXRS -DAIX41 -DAIX42 -DSVR4 -DSTERMIOX -DTCPSOCKET \
3325 -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DCK_NEWTERM -DFNFLOAT \
3326 -DSELECT -DSELECT_H -DNOGETUSERSHELL -qmaxmem=16000 -O \
3327 -DCKCPU=\\\"`uname -p`\\\" \
3328 -DHERALD=\"\\\" IBM AIX `uname -v`.`uname -r`\\\"\" \
3329 -D_LARGE_FILES $(KFLAGS)" "LNKFLAGS = -s" "LIBS=-lcurses -lm"
3330
3331 # Same but using gcc instead of cc
3332 # This works but we get "gcc: unrecognized option '-qmaxmem-..'" each module.
3333 aixg:
3334 @echo "Using gcc..."
3335 $(MAKE) aix KTARGET=$${KTARGET:-$(@)} \
3336 CC=gcc CC2=gcc "KFLAGS=-pipe -funsigned-char"
3337
3338 # AIX 4.2 or later with OpenSSL 0.9.7 or later: "make aix+ssl"
3339 # For earlier OpenSSL remove -DOPENSSL_097 or add "KFLAGS=-UOPENSSL_097".
3340 # Synonym target names added to cover old redundant targets that were removed.
3341 # If SSL is not installed in the /usr/local tree (see SSLINC and SSLLIB
3342 # definitions near the top), you can specify the locations in your make
3343 # command as in this example:
3344 #
3345 # SSLINC=-I/opt/ssl/include SSLLIB=-L/opt/ssl/lib make -e aix+ssl
3346 #
3347 # To build with gcc use "make aix CC=gcc CC2=gcc", or "make aixg"
3348 #
3349 #OK: 2011/06/15
3350 aix+ssl aix51+openssl aix52+openssl aix53+openssl:
3351 @echo "Making C-Kermit $(CKVER) for IBM AIX with OpenSSL..."
3352 @echo "SSLINC=$(SSLINC) SSLLIB=$(SSLLIB)"
3353 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
3354 CC=$(CC) CC2=$(CC2) \
3355 "CFLAGS=-DAIXRS -DAIX41 -DAIX42 -DSVR4 -DSTERMIOX -DTCPSOCKET \
3356 -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DCK_NEWTERM -DFNFLOAT \
3357 -D_LARGE_FILES -DSELECT -DSELECT_H -DNOGETUSERSHELL \
3358 -DCKCPU=\\\"`uname -p`\\\" \
3359 -DHERALD=\"\\\" IBM AIX `uname -v`.`uname -r`\\\"\" \
3360 -DCK_AUTHENTICATION -DCK_SSL -DOPENSSL_097 $(SSLINC) $(KFLAGS)" \
3361 "LNKFLAGS=-s" "LIBS=$(SSLLIB) -lssl -lcrypto -lcurses -lm -lcrypt"
3362
3363 # AIX 5.3 or 6.1 or later with IBM OpenSSL, which is always in the directories
3364 # shown below so you don't have to set SSLINC and SSLLIB. If for some reason
3365 # the SSL include files and libraries are not in the places assumed, then use
3366 # "make aix+ssl" (just above) and set SSLINC and SSLLIB to indicate where the
3367 # SSL files are. To build with gcc use "make aix+ibmssl CC=gcc CC2=gcc".
3368 aix+ibmssl:
3369 @echo "Making C-Kermit $(CKVER) for IBM AIX 6.1 with OpenSSL..."
3370 @echo "If this fails use 'make aix+ss' and specify SSLINC and SSLLIB"
3371 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
3372 CC=$(CC) CC2=$(CC2) \
3373 "CFLAGS=-DAIXRS -DAIX41 -DAIX42 -DSVR4 -DSTERMIOX -DTCPSOCKET \
3374 -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DCK_NEWTERM -DFNFLOAT \
3375 -D_LARGE_FILES -DSELECT -DSELECT_H -DNOGETUSERSHELL \
3376 -DCKCPU=\\\"`uname -p`\\\" \
3377 -DHERALD=\"\\\" IBM AIX `uname -v`.`uname -r`\\\"\" \
3378 -DCK_AUTHENTICATION -DCK_SSL -DOPENSSL_098 \
3379 -I/usr/include/openssl $(KFLAGS)" \
3380 "LNKFLAGS=-s" \
3381 "LIBS=-L/usr/lib/openssl -lssl -lcrypto -lcurses -lm -lcrypt"
3382
3383 # Old AIX versions...
3384
3385 #IBM AIX 3.0, 3.1, or 3.2 for RISC System/6000.
3386 rs6000:
3387 @echo Making C-Kermit $(CKVER) for IBM AIX 3.0 or 3.1, RS/6000...
3388 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
3389 "CFLAGS= -DAIXRS -DTCPSOCKET -DSVR3 -DDIRENT -DCK_ANSIC \
3390 -DCK_POLL -DCLSOPN -DSELECT_H -DNOTTYLOCK -O $(KFLAGS)" \
3391 "LNKFLAGS = -s"
3392
3393 #IBM AIX 3.0, 3.1, or 3.2 for RISC System/6000, with curses.
3394 rs6000c:
3395 @echo Making C-Kermit $(CKVER) for IBM AIX 3.0 or 3.1, RS/6000...
3396 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
3397 "CFLAGS= -DAIXRS -DTCPSOCKET -DSVR3 -DDIRENT -DCK_ANSIC \
3398 -DCK_POLL -DCLSOPN -DCK_CURSES -DSELECT_H -DNOTTYLOCK -DNOREALPATH \
3399 -O $(KFLAGS)" "LIBS= -lcurses -ltermcap" "LNKFLAGS = -s"
3400
3401 aix30:
3402 $(MAKE) rs6000 CC=$(CC) CC2=$(CC2) KTARGET=$${KTARGET:-$(@)}
3403
3404 aix31:
3405 $(MAKE) rs6000 CC=$(CC) CC2=$(CC2) KTARGET=$${KTARGET:-$(@)}
3406
3407 #IBM AIX 3.2 for RISC System/6000.
3408 #In case of "subprogram too complex" warnings, add "-qmaxmem=16000" to CFLAGS.
3409 rs6aix32:
3410 @echo Making C-Kermit $(CKVER) for IBM AIX 3.2, RS/6000...
3411 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
3412 "CFLAGS= -DAIXRS -DTCPSOCKET -DSVR4 -DDIRENT -DCK_ANSIC -DNOREALPATH \
3413 -DSELECT_H -DCLSOPN -DNOTTYLOCK -O $(KFLAGS)" "LNKFLAGS = -s"
3414
3415 #IBM AIX 3.2 for RISC System/6000.
3416 rs6aix32c:
3417 @echo Making C-Kermit $(CKVER) for IBM AIX 3.2, RS/6000, TCP+curses...
3418 @echo In case of Subprogram Too Complex warnings,
3419 @echo add -qmaxmem=16000 to CFLAGS.
3420 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
3421 "CFLAGS= -DAIXRS -DTCPSOCKET -DSVR4 -DDIRENT -DCK_ANSIC -DNOREALPATH \
3422 -DCLSOPN -DCK_CURSES -DSELECT_H -DNOTTYLOCK -O $(KFLAGS)" \
3423 "LNKFLAGS = -s" "LIBS=-lcurses"
3424
3425 aix32:
3426 $(MAKE) rs6aix32c KTARGET=$${KTARGET:-$(@)}
3427
3428 #IBM AIX 4.1, 4.1.x on RISC System/6000 or Power Series.
3429 #Generates common binary for all platforms if using xlc (IBM C compiler).
3430 #When using gcc, add -mcpu=common to generate common binary.
3431 #Note that this one needs CK_NEWTERM.
3432 # Add -bbigtoc in case ld fails with TOC overflow.
3433 aix41:
3434 @echo Making C-Kermit $(CKVER) for IBM AIX 4.1.1 RS/6000 or PowerPC...
3435 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
3436 "CFLAGS= -DAIXRS -DAIX41 -DSVR4 -DSTERMIOX -DTCPSOCKET -DDIRENT \
3437 -DCK_ANSIC -DCLSOPN -DCK_CURSES -DCK_NEWTERM -DSELECT -DSELECT_H \
3438 -DNOGETUSERSHELL -qmaxmem=16000 -O $(KFLAGS)" \
3439 "LNKFLAGS = -s" "LIBS=-lcurses"
3440
3441 #Ditto but with gcc.
3442 #Remove "CC=gcc CC2=gcc" if you have gcc installed as cc.
3443 aix41g:
3444 @echo Making C-Kermit $(CKVER) for IBM AIX 4.1.1 RS/6000 or PowerPC...
3445 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC=gcc" "CC2=gcc" \
3446 "CFLAGS= -DAIXRS -DAIX41 -DSVR4 -DSTERMIOX -DTCPSOCKET -DDIRENT \
3447 -DCK_ANSIC -DCLSOPN -DCK_CURSES -DCK_NEWTERM -DSELECT -DSELECT_H \
3448 -DNOGETUSERSHELL -O $(KFLAGS)" \
3449 "LNKFLAGS = -s -Xlinker -bbigtoc" "LIBS=-lcurses"
3450
3451 # Add -bbigtoc in case ld fails with TOC overflow.
3452 aix41+krb5+krb4:
3453 @echo Making C-Kermit $(CKVER) for IBM AIX 4.1.1 RS/6000 or PowerPC...
3454 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
3455 "CFLAGS= -DAIXRS -DAIX41 -DSVR4 -DSTERMIOX -DTCPSOCKET -DDIRENT \
3456 -DCK_ANSIC -DCLSOPN -DCK_CURSES -DCK_NEWTERM -DSELECT -DSELECT_H \
3457 -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 -DKRB4 -DKRB524 \
3458 -DCK_ENCRYPTION -DCK_DES $(K5INC) $(K5INC)/krb5 \
3459 -DNOGETUSERSHELL -qmaxmem=16000 -O $(KFLAGS)" \
3460 "LNKFLAGS = -s" \
3461 "LIBS = $(K5LIB) -lcurses -lkrb4 -ldes425 -lkrb5 \
3462 -lcom_err -lk5crypto -lgssapi_krb5"
3463
3464 #Old name for "aix41".
3465 rs6aix41c:
3466 $(MAKE) aix41 KTARGET=$${KTARGET:-$(@)}
3467
3468 #IBM AIX 4.1, 4.1.x, or 4.2 on RISC System/6000 or Power Series,
3469 # with X.25 support
3470 #Generates common binary for all platforms if using xlc (IBM C compiler).
3471 #When using gcc, add -mcpu=common to generate common binary.
3472 # Add -bbigtoc in case ld fails with TOC overflow.
3473 aix41x25:
3474 @echo Making C-Kermit $(CKVER) for IBM AIX 4.1.1 RS/6000 or PowerPC...
3475 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
3476 "CFLAGS= -DAIXRS -DAIX41 -DSVR4 -DSTERMIOX -DTCPSOCKET -DDIRENT \
3477 -DCK_ANSIC -DCLSOPN -DCK_CURSES -DCK_NEWTERM -DSELECT -DSELECT_H \
3478 -DIBMX25 -DDEBUG -DNOGETUSERSHELL -qmaxmem=16000 -g $(KFLAGS)" \
3479 "LNKFLAGS = -g -bI:/lib/pse.exp" "LIBS=-lcurses -lodm -lcfg"
3480 -@echo "]0;kermit done\c"
3481
3482 #As above but without -g in LNKFLAGS.
3483 # Add -bbigtoc in case ld fails with TOC overflow.
3484 aix41x25o:
3485 @echo Making C-Kermit $(CKVER) for IBM AIX 4.1.1 RS/6000 or PowerPC...
3486 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
3487 "CFLAGS= -DAIXRS -DAIX41 -DSVR4 -DSTERMIOX -DTCPSOCKET -DDIRENT \
3488 -DCK_ANSIC -DCLSOPN -DCK_CURSES -DCK_NEWTERM -DSELECT -DSELECT_H \
3489 -DIBMX25 -DNODEBUG -DNOGETUSERSHELL -qmaxmem=16000 $(KFLAGS)" \
3490 "LNKFLAGS = -bI:/lib/pse.exp" "LIBS=-lcurses -lodm -lcfg"
3491 -@echo "]0;kermit done\c"
3492
3493 #AIX 4.2 -- Use this target if the regular "make aix" doesn't work.
3494 # Must have CK_NEWTERM or echoing is lost after curses.
3495 # Add -bbigtoc in case ld fails with TOC overflow. As of C-Kermit 8.0.212,
3496 # all AIX builds 4.2 and later include large file support.
3497 oldaix42:
3498 @echo Making C-Kermit $(CKVER) for IBM AIX 4.2 or higher...
3499 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
3500 "CFLAGS= -DAIXRS -DAIX41 -DAIX42 -DSVR4 -DSTERMIOX -DTCPSOCKET \
3501 -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DCK_NEWTERM -DFNFLOAT \
3502 -DSELECT -DSELECT_H -DNOGETUSERSHELL -qmaxmem=16000 -O \
3503 -DCKCPU=\\\"`uname -p`\\\" \
3504 -DHERALD=\\\"\ IBM\ AIX\ `uname -v`.`uname -r`\\\" \
3505 -D_LARGE_FILES $(KFLAGS)" "LNKFLAGS = -s" "LIBS=-lcurses -lm"
3506
3507 #AIX 4.3 - Use this target if the regular "make aix" doesn't work.
3508 # Must NOT have CK_NEWTERM or else C-Kermit hangs after curses.
3509 # -bbigtoc needed on some systems but not others to avoid TOC overflow.
3510 # "man ld" says -bbigtoc makes program run slower.
3511 oldaix43:
3512 @echo Making C-Kermit $(CKVER) for IBM AIX 4.3 or higher...
3513 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
3514 "CFLAGS= -DAIXRS -DAIX41 -DAIX43 -DSVR4 -DSTERMIOX -DTCPSOCKET \
3515 -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DSELECT -DSELECT_H \
3516 -DFNFLOAT -DNOGETUSERSHELL -qmaxmem=16000 -bbigtoc -O $(KFLAGS)" \
3517 "LNKFLAGS = -s" "LIBS=-lcurses -lm"
3518
3519 #AIX 4.3 with IBM X.25.
3520 aix43x25:
3521 @echo "Making C-Kermit $(CKVER) for IBM AIX 4.3 with X.25..."
3522 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
3523 "CFLAGS= -DAIXRS -DAIX41 -DAIX43 -DSVR4 -DSTERMIOX -DTCPSOCKET \
3524 -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DSELECT -DSELECT_H \
3525 -DFNFLOAT -DNOGETUSERSHELL -DIBMX25 \
3526 -qmaxmem=16000 -bbigtoc -O $(KFLAGS)" \
3527 "LNKFLAGS = -bI:/lib/pse.exp" "LIBS=-lcurses -lodm -lcfg -lm"
3528
3529 #AIX 4.3 -- Must NOT have CK_NEWTERM or else C-Kermit hangs after curses.
3530 # -mminimal-toc needed on some systems but not others to avoid TOC overflow.
3531 # "man ld" says -bbigtoc makes program run slower.
3532 aix43g:
3533 @echo Making C-Kermit $(CKVER) for IBM AIX 4.3 gcc...
3534 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
3535 "CFLAGS= -mminimal-toc -g -O -DAIXRS -DAIX41 -DAIX43 -DSVR4 \
3536 -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DSELECT -DSELECT_H \
3537 -DSTERMIOX -DTCPSOCKET -DFNFLOAT -DNOGETUSERSHELL $(KFLAGS)" \
3538 "LIBS=-lcurses -lm"
3539
3540 aix43gcc:
3541 $(MAKE) aix43g
3542
3543 # None of the following aix43gcc attempts work on a gcc-only AIX 4.3.3 box.
3544 # It just plain can't find the math routines (fmod, pow, exp, sqrt, log10,...)
3545 # Which is odd because nm /usr/lib/libC.a finds them...
3546
3547 #in case aix43gcc can't find its math library...
3548 aix43gccx:
3549 @echo Making C-Kermit $(CKVER) for IBM AIX 4.3 gcc...
3550 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
3551 "CFLAGS= -mminimal-toc -g -O -DAIXRS -DAIX41 -DAIX43 -DSVR4 \
3552 -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DSELECT -DSELECT_H \
3553 -DSTERMIOX -DTCPSOCKET -DFNFLOAT -DNOGETUSERSHELL $(KFLAGS)" \
3554 "LIBS= -L/usr/local/lib/gcc-lib/powerpc-ibm-aix4.3.1.0/2.95.2 \
3555 -lcurses -bloadmap -bnoquiet"
3556
3557 #in case aix43gccx can't find its math library...
3558 aix43gccy:
3559 @echo Making C-Kermit $(CKVER) for IBM AIX 4.3 gcc...
3560 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
3561 "CFLAGS= -mminimal-toc -g -O -DAIXRS -DAIX41 -DAIX43 -DSVR4 \
3562 -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DSELECT -DSELECT_H \
3563 -DSTERMIOX -DTCPSOCKET -DFNFLOAT -DNOGETUSERSHELL $(KFLAGS)" \
3564 "LIBS= -lcurses -bloadmap -bnoquiet"
3565
3566 #in case aix43gccx can't find its math library...
3567 aix43gccz:
3568 @echo Making C-Kermit $(CKVER) for IBM AIX 4.3 gcc...
3569 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
3570 "CFLAGS= -mminimal-toc -g -O -DAIXRS -DAIX41 -DAIX43 -DSVR4 \
3571 -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DSELECT -DSELECT_H \
3572 -DSTERMIOX -DTCPSOCKET -DFNFLOAT -DNOGETUSERSHELL $(KFLAGS)" \
3573 "LIBS= -L. -lcurses -bloadmap -bnoquiet"
3574
3575 #AIX 4.3 with MIT Kerberos 5 and Kerberos 4 compatibility mode
3576 # Must NOT have CK_NEWTERM or else C-Kermit hangs after curses.
3577 # -mminimal-toc needed on some systems but not others to avoid TOC overflow.
3578 # "man ld" says -bbigtoc makes program run slower.
3579 aix43gcc+krb5+krb4:
3580 @echo Making C-Kermit $(CKVER) for IBM AIX 4.3 or higher w/Kerberos...
3581 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
3582 "CFLAGS= -mminimal-toc -g -O -DAIXRS -DAIX41 -DAIX43 -DSVR4 \
3583 -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DSELECT -DSELECT_H \
3584 -DSTERMIOX -DTCPSOCKET -DFNFLOAT -DNOGETUSERSHELL \
3585 -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 -DKRB4 -DKRB524 \
3586 -DCK_ENCRYPTION -DCK_DES -funsigned-char $(K5INC) $(K5INC)/krb5 \
3587 $(KFLAGS)" \
3588 "LIBS=$(K5LIB) -lcurses -lm -lkrb4 -ldes425 -lkrb5 \
3589 -lcom_err -lk5crypto -lcrypt -lgssapi_krb5"
3590
3591 #AIX 4.3 with MIT Kerberos 5, Kerberos 4 compatibility mode and OpenSSL
3592 # Must NOT have CK_NEWTERM or else C-Kermit hangs after curses.
3593 # -mminimal-toc needed on some systems but not others to avoid TOC overflow.
3594 # "man ld" says -bbigtoc makes program run slower.
3595 aix43gcc+krb5+krb4+openssl:
3596 @echo Making C-Kermit $(CKVER) for IBM AIX 4.3 or higher w/Kerberos...
3597 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
3598 "CFLAGS= -mminimal-toc -g -O -DAIXRS -DAIX41 -DAIX43 -DSVR4 \
3599 -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DSELECT -DSELECT_H \
3600 -DSTERMIOX -DTCPSOCKET -DFNFLOAT -DNOGETUSERSHELL \
3601 -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 -DKRB4 -DKRB524 \
3602 -DCK_ENCRYPTION -DCK_DES -DCK_CAST -DLIBDES -DCK_SSL \
3603 -funsigned-char $(K5INC) $(K5INC)/krb5 $(SSLINC) $(KFLAGS)" \
3604 "LIBS=$(K5LIB) $(SSLLIB) -lssl -lcrypto \
3605 -lcurses -lm -lkrb4 -ldes425 -lkrb5 -lcom_err -lk5crypto -lcrypt \
3606 -lgssapi_krb5"
3607
3608 aix43gcc+openssl:
3609 @echo Making C-Kermit $(CKVER) for IBM AIX 4.3 or higher w/OpenSSL...
3610 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
3611 "CFLAGS= -mminimal-toc -g -O -DAIXRS -DAIX41 -DAIX43 -DSVR4 \
3612 -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DSELECT -DSELECT_H \
3613 -DSTERMIOX -DTCPSOCKET -DFNFLOAT -DNOGETUSERSHELL \
3614 -DCK_AUTHENTICATION -DCK_SSL -funsigned-char $(SSLINC) $(KFLAGS)" \
3615 "LIBS=$(SSLLIB) -lssl -lcrypto -lcurses -lm -lcrypt"
3616
3617 aix44gcc:
3618 $(MAKE) aix43g "KFLAGS=-DAIX44 $(KFLAGS)" \
3619 KTARGET=$${KTARGET:-$(@)}
3620
3621 aix45gcc:
3622 $(MAKE) aix43g "KFLAGS=-DAIX45 $(KFLAGS)" \
3623 KTARGET=$${KTARGET:-$(@)}
3624
3625 aix50gcc:
3626 $(MAKE) aix43g "KFLAGS=-DAIX50 $(KFLAGS)" \
3627 KTARGET=$${KTARGET:-$(@)}
3628
3629 aix51gcc:
3630 $(MAKE) aix43g "KFLAGS=-DAIX51 $(KFLAGS)" \
3631 KTARGET=$${KTARGET:-$(@)}
3632
3633 aix52gcc:
3634 $(MAKE) aix43g "KFLAGS=-DAIX52 $(KFLAGS)" \
3635 KTARGET=$${KTARGET:-$(@)}
3636
3637 aix53gcc:
3638 $(MAKE) aix43g "KFLAGS=-DAIX53 $(KFLAGS)" \
3639 KTARGET=$${KTARGET:-$(@)}
3640
3641 #Bull DPX/2 with BOS/X, like AIX/RS6000
3642 bulldpx2:
3643 @echo Making C-Kermit $(CKVER) for Bull DPX/2 with BOS/X...
3644 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
3645 "CFLAGS= -DSVR3 -DDIRENT -DCK_ANSIC -DCKTYP_H=<sys/types.h> \
3646 -DCK_POLL -DNOGETUSERSHELL -DCLSOPN -DNOLEARN -O $(KFLAGS)" \
3647 "LNKFLAGS = -s"
3648
3649 #Sun UNIX 3.5 with gcc 2.3.3.
3650 sunos3gcc:
3651 @echo Making C-Kermit $(CKVER) for Sun UNIX 3.5 and gcc...
3652 $(MAKE) xermit CC=gcc CC2=gcc KTARGET=$${KTARGET:-$(@)} \
3653 CFLAGS="-g -O -DBSD4 -DTCPSOCKET $(KFLAGS)"
3654
3655 #SunOS version 4.0, BSD environment, has saved original euid feature.
3656 # Add "CC=/usr/ucb/cc CC2=/usr/ucb/cc" if necessary.
3657 # Note: Including Unicode crashes the assembler in ckcuni.c.
3658 sunos4:
3659 @echo Making C-Kermit $(CKVER) for SunOS 4.0, BSD environment...
3660 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
3661 "CFLAGS= -O -DSUNOS4 -DFNFLOAT -DNOUNICODE $(KFLAGS)" \
3662 "LIBS=-lm"
3663
3664 #As above, but with SunLink X.25 support
3665 sunos4x25:
3666 @echo SunLink X.25 support
3667 $(MAKE) "MAKE=$(MAKE)" sunos4 KTARGET=$${KTARGET:-$(@)} \
3668 "KFLAGS=$(KFLAGS) -DFNFLOAT -DSUNX25" \
3669 "LIBS=-lm"
3670
3671 #SUN OS version 4.1 - 4.1.3, BSD environment, has saved original euid feature.
3672 #Uses Honey DanBer UUCP. Requires presence of /usr/spool/locks directory.
3673 # /var/spool/ should be a symbolic link to /usr/spool/.
3674 # ... or 'make xermit "CC= /usr/ucb/cc " \'
3675 # Uses bundled Sun C compiler, pre-ANSI, no version number.
3676 # Note: "xermit" means use the select() version of the CONNECT module.
3677 # Note2: ckutio.c includes both <termios.h> and <sys/ioctl.h> and these
3678 # two header files each define the same symbols: ECHO, NL0, NL1, TAB0, etc,
3679 # because the #define's aren't enclosed in #indef ECHO..#endif, etc.
3680 # The warnings are unavoidable but harmless. Last built: 27 October 2022.
3681 sunos41:
3682 @echo Making C-Kermit $(CKVER) for SunOS 4.1 / BSD...
3683 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
3684 "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNOUNICODE $(KFLAGS)" \
3685 "LIBS= $(LIBS) -lresolv -lm"
3686
3687 #As above, but compiled with gcc. Gives 24-32K size reduction
3688 #with gcc 2.1 or 2.2.2. CAUTION: make sure "fixincludes" has been run on
3689 #the include files, so gcc's are in sync with the regular Sun ones.
3690 #This includes the curses library for fullscreen file transfer display.
3691 #NDGPWNAM needed for GCC 2.5.6, not needed for 2.4.0, but it's uncertain
3692 #whether it will do any harm for 2.4.0 compilation -- if so, remove it.
3693 sunos41gcc:
3694 @echo Making C-Kermit $(CKVER) for SunOS 4.1 with gcc and curses...
3695 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
3696 "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT \
3697 -funsigned-char $(KFLAGS)" "LIBS= -lcurses -ltermcap -lresolv -lm"
3698
3699 # As above, but without -funsigned-char so I can see the warnings that
3700 # everybody else will get when they use ANSI compilers that don't have this
3701 # option (gsc = gcc signed char).
3702 sunos41gsc:
3703 @echo Making C-Kermit $(CKVER) for SunOS 4.1 with gcc and curses...
3704 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
3705 "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT \
3706 $(KFLAGS)" "LIBS= -lcurses -ltermcap -lresolv -lm"
3707
3708 #As above but with ckucon.c rather than ckucns.c (for testing only)
3709 sunos41gccfork:
3710 @echo Making C-Kermit $(CKVER) for SunOS 4.1 with gcc and curses...
3711 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
3712 "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT \
3713 -DNOLEARN -funsigned-char $(KFLAGS)" \
3714 "LIBS= -lcurses -ltermcap -lresolv -lm"
3715
3716 #as above but configured for Kerberos IV
3717 sunos41gcc+krb4:
3718 @echo Making C-Kermit $(CKVER) for SunOS 4.1, gcc, curses, krb4...
3719 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
3720 "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT \
3721 -DTCPSOCKET -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB4 \
3722 -DCK_ENCRYPTION -DCK_DES -DCK_CAST -DBIGBUFOK -funsigned-char \
3723 $(K4INC) $(KFLAGS)" \
3724 "LIBS= $(K4LIB) -lcurses -ltermcap -lresolv -lm -lkrb -ldes"
3725
3726 #as above but configured for SSL/TLS
3727 sunos41gcc+openssl:
3728 @echo Making C-Kermit $(CKVER) for SunOS 4.1, gcc, curses, ssl...
3729 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
3730 "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT \
3731 -DCK_AUTHENTICATION -funsigned-char \
3732 -DCK_SSL -DTCPSOCKET -DBIGBUFOK $(SSLINC) $(KFLAGS)" \
3733 "LIBS= $(SSLLIB) -lcurses -ltermcap -lresolv -lm -lssl -lcrypto"
3734
3735 #as above but configured for Kerberos IV and SSL/TLS
3736 sunos41gcc+krb4+openssl:
3737 @echo Making C-Kermit $(CKVER) for SunOS 4.1, gcc, curses, krb4...
3738 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
3739 "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT \
3740 -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB4 -DCK_ENCRYPTION -DCK_DES \
3741 -DCK_CAST -DCK_SSL -DLIBDES -DTCPSOCKET -DBIGBUFOK -funsigned-char \
3742 $(K4INC) $(SSLINC) $(KFLAGS)" \
3743 "LIBS= $(K4LIB) $(SSLLIB) \
3744 -lcurses -ltermcap -lresolv -lm -lkrb -lssl -lcrypto"
3745
3746 #as above but configured for Kerberos IV and ZLIB enabled SSL/TLS
3747 sunos41gcc+krb4+openssl+zlib:
3748 @echo Making C-Kermit $(CKVER) for SunOS 4.1, gcc, curses, krb4...
3749 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
3750 "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT \
3751 -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB4 -DCK_ENCRYPTION -DCK_DES \
3752 -DCK_CAST -DCK_SSL -DLIBDES -DTCPSOCKET -DBIGBUFOK -funsigned-char \
3753 -DZLIB $(K4INC) $(SSLINC) \
3754 $(KFLAGS)" \
3755 "LIBS= $(K4LIB) $(SSLLIB) \
3756 -lcurses -ltermcap -lresolv -lm -lkrb -lssl -lcrypto -lz"
3757
3758 #as above but configured for Kerberos IV and SRP and ZLIB enabled SSL/TLS
3759 sunos41gcc+krb4+srp+openssl+zlib:
3760 @echo "C-Kermit $(CKVER) SunOS 4.1: gcc,curses,krb4,srp,ssl,zlib..."
3761 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
3762 "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT \
3763 -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB4 -DCK_ENCRYPTION -DCK_DES \
3764 -DCK_CAST -DCK_SSL -DLIBDES -DTCPSOCKET -DBIGBUFOK -funsigned-char \
3765 -DZLIB -DCK_SRP $(K4INC) $(SRPINC) $(SSLINC) $(KFLAGS)" \
3766 "LIBS= $(K4LIB) $(SRPLIB) $(SSLLIB) \
3767 -lcurses -ltermcap -lresolv -lm -lkrb -lkrypto \
3768 -lsrp -lssl -lcrypto -lz"
3769
3770 #as above but configured for Kerberos IV and SRP and ZLIB enabled SSL/TLS
3771 sunos41gcc+srp+openssl+zlib:
3772 @echo "C-Kermit $(CKVER) SunOS 4.1: gcc,curses,srp,ssl,zlib..."
3773 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
3774 "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT \
3775 -DCK_AUTHENTICATION -DCK_ENCRYPTION -DCK_DES \
3776 -DCK_CAST -DCK_SSL -DLIBDES -DTCPSOCKET -DBIGBUFOK -funsigned-char \
3777 -DZLIB -DCK_SRP $(SRPINC) $(SSLINC) \
3778 $(KFLAGS)" \
3779 "LIBS= $(SRPLIB) $(SSLLIB) \
3780 -lcurses -ltermcap -lresolv -lm -lkrypto -lsrp -lssl -lcrypto -lz "
3781
3782 #SUNOS 4.1 as sunos41 above, but also with curses support
3783 sunos41c:
3784 @echo Curses support
3785 $(MAKE) "MAKE=$(MAKE)" sunos41 KTARGET=$${KTARGET:-$(@)} \
3786 "KFLAGS=$(KFLAGS) -DCK_CURSES -DFNFLOAT " \
3787 "LIBS= -lcurses -ltermcap"
3788
3789 #As SunOS 4.1.x, gcc, configured as Internet Kermit Server.
3790 # . NOLOCAL removes capability to make connections
3791 # . TNCODE allows server-side Telnet negotiation.
3792 # . used to include -lpwent, why?
3793 # . used to include -L/usr/local/lib -lm, why?
3794 sunos41giks:
3795 @echo Making C-Kermit $(CKVER) for SunOS 4.1 with gcc for IKS...
3796 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
3797 "CFLAGS= -O -DSUNOS41 -DNDGPWNAM -DFNFLOAT \
3798 -DNOLOCAL -DTCPSOCKET -DTNCODE -DNOPUSH $(KFLAGS)" \
3799 "LIBS= -lm -lresolv"
3800
3801 #SUNOS 4.1 with SunLink X.25 support
3802 sunos41x25:
3803 @echo SunLink X.25 support
3804 $(MAKE) "MAKE=$(MAKE)" wermit KTARGET=$${KTARGET:-$(@)} \
3805 "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNOUNICODE -DFNFLOAT -DSUNX25 \
3806 -DNOLEARN $(KFLAGS)" "LIBS= $(LIBS) -lresolv -lm"
3807
3808 #SUNOS 4.1 with SunLink X.25 support and curses
3809 sunos41x25c:
3810 @echo SunLink X.25 support + curses
3811 $(MAKE) "MAKE=$(MAKE)" wermit KTARGET=$${KTARGET:-$(@)} \
3812 "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNOUNICODE -DFNFLOAT -DSUNX25 \
3813 -DCK_CURSES -DNOLEARN $(KFLAGS)" \
3814 "LIBS= $(LIBS) -lcurses -ltermcap -lresolv -lm"
3815
3816 #SUN with Solaris 2.0 = SunOS 5.0.
3817 #Mostly the same as System V R4. Don't use this with later Solaris versions.
3818 solaris20:
3819 @echo 'Making C-Kermit $(CKVER) for Sun with Solaris 2.0 and curses...'
3820 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
3821 "CFLAGS = -O -DSVR4 -DSOLARIS -DDIRENT -DHDBUUCP -DSTERMIOX \
3822 -DTCPSOCKET -DCK_CURSES -DFNFLOAT -DCK_POLL $(KFLAGS)" \
3823 "LIBS= -lsocket -lnsl -lcurses -ltermlib -lm" "LNKFLAGS = -s"
3824
3825 #SUN with Solaris 2.0.
3826 #As above, but built with the gcc compiler from the Cygnus CD-ROM.
3827 solaris20g:
3828 @echo 'Making C-Kermit $(CKVER) for Sun Solaris 2.0, gcc, and curses..'
3829 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
3830 "CFLAGS = -O -DSVR4 -DSOLARIS -DDIRENT -DHDBUUCP -DSTERMIOX \
3831 -DTCPSOCKET -DCK_CURSES -DCK_POLL -DFNFLOAT $(KFLAGS)" \
3832 "LIBS= -lsocket -lnsl -lcurses -ltermlib -lm" "LNKFLAGS = -s" \
3833 CC=/opt/cygnus-sol2-1.1/bin/gcc CC2=/opt/cygnus-sol2-1.1/bin/gcc
3834
3835 #SunOS 5.1 = Solaris 2.1.
3836 #NOTE: A C compiler is no longer bundled with SunOS 5.1, so to compile C
3837 #programs, you might have to change your PATH to include the directory
3838 #/usr/ccs/bin AFTER the directory containing the compiler. SunPRO C is
3839 #installed by default in /opt/SUNWspro/bin. So a sample PATH might be:
3840 #
3841 # /usr/local/bin:/usr/bin:/opt/SUNWspro/bin:/usr/ccs/bin:\
3842 # /usr/ucb:/usr/sbin:/sbin:.
3843 #
3844 # or:
3845 #
3846 # /usr/openwin/bin:/export/home/SUNWspro/bin:/usr/ccs/bin:/usr/sbin:/usr/bin.
3847 #
3848 #NOTE 2: Compilation with the Apogee C compiler (apcc) might not work,
3849 #because it refuses to allow "-Usun". Reportedly, newer releases of apcc
3850 #(such as 1.2.17) work OK, use: "make -e sunos51 CC=apcc CC2=apcc".
3851 solaris21:
3852 @echo 'Making C-Kermit $(CKVER) for SunOS 5.x....'
3853 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
3854 "CFLAGS = -O -Usun -DSVR4 -DSOLARIS -DDIRENT -DHDBUUCP -DFNFLOAT \
3855 -DSELECT -DNODEBUG -DSTERMIOX $(KFLAGS)" "LIBS = -lm" "LNKFLAGS = -s"
3856
3857 #Solaris 2.0 - 2.4, SunPro compiler, includes curses and TCP/IP.
3858 #When using SUNWspro CC 2.0.1 under Solaris 2.3, be sure all cc patches
3859 #are applied, otherwise corrupt or truncated object files can result.
3860 #To build, set your PATH as follows:
3861 # /usr/local/bin:/usr/bin:/opt/SUNWspro/bin:/usr/ccs/bin:\
3862 # /usr/ucb:/usr/sbin:/sbin:.
3863 # or (depending on where the compiler has been installed):
3864 # /usr/openwin/bin:/export/home/SUNWspro/bin:/usr/ccs/bin:/usr/sbin:/usr/bin.
3865 #For additional optimization try using "-fast -xO4 -xdepend".
3866 solaris2x:
3867 @echo 'Making C-Kermit $(CKVER) for Solaris 2.x with SunPro cc...'
3868 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
3869 "CFLAGS = -O -Usun -i -DSVR4 -DDIRENT -DSOLARIS -DHDBUUCP -DFNFLOAT \
3870 -DSELECT -DCK_CURSES -DCK_NEWTERM -DSTERMIOX -DTCPSOCKET $(KFLAGS)" \
3871 "LNKFLAGS = -s" "LIBS= -ltermlib -lsocket -lnsl -lm -lresolv"
3872
3873 #as above but configured for Kerberos IV
3874 solaris2x+krb4:
3875 @echo 'Making C-Kermit $(CKVER) for Solaris 2.x, SunPro cc, krb4...'
3876 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
3877 "CFLAGS = -O -Usun -i -DSVR4 -DDIRENT -DSOLARIS -DHDBUUCP -DFNFLOAT \
3878 -DSELECT -DCK_CURSES -DCK_NEWTERM -DSTERMIOX -DTCPSOCKET \
3879 -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB4 \
3880 -DCK_ENCRYPTION -DCK_DES -DCK_CAST $(K4INC) $(KFLAGS)" \
3881 "LNKFLAGS = -s" \
3882 "LIBS= $(K4LIB) -ltermlib -lsocket -lnsl -lm -lresolv -lkrb -ldes"
3883
3884 #C-Kermit for Solaris 2.0-2.4 compiled with gcc, includes curses and TCP/IP.
3885 #Change -O2 to -O if -O2 gives trouble.
3886 #Remove -Usun if it causes trouble.
3887 #Your PATH should start with something like:
3888 # /usr/local/gnu/bin:/usr/ccs/bin:
3889 #Produces a huge executable -- strip with /usr/ccs/bin/strip (not Gnu strip).
3890 #Also don't add "LNKFLAGS = -s" -- strip manually instead.
3891 #Also note: this can NOT be linked statically - Sun makes it impossible.
3892 #And for Solaris 2.4, you might have to replace:
3893 # /usr/local/lib/gcc-lib/i486-sun-solaris2/2.4.5/include/sys/stat.h
3894 #with /usr/include/sys/stat.h.
3895 solaris2xg:
3896 @echo 'Making C-Kermit $(CKVER) for Solaris 2.x with GNU cc...'
3897 @echo 'Please read the comments that accompany the solaris2xg target.'
3898 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
3899 "CFLAGS = -g -O -Usun -DSVR4 -DSOLARIS -DSTERMIOX -DSELECT -DFNFLOAT \
3900 -DCK_CURSES -DCK_NEWTERM -DDIRENT -DHDBUUCP -DTCPSOCKET $(KFLAGS)" \
3901 "LIBS= -ltermlib -lsocket -lnsl -lm -lresolv $(LIBS)"
3902
3903 #ditto but no curses.
3904 solaris2xgnc:
3905 @echo 'Making C-Kermit $(CKVER) for Solaris 2.x with GNU cc...'
3906 @echo 'Please read the comments that accompany the solaris2xg target.'
3907 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
3908 "CFLAGS = -g -O -Usun -DSVR4 -DSOLARIS -DSTERMIOX -DSELECT -DFNFLOAT \
3909 -DDIRENT -DHDBUUCP -DTCPSOCKET $(KFLAGS)" \
3910 "LIBS= -lsocket -lnsl -lm -lresolv $(LIBS)"
3911
3912 #and with Kerberos IV
3913 solaris2xg+krb4:
3914 @echo 'Making C-Kermit $(CKVER) for Solaris 2.x with GNU cc, krb4...'
3915 @echo 'Please read the comments that accompany the solaris2xg target.'
3916 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
3917 "CFLAGS = -g -O -Usun -DSVR4 -DSOLARIS -DSTERMIOX -DSELECT -DFNFLOAT \
3918 -DCK_CURSES -DCK_NEWTERM -DDIRENT -DHDBUUCP -DTCPSOCKET \
3919 -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB4 -DCK_ENCRYPTION \
3920 -DCK_DES -DCK_CAST -DBIGBUFOK $(K4INC) $(KFLAGS)" \
3921 "LIBS= $(K4LIB) -ltermlib -lsocket -lnsl -lm -lresolv -lkrb -ldes \
3922 $(LIBS)"
3923
3924 #and with OpenSSL,ZLIB,PAM,SHADOW
3925 solaris2xg+openssl+zlib+pam+shadow:
3926 @echo 'Making C-Kermit $(CKVER) for Solaris 2.x with gcc, OpenSSL...'
3927 @echo 'Please read the comments that accompany the solaris2xg target.'
3928 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
3929 "CFLAGS = -g -O -Usun -DSVR4 -DSOLARIS -DSTERMIOX -DSELECT -DFNFLOAT \
3930 -DCK_CURSES -DCK_NEWTERM -DDIRENT -DHDBUUCP -DTCPSOCKET \
3931 -DCK_AUTHENTICATION -DCK_SSL -DCK_PAM -DCK_SHADOW -DZLIB \
3932 -DBIGBUFOK $(SSLINC) $(KFLAGS)" \
3933 "LIBS= $(SSLLIB) -ltermlib \
3934 -lsocket -lnsl -lm -lresolv -lssl -lcrypto -lpam -lz"
3935
3936 #Ditto but with GCC 3.1 in which you have to specify 32-bit with -m32.
3937 #In Solaris 9 (and maybe 8) you'll also need specifiy the Library path.
3938 #Reportedly this can be done here, but only with:
3939 # crle -l /usr/lib:/usr/local/ssl/lib
3940 #prior to building. Note: 64-bit not tested with SSL.
3941 #For no-crypto 64-bit builds see the solaris9g64 target.
3942 solaris2xg32+openssl+zlib+pam+shadow:
3943 @echo 'Making C-Kermit $(CKVER) for Solaris 2.x with gcc, OpenSSL...'
3944 @echo 'Please read the comments that accompany the solaris2xg target.'
3945 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC="gcc -m32" CC2="gcc -m32" \
3946 "CFLAGS = -g -O -Usun -DSVR4 -DSOLARIS -DSTERMIOX -DSELECT -DFNFLOAT \
3947 -DCK_CURSES -DCK_NEWTERM -DDIRENT -DHDBUUCP -DTCPSOCKET \
3948 -DCK_AUTHENTICATION -DCK_SSL -DCK_PAM -DCK_SHADOW -DZLIB \
3949 -DBIGBUFOK $(SSLINC) $(KFLAGS)" \
3950 "LIBS= $(SSLLIB) -ltermlib \
3951 -lsocket -lnsl -lm -lresolv -lssl -lcrypto -lpam -lz"
3952
3953 #and with Krb5,Krb4,OpenSSL,SHADOW
3954 solaris2xg+krb5+krb4+openssl+shadow:
3955 @echo 'Making C-Kermit $(CKVER) for Solaris 2.x with gcc,k5,k4,ssl...'
3956 @echo 'Please read the comments that accompany the solaris2xg target.'
3957 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
3958 "CFLAGS = -O -Usun -DSVR4 -DSOLARIS -DSTERMIOX -DSELECT -DFNFLOAT \
3959 -DCK_CURSES -DCK_NEWTERM -DDIRENT -DHDBUUCP -DTCPSOCKET \
3960 -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 -DKRB4 -DKRB524 \
3961 -DCK_ENCRYPTION -DCK_SSL -DCK_DES -DCK_CAST -DBIGBUFOK \
3962 $(K5INC) $(K5INC)/krb5 $(SSLINC) $(KFLAGS)" \
3963 "LIBS= $(K5LIB) $(SSLLIB) -ltermlib -lsocket -lnsl -lm -lresolv \
3964 -lkrb4 -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto \
3965 -ldes $(LIBS)"
3966
3967 #and with OpenSSL
3968 solaris2xg+openssl+pam+shadow:
3969 @echo 'Making C-Kermit $(CKVER) for Solaris 2.x with gcc, OpenSSL...'
3970 @echo 'Please read the comments that accompany the solaris2xg target.'
3971 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
3972 "CFLAGS = -g -O -Usun -DSVR4 -DSOLARIS -DSTERMIOX -DSELECT -DFNFLOAT \
3973 -DCK_CURSES -DCK_NEWTERM -DDIRENT -DHDBUUCP -DTCPSOCKET \
3974 -DCK_AUTHENTICATION -DCK_SSL -DCK_PAM -DCK_SHADOW \
3975 -DBIGBUFOK $(SSLINC) $(KFLAGS)" \
3976 "LIBS= $(SSLLIB) -ltermlib \
3977 -lsocket -lnsl -lm -lresolv -lssl -lcrypto -lpam"
3978
3979 solaris2xg+openssl+zlib+srp+pam+shadow:
3980 @echo 'Making C-Kermit $(CKVER) for Solaris 2.x with gcc, OpenSSL...'
3981 @echo 'Please read the comments that accompany the solaris2xg target.'
3982 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
3983 "CFLAGS = -g -O -Usun -DSVR4 -DSOLARIS -DSTERMIOX -DSELECT -DFNFLOAT \
3984 -DCK_CURSES -DCK_NEWTERM -DDIRENT -DHDBUUCP -DTCPSOCKET -DBIGBUFOK \
3985 -DCK_AUTHENTICATION -DCK_ENCRYPTION -DCK_DES -DLIBDES -DCK_CAST \
3986 -DCK_SSL -DCK_PAM -DCK_SHADOW -DZLIB -DCK_SRP $(SSLINC) $(KFLAGS)" \
3987 "LIBS= $(SSLLIB) -ltermlib -lsocket -lnsl -lm -lresolv -lsrp -lssl \
3988 -ldes -lkrypto -lcrypto -lpam -lz"
3989
3990 solaris22g:
3991 $(MAKE) "MAKE=$(MAKE)" "KFLAGS=-DPOSIX_CRTSCTS $(KFLAGS)" solaris2xg \
3992 KTARGET=$${KTARGET:-$(@)}
3993
3994 solaris23g:
3995 $(MAKE) "MAKE=$(MAKE)" "KFLAGS=-DPOSIX_CRTSCTS $(KFLAGS)" solaris2xg \
3996 KTARGET=$${KTARGET:-$(@)}
3997
3998 #Solaris 2.4 built with gcc
3999 solaris24g:
4000 $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET:-$(@)} \
4001 solaris2xg "KFLAGS=-DSOLARIS24 -DPOSIX_CRTSCTS $(KFLAGS)"
4002
4003 #Solaris 2.0-2.3, SunPro compiler, with SunLink X.25 support.
4004 #This will only run if user has /opt/SUNWconn/lib/libsockx25.so.1
4005 #exists and can be dynamically linked.
4006 #NOTE: Do not change target to xermit -- it doesn't support X.25.
4007 solaris2x25:
4008 @echo 'Making C-Kermit $(CKVER) for Solaris 2.x+X.25 with SunPro cc...'
4009 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
4010 "CFLAGS = -O -i -Usun -DSVR4 -DSOLARIS -DDIRENT \
4011 -DSUNX25 -DTCPSOCKET -DHDBUUCP -DFNFLOAT -DNOLEARN \
4012 -DSELECT -DCK_CURSES -DCK_NEWTERM -DSTERMIOX $(KFLAGS)" \
4013 "LNKFLAGS = -s" \
4014 "LIBS= -ltermlib -L/opt/SUNWconn/lib -R/opt/SUNWconn/lib \
4015 -lsockx25 -lsocket -lnsl -lm -lresolv"
4016
4017 #Solaris 2.0-2.4, gcc, SunLink X.25 added.
4018 #NOTE: Can't use xermit target with X.25.
4019 solaris2xgx25:
4020 @echo 'Making C-Kermit $(CKVER) for Solaris 2.x + X.25 with GNU cc...'
4021 @echo 'Please read the comments that accompany the solaris2xg entry.'
4022 $(MAKE) wermit CC=gcc CC2=gcc KTARGET=$${KTARGET:-$(@)} \
4023 "CFLAGS = -g -O -Usun -DSVR4 -DSOLARIS -DSTERMIOX -DSELECT -DSUNX25 \
4024 -DCK_CURSES -DCK_NEWTERM -DDIRENT -DHDBUUCP -DTCPSOCKET -DFNFLOAT \
4025 -DNOLEARN $(KFLAGS)" \
4026 "LIBS= -ltermlib -lm -L/opt/SUNWconn/lib -R/opt/SUNWconn/lib \
4027 -lsockx25 -lsocket -lnsl"
4028
4029 #Solaris 2.4, SunPro compiler, with SunLink X.25 support.
4030 #This will only run if user has /opt/SUNWconn/lib/libsockx25.so.1
4031 #exists and can be dynamically linked.
4032 solaris24x25:
4033 @echo 'Making C-Kermit $(CKVER) for Solaris 2.4+X.25 with SunPro cc...'
4034 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
4035 "CFLAGS = -O -i -Usun -DSVR4 -DSOLARIS -DSOLARIS24 -DDIRENT -DNOLEARN \
4036 -DSUNX25 -DTCPSOCKET -DHDBUUCP -DFNFLOAT -DPOSIX_CRTSCTS \
4037 -DSELECT -DCK_CURSES -DCK_NEWTERM -DSTERMIOX $(KFLAGS)" \
4038 "LNKFLAGS = -s" \
4039 "LIBS= -ltermlib -L/opt/SUNWconn/lib -R/opt/SUNWconn/lib \
4040 -lsockx25 -lsocket -lnsl -lm -lresolv"
4041
4042 #Solaris 2.5, SunPro compiler, with SunLink X.25 support.
4043 solaris25x25:
4044 @echo 'Making C-Kermit $(CKVER) for Solaris 2.5+X.25 with SunPro cc...'
4045 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
4046 "CFLAGS = -O -i -Usun -DSVR4 -DSOLARIS25 -DDIRENT -DSUNX25 \
4047 -DTCPSOCKET -DHDBUUCP -DSELECT -DCK_CURSES \
4048 -DCK_NEWTERM -DSTERMIOX -DFNFLOAT -DPOSIX_CRTSCTS -DNOLEARN \
4049 -I/opt/SUNWconn/include $(KFLAGS)" \
4050 "LIBS= -ltermlib -L/opt/SUNWconn/lib -R/opt/SUNWconn/lib \
4051 -lsockx25 -lsocket -lnsl -lm -lresolv"
4052
4053 solaris23:
4054 $(MAKE) "MAKE=$(MAKE)" solaris2x KTARGET=$${KTARGET:-$(@)} \
4055 "KFLAGS=$(KFLAGS)"
4056
4057 solaris24:
4058 $(MAKE) "MAKE=$(MAKE)" solaris2x KTARGET=$${KTARGET:-$(@)} \
4059 "KFLAGS=-DSOLARIS24 -DPOSIX_CRTSCTS $(KFLAGS)"
4060
4061 # template for Solaris 2.5 and above.
4062 solaris25x:
4063 @echo 'Making C-Kermit $(CKVER) for Solaris 2.x with SunPro cc...'
4064 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
4065 "CFLAGS = -DFNFLOAT -O -Usun -i $(KFLAGS)" \
4066 "LNKFLAGS = -s" \
4067 "LIBS= -ltermlib -lsocket -lnsl -lm -lresolv $(LIBS)"
4068
4069 #Solaris 2.5, SunPro compiler, curses, TCP/IP
4070 solaris25:
4071 $(MAKE) "MAKE=$(MAKE)" solaris25x KTARGET=$${KTARGET:-$(@)} \
4072 "KFLAGS=-DSOLARIS25 $(KFLAGS)"
4073
4074 #Solaris 2.5, SunPro compiler, curses, TCP/IP, Kerberos IV
4075 solaris25+krb4:
4076 $(MAKE) "MAKE=$(MAKE)" solaris25x+krb4 KTARGET=$${KTARGET:-$(@)} \
4077 "KFLAGS=-DSOLARIS25 $(KFLAGS)"
4078
4079 #Solaris 2.5 built with gcc
4080 solaris25g:
4081 $(MAKE) "MAKE=$(MAKE)" solaris2xg KTARGET=$${KTARGET:-$(@)} \
4082 "KFLAGS=-funsigned-char -DSOLARIS25 $(KFLAGS)"
4083
4084 #Solaris 2.5 built with gcc and Kerberos IV
4085 solaris25g+krb4:
4086 $(MAKE) "MAKE=$(MAKE)" solaris2xg+krb4 KTARGET=$${KTARGET:-$(@)} \
4087 "KFLAGS=-funsigned-char -DSOLARIS25 $(KFLAGS)"
4088
4089 #Solaris 2.5 built with gcc and Kerberos V/IV, SSL, ...
4090 solaris25g+krb5+krb4+openssl+shadow:
4091 $(MAKE) "MAKE=$(MAKE)" solaris2xg+krb5+krb4+openssl+shadow \
4092 KTARGET=$${KTARGET:-$(@)} \
4093 "KFLAGS=-funsigned-char -DSOLARIS25 $(KFLAGS)"
4094
4095 #Solaris 2.5, gcc, SunLink X.25 added.
4096 solaris25gx25:
4097 $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET:-$(@)} solaris2xgx25 \
4098 "KFLAGS=-DSOLARIS25 $(KFLAGS)"
4099
4100 #Solaris 2.6, gcc, SunLink X.25 added.
4101 solaris26gx25:
4102 $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET:-$(@)} solaris2xgx25 \
4103 "KFLAGS=-DSOLARIS26 -DCK_PAM -DCK_SHADOW $(KFLAGS)" \
4104 "LIBS= -lpam"
4105
4106 #Solaris 2.6, SunPro compiler, curses, TCP/IP
4107 solaris26:
4108 $(MAKE) "MAKE=$(MAKE)" solaris25x KTARGET=$${KTARGET:-$(@)} \
4109 "KFLAGS=-DSOLARIS26 -DCK_PAM -DCK_SHADOW $(KFLAGS)" \
4110 "LIBS= -lpam"
4111
4112 #Solaris 2.6 with gcc
4113 solaris26g:
4114 $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET:-$(@)} solaris2xg \
4115 "KFLAGS= -DSOLARIS26 -DCK_PAM -DCK_SHADOW $(KFLAGS)" \
4116 "LIBS = -lpam"
4117
4118 #Solaris 2.6 with gcc and SSL
4119 solaris26g+openssl:
4120 $(MAKE) "MAKE=$(MAKE)" solaris2xg+openssl+pam+shadow \
4121 KTARGET=$${KTARGET:-$(@)} "KFLAGS= -DSOLARIS26 $(KFLAGS)"
4122
4123 #Solaris 2.6 with gcc, no curses (e.g. because libtermlib is missing).
4124 solaris26gnc:
4125 $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET:-$(@)} solaris2xgnc \
4126 "KFLAGS= -DSOLARIS26 -DCK_PAM -DCK_SHADOW $(KFLAGS)" \
4127 "LIBS= -lpam"
4128
4129 #Solaris 2.6, SunPro compiler, with SunLink X.25 support.
4130 solaris26x25:
4131 @echo 'Making C-Kermit $(CKVER) for Solaris 2.6+X.25 with SunPro cc...'
4132 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
4133 "CFLAGS = -O -i -Usun -DSVR4 -DSOLARIS26 -DDIRENT -DSUNX25 \
4134 -DTCPSOCKET -DHDBUUCP -DSELECT -DCK_CURSES -DCK_PAM -DCK_SHADOW \
4135 -DCK_NEWTERM -DSTERMIOX -DFNFLOAT -DPOSIX_CRTSCTS -DNOLEARN \
4136 -I/opt/SUNWconn/include $(KFLAGS)" \
4137 "LIBS= -ltermlib -L/opt/SUNWconn/lib -R/opt/SUNWconn/lib \
4138 -lsockx25 -lsocket -lnsl -lm -lresolv -lpam"
4139
4140 #Solaris 7 (2.7) with Sun CC
4141 solaris7:
4142 $(MAKE) "MAKE=$(MAKE)" solaris25x KTARGET=$${KTARGET:-$(@)} \
4143 "KFLAGS=-DSOLARIS7 -DCK_PAM -DCK_SHADOW $(KFLAGS)" \
4144 "LIBS= -lpam"
4145
4146 #Solaris 7 with gcc (32-bit)
4147 solaris7g:
4148 $(MAKE) "MAKE=$(MAKE)" solaris2xg KTARGET=$${KTARGET:-$(@)} \
4149 "KFLAGS=-DSOLARIS7 -DCK_PAM -DCK_SHADOW $(KFLAGS)" \
4150 "LIBS= -lpam"
4151
4152 #Solaris 7 with gcc + Kerberos IV (32-bit)
4153 solaris7g+krb4:
4154 $(MAKE) "MAKE=$(MAKE)" solaris2xg+krb4 KTARGET=$${KTARGET:-$(@)} \
4155 "KFLAGS=-DSOLARIS7 -DCK_PAM -DCK_SHADOW $(KFLAGS)" \
4156 "LIBS= -lpam"
4157
4158 solaris7g+openssl+zlib+pam+shadow:
4159 $(MAKE) "MAKE=$(MAKE)" solaris2xg+openssl+zlib+pam+shadow \
4160 KTARGET=$${KTARGET:-$(@)} \
4161 "KFLAGS=-DSOLARIS7 -DCK_PAM -DCK_SHADOW $(KFLAGS)"
4162
4163 #Solaris 7 with gcc + OpenSSL (32-bit)
4164 solaris7g+openssl+zlib+srp+pam+shadow:
4165 $(MAKE) "MAKE=$(MAKE)" solaris2xg+openssl+zlib+srp+pam+shadow \
4166 KTARGET=$${KTARGET:-$(@)} \
4167 "KFLAGS=-DSOLARIS7 -DCK_PAM -DCK_SHADOW $(KFLAGS)"
4168
4169 #Solaris 8
4170 solaris8:
4171 $(MAKE) "MAKE=$(MAKE)" solaris25x KTARGET=$${KTARGET:-$(@)} \
4172 "KFLAGS=-DSOLARIS8 -DCK_PAM -DCK_SHADOW $(KFLAGS)" \
4173 "LIBS= -lpam"
4174
4175 #Solaris 8 with gcc (32-bit)
4176 solaris8g:
4177 $(MAKE) "MAKE=$(MAKE)" solaris2xg KTARGET=$${KTARGET:-$(@)} \
4178 "KFLAGS=-DSOLARIS8 -DCK_PAM -DCK_SHADOW $(KFLAGS)" \
4179 "LIBS= -lpam"
4180
4181 # In OpenSSL builds add -ldl if you get unresolved references for
4182 # dlclose, dlsym, dlopen, dlerror.
4183
4184 #Solaris 8 with gcc + OpenSSL (32-bit)
4185 solaris8g+openssl+zlib+pam+shadow:
4186 $(MAKE) "MAKE=$(MAKE)" solaris2xg+openssl+zlib+pam+shadow \
4187 KTARGET=$${KTARGET:-$(@)} "KFLAGS=-DSOLARIS8 $(KFLAGS)"
4188
4189 #Solaris 8 with gcc + Kerberos IV (32-bit)
4190 solaris8g+krb4:
4191 $(MAKE) "MAKE=$(MAKE)" solaris2xg+krb4 KTARGET=$${KTARGET:-$(@)} \
4192 "KFLAGS=-DSOLARIS8 -DCK_PAM -DCK_SHADOW $(KFLAGS)" \
4193 "LIBS= -lpam"
4194
4195 solaris9nolfs:
4196 $(MAKE) "MAKE=$(MAKE)" solaris25x KTARGET=$${KTARGET:-$(@)} \
4197 "KFLAGS=-DSOLARIS9 -DCK_PAM -DCK_SHADOW -DUSE_STRERROR $(KFLAGS)" \
4198 "LIBS= -lpam"
4199
4200 #Solaris 9 with malloc debugging
4201 solaris9md:
4202 $(MAKE) mermit KTARGET=$${KTARGET:-$(@)} \
4203 "CFLAGS = -DFNFLOAT -O -Usun -i -D_FILE_OFFSET_BITS=64 \
4204 -DSOLARIS9 -Dmalloc=dmalloc -Dfree=dfree -DMDEBUG \
4205 -DCK_PAM -DCK_SHADOW -DUSE_STRERROR $(KFLAGS)" \
4206 "LIBS= -lpam -ltermlib -lsocket -lnsl -lm -lresolv"
4207
4208 #Solaris 9 with gcc + OpenSSL + Shadow (32-bit)
4209 #Add -DOPENSSL_097 for OpenSSL 0.9.7 or later.
4210 solaris9g+openssl+shadow+pam+zlib:
4211 $(MAKE) "MAKE=$(MAKE)" solaris2xg+openssl+zlib+pam+shadow \
4212 KTARGET=$${KTARGET:-$(@)} \
4213 "KFLAGS=-DSOLARIS9 -DHDBUUCP -DDIRENT -D_FILE_OFFSET_BITS=64 \
4214 -DNO_DCL_INET_ATON -DZLIB -DCK_PAM -DCK_SHADOW -DLIBDES $(KFLAGS)" \
4215 "LIBS= -lpam -ldes425 -lz $(LIBS)"
4216
4217 #Solaris 9 with gcc + OpenSSL + Kerberos 5 + Krb4 + Shadow (32-bit)
4218 #Add -DOPENSSL_097 for OpenSSL 0.9.7 or later.
4219 solaris9g+krb5+krb4+openssl+shadow+pam+zlib:
4220 $(MAKE) "MAKE=$(MAKE)" solaris2xg+krb5+krb4+openssl+shadow \
4221 KTARGET=$${KTARGET:-$(@)} \
4222 "KFLAGS=-DSOLARIS9 -DHDBUUCP -DDIRENT -D_FILE_OFFSET_BITS=64 \
4223 -DNO_DCL_INET_ATON -DZLIB -DCK_PAM -DCK_SHADOW -DLIBDES $(KFLAGS)" \
4224 "LIBS= -lpam -ldes -lz $(LIBS)"
4225
4226 #Solaris 9 with gcc + Kerberos 4 and 5:
4227 solaris9g+krb5+krb4:
4228 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
4229 "CFLAGS = -O -Usun -DSVR4 -DSOLARIS9 -DSTERMIOX -DSELECT -DFNFLOAT \
4230 -DCK_CURSES -DCK_NEWTERM -DDIRENT -DHDBUUCP -DTCPSOCKET \
4231 -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 -DKRB4 -DKRB524 \
4232 -D_FILE_OFFSET_BITS=64 \
4233 -DCK_ENCRYPTION -DCK_DES -DCK_CAST -DBIGBUFOK \
4234 $(K5INC) $(K5INC)/krb5 $(KFLAGS)" \
4235 "LIBS= $(K5LIB) -ltermlib -lsocket -lnsl -lm -lresolv \
4236 -lkrb4 -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto \
4237 -ldes $(LIBS)"
4238
4239 #Solaris 9, 10, or 11 with gcc...
4240 #Uses streams PTYs rather than BSD ptys as in C-Kermit 8.0 and earlier.
4241 #This target is chained to be the secure solaris9g+xxx targets below.
4242 solaris9g solaris10g solaris11g:
4243 @echo 'Making C-Kermit $(CKVER) for Solaris 9 or later with gcc'
4244 @case `uname -r` in \
4245 5.9) SOLARISVERSION="-DSOLARIS9" ;; \
4246 5.10) SOLARISVERSION="-DSOLARIS10" ;; \
4247 5.11) SOLARISVERSION="-DSOLARIS11" ;; \
4248 *) SOLARISVERSION="-DSOLARIS" ;; \
4249 esac ; \
4250 $(MAKE) "MAKE=$(MAKE)" CC="gcc -m32" CC2="gcc -m32" xermit \
4251 KTARGET=$${KTARGET:-$(@)} \
4252 "CFLAGS = -g -O -Usun -DSVR4 $$SOLARISVERSION -DUSE_STRERROR \
4253 -DSTERMIOX -DSELECT -DFNFLOAT -DCK_PAM -DCK_SHADOW -funsigned-char \
4254 -DHAVE_STREAMS -DHAVE_GRANTPT -DHAVE_PTSNAME -DPUSH_PTEM \
4255 -DPUSH_LDTERM -DPUSH_TTCOMPAT \
4256 -DCK_CURSES -DCK_NEWTERM -DDIRENT -DHDBUUCP -DTCPSOCKET \
4257 -D_FILE_OFFSET_BITS=64 $(KFLAGS)" \
4258 "LIBS= -ltermlib -lsocket -lnsl -lm -lresolv -lpam $(LIBS)"
4259
4260 #Solaris 9, 10, or 11 with gcc + Kerberos 5 + OpenSSL.
4261 #OK C-Kermit 9.0.301.
4262 solaris9g+krb5+ssl solaris10g+krb5+ssl solaris11g+krb5+ssl:
4263 @case `openssl version` in \
4264 *0.9.7*) OPENSSLOPTION="-DOPENSSL_097" ;; \
4265 *0.9.8*) OPENSSLOPTION="-DOPENSSL_098" ;; \
4266 *1.[0-9].[0-9]*) OPENSSLOPTION="-DOPENSSL_100" ;; \
4267 *3.[0-9].[0-9]*) OPENSSLOPTION="-DOPENSSL_300" ;; \
4268 *) OPENSSLOPTION="" ;; \
4269 esac ; \
4270 HAVE_DES=''; \
4271 DES_LIB=''; \
4272 if ls $(SSLLIB)/libdes* > /dev/null 2> /dev/null; then \
4273 DES_LIB='-ldes425'; \
4274 HAVE_DES='-DCK_DES -DLIBDES'; \
4275 echo "HAVE DES"; \
4276 else echo "NO DES"; \
4277 fi; \
4278 GSSAPILIB=''; \
4279 K5DIR=`echo $(K5LIB) | sed 's|-L||'`; \
4280 echo K5DIR=$$K5DIR; \
4281 if ls $$K5DIR/libgssapi_krb5* > /dev/null 2> /dev/null; then \
4282 GSSAPILIB='-lgssapi_krb5'; \
4283 else GSSAPILIB='-lgssapi'; \
4284 fi; \
4285 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
4286 "CFLAGS = -O -Usun -DSVR4 -DSOLARIS9 -DSTERMIOX -DSELECT -DFNFLOAT \
4287 -DCK_CURSES -DCK_NEWTERM -DDIRENT -DHDBUUCP -DTCPSOCKET -DBIGBUFOK \
4288 -DCK_AUTHENTICATION -DCK_SSL -DZLIB -DCK_KERBEROS -DKRB5 \
4289 -DCK_ENCRYPTION -DCK_CAST $$OPENSSLOPTION \
4290 $$HAVE_DES $(SSLINC) $(K5INC) $(K5INC)/krb5 $(KFLAGS)" \
4291 "LIBS= $(SSLLIB) $(K5LIB) -lz -lssl -ltermlib -lsocket -lnsl -lm \
4292 -lresolv -lcrypto \
4293 $$GSSAPILIB -lkrb5 -lcom_err -lk5crypto $$DES_LIB $(LIBS)"
4294
4295 #Solaris 9, 10, or 11 with gcc, 64 bit build.
4296 #Peeking inside FILE struct not allowed in 64-bit world.
4297 #DON'T USE THIS ONE ON PC ARCHITECTURE - It compiles and links but won't run.
4298 #OK: 2009/09/25 (but not tested on Solaris 11)
4299 solaris9g64 solaris10g64 solaris11g64:
4300 @echo 'Making C-Kermit $(CKVER) for Solaris 9++ with gcc 64-bit'
4301 @case `uname -r` in \
4302 5.9) SOLARISVERSION="-DSOLARIS9" ;; \
4303 5.10) SOLARISVERSION="-DSOLARIS10" ;; \
4304 5.11) SOLARISVERSION="-DSOLARIS11" ;; \
4305 *) SOLARISVERSION="-DSOLARIS" ;; \
4306 esac ; \
4307 $(MAKE) "MAKE=$(MAKE)" CC="gcc -m64" CC2="gcc -m64" xermit \
4308 KTARGET=$${KTARGET:-$(@)} \
4309 "CFLAGS = -g -O -Usun -funsigned-char \
4310 -DSVR4 $$SOLARISVERSION \
4311 -DSTERMIOX -DSELECT -DFNFLOAT -DUSE_STRERROR -DCK_PAM -DCK_SHADOW \
4312 -DHAVE_STREAMS -DHAVE_GRANTPT -DHAVE_PTSNAME -DPUSH_PTEM \
4313 -DPUSH_LDTERM -DPUSH_TTCOMPAT \
4314 -DCK_CURSES -DCK_NEWTERM -DDIRENT -DHDBUUCP -DTCPSOCKET $(KFLAGS)" \
4315 "LIBS= -ltermlib -lsocket -lnsl -lm -lresolv -lpam $(LIBS)"
4316
4317 #Solaris 9, 10, or 11 with SunPro CC
4318 #Uses streams PTYs rather than BSD ptys as in C-Kermit 8.0 and earlier.
4319 #This target is chained to by the secure targets below.
4320 #OK C-Kermit 9.0
4321 solaris9 solaris10 solaris11:
4322 @echo 'Making C-Kermit $(CKVER) for Solaris 9 or later with Sun CC'
4323 @case `uname -r` in \
4324 5.9) SOLARISVERSION="-DSOLARIS9" ;; \
4325 5.10) SOLARISVERSION="-DSOLARIS10" ;; \
4326 5.11) SOLARISVERSION="-DSOLARIS11" ;; \
4327 *) SOLARISVERSION="-DSOLARIS" ;; \
4328 esac ; \
4329 $(MAKE) "MAKE=$(MAKE)" xermit KTARGET=$${KTARGET:-$(@)} \
4330 "CFLAGS = -O -Usun -DSVR4 $$SOLARISVERSION -DUSE_STRERROR \
4331 -DSTERMIOX -DSELECT -DFNFLOAT -DCK_PAM -DCK_SHADOW \
4332 -DHAVE_STREAMS -DHAVE_GRANTPT -DHAVE_PTSNAME -DPUSH_PTEM \
4333 -DPUSH_LDTERM -DPUSH_TTCOMPAT \
4334 -DCK_CURSES -DCK_NEWTERM -DDIRENT -DHDBUUCP -DTCPSOCKET \
4335 -D_FILE_OFFSET_BITS=64 $(KFLAGS)" \
4336 "LIBS= $(LIBS) -ltermlib -lsocket -lnsl -lm -lresolv -lpam"
4337
4338 # Solaris 9, 10, or 11 with OpenSSL built with Sun CC.
4339 # Here's an example of how to invoke this target in case your OpenSSL
4340 # headers and libraries are not in /usr/local:
4341 #
4342 # make solaris9+openssl "SSLINC=" "SSLLIB=" \
4343 # "KFLAGS= -I/opt/openssl-0.9.8k/include -L/opt/openssl-0.9.8k/lib"
4344 #
4345 # Don't use 'make -e' because that inhibits passing of KFLAGS to
4346 # the base (solaris9) target.
4347 #
4348 #OK C-Kermit 9.0
4349 solaris9+ssl solaris10+ssl solaris11+ssl \
4350 solaris9+openssl solaris10+openssl solaris11+openssl:
4351 @echo 'Making C-Kermit $(CKVER) for Solaris 9/10/11 with OpenSSL: cc'
4352 @case `openssl version` in \
4353 *0.9.7*) OPENSSLOPTION="-DOPENSSL_097" ;; \
4354 *0.9.8*) OPENSSLOPTION="-DOPENSSL_098" ;; \
4355 *1.[0-9].[0-9]*) OPENSSLOPTION="-DOPENSSL_100" ;; \
4356 *3.[0-9].[0-9]*) OPENSSLOPTION="-DOPENSSL_300" ;; \
4357 *) OPENSSLOPTION="" ;; \
4358 esac ; \
4359 HAVE_DES=''; \
4360 DES_LIB=''; \
4361 if ls $(SSLLIB)/libdes* > /dev/null 2> /dev/null; then \
4362 DES_LIB='-ldes425'; \
4363 HAVE_DES='-DCK_DES -DLIBDES'; \
4364 echo "HAVE DES"; \
4365 else echo "NO DES"; \
4366 fi; \
4367 $(MAKE) "MAKE=$(MAKE)" solaris9 KTARGET=$${KTARGET:-$(@)} \
4368 "KFLAGS=-DCK_AUTHENTICATION -DCK_SSL -DZLIB $$HAVE_DES \
4369 -DNO_DCL_INET_ATON $$OPENSSLOPTION $(SSLINC) $(KFLAGS)" \
4370 "LIBS= $(SSLLIB) -lz -lssl $$DES_LIB -lcrypto $(LIBS)"
4371
4372 # Solaris 9 or later with OpenSSL, built with gcc.
4373 # Remove -DNO_DCL_INET_ATON if inet_aton comes up missing. This target nicely
4374 # chains to the solaris{9,10,11}g target but for some reason it doesn't work if
4375 # you add the -DFORWARD_X option, thus the solaris9g+openssl+forward_x target.
4376 #
4377 #OK: 2011/06/14
4378 solaris9g+ssl solaris10g+ssl solaris11g+ssl \
4379 solaris9g+openssl solaris10g+openssl solaris11g+openssl:
4380 @echo 'Making C-Kermit $(CKVER) for Solaris 9/10/11 with OpenSSL: gcc'
4381 @case `openssl version` in \
4382 *0.9.7*) OPENSSLOPTION="-DOPENSSL_097" ;; \
4383 *0.9.8*) OPENSSLOPTION="-DOPENSSL_098" ;; \
4384 *1.[0-9].[0-9]*) OPENSSLOPTION="-DOPENSSL_100" ;; \
4385 *3.[0-9].[0-9]*) OPENSSLOPTION="-DOPENSSL_300" ;; \
4386 *) OPENSSLOPTION="" ;; \
4387 esac ; \
4388 HAVE_DES=''; \
4389 DES_LIB=''; \
4390 if ls $(SSLLIB)/libdes* > /dev/null 2> /dev/null; then \
4391 DES_LIB='-ldes425'; \
4392 HAVE_DES='-DCK_DES -DLIBDES'; \
4393 echo "HAVE DES"; \
4394 else echo "NO DES"; \
4395 fi; \
4396 $(MAKE) "MAKE=$(MAKE)" solaris9g KTARGET=$${KTARGET:-$(@)} \
4397 "KFLAGS=-DCK_AUTHENTICATION -DCK_SSL -DZLIB $$HAVE_DES \
4398 -DNO_DCL_INET_ATON $$OPENSSLOPTION $(SSLINC) $(KFLAGS)" \
4399 "LIBS= $(SSLLIB) -lz -lssl $$DES_LIB -lcrypto $(LIBS)"
4400
4401 # Solaris 9 or later with gcc + OpenSSL + Shadow (32-bit).
4402 # Remove -DNO_DCL_INET_ATON if inet_aton comes up missing.
4403 # Includes long file support - not sure if this was available before Solaris 9.
4404 # Detects Solaris version automatically.
4405 #
4406 solaris9g+openssl+forward_x:
4407 @echo 'Making C-Kermit $(CKVER) for Solaris 9 or later with OpenSSL...'
4408 @case `openssl version` in \
4409 *0.9.7*) OPENSSLOPTION="-DOPENSSL_097" ;; \
4410 *0.9.8*) OPENSSLOPTION="-DOPENSSL_098" ;; \
4411 *1.[0-9].[0-9]*) OPENSSLOPTION="-DOPENSSL_100" ;; \
4412 *3.[0-9].[0-9]*) OPENSSLOPTION="-DOPENSSL_300" ;; \
4413 *) OPENSSLOPTION="" ;; \
4414 esac ; case `uname -r` in \
4415 5.9) SOLARISVERSION="-DSOLARIS9" ;; \
4416 5.10) SOLARISVERSION="-DSOLARIS10" ;; \
4417 5.11) SOLARISVERSION="-DSOLARIS11" ;; \
4418 *) SOLARISVERSION="-DSOLARIS" ;; \
4419 esac ; \
4420 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
4421 "CFLAGS = -g -O -Usun -DSVR4 $$SOLARISVERSION \
4422 -DHAVE_STREAMS -DHAVE_GRANTPT -DHAVE_PTSNAME -DPUSH_PTEM \
4423 -DPUSH_LDTERM -DPUSH_TTCOMPAT \
4424 -DSTERMIOX -DSELECT -DFNFLOAT -DBIGBUFOK -D_FILE_OFFSET_BITS=64 \
4425 -DCK_AUTHENTICATION -DCK_SSL -DCK_PAM -DCK_SHADOW -DZLIB -DLIBDES \
4426 -DFORWARD_X $$OPENSSLOPTION $(SSLINC) $(KFLAGS)" \
4427 "LIBS= $(SSLLIB) -lpam -ldes425 -lz -ltermlib \
4428 -lsocket -lnsl -lm -lresolv -lssl -lcrypto -lpam -lz $(LIBS)"
4429
4430 # These two should be folded in with the ones just above.
4431
4432 #Solaris 9 with gcc 3.1 + OpenSSL (32-bit)
4433 solaris9g+openssl+zlib+pam+shadow:
4434 $(MAKE) "MAKE=$(MAKE)" solaris2xg32+openssl+zlib+pam+shadow \
4435 KTARGET=$${KTARGET:-$(@)} \
4436 "KFLAGS=-DSOLARIS9 -DUSE_STRERROR $(KFLAGS)"
4437
4438 #Solaris 10 with gcc 3.1 + OpenSSL (32-bit)
4439 solaris10g+openssl+zlib+pam+shadow:
4440 $(MAKE) "MAKE=$(MAKE)" solaris2xg32+openssl+zlib+pam+shadow \
4441 KTARGET=$${KTARGET:-$(@)} \
4442 "KFLAGS=-DSOLARIS10 -DUSE_STRERROR $(KFLAGS)"
4443
4444 #The following (old, old) sunosxxx entries are for debugging and testing only.
4445
4446 sunos41x:
4447 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
4448 "CFLAGS= -O -DSUNOS41 -DDIRENT -DNOTLOG -DNOMSEND \
4449 -DNOUUCP -DNOSIGWINCH -DNOREDIRECT -DNOPUSH -DNOCCTRAP \
4450 -DNOICP -DNOLOCAL $(KFLAGS)"
4451
4452 #SunOS 4.1.x, debugging with Pure Software, Inc., Purify 2 (commercial runtime
4453 #error-detection software for catching wild array references, etc).
4454 #Before running the resulting wermit, you'll also need to define and export
4455 #the following environment variables (as in this example):
4456 #PURIFYHOME=/usr/local/purify ; export PURIFYHOME
4457 #PURIFYCACHEDIR=/tmp ; export PURIFYCACHEDIR
4458 sunos41cp:
4459 @echo Making C-Kermit $(CKVER) for SunOS 4.1 / BSD / Curses / Purify...
4460 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
4461 "CC2= purify -cache_dir=/usr/tmp cc" \
4462 "CFLAGS= -g -DSUNOS41 -DHDBUUCP -DDIRENT -DTCPSOCKET \
4463 -DSAVEDUID -DCK_CURSES $(KFLAGS)" \
4464 "LIBS= -lcurses -ltermcap"
4465
4466 #SunOS 4.1 with malloc debugger
4467 sunos41md:
4468 @echo Making C-Kermit $(CKVER) for SunOS 4.1 malloc debug...
4469 $(MAKE) mermit KTARGET=$${KTARGET:-$(@)} \
4470 "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DDIRENT -DTCPSOCKET \
4471 -DSAVEDUID $(KFLAGS) -Dmalloc=dmalloc -Dfree=dfree -DMDEBUG"
4472
4473 sunos41gmd:
4474 @echo Making C-Kermit $(CKVER) for SunOS 4.1 with gcc and curses...
4475 $(MAKE) mermit KTARGET=$${KTARGET:-$(@)} "CC= gcc " "CC2= gcc" \
4476 "CFLAGS= -g -DSUNOS41 -DHDBUUCP -DDIRENT -DTCPSOCKET \
4477 -DNDGPWNAM -DSAVEDUID -DCK_CURSES -DRLOGCODE \
4478 $(KFLAGS) -Dmalloc=dmalloc -Dfree=dfree -DMDEBUG" \
4479 "LIBS= -lcurses -ltermcap"
4480
4481 #SunOS version 4.1, gcc, profiling with gprof, no debugging.
4482 #To get profile, "make sunos41p" (on Sun), then "./wermit". After running
4483 #wermit, "gprof ./wermit | lpr" (or whatever) to get execution profile.
4484 sunos41p:
4485 @echo Making C-Kermit $(CKVER) for SunOS 4.x with profiling...
4486 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC= gcc " "CC2= gcc" \
4487 "CFLAGS= -DSUNOS41 -DNODEBUG -DSAVEDUID -DDIRENT -DTCPSOCKET \
4488 -DNDGPWNAM $(KFLAGS) -pg" "LNKFLAGS = -pg"
4489
4490 #SunOS version 4.1 or later, BSD environment, minimum features.
4491 sunos41min:
4492 @echo Minimum interactive
4493 $(MAKE) "MAKE=$(MAKE)" sunos41 KTARGET=$${KTARGET:-$(@)} \
4494 "KFLAGS=-DNOSPL -DNOXMIT -DNOMSEND -DNOFRILLS -DNORETRY \
4495 -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG -DNOSCRIPT -DNOCSETS \
4496 -DNOSHOW -DNOSETKEY -DNOUUCP -DNORECALL -DNOREDIRECT \
4497 -DNOPUSH -DNOMDMHUP -DNOJC -DNOFDZERO -DNOESCSEQ \
4498 -DNONET -DCK_SMALL -DNOCKSPEED -DNOCKTIMERS -DNOLOGIN \
4499 -DNOCKXYZ -DNOKERBEROS -DNOMKDIR -DNOPATTERNS -DNOPERMS -DNOPIPESEND \
4500 -DNORECURSIVE -DNORENAME -DNORESEND -DNOSETKEY \
4501 -DNOTRIGGER -DNOTUNING $(KFLAGS)" "LNKFLAGS = -s"
4502
4503 #SunOS version 4.1, BSD environment, min size, command-line only...
4504 sunos41m:
4505 @echo Minimum size
4506 $(MAKE) "MAKE=$(MAKE)" sunos41min KTARGET=$${KTARGET:-$(@)} \
4507 "KFLAGS=-DNOICP $(KFLAGS)"
4508
4509 #SunOS version 4.1, BSD environment, min size, cmd-line only, remote only...
4510 #
4511 sunos41mr:
4512 @echo Minimum size
4513 $(MAKE) "MAKE=$(MAKE)" sunos41min KTARGET=$${KTARGET:-$(@)} \
4514 "KFLAGS=-DNOICP -DNOLOCAL $(KFLAGS)"
4515
4516 #SunOS version 4.1, BSD environment, min size, interactive...
4517 sunos41mi:
4518 @echo Minimum size
4519 $(MAKE) "MAKE=$(MAKE)" sunos41min KTARGET=$${KTARGET:-$(@)} \
4520 "KFLAGS=-DNOCMDL $(KFLAGS)"
4521
4522 #SunOS version 4.1, BSD environment, min size, interactive, remote only...
4523 sunos41mir:
4524 @echo Minimum size
4525 $(MAKE) "MAKE=$(MAKE)" sunos41min KTARGET=$${KTARGET:-$(@)} \
4526 "KFLAGS=-DNOCMDL -DNOLOCAL $(KFLAGS)"
4527
4528 #SunOS 4.1, System V R3 environment (-i option omitted).
4529 sunos41s5:
4530 @echo Making C-Kermit $(CKVER) for SunOS 4.1 System V R3...
4531 @echo For testing purposes only - NOT for production use.
4532 @echo For a useable version, make sunos41 instead.
4533 $(MAKE) wermit "CC= /usr/5bin/cc " "CC2=/usr/5bin/cc " \
4534 KTARGET=$${KTARGET:-$(@)} \
4535 "CFLAGS = -DSUN4S5 -DDIRENT -DHDBUUCP -DNOLEARN -DCK_POLL $(KFLAGS) -O"
4536
4537 #As above, but with curses support
4538 sunos41s5c:
4539 @echo Making C-Kermit $(CKVER) for SunOS 4.1 System V R3...
4540 @echo Curses included.
4541 @echo For testing purposes only - NOT for production use.
4542 @echo For a useable version, make sunos41 instead.
4543 $(MAKE) wermit "CC= /usr/5bin/cc " "CC2=/usr/5bin/cc " \
4544 KTARGET=$${KTARGET:-$(@)} \
4545 "CFLAGS = -DSUN4S5 -DDIRENT -DHDBUUCP -DNOLEARN \
4546 -DCK_POLL -DCK_CURSES -DCK_NEWTERM $(KFLAGS) -O" "LIBS= -lcurses"
4547
4548 #As above, but with curses support AND net support
4549 sunos41s5tcpc:
4550 @echo Making C-Kermit $(CKVER) for SunOS 4.1 System V R3...
4551 @echo TCP/IP and curses included. No debug log.
4552 @echo For testing purposes only - NOT for production use.
4553 @echo For a useable version, make sunos41 instead.
4554 $(MAKE) xermit "CC= /usr/5bin/cc " "CC2=/usr/5bin/cc " \
4555 KTARGET=$${KTARGET:-$(@)} \
4556 "CFLAGS = -DSUN4S5 -DDIRENT -DHDBUUCP -DCK_POLL \
4557 -DNODEBUG -DCK_CURSES -DCK_NEWTERM -DTCPSOCKET $(KFLAGS) -O" \
4558 "LIBS= -lcurses -lresolv"
4559
4560 # (End of SunOS test entries...)
4561
4562 #Apollo with Domain SR10.0 or later, BSD environment
4563 #Reportedly, it might also help to add '-A,systype=bsd4.3' to CFLAGS.
4564 #Reportedly, there is also a problem with getc & putc macros that can
4565 #be handled by using '#ifdef apollo' somewhere to redefine them???
4566 #On the other hand, other reports indicate that it works fine as-is.
4567 #NOTE: This entry was previously like this:
4568 # $(MAKE) wermit "CFLAGS= -DNOFILEH -DBSD4 $(KFLAGS) -Uaegis \
4569 # -DTCPSOCKET -U__STDC__"
4570 #Reports (Dec 91) indicate SR10 has an ANSI-compliant C compiler,
4571 #in addition to an older one that claimed to be ANSI-compliant but wasn't.
4572 #The following make entry (plus checks that are made in ckcdeb.h) detect
4573 #which compiler is used and define the CK_ANSIC or NOANSI flags accordingly.
4574 sr10-bsd:
4575 @echo Making C-Kermit $(CKVER) for Apollo SR10.0 / BSD ...
4576 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
4577 "CFLAGS= -O -DAPOLLOSR10 -DBSD43 -DTCPSOCKET -DCK_CURSES -DNOLEARN \
4578 -Uaegis $(KFLAGS)" "LIBS= -lcurses -ltermcap"
4579
4580 #Apollo with Domain SR10.0 or later, System V R3 environment.
4581 #Don't use the optimizer (-O), it causes problems at runtime.
4582 sr10-s5r3:
4583 @echo Making C-Kermit $(CKVER) for Apollo SR10.0 / Sys V R3 ...
4584 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
4585 "CFLAGS= -DNOFILEH -DSVR3 -DAPOLLOSR10 -DNOLEARN $(KFLAGS) \
4586 -Uaegis -U__STDC__"
4587
4588 #Apollo Domain/IX (untested, try this if sr10-bsd doesn't work)
4589 # -DTCPSOCKET can probably be added here.
4590 apollobsd:
4591 @echo Making C-Kermit $(CKVER) for Apollo Domain/IX...
4592 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
4593 "CC= /bin/cc " "CC2= /bin/cc " \
4594 "CFLAGS= -DNOFILEH -DBSD4 -DAPOLLOBSD -DNOLEARN $(KFLAGS) -Uaegis"
4595
4596 #Version 7 Unix (see comments near top of makefile)
4597 #-DNOSYSLOG -DNOHELP added in October 2022, the latter because it was
4598 #taking hours to compile ckuus2.c. Anyway the build failed later with with
4599 #an assembler error: "Unexpected end of file writing the interpass tmp file"
4600 v7:
4601 @echo Making C-Kermit $(CKVER) for UNIX Version 7.
4602 @echo Read the makefile if you have trouble with this...
4603 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
4604 "CFLAGS=-DV7 -DPROCNAME=\\\"$(PROC)\\\" \
4605 -DBOOTNAME=\\\"$(BOOTFILE)\\\" -DNPROCNAME=\\\"$(NPROC)\\\" \
4606 -DNPTYPE=$(NPTYPE) $(DIRECT) -DO_RDWR=2 -DO_NDELAY=0 -DO_SCCS_ID \
4607 -DNOLEARN -DNOSYSLOG -DNOHELP $(KFLAGS)"
4608
4609 #Version 7 Unix minumum size - commandline only, no interactive commands.
4610 # See the V7 section of ckcdeb.h for all the NOxxx definitions because
4611 # they can't all be put on the command line: "too many -D options,
4612 # ignoring -DNOxxx". Some of these -DNO items are to skip over correct
4613 # C code that the compiler erroneously flags as errors.
4614 # 2 November 2022
4615 v7min:
4616 @echo Making C-Kermit $(CKVER) for UNIX Version 7 smallest possible.
4617 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
4618 "CFLAGS=-DV7 -DPROCNAME=\\\"$(PROC)\\\" \
4619 -DBOOTNAME=\\\"$(BOOTFILE)\\\" -DNPROCNAME=\\\"$(NPROC)\\\" \
4620 -DNPTYPE=$(NPTYPE) $(DIRECT) -DO_RDWR=2 -DO_NDELAY=0 -DO_SCCS_ID \
4621 -DV7MIN $(KFLAGS)"
4622
4623 #AT&T UNIX System V R3, signal() is void rather than int.
4624 #Uses dirent.h and Honey DanBer UUCP.
4625 #Add the -i link option if necessary.
4626 #If you get errors like "ws_row undefined" in ckutio.c, add -DNONAWS.
4627 sys5r3:
4628 @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R3...'
4629 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
4630 "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -DNOLEARN $(KFLAGS) -O" \
4631 "LNKFLAGS="
4632
4633 #As above, plus curses.
4634 sys5r3c:
4635 @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R3 + curses...'
4636 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
4637 "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -DCK_CURSES -DNONAWS -DNOLEARN \
4638 $(KFLAGS) -O" "LNKFLAGS=" "LIBS = -ltermlib"
4639
4640 #System V R3.2 for PCs built on Interactive UNIX SV/386 R4.x
4641 #but with all calls to dup2() disabled because generic SVR3 does not have dup2.
4642 # (The -linet library might not need to be in this one.)
4643 sys5r32is:
4644 @echo 'Making C-Kermit $(CKVER) for System V/386 R32
4645 $(MAKE) wermit CC="$(CC)" CC2="$(CC2)" \
4646 "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -O -DNOCSETS -DNOREALPATH \
4647 -DUID_T=ushort -DGID_T=ushort -DI386IX -DSVR3JC -DCK_CURSES -DNONAWS \
4648 -DPOSIX_JC -DCK_REDIR -DCK_POLL -DDCLGETCWD -DNOFDZERO -DNOREDIRECT \
4649 -DNOZEXEC -DNOLEARN $(KFLAGS)" "LIBS=-lcurses -lc_s -linet"
4650
4651 #System V R3.2 for PCs built on Interactive UNIX SV/386 R4.x
4652 #but with all calls to dup2() disabled because generic SVR3 does not have dup2.
4653 #With TCP/IP added.
4654 sys5r32isnet:
4655 @echo 'Making C-Kermit $(CKVER) for System V/386 R32 + TCP/IP
4656 $(MAKE) wermit CC="$(CC)" CC2="$(CC2)" \
4657 "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -O -DNOCSETS -DNOREALPATH \
4658 -DUID_T=ushort -DGID_T=ushort -DI386IX -DSVR3JC -DCK_CURSES -DNONAWS \
4659 -DPOSIX_JC -DCK_REDIR -DCK_POLL -DDCLGETCWD -DNOFDZERO -DNOREDIRECT \
4660 -DNOLEARN -DNOZEXEC -DTCPSOCKET $(KFLAGS)" "LIBS=-lcurses -lc_s -linet"
4661
4662 iclsys5r3:
4663 make sys5r3 KTARGET=$${KTARGET:-$(@)} KFLAGS=-DICLSVR3
4664
4665 #AT&T UNIX System V R3. As above, but no ANSI prototyping.
4666 sys5r3na:
4667 @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R3...'
4668 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
4669 "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -DNOANSI -DNOLEARN $(KFLAGS) -O" \
4670 "LNKFLAGS="
4671
4672 #AT&T UNIX System V R3, for 3B computers with Wollongong TCP/IP.
4673 sys5r3net3b:
4674 @echo 'Making C-Kermit $(CKVER) for AT&T UNIX SVR3/3B/Wollongong...'
4675 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
4676 "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DWOLLONGONG -DNOLEARN $(KFLAGS) \
4677 -O" "LIBS= -lnet -lnsl_s" "LNKFLAGS ="
4678
4679 #AT&T UNIX System V R3, signal() is void rather than int.
4680 #Uses dirent.h and Honey DanBer uucp, has <termiox.h>.
4681 #Has <termiox.h> for RTS/CTS flow control.
4682 sys5r3tx:
4683 @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R3...'
4684 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
4685 "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DTERMIOX -DNOLEARN \
4686 $(KFLAGS) -i -O" "LNKFLAGS ="
4687
4688 #AT&T UNIX System V R3, signal() is void rather than int.
4689 #Uses dirent.h and Honey DanBer uucp, has <termiox.h>.
4690 #Has <sys/termiox.h> for RTS/CTS flow control.
4691 sys5r3sx:
4692 @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R3...'
4693 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
4694 "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DSTERMIOX -DNOLEARN \
4695 $(KFLAGS) -i -O" "LNKFLAGS ="
4696
4697 #AT&T UNIX System V R4.
4698 #Has <termiox.h>.
4699 sys5r4:
4700 @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
4701 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
4702 "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DTERMIOX -DNOLEARN $(KFLAGS)" \
4703 "LNKFLAGS = -s"
4704
4705 #AT&T UNIX System V R4 with Wollongong TCP/IP.
4706 #Has <termiox.h>.
4707 sys5r4net:
4708 @echo 'Making C-Kermit $(CKVER) for System V R4 + Wollongong TCP/IP...'
4709 @echo ' If sockets-library routines are missing at link time, then'
4710 @echo ' try the sys5r4net2 entry.'
4711 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
4712 "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DNOLEARN \
4713 -DTERMIOX -DWOLLONGONG $(KFLAGS)" "LNKFLAGS = -s"
4714
4715 #As above, but needs libs included.
4716 sys5r4net2:
4717 @echo ' PLEASE READ ckuins.txt IF YOU GET MISSING HEADER FILES.'
4718 @echo ' (Search for WOLLONGONG...)'
4719 $(MAKE) sys5r4net KTARGET=$${KTARGET:-$(@)} "LIBS= -lsocket -lnsl"
4720
4721 #As above plus curses.
4722 sys5r4net2c:
4723 echo 'Making C-Kermit $(CKVER) for System V R4 + Wollongong TCP/IP...'
4724 @echo ' PLEASE READ ckuins.txt IF YOU GET MISSING HEADER FILES.'
4725 @echo ' (Search for WOLLONGONG...)'
4726 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
4727 "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DNOLEARN \
4728 -DTERMIOX -DWOLLONGONG -DCK_CURSES $(KFLAGS)" "LNKFLAGS = -s" \
4729 "LIBS= -lsocket -lnsl -lcurses"
4730
4731 #DELL UNIX System V R4.
4732 #Has <sys/termiox.h>, regular Berkeley sockets library, i.e. in.h and inet.h
4733 #are not misplaced in sys (rather than netinet and arpa, respectively).
4734 #Uses ANSI C constructs, advisory file locking on devices, etc.
4735 #Warning: -DSTERMIOX enables hardware flow control (RTS/CTS), but reportedly
4736 #this does not work with the normal drivers. However, it might still work
4737 #on non-Dell systems, or even Dell systems with different drivers installed.
4738 dellsys5r4:
4739 @echo 'Making C-Kermit $(CKVER) for DELL UNIX System V R4...'
4740 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
4741 "CFLAGS = -O -DSVR4 -DDELL_SVR4 -DDIRENT -DHDBUUCP \
4742 -DTCPSOCKET -DSTERMIOX -DCK_POLL $(KFLAGS)" \
4743 "LIBS= -lsocket -lnsl" "LNKFLAGS = -s"
4744
4745 #As above, curses support added...
4746 dellsys5r4c:
4747 @echo 'Making C-Kermit $(CKVER) for DELL UNIX System V R4...'
4748 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
4749 "CFLAGS = -O -DSVR4 -DDELL_SVR4 -DDIRENT -DHDBUUCP \
4750 -DTCPSOCKET -DSTERMIOX -DCK_CURSES -DCK_POLL \
4751 $(KFLAGS)" "LIBS= -lsocket -lnsl -lcurses -ltermcap" "LNKFLAGS = -s"
4752
4753 #Minimum interactive: As above, but with every conceivable option removed.
4754 dellsys5r4mi:
4755 @echo 'Making C-Kermit $(CKVER) for DELL UNIX System V R4...'
4756 @echo 'Minimum-size interactive'
4757 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
4758 "CFLAGS = -O -DSVR4 -DDELL_SVR4 -DDIRENT \
4759 -UTCPSOCKET -DNOCMDL -DNOSPL -DNOXMIT -DCK_POLL \
4760 -DNOMSEND -DNOFRILLS -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG \
4761 -DNOSCRIPT -DNOCSETS -DNOSHOW -DNOSETKEY -DNOSERVER -DNOUUCP \
4762 -DNOPUSH -DNOMDMHUP -DNOJC -DNOFDZERO -DNOESCSEQ \
4763 $(KFLAGS)" "LNKFLAGS = -s"
4764
4765 #Command-line only version.
4766 dellsys5r4m:
4767 @echo 'Making C-Kermit $(CKVER) for DELL UNIX System V R4...'
4768 @echo 'Command-line only'
4769 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
4770 "CFLAGS = -O -DSVR4 -DDELL_SVR4 -DDIRENT \
4771 -UTCPSOCKET -DNOICP -DNOFRILLS -DNODIAL -DNODEBUG -DNOTLOG -DNOCSETS \
4772 -DNOSETKEY -DNOESCSEQ -DNOJC -DNOFDZERO -DCK_POLL \
4773 $(KFLAGS)" "LNKFLAGS = -s"
4774
4775 #AT&T UNIX System V R4.
4776 #Has <sys/termiox.h>.
4777 sys5r4sx:
4778 @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
4779 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
4780 "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DSTERMIOX -DNOLEARN \
4781 $(KFLAGS)" "LNKFLAGS = -s" "LIBS=$(LIBS)"
4782
4783 #AT&T UNIX System V R4.
4784 #Has <sys/termiox.h>, regular Berkeley sockets library, i.e. in.h and inet.h
4785 #are not misplaced in sys (rather than netinet and arpa, respectively).
4786 #Uses ANSI C constructs, <sys/termiox.h>, etc etc.
4787 sys5r4sxtcp:
4788 @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
4789 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
4790 "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP \
4791 -DSTERMIOX -DTCPSOCKET $(KFLAGS)" \
4792 "LIBS= -lsocket -lnsl $(LIBS)" "LNKFLAGS= -s"
4793
4794 #AT&T UNIX System V R4.
4795 #As above + curses.
4796 sys5r4sxtcpc:
4797 @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
4798 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
4799 "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP \
4800 -DSTERMIOX -DCK_CURSES -DTCPSOCKET $(KFLAGS)" \
4801 "LIBS= -lsocket -lnsl -lcurses -ltermcap $(LIBS)" "LNKFLAGS = -s"
4802
4803 #AT&T UNIX System V R4. CONSENSYS SVR4.2-1.
4804 #Has <sys/termiox.h>, regular Berkeley sockets library, i.e. in.h and inet.h
4805 #are not misplaced in sys (rather than netinet and arpa, respectively).
4806 #Uses ANSI C constructs, <sys/termiox.h>, etc.
4807 # Fullscreen -DCK_CURSES added (with curses & termcap libs)
4808 # Submission by Robert Weiner/Programming Plus, [email protected]
4809 sys5r4sxtcpf:
4810 @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
4811 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
4812 "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP \
4813 -DSTERMIOX -DTCPSOCKET -DCK_CURSES $(KFLAGS)" \
4814 "LIBS= -lsocket -lnsl -L/usr/ccs/lib -lcurses -ltermcap" \
4815 "LIBS=$(LIBS)" "LNKFLAGS = -s"
4816
4817 #Smallest possible version for System V R4
4818 s5r4m:
4819 @echo Minimum size
4820 $(MAKE) "MAKE=$(MAKE)" sys5r4sx KTARGET=$${KTARGET:-$(@)} \
4821 "KFLAGS=$(KFLAGS) -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG \
4822 -DNOSCRIPT -DNOCSETS -DNOICP -DNOMSEND -UTCPSOCKET" "LNKFLAGS = -s"
4823
4824 #Smallest possible interactive version of above
4825 s5r4mi:
4826 @echo Minimum interactive
4827 $(MAKE) "MAKE=$(MAKE)" sys5r4sx \
4828 "KFLAGS=-DNOSPL -DNOXMIT -DNOMSEND -DNOFRILLS -DNOSHOW \
4829 -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG -DNOSCRIPT -DNOCSETS -DNOSETKEY \
4830 -UTCPSOCKET $(KFLAGS)" "LNKFLAGS = -s"
4831
4832 #AT&T UNIX System V R4, has <sys/termiox.h>
4833 #ANSI C function prototyping disabled.
4834 sys5r4sxna:
4835 @echo No ANSI C prototyping...
4836 $(MAKE) "MAKE=$(MAKE)" sys5r4sx KTARGET=$${KTARGET:-$(@)} \
4837 "KFLAGS=$(KFLAGS) -DNOANSI"
4838
4839 #Stratus FTX.
4840 ftx:
4841 @echo 'Making C-Kermit $(CKVER) for Stratus FTX 3.x...'
4842 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
4843 "CFLAGS = -O -DSVR4 -DFTX -DDIRENT -DHDBUUCP -DSTERMIOX \
4844 -DNOGETUSERSHELL -DNOLEARN +DA1.1 $(KFLAGS)" \
4845 "LNKFLAGS = -s" "LIBS=$(LIBS)"
4846
4847 #Stratus FTX + TCP/IP.
4848 ftxtcp:
4849 @echo 'Making C-Kermit $(CKVER) for Stratus FTX 3.x...'
4850 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
4851 "CFLAGS = -O -DSVR4 -DFTX -DDIRENT -DHDBUUCP -DNOGETUSERSHELL \
4852 -DSTERMIOX -DTCPSOCKET -DNO_DNS_SRV +DA1.1 $(KFLAGS)" \
4853 "LIBS= -lsocket -lnsl $(LIBS)" "LNKFLAGS= -s"
4854
4855 #NCR MP-RAS 2.03 or 3.02
4856 mpras:
4857 @echo 'Making C-Kermit $(CKVER) for NCR MP-RAS...'
4858 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
4859 "CFLAGS = -O -DSVR4 -DNCRMPRAS -DDIRENT -DHDBUUCP -DSTERMIOX \
4860 -DNOGETUSERSHELL -DUSE_FILE__CNT -DNOLEARN -DNO_DNS_SRV $(KFLAGS)" \
4861 "LNKFLAGS = -s" "LIBS=$(LIBS)"
4862
4863 #NCR MP-RAS 2.03 or 3.02 with TCP/IP and curses
4864 mprastcpc:
4865 @echo 'Making C-Kermit $(CKVER) for NCR MP-RAS + TCP/IP + curses...'
4866 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CFLAGS=-DTCPSOCKET \
4867 -DCK_CURSES -DSVR4 -DNCRMPRAS -DDIRENT -DHDBUUCP -DSTERMIOX -DNOLEARN \
4868 -DNOGETUSERSHELL -DNO_DNS_SRV DUSE_FILE__CNT -O $(KFLAGS)" \
4869 "LNKFLAGS = -s" "LIBS= -lsocket -lnsl -lcurses -ltermcap $(LIBS)"
4870
4871 #SINIX-L V5.41 - includes curses, tcp/ip - Use this one for i386.
4872 #This version of SINIX doesn't like fdopen() or popen().
4873 sinix541:
4874 @echo 'Making C-Kermit $(CKVER) for Siemens/Nixdorf SINIX V5.41/i386'
4875 $(MAKE) ckcpro.$(EXT) "CFLAGS = -DSINIX -DSVR4 -DDIRENT -DHDBUUCP \
4876 -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DSELECT -DCK_ANSIC -DNO_DNS_SRV \
4877 -DSNI541 -DNOGETUSERSHELL -DNONETCMD -DNOPOPEN -kansi -W0 $(KFLAGS)"
4878 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
4879 "CFLAGS = -DSINIX -DSVR4 -DDIRENT -DHDBUUCP -DNO_DNS_SRV -DNOPOPEN \
4880 -DFNFLOAT -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DSELECT -DCK_ANSIC \
4881 -DSNI541 -DNOGETUSERSHELL -DNONETCMD -kansi -W0 -O $(KFLAGS)" \
4882 "LIBS= -lsocket -lnsl -lcurses -ltermcap -lm" "LNKFLAGS = -s"
4883
4884 sinix541i:
4885 $(MAKE) "MAKE=$(MAKE)" "KFLAGS=$(KFLAGS)" sinix541
4886
4887 #SINIX V5.42 - includes curses, tcp/ip, everything - Use this one for MIPS.
4888 # As of C-Kermit 7.1, optimization removed -- takes (literally) forever.
4889 sinix542:
4890 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
4891 "CFLAGS = -DSINIX -DSVR4 -DDIRENT -DHDBUUCP -DNO_DNS_SRV \
4892 -DFNFLOAT -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DSELECT -DCK_ANSIC \
4893 -DSNI542 -DNOGETUSERSHELL -kansi -W0 $(KFLAGS)" \
4894 "LIBS= -lsocket -lnsl -lcurses -ltermcap -lm" "LNKFLAGS = -s"
4895
4896 #SINIX V5.42 gcc - includes curses, tcp/ip, everything.
4897 #This one was used to build the Pyramid-architecture RM600 version
4898 #on SINIX-P 5.42 A10 with gcc but should work for SINIX 5.42 on any other
4899 #architecture with gcc.
4900 sinix542g:
4901 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC=gcc" "CC2=gcc" \
4902 "CFLAGS = -DSINIX -DSVR4 -DDIRENT -DHDBUUCP -DNO_DNS_SRV \
4903 -DFNFLOAT -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DSELECT -DCK_ANSIC \
4904 -DSNI542 -DNOGETUSERSHELL $(KFLAGS)" \
4905 "LIBS= -lsocket -lnsl -lcurses -ltermcap -lm" \
4906 "LNKFLAGS = -s"
4907
4908 #SINIX V5.42 - includes curses, tcp/ip, everything - Use this one for Intel.
4909 # (Note: SNI discontinued Intel support after 5.42.)
4910 sinix542i:
4911 @echo 'Making C-Kermit $(CKVER) for Siemens/Nixdorf SINIX-Z V5.42...'
4912 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
4913 "CFLAGS = -DSINIX -DSVR4 -DDIRENT -DHDBUUCP -DFNFLOAT -DSTERMIOX \
4914 -DCK_CURSES -DTCPSOCKET -DSELECT -DCK_ANSIC -DNO_DNS_SRV -kansi \
4915 -DSNI542 $(KFLAGS)" \
4916 "LIBS= -lsocket -lnsl -lcurses -ltermcap -lm" \
4917 "LNKFLAGS = -s"
4918
4919 #Siemens Nixdorf Reliant UNIX V5.43 - includes curses, tcp/ip, everything:
4920 # . gettimeofday() suddenly has only one arg instead of two (GTODONEARG).
4921 # . The syntax of the Olimit specifier changed.
4922 # . The name was changed from SINIX to Reliant UNIX in version 5.43C.
4923 sni543:
4924 @echo 'Making C-Kermit $(CKVER) for Siemens/Nixdorf Reliant UNIX V5.43'
4925 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
4926 "CFLAGS = -DSINIX -DSNI543 -DSVR4 -DDIRENT -DHDBUUCP \
4927 -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DSELECT -DCK_ANSIC -DGTODONEARG \
4928 -DNO_DNS_SRV -kansi -W0 -O -F Olimit,3100 $(KFLAGS)" \
4929 "LIBS= -lsocket -lnsl -lcurses -ltermcap" "LNKFLAGS = -s"
4930
4931 #Siemens Nixdorf Reliant UNIX V5.44 - Like 5.43 but with different banner.
4932 sni544:
4933 @echo 'Making C-Kermit $(CKVER) for Siemens/Nixdorf Reliant UNIX V5.44'
4934 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
4935 "CFLAGS = -DSINIX -DSNI544 -DSVR4 -DDIRENT -DHDBUUCP \
4936 -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DSELECT -DCK_ANSIC -DGTODONEARG \
4937 -DNO_DNS_SRV -kansi -W0 -O -K Olimit,3100 $(KFLAGS)" \
4938 "LIBS= -lsocket -lnsl -lcurses -ltermcap" "LNKFLAGS = -s"
4939
4940 #Commodore Amiga with AT&T UNIX System V R4 and TCP/IP support.
4941 #Has <sys/termiox.h>.
4942 svr4amiganet:
4943 @echo 'Making C-Kermit $(CKVER) for Amiga SVR4 + TCP/IP...'
4944 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC=gcc" "CC2=gcc" \
4945 "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DSTERMIOX \
4946 -DTCPSOCKET -DCK_CURSES $(KFLAGS)" "LNKFLAGS = -s" \
4947 "LIBS = -lsocket -lnsl -ltermlib"
4948
4949 #SCO (Novell (Univel)) UnixWare 1.x or 2.0, no TCP/IP.
4950 #This assumes the Novell SDK 1.0, which has <sys/termiox.h>.
4951 #UnixWare users with the "Prime Time Freeware" CD-ROM SDK will probably have
4952 #to use the sys5r4 entry (no termiox.h file, so no hardware flow control).
4953 #Change -DSELECT to -DCK_POLL if -DSELECT causes problems.
4954 # NOTE: Unixware 1.x builds have not been tried in C-Kermit 7.0.
4955 unixware:
4956 $(MAKE) "MAKE=$(MAKE)" sys5r4sx KTARGET=$${KTARGET:-$(@)} \
4957 "KFLAGS=-DOLD_UNIXWARE -DCK_NEWTERM -DSELECT -DNOGETUSERSHELL \
4958 -DNOSYSLOG $(KFLAGS)" "LIBS=-lcrypt"
4959
4960 #UnixWare 1.x or 2.0 with TCP/IP and curses.
4961 #fork()-based CONNECT - no high serial speeds.
4962 unixwarenetc:
4963 $(MAKE) "MAKE=$(MAKE)" sys5r4sxtcpc KTARGET=$${KTARGET:-$(@)} \
4964 "KFLAGS=-DOLD_UNIXWARE -DCK_NEWTERM -DSELECT -DNOGETUSERSHELL \
4965 -DNOSYSLOG $(KFLAGS)" "LIBS=-lcrypt -lresolv"
4966
4967 uw10:
4968 $(MAKE) unixwarenetc KTARGET=$${KTARGET:-$(@)} "KFLAGS=$(KFLAGS)"
4969
4970 #This is for Unixware 2.0.x only - use unixware21 for UW 2.1.x.
4971 #Has special library search and enables special kludge around library
4972 #foulup regarding vfork() (which Kermit doesn't use). Forces POSIX-style
4973 #hangup.
4974 unixware20:
4975 @echo 'Making C-Kermit $(CKVER) for UnixWare 2.0.x...'
4976 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
4977 "CFLAGS = -O -DOLD_UNIXWARE -DUNIXWARE2 -DSELECT -DSVR4 -DDIRENT \
4978 -DHDBUUCP -DBIGBUFOK -DNOGETUSERSHELL -DSTERMIOX -DCK_CURSES \
4979 -DTCPSOCKET -DUW200 -DFNFLOAT -DCK_NEWTERM -DNOSYSLOG $(KFLAGS)" \
4980 "LIBS= -lsocket -lnsl -lcurses -ltermcap -lcrypt -lgen -lm -lresolv" \
4981 "LNKFLAGS = -s"
4982
4983 uw20:
4984 $(MAKE) unixware20 KTARGET=$${KTARGET:-$(@)} "KFLAGS=$(KFLAGS)"
4985
4986 #Adds big buffers ("large memory model") - otherwise the same as UnixWare 1.x.
4987 unixware21:
4988 @echo 'Making C-Kermit $(CKVER) for UnixWare 2.1.x...'
4989 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
4990 "CFLAGS = -O -DUNIXWARE -DSELECT -DSVR4 -DDIRENT -DHDBUUCP -DBIGBUFOK \
4991 -DNOSYSLOG -DSTERMIOX -DCK_CURSES -DTCPSOCKET \
4992 -DCK_NEWTERM -DFNFLOAT -DUNIXWARE2 $(KFLAGS)" \
4993 "LIBS= -lsocket -lnsl -lcurses -ltermcap -lcrypt -lm -lresolv \
4994 $(LIBS)" "LNKFLAGS = -s"
4995
4996 #Unixware 2.1.0
4997 uw21:
4998 $(MAKE) unixware21 KTARGET=$${KTARGET:-$(@)} "KFLAGS=$(KFLAGS)"
4999
5000 #Unixware 2.1.3
5001 uw213:
5002 $(MAKE) unixware21 KTARGET=$${KTARGET:-$(@)} \
5003 "KFLAGS=-DUSE_FILE__CNT $(KFLAGS)"
5004
5005 #Unixware 2.1 with IKSD support
5006 uw21iksd:
5007 $(MAKE) unixware21 KTARGET=$${KTARGET:-$(@)} \
5008 "KFLAGS=-DCK_SHADOW $(KFLAGS)" "LIBS= -lgen"
5009
5010 #UnixWare 7 with tc[gs]etspeed() high serial speeds & select()-based CONNECT
5011 #and as of C-Kermit 8.0.212, large file support (LFS).
5012 #NOTE: This is the one we use.
5013 unixware7t:
5014 @echo 'Making C-Kermit $(CKVER) for UnixWare 7 with POSIX i/o...'
5015 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
5016 "CFLAGS = -O -DUNIXWARE -DSELECT -DSVR4 -DDIRENT -DHDBUUCP -DBIGBUFOK \
5017 -DFNFLOAT -DNOGETUSERSHELL -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DPOSIX \
5018 -DUW7 -DUSETCSETSPEED -DCK_NEWTERM -DNOLSTAT -DDCLTIMEVAL \
5019 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DNEEDMDMDEFS $(KFLAGS)" \
5020 "LIBS=-lsocket -lnsl -lcurses -ltermcap -lcrypt -lm -lresolv $(LIBS)" \
5021 "LNKFLAGS = -s"
5022
5023 #UnixWare 7 - select()-based CONNECT - no POSIX i/o - no high serial speeds.
5024 #In other words, just like the UnixWare 1 and 2 builds.
5025 unixware7x:
5026 @echo 'Making C-Kermit $(CKVER) for UnixWare 7...'
5027 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
5028 "CFLAGS = -O -DUNIXWARE -DSELECT -DSVR4 -DDIRENT -DHDBUUCP -DBIGBUFOK \
5029 -DUW7 -DNOGETUSERSHELL -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DNOLSTAT \
5030 -DFNFLOAT -DCK_NEWTERM $(KFLAGS)" \
5031 "LIBS=-lsocket -lnsl -lcurses -ltermcap -lcrypt -lm -lresolv $(LIBS)" \
5032 "LNKFLAGS = -s"
5033
5034 #UnixWare 7 with POSIX cfset[oi]speed() to allow high serial speeds.
5035 #(but the high speeds don't work)
5036 unixware7p:
5037 @echo 'Making C-Kermit $(CKVER) for UnixWare 7 with POSIX i/o...'
5038 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
5039 "CFLAGS = -O -DUNIXWARE -DSELECT -DSVR4 -DDIRENT -DHDBUUCP -DBIGBUFOK \
5040 -DUW7 -DNOGETUSERSHELL -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DPOSIX \
5041 -DFNFLOAT -DCK_NEWTERM -DNOLSTAT $(KFLAGS)" \
5042 "LIBS=-lsocket -lnsl -lcurses -ltermcap -lcrypt -lm -lresolv $(LIBS)" \
5043 "LNKFLAGS = -s"
5044
5045 # UnixWare 7 built with gcc - This does not work at all...
5046 # Reportedly gcc 2.8.1 is broken on Unixware 7. Try egcs?
5047 unixware7g:
5048 @echo 'Making C-Kermit $(CKVER) for UnixWare 7 with gcc...'
5049 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
5050 "CC = gcc" "CC2 = gcc" "LNKFLAGS = -s -shlib"
5051 "CFLAGS = -O -DUNIXWARE -DSELECT -DSVR4 -DDIRENT -DHDBUUCP -DBIGBUFOK \
5052 -DUW7 -DNOGETUSERSHELL -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DNOLSTAT \
5053 -DFNFLOAT -DCK_NEWTERM $(KFLAGS)" \
5054 "LIBS=-lsocket -lnsl -lcurses -ltermcap -lcrypt -lm -lresolv $(LIBS)" \
5055 "LNKFLAGS = -s"
5056
5057 unixware7:
5058 $(MAKE) "MAKE=$(MAKE)" "KFLAGS=$(KFLAGS)" unixware7t \
5059 KTARGET=$${KTARGET:-$(@)}
5060
5061 uw7:
5062 $(MAKE) "MAKE=$(MAKE)" "KFLAGS=$(KFLAGS)" unixware7t \
5063 KTARGET=$${KTARGET:-$(@)}
5064
5065 #SCO OpenUNIX 8.0
5066 ou8:
5067 @echo 'Making C-Kermit $(CKVER) for Open UNIX 8...'
5068 $(MAKE) "MAKE=$(MAKE)" "KFLAGS=-DOU8 $(KFLAGS)" unixware7t \
5069 KTARGET=$${KTARGET:-$(@)}
5070
5071 #UnixWare 7 with OpenSSL
5072 uw7ssl uw7+ssl:
5073 @echo 'Making C-Kermit $(CKVER) for UnixWare 7 and OpenSSL...'
5074 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
5075 "CFLAGS = -O -DCK_AUTHENTICATION -DCK_SSL -DCK_SHADOW \
5076 -DUNIXWARE -DSELECT -DSVR4 -DDIRENT -DHDBUUCP -DBIGBUFOK \
5077 -DFNFLOAT -DNOGETUSERSHELL -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DPOSIX \
5078 -DUW7 -DUSETCSETSPEED -DCK_NEWTERM -DNOLSTAT -DDCLTIMEVAL \
5079 $(SSLINC) $(KFLAGS)" \
5080 "LIBS=-lsocket -lnsl -lcurses -ltermcap -lcrypt -lm -lresolv \
5081 -lgen -lcudk70 $(SSLLIB) -lssl -lcrypto $(LIBS)" \
5082 "LNKFLAGS = -s"
5083
5084 #As above but includes Shadow password support needed for IKSD.
5085 uw7iksd:
5086 $(MAKE) "MAKE=$(MAKE)" "KFLAGS=-DCK_SHADOW $(KFLAGS)" \
5087 KTARGET=$${KTARGET:-$(@)} "LIBS= -lgen" unixware7t
5088
5089 #As above but links with static API for realpath() so a binary built
5090 #with this target on UW7.1 will also work on 7.0. Requires SCO UDK
5091 #rather than the stock compiler.
5092 uw7iksdudk:
5093 $(MAKE) "MAKE=$(MAKE)" "KFLAGS=-DCK_SHADOW $(KFLAGS)" \
5094 KTARGET=$${KTARGET:-$(@)} "LIBS= -lgen -lcudk70" unixware7t
5095
5096 #ESIX SVR4.0.3 or 4.04 with TCP/IP support.
5097 #Has <sys/termiox.h>, ANSI C function prototyping disabled.
5098 #Add -m486 to CFLAGS if desired.
5099 esixr4:
5100 @echo 'Making C-Kermit $(CKVER) for ESIX SVR4 + TCP/IP...'
5101 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
5102 "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DNOANSI \
5103 -DSTERMIOX -DTCPSOCKET $(KFLAGS)" "LNKFLAGS = -s" \
5104 "LIBS = -lsocket -lnsl"
5105
5106 #AT&T UNIX System V R4.
5107 #Has <sys/termiox.h>, Wollongong WIN/TCP TCP/IP.
5108 sys5r4sxnet:
5109 @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
5110 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
5111 "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP \
5112 -DSTERMIOX -DWOLLONGONG $(KFLAGS)" "LNKFLAGS = -s"
5113
5114 #AT&T UNIX System V R4, no <termio.x> or <sys/termio.x>.
5115 sys5r4nx:
5116 @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
5117 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
5118 "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DNOLEARN $(KFLAGS)" \
5119 "LNKFLAGS = -s"
5120
5121 #AT&T UNIX System V R4, no <termio.x> or <sys/termio.x>, curses, TCP/IP.
5122 sys5r4nxnetc:
5123 @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
5124 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
5125 "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP \
5126 -DCK_CURSES -DTCPSOCKET $(KFLAGS)" \
5127 "LIBS = -lcurses -lsocket -lnsl -ltcpip" \
5128 "LNKFLAGS = -s"
5129
5130 #AT&T UNIX System V R4, no <termio.x> or <sys/termio.x>, Wollongong TCP/IP.
5131 sys5r4nxtwg:
5132 @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
5133 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
5134 "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DWOLLONGONG $(KFLAGS)"
5135 "LNKFLAGS = -s"
5136
5137 #ICL UNIX System V R4.(DRS N/X) version :-
5138 #UNIX System V Release 4.0 ICL DRS 6000 (SPARC)
5139 #DRS/NX 6000 SVR4 Version 5 Level 1 Increment 4
5140 #Has <sys/termiox.h>, regular Berkeley sockets library, i.e. in.h and inet.h
5141 #are not misplaced in sys (rather than netinet and arpa, respectively).
5142 #Uses ANSI C constructs, advisory file locking on devices, etc.
5143 #Remove -lnsl if it causes trouble.
5144 iclsys5r4:
5145 @echo 'Making C-Kermit $(CKVER) for ICL UNIX System V R4 (DRS N/X)'
5146 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
5147 "CFLAGS = -O -DSVR4 -DICL_SVR4 -DDIRENT -DHDBUUCP -DNOGETUSERSHELL \
5148 -DSTERMIOX -DTCPSOCKET $(KFLAGS)" \
5149 "LIBS= -lsocket -lnsl -lresolv " "LNKFLAGS = -s"
5150
5151 #As above but for DRS/NX 4.2MP 7MPlus.
5152 iclsys5r4m+:
5153 @echo 'Making C-Kermit $(CKVER) for ICL UNIX System V R4 DRS/NX 4.2MP+'
5154 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
5155 "CFLAGS = -O -DSVR4 -DICL_SVR4 -DDIRENT -DHDBUUCP -DNOIKSD \
5156 -DSTERMIOX -DTCPSOCKET $(KFLAGS)" \
5157 "LIBS= -lsocket -lnsl -lm -lc -g -lgen " "LNKFLAGS = -s"
5158
5159 #As above but for DRS/NX 4.2MP 7MPlus with IKSD support.
5160 iclsys5r4m+iksd:
5161 @echo 'Making C-Kermit $(CKVER) for ICL UNIX System V R4 DRS/NX 4.2MP+'
5162 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
5163 "CFLAGS = -O -DSVR4 -DICL_SVR4 -DDIRENT -DHDBUUCP -DNOGETUSERSHELL \
5164 -DSTERMIOX -DTCPSOCKET $(KFLAGS)" \
5165 "LIBS= -lsocket -lnsl -lm -lc -g -lgen -lresolv " "LNKFLAGS = -s"
5166
5167 iclsys5r4_486:
5168 $(MAKE) "MAKE=$(MAKE)" iclsys5r4 KTARGET=$${KTARGET:-$(@)}
5169
5170 #Data General DG/UX 4.30 (System V R3) for DG AViiON, with TCP/IP support.
5171 dgux430:
5172 @echo 'Making C-Kermit $(CKVER) for DG AViiON DG/UX 4.30...'
5173 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
5174 "CFLAGS = -O -DDGUX430 -DSVR3 -DDIRENT -DTCPSOCKET \
5175 -DNOINADDRX -DNOGETUSERSHELL $(KFLAGS)"
5176
5177 #Data General DG/UX 4.30 for DG AViiON, with TCP/IP support with BSDisms.
5178 dgux430bsd:
5179 @echo 'Making C-Kermit $(CKVER) for DG AViiON DG/UX 4.30...'
5180 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
5181 "CFLAGS = -O -DDGUX430 -D_BSD_SOURCE -DBSD4 \
5182 -DNOINADDRX -DTCPSOCKET -DNOGETUSERSHELL $(KFLAGS)"
5183
5184 #Data General DG/UX 5.4 (System V R4) for DG AViiON, with TCP/IP support.
5185 #Add -lsocket -lnsl if inet_addr comes up missing...
5186 #Hmmm - I really think CK_POLL can be removed from this one in which case
5187 #there is no difference between dgux540 and dgux540i.
5188 dgux540:
5189 @echo 'Making C-Kermit $(CKVER) for DG AViiON DG/UX 5.40...'
5190 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
5191 "CFLAGS = -O -DDGUX540 -DDIRENT -DHDBUUCP -DNOINADDRX \
5192 -DSTERMIOX -DTCPSOCKET -DCK_POLL -DNOGETUSERSHELL $(KFLAGS)"
5193
5194 #Data General DG/UX 5.40 (System V R4) for Intel AViiON, with TCP/IP support.
5195 dgux540i:
5196 @echo 'Making C-Kermit $(CKVER) for DG AViiON DG/UX 5.40...'
5197 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
5198 "CFLAGS = -O -DDGUX540 -DDIRENT -DHDBUUCP -DNOINADDRX \
5199 -DSTERMIOX -DTCPSOCKET -DNOGETUSERSHELL $(KFLAGS)" \
5200 "LIBS = -lsocket -lnsl"
5201
5202 dgux54:
5203 make dgux540 KTARGET=$${KTARGET:-$(@)}
5204
5205 #Data General DG/UX 5.4 (= System V R4) for DG AViiON, with TCP/IP support.
5206 # And curses.
5207 dgux540c:
5208 @echo 'Making C-Kermit $(CKVER) for DG AViiON DG/UX 5.4...'
5209 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
5210 "CFLAGS = -O -DDGUX540 -DDIRENT -DHDBUUCP -DNOINADDRX \
5211 -DSTERMIOX -DTCPSOCKET -DCK_CURSES -DCK_NEWTERM -DNOGETUSERSHELL \
5212 $(KFLAGS)" "LIBS= -lcurses8 -ltermcap" "LNKFLAGS = -s"
5213
5214 #As above but for Intel - only difference is name library names.
5215 dgux540ic:
5216 @echo 'Making C-Kermit $(CKVER) for DG AViiON DG/UX 5.40...'
5217 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
5218 "CFLAGS = -O -DDGUX540 -DDIRENT -DHDBUUCP -DNOINADDRX \
5219 -DSTERMIOX -DTCPSOCKET -DCK_CURSES -DCK_NEWTERM -DNOGETUSERSHELL \
5220 $(KFLAGS)" "LIBS = -lsocket -lnsl -lcurses -ltermcap"
5221
5222 dgux54c:
5223 make dgux540c KTARGET=$${KTARGET:-$(@)}
5224
5225 #DG/UX 5.4R3.10
5226 dgux54310:
5227 @echo 'Making C-Kermit $(CKVER) for DG AViiON DG/UX 5.4R3...'
5228 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
5229 "CFLAGS = -DDGUX540 -DDGUX54310 -DDIRENT -DHDBUUCP -DSELECT \
5230 -DSTERMIOX -DTCPSOCKET -DCK_CURSES -DCK_NEWTERM -DNOGETUSERSHELL \
5231 -DNOINADDRX $(KFLAGS)" "LIBS= -lcurses8 -ltermcap" "LNKFLAGS = -s"
5232
5233 #DG/UX 5.4R4.10 - Includes everything.
5234 dgux54410:
5235 @echo 'Making C-Kermit $(CKVER) for DG/UX 5.4R4.10...'
5236 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
5237 "CFLAGS = -O -DDGUX540 -DDGUX54410 -DDIRENT -DHDBUUCP -DSELECT \
5238 -DSTERMIOX -DTCPSOCKET -DCK_CURSES -DCK_NEWTERM -DNOGETUSERSHELL \
5239 -DNOINADDRX $(KFLAGS)" "LIBS = -lsocket -lnsl -lcurses -ltermcap"
5240
5241 #DG/UX 5.4R4.11 - Includes everything.
5242 dgux54411:
5243 @echo 'Making C-Kermit $(CKVER) for DG/UX 5.4R4.11...'
5244 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
5245 "CFLAGS = -O -DDGUX540 -DDGUX54411 -DDIRENT -DHDBUUCP -DSELECT \
5246 -DSTERMIOX -DTCPSOCKET -DCK_CURSES -DCK_NEWTERM -DNOGETUSERSHELL \
5247 -DNOINADDRX $(KFLAGS)" "LIBS = -lsocket -lnsl -lcurses -ltermcap"
5248
5249 #DG/UX 5.4R4.20 - Includes everything.
5250 dgux54420:
5251 @echo 'Making C-Kermit $(CKVER) for DG/UX 5.4R4.20...'
5252 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
5253 "CFLAGS = -O -DDGUX540 -DDGUX54420 -DDIRENT -DHDBUUCP -DSELECT \
5254 -DSTERMIOX -DTCPSOCKET -DCK_CURSES -DCK_NEWTERM -DNOGETUSERSHELL \
5255 -DNOINADDRX $(KFLAGS)" \
5256 "LIBS = -lsocket -lresolv -lnsl -lcurses -ltermcap"
5257
5258 #Silicon Graphics System V R3 with BSD file system (IRIS)
5259 iris:
5260 @echo Making C-Kermit $(CKVER) for Silicon Graphics IRIX pre-3.3...
5261 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
5262 "CFLAGS = -O -DSVR3 -DLONGFN -DNOLEARN $(KFLAGS) -I/usr/include/bsd" \
5263 "LIBS = -lbsd"
5264
5265 #Silicon Graphics IRIS System V R3
5266 irix33:
5267 @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 3.3...'
5268 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
5269 "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DNOLEARN $(KFLAGS) -O" \
5270 "LNKFLAGS = -s"
5271
5272 #Silicon Graphics Iris Indigo with IRIX 4.0.0 or 5.0...
5273 #Strict ANSI C compilation, TCP/IP support included
5274 irix40:
5275 @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 4.0...'
5276 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
5277 "CFLAGS = -DIRIX40 -DSVR3 -DDIRENT -DHDBUUCP -DPWID_T=uid_t \
5278 -DCK_ANSIC -DTCPSOCKET $(KFLAGS) -O -Olimit 1600 -I/usr/include/bsd" \
5279 "LNKFLAGS = -s"
5280
5281 #As above, but with fullscreen display (curses) and Sun Yellow Pages support.
5282 #NOTE: IRIX versions prior to 5 run COFF binaries.
5283 irix40ypc:
5284 @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 4.0.'
5285 @echo 'Includes fullscreen file display and Sun Yellow Pages...'
5286 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
5287 "CFLAGS = -DIRIX40 -DSVR3 -DDIRENT -DHDBUUCP -DCK_CURSES \
5288 -DPWID_T=uid_t -DCK_ANSIC -DTCPSOCKET $(KFLAGS) \
5289 -O -Olimit 1600 -I/usr/include/bsd" \
5290 "LIBS = -lcurses -lsun" "LNKFLAGS = -s"
5291
5292 # Silicon Graphics Iris Series 4D/*, IRIX 4.0.x, -O4 ucode optimized.
5293 # Huge temporary file space needed for ucode optimizer. If you get an error
5294 # like "ugen: internal error writing to /tmp/ctmca08777: Error 0", define the
5295 # the TMPDIR environment variable to point to a file system that has more
5296 # space available, e.g. "setenv TMPDIR /usr/tmp".
5297 irix40u:
5298 @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 4.0...'
5299 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
5300 "CFLAGS = -DIRIX40 -DSVR3 -DDIRENT -DHDBUUCP -DPWID_T=uid_t \
5301 -DCK_ANSIC -DTCPSOCKET $(KFLAGS) -O4 -Olimit 1600" \
5302 "LNKFLAGS=-O4 -Olimit 1600 -s" "EXT=u"
5303
5304 # As above, with Curses Support added
5305 irix40uc:
5306 @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 4.0...'
5307 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
5308 "CFLAGS = -DIRIX40 -DSVR3 -DDIRENT -DHDBUUCP -DPWID_T=uid_t \
5309 -DCK_ANSIC -DCK_CURSES -DTCPSOCKET $(KFLAGS) -O4 -Olimit 1600" \
5310 "LNKFLAGS=-O4 -Olimit 1600 -s" "EXT=u" "LIBS= -lcurses -ltermcap"
5311
5312 #Silicon Graphics IRIX 5.x.
5313 #Yellow Pages and Curses support included.
5314 #IRIX version 5.x can run COFF or ELF binaries.
5315 irix51:
5316 @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 5.x'
5317 @echo 'Includes fullscreen file display and Yellow Pages...'
5318 @echo 'Add -mips<n> to CFLAGS specify a particular hardware target.'
5319 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
5320 "CFLAGS = -DIRIX51 -DSVR4 -DDIRENT -DHDBUUCP -DCK_CURSES -DCK_NEWTERM \
5321 -DPWID_T=uid_t -DCK_ANSIC -DTCPSOCKET -DSELECT -DNOGETUSERSHELL \
5322 -DSYSTIMEH -DDCLPOPEN -DDCLFDOPEN $(KFLAGS) -ansi -O -Olimit 3000" \
5323 "LIBS = -lcurses" "LNKFLAGS = -s"
5324
5325 #Use this one if irix51 blows up due to lack of swap space or whatever.
5326 irix51x:
5327 @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 5.x'
5328 @echo 'Includes fullscreen file display and Yellow Pages...'
5329 @echo 'Add -mips<n> to CFLAGS specify a particular hardware target.'
5330 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
5331 "CFLAGS = -DIRIX51 -DSVR4 -DDIRENT -DHDBUUCP -DCK_CURSES -DCK_NEWTERM \
5332 -DPWID_T=uid_t -DCK_ANSIC -DTCPSOCKET -DSELECT -DNOGETUSERSHELL \
5333 -DSYSTIMEH -DDCLPOPEN -DDCLFDOPEN $(KFLAGS)" \
5334 "LIBS = -lcurses" "LNKFLAGS = -s"
5335
5336 irix51ypc:
5337 $(MAKE) "MAKE=$(MAKE)" irix51 KTARGET=$${KTARGET:-$(@)} \
5338 "KFLAGS= $(KFLAGS)"
5339
5340 #IRIX 5.2 adds RTS/CTS
5341 irix52:
5342 $(MAKE) "MAKE=$(MAKE)" irix51 KTARGET=$${KTARGET:-$(@)} \
5343 "KFLAGS=-DIRIX52 -DCK_RTSCTS $(KFLAGS)"
5344
5345 irix53:
5346 $(MAKE) "MAKE=$(MAKE)" irix51 KTARGET=$${KTARGET:-$(@)} \
5347 "KFLAGS=-DIRIX52 -DIRIX53 -DCK_RTSCTS $(KFLAGS)"
5348
5349 irix53x:
5350 $(MAKE) "MAKE=$(MAKE)" irix51x KTARGET=$${KTARGET:-$(@)} \
5351 "KFLAGS=-DIRIX52 -DIRIX53 -DCK_RTSCTS $(KFLAGS)"
5352
5353 #Silicon Graphics IRIX 6.[024] common stuff.
5354 #Yellow Pages and Curses support included.
5355 #IRIX version 6.0 and later runs only ELF binaries.
5356 #Depends on code changes in ckcdeb.h that make -DIRIX6x define all
5357 #lower IRIX6x values and IRIX51.
5358 irix6x:
5359 @echo 'Includes fullscreen file display and Yellow Pages...'
5360 @echo 'Add -mips<n> to specify a particular hardware target.'
5361 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
5362 "CFLAGS = -DSVR4 -DDIRENT -DHDBUUCP -DNOGETUSERSHELL \
5363 -DCK_CURSES -DCK_NEWTERM -DPWID_T=uid_t -DCK_ANSIC -DTCPSOCKET \
5364 -DSELECT -DCK_RTSCTS -O $(KFLAGS)" \
5365 "LIBS = -lcurses" "LNKFLAGS = -s $(LNKFLAGS)"
5366
5367 #Silicon Graphics IRIX 6.0.
5368 irix60:
5369 @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 6.0'
5370 @$(MAKE) "MAKE=$(MAKE)" \
5371 "KFLAGS=-DIRIX60 -Olimit 2138 $(KFLAGS)" \
5372 irix6x KTARGET=$${KTARGET:-$(@)}
5373
5374 #Silicon Graphics IRIX 6.2.
5375 #Serial speeds > 38400 are available in IRIX 6.2 on O-class machines only.
5376 #Note: Olimit must be a number > 0.
5377 irix62:
5378 @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 6.2'
5379 @$(MAKE) "MAKE=$(MAKE)" \
5380 LNKFLAGS="-Wl,-woff,84" \
5381 "KFLAGS=-DIRIX62 -Olimit 4700 $(KFLAGS)" \
5382 irix6x KTARGET=$${KTARGET:-$(@)}
5383
5384 #Silicon Graphics IRIX 6.3.
5385 irix63:
5386 @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 6.3'
5387 @$(MAKE) "MAKE=$(MAKE)" irix62 KTARGET=$${KTARGET:-$(@)} \
5388 "KFLAGS=-DIRIX63"
5389
5390 #Silicon Graphics IRIX 6.4.
5391 # -woff,84 to linker stops complaints about no symbols loaded from
5392 # curses, and -woff 1110 stops complaints about unreachable "break;"
5393 # statements in ckcpro.c among others.
5394 # tested on SGI Octane, running IRIX 6.4 up to 115200 bps.
5395 # -Olimit 0 means infinite.
5396 irix64:
5397 @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 6.4'
5398 @$(MAKE) "MAKE=$(MAKE)" \
5399 LNKFLAGS="-Wl,-woff,84" \
5400 "KFLAGS=-DIRIX64 -DCK_RTSCTS -Olimit 3000 -woff 1110 $(KFLAGS)" \
5401 irix6x KTARGET=$${KTARGET:-$(@)}
5402
5403 irix64gcc:
5404 @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 6.4 gcc'
5405 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
5406 "CFLAGS= -DSVR4 -DIRIX64 -DDIRENT -DHDBUUCP -DNOGETUSERSHELL \
5407 -DSELECT -DPWID_T=uid_t -DTCPSOCKET -DNOCOTFMC \
5408 -DCK_ANSIC -DCK_RTSCTS -DCK_NEWTERM -DCK_CURSES \
5409 $(KFLAGS) -O" "LIBS= -lcurses -ltermcap -lcrypt"
5410
5411 #Note the new Optimization option syntax for MIPSpro CC 7.2.1.2m.
5412 #See note on irix65gcc target about Large File Support (LFS).
5413 irix65:
5414 @echo 'Making C-Kermit $(CKVER) for SGI IRIX 6.5'
5415 @$(MAKE) "MAKE=$(MAKE)" LNKFLAGS="-Wl,-woff,84" \
5416 "KFLAGS=-DIRIX65 -D_LARGEFILE_SOURCE -DCK_RTSCTS -OPT:Olimit=0 \
5417 -woff 1110,1552,1174 $(KFLAGS)" \
5418 irix6x KTARGET=$${KTARGET:-$(@)}
5419
5420 #Build for those that have GCC instead of MIPSpro.
5421 #
5422 # Large File Support note: use the define _LARGEFILE_SOURCE to enable support
5423 # for files larger than 2GB. This may work on releases of Irix prior to
5424 # 6.5.xx. To verify, check the man page for fstat and verify that off_t is a
5425 # 64 bit value for an -n32 build. Also check the manpage for fseek and ftell
5426 # to verify that the fseek64 and ftell64 functions are provided. If so, then
5427 # LFS support should work and you can try adding -D_LARGEFILE_SOURCE to CFLAGS
5428 # for your selected Irix target.
5429 #
5430 irix65gcc:
5431 @echo 'Making C-Kermit $(CKVER) for SGI IRIX 6.5 with gcc'
5432 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
5433 "CC = gcc" "CC2 = gcc" \
5434 "CFLAGS= -DSVR4 -DIRIX65 -D_LARGEFILE_SOURCE -DDIRENT -DHDBUUCP \
5435 -DNOGETUSERSHELL -DSELECT -DPWID_T=uid_t -DTCPSOCKET -DNOCOTFMC \
5436 -DCK_ANSIC -DCK_RTSCTS -DCK_NEWTERM -DCK_CURSES \
5437 $(KFLAGS) -O" "LIBS= -lcurses"
5438
5439 # The 64-bit IRIX target works but presumably is no longer needed given the
5440 # large file support in the more portable and compact 32-bit version.
5441 irix65_64:
5442 @echo 'Making C-Kermit $(CKVER) 64-bit for SGI IRIX 6.5'
5443 @$(MAKE) "MAKE=$(MAKE)" LNKFLAGS="-Wl,-woff,84" \
5444 "KFLAGS=-DIRIX65 -64 -DCK_RTSCTS -OPT:Olimit=0 -woff 1110,1552,1174 \
5445 -DCK_64BIT $(KFLAGS)" \
5446 irix6x KTARGET=$${KTARGET:-$(@)}
5447
5448 #Dumb down to MIPS-2 if building on R5000 or higher...
5449 irix65mips2:
5450 @echo 'Making C-Kermit $(CKVER) for SGI IRIX 6.5 MIPS-2'
5451 @$(MAKE) "MAKE=$(MAKE)" LNKFLAGS="-o32 -mips2 -Wl,-woff,84" \
5452 "KFLAGS=-DIRIX65 -DCK_RTSCTS -OPT:Olimit=0 -o32 -mips2 \
5453 -woff 1110,1552,1174 $(KFLAGS)" \
5454 irix6x KTARGET=$${KTARGET:-$(@)}
5455
5456 #Special target that adds srp, ssl, and zlib support. This requires
5457 #that you have pkgsrc installed instead of Irix Freeware. See
5458 #NetBSD.org for pkgsrc for Irix. You will need to BUILD the srp_client
5459 #package yourself. Install it manually using the directions found
5460 #in the netbsds+ssl+srp+zlib target comments.
5461 irix65+ssl+srp+zlib:
5462 @echo 'Making C-Kermit $(CKVER) for IRIX 6.5 with gcc and SSL SRP ZLIB'
5463 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
5464 "CC = gcc" "CC2 = gcc" \
5465 "CFLAGS= -DIRIX65 -DSVR4 -DDIRENT -DHDBUUCP -DNOGETUSERSHELL -DSELECT \
5466 -DTCPSOCKET -DNOCOTFMC -DCK_NEWTERM -DPWID_T=uid_t -DCK_ANSIC \
5467 -I/usr/pkg/include -DCK_AUTHENTICATION -DCK_SRP -DPRE_SRP_1_4_5 \
5468 -DCK_RTSCTS -DCK_NCURSES -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DCK_SSL \
5469 -DLIBDES -DZLIB -DFNFLOAT -I/usr/pkg/include/openssl $(KFLAGS) -O" \
5470 "LIBS= -L/usr/pkg/lib -rpath /usr/pkg/lib -lncurses -lsrp -lgmp -ldes \
5471 -lssl -lkrypto -lcrypto -lcrypt -lz -lm"
5472
5473 irix6x+krb5:
5474 @echo 'Includes fullscreen file display and Yellow Pages...'
5475 @echo 'Add -mips<n> to specify a particular hardware target.'
5476 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
5477 "CFLAGS = -DSVR4 -DDIRENT -DHDBUUCP -DNOGETUSERSHELL \
5478 -DCK_CURSES -DCK_NEWTERM -DPWID_T=uid_t -DCK_ANSIC -DTCPSOCKET\
5479 -DSELECT -DCK_RTSCTS -O \
5480 -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 -DCK_ENCRYPTION -DCK_DES \
5481 $(K5INC) $(K5INC)/krb5 $(KFLAGS)" \
5482 "LIBS = -lcurses $(K5LIB) -ldes425 -lkrb5 \
5483 -lcom_err -lcrypto -lcrypt -lgssapi_krb5" \
5484 "LNKFLAGS = -s $(LNKFLAGS)"
5485
5486 irix65+krb5:
5487 @echo 'Making C-Kermit $(CKVER) for SGI IRIX 6.5'
5488 @$(MAKE) "MAKE=$(MAKE)" \
5489 LNKFLAGS="-Wl,-woff,84" \
5490 "KFLAGS=-DIRIX65 -DCK_RTSCTS -OPT:Olimit=0 -woff 1110,1552,1174 \
5491 $(KFLAGS)" \
5492 irix6x+krb5 KTARGET=$${KTARGET:-$(@)}
5493
5494 #In case they type "make sys5"...
5495 sys5:
5496 $(MAKE) "MAKE=$(MAKE)" sys3 KTARGET=$${KTARGET:-$(@)}
5497
5498 #Generic ATT System III or System V (with I&D space)
5499 sys3:
5500 @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System III'
5501 @echo 'or System V R2 or earlier...'
5502 @echo 'add -DNOMKDIR if mkdir is an undefined symbol.'
5503 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
5504 "CFLAGS = -DATTSV -DNOUNICODE -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL \
5505 -DNOINITGROUPS -DNOFTRUNCATE -DNOREALPATH -DNOLEARN $(KFLAGS) -i -O" \
5506 "LNKFLAGS = -i"
5507
5508 #Generic ATT System III or System V (no I&D space)
5509 sys3nid:
5510 @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System III'
5511 @echo 'or System V R2 or earlier, no I&D space...'
5512 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
5513 "CFLAGS = -DATTSV -DNOREALPATH -DNOUNICODE -DNOSYSLOG -DNOSYMLINK \
5514 -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE -DNOLEARN $(KFLAGS) -O" \
5515 "LNKFLAGS ="
5516
5517 #Generic ATT System III or System V R2 or earlier, "no void":
5518 #special entry to remove "Illegal pointer combination" warnings.
5519 sys3nv:
5520 @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System III'
5521 @echo 'or System V R2 or earlier...'
5522 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
5523 "CFLAGS= -DATTSV -DNOREALPATH -DNOUNICODE -DNOSYSLOG -DNOGETUSERSHELL \
5524 -DNOSYMLINK -DNOFTRUNCATE -DNOINITGROUPS -DNOLEARN \
5525 -Dvoid=int $(KFLAGS) -i -O" \
5526 "LNKFLAGS = -i"
5527
5528 # AT&T 7300 UNIX PC. As of C-Kermit 6.1, many of these entries don't work
5529 # any more due to "Out of memory" or "Too many defines" errors during
5530 # compilation, at least not on systems without lots of memory. The sys3upcgc
5531 # entry works (using gcc) with optimization removed, and might also work
5532 # with optimization enabled on machines with larger memories.
5533
5534 #AT&T 7300/UNIX PC (3B1) systems, sys3 but special handling for internal modem.
5535 #Link with the shared library -- the conflict with openi in shared library
5536 #is solved with -Dopeni=xopeni. Note that the xermit target can't be used
5537 #for the Unix PC; there is no select().
5538 sys3upc:
5539 @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC, shared lib...'
5540 @echo 'If shared lib causes trouble, use make sys3upcold.'
5541 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
5542 "CFLAGS = -O -DATT7300 -DNOMKDIR -DUSE_MEMCPY -DNOREALPATH -DNOLEARN \
5543 -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
5544 -DNOREDIRECT -DNOGFTIMER -DNOUNICODE $(KFLAGS) -Dopeni=xopeni" \
5545 "CC2 = ld /lib/crt0s.o /lib/shlib.ifile" "LNKFLAGS = -s"
5546
5547 #AT&T 7300/Unix PC systems, minimum kermit for those with smaller amounts
5548 #of memory.
5549 sys3upcm:
5550 @echo Minimum interactive
5551 $(MAKE) "MAKE=$(MAKE)" sys3upc KTARGET=$${KTARGET:-$(@)} \
5552 "KFLAGS=-DNOSPL -DNOFRILLS -DNOHELP -DNODEBUG -DNOTLOG -DNOCSETS \
5553 -DNOSYSLOG -DNOSETKEY -DNOREALPATH"
5554
5555 #AT&T 7300/UNIX PC (3B1) systems, with curses support.
5556 #Curses and the shared library don't get along, so we don't use the
5557 #shared library. We need to include CK_NEWTERM to avoid a conflict
5558 #with curses and buffering on stdout. Merged with submission by
5559 #Robert Weiner/Programming Plus, [email protected].
5560 #We don't need -Dopeni=xopeni since we're not using the shared library,
5561 #but we keep it to be consistent with the other entries.
5562 sys3upcc:
5563 @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC, curses...'
5564 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
5565 "CFLAGS = -O -DATT7300 -DNOREALPATH \
5566 -DCK_CURSES -DCK_NEWTERM -DNOMKDIR -DNOREDIRECT -DNOGFTIMER -DNOLEARN \
5567 -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
5568 -DUSE_MEMCPY -DNOUNICODE $(KFLAGS) -Dopeni=xopeni" \
5569 "LIBS = -lcurses" "LNKFLAGS = -s"
5570
5571 #Like sys3upcc but for AT&T UNIX 3.51m (released as a patch on Fix Disk 2),
5572 #adds hardware flow control.
5573 att351m:
5574 $(MAKE) "MAKE=$(MAKE)" sys3upcc KTARGET=$${KTARGET:-$(@)} \
5575 "KFLAGS=-DCK_RTSCTS -DUNIX351M"
5576
5577 #As above but with gcc.
5578 att351gm:
5579 $(MAKE) "MAKE=$(MAKE)" sys3upcgc KTARGET=$${KTARGET:-$(@)} \
5580 "KFLAGS=-DCK_RTSCTS -DUNIX351M"
5581
5582 #AT&T 7300 UNIX PC (3B1), as above, but no newterm().
5583 sys3upcx:
5584 @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC, curses...'
5585 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
5586 "CFLAGS = -O -DATT7300 -DNOREALPATH -DNOUNICODE -DNOLEARN \
5587 -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
5588 -DCK_CURSES -DNOMKDIR -DNOREDIRECT -DNOGFTIMER -DUSE_MEMCPY $(KFLAGS) \
5589 -Dopeni=xopeni" "LIBS = -lcurses -ltermcap" "LNKFLAGS = -s"
5590
5591 #AT&T 7300/UNIX PC (3B1) systems, with curses and shared library support.
5592 sys3upcshcc:
5593 @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC, shared lib...'
5594 @echo 'With curses. Requires shcc.'
5595 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
5596 "CFLAGS = -O -DATT7300 -DNOMKDIR -DNOREALPATH -DNOLEARN \
5597 -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
5598 -DCK_NEWTERM -DCK_CURSES -DNOREDIRECT -DNOGFTIMER \
5599 -DUSE_MEMCPY -DNOUNICODE $(KFLAGS) -Dopeni=xopeni" \
5600 "LNKFLAGS = -i -s" "CC = shcc" "CC2 = shcc" "LIBS = -lcurses"
5601
5602 #AT&T 7300/UNIX PC (3B1) systems, as above, no curses, but use gcc.
5603 sys3upcg:
5604 @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC...'
5605 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
5606 "CFLAGS = -DATT7300 -DNOREDIRECT -DUSE_MEMCPY -DNOUNICODE -DNOLEARN \
5607 -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
5608 -DNOGFTIMER -DNOMKDIR -DNOREALPATH $(KFLAGS) -Dopeni=xopeni" \
5609 "CC = gcc" "CC2 = gcc" "LNKFLAGS = -s -shlib"
5610
5611 #AT&T 7300/UNIX PC (3B1) systems, curses and gcc.
5612 #Optimization omitted -- add it back in if your machine has lots of memory.
5613 sys3upcgc:
5614 @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC, curses...'
5615 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
5616 "CFLAGS = -DATT7300 -DNOREDIRECT -DUSE_MEMCPY -DNOGFTIMER -DNOUNICODE \
5617 -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
5618 -DCK_CURSES -DCK_NEWTERM -DNOMKDIR -DNOREALPATH -DNOLEARN $(KFLAGS)" \
5619 "CC = gcc" "CC2 = gcc" "LIBS = -lcurses" "LNKFLAGS = -s"
5620
5621 #AT&T 7300/UNIX PC (3B1) systems, special handling for internal modem.
5622 #No FULLSCREEN file transfer display (curses).
5623 sys3upcold:
5624 @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC...'
5625 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
5626 "CFLAGS = -DATT7300 -DNOMKDIR -DUSE_MEMCPY -DNOUNICODE -DNOLEARN \
5627 -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
5628 -DNOGFTIMER -DNOREDIRECT -DNOREALPATH $(KFLAGS) -O" "LNKFLAGS = -i"
5629
5630 #As above, but with gcc. mininum features - fits on a 400K UNIX PC floppy
5631 #after compression with room to spare; add -DNOSHOW or other -DNOxxxx items
5632 #to reduce size even further.
5633 sys3upcgm:
5634 @echo Minimum interactive
5635 $(MAKE) "MAKE=$(MAKE)" sys3upcg KTARGET=$${KTARGET:-$(@)} \
5636 "KFLAGS=-DNOSPL -DNOFRILLS -DNOHELP -DNODEBUG -DNOTLOG -DNOCSETS \
5637 -DNOSETKEY $(KFLAGS)"
5638
5639 #This target is designed to create a version with the most features possible
5640 #that, after compression, still fits on a 400K UNIX PC floppy.
5641 sys3upcgfd:
5642 @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC floppy...'
5643 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
5644 "CFLAGS = -DATT7300 -DNOREDIRECT -DUSE_MEMCPY -DNOSPL -DNOLEARN \
5645 -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
5646 -DNOGFTIMER -DNOREALPATH -Dopeni=xopeni \
5647 -DNOHELP -DNODEBUG -DNOTLOG -DNOCSETS -DNOSETKEY -DNOMKDIR $(KFLAGS)" \
5648 "CC = gcc" "CC2 = gcc" "LNKFLAGS = -s"
5649
5650 #AT&T 6300 PLUS (warning, -O might make it run out of space).
5651 #NOTE: Remove -DHDBUUCP if not using Honey DanBer UUCP.
5652 att6300:
5653 @echo 'Making C-Kermit $(CKVER) for AT&T 6300 PLUS...'
5654 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
5655 "CFLAGS = -DATT6300 -DHDBUUCP -DNOFILEH -DNOREALPATH -DNOLEARN \
5656 -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
5657 -DNOUNICODE $(KFLAGS) -O -Ml -i" "LNKFLAGS = -i -Ml"
5658
5659 #As above, but with curses support. Debugging disabled to prevent thrashing.
5660 att6300c:
5661 @echo 'Making C-Kermit $(CKVER) for AT&T 6300 PLUS...'
5662 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
5663 "CFLAGS = -DATT6300 -DHDBUUCP -DNOFILEH -DNOCSETS -DNOREALPATH \
5664 -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
5665 -DCK_CURSES -DNODEBUG -DNOUNICODE -DNOLEARN $(KFLAGS) -O -Ml -i" \
5666 "LNKFLAGS = -i -Ml" "LIBS = -lcurses"
5667
5668 #AT&T 6300 PLUS with no curses, no debugging (about 34K smaller)
5669 # -Optimization saves about 20K too.
5670 att6300nd:
5671 @echo 'Making C-Kermit $(CKVER) for AT&T 6300 PLUS, no debugging...'
5672 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
5673 "CFLAGS = -DATT6300 -DHDBUUCP -DNODEBUG -DNOFILEH -DNOREALPATH \
5674 -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
5675 -DNOUNICODE -DNOLEARN $(KFLAGS) -O -i -Ml" "LNKFLAGS = -i -Ml"
5676
5677 #AT&T 3B2 and maybe 3B20-series computers running AT&T UNIX System V R3.
5678 #This one was actually used to build C-Kermit 7.0 successfully on a 3B2/300.
5679 att3b2:
5680 @echo 'Making C-Kermit $(CKVER) for AT&T 3B2'
5681 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
5682 "CFLAGS = -DATTSV -DNOREDIRECT -DUSE_MEMCPY \
5683 -DNOTIMEVAL -DNOTIMEZONE -DMINIDIAL -DNOCHANNELIO -DNOBIGBUF \
5684 -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
5685 -DNOGFTIMER -DNOREALPATH -Dopeni=xopeni -DNOFRILLS -DNOLEARN \
5686 -DNOHELP -DNODEBUG -DNOTLOG -DNOCSETS -DNOSETKEY -DNOMKDIR $(KFLAGS)" \
5687 "CC = gcc" "CC2 = gcc" "LNKFLAGS = -s"
5688
5689 # The next two are likely not to work as-is.
5690
5691 #AT&T 3B2, 3B20-series computers running AT&T UNIX System V.
5692 #This is just generic System V with Honey DanBer UUCP, so refer to sys3hdb.
5693 #Remove -DNONAWS if you can get away with it.
5694 att3bx:
5695 $(MAKE) "MAKE=$(MAKE)" sys3hdb KTARGET=$${KTARGET:-$(@)} \
5696 "KFLAGS=$(KFLAGS) -DNONAWS -DNOTIMEVAL"
5697
5698 # 3Bx with charsets (except Unicode) but no curses.
5699 att3bx1:
5700 @echo 'Making C-Kermit $(CKVER) for AT&T 3B2 or 3B20'
5701 @echo 'with Honey DanBer UUCP no curses...'
5702 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
5703 "CFLAGS = -DATTSV -DHDBUUCP $(KFLAGS) -DNOREDIRECT \
5704 -DNOTIMEVAL -DNOTIMEZONE -DMINIDIAL -DNOCHANNELIO -DNOBIGBUF \
5705 -DNOHELP -DNODEBUG -DNOGFTIMER -DNOLEARN \
5706 -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
5707 -DNOREALPATH -DNOUNICODE -i" \
5708 "CC = gcc" "CC2 = gcc" "LNKFLAGS = -i -s"
5709
5710 #AT&T 3B2, 3B20-series computers running AT&T UNIX System V,
5711 #with fullscreen file transfer display.
5712 att3bxc:
5713 @echo 'Making C-Kermit $(CKVER) for AT&T 3B2 or 3B20'
5714 @echo 'with Honey DanBer UUCP and curses...'
5715 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
5716 "CFLAGS = -DATTSV -DHDBUUCP -DNONAWS -DNOTIMEVAL $(KFLAGS) \
5717 -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
5718 -DNOREALPATH -DCK_CURSES -DCK_NEWTERM -DNOUNICODE -DNOLEARN -i -O" \
5719 "LNKFLAGS = -i" "LIBS=-lcurses"
5720
5721 #3bx with curses but no charsets
5722 att3bxc3:
5723 @echo 'Making C-Kermit $(CKVER) for AT&T 3B2 or 3B20'
5724 @echo 'with Honey DanBer UUCP with curses... no CSETS'
5725 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
5726 "CFLAGS = -DATTSV -DHDBUUCP $(KFLAGS) -DNOREDIRECT \
5727 -DNOTIMEVAL -DNOTIMEZONE -DMINIDIAL -DNOCHANNELIO -DNOBIGBUF \
5728 -DNOHELP -DNODEBUG -DNOGFTIMER -DNOLEARN \
5729 -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
5730 -DNOREALPATH -DNOCSETS -DCK_CURSES -DCK_NEWTERM -i" \
5731 "CC = gcc" "CC2 = gcc" "LNKFLAGS = -i -s" "LIBS = -lcurses"
5732
5733 #Any System V R2 or earlier with Honey DanBer UUCP (same as above)
5734 sys3hdb:
5735 @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System III'
5736 @echo 'or System V R2 or earlier with Honey DanBer UUCP...'
5737 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
5738 "CFLAGS = -DATTSV -DHDBUUCP -DNOREALPATH -DNOUNICODE -DNOLEARN \
5739 -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
5740 $(KFLAGS) -i -O" "LNKFLAGS = -i"
5741
5742 #Sperry/UNISYS 5000 UTS V 5.2 (System V R2), Honey DanBer UUCP
5743 unisys5r2:
5744 @echo 'Making C-Kermit $(CKVER) for Sperry/UNISYS 5000 UTS V 5.2...'
5745 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
5746 "CFLAGS = -DATTSV -DUNISYS52 -DHDBUUCP -DNOREALPATH -DNOUNICODE \
5747 -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
5748 -DNOLEARN $(KFLAGS) -i -O" "LNKFLAGS = -i"
5749
5750 #In case they say "make sys5hdb" instead of "make sys3hdb"...
5751 sys5hdb:
5752 $(MAKE) "MAKE=$(MAKE)" sys3hdb
5753
5754 #Create the common header line for all hpux[5-11]* entries and above. This
5755 #extra entry is here because our header message length may differ for each
5756 #C-Kermit version. Don't use 'fold -s' for HP-UX 5.x - 7.x! This option is
5757 #available only for HP-UX 8.0 and above!
5758 hpux-header:
5759 @HPUX=`uname -r | sed -e 's/^[^1-9]*//' -e 's/\.00$$/.0/'` ; \
5760 [ "$(MESSAGE0)" ] && MESSAGE1="$(MESSAGE0)" ; \
5761 Message0='Making C-Kermit $(CKVER) for HP9000 HP-UX' ; \
5762 Message1=$${MESSAGE1:='without any extra compiler optimization'} ; \
5763 MessageH="$$Message0 $$HPUX" ; \
5764 case $$HPUX in \
5765 [567].*) echo "$$MessageH\n$$Message1" ;; \
5766 *.*) echo "$$MessageH $${Message1}$(MESSAGE1A)" | fold -s ;; \
5767 esac | sed -e 's/^ //' -e 's/ *$$//'
5768
5769 # Peter E's updated HP-UX 5.xx entries Oct 2001.
5770
5771 #HP-9000 500 HP-UX 5.xx, no TCP/IP.
5772 # Last known successful build: C-Kermit 8.0.206 2002/20/27.
5773 hpux0500:
5774 @MESSAGE0="no TCP/IP and no compiler optimization";\
5775 MESSAGE0=$${MESSAGE1:-$$MESSAGE0} \
5776 $(MAKE) hpux-header
5777 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
5778 "CFLAGS = -DHPUX -DHPUX5 -DHPUXPRE65 -DNOREDIRECT -DDCLGETCWD \
5779 -DNOGETUSERSHELL -DNOGFTIMER -DNOSYSLOG -DNOTOMACROS -DNOLSTAT \
5780 -DNOSYMLINK -DNOINITGROUPS -DNOUNICODE -DNOLEARN -DNOLONGLONG \
5781 -DVOID=int -DCKVOID=int $(KFLAGS)" "LIBS = $(LIBS)" "LNKFLAGS = "
5782
5783 #HP-9000 500 HP-UX 5.21 with Wollongong WIN/TCP 1.2 TCP/IP.
5784 #Requires /usr/wins/usr/include and /usr/lib/libnet.a from Wollongong.
5785 #Optimization skipped - takes forever. Really.
5786 # WARNING: this doesn't work if a file called "hpux0500" is on the disk.
5787 # Last known successful build: C-Kermit 8.0.206 2002/20/27.
5788 hpux0500wintcp:
5789 @MESSAGE1="with WIN/TCP but without any extra compiler optimization" \
5790 $(MAKE) hpux0500 KTARGET=$${KTARGET:-$(@)} \
5791 "KFLAGS = -DTCPSOCKET -DHPUX5WINTCP -DINADDRX -DNO_DNS_SRV \
5792 -DNOMHHOST -DVOID=int -DCKVOID=int -DNOHADDRLIST -DNOLONGLONG \
5793 -I/usr/wins/usr/include $(KFLAGS)" "LIBS = /usr/lib/libnet.a"
5794
5795 #HP-UX 6.5, short filenames, no network and no curses support.
5796 #ckcpro, ckuusr, ckuus3 and others are broken out because they make the
5797 #optimizer run away. Note that the XERMIT target does not work with HP-UX 6.5!
5798 #
5799 #If you get compiler warnings like:
5800 #'Switch table overflow. Try the -Wc,-Nw option.' (for ckcuni.c, or
5801 #other files) increase the '...' value in '-Wc,-Nw...'! The default maximum
5802 #switch table stack (-Nw) is 250 table entries. ckcuni.c from Oct 16 2009
5803 #needs 257 table entries (C-Kermit Version "9.0.299").
5804 #OK: 2010/03/26
5805 hpux0650:
5806 @$(MAKE) hpux-header
5807 @MESSAGE2=$${MESSAGE2:-'and NO network'}; \
5808 echo "supporting: NO long filenames $$MESSAGE2."
5809
5810 $(MAKE) KTARGET=$${KTARGET:-$(@)} \
5811 ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) ckuus6.$(EXT) \
5812 ckuusr.$(EXT) ckuxla.$(EXT) ckcftp.$(EXT) ckcpro.$(EXT) \
5813 "CFLAGS = -DHPUX -DHPUX6 -DSIG_V -DNOSYSLOG -DNOSELECT -DFNFLOAT \
5814 -DDCLGETCWD -DNOGETUSERSHELL -DNO_DNS_SRV -DNOLEARN -DNOLONGLONG \
5815 $(KFLAGS)"
5816
5817 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
5818 "CFLAGS = -DHPUX -DHPUX6 -DSIG_V -DNOSYSLOG -DNOSELECT -DFNFLOAT \
5819 -DDCLGETCWD -DNOGETUSERSHELL -DNO_DNS_SRV -DNOLEARN -DNOLONGLONG \
5820 $(KFLAGS) -Wc,-Nw260 $(OFLAGS)" "LNKFLAGS = -s" "LIBS = -lm $(LIBS)"
5821
5822 #Exactly as above, plus curses:
5823 #OK: 2009/10/06
5824 hpux0650c:
5825 @MESSAGE2="and NO network but with curses" \
5826 $(MAKE) hpux0650 KTARGET=$${KTARGET:-$(@)} \
5827 "KFLAGS = -DCK_CURSES $(KFLAGS)" \
5828 "LIBS = -lcurses"
5829
5830 #Exactly as above, plus curses + network:
5831 #OK: 2009/10/02
5832 hpux0650tcpc:
5833 @MESSAGE2="but with curses and with TCP/IP" \
5834 $(MAKE) hpux0650 KTARGET=$${KTARGET:-$(@)} \
5835 "KFLAGS=-DCK_CURSES -DTCPSOCKET -DNOHADDRLIST \
5836 -DINTSELECT -DNOCKGETFQHOST $(KFLAGS)" \
5837 "LIBS=-lcurses"
5838
5839 #Exactly as hpux0650 but with compiler optimization:
5840 #OK: 2009/10/06
5841 hpux0650o:
5842 @MESSAGE1="with compiler optimization" \
5843 $(MAKE) hpux0650 KTARGET=$${KTARGET:-$(@)} \
5844 "KFLAGS = $(KFLAGS)" "OFLAGS = -O"
5845
5846 #Exactly as hpux0650c but with compiler optimization:
5847 #OK: 2009/10/06
5848 hpux0650oc:
5849 @MESSAGE1="with compiler optimization" \
5850 $(MAKE) hpux0650c KTARGET=$${KTARGET:-$(@)} \
5851 "KFLAGS = $(KFLAGS)" "OFLAGS = -O"
5852
5853 #Exactly as hpux0650tcpc but with compiler optimization:
5854 #OK: 2009/10/06
5855 hpux0650otcpc:
5856 @MESSAGE1="with compiler optimization" \
5857 $(MAKE) hpux0650tcpc KTARGET=$${KTARGET:-$(@)} \
5858 "KFLAGS = $(KFLAGS)" "OFLAGS = -O"
5859
5860 #Take this as startup entry for all 'non-optimized' files under HP-UX 7.x!
5861 #Make sure we don't call it with the '-O' option because this will blow up
5862 #the compiler!
5863 #OK: 2009/09/30
5864 hpux0700noopt:
5865 @case "$(CFLAGS)" in \
5866 *-O*) echo "Don't use CFLAGS= -O here!" ;; \
5867 *) $(MAKE) KTARGET=$${KTARGET:-$(@)} \
5868 ckuusr.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) \
5869 ckuus6.$(EXT) ckuus7.$(EXT) ckuxla.$(EXT) \
5870 ckcuni.$(EXT) ckcftp.$(EXT) ckcpro.$(EXT) \
5871 ;; \
5872 esac
5873
5874 #HP-UX 7.0, no long filenames, no network support, no curses.
5875 #If you get compiler warnings like:
5876 #'Switch table overflow. Try the -Wc,-Nw option.' (for ckcuni.c, or
5877 #other files) increase the '...' value in '-Wc,-Nw...'! The default maximum
5878 #switch table stack (-Nw) is 250 table entries. ckcuni.c from Oct 16 2009
5879 #needs 257 table entries (C-Kermit Version "9.0.299").
5880 #OK: 2010/10/26
5881 hpux0700sf:
5882 @$(MAKE) hpux-header
5883 @echo 'supporting: NO long filenames, NO network, NO curses.'
5884 $(MAKE) hpux0700noopt KTARGET=$${KTARGET:-$(@)} \
5885 "CFLAGS = -DHPUX -DHPUX7 -DSIG_V -DNOGETUSERSHELL -DFNFLOAT \
5886 -DNO_DNS_SRV $(KFLAGS) -Wc,-Nw260"
5887
5888 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
5889 "CFLAGS = -DHPUX -DHPUX7 -DSIG_V -DNOGETUSERSHELL -DFNFLOAT \
5890 -DNO_DNS_SRV $(KFLAGS) -Wc,-Nw260 $(OFLAGS)" \
5891 "LNKFLAGS = -s" "LIBS = -lm $(LIBS)"
5892
5893 #Exactly as hpux0700sf but with compiler optimization:
5894 #OK: 2009/09/30
5895 hpux0700osf:
5896 @MESSAGE1="with compiler optimization" \
5897 $(MAKE) hpux0700sf KTARGET=$${KTARGET:-$(@)} \
5898 "KFLAGS = $(KFLAGS)" "OFLAGS = -O"
5899
5900 #HP-UX 7.0, short filenames, but with tcp/ip and curses.
5901 #To use this, you must have bought the ARPA Services Product from HP, and you
5902 #must have /usr/lib/libBSD.a.
5903 #
5904 #If you get compiler warnings like:
5905 #'Symbol table overflow. Try the -Wc,-Ns option.' (as for ckuus4.c or
5906 #other files) increase the '...' value in '-Wc,-Ns...'! The default maximum
5907 #symbol table size (-Ns) is 2000 table entries. ckuus4.c from Mar 12 2010
5908 #needs 2031 table entries (C-Kermit Version "9.0.299").
5909 #OK: 2010/03/24
5910 hpux0700sftcpc:
5911 @$(MAKE) hpux-header
5912 @echo 'supporting: NO long filenames, \c'
5913 @echo 'but with networking, curses, HDB uucp...'
5914 $(MAKE) hpux0700noopt KTARGET=$${KTARGET:-$(@)} \
5915 "CFLAGS = -DHPUXDEBUG -DHPUX -DHPUX7 -DTCPSOCKET -DSIG_V \
5916 -DCK_REDIR -DCK_RTSCTS -DCK_CURSES -DNOGETUSERSHELL -DFNFLOAT \
5917 -DNO_DNS_SRV -DHDBUUCP -DLOCK_DIR=\\\"/usr/spool/uucp\\\" \
5918 -DNOLONGLONG $(KFLAGS) -Wc,-Nw260,-Ns2040"
5919
5920 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
5921 "CFLAGS = -DHPUXDEBUG -DHPUX -DHPUX7 -DTCPSOCKET -DSIG_V \
5922 -DCK_REDIR -DCK_RTSCTS -DCK_CURSES -DNOGETUSERSHELL -DFNFLOAT \
5923 -DNO_DNS_SRV -DHDBUUCP -DLOCK_DIR=\\\"/usr/spool/uucp\\\" \
5924 -DNOLONGLONG $(KFLAGS) -Wc,-Nw260,-Ns2040 $(OFLAGS)" \
5925 "LNKFLAGS = -s" "LIBS = -lm -lBSD -lcurses"
5926
5927 #Exactly as above but with compiler optimization:
5928 #OK: 2009/09/30
5929 hpux0700osftcpc:
5930 @MESSAGE1="with compiler optimization" \
5931 $(MAKE) hpux0700sftcpc KTARGET=$${KTARGET:-$(@)} \
5932 "KFLAGS = $(KFLAGS)" "OFLAGS = -O"
5933
5934 #HP 9000 series 300/800 HP-UX 7.0, long filenames, network support, HDB uucp,
5935 #but NO curses. See comments in hpux0700sftcpc about TCP/IP support.
5936 #
5937 #If you get compiler warnings like:
5938 #'Symbol table overflow. Try the -Wc,-Ns option.' (as for ckuus4.c or
5939 #other files) increase the '...' value in '-Wc,-Ns...'! The default maximum
5940 #symbol table size (-Ns) is 2000 table entries. ckuus4.c from Mar 12 2010
5941 #needs 2031 table entries (C-Kermit Version "9.0.299").
5942 #OK: 2010/03/24
5943 hpux0700lfn:
5944 @$(MAKE) hpux-header
5945 @echo 'supporting: long filenames, networking, HDB uucp$(MESSAGE2)...'
5946 $(MAKE) hpux0700noopt KTARGET=$${KTARGET:-$(@)} \
5947 "CFLAGS = -DHPUXDEBUG -DHPUX -DHPUX7 -DTCPSOCKET -DSIG_V -DFNFLOAT \
5948 -DNOGETUSERSHELL -DNOSETBUF -DCK_REDIR -DCK_RTSCTS -DLONGFN \
5949 -DNO_DNS_SRV -DDIRENT -DHDBUUCP -DLOCK_DIR=\\\"/usr/spool/uucp\\\" \
5950 -DNOLONGLONG $(KFLAGS) -Wc,-Nw260,-Ns2040"
5951
5952 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
5953 "CFLAGS = -DHPUXDEBUG -DHPUX -DHPUX7 -DTCPSOCKET -DSIG_V -DFNFLOAT \
5954 -DNOGETUSERSHELL -DNOSETBUF -DCK_REDIR -DCK_RTSCTS -DLONGFN \
5955 -DNO_DNS_SRV -DDIRENT -DHDBUUCP -DLOCK_DIR=\\\"/usr/spool/uucp\\\" \
5956 -DNOLONGLONG $(KFLAGS) -Wc,-Nw260,-Ns2040 $(OFLAGS)" \
5957 "LNKFLAGS = -s" "LIBS = -lm -lBSD $(LIBS)"
5958
5959 #Exactly as above + curses.
5960 #OK: 2009/09/30
5961 hpux0700lfnc:
5962 @MESSAGE2=', curses' \
5963 $(MAKE) hpux0700lfn KTARGET=$${KTARGET:-$(@)} \
5964 "KFLAGS = -DCK_CURSES $(KFLAGS)" \
5965 "LIBS = -lcurses"
5966
5967 #Exactly as above hpux0700lfn but with compiler optimization:
5968 #OK: 2009/09/30
5969 hpux0700olfn:
5970 @MESSAGE1="with compiler optimization" \
5971 $(MAKE) hpux0700lfn KTARGET=$${KTARGET:-$(@)} \
5972 "KFLAGS = $(KFLAGS)" "OFLAGS = -O"
5973
5974 #Exactly as above hpux0700lfnc but with compiler optimization:
5975 #OK: 2009/09/30
5976 hpux0700olfnc:
5977 @MESSAGE1="with compiler optimization" \
5978 $(MAKE) hpux0700lfnc KTARGET=$${KTARGET:-$(@)} \
5979 "KFLAGS = $(KFLAGS)" "OFLAGS = -O"
5980
5981 #HP 9000 Series 300 or 400, HP-UX 8.0, long filenames and TCP/IP support.
5982 #This one should also work on 700/800, but without PA-specific optimization.
5983 #In case -DCK_RTSCTS and -DCK_REDIR make trouble, remove them.
5984 #NOTE: ckcpro.c, ckuusr.c and ckuus3.c blow up the optimizer, so don't optimize
5985 #them.
5986 #For HP-UX 8.0 on Motorola CPUs, you might have to reinstall your kernel with
5987 #maxdsiz >= 0x03000000. But if physical memory is small, that still will not
5988 #help much.
5989 #OK: 2009/10/01
5990 hpux0800:
5991 @$(MAKE) hpux-header
5992 @MESSAGE3=$${MESSAGE3:='TCP/IP'}; \
5993 echo "supporting: long filenames, $$MESSAGE3, HDB UUCP$(MESSAGE2)..."
5994 $(MAKE) -B "CC=$(CC)" "CC2=$(CC2)" KTARGET=$${KTARGET:-$(@)} \
5995 ckcpro.$(EXT) ckuusr.$(EXT) ckuus3.$(EXT) \
5996 "CFLAGS = -DCK_REDIR -DHPUXDEBUG -DHPUX -DHPUX8 -DRENAME -DSIG_V \
5997 -DNOSETBUF -DDIRENT -DCK_RTSCTS -DSTERMIOX -DLONGFN -DTCPSOCKET \
5998 -DHDBUUCP -DNO_DNS_SRV -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DFNFLOAT \
5999 -DNOLONGLONG $(KFLAGS)"
6000
6001 $(MAKE) -B "CC=$(CC)" "CC2=$(CC2)" xermit KTARGET=$${KTARGET:-$(@)} \
6002 "CFLAGS = -DCK_REDIR -DHPUXDEBUG -DHPUX -DHPUX8 -DRENAME -DSIG_V \
6003 -DNOSETBUF -DDIRENT -DCK_RTSCTS -DSTERMIOX -DLONGFN -DTCPSOCKET \
6004 -DHDBUUCP -DNO_DNS_SRV -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DFNFLOAT \
6005 -DNOLONGLONG -DNODCLENDUSERSHELL $(KFLAGS) $(OFLAGS)" \
6006 "LNKFLAGS = -s" "LIBS = -lm -lBSD $(LIBS)"
6007
6008 #Exactly as above hpux0800 + curses.
6009 #OK: 2009/10/01
6010 hpux0800c:
6011 @MESSAGE2=', curses' \
6012 $(MAKE) hpux0800 KTARGET=$${KTARGET:-$(@)} \
6013 "KFLAGS = $(KFLAGS) -DCK_CURSES" "LIBS = -lcurses"
6014
6015 #HP 9000 HP-UX 8.0, no TCP/IP because /usr/lib/libBSD.a can't be found,
6016 #or TCP/IP header files missing.
6017 #OK: 2009/10/01
6018 hpux0800notcp:
6019 @MESSAGE3='NO network, NO curses' \
6020 $(MAKE) "MAKE=$(MAKE)" hpux0800 KTARGET=$${KTARGET:-$(@)} \
6021 "KFLAGS = $(KFLAGS) -UTCPSOCKET"
6022
6023 #Now the same as above hpux0800 but with compiler optimization
6024 #OK: 2009/10/01
6025 hpux0800o:
6026 @MESSAGE1="with compiler optimization" \
6027 $(MAKE) hpux0800 KTARGET=$${KTARGET:-$(@)} \
6028 "KFLAGS = $(KFLAGS)" "OFLAGS = -O"
6029
6030 #Exactly as above hpux0800 + curses and with compiler optimization.
6031 #OK: 2009/10/01
6032 hpux0800oc:
6033 @MESSAGE1="with compiler optimization" \
6034 $(MAKE) hpux0800c KTARGET=$${KTARGET:-$(@)} \
6035 "KFLAGS = $(KFLAGS)" "OFLAGS = -O" "LIBS = -lcurses"
6036
6037 #Exactly as above hpux0800notcp but with compiler optimization
6038 #OK: 2009/10/01
6039 hpux0800onotcp:
6040 @MESSAGE1="with compiler optimization" \
6041 $(MAKE) "MAKE=$(MAKE)" hpux0800notcp KTARGET=$${KTARGET:-$(@)} \
6042 "KFLAGS = $(KFLAGS)" "OFLAGS = -O"
6043
6044 #HP 9000 Series 700 or 800, HP-UX 8.0, long filenames and TCP/IP support.
6045 # Like the previous entries, but with PA-RISC-specific optimization.
6046 #OK: 2009/10/01
6047 hpux0800pa:
6048 @MESSAGE1="with PA-RISC-specific optimization" \
6049 $(MAKE) hpux0800 KTARGET=$${KTARGET:-$(@)} \
6050 "KFLAGS = $(KFLAGS) +Obb1100"
6051
6052 #As above, but with curses.
6053 #OK: 2009/10/01
6054 hpux0800pac:
6055 @MESSAGE1="with PA-RISC-specific optimization" \
6056 $(MAKE) hpux0800c KTARGET=$${KTARGET:-$(@)} \
6057 "KFLAGS = $(KFLAGS) +Obb1100"
6058
6059 #As above, but compiled with GCC 2.3.3.
6060 #OK: 2009/10/01
6061 hpux0800pagcc:
6062 @MESSAGE1='using the gcc compiler' \
6063 $(MAKE) hpux0800 KTARGET=$${KTARGET:-$(@)} \
6064 "CC=gcc" "CC2=gcc" "KFLAGS = -funsigned-char $(KFLAGS)"
6065
6066 #HP-UX 9.0, 9.01, 9.03, 9.04, 9.05, 9.07, 9.10 ..., + TCP/IP + curses, fully
6067 #configured. Use this entry with the restricted compiler: no optimization, no
6068 #ANSI support. If you get unresolved sockets library references at link time,
6069 #then try adding -lBSD to LIBS, or else remove -DTCPSOCKET to build a version
6070 #without TCP/IP support.
6071 #
6072 #Please note that we have to add the compiler option +DA1.0/+DA1.1 to avoid
6073 #core-dumps for large arguments in IF MATCH. The man page says these options
6074 #are default but C-Kermit dumps core without them! Therefore keep them
6075 #untouched. If you want to overwrite or disable the +DA1.0/+DA1.1 option use
6076 #'make hpux0900 OFLAGS=...'. An other possibility would be to create a new
6077 #kernel with maxssiz >= 0x01185000 (default maxssiz=0x00800000).
6078 #OK: 2009/09/24
6079 hpux0900:
6080 @MESSAGE1A='. Read hpux0900 entry comments if you have trouble.' \
6081 $(MAKE) hpux-header
6082 @case `uname -m` in \
6083 */[34]*) KFLAGS='-DNOLONGLONG $(KFLAGS)' ;; \
6084 */7*) AFLAGS='+DA1.1' ;; \
6085 */8*) AFLAGS='+DA1.0' ;; \
6086 esac ; \
6087 OFLAGS=$${OFLAGS:-$$AFLAGS} ; \
6088 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
6089 "CFLAGS = -DHPUXDEBUG -DHPUX9 -DSTERMIOX -DDIRENT -DUTIMEH \
6090 -DNOSETBUF -DCK_CURSES -DTCPSOCKET -DRENAME -DCK_REDIR -DLONGFN \
6091 -DHDBUUCP -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DFNFLOAT \
6092 -DNODCLENDUSERSHELL $$KFLAGS $$OFLAGS" \
6093 "LNKFLAGS = -s" "LIBS = -lm -lcurses" "CC=$(CC)" "CC2=$(CC2)"
6094
6095 #Like hpux0900, but for the "value-added" compiler on all HP 9000 models.
6096 #Adds optimization and ANSI compilation:
6097 # +O2 makes smaller executable (= -O = Level-1 and global optimization)
6098 # +O3 adds interprocedural global optimization, makes bigger executable.
6099 # Please note: To support long-long we would need compiler switch '-Ae' but
6100 # this one works only on Risc systems. But the equivalant compiler flags
6101 # '-Aa -D_HPUX_SOURCE +e' works for Motorola and Risc.
6102 # If optimization fails on some modules, you can add:
6103 # +Obb<n>, +Olimit <n>, or +Onolimit, depending on your cc version,
6104 # where <n> is a number, e.g. +Obb1200. In other words, if you get optimizer
6105 # warnings, add (for example) +Obb1200; if you still get optimizer warnings,
6106 # increase the number. Repeat until warnings go away. If your compiler
6107 # permits it, use +Onolimit. If optimizer blows up on ckcpro.c, see next entry.
6108 # Reportedly, on some configurations, such as HP9000/425e or /340, perhaps
6109 # depending on the amount of main memory, this entry might fail no matter what
6110 # you do ("Out of Memory", "cc: Fatal error in /lib/c.c1", etc). In that case
6111 # use "make hpux0900" (no "o").
6112 #OK: 2009/09/24
6113 hpux0900o:
6114 @MESSAGE1=$${MESSAGE1:-"with compiler optimization"} \
6115 $(MAKE) hpux0900 KTARGET=$${KTARGET:-$(@)} \
6116 "KFLAGS = $(KFLAGS) -Aa -DCK_ANSIC -D_HPUX_SOURCE +O2 +e"
6117
6118 # For HP-UX 9.0 on Motorola CPUs, optimization of ckcpro.c tends to blow up
6119 # the compiler. You might have to reinstall your kernel with maxdsiz >=
6120 # 0x03000000. But if physical memory is small, that still will not help much.
6121 # In that case, use this entry to skip optimization of ckcpro.c. But for
6122 # C-Kermit 8.0.208 you need a kernel with maxdsiz >= 0x02000000 to compile an
6123 # optimized ckcftp.c.
6124 # Please note: To support long-long we would need compiler switch '-Ae' but
6125 # this one works only on Risc systems. But the equivalant compiler flags
6126 # '-Aa -D_HPUX_SOURCE +e' works for Motorola and Risc.
6127 hpux0900m68ko:
6128 @MESSAGE1='without compiler optimization for ckcpro.$(EXT) ...' \
6129 $(MAKE) hpux-header
6130 $(MAKE) ckuusr.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) \
6131 ckcftp.$(EXT) ckcpro.$(EXT) \
6132 "CFLAGS = -DHPUXDEBUG -DHPUX9 -DSTERMIOX -DDIRENT \
6133 -DNOSETBUF -DCK_CURSES -DTCPSOCKET -DRENAME -DCK_REDIR -DLONGFN \
6134 -DHDBUUCP -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DFNFLOAT $(KFLAGS)"
6135 @echo
6136 @MESSAGE1="with compiler optimization for the rest" \
6137 $(MAKE) hpux0900 KTARGET=$${KTARGET:-$(@)} \
6138 "KFLAGS = $(KFLAGS) -Aa -DCK_ANSIC -D_HPUX_SOURCE +O2 +e"
6139
6140 # Old name for hpux0900m68ko.
6141 hpux0900mot:
6142 $(MAKE) hpux0900m68ko KTARGET=$${KTARGET:-$(@)} "KFLAGS = $(KFLAGS)"
6143
6144 #Like hpux0900o but with additional model-700/800-specific optimizations.
6145 # +ESlit = consolidate strings in read-only memory.
6146 # +ESfsc = inline millicode calls when comparing pointers.
6147 hpux0900o700:
6148 @echo 'If you get optimizer warnings \c'
6149 @echo 'try "make hpux0900o700 KFLAGS=+Obb1200"'
6150 @MESSAGE1="with PA-RISC-specific optimizations" \
6151 $(MAKE) hpux0900o KTARGET=$${KTARGET:-$(@)} \
6152 "KFLAGS = $(KFLAGS) +ESlit +ESsfc"
6153
6154 #HP-UX 9.0, 9.01, 9.03, 9.04, 9.05, 9.07, 9.10 ..., + TCP/IP + curses, fully
6155 #configured, built with gcc, all models except 800 series.
6156 #You might need to add the include path for gcc headers, for example:
6157 # 'KFLAGS=-I/usr/gnu/lib/gcc-lib/hppa1.1-hp-hpux/2.4.5/include/'
6158 hpux0900gcc:
6159 @MESSAGE1='using the gcc compiler' \
6160 $(MAKE) hpux0900 KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
6161 "KFLAGS = -DCK_ANSIC $(KFLAGS)" \
6162 "OFLAGS = -funsigned-char -O2 $(OFLAGS)"
6163
6164 #HP-9000 HP-UX 10.0 + TCP/IP + curses, fully configured.
6165 #Use with restricted (bundled) compiler: no optimization, no ANSI support.
6166 #libcurses needed for fullscreen file xfer display in HP-UX 10.00 and 10.01.
6167 #libHcurses (NOT libcurses!) for fullscreen display, to work around fatal bugs
6168 #in HP-UX 10.10 and 10.20 curses. Maybe we could use lcurses for 10.30, since
6169 #the 10.10 curses problem is supposedly fixed in 10.30.
6170 # +DA1.0 = Generate PA-RISC 1.0 code that runs on both 700 and 800 models.
6171 # +DA1.1 = Generate PA-RISC 1.1 code that runs on both 700 and 800 models.
6172 # Note that HP-UX 10.20 and upwards do not support PA-RISC 1.0 systems.
6173 # And that as of Dec 2001, 11.00 and 11.11 are PA-only and 11.20 is IA64-only.
6174 # Later 11.2x releases are expected to be for both. Architecture can be
6175 # determined with the model command, at least in 10.20 and later...
6176 #For future releases, we need to include +DA1.1 for PA builds, so that a
6177 #binary built on PA 2.0 will still work on PA 1.1 machines, whereas +DA1.1
6178 #must NOT be included for IA64 builds.
6179 #4 Jan 2006 - Added Large File Support (LFS). Large files (>2GB) are
6180 #possible in HP-UX 10.20 and later. The only change is to add:
6181 # -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
6182 #to KFLAGS. These should be harmless in 10.00 and 10.10, if any of examples
6183 #of those still exist, but I have no way to test this hypothesis.
6184 #OK: 2009/11/16
6185 #As of version 9.0305 Alpha.06 we have to add KFLAG "-DNO_PTY_XOPEN_SOURCE"
6186 #to "make hpux1000" and "make hpux1000t" because "#define _XOPEN_SOURCE 500"
6187 #that was added to ckupty.c in 2014 triggers big problems with the HP C
6188 #compiler in default (i.e. pre-ANSI K&R) mode.
6189 hpux1000:
6190 @$(MAKE) hpux-header
6191 @LIBS='-lHcurses' ; \
6192 AFLAGS='+DA1.1' ; \
6193 case `uname -r` in \
6194 [AB].10.0*) KFLAGS='-DHPUX1000 $(KFLAGS)' ; \
6195 AFLAGS='+DA1.0' ; LIBS='-lcurses' ;; \
6196 [AB].10.1*) KFLAGS='-DHPUX1010 -D__HP_CURSES $(KFLAGS)' ; \
6197 ;; \
6198 [AB].10.2*) KFLAGS='-DHPUX1020 -D__HP_CURSES $(KFLAGS)' ; \
6199 ;; \
6200 [AB].10.3*) KFLAGS='-DHPUX1030 -D__HP_CURSES $(KFLAGS)' ; \
6201 ;; \
6202 [AB].10.?*) KFLAGS='-DHPUX10XX -D__HP_CURSES $(KFLAGS)' ; \
6203 ;; \
6204 [AB].11.0*) KFLAGS='-DHPUX1100 -D__HP_CURSES $(KFLAGS)' ; \
6205 ;; \
6206 [AB].11.1*) KFLAGS='-DHPUX1100 -D__HP_CURSES $(KFLAGS)' ; \
6207 ;; \
6208 [AB].11.?*) KFLAGS='-DHPUX1100 -D__HP_CURSES $(KFLAGS)' ; \
6209 AFLAGS='' ; LIBS='-lcurses' ;; \
6210 esac ; \
6211 #echo KTARGET="$${KTARGET:-$(@)}" ; \
6212 case "$${KTARGET:-$(@)}" in \
6213 hpux1000 | hpux1000t | \
6214 hpux1100 | hpux1100t) \
6215 KFLAGS="$$KFLAGS -DNO_PTY_XOPEN_SOURCE" ;; \
6216 esac ; \
6217 OFLAGS=$${OFLAGS:-$$AFLAGS} ; \
6218 $(MAKE) "SHELL=/usr/bin/sh" xermit KTARGET=$${KTARGET:-$(@)} \
6219 "CC=$(CC)" "CC2=$(CC2)" \
6220 "CFLAGS = -DHPUX10 -DDIRENT -DSTERMIOX -DCK_DSYSINI -DHDBUUCP \
6221 -DCK_CURSES -DCK_WREFRESH -DTCPSOCKET -DCK_REDIR -DRENAME -DFNFLOAT \
6222 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 \
6223 $$KFLAGS $$OFLAGS" \
6224 "LNKFLAGS=-s $(LNKFLAGS)" "LIBS = -lm $$LIBS $(KLIBS)"
6225
6226 # This is a kludge, copying hpux0900gcc and adapting hpux1000
6227 # (add CC and CC2, drop the A1.[0||1])
6228 # Builds w/ no compiler warnings but minimally tested.
6229 #
6230 #OK: 2009/09/21
6231 hpux1000gcc:
6232 @MESSAGE1="using the gcc compiler $(MESSAGE1)" \
6233 $(MAKE) hpux1000 KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
6234 "KFLAGS = $(KFLAGS)" "OFLAGS = -DCK_ANSIC -funsigned-char -O2"
6235
6236 # Trusted HP-UX 10
6237 # echo KFLAGS=$(KFLAGS) YTARGET YTARGET=$(YTARGET) $(XTARGET) ;
6238 hpux1000t:
6239 @case "$(KTARGET)" in \
6240 *+openssl | *+ssl) \
6241 KENTRY=hpux1000o+openssl ;; \
6242 *gcc) \
6243 KENTRY=hpux1000gcc ;; \
6244 *o+) KENTRY=hpux1000o+ ;; \
6245 *o) KENTRY=hpux1000o ;; \
6246 *) KENTRY=hpux1000 ;; \
6247 esac ; \
6248 MESSAGE1="and support for 'Trusted HP-UX'" \
6249 $(MAKE) $$KENTRY KTARGET=$${KTARGET:-$(@)} \
6250 "KFLAGS = $(KFLAGS) -DHPUX10_TRUSTED" "KLIBS=-lsec"
6251
6252 hpux1000to:
6253 $(MAKE) hpux1000t KTARGET=$${KTARGET:-$(@)}
6254
6255 hpux1000to+:
6256 $(MAKE) hpux1000t KTARGET=$${KTARGET:-$(@)}
6257
6258 hpux1000tgcc:
6259 $(MAKE) hpux1000t KTARGET=$${KTARGET:-$(@)}
6260
6261 hpux1000to+ssl hpux1000to+openssl:
6262 $(MAKE) hpux1000t KTARGET=$${KTARGET:-$(@)}
6263
6264 hpux1000tgcc+ssl hpux1000tgcc+openssl:
6265 $(MAKE) hpux1000t KTARGET=$${KTARGET:-$(@)}
6266
6267 #HP-9000 HP-UX 10.00 and higher with ANSI prototyping and optimization.
6268 #PA-RISC only, no Motorola or other hardware is supported in HP-UX 10.00++.
6269 #The unbundled optional compiler is required.
6270 #Your path should start with /opt/ansic/bin.
6271 # -Wl,-Fw = Remove stack unwind table (info used by debuggers).
6272 # +O2 makes a smaller executable (= -O = Level-1 and global optimization).
6273 # +O3 adds interprocedural global optimization, makes a bigger executable.
6274 # +Onolimit allows all modules to be optimized, no matter how complex. But:
6275 # (a) +Onolimit does not seem to always be there in HP-UX 10.00, and:
6276 # (b) some modules might take hours on low-memory and/or slow systems.
6277 # The following are PA-RISC-specific optimizations:
6278 # +ESlit = Consolidate strings in read-only memory.
6279 # +ESfsc = Inline millicode calls when comparing pointers.
6280 # You might need to configure your kernel for a maxdsiz of 0x0B000000 (176MB)
6281 # or greater to prevent the optimizer from running out of space.
6282 # December 2001: +ESlit +ESsfc removed because not supported on IA64.
6283 # Somebody who cares can use 'model' to see whether it's PA-RISC or IA64
6284 # and include the architecture-specific optimization flags. Also note:
6285 # +DA1.1 is PA-only. If this is included in in HP-UX 11.00 or later,
6286 # then +DS2.0 should be included too (but don't use +DS2.0 without +DA1.1,
6287 # or else the binary won't run on older PA hardware).
6288 #OK: 2009/09/21
6289 hpux1000o:
6290 @case `uname -m` in \
6291 ia64) ;; \
6292 *) MFLAGS='+ESlit +ESsfc' ;; \
6293 esac ; \
6294 MESSAGE1="with PA-RISC-specific optimizations $(MESSAGE1)" \
6295 $(MAKE) "SHELL=/usr/bin/sh" "PATH=/opt/ansic/bin:$$PATH" hpux1000 \
6296 KTARGET=$${KTARGET:-$(@)} "KFLAGS = $(KFLAGS) \
6297 -Ae -D_HPUX_SOURCE -DCK_ANSIC -DUTIMEH \
6298 +O2 -Wl,-Fw $$MFLAGS"
6299
6300 #Like hpux1000o but with "+Onolimit".
6301 #On 700 series set kernel parameter maxdsiz >= 0x0D000000 (=208MB).
6302 #Takes a long time.
6303 hpux1000o+:
6304 @MESSAGE1="and +Onolimit $(MESSAGE1)" KTARGET=$${KTARGET:-$(@)} \
6305 $(MAKE) hpux1000o \
6306 "KFLAGS = $(KFLAGS) +Onolimit"
6307
6308 #HP-UX 10.xx + 11.xx with optimizing ANSI compiler and OpenSSL.
6309 #Define SSLLIB and SSLINC appropriately for your OpenSSL installation.
6310 #To overwrite the default SSLLIB and SSLINC settings you can also use the
6311 #command-line variable KSSLLIB and KSSLINC like:
6312 #make hpux1000o+openssl KSSLLIB=-L/opt/openssl/lib KSSLINC=-I/...
6313 #To specify the path for the zlib library: KZLIBDIR=dir
6314 #This entry works for C-Kermit 8.0.206 on HP-UX 10.20 + 11.11
6315 #with OpenSSL 0.9.6 + 0.9.7
6316 #NOTE: an ANSI C compiler is required for the SSL interface. If you don't
6317 #have the HP Optimizing ANSI compiler, see the hpux1000gcc+openssl target
6318 #below.
6319 hpux1000o+ssl hpux1000o+openssl:
6320 @case "$(KTARGET)" in \
6321 *gcc+*) \
6322 KENTRY=hpux1000gcc ;; \
6323 *) KENTRY=hpux1000o ;; \
6324 esac ; \
6325 if test -n "$(KZLIBDIR)" ; then \
6326 ZLIBDIR="$(KZLIBDIR)" ; \
6327 else \
6328 ZLIBDIR='/usr/local/lib' ; \
6329 fi ; \
6330 case "$(KTARGET)" in \
6331 *-zlib*) ZLIBFLAG='' ; ZLIBOPT='' ;; \
6332 *) ZLIBFLAG='-DZLIB' ; ZLIBOPT="-L $$ZLIBDIR -lz" ;; \
6333 esac ; \
6334 case `openssl version` in \
6335 *0.9.7*) OPENSSLOPTION="-DOPENSSL_097" ;; \
6336 *0.9.8*) OPENSSLOPTION="-DOPENSSL_098" ;; \
6337 *1.[0-9].[0-9]*) OPENSSLOPTION="-DOPENSSL_100" ;; \
6338 *3.[0-9].[0-9]*) OPENSSLOPTION="-DOPENSSL_300" ;; \
6339 *) OPENSSLOPTION="" ;; \
6340 esac ; \
6341 SSLINC=$${KSSLINC:-$(SSLINC)}; \
6342 SSLLIB=$${KSSLLIB:-$(SSLLIB)}; \
6343 MESSAGE1="and with OpenSSL $(MESSAGE1)" \
6344 $(MAKE) $$KENTRY KTARGET=$${KTARGET:-$(@)} \
6345 KFLAGS="-DCK_AUTHENTICATION -DCK_SSL $$OPENSSLOPTION $$ZLIBFLAG \
6346 $$SSLINC $(KFLAGS)" \
6347 KLIBS="$(KLIBS) \
6348 $$SSLLIB -lssl -lcrypto \
6349 $$ZLIBOPT \
6350 "
6351
6352 # Ditto but without Zlib:
6353 hpux1000o+ssl-zlib hpux1000o+openssl-zlib:
6354 @MESSAGE1="but without Zlib $(MESSAGE1)" \
6355 $(MAKE) hpux1000o+ssl KTARGET=$${KTARGET:-$(@)}
6356
6357 #HP-UX 10.00 or higher with OpenSSL 0.9.7. Compiled with gcc.
6358 #From Chris Chaney, NEC America Inc. His instructions:
6359 # (1) Install gcc version 3.2.3 & binutils version 2.13.2
6360 # (used binary depot from http://hpux.cs.utah.edu/)
6361 # (2) Install gcc make version 3.80 from http://hpux.cs.utah.edu/
6362 #
6363 # or: gcc 2.9.2000-12-1 from "Linux to hp-ux 11.0/11i porting kit version 1.0
6364 # (2CD)" free from: http://www.software.hp.com
6365 #
6366 # (3) Install openSSL version 0.9.7b from http://www.software.hp.com
6367 # (4) Install flex version 2.5.4 from http://hpux.cs.utah.edu/
6368 # (5) Install gmp version 3.1.1 from http://hpux.cs.utah.edu/
6369 #
6370 #Note from Peter Eichhorn, assyst Munich. It works also without gcc make!
6371 hpux1000gcc+ssl hpux1000gcc+openssl:
6372 $(MAKE) hpux1000o+openssl KTARGET=$${KTARGET:-$(@)}
6373
6374 # Ditto but without Zlib:
6375 hpux1000gcc+ssl-zlib hpux1000gcc+openssl-zlib:
6376 $(MAKE) hpux1000o+openssl-zlib KTARGET=$${KTARGET:-$(@)}
6377
6378 # Same for HP-UX 11
6379 hpux1100o+ssl hpux1100o+openssl:
6380 $(MAKE) hpux1000o+openssl KTARGET=$${KTARGET:-$(@)}
6381
6382 #OK: 2009/09/26
6383 hpux1100gcc+ssl hpux1100gcc+openssl:
6384 $(MAKE) hpux1000gcc+openssl KTARGET=$${KTARGET:-$(@)}
6385
6386 hpux1100o+ssl-zlib hpux1100o+openssl-zlib:
6387 $(MAKE) hpux1000o+openssl-zlib KTARGET=$${KTARGET:-$(@)}
6388
6389 hpux1100gcc+ssl-zlib hpux1100gcc+openssl-zlib:
6390 $(MAKE) hpux1000gcc+openssl-zlib KTARGET=$${KTARGET:-$(@)}
6391
6392 # HP-UX 11
6393 # Note: these are 32-bit builds even on IA64.
6394 # Adding +DD64 to CFLAGS produces 64-bit object files,
6395 # but the linker fails to find the needed 64-bit libs.
6396 #OK: 2009/09/26
6397 hpux1100:
6398 $(MAKE) hpux1000 KTARGET=$${KTARGET:-$(@)}
6399
6400 #OK: 2009/09/26
6401 hpux1100o:
6402 $(MAKE) hpux1000o KTARGET=$${KTARGET:-$(@)}
6403
6404 hpux1100o+:
6405 $(MAKE) hpux1000o+ KTARGET=$${KTARGET:-$(@)}
6406
6407 #OK: 2009/09/26
6408 hpux1100gcc:
6409 $(MAKE) hpux1000gcc KTARGET=$${KTARGET:-$(@)}
6410
6411 # Trusted HP-UX 11
6412 hpux1100t:
6413 $(MAKE) hpux1000t KTARGET=$${KTARGET:-$(@)}
6414
6415 hpux1100to:
6416 $(MAKE) hpux1000to KTARGET=$${KTARGET:-$(@)}
6417
6418 hpux1100to+:
6419 $(MAKE) hpux1000to+ KTARGET=$${KTARGET:-$(@)}
6420
6421 hpux1100tgcc:
6422 $(MAKE) hpux1000tgcc KTARGET=$${KTARGET:-$(@)}
6423
6424 hpux1100to+ssl hpux1100to+openssl:
6425 $(MAKE) hpux1000to+openssl KTARGET=$${KTARGET:-$(@)}
6426
6427 hpux1100tgcc+ssl hpux1100tgcc+openssl:
6428 $(MAKE) hpux1000tgcc+openssl KTARGET=$${KTARGET:-$(@)}
6429
6430 #Regulus on CIE Systems 680/20
6431 cie:
6432 @echo 'Making C-Kermit $(CKVER) for CIE Systems 680/20 Regulus...'
6433 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
6434 "CFLAGS = -DATTSV -DNOFILEH -DCIE -DNOLEARN $(KFLAGS) -O" "LNKFLAGS ="
6435
6436 # Android.
6437 android:
6438 @echo Please use \"make -f android.mk\" to build C-Kermit for Android.
6439
6440 # Linux 1.2 or later with gcc, dynamic libraries, ncurses, TCP/IP.
6441 #
6442 # If your Linux system has curses rather than ncurses, use the linuxc
6443 # entry, or if that doesn't work, linuxnc.
6444 #
6445 # The Kermit "large memory model" is used by default to configure big packet
6446 # and script buffers, etc. For small-memory or limited-resource systems,
6447 # "make linux KFLAGS=-DNOBIGBUF".
6448 #
6449 # -DLINUXFSSTND (Linux File System Standard 1.2) gives UUCP lockfile /var/lock
6450 # with string pid. Remove this to get /usr/spool/uucp with int pid, used in
6451 # very early Linux versions. FSSTND 1.2 also says that the PID string in the
6452 # UUCP lock file has leading spaces. This is a change from FSSTND 1.0, which
6453 # used leading zeros. Add -DFSSTND10 to support FSSTND 1.0 instead of 1.2.
6454 # I hope subsequent editions of the file-system standard did not change these
6455 # again.
6456 #
6457 # Add -DOLINUXHISPEED (Old Linux High Speed support) to turn on an ugly kludge
6458 # in Linux 1.0 and earlier to support speeds of 57600 and 115200. Extremely
6459 # old Linux systems (pre-0.99pl15) will not support this. If OLINUXHISPEED is
6460 # not defined, then only the standard POSIX termios methods of setting the port
6461 # speed will be used, and in this case speeds can be as high as 460800 in most
6462 # modern Linux versions.
6463 #
6464 # -DCK_POSIX_SIG (POSIX signal handling) is good for Linux releases back to at
6465 # least 0.99.14; if it causes trouble for you, remove it from the CFLAGS.
6466 #
6467 # -pipe removes the need for temp files - remove it if it causes trouble.
6468 #
6469 # -funsigned-char makes all characters unsigned, as they should have been
6470 # in the first place.
6471 #
6472 # Add -DCK_DSYSINI if you want a shared system-wide init file.
6473 #
6474 # See http://www.columbia.edu/kermit/ckubwr.html about -DNOCOTFMC.
6475 # Better still, should read the entire Linux section of that document.
6476 #
6477 # The "linuxa" entry can be referenced directly on LIBC systems, but not
6478 # GLIBC, where -lcrypt is required. The "make linux" entry should normally
6479 # be used for all builds on all Linux distributions unless you have special
6480 # requirements, in which case keep reading. CK_NEWTERM added after 7.0b04
6481 # due to new complaints about ncurses changing buffering of tty.
6482 #
6483 # By the way, the trick for testing if a lib exists ("if ld -lncurses ...")
6484 # might seem crazy but it works everywhere, whereas the more appropriate test
6485 # ("if locate libncurses") is not necessarily available on all Linuxes.
6486 linuxa:
6487 @echo 'Making C-Kermit $(CKVER) for Linux 1.2 or later...'
6488 @echo 'IMPORTANT: Read the comments in the linux section of the'
6489 @echo 'makefile if you have trouble.'
6490 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC=$(CC)" "CC2=$(CC)" \
6491 "CFLAGS = -O -DLINUX -pipe -funsigned-char -DFNFLOAT -DCK_POSIX_SIG \
6492 -DCK_NEWTERM -DTCPSOCKET -DLINUXFSSTND -DNOCOTFMC -DPOSIX \
6493 -DUSE_STRERROR $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
6494 "LIBS = $(LIBS) -lm"
6495
6496 # As above but with profiling
6497 linuxp:
6498 $(MAKE) linuxa KTARGET=$${KTARGET:-$(@)} "KFLAGS=$(KFLAGS) -pg" \
6499 "LIBS=-pg -lcrypt -lresolv"
6500
6501 #Linux. Completely new target: 18 January 2016. No more looking in 100
6502 #different places for libraries, let ld do it, since it knows what libraries
6503 #it's going to use. If this target fails to work somewhere, use the
6504 #'linux-2015' target just below this one.
6505 #
6506 #This entry should work for any Linux distribution on any platform,
6507 #32-bit or 64-bit, except for extremely ancient ones. Automatically detects:
6508 # . curses, ncurses, or no curses
6509 # . Old versus new pty handling (new == glibc 2.1++)
6510 # . Presence or absence of libcrypt and <crypt.h>
6511 # . Presence or absence of libresolv
6512 # . Presence of various serial port locking schemes
6513 # . Transitional Long File API for 32-bit platforms (SUS V2 UNIX 98 LFS).
6514 #
6515 #Long file support for 32-bit builds added in 8.0.212 - if features.h contains
6516 #__USE_LARGEFILE64 then we set the flags that must be set before reading any
6517 #header files; on 32-bit platforms such as i386, this produces a 32-bit build
6518 #capable of accessing, sending, receiving, and managing long (> 2GB) files.
6519 #On 64-bit platforms, it does no harm.
6520 #
6521 # The clause regarding errno includes "extern int errno" in the source files
6522 # by supplying a symbol DCL_ERRNO if errno is not declared or defined in any
6523 # header files in the /usr/include tree.
6524 #
6525 # This target uses the computer's default C compiler, whatever it is
6526 # (usually gcc, but beware: it might also be clang, which is extremely
6527 # hostile to "old" code.
6528 #
6529 linux gnu-linux:
6530 @echo "Making C-Kermit for `uname -spm` $(CC) \
6531 `$(CC) -dumpversion`..."; \
6532 # Dummy comment \
6533 DCL_ERRNO='-DDCL_ERRNO'; \
6534 if egrep -r \
6535 "(int *errno|\#define *errno|\# *define *errno)" /usr/include/* \
6536 > /dev/null 2> /dev/null; \
6537 then DCL_ERRNO=''; \
6538 fi ; \
6539 if test `grep grantpt /usr/include/*.h | wc -l` -gt 0; \
6540 then if test -c /dev/ptmx; \
6541 then HAVE_PTMX='-DHAVE_PTMX'; \
6542 else HAVE_PTMX=''; \
6543 fi; \
6544 fi ; \
6545 HAVE_OPENPTY=''; \
6546 if test `grep openpty /usr/include/*.h | wc -l` -gt 0; then \
6547 HAVE_OPENPTY='-DHAVE_OPENPTY'; \
6548 fi; \
6549 if test -n '$$HAVE_OPENPTY'; \
6550 then if ld -lutil > /dev/null 2> /dev/null; then \
6551 LIB_UTIL='-lutil'; \
6552 else \
6553 LIB_UTIL=''; \
6554 fi; \
6555 fi; \
6556 HAVE_LIBCURSES=''; \
6557 HAVE_CURSES=''; \
6558 if ld -lncurses > /dev/null 2> /dev/null; then \
6559 HAVE_LIBCURSES='-lncurses'; \
6560 if test -f /usr/include/ncurses.h; then \
6561 HAVE_CURSES='-DCK_NCURSES -I/usr/include/ncurses'; \
6562 else \
6563 HAVE_LIBCURSES=''; \
6564 fi; \
6565 fi; \
6566 if test -z '$$HAVE_LIBCURSES'; then \
6567 if ld -lcurses > /dev/null 2> /dev/null; then \
6568 HAVE_LIBCURSES='-lcurses'; \
6569 if test -f /usr/include/curses.h; then \
6570 HAVE_CURSES='-DCK_CURSES -I/usr/include/curses'; \
6571 else \
6572 HAVE_LIBCURSES=''; \
6573 fi; \
6574 fi; \
6575 fi; \
6576 HAVE_RESOLV=''; \
6577 if ld -lresolv > /dev/null 2> /dev/null; then \
6578 HAVE_RESOLV='-lresolv'; \
6579 fi; \
6580 HAVE_CRYPT=''; \
6581 HAVE_CRYPT_H=''; \
6582 if ld -lcrypt > /dev/null 2> /dev/null; then \
6583 if test -f /usr/include/crypt.h; then \
6584 HAVE_CRYPT_H='-DHAVE_CRYPT_H'; \
6585 HAVE_CRYPT='-lcrypt'; \
6586 fi; \
6587 fi; \
6588 if test -f /usr/include/baudboy.h ; \
6589 then HAVE_BAUDBOY='-DHAVE_BAUDBOY' ; \
6590 else HAVE_BAUDBOY=''; \
6591 fi; \
6592 if test -n '$$HAVE_BAUDBOY' || test -f /usr/include/ttylock.h; \
6593 then HAVE_LOCKDEV='-DHAVE_LOCKDEV' ; \
6594 else HAVE_LOCKDEV='' ; \
6595 fi ; \
6596 if test -n '$$HAVE_LOCKDEV'; then \
6597 if ld -llockdev > /dev/null 2> /dev/null; then \
6598 HAVE_LIBLOCKDEV='-llockdev'; \
6599 else \
6600 HAVE_LOCKDEV=''; \
6601 fi; \
6602 fi; \
6603 if grep __USE_LARGEFILE64 /usr/include/features.h > /dev/null; \
6604 then HAVE_LARGEFILES='-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'; \
6605 else HAVE_LARGEFILES=''; \
6606 fi; \
6607 $(MAKE) KTARGET=$${KTARGET:-$(@)} \
6608 "KFLAGS=$$HAVE_CURSES $$HAVE_PTMX $$HAVE_LOCKDEV $$HAVE_CRYPT_H \
6609 $$HAVE_BAUDBOY $$HAVE_OPENPTY $$HAVE_LARGEFILES $(KFLAGS)" \
6610 "LIBS=$(LIBS) $$LIB_UTIL \
6611 $$HAVE_LIBCURSES $$HAVE_RESOLV $$HAVE_CRYPT $$HAVE_LOCKDEV" \
6612 linuxa
6613
6614 # Force compilation with gcc
6615 linuxgcc:
6616 $(MAKE) "CC=gcc" "CC2=gcc" linux
6617
6618 # Force compilation with clang
6619 linux-clang linuxclang:
6620 $(MAKE) CC=clang CC2=clang linux
6621
6622 # Linux clang compilation with implicit function declaration warnings.
6623 # Clang 12 or later required to see the warnings. In clang 16 (at least
6624 # the first release of it) the implicit function declaration is fatal error.
6625 linux-clang-wimplicit:
6626 $(MAKE) CC=clang CC2=clang -Wimplicit-function-declaration linux
6627
6628 # Linux clang compilation in C89 mode...
6629 # For me this bombed out instantly in clang 3.4.2 with "ckcsig.h:52:9:
6630 # typedef sigjmp_buf ckjmpbuf; error: unknown type name 'sigjmp_buf'"
6631 # It happened on both RHEL 6.1 (old) and Ubuntu 20.04.1 (recent).
6632 # Needs testing in clang 12 or later, and especially in Clang 16.
6633 linux-clang-c89:
6634 $(MAKE) "CC=clang -std=c89" "CC2=clang" linux
6635
6636 # Linux clang compilation in gnu89 mode. For me this compiled successfully
6637 # in clang 3.4.2 but with lots of "if && ||" warnings.
6638 # Ditto in clang 10.0.0 but no "if && ||" warnings.
6639 # Needs testing in clang 12 or later.
6640 linux-clang-gnu89:
6641 $(MAKE) "CC=clang -std=gnu89" "CC2=clang" linux
6642
6643 # Minimum size for Linux - many features deselected.
6644 # No interactive commands, no scripting, no character sets, etc.
6645 # About 1/7 the size of the normal version.
6646 # 3 November 2022
6647 linuxmin:
6648 @echo 'Making C-Kermit $(CKVER) for Linux many features deselected..'
6649 $(MAKE) linux "KFLAGS=-DV7MIN"
6650
6651 #PREVIOUS LINUX TARGET
6652 #Use this target if you have trouble with "make linux".
6653 #This is the previous target for Linux, retired at the end of 2015.
6654 #As you can see the tests for curses/ncurses and other libraries and
6655 #header files were getting ridiculous and were only going to get worse
6656 #as Linux versions proliferated.
6657 #
6658 #The HAVE_PTMX test was previously "if test -c /dev/ptmx" but this was
6659 #not sufficient for Debian 2.1, because although it had /dev/ptmx, it did not
6660 #have grantpt(), unlockpt(), or ptsname(), so has been changed to look for a
6661 #grantpt() prototype in the header files. Modified in 8.0.206 to allow for
6662 #libraries that contain .so's but no .a's, e.g. Mandrake 9.0.
6663 #HAVE_BAUDBOY added in 8.0.210 for Red Hat -- it's like AIX ttylock().
6664 #Modified 17 Aug 2005 to use openpty() if available because the other stuff
6665 #dumps core in 64-bit ia64 and x86_64 builds.
6666 #
6667 #Added HAVE_LOCKDEV on openSuSE >= 11.3, which uses ttylock directly instead
6668 #of baudboy 2010/08/23
6669 linux-2015:
6670 @if test \
6671 `grep grantpt /usr/include/*.h /usr/include/sys/*.h | wc -l` -gt 0; \
6672 then if test -c /dev/ptmx; then HAVE_PTMX='-DHAVE_PTMX'; \
6673 else HAVE_PTMX=''; fi; fi ; \
6674 if test `grep openpty /usr/include/pty.h | wc -l` -gt 0; \
6675 then HAVE_OPENPTY='-DHAVE_OPENPTY'; \
6676 else HAVE_OPENPTY=''; fi ; \
6677 HAVE_LIBCURSES=''; \
6678 if test -f /lib64/libncurses.so.5 || \
6679 test -f /lib64/libncurses.so || \
6680 test -f /lib64/libncurses.a; then \
6681 HAVE_LIBCURSES='-lncurses'; \
6682 else if test -f /usr/lib64/libncurses.so || \
6683 test -f /usr/lib/libncurses.a || \
6684 test -f /usr/lib64/libncurses.so.5 || \
6685 test -f /usr/lib/libncurses.so; then \
6686 HAVE_LIBCURSES='-lncurses'; \
6687 else if test -f /usr/lib/$(MULTIARCH)/libncurses.so || \
6688 test -f /usr/lib/$(MULTIARCH)/libncurses.a || \
6689 test -f /usr/lib/$(MULTIARCH)/libncurses.so; then \
6690 HAVE_LIBCURSES='-lncurses'; \
6691 else if test -f /usr/lib64/libcurses.so || \
6692 test -f /usr/lib/libcurses.a || \
6693 test -f /usr/lib/libcurses.so; then \
6694 HAVE_LIBCURSES='-lcurses'; fi; fi; fi; fi; \
6695 HAVE_CURSES=''; \
6696 if test -n '$$HAVE_LIBCURSES'; then \
6697 if test -f /usr/include/ncurses.h; then \
6698 HAVE_CURSES='-DCK_NCURSES -I/usr/include/ncurses'; \
6699 else if test -f /usr/include/curses.h; then \
6700 HAVE_CURSES='-DCK_CURSES'; \
6701 else HAVE_LIBCURSES=''; \
6702 fi; fi; fi; \
6703 if test -f /usr/include/baudboy.h || test -f /usr/include/ttylock.h; \
6704 then HAVE_LOCKDEV='-DHAVE_LOCKDEV' ; \
6705 else HAVE_LOCKDEV='' ; fi ; \
6706 if test -f /usr/include/baudboy.h ; \
6707 then HAVE_BAUDBOY='-DHAVE_BAUDBOY' ; \
6708 else HAVE_BAUDBOY='' ; fi ; \
6709 $(MAKE) KTARGET=$${KTARGET:-$(@)} \
6710 "KFLAGS=$$HAVE_CURSES $$HAVE_PTMX $$HAVE_LOCKDEV \
6711 $$HAVE_BAUDBOY $$HAVE_OPENPTY \
6712 `grep __USE_LARGEFILE64 /usr/include/features.h > /dev/null && \
6713 echo '-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'` \
6714 `if test -f /usr/include/crypt.h; then echo -DHAVE_CRYPT_H; fi` \
6715 $(KFLAGS)" \
6716 "LIBS=$(LIBS) $$HAVE_LIBCURSES \
6717 `if test -n '$$HAVE_OPENPTY'; then echo -lutil; fi` \
6718 `if test -f /usr/lib64/libresolv.a || test -f /usr/lib64/libresolv.so \
6719 || test -f /usr/lib/libresolv.a || test -f /usr/lib/libresolv.so \
6720 || test -f /usr/lib/i386-linux-gnu/libresolv.a \
6721 || test -f /usr/lib/i386-linux-gnu/libresolv.so \
6722 || ls /lib/$(MULTIARCH)/libresolv.* > /dev/null 2> /dev/null \
6723 || ls /lib/x86_64-linux-gnu/libresolv.* > /dev/null 2> /dev/null; \
6724 then echo -lresolv; fi` \
6725 `if test -f /usr/lib64/libcrypt.a || test -f /usr/lib64/libcrypt.so \
6726 || test -f /usr/lib/libcrypt.a || test -f /usr/lib/libcrypt.so \
6727 || ls /lib/$(MULTIARCH)/libcrypt.* > /dev/null 2> /dev/null \
6728 || ls /lib/x86_64-linux-gnu/libcrypt.* > /dev/null 2> /dev/null; \
6729 then echo -lcrypt; fi` \
6730 `if test -f /usr/lib64/liblockdev.a \
6731 || test -f /usr/lib64/liblockdev.so \
6732 || test -f /usr/lib/liblockdev.a \
6733 || test -f /usr/lib/liblockdev.so \
6734 || ls /usr/lib/$(MULTIARCH)/liblockdev.* > /dev/null 2> /dev/null; \
6735 then echo -llockdev; fi`" \
6736 linuxa
6737
6738 # Linux with "legacy" and "deprecated" features removed:
6739 # FTP, Telnet, Rlogin, Wtmp logging. And arrow keys, which depend on
6740 # a deprecated API that as yet has no undeprecated replacement.
6741 linux-nodeprecated: \
6742 # Dummy comment \
6743 @echo 'Making C-Kermit $(CKVER) for Linux without deprecated features'
6744 $(MAKE) linux KTARGET=$${KTARGET:-$(@)} \
6745 KFLAGS="-DNODEPRECATED $(KFLAGS)" \
6746 "LNKFLAGS = $(LNKFLAGS)"
6747
6748 # Linux with pedantic warnings (force gcc)
6749 linux-pedantic:
6750 @echo Making C-Kermit $(CKVER) for Linux `uname -r` gcc pedantic...
6751 $(MAKE) "CC=gcc" "CC2=gcc" linux KTARGET=$${KTARGET:-$(@)} \
6752 KFLAGS="-pedantic $(KFLAGS)" \
6753 "LNKFLAGS = $(LNKFLAGS)"
6754
6755 # Linux with no TCP/IP support but with the external ssh client
6756 linux-notcp:
6757 @echo Making C-Kermit $(CKVER) for Linux `uname -r` NO TCP/IP...
6758 $(MAKE) linux KTARGET=$${KTARGET:-$(@)} \
6759 KFLAGS="-DNOTCPIP -DSSHCMD -DANYSSH $(KFLAGS)" \
6760 "LNKFLAGS = $(LNKFLAGS)"
6761
6762 # Linux with no TCP/IP support but with the external ssh client
6763 linux-nonet:
6764 @echo Making C-Kermit $(CKVER) for Linux `uname -r` NO NETWORKING...
6765 $(MAKE) linux KTARGET=$${KTARGET:-$(@)} \
6766 KFLAGS="-DNONET -DNONETDIR -DSSHCMD -DANYSSH $(KFLAGS)" \
6767 "LNKFLAGS = $(LNKFLAGS)"
6768
6769 # Linux + Shadow passwords + PAM
6770 # OK 2011/06/18
6771 linux+shadow+pam:
6772 @echo 'Making C-Kermit $(CKVER) for Linux+Shadow+PAM...'
6773 $(MAKE) linux KTARGET=$${KTARGET:-$(@)} \
6774 KFLAGS="-DCK_SHADOW -DCK_PAM $(KFLAGS)" \
6775 "LNKFLAGS = $(LNKFLAGS)" \
6776 "LIBS = -lpam"
6777
6778 # Linux systems that have no <sys/select.h>.
6779 # (not tested in recent years, perhaps no longer needed)
6780 linuxns:
6781 $(MAKE) linux KTARGET=$${KTARGET:-$(@)} KFLAGS=-DNO_SYS_SELECT_H
6782
6783 # Linux build with no curses (restored 24 November 2022)
6784 linuxnc:
6785 $(MAKE) linux KTARGET=$${KTARGET:-$(@)} \
6786 KFLAGS="-DNOCURSES -UCK_CURSES"
6787
6788 # Linux-script-only:
6789 # A minimum-size version for Linux that does only scripting and
6790 # serial communication -- no networks, no file transfer, no security.
6791 # OK 2011/06/18 // 2022/10/14: compiles but various commands don't work.
6792 linuxso:
6793 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
6794 "CFLAGS = -O -DLINUX -pipe -funsigned-char -DPOSIX -DCK_POSIX_SIG \
6795 -DLINUXFSSTND -DNOCOTFMC -DNOXFER -DNODEBUG -DNOCSETS -DNOHELP \
6796 -DNONET -DMINIDIAL -DNOSCRIPT -DNOIKSD -DNOPUSH $(KFLAGS)" \
6797 "LNKFLAGS = $(LNKFLAGS)" "LIBS = "
6798
6799 # Secure targets for Linux. These work on RHAS4, RHEL4, and RHEL5,
6800 # unlike some of the older targets that follow. They hook into the main Linux
6801 # target so we pick up all the other new stuff - large files, baudboy.h, the
6802 # appropriate pty interface, etc.
6803
6804 # Linux with Kerberos 5.
6805 # Use "make linux+krb5 KFLAGS=-DNO_KRB5_INIT_ETS" if necessary.
6806 #OK 2011/06/16 on Fedora 14 with:
6807 # make linux+krb5 "LIBS=$LIBS /lib/libk5crypto.so.3 /lib/libcom_err.so.2"
6808 # On RHEL5.x: make linux+krb5 -UCK_DES
6809 # On RHEL6.6: make linux+krb5 "K5LIB=-L /lib64"
6810 # This one tends to have trouble finding all its pieces.
6811 # As of C-Kermit 10.0 Beta.08 this target was renamed from linux+krb5
6812 # to linux+krb5-old and the next target, originally called linux+krb5-new
6813 # is now linux+krb5, and should work in most cases.
6814 linux+krb5-old:
6815 @echo 'Making C-Kermit $(CKVER) for Linux with Kerberos 5...'
6816 @case `openssl version` in \
6817 *0.9.7*) OPENSSLOPTION="-DOPENSSL_097" ;; \
6818 *0.9.8*) OPENSSLOPTION="-DOPENSSL_098" ;; \
6819 *1.[0-9].[0-9]*) OPENSSLOPTION="-DOPENSSL_100" ;; \
6820 *3.[0-9].[0-9]*) OPENSSLOPTION="-DOPENSSL_300" ;; \
6821 *) OPENSSLOPTION="" ;; \
6822 esac; \
6823 HAVE_DES=''; \
6824 DES_LIB=''; \
6825 if ls /usr/lib/libdes* > /dev/null 2> /dev/null || \
6826 ls $(SSLLIB)/libdes* > /dev/null 2> /dev/null; then \
6827 DES_LIB='-ldes425'; \
6828 HAVE_DES='-DCK_DES -DLIBDES'; \
6829 echo "HAVE DES"; \
6830 else echo "NO DES"; \
6831 fi; \
6832 K5CRYPTO=''; \
6833 if ls /lib/libk5crypto* > /dev/null 2> /dev/null; then \
6834 K5CRYPTO='-lk5crypto'; \
6835 else if ls /usr/lib/libk5crypto* > /dev/null 2> /dev/null; then \
6836 K5CRYPTO='-lk5crypto'; \
6837 else if ls /usr/lib64/libk5crypto* > /dev/null 2> /dev/null; then \
6838 K5CRYPTO='-lk5crypto'; \
6839 else if ls usr/lib/x86_64-linux-gnu/libk5crypto* \
6840 > /dev/null 2> /dev/null; then \
6841 K5CRYPTO='-lk5crypto'; \
6842 fi; fi; fi; fi; \
6843 COM_ERR=''; \
6844 if ls /lib/libcom_err* > /dev/null 2> /dev/null; then \
6845 COM_ERR='-lcom_err'; \
6846 else if ls /lib64/libcom_err* > /dev/null 2> /dev/null; then \
6847 COM_ERR='-lcom_err'; \
6848 else if ls /x86_64-linux-gnu/libcom_err* >/dev/null 2>/dev/null; then \
6849 COM_ERR='-lcom_err'; \
6850 fi; fi; fi; \
6851 GSSAPILIB='-lgssapi'; \
6852 if ls /lib/libgssapi_krb5* > /dev/null 2> /dev/null; then \
6853 GSSAPILIB='-lgssapi_krb5'; \
6854 else if ls /usr/lib/libgssapi_krb5* > /dev/null 2> /dev/null; then \
6855 GSSAPILIB='-lgssapi_krb5'; \
6856 else if ls /usr/lib/x86_64-linux-gnu/libgssapi_krb5* > \
6857 /dev/null 2> /dev/null; then \
6858 GSSAPILIB='-lgssapi_krb5'; \
6859 else K5DIR=`echo $(K5LIB) | sed 's|-L||'`; \
6860 if ls $$K5DIR/libgssapi_krb5* > /dev/null 2> /dev/null; then \
6861 GSSAPILIB='-lgssapi_krb5'; \
6862 fi; fi; fi; fi; \
6863 $(MAKE) linux KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
6864 "KFLAGS= -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 $$OPENSSLOPTION \
6865 -DCK_ENCRYPTION $$HAVE_DES $(K5INC) $(K5INC)/krb5 \
6866 -I/usr/include/et $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
6867 "LIBS = $(K5LIB) $$DES_LIB -lcrypto $$COM_ERR \
6868 $$GSSAPILIB -lkrb5 $$K5CRYPTO $(LIBS)"
6869
6870 # The previous linux+krb was a big mess, with hardwired pathnames for all the
6871 # possible places the Kerberos libs might be. This version just relies on the
6872 # linker to find them. It also handles the frequent situation where the
6873 # gssapi library is install but the linker doesn't know about it. Thanks to
6874 # Peter Eichhorn for a great deal of help with the syntax in the gssapi
6875 # section! - fdc 24 November 2022 (renamed to linux+krb5 15 December 2022)
6876 linux+krb5 linux+krb5-new:
6877 @echo 'NEW Making C-Kermit $(CKVER) for Linux with Kerberos 5...'
6878 @case `openssl version` in \
6879 *0.9.7*) OPENSSLOPTION="-DOPENSSL_097" ;; \
6880 *0.9.8*) OPENSSLOPTION="-DOPENSSL_098" ;; \
6881 *1.[0-9].[0-9]*) OPENSSLOPTION="-DOPENSSL_100" ;; \
6882 *3.[0-9].[0-9]*) OPENSSLOPTION="-DOPENSSL_300" ;; \
6883 *) OPENSSLOPTION="" ;; \
6884 esac; \
6885 K5LIB=''; \
6886 if ld -lkrb5 > /dev/null 2> /dev/null; then \
6887 K5LIB='-lkrb5'; else \
6888 echo "Failed - Can't find Kerberos 5 library" ; exit 2; \
6889 fi; \
6890 KRB5_H=''; \
6891 if test -f /usr/include/krb5/krb.h; then \
6892 KRB5_H=-DKRB5_H; \
6893 fi; \
6894 CRYPT_H=''; \
6895 if test -f /usr/include/crypt.h; then \
6896 CRYPT_H='-DCRYPT_H'; \
6897 fi; \
6898 LIBCRYPT=''; \
6899 if ld -lcrypt > /dev/null 2> /dev/null; then \
6900 LIBCRYPT='-lcrypt'; \
6901 fi; \
6902 LIBCRYPTO=''; \
6903 if ld -lcrypto > /dev/null 2> /dev/null; then \
6904 LIBCRYPTO='-lcrypto'; \
6905 fi; \
6906 LIBK5CRYPTO=''; \
6907 if ld -lk5crypto > /dev/null 2> /dev/null; then \
6908 LIBK5CRYPTO='-lk5crypto'; \
6909 fi; \
6910 HAVE_DES=''; \
6911 if ld -ldes > /dev/null 2> /dev/null; then \
6912 LIBDES='-ldes'; \
6913 HAVE_DES='-DCK_DES -DLIBDES'; \
6914 fi; \
6915 XX_COM_ERR=H''; \
6916 K5_COM_ERR_H=''; \
6917 ET_COM_ERR_H=''; \
6918 COM_ERR_LIB=''; \
6919 if ld -lcom_err > /dev/null 2> /dev/null; then \
6920 if test -f /usr/include/krb5/com_err.h; then \
6921 COM_ERR_LIB='-lcom_err'; \
6922 COM_ERR_H='-DK5_COM_ERR_H'; \
6923 else if test -f /usr/include/et/com_err.h; then \
6924 COM_ERR_LIB='-lcom_err'; \
6925 COM_ERR_H='-DET_COM_ERR_H'; \
6926 else if test -f /usr/include/com_err.h; then \
6927 COM_ERR_LIB='-lcom_err'; \
6928 COM_ERR_H='-DXX_COM_ERR_H'; \
6929 fi; \
6930 fi; \
6931 fi; \
6932 fi; \
6933 GSSAPILIB=''; \
6934 HAVE_GSSAPI=''; \
6935 if name=`locate libgssapi | grep ^/usr/lib | head -1`; then \
6936 echo name=$$name; \
6937 path=$${name%/*}; \
6938 echo PATH=$$path; \
6939 GSSAPILIB=$$(basename $$name); \
6940 echo GSSAPILIB=$$GSSAPILIB ; \
6941 HAVE_GSSAPI='-DHAVE_GSSAPI'; \
6942 fi ; \
6943 if [ -z "$$LD_LIBRARY_PATH" ] ; then \
6944 export LD_LIBRARY_PATH=$$path ; else \
6945 export LD_LIBRARY_PATH=$$LD_LIBRARY_PATH:$$path; \
6946 HAVE_GSSAPI='-DHAVE_GSSAPI'; \
6947 fi; \
6948 if ls $${path}/libgssapi_krb5.* >/dev/null 2>/dev/null; then \
6949 echo HAVE libgssapi_krb5 ; \
6950 GSSAPILIB=-lgssapi_krb5 ; else \
6951 if ls $${path}/libgssapi.* >/dev/null 2>/dev/null; then \
6952 GSSAPILIB=-lgssapi ; \
6953 fi; \
6954 fi; \
6955 echo GSSAPILIB=$GSSAPILIB; \
6956 echo LD_LIBRARY_PATH=$$LD_LIBRARY_PATH; \
6957 if ld -lggssapi_krb5 > /dev/null 2> /dev/null; then \
6958 GSSAPILIB='-lgssapi_krb5'; \
6959 HAVE_GSSAPI='-DHAVE_GSSAPI'; \
6960 echo GSSAPILIB-1=$$GSSAPILIB; \
6961 else if ld -lggssapi_krb5 > /dev/null 2> /dev/null; then \
6962 GSSAPILIB='-lgssapi'; \
6963 HAVE_GSSAPI='-DHAVE_GSSAPI'; \
6964 echo GSSAPILIB-2=$$GSSAPILIB; \
6965 fi; \
6966 fi; \
6967 echo GSSAPILIB=$$GSSAPILIB; \
6968 $(MAKE) linux KTARGET=$${KTARGET:-$(@)} "CC = $(CC)" "CC2 = $(CC2)" \
6969 "KFLAGS= -DCK_AUTHENTICATION -DCK_ENCRYPTION -DCK_KERBEROS -DKRB5 \
6970 $$HAVE_GSSAPI $$HAVE_DES $$OPENSSLOPTION $$CRYPT_H $$COM_ERR_H \
6971 $$KRB5_H $(KFLAGS)" \
6972 "LNKFLAGS = $(LNKFLAGS)" \
6973 "LIBS = $$LIBCRYPT $$LIBCRYPTO $$LIBK5CRYPTO $$LIBDES $$COM_ERR_LIB \
6974 $$K5LIB $$GSSAPILIB $(LIBS)"
6975
6976 # Linux with Kerberos 5 and Kerberos 4.
6977 # Use "make linux+krb5 KFLAGS=-DNO_KRB5_INIT_ETS" if necessary.
6978 # Add "KFLAGS=-UCK_DES" if failure messages look DES-related.
6979 # UNTESTED (because I can't find a box with Krb4 and Krb5 installed)
6980 linux+krb5+krb4:
6981 @echo 'Making C-Kermit for Linux with Kerberos 4 and Kerberos 5'
6982 $(MAKE) linux+krb5 KTARGET=$${KTARGET:-$(@)} \
6983 "KFLAGS=-DKRB4 -DKRB524 $(KFLAGS)" "LIBS=$(LIBS) -lkrb4"
6984
6985 # Linux with OpenSSL
6986 # In Linux, SSL libs are often in /lib or /usr/lib and so found by default.
6987 # This targets takes into account the DES library might or might not
6988 # exist. If it does exist, however, the target will require some editing
6989 # if its basename is not libdes425. - fdc Tue Sep 21 14:28:00 2010
6990 # IMPORTANT: Some Linux platforms have DES libraries but they are missing
6991 # functions used by Kermit. In that case you will get fatal errors at
6992 # link time involving routines such as des_ecb3_encrypt, des_random_seed,
6993 # and des_set_odd_parity. In that case, "make linux KFLAGS=-UCK_DES"
6994 # There's a new warning at the end that should come out if this happens,
6995 # and that should not come out if it didn't.
6996 #
6997 # Newer versions of OpenSSL cause profuse "-Wdeprecated-declarations"
6998 # warnings, meaning C-Kermit's SSL code needs to be updated to allow (by
6999 # copious use if #ifdefs) for both old and new versions. Also it has been
7000 # noted that libpam0g-dev must be installed for OpenSSL 3 builds, which
7001 # is needed for /usr/include/security/pam_appl.h, which ckufio.c #includes.
7002 # - fdc 14 May 2023
7003 #
7004 linux+ssl linux+openssl linux+openssl+zlib+shadow+pam linux+openssl+shadow:
7005 @echo 'Making C-Kermit $(CKVER) for Linux+OpenSSL SSLLIB=$(SSLLIB)'
7006 @case `openssl version` in \
7007 *0.9.7*) OPENSSLOPTION="-DOPENSSL_097" ;; \
7008 *0.9.8*) OPENSSLOPTION="-DOPENSSL_098" ;; \
7009 *1.[0-9].[0-9]*) OPENSSLOPTION="-DOPENSSL_100" ;; \
7010 *3.[0-9].[0-9]*) OPENSSLOPTION="-DOPENSSL_300" ;; \
7011 *) OPENSSLOPTION="" ;; \
7012 esac; \
7013 HAVE_DES=''; \
7014 DES_LIB=''; \
7015 if ls /usr/lib/libdes* > /dev/null 2> /dev/null || \
7016 ls $(SSLLIB)/libdes* > /dev/null 2> /dev/null; then \
7017 DES_LIB='-ldes425'; \
7018 HAVE_DES='-DCK_DES -DLIBDES'; \
7019 echo "HAVE DES"; \
7020 else echo "NO DES"; \
7021 fi; \
7022 $(MAKE) linux KTARGET=$${KTARGET:-$(@)} "CC = $(CC)" "CC2 = $(CC2)" \
7023 "KFLAGS= -DCK_AUTHENTICATION -DCK_ENCRYPTION -DCK_CAST $$HAVE_DES \
7024 -DCK_SSL -DCK_PAM -DZLIB -DCK_SHADOW $$OPENSSLOPTION $(SSLINC) \
7025 $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
7026 "LIBS = $(SSLLIB) -lssl $$DES_LIB -lcrypto -lpam -ldl -lz $(LIBS)"
7027
7028 # Linux with Kerberos 5 and OpenSSL
7029 # OK 2011/05/16
7030 # Add -UCK_DES if functions like des_ecb3_encrypt, es_random_seed,
7031 # come up missing at link time.
7032 # NOTE: MULTIARCH is defined externally, e.g. in DEB_HOST_MULTIARCH
7033 # On RHEL6.6: make linux+krb5+ssl "K5LIB=-L /lib64"
7034 linux+krb5+ssl linux+krb5+openssl:
7035 @echo 'Making C-Kermit $(CKVER) for Linux with Krb5 and OpenSSL...'
7036 @case `openssl version` in \
7037 *0.9.7*) OPENSSLOPTION="-DOPENSSL_097" ;; \
7038 *0.9.8*) OPENSSLOPTION="-DOPENSSL_098" ;; \
7039 *1.[0-9].[0-9]*) OPENSSLOPTION="-DOPENSSL_100" ;; \
7040 *3.[0-9].[0-9]*) OPENSSLOPTION="-DOPENSSL_300" ;; \
7041 *) OPENSSLOPTION="" ;; \
7042 esac; \
7043 HAVE_DES=''; \
7044 DES_LIB=''; \
7045 if ls /usr/lib/libdes* > /dev/null 2> /dev/null || \
7046 ls $(SSLLIB)/libdes* > /dev/null 2> /dev/null; then \
7047 DES_LIB='-ldes425'; \
7048 HAVE_DES='-DCK_DES -DLIBDES'; \
7049 echo "HAVE DES"; \
7050 else echo "NO DES"; \
7051 fi; \
7052 K5CRYPTO=''; \
7053 if ls /lib/libk5crypto* > /dev/null 2> /dev/null; then \
7054 K5CRYPTO='-lk5crypto'; \
7055 else if ls /usr/lib/libk5crypto* > /dev/null 2> /dev/null; then \
7056 K5CRYPTO='-lk5crypto'; \
7057 else if ls /usr/lib64/libk5crypto* > /dev/null 2> /dev/null; then \
7058 K5CRYPTO='-lk5crypto'; \
7059 else if ls /usr/lib/$(MULTIARCH)/libk5crypto* \
7060 > /dev/null 2> /dev/null; then K5CRYPTO='-lk5crypto'; \
7061 fi; fi; fi; fi; \
7062 COM_ERR=''; \
7063 if ls /lib/libcom_err* > /dev/null 2> /dev/null; then \
7064 COM_ERR='-lcom_err'; \
7065 else if ls /lib/$(MULTIARCH)/libcom_err* \
7066 > /dev/null 2> /dev/null; then COM_ERR='-lcom_err'; \
7067 else if ls /lib64/libcom_err* > /dev/null 2> /dev/null; then \
7068 COM_ERR='-lcom_err'; \
7069 fi; fi; fi; \
7070 GSSAPILIB='-lgssapi'; \
7071 if ls /lib/libgssapi_krb5* > /dev/null 2> /dev/null; then \
7072 GSSAPILIB='-lgssapi_krb5'; \
7073 else if ls /usr/lib/$(MULTIARCH)/libgssapi_krb5* \
7074 > /dev/null 2> /dev/null; then \
7075 GSSAPILIB='-lgssapi_krb5'; \
7076 else K5DIR=`echo $(K5LIB) | sed 's|-L||'`; \
7077 if ls $$K5DIR/libgssapi_krb5* > /dev/null 2> /dev/null; then \
7078 GSSAPILIB='-lgssapi_krb5'; \
7079 fi; fi; fi; \
7080 $(MAKE) linux KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
7081 "KFLAGS= -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 \
7082 -DCK_SSL -DCK_PAM -DZLIB -DCK_SHADOW $$OPENSSLOPTION $(SSLINC) \
7083 -DCK_ENCRYPTION $$HAVE_DES $(K5INC) $(K5INC)/krb5 \
7084 -I/usr/include/et $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
7085 "LIBS = $(K5LIB) $(SSLLIB) -lssl $$DES_LIB -lpam -lz \
7086 -lcrypto $$GSSAPILIB -lkrb5 $$K5CRYPTO $$COM_ERR $(LIBS)"
7087
7088 linux+krb5+ssl-new:
7089 @echo 'Making C-Kermit $(CKVER) for Linux with Krb5 and OpenSSL...'
7090 @case `openssl version` in \
7091 *0.9.7*) OPENSSLOPTION="-DOPENSSL_097" ;; \
7092 *0.9.8*) OPENSSLOPTION="-DOPENSSL_098" ;; \
7093 *1.[0-9].[0-9]*) OPENSSLOPTION="-DOPENSSL_100" ;; \
7094 *3.[0-9].[0-9]*) OPENSSLOPTION="-DOPENSSL_300" ;; \
7095 *) OPENSSLOPTION="" ;; \
7096 esac; \
7097 HAVE_DES=''; \
7098 DES_LIB=''; \
7099 if ls /usr/lib/libdes* > /dev/null 2> /dev/null || \
7100 ls $(SSLLIB)/libdes* > /dev/null 2> /dev/null; then \
7101 DES_LIB='-ldes425'; \
7102 HAVE_DES='-DCK_DES -DLIBDES'; \
7103 echo "HAVE DES"; \
7104 else echo "NO DES"; \
7105 fi; \
7106 LIBK5CRYPTO=''; \
7107 if ld -lk5crypto > /dev/null 2> /dev/null; then \
7108 LIBK5CRYPTO='-lk5crypto'; \
7109 fi; \
7110 XX_COM_ERR=H''; \
7111 K5_COM_ERR_H=''; \
7112 ET_COM_ERR_H=''; \
7113 COM_ERR_LIB=''; \
7114 if ld -lcom_err > /dev/null 2> /dev/null; then \
7115 if test -f /usr/include/krb5/com_err.h; then \
7116 COM_ERR_LIB='-lcom_err'; \
7117 COM_ERR_H='-DK5_COM_ERR_H'; \
7118 else if test -f /usr/include/et/com_err.h; then \
7119 COM_ERR_LIB='-lcom_err'; \
7120 COM_ERR_H='-DET_COM_ERR_H'; \
7121 else if test -f /usr/include/com_err.h; then \
7122 COM_ERR_LIB='-lcom_err'; \
7123 COM_ERR_H='-DXX_COM_ERR_H'; \
7124 fi; \
7125 fi; \
7126 fi; \
7127 fi; \
7128 GSSAPILIB=''; \
7129 HAVE_GSSAPI=''; \
7130 if name=`locate libgssapi | grep ^/usr/lib | head -1`; then \
7131 echo name=$$name; \
7132 path=$${name%/*}; \
7133 echo PATH=$$path; \
7134 GSSAPILIB=$$(basename $$name); \
7135 echo GSSAPILIB=$$GSSAPILIB ; \
7136 HAVE_GSSAPI='-DHAVE_GSSAPI'; \
7137 fi ; \
7138 if [ -z "$$LD_LIBRARY_PATH" ] ; then \
7139 export LD_LIBRARY_PATH=$$path ; else \
7140 export LD_LIBRARY_PATH=$$LD_LIBRARY_PATH:$$path; \
7141 HAVE_GSSAPI='-DHAVE_GSSAPI'; \
7142 fi; \
7143 if ls $${path}/libgssapi_krb5.* >/dev/null 2>/dev/null; then \
7144 echo HAVE libgssapi_krb5 ; \
7145 GSSAPILIB=-lgssapi_krb5 ; else \
7146 if ls $${path}/libgssapi.* >/dev/null 2>/dev/null; then \
7147 GSSAPILIB=-lgssapi ; \
7148 fi; \
7149 fi; \
7150 echo GSSAPILIB=$GSSAPILIB; \
7151 echo LD_LIBRARY_PATH=$$LD_LIBRARY_PATH; \
7152 if ld -lggssapi_krb5 > /dev/null 2> /dev/null; then \
7153 GSSAPILIB='-lgssapi_krb5'; \
7154 HAVE_GSSAPI='-DHAVE_GSSAPI'; \
7155 echo GSSAPILIB-1=$$GSSAPILIB; \
7156 else if ld -lggssapi_krb5 > /dev/null 2> /dev/null; then \
7157 GSSAPILIB='-lgssapi'; \
7158 HAVE_GSSAPI='-DHAVE_GSSAPI'; \
7159 echo GSSAPILIB-2=$$GSSAPILIB; \
7160 fi; \
7161 fi; \
7162 $(MAKE) linux KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
7163 "KFLAGS= -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 \
7164 -DCK_SSL -DCK_PAM -DZLIB -DCK_SHADOW $$OPENSSLOPTION $(SSLINC) \
7165 -DCK_ENCRYPTION $$HAVE_DES $(K5INC) $(K5INC)/krb5 \
7166 -I/usr/include -I/usr/include/et /$(KFLAGS)" \
7167 "LNKFLAGS = $(LNKFLAGS)" \
7168 "LIBS = $(K5LIB) $(SSLLIB) -lssl $$DES_LIB -lpam -lz \
7169 -lcrypto $$GSSAPILIB -lkrb5 $$K5CRYPTO $$COM_ERR $(LIBS)"
7170
7171 # ::BEGIN_OLD_LINUX_TARGETS::
7172
7173 # The remaining Linux entries are for special or customized builds. They have
7174 # not been generalized ("subroutinized") like the ones above. Ideally, we
7175 # should allow for every combination of libc vs glibc, gcc vs egcs, curses vs
7176 # ncurses, Kerberos IV vs Kerberos V vs SRP (in any combination), and so on.
7177 # The best way to do this is to set KFLAGS and LIBS values and then chain to
7178 # the main "linux" target, as in the examples just above. To skip past all of
7179 # these old targets (and there are many) search for ::END_OLD_LINUX_TARGETS::
7180 # (after this line).
7181
7182 #Sharp Zaurus SL-5500 - Linux based
7183 zsl5500:
7184 @echo 'Making C-Kermit $(CKVER) for Sharp Zaurus SL-5500...'
7185 $(MAKE) linuxnc $(MAKE) linux KTARGET=$${KTARGET:-$(@)} \
7186 KFLAGS="-DNOCURSES -UCK_CURSES" KTARGET=$${KTARGET:-$(@)} "KFLAGS=-DZSL5500" \
7187 "CC = gcc" "CC2 = gcc"
7188
7189 #Mklinux DR3 has horrible bug in <utmpbits.h> - see ckufio.c.
7190 mklinux:
7191 $(MAKE) KTARGET=$${KTARGET:-$(@)} "KFLAGS=-DUTMPBUG" \
7192 "LIBS=-lcrypt -lresolv" linuxa
7193
7194 #LinuxPPC 1999
7195 linuxppc:
7196 @echo 'Making C-Kermit $(CKVER) for LinuxPPC 1999...'
7197 @if test -f /usr/lib/libcrypt.a; then \
7198 if test -f /usr/lib/libresolv.a; then \
7199 $(MAKE) KTARGET=$${KTARGET:-$(@)} \
7200 "KFLAGS=$(NCURSES_CPP) -DHAVE_CRYPT_H \
7201 -DLOCK_DIR=\\\\\\"\"/var/lock/modem\\\\\\"\" $(KFLAGS)" \
7202 "LIBS=-lncurses -lresolv -lcrypt" linuxa ; \
7203 else \
7204 $(MAKE) KTARGET=$${KTARGET:-$(@)} \
7205 "KFLAGS=$(NCURSES_CPP) -DHAVE_CRYPT_H \
7206 -DLOCK_DIR=\\\\\\"\"/var/lock/modem\\\\\\"\" $(KFLAGS)" \
7207 "LIBS=-lncurses -lcrypt" linuxa ; \
7208 fi \
7209 else \
7210 if test -f /usr/lib/libresolv.a; then \
7211 $(MAKE) KTARGET=$${KTARGET:-$(@)} \
7212 "KFLAGS=$(NCURSES_CPP) \
7213 -DLOCK_DIR=\\\\\\"\"/var/lock/modem\\\\\\"\" $(KFLAGS)" \
7214 "LIBS=-lncurses -lresolv" linuxa ; \
7215 else \
7216 $(MAKE) KTARGET=$${KTARGET:-$(@)} \
7217 "KFLAGS=$(NCURSES_CPP) \
7218 -DLOCK_DIR=\\\\\\"\"/var/lock/modem\\\\\\"\" $(KFLAGS)" \
7219 "LIBS=-lncurses" linuxa ; \
7220 fi \
7221 fi
7222
7223
7224 # Like "make linux" but built with egcs rather than gcc.
7225 # If you get "Internal compiler error xxx, output pipe has been closed",
7226 # try removing -pipe.
7227 linuxegcs:
7228 @echo 'Making C-Kermit $(CKVER) for Linux 1.2 or later with egcs...'
7229 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = egcs" "CC2 = egcs" \
7230 "CFLAGS = -O -DLINUX -pipe -funsigned-char \
7231 -DPOSIX -DCK_POSIX_SIG -DCK_NCURSES -DNOCOTFMC \
7232 -DTCPSOCKET -DLINUXFSSTND $(KFLAGS)" \
7233 "LNKFLAGS = $(LNKFLAGS)" "LIBS = -lncurses -lcrypt -lresolv"
7234
7235 #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.1 (no K4 compatibility).
7236 linux+krb5-older:
7237 @echo 'Making C-Kermit $(CKVER) for Linux on Intel with Kerberos...'
7238 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
7239 "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
7240 -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 \
7241 -DCK_ENCRYPTION -DCK_DES -DCK_CURSES -DCK_POSIX_SIG \
7242 -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H $(K5INC) $(K5INC)/krb5 \
7243 $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
7244 "LIBS = $(K5LIB) -lncurses -ltermcap -ldes425 -lkrb5 \
7245 -lcom_err -lk5crypto -lgssapi_krb5 -lcrypt -lresolv"
7246
7247 # Linux on Intel PC with SRP 1.7.4 using GNU MP, Krypto, and Eric Young's
7248 # DES library. Remove the -DCK_DES, -DLIBDES and -ldes if you do not have
7249 # Eric Young's# libdes.a installed.
7250 #
7251 linux+srp+gmp:
7252 @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SRP...'
7253 $(MAKE) srpmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
7254 "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
7255 -DCK_AUTHENTICATION -DCK_SRP \
7256 -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES \
7257 -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
7258 $(SRPINC) $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
7259 "LIBS = $(SRPLIB) \
7260 -lncurses -ltermcap -lsrp -lgmp -ldes -lkrypto -lcrypt -lresolv"
7261
7262 linux+srp+gmp+no-des:
7263 @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SRP ...'
7264 $(MAKE) srpmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
7265 "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
7266 -DCK_AUTHENTICATION -DCK_SRP \
7267 -DCK_ENCRYPTION -DCK_CAST \
7268 -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
7269 $(SRPINC) $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
7270 "LIBS = $(SRPLIB) \
7271 -lncurses -ltermcap -lsrp -lgmp -lkrypto -lcrypt -lresolv"
7272
7273 linux+srp+gmp-export:
7274 @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SRP...'
7275 $(MAKE) srpmit-export KTARGET=$${KTARGET:-$(@)} \
7276 "CC = gcc" "CC2 = gcc" \
7277 "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
7278 -DCK_AUTHENTICATION -DCK_SRP -DFNFLOAT \
7279 -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
7280 $(SRPINC) $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
7281 "LIBS = $(SRPLIB) \
7282 -lncurses -ltermcap -lsrp -lgmp -lkrypto -lcrypt -lm -lresolv"
7283
7284 linux+srp+gmp+pam:
7285 @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SRP...'
7286 $(MAKE) srpmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
7287 "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
7288 -DCK_AUTHENTICATION -DCK_SRP \
7289 -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES \
7290 -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
7291 -DCK_PAM -DFNFLOAT $(SRPINC) $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
7292 "LIBS = $(SRPLIB) -lncurses -ltermcap -lsrp -lgmp -ldes -lkrypto \
7293 -lcrypt -lpam -ldl -lm -lresolv"
7294
7295 #Linux on Intel PC with SRP 1.7.4 built with OpenSSL for Big Number Math
7296 #and Cryptographic functionality.
7297 #
7298 linux+srp:
7299 @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SRP...'
7300 $(MAKE) srpmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
7301 "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
7302 -DCK_AUTHENTICATION -DCK_SRP \
7303 -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES \
7304 -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
7305 $(SRPINC) $(SSLINC) $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
7306 "LIBS = $(SRPLIB) $(SSLLIB) \
7307 -lncurses -ltermcap -lsrp -lkrypto -lcrypto -lcrypt -lresolv"
7308
7309 linux+srp+pam:
7310 @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SRP...'
7311 $(MAKE) srpmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
7312 "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
7313 -DCK_AUTHENTICATION -DCK_SRP \
7314 -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES \
7315 -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
7316 -DCK_PAM -DFNFLOAT $(SRPINC) $(SSLINC) $(KFLAGS)" \
7317 "LNKFLAGS = $(LNKFLAGS)" \
7318 "LIBS = $(SRPLIB) $(SSLLIB) -lncurses -ltermcap -lsrp -lkrypto \
7319 -lcrypto -lcrypt -lpam -ldl -lm -lresolv"
7320
7321 #Linux on Intel PC with SRP and SSL/TLS.
7322 #
7323 # libsrp.a should be build with OpenSSL
7324 # Requires the Kerberos 1.2.2 or higher to be compiled with KRB4 compatibility.
7325 #Remove -ltermcap if it causes trouble e.g. in Debian 2.2.
7326 #If you have OpenSSL 0.9.7 or later, add -DOPENSSL_097 to KFLAGS.
7327 linux+srp+openssl:
7328 @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SRP,SSL...'
7329 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
7330 "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
7331 -DCK_AUTHENTICATION -DCK_SRP \
7332 -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL \
7333 -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
7334 $(SRPINC) $(SSLINC) $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
7335 "LIBS = $(SRPLIB) $(SSLLIB) \
7336 -lncurses -ltermcap -lsrp -lssl -lkrypto -lcrypto \
7337 -lcrypt -lresolv"
7338
7339 #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.2 and SRP.
7340 #
7341 # libsrp.a should be build with GNU MP (libgmp.a)
7342 # instead of AT&T CryptoLib (libcrypt.a) due to naming conflicts with
7343 # standard distribution Linux libraries.
7344 # Requires the Kerberos 1.2.2 or higher to be compiled with KRB4 compatibility.
7345 linux+krb5+krb4+srp:
7346 @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB54+SRP...'
7347 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
7348 "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
7349 -DCK_AUTHENTICATION -DCK_SRP -DCK_KERBEROS -DKRB5 -DKRB4 -DKRB524 \
7350 -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES \
7351 -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
7352 $(K5INC) $(K5INC)/krb5 $(SRPINC) \
7353 $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
7354 "LIBS = $(K5LIB) $(SRPLIB) \
7355 -lncurses -ltermcap -lsrp -lgmp -lgssapi_krb5 -lkrypto \
7356 -ldes -lkrb4 -ldes425 -lkrb5 -lcom_err -lk5crypto -lcrypt -lresolv"
7357
7358 #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.2, SRP and SSL/TLS.
7359 #
7360 # libsrp.a should be build with OpenSSL
7361 # Requires the Kerberos 1.2.2 or higher to be compiled with KRB4 compatibility.
7362 # Requires OpenSSL 0.9.6a or higher
7363 #If you have OpenSSL 0.9.7 or later, add -DOPENSSL_097 to KFLAGS.
7364 linux+krb5+krb4+srp+openssl:
7365 @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SRP,SSL...'
7366 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
7367 "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
7368 -DCK_AUTHENTICATION -DCK_SRP -DCK_KERBEROS -DKRB5 -DKRB4 -DKRB524 \
7369 -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL \
7370 -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
7371 $(K5INC) $(K5INC)/krb5 $(SRPINC) $(SSLINC) \
7372 $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
7373 "LIBS = $(K5LIB) $(SRPLIB) $(SSLLIB) \
7374 -lncurses -ltermcap -lsrp \
7375 -lkrb4 -lssl -lkrypto -lcrypto \
7376 -lkrb5 -lcom_err -lk5crypto -lgssapi_krb5 -lcrypt -lresolv"
7377
7378 #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.2, SSL/TLS.
7379 #
7380 # libsrp.a should be build with OpenSSL
7381 # Requires the Kerberos 1.2.2 be compiled with KRB4 compatibility.
7382 #If you have OpenSSL 0.9.7 or later, add -DOPENSSL_097 to KFLAGS.
7383 linux+krb5+krb4+openssl:
7384 @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SSL...'
7385 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
7386 "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
7387 -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 -DKRB4 -DKRB524 \
7388 -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL \
7389 -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
7390 $(K5INC) $(K5INC)/krb5 $(SSLINC) \
7391 $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
7392 "LIBS = $(K5LIB) $(SSLLIB) \
7393 -lncurses -ltermcap \
7394 -lkrb4 -lssl -lcrypto -lkrb5 -lcom_err \
7395 -lk5crypto -lgssapi_krb5 -lcrypt -lresolv"
7396
7397 #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.1, SSL/TLS.
7398 #
7399 # libsrp.a should be build with OpenSSL
7400 # Requires the Kerberos 1.2.2 be compiled with KRB4 compatibility.
7401 # If you have OpenSSL 0.9.7 or later, add -DOPENSSL_097 to KFLAGS.
7402 linux+krb5+krb4+openssl+shadow:
7403 @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SSL...'
7404 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
7405 "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
7406 -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 -DKRB4 -DKRB524 \
7407 -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL -DCK_SHADOW \
7408 -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
7409 $(K5INC) $(K5INC)/krb5 $(SSLINC) \
7410 $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
7411 "LIBS = $(K5LIB) $(SSLLIB) \
7412 -lncurses -ltermcap \
7413 -lkrb4 -lssl -lcrypto -lkrb5 -lcom_err \
7414 -lk5crypto -lgssapi_krb5 -lcrypt -lresolv"
7415
7416 #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2, SSL/TLS.
7417 #
7418 # libsrp.a should be build with OpenSSL
7419 # Requires the Kerberos 1.2.2 be compiled with KRB4 compatibility.
7420 # If you have OpenSSL 0.9.7 or later, add -DOPENSSL_097 to KFLAGS.
7421 linux+krb5+krb4+openssl+zlib+shadow:
7422 @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SSL...'
7423 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
7424 "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
7425 -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 -DKRB4 -DKRB524 -DZLIB \
7426 -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL -DCK_SHADOW \
7427 -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
7428 $(K5INC) $(K5INC)/krb5 $(SSLINC) \
7429 $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
7430 "LIBS = $(K5LIB) $(SSLLIB) \
7431 -lncurses -ltermcap \
7432 -lkrb4 -lssl -lcrypto -lkrb5 -lcom_err \
7433 -lk5crypto -lgssapi_krb5 -lcrypt -lresolv -lz"
7434
7435 linux+krb5+krb4+srp-export:
7436 @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SRP...'
7437 $(MAKE) xermit-export KTARGET=$${KTARGET:-$(@)} \
7438 "CC = gcc" "CC2 = gcc" \
7439 "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
7440 -DCK_AUTHENTICATION -DCK_SRP -DCK_KERBEROS -DKRB5 -DKRB4 -DKRB524 \
7441 -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
7442 $(K5INC) $(K5INC)/krb5 $(SRPINC) \
7443 $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
7444 "LIBS = $(SRPLIB) $(K5LIB) \
7445 -lncurses -ltermcap -lsrp -lgmp -lkrb4 -ldes425 -lkrb5 -lgssapi_krb5 \
7446 -lcom_err -lk5crypto -lkrypto -lcrypt -lresolv"
7447
7448 linux+krb5+krb4+srp+pam:
7449 @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SRP...'
7450 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
7451 "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
7452 -DCK_AUTHENTICATION -DCK_SRP -DCK_KERBEROS -DKRB5 -DKRB4 -DKRB524 \
7453 -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES \
7454 -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
7455 -DCK_PAM $(K5INC) $(K5INC)/krb5 $(SRPINC) \
7456 $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
7457 "LIBS = $(SRPLIB) $(K5LIB) \
7458 -lncurses -ltermcap -lsrp -lgmp -ldes -lkrb4 -ldes425 -lkrb5 \
7459 -lcom_err -lk5crypto -lgssapi_krb5 -lkrypto -lcrypt -lpam -ldl \
7460 -lresolv"
7461
7462 #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.2, SRP and SSL/TLS.
7463 # and PAM.
7464 #
7465 # libsrp.a should be build with OpenSSL
7466 # Requires the Kerberos 1.2.2 be compiled with KRB4 compatibility.
7467 # If you have OpenSSL 0.9.7 or later, add -DOPENSSL_097 to KFLAGS.
7468 linux+krb5+krb4+srp+openssl+pam-debug:
7469 @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SRP,SSL...'
7470 $(MAKE) xermit-debug KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
7471 "CFLAGS = -g -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
7472 -DCK_AUTHENTICATION -DCK_SRP -DCK_KERBEROS -DKRB5 -DKRB4 -DKRB524 \
7473 -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL -DCK_PAM \
7474 -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
7475 -w -Dmalloc=dmalloc -Dfree=dfree -DMDEBUG $(K5INC) $(K5INC)/krb5 \
7476 $(SRPINC) $(SSLINC) $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
7477 "LIBS = $(SRPLIB) $(K5LIB) $(SSLLIB) \
7478 -lncurses -ltermcap -lsrp -lkrb4 -lssl -lkrypto -lcrypto \
7479 -lkrb5 -lcom_err -lk5crypto -lgssapi_krb5 -lcrypt -lresolv -lpam -ldl"
7480
7481 #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.1, SRP and SSL/TLS.
7482 # and PAM.
7483 #
7484 # libsrp.a should be build with OpenSSL
7485 # Requires the Kerberos 1.2.2 be compiled with KRB4 compatibility.
7486 # If you have OpenSSL 0.9.7 or later, add -DOPENSSL_097 to KFLAGS.
7487 linux+krb5+krb4+srp+openssl+pam:
7488 @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SRP,SSL...'
7489 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
7490 "CFLAGS = -g -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
7491 -DCK_AUTHENTICATION -DCK_SRP -DCK_KERBEROS -DKRB5 -DKRB4 -DKRB524 \
7492 -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL -DCK_PAM \
7493 -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
7494 $(K5INC) $(K5INC)/krb5 $(SRPINC) $(SSLINC) \
7495 $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
7496 "LIBS = $(SRPLIB) $(K5LIB) $(SSLLIB) \
7497 -lm -lncurses -ltermcap -lsrp \
7498 -lkrb4 -lssl -lkrypto -lcrypto -lgssapi_krb5 \
7499 -lkrb5 -lcom_err -lk5crypto -lcrypt -lresolv -lpam -ldl"
7500
7501 #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.2, SRP, OpenSSL
7502 # with ZLIB and PAM
7503 #
7504 # libsrp.a should be build with OpenSSL
7505 # Requires the Kerberos 1.2.2 be compiled with KRB4 compatibility.
7506 # If you have OpenSSL 0.9.7 or later, add -DOPENSSL_097 to KFLAGS.
7507 linux+krb5+krb4+srp+openssl+zlib+pam:
7508 @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SRP,SSL...'
7509 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
7510 "CFLAGS = -g -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
7511 -DCK_AUTHENTICATION -DCK_SRP -DCK_KERBEROS -DKRB5 -DKRB4 -DKRB524 \
7512 -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL -DCK_PAM -DZLIB \
7513 -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
7514 $(K5INC) $(K5INC)/krb5 $(SRPINC) $(SSLINC) \
7515 $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
7516 "LIBS = $(SRPLIB) $(K5LIB) $(SSLLIB) \
7517 -lm -lncurses -ltermcap -lsrp \
7518 -lkrb4 -lssl -lkrypto -lcrypto -lgssapi_krb5 \
7519 -lkrb5 -lcom_err -lk5crypto -lcrypt -lresolv -lpam -ldl -lz"
7520
7521 #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.2, SRP, OpenSSL
7522 # with ZLIB, Shadow Passwords, and PAM
7523 #
7524 # libsrp.a should be build with OpenSSL
7525 # Requires the Kerberos 1.2.2 be compiled with KRB4 compatibility.
7526 # If you have OpenSSL 0.9.7 or later, add -DOPENSSL_097 to KFLAGS.
7527 linux+krb5+krb4+srp+openssl+zlib+shadow+pam:
7528 @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SRP,SSL...'
7529 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
7530 "CFLAGS = -g -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
7531 -DCK_AUTHENTICATION -DCK_SRP -DCK_KERBEROS -DKRB5 -DKRB4 -DKRB524 \
7532 -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL -DCK_PAM -DZLIB \
7533 -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
7534 -DCK_SHADOW $(K5INC) $(K5INC)/krb5 $(SRPINC) $(SSLINC) \
7535 $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
7536 "LIBS = $(SRPLIB) $(K5LIB) $(SSLLIB) \
7537 -lm -lncurses -ltermcap -lsrp -lkrypto \
7538 -lkrb4 -lssl -lcrypto -lgssapi_krb5 \
7539 -lkrb5 -lcom_err -lk5crypto -lcrypt -lresolv -lpam -ldl -lz"
7540
7541 #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.2, OpenSSL
7542 # with Shadow Passwords, PAM
7543 #
7544 # Requires the Kerberos 1.2.2 be compiled with KRB4 compatibility.
7545 linux+krb5+krb4+openssl+shadow+pam:
7546 @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SSL,...'
7547 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
7548 "CFLAGS = -g -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
7549 -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 -DKRB4 -DKRB524 \
7550 -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL -DCK_PAM \
7551 -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
7552 -DCK_SHADOW $(K5INC) $(K5INC)/krb5 $(SSLINC) \
7553 $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
7554 "LIBS = $(K5LIB) $(SSLLIB) \
7555 -lm -lncurses -ltermcap \
7556 -lkrb4 -lssl -lcrypto -lgssapi_krb5 \
7557 -lkrb5 -lcom_err -lk5crypto -lcrypt -lresolv -lpam -ldl"
7558
7559 #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.2, OpenSSL
7560 # with ZLIB, Shadow Passwords, PAM
7561 #
7562 # libsrp.a should be build with OpenSSL
7563 # Requires the Kerberos 1.2.2 be compiled with KRB4 compatibility.
7564 # If you have OpenSSL 0.9.7 or later, add -DOPENSSL_097 to KFLAGS.
7565 linux+krb5+krb4+openssl+zlib+shadow+pam:
7566 @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SRP,SSL...'
7567 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
7568 "CFLAGS = -g -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
7569 -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 -DKRB4 -DKRB524 \
7570 -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL -DCK_PAM -DZLIB \
7571 -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
7572 -DCK_SHADOW $(K5INC) $(K5INC)/krb5 $(SSLINC) \
7573 $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
7574 "LIBS = $(K5LIB) $(SSLLIB) \
7575 -lm -lncurses -ltermcap \
7576 -lkrb4 -lssl -lcrypto -lgssapi_krb5 \
7577 -lkrb5 -lcom_err -lk5crypto -lcrypt -lresolv -lpam -ldl -lz"
7578
7579 #Red Hat 9 - full install includes Kerberos 5 (4 compat), PAM, SSL.
7580 #Also works around bug in curses in which terminal goes dead after
7581 #returning from file-transfer display. Assumes OpenSSL 0.9.7 or later.
7582 redhat9:
7583 @echo "Building SECURE Kermit for Red Hat 9.0..."
7584 $(MAKE) linux+krb5+krb4+openssl+zlib+shadow+pam \
7585 KTARGET=$${KTARGET:-$(@)} "KFLAGS = -DRH90 -DOPENSSL_097 $(KFLAGS)"
7586
7587 #Ditto plus SRP (which is not normally included with RH Linux).
7588 redhat9+srp:
7589 @echo "Building SECURE Kermit for Red Hat 9.0..."
7590 $(MAKE) linux+krb5+krb4+srp+openssl+zlib+shadow+pam \
7591 KTARGET=$${KTARGET:-$(@)} "KFLAGS = -DRH90 -DOPENSSL_097 $(KFLAGS)"
7592
7593 #For Red Hat AS 2.1 with OpenSSL
7594 redhat21+ssl:
7595 @echo "Building SECURE Kermit for Red Hat 2.1..."
7596 $(MAKE) linux+openssl+zlib+shadow+pam \
7597 KTARGET=$${KTARGET:-$(@)} "KFLAGS = $(KFLAGS)"
7598
7599 #Red Hat Linux 8.0 - full install includes Kerberos 5 (4 compat), PAM, SSL.
7600 #Also works around bug in curses in which terminal goes dead after
7601 #returning from file-transfer display.
7602 redhat80:
7603 @echo "Building SECURE Kermit for Red Hat 8.0..."
7604 $(MAKE) linux+krb5+krb4+openssl+zlib+shadow+pam \
7605 KTARGET=$${KTARGET:-$(@)} "KFLAGS = -DRH80 $(KFLAGS)"
7606
7607 redhat80+srp:
7608 @echo "Building SECURE Kermit for Red Hat 8.0..."
7609 $(MAKE) linux+krb5+krb4+srp+openssl+zlib+shadow+pam \
7610 KTARGET=$${KTARGET:-$(@)} "KFLAGS = -DRH80 $(KFLAGS)"
7611
7612 #Red Hat Linux 7.3 - full install includes Kerberos 5 (4 compat), PAM, SSL.
7613 #Also works around bug in curses in which terminal goes dead after
7614 #returning from file-transfer display.
7615 redhat73:
7616 @echo "Building SECURE Kermit for Red Hat 7.3..."
7617 $(MAKE) linux+krb5+krb4+openssl+zlib+shadow+pam \
7618 KTARGET=$${KTARGET:-$(@)} "KFLAGS = -DRH73 $(KFLAGS)"
7619
7620 redhat73+srp:
7621 @echo "Building SECURE Kermit for Red Hat 7.3..."
7622 $(MAKE) linux+krb5+krb4+srp+openssl+zlib+shadow+pam \
7623 KTARGET=$${KTARGET:-$(@)} "KFLAGS = -DRH73 $(KFLAGS)"
7624
7625 #Red Hat Linux 7.2 - full install includes Kerberos 5 (4 compat), PAM, SSL.
7626 #Also works around bug in curses in which terminal goes dead after
7627 #returning from file-transfer display.
7628 redhat72:
7629 @echo "Building SECURE Kermit for Red Hat 7.2..."
7630 $(MAKE) linux+krb5+krb4+openssl+zlib+shadow+pam \
7631 KTARGET=$${KTARGET:-$(@)} "KFLAGS = -DRH72 $(KFLAGS)"
7632
7633 redhat72+srp:
7634 @echo "Building SECURE Kermit for Red Hat 7.2..."
7635 $(MAKE) linux+krb5+krb4+srp+openssl+zlib+shadow+pam \
7636 KTARGET=$${KTARGET:-$(@)} "KFLAGS = -DRH72 $(KFLAGS)"
7637
7638 #Red Hat Linux 7.1 - full install includes Kerberos 5 (4 compat), PAM, SSL.
7639 #Also works around bug in curses in which terminal goes dead after
7640 #returning from file-transfer display.
7641 redhat71:
7642 @echo "Building SECURE Kermit for Red Hat 7.1..."
7643 $(MAKE) linux+krb5+krb4+openssl+zlib+shadow+pam \
7644 KTARGET=$${KTARGET:-$(@)} "KFLAGS = -DRH71 $(KFLAGS)"
7645
7646 redhat71+srp:
7647 @echo "Building SECURE Kermit for Red Hat 7.1..."
7648 $(MAKE) linux+krb5+krb4+srp+openssl+zlib+shadow+pam \
7649 KTARGET=$${KTARGET:-$(@)} "KFLAGS = -DRH71 $(KFLAGS)"
7650
7651 #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.2, OpenSSL
7652 # with ZLIB and PAM and Shadow passwords
7653 linux+krb5+openssl+zlib+shadow+pam:
7654 @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB5,SSL...'
7655 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
7656 "CFLAGS = -g -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
7657 -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 -DCK_SHADOW -DHAVE_PTMX \
7658 -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL -DCK_PAM -DZLIB \
7659 -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
7660 $(K5INC) $(K5INC)/krb5 $(SSLINC) \
7661 $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
7662 "LIBS = $(K5LIB) $(SSLLIB) \
7663 -lm -lncurses -ltermcap -lssl -lcrypto -lgssapi_krb5 \
7664 -lkrb5 -lcom_err -lk5crypto -lcrypt -lresolv -lpam -ldl -lz"
7665
7666 # "make linuxnotcp" with lcc (see http://www.cs.princeton.edu/software/lcc)
7667 # lcc does not understand various gcc extensions:
7668 # "__inline__" -- can be eliminated by adding "-D__inline__="
7669 # "__asm__ and "long long" -- in header files, should be surrounded by
7670 # "#ifndef(__STRICT_ANSI__)"/"#endif"
7671 # however, TCP requires some __asm__ functions, so cannot be compiled
7672 linuxnotcp-lcc:
7673 @echo 'Making C-Kermit $(CKVER) for Linux with lcc ...'
7674 @echo 'Read comments in makefile for additional information.'
7675 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC = lcc" "CC2 = lcc" \
7676 "CFLAGS = -DLINUX -DPOSIX -DCK_CURSES -DCK_POSIX_SIG \
7677 -UTCPSOCKET -DLINUXFSSTND -DNOLEARN $(KFLAGS)" \
7678 "LNKFLAGS = $(LNKFLAGS)" "LIBS = -lcurses -ltermcap"
7679
7680 # Linux 0.99.14 thru 1.0 with gcc, dynamic libraries, curses, TCP/IP.
7681 # For Linux 1.2 or later, use "make linux" (above).
7682 #
7683 # -DLINUXFSSTND (Linux File System Standard) gives UUCP lockfile /var/lock with
7684 # string pid. Remove this and get /usr/spool/uucp with int pid, which was used
7685 # in early Linux versions.
7686 #
7687 # If you get compiler errors regarding <linux/serial.h>, add -DNOHISPEED.
7688 #
7689 # -DCK_POSIX_SIG (POSIX signal handling) is good for Linux releases back to at
7690 # least 0.99.14; if it causes trouble for you, just remove it.
7691 #
7692 # -DCK_CURSES: Here we link with the regular curses library. But you should
7693 # be using ncurses. Internally, the ckuusx.c module includes <curses.h>, but
7694 # this really should be <ncurses.h>. Thus if you have the new curses
7695 # material, you should either install it with the standard names, or else
7696 # create symbolic links from the standard names to the new ones. If you get
7697 # compile-time errors complaining about data definitions in termcap.h, it
7698 # means you have new kernel material mixed with older libc header files. To
7699 # fix, add "#include <termios.h>" to the <termcap.h> file. Or if all this is
7700 # too confusing, create a new makefile entry based on this one, but with
7701 # -DCK_CURSES removed from CFLAGS and the entire LIBS= clause removed.
7702 #
7703 # But wait, there's more. On most Linux systems, -ltermcap must be included
7704 # in LIBS. But on others, the linker complains that libtermcap can't be
7705 # found. In that case, try removing -ltermcap from LIBS=.
7706 #
7707 # But wait, there's more. The format of the PID string in the UUCP lockfile
7708 # changed between Linux FSSTND 1.0 and 1.2. In the earlier standard, it had
7709 # leading zeros; in the second, it has leading spaces. By default this entry
7710 # uses the newer standard. To force the older one, add -DFSSTND10.
7711 #
7712 # "The nice thing about the Linux standard is there are so many to choose from"
7713 #
7714 # NOTE: Remove -DBIGBUFOK for small-memory or limited-resource systems.
7715 linux10:
7716 @echo 'Making C-Kermit $(CKVER) for Linux 1.0 or earlier...'
7717 @echo 'IMPORTANT: Read the comments in the linux section of the'
7718 @echo 'makefile if you get compilation or link errors.'
7719 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
7720 "CFLAGS = -O -DPOSIX -DCK_CURSES -DCK_POSIX_SIG -DLINUX \
7721 -DTCPSOCKET -DLINUXFSSTND -DOLINUXHISPEED -DNOLEARN $(KFLAGS)" \
7722 "LNKFLAGS = $(LNKFLAGS)" "LIBS = -lcurses -ltermcap"
7723
7724 #This version was used for Linux prior to C-Kermit 6.0.192.
7725 #Now the "Linux File System Standard" is considered standard, ditto TCP/IP.
7726 linuxold:
7727 @echo 'Making C-Kermit $(CKVER) for Linux...'
7728 @echo 'For FSSTND-recommended UUCP lockfiles, use:'
7729 @echo ' make linux "KFLAGS=-DLINUXFSSTND".'
7730 @echo 'Read comments in makefile for additional options.'
7731 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
7732 "CFLAGS = -O -DLINUX -DPOSIX -DCK_CURSES -DCK_POSIX_SIG -DNOLEARN \
7733 $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" "LIBS = -lcurses -ltermcap"
7734
7735 # ::END_OLD_LINUX_TARGETS::
7736
7737 # LynxOS 2.2 with GCC compiler, TCP/IP and fullscreen display.
7738 # Probably also works with Lynx 2.1, and maybe even Lynx 2.0.
7739 # -X means use termios serial drivers rather than BSD4.3-style sgtty drivers.
7740 # If you have trouble with this, try "make bsd KFLAGS=-DNOFDZERO".
7741 lynx:
7742 @echo 'Making C-Kermit $(CKVER) for LynxOS 2.2 with TCP/IP'
7743 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
7744 "CFLAGS= -O -DPOSIX -DDIRENT -DSETREUID -DCK_CURSES -DTCPSOCKET \
7745 -DCK_ANSIC -DLYNXOS -DNOLEARN" "LNKFLAGS = -X" "LIBS = -lcurses -lbsd"
7746
7747 lynx22:
7748 $(MAKE) lynx KTARGET=$${KTARGET:-$(@)} "KFLAGS=$(KFLAGS)"
7749
7750 # LynxOS 2.1 with GCC compiler 1.40 and TCP/IP.
7751 lynx21:
7752 @echo 'Making C-Kermit $(CKVER) for LynxOS 2.1 with TCP/IP'
7753 $(MAKE) kermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
7754 "CFLAGS= -O -DSETREUID -DTCPSOCKET -DCK_ANSIC -DBSD4 -DLYNXOS" \
7755 "LIBS = -lbsd"
7756
7757 #SCO Xenix 2.2.1 for IBM PC, XT, PS2/30, or other 8088 or 8086 machine
7758 #Should this not work, try some of the tricks from sco286.
7759 #NOTE: -DRENAME is omitted for early SCO Xenix releases because it didn't
7760 #exist, or its semantics were different from the later POSIX-compliant
7761 #version of rename().
7762 sco86:
7763 @echo 'Making C-Kermit $(CKVER) for SCO Xenix/86...'
7764 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
7765 "CFLAGS= -DXENIX -DNOFILEH -DNOIKSD -DNOUNICODE -DNOLEARN \
7766 $(KFLAGS) -Dunix -F 3000 -i -M0me" \
7767 "LNKFLAGS = -F 3000 -i -s -M0me" "LIBS = -lx"
7768
7769 #SCO Xenix/286 2.2.1, e.g. for IBM PC/AT, PS/2 Model 50, etc.
7770 #Reportedly, this "make" can fail simply because of the size of this
7771 #makefile. If that happens, use "makeL", or edit out some of the
7772 #other entries. No debugging or character-set translation.
7773 sco286:
7774 @echo 'Making C-Kermit $(CKVER) for SCO Xenix/286...'
7775 @echo 'If make fails, try using makeL.'
7776 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
7777 "CFLAGS= -xenix -s -O -LARGE -DXENIX -DNOFILEH -Dunix -DRDCHK -DNAP \
7778 -DNOIKSD -DNODEBUG -DNOTLOG -DNOCSETS -DNOLEARN \
7779 $(KFLAGS) -F 3000 -i -M2let16" \
7780 "LIBS = -lx" "LNKFLAGS = -xenix -s -O -LARGE -F 3000 -i -M2let16"
7781
7782 #SCO Xenix/286 2.2.1, e.g. for IBM PC/AT, PS/2 Model 50, etc.
7783 #As above, but with HDBUUCP (This one might need fixing -- see sco286).
7784 sco286hdb:
7785 @echo 'Making C-Kermit $(CKVER) for SCO Xenix/286 with HDB UUCP...'
7786 @echo 'If make fails, try using makeL.'
7787 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
7788 "CFLAGS= -s -O -LARGE -DXENIX -DNOFILEH -Dunix -DRDCHK -DNAP \
7789 -DHDBUUCP -DNOIKSD -DNOUNICODE -DNOLEARN \
7790 $(KFLAGS) -F 3000 -i -M2let32" \
7791 "LIBS = -lx" "LNKFLAGS = -s -O -LARGE -F 3000 -i -M2let32"
7792
7793 #SCO Xenix/386 2.2.2 and 2.2.3
7794 sco386:
7795 @echo 'Making C-Kermit $(CKVER) for SCO Xenix/386 2.2.2...'
7796 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
7797 "CFLAGS= -DXENIX -DNOFILEH -DNOIKSD -DNOREDIRECT -DNOLEARN \
7798 -Dunix -DRDCHK -DNAP -DNOUNICODE $(KFLAGS) -Otcl -M3e" \
7799 "LNKFLAGS = -s" "LIBS = -lx"
7800
7801 #SCO XENIX/386 2.2.3 with Excelan TCP/IP + curses.
7802 # NOTE: This one might need some work in C-Kermit 6.0.
7803 # You might need to include /usr/include/sys/types.h
7804 # containing "typedef char *caddr_t;". Then at least it compiles.
7805 sco386netc:
7806 @echo 'Making C-Kermit $(CKVER) for SCO Xenix/386 2.2.3 + Excelan TCP'
7807 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
7808 "CFLAGS= -I/usr/include/exos -DXENIX -DCK_CURSES -DNOUNICODE \
7809 -Dunix -DRDCHK -DNAP -DTCPSOCKET -DEXCELAN -DNOJC -DNOMKDIR -DNOFILEH \
7810 -DNOLEARN -DNOREDIRECT -DNOIKSD -DNO_DNS_SRV $(KFLAGS) -Otcl -M3e" \
7811 "LNKFLAGS = -s" "LIBS = -lc -lx -lsocket -lcurses -ltermcap"
7812
7813 #SCO XENIX/386 2.3.3 with gcc 1.37 or later...
7814 sco386gcc:
7815 @echo 'Making C-Kermit $(CKVER) for SCO Xenix/386 2.3.3, gcc...'
7816 @echo 'Add -D_NO_PROTOTYPE if you have trouble with Xenix header files'
7817 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
7818 "CFLAGS= -O -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP \
7819 -DNOJC -DNODEBUG -DNOUNICODE -DNOLEARN $(KFLAGS) \
7820 -traditional -fpcc-struct-return -fstrength-reduce \
7821 -DM_BITFIELDS -DM_COFF -DM_I386 -DM_I86 -DM_I86SM \
7822 -DM_INTERNAT -DM_SDATA -DM_STEXT -DM_SYS3 -DM_SYS5 \
7823 -DM_SYSIII -DM_SYSV -DM_WORDSWAP -DM_XENIX -DNOIKSD -DNOREDIRECT \
7824 -DPWID_T=int " "LNKFLAGS = -s" "LIBS = -lx"
7825
7826 #As above, but with curses...
7827 sco386gccc:
7828 @echo 'Making C-Kermit $(CKVER) for SCO Xenix/386 2.3.3, gcc...'
7829 @echo 'Add -D_NO_PROTOTYPE if you have trouble with Xenix header files'
7830 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
7831 "CFLAGS= -O -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP \
7832 -DNOJC -DNODEBUG -DCK_CURSES -DNOUNICODE -DNOLEARN $(KFLAGS) \
7833 -traditional -fpcc-struct-return -fstrength-reduce \
7834 -DM_BITFIELDS -DM_COFF -DM_I386 -DM_I86 -DM_I86SM -DNOREDIRECT \
7835 -DM_INTERNAT -DM_SDATA -DM_STEXT -DM_SYS3 -DM_SYS5 \
7836 -DM_SYSIII -DM_SYSV -DM_WORDSWAP -DM_XENIX -DNOIKSD \
7837 -DPWID_T=int " "LNKFLAGS = -s" "LIBS = -lx -lcurses -ltermlib"
7838
7839 #SCO UNIX (and ODT) entries...
7840 #
7841 #NOTE: All SCO UNIX entry LIBS should have "-lc_s -lc -lx" IN THAT ORDER (if
7842 #shared C library is desired), or else "-lc -lx" IN THAT ORDER. Use shared C
7843 #libraries to save memory, but then don't expect to run the resulting binary
7844 #on a different machine. When using -lc_s, you must also use -lc, because the
7845 #shared C library does not contain all of libc.a. And in all cases, -lc must
7846 #ALWAYS precede -lx.
7847 #
7848 #ANOTHER NOTE: -DRENAME is included in all SCO UNIX entries. Remove it if it
7849 #causes trouble. No harm is done by removing it (see ckuins.txt).
7850 #
7851 #AND ANOTHER: In theory, it should be possible to run SCO UNIX binaries on
7852 #SCO Xenix 2.3 and later. In practice, this might not work because of the
7853 #libraries, etc. Also, don't add the -link -z switch (which is supposed to
7854 #root out references to null pointers) because it makes UNIX binaries core
7855 #dump when they are run under Xenix.
7856
7857 #NOTE: -Otcl removed and replaced by -O, since -Otcl produced incorrect code.
7858 #SCO UNIX/386 3.2.0, 3.2.1, and SCO Xenix 2.3.x
7859 sco3r2:
7860 @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2.0 or 3.2.1 ...'
7861 @echo 'Warning: If make blows up, edit the makefile to join'
7862 @echo 'the following three continued lines into one line.'
7863 @echo 'Also, remove -DRENAME if _rename unresolved at link time.'
7864 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
7865 "CFLAGS= -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP -DNOLEARN \
7866 -DRENAME -DNOIKSD -DNOJC $(KFLAGS) -O" \
7867 "LNKFLAGS = -s" "LIBS = -lc -lx"
7868
7869 #SCO UNIX/386 3.2.0 and SCO Xenix 2.3.x with Excelan TCP/IP support.
7870 #In case of compilation or runtime problems, try adding
7871 #"-DUID_T=int -DGID_T=int" to the CFLAGS. If that doesn't work, try
7872 #"-DUID_T=uid_t -DGID_T=gid_t".
7873 sco3r2net:
7874 @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 / Excelan...'
7875 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
7876 "CFLAGS= -I/usr/include/exos -DXENIX -DSVR3 -DNOFILEH -DNOLEARN \
7877 -DHDBUUCP -DRDCHK -DNAP -DRENAME -DTCPSOCKET -DEXCELAN -DNOJC \
7878 -DNOIKSD -DNOREDIRECT $(KFLAGS) -O" \
7879 "LNKFLAGS = -s" "LIBS = -lc -lx -lsocket"
7880
7881 #SCO UNIX/386 3.2.0 and SCO Xenix 2.3.x with Excelan TCP/IP support.
7882 #As above, with curses added.
7883 sco3r2netc:
7884 @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 / Excelan / curses...'
7885 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
7886 "CFLAGS= -I/usr/include/exos -DXENIX -DSVR3 -DNOFILEH -DNOLEARN \
7887 -DHDBUUCP -DRDCHK -DNAP -DTCPSOCKET -DEXCELAN -DNOJC $(KFLAGS) \
7888 -DRENAME -DCK_CURSES -DNOREDIRECT -DNOIKSD -O" "LNKFLAGS = -s" \
7889 "LIBS = -lc -lx -lsocket -lcurses -ltermcap"
7890
7891 #SCO UNIX 3.2.x or SCO Xenix 2.3.x with Racal InterLan TCP/IP support
7892 # Extra compile flags for other version of Racal InterLan TCP/IP:
7893 # Xenix286/NP621-286, use -Ml -DPARAMH -DINTERLAN -Di286 -DSYSV
7894 # Xenix386/NP621-386, use -DPARAMH -DINTERLAN -Di386 -DSYSV
7895 # ISC386ix/NP622I, use -DSYSV -Di386
7896 # SCO Unix3.2/NP622S, use -DSYSV -Di386 -DSCO_UNIX
7897 # AT&T SVR3.2/NP622A, use -DSYSV -Di386 -DATT
7898 sco3r2netri:
7899 @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 / Racal InterLan...'
7900 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
7901 "CFLAGS= -I/usr/include/interlan -DXENIX -DNOFILEH -DHDBUUCP \
7902 -DSVR3 -DRDCHK -DNAP -DTCPSOCKET -DPARAMH -DINTERLAN -Di386 -DSYSV \
7903 -DRENAME -DNOREDIRECT -DNOIKSD -DNOJC -DNOLEARN $(KFLAGS) -Otcl -M3e" \
7904 "LNKFLAGS = -s" "LIBS = -lc -lx -ltcp"
7905
7906 # SCO XENIX/386 2.3.3 SysV with SCO TCP/IP
7907 # System V STREAMS TCP developed by Lachman Associates Inc and
7908 # Convergent Technologies.
7909 # -DRENAME removed since some reports indicate it is not supported
7910 # (whereas others say it is.)
7911 sco3r2lai:
7912 @echo 'Making C-Kermit $(CKVER) for SCO XENIX/386 2.3.3 + TCP/IP...'
7913 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
7914 "CFLAGS= -DLAI_TCP -Di386 -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK \
7915 -DNAP -DTCPSOCKET -DPWID_T=int -DNOREDIRECT -DNOIKSD -DNOLEARN \
7916 $(KFLAGS) -Otcl -i -M3e" \
7917 "LNKFLAGS = -i -s" "LIBS = -lc -lx -lsocket"
7918
7919 sco3r2laic:
7920 @echo 'Making C-Kermit $(CKVER) for SCO XENIX/386 2.3.3 + TCP/IP...'
7921 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
7922 "CFLAGS= -DLAI_TCP -Di386 -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK \
7923 -DNAP -DTCPSOCKET -DCK_ANSIC -DCK_CURSES -DM_TERMINFO -DNOLEARN \
7924 -DPWID_T=int -DNOREDIRECT -DNOIKSD $(KFLAGS) -Otcl -i -M3e" \
7925 "LNKFLAGS = -i -s" "LIBS = -ltinfo -lc -lx -lsocket"
7926
7927 #SCO UNIX/386 3.2v2 (POSIX job control), shared libraries.
7928 sco3r22:
7929 @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v2 ...'
7930 make wermit KTARGET=$${KTARGET:-$(@)} \
7931 "CFLAGS= -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNOLEARN \
7932 -DNAP -DRENAME -DPID_T=pid_t -DPWID_T=int -DDIRENT -DNOIKSD \
7933 -DNOREDIRECT $(KFLAGS) -O" \
7934 "LNKFLAGS = -s" "LIBS = -lc_s -lc -lx"
7935
7936 #SCO UNIX/386 3.2v2, POSIX job control, fullscreen file transfer display,
7937 #dynamic memory allocation, shared C library
7938 sco3r22c:
7939 @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v2 ...'
7940 @echo 'Warning: If make blows up, edit the makefile to join'
7941 @echo 'the following four continued lines into one line.'
7942 make wermit KTARGET=$${KTARGET:-$(@)} \
7943 "CFLAGS= -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP -DNOLEARN \
7944 -DCK_CURSES -DDIRENT -DRENAME -DNOREDIRECT -DNOIKSD \
7945 -DPID_T=pid_t -DPWID_T=int $(KFLAGS) -O" \
7946 "LNKFLAGS = -s" "LIBS = -lcurses -lc_s -lc -lx"
7947
7948 #SCO UNIX/386 3.2v2 with gcc 1.40 or later (POSIX job control)
7949 sco3r22gcc:
7950 @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v2, gcc'
7951 @echo 'Warning: If make blows up, edit the makefile to join'
7952 @echo 'the following seven continued lines into one line.'
7953 make wermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" \
7954 "CFLAGS= -O -DPOSIX -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP \
7955 -DNOLEARN -DRENAME -traditional -fpcc-struct-return -fstrength-reduce \
7956 -DM_BITFIELDS -DM_COFF -DM_I386 -DM_I86 -DM_I86SM \
7957 -DM_INTERNAT -DM_SDATA -DM_STEXT -DM_SYS3 -DM_SYS5 \
7958 -DM_SYSIII -DM_SYSV -DM_UNIX -DM_WORDSWAP -DM_XENIX -Dunix \
7959 -DPID_T=pid_t -DPWID_T=int -DNOREDIRECT -DNOIKSD $(KFLAGS) " \
7960 "LNKFLAGS = -s" "LIBS = -lc_s -lc -lx"
7961
7962 #SCO UNIX/386 3.2v2 (ODT 1.1) (POSIX job control) with SCO TCP/IP, shared libs
7963 #Requires SCO TCP/IP or ODT development system for telnet.h, etc.
7964 sco3r22net:
7965 @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2.2 + TCP/IP...'
7966 @echo 'Warning: If make blows up, edit the makefile to join'
7967 @echo 'the following three continued lines into one line.'
7968 make xermit KTARGET=$${KTARGET:-$(@)} \
7969 "CFLAGS= -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP -DTCPSOCKET \
7970 -DRENAME -DPID_T=pid_t -DPWID_T=int -DDIRENT -DNOREDIRECT -DNOIKSD \
7971 $(KFLAGS) -O" "LNKFLAGS = -s" "LIBS = -lsocket -lc_s -lc -lx"
7972
7973 #As above, but with curses for fullscreen file transfer display.
7974 #Requires SCO TCP/IP or ODT development system for telnet.h, etc.
7975 sco3r22netc:
7976 @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v2 + TCP/IP...'
7977 @echo 'Warning: If make blows up, edit the makefile to join'
7978 @echo 'the following three continued lines into one line.'
7979 make xermit KTARGET=$${KTARGET:-$(@)} "CFLAGS= \
7980 -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP -DTCPSOCKET -DRENAME \
7981 -DCK_CURSES -DDIRENT -DNOIKSD -DNOREDIRECT \
7982 -DPID_T=pid_t -DPWID_T=int -O $(KFLAGS)" \
7983 "LNKFLAGS = -s" "LIBS = -lcurses -lsocket -lc_s -lc -lx"
7984
7985 #SCO XENIX 2.3.4, no curses, no TCP/IP, no IKSD.
7986 #This one built and tested in C-Kermit 7.0.
7987 #lcfp is C library floating-point support.
7988 #Use -M3 to generate 32-bit i386 code instead of 16-bit segmented i286 code.
7989 #Use -Me to enable MS nonstandard keywords in system headers.
7990 #Use -W2 or W3 to increase the warning level.
7991 #OK: 2011/06/15
7992 sco234:
7993 @echo 'Making C-Kermit $(CKVER) for SCO XENIX 2.3.4...'
7994 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
7995 "CFLAGS= -DSCO32 -DXENIX -DNOFILEH -DHDBUUCP -DRDCHK -DNOLEARN \
7996 -DNAP -DNOJC -DNOCOTFMC -DNOIKSD -DNOREDIRECT -DNOTNCODE -DNOGFTIMER \
7997 -DNOTIMEVAL -DNOTIMEZONE -DNOSYMLINK -DSCO234 -DDCLGETCWD $(KFLAGS) \
7998 -Otcl" "LNKFLAGS = -s" "LIBS = -lcfp -lc -lx"
7999
8000 #SCO XENIX 2.3.4, no TCP/IP, no IKSD, but with curses.
8001 # Built and tested in C-Kermit 7.0.
8002 # Note: XENIX 2.3.4 does not have newterm() so no point in adding -DCK_NEWTERM.
8003 sco234c:
8004 @echo 'Making C-Kermit $(CKVER) for SCO XENIX 2.3.4 + curses...'
8005 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
8006 "CFLAGS= -DSCO32 -DXENIX -DNOFILEH -DHDBUUCP -DRDCHK -DNOLEARN \
8007 -DNAP -DNOJC -DNOCOTFMC -DNOIKSD -DNOREDIRECT -DNOTNCODE -DNOGFTIMER \
8008 -DNOTIMEVAL -DNOTIMEZONE -DNOSYMLINK -DCK_CURSES -DSCO234 \
8009 -DDCLGETCWD $(KFLAGS) -Otcl" \
8010 "LNKFLAGS = -s" "LIBS = -lcfp -lc -ltinfo -lx"
8011
8012 #SCO XENIX 2.3.4 with SCO TCP/IP and curses, no IKSD.
8013 # Built and tested in C-Kermit 7.0. TCP/IP works and curses works.
8014 # Previous versions of this target included -lmalloc, but this caused "error:
8015 # " _calloc : symbol defined more than once" at link time so I removed it.
8016 # Results are likely to vary depending on exactly which version of the SDK
8017 # and TCP/IP SDK you have.
8018 sco234netc:
8019 @echo 'Making C-Kermit $(CKVER) for SCO XENIX 2.3.4 + TCP + curses...'
8020 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
8021 "CFLAGS= -DSCO32 -DXENIX -DNOFILEH -DHDBUUCP -DRDCHK -DNOLEARN \
8022 -DNAP -DNOJC -DNOCOTFMC -DNOIKSD -DNOREDIRECT -DNOTNCODE -DNOGFTIMER \
8023 -DNOTIMEVAL -DNOTIMEZONE -DNOSYMLINK -DCK_CURSES -DSCO234 \
8024 -DDCLGETCWD -DTCPSOCKET -DNO_DNS_SRV $(KFLAGS) -Otcl" \
8025 "LNKFLAGS = -s" "LIBS = -ltinfo -lsocket -lcfp -lc -lx"
8026
8027 # SCO 3.2v4.x targets...
8028
8029 # NOTE: Add -DDCLPOPEN and/or -DDCLFDOPEN to anySCO 3.2v4.x non-gcc entries
8030 # that complain about fdopen() or popen() at compile time. They compile OK
8031 # without these flags as of July 1999. However, the gcc entries seem to
8032 # need them, at least for gcc 2.7.2.2.
8033
8034 # NOTE 2: To enable IKSD support, add:
8035 # -DCK_LOGIN -DNOGETUSERSHELL -DNOINITGROUPS
8036 # to CFLAGS (not tested).
8037
8038 #SCO UNIX/386 3.2v4 (POSIX job control), curses, ANSI C compilation,
8039 #<dirent.h> (EAFS) file system. Remove -lmalloc if it causes trouble. It was
8040 #put there to avoid core dumps caused by regular libc.a malloc. Add -J to make
8041 #all chars unsigned. This version uses select() for CONNECT and also has
8042 #high-precision timers and so might not work on non-TCP systems, in which case
8043 #sco32v4ns should be used instead.
8044 # If you get _ftime redefinition_ complaint, try adding -DODT30 to CFLAGS.
8045 sco32v4:
8046 @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v4...'
8047 make xermit KTARGET=$${KTARGET:-$(@)} \
8048 "CFLAGS= -DCK_SCO32V4 -DNOFILEH -DHDBUUCP -DCK_CURSES -DM_TERMINFO \
8049 -DNOANSI -DSELECT -DNOIKSD -DDCLGETCWD -NOLSTAT \
8050 -DNOLINKBITS -DDCLGETCWD $(KFLAGS) -O" \
8051 "LNKFLAGS = -s" "LIBS = -lcurses -lmalloc -lsocket -lc_s -lc -lx"
8052
8053 # As above, but with no dependence on sockets library or select().
8054 sco32v4ns:
8055 @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v4...'
8056 @echo 'No select() and no sockets library.'
8057 make wermit KTARGET=$${KTARGET:-$(@)} \
8058 "CFLAGS= -DCK_SCO32V4 -DNOFILEH -DHDBUUCP -DCK_CURSES -DM_TERMINFO \
8059 -DNOANSI -DNOIKSD -DNOGFTIMER -DCK_POLL -DNAP -DDCLGETCWD -DNOLSTAT \
8060 -DNOLINKBITS -DDCLGETCWD -DNOLEARN -O $(KFLAGS)" \
8061 "LNKFLAGS = -s" "LIBS = -lcurses -lmalloc -lc_s -lc -lx"
8062
8063 #SCO UNIX/386 3.2v4 (POSIX job control), TCP/IP, curses, ANSI C compilation,
8064 #<dirent.h> (EAFS) file system. With DIRENT, -lc must come before -lx.
8065 #Reportedly it's OK to add -DCK_REDIR and -DCK_WREFRESH, and to remove -lc_s.
8066 #Requires SCO TCP/IP development system or ODT for telnet.h, etc.
8067 #See sco32v4 above for additional comments.
8068 #NOTE: No more room for -Dxxx -- 25 seems to be the limit. Move some to
8069 #ckcdeb.h or somewhere...
8070 sco32v4net:
8071 @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v4...'
8072 @echo 'If you get _ftime redefinition_ complaint,'
8073 @echo 'use make sco-odt30.'
8074 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
8075 "CFLAGS= -DNOFILEH -DHDBUUCP -DTCPSOCKET -DCK_ANSIC -DCK_CURSES \
8076 -DNAP -DCK_WREFRESH -DNOLINKBITS -D_IBCS2 -DSELECT -DNOLSTAT \
8077 -DDCLGETCWD -DCK_SCO32V4 -DNOIKSD -O \
8078 $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS) -s" \
8079 "LIBS = $(LIBS) -lcurses -lsocket -lmalloc -lsocket -lc_s -lc -lx"
8080
8081 #SCO UNIX/386 3.2v4 with gcc 1.40 or later, POSIX job control.
8082 #Also see comments in sco32r4 entry.
8083 sco32v4gcc:
8084 make xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" \
8085 "CFLAGS= -O -DNOFILEH -DHDBUUCP -DNOANSI -DCK_CURSES -DM_TERMINFO \
8086 -traditional -fpcc-struct-return -fstrength-reduce -funsigned-char \
8087 -D_KR -D_NO_PROTOTYPE -D_SVID -DNOIKSD -DCK_SCO32V4 -DNOLINKBITS \
8088 -DM_BITFIELDS -DM_COFF -DM_I386 -DM_I86 -DM_I86SM -DSELECT -DNOLSTAT \
8089 -DM_INTERNAT -DM_SDATA -DM_STEXT -DM_SYS3 -DM_SYS5 -DDCLGETCWD \
8090 -DM_SYSIII -DM_SYSV -DM_UNIX -DM_WORDSWAP -DM_XENIX -Dunix \
8091 -DDCLPOPEN -DDCLFDOPEN $(KFLAGS) " \
8092 "LNKFLAGS = -s" "LIBS = -lcurses -lsocket -lc_s -lc -lx"
8093
8094 #SCO UNIX/386 3.2v4 (POSIX job control), TCP/IP, curses, ANSI C compilation,
8095 #Requires SCO TCP/IP or ODT development system for telnet.h, etc.
8096 #<dirent.h> (EAFS) file system. With DIRENT, -lc must come before -lx.
8097 #gcc 1.40 or later. Also see comments in sco32r4 entry.
8098 sco32v4netgcc:
8099 make xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2=gcc" \
8100 "CFLAGS= -O2 -DNOFILEH -DHDBUUCP -DSELECT -DNOLSTAT \
8101 -DNOANSI -DTCPSOCKET -DCK_CURSES -DM_TERMINFO \
8102 -D_KR -D_NO_PROTOTYPE -D_SVID -DNOIKSD -DCK_SCO32V4 -DNOLINKBITS \
8103 -DM_BITFIELDS -DM_COFF -DM_I386 -DM_I86 -DM_I86SM -DDCLGETCWD \
8104 -DM_INTERNAT -DM_SDATA -DM_STEXT -DM_SYS3 -DM_SYS5 \
8105 -DM_SYSIII -DM_SYSV -DM_UNIX -DM_WORDSWAP -DM_XENIX -Dunix \
8106 -DDCLPOPEN -DDCLFDOPEN $(KFLAGS)" \
8107 "LNKFLAGS = -s" "LIBS = -lcurses -lsocket -lc_s -lc -lx"
8108
8109 #As above but with bgcc BOUNDS CHECKING (for developers only). -lcheck has
8110 #bounds-checking replacements for malloc, memcpy, bcopy, etc, so must come
8111 #before -lsocket and -lc.
8112 sco32v4netbgcc:
8113 make xermit KTARGET=$${KTARGET:-$(@)} \
8114 "CC = bgcc -pipe -m386" "CC2=bgcc -pipe -m386" \
8115 "CFLAGS= -O1 -g -DNOFILEH -DHDBUUCP -DSELECT \
8116 -DNOANSI -DTCPSOCKET -DCK_CURSES -DM_TERMINFO \
8117 -D_KR -D_NO_PROTOTYPE -D_SVID -DNOIKSD -DCK_SCO32V4 -DNOLSTAT \
8118 -DM_BITFIELDS -DM_COFF -DM_I386 -DM_I86 -DM_I86SM -DNOLINKBITS \
8119 -DM_INTERNAT -DM_SDATA -DM_STEXT -DM_SYS3 -DM_SYS5 -DDCLGETCWD \
8120 -DM_SYSIII -DM_SYSV -DM_UNIX -DM_WORDSWAP -DM_XENIX -Dunix \
8121 -DDCLPOPEN -DDCLFDOPEN $(KFLAGS) " \
8122 "LNKFLAGS = -g" "LIBS = -lcurses -lcheck -lsocket -lx"
8123
8124 sco32v4netnd:
8125 @echo sco32v4net with no debug
8126 $(MAKE) "MAKE=$(MAKE)" sco32v4net KTARGET=$${KTARGET:-$(@)} \
8127 "KFLAGS=$(KFLAGS) -DNODEBUG -DNOTLOG" "LIBS=$(LIBS)"
8128
8129 sco3r2netnd:
8130 @echo sco32v4netnd built for SCO XENIX 2.3 under SCO UNIX...
8131 @echo requires copying /lib/386/Slibc.a to /lib/386/Slibc_s.a and
8132 @echo getting /lib/386/Slibsocket.a from a XENIX devkit.
8133 @echo WARNING: poll/CK_POLL supported only on XENIX 2.3.4
8134 echo For earlier XENIX systems, replace CK_POLL with RDCHK.
8135 $(MAKE) "MAKE=$(MAKE)" sco32v4netnd KTARGET=$${KTARGET:-$(@)} \
8136 "KFLAGS=$(KFLAGS) -x2.3 -DNORENAME -DNOSYMLINK" \
8137 "LNKFLAGS = $(LNKFLAGS) -x2.3" \
8138 "LIBS=-ldir -lcfp $(LIBS)"
8139
8140 #SCO UNIX/386 3.2v4 (POSIX job control), TCP/IP, curses, ANSI C compilation,
8141 #<dirent.h> (EAFS) file system. With DIRENT, -lc must come before -lx.
8142 #Reportedly it's OK to add -DCK_REDIR and -DCK_WREFRESH, and to remove -lc_s.
8143 #Requires SCO TCP/IP development system or ODT for telnet.h, etc.
8144 #See sco32v4 above for additional comments.
8145 # Note: "xermit" means use the select() version of the CONNECT module.
8146 sco32v4netx:
8147 @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v4...'
8148 @echo 'If you get _ftime redefinition_ complaint,'
8149 @echo 'use make sco-odt30.'
8150 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
8151 "CFLAGS= -DNOFILEH -DHDBUUCP -DTCPSOCKET -DCK_ANSIC -DCK_CURSES -DNAP \
8152 -DCK_WREFRESH -DNOLINKBITS -D_IBCS2 -DSELECT -DDCLGETCWD \
8153 -DCK_SCO32V4 -DNOIKSD -DNOLSTAT -O $(KFLAGS)" \
8154 "LNKFLAGS = $(LNKFLAGS) -s" \
8155 "LIBS = $(LIBS) -lcurses -lsocket -lmalloc -lsocket -lc_s -lc -lx"
8156
8157 sco32v4netndx:
8158 @echo sco32v4netx with no debug
8159 $(MAKE) "MAKE=$(MAKE)" sco32v4netx KTARGET=$${KTARGET:-$(@)} \
8160 "KFLAGS=$(KFLAGS) -DNODEBUG -DNOTLOG" "LIBS=$(LIBS)"
8161
8162 sco3r2netndx:
8163 @echo sco32v4netndx built for SCO XENIX 2.3 under SCO UNIX...
8164 @echo requires copying /lib/386/Slibc.a to /lib/386/Slibc_s.a and
8165 @echo getting /lib/386/Slibsocket.a from a XENIX devkit.
8166 @echo WARNING: poll/CK_POLL supported only on XENIX 2.3.4
8167 echo For earlier XENIX systems, replace CK_POLL with RDCHK.
8168 $(MAKE) "MAKE=$(MAKE)" sco32v4netndx KTARGET=$${KTARGET:-$(@)} \
8169 "KFLAGS=$(KFLAGS) -x2.3 -DNORENAME -DNOSYMLINK" \
8170 "LNKFLAGS = $(LNKFLAGS) -x2.3" \
8171 "LIBS=-ldir -lcfp $(LIBS)"
8172
8173 sco-odt30:
8174 @echo SCO ODT 3.0
8175 $(MAKE) "MAKE=$(MAKE)" sco32v4net KTARGET=$${KTARGET:-$(@)} \
8176 "KFLAGS=$(KFLAGS) -DODT30"
8177
8178 #SCO OpenServer 5.0 (SCO UNIX 3.2v5.0) with SCO development tools, no TCP/IP.
8179 #SCO OSR5 is much more like standard System V than previous SCO releases.
8180 #The SCO development tools include TCP/IP, so this target is only for creating
8181 #artificially limited versions of kermit required by site policy rather than
8182 #the operating system. NOSYSLOG is included because syslog() requires the
8183 #sockets library.
8184 sco32v500:
8185 @echo Making C-Kermit $(CKVER) for SCO OpenServer Release 5...
8186 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
8187 "CFLAGS= -O -DDIRENT -DHDBUUCP -DSVR4 -DCK_SCOV5 -DCK_RTSCTS \
8188 -DCK_CURSES -DCK_WREFRESH -DCK_NEWTERM -DSELECT -DSELECT_H \
8189 -DNOGETUSERSHELL -DNOLSTAT -DNOLINKBITS -DNOSYSLOG \
8190 -DNORLOGIN -DNO_PTY_XOPEN_SOURCE \
8191 $(KFLAGS)" \
8192 "LIBS=-lcurses $(LIBS)" "LNKFLAGS=$(LNKFLAGS)"
8193
8194 sco32v5:
8195 $(MAKE) "MAKE=$(MAKE)" "KFLAGS=$(KFLAGS)" sco32v500
8196
8197
8198 #SCO OpenServer 5.0 with networking, SCO development tools.
8199 #Networking libraries are now provided with the OS.
8200 sco32v500net:
8201 @echo Making C-Kermit $(CKVER) for SCO OpenServer Release 5...
8202 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
8203 "CFLAGS= -O -DDIRENT -DHDBUUCP -DSVR4 -DCK_SCOV5 -DCK_RTSCTS \
8204 -DCK_CURSES -DCK_WREFRESH -DCK_NEWTERM -DSELECT -DSELECT_H \
8205 -DNOGETUSERSHELL -DNOLSTAT -DNOLINKBITS -DTCPSOCKET \
8206 -DNORLOGIN -DNO_PTY_XOPEN_SOURCE \
8207 -DNO_DNS_SRV $(KFLAGS)" \
8208 "LIBS=-lcurses -lsocket $(LIBS)" "LNKFLAGS=$(LNKFLAGS)"
8209
8210 sco32v5net:
8211 $(MAKE) "MAKE=$(MAKE)" "KFLAGS=$(KFLAGS)" sco32v500net
8212
8213 #SCO OpenServer 5.0 with networking and OpenSSL, SCO development tools.
8214 #Networking libraries are now provided with the OS.
8215 sco32v500net+ssl:
8216 @echo Making C-Kermit $(CKVER) for SCO OSR5 with OpenSSL...
8217 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
8218 "CFLAGS= -O -DDIRENT -DHDBUUCP -DSVR4 -DCK_SCOV5 -DCK_RTSCTS \
8219 -DCK_CURSES -DCK_WREFRESH -DCK_NEWTERM -DSELECT -DSELECT_H \
8220 -DNOGETUSERSHELL -DNOLSTAT -DNOLINKBITS -DTCPSOCKET \
8221 -DNO_DNS_SRV -DCK_AUTHENTICATION -DCK_SSL -DCK_TRIGGER \
8222 -DNORLOGIN -DNO_PTY_XOPEN_SOURCE \
8223 $(SSLINC) $(SSLLIB) $(KFLAGS)" \
8224 "LIBS=$(SSLLIB) -lcurses -lsocket -lssl -lcrypto $(LIBS)" \
8225 "LNKFLAGS=$(LNKFLAGS)"
8226
8227 #SCO OpenServer 5.0 with gcc, no networking.
8228 #Note: NOSYSLOG required for non-net entries because it requires <socket.h>
8229 sco32v500gcc:
8230 @echo Using gcc...
8231 $(MAKE) "MAKE=$(MAKE)" sco32v500 CC=gcc CC2=gcc \
8232 KTARGET=$${KTARGET:-$(@)} "KFLAGS= $(KFLAGS)"
8233
8234 #SCO OpenServer 5.0 with networking, gcc.
8235 sco32v500netgcc:
8236 @echo TCP/IP networking added - using gcc...
8237 $(MAKE) "MAKE=$(MAKE)" sco32v500net CC=gcc CC2=gcc \
8238 KTARGET=$${KTARGET:-$(@)} "KFLAGS=$(KFLAGS)"
8239
8240 #SCO OpenServer 5.0 with networking, gcc, elf.
8241 sco32v500netgccelf:
8242 @echo TCP/IP networking added - using gcc, dynamic elf library
8243 $(MAKE) "MAKE=$(MAKE)" sco32v500net "CC=gcc" "CC2=gcc" \
8244 KTARGET=$${KTARGET:-$(@)} "KFLAGS=-O3 -belf" "LNKFLAGS=-belf"
8245
8246 sco32v502:
8247 $(MAKE) "MAKE=$(MAKE)" sco32v500 KTARGET=$${KTARGET:-$(@)} \
8248 "KFLAGS=-DSCO_OSR502 $(KFLAGS)"
8249
8250 #SCO OpenServer 5.0.2 with networking, SCO development tools.
8251 sco32v502net:
8252 @echo TCP/IP networking added...
8253 $(MAKE) "MAKE=$(MAKE)" sco32v500net KTARGET=$${KTARGET:-$(@)} \
8254 "KFLAGS=-b elf -DSCO_OSR502 $(KFLAGS)"
8255
8256 #SCO OpenServer 5.0.4 (SCO UNIX 3.2v5.0.4) with SCO development tools.
8257 #Like 5.0, but adds high serial speeds. First POSIX-based SCO version.
8258 #Note: the -O flag is deliberately omitted for /bin/cc (= /usr/ccs/bin/cc).
8259 sco32v504:
8260 @echo Making C-Kermit $(CKVER) for SCO OpenServer Release 5.0.4...
8261 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
8262 "CFLAGS= -DDIRENT -DHDBUUCP -DSVR4 -DCK_SCOV5 -DCK_RTSCTS \
8263 -DSCO_OSR504 -b elf -DPOSIX \
8264 -DCK_CURSES -DCK_WREFRESH -DCK_NEWTERM -DSELECT -DSELECT_H \
8265 -DNOGETUSERSHELL -DNOLSTAT -DNOLINKBITS -DNOSYSLOG $(KFLAGS)" \
8266 "LIBS=-lcurses $(LIBS)" "LNKFLAGS=$(LNKFLAGS)"
8267
8268 #SCO OpenServer 5.0.4 with gcc, no networking.
8269 sco32v504gcc:
8270 @echo Using gcc...
8271 $(MAKE) "MAKE=$(MAKE)" sco32v504 "CC=gcc" "CC2=gcc" \
8272 KTARGET=$${KTARGET:-$(@)} "KFLAGS= $(KFLAGS)"
8273
8274 #SCO OpenServer 5.0.4 with networking.
8275 #SCO development tools (/bin/cc = /usr/ccs/bin/cc).
8276 #Optimization deliberately suppressed.
8277 sco32v504net:
8278 @echo Making C-Kermit $(CKVER) for SCO OpenServer Release 5.0.4...
8279 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
8280 "CFLAGS= -DDIRENT -DHDBUUCP -DSVR4 -DCK_SCOV5 -DCK_RTSCTS \
8281 -DCK_CURSES -DCK_WREFRESH -DCK_NEWTERM -DSELECT -DSELECT_H \
8282 -DNOGETUSERSHELL -DNOLSTAT -DNOLINKBITS -DTCPSOCKET \
8283 -DNORLOGIN -DNO_PTY_XOPEN_SOURCE \
8284 -b elf -DSCO_OSR504 -DPOSIX -DNO_DNS_SRV $(KFLAGS)" \
8285 "LIBS=-lcurses -lsocket $(LIBS)" "LNKFLAGS=$(LNKFLAGS)"
8286
8287 #SCO OpenServer 5.0.4 with networking, gcc.
8288 sco32v504netgcc:
8289 @echo TCP/IP networking added - using gcc...
8290 $(MAKE) "MAKE=$(MAKE)" sco32v500net "CC=gcc" "CC2=gcc" \
8291 KTARGET=$${KTARGET:-$(@)} "KFLAGS=-DSCO_OSR504 -DPOSIX $(KFLAGS)"
8292
8293 #SCO OpenServer 5.0.4 with networking, gcc, elf.
8294 sco32v504netgccelf:
8295 @echo TCP/IP networking added - using gcc, dynamic elf library
8296 $(MAKE) "MAKE=$(MAKE)" sco32v500net "CC=gcc" "CC2=gcc"
8297 KTARGET=$${KTARGET:-$(@)} \
8298 "KFLAGS=-DSCO_OSR504 -DPOSIX -O3 -belf $(KFLAGS)" \
8299 LNKFLAGS="-belf"
8300
8301 #SCO OpenServer 5.0.5 (SCO UNIX 3.2v5.0.5) with SCO /bin/cc.
8302 #Like 5.0, but adds high serial speeds. First POSIX-based SCO version.
8303 #You might have to add "LIBS=-ltinfo" (some do, some don't).
8304 sco32v505:
8305 $(MAKE) "MAKE=$(MAKE)" sco32v500 KTARGET=$${KTARGET:-$(@)} \
8306 "KFLAGS=-DSCO_OSR505 -DNOSHADOW -b elf -DPOSIX $(KFLAGS)"
8307
8308 #SCO OpenServer 5.0.5 (SCO UNIX 3.2v5.0.5) with SCO UDK.
8309 #This one can't see the high serial speeds and anything to do with modem
8310 #signals doesn't work because UKD cc has its own alternative universe of
8311 #header files.
8312 sco32v505udk:
8313 $(MAKE) "MAKE=$(MAKE)" sco32v500 KTARGET=$${KTARGET:-$(@)} \
8314 "KFLAGS=-DSCO_OSR505 -DDCLTIMEVAL -DNOSHADOW -b elf -DPOSIX $(KFLAGS)"
8315
8316 #SCO OpenServer 5.0.5 with networking, SCO /bin/cc.
8317 #See comments with sco32v505 targets.
8318 sco32v505net:
8319 @echo TCP/IP networking added...
8320 $(MAKE) "MAKE=$(MAKE)" sco32v500net KTARGET=$${KTARGET:-$(@)} \
8321 "KFLAGS=-DSCO_OSR505 -DNOSHADOW -b elf -DPOSIX $(KFLAGS)"
8322
8323 #SCO OpenServer 5.0.5 with networking and OpenSSL, SCO /bin/cc.
8324 #See comments with sco32v505 targets.
8325 sco32v505net+ssl:
8326 @echo TCP/IP networking and OpenSSL added...
8327 $(MAKE) "MAKE=$(MAKE)" sco32v500net+ssl KTARGET=$${KTARGET:-$(@)} \
8328 "KFLAGS=-DSCO_OSR505 -DNOSHADOW -b elf -DPOSIX $(KFLAGS) " \
8329 "LIBS=$(SSLLIB) -lcurses -lsocket -lssl -lcrypto $(LIBS)" \
8330 "LNKFLAGS=$(LNKFLAGS)"
8331
8332 #SCO OpenServer 5.0.5 with networking, SCO UDK.
8333 #See comments with above sco32v505 targets.
8334 sco32v505udknet:
8335 @echo TCP/IP networking added...
8336 $(MAKE) "MAKE=$(MAKE)" sco32v500net KTARGET=$${KTARGET:-$(@)} \
8337 "KFLAGS=-DSCO_OSR505 -DNORLOGIN -DDCLTIMEVAL -DNOSHADOW \
8338 -b elf -DPOSIX $(KFLAGS)"
8339
8340 #SCO OpenServer 5.0.5 with gcc, no networking.
8341 sco32v505gcc:
8342 @echo Using gcc...
8343 $(MAKE) "MAKE=$(MAKE)" sco32v500 "CC=gcc" "CC2=gcc" \
8344 KTARGET=$${KTARGET:-$(@)} \
8345 "KFLAGS=-DSCO_OSR505 -DPOSIX -funsigned-char $(KFLAGS)"
8346
8347 #SCO OpenServer 5.0.5 with gcc, no networking, no shadow passwords.
8348 sco32v505xgcc:
8349 @echo Using gcc...
8350 $(MAKE) "MAKE=$(MAKE)" sco32v500 "CC=gcc" "CC2=gcc" \
8351 KTARGET=$${KTARGET:-$(@)} \
8352 "KFLAGS=-DSCO_OSR505 -DNOSHADOW -DPOSIX -funsigned-char $(KFLAGS)"
8353
8354 #SCO OpenServer 5.0.5 with networking, gcc.
8355 sco32v505netgcc:
8356 @echo TCP/IP networking added - using gcc...
8357 $(MAKE) "MAKE=$(MAKE)" sco32v500net "CC=gcc" "CC2=gcc" \
8358 KTARGET=$${KTARGET:-$(@)} \
8359 "KFLAGS=-DSCO_OSR505 -DNOSHADOW -DPOSIX -funsigned-char $(KFLAGS)"
8360
8361 #egcs is just like gcc but generates ELF by default.
8362 #Or you can include -melf (not -belf) to force it.
8363 sco32v505netegcs:
8364 $(MAKE) "MAKE=$(MAKE)" "KFLAGS=$(KFLAGS)" sco32v505netgcc \
8365 KTARGET=$${KTARGET:-$(@)}
8366
8367 #SCO OpenServer 5.0.5 with networking, gcc, elf.
8368 sco32v505netgccelf:
8369 @echo TCP/IP networking added - using gcc, dynamic elf library
8370 $(MAKE) "MAKE=$(MAKE)" sco32v500net "CC=gcc" "CC2=gcc" \
8371 "KFLAGS=-DSCO_OSR505 -DPOSIX -funsigned-char -O3 -belf $(KFLAGS)" \
8372 KTARGET=$${KTARGET:-$(@)} LNKFLAGS="-belf"
8373
8374 #SCO OpenServer 5.0.6 with SCO /bin/cc.
8375 # Add -DDCLTIMEVAL when building with UDK.
8376 #Like 5.0.5. IMPORTANT: Use sco32v506a target for 5.0.6a.
8377 sco32v506:
8378 $(MAKE) "MAKE=$(MAKE)" sco32v500 KTARGET=$${KTARGET:-$(@)} \
8379 "KFLAGS=-DSCO_OSR505 -DSCO_OSR506 -b elf -DPOSIX $(KFLAGS)"
8380
8381 #SCO OpenServer 5.0.6 with networking, SCO /bin/cc.
8382 # Add -DDCLTIMEVAL when building with UDK.
8383 # IMPORTANT: Use sco32v506a target for 5.0.6a.
8384 sco32v506net:
8385 @echo TCP/IP networking added...
8386 $(MAKE) "MAKE=$(MAKE)" sco32v500net KTARGET=$${KTARGET:-$(@)} \
8387 "KFLAGS=-DSCO_OSR505 -DSCO_OSR506 -b elf -DPOSIX $(KFLAGS)"
8388
8389 #SCO OpenServer 5.0.6a, no networking, SCO development tools.
8390 #This one has patched sio drivers that, for the first time,
8391 #actually handle modem signals correctly.
8392 # Add -DDCLTIMEVAL when building with UDK.
8393 sco32v506a:
8394 $(MAKE) "MAKE=$(MAKE)" sco32v500 KTARGET=$${KTARGET:-$(@)} \
8395 "KFLAGS=-DSCO_OSR505 -DSCO_OSR506 -DSCO_OSR506A -DNEEDMDMDEFS \
8396 -b elf -DPOSIX $(KFLAGS)"
8397
8398 #SCO OpenServer 5.0.6a with networking, SCO development tools.
8399 # Add -DDCLTIMEVAL when building with UDK.
8400 sco32v506anet:
8401 @echo TCP/IP networking added...
8402 $(MAKE) "MAKE=$(MAKE)" sco32v500net KTARGET=$${KTARGET:-$(@)} \
8403 "KFLAGS=-DSCO_OSR505 -DSCO_OSR506 -DSCO_OSR506A -DNEEDMDMDEFS \
8404 -b elf -DPOSIX $(KFLAGS)"
8405
8406 #SCO OpenServer 5.0.7, no networking, SCO development tools.
8407 #Adds flags to make PTY and SSH commands work. These have been tested
8408 #only in 5.0.7 but probably they can also be added to earlier OSR5 targets.
8409 sco32v507:
8410 $(MAKE) "MAKE=$(MAKE)" sco32v500 KTARGET=$${KTARGET:-$(@)} \
8411 "KFLAGS=-DSCO_OSR505 -DSCO_OSR506 -DSCO_OSR507 -DNEEDMDMDEFS \
8412 -DHAVE_PTSNAME -DHAVE_PTMX -DHAVE_GRANTPT \
8413 -b elf -DPOSIX $(KFLAGS)"
8414
8415 #SCO OpenServer 5.0.7 as above but with networking.
8416 sco32v507net:
8417 @echo TCP/IP networking added...
8418 $(MAKE) "MAKE=$(MAKE)" sco32v500net KTARGET=$${KTARGET:-$(@)} \
8419 "KFLAGS=-DSCO_OSR505 -DSCO_OSR506 -DSCO_OSR507 -DNEEDMDMDEFS \
8420 -DHAVE_PTSNAME -DHAVE_PTMX -DHAVE_GRANTPT \
8421 -b elf -DPOSIX $(KFLAGS)"
8422
8423 #SCO OpenServer 6 (new target 30 Jan 2006)
8424 sco_osr600 sco600:
8425 @echo Making C-Kermit $(CKVER) for SCO OpenServer 6.0.0...
8426 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
8427 "CFLAGS= -O -DDIRENT -DHDBUUCP -DSVR4 -DCK_SCOV5 -DCK_RTSCTS \
8428 -DCK_CURSES -DCK_WREFRESH -DCK_NEWTERM -DSELECT -DSELECT_H \
8429 -DNOGETUSERSHELL -DNOLSTAT -DNOLINKBITS -DTCPSOCKET \
8430 -DNO_DNS_SRV -DSCO_OSR505 -DSCO_OSR506 -DSCO_OSR507 -DNEEDMDMDEFS \
8431 -DHAVE_PTSNAME -DHAVE_PTMX -DHAVE_GRANTPT -DDCLTIMEVAL \
8432 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 \
8433 -DSOCKOPT_T=socklen_t -DGSOCKNAME_T=size_t -DGPEERNAME_T=size_t \
8434 -DHERALD=\"\\\" SCO OpenServer `uname -v`\\\"\" \
8435 -b elf -DPOSIX $(KFLAGS)" \
8436 "LIBS=-lcurses -lsocket $(LIBS)" "LNKFLAGS=$(LNKFLAGS)"
8437
8438 #Tandy 16/6000 with Xenix 3.0 (16 bits)
8439 #C-Kermit 7.0 (and later) do not build here; "too many defines".
8440 #Add more -DNOxxx options to remove features if program won't load.
8441 #Successful operation is a function of program size, physical memory,
8442 #available swap space, etc. The following stripped-down configuration
8443 #seems to work on most Tandy 6000s. NOTE: "-+" means allow long variable
8444 #names, needed for C-Kermit 6.0 because some identifiers are not unique
8445 #within the first six characters.
8446 trs16:
8447 @echo 'Making C-Kermit $(CKVER) for Tandy 16/6000, Xenix 3.0...'
8448 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
8449 "CFLAGS = -+ -DATTSV -DTRS16 -DNOMKDIR -DDCLPOPEN -DCK_CURSES \
8450 -DNODEBUG -DNOTLOG -DNOHELP -DNOSCRIPT -DNOCSETS -DNOIKSD \
8451 -DNOREDIRECT -DNOSYSLOG -DNOPUTENV -DNOREALPATH -DNOLEARN \
8452 $(KFLAGS) -O" "LIBS= -lcurses -ltermcap" "LNKFLAGS = -+ -n -s"
8453
8454 # QNX 4.21 and above, 32-bit version, Watcom C32 10.6, fully configured,
8455 # except no job control because QNX 4.x does not support it. New NCURSES
8456 # library used instead of CURSES.
8457 #
8458 # -Oatx optimizes to favor speed over size: loop optimization, inline fn's.
8459 # -Os favors size over speed. Saves 30-40K out of about 1.75M.
8460 # -3r = generate 386 code with register-based arg passing.
8461 # -3s = generate 386 code with stack-based arg passing.
8462 # -ms = separate code & data 4GB segments (32-bit builds only).
8463 # -mf = flat memory model code+data in one 4GB segment (ditto).
8464 # -zc = place literal strings in code segment.
8465 # -N4M = Big stack (increase the digit upon SIGSEGVs at runtime).
8466 # chars are unsigned by default (-j makes them signed by default).
8467 # -NOUUCP is included because QNX doesn't use it.
8468 # Add these to the end if you like but they dump core on my QNX 4.25 system:
8469 #
8470 # @wermit -h >use.qnx
8471 # @usemsg wermit use.qnx
8472 # @rm use.qnx
8473 #
8474 # If you get warnings about HEADER or C_IN add -DNO_DNS_SRV.
8475 # OK 2011/06/14
8476 qnx32:
8477 @echo 'Making C-Kermit $(CKVER) for QNX 4.2x, 32-bit...'
8478 $(MAKE) xermit \
8479 "LNKFLAGS = -N4M -3r" \
8480 "CFLAGS = -ms -3r -DQNX -DTCPSOCKET -DCK_CURSES -DNOGETUSERSHELL \
8481 -DCK_WREFRESH -DCK_REDIR -DSELECT -DSELECT_H -DCK_RTSCTS -DNOJC \
8482 -DNOINITGROUPS -DNOUUCP -DCK_ANSIC -DPID_T=pid_t -Oatx -zc $(KFLAGS)" \
8483 "LIBS= -lsocket -lncurses -ltermcap"
8484
8485 # As above but no networking since some QNX systems do not have TCP/IP
8486 # installed, or the TCP/IP developers kit, which includes all the needed
8487 # header files. This entry has not been tested on a QNX system that, in
8488 # fact, does not have TCP/IP installed; some adjustments might be necessary,
8489 # in particular regarding the use of select(): is -lsocket needed, can we
8490 # get the needed definitions from non-TCP/IP header files (FD_SET, etc)?
8491 qnx32nonet:
8492 @echo 'Making C-Kermit $(CKVER) for QNX 4.2x, 32-bit, no net...'
8493 $(MAKE) xermit \
8494 "LNKFLAGS = -N4M -3r" \
8495 "CFLAGS = -3r -ms -DQNX -DNONET -DNOIKSD -DCK_CURSES \
8496 -DCK_WREFRESH -DCK_REDIR -DSELECT -DSELECT_H -DCK_RTSCTS -DNOJC \
8497 -DNOUUCP -DCK_ANSIC -DPID_T=pid_t -Oatx -zc $(KFLAGS)" \
8498 "LIBS= -lsocket -lncurses -ltermcap"
8499 @wermit -h >use.qnx
8500 @usemsg wermit use.qnx
8501 @rm use.qnx
8502
8503 # Synonym for qnx32.
8504 qnx:
8505 $(MAKE) qnx32 "KFLAGS=$(KFLAGS)"
8506
8507 # QNX 4.21 and above, 16-bit version, Watcom C 8.5 - and higher on i286 PCs
8508 # and above.
8509 #
8510 # IMPORTANT: Do not use Watcom C 10.6!!!
8511 # If you have it installed, add "-v9.52 to CFLAGS"
8512 #
8513 # NOTE: QNX 4.23 onward does not work on 286's anyway.
8514 # Stacksize 26000, objects larger than 100 bytes in their own segments,
8515 # string constants to the codesegment, etc. Fully configured except job ctrl.
8516 # This entry works for building a 16-bit executable on a 32-bit system, but
8517 # has not been tested on a 16-bit system. Uses large memory model, links
8518 # explicitly with large-model sockets library. Correct-model curses library
8519 # is chosen automatically. See comment in qnx32 entry about -DNOUUCP.
8520 #
8521 # WARNING:
8522 #
8523 # Watcom C prior to 10.6 never had released curses library. To link against it,
8524 # you must obtain ported free curses source from ftp://ftp.qnx.com/usr/free,
8525 # then compile and build library (cursesl.lib) and place it in /usr/lib. You
8526 # must also copy curses.h to /usr/include. Be aware that if you have Watcom
8527 # 10.6 installed, you should already have curses.h, which is the new ncurses
8528 # library. You must back it up and use free curses.h instead, since ncurses is
8529 # only for 32-bit applications and some definitions in these files are
8530 # different (e.g., clearok()). For safety, curses is not defined in build.
8531 #
8532 # In 7.0 -DNOHELP added to keep ckuus2.c from blowing up; NOCSETS and NOSPL
8533 # added because ckuus4 was blowing up, and NOFLOAT just because it seemed
8534 # dangerous (remove -DNOFLOAT if you want to try it), The result works OK
8535 # except for some mysterious beeps upon termination of the top-level keyword.
8536 #
8537 # Things to try next time we get in trouble:
8538 # . Change -zt100 to something smaller like -zt25
8539 # . Change -Oatx to -Omilerat (enable stack checking)
8540 # . Maybe get rid of -v9.52 -- it's only there because we were warned.
8541 #
8542 qnx16:
8543 @echo 'Making C-Kermit $(CKVER) for QNX 4.21, 16-bit...'
8544 $(MAKE) xermit \
8545 "LNKFLAGS = -2 -ml -N 26000" \
8546 "CFLAGS = -2 -Oatx -zc -zt100 -ml -DQNX -DQNX16 -DNOUUCP -DNOHELP \
8547 -DCK_REDIR -DSELECT -DSELECT_H -DNOJC -DNOGETUSERSHELL -DNO_DNS_SRV \
8548 -v9.52 -DTCPSOCKET -DCK_RTSCTS -DCK_ANSIC -DNOINITGROUPS -DNOKVERBS \
8549 -DNORANDOM -DNOCSETS -DNOSPL -DNOFLOAT -DPID_T=pid_t $(KFLAGS)"
8550
8551 # QNX 4.1, 16-bit version, with Watcom C 8.5 on i286 PCs and above.
8552 # stacksize 26000, objects larger than 100 bytes in their own segments,
8553 # string constants to the codesegment, etc. Add -DNOUUCP if desired.
8554 qnx16_41:
8555 @echo 'Making C-Kermit $(CKVER) for QNX 4.1, 16-bit...'
8556 $(MAKE) xermit \
8557 "LNKFLAGS = -mh -N 26000" "CFLAGS = -Wc,-fpc -Wc,-j -DNOGETUSERSHELL \
8558 -Wc,-Ols -Wc,-zdf -Wc,-zc -Wc,-zt100 -mh -DPOSIX -DQNX -DDIRENT \
8559 -DNOCYRIL -DNODEBUG -DNOMSEND -DMINIDIAL -DNOXMIT -DNOSCRIPT -DNOSPL \
8560 -DNOSETKEY -DNOINITGROUPS -DQNX16 -DPID_T=pid_t $(KFLAGS)"
8561
8562 # QNX Neutrino 2 ([email protected]) crosscompiled on QNX 4.25.
8563 # Gets lots of compiler warnings.
8564 qnx_nto2+:
8565 @echo 'Making C-Kermit $(CKVER) for QNX Neutrino 2+ '
8566 $(MAKE) xermit \
8567 "CC = qcc -Vgcc_ntox86" \
8568 "CC2 = qcc -Vgcc_ntox86" \
8569 "LNKFLAGS = " \
8570 "CFLAGS = -DNEUTRINO -DTCPSOCKET -DCK_CURSES -DNOGETUSERSHELL \
8571 -DNOUUCP -DCK_WREFRESH -DCK_REDIR -DSELECT -DSELECT_H -DCK_RTSCTS \
8572 -DNOJC -DNOINITGROUPS -DCK_ANSIC -DPID_T=pid_t -DUNIX -DDIRENT \
8573 -DMYREAD -DBSD44ORPOSIX -DSVORPOSIX -DNDGPWNAM $(KFLAGS)" \
8574 "LIBS= -lsocket -lncurses "
8575
8576 # QNX 6 (= Neutrino 2.xx) native build ([email protected]).
8577 qnx6:
8578 @echo 'Making C-Kermit $(CKVER) for QNX6'
8579 $(MAKE) xermit KTARGET=QNX6 \
8580 "CFLAGS = -DPOSIX -DCK_POSIX_SIG -DNETPTY \
8581 -DUSE_TIOCSDTR -DBIGBUFOK -DCKMAXOPEN=100 -DRLOGCODE -DNOREALPATH \
8582 -DMAXNAMLEN=48 -DQNX6 -DUSE_TERMIO -DINIT_SPTY \
8583 -DCK_CURSES -DCK_WREFRESH -DCK_NEWTERM -DDYNAMIC \
8584 -DTCPSOCKET -DNOGETUSERSHELL -DCK_REDIR -DSELECT -DSELECT_H \
8585 -DCK_RTSCTS -DNOJC -DSVORPOSIX -DBSD44ORPOSIX -DNOUUCP -DCK_ANSIC \
8586 $(KFLAGS) -O" \
8587 "LIBS= -lsocket -lncurses -llogin"
8588
8589 # QNX 8.0 for Intel (x86_64) crosscompiled build
8590 qnx8i:
8591 @echo 'Making wart for host'
8592 $(MAKE) wart
8593 @echo 'Making C-Kermit $(CKVER) for QNX8'
8594 $(MAKE) xermit KTARGET=QNX6 \
8595 "CC = qcc -Vgcc_ntox86_64" \
8596 "CC2 = qcc -Vgcc_ntox86_64" \
8597 "CFLAGS = -DPOSIX -DCK_POSIX_SIG -DNETPTY -DHAVE_OPENPTY \
8598 -DUSE_TIOCSDTR -DBIGBUFOK -DCKMAXOPEN=100 -DRLOGCODE \
8599 -DMAXNAMLEN=48 -DQNX6 -DUSE_TERMIO -DINIT_SPTY -DFNFLOAT \
8600 -DCK_NCURSES -DCK_WREFRESH -DCK_NEWTERM -DDYNAMIC -DUSE_STRERROR \
8601 -DTCPSOCKET -DNOGETUSERSHELL -DCK_REDIR -DSELECT -DSELECT_H \
8602 -DCK_RTSCTS -DSVORPOSIX -DBSD44ORPOSIX -DCK_ANSIC \
8603 $(KFLAGS) -O" \
8604 "LIBS= -lsocket -lncurses -llogin -lm"
8605
8606 # QNX 8.0 for ARM (aarch64le) crosscompiled build
8607 qnx8a:
8608 @echo 'Making wart for host'
8609 $(MAKE) wart
8610 @echo 'Making C-Kermit $(CKVER) for QNX8'
8611 $(MAKE) xermit KTARGET=QNX6 \
8612 "CC = qcc -Vgcc_ntoaarch64le" \
8613 "CC2 = qcc -Vgcc_ntoaarch64le" \
8614 "CFLAGS = -DPOSIX -DCK_POSIX_SIG -DNETPTY -DHAVE_OPENPTY \
8615 -DUSE_TIOCSDTR -DBIGBUFOK -DCKMAXOPEN=100 -DRLOGCODE \
8616 -DMAXNAMLEN=48 -DQNX6 -DUSE_TERMIO -DINIT_SPTY -DFNFLOAT \
8617 -DCK_NCURSES -DCK_WREFRESH -DCK_NEWTERM -DDYNAMIC -DUSE_STRERROR \
8618 -DTCPSOCKET -DNOGETUSERSHELL -DCK_REDIR -DSELECT -DSELECT_H \
8619 -DCK_RTSCTS -DSVORPOSIX -DBSD44ORPOSIX -DCK_ANSIC \
8620 $(KFLAGS) -O" \
8621 "LIBS= -lsocket -lncurses -llogin -lm"
8622
8623 #MINIX/2.0 32 Bit version for intel 386+ running the POSIX-compliant MINIX
8624 # version 2.0 (The definition of fatal avoids a conflict with a symbol by
8625 # the same name in the curses library.) It is impossible to compile with
8626 # network support since Minix does not support Berkeley sockets.
8627 # Note: use chmem liberally on the compiler passes, make, and the final
8628 # kermit executable. (3 megabytes of memory for each is sufficient.)
8629 # From Terry McConnell, Syracuse U, and Will Rose. Will says:
8630 # The stacks for make and some compiler passes needed to be increased
8631 # with chmem as follows:
8632 # make 1MB
8633 # /usr/lib/em_cemcom.ansi 3MB
8634 # /usr/lib/em_opt 1MB
8635 # /usr/lib/i386/cg 1MB
8636 # /usr/lib/i386/as 1MB
8637 # The compiler temporary directory was set to /usr/tmp via the TMPDIR
8638 # environment variable; more than 1MB of temporary space was needed.
8639 # Kermit itself needs at least 1MB of stack.
8640 minix20:
8641 @echo 'Making C-Kermit $(CKVER) for MINIX 2.0/386...'
8642 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} EXT=o \
8643 "CFLAGS= -wo -DV7 -DMINIX2 -DMINIX -DSIG_V -D_POSIX_SOURCE \
8644 -DCKCPU=\\\"i-386\\\" -DNOIKSD -Dfatal=myfatal -DCK_CURSES -DNOLEARN \
8645 -DNOSYSLOG -DUSE_MEMCPY -DNOREALPATH $(KFLAGS)" "LIBS= -lcurses"
8646
8647 #MINIX/386 (PC Minix modified by Bruce Evans in Australia for 386 addressing)
8648 # For MINIX 1.5+ (but < 2.0)
8649 minix386:
8650 @echo 'Making C-Kermit $(CKVER) for MINIX/386...'
8651 @echo 'TOTALLY UNTESTED!'
8652 $(MAKE) wermit EXT=s KTARGET=$${KTARGET:-$(@)} \
8653 "CFLAGS= -DV7 -DMINIX -D_POSIX_SOURCE -DNOLEARN $(KFLAGS)"
8654
8655 #MINIX/386 Minix modified by Bruce Evans in Australia to use 386 addressing
8656 minix386gcc:
8657 @echo 'Making C-Kermit $(CKVER) for MINIX/386 with gcc...'
8658 @echo 'TOTALLY UNTESTED!'
8659 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC=gcc -g -O" "CC2=gcc -g" \
8660 "CFLAGS= -DV7 -DMINIX -D_POSIX_SOURCE -DNOLEARN $(KFLAGS)"
8661
8662 #MINIX - 68k version with ACK compiler.
8663 # The version configured below has many features removed, including
8664 # the TRANSMIT, MSEND, HELP, and SCRIPT commands, international
8665 # character set support, and the entire script programming language.
8666 # But it does have an interactive command parser.
8667 # Make sure make(1) has (at least) 100000 chmemory!
8668 # If you are using the Amsterdam C compiler, you might have to add "-D__ACK__".
8669 minix68k:
8670 @echo 'Making C-Kermit $(CKVER) for MINIX 68k with ACK...'
8671 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
8672 "CFLAGS= -DV7 -DMINIX -D_MINIX -D_POSIX_SOURCE -DNOLEARN \
8673 -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG \
8674 -DNOSCRIPT -DNOCSETS -DNOSPL $(KFLAGS) \
8675 -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t -DSIG_V"
8676
8677 #MINIX - 68k version with c68 compiler.
8678 # Compiling ckudia.c (no -DNODIAL!) might fail.
8679 # Give c68 250000 bytes of stack+heap; make sure make(1) has at least
8680 # 100000 chmemory. On a 1MB Atari ST this means that the recursive
8681 # call of make fails due to memory shortage. Try "make -n minixc68 >makeit",
8682 # followed by ". makeit". Otherwise, as above.
8683 minixc68:
8684 @echo 'Making C-Kermit $(CKVER) for MINIX 68k with c68...'
8685 $(MAKE) wermit "CC= cc -c68" KTARGET=$${KTARGET:-$(@)} \
8686 "CFLAGS= -DV7 -DMINIX -D_MINIX -D_POSIX_SOURCE -DNOLEARN \
8687 -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG \
8688 -DNOSCRIPT -DNOCSETS -DNOSPL $(KFLAGS) \
8689 -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t -DSIG_V"
8690
8691 #MINIX - 68k version with c68 compiler.
8692 #A variation on the above that was recently (Sep 95) reported to work.
8693 minixc68a:
8694 @echo 'Making C-Kermit $(CKVER) for MINIX 68k with c68...'
8695 $(MAKE) wermit "CC= cc -c68" KTARGET=$${KTARGET:-$(@)} \
8696 "CFLAGS= -DV7 -DMINIX -D_MINIX -D_POSIX_SOURCE \
8697 -DCK_ANSIC -DNODEBUG -DNOTLOG -DMINIDIAL -DEXTEN -DMYCURSES \
8698 -DNOSCRIPT -DNOCSETS -DNOSPL -DNOJC -DDIRENT -DNOLEARN \
8699 -DNOSETKEY -DNOESCSEQ $(KFLAGS) \
8700 -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t -DSIG_V"
8701
8702 #MIPS Computer Systems with UMIPS RISC/OS 4.52 = AT&T UNIX System V R3.0.
8703 #Remove -DNOJC if job control can be safely used.
8704 mips:
8705 @echo 'Making C-Kermit $(CKVER) for MIPS RISC/OS...'
8706 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
8707 "CFLAGS = -DMIPS -DDIRENT -DCK_POLL -DNOJC -DNOLEARN -DPID_T=int \
8708 -DGID_T=gid_t -DUID_T=uid_t -i -O1500 $(KFLAGS)"
8709
8710 #As above, but with TCP/IP and fullscreen support.
8711 mipstcpc:
8712 @echo 'Making C-Kermit $(CKVER) for MIPS RISC/OS...'
8713 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
8714 "CFLAGS = -DMIPS -DDIRENT -DCK_POLL -DNOJC \
8715 -DTCPSOCKET -DCK_CURSES -I/usr/include/bsd \
8716 -DPID_T=int -DGID_T=gid_t -DUID_T=uid_t -i -O1500 $(KFLAGS)" \
8717 "LIBS = -lcurses -lbsd"
8718
8719 #Motorola Delta System V/68 R3, signal() is void rather than int.
8720 #Uses dirent.h and Honey DanBer uucp. Supports TCP/IP.
8721 #After building, use "mcs -d" to reduce size of the executable program.
8722 sv68r3:
8723 @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/68 R3...'
8724 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
8725 "CFLAGS = -DSVR3 -DSV68 -DDIRENT -DHDBUUCP -DNO_DNS_SRV -DTCPSOCKET \
8726 -DNOUNICODE -DNOLEARN -DUSE_MEMCPY $(KFLAGS) -O" "LNKFLAGS ="
8727
8728 #Motorola Delta System V/68 R3V5, signal() is void rather than int.
8729 #Uses dirent.h and Honey DanBer UUCP. Supports TCP/IP.
8730 #After building, use "mcs -d" to reduce size of the executable program.
8731 sv68r3v5:
8732 @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/68 R3V5'
8733 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
8734 "CFLAGS = -DSVR3 -DSV68 -DDIRENT -DHDBUUCP -DNO_DNS_SRV -DUSE_MEMCPY \
8735 -DTCPSOCKET -DINADDRX -DNOUNICODE -DFNFLOAT -DNOLEARN $(KFLAGS) -O" \
8736 "LNKFLAGS =" "LIBS = -linet -lm"
8737
8738 #Motorola MVME147 System V/68 R3 V5.1. Requires gcc 2.1 to compile.
8739 #After building, use "mcs -d" to reduce size of the executable program.
8740 sv68r3v51:
8741 @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/68 R3V5.1'
8742 $(MAKE) wermit "CC=gcc-delta" "CC2=gcc-delta" \
8743 KTARGET=$${KTARGET:-$(@)} \
8744 "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DNODEBUG -DNO_DNS_SRV -DNOLEARN \
8745 -DNOUNICODE -DFNFLOAT -DSV68 -DUSE_MEMCPY $(KFLAGS) \
8746 -O2 -v -ftraditional" \
8747 "LNKFLAGS = -s -v" "LIBS = -lm881 -lm"
8748
8749 #Motorola MVME147 System V/68 R3V6. derived from Motorola Delta System R3V5.
8750 #Checked on larger Motorola System V/68 R3V6 (with NSE Network Services Ext.)
8751 #After building, use "strip" to reduce size of the executable program.
8752 # "LIBS = -lnsl" removed in C-Kermit 6.1 - put back if needed.
8753 # "LIBS = lm" added in 7.1/8.0 for floating-point math.
8754 # ckuusr.c clobbers the optimizer.
8755 sv68r3v6:
8756 @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/68 R3V6'
8757 $(MAKE) ckuusr.$(EXT) KTARGET=$${KTARGET:-$(@)} \
8758 "CFLAGS = -DSV68R3V6 -DDIRENT -DHDBUUCP -DNOLOGIN -DNOINITGROUPS \
8759 -DNOSYMLINK -DNOREDIRECT -DNOGFTIMER -DTCPSOCKET -DDCLGETCWD -DSV68 \
8760 -DNO_DNS_SRV -DNOUNICODE -DFNFLOAT -DSELECT -DUSE_MEMCPY $(KFLAGS)"
8761 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
8762 "CFLAGS = -O -DSV68R3V6 -DDIRENT -DHDBUUCP -DNOLOGIN -DNOINITGROUPS \
8763 -DNOSYMLINK -DNOREDIRECT -DNOGFTIMER -DTCPSOCKET -DDCLGETCWD -DSV68 \
8764 -DNO_DNS_SRV -DNOUNICODE -DFNFLOAT -DSELECT -DUSE_MEMCPY $(KFLAGS)" \
8765 "LNKFLAGS =" "LIBS = -lm"
8766
8767 #Motorola Delta System V/88 R32, signal() is void rather than int.
8768 #Uses dirent.h and Honey DanBer uucp. Needs <sys/utime.h> for setting
8769 #file dates. Supports TCP/IP.
8770 #After building, use "mcs -d" to reduce size of the executable program.
8771 sv88r32:
8772 @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/88 R32...'
8773 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
8774 "CFLAGS = -DSV88R32 -DDIRENT -DHDBUUCP -DTCPSOCKET \
8775 -DSYSUTIMEH -DCK_CURSES -DNOGETUSERSHELL -DGTODONEARG $(KFLAGS) -O" \
8776 "LIBS= -lcurses -lresolv" "LNKFLAGS = -s"
8777
8778 #Motorola Delta System V/88 R40. Has <sys/termiox.h>, regular Berkeley
8779 #sockets library, i.e. in.h and inet.h are not misplaced in sys (rather than
8780 #netinet and arpa, respectively). Uses ANSI C constructs, advisory file
8781 #locking on devices, etc. curses support added. Reportedly, the
8782 #/usr/include/sys/vnode.h file has a bug which must be fixed before this
8783 #makefile entry can work correctly. The "if DEBUG" directive at about line
8784 #320 must be changed to "ifdef DEBUG" (Reportedly, this was fixed in
8785 #in System V/88 R4.3).
8786 #After building, use "mcs -d" to reduce size of the executable program.
8787 sv88r40:
8788 @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/88 R40...'
8789 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
8790 "CFLAGS = -O -DSVR4 -DMOTSV88R4 -DDIRENT -DHDBUUCP -DSTERMIOX \
8791 -DTCPSOCKET -DCK_CURSES -DNOGETUSERSHELL -DGTODONEARG -DFNFLOAT \
8792 $(KFLAGS)" \
8793 "LIBS= -lsocket -lnsl -lcurses -lresolv -lm" "LNKFLAGS = -s"
8794
8795 #As above but without the floating-point math library.
8796 sv88r40nm:
8797 @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/88 R40...'
8798 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
8799 "CFLAGS = -O -DSVR4 -DMOTSV88R4 -DDIRENT -DHDBUUCP -DSTERMIOX \
8800 -DTCPSOCKET -DCK_CURSES -DNOGETUSERSHELL -DGTODONEARG $(KFLAGS)" \
8801 "LIBS= -lsocket -lnsl -lcurses -lresolv" "LNKFLAGS = -s"
8802
8803 #As above but with floating-point math library support \ffp...() functions
8804 #and S-Expressions.
8805
8806 #Olivetti X/OS R2.3, 3.x.
8807 #NOTES:
8808 # . If you build the executable on 2.x X/OS, it will also run on 3.x.
8809 # . If you build it on 3.x X/OS, it will NOT run on 2.x.
8810 # . Kermit can run with no privileges unless the uucp lines are protected,
8811 # in which case kermit must be owned by uucp with suid bit set:
8812 # chown uucp kermit ; chmod 4111 kermit.
8813 xos23:
8814 @echo 'Making C-Kermit $(CKVER) for Olivetti X/OS...'
8815 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
8816 'CFLAGS=-OLM -DOXOS -DTCPSOCKET -DHDBUUCP $(KFLAGS)' \
8817 "LIBS=" "LNKFLAGS="
8818
8819 #As above, but with curses.
8820 xos23c:
8821 @echo 'Making C-Kermit $(CKVER) for Olivetti X/OS with curses...'
8822 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
8823 'CFLAGS=-OLM -DOXOS -DTCPSOCKET -DHDBUUCP -DCK_CURSES $(KFLAGS)' \
8824 "LIBS=-lcurses" "LNKFLAGS="
8825
8826 ckuuid:
8827 @echo 'building C-Kermit $(CKVER) set-UID/set-GID test programs'
8828 $(CC) -DANYBSD -DSAVEDUID -o ckuuid1 ckuuid.c
8829 $(CC) -DANYBSD -o ckuuid2 ckuuid.c
8830 $(CC) -DANYBSD -DNOSETREU -o ckuuid3 ckuuid.c
8831 $(CC) -DANYBSD -DSETEUID -DNOSETREU -o ckuuid4 ckuuid.c
8832 $(CC) -o ckuuid5 ckuuid.c
8833 @echo 'Read the top of ckuuid.c for directions...for testing'
8834 @echo 'you must make these programs setuid and setgid'
8835
8836 ############################################################################
8837 # A N T I Q U I T I E S
8838 #
8839 # The following are antique targets from C-Kermit 5A or earlier. They have
8840 # not been updated or tested in years. Most of them will need recent features
8841 # disabled, usually with some combination of -DNOUNICODE, -DNOIKSD, -DNOANSI,
8842 # -DNOCKGHNLHOST, -DNO_DNS_SRV, -DNOREDIRECT, -DNOREALPATH, -DNOCURSES, etc.
8843 # They are also missing the KTARGET=$${KTARGET:-$(@)} business.
8844 # For details see ckuins.txt and ckccfg.txt.
8845 #
8846 ############################################################################
8847
8848 #Berkeley Unix 2.8, 2.9 for PDP-11s with I&D space, maybe also Ultrix-11???
8849 #C-Kermit(5A) is simply too large (even turning off almost every feature
8850 #available) to run without both I&D space plus overlays. The old comment
8851 #suggested running 'pcc' but that won't help. Changing 'cc' to 'ckustr.sed'
8852 #will cause a string extraction to be done, saving D space by moving strings
8853 #to a file.
8854 bsd29:
8855 @echo Making C-Kermit $(CKVER) for 2.8 or 2.9BSD.
8856 @echo Read the makefile if you have trouble with this...
8857 $(MAKE) ovwermit \
8858 "CFLAGS= -DBSD29 -DNODEBUG -DNOTLOG -DNOCSETS -DNOHELP \
8859 -DNOSCRIPT -DNOSPL -DNOXMIT -DNODIAL $(KFLAGS)" \
8860 "LNKFLAGS= -i -lndir" "CC= cc " "CC2= cc"
8861
8862 bsd210:
8863 @echo Please use ckubs2.mak to build C-Kermit $(CKVER) for 2.10BSD.
8864
8865 bsd211:
8866 @echo Please use ckubs2.mak to build C-Kermit $(CKVER) for 2.11BSD.
8867
8868 #Charles River Data Systems Universe with UNOS Version 9.2
8869 crds:
8870 @echo 'Making C-Kermit $(CKVER) for Charles River Data Systems...'
8871 make xermit \
8872 "CFLAGS = -DATTSV -DNOANSI -DDIRENT -DLONGFN -DTCPSOCKET \
8873 -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DNOSETREU \
8874 -Dsuspend=ksuspend $(KFLAGS) -O" "LNKFLAGS ="
8875
8876 #Microport SV/AT for IBM PC/AT 286 and clones, System V R2.
8877 #The -O flag may fail on some modules (like ckuus2.c), in which case you
8878 #should compile them by hand, omitting the -O. If you get "hash table
8879 #overflow", try adding -DNODEBUG.
8880 #Also, reportedly this compiles better with gcc than with cc.
8881 mpsysv:
8882 @echo 'Making C-Kermit $(CKVER) for Microport SV/AT 286...'
8883 $(MAKE) wermit \
8884 "CFLAGS= -DATTSV -DNOLEARN $(KFLAGS) -O -Ml" "LNKFLAGS = -Ml"
8885
8886 #Microsoft "Xenix/286" e.g. for IBM PC/AT
8887 xenix:
8888 @echo 'Making C-Kermit $(CKVER) for Xenix/286'
8889 $(MAKE) wermit \
8890 "CFLAGS= -DXENIX -DNOFILEH -DNOLEARN $(KFLAGS) -Dunix -F 3000 -i" \
8891 "LNKFLAGS = -F 3000 -i"
8892
8893 #PC/IX, Interactive Corp System III for IBM PC/XT
8894 pcix:
8895 @echo 'Making C-Kermit $(CKVER) for PC/IX...'
8896 $(MAKE) wermit \
8897 "CFLAGS= -DPCIX -DISIII -DNOLEARN $(KFLAGS) \
8898 -Dsdata=sdatax -O -i" "LNKFLAGS = -i"
8899
8900 #Integrated Solutions Inc V8S VME 68020
8901 isi:
8902 @echo Making C-Kermit $(CKVER) for 4.2BSD on ISI...
8903 $(MAKE) wermit "CC = cc" \
8904 "CFLAGS= -DBSD4 -DTCPSOCKET -DINADDRX -DDCLPOPEN -DDEBUG -DNOSETREU \
8905 -DCK_CURSES -DNOLEARN $(KFLAGS)" "LIBS = -lcurses -ltermcap"
8906
8907 #Interactive Corp version of AT&T System III
8908 #is3: (very old, probably not sufficient for 5A or later)
8909 # @echo 'Making C-Kermit $(CKVER) for Interactive System III...'
8910 # make wermit "CFLAGS = -DISIII -Ddata=datax -O -i" "LNKFLAGS = -i"
8911 #The following should work, use it if you don't have gcc.
8912 #Use is3gcc if you have gcc.
8913 is3:
8914 @echo 'Making C-Kermit $(CKVER) for Interactive System III...'
8915 $(MAKE) wermit \
8916 "CFLAGS= -DISIII $(KFLAGS) -Ddata=datax -DNAP -DHDBUUCP
8917 -DLOCK_DIR=\"/usr/spool/uucp\" -DSIGTYP=void -O -i" "LNKFLAGS = -i"
8918
8919 #Interactive UNIX System V R3, no network support. Uses <dirent.h> and Honey
8920 #DanBer UUCP. If this entry does not compile correctly, try any or all of the
8921 #following. These suggestions also apply more or less to the other is5r3xxx
8922 #entries that follow this one.
8923 # . Remove the UID_T and GID_T definitions, or change them as required.
8924 # . Change -DDIRENT to -DSDIRENT.
8925 # . Add -DSIGTYP=void.
8926 # . Remove -g from LNKFLAGS.
8927 # . Add -DNOANSI to remove compiler complaints about ANSI C constructions
8928 # . Add other -DNOxxx's to save space (e.g. -DNOCSETS)
8929 # See the next few makefile entries for related examples.
8930 # Also see sys5r32is for making a portable i386 SVR3 binary.
8931 is5r3:
8932 @echo 'Making C-Kermit $(CKVER) for Interactive 386/ix or later...'
8933 @echo 'If this does not work please read the makefile entry.'
8934 $(MAKE) wermit \
8935 "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -g -DNOCSETS -DNOREALPATH \
8936 -DUID_T=ushort -DGID_T=ushort -DI386IX $(KFLAGS)" \
8937 "LNKFLAGS = -g"
8938
8939 #Interactive Corp System System V R3 with gcc
8940 is3gcc:
8941 @echo 'Making C-Kermit $(CKVER) for Interactive System V R3 / gcc...'
8942 $(MAKE) wermit CC=gcc CC2=gcc \
8943 'CFLAGS = -D_SYSV3 -DISIII -Ddata=datax -DNAP -DHDBUUCP -DNOREALPATH \
8944 -DLOCK_DIR=\"/usr/spool/uucp\" -DSIGTYP=void -O' "LNKFLAGS ="
8945
8946 #Interactive UNIX System V R3, POSIX variant. Untested.
8947 #Uses dirent.h and Honey DanBer uucp. Read comments in is5r3 entry.
8948 is5r3p:
8949 @echo 'Making C-Kermit $(CKVER) for Interactive 386/ix or later...'
8950 $(MAKE) wermit \
8951 "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -g -DNOCSETS -DNOREALPATH \
8952 -DI386IX -DPOSIX $(KFLAGS)" "LNKFLAGS=" "LIBS=-lcposix"
8953
8954 #Interactive UNIX SVR3 2.2.1, job control, curses, no net, gcc.
8955 is5r3gcc:
8956 $(MAKE) wermit CC=gcc CC2=gcc \
8957 "CFLAGS=-g -posix -DSVR3 -DDIRENT -DNOREALPATH \
8958 -DHDBUUCP -O -DNOCSETS -DI386IX -DSVR3JC -DCK_CURSES \
8959 $(KFLAGS)" LNKFLAGS="-posix" LIBS="-lcurses -lc_s"
8960
8961 #Interactive UNIX System V R3 with TCP/IP network support.
8962 #Needs -linet for net functions. signal() is void rather than int.
8963 #Uses dirent.h and Honey DanBer uucp. Read comments in is5r3 entry.
8964 #Also see is5r3net2 if you have trouble with this entry.
8965 is5r3net:
8966 @echo 'Making C-Kermit $(CKVER) for Interactive 386/ix...'
8967 @echo 'If this does not work please read the makefile entry.'
8968 $(MAKE) wermit CC="$(CC)" CC2="$(CC2)" \
8969 "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DTCPSOCKET -DNOREALPATH \
8970 -DI386IX $(KFLAGS) -O" "LIBS = -linet"
8971
8972 is5r3netgcc:
8973 $(MAKE) is5r3net CC=gcc CC2=gcc
8974
8975 #Interactive UNIX System V R3, no job control, signal() void rather than int.
8976 #Uses dirent.h and Honey DanBer uucp. Needs -linet for net functions.
8977 #Read comments in is5r3 entry. Use this entry if is5r3net fails.
8978 #Saves some space by stripping (-s) and using shared library (-lc_s).
8979 is5r3net2:
8980 @echo 'Making C-Kermit $(CKVER) for Interactive 386/ix...'
8981 $(MAKE) wermit \
8982 "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DTCPSOCKET -DNOJC -DNOREALPATH \
8983 -DSIGTYP=void -DNOANSI -DI386IX $(KFLAGS) -O" \
8984 "LNKFLAGS= -s" "LIBS = -linet -lc_s"
8985
8986 #Interactive UNIX System V R3 (version 2.2 or later) with job control & curses.
8987 #Uses dirent.h and Honey DanBer UUCP.
8988 is5r3jc:
8989 @echo 'Making C-Kermit $(CKVER) for Interactive Unix 2.2 or later...'
8990 $(MAKE) wermit CC="$(CC)" CC2="$(CC2)" \
8991 "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -O -DNOCSETS -DNOREALPATH \
8992 -DUID_T=ushort -DGID_T=ushort -DI386IX -DSVR3JC -DCK_CURSES \
8993 -DPOSIX_JC -DCK_REDIR -DCK_POLL -DDCLGETCWD \
8994 $(KFLAGS)" "LIBS=-lcurses -lc_s -linet"
8995
8996 is5r3jcgcc:
8997 $(MAKE) is5r3jc CC="gcc -DCK_ANSILIBS -DDCGPWNAM -O4" CC2=gcc \
8998 KFLAGS="$(KFLAGS)" LNKFLAGS="$(LNKFLAGS)"
8999
9000 #Sunsoft/Interactive UNIX System V R3 (version 2.2 or later)
9001 #with job control, curses, and TCP/IP networking.
9002 #Uses dirent.h and Honey DanBer UUCP.
9003 is5r3netjc:
9004 @echo 'Making C-Kermit $(CKVER) for Interactive Unix 2.2 or later...'
9005 $(MAKE) wermit CC="$(CC)" CC2="$(CC2)" \
9006 "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -O -DNOCSETS -DNOREALPATH \
9007 -DUID_T=ushort -DGID_T=ushort -DI386IX -DSVR3JC -DCK_CURSES \
9008 -DPOSIX_JC -DCK_REDIR -DTCPSOCKET -DSELECT \
9009 $(KFLAGS)" "LIBS=-linet -lcurses -lc_s"
9010
9011 is5r3netjcgcc:
9012 $(MAKE) is5r3netjc CC="gcc -DCK_ANSILIBS -DDCGPWNAM -O4" CC2=gcc \
9013 KFLAGS="$(KFLAGS)" LNKFLAGS="$(LNKFLAGS)"
9014
9015 #Masscomp System III
9016 rtu:
9017 @echo 'Making C-Kermit $(CKVER) for Masscomp RTU System III...'
9018 $(MAKE) wermit \
9019 "CFLAGS= -UFIONREAD -DATTSV $(KFLAGS) -O" "LNKFLAGS =" "LIBS= -ljobs"
9020
9021 #Masscomp/Concurrent RTU 4.0 or later, Berkeley environment.
9022 #Includes <ndir.h> = /usr/include/ndir.h
9023 #Note "LIBS = -lndir" might not be necessary because of "ucb make".
9024 rtubsd:
9025 @echo 'Making C-Kermit $(CKVER) for Masscomp RTU 4.1A...'
9026 ucb make wermit \
9027 "CFLAGS= -DBSD4 -DRTU -DNDIR -DHDBUUCP -DTCPSOCKET $(KFLAGS)" \
9028 "LIBS = -lndir"
9029
9030 #Masscomp/Concurrent RTU 4.0 or later, same as above,
9031 #Includes "usr/lib/ndir.h"
9032 #Note "LIBS = -lndir" might not be necessary because of "ucb make".
9033 rtubsd2:
9034 @echo 'Making C-Kermit $(CKVER) for Masscomp RTU 4.1A...'
9035 ucb make wermit \
9036 "CFLAGS= -DBSD4 -DRTU -DXNDIR -DHDBUUCP $(KFLAGS)" \
9037 "LIBS = -lndir"
9038
9039 #Masscomp/Concurrent RTU 4.0 or later, same as above,
9040 #Includes <sys/ndir.h>
9041 #Note "LIBS = -lndir" might not be necessary because of "ucb make".
9042 rtubsd3:
9043 @echo 'Making C-Kermit $(CKVER) for Masscomp RTU 4.x BSD...'
9044 ucb make wermit "CFLAGS= -DBSD4 -DRTU -DHDBUUCP $(KFLAGS)" \
9045 "LIBS = -lndir"
9046
9047 #Masscomp/Concurrent RTU 4.0 or later, System V R2, using <dirent.h>.
9048 #In case of problems, add back the -DRTU switch.
9049 #In case -DTCPSOCKET gives trouble, remove it.
9050 rtus5:
9051 @echo 'Making C-Kermit $(CKVER) for Masscomp RTU 4.x...'
9052 $(MAKE) wermit \
9053 "CFLAGS= -DATTSV -DHDBUUCP -DDIRENT -DTCPSOCKET $(KFLAGS)"
9054
9055 #Masscomp/Concurrent RTU 4.x, System V R3, using <dirent.h>.
9056 #Use this one if rtus5 gives warnings about pointer type mismatches.
9057 #In case of problems, add back the -DRTU switch.
9058 rtus5r3:
9059 @echo 'Making C-Kermit $(CKVER) for Masscomp RTU Sys V R3...'
9060 $(MAKE) wermit "CFLAGS= -DSVR3 -DHDBUUCP -DDIRENT $(KFLAGS)"
9061
9062 #DEC Pro-3xx with Pro/Venix V1.0 or V1.1
9063 # Requires code-mapping on non-I&D-space 11/23 processor, plus some
9064 # fiddling to get interrupt targets into resident code section.
9065 # This almost certainly doesn't work any more.
9066 provx1:
9067 @echo 'Making C-Kermit $(CKVER) for DEC Pro-3xx, Pro/Venix 1.x...'
9068 $(MAKE) wermit "CFLAGS = -DPROVX1 -DNOFILEH -md780" \
9069 "LNKFLAGS= -u _sleep -lc -md780"
9070
9071 #Nixdorf Targon/31.
9072 #AT&T UNIX System V R3, signal() is void rather than int.
9073 #Uses dirent.h without Honey DanBer uucp.
9074 t31tos40x:
9075 @echo 'Making C-Kermit $(CKVER) for Targon/31 with TOS 4.0.xx...'
9076 $(MAKE) wermit \
9077 "CFLAGS= -DSVR3 -DDIRENT $(KFLAGS) -O" \
9078 "LNKFLAGS="
9079
9080 #NCR Tower 1632, OS 1.02
9081 tower1:
9082 @echo 'Making C-Kermit $(CKVER) for NCR Tower 1632, OS 1.02...'
9083 $(MAKE) wermit "CFLAGS= -DTOWER1 $(KFLAGS)"
9084
9085 #NCR Tower 32, OS Release 1.xx.xx
9086 tower32-1:
9087 @echo 'Making C-Kermit $(CKVER) for NCR Tower 32 Rel 1 System V R2...'
9088 @echo 'Add KFLAGS=-DISDIRBUG if you get errors about S_ISREG/S_ISDIR.'
9089 $(MAKE) wermit \
9090 "CFLAGS = -DATTSV $(KFLAGS) -O" "LNKFLAGS = -n"
9091
9092 #NCR Tower 32, OS Release 2.xx.xx
9093 tower32-2:
9094 @echo 'Making C-Kermit $(CKVER) for NCR Tower 32 Rel 2 System V R2...'
9095 $(MAKE) wermit \
9096 "CFLAGS = -DATTSV -DHDBUUCP $(KFLAGS) -O2" \
9097 "LNKFLAGS = -n"
9098
9099 #NCR Tower 32, OS Releases based on System V R3
9100 #Don't add -DNAP (doesn't work right) or -DRDCHK (not available in libc).
9101 tower32:
9102 @echo 'Making C-Kermit $(CKVER) for NCR Tower 32 System V R3...'
9103 $(MAKE) wermit \
9104 "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DNOSYSIOCTLH $(KFLAGS) \
9105 -DUID_T=ushort -DGID_T=ushort -O1"
9106
9107 #NCR Tower 32, OS Releases based on System V R3
9108 tower32g:
9109 @echo 'Making C-Kermit $(CKVER) for NCR Tower 32 System V R3, gcc...'
9110 $(MAKE) wermit "CC = gcc" \
9111 "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DNOSYSIOCTLH $(KFLAGS) \
9112 DUID_T=ushort -DGID_T=ushort -O -fstrength-reduce -fomit-frame-pointer"
9113
9114 #Fortune 32:16, For:Pro 1.8 (mostly like 4.1bsd)
9115 ft18:
9116 @echo 'Making C-Kermit $(CKVER) for Fortune 32:16 For:Pro 1.8...'
9117 $(MAKE) wermit \
9118 "CFLAGS= -DNODEBUG -DBSD4 -DFT18 -DNOFILEH $(KFLAGS) \
9119 -DPID_T=short"
9120
9121 #Fortune 32:16, For:Pro 2.1 (mostly like 4.1bsd).
9122 #The modules that break the optimizer are compiled separately.
9123 ft21:
9124 @echo 'Making C-Kermit $(CKVER) for Fortune 32:16 For:Pro 2.1...'
9125 $(MAKE) ckuusx.$(EXT) "CFLAGS= -DNODEBUG -DBSD4 -DFT21 -DNOFILEH \
9126 -SYM 800 -DCK_CURSES $(KFLAGS) -DPID_T=short" \
9127 "LNKFLAGS= -n -s" "LIBS= -lcurses -ltermcap -lv -lnet"
9128 $(MAKE) ckuxla.$(EXT) "CFLAGS= -DNODEBUG -DBSD4 -DFT21 -DNOFILEH \
9129 -SYM 800 -DCK_CURSES $(KFLAGS) -DPID_T=short" \
9130 "LNKFLAGS= -n -s" "LIBS= -lcurses -ltermcap -lv -lnet"
9131 $(MAKE) ckudia.$(EXT) "CFLAGS= -DNODEBUG -DBSD4 -DFT21 -DNOFILEH \
9132 -SYM 800 -DCK_CURSES $(KFLAGS) -DPID_T=short" \
9133 "LNKFLAGS= -n -s" "LIBS= -lcurses -ltermcap -lv -lnet"
9134 $(MAKE) wermit \
9135 "CFLAGS= -O -DNODEBUG -DBSD4 -DFT21 -DNOFILEH -SYM 800 \
9136 -DCK_CURSES $(KFLAGS) -DPID_T=short" \
9137 "LNKFLAGS= -n -s" "LIBS= -lcurses -ltermcap -lv -lnet"
9138
9139 #Valid Scaldstar
9140 #Berkeleyish, but need to change some variable names.
9141 valid:
9142 @echo 'Making C-Kermit $(CKVER) for Valid Scaldstar...'
9143 $(MAKE) wermit \
9144 "CFLAGS= -DBSD4 -DNODEBUG -DNOTLOG -Dcc=ccx -DFREAD=1 $(KFLAGS)"
9145
9146 #IBM IX/370 on IBM 370 Series mainframes
9147 #Mostly like sys3, but should buffer packets.
9148 ix370:
9149 @echo 'Making C-Kermit $(CKVER) for IBM IX/370...'
9150 $(MAKE) wermit "CFLAGS = -DIX370 -DATTSV $(KFLAGS) -i -O" \
9151 "LNKFLAGS = -i"
9152
9153 #Amdahl UTS 2.4 on IBM 370 series compatible mainframes.
9154 #Mostly like V7, but can't do initrawq() buffer peeking.
9155 uts24:
9156 @echo 'Making C-Kermit $(CKVER) for Amdahl UTS 2.4...'
9157 $(MAKE) wermit "CFLAGS=-DV7 -DPROCNAME=\\\"$(PROC)\\\" \
9158 -DUTS24 -DBOOTNAME=\\\"$(BOOTFILE)\\\" -DNPROCNAME=\\\"$(NPROC)\\\" \
9159 -DNPTYPE=$(NPTYPE) $(DIRECT) $(KFLAGS)"
9160
9161 #Amdahl UTSV UNIX System V = System V R2 or earlier.
9162 utsv:
9163 @echo 'Making C-Kermit $(CKVER) for Amdahl UTSV...'
9164 $(MAKE) wermit \
9165 "CFLAGS = -DUTSV $(KFLAGS) -i -O" "LNKFLAGS = -i"
9166
9167 #Amdahl UTSV UNIX System V = System V R2 or earlier, with TCP sockets library.
9168 utsvtcp:
9169 @echo 'Making C-Kermit $(CKVER) for Amdahl UTSV w/tcp...'
9170 $(MAKE) wermit "CFLAGS = \
9171 -DTCPSOCKET -DUTSV $(KFLAGS) -i -O" "LNKFLAGS = -i" \
9172 "LIBS = -lsocket"
9173
9174 #BBN C/70 with IOS 2.0
9175 #Mostly Berkeley-like, but with some ATTisms
9176 c70:
9177 @echo 'Making C-Kermit $(CKVER) for BBN C/70 IOS 2.0...'
9178 $(MAKE) wermit "CFLAGS= -DBSD4 -DC70 $(KFLAGS)"
9179
9180 #Zilog ZEUS 3.21
9181 zilog:
9182 @echo 'Making C-Kermit $(CKVER) for Zilog Zeus 3.21...'
9183 $(MAKE) wermit \
9184 "CFLAGS = -DATTSV -DZILOG -DNODEBUG $(KFLAGS) -i -O" \
9185 "LNKFLAGS = -i -lpw"
9186
9187 #Whitechapel MG-1 Genix 1.3
9188 white:
9189 @echo 'Making C-Kermit $(CKVER) for Whitechapel MG-1 Genix 1.3...'
9190 $(MAKE) wermit "CFLAGS= -DBSD4 -Dzkself()=0 $(KFLAGS)"
9191
9192 #Pixel 1000
9193 pixel:
9194 @echo 'Making C-Kermit $(CKVER) for Pixel 1000...'
9195 $(MAKE) wermit "CFLAGS= -DBSD4 -Dzkself()=0 $(KFLAGS)"
9196
9197 ptx:
9198 $(MAKE) "MAKE=$(MAKE)" dynixptx12
9199
9200 #CDC VX/VE 5.2.1
9201 vxve:
9202 @echo 'Making C-Kermit $(CKVER) for CDC VX/VE 5.2.1...'
9203 $(MAKE) wermit \
9204 "CFLAGS = -DATTSV -DVXVE -DNODEBUG -DNOTLOG $(KFLAGS) -i -O" \
9205 "LNKFLAGS = -i"
9206
9207 #DIAB DS90 or LUXOR ABC-9000 with pre-5.2 DNIX. Sys V with nap() and rdchk().
9208 # nd = no opendir(), readdir(), closedir(), etc.
9209 # Some of the modules fail to compile with -O.
9210 dnixnd:
9211 @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with very old DNIX 5.2.'
9212 $(MAKE) wermit \
9213 "CFLAGS = -DATTSV -DNAP -DRDCHK -DDCLPOPEN \
9214 -U__STDC__ $(KFLAGS)"
9215
9216 #DIAB DS90 with DNIX 5.2. Sys V with nap() and rdchk().
9217 # This one has opendir(), readdir(), closedir(), etc.
9218 # Some of the modules fail to compile with -O.
9219 dnix:
9220 @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with old DNIX 5.2...'
9221 $(MAKE) wermit \
9222 "CFLAGS = -DATTSV -DNAP -DRDCHK -DDIRENT \
9223 -U__STDC__ $(KFLAGS)"
9224
9225 #DIAB DS90 with DNIX 5.2. Sys V with nap() and rdchk().
9226 # As above, but with curses and TCP/IP.
9227 # You might get complaints about redefinition of O_RDONLY, etc, because
9228 # of bugs in the DNIX header files, which can be fixed by adding #ifndef...
9229 # around the offending definitions in the header files.
9230 dnixnetc:
9231 @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with old DNIX 5.2...'
9232 $(MAKE) wermit \
9233 "CFLAGS = -DATTSV -DNAP -DRDCHK -DDIRENT \
9234 -DTCPSOCKET -DCK_CURSES -I/usr/include/bsd -U__STDC__ $(KFLAGS)" \
9235 "LIBS = -ln -lcurses"
9236
9237 #DIAB DS90 with DNIX 5.3 or later, with HDB UUCP, nap() and rdchk().
9238 dnix5r3:
9239 @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with DNIX 5.3...'
9240 @echo 'with Honey DanBer UUCP'
9241 $(MAKE) wermit \
9242 "CFLAGS = -DSVR3 -DHDBUUCP -DNAP -DRDCHK -DDIRENT \
9243 -DCK_CURSES -DRENAME $(KFLAGS) -O" "LIBS= -lcurses"
9244
9245 #DIAB DS90 with DNIX 5.3 or later, with HDB UUCP, nap() and rdchk() + TCP/IP
9246 dnix5r3net:
9247 @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with DNIX 5.3...'
9248 @echo 'with Honey DanBer UUCP and TCP/IP'
9249 $(MAKE) wermit \
9250 "CFLAGS = -DSVR3 -DHDBUUCP -DNAP -DRDCHK -DDIRENT \
9251 -DTCPSOCKET -DCK_CURSES -DRENAME $(KFLAGS) -O \
9252 -I/usr/include/bsd" "LIBS = -ln -lcurses"
9253
9254 #DIAB DS90 with DNIX 5.3 2.2 or later, with HDB UUCP, nap() and rdchk(),
9255 #ANSI C compilation and libraries.
9256 #Note that for DNIX 5.3 2.2 you have to correct a bug in /usr/include/stdlib.h:
9257 #change "extern void free(char *str);"
9258 #to "extern void free(void *str);"
9259 #NOTE: This bug is reportedly fixed in DNIX 5.3 2.2.1.
9260 #Should you get fatal errors caused by harmless pointer-type mismatches,
9261 #like between signed and unsigned char, just remove -X7.
9262 dnix5r3ansi:
9263 @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with DNIX 5.3...'
9264 @echo 'with ANSI C Honey DanBer UUCP'
9265 $(MAKE) wermit \
9266 "CFLAGS = -DSVR3 -DDIAB -DHDBUUCP -DNAP -DRDCHK -DDIRENT \
9267 -DCK_ANSILIBS -DCK_CURSES -DRENAME -O -X7 -X9 $(KFLAGS)" \
9268 "LIBS= -lcurses"
9269
9270 #DIAB DS90 with DNIX 5.3 2.2 or later, with HDB UUCP, nap() and rdchk(),
9271 # + TCP/IP, ANSI C compilation and libraries.
9272 #Should you get fatal errors caused by harmless pointer-type mismatches,
9273 #like between signed and unsigned char, just remove -X7.
9274 dnix5r3ansinet:
9275 @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with DNIX 5.3...'
9276 @echo 'with ANSI C Honey DanBer UUCP'
9277 $(MAKE) wermit \
9278 "CFLAGS = -DSVR3 -DDIAB -DHDBUUCP -DNAP -DRDCHK -DDIRENT \
9279 -DTCPSOCKET -DCK_ANSILIBS -DCK_CURSES -DRENAME -O -X7 -X9 $(KFLAGS) \
9280 -I/usr/include/bsd" "LIBS= -ln -lcurses"
9281
9282 #Ridge 32 with ROS 3.2
9283 ridge32:
9284 @echo 'Making C-Kermit $(CKVER) Ridge 32 ROS 3.2'
9285 $(MAKE) wermit \
9286 "CFLAGS = -DATTSV -DNOFILEH -DNODEBUG -DNOTLOG $(KFLAGS) -i -O" \
9287 "LNKFLAGS = -i"
9288
9289 #Altos 486, 586, or 986 with Xenix 3.0
9290 altos:
9291 @echo 'Making C-Kermit $(CKVER) for Altos x86 with Xenix 3.0...'
9292 $(MAKE) wermit \
9293 "CFLAGS= -DATTSV -DA986 -DNODEBUG -DNOTLOG $(KFLAGS) -i -O" \
9294 "LNKFLAGS= -i"
9295
9296 #Altos 986 with Xenix 3.0, as above, but command-line only, minimal size.
9297 #For systems with small memories. It might also be necessary to chop certain
9298 #modules up into smaller pieces, e.g. ckuus3-6, because of symbol table
9299 #overflow. If this makefile is too big or complex for the Altos, compile
9300 #and link by hand or write shell scripts.
9301 altosc:
9302 @echo 'Making C-Kermit $(CKVER) for Altos x86 Xenix 3.0, remote...'
9303 $(MAKE) wermit \
9304 "CFLAGS= -DATTSV -DA986 -DNODEBUG -DNOTLOG -DNOSCRIPT -DNODIAL \
9305 -DNOCSETS -DNOANSI -DNOMSEND -DNOSPL -DNOICP $(KFLAGS) -Mm -O" \
9306 "LNKFLAGS= -Mm -s"
9307
9308 #Altos 986 with Xenix 3.0, as above, but interactive only, minimal size.
9309 altosi:
9310 @echo 'Making C-Kermit $(CKVER) for Altos x86 Xenix 3.0, local...'
9311 $(MAKE) wermit \
9312 "CFLAGS= -DATTSV -DA986 -DNODEBUG -DNOTLOG -DNOSCRIPT -DNODIAL \
9313 -DNOCSETS -DNOANSI -DNOMSEND -DNOSPL -DNOCMDL -DNOFRILLS -DNOHELP \
9314 -DNOSETKEY $(KFLAGS) -Mm -O" "LNKFLAGS= -Mm -s"
9315
9316 # Altos ACS68000 68000 System, UNIX System 3 Release 2, 512k memory.
9317 # also needs getcwd() external function; see ckuins.txt file.
9318 # also, sys/types.h needed modifying:
9319 # #ifdef __SYS_TYPES_H__, #define ..., #endif
9320 # also, ckuus2.c MUST be compiled NOOPT else symbol table is destroyed!
9321 # Submission by Robert Weiner/Programming Plus, [email protected].
9322 #
9323 altos3:
9324 @echo 'Making C-Kermit $(CKVER) for Altos ACS68k UNIX System III'
9325 $(MAKE) ckuus2.$(EXT) "CFLAGS = -DATTSV -DNOCSETS -DNOSETKEY -DNOJC \
9326 -DNODIAL -DDCLPOPEN -DNOSCRIPT -DNOHELP $(KFLAGS) -i"
9327 $(MAKE) wermit \
9328 "CFLAGS = -DATTSV -DNOCSETS -DNOSETKEY -DNOJC \
9329 -DNODIAL -DDCLPOPEN -DNOSCRIPT -DNOHELP $(KFLAGS) -i -O" \
9330 "LNKFLAGS = -i" "LIBS = getcwd.$(EXT)"
9331
9332 #MINIX - Original PC version with 64K+64K limit.
9333 # Reportedly, the linker (asld) can run out of space while linking. The only
9334 # way around this is to make a copy of libc.a from which all modules that are
9335 # not used by Kermit are removed.
9336 #
9337 # The version configured below has no interactive command parser.
9338 # If you can build this version successfully, maybe there will be room for
9339 # a minimal interactive command parser too; try replacing -DNOICP with
9340 # -DNOSPL, plus every other -DNOxxx flag there is, except for -DNOICP
9341 # (see ckccfg.txt).
9342 minix:
9343 @echo 'Making C-Kermit $(CKVER) for MINIX, no command parser...'
9344 @echo 'TOTALLY UNTESTED!'
9345 $(MAKE) wermit EXT=s \
9346 "CFLAGS= -DV7 -DMINIX -i -D_MINIX -D_POSIX_SOURCE \
9347 -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t -DSIG_V \
9348 -DNOXMIT -DNOMSEND -DNOFRILLS -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG \
9349 -DNOSCRIPT -DNOCSETS -DNOICP -DNOSETKEY $(KFLAGS)" \
9350 "LNKFLAGS= -i -T"
9351
9352 # MINIX - PC version with 64K+64K limit, newer ACK 2.0 beta C compiler,
9353 # which outputs .o object files, rather than .s. But MINIX 'make' still
9354 # expects *.s object files, so must be patched to use .o.
9355 # Tested on Minix 1.5.10.
9356 minix15:
9357 @echo 'Making C-Kermit $(CKVER) for MINIX (new ACK 2.0 compiler),'
9358 @echo 'no command parser... TOTALLY UNTESTED!'
9359 $(MAKE) wermit \
9360 "CFLAGS= -DV7 -DMINIX -i -D_MINIX -D_POSIX_SOURCE \
9361 -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t -DSIG_V -DNODIAL \
9362 -DNOHELP -DNODEBUG -DNOTLOG -DNOSCRIPT -DNOCSETS -DNOICP $(KFLAGS)" \
9363 "LNKFLAGS= -i -T"
9364
9365 #MINIX3 - MINIX 3.0
9366 #Uses the old fork()-based CONNECT command module ckucon.c
9367 #Support for select() was added to MINIX somewhere between 3.0 and 3.3;
9368 #it's definitely in 3.3 (see next target).
9369 #OK 28 November 2022 on MINIX 3.2.1 and 3.3.0.
9370 minix3:
9371 @echo 'Making C-Kermit $(CKVER) for MINIX3...'
9372 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
9373 "CFLAGS= -DPOSIX -DNOUUCP -DNOLEARN -DMINIX2 -DMINIX3 \
9374 -DNO_PARAM_H -DNOSYSLOG -DNOGETUSERSHELL -DNOINITGROUPS \
9375 -DNOFTRUNCATE -DDNOREALPATH -DTCPSOCKET -DNOTIMEZONE -DNORLOGIN \
9376 -DNOFTP -DNO_DNS_SRV -DNOIKSD $(KFLAGS) -O"
9377
9378 #MINIX3 - MINIX 3.0
9379 # This uses the currently (i.e. last 20-30 years) standard CONNECT
9380 # command code, which is based on select(), rather than the 1980s C-Kermit
9381 # original fork()-based method. This target can be used on at least MINIX
9382 # 3.3.0, maybe also earlier MINIX 3 editions, but not MINIX 2 or earlier.
9383 # OK 28 November 2022 on MINIX 3.3.0
9384 minix3+select:
9385 @echo 'Making C-Kermit $(CKVER) for MINIX3...'
9386 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
9387 "CFLAGS= -DPOSIX -DNOUUCP -DNOLEARN -DMINIX2 -DMINIX3 \
9388 -DNO_PARAM_H -DNOSYSLOG -DNOGETUSERSHELL -DNOINITGROUPS \
9389 -DNOFTRUNCATE -DDNOREALPATH -DTCPSOCKET -DNOTIMEZONE -DNORLOGIN \
9390 -DNOFTP -DNO_DNS_SRV -DNOIKSD $(KFLAGS) -O"
9391
9392 #MINIX315 - MINIX 3 1.5 - January 2010
9393 #Last tested successfully on MINIX 3.3.0 28 November 2022
9394 minix315:
9395 @echo 'Making C-Kermit $(CKVER) for Minix 3 1.5...'
9396 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
9397 "CFLAGS= -DMINIX315 -DPOSIX -DNOUUCP -DNOJC -DNOLEARN $(KFLAGS) \
9398 -DHAVE_OPENPTY -DNO_PARAM_H -DNOSYSLOG -DNOGETUSERSHELL \
9399 -DSYSTIMEH -DNOINITGROUPS -DNOFTRUNCATE -DNOREALPATH \
9400 -DNORLOGIN -DTCPSOCKET -DNOTIMEZONE -DNO_DNS_SRV -DNOFTP -O"
9401
9402 #MINIX340 - MINIX 3.4.0 - January 2022
9403 #Last tested successfully on MINIX 3.3.0 28 November 2022
9404 minix340:
9405 @echo 'Making C-Kermit $(CKVER) for Minix 3.4.0...'
9406 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
9407 "CFLAGS= -DMINIX340 -DPOSIX -DCK_CURSES \
9408 -DCK_TRCD -DCK_TRCTS -DZLIB -DBSD44 -DNOJC \
9409 -DNDSYSERRLIST -DNOJC -DHAVE_OPENPTY $(KFLAGS) \
9410 -DLOCK_DIR=\\\"/var/spool/uucp\\\" \
9411 -DSYSTIMEH -DTCPSOCKET -O" \
9412 "LIBS= -lcrypt -lcurses -lutil"
9413
9414 #PFU Compact A Series UNIX System V R3, SX/A TISP V10/L50 (Japan)
9415 #Maybe the -i link option should be removed?
9416 sxae50:
9417 @echo 'Making C-Kermit $(CKVER) for PFU SX/A V10/L50...'
9418 $(MAKE) xermit \
9419 "CFLAGS= -DSVR3 -DDIRENT -DsxaE50 -DTCPSOCKET $(KFLAGS) -i -O" \
9420 "LNKFLAGS= "
9421
9422 #Tektronix 6130, 4319, 4301, etc, with UTek OS, /usr/spool/uucp/LCK./...
9423 #The models that support hardware flow control.
9424 utek:
9425 @echo 'Making C-Kermit $(CKVER) for 4.2BSD/UTek, hardware flow control'
9426 $(MAKE) wermit \
9427 "CFLAGS= -O -DLCKDIR -DBSD4 -DTCPSOCKET \
9428 -DUTEK -DDCLPOPEN -DLOCK_DIR=\\\"/usr/spool/uucp/LCK.\\\" \
9429 -DTRMBUFL=2048 -DCK_DTRCTS $(KFLAGS)"
9430
9431 #Tektronix 4315, 4316, 4317 with UTek OS, /usr/spool/uucp/LCK./...
9432 #The models that do not fully support hardware flow control.
9433 uteknohwfc:
9434 @echo 'Making C-Kermit $(CKVER) for 4.2BSD/UTek, no h/w flow control'
9435 $(MAKE) wermit \
9436 "CFLAGS= -O -DLCKDIR -DBSD4 -DTCPSOCKET \
9437 -DUTEK -DDCLPOPEN -DLOCK_DIR=\\\"/usr/spool/uucp/LCK.\\\" \
9438 -DTRMBUFL=2048 $(KFLAGS)"
9439
9440 #Tektronix XD88 with UTekV OS
9441 utekvr3:
9442 @echo 'Making C-Kermit $(CKVER) for Tektronix XD88 UTekV R3...'
9443 $(MAKE) wermit \
9444 "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP \
9445 -DTCPSOCKET -DSYSUTIMEH -DCK_CURSES $(KFLAGS) -O" \
9446 "LIBS= -lcurses" "LNKFLAGS= -s"
9447
9448 #Perkin-Elmer 3200 Xelos R02 or earlier
9449 ccop1:
9450 @echo 'Making C-Kermit $(CKVER) for Xelos & Public Domain Dirent calls'
9451 @echo 'or System V R2 or earlier...'
9452 $(MAKE) wermit \
9453 "CFLAGS = -DATTSV -Dvoid=int -DDIRENT -DCK_CURSES \
9454 $(KFLAGS) -O" "LNKFLAGS =" "LIBS= -lcurses -ltermlib"
9455
9456 #Encore, UMAX 4.3 (BSD) but without acucntrl program.
9457 encore:
9458 $(MAKE) "MAKE=$(MAKE)" umax43 "KFLAGS=$(KFLAGS)"
9459
9460 #Encore, as above, but with curses file transfer display included.
9461 encorec:
9462 $(MAKE) "MAKE=$(MAKE)" umax43 "KFLAGS=-DCK_CURSES $(KFLAGS)" \
9463 "LIBS= -lcurses -ltermcap"
9464
9465 #Encore, UMAX 4.3 (BSD) but without acucntrl program.
9466 umax43:
9467 @echo Making C-Kermit $(CKVER) for Encore UMAX 4.3...
9468 $(MAKE) "MAKE=$(MAKE)" PARALLEL=4 xermit \
9469 "CFLAGS= -DBSD43 -DENCORE -DTCPSOCKET $(KFLAGS) -O"
9470
9471 #Encore, UMAX 4.2 (BSD)
9472 umax42:
9473 @echo Making C-Kermit $(CKVER) for Encore UMAX 4.2...
9474 $(MAKE) "MAKE=$(MAKE)" PARALLEL=4 xermit \
9475 "CFLAGS= -DBSD4 -DENCORE -DTCPSOCKET $(KFLAGS) -O"
9476
9477 #Encore 88K UMAX 5.3 with TCP/IP support
9478 encore88k:
9479 @echo 'Making C-Kermit $(CKVER) for Encore 88K UMAX V, TCP/IP...'
9480 $(MAKE) xermit \
9481 "CFLAGS = -q ext=pcc -DSVR3 -DTCPSOCKET -DDIRENT \
9482 -DNOGETID_PROTOS -DHDBUUCP $(KFLAGS) -O" "LNKFLAGS ="
9483
9484 #Encore 88K UMAX 5.3 with TCP/IP support
9485 encore88kgcc:
9486 @echo 'Making C-Kermit $(CKVER) for Encore 88K UMAX V, TCP/IP, gcc...'
9487 $(MAKE) xermit CC=gcc CC2=gcc \
9488 "CFLAGS = -DSVR3 -DTCPSOCKET -DDIRENT \
9489 -DNOGETID_PROTOS -DHDBUUCP $(KFLAGS) -O" "LNKFLAGS ="
9490
9491 #SONY NEWS, NEWS-OS 4.01C
9492 sonynews:
9493 @echo Making C-Kermit $(CKVER) for SONY NEWS-OS 4.01C...
9494 $(MAKE) xermit "CFLAGS= -DBSD43 -DACUCNTRL -DTCPSOCKET -O"
9495
9496 #Run Lint on this mess for selected versions.
9497 #These are pretty much obsolete since ANSI C / gcc.
9498 lintsun:
9499 @echo 'Running Lint on C-Kermit $(CKVER) sources for SunOS version...'
9500 lint -x -DSUNOS4 -DDIRENT -DTCPSOCKET -DSAVEDUID \
9501 ck[cu]*.c > ckuker.lint.sun
9502
9503 lintbsd:
9504 @echo 'Running Lint on C-Kermit $(CKVER) sources for BSD 4.2 version..'
9505 lint -x -DBSD4 -DTCPSOCKET ck[cu]*.c > ckuker.lint.bsd42
9506
9507 lints5:
9508 @echo 'Running Lint on C-Kermit $(CKVER) sources for Sys V version...'
9509 lint -x -DATTSV ck[cu]*.c > ckuker.lint.s5
9510
9511 #Who remembers TECO?
9512 love:
9513 @echo 'Not war?'
9514
9515 #Check the most recent build (assuming any previous wermit had been deleted)
9516 check:
9517 @if test -s wermit -a -x wermit ; then \
9518 echo SUCCESS:; ls -log wermit ; else \
9519 echo FAILED; \
9520 fi