2008-05-17 02:31:19 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2014-03-06 01:59:13 +00:00
|
|
|
SYSDIR?= ${.CURDIR}/../../..
|
|
|
|
|
|
|
|
.PATH: ${SYSDIR}/cddl/dev/fbt
|
2008-05-17 02:31:19 +00:00
|
|
|
|
|
|
|
KMOD= fbt
|
2014-08-16 21:42:55 +00:00
|
|
|
SRCS= fbt.c fbt_isa.c
|
|
|
|
SRCS+= vnode_if.h
|
|
|
|
|
|
|
|
.if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386"
|
|
|
|
CFLAGS+= -I${SYSDIR}/cddl/dev/fbt/x86
|
|
|
|
.PATH: ${SYSDIR}/cddl/dev/fbt/x86
|
2013-03-18 05:30:18 +00:00
|
|
|
.else
|
2014-08-16 21:42:55 +00:00
|
|
|
CFLAGS+= -I${SYSDIR}/cddl/dev/fbt/${MACHINE_CPUARCH}
|
|
|
|
.PATH: ${SYSDIR}/cddl/dev/fbt/${MACHINE_CPUARCH}
|
2013-03-18 05:30:18 +00:00
|
|
|
.endif
|
2008-05-17 02:31:19 +00:00
|
|
|
|
2014-08-16 21:42:55 +00:00
|
|
|
CFLAGS+= -I${SYSDIR}/cddl/dev/fbt \
|
|
|
|
-I${SYSDIR}/cddl/compat/opensolaris \
|
2014-03-06 01:59:13 +00:00
|
|
|
-I${SYSDIR}/cddl/contrib/opensolaris/uts/common \
|
|
|
|
-I${SYSDIR}
|
2008-05-17 02:31:19 +00:00
|
|
|
|
|
|
|
.include <bsd.kmod.mk>
|
2013-08-06 15:51:56 +00:00
|
|
|
|
2014-03-06 01:59:13 +00:00
|
|
|
CFLAGS+= -include ${SYSDIR}/cddl/compat/opensolaris/sys/debug_compat.h
|