166271Seric# 266271Seric# This Makefile is designed to work on the old "make" program. It does 366271Seric# not use the obj subdirectory. It also does not install documentation 466271Seric# automatically -- think of it as a quick start for sites that have the 566271Seric# old make program (I recommend that you get and port the new make if you 666271Seric# are going to be doing any signficant work on sendmail). 766271Seric# 866271Seric# Based on a Makefile for Dell SVR4 Issue 2.2 from Kimmo Suominen 966271Seric# <kim@grendel.lut.fi> -- I haven't tested this myself. It may 1066271Seric# work on other SVR4 ports. 1166271Seric# 12*69943Seric# @(#)Makefile.SVR4 8.6 (Berkeley) 06/20/95 1366271Seric# 1466271Seric 1566271Seric# make sure the shell constructs below use the right shell 1666271SericSHELL= /bin/sh 1766271Seric 1866271Seric# use O=-O (usual) or O=-g (debugging) 1966271SericO= -O 2066271Seric 2166271SericCC= gcc 2266271Seric#DESTDIR=/usr/local/sendmail 2366271Seric 2466271Seric# define the database mechanism used for alias lookups: 2566271Seric# -DNDBM -- use new DBM 2666271Seric# -DNEWDB -- use new Berkeley DB 2766271Seric# -DNIS -- include NIS support 2866271Seric# The really old (V7) DBM library is no longer supported. 2966271Seric# See READ_ME for a description of how these flags interact. 3066271Seric# 3166271SericDBMDEF= -DNEWDB -DNDBM 3266271Seric 3366271Seric# environment definitions (e.g., -D_AIX3) 3466271SericENVDEF= -D__svr4__ 3566271Seric 3666271Seric# see also conf.h for additional compilation flags 3766271Seric 3866271Seric# include directories 3966271SericINCDIRS= 4066271Seric 4166271Seric# library directories 4266271SericLIBDIRS= 4366271Seric 4466271Seric# libraries required on your system 4566271SericLIBS= -ldb -ldbm -lresolv -lsocket -lnsl -lelf 4666271Seric 4766271Seric# location of sendmail binary (usually /usr/sbin or /usr/lib) 4866271SericBINDIR= ${DESTDIR}/usr/ucblib 4966271Seric 5066271Seric# location of sendmail.st file (usually /var/log or /usr/lib) 5166271SericSTDIR= ${DESTDIR}/usr/ucblib 5266271Seric 5366271Seric# location of sendmail.hf file (usually /usr/share/misc or /usr/lib) 5466271SericHFDIR= ${DESTDIR}/usr/ucblib 5566271Seric 5666271Seric# additional .o files needed 5766271SericOBJADD= 5866271Seric 5966271Seric################### end of user configuration flags ###################### 6066271Seric 6166271SericCFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF} 6266271Seric 6366271SericOBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \ 6466271Seric deliver.o domain.o envelope.o err.o headers.o macro.o main.o \ 6567546Seric map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \ 6666271Seric savemail.o srvrsmtp.o stab.o stats.o sysexits.o \ 6766271Seric trace.o udb.o usersmtp.o util.o version.o ${OBJADD} 6866271Seric 6966271SericLINKS= ${DESTDIR}/usr/ucb/newaliases ${DESTDIR}/usr/ucb/mailq 7066271SericBINOWN= root 7166271SericBINGRP= mail 7266271SericBINMODE=6555 7366271SericINSTALL=/usr/ucb/install 7466271Seric 7566271SericALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 7666271Seric 7766271Sericall: ${ALL} 7866271Seric 7966271Sericsendmail: ${BEFORE} ${OBJS} 8066271Seric ${CC} -o sendmail ${OBJS} ${LIBDIRS} ${LIBS} 8166271Seric 8268774Seric#NROFF= nroff -h 8368774SericNROFF= groff -Tascii 8468774SericMANDOC= -mandoc 8566741Seric 8666271Sericaliases.0: aliases.5 8768774Seric ${NROFF} ${MANDOC} aliases.5 > aliases.0 8866271Seric 8966271Sericmailq.0: mailq.1 9068774Seric ${NROFF} ${MANDOC} mailq.1 > mailq.0 9166271Seric 9266271Sericnewaliases.0: newaliases.1 9368774Seric ${NROFF} ${MANDOC} newaliases.1 > newaliases.0 9466271Seric 9566271Sericsendmail.0: sendmail.8 9668774Seric ${NROFF} ${MANDOC} sendmail.8 > sendmail.0 9766271Seric 9866271Sericinstall: install-sendmail install-docs 9966271Seric 10066271Sericinstall-sendmail: sendmail 10166271Seric ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR} 10266271Seric for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done 10366271Seric ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 10466271Seric ${STDIR}/sendmail.st 10566271Seric ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR} 10666271Seric 10766271Seric# doesn't actually install them -- you may want to install pre-nroff versions 10866314Sericinstall-docs: aliases.0 mailq.0 newaliases.0 sendmail.0 10966271Seric 11066271Sericclean: 11166314Seric rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 11266271Seric 11366271Seric# dependencies 11466271Seric# gross overkill, and yet still not quite enough.... 11566271Seric${OBJS}: sendmail.h conf.h 116*69943Seric 117*69943Sericdepend: 118