diff options
author | Thomas Haller <thaller@redhat.com> | 2023-08-03 06:29:20 (GMT) |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2023-08-03 07:28:44 (GMT) |
commit | 42bec462af2964ab5927ffac9a81ac69171ef720 (patch) | |
tree | 548d88511a644e11e6b705a2f990084156da2930 | |
parent | 4c1a119acf3ea8df3005bbe4a486f30e659fc8e5 (diff) | |
download | libnl-42bec462af2964ab5927ffac9a81ac69171ef720.zip libnl-42bec462af2964ab5927ffac9a81ac69171ef720.tar.gz libnl-42bec462af2964ab5927ffac9a81ac69171ef720.tar.bz2 |
build: cleanup default include list in Makefile.am
-rw-r--r-- | Makefile.am | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/Makefile.am b/Makefile.am index 9ed6a49..d578f59 100644 --- a/Makefile.am +++ b/Makefile.am @@ -332,13 +332,17 @@ EXTRA_DIST += \ ############################################################################### +default_includes = \ + -I$(srcdir)/include/linux-private \ + -I$(srcdir)/include \ + -I$(builddir)/include \ + $(NULL) + lib_cppflags = \ $(warn_cppflags) \ -D_GNU_SOURCE \ -DSYSCONFDIR=\"$(sysconfdir)/libnl\" \ - -I$(srcdir)/include/linux-private \ - -I$(srcdir)/include \ - -I$(builddir)/include \ + $(default_includes) \ $(NULL) lib_LTLIBRARIES += lib/libnl-3.la @@ -657,9 +661,8 @@ src_lib_libnl_cli_3_la_CPPFLAGS = \ -D_GNU_SOURCE \ -DPKGLIBDIR=\"$(pkglibdir)\" \ -DSYSCONFDIR=\"$(sysconfdir)\" \ - -I$(srcdir)/include/linux-private \ - -I$(srcdir)/include \ - -I$(builddir)/include + $(default_includes) \ + $(NULL) src_lib_libnl_cli_3_la_LDFLAGS = \ $(src_lib_ldflags) \ -Wl,--version-script=$(srcdir)/libnl-cli-3.sym @@ -677,9 +680,8 @@ src_cppflags = \ $(warn_cppflags) \ -D_GNU_SOURCE \ -DSYSCONFDIR=\"$(sysconfdir)/libnl\" \ - -I$(srcdir)/include/linux-private \ - -I$(srcdir)/include \ - -I$(builddir)/include + $(default_includes) \ + $(NULL) src_ldadd = \ src/lib/libnl-cli-3.la \ @@ -858,9 +860,8 @@ tests_cppflags = \ $(warn_cppflags) \ -D_GNU_SOURCE \ -DSYSCONFDIR=\"$(sysconfdir)/libnl\" \ - -I$(srcdir)/include/linux-private \ - -I$(srcdir)/include \ - -I$(builddir)/include + $(default_includes) \ + $(NULL) tests_ldadd = \ lib/libnl-3.la \ |