Makefile revision 89125
1# $FreeBSD: head/sys/modules/smbfs/Makefile 89125 2002-01-09 11:45:58Z sheldonh $
2
3.PATH:	${.CURDIR}/../../crypto/des \
4	${.CURDIR}/../../kern \
5	${.CURDIR}/../../libkern \
6	${.CURDIR}/../../netsmb \
7	${.CURDIR}/../../fs/smbfs
8
9KMOD=	smbfs
10KMODDEPS=	libiconv libmchain
11
12SRCS=	vnode_if.h \
13	opt_inet.h opt_ipx.h \
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
24NETSMBCRYPTO=yes
25
26.if defined(NETSMBCRYPTO)
27SRCS+=	des_ecb.c des_setkey.c
28.endif
29
30# Build with IPX support (1|0)
31SMB_IPX?=	0
32
33# Build with INET support (1|0)
34SMB_INET?=	1
35
36CFLAGS+= ${KDEBUG}
37
38.if defined(VNPRINT)
39CFLAGS+= -DVNPRINT
40.endif
41
42opt_inet.h:
43	touch ${.TARGET}
44.if ${SMB_INET} > 0
45	echo "#define INET 1" > ${.TARGET}
46.endif
47
48opt_ipx.h:
49	touch ${.TARGET}
50.if ${SMB_IPX} > 0
51	echo "#define IPX 1" > ${.TARGET}
52.endif
53
54opt_netsmb.h:
55	echo "#define NETSMB	1"  > ${.TARGET}
56.if defined(NETSMBCRYPTO)
57	echo "#define NETSMBCRYPTO 1" >> ${.TARGET}
58.endif
59
60unload:
61	@(if kldunload ${KMOD}; then true; else true; fi)
62
63.include <bsd.kmod.mk>
64