]> git.proxmox.com Git - mirror_frr.git/blobdiff - Makefile.am
Merge pull request #13649 from donaldsharp/unlock_the_node_or_else
[mirror_frr.git] / Makefile.am
index 44d2ab8e72b80d5533430df61f62ebb726519528..f56e1b8e0bac33e04a867794db0e3457ff95c227 100644 (file)
@@ -155,6 +155,21 @@ $(AUTOMAKE_DUMMY)install-moduleLTLIBRARIES: install-libLTLIBRARIES
 $(AUTOMAKE_DUMMY)install-binPROGRAMS: install-libLTLIBRARIES
 $(AUTOMAKE_DUMMY)install-sbinPROGRAMS: install-libLTLIBRARIES
 
+# Include default rules to compile protobuf message sources
+SUFFIXES += .proto .pb-c.c .pb-c.h
+
+# Rules
+
+AM_V_PROTOC_C = $(am__v_PROTOC_C_$(V))
+am__v_PROTOC_C_ = $(am__v_PROTOC_C_$(AM_DEFAULT_VERBOSITY))
+am__v_PROTOC_C_0 = @echo "  PROTOC_C" $@;
+am__v_PROTOC_C_1 =
+
+%.pb-c.c %.pb-c.h : %.proto
+       $(AM_V_PROTOC_C)$(PROTOC_C) -I$(top_srcdir) --c_out=$(top_builddir) $^
+       $(AM_V_GEN)$(SED) -i -e '1i\
+       #include "config.h"' $@
+
 include doc/subdir.am
 include doc/user/subdir.am
 include doc/manpages/subdir.am
@@ -169,6 +184,8 @@ include fpm/subdir.am
 include grpc/subdir.am
 include tools/subdir.am
 
+include mgmtd/subdir.am
+
 include bgpd/subdir.am
 include bgpd/rfp-example/librfp/subdir.am
 include bgpd/rfp-example/rfptest/subdir.am
@@ -207,6 +224,7 @@ rc_SCRIPTS = \
        pkgsrc/ripd.sh \
        pkgsrc/ripngd.sh \
        pkgsrc/zebra.sh \
+       pkgsrc/mgmtd.sh \
        # end
 endif
 
@@ -244,6 +262,7 @@ EXTRA_DIST += \
        snapcraft/helpers \
        snapcraft/snap \
        babeld/Makefile \
+       mgmtd/Makefile \
        bgpd/Makefile \
        bgpd/rfp-example/librfp/Makefile \
        bgpd/rfp-example/rfptest/Makefile \
@@ -321,7 +340,7 @@ redistclean:
        $(MAKE) distclean CONFIG_CLEAN_FILES="$(filter-out $(EXTRA_DIST), $(CONFIG_CLEAN_FILES))"
 
 indent:
-       tools/indent.py `find sharpd bgpd eigrpd include isisd lib nhrpd ospf6d ospfd pimd qpb ripd vtysh zebra -name '*.[ch]' | grep -v include/linux`
+       tools/indent.py `find sharpd bgpd mgmtd eigrpd include isisd lib nhrpd ospf6d ospfd pimd qpb ripd vtysh zebra -name '*.[ch]' | grep -v include/linux`
 
 if HAVE_GCOV