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:
Amir Haroush 2023-05-01 23:49:47 +03:00 committed by David Ko
parent 30d8211857
commit 8d65ab7476

View File

@ -16,7 +16,7 @@ include $(SPDK_ROOT_DIR)/mk/spdk.common.mk
LIBNAME := ocfenv 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) C_SRCS = $(shell find -name \*.c)
LIB = $(call spdk_lib_list_to_static_libs,$(LIBNAME)) LIB = $(call spdk_lib_list_to_static_libs,$(LIBNAME))
@ -64,6 +64,8 @@ clean: ocf_distclean
$(LIB): $(OBJS) $(LIB): $(OBJS)
$(LIB_C) $(LIB_C)
-include $(OBJS:.o=.d)
install: install:
uninstall: uninstall: