1 2LIB= kvm 3 4PACKAGE= runtime 5SHLIBDIR?= /lib 6SHLIB_MAJOR= 7 7CFLAGS+=-DNO__SCCSID -I${.CURDIR} 8 9SRCS= kvm.c kvm_cptime.c kvm_getloadavg.c \ 10 kvm_getswapinfo.c kvm_pcpu.c kvm_private.c kvm_proc.c kvm_vnet.c \ 11 kvm_minidump_aarch64.c \ 12 kvm_amd64.c kvm_minidump_amd64.c \ 13 kvm_arm.c kvm_minidump_arm.c \ 14 kvm_i386.c kvm_minidump_i386.c \ 15 kvm_powerpc.c kvm_powerpc64.c \ 16 kvm_minidump_riscv.c \ 17 kvm_minidump_powerpc64.c kvm_minidump_powerpc64_hpt.c 18INCS= kvm.h 19 20LIBADD= elf 21 22MAN= kvm.3 kvm_getcptime.3 kvm_geterr.3 kvm_getloadavg.3 \ 23 kvm_getpcpu.3 kvm_getprocs.3 kvm_getswapinfo.3 kvm_kerndisp.3 \ 24 kvm_native.3 kvm_nlist.3 kvm_open.3 kvm_read.3 25 26MLINKS+=kvm_getpcpu.3 kvm_getmaxcpu.3 \ 27 kvm_getpcpu.3 kvm_dpcpu_setcpu.3 \ 28 kvm_getpcpu.3 kvm_read_zpcpu.3 \ 29 kvm_getpcpu.3 kvm_counter_u64_fetch.3 30MLINKS+=kvm_getprocs.3 kvm_getargv.3 kvm_getprocs.3 kvm_getenvv.3 31MLINKS+=kvm_nlist.3 kvm_nlist2.3 32MLINKS+=kvm_open.3 kvm_close.3 kvm_open.3 kvm_open2.3 kvm_open.3 kvm_openfiles.3 33MLINKS+=kvm_read.3 kvm_read2.3 kvm_read.3 kvm_write.3 34 35.include <src.opts.mk> 36 37HAS_TESTS= 38SUBDIR.${MK_TESTS}= tests 39 40.include <bsd.lib.mk> 41