Remove building with NOCRYPTO option
[minix3.git] / lib / libkvm / Makefile
blob2678c1101ce6dfe2eb0ea2e8ede6973b30f45094
1 # $NetBSD: Makefile,v 1.50 2014/08/10 23:39:08 matt Exp $
2 # from: @(#)Makefile 8.1 (Berkeley) 6/4/93
4 WARNS= 3
6 USE_FORT?= yes # used primarily by setgid programs
8 USE_SHLIBDIR= yes
10 LIB= kvm
11 CPPFLAGS+=-DLIBC_SCCS -I${NETBSDSRCDIR}/sys -D_KMEMUSER
13 SRCS= kvm.c kvm_file.c kvm_getloadavg.c kvm_proc.c
15 # This library should compile to the same thing on all variants of
16 # ${MACHINE} with the same ${MACHINE_ARCH} so shared /usr works.
17 # If it is necessary to run different code based on ${MACHINE} then
18 # the dispatch on ${MACHINE} should be done at run time (see m68k).
20 .include <bsd.own.mk>
21 .if exists(kvm_${KVM_MACHINE_ARCH}.c)
22 SRCS+= kvm_${KVM_MACHINE_ARCH}.c
23 .elif exists(kvm_${KVM_MACHINE_CPU}.c)
24 SRCS+= kvm_${KVM_MACHINE_CPU}.c
25 .elif exists(kvm_${MACHINE_ARCH}.c)
26 SRCS+= kvm_${MACHINE_ARCH}.c
27 .elif exists(kvm_${MACHINE_CPU}.c)
28 SRCS+= kvm_${MACHINE_CPU}.c
29 .else
30 .BEGIN:
31 @echo no kvm_xx.c for ${MACHINE_ARCH} nor ${MACHINE_CPU}
32 @false
33 .endif
35 .if ${MACHINE_ARCH} == "i386"
36 LINTFLAGS+=-w
37 SRCS+= kvm_i386pae.c # Hook PAE support in the i386 build
38 .endif
40 # Additional modules needed for m68k
41 .if (${MACHINE_ARCH} == "m68k" || ${MACHINE_CPU} == "m68k")
42 SRCS+= kvm_m68k_cmn.c kvm_sun2.c kvm_sun3.c kvm_sun3x.c
43 .endif
45 MAN= kvm.3 kvm_dump.3 kvm_geterr.3 kvm_getfiles.3 kvm_getloadavg.3 \
46 kvm_getkernelname.3 \
47 kvm_getprocs.3 kvm_nlist.3 kvm_open.3 kvm_read.3 kvm_getlwps.3
49 MLINKS+=kvm_getprocs.3 kvm_getargv.3 kvm_getprocs.3 kvm_getenvv.3
50 MLINKS+=kvm_getprocs.3 kvm_getproc2.3
51 MLINKS+=kvm_getprocs.3 kvm_getargv2.3 kvm_getprocs.3 kvm_getenvv2.3
52 MLINKS+=kvm_open.3 kvm_openfiles.3 kvm_open.3 kvm_close.3
53 MLINKS+=kvm_read.3 kvm_write.3
54 MLINKS+=kvm_dump.3 kvm_dump_mkheader.3 kvm_dump.3 kvm_dump_wrtheader.3
55 MLINKS+=kvm_dump.3 kvm_dump_inval.3
57 # This fixes building with MACHINE==sparc64, MACHINE_ARCH==sparc
58 # XXX: this is a hack, but until the sparc MD headers are separated
59 # out from the sparc AD headers, it's the easiest solution.
61 .if (${MACHINE_ARCH} == "sparc") # {
62 .if !make(obj) && !make(clean) && !make(cleandir)
63 .BEGIN:
64 @([ -h machine ] || \
65 ln -fs ${NETBSDSRCDIR}/sys/arch/sparc/include machine)
66 @([ -h sparc ] || ln -fs ${NETBSDSRCDIR}/sys/arch/sparc/include sparc)
67 .NOPATH: machine sparc
68 .endif
69 CLEANFILES+= machine sparc
70 CPPFLAGS+= -I.
71 .endif # }
74 .include <bsd.lib.mk>