]> git.proxmox.com Git - mirror_frr.git/blob - bgpd/subdir.am
Merge pull request #12187 from mjstapp/mjs_fix_bgp_allowas
[mirror_frr.git] / bgpd / subdir.am
1 #
2 # bgpd
3 #
4
5 if BGPD
6 noinst_LIBRARIES += bgpd/libbgp.a
7 sbin_PROGRAMS += bgpd/bgpd
8 noinst_PROGRAMS += bgpd/bgp_btoa
9 vtysh_scan += \
10 bgpd/bgp_bfd.c \
11 bgpd/bgp_debug.c \
12 bgpd/bgp_dump.c \
13 bgpd/bgp_evpn_mh.c \
14 bgpd/bgp_evpn_vty.c \
15 bgpd/bgp_filter.c \
16 bgpd/bgp_labelpool.c \
17 bgpd/bgp_mplsvpn.c \
18 bgpd/bgp_nexthop.c \
19 bgpd/bgp_route.c \
20 bgpd/bgp_routemap.c \
21 bgpd/bgp_vty.c \
22 bgpd/bgp_flowspec_vty.c \
23 # end
24
25 # can be loaded as DSO - always include for vtysh
26 vtysh_scan += bgpd/bgp_rpki.c
27 vtysh_scan += bgpd/bgp_bmp.c
28
29 vtysh_daemons += bgpd
30
31 if ENABLE_BGP_VNC
32 vtysh_scan += \
33 bgpd/rfapi/bgp_rfapi_cfg.c \
34 bgpd/rfapi/rfapi.c \
35 bgpd/rfapi/rfapi_vty.c \
36 bgpd/rfapi/vnc_debug.c \
37 # end
38 endif
39 if SNMP
40 module_LTLIBRARIES += bgpd/bgpd_snmp.la
41 endif
42 if RPKI
43 module_LTLIBRARIES += bgpd/bgpd_rpki.la
44 endif
45 if BGP_BMP
46 module_LTLIBRARIES += bgpd/bgpd_bmp.la
47 endif
48 man8 += $(MANBUILD)/frr-bgpd.8
49 endif
50
51 bgpd_libbgp_a_SOURCES = \
52 bgpd/bgp_addpath.c \
53 bgpd/bgp_advertise.c \
54 bgpd/bgp_aspath.c \
55 bgpd/bgp_attr.c \
56 bgpd/bgp_attr_evpn.c \
57 bgpd/bgp_bfd.c \
58 bgpd/bgp_clist.c \
59 bgpd/bgp_community.c \
60 bgpd/bgp_community_alias.c \
61 bgpd/bgp_conditional_adv.c \
62 bgpd/bgp_damp.c \
63 bgpd/bgp_debug.c \
64 bgpd/bgp_dump.c \
65 bgpd/bgp_ecommunity.c \
66 bgpd/bgp_encap_tlv.c \
67 bgpd/bgp_errors.c \
68 bgpd/bgp_evpn.c \
69 bgpd/bgp_evpn_mh.c \
70 bgpd/bgp_evpn_vty.c \
71 bgpd/bgp_filter.c \
72 bgpd/bgp_flowspec.c \
73 bgpd/bgp_flowspec_util.c \
74 bgpd/bgp_flowspec_vty.c \
75 bgpd/bgp_fsm.c \
76 bgpd/bgp_io.c \
77 bgpd/bgp_keepalives.c \
78 bgpd/bgp_label.c \
79 bgpd/bgp_labelpool.c \
80 bgpd/bgp_lcommunity.c \
81 bgpd/bgp_mac.c \
82 bgpd/bgp_memory.c \
83 bgpd/bgp_mpath.c \
84 bgpd/bgp_mplsvpn.c \
85 bgpd/bgp_network.c \
86 bgpd/bgp_nexthop.c \
87 bgpd/bgp_nht.c \
88 bgpd/bgp_open.c \
89 bgpd/bgp_packet.c \
90 bgpd/bgp_pbr.c \
91 bgpd/bgp_rd.c \
92 bgpd/bgp_regex.c \
93 bgpd/bgp_route.c \
94 bgpd/bgp_routemap.c \
95 bgpd/bgp_routemap_nb.c \
96 bgpd/bgp_routemap_nb_config.c \
97 bgpd/bgp_script.c \
98 bgpd/bgp_table.c \
99 bgpd/bgp_updgrp.c \
100 bgpd/bgp_updgrp_adv.c \
101 bgpd/bgp_updgrp_packet.c \
102 bgpd/bgp_vpn.c \
103 bgpd/bgp_vty.c \
104 bgpd/bgp_zebra.c \
105 bgpd/bgpd.c \
106 bgpd/bgp_orr.c \
107 bgpd/bgp_trace.c \
108 # end
109
110 if ENABLE_BGP_VNC
111 bgpd_libbgp_a_SOURCES += \
112 bgpd/rfapi/bgp_rfapi_cfg.c \
113 bgpd/rfapi/rfapi_import.c \
114 bgpd/rfapi/rfapi.c \
115 bgpd/rfapi/rfapi_ap.c \
116 bgpd/rfapi/rfapi_descriptor_rfp_utils.c \
117 bgpd/rfapi/rfapi_encap_tlv.c \
118 bgpd/rfapi/rfapi_nve_addr.c \
119 bgpd/rfapi/rfapi_monitor.c \
120 bgpd/rfapi/rfapi_rib.c \
121 bgpd/rfapi/rfapi_vty.c \
122 bgpd/rfapi/vnc_debug.c \
123 bgpd/rfapi/vnc_export_bgp.c \
124 bgpd/rfapi/vnc_export_table.c \
125 bgpd/rfapi/vnc_import_bgp.c \
126 bgpd/rfapi/vnc_zebra.c \
127 # end
128 endif
129
130 noinst_HEADERS += \
131 bgpd/bgp_addpath.h \
132 bgpd/bgp_addpath_types.h \
133 bgpd/bgp_advertise.h \
134 bgpd/bgp_aspath.h \
135 bgpd/bgp_attr.h \
136 bgpd/bgp_attr_evpn.h \
137 bgpd/bgp_bfd.h \
138 bgpd/bgp_clist.h \
139 bgpd/bgp_community.h \
140 bgpd/bgp_community_alias.h \
141 bgpd/bgp_conditional_adv.h \
142 bgpd/bgp_damp.h \
143 bgpd/bgp_debug.h \
144 bgpd/bgp_dump.h \
145 bgpd/bgp_bmp.h \
146 bgpd/bgp_ecommunity.h \
147 bgpd/bgp_encap_tlv.h \
148 bgpd/bgp_encap_types.h \
149 bgpd/bgp_errors.h \
150 bgpd/bgp_evpn.h \
151 bgpd/bgp_evpn_mh.h \
152 bgpd/bgp_evpn_private.h \
153 bgpd/bgp_evpn_vty.h \
154 bgpd/bgp_filter.h \
155 bgpd/bgp_flowspec.h \
156 bgpd/bgp_flowspec_private.h \
157 bgpd/bgp_flowspec_util.h \
158 bgpd/bgp_fsm.h \
159 bgpd/bgp_io.h \
160 bgpd/bgp_keepalives.h \
161 bgpd/bgp_label.h \
162 bgpd/bgp_labelpool.h \
163 bgpd/bgp_lcommunity.h \
164 bgpd/bgp_mac.h \
165 bgpd/bgp_memory.h \
166 bgpd/bgp_mpath.h \
167 bgpd/bgp_mplsvpn.h \
168 bgpd/bgp_mplsvpn_snmp.h \
169 bgpd/bgp_network.h \
170 bgpd/bgp_nexthop.h \
171 bgpd/bgp_nht.h \
172 bgpd/bgp_open.h \
173 bgpd/bgp_packet.h \
174 bgpd/bgp_pbr.h \
175 bgpd/bgp_rd.h \
176 bgpd/bgp_regex.h \
177 bgpd/bgp_rpki.h \
178 bgpd/bgp_route.h \
179 bgpd/bgp_routemap_nb.h \
180 bgpd/bgp_script.h \
181 bgpd/bgp_table.h \
182 bgpd/bgp_updgrp.h \
183 bgpd/bgp_vpn.h \
184 bgpd/bgp_vty.h \
185 bgpd/bgp_zebra.h \
186 bgpd/bgpd.h \
187 bgpd/bgp_orr.h \
188 bgpd/bgp_trace.h \
189 \
190 bgpd/rfapi/bgp_rfapi_cfg.h \
191 bgpd/rfapi/rfapi_import.h \
192 bgpd/rfapi/rfapi.h \
193 bgpd/rfapi/rfapi_ap.h \
194 bgpd/rfapi/rfapi_backend.h \
195 bgpd/rfapi/rfapi_descriptor_rfp_utils.h \
196 bgpd/rfapi/rfapi_encap_tlv.h \
197 bgpd/rfapi/rfapi_nve_addr.h \
198 bgpd/rfapi/rfapi_monitor.h \
199 bgpd/rfapi/rfapi_private.h \
200 bgpd/rfapi/rfapi_rib.h \
201 bgpd/rfapi/rfapi_vty.h \
202 bgpd/rfapi/vnc_debug.h \
203 bgpd/rfapi/vnc_export_bgp.h \
204 bgpd/rfapi/vnc_export_table.h \
205 bgpd/rfapi/vnc_import_bgp.h \
206 bgpd/rfapi/vnc_zebra.h \
207 bgpd/rfapi/vnc_export_bgp_p.h \
208 bgpd/rfapi/vnc_import_bgp_p.h \
209 bgpd/bgp_vnc_types.h \
210 # end
211
212 bgpd_bgpd_SOURCES = bgpd/bgp_main.c
213 bgpd_bgp_btoa_SOURCES = bgpd/bgp_btoa.c
214
215 # RFPLDADD is set in bgpd/rfp-example/librfp/subdir.am
216 bgpd_bgpd_LDADD = bgpd/libbgp.a $(RFPLDADD) lib/libfrr.la $(LIBYANG_LIBS) $(LIBCAP) $(LIBM) $(UST_LIBS)
217 bgpd_bgp_btoa_LDADD = bgpd/libbgp.a $(RFPLDADD) lib/libfrr.la $(LIBYANG_LIBS) $(LIBCAP) $(LIBM) $(UST_LIBS)
218
219 bgpd_bgpd_snmp_la_SOURCES = bgpd/bgp_snmp.c bgpd/bgp_mplsvpn_snmp.c
220 bgpd_bgpd_snmp_la_CFLAGS = $(AM_CFLAGS) $(SNMP_CFLAGS) -std=gnu11
221 bgpd_bgpd_snmp_la_LDFLAGS = $(MODULE_LDFLAGS)
222 bgpd_bgpd_snmp_la_LIBADD = lib/libfrrsnmp.la
223
224 bgpd_bgpd_rpki_la_SOURCES = bgpd/bgp_rpki.c
225 bgpd_bgpd_rpki_la_CFLAGS = $(AM_CFLAGS) $(RTRLIB_CFLAGS)
226 bgpd_bgpd_rpki_la_LDFLAGS = $(MODULE_LDFLAGS)
227 bgpd_bgpd_rpki_la_LIBADD = $(RTRLIB_LIBS)
228
229 bgpd_bgpd_bmp_la_SOURCES = bgpd/bgp_bmp.c
230 bgpd_bgpd_bmp_la_LIBADD = lib/libfrrcares.la
231 bgpd_bgpd_bmp_la_LDFLAGS = $(MODULE_LDFLAGS)
232
233 clippy_scan += \
234 bgpd/bgp_bmp.c \
235 bgpd/bgp_debug.c \
236 bgpd/bgp_evpn_vty.c \
237 bgpd/bgp_labelpool.c \
238 bgpd/bgp_route.c \
239 bgpd/bgp_routemap.c \
240 bgpd/bgp_rpki.c \
241 bgpd/bgp_vty.c \
242 # end
243
244 nodist_bgpd_bgpd_SOURCES = \
245 yang/frr-bgp-types.yang.c \
246 yang/frr-bgp.yang.c \
247 yang/frr-bgp-common-structure.yang.c \
248 yang/frr-bgp-common.yang.c \
249 yang/frr-bgp-common-multiprotocol.yang.c \
250 yang/frr-bgp-neighbor.yang.c \
251 yang/frr-bgp-peer-group.yang.c \
252 yang/frr-bgp-bmp.yang.c \
253 yang/frr-bgp-rpki.yang.c \
254 yang/frr-deviations-bgp-datacenter.yang.c \
255 yang/frr-bgp-filter.yang.c \
256 yang/frr-bgp-route-map.yang.c \
257 # end