imapext-2007
diff src/osdep/amiga/Makefile @ 0:ada5e610ab86
imap-2007e
author | yuuji@gentei.org |
---|---|
date | Mon, 14 Sep 2009 15:17:45 +0900 |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/osdep/amiga/Makefile Mon Sep 14 15:17:45 2009 +0900 1.3 @@ -0,0 +1,231 @@ 1.4 +# ======================================================================== 1.5 +# Copyright 1988-2006 University of Washington 1.6 +# 1.7 +# Licensed under the Apache License, Version 2.0 (the "License"); 1.8 +# you may not use this file except in compliance with the License. 1.9 +# You may obtain a copy of the License at 1.10 +# 1.11 +# http://www.apache.org/licenses/LICENSE-2.0 1.12 +# 1.13 +# 1.14 +# ======================================================================== 1.15 + 1.16 + 1.17 +# Program: C client makefile for Amiga 1.18 +# 1.19 +# Author: Mark Crispin 1.20 +# Networks and Distributed Computing 1.21 +# Computing & Communications 1.22 +# University of Washington 1.23 +# Administration Building, AG-44 1.24 +# Seattle, WA 98195 1.25 +# Internet: MRC@CAC.Washington.EDU 1.26 +# 1.27 +# Date: 11 May 1989 1.28 +# Last Edited: 5 November 2006 1.29 + 1.30 + 1.31 +# Command line build parameters 1.32 + 1.33 +EXTRAAUTHENTICATORS= 1.34 +EXTRADRIVERS=mbox 1.35 +PASSWDTYPE=std 1.36 + 1.37 + 1.38 +# Build parameters normally set by the individual port 1.39 + 1.40 +AMICFLAGS=-O -DNO_INLINE_STDARG -Dunix 1.41 +AMILDFLAGS=/pine/libc.a -lamiga -lauto 1.42 +CHECKPW=std 1.43 +LOGINPW=std 1.44 +ACTIVEFILE=/UULib/News/Active 1.45 +SPOOLDIR=/usr/spool 1.46 +MAILSPOOL=/AmiTCP/Mail 1.47 +NEWSSPOOL=/UUNews 1.48 +MD5PWD="/etc/cram-md5.pwd" 1.49 + 1.50 + 1.51 +# Default formats for creating new mailboxes and for empty mailboxes in the 1.52 +# default namespace; must be set to the associated driver's prototype. 1.53 +# 1.54 +# The CREATEPROTO is the default format for new mailbox creation. 1.55 +# The EMPTYPROTO is the default format for handling zero-byte files. 1.56 +# 1.57 +# Normally, this is set by the individual port. 1.58 +# 1.59 +# NOTE: namespace formats (e.g. mh and news) can not be set as a default format 1.60 +# since they do not exist in the default namespace. Also, it is meaningless to 1.61 +# set certain other formats (e.g. mbx, mx, and mix) as the EMPTYPROTO since 1.62 +# these formats can never be empty files. 1.63 + 1.64 +CREATEPROTO=unixproto 1.65 +EMPTYPROTO=unixproto 1.66 + 1.67 + 1.68 +# Commands possibly overriden by the individual port 1.69 + 1.70 +ARRC=ar rc 1.71 +CC=cc 1.72 +LN=cp 1.73 +RANLIB=ranlib 1.74 +RM=rm -f 1.75 + 1.76 + 1.77 +# Standard distribution build parameters 1.78 + 1.79 +DEFAULTAUTHENTICATORS=ext md5 pla log 1.80 +DEFAULTDRIVERS=imap nntp pop3 mix mx mbx tenex mtx mh mmdf unix news phile 1.81 +CHUNKSIZE=65536 1.82 + 1.83 + 1.84 +# Normally no need to change any of these 1.85 + 1.86 +ARCHIVE=c-client.a 1.87 +BINARIES=mail.o misc.o newsrc.o smanager.o osdep.o utf8.o utf8aux.o \ 1.88 + dummy.o pseudo.o netmsg.o flstring.o fdstring.o \ 1.89 + rfc822.o nntp.o smtp.o imap4r1.o pop3.o \ 1.90 + unix.o mbx.o mmdf.o tenex.o mtx.o news.o phile.o mh.o mx.o mix.o 1.91 +CFLAGS=$(BASECFLAGS) $(EXTRACFLAGS) 1.92 +MAKE=make 1.93 +MV=mv 1.94 +SHELL=/bin/sh 1.95 + 1.96 + 1.97 +# Primary build command 1.98 + 1.99 +BUILDOPTIONS= EXTRACFLAGS=$(EXTRACFLAGS) EXTRALDFLAGS=$(EXTRALDFLAGS)\ 1.100 + EXTRADRIVERS=$(EXTRADRIVERS) EXTRAAUTHENTICATORS=$(EXTRAAUTHENTICATORS)\ 1.101 + PASSWDTYPE=$(PASSWDTYPE) 1.102 +BUILD=$(MAKE) build $(BUILDOPTIONS) $(SPECIALS) 1.103 + 1.104 + 1.105 +# Here if no make argument established 1.106 + 1.107 +missing: osdep.h 1.108 + $(MAKE) $(ARCHIVE) CC=`cat CCTYPE` CFLAGS="`cat CFLAGS`" 1.109 + 1.110 +osdep.h: 1.111 + @echo You must specify what type of system 1.112 + @false 1.113 + 1.114 + 1.115 +# Current ports 1.116 + 1.117 +ami: # AmigaDOS 1.118 + $(BUILD) OS=$@ \ 1.119 + BASECFLAGS="-DOLD $(AMICFLAGS)" \ 1.120 + BASELDFLAGS="$(AMILDFLAGS) -lamitcp000" \ 1.121 + CC=gcc 1.122 + 1.123 +am2: # AmigaDOS with a 68020+ 1.124 + $(BUILD) OS=ami \ 1.125 + BASECFLAGS="-DOLD -m68020 $(AMICFLAGS)" \ 1.126 + BASELDFLAGS="$(AMILDFLAGS) -lamitcp" \ 1.127 + CC=gcc 1.128 + 1.129 +amn: # AmigaDOS with a 680x0 using "new" socket library 1.130 + $(BUILD) OS=ami \ 1.131 + BASELDFLAGS="$(AMILDFLAGS) -lnewamitcp000" \ 1.132 + CC=gcc 1.133 + 1.134 +ama: # AmigaDOS using AS225R2 1.135 + $(BUILD) OS=ami \ 1.136 + MAILSPOOL=/INet/Mail \ 1.137 + BASECFLAGS="-m68020 $(AMICFLAGS)" \ 1.138 + BASELDFLAGS="$(AMILDFLAGS) -las225r2" \ 1.139 + CC=gcc 1.140 + 1.141 +# Build it! 1.142 + 1.143 +build: clean once ckp$(PASSWDTYPE) $(EXTRAAUTHENTICATORS) $(ARCHIVE) 1.144 + 1.145 +$(ARCHIVE): $(BINARIES) 1.146 + $(RM) $(ARCHIVE) || true 1.147 + $(ARRC) $(ARCHIVE) $(BINARIES) 1.148 + $(RANLIB) $(ARCHIVE) 1.149 + 1.150 +# Cleanup 1.151 + 1.152 +clean: 1.153 + $(RM) *.o linkage.[ch] auths.c $(ARCHIVE) osdep.* *TYPE *FLAGS || true 1.154 + 1.155 + 1.156 +# Dependencies 1.157 + 1.158 +dummy.o: mail.h misc.h osdep.h dummy.h 1.159 +fdstring.o: mail.h misc.h osdep.h fdstring.h 1.160 +flstring.o: mail.h misc.h osdep.h flstring.h 1.161 +imap4r1.o: mail.h misc.h osdep.h imap4r1.h rfc822.h 1.162 +mail.o: mail.h misc.h osdep.h rfc822.h linkage.h 1.163 +mbx.o: mail.h misc.h osdep.h dummy.h 1.164 +mh.o: mail.h misc.h osdep.h mh.h dummy.h 1.165 +mix.o: mail.h misc.h osdep.h dummy.h 1.166 +mx.o: mail.h misc.h osdep.h mx.h dummy.h 1.167 +misc.o: mail.h misc.h osdep.h 1.168 +mmdf.o: mail.h misc.h osdep.h pseudo.h dummy.h 1.169 +mtx.o: mail.h misc.h osdep.h dummy.h 1.170 +netmsg.o: mail.h misc.h osdep.h netmsg.h 1.171 +news.o: mail.h misc.h osdep.h 1.172 +newsrc.o: mail.h misc.h osdep.h newsrc.h 1.173 +nntp.o: mail.h misc.h osdep.h netmsg.h smtp.h nntp.h rfc822.h 1.174 +phile.o: mail.h misc.h osdep.h rfc822.h dummy.h 1.175 +pseudo.o: pseudo.h 1.176 +pop3.o: mail.h misc.h osdep.h pop3.h rfc822.h 1.177 +smanager.o: mail.h misc.h osdep.h 1.178 +smtp.o: mail.h misc.h osdep.h smtp.h rfc822.h 1.179 +rfc822.o: mail.h misc.h osdep.h rfc822.h 1.180 +tenex.o: mail.h misc.h osdep.h dummy.h 1.181 +unix.o: mail.h misc.h osdep.h unix.h pseudo.h dummy.h 1.182 +utf8.o: mail.h misc.h osdep.h utf8.h 1.183 +utf8aux.o: mail.h misc.h osdep.h utf8.h 1.184 + 1.185 + 1.186 +# OS-dependent 1.187 + 1.188 +osdep.o:mail.h misc.h env.h fs.h ftl.h nl.h tcp.h \ 1.189 + osdep.h env_ami.h tcp_ami.h \ 1.190 + osdep.c env_ami.c fs_ami.c ftl_ami.c nl_ami.c tcp_ami.c \ 1.191 + auths.c gethstid.c \ 1.192 + gr_waitp.c \ 1.193 + auth_log.c auth_md5.c auth_pla.c \ 1.194 + pmatch.c scandir.c \ 1.195 + tz_bsd.c \ 1.196 + write.c \ 1.197 + strerror.c strpbrk.c strstr.c strtok.c strtoul.c \ 1.198 + OSCFLAGS 1.199 + $(CC) $(CFLAGS) `cat OSCFLAGS` -c osdep.c 1.200 + 1.201 +osdep.c: osdepbas.c osdepckp.c osdeplog.c osdepssl.c 1.202 + $(RM) osdep.c || true 1.203 + cat osdepbas.c osdepckp.c osdeplog.c osdepssl.c > osdep.c 1.204 + 1.205 + 1.206 +# Once-only environment setup 1.207 + 1.208 +once: 1.209 + @echo Once-only environment setup... 1.210 + ./drivers $(EXTRADRIVERS) $(DEFAULTDRIVERS) dummy 1.211 + ./mkauths $(EXTRAAUTHENTICATORS) $(DEFAULTAUTHENTICATORS) 1.212 + echo $(CC) > CCTYPE 1.213 + echo $(CFLAGS) -DCHUNKSIZE=$(CHUNKSIZE) > CFLAGS 1.214 + echo -DCREATEPROTO=$(CREATEPROTO) -DEMPTYPROTO=$(EMPTYPROTO) \ 1.215 + -DMD5ENABLE=\"$(MD5PWD)\" -DMAILSPOOL=\"$(MAILSPOOL)\" \ 1.216 + -DACTIVEFILE=\"$(ACTIVEFILE)\" -DNEWSSPOOL=\"$(NEWSSPOOL)\" \ 1.217 + -DANONYMOUSHOME=\"$(MAILSPOOL)/anonymous\" > OSCFLAGS 1.218 + echo $(BASELDFLAGS) $(EXTRALDFLAGS) > LDFLAGS 1.219 + $(LN) os_$(OS).h osdep.h 1.220 + $(LN) os_$(OS).c osdepbas.c 1.221 + $(LN) log_$(LOGINPW).c osdeplog.c 1.222 + $(LN) ssl_none.c osdepssl.c 1.223 + 1.224 + 1.225 +# Password checkers 1.226 + 1.227 +ckpstd: # Port standard 1.228 + $(LN) ckp_$(CHECKPW).c osdepckp.c 1.229 + 1.230 + 1.231 +# A monument to a hack of long ago and far away... 1.232 + 1.233 +love: 1.234 + @echo not war?