HAMMER: fsync blocking fixes
[dragonfly.git] / bin / rmail / Makefile
blobd739b5e2bd2e2998d3d589056e4372aca5e50206
1 # @(#)Makefile 8.1 (Berkeley) 5/31/93
2 # $FreeBSD: src/bin/rmail/Makefile,v 1.8.2.6 2002/03/25 21:31:30 gshapiro Exp $
3 # $DragonFly: src/bin/rmail/Makefile,v 1.10 2007/04/14 17:43:48 gshapiro Exp $
5 SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail-8.14
6 .PATH: ${SENDMAIL_DIR}/rmail
8 WARNS?= 0 # XXX Not yet.
10 PROG= rmail
11 SRCS= rmail.c
12 MAN= rmail.8
13 CFLAGS+=-I${SENDMAIL_DIR}/include -I.
15 .if exists(${.OBJDIR}/../../lib/libsm)
16 LIBSMDIR:= ${.OBJDIR}/../../lib/libsm
17 .else
18 LIBSMDIR!= cd ${.CURDIR}/../../lib/libsm; make -V .OBJDIR
19 .endif
20 LIBSM:= ${LIBSMDIR}/libsm.a
22 DPADD= ${LIBSM}
23 LDADD= ${LIBSM}
25 SRCS+= sm_os.h
26 CLEANFILES+=sm_os.h
28 # User customizations to the sendmail build environment
29 CFLAGS+=${SENDMAIL_CFLAGS}
30 DPADD+=${SENDMAIL_DPADD}
31 LDADD+=${SENDMAIL_LDADD}
32 LDFLAGS+=${SENDMAIL_LDFLAGS}
34 # If you want to have your rmail queuing the mail only, uncomment the
35 # following:
36 # CFLAGS+= -DQUEUE_ONLY
38 # Not much point this being static. It calls a shared sendmail...
39 NOSHARED?= NO
41 sm_os.h:
42 ${LN} -sf ${SENDMAIL_DIR}/include/sm/os/sm_os_dragonfly.h sm_os.h
44 .include <bsd.prog.mk>