1# @(#)Makefile 8.8 (Berkeley) 3/28/97 2 3SMDIR= ${.CURDIR}/../../contrib/sendmail/src 4.PATH: ${SMDIR} 5 6PROG= sendmail 7 8# Define the database format to use for aliases et al. 9DBMDEF= -DNEWDB 10 11# If you don't want NIS alias/map support, comment out this line 12NIS= -DNIS 13 14# Map extensions 15MAPS= -DMAP_REGEX 16 17# If you want tcp wrapper support, uncomment the following two lines 18#TCPWRAPPERSBASEDIR= /usr/local 19#TCPWRAPPERS= -DTCPWRAPPERS -I${TCPWRAPPERSBASEDIR}/include 20 21CFLAGS+=-I${SMDIR} ${DBMDEF} ${NIS} ${TCPWRAPPERS} ${MAPS} 22 23SRCS= alias.c arpadate.c clock.c collect.c conf.c convtime.c daemon.c \ 24 deliver.c domain.c envelope.c err.c headers.c macro.c main.c \ 25 map.c mci.c mime.c parseaddr.c queue.c readcf.c recipient.c \ 26 safefile.c savemail.c snprintf.c srvrsmtp.c stab.c stats.c \ 27 sysexits.c trace.c udb.c usersmtp.c util.c version.c 28DPADD= ${LIBUTIL} 29LDADD= -lutil 30.if defined(TCPWRAPPERS) 31LDADD+= -L${TCPWRAPPERSBASEDIR}/lib -lwrap 32.endif 33MAN1= mailq.1 newaliases.1 34MAN5= aliases.5 35MAN8= sendmail.8 36LINKS= ${BINDIR}/sendmail /usr/bin/newaliases \ 37 ${BINDIR}/sendmail /usr/bin/mailq \ 38 ${BINDIR}/sendmail /usr/bin/hoststat \ 39 ${BINDIR}/sendmail ${BINDIR}/purgestat 40BINMODE=4555 41 42beforeinstall: 43 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 44 ${DESTDIR}/var/log/sendmail.st 45 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${SMDIR}/sendmail.hf \ 46 ${DESTDIR}/usr/share/misc 47 48.include <bsd.prog.mk> 49