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 15DPADD+= ${LIBSYS} ${LIBEXEC} 16LDADD+= -lsys -lexec 17 18CPPFLAGS+= -I${.CURDIR} -I${.CURDIR}/arch/${MACHINE_ARCH} 19CPPFLAGS+= -I${NETBSDSRCDIR}/minix 20 21# For all other services, magic instrumentation involves instrumenting the 22# libc malloc code, hooking its nested mmap/munmap calls, and ignoring its 23# data. For VM, we need to do the exact opposite, since for VM, the malloc 24# state is transferred as is. Thus, if the magic pass is enabled, tell it 25# to skip the regular malloc instrumentation features. 26MAGICFLAGS= -magic-disable-mem-functions -magic-disable-malloc-skip 27 28.include "arch/${MACHINE_ARCH}/Makefile.inc" 29.include <minix.service.mk> 30