OCF: fix compilation dependencies
we don't have dependency files for OCF sources/headers. for example, if someone 'touch metadata_collision.h' it will not compile anything. with this fix, it will compile all the relevant files. Signed-off-by: Amir Haroush <amir.haroush@huawei.com> Signed-off-by: Shai Fultheim <shai.fultheim@huawei.com> Change-Id: I35b1c1f80a60f4be59cdca95f68bbafc7a212774 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/17914 Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
30d8211857
commit
8d65ab7476
@ -16,7 +16,7 @@ include $(SPDK_ROOT_DIR)/mk/spdk.common.mk
|
||||
|
||||
LIBNAME := ocfenv
|
||||
|
||||
CFLAGS += $(ENV_CFLAGS) -I$(CURDIR) -I$(CURDIR)/include -w
|
||||
CFLAGS += $(ENV_CFLAGS) -I$(CURDIR) -I$(CURDIR)/include -w -MMD
|
||||
C_SRCS = $(shell find -name \*.c)
|
||||
|
||||
LIB = $(call spdk_lib_list_to_static_libs,$(LIBNAME))
|
||||
@ -64,6 +64,8 @@ clean: ocf_distclean
|
||||
$(LIB): $(OBJS)
|
||||
$(LIB_C)
|
||||
|
||||
-include $(OBJS:.o=.d)
|
||||
|
||||
install:
|
||||
|
||||
uninstall:
|
||||
|
Loading…
Reference in New Issue
Block a user