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