This allows for multiple major versions to be installed in parallel. Pkg-config
files are adapted to provide appropriate cflags to find new header locations.
# -*- Makefile -*-
-nobase_include_HEADERS = \
+libnlincludedir = $(includedir)/libnl@MAJ_VERSION@
+
+nobase_libnlinclude_HEADERS = \
netlink/cli/addr.h \
netlink/cli/class.h \
netlink/cli/cls.h \
Description: Convenience library for netlink sockets
Version: @PACKAGE_VERSION@
Libs: -L${libdir} -lnl
-Cflags: -I${includedir}
+Cflags: -I${includedir}/libnl@MAJ_VERSION@
Version: @PACKAGE_VERSION@
Requires: libnl-3
Libs: -L${libdir} -lnl-genl
-Cflags: -I${includedir}
+Cflags: -I${includedir}/libnl@MAJ_VERSION@
Version: @PACKAGE_VERSION@
Requires: libnl-3
Libs: -L${libdir} -lnl-nf
-Cflags: -I${includedir}
+Cflags: -I${includedir}/libnl@MAJ_VERSION@
Version: @PACKAGE_VERSION@
Requires: libnl-3
Libs: -L${libdir} -lnl-route
-Cflags: -I${includedir}
+Cflags: -I${includedir}/libnl@MAJ_VERSION@