summaryrefslogtreecommitdiffstats
path: root/mgmtd/subdir.am
blob: 14544c4f050733c822fa3ceb3eae751b495836f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
#
# mgmtd -- Mangagement Daemon
#

# dist_examples_DATA += \
	# end

vtysh_daemons += mgmtd

# man8 += $(MANBUILD)/frr-mgmtd.8
# endif

clippy_scan += \
	mgmtd/mgmt_vty.c \
	# end

lib_LTLIBRARIES += mgmtd/libmgmt_be_nb.la
mgmtd_libmgmt_be_nb_la_SOURCES = \
	mgmtd/mgmt_be_nb.c \
	zebra/zebra_cli.c \
	# end
nodist_mgmtd_libmgmt_be_nb_la_SOURCES = \
	# end
mgmtd_libmgmt_be_nb_la_CFLAGS = $(AM_CFLAGS) -DINCLUDE_MGMTD_CMDDEFS_ONLY
mgmtd_libmgmt_be_nb_la_CPPFLAGS = $(AM_CPPFLAGS) -DINCLUDE_MGMTD_CMDDEFS_ONLY
mgmtd_libmgmt_be_nb_la_LDFLAGS = -version-info 0:0:0

noinst_LIBRARIES += mgmtd/libmgmtd.a
mgmtd_libmgmtd_a_SOURCES = \
	mgmtd/mgmt.c \
	mgmtd/mgmt_ds.c \
	mgmtd/mgmt_be_adapter.c \
	mgmtd/mgmt_fe_adapter.c \
	mgmtd/mgmt_history.c \
	mgmtd/mgmt_memory.c \
	mgmtd/mgmt_txn.c \
	mgmtd/mgmt_vty.c \
	# end

noinst_HEADERS += \
	mgmtd/mgmt.h \
	mgmtd/mgmt_be_adapter.h \
	mgmtd/mgmt_ds.h \
	mgmtd/mgmt_fe_adapter.h \
	mgmtd/mgmt_history.h \
	mgmtd/mgmt_memory.h \
	mgmtd/mgmt_txn.h \
	zebra/zebra_cli.h \
	# end

sbin_PROGRAMS += mgmtd/mgmtd

if MGMTD_TESTC
sbin_PROGRAMS += mgmtd/mgmtd_testc
mgmtd_mgmtd_testc_SOURCES = mgmtd/mgmt_testc.c
mgmtd_mgmtd_testc_LDADD = lib/libfrr.la
endif

mgmtd_mgmtd_SOURCES = \
	mgmtd/mgmt_main.c \
	# end
nodist_mgmtd_mgmtd_SOURCES = \
	yang/frr-zebra.yang.c \
	yang/frr-zebra-route-map.yang.c \
	yang/ietf/ietf-netconf.yang.c \
	yang/ietf/ietf-netconf-with-defaults.yang.c \
	# nothing
mgmtd_mgmtd_CFLAGS = $(AM_CFLAGS) -I ./
mgmtd_mgmtd_LDADD = mgmtd/libmgmtd.a lib/libfrr.la $(LIBCAP) $(LIBM) $(LIBYANG_LIBS) $(UST_LIBS)
mgmtd_mgmtd_LDADD += mgmtd/libmgmt_be_nb.la


if STATICD
nodist_mgmtd_mgmtd_SOURCES += yang/frr-bfdd.yang.c
else
if RIPD
nodist_mgmtd_mgmtd_SOURCES += yang/frr-bfdd.yang.c
endif
endif

if RIPD
nodist_mgmtd_mgmtd_SOURCES += \
	yang/frr-ripd.yang.c \
	# end
mgmtd_libmgmt_be_nb_la_SOURCES += \
	ripd/rip_cli.c \
	# end
endif

if RIPNGD
nodist_mgmtd_mgmtd_SOURCES += \
	yang/frr-ripngd.yang.c \
	# end
mgmtd_libmgmt_be_nb_la_SOURCES += \
	ripngd/ripng_cli.c \
	# end
endif

if STATICD
nodist_mgmtd_mgmtd_SOURCES += \
	yang/frr-staticd.yang.c \
	# end
nodist_mgmtd_libmgmt_be_nb_la_SOURCES += \
	staticd/static_vty.c \
	# end
endif