mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
tools: provide pkg-config file for libxengnttab
In order to be able to use pkg-config for obtaining linker- and compiler-flags provide a xengnttab.pc and a xengntshr.pc file. Signed-off-by: Juergen Gross <jgross@suse.com> Acked-by: Wei Liu <wei.liu2@citrix.com>
This commit is contained in:
1 parent
fd6979484a
commit
47c44ab34e
4 files changed
+41
-1
No files matched your search
@@ -100,6 +100,8 @@ tools/libs/toollog/xentoollog.pc
|
||||
tools/libs/evtchn/headers.chk
|
||||
tools/libs/evtchn/xenevtchn.pc
|
||||
tools/libs/gnttab/headers.chk
|
||||
tools/libs/gnttab/xengntshr.pc
|
||||
tools/libs/gnttab/xengnttab.pc
|
||||
tools/libs/call/headers.chk
|
||||
tools/libs/foreignmemory/headers.chk
|
||||
tools/libs/devicemodel/headers.chk
|
||||
|
||||
@@ -26,6 +26,23 @@ ifneq ($(nosharedlibs),y)
|
||||
LIB += libxengnttab.so
|
||||
endif
|
||||
|
||||
PKG_CONFIG := xengnttab.pc xengntshr.pc
|
||||
PKG_CONFIG_VERSION := $(MAJOR).$(MINOR)
|
||||
|
||||
ifneq ($(CONFIG_LIBXC_MINIOS),y)
|
||||
PKG_CONFIG_INST := $(PKG_CONFIG)
|
||||
$(PKG_CONFIG_INST): PKG_CONFIG_PREFIX = $(prefix)
|
||||
$(PKG_CONFIG_INST): PKG_CONFIG_INCDIR = $(includedir)
|
||||
$(PKG_CONFIG_INST): PKG_CONFIG_LIBDIR = $(libdir)
|
||||
endif
|
||||
|
||||
PKG_CONFIG_LOCAL := $(foreach pc,$(PKG_CONFIG),$(PKG_CONFIG_DIR)/$(pc))
|
||||
|
||||
$(PKG_CONFIG_LOCAL): PKG_CONFIG_PREFIX = $(XEN_ROOT)
|
||||
$(PKG_CONFIG_LOCAL): PKG_CONFIG_INCDIR = $(XEN_LIBXENGNTTAB)/include
|
||||
$(PKG_CONFIG_LOCAL): PKG_CONFIG_LIBDIR = $(CURDIR)
|
||||
$(PKG_CONFIG_LOCAL): PKG_CONFIG_CFLAGS_LOCAL = $(CFLAGS_xeninclude)
|
||||
|
||||
.PHONY: all
|
||||
all: build
|
||||
|
||||
@@ -34,7 +51,7 @@ build:
|
||||
$(MAKE) libs
|
||||
|
||||
.PHONY: libs
|
||||
libs: headers.chk $(LIB)
|
||||
libs: headers.chk $(LIB) $(PKG_CONFIG_INST) $(PKG_CONFIG_LOCAL)
|
||||
|
||||
headers.chk: $(wildcard include/*.h)
|
||||
|
||||
@@ -58,6 +75,8 @@ install: build
|
||||
$(SYMLINK_SHLIB) libxengnttab.so.$(MAJOR).$(MINOR) $(DESTDIR)$(libdir)/libxengnttab.so.$(MAJOR)
|
||||
$(SYMLINK_SHLIB) libxengnttab.so.$(MAJOR) $(DESTDIR)$(libdir)/libxengnttab.so
|
||||
$(INSTALL_DATA) include/xengnttab.h $(DESTDIR)$(includedir)
|
||||
$(INSTALL_DATA) xengnttab.pc $(DESTDIR)$(PKG_INSTALLDIR)
|
||||
$(INSTALL_DATA) xengntshr.pc $(DESTDIR)$(PKG_INSTALLDIR)
|
||||
|
||||
.PHONY: TAGS
|
||||
TAGS:
|
||||
@@ -68,6 +87,7 @@ clean:
|
||||
rm -rf *.rpm $(LIB) *~ $(DEPS) $(LIB_OBJS) $(PIC_OBJS)
|
||||
rm -f libxengnttab.so.$(MAJOR).$(MINOR) libxengnttab.so.$(MAJOR)
|
||||
rm -f headers.chk
|
||||
rm -f xengnttab.pc xengntshr.pc
|
||||
|
||||
.PHONY: distclean
|
||||
distclean: clean
|
||||
@@ -0,0 +1,8 @@
|
||||
prefix=@@prefix@@
|
||||
includedir=@@incdir@@
|
||||
libdir=@@libdir@@
|
||||
|
||||
Name: Xengntshr
|
||||
Description: The Xengntshr library for Xen hypervisor
|
||||
Version: @@version@@
|
||||
Requires: xengnttab
|
||||
@@ -0,0 +1,10 @@
|
||||
prefix=@@prefix@@
|
||||
includedir=@@incdir@@
|
||||
libdir=@@libdir@@
|
||||
|
||||
Name: Xengnttab
|
||||
Description: The Xengnttab library for Xen hypervisor
|
||||
Version: @@version@@
|
||||
Cflags: -I${includedir} @@cflagslocal@@
|
||||
Libs: @@libsflag@@${libdir} -lxengnttab
|
||||
Requires.private: xentoollog
|
||||