2008-11-19 13:26:10 +01:00
|
|
|
# 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 \
|
2009-09-21 16:49:49 +02:00
|
|
|
signal.o vfs.o mmap.o slaballoc.o region.o pagefaults.o addravl.o \
|
2010-01-14 16:24:16 +01:00
|
|
|
physravl.o rs.o queryexit.o map_mem.o
|
2008-11-19 13:26:10 +01:00
|
|
|
ARCHOBJ = $(ARCH)/vm.o $(ARCH)/pagetable.o $(ARCH)/arch_pagefaults.o $(ARCH)/util.o
|
|
|
|
|
|
|
|
CPPFLAGS=-I../../kernel/arch/$(ARCH)/include -I$(ARCH)
|
|
|
|
CFLAGS = $(CPROFILE) $(CPPFLAGS)
|
|
|
|
|
|
|
|
# build local binary
|
|
|
|
|
|
|
|
all build install: $(SERVER)
|
|
|
|
|
2009-05-11 21:05:45 +02:00
|
|
|
$(SERVER): $(OBJ) phony
|
2008-11-19 13:26:10 +01:00
|
|
|
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
|
|
|
|
|
2009-05-11 21:05:45 +02:00
|
|
|
phony:
|
|
|
|
@:
|
|
|
|
|
2008-11-19 13:26:10 +01:00
|
|
|
# Include generated dependencies.
|
|
|
|
include .depend
|
|
|
|
|