Makefile: fix dependencies for casadm

Signed-off-by: Amir Haroush <amir.haroush@huawei.com>
Signed-off-by: Robert Baldyga <robert.baldyga@huawei.com>
This commit is contained in:
Amir Haroush 2022-06-28 17:29:21 +03:00 committed by Robert Baldyga
parent ef22115539
commit b02c02f1bb
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,6 @@
# #
# Copyright(c) 2012-2022 Intel Corporation # Copyright(c) 2012-2022 Intel Corporation
# Copyright(c) 2024 Huawei Technologies
# SPDX-License-Identifier: BSD-3-Clause # SPDX-License-Identifier: BSD-3-Clause
# #

View File

@ -152,7 +152,9 @@ $(OBJDIR)%.o: %.c
ifeq ($(strip $(CAS_VERSION_MAIN)),) ifeq ($(strip $(CAS_VERSION_MAIN)),)
$(error "No version file") $(error "No version file")
endif endif
@$(CC) -c $(CFLAGS) -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -o "$@" "$<" @$(CC) -c $(CFLAGS) -MMD -o "$@" "$<"
-include $(addprefix $(OBJDIR),$(OBJS:.o=.d))
clean: clean:
@echo " CLEAN " @echo " CLEAN "