1.PATH: ${.CURDIR:H} 2 3SRCS= zfs_defs.c 4OBJS= zfs_defs.o 5WARNS?= 1 6 7FORTIFY_SOURCE= 0 8 9# We fake a kernel compilation environment in order to get the definition for 10# 'zpool_t'. 11CFLAGS+= -DIN_BASE -D__KERNEL__ -D_KERNEL -UKLD_TIED -DKLD_MODULE 12CFLAGS+= -DHAVE_ISSETUGID -D_SYS_VMEM_H_ 13 14CFLAGS+= -fno-builtin -nostdlib 15 16CFLAGS+= -I${.CURDIR} 17CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/include 18CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/include/os/freebsd/spl 19CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/include/os/freebsd/zfs 20CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/include/os/freebsd 21CFLAGS+= -I${SRCTOP}/sys/contrib/ck/include 22CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/module/icp/include 23CFLAGS+= -I${SRCTOP}/sys -I. -I.. 24 25CFLAGS+= -include ${SRCTOP}/sys/contrib/openzfs/include/os/freebsd/spl/sys/ccompile.h 26 27all: ${OBJS} 28CLEANFILES= ${OBJS} 29 30.include <bsd.lib.mk> 31