build scripts: support for separate build and source directories

This commit is contained in:
bgerofi@riken.jp
2014-10-20 17:47:12 +09:00
committed by Balazs Gerofi bgerofi@riken.jp
parent 11947a4ce3
commit 658ff759ef
6 changed files with 1752 additions and 1494 deletions

View File

@@ -1,3 +1,5 @@
VPATH=@abs_srcdir@
SRC=$(VPATH)
IHKDIR=$(IHKBASE)/$(TARGETDIR)
OBJS = init.o mem.o debug.o mikc.o listeners.o ap.o syscall.o cls.o host.o
OBJS += process.o copy.o waitq.o futex.o timer.o plist.o fileobj.o shmobj.o

View File

@@ -1,8 +1,8 @@
BUILD_TARGET ?= @TARGET@
KERNDIR=@KERNDIR@
SRC = $(CURDIR)
VPATH=@abs_srcdir@
IHKBASE ?= $(SRC)/../../ihk/cokernel
IHKBASE ?= $(VPATH)/../../ihk/cokernel
O ?= $(CURDIR)/build
V ?= $(VERBOSE)