1 # Makefile for VM server
5 SRCS
= main.c alloc.c utility.c exit.c fork.c break.c \
6 mmap.c slaballoc.c region.c pagefaults.c pagetable.c \
7 rs.c pb.c regionavl.c \
8 mem_anon.c mem_directphys.c mem_anon_contig.c mem_shared.c \
9 mem_cache.c cache.c vfs.c mem_file.c fdref.c acl.c
11 .if
${MACHINE_ARCH} == "earm"
12 LDFLAGS
+= -T
${.CURDIR
}/arch
/${MACHINE_ARCH}/vm.lds
15 .if
${MKPAE
:Uno
} != "no"
19 DPADD
+= ${LIBSYS} ${LIBEXEC}
22 CPPFLAGS
+= -I
${.CURDIR
} -I
${.CURDIR
}/arch
/${MACHINE_ARCH}
23 CPPFLAGS
+= -I
${NETBSDSRCDIR}/minix
25 # For all other services, magic instrumentation involves instrumenting the
26 # libc malloc code, hooking its nested mmap/munmap calls, and ignoring its
27 # data. For VM, we need to do the exact opposite, since for VM, the malloc
28 # state is transferred as is. Thus, if the magic pass is enabled, tell it
29 # to skip the regular malloc instrumentation features.
30 MAGICFLAGS
= -magic-disable-mem-functions
-magic-disable-malloc-skip
32 .
include "arch/${MACHINE_ARCH}/Makefile.inc"
33 .
include <minix.service.mk
>