1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-04 12:52:15 +00:00
freebsd/sys/modules/smbfs/Makefile
Sheldon Hearn b1c7da31f2 Use KMODDEPS to document module dependencies on libiconv and
libmchain.

KMODDEPS seems to be a no-op in HEAD, but is required in RELENG_4,
where MODULE_DEPEND seems to be a no-op.

Therefore, this change is harmless in -CURRENT, but will fix the
dependencies when merged to RELENG_4, where they are currently not
registered!

PR:		kern/33625
Submitted by:	Joe Marcus Clarke <marcus@marcuscom.com>
2002-01-09 11:45:58 +00:00

64 lines
1.1 KiB
Makefile

# $FreeBSD$
.PATH: ${.CURDIR}/../../crypto/des \
${.CURDIR}/../../kern \
${.CURDIR}/../../libkern \
${.CURDIR}/../../netsmb \
${.CURDIR}/../../fs/smbfs
KMOD= smbfs
KMODDEPS= libiconv libmchain
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>