11.9Smsaitoh# $NetBSD: Makefile,v 1.9 2020/04/21 02:56:37 msaitoh Exp $ 21.7Smatt 31.7Smatt.include <bsd.own.mk> 41.2Sad 51.2Sad.PATH: ${.CURDIR}/arch 61.1Sad 71.1SadPROG= cpuctl 81.1SadMAN= cpuctl.8 91.3SchristosSRCS= cpuctl.c 101.2Sad 111.2Sad.if exists(${.CURDIR}/arch/${MACHINE_ARCH}.c) 121.2SadSRCS+= ${MACHINE_ARCH}.c 131.6Smatt.elif exists(${.CURDIR}/arch/${MACHINE_CPU}.c) 141.6SmattSRCS+= ${MACHINE_CPU}.c 151.6Smatt.else 161.6SmattSRCS+= noarch.c 171.6Smatt.endif 181.2Sad.if exists(${.CURDIR}/arch/${MACHINE_ARCH}-asm.S) 191.2SadSRCS+= ${MACHINE_ARCH}-asm.S 201.2Sad.endif 211.1Sad 221.9Smsaitoh.if ${MACHINE_ARCH} == "x86_64" || ${MACHINE_ARCH} == "i386" 231.9SmsaitohCPPFLAGS+= -I${.CURDIR} -I${.CURDIR}/arch 241.9Smsaitoh.PATH.c: ${NETBSDSRCDIR}/sys/arch/x86/x86 251.9SmsaitohSRCS+= identcpu_subr.c 261.9Smsaitoh.endif 271.9Smsaitoh 281.8SchristosCPPFLAGS+= -D_KERNTYPES 291.3SchristosLDADD+=-lutil 301.3SchristosDPADD+=${LIBUTIL} 311.3Schristos 321.1Sad.include <bsd.prog.mk> 33