📄 makefile
字号:
# Program: C client makefile for Amiga## Author: Mark Crispin# Networks and Distributed Computing# Computing & Communications# University of Washington# Administration Building, AG-44# Seattle, WA 98195# Internet: MRC@CAC.Washington.EDU## Date: 11 May 1989# Last Edited: 14 October 2003## The IMAP toolkit provided in this Distribution is# Copyright 2003 University of Washington.## The full text of our legal notices is contained in the file called# CPYRIGHT, included with this Distribution.# Command line build parametersEXTRAAUTHENTICATORS=EXTRADRIVERS=mboxPASSWDTYPE=std# Build parameters normally set by the individual portAMICFLAGS=-O -DNO_INLINE_STDARG -DunixAMILDFLAGS=/pine/libc.a -lamiga -lautoCHECKPW=stdLOGINPW=stdACTIVEFILE=/UULib/News/ActiveSPOOLDIR=/usr/spoolMAILSPOOL=/AmiTCP/MailNEWSSPOOL=/UUNews# Default formats for creating new mailboxes and for empty mailboxes in the# default namespace; must be set to the associated driver's prototype.## The CREATEPROTO is the default format for new mailbox creation.# The EMPTYPROTO is the default format for handling zero-byte files.## Normally, this is set by the individual port.## NOTE: namespace formats (e.g. mh and news) can not be set as a default format# since they do not exist in the default namespace. Also, it is meaningless to# set certain other formats (e.g. mbx and mx) as the EMPTYPROTO since these# formats can never be empty files.CREATEPROTO=unixprotoEMPTYPROTO=unixproto# Commands possibly overriden by the individual portARRC=ar rcCC=ccLN=cpRANLIB=ranlibRM=rm -f# Standard distribution build parametersDEFAULTAUTHENTICATORS=md5 pla logDEFAULTDRIVERS=imap nntp pop3 mh mx mbx tenex mtx mmdf unix news phile# Normally no need to change any of theseARCHIVE=c-client.aBINARIES=mail.o misc.o newsrc.o smanager.o osdep.o utf8.o \ dummy.o pseudo.o netmsg.o flstring.o fdstring.o \ rfc822.o nntp.o smtp.o imap4r1.o pop3.o \ unix.o mbx.o mmdf.o tenex.o mtx.o news.o phile.o mh.o mx.oCFLAGS=$(BASECFLAGS) $(EXTRACFLAGS)MAKE=makeMV=mvSHELL=/bin/sh# Primary build commandBUILDOPTIONS= EXTRACFLAGS=$(EXTRACFLAGS) EXTRALDFLAGS=$(EXTRALDFLAGS)\ EXTRADRIVERS=$(EXTRADRIVERS) EXTRAAUTHENTICATORS=$(EXTRAAUTHENTICATORS)\ PASSWDTYPE=$(PASSWDTYPE)BUILD=$(MAKE) build $(BUILDOPTIONS) $(SPECIALS)# Here if no make argument establishedmissing: osdep.h $(MAKE) $(ARCHIVE) CC=`cat CCTYPE` CFLAGS="`cat CFLAGS`"osdep.h: @echo You must specify what type of system @false# Current portsami: # AmigaDOS $(BUILD) OS=$@ \ BASECFLAGS="-DOLD $(AMICFLAGS)" \ BASELDFLAGS="$(AMILDFLAGS) -lamitcp000" \ CC=gccam2: # AmigaDOS with a 68020+ $(BUILD) OS=ami \ BASECFLAGS="-DOLD -m68020 $(AMICFLAGS)" \ BASELDFLAGS="$(AMILDFLAGS) -lamitcp" \ CC=gccamn: # AmigaDOS with a 680x0 using "new" socket library $(BUILD) OS=ami \ BASELDFLAGS="$(AMILDFLAGS) -lnewamitcp000" \ CC=gccama: # AmigaDOS using AS225R2 $(BUILD) OS=ami \ MAILSPOOL=/INet/Mail \ BASECFLAGS="-m68020 $(AMICFLAGS)" \ BASELDFLAGS="$(AMILDFLAGS) -las225r2" \ CC=gcc# Build it!build: clean once ckp$(PASSWDTYPE) $(EXTRAAUTHENTICATORS) $(ARCHIVE)$(ARCHIVE): $(BINARIES) $(RM) $(ARCHIVE) || true $(ARRC) $(ARCHIVE) $(BINARIES) $(RANLIB) $(ARCHIVE)# Cleanupclean: $(RM) *.o linkage.[ch] auths.c $(ARCHIVE) osdep.* *TYPE *FLAGS || true# Dependenciesdummy.o: mail.h misc.h osdep.h dummy.hfdstring.o: mail.h misc.h osdep.h fdstring.hflstring.o: mail.h misc.h osdep.h flstring.himap4r1.o: mail.h misc.h osdep.h imap4r1.h rfc822.hmail.o: mail.h misc.h osdep.h rfc822.h linkage.hmbx.o: mail.h misc.h osdep.h mbx.h dummy.hmh.o: mail.h misc.h osdep.h mh.h dummy.hmx.o: mail.h misc.h osdep.h mx.h dummy.hmisc.o: mail.h misc.h osdep.hmmdf.o: mail.h misc.h osdep.h pseudo.h dummy.hmtx.o: mail.h misc.h osdep.h dummy.hnetmsg.o: mail.h misc.h osdep.h netmsg.hnews.o: mail.h misc.h osdep.hnewsrc.o: mail.h misc.h osdep.h newsrc.hnntp.o: mail.h misc.h osdep.h netmsg.h smtp.h nntp.h rfc822.hphile.o: mail.h misc.h osdep.h rfc822.h dummy.hpseudo.o: pseudo.hpop3.o: mail.h misc.h osdep.h pop3.h rfc822.hsmanager.o: mail.h misc.h osdep.hsmtp.o: mail.h misc.h osdep.h smtp.h rfc822.hrfc822.o: mail.h misc.h osdep.h rfc822.htenex.o: mail.h misc.h osdep.h dummy.hunix.o: mail.h misc.h osdep.h unix.h pseudo.h dummy.hutf8.o: mail.h misc.h osdep.h utf8.h# OS-dependentosdep.o:mail.h misc.h env.h fs.h ftl.h nl.h tcp.h \ osdep.h env_ami.h tcp_ami.h \ osdep.c env_ami.c fs_ami.c ftl_ami.c nl_ami.c tcp_ami.c \ auths.c gethstid.c \ gr_waitp.c \ auth_log.c auth_md5.c auth_pla.c \ pmatch.c scandir.c \ tz_bsd.c \ write.c \ strerror.c strpbrk.c strstr.c strtok.c strtoul.c \ OSCFLAGS $(CC) $(CFLAGS) `cat OSCFLAGS` -c osdep.cosdep.c: osdepbas.c osdepckp.c osdeplog.c osdepssl.c $(RM) osdep.c || true cat osdepbas.c osdepckp.c osdeplog.c osdepssl.c > osdep.c# Once-only environment setuponce: @echo Once-only environment setup... ./drivers $(EXTRADRIVERS) $(DEFAULTDRIVERS) dummy ./mkauths $(EXTRAAUTHENTICATORS) $(DEFAULTAUTHENTICATORS) echo $(CC) > CCTYPE echo $(CFLAGS) > CFLAGS echo -DCREATEPROTO=$(CREATEPROTO) -DEMPTYPROTO=$(EMPTYPROTO) \ -DMAILSPOOL=\"$(MAILSPOOL)\" \ -DACTIVEFILE=\"$(ACTIVEFILE)\" -DNEWSSPOOL=\"$(NEWSSPOOL)\" \ -DANONYMOUSHOME=\"$(MAILSPOOL)/anonymous\" > OSCFLAGS echo $(BASELDFLAGS) $(EXTRALDFLAGS) > LDFLAGS $(LN) os_$(OS).h osdep.h $(LN) os_$(OS).c osdepbas.c $(LN) log_$(LOGINPW).c osdeplog.c $(LN) ssl_none.c osdepssl.c# Password checkersckpstd: # Port standard $(LN) ckp_$(CHECKPW).c osdepckp.c# A monument to a hack of long ago and far away...love: @echo not war?
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -