2001-04-13 12:11:19 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
.PATH: ${.CURDIR}/../../crypto/des \
|
2002-03-18 13:06:57 +00:00
|
|
|
${.CURDIR}/../../crypto/des/arch/${MACHINE_ARCH} \
|
2001-04-13 12:11:19 +00:00
|
|
|
${.CURDIR}/../../kern \
|
|
|
|
${.CURDIR}/../../libkern \
|
|
|
|
${.CURDIR}/../../netsmb \
|
|
|
|
${.CURDIR}/../../fs/smbfs
|
|
|
|
|
|
|
|
KMOD= smbfs
|
|
|
|
|
|
|
|
SRCS= vnode_if.h \
|
|
|
|
opt_inet.h opt_ipx.h \
|
2003-11-19 05:08:27 +00:00
|
|
|
opt_netsmb.h opt_vmpage.h \
|
2001-04-13 12:11:19 +00:00
|
|
|
iconv_converter_if.h \
|
|
|
|
md4c.c \
|
|
|
|
smb_conn.c smb_dev.c smb_trantcp.c smb_smb.c smb_subr.c smb_rq.c \
|
|
|
|
smb_usr.c smb_crypt.c smb_iod.c \
|
|
|
|
smbfs_vfsops.c smbfs_node.c smbfs_io.c smbfs_vnops.c \
|
|
|
|
smbfs_subr.c smbfs_smb.c
|
|
|
|
|
2004-10-24 15:33:08 +00:00
|
|
|
NETSMBCRYPTO=
|
2001-04-13 12:11:19 +00:00
|
|
|
|
|
|
|
.if defined(NETSMBCRYPTO)
|
|
|
|
SRCS+= des_ecb.c des_setkey.c
|
2002-03-18 13:06:57 +00:00
|
|
|
.if ${MACHINE_ARCH} == "i386"
|
|
|
|
SRCS+= des_enc.S
|
|
|
|
.else
|
|
|
|
SRCS+= des_enc.c
|
|
|
|
.endif
|
2001-04-13 12:11:19 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
# Build with IPX support (1|0)
|
|
|
|
SMB_IPX?= 0
|
|
|
|
|
|
|
|
# Build with INET support (1|0)
|
|
|
|
SMB_INET?= 1
|
|
|
|
|
|
|
|
CFLAGS+= ${KDEBUG}
|
|
|
|
|
|
|
|
.if defined(VNPRINT)
|
|
|
|
CFLAGS+= -DVNPRINT
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${SMB_INET} > 0
|
2004-09-04 06:37:58 +00:00
|
|
|
opt_inet.h:
|
2001-04-13 12:11:19 +00:00
|
|
|
echo "#define INET 1" > ${.TARGET}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${SMB_IPX} > 0
|
2004-09-04 06:37:58 +00:00
|
|
|
opt_ipx.h:
|
2001-04-13 12:11:19 +00:00
|
|
|
echo "#define IPX 1" > ${.TARGET}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
opt_netsmb.h:
|
|
|
|
echo "#define NETSMB 1" > ${.TARGET}
|
|
|
|
.if defined(NETSMBCRYPTO)
|
|
|
|
echo "#define NETSMBCRYPTO 1" >> ${.TARGET}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.kmod.mk>
|