2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-22 09:58:09 +00:00

lib: Generate pkgconfig file

Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Tycho Andersen 2014-07-31 21:18:00 +04:00 committed by Pavel Emelyanov
parent 0ef4f01066
commit 14cad21eb5
3 changed files with 15 additions and 0 deletions

1
.gitignore vendored
View File

@ -25,3 +25,4 @@ arch/x86/syscalls.S
pie/pie.lds.S pie/pie.lds.S
include/config.h include/config.h
protobuf-desc-gen.h protobuf-desc-gen.h
criu.pc

View File

@ -266,6 +266,12 @@ install: $(PROGRAM) install-man
$(Q) install -m 644 scripts/sd/criu.service $(DESTDIR)$(SYSTEMDUNITDIR) $(Q) install -m 644 scripts/sd/criu.service $(DESTDIR)$(SYSTEMDUNITDIR)
$(Q) mkdir -p $(DESTDIR)$(LOGROTATEDIR) $(Q) mkdir -p $(DESTDIR)$(LOGROTATEDIR)
$(Q) install -m 644 scripts/logrotate.d/criu-service $(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: install-man:
$(Q) $(MAKE) -C Documentation install $(Q) $(MAKE) -C Documentation install

8
lib/criu.pc.in Normal file
View File

@ -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}