1# @(#)Makefile 8.1 (Berkeley) 6/4/93 2# $FreeBSD$ 3 4LIB= kvm 5SHLIBDIR?= /lib 6CFLAGS+=-DLIBC_SCCS -I${.CURDIR} 7 8.if exists(${.CURDIR}/kvm_${MACHINE_ARCH}.c) 9KVM_ARCH=${MACHINE_ARCH} 10.else 11KVM_ARCH=${MACHINE_CPUARCH} 12.endif 13 14WARNS?= 3 15 16SRCS= kvm.c kvm_${KVM_ARCH}.c kvm_cptime.c kvm_file.c kvm_getloadavg.c \ 17 kvm_getswapinfo.c kvm_pcpu.c kvm_proc.c kvm_vnet.c 18.if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386" || \ 19 ${MACHINE_CPUARCH} == "arm" || ${MACHINE_CPUARCH} == "mips" 20SRCS+= kvm_minidump_${KVM_ARCH}.c 21.endif 22INCS= kvm.h 23 24MAN= kvm.3 kvm_getcptime.3 kvm_geterr.3 kvm_getfiles.3 kvm_getloadavg.3 \ 25 kvm_getpcpu.3 kvm_getprocs.3 kvm_getswapinfo.3 kvm_nlist.3 kvm_open.3 \ 26 kvm_read.3 27 28MLINKS+=kvm_getpcpu.3 kvm_getmaxcpu.3 29MLINKS+=kvm_getpcpu.3 kvm_dpcpu_setcpu.3 30MLINKS+=kvm_getprocs.3 kvm_getargv.3 kvm_getprocs.3 kvm_getenvv.3 31MLINKS+=kvm_open.3 kvm_close.3 kvm_open.3 kvm_openfiles.3 32MLINKS+=kvm_read.3 kvm_write.3 33 34.include <bsd.lib.mk> 35