Home | History | Annotate | Line # | Download | only in libkvm
Makefile revision 1.37.2.2
      1  1.37.2.2  nathanw #	$NetBSD: Makefile,v 1.37.2.2 2002/04/23 20:10:19 nathanw Exp $
      2  1.37.2.2  nathanw #	from: @(#)Makefile	8.1 (Berkeley) 6/4/93
      3  1.37.2.2  nathanw 
      4  1.37.2.2  nathanw LIB=	kvm
      5  1.37.2.2  nathanw USE_SHLIBDIR=	yes
      6  1.37.2.2  nathanw CPPFLAGS+=-DLIBC_SCCS
      7  1.37.2.2  nathanw 
      8  1.37.2.2  nathanw SRCS=	kvm.c kvm_file.c kvm_getloadavg.c kvm_proc.c
      9  1.37.2.2  nathanw 
     10  1.37.2.2  nathanw # This library should compile to the same thing on all variants of
     11  1.37.2.2  nathanw # ${MACHINE} with the same ${MACHINE_ARCH} so shared /usr works.
     12  1.37.2.2  nathanw # If it is necessary to run different code based on ${MACHINE} then
     13  1.37.2.2  nathanw # the dispatch on ${MACHINE} should be done at run time (see m68k).
     14  1.37.2.2  nathanw 
     15  1.37.2.2  nathanw .include <bsd.own.mk>
     16  1.37.2.2  nathanw .if exists(kvm_${MACHINE_ARCH}.c)
     17  1.37.2.2  nathanw SRCS+=	kvm_${MACHINE_ARCH}.c
     18  1.37.2.2  nathanw .elif  exists(kvm_${MACHINE_CPU}.c)
     19  1.37.2.2  nathanw SRCS+=	kvm_${MACHINE_CPU}.c
     20  1.37.2.2  nathanw .else
     21  1.37.2.2  nathanw .BEGIN:
     22  1.37.2.2  nathanw 	@echo no kvm_xx.c for ${MACHINE_ARCH} nor ${MACHINE_CPU}
     23  1.37.2.2  nathanw 	@false
     24  1.37.2.2  nathanw .endif
     25  1.37.2.2  nathanw 
     26  1.37.2.2  nathanw # Additional modules needed for m68k
     27  1.37.2.2  nathanw .if (${MACHINE_ARCH} == "m68k" || ${MACHINE_CPU} == "m68k")
     28  1.37.2.2  nathanw SRCS+=	kvm_m68k_cmn.c kvm_sun2.c kvm_sun3.c kvm_sun3x.c
     29  1.37.2.2  nathanw .endif
     30  1.37.2.2  nathanw 
     31  1.37.2.2  nathanw MAN=	kvm.3 kvm_dump.3 kvm_geterr.3 kvm_getfiles.3 kvm_getloadavg.3 \
     32  1.37.2.2  nathanw 	kvm_getprocs.3 kvm_nlist.3 kvm_open.3 kvm_read.3 kvm_getlwps.3
     33  1.37.2.2  nathanw 
     34  1.37.2.2  nathanw MLINKS+=kvm_getprocs.3 kvm_getargv.3 kvm_getprocs.3 kvm_getenvv.3
     35  1.37.2.2  nathanw MLINKS+=kvm_getprocs.3 kvm_getproc2.3
     36  1.37.2.2  nathanw MLINKS+=kvm_getprocs.3 kvm_getargv2.3 kvm_getprocs.3 kvm_getenvv2.3
     37  1.37.2.2  nathanw MLINKS+=kvm_open.3 kvm_openfiles.3 kvm_open.3 kvm_close.3
     38  1.37.2.2  nathanw MLINKS+=kvm_read.3 kvm_write.3
     39  1.37.2.2  nathanw MLINKS+=kvm_dump.3 kvm_dump_mkheader.3 kvm_dump.3 kvm_dump_wrtheader.3
     40  1.37.2.2  nathanw MLINKS+=kvm_dump.3 kvm_dump_inval.3
     41  1.37.2.2  nathanw 
     42  1.37.2.2  nathanw .include <bsd.lib.mk>
     43