2012-10-13 23:54:26 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2017-03-04 10:10:17 +00:00
|
|
|
.PATH: ${SRCTOP}/sys/fs/fuse
|
2012-10-13 23:54:26 +00:00
|
|
|
|
2019-03-20 21:48:43 +00:00
|
|
|
KMOD= fusefs
|
2012-10-13 23:54:26 +00:00
|
|
|
SRCS= vnode_if.h \
|
|
|
|
fuse_node.c fuse_io.c fuse_device.c fuse_ipc.c fuse_file.c \
|
|
|
|
fuse_vfsops.c fuse_vnops.c fuse_internal.c fuse_main.c
|
|
|
|
|
2019-03-20 21:48:43 +00:00
|
|
|
# Symlink for backwards compatibility with systems installed at 12.0 or older
|
2019-04-26 20:15:47 +00:00
|
|
|
.if ${MACHINE_CPUARCH} != "powerpc"
|
2019-04-20 12:51:05 +00:00
|
|
|
SYMLINKS= ${KMOD}.ko ${KMODDIR}/fuse.ko
|
2019-04-26 20:15:47 +00:00
|
|
|
.else
|
|
|
|
# Some PPC systems use msdosfs for /boot, which can't handle links or symlinks
|
|
|
|
afterinstall: alias alias_debug
|
|
|
|
alias: .PHONY
|
|
|
|
${INSTALL} -T release -o ${KMODOWN} -g ${KMODGRP} -m ${KMODMODE} \
|
|
|
|
${_INSTALLFLAGS} ${PROG} ${DESTDIR}${KMODDIR}/fuse.ko
|
|
|
|
.if defined(DEBUG_FLAGS) && !defined(INSTALL_NODEBUG) && "${MK_KERNEL_SYMBOLS}" != "no"
|
|
|
|
alias_debug: .PHONY
|
|
|
|
${INSTALL} -T debug -o ${KMODOWN} -g ${KMODGRP} -m ${KMODMODE} \
|
|
|
|
${_INSTALLFLAGS} ${PROG}.debug \
|
|
|
|
${DESTDIR}${KERN_DEBUGDIR}${KMODDIR}/fuse.ko
|
|
|
|
.else
|
|
|
|
alias_debug: .PHONY
|
|
|
|
.endif
|
|
|
|
.endif
|
2019-03-20 21:48:43 +00:00
|
|
|
|
2012-10-13 23:54:26 +00:00
|
|
|
.include <bsd.kmod.mk>
|