# $NetBSD: Makefile,v 1.8.8.1 2020/08/05 15:48:53 martin Exp $ .include .PATH: ${.CURDIR}/arch PROG= cpuctl MAN= cpuctl.8 SRCS= cpuctl.c .if exists(${.CURDIR}/arch/${MACHINE_ARCH}.c) SRCS+= ${MACHINE_ARCH}.c .elif exists(${.CURDIR}/arch/${MACHINE_CPU}.c) SRCS+= ${MACHINE_CPU}.c .else SRCS+= noarch.c .endif .if exists(${.CURDIR}/arch/${MACHINE_ARCH}-asm.S) SRCS+= ${MACHINE_ARCH}-asm.S .endif .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 CPPFLAGS+= -D_KERNTYPES LDADD+=-lutil DPADD+=${LIBUTIL} .include