Per-CPU VFS Namecache Effectiveness Statistics:
[dragonfly.git] / sys / vfs / smbfs / Makefile
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.4 2004/03/16 07:45:59 hmp Exp $
3
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
10
11 KMOD=   smbfs
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>