50dd852b28
relative to .CURDIR if not already defined. This makes the makefiles more readable but also more re-usable and adaptable. Obtained from: Juniper Networks, Inc.
29 lines
786 B
Makefile
29 lines
786 B
Makefile
# $FreeBSD$
|
|
|
|
SYSDIR?= ${.CURDIR}/../../..
|
|
|
|
.PATH: ${SYSDIR}/cddl/contrib/opensolaris/uts/common/dtrace
|
|
|
|
KMOD= fasttrap
|
|
SRCS= fasttrap.c fasttrap_isa.c opt_compat.h
|
|
SRCS+= vnode_if.h
|
|
|
|
CFLAGS+= -I${SYSDIR}/cddl/compat/opensolaris \
|
|
-I${SYSDIR}/cddl/contrib/opensolaris/uts/common \
|
|
-I${SYSDIR}
|
|
|
|
.if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386"
|
|
CFLAGS+= -I${SYSDIR}/cddl/contrib/opensolaris/uts/intel
|
|
.PATH: ${SYSDIR}/cddl/contrib/opensolaris/uts/intel/dtrace
|
|
.elif ${MACHINE_CPUARCH} == "powerpc"
|
|
CFLAGS+= -I${SYSDIR}/cddl/contrib/opensolaris/uts/powerpc
|
|
.PATH: ${SYSDIR}/cddl/contrib/opensolaris/uts/powerpc/dtrace
|
|
.endif
|
|
|
|
CFLAGS+= -DSMP
|
|
|
|
.include <bsd.kmod.mk>
|
|
|
|
CFLAGS+= -include ${SYSDIR}/cddl/compat/opensolaris/sys/debug_compat.h
|
|
CWARNFLAGS+= -Wno-unused
|