kmod.mk: Remove some dead code supposed to handle modules' manual pages.
[dragonfly.git] / sys / vfs / smbfs / Makefile
CommitLineData
984263bc 1# $FreeBSD: src/sys/modules/smbfs/Makefile,v 1.1.2.4 2002/03/26 10:12:29 ume Exp $
158ce42e 2# $DragonFly: src/sys/vfs/smbfs/Makefile,v 1.7 2008/01/06 16:15:29 nth Exp $
984263bc
MD
3
4.PATH: ${.CURDIR}/../../crypto/des \
5 ${.CURDIR}/../../crypto/des/arch/${MACHINE_ARCH} \
6 ${.CURDIR}/../../kern \
7 ${.CURDIR}/../../libkern \
7d1b9a3b 8 ${.CURDIR}/../../netproto/smb
984263bc
MD
9
10KMOD= smbfs
984263bc 11
2d3e977e 12SRCS= opt_inet.h opt_ipx.h \
984263bc
MD
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
984263bc
MD
21.if exists(${.CURDIR}/../../crypto/des/des.h)
22NETSMBCRYPTO=yes
23.endif
24
25.if defined(NETSMBCRYPTO)
26SRCS+= des_ecb.c des_setkey.c
27.if ${MACHINE_ARCH} == "i386"
28SRCS+= des_enc.S
29.else
30SRCS+= des_enc.c
31.endif
32.endif
33
34# Build with IPX support (1|0)
35SMB_IPX?= 0
36
37# Build with INET support (1|0)
38SMB_INET?= 1
39
40CFLAGS+= ${KDEBUG}
41
42.if defined(VNPRINT)
43CFLAGS+= -DVNPRINT
44.endif
45
46opt_inet.h:
47 touch ${.TARGET}
48.if ${SMB_INET} > 0
49 echo "#define INET 1" > ${.TARGET}
50.endif
51
52opt_ipx.h:
53 touch ${.TARGET}
54.if ${SMB_IPX} > 0
55 echo "#define IPX 1" > ${.TARGET}
56.endif
57
58opt_netsmb.h:
59 echo "#define NETSMB 1" > ${.TARGET}
60.if defined(NETSMBCRYPTO)
61 echo "#define NETSMBCRYPTO 1" >> ${.TARGET}
62.endif
63
64unload:
1b29ad66 65 @-kldunload ${KMOD}
984263bc
MD
66
67.include <bsd.kmod.mk>