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