166268Seric# 266268Seric# This Makefile is designed to work on the old "make" program. It does 366268Seric# not use the obj subdirectory. It also does not install documentation 466268Seric# automatically -- think of it as a quick start for sites that have the 566268Seric# old make program (I recommend that you get and port the new make if you 666268Seric# are going to be doing any signficant work on sendmail). 766268Seric# 8*69943Seric# @(#)Makefile.Mach386 8.6 (Berkeley) 06/20/95 966268Seric# 1066268Seric 1166268SericCC= gcc 1266268Seric 1366268Seric# use O=-O (usual) or O=-g (debugging) 1466268SericO= -O 1566268Seric 1666268Seric# define the database mechanisms available for map & alias lookups: 1766268Seric# -DNDBM -- use new DBM 1866268Seric# -DNEWDB -- use new Berkeley DB 1966268Seric# -DNIS -- include NIS support 2066268Seric# The really old (V7) DBM library is no longer supported. 2166268Seric# See READ_ME for a description of how these flags interact. 2266268Seric# 2366268SericDBMDEF= -DNDBM 2466268Seric 2566268Seric# environment definitions (e.g., -D_AIX3) 2666268SericENVDEF= 2766268Seric 2866268Seric# see also conf.h for additional compilation flags 2966268Seric 3066268Seric# include directories 3166268SericINCDIRS= 3266268Seric 3366268Seric# loader options 3466268SericLDOPTS= 3566268Seric 3666268Seric# library directories 3766268SericLIBDIRS= 3866268Seric 3966268Seric# libraries required on your system 4066268SericLIBS= -ldbm 4166268Seric 4266268Seric# location of sendmail binary (usually /usr/sbin or /usr/lib) 4366268SericBINDIR= ${DESTDIR}/usr/lib 4466268Seric 4566268Seric# location of sendmail.st file (usually /var/log or /usr/lib) 4666268SericSTDIR= ${DESTDIR}/usr/lib 4766268Seric 4866268Seric# location of sendmail.hf file (usually /usr/share/misc or /usr/lib) 4966268SericHFDIR= ${DESTDIR}/usr/lib 5066268Seric 5166268Seric# additional .o files needed 5266268SericOBJADD= 5366268Seric 5466268Seric################### end of user configuration flags ###################### 5566268Seric 5666268SericCFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF} 5766268Seric 5866268SericOBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \ 5966268Seric deliver.o domain.o envelope.o err.o headers.o macro.o main.o \ 6067546Seric map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \ 6166268Seric savemail.o srvrsmtp.o stab.o stats.o sysexits.o \ 6266268Seric trace.o udb.o usersmtp.o util.o version.o ${OBJADD} 6366268Seric 6466268SericLINKS= ${DESTDIR}/usr/ucb/newaliases ${DESTDIR}/usr/ucb/mailq 6566268SericBINOWN= root 6666268SericBINGRP= kmem 6766268SericBINMODE=6555 6866268Seric 6966268SericALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 7066268Seric 7166268Sericall: ${ALL} 7266268Seric 7366268Sericsendmail: ${BEFORE} ${OBJS} 7466268Seric ${CC} -o sendmail ${LDOPTS} ${OBJS} ${LIBDIRS} ${LIBS} 7566268Seric 7668774Seric#NROFF= nroff -h 7768774SericNROFF= groff -Tascii 7868774SericMANDOC= -mandoc 7966741Seric 8066268Sericaliases.0: aliases.5 8168774Seric ${NROFF} ${MANDOC} aliases.5 > aliases.0 8266268Seric 8366268Sericmailq.0: mailq.1 8468774Seric ${NROFF} ${MANDOC} mailq.1 > mailq.0 8566268Seric 8666268Sericnewaliases.0: newaliases.1 8768774Seric ${NROFF} ${MANDOC} newaliases.1 > newaliases.0 8866268Seric 8966268Sericsendmail.0: sendmail.8 9068774Seric ${NROFF} ${MANDOC} sendmail.8 > sendmail.0 9166268Seric 9266268Sericinstall: install-sendmail install-docs 9366268Seric 9466268Sericinstall-sendmail: sendmail 9566268Seric install -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR} 9666268Seric for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done 9766268Seric install -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 9866268Seric ${STDIR}/sendmail.st 9966268Seric install -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR} 10066268Seric 10166268Seric# doesn't actually install them -- you may want to install pre-nroff versions 10266314Sericinstall-docs: aliases.0 mailq.0 newaliases.0 sendmail.0 10366268Seric 10466268Sericclean: 10566314Seric rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 10666268Seric 10766268Seric# dependencies 10866268Seric# gross overkill, and yet still not quite enough.... 10966268Seric${OBJS}: sendmail.h conf.h 110*69943Seric 111*69943Sericdepend: 112