266b4a78c2
duplicating the entire implementation for both x86 and powerpc. This makes it easier to add support for other architectures and has no functional impact. Phabric: D613 Reviewed by: gnn, jhibbits, rpaulo Tested by: jhibbits (powerpc) MFC after: 2 weeks
27 lines
623 B
Makefile
27 lines
623 B
Makefile
# $FreeBSD$
|
|
|
|
SYSDIR?= ${.CURDIR}/../../..
|
|
|
|
.PATH: ${SYSDIR}/cddl/dev/fbt
|
|
|
|
KMOD= fbt
|
|
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
|
|
.else
|
|
CFLAGS+= -I${SYSDIR}/cddl/dev/fbt/${MACHINE_CPUARCH}
|
|
.PATH: ${SYSDIR}/cddl/dev/fbt/${MACHINE_CPUARCH}
|
|
.endif
|
|
|
|
CFLAGS+= -I${SYSDIR}/cddl/dev/fbt \
|
|
-I${SYSDIR}/cddl/compat/opensolaris \
|
|
-I${SYSDIR}/cddl/contrib/opensolaris/uts/common \
|
|
-I${SYSDIR}
|
|
|
|
.include <bsd.kmod.mk>
|
|
|
|
CFLAGS+= -include ${SYSDIR}/cddl/compat/opensolaris/sys/debug_compat.h
|