NetBSD/usr.sbin/cpuctl/Makefile

27 lines
490 B
Makefile
Raw Normal View History

# $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
2013-02-01 03:40:48 +04:00
.elif exists(${.CURDIR}/arch/${MACHINE_CPU}.c)
SRCS+= ${MACHINE_CPU}.c
.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
CPPFLAGS+= -D_KERNTYPES
LDADD+=-lutil
DPADD+=${LIBUTIL}
.include <bsd.prog.mk>