ospfd, ospfclient: Do not just include .c files in another .c

ospfclient.c includes .c files directly from ospfd.  Let's separate
these out a bit.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
(cherry picked from commit 253113bcb8)
This commit is contained in:
Donald Sharp 2022-12-05 11:55:14 -05:00 committed by Mergify
parent 73850c562f
commit 5d7402780e
3 changed files with 8 additions and 5 deletions

View file

@ -54,10 +54,6 @@
#include "ospf_apiclient.h"
/* *sigh* ... can't find a better way to hammer this into automake */
#include "ospfd/ospf_dump_api.c"
#include "ospfd/ospf_api.c"
XREF_SETUP();
DEFINE_MGROUP(OSPFCLIENT, "libospfapiclient");

View file

@ -27,6 +27,7 @@ endif
ospfclient_ospfclient_LDADD = \
ospfclient/libfrrospfapiclient.la \
ospfd/libfrrospfclient.a \
$(LIBCAP) \
# end

View file

@ -4,6 +4,7 @@
if OSPFD
noinst_LIBRARIES += ospfd/libfrrospf.a
noinst_LIBRARIES += ospfd/libfrrospfclient.a
sbin_PROGRAMS += ospfd/ospfd
vtysh_scan += \
ospfd/ospf_bfd.c \
@ -24,6 +25,11 @@ endif
man8 += $(MANBUILD)/frr-ospfd.8
endif
ospfd_libfrrospfclient_a_SOURCES = \
ospfd/ospf_api.c \
ospfd/ospf_dump_api.c \
#end
ospfd_libfrrospf_a_SOURCES = \
ospfd/ospf_abr.c \
ospfd/ospf_api.c \
@ -114,7 +120,7 @@ noinst_HEADERS += \
ospfd/ospf_zebra.h \
# end
ospfd_ospfd_LDADD = ospfd/libfrrospf.a lib/libfrr.la $(LIBCAP) $(LIBM)
ospfd_ospfd_LDADD = ospfd/libfrrospf.a ospfd/libfrrospfclient.a lib/libfrr.la $(LIBCAP) $(LIBM)
ospfd_ospfd_SOURCES = ospfd/ospf_main.c
ospfd_ospfd_snmp_la_SOURCES = ospfd/ospf_snmp.c