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 02:21:26 +08:00
|
|
|
make -C $(T)/hypervisor HV_OBJDIR=$(HV_OUT) PLATFORM=$(PLAT) RELEASE=$(RELEASE) clean; \
|
|
|
|
make -C $(T)/hypervisor HV_OBJDIR=$(HV_OUT) PLATFORM=$(PLAT) RELEASE=$(RELEASE)
|
2018-05-15 09:09:20 +08:00
|
|
|
|
|
|
|
devicemodel:
|
2018-05-17 02:21:26 +08:00
|
|
|
make -C $(T)/devicemodel DM_OBJDIR=$(DM_OUT) clean; \
|
|
|
|
make -C $(T)/devicemodel DM_OBJDIR=$(DM_OUT)
|
2018-05-15 09:09:20 +08:00
|
|
|
|
|
|
|
tools:
|
|
|
|
mkdir -p $(TOOLS_OUT)
|
2018-05-17 02:21:26 +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)
|
|
|
|
|
|
|
|
|
|
|
|
|