imapext-2007

view src/osdep/amiga/Makefile @ 0:ada5e610ab86

imap-2007e
author yuuji@gentei.org
date Mon, 14 Sep 2009 15:17:45 +0900
parents
children
line source
1 # ========================================================================
2 # Copyright 1988-2006 University of Washington
3 #
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
7 #
8 # http://www.apache.org/licenses/LICENSE-2.0
9 #
10 #
11 # ========================================================================
14 # Program: C client makefile for Amiga
15 #
16 # Author: Mark Crispin
17 # Networks and Distributed Computing
18 # Computing & Communications
19 # University of Washington
20 # Administration Building, AG-44
21 # Seattle, WA 98195
22 # Internet: MRC@CAC.Washington.EDU
23 #
24 # Date: 11 May 1989
25 # Last Edited: 5 November 2006
28 # Command line build parameters
30 EXTRAAUTHENTICATORS=
31 EXTRADRIVERS=mbox
32 PASSWDTYPE=std
35 # Build parameters normally set by the individual port
37 AMICFLAGS=-O -DNO_INLINE_STDARG -Dunix
38 AMILDFLAGS=/pine/libc.a -lamiga -lauto
39 CHECKPW=std
40 LOGINPW=std
41 ACTIVEFILE=/UULib/News/Active
42 SPOOLDIR=/usr/spool
43 MAILSPOOL=/AmiTCP/Mail
44 NEWSSPOOL=/UUNews
45 MD5PWD="/etc/cram-md5.pwd"
48 # Default formats for creating new mailboxes and for empty mailboxes in the
49 # default namespace; must be set to the associated driver's prototype.
50 #
51 # The CREATEPROTO is the default format for new mailbox creation.
52 # The EMPTYPROTO is the default format for handling zero-byte files.
53 #
54 # Normally, this is set by the individual port.
55 #
56 # NOTE: namespace formats (e.g. mh and news) can not be set as a default format
57 # since they do not exist in the default namespace. Also, it is meaningless to
58 # set certain other formats (e.g. mbx, mx, and mix) as the EMPTYPROTO since
59 # these formats can never be empty files.
61 CREATEPROTO=unixproto
62 EMPTYPROTO=unixproto
65 # Commands possibly overriden by the individual port
67 ARRC=ar rc
68 CC=cc
69 LN=cp
70 RANLIB=ranlib
71 RM=rm -f
74 # Standard distribution build parameters
76 DEFAULTAUTHENTICATORS=ext md5 pla log
77 DEFAULTDRIVERS=imap nntp pop3 mix mx mbx tenex mtx mh mmdf unix news phile
78 CHUNKSIZE=65536
81 # Normally no need to change any of these
83 ARCHIVE=c-client.a
84 BINARIES=mail.o misc.o newsrc.o smanager.o osdep.o utf8.o utf8aux.o \
85 dummy.o pseudo.o netmsg.o flstring.o fdstring.o \
86 rfc822.o nntp.o smtp.o imap4r1.o pop3.o \
87 unix.o mbx.o mmdf.o tenex.o mtx.o news.o phile.o mh.o mx.o mix.o
88 CFLAGS=$(BASECFLAGS) $(EXTRACFLAGS)
89 MAKE=make
90 MV=mv
91 SHELL=/bin/sh
94 # Primary build command
96 BUILDOPTIONS= EXTRACFLAGS=$(EXTRACFLAGS) EXTRALDFLAGS=$(EXTRALDFLAGS)\
97 EXTRADRIVERS=$(EXTRADRIVERS) EXTRAAUTHENTICATORS=$(EXTRAAUTHENTICATORS)\
98 PASSWDTYPE=$(PASSWDTYPE)
99 BUILD=$(MAKE) build $(BUILDOPTIONS) $(SPECIALS)
102 # Here if no make argument established
104 missing: osdep.h
105 $(MAKE) $(ARCHIVE) CC=`cat CCTYPE` CFLAGS="`cat CFLAGS`"
107 osdep.h:
108 @echo You must specify what type of system
109 @false
112 # Current ports
114 ami: # AmigaDOS
115 $(BUILD) OS=$@ \
116 BASECFLAGS="-DOLD $(AMICFLAGS)" \
117 BASELDFLAGS="$(AMILDFLAGS) -lamitcp000" \
118 CC=gcc
120 am2: # AmigaDOS with a 68020+
121 $(BUILD) OS=ami \
122 BASECFLAGS="-DOLD -m68020 $(AMICFLAGS)" \
123 BASELDFLAGS="$(AMILDFLAGS) -lamitcp" \
124 CC=gcc
126 amn: # AmigaDOS with a 680x0 using "new" socket library
127 $(BUILD) OS=ami \
128 BASELDFLAGS="$(AMILDFLAGS) -lnewamitcp000" \
129 CC=gcc
131 ama: # AmigaDOS using AS225R2
132 $(BUILD) OS=ami \
133 MAILSPOOL=/INet/Mail \
134 BASECFLAGS="-m68020 $(AMICFLAGS)" \
135 BASELDFLAGS="$(AMILDFLAGS) -las225r2" \
136 CC=gcc
138 # Build it!
140 build: clean once ckp$(PASSWDTYPE) $(EXTRAAUTHENTICATORS) $(ARCHIVE)
142 $(ARCHIVE): $(BINARIES)
143 $(RM) $(ARCHIVE) || true
144 $(ARRC) $(ARCHIVE) $(BINARIES)
145 $(RANLIB) $(ARCHIVE)
147 # Cleanup
149 clean:
150 $(RM) *.o linkage.[ch] auths.c $(ARCHIVE) osdep.* *TYPE *FLAGS || true
153 # Dependencies
155 dummy.o: mail.h misc.h osdep.h dummy.h
156 fdstring.o: mail.h misc.h osdep.h fdstring.h
157 flstring.o: mail.h misc.h osdep.h flstring.h
158 imap4r1.o: mail.h misc.h osdep.h imap4r1.h rfc822.h
159 mail.o: mail.h misc.h osdep.h rfc822.h linkage.h
160 mbx.o: mail.h misc.h osdep.h dummy.h
161 mh.o: mail.h misc.h osdep.h mh.h dummy.h
162 mix.o: mail.h misc.h osdep.h dummy.h
163 mx.o: mail.h misc.h osdep.h mx.h dummy.h
164 misc.o: mail.h misc.h osdep.h
165 mmdf.o: mail.h misc.h osdep.h pseudo.h dummy.h
166 mtx.o: mail.h misc.h osdep.h dummy.h
167 netmsg.o: mail.h misc.h osdep.h netmsg.h
168 news.o: mail.h misc.h osdep.h
169 newsrc.o: mail.h misc.h osdep.h newsrc.h
170 nntp.o: mail.h misc.h osdep.h netmsg.h smtp.h nntp.h rfc822.h
171 phile.o: mail.h misc.h osdep.h rfc822.h dummy.h
172 pseudo.o: pseudo.h
173 pop3.o: mail.h misc.h osdep.h pop3.h rfc822.h
174 smanager.o: mail.h misc.h osdep.h
175 smtp.o: mail.h misc.h osdep.h smtp.h rfc822.h
176 rfc822.o: mail.h misc.h osdep.h rfc822.h
177 tenex.o: mail.h misc.h osdep.h dummy.h
178 unix.o: mail.h misc.h osdep.h unix.h pseudo.h dummy.h
179 utf8.o: mail.h misc.h osdep.h utf8.h
180 utf8aux.o: mail.h misc.h osdep.h utf8.h
183 # OS-dependent
185 osdep.o:mail.h misc.h env.h fs.h ftl.h nl.h tcp.h \
186 osdep.h env_ami.h tcp_ami.h \
187 osdep.c env_ami.c fs_ami.c ftl_ami.c nl_ami.c tcp_ami.c \
188 auths.c gethstid.c \
189 gr_waitp.c \
190 auth_log.c auth_md5.c auth_pla.c \
191 pmatch.c scandir.c \
192 tz_bsd.c \
193 write.c \
194 strerror.c strpbrk.c strstr.c strtok.c strtoul.c \
195 OSCFLAGS
196 $(CC) $(CFLAGS) `cat OSCFLAGS` -c osdep.c
198 osdep.c: osdepbas.c osdepckp.c osdeplog.c osdepssl.c
199 $(RM) osdep.c || true
200 cat osdepbas.c osdepckp.c osdeplog.c osdepssl.c > osdep.c
203 # Once-only environment setup
205 once:
206 @echo Once-only environment setup...
207 ./drivers $(EXTRADRIVERS) $(DEFAULTDRIVERS) dummy
208 ./mkauths $(EXTRAAUTHENTICATORS) $(DEFAULTAUTHENTICATORS)
209 echo $(CC) > CCTYPE
210 echo $(CFLAGS) -DCHUNKSIZE=$(CHUNKSIZE) > CFLAGS
211 echo -DCREATEPROTO=$(CREATEPROTO) -DEMPTYPROTO=$(EMPTYPROTO) \
212 -DMD5ENABLE=\"$(MD5PWD)\" -DMAILSPOOL=\"$(MAILSPOOL)\" \
213 -DACTIVEFILE=\"$(ACTIVEFILE)\" -DNEWSSPOOL=\"$(NEWSSPOOL)\" \
214 -DANONYMOUSHOME=\"$(MAILSPOOL)/anonymous\" > OSCFLAGS
215 echo $(BASELDFLAGS) $(EXTRALDFLAGS) > LDFLAGS
216 $(LN) os_$(OS).h osdep.h
217 $(LN) os_$(OS).c osdepbas.c
218 $(LN) log_$(LOGINPW).c osdeplog.c
219 $(LN) ssl_none.c osdepssl.c
222 # Password checkers
224 ckpstd: # Port standard
225 $(LN) ckp_$(CHECKPW).c osdepckp.c
228 # A monument to a hack of long ago and far away...
230 love:
231 @echo not war?

UW-IMAP'd extensions by yuuji