proc->thread stage 4: rework the VFS and DEVICE subsystems to take thread
[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.2 2003/06/17 04:28:46 dillon 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}/../../fs/smbfs
10
11 KMOD=   smbfs
12 KMODDEPS=       libiconv libmchain
13
14 SRCS=   vnode_if.h \
15         opt_inet.h opt_ipx.h \
16         opt_netsmb.h opt_smbfs.h opt_vmpage.h \
17         iconv_converter_if.h \
18         md4c.c \
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
23
24 NOMAN=true
25
26 .if exists(${.CURDIR}/../../crypto/des/des.h)
27 NETSMBCRYPTO=yes
28 .endif
29
30 .if defined(NETSMBCRYPTO)
31 SRCS+=  des_ecb.c des_setkey.c
32 .if ${MACHINE_ARCH} == "i386"
33 SRCS+=  des_enc.S
34 .else
35 SRCS+=  des_enc.c
36 .endif
37 .endif
38
39 # Build with IPX support (1|0)
40 SMB_IPX?=       0
41
42 # Build with INET support (1|0)
43 SMB_INET?=      1
44
45 CFLAGS+= ${KDEBUG}
46
47 .if defined(VNPRINT)
48 CFLAGS+= -DVNPRINT
49 .endif
50
51 opt_inet.h:
52         touch ${.TARGET}
53 .if ${SMB_INET} > 0
54         echo "#define INET 1" > ${.TARGET}
55 .endif
56
57 opt_ipx.h:
58         touch ${.TARGET}
59 .if ${SMB_IPX} > 0
60         echo "#define IPX 1" > ${.TARGET}
61 .endif
62
63 opt_netsmb.h:
64         echo "#define NETSMB    1"  > ${.TARGET}
65 .if defined(NETSMBCRYPTO)
66         echo "#define NETSMBCRYPTO 1" >> ${.TARGET}
67 .endif
68
69 unload:
70         @(if kldunload ${KMOD}; then true; else true; fi)
71
72 .include <bsd.kmod.mk>