From 9a79bcb678a3b26c8fa4a8231d9b7e51b0cf0b2c Mon Sep 17 00:00:00 2001 From: Alex Chernyakhovsky Date: Sun, 2 Jun 2013 00:32:17 -0400 Subject: Provide a pkg-config file for zephyr Previously, it was difficult to detect the presence of the zephyr library in autoconf, and required custom macros. However, the world has since developed pkg-config, which is a simple tool for detecting the presence of a package, its compile-time flags, and its link-time flags, even in the presence of recursive dependencies. This adds "zephyr.pc" as a file generated by the build process, and installs it into the appropriate directory, allowing the target system to use PKG_CHECK_MODULES([ZEPHYR], [zephyr]) AC_SUBST([ZEPHYR_CFLAGS]) AC_SUBST([ZEPHYR_LIBS]) to detect all necessary information to incorporate the zephyr library. --- Makefile.in | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Makefile.in') diff --git a/Makefile.in b/Makefile.in index b424dc5..a21ce15 100644 --- a/Makefile.in +++ b/Makefile.in @@ -39,6 +39,7 @@ install: ${INSTALL} -d ${DESTDIR}${exec_prefix} ${INSTALL} -d ${DESTDIR}${bindir} ${INSTALL} -d ${DESTDIR}${libdir} + ${INSTALL} -d ${DESTDIR}${libdir}/pkgconfig ${INSTALL} -d ${DESTDIR}${datadir} ${INSTALL} -d ${DESTDIR}${datadir}/zephyr ${INSTALL} -d ${DESTDIR}${sysconfdir} @@ -54,6 +55,7 @@ install: ${DESTDIR}${includedir}/zephyr ${INSTALL} -m 644 ${srcdir}/h/zephyr/zephyr.h \ ${DESTDIR}${includedir}/zephyr + ${INSTALL} -m 644 zephyr.pc ${DESTDIR}${libdir}/pkgconfig ${INSTALL} -m 644 h/zephyr/zephyr_err.h ${DESTDIR}${includedir}/zephyr for i in ${SUBDIRS}; do (cd $$i; ${MAKE} $@) || exit 1; done -- cgit v1.2.3