summaryrefslogtreecommitdiffstats
path: root/zebra/Makefile.am
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2016-06-12 17:52:50 +0200
committerDavid Lamparter <equinox@opensourcerouting.org>2017-03-25 08:52:36 +0100
commit5986b66b82d2c8a15c9467032d912be07481f07d (patch)
tree500817709850f882497bfc820dd2d0ed3c247f92 /zebra/Makefile.am
parent*: use hooks for sending SNMP traps (diff)
downloadfrr-5986b66b82d2c8a15c9467032d912be07481f07d.tar.xz
frr-5986b66b82d2c8a15c9467032d912be07481f07d.zip
*: snmp: convert into modules
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'zebra/Makefile.am')
-rw-r--r--zebra/Makefile.am13
1 files changed, 10 insertions, 3 deletions
diff --git a/zebra/Makefile.am b/zebra/Makefile.am
index 4711c5e0b..5958f63b5 100644
--- a/zebra/Makefile.am
+++ b/zebra/Makefile.am
@@ -34,13 +34,13 @@ endif
AM_CFLAGS = $(WERROR)
sbin_PROGRAMS = zebra
-
noinst_PROGRAMS = testzebra
+module_LTLIBRARIES =
zebra_SOURCES = \
zebra_memory.c \
zserv.c main.c interface.c connected.c zebra_rib.c zebra_routemap.c \
- redistribute.c debug.c rtadv.c zebra_snmp.c zebra_vty.c \
+ redistribute.c debug.c rtadv.c zebra_vty.c \
irdp_main.c irdp_interface.c irdp_packet.c router-id.c zebra_fpm.c \
$(othersrc) zebra_ptm.c zebra_rnh.c zebra_ptm_redistribute.c \
zebra_ns.c zebra_vrf.c zebra_static.c zebra_mpls.c zebra_mpls_vty.c \
@@ -62,12 +62,19 @@ noinst_HEADERS = \
zebra_ns.h zebra_vrf.h ioctl_solaris.h zebra_static.h zebra_mpls.h \
kernel_netlink.h if_netlink.h zebra_mroute.h label_manager.h
-zebra_LDADD = $(otherobj) ../lib/libfrr.la ../lib/libfrrsnmp.la $(LIBCAP) $(Q_FPM_PB_CLIENT_LDOPTS)
+zebra_LDADD = $(otherobj) ../lib/libfrr.la $(LIBCAP) $(Q_FPM_PB_CLIENT_LDOPTS)
testzebra_LDADD = ../lib/libfrr.la $(LIBCAP)
zebra_DEPENDENCIES = $(otherobj)
+if SNMP
+module_LTLIBRARIES += zebra_snmp.la
+endif
+zebra_snmp_la_SOURCES = zebra_snmp.c
+zebra_snmp_la_LDFLAGS = -avoid-version -module -shared -export-dynamic
+zebra_snmp_la_LIBADD = ../lib/libfrrsnmp.la
+
EXTRA_DIST = if_ioctl.c if_ioctl_solaris.c if_netlink.c \
if_sysctl.c ipforward_proc.c \
ipforward_solaris.c ipforward_sysctl.c rt_netlink.c \