Makefile revision 1.8
1# $NetBSD: Makefile,v 1.8 2016/01/25 15:37:21 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.elif !empty(MACHINE_ARCH:Mearm*) 19ARMV:= 5 20.else 21ARMV:= 0 22.endif 23 24.if ${ARMV} > 4 25CPPFLAGS+= -D__HAVE_CPU_COUNTER 26.endif 27 28.include <bsd.kmodule.mk> 29