summaryrefslogtreecommitdiff
path: root/minix/servers/vm/Makefile
blob: bf440261db32227f68ceedf0e0f8a5f5efc8c00b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Makefile for VM server
.include <bsd.own.mk>

PROG=	vm
SRCS=	main.c alloc.c utility.c exit.c fork.c break.c \
	mmap.c slaballoc.c region.c pagefaults.c pagetable.c \
	rs.c pb.c regionavl.c \
	mem_anon.c mem_directphys.c mem_anon_contig.c mem_shared.c	\
	mem_cache.c cache.c vfs.c mem_file.c fdref.c acl.c

.if ${MACHINE_ARCH} == "earm"
LDFLAGS+= -T ${.CURDIR}/arch/${MACHINE_ARCH}/vm.lds
.endif

.if ${MKPAE:Uno} != "no"
CPPFLAGS+= -DPAE=1
.endif

DPADD+=	${LIBSYS} ${LIBEXEC}
LDADD+=	-lsys -lexec

CPPFLAGS+= -I${.CURDIR} -I${.CURDIR}/arch/${MACHINE_ARCH}
CPPFLAGS+= -I${NETBSDSRCDIR}/minix

# For all other services, magic instrumentation involves instrumenting the
# libc malloc code, hooking its nested mmap/munmap calls, and ignoring its
# data. For VM, we need to do the exact opposite, since for VM, the malloc
# state is transferred as is. Thus, if the magic pass is enabled, tell it
# to skip the regular malloc instrumentation features.
MAGICFLAGS= -magic-disable-mem-functions -magic-disable-malloc-skip

.include "arch/${MACHINE_ARCH}/Makefile.inc"
.include <minix.service.mk>