2018-05-15 09:09:20 +08:00
|
|
|
|
|
|
|
# global helper variables
|
|
|
|
T := $(CURDIR)
|
|
|
|
PLAT := uefi
|
|
|
|
RELEASE := 0
|
|
|
|
|
|
|
|
ROOT_OUT := $(T)/build
|
|
|
|
HV_OUT := $(ROOT_OUT)/hypervisor
|
|
|
|
DM_OUT := $(ROOT_OUT)/devicemodel
|
|
|
|
TOOLS_OUT := $(ROOT_OUT)/tools
|
|
|
|
|
|
|
|
.PHONY: all hypervisor devicemodel tools
|
|
|
|
all: hypervisor devicemodel tools
|
|
|
|
|
|
|
|
hypervisor:
|
2018-05-17 06:59:53 +08:00
|
|
|
make -C $(T)/hypervisor HV_OBJDIR=$(HV_OUT) PLATFORM=$(PLAT) RELEASE=$(RELEASE) clean
|
2018-05-17 02:21:26 +08:00
|
|
|
make -C $(T)/hypervisor HV_OBJDIR=$(HV_OUT) PLATFORM=$(PLAT) RELEASE=$(RELEASE)
|
2018-05-15 09:09:20 +08:00
|
|
|
|
|
|
|
devicemodel:
|
2018-05-17 06:59:53 +08:00
|
|
|
make -C $(T)/devicemodel DM_OBJDIR=$(DM_OUT) clean
|
2018-05-17 02:21:26 +08:00
|
|
|
make -C $(T)/devicemodel DM_OBJDIR=$(DM_OUT)
|
2018-05-15 09:09:20 +08:00
|
|
|
|
|
|
|
tools:
|
|
|
|
mkdir -p $(TOOLS_OUT)
|
2018-05-17 06:59:53 +08:00
|
|
|
make -C $(T)/tools/acrnlog OUT_DIR=$(TOOLS_OUT)
|
|
|
|
make -C $(T)/tools/acrn-manager OUT_DIR=$(TOOLS_OUT)
|
|
|
|
make -C $(T)/tools/acrntrace OUT_DIR=$(TOOLS_OUT)
|
2018-05-15 09:09:20 +08:00
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
|
|
rm -rf $(ROOT_OUT)
|
|
|
|
|
2018-05-17 03:21:45 +08:00
|
|
|
.PHONY: install
|
2018-05-17 06:59:53 +08:00
|
|
|
install: hypervisor-install devicemodel-install tools-install
|
2018-05-15 09:09:20 +08:00
|
|
|
|
2018-05-17 03:21:45 +08:00
|
|
|
hypervisor-install:
|
|
|
|
make -C $(T)/hypervisor HV_OBJDIR=$(HV_OUT) PLATFORM=$(PLAT) RELEASE=$(RELEASE) install
|
|
|
|
|
|
|
|
devicemodel-install:
|
|
|
|
make -C $(T)/devicemodel DM_OBJDIR=$(DM_OUT) install
|
|
|
|
|
2018-05-17 06:59:53 +08:00
|
|
|
tools-install:
|
2018-05-17 03:21:45 +08:00
|
|
|
make -C $(T)/tools/acrnlog OUT_DIR=$(TOOLS_OUT) install
|
|
|
|
make -C $(T)/tools/acrn-manager OUT_DIR=$(TOOLS_OUT) install
|
|
|
|
make -C $(T)/tools/acrntrace OUT_DIR=$(TOOLS_OUT) install
|
2018-05-15 09:09:20 +08:00
|
|
|
|