2018-06-04 15:57:25 +08:00
|
|
|
T := $(CURDIR)
|
2018-06-13 15:54:22 +08:00
|
|
|
OUT_DIR ?= $(shell mkdir -p $(T)/build;cd $(T)/build;pwd)
|
2019-02-21 11:41:35 +08:00
|
|
|
RELEASE ?= 0
|
2018-06-04 15:57:25 +08:00
|
|
|
|
2019-09-19 18:11:42 +08:00
|
|
|
.PHONY: all acrn-crashlog acrnlog acrn-manager acrntrace acrnbridge life_mngr
|
2018-09-06 16:40:05 +08:00
|
|
|
ifeq ($(RELEASE),0)
|
2020-06-02 11:45:00 +08:00
|
|
|
all: acrn-crashlog acrnlog acrn-manager acrntrace acrnbridge life_mngr
|
2018-09-06 16:40:05 +08:00
|
|
|
else
|
2020-06-02 11:45:00 +08:00
|
|
|
all: acrn-manager acrnbridge life_mngr
|
2018-09-06 16:40:05 +08:00
|
|
|
endif
|
2018-06-04 15:57:25 +08:00
|
|
|
|
|
|
|
acrn-crashlog:
|
2019-07-29 12:21:54 +08:00
|
|
|
$(MAKE) -C $(T)/tools/acrn-crashlog OUT_DIR=$(OUT_DIR) RELEASE=$(RELEASE)
|
2018-06-04 15:57:25 +08:00
|
|
|
|
|
|
|
acrnlog:
|
2019-07-29 12:21:54 +08:00
|
|
|
$(MAKE) -C $(T)/tools/acrnlog OUT_DIR=$(OUT_DIR)
|
2018-06-04 15:57:25 +08:00
|
|
|
|
|
|
|
acrn-manager:
|
2019-01-17 05:35:20 +08:00
|
|
|
$(MAKE) -C $(T)/acrn-manager OUT_DIR=$(OUT_DIR) RELEASE=$(RELEASE)
|
2018-06-04 15:57:25 +08:00
|
|
|
|
|
|
|
acrntrace:
|
2019-07-29 12:21:54 +08:00
|
|
|
$(MAKE) -C $(T)/tools/acrntrace OUT_DIR=$(OUT_DIR)
|
2018-06-04 15:57:25 +08:00
|
|
|
|
2018-06-08 10:58:18 +08:00
|
|
|
acrnbridge:
|
2019-01-17 05:35:20 +08:00
|
|
|
$(MAKE) -C $(T)/acrnbridge OUT_DIR=$(OUT_DIR)
|
2018-06-08 10:58:18 +08:00
|
|
|
|
2019-09-19 18:11:42 +08:00
|
|
|
life_mngr:
|
|
|
|
$(MAKE) -C $(T)/life_mngr OUT_DIR=$(OUT_DIR)
|
|
|
|
|
2018-06-04 15:57:25 +08:00
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
2019-07-29 12:21:54 +08:00
|
|
|
$(MAKE) -C $(T)/tools/acrn-crashlog OUT_DIR=$(OUT_DIR) clean
|
2019-01-17 05:35:20 +08:00
|
|
|
$(MAKE) -C $(T)/acrn-manager OUT_DIR=$(OUT_DIR) clean
|
2019-07-29 12:21:54 +08:00
|
|
|
$(MAKE) -C $(T)/tools/acrntrace OUT_DIR=$(OUT_DIR) clean
|
|
|
|
$(MAKE) -C $(T)/tools/acrnlog OUT_DIR=$(OUT_DIR) clean
|
2019-09-19 18:11:42 +08:00
|
|
|
$(MAKE) -C $(T)/life_mngr OUT_DIR=$(OUT_DIR) clean
|
2018-06-04 15:57:25 +08:00
|
|
|
rm -rf $(OUT_DIR)
|
|
|
|
|
|
|
|
.PHONY: install
|
2018-09-06 16:40:05 +08:00
|
|
|
ifeq ($(RELEASE),0)
|
2020-06-02 11:45:00 +08:00
|
|
|
install: acrn-crashlog-install acrnlog-install acrn-manager-install acrntrace-install acrnbridge-install \
|
|
|
|
acrn-life-mngr-install
|
2018-09-06 16:40:05 +08:00
|
|
|
else
|
2020-06-02 11:45:00 +08:00
|
|
|
install: acrn-manager-install acrnbridge-install acrn-life-mngr-install
|
2018-09-06 16:40:05 +08:00
|
|
|
endif
|
2018-06-04 15:57:25 +08:00
|
|
|
|
|
|
|
acrn-crashlog-install:
|
2019-07-29 12:21:54 +08:00
|
|
|
$(MAKE) -C $(T)/tools/acrn-crashlog OUT_DIR=$(OUT_DIR) install
|
2018-06-04 15:57:25 +08:00
|
|
|
|
|
|
|
acrnlog-install:
|
2019-07-29 12:21:54 +08:00
|
|
|
$(MAKE) -C $(T)/tools/acrnlog OUT_DIR=$(OUT_DIR) install
|
2018-06-04 15:57:25 +08:00
|
|
|
|
2018-06-07 16:47:57 +08:00
|
|
|
acrn-manager-install:
|
2019-01-17 05:35:20 +08:00
|
|
|
$(MAKE) -C $(T)/acrn-manager OUT_DIR=$(OUT_DIR) install
|
2018-06-04 15:57:25 +08:00
|
|
|
|
|
|
|
acrntrace-install:
|
2019-07-29 12:21:54 +08:00
|
|
|
$(MAKE) -C $(T)/tools/acrntrace OUT_DIR=$(OUT_DIR) install
|
2018-06-08 10:58:18 +08:00
|
|
|
|
|
|
|
acrnbridge-install:
|
2019-01-17 05:35:20 +08:00
|
|
|
$(MAKE) -C $(T)/acrnbridge OUT_DIR=$(OUT_DIR) install
|
2020-06-02 11:45:00 +08:00
|
|
|
|
|
|
|
acrn-life-mngr-install:
|
|
|
|
$(MAKE) -C $(T)/life_mngr OUT_DIR=$(OUT_DIR) install
|