VFS messaging/interfacing work stage 1/99. This stage replaces the old
[dragonfly.git] / sys / vfs / smbfs / Makefile
CommitLineData
984263bc 1# $FreeBSD: src/sys/modules/smbfs/Makefile,v 1.1.2.4 2002/03/26 10:12:29 ume Exp $
2d3e977e 2# $DragonFly: src/sys/vfs/smbfs/Makefile,v 1.5 2004/08/13 17:51:13 dillon Exp $
984263bc
MD
3
4.PATH: ${.CURDIR}/../../crypto/des \
5 ${.CURDIR}/../../crypto/des/arch/${MACHINE_ARCH} \
6 ${.CURDIR}/../../kern \
7 ${.CURDIR}/../../libkern \
8 ${.CURDIR}/../../netsmb \
7d1b9a3b 9 ${.CURDIR}/../../netproto/smb
984263bc
MD
10
11KMOD= smbfs
984263bc 12
2d3e977e 13SRCS= opt_inet.h opt_ipx.h \
984263bc
MD
14 opt_netsmb.h opt_smbfs.h opt_vmpage.h \
15 iconv_converter_if.h \
16 md4c.c \
17 smb_conn.c smb_dev.c smb_trantcp.c smb_smb.c smb_subr.c smb_rq.c \
18 smb_usr.c smb_crypt.c smb_iod.c \
19 smbfs_vfsops.c smbfs_node.c smbfs_io.c smbfs_vnops.c \
20 smbfs_subr.c smbfs_smb.c
21
22NOMAN=true
23
24.if exists(${.CURDIR}/../../crypto/des/des.h)
25NETSMBCRYPTO=yes
26.endif
27
28.if defined(NETSMBCRYPTO)
29SRCS+= des_ecb.c des_setkey.c
30.if ${MACHINE_ARCH} == "i386"
31SRCS+= des_enc.S
32.else
33SRCS+= des_enc.c
34.endif
35.endif
36
37# Build with IPX support (1|0)
38SMB_IPX?= 0
39
40# Build with INET support (1|0)
41SMB_INET?= 1
42
43CFLAGS+= ${KDEBUG}
44
45.if defined(VNPRINT)
46CFLAGS+= -DVNPRINT
47.endif
48
49opt_inet.h:
50 touch ${.TARGET}
51.if ${SMB_INET} > 0
52 echo "#define INET 1" > ${.TARGET}
53.endif
54
55opt_ipx.h:
56 touch ${.TARGET}
57.if ${SMB_IPX} > 0
58 echo "#define IPX 1" > ${.TARGET}
59.endif
60
61opt_netsmb.h:
62 echo "#define NETSMB 1" > ${.TARGET}
63.if defined(NETSMBCRYPTO)
64 echo "#define NETSMBCRYPTO 1" >> ${.TARGET}
65.endif
66
67unload:
68 @(if kldunload ${KMOD}; then true; else true; fi)
69
70.include <bsd.kmod.mk>