From 8d65ab74761aa2dcb39932ee8ced0dbb7a34fb6a Mon Sep 17 00:00:00 2001 From: Amir Haroush Date: Mon, 1 May 2023 23:49:47 +0300 Subject: [PATCH] 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 Signed-off-by: Shai Fultheim Change-Id: I35b1c1f80a60f4be59cdca95f68bbafc7a212774 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/17914 Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins Reviewed-by: Ben Walker Reviewed-by: Jim Harris --- lib/env_ocf/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/env_ocf/Makefile b/lib/env_ocf/Makefile index 73ed32aa1..dc26d8593 100644 --- a/lib/env_ocf/Makefile +++ b/lib/env_ocf/Makefile @@ -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: