summaryrefslogtreecommitdiffstats
path: root/libexec/mail.local/Makefile
diff options
context:
space:
mode:
authorgshapiro <gshapiro@FreeBSD.org>2002-02-17 22:05:07 +0000
committergshapiro <gshapiro@FreeBSD.org>2002-02-17 22:05:07 +0000
commit730b12a9a97574dedbbaf4b030508d12e352a2dd (patch)
tree588b0c80154fe0800ed93be988c1076a84c146b5 /libexec/mail.local/Makefile
parent1e52eaa8307b970ecf1ca3fb19ca0c75f43765bb (diff)
downloadFreeBSD-src-730b12a9a97574dedbbaf4b030508d12e352a2dd.zip
FreeBSD-src-730b12a9a97574dedbbaf4b030508d12e352a2dd.tar.gz
Update build infrastructure for sendmail 8.12.
Diffstat (limited to 'libexec/mail.local/Makefile')
-rw-r--r--libexec/mail.local/Makefile20
1 files changed, 13 insertions, 7 deletions
diff --git a/libexec/mail.local/Makefile b/libexec/mail.local/Makefile
index 4746526..5357d90 100644
--- a/libexec/mail.local/Makefile
+++ b/libexec/mail.local/Makefile
@@ -9,18 +9,21 @@ SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail
PROG= mail.local
SRCS= mail.local.c
MAN= mail.local.8
-CFLAGS+=-I${SENDMAIL_DIR}/include
+CFLAGS+=-I${SENDMAIL_DIR}/include -I.
WFORMAT=0
-.if exists(${.OBJDIR}/../../lib/libsmutil)
-LIBSMUTILDIR:= ${.OBJDIR}/../../lib/libsmutil
+.if exists(${.OBJDIR}/../../lib/libsm)
+LIBSMDIR:= ${.OBJDIR}/../../lib/libsm
.else
-LIBSMUTILDIR!= cd ${.CURDIR}/../../lib/libsmutil; make -V .OBJDIR
+LIBSMDIR!= cd ${.CURDIR}/../../lib/libsm; make -V .OBJDIR
.endif
-LIBSMUTIL:= ${LIBSMUTILDIR}/libsmutil.a
+LIBSM:= ${LIBSMDIR}/libsm.a
-DPADD= ${LIBSMUTIL}
-LDADD= ${LIBSMUTIL}
+DPADD= ${LIBSM}
+LDADD= ${LIBSM}
+
+SRCS+= sm_os.h
+CLEANFILES+=sm_os.h
# User customizations to the sendmail build environment
CFLAGS+=${SENDMAIL_CFLAGS}
@@ -28,4 +31,7 @@ DPADD+=${SENDMAIL_DPADD}
LDADD+=${SENDMAIL_LDADD}
LDFLAGS+=${SENDMAIL_LDFLAGS}
+sm_os.h:
+ ln -sf ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h sm_os.h
+
.include <bsd.prog.mk>
OpenPOWER on IntegriCloud