1# $FreeBSD: src/sys/modules/smbfs/Makefile,v 1.1.2.4 2002/03/26 10:12:29 ume Exp $ 2# $DragonFly: src/sys/vfs/smbfs/Makefile,v 1.7 2008/01/06 16:15:29 nth Exp $ 3 4.PATH: ${.CURDIR}/../../crypto/des \ 5 ${.CURDIR}/../../crypto/des/arch/${MACHINE_ARCH} \ 6 ${.CURDIR}/../../kern \ 7 ${.CURDIR}/../../libkern \ 8 ${.CURDIR}/../../netproto/smb 9 10KMOD= smbfs 11 12SRCS= 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 21.if exists(${.CURDIR}/../../crypto/des/des.h) 22NETSMBCRYPTO=yes 23.endif 24 25.if defined(NETSMBCRYPTO) 26SRCS+= des_ecb.c des_setkey.c 27.if ${MACHINE_ARCH} == "i386" 28SRCS+= des_enc.S 29.else 30SRCS+= des_enc.c 31.endif 32.endif 33 34# Build with IPX support (1|0) 35SMB_IPX?= 0 36 37# Build with INET support (1|0) 38SMB_INET?= 1 39 40CFLAGS+= ${KDEBUG} 41 42.if defined(VNPRINT) 43CFLAGS+= -DVNPRINT 44.endif 45 46opt_inet.h: 47 touch ${.TARGET} 48.if ${SMB_INET} > 0 49 echo "#define INET 1" > ${.TARGET} 50.endif 51 52opt_ipx.h: 53 touch ${.TARGET} 54.if ${SMB_IPX} > 0 55 echo "#define IPX 1" > ${.TARGET} 56.endif 57 58opt_netsmb.h: 59 echo "#define NETSMB 1" > ${.TARGET} 60.if defined(NETSMBCRYPTO) 61 echo "#define NETSMBCRYPTO 1" >> ${.TARGET} 62.endif 63 64unload: 65 @-kldunload ${KMOD} 66 67.include <bsd.kmod.mk> 68