freebsd-dev/sys/modules/smbfs/Makefile
Warner Losh c09808d0d6 MFtbemd:
Use MACHINE_CPUARCH in preference to MACHINE_ARCH.  The former is the
source code location of the machine, the latter the binary output.  In
general, we want to use MACHINE_CPUARCH instead of MACHINE_ARCH unless
we're tesitng for a specific target.  The isn't even moot for
i386/amd64 where there's momemntum towards a MACHINE_CPUARCH == x86,
although a specific cleanup for that likely would be needed...
2010-08-23 06:13:29 +00:00

55 lines
995 B
Makefile

# $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>