1998-02-19 20:22:31 +03:00
|
|
|
# $NetBSD: Makefile,v 1.26 1998/02/19 17:22:31 thorpej Exp $
|
1994-05-09 08:09:21 +04:00
|
|
|
# from: @(#)Makefile 8.1 (Berkeley) 6/4/93
|
1994-01-28 02:31:08 +03:00
|
|
|
|
1998-02-19 20:22:31 +03:00
|
|
|
.if (${MACHINE_ARCH} != "mips")
|
1994-01-28 02:31:08 +03:00
|
|
|
LIB= kvm
|
1997-10-23 03:51:27 +04:00
|
|
|
CPPFLAGS+=-DLIBC_SCCS
|
1994-05-16 09:31:19 +04:00
|
|
|
|
1997-03-21 21:44:21 +03:00
|
|
|
SRCS= kvm.c kvm_file.c kvm_getloadavg.c kvm_proc.c
|
|
|
|
|
|
|
|
# This library should compile to the same thing on all variants of
|
|
|
|
# ${MACHINE} with the same ${MACHINE_ARCH} so shared /usr works.
|
1997-03-21 21:48:58 +03:00
|
|
|
# If it is necessary to run different code based on ${MACHINE} then
|
1997-03-21 21:44:21 +03:00
|
|
|
# the dispatch on ${MACHINE} should be done at run time (see m68k).
|
1994-05-16 09:31:19 +04:00
|
|
|
|
1997-03-21 21:44:21 +03:00
|
|
|
SRCS+= kvm_${MACHINE_ARCH}.c
|
|
|
|
|
|
|
|
# Additional modules needed for m68k
|
|
|
|
.if (${MACHINE_ARCH} == "m68k")
|
|
|
|
SRCS+= kvm_m68k_cmn.c kvm_sun3.c kvm_sun3x.c
|
|
|
|
.endif
|
1997-06-23 08:51:16 +04:00
|
|
|
.endif
|
1994-05-09 07:17:28 +04:00
|
|
|
|
1996-03-19 00:11:10 +03:00
|
|
|
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
|
1994-05-09 07:17:28 +04:00
|
|
|
|
|
|
|
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
|
1996-03-19 00:11:10 +03:00
|
|
|
MLINKS+=kvm_dump.3 kvm_dump_mkheader.3 kvm_dump.3 kvm_dump_wrtheader.3
|
|
|
|
MLINKS+=kvm_dump.3 kvm_dump_inval.3
|
1994-01-28 02:31:08 +03:00
|
|
|
|
1998-02-18 04:13:08 +03:00
|
|
|
.if (${MACHINE} != "pica") && \
|
1997-10-19 23:15:30 +04:00
|
|
|
(${MACHINE} != "pmax")
|
1994-01-28 02:31:08 +03:00
|
|
|
.include <bsd.lib.mk>
|
1997-06-23 13:07:49 +04:00
|
|
|
.else
|
1997-06-24 02:16:56 +04:00
|
|
|
.include <bsd.prog.mk>
|
1997-06-23 13:07:49 +04:00
|
|
|
.endif
|
1998-02-11 09:30:11 +03:00
|
|
|
|
|
|
|
# XXX
|
|
|
|
.if defined(UVM)
|
|
|
|
CPPFLAGS+= -DUVM
|
|
|
|
.endif
|
1998-02-18 06:54:58 +03:00
|
|
|
.if defined(PMAP_NEW)
|
|
|
|
CPPFLAGS+= -DPMAP_NEW
|
|
|
|
.endif
|