minix/servers/vm/Makefile
Arun Thomas 1f9ce647cf Move archtypes.h, fpu.h, and stackframe.h
Move archtypes.h to include/ dir, since several servers require it. Move
fpu.h and stackframe.h to arch-specific header directory. Make source
files and makefiles aware of the new header locations.
2010-03-09 09:41:14 +00:00

34 lines
707 B
Makefile

# Makefile for VM server
SERVER = vm
include /etc/make.conf
OBJ = main.o alloc.o utility.o exec.o exit.o fork.o break.o \
signal.o mmap.o slaballoc.o region.o pagefaults.o addravl.o \
physravl.o rs.o queryexit.o map_mem.o
ARCHOBJ = $(ARCH)/vm.o $(ARCH)/pagetable.o $(ARCH)/arch_pagefaults.o $(ARCH)/util.o
CPPFLAGS=-I$(ARCH)
CFLAGS = $(CPROFILE) $(CPPFLAGS)
# build local binary
all build install: $(SERVER)
$(SERVER): $(OBJ) phony
cd $(ARCH) && $(MAKE)
$(CC) -o $@ $(LDFLAGS) $(OBJ) $(ARCHOBJ) -lsys
# clean up local files
clean:
rm -f $(SERVER) *.o *.bak
cd $(ARCH) && $(MAKE) $@
depend:
cd $(ARCH) && $(MAKE) $@
mkdep "$(CC) -E $(CPPFLAGS)" *.c $(ARCH)/*.c > .depend
phony:
@: