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.3 2003/08/15 07:26:15 dillon Exp $
4 .PATH: ${.CURDIR}/../../crypto/des \
5 ${.CURDIR}/../../crypto/des/arch/${MACHINE_ARCH} \
6 ${.CURDIR}/../../kern \
7 ${.CURDIR}/../../libkern \
8 ${.CURDIR}/../../netsmb \
9 ${.CURDIR}/../../netproto/smb
12 KMODDEPS= libiconv libmchain
15 opt_inet.h opt_ipx.h \
16 opt_netsmb.h opt_smbfs.h opt_vmpage.h \
17 iconv_converter_if.h \
19 smb_conn.c smb_dev.c smb_trantcp.c smb_smb.c smb_subr.c smb_rq.c \
20 smb_usr.c smb_crypt.c smb_iod.c \
21 smbfs_vfsops.c smbfs_node.c smbfs_io.c smbfs_vnops.c \
22 smbfs_subr.c smbfs_smb.c
26 .if exists(${.CURDIR}/../../crypto/des/des.h)
30 .if defined(NETSMBCRYPTO)
31 SRCS+= des_ecb.c des_setkey.c
32 .if ${MACHINE_ARCH} == "i386"
39 # Build with IPX support (1|0)
42 # Build with INET support (1|0)
54 echo "#define INET 1" > ${.TARGET}
60 echo "#define IPX 1" > ${.TARGET}
64 echo "#define NETSMB 1" > ${.TARGET}
65 .if defined(NETSMBCRYPTO)
66 echo "#define NETSMBCRYPTO 1" >> ${.TARGET}
70 @(if kldunload ${KMOD}; then true; else true; fi)
72 .include <bsd.kmod.mk>