Initial import from FreeBSD RELENG_4:
[dragonfly.git] / bin / rmail / Makefile
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
4 MAINTAINER=     gshapiro@FreeBSD.org
5
6 SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail
7 .PATH:  ${SENDMAIL_DIR}/rmail
8
9 PROG=   rmail
10 SRCS=   rmail.c
11 MAN=    rmail.8
12 CFLAGS+=-I${SENDMAIL_DIR}/include -I.
13
14 .if exists(${.OBJDIR}/../../lib/libsm)
15 LIBSMDIR:=      ${.OBJDIR}/../../lib/libsm
16 .else
17 LIBSMDIR!=      cd ${.CURDIR}/../../lib/libsm; make -V .OBJDIR
18 .endif
19 LIBSM:=         ${LIBSMDIR}/libsm.a
20
21 DPADD=  ${LIBSM}
22 LDADD=  ${LIBSM}
23
24 SRCS+=  sm_os.h
25 CLEANFILES+=sm_os.h
26
27 # User customizations to the sendmail build environment
28 CFLAGS+=${SENDMAIL_CFLAGS}
29 DPADD+=${SENDMAIL_DPADD}
30 LDADD+=${SENDMAIL_LDADD}
31 LDFLAGS+=${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...
38 NOSHARED?= NO
39
40 sm_os.h:
41         ln -sf ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h sm_os.h
42
43 .include <bsd.prog.mk>