Merge from vendor branch TCPDUMP:
[dragonfly.git] / libexec / mail.local / Makefile
CommitLineData
984263bc
MD
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 $
e8b8add7 3# $DragonFly: src/libexec/mail.local/Makefile,v 1.9 2007/04/14 17:43:48 gshapiro Exp $
984263bc 4
e8b8add7 5SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail-8.14
984263bc
MD
6.PATH: ${SENDMAIL_DIR}/mail.local
7
8PROG= mail.local
9SRCS= mail.local.c
10MAN= mail.local.8
11CFLAGS+=-I${SENDMAIL_DIR}/include -I.
12
13.if exists(${.OBJDIR}/../../lib/libsm)
14LIBSMDIR:= ${.OBJDIR}/../../lib/libsm
15.else
16LIBSMDIR!= cd ${.CURDIR}/../../lib/libsm; make -V .OBJDIR
17.endif
18LIBSM:= ${LIBSMDIR}/libsm.a
19
20DPADD= ${LIBSM}
21LDADD= ${LIBSM}
22
23SRCS+= sm_os.h
24CLEANFILES+=sm_os.h
25
26# User customizations to the sendmail build environment
27CFLAGS+=${SENDMAIL_CFLAGS}
28DPADD+=${SENDMAIL_DPADD}
29LDADD+=${SENDMAIL_LDADD}
30LDFLAGS+=${SENDMAIL_LDFLAGS}
31
32sm_os.h:
3181538d 33 ${LN} -sf ${SENDMAIL_DIR}/include/sm/os/sm_os_dragonfly.h sm_os.h
984263bc
MD
34
35.include <bsd.prog.mk>