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