Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/checkpoint-restore/criu.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@openvz.org>2016-02-18 12:43:28 +0300
committerPavel Emelyanov <xemul@virtuozzo.com>2016-02-18 14:15:12 +0300
commitc1f31142f81eb952359e664c61b09ae6ff868220 (patch)
tree09106833c24fd7a039c3aadbb77243e98e305acb /lib/Makefile
parent4854940d6f89620f98a0414969bfe52cd07bf66c (diff)
build: lib -- Fix building for C library
- drop unneeded @built-in.o rule - use proper @CRIU_SO for -soname option - add dep on version change Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
Diffstat (limited to 'lib/Makefile')
-rw-r--r--lib/Makefile7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/Makefile b/lib/Makefile
index 03229be98..34dd3b8e4 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -5,14 +5,11 @@ CRIU_SO := libcriu.so
#
# C language bindings.
-c/%:
+c/%: ../Makefile.versions
$(call msg-gen, $@)
$(Q) $(MAKE) $(build)=c $@
-c/built-in.o:
- $(call msg-gen, $@)
- $(Q) $(MAKE) $(build)=c all
-cflags-so += $(CFLAGS) -rdynamic -Wl,-soname,$(lib-so).so.$(CRIU_SO_VERSION_MAJOR)
+cflags-so += $(CFLAGS) -rdynamic -Wl,-soname,$(CRIU_SO).$(CRIU_SO_VERSION_MAJOR)
ldflags-so += -lprotobuf-c
c/$(CRIU_SO): c/built-in.o
$(call msg-link, $@)