commit 39b597efb130722d949c68a223d2629dc59b9155
parent 1bbf327a7e33d770b9026f72842d9751f64f0bf0
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Thu, 13 Jul 2023 17:13:45 +0200
Make *.d files dependent on config.mk file
Diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
@@ -48,7 +48,7 @@ build_library: .config $(DEP)
echo "$(LIBNAME_SHARED)";\
fi)
-$(OBJ): config.mk
+$(OBJ) $(DEP): config.mk
$(LIBNAME_SHARED): $(OBJ)
$(CC) -std=c99 $(CFLAGS) $(DPDC_CFLAGS) -o $@ $(OBJ) $(LDFLAGS) $(SOFLAGS) $(DPDC_LIBS)
@@ -160,7 +160,9 @@ test: build_tests
clean_test:
@$(SHELL) make.sh clean_test $(TEST_SRC)
-$(TEST_OBJ): config.mk s3d-local.pc
+$(TEST_OBJ) $(TEST_DEP): config.mk
+
+$(TEST_OBJ): s3d-local.pc
$(CC) -std=c89 $(CFLAGS) $(S3D_CFLAGS) -c $(@:.o=.c) -o $@
test_s3d_device \