Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 1 | # Copyright (c) 2015 Cisco and/or its affiliates. |
| 2 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 3 | # you may not use this file except in compliance with the License. |
| 4 | # You may obtain a copy of the License at: |
| 5 | # |
| 6 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 7 | # |
| 8 | # Unless required by applicable law or agreed to in writing, software |
| 9 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 10 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 11 | # See the License for the specific language governing permissions and |
| 12 | # limitations under the License. |
| 13 | |
| 14 | AUTOMAKE_OPTIONS = foreign subdir-objects |
| 15 | |
Neale Ranns | 0bfe5d8 | 2016-08-25 15:29:12 +0100 | [diff] [blame] | 16 | AM_CFLAGS = -Wall -Werror @DPDK@ @IPSEC@ @IPV6SR@ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 17 | |
| 18 | libvnet_la_SOURCES = |
Todd Foggoa | 4ea4ecd | 2016-03-17 14:22:34 -0400 | [diff] [blame] | 19 | libvnetplugin_la_SOURCES = |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 20 | nobase_include_HEADERS = |
Dave Barach | 4e281a4 | 2015-12-14 11:13:29 -0500 | [diff] [blame] | 21 | noinst_PROGRAMS = |
Filip Tehlar | 254b036 | 2016-04-07 10:04:34 +0200 | [diff] [blame] | 22 | TESTS = |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 23 | |
Ole Troan | d575e69 | 2016-08-25 12:26:47 +0200 | [diff] [blame] | 24 | dpdk_libs = |
| 25 | if WITH_DPDK |
| 26 | dpdk_libs += -l:libdpdk.a |
| 27 | endif |
| 28 | |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 29 | ######################################## |
| 30 | # Generic stuff |
| 31 | ######################################## |
| 32 | libvnet_la_SOURCES += \ |
| 33 | vnet/config.c \ |
Damjan Marion | 0247b46 | 2016-06-08 01:37:11 +0200 | [diff] [blame] | 34 | vnet/handoff.c \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 35 | vnet/interface.c \ |
| 36 | vnet/interface_cli.c \ |
| 37 | vnet/interface_format.c \ |
| 38 | vnet/interface_output.c \ |
| 39 | vnet/misc.c \ |
| 40 | vnet/replication.c \ |
| 41 | vnet/rewrite.c |
| 42 | |
| 43 | nobase_include_HEADERS += \ |
| 44 | vnet/api_errno.h \ |
| 45 | vnet/buffer.h \ |
| 46 | vnet/config.h \ |
| 47 | vnet/global_funcs.h \ |
Damjan Marion | 0247b46 | 2016-06-08 01:37:11 +0200 | [diff] [blame] | 48 | vnet/handoff.h \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 49 | vnet/interface.h \ |
| 50 | vnet/interface_funcs.h \ |
| 51 | vnet/l3_types.h \ |
| 52 | vnet/pipeline.h \ |
| 53 | vnet/replication.h \ |
| 54 | vnet/rewrite.h \ |
| 55 | vnet/vnet.h |
| 56 | |
| 57 | ######################################## |
| 58 | # Policer infra |
| 59 | ######################################## |
| 60 | |
| 61 | libvnet_la_SOURCES += \ |
| 62 | vnet/policer/node_funcs.c \ |
| 63 | vnet/policer/policer.c \ |
| 64 | vnet/policer/xlate.c |
| 65 | |
| 66 | nobase_include_HEADERS += \ |
| 67 | vnet/policer/police.h \ |
Matus Fabian | 65fcd4d | 2016-05-13 05:44:48 -0700 | [diff] [blame] | 68 | vnet/policer/policer.h \ |
| 69 | vnet/policer/fix_types.h \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 70 | vnet/policer/xlate.h |
| 71 | |
Dave Barach | c07bf5d | 2016-02-17 17:52:26 -0500 | [diff] [blame] | 72 | ######################################## |
| 73 | # Cop - junk filter |
| 74 | ######################################## |
| 75 | |
| 76 | libvnet_la_SOURCES += \ |
| 77 | vnet/cop/cop.c \ |
| 78 | vnet/cop/node1.c \ |
| 79 | vnet/cop/ip4_whitelist.c \ |
| 80 | vnet/cop/ip6_whitelist.c |
| 81 | |
| 82 | nobase_include_HEADERS += \ |
| 83 | vnet/cop/cop.h |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 84 | |
| 85 | ######################################## |
| 86 | # Layer 2 protocols go here |
| 87 | ######################################## |
| 88 | |
| 89 | ######################################## |
| 90 | # Layer 2 protocol: Ethernet |
| 91 | ######################################## |
| 92 | libvnet_la_SOURCES += \ |
| 93 | vnet/ethernet/arp.c \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 94 | vnet/ethernet/format.c \ |
| 95 | vnet/ethernet/init.c \ |
| 96 | vnet/ethernet/interface.c \ |
| 97 | vnet/ethernet/node.c \ |
| 98 | vnet/ethernet/pg.c |
| 99 | |
| 100 | nobase_include_HEADERS += \ |
| 101 | vnet/ethernet/arp_packet.h \ |
| 102 | vnet/ethernet/error.def \ |
| 103 | vnet/ethernet/ethernet.h \ |
| 104 | vnet/ethernet/packet.h \ |
| 105 | vnet/ethernet/types.def |
| 106 | |
| 107 | ######################################## |
| 108 | # Layer 2 protocol: Ethernet bridging |
| 109 | ######################################## |
| 110 | libvnet_la_SOURCES += \ |
| 111 | vnet/l2/feat_bitmap.c \ |
| 112 | vnet/l2/l2_bd.c \ |
| 113 | vnet/l2/l2_bvi.c \ |
Dave Barach | b84a3e5 | 2016-08-30 17:01:52 -0400 | [diff] [blame] | 114 | vnet/l2/l2_input_classify.c \ |
| 115 | vnet/l2/l2_output_classify.c \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 116 | vnet/l2/l2_efp_filter.c \ |
| 117 | vnet/l2/l2_fib.c \ |
| 118 | vnet/l2/l2_flood.c \ |
| 119 | vnet/l2/l2_fwd.c \ |
| 120 | vnet/l2/l2_input_acl.c \ |
| 121 | vnet/l2/l2_input.c \ |
| 122 | vnet/l2/l2_input_vtr.c \ |
| 123 | vnet/l2/l2_learn.c \ |
| 124 | vnet/l2/l2_output_acl.c \ |
| 125 | vnet/l2/l2_output.c \ |
| 126 | vnet/l2/l2_patch.c \ |
Pierre Pfister | d6f5b96 | 2016-03-21 16:17:52 +0000 | [diff] [blame] | 127 | vnet/l2/l2_rw.c \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 128 | vnet/l2/l2_vtr.c \ |
| 129 | vnet/l2/l2_xcrw.c |
| 130 | |
| 131 | nobase_include_HEADERS += \ |
| 132 | vnet/l2/feat_bitmap.h \ |
| 133 | vnet/l2/l2_input.h \ |
| 134 | vnet/l2/l2_output.h \ |
| 135 | vnet/l2/l2_vtr.h \ |
| 136 | vnet/l2/l2_input_vtr.h \ |
| 137 | vnet/l2/l2_efp_filter.h \ |
| 138 | vnet/l2/l2_fwd.h \ |
| 139 | vnet/l2/l2_bd.h \ |
| 140 | vnet/l2/l2_bvi.h \ |
| 141 | vnet/l2/l2_flood.h \ |
| 142 | vnet/l2/l2_fib.h \ |
Pierre Pfister | d6f5b96 | 2016-03-21 16:17:52 +0000 | [diff] [blame] | 143 | vnet/l2/l2_rw.h \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 144 | vnet/l2/l2_xcrw.h \ |
| 145 | vnet/l2/l2_classify.h |
| 146 | |
| 147 | ######################################## |
| 148 | # Layer 2 protocol: SRP |
| 149 | ######################################## |
| 150 | libvnet_la_SOURCES += \ |
| 151 | vnet/srp/format.c \ |
| 152 | vnet/srp/interface.c \ |
| 153 | vnet/srp/node.c \ |
| 154 | vnet/srp/pg.c |
| 155 | |
| 156 | nobase_include_HEADERS += \ |
| 157 | vnet/srp/packet.h \ |
| 158 | vnet/srp/srp.h |
| 159 | |
| 160 | ######################################## |
| 161 | # Layer 2 protocol: PPP |
| 162 | ######################################## |
| 163 | libvnet_la_SOURCES += \ |
| 164 | vnet/ppp/node.c \ |
| 165 | vnet/ppp/pg.c \ |
| 166 | vnet/ppp/ppp.c |
| 167 | |
| 168 | nobase_include_HEADERS += \ |
| 169 | vnet/ppp/error.def \ |
| 170 | vnet/ppp/ppp.h \ |
| 171 | vnet/ppp/packet.h |
| 172 | |
| 173 | ######################################## |
| 174 | # Layer 2 protocol: HDLC |
| 175 | ######################################## |
| 176 | libvnet_la_SOURCES += \ |
| 177 | vnet/hdlc/node.c \ |
| 178 | vnet/hdlc/pg.c \ |
| 179 | vnet/hdlc/hdlc.c |
| 180 | |
| 181 | nobase_include_HEADERS += \ |
| 182 | vnet/hdlc/error.def \ |
| 183 | vnet/hdlc/hdlc.h \ |
| 184 | vnet/hdlc/packet.h |
| 185 | |
| 186 | ######################################## |
| 187 | # Layer 2 protocol: LLC |
| 188 | ######################################## |
| 189 | libvnet_la_SOURCES += \ |
| 190 | vnet/llc/llc.c \ |
| 191 | vnet/llc/node.c \ |
| 192 | vnet/llc/pg.c |
| 193 | |
| 194 | nobase_include_HEADERS += \ |
| 195 | vnet/llc/llc.h |
| 196 | |
| 197 | ######################################## |
| 198 | # Layer 2 protocol: SNAP |
| 199 | ######################################## |
| 200 | libvnet_la_SOURCES += \ |
| 201 | vnet/snap/snap.c \ |
| 202 | vnet/snap/node.c \ |
| 203 | vnet/snap/pg.c |
| 204 | |
| 205 | nobase_include_HEADERS += \ |
| 206 | vnet/snap/snap.h |
| 207 | |
| 208 | ######################################## |
| 209 | # Layer 2 / vxlan |
| 210 | ######################################## |
| 211 | libvnet_la_SOURCES += \ |
| 212 | vnet/vxlan/vxlan.c \ |
| 213 | vnet/vxlan/encap.c \ |
| 214 | vnet/vxlan/decap.c |
| 215 | |
| 216 | nobase_include_HEADERS += \ |
| 217 | vnet/vxlan/vxlan.h \ |
Dave Barach | ced48e7 | 2016-02-08 15:57:35 -0500 | [diff] [blame] | 218 | vnet/vxlan/vxlan_packet.h \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 219 | vnet/vxlan/vxlan_error.def |
| 220 | |
| 221 | ######################################## |
Dave Barach | ced48e7 | 2016-02-08 15:57:35 -0500 | [diff] [blame] | 222 | # Layer 2 / CDP |
| 223 | ######################################## |
| 224 | libvnet_la_SOURCES += \ |
| 225 | vnet/cdp/cdp_input.c \ |
| 226 | vnet/cdp/cdp_node.c \ |
| 227 | vnet/cdp/cdp_periodic.c |
| 228 | |
| 229 | nobase_include_HEADERS += \ |
| 230 | vnet/cdp/cdp_protocol.h |
| 231 | |
| 232 | ######################################## |
Klement Sekera | de4582b | 2016-09-13 12:27:08 +0200 | [diff] [blame] | 233 | # Layer 2 / LLDP |
| 234 | ######################################## |
| 235 | libvnet_la_SOURCES += \ |
| 236 | vnet/lldp/lldp_input.c \ |
| 237 | vnet/lldp/lldp_node.c \ |
| 238 | vnet/lldp/lldp_output.c \ |
| 239 | vnet/lldp/lldp_cli.c |
| 240 | |
| 241 | nobase_include_HEADERS += \ |
| 242 | vnet/lldp/lldp_protocol.h |
| 243 | |
| 244 | ######################################## |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 245 | # Layer 2/3 "classify" |
| 246 | ######################################## |
| 247 | libvnet_la_SOURCES += \ |
| 248 | vnet/classify/vnet_classify.c \ |
| 249 | vnet/classify/ip_classify.c \ |
| 250 | vnet/classify/input_acl.c \ |
Matus Fabian | 70e6a8d | 2016-06-20 08:10:42 -0700 | [diff] [blame] | 251 | vnet/classify/policer_classify.c \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 252 | vnet/classify/vnet_classify.h |
| 253 | |
| 254 | nobase_include_HEADERS += \ |
| 255 | vnet/classify/vnet_classify.h \ |
Matus Fabian | 70e6a8d | 2016-06-20 08:10:42 -0700 | [diff] [blame] | 256 | vnet/classify/input_acl.h \ |
| 257 | vnet/classify/policer_classify.h |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 258 | |
| 259 | ######################################## |
| 260 | # Layer 3 protocols go here |
| 261 | ######################################## |
| 262 | |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 263 | ######################################## |
| 264 | # Layer 3 protocol: IP v4/v6 |
| 265 | ######################################## |
| 266 | libvnet_la_SOURCES += \ |
| 267 | vnet/ip/format.c \ |
| 268 | vnet/ip/icmp4.c \ |
| 269 | vnet/ip/icmp6.c \ |
Dave Barach | d653460 | 2016-06-14 18:38:02 -0400 | [diff] [blame] | 270 | vnet/ip/ip_feature_registration.c \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 271 | vnet/ip/ip46_cli.c \ |
Andrew Yourtchenko | 7e68220 | 2016-08-04 13:39:35 +0000 | [diff] [blame] | 272 | vnet/ip/ping.c \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 273 | vnet/ip/ip4_format.c \ |
| 274 | vnet/ip/ip4_forward.c \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 275 | vnet/ip/ip4_input.c \ |
| 276 | vnet/ip/ip4_mtrie.c \ |
| 277 | vnet/ip/ip4_pg.c \ |
| 278 | vnet/ip/ip4_source_check.c \ |
Dave Barach | 6f9bca2 | 2016-04-30 10:25:32 -0400 | [diff] [blame] | 279 | vnet/ip/ip4_source_and_port_range_check.c \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 280 | vnet/ip/ip6_format.c \ |
| 281 | vnet/ip/ip6_forward.c \ |
| 282 | vnet/ip/ip6_hop_by_hop.c \ |
| 283 | vnet/ip/ip6_input.c \ |
| 284 | vnet/ip/ip6_neighbor.c \ |
| 285 | vnet/ip/ip6_pg.c \ |
| 286 | vnet/ip/ip_checksum.c \ |
| 287 | vnet/ip/ip.h \ |
| 288 | vnet/ip/ip_init.c \ |
| 289 | vnet/ip/lookup.c \ |
| 290 | vnet/ip/udp_format.c \ |
| 291 | vnet/ip/udp_init.c \ |
| 292 | vnet/ip/udp_local.c \ |
Alexander Popovsky (apopovsk) | 4a7e58b | 2016-10-05 22:31:23 -0700 | [diff] [blame] | 293 | vnet/ip/punt.c \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 294 | vnet/ip/udp_pg.c \ |
| 295 | vnet/ip/ip_input_acl.c \ |
| 296 | vnet/ip/ip_frag.c |
| 297 | |
| 298 | nobase_include_HEADERS += \ |
| 299 | vnet/ip/format.h \ |
| 300 | vnet/ip/icmp46_packet.h \ |
Ole Troan | 92eade1 | 2016-01-13 20:17:08 +0100 | [diff] [blame] | 301 | vnet/ip/icmp4.h \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 302 | vnet/ip/icmp6.h \ |
| 303 | vnet/ip/igmp_packet.h \ |
| 304 | vnet/ip/ip.h \ |
Dave Barach | d653460 | 2016-06-14 18:38:02 -0400 | [diff] [blame] | 305 | vnet/ip/ip_feature_registration.h \ |
Dave Barach | 6f9bca2 | 2016-04-30 10:25:32 -0400 | [diff] [blame] | 306 | vnet/ip/ip_source_and_port_range_check.h \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 307 | vnet/ip/ip4.h \ |
| 308 | vnet/ip/ip4_mtrie.h \ |
| 309 | vnet/ip/ip4_error.h \ |
| 310 | vnet/ip/ip4_packet.h \ |
| 311 | vnet/ip/ip6.h \ |
| 312 | vnet/ip/ip6_error.h \ |
| 313 | vnet/ip/ip6_hop_by_hop.h \ |
| 314 | vnet/ip/ip6_hop_by_hop_packet.h \ |
| 315 | vnet/ip/ip6_packet.h \ |
| 316 | vnet/ip/lookup.h \ |
| 317 | vnet/ip/ip_packet.h \ |
| 318 | vnet/ip/ports.def \ |
| 319 | vnet/ip/protocols.def \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 320 | vnet/ip/tcp_packet.h \ |
| 321 | vnet/ip/udp.h \ |
| 322 | vnet/ip/udp_error.def \ |
Alexander Popovsky (apopovsk) | 4a7e58b | 2016-10-05 22:31:23 -0700 | [diff] [blame] | 323 | vnet/ip/udp_packet.h \ |
| 324 | vnet/ip/punt_error.def \ |
| 325 | vnet/ip/punt.h |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 326 | |
| 327 | ######################################## |
| 328 | # Layer 3 protocol: IPSec |
| 329 | ######################################## |
Dave Barach | 61efa14 | 2016-01-22 08:23:09 -0500 | [diff] [blame] | 330 | if WITH_IPSEC |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 331 | libvnet_la_SOURCES += \ |
| 332 | vnet/ipsec/ipsec.c \ |
| 333 | vnet/ipsec/ipsec_cli.c \ |
| 334 | vnet/ipsec/ipsec_format.c \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 335 | vnet/ipsec/ipsec_input.c \ |
| 336 | vnet/ipsec/ipsec_if.c \ |
| 337 | vnet/ipsec/ipsec_if_in.c \ |
| 338 | vnet/ipsec/ipsec_if_out.c \ |
| 339 | vnet/ipsec/esp_encrypt.c \ |
| 340 | vnet/ipsec/esp_decrypt.c \ |
| 341 | vnet/ipsec/ikev2.c \ |
| 342 | vnet/ipsec/ikev2_crypto.c \ |
| 343 | vnet/ipsec/ikev2_cli.c \ |
| 344 | vnet/ipsec/ikev2_payload.c \ |
| 345 | vnet/ipsec/ikev2_format.c |
Dave Barach | 61efa14 | 2016-01-22 08:23:09 -0500 | [diff] [blame] | 346 | endif |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 347 | |
Damjan Marion | e936bbe | 2016-02-25 23:17:38 +0100 | [diff] [blame] | 348 | libvnet_la_SOURCES += \ |
| 349 | vnet/ipsec/ipsec_output.c |
| 350 | |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 351 | nobase_include_HEADERS += \ |
| 352 | vnet/ipsec/ipsec.h \ |
| 353 | vnet/ipsec/esp.h \ |
| 354 | vnet/ipsec/ikev2.h \ |
| 355 | vnet/ipsec/ikev2_priv.h |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 356 | |
| 357 | ######################################## |
| 358 | # Layer 3 protocol: osi |
| 359 | ######################################## |
| 360 | libvnet_la_SOURCES += \ |
| 361 | vnet/osi/node.c \ |
| 362 | vnet/osi/osi.c \ |
| 363 | vnet/osi/pg.c |
| 364 | |
| 365 | nobase_include_HEADERS += \ |
| 366 | vnet/osi/osi.h |
| 367 | |
| 368 | ######################################## |
| 369 | # Layer 3 protocol: MAP |
| 370 | ######################################## |
| 371 | libvnet_la_SOURCES += \ |
| 372 | vnet/map/map.c \ |
Neale Ranns | 0bfe5d8 | 2016-08-25 15:29:12 +0100 | [diff] [blame] | 373 | vnet/map/map_dpo.c \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 374 | vnet/map/ip4_map.c \ |
| 375 | vnet/map/ip6_map.c \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 376 | vnet/map/ip4_map_t.c \ |
| 377 | vnet/map/ip6_map_t.c |
| 378 | |
| 379 | nobase_include_HEADERS += \ |
Neale Ranns | 0bfe5d8 | 2016-08-25 15:29:12 +0100 | [diff] [blame] | 380 | vnet/map/map.h \ |
| 381 | vnet/map/map_dpo.h |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 382 | |
Ole Troan | d575e69 | 2016-08-25 12:26:47 +0200 | [diff] [blame] | 383 | if ENABLE_TESTS |
| 384 | TESTS += test_map |
| 385 | test_map_SOURCES = \ |
| 386 | vnet/map/test.c |
| 387 | test_map_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG |
| 388 | |
| 389 | test_map_LDADD = libvnet.la -lvppinfra -lvlib \ |
| 390 | -lpthread -lvlibmemory -lvlibapi -lvlib_unix \ |
| 391 | -ldl -lsvm -lrt |
| 392 | |
| 393 | test_map_LDFLAGS = -static |
| 394 | endif |
| 395 | |
| 396 | |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 397 | ######################################## |
| 398 | # Tunnel protocol: gre |
| 399 | ######################################## |
| 400 | libvnet_la_SOURCES += \ |
| 401 | vnet/gre/gre.c \ |
| 402 | vnet/gre/node.c \ |
| 403 | vnet/gre/interface.c \ |
| 404 | vnet/gre/pg.c |
| 405 | |
| 406 | nobase_include_HEADERS += \ |
| 407 | vnet/gre/gre.h \ |
| 408 | vnet/gre/packet.h \ |
| 409 | vnet/gre/error.def |
| 410 | |
| 411 | ######################################## |
| 412 | # Tunnel protocol: l2tpv3 |
| 413 | ######################################## |
| 414 | libvnet_la_SOURCES += \ |
| 415 | vnet/l2tp/l2tp.c \ |
| 416 | vnet/l2tp/encap.c \ |
| 417 | vnet/l2tp/decap.c \ |
| 418 | vnet/l2tp/pg.c |
| 419 | |
| 420 | nobase_include_HEADERS += \ |
| 421 | vnet/l2tp/l2tp.h \ |
| 422 | vnet/l2tp/packet.h |
| 423 | |
| 424 | ######################################## |
| 425 | # Tunnel protocol: gre+mpls |
| 426 | ######################################## |
| 427 | libvnet_la_SOURCES += \ |
Neale Ranns | 0bfe5d8 | 2016-08-25 15:29:12 +0100 | [diff] [blame] | 428 | vnet/mpls/mpls.c \ |
| 429 | vnet/mpls/mpls_lookup.c \ |
| 430 | vnet/mpls/mpls_output.c \ |
| 431 | vnet/mpls/mpls_features.c \ |
| 432 | vnet/mpls/node.c \ |
| 433 | vnet/mpls/interface.c \ |
| 434 | vnet/mpls/policy_encap.c \ |
| 435 | vnet/mpls/pg.c |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 436 | |
| 437 | nobase_include_HEADERS += \ |
Neale Ranns | 0bfe5d8 | 2016-08-25 15:29:12 +0100 | [diff] [blame] | 438 | vnet/mpls/mpls.h \ |
| 439 | vnet/mpls/mpls_types.h \ |
| 440 | vnet/mpls/packet.h \ |
| 441 | vnet/mpls/error.def |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 442 | |
| 443 | |
| 444 | ######################################## |
Keith Burns (alagalah) | 94b1442 | 2016-05-05 18:16:50 -0700 | [diff] [blame] | 445 | # Tunnel protocol: vxlan-gpe |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 446 | ######################################## |
| 447 | |
| 448 | libvnet_la_SOURCES += \ |
Keith Burns (alagalah) | 94b1442 | 2016-05-05 18:16:50 -0700 | [diff] [blame] | 449 | vnet/vxlan-gpe/vxlan_gpe.c \ |
| 450 | vnet/vxlan-gpe/encap.c \ |
| 451 | vnet/vxlan-gpe/decap.c |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 452 | |
| 453 | nobase_include_HEADERS += \ |
Keith Burns (alagalah) | 94b1442 | 2016-05-05 18:16:50 -0700 | [diff] [blame] | 454 | vnet/vxlan-gpe/vxlan_gpe.h \ |
| 455 | vnet/vxlan-gpe/vxlan_gpe_packet.h \ |
| 456 | vnet/vxlan-gpe/vxlan_gpe_error.def |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 457 | |
| 458 | ######################################## |
Matus Fabian | 694265d | 2016-08-10 01:55:36 -0700 | [diff] [blame] | 459 | # Tunnel protocol: ipsec+gre |
| 460 | ######################################## |
| 461 | libvnet_la_SOURCES += \ |
| 462 | vnet/ipsec-gre/ipsec_gre.c \ |
| 463 | vnet/ipsec-gre/node.c \ |
| 464 | vnet/ipsec-gre/interface.c |
| 465 | |
| 466 | nobase_include_HEADERS += \ |
| 467 | vnet/ipsec-gre/ipsec_gre.h \ |
| 468 | vnet/ipsec-gre/error.def |
| 469 | |
| 470 | ######################################## |
Florin Coras | e127a7e | 2016-02-18 22:20:01 +0100 | [diff] [blame] | 471 | # LISP control plane: lisp-cp |
| 472 | ######################################## |
| 473 | |
| 474 | libvnet_la_SOURCES += \ |
| 475 | vnet/lisp-cp/lisp_types.c \ |
Neale Ranns | 0bfe5d8 | 2016-08-25 15:29:12 +0100 | [diff] [blame] | 476 | vnet/lisp-cp/lisp_cp_dpo.c \ |
Florin Coras | e127a7e | 2016-02-18 22:20:01 +0100 | [diff] [blame] | 477 | vnet/lisp-cp/control.c \ |
| 478 | vnet/lisp-cp/gid_dictionary.c \ |
| 479 | vnet/lisp-cp/lisp_msg_serdes.c \ |
| 480 | vnet/lisp-cp/packets.c |
| 481 | |
| 482 | nobase_include_HEADERS += \ |
| 483 | vnet/lisp-cp/lisp_types.h \ |
| 484 | vnet/lisp-cp/packets.h \ |
| 485 | vnet/lisp-cp/gid_dictionary.h \ |
| 486 | vnet/lisp-cp/lisp_cp_messages.h \ |
| 487 | vnet/lisp-cp/lisp_msg_serdes.h \ |
| 488 | vnet/lisp-cp/control.h |
| 489 | |
Filip Tehlar | 254b036 | 2016-04-07 10:04:34 +0200 | [diff] [blame] | 490 | |
| 491 | if ENABLE_TESTS |
Ole Troan | d575e69 | 2016-08-25 12:26:47 +0200 | [diff] [blame] | 492 | LDS = -lvppinfra -l:libvlib.a $(dpdk_libs) -l:libvlibmemory.a \ |
Filip Tehlar | 254b036 | 2016-04-07 10:04:34 +0200 | [diff] [blame] | 493 | -l:libvlibapi.a -l:libsvm.a -lpthread -ldl -lrt -lm -l:libvlib_unix.a |
| 494 | |
| 495 | TESTS += test_cp_serdes test_lisp_types |
| 496 | |
| 497 | test_cp_serdes_SOURCES = \ |
| 498 | test/lisp-cp/test_cp_serdes.c \ |
| 499 | vnet/lisp-cp/lisp_msg_serdes.c \ |
| 500 | vnet/lisp-cp/lisp_types.c \ |
| 501 | vnet/lisp-cp/packets.c \ |
| 502 | vnet/ip/ip_checksum.c |
| 503 | |
| 504 | test_lisp_types_SOURCES = \ |
| 505 | test/lisp-cp/test_lisp_types.c \ |
| 506 | vnet/lisp-cp/lisp_types.c |
| 507 | |
| 508 | test_cp_serdes_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG |
| 509 | test_lisp_types_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG |
| 510 | |
| 511 | test_cp_serdes_LDADD = libvnet.la $(LDS) |
| 512 | test_lisp_types_LDADD = libvnet.la $(LDS) |
| 513 | |
| 514 | test_cp_serdes_LDFLAGS = -static |
| 515 | test_lisp_types_LDFLAGS = -static |
| 516 | endif |
| 517 | |
Florin Coras | e127a7e | 2016-02-18 22:20:01 +0100 | [diff] [blame] | 518 | ######################################## |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 519 | # Tunnel protocol: lisp-gpe |
| 520 | ######################################## |
| 521 | |
| 522 | libvnet_la_SOURCES += \ |
| 523 | vnet/lisp-gpe/lisp_gpe.c \ |
Neale Ranns | 0bfe5d8 | 2016-08-25 15:29:12 +0100 | [diff] [blame] | 524 | vnet/lisp-gpe/lisp_gpe_sub_interface.c \ |
| 525 | vnet/lisp-gpe/lisp_gpe_adjacency.c \ |
| 526 | vnet/lisp-gpe/lisp_gpe_tunnel.c \ |
Neale Ranns | 5e575b1 | 2016-10-03 09:40:25 +0100 | [diff] [blame] | 527 | vnet/lisp-gpe/lisp_gpe_fwd_entry.c \ |
| 528 | vnet/lisp-gpe/lisp_gpe_tenant.c \ |
Florin Coras | 577c355 | 2016-04-21 00:45:40 +0200 | [diff] [blame] | 529 | vnet/lisp-gpe/interface.c \ |
Florin Coras | e127a7e | 2016-02-18 22:20:01 +0100 | [diff] [blame] | 530 | vnet/lisp-gpe/decap.c |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 531 | |
| 532 | nobase_include_HEADERS += \ |
| 533 | vnet/lisp-gpe/lisp_gpe.h \ |
Neale Ranns | 5e575b1 | 2016-10-03 09:40:25 +0100 | [diff] [blame] | 534 | vnet/lisp-gpe/lisp_gpe_fwd_entry.h \ |
| 535 | vnet/lisp-gpe/lisp_gpe_tenant.h \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 536 | vnet/lisp-gpe/lisp_gpe_packet.h \ |
Florin Coras | e127a7e | 2016-02-18 22:20:01 +0100 | [diff] [blame] | 537 | vnet/lisp-gpe/lisp_gpe_error.def |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 538 | |
Filip Tehlar | 254b036 | 2016-04-07 10:04:34 +0200 | [diff] [blame] | 539 | if ENABLE_TESTS |
| 540 | TESTS += test_test |
| 541 | |
| 542 | test_test_SOURCES = test/lisp-gpe/test.c |
| 543 | |
| 544 | test_test_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG |
| 545 | |
| 546 | test_test_LDADD = $(LIBOBJS) |
| 547 | |
| 548 | noinst_PROGRAMS += $(TESTS) |
| 549 | check_PROGRAMS = $(TESTS) |
| 550 | endif |
| 551 | |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 552 | ######################################## |
| 553 | # DHCP client |
| 554 | ######################################## |
| 555 | libvnet_la_SOURCES += \ |
| 556 | vnet/dhcp/client.c \ |
| 557 | vnet/dhcp/client.h |
| 558 | |
| 559 | nobase_include_HEADERS += \ |
| 560 | vnet/dhcp/client.h |
| 561 | |
| 562 | ######################################## |
| 563 | # DHCP proxy |
| 564 | ######################################## |
| 565 | libvnet_la_SOURCES += \ |
| 566 | vnet/dhcp/proxy_node.c \ |
| 567 | vnet/dhcp/proxy.h |
| 568 | |
| 569 | nobase_include_HEADERS += \ |
| 570 | vnet/dhcp/packet.h \ |
| 571 | vnet/dhcp/proxy.h \ |
| 572 | vnet/dhcp/proxy_error.def |
| 573 | |
| 574 | ######################################## |
| 575 | # ipv6 segment routing |
| 576 | ######################################## |
Dave Barach | 61efa14 | 2016-01-22 08:23:09 -0500 | [diff] [blame] | 577 | |
| 578 | if WITH_IPV6SR |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 579 | libvnet_la_SOURCES += \ |
Keith Burns (alagalah) | 52fc44d | 2016-03-25 09:38:50 -0700 | [diff] [blame] | 580 | vnet/sr/sr.c \ |
| 581 | vnet/sr/sr_replicate.c |
Dave Barach | 61efa14 | 2016-01-22 08:23:09 -0500 | [diff] [blame] | 582 | endif |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 583 | |
| 584 | nobase_include_HEADERS += \ |
| 585 | vnet/sr/sr_packet.h \ |
| 586 | vnet/sr/sr_error.def \ |
| 587 | vnet/sr/sr.h |
| 588 | |
| 589 | ######################################## |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 590 | # DHCPv6 proxy |
| 591 | ######################################## |
| 592 | libvnet_la_SOURCES += \ |
| 593 | vnet/dhcpv6/proxy_node.c |
| 594 | |
| 595 | nobase_include_HEADERS += \ |
| 596 | vnet/dhcpv6/packet.h \ |
| 597 | vnet/dhcpv6/proxy.h \ |
| 598 | vnet/dhcpv6/proxy_error.def |
| 599 | |
| 600 | ######################################## |
| 601 | # IPFIX / netflow v10 |
| 602 | ######################################## |
| 603 | libvnet_la_SOURCES += \ |
| 604 | vnet/flow/flow_report.c |
| 605 | |
| 606 | nobase_include_HEADERS += \ |
| 607 | vnet/flow/flow_report.h \ |
| 608 | vnet/flow/ipfix_info_elements.h \ |
| 609 | vnet/flow/ipfix_packet.h |
| 610 | |
| 611 | ######################################## |
Juraj Sloboda | 819ec6f | 2016-08-07 23:40:03 -0700 | [diff] [blame] | 612 | # IPFIX classify code |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 613 | ######################################## |
| 614 | |
| 615 | libvnet_la_SOURCES += \ |
Juraj Sloboda | 819ec6f | 2016-08-07 23:40:03 -0700 | [diff] [blame] | 616 | vnet/flow/flow_report_classify.c |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 617 | |
| 618 | nobase_include_HEADERS += \ |
Juraj Sloboda | 819ec6f | 2016-08-07 23:40:03 -0700 | [diff] [blame] | 619 | vnet/flow/flow_report_classify.h |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 620 | |
| 621 | ######################################## |
| 622 | # lawful intercept |
| 623 | ######################################## |
| 624 | |
| 625 | libvnet_la_SOURCES += \ |
| 626 | vnet/lawful-intercept/lawful_intercept.c \ |
| 627 | vnet/lawful-intercept/node.c |
| 628 | |
| 629 | nobase_include_HEADERS += \ |
| 630 | vnet/dpdk_replication.h \ |
| 631 | vnet/lawful-intercept/lawful_intercept.h |
| 632 | |
| 633 | ######################################## |
| 634 | # Packet generator |
| 635 | ######################################## |
| 636 | |
| 637 | libvnet_la_SOURCES += \ |
| 638 | vnet/pg/cli.c \ |
| 639 | vnet/pg/edit.c \ |
| 640 | vnet/pg/init.c \ |
| 641 | vnet/pg/input.c \ |
| 642 | vnet/pg/output.c \ |
| 643 | vnet/pg/stream.c |
| 644 | |
| 645 | nobase_include_HEADERS += \ |
| 646 | vnet/pg/pg.h \ |
| 647 | vnet/pg/edit.h |
| 648 | |
| 649 | ######################################## |
| 650 | # Intel DPDK |
| 651 | ######################################## |
| 652 | if WITH_DPDK |
| 653 | libvnet_la_SOURCES += \ |
| 654 | vnet/devices/dpdk/dpdk_priv.h \ |
| 655 | vnet/devices/dpdk/device.c \ |
Damjan Marion | 7f62097 | 2016-02-25 16:00:11 +0100 | [diff] [blame] | 656 | vnet/devices/dpdk/format.c \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 657 | vnet/devices/dpdk/init.c \ |
| 658 | vnet/devices/dpdk/node.c \ |
Jasvinder Singh | 85ecc81 | 2016-07-21 17:02:19 +0100 | [diff] [blame] | 659 | vnet/devices/dpdk/hqos.c \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 660 | vnet/devices/dpdk/vhost_user.c \ |
| 661 | vnet/devices/dpdk/cli.c |
| 662 | |
| 663 | nobase_include_HEADERS += \ |
Damjan Marion | 0f8ecf0 | 2016-06-27 08:30:30 +0200 | [diff] [blame] | 664 | vnet/devices/dpdk/dpdk.h |
Damjan Marion | b4d8927 | 2016-05-12 22:14:45 +0200 | [diff] [blame] | 665 | else |
| 666 | libvnet_la_SOURCES += \ |
| 667 | vnet/devices/nic/ixge.c \ |
| 668 | vnet/devices/nic/ixge.h \ |
| 669 | vnet/devices/nic/sfp.c \ |
| 670 | vnet/devices/nic/sfp.h |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 671 | endif |
| 672 | |
| 673 | ######################################## |
| 674 | # virtio |
| 675 | ######################################## |
| 676 | |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 677 | libvnet_la_SOURCES += \ |
| 678 | vnet/devices/virtio/vhost-user.c |
| 679 | |
| 680 | nobase_include_HEADERS += \ |
| 681 | vnet/devices/virtio/vhost-user.h |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 682 | |
| 683 | ######################################## |
| 684 | # ssvm ethernet |
| 685 | ######################################## |
| 686 | libvnet_la_SOURCES += \ |
| 687 | vnet/devices/ssvm/ssvm_eth.c \ |
| 688 | vnet/devices/ssvm/node.c |
| 689 | |
| 690 | nobase_include_HEADERS += \ |
| 691 | vnet/devices/ssvm/ssvm_eth.h |
| 692 | |
| 693 | ######################################## |
Damjan Marion | 83243a0 | 2016-02-29 13:09:30 +0100 | [diff] [blame] | 694 | # Linux packet interface |
| 695 | ######################################## |
| 696 | |
| 697 | libvnet_la_SOURCES += \ |
| 698 | vnet/devices/af_packet/af_packet.c \ |
| 699 | vnet/devices/af_packet/device.c \ |
| 700 | vnet/devices/af_packet/node.c \ |
| 701 | vnet/devices/af_packet/cli.c |
| 702 | |
| 703 | nobase_include_HEADERS += \ |
| 704 | vnet/devices/af_packet/af_packet.h |
| 705 | |
| 706 | ######################################## |
Damjan Marion | 108c731 | 2016-04-20 05:04:20 +0200 | [diff] [blame] | 707 | # NETMAP interface |
| 708 | ######################################## |
| 709 | |
| 710 | libvnet_la_SOURCES += \ |
| 711 | vnet/devices/netmap/netmap.c \ |
| 712 | vnet/devices/netmap/device.c \ |
| 713 | vnet/devices/netmap/node.c \ |
| 714 | vnet/devices/netmap/cli.c |
| 715 | |
| 716 | nobase_include_HEADERS += \ |
| 717 | vnet/devices/netmap/netmap.h |
| 718 | |
| 719 | |
| 720 | ######################################## |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 721 | # Unix kernel related |
| 722 | ######################################## |
| 723 | |
| 724 | # FIXME: vnet/unix/hgshm.c |
| 725 | |
| 726 | libvnet_la_SOURCES += \ |
| 727 | vnet/unix/gdb_funcs.c \ |
| 728 | vnet/unix/pcap.c \ |
| 729 | vnet/unix/tapcli.c \ |
| 730 | vnet/unix/tuntap.c |
| 731 | |
| 732 | nobase_include_HEADERS += \ |
| 733 | vnet/unix/pcap.h \ |
| 734 | vnet/unix/tuntap.h \ |
| 735 | vnet/unix/tapcli.h |
| 736 | |
Todd Foggoa | 4ea4ecd | 2016-03-17 14:22:34 -0400 | [diff] [blame] | 737 | ######################################## |
Neale Ranns | 0bfe5d8 | 2016-08-25 15:29:12 +0100 | [diff] [blame] | 738 | # FIB |
| 739 | ######################################## |
| 740 | |
| 741 | libvnet_la_SOURCES += \ |
| 742 | vnet/fib/fib.c \ |
| 743 | vnet/fib/fib_test.c \ |
| 744 | vnet/fib/ip4_fib.c \ |
| 745 | vnet/fib/ip6_fib.c \ |
| 746 | vnet/fib/mpls_fib.c \ |
| 747 | vnet/fib/fib_table.c \ |
| 748 | vnet/fib/fib_walk.c \ |
| 749 | vnet/fib/fib_types.c \ |
| 750 | vnet/fib/fib_node.c \ |
| 751 | vnet/fib/fib_node_list.c \ |
| 752 | vnet/fib/fib_entry.c \ |
| 753 | vnet/fib/fib_entry_src.c \ |
| 754 | vnet/fib/fib_entry_src_rr.c \ |
| 755 | vnet/fib/fib_entry_src_interface.c \ |
| 756 | vnet/fib/fib_entry_src_default_route.c \ |
| 757 | vnet/fib/fib_entry_src_special.c \ |
| 758 | vnet/fib/fib_entry_src_api.c \ |
| 759 | vnet/fib/fib_entry_src_adj.c \ |
| 760 | vnet/fib/fib_entry_src_mpls.c \ |
| 761 | vnet/fib/fib_entry_src_lisp.c \ |
| 762 | vnet/fib/fib_entry_cover.c \ |
| 763 | vnet/fib/fib_path_list.c \ |
| 764 | vnet/fib/fib_path.c \ |
| 765 | vnet/fib/fib_path_ext.c \ |
Neale Ranns | 3ee4404 | 2016-10-03 13:05:48 +0100 | [diff] [blame^] | 766 | vnet/fib/fib_urpf_list.c \ |
Neale Ranns | 0bfe5d8 | 2016-08-25 15:29:12 +0100 | [diff] [blame] | 767 | vnet/fib/fib_attached_export.c |
| 768 | |
| 769 | nobase_include_HEADERS += \ |
| 770 | vnet/fib/fib.h \ |
| 771 | vnet/fib/ip4_fib.h \ |
| 772 | vnet/fib/ip6_fib.h \ |
| 773 | vnet/fib/fib_types.h \ |
| 774 | vnet/fib/fib_table.h \ |
| 775 | vnet/fib/fib_node.h \ |
| 776 | vnet/fib/fib_node_list.h \ |
| 777 | vnet/fib/fib_entry.h |
| 778 | |
| 779 | ######################################## |
| 780 | # ADJ |
| 781 | ######################################## |
| 782 | |
| 783 | libvnet_la_SOURCES += \ |
Neale Ranns | 0bfe5d8 | 2016-08-25 15:29:12 +0100 | [diff] [blame] | 784 | vnet/adj/adj_nbr.c \ |
| 785 | vnet/adj/adj_rewrite.c \ |
| 786 | vnet/adj/adj_glean.c \ |
| 787 | vnet/adj/adj_midchain.c \ |
Neale Ranns | 5e575b1 | 2016-10-03 09:40:25 +0100 | [diff] [blame] | 788 | vnet/adj/adj_l2.c \ |
Neale Ranns | 0bfe5d8 | 2016-08-25 15:29:12 +0100 | [diff] [blame] | 789 | vnet/adj/adj.c |
| 790 | |
| 791 | nobase_include_HEADERS += \ |
| 792 | vnet/adj/adj.h \ |
| 793 | vnet/adj/adj_types.h \ |
| 794 | vnet/adj/adj_rewrite.h \ |
| 795 | vnet/adj/adj_glean.h \ |
| 796 | vnet/adj/adj_nbr.h |
| 797 | |
| 798 | ######################################## |
| 799 | # Data-Plane Objects |
| 800 | ######################################## |
| 801 | |
| 802 | libvnet_la_SOURCES += \ |
| 803 | vnet/dpo/dpo.c \ |
| 804 | vnet/dpo/drop_dpo.c \ |
| 805 | vnet/dpo/punt_dpo.c \ |
| 806 | vnet/dpo/receive_dpo.c \ |
| 807 | vnet/dpo/load_balance.c \ |
| 808 | vnet/dpo/load_balance_map.c \ |
| 809 | vnet/dpo/lookup_dpo.c \ |
| 810 | vnet/dpo/classify_dpo.c \ |
| 811 | vnet/dpo/mpls_label_dpo.c |
| 812 | |
| 813 | nobase_include_HEADERS += \ |
| 814 | vnet/dpo/load_balance.h \ |
| 815 | vnet/dpo/drop_dpo.h \ |
| 816 | vnet/dpo/lookup_dpo.h \ |
| 817 | vnet/dpo/punt_dpo.h \ |
| 818 | vnet/dpo/classify_dpo.h \ |
| 819 | vnet/dpo/receive_dpo.h \ |
| 820 | vnet/dpo/dpo.h |
| 821 | |
| 822 | ######################################## |
Todd Foggoa | 4ea4ecd | 2016-03-17 14:22:34 -0400 | [diff] [blame] | 823 | # Plugin client library |
| 824 | ######################################## |
| 825 | |
| 826 | libvnetplugin_la_SOURCES += \ |
| 827 | vnet/plugin/p1.c |
| 828 | |
| 829 | nobase_include_HEADERS += \ |
| 830 | vnet/plugin/plugin.h |
| 831 | |
| 832 | lib_LTLIBRARIES = libvnet.la libvnetplugin.la |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 833 | |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 834 | pcap2pg_SOURCES = \ |
| 835 | vnet/unix/pcap2pg.c \ |
| 836 | vnet/unix/pcap.h |
| 837 | |
| 838 | pcap2pg_LDFLAGS = -static |
| 839 | pcap2pg_LDADD = libvnet.la -l:libvppinfra.a -lpthread -lm -ldl |
| 840 | |
| 841 | noinst_PROGRAMS += pcap2pg |