summaryrefslogtreecommitdiffstats
path: root/sys/modules/smbfs/Makefile
blob: 476e598edb6e054ae668db2c098e124ddc939f02 (plain)
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
# $FreeBSD$

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

KMOD=	smbfs

SRCS=	vnode_if.h \
	opt_inet.h opt_ipx.h \
	opt_netsmb.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

# NETSMBCRYPTO
SRCS+=	des_ecb.c des_setkey.c
.if ${MACHINE_CPUARCH} == "i386"
SRCS+=	des_enc.S
.else
SRCS+=	des_enc.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

.if !defined(KERNBUILDDIR)
.if ${SMB_INET} > 0
opt_inet.h:
	echo "#define INET 1" > ${.TARGET}
.endif

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

.include <bsd.kmod.mk>
OpenPOWER on IntegriCloud