Home | History | Annotate | Line # | Download | only in cpuctl
      1  1.9   msaitoh #	$NetBSD: Makefile,v 1.9 2020/04/21 02:56:37 msaitoh Exp $
      2  1.7      matt 
      3  1.7      matt .include <bsd.own.mk>
      4  1.2        ad 
      5  1.2        ad .PATH:	${.CURDIR}/arch
      6  1.1        ad 
      7  1.1        ad PROG=	cpuctl
      8  1.1        ad MAN=	cpuctl.8
      9  1.3  christos SRCS=	cpuctl.c
     10  1.2        ad 
     11  1.2        ad .if exists(${.CURDIR}/arch/${MACHINE_ARCH}.c)
     12  1.2        ad SRCS+=	${MACHINE_ARCH}.c
     13  1.6      matt .elif exists(${.CURDIR}/arch/${MACHINE_CPU}.c)
     14  1.6      matt SRCS+=	${MACHINE_CPU}.c
     15  1.6      matt .else
     16  1.6      matt SRCS+=	noarch.c
     17  1.6      matt .endif
     18  1.2        ad .if exists(${.CURDIR}/arch/${MACHINE_ARCH}-asm.S)
     19  1.2        ad SRCS+=	${MACHINE_ARCH}-asm.S
     20  1.2        ad .endif
     21  1.1        ad 
     22  1.9   msaitoh .if ${MACHINE_ARCH} == "x86_64" || ${MACHINE_ARCH} == "i386"
     23  1.9   msaitoh CPPFLAGS+= -I${.CURDIR} -I${.CURDIR}/arch
     24  1.9   msaitoh .PATH.c: ${NETBSDSRCDIR}/sys/arch/x86/x86
     25  1.9   msaitoh SRCS+=	identcpu_subr.c
     26  1.9   msaitoh .endif
     27  1.9   msaitoh 
     28  1.8  christos CPPFLAGS+=	-D_KERNTYPES
     29  1.3  christos LDADD+=-lutil
     30  1.3  christos DPADD+=${LIBUTIL}
     31  1.3  christos 
     32  1.1        ad .include <bsd.prog.mk>
     33