Makefile revision 1.6
1# $NetBSD: Makefile,v 1.6 2016/01/25 12:44:52 martin 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 ${MACHINE_ARCH} == "earm" 15ARMV:= 5 16.elif !empty(MACHINE_ARCH:Mearm*) 17ARMV:= ${MACHINE_ARCH:S/earmv//:S/eb//:S/hf//} 18.elif !empty(MACHINE_ARCH:Marm*) 19ARMV:= ${MACHINE_ARCH:S/armv//:S/eb//:S/hf//} 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