1# $FreeBSD$ 2 3.PATH: ${.CURDIR}/../../crypto/des \ 4 ${.CURDIR}/../../kern \ 5 ${.CURDIR}/../../libkern \ 6 ${.CURDIR}/../../netsmb \ 7 ${.CURDIR}/../../fs/smbfs 8 9KMOD= smbfs 10 11SRCS= vnode_if.h \ 12 opt_inet.h opt_ipx.h \ 13 opt_netsmb.h opt_smbfs.h opt_vmpage.h \ 14 iconv_converter_if.h \ 15 md4c.c \ 16 smb_conn.c smb_dev.c smb_trantcp.c smb_smb.c smb_subr.c smb_rq.c \ 17 smb_usr.c smb_crypt.c smb_iod.c \ 18 smbfs_vfsops.c smbfs_node.c smbfs_io.c smbfs_vnops.c \ 19 smbfs_subr.c smbfs_smb.c 20 21NOMAN=true 22 23NETSMBCRYPTO=yes 24 25.if defined(NETSMBCRYPTO) 26SRCS+= des_ecb.c des_setkey.c 27.endif 28 29# Build with IPX support (1|0) 30SMB_IPX?= 0 31 32# Build with INET support (1|0) 33SMB_INET?= 1 34 35CFLAGS+= ${KDEBUG} 36 37.if defined(VNPRINT) 38CFLAGS+= -DVNPRINT 39.endif 40 41opt_inet.h: 42 touch ${.TARGET} 43.if ${SMB_INET} > 0 44 echo "#define INET 1" > ${.TARGET} 45.endif 46 47opt_ipx.h: 48 touch ${.TARGET} 49.if ${SMB_IPX} > 0 50 echo "#define IPX 1" > ${.TARGET} 51.endif 52 53opt_netsmb.h: 54 echo "#define NETSMB 1" > ${.TARGET} 55.if defined(NETSMBCRYPTO) 56 echo "#define NETSMBCRYPTO 1" >> ${.TARGET} 57.endif 58 59unload: 60 @(if kldunload ${KMOD}; then true; else true; fi) 61 62.include <bsd.kmod.mk> 63