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.5 2005/02/06 06:16:40 okumoto Exp $
5 SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail
6 .PATH: ${SENDMAIL_DIR}/rmail
8 WARNS?= 0 # XXX Not yet.
13 CFLAGS+=-I${SENDMAIL_DIR}/include -I.
15 # Fake __FreeBSD__ so sendmail uses a reasonable feature set. osreldate.h
16 # will generate a __FreeBSD_version for us.
17 CFLAGS+= -D__FreeBSD__
19 .if exists(${.OBJDIR}/../../lib/libsm)
20 LIBSMDIR:= ${.OBJDIR}/../../lib/libsm
22 LIBSMDIR!= cd ${.CURDIR}/../../lib/libsm; make -V .OBJDIR
24 LIBSM:= ${LIBSMDIR}/libsm.a
32 # User customizations to the sendmail build environment
33 CFLAGS+=${SENDMAIL_CFLAGS}
34 DPADD+=${SENDMAIL_DPADD}
35 LDADD+=${SENDMAIL_LDADD}
36 LDFLAGS+=${SENDMAIL_LDFLAGS}
38 # If you want to have your rmail queuing the mail only, uncomment the
40 # CFLAGS+= -DQUEUE_ONLY
42 # Not much point this being static. It calls a shared sendmail...
46 ln -sf ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h sm_os.h
48 .include <bsd.prog.mk>