Makefile revision 136910
1# $FreeBSD: head/sys/modules/smbfs/Makefile 136910 2004-10-24 15:33:08Z ru $
2
3.PATH:	${.CURDIR}/../../crypto/des \
4	${.CURDIR}/../../crypto/des/arch/${MACHINE_ARCH} \
5	${.CURDIR}/../../kern \
6	${.CURDIR}/../../libkern \
7	${.CURDIR}/../../netsmb \
8	${.CURDIR}/../../fs/smbfs
9
10KMOD=	smbfs
11
12SRCS=	vnode_if.h \
13	opt_inet.h opt_ipx.h \
14	opt_netsmb.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
22NETSMBCRYPTO=
23
24.if defined(NETSMBCRYPTO)
25SRCS+=	des_ecb.c des_setkey.c
26.if ${MACHINE_ARCH} == "i386"
27SRCS+=	des_enc.S
28.else
29SRCS+=	des_enc.c
30.endif
31.endif
32
33# Build with IPX support (1|0)
34SMB_IPX?=	0
35
36# Build with INET support (1|0)
37SMB_INET?=	1
38
39CFLAGS+= ${KDEBUG}
40
41.if defined(VNPRINT)
42CFLAGS+= -DVNPRINT
43.endif
44
45.if ${SMB_INET} > 0
46opt_inet.h:
47	echo "#define INET 1" > ${.TARGET}
48.endif
49
50.if ${SMB_IPX} > 0
51opt_ipx.h:
52	echo "#define IPX 1" > ${.TARGET}
53.endif
54
55opt_netsmb.h:
56	echo "#define NETSMB	1"  > ${.TARGET}
57.if defined(NETSMBCRYPTO)
58	echo "#define NETSMBCRYPTO 1" >> ${.TARGET}
59.endif
60
61.include <bsd.kmod.mk>
62