1#	@(#)Makefile.Utah	8.2 (Berkeley) 07/23/94
2
3PROG=	sendmail
4
5# define the database format to use for aliases et al.  Can be -DNEWDB (for
6# the new BSD database package -- this is preferred) or -DNDBM for the NDBM
7# database package.  The old putrescent V7 DBM package is no longer
8# supported.
9# You can define both NEWDB and NDBM during a transition period; old
10# databases are read, but the new format will be used on any rebuilds.  On
11# really gnarly systems, you can set this to null; it will crawl like a high
12# spiral snail, but it will work.
13DBMDEF=	-DNEWDB -DNDBM -DOLD_NEWDB
14
15CFLAGS+=-I${.CURDIR} ${DBMDEF} -Dsetpgid=setpgrp
16
17SRCS=	alias.c arpadate.c clock.c collect.c conf.c convtime.c daemon.c \
18	deliver.c domain.c envelope.c err.c headers.c macro.c main.c map.c \
19	mci.c mci.c parseaddr.c queue.c readcf.c recipient.c savemail.c \
20	srvrsmtp.c stab.c stats.c sysexits.c trace.c udb.c usersmtp.c \
21	util.c version.c
22DPADD=	${LIBDBM} ${LIBCOMPAT}
23LDADD=
24MAN1=	mailq.0 newaliases.0
25MAN5=	aliases.0
26MAN8=	sendmail.0
27LINKS=	${DESTDIR}/usr/sbin/sendmail ${DESTDIR}/usr/bin/newaliases \
28	${DESTDIR}/usr/sbin/sendmail ${DESTDIR}/usr/bin/mailq
29BINDIR=	/usr/sbin
30BINOWN=	root
31BINGRP=	kmem
32BINMODE=6555
33
34beforeinstall:
35	install -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
36	    ${DESTDIR}/var/log/sendmail.st
37	install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/sendmail.hf \
38	    ${DESTDIR}/usr/share/misc
39
40.include <bsd.prog.mk>
41