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