diff --git a/Makefile.am b/Makefile.am index c155820..08215d7 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1 +1,13 @@ 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 diff --git a/configure.ac b/configure.ac index 9d98949..7f511e9 100644 --- a/configure.ac +++ b/configure.ac @@ -28,5 +28,10 @@ PKG_PROG_PKG_CONFIG PKG_CHECK_MODULES(DEPS, [libpcre check]) AC_SUBST(DEPS_CFLAGS) AC_SUBST(DEPS_LIBS) -AC_CONFIG_FILES(Makefile src/Makefile tests/Makefile) +AC_CONFIG_FILES([ + r3.pc + Makefile + src/Makefile + tests/Makefile +]) AC_OUTPUT diff --git a/r3.pc.in b/r3.pc.in new file mode 100644 index 0000000..1de55c9 --- /dev/null +++ b/r3.pc.in @@ -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}