c09808d0d6
Use MACHINE_CPUARCH in preference to MACHINE_ARCH. The former is the source code location of the machine, the latter the binary output. In general, we want to use MACHINE_CPUARCH instead of MACHINE_ARCH unless we're tesitng for a specific target. The isn't even moot for i386/amd64 where there's momemntum towards a MACHINE_CPUARCH == x86, although a specific cleanup for that likely would be needed...
20 lines
445 B
Makefile
20 lines
445 B
Makefile
# $FreeBSD$
|
|
|
|
.PATH: ${.CURDIR}/../../../cddl/dev/fasttrap
|
|
|
|
KMOD= fasttrap
|
|
SRCS= fasttrap.c
|
|
SRCS+= vnode_if.h
|
|
|
|
CFLAGS+= -I${.CURDIR}/../../../cddl/compat/opensolaris \
|
|
-I${.CURDIR}/../../../cddl/contrib/opensolaris/uts/common \
|
|
-I${.CURDIR}/../../..
|
|
|
|
.if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386"
|
|
CFLAGS+= -I${.CURDIR}/../../../cddl/contrib/opensolaris/uts/intel
|
|
.endif
|
|
|
|
CFLAGS+= -DSMP -DDEBUG
|
|
|
|
.include <bsd.kmod.mk>
|