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 21NOMAN=true 22 23.if exists(${.CURDIR}/../../crypto/des/des.h) 24NETSMBCRYPTO=yes 25.endif 26 27.if defined(NETSMBCRYPTO) 28SRCS+= des_ecb.c des_setkey.c 29.if ${MACHINE_ARCH} == "i386" 30SRCS+= des_enc.S 31.else 32SRCS+= des_enc.c 33.endif 34.endif 35 36# Build with IPX support (1|0) 37SMB_IPX?= 0 38 39# Build with INET support (1|0) 40SMB_INET?= 1 41 42CFLAGS+= ${KDEBUG} 43 44.if defined(VNPRINT) 45CFLAGS+= -DVNPRINT 46.endif 47 48opt_inet.h: 49 touch ${.TARGET} 50.if ${SMB_INET} > 0 51 echo "#define INET 1" > ${.TARGET} 52.endif 53 54opt_ipx.h: 55 touch ${.TARGET} 56.if ${SMB_IPX} > 0 57 echo "#define IPX 1" > ${.TARGET} 58.endif 59 60opt_netsmb.h: 61 echo "#define NETSMB 1" > ${.TARGET} 62.if defined(NETSMBCRYPTO) 63 echo "#define NETSMBCRYPTO 1" >> ${.TARGET} 64.endif 65 66unload: 67 @-kldunload ${KMOD} 68 69.include <bsd.kmod.mk> 70