1# $FreeBSD: src/sys/modules/smbfs/Makefile,v 1.1.2.4 2002/03/26 10:12:29 ume Exp $ 2 3.PATH: ${.CURDIR}/../../crypto/des \ 4 ${.CURDIR}/../../kern \ 5 ${.CURDIR}/../../libkern \ 6 ${.CURDIR}/../../netproto/smb 7 8KMOD= smbfs 9 10SRCS= opt_inet.h \ 11 opt_netsmb.h \ 12 iconv_converter_if.h \ 13 md4c.c \ 14 smb_conn.c smb_dev.c smb_trantcp.c smb_smb.c smb_subr.c smb_rq.c \ 15 smb_usr.c smb_crypt.c smb_iod.c \ 16 smbfs_vfsops.c smbfs_node.c smbfs_io.c smbfs_vnops.c \ 17 smbfs_subr.c smbfs_smb.c 18 19.if exists(${.CURDIR}/../../crypto/des/des.h) 20NETSMBCRYPTO=yes 21.endif 22 23.if defined(NETSMBCRYPTO) 24SRCS+= des_ecb.c des_enc.c des_setkey.c 25.endif 26 27# Build with INET support (1|0) 28SMB_INET?= 1 29 30.if !defined(BUILDING_WITH_KERNEL) 31opt_inet.h: 32 touch ${.TARGET} 33.if ${SMB_INET} > 0 34 echo "#define INET 1" > ${.TARGET} 35.endif 36 37opt_netsmb.h: 38 echo "#define NETSMB 1" > ${.TARGET} 39.if defined(NETSMBCRYPTO) 40 echo "#define NETSMBCRYPTO 1" >> ${.TARGET} 41.endif 42.endif 43 44.include <bsd.kmod.mk> 45