Skip to content

Commit

Permalink
build: add $(default_cppflags) variable in Makefile.am to reduce dupl…
Browse files Browse the repository at this point in the history
…iate code
  • Loading branch information
thom311 committed Nov 13, 2024
1 parent bdfdf73 commit 8961887
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -393,12 +393,18 @@ default_includes = \
-I$(builddir)/include \
$(NULL)

lib_cppflags = \
default_cppflags = \
$(warn_cppflags) \
$(defines_cppflags) \
$(default_includes) \
$(NULL)

###############################################################################

lib_cppflags = \
$(default_cppflags) \
$(NULL)

lib_LTLIBRARIES += lib/libnl-3.la

lib_libnl_3_la_SOURCES = \
Expand Down Expand Up @@ -711,9 +717,7 @@ src_lib_libnl_cli_3_la_SOURCES = \
EXTRA_src_lib_libnl_cli_3_la_DEPENDENCIES = \
libnl-cli-3.sym
src_lib_libnl_cli_3_la_CPPFLAGS = \
$(warn_cppflags) \
$(defines_cppflags) \
$(default_includes) \
$(default_cppflags) \
$(NULL)
src_lib_libnl_cli_3_la_LDFLAGS = \
$(src_lib_ldflags) \
Expand All @@ -729,9 +733,7 @@ src_lib_libnl_cli_3_la_LIBADD = \
###############################################################################

src_cppflags = \
$(warn_cppflags) \
$(defines_cppflags) \
$(default_includes) \
$(default_cppflags) \
$(NULL)

src_ldadd = \
Expand Down Expand Up @@ -908,9 +910,7 @@ src_nl_util_addr_LDADD = $(src_ldadd)
###############################################################################

tests_cppflags = \
$(warn_cppflags) \
$(defines_cppflags) \
$(default_includes) \
$(default_cppflags) \
$(NULL)

tests_ldadd = \
Expand Down

0 comments on commit 8961887

Please sign in to comment.