1994-05-27 05:00:24 +00:00
|
|
|
# @(#)Makefile 8.1 (Berkeley) 6/4/93
|
1999-10-04 14:56:04 +00:00
|
|
|
# $FreeBSD$
|
1994-05-27 05:00:24 +00:00
|
|
|
|
2014-01-13 19:01:14 +00:00
|
|
|
.if defined(TARGET_ARCH) && !defined(COMPAT_32BIT)
|
|
|
|
KVM_XARCH=${TARGET_ARCH}
|
2014-03-23 12:49:25 +00:00
|
|
|
KVM_XCPUARCH=${KVM_XARCH:C/mips(n32|64)?(el)?/mips/:C/arm(v6)?(eb|hf)?/arm/:C/powerpc64/powerpc/}
|
2014-01-13 19:01:14 +00:00
|
|
|
.else
|
|
|
|
KVM_XARCH=${MACHINE_ARCH}
|
|
|
|
KVM_XCPUARCH=${MACHINE_CPUARCH}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${KVM_XARCH} != ${MACHINE_ARCH}
|
|
|
|
LIB= kvm-${KVM_XARCH}
|
|
|
|
CFLAGS+=-DCROSS_LIBKVM
|
|
|
|
.else
|
1994-05-27 05:00:24 +00:00
|
|
|
LIB= kvm
|
2014-01-13 19:01:14 +00:00
|
|
|
.endif
|
|
|
|
|
2003-08-18 15:25:39 +00:00
|
|
|
SHLIBDIR?= /lib
|
2013-07-10 19:44:43 +00:00
|
|
|
SHLIB_MAJOR= 6
|
2001-05-18 13:41:42 +00:00
|
|
|
CFLAGS+=-DLIBC_SCCS -I${.CURDIR}
|
2006-10-09 05:12:54 +00:00
|
|
|
|
2014-01-13 19:01:14 +00:00
|
|
|
.if exists(${.CURDIR}/kvm_${KVM_XARCH}.c)
|
|
|
|
KVM_ARCH=${KVM_XARCH}
|
2010-08-28 15:03:11 +00:00
|
|
|
.else
|
2014-01-13 19:01:14 +00:00
|
|
|
KVM_ARCH=${KVM_XCPUARCH}
|
2010-08-28 15:03:11 +00:00
|
|
|
.endif
|
|
|
|
|
2011-01-23 11:08:36 +00:00
|
|
|
WARNS?= 3
|
2010-01-02 09:58:07 +00:00
|
|
|
|
2010-08-28 15:03:11 +00:00
|
|
|
SRCS= kvm.c kvm_${KVM_ARCH}.c kvm_cptime.c kvm_file.c kvm_getloadavg.c \
|
2009-07-23 21:12:21 +00:00
|
|
|
kvm_getswapinfo.c kvm_pcpu.c kvm_proc.c kvm_vnet.c
|
2014-01-13 19:01:14 +00:00
|
|
|
.if exists(${.CURDIR}/kvm_minidump_${KVM_ARCH}.c)
|
2010-08-28 15:03:11 +00:00
|
|
|
SRCS+= kvm_minidump_${KVM_ARCH}.c
|
2006-04-21 04:32:51 +00:00
|
|
|
.endif
|
2000-01-14 07:57:47 +00:00
|
|
|
INCS= kvm.h
|
1994-05-27 05:00:24 +00:00
|
|
|
|
2008-08-19 21:30:36 +00:00
|
|
|
MAN= kvm.3 kvm_getcptime.3 kvm_geterr.3 kvm_getfiles.3 kvm_getloadavg.3 \
|
|
|
|
kvm_getpcpu.3 kvm_getprocs.3 kvm_getswapinfo.3 kvm_nlist.3 kvm_open.3 \
|
|
|
|
kvm_read.3
|
1994-05-27 05:00:24 +00:00
|
|
|
|
2013-04-10 20:26:53 +00:00
|
|
|
MLINKS+=kvm_getpcpu.3 kvm_getmaxcpu.3 \
|
|
|
|
kvm_getpcpu.3 kvm_dpcpu_setcpu.3 \
|
|
|
|
kvm_getpcpu.3 kvm_read_zpcpu.3 \
|
2013-04-11 10:14:28 +00:00
|
|
|
kvm_getpcpu.3 kvm_counter_u64_fetch.3
|
1994-05-27 05:00:24 +00:00
|
|
|
MLINKS+=kvm_getprocs.3 kvm_getargv.3 kvm_getprocs.3 kvm_getenvv.3
|
1999-01-23 07:55:15 +00:00
|
|
|
MLINKS+=kvm_open.3 kvm_close.3 kvm_open.3 kvm_openfiles.3
|
1994-05-27 05:00:24 +00:00
|
|
|
MLINKS+=kvm_read.3 kvm_write.3
|
|
|
|
|
|
|
|
.include <bsd.lib.mk>
|