[CRIU] [PATCH v2] make: simplify OBJ on BLOBS dependence
Kinsbursky Stanislav
skinsbursky at openvz.org
Mon May 28 08:04:16 EDT 2012
Replace dances with "|" by simple dependence rule both for DEPS and OBJS.
Signed-off-by: Stanislav Kinsbursky <skinsbursky at openvz.org>
---
Makefile | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
index f776f49..fc58f6b 100644
--- a/Makefile
+++ b/Makefile
@@ -75,11 +75,13 @@ all: $(PROGRAM)
$(E) " CC " $@
$(Q) $(CC) -S $(CFLAGS) -fverbose-asm $< -o $@
-$(PROGRAM): $(OBJS) | $(SYS-OBJ) $(PIE-GEN)
+$(DEPS) $(OBJS): $(SYS-OBJ) $(PIE-GEN)
+
+$(PROGRAM): $(OBJS)
$(E) " LINK " $@
$(Q) $(CC) $(CFLAGS) $(OBJS) $(LIBS) $(SYS-OBJ) -o $@
-%.d: %.c | $(SYS-OBJ) $(PIE-GEN)
+%.d: %.c
$(Q) $(CC) -M -MT $(patsubst %.d,%.o,$@) $(CFLAGS) $< -o $@
test-legacy: $(PROGRAM)
More information about the CRIU
mailing list