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}