[CRIU] [PATCH 2/7] compel: Define separate targtes for plugins

Cyrill Gorcunov gorcunov at openvz.org
Mon Sep 26 12:36:34 PDT 2016


Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 Makefile.compel | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/Makefile.compel b/Makefile.compel
index 7f2f62f6c4d0..1158d17363c4 100644
--- a/Makefile.compel
+++ b/Makefile.compel
@@ -21,6 +21,19 @@ compel/%: $(COMPEL_VERSION_HEADER) .FORCE
 compel/plugins/%: $(COMPEL_VERSION_HEADER) .FORCE
 	$(Q) $(MAKE) $(build)=compel/plugins $@
 
+#
+# GNU make 4.x supports targets matching via wide
+# match targeting, where GNU make 3.x series (used on
+# Travis) is not, so we have to write them here explicitly.
+compel/plugins/std.built-in.o: $(COMPEL_VERSION_HEADER) .FORCE
+	$(Q) $(MAKE) $(build)=compel/plugins $@
+
+compel/plugins/shmem.built-in.o: $(COMPEL_VERSION_HEADER) .FORCE
+	$(Q) $(MAKE) $(build)=compel/plugins $@
+
+compel/plugins/fds.built-in.o: $(COMPEL_VERSION_HEADER) .FORCE
+	$(Q) $(MAKE) $(build)=compel/plugins $@
+
 compel/compel: compel/built-in.o compel/lib.a $(COMPEL_VERSION_HEADER)
 	$(call msg-link, $@)
 	$(Q) $(CC) $(CFLAGS) $^ $(WRAPFLAGS) $(LDFLAGS) -rdynamic -o $@
-- 
2.7.4



More information about the CRIU mailing list