2020-04-21 05:56:36 +03:00
|
|
|
# $NetBSD: Makefile,v 1.9 2020/04/21 02:56:37 msaitoh Exp $
|
2013-08-02 03:19:39 +04:00
|
|
|
|
|
|
|
.include <bsd.own.mk>
|
2008-05-05 21:54:14 +04:00
|
|
|
|
|
|
|
.PATH: ${.CURDIR}/arch
|
2007-08-04 15:02:56 +04:00
|
|
|
|
|
|
|
PROG= cpuctl
|
|
|
|
MAN= cpuctl.8
|
2008-12-17 01:44:50 +03:00
|
|
|
SRCS= cpuctl.c
|
2008-05-05 21:54:14 +04:00
|
|
|
|
|
|
|
.if exists(${.CURDIR}/arch/${MACHINE_ARCH}.c)
|
|
|
|
SRCS+= ${MACHINE_ARCH}.c
|
2013-02-01 03:40:48 +04:00
|
|
|
.elif exists(${.CURDIR}/arch/${MACHINE_CPU}.c)
|
|
|
|
SRCS+= ${MACHINE_CPU}.c
|
2008-05-05 21:54:14 +04:00
|
|
|
.else
|
|
|
|
SRCS+= noarch.c
|
|
|
|
.endif
|
2013-02-01 03:40:48 +04:00
|
|
|
.if exists(${.CURDIR}/arch/${MACHINE_ARCH}-asm.S)
|
|
|
|
SRCS+= ${MACHINE_ARCH}-asm.S
|
|
|
|
.endif
|
2007-08-04 15:02:56 +04:00
|
|
|
|
2020-04-21 05:56:36 +03:00
|
|
|
.if ${MACHINE_ARCH} == "x86_64" || ${MACHINE_ARCH} == "i386"
|
|
|
|
CPPFLAGS+= -I${.CURDIR} -I${.CURDIR}/arch
|
|
|
|
.PATH.c: ${NETBSDSRCDIR}/sys/arch/x86/x86
|
|
|
|
SRCS+= identcpu_subr.c
|
|
|
|
.endif
|
|
|
|
|
2016-01-24 00:22:45 +03:00
|
|
|
CPPFLAGS+= -D_KERNTYPES
|
2008-12-17 01:44:50 +03:00
|
|
|
LDADD+=-lutil
|
|
|
|
DPADD+=${LIBUTIL}
|
|
|
|
|
2007-08-04 15:02:56 +04:00
|
|
|
.include <bsd.prog.mk>
|