Makefile revision 267233
1#	@(#)Makefile	8.1 (Berkeley) 5/31/93
2# $FreeBSD: head/bin/rmail/Makefile 267233 2014-06-08 17:29:31Z bdrewery $
3
4SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail
5.PATH:	${SENDMAIL_DIR}/rmail
6
7# Not much point this being static. It calls a shared sendmail...
8NO_SHARED?= NO
9
10PROG=	rmail
11SRCS=	rmail.c
12MAN=	rmail.8
13
14WARNS?=	2
15CFLAGS+=-I${SENDMAIL_DIR}/include -I.
16
17NO_PIE=	yes
18
19LIBSMDIR=	${.OBJDIR}/../../lib/libsm
20LIBSM=		${LIBSMDIR}/libsm.a
21
22DPADD=	${LIBSM}
23LDADD=	${LIBSM}
24
25SRCS+=	sm_os.h
26CLEANFILES+=sm_os.h
27
28# User customizations to the sendmail build environment
29CFLAGS+=${SENDMAIL_CFLAGS}
30DPADD+=${SENDMAIL_DPADD}
31LDADD+=${SENDMAIL_LDADD}
32LDFLAGS+=${SENDMAIL_LDFLAGS}
33
34# If you want to have your rmail queuing the mail only, uncomment the
35# following:
36# CFLAGS+= -DQUEUE_ONLY
37
38sm_os.h:
39	ln -sf ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h sm_os.h
40
41.include <bsd.prog.mk>
42