pkgconfig: adding related package files

To help the users of the libcoap and especially the linker on the users
machines adding a libcoap.pc file that will be installed while the call
of 'make install'.
This commit is contained in:
Carsten Schoenert authored and Olaf Bergmann committed 2015-03-03 19:21:43 +01:00
1 parent 0d1fa72073
commit 45760a922d
3 files changed
+19

No files matched your search

+7
View File
@@ -47,6 +47,13 @@ libcoap_la_SOURCES = \
## file (.so). This will be changed later to a substituted version via variables.
libcoap_la_LDFLAGS = -version-info 0
## Install the generated pkg-config file (.pc) into the expected location for
## architecture-dependent package configuration information. Occasionally,
## pkg-config files are also used for architecture-independent data packages,
## in which case the correct install location would be $(datadir)/pkgconfig.
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libcoap.pc
## Define an independent executable script for inclusion in the distribution
## archive. However, it will not be installed on an end user's system due to
## the noinst_ prefix.
+1
View File
@@ -40,6 +40,7 @@ AC_CHECK_FUNCS([memset select socket strcasecmp strrchr getaddrinfo \
# Override the various template files, currently just makefiles.
AC_CONFIG_FILES([
Makefile
libcoap.pc:libcoap.pc.in
include/Makefile])
AC_OUTPUT
+11
View File
@@ -0,0 +1,11 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@
Name: @PACKAGE_NAME@
Description: C-Implementation of CoAP.
Version: @PACKAGE_VERSION@
URL: @PACKAGE_URL@
Libs: -L${libdir} -lcoap
Cflags: -I${includedir}/coap