1 # @(#)Makefile 8.8 (Berkeley) 3/28/97
2 # $FreeBSD: src/usr.sbin/sendmail/Makefile,v 1.15.2.13 2002/03/25 21:32:29 gshapiro Exp $
3 # $DragonFly: src/usr.sbin/sendmail/Makefile,v 1.19 2008/03/04 19:23:05 dillon Exp $
5 SENDMAIL_DIR
=${.CURDIR
}/..
/..
/contrib
/sendmail-8.14
6 SMDIR
= ${SENDMAIL_DIR}/sendmail
10 PATCHES
= mci.c.patch main.c.patch srvrsmtp.c.patch
12 BINDIR
= /usr
/libexec
/sendmail
15 MAN
= mailq
.1 newaliases
.1 aliases
.5 sendmail
.8
16 MLINKS
+=sendmail
.8 hoststat
.8
17 MLINKS
+=sendmail
.8 purgestat
.8
18 SRCS
= alias.c arpadate.c bf.c collect.c conf.c control.c \
19 convtime.c daemon.c deliver.c domain.c envelope.c err.c headers.c \
20 macro.c main.c map.c mci.c milter.c mime.c parseaddr.c queue.c \
21 ratectrl.c readcf.c recipient.c savemail.c sasl.c sfsasl.c \
22 shmticklib.c sm_resolve.c srvrsmtp.c stab.c stats.c sysexits.c \
23 timers.c tls.c trace.c udb.c usersmtp.c util.c version.c
${PATCHES}
26 .
ifdef SENDMAIL_SET_USER_ID
32 # Define the database format to use for aliases et al.
34 # If you don't want NIS alias/map support, comment out this line
37 MAPS
= -DMAP_REGEX
-DDNSMAP
39 CFLAGS
+= -I
${SMDIR} -I
${SENDMAIL_DIR}/include -I.
40 CFLAGS
+= ${DBMDEF} ${NIS} -DMILTER
-DNETINET6
-DTCPWRAPPERS
${MAPS}
42 DPADD
= ${LIBUTIL} ${LIBWRAP}
45 .if exists
(${.OBJDIR
}/..
/..
/lib
/libsm
)
46 LIBSMDIR
:= ${.OBJDIR
}/..
/..
/lib
/libsm
48 LIBSMDIR
!= cd
${.CURDIR
}/..
/..
/lib
/libsm
; make
-V .OBJDIR
50 LIBSM
:= ${LIBSMDIR}/libsm.a
52 .if exists
(${.OBJDIR
}/..
/..
/lib
/libsmutil
)
53 LIBSMUTILDIR
:= ${.OBJDIR
}/..
/..
/lib
/libsmutil
55 LIBSMUTILDIR
!= cd
${.CURDIR
}/..
/..
/lib
/libsmutil
; make
-V .OBJDIR
57 LIBSMUTIL
:= ${LIBSMUTILDIR}/libsmutil.a
59 DPADD
+= ${LIBSMUTIL} ${LIBSM}
60 LDADD
+= ${LIBSMUTIL} ${LIBSM}
65 .if exists
(${.CURDIR
}/..
/..
/secure
) && !defined
(NO_CRYPT
) && \
66 !defined
(NO_OPENSSL
) && !defined
(RELEASE_CRUNCH
)
69 CFLAGS
+= -DSTARTTLS
-D_FFR_TLS_1
70 LDADD
+= -lssl
-lcrypto
71 DPADD
+= ${LIBSSL} ${LIBCRYPTO}
74 # User customizations to the sendmail build environment
75 CFLAGS
+=${SENDMAIL_CFLAGS}
76 DPADD
+=${SENDMAIL_DPADD}
77 LDADD
+=${SENDMAIL_LDADD}
78 LDFLAGS
+=${SENDMAIL_LDFLAGS}
81 ${LN} -sf
${SENDMAIL_DIR}/include/sm
/os
/sm_os_dragonfly.h sm_os.h
83 .
include <bsd.prog.mk
>