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