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