]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - usr.sbin/sendmail/Makefile
sysctl(9): Fix a few mandoc related issues
[FreeBSD/FreeBSD.git] / usr.sbin / sendmail / Makefile
1 #       @(#)Makefile    8.8 (Berkeley) 3/28/97
2 # $FreeBSD$
3
4 .include <src.opts.mk>
5
6 PACKAGE=sendmail
7 SENDMAIL_DIR=${SRCTOP}/contrib/sendmail
8 SMDIR=  ${SENDMAIL_DIR}/src
9 .PATH: ${SMDIR}
10
11 BINDIR= ${LIBEXECDIR}/sendmail
12
13 PROG=   sendmail
14 MAN=    mailq.1 newaliases.1 aliases.5 sendmail.8
15 MLINKS+=sendmail.8 hoststat.8
16 MLINKS+=sendmail.8 purgestat.8
17 SRCS=   alias.c arpadate.c bf.c collect.c conf.c control.c \
18         convtime.c daemon.c deliver.c domain.c envelope.c err.c headers.c \
19         macro.c main.c map.c mci.c milter.c mime.c parseaddr.c queue.c \
20         ratectrl.c readcf.c recipient.c savemail.c sasl.c sfsasl.c \
21         shmticklib.c sm_resolve.c srvrsmtp.c stab.c stats.c sysexits.c \
22         timers.c tlsh.c tls.c trace.c udb.c usersmtp.c util.c version.c
23 BINOWN= root
24 BINGRP= smmsp
25 .ifdef SENDMAIL_SET_USER_ID
26 BINMODE=4555
27 .else
28 BINMODE=2555
29 .endif
30
31 # Define the database format to use for aliases et al.
32 DBMDEF= -DNEWDB
33 # If you don't want NIS alias/map support, comment out this line
34 .if ${MK_NIS} != "no"
35 NIS=    -DNIS
36 .endif
37 # Map extensions
38 MAPS=   -DMAP_REGEX -DDNSMAP
39
40 CFLAGS+= -I${SMDIR} -I${SENDMAIL_DIR}/include -I.
41 CFLAGS+= ${DBMDEF} ${NIS} ${MAPS}
42
43 .if ${MK_INET6_SUPPORT} != "no"
44 CFLAGS+= -DNETINET6
45 .endif
46
47 WARNS?= 0
48
49 LIBADD= util sm smutil
50
51 SRCS+=  sm_os.h
52 CLEANFILES+=sm_os.h
53
54 .if ${MK_OPENSSL} != "no"
55 # STARTTLS support
56 CFLAGS+=        -DSTARTTLS -DTLS_EC
57 LIBADD+=        ssl crypto
58 .endif
59
60 .if ${MK_TCP_WRAPPERS} != "no"
61 CFLAGS+=        -DTCPWRAPPERS
62 LIBADD+=        wrap
63 .endif
64
65 # User customizations to the sendmail build environment
66 CFLAGS+=${SENDMAIL_CFLAGS}
67 DPADD+=${SENDMAIL_DPADD}
68 LDADD+=${SENDMAIL_LDADD}
69 LDFLAGS+=${SENDMAIL_LDFLAGS}
70
71 sm_os.h: ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h .NOMETA
72         ln -sf ${.ALLSRC} ${.TARGET}
73
74 .include <bsd.prog.mk>