xref: /dragonfly/sys/vfs/hammer2/Makefile (revision 5ca0a96d)
1# Makefile for hammer2 vfs
2#
3#
4# NOTE! hammer2 is intended to be as self-contained and self-compatible as
5#	possible in terms of core compression support, so we prefix that
6#	code to avoid conflicts with the kernel proper.
7#
8.PATH: ${.CURDIR} ${.CURDIR}/zlib ${.CURDIR}/xxhash
9
10# NOTE: We have to define Z_PREFIX and XXH_NAMESPACE in xxhash.h and
11#	hammer2_zlib_zconf.h directly in order to allow hammer2 to be
12#	specified in conf/files.
13#
14KCFLAGS+= -DINVARIANTS
15#KCFLAGS+= -DZ_PREFIX -DXXH_NAMESPACE=h2_
16KMOD=	hammer2
17SRCS=	hammer2_vfsops.c hammer2_vnops.c hammer2_xops.c hammer2_inode.c
18SRCS+=	hammer2_strategy.c hammer2_ondisk.c
19SRCS+=	hammer2_chain.c hammer2_flush.c hammer2_freemap.c hammer2_cluster.c
20SRCS+=	hammer2_ioctl.c hammer2_msgops.c hammer2_subr.c hammer2_bulkfree.c
21SRCS+=  hammer2_lz4.c hammer2_io.c hammer2_iocom.c hammer2_admin.c
22SRCS+=	hammer2_synchro.c
23SRCS+=  hammer2_zlib_adler32.c hammer2_zlib_deflate.c
24SRCS+=  hammer2_zlib_inffast.c hammer2_zlib_inflate.c
25SRCS+=  hammer2_zlib_inftrees.c hammer2_zlib_trees.c
26SRCS+=  hammer2_zlib_zutil.c
27SRCS+=	xxhash.c
28
29.include <bsd.kmod.mk>
30