]> git.proxmox.com Git - mirror_frr.git/blob - bgpd/subdir.am
build: non-recursive bgpd & rfp
[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 dist_examples_DATA += \
10 bgpd/bgpd.conf.sample \
11 bgpd/bgpd.conf.sample2 \
12 bgpd/bgpd.conf.vnc.sample \
13 # end
14 if SNMP
15 module_LTLIBRARIES += bgpd/bgpd_snmp.la
16 endif
17 if RPKI
18 module_LTLIBRARIES += bgpd/bgpd_rpki.la
19 endif
20 endif
21
22 bgpd_libbgp_a_SOURCES = \
23 bgpd/bgp_advertise.c \
24 bgpd/bgp_aspath.c \
25 bgpd/bgp_attr.c \
26 bgpd/bgp_attr_evpn.c \
27 bgpd/bgp_bfd.c \
28 bgpd/bgp_clist.c \
29 bgpd/bgp_community.c \
30 bgpd/bgp_damp.c \
31 bgpd/bgp_debug.c \
32 bgpd/bgp_dump.c \
33 bgpd/bgp_ecommunity.c \
34 bgpd/bgp_encap_tlv.c \
35 bgpd/bgp_errors.c \
36 bgpd/bgp_evpn.c \
37 bgpd/bgp_evpn_vty.c \
38 bgpd/bgp_filter.c \
39 bgpd/bgp_flowspec.c \
40 bgpd/bgp_flowspec_util.c \
41 bgpd/bgp_flowspec_vty.c \
42 bgpd/bgp_fsm.c \
43 bgpd/bgp_io.c \
44 bgpd/bgp_keepalives.c \
45 bgpd/bgp_label.c \
46 bgpd/bgp_labelpool.c \
47 bgpd/bgp_lcommunity.c \
48 bgpd/bgp_memory.c \
49 bgpd/bgp_mpath.c \
50 bgpd/bgp_mplsvpn.c \
51 bgpd/bgp_network.c \
52 bgpd/bgp_nexthop.c \
53 bgpd/bgp_nht.c \
54 bgpd/bgp_open.c \
55 bgpd/bgp_packet.c \
56 bgpd/bgp_pbr.c \
57 bgpd/bgp_rd.c \
58 bgpd/bgp_regex.c \
59 bgpd/bgp_route.c \
60 bgpd/bgp_routemap.c \
61 bgpd/bgp_table.c \
62 bgpd/bgp_updgrp.c \
63 bgpd/bgp_updgrp_adv.c \
64 bgpd/bgp_updgrp_packet.c \
65 bgpd/bgp_vpn.c \
66 bgpd/bgp_vty.c \
67 bgpd/bgp_zebra.c \
68 bgpd/bgpd.c \
69 # end
70
71 if ENABLE_BGP_VNC
72 bgpd_libbgp_a_SOURCES += \
73 bgpd/rfapi/bgp_rfapi_cfg.c \
74 bgpd/rfapi/rfapi_import.c \
75 bgpd/rfapi/rfapi.c \
76 bgpd/rfapi/rfapi_ap.c \
77 bgpd/rfapi/rfapi_descriptor_rfp_utils.c \
78 bgpd/rfapi/rfapi_encap_tlv.c \
79 bgpd/rfapi/rfapi_nve_addr.c \
80 bgpd/rfapi/rfapi_monitor.c \
81 bgpd/rfapi/rfapi_rib.c \
82 bgpd/rfapi/rfapi_vty.c \
83 bgpd/rfapi/vnc_debug.c \
84 bgpd/rfapi/vnc_export_bgp.c \
85 bgpd/rfapi/vnc_export_table.c \
86 bgpd/rfapi/vnc_import_bgp.c \
87 bgpd/rfapi/vnc_zebra.c \
88 # end
89 endif
90
91 noinst_HEADERS += \
92 bgpd/bgp_advertise.h \
93 bgpd/bgp_aspath.h \
94 bgpd/bgp_attr.h \
95 bgpd/bgp_attr_evpn.h \
96 bgpd/bgp_bfd.h \
97 bgpd/bgp_clist.h \
98 bgpd/bgp_community.h \
99 bgpd/bgp_damp.h \
100 bgpd/bgp_debug.h \
101 bgpd/bgp_dump.h \
102 bgpd/bgp_ecommunity.h \
103 bgpd/bgp_encap_tlv.h \
104 bgpd/bgp_encap_types.h \
105 bgpd/bgp_errors.h \
106 bgpd/bgp_evpn.h \
107 bgpd/bgp_evpn_private.h \
108 bgpd/bgp_evpn_vty.h \
109 bgpd/bgp_filter.h \
110 bgpd/bgp_flowspec.h \
111 bgpd/bgp_flowspec_private.h \
112 bgpd/bgp_flowspec_util.h \
113 bgpd/bgp_fsm.h \
114 bgpd/bgp_io.h \
115 bgpd/bgp_keepalives.h \
116 bgpd/bgp_label.h \
117 bgpd/bgp_labelpool.h \
118 bgpd/bgp_lcommunity.h \
119 bgpd/bgp_memory.h \
120 bgpd/bgp_mpath.h \
121 bgpd/bgp_mplsvpn.h \
122 bgpd/bgp_network.h \
123 bgpd/bgp_nexthop.h \
124 bgpd/bgp_nht.h \
125 bgpd/bgp_open.h \
126 bgpd/bgp_packet.h \
127 bgpd/bgp_pbr.h \
128 bgpd/bgp_rd.h \
129 bgpd/bgp_regex.h \
130 bgpd/bgp_route.h \
131 bgpd/bgp_table.h \
132 bgpd/bgp_updgrp.h \
133 bgpd/bgp_vpn.h \
134 bgpd/bgp_vty.h \
135 bgpd/bgp_zebra.h \
136 bgpd/bgpd.h \
137 \
138 bgpd/rfapi/bgp_rfapi_cfg.h \
139 bgpd/rfapi/rfapi_import.h \
140 bgpd/rfapi/rfapi.h \
141 bgpd/rfapi/rfapi_ap.h \
142 bgpd/rfapi/rfapi_backend.h \
143 bgpd/rfapi/rfapi_descriptor_rfp_utils.h \
144 bgpd/rfapi/rfapi_encap_tlv.h \
145 bgpd/rfapi/rfapi_nve_addr.h \
146 bgpd/rfapi/rfapi_monitor.h \
147 bgpd/rfapi/rfapi_private.h \
148 bgpd/rfapi/rfapi_rib.h \
149 bgpd/rfapi/rfapi_vty.h \
150 bgpd/rfapi/vnc_debug.h \
151 bgpd/rfapi/vnc_export_bgp.h \
152 bgpd/rfapi/vnc_export_table.h \
153 bgpd/rfapi/vnc_import_bgp.h \
154 bgpd/rfapi/vnc_zebra.h \
155 bgpd/rfapi/vnc_export_bgp_p.h \
156 bgpd/rfapi/vnc_import_bgp_p.h \
157 bgpd/bgp_vnc_types.h \
158 # end
159
160 bgpd_bgpd_SOURCES = bgpd/bgp_main.c
161 bgpd_bgp_btoa_SOURCES = bgpd/bgp_btoa.c
162
163 if ENABLE_BGP_VNC
164 bgpd_bgpd_SOURCES += bgpd/rfapi/rfapi_descriptor_rfp_utils.c
165 bgpd_bgpd_CFLAGS = -Irfapi -I@top_srcdir@/$(RFPINC)
166
167 bgpd_bgp_btoa_SOURCES += bgpd/rfapi/rfapi_descriptor_rfp_utils.c
168 bgpd_bgp_btoa_CFLAGS = -Irfapi -I@top_srcdir@/$(RFPINC)
169
170 RFPLDADD = bgpd/rfp-example/librfp/librfp.a
171 else
172 RFPLDADD =
173 endif
174 bgpd_bgpd_LDADD = bgpd/libbgp.a $(RFPLDADD) lib/libfrr.la @LIBCAP@ @LIBM@
175 bgpd_bgp_btoa_LDADD = bgpd/libbgp.a $(RFPLDADD) lib/libfrr.la @LIBCAP@ @LIBM@
176
177 bgpd_bgpd_snmp_la_SOURCES = bgpd/bgp_snmp.c
178 bgpd_bgpd_snmp_la_CFLAGS = $(WERROR) $(SNMP_CFLAGS) -std=gnu99
179 bgpd_bgpd_snmp_la_LDFLAGS = -avoid-version -module -shared -export-dynamic
180 bgpd_bgpd_snmp_la_LIBADD = lib/libfrrsnmp.la
181
182 bgpd_bgpd_rpki_la_SOURCES = bgpd/bgp_rpki.c
183 bgpd_bgpd_rpki_la_CFLAGS = $(WERROR) $(RTRLIB_CFLAGS)
184 bgpd_bgpd_rpki_la_LDFLAGS = -avoid-version -module -shared -export-dynamic
185 bgpd_bgpd_rpki_la_LIBADD = $(RTRLIB_LIBS)
186
187 bgpd/bgp_vty_clippy.c: $(CLIPPY_DEPS)
188 bgpd/bgp_vty.$(OBJEXT): bgpd/bgp_vty_clippy.c
189 bgpd/bgp_route_clippy.c: $(CLIPPY_DEPS)
190 bgpd/bgp_route.$(OBJEXT): bgpd/bgp_route_clippy.c
191 bgpd/bgp_debug_clippy.c: $(CLIPPY_DEPS)
192 bgpd/bgp_debug.$(OBJEXT): bgpd/bgp_debug_clippy.c
193 bgpd/bgp_rpki_clippy.c: $(CLIPPY_DEPS)
194 $(AUTOMAKE_DUMMY)bgpd/bgpd_bgpd_rpki_la-bgp_rpki.lo: bgpd/bgp_rpki_clippy.c
195 $(AUTOMAKE_DUMMY)bgpd/bgpd_rpki_la-bgp_rpki.lo: bgpd/bgp_rpki_clippy.c
196
197 EXTRA_DIST += bgpd/BGP4-MIB.txt