⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 makefile

📁 KERMIT工具 这在办公室下载不了,很多人都没有载不到.
💻
📖 第 1 页 / 共 5 页
字号:
# solaris2xg+krb5+krb4+openssl+shadow:# solaris25+krb4:# solaris25g+krb4:# solaris26g+openssl:# solaris8g+openssl+zlib+pam+shadow:# solaris8g+krb4:# solaris9g+openssl+zlib+pam+shadow:# solaris9g+openssl+shadow+pam+zlib# sunos41gcc+krb4:                    SunOS 4.1 built with gcc with Kerberos IV# sunos41gcc+openssl:                 SunOS 4.1 built with gcc with OpenSSL# sunos41gcc+krb4+openssl:            ...with Kerberos IV and OpenSSL# sunos41gcc+krb4+openssl+zlib:       ditto, plus ZLIB compression# sunos41gcc+krb4+srp+openssl+zlib:   ditto, plus SRP# sunos41gcc+srp+openssl+zlib:# uw7ssl################################################################################# 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"# fails.  In most cases, a real installation also requires you to chown /# chgrp the Kermit binary for the UUCP lockfile and/or tty devices, and# perhaps also to chmod +s the corresponding 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 solaris8 install## If you use the 'install' target to install C-Kermit, it creates an# UNINSTALL script that can be used to uninstall it.#WERMIT = makewhatBINARY = wermitDESTDIR =BINDIR = $(prefix)/binMANDIR = $(manroot)/man/man1MANEXT = 1SRCDIR =INFODIR =CERTDIR =TEXTFILES = COPYING.TXT ckcbwr.txt ckubwr.txt ckuins.txt ckccfg.txt \		ckcplm.txt ckermit.ini ckermod.ini ckermit70.txt ckermit80.txtALL = $(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) ckcftp.$(EXT) \ckcpro.c wart# Install C-Kermit after building -- IMPORTANT: Read the instructions above# (SAMPLE INSTALLATION SCRIPT).  For SSL/TLS versions, ca_certs.pem file# should be installed in the appropriate place for your OpenSSL library, e.g.:##   cp ca_certs.pem /usr/local/ssl/#   cp ca_certs.pem /usr/share/ssl/## To make sure 'man' notices the new source file and doesn't keep# showing the old formatted version, remove the old formatted version,# something like this:#		rm -f $(MANDIR)/../cat$(MANEXT)/kermit.$(MANEXT)# or this (which requires CATDIR to be defined):#		rm -f $(CATDIR)/kermit.$(MANEXT)## As of C-Kermit 8.0.205 this target also builds an UNINSTALL script, and# so it might be too long for some old Bourne shells, in which case you can# use a different shell:##   make SHELL=ksh install#   make SHELL=/bin/posix/sh install#install:	@echo Installing C-Kermit version $(CKVER)...;\	rm -f UNINSTALL;\	exec 3>./UNINSTALL;\	echo "# C-Kermit UNINSTALL script" >&3;\	echo "# `date`\n" >&3;\	echo "CKVER=$(CKVER)" >&3;\	echo "PrN Uninstalling C-Kermit version $(CKVER)..." >&3;\	echo DESTDIR=$(DESTDIR);\	if test -n "$(DESTDIR)"; then\		if test -d $(DESTDIR); then\			echo  "$(DESTDIR) exists...\n";\		else\			echo "Creating $(DESTDIR)...";\			DESTDIR=`echo $(DESTDIR) | sed 's!/*$$!!'`;\			mkdir $$DESTDIR  || exit 1;\		fi;\		chmod 755 $(DESTDIR) || exit 1;\	fi;\	echo BINARY=$(BINARY);\	if test -f $(BINARY); then\		ls -l $(BINARY);\	else\		echo "?$(BINARY) not found";\		exit 1;\	fi;\	if test -z "$(DESTDIR)$(BINDIR)"; then\		echo "Binary directory not specified";\		exit 1;\	fi;\	if test -d $(DESTDIR)$(BINDIR); then\		echo  "$(DESTDIR)$(BINDIR) exists...";\	else\		echo "Creating $(DESTDIR)$(BINDIR)/...";\		mkdir     $(DESTDIR)$(BINDIR) || exit 1;\		chmod 755 $(DESTDIR)$(BINDIR);\	fi;\	rm -f $(DESTDIR)$(BINDIR)/kermit;\	cp $(BINARY) $(DESTDIR)$(BINDIR)/kermit || exit 1;\	chmod 755    $(DESTDIR)$(BINDIR)/kermit || exit 1;\	rm -f        $(DESTDIR)$(BINDIR)/kermit-sshsub;\	ln -s        $(DESTDIR)$(BINDIR)/kermit\		     $(DESTDIR)$(BINDIR)/kermit-sshsub || exit 1;\	echo 'set flag=f\nPrC Removing binaries' >&3;\	echo "RmF $(DESTDIR)$(BINDIR)/kermit-sshsub" >&3;\	echo "RmF $(DESTDIR)$(BINDIR)/kermit" >&3;\	if test -f ckermit.ini; then\		echo "#!$(DESTDIR)$(BINDIR)/kermit" >\			$(DESTDIR)$(BINDIR)/_tmp.ini;\		cat ckermit.ini >> $(DESTDIR)$(BINDIR)/_tmp.ini;\		mv $(DESTDIR)$(BINDIR)/_tmp.ini\		   $(DESTDIR)$(BINDIR)/ckermit.ini;\		chmod 755 $(DESTDIR)$(BINDIR)/ckermit.ini;\		echo "RmF $(DESTDIR)$(BINDIR)/ckermit.ini" >&3;\	fi;\	echo;\	echo 'EfM' >&3;\	echo "Kermit binary installed:";\	ls -l $(DESTDIR)$(BINDIR)/kermit\	      $(DESTDIR)$(BINDIR)/kermit-sshsub\	      $(DESTDIR)$(BINDIR)/ckermit.ini;\	echo;\	echo " WARNING: If C-Kermit is to be used for dialing out,";\	echo " you must change its owner and group and permissions";\	echo " to match the 'cu' program.  See the ckuins.txt file";\	echo " for details.";\	echo;\	echo MANDIR=$(MANDIR);\	if test -n "$(MANDIR)"; then\		if test -d $(MANDIR); then\			echo  "$(MANDIR) exists...";\		else\			echo "Creating $(MANDIR)...";\			mkdir $(MANDIR) || exit 1;\			chmod 755 $(MANDIR) || exit 1;\		fi;\		echo "Installing man page...";\		rm -f $(MANDIR)/kermit.$(MANEXT);\		cp    ckuker.nr $(MANDIR)/kermit.$(MANEXT) || exit 1;\		chmod 644       $(MANDIR)/kermit.$(MANEXT) || exit 1;\		echo 'set flag=f\nPrC Removing man pages' >&3;\		echo "RmF $(MANDIR)/kermit.$(MANEXT)" >&3;\		echo 'EfM' >&3;\		echo;\	else\		echo "Not installing man page!\n";\	fi;\	echo CERTDIR=$(CERTDIR);\	if test -n "$(CERTDIR)"; then\		if test -f ca_certs.pem; then\			if test -d $(CERTDIR); then\				echo  "$(CERTDIR) exists...";\			else\				echo "Creating $(CERTDIR)...";\				mkdir $(CERTDIR) || exit 1;\				chmod 755 $(CERTDIR) || exit 1;\			fi;\			echo "Installing certificates file...";\			cp ca_certs.pem $(CERTDIR) || exit 1;\			echo 'set flag=f' >&3;\			echo 'PrC Removing certificates file' >&3;\			echo "RmF $(CERTDIR)/ca_certs.pem" >&3;\			echo 'EfM' >&3;\			echo;\		fi;\	else\		echo "Not installing certificates file!\n";\

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -