xref: /original-bsd/usr.sbin/sendmail/src/Makefile (revision 9cc8b07d)
1#	@(#)Makefile	5.27 (Berkeley) 07/21/92
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), -DNDBM for the 4.3BSD
7# database package, or -DDBM for the old putrescent V7 package.  You can
8# define both NEWDB and one of the other two during a transition period; old
9# databases are read, but the new format will be used on any rebuilds.  On
10# really gnarly systems, you can set this to null; it will crawl like a high
11# spiral snail, but it will work.
12DBMDEF=	-DNEWDB
13
14CFLAGS+=-I${.CURDIR} ${DBMDEF}
15
16SRCS=	alias.c arpadate.c clock.c collect.c conf.c convtime.c daemon.c \
17	deliver.c domain.c envelope.c err.c headers.c macro.c main.c mci.c \
18	parseaddr.c queue.c readcf.c recipient.c savemail.c srvrsmtp.c \
19	stab.c stats.c sysexits.c trace.c udb.c usersmtp.c \
20	util.c version.c
21DPADD=	${LIBDBM} ${LIBCOMPAT} ${LIBUTIL}
22LDADD=	-ldbm -lcompat -lutil -lkvm
23MAN1=	newaliases.0
24MAN5=	aliases.0
25MAN8=	sendmail.0
26LINKS=	${DESTDIR}/usr/sbin/sendmail ${DESTDIR}/usr/bin/newaliases \
27	${DESTDIR}/usr/sbin/sendmail ${DESTDIR}/usr/bin/mailq
28BINDIR=	/usr/sbin
29BINOWN=	root
30BINGRP=	kmem
31BINMODE=6555
32
33beforeinstall:
34#	install -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
35#	    ${DESTDIR}/etc/sendmail.fc
36	install -c -o ${BINOWN} -g ${BINGRP} -m 666 /dev/null \
37	    ${DESTDIR}/var/log/sendmail.st
38	install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/sendmail.hf \
39	    ${DESTDIR}/usr/share/misc
40
41.include <bsd.prog.mk>
42