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