Skip to content

Commit

Permalink
xxxx
Browse files Browse the repository at this point in the history
  • Loading branch information
thom311 committed Jan 12, 2025
1 parent cc3bc99 commit f69c54b
Showing 1 changed file with 37 additions and 23 deletions.
60 changes: 37 additions & 23 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,28 @@ noinst_HEADERS = \

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

default_includes = \
-I$(srcdir)/include/linux-private \
-I$(srcdir)/include \
-I$(builddir)/include \
-I$(srcdir)/third_party/c-list/src \
$(NULL)

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

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

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

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

# Hack to avoid using ylwrap. It does not function correctly in combination
# with --header-file=

Expand Down Expand Up @@ -382,6 +404,18 @@ grammar_files_sources = \

grammar_files_headers = $(grammar_files_sources:%.c=%.h)

noinst_LTLIBRARIES += lib/route/libnl-grammar.la

nodist_lib_route_libnl_grammar_la_SOURCES = \
$(grammar_files_sources)
lib_route_libnl_grammar_la_CPPFLAGS = \
$(lib_cppflags) \
-I$(srcdir)/lib/route \
-Wno-unused-but-set-variable \
$(NULL)

$(lib_route_libnl_grammar_la_OBJECTS): $(grammar_files_headers)

CLEANFILES += \
$(grammar_files_sources) \
$(grammar_files_headers)
Expand All @@ -395,26 +429,6 @@ EXTRA_DIST += \

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

default_includes = \
-I$(srcdir)/include/linux-private \
-I$(srcdir)/include \
-I$(builddir)/include \
-I$(srcdir)/third_party/c-list/src \
$(NULL)

default_cppflags = \
$(extra_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 @@ -540,8 +554,6 @@ lib_libnl_route_3_la_SOURCES = \
lib/route/tc-api.h \
lib/route/tc.c \
$(NULL)
nodist_lib_libnl_route_3_la_SOURCES = \
$(grammar_files_sources)
EXTRA_lib_libnl_route_3_la_DEPENDENCIES = \
libnl-route-3.sym
lib_libnl_route_3_la_CPPFLAGS = \
Expand All @@ -554,7 +566,9 @@ lib_libnl_route_3_la_LDFLAGS = \
-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
-Wl,--version-script=$(srcdir)/libnl-route-3.sym
lib_libnl_route_3_la_LIBADD = \
lib/libnl-3.la
lib/libnl-3.la \
lib/route/libnl-grammar.la \
$(NULL)

$(lib_libnl_route_3_la_OBJECTS): $(grammar_files_headers)

Expand Down

0 comments on commit f69c54b

Please sign in to comment.