1 # ========================================================================
2 # Copyright 1988-2006 University of Washington
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
8 # http://www.apache.org/licenses/LICENSE-2.0
11 # ========================================================================
14 # Program: C client makefile for Amiga
16 # Author: Mark Crispin
17 # Networks and Distributed Computing
18 # Computing & Communications
19 # University of Washington
20 # Administration Building, AG-44
22 # Internet: MRC@CAC.Washington.EDU
25 # Last Edited: 5 November 2006
28 # Command line build parameters
35 # Build parameters normally set by the individual port
37 AMICFLAGS
=-O
-DNO_INLINE_STDARG
-Dunix
38 AMILDFLAGS
=/pine
/libc.a
-lamiga
-lauto
41 ACTIVEFILE
=/UULib
/News
/Active
43 MAILSPOOL
=/AmiTCP
/Mail
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.
51 # The CREATEPROTO is the default format for new mailbox creation.
52 # The EMPTYPROTO is the default format for handling zero-byte files.
54 # Normally, this is set by the individual port.
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.
65 # Commands possibly overriden by the individual port
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
81 # Normally no need to change any of these
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
)
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
105 $(MAKE
) $(ARCHIVE
) CC
=`cat CCTYPE` CFLAGS
="`cat CFLAGS`"
108 @echo You must specify what type of system
116 BASECFLAGS
="-DOLD $(AMICFLAGS)" \
117 BASELDFLAGS
="$(AMILDFLAGS) -lamitcp000" \
120 am2
: # AmigaDOS with a 68020+
122 BASECFLAGS
="-DOLD -m68020 $(AMICFLAGS)" \
123 BASELDFLAGS
="$(AMILDFLAGS) -lamitcp" \
126 amn
: # AmigaDOS with a 680x0 using "new" socket library
128 BASELDFLAGS
="$(AMILDFLAGS) -lnewamitcp000" \
131 ama
: # AmigaDOS using AS225R2
133 MAILSPOOL
=/INet
/Mail \
134 BASECFLAGS
="-m68020 $(AMICFLAGS)" \
135 BASELDFLAGS
="$(AMILDFLAGS) -las225r2" \
140 build
: clean once ckp
$(PASSWDTYPE
) $(EXTRAAUTHENTICATORS
) $(ARCHIVE
)
142 $(ARCHIVE
): $(BINARIES
)
143 $(RM
) $(ARCHIVE
) || true
144 $(ARRC
) $(ARCHIVE
) $(BINARIES
)
150 $(RM
) *.o linkage.
[ch
] auths.c
$(ARCHIVE
) osdep.
* *TYPE
*FLAGS || true
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
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
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 \
190 auth_log.c auth_md5.c auth_ntl.c auth_pla.c \
194 strerror.c strpbrk.c strstr.c strtok.c strtoul.c \
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
206 @echo Once-only environment setup...
207 .
/drivers
$(EXTRADRIVERS
) $(DEFAULTDRIVERS
) dummy
208 .
/mkauths
$(EXTRAAUTHENTICATORS
) $(DEFAULTAUTHENTICATORS
)
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
224 ckpstd
: # Port standard
225 $(LN
) ckp_
$(CHECKPW
).c osdepckp.c
228 # A monument to a hack of long ago and far away...