blob: d8e5d4ac878640f664c64cb2b173d25760f0a7ef (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# $OpenBSD: Makefile,v 1.17 2013/10/22 16:40:26 guenther Exp $
# $NetBSD: Makefile,v 1.11 1996/03/18 22:33:07 thorpej Exp $
# from: @(#)Makefile 8.1 (Berkeley) 6/4/93
LIB= kvm
# Try most specific name first.
.if exists(kvm_${MACHINE}.c)
SRCS= kvm_${MACHINE}.c
.else
# Less specific name (i.e. m68k)
.if exists(kvm_${MACHINE_ARCH}.c)
SRCS= kvm_${MACHINE_ARCH}.c
.else
# Even less specific name (i.e. mips64)
CFLAGS+=-D${MACHINE_CPU}
SRCS= kvm_${MACHINE_CPU}.c
.endif
.endif
CFLAGS+= -D_LIBKVM
SRCS+= kvm.c kvm_file2.c kvm_getloadavg.c kvm_proc.c kvm_proc2.c \
kvm_cd9660.c kvm_udf.c kvm_ntfs.c
MAN= kvm.3 kvm_dump.3 kvm_geterr.3 kvm_getfiles.3 kvm_getloadavg.3 \
kvm_getprocs.3 kvm_nlist.3 kvm_open.3 kvm_read.3
MLINKS+=kvm_getprocs.3 kvm_getargv.3 kvm_getprocs.3 kvm_getenvv.3
MLINKS+=kvm_open.3 kvm_openfiles.3 kvm_open.3 kvm_close.3
MLINKS+=kvm_read.3 kvm_write.3
MLINKS+=kvm_dump.3 kvm_dump_mkheader.3 kvm_dump.3 kvm_dump_wrtheader.3
MLINKS+=kvm_dump.3 kvm_dump_inval.3
.include <bsd.lib.mk>
|