mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-08-09 20:18:19 +00:00
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:
parent
0f842cd38d
commit
57d6a933f6
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user