Merge pull request #5 from czchen/feature/install
Install headers and r3.pc
This commit is contained in:
commit
2ca78dd980
3 changed files with 28 additions and 1 deletions
12
Makefile.am
12
Makefile.am
|
@ -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
|
||||||
|
|
|
@ -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
10
r3.pc.in
Normal 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}
|
Loading…
Reference in a new issue