binutils214 stage 2/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 # $DragonFly: src/bin/rmail/Makefile,v 1.3 2004/01/31 06:56:36 dillon Exp $
4
5 SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail
6 .PATH:  ${SENDMAIL_DIR}/rmail
7
8 PROG=   rmail
9 SRCS=   rmail.c
10 MAN=    rmail.8
11 CFLAGS+=-I${SENDMAIL_DIR}/include -I.
12
13 .if exists(${.OBJDIR}/../../lib/libsm)
14 LIBSMDIR:=      ${.OBJDIR}/../../lib/libsm
15 .else
16 LIBSMDIR!=      cd ${.CURDIR}/../../lib/libsm; make -V .OBJDIR
17 .endif
18 LIBSM:=         ${LIBSMDIR}/libsm.a
19
20 DPADD=  ${LIBSM}
21 LDADD=  ${LIBSM}
22
23 SRCS+=  sm_os.h
24 CLEANFILES+=sm_os.h
25
26 # User customizations to the sendmail build environment
27 CFLAGS+=${SENDMAIL_CFLAGS}
28 DPADD+=${SENDMAIL_DPADD}
29 LDADD+=${SENDMAIL_LDADD}
30 LDFLAGS+=${SENDMAIL_LDFLAGS}
31
32 # If you want to have your rmail queuing the mail only, uncomment the
33 # following:
34 # CFLAGS+= -DQUEUE_ONLY
35
36 # Not much point this being static. It calls a shared sendmail...
37 NOSHARED?= NO
38
39 sm_os.h:
40         ln -sf ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h sm_os.h
41
42 .include <bsd.prog.mk>