xref: /freebsd/sys/modules/dtrace/fbt/Makefile (revision e9ac41698b2f322d55ccf9da50a3596edb2c1800)
1SYSDIR?=	${SRCTOP}/sys
2
3.PATH:		${SYSDIR}/cddl/dev/fbt
4
5KMOD=		fbt
6SRCS=		fbt.c fbt_isa.c
7SRCS+=		vnode_if.h
8
9
10.if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386"
11CFLAGS+=	-I${SYSDIR}/cddl/dev/fbt/x86
12.PATH:		${SYSDIR}/cddl/dev/fbt/x86
13.else
14CFLAGS+=	-I${SYSDIR}/cddl/dev/fbt/${MACHINE_CPUARCH}
15.PATH:		${SYSDIR}/cddl/dev/fbt/${MACHINE_CPUARCH}
16.endif
17
18CFLAGS+= 	${OPENZFS_CFLAGS}
19CFLAGS+=  -I${SYSDIR}/cddl/dev/fbt
20
21.include <bsd.kmod.mk>
22
23CFLAGS+=	-include ${SYSDIR}/cddl/compat/opensolaris/sys/debug_compat.h
24