xref: /minix/minix/servers/vm/Makefile (revision 00e393ca)
1# Makefile for VM server
2.include <bsd.own.mk>
3
4PROG=	vm
5SRCS=	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
10
11.if ${MACHINE_ARCH} == "earm"
12LDFLAGS+= -T ${.CURDIR}/arch/${MACHINE_ARCH}/vm.lds
13.endif
14
15.if ${MKPAE:Uno} != "no"
16CPPFLAGS+= -DPAE=1
17.endif
18
19DPADD+=	${LIBSYS} ${LIBEXEC}
20LDADD+=	-lsys -lexec
21
22CPPFLAGS+= -I${.CURDIR} -I${.CURDIR}/arch/${MACHINE_ARCH}
23CPPFLAGS+= -I${NETBSDSRCDIR}/minix
24
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.
30MAGICFLAGS= -magic-disable-mem-functions -magic-disable-malloc-skip
31
32.include "arch/${MACHINE_ARCH}/Makefile.inc"
33.include <minix.service.mk>
34