Merge from vendor branch OPENSSL:
[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 # $DragonFly: src/bin/rmail/Makefile,v 1.7 2005/07/25 00:24:31 gshapiro Exp $
4
5 SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail-8.13.4
6 .PATH:  ${SENDMAIL_DIR}/rmail
7
8 WARNS?= 0       # XXX Not yet.
9
10 PROG=   rmail
11 SRCS=   rmail.c
12 MAN=    rmail.8
13 CFLAGS+=-I${SENDMAIL_DIR}/include -I.
14
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
21
22 DPADD=  ${LIBSM}
23 LDADD=  ${LIBSM}
24
25 SRCS+=  sm_os.h
26 CLEANFILES+=sm_os.h
27
28 # User customizations to the sendmail build environment
29 CFLAGS+=${SENDMAIL_CFLAGS}
30 DPADD+=${SENDMAIL_DPADD}
31 LDADD+=${SENDMAIL_LDADD}
32 LDFLAGS+=${SENDMAIL_LDFLAGS}
33
34 # If you want to have your rmail queuing the mail only, uncomment the
35 # following:
36 # CFLAGS+= -DQUEUE_ONLY
37
38 # Not much point this being static. It calls a shared sendmail...
39 NOSHARED?= NO
40
41 sm_os.h:
42         ${LN} -sf ${SENDMAIL_DIR}/include/sm/os/sm_os_dragonfly.h sm_os.h
43
44 .include <bsd.prog.mk>