[CRIU] [PATCH 2/3] make: echo deps build

Kinsbursky Stanislav skinsbursky at openvz.org
Tue May 29 10:33:08 EDT 2012


Signed-off-by: Stanislav Kinsbursky <skinsbursky at openvz.org>

---
 Makefile |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile
index 67a37a6..52abbbd 100644
--- a/Makefile
+++ b/Makefile
@@ -77,15 +77,16 @@ all: $(PROGRAM)
 	$(E) "  CC      " $@
 	$(Q) $(CC) -S $(CFLAGS) -fverbose-asm $< -o $@
 
+%.d: %.c
+	$(E) "  DEP     " $@
+	$(Q) $(CC) -M -MT $@ -MT $(patsubst %.d,%.o,$@) $(CFLAGS) $< -o $@
+
 $(DEPS) $(OBJS): $(SYS-OBJ) $(PIE-GEN)
 
 $(PROGRAM): $(OBJS)
 	$(E) "  LINK    " $@
 	$(Q) $(CC) $(CFLAGS) $(OBJS) $(LIBS) $(SYS-OBJ) -o $@
 
-%.d: %.c
-	$(Q) $(CC) -M -MT $(patsubst %.d,%.o,$@) $(CFLAGS) $< -o $@
-
 test-legacy: $(PROGRAM)
 	$(Q) $(MAKE) -C test/legacy all
 



More information about the CRIU mailing list