NetBSD/usr.sbin/cpuctl/Makefile
2016-01-23 21:22:45 +00:00

27 lines
490 B
Makefile

# $NetBSD: Makefile,v 1.8 2016/01/23 21:22:50 christos Exp $
.include <bsd.own.mk>
.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
CPPFLAGS+= -D_KERNTYPES
LDADD+=-lutil
DPADD+=${LIBUTIL}
.include <bsd.prog.mk>