2013-08-02 03:19:39 +04:00
|
|
|
# $NetBSD: Makefile,v 1.7 2013/08/01 23:19:39 matt Exp $
|
|
|
|
|
|
|
|
.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
|
|
|
|
2008-12-17 01:44:50 +03:00
|
|
|
LDADD+=-lutil
|
|
|
|
DPADD+=${LIBUTIL}
|
|
|
|
|
2007-08-04 15:02:56 +04:00
|
|
|
.include <bsd.prog.mk>
|