aboutsummaryrefslogtreecommitdiff
path: root/sys/modules/smbfs/Makefile
blob: 800a634747e8f0436a2b4c01c308818940a9c607 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# $FreeBSD$

.PATH:	${.CURDIR}/../../crypto/des \
	${.CURDIR}/../../kern \
	${.CURDIR}/../../libkern \
	${.CURDIR}/../../netsmb \
	${.CURDIR}/../../fs/smbfs

KMOD=	smbfs

SRCS=	vnode_if.h \
	opt_inet.h opt_ipx.h \
	opt_netsmb.h opt_smbfs.h opt_vmpage.h \
	iconv_converter_if.h \
	md4c.c \
	smb_conn.c smb_dev.c smb_trantcp.c smb_smb.c smb_subr.c smb_rq.c \
	smb_usr.c smb_crypt.c smb_iod.c \
	smbfs_vfsops.c smbfs_node.c smbfs_io.c smbfs_vnops.c \
	smbfs_subr.c smbfs_smb.c

NOMAN=true

NETSMBCRYPTO=yes

.if defined(NETSMBCRYPTO)
SRCS+=	des_ecb.c des_setkey.c
.endif

# Build with IPX support (1|0)
SMB_IPX?=	0

# Build with INET support (1|0)
SMB_INET?=	1

CFLAGS+= ${KDEBUG}

.if defined(VNPRINT)
CFLAGS+= -DVNPRINT
.endif

opt_inet.h:
	touch ${.TARGET}
.if ${SMB_INET} > 0
	echo "#define INET 1" > ${.TARGET}
.endif

opt_ipx.h:
	touch ${.TARGET}
.if ${SMB_IPX} > 0
	echo "#define IPX 1" > ${.TARGET}
.endif

opt_netsmb.h:
	echo "#define NETSMB	1"  > ${.TARGET}
.if defined(NETSMBCRYPTO)
	echo "#define NETSMBCRYPTO 1" >> ${.TARGET}
.endif

unload:
	@(if kldunload ${KMOD}; then true; else true; fi)

.include <bsd.kmod.mk>