Home | History | Annotate | Line # | Download | only in cpuctl
Makefile revision 1.8.8.1
      1  1.8.8.1    martin #	$NetBSD: Makefile,v 1.8.8.1 2020/08/05 15:48:53 martin 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.8.8.1    martin .if ${MACHINE_ARCH} == "x86_64" || ${MACHINE_ARCH} == "i386"
     23  1.8.8.1    martin CPPFLAGS+= -I${.CURDIR} -I${.CURDIR}/arch
     24  1.8.8.1    martin .PATH.c: ${NETBSDSRCDIR}/sys/arch/x86/x86
     25  1.8.8.1    martin SRCS+=	identcpu_subr.c
     26  1.8.8.1    martin .endif
     27  1.8.8.1    martin 
     28      1.8  christos CPPFLAGS+=	-D_KERNTYPES
     29      1.3  christos LDADD+=-lutil
     30      1.3  christos DPADD+=${LIBUTIL}
     31      1.3  christos 
     32      1.1        ad .include <bsd.prog.mk>
     33