From 14cad21eb57856f6b19c897abc33a5e24cc86a29 Mon Sep 17 00:00:00 2001 From: Tycho Andersen Date: Thu, 31 Jul 2014 21:18:00 +0400 Subject: [PATCH] lib: Generate pkgconfig file Signed-off-by: Tycho Andersen Acked-by: Serge E. Hallyn Signed-off-by: Pavel Emelyanov --- .gitignore | 1 + Makefile | 6 ++++++ lib/criu.pc.in | 8 ++++++++ 3 files changed, 15 insertions(+) create mode 100644 lib/criu.pc.in diff --git a/.gitignore b/.gitignore index 3cb97c4dc..48ccf818a 100644 --- a/.gitignore +++ b/.gitignore @@ -25,3 +25,4 @@ arch/x86/syscalls.S pie/pie.lds.S include/config.h protobuf-desc-gen.h +criu.pc diff --git a/Makefile b/Makefile index a42261470..42c6de90a 100644 --- a/Makefile +++ b/Makefile @@ -266,6 +266,12 @@ install: $(PROGRAM) install-man $(Q) install -m 644 scripts/sd/criu.service $(DESTDIR)$(SYSTEMDUNITDIR) $(Q) mkdir -p $(DESTDIR)$(LOGROTATEDIR) $(Q) install -m 644 scripts/logrotate.d/criu-service $(DESTDIR)$(LOGROTATEDIR) + $(Q) sed -e 's,@version@,$(GITID),' \ + -e 's,@libdir@,$(LIBDIR),' \ + -e 's,@includedir@,$(dir $(INCLUDEDIR)),' \ + lib/criu.pc.in > criu.pc + $(Q) mkdir -p $(DESTDIR)$(LIBDIR)/pkgconfig + $(Q) install -m 644 criu.pc $(DESTDIR)$(LIBDIR)/pkgconfig install-man: $(Q) $(MAKE) -C Documentation install diff --git a/lib/criu.pc.in b/lib/criu.pc.in new file mode 100644 index 000000000..33986d10d --- /dev/null +++ b/lib/criu.pc.in @@ -0,0 +1,8 @@ +libdir=@libdir@ +includedir=@includedir@ + +Name: CRIU +Description: RPC library for userspace checkpoint and restore +Version: @version@ +Libs: -L${libdir} -lcriu +Cflags: -I${includedir}