Home | History | Annotate | Line # | Download | only in lockstat
Makefile revision 1.7
      1  1.7  christos #	$NetBSD: Makefile,v 1.7 2016/01/25 13:31:48 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.7  christos .elif !empry(MACHINE_ARCH:Mearm*)
     19  1.7  christos ARMV:= 5
     20  1.4  christos .else
     21  1.4  christos ARMV:= 0
     22  1.4  christos .endif
     23  1.4  christos 
     24  1.4  christos .if ${ARMV} > 4
     25  1.2       riz CPPFLAGS+=	-D__HAVE_CPU_COUNTER
     26  1.2       riz .endif
     27  1.1  christos 
     28  1.1  christos .include <bsd.kmodule.mk>
     29