1996-05-13 06:30:20 +04:00
|
|
|
# $NetBSD: Makefile,v 1.4 1996/05/13 02:30:20 thorpej Exp $
|
1996-03-16 13:05:24 +03:00
|
|
|
# from: @(#)Makefile 8.1 (Berkeley) 6/4/93
|
1996-04-01 23:28:03 +04:00
|
|
|
|
|
|
|
.PATH: ${.CURDIR}/../libkvm
|
1996-03-16 13:05:24 +03:00
|
|
|
|
|
|
|
LIB= kvm
|
|
|
|
CFLAGS+=-DLIBC_SCCS
|
1996-05-09 16:41:38 +04:00
|
|
|
CFLAGS+=-I- -I${.CURDIR}
|
1996-03-16 13:05:24 +03:00
|
|
|
|
|
|
|
# Try most specific name first.
|
|
|
|
.if exists(kvm_${MACHINE}.c)
|
|
|
|
SRCS= kvm_${MACHINE}.c
|
|
|
|
.else
|
|
|
|
# Less specific name (i.e. m68k)
|
|
|
|
CFLAGS+=-D${MACHINE}
|
|
|
|
SRCS= kvm_${MACHINE_ARCH}.c
|
|
|
|
.endif
|
|
|
|
|
|
|
|
SRCS+= kvm.c kvm_file.c kvm_getloadavg.c kvm_proc.c
|
|
|
|
|
|
|
|
MAN= kvm.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
|
|
|
|
|
|
|
|
.include <bsd.lib.mk>
|