]> CyberLeo.Net >> Repos - FreeBSD/releng/9.1.git/blob - libexec/mail.local/Makefile
Copy stable/9 to releng/9.1 as part of the 9.1-RELEASE release process.
[FreeBSD/releng/9.1.git] / libexec / mail.local / Makefile
1 #       @(#)Makefile    8.1 (Berkeley) 7/19/93
2 # $FreeBSD$
3
4 SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail
5 .PATH:  ${SENDMAIL_DIR}/mail.local
6
7 PROG=   mail.local
8 SRCS=   mail.local.c
9 MAN=    mail.local.8
10 CFLAGS+=-I${SENDMAIL_DIR}/include -I.
11
12 WARNS?= 2
13 WFORMAT=0
14
15 # Unfortunately, clang gives warnings about sendmail code that cannot
16 # be turned off yet.  Since this is contrib code, and we don't really
17 # care about the warnings, just make them non-fatal for now.
18 NO_WERROR.clang=
19
20 LIBSMDIR=       ${.OBJDIR}/../../lib/libsm
21 LIBSM=          ${LIBSMDIR}/libsm.a
22
23 DPADD=  ${LIBSM}
24 LDADD=  ${LIBSM}
25
26 SRCS+=  sm_os.h
27 CLEANFILES+=sm_os.h
28
29 # User customizations to the sendmail build environment
30 CFLAGS+=${SENDMAIL_CFLAGS}
31 DPADD+=${SENDMAIL_DPADD}
32 LDADD+=${SENDMAIL_LDADD}
33 LDFLAGS+=${SENDMAIL_LDFLAGS}
34
35 sm_os.h:
36         ln -sf ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h sm_os.h
37
38 .include <bsd.prog.mk>