summaryrefslogtreecommitdiff
path: root/ldpd/subdir.am
diff options
context:
space:
mode:
authorKaren Schoener <karen@voltanet.io>2021-02-24 17:24:35 -0500
committerKaren Schoener <karen@voltanet.io>2021-02-24 17:34:05 -0500
commitf9a4d683dca57ba7c58d416d73f03acd86acb1b0 (patch)
tree1582eadf6584ebfed489b99482e17ce6341d8eb1 /ldpd/subdir.am
parente024c08200ff15d678f8d165afea343d27081968 (diff)
ldpd: Add support for read-only snmp mib objects (excluding statistics)
Add support for read-only snmp mib objects as described in RFC 3815, excluding statistics. Signed-off-by: Lynne Morrison <lynne@voltanet.io> Signed-off-by: Karen Schoener <karen@voltanet.io>
Diffstat (limited to 'ldpd/subdir.am')
-rw-r--r--ldpd/subdir.am9
1 files changed, 9 insertions, 0 deletions
diff --git a/ldpd/subdir.am b/ldpd/subdir.am
index d89d18341d..b01d414de8 100644
--- a/ldpd/subdir.am
+++ b/ldpd/subdir.am
@@ -41,6 +41,10 @@ ldpd_libldp_a_SOURCES = \
ldpd/util.c \
# end
+if SNMP
+module_LTLIBRARIES += ldpd/ldpd_snmp.la
+endif
+
clippy_scan += \
ldpd/ldp_vty_cmds.c \
# end
@@ -59,3 +63,8 @@ noinst_HEADERS += \
ldpd_ldpd_SOURCES = ldpd/ldpd.c
ldpd_ldpd_LDADD = ldpd/libldp.a lib/libfrr.la $(LIBCAP)
+
+ldpd_ldpd_snmp_la_SOURCES = ldpd/ldp_snmp.c
+ldpd_ldpd_snmp_la_CFLAGS = $(WERROR) $(SNMP_CFLAGS) -std=gnu99
+ldpd_ldpd_snmp_la_LDFLAGS = -avoid-version -module -shared -export-dynamic
+ldpd_ldpd_snmp_la_LIBADD = lib/libfrrsnmp.la