* Sync comment with code's reality.
[dragonfly.git] / libexec / mail.local / Makefile
1 #       @(#)Makefile    8.1 (Berkeley) 7/19/93
2 # $FreeBSD: src/libexec/mail.local/Makefile,v 1.10.2.7 2002/03/25 21:31:38 gshapiro Exp $
3 # $DragonFly: src/libexec/mail.local/Makefile,v 1.2 2003/06/17 04:27:07 dillon Exp $
4
5 MAINTAINER=     gshapiro@FreeBSD.org
6
7 SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail
8 .PATH:  ${SENDMAIL_DIR}/mail.local
9
10 PROG=   mail.local
11 SRCS=   mail.local.c
12 MAN=    mail.local.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 sm_os.h:
35         ln -sf ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h sm_os.h
36
37 .include <bsd.prog.mk>