📄 makefile
字号:
# + for SCO UNIX/386 3.2 V4.x with TCP/IP, "make sco32v4net"# (also sco32v4gcc, sco32v4netgcc)# + for SCO UNIX/386 3.2 V5.0 - see SCO OpenServer.# + for SCO UNIX 3.2v4.x with TCP/IP, <dirent.h> for Extended Acer File# System (EAFS), curses, ANSI C compilation, "make sco32v4net"# + or (to use select()-based CONNECT module) "make sco32v4netx".# + for SCO UNIX 3.2v4.2, "make sco-odt30"# + for SCO MPX 3.0 - The SCO UNIX binary runs on the corresponding MPX system.## NOTE: Also see below for other entries that are variations on these.# Also be sure to read the comments accompanying each SCO entry.## + for SCO ODT 2.0, "make sco32v4net"# + for SCO ODT 3.0, "make sco-odt30"# + for SCO OpenServer 5.0 (OSR5), "make sco32v500"# + for SCO OpenServer 5.0 (OSR5) with networking, "make sco32v500net"# + for SCO OpenServer 5.0 (OSR5), gcc, "make sco32v500gcc"# + for SCO OpenServer 5.0 (OSR5), gcc, with networking, "make sco32v500netgcc"# + for SCO OpenServer 5.0 (OSR5), as above, ELF, "make sco32v500netgccelf"# + for SCO OpenServer 5.0.4, use "make sco32v504xxx" entries as above.# + for SCO OpenServer 5.0.5, use "make sco32v505xxx" entries as above.# + for SCO OpenServer 5.0.5 with UDK, use "make sco32v505udk".# (for SCO UnixWare - see UnixWare)# ? for Sequent with DYNIX/ptx 1.2.1, "make dynixptx12"# ? for Sequent with DYNIX/ptx 1.3 or 1.4 with TCP/IP, "make dynixptx13"# ? for Sequent with DYNIX/ptx 2.0 or 2.1 with TCP/IP, "make dynixptx20"# or "dynixptx20c"# + for Sequent with DYNIX/ptx 2.1.6 on i486, "dynixptx216c"# ? for Sequent with DYNIX/ptx V4.1.3 with TCP/IP, "make dynixptx41c"# + for Sequent with DYNIX/ptx V4.4.2 with TCP/IP, "make dynixptx44"# ? for Sequent Balance 8000 or B8 with DYNIX 3.0.xx, "make dynix3"# or "make dynix3noacu"# ? for Sequent Symmetry S81 with DYNIX 3.0.xx, "make dynix3"# ? for Sequent DYNIX 3.1.xx, "make dynix31" or "make dynix31c"# + for Siemens/Nixdorf SINIX-L Intel V5.41, "make sinix541i"# + for Siemens/Nixdorf SINIX-N MIPS V5.42, "make sinix542"# + for Siemens/Nixdorf SINIX-Z Intel V5.42, "make sinix542i"# + for Siemens/Nixdorf Reliant UNIX V5.43, "make sni543"# + for Siemens/Nixdorf Reliant UNIX V5.44, "make sni544"# ? for Silicon Graphics Iris System V IRIX 3.2 or earlier, "make iris"# ? for Silicon Graphics Sys V R3 with IRIX 3.3 or later, "make sys5r3"# ? for Silicon Graphics Iris Indigo with IRIX 4.0 or 5.0, "make irix40" or# (to include Yellow Pages and Curses) "make irix40ypc"# ? for Silicon Graphics Iris Indigo or Elan with IRIX 4.0.x with microcode# optimization and -O4, "make irix40u" or "irix40uc" (and read notes# accompanying these entries).# + for Silicon Graphics IRIX 5.1, "make irix51"# + for Silicon Graphics IRIX 5.2, "make irix52"# + for Silicon Graphics IRIX 5.3, "make irix53"# + for Silicon Graphics IRIX 6.0, "make irix60".# + for Silicon Graphics IRIX 6.2, "make irix62".# + for Silicon Graphics IRIX 6.3, "make irix63".# + for Silicon Graphics IRIX 6.4, "make irix64" or "make irix64gcc".# + for Silicon Graphics IRIX 6.5, "make irix65".# + for SGI IRIX 6.5.5 (new company name) "make irix65"# ? for Solaris 2.0-2.3 on SPARC or Intel, SunPro CC, "make solaris2x",# ? or to add SunLink X.25 8.0x support, "make solaris2x25".# + for Solaris 2.4 build with gcc, "make solaris24g".# + for Solaris 2.0-2.3 on SPARC or Intel, GNU CC, "make solaris2xg".# + for Solaris 2.4 with X.25, "make solaris24x25".# + for Solaris 2.5 on SPARC or Intel, SunPro CC, "make solaris25".# + or to add SunLink X.25 8.0x support, "make solaris25x25".# + for Solaris 2.5 on SPARC or Intel, GNU CC, "make solaris25g".# + for Solaris 2.6 on SPARC or Intel, "make solaris26".# + for Solaris 7 (a.k.a. 2.7) on SPARC or Intel, "make solaris7".# + for Solbourne 4/500 with OS/MP 4 "make sunos4"# + for Solbourne 4/500 with OS/MP 4.1 "make sunos41" or "make sunos41c"# ? for SONY NEWS with NEWS-OS 4.0.1C, "make sonynews"# ? for SONY NEWS with NEWS-OS 4.1.2C, "make sonynews"# ? for Sperry/UNISYS 5000/20, UTS V 5.2 3R1, "make sys5"# ? for Sperry/UNISYS 5000/30/35/50/55, UTS V 5.2 2.01, "make unisys5r2"# ? for Sperry/UNISYS 5000/80 with System V R3, "make sys5r3"# ? for Sperry/UNISYS 5000/95 with System V R3, "make sys5r3"# For UNISYS SVR3 it might be necessary to "make sys5r3 KFLAGS=-UDYNAMIC"# ? for Stardent 1520, "make sys5r3"# ? for Stratus FTX 2.x, try "make ftx" or else "make sys5r4" or "sys5r4sx"# + for Stratus FTX 3.x, PA-RISC 1.0 or 2.0, "make ftx" or "make ftxtcp"# ? for Sun with Sun UNIX 3.5 and gcc, "make sunos3gcc"# ? for Sun with pre-4.0 SunOS versions, "make bsd" (or appropriate variant)# ? for Sun with SunOS 4.0, BSD environment, "make sunos4"# ? for Sun with SunOS 4.0, BSD, with SunLink X.25, make sunos4x25# ? for Sun with SunOS 4.0, AT&T Sys V R3 environment, "make sunos4s5"# + for Sun with SunOS 4.1 or 4.1.1, BSD environment, "make sunos41"# or "make sunos41c" (curses) or "make sunos41gcc" (compile with gcc)# + for Sun with SunOS 4.1.x, BSD, with SunLink X.25 7.00 or earlier,# "make sunos41x25" or "make sunos41x25c" (curses)# + for Sun with SunOS 4.1, 4.1.1, AT&T Sys V R3 environment, "make sunos41s5"# + for Sun with SunOS 4.1, 4.1.1, POSIX environment, "make sunposix"# + for Sun with SunOS 4.1.2, "make sunos41" or any of its variations.# NOTE: All SunOS 4.x systems -- Shared libraries are used by default.# If this causes problems, add -Bstatic to CFLAGS.# NOTE2: When building C-Kermit under SunOS for the BSD universe,# but /usr/5bin/cc is ahead of /usr/ucb/cc in your PATH, add# "CC=/usr/ucb/cc CC2=/usr/ucb/cc" to the make entry.# NOTE3: If an executable built on one type of Sun hardware does not work# on another type, rebuild the program from source on the target machine.# for Sun with Solaris 1.x use SunOS 4.1 entries.# for Sun with Solaris 2.0 and higher use Solaris entries.# + for Sun SPARC with Linux, "make linux"# ? for Sun SPARC with OPENSTEP/Mach 4.1, "make nextquadfat"# ? for Sun SPARC with OPENSTEP/Mach 4.2, "make openstep42"# - for Tandy 16/6000 with Xenix 3.0, "make trs16" (C-Kermit 7.0 is too big)# ? for Tektronix 6130/4132/43xx (e.g.4301) with UTek OS, "make utek"# or (for models without hardware flow control), "make uteknohwfc"# ? for Tektronix XD88 series with UTekV OS, "make utekvr3"# ? for Tri Star Flash Cache with Esix SVR3.2, "make sys5r3"# ? for Unistar, "make sys5"# ? for Unisys S/4040 68040 CTIX SVR3.2 6.4.1, "make ctix" or "make sys5r3"# ? for Unisys U5000 UNIX SVR3 6.x, "make sys5r3" or "make sys5r3c"# ? for Unisys U6000 UNIX SVR4 1.x, "make sys5r4nx" or "make sys5r4nxnetc"# for Unisys ... (also see Sperry)# for Univel - see UnixWare# ? for UnixWare 1.x, "make unixware" or "make unixwarenetc".# If there are problems with this in C-K 7.0 see notes at unixware entry.# + for Unixware 2.0.x "make uw2"# + for UnixWare 2.1.x, "make uw21"# + for UnixWare 2.x with IKSD (shadow password) support, "make uw2iksd"# + for UnixWare 7, "make uw7"# + for UnixWare 7 with IKSD support, "make uw7iksd" or "make uw7iksdudk"# + for UnixWare 7 with OpenSSL, "make uw7ssl"# ? for Valid Scaldstar, "make valid"# ? for Whitechapel MG01 Genix 1.3, "make white"# ? for Zilog ZEUS 3.21, "make zilog"## The result should be a runnable program called "wermit" in the current# directory. After satisfactory testing, you can rename wermit to "kermit"# and put it where users can find it.## To remove intermediate and object files, "make clean".# If your C compiler produces files with an extension other than "o",# then "make clean EXT=u", "make clean EXT=s", or whatever.## To run lint on the source files, "make lintsun", "make lintbsd",# "make lints5", as appropriate.################################################################################# NOTES FOR V7 AND 2.X BSD (BASED ON VERSION 4E OF C-KERMIT, 1987):## For Unix Version 7, several variables must be defined to the values# associated with your system. BOOTNAME=/edition7 is the kernel image on# okstate's Perkin-Elmer 3230. Others will probably be /unix. PROCNAME=proc# is the name of the structure assigned to each process on okstate's system.# This may be "_proc" or some other variation. See <sys/proc.h> for more# info on your systems name conventions. NPROCNAME=nproc is the name of a# kernel variable that tells how many "proc" structures there are. Again# this may be different on your system, but nproc will probably be somewhere.# The variable NPTYPE is the type of the nproc variable -- int, short, etc.# which can probably be gleaned from <sys/param.h>. The definition of DIRECT# is a little more complicated. If nlist() returns, for "proc" only, the# address of the array, then you should define DIRECT as it is below. If# however, nlist() returns the address of a pointer to the array, then you# should give DIRECT a null definition (DIRECT= ). The extern declaration in# <sys/proc.h> should clarify this for you. If it is "extern struct proc# *proc", then you should NOT define DIRECT. If it is "extern struct proc# proc[]", then you should probably define DIRECT as it is below. See# ckuv7.hlp for further information.## For 2.9 BSD, the makefile may use pcc rather than cc for compiles; that's# what the CC and CC2 definitions are for (the current version of the# makefile uses cc for both; this was tested in version 4E of C-Kermit and# worked OK on the DEC Pro 380, but all bets are off for version 5A). 2.9# support basically follows the 4.1 path. Some 2.9 systems use "dir.h" for# the directory header file, others will need to change this to "ndir.h".## The v7 and 2.9bsd versions assume I&D space on a PDP-11. When building# C-Kermit for v7 on a PDP-11, you should probably add the -i option to the# link flags. Without I&D space, overlays will be necessary (if available),# or code segment mapping (a`la Pro/Venix) if that's available.## C-Kermit 5A (and 6.0?) can be built for 2.10 and 2.11BSD, using overlays,# but a separate makefile is used because this one is too big.################################################################################# V7-specific variables.# These are set up for Perkin-Elmer 3230 V7 Unix:#PROC=procDIRECT=NPROC=nprocNPTYPE=intBOOTFILE=/edition7## ( For old Tandy TRS-80 Model 16A or 6000 V7-based Xenix, use PROC=_proc,# DIRECT=-DDIRECT, NPROC=_Nproc, NPTYPE=short, BOOTFILE=/xenix )############################################################################## Compile and Link variables:## EXT is the extension (file type) for object files, normally o.# See MINIX entry for what to do if another filetype must be used.#EXT=o#LNKFLAGS=SHAREDLIB=CC= ccCC2= ccMAKE= makeSHELL=/bin/sh############################################################################ SAMPLE INSTALLATION SCRIPT## Modify to suit your own computer's file organization# and permissions. If you don't have write access to the destination# directories, "make install" will fail. In most cases, a real installation# will also require you to chown / chgrp for the UUCP lockfile and/or tty# devices, and perhaps also to chmod +s the appropriate permission fields.## Default binary, man, and doc directories are supplied below. You can# override them in your 'make' command. Examples:## make install # Accept defaults.# make "INFODIR=/usr/share/lib/kermit" install # Override INFODIR default.## You can also build and install in one step, e.g.:## make sunos41gcc install#WERMIT = makewhatDESTDIR =BINDIR = /usr/local/binMANDIR = /usr/man/manlINFODIR = /usr/local/doc/kermitMANEXT = lALL = $(WERMIT)all: $(ALL).c.o: $(CC) $(CFLAGS) -DKTARGET=\"$(KTARGET)\" -c $<#Clean up intermediate and object filesclean: @echo 'Removing object files...' -rm -f ckcmai.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) ckuus2.$(EXT) \ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) ckcpro.$(EXT) ckcfns.$(EXT) \ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) ckucon.$(EXT) ckutio.$(EXT) \ckufio.$(EXT) ckudia.$(EXT) ckuscr.$(EXT) ckwart.$(EXT) ckuusx.$(EXT) \ckuusy.$(EXT) ckcnet.$(EXT) ckuus6.$(EXT) ckuus7.$(EXT) ckusig.$(EXT) \ckucns.$(EXT) ckcmdb.$(EXT) ckuath.$(EXT) ckctel.$(EXT) ckclib.$(EXT) \ckcuni.$(EXT) ck_crp.$(EXT) ck_ssl.$(EXT) ckupty.$(EXT) ckcpro.c wart# Install C-Kermit after building -- IMPORTANT: Read the instructions above.install: cp wermit $(DESTDIR)$(BINDIR)/kermit chmod 755 $(DESTDIR)$(BINDIR)/kermit @echo @echo "Kermit binary installed:" @ls -l $(DESTDIR)$(BINDIR)/kermit @echo @echo " WARNING: If C-Kermit is to be used for dialing out, you will" @echo " probably need to change its owner and group and permissions to" @echo " match the cu program. See the ckuins.txt file for details." @echo @echo "Installing man page..."
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -