Makefile revision 1.25
1#	$NetBSD: Makefile,v 1.25 1998/02/19 07:06:59 thorpej Exp $
2#	from: @(#)Makefile	8.1 (Berkeley) 6/4/93
3
4.if	(${MACHNIE_ARCH} != "mips")
5LIB=	kvm
6CPPFLAGS+=-DLIBC_SCCS
7
8SRCS=	kvm.c kvm_file.c kvm_getloadavg.c kvm_proc.c
9
10# This library should compile to the same thing on all variants of
11# ${MACHINE} with the same ${MACHINE_ARCH} so shared /usr works.
12# If it is necessary to run different code based on ${MACHINE} then
13# the dispatch on ${MACHINE} should be done at run time (see m68k).
14
15SRCS+=	kvm_${MACHINE_ARCH}.c
16
17# Additional modules needed for m68k
18.if (${MACHINE_ARCH} == "m68k")
19SRCS+=	kvm_m68k_cmn.c kvm_sun3.c kvm_sun3x.c
20.endif
21.endif
22
23MAN=	kvm.3 kvm_dump.3 kvm_geterr.3 kvm_getfiles.3 kvm_getloadavg.3 \
24	kvm_getprocs.3 kvm_nlist.3 kvm_open.3 kvm_read.3
25
26MLINKS+=kvm_getprocs.3 kvm_getargv.3 kvm_getprocs.3 kvm_getenvv.3
27MLINKS+=kvm_open.3 kvm_openfiles.3 kvm_open.3 kvm_close.3
28MLINKS+=kvm_read.3 kvm_write.3
29MLINKS+=kvm_dump.3 kvm_dump_mkheader.3 kvm_dump.3 kvm_dump_wrtheader.3
30MLINKS+=kvm_dump.3 kvm_dump_inval.3
31
32.if	(${MACHINE} != "pica")   && \
33	(${MACHINE} != "pmax")
34.include <bsd.lib.mk>
35.else
36.include <bsd.prog.mk>
37.endif
38
39# XXX
40.if defined(UVM)
41CPPFLAGS+=      -DUVM
42.endif
43.if defined(PMAP_NEW)
44CPPFLAGS+=      -DPMAP_NEW
45.endif
46