aboutsummaryrefslogtreecommitdiff
path: root/libexec/smrsh/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'libexec/smrsh/Makefile')
-rw-r--r--libexec/smrsh/Makefile17
1 files changed, 15 insertions, 2 deletions
diff --git a/libexec/smrsh/Makefile b/libexec/smrsh/Makefile
index c428f2809229..086368f483f7 100644
--- a/libexec/smrsh/Makefile
+++ b/libexec/smrsh/Makefile
@@ -1,9 +1,22 @@
# @(#)Makefile 8.1 (Berkeley) 7/2/95
+# $FreeBSD$
-.PATH: ${.CURDIR}/../../contrib/sendmail/smrsh
+SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail
+.PATH: ${SENDMAIL_DIR}/smrsh
PROG= smrsh
+SRCS= smrsh.c
MAN8= smrsh.8
-CFLAGS+=-I${.CURDIR}/../../contrib/sendmail/src -DNEWDB
+CFLAGS+=-I${SENDMAIL_DIR}/src -I${SENDMAIL_DIR}/include
+
+.if exists(${.OBJDIR}/../../lib/libsmutil)
+LIBSMUTILDIR:= ${.OBJDIR}/../../lib/libsmutil
+.else
+LIBSMUTILDIR!= cd ${.CURDIR}/../../lib/libsmutil; make -V .OBJDIR
+.endif
+LIBSMUTIL:= ${LIBSMUTILDIR}/libsmutil.a
+
+DPADD+= ${LIBSMUTIL}
+LDADD+= ${LIBSMUTIL}
.include <bsd.prog.mk>