166266Seric#
266266Seric#  This Makefile is designed to work on the old "make" program.  It does
366266Seric#  not use the obj subdirectory.  It also does not install documentation
466266Seric#  automatically -- think of it as a quick start for sites that have the
566266Seric#  old make program (I recommend that you get and port the new make if you
666266Seric#  are going to be doing any signficant work on sendmail).
766266Seric#
866266Seric#	Based on a Makefile for Dell SVR4 Issue 2.2 from Kimmo Suominen
966266Seric#	<kim@grendel.lut.fi> -- I haven't tested this myself.  It may
1066266Seric#	work on other SVR4 ports.
1166266Seric#
12*69943Seric#	@(#)Makefile.Dell	8.6 (Berkeley) 06/20/95
1366266Seric#
1466266Seric
1566266Seric# make sure the shell constructs below use the right shell
1666266SericSHELL=	/bin/sh
1766266Seric
1866266Seric# use O=-O (usual) or O=-g (debugging)
1966266SericO=	-O2
2066266Seric
2166266SericCC=	gcc
2266266Seric#DESTDIR=/usr/local/sendmail
2366266Seric
2466266Seric# define the database mechanism used for alias lookups:
2566266Seric#	-DNDBM -- use new DBM
2666266Seric#	-DNEWDB -- use new Berkeley DB
2766266Seric#	-DNIS -- include NIS support
2866266Seric# The really old (V7) DBM library is no longer supported.
2966266Seric# See READ_ME for a description of how these flags interact.
3066266Seric#
3166266SericDBMDEF=	-DNEWDB -DNDBM
3266266Seric
3366266Seric# environment definitions (e.g., -D_AIX3)
3466266SericENVDEF=	-D__svr4__
3566266Seric
3666266Seric# see also conf.h for additional compilation flags
3766266Seric
3866266Seric# include directories
3966266SericINCDIRS=
4066266Seric
4166266Seric# library directories
4266266SericLIBDIRS=
4366266Seric
4466266Seric# libraries required on your system
4566266SericLIBS=	-ldb -ldbm -lresolv -lsocket -lnsl -lelf
4666266Seric
4766266Seric# location of sendmail binary (usually /usr/sbin or /usr/lib)
4866266SericBINDIR=	${DESTDIR}/usr/ucblib
4966266Seric
5066266Seric# location of sendmail.st file (usually /var/log or /usr/lib)
5166266SericSTDIR=	${DESTDIR}/usr/ucblib
5266266Seric
5366266Seric# location of sendmail.hf file (usually /usr/share/misc or /usr/lib)
5466266SericHFDIR=	${DESTDIR}/usr/ucblib
5566266Seric
5666266Seric# additional .o files needed
5766266SericOBJADD=
5866266Seric
5966266Seric###################  end of user configuration flags  ######################
6066266Seric
6166266SericCFLAGS=	-I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF}
6266266Seric
6366266SericOBJS=	alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \
6466266Seric	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 \
6666266Seric	savemail.o srvrsmtp.o stab.o stats.o sysexits.o \
6766266Seric	trace.o udb.o usersmtp.o util.o version.o ${OBJADD}
6866266Seric
6966266SericLINKS=	${DESTDIR}/usr/ucb/newaliases ${DESTDIR}/usr/ucb/mailq
7066266SericBINOWN=	root
7166266SericBINGRP=	mail
7266266SericBINMODE=6555
7366266SericINSTALL=/usr/ucb/install
7466266Seric
7566266SericALL=	sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
7666266Seric
7766266Sericall: ${ALL}
7866266Seric
7966266Sericsendmail: ${BEFORE} ${OBJS}
8066266Seric	${CC} -o sendmail ${OBJS} ${LIBDIRS} ${LIBS}
8166266Seric
8268774Seric#NROFF=	nroff -h
8368774SericNROFF=	groff -Tascii
8468774SericMANDOC=	-mandoc
8566741Seric
8666266Sericaliases.0: aliases.5
8768774Seric	${NROFF} ${MANDOC} aliases.5 > aliases.0
8866266Seric
8966266Sericmailq.0: mailq.1
9068774Seric	${NROFF} ${MANDOC} mailq.1 > mailq.0
9166266Seric
9266266Sericnewaliases.0: newaliases.1
9368774Seric	${NROFF} ${MANDOC} newaliases.1 > newaliases.0
9466266Seric
9566266Sericsendmail.0: sendmail.8
9668774Seric	${NROFF} ${MANDOC} sendmail.8 > sendmail.0
9766266Seric
9866266Sericinstall: install-sendmail install-docs
9966266Seric
10066266Sericinstall-sendmail: sendmail
10166266Seric	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR}
10266266Seric	for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done
10366266Seric	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
10466266Seric	    ${STDIR}/sendmail.st
10566266Seric	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR}
10666266Seric
10766266Seric# doesn't actually install them -- you may want to install pre-nroff versions
10866314Sericinstall-docs: aliases.0 mailq.0 newaliases.0 sendmail.0
10966266Seric
11066266Sericclean:
11166314Seric	rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
11266266Seric
11366266Seric# dependencies
11466266Seric#   gross overkill, and yet still not quite enough....
11566266Seric${OBJS}: sendmail.h conf.h
116*69943Seric
117*69943Sericdepend:
118