Merge pull request #5 from czchen/feature/install

Install headers and r3.pc
This commit is contained in:
Pedro 2014-05-17 14:46:27 +08:00
commit 2ca78dd980
3 changed files with 28 additions and 1 deletions

View file

@ -1 +1,13 @@
SUBDIRS=src tests SUBDIRS=src tests
r3_includedir = $(includedir)/r3
r3_include_HEADERS = \
include/r3.h \
include/r3_define.h \
include/r3_list.h \
include/r3_str.h \
include/str_array.h \
$(NULL)
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = r3.pc

View file

@ -28,5 +28,10 @@ PKG_PROG_PKG_CONFIG
PKG_CHECK_MODULES(DEPS, [libpcre check]) PKG_CHECK_MODULES(DEPS, [libpcre check])
AC_SUBST(DEPS_CFLAGS) AC_SUBST(DEPS_CFLAGS)
AC_SUBST(DEPS_LIBS) AC_SUBST(DEPS_LIBS)
AC_CONFIG_FILES(Makefile src/Makefile tests/Makefile) AC_CONFIG_FILES([
r3.pc
Makefile
src/Makefile
tests/Makefile
])
AC_OUTPUT AC_OUTPUT

10
r3.pc.in Normal file
View file

@ -0,0 +1,10 @@
prefix=@prefix@
includedir=@includedir@/r3
libdir=@libdir@
Name: r3
Description: High-performance URL router library
Version: @PACKAGE_VERSION@
Requires:
Libs: -L${libdir} -lr3
CFlags: -I${includedir}