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