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