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 BUILDID=20260809
4 CKVER= "11.0.508"
5 #
6 # -- Makefile to build C-Kermit for UNIX and UNIX-like platforms --
7 #
8 # Copyright (C) 1985, 2024,
9 # Trustees of Columbia University in the City of New York.
10 # All rights reserved. See the C-Kermit COPYING.TXT file or the
11 # copyright text in the ckcmai.c module for disclaimer and permissions.
12 # In case you can't find the COPYING.TXT file, as of 2011 it contains the
13 # Simplified 3-Clause BSD License, which is an Open Source license.
14 #
15 # Note: As of 3 February 2024, the ckcwart.c and ckcpro.w files have been
16 # reinstated. They are not used when building C-Kermit, but any changes to
17 # to the Kermit protocol itself must be made ckcpro.w, and then you must:
18 #
19 # make wart
20 # make ckcpro.c
21 #
22 # before building C-Kermit (e.g. with "make linux").
23 #
24 # Author: Frank da Cruz (principal author)
25 # Email: [email protected]
26 # Web: https://kermitproject.org
27 #
28 # Example for Linux:
29 # 1. cd to your C-Kermit source-code directory
30 # 2. make clean (to delete object files from previous builds)
31 # 3. rm wermit (remove any previous binary)
32 # 4. make linux (to build a version for your Linux machine)
33 # 5. make check (to check the result - depends on step 3)
34 # 6. test it and report any any problems by email to the address above
35 # 7. mv it to where it should reside, e.g. mv wermit /usr/local/bin/kermit
36 # 8. chmod 755 or 775 if necessary and give appropriate owner and gruop
37 # .. Many variations possible; see https://www.kermitproject.org/ckccfg.html
38 #
39 # Shortcut - Steps 4 and 5 can be combined: "make linux check"
40 #
41 # Note: Author is no longer at Columbia University or at the 115th Street
42 # address as of 1 July 2011. Even so, C-Kermit remains Copyright Columbia
43 # University because that is where it was first written in 1985 and further
44 # developed through mid-2011.
45 #
46 # Contributions from many others. Special thanks to Jeff Altman for the
47 # secure-build targets, Peter Eichhorn, assyst GmbH, for the consolidated
48 # HP-UX targets and the "uninstall" target, to Robert Lipe for the updated
49 # and consolidated SCO UNIX / ODT / OSR5 targets, to Ric Anderson for the
50 # IRIX 6.x targets, to Seth Theriault for major improvements to the
51 # Mac OS X targets, and to Alexey Dokuchaev for FreeBSD 9.0.
52 #
53 # C-Kermit is written and produced by hand without any external automated
54 # procedures such as autoconf / automake / configure, although some of the
55 # targets below (especially the linux target) inspect the environment and make
56 # some decisions in the most portable way possible. The automated tools are
57 # not used because (a) C-Kermit predates them, and (b) they are not portable
58 # to all the platforms where C-Kermit must be (or once was) built, (c) the
59 # automated tools are always changing, and (d) to keep C-Kermit as independent
60 # as possible from external tools over which we have no control.
61 #
62 # Most entries use the "xermit" target, which uses the select()-based CONNECT
63 # module, ckucns.c. The "wermit" target uses the original fork()-based
64 # CONNECT module, ckucon.c, which has some drawbacks but was portable to every
65 # Unix variant whether it had TCP/IP or not (select() is part of the TCP/IP
66 # library, which was not standard on older Unixes). If your target still uses
67 # the "wermit" target, please try substituting the "xermit" one and if it
68 # works, let us know (mailto:[email protected]). When changing a target over
69 # from wermit to xermit, also remove -DNOLOEARN.
70 #
71 # CAREFUL: Don't put the lowercase word "if", "define", or "end" as the first
72 # word after the "#" comment introducer in the makefile, even if it is
73 # separated by whitespace. Some versions of "make" understand these as
74 # directives, which older make versions do not understand. Uppercase letters
75 # remove the danger, e.g. "# If you have..."
76 #
77 # WARNING: This is a huge makefile. Although it is less likely since the
78 # turn of the century, some "make" programs might run out of memory. If this
79 # happens to you, edit away the parts that do not apply to your platform and
80 # try again.
81 #
82 # WARNING 2: In many cases this file invokes itself recursively, sometimes
83 # several levels deep (as in the Linux targets); i.e. some targets are used
84 # as 'subroutines' of other targets, with parameters passed by setting
85 # environment variables. For that reason, don't use 'make -e'.
86 #
87 # Certain UNIX variations have their own separate makefiles:
88 # . For Android, use android.mk.
89 # . For 2.10 or 2.11 BSD on the DEC PDP-11, use ckubs2.mak.
90 # . For Plan 9, use ckpker.mk.
91 #
92 # Separate build procedures are provided non-UNIX platforms: VMS, VOS,
93 # AOS/VS, etc. See the ckaaaa.txt file or the Kermit website for details.
94 #
95 #
96 # DIRECTIONS FOR UNIX
97 #
98 # Rename this file to "makefile" or "Makefile" if necessary. Pick out the
99 # entry most appropriate for your UNIX version from the list below and then
100 # give the appropriate "make" command, for example "make aix", "make macosx",
101 # "make linux". If you experience any difficulties with the build procedure,
102 # then please also read any comments that accompany the make entry itself
103 # (search for the make entry name on the left margin).
104 #
105 # Other targets:
106 # 'make install' is an installation script (read accompanying comments!).
107 # 'make uninstall' undoes 'make install' (read accompanying comments!).
108 # 'make clean' removes intermediate and object files.
109 # 'make show' tells the default include and lib paths for secure builds.
110 #
111 # IMPORTANT:
112 # For more detailed installation instructions, read the files ckuins.txt
113 # and ckccfg.txt, also available at the Kermit website in HTML form:
114 # http://www.columbia.edu/kermit/ckuins.html
115 # http://www.columbia.edu/kermit/ckccfg.html
116 #
117 # For descriptions of known problems and limitations,
118 # read the files ckcbwr.txt and ckubwr.txt (the "beware files") or:
119 # http://www.columbia.edu/kermit/ckcbwr.html
120 # http://www.columbia.edu/kermit/ckubwr.html
121 #
122 # Most targets build C-Kermit with its symbol table included. To reduce the
123 # size of the executable program, add "LNKFLAGS=-s" to the end of your 'make'
124 # command or to the makefile entry, or 'strip' the executable after
125 # building. To further reduce the size after building, use 'mcs -d' if your
126 # Unix version has such a command. For further details on size reduction, read
127 # ckccfg.txt to find out how to remove features that you don't need.
128 #
129 # TCP/IP networking support: If your C-Kermit version does not include TCP/IP
130 # networking, but your UNIX system does, try adding -DTCPSOCKET to the CFLAGS
131 # of your makefile entry. If that doesn't work, look at some of the other
132 # targets that include this flag for ideas about what libraries might need to
133 # be included (typically -lsocket and/or -lBSD and/or -lnsl and/or -linet).
134 # NOTE: In some cases (old versions of SCO or HP-UX), you might need not only
135 # a C compiler, but also a "TCP/IP developers kit" for the required object
136 # libraries and header files.
137 #
138 # Please report modifications, failures (preferably with fixes) or successes
139 # to the author, [email protected].
140 #
141 # TARGETS FOR DIFFERENT UNIX PLATFORMS AND VERSIONS:
142 #
143 # + Marks those that have been built successfully for C-Kermit 9.0 or later.
144 # - Those that once built OK but no longer do (e.g. too big).
145 # ? Those that worked in a previous version but have not been tested recently.
146 # --------------------------
147 # Some commonly used targets:
148 #
149 # + "make -f android.mk" (separate makefile) for Android.
150 # + "make linux" should work for any version of Linux on any hardware.
151 # Note: new "make linux" (2016) not yet widely tested.
152 # Use "make linux-2015" (the old "make linux")
153 # if "make linux" causes problems.
154 # + "make linux+ssl" ditto, with OpenSSL security added.
155 # + "make linux+krb5" ditto, with Kerberos 5 security added.
156 # + "make linux+krb5+ssl" Linux with OpenSSL and Kerberos 5.
157 # Note: the Linux targets work for Raspberry Pi with Debian 7.0 (Raspbian)
158 # + "make netbsd", NetBSD, any version.
159 # + "make netbsd+ssl", NetBSD with OpenSSL 0.9.7 or later.
160 # + "make netbsd+krb5", NetBSD with Kerberos 5.
161 # + "make netbsd+krb5+ssl", NetBSD with Kerberos 5 and OpenSSL 0.9.7 or later.
162 # ? "make freebsd1" for FreeBSD 1.x
163 # ? "make freebsd2" for FreeBSD 2.x
164 # + "make freebsd3" for FreeBSD 3.x
165 # ? "make freebsd4" for FreeBSD 4.0
166 # + "make freebsd", FreeBSD 4.1 or later.
167 # + "make freebsd+ssl", FreeBSD 5.0 or later with OpenSSL 0.9.7 or later.
168 # + "make openbsd", OpenBSD 2.3 or later.
169 # + "make openbsd+ssl", OpenBSD 2.3 or later with OpenSSL 0.9.7 or later.
170 # + "make mirbsd", MirBSD.
171 # + "make mirbsd+ssl", MirBSD with OpenSSL 0.9.7 or later.
172 # More recent macOS re-branded releases for Intel (x86_64) Sierra (10.12),
173 # High Sierra (10.13), Mojave (10.14), Catalina (10.15), and Intel x86_64/ARM
174 # Big Sur (11), Monterey (12)
175 # + "make macos" (without 'x') should be used for 10.12 and later.
176 # + "make macosx" should work for any Mac OS X version up until 10.8 or 10.12.
177 # + "make macosx+krb5+openssl" Mac OS X 10.3.9 or later + Kerberos V + OpenSSL.
178 # + "make aix" should work for any version of AIX 4.2 or later.
179 # + "make aixg" should work for any version of AIX 4.2 or later, using gcc.
180 # + "make aix+ssl" ditto, with OpenSSL (specifying SSLLIB and SSLINC)
181 # + "make aix+ibmssl" ditto, with IBM OpenSSL
182 # + "make solaris9", "make solaris10" for Solaris 9 or 10 with Sun cc.
183 # + "make solaris9g", "make solaris10g" for Solaris 9 or 10 with gcc.
184 # + "make solaris11" for Solaris 11 with Sun CC
185 # + "make solaris11g" for Solaris 11 with gcc
186 # + "make sco_osr600" for SCO OpenServer 6.0.0.
187 #
188 # For other current OSs such as Solaris, HP-UX, and SCO there are separate
189 # targets for different combinations of OS version and compiler; see the
190 # complete list. For older OS's see the complete list. If an old target
191 # doesn't work in this release of C-Kermit you can get a previous release from
192 # the Kermit FTP site: ftp://kermit.columbia.edu/kermit/
193 #
194 # SECURE TARGETS (versions that support authentication and encryption)
195 # are described after the following list. Search for ******* below.
196 #
197 # --------------------------
198 # Complete list (alphabetical):
199 # ? for 386BSD (Jolix) 0.0, 0.1, "make 386bsd" (see comments in entry),
200 # or (preferably, if it works) "make bsd44" or "make bsd44c".
201 # ? for Acorn RISCiX, "make riscix" or "make riscix-gcc"
202 # ? for Alliant FX/8 with Concentrix 4.1 or later, "make bsdlck"
203 # ? for Altos 486, 586, 986 with Xenix 3.0, "make altos"
204 # ? for Altos ACS68000, 8Mhz 68000, UNIX System 3 Rel 2, 512K, "make altos3"
205 # ? for Amdahl UTS 2.4 on IBM 370 series & compatible mainframes, "make uts24"
206 # ? for Amdahl UTSV IBM 370 series & compatible mainframes, "make utsv"
207 # ? for Amdahl UTSV IBM 370 series mainframes with TCP/IP, "make utsvtcp"
208 # ? for Amdahl mainframes with UNIX System V R 5.2.6b 580, "make sys3"
209 # ? for Apollo Aegis 9.x, DOMAIN/IX 9.x, "make aegis"
210 # (Last tested in C-Kermit 5A(189))
211 # ? for Apollo DOMAIN/IX, if the above fails, try "make apollobsd"
212 # ? for Apollo with SR10.0 or later, BSD environment, "make sr10-bsd"
213 # ? for Apollo with SR10.0 or later, System V environment, "make sr10-s5r3"
214 # ? for Apple Macintosh II with A/UX pre-3.0, "make aux", "auxgcc" or "auxufs"
215 # ? for Apple Macintosh with A/UX 3.0 and gcc, "make aux3gcc" or aux3gccc
216 # ? for Apple PowerMac with MkLinux, "make mklinux" (read Linux entry first)
217 # ? for Apple PowerMac with LinuxPPC, "make linuxppc"
218 # ? for Apple Macintosh with Minix 1.5.10, "make minix68k" or "make minixc68"
219 # ? for Apple Macintosh with Mac OS X 1.0 (Rhapsody), "make macosx10"
220 # (no curses), "make macosx10c" (curses), or "make macosx10nc" (ncurses).
221 # Or "make macosx10ncx" (ncurses but "make macosx10nc" doesn't work).
222 # ? for Apple Macintosh with Mac OS X 10.2, "make macosx102nc" (ncurses).
223 # ? for Apple Macintosh with Mac OS X 10.3, "make macosx103"
224 # ? for Apple Macintosh with Mac OS X 10.3.9 or later, "make macosx"
225 # ? for Arix System 90 with AT&T SVR3, "make sys5r3na"
226 # - for AT&T 6300 with IN/ix, "make sys5"
227 # - for AT&T 6300 PLUS, "make att6300" or (with no debugging) "make att6300nd"
228 # ? for AT&T 6386 WGS UNIX PC, "make sys5r3"
229 # ? for AT&T 3B2, 3B20 systems, "make att3b2".
230 # for AT&T 3B1, 7300 UNIX PC (see notes with the entries):
231 # In C-Kermit 7.0, only the gcc entries work:
232 # ? "make sys3upcg", "make sys3upcgc", "make att351gm"
233 # The others fail with "too many defines" (usually in ckuusr.h):
234 # - "make sys3upc", "make sys3upcold", "make sys3upcc", "make sys3upcx",
235 # "make sys3upcm", "make att351m"
236 # ? for AT&T System III/System V R2 or earlier, "make sys3" or "make sys3nid"
237 # ? for AT&T System III/System V with Honey DanBer UUCP, "make sys3hdb"
238 # ? for AT&T System V on DEC VAX, "make sys3" or "make sys5r3"
239 # ? for AT&T System V R3, use "make sys5r3" or "make sys5r3c"
240 # ? for AT&T System V/386 R3.2 built on Interactive 4.1.1, "make sys5r32is".
241 # ? for AT&T System V/386 R320.0 Versyss Systems, use "make sys5r3"
242 # or "make sys5r3c".
243 # ? for AT&T System V R4, "make sys5r4", "make sys5r4sx", or "make sys5r4nx",
244 # or if the ANSI C function prototyping makes trouble, add -DNOANSI,
245 # as in "sys5r4sxna" entry
246 # ? for AT&T (USL) System V R4.2 use the sys5r4* entries.
247 # ? for Atari Falcon with MiNT, "make posix"
248 # ? for Atari ST with Minix ST 1.5.10.3, "make minix68k" or "make minixc68"
249 # ? for BBN C/70 with IOS 2.0, "make c70"
250 # ? for BeBox with Be OS 1.x DR7, "make beboxdr7"
251 # Compiles OK but doesn't link with default linker which is limited to 64K.
252 # Links OK with "Code Warrior Gold". Many hacks in the source code need
253 # to be removed when DR8 and later come out.
254 # (Last tested in C-Kermit 6.0)
255 # - for BeBox with Be OS 1.x DR8, "make bebox"
256 # (Needed functions missing from operating system and/or not working.)
257 # - for Bell Labs UNIX Version 6 (6th Edition), there is no makefile entry.
258 # ? for Bell Labs UNIX Version 7 (7th Edition), "make v7" (but see notes below)
259 # (last built successfully in C-Kermit 5A188)
260 # ? for Bell Labs Research UNIX Version 10, "make bellv10"
261 # (last built successfully in C-Kermit 6.0)
262 # ? for Bell Labs / Lucent Plan 9, use separate makefile ckpker.mk:
263 # can be built for Intel, MIPS, 680x0, and PowerPC (last built C-Kermit 7.0)
264 # ? for BSDI BSD/386 1.x, "make bsdi"
265 # ? for BSDI BSD/OS 2.x, "make bsdi2"
266 # ? for BSDI BSD/OS 3.0 or 3.1, "make bsdi3"
267 # ? for BSDI BSD/OS 4.x, "make bsdi4"
268 # ? for BSDI BSD/OS 4.x, to build a binary that also works on FreeBSD,
269 # "make bsdix".
270 # ? for Berkeley Unix 2.4, "make v7" (but read v7 material below)
271 # ? for Berkeley Unix 2.9 (DEC PDP-11 or Pro-3xx), "make bsd29"
272 # - for Berkeley Unix 2.10, use ckubs2.mak (a separate makefile)
273 # - for Berkeley Unix 2.11, use ckubs2.mak (a separate makefile)
274 # This makefile is too big. Read the instructions in ckubs2.mak.
275 # "make -f ckubs2.mak bsd210" or "make -f ckubs2.mak bsd211".
276 # (last built successfully in C-Kermit 6.0 - later versions too big)
277 # ? for Berkeley Unix 2.11 "make -f ckubs2.mak bsd210noicp" (no command parser)
278 # ? for Berkeley Unix 4.1, "make bsd41"
279 # ? for Berkeley Unix 4.2 on VAX, "make bsd42" or "make bsd42c"
280 # ? for Berkeley Unix 4.2 or 4.3 with HoneyDanBer UUCP, "make bsdhdb"
281 # ? for Berkeley Unix 4.3 on VAX, "make bsd43", "make bsd43nc".
282 # ? for Berkeley Unix 4.3 on VAX, no networking "make bsd43nonet.
283 # ? for Berkeley Unix 4.3 without acucntrl program, "make bsd42" or "bsd42c"
284 # NOTE: all the C-Kermit 7.0 full builds for old BSDs fail with
285 # "too many defines" in CPP, even on big architectures like VAX. This
286 # can be worked around with a clever ruse. See comments at target.
287 # ? for Berkeley Unix 4.3, command-line only, "make bsdm".
288 # ? for Berkeley Unix 4.3-Tahoe, same as 4.3 BSD
289 # ? for Berkeley Unix 4.3-Reno, "make bsd43" or "make bsd44" or "make bsd44c"
290 # ? for Berkeley Unix 4.3-Carson City, "make bsd44" or "make bsd44c"
291 # ? for Berkeley Unix 4.4-Networking/2 or -Alpha, "make bsd44" or "make bsd44c"
292 # ? for Berkeley Unix 4.4, "make bsd44" or "make bsd44c"
293 # ? for Berkeley Unix 4.4-Lite, "make bsd44" or "make bsd44c"
294 # ? for Bull DPX/2 with BOS/X, "make bulldpx2"
295 # ? for Cadmus, "make sys3"
296 # for Caldera, see SCO, Linux.
297 # ? for Callan Unistar, "make sys3"
298 # ? for CDC VX/VE 5.2.1 System V emulation, "make vxve"
299 # ? for Charles River Data Systems Universe 680x0 with UNOS 9.2, maybe
300 # also other UNOS versions, "make crds"
301 # ? for CIE Systems 680/20 with Regulus, "make cie"
302 # ? for Commodore Amiga 3000UX Sys V R4, "make sys5r4sx"
303 # ? for Commodore Amiga 3000UX Sys V R4 and TCP/IP, "make svr4amiganet"
304 # ? for Commodore Amiga with Minix 1.5.10, "make minix68k" of "make minixc68"
305 # ? for Concurrent/Masscomp with RTU 4.0 or later, BSD environment, "make
306 # rtubsd", "make rtubsd2", "make rtubsd3" (depending on where ndir.h
307 # is stored, see entries below).
308 # ? for Concurrent/Masscomp with RTU 4.0 or later, System V R2, "make rtus5"
309 # ? for Concurrent (Perkin-Elmer) 3200 series, "make sys5".
310 # ? for Concurrent (Perkin-Elmer) 3200 series with <dirent.h>, "make ccop1"
311 # ? for Concurrent PowerMAX OS SVR4, "make powermax"
312 # ? for Consensys UNIX SV/386 R4V3, "make sys5r4sxtcpc" or "make sys5r4sx"
313 # ? for Convergent with CTIX Sys V R2, "make sys5"
314 # ? for Convergent with CTIX 6.4.1, "make ctix"
315 # ? for Convex C1, "make convex"
316 # ? for Convex C210 with Convex/OS 8, "make convex8"
317 # ? for Convex C2 with Convex/OS 9.1, "make convex9"
318 # ? for Convex C2 with Convex/OS 10.1 and gcc 2.x, "make convex10gcc"
319 # ? for Cray Research X/MP or YMP or C90 with UNICOS 6.x (System V R3),
320 # "make cray"
321 # ? for Cray Research X/MP or YMP or C90 with UNICOS 7.x (System V R4),
322 # "make cray"
323 # ? for Cray Research X/MP or YMP or C90 with UNICOS 8.0 Alpha, "make cray8"
324 # ? for Cray Research X/MP or Y-MP or C90 with UNICOS 9.0, "make cray9"
325 # ? for Cray Computer Cray-2 or Cray3 with CSOS, "make craycsos"
326 # ? for Cyber 910 (Silicon-Graphics Iris) with Irix 3.3, "irix33"
327 # ? for Data General AViiON with DG/UX 5.4 before R3.00, "make dgux540"
328 # or "make dgux540c"
329 # ? for DG/UX 5.4 on AViiON Intel models, "make dgux540i" or dgux540ic.
330 # ? for DG/UX 5.4R4.11 on AViiON, all models, "make dgux54411"
331 # ? for DG/UX 5.4R4.20 on AViiON, all models, "make dgux54420"
332 # ? for Data General AViiON with DG/UX 4.3x using Sys V-isms, "make dgux430"
333 # ? for Data General AViiON with DG/UX 4.3x using BSD-isms, "make dgux430bsd"
334 # ? for Data General AViiON, earlier UNIX versions, "make sys5r3"
335 # ? for Data General MV systems with DG/UX, ???
336 # ? for Data General MV systems with MV/UX, use AOS/VS C-Kermit (CKDKER.MAK)
337 # ? for Data General MV systems with AOS/VS, use CKDKER.MAK (last = C-K 7.0)
338 # ? for DEC PDP-11 with Berkeley UNIX 2.x, see Berkeley UNIX 2.x.
339 # ? for DEC PDP-11 with Mini-UNIX (Bell 6th Edition for PDP-11 with no MMU),
340 # probably no way to fit C-Kermit without I&D space.
341 # ? for DEC PDP-11 with Ultrix-11 3.x, ??? (probably needs overlays)
342 # ? for DEC VAX with Ultrix 1.x "make bsd"
343 # ? for DEC VAX with Ultrix 2.x "make ultrix2x"
344 # ? for DEC VAX or DECstation with Ultrix 3.0, 3.1, "make ultrix3x"
345 # ? for DECstation or VAX with Ultrix 4.0 or 4.1, "make ultrix40"
346 # ? for DECstation or VAX with Ultrix 4.2, "make ultrix42" or "make ultrix42c"
347 # ? for DECstation or VAX with Ultrix 4.x, POSIX world, "make posix"
348 # ? for DECstation or VAX with Ultrix 4.3, "make ultrix43".
349 # ? for DECstation or VAX with Ultrix 4.4, "make ultrix44".
350 # ? for DECstation 5000/50, /150 or /260 (R4x00 MIPS CPU), Ultrix 4.3A or later
351 # "make ultrix43-mips3" or "make ultrix43c-mips3"
352 # ? for DECstation (MIPS) with Berkeley Sprite, "make bsd44"?
353 # ? for DECstation (MIPS) with OSF/1 V1.0 to 1.3, "make dec-osf"
354 # ? for DEC Alpha with OSF/1 1.0 to 1.3, "make dec-osf"
355 # ? for DEC PC 486 with OSF/1, "make dec-osf"
356 # ? for DEC Alpha with OSF/1 2.x, "make dec-osf20"
357 # ? for DEC Alpha with OSF/1 3.0, "make dec-osf30"
358 # ? for DEC Alpha with Digital UNIX 3.2, "make du32"
359 # ? for DEC Alpha with Digital UNIX 4.0-4.0D, "make du40" or "make du40gcc"
360 # ? for DEC Alpha with Digital UNIX 4.0E or higher, see Tru64.
361 # + for DEC Alpha with any version of DU or OSF/1, "make dec-osf1"
362 # - for DEC Pro-350 with Pro/Venix V1.x, "make provx1" (version 5A is too big)
363 # ? for DEC Pro-380 with Pro/Venix V2.0 (Sys V), "make sys3" or "make sys3nid"
364 # ? for DEC Pro-380 with 2.9, 2.10, or 2.11 BSD, "make bsd29" or "make bsd210"
365 # for DEC PDP-11 with 2.xBSD (use separate makefile ckubs2.mak)
366 # ? for Dell UNIX Issue 2.x (= USL Sys V/386 R4.x + fixes), "make dellsys5r4"
367 # or "make dellsys5r4c" (last tested in C-Kermit 5A).
368 # ? for DIAB DS90 with DNIX (any version) create an empty <sys/file.h> if
369 # this file does not already exist (or add -DNOFILEH to the make entry).
370 # ? for DIAB DS90 with DNIX 5.2 (Sys V.2) or earlier, "make dnix",
371 # "make dnixnd", or (to add curses and TCP/IP) "make dnixnetc",
372 # ? for DIAB DS90 with DNIX 5.3 (Sys V.3), "make dnix5r3"
373 # ? for DIAB DS90 with DNIX 5.3 (Sys V.3) and TCP/IP, "make dnix5r3net"
374 # ? for DIAB DS90 with DNIX 5.3 2.2 (Sys V.3), ANSI C, "make dnix5r3ansi"
375 # or, to include TCP/IP, "make dnix5r3ansinet",
376 # but you have to fix a bug in /usr/include/stdlib.h first:
377 # change "extern void free(char *str);" to "extern void free(void *str);"
378 # ? for Dolphin Server Technology Triton 88/17 with SV/88 R3.2, "make sv88r32"
379 # ? for Encore Multimax 310, 510 with Umax 4.2, "make umax42"
380 # ? for Encore Multimax 310, 510 with Umax 4.3, "make umax43"
381 # ? for Encore Multimax 310, 510 with Umax V 2.2, use Berkeley cc, "make bsd"
382 # ? for Encore 88K with Umax V 5.2, "make encore88k"
383 # ? for ESIX System V R4.0.3 or 4.04 with TCP/IP support, "make esixr4"
384 # NOTE: You can also build on Unixware 2.x with "make esixr4", and run
385 # on ESIX, but there you must first:
386 # ln /usr/lib/libsocket.so /usr/lib/libsocket.so.1
387 # ln /usr/lib/libnsl.so /usr/lib/libnsl.so.1
388 # (This worked for C-Kermit 6.0 but does not work for 7.0)
389 # (But you can probably still build a non-networking version this way)
390 # ? for Everex STEP 386/25 Rev G with ESIX Sys V R3.2D, "make sys5r3"
391 # ? for Fortune 32:16, For:Pro 1.8, "make ft18"
392 # ? for Fortune 32:16, For:Pro 2.1, "make ft21"
393 # ? for FPS 500 with FPX 4.1, "made bsd"
394 # ? for FreeBSD 1.0, "make freebsd1"
395 # ? for FreeBSD 2.x, "make freebsd2" (ncurses) or "make freebsd2c" (curses)
396 # ? for FreeBSD 3.x, "make freebsd3" (ncurses) or "make freebsd3c" (curses)
397 # ? for FreeBSD 4.0, "make freebsd40"
398 # ? for FreeBSD 4.1 or later, "make freebsd"
399 # + NOTE: Just use "make freebsd" for any reasonably recent FreeBSD version.
400 # ? for Harris HCX-2900, "make sys5r3"
401 # ? for Harris Night Hawk 88K or 68K with CX/UX pre-6.1, "make sys5r3"
402 # ? for Harris Night Hawk 88K or 68K with CX/UX 6.1 or later, "make cx_ux"
403 # ? for Heurikon, "make sys3"
404 # ? for HP-3000, MPE/ix, "make posix"?
405 # ? for HP-9000 Series 300 with 4.4BSD, "make bsd44"
406
407 # NOTE: Most of the HP-UX targets were tested successfully in 2010.
408 # Verification needed for C-Kermit 9.0 Beta.01...
409
410 # ? for HP-9000 Series 500, HP-UX 5.21 and no networking "make hpux0500"
411 # ? for HP-9000 Series 500, HP-UX 5.21 with WIN/TCP 1.2 "make hpux0500wintcp"
412 # ? for HP-9000 Series, HP-UX 6.5, without long filenames,
413 # "make hpux0650", "make hpux0650c" or "make hpux0650tcpc"
414 # ? for HP-9000 Series, HP-UX 7.0 or later no long filenames, "make hpux0700sf"
415 # or (to include tcp/ip, curses, etc) "make hpux0700sftcpc"
416 # ? for HP-9000 Series with HP-UX 7.0, TCP/IP,long filenames,"make hpux0700lfn"
417 # ? for HP-9000 300/400 Series (680x0) with HP-UX 8.0, TCP/IP, "make hpux0800"
418 # or "make hpux0800c"
419 # ? for HP-9000 700/800 Series (PA-RISC), HP-UX 8.0, TCP/IP, "make hpux0800pa"
420 # or "make hpux0800pac"
421 # ? for HP-9000 Series with HP-UX 8.0, no TCP/IP, long filenames,
422 # "make hpux0800notcp"
423 # ? for HP-9000 Series, HP-UX 9.0 - 9.10, TCP/IP, curses, restricted compiler
424 # (no optimization, no ANSI), all models, "make hpux0900". Read the
425 # hpux0900 entry below for more info.
426 # ? for HP-9000 700 and 800 Series, HP-UX 9.x, TCP/IP, curses,
427 # HP optimizing ANSI C compiler, "make hpux0900o700".
428 # ? for HP-9000 with Motorola CPUs, HP-UX 9.x, TCP/IP, curses,
429 # HP optimizing ANSI C compiler, "make hpux0900mot".
430 # ? for HP-9000 on other CPUs, HP-UX 9.x, TCP/IP, curses,
431 # HP optimizing ANSI C compiler, "make hpux0900o".
432 # ? for HP-9000 series, HP-UX 9.x, TCP/IP, curses, gcc, all models,
433 # "make hpux0900gcc"
434 # ? for HP-9000 700/800 Series, HP-UX 10.00,10.01,10.10,10.20,10.30, TCP/IP,
435 # curses, restricted compiler (no optimization, no ANSI) "make hpux1000".
436 # ? for HP-9000 700/800 Series, HP-UX 10.00,10.01,10.10,10.20,10.30, TCP/IP,
437 # curses, HP ANSI/optimizing compiler "make hpux1000o" or "make hpux1000o+"
438 # ? for HP-9000 HP-UX 10.00 or later with gcc, "make hpux1000gcc"
439 # ? for Trusted HP-UX 10.xx "make hpux1000t", "make hpux1000to",
440 # or make hpux1000to+"
441 # ? for HP-9000 700/800 Series, HP-UX 11.00,TCP/IP,curses, restricted compiler
442 # (no optimization, no ANSI) "make hpux1100".
443 # ? for HP-9000 700/800 Series, HP-UX 11.00,TCP/IP,curses, restricted compiler
444 # HP ANSI/optimizing compiler "make hpux1100o" or "make hpux1100o+"
445 # ? for Trusted HP-UX 11.xx "make hpux1100t", "make hpux1100to",
446 # make hpux1100to+"
447 # ? for HP-9000 PA-RISC models with NeXTSTEP 3.3, "make nextquadfat".
448 # ? for HP-9000 PA-RISC models with OPENSTEP/Mach 4.1, "make nextquadfat".
449 # ? for IBM 370 Series with IX/370, "make ix370"
450 # ? for IBM 370 Series with AIX/370 1.2, "make aix370"
451 # ? for IBM 370 Series with AIX/370 3.0, "make aix370"
452 # ? for IBM 370 Series with AIX/ESA 2.1, "make aixesa"
453 # - for IBM PC/AT 286 & compatibles with Mark Williams Coherent OS,
454 # command-line-only version, "make coherent" (version 5A & later too big)
455 # ? for IBM PC 386 & compatibles with Mark Williams Coherent OS,
456 # minimum interactive version, "make coherentmi"
457 # ? for IBM PC 386 & compatibles with Mark Williams Coherent OS,
458 # full interactive version, prior to v4.2, "make coherentmax"
459 # ? for IBM PC 386 & compatibles with Mark Williams Coherent OS 4.2,
460 # "make coherent42"
461 # ? for IBM PC 386 & compatibles with LynxOS 2.0 or 2.1, "make lynx21"
462 # ? for IBM PC 386 & compatibles with LynxOS 2.2, "make lynx"
463 # - for IBM PC/AT & compatibles with original MINIX, "make minix" (too big)
464 # ? for IBM PC family, 386-based, with MINIX/386 1.5, "make minix386"
465 # or if you have GNU CC, "make minix386gcc"
466 # ? for IBM PC family, 386-based, with MINIX 2.0, "make minix20"
467 # ? for IBM PC family, 386-based, with MINIX 3.0, "make minix3"
468 # + for IBM PC family, 386-based, with MINIX 3.0, "make minix315"
469 # ? for IBM PS/2 with PS/2 AIX 1.0, 1.1, or 1.2, "make ps2aix" or ps2aixnetc.
470 # ? for IBM PS/2 with PS/2 AIX 1.3, "make ps2aix3"
471 # ? for IBM RISC System/6000 with AIX 3.0, "make aix30"
472 # ? for IBM RISC System/6000 with AIX 3.1.x, "make aix31"
473 # ? for IBM RISC System/6000 with AIX 3.2.0 thru 3.2.5, "make aix32"
474 # ? for IBM RS/6000 or Power Series with AIX 4.1.x, "make aix41"
475 # ? for IBM RS/6000 or Power Series with AIX 4.1.x with gcc, "make aix41g"
476 # ? for IBM RS/6000 or Power Series with AIX 4.1 with X.25, "make aix41x25"
477 # ? for IBM RS/6000 or Power Series with AIX 4.2 or later: "make aix"
478 # (the following "make aixnn" targets are no longer necessary except for gcc)
479 # ? for IBM RS/6000 or Power Series with AIX 4.2, "make aix42"
480 # ? for IBM RS/6000 or Power Series with AIX 4.3, "make aix43" (or aix43gcc)
481 # ? for IBM RS/6000 or Power Series with AIX 4.4, "make aix44" (or aix44gcc)
482 # ? for IBM RS/6000 or Power Series with AIX 4.5, "make aix45" (or aix45gcc)
483 # ? for IBM RS/6000 or Power Series with AIX 5.0, "make aix50" (or aix50gcc)
484 # ? for IBM RS/6000 or Power Series with AIX 5.1, "make aix51" (or aix51gcc)
485 # ? for IBM RS/6000 or Power Series with AIX 5.2, "make aix52" (or aix52gcc)
486 # ? for IBM RS/6000 or Power Series with AIX 5.3, "make aix53" (or aix53gcc)
487 # ? for IBM RS/6000 or Power Series with AIX 6.1, "make aix61" (or aix53gcc)
488 # ? for IBM RT PC with AIX 2.1, "make sys3"
489 # ? for IBM RT PC with AIX 2.2.1, "make rtaix" or "make rtaixc"
490 # ? for IBM RT PC with ACIS 4.2, "make bsd"
491 # ? for IBM RT PC with ACIS 4.3, "make rtacis" or "make bsd KFLAGS=-DNOANSI"
492 # ? for IBM RT PC with 4.3BSD/Reno, "make bsd44" or "make bsd44c"
493 # ? for ICL DRS400 or 400E, "make iclsys5r3"
494 # ? for ICL DRS3000 (80486) with DRS/NX, "make iclsys5r4_486"
495 # ? for ICL DRS6000 (SPARC) with DRS/NX, "make iclsys5r4"
496 # ? for ICL DRS6000 (SPARC) with DRS/NX 4.2MP 7MPlus, "make iclsys5r4m+"
497 # ? Ditto but with IKSD support included, "make iclsys5r4m+iksd"
498 # ? for Integrated Solutions Inc V8S VME 68020, "make isi"
499 # ? for Intel 302 with Bell Tech Sys V/386 R3.2, "make sys5r3"
500 # ? for Intel Xenix/286, "make sco286"
501 # ? for Interactive System III (PC/IX), "make pcix" or "make is3"
502 # ? for Interactive System III (PC/IX) with gcc, "make is3gcc"
503 # ? for Interactive 386/ix 1.0.6 with TCP/IP networking, "make is5r3net2"
504 # ? for Interactive 386/ix 2.0.x, "make is5r3" or (POSIX) "make is5r3p"
505 # ? for Interactive 386/ix 2.0.x with TCP/IP networking, "make is5r3net"
506 # or "make is5r3net2"
507 # ? for Interactive 386/ix 2.2.1, job control, curses, no net, gcc,
508 # "make is5r3gcc"
509 # ? for Interactive UNIX Sys V R3.2 V2.2 - 4.0 without TCP/IP, "make is5r3jc"
510 # ? for Interactive UNIX Sys V R3.2 V2.2 - 4.0 with TCP/IP, "make is5r3netjc"
511 # ? for Intergraph Clipper, "make clix" or "make clixnet"
512 # ? for Jolix (see 386BSD)
513 # + for Linux 1.2 and later, "make linux". Uses ncurses. This version
514 # handles serial speeds up to 460800 bps, Linux FSSTD 1.2, TCP/IP, and
515 # should work on both libc and glibc systems. For static linking, use
516 # "make linux LNKFLAGS=-static". Please read the comments that accompany
517 # the linux entry. As of 8.0.212 Dev.10, this also includes Large File
518 # Support (LFS).
519 # + for Linux builds that fail with "sys/select.h: No such file or directory",
520 # "make linuxns"
521 # + for Linux 1.2 and later but with curses.h and libcurses (rather than
522 # ncurses.h and libncurses), use "make linuxc".
523 # + for Linux 1.2 and later with no curses support at all, "make linuxnc".
524 # + for Linux with no TCP/IP, "make linuxnotcp"
525 # (The following Linux targets are historic and might not work...)
526 # ? for Red Hat Linux 7.1 through RH9, fully configured (krb5, SSL, etc):
527 # "make redhat71", "make redhat72", "make redhat73", "make redhat80"
528 # "make redhat9"
529 # NOTE: You must use this target for Red Hat 7.1 since it
530 # also includes a workaround for its broken curses library.
531 # WARNING: These targets create binaries that include code for
532 # strong encryption and are therefore not exportable. DO NOT PUT
533 # THESE BINARIES ON US OR CANADIAN WEB OR FTP SITES.
534 # ? for Linux on PowerMac (Mklinux DR3), "make mklinux".
535 # ? for Linux 1.2 and later, to build with egcs, "make linuxegcs".
536 # ? for Linux with lcc compiler, no TCP/IP, "make linuxnotcp-lcc"
537 # ? for Linux 1.0 or earlier, "make linux10".
538 # (End old linux targets)
539 # ? for Mach 2.6 on (anything, e.g. DECstation), "make bsd42" or "make bsd43".
540 # ? for MachTen (Tenon) 2.1.1.D on (e.g.) Apple Powerbook, "make machten".
541 # ? for Masscomp RTU AT&T System III, "make rtu"
542 # for other Masscomp, see Concurrent.
543 # ? for Microport SV/AT (System V R2), "make mpsysv" (last edit tested: 144)
544 # ? for Microport SVR4 2.2, 3.1, or 4.1 "make sys5r4sx"
545 # ? for Microsoft,IBM Xenix (/286, PC/AT, etc), "make xenix" or "make sco286"
546 # ? for MIPS System with RISC/os (UMIPS) 4.52 = AT&T SVR3, "make mips"
547 # or "make mipstcpc"
548 # ? for MkLinux on Power Macintosh, "make mklinux"
549 # ? for Modcomp 9730, Real/IX, "make sys5r3" (or modify to use gcc = GLS cc)
550 # ? for Modcomp Realstar 1000 with REAL/IX D.1, "make sv88r32"
551 # ? for Motorola Four Phase, "make sys3" or "make sys3nid"
552 # ? for Motorola Delta System V/68 R3, "make sv68r3"
553 # ? for Motorola Delta System V/68 R3V5, "make sv68r3v5"
554 # ? for Motorola Delta System V/68 R3V5.1, "make sv68r3v51"
555 # ? for Motorola Delta System V/68 R3V6 with NSE TCP/IP, "make sv68r3v6"
556 # ? for Motorola Delta System V/88 R32, "make sv88r32"
557 # ? for Motorola Delta System V/88 R40, "make sv88r40"
558 # ? for Mt Xinu Mach386 on 386/486-based PCs, "make bsd43"
559 # ? for NCR Tower 1632, OS 1.02, "make tower1"
560 # ? for NCR Tower 1632 or Minitower with System V R2, "make sys3"
561 # or "make sys3nv"
562 # ? for NCR Tower 32, OS Release 1.xx.xx, "make tower32-1"
563 # ? for NCR Tower 32, OS Release 2.xx.xx, "make tower32-2"
564 # ? for NCR Tower 32, OS Releases based on Sys V R3, "make tower32"
565 # ? for NCR Tower 32, OS Releases based on Sys V R3 with gcc "make tower32g"
566 # ? for NCR System 3000, AT&T UNIX System V R4 2.0, "make sys5r4sxna"
567 # ? for NCR System 3000, AT&T UNIX System V R4 2.0 with Wollongong TCP/IP,
568 # "make sys5r4net2" or "make sys5r4net2c".
569 # Some header files might be misplaced; try this:
570 # ln /usr/include/netinet/in.h /usr/include/sys/in.h
571 # ln /usr/include/arpa/inet.h /usr/include/sys/inet.h
572 # ln /usr/include/sys/termiox.h /usr/include/termiox.h
573 # ? for NCR System 3000, NCR UNIX 02.02.01, same as above.
574 # ? for NCR MP-RAS System V R4 V2.03 or 3.02, "make mpras" or "make mprastcpc"
575 # + for NetBSD any version on any architecture, "make netbsd"
576 # + for NetBSD with OpenSSL, "make netbsd+ssl"
577 # ? for NetBSD with ncurses specified instead of curses, "make netbsdn"
578 # ? for NetBSD with all curses support omitted, "make netbsdnc"
579 # ? for NeXT with NeXTSTEP 1.0 through 3.2, "make next" (on a NeXT)
580 # ? for NeXT with NeXTSTEP 3.3, "make next33"
581 # ? for NeXT with OPENSTEP/Mach 4.1, "make nextquadfat".
582 # ? for NeXT with OPENSTEP/Mach 4.2, "make openstep42".
583 # ? for NeXTSTEP/486, "make next" (on a PC)
584 # ? for NeXTSTEP portable binary (runs on Intel or Motorola), "make nextfat"
585 # ? for NeXTSTEP portable binary (Intel, Motorola, HP PA-RISC, or SPARC),
586 # "make nextquadfat"
587 # ? for Nixdorf Targon/31, "make t31tos40x"
588 # ? for Norsk Data Uniline 88/17 with SV/88 R3.2, "make sv88r32"
589 # for Novell UnixWare - see UnixWare
590 # ? for OSF/1 (vanilla, from OS/F), "make posix"
591 # ? for OkiStation 7300 Series, "make sys5r4sxtcp"
592 # ? for Olivetti LSX-3020 with X/OS R.2.3, "make xos23" or "make xos23c"
593 # + for OpenBSD, "make openbsd" (also see secure targets listed below).
594 # ? for OPENSTEP/Mach 4.1, "make nextquadfat" (NeXT, Intel, PA-RISC, SPARC)
595 # ? for OPENSTEP/Mach 4.2, "make openstep42" (tested on NeXT)
596 # ? for Perkin-Elmer (Concurrent) 3200 series, "make sys5".
597 # ? for Perkin-Elmer (Concurrent) 3200 series with <dirent.h>, "make ccop1"
598 # ? for Perkin-Elmer/Concurrent 3200 with Xelos R02, "make ccop1"
599 # ? for PFU Compact A Series SX/A TISP V10/E50 (Japan), "make sxae50"
600 # ? for Plexus, "make sys3"
601 # ? for Pyramid 9XXX (e.g. 9845) or MIServer T series, OSx 4.4b thru 5.1,
602 # "ucb make pyramid" or for HDB UUCP, "ucb make pyramid-hdb" or:
603 # ? for Pyramid MIServer S or ES Series, DataCenter/OSx, "make pyrdcosx"
604 # ? for Pyramid MIS-S MIPS R3000, DataCenter OSx System V R4, "make pyrdcosx"
605 # ? for POSIX on anything, "make posix" (but adjustments might be necessary).
606 # NOTE: this target is not very useful - many features are missing.
607 # ? for Prime 8000 MIPS, SVR3, "make mips" or "make mipstcpc"
608 # - for QNX 2.x (sorry we don't have a version of C-Kermit for QNX 2.x)
609 # ? for QNX 4.0 or 4.1, 16-bit, on 286 PC, Watcom C 8.5, "make qnx16_41"
610 # ? for QNX 4.21 - 4.22A (286+), and 4.23 (386+), or higher, 16-bit,
611 # Watcom C 9.5x or higher, "make qnx16"
612 # + for QNX 4.21-4.25, 32-bit, 386 or above, Watcom C 10.6, "make qnx32"
613 # NOTE: ("make qnx" == "make qnx32")
614 # ? for QNX Neutrino 2+, "make qnx_nto2+" (crosscompiled on QNX4 with Watcom C)
615 # ? for QNX 6 = Neutrino 2.xx, "make qnx6"
616 # + for QNX 8.0 x86_64, "make qnx8i"
617 # + for QNX 8.0 ARM64 , "make qnx8a"
618 # ? for Ridge 32 (ROS3.2), "make ridge32"
619 # ? for Samsung MagicStation, "make sys5r4"
620 # ? for SCO Xenix 2.2.1 with development system 2.2 on 8086/8 "make sco86"
621 # ? for SCO Xenix/286 2.2.1 with development system 2.2 on 80286, "make sco286"
622 # NOTE: reportedly this makefile is too long for SCO Xenix/286 make, but it
623 # works with "makeL", or if some of the other make entries are edited out.
624 # ? for SCO Xenix/386 2.2.2, "make sco386"
625 # ? for SCO Xenix/386 2.3.x, "make sco3r2"
626 # ? for SCO Xenix/386 SCO 2.3.3 or 2.3.4 with gcc 1.37 or later,
627 # "make sco386gcc" or (to add curses) "make sco386gccc".
628 # ? for SCO Xenix/386 or UNIX/386 with Excelan TCP/IP, "make sco3r2net"
629 # or (to add curses support) "make sco3r2netc" or "sco386netc"
630 # + for SCO XENIX 2.3.4, "make sco234" or "make sco234c" to add curses.
631 # ? for SCO XENIX 2.3.4 with SCO TCP/IP & curses, "make sco234netc".
632 # ? for SCO Xenix 2.3.x with Racal-InterLan TCP/IP, "make sco3r2netri"
633 # for other UNIX varieties with Racal Interlan TCP/IP, read sco3r2netri entry
634 # ? for SCO Xenix 2.3.x with SCO (Lachman) TCP/IP, "make sco3r2lai"
635 # or (to add curses) "make sco3r2laic"
636 # for SCO UNIX... ALSO READ COMMENTS in the SCO UNIX entries for more info!
637 # ? for SCO UNIX/386 3.2.0 or 3.2.1, "make sco3r2" or "make sco3r2x"
638 # ? for SCO UNIX/386 3.2.2, "make sco3r22" or "make sco3r22gcc"
639 # or "make sco3r22c"
640 # ? for SCO UNIX/386 3.2.2 with SCO TCP/IP, "make sco3r22net"
641 # or "make sco3r22netc" (curses)
642 # ? for SCO ODT 1.1, "make sco3r22net" or "make sco3r22netc" (curses)
643 # ? for SCO UNIX/386 3.2 V4.x, no network support, "make sco32v4"
644 # ? or "make sco32v4ns" (this one uses no select() or sockets library)
645 # ? for SCO UNIX/386 3.2 V4.x with TCP/IP, "make sco32v4net"
646 # (also sco32v4gcc, sco32v4netgcc)
647 # ? for SCO UNIX/386 3.2 V5.0 - see SCO OpenServer.
648 # ? for SCO UNIX 3.2v4.x with TCP/IP, <dirent.h> for Extended Acer File
649 # System (EAFS), curses, ANSI C compilation, "make sco32v4net"
650 # ? or (to use select()-based CONNECT module) "make sco32v4netx".
651 # ? for SCO UNIX 3.2v4.2, "make sco-odt30" (includes TCP/IP).
652 # ? for SCO MPX 3.0 - The SCO UNIX binary runs on the corresponding MPX system.
653 #
654 # NOTE: Also see below for other entries that are variations on these.
655 # Also be sure to read the comments accompanying each SCO entry.
656 # Also see Unixware section.
657 #
658 # ? for SCO ODT 2.0, "make sco32v4net"
659 # ? for SCO ODT 3.0, "make sco-odt30"
660 # ? for SCO OpenServer 5.0 (OSR5), "make sco32v500"
661 # ? for SCO OpenServer 5.0 (OSR5) with networking, "make sco32v500net"
662 # ? for SCO OpenServer 5.0 (OSR5), gcc, "make sco32v500gcc"
663 # ? for SCO OpenServer 5.0 (OSR5), gcc, with networking, "make sco32v500netgcc"
664 # ? for SCO OpenServer 5.0 (OSR5), as above, ELF, "make sco32v500netgccelf"
665 # ? for SCO OpenServer 5.0.2, use "make sco32v502xxx" entries as above.
666 # ? for SCO OpenServer 5.0.4, use "make sco32v504xxx" entries as above.
667 # ? for SCO OpenServer 5.0.5, use "make sco32v505xxx" entries as above.
668 # Use the sco32v505udkxxx entries if you have the UDK rather than /bin/cc.
669 # ? for SCO OpenServer 5.0.6, use "make sco32v506xxx" entries as above.
670 # ? for SCO OpenServer 5.0.6a,use "make sco32v506axxx" entries as above.
671 # ? for SCO OpenServer 5.0.7, use "make sco32v507", "make sco32v507net"
672 # ? for SCO (Univel) UnixWare 1.x, "make unixware" or "make unixwarenetc".
673 # If there are problems with this in C-K 7+ see notes at unixware entry.
674 # + for SCO OpenServer 6.0.0, "make sco_osr600"
675 # ? for SCO UnixWare 2.0.x, "make uw20"
676 # ? for SCO UnixWare 2.1.0, "make uw21"
677 # ? for SCO UnixWare 2.1.3, "make uw213"
678 # + for SCO UnixWare 7, "make uw7" (includes large file support)
679 # ? for SCO UnixWare 7 with IKSD support, "make uw7iksd" or "make uw7iksdudk"
680 # ? for SCO UnixWare 7 with OpenSSL, "make uw7ssl"
681 # ? for SCO (Caldera) Open UNIX 8, "make ou8"
682 # ? for Sharp Zaurus SL5500 PDA, "make zsl5500".
683 # ? for Sequent with DYNIX/ptx 1.2.1, "make dynixptx12"
684 # ? for Sequent with DYNIX/ptx 1.3 or 1.4 with TCP/IP, "make dynixptx13"
685 # ? for Sequent with DYNIX/ptx 2.0 or 2.1 with TCP/IP, "make dynixptx20"
686 # or "dynixptx20c"
687 # ? for Sequent with DYNIX/ptx 2.1.6 on i486, "dynixptx216c"
688 # ? for Sequent with DYNIX/ptx V4.1.3 with TCP/IP, "make dynixptx41c"
689 # ? for Sequent with DYNIX/ptx V4.4.2 with TCP/IP, "make dynixptx44"
690 # ? for Sequent Balance 8000 or B8 with DYNIX 3.0.xx, "make dynix3"
691 # or "make dynix3noacu"
692 # ? for Sequent Symmetry S81 with DYNIX 3.0.xx, "make dynix3"
693 # ? for Sequent DYNIX 3.1.xx, "make dynix31" or "make dynix31c"
694 # ? for Siemens/Nixdorf SINIX-L Intel V5.41, "make sinix541i"
695 # + for Siemens/Nixdorf SINIX-N MIPS V5.42, "make sinix542"
696 # ? for Siemens/Nixdorf SINIX-P MIPS V5.42 with gcc, "make sinix542g"
697 # ? for Siemens/Nixdorf SINIX-Z Intel V5.42, "make sinix542i"
698 # ? for Siemens/Nixdorf Reliant UNIX V5.43, "make sni543"
699 # ? for Siemens/Nixdorf Reliant UNIX V5.44, "make sni544"
700 # ? for Silicon Graphics Iris System V IRIX 3.2 or earlier, "make iris"
701 # ? for Silicon Graphics Sys V R3 with IRIX 3.3 or later, "make sys5r3"
702 # ? for Silicon Graphics Iris Indigo with IRIX 4.0 or 5.0, "make irix40" or
703 # (to include Yellow Pages and Curses) "make irix40ypc"
704 # ? for Silicon Graphics Iris Indigo or Elan with IRIX 4.0.x with microcode
705 # optimization and -O4, "make irix40u" or "irix40uc" (and read notes
706 # accompanying these entries).
707 # ? for Silicon Graphics IRIX 5.1, "make irix51" or "irix51x" (no optimize)
708 # ? for Silicon Graphics IRIX 5.2, "make irix52"
709 # ? for Silicon Graphics IRIX 5.3, "make irix53" or "irix53x" (no optimize)
710 # ? for Silicon Graphics IRIX 6.0, "make irix60".
711 # ? for Silicon Graphics IRIX 6.2, "make irix62".
712 # ? for Silicon Graphics IRIX 6.3, "make irix63".
713 # ? for Silicon Graphics IRIX 6.4, "make irix64" or "make irix64gcc".
714 # + for Silicon Graphics (SGI) IRIX 6.5, "make irix65"
715 # + or "make irix65mips2" to force MIPS2, or "make irix65gcc" for GCC.
716 # + for Silicon Graphics (SGI) IRIX 6.5, "make irix65" or "make irix65mips2"
717 # ? for SGI IRIX 6.5 with SSL/TLS, SRP, and ZLIB "make irix65+ssl+srp+zlib"
718 # ? for Solaris 2.0-2.3 on SPARC or Intel, SunPro CC, "make solaris2x",
719 # ? or to add SunLink X.25 8.0x support, "make solaris2x25".
720 # ? for Solaris 2.4 built with gcc, "make solaris24g".
721 # ? for Solaris 2.0-2.3 on SPARC or Intel, GNU CC, "make solaris2xg".
722 # ? for Solaris 2.4 with X.25, "make solaris24x25".
723 # ? for Solaris 2.5 on SPARC or Intel, SunPro CC, "make solaris25".
724 # ? or to add SunLink X.25 8.0x support, "make solaris25x25".
725 # ? for Solaris 2.5 on SPARC or Intel, GNU CC, "make solaris25g".
726 # ? for Solaris 2.6 on SPARC or Intel, "make solaris26".
727 # ? for Solaris 7 on SPARC or Intel, SunPro CC, "make solaris7".
728 # ? for Solaris 7 on SPARC or Intel, GNU CC, "make solaris7g".
729 # ? for Solaris 8 on SPARC or Intel, SunPro CC, "make solaris8".
730 # ? for Solaris 8 on SPARC or Intel, GNU CC, "make solaris8g".
731 # + for Solaris 9 on SPARC (or Intel?), 32-bit, SunPro CC, "make solaris9".
732 # + for Solaris 9 on SPARC (or Intel?), 32-bit, GNU CC, "make solaris9g".
733 # ? for Solaris 9 on SPARC (or Intel?), 64-bit, GNU CC, "make solaris9g64".
734 # + for Solaris 10 on SPARC (or Intel?), 32-bit, SunPro CC, "make solaris10".
735 # + for Solaris 10 on SPARC 64-bit, SunPro CC, "make solaris10_64".
736 # + for Solaris 10 on SPARC (or Intel?), 32-bit, GNU CC, "make solaris10g".
737 # ? for Solaris 10 on SPARC (or Intel?), 64-bit, GNU CC, "make solaris10g64".
738 # ? for Solbourne 4/500 with OS/MP 4 "make sunos4"
739 # ? for Solbourne 4/500 with OS/MP 4.1 "make sunos41" or "make sunos41c"
740 # ? for SONY NEWS with NEWS-OS 4.0.1C, "make sonynews"
741 # ? for SONY NEWS with NEWS-OS 4.1.2C, "make sonynews"
742 # ? for Sperry/UNISYS 5000/20, UTS V 5.2 3R1, "make sys5"
743 # ? for Sperry/UNISYS 5000/30/35/50/55, UTS V 5.2 2.01, "make unisys5r2"
744 # ? for Sperry/UNISYS 5000/80 with System V R3, "make sys5r3"
745 # ? for Sperry/UNISYS 5000/95 with System V R3, "make sys5r3"
746 # For UNISYS SVR3 it might be necessary to "make sys5r3 KFLAGS=-UDYNAMIC"
747 # ? for Stardent 1520, "make sys5r3"
748 # ? for Stratus FTX 2.x, try "make ftx" or else "make sys5r4" or "sys5r4sx"
749 # ? for Stratus FTX 3.x, PA-RISC 1.0 or 2.0, "make ftx" or "make ftxtcp"
750 # ? for Sun with Sun UNIX 3.5 and gcc, "make sunos3gcc"
751 # ? for Sun with pre-4.0 SunOS versions, "make bsd" (or appropriate variant)
752 # ? for Sun with SunOS 4.0, BSD environment, "make sunos4"
753 # ? for Sun with SunOS 4.0, BSD, with SunLink X.25, make sunos4x25
754 # ? for Sun with SunOS 4.1 or 4.1.1, BSD environment, "make sunos41"
755 # or "make sunos41c" (curses) or "make sunos41gcc" (compile with gcc)
756 # ? for Sun with SunOS 4.1.x, BSD, with SunLink X.25 7.00 or earlier,
757 # "make sunos41x25" or "make sunos41x25c" (curses)
758 # ? for Sun with SunOS 4.1, 4.1.1, AT&T Sys V R3 environment, "make sunos41s5"
759 # ? for Sun with SunOS 4.1.2, "make sunos41" or any of its variations.
760 # NOTE: All SunOS 4.x systems -- Shared libraries are used by default.
761 # If this causes problems, add -Bstatic to CFLAGS.
762 # NOTE2: When building C-Kermit under SunOS for the BSD universe,
763 # but /usr/5bin/cc is ahead of /usr/ucb/cc in your PATH, add
764 # "CC=/usr/ucb/cc CC2=/usr/ucb/cc" to the make entry.
765 # NOTE3: If an executable built on one type of Sun hardware does not work
766 # on another type, rebuild the program from source on the target machine.
767 # for Sun with Solaris 1.x use SunOS 4.1 entries.
768 # for Sun with Solaris 2.0 and higher use Solaris entries.
769 # + for Sun SPARC with Linux, "make linux"
770 # ? for Sun SPARC with OPENSTEP/Mach 4.1, "make nextquadfat"
771 # ? for Sun SPARC with OPENSTEP/Mach 4.2, "make openstep42"
772 # - for Tandy 16/6000 with Xenix 3.0, "make trs16" (C-Kermit 7.0 is too big)
773 # ? for Tektronix 6130/4132/43xx (e.g.4301) with UTek OS, "make utek"
774 # or (for models without hardware flow control), "make uteknohwfc"
775 # ? for Tektronix XD88 series with UTekV OS, "make utekvr3"
776 # ? for Tri Star Flash Cache with Esix SVR3.2, "make sys5r3"
777 # NOTE: The Tru64 builds have been failing since 2010, but "make dec-osf" is OK
778 # ? for Tru64 UNIX 4.0E, "make tru64-40e"
779 # ? for Tru64 UNIX 4.0F, "make tru64-40f"
780 # ? for Tru64 UNIX 4.0G, "make tru64-40g"
781 # ? for Tru64 UNIX 5.0A, "make tru64-50a"
782 # ? for Tru64 UNIX 5.1A, "make tru64-51a"
783 # ? for Tru64 UNIX 5.1B, "make tru64-51b"
784 # ? for Unistar, "make sys5"
785 # ? for Unisys S/4040 68040 CTIX SVR3.2 6.4.1, "make ctix" or "make sys5r3"
786 # ? for Unisys U5000 UNIX SVR3 6.x, "make sys5r3" or "make sys5r3c"
787 # ? for Unisys U6000 UNIX SVR4 1.x, "make sys5r4nx" or "make sys5r4nxnetc"
788 # for Unisys ... (also see Sperry)
789 # for Univel - see UnixWare
790 # for Unixware - see SCO
791 # ? for Valid Scaldstar, "make valid"
792 # ? for Whitechapel MG01 Genix 1.3, "make white"
793 # ? for Zilog ZEUS 3.21, "make zilog"
794 #
795 # The result should be a runnable program called "wermit" in the current
796 # directory. After satisfactory testing, you can rename wermit to "kermit"
797 # and put it in some directory that's in everybody's PATH, such as
798 # /usr/local or /opt/local.
799 #
800 # To remove intermediate and object files, "make clean".
801 # If your C compiler produces files with an extension other than "o",
802 # then "make clean EXT=u", "make clean EXT=s", or whatever.
803 #
804 # To run lint on the source files, "make lintsun", "make lintbsd",
805 # "make lints5", as appropriate.
806 #
807 # ******************************
808 # SECURE TARGETS
809 #
810 # Beginning with C-Kermit 7.0, secure targets are included, as are the
811 # source modules (ckuat*.[ch], ck_*.[ch]) needed to build them. Secure
812 # target names are like the regular names, but with security features
813 # indicated by plus (+) signs. The features are:
814 #
815 # krb4 MIT Kerberos IV
816 # krb5 MIT Kerberos V
817 # openssl OpenSSL (SSL/TLS)
818 # zlib ZLIB compression for SSL/TLS
819 # srp Stanford Secure Remote Password
820 # pam PAM (pluggable authentication module)
821 # shadow Shadow Password File
822 #
823 # You can build these targets if you have the Kermit source files and the
824 # required libraries (Kerberos, OpenSSL, SRP, etc) and header files. See:
825 # http://www.columbia.edu/kermit/security.html
826 # for specific details regarding supported versions.
827 #
828 # NOTE: OpenSSL 0.9.6 and earlier are not compatible with 0.9.7 and later.
829 # C-Kermit code was originally designed for 0.9.6. To build with 0.9.7 you
830 # must add -DOPENSSL_097 to avoid missing symbols in the DES library and to
831 # use the entry points that were renamed to avoid conflict with Kerberos 4.
832 # If you have OpenSSL 0.9.8, add -DOPENSSL_098, which is a synonym for
833 # -DOPENSSL_097. If you have 1.0.0 or later, add -DOPENSSL_100, which is
834 # another synonym.
835
836 # In OpenSSL builds add -ldl if you get unresolved references for
837 # dlopen, dlclose, dlsym, and/or dlerror.
838 #
839 # In order to build a secure version of Kermit, you need to know the location
840 # of the header (include) files and libraries for the desired form of
841 # security. Unless you specify a location, this makefile looks in /usr/local
842 # and if the required files are not found, the build fails.
843 #
844 # If the secure headers and libraries are not on your computer, you have
845 # to download and install them, for example from http://www.openssl.org .
846 #
847 # The following symbols are used to specify library and header file locations.
848 # prefix statement changed in 10.0 Beta.06 to allow prefix to be specified
849 # from the make command line e.g. $ env PREFIX=/usr/pkg make install.
850 # October 2022.
851 #
852 prefix = $${PREFIX:-/usr/local}
853 srproot = $(prefix)
854 sslroot = $(prefix)
855 manroot = $(prefix)
856
857 # The default Kerberos settings seem to be based on AIX, Irix, and Solaris
858 # but are not appropriate for (e.g.) Linux.
859
860 K4LIB=-L/usr/kerberos/lib
861 K4INC=-I/usr/kerberos/include
862 K5LIB=-L/usr/kerberos/lib
863 K5INC=-I/usr/kerberos/include
864 SRPLIB=-L$(srproot)/lib
865 SRPINC=-I$(srproot)/include
866 SSLLIB=-L$(sslroot)/ssl/lib
867 SSLINC=-I$(sslroot)/ssl/include
868
869 # To override these assignments; for example, if your OpenSSL files are
870 # not in /usr/local/ssl, invoke the desired target like this:
871 #
872 # make solaris9+openssl "SSLINC=-I/opt/openssl-0.9.8k/include" \
873 # "SSLLIB=-L/opt/openssl-0.9.8k/lib"
874 #
875 # (don't set the variables and then do "make -e" because that breaks
876 # chaining of makefile targets.)
877 #
878 # Here are some up-to-date secure targets as of Sep 2009:
879 #
880 # aix+openssl: IBM AIX 4.2 or later with OpenSSL
881 # freebsd44+srp+openssl FreeBSD 4.4 with SRP and OpenSSL
882 # freebsd50+openssl FreeBSD 5.0 with OpenSSL
883 # hpux1100o+openssl: HP-UX 11.xx with OpenSSL
884 # hpux1000gcc+openssl: HP-UX 10.xx with OpenSSL (build with gcc)
885 # hpux1100gcc+openssl: HP-UX 11.xx with OpenSSL (build with gcc)
886 # irix6x+krb5: IRIX 6.x with Kerberos V
887 # irix65+krb5: etc etc...
888 # solaris9+openssl Solaris 9,10, or 11 with Openssl (Sun cc)
889 # solaris9g+openssl Solaris 9,10, or 11 with Openssl (gcc)
890 # linux+ssl OpenSSL only
891 # linux+krb5+ssl Linux with Kerberos 5 and OpenSSL
892 # linux+krb5: Kerberos 5 only
893 #
894 # The following secure Linux targets have not been updated or tested recently.
895 # linux+krb5+krb4:
896 # linux+srp:
897 # linux+srp+pam:
898 # linux+srp+gmp:
899 # linux+srp+gmp+no-des:
900 # linux+srp+gmp-export:
901 # linux+srp+gmp+pam:
902 # linux+shadow+pam:
903 # linux+openssl:
904 # linux+openssl+shadow:
905 # linux+openssl+zlib+shadow+pam:
906 # linux+srp+openssl:
907 # linux+krb5+krb4+srp:
908 # linux+krb5+krb4+srp+openssl:
909 # linux+krb5+krb4+openssl:
910 # linux+krb5+krb4+openssl+shadow:
911 # linux+krb5+krb4+openssl+zlib+shadow:
912 # linux+krb5+krb4+srp-export:
913 # linux+krb5+krb4+srp+pam:
914 # linux+krb5+krb4+srp+openssl+pam-debug:
915 # linux+krb5+krb4+srp+openssl+pam:
916 # linux+krb5+krb4+srp+openssl+zlib+pam:
917 # linux+krb5+krb4+openssl+shadow+pam:
918 # linux+krb5+openssl+zlib+shadow+pam:
919 #
920 # The following have not been tested recently either and might
921 # need adjustment.
922 #
923 # macosx+krb5+ssl: Mac OS X 10.3.9 or later + OpenSSL and Kerberos 5
924 # macosx103+secure: This one is probably redundant
925 # netbsd+openssl: NetBSD with OpenSSL
926 # openbsd30+ssl: OpenBSD 3.0 with OpenSSL
927 # redhat71,redhat72,redhat73,redhat80,redhat9 (Krb5,OpenSSL,Showdow,PAM,Zlib)
928 # sco32v500net+ssl:
929 # sco32v505net+ssl:
930 # solaris2x+krb4:
931 # solaris2xg+krb4:
932 # solaris2xg+openssl+pam+shadow:
933 # solaris2xg+openssl+zlib+pam+shadow:
934 # solaris2xg+krb5+krb4+openssl+shadow:
935 # solaris25+krb4:
936 # solaris25g+krb4:
937 # solaris26g+openssl:
938 # solaris8g+openssl+zlib+pam+shadow:
939 # solaris8g+krb4:
940 # solaris9g+openssl+zlib+pam+shadow:
941 # solaris9g+openssl+shadow+pam+zlib
942 # sunos41gcc+krb4: SunOS 4.1 built with gcc with Kerberos IV
943 # sunos41gcc+openssl: SunOS 4.1 built with gcc with OpenSSL
944 # sunos41gcc+krb4+openssl: ...with Kerberos IV and OpenSSL
945 # sunos41gcc+krb4+openssl+zlib: ditto, plus ZLIB compression
946 # sunos41gcc+krb4+srp+openssl+zlib: ditto, plus SRP
947 # sunos41gcc+srp+openssl+zlib:
948 # tru64-51b-openssl: Tru64 (Digital) Unix 5.1B with OpenSSL
949 # uw7ssl Unixware 7 with SSL
950 #
951 ###########################################################################
952 #
953 # Compile and Link variables:
954 #
955 # EXT is the extension (file type) for object files, normally o.
956 # See MINIX entry for what to do if another filetype must be used.
957 #
958 EXT=o
959 #LNKFLAGS=
960 SHAREDLIB=
961 CC= cc
962 CC2= cc
963 MAKE= make
964 SHELL=/bin/sh
965
966 ###########################################################################
967 # (Ancient) UNIX V7-specific variables.
968 # These are set up for Perkin-Elmer 3230 V7 Unix:
969 #
970 PROC=proc
971 DIRECT=
972 NPROC=nproc
973 NPTYPE=int
974 BOOTFILE=/edition7
975 #
976 # ( For old Tandy TRS-80 Model 16A or 6000 V7-based Xenix, use PROC=_proc,
977 # DIRECT=-DDIRECT, NPROC=_Nproc, NPTYPE=short, BOOTFILE=/xenix )
978 #
979
980 ###########################################################################
981 # SAMPLE INSTALLATION SCRIPT
982 #
983 # Modify to suit your own computer's file organization and permissions. If
984 # you don't have write access to the destination directories, "make install"
985 # fails. In most cases, a real installation also requires you to chown /
986 # chgrp the Kermit binary for the UUCP lockfile and/or tty devices, and
987 # perhaps also to chmod +s the corresponding permission fields.
988 #
989 # Default binary, man, and doc directories are supplied below. You can
990 # override them in your 'make' command. Examples:
991 #
992 # make install # Accept defaults.
993 # make "INFODIR=/usr/share/lib/kermit" install # Override INFODIR default.
994 #
995 # You can also build and install in one step, e.g.:
996 #
997 # make linux install
998 #
999 # If you use the 'install' target to install C-Kermit, it creates an
1000 # UNINSTALL script that can be used to uninstall it.
1001 #
1002 WERMIT = makewhat
1003 BINARY = wermit
1004 DESTDIR =
1005 BINDIR = $(prefix)/bin
1006 MANDIR = $(manroot)/man/man1
1007 MANEXT = 1
1008 SRCDIR =
1009 INFODIR =
1010 CERTDIR =
1011
1012 TEXTFILES = COPYING.TXT ckcbwr.txt ckubwr.txt ckuins.txt ckccfg.txt \
1013 ckcplm.txt ckermit.ini ckermod.ini ckermit70.txt ckermit80.txt
1014
1015 # How many targets?
1016 count:
1017 @grep -c '^[^#[:space:]].*:' makefile
1018
1019 # List all targets
1020 list:
1021 @grep '^[^#[:space:]].*:' makefile | sed 's/:.*$/:/'
1022 # @grep '^[^#[:space:]].*:' makefile
1023
1024 ALL = $(WERMIT)
1025
1026 all: $(ALL)
1027
1028 .c.o:
1029 $(CC) $(CFLAGS) -DKTARGET=\"$(KTARGET)\" -c $<
1030 @printf '%s' '$(CC)' > .buildcc.cache
1031 @printf '%s' '$(CFLAGS)' > .buildflags.cache
1032
1033 # Run the test suite
1034 test:
1035 python3 -m pytest $(PYTEST_ARGS)
1036
1037 # Run C unit tests
1038 #
1039 # CFLAGS is not available here: it only exists as a command-line override
1040 # inside the recursive "make" invocation of the platform target (e.g.
1041 # "linux+ssl", "macos+ssl") that built the real binary, and that value is
1042 # gone once that invocation exits. The .c.o rule above stashes the CC and
1043 # CFLAGS it was last given in .buildcc.cache / .buildflags.cache, and we
1044 # read them back here so the unit tests are compiled with the same macros
1045 # as ckclib.$(EXT), which they link against.
1046 unit-test:
1047 @if [ ! -f ckclib.$(EXT) ]; then \
1048 echo "Error: ckclib.$(EXT) not found. Please build a target first (e.g., 'make linux')."; \
1049 exit 1; \
1050 fi
1051 @if [ ! -f .buildflags.cache ]; then \
1052 echo "Error: .buildflags.cache not found. Please build a target first (e.g., 'make linux')."; \
1053 exit 1; \
1054 fi
1055 @$(MAKE) "CC=`cat .buildcc.cache`" "CFLAGS=`cat .buildflags.cache`" \
1056 tests/unit/bin/test_lib tests/unit/bin/test_strings \
1057 tests/unit/bin/test_net tests/unit/bin/test_mpsafe \
1058 tests/unit/bin/test_zfnqfp tests/unit/bin/test_hasdotdot \
1059 tests/unit/bin/test_rq_confirm tests/unit/bin/test_fnsplit
1060 ./tests/unit/bin/test_lib
1061 ./tests/unit/bin/test_strings
1062 ./tests/unit/bin/test_net
1063 ./tests/unit/bin/test_mpsafe
1064 ./tests/unit/bin/test_zfnqfp
1065 ./tests/unit/bin/test_hasdotdot
1066 ./tests/unit/bin/test_rq_confirm
1067 ./tests/unit/bin/test_fnsplit
1068
1069 # Rules for the unit test binaries.
1070 #
1071 # These are written out explicitly, one per binary, rather than as a
1072 # GNU-style "%" pattern rule: FreeBSD and NetBSD build with their native
1073 # make (bmake), not GNU make, and bmake does not understand "%" pattern
1074 # rules or the $(shell ...) function. Under bmake, the old pattern rule
1075 # was silently ignored and "tests/unit/bin/test_lib: ckclib.$(EXT)"
1076 # became a no-op prerequisite-only rule, so "make check" tried to run a
1077 # test binary that had never been built. The pkg-config lookup is done
1078 # by the shell at recipe time instead of via $(shell ...), which keeps
1079 # this portable to both GNU make and bmake.
1080 CHECK_LIBS_CMD = pkg-config --cflags --libs check 2>/dev/null || \
1081 echo "-pthread -lcheck_pic -lrt -lm -lsubunit"
1082
1083 tests/unit/bin/test_lib: tests/unit/test_lib.c ckclib.$(EXT)
1084 @mkdir -p tests/unit/bin
1085 CHECKLIBS=`$(CHECK_LIBS_CMD)`; \
1086 $(CC) $(CFLAGS) -I. tests/unit/test_lib.c ckclib.$(EXT) -o $@ $$CHECKLIBS
1087
1088 tests/unit/bin/test_strings: tests/unit/test_strings.c ckclib.$(EXT)
1089 @mkdir -p tests/unit/bin
1090 CHECKLIBS=`$(CHECK_LIBS_CMD)`; \
1091 $(CC) $(CFLAGS) -I. tests/unit/test_strings.c ckclib.$(EXT) -o $@ $$CHECKLIBS
1092
1093 # test_net exercises a handful of address-family-independent helper
1094 # functions (ck_straddr, ck_getport, ck_setport) that live in
1095 # ckcnet.c. Unlike ckclib.c, ckcnet.c as a whole is not self-contained.
1096 # Linking a test binary against the ordinary
1097 # ckcnet.$(EXT) the way test_lib/test_strings link against ckclib.$(EXT)
1098 # fails with undefined references from code this test never calls.
1099 # Instead, ckcnet.c is recompiled here with -ffunction-sections/
1100 # -fdata-sections and linked with --gc-sections, so the linker drops
1101 # every function this test doesn't actually reach (and their
1102 # now-irrelevant external references) before checking for undefined
1103 # symbols. The functions under test have no dependencies of their own
1104 # beyond libc and ckstrncpy(), so this
1105 # resolves cleanly. ck_splithostport() additionally calls ckstrncpy(),
1106 # from ckclib.c. Unlike ckcnet.o, the ordinary production ckclib.$(EXT)
1107 # is not itself built with -ffunction-sections, so its sections cannot
1108 # be pruned by --gc-sections and it drags in its own undefined
1109 # references. Recompiling ckclib.c
1110 # here the same way as ckcnet.c avoids needing those stubs.
1111 tests/unit/bin/test_net: tests/unit/test_net.c ckcnet.c ckcnet.h ckclib.c
1112 @mkdir -p tests/unit/bin
1113 CHECKLIBS=`$(CHECK_LIBS_CMD)`; \
1114 case `uname -s` in \
1115 Darwin) GCSECTIONS="-Wl,-dead_strip" ;; \
1116 *) GCSECTIONS="-Wl,--gc-sections" ;; \
1117 esac; \
1118 $(CC) $(CFLAGS) -I. -ffunction-sections -fdata-sections \
1119 -c ckcnet.c -o tests/unit/bin/ckcnet_test.$(EXT); \
1120 $(CC) $(CFLAGS) -I. -ffunction-sections -fdata-sections \
1121 -c ckclib.c -o tests/unit/bin/ckclib_test.$(EXT); \
1122 $(CC) $(CFLAGS) -I. -ffunction-sections -fdata-sections \
1123 tests/unit/test_net.c tests/unit/bin/ckcnet_test.$(EXT) \
1124 tests/unit/bin/ckclib_test.$(EXT) \
1125 -o $@ $$GCSECTIONS $$CHECKLIBS
1126
1127 # test_mpsafe exercises mpsafe(), which lives in ckcpro.c. Same
1128 # -ffunction-sections and -fdata-sections plus
1129 # --gc-sections approach as test_net, and for the same reason.
1130 tests/unit/bin/test_mpsafe: tests/unit/test_mpsafe.c ckcpro.c ckcfnp.h
1131 @mkdir -p tests/unit/bin
1132 CHECKLIBS=`$(CHECK_LIBS_CMD)`; \
1133 case `uname -s` in \
1134 Darwin) GCSECTIONS="-Wl,-dead_strip" ;; \
1135 *) GCSECTIONS="-Wl,--gc-sections" ;; \
1136 esac; \
1137 $(CC) $(CFLAGS) -I. -ffunction-sections -fdata-sections \
1138 -c ckcpro.c -o tests/unit/bin/ckcpro_test.$(EXT); \
1139 $(CC) $(CFLAGS) -I. -ffunction-sections -fdata-sections \
1140 tests/unit/test_mpsafe.c tests/unit/bin/ckcpro_test.$(EXT) \
1141 -o $@ $$GCSECTIONS $$CHECKLIBS
1142
1143 tests/unit/bin/test_zfnqfp: tests/unit/test_zfnqfp.c ckufio.c ckclib.c ckcfnp.h
1144 @mkdir -p tests/unit/bin
1145 CHECKLIBS=`$(CHECK_LIBS_CMD)`; \
1146 case `uname -s` in \
1147 Darwin) GCSECTIONS="-Wl,-dead_strip" ;; \
1148 *) GCSECTIONS="-Wl,--gc-sections" ;; \
1149 esac; \
1150 $(CC) $(CFLAGS) -I. -ffunction-sections -fdata-sections \
1151 -c ckufio.c -o tests/unit/bin/ckufio_test.$(EXT); \
1152 $(CC) $(CFLAGS) -I. -ffunction-sections -fdata-sections \
1153 -c ckclib.c -o tests/unit/bin/ckclib_test_zfnqfp.$(EXT); \
1154 $(CC) $(CFLAGS) -I. -ffunction-sections -fdata-sections \
1155 tests/unit/test_zfnqfp.c tests/unit/bin/ckufio_test.$(EXT) \
1156 tests/unit/bin/ckclib_test_zfnqfp.$(EXT) \
1157 -o $@ $$GCSECTIONS $$CHECKLIBS
1158
1159 tests/unit/bin/test_hasdotdot: tests/unit/test_hasdotdot.c ckcfns.c ckcfnp.h
1160 @mkdir -p tests/unit/bin
1161 CHECKLIBS=`$(CHECK_LIBS_CMD)`; \
1162 case `uname -s` in \
1163 Darwin) GCSECTIONS="-Wl,-dead_strip" ;; \
1164 *) GCSECTIONS="-Wl,--gc-sections" ;; \
1165 esac; \
1166 $(CC) $(CFLAGS) -I. -ffunction-sections -fdata-sections \
1167 -c ckcfns.c -o tests/unit/bin/ckcfns_test.$(EXT); \
1168 $(CC) $(CFLAGS) -I. -ffunction-sections -fdata-sections \
1169 tests/unit/test_hasdotdot.c tests/unit/bin/ckcfns_test.$(EXT) \
1170 -o $@ $$GCSECTIONS $$CHECKLIBS
1171
1172 tests/unit/bin/test_rq_confirm: tests/unit/test_rq_confirm.c ckcfns.c ckcfnp.h
1173 @mkdir -p tests/unit/bin
1174 CHECKLIBS=`$(CHECK_LIBS_CMD)`; \
1175 case `uname -s` in \
1176 Darwin) GCSECTIONS="-Wl,-dead_strip" ;; \
1177 *) GCSECTIONS="-Wl,--gc-sections" ;; \
1178 esac; \
1179 $(CC) $(CFLAGS) -I. -ffunction-sections -fdata-sections \
1180 -c ckcfns.c -o tests/unit/bin/ckcfns_test_rq.$(EXT); \
1181 $(CC) $(CFLAGS) -I. -ffunction-sections -fdata-sections \
1182 tests/unit/test_rq_confirm.c \
1183 tests/unit/bin/ckcfns_test_rq.$(EXT) \
1184 -o $@ $$GCSECTIONS $$CHECKLIBS
1185
1186 tests/unit/bin/test_fnsplit: tests/unit/test_fnsplit.c ckuusx.c ckucmd.c \
1187 ckclib.c ckcfnp.h
1188 @mkdir -p tests/unit/bin
1189 CHECKLIBS=`$(CHECK_LIBS_CMD)`; \
1190 case `uname -s` in \
1191 Darwin) GCSECTIONS="-Wl,-dead_strip" ;; \
1192 *) GCSECTIONS="-Wl,--gc-sections" ;; \
1193 esac; \
1194 $(CC) $(CFLAGS) -I. -ffunction-sections -fdata-sections \
1195 -c ckuusx.c -o tests/unit/bin/ckuusx_test_fs.$(EXT); \
1196 $(CC) $(CFLAGS) -I. -ffunction-sections -fdata-sections \
1197 -c ckucmd.c -o tests/unit/bin/ckucmd_test_fs.$(EXT); \
1198 $(CC) $(CFLAGS) -I. -ffunction-sections -fdata-sections \
1199 -c ckclib.c -o tests/unit/bin/ckclib_test_fs.$(EXT); \
1200 $(CC) $(CFLAGS) -I. -ffunction-sections -fdata-sections \
1201 tests/unit/test_fnsplit.c \
1202 tests/unit/bin/ckuusx_test_fs.$(EXT) \
1203 tests/unit/bin/ckucmd_test_fs.$(EXT) \
1204 tests/unit/bin/ckclib_test_fs.$(EXT) \
1205 -o $@ $$GCSECTIONS $$CHECKLIBS
1206
1207 #Clean up intermediate and object files
1208 clean:
1209 @echo 'Removing object files...'
1210 -rm -f ckcmai.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) ckuus2.$(EXT) \
1211 ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) ckcpro.$(EXT) ckcfns.$(EXT) \
1212 ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) ckucon.$(EXT) ckutio.$(EXT) \
1213 ckufio.$(EXT) ckudia.$(EXT) ckuscr.$(EXT) ckwart.$(EXT) ckuusx.$(EXT) \
1214 ckuusy.$(EXT) ckcnet.$(EXT) ckuus6.$(EXT) ckuus7.$(EXT) ckusig.$(EXT) \
1215 ckucns.$(EXT) ckcmdb.$(EXT) ckuath.$(EXT) ckctel.$(EXT) ckclib.$(EXT) \
1216 ckcuni.$(EXT) ck_crp.$(EXT) ck_ssl.$(EXT) ckupty.$(EXT) ckcftp.$(EXT) \
1217 ckcpro.c wart wermit
1218 -rm -rf tests/unit/bin tests/__pycache__ .pytest_cache
1219 -rm -f .buildcc.cache .buildflags.cache
1220
1221 show:
1222 @echo prefix=$(prefix)
1223 @echo srproot=$(srproot)
1224 @echo sslroot=$(sslroot)
1225 @echo manroot=$(manroot)
1226 @echo K4LIB=$(K4LIB)
1227 @echo K4INC=$(K4INC)
1228 @echo K5LIB=$(K5LIB)
1229 @echo K5INC=$(K5INC)
1230 @echo SRPLIB=$(SRPLIB)
1231 @echo SRPINC=$(SRPINC)
1232 @echo SSLLIB=$(SSLLIB)
1233 @echo SSLINC=$(SSLINC)
1234 @exit
1235
1236 # Install C-Kermit after building -- IMPORTANT: Read the instructions above
1237 # (SAMPLE INSTALLATION SCRIPT). For SSL/TLS versions, ca_certs.pem file
1238 # should be installed in the appropriate place for your OpenSSL library, e.g.:
1239 #
1240 # cp ca_certs.pem /usr/local/ssl/
1241 # cp ca_certs.pem /usr/share/ssl/
1242 #
1243 # To make sure 'man' notices the new source file and doesn't keep
1244 # showing the old formatted version, remove the old formatted version,
1245 # something like this:
1246 # rm -f $(MANDIR)/../cat$(MANEXT)/kermit.$(MANEXT)
1247 # or this (which requires CATDIR to be defined):
1248 # rm -f $(CATDIR)/kermit.$(MANEXT)
1249 #
1250 # As of C-Kermit 8.0.205 this target also builds an UNINSTALL script, and
1251 # so it might be too long for some old Bourne shells, in which case you can
1252 # use a different shell:
1253 #
1254 # make SHELL=ksh install
1255 # make SHELL=/bin/posix/sh install
1256 #
1257 # POSTSCRIPT November 2022... This target can not possibly cover all the
1258 # possible scenarios. For example, installation on a multiuser timesharing
1259 # system by a sysadmin with root privilege versus installation on a desktop
1260 # by a home user who doesn't even know what "root" is. Not to mention
1261 # differences among BSD, Linux, macOS, and the hundreds of historical Unix
1262 # versions that this makefile still aims to support. If there is to be an
1263 # install script at this point, it makes more sense for it to be a Kermit
1264 # script. I hope to find the the time to write one in time for the C-Kermit
1265 # 10.0 release. - fdc, Thu Nov 24 08:13:18 2022
1266 #
1267 install:
1268 @echo Installing C-Kermit version $(CKVER)...;\
1269 rm -f UNINSTALL;\
1270 exec 3>./UNINSTALL;\
1271 echo "# C-Kermit UNINSTALL script" >&3;\
1272 echo "# `date`\n" >&3;\
1273 echo "CKVER=$(CKVER)" >&3;\
1274 echo "PrN Uninstalling C-Kermit version $(CKVER)..." >&3;\
1275 echo DESTDIR=$(DESTDIR);\
1276 if test -n "$(DESTDIR)"; then\
1277 if test -d $(DESTDIR); then\
1278 echo "$(DESTDIR) exists...\n";\
1279 else\
1280 echo "Creating $(DESTDIR)...";\
1281 DESTDIR=`echo $(DESTDIR) | sed 's!/*$$!!'`;\
1282 mkdir $$DESTDIR || exit 1;\
1283 fi;\
1284 chmod 755 $(DESTDIR) || exit 1;\
1285 fi;\
1286 echo BINARY=$(BINARY);\
1287 if test -f $(BINARY); then\
1288 ls -l $(BINARY);\
1289 else\
1290 echo "?$(BINARY) not found";\
1291 exit 1;\
1292 fi;\
1293 if test -z "$(DESTDIR)$(BINDIR)"; then\
1294 echo "Binary directory not specified";\
1295 exit 1;\
1296 fi;\
1297 if test -d $(DESTDIR)$(BINDIR); then\
1298 echo "$(DESTDIR)$(BINDIR) exists...";\
1299 else\
1300 echo "Creating $(DESTDIR)$(BINDIR)/...";\
1301 mkdir $(DESTDIR)$(BINDIR) || exit 1;\
1302 chmod 755 $(DESTDIR)$(BINDIR);\
1303 fi;\
1304 rm -f $(DESTDIR)$(BINDIR)/kermit;\
1305 cp $(BINARY) $(DESTDIR)$(BINDIR)/kermit || exit 1;\
1306 chmod 755 $(DESTDIR)$(BINDIR)/kermit || exit 1;\
1307 rm -f $(DESTDIR)$(BINDIR)/kermit-sshsub;\
1308 ln -s $(DESTDIR)$(BINDIR)/kermit\
1309 $(DESTDIR)$(BINDIR)/kermit-sshsub || exit 1;\
1310 echo 'set flag=f\nPrC Removing binaries' >&3;\
1311 echo "RmF $(DESTDIR)$(BINDIR)/kermit-sshsub" >&3;\
1312 echo "RmF $(DESTDIR)$(BINDIR)/kermit" >&3;\
1313 if test -f ckermit.ini; then\
1314 echo "#!$(BINDIR)/kermit" >\
1315 $(DESTDIR)$(BINDIR)/_tmp.ini;\
1316 cat ckermit.ini >> $(DESTDIR)$(BINDIR)/_tmp.ini;\
1317 mv $(DESTDIR)$(BINDIR)/_tmp.ini\
1318 $(DESTDIR)$(BINDIR)/ckermit.ini;\
1319 chmod 755 $(DESTDIR)$(BINDIR)/ckermit.ini;\
1320 echo "RmF $(DESTDIR)$(BINDIR)/ckermit.ini" >&3;\
1321 fi;\
1322 echo;\
1323 echo 'EfM' >&3;\
1324 echo "Kermit binary installed:";\
1325 ls -l $(DESTDIR)$(BINDIR)/kermit\
1326 $(DESTDIR)$(BINDIR)/kermit-sshsub\
1327 $(DESTDIR)$(BINDIR)/ckermit.ini;\
1328 echo;\
1329 echo " WARNING: If C-Kermit is to be used for dialing out,";\
1330 echo " you must change its owner and group and permissions";\
1331 echo " to match the 'cu' program. See the ckuins.txt file";\
1332 echo " for details.";\
1333 echo;\
1334 echo MANDIR=$(MANDIR);\
1335 if test -n "$(DESTDIR)$(MANDIR)"; then\
1336 if test -d $(DESTDIR)$(MANDIR); then\
1337 echo "$(DESTDIR)$(MANDIR) exists...";\
1338 else\
1339 echo "Creating $(MANDIR)...";\
1340 mkdir $(MANDIR) || exit 1;\
1341 chmod 755 $(MANDIR) || exit 1;\
1342 fi;\
1343 rm -f $(DESTDIR)$(MANDIR)/kermit.$(MANEXT);\
1344 cp ckuker.nr $(DESTDIR)$(MANDIR)/kermit.$(MANEXT) || exit 1;\
1345 chmod 644 $(DESTDIR)$(MANDIR)/kermit.$(MANEXT) || exit 1;\
1346 echo 'set flag=f\nPrC Removing man pages' >&3;\
1347 echo "RmF $(DESTDIR)$(MANDIR)/kermit.$(MANEXT)" >&3;\
1348 echo 'EfM' >&3;\
1349 echo;\
1350 else\
1351 echo "Not installing man page!\n";\
1352 fi;\
1353 echo CERTDIR=$(CERTDIR);\
1354 if test -n "$(CERTDIR)"; then\
1355 if test -f ca_certs.pem; then\
1356 if test -d $(CERTDIR); then\
1357 echo "$(CERTDIR) exists...";\
1358 else\
1359 echo "Creating $(CERTDIR)...";\
1360 mkdir $(CERTDIR) || exit 1;\
1361 chmod 755 $(CERTDIR) || exit 1;\
1362 fi;\
1363 echo "Installing certificates file...";\
1364 cp ca_certs.pem $(CERTDIR) || exit 1;\
1365 echo 'set flag=f' >&3;\
1366 echo 'PrC Removing certificates file' >&3;\
1367 echo "RmF $(CERTDIR)/ca_certs.pem" >&3;\
1368 echo 'EfM' >&3;\
1369 echo;\
1370 fi;\
1371 else\
1372 echo "Not installing certificates file!\n";\
1373 fi;\
1374 echo SRCDIR=$(DESTDIR)$(SRCDIR);\
1375 if test -n "$(SRCDIR)"; then\
1376 echo "Installing source files...";\
1377 if test -d $(DESTDIR)$(SRCDIR); then\
1378 echo "$(DESTDIR)$(SRCDIR) exists...";\
1379 else\
1380 echo "Creating $(DESTDIR)$(SRCDIR)/...";\
1381 mkdir $(DESTDIR)$(SRCDIR) || exit 1;\
1382 chmod 755 $(DESTDIR)$(SRCDIR);\
1383 fi;\
1384 echo "Copying source files to $(DESTDIR)$(SRCDIR)...";\
1385 echo 'set flag=f\nPrC Removing source files' >&3;\
1386 for TextFile in COPYING.TXT ck[cuw_]*.[cwh] makefile; do\
1387 cp $$TextFile $(DESTDIR)$(SRCDIR)/ && echo ".\c";\
1388 echo "RmF $(DESTDIR)$(SRCDIR)/$$TextFile" >&3;\
1389 done; echo;\
1390 echo 'EfM' >&3;\
1391 ( cd $(DESTDIR)$(SRCDIR)/ &&\
1392 ls -l COPYING.TXT ck[cuw_]*.[cwh] makefile );echo;\
1393 else\
1394 echo "Not installing source code!\n";\
1395 fi;\
1396 echo INFODIR=$(DESTDIR)$(INFODIR);\
1397 if test -n "$(INFODIR)"; then\
1398 echo "Installing info files...";\
1399 if test -d $(DESTDIR)$(INFODIR); then\
1400 echo "$(DESTDIR)$(INFODIR) exists...";\
1401 else\
1402 echo "Creating $(DESTDIR)$(INFODIR)/...";\
1403 mkdir $(DESTDIR)$(INFODIR) || exit 1;\
1404 chmod 755 $(DESTDIR)$(INFODIR);\
1405 fi;\
1406 echo "Copying text files to $(DESTDIR)$(INFODIR)...";\
1407 echo 'set flag=f\nPrC Removing text files' >&3;\
1408 FileCopyList='';\
1409 for TextFile in $(TEXTFILES); do\
1410 test -f $$TextFile || continue;\
1411 cp $$TextFile $(DESTDIR)$(INFODIR) && echo ".\c" &&\
1412 FileCopyList="$$FileCopyList $$TextFile";\
1413 echo "RmF $(DESTDIR)$(INFODIR)/$$TextFile" >&3;\
1414 done; echo;\
1415 echo 'EfM' >&3;\
1416 ( cd $(DESTDIR)$(INFODIR)/ && chmod 644 $$FileCopyList );\
1417 ( cd $(DESTDIR)$(INFODIR)/ && pwd && ls -l $$FileCopyList );\
1418 else\
1419 echo "Not installing text files!\n";\
1420 fi;\
1421 echo "set flag=d\nPrN Removing empty dirs..." >&3;\
1422 echo "RmD $(DESTDIR)$(BINDIR)" >&3;\
1423 echo "RmD $(DESTDIR)$(SRCDIR)" >&3;\
1424 echo "RmD $(DESTDIR)$(INFODIR)" >&3;\
1425 echo "RmD $(CERTDIR)" >&3;\
1426 echo "RmD $(MANDIR)" >&3;\
1427 echo "RmD $(DESTDIR)" >&3;\
1428 echo "EfM" >&3;\
1429 echo "PrN C-Kermit version $(CKVER) is uninstalled!" >&3;\
1430 echo C-Kermit version $(CKVER) installed!
1431
1432 # UN-Install C-Kermit after building
1433 # Please to not remove the extra blanks before and after '{}' within the
1434 # functions. You would get syntax errors for some older Bourne shells! Best is
1435 # you don't change or remove anything.
1436 #
1437 uninstall:
1438 @if test ! -f UNINSTALL; then\
1439 echo "?C-Kermit UNINSTALL data file not found!";\
1440 exit 1;\
1441 fi; \
1442 X=`grep '^CKVER='$(CKVER)'$$' ./UNINSTALL || :`;\
1443 if test -z "$$X"; then\
1444 echo "?UNINSTALL file is not for C-Kermit version $(CKVER)";\
1445 exit 2;\
1446 fi;\
1447 PrN () { echo "$$*"; };\
1448 PrC () { echo "$$* \c"; };\
1449 RmF () { test -f "$$1" && rm -f "$$1" && echo ".\c" && flag=F ; };\
1450 RmD () { \
1451 dir=$$1;\
1452 while test -d "$$dir"; do\
1453 rmdir "$$dir" 2>&- || return && echo "$$dir" && flag=D;\
1454 dir=`echo "$$dir" | sed 's!/[^/]*/*$$!!'`;\
1455 done; \
1456 };\
1457 EfM () { \
1458 case "$$flag" in\
1459 f) echo "- Nothing to remove!";;\
1460 d) echo "Nothing to remove!";;\
1461 F) echo " done";;\
1462 D) echo "done";;\
1463 esac; \
1464 };\
1465 while read Act Args; do\
1466 case $$Act in\
1467 EfM) EfM;;\
1468 RmD) RmD $$Args;;\
1469 RmF) RmF $$Args;;\
1470 PrN) PrN $$Args;;\
1471 PrC) PrC $$Args;;\
1472 set) eval $$Args;;\
1473 esac;\
1474 done < ./UNINSTALL
1475
1476 makewhat:
1477 @echo 'make what? You must tell which platform to make C-Kermit for.'
1478 @echo Examples: make linux, make aix, make solaris10, make hpux1100.
1479 @echo Please read the comments at the beginning of the makefile.
1480
1481 ###########################################################################
1482 #
1483 # Dependencies Section:
1484
1485 wermit: ckcmai.$(EXT) ckclib.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) ckuus2.$(EXT) \
1486 ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) ckuus6.$(EXT) \
1487 ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) ckcpro.$(EXT) \
1488 ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) \
1489 ckucon.$(EXT) ckutio.$(EXT) ckufio.$(EXT) ckudia.$(EXT) \
1490 ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) \
1491 ckcuni.$(EXT) ckupty.$(EXT) ckcftp.$(EXT)
1492 $(CC2) $(LNKFLAGS) -o wermit \
1493 ckcmai.$(EXT) ckclib.$(EXT) ckutio.$(EXT) ckufio.$(EXT) \
1494 ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) \
1495 ckcpro.$(EXT) ckucmd.$(EXT) ckuus2.$(EXT) ckuus3.$(EXT) \
1496 ckuus4.$(EXT) ckuus5.$(EXT) ckuus6.$(EXT) ckuus7.$(EXT) \
1497 ckuusx.$(EXT) ckuusy.$(EXT) ckuusr.$(EXT) ckucon.$(EXT) \
1498 ckudia.$(EXT) ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) \
1499 ckusig.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) ckcftp.$(EXT) \
1500 $(LIBS)
1501
1502 # Preferred configuration with select()-based CONNECT
1503
1504 xermit: ckcmai.$(EXT) ckclib.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) ckuus2.$(EXT) \
1505 ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) ckuus6.$(EXT) \
1506 ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) ckcpro.$(EXT) \
1507 ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) \
1508 ckucns.$(EXT) ckutio.$(EXT) ckufio.$(EXT) ckudia.$(EXT) \
1509 ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) \
1510 ckcuni.$(EXT) ckupty.$(EXT) ckcftp.$(EXT) ckuath.$(EXT) \
1511 ck_crp.$(EXT) ck_ssl.$(EXT)
1512 $(CC2) $(LNKFLAGS) -o wermit \
1513 ckcmai.$(EXT) ckclib.$(EXT) ckutio.$(EXT) ckufio.$(EXT) \
1514 ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) \
1515 ckcpro.$(EXT) ckucmd.$(EXT) ckuus2.$(EXT) ckuus3.$(EXT) \
1516 ckuus4.$(EXT) ckuus5.$(EXT) ckuus6.$(EXT) ckuus7.$(EXT) \
1517 ckuusx.$(EXT) ckuusy.$(EXT) ckuusr.$(EXT) ckucns.$(EXT) \
1518 ckudia.$(EXT) ckuscr.$(EXT) ckcnet.$(EXT) ckusig.$(EXT) \
1519 ckctel.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) ckcftp.$(EXT) \
1520 ckuath.$(EXT) ck_crp.$(EXT) ck_ssl.$(EXT) $(LIBS)
1521
1522 # Malloc Debugging version
1523
1524 mermit: ckcmdb.$(EXT) ckcmai.$(EXT) ckclib.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) \
1525 ckuus2.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) \
1526 ckuus6.$(EXT) ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) \
1527 ckcpro.$(EXT) ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) \
1528 ckuxla.$(EXT) ckucon.$(EXT) ckutio.$(EXT) ckufio.$(EXT) \
1529 ckudia.$(EXT) ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) \
1530 ckusig.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) ckcftp.$(EXT)
1531 $(CC2) $(LNKFLAGS) -o mermit ckcmdb.$(EXT) ckclib.$(EXT) ckcmai.$(EXT)\
1532 ckutio.$(EXT) ckufio.$(EXT) ckcfns.$(EXT) ckcfn2.$(EXT) \
1533 ckcfn3.$(EXT) ckuxla.$(EXT) ckcpro.$(EXT) ckucmd.$(EXT) \
1534 ckuus2.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) \
1535 ckuus6.$(EXT) ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) \
1536 ckuusr.$(EXT) ckucon.$(EXT) ckudia.$(EXT) ckuscr.$(EXT) \
1537 ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) ckcuni.$(EXT) \
1538 ckupty.$(EXT) ckcftp.$(EXT) $(LIBS)
1539
1540 # Kerberized Version - Subject to USA export restrictions.
1541
1542 # NOTE: We don't use this any more -- As of 15 Feb 2003, the "xermit"
1543 # target is used for both secure and regular version.
1544
1545 krbmit: ckcmai.$(EXT) ckclib.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) ckuus2.$(EXT) \
1546 ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) ckuus6.$(EXT) \
1547 ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) ckcpro.$(EXT) \
1548 ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) \
1549 ckucns.$(EXT) ckutio.$(EXT) ckufio.$(EXT) ckudia.$(EXT) \
1550 ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) \
1551 ckuath.$(EXT) ck_crp.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) \
1552 ckcftp.$(EXT) ck_ssl.$(EXT)
1553 $(CC2) $(LNKFLAGS) -o krbmit ckcmai.$(EXT) ckclib.$(EXT) \
1554 ckutio.$(EXT) ckufio.$(EXT) ckcfns.$(EXT) ckcfn2.$(EXT) \
1555 ckcfn3.$(EXT) ckuxla.$(EXT) ckcpro.$(EXT) ckucmd.$(EXT) \
1556 ckuus2.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) \
1557 ckuus6.$(EXT) ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) \
1558 ckuusr.$(EXT) ckucns.$(EXT) ckudia.$(EXT) ckuscr.$(EXT) \
1559 ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) ckuath.$(EXT) \
1560 ck_crp.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) ckcftp.$(EXT) \
1561 ck_ssl.$(EXT) $(LIBS)
1562
1563 krbmit-debug: ckcmai.$(EXT) ckclib.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) \
1564 ckuus2.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) \
1565 ckuus6.$(EXT) ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) \
1566 ckcpro.$(EXT) ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) \
1567 ckuxla.$(EXT) ckucns.$(EXT) ckutio.$(EXT) ckufio.$(EXT) \
1568 ckudia.$(EXT) ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) \
1569 ckusig.$(EXT) ckuath.$(EXT) ck_crp.$(EXT) ckcuni.$(EXT) \
1570 ckupty.$(EXT) ck_ssl.$(EXT) ckcmdb.$(EXT) ckcftp.$(EXT)
1571 $(CC2) $(LNKFLAGS) -o krbmit ckcmdb.$(EXT) ckcmai.$(EXT) \
1572 ckclib.$(EXT) ckutio.$(EXT) ckufio.$(EXT) ckcfns.$(EXT) \
1573 ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) ckcpro.$(EXT) \
1574 ckucmd.$(EXT) ckuus2.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) \
1575 ckuus5.$(EXT) ckuus6.$(EXT) ckuus7.$(EXT) ckuusx.$(EXT) \
1576 ckuusy.$(EXT) ckuusr.$(EXT) ckucns.$(EXT) ckudia.$(EXT) \
1577 ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) \
1578 ckuath.$(EXT) ck_crp.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) \
1579 ckcftp.$(EXT) ck_ssl.$(EXT) $(LIBS)
1580
1581 # SRP(TM) Version - Subject to USA export restrictions.
1582
1583 srpmit: ckcmai.$(EXT) ckclib.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) ckuus2.$(EXT) \
1584 ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) ckuus6.$(EXT) \
1585 ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) ckcpro.$(EXT) \
1586 ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) \
1587 ckucns.$(EXT) ckutio.$(EXT) ckufio.$(EXT) ckudia.$(EXT) \
1588 ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) \
1589 ckuath.$(EXT) ck_crp.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) \
1590 ckcftp.$(EXT) ck_ssl.$(EXT)
1591 $(CC2) $(LNKFLAGS) -o srpmit ckcmai.$(EXT) ckclib.$(EXT) \
1592 ckutio.$(EXT) ckufio.$(EXT) ckcfns.$(EXT) ckcfn2.$(EXT) \
1593 ckcfn3.$(EXT) ckuxla.$(EXT) ckcpro.$(EXT) ckucmd.$(EXT) \
1594 ckuus2.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) \
1595 ckuus6.$(EXT) ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) \
1596 ckuusr.$(EXT) ckucns.$(EXT) ckudia.$(EXT) ckuscr.$(EXT) \
1597 ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) ckuath.$(EXT) \
1598 ck_crp.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) ck_ssl.$(EXT) \
1599 ckcftp.$(EXT) $(LIBS)
1600
1601 # Kerberized Version - Not subject to USA export restrictions.
1602
1603 krbmit-export: ckcmai.$(EXT) \
1604 ckclib.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) ckuus2.$(EXT) \
1605 ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) ckuus6.$(EXT) \
1606 ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) ckcpro.$(EXT) \
1607 ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) \
1608 ckucns.$(EXT) ckutio.$(EXT) ckufio.$(EXT) ckudia.$(EXT) \
1609 ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) \
1610 ckuath.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) ckcftp.$(EXT)
1611 $(CC2) $(LNKFLAGS) -o krbmit-export ckcmai.$(EXT) ckclib.$(EXT) \
1612 ckutio.$(EXT) ckufio.$(EXT) ckcfns.$(EXT) ckcfn2.$(EXT) \
1613 ckcfn3.$(EXT) ckuxla.$(EXT) ckcpro.$(EXT) ckucmd.$(EXT) \
1614 ckuus2.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) \
1615 ckuus6.$(EXT) ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) \
1616 ckuusr.$(EXT) ckucns.$(EXT) ckudia.$(EXT) ckuscr.$(EXT) \
1617 ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) ckuath.$(EXT) \
1618 ckcuni.$(EXT) ckupty.$(EXT) ckcftp.$(EXT) $(LIBS)
1619
1620 # SRP(TM) Version - Not subject to USA export restrictions.
1621
1622 srpmit-export: ckcmai.$(EXT) \
1623 ckclib.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) ckuus2.$(EXT) \
1624 ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) ckuus6.$(EXT) \
1625 ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) ckcpro.$(EXT) \
1626 ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) \
1627 ckucns.$(EXT) ckutio.$(EXT) ckufio.$(EXT) ckudia.$(EXT) \
1628 ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) \
1629 ckuath.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) ckcftp.$(EXT)
1630 $(CC2) $(LNKFLAGS) -o srpmit-export ckcmai.$(EXT) ckclib.$(EXT) \
1631 ckutio.$(EXT) ckufio.$(EXT) ckcfns.$(EXT) ckcfn2.$(EXT) \
1632 ckcfn3.$(EXT) ckuxla.$(EXT) ckcpro.$(EXT) ckucmd.$(EXT) \
1633 ckuus2.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) \
1634 ckuus6.$(EXT) ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) \
1635 ckuusr.$(EXT) ckucns.$(EXT) ckudia.$(EXT) ckuscr.$(EXT) \
1636 ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) ckuath.$(EXT) \
1637 ckcuni.$(EXT) ckupty.$(EXT) ckcftp.$(EXT) $(LIBS)
1638
1639 ###########################################################################
1640 # man page...
1641 #
1642 ckuker.nr:
1643 @echo This target is obsolete.
1644 @echo The ckuker.nr file no longer needs any preprocessing.
1645
1646 ###########################################################################
1647 # Dependencies for each module...
1648 #
1649 ckcmai.$(EXT): ckcmai.c ckcker.h ckcdeb.h ckcsym.h ckcasc.h ckcnet.h ckcsig.h \
1650 ckuusr.h ckctel.h ckclib.h ckcfnp.h
1651
1652 ckclib.$(EXT): ckclib.c ckclib.h ckcdeb.h ckcasc.h ckcsym.h ckcfnp.h
1653
1654 wart: ckwart.$(EXT)
1655 $(CC) $(LNKFLAGS) -o wart ckwart.$(EXT) $(LIBS)
1656
1657 ckcpro.c: ckcpro.w wart ckcdeb.h ckcsym.h ckcasc.h ckcker.h ckcnet.h ckctel.h \
1658 ckclib.h
1659 ./wart ckcpro.w ckcpro.c
1660
1661 ckcfns.$(EXT): ckcfns.c ckcker.h ckcdeb.h ckcsym.h ckcasc.h ckcxla.h ckcuni.h \
1662 ckuxla.h ckclib.h ckcnet.h ckcfnp.h
1663
1664 ckcfn2.$(EXT): ckcfn2.c ckcker.h ckcdeb.h ckcsym.h ckcasc.h ckcxla.h \
1665 ckuxla.h ckctel.h ckclib.h ckcnet.h ckcuni.h ckcfnp.h
1666
1667 ckcfn3.$(EXT): ckcfn3.c ckcker.h ckcdeb.h ckcsym.h ckcasc.h ckcxla.h \
1668 ckuxla.h ckclib.h ckcuni.h ckcfnp.h
1669
1670 ckuxla.$(EXT): ckuxla.c ckcker.h ckcsym.h ckcdeb.h ckcxla.h ckuxla.h ckclib.h \
1671 ckcuni.h ckcfnp.h
1672
1673 ckcuni.$(EXT): ckcuni.c ckcdeb.h ckcker.h ckucmd.h ckcuni.h ckcxla.h ckuxla.h \
1674 ckcfnp.h
1675
1676 ckuusr.$(EXT): ckuusr.c ckucmd.h ckcker.h ckuusr.h ckcsym.h ckcdeb.h ckcxla.h \
1677 ckuxla.h ckcasc.h ckcnet.h ckctel.h ckclib.h ckcuni.h ckcfnp.h
1678
1679 ckuus2.$(EXT): ckuus2.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcxla.h ckuxla.h \
1680 ckcasc.h ckcnet.h ckcsym.h ckctel.h ckclib.h ckcuni.h ckcfnp.h
1681
1682 ckuus3.$(EXT): ckuus3.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcxla.h ckuxla.h \
1683 ckcasc.h ckcnet.h ckcsym.h ckctel.h ckclib.h ckcuni.h ckcfnp.h
1684
1685 ckuus4.$(EXT): ckuus4.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcxla.h ckuxla.h \
1686 ckcasc.h ckcnet.h ckuver.h ckcsym.h ckctel.h ckclib.h \
1687 ckcuni.h ckcfnp.h
1688
1689 ckuus5.$(EXT): ckuus5.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcasc.h ckcnet.h \
1690 ckcsym.h ckctel.h ckclib.h ckcxla.h ckuxla.h ckcuni.h ckcfnp.h
1691
1692 ckuus6.$(EXT): ckuus6.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcasc.h ckcnet.h \
1693 ckcsym.h ckctel.h ckclib.h ckcfnp.h
1694
1695 ckuus7.$(EXT): ckuus7.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcxla.h ckuxla.h \
1696 ckcasc.h ckcnet.h ckcsym.h ckctel.h ckclib.h ckcuni.h ckcfnp.h
1697
1698 ckuusx.$(EXT): ckuusx.c ckcker.h ckuusr.h ckcdeb.h ckcasc.h ckcsym.h \
1699 ckcsig.h ckcnet.h ckctel.h ckclib.h ckcxla.h ckuxla.h \
1700 ckcuni.h ckcfnp.h
1701
1702 ckuusy.$(EXT): ckuusy.c ckcker.h ckcdeb.h ckcasc.h ckcnet.h ckcsym.h ckctel.h \
1703 ckclib.h ckcfnp.h
1704
1705 ckucmd.$(EXT): ckucmd.c ckcasc.h ckucmd.h ckcdeb.h ckcsym.h ckctel.h ckclib.h \
1706 ckcfnp.h
1707
1708 ckufio.$(EXT): ckufio.c ckcdeb.h ckuver.h ckcsym.h ckclib.h \
1709 ckcxla.h ckuxla.h ckcuni.h ckcfnp.h
1710
1711 ckutio.$(EXT): ckutio.c ckcdeb.h ckcnet.h ckuver.h ckcsym.h ckctel.h ckclib.h \
1712 ckcfnp.h
1713
1714 ckucon.$(EXT): ckucon.c ckcker.h ckcdeb.h ckcasc.h ckcnet.h ckcsym.h ckctel.h \
1715 ckclib.h ckcfnp.h
1716
1717 ckucns.$(EXT): ckucns.c ckcker.h ckcdeb.h ckcasc.h ckcnet.h ckcsym.h ckctel.h \
1718 ckclib.h ckcxla.h ckuxla.h ckcuni.h ckcfnp.h
1719
1720 ckcnet.$(EXT): ckcnet.c ckcdeb.h ckcker.h ckcnet.h ckcsym.h ckcsig.h ckctel.h \
1721 ckclib.h ckcfnp.h ckuusr.h
1722
1723 ckctel.$(EXT): ckcsym.h ckcdeb.h ckcker.h ckcnet.h ckctel.h ckclib.h ckcfnp.h
1724
1725 ckcmdb.$(EXT): ckcmdb.c ckcdeb.h ckcsym.h ckclib.h ckcfnp.h
1726
1727 ckudia.$(EXT): ckudia.c ckcker.h ckcdeb.h ckucmd.h ckcasc.h ckcsym.h ckcsig.h \
1728 ckcnet.h ckctel.h ckclib.h ckcfnp.h
1729
1730 ckuscr.$(EXT): ckuscr.c ckcker.h ckcdeb.h ckcasc.h ckcsym.h ckcsig.h \
1731 ckcnet.h ckctel.h ckclib.h ckcfnp.h
1732
1733 ckusig.$(EXT): ckusig.c ckcasc.h ckcdeb.h ckcker.h ckcnet.h ckuusr.h \
1734 ckcsig.h ckctel.h ckclib.h ckcfnp.h
1735
1736 ckcftp.$(EXT): ckcftp.c ckcdeb.h ckcasc.h ckcker.h ckucmd.h ckuusr.h \
1737 ckcnet.h ckctel.h ckcxla.h ckuxla.h ckcuni.h ckcfnp.h
1738
1739 ckupty.$(EXT): ckupty.c ckupty.h ckcdeb.h ckcfnp.h
1740
1741 ckuath.$(EXT): ckuath.c ckcdeb.h ckucmd.h ckuath.h ckuat2.h ckctel.h \
1742 ckclib.h ckcnet.h ckcfnp.h
1743
1744 ck_crp.$(EXT): ck_crp.c ckcdeb.h ckcnet.h ckuath.h ckclib.h ckcfnp.h
1745
1746 ck_ssl.$(EXT): ck_ssl.c ckcdeb.h ckucmd.h ckuath.h ckuat2.h ckctel.h \
1747 ckclib.h ck_ssl.h ckcfnp.h
1748
1749 ###########################################################################
1750 #
1751 # Entries to make C-Kermit for specific systems.
1752 #
1753 # Put the ones that need short makefiles first.
1754
1755 #Apollo Aegis 9.x. Includes TCP/IP support.
1756 #You can also add processor-dependent optimization switches like -M570.
1757 aegis:
1758 @echo Making C-Kermit $(CKVER) for Apollo Aegis 9.x...
1759 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
1760 "CFLAGS= -DBSD4 -DTCPSOCKET -DNOCSETS -DCK_CURSES -O $(KFLAGS)" \
1761 "LIBS = -lcurses -ltermcap"
1762
1763 #Apple Mac II, A/UX pre-3.0
1764 #Warning, if "send *" doesn't work, try the auxufs makefile entry below.
1765 aux:
1766 @echo Making C-Kermit $(CKVER) for Macintosh A/UX...
1767 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
1768 "CFLAGS = -DAUX -DTCPSOCKET $(KFLAGS) -i -O" "LNKFLAGS = -i"
1769
1770 #Apple Mac II, A/UX pre-3.0, compiled with gcc
1771 auxgcc:
1772 @echo Making C-Kermit $(CKVER) for Macintosh A/UX...
1773 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
1774 "CFLAGS = -DAUX -DTCPSOCKET -traditional $(KFLAGS) -i -O" \
1775 "LNKFLAGS = " "CC = gcc" "CC2 = gcc"
1776
1777 #Apple Mac II, A/UX, pre-3.0, but with ufs file volumes, uses <dirent.h>.
1778 auxufs:
1779 @echo Making C-Kermit $(CKVER) for Macintosh A/UX...
1780 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
1781 "CFLAGS = -DAUX -DTCPSOCKET -DDIRENT $(KFLAGS) -i -O" "LNKFLAGS = -i"
1782
1783 #Apple Mac II, A/UX 3.0, compiled with gcc
1784 aux3gcc:
1785 @echo Making C-Kermit $(CKVER) for Macintosh A/UX 3.0...
1786 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
1787 "CFLAGS = -DAUX -DHDBUUCP -DLFDEVNO -DTCPSOCKET -DDIRENT $(KFLAGS)" \
1788 "LNKFLAGS = -s" "LIBS = $(LIBS)" \
1789 "CC=gcc -pipe -traditional" "CC2=gcc -pipe -traditional"
1790
1791 #Apple Mac II, A/UX 3.0, compiled with gcc, uses curses
1792 aux3cgcc:
1793 @echo Making C-Kermit $(CKVER) for Macintosh A/UX 3.0...
1794 $(MAKE) "MAKE=$(MAKE)" CC=$(CC) CC2=$(CC2) aux3gcc \
1795 KTARGET=$${KTARGET:-$(@)} \
1796 "KFLAGS=$(KFLAGS) -DCK_CURSES" "LIBS = -lcurses $(LIBS)"
1797
1798 # Tenon MachTen, tested on Apple Powerbook with MachTen 2.1.1.D.
1799 # NOTE: This doesn't do anything about UUCP. It only works if /usr/spool/uucp
1800 # has permission of 777, and dialout device is world read/writeable.
1801 machten:
1802 @echo Making C-Kermit $(CKVER) for MachTen...
1803 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
1804 "CFLAGS= -DBSD43 -DTCPSOCKET -DSIG_V -DNDGPWNAM -DCK_CURSES -O \
1805 $(KFLAGS)" "LIBS=-lcurses -ltermcap"
1806
1807 #Bell Labs Research UNIX V10
1808 #Can't add TCP/IP because there is no sockets library. It would have to
1809 #be done using streams, but there is no code in C-Kermit for that.
1810 #Remove -DNOJC if desired (if your system has csh, ksh, or bash).
1811 bellv10:
1812 @echo Making C-Kermit $(CKVER) for Bell Labs Research UNIX V10...
1813 $(MAKE) wermit KTARGET=$${KTARGET-$(@)} \
1814 "CFLAGS= -DBELLV10 -DBSD4 -DNDIR -DNOJC -DNOSYSIOCTLH -DNOSETREU \
1815 -DNOCSETS -MINIDIAL $(KFLAGS)"
1816
1817 # WARNING: The early BSD entries do not build in version 7.0 with the stock
1818 # BSD compiler: "Too many defines". Unless you can rebuild cpp to have more
1819 # space for defines, these builds must be accomplished by:
1820 # copying the /usr/include tree to someplace else, preprocessing there with cc
1821 # -E -I./include or whatever (plus all the same -D's, adding any necessary
1822 # -U/-D to override the architecture)), renaming the the resulting files back
1823 # to their original names, bringing them back to the original BSD system, and
1824 # running the make target there. This technique was used for 4.2 and 4.3 BSD
1825 # on a VAX in C-Kermit 7.0 (later, cpp on that machine was rebuilt to allow
1826 # more symbols, so the C-Kermit 8.0 build proceeds normally).
1827
1828 #Berkeley Unix 4.1
1829 bsd41:
1830 @echo Making C-Kermit $(CKVER) for 4.1BSD...
1831 $(MAKE) wermit KTARGET=$${KTARGET-$(@)} \
1832 "CFLAGS= -DBSD41" "LIBS = -ljobs"
1833
1834 #Berkeley 4.2, 4.3, also Ultrix-32 1.x, 2.x, 3.x, many others
1835 # Add -O, -s, etc, if they work.
1836 # If you have a version of BSD but signal() is void rather than int,
1837 # "make bsd KFLAGS=-DSIG_V".
1838 bsd42:
1839 @echo Making C-Kermit $(CKVER) for 4.2BSD...
1840 $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
1841 "CFLAGS= -DBSD4 -DTCPSOCKET -DNOREALPATH -DNOTIMEH -DNOIKSD \
1842 -DCK_CURSES -DSYSTIMEBH -DNOPUTENV -DNOANSI -DBIGBUFOK -DBSD42HACK \
1843 $(KFLAGS)" "LIBS=-lcurses -ltermcap $(LIBS)"
1844
1845 bsd:
1846 $(MAKE) CC=$(CC) CC2=$(CC2) bsd42 KTARGET=$${KTARGET-$(@)}
1847
1848 #Berkeley Unix 4.2 or 4.3 with HoneyDanBer UUCP
1849 bsdhdb:
1850 @echo Making C-Kermit $(CKVER) for 4.2BSD with HDB UUCP...
1851 $(MAKE) CC=$(CC) CC2=$(CC2) bsd KTARGET=$${KTARGET-$(@)} \
1852 "KFLAGS= -DHDBUUCP $(KFLAGS)"
1853
1854 #Berkeley Unix 4.3 with acucntrl program, curses, TCP/IP included.
1855 bsd43:
1856 @echo Making C-Kermit $(CKVER) for 4.3BSD...
1857 $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
1858 "CFLAGS= -DBSD4 -DBSD43 -DTCPSOCKET -DNOREALPATH -DNOTIMEH -DNOIKSD \
1859 -DCK_CURSES -DACUCNTRL -DSYSTIMEBH -DNOPUTENV -DNOANSI -DBIGBUFOK \
1860 -DBSD42HACK $(KFLAGS)" "LIBS=-lcurses -ltermcap $(LIBS)"
1861
1862 #4.3BSD, curses excluded
1863 bsd43nc:
1864 @echo Making C-Kermit $(CKVER) for 4.3BSD...
1865 $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
1866 "CFLAGS= -DBSD4 -DBSD43 -DTCPSOCKET -DNOREALPATH -DNOTIMEH \
1867 -DACUCNTRL -DSYSTIMEBH -DNOIKSD -DNOPUTENV -DNOANSI -DBIGBUFOK \
1868 -DBSD42HACK $(KFLAGS)" "LIBS=$(LIBS)"
1869
1870 #4.3BSD, TCP/IP excluded.
1871 bsd43nonet:
1872 @echo Making C-Kermit $(CKVER) for 4.3BSD + curses...
1873 $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
1874 "CFLAGS= -DBSD4 -DBSD43 -DTCPSOCKET -DNOREALPATH -DNOTIMEH -DNOIKSD \
1875 -DCK_CURSES -DACUCNTRL -DSYSTIMEBH -DNOPUTENV -DNOANSI -DBIGBUFOK \
1876 -DBSD42HACK -DNONET $(KFLAGS)" "LIBS=-lcurses -ltermcap $(LIBS)"
1877
1878 #Berkeley Unix 4.2 or 4.3 with lock directory /usr/spool/uucp/LCK/LCK..ttyxx,
1879 #but without acucntrl program
1880 bsdlck:
1881 @echo Making C-Kermit $(CKVER) for 4.2BSD, /usr/spool/uucp/LCK/...
1882 $(MAKE) CC=$(CC) CC2=$(CC2) bsd KTARGET=$${KTARGET-$(@)} \
1883 "KFLAGS= -DLCKDIR $(KFLAGS)"
1884
1885 #Berkeley UNIX 4.4-Lite, 4.4-Encumbered, Net/2, etc (Post-Reno),
1886 #with TCP/IP networking. This was the basis for FreeBSD, NetBSD, OpenBSD,
1887 #BSDI, BSD/OS, and Mac OS X (each of which has its own set of targets that
1888 #are newer than this one).
1889 #
1890 #NOTE: This is not a pure POSIX configuration. Using -DPOSIX instead of
1891 # -DBSD44 prevents any kind of directory-reading (for wildcard expansion),
1892 #and disallows use of ENOTCONN symbol for detecting broken network
1893 #connections, and disallows RTS/CTS flow control, and would also require
1894 #definition of the appropriate UUCP lockfile convention.
1895 #Do not add -DCK_POSIX_SIG without reading <signal.h> first! For example,
1896 #sigsetjmp(), etc, tend to be defined but not implemented.
1897 #
1898 #NOTE: originally crypt was in libc - later it was unbundled.
1899 #Remove the LIBS clause to build on an early 4.4BSD platform.
1900 #
1901 bsd44:
1902 @echo Making C-Kermit $(CKVER) for 4.4BSD...
1903 $(MAKE) CC=$(CC) CC2=$(CC2) xermit KTARGET=$${KTARGET:-$(@)} \
1904 "CFLAGS= -DBSD44 -DTCPSOCKET $(KFLAGS) -O" "LIBS=-lcrypt"
1905
1906 #Berkeley UNIX 4.4, as above, but with curses for fullscreen display
1907 #Please read notes for bsd44 entry just above.
1908 # NOTE: This one dumped core on the real 4.4BSD development system at
1909 # UC Berkeley (an HP-9000/300), so the no-curses version was used
1910 # for that one, which was unplugged years ago.
1911 bsd44c:
1912 @echo Making C-Kermit $(CKVER) for 4.4BSD with curses...
1913 $(MAKE) CC=$(CC) CC2=$(CC2) xermit KTARGET=$${KTARGET:-$(@)} \
1914 "CFLAGS= -DBSD44 -DCK_CURSES -DTCPSOCKET $(KFLAGS) -O" \
1915 "LIBS= -lcurses -ltermcap -lcrypt $(LIBS)"
1916
1917 #For FreeBSD 1.x.
1918 freebsd1:
1919 @echo 'Making C-Kermit $(CKVER) for FreeBSD...'
1920 $(MAKE) CC=$(CC) CC2=$(CC2) xermit KTARGET=$${KTARGET:-$(@)} \
1921 "CFLAGS= -DBSD44 -DCK_CURSES -DTCPSOCKET -DNOCOTFMC -funsigned-char \
1922 -DFNFLOAT -DNOHTERMCAP -DNOREALPATH -DNOSYSCONF $(KFLAGS) -O -pipe" \
1923 "LIBS= -lcurses -ltermcap -lm $(LIBS)"
1924
1925 #FreeBSD 2.x with ncurses
1926 freebsd2:
1927 @echo 'Making C-Kermit $(CKVER) for FreeBSD 2.x with ncurses...'
1928 $(MAKE) CC=$(CC) CC2=$(CC2) xermit KTARGET=$${KTARGET:-$(@)} \
1929 "CFLAGS= -DBSD44 -DCK_NCURSES -DTCPSOCKET -DNOCOTFMC -DUSE_STRERROR \
1930 -DTPUTSARGTYPE=int -DTPUTSARG1CONST -DFREEBSD2 -funsigned-char \
1931 -DFNFLOAT $(KFLAGS) -O -pipe" \
1932 "LIBS= -lncurses -ltermlib -lcrypt -lm $(LIBS)"
1933
1934 #For FreeBSD 2.x -- Uses curses rather than ncurses
1935 freebsd2c:
1936 @echo 'Making C-Kermit $(CKVER) for FreeBSD 2.x with curses...'
1937 $(MAKE) CC=$(CC) CC2=$(CC2) xermit KTARGET=$${KTARGET:-$(@)} \
1938 "CFLAGS= -DBSD44 -DCK_CURSES -DTCPSOCKET -DNOCOTFMC -DUSE_STRERROR \
1939 -DTPUTSARGTYPE=int -DTPUTSARG1CONST -DFREEBSD2 -DFNFLOAT \
1940 -funsigned-char $(KFLAGS) -O -pipe" \
1941 "LIBS= -lcurses -ltermlib -lcrypt -lm $(LIBS)"
1942
1943 #FreeBSD 3.x with ncurses and uu_lock()
1944 #(Note: uu_lock() goes back to 2.2.2, but not necessarily 2.0)
1945 #OK 2011/08/20 FreeBSD 3.3
1946 freebsd3:
1947 @echo 'Making C-Kermit $(CKVER) for FreeBSD 3.x with ncurses...'
1948 $(MAKE) CC=$(CC) CC2=$(CC2) xermit KTARGET=$${KTARGET:-$(@)} \
1949 "CFLAGS= -DBSD44 -DCK_NCURSES -DTCPSOCKET -DNOCOTFMC -funsigned-char \
1950 -DTPUTSARGTYPE=int -DUSE_STRERROR -DFREEBSD3 -DUSE_UU_LOCK -DFNFLOAT \
1951 $(KFLAGS) -O -pipe" \
1952 "LIBS= -lncurses -lcrypt -lutil -lm $(LIBS)"
1953
1954 #As above but with curses rather than ncurses.
1955 freebsd3c:
1956 @echo 'Making C-Kermit $(CKVER) for FreeBSD 3.x with curses...'
1957 $(MAKE) CC=$(CC) CC2=$(CC2) xermit KTARGET=$${KTARGET:-$(@)} \
1958 "CFLAGS= -DBSD44 -DCK_CURSES -DTCPSOCKET -DNOCOTFMC -DUSE_UU_LOCK \
1959 -DTPUTSARGTYPE=int -DUSE_STRERROR -DFREEBSD3 $(KFLAGS) -DFNFLOAT \
1960 -funsigned-char -pipe -O" \
1961 "LIBS= -lcurses -lcrypt -lutil -lm $(LIBS)"
1962
1963 #FreeBSD 4.0 with ncurses and uu_lock(). Note - there is no curses in 4.0.
1964 #ncurses 5.0 is broken requiring us to work around with setbuf().
1965 freebsd40:
1966 @echo 'Making C-Kermit $(CKVER) for FreeBSD 4.x with ncurses...'
1967 $(MAKE) CC=$(CC) CC2=$(CC2) xermit KTARGET=$${KTARGET:-$(@)} \
1968 "CFLAGS= -DBSD44 -DCK_NCURSES -DTCPSOCKET -DNOCOTFMC -DFNFLOAT \
1969 -funsigned-char -DTPUTSARGTYPE=int -DUSE_STRERROR -DFREEBSD4 \
1970 -DNONOSETBUF -DUSE_UU_LOCK $(KFLAGS) -O -pipe" \
1971 "LIBS= -lncurses -lcrypt -lutil -lm $(LIBS)"
1972
1973 #FreeBSD 4.1 and above
1974 #Like FreeBSD 4.0 but without the NONOSETBUF hack and with CK_NEWTERM.
1975 #New stanza 27 June 2023 to squelch "sys/timeb.h deprecated" warning.
1976 #Most recently tested on FreeBSD 13.1
1977 #
1978 freebsd freebsd41 freebsd72 freebsd5 freebsd6 freebsd7 freebsd8 freebsd9:
1979 @echo 'Making C-Kermit $(CKVER) for FreeBSD 4.1 or later...'
1980 @if test `uname -r | cut -d . -f 1` -ge 8; then \
1981 HAVE_FBSD8='-DFREEBSD8'; \
1982 else HAVE_FBSD8=''; fi; \
1983 if test `uname -r | cut -d . -f 1` -ge 9; then \
1984 HAVE_FBSD9='-DFREEBSD9'; \
1985 else HAVE_FBSD9=''; fi; \
1986 if test -f /usr/include/utmpx.h ; \
1987 then HAVE_UTMPX='-DHAVEUTMPX' ; \
1988 else HAVE_UTMPX='' ; fi; \
1989 if test -f /usr/include/sys/wait.h ; \
1990 then HAVE_WAITH='-DHAVEWAITH' ; \
1991 else HAVE_WAITH='' ; fi; \
1992 NOSYSTIMEBH="-DNOSYSTIMEBH" ; \
1993 if test -f /usr/include/sys/timeb.h ; \
1994 then x=`grep deprecated /usr/include/sys/timeb.h | wc -l` ; \
1995 if [ $x > 0 ] ; \
1996 then NOSYSTIMEBH='' ; fi ; fi ; \
1997 if `grep -q "[[:space:]]utimes" /usr/include/sys/time.h` ; \
1998 then HAVE_UTIMES='-DHAVE_UTIMES' ; \
1999 else HAVE_UTIMES=''; fi; \
2000 $(MAKE) CC=$(CC) CC2=$(CC2) xermit KTARGET=$${KTARGET:-$(@)} \
2001 "CFLAGS= -DBSD44 -DCK_NCURSES -DCK_NEWTERM -DTCPSOCKET -DNOCOTFMC \
2002 -DFREEBSD4 $$HAVE_FBSD8 $$HAVE_FBSD9 -DUSE_UU_LOCK -DFNFLOAT \
2003 $$HAVE_UTMPX $$HAVE_WAITH $$NOSYSTIMEBH $$HAVE_UTIMES \
2004 -DHERALD=\"\\\" `uname -rs`\\\"\" \
2005 -funsigned-char -DTPUTSARGTYPE=int -DUSE_STRERROR $(KFLAGS) \
2006 -O2 -pipe"\
2007 "LIBS= -lncurses -lcrypt -lutil -lm $(LIBS)"
2008
2009 #FreeBSD 5.0 or later with OpenSSL.
2010 #OK 2011/06/15 FreeBSD 4.7 and 8.2
2011 #OK 2011/08/20 FreeBSD 9.0-CURRENT
2012 freebsd+ssl freebsd+openssl freebsd50+openssl:
2013 @echo 'Making C-Kermit $(CKVER) for FreeBSD with Kerberos 5...'
2014 @case `openssl version` in \
2015 *0.9.7*) OPENSSLOPTION="-DOPENSSL_097" ;; \
2016 *0.9.8*) OPENSSLOPTION="-DOPENSSL_098" ;; \
2017 *1.[0-9].[0-9]*) OPENSSLOPTION="-DOPENSSL_100" ;; \
2018 *3.[0-9].[0-9]*) OPENSSLOPTION="-DOPENSSL_300" ;; \
2019 *) OPENSSLOPTION="" ;; \
2020 esac; \
2021 HAVE_DES=''; \
2022 DES_LIB=''; \
2023 if ls /usr/lib/libdes* > /dev/null 2> /dev/null || \
2024 ls $(SSLLIB)/libdes* > /dev/null 2> /dev/null; then \
2025 DES_LIB='-ldes'; \
2026 HAVE_DES='-DCK_DES -DLIBDES'; \
2027 echo "HAVE DES"; \
2028 else echo "NO DES"; \
2029 fi; \
2030 $(MAKE) freebsd KTARGET=$${KTARGET:-$(@)} "CC = $(CC)" "CC2 = $(CC2)" \
2031 KFLAGS="-DCK_AUTHENTICATION -DCK_SSL $(SSLINC) -DZLIB $$OPENSSLOPTION \
2032 $$HAVE_DES $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
2033 "LIBS= -lncurses -lcrypt -lssl -lcrypto -lutil -lm \
2034 $(SSLLIB) $$DES_LIB $(LIBS)"; \
2035 if [ ! -f ./wermit ] || [ ./ckcmai.o -nt ./wermit ] ; then \
2036 echo ""; \
2037 echo "If build failed try:"; \
2038 echo ""; \
2039 echo " make clean ; make $${KTARGET:-$(@)} KFLAGS=-UCK_DES"; \
2040 echo ""; \
2041 fi
2042
2043 #NetBSD 1.4.1 or later with vanity banner automated with uname
2044 #and automatic inclusion of large file support if it is available.
2045 #This target tested successfully on NetBSD 1.4.1, 1.5.2, and 2.0.3 (Jan 2006).
2046 #Fails on NetBSD 2.0 on Sun/3 mc68030 with gcc 3.3.3 unless optimization is
2047 #disabled on ckcfn2.c ("KFLAGS=-O0") (Letter O Digit Zero).
2048 #(This could be automated by testing `uname -m` for "sun3".)
2049 #OK: 2011/06/15 on NetBSD 1.5.2 and 5.1.
2050 #NetBSD 4.1: have to include <time.h>.
2051 #OK: 2011/08/21 on 5.1.
2052 #OK: (many more up through NetBSD 9.2)
2053 #OK: NetBSD 8.x
2054 #OK: 2020/08/24 NetBSD 9.0
2055 #OK: 2022/10/02 NetBSD 9.3
2056 # `uname -r | grep "[6789].[0-9]" > /dev/null && echo '-DTIMEH'`
2057 # Note: netbsd15 and 15 are for 1.5 and 1.6 (not 15 and 16).
2058 netbsd netbsd2 netbsd15 netbsd16 old-netbsd:
2059 @echo Making C-Kermit $(CKVER) for NetBSD `uname -r` with curses...
2060 $(MAKE) CC=$(CC) CC2=$(CC2) xermit KTARGET=$${KTARGET:-$(@)} \
2061 "CFLAGS=`grep fseeko /usr/include/stdio.h > /dev/null && \
2062 echo '-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'` \
2063 -DTIMEH -DBSD44 -DCK_CURSES -DTCPSOCKET -DUSE_STRERROR \
2064 -funsigned-char -DHERALD=\"\\\" `uname -s -r`\\\"\" \
2065 -DCK_DTRCD -DCK_DTRCTS -DTPUTSARGTYPE=int -DFNFLOAT $(KFLAGS) -O2" \
2066 "LIBS= -lcurses -lcrypt -lm -lutil $(LIBS)" ; $(shell ./ckubuildlog)
2067
2068 buildlog:
2069 @(shell ./ckubuildlog -v)
2070
2071 netbsd-clang netbsdclang:
2072 # Dummy comment \
2073 @echo 'Making C-Kermit $(CKVER) for Linux with Clang compiler'
2074 $(MAKE) CC=clang CC2=clang KTARGET=$${KTARGET:-$(@)} \
2075 "LNKFLAGS = $(LNKFLAGS)" \
2076 netbsd
2077
2078 # NetBSD with pedantic warnings (cc is gcc).
2079 netbsd-pedantic:
2080 @echo Making C-Kermit $(CKVER) for NetBSD `uname -r` gcc pedantic...
2081 $(MAKE) linux KTARGET=$${KTARGET:-$(@)} \
2082 KFLAGS="-Wpedantic $(KFLAGS)" \
2083 "LNKFLAGS = $(LNKFLAGS)" \
2084 netbsd
2085
2086 # NetBSD with no TCP/IP or any other kind of networking
2087 # but with the external SSH client
2088 netbsd-nonet:
2089 @echo Making C-Kermit $(CKVER) for NetBSD `uname -r` with no TCP/IP...
2090 $(MAKE) KTARGET=$${KTARGET:-$(@)} \
2091 KFLAGS="-DNONET -DSSHCMD -DANYSSH $(KFLAGS)" \
2092 "LNKFLAGS = $(LNKFLAGS)" \
2093 netbsd
2094
2095 # NetBSD with no TCP/IP but with the external SSH client
2096 netbsd-notcp:
2097 @echo Making C-Kermit $(CKVER) for NetBSD `uname -r` with no TCP/IP...
2098 $(MAKE) KTARGET=$${KTARGET:-$(@)} \
2099 KFLAGS="-DNOTCPIP -DSSHCMD -DANYSSH $(KFLAGS)" \
2100 "LNKFLAGS = $(LNKFLAGS)" \
2101 netbsd
2102
2103 # NetBSD with "legacy" and deprecated features removed:
2104 # FTP, Telnet, Rlogin, Wtmp logging, and arrow keys,
2105 # which depend on a deprecated API that has no undeprecated replacement.
2106 netbsd-nodeprecated: \
2107 # Dummy comment \
2108 @echo 'Making C-Kermit $(CKVER) for Linux without deprecated features'
2109 $(MAKE) KTARGET=$${KTARGET:-$(@)} \
2110 KFLAGS="-DNODEPRECATED $(KFLAGS)" \
2111 "LNKFLAGS = $(LNKFLAGS)" \
2112 netbsd
2113
2114 #NetBSD 1.4.1 or later with OpenSSL
2115 #OK: 2011/06/15 on NetBSD 5.1 (but not 1.5.2 with OpenSSL 0.9.5a)
2116 #OK: 2011/08/21 on 5.1.
2117 #OK (but with warnings) 2022/11/03.
2118 #Use "make netbsd+ssl-des" (minus DES) to get rid of DES warnings.
2119 netbsd+ssl netbsd+openssl:
2120 @echo 'Making C-Kermit $(CKVER) for NetBSD+OpenSSL SSLLIB=$(SSLLIB)'
2121 @echo 'If you get DES-related warnings try make netbsd+ssl-des'
2122 @case `openssl version` in \
2123 *0.9.7*) OPENSSLOPTION="-DOPENSSL_097" ;; \
2124 *0.9.8*) OPENSSLOPTION="-DOPENSSL_098" ;; \
2125 *1.[0-9].[0-9]*) OPENSSLOPTION="-DOPENSSL_100" ;; \
2126 *3.[0-9].[0-9]*) OPENSSLOPTION="-DOPENSSL_300" ;; \
2127 *) OPENSSLOPTION="" ;; \
2128 esac; \
2129 HAVE_DES=''; \
2130 DES_LIB=''; \
2131 if ls /usr/lib/libdes* > /dev/null 2> /dev/null || \
2132 ls $(SSLLIB)/libdes* > /dev/null 2> /dev/null; then \
2133 DES_LIB='-ldes'; \
2134 HAVE_DES='-DCK_DES -DLIBDES'; \
2135 echo "HAVE DES"; \
2136 else echo "NO DES"; \
2137 fi; \
2138 $(MAKE) netbsd KTARGET=$${KTARGET:-$(@)} "CC = $(CC)" "CC2 = $(CC2)" \
2139 "KFLAGS= -DCK_AUTHENTICATION -DCK_ENCRYPTION -DCK_CAST $$HAVE_DES \
2140 -DCK_SSL -DCK_PAM -DZLIB -DNO_DCL_INET_ATON $$OPENSSLOPTION \
2141 -I/usr/include/des $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
2142 "LIBS= -L/usr/pkg/lib -R/usr/pkg/lib -lssl $$DES_LIB -lcurses \
2143 -lcrypto -lcrypt -lz -lm -lpam -lutil $(LIBS)"
2144
2145 # ONLY ON PANIX5, which, as of 16 November 2022, has OpenSSL3 in a nonstandard
2146 # place because the production version, 1.1.1g is installed in the normal
2147 # place, so have to "export LD_LIBRARY_PATH=/usr/local/openssl3/lib"; adding
2148 # these to the this target doesn't work:
2149 # "LD_LIBRARY_PATH=/usr/local/openssl3/lib \
2150 # "LD_RUN_PATH=/usr/local/openssl3/lib \
2151 # But all this is only because we're doing an end-run around the production
2152 # SSL libs. If SSL3 is installed as the production version, the regular
2153 # netbsd+ssl target should work.
2154 #
2155 netbsd+ssl3:
2156 @echo 'Making C-Kermit $(CKVER) for NetBSD+OpenSSL SSLLIB=$(SSLLIB)'
2157 @case `openssl version` in \
2158 *0.9.7*) OPENSSLOPTION="-DOPENSSL_097" ;; \
2159 *0.9.8*) OPENSSLOPTION="-DOPENSSL_098" ;; \
2160 *1.[0-9].[0-9]*) OPENSSLOPTION="-DOPENSSL_100" ;; \
2161 *3.[0-9].[0-9]*) OPENSSLOPTION="-DOPENSSL_300" ;; \
2162 *) OPENSSLOPTION="" ;; \
2163 esac; \
2164 HAVE_DES=''; \
2165 $(MAKE) netbsd KTARGET=$${KTARGET:-$(@)} "CC = $(CC)" "CC2 = $(CC2)" \
2166 "KFLAGS=-DCK_AUTHENTICATION -DCK_ENCRYPTION -DCK_CAST $$HAVE_DES \
2167 -DCK_SSL -DCK_PAM -DZLIB -DNO_DCL_INET_ATON $$OPENSSLOPTION \
2168 -I/usr/local/openssl3/include $(KFLAGS)" \
2169 "LNKFLAGS = -L/usr/local/openssl3/lib $(LNKFLAGS)" \
2170 "LIBS= -lssl -lcurses -R/usr/pkg/lib -lcrypto -lcrypt -lz -lm -lpam \
2171 -lutil -W $(LIBS)"
2172
2173 netbsd+ssl-des:
2174 @echo 'Making C-Kermit $(CKVER) for NetBSD+OpenSSL SSLLIB=$(SSLLIB)'
2175 @case `openssl version` in \
2176 *0.9.7*) OPENSSLOPTION="-DOPENSSL_097" ;; \
2177 *0.9.8*) OPENSSLOPTION="-DOPENSSL_098" ;; \
2178 *1.[0-9].[0-9]*) OPENSSLOPTION="-DOPENSSL_100" ;; \
2179 *3.[0-9].[0-9]*) OPENSSLOPTION="-DOPENSSL_300" ;; \
2180 *) OPENSSLOPTION="" ;; \
2181 esac; \
2182 HAVE_DES=''; \
2183 DES_LIB=''; \
2184 $(MAKE) netbsd KTARGET=$${KTARGET:-$(@)} "CC = $(CC)" "CC2 = $(CC2)" \
2185 "KFLAGS= -DCK_AUTHENTICATION -DCK_ENCRYPTION -DCK_CAST $$HAVE_DES \
2186 -DCK_SSL -DCK_PAM -DZLIB -DNO_DCL_INET_ATON $$OPENSSLOPTION \
2187 $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
2188 "LIBS= -L/usr/pkg/lib -R/usr/pkg/lib -lssl $$DES_LIB -lcurses \
2189 -lcrypto -lcrypt -lz -lm -lpam -lutil $(LIBS)"
2190
2191 #NetBSD with MIT Kerberos 5:
2192 # OK 2011/06/15 (once K5INC and K5LIB were set right).
2193 # NOT OK for Heimdal - Heimdal Kerberos support in C-Kermit needs work.
2194 # OK: 2011/08/21 on 5.1.
2195 netbsd+krb5:
2196 @echo 'Making C-Kermit $(CKVER) for NetBSD with Kerberos 5...'
2197 @case `openssl version` in \
2198 *0.9.7*) OPENSSLOPTION="-DOPENSSL_097" ;; \
2199 *0.9.8*) OPENSSLOPTION="-DOPENSSL_098" ;; \
2200 *1.[0-9].[0-9]*) OPENSSLOPTION="-DOPENSSL_100" ;; \
2201 *3.[0-9].[0-9]*) OPENSSLOPTION="-DOPENSSL_300" ;; \
2202 *) OPENSSLOPTION="" ;; \
2203 esac; \
2204 HAVE_DES=''; \
2205 DES_LIB=''; \
2206 if ls /usr/lib/libdes* > /dev/null 2> /dev/null || \
2207 ls $(SSLLIB)/libdes* > /dev/null 2> /dev/null; then \
2208 DES_LIB='-ldes'; \
2209 HAVE_DES='-DCK_DES -DLIBDES'; \
2210 echo "HAVE DES"; \
2211 else echo "NO DES"; \
2212 fi; \
2213 $(MAKE) netbsd KTARGET=$${KTARGET:-$(@)} "CC = $(CC)" "CC2 = $(CC2)" \
2214 "KFLAGS= -DCK_AUTHENTICATION -DCK_ENCRYPTION -DCK_KERBEROS -DKRB5 \
2215 -DKRB5_DEPRECATED=1 \
2216 -DCK_CAST $$HAVE_DES -DNOFTP_GSSAPI $(K5INC) $(K5INC)/krb5 \
2217 $(KFLAGS)" \
2218 "LIBS= $(K5LIB) -L/usr/pkg/lib -R/usr/pkg/lib -lcurses $$DES_LIB \
2219 -lcrypto -lgssapi_krb5 -lkrb5 -lm -lutil $(LIBS)"
2220
2221 # This target added 24 Nov 2022, based on linux+krb5-new.
2222 # This is for Heimdal Kerberos, not MIT.
2223 # It doesn't work. - fdc Thu Nov 24 19:15:47 2022
2224 netbsd+krb5-new:
2225 @echo 'Making C-Kermit $(CKVER) for NetBSD with Kerberos 5...'
2226 @case `openssl version` in \
2227 *0.9.7*) OPENSSLOPTION="-DOPENSSL_097" ;; \
2228 *0.9.8*) OPENSSLOPTION="-DOPENSSL_098" ;; \
2229 *1.[0-9].[0-9]*) OPENSSLOPTION="-DOPENSSL_100" ;; \
2230 *3.[0-9].[0-9]*) OPENSSLOPTION="-DOPENSSL_300" ;; \
2231 *) OPENSSLOPTION="" ;; \
2232 esac; \
2233 K5LIB=''; \
2234 if ld -lkrb5 > /dev/null 2> /dev/null; then \
2235 K5LIB='-lkrb5'; else \
2236 echo "Failed - Can't find Kerberos 5 library" ; exit 2; \
2237 fi; \
2238 KRB5_H=''; \
2239 KRB5_KRB5_H=''; \
2240 if test -f /usr/include/krb5/krb.h; then \
2241 KRB5_H=-DKRB5_H; \
2242 fi; \
2243 CRYPT_H=''; \
2244 if test -f /usr/include/crypt.h; then \
2245 CRYPT_H='-DCRYPT_H'; \
2246 fi; \
2247 LIBCRYPT=''; \
2248 if ld -lcrypt > /dev/null 2> /dev/null; then \
2249 LIBCRYPT='-lcrypt'; \
2250 fi; \
2251 LIBCRYPTO=''; \
2252 if ld -lcrypto > /dev/null 2> /dev/null; then \
2253 LIBCRYPTO='-lcrypto'; \
2254 fi; \
2255 LIBK5CRYPTO=''; \
2256 if ld -lk5crypto > /dev/null 2> /dev/null; then \
2257 LIBK5CRYPTO='-lk5crypto'; \
2258 fi; \
2259 HAVE_DES=''; \
2260 if ld -ldes > /dev/null 2> /dev/null; then \
2261 LIBDES='-ldes'; \
2262 HAVE_DES='-DCK_DES -DLIBDES'; \
2263 fi; \
2264 XX_COM_ERR=H''; \
2265 K5_COM_ERR_H=''; \
2266 ET_COM_ERR_H=''; \
2267 COM_ERR_LIB=''; \
2268 if ld -lcom_err > /dev/null 2> /dev/null; then \
2269 if test -f /usr/include/krb5/com_err.h; then \
2270 COM_ERR_LIB='-lcom_err'; \
2271 COM_ERR_H='-DK5_COM_ERR_H'; \
2272 else if test -f /usr/include/et/com_err.h; then \
2273 COM_ERR_LIB='-lcom_err'; \
2274 COM_ERR_H='-DET_COM_ERR_H'; \
2275 else if test -f /usr/include/com_err.h; then \
2276 COM_ERR_LIB='-lcom_err'; \
2277 COM_ERR_H='-DXX_COM_ERR_H'; \
2278 fi; \
2279 fi; \
2280 fi; \
2281 fi; \
2282 GSSAPILIB=''; \
2283 HAVE_GSSAPI=''; \
2284 if name=`locate libgssapi | grep ^/usr/lib | head -1`; then \
2285 echo name=$$name; \
2286 path=$${name%/*}; \
2287 echo PATH=$$path; \
2288 GSSAPILIB=$$(basename $$name); \
2289 echo GSSAPILIB=$$GSSAPILIB ; \
2290 HAVE_GSSAPI='-DHAVE_GSSAPI'; \
2291 fi ; \
2292 if [ -z "$$LD_LIBRARY_PATH" ] ; then \
2293 export LD_LIBRARY_PATH=$$path ; else \
2294 export LD_LIBRARY_PATH=$$LD_LIBRARY_PATH:$$path; \
2295 HAVE_GSSAPI='-DHAVE_GSSAPI'; \
2296 fi; \
2297 if ls $${path}/libgssapi_krb5.* >/dev/null 2>/dev/null; then \
2298 echo HAVE libgssapi_krb5 ; \
2299 GSSAPILIB=-lgssapi_krb5 ; else \
2300 if ls $${path}/libgssapi.* >/dev/null 2>/dev/null; then \
2301 GSSAPILIB=-lgssapi ; \
2302 fi; \
2303 fi; \
2304 echo GSSAPILIB=$GSSAPILIB; \
2305 echo LD_LIBRARY_PATH=$$LD_LIBRARY_PATH; \
2306 if ld -lggssapi_krb5 > /dev/null 2> /dev/null; then \
2307 GSSAPILIB='-lgssapi_krb5'; \
2308 HAVE_GSSAPI='-DHAVE_GSSAPI'; \
2309 echo GSSAPILIB-1=$$GSSAPILIB; \
2310 else if ld -lggssapi > /dev/null 2> /dev/null; then \
2311 GSSAPILIB='-lgssapi'; \
2312 HAVE_GSSAPI='-DHAVE_GSSAPI'; \
2313 echo GSSAPILIB-2=$$GSSAPILIB; \
2314 fi; \
2315 fi; \
2316 echo GSSAPILIB=$$GSSAPILIB; \
2317 $(MAKE) netbsd KTARGET=$${KTARGET:-$(@)} "CC = $(CC)" "CC2 = $(CC2)" \
2318 "KFLAGS= -DCK_AUTHENTICATION -DCK_ENCRYPTION -DCK_KERBEROS -DKRB5 \
2319 -DCK_CAST $$HAVE_DES $$CRYPT_H $$COM_ERR_H $$KRB5_H \
2320 -I/usr/include -I/usr/include/et /$(KFLAGS)" \
2321 "LNKFLAGS = $(LNKFLAGS)" \
2322 "LIBS= $$LIBCRYPT $$LIBCRYPTO $$LIBK5CRYPTO $$LIBDES $$COM_ERR_LIB \
2323 $$K5LIB $$GSSAPILIB $(K5LIB) -L/usr/pkg/lib -R/usr/pkg/lib \
2324 -lcurses $$DES_LIB -lm -lutil $(LIBS)"
2325
2326 # NetBSD - With Kerberos 5 and SSL and Zlib.
2327 # OK: 2011/08/21 on 5.1 with MIT Kerberos.
2328 netbsd+krb5+ssl netbsd+krb5+openssl+zlib:
2329 @echo 'Making C-Kermit $(CKVER) for NetBSD+OpenSSL+Kerberos5...'
2330 @case `openssl version` in \
2331 *0.9.7*) OPENSSLOPTION="-DOPENSSL_097" ;; \
2332 *0.9.8*) OPENSSLOPTION="-DOPENSSL_098" ;; \
2333 *1.[0-9].[0-9]*) OPENSSLOPTION="-DOPENSSL_100" ;; \
2334 *3.[0-9].[0-9]*) OPENSSLOPTION="-DOPENSSL_300" ;; \
2335 *) OPENSSLOPTION="" ;; \
2336 esac; \
2337 HAVE_DES=''; \
2338 DES_LIB=''; \
2339 if ls /usr/lib/libdes* > /dev/null 2> /dev/null || \
2340 ls $(SSLLIB)/libdes* > /dev/null 2> /dev/null; then \
2341 DES_LIB='-ldes'; \
2342 HAVE_DES='-DCK_DES -DLIBDES'; \
2343 echo "HAVE DES"; \
2344 else echo "NO DES"; \
2345 fi; \
2346 $(MAKE) netbsd KTARGET=$${KTARGET:-$(@)} "CC = $(CC)" "CC2 = $(CC2)" \
2347 "KFLAGS= -DCK_AUTHENTICATION -DCK_ENCRYPTION -DCK_CAST $$HAVE_DES \
2348 -DCK_KERBEROS -DKRB5 -DKRB5_DEPRECATED=1 -DNOFTP_GSSAPI \
2349 $(K5INC) $(K5INC)/krb5 \
2350 -DCK_SSL -DCK_PAM -DZLIB -DNO_DCL_INET_ATON $$OPENSSLOPTION \
2351 $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
2352 "LIBS= $(K5LIB) -L/usr/pkg/lib -R/usr/pkg/lib -lssl $$DES_LIB \
2353 -lcrypto -lcrypt -lgssapi_krb5 -lkrb5 -lz -lm -lpam -lutil -lcurses $(LIBS)"
2354
2355 #Special Security Enhanced NetBSD target with SRP, SSL, and zlib support.
2356 #To build this, you need to BUILD the pkgsrc srp_client package. After
2357 #you build it, you must go into work/srp-x.y.z/libkrypto and "bmake install"
2358 #then go to work/srp-x.y.z/libsrp and "bmake install". As of 2005Q3, the
2359 #pkgsrc install only installed the statically linked client applications. You
2360 #need to manually install the libraries to build your own applications.
2361 #NOT TESTED RECENTLY - probably needs work.
2362 netbsd+ssl+srp+zlib:
2363 @echo Making C-Kermit $(CKVER) for NetBSD with curses...
2364 $(MAKE) CC=$(CC) CC2=$(CC2) xermit KTARGET=$${KTARGET:-$(@)} \
2365 "CFLAGS= -DBSD44 -DCK_CURSES -DTCPSOCKET -DUSE_STRERROR -DNETBSD15 \
2366 -DCK_DTRCD -DCK_DTRCTS -DTPUTSARGTYPE=int \
2367 -I/usr/include/openssl -I/usr/pkg/include \
2368 -DCK_AUTHENTICATION -DCK_SRP -DPRE_SRP_1_4_5 -DCK_ENCRYPTION \
2369 -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL -DZLIB -DFNFLOAT $(KFLAGS) -O" \
2370 "LIBS= -L/usr/pkg/lib -R/usr/pkg/lib -lcurses -lsrp -lgmp -ldes \
2371 -lssl -lkrypto -lcrypto -lcrypt -lz -lm -lutil $(LIBS)"
2372
2373 #NetBSD with curses left out (e.g. for use as IKSD).
2374 netbsdnc:
2375 @echo Making C-Kermit $(CKVER) for NetBSD with no curses...
2376 $(MAKE) CC=$(CC) CC2=$(CC2) netbsd KTARGET=$${KTARGET:-$(@)} \
2377 "KFLAGS=-DNOCURSES"
2378
2379 #NetBSD with ncurses requested explicitly rather than curses-which-is-ncurses
2380 netbsdn:
2381 @echo Making C-Kermit $(CKVER) for NetBSD with curses...
2382 $(MAKE) CC=$(CC) CC2=$(CC2) xermit KTARGET=$${KTARGET:-$(@)} \
2383 "CFLAGS=`grep fseeko /usr/include/stdio.h > /dev/null && \
2384 echo '-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'` \
2385 -DBSD44 -DCK_CURSES -DTCPSOCKET -DUSE_STRERROR \
2386 -DHERALD=\"\\\" NetBSD `uname -r`\\\"\" \
2387 -DCK_DTRCD -DCK_DTRCTS -DTPUTSARGTYPE=int -DFNFLOAT $(KFLAGS) -O" \
2388 "LIBS= -L/usr/pkg/lib -lncurses -lcrypt -lm -lutil $(LIBS)"
2389
2390 #OpenBSD before 2.3.
2391 #Uses ncurses as its curses so use -ltermlib, not -ltermcap
2392 #But it doesn't use uu_lock() which was introduced in OpenBSD 2.3.
2393 #For that use the next entry.
2394 #Add -DMAINTYPE=int if you get complaints about main: return type is not int.
2395 openbsdold:
2396 @echo Making C-Kermit $(CKVER) for OpenBSD...
2397 $(MAKE) CC=$(CC) CC2=$(CC2) xermit KTARGET=$${KTARGET:-$(@)} \
2398 "CFLAGS= -DBSD44 -DCK_CURSES -DCK_NEWTERM -DTCPSOCKET -DOPENBSD \
2399 -DFNFLOAT -DNDSYSERRLIST $(KFLAGS) -O" "LIBS= -lcurses -ltermlib -lm"
2400
2401 #OpenBSD 2.3 or later
2402 #Add -DMAINTYPE=int if you get complaints about main: return type is not int.
2403 #For C-Kermit 8.0 (Christian Weisgerber):
2404 # -ltermlib removed (presumably because -lcurses==ncurses already includes it)
2405 # -DUSE_UU_LOCK and -lutil added for uu_lock()
2406 # -DNDSYSERRLIST changed to -DUSE_STRERROR
2407 #If this gives you trouble use the previous entry.
2408 #29 April 2023 for C-Kermit 10.0: New clauses to account the presence
2409 # or absence of term.h (curses) sys/timeb.h (dates and times).
2410 openbsd:
2411 @echo Making C-Kermit $(CKVER) for OpenBSD 2.3 or later...
2412 NOTIMEBH='' ;
2413 if test -f /usr/include/sys/timeb.h ; \
2414 then if `grep deprecated /usr/include/sys/timeb.h` ; \
2415 then NOSYSTIMEBH='-DNOSYSTIMEBH' ; fi ; \
2416 else NOSYSTIMEBH='-DNOSYSTIMEBH' ; fi; \
2417 if test -f /usr/include/sys/term.h ; \
2418 then HAVETERMH='-DHAVETERMH' ; \
2419 else HAVETERMH='' ; fi; \
2420 if test -f /usr/include/sys/wait.h ; \
2421 then HAVE_WAITH='-DHAVEWAITH' ; \
2422 else HAVE_WAITH='' ; fi; \
2423 if `grep -q "[[:space:]]utimes" /usr/include/sys/time.h` ; \
2424 then HAVE_UTIMES='-DHAVE_UTIMES' ; \
2425 else HAVE_UTIMES=''; fi; \
2426 $(MAKE) CC=$(CC) CC2=$(CC2) xermit KTARGET=$${KTARGET:-$(@)} \
2427 "CFLAGS= -DBSD44 -DCK_CURSES -DCK_NEWTERM -DTCPSOCKET -DOPENBSD \
2428 $$NOSYSTIMEBH -DHERALD=\"\\\" OpenBSD `uname -r`\\\"\" \
2429 -DUSE_UU_LOCK -DFNFLOAT -DUSE_STRERROR $$HAVETERMH $$HAVE_WAITH \
2430 $$HAVE_UTIMES \
2431 $(KFLAGS) -O2" \
2432 "LIBS= -lcurses -lutil -lm"
2433
2434 #Better to chain to the openbsd target but...
2435 mirbsd:
2436 @echo Making C-Kermit $(CKVER) for OpenBSD 2.3 or later...
2437 $(MAKE) CC=$(CC) CC2=$(CC2) xermit KTARGET=$${KTARGET:-$(@)} \
2438 "CFLAGS= -DBSD44 -DCK_CURSES -DCK_NEWTERM -DTCPSOCKET -DOPENBSD \
2439 -DHERALD=\"\\\" MirBSD `uname -r`\\\"\" \
2440 -DUSE_UU_LOCK -DFNFLOAT -DUSE_STRERROR $(KFLAGS) -O" \
2441 "LIBS= -lcurses -lutil -lm"
2442
2443 #New OpenBSD + OpenSSL target from Piotr Kolasinski, 18 September 2023...
2444 openbsd+ssl:
2445 @echo Making C-Kermit $(CKVER) for OpenBSD 3.0 or later...
2446 NOTIMEBH='' ;
2447 if test -f /usr/include/sys/timeb.h ; \
2448 then if `grep deprecated /usr/include/sys/timeb.h` ; \
2449 then NOSYSTIMEBH='-DNOSYSTIMEBH' ; fi ; \
2450 else NOSYSTIMEBH='-DNOSYSTIMEBH' ; fi; \
2451 if test -f /usr/include/sys/wait.h ; \
2452 then HAVE_WAITH='-DHAVEWAITH' ; \
2453 else HAVE_WAITH='' ; fi; \
2454 if `grep -q "[[:space:]]utimes" /usr/include/sys/time.h` ; \
2455 then HAVE_UTIMES='-DHAVE_UTIMES' ; \
2456 else HAVE_UTIMES=''; fi; \
2457 $(MAKE) CC=$(CC) CC2=$(CC2) xermit KTARGET=$${KTARGET:-$(@)} \
2458 "CFLAGS= -DBSD44 -DCK_CURSES -DCK_NEWTERM -DTCPSOCKET -DOPENBSD \
2459 $$NOSYSTIMEBH -DHERALD=\"\\\" OpenBSD `uname -r`\\\"\" \
2460 -DUSE_UU_LOCK -DFNFLOAT -DUSE_STRERROR -DCK_AUTHENTICATION \
2461 -DCK_SSL $$HAVE_WAITH $$HAVE_UTIMES $(KFLAGS) -O" \
2462 "LIBS= -lcurses -lutil -lm -lssl -lcrypto"
2463
2464 mirbsd+ssl:
2465 @echo Making C-Kermit $(CKVER) for OpenBSD 3.0 or later...
2466 $(MAKE) CC=$(CC) CC2=$(CC2) xermit KTARGET=$${KTARGET:-$(@)} \
2467 "CFLAGS= -DBSD44 -DCK_CURSES -DCK_NEWTERM -DTCPSOCKET -DOPENBSD \
2468 -DHERALD=\"\\\" MirBSD `uname -r`\\\"\" \
2469 -DUSE_UU_LOCK -DFNFLOAT -DUSE_STRERROR -DCK_AUTHENTICATION \
2470 -DCK_SSL -DNO_DCL_INET_ATON $(KFLAGS) -O" \
2471 "LIBS= -lcurses -lutil -lm -lssl -lcrypto"
2472
2473 # make 386bsd 0.0new, posix
2474 # for 386bsd 0.1.24, change /usr/include/termios.h to #define NCCS if
2475 # _POSIX_SOURCE is #defined. (source: lewine, posix prgmrs guide, o`reilly)
2476 #NOTE: Lock directory is /var/spool/lock. Formerly, it was /var/spool/uucp,
2477 #but reportedly <[email protected]> that was due to a typo in 'man tip'.
2478 386bsd:
2479 @echo 'Making C-Kermit $(CKVER) for jolix 386BSD 0.0new and 0.1.24...'
2480 $(MAKE) CC=$(CC) CC2=$(CC2) xermit KTARGET=$${KTARGET:-$(@)} \
2481 "CFLAGS= -DPOSIX -DSETREUID -DPIDSTRING -DUSLEEP \
2482 -D_386BSD -DCK_CURSES -DTCPSOCKET \
2483 -DLOCK_DIR=\\\"/var/spool/lock\\\" \
2484 $(KFLAGS) -O" "LNKFLAGS = -s" "LIBS = -lcurses -ltermcap"
2485
2486 # Mac OS X 10 early versions.
2487 # For 10.3.9 and later, use the macosx target below.
2488
2489 #Mac OS X 1.0 (Rhapsody, Darwin) -- TCP/IP but no curses.
2490 oldmacosx10:
2491 @echo Making C-Kermit $(CKVER) for `uname -s`...
2492 $(MAKE) CC=$(CC) CC2=$(CC2) xermit KTARGET=$${KTARGET:-$(@)} \
2493 "CFLAGS= -DMACOSX10 -DTCPSOCKET -DUSE_STRERROR -O $(KFLAGS)"
2494
2495 #Mac OS X 1.0 (Rhapsody, Darwin) -- TCP/IP and curses.
2496 #Note: curses must be obtained separately. See next entry for ncurses.
2497 #Add "LIBS = -lcurses -ltermcap" if necessary (but reportedly it is not).
2498 oldmacosx10c:
2499 @echo Making C-Kermit $(CKVER) for `uname -s` + curses...
2500 $(MAKE) CC=$(CC) CC2=$(CC2) xermit KTARGET=$${KTARGET:-$(@)} \
2501 "CFLAGS= -DMACOSX10 -DCK_CURSES -DTPUTSFNTYPE=void -DTPUTSISVOID \
2502 -DTCPSOCKET -DUSE_STRERROR -O $(KFLAGS)"
2503
2504 #Mac OS X 1.0 (Rhapsody, Darwin) -- TCP/IP and ncurses.
2505 #Note: ncurses must be obtained separately.
2506 #In the event of trouble with this one try the next one.
2507 oldmacosx10nc:
2508 @echo Making C-Kermit $(CKVER) for `uname -s` + ncurses...
2509 $(MAKE) CC=$(CC) CC2=$(CC2) xermit KTARGET=$${KTARGET:-$(@)} \
2510 "CFLAGS= -DMACOSX10 -DCK_NCURSES -DTCPSOCKET -DUSE_STRERROR -O \
2511 $(KFLAGS)" "LIBS= -lncurses $(LIBS)"
2512
2513 #Mac OS X 10.2 (Jaguar) ncurses.
2514 oldmacosx102nc:
2515 @echo Making C-Kermit $(CKVER) for `uname -s` + ncurses...
2516 $(MAKE) CC=$(CC) CC2=$(CC2) xermit KTARGET=$${KTARGET:-$(@)} \
2517 "CFLAGS= -DMACOSX10 -DCK_NCURSES -DTCPSOCKET -DUSE_STRERROR -O \
2518 $(KFLAGS) " "LIBS= -lncurses $(LIBS)"
2519
2520 #The problem here is that if curses.h also exists, it conflicts with
2521 #ncurses.h and and we have fatal errors. If this happens to you, then
2522 #try this target.
2523 oldmacosx10ncx:
2524 @echo Making C-Kermit $(CKVER) for `uname -s` + ncurses...
2525 @rm -f ./curses.h; touch ./curses.h
2526 $(MAKE) CC=$(CC) CC2=$(CC2) xermit KTARGET=$${KTARGET:-$(@)} \
2527 "CFLAGS= -DMACOSX10 -DCK_NCURSES -DTCPSOCKET -DUSE_STRERROR \
2528 -I. -O $(KFLAGS) " \
2529 "LIBS= -lncurses $(LIBS)"
2530 @rm -f ./curses.h
2531
2532 #Mac OS X 10.3 (Panther) - Assumes ncurses is installed.
2533 oldmacosx103:
2534 @echo Making C-Kermit $(CKVER) for `uname -s` + ncurses...
2535 $(MAKE) CC=$(CC) CC2=$(CC2) xermit KTARGET=$${KTARGET:-$(@)} \
2536 "CFLAGS= -DMACOSX10 -DMACOSX103 -DCK_NCURSES -DTCPSOCKET -DCKHTTP \
2537 -DUSE_STRERROR -DUSE_NAMESER_COMPAT -O \
2538 $(KFLAGS) " "LIBS= -lncurses -lresolv $(LIBS)"
2539
2540 #Mac OS X 10.3 (Panther) with Kerberos 5 and SSL, assumes ncurses is installed.
2541 oldmacosx103+secure:
2542 @echo Making Secure C-Kermit $(CKVER) for `uname -s` + ncurses...
2543 $(MAKE) CC=$(CC) CC2=$(CC2) xermit KTARGET=$${KTARGET:-$(@)} \
2544 "CFLAGS= -DMACOSX10 -DMACOSX103 -DCK_NCURSES -DTCPSOCKET \
2545 -DUSE_STRERROR -DUSE_NAMESER_COMPAT -O -DCK_PAM \
2546 -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 -DZLIB \
2547 -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL \
2548 $(KFLAGS) " "LIBS= -lssl -lcrypto -lkrb5 -lcom_err \
2549 -lk5crypto -lgssapi_krb5 -lpam -lncurses -lresolv $(LIBS)"
2550
2551 # THIS IS THE MAIN MAC OS X TARGET (the next one is for Kerberos/SSL builds).
2552 # Use this target for 10.3.9 (or maybe earlier) through 10.6 (maybe later)
2553 # on both Power and Intel architectures. This one uses utmp.h on 10.4 and
2554 # earlier and utmpx.h on 10.5 onwards.
2555 # Note: Mac OS X 10.5 and earlier are 32-bit; 10.6 and later 64-bit.
2556 # Note 2: As of C-Kermit 9.0 -DNOUUCP is included by default because
2557 # Mac OS X doesn't support UUCP. To undo this, use KFLAGS=-UNOUUCP.
2558 #OK: 2011/06/14 (for 10.4.11, 10.5.8, 10.6.7)
2559 macosx macosx10 macosx10.3.9 macosx10.4 macosx10.5 macosx10.6:
2560 @MACOSNAME=`/usr/bin/sw_vers -productName`; \
2561 MACOSV=`/usr/bin/sw_vers -productVersion`; \
2562 echo Making C-Kermit $(CKVER) for $$MACOSNAME $$MACOSV... ; \
2563 MACCPU=$$HOSTTYPE; \
2564 if test `uname -r | cut -d . -f 1` -gt 8; \
2565 then if test -f /usr/include/utmpx.h ; \
2566 then HAVE_UTMPX='-DHAVEUTMPX -D_UTMPX_COMPAT' ; \
2567 else HAVE_UTMPX='' ; fi ; fi; \
2568 $(MAKE) CC=$(CC) CC2=$(CC2) xermit KTARGET=$${KTARGET:-$(@)} \
2569 "CFLAGS= -DMACOSX10 -DMACOSX103 -DCK_NCURSES -DTCPSOCKET -DCKHTTP \
2570 -DUSE_STRERROR -DUSE_NAMESER_COMPAT -DNOCHECKOVERFLOW -DFNFLOAT \
2571 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 $$HAVE_UTMPX \
2572 -funsigned-char -DNODCLINITGROUPS -DMACOSHISPEED \
2573 -DNOUUCP -O2 -DHERALD=\"\\\" $${MACOSNAME} $${MACOSV}\\\"\" \
2574 -DCKCPU=\"\\\"$${MACCPU}\\\"\" \
2575 $(KFLAGS)" "LIBS= -lncurses -lresolv $(LIBS)"
2576
2577 # Mac OS X 10.3.9 or later with Kerberos 5 and OpenSSL...
2578 # NOTE: Apple has removed all support for DES in OpenSSL and Kerberos
2579 # in Mac OS X 10.6 and later. The DES flags are included or left out
2580 # automatically based on the Mac OS X version number.
2581 # See note about UUCP in previous target.
2582 #OK: 2009/11/16 (for 10.3.9, 10.4.11, 10.5.8, 10.6.1)
2583 #OK: 2011/06/14 (for 10.4.11, 10.5.8, 10.6.7)
2584 macosx+krb5+ssl macosx10.5+krb5+ssl macosx10.6+krb5+ssl \
2585 macosx+krb5+openssl macosx10.5+krb5+openssl macosx10.6+krb5+openssl:
2586 @MACOSNAME=`/usr/bin/sw_vers -productName`; \
2587 MACOSV=`/usr/bin/sw_vers -productVersion`; \
2588 echo Making C-Kermit $(CKVER) for $$MACOSNAME $$MACOSV... ; \
2589 MACCPU=$$HOSTTYPE; \
2590 if test `uname -r | cut -d . -f 1` -gt 8; \
2591 then if test -f /usr/include/utmpx.h ; \
2592 then HAVE_UTMPX='-DHAVEUTMPX -D_UTMPX_COMPAT' ; \
2593 else HAVE_UTMPX='' ; fi ; fi; \
2594 if test `uname -r | cut -d . -f 1` -eq 7; \
2595 then IS_MACOSX103='-DMACOSX103' ; \
2596 else IS_MACOSX103='' ; fi; \
2597 case $$MACOSV in \
2598 10.[012345].*) HAVE_DES='-DCK_DES -DLIBDES' ;; \
2599 *.*) HAVE_DES='' ;; \
2600 esac ; \
2601 if test -x /usr/bin/krb5-config ; \
2602 then HAVE_KRB5CONFIG=`/usr/bin/krb5-config --libs krb5 gssapi` ; \
2603 else HAVE_KRB5CONFIG='-lgssapi_krb5 -lkrb5 -lk5crypto \
2604 -lcom_err -lresolv' ; fi; \
2605 $(MAKE) CC=$(CC) CC2=$(CC2) xermit KTARGET=$${KTARGET:-$(@)} \
2606 "CFLAGS= -DMACOSX10 $$IS_MACOSX103 -DCK_NCURSES -DTCPSOCKET \
2607 -DUSE_STRERROR -DUSE_NAMESER_COMPAT -DNOCHECKOVERFLOW -DFNFLOAT \
2608 -DCKHTTP -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 $$HAVE_UTMPX \
2609 -DNODCLINITGROUPS -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 -DZLIB \
2610 -DCK_ENCRYPTION -DCK_CAST -DCK_SSL -DOPENSSL_098 $$HAVE_DES \
2611 -DNOUUCP -DHERALD=\"\\\" $${MACOSNAME} $${MACOSV}\\\"\" \
2612 -DCKCPU=\"\\\"$${MACCPU}\\\"\" \
2613 -funsigned-char -O $(KFLAGS)" \
2614 "LIBS= $$HAVE_KRB5CONFIG -lssl -lcrypto -lpam -lncurses $(LIBS)"
2615
2616 # Additional target "macos" by Tony Nicholson 4-Nov-2021.
2617 #
2618 # More recent macOS re-branded releases for Intel (x86_64) Sierra (10,12),
2619 # High Sierra (10,13), Mojave (10.14), Catalina (10.15), and Intel x86_64/ARM
2620 # Big Sur (11), Monterey (12)
2621 #
2622 # Apple's Clang C compiler reports many warnings that can safely be ignored -
2623 # so keep reporting the ones that may have not been detected by other
2624 # compilers by selectively disabling dangling-else, string-compare and
2625 # parentheses related warnings. -DNOWTMP added because it always provokes
2626 # a "deprecated" warning. Wtmp logging is only for IKSD, so if you're
2627 # not going to be using macOS C-Kermit as an IKSD server, no worries.
2628 # If you are, and want the server to make Wtmp log entries, do
2629 # 'make macos "KFLAGS=-UNOWTMP".
2630 #
2631 # -Xlinker flags added to LIBS to supress the following warning:
2632 # ld: warning: reducing alignment of section __DATA,__common
2633 # from 0x8000 to 0x4000 because it exceeds segment maximum alignment
2634 # (Tested on macOS 26.6)
2635 #
2636 macos:
2637 @MACOSNAME=`/usr/bin/sw_vers -productName`; \
2638 MACOSV=`/usr/bin/sw_vers -productVersion`; \
2639 echo Making C-Kermit $(CKVER) for $$MACOSNAME $$MACOSV... ; \
2640 MACCPU=$$HOSTTYPE; \
2641 HAVE_UTMPX=''; \
2642 $(MAKE) CC=$(CC) CC2=$(CC2) xermit KTARGET=$${KTARGET:-$(@)} \
2643 "CFLAGS=-Wno-dangling-else -Wno-string-compare -Wno-parentheses \
2644 -Wno-pointer-sign -Wno-unused-value -Wdeprecated-declarations \
2645 -DMACOSX10 -DMACOSX103 -DCK_NCURSES -DTCPSOCKET -DCKHTTP \
2646 -DUSE_STRERROR -DUSE_NAMESER_COMPAT -DNOCHECKOVERFLOW -DFNFLOAT \
2647 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 $$HAVE_UTMPX \
2648 -funsigned-char -DNODCLINITGROUPS \
2649 -DNOUUCP -O -DHERALD=\"\\\" $${MACOSNAME} $${MACOSV}\\\"\" \
2650 -DCKCPU=\"\\\"$${MACCPU}\\\"\" \
2651 $(KFLAGS)" "LIBS= -lncurses -lresolv -Xlinker -max_default_common_align -Xlinker 0x4000 $(LIBS)"
2652
2653 # Experimental. 2022-11-30 SMS.
2654 macos+ssl macos+openssl:
2655 if test -n "$(KZLIBDIR)" ; then \
2656 ZLIBDIR="$(KZLIBDIR)" ; \
2657 else \
2658 ZLIBDIR='/usr/local/lib' ; \
2659 fi ; \
2660 case "$(KTARGET)" in \
2661 *-zlib*) ZLIBFLAG='' ; ZLIBOPT='' ;; \
2662 *) ZLIBFLAG='-DZLIB' ; ZLIBOPT="-L $$ZLIBDIR -lz" ;; \
2663 esac ; \
2664 case `openssl version` in \
2665 *0.9.7*) OPENSSLOPTION="-DOPENSSL_097" ;; \
2666 *0.9.8*) OPENSSLOPTION="-DOPENSSL_098" ;; \
2667 *1.[0-9].[0-9]*) OPENSSLOPTION="-DOPENSSL_100" ;; \
2668 *3.[0-9].[0-9]*) OPENSSLOPTION="-DOPENSSL_300" ;; \
2669 *) OPENSSLOPTION="" ;; \
2670 esac ; \
2671 SSLINC=$${KSSLINC:-$(SSLINC)}; \
2672 SSLLIB=$${KSSLLIB:-$(SSLLIB)}; \
2673 $(MAKE) CC=$(CC) CC2=$(CC2) macos KTARGET=$${KTARGET:-$(@)} \
2674 "KFLAGS=-DCK_AUTHENTICATION -DCK_SSL $(KCFLAGS) \
2675 $$OPENSSLOPTION $$ZLIBFLAG $$SSLINC" \
2676 "LIBS= $$SSLLIB -lssl -lcrypto $$ZLIBOPT $(KLIBS)"
2677
2678 macos+ssl-zlib macos+openssl-zlib:
2679 $(MAKE) macos+ssl KTARGET=$${KTARGET:-$(@)}
2680
2681 # Trial using the Homebrew install of krb5 and openssl
2682 # (newer versions of macOS have dropped the Kerberos5 include
2683 # files and moved to LibreSSL).
2684 # NB: not yet working **DON'T USE THIS TARGET**
2685 #
2686 macos+krb5+ssl macos+krb5+openssl:
2687 @MACOSNAME=`/usr/bin/sw_vers -productName`; \
2688 MACOSV=`/usr/bin/sw_vers -productVersion`; \
2689 echo Making C-Kermit $(CKVER) for $$MACOSNAME $$MACOSV... ; \
2690 MACCPU=$$HOSTTYPE; \
2691 HAVE_UTMPX=''; \
2692 IS_MACOSX103=''; \
2693 HAVE_DES=''; \
2694 if test -x ${HOMEBREW_PREFIX}/opt/krb5/bin/krb5-config ; \
2695 then HAVE_KRB5CONFIG=`${HOMEBREW_PREFIX}/opt/krb5/bin/krb5-config \
2696 --libs krb5 gssapi` ; \
2697 else HAVE_KRB5CONFIG='-lgssapi_krb5 -lkrb5 -lk5crypto \
2698 -lcom_err -lresolv' ; fi; \
2699 $(MAKE) CC=$(CC) CC2=$(CC2) xermit KTARGET=$${KTARGET:-$(@)} \
2700 "CFLAGS=-Wno-dangling-else -DMACOSX10 $$IS_MACOSX103 -DCK_NCURSES \
2701 -DTCPSOCKET -DUSE_STRERROR -DUSE_NAMESER_COMPAT -DNOCHECKOVERFLOW \
2702 -DFNFLOAT -DCKHTTP -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 \
2703 $$HAVE_UTMPX -DNODCLINITGROUPS -DCK_AUTHENTICATION -DCK_KERBEROS \
2704 -DKRB5 -DZLIB -DCK_ENCRYPTION -DCK_CAST -DCK_SSL -DOPENSSL_098 \
2705 $$HAVE_DES -DNOUUCP -DHERALD=\"\\\" $${MACOSNAME} $${MACOSV}\\\"\" \
2706 -DCKCPU=\"\\\"$${MACCPU}\\\"\" \
2707 $${K5INC} $${SSLINC} \
2708 -funsigned-char -O $(KFLAGS)" \
2709 "LIBS= $$HAVE_KRB5CONFIG $${SSLLIB} \
2710 -lssl -lcrypto -lpam -lncurses $(LIBS)"
2711
2712 # End of Mac OS X Section
2713
2714 #Acorn RISCiX, based on ...
2715 #Berkeley Unix 4.2 or 4.3 with lock directory /usr/spool/uucp/LCK/LCK..ttyxx,
2716 #but without acucntrl program
2717 riscix:
2718 @echo Making C-Kermit $(CKVER) for RISCiX, /usr/spool/uucp/LCK..ttyxx
2719 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
2720 "CFLAGS= -DBSD42 -DBSD4 -DRISCIX -DNOCSETS \
2721 -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DDIRENT -DCK_CURSES \
2722 -DMAXSP=9024 -DMAXRD=9024 -DSBSIZ=9050 -DRBSIZ=9050 \
2723 -DDFTTY=\\\"/dev/serial\\\" -DNOCSETS -DNOCYRIL \
2724 -DNOANSI -w -O2 -fomit-frame-pointer" \
2725 "LIBS= -lcurses -ltermcap " \
2726 "CC= /usr/ucb/cc" \
2727 "CC2= /usr/ucb/cc"
2728
2729 #Acorn RISCiX, as above, but using gcc
2730 riscix-gcc:
2731 @echo Making C-Kermit $(CKVER) for RISCiX, /usr/spool/uucp/LCK..ttyxx
2732 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
2733 "CFLAGS= -DBSD42 -DBSD4 -DRISCIX -DNOCSETS \
2734 -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DDIRENT -DCK_CURSES \
2735 -DMAXSP=9024 -DMAXRD=9024 -DSBSIZ=9050 -DRBSIZ=9050 \
2736 -DDFTTY=\\\"/dev/serial\\\" -DNOCSETS -DNOCYRIL \
2737 -DNOANSI -w -O2 -fomit-frame-pointer" \
2738 "LIBS= -lcurses -ltermcap " \
2739 "CC= gcc -mbsd" \
2740 "CC2= gcc -mbsd"
2741
2742 #Convergent CTIX 6.4.1
2743 ctix:
2744 @echo 'Making C-Kermit $(CKVER) for Convergent CTIX 6.4.1'
2745 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
2746 "CFLAGS= -DSVR3 -DDIRENT -DTCPSOCKET -DHDBUUCP -DCK_CURSES \
2747 -DNONAWS -DNOLEARN -DNOLONGLONG $(KFLAGS) -XO" \
2748 "LNKFLAGS=-s" "LIBS=-lsocket -lcurses -lc_s"
2749 mcs -d wermit
2750
2751 # The following makefile entry should work for any Harris Night Hawk system
2752 # (either 88k or 68k based) running release 6.1 or later of the CX/UX
2753 # operating system. This is a POSIX and ANSI-C compliant system which also
2754 # supports BSD networking. (Earlier CX/UX releases will probably work with
2755 # sys5r3, but this has not been verified).
2756 #
2757 cx_ux:
2758 @echo Making C-Kermit $(CKVER) for Harris Night Hawk CX/UX 6.1 or later
2759 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
2760 "CFLAGS=-DPOSIX -DTCPSOCKET -DHDBUUCP -DPID_T=pid_t -DWAIT_T=int \
2761 -Dd_ino=d_fileno -DUID_T=uid_t -DGID_T=gid_t -DNOLONGLONG \
2762 $(KFLAGS) -Xa -O3 -g" "LNKFLAGS=-O3"
2763
2764 #Intergraph Clipper, CLIX, job control, HDB UUCP.
2765 clix:
2766 @echo 'Making C-Kermit $(CKVER) for Intergraph CLIX...'
2767 $(MAKE) wermit "CC=acc" "CC2=acc" KTARGET=$${KTARGET:-$(@)} \
2768 "CFLAGS= -w -DSVR3 -DCLIX -DDIRENT -DHDBUUCP -DNOSYSLOG -DUSE_MEMCPY \
2769 -DNOGETUSERSHELL -DNOREALPATH -DNOLEARN $(KFLAGS) -O" \
2770 "LNKFLAGS=" "LIBS= -lbsd"
2771
2772 #As above + TCP/IP...
2773 clixnet:
2774 @echo 'Making networked C-Kermit $(CKVER) for Intergraph CLIX...'
2775 $(MAKE) wermit "CC=acc" "CC2=acc" KTARGET=$${KTARGET:-$(@)} \
2776 "CFLAGS= -w -DSVR3 -DCLIX -DDIRENT -DHDBUUCP -DNOSYSLOG -DUSE_MEMCPY \
2777 -DTCPSOCKET -DNOGETUSERSHELL -DNOLEARN -DNOREALPATH $(KFLAGS) -O" \
2778 "LNKFLAGS=" "LIBS= -lbsd"
2779
2780 #Mark Williams Coherent 286 or 386 on IBM PC family.
2781 #There is a 64K limit on program size, so this is a command-line only version.
2782 coherent:
2783 $(MAKE) "CFLAGS = -O -DCOHERENT -DNOANSI -DNOICP -DNOSETKEY -DNOLEARN \
2784 -DNOCSETS -DNOHELP -DNODIAL -DNOSCRIPT -DNODEBUG -DNOTLOG -DNOXMIT \
2785 -DNOMSEND -DNOFRILLS -DNOSYSIOCTLH -DSELECT_H $(KFLAGS) -VSUVAR" \
2786 -DNOFLOAT KTARGET=$${KTARGET:-$(@)} wermit
2787
2788 #Mark Williams Coherent 386 on IBM PC family.
2789 #This will make a "minimum interactive" version - no scripts,
2790 #no character sets, no help, no dial, no debug/transaction logging, no
2791 #transmit, msend, mail, type, etc.
2792 coherentmi:
2793 $(MAKE) "CFLAGS = -O -DCOHERENT -DNOANSI -DNOSETKEY -DNOLEARN \
2794 -DNOSHOW -DNOCSETS -DNOHELP -DNODIAL -DNOSCRIPT -DNODEBUG -DNOTLOG \
2795 -DNOXMIT -DNOMSEND -DNOFRILLS -DNOSYSIOCTLH -DNOSERVER -DNOUUCP \
2796 -DNOSPL -DNOPUSH -DNOMDMHUP -DNOJC -DNOFDZERO -DNOESCSEQ -DNOFLOAT \
2797 -DNOCMDL $(KFLAGS) -VSUVAR -DSELECT_H" KTARGET=$${KTARGET:-$(@)} \
2798 wermit
2799
2800 #Mark Williams Coherent 386 on IBM PC/AT family.
2801 coherentmax:
2802 $(MAKE) "CFLAGS = -O -DCOHERENT -DNOANSI -DSELECT_H -DNOLEARN \
2803 -DNOFLOAT -DNOSYSIOCTLH $(KFLAGS) -VSUVAR" "LNKFLAGS = -O -s" \
2804 KTARGET=$${KTARGET:-$(@)} wermit
2805
2806 #Mark Williams Coherent 386 4.2. Includes curses but not TCP/IP.
2807 #Requires updates to the 4.2.10 compiler; the regular compiler fails to
2808 #to handle "complex expressions". NOFLOAT is so it can work on old PCs
2809 #without floating-point hardware.
2810 coherent42:
2811 $(MAKE) "CFLAGS = -T500000 -DNOFLOAT -DCOHERENT -DNOANSI -DSELECT \
2812 -DNOSYSLOG -DDIRENT -DCK_CURSES -DCK_NEWTERM -DCK_WREFRESH -VSUVAR \
2813 -DDCLGETCWD -DNOSYSIOCTLH -DNOINITGROUPS -DNOSYMLINK -DSELECT_H \
2814 -DDCLGETCWD -O $(KFLAGS)" \
2815 "LNKFLAGS = -O -s" KTARGET=$${KTARGET:-$(@)} \
2816 "LIBS = -lsocket -lcurses" wermit
2817
2818 #DEC Ultrix 2.x
2819 # Add -O, -DDYNAMIC, -s, etc, if they work.
2820 ultrix2x:
2821 @echo Making C-Kermit $(CKVER) for Ultrix 2.x ...
2822 $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
2823 "CFLAGS= -DBSD4 -DTCPSOCKET -DDU2 -DNOGETUSERSHELL $(KFLAGS)"
2824
2825 du2:
2826 $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET-$(@)} ultrix2x
2827
2828 #DEC Ultrix 3.0 and 3.1
2829 ultrix30:
2830 @echo Making C-Kermit $(CKVER) for Ultrix 3.0...
2831 $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
2832 "CFLAGS= -DBSD4 -DTCPSOCKET -DDIRENT -DSIG_V -DNOGETUSERSHELL \
2833 -DULTRIX3 -DCK_CURSES $(KFLAGS) -O" "LIBS= -lcurses -ltermcap"
2834
2835 du3:
2836 $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET-$(@)} ultrix30
2837
2838 ultrix3x:
2839 $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET-$(@)} ultrix30
2840
2841 #DEC Ultrix 4.0 or 4.1 on DECstation, VAXstation, VAX, etc.
2842 ultrix40:
2843 @echo Making C-Kermit $(CKVER) for Ultrix 4.0 or 4.1...
2844 $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
2845 "CFLAGS= -DBSD4 -DTCPSOCKET -DSIG_V -DDU4 -DNOGETUSERSHELL \
2846 $(KFLAGS) -Olimit 1450" "LNKFLAGS = -s"
2847
2848 #DEC Ultrix 4.2-4.5 on DECstation, DECsystem, VAXstation, VAX, etc.
2849 #Like ultrix40, except now C compiler supports -O2 optimization.
2850 ultrix42:
2851 @echo Making C-Kermit $(CKVER) for Ultrix 4.2 or later...
2852 $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
2853 "CFLAGS= -DBSD4 -DTCPSOCKET -DSIG_V -DNOGETUSERSHELL $(KFLAGS) \
2854 -O2 -Olimit 1750" "LNKFLAGS = -s"
2855
2856 du42:
2857 $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET-$(@)} ultrix42
2858
2859 #DEC Ultrix 4.2-4.5 on DECstation, DECsystem, VAXstation, VAX, etc.
2860 #Like du42, but with curses support added and a couple features.
2861 ultrix42c:
2862 @echo Making C-Kermit $(CKVER) for Ultrix 4.2 or later...
2863 $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
2864 "CFLAGS= -DBSD4 -DTCPSOCKET -DSIG_V -DNOGETUSERSHELL \
2865 -DCK_CURSES -DNOIKSD $(KFLAGS)-G6 -O2 -Olimit 3000 " \
2866 "LNKFLAGS = -s" "LIBS= -lcurses -ltermcap"
2867
2868 ultrix43:
2869 $(MAKE) "MAKE=$(MAKE)" CC=$(CC) CC2=$(CC2) \
2870 "KFLAGS=-DULTRIX43 $(KFLAGS)" KTARGET=$${KTARGET-$(@)} ultrix42c
2871
2872 ultrix43notcp:
2873 $(MAKE) "MAKE=$(MAKE)" CC=$(CC) CC2=$(CC2) \
2874 "KFLAGS=-DULTRIX43 -DNONET $(KFLAGS)" \
2875 KTARGET=$${KTARGET-$(@)} ultrix42c
2876
2877 # NOTE: need -DNODEBUG on MIPS to avoid relocation errors at link time.
2878 # Actually now (8.0) that we have discovered the -G option maybe debugging
2879 # can be put back.
2880 ultrix44:
2881 $(MAKE) "MAKE=$(MAKE)" CC=$(CC) CC2=$(CC2) \
2882 "KFLAGS=-DULTRIX44 -G7 -DNODEBUG -DNETPTY -DNO_DEVTTY $(KFLAGS)" \
2883 KTARGET=$${KTARGET-$(@)} ultrix42c
2884
2885 ultrix45:
2886 $(MAKE) "MAKE=$(MAKE)" CC=$(CC) CC2=$(CC2) \
2887 "KFLAGS=-DULTRIX45 $(KFLAGS)-DNETPTY -DNO_DEVTTY $(KFLAGS)" \
2888 KTARGET=$${KTARGET-$(@)} ultrix42c
2889
2890 du42c:
2891 $(MAKE) "MAKE=$(MAKE)" CC=$(CC) CC2=$(CC2) \
2892 KTARGET=$${KTARGET-$(@)} ultrix42c
2893
2894 #DEC Ultrix 4.3A or later on DECsystem and DECstation 5000/50, /150 or /260
2895 #with MIPS R4x00 processor. The "-mips3" switch generates R4000-specific
2896 #code, which is faster and more compact, but *won't* run on earlier
2897 #DECsystems and DECstations.
2898 ultrix43-mips3:
2899 @echo Making C-Kermit $(CKVER) for Ultrix 4.3A or later, R4000 cpu...
2900 $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
2901 "CFLAGS= -DBSD4 -DTCPSOCKET -DSIG_V -DNOGETUSERSHELL \
2902 $(KFLAGS) -O2 -Olimit 1750 -mips3" "LNKFLAGS = -s -mips3"
2903
2904 du43-mips3:
2905 $(MAKE) "MAKE=$(MAKE)" CC=$(CC) CC2=$(CC2) ultrix43-mips3
2906
2907 #DEC Ultrix 4.3A or later on MIPS R4x000 based systems.
2908 #Like ultrix43-mips3 but with curses support added
2909 ultrix43c-mips3:
2910 @echo Making C-Kermit $(CKVER) for Ultrix 4.3A or later, R4000 cpu...
2911 $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
2912 "CFLAGS= -DBSD4 -DTCPSOCKET -DSIG_V -DNOGETUSERSHELL -DCK_CURSES \
2913 $(KFLAGS) -O2 -Olimit 3000 -mips3" "LNKFLAGS = -s -mips3" \
2914 "LIBS= -lcurses -ltermcap"
2915
2916 du43c-mips3:
2917 $(MAKE) "MAKE=$(MAKE)" CC=$(CC) CC2=$(CC2) \
2918 KTARGET=$${KTARGET-$(@)} ultrix43c-mips3
2919
2920 #DEC Ultrix 4.4 on DECstation 5000/50 or /150 with R4000 MIPS processor,
2921 #or 5000/260 with R4400. The "-mips3" switch generates R4000-specific code,
2922 #which is faster and more compact but *won't* run on earlier DECstations.
2923 ultrix44-mips3:
2924 @echo Making C-Kermit $(CKVER) for Ultrix 4.4, R4000 cpu ...
2925 $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
2926 "CFLAGS= -DBSD4 -DTCPSOCKET -DSIG_V -DNOGETUSERSHELL \
2927 $(KFLAGS) -O2 -Olimit 1450 -mips3" "LNKFLAGS = -s -mips3"
2928
2929 du44-mips3:
2930 $(MAKE) "MAKE=$(MAKE)" CC=$(CC) CC2=$(CC2) \
2931 KTARGET=$${KTARGET-$(@)} ultrix44c-mips3
2932
2933 #DEC Ultrix 4.2 on DECstation, VAXstation, VAX, etc, System V R4 environment
2934 ultrix42s5r4:
2935 @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4 on Ultrix...'
2936 $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
2937 "CFLAGS = -O2 -Olimit 1500 -DSVR4 -DDIRENT -DHDBUUCP -DNOGETUSERSHELL \
2938 -DTCPSOCKET $(KFLAGS)" "LNKFLAGS = -s"
2939
2940 #OSF/1
2941 osf osf1:
2942 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
2943 "CFLAGS= -DBSD4 -DOSF -D_BSD -DTCPSOCKET -DCK_ANSIC -DSIG_V \
2944 -DCK_CURSES -DCK_RTSCTS -DFNFLOAT $(KFLAGS)" \
2945 "LNKFLAGS = -s" "LIBS = $(LIBS) -lbsd -lcurses -ltermcap -lm"
2946
2947 #DEC OSF/1 V1.0-1.3 on DECstation, VAX, Alpha, or PC.
2948 dec-osf dec-osf1:
2949 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
2950 "CFLAGS= -DBSD4 -DOSF -DOSF13 -D_BSD -DTCPSOCKET -DCK_ANSIC -DSIG_V \
2951 -DNOREALPATH -DNOIKSD -DCK_CURSES -DCK_RTSCTS -DFNFLOAT -DNODEBUG \
2952 -DNOUNICODE $(KFLAGS)" \
2953 "LNKFLAGS = -non_shared" "LIBS = -lbsd -lcurses -ltermcap -lm"
2954
2955 # This one causes "relocation out-of-range" errors in the linker.
2956 old-dec-osf:
2957 @echo Making C-Kermit $(CKVER) for DEC OSF/1 V1.x...
2958 @echo If you are building for DEC OSF/1 2.0, please use dec-osf20.
2959 @echo Remove or adjust -O2 and/or -Olimit if they cause trouble.
2960 $(MAKE) CC=$(CC) CC2=$(CC2) osf KTARGET=$${KTARGET:-$(@)} \
2961 "KFLAGS= -O2 -Olimit 2400 $(KFLAGS)"
2962
2963 #DEC OSF/1 2.0 on Alpha and probably nowhere else.
2964 #The only difference from OSF/1 is that optimization is omitted.
2965 #The optimized version gets strange runtime errors, like the PAUSE command
2966 #not working. Add "-unsigned" to make all chars unsigned.
2967 dec-osf20:
2968 @echo Making C-Kermit $(CKVER) for DEC OSF/1 V2.0...
2969 @echo Optimization omitted because it causes runtime errors.
2970 @echo See comments in makefile.
2971 $(MAKE) CC=$(CC) CC2=$(CC2) osf KTARGET=$${KTARGET:-$(@)} \
2972 "KFLAGS= -DOSF20 $(KFLAGS)"
2973
2974 dec-osf30:
2975 @echo Making C-Kermit $(CKVER) for DEC OSF/1 V3.0...
2976 $(MAKE) CC=$(CC) CC2=$(CC2) osf KTARGET=$${KTARGET:-$(@)} \
2977 "KFLAGS= -DOSF30 -O2 -Olimit 2400 $(KFLAGS)"
2978
2979 #Digital UNIX 3.2
2980 # Must compile ckuus[6x].c separately without optimization otherwise
2981 # the optimizer dumps core - keep CFLAGS here in sync with those from osf.
2982 du32:
2983 @echo Making C-Kermit $(CKVER) for Digital UNIX 3.2...
2984 $(MAKE) CC=$(CC) CC2=$(CC2) ckuus6.$(EXT) \
2985 "CFLAGS= -DBSD4 -DOSF -D_BSD -DTCPSOCKET -DCK_ANSIC -DSIG_V \
2986 -DCK_CURSES -DCK_RTSCTS -DFNFLOAT -DOSF32 -DHDBUUCP $(KFLAGS)"
2987 $(MAKE) CC=$(CC) CC2=$(CC2) ckuusx.$(EXT) \
2988 "CFLAGS= -DBSD4 -DOSF -D_BSD -DTCPSOCKET -DCK_ANSIC -DSIG_V \
2989 -DCK_CURSES -DCK_RTSCTS -DFNFLOAT -DOSF32 -DHDBUUCP $(KFLAGS)"
2990 $(MAKE) CC=$(CC) CC2=$(CC2) osf \
2991 "KFLAGS= -DOSF32 -DHDBUUCP -O2 -Olimit 3200 $(KFLAGS)"
2992
2993 dec-osf32:
2994 $(MAKE) "MAKE=$(MAKE)" CC=$(CC) CC2=$(CC2) du32 \
2995 KTARGET=$${KTARGET:-$(@)}
2996
2997 #Digital UNIX 4.0 through 4.0D (use tru64 targets for 4.0E and above)...
2998 du40:
2999 @echo Making C-Kermit $(CKVER) for Digital UNIX 4.0...
3000 $(MAKE) CC=$(CC) CC2=$(CC2) osf KTARGET=$${KTARGET:-$(@)} \
3001 "KFLAGS= -DOSF40 -DHDBUUCP -DFNFLOAT \
3002 -unsigned -std1 -O3 -Olimit 2400 $(KFLAGS)" "LIBS=-lm"
3003
3004 du40gcc:
3005 @echo Making C-Kermit $(CKVER) for Digital UNIX 4.0 with gcc ...
3006 $(MAKE) osf CC=gcc CC2=gcc KTARGET=$${KTARGET:-$(@)} \
3007 "KFLAGS= -DOSF40 -DHDBUUCP $(KFLAGS)"
3008
3009 #Tru64 Unix 4.0E
3010 tru64-40e:
3011 @echo Making C-Kermit $(CKVER) for Tru64 UNIX 4.0E...
3012 $(MAKE) CC=$(CC) CC2=$(CC2) osf KTARGET=$${KTARGET:-$(@)} \
3013 "KFLAGS= -DOSF40 -DOSF40E -DTRU64 -DHDBUUCP -DFNFLOAT -DNOCOTFMC \
3014 -unsigned -std1 -O3 -Olimit 2400 $(KFLAGS)" "LIBS=-lm"
3015
3016 tru64-40f:
3017 @echo Making C-Kermit $(CKVER) for Tru64 UNIX 4.0F...
3018 $(MAKE) CC=$(CC) CC2=$(CC2) osf KTARGET=$${KTARGET:-$(@)} \
3019 "KFLAGS= -DOSF40 -DOSF40F -DTRU64 -DHDBUUCP -DFNFLOAT -DNOCOTFMC \
3020 -unsigned -std1 -O3 -Olimit 2400 $(KFLAGS)" "LIBS=-lm"
3021
3022 tru64-40g:
3023 @echo Making C-Kermit $(CKVER) for Tru64 UNIX 4.0G...
3024 $(MAKE) CC=$(CC) CC2=$(CC2) osf KTARGET=$${KTARGET:-$(@)} \
3025 "KFLAGS= -DOSF40 -DOSF40G -DTRU64 -DHDBUUCP -DFNFLOAT -DNOCOTFMC \
3026 -unsigned -std1 -O3 -Olimit 2400 $(KFLAGS)" "LIBS=-lm"
3027
3028 tru64-50a:
3029 @echo Making C-Kermit $(CKVER) for Tru64 UNIX 5.0A...
3030 $(MAKE) CC=$(CC) CC2=$(CC2) osf KTARGET=$${KTARGET:-$(@)} \
3031 "KFLAGS= -DTRU64 -DOSF50 -DHDBUUCP \
3032 -unsigned -std1 -O3 -Olimit 2400 $(KFLAGS)"
3033
3034 tru64-51a:
3035 @echo Making C-Kermit $(CKVER) for Tru64 UNIX 5.1A...
3036 $(MAKE) CC=$(CC) CC2=$(CC2) osf KTARGET=$${KTARGET:-$(@)} \
3037 "KFLAGS= -DTRU64 -DOSF50 -DOSF51A -DHDBUUCP \
3038 -unsigned -std1 -O3 -Olimit 2400 $(KFLAGS)"
3039
3040 tru64-51b:
3041 @echo Making C-Kermit $(CKVER) for Tru64 UNIX 5.1B...
3042 $(MAKE) CC=$(CC) CC2=$(CC2) osf KTARGET=$${KTARGET:-$(@)} \
3043 "KFLAGS= -DTRU64 -DOSF50 -DOSF51A -DOSF51B -DHDBUUCP \
3044 -unsigned -std1 -O3 -Olimit 2400 $(KFLAGS)"
3045
3046 # Added 5.1b version with OpenSSL - CDW 6-13-2005...
3047 tru64-51b+openssl:
3048 @echo Making C-Kermit $(CKVER) for Tru64 UNIX 5.1b
3049 @echo including OpenSSL...
3050 $(MAKE) CC=$(CC) CC2=$(CC2) osf KTARGET=$${KTARGET:-$(@)} \
3051 "KFLAGS= -DTRU64 -DOSF50 -DOSF51A -DOSF51B -DHDBUUCP \
3052 -unsigned -std1 -O3 -Olimit 2400 \
3053 -DCK_AUTHENTICATION -DCK_SSL $(SSLINC) $(KFLAGS)" \
3054 "LIBS= $(SSLLIB) -rpath $(sslroot)/ssl/lib -lssl -lcrypto"
3055
3056 du50:
3057 $(MAKE) CC=$(CC) CC2=$(CC2) tru64-50a KTARGET=$${KTARGET:-$(@)}
3058
3059 du40-ridiculous-checking:
3060 @echo Making C-Kermit $(CKVER) for Digital UNIX 4.0.
3061 @echo Checking everything - assumes DECC...
3062 $(MAKE) CC=$(CC) CC2=$(CC2) osf KTARGET=$${KTARGET:-$(@)} \
3063 "KFLAGS= -DOSF40 -DHDBUUCP -w0 -warnprotos -check -portable \
3064 -unsigned -std1 -O3 -Olimit 1760 $(KFLAGS)"
3065
3066 #Sequent DYNIX/ptx 1.2.1
3067 dynixptx12:
3068 @echo Making C-Kermit $(CKVER) for Sequent DYNIX/ptx 1.2.1...
3069 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
3070 "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -DPTX -DNOGETUSERSHELL -DNOLEARN \
3071 -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t $(KFLAGS) -i -O" \
3072 "LNKFLAGS = -i"
3073
3074 #Sequent DYNIX/ptx 1.3 or 1.4
3075 dynixptx13:
3076 @echo Making C-Kermit $(CKVER) for Sequent DYNIX/ptx 1.3 TCP/IP...
3077 $(MAKE) xermit "CFLAGS= -O KTARGET=$${KTARGET:-$(@)} \
3078 -DSVR3 -DDIRENT -DHDBUUCP -DPTX -DCK_POLL -DNOGETUSERSHELL \
3079 -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t -DTCPSOCKET $(KFLAGS) -i" \
3080 "LNKFLAGS = -i" "LIBS = -lsocket -linet -lnsl"
3081
3082 #Sequent DYNIX/ptx 2.0, ANSI C compilation
3083 #Should work on any hardware platform when DYNIX/ptx runs, including
3084 #386, 486, Pentium.
3085 dynixptx20:
3086 @echo 'Making C-Kermit $(CKVER) for POSIX, Sequent DYNIX/ptx 2.0...'
3087 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
3088 "CFLAGS= -DPOSIX -DHDBUUCP -DTCPSOCKET \
3089 -DWAIT_T=int -DPTX -DNOGETUSERSHELL $(KFLAGS) -O" \
3090 "LIBS = -lsocket -linet -lnsl"
3091
3092 #Sequent DYNIX/ptx 2.0, ANSI C compilation, with curses
3093 dynixptx20c:
3094 @echo 'Making C-Kermit $(CKVER) for POSIX, Sequent DYNIX/ptx 2.0...'
3095 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
3096 "CFLAGS= -DPOSIX -DHDBUUCP -DTCPSOCKET -DWAIT_T=int -DPTX -DCK_CURSES \
3097 -DCK_NEWTERM -DNOGETUSERSHELL $(KFLAGS) -O" \
3098 "LIBS = -lsocket -linet -lnsl -lcurses -ltermcap"
3099
3100 #Sequent DYNIX/ptx 2.1.6, 80486, ANSI C compilation, with curses:
3101 # -Xa -- use ANSI compiler.
3102 # -Wc,-pw -- suppress portability warnings.
3103 # -Wc,-i386 -- 80386 cpu.
3104 # -Wc,-i486 -- 80486 cpu.
3105 # -Wc,-P5 -- Pentium (default).
3106 # -Wc,-O3 -- highest optimization.
3107 # -Wa,-N17061 -- increase symbol table from default of 15013 for ckcuni.c.
3108 # Early versions of DYNIX/ptx 2.1.x may need -DCK_POLL instead of -DSELECT.
3109 # Add "$&" after the colon in the "xermit" target for parallel makes.
3110 dynixptx216c:
3111 @echo 'Making C-Kermit $(CKVER) for POSIX, Sequent DYNIX/ptx 2.1.6'
3112 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
3113 "CFLAGS= -DPOSIX -DHDBUUCP -DDYNAMIC -DTCPSOCKET \
3114 -DSELECT -DCK_REDIR -DCK_NAWS -DCK_WREFRESH -DSW_ACC_ID \
3115 -DTCP_NODELAY=1 -DTRMBUFL=2048 -DBIGBUFOK -DHADDRLIST \
3116 -DPTX -DCK_CURSES -DCK_NEWTERM -DNOGETUSERSHELL -DNOREALPATH \
3117 $(KFLAGS) -Xa -Wc,-pw -Wc,-i486 -Wc,-O3 -Wa,-N17061" \
3118 "LIBS = -lXbsd -lseq -lsocket -linet -lnsl -lmalloc -lm -lcurses" \
3119 "LNKFLAGS = -s"
3120
3121 #Sequent DYNIX/ptx 2.1.6, gcc 2.7.2.2, with curses:
3122 dynixptx216cgcc:
3123 @echo 'Making C-Kermit $(CKVER) for POSIX, Sequent DYNIX/ptx 2.1.6 gcc'
3124 $(MAKE) xermit "CC = gcc" "CC2 = gcc" KTARGET=$${KTARGET:-$(@)} \
3125 "CFLAGS= -DPOSIX -DHDBUUCP -DDYNAMIC -DTCPSOCKET \
3126 -DSELECT -DCK_REDIR -DCK_NAWS -DCK_WREFRESH -DSW_ACC_ID \
3127 -DTCP_NODELAY=1 -DTRMBUFL=2048 -DBIGBUFOK -DHADDRLIST \
3128 -DPTX -DCK_CURSES -DCK_NEWTERM -DNOGETUSERSHELL -DNOREALPATH \
3129 $(KFLAGS) -O3 -pipe -funsigned-char" \
3130 "LIBS = -lXbsd -lseq -lsocket -linet -lnsl -lmalloc -lm -lcurses" \
3131 "LNKFLAGS = -s"
3132
3133 #Sequent DYNIX/ptx 4.0, ANSI C compilation, with curses
3134 dynixptx41c:
3135 @echo 'Making C-Kermit $(CKVER) for POSIX, Sequent DYNIX/ptx 4.0...'
3136 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
3137 "CFLAGS= -DPOSIX -DHDBUUCP -DTCPSOCKET \
3138 -DWAIT_T=int -DPTX -DPTX4 -DCK_CURSES -DCK_NEWTERM \
3139 -DNOGETUSERSHELL $(KFLAGS) -O" \
3140 "LIBS = -lsocket -lnsl -lcurses -ltermcap"
3141
3142 #Sequent DYNIX/ptx 4.4, ANSI C compilation, with curses
3143 dynixptx44:
3144 @echo 'Making C-Kermit $(CKVER) for POSIX, Sequent DYNIX/ptx 4.4...'
3145 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
3146 "CFLAGS= -DPTX -DPTX4 -DPOSIX -DHDBUUCP -DTCPSOCKET -DWAIT_T=int \
3147 -DCK_CURSES -DCK_NEWTERM -DBIGBUFOK -DSELECT -DNOGETUSERSHELL \
3148 $(KFLAGS) -O" "LIBS = -lsocket -lnsl -lcurses -ltermcap"
3149
3150 #Sequent DYNIX 3.0.x
3151 dynix3:
3152 @echo Making C-Kermit $(CKVER) for Sequent DYNIX 3.0.x...
3153 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
3154 "CFLAGS= -DBSD43 -DACUCNTRL -DTCPSOCKET -O \
3155 -DPWUID_T=int -DGID_T=int $(KFLAGS)"
3156
3157 #Sequent DYNIX 3.0.x, no ACUCNTRL
3158 dynix3noacu:
3159 @echo Making C-Kermit $(CKVER) for Sequent DYNIX 3.0.x...
3160 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
3161 "CFLAGS= -DBSD43 -DLCKDIR -DTCPSOCKET -O \
3162 -DUID_T=int -DGID_T=int $(KFLAGS)"
3163
3164 #Sequent DYNIX 3.1.x
3165 dynix31:
3166 @echo Making C-Kermit $(CKVER) for Sequent DYNIX 3.1.x...
3167 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
3168 "CFLAGS= -O -DDCLPOPEN -DLCKDIR -DBSD4 -DTCPSOCKET $(KFLAGS)"
3169
3170 #Sequent DYNIX 3.1.2, as above but with curses, to be compiled by gcc 2.3.3.
3171 dynix31c:
3172 @echo 'Making C-Kermit $(CKVER) for Sequent DYNIX 3.1.2, curses...'
3173 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
3174 "CFLAGS= -O2 -DDCLPOPEN -DACUCNTRL \
3175 -DBSD43 -DTCPSOCKET -DCK_CURSES -DUID_T=int \
3176 $(KFLAGS)" "LIBS= -lcurses -ltermcap"
3177
3178 #Convex C1 with Berkeley Unix
3179 convex:
3180 @echo Making C-Kermit $(CKVER) for Convex C1 / BSD...
3181 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
3182 "CFLAGS= -DBSD4 -DNOLEARN $(KFLAGS) -Dmsleep=mnap"
3183
3184 #Convex C210 with Convex/OS 8
3185 convex8:
3186 @echo Making C-Kermit $(CKVER) for Convex C210 with OS 8
3187 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
3188 "CFLAGS= -DBSD4 -DTCPSOCKET -DNODEBUG -DDIRENT -DNOFILEH \
3189 $(KFLAGS) -DSIG_V -Dmsleep=mnap"
3190
3191 #Convex C2 with Convex OS 9.1 (should also work with 8.1 or later)
3192 #with ANSI C compiler, uses BSD 4.3 uucp lockfile convention.
3193 convex9:
3194 @echo Making C-Kermit $(CKVER) for Convex C210 with OS 9.1
3195 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
3196 "CFLAGS= -DPOSIX -DCONVEX9 -DNOIEXTEN -DDIRENT -DNOFILEH -DTCPSOCKET \
3197 -D__STDC__ -DLCKDIR -Dmsleep=mnap -O -ext -tm c1 $(KFLAGS)" \
3198 "LNKFLAGS = -ext"
3199
3200 #Convex C2 with Convex OS 10.1 or later
3201 #with gcc 2.x C compiler
3202 convex10gcc:
3203 @echo Making C-Kermit $(CKVER) for Convex C2 with OS 10.1 using gcc
3204 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
3205 "CFLAGS= -DPOSIX -DCONVEX9 -DNOIEXTEN -DDIRENT -DNOFILEH -DTCPSOCKET \
3206 -D__STDC__ -Dmsleep=mnap -O2 $(KFLAGS)" CC=gcc CC2=gcc
3207
3208 #Cray X-MP or Y-MP UNICOS 6.x or 7.x.
3209 #NOTE: NPROC tells how many parallel makes to run. If your Cray has multiple
3210 #processors, you can set NPROC up to the number of CPUs, e.g. NPROC=16.
3211 cray:
3212 @echo 'Making C-Kermit $(CKVER) for Cray X/Y-MP UNICOS 6.x or 7.0...
3213 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} NPROC=1 \
3214 "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -DTCPSOCKET $(KFLAGS) -O1"
3215
3216 #Cray X-MP or Y-MP UNICOS 8.0 Alpha.
3217 cray8:
3218 @echo 'Making C-Kermit $(CKVER) for Cray X/Y-MP UNICOS 8.0 Alpha...
3219 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} NPROC=1 \
3220 "CFLAGS= -DSVR4 -DDIRENT -DHDBUUCP -DTCPSOCKET $(KFLAGS) -O1"
3221
3222 #Cray X-MP or Y-MP UNICOS 9.0.
3223 #This one was executed successfully for C-Kermit 8.0.209.
3224 #Earlier versions of Unicos will probably need the same flags.
3225 cray9:
3226 @echo 'Making C-Kermit $(CKVER) for Cray X/Y-MP UNICOS 9.0...
3227 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} NPROC=1 \
3228 "CFLAGS= -DSVR4 -DDIRENT -DHDBUUCP -DNOLFDEVNO \
3229 -DTCPSOCKET $(KFLAGS) -O1"
3230
3231 #Cray-2 or Cray 3-CSOS
3232 #NOTE: NPROC tells how many parallel makes to run. If your Cray has multiple
3233 #processors, you can set NPROC up to the number of CPUs, e.g. NPROC=16.
3234 craycsos:
3235 @echo 'Making C-Kermit $(CKVER) for Cray-2/3 CSOS
3236 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} NPROC=1 \
3237 "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -DTCPSOCKET \
3238 $(KFLAGS) -DCK_ANSIC -DCK_CURSES" "LIBS=-lnet"
3239
3240 #NeXTSTEP 1.0 through 3.2.
3241 #Includes fullscreen file transfer display (curses) and TCP/IP support.
3242 #Uses shared library to make executable program about 80K smaller.
3243 #Remove "LIBS = -lsys_s" if this causes trouble.
3244 next:
3245 @echo Making C-Kermit $(CKVER) for NeXTSTEP...
3246 @echo 'If you get errors in ckutio.c about w_S, w_T, etc,'
3247 @echo 'add KFGLAGS=-DNOREDIRECT to your make command.'
3248 $(MAKE) xermit CC=$(CC) CC2=$(CC2) KTARGET=$${KTARGET:-$(@)} \
3249 "CFLAGS= -DNEXT -DTCPSOCKET -DLCKDIR -DNOPUTENV -DFNFLOAT \
3250 -pipe -DCK_CURSES $(KFLAGS) -O -w" "LIBS = -lsys_s -lcurses -ltermcap"
3251
3252 nextc:
3253 $(MAKE) "MAKE=$(MAKE)" CC=$(CC) CC2=$(CC2) next \
3254 KTARGET=$${KTARGET:-$(@)}
3255
3256 nextg:
3257 $(MAKE) "MAKE=$(MAKE)" CC=$(CC) CC2=$(CC2) next \
3258 KFLAGS=-Wall KTARGET=$${KTARGET:-$(@)}
3259
3260 nextgc:
3261 $(MAKE) "MAKE=$(MAKE)" CC=$(CC) CC2=$(CC2) next \
3262 KFLAGS=-Wall KTARGET=$${KTARGET:-$(@)}
3263
3264 #NeXTSTEP 3.3.
3265 #Includes fullscreen file transfer display and TCP/IP.
3266 # You might have to add 1 line to 1 NeXT header file <ip.h>
3267 # to declare n_long as u_long by adding #include <bsd/netinet/in_systm.h>
3268
3269 next33:
3270 @echo Making C-Kermit $(CKVER) for NeXTSTEP 3.3...
3271 $(MAKE) xermit CC=$(CC) CC2=$(CC2) KTARGET=$${KTARGET:-$(@)} \
3272 "CFLAGS= -DNEXT33 -DTCPSOCKET -DLCKDIR -DNOPUTENV -DFNFLOAT \
3273 -pipe -DCK_CURSES $(KFLAGS) -O -w" "LIBS = -lsys_s -lcurses -ltermcap"
3274
3275 #OPENSTEP 4.2 for Sparc, m680x0, HP PA-RISC, and Intel.
3276 #Includes fullscreen file transfer display and TCP/IP.
3277 openstep42:
3278 @echo Making C-Kermit $(CKVER) for OPENSTEP 4.2...
3279 $(MAKE) ckcpro.$(EXT) \
3280 "CFLAGS= -DOPENSTEP42 -DNEXT33 -DTCPSOCKET -DLCKDIR -DNOPUTENV \
3281 -DFNFLOAT -pipe -DCK_CURSES $(KFLAGS) -w"
3282 $(MAKE) xermit CC=$(CC) CC2=$(CC2) KTARGET=$${KTARGET:-$(@)} \
3283 "CFLAGS= -DOPENSTEP42 -DNEXT33 -DTCPSOCKET -DLCKDIR -DNOPUTENV \
3284 -DFNFLOAT -pipe -DCK_CURSES $(KFLAGS) -O -w" \
3285 "LIBS = -lsys_s -lcurses -ltermcap"
3286
3287 #NeXT with malloc debugger
3288 nextmd:
3289 @echo Making C-Kermit $(CKVER) for NeXT with malloc debugging...
3290 $(MAKE) mermit KTARGET=$${KTARGET:-$(@)} \
3291 "CFLAGS= -DNEXT -DTCPSOCKET -DLCKDIR -DNOPUTENV -DFNFLOAT \
3292 -DCK_CURSES $(KFLAGS) -O -w -Dmalloc=dmalloc -Dfree=dfree -DMDEBUG" \
3293 "LIBS = -lsys_s -lcurses -ltermcap"
3294
3295 #Build for NeXTSTEP with "fat" binaries (MABs) that run on both Motorola
3296 #and Intel platforms.
3297 nextfat:
3298 $(MAKE) "MAKE=$(MAKE)" CC=$(CC) CC2=$(CC2) \
3299 next KTARGET=$${KTARGET:-$(@)} \
3300 "KFLAGS=-Wall -arch m68k -arch i386" "LNKFLAGS = -arch m68k -arch i386"
3301
3302 #NeXTSTEP on Intel Platforms.
3303 next486:
3304 @echo Making C-Kermit $(CKVER) for NeXTSTEP on Intel Platforms...
3305 @echo 'If you get errors in ckutio.c about w_S, w_T, etc,'
3306 @echo 'add KFGLAGS=D-DNOREDIRECT to your make command.'
3307 $(MAKE) xermit CC=$(CC) CC2=$(CC2) KTARGET=$${KTARGET:-$(@)} \
3308 "CFLAGS= -DNEXT -DTCPSOCKET -DLCKDIR -DNOPUTENV -DFNFLOAT \
3309 -DNODEBUG -O3 -fno-omit-frame-pointer -fschedule-insns2 -pipe \
3310 -DCK_CURSES $(KFLAGS) -w" "LIBS = -lsys_s -lcurses -ltermcap"
3311
3312 #Single binary that runs on NeXT 68030 and 68040, Intel, HP, and Sparc,
3313 #as well as on OpenStep/Mach.
3314 nextquadfat:
3315 $(MAKE) "MAKE=$(MAKE)" CC=$(CC) CC2=$(CC2) next \
3316 KTARGET=$${KTARGET:-$(@)} \
3317 "KFLAGS=-Wall -arch m68k -arch i386 -arch hppa -arch sparc" \
3318 "LNKFLAGS = -arch m68k -arch i386 -arch hppa -arch sparc"
3319
3320 #BeBox
3321 beboxdr7:
3322 @echo 'Making C-Kermit $(CKVER) for the BeBox...'
3323 @echo 'Link step will fail with default Metroworks linker 64K limit.'
3324 @echo 'Code Warrior Gold required to link big programs.'
3325 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
3326 "CC=/boot/develop/tools/mwcc" "CC2=/boot/develop/tools/mwld" \
3327 "CFLAGS= -DBEBOX -DBE_DR_7 -DPOSIX -DNOUUCP -DNOLEARN $(KFLAGS) -O"
3328
3329 #BeBox BeOS DR7 only
3330 bebox:
3331 @echo 'Making C-Kermit $(CKVER) for BeBox...'
3332 @echo 'Link step will fail with default Metroworks linker 64K limit.'
3333 @echo 'Code Warrior Pro 3.0 for BeBox required to link big programs.'
3334 $(MAKE) wermit "CC=mwcc" "CC2=mwld" KTARGET=$${KTARGET:-$(@)} \
3335 "CFLAGS= -DBEBOX -DPOSIX -DNOLEARN -DNOUUCP $(KFLAGS) -O"
3336
3337 #BeOS 4.5
3338 #We have to use the wermit target because 'fd_set' is unknown.
3339 beos45:
3340 $(MAKE) wermit "CC=$(CC)" "CC2=$(CC2)" KTARGET=$${KTARGET:-$(@)} \
3341 "CFLAGS= -DBEOS -DBEOS45 -DPOSIX -DNOIKSD -DNOREALPATH -DSYSTIMEH \
3342 -DNOCOTFMC -DNOUUCP -DNOLEARN $(KFLAGS) -O" \
3343 "LIBS = $(LIBS)"
3344
3345 #BeOS 4.5
3346 beos45net:
3347 $(MAKE) CC=$(CC) CC2=$(CC2) beos45 \
3348 "KFLAGS=-DTCPSOCKET -DNO_DNS_SRV $(KFLAGS)" "LIBS=-lnet -lnetapi"
3349
3350 #Plan 9 from Bell Labs
3351 plan9:
3352 @echo 'C-Kermit for Plan 9 from Bell Labs - calling ckpker.mk...'
3353 make -f ckpker.mk
3354
3355 #POSIX
3356 posix:
3357 @echo 'Making C-Kermit $(CKVER) for pure POSIX...'
3358 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
3359 "CFLAGS= -DPOSIX -DNOUUCP -DNOLEARN $(KFLAGS) -O"
3360
3361 # PowerMAX OS (SVR4) from Concurrent (tested on PowerMAX 5.1)
3362 powermax:
3363 @echo 'Making C-Kermit $(CKVER) for Concurrent PowerMAX OS...'
3364 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
3365 "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DPOWERMAX \
3366 -DNETPTY -DHAVE_STREAMS -DHAVE_GRANTPT -DHAVE_PTSNAME -DPUSH_PTEM \
3367 -DPUSH_LDTERM -DPUSH_TTCOMPAT \
3368 -DSTERMIOX -DTCPSOCKET -DCK_CURSES $(KFLAGS)" \
3369 "LIBS= -lsocket -lnsl -lresolv -lcurses -lgen -lc -lucbc"
3370
3371 #Berkeley Software Design Inc. BSDI
3372 # Substitute "LIBS= -lnewcurses -ltermcap" if desired.
3373 bsdi:
3374 @echo 'Making C-Kermit $(CKVER) for BSDI ...'
3375 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
3376 "CFLAGS= -DBSD44 -DSETREUID -DSW_ACC_ID -DBIGBUFOK -DFIXCRTSCTS \
3377 -DTCPSOCKET -DCK_CURSES -DFNFLOAT $(KFLAGS) -O" \
3378 "LIBS= -lcurses -ltermcap -lm"
3379
3380 #Berkeley Software Design Inc. BSDI - has higher serial speeds than 1.x.
3381 bsdi2:
3382 $(MAKE) "MAKE=$(MAKE)" CC=$(CC) CC2=$(CC2) bsdi \
3383 KTARGET=$${KTARGET:-$(@)} "KFLAGS=-DBSDI2 $(KFLAGS)"
3384
3385 bsdi3:
3386 $(MAKE) "MAKE=$(MAKE)" CC=$(CC) CC2=$(CC2) bsdi \
3387 KTARGET=$${KTARGET:-$(@)} "KFLAGS=-DBSDI2 -DBSDI3 $(KFLAGS)"
3388
3389 bsdi4:
3390 $(MAKE) "MAKE=$(MAKE)" CC=$(CC) CC2=$(CC2) bsdi \
3391 KTARGET=$${KTARGET:-$(@)} \
3392 "KFLAGS=-DBSDI2 -DBSDI3 -DBSDI4 -DTPUTSFNTYPE=void -DTPUTSISVOID \
3393 -DCKHTTP -m486 $(KFLAGS)"
3394
3395 # (old name for the above)
3396 bsdiposix:
3397 $(MAKE) "MAKE=$(MAKE)" CC=$(CC) CC2=$(CC2) bsdi
3398
3399
3400 #Build a BSDI 4.x binary that also runs under FreeBSD (Terry Kennedy).
3401 #But watch out for details like serial-port locking.
3402 bsdix:
3403 $(MAKE) "MAKE=$(MAKE)" CC=$(CC) CC2=$(CC2) bsdi \
3404 KTARGET=$${KTARGET:-$(@)} \
3405 "KFLAGS=-DBSDI2 -DBSDI3 -DBSDI4 -DTPUTSFNTYPE=void -DTPUTSISVOID \
3406 -m486 $(KFLAGS)" "LNKFLAGS=-static -Wl,-m,i386bsdi -Wl,-e,_start"
3407
3408 #Pyramid 9XXX (e.g. 9845) or MIServer T series, OSx 4.4b thru 5.1
3409 pyramid:
3410 @echo Making C-Kermit $(CKVER) for Pyramid Dual Port OSx
3411 ucb $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
3412 "CFLAGS= -DBSD43 -DTCPSOCKET -DPYRAMID -O $(KFLAGS)" "LNKFLAGS = -s"
3413
3414 #Pyramid Dual Port OSx using HoneyDanBer UUCP, curses and TCP
3415 pyramid-hdb:
3416 @echo Making C-Kermit $(CKVER) for Pyramid Dual Port OSx
3417 ucb $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
3418 "CFLAGS= -DBSD43 -DTCPSOCKET -DHBDUUCP -DCK_CURSES -O $(KFLAGS)" \
3419 "LNKFLAGS = -s" "LIBS = -lcurses -ltermcap"
3420
3421 #Pyramid DC/OSx (UNIX System V R4).
3422 #Has <sys/termiox.h>, regular Berkeley sockets library, i.e. in.h and inet.h
3423 #are not misplaced in sys (rather than netinet and arpa, respectively).
3424 #Uses ANSI C.
3425 #NOTE: Remove -O and Olimit:2500 from CFLAGS if TELNET connections do not work.
3426 pyrdcosx:
3427 @echo 'Making C-Kermit $(CKVER) for Pyramid DC/OSx...'
3428 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
3429 "CFLAGS = -Xa -O -DSVR4 -DDIRENT -DHDBUUCP -DSELECT -DNOGETUSERSHELL \
3430 -DCK_CURSES -DSTERMIOX -DTCPSOCKET -DPYRAMID -K Olimit:3100 \
3431 -DNO_DNS_SRV $(KFLAGS)" "LIBS= -lcurses -lsocket -lnsl" "LNKFLAGS = -s"
3432
3433 #IBM's AIX 3.0 on IBM 370 mainframe, tested on AIX F44 thru F50.
3434 aix370:
3435 @echo Making C-Kermit $(CKVER) for IBM System/370 AIX 3.0...
3436 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
3437 "CFLAGS= -DAIX370 -DTCPSOCKET -DLCKDIR -DDIRENT $(KFLAGS)" \
3438 "LIBS = -lbsd"
3439
3440 #IBM's AIX/ESA 2.1 (OSF/1) on IBM mainframe
3441 aixesa:
3442 @echo Making C-Kermit $(CKVER) for IBM AIX/ESA...
3443 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
3444 "CFLAGS= -DAIXESA -DTCPSOCKET $(KFLAGS) -O"
3445
3446 #IBM PS/2 with AIX 1.0 thru 1.3.
3447 # Reports indicate that -O switch must be omitted.
3448 # It is also possible that "make bsd" will work (reports welcome).
3449 # One report said "make LIBS=-lbsd bsd" did the trick.
3450 # NOTLOG is to get around a 'tlog' symbol defined in one of the headers.
3451 ps2aix:
3452 @echo 'Making C-Kermit $(CKVER) for IBM AIX 1.x PS/2...'
3453 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
3454 "CFLAGS = -DATTSV -DNOREALPATH -DPS2AIX10 -DSIG_V \
3455 -DNOUNICODE -DNOTLOG -DNOLEARN $(KFLAGS) -i" \
3456 "LNKFLAGS = -i"
3457
3458 ps2aixnetc:
3459 @echo 'Making C-Kermit $(CKVER) for IBM AIX 1.x PS/2...'
3460 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
3461 "CFLAGS = -DATTSV -DNOREALPATH -DPS2AIX10 -DTCPSOCKET -DCK_CURSES \
3462 -DSIG_V -DNOUNICODE -DNOTLOG -DNOLEARN $(KFLAGS) -i" \
3463 "LIBS = -lcurses" "LNKFLAGS = -i"
3464
3465 ps2aix3:
3466 $(MAKE) ps2aix KTARGET=$${KTARGET:-$(@)}
3467
3468 #IBM RT PC with AIX 2.2.1, valid as of C-Kermit 8.0.
3469 #NOTLOG because of a conflict in <sys/termio.h>.
3470 #This one has unique and strange lockfiles.
3471 # -O removed on purpose (8.0).
3472 # In case of "compiler error: symbol table full", increase the -Nn number.
3473 # In case of "compiler error: Constant pool too big", boost the -Np number.
3474 # Add -DNOPUTENV if putenv() causes trouble.
3475 # Put -DNOIKSD back if IKSD-related problems occur.
3476 rtaix:
3477 @echo 'Making C-Kermit $(CKVER) for IBM RT PC, AIX 2.2.1...'
3478 $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
3479 "CFLAGS = -DATTSV -DRTAIX -DHDBUUCP -DDIRENT -DNOTLOG -DTCPSOCKET \
3480 -DNOGETUSERSHELL -DCLSOPN -DNOREALPATH -DNOUNICODE -DBSD_INCLUDES \
3481 -DUSE_LSTAT -DFNFLOAT -Nn2500 -Np1000 -Wq,-SJ2 -a -w $(KFLAGS)" \
3482 "LIBS = -lm $(LIBS)" "LNKFLAGS = -s"
3483
3484 #### IBM RT PC - these targets were last verified in C-Kermit 8.0.211.
3485
3486 #IBM RT PC with AIX 2.2.1 + curses
3487 rtaixc:
3488 $(MAKE) rtaix CC=$(CC) CC2=$(CC2) "KFLAGS=-DCK_CURSES" "LIBS=-lcurses"
3489
3490 #IBM RT PC with AIX (ACIS) 2.2.1 (BSD 4.3)
3491 # Add -O, -DDYNAMIC, -s, etc, if they work.
3492 rtacis:
3493 @echo Making C-Kermit $(CKVER) for RT PC with ACIS 2.2.1 = BSD 4.3...
3494 $(MAKE) xermit KTARGET=$${KTARGET-$(@)} \
3495 "CFLAGS= -DBSD4 -DTCPSOCKET -DNOREALPATH -DNOIKSD -DNOPUTENV \
3496 $(KFLAGS) -U__STDC__" "LNKFLAGS = -s"
3497
3498 #### IBM AIX. The first two targets should work for any version of AIX
3499 #### from 4.2 onwards. The ones after that are for older versions or
3500 #### specific configurations, and/or with gcc.
3501
3502 # This one should work for any AIX 4.2 or later: "make aix".
3503 # Other tags are for compatibility with old makefile targets.
3504 #OK: 2011/06/11
3505 aix aix42 aix43 aix44 aix45 aix50 aix51 aix52 aix53 aix54 aix61:
3506 @echo Making C-Kermit $(CKVER) for IBM AIX...
3507 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
3508 "CFLAGS= -DAIXRS -DAIX41 -DAIX42 -DSVR4 -DSTERMIOX -DTCPSOCKET \
3509 -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DCK_NEWTERM -DFNFLOAT \
3510 -DSELECT -DSELECT_H -DNOGETUSERSHELL -qmaxmem=16000 -O \
3511 -DCKCPU=\\\"`uname -p`\\\" \
3512 -DHERALD=\"\\\" IBM AIX `uname -v`.`uname -r`\\\"\" \
3513 -D_LARGE_FILES $(KFLAGS)" "LNKFLAGS = -s" "LIBS=-lcurses -lm"
3514
3515 # Same but using gcc instead of cc
3516 # This works but we get "gcc: unrecognized option '-qmaxmem-..'" each module.
3517 aixg:
3518 @echo "Using gcc..."
3519 $(MAKE) aix KTARGET=$${KTARGET:-$(@)} \
3520 CC=gcc CC2=gcc "KFLAGS=-pipe -funsigned-char"
3521
3522 # AIX 4.2 or later with OpenSSL 0.9.7 or later: "make aix+ssl"
3523 # For earlier OpenSSL remove -DOPENSSL_097 or add "KFLAGS=-UOPENSSL_097".
3524 # Synonym target names added to cover old redundant targets that were removed.
3525 # If SSL is not installed in the /usr/local tree (see SSLINC and SSLLIB
3526 # definitions near the top), you can specify the locations in your make
3527 # command as in this example:
3528 #
3529 # SSLINC=-I/opt/ssl/include SSLLIB=-L/opt/ssl/lib make -e aix+ssl
3530 #
3531 # To build with gcc use "make aix CC=gcc CC2=gcc", or "make aixg"
3532 #
3533 #OK: 2011/06/15
3534 aix+ssl aix51+openssl aix52+openssl aix53+openssl:
3535 @echo "Making C-Kermit $(CKVER) for IBM AIX with OpenSSL..."
3536 @echo "SSLINC=$(SSLINC) SSLLIB=$(SSLLIB)"
3537 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
3538 CC=$(CC) CC2=$(CC2) \
3539 "CFLAGS=-DAIXRS -DAIX41 -DAIX42 -DSVR4 -DSTERMIOX -DTCPSOCKET \
3540 -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DCK_NEWTERM -DFNFLOAT \
3541 -D_LARGE_FILES -DSELECT -DSELECT_H -DNOGETUSERSHELL \
3542 -DCKCPU=\\\"`uname -p`\\\" \
3543 -DHERALD=\"\\\" IBM AIX `uname -v`.`uname -r`\\\"\" \
3544 -DCK_AUTHENTICATION -DCK_SSL -DOPENSSL_097 $(SSLINC) $(KFLAGS)" \
3545 "LNKFLAGS=-s" "LIBS=$(SSLLIB) -lssl -lcrypto -lcurses -lm -lcrypt"
3546
3547 # AIX 5.3 or 6.1 or later with IBM OpenSSL, which is always in the directories
3548 # shown below so you don't have to set SSLINC and SSLLIB. If for some reason
3549 # the SSL include files and libraries are not in the places assumed, then use
3550 # "make aix+ssl" (just above) and set SSLINC and SSLLIB to indicate where the
3551 # SSL files are. To build with gcc use "make aix+ibmssl CC=gcc CC2=gcc".
3552 aix+ibmssl:
3553 @echo "Making C-Kermit $(CKVER) for IBM AIX 6.1 with OpenSSL..."
3554 @echo "If this fails use 'make aix+ss' and specify SSLINC and SSLLIB"
3555 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
3556 CC=$(CC) CC2=$(CC2) \
3557 "CFLAGS=-DAIXRS -DAIX41 -DAIX42 -DSVR4 -DSTERMIOX -DTCPSOCKET \
3558 -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DCK_NEWTERM -DFNFLOAT \
3559 -D_LARGE_FILES -DSELECT -DSELECT_H -DNOGETUSERSHELL \
3560 -DCKCPU=\\\"`uname -p`\\\" \
3561 -DHERALD=\"\\\" IBM AIX `uname -v`.`uname -r`\\\"\" \
3562 -DCK_AUTHENTICATION -DCK_SSL -DOPENSSL_098 \
3563 -I/usr/include/openssl $(KFLAGS)" \
3564 "LNKFLAGS=-s" \
3565 "LIBS=-L/usr/lib/openssl -lssl -lcrypto -lcurses -lm -lcrypt"
3566
3567 # Old AIX versions...
3568
3569 #IBM AIX 3.0, 3.1, or 3.2 for RISC System/6000.
3570 rs6000:
3571 @echo Making C-Kermit $(CKVER) for IBM AIX 3.0 or 3.1, RS/6000...
3572 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
3573 "CFLAGS= -DAIXRS -DTCPSOCKET -DSVR3 -DDIRENT -DCK_ANSIC \
3574 -DCK_POLL -DCLSOPN -DSELECT_H -DNOTTYLOCK -O $(KFLAGS)" \
3575 "LNKFLAGS = -s"
3576
3577 #IBM AIX 3.0, 3.1, or 3.2 for RISC System/6000, with curses.
3578 rs6000c:
3579 @echo Making C-Kermit $(CKVER) for IBM AIX 3.0 or 3.1, RS/6000...
3580 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
3581 "CFLAGS= -DAIXRS -DTCPSOCKET -DSVR3 -DDIRENT -DCK_ANSIC \
3582 -DCK_POLL -DCLSOPN -DCK_CURSES -DSELECT_H -DNOTTYLOCK -DNOREALPATH \
3583 -O $(KFLAGS)" "LIBS= -lcurses -ltermcap" "LNKFLAGS = -s"
3584
3585 aix30:
3586 $(MAKE) rs6000 CC=$(CC) CC2=$(CC2) KTARGET=$${KTARGET:-$(@)}
3587
3588 aix31:
3589 $(MAKE) rs6000 CC=$(CC) CC2=$(CC2) KTARGET=$${KTARGET:-$(@)}
3590
3591 #IBM AIX 3.2 for RISC System/6000.
3592 #In case of "subprogram too complex" warnings, add "-qmaxmem=16000" to CFLAGS.
3593 rs6aix32:
3594 @echo Making C-Kermit $(CKVER) for IBM AIX 3.2, RS/6000...
3595 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
3596 "CFLAGS= -DAIXRS -DTCPSOCKET -DSVR4 -DDIRENT -DCK_ANSIC -DNOREALPATH \
3597 -DSELECT_H -DCLSOPN -DNOTTYLOCK -O $(KFLAGS)" "LNKFLAGS = -s"
3598
3599 #IBM AIX 3.2 for RISC System/6000.
3600 rs6aix32c:
3601 @echo Making C-Kermit $(CKVER) for IBM AIX 3.2, RS/6000, TCP+curses...
3602 @echo In case of Subprogram Too Complex warnings,
3603 @echo add -qmaxmem=16000 to CFLAGS.
3604 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
3605 "CFLAGS= -DAIXRS -DTCPSOCKET -DSVR4 -DDIRENT -DCK_ANSIC -DNOREALPATH \
3606 -DCLSOPN -DCK_CURSES -DSELECT_H -DNOTTYLOCK -O $(KFLAGS)" \
3607 "LNKFLAGS = -s" "LIBS=-lcurses"
3608
3609 aix32:
3610 $(MAKE) rs6aix32c KTARGET=$${KTARGET:-$(@)}
3611
3612 #IBM AIX 4.1, 4.1.x on RISC System/6000 or Power Series.
3613 #Generates common binary for all platforms if using xlc (IBM C compiler).
3614 #When using gcc, add -mcpu=common to generate common binary.
3615 #Note that this one needs CK_NEWTERM.
3616 # Add -bbigtoc in case ld fails with TOC overflow.
3617 aix41:
3618 @echo Making C-Kermit $(CKVER) for IBM AIX 4.1.1 RS/6000 or PowerPC...
3619 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
3620 "CFLAGS= -DAIXRS -DAIX41 -DSVR4 -DSTERMIOX -DTCPSOCKET -DDIRENT \
3621 -DCK_ANSIC -DCLSOPN -DCK_CURSES -DCK_NEWTERM -DSELECT -DSELECT_H \
3622 -DNOGETUSERSHELL -qmaxmem=16000 -O $(KFLAGS)" \
3623 "LNKFLAGS = -s" "LIBS=-lcurses"
3624
3625 #Ditto but with gcc.
3626 #Remove "CC=gcc CC2=gcc" if you have gcc installed as cc.
3627 aix41g:
3628 @echo Making C-Kermit $(CKVER) for IBM AIX 4.1.1 RS/6000 or PowerPC...
3629 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC=gcc" "CC2=gcc" \
3630 "CFLAGS= -DAIXRS -DAIX41 -DSVR4 -DSTERMIOX -DTCPSOCKET -DDIRENT \
3631 -DCK_ANSIC -DCLSOPN -DCK_CURSES -DCK_NEWTERM -DSELECT -DSELECT_H \
3632 -DNOGETUSERSHELL -O $(KFLAGS)" \
3633 "LNKFLAGS = -s -Xlinker -bbigtoc" "LIBS=-lcurses"
3634
3635 # Add -bbigtoc in case ld fails with TOC overflow.
3636 aix41+krb5+krb4:
3637 @echo Making C-Kermit $(CKVER) for IBM AIX 4.1.1 RS/6000 or PowerPC...
3638 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
3639 "CFLAGS= -DAIXRS -DAIX41 -DSVR4 -DSTERMIOX -DTCPSOCKET -DDIRENT \
3640 -DCK_ANSIC -DCLSOPN -DCK_CURSES -DCK_NEWTERM -DSELECT -DSELECT_H \
3641 -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 -DKRB4 -DKRB524 \
3642 -DCK_ENCRYPTION -DCK_DES $(K5INC) $(K5INC)/krb5 \
3643 -DNOGETUSERSHELL -qmaxmem=16000 -O $(KFLAGS)" \
3644 "LNKFLAGS = -s" \
3645 "LIBS = $(K5LIB) -lcurses -lkrb4 -ldes425 -lkrb5 \
3646 -lcom_err -lk5crypto -lgssapi_krb5"
3647
3648 #Old name for "aix41".
3649 rs6aix41c:
3650 $(MAKE) aix41 KTARGET=$${KTARGET:-$(@)}
3651
3652 #IBM AIX 4.1, 4.1.x, or 4.2 on RISC System/6000 or Power Series,
3653 # with X.25 support
3654 #Generates common binary for all platforms if using xlc (IBM C compiler).
3655 #When using gcc, add -mcpu=common to generate common binary.
3656 # Add -bbigtoc in case ld fails with TOC overflow.
3657 aix41x25:
3658 @echo Making C-Kermit $(CKVER) for IBM AIX 4.1.1 RS/6000 or PowerPC...
3659 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
3660 "CFLAGS= -DAIXRS -DAIX41 -DSVR4 -DSTERMIOX -DTCPSOCKET -DDIRENT \
3661 -DCK_ANSIC -DCLSOPN -DCK_CURSES -DCK_NEWTERM -DSELECT -DSELECT_H \
3662 -DIBMX25 -DDEBUG -DNOGETUSERSHELL -qmaxmem=16000 -g $(KFLAGS)" \
3663 "LNKFLAGS = -g -bI:/lib/pse.exp" "LIBS=-lcurses -lodm -lcfg"
3664 -@echo "]0;kermit done\c"
3665
3666 #As above but without -g in LNKFLAGS.
3667 # Add -bbigtoc in case ld fails with TOC overflow.
3668 aix41x25o:
3669 @echo Making C-Kermit $(CKVER) for IBM AIX 4.1.1 RS/6000 or PowerPC...
3670 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
3671 "CFLAGS= -DAIXRS -DAIX41 -DSVR4 -DSTERMIOX -DTCPSOCKET -DDIRENT \
3672 -DCK_ANSIC -DCLSOPN -DCK_CURSES -DCK_NEWTERM -DSELECT -DSELECT_H \
3673 -DIBMX25 -DNODEBUG -DNOGETUSERSHELL -qmaxmem=16000 $(KFLAGS)" \
3674 "LNKFLAGS = -bI:/lib/pse.exp" "LIBS=-lcurses -lodm -lcfg"
3675 -@echo "]0;kermit done\c"
3676
3677 #AIX 4.2 -- Use this target if the regular "make aix" doesn't work.
3678 # Must have CK_NEWTERM or echoing is lost after curses.
3679 # Add -bbigtoc in case ld fails with TOC overflow. As of C-Kermit 8.0.212,
3680 # all AIX builds 4.2 and later include large file support.
3681 oldaix42:
3682 @echo Making C-Kermit $(CKVER) for IBM AIX 4.2 or higher...
3683 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
3684 "CFLAGS= -DAIXRS -DAIX41 -DAIX42 -DSVR4 -DSTERMIOX -DTCPSOCKET \
3685 -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DCK_NEWTERM -DFNFLOAT \
3686 -DSELECT -DSELECT_H -DNOGETUSERSHELL -qmaxmem=16000 -O \
3687 -DCKCPU=\\\"`uname -p`\\\" \
3688 -DHERALD=\\\"\ IBM\ AIX\ `uname -v`.`uname -r`\\\" \
3689 -D_LARGE_FILES $(KFLAGS)" "LNKFLAGS = -s" "LIBS=-lcurses -lm"
3690
3691 #AIX 4.3 - Use this target if the regular "make aix" doesn't work.
3692 # Must NOT have CK_NEWTERM or else C-Kermit hangs after curses.
3693 # -bbigtoc needed on some systems but not others to avoid TOC overflow.
3694 # "man ld" says -bbigtoc makes program run slower.
3695 oldaix43:
3696 @echo Making C-Kermit $(CKVER) for IBM AIX 4.3 or higher...
3697 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
3698 "CFLAGS= -DAIXRS -DAIX41 -DAIX43 -DSVR4 -DSTERMIOX -DTCPSOCKET \
3699 -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DSELECT -DSELECT_H \
3700 -DFNFLOAT -DNOGETUSERSHELL -qmaxmem=16000 -bbigtoc -O $(KFLAGS)" \
3701 "LNKFLAGS = -s" "LIBS=-lcurses -lm"
3702
3703 #AIX 4.3 with IBM X.25.
3704 aix43x25:
3705 @echo "Making C-Kermit $(CKVER) for IBM AIX 4.3 with X.25..."
3706 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
3707 "CFLAGS= -DAIXRS -DAIX41 -DAIX43 -DSVR4 -DSTERMIOX -DTCPSOCKET \
3708 -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DSELECT -DSELECT_H \
3709 -DFNFLOAT -DNOGETUSERSHELL -DIBMX25 \
3710 -qmaxmem=16000 -bbigtoc -O $(KFLAGS)" \
3711 "LNKFLAGS = -bI:/lib/pse.exp" "LIBS=-lcurses -lodm -lcfg -lm"
3712
3713 #AIX 4.3 -- Must NOT have CK_NEWTERM or else C-Kermit hangs after curses.
3714 # -mminimal-toc needed on some systems but not others to avoid TOC overflow.
3715 # "man ld" says -bbigtoc makes program run slower.
3716 aix43g:
3717 @echo Making C-Kermit $(CKVER) for IBM AIX 4.3 gcc...
3718 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
3719 "CFLAGS= -mminimal-toc -g -O -DAIXRS -DAIX41 -DAIX43 -DSVR4 \
3720 -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DSELECT -DSELECT_H \
3721 -DSTERMIOX -DTCPSOCKET -DFNFLOAT -DNOGETUSERSHELL $(KFLAGS)" \
3722 "LIBS=-lcurses -lm"
3723
3724 aix43gcc:
3725 $(MAKE) aix43g
3726
3727 # None of the following aix43gcc attempts work on a gcc-only AIX 4.3.3 box.
3728 # It just plain can't find the math routines (fmod, pow, exp, sqrt, log10,...)
3729 # Which is odd because nm /usr/lib/libC.a finds them...
3730
3731 #in case aix43gcc can't find its math library...
3732 aix43gccx:
3733 @echo Making C-Kermit $(CKVER) for IBM AIX 4.3 gcc...
3734 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
3735 "CFLAGS= -mminimal-toc -g -O -DAIXRS -DAIX41 -DAIX43 -DSVR4 \
3736 -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DSELECT -DSELECT_H \
3737 -DSTERMIOX -DTCPSOCKET -DFNFLOAT -DNOGETUSERSHELL $(KFLAGS)" \
3738 "LIBS= -L/usr/local/lib/gcc-lib/powerpc-ibm-aix4.3.1.0/2.95.2 \
3739 -lcurses -bloadmap -bnoquiet"
3740
3741 #in case aix43gccx can't find its math library...
3742 aix43gccy:
3743 @echo Making C-Kermit $(CKVER) for IBM AIX 4.3 gcc...
3744 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
3745 "CFLAGS= -mminimal-toc -g -O -DAIXRS -DAIX41 -DAIX43 -DSVR4 \
3746 -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DSELECT -DSELECT_H \
3747 -DSTERMIOX -DTCPSOCKET -DFNFLOAT -DNOGETUSERSHELL $(KFLAGS)" \
3748 "LIBS= -lcurses -bloadmap -bnoquiet"
3749
3750 #in case aix43gccx can't find its math library...
3751 aix43gccz:
3752 @echo Making C-Kermit $(CKVER) for IBM AIX 4.3 gcc...
3753 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
3754 "CFLAGS= -mminimal-toc -g -O -DAIXRS -DAIX41 -DAIX43 -DSVR4 \
3755 -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DSELECT -DSELECT_H \
3756 -DSTERMIOX -DTCPSOCKET -DFNFLOAT -DNOGETUSERSHELL $(KFLAGS)" \
3757 "LIBS= -L. -lcurses -bloadmap -bnoquiet"
3758
3759 #AIX 4.3 with MIT Kerberos 5 and Kerberos 4 compatibility mode
3760 # Must NOT have CK_NEWTERM or else C-Kermit hangs after curses.
3761 # -mminimal-toc needed on some systems but not others to avoid TOC overflow.
3762 # "man ld" says -bbigtoc makes program run slower.
3763 aix43gcc+krb5+krb4:
3764 @echo Making C-Kermit $(CKVER) for IBM AIX 4.3 or higher w/Kerberos...
3765 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
3766 "CFLAGS= -mminimal-toc -g -O -DAIXRS -DAIX41 -DAIX43 -DSVR4 \
3767 -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DSELECT -DSELECT_H \
3768 -DSTERMIOX -DTCPSOCKET -DFNFLOAT -DNOGETUSERSHELL \
3769 -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 -DKRB4 -DKRB524 \
3770 -DCK_ENCRYPTION -DCK_DES -funsigned-char $(K5INC) $(K5INC)/krb5 \
3771 $(KFLAGS)" \
3772 "LIBS=$(K5LIB) -lcurses -lm -lkrb4 -ldes425 -lkrb5 \
3773 -lcom_err -lk5crypto -lcrypt -lgssapi_krb5"
3774
3775 #AIX 4.3 with MIT Kerberos 5, Kerberos 4 compatibility mode and OpenSSL
3776 # Must NOT have CK_NEWTERM or else C-Kermit hangs after curses.
3777 # -mminimal-toc needed on some systems but not others to avoid TOC overflow.
3778 # "man ld" says -bbigtoc makes program run slower.
3779 aix43gcc+krb5+krb4+openssl:
3780 @echo Making C-Kermit $(CKVER) for IBM AIX 4.3 or higher w/Kerberos...
3781 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
3782 "CFLAGS= -mminimal-toc -g -O -DAIXRS -DAIX41 -DAIX43 -DSVR4 \
3783 -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DSELECT -DSELECT_H \
3784 -DSTERMIOX -DTCPSOCKET -DFNFLOAT -DNOGETUSERSHELL \
3785 -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 -DKRB4 -DKRB524 \
3786 -DCK_ENCRYPTION -DCK_DES -DCK_CAST -DLIBDES -DCK_SSL \
3787 -funsigned-char $(K5INC) $(K5INC)/krb5 $(SSLINC) $(KFLAGS)" \
3788 "LIBS=$(K5LIB) $(SSLLIB) -lssl -lcrypto \
3789 -lcurses -lm -lkrb4 -ldes425 -lkrb5 -lcom_err -lk5crypto -lcrypt \
3790 -lgssapi_krb5"
3791
3792 aix43gcc+openssl:
3793 @echo Making C-Kermit $(CKVER) for IBM AIX 4.3 or higher w/OpenSSL...
3794 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
3795 "CFLAGS= -mminimal-toc -g -O -DAIXRS -DAIX41 -DAIX43 -DSVR4 \
3796 -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DSELECT -DSELECT_H \
3797 -DSTERMIOX -DTCPSOCKET -DFNFLOAT -DNOGETUSERSHELL \
3798 -DCK_AUTHENTICATION -DCK_SSL -funsigned-char $(SSLINC) $(KFLAGS)" \
3799 "LIBS=$(SSLLIB) -lssl -lcrypto -lcurses -lm -lcrypt"
3800
3801 aix44gcc:
3802 $(MAKE) aix43g "KFLAGS=-DAIX44 $(KFLAGS)" \
3803 KTARGET=$${KTARGET:-$(@)}
3804
3805 aix45gcc:
3806 $(MAKE) aix43g "KFLAGS=-DAIX45 $(KFLAGS)" \
3807 KTARGET=$${KTARGET:-$(@)}
3808
3809 aix50gcc:
3810 $(MAKE) aix43g "KFLAGS=-DAIX50 $(KFLAGS)" \
3811 KTARGET=$${KTARGET:-$(@)}
3812
3813 aix51gcc:
3814 $(MAKE) aix43g "KFLAGS=-DAIX51 $(KFLAGS)" \
3815 KTARGET=$${KTARGET:-$(@)}
3816
3817 aix52gcc:
3818 $(MAKE) aix43g "KFLAGS=-DAIX52 $(KFLAGS)" \
3819 KTARGET=$${KTARGET:-$(@)}
3820
3821 aix53gcc:
3822 $(MAKE) aix43g "KFLAGS=-DAIX53 $(KFLAGS)" \
3823 KTARGET=$${KTARGET:-$(@)}
3824
3825 #Bull DPX/2 with BOS/X, like AIX/RS6000
3826 bulldpx2:
3827 @echo Making C-Kermit $(CKVER) for Bull DPX/2 with BOS/X...
3828 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
3829 "CFLAGS= -DSVR3 -DDIRENT -DCK_ANSIC -DCKTYP_H=<sys/types.h> \
3830 -DCK_POLL -DNOGETUSERSHELL -DCLSOPN -DNOLEARN -O $(KFLAGS)" \
3831 "LNKFLAGS = -s"
3832
3833 #Sun UNIX 3.5 with gcc 2.3.3.
3834 sunos3gcc:
3835 @echo Making C-Kermit $(CKVER) for Sun UNIX 3.5 and gcc...
3836 $(MAKE) xermit CC=gcc CC2=gcc KTARGET=$${KTARGET:-$(@)} \
3837 CFLAGS="-g -O -DBSD4 -DTCPSOCKET $(KFLAGS)"
3838
3839 #SunOS version 4.0, BSD environment, has saved original euid feature.
3840 # Add "CC=/usr/ucb/cc CC2=/usr/ucb/cc" if necessary.
3841 # Note: Including Unicode crashes the assembler in ckcuni.c.
3842 sunos4:
3843 @echo Making C-Kermit $(CKVER) for SunOS 4.0, BSD environment...
3844 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
3845 "CFLAGS= -O -DSUNOS4 -DFNFLOAT -DNOUNICODE $(KFLAGS)" \
3846 "LIBS=-lm"
3847
3848 #As above, but with SunLink X.25 support
3849 sunos4x25:
3850 @echo SunLink X.25 support
3851 $(MAKE) "MAKE=$(MAKE)" sunos4 KTARGET=$${KTARGET:-$(@)} \
3852 "KFLAGS=$(KFLAGS) -DFNFLOAT -DSUNX25" \
3853 "LIBS=-lm"
3854
3855 #SUN OS version 4.1 - 4.1.3, BSD environment, has saved original euid feature.
3856 #Uses Honey DanBer UUCP. Requires presence of /usr/spool/locks directory.
3857 # /var/spool/ should be a symbolic link to /usr/spool/.
3858 # ... or 'make xermit "CC= /usr/ucb/cc " \'
3859 # Uses bundled Sun C compiler, pre-ANSI, no version number.
3860 # Note: "xermit" means use the select() version of the CONNECT module.
3861 # Note2: ckutio.c includes both <termios.h> and <sys/ioctl.h> and these
3862 # two header files each define the same symbols: ECHO, NL0, NL1, TAB0, etc,
3863 # because the #define's aren't enclosed in #indef ECHO..#endif, etc.
3864 # The warnings are unavoidable but harmless. Last built: 27 October 2022.
3865 sunos41:
3866 @echo Making C-Kermit $(CKVER) for SunOS 4.1 / BSD...
3867 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
3868 "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNOUNICODE $(KFLAGS)" \
3869 "LIBS= $(LIBS) -lresolv -lm"
3870
3871 #As above, but compiled with gcc. Gives 24-32K size reduction
3872 #with gcc 2.1 or 2.2.2. CAUTION: make sure "fixincludes" has been run on
3873 #the include files, so gcc's are in sync with the regular Sun ones.
3874 #This includes the curses library for fullscreen file transfer display.
3875 #NDGPWNAM needed for GCC 2.5.6, not needed for 2.4.0, but it's uncertain
3876 #whether it will do any harm for 2.4.0 compilation -- if so, remove it.
3877 sunos41gcc:
3878 @echo Making C-Kermit $(CKVER) for SunOS 4.1 with gcc and curses...
3879 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
3880 "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT \
3881 -funsigned-char $(KFLAGS)" "LIBS= -lcurses -ltermcap -lresolv -lm"
3882
3883 # As above, but without -funsigned-char so I can see the warnings that
3884 # everybody else will get when they use ANSI compilers that don't have this
3885 # option (gsc = gcc signed char).
3886 sunos41gsc:
3887 @echo Making C-Kermit $(CKVER) for SunOS 4.1 with gcc and curses...
3888 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
3889 "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT \
3890 $(KFLAGS)" "LIBS= -lcurses -ltermcap -lresolv -lm"
3891
3892 #As above but with ckucon.c rather than ckucns.c (for testing only)
3893 sunos41gccfork:
3894 @echo Making C-Kermit $(CKVER) for SunOS 4.1 with gcc and curses...
3895 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
3896 "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT \
3897 -DNOLEARN -funsigned-char $(KFLAGS)" \
3898 "LIBS= -lcurses -ltermcap -lresolv -lm"
3899
3900 #as above but configured for Kerberos IV
3901 sunos41gcc+krb4:
3902 @echo Making C-Kermit $(CKVER) for SunOS 4.1, gcc, curses, krb4...
3903 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
3904 "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT \
3905 -DTCPSOCKET -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB4 \
3906 -DCK_ENCRYPTION -DCK_DES -DCK_CAST -DBIGBUFOK -funsigned-char \
3907 $(K4INC) $(KFLAGS)" \
3908 "LIBS= $(K4LIB) -lcurses -ltermcap -lresolv -lm -lkrb -ldes"
3909
3910 #as above but configured for SSL/TLS
3911 sunos41gcc+openssl:
3912 @echo Making C-Kermit $(CKVER) for SunOS 4.1, gcc, curses, ssl...
3913 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
3914 "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT \
3915 -DCK_AUTHENTICATION -funsigned-char \
3916 -DCK_SSL -DTCPSOCKET -DBIGBUFOK $(SSLINC) $(KFLAGS)" \
3917 "LIBS= $(SSLLIB) -lcurses -ltermcap -lresolv -lm -lssl -lcrypto"
3918
3919 #as above but configured for Kerberos IV and SSL/TLS
3920 sunos41gcc+krb4+openssl:
3921 @echo Making C-Kermit $(CKVER) for SunOS 4.1, gcc, curses, krb4...
3922 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
3923 "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT \
3924 -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB4 -DCK_ENCRYPTION -DCK_DES \
3925 -DCK_CAST -DCK_SSL -DLIBDES -DTCPSOCKET -DBIGBUFOK -funsigned-char \
3926 $(K4INC) $(SSLINC) $(KFLAGS)" \
3927 "LIBS= $(K4LIB) $(SSLLIB) \
3928 -lcurses -ltermcap -lresolv -lm -lkrb -lssl -lcrypto"
3929
3930 #as above but configured for Kerberos IV and ZLIB enabled SSL/TLS
3931 sunos41gcc+krb4+openssl+zlib:
3932 @echo Making C-Kermit $(CKVER) for SunOS 4.1, gcc, curses, krb4...
3933 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
3934 "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT \
3935 -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB4 -DCK_ENCRYPTION -DCK_DES \
3936 -DCK_CAST -DCK_SSL -DLIBDES -DTCPSOCKET -DBIGBUFOK -funsigned-char \
3937 -DZLIB $(K4INC) $(SSLINC) \
3938 $(KFLAGS)" \
3939 "LIBS= $(K4LIB) $(SSLLIB) \
3940 -lcurses -ltermcap -lresolv -lm -lkrb -lssl -lcrypto -lz"
3941
3942 #as above but configured for Kerberos IV and SRP and ZLIB enabled SSL/TLS
3943 sunos41gcc+krb4+srp+openssl+zlib:
3944 @echo "C-Kermit $(CKVER) SunOS 4.1: gcc,curses,krb4,srp,ssl,zlib..."
3945 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
3946 "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT \
3947 -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB4 -DCK_ENCRYPTION -DCK_DES \
3948 -DCK_CAST -DCK_SSL -DLIBDES -DTCPSOCKET -DBIGBUFOK -funsigned-char \
3949 -DZLIB -DCK_SRP $(K4INC) $(SRPINC) $(SSLINC) $(KFLAGS)" \
3950 "LIBS= $(K4LIB) $(SRPLIB) $(SSLLIB) \
3951 -lcurses -ltermcap -lresolv -lm -lkrb -lkrypto \
3952 -lsrp -lssl -lcrypto -lz"
3953
3954 #as above but configured for Kerberos IV and SRP and ZLIB enabled SSL/TLS
3955 sunos41gcc+srp+openssl+zlib:
3956 @echo "C-Kermit $(CKVER) SunOS 4.1: gcc,curses,srp,ssl,zlib..."
3957 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
3958 "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT \
3959 -DCK_AUTHENTICATION -DCK_ENCRYPTION -DCK_DES \
3960 -DCK_CAST -DCK_SSL -DLIBDES -DTCPSOCKET -DBIGBUFOK -funsigned-char \
3961 -DZLIB -DCK_SRP $(SRPINC) $(SSLINC) \
3962 $(KFLAGS)" \
3963 "LIBS= $(SRPLIB) $(SSLLIB) \
3964 -lcurses -ltermcap -lresolv -lm -lkrypto -lsrp -lssl -lcrypto -lz "
3965
3966 #SUNOS 4.1 as sunos41 above, but also with curses support
3967 sunos41c:
3968 @echo Curses support
3969 $(MAKE) "MAKE=$(MAKE)" sunos41 KTARGET=$${KTARGET:-$(@)} \
3970 "KFLAGS=$(KFLAGS) -DCK_CURSES -DFNFLOAT " \
3971 "LIBS= -lcurses -ltermcap"
3972
3973 #As SunOS 4.1.x, gcc, configured as Internet Kermit Server.
3974 # . NOLOCAL removes capability to make connections
3975 # . TNCODE allows server-side Telnet negotiation.
3976 # . used to include -lpwent, why?
3977 # . used to include -L/usr/local/lib -lm, why?
3978 sunos41giks:
3979 @echo Making C-Kermit $(CKVER) for SunOS 4.1 with gcc for IKS...
3980 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc" \
3981 "CFLAGS= -O -DSUNOS41 -DNDGPWNAM -DFNFLOAT \
3982 -DNOLOCAL -DTCPSOCKET -DTNCODE -DNOPUSH $(KFLAGS)" \
3983 "LIBS= -lm -lresolv"
3984
3985 #SUNOS 4.1 with SunLink X.25 support
3986 sunos41x25:
3987 @echo SunLink X.25 support
3988 $(MAKE) "MAKE=$(MAKE)" wermit KTARGET=$${KTARGET:-$(@)} \
3989 "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNOUNICODE -DFNFLOAT -DSUNX25 \
3990 -DNOLEARN $(KFLAGS)" "LIBS= $(LIBS) -lresolv -lm"
3991
3992 #SUNOS 4.1 with SunLink X.25 support and curses
3993 sunos41x25c:
3994 @echo SunLink X.25 support + curses
3995 $(MAKE) "MAKE=$(MAKE)" wermit KTARGET=$${KTARGET:-$(@)} \
3996 "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNOUNICODE -DFNFLOAT -DSUNX25 \
3997 -DCK_CURSES -DNOLEARN $(KFLAGS)" \
3998 "LIBS= $(LIBS) -lcurses -ltermcap -lresolv -lm"
3999
4000 #SUN with Solaris 2.0 = SunOS 5.0.
4001 #Mostly the same as System V R4. Don't use this with later Solaris versions.
4002 solaris20:
4003 @echo 'Making C-Kermit $(CKVER) for Sun with Solaris 2.0 and curses...'
4004 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
4005 "CFLAGS = -O -DSVR4 -DSOLARIS -DDIRENT -DHDBUUCP -DSTERMIOX \
4006 -DTCPSOCKET -DCK_CURSES -DFNFLOAT -DCK_POLL $(KFLAGS)" \
4007 "LIBS= -lsocket -lnsl -lcurses -ltermlib -lm" "LNKFLAGS = -s"
4008
4009 #SUN with Solaris 2.0.
4010 #As above, but built with the gcc compiler from the Cygnus CD-ROM.
4011 solaris20g:
4012 @echo 'Making C-Kermit $(CKVER) for Sun Solaris 2.0, gcc, and curses..'
4013 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
4014 "CFLAGS = -O -DSVR4 -DSOLARIS -DDIRENT -DHDBUUCP -DSTERMIOX \
4015 -DTCPSOCKET -DCK_CURSES -DCK_POLL -DFNFLOAT $(KFLAGS)" \
4016 "LIBS= -lsocket -lnsl -lcurses -ltermlib -lm" "LNKFLAGS = -s" \
4017 CC=/opt/cygnus-sol2-1.1/bin/gcc CC2=/opt/cygnus-sol2-1.1/bin/gcc
4018
4019 #SunOS 5.1 = Solaris 2.1.
4020 #NOTE: A C compiler is no longer bundled with SunOS 5.1, so to compile C
4021 #programs, you might have to change your PATH to include the directory
4022 #/usr/ccs/bin AFTER the directory containing the compiler. SunPRO C is
4023 #installed by default in /opt/SUNWspro/bin. So a sample PATH might be:
4024 #
4025 # /usr/local/bin:/usr/bin:/opt/SUNWspro/bin:/usr/ccs/bin:\
4026 # /usr/ucb:/usr/sbin:/sbin:.
4027 #
4028 # or:
4029 #
4030 # /usr/openwin/bin:/export/home/SUNWspro/bin:/usr/ccs/bin:/usr/sbin:/usr/bin.
4031 #
4032 #NOTE 2: Compilation with the Apogee C compiler (apcc) might not work,
4033 #because it refuses to allow "-Usun". Reportedly, newer releases of apcc
4034 #(such as 1.2.17) work OK, use: "make -e sunos51 CC=apcc CC2=apcc".
4035 solaris21:
4036 @echo 'Making C-Kermit $(CKVER) for SunOS 5.x....'
4037 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
4038 "CFLAGS = -O -Usun -DSVR4 -DSOLARIS -DDIRENT -DHDBUUCP -DFNFLOAT \
4039 -DSELECT -DNODEBUG -DSTERMIOX $(KFLAGS)" "LIBS = -lm" "LNKFLAGS = -s"
4040
4041 #Solaris 2.0 - 2.4, SunPro compiler, includes curses and TCP/IP.
4042 #When using SUNWspro CC 2.0.1 under Solaris 2.3, be sure all cc patches
4043 #are applied, otherwise corrupt or truncated object files can result.
4044 #To build, set your PATH as follows:
4045 # /usr/local/bin:/usr/bin:/opt/SUNWspro/bin:/usr/ccs/bin:\
4046 # /usr/ucb:/usr/sbin:/sbin:.
4047 # or (depending on where the compiler has been installed):
4048 # /usr/openwin/bin:/export/home/SUNWspro/bin:/usr/ccs/bin:/usr/sbin:/usr/bin.
4049 #For additional optimization try using "-fast -xO4 -xdepend".
4050 solaris2x:
4051 @echo 'Making C-Kermit $(CKVER) for Solaris 2.x with SunPro cc...'
4052 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
4053 "CFLAGS = -O -Usun -i -DSVR4 -DDIRENT -DSOLARIS -DHDBUUCP -DFNFLOAT \
4054 -DSELECT -DCK_CURSES -DCK_NEWTERM -DSTERMIOX -DTCPSOCKET $(KFLAGS)" \
4055 "LNKFLAGS = -s" "LIBS= -ltermlib -lsocket -lnsl -lm -lresolv"
4056
4057 #as above but configured for Kerberos IV
4058 solaris2x+krb4:
4059 @echo 'Making C-Kermit $(CKVER) for Solaris 2.x, SunPro cc, krb4...'
4060 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
4061 "CFLAGS = -O -Usun -i -DSVR4 -DDIRENT -DSOLARIS -DHDBUUCP -DFNFLOAT \
4062 -DSELECT -DCK_CURSES -DCK_NEWTERM -DSTERMIOX -DTCPSOCKET \
4063 -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB4 \
4064 -DCK_ENCRYPTION -DCK_DES -DCK_CAST $(K4INC) $(KFLAGS)" \
4065 "LNKFLAGS = -s" \
4066 "LIBS= $(K4LIB) -ltermlib -lsocket -lnsl -lm -lresolv -lkrb -ldes"
4067
4068 #C-Kermit for Solaris 2.0-2.4 compiled with gcc, includes curses and TCP/IP.
4069 #Change -O2 to -O if -O2 gives trouble.
4070 #Remove -Usun if it causes trouble.
4071 #Your PATH should start with something like:
4072 # /usr/local/gnu/bin:/usr/ccs/bin:
4073 #Produces a huge executable -- strip with /usr/ccs/bin/strip (not Gnu strip).
4074 #Also don't add "LNKFLAGS = -s" -- strip manually instead.
4075 #Also note: this can NOT be linked statically - Sun makes it impossible.
4076 #And for Solaris 2.4, you might have to replace:
4077 # /usr/local/lib/gcc-lib/i486-sun-solaris2/2.4.5/include/sys/stat.h
4078 #with /usr/include/sys/stat.h.
4079 solaris2xg:
4080 @echo 'Making C-Kermit $(CKVER) for Solaris 2.x with GNU cc...'
4081 @echo 'Please read the comments that accompany the solaris2xg target.'
4082 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
4083 "CFLAGS = -g -O -Usun -DSVR4 -DSOLARIS -DSTERMIOX -DSELECT -DFNFLOAT \
4084 -DCK_CURSES -DCK_NEWTERM -DDIRENT -DHDBUUCP -DTCPSOCKET $(KFLAGS)" \
4085 "LIBS= -ltermlib -lsocket -lnsl -lm -lresolv $(LIBS)"
4086
4087 #ditto but no curses.
4088 solaris2xgnc:
4089 @echo 'Making C-Kermit $(CKVER) for Solaris 2.x with GNU cc...'
4090 @echo 'Please read the comments that accompany the solaris2xg target.'
4091 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
4092 "CFLAGS = -g -O -Usun -DSVR4 -DSOLARIS -DSTERMIOX -DSELECT -DFNFLOAT \
4093 -DDIRENT -DHDBUUCP -DTCPSOCKET $(KFLAGS)" \
4094 "LIBS= -lsocket -lnsl -lm -lresolv $(LIBS)"
4095
4096 #and with Kerberos IV
4097 solaris2xg+krb4:
4098 @echo 'Making C-Kermit $(CKVER) for Solaris 2.x with GNU cc, krb4...'
4099 @echo 'Please read the comments that accompany the solaris2xg target.'
4100 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
4101 "CFLAGS = -g -O -Usun -DSVR4 -DSOLARIS -DSTERMIOX -DSELECT -DFNFLOAT \
4102 -DCK_CURSES -DCK_NEWTERM -DDIRENT -DHDBUUCP -DTCPSOCKET \
4103 -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB4 -DCK_ENCRYPTION \
4104 -DCK_DES -DCK_CAST -DBIGBUFOK $(K4INC) $(KFLAGS)" \
4105 "LIBS= $(K4LIB) -ltermlib -lsocket -lnsl -lm -lresolv -lkrb -ldes \
4106 $(LIBS)"
4107
4108 #and with OpenSSL,ZLIB,PAM,SHADOW
4109 solaris2xg+openssl+zlib+pam+shadow:
4110 @echo 'Making C-Kermit $(CKVER) for Solaris 2.x with gcc, OpenSSL...'
4111 @echo 'Please read the comments that accompany the solaris2xg target.'
4112 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
4113 "CFLAGS = -g -O -Usun -DSVR4 -DSOLARIS -DSTERMIOX -DSELECT -DFNFLOAT \
4114 -DCK_CURSES -DCK_NEWTERM -DDIRENT -DHDBUUCP -DTCPSOCKET \
4115 -DCK_AUTHENTICATION -DCK_SSL -DCK_PAM -DCK_SHADOW -DZLIB \
4116 -DBIGBUFOK $(SSLINC) $(KFLAGS)" \
4117 "LIBS= $(SSLLIB) -ltermlib \
4118 -lsocket -lnsl -lm -lresolv -lssl -lcrypto -lpam -lz"
4119
4120 #Ditto but with GCC 3.1 in which you have to specify 32-bit with -m32.
4121 #In Solaris 9 (and maybe 8) you'll also need specifiy the Library path.
4122 #Reportedly this can be done here, but only with:
4123 # crle -l /usr/lib:/usr/local/ssl/lib
4124 #prior to building. Note: 64-bit not tested with SSL.
4125 #For no-crypto 64-bit builds see the solaris9g64 target.
4126 solaris2xg32+openssl+zlib+pam+shadow:
4127 @echo 'Making C-Kermit $(CKVER) for Solaris 2.x with gcc, OpenSSL...'
4128 @echo 'Please read the comments that accompany the solaris2xg target.'
4129 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC="gcc -m32" CC2="gcc -m32" \
4130 "CFLAGS = -g -O -Usun -DSVR4 -DSOLARIS -DSTERMIOX -DSELECT -DFNFLOAT \
4131 -DCK_CURSES -DCK_NEWTERM -DDIRENT -DHDBUUCP -DTCPSOCKET \
4132 -DCK_AUTHENTICATION -DCK_SSL -DCK_PAM -DCK_SHADOW -DZLIB \
4133 -DBIGBUFOK $(SSLINC) $(KFLAGS)" \
4134 "LIBS= $(SSLLIB) -ltermlib \
4135 -lsocket -lnsl -lm -lresolv -lssl -lcrypto -lpam -lz"
4136
4137 #and with Krb5,Krb4,OpenSSL,SHADOW
4138 solaris2xg+krb5+krb4+openssl+shadow:
4139 @echo 'Making C-Kermit $(CKVER) for Solaris 2.x with gcc,k5,k4,ssl...'
4140 @echo 'Please read the comments that accompany the solaris2xg target.'
4141 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
4142 "CFLAGS = -O -Usun -DSVR4 -DSOLARIS -DSTERMIOX -DSELECT -DFNFLOAT \
4143 -DCK_CURSES -DCK_NEWTERM -DDIRENT -DHDBUUCP -DTCPSOCKET \
4144 -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 -DKRB4 -DKRB524 \
4145 -DCK_ENCRYPTION -DCK_SSL -DCK_DES -DCK_CAST -DBIGBUFOK \
4146 $(K5INC) $(K5INC)/krb5 $(SSLINC) $(KFLAGS)" \
4147 "LIBS= $(K5LIB) $(SSLLIB) -ltermlib -lsocket -lnsl -lm -lresolv \
4148 -lkrb4 -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto \
4149 -ldes $(LIBS)"
4150
4151 #and with OpenSSL
4152 solaris2xg+openssl+pam+shadow:
4153 @echo 'Making C-Kermit $(CKVER) for Solaris 2.x with gcc, OpenSSL...'
4154 @echo 'Please read the comments that accompany the solaris2xg target.'
4155 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
4156 "CFLAGS = -g -O -Usun -DSVR4 -DSOLARIS -DSTERMIOX -DSELECT -DFNFLOAT \
4157 -DCK_CURSES -DCK_NEWTERM -DDIRENT -DHDBUUCP -DTCPSOCKET \
4158 -DCK_AUTHENTICATION -DCK_SSL -DCK_PAM -DCK_SHADOW \
4159 -DBIGBUFOK $(SSLINC) $(KFLAGS)" \
4160 "LIBS= $(SSLLIB) -ltermlib \
4161 -lsocket -lnsl -lm -lresolv -lssl -lcrypto -lpam"
4162
4163 solaris2xg+openssl+zlib+srp+pam+shadow:
4164 @echo 'Making C-Kermit $(CKVER) for Solaris 2.x with gcc, OpenSSL...'
4165 @echo 'Please read the comments that accompany the solaris2xg target.'
4166 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
4167 "CFLAGS = -g -O -Usun -DSVR4 -DSOLARIS -DSTERMIOX -DSELECT -DFNFLOAT \
4168 -DCK_CURSES -DCK_NEWTERM -DDIRENT -DHDBUUCP -DTCPSOCKET -DBIGBUFOK \
4169 -DCK_AUTHENTICATION -DCK_ENCRYPTION -DCK_DES -DLIBDES -DCK_CAST \
4170 -DCK_SSL -DCK_PAM -DCK_SHADOW -DZLIB -DCK_SRP $(SSLINC) $(KFLAGS)" \
4171 "LIBS= $(SSLLIB) -ltermlib -lsocket -lnsl -lm -lresolv -lsrp -lssl \
4172 -ldes -lkrypto -lcrypto -lpam -lz"
4173
4174 solaris22g:
4175 $(MAKE) "MAKE=$(MAKE)" "KFLAGS=-DPOSIX_CRTSCTS $(KFLAGS)" solaris2xg \
4176 KTARGET=$${KTARGET:-$(@)}
4177
4178 solaris23g:
4179 $(MAKE) "MAKE=$(MAKE)" "KFLAGS=-DPOSIX_CRTSCTS $(KFLAGS)" solaris2xg \
4180 KTARGET=$${KTARGET:-$(@)}
4181
4182 #Solaris 2.4 built with gcc
4183 solaris24g:
4184 $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET:-$(@)} \
4185 solaris2xg "KFLAGS=-DSOLARIS24 -DPOSIX_CRTSCTS $(KFLAGS)"
4186
4187 #Solaris 2.0-2.3, SunPro compiler, with SunLink X.25 support.
4188 #This will only run if user has /opt/SUNWconn/lib/libsockx25.so.1
4189 #exists and can be dynamically linked.
4190 #NOTE: Do not change target to xermit -- it doesn't support X.25.
4191 solaris2x25:
4192 @echo 'Making C-Kermit $(CKVER) for Solaris 2.x+X.25 with SunPro cc...'
4193 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
4194 "CFLAGS = -O -i -Usun -DSVR4 -DSOLARIS -DDIRENT \
4195 -DSUNX25 -DTCPSOCKET -DHDBUUCP -DFNFLOAT -DNOLEARN \
4196 -DSELECT -DCK_CURSES -DCK_NEWTERM -DSTERMIOX $(KFLAGS)" \
4197 "LNKFLAGS = -s" \
4198 "LIBS= -ltermlib -L/opt/SUNWconn/lib -R/opt/SUNWconn/lib \
4199 -lsockx25 -lsocket -lnsl -lm -lresolv"
4200
4201 #Solaris 2.0-2.4, gcc, SunLink X.25 added.
4202 #NOTE: Can't use xermit target with X.25.
4203 solaris2xgx25:
4204 @echo 'Making C-Kermit $(CKVER) for Solaris 2.x + X.25 with GNU cc...'
4205 @echo 'Please read the comments that accompany the solaris2xg entry.'
4206 $(MAKE) wermit CC=gcc CC2=gcc KTARGET=$${KTARGET:-$(@)} \
4207 "CFLAGS = -g -O -Usun -DSVR4 -DSOLARIS -DSTERMIOX -DSELECT -DSUNX25 \
4208 -DCK_CURSES -DCK_NEWTERM -DDIRENT -DHDBUUCP -DTCPSOCKET -DFNFLOAT \
4209 -DNOLEARN $(KFLAGS)" \
4210 "LIBS= -ltermlib -lm -L/opt/SUNWconn/lib -R/opt/SUNWconn/lib \
4211 -lsockx25 -lsocket -lnsl"
4212
4213 #Solaris 2.4, SunPro compiler, with SunLink X.25 support.
4214 #This will only run if user has /opt/SUNWconn/lib/libsockx25.so.1
4215 #exists and can be dynamically linked.
4216 solaris24x25:
4217 @echo 'Making C-Kermit $(CKVER) for Solaris 2.4+X.25 with SunPro cc...'
4218 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
4219 "CFLAGS = -O -i -Usun -DSVR4 -DSOLARIS -DSOLARIS24 -DDIRENT -DNOLEARN \
4220 -DSUNX25 -DTCPSOCKET -DHDBUUCP -DFNFLOAT -DPOSIX_CRTSCTS \
4221 -DSELECT -DCK_CURSES -DCK_NEWTERM -DSTERMIOX $(KFLAGS)" \
4222 "LNKFLAGS = -s" \
4223 "LIBS= -ltermlib -L/opt/SUNWconn/lib -R/opt/SUNWconn/lib \
4224 -lsockx25 -lsocket -lnsl -lm -lresolv"
4225
4226 #Solaris 2.5, SunPro compiler, with SunLink X.25 support.
4227 solaris25x25:
4228 @echo 'Making C-Kermit $(CKVER) for Solaris 2.5+X.25 with SunPro cc...'
4229 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
4230 "CFLAGS = -O -i -Usun -DSVR4 -DSOLARIS25 -DDIRENT -DSUNX25 \
4231 -DTCPSOCKET -DHDBUUCP -DSELECT -DCK_CURSES \
4232 -DCK_NEWTERM -DSTERMIOX -DFNFLOAT -DPOSIX_CRTSCTS -DNOLEARN \
4233 -I/opt/SUNWconn/include $(KFLAGS)" \
4234 "LIBS= -ltermlib -L/opt/SUNWconn/lib -R/opt/SUNWconn/lib \
4235 -lsockx25 -lsocket -lnsl -lm -lresolv"
4236
4237 solaris23:
4238 $(MAKE) "MAKE=$(MAKE)" solaris2x KTARGET=$${KTARGET:-$(@)} \
4239 "KFLAGS=$(KFLAGS)"
4240
4241 solaris24:
4242 $(MAKE) "MAKE=$(MAKE)" solaris2x KTARGET=$${KTARGET:-$(@)} \
4243 "KFLAGS=-DSOLARIS24 -DPOSIX_CRTSCTS $(KFLAGS)"
4244
4245 # template for Solaris 2.5 and above.
4246 solaris25x:
4247 @echo 'Making C-Kermit $(CKVER) for Solaris 2.x with SunPro cc...'
4248 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
4249 "CFLAGS = -DFNFLOAT -O -Usun -i $(KFLAGS)" \
4250 "LNKFLAGS = -s" \
4251 "LIBS= -ltermlib -lsocket -lnsl -lm -lresolv $(LIBS)"
4252
4253 #Solaris 2.5, SunPro compiler, curses, TCP/IP
4254 solaris25:
4255 $(MAKE) "MAKE=$(MAKE)" solaris25x KTARGET=$${KTARGET:-$(@)} \
4256 "KFLAGS=-DSOLARIS25 $(KFLAGS)"
4257
4258 #Solaris 2.5, SunPro compiler, curses, TCP/IP, Kerberos IV
4259 solaris25+krb4:
4260 $(MAKE) "MAKE=$(MAKE)" solaris25x+krb4 KTARGET=$${KTARGET:-$(@)} \
4261 "KFLAGS=-DSOLARIS25 $(KFLAGS)"
4262
4263 #Solaris 2.5 built with gcc
4264 solaris25g:
4265 $(MAKE) "MAKE=$(MAKE)" solaris2xg KTARGET=$${KTARGET:-$(@)} \
4266 "KFLAGS=-funsigned-char -DSOLARIS25 $(KFLAGS)"
4267
4268 #Solaris 2.5 built with gcc and Kerberos IV
4269 solaris25g+krb4:
4270 $(MAKE) "MAKE=$(MAKE)" solaris2xg+krb4 KTARGET=$${KTARGET:-$(@)} \
4271 "KFLAGS=-funsigned-char -DSOLARIS25 $(KFLAGS)"
4272
4273 #Solaris 2.5 built with gcc and Kerberos V/IV, SSL, ...
4274 solaris25g+krb5+krb4+openssl+shadow:
4275 $(MAKE) "MAKE=$(MAKE)" solaris2xg+krb5+krb4+openssl+shadow \
4276 KTARGET=$${KTARGET:-$(@)} \
4277 "KFLAGS=-funsigned-char -DSOLARIS25 $(KFLAGS)"
4278
4279 #Solaris 2.5, gcc, SunLink X.25 added.
4280 solaris25gx25:
4281 $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET:-$(@)} solaris2xgx25 \
4282 "KFLAGS=-DSOLARIS25 $(KFLAGS)"
4283
4284 #Solaris 2.6, gcc, SunLink X.25 added.
4285 solaris26gx25:
4286 $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET:-$(@)} solaris2xgx25 \
4287 "KFLAGS=-DSOLARIS26 -DCK_PAM -DCK_SHADOW $(KFLAGS)" \
4288 "LIBS= -lpam"
4289
4290 #Solaris 2.6, SunPro compiler, curses, TCP/IP
4291 solaris26:
4292 $(MAKE) "MAKE=$(MAKE)" solaris25x KTARGET=$${KTARGET:-$(@)} \
4293 "KFLAGS=-DSOLARIS26 -DCK_PAM -DCK_SHADOW $(KFLAGS)" \
4294 "LIBS= -lpam"
4295
4296 #Solaris 2.6 with gcc
4297 solaris26g:
4298 $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET:-$(@)} solaris2xg \
4299 "KFLAGS= -DSOLARIS26 -DCK_PAM -DCK_SHADOW $(KFLAGS)" \
4300 "LIBS = -lpam"
4301
4302 #Solaris 2.6 with gcc and SSL
4303 solaris26g+openssl:
4304 $(MAKE) "MAKE=$(MAKE)" solaris2xg+openssl+pam+shadow \
4305 KTARGET=$${KTARGET:-$(@)} "KFLAGS= -DSOLARIS26 $(KFLAGS)"
4306
4307 #Solaris 2.6 with gcc, no curses (e.g. because libtermlib is missing).
4308 solaris26gnc:
4309 $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET:-$(@)} solaris2xgnc \
4310 "KFLAGS= -DSOLARIS26 -DCK_PAM -DCK_SHADOW $(KFLAGS)" \
4311 "LIBS= -lpam"
4312
4313 #Solaris 2.6, SunPro compiler, with SunLink X.25 support.
4314 solaris26x25:
4315 @echo 'Making C-Kermit $(CKVER) for Solaris 2.6+X.25 with SunPro cc...'
4316 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
4317 "CFLAGS = -O -i -Usun -DSVR4 -DSOLARIS26 -DDIRENT -DSUNX25 \
4318 -DTCPSOCKET -DHDBUUCP -DSELECT -DCK_CURSES -DCK_PAM -DCK_SHADOW \
4319 -DCK_NEWTERM -DSTERMIOX -DFNFLOAT -DPOSIX_CRTSCTS -DNOLEARN \
4320 -I/opt/SUNWconn/include $(KFLAGS)" \
4321 "LIBS= -ltermlib -L/opt/SUNWconn/lib -R/opt/SUNWconn/lib \
4322 -lsockx25 -lsocket -lnsl -lm -lresolv -lpam"
4323
4324 #Solaris 7 (2.7) with Sun CC
4325 solaris7:
4326 $(MAKE) "MAKE=$(MAKE)" solaris25x KTARGET=$${KTARGET:-$(@)} \
4327 "KFLAGS=-DSOLARIS7 -DCK_PAM -DCK_SHADOW $(KFLAGS)" \
4328 "LIBS= -lpam"
4329
4330 #Solaris 7 with gcc (32-bit)
4331 solaris7g:
4332 $(MAKE) "MAKE=$(MAKE)" solaris2xg KTARGET=$${KTARGET:-$(@)} \
4333 "KFLAGS=-DSOLARIS7 -DCK_PAM -DCK_SHADOW $(KFLAGS)" \
4334 "LIBS= -lpam"
4335
4336 #Solaris 7 with gcc + Kerberos IV (32-bit)
4337 solaris7g+krb4:
4338 $(MAKE) "MAKE=$(MAKE)" solaris2xg+krb4 KTARGET=$${KTARGET:-$(@)} \
4339 "KFLAGS=-DSOLARIS7 -DCK_PAM -DCK_SHADOW $(KFLAGS)" \
4340 "LIBS= -lpam"
4341
4342 solaris7g+openssl+zlib+pam+shadow:
4343 $(MAKE) "MAKE=$(MAKE)" solaris2xg+openssl+zlib+pam+shadow \
4344 KTARGET=$${KTARGET:-$(@)} \
4345 "KFLAGS=-DSOLARIS7 -DCK_PAM -DCK_SHADOW $(KFLAGS)"
4346
4347 #Solaris 7 with gcc + OpenSSL (32-bit)
4348 solaris7g+openssl+zlib+srp+pam+shadow:
4349 $(MAKE) "MAKE=$(MAKE)" solaris2xg+openssl+zlib+srp+pam+shadow \
4350 KTARGET=$${KTARGET:-$(@)} \
4351 "KFLAGS=-DSOLARIS7 -DCK_PAM -DCK_SHADOW $(KFLAGS)"
4352
4353 #Solaris 8
4354 solaris8:
4355 $(MAKE) "MAKE=$(MAKE)" solaris25x KTARGET=$${KTARGET:-$(@)} \
4356 "KFLAGS=-DSOLARIS8 -DCK_PAM -DCK_SHADOW $(KFLAGS)" \
4357 "LIBS= -lpam"
4358
4359 #Solaris 8 with gcc (32-bit)
4360 solaris8g:
4361 $(MAKE) "MAKE=$(MAKE)" solaris2xg KTARGET=$${KTARGET:-$(@)} \
4362 "KFLAGS=-DSOLARIS8 -DCK_PAM -DCK_SHADOW $(KFLAGS)" \
4363 "LIBS= -lpam"
4364
4365 # In OpenSSL builds add -ldl if you get unresolved references for
4366 # dlclose, dlsym, dlopen, dlerror.
4367
4368 #Solaris 8 with gcc + OpenSSL (32-bit)
4369 solaris8g+openssl+zlib+pam+shadow:
4370 $(MAKE) "MAKE=$(MAKE)" solaris2xg+openssl+zlib+pam+shadow \
4371 KTARGET=$${KTARGET:-$(@)} "KFLAGS=-DSOLARIS8 $(KFLAGS)"
4372
4373 #Solaris 8 with gcc + Kerberos IV (32-bit)
4374 solaris8g+krb4:
4375 $(MAKE) "MAKE=$(MAKE)" solaris2xg+krb4 KTARGET=$${KTARGET:-$(@)} \
4376 "KFLAGS=-DSOLARIS8 -DCK_PAM -DCK_SHADOW $(KFLAGS)" \
4377 "LIBS= -lpam"
4378
4379 solaris9nolfs:
4380 $(MAKE) "MAKE=$(MAKE)" solaris25x KTARGET=$${KTARGET:-$(@)} \
4381 "KFLAGS=-DSOLARIS9 -DCK_PAM -DCK_SHADOW -DUSE_STRERROR $(KFLAGS)" \
4382 "LIBS= -lpam"
4383
4384 #Solaris 9 with malloc debugging
4385 solaris9md:
4386 $(MAKE) mermit KTARGET=$${KTARGET:-$(@)} \
4387 "CFLAGS = -DFNFLOAT -O -Usun -i -D_FILE_OFFSET_BITS=64 \
4388 -DSOLARIS9 -Dmalloc=dmalloc -Dfree=dfree -DMDEBUG \
4389 -DCK_PAM -DCK_SHADOW -DUSE_STRERROR $(KFLAGS)" \
4390 "LIBS= -lpam -ltermlib -lsocket -lnsl -lm -lresolv"
4391
4392 #Solaris 9 with gcc + OpenSSL + Shadow (32-bit)
4393 #Add -DOPENSSL_097 for OpenSSL 0.9.7 or later.
4394 solaris9g+openssl+shadow+pam+zlib:
4395 $(MAKE) "MAKE=$(MAKE)" solaris2xg+openssl+zlib+pam+shadow \
4396 KTARGET=$${KTARGET:-$(@)} \
4397 "KFLAGS=-DSOLARIS9 -DHDBUUCP -DDIRENT -D_FILE_OFFSET_BITS=64 \
4398 -DNO_DCL_INET_ATON -DZLIB -DCK_PAM -DCK_SHADOW -DLIBDES $(KFLAGS)" \
4399 "LIBS= -lpam -ldes425 -lz $(LIBS)"
4400
4401 #Solaris 9 with gcc + OpenSSL + Kerberos 5 + Krb4 + Shadow (32-bit)
4402 #Add -DOPENSSL_097 for OpenSSL 0.9.7 or later.
4403 solaris9g+krb5+krb4+openssl+shadow+pam+zlib:
4404 $(MAKE) "MAKE=$(MAKE)" solaris2xg+krb5+krb4+openssl+shadow \
4405 KTARGET=$${KTARGET:-$(@)} \
4406 "KFLAGS=-DSOLARIS9 -DHDBUUCP -DDIRENT -D_FILE_OFFSET_BITS=64 \
4407 -DNO_DCL_INET_ATON -DZLIB -DCK_PAM -DCK_SHADOW -DLIBDES $(KFLAGS)" \
4408 "LIBS= -lpam -ldes -lz $(LIBS)"
4409
4410 #Solaris 9 with gcc + Kerberos 4 and 5:
4411 solaris9g+krb5+krb4:
4412 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
4413 "CFLAGS = -O -Usun -DSVR4 -DSOLARIS9 -DSTERMIOX -DSELECT -DFNFLOAT \
4414 -DCK_CURSES -DCK_NEWTERM -DDIRENT -DHDBUUCP -DTCPSOCKET \
4415 -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 -DKRB4 -DKRB524 \
4416 -D_FILE_OFFSET_BITS=64 \
4417 -DCK_ENCRYPTION -DCK_DES -DCK_CAST -DBIGBUFOK \
4418 $(K5INC) $(K5INC)/krb5 $(KFLAGS)" \
4419 "LIBS= $(K5LIB) -ltermlib -lsocket -lnsl -lm -lresolv \
4420 -lkrb4 -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto \
4421 -ldes $(LIBS)"
4422
4423 #Solaris 9, 10, or 11 with gcc...
4424 #Uses streams PTYs rather than BSD ptys as in C-Kermit 8.0 and earlier.
4425 #This target is chained to be the secure solaris9g+xxx targets below.
4426 solaris9g solaris10g solaris11g:
4427 @echo 'Making C-Kermit $(CKVER) for Solaris 9 or later with gcc'
4428 @case `uname -r` in \
4429 5.9) SOLARISVERSION="-DSOLARIS9" ;; \
4430 5.10) SOLARISVERSION="-DSOLARIS10" ;; \
4431 5.11) SOLARISVERSION="-DSOLARIS11" ;; \
4432 *) SOLARISVERSION="-DSOLARIS" ;; \
4433 esac ; \
4434 $(MAKE) "MAKE=$(MAKE)" CC="gcc -m32" CC2="gcc -m32" xermit \
4435 KTARGET=$${KTARGET:-$(@)} \
4436 "CFLAGS = -g -O -Usun -DSVR4 $$SOLARISVERSION -DUSE_STRERROR \
4437 -DSTERMIOX -DSELECT -DFNFLOAT -DCK_PAM -DCK_SHADOW -funsigned-char \
4438 -DHAVE_STREAMS -DHAVE_GRANTPT -DHAVE_PTSNAME -DPUSH_PTEM \
4439 -DPUSH_LDTERM -DPUSH_TTCOMPAT \
4440 -DCK_CURSES -DCK_NEWTERM -DDIRENT -DHDBUUCP -DTCPSOCKET \
4441 -D_FILE_OFFSET_BITS=64 $(KFLAGS)" \
4442 "LIBS= -ltermlib -lsocket -lnsl -lm -lresolv -lpam $(LIBS)"
4443
4444 #Solaris 9, 10, or 11 with gcc + Kerberos 5 + OpenSSL.
4445 #OK C-Kermit 9.0.301.
4446 solaris9g+krb5+ssl solaris10g+krb5+ssl solaris11g+krb5+ssl:
4447 @case `openssl version` in \
4448 *0.9.7*) OPENSSLOPTION="-DOPENSSL_097" ;; \
4449 *0.9.8*) OPENSSLOPTION="-DOPENSSL_098" ;; \
4450 *1.[0-9].[0-9]*) OPENSSLOPTION="-DOPENSSL_100" ;; \
4451 *3.[0-9].[0-9]*) OPENSSLOPTION="-DOPENSSL_300" ;; \
4452 *) OPENSSLOPTION="" ;; \
4453 esac ; \
4454 HAVE_DES=''; \
4455 DES_LIB=''; \
4456 if ls $(SSLLIB)/libdes* > /dev/null 2> /dev/null; then \
4457 DES_LIB='-ldes425'; \
4458 HAVE_DES='-DCK_DES -DLIBDES'; \
4459 echo "HAVE DES"; \
4460 else echo "NO DES"; \
4461 fi; \
4462 GSSAPILIB=''; \
4463 K5DIR=`echo $(K5LIB) | sed 's|-L||'`; \
4464 echo K5DIR=$$K5DIR; \
4465 if ls $$K5DIR/libgssapi_krb5* > /dev/null 2> /dev/null; then \
4466 GSSAPILIB='-lgssapi_krb5'; \
4467 else GSSAPILIB='-lgssapi'; \
4468 fi; \
4469 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
4470 "CFLAGS = -O -Usun -DSVR4 -DSOLARIS9 -DSTERMIOX -DSELECT -DFNFLOAT \
4471 -DCK_CURSES -DCK_NEWTERM -DDIRENT -DHDBUUCP -DTCPSOCKET -DBIGBUFOK \
4472 -DCK_AUTHENTICATION -DCK_SSL -DZLIB -DCK_KERBEROS -DKRB5 \
4473 -DCK_ENCRYPTION -DCK_CAST $$OPENSSLOPTION \
4474 $$HAVE_DES $(SSLINC) $(K5INC) $(K5INC)/krb5 $(KFLAGS)" \
4475 "LIBS= $(SSLLIB) $(K5LIB) -lz -lssl -ltermlib -lsocket -lnsl -lm \
4476 -lresolv -lcrypto \
4477 $$GSSAPILIB -lkrb5 -lcom_err -lk5crypto $$DES_LIB $(LIBS)"
4478
4479 #Solaris 9, 10, or 11 with gcc, 64 bit build.
4480 #Peeking inside FILE struct not allowed in 64-bit world.
4481 #DON'T USE THIS ONE ON PC ARCHITECTURE - It compiles and links but won't run.
4482 #OK: 2009/09/25 (but not tested on Solaris 11)
4483 solaris9g64 solaris10g64 solaris11g64:
4484 @echo 'Making C-Kermit $(CKVER) for Solaris 9++ with gcc 64-bit'
4485 @case `uname -r` in \
4486 5.9) SOLARISVERSION="-DSOLARIS9" ;; \
4487 5.10) SOLARISVERSION="-DSOLARIS10" ;; \
4488 5.11) SOLARISVERSION="-DSOLARIS11" ;; \
4489 *) SOLARISVERSION="-DSOLARIS" ;; \
4490 esac ; \
4491 $(MAKE) "MAKE=$(MAKE)" CC="gcc -m64" CC2="gcc -m64" xermit \
4492 KTARGET=$${KTARGET:-$(@)} \
4493 "CFLAGS = -g -O -Usun -funsigned-char \
4494 -DSVR4 $$SOLARISVERSION \
4495 -DSTERMIOX -DSELECT -DFNFLOAT -DUSE_STRERROR -DCK_PAM -DCK_SHADOW \
4496 -DHAVE_STREAMS -DHAVE_GRANTPT -DHAVE_PTSNAME -DPUSH_PTEM \
4497 -DPUSH_LDTERM -DPUSH_TTCOMPAT \
4498 -DCK_CURSES -DCK_NEWTERM -DDIRENT -DHDBUUCP -DTCPSOCKET $(KFLAGS)" \
4499 "LIBS= -ltermlib -lsocket -lnsl -lm -lresolv -lpam $(LIBS)"
4500
4501 #Solaris 9, 10, or 11 with SunPro CC
4502 #Uses streams PTYs rather than BSD ptys as in C-Kermit 8.0 and earlier.
4503 #This target is chained to by the secure targets below.
4504 #OK C-Kermit 9.0
4505 solaris9 solaris10 solaris11:
4506 @echo 'Making C-Kermit $(CKVER) for Solaris 9 or later with Sun CC'
4507 @case `uname -r` in \
4508 5.9) SOLARISVERSION="-DSOLARIS9" ;; \
4509 5.10) SOLARISVERSION="-DSOLARIS10" ;; \
4510 5.11) SOLARISVERSION="-DSOLARIS11" ;; \
4511 *) SOLARISVERSION="-DSOLARIS" ;; \
4512 esac ; \
4513 $(MAKE) "MAKE=$(MAKE)" xermit KTARGET=$${KTARGET:-$(@)} \
4514 "CFLAGS = -O -Usun -DSVR4 $$SOLARISVERSION -DUSE_STRERROR \
4515 -DSTERMIOX -DSELECT -DFNFLOAT -DCK_PAM -DCK_SHADOW \
4516 -DHAVE_STREAMS -DHAVE_GRANTPT -DHAVE_PTSNAME -DPUSH_PTEM \
4517 -DPUSH_LDTERM -DPUSH_TTCOMPAT \
4518 -DCK_CURSES -DCK_NEWTERM -DDIRENT -DHDBUUCP -DTCPSOCKET \
4519 -D_FILE_OFFSET_BITS=64 $(KFLAGS)" \
4520 "LIBS= $(LIBS) -ltermlib -lsocket -lnsl -lm -lresolv -lpam"
4521
4522 # Solaris 9, 10, or 11 with OpenSSL built with Sun CC.
4523 # Here's an example of how to invoke this target in case your OpenSSL
4524 # headers and libraries are not in /usr/local:
4525 #
4526 # make solaris9+openssl "SSLINC=" "SSLLIB=" \
4527 # "KFLAGS= -I/opt/openssl-0.9.8k/include -L/opt/openssl-0.9.8k/lib"
4528 #
4529 # Don't use 'make -e' because that inhibits passing of KFLAGS to
4530 # the base (solaris9) target.
4531 #
4532 #OK C-Kermit 9.0
4533 solaris9+ssl solaris10+ssl solaris11+ssl \
4534 solaris9+openssl solaris10+openssl solaris11+openssl:
4535 @echo 'Making C-Kermit $(CKVER) for Solaris 9/10/11 with OpenSSL: cc'
4536 @case `openssl version` in \
4537 *0.9.7*) OPENSSLOPTION="-DOPENSSL_097" ;; \
4538 *0.9.8*) OPENSSLOPTION="-DOPENSSL_098" ;; \
4539 *1.[0-9].[0-9]*) OPENSSLOPTION="-DOPENSSL_100" ;; \
4540 *3.[0-9].[0-9]*) OPENSSLOPTION="-DOPENSSL_300" ;; \
4541 *) OPENSSLOPTION="" ;; \
4542 esac ; \
4543 HAVE_DES=''; \
4544 DES_LIB=''; \
4545 if ls $(SSLLIB)/libdes* > /dev/null 2> /dev/null; then \
4546 DES_LIB='-ldes425'; \
4547 HAVE_DES='-DCK_DES -DLIBDES'; \
4548 echo "HAVE DES"; \
4549 else echo "NO DES"; \
4550 fi; \
4551 $(MAKE) "MAKE=$(MAKE)" solaris9 KTARGET=$${KTARGET:-$(@)} \
4552 "KFLAGS=-DCK_AUTHENTICATION -DCK_SSL -DZLIB $$HAVE_DES \
4553 -DNO_DCL_INET_ATON $$OPENSSLOPTION $(SSLINC) $(KFLAGS)" \
4554 "LIBS= $(SSLLIB) -lz -lssl $$DES_LIB -lcrypto $(LIBS)"
4555
4556 # Solaris 9 or later with OpenSSL, built with gcc.
4557 # Remove -DNO_DCL_INET_ATON if inet_aton comes up missing. This target nicely
4558 # chains to the solaris{9,10,11}g target but for some reason it doesn't work if
4559 # you add the -DFORWARD_X option, thus the solaris9g+openssl+forward_x target.
4560 #
4561 #OK: 2011/06/14
4562 solaris9g+ssl solaris10g+ssl solaris11g+ssl \
4563 solaris9g+openssl solaris10g+openssl solaris11g+openssl:
4564 @echo 'Making C-Kermit $(CKVER) for Solaris 9/10/11 with OpenSSL: gcc'
4565 @case `openssl version` in \
4566 *0.9.7*) OPENSSLOPTION="-DOPENSSL_097" ;; \
4567 *0.9.8*) OPENSSLOPTION="-DOPENSSL_098" ;; \
4568 *1.[0-9].[0-9]*) OPENSSLOPTION="-DOPENSSL_100" ;; \
4569 *3.[0-9].[0-9]*) OPENSSLOPTION="-DOPENSSL_300" ;; \
4570 *) OPENSSLOPTION="" ;; \
4571 esac ; \
4572 HAVE_DES=''; \
4573 DES_LIB=''; \
4574 if ls $(SSLLIB)/libdes* > /dev/null 2> /dev/null; then \
4575 DES_LIB='-ldes425'; \
4576 HAVE_DES='-DCK_DES -DLIBDES'; \
4577 echo "HAVE DES"; \
4578 else echo "NO DES"; \
4579 fi; \
4580 $(MAKE) "MAKE=$(MAKE)" solaris9g KTARGET=$${KTARGET:-$(@)} \
4581 "KFLAGS=-DCK_AUTHENTICATION -DCK_SSL -DZLIB $$HAVE_DES \
4582 -DNO_DCL_INET_ATON $$OPENSSLOPTION $(SSLINC) $(KFLAGS)" \
4583 "LIBS= $(SSLLIB) -lz -lssl $$DES_LIB -lcrypto $(LIBS)"
4584
4585 # Solaris 9 or later with gcc + OpenSSL + Shadow (32-bit).
4586 # Remove -DNO_DCL_INET_ATON if inet_aton comes up missing.
4587 # Includes long file support - not sure if this was available before Solaris 9.
4588 # Detects Solaris version automatically.
4589 #
4590 solaris9g+openssl+forward_x:
4591 @echo 'Making C-Kermit $(CKVER) for Solaris 9 or later with OpenSSL...'
4592 @case `openssl version` in \
4593 *0.9.7*) OPENSSLOPTION="-DOPENSSL_097" ;; \
4594 *0.9.8*) OPENSSLOPTION="-DOPENSSL_098" ;; \
4595 *1.[0-9].[0-9]*) OPENSSLOPTION="-DOPENSSL_100" ;; \
4596 *3.[0-9].[0-9]*) OPENSSLOPTION="-DOPENSSL_300" ;; \
4597 *) OPENSSLOPTION="" ;; \
4598 esac ; case `uname -r` in \
4599 5.9) SOLARISVERSION="-DSOLARIS9" ;; \
4600 5.10) SOLARISVERSION="-DSOLARIS10" ;; \
4601 5.11) SOLARISVERSION="-DSOLARIS11" ;; \
4602 *) SOLARISVERSION="-DSOLARIS" ;; \
4603 esac ; \
4604 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
4605 "CFLAGS = -g -O -Usun -DSVR4 $$SOLARISVERSION \
4606 -DHAVE_STREAMS -DHAVE_GRANTPT -DHAVE_PTSNAME -DPUSH_PTEM \
4607 -DPUSH_LDTERM -DPUSH_TTCOMPAT \
4608 -DSTERMIOX -DSELECT -DFNFLOAT -DBIGBUFOK -D_FILE_OFFSET_BITS=64 \
4609 -DCK_AUTHENTICATION -DCK_SSL -DCK_PAM -DCK_SHADOW -DZLIB -DLIBDES \
4610 -DFORWARD_X $$OPENSSLOPTION $(SSLINC) $(KFLAGS)" \
4611 "LIBS= $(SSLLIB) -lpam -ldes425 -lz -ltermlib \
4612 -lsocket -lnsl -lm -lresolv -lssl -lcrypto -lpam -lz $(LIBS)"
4613
4614 # These two should be folded in with the ones just above.
4615
4616 #Solaris 9 with gcc 3.1 + OpenSSL (32-bit)
4617 solaris9g+openssl+zlib+pam+shadow:
4618 $(MAKE) "MAKE=$(MAKE)" solaris2xg32+openssl+zlib+pam+shadow \
4619 KTARGET=$${KTARGET:-$(@)} \
4620 "KFLAGS=-DSOLARIS9 -DUSE_STRERROR $(KFLAGS)"
4621
4622 #Solaris 10 with gcc 3.1 + OpenSSL (32-bit)
4623 solaris10g+openssl+zlib+pam+shadow:
4624 $(MAKE) "MAKE=$(MAKE)" solaris2xg32+openssl+zlib+pam+shadow \
4625 KTARGET=$${KTARGET:-$(@)} \
4626 "KFLAGS=-DSOLARIS10 -DUSE_STRERROR $(KFLAGS)"
4627
4628 #The following (old, old) sunosxxx entries are for debugging and testing only.
4629
4630 sunos41x:
4631 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
4632 "CFLAGS= -O -DSUNOS41 -DDIRENT -DNOTLOG -DNOMSEND \
4633 -DNOUUCP -DNOSIGWINCH -DNOREDIRECT -DNOPUSH -DNOCCTRAP \
4634 -DNOICP -DNOLOCAL $(KFLAGS)"
4635
4636 #SunOS 4.1.x, debugging with Pure Software, Inc., Purify 2 (commercial runtime
4637 #error-detection software for catching wild array references, etc).
4638 #Before running the resulting wermit, you'll also need to define and export
4639 #the following environment variables (as in this example):
4640 #PURIFYHOME=/usr/local/purify ; export PURIFYHOME
4641 #PURIFYCACHEDIR=/tmp ; export PURIFYCACHEDIR
4642 sunos41cp:
4643 @echo Making C-Kermit $(CKVER) for SunOS 4.1 / BSD / Curses / Purify...
4644 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
4645 "CC2= purify -cache_dir=/usr/tmp cc" \
4646 "CFLAGS= -g -DSUNOS41 -DHDBUUCP -DDIRENT -DTCPSOCKET \
4647 -DSAVEDUID -DCK_CURSES $(KFLAGS)" \
4648 "LIBS= -lcurses -ltermcap"
4649
4650 #SunOS 4.1 with malloc debugger
4651 sunos41md:
4652 @echo Making C-Kermit $(CKVER) for SunOS 4.1 malloc debug...
4653 $(MAKE) mermit KTARGET=$${KTARGET:-$(@)} \
4654 "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DDIRENT -DTCPSOCKET \
4655 -DSAVEDUID $(KFLAGS) -Dmalloc=dmalloc -Dfree=dfree -DMDEBUG"
4656
4657 sunos41gmd:
4658 @echo Making C-Kermit $(CKVER) for SunOS 4.1 with gcc and curses...
4659 $(MAKE) mermit KTARGET=$${KTARGET:-$(@)} "CC= gcc " "CC2= gcc" \
4660 "CFLAGS= -g -DSUNOS41 -DHDBUUCP -DDIRENT -DTCPSOCKET \
4661 -DNDGPWNAM -DSAVEDUID -DCK_CURSES -DRLOGCODE \
4662 $(KFLAGS) -Dmalloc=dmalloc -Dfree=dfree -DMDEBUG" \
4663 "LIBS= -lcurses -ltermcap"
4664
4665 #SunOS version 4.1, gcc, profiling with gprof, no debugging.
4666 #To get profile, "make sunos41p" (on Sun), then "./wermit". After running
4667 #wermit, "gprof ./wermit | lpr" (or whatever) to get execution profile.
4668 sunos41p:
4669 @echo Making C-Kermit $(CKVER) for SunOS 4.x with profiling...
4670 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC= gcc " "CC2= gcc" \
4671 "CFLAGS= -DSUNOS41 -DNODEBUG -DSAVEDUID -DDIRENT -DTCPSOCKET \
4672 -DNDGPWNAM $(KFLAGS) -pg" "LNKFLAGS = -pg"
4673
4674 #SunOS version 4.1 or later, BSD environment, minimum features.
4675 sunos41min:
4676 @echo Minimum interactive
4677 $(MAKE) "MAKE=$(MAKE)" sunos41 KTARGET=$${KTARGET:-$(@)} \
4678 "KFLAGS=-DNOSPL -DNOXMIT -DNOMSEND -DNOFRILLS -DNORETRY \
4679 -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG -DNOSCRIPT -DNOCSETS \
4680 -DNOSHOW -DNOSETKEY -DNOUUCP -DNORECALL -DNOREDIRECT \
4681 -DNOPUSH -DNOMDMHUP -DNOJC -DNOFDZERO -DNOESCSEQ \
4682 -DNONET -DCK_SMALL -DNOCKSPEED -DNOCKTIMERS -DNOLOGIN \
4683 -DNOCKXYZ -DNOKERBEROS -DNOMKDIR -DNOPATTERNS -DNOPERMS -DNOPIPESEND \
4684 -DNORECURSIVE -DNORENAME -DNORESEND -DNOSETKEY \
4685 -DNOTRIGGER -DNOTUNING $(KFLAGS)" "LNKFLAGS = -s"
4686
4687 #SunOS version 4.1, BSD environment, min size, command-line only...
4688 sunos41m:
4689 @echo Minimum size
4690 $(MAKE) "MAKE=$(MAKE)" sunos41min KTARGET=$${KTARGET:-$(@)} \
4691 "KFLAGS=-DNOICP $(KFLAGS)"
4692
4693 #SunOS version 4.1, BSD environment, min size, cmd-line only, remote only...
4694 #
4695 sunos41mr:
4696 @echo Minimum size
4697 $(MAKE) "MAKE=$(MAKE)" sunos41min KTARGET=$${KTARGET:-$(@)} \
4698 "KFLAGS=-DNOICP -DNOLOCAL $(KFLAGS)"
4699
4700 #SunOS version 4.1, BSD environment, min size, interactive...
4701 sunos41mi:
4702 @echo Minimum size
4703 $(MAKE) "MAKE=$(MAKE)" sunos41min KTARGET=$${KTARGET:-$(@)} \
4704 "KFLAGS=-DNOCMDL $(KFLAGS)"
4705
4706 #SunOS version 4.1, BSD environment, min size, interactive, remote only...
4707 sunos41mir:
4708 @echo Minimum size
4709 $(MAKE) "MAKE=$(MAKE)" sunos41min KTARGET=$${KTARGET:-$(@)} \
4710 "KFLAGS=-DNOCMDL -DNOLOCAL $(KFLAGS)"
4711
4712 #SunOS 4.1, System V R3 environment (-i option omitted).
4713 sunos41s5:
4714 @echo Making C-Kermit $(CKVER) for SunOS 4.1 System V R3...
4715 @echo For testing purposes only - NOT for production use.
4716 @echo For a useable version, make sunos41 instead.
4717 $(MAKE) wermit "CC= /usr/5bin/cc " "CC2=/usr/5bin/cc " \
4718 KTARGET=$${KTARGET:-$(@)} \
4719 "CFLAGS = -DSUN4S5 -DDIRENT -DHDBUUCP -DNOLEARN -DCK_POLL $(KFLAGS) -O"
4720
4721 #As above, but with curses support
4722 sunos41s5c:
4723 @echo Making C-Kermit $(CKVER) for SunOS 4.1 System V R3...
4724 @echo Curses included.
4725 @echo For testing purposes only - NOT for production use.
4726 @echo For a useable version, make sunos41 instead.
4727 $(MAKE) wermit "CC= /usr/5bin/cc " "CC2=/usr/5bin/cc " \
4728 KTARGET=$${KTARGET:-$(@)} \
4729 "CFLAGS = -DSUN4S5 -DDIRENT -DHDBUUCP -DNOLEARN \
4730 -DCK_POLL -DCK_CURSES -DCK_NEWTERM $(KFLAGS) -O" "LIBS= -lcurses"
4731
4732 #As above, but with curses support AND net support
4733 sunos41s5tcpc:
4734 @echo Making C-Kermit $(CKVER) for SunOS 4.1 System V R3...
4735 @echo TCP/IP and curses included. No debug log.
4736 @echo For testing purposes only - NOT for production use.
4737 @echo For a useable version, make sunos41 instead.
4738 $(MAKE) xermit "CC= /usr/5bin/cc " "CC2=/usr/5bin/cc " \
4739 KTARGET=$${KTARGET:-$(@)} \
4740 "CFLAGS = -DSUN4S5 -DDIRENT -DHDBUUCP -DCK_POLL \
4741 -DNODEBUG -DCK_CURSES -DCK_NEWTERM -DTCPSOCKET $(KFLAGS) -O" \
4742 "LIBS= -lcurses -lresolv"
4743
4744 # (End of SunOS test entries...)
4745
4746 #Apollo with Domain SR10.0 or later, BSD environment
4747 #Reportedly, it might also help to add '-A,systype=bsd4.3' to CFLAGS.
4748 #Reportedly, there is also a problem with getc & putc macros that can
4749 #be handled by using '#ifdef apollo' somewhere to redefine them???
4750 #On the other hand, other reports indicate that it works fine as-is.
4751 #NOTE: This entry was previously like this:
4752 # $(MAKE) wermit "CFLAGS= -DNOFILEH -DBSD4 $(KFLAGS) -Uaegis \
4753 # -DTCPSOCKET -U__STDC__"
4754 #Reports (Dec 91) indicate SR10 has an ANSI-compliant C compiler,
4755 #in addition to an older one that claimed to be ANSI-compliant but wasn't.
4756 #The following make entry (plus checks that are made in ckcdeb.h) detect
4757 #which compiler is used and define the CK_ANSIC or NOANSI flags accordingly.
4758 sr10-bsd:
4759 @echo Making C-Kermit $(CKVER) for Apollo SR10.0 / BSD ...
4760 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
4761 "CFLAGS= -O -DAPOLLOSR10 -DBSD43 -DTCPSOCKET -DCK_CURSES -DNOLEARN \
4762 -Uaegis $(KFLAGS)" "LIBS= -lcurses -ltermcap"
4763
4764 #Apollo with Domain SR10.0 or later, System V R3 environment.
4765 #Don't use the optimizer (-O), it causes problems at runtime.
4766 sr10-s5r3:
4767 @echo Making C-Kermit $(CKVER) for Apollo SR10.0 / Sys V R3 ...
4768 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
4769 "CFLAGS= -DNOFILEH -DSVR3 -DAPOLLOSR10 -DNOLEARN $(KFLAGS) \
4770 -Uaegis -U__STDC__"
4771
4772 #Apollo Domain/IX (untested, try this if sr10-bsd doesn't work)
4773 # -DTCPSOCKET can probably be added here.
4774 apollobsd:
4775 @echo Making C-Kermit $(CKVER) for Apollo Domain/IX...
4776 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
4777 "CC= /bin/cc " "CC2= /bin/cc " \
4778 "CFLAGS= -DNOFILEH -DBSD4 -DAPOLLOBSD -DNOLEARN $(KFLAGS) -Uaegis"
4779
4780 #Version 7 Unix (see comments near top of makefile)
4781 #-DNOSYSLOG -DNOHELP added in October 2022, the latter because it was
4782 #taking hours to compile ckuus2.c. Anyway the build failed later with with
4783 #an assembler error: "Unexpected end of file writing the interpass tmp file"
4784 v7:
4785 @echo Making C-Kermit $(CKVER) for UNIX Version 7.
4786 @echo Read the makefile if you have trouble with this...
4787 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
4788 "CFLAGS=-DV7 -DPROCNAME=\\\"$(PROC)\\\" \
4789 -DBOOTNAME=\\\"$(BOOTFILE)\\\" -DNPROCNAME=\\\"$(NPROC)\\\" \
4790 -DNPTYPE=$(NPTYPE) $(DIRECT) -DO_RDWR=2 -DO_NDELAY=0 -DO_SCCS_ID \
4791 -DNOLEARN -DNOSYSLOG -DNOHELP $(KFLAGS)"
4792
4793 #Version 7 Unix minumum size - commandline only, no interactive commands.
4794 # See the V7 section of ckcdeb.h for all the NOxxx definitions because
4795 # they can't all be put on the command line: "too many -D options,
4796 # ignoring -DNOxxx". Some of these -DNO items are to skip over correct
4797 # C code that the compiler erroneously flags as errors.
4798 # 2 November 2022
4799 v7min:
4800 @echo Making C-Kermit $(CKVER) for UNIX Version 7 smallest possible.
4801 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
4802 "CFLAGS=-DV7 -DPROCNAME=\\\"$(PROC)\\\" \
4803 -DBOOTNAME=\\\"$(BOOTFILE)\\\" -DNPROCNAME=\\\"$(NPROC)\\\" \
4804 -DNPTYPE=$(NPTYPE) $(DIRECT) -DO_RDWR=2 -DO_NDELAY=0 -DO_SCCS_ID \
4805 -DV7MIN $(KFLAGS)"
4806
4807 #AT&T UNIX System V R3, signal() is void rather than int.
4808 #Uses dirent.h and Honey DanBer UUCP.
4809 #Add the -i link option if necessary.
4810 #If you get errors like "ws_row undefined" in ckutio.c, add -DNONAWS.
4811 sys5r3:
4812 @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R3...'
4813 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
4814 "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -DNOLEARN $(KFLAGS) -O" \
4815 "LNKFLAGS="
4816
4817 #As above, plus curses.
4818 sys5r3c:
4819 @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R3 + curses...'
4820 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
4821 "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -DCK_CURSES -DNONAWS -DNOLEARN \
4822 $(KFLAGS) -O" "LNKFLAGS=" "LIBS = -ltermlib"
4823
4824 #System V R3.2 for PCs built on Interactive UNIX SV/386 R4.x
4825 #but with all calls to dup2() disabled because generic SVR3 does not have dup2.
4826 # (The -linet library might not need to be in this one.)
4827 sys5r32is:
4828 @echo 'Making C-Kermit $(CKVER) for System V/386 R32
4829 $(MAKE) wermit CC="$(CC)" CC2="$(CC2)" \
4830 "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -O -DNOCSETS -DNOREALPATH \
4831 -DUID_T=ushort -DGID_T=ushort -DI386IX -DSVR3JC -DCK_CURSES -DNONAWS \
4832 -DPOSIX_JC -DCK_REDIR -DCK_POLL -DDCLGETCWD -DNOFDZERO -DNOREDIRECT \
4833 -DNOZEXEC -DNOLEARN $(KFLAGS)" "LIBS=-lcurses -lc_s -linet"
4834
4835 #System V R3.2 for PCs built on Interactive UNIX SV/386 R4.x
4836 #but with all calls to dup2() disabled because generic SVR3 does not have dup2.
4837 #With TCP/IP added.
4838 sys5r32isnet:
4839 @echo 'Making C-Kermit $(CKVER) for System V/386 R32 + TCP/IP
4840 $(MAKE) wermit CC="$(CC)" CC2="$(CC2)" \
4841 "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -O -DNOCSETS -DNOREALPATH \
4842 -DUID_T=ushort -DGID_T=ushort -DI386IX -DSVR3JC -DCK_CURSES -DNONAWS \
4843 -DPOSIX_JC -DCK_REDIR -DCK_POLL -DDCLGETCWD -DNOFDZERO -DNOREDIRECT \
4844 -DNOLEARN -DNOZEXEC -DTCPSOCKET $(KFLAGS)" "LIBS=-lcurses -lc_s -linet"
4845
4846 iclsys5r3:
4847 make sys5r3 KTARGET=$${KTARGET:-$(@)} KFLAGS=-DICLSVR3
4848
4849 #AT&T UNIX System V R3. As above, but no ANSI prototyping.
4850 sys5r3na:
4851 @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R3...'
4852 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
4853 "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -DNOANSI -DNOLEARN $(KFLAGS) -O" \
4854 "LNKFLAGS="
4855
4856 #AT&T UNIX System V R3, for 3B computers with Wollongong TCP/IP.
4857 sys5r3net3b:
4858 @echo 'Making C-Kermit $(CKVER) for AT&T UNIX SVR3/3B/Wollongong...'
4859 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
4860 "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DWOLLONGONG -DNOLEARN $(KFLAGS) \
4861 -O" "LIBS= -lnet -lnsl_s" "LNKFLAGS ="
4862
4863 #AT&T UNIX System V R3, signal() is void rather than int.
4864 #Uses dirent.h and Honey DanBer uucp, has <termiox.h>.
4865 #Has <termiox.h> for RTS/CTS flow control.
4866 sys5r3tx:
4867 @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R3...'
4868 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
4869 "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DTERMIOX -DNOLEARN \
4870 $(KFLAGS) -i -O" "LNKFLAGS ="
4871
4872 #AT&T UNIX System V R3, signal() is void rather than int.
4873 #Uses dirent.h and Honey DanBer uucp, has <termiox.h>.
4874 #Has <sys/termiox.h> for RTS/CTS flow control.
4875 sys5r3sx:
4876 @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R3...'
4877 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
4878 "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DSTERMIOX -DNOLEARN \
4879 $(KFLAGS) -i -O" "LNKFLAGS ="
4880
4881 #AT&T UNIX System V R4.
4882 #Has <termiox.h>.
4883 sys5r4:
4884 @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
4885 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
4886 "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DTERMIOX -DNOLEARN $(KFLAGS)" \
4887 "LNKFLAGS = -s"
4888
4889 #AT&T UNIX System V R4 with Wollongong TCP/IP.
4890 #Has <termiox.h>.
4891 sys5r4net:
4892 @echo 'Making C-Kermit $(CKVER) for System V R4 + Wollongong TCP/IP...'
4893 @echo ' If sockets-library routines are missing at link time, then'
4894 @echo ' try the sys5r4net2 entry.'
4895 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
4896 "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DNOLEARN \
4897 -DTERMIOX -DWOLLONGONG $(KFLAGS)" "LNKFLAGS = -s"
4898
4899 #As above, but needs libs included.
4900 sys5r4net2:
4901 @echo ' PLEASE READ ckuins.txt IF YOU GET MISSING HEADER FILES.'
4902 @echo ' (Search for WOLLONGONG...)'
4903 $(MAKE) sys5r4net KTARGET=$${KTARGET:-$(@)} "LIBS= -lsocket -lnsl"
4904
4905 #As above plus curses.
4906 sys5r4net2c:
4907 echo 'Making C-Kermit $(CKVER) for System V R4 + Wollongong TCP/IP...'
4908 @echo ' PLEASE READ ckuins.txt IF YOU GET MISSING HEADER FILES.'
4909 @echo ' (Search for WOLLONGONG...)'
4910 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
4911 "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DNOLEARN \
4912 -DTERMIOX -DWOLLONGONG -DCK_CURSES $(KFLAGS)" "LNKFLAGS = -s" \
4913 "LIBS= -lsocket -lnsl -lcurses"
4914
4915 #DELL UNIX System V R4.
4916 #Has <sys/termiox.h>, regular Berkeley sockets library, i.e. in.h and inet.h
4917 #are not misplaced in sys (rather than netinet and arpa, respectively).
4918 #Uses ANSI C constructs, advisory file locking on devices, etc.
4919 #Warning: -DSTERMIOX enables hardware flow control (RTS/CTS), but reportedly
4920 #this does not work with the normal drivers. However, it might still work
4921 #on non-Dell systems, or even Dell systems with different drivers installed.
4922 dellsys5r4:
4923 @echo 'Making C-Kermit $(CKVER) for DELL UNIX System V R4...'
4924 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
4925 "CFLAGS = -O -DSVR4 -DDELL_SVR4 -DDIRENT -DHDBUUCP \
4926 -DTCPSOCKET -DSTERMIOX -DCK_POLL $(KFLAGS)" \
4927 "LIBS= -lsocket -lnsl" "LNKFLAGS = -s"
4928
4929 #As above, curses support added...
4930 dellsys5r4c:
4931 @echo 'Making C-Kermit $(CKVER) for DELL UNIX System V R4...'
4932 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
4933 "CFLAGS = -O -DSVR4 -DDELL_SVR4 -DDIRENT -DHDBUUCP \
4934 -DTCPSOCKET -DSTERMIOX -DCK_CURSES -DCK_POLL \
4935 $(KFLAGS)" "LIBS= -lsocket -lnsl -lcurses -ltermcap" "LNKFLAGS = -s"
4936
4937 #Minimum interactive: As above, but with every conceivable option removed.
4938 dellsys5r4mi:
4939 @echo 'Making C-Kermit $(CKVER) for DELL UNIX System V R4...'
4940 @echo 'Minimum-size interactive'
4941 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
4942 "CFLAGS = -O -DSVR4 -DDELL_SVR4 -DDIRENT \
4943 -UTCPSOCKET -DNOCMDL -DNOSPL -DNOXMIT -DCK_POLL \
4944 -DNOMSEND -DNOFRILLS -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG \
4945 -DNOSCRIPT -DNOCSETS -DNOSHOW -DNOSETKEY -DNOSERVER -DNOUUCP \
4946 -DNOPUSH -DNOMDMHUP -DNOJC -DNOFDZERO -DNOESCSEQ \
4947 $(KFLAGS)" "LNKFLAGS = -s"
4948
4949 #Command-line only version.
4950 dellsys5r4m:
4951 @echo 'Making C-Kermit $(CKVER) for DELL UNIX System V R4...'
4952 @echo 'Command-line only'
4953 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
4954 "CFLAGS = -O -DSVR4 -DDELL_SVR4 -DDIRENT \
4955 -UTCPSOCKET -DNOICP -DNOFRILLS -DNODIAL -DNODEBUG -DNOTLOG -DNOCSETS \
4956 -DNOSETKEY -DNOESCSEQ -DNOJC -DNOFDZERO -DCK_POLL \
4957 $(KFLAGS)" "LNKFLAGS = -s"
4958
4959 #AT&T UNIX System V R4.
4960 #Has <sys/termiox.h>.
4961 sys5r4sx:
4962 @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
4963 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
4964 "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DSTERMIOX -DNOLEARN \
4965 $(KFLAGS)" "LNKFLAGS = -s" "LIBS=$(LIBS)"
4966
4967 #AT&T UNIX System V R4.
4968 #Has <sys/termiox.h>, regular Berkeley sockets library, i.e. in.h and inet.h
4969 #are not misplaced in sys (rather than netinet and arpa, respectively).
4970 #Uses ANSI C constructs, <sys/termiox.h>, etc etc.
4971 sys5r4sxtcp:
4972 @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
4973 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
4974 "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP \
4975 -DSTERMIOX -DTCPSOCKET $(KFLAGS)" \
4976 "LIBS= -lsocket -lnsl $(LIBS)" "LNKFLAGS= -s"
4977
4978 #AT&T UNIX System V R4.
4979 #As above + curses.
4980 sys5r4sxtcpc:
4981 @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
4982 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
4983 "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP \
4984 -DSTERMIOX -DCK_CURSES -DTCPSOCKET $(KFLAGS)" \
4985 "LIBS= -lsocket -lnsl -lcurses -ltermcap $(LIBS)" "LNKFLAGS = -s"
4986
4987 #AT&T UNIX System V R4. CONSENSYS SVR4.2-1.
4988 #Has <sys/termiox.h>, regular Berkeley sockets library, i.e. in.h and inet.h
4989 #are not misplaced in sys (rather than netinet and arpa, respectively).
4990 #Uses ANSI C constructs, <sys/termiox.h>, etc.
4991 # Fullscreen -DCK_CURSES added (with curses & termcap libs)
4992 # Submission by Robert Weiner/Programming Plus, [email protected]
4993 sys5r4sxtcpf:
4994 @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
4995 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
4996 "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP \
4997 -DSTERMIOX -DTCPSOCKET -DCK_CURSES $(KFLAGS)" \
4998 "LIBS= -lsocket -lnsl -L/usr/ccs/lib -lcurses -ltermcap" \
4999 "LIBS=$(LIBS)" "LNKFLAGS = -s"
5000
5001 #Smallest possible version for System V R4
5002 s5r4m:
5003 @echo Minimum size
5004 $(MAKE) "MAKE=$(MAKE)" sys5r4sx KTARGET=$${KTARGET:-$(@)} \
5005 "KFLAGS=$(KFLAGS) -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG \
5006 -DNOSCRIPT -DNOCSETS -DNOICP -DNOMSEND -UTCPSOCKET" "LNKFLAGS = -s"
5007
5008 #Smallest possible interactive version of above
5009 s5r4mi:
5010 @echo Minimum interactive
5011 $(MAKE) "MAKE=$(MAKE)" sys5r4sx \
5012 "KFLAGS=-DNOSPL -DNOXMIT -DNOMSEND -DNOFRILLS -DNOSHOW \
5013 -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG -DNOSCRIPT -DNOCSETS -DNOSETKEY \
5014 -UTCPSOCKET $(KFLAGS)" "LNKFLAGS = -s"
5015
5016 #AT&T UNIX System V R4, has <sys/termiox.h>
5017 #ANSI C function prototyping disabled.
5018 sys5r4sxna:
5019 @echo No ANSI C prototyping...
5020 $(MAKE) "MAKE=$(MAKE)" sys5r4sx KTARGET=$${KTARGET:-$(@)} \
5021 "KFLAGS=$(KFLAGS) -DNOANSI"
5022
5023 #Stratus FTX.
5024 ftx:
5025 @echo 'Making C-Kermit $(CKVER) for Stratus FTX 3.x...'
5026 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
5027 "CFLAGS = -O -DSVR4 -DFTX -DDIRENT -DHDBUUCP -DSTERMIOX \
5028 -DNOGETUSERSHELL -DNOLEARN +DA1.1 $(KFLAGS)" \
5029 "LNKFLAGS = -s" "LIBS=$(LIBS)"
5030
5031 #Stratus FTX + TCP/IP.
5032 ftxtcp:
5033 @echo 'Making C-Kermit $(CKVER) for Stratus FTX 3.x...'
5034 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
5035 "CFLAGS = -O -DSVR4 -DFTX -DDIRENT -DHDBUUCP -DNOGETUSERSHELL \
5036 -DSTERMIOX -DTCPSOCKET -DNO_DNS_SRV +DA1.1 $(KFLAGS)" \
5037 "LIBS= -lsocket -lnsl $(LIBS)" "LNKFLAGS= -s"
5038
5039 #NCR MP-RAS 2.03 or 3.02
5040 mpras:
5041 @echo 'Making C-Kermit $(CKVER) for NCR MP-RAS...'
5042 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
5043 "CFLAGS = -O -DSVR4 -DNCRMPRAS -DDIRENT -DHDBUUCP -DSTERMIOX \
5044 -DNOGETUSERSHELL -DUSE_FILE__CNT -DNOLEARN -DNO_DNS_SRV $(KFLAGS)" \
5045 "LNKFLAGS = -s" "LIBS=$(LIBS)"
5046
5047 #NCR MP-RAS 2.03 or 3.02 with TCP/IP and curses
5048 mprastcpc:
5049 @echo 'Making C-Kermit $(CKVER) for NCR MP-RAS + TCP/IP + curses...'
5050 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CFLAGS=-DTCPSOCKET \
5051 -DCK_CURSES -DSVR4 -DNCRMPRAS -DDIRENT -DHDBUUCP -DSTERMIOX -DNOLEARN \
5052 -DNOGETUSERSHELL -DNO_DNS_SRV DUSE_FILE__CNT -O $(KFLAGS)" \
5053 "LNKFLAGS = -s" "LIBS= -lsocket -lnsl -lcurses -ltermcap $(LIBS)"
5054
5055 #SINIX-L V5.41 - includes curses, tcp/ip - Use this one for i386.
5056 #This version of SINIX doesn't like fdopen() or popen().
5057 sinix541:
5058 @echo 'Making C-Kermit $(CKVER) for Siemens/Nixdorf SINIX V5.41/i386'
5059 $(MAKE) ckcpro.$(EXT) "CFLAGS = -DSINIX -DSVR4 -DDIRENT -DHDBUUCP \
5060 -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DSELECT -DCK_ANSIC -DNO_DNS_SRV \
5061 -DSNI541 -DNOGETUSERSHELL -DNONETCMD -DNOPOPEN -kansi -W0 $(KFLAGS)"
5062 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
5063 "CFLAGS = -DSINIX -DSVR4 -DDIRENT -DHDBUUCP -DNO_DNS_SRV -DNOPOPEN \
5064 -DFNFLOAT -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DSELECT -DCK_ANSIC \
5065 -DSNI541 -DNOGETUSERSHELL -DNONETCMD -kansi -W0 -O $(KFLAGS)" \
5066 "LIBS= -lsocket -lnsl -lcurses -ltermcap -lm" "LNKFLAGS = -s"
5067
5068 sinix541i:
5069 $(MAKE) "MAKE=$(MAKE)" "KFLAGS=$(KFLAGS)" sinix541
5070
5071 #SINIX V5.42 - includes curses, tcp/ip, everything - Use this one for MIPS.
5072 # As of C-Kermit 7.1, optimization removed -- takes (literally) forever.
5073 sinix542:
5074 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
5075 "CFLAGS = -DSINIX -DSVR4 -DDIRENT -DHDBUUCP -DNO_DNS_SRV \
5076 -DFNFLOAT -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DSELECT -DCK_ANSIC \
5077 -DSNI542 -DNOGETUSERSHELL -kansi -W0 $(KFLAGS)" \
5078 "LIBS= -lsocket -lnsl -lcurses -ltermcap -lm" "LNKFLAGS = -s"
5079
5080 #SINIX V5.42 gcc - includes curses, tcp/ip, everything.
5081 #This one was used to build the Pyramid-architecture RM600 version
5082 #on SINIX-P 5.42 A10 with gcc but should work for SINIX 5.42 on any other
5083 #architecture with gcc.
5084 sinix542g:
5085 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC=gcc" "CC2=gcc" \
5086 "CFLAGS = -DSINIX -DSVR4 -DDIRENT -DHDBUUCP -DNO_DNS_SRV \
5087 -DFNFLOAT -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DSELECT -DCK_ANSIC \
5088 -DSNI542 -DNOGETUSERSHELL $(KFLAGS)" \
5089 "LIBS= -lsocket -lnsl -lcurses -ltermcap -lm" \
5090 "LNKFLAGS = -s"
5091
5092 #SINIX V5.42 - includes curses, tcp/ip, everything - Use this one for Intel.
5093 # (Note: SNI discontinued Intel support after 5.42.)
5094 sinix542i:
5095 @echo 'Making C-Kermit $(CKVER) for Siemens/Nixdorf SINIX-Z V5.42...'
5096 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
5097 "CFLAGS = -DSINIX -DSVR4 -DDIRENT -DHDBUUCP -DFNFLOAT -DSTERMIOX \
5098 -DCK_CURSES -DTCPSOCKET -DSELECT -DCK_ANSIC -DNO_DNS_SRV -kansi \
5099 -DSNI542 $(KFLAGS)" \
5100 "LIBS= -lsocket -lnsl -lcurses -ltermcap -lm" \
5101 "LNKFLAGS = -s"
5102
5103 #Siemens Nixdorf Reliant UNIX V5.43 - includes curses, tcp/ip, everything:
5104 # . gettimeofday() suddenly has only one arg instead of two (GTODONEARG).
5105 # . The syntax of the Olimit specifier changed.
5106 # . The name was changed from SINIX to Reliant UNIX in version 5.43C.
5107 sni543:
5108 @echo 'Making C-Kermit $(CKVER) for Siemens/Nixdorf Reliant UNIX V5.43'
5109 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
5110 "CFLAGS = -DSINIX -DSNI543 -DSVR4 -DDIRENT -DHDBUUCP \
5111 -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DSELECT -DCK_ANSIC -DGTODONEARG \
5112 -DNO_DNS_SRV -kansi -W0 -O -F Olimit,3100 $(KFLAGS)" \
5113 "LIBS= -lsocket -lnsl -lcurses -ltermcap" "LNKFLAGS = -s"
5114
5115 #Siemens Nixdorf Reliant UNIX V5.44 - Like 5.43 but with different banner.
5116 sni544:
5117 @echo 'Making C-Kermit $(CKVER) for Siemens/Nixdorf Reliant UNIX V5.44'
5118 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
5119 "CFLAGS = -DSINIX -DSNI544 -DSVR4 -DDIRENT -DHDBUUCP \
5120 -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DSELECT -DCK_ANSIC -DGTODONEARG \
5121 -DNO_DNS_SRV -kansi -W0 -O -K Olimit,3100 $(KFLAGS)" \
5122 "LIBS= -lsocket -lnsl -lcurses -ltermcap" "LNKFLAGS = -s"
5123
5124 #Commodore Amiga with AT&T UNIX System V R4 and TCP/IP support.
5125 #Has <sys/termiox.h>.
5126 svr4amiganet:
5127 @echo 'Making C-Kermit $(CKVER) for Amiga SVR4 + TCP/IP...'
5128 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC=gcc" "CC2=gcc" \
5129 "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DSTERMIOX \
5130 -DTCPSOCKET -DCK_CURSES $(KFLAGS)" "LNKFLAGS = -s" \
5131 "LIBS = -lsocket -lnsl -ltermlib"
5132
5133 #SCO (Novell (Univel)) UnixWare 1.x or 2.0, no TCP/IP.
5134 #This assumes the Novell SDK 1.0, which has <sys/termiox.h>.
5135 #UnixWare users with the "Prime Time Freeware" CD-ROM SDK will probably have
5136 #to use the sys5r4 entry (no termiox.h file, so no hardware flow control).
5137 #Change -DSELECT to -DCK_POLL if -DSELECT causes problems.
5138 # NOTE: Unixware 1.x builds have not been tried in C-Kermit 7.0.
5139 unixware:
5140 $(MAKE) "MAKE=$(MAKE)" sys5r4sx KTARGET=$${KTARGET:-$(@)} \
5141 "KFLAGS=-DOLD_UNIXWARE -DCK_NEWTERM -DSELECT -DNOGETUSERSHELL \
5142 -DNOSYSLOG $(KFLAGS)" "LIBS=-lcrypt"
5143
5144 #UnixWare 1.x or 2.0 with TCP/IP and curses.
5145 #fork()-based CONNECT - no high serial speeds.
5146 unixwarenetc:
5147 $(MAKE) "MAKE=$(MAKE)" sys5r4sxtcpc KTARGET=$${KTARGET:-$(@)} \
5148 "KFLAGS=-DOLD_UNIXWARE -DCK_NEWTERM -DSELECT -DNOGETUSERSHELL \
5149 -DNOSYSLOG $(KFLAGS)" "LIBS=-lcrypt -lresolv"
5150
5151 uw10:
5152 $(MAKE) unixwarenetc KTARGET=$${KTARGET:-$(@)} "KFLAGS=$(KFLAGS)"
5153
5154 #This is for Unixware 2.0.x only - use unixware21 for UW 2.1.x.
5155 #Has special library search and enables special kludge around library
5156 #foulup regarding vfork() (which Kermit doesn't use). Forces POSIX-style
5157 #hangup.
5158 unixware20:
5159 @echo 'Making C-Kermit $(CKVER) for UnixWare 2.0.x...'
5160 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
5161 "CFLAGS = -O -DOLD_UNIXWARE -DUNIXWARE2 -DSELECT -DSVR4 -DDIRENT \
5162 -DHDBUUCP -DBIGBUFOK -DNOGETUSERSHELL -DSTERMIOX -DCK_CURSES \
5163 -DTCPSOCKET -DUW200 -DFNFLOAT -DCK_NEWTERM -DNOSYSLOG $(KFLAGS)" \
5164 "LIBS= -lsocket -lnsl -lcurses -ltermcap -lcrypt -lgen -lm -lresolv" \
5165 "LNKFLAGS = -s"
5166
5167 uw20:
5168 $(MAKE) unixware20 KTARGET=$${KTARGET:-$(@)} "KFLAGS=$(KFLAGS)"
5169
5170 #Adds big buffers ("large memory model") - otherwise the same as UnixWare 1.x.
5171 unixware21:
5172 @echo 'Making C-Kermit $(CKVER) for UnixWare 2.1.x...'
5173 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
5174 "CFLAGS = -O -DUNIXWARE -DSELECT -DSVR4 -DDIRENT -DHDBUUCP -DBIGBUFOK \
5175 -DNOSYSLOG -DSTERMIOX -DCK_CURSES -DTCPSOCKET \
5176 -DCK_NEWTERM -DFNFLOAT -DUNIXWARE2 $(KFLAGS)" \
5177 "LIBS= -lsocket -lnsl -lcurses -ltermcap -lcrypt -lm -lresolv \
5178 $(LIBS)" "LNKFLAGS = -s"
5179
5180 #Unixware 2.1.0
5181 uw21:
5182 $(MAKE) unixware21 KTARGET=$${KTARGET:-$(@)} "KFLAGS=$(KFLAGS)"
5183
5184 #Unixware 2.1.3
5185 uw213:
5186 $(MAKE) unixware21 KTARGET=$${KTARGET:-$(@)} \
5187 "KFLAGS=-DUSE_FILE__CNT $(KFLAGS)"
5188
5189 #Unixware 2.1 with IKSD support
5190 uw21iksd:
5191 $(MAKE) unixware21 KTARGET=$${KTARGET:-$(@)} \
5192 "KFLAGS=-DCK_SHADOW $(KFLAGS)" "LIBS= -lgen"
5193
5194 #UnixWare 7 with tc[gs]etspeed() high serial speeds & select()-based CONNECT
5195 #and as of C-Kermit 8.0.212, large file support (LFS).
5196 #NOTE: This is the one we use.
5197 unixware7t:
5198 @echo 'Making C-Kermit $(CKVER) for UnixWare 7 with POSIX i/o...'
5199 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
5200 "CFLAGS = -O -DUNIXWARE -DSELECT -DSVR4 -DDIRENT -DHDBUUCP -DBIGBUFOK \
5201 -DFNFLOAT -DNOGETUSERSHELL -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DPOSIX \
5202 -DUW7 -DUSETCSETSPEED -DCK_NEWTERM -DNOLSTAT -DDCLTIMEVAL \
5203 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DNEEDMDMDEFS $(KFLAGS)" \
5204 "LIBS=-lsocket -lnsl -lcurses -ltermcap -lcrypt -lm -lresolv $(LIBS)" \
5205 "LNKFLAGS = -s"
5206
5207 #UnixWare 7 - select()-based CONNECT - no POSIX i/o - no high serial speeds.
5208 #In other words, just like the UnixWare 1 and 2 builds.
5209 unixware7x:
5210 @echo 'Making C-Kermit $(CKVER) for UnixWare 7...'
5211 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
5212 "CFLAGS = -O -DUNIXWARE -DSELECT -DSVR4 -DDIRENT -DHDBUUCP -DBIGBUFOK \
5213 -DUW7 -DNOGETUSERSHELL -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DNOLSTAT \
5214 -DFNFLOAT -DCK_NEWTERM $(KFLAGS)" \
5215 "LIBS=-lsocket -lnsl -lcurses -ltermcap -lcrypt -lm -lresolv $(LIBS)" \
5216 "LNKFLAGS = -s"
5217
5218 #UnixWare 7 with POSIX cfset[oi]speed() to allow high serial speeds.
5219 #(but the high speeds don't work)
5220 unixware7p:
5221 @echo 'Making C-Kermit $(CKVER) for UnixWare 7 with POSIX i/o...'
5222 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
5223 "CFLAGS = -O -DUNIXWARE -DSELECT -DSVR4 -DDIRENT -DHDBUUCP -DBIGBUFOK \
5224 -DUW7 -DNOGETUSERSHELL -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DPOSIX \
5225 -DFNFLOAT -DCK_NEWTERM -DNOLSTAT $(KFLAGS)" \
5226 "LIBS=-lsocket -lnsl -lcurses -ltermcap -lcrypt -lm -lresolv $(LIBS)" \
5227 "LNKFLAGS = -s"
5228
5229 # UnixWare 7 built with gcc - This does not work at all...
5230 # Reportedly gcc 2.8.1 is broken on Unixware 7. Try egcs?
5231 unixware7g:
5232 @echo 'Making C-Kermit $(CKVER) for UnixWare 7 with gcc...'
5233 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
5234 "CC = gcc" "CC2 = gcc" "LNKFLAGS = -s -shlib"
5235 "CFLAGS = -O -DUNIXWARE -DSELECT -DSVR4 -DDIRENT -DHDBUUCP -DBIGBUFOK \
5236 -DUW7 -DNOGETUSERSHELL -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DNOLSTAT \
5237 -DFNFLOAT -DCK_NEWTERM $(KFLAGS)" \
5238 "LIBS=-lsocket -lnsl -lcurses -ltermcap -lcrypt -lm -lresolv $(LIBS)" \
5239 "LNKFLAGS = -s"
5240
5241 unixware7:
5242 $(MAKE) "MAKE=$(MAKE)" "KFLAGS=$(KFLAGS)" unixware7t \
5243 KTARGET=$${KTARGET:-$(@)}
5244
5245 uw7:
5246 $(MAKE) "MAKE=$(MAKE)" "KFLAGS=$(KFLAGS)" unixware7t \
5247 KTARGET=$${KTARGET:-$(@)}
5248
5249 #SCO OpenUNIX 8.0
5250 ou8:
5251 @echo 'Making C-Kermit $(CKVER) for Open UNIX 8...'
5252 $(MAKE) "MAKE=$(MAKE)" "KFLAGS=-DOU8 $(KFLAGS)" unixware7t \
5253 KTARGET=$${KTARGET:-$(@)}
5254
5255 #UnixWare 7 with OpenSSL
5256 uw7ssl uw7+ssl:
5257 @echo 'Making C-Kermit $(CKVER) for UnixWare 7 and OpenSSL...'
5258 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
5259 "CFLAGS = -O -DCK_AUTHENTICATION -DCK_SSL -DCK_SHADOW \
5260 -DUNIXWARE -DSELECT -DSVR4 -DDIRENT -DHDBUUCP -DBIGBUFOK \
5261 -DFNFLOAT -DNOGETUSERSHELL -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DPOSIX \
5262 -DUW7 -DUSETCSETSPEED -DCK_NEWTERM -DNOLSTAT -DDCLTIMEVAL \
5263 $(SSLINC) $(KFLAGS)" \
5264 "LIBS=-lsocket -lnsl -lcurses -ltermcap -lcrypt -lm -lresolv \
5265 -lgen -lcudk70 $(SSLLIB) -lssl -lcrypto $(LIBS)" \
5266 "LNKFLAGS = -s"
5267
5268 #As above but includes Shadow password support needed for IKSD.
5269 uw7iksd:
5270 $(MAKE) "MAKE=$(MAKE)" "KFLAGS=-DCK_SHADOW $(KFLAGS)" \
5271 KTARGET=$${KTARGET:-$(@)} "LIBS= -lgen" unixware7t
5272
5273 #As above but links with static API for realpath() so a binary built
5274 #with this target on UW7.1 will also work on 7.0. Requires SCO UDK
5275 #rather than the stock compiler.
5276 uw7iksdudk:
5277 $(MAKE) "MAKE=$(MAKE)" "KFLAGS=-DCK_SHADOW $(KFLAGS)" \
5278 KTARGET=$${KTARGET:-$(@)} "LIBS= -lgen -lcudk70" unixware7t
5279
5280 #ESIX SVR4.0.3 or 4.04 with TCP/IP support.
5281 #Has <sys/termiox.h>, ANSI C function prototyping disabled.
5282 #Add -m486 to CFLAGS if desired.
5283 esixr4:
5284 @echo 'Making C-Kermit $(CKVER) for ESIX SVR4 + TCP/IP...'
5285 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
5286 "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DNOANSI \
5287 -DSTERMIOX -DTCPSOCKET $(KFLAGS)" "LNKFLAGS = -s" \
5288 "LIBS = -lsocket -lnsl"
5289
5290 #AT&T UNIX System V R4.
5291 #Has <sys/termiox.h>, Wollongong WIN/TCP TCP/IP.
5292 sys5r4sxnet:
5293 @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
5294 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
5295 "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP \
5296 -DSTERMIOX -DWOLLONGONG $(KFLAGS)" "LNKFLAGS = -s"
5297
5298 #AT&T UNIX System V R4, no <termio.x> or <sys/termio.x>.
5299 sys5r4nx:
5300 @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
5301 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
5302 "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DNOLEARN $(KFLAGS)" \
5303 "LNKFLAGS = -s"
5304
5305 #AT&T UNIX System V R4, no <termio.x> or <sys/termio.x>, curses, TCP/IP.
5306 sys5r4nxnetc:
5307 @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
5308 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
5309 "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP \
5310 -DCK_CURSES -DTCPSOCKET $(KFLAGS)" \
5311 "LIBS = -lcurses -lsocket -lnsl -ltcpip" \
5312 "LNKFLAGS = -s"
5313
5314 #AT&T UNIX System V R4, no <termio.x> or <sys/termio.x>, Wollongong TCP/IP.
5315 sys5r4nxtwg:
5316 @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
5317 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
5318 "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DWOLLONGONG $(KFLAGS)"
5319 "LNKFLAGS = -s"
5320
5321 #ICL UNIX System V R4.(DRS N/X) version :-
5322 #UNIX System V Release 4.0 ICL DRS 6000 (SPARC)
5323 #DRS/NX 6000 SVR4 Version 5 Level 1 Increment 4
5324 #Has <sys/termiox.h>, regular Berkeley sockets library, i.e. in.h and inet.h
5325 #are not misplaced in sys (rather than netinet and arpa, respectively).
5326 #Uses ANSI C constructs, advisory file locking on devices, etc.
5327 #Remove -lnsl if it causes trouble.
5328 iclsys5r4:
5329 @echo 'Making C-Kermit $(CKVER) for ICL UNIX System V R4 (DRS N/X)'
5330 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
5331 "CFLAGS = -O -DSVR4 -DICL_SVR4 -DDIRENT -DHDBUUCP -DNOGETUSERSHELL \
5332 -DSTERMIOX -DTCPSOCKET $(KFLAGS)" \
5333 "LIBS= -lsocket -lnsl -lresolv " "LNKFLAGS = -s"
5334
5335 #As above but for DRS/NX 4.2MP 7MPlus.
5336 iclsys5r4m+:
5337 @echo 'Making C-Kermit $(CKVER) for ICL UNIX System V R4 DRS/NX 4.2MP+'
5338 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
5339 "CFLAGS = -O -DSVR4 -DICL_SVR4 -DDIRENT -DHDBUUCP -DNOIKSD \
5340 -DSTERMIOX -DTCPSOCKET $(KFLAGS)" \
5341 "LIBS= -lsocket -lnsl -lm -lc -g -lgen " "LNKFLAGS = -s"
5342
5343 #As above but for DRS/NX 4.2MP 7MPlus with IKSD support.
5344 iclsys5r4m+iksd:
5345 @echo 'Making C-Kermit $(CKVER) for ICL UNIX System V R4 DRS/NX 4.2MP+'
5346 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
5347 "CFLAGS = -O -DSVR4 -DICL_SVR4 -DDIRENT -DHDBUUCP -DNOGETUSERSHELL \
5348 -DSTERMIOX -DTCPSOCKET $(KFLAGS)" \
5349 "LIBS= -lsocket -lnsl -lm -lc -g -lgen -lresolv " "LNKFLAGS = -s"
5350
5351 iclsys5r4_486:
5352 $(MAKE) "MAKE=$(MAKE)" iclsys5r4 KTARGET=$${KTARGET:-$(@)}
5353
5354 #Data General DG/UX 4.30 (System V R3) for DG AViiON, with TCP/IP support.
5355 dgux430:
5356 @echo 'Making C-Kermit $(CKVER) for DG AViiON DG/UX 4.30...'
5357 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
5358 "CFLAGS = -O -DDGUX430 -DSVR3 -DDIRENT -DTCPSOCKET \
5359 -DNOINADDRX -DNOGETUSERSHELL $(KFLAGS)"
5360
5361 #Data General DG/UX 4.30 for DG AViiON, with TCP/IP support with BSDisms.
5362 dgux430bsd:
5363 @echo 'Making C-Kermit $(CKVER) for DG AViiON DG/UX 4.30...'
5364 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
5365 "CFLAGS = -O -DDGUX430 -D_BSD_SOURCE -DBSD4 \
5366 -DNOINADDRX -DTCPSOCKET -DNOGETUSERSHELL $(KFLAGS)"
5367
5368 #Data General DG/UX 5.4 (System V R4) for DG AViiON, with TCP/IP support.
5369 #Add -lsocket -lnsl if inet_addr comes up missing...
5370 #Hmmm - I really think CK_POLL can be removed from this one in which case
5371 #there is no difference between dgux540 and dgux540i.
5372 dgux540:
5373 @echo 'Making C-Kermit $(CKVER) for DG AViiON DG/UX 5.40...'
5374 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
5375 "CFLAGS = -O -DDGUX540 -DDIRENT -DHDBUUCP -DNOINADDRX \
5376 -DSTERMIOX -DTCPSOCKET -DCK_POLL -DNOGETUSERSHELL $(KFLAGS)"
5377
5378 #Data General DG/UX 5.40 (System V R4) for Intel AViiON, with TCP/IP support.
5379 dgux540i:
5380 @echo 'Making C-Kermit $(CKVER) for DG AViiON DG/UX 5.40...'
5381 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
5382 "CFLAGS = -O -DDGUX540 -DDIRENT -DHDBUUCP -DNOINADDRX \
5383 -DSTERMIOX -DTCPSOCKET -DNOGETUSERSHELL $(KFLAGS)" \
5384 "LIBS = -lsocket -lnsl"
5385
5386 dgux54:
5387 make dgux540 KTARGET=$${KTARGET:-$(@)}
5388
5389 #Data General DG/UX 5.4 (= System V R4) for DG AViiON, with TCP/IP support.
5390 # And curses.
5391 dgux540c:
5392 @echo 'Making C-Kermit $(CKVER) for DG AViiON DG/UX 5.4...'
5393 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
5394 "CFLAGS = -O -DDGUX540 -DDIRENT -DHDBUUCP -DNOINADDRX \
5395 -DSTERMIOX -DTCPSOCKET -DCK_CURSES -DCK_NEWTERM -DNOGETUSERSHELL \
5396 $(KFLAGS)" "LIBS= -lcurses8 -ltermcap" "LNKFLAGS = -s"
5397
5398 #As above but for Intel - only difference is name library names.
5399 dgux540ic:
5400 @echo 'Making C-Kermit $(CKVER) for DG AViiON DG/UX 5.40...'
5401 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
5402 "CFLAGS = -O -DDGUX540 -DDIRENT -DHDBUUCP -DNOINADDRX \
5403 -DSTERMIOX -DTCPSOCKET -DCK_CURSES -DCK_NEWTERM -DNOGETUSERSHELL \
5404 $(KFLAGS)" "LIBS = -lsocket -lnsl -lcurses -ltermcap"
5405
5406 dgux54c:
5407 make dgux540c KTARGET=$${KTARGET:-$(@)}
5408
5409 #DG/UX 5.4R3.10
5410 dgux54310:
5411 @echo 'Making C-Kermit $(CKVER) for DG AViiON DG/UX 5.4R3...'
5412 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
5413 "CFLAGS = -DDGUX540 -DDGUX54310 -DDIRENT -DHDBUUCP -DSELECT \
5414 -DSTERMIOX -DTCPSOCKET -DCK_CURSES -DCK_NEWTERM -DNOGETUSERSHELL \
5415 -DNOINADDRX $(KFLAGS)" "LIBS= -lcurses8 -ltermcap" "LNKFLAGS = -s"
5416
5417 #DG/UX 5.4R4.10 - Includes everything.
5418 dgux54410:
5419 @echo 'Making C-Kermit $(CKVER) for DG/UX 5.4R4.10...'
5420 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
5421 "CFLAGS = -O -DDGUX540 -DDGUX54410 -DDIRENT -DHDBUUCP -DSELECT \
5422 -DSTERMIOX -DTCPSOCKET -DCK_CURSES -DCK_NEWTERM -DNOGETUSERSHELL \
5423 -DNOINADDRX $(KFLAGS)" "LIBS = -lsocket -lnsl -lcurses -ltermcap"
5424
5425 #DG/UX 5.4R4.11 - Includes everything.
5426 dgux54411:
5427 @echo 'Making C-Kermit $(CKVER) for DG/UX 5.4R4.11...'
5428 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
5429 "CFLAGS = -O -DDGUX540 -DDGUX54411 -DDIRENT -DHDBUUCP -DSELECT \
5430 -DSTERMIOX -DTCPSOCKET -DCK_CURSES -DCK_NEWTERM -DNOGETUSERSHELL \
5431 -DNOINADDRX $(KFLAGS)" "LIBS = -lsocket -lnsl -lcurses -ltermcap"
5432
5433 #DG/UX 5.4R4.20 - Includes everything.
5434 dgux54420:
5435 @echo 'Making C-Kermit $(CKVER) for DG/UX 5.4R4.20...'
5436 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
5437 "CFLAGS = -O -DDGUX540 -DDGUX54420 -DDIRENT -DHDBUUCP -DSELECT \
5438 -DSTERMIOX -DTCPSOCKET -DCK_CURSES -DCK_NEWTERM -DNOGETUSERSHELL \
5439 -DNOINADDRX $(KFLAGS)" \
5440 "LIBS = -lsocket -lresolv -lnsl -lcurses -ltermcap"
5441
5442 #Silicon Graphics System V R3 with BSD file system (IRIS)
5443 iris:
5444 @echo Making C-Kermit $(CKVER) for Silicon Graphics IRIX pre-3.3...
5445 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
5446 "CFLAGS = -O -DSVR3 -DLONGFN -DNOLEARN $(KFLAGS) -I/usr/include/bsd" \
5447 "LIBS = -lbsd"
5448
5449 #Silicon Graphics IRIS System V R3
5450 irix33:
5451 @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 3.3...'
5452 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
5453 "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DNOLEARN $(KFLAGS) -O" \
5454 "LNKFLAGS = -s"
5455
5456 #Silicon Graphics Iris Indigo with IRIX 4.0.0 or 5.0...
5457 #Strict ANSI C compilation, TCP/IP support included
5458 irix40:
5459 @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 4.0...'
5460 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
5461 "CFLAGS = -DIRIX40 -DSVR3 -DDIRENT -DHDBUUCP -DPWID_T=uid_t \
5462 -DCK_ANSIC -DTCPSOCKET $(KFLAGS) -O -Olimit 1600 -I/usr/include/bsd" \
5463 "LNKFLAGS = -s"
5464
5465 #As above, but with fullscreen display (curses) and Sun Yellow Pages support.
5466 #NOTE: IRIX versions prior to 5 run COFF binaries.
5467 irix40ypc:
5468 @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 4.0.'
5469 @echo 'Includes fullscreen file display and Sun Yellow Pages...'
5470 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
5471 "CFLAGS = -DIRIX40 -DSVR3 -DDIRENT -DHDBUUCP -DCK_CURSES \
5472 -DPWID_T=uid_t -DCK_ANSIC -DTCPSOCKET $(KFLAGS) \
5473 -O -Olimit 1600 -I/usr/include/bsd" \
5474 "LIBS = -lcurses -lsun" "LNKFLAGS = -s"
5475
5476 # Silicon Graphics Iris Series 4D/*, IRIX 4.0.x, -O4 ucode optimized.
5477 # Huge temporary file space needed for ucode optimizer. If you get an error
5478 # like "ugen: internal error writing to /tmp/ctmca08777: Error 0", define the
5479 # the TMPDIR environment variable to point to a file system that has more
5480 # space available, e.g. "setenv TMPDIR /usr/tmp".
5481 irix40u:
5482 @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 4.0...'
5483 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
5484 "CFLAGS = -DIRIX40 -DSVR3 -DDIRENT -DHDBUUCP -DPWID_T=uid_t \
5485 -DCK_ANSIC -DTCPSOCKET $(KFLAGS) -O4 -Olimit 1600" \
5486 "LNKFLAGS=-O4 -Olimit 1600 -s" "EXT=u"
5487
5488 # As above, with Curses Support added
5489 irix40uc:
5490 @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 4.0...'
5491 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
5492 "CFLAGS = -DIRIX40 -DSVR3 -DDIRENT -DHDBUUCP -DPWID_T=uid_t \
5493 -DCK_ANSIC -DCK_CURSES -DTCPSOCKET $(KFLAGS) -O4 -Olimit 1600" \
5494 "LNKFLAGS=-O4 -Olimit 1600 -s" "EXT=u" "LIBS= -lcurses -ltermcap"
5495
5496 #Silicon Graphics IRIX 5.x.
5497 #Yellow Pages and Curses support included.
5498 #IRIX version 5.x can run COFF or ELF binaries.
5499 irix51:
5500 @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 5.x'
5501 @echo 'Includes fullscreen file display and Yellow Pages...'
5502 @echo 'Add -mips<n> to CFLAGS specify a particular hardware target.'
5503 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
5504 "CFLAGS = -DIRIX51 -DSVR4 -DDIRENT -DHDBUUCP -DCK_CURSES -DCK_NEWTERM \
5505 -DPWID_T=uid_t -DCK_ANSIC -DTCPSOCKET -DSELECT -DNOGETUSERSHELL \
5506 -DSYSTIMEH -DDCLPOPEN -DDCLFDOPEN $(KFLAGS) -ansi -O -Olimit 3000" \
5507 "LIBS = -lcurses" "LNKFLAGS = -s"
5508
5509 #Use this one if irix51 blows up due to lack of swap space or whatever.
5510 irix51x:
5511 @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 5.x'
5512 @echo 'Includes fullscreen file display and Yellow Pages...'
5513 @echo 'Add -mips<n> to CFLAGS specify a particular hardware target.'
5514 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
5515 "CFLAGS = -DIRIX51 -DSVR4 -DDIRENT -DHDBUUCP -DCK_CURSES -DCK_NEWTERM \
5516 -DPWID_T=uid_t -DCK_ANSIC -DTCPSOCKET -DSELECT -DNOGETUSERSHELL \
5517 -DSYSTIMEH -DDCLPOPEN -DDCLFDOPEN $(KFLAGS)" \
5518 "LIBS = -lcurses" "LNKFLAGS = -s"
5519
5520 irix51ypc:
5521 $(MAKE) "MAKE=$(MAKE)" irix51 KTARGET=$${KTARGET:-$(@)} \
5522 "KFLAGS= $(KFLAGS)"
5523
5524 #IRIX 5.2 adds RTS/CTS
5525 irix52:
5526 $(MAKE) "MAKE=$(MAKE)" irix51 KTARGET=$${KTARGET:-$(@)} \
5527 "KFLAGS=-DIRIX52 -DCK_RTSCTS $(KFLAGS)"
5528
5529 irix53:
5530 $(MAKE) "MAKE=$(MAKE)" irix51 KTARGET=$${KTARGET:-$(@)} \
5531 "KFLAGS=-DIRIX52 -DIRIX53 -DCK_RTSCTS $(KFLAGS)"
5532
5533 irix53x:
5534 $(MAKE) "MAKE=$(MAKE)" irix51x KTARGET=$${KTARGET:-$(@)} \
5535 "KFLAGS=-DIRIX52 -DIRIX53 -DCK_RTSCTS $(KFLAGS)"
5536
5537 #Silicon Graphics IRIX 6.[024] common stuff.
5538 #Yellow Pages and Curses support included.
5539 #IRIX version 6.0 and later runs only ELF binaries.
5540 #Depends on code changes in ckcdeb.h that make -DIRIX6x define all
5541 #lower IRIX6x values and IRIX51.
5542 irix6x:
5543 @echo 'Includes fullscreen file display and Yellow Pages...'
5544 @echo 'Add -mips<n> to specify a particular hardware target.'
5545 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
5546 "CFLAGS = -DSVR4 -DDIRENT -DHDBUUCP -DNOGETUSERSHELL \
5547 -DCK_CURSES -DCK_NEWTERM -DPWID_T=uid_t -DCK_ANSIC -DTCPSOCKET \
5548 -DSELECT -DCK_RTSCTS -O $(KFLAGS)" \
5549 "LIBS = -lcurses" "LNKFLAGS = -s $(LNKFLAGS)"
5550
5551 #Silicon Graphics IRIX 6.0.
5552 irix60:
5553 @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 6.0'
5554 @$(MAKE) "MAKE=$(MAKE)" \
5555 "KFLAGS=-DIRIX60 -Olimit 2138 $(KFLAGS)" \
5556 irix6x KTARGET=$${KTARGET:-$(@)}
5557
5558 #Silicon Graphics IRIX 6.2.
5559 #Serial speeds > 38400 are available in IRIX 6.2 on O-class machines only.
5560 #Note: Olimit must be a number > 0.
5561 irix62:
5562 @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 6.2'
5563 @$(MAKE) "MAKE=$(MAKE)" \
5564 LNKFLAGS="-Wl,-woff,84" \
5565 "KFLAGS=-DIRIX62 -Olimit 4700 $(KFLAGS)" \
5566 irix6x KTARGET=$${KTARGET:-$(@)}
5567
5568 #Silicon Graphics IRIX 6.3.
5569 irix63:
5570 @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 6.3'
5571 @$(MAKE) "MAKE=$(MAKE)" irix62 KTARGET=$${KTARGET:-$(@)} \
5572 "KFLAGS=-DIRIX63"
5573
5574 #Silicon Graphics IRIX 6.4.
5575 # -woff,84 to linker stops complaints about no symbols loaded from
5576 # curses, and -woff 1110 stops complaints about unreachable "break;"
5577 # statements in ckcpro.c among others.
5578 # tested on SGI Octane, running IRIX 6.4 up to 115200 bps.
5579 # -Olimit 0 means infinite.
5580 irix64:
5581 @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 6.4'
5582 @$(MAKE) "MAKE=$(MAKE)" \
5583 LNKFLAGS="-Wl,-woff,84" \
5584 "KFLAGS=-DIRIX64 -DCK_RTSCTS -Olimit 3000 -woff 1110 $(KFLAGS)" \
5585 irix6x KTARGET=$${KTARGET:-$(@)}
5586
5587 irix64gcc:
5588 @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 6.4 gcc'
5589 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
5590 "CFLAGS= -DSVR4 -DIRIX64 -DDIRENT -DHDBUUCP -DNOGETUSERSHELL \
5591 -DSELECT -DPWID_T=uid_t -DTCPSOCKET -DNOCOTFMC \
5592 -DCK_ANSIC -DCK_RTSCTS -DCK_NEWTERM -DCK_CURSES \
5593 $(KFLAGS) -O" "LIBS= -lcurses -ltermcap -lcrypt"
5594
5595 #Note the new Optimization option syntax for MIPSpro CC 7.2.1.2m.
5596 #See note on irix65gcc target about Large File Support (LFS).
5597 irix65:
5598 @echo 'Making C-Kermit $(CKVER) for SGI IRIX 6.5'
5599 @$(MAKE) "MAKE=$(MAKE)" LNKFLAGS="-Wl,-woff,84" \
5600 "KFLAGS=-DIRIX65 -D_LARGEFILE_SOURCE -DCK_RTSCTS -OPT:Olimit=0 \
5601 -woff 1110,1552,1174 $(KFLAGS)" \
5602 irix6x KTARGET=$${KTARGET:-$(@)}
5603
5604 #Build for those that have GCC instead of MIPSpro.
5605 #
5606 # Large File Support note: use the define _LARGEFILE_SOURCE to enable support
5607 # for files larger than 2GB. This may work on releases of Irix prior to
5608 # 6.5.xx. To verify, check the man page for fstat and verify that off_t is a
5609 # 64 bit value for an -n32 build. Also check the manpage for fseek and ftell
5610 # to verify that the fseek64 and ftell64 functions are provided. If so, then
5611 # LFS support should work and you can try adding -D_LARGEFILE_SOURCE to CFLAGS
5612 # for your selected Irix target.
5613 #
5614 irix65gcc:
5615 @echo 'Making C-Kermit $(CKVER) for SGI IRIX 6.5 with gcc'
5616 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
5617 "CC = gcc" "CC2 = gcc" \
5618 "CFLAGS= -DSVR4 -DIRIX65 -D_LARGEFILE_SOURCE -DDIRENT -DHDBUUCP \
5619 -DNOGETUSERSHELL -DSELECT -DPWID_T=uid_t -DTCPSOCKET -DNOCOTFMC \
5620 -DCK_ANSIC -DCK_RTSCTS -DCK_NEWTERM -DCK_CURSES \
5621 $(KFLAGS) -O" "LIBS= -lcurses"
5622
5623 # The 64-bit IRIX target works but presumably is no longer needed given the
5624 # large file support in the more portable and compact 32-bit version.
5625 irix65_64:
5626 @echo 'Making C-Kermit $(CKVER) 64-bit for SGI IRIX 6.5'
5627 @$(MAKE) "MAKE=$(MAKE)" LNKFLAGS="-Wl,-woff,84" \
5628 "KFLAGS=-DIRIX65 -64 -DCK_RTSCTS -OPT:Olimit=0 -woff 1110,1552,1174 \
5629 -DCK_64BIT $(KFLAGS)" \
5630 irix6x KTARGET=$${KTARGET:-$(@)}
5631
5632 #Dumb down to MIPS-2 if building on R5000 or higher...
5633 irix65mips2:
5634 @echo 'Making C-Kermit $(CKVER) for SGI IRIX 6.5 MIPS-2'
5635 @$(MAKE) "MAKE=$(MAKE)" LNKFLAGS="-o32 -mips2 -Wl,-woff,84" \
5636 "KFLAGS=-DIRIX65 -DCK_RTSCTS -OPT:Olimit=0 -o32 -mips2 \
5637 -woff 1110,1552,1174 $(KFLAGS)" \
5638 irix6x KTARGET=$${KTARGET:-$(@)}
5639
5640 #Special target that adds srp, ssl, and zlib support. This requires
5641 #that you have pkgsrc installed instead of Irix Freeware. See
5642 #NetBSD.org for pkgsrc for Irix. You will need to BUILD the srp_client
5643 #package yourself. Install it manually using the directions found
5644 #in the netbsds+ssl+srp+zlib target comments.
5645 irix65+ssl+srp+zlib:
5646 @echo 'Making C-Kermit $(CKVER) for IRIX 6.5 with gcc and SSL SRP ZLIB'
5647 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
5648 "CC = gcc" "CC2 = gcc" \
5649 "CFLAGS= -DIRIX65 -DSVR4 -DDIRENT -DHDBUUCP -DNOGETUSERSHELL -DSELECT \
5650 -DTCPSOCKET -DNOCOTFMC -DCK_NEWTERM -DPWID_T=uid_t -DCK_ANSIC \
5651 -I/usr/pkg/include -DCK_AUTHENTICATION -DCK_SRP -DPRE_SRP_1_4_5 \
5652 -DCK_RTSCTS -DCK_NCURSES -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DCK_SSL \
5653 -DLIBDES -DZLIB -DFNFLOAT -I/usr/pkg/include/openssl $(KFLAGS) -O" \
5654 "LIBS= -L/usr/pkg/lib -rpath /usr/pkg/lib -lncurses -lsrp -lgmp -ldes \
5655 -lssl -lkrypto -lcrypto -lcrypt -lz -lm"
5656
5657 irix6x+krb5:
5658 @echo 'Includes fullscreen file display and Yellow Pages...'
5659 @echo 'Add -mips<n> to specify a particular hardware target.'
5660 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
5661 "CFLAGS = -DSVR4 -DDIRENT -DHDBUUCP -DNOGETUSERSHELL \
5662 -DCK_CURSES -DCK_NEWTERM -DPWID_T=uid_t -DCK_ANSIC -DTCPSOCKET\
5663 -DSELECT -DCK_RTSCTS -O \
5664 -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 -DCK_ENCRYPTION -DCK_DES \
5665 $(K5INC) $(K5INC)/krb5 $(KFLAGS)" \
5666 "LIBS = -lcurses $(K5LIB) -ldes425 -lkrb5 \
5667 -lcom_err -lcrypto -lcrypt -lgssapi_krb5" \
5668 "LNKFLAGS = -s $(LNKFLAGS)"
5669
5670 irix65+krb5:
5671 @echo 'Making C-Kermit $(CKVER) for SGI IRIX 6.5'
5672 @$(MAKE) "MAKE=$(MAKE)" \
5673 LNKFLAGS="-Wl,-woff,84" \
5674 "KFLAGS=-DIRIX65 -DCK_RTSCTS -OPT:Olimit=0 -woff 1110,1552,1174 \
5675 $(KFLAGS)" \
5676 irix6x+krb5 KTARGET=$${KTARGET:-$(@)}
5677
5678 #In case they type "make sys5"...
5679 sys5:
5680 $(MAKE) "MAKE=$(MAKE)" sys3 KTARGET=$${KTARGET:-$(@)}
5681
5682 #Generic ATT System III or System V (with I&D space)
5683 sys3:
5684 @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System III'
5685 @echo 'or System V R2 or earlier...'
5686 @echo 'add -DNOMKDIR if mkdir is an undefined symbol.'
5687 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
5688 "CFLAGS = -DATTSV -DNOUNICODE -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL \
5689 -DNOINITGROUPS -DNOFTRUNCATE -DNOREALPATH -DNOLEARN $(KFLAGS) -i -O" \
5690 "LNKFLAGS = -i"
5691
5692 #Generic ATT System III or System V (no I&D space)
5693 sys3nid:
5694 @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System III'
5695 @echo 'or System V R2 or earlier, no I&D space...'
5696 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
5697 "CFLAGS = -DATTSV -DNOREALPATH -DNOUNICODE -DNOSYSLOG -DNOSYMLINK \
5698 -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE -DNOLEARN $(KFLAGS) -O" \
5699 "LNKFLAGS ="
5700
5701 #Generic ATT System III or System V R2 or earlier, "no void":
5702 #special entry to remove "Illegal pointer combination" warnings.
5703 sys3nv:
5704 @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System III'
5705 @echo 'or System V R2 or earlier...'
5706 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
5707 "CFLAGS= -DATTSV -DNOREALPATH -DNOUNICODE -DNOSYSLOG -DNOGETUSERSHELL \
5708 -DNOSYMLINK -DNOFTRUNCATE -DNOINITGROUPS -DNOLEARN \
5709 -Dvoid=int $(KFLAGS) -i -O" \
5710 "LNKFLAGS = -i"
5711
5712 # AT&T 7300 UNIX PC. As of C-Kermit 6.1, many of these entries don't work
5713 # any more due to "Out of memory" or "Too many defines" errors during
5714 # compilation, at least not on systems without lots of memory. The sys3upcgc
5715 # entry works (using gcc) with optimization removed, and might also work
5716 # with optimization enabled on machines with larger memories.
5717
5718 #AT&T 7300/UNIX PC (3B1) systems, sys3 but special handling for internal modem.
5719 #Link with the shared library -- the conflict with openi in shared library
5720 #is solved with -Dopeni=xopeni. Note that the xermit target can't be used
5721 #for the Unix PC; there is no select().
5722 sys3upc:
5723 @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC, shared lib...'
5724 @echo 'If shared lib causes trouble, use make sys3upcold.'
5725 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
5726 "CFLAGS = -O -DATT7300 -DNOMKDIR -DUSE_MEMCPY -DNOREALPATH -DNOLEARN \
5727 -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
5728 -DNOREDIRECT -DNOGFTIMER -DNOUNICODE $(KFLAGS) -Dopeni=xopeni" \
5729 "CC2 = ld /lib/crt0s.o /lib/shlib.ifile" "LNKFLAGS = -s"
5730
5731 #AT&T 7300/Unix PC systems, minimum kermit for those with smaller amounts
5732 #of memory.
5733 sys3upcm:
5734 @echo Minimum interactive
5735 $(MAKE) "MAKE=$(MAKE)" sys3upc KTARGET=$${KTARGET:-$(@)} \
5736 "KFLAGS=-DNOSPL -DNOFRILLS -DNOHELP -DNODEBUG -DNOTLOG -DNOCSETS \
5737 -DNOSYSLOG -DNOSETKEY -DNOREALPATH"
5738
5739 #AT&T 7300/UNIX PC (3B1) systems, with curses support.
5740 #Curses and the shared library don't get along, so we don't use the
5741 #shared library. We need to include CK_NEWTERM to avoid a conflict
5742 #with curses and buffering on stdout. Merged with submission by
5743 #Robert Weiner/Programming Plus, [email protected].
5744 #We don't need -Dopeni=xopeni since we're not using the shared library,
5745 #but we keep it to be consistent with the other entries.
5746 sys3upcc:
5747 @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC, curses...'
5748 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
5749 "CFLAGS = -O -DATT7300 -DNOREALPATH \
5750 -DCK_CURSES -DCK_NEWTERM -DNOMKDIR -DNOREDIRECT -DNOGFTIMER -DNOLEARN \
5751 -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
5752 -DUSE_MEMCPY -DNOUNICODE $(KFLAGS) -Dopeni=xopeni" \
5753 "LIBS = -lcurses" "LNKFLAGS = -s"
5754
5755 #Like sys3upcc but for AT&T UNIX 3.51m (released as a patch on Fix Disk 2),
5756 #adds hardware flow control.
5757 att351m:
5758 $(MAKE) "MAKE=$(MAKE)" sys3upcc KTARGET=$${KTARGET:-$(@)} \
5759 "KFLAGS=-DCK_RTSCTS -DUNIX351M"
5760
5761 #As above but with gcc.
5762 att351gm:
5763 $(MAKE) "MAKE=$(MAKE)" sys3upcgc KTARGET=$${KTARGET:-$(@)} \
5764 "KFLAGS=-DCK_RTSCTS -DUNIX351M"
5765
5766 #AT&T 7300 UNIX PC (3B1), as above, but no newterm().
5767 sys3upcx:
5768 @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC, curses...'
5769 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
5770 "CFLAGS = -O -DATT7300 -DNOREALPATH -DNOUNICODE -DNOLEARN \
5771 -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
5772 -DCK_CURSES -DNOMKDIR -DNOREDIRECT -DNOGFTIMER -DUSE_MEMCPY $(KFLAGS) \
5773 -Dopeni=xopeni" "LIBS = -lcurses -ltermcap" "LNKFLAGS = -s"
5774
5775 #AT&T 7300/UNIX PC (3B1) systems, with curses and shared library support.
5776 sys3upcshcc:
5777 @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC, shared lib...'
5778 @echo 'With curses. Requires shcc.'
5779 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
5780 "CFLAGS = -O -DATT7300 -DNOMKDIR -DNOREALPATH -DNOLEARN \
5781 -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
5782 -DCK_NEWTERM -DCK_CURSES -DNOREDIRECT -DNOGFTIMER \
5783 -DUSE_MEMCPY -DNOUNICODE $(KFLAGS) -Dopeni=xopeni" \
5784 "LNKFLAGS = -i -s" "CC = shcc" "CC2 = shcc" "LIBS = -lcurses"
5785
5786 #AT&T 7300/UNIX PC (3B1) systems, as above, no curses, but use gcc.
5787 sys3upcg:
5788 @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC...'
5789 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
5790 "CFLAGS = -DATT7300 -DNOREDIRECT -DUSE_MEMCPY -DNOUNICODE -DNOLEARN \
5791 -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
5792 -DNOGFTIMER -DNOMKDIR -DNOREALPATH $(KFLAGS) -Dopeni=xopeni" \
5793 "CC = gcc" "CC2 = gcc" "LNKFLAGS = -s -shlib"
5794
5795 #AT&T 7300/UNIX PC (3B1) systems, curses and gcc.
5796 #Optimization omitted -- add it back in if your machine has lots of memory.
5797 sys3upcgc:
5798 @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC, curses...'
5799 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
5800 "CFLAGS = -DATT7300 -DNOREDIRECT -DUSE_MEMCPY -DNOGFTIMER -DNOUNICODE \
5801 -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
5802 -DCK_CURSES -DCK_NEWTERM -DNOMKDIR -DNOREALPATH -DNOLEARN $(KFLAGS)" \
5803 "CC = gcc" "CC2 = gcc" "LIBS = -lcurses" "LNKFLAGS = -s"
5804
5805 #AT&T 7300/UNIX PC (3B1) systems, special handling for internal modem.
5806 #No FULLSCREEN file transfer display (curses).
5807 sys3upcold:
5808 @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC...'
5809 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
5810 "CFLAGS = -DATT7300 -DNOMKDIR -DUSE_MEMCPY -DNOUNICODE -DNOLEARN \
5811 -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
5812 -DNOGFTIMER -DNOREDIRECT -DNOREALPATH $(KFLAGS) -O" "LNKFLAGS = -i"
5813
5814 #As above, but with gcc. mininum features - fits on a 400K UNIX PC floppy
5815 #after compression with room to spare; add -DNOSHOW or other -DNOxxxx items
5816 #to reduce size even further.
5817 sys3upcgm:
5818 @echo Minimum interactive
5819 $(MAKE) "MAKE=$(MAKE)" sys3upcg KTARGET=$${KTARGET:-$(@)} \
5820 "KFLAGS=-DNOSPL -DNOFRILLS -DNOHELP -DNODEBUG -DNOTLOG -DNOCSETS \
5821 -DNOSETKEY $(KFLAGS)"
5822
5823 #This target is designed to create a version with the most features possible
5824 #that, after compression, still fits on a 400K UNIX PC floppy.
5825 sys3upcgfd:
5826 @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC floppy...'
5827 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
5828 "CFLAGS = -DATT7300 -DNOREDIRECT -DUSE_MEMCPY -DNOSPL -DNOLEARN \
5829 -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
5830 -DNOGFTIMER -DNOREALPATH -Dopeni=xopeni \
5831 -DNOHELP -DNODEBUG -DNOTLOG -DNOCSETS -DNOSETKEY -DNOMKDIR $(KFLAGS)" \
5832 "CC = gcc" "CC2 = gcc" "LNKFLAGS = -s"
5833
5834 #AT&T 6300 PLUS (warning, -O might make it run out of space).
5835 #NOTE: Remove -DHDBUUCP if not using Honey DanBer UUCP.
5836 att6300:
5837 @echo 'Making C-Kermit $(CKVER) for AT&T 6300 PLUS...'
5838 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
5839 "CFLAGS = -DATT6300 -DHDBUUCP -DNOFILEH -DNOREALPATH -DNOLEARN \
5840 -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
5841 -DNOUNICODE $(KFLAGS) -O -Ml -i" "LNKFLAGS = -i -Ml"
5842
5843 #As above, but with curses support. Debugging disabled to prevent thrashing.
5844 att6300c:
5845 @echo 'Making C-Kermit $(CKVER) for AT&T 6300 PLUS...'
5846 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
5847 "CFLAGS = -DATT6300 -DHDBUUCP -DNOFILEH -DNOCSETS -DNOREALPATH \
5848 -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
5849 -DCK_CURSES -DNODEBUG -DNOUNICODE -DNOLEARN $(KFLAGS) -O -Ml -i" \
5850 "LNKFLAGS = -i -Ml" "LIBS = -lcurses"
5851
5852 #AT&T 6300 PLUS with no curses, no debugging (about 34K smaller)
5853 # -Optimization saves about 20K too.
5854 att6300nd:
5855 @echo 'Making C-Kermit $(CKVER) for AT&T 6300 PLUS, no debugging...'
5856 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
5857 "CFLAGS = -DATT6300 -DHDBUUCP -DNODEBUG -DNOFILEH -DNOREALPATH \
5858 -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
5859 -DNOUNICODE -DNOLEARN $(KFLAGS) -O -i -Ml" "LNKFLAGS = -i -Ml"
5860
5861 #AT&T 3B2 and maybe 3B20-series computers running AT&T UNIX System V R3.
5862 #This one was actually used to build C-Kermit 7.0 successfully on a 3B2/300.
5863 att3b2:
5864 @echo 'Making C-Kermit $(CKVER) for AT&T 3B2'
5865 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
5866 "CFLAGS = -DATTSV -DNOREDIRECT -DUSE_MEMCPY \
5867 -DNOTIMEVAL -DNOTIMEZONE -DMINIDIAL -DNOCHANNELIO -DNOBIGBUF \
5868 -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
5869 -DNOGFTIMER -DNOREALPATH -Dopeni=xopeni -DNOFRILLS -DNOLEARN \
5870 -DNOHELP -DNODEBUG -DNOTLOG -DNOCSETS -DNOSETKEY -DNOMKDIR $(KFLAGS)" \
5871 "CC = gcc" "CC2 = gcc" "LNKFLAGS = -s"
5872
5873 # The next two are likely not to work as-is.
5874
5875 #AT&T 3B2, 3B20-series computers running AT&T UNIX System V.
5876 #This is just generic System V with Honey DanBer UUCP, so refer to sys3hdb.
5877 #Remove -DNONAWS if you can get away with it.
5878 att3bx:
5879 $(MAKE) "MAKE=$(MAKE)" sys3hdb KTARGET=$${KTARGET:-$(@)} \
5880 "KFLAGS=$(KFLAGS) -DNONAWS -DNOTIMEVAL"
5881
5882 # 3Bx with charsets (except Unicode) but no curses.
5883 att3bx1:
5884 @echo 'Making C-Kermit $(CKVER) for AT&T 3B2 or 3B20'
5885 @echo 'with Honey DanBer UUCP no curses...'
5886 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
5887 "CFLAGS = -DATTSV -DHDBUUCP $(KFLAGS) -DNOREDIRECT \
5888 -DNOTIMEVAL -DNOTIMEZONE -DMINIDIAL -DNOCHANNELIO -DNOBIGBUF \
5889 -DNOHELP -DNODEBUG -DNOGFTIMER -DNOLEARN \
5890 -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
5891 -DNOREALPATH -DNOUNICODE -i" \
5892 "CC = gcc" "CC2 = gcc" "LNKFLAGS = -i -s"
5893
5894 #AT&T 3B2, 3B20-series computers running AT&T UNIX System V,
5895 #with fullscreen file transfer display.
5896 att3bxc:
5897 @echo 'Making C-Kermit $(CKVER) for AT&T 3B2 or 3B20'
5898 @echo 'with Honey DanBer UUCP and curses...'
5899 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
5900 "CFLAGS = -DATTSV -DHDBUUCP -DNONAWS -DNOTIMEVAL $(KFLAGS) \
5901 -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
5902 -DNOREALPATH -DCK_CURSES -DCK_NEWTERM -DNOUNICODE -DNOLEARN -i -O" \
5903 "LNKFLAGS = -i" "LIBS=-lcurses"
5904
5905 #3bx with curses but no charsets
5906 att3bxc3:
5907 @echo 'Making C-Kermit $(CKVER) for AT&T 3B2 or 3B20'
5908 @echo 'with Honey DanBer UUCP with curses... no CSETS'
5909 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
5910 "CFLAGS = -DATTSV -DHDBUUCP $(KFLAGS) -DNOREDIRECT \
5911 -DNOTIMEVAL -DNOTIMEZONE -DMINIDIAL -DNOCHANNELIO -DNOBIGBUF \
5912 -DNOHELP -DNODEBUG -DNOGFTIMER -DNOLEARN \
5913 -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
5914 -DNOREALPATH -DNOCSETS -DCK_CURSES -DCK_NEWTERM -i" \
5915 "CC = gcc" "CC2 = gcc" "LNKFLAGS = -i -s" "LIBS = -lcurses"
5916
5917 #Any System V R2 or earlier with Honey DanBer UUCP (same as above)
5918 sys3hdb:
5919 @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System III'
5920 @echo 'or System V R2 or earlier with Honey DanBer UUCP...'
5921 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
5922 "CFLAGS = -DATTSV -DHDBUUCP -DNOREALPATH -DNOUNICODE -DNOLEARN \
5923 -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
5924 $(KFLAGS) -i -O" "LNKFLAGS = -i"
5925
5926 #Sperry/UNISYS 5000 UTS V 5.2 (System V R2), Honey DanBer UUCP
5927 unisys5r2:
5928 @echo 'Making C-Kermit $(CKVER) for Sperry/UNISYS 5000 UTS V 5.2...'
5929 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
5930 "CFLAGS = -DATTSV -DUNISYS52 -DHDBUUCP -DNOREALPATH -DNOUNICODE \
5931 -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE \
5932 -DNOLEARN $(KFLAGS) -i -O" "LNKFLAGS = -i"
5933
5934 #In case they say "make sys5hdb" instead of "make sys3hdb"...
5935 sys5hdb:
5936 $(MAKE) "MAKE=$(MAKE)" sys3hdb
5937
5938 #Create the common header line for all hpux[5-11]* entries and above. This
5939 #extra entry is here because our header message length may differ for each
5940 #C-Kermit version. Don't use 'fold -s' for HP-UX 5.x - 7.x! This option is
5941 #available only for HP-UX 8.0 and above!
5942 hpux-header:
5943 @HPUX=`uname -r | sed -e 's/^[^1-9]*//' -e 's/\.00$$/.0/'` ; \
5944 [ "$(MESSAGE0)" ] && MESSAGE1="$(MESSAGE0)" ; \
5945 Message0='Making C-Kermit $(CKVER) for HP9000 HP-UX' ; \
5946 Message1=$${MESSAGE1:='without any extra compiler optimization'} ; \
5947 MessageH="$$Message0 $$HPUX" ; \
5948 case $$HPUX in \
5949 [567].*) echo "$$MessageH\n$$Message1" ;; \
5950 *.*) echo "$$MessageH $${Message1}$(MESSAGE1A)" | fold -s ;; \
5951 esac | sed -e 's/^ //' -e 's/ *$$//'
5952
5953 # Peter E's updated HP-UX 5.xx entries Oct 2001.
5954
5955 #HP-9000 500 HP-UX 5.xx, no TCP/IP.
5956 # Last known successful build: C-Kermit 8.0.206 2002/20/27.
5957 hpux0500:
5958 @MESSAGE0="no TCP/IP and no compiler optimization";\
5959 MESSAGE0=$${MESSAGE1:-$$MESSAGE0} \
5960 $(MAKE) hpux-header
5961 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
5962 "CFLAGS = -DHPUX -DHPUX5 -DHPUXPRE65 -DNOREDIRECT -DDCLGETCWD \
5963 -DNOGETUSERSHELL -DNOGFTIMER -DNOSYSLOG -DNOTOMACROS -DNOLSTAT \
5964 -DNOSYMLINK -DNOINITGROUPS -DNOUNICODE -DNOLEARN -DNOLONGLONG \
5965 -DVOID=int -DCKVOID=int $(KFLAGS)" "LIBS = $(LIBS)" "LNKFLAGS = "
5966
5967 #HP-9000 500 HP-UX 5.21 with Wollongong WIN/TCP 1.2 TCP/IP.
5968 #Requires /usr/wins/usr/include and /usr/lib/libnet.a from Wollongong.
5969 #Optimization skipped - takes forever. Really.
5970 # WARNING: this doesn't work if a file called "hpux0500" is on the disk.
5971 # Last known successful build: C-Kermit 8.0.206 2002/20/27.
5972 hpux0500wintcp:
5973 @MESSAGE1="with WIN/TCP but without any extra compiler optimization" \
5974 $(MAKE) hpux0500 KTARGET=$${KTARGET:-$(@)} \
5975 "KFLAGS = -DTCPSOCKET -DHPUX5WINTCP -DINADDRX -DNO_DNS_SRV \
5976 -DNOMHHOST -DVOID=int -DCKVOID=int -DNOHADDRLIST -DNOLONGLONG \
5977 -I/usr/wins/usr/include $(KFLAGS)" "LIBS = /usr/lib/libnet.a"
5978
5979 #HP-UX 6.5, short filenames, no network and no curses support.
5980 #ckcpro, ckuusr, ckuus3 and others are broken out because they make the
5981 #optimizer run away. Note that the XERMIT target does not work with HP-UX 6.5!
5982 #
5983 #If you get compiler warnings like:
5984 #'Switch table overflow. Try the -Wc,-Nw option.' (for ckcuni.c, or
5985 #other files) increase the '...' value in '-Wc,-Nw...'! The default maximum
5986 #switch table stack (-Nw) is 250 table entries. ckcuni.c from Oct 16 2009
5987 #needs 257 table entries (C-Kermit Version "9.0.299").
5988 #OK: 2010/03/26
5989 hpux0650:
5990 @$(MAKE) hpux-header
5991 @MESSAGE2=$${MESSAGE2:-'and NO network'}; \
5992 echo "supporting: NO long filenames $$MESSAGE2."
5993
5994 $(MAKE) KTARGET=$${KTARGET:-$(@)} \
5995 ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) ckuus6.$(EXT) \
5996 ckuusr.$(EXT) ckuxla.$(EXT) ckcftp.$(EXT) ckcpro.$(EXT) \
5997 "CFLAGS = -DHPUX -DHPUX6 -DSIG_V -DNOSYSLOG -DNOSELECT -DFNFLOAT \
5998 -DDCLGETCWD -DNOGETUSERSHELL -DNO_DNS_SRV -DNOLEARN -DNOLONGLONG \
5999 $(KFLAGS)"
6000
6001 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
6002 "CFLAGS = -DHPUX -DHPUX6 -DSIG_V -DNOSYSLOG -DNOSELECT -DFNFLOAT \
6003 -DDCLGETCWD -DNOGETUSERSHELL -DNO_DNS_SRV -DNOLEARN -DNOLONGLONG \
6004 $(KFLAGS) -Wc,-Nw260 $(OFLAGS)" "LNKFLAGS = -s" "LIBS = -lm $(LIBS)"
6005
6006 #Exactly as above, plus curses:
6007 #OK: 2009/10/06
6008 hpux0650c:
6009 @MESSAGE2="and NO network but with curses" \
6010 $(MAKE) hpux0650 KTARGET=$${KTARGET:-$(@)} \
6011 "KFLAGS = -DCK_CURSES $(KFLAGS)" \
6012 "LIBS = -lcurses"
6013
6014 #Exactly as above, plus curses + network:
6015 #OK: 2009/10/02
6016 hpux0650tcpc:
6017 @MESSAGE2="but with curses and with TCP/IP" \
6018 $(MAKE) hpux0650 KTARGET=$${KTARGET:-$(@)} \
6019 "KFLAGS=-DCK_CURSES -DTCPSOCKET -DNOHADDRLIST \
6020 -DINTSELECT -DNOCKGETFQHOST $(KFLAGS)" \
6021 "LIBS=-lcurses"
6022
6023 #Exactly as hpux0650 but with compiler optimization:
6024 #OK: 2009/10/06
6025 hpux0650o:
6026 @MESSAGE1="with compiler optimization" \
6027 $(MAKE) hpux0650 KTARGET=$${KTARGET:-$(@)} \
6028 "KFLAGS = $(KFLAGS)" "OFLAGS = -O"
6029
6030 #Exactly as hpux0650c but with compiler optimization:
6031 #OK: 2009/10/06
6032 hpux0650oc:
6033 @MESSAGE1="with compiler optimization" \
6034 $(MAKE) hpux0650c KTARGET=$${KTARGET:-$(@)} \
6035 "KFLAGS = $(KFLAGS)" "OFLAGS = -O"
6036
6037 #Exactly as hpux0650tcpc but with compiler optimization:
6038 #OK: 2009/10/06
6039 hpux0650otcpc:
6040 @MESSAGE1="with compiler optimization" \
6041 $(MAKE) hpux0650tcpc KTARGET=$${KTARGET:-$(@)} \
6042 "KFLAGS = $(KFLAGS)" "OFLAGS = -O"
6043
6044 #Take this as startup entry for all 'non-optimized' files under HP-UX 7.x!
6045 #Make sure we don't call it with the '-O' option because this will blow up
6046 #the compiler!
6047 #OK: 2009/09/30
6048 hpux0700noopt:
6049 @case "$(CFLAGS)" in \
6050 *-O*) echo "Don't use CFLAGS= -O here!" ;; \
6051 *) $(MAKE) KTARGET=$${KTARGET:-$(@)} \
6052 ckuusr.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) \
6053 ckuus6.$(EXT) ckuus7.$(EXT) ckuxla.$(EXT) \
6054 ckcuni.$(EXT) ckcftp.$(EXT) ckcpro.$(EXT) \
6055 ;; \
6056 esac
6057
6058 #HP-UX 7.0, no long filenames, no network support, no curses.
6059 #If you get compiler warnings like:
6060 #'Switch table overflow. Try the -Wc,-Nw option.' (for ckcuni.c, or
6061 #other files) increase the '...' value in '-Wc,-Nw...'! The default maximum
6062 #switch table stack (-Nw) is 250 table entries. ckcuni.c from Oct 16 2009
6063 #needs 257 table entries (C-Kermit Version "9.0.299").
6064 #OK: 2010/10/26
6065 hpux0700sf:
6066 @$(MAKE) hpux-header
6067 @echo 'supporting: NO long filenames, NO network, NO curses.'
6068 $(MAKE) hpux0700noopt KTARGET=$${KTARGET:-$(@)} \
6069 "CFLAGS = -DHPUX -DHPUX7 -DSIG_V -DNOGETUSERSHELL -DFNFLOAT \
6070 -DNO_DNS_SRV $(KFLAGS) -Wc,-Nw260"
6071
6072 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
6073 "CFLAGS = -DHPUX -DHPUX7 -DSIG_V -DNOGETUSERSHELL -DFNFLOAT \
6074 -DNO_DNS_SRV $(KFLAGS) -Wc,-Nw260 $(OFLAGS)" \
6075 "LNKFLAGS = -s" "LIBS = -lm $(LIBS)"
6076
6077 #Exactly as hpux0700sf but with compiler optimization:
6078 #OK: 2009/09/30
6079 hpux0700osf:
6080 @MESSAGE1="with compiler optimization" \
6081 $(MAKE) hpux0700sf KTARGET=$${KTARGET:-$(@)} \
6082 "KFLAGS = $(KFLAGS)" "OFLAGS = -O"
6083
6084 #HP-UX 7.0, short filenames, but with tcp/ip and curses.
6085 #To use this, you must have bought the ARPA Services Product from HP, and you
6086 #must have /usr/lib/libBSD.a.
6087 #
6088 #If you get compiler warnings like:
6089 #'Symbol table overflow. Try the -Wc,-Ns option.' (as for ckuus4.c or
6090 #other files) increase the '...' value in '-Wc,-Ns...'! The default maximum
6091 #symbol table size (-Ns) is 2000 table entries. ckuus4.c from Mar 12 2010
6092 #needs 2031 table entries (C-Kermit Version "9.0.299").
6093 #OK: 2010/03/24
6094 hpux0700sftcpc:
6095 @$(MAKE) hpux-header
6096 @echo 'supporting: NO long filenames, \c'
6097 @echo 'but with networking, curses, HDB uucp...'
6098 $(MAKE) hpux0700noopt KTARGET=$${KTARGET:-$(@)} \
6099 "CFLAGS = -DHPUXDEBUG -DHPUX -DHPUX7 -DTCPSOCKET -DSIG_V \
6100 -DCK_REDIR -DCK_RTSCTS -DCK_CURSES -DNOGETUSERSHELL -DFNFLOAT \
6101 -DNO_DNS_SRV -DHDBUUCP -DLOCK_DIR=\\\"/usr/spool/uucp\\\" \
6102 -DNOLONGLONG $(KFLAGS) -Wc,-Nw260,-Ns2040"
6103
6104 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
6105 "CFLAGS = -DHPUXDEBUG -DHPUX -DHPUX7 -DTCPSOCKET -DSIG_V \
6106 -DCK_REDIR -DCK_RTSCTS -DCK_CURSES -DNOGETUSERSHELL -DFNFLOAT \
6107 -DNO_DNS_SRV -DHDBUUCP -DLOCK_DIR=\\\"/usr/spool/uucp\\\" \
6108 -DNOLONGLONG $(KFLAGS) -Wc,-Nw260,-Ns2040 $(OFLAGS)" \
6109 "LNKFLAGS = -s" "LIBS = -lm -lBSD -lcurses"
6110
6111 #Exactly as above but with compiler optimization:
6112 #OK: 2009/09/30
6113 hpux0700osftcpc:
6114 @MESSAGE1="with compiler optimization" \
6115 $(MAKE) hpux0700sftcpc KTARGET=$${KTARGET:-$(@)} \
6116 "KFLAGS = $(KFLAGS)" "OFLAGS = -O"
6117
6118 #HP 9000 series 300/800 HP-UX 7.0, long filenames, network support, HDB uucp,
6119 #but NO curses. See comments in hpux0700sftcpc about TCP/IP support.
6120 #
6121 #If you get compiler warnings like:
6122 #'Symbol table overflow. Try the -Wc,-Ns option.' (as for ckuus4.c or
6123 #other files) increase the '...' value in '-Wc,-Ns...'! The default maximum
6124 #symbol table size (-Ns) is 2000 table entries. ckuus4.c from Mar 12 2010
6125 #needs 2031 table entries (C-Kermit Version "9.0.299").
6126 #OK: 2010/03/24
6127 hpux0700lfn:
6128 @$(MAKE) hpux-header
6129 @echo 'supporting: long filenames, networking, HDB uucp$(MESSAGE2)...'
6130 $(MAKE) hpux0700noopt KTARGET=$${KTARGET:-$(@)} \
6131 "CFLAGS = -DHPUXDEBUG -DHPUX -DHPUX7 -DTCPSOCKET -DSIG_V -DFNFLOAT \
6132 -DNOGETUSERSHELL -DNOSETBUF -DCK_REDIR -DCK_RTSCTS -DLONGFN \
6133 -DNO_DNS_SRV -DDIRENT -DHDBUUCP -DLOCK_DIR=\\\"/usr/spool/uucp\\\" \
6134 -DNOLONGLONG $(KFLAGS) -Wc,-Nw260,-Ns2040"
6135
6136 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
6137 "CFLAGS = -DHPUXDEBUG -DHPUX -DHPUX7 -DTCPSOCKET -DSIG_V -DFNFLOAT \
6138 -DNOGETUSERSHELL -DNOSETBUF -DCK_REDIR -DCK_RTSCTS -DLONGFN \
6139 -DNO_DNS_SRV -DDIRENT -DHDBUUCP -DLOCK_DIR=\\\"/usr/spool/uucp\\\" \
6140 -DNOLONGLONG $(KFLAGS) -Wc,-Nw260,-Ns2040 $(OFLAGS)" \
6141 "LNKFLAGS = -s" "LIBS = -lm -lBSD $(LIBS)"
6142
6143 #Exactly as above + curses.
6144 #OK: 2009/09/30
6145 hpux0700lfnc:
6146 @MESSAGE2=', curses' \
6147 $(MAKE) hpux0700lfn KTARGET=$${KTARGET:-$(@)} \
6148 "KFLAGS = -DCK_CURSES $(KFLAGS)" \
6149 "LIBS = -lcurses"
6150
6151 #Exactly as above hpux0700lfn but with compiler optimization:
6152 #OK: 2009/09/30
6153 hpux0700olfn:
6154 @MESSAGE1="with compiler optimization" \
6155 $(MAKE) hpux0700lfn KTARGET=$${KTARGET:-$(@)} \
6156 "KFLAGS = $(KFLAGS)" "OFLAGS = -O"
6157
6158 #Exactly as above hpux0700lfnc but with compiler optimization:
6159 #OK: 2009/09/30
6160 hpux0700olfnc:
6161 @MESSAGE1="with compiler optimization" \
6162 $(MAKE) hpux0700lfnc KTARGET=$${KTARGET:-$(@)} \
6163 "KFLAGS = $(KFLAGS)" "OFLAGS = -O"
6164
6165 #HP 9000 Series 300 or 400, HP-UX 8.0, long filenames and TCP/IP support.
6166 #This one should also work on 700/800, but without PA-specific optimization.
6167 #In case -DCK_RTSCTS and -DCK_REDIR make trouble, remove them.
6168 #NOTE: ckcpro.c, ckuusr.c and ckuus3.c blow up the optimizer, so don't optimize
6169 #them.
6170 #For HP-UX 8.0 on Motorola CPUs, you might have to reinstall your kernel with
6171 #maxdsiz >= 0x03000000. But if physical memory is small, that still will not
6172 #help much.
6173 #OK: 2009/10/01
6174 hpux0800:
6175 @$(MAKE) hpux-header
6176 @MESSAGE3=$${MESSAGE3:='TCP/IP'}; \
6177 echo "supporting: long filenames, $$MESSAGE3, HDB UUCP$(MESSAGE2)..."
6178 $(MAKE) -B "CC=$(CC)" "CC2=$(CC2)" KTARGET=$${KTARGET:-$(@)} \
6179 ckcpro.$(EXT) ckuusr.$(EXT) ckuus3.$(EXT) \
6180 "CFLAGS = -DCK_REDIR -DHPUXDEBUG -DHPUX -DHPUX8 -DRENAME -DSIG_V \
6181 -DNOSETBUF -DDIRENT -DCK_RTSCTS -DSTERMIOX -DLONGFN -DTCPSOCKET \
6182 -DHDBUUCP -DNO_DNS_SRV -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DFNFLOAT \
6183 -DNOLONGLONG $(KFLAGS)"
6184
6185 $(MAKE) -B "CC=$(CC)" "CC2=$(CC2)" xermit KTARGET=$${KTARGET:-$(@)} \
6186 "CFLAGS = -DCK_REDIR -DHPUXDEBUG -DHPUX -DHPUX8 -DRENAME -DSIG_V \
6187 -DNOSETBUF -DDIRENT -DCK_RTSCTS -DSTERMIOX -DLONGFN -DTCPSOCKET \
6188 -DHDBUUCP -DNO_DNS_SRV -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DFNFLOAT \
6189 -DNOLONGLONG -DNODCLENDUSERSHELL $(KFLAGS) $(OFLAGS)" \
6190 "LNKFLAGS = -s" "LIBS = -lm -lBSD $(LIBS)"
6191
6192 #Exactly as above hpux0800 + curses.
6193 #OK: 2009/10/01
6194 hpux0800c:
6195 @MESSAGE2=', curses' \
6196 $(MAKE) hpux0800 KTARGET=$${KTARGET:-$(@)} \
6197 "KFLAGS = $(KFLAGS) -DCK_CURSES" "LIBS = -lcurses"
6198
6199 #HP 9000 HP-UX 8.0, no TCP/IP because /usr/lib/libBSD.a can't be found,
6200 #or TCP/IP header files missing.
6201 #OK: 2009/10/01
6202 hpux0800notcp:
6203 @MESSAGE3='NO network, NO curses' \
6204 $(MAKE) "MAKE=$(MAKE)" hpux0800 KTARGET=$${KTARGET:-$(@)} \
6205 "KFLAGS = $(KFLAGS) -UTCPSOCKET"
6206
6207 #Now the same as above hpux0800 but with compiler optimization
6208 #OK: 2009/10/01
6209 hpux0800o:
6210 @MESSAGE1="with compiler optimization" \
6211 $(MAKE) hpux0800 KTARGET=$${KTARGET:-$(@)} \
6212 "KFLAGS = $(KFLAGS)" "OFLAGS = -O"
6213
6214 #Exactly as above hpux0800 + curses and with compiler optimization.
6215 #OK: 2009/10/01
6216 hpux0800oc:
6217 @MESSAGE1="with compiler optimization" \
6218 $(MAKE) hpux0800c KTARGET=$${KTARGET:-$(@)} \
6219 "KFLAGS = $(KFLAGS)" "OFLAGS = -O" "LIBS = -lcurses"
6220
6221 #Exactly as above hpux0800notcp but with compiler optimization
6222 #OK: 2009/10/01
6223 hpux0800onotcp:
6224 @MESSAGE1="with compiler optimization" \
6225 $(MAKE) "MAKE=$(MAKE)" hpux0800notcp KTARGET=$${KTARGET:-$(@)} \
6226 "KFLAGS = $(KFLAGS)" "OFLAGS = -O"
6227
6228 #HP 9000 Series 700 or 800, HP-UX 8.0, long filenames and TCP/IP support.
6229 # Like the previous entries, but with PA-RISC-specific optimization.
6230 #OK: 2009/10/01
6231 hpux0800pa:
6232 @MESSAGE1="with PA-RISC-specific optimization" \
6233 $(MAKE) hpux0800 KTARGET=$${KTARGET:-$(@)} \
6234 "KFLAGS = $(KFLAGS) +Obb1100"
6235
6236 #As above, but with curses.
6237 #OK: 2009/10/01
6238 hpux0800pac:
6239 @MESSAGE1="with PA-RISC-specific optimization" \
6240 $(MAKE) hpux0800c KTARGET=$${KTARGET:-$(@)} \
6241 "KFLAGS = $(KFLAGS) +Obb1100"
6242
6243 #As above, but compiled with GCC 2.3.3.
6244 #OK: 2009/10/01
6245 hpux0800pagcc:
6246 @MESSAGE1='using the gcc compiler' \
6247 $(MAKE) hpux0800 KTARGET=$${KTARGET:-$(@)} \
6248 "CC=gcc" "CC2=gcc" "KFLAGS = -funsigned-char $(KFLAGS)"
6249
6250 #HP-UX 9.0, 9.01, 9.03, 9.04, 9.05, 9.07, 9.10 ..., + TCP/IP + curses, fully
6251 #configured. Use this entry with the restricted compiler: no optimization, no
6252 #ANSI support. If you get unresolved sockets library references at link time,
6253 #then try adding -lBSD to LIBS, or else remove -DTCPSOCKET to build a version
6254 #without TCP/IP support.
6255 #
6256 #Please note that we have to add the compiler option +DA1.0/+DA1.1 to avoid
6257 #core-dumps for large arguments in IF MATCH. The man page says these options
6258 #are default but C-Kermit dumps core without them! Therefore keep them
6259 #untouched. If you want to overwrite or disable the +DA1.0/+DA1.1 option use
6260 #'make hpux0900 OFLAGS=...'. An other possibility would be to create a new
6261 #kernel with maxssiz >= 0x01185000 (default maxssiz=0x00800000).
6262 #OK: 2009/09/24
6263 hpux0900:
6264 @MESSAGE1A='. Read hpux0900 entry comments if you have trouble.' \
6265 $(MAKE) hpux-header
6266 @case `uname -m` in \
6267 */[34]*) KFLAGS='-DNOLONGLONG $(KFLAGS)' ;; \
6268 */7*) AFLAGS='+DA1.1' ;; \
6269 */8*) AFLAGS='+DA1.0' ;; \
6270 esac ; \
6271 OFLAGS=$${OFLAGS:-$$AFLAGS} ; \
6272 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
6273 "CFLAGS = -DHPUXDEBUG -DHPUX9 -DSTERMIOX -DDIRENT -DUTIMEH \
6274 -DNOSETBUF -DCK_CURSES -DTCPSOCKET -DRENAME -DCK_REDIR -DLONGFN \
6275 -DHDBUUCP -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DFNFLOAT \
6276 -DNODCLENDUSERSHELL $$KFLAGS $$OFLAGS" \
6277 "LNKFLAGS = -s" "LIBS = -lm -lcurses" "CC=$(CC)" "CC2=$(CC2)"
6278
6279 #Like hpux0900, but for the "value-added" compiler on all HP 9000 models.
6280 #Adds optimization and ANSI compilation:
6281 # +O2 makes smaller executable (= -O = Level-1 and global optimization)
6282 # +O3 adds interprocedural global optimization, makes bigger executable.
6283 # Please note: To support long-long we would need compiler switch '-Ae' but
6284 # this one works only on Risc systems. But the equivalant compiler flags
6285 # '-Aa -D_HPUX_SOURCE +e' works for Motorola and Risc.
6286 # If optimization fails on some modules, you can add:
6287 # +Obb<n>, +Olimit <n>, or +Onolimit, depending on your cc version,
6288 # where <n> is a number, e.g. +Obb1200. In other words, if you get optimizer
6289 # warnings, add (for example) +Obb1200; if you still get optimizer warnings,
6290 # increase the number. Repeat until warnings go away. If your compiler
6291 # permits it, use +Onolimit. If optimizer blows up on ckcpro.c, see next entry.
6292 # Reportedly, on some configurations, such as HP9000/425e or /340, perhaps
6293 # depending on the amount of main memory, this entry might fail no matter what
6294 # you do ("Out of Memory", "cc: Fatal error in /lib/c.c1", etc). In that case
6295 # use "make hpux0900" (no "o").
6296 #OK: 2009/09/24
6297 hpux0900o:
6298 @MESSAGE1=$${MESSAGE1:-"with compiler optimization"} \
6299 $(MAKE) hpux0900 KTARGET=$${KTARGET:-$(@)} \
6300 "KFLAGS = $(KFLAGS) -Aa -DCK_ANSIC -D_HPUX_SOURCE +O2 +e"
6301
6302 # For HP-UX 9.0 on Motorola CPUs, optimization of ckcpro.c tends to blow up
6303 # the compiler. You might have to reinstall your kernel with maxdsiz >=
6304 # 0x03000000. But if physical memory is small, that still will not help much.
6305 # In that case, use this entry to skip optimization of ckcpro.c. But for
6306 # C-Kermit 8.0.208 you need a kernel with maxdsiz >= 0x02000000 to compile an
6307 # optimized ckcftp.c.
6308 # Please note: To support long-long we would need compiler switch '-Ae' but
6309 # this one works only on Risc systems. But the equivalant compiler flags
6310 # '-Aa -D_HPUX_SOURCE +e' works for Motorola and Risc.
6311 hpux0900m68ko:
6312 @MESSAGE1='without compiler optimization for ckcpro.$(EXT) ...' \
6313 $(MAKE) hpux-header
6314 $(MAKE) ckuusr.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) \
6315 ckcftp.$(EXT) ckcpro.$(EXT) \
6316 "CFLAGS = -DHPUXDEBUG -DHPUX9 -DSTERMIOX -DDIRENT \
6317 -DNOSETBUF -DCK_CURSES -DTCPSOCKET -DRENAME -DCK_REDIR -DLONGFN \
6318 -DHDBUUCP -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DFNFLOAT $(KFLAGS)"
6319 @echo
6320 @MESSAGE1="with compiler optimization for the rest" \
6321 $(MAKE) hpux0900 KTARGET=$${KTARGET:-$(@)} \
6322 "KFLAGS = $(KFLAGS) -Aa -DCK_ANSIC -D_HPUX_SOURCE +O2 +e"
6323
6324 # Old name for hpux0900m68ko.
6325 hpux0900mot:
6326 $(MAKE) hpux0900m68ko KTARGET=$${KTARGET:-$(@)} "KFLAGS = $(KFLAGS)"
6327
6328 #Like hpux0900o but with additional model-700/800-specific optimizations.
6329 # +ESlit = consolidate strings in read-only memory.
6330 # +ESfsc = inline millicode calls when comparing pointers.
6331 hpux0900o700:
6332 @echo 'If you get optimizer warnings \c'
6333 @echo 'try "make hpux0900o700 KFLAGS=+Obb1200"'
6334 @MESSAGE1="with PA-RISC-specific optimizations" \
6335 $(MAKE) hpux0900o KTARGET=$${KTARGET:-$(@)} \
6336 "KFLAGS = $(KFLAGS) +ESlit +ESsfc"
6337
6338 #HP-UX 9.0, 9.01, 9.03, 9.04, 9.05, 9.07, 9.10 ..., + TCP/IP + curses, fully
6339 #configured, built with gcc, all models except 800 series.
6340 #You might need to add the include path for gcc headers, for example:
6341 # 'KFLAGS=-I/usr/gnu/lib/gcc-lib/hppa1.1-hp-hpux/2.4.5/include/'
6342 hpux0900gcc:
6343 @MESSAGE1='using the gcc compiler' \
6344 $(MAKE) hpux0900 KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
6345 "KFLAGS = -DCK_ANSIC $(KFLAGS)" \
6346 "OFLAGS = -funsigned-char -O2 $(OFLAGS)"
6347
6348 #HP-9000 HP-UX 10.0 + TCP/IP + curses, fully configured.
6349 #Use with restricted (bundled) compiler: no optimization, no ANSI support.
6350 #libcurses needed for fullscreen file xfer display in HP-UX 10.00 and 10.01.
6351 #libHcurses (NOT libcurses!) for fullscreen display, to work around fatal bugs
6352 #in HP-UX 10.10 and 10.20 curses. Maybe we could use lcurses for 10.30, since
6353 #the 10.10 curses problem is supposedly fixed in 10.30.
6354 # +DA1.0 = Generate PA-RISC 1.0 code that runs on both 700 and 800 models.
6355 # +DA1.1 = Generate PA-RISC 1.1 code that runs on both 700 and 800 models.
6356 # Note that HP-UX 10.20 and upwards do not support PA-RISC 1.0 systems.
6357 # And that as of Dec 2001, 11.00 and 11.11 are PA-only and 11.20 is IA64-only.
6358 # Later 11.2x releases are expected to be for both. Architecture can be
6359 # determined with the model command, at least in 10.20 and later...
6360 #For future releases, we need to include +DA1.1 for PA builds, so that a
6361 #binary built on PA 2.0 will still work on PA 1.1 machines, whereas +DA1.1
6362 #must NOT be included for IA64 builds.
6363 #4 Jan 2006 - Added Large File Support (LFS). Large files (>2GB) are
6364 #possible in HP-UX 10.20 and later. The only change is to add:
6365 # -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
6366 #to KFLAGS. These should be harmless in 10.00 and 10.10, if any of examples
6367 #of those still exist, but I have no way to test this hypothesis.
6368 #OK: 2009/11/16
6369 #As of version 9.0305 Alpha.06 we have to add KFLAG "-DNO_PTY_XOPEN_SOURCE"
6370 #to "make hpux1000" and "make hpux1000t" because "#define _XOPEN_SOURCE 500"
6371 #that was added to ckupty.c in 2014 triggers big problems with the HP C
6372 #compiler in default (i.e. pre-ANSI K&R) mode.
6373 hpux1000:
6374 @$(MAKE) hpux-header
6375 @LIBS='-lHcurses' ; \
6376 AFLAGS='+DA1.1' ; \
6377 case `uname -r` in \
6378 [AB].10.0*) KFLAGS='-DHPUX1000 $(KFLAGS)' ; \
6379 AFLAGS='+DA1.0' ; LIBS='-lcurses' ;; \
6380 [AB].10.1*) KFLAGS='-DHPUX1010 -D__HP_CURSES $(KFLAGS)' ; \
6381 ;; \
6382 [AB].10.2*) KFLAGS='-DHPUX1020 -D__HP_CURSES $(KFLAGS)' ; \
6383 ;; \
6384 [AB].10.3*) KFLAGS='-DHPUX1030 -D__HP_CURSES $(KFLAGS)' ; \
6385 ;; \
6386 [AB].10.?*) KFLAGS='-DHPUX10XX -D__HP_CURSES $(KFLAGS)' ; \
6387 ;; \
6388 [AB].11.0*) KFLAGS='-DHPUX1100 -D__HP_CURSES $(KFLAGS)' ; \
6389 ;; \
6390 [AB].11.1*) KFLAGS='-DHPUX1100 -D__HP_CURSES $(KFLAGS)' ; \
6391 ;; \
6392 [AB].11.?*) KFLAGS='-DHPUX1100 -D__HP_CURSES $(KFLAGS)' ; \
6393 AFLAGS='' ; LIBS='-lcurses' ;; \
6394 esac ; \
6395 #echo KTARGET="$${KTARGET:-$(@)}" ; \
6396 case "$${KTARGET:-$(@)}" in \
6397 hpux1000 | hpux1000t | \
6398 hpux1100 | hpux1100t) \
6399 KFLAGS="$$KFLAGS -DNO_PTY_XOPEN_SOURCE" ;; \
6400 esac ; \
6401 OFLAGS=$${OFLAGS:-$$AFLAGS} ; \
6402 $(MAKE) "SHELL=/usr/bin/sh" xermit KTARGET=$${KTARGET:-$(@)} \
6403 "CC=$(CC)" "CC2=$(CC2)" \
6404 "CFLAGS = -DHPUX10 -DDIRENT -DSTERMIOX -DCK_DSYSINI -DHDBUUCP \
6405 -DCK_CURSES -DCK_WREFRESH -DTCPSOCKET -DCK_REDIR -DRENAME -DFNFLOAT \
6406 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 \
6407 $$KFLAGS $$OFLAGS" \
6408 "LNKFLAGS=-s $(LNKFLAGS)" "LIBS = -lm $$LIBS $(KLIBS)"
6409
6410 # This is a kludge, copying hpux0900gcc and adapting hpux1000
6411 # (add CC and CC2, drop the A1.[0||1])
6412 # Builds w/ no compiler warnings but minimally tested.
6413 #
6414 #OK: 2009/09/21
6415 hpux1000gcc:
6416 @MESSAGE1="using the gcc compiler $(MESSAGE1)" \
6417 $(MAKE) hpux1000 KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
6418 "KFLAGS = $(KFLAGS)" "OFLAGS = -DCK_ANSIC -funsigned-char -O2"
6419
6420 # Trusted HP-UX 10
6421 # echo KFLAGS=$(KFLAGS) YTARGET YTARGET=$(YTARGET) $(XTARGET) ;
6422 hpux1000t:
6423 @case "$(KTARGET)" in \
6424 *+openssl | *+ssl) \
6425 KENTRY=hpux1000o+openssl ;; \
6426 *gcc) \
6427 KENTRY=hpux1000gcc ;; \
6428 *o+) KENTRY=hpux1000o+ ;; \
6429 *o) KENTRY=hpux1000o ;; \
6430 *) KENTRY=hpux1000 ;; \
6431 esac ; \
6432 MESSAGE1="and support for 'Trusted HP-UX'" \
6433 $(MAKE) $$KENTRY KTARGET=$${KTARGET:-$(@)} \
6434 "KFLAGS = $(KFLAGS) -DHPUX10_TRUSTED" "KLIBS=-lsec"
6435
6436 hpux1000to:
6437 $(MAKE) hpux1000t KTARGET=$${KTARGET:-$(@)}
6438
6439 hpux1000to+:
6440 $(MAKE) hpux1000t KTARGET=$${KTARGET:-$(@)}
6441
6442 hpux1000tgcc:
6443 $(MAKE) hpux1000t KTARGET=$${KTARGET:-$(@)}
6444
6445 hpux1000to+ssl hpux1000to+openssl:
6446 $(MAKE) hpux1000t KTARGET=$${KTARGET:-$(@)}
6447
6448 hpux1000tgcc+ssl hpux1000tgcc+openssl:
6449 $(MAKE) hpux1000t KTARGET=$${KTARGET:-$(@)}
6450
6451 #HP-9000 HP-UX 10.00 and higher with ANSI prototyping and optimization.
6452 #PA-RISC only, no Motorola or other hardware is supported in HP-UX 10.00++.
6453 #The unbundled optional compiler is required.
6454 #Your path should start with /opt/ansic/bin.
6455 # -Wl,-Fw = Remove stack unwind table (info used by debuggers).
6456 # +O2 makes a smaller executable (= -O = Level-1 and global optimization).
6457 # +O3 adds interprocedural global optimization, makes a bigger executable.
6458 # +Onolimit allows all modules to be optimized, no matter how complex. But:
6459 # (a) +Onolimit does not seem to always be there in HP-UX 10.00, and:
6460 # (b) some modules might take hours on low-memory and/or slow systems.
6461 # The following are PA-RISC-specific optimizations:
6462 # +ESlit = Consolidate strings in read-only memory.
6463 # +ESfsc = Inline millicode calls when comparing pointers.
6464 # You might need to configure your kernel for a maxdsiz of 0x0B000000 (176MB)
6465 # or greater to prevent the optimizer from running out of space.
6466 # December 2001: +ESlit +ESsfc removed because not supported on IA64.
6467 # Somebody who cares can use 'model' to see whether it's PA-RISC or IA64
6468 # and include the architecture-specific optimization flags. Also note:
6469 # +DA1.1 is PA-only. If this is included in in HP-UX 11.00 or later,
6470 # then +DS2.0 should be included too (but don't use +DS2.0 without +DA1.1,
6471 # or else the binary won't run on older PA hardware).
6472 #OK: 2009/09/21
6473 hpux1000o:
6474 @case `uname -m` in \
6475 ia64) ;; \
6476 *) MFLAGS='+ESlit +ESsfc' ;; \
6477 esac ; \
6478 MESSAGE1="with PA-RISC-specific optimizations $(MESSAGE1)" \
6479 $(MAKE) "SHELL=/usr/bin/sh" "PATH=/opt/ansic/bin:$$PATH" hpux1000 \
6480 KTARGET=$${KTARGET:-$(@)} "KFLAGS = $(KFLAGS) \
6481 -Ae -D_HPUX_SOURCE -DCK_ANSIC -DUTIMEH \
6482 +O2 -Wl,-Fw $$MFLAGS"
6483
6484 #Like hpux1000o but with "+Onolimit".
6485 #On 700 series set kernel parameter maxdsiz >= 0x0D000000 (=208MB).
6486 #Takes a long time.
6487 hpux1000o+:
6488 @MESSAGE1="and +Onolimit $(MESSAGE1)" KTARGET=$${KTARGET:-$(@)} \
6489 $(MAKE) hpux1000o \
6490 "KFLAGS = $(KFLAGS) +Onolimit"
6491
6492 #HP-UX 10.xx + 11.xx with optimizing ANSI compiler and OpenSSL.
6493 #Define SSLLIB and SSLINC appropriately for your OpenSSL installation.
6494 #To overwrite the default SSLLIB and SSLINC settings you can also use the
6495 #command-line variable KSSLLIB and KSSLINC like:
6496 #make hpux1000o+openssl KSSLLIB=-L/opt/openssl/lib KSSLINC=-I/...
6497 #To specify the path for the zlib library: KZLIBDIR=dir
6498 #This entry works for C-Kermit 8.0.206 on HP-UX 10.20 + 11.11
6499 #with OpenSSL 0.9.6 + 0.9.7
6500 #NOTE: an ANSI C compiler is required for the SSL interface. If you don't
6501 #have the HP Optimizing ANSI compiler, see the hpux1000gcc+openssl target
6502 #below.
6503 hpux1000o+ssl hpux1000o+openssl:
6504 @case "$(KTARGET)" in \
6505 *gcc+*) \
6506 KENTRY=hpux1000gcc ;; \
6507 *) KENTRY=hpux1000o ;; \
6508 esac ; \
6509 if test -n "$(KZLIBDIR)" ; then \
6510 ZLIBDIR="$(KZLIBDIR)" ; \
6511 else \
6512 ZLIBDIR='/usr/local/lib' ; \
6513 fi ; \
6514 case "$(KTARGET)" in \
6515 *-zlib*) ZLIBFLAG='' ; ZLIBOPT='' ;; \
6516 *) ZLIBFLAG='-DZLIB' ; ZLIBOPT="-L $$ZLIBDIR -lz" ;; \
6517 esac ; \
6518 case `openssl version` in \
6519 *0.9.7*) OPENSSLOPTION="-DOPENSSL_097" ;; \
6520 *0.9.8*) OPENSSLOPTION="-DOPENSSL_098" ;; \
6521 *1.[0-9].[0-9]*) OPENSSLOPTION="-DOPENSSL_100" ;; \
6522 *3.[0-9].[0-9]*) OPENSSLOPTION="-DOPENSSL_300" ;; \
6523 *) OPENSSLOPTION="" ;; \
6524 esac ; \
6525 SSLINC=$${KSSLINC:-$(SSLINC)}; \
6526 SSLLIB=$${KSSLLIB:-$(SSLLIB)}; \
6527 MESSAGE1="and with OpenSSL $(MESSAGE1)" \
6528 $(MAKE) $$KENTRY KTARGET=$${KTARGET:-$(@)} \
6529 KFLAGS="-DCK_AUTHENTICATION -DCK_SSL $$OPENSSLOPTION $$ZLIBFLAG \
6530 $$SSLINC $(KFLAGS)" \
6531 KLIBS="$(KLIBS) \
6532 $$SSLLIB -lssl -lcrypto \
6533 $$ZLIBOPT \
6534 "
6535
6536 # Ditto but without Zlib:
6537 hpux1000o+ssl-zlib hpux1000o+openssl-zlib:
6538 @MESSAGE1="but without Zlib $(MESSAGE1)" \
6539 $(MAKE) hpux1000o+ssl KTARGET=$${KTARGET:-$(@)}
6540
6541 #HP-UX 10.00 or higher with OpenSSL 0.9.7. Compiled with gcc.
6542 #From Chris Chaney, NEC America Inc. His instructions:
6543 # (1) Install gcc version 3.2.3 & binutils version 2.13.2
6544 # (used binary depot from http://hpux.cs.utah.edu/)
6545 # (2) Install gcc make version 3.80 from http://hpux.cs.utah.edu/
6546 #
6547 # or: gcc 2.9.2000-12-1 from "Linux to hp-ux 11.0/11i porting kit version 1.0
6548 # (2CD)" free from: http://www.software.hp.com
6549 #
6550 # (3) Install openSSL version 0.9.7b from http://www.software.hp.com
6551 # (4) Install flex version 2.5.4 from http://hpux.cs.utah.edu/
6552 # (5) Install gmp version 3.1.1 from http://hpux.cs.utah.edu/
6553 #
6554 #Note from Peter Eichhorn, assyst Munich. It works also without gcc make!
6555 hpux1000gcc+ssl hpux1000gcc+openssl:
6556 $(MAKE) hpux1000o+openssl KTARGET=$${KTARGET:-$(@)}
6557
6558 # Ditto but without Zlib:
6559 hpux1000gcc+ssl-zlib hpux1000gcc+openssl-zlib:
6560 $(MAKE) hpux1000o+openssl-zlib KTARGET=$${KTARGET:-$(@)}
6561
6562 # Same for HP-UX 11
6563 hpux1100o+ssl hpux1100o+openssl:
6564 $(MAKE) hpux1000o+openssl KTARGET=$${KTARGET:-$(@)}
6565
6566 #OK: 2009/09/26
6567 hpux1100gcc+ssl hpux1100gcc+openssl:
6568 $(MAKE) hpux1000gcc+openssl KTARGET=$${KTARGET:-$(@)}
6569
6570 hpux1100o+ssl-zlib hpux1100o+openssl-zlib:
6571 $(MAKE) hpux1000o+openssl-zlib KTARGET=$${KTARGET:-$(@)}
6572
6573 hpux1100gcc+ssl-zlib hpux1100gcc+openssl-zlib:
6574 $(MAKE) hpux1000gcc+openssl-zlib KTARGET=$${KTARGET:-$(@)}
6575
6576 # HP-UX 11
6577 # Note: these are 32-bit builds even on IA64.
6578 # Adding +DD64 to CFLAGS produces 64-bit object files,
6579 # but the linker fails to find the needed 64-bit libs.
6580 #OK: 2009/09/26
6581 hpux1100:
6582 $(MAKE) hpux1000 KTARGET=$${KTARGET:-$(@)}
6583
6584 #OK: 2009/09/26
6585 hpux1100o:
6586 $(MAKE) hpux1000o KTARGET=$${KTARGET:-$(@)}
6587
6588 hpux1100o+:
6589 $(MAKE) hpux1000o+ KTARGET=$${KTARGET:-$(@)}
6590
6591 #OK: 2009/09/26
6592 hpux1100gcc:
6593 $(MAKE) hpux1000gcc KTARGET=$${KTARGET:-$(@)}
6594
6595 # Trusted HP-UX 11
6596 hpux1100t:
6597 $(MAKE) hpux1000t KTARGET=$${KTARGET:-$(@)}
6598
6599 hpux1100to:
6600 $(MAKE) hpux1000to KTARGET=$${KTARGET:-$(@)}
6601
6602 hpux1100to+:
6603 $(MAKE) hpux1000to+ KTARGET=$${KTARGET:-$(@)}
6604
6605 hpux1100tgcc:
6606 $(MAKE) hpux1000tgcc KTARGET=$${KTARGET:-$(@)}
6607
6608 hpux1100to+ssl hpux1100to+openssl:
6609 $(MAKE) hpux1000to+openssl KTARGET=$${KTARGET:-$(@)}
6610
6611 hpux1100tgcc+ssl hpux1100tgcc+openssl:
6612 $(MAKE) hpux1000tgcc+openssl KTARGET=$${KTARGET:-$(@)}
6613
6614 #Regulus on CIE Systems 680/20
6615 cie:
6616 @echo 'Making C-Kermit $(CKVER) for CIE Systems 680/20 Regulus...'
6617 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
6618 "CFLAGS = -DATTSV -DNOFILEH -DCIE -DNOLEARN $(KFLAGS) -O" "LNKFLAGS ="
6619
6620 # Android.
6621 android:
6622 @echo Please use \"make -f android.mk\" to build C-Kermit for Android.
6623
6624 # Linux 1.2 or later with gcc, dynamic libraries, ncurses, TCP/IP.
6625 #
6626 # If your Linux system has curses rather than ncurses, use the linuxc
6627 # entry, or if that doesn't work, linuxnc.
6628 #
6629 # The Kermit "large memory model" is used by default to configure big packet
6630 # and script buffers, etc. For small-memory or limited-resource systems,
6631 # "make linux KFLAGS=-DNOBIGBUF".
6632 #
6633 # -DLINUXFSSTND (Linux File System Standard 1.2) gives UUCP lockfile /var/lock
6634 # with string pid. Remove this to get /usr/spool/uucp with int pid, used in
6635 # very early Linux versions. FSSTND 1.2 also says that the PID string in the
6636 # UUCP lock file has leading spaces. This is a change from FSSTND 1.0, which
6637 # used leading zeros. Add -DFSSTND10 to support FSSTND 1.0 instead of 1.2.
6638 # I hope subsequent editions of the file-system standard did not change these
6639 # again.
6640 #
6641 # Add -DOLINUXHISPEED (Old Linux High Speed support) to turn on an ugly kludge
6642 # in Linux 1.0 and earlier to support speeds of 57600 and 115200. Extremely
6643 # old Linux systems (pre-0.99pl15) will not support this. If OLINUXHISPEED is
6644 # not defined, then only the standard POSIX termios methods of setting the port
6645 # speed will be used, and in this case speeds can be as high as 460800 in most
6646 # modern Linux versions.
6647 #
6648 # -DCK_POSIX_SIG (POSIX signal handling) is good for Linux releases back to at
6649 # least 0.99.14; if it causes trouble for you, remove it from the CFLAGS.
6650 #
6651 # -pipe removes the need for temp files - remove it if it causes trouble.
6652 #
6653 # -funsigned-char makes all characters unsigned, as they should have been
6654 # in the first place.
6655 #
6656 # Add -DCK_DSYSINI if you want a shared system-wide init file.
6657 #
6658 # See http://www.columbia.edu/kermit/ckubwr.html about -DNOCOTFMC.
6659 # Better still, should read the entire Linux section of that document.
6660 #
6661 # The "linuxa" entry can be referenced directly on LIBC systems, but not
6662 # GLIBC, where -lcrypt is required. The "make linux" entry should normally
6663 # be used for all builds on all Linux distributions unless you have special
6664 # requirements, in which case keep reading. CK_NEWTERM added after 7.0b04
6665 # due to new complaints about ncurses changing buffering of tty.
6666 #
6667 # By the way, the trick for testing if a lib exists ("if ld -lncurses ...")
6668 # might seem crazy but it works everywhere, whereas the more appropriate test
6669 # ("if locate libncurses") is not necessarily available on all Linuxes.
6670 #
6671 # Base CFLAGS shared by every plain Linux build. Also used by
6672 # linux+ssl+musl, which cannot go through linux/linuxa's
6673 # autodetection (see the comment on that target), but still
6674 # starts from the same baseline flags.
6675 LINUXCFLAGS = -DLINUX -pipe -funsigned-char -DFNFLOAT \
6676 -DCK_POSIX_SIG -DCK_NEWTERM -DTCPSOCKET -DLINUXFSSTND -DNOCOTFMC \
6677 -DPOSIX -DUSE_STRERROR
6678
6679 linuxa:
6680 @echo 'Making C-Kermit $(CKVER) for Linux 1.2 or later...'
6681 @echo 'IMPORTANT: Read the comments in the linux section of the'
6682 @echo 'makefile if you have trouble.'
6683 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC=$(CC)" "CC2=$(CC)" \
6684 "CFLAGS = $(LINUXCFLAGS) $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
6685 "LIBS = $(LIBS) -lm"
6686
6687 # As above but with profiling
6688 linuxp:
6689 $(MAKE) linuxa KTARGET=$${KTARGET:-$(@)} "KFLAGS=$(KFLAGS) -pg" \
6690 "LIBS=-pg -lcrypt -lresolv"
6691
6692 #Linux. Completely new target: 18 January 2016. No more looking in 100
6693 #different places for libraries, let ld do it, since it knows what libraries
6694 #it's going to use. If this target fails to work somewhere, use the
6695 #'linux-2015' target just below this one.
6696 #
6697 #This entry should work for any Linux distribution on any platform,
6698 #32-bit or 64-bit, except for extremely ancient ones. Automatically detects:
6699 # . curses, ncurses, or no curses
6700 # . Old versus new pty handling (new == glibc 2.1++)
6701 # . Presence or absence of libcrypt and <crypt.h>
6702 # . Presence or absence of libresolv
6703 # . Presence of various serial port locking schemes
6704 # . Transitional Long File API for 32-bit platforms (SUS V2 UNIX 98 LFS).
6705 #
6706 #Long file support for 32-bit builds added in 8.0.212 - if features.h contains
6707 #__USE_LARGEFILE64 then we set the flags that must be set before reading any
6708 #header files; on 32-bit platforms such as i386, this produces a 32-bit build
6709 #capable of accessing, sending, receiving, and managing long (> 2GB) files.
6710 #On 64-bit platforms, it does no harm.
6711 #
6712 # The clause regarding errno includes "extern int errno" in the source files
6713 # by supplying a symbol DCL_ERRNO if errno is not declared or defined in any
6714 # header files in the /usr/include tree.
6715 #
6716 # This target uses the computer's default C compiler, whatever it is
6717 # (usually gcc, but beware: it might also be clang, which is extremely
6718 # hostile to "old" code.
6719 #
6720 linux gnu-linux:
6721 @echo "Making C-Kermit for `uname -spm` $(CC) \
6722 `$(CC) -dumpversion`..."; \
6723 # Dummy comment \
6724 DCL_ERRNO='-DDCL_ERRNO'; \
6725 if egrep -r \
6726 "(int *errno|\#define *errno|\# *define *errno)" /usr/include/* \
6727 > /dev/null 2> /dev/null; \
6728 then DCL_ERRNO=''; \
6729 fi ; \
6730 if test `grep grantpt /usr/include/*.h | wc -l` -gt 0; \
6731 then if test -c /dev/ptmx; \
6732 then HAVE_PTMX='-DHAVE_PTMX'; \
6733 else HAVE_PTMX=''; \
6734 fi; \
6735 fi ; \
6736 HAVE_OPENPTY=''; \
6737 if test `grep openpty /usr/include/*.h | wc -l` -gt 0; then \
6738 HAVE_OPENPTY='-DHAVE_OPENPTY'; \
6739 fi; \
6740 if test -n '$$HAVE_OPENPTY'; \
6741 then if ld -lutil > /dev/null 2> /dev/null; then \
6742 LIB_UTIL='-lutil'; \
6743 else \
6744 LIB_UTIL=''; \
6745 fi; \
6746 fi; \
6747 HAVE_LIBCURSES=''; \
6748 HAVE_CURSES=''; \
6749 if ld -lncurses > /dev/null 2> /dev/null; then \
6750 HAVE_LIBCURSES='-lncurses'; \
6751 if test -f /usr/include/ncurses.h; then \
6752 HAVE_CURSES='-DCK_NCURSES -I/usr/include/ncurses'; \
6753 else \
6754 HAVE_LIBCURSES=''; \
6755 fi; \
6756 fi; \
6757 if test -z '$$HAVE_LIBCURSES'; then \
6758 if ld -lcurses > /dev/null 2> /dev/null; then \
6759 HAVE_LIBCURSES='-lcurses'; \
6760 if test -f /usr/include/curses.h; then \
6761 HAVE_CURSES='-DCK_CURSES -I/usr/include/curses'; \
6762 else \
6763 HAVE_LIBCURSES=''; \
6764 fi; \
6765 fi; \
6766 fi; \
6767 HAVE_LIBTINFO=''; \
6768 if ld -ltinfo > /dev/null 2> /dev/null; then \
6769 HAVE_LIBTINFO='-ltinfo'; \
6770 fi; \
6771 HAVE_RESOLV=''; \
6772 if ld -lresolv > /dev/null 2> /dev/null; then \
6773 HAVE_RESOLV='-lresolv'; \
6774 fi; \
6775 HAVE_CRYPT=''; \
6776 HAVE_CRYPT_H=''; \
6777 if ld -lcrypt > /dev/null 2> /dev/null; then \
6778 if test -f /usr/include/crypt.h; then \
6779 HAVE_CRYPT_H='-DHAVE_CRYPT_H'; \
6780 HAVE_CRYPT='-lcrypt'; \
6781 fi; \
6782 fi; \
6783 if test -f /usr/include/baudboy.h ; \
6784 then HAVE_BAUDBOY='-DHAVE_BAUDBOY' ; \
6785 else HAVE_BAUDBOY=''; \
6786 fi; \
6787 if test -n '$$HAVE_BAUDBOY' || test -f /usr/include/ttylock.h; \
6788 then HAVE_LOCKDEV='-DHAVE_LOCKDEV' ; \
6789 else HAVE_LOCKDEV='' ; \
6790 fi ; \
6791 if test -n '$$HAVE_LOCKDEV'; then \
6792 if ld -llockdev > /dev/null 2> /dev/null; then \
6793 HAVE_LIBLOCKDEV='-llockdev'; \
6794 else \
6795 HAVE_LOCKDEV=''; \
6796 fi; \
6797 fi; \
6798 if grep __USE_LARGEFILE64 /usr/include/features.h > /dev/null; \
6799 then HAVE_LARGEFILES='-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'; \
6800 else HAVE_LARGEFILES=''; \
6801 fi; \
6802 if test -f /usr/include/linux/vm_sockets.h; \
6803 then HAVE_VM_SOCKETS_H='-DCK_HAVE_VM_SOCKETS_H'; \
6804 else HAVE_VM_SOCKETS_H=''; \
6805 fi; \
6806 $(MAKE) KTARGET=$${KTARGET:-$(@)} \
6807 "KFLAGS=$$HAVE_CURSES $$HAVE_PTMX $$HAVE_LOCKDEV $$HAVE_CRYPT_H \
6808 $$HAVE_BAUDBOY $$HAVE_OPENPTY $$HAVE_LARGEFILES $$HAVE_VM_SOCKETS_H \
6809 $(KFLAGS)" \
6810 "LIBS=$(LIBS) $$LIB_UTIL \
6811 $$HAVE_LIBCURSES $$HAVE_LIBTINFO $$HAVE_RESOLV $$HAVE_CRYPT \
6812 $$HAVE_LOCKDEV" \
6813 linuxa
6814
6815 # Force compilation with gcc
6816 linuxgcc:
6817 $(MAKE) "CC=gcc" "CC2=gcc" linux
6818
6819 # Force compilation with clang
6820 linux-clang linuxclang:
6821 $(MAKE) CC=clang CC2=clang linux
6822
6823 # Linux clang compilation with implicit function declaration warnings.
6824 # Clang 12 or later required to see the warnings. In clang 16 (at least
6825 # the first release of it) the implicit function declaration is fatal error.
6826 linux-clang-wimplicit:
6827 $(MAKE) CC=clang CC2=clang -Wimplicit-function-declaration linux
6828
6829 # Linux clang compilation in C89 mode...
6830 # For me this bombed out instantly in clang 3.4.2 with "ckcsig.h:52:9:
6831 # typedef sigjmp_buf ckjmpbuf; error: unknown type name 'sigjmp_buf'"
6832 # It happened on both RHEL 6.1 (old) and Ubuntu 20.04.1 (recent).
6833 # Needs testing in clang 12 or later, and especially in Clang 16.
6834 linux-clang-c89:
6835 $(MAKE) "CC=clang -std=c89" "CC2=clang" linux
6836
6837 # Linux clang compilation in gnu89 mode. For me this compiled successfully
6838 # in clang 3.4.2 but with lots of "if && ||" warnings.
6839 # Ditto in clang 10.0.0 but no "if && ||" warnings.
6840 # Needs testing in clang 12 or later.
6841 linux-clang-gnu89:
6842 $(MAKE) "CC=clang -std=gnu89" "CC2=clang" linux
6843
6844 # Minimum size for Linux - many features deselected.
6845 # No interactive commands, no scripting, no character sets, etc.
6846 # About 1/7 the size of the normal version.
6847 # 3 November 2022
6848 linuxmin:
6849 @echo 'Making C-Kermit $(CKVER) for Linux many features deselected..'
6850 $(MAKE) linux "KFLAGS=-DV7MIN"
6851
6852 #PREVIOUS LINUX TARGET
6853 #Use this target if you have trouble with "make linux".
6854 #This is the previous target for Linux, retired at the end of 2015.
6855 #As you can see the tests for curses/ncurses and other libraries and
6856 #header files were getting ridiculous and were only going to get worse
6857 #as Linux versions proliferated.
6858 #
6859 #The HAVE_PTMX test was previously "if test -c /dev/ptmx" but this was
6860 #not sufficient for Debian 2.1, because although it had /dev/ptmx, it did not
6861 #have grantpt(), unlockpt(), or ptsname(), so has been changed to look for a
6862 #grantpt() prototype in the header files. Modified in 8.0.206 to allow for
6863 #libraries that contain .so's but no .a's, e.g. Mandrake 9.0.
6864 #HAVE_BAUDBOY added in 8.0.210 for Red Hat -- it's like AIX ttylock().
6865 #Modified 17 Aug 2005 to use openpty() if available because the other stuff
6866 #dumps core in 64-bit ia64 and x86_64 builds.
6867 #
6868 #Added HAVE_LOCKDEV on openSuSE >= 11.3, which uses ttylock directly instead
6869 #of baudboy 2010/08/23
6870 linux-2015:
6871 @if test \
6872 `grep grantpt /usr/include/*.h /usr/include/sys/*.h | wc -l` -gt 0; \
6873 then if test -c /dev/ptmx; then HAVE_PTMX='-DHAVE_PTMX'; \
6874 else HAVE_PTMX=''; fi; fi ; \
6875 if test `grep openpty /usr/include/pty.h | wc -l` -gt 0; \
6876 then HAVE_OPENPTY='-DHAVE_OPENPTY'; \
6877 else HAVE_OPENPTY=''; fi ; \
6878 HAVE_LIBCURSES=''; \
6879 if test -f /lib64/libncurses.so.5 || \
6880 test -f /lib64/libncurses.so || \
6881 test -f /lib64/libncurses.a; then \
6882 HAVE_LIBCURSES='-lncurses'; \
6883 else if test -f /usr/lib64/libncurses.so || \
6884 test -f /usr/lib/libncurses.a || \
6885 test -f /usr/lib64/libncurses.so.5 || \
6886 test -f /usr/lib/libncurses.so; then \
6887 HAVE_LIBCURSES='-lncurses'; \
6888 else if test -f /usr/lib/$(MULTIARCH)/libncurses.so || \
6889 test -f /usr/lib/$(MULTIARCH)/libncurses.a || \
6890 test -f /usr/lib/$(MULTIARCH)/libncurses.so; then \
6891 HAVE_LIBCURSES='-lncurses'; \
6892 else if test -f /usr/lib64/libcurses.so || \
6893 test -f /usr/lib/libcurses.a || \
6894 test -f /usr/lib/libcurses.so; then \
6895 HAVE_LIBCURSES='-lcurses'; fi; fi; fi; fi; \
6896 HAVE_CURSES=''; \
6897 if test -n '$$HAVE_LIBCURSES'; then \
6898 if test -f /usr/include/ncurses.h; then \
6899 HAVE_CURSES='-DCK_NCURSES -I/usr/include/ncurses'; \
6900 else if test -f /usr/include/curses.h; then \
6901 HAVE_CURSES='-DCK_CURSES'; \
6902 else HAVE_LIBCURSES=''; \
6903 fi; fi; fi; \
6904 if test -f /usr/include/baudboy.h || test -f /usr/include/ttylock.h; \
6905 then HAVE_LOCKDEV='-DHAVE_LOCKDEV' ; \
6906 else HAVE_LOCKDEV='' ; fi ; \
6907 if test -f /usr/include/baudboy.h ; \
6908 then HAVE_BAUDBOY='-DHAVE_BAUDBOY' ; \
6909 else HAVE_BAUDBOY='' ; fi ; \
6910 $(MAKE) KTARGET=$${KTARGET:-$(@)} \
6911 "KFLAGS=$$HAVE_CURSES $$HAVE_PTMX $$HAVE_LOCKDEV \
6912 $$HAVE_BAUDBOY $$HAVE_OPENPTY \
6913 `grep __USE_LARGEFILE64 /usr/include/features.h > /dev/null && \
6914 echo '-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'` \
6915 `if test -f /usr/include/crypt.h; then echo -DHAVE_CRYPT_H; fi` \
6916 $(KFLAGS)" \
6917 "LIBS=$(LIBS) $$HAVE_LIBCURSES \
6918 `if test -n '$$HAVE_OPENPTY'; then echo -lutil; fi` \
6919 `if test -f /usr/lib64/libresolv.a || test -f /usr/lib64/libresolv.so \
6920 || test -f /usr/lib/libresolv.a || test -f /usr/lib/libresolv.so \
6921 || test -f /usr/lib/i386-linux-gnu/libresolv.a \
6922 || test -f /usr/lib/i386-linux-gnu/libresolv.so \
6923 || ls /lib/$(MULTIARCH)/libresolv.* > /dev/null 2> /dev/null \
6924 || ls /lib/x86_64-linux-gnu/libresolv.* > /dev/null 2> /dev/null; \
6925 then echo -lresolv; fi` \
6926 `if test -f /usr/lib64/libcrypt.a || test -f /usr/lib64/libcrypt.so \
6927 || test -f /usr/lib/libcrypt.a || test -f /usr/lib/libcrypt.so \
6928 || ls /lib/$(MULTIARCH)/libcrypt.* > /dev/null 2> /dev/null \
6929 || ls /lib/x86_64-linux-gnu/libcrypt.* > /dev/null 2> /dev/null; \
6930 then echo -lcrypt; fi` \
6931 `if test -f /usr/lib64/liblockdev.a \
6932 || test -f /usr/lib64/liblockdev.so \
6933 || test -f /usr/lib/liblockdev.a \
6934 || test -f /usr/lib/liblockdev.so \
6935 || ls /usr/lib/$(MULTIARCH)/liblockdev.* > /dev/null 2> /dev/null; \
6936 then echo -llockdev; fi`" \
6937 linuxa
6938
6939 # Linux with "legacy" and "deprecated" features removed:
6940 # FTP, Telnet, Rlogin, Wtmp logging. And arrow keys, which depend on
6941 # a deprecated API that as yet has no undeprecated replacement.
6942 linux-nodeprecated: \
6943 # Dummy comment \
6944 @echo 'Making C-Kermit $(CKVER) for Linux without deprecated features'
6945 $(MAKE) linux KTARGET=$${KTARGET:-$(@)} \
6946 KFLAGS="-DNODEPRECATED $(KFLAGS)" \
6947 "LNKFLAGS = $(LNKFLAGS)"
6948
6949 # Linux with pedantic warnings (force gcc)
6950 linux-pedantic:
6951 @echo Making C-Kermit $(CKVER) for Linux `uname -r` gcc pedantic...
6952 $(MAKE) "CC=gcc" "CC2=gcc" linux KTARGET=$${KTARGET:-$(@)} \
6953 KFLAGS="-pedantic $(KFLAGS)" \
6954 "LNKFLAGS = $(LNKFLAGS)"
6955
6956 # Linux with no TCP/IP support but with the external ssh client
6957 linux-notcp:
6958 @echo Making C-Kermit $(CKVER) for Linux `uname -r` NO TCP/IP...
6959 $(MAKE) linux KTARGET=$${KTARGET:-$(@)} \
6960 KFLAGS="-DNOTCPIP -DSSHCMD -DANYSSH $(KFLAGS)" \
6961 "LNKFLAGS = $(LNKFLAGS)"
6962
6963 # Linux with no TCP/IP support but with the external ssh client
6964 linux-nonet:
6965 @echo Making C-Kermit $(CKVER) for Linux `uname -r` NO NETWORKING...
6966 $(MAKE) linux KTARGET=$${KTARGET:-$(@)} \
6967 KFLAGS="-DNONET -DNONETDIR -DSSHCMD -DANYSSH $(KFLAGS)" \
6968 "LNKFLAGS = $(LNKFLAGS)"
6969
6970 # Linux + Shadow passwords + PAM
6971 # OK 2011/06/18
6972 linux+shadow+pam:
6973 @echo 'Making C-Kermit $(CKVER) for Linux+Shadow+PAM...'
6974 $(MAKE) linux KTARGET=$${KTARGET:-$(@)} \
6975 KFLAGS="-DCK_SHADOW -DCK_PAM $(KFLAGS)" \
6976 "LNKFLAGS = $(LNKFLAGS)" \
6977 "LIBS = -lpam"
6978
6979 # Linux systems that have no <sys/select.h>.
6980 # (not tested in recent years, perhaps no longer needed)
6981 linuxns:
6982 $(MAKE) linux KTARGET=$${KTARGET:-$(@)} KFLAGS=-DNO_SYS_SELECT_H
6983
6984 # Linux build with no curses (restored 24 November 2022)
6985 linuxnc:
6986 $(MAKE) linux KTARGET=$${KTARGET:-$(@)} \
6987 KFLAGS="-DNOCURSES -UCK_CURSES"
6988
6989 # Linux-script-only:
6990 # A minimum-size version for Linux that does only scripting and
6991 # serial communication -- no networks, no file transfer, no security.
6992 # OK 2011/06/18 // 2022/10/14: compiles but various commands don't work.
6993 linuxso:
6994 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
6995 "CFLAGS = -O -DLINUX -pipe -funsigned-char -DPOSIX -DCK_POSIX_SIG \
6996 -DLINUXFSSTND -DNOCOTFMC -DNOXFER -DNODEBUG -DNOCSETS -DNOHELP \
6997 -DNONET -DMINIDIAL -DNOSCRIPT -DNOIKSD -DNOPUSH $(KFLAGS)" \
6998 "LNKFLAGS = $(LNKFLAGS)" "LIBS = "
6999
7000 # Secure targets for Linux. These work on RHAS4, RHEL4, and RHEL5,
7001 # unlike some of the older targets that follow. They hook into the main Linux
7002 # target so we pick up all the other new stuff - large files, baudboy.h, the
7003 # appropriate pty interface, etc.
7004
7005 # Linux with Kerberos 5.
7006 # Use "make linux+krb5 KFLAGS=-DNO_KRB5_INIT_ETS" if necessary.
7007 #OK 2011/06/16 on Fedora 14 with:
7008 # make linux+krb5 "LIBS=$LIBS /lib/libk5crypto.so.3 /lib/libcom_err.so.2"
7009 # On RHEL5.x: make linux+krb5 -UCK_DES
7010 # On RHEL6.6: make linux+krb5 "K5LIB=-L /lib64"
7011 # This one tends to have trouble finding all its pieces.
7012 # As of C-Kermit 10.0 Beta.08 this target was renamed from linux+krb5
7013 # to linux+krb5-old and the next target, originally called linux+krb5-new
7014 # is now linux+krb5, and should work in most cases.
7015 linux+krb5-old:
7016 @echo 'Making C-Kermit $(CKVER) for Linux with Kerberos 5...'
7017 @case `openssl version` in \
7018 *0.9.7*) OPENSSLOPTION="-DOPENSSL_097" ;; \
7019 *0.9.8*) OPENSSLOPTION="-DOPENSSL_098" ;; \
7020 *1.[0-9].[0-9]*) OPENSSLOPTION="-DOPENSSL_100" ;; \
7021 *3.[0-9].[0-9]*) OPENSSLOPTION="-DOPENSSL_300" ;; \
7022 *) OPENSSLOPTION="" ;; \
7023 esac; \
7024 HAVE_DES=''; \
7025 DES_LIB=''; \
7026 if ls /usr/lib/libdes* > /dev/null 2> /dev/null || \
7027 ls $(SSLLIB)/libdes* > /dev/null 2> /dev/null; then \
7028 DES_LIB='-ldes425'; \
7029 HAVE_DES='-DCK_DES -DLIBDES'; \
7030 echo "HAVE DES"; \
7031 else echo "NO DES"; \
7032 fi; \
7033 K5CRYPTO=''; \
7034 if ls /lib/libk5crypto* > /dev/null 2> /dev/null; then \
7035 K5CRYPTO='-lk5crypto'; \
7036 else if ls /usr/lib/libk5crypto* > /dev/null 2> /dev/null; then \
7037 K5CRYPTO='-lk5crypto'; \
7038 else if ls /usr/lib64/libk5crypto* > /dev/null 2> /dev/null; then \
7039 K5CRYPTO='-lk5crypto'; \
7040 else if ls usr/lib/x86_64-linux-gnu/libk5crypto* \
7041 > /dev/null 2> /dev/null; then \
7042 K5CRYPTO='-lk5crypto'; \
7043 fi; fi; fi; fi; \
7044 COM_ERR=''; \
7045 if ls /lib/libcom_err* > /dev/null 2> /dev/null; then \
7046 COM_ERR='-lcom_err'; \
7047 else if ls /lib64/libcom_err* > /dev/null 2> /dev/null; then \
7048 COM_ERR='-lcom_err'; \
7049 else if ls /x86_64-linux-gnu/libcom_err* >/dev/null 2>/dev/null; then \
7050 COM_ERR='-lcom_err'; \
7051 fi; fi; fi; \
7052 GSSAPILIB='-lgssapi'; \
7053 if ls /lib/libgssapi_krb5* > /dev/null 2> /dev/null; then \
7054 GSSAPILIB='-lgssapi_krb5'; \
7055 else if ls /usr/lib/libgssapi_krb5* > /dev/null 2> /dev/null; then \
7056 GSSAPILIB='-lgssapi_krb5'; \
7057 else if ls /usr/lib/x86_64-linux-gnu/libgssapi_krb5* > \
7058 /dev/null 2> /dev/null; then \
7059 GSSAPILIB='-lgssapi_krb5'; \
7060 else K5DIR=`echo $(K5LIB) | sed 's|-L||'`; \
7061 if ls $$K5DIR/libgssapi_krb5* > /dev/null 2> /dev/null; then \
7062 GSSAPILIB='-lgssapi_krb5'; \
7063 fi; fi; fi; fi; \
7064 $(MAKE) linux KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
7065 "KFLAGS= -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 $$OPENSSLOPTION \
7066 -DCK_ENCRYPTION $$HAVE_DES $(K5INC) $(K5INC)/krb5 \
7067 -I/usr/include/et $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
7068 "LIBS = $(K5LIB) $$DES_LIB -lcrypto $$COM_ERR \
7069 $$GSSAPILIB -lkrb5 $$K5CRYPTO $(LIBS)"
7070
7071 # The previous linux+krb was a big mess, with hardwired pathnames for all the
7072 # possible places the Kerberos libs might be. This version just relies on the
7073 # linker to find them. It also handles the frequent situation where the
7074 # gssapi library is install but the linker doesn't know about it. Thanks to
7075 # Peter Eichhorn for a great deal of help with the syntax in the gssapi
7076 # section! - fdc 24 November 2022 (renamed to linux+krb5 15 December 2022)
7077 linux+krb5 linux+krb5-new:
7078 @echo 'NEW Making C-Kermit $(CKVER) for Linux with Kerberos 5...'
7079 @case `openssl version` in \
7080 *0.9.7*) OPENSSLOPTION="-DOPENSSL_097" ;; \
7081 *0.9.8*) OPENSSLOPTION="-DOPENSSL_098" ;; \
7082 *1.[0-9].[0-9]*) OPENSSLOPTION="-DOPENSSL_100" ;; \
7083 *3.[0-9].[0-9]*) OPENSSLOPTION="-DOPENSSL_300" ;; \
7084 *) OPENSSLOPTION="" ;; \
7085 esac; \
7086 K5LIB=''; \
7087 if ld -lkrb5 > /dev/null 2> /dev/null; then \
7088 K5LIB='-lkrb5'; else \
7089 echo "Failed - Can't find Kerberos 5 library" ; exit 2; \
7090 fi; \
7091 KRB5_H=''; \
7092 if test -f /usr/include/krb5/krb.h; then \
7093 KRB5_H=-DKRB5_H; \
7094 fi; \
7095 CRYPT_H=''; \
7096 if test -f /usr/include/crypt.h; then \
7097 CRYPT_H='-DCRYPT_H'; \
7098 fi; \
7099 LIBCRYPT=''; \
7100 if ld -lcrypt > /dev/null 2> /dev/null; then \
7101 LIBCRYPT='-lcrypt'; \
7102 fi; \
7103 LIBCRYPTO=''; \
7104 if ld -lcrypto > /dev/null 2> /dev/null; then \
7105 LIBCRYPTO='-lcrypto'; \
7106 fi; \
7107 LIBK5CRYPTO=''; \
7108 if ld -lk5crypto > /dev/null 2> /dev/null; then \
7109 LIBK5CRYPTO='-lk5crypto'; \
7110 fi; \
7111 HAVE_DES=''; \
7112 if ld -ldes > /dev/null 2> /dev/null; then \
7113 LIBDES='-ldes'; \
7114 HAVE_DES='-DCK_DES -DLIBDES'; \
7115 fi; \
7116 XX_COM_ERR=H''; \
7117 K5_COM_ERR_H=''; \
7118 ET_COM_ERR_H=''; \
7119 COM_ERR_LIB=''; \
7120 if ld -lcom_err > /dev/null 2> /dev/null; then \
7121 if test -f /usr/include/krb5/com_err.h; then \
7122 COM_ERR_LIB='-lcom_err'; \
7123 COM_ERR_H='-DK5_COM_ERR_H'; \
7124 else if test -f /usr/include/et/com_err.h; then \
7125 COM_ERR_LIB='-lcom_err'; \
7126 COM_ERR_H='-DET_COM_ERR_H'; \
7127 else if test -f /usr/include/com_err.h; then \
7128 COM_ERR_LIB='-lcom_err'; \
7129 COM_ERR_H='-DXX_COM_ERR_H'; \
7130 fi; \
7131 fi; \
7132 fi; \
7133 fi; \
7134 GSSAPILIB=''; \
7135 HAVE_GSSAPI=''; \
7136 if name=`locate libgssapi | grep ^/usr/lib | head -1`; then \
7137 echo name=$$name; \
7138 path=$${name%/*}; \
7139 echo PATH=$$path; \
7140 GSSAPILIB=$$(basename $$name); \
7141 echo GSSAPILIB=$$GSSAPILIB ; \
7142 HAVE_GSSAPI='-DHAVE_GSSAPI'; \
7143 fi ; \
7144 if [ -z "$$LD_LIBRARY_PATH" ] ; then \
7145 export LD_LIBRARY_PATH=$$path ; else \
7146 export LD_LIBRARY_PATH=$$LD_LIBRARY_PATH:$$path; \
7147 HAVE_GSSAPI='-DHAVE_GSSAPI'; \
7148 fi; \
7149 if ls $${path}/libgssapi_krb5.* >/dev/null 2>/dev/null; then \
7150 echo HAVE libgssapi_krb5 ; \
7151 GSSAPILIB=-lgssapi_krb5 ; else \
7152 if ls $${path}/libgssapi.* >/dev/null 2>/dev/null; then \
7153 GSSAPILIB=-lgssapi ; \
7154 fi; \
7155 fi; \
7156 echo GSSAPILIB=$GSSAPILIB; \
7157 echo LD_LIBRARY_PATH=$$LD_LIBRARY_PATH; \
7158 if ld -lggssapi_krb5 > /dev/null 2> /dev/null; then \
7159 GSSAPILIB='-lgssapi_krb5'; \
7160 HAVE_GSSAPI='-DHAVE_GSSAPI'; \
7161 echo GSSAPILIB-1=$$GSSAPILIB; \
7162 else if ld -lggssapi_krb5 > /dev/null 2> /dev/null; then \
7163 GSSAPILIB='-lgssapi'; \
7164 HAVE_GSSAPI='-DHAVE_GSSAPI'; \
7165 echo GSSAPILIB-2=$$GSSAPILIB; \
7166 fi; \
7167 fi; \
7168 echo GSSAPILIB=$$GSSAPILIB; \
7169 $(MAKE) linux KTARGET=$${KTARGET:-$(@)} "CC = $(CC)" "CC2 = $(CC2)" \
7170 "KFLAGS= -DCK_AUTHENTICATION -DCK_ENCRYPTION -DCK_KERBEROS -DKRB5 \
7171 $$HAVE_GSSAPI $$HAVE_DES $$OPENSSLOPTION $$CRYPT_H $$COM_ERR_H \
7172 $$KRB5_H $(KFLAGS)" \
7173 "LNKFLAGS = $(LNKFLAGS)" \
7174 "LIBS = $$LIBCRYPT $$LIBCRYPTO $$LIBK5CRYPTO $$LIBDES $$COM_ERR_LIB \
7175 $$K5LIB $$GSSAPILIB $(LIBS)"
7176
7177 # Linux with Kerberos 5 and Kerberos 4.
7178 # Use "make linux+krb5 KFLAGS=-DNO_KRB5_INIT_ETS" if necessary.
7179 # Add "KFLAGS=-UCK_DES" if failure messages look DES-related.
7180 # UNTESTED (because I can't find a box with Krb4 and Krb5 installed)
7181 linux+krb5+krb4:
7182 @echo 'Making C-Kermit for Linux with Kerberos 4 and Kerberos 5'
7183 $(MAKE) linux+krb5 KTARGET=$${KTARGET:-$(@)} \
7184 "KFLAGS=-DKRB4 -DKRB524 $(KFLAGS)" "LIBS=$(LIBS) -lkrb4"
7185
7186 # Linux with OpenSSL
7187 # In Linux, SSL libs are often in /lib or /usr/lib and so found by default.
7188 # This targets takes into account the DES library might or might not
7189 # exist. If it does exist, however, the target will require some editing
7190 # if its basename is not libdes425. - fdc Tue Sep 21 14:28:00 2010
7191 # IMPORTANT: Some Linux platforms have DES libraries but they are missing
7192 # functions used by Kermit. In that case you will get fatal errors at
7193 # link time involving routines such as des_ecb3_encrypt, des_random_seed,
7194 # and des_set_odd_parity. In that case, "make linux KFLAGS=-UCK_DES"
7195 # There's a new warning at the end that should come out if this happens,
7196 # and that should not come out if it didn't.
7197 #
7198 # Newer versions of OpenSSL cause profuse "-Wdeprecated-declarations"
7199 # warnings, meaning C-Kermit's SSL code needs to be updated to allow (by
7200 # copious use if #ifdefs) for both old and new versions. Also it has been
7201 # noted that libpam0g-dev must be installed for OpenSSL 3 builds, which
7202 # is needed for /usr/include/security/pam_appl.h, which ckufio.c #includes.
7203 # - fdc 14 May 2023
7204 #
7205 # KPAMFLAG/KPAMLIBS carry PAM support, broken out as overridable variables so
7206 # linux+ssl+static can drop PAM without duplicating the rest of this recipe. A
7207 # plain "make linux+ssl+static" needs the same OpenSSL/DES version detection
7208 # below, just with a different KPAMFLAG/KPAMLIBS pair and LNKFLAGS.
7209 KPAMFLAG = -DCK_PAM
7210 KPAMLIBS = -lpam -ldl
7211
7212 linux+ssl linux+openssl linux+openssl+zlib+shadow+pam linux+openssl+shadow:
7213 @echo 'Making C-Kermit $(CKVER) for Linux+OpenSSL SSLLIB=$(SSLLIB)'
7214 @case `openssl version` in \
7215 *0.9.7*) OPENSSLOPTION="-DOPENSSL_097" ;; \
7216 *0.9.8*) OPENSSLOPTION="-DOPENSSL_098" ;; \
7217 *1.[0-9].[0-9]*) OPENSSLOPTION="-DOPENSSL_100" ;; \
7218 *3.[0-9].[0-9]*) OPENSSLOPTION="-DOPENSSL_300" ;; \
7219 *) OPENSSLOPTION="" ;; \
7220 esac; \
7221 HAVE_DES=''; \
7222 DES_LIB=''; \
7223 if ls /usr/lib/libdes* > /dev/null 2> /dev/null || \
7224 ls $(SSLLIB)/libdes* > /dev/null 2> /dev/null; then \
7225 DES_LIB='-ldes425'; \
7226 HAVE_DES='-DCK_DES -DLIBDES'; \
7227 echo "HAVE DES"; \
7228 else echo "NO DES"; \
7229 fi; \
7230 $(MAKE) linux KTARGET=$${KTARGET:-$(@)} "CC = $(CC)" "CC2 = $(CC2)" \
7231 "KFLAGS= -DCK_AUTHENTICATION -DCK_ENCRYPTION -DCK_CAST $$HAVE_DES \
7232 -DCK_SSL $(KPAMFLAG) -DZLIB -DCK_SHADOW $$OPENSSLOPTION $(SSLINC) \
7233 $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
7234 "LIBS = $(SSLLIB) -lssl $$DES_LIB -lcrypto $(KPAMLIBS) -lz $(LIBS)"
7235
7236 # Statically linked binary; a thin wrapper around linux+ssl.
7237 #
7238 # PAM is left out. PAM authentication modules are dlopen()ed from
7239 # /lib/security at runtime regardless of how the C-Kermit binary
7240 # itself is linked, so statically linking libpam gains little.
7241 #
7242 # OpenSSL's static libcrypto.a additionally requires libzstd (for its
7243 # optional Zstandard compression BIO), so link with -lzstd; the
7244 # libzstd-dev package provides the static archive.
7245 linux+ssl+static:
7246 @echo 'Making C-Kermit $(CKVER) for Linux+OpenSSL (static)'
7247 $(MAKE) linux+ssl KTARGET=$${KTARGET:-$(@)} \
7248 "KPAMFLAG=" "KPAMLIBS=-lzstd" "LNKFLAGS = -static $(LNKFLAGS)"
7249
7250 # Statically linked Linux+OpenSSL against musl libc rather than
7251 # glibc, for a release binary with no runtime library dependencies
7252 # at all. A glibc -static binary still prints link-time warnings
7253 # about NSS functions (getaddrinfo(), getpwnam(), and similar)
7254 # needing the exact glibc shared libraries used to link at runtime;
7255 # a musl-gcc -static binary has none of that, since musl resolves
7256 # those the same way whether static or dynamic.
7257 #
7258 # Unlike linux+ssl+static, this is not a thin wrapper around linux+ssl. It
7259 # can't go through linux's autodetection. musl-gcc's specs file excludes the
7260 # regular system include and library paths, so every autodetection probe in
7261 # "linux" (curses, crypt.h, largefile macros, and so on) would inspect the
7262 # host's glibc paths and default ld, which says nothing about what musl-gcc can
7263 # actually see or link. Reusing linux+ssl here would silently reintroduce
7264 # exactly the bugs this target exists to avoid (e.g. "linux" finding
7265 # /usr/include/ crypt.h, and adding -DHAVE_CRYPT_H, only for musl-gcc to fail
7266 # with "crypt.h: No such file or directory"). This calls xermit directly
7267 # instead, using the same LINUXCFLAGS as linuxa above as its base, plus musl's
7268 # own answers to what "linux" would otherwise autodetect, checked
7269 # against musl-dev's headers and libc.a:
7270 #
7271 # - crypt(), openpty(), and grantpt()/ptsname() all live directly
7272 # in musl's libc.a (no separate crypt.h, libutil, or libcrypt).
7273 # - HAVE_PTMX and HAVE_OPENPTY are unconditionally true: musl is
7274 # Linux-only, and /dev/ptmx plus openpty() are always present.
7275 # - Largefile support needs no extra macros; off_t is 64-bit in
7276 # musl by default.
7277 #
7278 # Debian/Ubuntu's OpenSSL, zlib, and ncurses -dev packages are
7279 # compiled with glibc, so their static archives are not safe to link
7280 # into a musl-gcc -static binary. tools/build-musl-libs.sh builds all
7281 # three from source against musl-gcc into a private directory. Point
7282 # KSSLINC/KSSLLIB and KNCURSESINC at it, e.g.:
7283 #
7284 # tools/build-musl-libs.sh .ci-cache/musl-libs
7285 # make linux+ssl+musl \
7286 # KSSLINC="-I$$PWD/.ci-cache/musl-libs/include" \
7287 # KSSLLIB="-L$$PWD/.ci-cache/musl-libs/lib" \
7288 # KNCURSESINC="-I$$PWD/.ci-cache/musl-libs/include/ncurses"
7289 #
7290 # KNCURSESINC only needs the extra ncurses/ include directory:
7291 # ncurses.h itself is found via KSSLINC's plain -I (both point into
7292 # the same build-musl-libs.sh prefix), but ncurses.h in turn does
7293 # "#include <ncurses/ncurses_dll.h>", which needs the prefix's
7294 # top-level include dir on the path too, not just the ncurses/
7295 # subdirectory. No separate KNCURSESLIB is needed since libncurses.a
7296 # lands in that same prefix's lib dir, already covered by KSSLLIB.
7297 #
7298 # Curses support is opt-in, unlike "linux"/linuxa's -lncurses
7299 # autodetection. This target has no host to probe, so
7300 # there is nothing to detect against. KNCURSESINC being unset just
7301 # means "no ncurses build available"; -DCK_NCURSES/-lncurses are then
7302 # left out and the binary builds the same as it would on a system
7303 # with no libncurses installed at all, rather than failing outright.
7304 linux+ssl+musl:
7305 @echo 'Making C-Kermit $(CKVER) for Linux+OpenSSL (musl static)'
7306 @NCFLAG=''; NCLIBS=''; \
7307 if test -n '$(KNCURSESINC)'; then \
7308 NCFLAG='-DCK_NCURSES $(KNCURSESINC)'; \
7309 NCLIBS='-lncurses'; \
7310 fi; \
7311 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = musl-gcc" \
7312 "CC2 = musl-gcc" \
7313 "CFLAGS = $(LINUXCFLAGS) -DHAVE_PTMX -DHAVE_OPENPTY \
7314 -DCK_AUTHENTICATION -DCK_ENCRYPTION -DCK_CAST -DCK_SSL -DZLIB \
7315 -DCK_SHADOW -DOPENSSL_300 $${KSSLINC:-$(SSLINC)} $$NCFLAG \
7316 $(KFLAGS)" \
7317 "LNKFLAGS = -static $(LNKFLAGS)" \
7318 "LIBS = $${KSSLLIB:-$(SSLLIB)} -lssl -lcrypto -lz $$NCLIBS -lm \
7319 $(LIBS)"
7320
7321 # Same as linux+ssl+musl, minus OpenSSL/TLS.
7322 #
7323 # OpenSSL is the only reason a musl build must reach
7324 # outside musl's headers into the host's Linux
7325 # kernel UAPI headers. Without it, only ncurses needs a musl-gcc
7326 # build, so point KNCURSESINC at the same prefix build-musl-libs.sh
7327 # produces (see the KNCURSESINC comment on linux+ssl+musl above for
7328 # why no separate KNCURSESLIB is needed):
7329 #
7330 # tools/build-musl-libs.sh .ci-cache/musl-libs
7331 # make linux+musl \
7332 # KNCURSESINC="-I$$PWD/.ci-cache/musl-libs/include/ncurses"
7333 #
7334 # Curses support is opt-in here too; see the KNCURSESINC comment on
7335 # linux+ssl+musl above.
7336 linux+musl:
7337 @echo 'Making C-Kermit $(CKVER) for Linux (musl static, no SSL)'
7338 @NCFLAG=''; NCLIBS=''; \
7339 if test -n '$(KNCURSESINC)'; then \
7340 NCFLAG='-DCK_NCURSES $(KNCURSESINC)'; \
7341 NCLIBS='-lncurses'; \
7342 fi; \
7343 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = musl-gcc" \
7344 "CC2 = musl-gcc" \
7345 "CFLAGS = $(LINUXCFLAGS) -DHAVE_PTMX -DHAVE_OPENPTY \
7346 -DCK_AUTHENTICATION -DCK_ENCRYPTION -DCK_CAST -DCK_SHADOW \
7347 $$NCFLAG $(KFLAGS)" \
7348 "LNKFLAGS = -static $(LNKFLAGS)" \
7349 "LIBS = $$NCLIBS -lm $(LIBS)"
7350
7351 # Linux with Kerberos 5 and OpenSSL
7352 # OK 2011/05/16
7353 # Add -UCK_DES if functions like des_ecb3_encrypt, es_random_seed,
7354 # come up missing at link time.
7355 # NOTE: MULTIARCH is defined externally, e.g. in DEB_HOST_MULTIARCH
7356 # On RHEL6.6: make linux+krb5+ssl "K5LIB=-L /lib64"
7357 linux+krb5+ssl linux+krb5+openssl:
7358 @echo 'Making C-Kermit $(CKVER) for Linux with Krb5 and OpenSSL...'
7359 @case `openssl version` in \
7360 *0.9.7*) OPENSSLOPTION="-DOPENSSL_097" ;; \
7361 *0.9.8*) OPENSSLOPTION="-DOPENSSL_098" ;; \
7362 *1.[0-9].[0-9]*) OPENSSLOPTION="-DOPENSSL_100" ;; \
7363 *3.[0-9].[0-9]*) OPENSSLOPTION="-DOPENSSL_300" ;; \
7364 *) OPENSSLOPTION="" ;; \
7365 esac; \
7366 HAVE_DES=''; \
7367 DES_LIB=''; \
7368 if ls /usr/lib/libdes* > /dev/null 2> /dev/null || \
7369 ls $(SSLLIB)/libdes* > /dev/null 2> /dev/null; then \
7370 DES_LIB='-ldes425'; \
7371 HAVE_DES='-DCK_DES -DLIBDES'; \
7372 echo "HAVE DES"; \
7373 else echo "NO DES"; \
7374 fi; \
7375 MTARCH='$(MULTIARCH)'; \
7376 if test -z "$$MTARCH"; then \
7377 MTARCH=`gcc -print-multiarch 2> /dev/null`; \
7378 fi; \
7379 K5CRYPTO=''; \
7380 if ls /lib/libk5crypto* > /dev/null 2> /dev/null; then \
7381 K5CRYPTO='-lk5crypto'; \
7382 else if ls /usr/lib/libk5crypto* > /dev/null 2> /dev/null; then \
7383 K5CRYPTO='-lk5crypto'; \
7384 else if ls /usr/lib64/libk5crypto* > /dev/null 2> /dev/null; then \
7385 K5CRYPTO='-lk5crypto'; \
7386 else if ls /usr/lib/$$MTARCH/libk5crypto* \
7387 > /dev/null 2> /dev/null; then K5CRYPTO='-lk5crypto'; \
7388 fi; fi; fi; fi; \
7389 COM_ERR=''; \
7390 if ls /lib/libcom_err* > /dev/null 2> /dev/null; then \
7391 COM_ERR='-lcom_err'; \
7392 else if ls /lib/$$MTARCH/libcom_err* \
7393 > /dev/null 2> /dev/null; then COM_ERR='-lcom_err'; \
7394 else if ls /usr/lib/$$MTARCH/libcom_err* \
7395 > /dev/null 2> /dev/null; then COM_ERR='-lcom_err'; \
7396 else if ls /lib64/libcom_err* > /dev/null 2> /dev/null; then \
7397 COM_ERR='-lcom_err'; \
7398 fi; fi; fi; fi; \
7399 GSSAPILIB='-lgssapi'; \
7400 if ls /lib/libgssapi_krb5* > /dev/null 2> /dev/null; then \
7401 GSSAPILIB='-lgssapi_krb5'; \
7402 else if ls /usr/lib/$$MTARCH/libgssapi_krb5* \
7403 > /dev/null 2> /dev/null; then \
7404 GSSAPILIB='-lgssapi_krb5'; \
7405 else K5DIR=`echo $(K5LIB) | sed 's|-L||'`; \
7406 if ls $$K5DIR/libgssapi_krb5* > /dev/null 2> /dev/null; then \
7407 GSSAPILIB='-lgssapi_krb5'; \
7408 fi; fi; fi; \
7409 $(MAKE) linux KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
7410 "KFLAGS= -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 -DKRB5_DEPRECATED=1 \
7411 -DCK_SSL -DCK_PAM -DZLIB -DCK_SHADOW $$OPENSSLOPTION $(SSLINC) \
7412 -DCK_ENCRYPTION $$HAVE_DES $(K5INC) $(K5INC)/krb5 \
7413 -I/usr/include/et $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
7414 "LIBS = $(K5LIB) $(SSLLIB) -lssl $$DES_LIB -lpam -lz \
7415 -lcrypto $$GSSAPILIB -lkrb5 $$K5CRYPTO $$COM_ERR $(LIBS)"
7416
7417 linux+krb5+ssl-new:
7418 @echo 'Making C-Kermit $(CKVER) for Linux with Krb5 and OpenSSL...'
7419 @case `openssl version` in \
7420 *0.9.7*) OPENSSLOPTION="-DOPENSSL_097" ;; \
7421 *0.9.8*) OPENSSLOPTION="-DOPENSSL_098" ;; \
7422 *1.[0-9].[0-9]*) OPENSSLOPTION="-DOPENSSL_100" ;; \
7423 *3.[0-9].[0-9]*) OPENSSLOPTION="-DOPENSSL_300" ;; \
7424 *) OPENSSLOPTION="" ;; \
7425 esac; \
7426 HAVE_DES=''; \
7427 DES_LIB=''; \
7428 if ls /usr/lib/libdes* > /dev/null 2> /dev/null || \
7429 ls $(SSLLIB)/libdes* > /dev/null 2> /dev/null; then \
7430 DES_LIB='-ldes425'; \
7431 HAVE_DES='-DCK_DES -DLIBDES'; \
7432 echo "HAVE DES"; \
7433 else echo "NO DES"; \
7434 fi; \
7435 LIBK5CRYPTO=''; \
7436 if ld -lk5crypto > /dev/null 2> /dev/null; then \
7437 LIBK5CRYPTO='-lk5crypto'; \
7438 fi; \
7439 XX_COM_ERR=H''; \
7440 K5_COM_ERR_H=''; \
7441 ET_COM_ERR_H=''; \
7442 COM_ERR_LIB=''; \
7443 if ld -lcom_err > /dev/null 2> /dev/null; then \
7444 if test -f /usr/include/krb5/com_err.h; then \
7445 COM_ERR_LIB='-lcom_err'; \
7446 COM_ERR_H='-DK5_COM_ERR_H'; \
7447 else if test -f /usr/include/et/com_err.h; then \
7448 COM_ERR_LIB='-lcom_err'; \
7449 COM_ERR_H='-DET_COM_ERR_H'; \
7450 else if test -f /usr/include/com_err.h; then \
7451 COM_ERR_LIB='-lcom_err'; \
7452 COM_ERR_H='-DXX_COM_ERR_H'; \
7453 fi; \
7454 fi; \
7455 fi; \
7456 fi; \
7457 GSSAPILIB=''; \
7458 HAVE_GSSAPI=''; \
7459 if name=`locate libgssapi | grep ^/usr/lib | head -1`; then \
7460 echo name=$$name; \
7461 path=$${name%/*}; \
7462 echo PATH=$$path; \
7463 GSSAPILIB=$$(basename $$name); \
7464 echo GSSAPILIB=$$GSSAPILIB ; \
7465 HAVE_GSSAPI='-DHAVE_GSSAPI'; \
7466 fi ; \
7467 if [ -z "$$LD_LIBRARY_PATH" ] ; then \
7468 export LD_LIBRARY_PATH=$$path ; else \
7469 export LD_LIBRARY_PATH=$$LD_LIBRARY_PATH:$$path; \
7470 HAVE_GSSAPI='-DHAVE_GSSAPI'; \
7471 fi; \
7472 if ls $${path}/libgssapi_krb5.* >/dev/null 2>/dev/null; then \
7473 echo HAVE libgssapi_krb5 ; \
7474 GSSAPILIB=-lgssapi_krb5 ; else \
7475 if ls $${path}/libgssapi.* >/dev/null 2>/dev/null; then \
7476 GSSAPILIB=-lgssapi ; \
7477 fi; \
7478 fi; \
7479 echo GSSAPILIB=$GSSAPILIB; \
7480 echo LD_LIBRARY_PATH=$$LD_LIBRARY_PATH; \
7481 if ld -lggssapi_krb5 > /dev/null 2> /dev/null; then \
7482 GSSAPILIB='-lgssapi_krb5'; \
7483 HAVE_GSSAPI='-DHAVE_GSSAPI'; \
7484 echo GSSAPILIB-1=$$GSSAPILIB; \
7485 else if ld -lggssapi_krb5 > /dev/null 2> /dev/null; then \
7486 GSSAPILIB='-lgssapi'; \
7487 HAVE_GSSAPI='-DHAVE_GSSAPI'; \
7488 echo GSSAPILIB-2=$$GSSAPILIB; \
7489 fi; \
7490 fi; \
7491 $(MAKE) linux KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
7492 "KFLAGS= -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 \
7493 -DCK_SSL -DCK_PAM -DZLIB -DCK_SHADOW $$OPENSSLOPTION $(SSLINC) \
7494 -DCK_ENCRYPTION $$HAVE_DES $(K5INC) $(K5INC)/krb5 \
7495 -I/usr/include -I/usr/include/et /$(KFLAGS)" \
7496 "LNKFLAGS = $(LNKFLAGS)" \
7497 "LIBS = $(K5LIB) $(SSLLIB) -lssl $$DES_LIB -lpam -lz \
7498 -lcrypto $$GSSAPILIB -lkrb5 $$K5CRYPTO $$COM_ERR $(LIBS)"
7499
7500 # ::BEGIN_OLD_LINUX_TARGETS::
7501
7502 # The remaining Linux entries are for special or customized builds. They have
7503 # not been generalized ("subroutinized") like the ones above. Ideally, we
7504 # should allow for every combination of libc vs glibc, gcc vs egcs, curses vs
7505 # ncurses, Kerberos IV vs Kerberos V vs SRP (in any combination), and so on.
7506 # The best way to do this is to set KFLAGS and LIBS values and then chain to
7507 # the main "linux" target, as in the examples just above. To skip past all of
7508 # these old targets (and there are many) search for ::END_OLD_LINUX_TARGETS::
7509 # (after this line).
7510
7511 #Sharp Zaurus SL-5500 - Linux based
7512 zsl5500:
7513 @echo 'Making C-Kermit $(CKVER) for Sharp Zaurus SL-5500...'
7514 $(MAKE) linuxnc $(MAKE) linux KTARGET=$${KTARGET:-$(@)} \
7515 KFLAGS="-DNOCURSES -UCK_CURSES" KTARGET=$${KTARGET:-$(@)} "KFLAGS=-DZSL5500" \
7516 "CC = gcc" "CC2 = gcc"
7517
7518 #Mklinux DR3 has horrible bug in <utmpbits.h> - see ckufio.c.
7519 mklinux:
7520 $(MAKE) KTARGET=$${KTARGET:-$(@)} "KFLAGS=-DUTMPBUG" \
7521 "LIBS=-lcrypt -lresolv" linuxa
7522
7523 #LinuxPPC 1999
7524 linuxppc:
7525 @echo 'Making C-Kermit $(CKVER) for LinuxPPC 1999...'
7526 @if test -f /usr/lib/libcrypt.a; then \
7527 if test -f /usr/lib/libresolv.a; then \
7528 $(MAKE) KTARGET=$${KTARGET:-$(@)} \
7529 "KFLAGS=$(NCURSES_CPP) -DHAVE_CRYPT_H \
7530 -DLOCK_DIR=\\\\\\"\"/var/lock/modem\\\\\\"\" $(KFLAGS)" \
7531 "LIBS=-lncurses -lresolv -lcrypt" linuxa ; \
7532 else \
7533 $(MAKE) KTARGET=$${KTARGET:-$(@)} \
7534 "KFLAGS=$(NCURSES_CPP) -DHAVE_CRYPT_H \
7535 -DLOCK_DIR=\\\\\\"\"/var/lock/modem\\\\\\"\" $(KFLAGS)" \
7536 "LIBS=-lncurses -lcrypt" linuxa ; \
7537 fi \
7538 else \
7539 if test -f /usr/lib/libresolv.a; then \
7540 $(MAKE) KTARGET=$${KTARGET:-$(@)} \
7541 "KFLAGS=$(NCURSES_CPP) \
7542 -DLOCK_DIR=\\\\\\"\"/var/lock/modem\\\\\\"\" $(KFLAGS)" \
7543 "LIBS=-lncurses -lresolv" linuxa ; \
7544 else \
7545 $(MAKE) KTARGET=$${KTARGET:-$(@)} \
7546 "KFLAGS=$(NCURSES_CPP) \
7547 -DLOCK_DIR=\\\\\\"\"/var/lock/modem\\\\\\"\" $(KFLAGS)" \
7548 "LIBS=-lncurses" linuxa ; \
7549 fi \
7550 fi
7551
7552
7553 # Like "make linux" but built with egcs rather than gcc.
7554 # If you get "Internal compiler error xxx, output pipe has been closed",
7555 # try removing -pipe.
7556 linuxegcs:
7557 @echo 'Making C-Kermit $(CKVER) for Linux 1.2 or later with egcs...'
7558 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = egcs" "CC2 = egcs" \
7559 "CFLAGS = -O -DLINUX -pipe -funsigned-char \
7560 -DPOSIX -DCK_POSIX_SIG -DCK_NCURSES -DNOCOTFMC \
7561 -DTCPSOCKET -DLINUXFSSTND $(KFLAGS)" \
7562 "LNKFLAGS = $(LNKFLAGS)" "LIBS = -lncurses -lcrypt -lresolv"
7563
7564 #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.1 (no K4 compatibility).
7565 linux+krb5-older:
7566 @echo 'Making C-Kermit $(CKVER) for Linux on Intel with Kerberos...'
7567 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
7568 "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
7569 -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 \
7570 -DCK_ENCRYPTION -DCK_DES -DCK_CURSES -DCK_POSIX_SIG \
7571 -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H $(K5INC) $(K5INC)/krb5 \
7572 $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
7573 "LIBS = $(K5LIB) -lncurses -ltermcap -ldes425 -lkrb5 \
7574 -lcom_err -lk5crypto -lgssapi_krb5 -lcrypt -lresolv"
7575
7576 # Linux on Intel PC with SRP 1.7.4 using GNU MP, Krypto, and Eric Young's
7577 # DES library. Remove the -DCK_DES, -DLIBDES and -ldes if you do not have
7578 # Eric Young's# libdes.a installed.
7579 #
7580 linux+srp+gmp:
7581 @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SRP...'
7582 $(MAKE) srpmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
7583 "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
7584 -DCK_AUTHENTICATION -DCK_SRP \
7585 -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES \
7586 -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
7587 $(SRPINC) $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
7588 "LIBS = $(SRPLIB) \
7589 -lncurses -ltermcap -lsrp -lgmp -ldes -lkrypto -lcrypt -lresolv"
7590
7591 linux+srp+gmp+no-des:
7592 @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SRP ...'
7593 $(MAKE) srpmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
7594 "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
7595 -DCK_AUTHENTICATION -DCK_SRP \
7596 -DCK_ENCRYPTION -DCK_CAST \
7597 -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
7598 $(SRPINC) $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
7599 "LIBS = $(SRPLIB) \
7600 -lncurses -ltermcap -lsrp -lgmp -lkrypto -lcrypt -lresolv"
7601
7602 linux+srp+gmp-export:
7603 @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SRP...'
7604 $(MAKE) srpmit-export KTARGET=$${KTARGET:-$(@)} \
7605 "CC = gcc" "CC2 = gcc" \
7606 "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
7607 -DCK_AUTHENTICATION -DCK_SRP -DFNFLOAT \
7608 -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
7609 $(SRPINC) $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
7610 "LIBS = $(SRPLIB) \
7611 -lncurses -ltermcap -lsrp -lgmp -lkrypto -lcrypt -lm -lresolv"
7612
7613 linux+srp+gmp+pam:
7614 @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SRP...'
7615 $(MAKE) srpmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
7616 "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
7617 -DCK_AUTHENTICATION -DCK_SRP \
7618 -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES \
7619 -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
7620 -DCK_PAM -DFNFLOAT $(SRPINC) $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
7621 "LIBS = $(SRPLIB) -lncurses -ltermcap -lsrp -lgmp -ldes -lkrypto \
7622 -lcrypt -lpam -ldl -lm -lresolv"
7623
7624 #Linux on Intel PC with SRP 1.7.4 built with OpenSSL for Big Number Math
7625 #and Cryptographic functionality.
7626 #
7627 linux+srp:
7628 @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SRP...'
7629 $(MAKE) srpmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
7630 "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
7631 -DCK_AUTHENTICATION -DCK_SRP \
7632 -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES \
7633 -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
7634 $(SRPINC) $(SSLINC) $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
7635 "LIBS = $(SRPLIB) $(SSLLIB) \
7636 -lncurses -ltermcap -lsrp -lkrypto -lcrypto -lcrypt -lresolv"
7637
7638 linux+srp+pam:
7639 @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SRP...'
7640 $(MAKE) srpmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
7641 "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
7642 -DCK_AUTHENTICATION -DCK_SRP \
7643 -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES \
7644 -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
7645 -DCK_PAM -DFNFLOAT $(SRPINC) $(SSLINC) $(KFLAGS)" \
7646 "LNKFLAGS = $(LNKFLAGS)" \
7647 "LIBS = $(SRPLIB) $(SSLLIB) -lncurses -ltermcap -lsrp -lkrypto \
7648 -lcrypto -lcrypt -lpam -ldl -lm -lresolv"
7649
7650 #Linux on Intel PC with SRP and SSL/TLS.
7651 #
7652 # libsrp.a should be build with OpenSSL
7653 # Requires the Kerberos 1.2.2 or higher to be compiled with KRB4 compatibility.
7654 #Remove -ltermcap if it causes trouble e.g. in Debian 2.2.
7655 #If you have OpenSSL 0.9.7 or later, add -DOPENSSL_097 to KFLAGS.
7656 linux+srp+openssl:
7657 @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SRP,SSL...'
7658 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
7659 "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
7660 -DCK_AUTHENTICATION -DCK_SRP \
7661 -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL \
7662 -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
7663 $(SRPINC) $(SSLINC) $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
7664 "LIBS = $(SRPLIB) $(SSLLIB) \
7665 -lncurses -ltermcap -lsrp -lssl -lkrypto -lcrypto \
7666 -lcrypt -lresolv"
7667
7668 #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.2 and SRP.
7669 #
7670 # libsrp.a should be build with GNU MP (libgmp.a)
7671 # instead of AT&T CryptoLib (libcrypt.a) due to naming conflicts with
7672 # standard distribution Linux libraries.
7673 # Requires the Kerberos 1.2.2 or higher to be compiled with KRB4 compatibility.
7674 linux+krb5+krb4+srp:
7675 @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB54+SRP...'
7676 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
7677 "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
7678 -DCK_AUTHENTICATION -DCK_SRP -DCK_KERBEROS -DKRB5 -DKRB4 -DKRB524 \
7679 -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES \
7680 -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
7681 $(K5INC) $(K5INC)/krb5 $(SRPINC) \
7682 $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
7683 "LIBS = $(K5LIB) $(SRPLIB) \
7684 -lncurses -ltermcap -lsrp -lgmp -lgssapi_krb5 -lkrypto \
7685 -ldes -lkrb4 -ldes425 -lkrb5 -lcom_err -lk5crypto -lcrypt -lresolv"
7686
7687 #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.2, SRP and SSL/TLS.
7688 #
7689 # libsrp.a should be build with OpenSSL
7690 # Requires the Kerberos 1.2.2 or higher to be compiled with KRB4 compatibility.
7691 # Requires OpenSSL 0.9.6a or higher
7692 #If you have OpenSSL 0.9.7 or later, add -DOPENSSL_097 to KFLAGS.
7693 linux+krb5+krb4+srp+openssl:
7694 @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SRP,SSL...'
7695 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
7696 "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
7697 -DCK_AUTHENTICATION -DCK_SRP -DCK_KERBEROS -DKRB5 -DKRB4 -DKRB524 \
7698 -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL \
7699 -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
7700 $(K5INC) $(K5INC)/krb5 $(SRPINC) $(SSLINC) \
7701 $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
7702 "LIBS = $(K5LIB) $(SRPLIB) $(SSLLIB) \
7703 -lncurses -ltermcap -lsrp \
7704 -lkrb4 -lssl -lkrypto -lcrypto \
7705 -lkrb5 -lcom_err -lk5crypto -lgssapi_krb5 -lcrypt -lresolv"
7706
7707 #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.2, SSL/TLS.
7708 #
7709 # libsrp.a should be build with OpenSSL
7710 # Requires the Kerberos 1.2.2 be compiled with KRB4 compatibility.
7711 #If you have OpenSSL 0.9.7 or later, add -DOPENSSL_097 to KFLAGS.
7712 linux+krb5+krb4+openssl:
7713 @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SSL...'
7714 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
7715 "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
7716 -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 -DKRB4 -DKRB524 \
7717 -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL \
7718 -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
7719 $(K5INC) $(K5INC)/krb5 $(SSLINC) \
7720 $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
7721 "LIBS = $(K5LIB) $(SSLLIB) \
7722 -lncurses -ltermcap \
7723 -lkrb4 -lssl -lcrypto -lkrb5 -lcom_err \
7724 -lk5crypto -lgssapi_krb5 -lcrypt -lresolv"
7725
7726 #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.1, SSL/TLS.
7727 #
7728 # libsrp.a should be build with OpenSSL
7729 # Requires the Kerberos 1.2.2 be compiled with KRB4 compatibility.
7730 # If you have OpenSSL 0.9.7 or later, add -DOPENSSL_097 to KFLAGS.
7731 linux+krb5+krb4+openssl+shadow:
7732 @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SSL...'
7733 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
7734 "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
7735 -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 -DKRB4 -DKRB524 \
7736 -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL -DCK_SHADOW \
7737 -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
7738 $(K5INC) $(K5INC)/krb5 $(SSLINC) \
7739 $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
7740 "LIBS = $(K5LIB) $(SSLLIB) \
7741 -lncurses -ltermcap \
7742 -lkrb4 -lssl -lcrypto -lkrb5 -lcom_err \
7743 -lk5crypto -lgssapi_krb5 -lcrypt -lresolv"
7744
7745 #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2, SSL/TLS.
7746 #
7747 # libsrp.a should be build with OpenSSL
7748 # Requires the Kerberos 1.2.2 be compiled with KRB4 compatibility.
7749 # If you have OpenSSL 0.9.7 or later, add -DOPENSSL_097 to KFLAGS.
7750 linux+krb5+krb4+openssl+zlib+shadow:
7751 @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SSL...'
7752 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
7753 "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
7754 -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 -DKRB4 -DKRB524 -DZLIB \
7755 -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL -DCK_SHADOW \
7756 -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
7757 $(K5INC) $(K5INC)/krb5 $(SSLINC) \
7758 $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
7759 "LIBS = $(K5LIB) $(SSLLIB) \
7760 -lncurses -ltermcap \
7761 -lkrb4 -lssl -lcrypto -lkrb5 -lcom_err \
7762 -lk5crypto -lgssapi_krb5 -lcrypt -lresolv -lz"
7763
7764 linux+krb5+krb4+srp-export:
7765 @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SRP...'
7766 $(MAKE) xermit-export KTARGET=$${KTARGET:-$(@)} \
7767 "CC = gcc" "CC2 = gcc" \
7768 "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
7769 -DCK_AUTHENTICATION -DCK_SRP -DCK_KERBEROS -DKRB5 -DKRB4 -DKRB524 \
7770 -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
7771 $(K5INC) $(K5INC)/krb5 $(SRPINC) \
7772 $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
7773 "LIBS = $(SRPLIB) $(K5LIB) \
7774 -lncurses -ltermcap -lsrp -lgmp -lkrb4 -ldes425 -lkrb5 -lgssapi_krb5 \
7775 -lcom_err -lk5crypto -lkrypto -lcrypt -lresolv"
7776
7777 linux+krb5+krb4+srp+pam:
7778 @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SRP...'
7779 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
7780 "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
7781 -DCK_AUTHENTICATION -DCK_SRP -DCK_KERBEROS -DKRB5 -DKRB4 -DKRB524 \
7782 -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES \
7783 -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
7784 -DCK_PAM $(K5INC) $(K5INC)/krb5 $(SRPINC) \
7785 $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
7786 "LIBS = $(SRPLIB) $(K5LIB) \
7787 -lncurses -ltermcap -lsrp -lgmp -ldes -lkrb4 -ldes425 -lkrb5 \
7788 -lcom_err -lk5crypto -lgssapi_krb5 -lkrypto -lcrypt -lpam -ldl \
7789 -lresolv"
7790
7791 #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.2, SRP and SSL/TLS.
7792 # and PAM.
7793 #
7794 # libsrp.a should be build with OpenSSL
7795 # Requires the Kerberos 1.2.2 be compiled with KRB4 compatibility.
7796 # If you have OpenSSL 0.9.7 or later, add -DOPENSSL_097 to KFLAGS.
7797 linux+krb5+krb4+srp+openssl+pam-debug:
7798 @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SRP,SSL...'
7799 $(MAKE) xermit-debug KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
7800 "CFLAGS = -g -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
7801 -DCK_AUTHENTICATION -DCK_SRP -DCK_KERBEROS -DKRB5 -DKRB4 -DKRB524 \
7802 -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL -DCK_PAM \
7803 -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
7804 -w -Dmalloc=dmalloc -Dfree=dfree -DMDEBUG $(K5INC) $(K5INC)/krb5 \
7805 $(SRPINC) $(SSLINC) $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
7806 "LIBS = $(SRPLIB) $(K5LIB) $(SSLLIB) \
7807 -lncurses -ltermcap -lsrp -lkrb4 -lssl -lkrypto -lcrypto \
7808 -lkrb5 -lcom_err -lk5crypto -lgssapi_krb5 -lcrypt -lresolv -lpam -ldl"
7809
7810 #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.1, SRP and SSL/TLS.
7811 # and PAM.
7812 #
7813 # libsrp.a should be build with OpenSSL
7814 # Requires the Kerberos 1.2.2 be compiled with KRB4 compatibility.
7815 # If you have OpenSSL 0.9.7 or later, add -DOPENSSL_097 to KFLAGS.
7816 linux+krb5+krb4+srp+openssl+pam:
7817 @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SRP,SSL...'
7818 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
7819 "CFLAGS = -g -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
7820 -DCK_AUTHENTICATION -DCK_SRP -DCK_KERBEROS -DKRB5 -DKRB4 -DKRB524 \
7821 -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL -DCK_PAM \
7822 -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
7823 $(K5INC) $(K5INC)/krb5 $(SRPINC) $(SSLINC) \
7824 $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
7825 "LIBS = $(SRPLIB) $(K5LIB) $(SSLLIB) \
7826 -lm -lncurses -ltermcap -lsrp \
7827 -lkrb4 -lssl -lkrypto -lcrypto -lgssapi_krb5 \
7828 -lkrb5 -lcom_err -lk5crypto -lcrypt -lresolv -lpam -ldl"
7829
7830 #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.2, SRP, OpenSSL
7831 # with ZLIB and PAM
7832 #
7833 # libsrp.a should be build with OpenSSL
7834 # Requires the Kerberos 1.2.2 be compiled with KRB4 compatibility.
7835 # If you have OpenSSL 0.9.7 or later, add -DOPENSSL_097 to KFLAGS.
7836 linux+krb5+krb4+srp+openssl+zlib+pam:
7837 @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SRP,SSL...'
7838 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
7839 "CFLAGS = -g -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
7840 -DCK_AUTHENTICATION -DCK_SRP -DCK_KERBEROS -DKRB5 -DKRB4 -DKRB524 \
7841 -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL -DCK_PAM -DZLIB \
7842 -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
7843 $(K5INC) $(K5INC)/krb5 $(SRPINC) $(SSLINC) \
7844 $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
7845 "LIBS = $(SRPLIB) $(K5LIB) $(SSLLIB) \
7846 -lm -lncurses -ltermcap -lsrp \
7847 -lkrb4 -lssl -lkrypto -lcrypto -lgssapi_krb5 \
7848 -lkrb5 -lcom_err -lk5crypto -lcrypt -lresolv -lpam -ldl -lz"
7849
7850 #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.2, SRP, OpenSSL
7851 # with ZLIB, Shadow Passwords, and PAM
7852 #
7853 # libsrp.a should be build with OpenSSL
7854 # Requires the Kerberos 1.2.2 be compiled with KRB4 compatibility.
7855 # If you have OpenSSL 0.9.7 or later, add -DOPENSSL_097 to KFLAGS.
7856 linux+krb5+krb4+srp+openssl+zlib+shadow+pam:
7857 @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SRP,SSL...'
7858 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
7859 "CFLAGS = -g -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
7860 -DCK_AUTHENTICATION -DCK_SRP -DCK_KERBEROS -DKRB5 -DKRB4 -DKRB524 \
7861 -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL -DCK_PAM -DZLIB \
7862 -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
7863 -DCK_SHADOW $(K5INC) $(K5INC)/krb5 $(SRPINC) $(SSLINC) \
7864 $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
7865 "LIBS = $(SRPLIB) $(K5LIB) $(SSLLIB) \
7866 -lm -lncurses -ltermcap -lsrp -lkrypto \
7867 -lkrb4 -lssl -lcrypto -lgssapi_krb5 \
7868 -lkrb5 -lcom_err -lk5crypto -lcrypt -lresolv -lpam -ldl -lz"
7869
7870 #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.2, OpenSSL
7871 # with Shadow Passwords, PAM
7872 #
7873 # Requires the Kerberos 1.2.2 be compiled with KRB4 compatibility.
7874 linux+krb5+krb4+openssl+shadow+pam:
7875 @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SSL,...'
7876 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
7877 "CFLAGS = -g -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
7878 -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 -DKRB4 -DKRB524 \
7879 -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL -DCK_PAM \
7880 -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
7881 -DCK_SHADOW $(K5INC) $(K5INC)/krb5 $(SSLINC) \
7882 $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
7883 "LIBS = $(K5LIB) $(SSLLIB) \
7884 -lm -lncurses -ltermcap \
7885 -lkrb4 -lssl -lcrypto -lgssapi_krb5 \
7886 -lkrb5 -lcom_err -lk5crypto -lcrypt -lresolv -lpam -ldl"
7887
7888 #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.2, OpenSSL
7889 # with ZLIB, Shadow Passwords, PAM
7890 #
7891 # libsrp.a should be build with OpenSSL
7892 # Requires the Kerberos 1.2.2 be compiled with KRB4 compatibility.
7893 # If you have OpenSSL 0.9.7 or later, add -DOPENSSL_097 to KFLAGS.
7894 linux+krb5+krb4+openssl+zlib+shadow+pam:
7895 @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SRP,SSL...'
7896 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
7897 "CFLAGS = -g -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
7898 -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 -DKRB4 -DKRB524 \
7899 -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL -DCK_PAM -DZLIB \
7900 -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
7901 -DCK_SHADOW $(K5INC) $(K5INC)/krb5 $(SSLINC) \
7902 $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
7903 "LIBS = $(K5LIB) $(SSLLIB) \
7904 -lm -lncurses -ltermcap \
7905 -lkrb4 -lssl -lcrypto -lgssapi_krb5 \
7906 -lkrb5 -lcom_err -lk5crypto -lcrypt -lresolv -lpam -ldl -lz"
7907
7908 #Red Hat 9 - full install includes Kerberos 5 (4 compat), PAM, SSL.
7909 #Also works around bug in curses in which terminal goes dead after
7910 #returning from file-transfer display. Assumes OpenSSL 0.9.7 or later.
7911 redhat9:
7912 @echo "Building SECURE Kermit for Red Hat 9.0..."
7913 $(MAKE) linux+krb5+krb4+openssl+zlib+shadow+pam \
7914 KTARGET=$${KTARGET:-$(@)} "KFLAGS = -DRH90 -DOPENSSL_097 $(KFLAGS)"
7915
7916 #Ditto plus SRP (which is not normally included with RH Linux).
7917 redhat9+srp:
7918 @echo "Building SECURE Kermit for Red Hat 9.0..."
7919 $(MAKE) linux+krb5+krb4+srp+openssl+zlib+shadow+pam \
7920 KTARGET=$${KTARGET:-$(@)} "KFLAGS = -DRH90 -DOPENSSL_097 $(KFLAGS)"
7921
7922 #For Red Hat AS 2.1 with OpenSSL
7923 redhat21+ssl:
7924 @echo "Building SECURE Kermit for Red Hat 2.1..."
7925 $(MAKE) linux+openssl+zlib+shadow+pam \
7926 KTARGET=$${KTARGET:-$(@)} "KFLAGS = $(KFLAGS)"
7927
7928 #Red Hat Linux 8.0 - full install includes Kerberos 5 (4 compat), PAM, SSL.
7929 #Also works around bug in curses in which terminal goes dead after
7930 #returning from file-transfer display.
7931 redhat80:
7932 @echo "Building SECURE Kermit for Red Hat 8.0..."
7933 $(MAKE) linux+krb5+krb4+openssl+zlib+shadow+pam \
7934 KTARGET=$${KTARGET:-$(@)} "KFLAGS = -DRH80 $(KFLAGS)"
7935
7936 redhat80+srp:
7937 @echo "Building SECURE Kermit for Red Hat 8.0..."
7938 $(MAKE) linux+krb5+krb4+srp+openssl+zlib+shadow+pam \
7939 KTARGET=$${KTARGET:-$(@)} "KFLAGS = -DRH80 $(KFLAGS)"
7940
7941 #Red Hat Linux 7.3 - full install includes Kerberos 5 (4 compat), PAM, SSL.
7942 #Also works around bug in curses in which terminal goes dead after
7943 #returning from file-transfer display.
7944 redhat73:
7945 @echo "Building SECURE Kermit for Red Hat 7.3..."
7946 $(MAKE) linux+krb5+krb4+openssl+zlib+shadow+pam \
7947 KTARGET=$${KTARGET:-$(@)} "KFLAGS = -DRH73 $(KFLAGS)"
7948
7949 redhat73+srp:
7950 @echo "Building SECURE Kermit for Red Hat 7.3..."
7951 $(MAKE) linux+krb5+krb4+srp+openssl+zlib+shadow+pam \
7952 KTARGET=$${KTARGET:-$(@)} "KFLAGS = -DRH73 $(KFLAGS)"
7953
7954 #Red Hat Linux 7.2 - full install includes Kerberos 5 (4 compat), PAM, SSL.
7955 #Also works around bug in curses in which terminal goes dead after
7956 #returning from file-transfer display.
7957 redhat72:
7958 @echo "Building SECURE Kermit for Red Hat 7.2..."
7959 $(MAKE) linux+krb5+krb4+openssl+zlib+shadow+pam \
7960 KTARGET=$${KTARGET:-$(@)} "KFLAGS = -DRH72 $(KFLAGS)"
7961
7962 redhat72+srp:
7963 @echo "Building SECURE Kermit for Red Hat 7.2..."
7964 $(MAKE) linux+krb5+krb4+srp+openssl+zlib+shadow+pam \
7965 KTARGET=$${KTARGET:-$(@)} "KFLAGS = -DRH72 $(KFLAGS)"
7966
7967 #Red Hat Linux 7.1 - full install includes Kerberos 5 (4 compat), PAM, SSL.
7968 #Also works around bug in curses in which terminal goes dead after
7969 #returning from file-transfer display.
7970 redhat71:
7971 @echo "Building SECURE Kermit for Red Hat 7.1..."
7972 $(MAKE) linux+krb5+krb4+openssl+zlib+shadow+pam \
7973 KTARGET=$${KTARGET:-$(@)} "KFLAGS = -DRH71 $(KFLAGS)"
7974
7975 redhat71+srp:
7976 @echo "Building SECURE Kermit for Red Hat 7.1..."
7977 $(MAKE) linux+krb5+krb4+srp+openssl+zlib+shadow+pam \
7978 KTARGET=$${KTARGET:-$(@)} "KFLAGS = -DRH71 $(KFLAGS)"
7979
7980 #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.2.2, OpenSSL
7981 # with ZLIB and PAM and Shadow passwords
7982 linux+krb5+openssl+zlib+shadow+pam:
7983 @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB5,SSL...'
7984 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
7985 "CFLAGS = -g -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC \
7986 -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 -DCK_SHADOW -DHAVE_PTMX \
7987 -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL -DCK_PAM -DZLIB \
7988 -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H \
7989 $(K5INC) $(K5INC)/krb5 $(SSLINC) \
7990 $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" \
7991 "LIBS = $(K5LIB) $(SSLLIB) \
7992 -lm -lncurses -ltermcap -lssl -lcrypto -lgssapi_krb5 \
7993 -lkrb5 -lcom_err -lk5crypto -lcrypt -lresolv -lpam -ldl -lz"
7994
7995 # "make linuxnotcp" with lcc (see http://www.cs.princeton.edu/software/lcc)
7996 # lcc does not understand various gcc extensions:
7997 # "__inline__" -- can be eliminated by adding "-D__inline__="
7998 # "__asm__ and "long long" -- in header files, should be surrounded by
7999 # "#ifndef(__STRICT_ANSI__)"/"#endif"
8000 # however, TCP requires some __asm__ functions, so cannot be compiled
8001 linuxnotcp-lcc:
8002 @echo 'Making C-Kermit $(CKVER) for Linux with lcc ...'
8003 @echo 'Read comments in makefile for additional information.'
8004 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC = lcc" "CC2 = lcc" \
8005 "CFLAGS = -DLINUX -DPOSIX -DCK_CURSES -DCK_POSIX_SIG \
8006 -UTCPSOCKET -DLINUXFSSTND -DNOLEARN $(KFLAGS)" \
8007 "LNKFLAGS = $(LNKFLAGS)" "LIBS = -lcurses -ltermcap"
8008
8009 # Linux 0.99.14 thru 1.0 with gcc, dynamic libraries, curses, TCP/IP.
8010 # For Linux 1.2 or later, use "make linux" (above).
8011 #
8012 # -DLINUXFSSTND (Linux File System Standard) gives UUCP lockfile /var/lock with
8013 # string pid. Remove this and get /usr/spool/uucp with int pid, which was used
8014 # in early Linux versions.
8015 #
8016 # If you get compiler errors regarding <linux/serial.h>, add -DNOHISPEED.
8017 #
8018 # -DCK_POSIX_SIG (POSIX signal handling) is good for Linux releases back to at
8019 # least 0.99.14; if it causes trouble for you, just remove it.
8020 #
8021 # -DCK_CURSES: Here we link with the regular curses library. But you should
8022 # be using ncurses. Internally, the ckuusx.c module includes <curses.h>, but
8023 # this really should be <ncurses.h>. Thus if you have the new curses
8024 # material, you should either install it with the standard names, or else
8025 # create symbolic links from the standard names to the new ones. If you get
8026 # compile-time errors complaining about data definitions in termcap.h, it
8027 # means you have new kernel material mixed with older libc header files. To
8028 # fix, add "#include <termios.h>" to the <termcap.h> file. Or if all this is
8029 # too confusing, create a new makefile entry based on this one, but with
8030 # -DCK_CURSES removed from CFLAGS and the entire LIBS= clause removed.
8031 #
8032 # But wait, there's more. On most Linux systems, -ltermcap must be included
8033 # in LIBS. But on others, the linker complains that libtermcap can't be
8034 # found. In that case, try removing -ltermcap from LIBS=.
8035 #
8036 # But wait, there's more. The format of the PID string in the UUCP lockfile
8037 # changed between Linux FSSTND 1.0 and 1.2. In the earlier standard, it had
8038 # leading zeros; in the second, it has leading spaces. By default this entry
8039 # uses the newer standard. To force the older one, add -DFSSTND10.
8040 #
8041 # "The nice thing about the Linux standard is there are so many to choose from"
8042 #
8043 # NOTE: Remove -DBIGBUFOK for small-memory or limited-resource systems.
8044 linux10:
8045 @echo 'Making C-Kermit $(CKVER) for Linux 1.0 or earlier...'
8046 @echo 'IMPORTANT: Read the comments in the linux section of the'
8047 @echo 'makefile if you get compilation or link errors.'
8048 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
8049 "CFLAGS = -O -DPOSIX -DCK_CURSES -DCK_POSIX_SIG -DLINUX \
8050 -DTCPSOCKET -DLINUXFSSTND -DOLINUXHISPEED -DNOLEARN $(KFLAGS)" \
8051 "LNKFLAGS = $(LNKFLAGS)" "LIBS = -lcurses -ltermcap"
8052
8053 #This version was used for Linux prior to C-Kermit 6.0.192.
8054 #Now the "Linux File System Standard" is considered standard, ditto TCP/IP.
8055 linuxold:
8056 @echo 'Making C-Kermit $(CKVER) for Linux...'
8057 @echo 'For FSSTND-recommended UUCP lockfiles, use:'
8058 @echo ' make linux "KFLAGS=-DLINUXFSSTND".'
8059 @echo 'Read comments in makefile for additional options.'
8060 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
8061 "CFLAGS = -O -DLINUX -DPOSIX -DCK_CURSES -DCK_POSIX_SIG -DNOLEARN \
8062 $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" "LIBS = -lcurses -ltermcap"
8063
8064 # ::END_OLD_LINUX_TARGETS::
8065
8066 # LynxOS 2.2 with GCC compiler, TCP/IP and fullscreen display.
8067 # Probably also works with Lynx 2.1, and maybe even Lynx 2.0.
8068 # -X means use termios serial drivers rather than BSD4.3-style sgtty drivers.
8069 # If you have trouble with this, try "make bsd KFLAGS=-DNOFDZERO".
8070 lynx:
8071 @echo 'Making C-Kermit $(CKVER) for LynxOS 2.2 with TCP/IP'
8072 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
8073 "CFLAGS= -O -DPOSIX -DDIRENT -DSETREUID -DCK_CURSES -DTCPSOCKET \
8074 -DCK_ANSIC -DLYNXOS -DNOLEARN" "LNKFLAGS = -X" "LIBS = -lcurses -lbsd"
8075
8076 lynx22:
8077 $(MAKE) lynx KTARGET=$${KTARGET:-$(@)} "KFLAGS=$(KFLAGS)"
8078
8079 # LynxOS 2.1 with GCC compiler 1.40 and TCP/IP.
8080 lynx21:
8081 @echo 'Making C-Kermit $(CKVER) for LynxOS 2.1 with TCP/IP'
8082 $(MAKE) kermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
8083 "CFLAGS= -O -DSETREUID -DTCPSOCKET -DCK_ANSIC -DBSD4 -DLYNXOS" \
8084 "LIBS = -lbsd"
8085
8086 #SCO Xenix 2.2.1 for IBM PC, XT, PS2/30, or other 8088 or 8086 machine
8087 #Should this not work, try some of the tricks from sco286.
8088 #NOTE: -DRENAME is omitted for early SCO Xenix releases because it didn't
8089 #exist, or its semantics were different from the later POSIX-compliant
8090 #version of rename().
8091 sco86:
8092 @echo 'Making C-Kermit $(CKVER) for SCO Xenix/86...'
8093 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
8094 "CFLAGS= -DXENIX -DNOFILEH -DNOIKSD -DNOUNICODE -DNOLEARN \
8095 $(KFLAGS) -Dunix -F 3000 -i -M0me" \
8096 "LNKFLAGS = -F 3000 -i -s -M0me" "LIBS = -lx"
8097
8098 #SCO Xenix/286 2.2.1, e.g. for IBM PC/AT, PS/2 Model 50, etc.
8099 #Reportedly, this "make" can fail simply because of the size of this
8100 #makefile. If that happens, use "makeL", or edit out some of the
8101 #other entries. No debugging or character-set translation.
8102 sco286:
8103 @echo 'Making C-Kermit $(CKVER) for SCO Xenix/286...'
8104 @echo 'If make fails, try using makeL.'
8105 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
8106 "CFLAGS= -xenix -s -O -LARGE -DXENIX -DNOFILEH -Dunix -DRDCHK -DNAP \
8107 -DNOIKSD -DNODEBUG -DNOTLOG -DNOCSETS -DNOLEARN \
8108 $(KFLAGS) -F 3000 -i -M2let16" \
8109 "LIBS = -lx" "LNKFLAGS = -xenix -s -O -LARGE -F 3000 -i -M2let16"
8110
8111 #SCO Xenix/286 2.2.1, e.g. for IBM PC/AT, PS/2 Model 50, etc.
8112 #As above, but with HDBUUCP (This one might need fixing -- see sco286).
8113 sco286hdb:
8114 @echo 'Making C-Kermit $(CKVER) for SCO Xenix/286 with HDB UUCP...'
8115 @echo 'If make fails, try using makeL.'
8116 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
8117 "CFLAGS= -s -O -LARGE -DXENIX -DNOFILEH -Dunix -DRDCHK -DNAP \
8118 -DHDBUUCP -DNOIKSD -DNOUNICODE -DNOLEARN \
8119 $(KFLAGS) -F 3000 -i -M2let32" \
8120 "LIBS = -lx" "LNKFLAGS = -s -O -LARGE -F 3000 -i -M2let32"
8121
8122 #SCO Xenix/386 2.2.2 and 2.2.3
8123 sco386:
8124 @echo 'Making C-Kermit $(CKVER) for SCO Xenix/386 2.2.2...'
8125 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
8126 "CFLAGS= -DXENIX -DNOFILEH -DNOIKSD -DNOREDIRECT -DNOLEARN \
8127 -Dunix -DRDCHK -DNAP -DNOUNICODE $(KFLAGS) -Otcl -M3e" \
8128 "LNKFLAGS = -s" "LIBS = -lx"
8129
8130 #SCO XENIX/386 2.2.3 with Excelan TCP/IP + curses.
8131 # NOTE: This one might need some work in C-Kermit 6.0.
8132 # You might need to include /usr/include/sys/types.h
8133 # containing "typedef char *caddr_t;". Then at least it compiles.
8134 sco386netc:
8135 @echo 'Making C-Kermit $(CKVER) for SCO Xenix/386 2.2.3 + Excelan TCP'
8136 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
8137 "CFLAGS= -I/usr/include/exos -DXENIX -DCK_CURSES -DNOUNICODE \
8138 -Dunix -DRDCHK -DNAP -DTCPSOCKET -DEXCELAN -DNOJC -DNOMKDIR -DNOFILEH \
8139 -DNOLEARN -DNOREDIRECT -DNOIKSD -DNO_DNS_SRV $(KFLAGS) -Otcl -M3e" \
8140 "LNKFLAGS = -s" "LIBS = -lc -lx -lsocket -lcurses -ltermcap"
8141
8142 #SCO XENIX/386 2.3.3 with gcc 1.37 or later...
8143 sco386gcc:
8144 @echo 'Making C-Kermit $(CKVER) for SCO Xenix/386 2.3.3, gcc...'
8145 @echo 'Add -D_NO_PROTOTYPE if you have trouble with Xenix header files'
8146 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
8147 "CFLAGS= -O -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP \
8148 -DNOJC -DNODEBUG -DNOUNICODE -DNOLEARN $(KFLAGS) \
8149 -traditional -fpcc-struct-return -fstrength-reduce \
8150 -DM_BITFIELDS -DM_COFF -DM_I386 -DM_I86 -DM_I86SM \
8151 -DM_INTERNAT -DM_SDATA -DM_STEXT -DM_SYS3 -DM_SYS5 \
8152 -DM_SYSIII -DM_SYSV -DM_WORDSWAP -DM_XENIX -DNOIKSD -DNOREDIRECT \
8153 -DPWID_T=int " "LNKFLAGS = -s" "LIBS = -lx"
8154
8155 #As above, but with curses...
8156 sco386gccc:
8157 @echo 'Making C-Kermit $(CKVER) for SCO Xenix/386 2.3.3, gcc...'
8158 @echo 'Add -D_NO_PROTOTYPE if you have trouble with Xenix header files'
8159 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc" \
8160 "CFLAGS= -O -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP \
8161 -DNOJC -DNODEBUG -DCK_CURSES -DNOUNICODE -DNOLEARN $(KFLAGS) \
8162 -traditional -fpcc-struct-return -fstrength-reduce \
8163 -DM_BITFIELDS -DM_COFF -DM_I386 -DM_I86 -DM_I86SM -DNOREDIRECT \
8164 -DM_INTERNAT -DM_SDATA -DM_STEXT -DM_SYS3 -DM_SYS5 \
8165 -DM_SYSIII -DM_SYSV -DM_WORDSWAP -DM_XENIX -DNOIKSD \
8166 -DPWID_T=int " "LNKFLAGS = -s" "LIBS = -lx -lcurses -ltermlib"
8167
8168 #SCO UNIX (and ODT) entries...
8169 #
8170 #NOTE: All SCO UNIX entry LIBS should have "-lc_s -lc -lx" IN THAT ORDER (if
8171 #shared C library is desired), or else "-lc -lx" IN THAT ORDER. Use shared C
8172 #libraries to save memory, but then don't expect to run the resulting binary
8173 #on a different machine. When using -lc_s, you must also use -lc, because the
8174 #shared C library does not contain all of libc.a. And in all cases, -lc must
8175 #ALWAYS precede -lx.
8176 #
8177 #ANOTHER NOTE: -DRENAME is included in all SCO UNIX entries. Remove it if it
8178 #causes trouble. No harm is done by removing it (see ckuins.txt).
8179 #
8180 #AND ANOTHER: In theory, it should be possible to run SCO UNIX binaries on
8181 #SCO Xenix 2.3 and later. In practice, this might not work because of the
8182 #libraries, etc. Also, don't add the -link -z switch (which is supposed to
8183 #root out references to null pointers) because it makes UNIX binaries core
8184 #dump when they are run under Xenix.
8185
8186 #NOTE: -Otcl removed and replaced by -O, since -Otcl produced incorrect code.
8187 #SCO UNIX/386 3.2.0, 3.2.1, and SCO Xenix 2.3.x
8188 sco3r2:
8189 @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2.0 or 3.2.1 ...'
8190 @echo 'Warning: If make blows up, edit the makefile to join'
8191 @echo 'the following three continued lines into one line.'
8192 @echo 'Also, remove -DRENAME if _rename unresolved at link time.'
8193 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
8194 "CFLAGS= -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP -DNOLEARN \
8195 -DRENAME -DNOIKSD -DNOJC $(KFLAGS) -O" \
8196 "LNKFLAGS = -s" "LIBS = -lc -lx"
8197
8198 #SCO UNIX/386 3.2.0 and SCO Xenix 2.3.x with Excelan TCP/IP support.
8199 #In case of compilation or runtime problems, try adding
8200 #"-DUID_T=int -DGID_T=int" to the CFLAGS. If that doesn't work, try
8201 #"-DUID_T=uid_t -DGID_T=gid_t".
8202 sco3r2net:
8203 @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 / Excelan...'
8204 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
8205 "CFLAGS= -I/usr/include/exos -DXENIX -DSVR3 -DNOFILEH -DNOLEARN \
8206 -DHDBUUCP -DRDCHK -DNAP -DRENAME -DTCPSOCKET -DEXCELAN -DNOJC \
8207 -DNOIKSD -DNOREDIRECT $(KFLAGS) -O" \
8208 "LNKFLAGS = -s" "LIBS = -lc -lx -lsocket"
8209
8210 #SCO UNIX/386 3.2.0 and SCO Xenix 2.3.x with Excelan TCP/IP support.
8211 #As above, with curses added.
8212 sco3r2netc:
8213 @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 / Excelan / curses...'
8214 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
8215 "CFLAGS= -I/usr/include/exos -DXENIX -DSVR3 -DNOFILEH -DNOLEARN \
8216 -DHDBUUCP -DRDCHK -DNAP -DTCPSOCKET -DEXCELAN -DNOJC $(KFLAGS) \
8217 -DRENAME -DCK_CURSES -DNOREDIRECT -DNOIKSD -O" "LNKFLAGS = -s" \
8218 "LIBS = -lc -lx -lsocket -lcurses -ltermcap"
8219
8220 #SCO UNIX 3.2.x or SCO Xenix 2.3.x with Racal InterLan TCP/IP support
8221 # Extra compile flags for other version of Racal InterLan TCP/IP:
8222 # Xenix286/NP621-286, use -Ml -DPARAMH -DINTERLAN -Di286 -DSYSV
8223 # Xenix386/NP621-386, use -DPARAMH -DINTERLAN -Di386 -DSYSV
8224 # ISC386ix/NP622I, use -DSYSV -Di386
8225 # SCO Unix3.2/NP622S, use -DSYSV -Di386 -DSCO_UNIX
8226 # AT&T SVR3.2/NP622A, use -DSYSV -Di386 -DATT
8227 sco3r2netri:
8228 @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 / Racal InterLan...'
8229 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
8230 "CFLAGS= -I/usr/include/interlan -DXENIX -DNOFILEH -DHDBUUCP \
8231 -DSVR3 -DRDCHK -DNAP -DTCPSOCKET -DPARAMH -DINTERLAN -Di386 -DSYSV \
8232 -DRENAME -DNOREDIRECT -DNOIKSD -DNOJC -DNOLEARN $(KFLAGS) -Otcl -M3e" \
8233 "LNKFLAGS = -s" "LIBS = -lc -lx -ltcp"
8234
8235 # SCO XENIX/386 2.3.3 SysV with SCO TCP/IP
8236 # System V STREAMS TCP developed by Lachman Associates Inc and
8237 # Convergent Technologies.
8238 # -DRENAME removed since some reports indicate it is not supported
8239 # (whereas others say it is.)
8240 sco3r2lai:
8241 @echo 'Making C-Kermit $(CKVER) for SCO XENIX/386 2.3.3 + TCP/IP...'
8242 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
8243 "CFLAGS= -DLAI_TCP -Di386 -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK \
8244 -DNAP -DTCPSOCKET -DPWID_T=int -DNOREDIRECT -DNOIKSD -DNOLEARN \
8245 $(KFLAGS) -Otcl -i -M3e" \
8246 "LNKFLAGS = -i -s" "LIBS = -lc -lx -lsocket"
8247
8248 sco3r2laic:
8249 @echo 'Making C-Kermit $(CKVER) for SCO XENIX/386 2.3.3 + TCP/IP...'
8250 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
8251 "CFLAGS= -DLAI_TCP -Di386 -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK \
8252 -DNAP -DTCPSOCKET -DCK_ANSIC -DCK_CURSES -DM_TERMINFO -DNOLEARN \
8253 -DPWID_T=int -DNOREDIRECT -DNOIKSD $(KFLAGS) -Otcl -i -M3e" \
8254 "LNKFLAGS = -i -s" "LIBS = -ltinfo -lc -lx -lsocket"
8255
8256 #SCO UNIX/386 3.2v2 (POSIX job control), shared libraries.
8257 sco3r22:
8258 @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v2 ...'
8259 make wermit KTARGET=$${KTARGET:-$(@)} \
8260 "CFLAGS= -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNOLEARN \
8261 -DNAP -DRENAME -DPID_T=pid_t -DPWID_T=int -DDIRENT -DNOIKSD \
8262 -DNOREDIRECT $(KFLAGS) -O" \
8263 "LNKFLAGS = -s" "LIBS = -lc_s -lc -lx"
8264
8265 #SCO UNIX/386 3.2v2, POSIX job control, fullscreen file transfer display,
8266 #dynamic memory allocation, shared C library
8267 sco3r22c:
8268 @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v2 ...'
8269 @echo 'Warning: If make blows up, edit the makefile to join'
8270 @echo 'the following four continued lines into one line.'
8271 make wermit KTARGET=$${KTARGET:-$(@)} \
8272 "CFLAGS= -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP -DNOLEARN \
8273 -DCK_CURSES -DDIRENT -DRENAME -DNOREDIRECT -DNOIKSD \
8274 -DPID_T=pid_t -DPWID_T=int $(KFLAGS) -O" \
8275 "LNKFLAGS = -s" "LIBS = -lcurses -lc_s -lc -lx"
8276
8277 #SCO UNIX/386 3.2v2 with gcc 1.40 or later (POSIX job control)
8278 sco3r22gcc:
8279 @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v2, gcc'
8280 @echo 'Warning: If make blows up, edit the makefile to join'
8281 @echo 'the following seven continued lines into one line.'
8282 make wermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" \
8283 "CFLAGS= -O -DPOSIX -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP \
8284 -DNOLEARN -DRENAME -traditional -fpcc-struct-return -fstrength-reduce \
8285 -DM_BITFIELDS -DM_COFF -DM_I386 -DM_I86 -DM_I86SM \
8286 -DM_INTERNAT -DM_SDATA -DM_STEXT -DM_SYS3 -DM_SYS5 \
8287 -DM_SYSIII -DM_SYSV -DM_UNIX -DM_WORDSWAP -DM_XENIX -Dunix \
8288 -DPID_T=pid_t -DPWID_T=int -DNOREDIRECT -DNOIKSD $(KFLAGS) " \
8289 "LNKFLAGS = -s" "LIBS = -lc_s -lc -lx"
8290
8291 #SCO UNIX/386 3.2v2 (ODT 1.1) (POSIX job control) with SCO TCP/IP, shared libs
8292 #Requires SCO TCP/IP or ODT development system for telnet.h, etc.
8293 sco3r22net:
8294 @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2.2 + TCP/IP...'
8295 @echo 'Warning: If make blows up, edit the makefile to join'
8296 @echo 'the following three continued lines into one line.'
8297 make xermit KTARGET=$${KTARGET:-$(@)} \
8298 "CFLAGS= -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP -DTCPSOCKET \
8299 -DRENAME -DPID_T=pid_t -DPWID_T=int -DDIRENT -DNOREDIRECT -DNOIKSD \
8300 $(KFLAGS) -O" "LNKFLAGS = -s" "LIBS = -lsocket -lc_s -lc -lx"
8301
8302 #As above, but with curses for fullscreen file transfer display.
8303 #Requires SCO TCP/IP or ODT development system for telnet.h, etc.
8304 sco3r22netc:
8305 @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v2 + TCP/IP...'
8306 @echo 'Warning: If make blows up, edit the makefile to join'
8307 @echo 'the following three continued lines into one line.'
8308 make xermit KTARGET=$${KTARGET:-$(@)} "CFLAGS= \
8309 -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP -DTCPSOCKET -DRENAME \
8310 -DCK_CURSES -DDIRENT -DNOIKSD -DNOREDIRECT \
8311 -DPID_T=pid_t -DPWID_T=int -O $(KFLAGS)" \
8312 "LNKFLAGS = -s" "LIBS = -lcurses -lsocket -lc_s -lc -lx"
8313
8314 #SCO XENIX 2.3.4, no curses, no TCP/IP, no IKSD.
8315 #This one built and tested in C-Kermit 7.0.
8316 #lcfp is C library floating-point support.
8317 #Use -M3 to generate 32-bit i386 code instead of 16-bit segmented i286 code.
8318 #Use -Me to enable MS nonstandard keywords in system headers.
8319 #Use -W2 or W3 to increase the warning level.
8320 #OK: 2011/06/15
8321 sco234:
8322 @echo 'Making C-Kermit $(CKVER) for SCO XENIX 2.3.4...'
8323 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
8324 "CFLAGS= -DSCO32 -DXENIX -DNOFILEH -DHDBUUCP -DRDCHK -DNOLEARN \
8325 -DNAP -DNOJC -DNOCOTFMC -DNOIKSD -DNOREDIRECT -DNOTNCODE -DNOGFTIMER \
8326 -DNOTIMEVAL -DNOTIMEZONE -DNOSYMLINK -DSCO234 -DDCLGETCWD $(KFLAGS) \
8327 -Otcl" "LNKFLAGS = -s" "LIBS = -lcfp -lc -lx"
8328
8329 #SCO XENIX 2.3.4, no TCP/IP, no IKSD, but with curses.
8330 # Built and tested in C-Kermit 7.0.
8331 # Note: XENIX 2.3.4 does not have newterm() so no point in adding -DCK_NEWTERM.
8332 sco234c:
8333 @echo 'Making C-Kermit $(CKVER) for SCO XENIX 2.3.4 + curses...'
8334 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
8335 "CFLAGS= -DSCO32 -DXENIX -DNOFILEH -DHDBUUCP -DRDCHK -DNOLEARN \
8336 -DNAP -DNOJC -DNOCOTFMC -DNOIKSD -DNOREDIRECT -DNOTNCODE -DNOGFTIMER \
8337 -DNOTIMEVAL -DNOTIMEZONE -DNOSYMLINK -DCK_CURSES -DSCO234 \
8338 -DDCLGETCWD $(KFLAGS) -Otcl" \
8339 "LNKFLAGS = -s" "LIBS = -lcfp -lc -ltinfo -lx"
8340
8341 #SCO XENIX 2.3.4 with SCO TCP/IP and curses, no IKSD.
8342 # Built and tested in C-Kermit 7.0. TCP/IP works and curses works.
8343 # Previous versions of this target included -lmalloc, but this caused "error:
8344 # " _calloc : symbol defined more than once" at link time so I removed it.
8345 # Results are likely to vary depending on exactly which version of the SDK
8346 # and TCP/IP SDK you have.
8347 sco234netc:
8348 @echo 'Making C-Kermit $(CKVER) for SCO XENIX 2.3.4 + TCP + curses...'
8349 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
8350 "CFLAGS= -DSCO32 -DXENIX -DNOFILEH -DHDBUUCP -DRDCHK -DNOLEARN \
8351 -DNAP -DNOJC -DNOCOTFMC -DNOIKSD -DNOREDIRECT -DNOTNCODE -DNOGFTIMER \
8352 -DNOTIMEVAL -DNOTIMEZONE -DNOSYMLINK -DCK_CURSES -DSCO234 \
8353 -DDCLGETCWD -DTCPSOCKET -DNO_DNS_SRV $(KFLAGS) -Otcl" \
8354 "LNKFLAGS = -s" "LIBS = -ltinfo -lsocket -lcfp -lc -lx"
8355
8356 # SCO 3.2v4.x targets...
8357
8358 # NOTE: Add -DDCLPOPEN and/or -DDCLFDOPEN to anySCO 3.2v4.x non-gcc entries
8359 # that complain about fdopen() or popen() at compile time. They compile OK
8360 # without these flags as of July 1999. However, the gcc entries seem to
8361 # need them, at least for gcc 2.7.2.2.
8362
8363 # NOTE 2: To enable IKSD support, add:
8364 # -DCK_LOGIN -DNOGETUSERSHELL -DNOINITGROUPS
8365 # to CFLAGS (not tested).
8366
8367 #SCO UNIX/386 3.2v4 (POSIX job control), curses, ANSI C compilation,
8368 #<dirent.h> (EAFS) file system. Remove -lmalloc if it causes trouble. It was
8369 #put there to avoid core dumps caused by regular libc.a malloc. Add -J to make
8370 #all chars unsigned. This version uses select() for CONNECT and also has
8371 #high-precision timers and so might not work on non-TCP systems, in which case
8372 #sco32v4ns should be used instead.
8373 # If you get _ftime redefinition_ complaint, try adding -DODT30 to CFLAGS.
8374 sco32v4:
8375 @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v4...'
8376 make xermit KTARGET=$${KTARGET:-$(@)} \
8377 "CFLAGS= -DCK_SCO32V4 -DNOFILEH -DHDBUUCP -DCK_CURSES -DM_TERMINFO \
8378 -DNOANSI -DSELECT -DNOIKSD -DDCLGETCWD -NOLSTAT \
8379 -DNOLINKBITS -DDCLGETCWD $(KFLAGS) -O" \
8380 "LNKFLAGS = -s" "LIBS = -lcurses -lmalloc -lsocket -lc_s -lc -lx"
8381
8382 # As above, but with no dependence on sockets library or select().
8383 sco32v4ns:
8384 @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v4...'
8385 @echo 'No select() and no sockets library.'
8386 make wermit KTARGET=$${KTARGET:-$(@)} \
8387 "CFLAGS= -DCK_SCO32V4 -DNOFILEH -DHDBUUCP -DCK_CURSES -DM_TERMINFO \
8388 -DNOANSI -DNOIKSD -DNOGFTIMER -DCK_POLL -DNAP -DDCLGETCWD -DNOLSTAT \
8389 -DNOLINKBITS -DDCLGETCWD -DNOLEARN -O $(KFLAGS)" \
8390 "LNKFLAGS = -s" "LIBS = -lcurses -lmalloc -lc_s -lc -lx"
8391
8392 #SCO UNIX/386 3.2v4 (POSIX job control), TCP/IP, curses, ANSI C compilation,
8393 #<dirent.h> (EAFS) file system. With DIRENT, -lc must come before -lx.
8394 #Reportedly it's OK to add -DCK_REDIR and -DCK_WREFRESH, and to remove -lc_s.
8395 #Requires SCO TCP/IP development system or ODT for telnet.h, etc.
8396 #See sco32v4 above for additional comments.
8397 #NOTE: No more room for -Dxxx -- 25 seems to be the limit. Move some to
8398 #ckcdeb.h or somewhere...
8399 sco32v4net:
8400 @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v4...'
8401 @echo 'If you get _ftime redefinition_ complaint,'
8402 @echo 'use make sco-odt30.'
8403 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
8404 "CFLAGS= -DNOFILEH -DHDBUUCP -DTCPSOCKET -DCK_ANSIC -DCK_CURSES \
8405 -DNAP -DCK_WREFRESH -DNOLINKBITS -D_IBCS2 -DSELECT -DNOLSTAT \
8406 -DDCLGETCWD -DCK_SCO32V4 -DNOIKSD -O \
8407 $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS) -s" \
8408 "LIBS = $(LIBS) -lcurses -lsocket -lmalloc -lsocket -lc_s -lc -lx"
8409
8410 #SCO UNIX/386 3.2v4 with gcc 1.40 or later, POSIX job control.
8411 #Also see comments in sco32r4 entry.
8412 sco32v4gcc:
8413 make xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" \
8414 "CFLAGS= -O -DNOFILEH -DHDBUUCP -DNOANSI -DCK_CURSES -DM_TERMINFO \
8415 -traditional -fpcc-struct-return -fstrength-reduce -funsigned-char \
8416 -D_KR -D_NO_PROTOTYPE -D_SVID -DNOIKSD -DCK_SCO32V4 -DNOLINKBITS \
8417 -DM_BITFIELDS -DM_COFF -DM_I386 -DM_I86 -DM_I86SM -DSELECT -DNOLSTAT \
8418 -DM_INTERNAT -DM_SDATA -DM_STEXT -DM_SYS3 -DM_SYS5 -DDCLGETCWD \
8419 -DM_SYSIII -DM_SYSV -DM_UNIX -DM_WORDSWAP -DM_XENIX -Dunix \
8420 -DDCLPOPEN -DDCLFDOPEN $(KFLAGS) " \
8421 "LNKFLAGS = -s" "LIBS = -lcurses -lsocket -lc_s -lc -lx"
8422
8423 #SCO UNIX/386 3.2v4 (POSIX job control), TCP/IP, curses, ANSI C compilation,
8424 #Requires SCO TCP/IP or ODT development system for telnet.h, etc.
8425 #<dirent.h> (EAFS) file system. With DIRENT, -lc must come before -lx.
8426 #gcc 1.40 or later. Also see comments in sco32r4 entry.
8427 sco32v4netgcc:
8428 make xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2=gcc" \
8429 "CFLAGS= -O2 -DNOFILEH -DHDBUUCP -DSELECT -DNOLSTAT \
8430 -DNOANSI -DTCPSOCKET -DCK_CURSES -DM_TERMINFO \
8431 -D_KR -D_NO_PROTOTYPE -D_SVID -DNOIKSD -DCK_SCO32V4 -DNOLINKBITS \
8432 -DM_BITFIELDS -DM_COFF -DM_I386 -DM_I86 -DM_I86SM -DDCLGETCWD \
8433 -DM_INTERNAT -DM_SDATA -DM_STEXT -DM_SYS3 -DM_SYS5 \
8434 -DM_SYSIII -DM_SYSV -DM_UNIX -DM_WORDSWAP -DM_XENIX -Dunix \
8435 -DDCLPOPEN -DDCLFDOPEN $(KFLAGS)" \
8436 "LNKFLAGS = -s" "LIBS = -lcurses -lsocket -lc_s -lc -lx"
8437
8438 #As above but with bgcc BOUNDS CHECKING (for developers only). -lcheck has
8439 #bounds-checking replacements for malloc, memcpy, bcopy, etc, so must come
8440 #before -lsocket and -lc.
8441 sco32v4netbgcc:
8442 make xermit KTARGET=$${KTARGET:-$(@)} \
8443 "CC = bgcc -pipe -m386" "CC2=bgcc -pipe -m386" \
8444 "CFLAGS= -O1 -g -DNOFILEH -DHDBUUCP -DSELECT \
8445 -DNOANSI -DTCPSOCKET -DCK_CURSES -DM_TERMINFO \
8446 -D_KR -D_NO_PROTOTYPE -D_SVID -DNOIKSD -DCK_SCO32V4 -DNOLSTAT \
8447 -DM_BITFIELDS -DM_COFF -DM_I386 -DM_I86 -DM_I86SM -DNOLINKBITS \
8448 -DM_INTERNAT -DM_SDATA -DM_STEXT -DM_SYS3 -DM_SYS5 -DDCLGETCWD \
8449 -DM_SYSIII -DM_SYSV -DM_UNIX -DM_WORDSWAP -DM_XENIX -Dunix \
8450 -DDCLPOPEN -DDCLFDOPEN $(KFLAGS) " \
8451 "LNKFLAGS = -g" "LIBS = -lcurses -lcheck -lsocket -lx"
8452
8453 sco32v4netnd:
8454 @echo sco32v4net with no debug
8455 $(MAKE) "MAKE=$(MAKE)" sco32v4net KTARGET=$${KTARGET:-$(@)} \
8456 "KFLAGS=$(KFLAGS) -DNODEBUG -DNOTLOG" "LIBS=$(LIBS)"
8457
8458 sco3r2netnd:
8459 @echo sco32v4netnd built for SCO XENIX 2.3 under SCO UNIX...
8460 @echo requires copying /lib/386/Slibc.a to /lib/386/Slibc_s.a and
8461 @echo getting /lib/386/Slibsocket.a from a XENIX devkit.
8462 @echo WARNING: poll/CK_POLL supported only on XENIX 2.3.4
8463 echo For earlier XENIX systems, replace CK_POLL with RDCHK.
8464 $(MAKE) "MAKE=$(MAKE)" sco32v4netnd KTARGET=$${KTARGET:-$(@)} \
8465 "KFLAGS=$(KFLAGS) -x2.3 -DNORENAME -DNOSYMLINK" \
8466 "LNKFLAGS = $(LNKFLAGS) -x2.3" \
8467 "LIBS=-ldir -lcfp $(LIBS)"
8468
8469 #SCO UNIX/386 3.2v4 (POSIX job control), TCP/IP, curses, ANSI C compilation,
8470 #<dirent.h> (EAFS) file system. With DIRENT, -lc must come before -lx.
8471 #Reportedly it's OK to add -DCK_REDIR and -DCK_WREFRESH, and to remove -lc_s.
8472 #Requires SCO TCP/IP development system or ODT for telnet.h, etc.
8473 #See sco32v4 above for additional comments.
8474 # Note: "xermit" means use the select() version of the CONNECT module.
8475 sco32v4netx:
8476 @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v4...'
8477 @echo 'If you get _ftime redefinition_ complaint,'
8478 @echo 'use make sco-odt30.'
8479 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
8480 "CFLAGS= -DNOFILEH -DHDBUUCP -DTCPSOCKET -DCK_ANSIC -DCK_CURSES -DNAP \
8481 -DCK_WREFRESH -DNOLINKBITS -D_IBCS2 -DSELECT -DDCLGETCWD \
8482 -DCK_SCO32V4 -DNOIKSD -DNOLSTAT -O $(KFLAGS)" \
8483 "LNKFLAGS = $(LNKFLAGS) -s" \
8484 "LIBS = $(LIBS) -lcurses -lsocket -lmalloc -lsocket -lc_s -lc -lx"
8485
8486 sco32v4netndx:
8487 @echo sco32v4netx with no debug
8488 $(MAKE) "MAKE=$(MAKE)" sco32v4netx KTARGET=$${KTARGET:-$(@)} \
8489 "KFLAGS=$(KFLAGS) -DNODEBUG -DNOTLOG" "LIBS=$(LIBS)"
8490
8491 sco3r2netndx:
8492 @echo sco32v4netndx built for SCO XENIX 2.3 under SCO UNIX...
8493 @echo requires copying /lib/386/Slibc.a to /lib/386/Slibc_s.a and
8494 @echo getting /lib/386/Slibsocket.a from a XENIX devkit.
8495 @echo WARNING: poll/CK_POLL supported only on XENIX 2.3.4
8496 echo For earlier XENIX systems, replace CK_POLL with RDCHK.
8497 $(MAKE) "MAKE=$(MAKE)" sco32v4netndx KTARGET=$${KTARGET:-$(@)} \
8498 "KFLAGS=$(KFLAGS) -x2.3 -DNORENAME -DNOSYMLINK" \
8499 "LNKFLAGS = $(LNKFLAGS) -x2.3" \
8500 "LIBS=-ldir -lcfp $(LIBS)"
8501
8502 sco-odt30:
8503 @echo SCO ODT 3.0
8504 $(MAKE) "MAKE=$(MAKE)" sco32v4net KTARGET=$${KTARGET:-$(@)} \
8505 "KFLAGS=$(KFLAGS) -DODT30"
8506
8507 #SCO OpenServer 5.0 (SCO UNIX 3.2v5.0) with SCO development tools, no TCP/IP.
8508 #SCO OSR5 is much more like standard System V than previous SCO releases.
8509 #The SCO development tools include TCP/IP, so this target is only for creating
8510 #artificially limited versions of kermit required by site policy rather than
8511 #the operating system. NOSYSLOG is included because syslog() requires the
8512 #sockets library.
8513 sco32v500:
8514 @echo Making C-Kermit $(CKVER) for SCO OpenServer Release 5...
8515 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
8516 "CFLAGS= -O -DDIRENT -DHDBUUCP -DSVR4 -DCK_SCOV5 -DCK_RTSCTS \
8517 -DCK_CURSES -DCK_WREFRESH -DCK_NEWTERM -DSELECT -DSELECT_H \
8518 -DNOGETUSERSHELL -DNOLSTAT -DNOLINKBITS -DNOSYSLOG \
8519 -DNORLOGIN -DNO_PTY_XOPEN_SOURCE \
8520 $(KFLAGS)" \
8521 "LIBS=-lcurses $(LIBS)" "LNKFLAGS=$(LNKFLAGS)"
8522
8523 sco32v5:
8524 $(MAKE) "MAKE=$(MAKE)" "KFLAGS=$(KFLAGS)" sco32v500
8525
8526
8527 #SCO OpenServer 5.0 with networking, SCO development tools.
8528 #Networking libraries are now provided with the OS.
8529 sco32v500net:
8530 @echo Making C-Kermit $(CKVER) for SCO OpenServer Release 5...
8531 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
8532 "CFLAGS= -O -DDIRENT -DHDBUUCP -DSVR4 -DCK_SCOV5 -DCK_RTSCTS \
8533 -DCK_CURSES -DCK_WREFRESH -DCK_NEWTERM -DSELECT -DSELECT_H \
8534 -DNOGETUSERSHELL -DNOLSTAT -DNOLINKBITS -DTCPSOCKET \
8535 -DNORLOGIN -DNO_PTY_XOPEN_SOURCE \
8536 -DNO_DNS_SRV $(KFLAGS)" \
8537 "LIBS=-lcurses -lsocket $(LIBS)" "LNKFLAGS=$(LNKFLAGS)"
8538
8539 sco32v5net:
8540 $(MAKE) "MAKE=$(MAKE)" "KFLAGS=$(KFLAGS)" sco32v500net
8541
8542 #SCO OpenServer 5.0 with networking and OpenSSL, SCO development tools.
8543 #Networking libraries are now provided with the OS.
8544 sco32v500net+ssl:
8545 @echo Making C-Kermit $(CKVER) for SCO OSR5 with OpenSSL...
8546 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
8547 "CFLAGS= -O -DDIRENT -DHDBUUCP -DSVR4 -DCK_SCOV5 -DCK_RTSCTS \
8548 -DCK_CURSES -DCK_WREFRESH -DCK_NEWTERM -DSELECT -DSELECT_H \
8549 -DNOGETUSERSHELL -DNOLSTAT -DNOLINKBITS -DTCPSOCKET \
8550 -DNO_DNS_SRV -DCK_AUTHENTICATION -DCK_SSL -DCK_TRIGGER \
8551 -DNORLOGIN -DNO_PTY_XOPEN_SOURCE \
8552 $(SSLINC) $(SSLLIB) $(KFLAGS)" \
8553 "LIBS=$(SSLLIB) -lcurses -lsocket -lssl -lcrypto $(LIBS)" \
8554 "LNKFLAGS=$(LNKFLAGS)"
8555
8556 #SCO OpenServer 5.0 with gcc, no networking.
8557 #Note: NOSYSLOG required for non-net entries because it requires <socket.h>
8558 sco32v500gcc:
8559 @echo Using gcc...
8560 $(MAKE) "MAKE=$(MAKE)" sco32v500 CC=gcc CC2=gcc \
8561 KTARGET=$${KTARGET:-$(@)} "KFLAGS= $(KFLAGS)"
8562
8563 #SCO OpenServer 5.0 with networking, gcc.
8564 sco32v500netgcc:
8565 @echo TCP/IP networking added - using gcc...
8566 $(MAKE) "MAKE=$(MAKE)" sco32v500net CC=gcc CC2=gcc \
8567 KTARGET=$${KTARGET:-$(@)} "KFLAGS=$(KFLAGS)"
8568
8569 #SCO OpenServer 5.0 with networking, gcc, elf.
8570 sco32v500netgccelf:
8571 @echo TCP/IP networking added - using gcc, dynamic elf library
8572 $(MAKE) "MAKE=$(MAKE)" sco32v500net "CC=gcc" "CC2=gcc" \
8573 KTARGET=$${KTARGET:-$(@)} "KFLAGS=-O3 -belf" "LNKFLAGS=-belf"
8574
8575 sco32v502:
8576 $(MAKE) "MAKE=$(MAKE)" sco32v500 KTARGET=$${KTARGET:-$(@)} \
8577 "KFLAGS=-DSCO_OSR502 $(KFLAGS)"
8578
8579 #SCO OpenServer 5.0.2 with networking, SCO development tools.
8580 sco32v502net:
8581 @echo TCP/IP networking added...
8582 $(MAKE) "MAKE=$(MAKE)" sco32v500net KTARGET=$${KTARGET:-$(@)} \
8583 "KFLAGS=-b elf -DSCO_OSR502 $(KFLAGS)"
8584
8585 #SCO OpenServer 5.0.4 (SCO UNIX 3.2v5.0.4) with SCO development tools.
8586 #Like 5.0, but adds high serial speeds. First POSIX-based SCO version.
8587 #Note: the -O flag is deliberately omitted for /bin/cc (= /usr/ccs/bin/cc).
8588 sco32v504:
8589 @echo Making C-Kermit $(CKVER) for SCO OpenServer Release 5.0.4...
8590 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
8591 "CFLAGS= -DDIRENT -DHDBUUCP -DSVR4 -DCK_SCOV5 -DCK_RTSCTS \
8592 -DSCO_OSR504 -b elf -DPOSIX \
8593 -DCK_CURSES -DCK_WREFRESH -DCK_NEWTERM -DSELECT -DSELECT_H \
8594 -DNOGETUSERSHELL -DNOLSTAT -DNOLINKBITS -DNOSYSLOG $(KFLAGS)" \
8595 "LIBS=-lcurses $(LIBS)" "LNKFLAGS=$(LNKFLAGS)"
8596
8597 #SCO OpenServer 5.0.4 with gcc, no networking.
8598 sco32v504gcc:
8599 @echo Using gcc...
8600 $(MAKE) "MAKE=$(MAKE)" sco32v504 "CC=gcc" "CC2=gcc" \
8601 KTARGET=$${KTARGET:-$(@)} "KFLAGS= $(KFLAGS)"
8602
8603 #SCO OpenServer 5.0.4 with networking.
8604 #SCO development tools (/bin/cc = /usr/ccs/bin/cc).
8605 #Optimization deliberately suppressed.
8606 sco32v504net:
8607 @echo Making C-Kermit $(CKVER) for SCO OpenServer Release 5.0.4...
8608 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
8609 "CFLAGS= -DDIRENT -DHDBUUCP -DSVR4 -DCK_SCOV5 -DCK_RTSCTS \
8610 -DCK_CURSES -DCK_WREFRESH -DCK_NEWTERM -DSELECT -DSELECT_H \
8611 -DNOGETUSERSHELL -DNOLSTAT -DNOLINKBITS -DTCPSOCKET \
8612 -DNORLOGIN -DNO_PTY_XOPEN_SOURCE \
8613 -b elf -DSCO_OSR504 -DPOSIX -DNO_DNS_SRV $(KFLAGS)" \
8614 "LIBS=-lcurses -lsocket $(LIBS)" "LNKFLAGS=$(LNKFLAGS)"
8615
8616 #SCO OpenServer 5.0.4 with networking, gcc.
8617 sco32v504netgcc:
8618 @echo TCP/IP networking added - using gcc...
8619 $(MAKE) "MAKE=$(MAKE)" sco32v500net "CC=gcc" "CC2=gcc" \
8620 KTARGET=$${KTARGET:-$(@)} "KFLAGS=-DSCO_OSR504 -DPOSIX $(KFLAGS)"
8621
8622 #SCO OpenServer 5.0.4 with networking, gcc, elf.
8623 sco32v504netgccelf:
8624 @echo TCP/IP networking added - using gcc, dynamic elf library
8625 $(MAKE) "MAKE=$(MAKE)" sco32v500net "CC=gcc" "CC2=gcc"
8626 KTARGET=$${KTARGET:-$(@)} \
8627 "KFLAGS=-DSCO_OSR504 -DPOSIX -O3 -belf $(KFLAGS)" \
8628 LNKFLAGS="-belf"
8629
8630 #SCO OpenServer 5.0.5 (SCO UNIX 3.2v5.0.5) with SCO /bin/cc.
8631 #Like 5.0, but adds high serial speeds. First POSIX-based SCO version.
8632 #You might have to add "LIBS=-ltinfo" (some do, some don't).
8633 sco32v505:
8634 $(MAKE) "MAKE=$(MAKE)" sco32v500 KTARGET=$${KTARGET:-$(@)} \
8635 "KFLAGS=-DSCO_OSR505 -DNOSHADOW -b elf -DPOSIX $(KFLAGS)"
8636
8637 #SCO OpenServer 5.0.5 (SCO UNIX 3.2v5.0.5) with SCO UDK.
8638 #This one can't see the high serial speeds and anything to do with modem
8639 #signals doesn't work because UKD cc has its own alternative universe of
8640 #header files.
8641 sco32v505udk:
8642 $(MAKE) "MAKE=$(MAKE)" sco32v500 KTARGET=$${KTARGET:-$(@)} \
8643 "KFLAGS=-DSCO_OSR505 -DDCLTIMEVAL -DNOSHADOW -b elf -DPOSIX $(KFLAGS)"
8644
8645 #SCO OpenServer 5.0.5 with networking, SCO /bin/cc.
8646 #See comments with sco32v505 targets.
8647 sco32v505net:
8648 @echo TCP/IP networking added...
8649 $(MAKE) "MAKE=$(MAKE)" sco32v500net KTARGET=$${KTARGET:-$(@)} \
8650 "KFLAGS=-DSCO_OSR505 -DNOSHADOW -b elf -DPOSIX $(KFLAGS)"
8651
8652 #SCO OpenServer 5.0.5 with networking and OpenSSL, SCO /bin/cc.
8653 #See comments with sco32v505 targets.
8654 sco32v505net+ssl:
8655 @echo TCP/IP networking and OpenSSL added...
8656 $(MAKE) "MAKE=$(MAKE)" sco32v500net+ssl KTARGET=$${KTARGET:-$(@)} \
8657 "KFLAGS=-DSCO_OSR505 -DNOSHADOW -b elf -DPOSIX $(KFLAGS) " \
8658 "LIBS=$(SSLLIB) -lcurses -lsocket -lssl -lcrypto $(LIBS)" \
8659 "LNKFLAGS=$(LNKFLAGS)"
8660
8661 #SCO OpenServer 5.0.5 with networking, SCO UDK.
8662 #See comments with above sco32v505 targets.
8663 sco32v505udknet:
8664 @echo TCP/IP networking added...
8665 $(MAKE) "MAKE=$(MAKE)" sco32v500net KTARGET=$${KTARGET:-$(@)} \
8666 "KFLAGS=-DSCO_OSR505 -DNORLOGIN -DDCLTIMEVAL -DNOSHADOW \
8667 -b elf -DPOSIX $(KFLAGS)"
8668
8669 #SCO OpenServer 5.0.5 with gcc, no networking.
8670 sco32v505gcc:
8671 @echo Using gcc...
8672 $(MAKE) "MAKE=$(MAKE)" sco32v500 "CC=gcc" "CC2=gcc" \
8673 KTARGET=$${KTARGET:-$(@)} \
8674 "KFLAGS=-DSCO_OSR505 -DPOSIX -funsigned-char $(KFLAGS)"
8675
8676 #SCO OpenServer 5.0.5 with gcc, no networking, no shadow passwords.
8677 sco32v505xgcc:
8678 @echo Using gcc...
8679 $(MAKE) "MAKE=$(MAKE)" sco32v500 "CC=gcc" "CC2=gcc" \
8680 KTARGET=$${KTARGET:-$(@)} \
8681 "KFLAGS=-DSCO_OSR505 -DNOSHADOW -DPOSIX -funsigned-char $(KFLAGS)"
8682
8683 #SCO OpenServer 5.0.5 with networking, gcc.
8684 sco32v505netgcc:
8685 @echo TCP/IP networking added - using gcc...
8686 $(MAKE) "MAKE=$(MAKE)" sco32v500net "CC=gcc" "CC2=gcc" \
8687 KTARGET=$${KTARGET:-$(@)} \
8688 "KFLAGS=-DSCO_OSR505 -DNOSHADOW -DPOSIX -funsigned-char $(KFLAGS)"
8689
8690 #egcs is just like gcc but generates ELF by default.
8691 #Or you can include -melf (not -belf) to force it.
8692 sco32v505netegcs:
8693 $(MAKE) "MAKE=$(MAKE)" "KFLAGS=$(KFLAGS)" sco32v505netgcc \
8694 KTARGET=$${KTARGET:-$(@)}
8695
8696 #SCO OpenServer 5.0.5 with networking, gcc, elf.
8697 sco32v505netgccelf:
8698 @echo TCP/IP networking added - using gcc, dynamic elf library
8699 $(MAKE) "MAKE=$(MAKE)" sco32v500net "CC=gcc" "CC2=gcc" \
8700 "KFLAGS=-DSCO_OSR505 -DPOSIX -funsigned-char -O3 -belf $(KFLAGS)" \
8701 KTARGET=$${KTARGET:-$(@)} LNKFLAGS="-belf"
8702
8703 #SCO OpenServer 5.0.6 with SCO /bin/cc.
8704 # Add -DDCLTIMEVAL when building with UDK.
8705 #Like 5.0.5. IMPORTANT: Use sco32v506a target for 5.0.6a.
8706 sco32v506:
8707 $(MAKE) "MAKE=$(MAKE)" sco32v500 KTARGET=$${KTARGET:-$(@)} \
8708 "KFLAGS=-DSCO_OSR505 -DSCO_OSR506 -b elf -DPOSIX $(KFLAGS)"
8709
8710 #SCO OpenServer 5.0.6 with networking, SCO /bin/cc.
8711 # Add -DDCLTIMEVAL when building with UDK.
8712 # IMPORTANT: Use sco32v506a target for 5.0.6a.
8713 sco32v506net:
8714 @echo TCP/IP networking added...
8715 $(MAKE) "MAKE=$(MAKE)" sco32v500net KTARGET=$${KTARGET:-$(@)} \
8716 "KFLAGS=-DSCO_OSR505 -DSCO_OSR506 -b elf -DPOSIX $(KFLAGS)"
8717
8718 #SCO OpenServer 5.0.6a, no networking, SCO development tools.
8719 #This one has patched sio drivers that, for the first time,
8720 #actually handle modem signals correctly.
8721 # Add -DDCLTIMEVAL when building with UDK.
8722 sco32v506a:
8723 $(MAKE) "MAKE=$(MAKE)" sco32v500 KTARGET=$${KTARGET:-$(@)} \
8724 "KFLAGS=-DSCO_OSR505 -DSCO_OSR506 -DSCO_OSR506A -DNEEDMDMDEFS \
8725 -b elf -DPOSIX $(KFLAGS)"
8726
8727 #SCO OpenServer 5.0.6a with networking, SCO development tools.
8728 # Add -DDCLTIMEVAL when building with UDK.
8729 sco32v506anet:
8730 @echo TCP/IP networking added...
8731 $(MAKE) "MAKE=$(MAKE)" sco32v500net KTARGET=$${KTARGET:-$(@)} \
8732 "KFLAGS=-DSCO_OSR505 -DSCO_OSR506 -DSCO_OSR506A -DNEEDMDMDEFS \
8733 -b elf -DPOSIX $(KFLAGS)"
8734
8735 #SCO OpenServer 5.0.7, no networking, SCO development tools.
8736 #Adds flags to make PTY and SSH commands work. These have been tested
8737 #only in 5.0.7 but probably they can also be added to earlier OSR5 targets.
8738 sco32v507:
8739 $(MAKE) "MAKE=$(MAKE)" sco32v500 KTARGET=$${KTARGET:-$(@)} \
8740 "KFLAGS=-DSCO_OSR505 -DSCO_OSR506 -DSCO_OSR507 -DNEEDMDMDEFS \
8741 -DHAVE_PTSNAME -DHAVE_PTMX -DHAVE_GRANTPT \
8742 -b elf -DPOSIX $(KFLAGS)"
8743
8744 #SCO OpenServer 5.0.7 as above but with networking.
8745 sco32v507net:
8746 @echo TCP/IP networking added...
8747 $(MAKE) "MAKE=$(MAKE)" sco32v500net KTARGET=$${KTARGET:-$(@)} \
8748 "KFLAGS=-DSCO_OSR505 -DSCO_OSR506 -DSCO_OSR507 -DNEEDMDMDEFS \
8749 -DHAVE_PTSNAME -DHAVE_PTMX -DHAVE_GRANTPT \
8750 -b elf -DPOSIX $(KFLAGS)"
8751
8752 #SCO OpenServer 6 (new target 30 Jan 2006)
8753 sco_osr600 sco600:
8754 @echo Making C-Kermit $(CKVER) for SCO OpenServer 6.0.0...
8755 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
8756 "CFLAGS= -O -DDIRENT -DHDBUUCP -DSVR4 -DCK_SCOV5 -DCK_RTSCTS \
8757 -DCK_CURSES -DCK_WREFRESH -DCK_NEWTERM -DSELECT -DSELECT_H \
8758 -DNOGETUSERSHELL -DNOLSTAT -DNOLINKBITS -DTCPSOCKET \
8759 -DNO_DNS_SRV -DSCO_OSR505 -DSCO_OSR506 -DSCO_OSR507 -DNEEDMDMDEFS \
8760 -DHAVE_PTSNAME -DHAVE_PTMX -DHAVE_GRANTPT -DDCLTIMEVAL \
8761 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 \
8762 -DSOCKOPT_T=socklen_t -DGSOCKNAME_T=size_t -DGPEERNAME_T=size_t \
8763 -DHERALD=\"\\\" SCO OpenServer `uname -v`\\\"\" \
8764 -b elf -DPOSIX $(KFLAGS)" \
8765 "LIBS=-lcurses -lsocket $(LIBS)" "LNKFLAGS=$(LNKFLAGS)"
8766
8767 #Tandy 16/6000 with Xenix 3.0 (16 bits)
8768 #C-Kermit 7.0 (and later) do not build here; "too many defines".
8769 #Add more -DNOxxx options to remove features if program won't load.
8770 #Successful operation is a function of program size, physical memory,
8771 #available swap space, etc. The following stripped-down configuration
8772 #seems to work on most Tandy 6000s. NOTE: "-+" means allow long variable
8773 #names, needed for C-Kermit 6.0 because some identifiers are not unique
8774 #within the first six characters.
8775 trs16:
8776 @echo 'Making C-Kermit $(CKVER) for Tandy 16/6000, Xenix 3.0...'
8777 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
8778 "CFLAGS = -+ -DATTSV -DTRS16 -DNOMKDIR -DDCLPOPEN -DCK_CURSES \
8779 -DNODEBUG -DNOTLOG -DNOHELP -DNOSCRIPT -DNOCSETS -DNOIKSD \
8780 -DNOREDIRECT -DNOSYSLOG -DNOPUTENV -DNOREALPATH -DNOLEARN \
8781 $(KFLAGS) -O" "LIBS= -lcurses -ltermcap" "LNKFLAGS = -+ -n -s"
8782
8783 # QNX 4.21 and above, 32-bit version, Watcom C32 10.6, fully configured,
8784 # except no job control because QNX 4.x does not support it. New NCURSES
8785 # library used instead of CURSES.
8786 #
8787 # -Oatx optimizes to favor speed over size: loop optimization, inline fn's.
8788 # -Os favors size over speed. Saves 30-40K out of about 1.75M.
8789 # -3r = generate 386 code with register-based arg passing.
8790 # -3s = generate 386 code with stack-based arg passing.
8791 # -ms = separate code & data 4GB segments (32-bit builds only).
8792 # -mf = flat memory model code+data in one 4GB segment (ditto).
8793 # -zc = place literal strings in code segment.
8794 # -N4M = Big stack (increase the digit upon SIGSEGVs at runtime).
8795 # chars are unsigned by default (-j makes them signed by default).
8796 # -NOUUCP is included because QNX doesn't use it.
8797 # Add these to the end if you like but they dump core on my QNX 4.25 system:
8798 #
8799 # @wermit -h >use.qnx
8800 # @usemsg wermit use.qnx
8801 # @rm use.qnx
8802 #
8803 # If you get warnings about HEADER or C_IN add -DNO_DNS_SRV.
8804 # OK 2011/06/14
8805 qnx32:
8806 @echo 'Making C-Kermit $(CKVER) for QNX 4.2x, 32-bit...'
8807 $(MAKE) xermit \
8808 "LNKFLAGS = -N4M -3r" \
8809 "CFLAGS = -ms -3r -DQNX -DTCPSOCKET -DCK_CURSES -DNOGETUSERSHELL \
8810 -DCK_WREFRESH -DCK_REDIR -DSELECT -DSELECT_H -DCK_RTSCTS -DNOJC \
8811 -DNOINITGROUPS -DNOUUCP -DCK_ANSIC -DPID_T=pid_t -Oatx -zc $(KFLAGS)" \
8812 "LIBS= -lsocket -lncurses -ltermcap"
8813
8814 # As above but no networking since some QNX systems do not have TCP/IP
8815 # installed, or the TCP/IP developers kit, which includes all the needed
8816 # header files. This entry has not been tested on a QNX system that, in
8817 # fact, does not have TCP/IP installed; some adjustments might be necessary,
8818 # in particular regarding the use of select(): is -lsocket needed, can we
8819 # get the needed definitions from non-TCP/IP header files (FD_SET, etc)?
8820 qnx32nonet:
8821 @echo 'Making C-Kermit $(CKVER) for QNX 4.2x, 32-bit, no net...'
8822 $(MAKE) xermit \
8823 "LNKFLAGS = -N4M -3r" \
8824 "CFLAGS = -3r -ms -DQNX -DNONET -DNOIKSD -DCK_CURSES \
8825 -DCK_WREFRESH -DCK_REDIR -DSELECT -DSELECT_H -DCK_RTSCTS -DNOJC \
8826 -DNOUUCP -DCK_ANSIC -DPID_T=pid_t -Oatx -zc $(KFLAGS)" \
8827 "LIBS= -lsocket -lncurses -ltermcap"
8828 @wermit -h >use.qnx
8829 @usemsg wermit use.qnx
8830 @rm use.qnx
8831
8832 # Synonym for qnx32.
8833 qnx:
8834 $(MAKE) qnx32 "KFLAGS=$(KFLAGS)"
8835
8836 # QNX 4.21 and above, 16-bit version, Watcom C 8.5 - and higher on i286 PCs
8837 # and above.
8838 #
8839 # IMPORTANT: Do not use Watcom C 10.6!!!
8840 # If you have it installed, add "-v9.52 to CFLAGS"
8841 #
8842 # NOTE: QNX 4.23 onward does not work on 286's anyway.
8843 # Stacksize 26000, objects larger than 100 bytes in their own segments,
8844 # string constants to the codesegment, etc. Fully configured except job ctrl.
8845 # This entry works for building a 16-bit executable on a 32-bit system, but
8846 # has not been tested on a 16-bit system. Uses large memory model, links
8847 # explicitly with large-model sockets library. Correct-model curses library
8848 # is chosen automatically. See comment in qnx32 entry about -DNOUUCP.
8849 #
8850 # WARNING:
8851 #
8852 # Watcom C prior to 10.6 never had released curses library. To link against it,
8853 # you must obtain ported free curses source from ftp://ftp.qnx.com/usr/free,
8854 # then compile and build library (cursesl.lib) and place it in /usr/lib. You
8855 # must also copy curses.h to /usr/include. Be aware that if you have Watcom
8856 # 10.6 installed, you should already have curses.h, which is the new ncurses
8857 # library. You must back it up and use free curses.h instead, since ncurses is
8858 # only for 32-bit applications and some definitions in these files are
8859 # different (e.g., clearok()). For safety, curses is not defined in build.
8860 #
8861 # In 7.0 -DNOHELP added to keep ckuus2.c from blowing up; NOCSETS and NOSPL
8862 # added because ckuus4 was blowing up, and NOFLOAT just because it seemed
8863 # dangerous (remove -DNOFLOAT if you want to try it), The result works OK
8864 # except for some mysterious beeps upon termination of the top-level keyword.
8865 #
8866 # Things to try next time we get in trouble:
8867 # . Change -zt100 to something smaller like -zt25
8868 # . Change -Oatx to -Omilerat (enable stack checking)
8869 # . Maybe get rid of -v9.52 -- it's only there because we were warned.
8870 #
8871 qnx16:
8872 @echo 'Making C-Kermit $(CKVER) for QNX 4.21, 16-bit...'
8873 $(MAKE) xermit \
8874 "LNKFLAGS = -2 -ml -N 26000" \
8875 "CFLAGS = -2 -Oatx -zc -zt100 -ml -DQNX -DQNX16 -DNOUUCP -DNOHELP \
8876 -DCK_REDIR -DSELECT -DSELECT_H -DNOJC -DNOGETUSERSHELL -DNO_DNS_SRV \
8877 -v9.52 -DTCPSOCKET -DCK_RTSCTS -DCK_ANSIC -DNOINITGROUPS -DNOKVERBS \
8878 -DNORANDOM -DNOCSETS -DNOSPL -DNOFLOAT -DPID_T=pid_t $(KFLAGS)"
8879
8880 # QNX 4.1, 16-bit version, with Watcom C 8.5 on i286 PCs and above.
8881 # stacksize 26000, objects larger than 100 bytes in their own segments,
8882 # string constants to the codesegment, etc. Add -DNOUUCP if desired.
8883 qnx16_41:
8884 @echo 'Making C-Kermit $(CKVER) for QNX 4.1, 16-bit...'
8885 $(MAKE) xermit \
8886 "LNKFLAGS = -mh -N 26000" "CFLAGS = -Wc,-fpc -Wc,-j -DNOGETUSERSHELL \
8887 -Wc,-Ols -Wc,-zdf -Wc,-zc -Wc,-zt100 -mh -DPOSIX -DQNX -DDIRENT \
8888 -DNOCYRIL -DNODEBUG -DNOMSEND -DMINIDIAL -DNOXMIT -DNOSCRIPT -DNOSPL \
8889 -DNOSETKEY -DNOINITGROUPS -DQNX16 -DPID_T=pid_t $(KFLAGS)"
8890
8891 # QNX Neutrino 2 ([email protected]) crosscompiled on QNX 4.25.
8892 # Gets lots of compiler warnings.
8893 qnx_nto2+:
8894 @echo 'Making C-Kermit $(CKVER) for QNX Neutrino 2+ '
8895 $(MAKE) xermit \
8896 "CC = qcc -Vgcc_ntox86" \
8897 "CC2 = qcc -Vgcc_ntox86" \
8898 "LNKFLAGS = " \
8899 "CFLAGS = -DNEUTRINO -DTCPSOCKET -DCK_CURSES -DNOGETUSERSHELL \
8900 -DNOUUCP -DCK_WREFRESH -DCK_REDIR -DSELECT -DSELECT_H -DCK_RTSCTS \
8901 -DNOJC -DNOINITGROUPS -DCK_ANSIC -DPID_T=pid_t -DUNIX -DDIRENT \
8902 -DMYREAD -DBSD44ORPOSIX -DSVORPOSIX -DNDGPWNAM $(KFLAGS)" \
8903 "LIBS= -lsocket -lncurses "
8904
8905 # QNX 6 (= Neutrino 2.xx) native build ([email protected]).
8906 qnx6:
8907 @echo 'Making C-Kermit $(CKVER) for QNX6'
8908 $(MAKE) xermit KTARGET=QNX6 \
8909 "CFLAGS = -DPOSIX -DCK_POSIX_SIG -DNETPTY \
8910 -DUSE_TIOCSDTR -DBIGBUFOK -DCKMAXOPEN=100 -DRLOGCODE -DNOREALPATH \
8911 -DMAXNAMLEN=48 -DQNX6 -DUSE_TERMIO -DINIT_SPTY \
8912 -DCK_CURSES -DCK_WREFRESH -DCK_NEWTERM -DDYNAMIC \
8913 -DTCPSOCKET -DNOGETUSERSHELL -DCK_REDIR -DSELECT -DSELECT_H \
8914 -DCK_RTSCTS -DNOJC -DSVORPOSIX -DBSD44ORPOSIX -DNOUUCP -DCK_ANSIC \
8915 $(KFLAGS) -O" \
8916 "LIBS= -lsocket -lncurses -llogin"
8917
8918 # QNX 8.0 for Intel (x86_64) crosscompiled build
8919 qnx8i:
8920 @echo 'Making wart for host'
8921 $(MAKE) wart
8922 @echo 'Making C-Kermit $(CKVER) for QNX8'
8923 $(MAKE) xermit KTARGET=QNX6 \
8924 "CC = qcc -Vgcc_ntox86_64" \
8925 "CC2 = qcc -Vgcc_ntox86_64" \
8926 "CFLAGS = -DPOSIX -DCK_POSIX_SIG -DNETPTY -DHAVE_OPENPTY \
8927 -DUSE_TIOCSDTR -DBIGBUFOK -DCKMAXOPEN=100 -DRLOGCODE \
8928 -DMAXNAMLEN=48 -DQNX6 -DUSE_TERMIO -DINIT_SPTY -DFNFLOAT \
8929 -DCK_NCURSES -DCK_WREFRESH -DCK_NEWTERM -DDYNAMIC -DUSE_STRERROR \
8930 -DTCPSOCKET -DNOGETUSERSHELL -DCK_REDIR -DSELECT -DSELECT_H \
8931 -DCK_RTSCTS -DSVORPOSIX -DBSD44ORPOSIX -DCK_ANSIC \
8932 $(KFLAGS) -O" \
8933 "LIBS= -lsocket -lncurses -llogin -lm"
8934
8935 # QNX 8.0 for ARM (aarch64le) crosscompiled build
8936 qnx8a:
8937 @echo 'Making wart for host'
8938 $(MAKE) wart
8939 @echo 'Making C-Kermit $(CKVER) for QNX8'
8940 $(MAKE) xermit KTARGET=QNX6 \
8941 "CC = qcc -Vgcc_ntoaarch64le" \
8942 "CC2 = qcc -Vgcc_ntoaarch64le" \
8943 "CFLAGS = -DPOSIX -DCK_POSIX_SIG -DNETPTY -DHAVE_OPENPTY \
8944 -DUSE_TIOCSDTR -DBIGBUFOK -DCKMAXOPEN=100 -DRLOGCODE \
8945 -DMAXNAMLEN=48 -DQNX6 -DUSE_TERMIO -DINIT_SPTY -DFNFLOAT \
8946 -DCK_NCURSES -DCK_WREFRESH -DCK_NEWTERM -DDYNAMIC -DUSE_STRERROR \
8947 -DTCPSOCKET -DNOGETUSERSHELL -DCK_REDIR -DSELECT -DSELECT_H \
8948 -DCK_RTSCTS -DSVORPOSIX -DBSD44ORPOSIX -DCK_ANSIC \
8949 $(KFLAGS) -O" \
8950 "LIBS= -lsocket -lncurses -llogin -lm"
8951
8952 #MINIX/2.0 32 Bit version for intel 386+ running the POSIX-compliant MINIX
8953 # version 2.0 (The definition of fatal avoids a conflict with a symbol by
8954 # the same name in the curses library.) It is impossible to compile with
8955 # network support since Minix does not support Berkeley sockets.
8956 # Note: use chmem liberally on the compiler passes, make, and the final
8957 # kermit executable. (3 megabytes of memory for each is sufficient.)
8958 # From Terry McConnell, Syracuse U, and Will Rose. Will says:
8959 # The stacks for make and some compiler passes needed to be increased
8960 # with chmem as follows:
8961 # make 1MB
8962 # /usr/lib/em_cemcom.ansi 3MB
8963 # /usr/lib/em_opt 1MB
8964 # /usr/lib/i386/cg 1MB
8965 # /usr/lib/i386/as 1MB
8966 # The compiler temporary directory was set to /usr/tmp via the TMPDIR
8967 # environment variable; more than 1MB of temporary space was needed.
8968 # Kermit itself needs at least 1MB of stack.
8969 minix20:
8970 @echo 'Making C-Kermit $(CKVER) for MINIX 2.0/386...'
8971 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} EXT=o \
8972 "CFLAGS= -wo -DV7 -DMINIX2 -DMINIX -DSIG_V -D_POSIX_SOURCE \
8973 -DCKCPU=\\\"i-386\\\" -DNOIKSD -Dfatal=myfatal -DCK_CURSES -DNOLEARN \
8974 -DNOSYSLOG -DUSE_MEMCPY -DNOREALPATH $(KFLAGS)" "LIBS= -lcurses"
8975
8976 #MINIX/386 (PC Minix modified by Bruce Evans in Australia for 386 addressing)
8977 # For MINIX 1.5+ (but < 2.0)
8978 minix386:
8979 @echo 'Making C-Kermit $(CKVER) for MINIX/386...'
8980 @echo 'TOTALLY UNTESTED!'
8981 $(MAKE) wermit EXT=s KTARGET=$${KTARGET:-$(@)} \
8982 "CFLAGS= -DV7 -DMINIX -D_POSIX_SOURCE -DNOLEARN $(KFLAGS)"
8983
8984 #MINIX/386 Minix modified by Bruce Evans in Australia to use 386 addressing
8985 minix386gcc:
8986 @echo 'Making C-Kermit $(CKVER) for MINIX/386 with gcc...'
8987 @echo 'TOTALLY UNTESTED!'
8988 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC=gcc -g -O" "CC2=gcc -g" \
8989 "CFLAGS= -DV7 -DMINIX -D_POSIX_SOURCE -DNOLEARN $(KFLAGS)"
8990
8991 #MINIX - 68k version with ACK compiler.
8992 # The version configured below has many features removed, including
8993 # the TRANSMIT, MSEND, HELP, and SCRIPT commands, international
8994 # character set support, and the entire script programming language.
8995 # But it does have an interactive command parser.
8996 # Make sure make(1) has (at least) 100000 chmemory!
8997 # If you are using the Amsterdam C compiler, you might have to add "-D__ACK__".
8998 minix68k:
8999 @echo 'Making C-Kermit $(CKVER) for MINIX 68k with ACK...'
9000 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
9001 "CFLAGS= -DV7 -DMINIX -D_MINIX -D_POSIX_SOURCE -DNOLEARN \
9002 -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG \
9003 -DNOSCRIPT -DNOCSETS -DNOSPL $(KFLAGS) \
9004 -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t -DSIG_V"
9005
9006 #MINIX - 68k version with c68 compiler.
9007 # Compiling ckudia.c (no -DNODIAL!) might fail.
9008 # Give c68 250000 bytes of stack+heap; make sure make(1) has at least
9009 # 100000 chmemory. On a 1MB Atari ST this means that the recursive
9010 # call of make fails due to memory shortage. Try "make -n minixc68 >makeit",
9011 # followed by ". makeit". Otherwise, as above.
9012 minixc68:
9013 @echo 'Making C-Kermit $(CKVER) for MINIX 68k with c68...'
9014 $(MAKE) wermit "CC= cc -c68" KTARGET=$${KTARGET:-$(@)} \
9015 "CFLAGS= -DV7 -DMINIX -D_MINIX -D_POSIX_SOURCE -DNOLEARN \
9016 -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG \
9017 -DNOSCRIPT -DNOCSETS -DNOSPL $(KFLAGS) \
9018 -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t -DSIG_V"
9019
9020 #MINIX - 68k version with c68 compiler.
9021 #A variation on the above that was recently (Sep 95) reported to work.
9022 minixc68a:
9023 @echo 'Making C-Kermit $(CKVER) for MINIX 68k with c68...'
9024 $(MAKE) wermit "CC= cc -c68" KTARGET=$${KTARGET:-$(@)} \
9025 "CFLAGS= -DV7 -DMINIX -D_MINIX -D_POSIX_SOURCE \
9026 -DCK_ANSIC -DNODEBUG -DNOTLOG -DMINIDIAL -DEXTEN -DMYCURSES \
9027 -DNOSCRIPT -DNOCSETS -DNOSPL -DNOJC -DDIRENT -DNOLEARN \
9028 -DNOSETKEY -DNOESCSEQ $(KFLAGS) \
9029 -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t -DSIG_V"
9030
9031 #MIPS Computer Systems with UMIPS RISC/OS 4.52 = AT&T UNIX System V R3.0.
9032 #Remove -DNOJC if job control can be safely used.
9033 mips:
9034 @echo 'Making C-Kermit $(CKVER) for MIPS RISC/OS...'
9035 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
9036 "CFLAGS = -DMIPS -DDIRENT -DCK_POLL -DNOJC -DNOLEARN -DPID_T=int \
9037 -DGID_T=gid_t -DUID_T=uid_t -i -O1500 $(KFLAGS)"
9038
9039 #As above, but with TCP/IP and fullscreen support.
9040 mipstcpc:
9041 @echo 'Making C-Kermit $(CKVER) for MIPS RISC/OS...'
9042 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
9043 "CFLAGS = -DMIPS -DDIRENT -DCK_POLL -DNOJC \
9044 -DTCPSOCKET -DCK_CURSES -I/usr/include/bsd \
9045 -DPID_T=int -DGID_T=gid_t -DUID_T=uid_t -i -O1500 $(KFLAGS)" \
9046 "LIBS = -lcurses -lbsd"
9047
9048 #Motorola Delta System V/68 R3, signal() is void rather than int.
9049 #Uses dirent.h and Honey DanBer uucp. Supports TCP/IP.
9050 #After building, use "mcs -d" to reduce size of the executable program.
9051 sv68r3:
9052 @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/68 R3...'
9053 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
9054 "CFLAGS = -DSVR3 -DSV68 -DDIRENT -DHDBUUCP -DNO_DNS_SRV -DTCPSOCKET \
9055 -DNOUNICODE -DNOLEARN -DUSE_MEMCPY $(KFLAGS) -O" "LNKFLAGS ="
9056
9057 #Motorola Delta System V/68 R3V5, signal() is void rather than int.
9058 #Uses dirent.h and Honey DanBer UUCP. Supports TCP/IP.
9059 #After building, use "mcs -d" to reduce size of the executable program.
9060 sv68r3v5:
9061 @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/68 R3V5'
9062 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
9063 "CFLAGS = -DSVR3 -DSV68 -DDIRENT -DHDBUUCP -DNO_DNS_SRV -DUSE_MEMCPY \
9064 -DTCPSOCKET -DINADDRX -DNOUNICODE -DFNFLOAT -DNOLEARN $(KFLAGS) -O" \
9065 "LNKFLAGS =" "LIBS = -linet -lm"
9066
9067 #Motorola MVME147 System V/68 R3 V5.1. Requires gcc 2.1 to compile.
9068 #After building, use "mcs -d" to reduce size of the executable program.
9069 sv68r3v51:
9070 @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/68 R3V5.1'
9071 $(MAKE) wermit "CC=gcc-delta" "CC2=gcc-delta" \
9072 KTARGET=$${KTARGET:-$(@)} \
9073 "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DNODEBUG -DNO_DNS_SRV -DNOLEARN \
9074 -DNOUNICODE -DFNFLOAT -DSV68 -DUSE_MEMCPY $(KFLAGS) \
9075 -O2 -v -ftraditional" \
9076 "LNKFLAGS = -s -v" "LIBS = -lm881 -lm"
9077
9078 #Motorola MVME147 System V/68 R3V6. derived from Motorola Delta System R3V5.
9079 #Checked on larger Motorola System V/68 R3V6 (with NSE Network Services Ext.)
9080 #After building, use "strip" to reduce size of the executable program.
9081 # "LIBS = -lnsl" removed in C-Kermit 6.1 - put back if needed.
9082 # "LIBS = lm" added in 7.1/8.0 for floating-point math.
9083 # ckuusr.c clobbers the optimizer.
9084 sv68r3v6:
9085 @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/68 R3V6'
9086 $(MAKE) ckuusr.$(EXT) KTARGET=$${KTARGET:-$(@)} \
9087 "CFLAGS = -DSV68R3V6 -DDIRENT -DHDBUUCP -DNOLOGIN -DNOINITGROUPS \
9088 -DNOSYMLINK -DNOREDIRECT -DNOGFTIMER -DTCPSOCKET -DDCLGETCWD -DSV68 \
9089 -DNO_DNS_SRV -DNOUNICODE -DFNFLOAT -DSELECT -DUSE_MEMCPY $(KFLAGS)"
9090 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
9091 "CFLAGS = -O -DSV68R3V6 -DDIRENT -DHDBUUCP -DNOLOGIN -DNOINITGROUPS \
9092 -DNOSYMLINK -DNOREDIRECT -DNOGFTIMER -DTCPSOCKET -DDCLGETCWD -DSV68 \
9093 -DNO_DNS_SRV -DNOUNICODE -DFNFLOAT -DSELECT -DUSE_MEMCPY $(KFLAGS)" \
9094 "LNKFLAGS =" "LIBS = -lm"
9095
9096 #Motorola Delta System V/88 R32, signal() is void rather than int.
9097 #Uses dirent.h and Honey DanBer uucp. Needs <sys/utime.h> for setting
9098 #file dates. Supports TCP/IP.
9099 #After building, use "mcs -d" to reduce size of the executable program.
9100 sv88r32:
9101 @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/88 R32...'
9102 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
9103 "CFLAGS = -DSV88R32 -DDIRENT -DHDBUUCP -DTCPSOCKET \
9104 -DSYSUTIMEH -DCK_CURSES -DNOGETUSERSHELL -DGTODONEARG $(KFLAGS) -O" \
9105 "LIBS= -lcurses -lresolv" "LNKFLAGS = -s"
9106
9107 #Motorola Delta System V/88 R40. Has <sys/termiox.h>, regular Berkeley
9108 #sockets library, i.e. in.h and inet.h are not misplaced in sys (rather than
9109 #netinet and arpa, respectively). Uses ANSI C constructs, advisory file
9110 #locking on devices, etc. curses support added. Reportedly, the
9111 #/usr/include/sys/vnode.h file has a bug which must be fixed before this
9112 #makefile entry can work correctly. The "if DEBUG" directive at about line
9113 #320 must be changed to "ifdef DEBUG" (Reportedly, this was fixed in
9114 #in System V/88 R4.3).
9115 #After building, use "mcs -d" to reduce size of the executable program.
9116 sv88r40:
9117 @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/88 R40...'
9118 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
9119 "CFLAGS = -O -DSVR4 -DMOTSV88R4 -DDIRENT -DHDBUUCP -DSTERMIOX \
9120 -DTCPSOCKET -DCK_CURSES -DNOGETUSERSHELL -DGTODONEARG -DFNFLOAT \
9121 $(KFLAGS)" \
9122 "LIBS= -lsocket -lnsl -lcurses -lresolv -lm" "LNKFLAGS = -s"
9123
9124 #As above but without the floating-point math library.
9125 sv88r40nm:
9126 @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/88 R40...'
9127 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
9128 "CFLAGS = -O -DSVR4 -DMOTSV88R4 -DDIRENT -DHDBUUCP -DSTERMIOX \
9129 -DTCPSOCKET -DCK_CURSES -DNOGETUSERSHELL -DGTODONEARG $(KFLAGS)" \
9130 "LIBS= -lsocket -lnsl -lcurses -lresolv" "LNKFLAGS = -s"
9131
9132 #As above but with floating-point math library support \ffp...() functions
9133 #and S-Expressions.
9134
9135 #Olivetti X/OS R2.3, 3.x.
9136 #NOTES:
9137 # . If you build the executable on 2.x X/OS, it will also run on 3.x.
9138 # . If you build it on 3.x X/OS, it will NOT run on 2.x.
9139 # . Kermit can run with no privileges unless the uucp lines are protected,
9140 # in which case kermit must be owned by uucp with suid bit set:
9141 # chown uucp kermit ; chmod 4111 kermit.
9142 xos23:
9143 @echo 'Making C-Kermit $(CKVER) for Olivetti X/OS...'
9144 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
9145 'CFLAGS=-OLM -DOXOS -DTCPSOCKET -DHDBUUCP $(KFLAGS)' \
9146 "LIBS=" "LNKFLAGS="
9147
9148 #As above, but with curses.
9149 xos23c:
9150 @echo 'Making C-Kermit $(CKVER) for Olivetti X/OS with curses...'
9151 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
9152 'CFLAGS=-OLM -DOXOS -DTCPSOCKET -DHDBUUCP -DCK_CURSES $(KFLAGS)' \
9153 "LIBS=-lcurses" "LNKFLAGS="
9154
9155 ckuuid:
9156 @echo 'building C-Kermit $(CKVER) set-UID/set-GID test programs'
9157 $(CC) -DANYBSD -DSAVEDUID -o ckuuid1 ckuuid.c
9158 $(CC) -DANYBSD -o ckuuid2 ckuuid.c
9159 $(CC) -DANYBSD -DNOSETREU -o ckuuid3 ckuuid.c
9160 $(CC) -DANYBSD -DSETEUID -DNOSETREU -o ckuuid4 ckuuid.c
9161 $(CC) -o ckuuid5 ckuuid.c
9162 @echo 'Read the top of ckuuid.c for directions...for testing'
9163 @echo 'you must make these programs setuid and setgid'
9164
9165 ############################################################################
9166 # A N T I Q U I T I E S
9167 #
9168 # The following are antique targets from C-Kermit 5A or earlier. They have
9169 # not been updated or tested in years. Most of them will need recent features
9170 # disabled, usually with some combination of -DNOUNICODE, -DNOIKSD, -DNOANSI,
9171 # -DNOCKGHNLHOST, -DNO_DNS_SRV, -DNOREDIRECT, -DNOREALPATH, -DNOCURSES, etc.
9172 # They are also missing the KTARGET=$${KTARGET:-$(@)} business.
9173 # For details see ckuins.txt and ckccfg.txt.
9174 #
9175 ############################################################################
9176
9177 #Berkeley Unix 2.8, 2.9 for PDP-11s with I&D space, maybe also Ultrix-11???
9178 #C-Kermit(5A) is simply too large (even turning off almost every feature
9179 #available) to run without both I&D space plus overlays. The old comment
9180 #suggested running 'pcc' but that won't help. Changing 'cc' to 'ckustr.sed'
9181 #will cause a string extraction to be done, saving D space by moving strings
9182 #to a file.
9183 bsd29:
9184 @echo Making C-Kermit $(CKVER) for 2.8 or 2.9BSD.
9185 @echo Read the makefile if you have trouble with this...
9186 $(MAKE) ovwermit \
9187 "CFLAGS= -DBSD29 -DNODEBUG -DNOTLOG -DNOCSETS -DNOHELP \
9188 -DNOSCRIPT -DNOSPL -DNOXMIT -DNODIAL $(KFLAGS)" \
9189 "LNKFLAGS= -i -lndir" "CC= cc " "CC2= cc"
9190
9191 bsd210:
9192 @echo Please use ckubs2.mak to build C-Kermit $(CKVER) for 2.10BSD.
9193
9194 bsd211:
9195 @echo Please use ckubs2.mak to build C-Kermit $(CKVER) for 2.11BSD.
9196
9197 #Charles River Data Systems Universe with UNOS Version 9.2
9198 crds:
9199 @echo 'Making C-Kermit $(CKVER) for Charles River Data Systems...'
9200 make xermit \
9201 "CFLAGS = -DATTSV -DNOANSI -DDIRENT -DLONGFN -DTCPSOCKET \
9202 -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DNOSETREU \
9203 -Dsuspend=ksuspend $(KFLAGS) -O" "LNKFLAGS ="
9204
9205 #Microport SV/AT for IBM PC/AT 286 and clones, System V R2.
9206 #The -O flag may fail on some modules (like ckuus2.c), in which case you
9207 #should compile them by hand, omitting the -O. If you get "hash table
9208 #overflow", try adding -DNODEBUG.
9209 #Also, reportedly this compiles better with gcc than with cc.
9210 mpsysv:
9211 @echo 'Making C-Kermit $(CKVER) for Microport SV/AT 286...'
9212 $(MAKE) wermit \
9213 "CFLAGS= -DATTSV -DNOLEARN $(KFLAGS) -O -Ml" "LNKFLAGS = -Ml"
9214
9215 #Microsoft "Xenix/286" e.g. for IBM PC/AT
9216 xenix:
9217 @echo 'Making C-Kermit $(CKVER) for Xenix/286'
9218 $(MAKE) wermit \
9219 "CFLAGS= -DXENIX -DNOFILEH -DNOLEARN $(KFLAGS) -Dunix -F 3000 -i" \
9220 "LNKFLAGS = -F 3000 -i"
9221
9222 #PC/IX, Interactive Corp System III for IBM PC/XT
9223 pcix:
9224 @echo 'Making C-Kermit $(CKVER) for PC/IX...'
9225 $(MAKE) wermit \
9226 "CFLAGS= -DPCIX -DISIII -DNOLEARN $(KFLAGS) \
9227 -Dsdata=sdatax -O -i" "LNKFLAGS = -i"
9228
9229 #Integrated Solutions Inc V8S VME 68020
9230 isi:
9231 @echo Making C-Kermit $(CKVER) for 4.2BSD on ISI...
9232 $(MAKE) wermit "CC = cc" \
9233 "CFLAGS= -DBSD4 -DTCPSOCKET -DINADDRX -DDCLPOPEN -DDEBUG -DNOSETREU \
9234 -DCK_CURSES -DNOLEARN $(KFLAGS)" "LIBS = -lcurses -ltermcap"
9235
9236 #Interactive Corp version of AT&T System III
9237 #is3: (very old, probably not sufficient for 5A or later)
9238 # @echo 'Making C-Kermit $(CKVER) for Interactive System III...'
9239 # make wermit "CFLAGS = -DISIII -Ddata=datax -O -i" "LNKFLAGS = -i"
9240 #The following should work, use it if you don't have gcc.
9241 #Use is3gcc if you have gcc.
9242 is3:
9243 @echo 'Making C-Kermit $(CKVER) for Interactive System III...'
9244 $(MAKE) wermit \
9245 "CFLAGS= -DISIII $(KFLAGS) -Ddata=datax -DNAP -DHDBUUCP
9246 -DLOCK_DIR=\"/usr/spool/uucp\" -DSIGTYP=void -O -i" "LNKFLAGS = -i"
9247
9248 #Interactive UNIX System V R3, no network support. Uses <dirent.h> and Honey
9249 #DanBer UUCP. If this entry does not compile correctly, try any or all of the
9250 #following. These suggestions also apply more or less to the other is5r3xxx
9251 #entries that follow this one.
9252 # . Remove the UID_T and GID_T definitions, or change them as required.
9253 # . Change -DDIRENT to -DSDIRENT.
9254 # . Add -DSIGTYP=void.
9255 # . Remove -g from LNKFLAGS.
9256 # . Add -DNOANSI to remove compiler complaints about ANSI C constructions
9257 # . Add other -DNOxxx's to save space (e.g. -DNOCSETS)
9258 # See the next few makefile entries for related examples.
9259 # Also see sys5r32is for making a portable i386 SVR3 binary.
9260 is5r3:
9261 @echo 'Making C-Kermit $(CKVER) for Interactive 386/ix or later...'
9262 @echo 'If this does not work please read the makefile entry.'
9263 $(MAKE) wermit \
9264 "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -g -DNOCSETS -DNOREALPATH \
9265 -DUID_T=ushort -DGID_T=ushort -DI386IX $(KFLAGS)" \
9266 "LNKFLAGS = -g"
9267
9268 #Interactive Corp System System V R3 with gcc
9269 is3gcc:
9270 @echo 'Making C-Kermit $(CKVER) for Interactive System V R3 / gcc...'
9271 $(MAKE) wermit CC=gcc CC2=gcc \
9272 'CFLAGS = -D_SYSV3 -DISIII -Ddata=datax -DNAP -DHDBUUCP -DNOREALPATH \
9273 -DLOCK_DIR=\"/usr/spool/uucp\" -DSIGTYP=void -O' "LNKFLAGS ="
9274
9275 #Interactive UNIX System V R3, POSIX variant. Untested.
9276 #Uses dirent.h and Honey DanBer uucp. Read comments in is5r3 entry.
9277 is5r3p:
9278 @echo 'Making C-Kermit $(CKVER) for Interactive 386/ix or later...'
9279 $(MAKE) wermit \
9280 "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -g -DNOCSETS -DNOREALPATH \
9281 -DI386IX -DPOSIX $(KFLAGS)" "LNKFLAGS=" "LIBS=-lcposix"
9282
9283 #Interactive UNIX SVR3 2.2.1, job control, curses, no net, gcc.
9284 is5r3gcc:
9285 $(MAKE) wermit CC=gcc CC2=gcc \
9286 "CFLAGS=-g -posix -DSVR3 -DDIRENT -DNOREALPATH \
9287 -DHDBUUCP -O -DNOCSETS -DI386IX -DSVR3JC -DCK_CURSES \
9288 $(KFLAGS)" LNKFLAGS="-posix" LIBS="-lcurses -lc_s"
9289
9290 #Interactive UNIX System V R3 with TCP/IP network support.
9291 #Needs -linet for net functions. signal() is void rather than int.
9292 #Uses dirent.h and Honey DanBer uucp. Read comments in is5r3 entry.
9293 #Also see is5r3net2 if you have trouble with this entry.
9294 is5r3net:
9295 @echo 'Making C-Kermit $(CKVER) for Interactive 386/ix...'
9296 @echo 'If this does not work please read the makefile entry.'
9297 $(MAKE) wermit CC="$(CC)" CC2="$(CC2)" \
9298 "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DTCPSOCKET -DNOREALPATH \
9299 -DI386IX $(KFLAGS) -O" "LIBS = -linet"
9300
9301 is5r3netgcc:
9302 $(MAKE) is5r3net CC=gcc CC2=gcc
9303
9304 #Interactive UNIX System V R3, no job control, signal() void rather than int.
9305 #Uses dirent.h and Honey DanBer uucp. Needs -linet for net functions.
9306 #Read comments in is5r3 entry. Use this entry if is5r3net fails.
9307 #Saves some space by stripping (-s) and using shared library (-lc_s).
9308 is5r3net2:
9309 @echo 'Making C-Kermit $(CKVER) for Interactive 386/ix...'
9310 $(MAKE) wermit \
9311 "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DTCPSOCKET -DNOJC -DNOREALPATH \
9312 -DSIGTYP=void -DNOANSI -DI386IX $(KFLAGS) -O" \
9313 "LNKFLAGS= -s" "LIBS = -linet -lc_s"
9314
9315 #Interactive UNIX System V R3 (version 2.2 or later) with job control & curses.
9316 #Uses dirent.h and Honey DanBer UUCP.
9317 is5r3jc:
9318 @echo 'Making C-Kermit $(CKVER) for Interactive Unix 2.2 or later...'
9319 $(MAKE) wermit CC="$(CC)" CC2="$(CC2)" \
9320 "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -O -DNOCSETS -DNOREALPATH \
9321 -DUID_T=ushort -DGID_T=ushort -DI386IX -DSVR3JC -DCK_CURSES \
9322 -DPOSIX_JC -DCK_REDIR -DCK_POLL -DDCLGETCWD \
9323 $(KFLAGS)" "LIBS=-lcurses -lc_s -linet"
9324
9325 is5r3jcgcc:
9326 $(MAKE) is5r3jc CC="gcc -DCK_ANSILIBS -DDCGPWNAM -O4" CC2=gcc \
9327 KFLAGS="$(KFLAGS)" LNKFLAGS="$(LNKFLAGS)"
9328
9329 #Sunsoft/Interactive UNIX System V R3 (version 2.2 or later)
9330 #with job control, curses, and TCP/IP networking.
9331 #Uses dirent.h and Honey DanBer UUCP.
9332 is5r3netjc:
9333 @echo 'Making C-Kermit $(CKVER) for Interactive Unix 2.2 or later...'
9334 $(MAKE) wermit CC="$(CC)" CC2="$(CC2)" \
9335 "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -O -DNOCSETS -DNOREALPATH \
9336 -DUID_T=ushort -DGID_T=ushort -DI386IX -DSVR3JC -DCK_CURSES \
9337 -DPOSIX_JC -DCK_REDIR -DTCPSOCKET -DSELECT \
9338 $(KFLAGS)" "LIBS=-linet -lcurses -lc_s"
9339
9340 is5r3netjcgcc:
9341 $(MAKE) is5r3netjc CC="gcc -DCK_ANSILIBS -DDCGPWNAM -O4" CC2=gcc \
9342 KFLAGS="$(KFLAGS)" LNKFLAGS="$(LNKFLAGS)"
9343
9344 #Masscomp System III
9345 rtu:
9346 @echo 'Making C-Kermit $(CKVER) for Masscomp RTU System III...'
9347 $(MAKE) wermit \
9348 "CFLAGS= -UFIONREAD -DATTSV $(KFLAGS) -O" "LNKFLAGS =" "LIBS= -ljobs"
9349
9350 #Masscomp/Concurrent RTU 4.0 or later, Berkeley environment.
9351 #Includes <ndir.h> = /usr/include/ndir.h
9352 #Note "LIBS = -lndir" might not be necessary because of "ucb make".
9353 rtubsd:
9354 @echo 'Making C-Kermit $(CKVER) for Masscomp RTU 4.1A...'
9355 ucb make wermit \
9356 "CFLAGS= -DBSD4 -DRTU -DNDIR -DHDBUUCP -DTCPSOCKET $(KFLAGS)" \
9357 "LIBS = -lndir"
9358
9359 #Masscomp/Concurrent RTU 4.0 or later, same as above,
9360 #Includes "usr/lib/ndir.h"
9361 #Note "LIBS = -lndir" might not be necessary because of "ucb make".
9362 rtubsd2:
9363 @echo 'Making C-Kermit $(CKVER) for Masscomp RTU 4.1A...'
9364 ucb make wermit \
9365 "CFLAGS= -DBSD4 -DRTU -DXNDIR -DHDBUUCP $(KFLAGS)" \
9366 "LIBS = -lndir"
9367
9368 #Masscomp/Concurrent RTU 4.0 or later, same as above,
9369 #Includes <sys/ndir.h>
9370 #Note "LIBS = -lndir" might not be necessary because of "ucb make".
9371 rtubsd3:
9372 @echo 'Making C-Kermit $(CKVER) for Masscomp RTU 4.x BSD...'
9373 ucb make wermit "CFLAGS= -DBSD4 -DRTU -DHDBUUCP $(KFLAGS)" \
9374 "LIBS = -lndir"
9375
9376 #Masscomp/Concurrent RTU 4.0 or later, System V R2, using <dirent.h>.
9377 #In case of problems, add back the -DRTU switch.
9378 #In case -DTCPSOCKET gives trouble, remove it.
9379 rtus5:
9380 @echo 'Making C-Kermit $(CKVER) for Masscomp RTU 4.x...'
9381 $(MAKE) wermit \
9382 "CFLAGS= -DATTSV -DHDBUUCP -DDIRENT -DTCPSOCKET $(KFLAGS)"
9383
9384 #Masscomp/Concurrent RTU 4.x, System V R3, using <dirent.h>.
9385 #Use this one if rtus5 gives warnings about pointer type mismatches.
9386 #In case of problems, add back the -DRTU switch.
9387 rtus5r3:
9388 @echo 'Making C-Kermit $(CKVER) for Masscomp RTU Sys V R3...'
9389 $(MAKE) wermit "CFLAGS= -DSVR3 -DHDBUUCP -DDIRENT $(KFLAGS)"
9390
9391 #DEC Pro-3xx with Pro/Venix V1.0 or V1.1
9392 # Requires code-mapping on non-I&D-space 11/23 processor, plus some
9393 # fiddling to get interrupt targets into resident code section.
9394 # This almost certainly doesn't work any more.
9395 provx1:
9396 @echo 'Making C-Kermit $(CKVER) for DEC Pro-3xx, Pro/Venix 1.x...'
9397 $(MAKE) wermit "CFLAGS = -DPROVX1 -DNOFILEH -md780" \
9398 "LNKFLAGS= -u _sleep -lc -md780"
9399
9400 #Nixdorf Targon/31.
9401 #AT&T UNIX System V R3, signal() is void rather than int.
9402 #Uses dirent.h without Honey DanBer uucp.
9403 t31tos40x:
9404 @echo 'Making C-Kermit $(CKVER) for Targon/31 with TOS 4.0.xx...'
9405 $(MAKE) wermit \
9406 "CFLAGS= -DSVR3 -DDIRENT $(KFLAGS) -O" \
9407 "LNKFLAGS="
9408
9409 #NCR Tower 1632, OS 1.02
9410 tower1:
9411 @echo 'Making C-Kermit $(CKVER) for NCR Tower 1632, OS 1.02...'
9412 $(MAKE) wermit "CFLAGS= -DTOWER1 $(KFLAGS)"
9413
9414 #NCR Tower 32, OS Release 1.xx.xx
9415 tower32-1:
9416 @echo 'Making C-Kermit $(CKVER) for NCR Tower 32 Rel 1 System V R2...'
9417 @echo 'Add KFLAGS=-DISDIRBUG if you get errors about S_ISREG/S_ISDIR.'
9418 $(MAKE) wermit \
9419 "CFLAGS = -DATTSV $(KFLAGS) -O" "LNKFLAGS = -n"
9420
9421 #NCR Tower 32, OS Release 2.xx.xx
9422 tower32-2:
9423 @echo 'Making C-Kermit $(CKVER) for NCR Tower 32 Rel 2 System V R2...'
9424 $(MAKE) wermit \
9425 "CFLAGS = -DATTSV -DHDBUUCP $(KFLAGS) -O2" \
9426 "LNKFLAGS = -n"
9427
9428 #NCR Tower 32, OS Releases based on System V R3
9429 #Don't add -DNAP (doesn't work right) or -DRDCHK (not available in libc).
9430 tower32:
9431 @echo 'Making C-Kermit $(CKVER) for NCR Tower 32 System V R3...'
9432 $(MAKE) wermit \
9433 "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DNOSYSIOCTLH $(KFLAGS) \
9434 -DUID_T=ushort -DGID_T=ushort -O1"
9435
9436 #NCR Tower 32, OS Releases based on System V R3
9437 tower32g:
9438 @echo 'Making C-Kermit $(CKVER) for NCR Tower 32 System V R3, gcc...'
9439 $(MAKE) wermit "CC = gcc" \
9440 "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DNOSYSIOCTLH $(KFLAGS) \
9441 DUID_T=ushort -DGID_T=ushort -O -fstrength-reduce -fomit-frame-pointer"
9442
9443 #Fortune 32:16, For:Pro 1.8 (mostly like 4.1bsd)
9444 ft18:
9445 @echo 'Making C-Kermit $(CKVER) for Fortune 32:16 For:Pro 1.8...'
9446 $(MAKE) wermit \
9447 "CFLAGS= -DNODEBUG -DBSD4 -DFT18 -DNOFILEH $(KFLAGS) \
9448 -DPID_T=short"
9449
9450 #Fortune 32:16, For:Pro 2.1 (mostly like 4.1bsd).
9451 #The modules that break the optimizer are compiled separately.
9452 ft21:
9453 @echo 'Making C-Kermit $(CKVER) for Fortune 32:16 For:Pro 2.1...'
9454 $(MAKE) ckuusx.$(EXT) "CFLAGS= -DNODEBUG -DBSD4 -DFT21 -DNOFILEH \
9455 -SYM 800 -DCK_CURSES $(KFLAGS) -DPID_T=short" \
9456 "LNKFLAGS= -n -s" "LIBS= -lcurses -ltermcap -lv -lnet"
9457 $(MAKE) ckuxla.$(EXT) "CFLAGS= -DNODEBUG -DBSD4 -DFT21 -DNOFILEH \
9458 -SYM 800 -DCK_CURSES $(KFLAGS) -DPID_T=short" \
9459 "LNKFLAGS= -n -s" "LIBS= -lcurses -ltermcap -lv -lnet"
9460 $(MAKE) ckudia.$(EXT) "CFLAGS= -DNODEBUG -DBSD4 -DFT21 -DNOFILEH \
9461 -SYM 800 -DCK_CURSES $(KFLAGS) -DPID_T=short" \
9462 "LNKFLAGS= -n -s" "LIBS= -lcurses -ltermcap -lv -lnet"
9463 $(MAKE) wermit \
9464 "CFLAGS= -O -DNODEBUG -DBSD4 -DFT21 -DNOFILEH -SYM 800 \
9465 -DCK_CURSES $(KFLAGS) -DPID_T=short" \
9466 "LNKFLAGS= -n -s" "LIBS= -lcurses -ltermcap -lv -lnet"
9467
9468 #Valid Scaldstar
9469 #Berkeleyish, but need to change some variable names.
9470 valid:
9471 @echo 'Making C-Kermit $(CKVER) for Valid Scaldstar...'
9472 $(MAKE) wermit \
9473 "CFLAGS= -DBSD4 -DNODEBUG -DNOTLOG -Dcc=ccx -DFREAD=1 $(KFLAGS)"
9474
9475 #IBM IX/370 on IBM 370 Series mainframes
9476 #Mostly like sys3, but should buffer packets.
9477 ix370:
9478 @echo 'Making C-Kermit $(CKVER) for IBM IX/370...'
9479 $(MAKE) wermit "CFLAGS = -DIX370 -DATTSV $(KFLAGS) -i -O" \
9480 "LNKFLAGS = -i"
9481
9482 #Amdahl UTS 2.4 on IBM 370 series compatible mainframes.
9483 #Mostly like V7, but can't do initrawq() buffer peeking.
9484 uts24:
9485 @echo 'Making C-Kermit $(CKVER) for Amdahl UTS 2.4...'
9486 $(MAKE) wermit "CFLAGS=-DV7 -DPROCNAME=\\\"$(PROC)\\\" \
9487 -DUTS24 -DBOOTNAME=\\\"$(BOOTFILE)\\\" -DNPROCNAME=\\\"$(NPROC)\\\" \
9488 -DNPTYPE=$(NPTYPE) $(DIRECT) $(KFLAGS)"
9489
9490 #Amdahl UTSV UNIX System V = System V R2 or earlier.
9491 utsv:
9492 @echo 'Making C-Kermit $(CKVER) for Amdahl UTSV...'
9493 $(MAKE) wermit \
9494 "CFLAGS = -DUTSV $(KFLAGS) -i -O" "LNKFLAGS = -i"
9495
9496 #Amdahl UTSV UNIX System V = System V R2 or earlier, with TCP sockets library.
9497 utsvtcp:
9498 @echo 'Making C-Kermit $(CKVER) for Amdahl UTSV w/tcp...'
9499 $(MAKE) wermit "CFLAGS = \
9500 -DTCPSOCKET -DUTSV $(KFLAGS) -i -O" "LNKFLAGS = -i" \
9501 "LIBS = -lsocket"
9502
9503 #BBN C/70 with IOS 2.0
9504 #Mostly Berkeley-like, but with some ATTisms
9505 c70:
9506 @echo 'Making C-Kermit $(CKVER) for BBN C/70 IOS 2.0...'
9507 $(MAKE) wermit "CFLAGS= -DBSD4 -DC70 $(KFLAGS)"
9508
9509 #Zilog ZEUS 3.21
9510 zilog:
9511 @echo 'Making C-Kermit $(CKVER) for Zilog Zeus 3.21...'
9512 $(MAKE) wermit \
9513 "CFLAGS = -DATTSV -DZILOG -DNODEBUG $(KFLAGS) -i -O" \
9514 "LNKFLAGS = -i -lpw"
9515
9516 #Whitechapel MG-1 Genix 1.3
9517 white:
9518 @echo 'Making C-Kermit $(CKVER) for Whitechapel MG-1 Genix 1.3...'
9519 $(MAKE) wermit "CFLAGS= -DBSD4 -Dzkself()=0 $(KFLAGS)"
9520
9521 #Pixel 1000
9522 pixel:
9523 @echo 'Making C-Kermit $(CKVER) for Pixel 1000...'
9524 $(MAKE) wermit "CFLAGS= -DBSD4 -Dzkself()=0 $(KFLAGS)"
9525
9526 ptx:
9527 $(MAKE) "MAKE=$(MAKE)" dynixptx12
9528
9529 #CDC VX/VE 5.2.1
9530 vxve:
9531 @echo 'Making C-Kermit $(CKVER) for CDC VX/VE 5.2.1...'
9532 $(MAKE) wermit \
9533 "CFLAGS = -DATTSV -DVXVE -DNODEBUG -DNOTLOG $(KFLAGS) -i -O" \
9534 "LNKFLAGS = -i"
9535
9536 #DIAB DS90 or LUXOR ABC-9000 with pre-5.2 DNIX. Sys V with nap() and rdchk().
9537 # nd = no opendir(), readdir(), closedir(), etc.
9538 # Some of the modules fail to compile with -O.
9539 dnixnd:
9540 @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with very old DNIX 5.2.'
9541 $(MAKE) wermit \
9542 "CFLAGS = -DATTSV -DNAP -DRDCHK -DDCLPOPEN \
9543 -U__STDC__ $(KFLAGS)"
9544
9545 #DIAB DS90 with DNIX 5.2. Sys V with nap() and rdchk().
9546 # This one has opendir(), readdir(), closedir(), etc.
9547 # Some of the modules fail to compile with -O.
9548 dnix:
9549 @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with old DNIX 5.2...'
9550 $(MAKE) wermit \
9551 "CFLAGS = -DATTSV -DNAP -DRDCHK -DDIRENT \
9552 -U__STDC__ $(KFLAGS)"
9553
9554 #DIAB DS90 with DNIX 5.2. Sys V with nap() and rdchk().
9555 # As above, but with curses and TCP/IP.
9556 # You might get complaints about redefinition of O_RDONLY, etc, because
9557 # of bugs in the DNIX header files, which can be fixed by adding #ifndef...
9558 # around the offending definitions in the header files.
9559 dnixnetc:
9560 @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with old DNIX 5.2...'
9561 $(MAKE) wermit \
9562 "CFLAGS = -DATTSV -DNAP -DRDCHK -DDIRENT \
9563 -DTCPSOCKET -DCK_CURSES -I/usr/include/bsd -U__STDC__ $(KFLAGS)" \
9564 "LIBS = -ln -lcurses"
9565
9566 #DIAB DS90 with DNIX 5.3 or later, with HDB UUCP, nap() and rdchk().
9567 dnix5r3:
9568 @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with DNIX 5.3...'
9569 @echo 'with Honey DanBer UUCP'
9570 $(MAKE) wermit \
9571 "CFLAGS = -DSVR3 -DHDBUUCP -DNAP -DRDCHK -DDIRENT \
9572 -DCK_CURSES -DRENAME $(KFLAGS) -O" "LIBS= -lcurses"
9573
9574 #DIAB DS90 with DNIX 5.3 or later, with HDB UUCP, nap() and rdchk() + TCP/IP
9575 dnix5r3net:
9576 @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with DNIX 5.3...'
9577 @echo 'with Honey DanBer UUCP and TCP/IP'
9578 $(MAKE) wermit \
9579 "CFLAGS = -DSVR3 -DHDBUUCP -DNAP -DRDCHK -DDIRENT \
9580 -DTCPSOCKET -DCK_CURSES -DRENAME $(KFLAGS) -O \
9581 -I/usr/include/bsd" "LIBS = -ln -lcurses"
9582
9583 #DIAB DS90 with DNIX 5.3 2.2 or later, with HDB UUCP, nap() and rdchk(),
9584 #ANSI C compilation and libraries.
9585 #Note that for DNIX 5.3 2.2 you have to correct a bug in /usr/include/stdlib.h:
9586 #change "extern void free(char *str);"
9587 #to "extern void free(void *str);"
9588 #NOTE: This bug is reportedly fixed in DNIX 5.3 2.2.1.
9589 #Should you get fatal errors caused by harmless pointer-type mismatches,
9590 #like between signed and unsigned char, just remove -X7.
9591 dnix5r3ansi:
9592 @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with DNIX 5.3...'
9593 @echo 'with ANSI C Honey DanBer UUCP'
9594 $(MAKE) wermit \
9595 "CFLAGS = -DSVR3 -DDIAB -DHDBUUCP -DNAP -DRDCHK -DDIRENT \
9596 -DCK_ANSILIBS -DCK_CURSES -DRENAME -O -X7 -X9 $(KFLAGS)" \
9597 "LIBS= -lcurses"
9598
9599 #DIAB DS90 with DNIX 5.3 2.2 or later, with HDB UUCP, nap() and rdchk(),
9600 # + TCP/IP, ANSI C compilation and libraries.
9601 #Should you get fatal errors caused by harmless pointer-type mismatches,
9602 #like between signed and unsigned char, just remove -X7.
9603 dnix5r3ansinet:
9604 @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with DNIX 5.3...'
9605 @echo 'with ANSI C Honey DanBer UUCP'
9606 $(MAKE) wermit \
9607 "CFLAGS = -DSVR3 -DDIAB -DHDBUUCP -DNAP -DRDCHK -DDIRENT \
9608 -DTCPSOCKET -DCK_ANSILIBS -DCK_CURSES -DRENAME -O -X7 -X9 $(KFLAGS) \
9609 -I/usr/include/bsd" "LIBS= -ln -lcurses"
9610
9611 #Ridge 32 with ROS 3.2
9612 ridge32:
9613 @echo 'Making C-Kermit $(CKVER) Ridge 32 ROS 3.2'
9614 $(MAKE) wermit \
9615 "CFLAGS = -DATTSV -DNOFILEH -DNODEBUG -DNOTLOG $(KFLAGS) -i -O" \
9616 "LNKFLAGS = -i"
9617
9618 #Altos 486, 586, or 986 with Xenix 3.0
9619 altos:
9620 @echo 'Making C-Kermit $(CKVER) for Altos x86 with Xenix 3.0...'
9621 $(MAKE) wermit \
9622 "CFLAGS= -DATTSV -DA986 -DNODEBUG -DNOTLOG $(KFLAGS) -i -O" \
9623 "LNKFLAGS= -i"
9624
9625 #Altos 986 with Xenix 3.0, as above, but command-line only, minimal size.
9626 #For systems with small memories. It might also be necessary to chop certain
9627 #modules up into smaller pieces, e.g. ckuus3-6, because of symbol table
9628 #overflow. If this makefile is too big or complex for the Altos, compile
9629 #and link by hand or write shell scripts.
9630 altosc:
9631 @echo 'Making C-Kermit $(CKVER) for Altos x86 Xenix 3.0, remote...'
9632 $(MAKE) wermit \
9633 "CFLAGS= -DATTSV -DA986 -DNODEBUG -DNOTLOG -DNOSCRIPT -DNODIAL \
9634 -DNOCSETS -DNOANSI -DNOMSEND -DNOSPL -DNOICP $(KFLAGS) -Mm -O" \
9635 "LNKFLAGS= -Mm -s"
9636
9637 #Altos 986 with Xenix 3.0, as above, but interactive only, minimal size.
9638 altosi:
9639 @echo 'Making C-Kermit $(CKVER) for Altos x86 Xenix 3.0, local...'
9640 $(MAKE) wermit \
9641 "CFLAGS= -DATTSV -DA986 -DNODEBUG -DNOTLOG -DNOSCRIPT -DNODIAL \
9642 -DNOCSETS -DNOANSI -DNOMSEND -DNOSPL -DNOCMDL -DNOFRILLS -DNOHELP \
9643 -DNOSETKEY $(KFLAGS) -Mm -O" "LNKFLAGS= -Mm -s"
9644
9645 # Altos ACS68000 68000 System, UNIX System 3 Release 2, 512k memory.
9646 # also needs getcwd() external function; see ckuins.txt file.
9647 # also, sys/types.h needed modifying:
9648 # #ifdef __SYS_TYPES_H__, #define ..., #endif
9649 # also, ckuus2.c MUST be compiled NOOPT else symbol table is destroyed!
9650 # Submission by Robert Weiner/Programming Plus, [email protected].
9651 #
9652 altos3:
9653 @echo 'Making C-Kermit $(CKVER) for Altos ACS68k UNIX System III'
9654 $(MAKE) ckuus2.$(EXT) "CFLAGS = -DATTSV -DNOCSETS -DNOSETKEY -DNOJC \
9655 -DNODIAL -DDCLPOPEN -DNOSCRIPT -DNOHELP $(KFLAGS) -i"
9656 $(MAKE) wermit \
9657 "CFLAGS = -DATTSV -DNOCSETS -DNOSETKEY -DNOJC \
9658 -DNODIAL -DDCLPOPEN -DNOSCRIPT -DNOHELP $(KFLAGS) -i -O" \
9659 "LNKFLAGS = -i" "LIBS = getcwd.$(EXT)"
9660
9661 #MINIX - Original PC version with 64K+64K limit.
9662 # Reportedly, the linker (asld) can run out of space while linking. The only
9663 # way around this is to make a copy of libc.a from which all modules that are
9664 # not used by Kermit are removed.
9665 #
9666 # The version configured below has no interactive command parser.
9667 # If you can build this version successfully, maybe there will be room for
9668 # a minimal interactive command parser too; try replacing -DNOICP with
9669 # -DNOSPL, plus every other -DNOxxx flag there is, except for -DNOICP
9670 # (see ckccfg.txt).
9671 minix:
9672 @echo 'Making C-Kermit $(CKVER) for MINIX, no command parser...'
9673 @echo 'TOTALLY UNTESTED!'
9674 $(MAKE) wermit EXT=s \
9675 "CFLAGS= -DV7 -DMINIX -i -D_MINIX -D_POSIX_SOURCE \
9676 -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t -DSIG_V \
9677 -DNOXMIT -DNOMSEND -DNOFRILLS -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG \
9678 -DNOSCRIPT -DNOCSETS -DNOICP -DNOSETKEY $(KFLAGS)" \
9679 "LNKFLAGS= -i -T"
9680
9681 # MINIX - PC version with 64K+64K limit, newer ACK 2.0 beta C compiler,
9682 # which outputs .o object files, rather than .s. But MINIX 'make' still
9683 # expects *.s object files, so must be patched to use .o.
9684 # Tested on Minix 1.5.10.
9685 minix15:
9686 @echo 'Making C-Kermit $(CKVER) for MINIX (new ACK 2.0 compiler),'
9687 @echo 'no command parser... TOTALLY UNTESTED!'
9688 $(MAKE) wermit \
9689 "CFLAGS= -DV7 -DMINIX -i -D_MINIX -D_POSIX_SOURCE \
9690 -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t -DSIG_V -DNODIAL \
9691 -DNOHELP -DNODEBUG -DNOTLOG -DNOSCRIPT -DNOCSETS -DNOICP $(KFLAGS)" \
9692 "LNKFLAGS= -i -T"
9693
9694 #MINIX3 - MINIX 3.0
9695 #Uses the old fork()-based CONNECT command module ckucon.c
9696 #Support for select() was added to MINIX somewhere between 3.0 and 3.3;
9697 #it's definitely in 3.3 (see next target).
9698 #OK 28 November 2022 on MINIX 3.2.1 and 3.3.0.
9699 minix3:
9700 @echo 'Making C-Kermit $(CKVER) for MINIX3...'
9701 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
9702 "CFLAGS= -DPOSIX -DNOUUCP -DNOLEARN -DMINIX2 -DMINIX3 \
9703 -DNO_PARAM_H -DNOSYSLOG -DNOGETUSERSHELL -DNOINITGROUPS \
9704 -DNOFTRUNCATE -DDNOREALPATH -DTCPSOCKET -DNOTIMEZONE -DNORLOGIN \
9705 -DNOFTP -DNO_DNS_SRV -DNOIKSD $(KFLAGS) -O"
9706
9707 #MINIX3 - MINIX 3.0
9708 # This uses the currently (i.e. last 20-30 years) standard CONNECT
9709 # command code, which is based on select(), rather than the 1980s C-Kermit
9710 # original fork()-based method. This target can be used on at least MINIX
9711 # 3.3.0, maybe also earlier MINIX 3 editions, but not MINIX 2 or earlier.
9712 # OK 28 November 2022 on MINIX 3.3.0
9713 minix3+select:
9714 @echo 'Making C-Kermit $(CKVER) for MINIX3...'
9715 $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} \
9716 "CFLAGS= -DPOSIX -DNOUUCP -DNOLEARN -DMINIX2 -DMINIX3 \
9717 -DNO_PARAM_H -DNOSYSLOG -DNOGETUSERSHELL -DNOINITGROUPS \
9718 -DNOFTRUNCATE -DDNOREALPATH -DTCPSOCKET -DNOTIMEZONE -DNORLOGIN \
9719 -DNOFTP -DNO_DNS_SRV -DNOIKSD $(KFLAGS) -O"
9720
9721 #MINIX315 - MINIX 3 1.5 - January 2010
9722 #Last tested successfully on MINIX 3.3.0 28 November 2022
9723 minix315:
9724 @echo 'Making C-Kermit $(CKVER) for Minix 3 1.5...'
9725 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
9726 "CFLAGS= -DMINIX315 -DPOSIX -DNOUUCP -DNOJC -DNOLEARN $(KFLAGS) \
9727 -DHAVE_OPENPTY -DNO_PARAM_H -DNOSYSLOG -DNOGETUSERSHELL \
9728 -DSYSTIMEH -DNOINITGROUPS -DNOFTRUNCATE -DNOREALPATH \
9729 -DNORLOGIN -DTCPSOCKET -DNOTIMEZONE -DNO_DNS_SRV -DNOFTP -O"
9730
9731 #MINIX340 - MINIX 3.4.0 - January 2022
9732 #Last tested successfully on MINIX 3.3.0 28 November 2022
9733 minix340:
9734 @echo 'Making C-Kermit $(CKVER) for Minix 3.4.0...'
9735 $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} \
9736 "CFLAGS= -DMINIX340 -DPOSIX -DCK_CURSES \
9737 -DCK_TRCD -DCK_TRCTS -DZLIB -DBSD44 -DNOJC \
9738 -DNDSYSERRLIST -DNOJC -DHAVE_OPENPTY $(KFLAGS) \
9739 -DLOCK_DIR=\\\"/var/spool/uucp\\\" \
9740 -DSYSTIMEH -DTCPSOCKET -O" \
9741 "LIBS= -lcrypt -lcurses -lutil"
9742
9743 #PFU Compact A Series UNIX System V R3, SX/A TISP V10/L50 (Japan)
9744 #Maybe the -i link option should be removed?
9745 sxae50:
9746 @echo 'Making C-Kermit $(CKVER) for PFU SX/A V10/L50...'
9747 $(MAKE) xermit \
9748 "CFLAGS= -DSVR3 -DDIRENT -DsxaE50 -DTCPSOCKET $(KFLAGS) -i -O" \
9749 "LNKFLAGS= "
9750
9751 #Tektronix 6130, 4319, 4301, etc, with UTek OS, /usr/spool/uucp/LCK./...
9752 #The models that support hardware flow control.
9753 utek:
9754 @echo 'Making C-Kermit $(CKVER) for 4.2BSD/UTek, hardware flow control'
9755 $(MAKE) wermit \
9756 "CFLAGS= -O -DLCKDIR -DBSD4 -DTCPSOCKET \
9757 -DUTEK -DDCLPOPEN -DLOCK_DIR=\\\"/usr/spool/uucp/LCK.\\\" \
9758 -DTRMBUFL=2048 -DCK_DTRCTS $(KFLAGS)"
9759
9760 #Tektronix 4315, 4316, 4317 with UTek OS, /usr/spool/uucp/LCK./...
9761 #The models that do not fully support hardware flow control.
9762 uteknohwfc:
9763 @echo 'Making C-Kermit $(CKVER) for 4.2BSD/UTek, no h/w flow control'
9764 $(MAKE) wermit \
9765 "CFLAGS= -O -DLCKDIR -DBSD4 -DTCPSOCKET \
9766 -DUTEK -DDCLPOPEN -DLOCK_DIR=\\\"/usr/spool/uucp/LCK.\\\" \
9767 -DTRMBUFL=2048 $(KFLAGS)"
9768
9769 #Tektronix XD88 with UTekV OS
9770 utekvr3:
9771 @echo 'Making C-Kermit $(CKVER) for Tektronix XD88 UTekV R3...'
9772 $(MAKE) wermit \
9773 "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP \
9774 -DTCPSOCKET -DSYSUTIMEH -DCK_CURSES $(KFLAGS) -O" \
9775 "LIBS= -lcurses" "LNKFLAGS= -s"
9776
9777 #Perkin-Elmer 3200 Xelos R02 or earlier
9778 ccop1:
9779 @echo 'Making C-Kermit $(CKVER) for Xelos & Public Domain Dirent calls'
9780 @echo 'or System V R2 or earlier...'
9781 $(MAKE) wermit \
9782 "CFLAGS = -DATTSV -Dvoid=int -DDIRENT -DCK_CURSES \
9783 $(KFLAGS) -O" "LNKFLAGS =" "LIBS= -lcurses -ltermlib"
9784
9785 #Encore, UMAX 4.3 (BSD) but without acucntrl program.
9786 encore:
9787 $(MAKE) "MAKE=$(MAKE)" umax43 "KFLAGS=$(KFLAGS)"
9788
9789 #Encore, as above, but with curses file transfer display included.
9790 encorec:
9791 $(MAKE) "MAKE=$(MAKE)" umax43 "KFLAGS=-DCK_CURSES $(KFLAGS)" \
9792 "LIBS= -lcurses -ltermcap"
9793
9794 #Encore, UMAX 4.3 (BSD) but without acucntrl program.
9795 umax43:
9796 @echo Making C-Kermit $(CKVER) for Encore UMAX 4.3...
9797 $(MAKE) "MAKE=$(MAKE)" PARALLEL=4 xermit \
9798 "CFLAGS= -DBSD43 -DENCORE -DTCPSOCKET $(KFLAGS) -O"
9799
9800 #Encore, UMAX 4.2 (BSD)
9801 umax42:
9802 @echo Making C-Kermit $(CKVER) for Encore UMAX 4.2...
9803 $(MAKE) "MAKE=$(MAKE)" PARALLEL=4 xermit \
9804 "CFLAGS= -DBSD4 -DENCORE -DTCPSOCKET $(KFLAGS) -O"
9805
9806 #Encore 88K UMAX 5.3 with TCP/IP support
9807 encore88k:
9808 @echo 'Making C-Kermit $(CKVER) for Encore 88K UMAX V, TCP/IP...'
9809 $(MAKE) xermit \
9810 "CFLAGS = -q ext=pcc -DSVR3 -DTCPSOCKET -DDIRENT \
9811 -DNOGETID_PROTOS -DHDBUUCP $(KFLAGS) -O" "LNKFLAGS ="
9812
9813 #Encore 88K UMAX 5.3 with TCP/IP support
9814 encore88kgcc:
9815 @echo 'Making C-Kermit $(CKVER) for Encore 88K UMAX V, TCP/IP, gcc...'
9816 $(MAKE) xermit CC=gcc CC2=gcc \
9817 "CFLAGS = -DSVR3 -DTCPSOCKET -DDIRENT \
9818 -DNOGETID_PROTOS -DHDBUUCP $(KFLAGS) -O" "LNKFLAGS ="
9819
9820 #SONY NEWS, NEWS-OS 4.01C
9821 sonynews:
9822 @echo Making C-Kermit $(CKVER) for SONY NEWS-OS 4.01C...
9823 $(MAKE) xermit "CFLAGS= -DBSD43 -DACUCNTRL -DTCPSOCKET -O"
9824
9825 #Run Lint on this mess for selected versions.
9826 #These are pretty much obsolete since ANSI C / gcc.
9827 lintsun:
9828 @echo 'Running Lint on C-Kermit $(CKVER) sources for SunOS version...'
9829 lint -x -DSUNOS4 -DDIRENT -DTCPSOCKET -DSAVEDUID \
9830 ck[cu]*.c > ckuker.lint.sun
9831
9832 lintbsd:
9833 @echo 'Running Lint on C-Kermit $(CKVER) sources for BSD 4.2 version..'
9834 lint -x -DBSD4 -DTCPSOCKET ck[cu]*.c > ckuker.lint.bsd42
9835
9836 lints5:
9837 @echo 'Running Lint on C-Kermit $(CKVER) sources for Sys V version...'
9838 lint -x -DATTSV ck[cu]*.c > ckuker.lint.s5
9839
9840 #Who remembers TECO?
9841 love:
9842 @echo 'Not war?'
9843
9844 #Check the most recent build (assuming any previous wermit had been deleted)
9845 check: unit-test
9846 @if test -s wermit -a -x wermit ; then \
9847 echo SUCCESS:; ls -l wermit ; else \
9848 echo FAILED; \
9849 fi
9850
9851 #Regenerate the HELP/INTRO reference doc from a built wermit binary.
9852 help-reference:
9853 @if [ ! -x wermit ]; then \
9854 echo "Error: wermit not found. Please build a target first" \
9855 "(e.g., 'make linux+ssl')."; \
9856 exit 1; \
9857 fi
9858 python3 tools/gen_help_reference.py > doc/help-reference.md