Makefile revision 1.9
1# $NetBSD: Makefile,v 1.9 2016/01/25 21:56:27 christos Exp $ 2 3.include "../../Makefile.inc" 4 5.PATH: ${NETBSDSRCDIR}/external/cddl/osnet/dev/lockstat 6 7KMOD= dtrace_lockstat 8SRCS= lockstat.c 9 10CPPFLAGS+= -I${NETBSDSRCDIR}/external/cddl/osnet/sys 11CPPFLAGS+= -I${NETBSDSRCDIR}/external/cddl/osnet/dist/uts/common 12CPPFLAGS+= -DKDTRACE_HOOKS 13 14.if !empty(MACHINE_ARCH:Mearmv*) 15ARMV:= ${MACHINE_ARCH:S/earmv//:S/eb//:S/hf//} 16.elif !empty(MACHINE_ARCH:Marmv*) 17ARMV:= ${MACHINE_ARCH:S/armv//:S/eb//:S/hf//} 18.else 19ARMV:= 0 20.endif 21 22.if ${ARMV} > 4 23CPPFLAGS+= -D__HAVE_CPU_COUNTER 24.endif 25 26.include <bsd.kmodule.mk> 27