[CRIU] [PATCH 2/3] test/make: Drop implicit make variables

Dmitry Safonov dima at arista.com
Thu Apr 19 06:22:54 MSK 2018


Let's drop usage of COMPILE.c, OUTPUT_OPTION.
It will allow run submake with -R.

Cc: Cyrill Gorcunov <gorcunov at openvz.org>
Signed-off-by: Dmitry Safonov <dima at arista.com>
---
 test/zdtm/Makefile.inc | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/test/zdtm/Makefile.inc b/test/zdtm/Makefile.inc
index 673fa1bc6d8e..12fa86e0880c 100644
--- a/test/zdtm/Makefile.inc
+++ b/test/zdtm/Makefile.inc
@@ -54,14 +54,13 @@ ifeq ($(ARCH),x86)
 endif
 endif
 
-DEPEND.c = $(COMPILE.c) -MM -MP
-%.d:   %.c
-	$(E) " DEP      " $*.d
-	$(Q)$(DEPEND.c) $(OUTPUT_OPTION) $<
+%.d: %.c
+	$(E) " DEP      " $@
+	$(Q)$(CC) $(CFLAGS) $(CPPFLAGS) -MM -MP -c $< -o $@
 
 %.o: %.c | %.d
 	$(E) " CC       " $@
-	$(Q)$(COMPILE.c) $(OUTPUT_OPTION) $<
+	$(Q)$(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@
 
 %: %.o $(LDLIBS)
 	@echo $@ >> .gitignore
-- 
2.13.6



More information about the CRIU mailing list