]> git.proxmox.com Git - mirror_frr.git/blobdiff - lib/subdir.am
Merge pull request #7210 from idryzhov/route-types-disable-daemon
[mirror_frr.git] / lib / subdir.am
index b8bcee139bf448db847f84c2d22a42ab1326c7c0..038282a99b918015ff1d5c61141eac7f30b36b24 100644 (file)
@@ -3,7 +3,7 @@
 #
 lib_LTLIBRARIES += lib/libfrr.la
 lib_libfrr_la_LDFLAGS = -version-info 0:0:0 -Xlinker -e_libfrr_version
-lib_libfrr_la_LIBADD = $(LIBCAP) $(UNWIND_LIBS) $(LIBYANG_LIBS) $(LUA_LIB) $(LIBM)
+lib_libfrr_la_LIBADD = $(LIBCAP) $(UNWIND_LIBS) $(LIBYANG_LIBS) $(LUA_LIB) $(UST_LIBS) $(LIBM)
 
 lib_libfrr_la_SOURCES = \
        lib/agg_table.c \
@@ -46,6 +46,7 @@ lib_libfrr_la_SOURCES = \
        lib/lib_errors.c \
        lib/lib_vty.c \
        lib/libfrr.c \
+       lib/libfrr_trace.c \
        lib/linklist.c \
        lib/log.c \
        lib/log_filter.c \
@@ -123,6 +124,7 @@ nodist_lib_libfrr_la_SOURCES = \
        yang/frr-nexthop.yang.c \
        yang/ietf/ietf-routing-types.yang.c \
        yang/ietf/ietf-interfaces.yang.c \
+       yang/ietf/ietf-bgp-types.yang.c \
        yang/frr-module-translator.yang.c \
        yang/frr-nexthop.yang.c \
        # end
@@ -203,6 +205,7 @@ pkginclude_HEADERS += \
        lib/lib_errors.h \
        lib/lib_vty.h \
        lib/libfrr.h \
+       lib/libfrr_trace.h \
        lib/libospf.h \
        lib/linklist.h \
        lib/log.h \
@@ -250,6 +253,7 @@ pkginclude_HEADERS += \
        lib/table.h \
        lib/termtable.h \
        lib/thread.h \
+       lib/trace.h \
        lib/typerb.h \
        lib/typesafe.h \
        lib/vector.h \
@@ -400,7 +404,7 @@ lib_grammar_sandbox_LDADD = \
 
 lib_clippy_CPPFLAGS = $(AM_CPPFLAGS) -D_GNU_SOURCE -DBUILDING_CLIPPY
 lib_clippy_CFLAGS = $(PYTHON_CFLAGS)
-lib_clippy_LDADD = $(PYTHON_LIBS)
+lib_clippy_LDADD = $(PYTHON_LIBS) $(UST_LIBS)
 lib_clippy_LDFLAGS = -export-dynamic
 lib_clippy_SOURCES = \
        lib/clippy.c \
@@ -410,6 +414,7 @@ lib_clippy_SOURCES = \
        lib/command_py.c \
        lib/defun_lex.l \
        lib/graph.c \
+       lib/libfrr_trace.c \
        lib/memory.c \
        lib/vector.c \
        # end
@@ -465,8 +470,62 @@ lib/clippy-command_parse.$(OBJEXT): lib/command_lex.h
 lib/lib_clippy-command_lex.$(OBJEXT): lib/command_parse.h
 lib/lib_clippy-command_parse.$(OBJEXT): lib/command_lex.h
 
+rt_enabled =
+
+if BABELD
+rt_enabled += --enabled babeld
+endif
+if BFDD
+rt_enabled += --enabled bfdd
+endif
+if BGPD
+rt_enabled += --enabled bgpd
+if ENABLE_BGP_VNC
+rt_enabled += --enabled bgpd-vnc
+endif
+endif
+if EIGRPD
+rt_enabled += --enabled eigrpd
+endif
+if ISISD
+rt_enabled += --enabled isisd
+endif
+if FABRICD
+rt_enabled += --enabled fabricd
+endif
+if LDPD
+rt_enabled += --enabled ldpd
+endif
+if NHRPD
+rt_enabled += --enabled nhrpd
+endif
+if OSPFD
+rt_enabled += --enabled ospfd
+endif
+if OSPF6D
+rt_enabled += --enabled ospf6d
+endif
+if PBRD
+rt_enabled += --enabled pbrd
+endif
+if PIMD
+rt_enabled += --enabled pimd
+endif
+if RIPD
+rt_enabled += --enabled ripd
+endif
+if RIPNGD
+rt_enabled += --enabled ripngd
+endif
+if SHARPD
+rt_enabled += --enabled sharpd
+endif
+if ZEBRA
+rt_enabled += --enabled zebra
+endif
+
 lib/route_types.h: $(top_srcdir)/lib/route_types.txt $(top_srcdir)/lib/route_types.pl
-       $(PERL) $(top_srcdir)/lib/route_types.pl < $(top_srcdir)/lib/route_types.txt > $@
+       $(PERL) $(top_srcdir)/lib/route_types.pl $(rt_enabled) < $(top_srcdir)/lib/route_types.txt > $@
 DISTCLEANFILES += lib/route_types.h
 
 if GIT_VERSION