mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-23 01:37:44 +00:00
HV: makefile: to avoid duplicated build libs
1. improve makefile to avoid duplicated build libs when make in acrn-hypervisor/hypervisor directory to build HV only. 2. for debug/release library just select one makefile to build Tracked-On: #2412 Signed-off-by: Minggui Cao <minggui.cao@intel.com> Reviewed-by: Binbin Wu <binbin.wu@intel.com>
This commit is contained in:
@@ -7,10 +7,10 @@ SRCS += $(wildcard $(FILE_PATH)/*.c)
|
||||
OBJS += $(patsubst %.c,$(HV_OBJDIR)/%.o,$(SRCS))
|
||||
|
||||
.PHONY: default
|
||||
default: lib
|
||||
default: $(LIB_RELEASE)
|
||||
|
||||
ifeq ($(CONFIG_RELEASE),y)
|
||||
lib: $(OBJS)
|
||||
$(LIB_RELEASE): $(OBJS)
|
||||
$(AR) $(ARFLAGS) $(LIB_RELEASE) $(OBJS)
|
||||
endif
|
||||
|
||||
|
Reference in New Issue
Block a user