summaryrefslogtreecommitdiffstats
path: root/lib/libsmb/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libsmb/Makefile')
-rw-r--r--lib/libsmb/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/libsmb/Makefile b/lib/libsmb/Makefile
index 3a9a64d..e464a8f 100644
--- a/lib/libsmb/Makefile
+++ b/lib/libsmb/Makefile
@@ -1,5 +1,7 @@
# $FreeBSD$
+.include <bsd.own.mk>
+
CONTRIBDIR= ${.CURDIR}/../../contrib/smbfs
.PATH: ${CONTRIBDIR}/lib/smb
@@ -16,4 +18,8 @@ SRCS= rcfile.c ctx.c cfopt.c subr.c nls.c rap.c mbuf.c rq.c file.c \
WARNS?= 1
CFLAGS+= -DSMB_CFG_FILE=\"/etc/nsmb.conf\" -I${CONTRIBDIR}/include
+.if ${MK_ICONV} != "no"
+CFLAGS+= -DHAVE_ICONV=1
+.endif
+
.include <bsd.lib.mk>
OpenPOWER on IntegriCloud