155686Seric# 255686Seric# This Makefile is designed to work on the old "make" program. It does 355686Seric# not use the obj subdirectory. It also does not install documentation 455686Seric# automatically -- think of it as a quick start for sites that have the 555686Seric# old make program (I recommend that you get and port the new make if you 655686Seric# are going to be doing any signficant work on sendmail). 755686Seric# 8*69943Seric# @(#)Makefile.dist 8.16 (Berkeley) 06/20/95 955686Seric# 1055489Sbostic 1155686Seric# use O=-O (usual) or O=-g (debugging) 1255686SericO= -O 1355686Seric 1460566Seric# define the database mechanisms available for map & alias lookups: 1556766Seric# -DNDBM -- use new DBM 1655686Seric# -DNEWDB -- use new Berkeley DB 1764250Seric# -DNIS -- include NIS support 1856845Seric# The really old (V7) DBM library is no longer supported. 1964250Seric# See READ_ME for a description of how these flags interact. 2057642Seric# 2156766SericDBMDEF= -DNDBM -DNEWDB 2255686Seric 2363962Seric# environment definitions (e.g., -D_AIX3) 2463962SericENVDEF= 2555686Seric 2655686Seric# see also conf.h for additional compilation flags 2755686Seric 2855686Seric# include directories 2968530SericINCDIRS=-I/usr/sww/include 3055686Seric 3164261Seric# loader options 3264261SericLDOPTS= 3364261Seric 3455686Seric# library directories 3555686SericLIBDIRS=-L/usr/sww/lib 3655686Seric 3755686Seric# libraries required on your system 3868530Seric# delete -lresolv if you are not running BIND 4.9.x 3968530SericLIBS= -ldb -ldbm -lresolv 4055686Seric 4155686Seric# location of sendmail binary (usually /usr/sbin or /usr/lib) 4255686SericBINDIR= ${DESTDIR}/usr/sbin 4355686Seric 4455686Seric# location of sendmail.st file (usually /var/log or /usr/lib) 4555686SericSTDIR= ${DESTDIR}/var/log 4655686Seric 4755686Seric# location of sendmail.hf file (usually /usr/share/misc or /usr/lib) 4855686SericHFDIR= ${DESTDIR}/usr/share/misc 4955686Seric 5063969Seric# additional .o files needed 5163969SericOBJADD= 5263969Seric 5355686Seric################### end of user configuration flags ###################### 5455686Seric 5563962SericCFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF} 5655686Seric 5755686SericOBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \ 5855686Seric deliver.o domain.o envelope.o err.o headers.o macro.o main.o \ 5967546Seric map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \ 6055686Seric savemail.o srvrsmtp.o stab.o stats.o sysexits.o \ 6163969Seric trace.o udb.o usersmtp.o util.o version.o ${OBJADD} 6255686Seric 6355686SericLINKS= ${DESTDIR}/usr/ucb/newaliases ${DESTDIR}/usr/ucb/mailq 6455686SericBINOWN= root 6555686SericBINGRP= kmem 6655686SericBINMODE=6555 6755686Seric 6865984SericALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 6964375Seric 7064375Sericall: ${ALL} 7164375Seric 7264375Sericsendmail: ${BEFORE} ${OBJS} 7364261Seric ${CC} -o sendmail ${LDOPTS} ${OBJS} ${LIBDIRS} ${LIBS} 7455686Seric 7568774Seric#NROFF= nroff -h 7668774SericNROFF= groff -Tascii 7768774SericMANDOC= -mandoc 7866741Seric 7955686Sericaliases.0: aliases.5 8068774Seric ${NROFF} ${MANDOC} aliases.5 > aliases.0 8155686Seric 8265984Sericmailq.0: mailq.1 8368774Seric ${NROFF} ${MANDOC} mailq.1 > mailq.0 8465984Seric 8555686Sericnewaliases.0: newaliases.1 8668774Seric ${NROFF} ${MANDOC} newaliases.1 > newaliases.0 8755686Seric 8855686Sericsendmail.0: sendmail.8 8968774Seric ${NROFF} ${MANDOC} sendmail.8 > sendmail.0 9055686Seric 9165011SericINSTALL=install 9265011Seric 9355686Sericinstall: install-sendmail install-docs 9455686Seric 9555686Sericinstall-sendmail: sendmail 9665011Seric ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR} 9764389Seric for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done 9865185Seric ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 9955686Seric ${STDIR}/sendmail.st 10065011Seric ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR} 10155686Seric 10255686Seric# doesn't actually install them -- you may want to install pre-nroff versions 10366314Sericinstall-docs: aliases.0 mailq.0 newaliases.0 sendmail.0 10455686Seric 10557651Sericclean: 10666314Seric rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 10757651Seric 10855686Seric# dependencies 10955686Seric# gross overkill, and yet still not quite enough.... 11055686Seric${OBJS}: sendmail.h conf.h 111*69943Seric 112*69943Sericdepend: 113