imapext-2007
diff src/osdep/unix/Makefile @ 0:ada5e610ab86
imap-2007e
author | yuuji@gentei.org |
---|---|
date | Mon, 14 Sep 2009 15:17:45 +0900 |
parents | |
children | 28a55bc1110c 5cecc027b845 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/osdep/unix/Makefile Mon Sep 14 15:17:45 2009 +0900 1.3 @@ -0,0 +1,1070 @@ 1.4 +# ======================================================================== 1.5 +# Copyright 1988-2007 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 +# Program: C client makefile 1.17 +# 1.18 +# Author: Mark Crispin 1.19 +# Networks and Distributed Computing 1.20 +# Computing & Communications 1.21 +# University of Washington 1.22 +# Administration Building, AG-44 1.23 +# Seattle, WA 98195 1.24 +# Internet: MRC@CAC.Washington.EDU 1.25 +# 1.26 +# Date: 11 May 1989 1.27 +# Last Edited: 17 December 2007 1.28 + 1.29 + 1.30 +# Command line build parameters 1.31 + 1.32 +EXTRAAUTHENTICATORS= 1.33 +EXTRADRIVERS=mbox 1.34 +PASSWDTYPE=std 1.35 +SSLTYPE=nopwd 1.36 +IP=4 1.37 + 1.38 + 1.39 +# The optimization level here for GCC ports is set here for a reason. It's 1.40 +# to get you to read this text. 1.41 +# The general concensus seems to be that -O2 is the one to use. 1.42 +# Over the years, I've been told to use many different settings, including -O6. 1.43 +# In recent versions of GCC [as of 2/2005], -O6 generates bad code that, among 1.44 +# other ill effects, causes infinite loops. 1.45 +# -O3 seems to be safe, but empirical observation from our local expert 1.46 +# indicates that in some (many?) cases -O3 code runs slower than -O2. 1.47 + 1.48 +GCCOPTLEVEL= -O2 1.49 + 1.50 + 1.51 +# Try to have some consistency in GCC builds. We want optimization, but we 1.52 +# also want to be able to debug. 1.53 + 1.54 +GCCCFLAGS= -g $(GCCOPTLEVEL) -pipe -fno-omit-frame-pointer 1.55 +GCC4CFLAGS= $(GCCCFLAGS) -Wno-pointer-sign 1.56 + 1.57 + 1.58 +# Extended flags needed for SSL. You may need to modify. 1.59 + 1.60 +SSLDIR=/usr/local/ssl 1.61 +SSLCERTS=$(SSLDIR)/certs 1.62 +SSLKEYS=$(SSLCERTS) 1.63 +SSLINCLUDE=$(SSLDIR)/include 1.64 +SSLLIB=$(SSLDIR)/lib 1.65 + 1.66 +SSLCRYPTO=-lcrypto 1.67 + 1.68 +# Older versions of MIT Kerberos also have a libcrypto. If so, you may need 1.69 +# to use this instead 1.70 +#SSLCRYPTO=$(SSLLIB)/libcrypto.a 1.71 + 1.72 +# RSA Security Inc. released the RSA public key encryption algorithm into 1.73 +# the public domain on September 6, 2000. There is no longer any need to 1.74 +# use RSAREF. 1.75 +SSLRSA= # -lRSAglue -lrsaref 1.76 + 1.77 +SSLCFLAGS= -I$(SSLINCLUDE) -I$(SSLINCLUDE)/openssl\ 1.78 + -DSSL_CERT_DIRECTORY=\"$(SSLCERTS)\" -DSSL_KEY_DIRECTORY=\"$(SSLKEYS)\" 1.79 +SSLLDFLAGS= -L$(SSLLIB) -lssl $(SSLCRYPTO) $(SSLRSA) 1.80 + 1.81 + 1.82 +# Extended flags needed for non-standard passwd types. You may need to modify. 1.83 + 1.84 +AFSDIR=/usr/afsws 1.85 +AFSCFLAGS=-I$(AFSDIR)/include 1.86 +AFSLIB=$(AFSDIR)/lib 1.87 +AFSLDFLAGS=-L$(AFSLIB)/afs -L$(AFSLIB) -L$(AFSDIR)/domestic/lib\ 1.88 + -lkauth -lprot -lubik -lauth -lrxkad -lrx -llwp -ldes -lcom_err\ 1.89 + $(AFSLIB)/afs/util.a -laudit -lsys 1.90 +# AFSLDFLAGS may also need -L/usr/ucblib -lucb 1.91 +DCECFLAGS= -DDCE_MINIMAL -DPASSWD_OVERRIDE=\"/opt/pop3/passwd/passwd\" 1.92 +DCELDFLAGS= -ldce 1.93 +PAMLDFLAGS= -lpam -ldl 1.94 + 1.95 + 1.96 +# Build parameters normally set by the individual port 1.97 + 1.98 +CHECKPW=std 1.99 +LOGINPW=std 1.100 +SIGTYPE=bsd 1.101 +CRXTYPE=std 1.102 +ACTIVEFILE=/usr/lib/news/active 1.103 +SPOOLDIR=/usr/spool 1.104 +MAILSPOOL=$(SPOOLDIR)/mail 1.105 +NEWSSPOOL=$(SPOOLDIR)/news 1.106 +RSHPATH=/usr/ucb/rsh 1.107 +MD5PWD=/etc/cram-md5.pwd 1.108 +# Tries one of the test alternatives below if not specified. 1.109 +LOCKPGM= 1.110 +# Test alternatives if LOCKPGM not specified 1.111 +LOCKPGM1=/usr/libexec/mlock 1.112 +LOCKPGM2=/usr/sbin/mlock 1.113 +LOCKPGM3=/etc/mlock 1.114 + 1.115 + 1.116 +# Default formats for creating new mailboxes and for empty mailboxes in the 1.117 +# default namespace; must be set to the associated driver's prototype. 1.118 +# 1.119 +# The CREATEPROTO is the default format for new mailbox creation. 1.120 +# The EMPTYPROTO is the default format for handling zero-byte files. 1.121 +# 1.122 +# Normally, this is set by the individual port. 1.123 +# 1.124 +# NOTE: namespace formats (e.g. mh and news) can not be set as a default format 1.125 +# since they do not exist in the default namespace. Also, it is meaningless to 1.126 +# set certain other formats (e.g. mbx, mx, and mix) as the EMPTYPROTO since 1.127 +# these formats can never be empty files. 1.128 + 1.129 +CREATEPROTO=unixproto 1.130 +EMPTYPROTO=unixproto 1.131 + 1.132 + 1.133 +# Commands possibly overriden by the individual port 1.134 + 1.135 +ARRC=ar rc 1.136 +CC=cc 1.137 +LN=ln -s 1.138 +RANLIB=ranlib 1.139 + 1.140 + 1.141 +# Standard distribution build parameters 1.142 + 1.143 +DEFAULTAUTHENTICATORS=ext md5 pla log 1.144 +# 1.145 +# mh needs to be after any other directory format drivers (such as mx or mix) 1.146 +# since otherwise mh will seize any directory that is under the mh path. 1.147 +# However, mh needs to be before any sysinbox formats (such as mmdf or unix) 1.148 +# since otherwise INBOX won't work correctly when mh_allow_inbox is set. 1.149 +# 1.150 +DEFAULTDRIVERS=imap nntp pop3 mix mx mbx tenex mtx mh mmdf unix news phile 1.151 +CHUNKSIZE=65536 1.152 + 1.153 +# Normally no need to change any of these 1.154 + 1.155 +ARCHIVE=c-client.a 1.156 +BINARIES=osdep.o mail.o misc.o newsrc.o smanager.o utf8.o utf8aux.o siglocal.o \ 1.157 + dummy.o pseudo.o netmsg.o flstring.o fdstring.o \ 1.158 + rfc822.o nntp.o smtp.o imap4r1.o pop3.o \ 1.159 + unix.o mbx.o mmdf.o tenex.o mtx.o news.o phile.o mh.o mx.o mix.o 1.160 +CFLAGS=-g 1.161 + 1.162 +CAT=cat 1.163 +MAKE=make 1.164 +MV=mv 1.165 +RM=rm -rf 1.166 +SH=sh 1.167 + 1.168 + 1.169 +# Primary build command 1.170 + 1.171 +BUILD=$(MAKE) build EXTRACFLAGS='$(EXTRACFLAGS)'\ 1.172 + EXTRALDFLAGS='$(EXTRALDFLAGS)'\ 1.173 + EXTRADRIVERS='$(EXTRADRIVERS)' EXTRAAUTHENTICATORS='$(EXTRAAUTHENTICATORS)'\ 1.174 + PASSWDTYPE=$(PASSWDTYPE) SSLTYPE=$(SSLTYPE) IP=$(IP) 1.175 + 1.176 + 1.177 +# Here if no make argument established 1.178 + 1.179 +missing: osdep.h 1.180 + $(MAKE) all `$(CAT) SPECIALS` 1.181 + 1.182 +osdep.h: 1.183 + @echo You must specify what type of system 1.184 + @false 1.185 + 1.186 + 1.187 +# Current ports 1.188 + 1.189 +a32: # AIX 3.2 for RS/6000 1.190 + $(BUILD) `$(CAT) SPECIALS` OS=$@ \ 1.191 + SIGTYPE=psx CRXTYPE=nfs \ 1.192 + SPOOLDIR=/var/spool \ 1.193 + RSHPATH=/usr/bin/rsh \ 1.194 + BASECFLAGS="-g -Dunix=1 -D_BSD" \ 1.195 + BASELDFLAGS="-lbsd" 1.196 + 1.197 +a41: # AIX 4.1 for RS/6000 1.198 + $(BUILD) `$(CAT) SPECIALS` OS=$@ \ 1.199 + SIGTYPE=psx CHECKPW=a41 CRXTYPE=nfs \ 1.200 + SPOOLDIR=/var/spool \ 1.201 + RSHPATH=/usr/bin/rsh \ 1.202 + BASECFLAGS="-g -Dunix=1 -D_BSD -qro -qroconst" \ 1.203 + BASELDFLAGS="-ls" 1.204 + 1.205 +aix: # AIX/370 1.206 + @echo You are building for AIX on an S/370 class machine 1.207 + @echo If you want AIX on an RS/6000 you need to use a32 or a41 instead! 1.208 + $(BUILD) `$(CAT) SPECIALS` OS=$@ \ 1.209 + CRXTYPE=nfs \ 1.210 + BASECFLAGS="-g" \ 1.211 + BASELDFLAGS="-lbsd" 1.212 + 1.213 +aos: # AOS for RT 1.214 + $(BUILD) `$(CAT) SPECIALS` OS=$@ \ 1.215 + CRXTYPE=nfs \ 1.216 + BASECFLAGS="-g -Dconst=" 1.217 + 1.218 +art: # AIX 2.2.1 for RT 1.219 + $(BUILD) `$(CAT) SPECIALS` OS=$@ \ 1.220 + SIGTYPE=sv4 \ 1.221 + SPOOLDIR=/var \ 1.222 + ACTIVEFILE=/usr/local/news/control/active \ 1.223 + RSHPATH=/bin/rsh \ 1.224 + BASECFLAGS="-g -Dconst= -Dvoid=char" \ 1.225 + RANLIB=true 1.226 + 1.227 +asv: # Altos SVR4 1.228 + $(BUILD) `$(CAT) SPECIALS` OS=$@ \ 1.229 + SIGTYPE=sv4 LOGINPW=old \ 1.230 + ACTIVEFILE=/usr/spool/news/active \ 1.231 + RSHPATH=/usr/bin/rcmd \ 1.232 + BASECFLAGS="-Dconst= -DSIGSTOP=SIGKILL" \ 1.233 + BASELDFLAGS="-lsocket -lrpc -lgen -lcrypt -lxenix" \ 1.234 + RANLIB=true 1.235 + 1.236 +aux: # A/UX 1.237 + $(BUILD) `$(CAT) SPECIALS` OS=$@ \ 1.238 + CRXTYPE=nfs \ 1.239 + MAILSPOOL=/usr/mail \ 1.240 + BASECFLAGS="-g -B/usr/lib/big/ -Dvoid=char -Dconst=" \ 1.241 + RANLIB=true ARRC="ar -rc" 1.242 + 1.243 +bs3: # BSD/i386 3.0 or higher 1.244 + $(BUILD) `$(CAT) SPECIALS` OS=bsi \ 1.245 + CHECKPW=bsi LOGINPW=bsi CRXTYPE=nfs \ 1.246 + SPOOLDIR=/var NEWSSPOOL=/var/news/spool \ 1.247 + ACTIVEFILE=/var/news/etc/active \ 1.248 + RSHPATH=/usr/bin/rsh \ 1.249 + BASECFLAGS="$(GCCCFLAGS)" CC=shlicc 1.250 + 1.251 +bsd: # BSD UNIX 1.252 + $(BUILD) `$(CAT) SPECIALS` OS=$@ \ 1.253 + CRXTYPE=nfs \ 1.254 + BASECFLAGS="-g -Dconst=" 1.255 + 1.256 +bsf: # FreeBSD 1.257 + $(BUILD) `$(CAT) SPECIALS` OS=$@ \ 1.258 + SIGTYPE=psx CRXTYPE=nfs \ 1.259 + SPOOLDIR=/var \ 1.260 + ACTIVEFILE=/usr/local/news/lib/active \ 1.261 + RSHPATH=/usr/bin/rsh \ 1.262 + BASECFLAGS="$(GCCCFLAGS)" \ 1.263 + BASELDFLAGS="-lcrypt" 1.264 + 1.265 +bsi: # BSD/i386 1.266 + $(BUILD) `$(CAT) SPECIALS` OS=$@ \ 1.267 + CRXTYPE=nfs \ 1.268 + SPOOLDIR=/var NEWSSPOOL=/var/news/spool \ 1.269 + ACTIVEFILE=/var/news/etc/active \ 1.270 + RSHPATH=/usr/bin/rsh \ 1.271 + BASECFLAGS="$(GCCCFLAGS)" 1.272 + 1.273 +bso: # OpenBSD 1.274 + $(BUILD) `$(CAT) SPECIALS` OS=bsi \ 1.275 + SIGTYPE=psx CRXTYPE=nfs \ 1.276 + SPOOLDIR=/var \ 1.277 + ACTIVEFILE=/usr/local/news/lib/active \ 1.278 + RSHPATH=/usr/bin/rsh \ 1.279 + BASECFLAGS="$(GCCCFLAGS)" 1.280 + 1.281 +cvx: # Convex 1.282 + $(BUILD) `$(CAT) SPECIALS` OS=$@ \ 1.283 + CRXTYPE=nfs \ 1.284 + BASECFLAGS="-O -ext -Dconst=" 1.285 + 1.286 +cyg: # Cygwin - note that most local file drivers don't work!! 1.287 + $(BUILD) `$(CAT) SPECIALS` OS=$@ \ 1.288 + DEFAULTDRIVERS="imap nntp pop3 mbx unix phile" \ 1.289 + SIGTYPE=psx CHECKPW=cyg LOGINPW=cyg CRXTYPE=std \ 1.290 + SPOOLDIR=/var \ 1.291 + ACTIVEFILE=/usr/local/news/lib/active \ 1.292 + RSHPATH=/usr/bin/rsh \ 1.293 + BASECFLAGS="$(GCCCFLAGS)" \ 1.294 + BASELDFLAGS="-lcrypt" \ 1.295 + CC=gcc 1.296 + 1.297 +d-g: # Data General DG/UX 1.298 + $(BUILD) `$(CAT) SPECIALS` OS=$@ \ 1.299 + SIGTYPE=sv4 CRXTYPE=nfs \ 1.300 + SPOOLDIR=/var/spool MAILSPOOL=/var/mail \ 1.301 + ACTIVEFILE=/local/news/active \ 1.302 + RSHPATH=/usr/bin/remsh \ 1.303 + BASECFLAGS="-g -Dconst=" \ 1.304 + BASELDFLAGS="-lnsl -lsocket" \ 1.305 + RANLIB=true 1.306 + 1.307 +d54: # Data General DG/UX 5.4 1.308 + $(BUILD) `$(CAT) SPECIALS` OS=d-g \ 1.309 + SIGTYPE=sv4 CRXTYPE=nfs \ 1.310 + SPOOLDIR=/var/spool MAILSPOOL=/var/mail \ 1.311 + ACTIVEFILE=/local/news/active \ 1.312 + RSHPATH=/usr/bin/remsh \ 1.313 + BASECFLAGS="-g -Dconst=" \ 1.314 + BASELDFLAGS="-lnsl -lsocket" \ 1.315 + RANLIB=true 1.316 + 1.317 +dpx: # Bull DPX/2 1.318 + $(BUILD) `$(CAT) SPECIALS` OS=sv4 \ 1.319 + SIGTYPE=sv4 CHECKPW=sv4 LOGINPW=sv4 \ 1.320 + RSHPATH=/usr/bin/remsh \ 1.321 + BASECFLAGS="-Dconst= -DSYSTEM5 -DSHORT_IDENT" \ 1.322 + BASELDFLAGS="-linet" \ 1.323 + RANLIB=true LN=ln 1.324 + 1.325 +drs: # ICL DRS/NX 1.326 + $(BUILD) `$(CAT) SPECIALS` OS=$@ \ 1.327 + SIGTYPE=sv4 CHECKPW=sv4 LOGINPW=sv4 CRXTYPE=nfs \ 1.328 + SPOOLDIR=/var/spool MAILSPOOL=/var/mail \ 1.329 + ACTIVEFILE=/var/lib/news/active \ 1.330 + RSHPATH=/usr/bin/rsh \ 1.331 + BASECFLAGS="-O" \ 1.332 + BASELDFLAGS="-lsocket -lgen" \ 1.333 + RANLIB=true 1.334 + 1.335 +do4: # Apollo Domain/OS sr10.4 1.336 + $(BUILD) `$(CAT) SPECIALS` OS=$@ \ 1.337 + CRXTYPE=nfs \ 1.338 + BASECFLAGS="-A systype,bsd4.3 -D_APOLLO_SOURCE" \ 1.339 + RANLIB=true 1.340 + 1.341 +dyn: # Dynix 1.342 + $(BUILD) `$(CAT) SPECIALS` OS=$@ \ 1.343 + CRXTYPE=nfs \ 1.344 + BASECFLAGS="-g -Dconst=" 1.345 + 1.346 +epx: # EP/IX 1.347 + $(BUILD) `$(CAT) SPECIALS` OS=sv4 \ 1.348 + SIGTYPE=sv4 CHECKPW=sv4 LOGINPW=sv4 \ 1.349 + SPOOLDIR=/var/spool MAILSPOOL=/var/mail \ 1.350 + ACTIVEFILE=/usr/share/news/active \ 1.351 + RSHPATH=/usr/net/rsh \ 1.352 + BASECFLAGS="-g -systype svr4" \ 1.353 + BASELDFLAGS="-lsocket -lnsl -lgen" \ 1.354 + RANLIB=true 1.355 + 1.356 +ga4: # GCC AIX 4.1 for RS/6000 1.357 + $(BUILD) `$(CAT) SPECIALS` OS=a41 \ 1.358 + SIGTYPE=psx CHECKPW=a41 CRXTYPE=nfs \ 1.359 + SPOOLDIR=/var/spool \ 1.360 + RSHPATH=/usr/bin/rsh \ 1.361 + BASECFLAGS="-g -Dunix=1 -D_BSD" \ 1.362 + BASELDFLAGS="-ls" 1.363 + 1.364 +gas: # GCC Altos SVR4 1.365 + $(BUILD) `$(CAT) SPECIALS` OS=asv \ 1.366 + SIGTYPE=sv4 LOGINPW=old \ 1.367 + ACTIVEFILE=/usr/spool/news/active \ 1.368 + RSHPATH=/usr/bin/rcmd \ 1.369 + BASECFLAGS="-g -O -DALTOS_SYSTEM_V -DSIGSTOP=SIGKILL" \ 1.370 + BASELDFLAGS="-lsocket -lrpc -lgen -lcrypt -lxenix" \ 1.371 + RANLIB=true CC=gcc 1.372 + 1.373 +gh9: # GCC HP-UX 9.x 1.374 + $(BUILD) `$(CAT) SPECIALS` OS=hpp \ 1.375 + SIGTYPE=psx CRXTYPE=nfs \ 1.376 + MAILSPOOL=/usr/mail \ 1.377 + RSHPATH=/usr/bin/remsh \ 1.378 + BASECFLAGS="$(GCCCFLAGS)" \ 1.379 + RANLIB=true CC=gcc 1.380 + 1.381 +ghp: # GCC HP-UX 10.x 1.382 + $(BUILD) `$(CAT) SPECIALS` OS=hpp \ 1.383 + SIGTYPE=psx CRXTYPE=nfs \ 1.384 + SPOOLDIR=/var \ 1.385 + ACTIVEFILE=/var/news/active \ 1.386 + RSHPATH=/usr/bin/remsh \ 1.387 + BASECFLAGS="$(GCCCFLAGS)" \ 1.388 + RANLIB=true CC=gcc 1.389 + 1.390 +ghs: # GCC HP-UX with Trusted Computer Base 1.391 + $(BUILD) `$(CAT) SPECIALS` OS=shp \ 1.392 + SIGTYPE=psx CHECKPW=sec CRXTYPE=nfs \ 1.393 + SPOOLDIR=/var \ 1.394 + ACTIVEFILE=/var/news/active \ 1.395 + RSHPATH=/usr/bin/remsh \ 1.396 + BASECFLAGS="$(GCCCFLAGS)" \ 1.397 + BASELDFLAGS="-lnet -lV3 -lsec" \ 1.398 + RANLIB=true CC=gcc 1.399 + 1.400 +go5: # GCC 2.7.1 (95q4) SCO Open Server 5.0.x 1.401 + $(BUILD) `$(CAT) SPECIALS` OS=sc5 \ 1.402 + SIGTYPE=psx CHECKPW=sec LOGINPW=sec \ 1.403 + CREATEPROTO=mmdfproto EMPTYPROTO=mmdfproto \ 1.404 + SPOOLDIR=/var/spool \ 1.405 + ACTIVEFILE=/var/lib/news/active \ 1.406 + RSHPATH=/usr/bin/rcmd \ 1.407 + BASECFLAGS="$(GCCCFLAGS) -I/usr/include -L/lib" \ 1.408 + BASELDFLAGS="-lsocket -lprot -lx -ltinfo -lm" \ 1.409 + RANLIB=true CC=gcc 1.410 + 1.411 +gsc: # Santa Cruz Operation 1.412 + $(BUILD) `$(CAT) SPECIALS` OS=sco \ 1.413 + SIGTYPE=sv4 CHECKPW=sec LOGINPW=sec \ 1.414 + CREATEPROTO=mmdfproto EMPTYPROTO=mmdfproto \ 1.415 + RSHPATH=/usr/bin/rcmd \ 1.416 + BASECFLAGS="$(GCCCFLAGS)" \ 1.417 + BASELDFLAGS="-lsocket -lprot -lcrypt_i -lx -los" \ 1.418 + RANLIB=true LN=ln CC=gcc 1.419 + 1.420 +gsg: # GCC Silicon Graphics 1.421 + $(BUILD) `$(CAT) SPECIALS` OS=sgi \ 1.422 + SIGTYPE=sv4 CRXTYPE=nfs \ 1.423 + MAILSPOOL=/usr/mail \ 1.424 + RSHPATH=/usr/bsd/rsh \ 1.425 + BASECFLAGS="$(GCCCFLAGS)" \ 1.426 + RANLIB=true CC=gcc 1.427 + 1.428 +gso: os_sol.h # GCC Solaris 1.429 + $(BUILD) `$(CAT) SPECIALS` OS=sol \ 1.430 + SIGTYPE=psx CHECKPW=psx CRXTYPE=nfs \ 1.431 + SPOOLDIR=/var/spool MAILSPOOL=/var/mail \ 1.432 + ACTIVEFILE=/usr/share/news/active \ 1.433 + RSHPATH=/usr/bin/rsh \ 1.434 + BASECFLAGS="$(GCCCFLAGS)" \ 1.435 + BASELDFLAGS="-lsocket -lnsl -lgen" \ 1.436 + RANLIB=true CC=gcc 1.437 + 1.438 +gsu: # GCC SUN-OS 1.439 + $(BUILD) `$(CAT) SPECIALS` OS=sun \ 1.440 + CRXTYPE=nfs \ 1.441 + BASECFLAGS="$(GCCCFLAGS)" \ 1.442 + BASELDFLAGS="-ldl" \ 1.443 + CC=gcc 1.444 + 1.445 +gul: # GCC Ultrix 1.446 + $(BUILD) `$(CAT) SPECIALS` OS=ult \ 1.447 + SIGTYPE=psx CHECKPW=ult CRXTYPE=nfs \ 1.448 + BASECFLAGS="$(GCCCFLAGS)" \ 1.449 + BASELDFLAGS="-lauth -lc" \ 1.450 + CC=gcc 1.451 + 1.452 +h11: # HP-UX 11i 1.453 + $(BUILD) `$(CAT) SPECIALS` OS=hpp \ 1.454 + SIGTYPE=psx CRXTYPE=nfs \ 1.455 + SPOOLDIR=/var \ 1.456 + ACTIVEFILE=/var/news/active \ 1.457 + RSHPATH=/usr/bin/remsh \ 1.458 + BASECFLAGS="-g -Ae" \ 1.459 + RANLIB=true 1.460 + 1.461 +hpp: # HP-UX 9.x 1.462 + $(BUILD) `$(CAT) SPECIALS` OS=$@ \ 1.463 + SIGTYPE=psx CRXTYPE=nfs \ 1.464 + MAILSPOOL=/usr/mail \ 1.465 + RSHPATH=/usr/bin/remsh \ 1.466 + BASECFLAGS="-g -Aa -D_HPUX_SOURCE" \ 1.467 + BASELDFLAGS="-lnet -lV3" \ 1.468 + RANLIB=true 1.469 + 1.470 +hpx: # HP-UX 10.x 1.471 + $(BUILD) `$(CAT) SPECIALS` OS=hpp \ 1.472 + SIGTYPE=psx CRXTYPE=nfs \ 1.473 + SPOOLDIR=/var \ 1.474 + ACTIVEFILE=/var/news/active \ 1.475 + RSHPATH=/usr/bin/remsh \ 1.476 + BASECFLAGS="-g -Ae" \ 1.477 + BASELDFLAGS="-lnet -lV3" \ 1.478 + RANLIB=true 1.479 + 1.480 +isc: # Interactive 1.481 + $(BUILD) `$(CAT) SPECIALS` OS=$@ \ 1.482 + SIGTYPE=sv4 CHECKPW=sv4 LOGINPW=sv4 \ 1.483 + SPOOLDIR=/var/spool MAILSPOOL=/var/mail \ 1.484 + ACTIVEFILE=/var/spool/news/active \ 1.485 + BASECFLAGS="-Xp -D_SYSV3" \ 1.486 + BASELDFLAGS="-linet -lnsl_s -lgen -lx -lsec -liberty" \ 1.487 + RANLIB=true 1.488 + 1.489 +lnp: # Linux Pluggable Authentication modules 1.490 + $(BUILD) `$(CAT) SPECIALS` OS=slx \ 1.491 + SIGTYPE=psx CHECKPW=pam CRXTYPE=nfs \ 1.492 + SPOOLDIR=/var/spool \ 1.493 + ACTIVEFILE=/var/lib/news/active \ 1.494 + RSHPATH=/usr/bin/rsh \ 1.495 + BASECFLAGS="$(GCCCFLAGS)" \ 1.496 + BASELDFLAGS="$(PAMLDFLAGS)" 1.497 + 1.498 +lnx: # Linux non-shadow passwords 1.499 + @echo You are building for traditional Linux *without* shadow 1.500 + @echo passwords and with the crypt function in the C library. 1.501 + @echo If your system has shadow passwords, or if crypt is not 1.502 + @echo in the C library, you must use slx, sl4, or sl5 instead! 1.503 + $(BUILD) `$(CAT) SPECIALS` OS=$@ \ 1.504 + SIGTYPE=psx CRXTYPE=nfs \ 1.505 + SPOOLDIR=/var/spool \ 1.506 + ACTIVEFILE=/var/lib/news/active \ 1.507 + RSHPATH=/usr/bin/rsh \ 1.508 + BASECFLAGS="$(GCCCFLAGS)" 1.509 + 1.510 +lyn: # LynxOS 1.511 + $(BUILD) `$(CAT) SPECIALS` OS=$@ \ 1.512 + CRXTYPE=nfs \ 1.513 + RSHPATH=/bin/rsh \ 1.514 + BASECFLAGS="$(GCCCFLAGS)" \ 1.515 + BASELDFLAGS=-lbsd \ 1.516 + CC=gcc 1.517 + 1.518 +mct: # MachTen - CRXTYPE=nfs doesn't work (at least not on 2.2) 1.519 + $(BUILD) `$(CAT) SPECIALS` OS=$@ \ 1.520 + SPOOLDIR=/var/spool \ 1.521 + BASECFLAGS="$(GCCCFLAGS)" 1.522 + 1.523 +mnt: # Mint 1.524 + $(BUILD) `$(CAT) SPECIALS` OS=$@ \ 1.525 + SIGTYPE=psx CRXTYPE=nfs \ 1.526 + SPOOLDIR=/var/spool \ 1.527 + ACTIVEFILE=/var/lib/news/active \ 1.528 + RSHPATH=/usr/bin/rsh \ 1.529 + BASECFLAGS="$(GCCCFLAGS)" 1.530 + 1.531 +neb: # NetBSD 1.532 + $(BUILD) `$(CAT) SPECIALS` OS=bsi \ 1.533 + CRXTYPE=nfs \ 1.534 + SPOOLDIR=/var \ 1.535 + ACTIVEFILE=/var/db/news/active \ 1.536 + RSHPATH=/usr/bin/rsh \ 1.537 + BASECFLAGS="$(GCCCFLAGS)" \ 1.538 + BASELDFLAGS="-lcrypt" 1.539 + 1.540 +nec: # NEC UX 1.541 + $(BUILD) `$(CAT) SPECIALS` OS=sv4 \ 1.542 + SIGTYPE=sv4 CHECKPW=sv4 \ 1.543 + SPOOLDIR=/var/spool MAILSPOOL=/var/mail \ 1.544 + ACTIVEFILE=/var/news/lib/active \ 1.545 + RSHPATH=/usr/bin/rsh \ 1.546 + BASECFLAGS="-g -Kopt=2 -KOlimit=2000" \ 1.547 + BASELDFLAGS="-lsocket -lnsl -lgen" \ 1.548 + RANLIB=true CC=/usr/abiccs/bin/cc 1.549 + 1.550 +nto: # QNX Neutrino RTP 1.551 + $(BUILD) `$(CAT) SPECIALS` OS=$@ \ 1.552 + CRXTYPE=nfs \ 1.553 + SPOOLDIR=/var/spool \ 1.554 + ACTIVEFILE=/var/lib/news/active \ 1.555 + RSHPATH=/usr/bin/rsh \ 1.556 + BASECFLAGS="-g -O" 1.557 + 1.558 +nxt: # NEXTSTEP 1.559 + $(BUILD) `$(CAT) SPECIALS` OS=$@ \ 1.560 + CRXTYPE=nfs \ 1.561 + BASECFLAGS="$(GCCCFLAGS)" 1.562 + 1.563 +nx3: # NEXTSTEP 3.0 single threaded 1.564 + $(BUILD) `$(CAT) SPECIALS` OS=nxt \ 1.565 + CRXTYPE=nfs \ 1.566 + BASECFLAGS="$(GCCCFLAGS)" 1.567 + echo "void malloc_singlethreaded (void);" >> linkage.h 1.568 + echo " malloc_singlethreaded ();" >> linkage.c 1.569 + 1.570 +osf: # OSF/1 1.571 + $(BUILD) `$(CAT) SPECIALS` OS=$@ \ 1.572 + SIGTYPE=psx CRXTYPE=nfs \ 1.573 + SPOOLDIR=/var/spool \ 1.574 + BASECFLAGS="-g3 -w -O2 -Olimit 1500" 1.575 + 1.576 +# Note: sia_become_user() used by LOGINPW=os4 doesn't seem to work right. The 1.577 +# user doesn't get proper file access, and the process can't be killed. 1.578 + 1.579 +os4: # OSF/1 (Digital UNIX) 4 1.580 + $(BUILD) `$(CAT) SPECIALS` OS=$@ \ 1.581 + SIGTYPE=psx CHECKPW=os4 LOGINPW=os4 CRXTYPE=nfs \ 1.582 + SPOOLDIR=/var/spool \ 1.583 + BASECFLAGS="-g3 -w -std0 -O2" 1.584 + 1.585 +osx: # Mac OS X 1.586 + $(BUILD) `$(CAT) SPECIALS` OS=$@ \ 1.587 + CRXTYPE=nfs \ 1.588 + SPOOLDIR=/var/spool MAILSPOOL=/var/mail \ 1.589 + RSHPATH=/usr/bin/rsh \ 1.590 + BASECFLAGS="$(GCC4CFLAGS)" 1.591 + 1.592 +ptx: # PTX 1.593 + $(BUILD) `$(CAT) SPECIALS` OS=$@ \ 1.594 + SIGTYPE=psx CHECKPW=svo LOGINPW=sv4 CRXTYPE=nfs \ 1.595 + MAILSPOOL=/usr/mail \ 1.596 + RSHPATH=/usr/bin/resh \ 1.597 + BASECFLAGS="-Wc,-O3 -Wc,-seq -Dprivate=PRIVATE" \ 1.598 + BASELDFLAGS="-lseq -lsec -lsocket -linet -lnsl -lgen" \ 1.599 + RANLIB=true 1.600 + 1.601 +pyr: # Pyramid 1.602 + $(BUILD) `$(CAT) SPECIALS` OS=$@ \ 1.603 + CRXTYPE=nfs \ 1.604 + BASECFLAGS="-g -Dconst=" 1.605 + 1.606 +qnx: # QNX 1.607 + $(BUILD) `$(CAT) SPECIALS` OS=$@ \ 1.608 + CHECKPW=psx LOGINPW=old \ 1.609 + RSHPATH=/usr/ucb/rsh \ 1.610 + BASECFLAGS="-Otax -g -Dunix=1 -D_POSIX_SOURCE" \ 1.611 + BASELDFLAGS="-g -N128k -llogin -lsocket -lunix" 1.612 + 1.613 +s40: # SUN-OS 4.0 1.614 + $(BUILD) `$(CAT) SPECIALS` OS=$@ \ 1.615 + CRXTYPE=nfs \ 1.616 + BASECFLAGS="-g -Dconst=" 1.617 + 1.618 +sc5: # SCO Open Server 5.0 1.619 + $(BUILD) `$(CAT) SPECIALS` OS=$@ \ 1.620 + SIGTYPE=psx CHECKPW=sec LOGINPW=sec \ 1.621 + CREATEPROTO=mmdfproto EMPTYPROTO=mmdfproto \ 1.622 + SPOOLDIR=/var/spool \ 1.623 + ACTIVEFILE=/var/lib/news/active \ 1.624 + RSHPATH=/usr/bin/rcmd \ 1.625 + BASECFLAGS="-O3 -s -belf" \ 1.626 + BASELDFLAGS="-lsocket -lprot -lx -ltinfo -lm" \ 1.627 + RANLIB=true 1.628 + 1.629 +sco: # Santa Cruz Operation 1.630 + $(BUILD) `$(CAT) SPECIALS` OS=$@ \ 1.631 + SIGTYPE=sv4 CHECKPW=sec LOGINPW=sec \ 1.632 + CREATEPROTO=mmdfproto EMPTYPROTO=mmdfproto \ 1.633 + RSHPATH=/usr/bin/rcmd \ 1.634 + BASECFLAGS="-O3" \ 1.635 + BASELDFLAGS="-lsocket -lprot -lcrypt_i -lx -los" \ 1.636 + RANLIB=true LN=ln 1.637 + 1.638 +# Note: setting _POSIX_SOURCE doesn't seem to build it as of SGI IRIX 5.3 1.639 + 1.640 +sgi: # Silicon Graphics 1.641 + $(BUILD) `$(CAT) SPECIALS` OS=$@ \ 1.642 + SIGTYPE=sv4 CRXTYPE=nfs \ 1.643 + MAILSPOOL=/usr/mail \ 1.644 + RSHPATH=/usr/bsd/rsh \ 1.645 + BASECFLAGS="-g3 -O2 -Olimit 8192" \ 1.646 + RANLIB=true 1.647 + 1.648 +sg6: # Silicon Graphics, IRIX 6.5 1.649 + MAKEFLAGS= $(BUILD) `$(CAT) SPECIALS` OS=sgi \ 1.650 + SIGTYPE=sv4 CRXTYPE=nfs \ 1.651 + MAILSPOOL=/usr/mail \ 1.652 + RSHPATH=/usr/bsd/rsh \ 1.653 + BASECFLAGS="-g3 -O2 -OPT:Olimit=0 -woff 1110,1116" \ 1.654 + RANLIB=true 1.655 + 1.656 +# Note: Mark Kaesling says that setluid() isn't in HP-UX with SecureWare. 1.657 + 1.658 +shp: # HP-UX with Trusted Computer Base 1.659 + $(BUILD) `$(CAT) SPECIALS` OS=$@ \ 1.660 + SIGTYPE=psx CHECKPW=sec CRXTYPE=nfs \ 1.661 + SPOOLDIR=/var \ 1.662 + ACTIVEFILE=/var/news/active \ 1.663 + RSHPATH=/usr/bin/remsh \ 1.664 + BASECFLAGS="-g -Ae" \ 1.665 + BASELDFLAGS="-lnet -lV3 -lsec" \ 1.666 + RANLIB=true 1.667 + 1.668 +slx: # Secure Linux 1.669 + @echo You are building for libc6/glibc versions of Secure Linux 1.670 + @echo If you want libc5 versions you must use sl5 instead! 1.671 + @echo If you want libc4 versions you must use sl4 instead! 1.672 + $(BUILD) `$(CAT) SPECIALS` OS=$@ \ 1.673 + SIGTYPE=psx CHECKPW=psx CRXTYPE=nfs \ 1.674 + SPOOLDIR=/var/spool \ 1.675 + ACTIVEFILE=/var/lib/news/active \ 1.676 + RSHPATH=/usr/bin/rsh \ 1.677 + BASECFLAGS="$(GCCCFLAGS)" \ 1.678 + BASELDFLAGS="-lcrypt" 1.679 + 1.680 +sl4: # Secure Linux using libc4 1.681 + @echo You are building for libc4 versions of Secure Linux 1.682 + @echo If you want libc6/glibc versions you must use slx instead! 1.683 + @echo If you want libc5 versions you must use sl5 instead! 1.684 + $(BUILD) `$(CAT) SPECIALS` OS=slx \ 1.685 + SIGTYPE=psx CHECKPW=psx CRXTYPE=nfs \ 1.686 + SPOOLDIR=/var/spool \ 1.687 + ACTIVEFILE=/var/lib/news/active \ 1.688 + RSHPATH=/usr/bin/rsh \ 1.689 + BASECFLAGS="$(GCCCFLAGS)" \ 1.690 + BASELDFLAGS="-lshadow" 1.691 + 1.692 +sl5: # Secure Linux using libc5 1.693 + @echo You are building for libc5 versions of Secure Linux 1.694 + @echo If you want libc6/glibc versions you must use slx instead! 1.695 + @echo If you want libc4 versions you must use sl4 instead! 1.696 + $(BUILD) `$(CAT) SPECIALS` OS=slx \ 1.697 + SIGTYPE=psx CHECKPW=psx CRXTYPE=nfs \ 1.698 + SPOOLDIR=/var/spool \ 1.699 + ACTIVEFILE=/var/lib/news/active \ 1.700 + RSHPATH=/usr/bin/rsh \ 1.701 + BASECFLAGS="$(GCCCFLAGS)" 1.702 + 1.703 +snx: # Siemens Nixdorf SINIX and Reliant UNIX 1.704 + $(BUILD) `$(CAT) SPECIALS` OS=sv4 \ 1.705 + SIGTYPE=psx CHECKPW=sv4 \ 1.706 + SPOOLDIR=/var/spool MAILSPOOL=/var/mail \ 1.707 + ACTIVEFILE=/usr/share/news/active \ 1.708 + RSHPATH=/usr/bin/rsh \ 1.709 + BASECFLAGS="-g -D_SYS_CLOCK_H -Dconst=" \ 1.710 + BASELDFLAGS="-lsocket -lnsl -lgen" \ 1.711 + RANLIB=true 1.712 + 1.713 +# Sorry about the -w, but the cretinous SUN Workshop Pro C compiler barfs on 1.714 +# implicit casts between char and unsigned char. 1.715 + 1.716 +soc: os_sol.h # Solaris with cc 1.717 + $(BUILD) `$(CAT) SPECIALS` OS=sol \ 1.718 + SIGTYPE=psx CHECKPW=psx CRXTYPE=nfs \ 1.719 + SPOOLDIR=/var/spool MAILSPOOL=/var/mail \ 1.720 + ACTIVEFILE=/usr/share/news/active \ 1.721 + RSHPATH=/usr/bin/rsh \ 1.722 + BASECFLAGS="-g -O -w" \ 1.723 + BASELDFLAGS="-lsocket -lnsl -lgen" \ 1.724 + RANLIB=true CC=/opt/SUNWspro/bin/cc 1.725 + 1.726 + 1.727 +# Note: It is a long and disgusting story about why cc is set to ucbcc. You 1.728 +# need to invoke the C compiler so that it links with the SVR4 libraries and 1.729 +# not the BSD libraries, otherwise readdir() will return the wrong information. 1.730 +# Of all the names in the most common path, ucbcc is the only name to be found 1.731 +# (on /usr/ccs/bin) that points to a suitable compiler. cc is likely to be 1.732 +# /usr/ucb/cc which is absolutely not the compiler that you want. The real 1.733 +# SVR4 cc is probably something like /opt/SUNWspro/bin/cc which is rarely in 1.734 +# anyone's path. 1.735 +# 1.736 +# ucbcc is probably a link to acc, e.g. /opt/SUNWspro/SC4.0/bin/acc, and is 1.737 +# the UCB C compiler using the SVR4 libraries. 1.738 +# 1.739 +# If ucbcc isn't on your system, then punt on the SUN C compiler and use gcc 1.740 +# instead (the gso port instead of the sol port). 1.741 +# 1.742 +# If, in spite of all the above warnings, you choose to use the "soc" port 1.743 +# instead of the "sol" port, be sure to check the behavior of the LIST command 1.744 +# in imapd. Also, note that the "soc" port uses -O. If you want to use the 1.745 +# real SVR4 compiler, you must use -O. If it works to compile with -O2, then 1.746 +# cc is probably using the UCB compiler with BSD libraries, and will not build 1.747 +# a good binary 1.748 +# 1.749 +# To recap: 1.750 +# 1) The sol port is designed to be built using the UCB compiler using the 1.751 +# SVR4 libraries. This compiler is "ucbcc", which is lunk to acc. You 1.752 +# use -O2 as one of the CFLAGS. 1.753 +# 2) If you build the sol port with the UCB compiler using the BSD libraries, 1.754 +# you will get no error messages but you will get bad binaries (the most 1.755 +# obvious symptom is dropping the first two characters return filenames 1.756 +# from the imapd LIST command. This compiler also uses -O2, and is very 1.757 +# often what the user gets from "cc". BEWARE!!! 1.758 +# 3) If you build the sol port with the real SVR4 compiler, which is often 1.759 +# hidden away or unavailable on many systems, then you will get errors 1.760 +# from -O2 and you need to change that to -O. But you will get a good 1.761 +# binary. However, you should try it with -O2 first, to make sure that 1.762 +# you got this compiler and not the UCB compiler using BSD libraries. 1.763 + 1.764 +sol: os_sol.h # Solaris 1.765 + $(BUILD) `$(CAT) SPECIALS` OS=$@ \ 1.766 + SIGTYPE=psx CHECKPW=psx CRXTYPE=nfs \ 1.767 + SPOOLDIR=/var/spool MAILSPOOL=/var/mail \ 1.768 + ACTIVEFILE=/usr/share/news/active \ 1.769 + RSHPATH=/usr/bin/rsh \ 1.770 + BASECFLAGS="-g -O2" \ 1.771 + BASELDFLAGS="-lsocket -lnsl -lgen" \ 1.772 + RANLIB=true CC=ucbcc 1.773 + 1.774 +sos: # Secure OSF/1 1.775 + $(BUILD) `$(CAT) SPECIALS` OS=$@ \ 1.776 + SIGTYPE=psx CHECKPW=sce LOGINPW=sec CRXTYPE=nfs \ 1.777 + BASECFLAGS="-g3 -w -O2 -Olimit 1500" \ 1.778 + BASELDFLAGS="-lsecurity -laud" 1.779 + 1.780 +ssn: # Secure SUN-OS 1.781 + $(BUILD) `$(CAT) SPECIALS` OS=sun \ 1.782 + CHECKPW=ssn CRXTYPE=nfs \ 1.783 + BASECFLAGS="-g -Dconst=" \ 1.784 + BASELDFLAGS="-ldl" 1.785 + 1.786 +sua: # Windows Vista Subsystem for UNIX Applications 1.787 + $(BUILD) `$(CAT) SPECIALS` OS=sua \ 1.788 + SIGTYPE=psx CRXTYPE=nfs LOGINPW=old \ 1.789 + SPOOLDIR=/var/spool MAILSPOOL=/var/mail \ 1.790 + ACTIVEFILE=/var/lib/news/active \ 1.791 + RSHPATH=/usr/bin/rsh \ 1.792 + BASECFLAGS="-g -O2" \ 1.793 + BASELDFLAGS="-lcrypt" 1.794 + 1.795 +sun: # SUN-OS 1.796 + $(BUILD) `$(CAT) SPECIALS` OS=$@ \ 1.797 + CRXTYPE=nfs \ 1.798 + BASECFLAGS="-g -Dconst=" \ 1.799 + BASELDFLAGS="-ldl" 1.800 + 1.801 +sv2: # SVR2 1.802 + @echo You are being *very* optimistic! 1.803 + $(BUILD) `$(CAT) SPECIALS` OS=$@ \ 1.804 + SIGTYPE=sv4 LOGINPW=old \ 1.805 + MAILSPOOL=/usr/mail \ 1.806 + RSHPATH=/usr/bin/remsh \ 1.807 + BASECFLAGS="-Dconst= -DSYSTEM5 -DSHORT_IDENT -I/usr/ethernet/include" \ 1.808 + BASELDFLAGS="-lnet" \ 1.809 + RANLIB=true LN=ln 1.810 + 1.811 +sv4: # SVR4 1.812 + $(BUILD) `$(CAT) SPECIALS` OS=$@ \ 1.813 + SIGTYPE=sv4 CHECKPW=sv4 LOGINPW=sv4 \ 1.814 + SPOOLDIR=/var/spool MAILSPOOL=/var/mail \ 1.815 + ACTIVEFILE=/usr/share/news/active \ 1.816 + RSHPATH=/usr/bin/resh \ 1.817 + BASECFLAGS="-g -Dconst=" \ 1.818 + BASELDFLAGS="-lsocket -lnsl -lgen" \ 1.819 + RANLIB=true 1.820 + 1.821 +ult: # Ultrix 1.822 + $(BUILD) `$(CAT) SPECIALS` OS=$@ \ 1.823 + SIGTYPE=psx CHECKPW=ult CRXTYPE=nfs \ 1.824 + BASECFLAGS="-g3 -O2 -Olimit 1500 -Dconst=" \ 1.825 + BASELDFLAGS="-lauth -lc" 1.826 + 1.827 +uw2: # UnixWare SVR4.2 1.828 + $(BUILD) `$(CAT) SPECIALS` OS=sv4 \ 1.829 + SIGTYPE=sv4 CHECKPW=sv4 \ 1.830 + SPOOLDIR=/var/spool MAILSPOOL=/var/mail \ 1.831 + ACTIVEFILE=/var/news/lib/active \ 1.832 + RSHPATH=/usr/bin/rsh \ 1.833 + BASECFLAGS="-g" \ 1.834 + BASELDFLAGS="-lsocket -lnsl -lgen" \ 1.835 + RANLIB=true 1.836 + 1.837 +vul: # VAX Ultrix 1.838 + $(BUILD) `$(CAT) SPECIALS` OS=ult \ 1.839 + SIGTYPE=psx CHECKPW=ult CRXTYPE=nfs \ 1.840 + BASECFLAGS="-O2 -Dconst=" \ 1.841 + BASELDFLAGS="-lauth -lc" 1.842 + 1.843 +vu2: # VAX Ultrix 2.3, etc. 1.844 + $(BUILD) `$(CAT) SPECIALS` OS=$@ \ 1.845 + CRXTYPE=nfs \ 1.846 + BASECFLAGS="-O2 -Dconst= -Dvoid=char" 1.847 + 1.848 + 1.849 +# Build it! 1.850 + 1.851 +build: clean once $(ARCHIVE) 1.852 + 1.853 +all: $(ARCHIVE) 1.854 + 1.855 +$(ARCHIVE): $(BINARIES) 1.856 + sh -c '$(RM) $(ARCHIVE) || true' 1.857 + @$(CAT) ARCHIVE 1.858 + @$(SH) ARCHIVE 1.859 + 1.860 +.c.o: 1.861 + `$(CAT) CCTYPE` -c `$(CAT) CFLAGS` $*.c 1.862 + 1.863 + 1.864 +# Cleanup 1.865 + 1.866 +clean: 1.867 + sh -c '$(RM) auths.c crexcl.c ip_unix.c linkage.[ch] siglocal.c osdep*.[ch] *.o ARCHIVE *FLAGS *TYPE $(ARCHIVE) || true' 1.868 + 1.869 + 1.870 +# Dependencies 1.871 + 1.872 +dummy.o: mail.h misc.h osdep.h dummy.h 1.873 +fdstring.o: mail.h misc.h osdep.h fdstring.h 1.874 +flstring.o: mail.h misc.h osdep.h flstring.h 1.875 +imap4r1.o: mail.h misc.h osdep.h imap4r1.h rfc822.h 1.876 +mail.o: mail.h misc.h osdep.h rfc822.h linkage.h 1.877 +mbx.o: mail.h misc.h osdep.h dummy.h 1.878 +mh.o: mail.h misc.h osdep.h dummy.h 1.879 +mix.o: mail.h misc.h osdep.h dummy.h 1.880 +mx.o: mail.h misc.h osdep.h dummy.h 1.881 +misc.o: mail.h misc.h osdep.h 1.882 +mmdf.o: mail.h misc.h osdep.h pseudo.h dummy.h 1.883 +mtx.o: mail.h misc.h osdep.h dummy.h 1.884 +netmsg.o: mail.h misc.h osdep.h netmsg.h 1.885 +news.o: mail.h misc.h osdep.h 1.886 +newsrc.o: mail.h misc.h osdep.h newsrc.h 1.887 +nntp.o: mail.h misc.h osdep.h netmsg.h smtp.h nntp.h rfc822.h 1.888 +phile.o: mail.h misc.h osdep.h rfc822.h dummy.h 1.889 +pseudo.o: pseudo.h 1.890 +pop3.o: mail.h misc.h osdep.h rfc822.h 1.891 +smanager.o: mail.h misc.h osdep.h 1.892 +smtp.o: mail.h misc.h osdep.h smtp.h rfc822.h 1.893 +rfc822.o: mail.h misc.h osdep.h rfc822.h 1.894 +tenex.o: mail.h misc.h osdep.h dummy.h 1.895 +unix.o: mail.h misc.h osdep.h unix.h pseudo.h dummy.h 1.896 +utf8.o: mail.h misc.h osdep.h utf8.h tmap.c widths.c 1.897 +utf8aux.o: mail.h misc.h osdep.h utf8.h 1.898 + 1.899 + 1.900 +# OS-dependent 1.901 + 1.902 +osdep.o:mail.h misc.h env.h fs.h ftl.h nl.h tcp.h \ 1.903 + osdep.h env_unix.h tcp_unix.h \ 1.904 + osdep.c env_unix.c fs_unix.c ftl_unix.c nl_unix.c tcp_unix.c ip_unix.c\ 1.905 + auths.c crexcl.c flockcyg.c flocklnx.c flocksim.c fsync.c \ 1.906 + gethstid.c getspnam.c \ 1.907 + gr_wait.c gr_wait4.c gr_waitp.c \ 1.908 + kerb_mit.c \ 1.909 + auth_ext.c auth_gss.c auth_log.c auth_md5.c auth_pla.c \ 1.910 + pmatch.c scandir.c setpgrp.c strerror.c truncate.c write.c \ 1.911 + memmove.c memmove2.c memset.c \ 1.912 + tz_bsd.c tz_nul.c tz_sv4.c \ 1.913 + write.c sslstdio.c \ 1.914 + strerror.c strpbrk.c strstr.c strtok.c strtoul.c \ 1.915 + OSCFLAGS 1.916 + @echo Building OS-dependent module 1.917 + @echo If you get No such file error messages for files x509.h, ssl.h, 1.918 + @echo pem.h, buffer.h, bio.h, and crypto.h, that means that OpenSSL 1.919 + @echo is not installed on your system. Either install OpenSSL first 1.920 + @echo or build with command: make `$(CAT) OSTYPE` SSLTYPE=none 1.921 + `$(CAT) CCTYPE` -c `$(CAT) CFLAGS` `$(CAT) OSCFLAGS` -c osdep.c 1.922 + 1.923 +osdep.c: osdepbas.c osdepckp.c osdeplog.c osdepssl.c 1.924 + $(CAT) osdepbas.c osdepckp.c osdeplog.c osdepssl.c > osdep.c 1.925 + 1.926 +osdepbas.c: 1.927 + @echo osdepbas.c not found...try make clean and new make 1.928 + @false 1.929 + 1.930 +osdepckp.c: 1.931 + @echo osdepckp.c not found...try make clean and new make 1.932 + @false 1.933 + 1.934 +osdeplog.c: 1.935 + @echo osdeplog.c not found...try make clean and new make 1.936 + @false 1.937 + 1.938 +osdepssl.c: 1.939 + @echo osdepssl.c not found...try make clean and new make 1.940 + @false 1.941 + 1.942 +siglocal.c: 1.943 + @echo siglocal.c not found...try make clean and new make 1.944 + @false 1.945 + 1.946 +crexcl.c: 1.947 + @echo crexcl.c not found...do make clean and new make 1.948 + @false 1.949 + 1.950 +ip_unix.c: 1.951 + @echo ip_unix.c not found...do make clean and new make 1.952 + @false 1.953 + 1.954 +os_sol.h: 1.955 + sh -c 'if [ -f /lib/libc.a ]; then (strings /lib/libc.a | grep getpassphrase > /dev/null) && $(LN) os_soln.h os_sol.h || $(LN) os_solo.h os_sol.h ; else $(LN) os_soln.h os_sol.h ; fi' 1.956 + 1.957 + 1.958 +# Once-only environment setup 1.959 + 1.960 +once: onceenv ckp$(PASSWDTYPE) ssl$(SSLTYPE) osdep.c 1.961 + 1.962 +onceenv: 1.963 + @echo Once-only environment setup... 1.964 + echo $(CC) > CCTYPE 1.965 + echo $(BASECFLAGS) '$(EXTRACFLAGS)' -DCHUNKSIZE=$(CHUNKSIZE) > CFLAGS 1.966 + echo -DCREATEPROTO=$(CREATEPROTO) -DEMPTYPROTO=$(EMPTYPROTO) \ 1.967 + -DMD5ENABLE=\"$(MD5PWD)\" -DMAILSPOOL=\"$(MAILSPOOL)\" \ 1.968 + -DANONYMOUSHOME=\"$(MAILSPOOL)/anonymous\" \ 1.969 + -DACTIVEFILE=\"$(ACTIVEFILE)\" -DNEWSSPOOL=\"$(NEWSSPOOL)\" \ 1.970 + -DRSHPATH=\"$(RSHPATH)\" -DLOCKPGM=\"$(LOCKPGM)\" \ 1.971 + -DLOCKPGM1=\"$(LOCKPGM1)\" -DLOCKPGM2=\"$(LOCKPGM2)\" \ 1.972 + -DLOCKPGM3=\"$(LOCKPGM3)\" > OSCFLAGS 1.973 + echo $(BASELDFLAGS) $(EXTRALDFLAGS) > LDFLAGS 1.974 + echo "$(ARRC) $(ARCHIVE) $(BINARIES);$(RANLIB) $(ARCHIVE)" > ARCHIVE 1.975 + echo $(OS) > OSTYPE 1.976 + ./drivers $(EXTRADRIVERS) $(DEFAULTDRIVERS) dummy 1.977 + ./mkauths $(EXTRAAUTHENTICATORS) $(DEFAULTAUTHENTICATORS) 1.978 + echo " mail_versioncheck (CCLIENTVERSION);" >> linkage.c 1.979 + $(LN) os_$(OS).h osdep.h 1.980 + $(LN) os_$(OS).c osdepbas.c 1.981 + $(LN) log_$(LOGINPW).c osdeplog.c 1.982 + $(LN) sig_$(SIGTYPE).c siglocal.c 1.983 + $(LN) crx_$(CRXTYPE).c crexcl.c 1.984 + $(LN) ip$(IP)_unix.c ip_unix.c 1.985 + sh -c '(test $(OS) = sc5 -o $(OS) = sco -o ! -f /usr/include/sys/statvfs.h) && echo -DNOFSTATVFS >> OSCFLAGS || fgrep statvfs64 /usr/include/sys/statvfs.h > /dev/null || echo -DNOFSTATVFS64 >> OSCFLAGS' 1.986 + 1.987 + 1.988 +# Password checkers 1.989 + 1.990 +ckpafs: # AFS 1.991 + @echo AFS password authentication 1.992 + echo $(AFSCFLAGS) >> OSCFLAGS 1.993 +# echo $(AFSLDFLAGS) >> LDFLAGS 1.994 +# Note: Steve Roseman says that AFS libraries have to be lunk before SSL 1.995 + echo $(AFSLDFLAGS) `$(CAT) LDFLAGS` > LDFLAGS.tmp 1.996 + mv LDFLAGS.tmp LDFLAGS 1.997 + $(LN) ckp_afs.c osdepckp.c 1.998 + 1.999 +ckpdce: # DCE 1.1000 + @echo DCE password authentication 1.1001 + echo $(DCECFLAGS) >> OSCFLAGS 1.1002 + echo $(DCELDFLAGS) >> LDFLAGS 1.1003 + $(LN) ckp_dce.c osdepckp.c 1.1004 + 1.1005 +ckpgss: # Kerberos V (must have gss EXTRAAUTHENTICATOR as well) 1.1006 + @echo Kerberos V password authentication 1.1007 + $(LN) ckp_gss.c osdepckp.c 1.1008 + 1.1009 +ckpnul: # NUL authenticator (disables all plaintext authentication) 1.1010 + @echo Plaintext authentication prohibited 1.1011 + echo " mail_parameters (NIL,SET_DISABLEPLAINTEXT,(void *) 1);" >> linkage.c 1.1012 + $(LN) ckp_nul.c osdepckp.c 1.1013 + 1.1014 +ckppam: # Pluggable Authentication Modules authenticator 1.1015 + @echo PAM password authentication 1.1016 + echo $(PAMLDFLAGS) >> LDFLAGS 1.1017 + $(LN) ckp_pam.c osdepckp.c 1.1018 + 1.1019 +ckppmb: # Broken (e.g. SUN) Pluggable Authentication Modules authenticator 1.1020 + @echo Broken PAM password authentication 1.1021 + echo $(PAMLDFLAGS) >> LDFLAGS 1.1022 + $(LN) ckp_pmb.c osdepckp.c 1.1023 + 1.1024 +ckpstd: # Port standard 1.1025 + @echo Standard password authentication 1.1026 + $(LN) ckp_$(CHECKPW).c osdepckp.c 1.1027 + 1.1028 +ckptwo: # Something plus standard 1.1029 + @echo $(CHECKPWALT) password authentication first, then standard 1.1030 + $(CAT) ckp_1st.c ckp_$(CHECKPWALT).c ckp_2nd.c ckp_$(CHECKPW).c \ 1.1031 + ckp_3rd.c > osdepckp.c 1.1032 + 1.1033 + 1.1034 +# SSL support 1.1035 + 1.1036 +sslnone:# No SSL 1.1037 + @echo Building without SSL support 1.1038 + $(LN) ssl_none.c osdepssl.c 1.1039 + 1.1040 +sslnopwd: sslunix snopwd 1.1041 + 1.1042 +sslunix.nopwd: sslnopwd 1.1043 + 1.1044 +sslsco.nopwd: sslsco snopwd 1.1045 + 1.1046 +sslunix: sbasic sldunix 1.1047 + 1.1048 +sslsco: sbasic sldsco 1.1049 + 1.1050 +sbasic: # UNIX OpenSSL 1.1051 + @echo Building with SSL 1.1052 + $(LN) ssl_unix.c osdepssl.c 1.1053 + echo $(SSLCFLAGS) >> OSCFLAGS 1.1054 + echo " ssl_onceonlyinit ();" >> linkage.c 1.1055 + 1.1056 +snopwd: # Plaintext disable 1.1057 + @echo Building with SSL and plaintext passwords disabled unless SSL/TLS 1.1058 + echo " mail_parameters (NIL,SET_DISABLEPLAINTEXT,(void *) 2);" >> linkage.c 1.1059 + 1.1060 +sldunix:# Normal UNIX SSL load flags 1.1061 + echo $(SSLLDFLAGS) >> LDFLAGS 1.1062 + 1.1063 + 1.1064 +sldsco: # SCO SSL load flags 1.1065 +# Note: Tim Rice says that SSL has to be lunk before other libraries on SCO. 1.1066 + echo $(SSLLDFLAGS) `cat LDFLAGS` > LDFLAGS.tmp 1.1067 + mv LDFLAGS.tmp LDFLAGS 1.1068 + 1.1069 + 1.1070 +# A monument to a hack of long ago and far away... 1.1071 + 1.1072 +love: 1.1073 + @echo not war?