tools: correct several Makefile problems

1. mkdir ./tools/build if it does not exist;
2. correct static lib path for acrn-manager;
3. do not remove acrnlog.service if build under source code dir by default.

Reviewed-by: Geoffroy VanCutsem <geoffroy.vancutsem@intel.com>
Signed-off-by: Yan, Like <like.yan@intel.com>
This commit is contained in:
Yan, Like 2018-06-13 15:54:22 +08:00 committed by lijinxia
parent 0f842cd38d
commit 57d6a933f6
3 changed files with 4 additions and 2 deletions

View File

@ -1,5 +1,5 @@
T := $(CURDIR)
OUT_DIR ?= $(T)/build
OUT_DIR ?= $(shell mkdir -p $(T)/build;cd $(T)/build;pwd)
.PHONY: all acrn-crashlog acrnlog acrn-manager acrntrace acrnbridge
all: acrn-crashlog acrnlog acrn-manager acrntrace acrnbridge

View File

@ -7,7 +7,7 @@ ifeq ($(RELEASE),0)
CFLAGS += -g -DMNGR_DEBUG
endif
LDFLAGS := -L$(TOOLS_OUT)
LDFLAGS := -L$(OUT_DIR)
LDFLAGS += -lacrn-mngr
LDFLAGS += -lpthread

View File

@ -7,7 +7,9 @@ all:
clean:
rm -f $(OUT_DIR)/acrnlog
ifneq ($(OUT_DIR),.)
rm -f $(OUT_DIR)/acrnlog.service
endif
install: $(OUT_DIR)/acrnlog
install -d $(DESTDIR)/usr/bin