automake: add ${top_builddir}/include to AM_CFLAGS
This patch enables out-of-source builds like this $ cd builddir && src_dir/configure && make Before this patch there was an error about missing netlink/version.h which is built by automake in top_builddir rather than top_srcdir which is already in include search path. Signed-off-by: Andreas Bießmann <biessmann@corscience.de>
This commit is contained in:
parent
706ac94ed5
commit
cb05bbb0e2
3 changed files with 3 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
|||
# -*- Makefile -*-
|
||||
|
||||
AM_CPPFLAGS = -Wall -I${top_srcdir}/include -D_GNU_SOURCE -DSYSCONFDIR=\"$(sysconfdir)/libnl\"
|
||||
AM_CPPFLAGS = -Wall -I${top_srcdir}/include -I${top_builddir}/include -D_GNU_SOURCE -DSYSCONFDIR=\"$(sysconfdir)/libnl\"
|
||||
|
||||
lib_LTLIBRARIES = \
|
||||
libnl.la libnl-genl.la libnl-route.la libnl-nf.la
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
SUBDIRS = lib
|
||||
|
||||
AM_CPPFLAGS = -Wall -I${top_srcdir}/include -D_GNU_SOURCE
|
||||
AM_CPPFLAGS = -Wall -I${top_srcdir}/include -I${top_builddir}/include -D_GNU_SOURCE
|
||||
AM_LDFLAGS = -L${top_builddir}/lib -L${top_builddir}/src/lib -lnl-cli
|
||||
|
||||
noinst_PROGRAMS = \
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# -*- Makefile -*-
|
||||
|
||||
AM_CPPFLAGS = -Wall -I${top_srcdir}/include -D_GNU_SOURCE -DPKGLIBDIR=\"$(pkglibdir)\" -DSYSCONFDIR=\"$(sysconfdir)\" -rdynamic
|
||||
AM_CPPFLAGS = -Wall -I${top_srcdir}/include -I${top_builddir}/include -D_GNU_SOURCE -DPKGLIBDIR=\"$(pkglibdir)\" -DSYSCONFDIR=\"$(sysconfdir)\" -rdynamic
|
||||
AM_LDFLAGS = -L${top_builddir}/lib -ldl
|
||||
|
||||
#nobase_pkglib_LTLIBRARIES = cls/basic.la cls/ematch/cmp.la
|
||||
|
|
Loading…
Add table
Reference in a new issue