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

Submitted by Dmitry Safonov on April 19, 2018, 3:22 a.m.

Details

Message ID 20180419032255.4844-3-dima@arista.com
State Accepted
Series "make: Fix parallel build for zdtm"
Commit c574c2883ff1f388fa1269f9c792ea5acb90808b
Headers show

Commit Message

Dmitry Safonov April 19, 2018, 3:22 a.m.
Let's drop usage of COMPILE.c, OUTPUT_OPTION.
It will allow run submake with -R.

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

Patch hide | download patch | download mbox

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