hv:fix a bug for building debug/release lib
there is a build error if we only build debug/release library because missing the build/modules folder Tracked-On: #1842 Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com> modified: Makefile modified: debug/Makefile modified: release/Makefile
This commit is contained in:
parent
7176e813ed
commit
7e6ff2a176
|
@ -142,7 +142,7 @@ OBJCOPY ?= objcopy
|
|||
|
||||
export CC AS AR LD OBJCOPY
|
||||
export CFLAGS ASFLAGS ARFLAGS LDFLAGS ARCH_CFLAGS ARCH_ASFLAGS ARCH_ARFLAGS ARCH_LDFLAGS
|
||||
export HV_OBJDIR CONFIG_RELEASE INCLUDE_PATH
|
||||
export HV_OBJDIR HV_MODDIR CONFIG_RELEASE INCLUDE_PATH
|
||||
export LIB_DEBUG LIB_RELEASE
|
||||
|
||||
# library componment
|
||||
|
|
|
@ -21,5 +21,5 @@ clean:
|
|||
-include $(OBJS:.o=.d)
|
||||
|
||||
$(HV_OBJDIR)/%.o: %.c
|
||||
[ ! -e $@ ] && mkdir -p $(dir $@); \
|
||||
[ ! -e $@ ] && mkdir -p $(dir $@) && mkdir -p $(HV_MODDIR); \
|
||||
$(CC) $(patsubst %, -I%, $(INCLUDE_PATH)) -I. -c $(CFLAGS) $(ARCH_CFLAGS) $< -o $@ -MMD -MT $@
|
||||
|
|
|
@ -21,5 +21,5 @@ clean:
|
|||
-include $(OBJS:.o=.d)
|
||||
|
||||
$(HV_OBJDIR)/%.o: %.c
|
||||
[ ! -e $@ ] && mkdir -p $(dir $@); \
|
||||
[ ! -e $@ ] && mkdir -p $(dir $@) && mkdir -p $(HV_MODDIR); \
|
||||
$(CC) $(patsubst %, -I%, $(INCLUDE_PATH)) -I. -c $(CFLAGS) $(ARCH_CFLAGS) $< -o $@ -MMD -MT $@
|
||||
|
|
Loading…
Reference in New Issue