amd64 port: mainly on the pmap headers, identify_cpu and initcpu
[dragonfly/port-amd64.git] / libexec / mail.local / Makefile
blobaa395081450e0f6ad117040bf86a9a34d1432a4c
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.9 2007/04/14 17:43:48 gshapiro Exp $
5 SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail-8.14
6 .PATH: ${SENDMAIL_DIR}/mail.local
8 PROG= mail.local
9 SRCS= mail.local.c
10 MAN= mail.local.8
11 CFLAGS+=-I${SENDMAIL_DIR}/include -I.
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
20 DPADD= ${LIBSM}
21 LDADD= ${LIBSM}
23 SRCS+= sm_os.h
24 CLEANFILES+=sm_os.h
26 # User customizations to the sendmail build environment
27 CFLAGS+=${SENDMAIL_CFLAGS}
28 DPADD+=${SENDMAIL_DPADD}
29 LDADD+=${SENDMAIL_LDADD}
30 LDFLAGS+=${SENDMAIL_LDFLAGS}
32 sm_os.h:
33 ${LN} -sf ${SENDMAIL_DIR}/include/sm/os/sm_os_dragonfly.h sm_os.h
35 .include <bsd.prog.mk>