2018-11-21 15:11:44 +08:00
|
|
|
#
|
|
|
|
# ACRN Hypervisor Static Library for Debug Features
|
|
|
|
#
|
|
|
|
|
|
|
|
FILE_PATH := $(dir $(MKFL_NAME))
|
|
|
|
SRCS += $(wildcard $(FILE_PATH)/*.c)
|
|
|
|
OBJS += $(patsubst %.c,$(HV_OBJDIR)/%.o,$(SRCS))
|
|
|
|
|
|
|
|
.PHONY: default
|
2020-05-07 15:09:14 +08:00
|
|
|
default: $(LIB_DEBUG)
|
2018-11-21 15:11:44 +08:00
|
|
|
|
|
|
|
ifneq ($(CONFIG_RELEASE),y)
|
2020-05-07 15:09:14 +08:00
|
|
|
$(LIB_DEBUG): $(OBJS)
|
2018-11-21 15:11:44 +08:00
|
|
|
$(AR) $(ARFLAGS) $(LIB_DEBUG) $(OBJS)
|
|
|
|
endif
|
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
|
|
rm -f $(OBJS)
|
|
|
|
|
|
|
|
-include $(OBJS:.o=.d)
|
|
|
|
|
|
|
|
$(HV_OBJDIR)/%.o: %.c
|
2019-06-25 14:28:00 +08:00
|
|
|
[ ! -e $@ ] && mkdir -p $(dir $@) && mkdir -p $(HV_MODDIR); \
|
2018-11-21 15:11:44 +08:00
|
|
|
$(CC) $(patsubst %, -I%, $(INCLUDE_PATH)) -I. -c $(CFLAGS) $(ARCH_CFLAGS) $< -o $@ -MMD -MT $@
|