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