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