1 1.7 matt # $NetBSD: Makefile,v 1.7 2013/08/01 23:19:39 matt 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.3 christos LDADD+=-lutil 23 1.3 christos DPADD+=${LIBUTIL} 24 1.3 christos 25 1.1 ad .include <bsd.prog.mk> 26