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 | |
| 16 | AM_CFLAGS = -Wall @DPDK@ @VIRL@ |
| 17 | |
| 18 | libvnet_la_SOURCES = |
| 19 | libvnetplugin_la_SOURCES = |
| 20 | nobase_include_HEADERS = |
Dave Barach | 4e281a4 | 2015-12-14 11:13:29 -0500 | [diff] [blame^] | 21 | noinst_PROGRAMS = |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 22 | |
| 23 | ######################################## |
| 24 | # Generic stuff |
| 25 | ######################################## |
| 26 | libvnet_la_SOURCES += \ |
| 27 | vnet/config.c \ |
| 28 | vnet/interface.c \ |
| 29 | vnet/interface_cli.c \ |
| 30 | vnet/interface_format.c \ |
| 31 | vnet/interface_output.c \ |
| 32 | vnet/misc.c \ |
| 33 | vnet/replication.c \ |
| 34 | vnet/rewrite.c |
| 35 | |
| 36 | nobase_include_HEADERS += \ |
| 37 | vnet/api_errno.h \ |
| 38 | vnet/buffer.h \ |
| 39 | vnet/config.h \ |
| 40 | vnet/global_funcs.h \ |
| 41 | vnet/interface.h \ |
| 42 | vnet/interface_funcs.h \ |
| 43 | vnet/l3_types.h \ |
| 44 | vnet/pipeline.h \ |
| 45 | vnet/replication.h \ |
| 46 | vnet/rewrite.h \ |
| 47 | vnet/vnet.h |
| 48 | |
| 49 | ######################################## |
| 50 | # Policer infra |
| 51 | ######################################## |
| 52 | |
| 53 | libvnet_la_SOURCES += \ |
| 54 | vnet/policer/node_funcs.c \ |
| 55 | vnet/policer/policer.c \ |
| 56 | vnet/policer/xlate.c |
| 57 | |
| 58 | nobase_include_HEADERS += \ |
| 59 | vnet/policer/police.h \ |
| 60 | vnet/policer/xlate.h |
| 61 | |
| 62 | |
| 63 | ######################################## |
| 64 | # Layer 2 protocols go here |
| 65 | ######################################## |
| 66 | |
| 67 | ######################################## |
| 68 | # Layer 2 protocol: Ethernet |
| 69 | ######################################## |
| 70 | libvnet_la_SOURCES += \ |
| 71 | vnet/ethernet/arp.c \ |
| 72 | vnet/ethernet/cli.c \ |
| 73 | vnet/ethernet/format.c \ |
| 74 | vnet/ethernet/init.c \ |
| 75 | vnet/ethernet/interface.c \ |
| 76 | vnet/ethernet/node.c \ |
| 77 | vnet/ethernet/pg.c |
| 78 | |
| 79 | nobase_include_HEADERS += \ |
| 80 | vnet/ethernet/arp_packet.h \ |
| 81 | vnet/ethernet/error.def \ |
| 82 | vnet/ethernet/ethernet.h \ |
| 83 | vnet/ethernet/packet.h \ |
| 84 | vnet/ethernet/types.def |
| 85 | |
| 86 | ######################################## |
| 87 | # Layer 2 protocol: Ethernet bridging |
| 88 | ######################################## |
| 89 | libvnet_la_SOURCES += \ |
| 90 | vnet/l2/feat_bitmap.c \ |
| 91 | vnet/l2/l2_bd.c \ |
| 92 | vnet/l2/l2_bvi.c \ |
| 93 | vnet/l2/l2_classify.c \ |
| 94 | vnet/l2/l2_efp_filter.c \ |
| 95 | vnet/l2/l2_fib.c \ |
| 96 | vnet/l2/l2_flood.c \ |
| 97 | vnet/l2/l2_fwd.c \ |
| 98 | vnet/l2/l2_input_acl.c \ |
| 99 | vnet/l2/l2_input.c \ |
| 100 | vnet/l2/l2_input_vtr.c \ |
| 101 | vnet/l2/l2_learn.c \ |
| 102 | vnet/l2/l2_output_acl.c \ |
| 103 | vnet/l2/l2_output.c \ |
| 104 | vnet/l2/l2_patch.c \ |
| 105 | vnet/l2/l2_vtr.c \ |
| 106 | vnet/l2/l2_xcrw.c |
| 107 | |
| 108 | nobase_include_HEADERS += \ |
| 109 | vnet/l2/feat_bitmap.h \ |
| 110 | vnet/l2/l2_input.h \ |
| 111 | vnet/l2/l2_output.h \ |
| 112 | vnet/l2/l2_vtr.h \ |
| 113 | vnet/l2/l2_input_vtr.h \ |
| 114 | vnet/l2/l2_efp_filter.h \ |
| 115 | vnet/l2/l2_fwd.h \ |
| 116 | vnet/l2/l2_bd.h \ |
| 117 | vnet/l2/l2_bvi.h \ |
| 118 | vnet/l2/l2_flood.h \ |
| 119 | vnet/l2/l2_fib.h \ |
| 120 | vnet/l2/l2_xcrw.h \ |
| 121 | vnet/l2/l2_classify.h |
| 122 | |
| 123 | ######################################## |
| 124 | # Layer 2 protocol: SRP |
| 125 | ######################################## |
| 126 | libvnet_la_SOURCES += \ |
| 127 | vnet/srp/format.c \ |
| 128 | vnet/srp/interface.c \ |
| 129 | vnet/srp/node.c \ |
| 130 | vnet/srp/pg.c |
| 131 | |
| 132 | nobase_include_HEADERS += \ |
| 133 | vnet/srp/packet.h \ |
| 134 | vnet/srp/srp.h |
| 135 | |
| 136 | ######################################## |
| 137 | # Layer 2 protocol: PPP |
| 138 | ######################################## |
| 139 | libvnet_la_SOURCES += \ |
| 140 | vnet/ppp/node.c \ |
| 141 | vnet/ppp/pg.c \ |
| 142 | vnet/ppp/ppp.c |
| 143 | |
| 144 | nobase_include_HEADERS += \ |
| 145 | vnet/ppp/error.def \ |
| 146 | vnet/ppp/ppp.h \ |
| 147 | vnet/ppp/packet.h |
| 148 | |
| 149 | ######################################## |
| 150 | # Layer 2 protocol: HDLC |
| 151 | ######################################## |
| 152 | libvnet_la_SOURCES += \ |
| 153 | vnet/hdlc/node.c \ |
| 154 | vnet/hdlc/pg.c \ |
| 155 | vnet/hdlc/hdlc.c |
| 156 | |
| 157 | nobase_include_HEADERS += \ |
| 158 | vnet/hdlc/error.def \ |
| 159 | vnet/hdlc/hdlc.h \ |
| 160 | vnet/hdlc/packet.h |
| 161 | |
| 162 | ######################################## |
| 163 | # Layer 2 protocol: LLC |
| 164 | ######################################## |
| 165 | libvnet_la_SOURCES += \ |
| 166 | vnet/llc/llc.c \ |
| 167 | vnet/llc/node.c \ |
| 168 | vnet/llc/pg.c |
| 169 | |
| 170 | nobase_include_HEADERS += \ |
| 171 | vnet/llc/llc.h |
| 172 | |
| 173 | ######################################## |
| 174 | # Layer 2 protocol: SNAP |
| 175 | ######################################## |
| 176 | libvnet_la_SOURCES += \ |
| 177 | vnet/snap/snap.c \ |
| 178 | vnet/snap/node.c \ |
| 179 | vnet/snap/pg.c |
| 180 | |
| 181 | nobase_include_HEADERS += \ |
| 182 | vnet/snap/snap.h |
| 183 | |
| 184 | ######################################## |
| 185 | # Layer 2 / vxlan |
| 186 | ######################################## |
| 187 | libvnet_la_SOURCES += \ |
| 188 | vnet/vxlan/vxlan.c \ |
| 189 | vnet/vxlan/encap.c \ |
| 190 | vnet/vxlan/decap.c |
| 191 | |
| 192 | nobase_include_HEADERS += \ |
| 193 | vnet/vxlan/vxlan.h \ |
| 194 | vnet/vxlan/vxlan_packet.h \ |
| 195 | vnet/vxlan/vxlan_error.def |
| 196 | |
| 197 | ######################################## |
| 198 | # Layer 2/3 "classify" |
| 199 | ######################################## |
| 200 | libvnet_la_SOURCES += \ |
| 201 | vnet/classify/vnet_classify.c \ |
| 202 | vnet/classify/ip_classify.c \ |
| 203 | vnet/classify/input_acl.c \ |
| 204 | vnet/classify/vnet_classify.h |
| 205 | |
| 206 | nobase_include_HEADERS += \ |
| 207 | vnet/classify/vnet_classify.h \ |
| 208 | vnet/classify/input_acl.h |
| 209 | |
| 210 | ######################################## |
| 211 | # Layer 3 protocols go here |
| 212 | ######################################## |
| 213 | |
| 214 | # vnet/ip/tcp.c \ |
| 215 | # vnet/ip/tcp_format.c \ |
| 216 | # vnet/ip/tcp_init.c \ |
| 217 | # vnet/ip/tcp_pg.c |
| 218 | |
| 219 | |
| 220 | ######################################## |
| 221 | # Layer 3 protocol: IP v4/v6 |
| 222 | ######################################## |
| 223 | libvnet_la_SOURCES += \ |
| 224 | vnet/ip/format.c \ |
| 225 | vnet/ip/icmp4.c \ |
| 226 | vnet/ip/icmp6.c \ |
| 227 | vnet/ip/ip46_cli.c \ |
| 228 | vnet/ip/ip4_format.c \ |
| 229 | vnet/ip/ip4_forward.c \ |
| 230 | vnet/ip/ip4_hop_by_hop.c \ |
| 231 | vnet/ip/ip4_input.c \ |
| 232 | vnet/ip/ip4_mtrie.c \ |
| 233 | vnet/ip/ip4_pg.c \ |
| 234 | vnet/ip/ip4_source_check.c \ |
| 235 | vnet/ip/ip6_format.c \ |
| 236 | vnet/ip/ip6_forward.c \ |
| 237 | vnet/ip/ip6_hop_by_hop.c \ |
| 238 | vnet/ip/ip6_input.c \ |
| 239 | vnet/ip/ip6_neighbor.c \ |
| 240 | vnet/ip/ip6_pg.c \ |
| 241 | vnet/ip/ip_checksum.c \ |
| 242 | vnet/ip/ip.h \ |
| 243 | vnet/ip/ip_init.c \ |
| 244 | vnet/ip/lookup.c \ |
| 245 | vnet/ip/udp_format.c \ |
| 246 | vnet/ip/udp_init.c \ |
| 247 | vnet/ip/udp_local.c \ |
| 248 | vnet/ip/udp_pg.c \ |
| 249 | vnet/ip/ip_input_acl.c \ |
| 250 | vnet/ip/ip_frag.c |
| 251 | |
| 252 | nobase_include_HEADERS += \ |
| 253 | vnet/ip/format.h \ |
| 254 | vnet/ip/icmp46_packet.h \ |
| 255 | vnet/ip/icmp6.h \ |
| 256 | vnet/ip/igmp_packet.h \ |
| 257 | vnet/ip/ip.h \ |
| 258 | vnet/ip/ip4.h \ |
| 259 | vnet/ip/ip4_mtrie.h \ |
| 260 | vnet/ip/ip4_error.h \ |
| 261 | vnet/ip/ip4_packet.h \ |
| 262 | vnet/ip/ip6.h \ |
| 263 | vnet/ip/ip6_error.h \ |
| 264 | vnet/ip/ip6_hop_by_hop.h \ |
| 265 | vnet/ip/ip6_hop_by_hop_packet.h \ |
| 266 | vnet/ip/ip6_packet.h \ |
| 267 | vnet/ip/lookup.h \ |
| 268 | vnet/ip/ip_packet.h \ |
| 269 | vnet/ip/ports.def \ |
| 270 | vnet/ip/protocols.def \ |
| 271 | vnet/ip/tcp.h \ |
| 272 | vnet/ip/tcp_packet.h \ |
| 273 | vnet/ip/udp.h \ |
| 274 | vnet/ip/udp_error.def \ |
| 275 | vnet/ip/udp_packet.h |
| 276 | |
| 277 | ######################################## |
| 278 | # Layer 3 protocol: IPSec |
| 279 | ######################################## |
| 280 | if WITH_DPDK |
| 281 | libvnet_la_SOURCES += \ |
| 282 | vnet/ipsec/ipsec.c \ |
| 283 | vnet/ipsec/ipsec_cli.c \ |
| 284 | vnet/ipsec/ipsec_format.c \ |
| 285 | vnet/ipsec/ipsec_output.c \ |
| 286 | vnet/ipsec/ipsec_input.c \ |
| 287 | vnet/ipsec/ipsec_if.c \ |
| 288 | vnet/ipsec/ipsec_if_in.c \ |
| 289 | vnet/ipsec/ipsec_if_out.c \ |
| 290 | vnet/ipsec/esp_encrypt.c \ |
| 291 | vnet/ipsec/esp_decrypt.c \ |
| 292 | vnet/ipsec/ikev2.c \ |
| 293 | vnet/ipsec/ikev2_crypto.c \ |
| 294 | vnet/ipsec/ikev2_cli.c \ |
| 295 | vnet/ipsec/ikev2_payload.c \ |
| 296 | vnet/ipsec/ikev2_format.c |
| 297 | |
| 298 | nobase_include_HEADERS += \ |
| 299 | vnet/ipsec/ipsec.h \ |
| 300 | vnet/ipsec/esp.h \ |
| 301 | vnet/ipsec/ikev2.h \ |
| 302 | vnet/ipsec/ikev2_priv.h |
| 303 | endif |
| 304 | |
| 305 | ######################################## |
| 306 | # Layer 3 protocol: osi |
| 307 | ######################################## |
| 308 | libvnet_la_SOURCES += \ |
| 309 | vnet/osi/node.c \ |
| 310 | vnet/osi/osi.c \ |
| 311 | vnet/osi/pg.c |
| 312 | |
| 313 | nobase_include_HEADERS += \ |
| 314 | vnet/osi/osi.h |
| 315 | |
| 316 | ######################################## |
| 317 | # Layer 3 protocol: MAP |
| 318 | ######################################## |
| 319 | libvnet_la_SOURCES += \ |
| 320 | vnet/map/map.c \ |
| 321 | vnet/map/ip4_map.c \ |
| 322 | vnet/map/ip6_map.c \ |
| 323 | vnet/map/sixrd.c \ |
| 324 | vnet/map/ip4_sixrd.c \ |
| 325 | vnet/map/ip6_sixrd.c \ |
| 326 | vnet/map/ip4_map_t.c \ |
| 327 | vnet/map/ip6_map_t.c |
| 328 | |
| 329 | nobase_include_HEADERS += \ |
| 330 | vnet/map/map.h \ |
| 331 | vnet/map/sixrd.h |
| 332 | |
| 333 | ######################################## |
| 334 | # Tunnel protocol: gre |
| 335 | ######################################## |
| 336 | libvnet_la_SOURCES += \ |
| 337 | vnet/gre/gre.c \ |
| 338 | vnet/gre/node.c \ |
| 339 | vnet/gre/interface.c \ |
| 340 | vnet/gre/pg.c |
| 341 | |
| 342 | nobase_include_HEADERS += \ |
| 343 | vnet/gre/gre.h \ |
| 344 | vnet/gre/packet.h \ |
| 345 | vnet/gre/error.def |
| 346 | |
| 347 | ######################################## |
| 348 | # Tunnel protocol: l2tpv3 |
| 349 | ######################################## |
| 350 | libvnet_la_SOURCES += \ |
| 351 | vnet/l2tp/l2tp.c \ |
| 352 | vnet/l2tp/encap.c \ |
| 353 | vnet/l2tp/decap.c \ |
| 354 | vnet/l2tp/pg.c |
| 355 | |
| 356 | nobase_include_HEADERS += \ |
| 357 | vnet/l2tp/l2tp.h \ |
| 358 | vnet/l2tp/packet.h |
| 359 | |
| 360 | ######################################## |
| 361 | # Tunnel protocol: gre+mpls |
| 362 | ######################################## |
| 363 | libvnet_la_SOURCES += \ |
| 364 | vnet/mpls-gre/mpls.c \ |
| 365 | vnet/mpls-gre/node.c \ |
| 366 | vnet/mpls-gre/interface.c \ |
| 367 | vnet/mpls-gre/policy_encap.c \ |
| 368 | vnet/mpls-gre/pg.c |
| 369 | |
| 370 | nobase_include_HEADERS += \ |
| 371 | vnet/mpls-gre/mpls.h \ |
| 372 | vnet/mpls-gre/packet.h \ |
| 373 | vnet/mpls-gre/error.def |
| 374 | |
| 375 | |
| 376 | ######################################## |
| 377 | # Tunnel protocol: nsh-gre |
| 378 | ######################################## |
| 379 | |
| 380 | libvnet_la_SOURCES += \ |
| 381 | vnet/nsh-gre/nsh_gre.c \ |
| 382 | vnet/nsh-gre/encap.c \ |
| 383 | vnet/nsh-gre/decap.c |
| 384 | |
| 385 | nobase_include_HEADERS += \ |
| 386 | vnet/nsh-gre/nsh_gre.h \ |
| 387 | vnet/nsh-gre/nsh_gre_packet.h \ |
| 388 | vnet/nsh-gre/nsh_gre_error.def |
| 389 | |
| 390 | ######################################## |
| 391 | # Tunnel protocol: nsh-vxlan-gpe |
| 392 | ######################################## |
| 393 | |
| 394 | libvnet_la_SOURCES += \ |
| 395 | vnet/nsh-vxlan-gpe/nsh_vxlan_gpe.c \ |
| 396 | vnet/nsh-vxlan-gpe/encap.c \ |
| 397 | vnet/nsh-vxlan-gpe/decap.c |
| 398 | |
| 399 | nobase_include_HEADERS += \ |
| 400 | vnet/nsh-vxlan-gpe/nsh_vxlan_gpe.h \ |
| 401 | vnet/nsh-vxlan-gpe/vxlan_gpe_packet.h \ |
| 402 | vnet/nsh-vxlan-gpe/nsh_vxlan_gpe_error.def |
| 403 | |
| 404 | ######################################## |
| 405 | # Tunnel protocol: lisp-gpe |
| 406 | ######################################## |
| 407 | |
| 408 | libvnet_la_SOURCES += \ |
| 409 | vnet/lisp-gpe/lisp_gpe.c \ |
| 410 | vnet/lisp-gpe/encap.c \ |
| 411 | vnet/lisp-gpe/decap.c |
| 412 | |
| 413 | nobase_include_HEADERS += \ |
| 414 | vnet/lisp-gpe/lisp_gpe.h \ |
| 415 | vnet/lisp-gpe/lisp_gpe_packet.h \ |
| 416 | vnet/lisp-gpe/lisp_gpe_error.def |
| 417 | |
| 418 | ######################################## |
| 419 | # DHCP client |
| 420 | ######################################## |
| 421 | libvnet_la_SOURCES += \ |
| 422 | vnet/dhcp/client.c \ |
| 423 | vnet/dhcp/client.h |
| 424 | |
| 425 | nobase_include_HEADERS += \ |
| 426 | vnet/dhcp/client.h |
| 427 | |
| 428 | ######################################## |
| 429 | # DHCP proxy |
| 430 | ######################################## |
| 431 | libvnet_la_SOURCES += \ |
| 432 | vnet/dhcp/proxy_node.c \ |
| 433 | vnet/dhcp/proxy.h |
| 434 | |
| 435 | nobase_include_HEADERS += \ |
| 436 | vnet/dhcp/packet.h \ |
| 437 | vnet/dhcp/proxy.h \ |
| 438 | vnet/dhcp/proxy_error.def |
| 439 | |
| 440 | ######################################## |
| 441 | # ipv6 segment routing |
| 442 | ######################################## |
| 443 | libvnet_la_SOURCES += \ |
| 444 | vnet/sr/sr.c |
| 445 | |
| 446 | nobase_include_HEADERS += \ |
| 447 | vnet/sr/sr_packet.h \ |
| 448 | vnet/sr/sr_error.def \ |
| 449 | vnet/sr/sr.h |
| 450 | |
| 451 | ######################################## |
| 452 | # CGN |
| 453 | ######################################### |
| 454 | libvnet_la_SOURCES += \ |
| 455 | vnet/vcgn/cnat_bulk_port.c \ |
| 456 | vnet/vcgn/cnat_config.c \ |
| 457 | vnet/vcgn/cnat_db_scanner.c \ |
| 458 | vnet/vcgn/cnat_db_v2.c \ |
| 459 | vnet/vcgn/cnat_debug_msg_handler.c \ |
| 460 | vnet/vcgn/cnat_cli_handler.c \ |
| 461 | vnet/vcgn/cnat_global.c \ |
| 462 | vnet/vcgn/cnat_ipv4_udp_inside_input.c \ |
| 463 | vnet/vcgn/cnat_ipv4_udp_inside_input_exceptions.c \ |
| 464 | vnet/vcgn/cnat_ipv4_udp_outside_input.c \ |
| 465 | vnet/vcgn/cnat_ipv4_tcp_inside_input.c \ |
| 466 | vnet/vcgn/cnat_ipv4_tcp_inside_input_exceptions.c \ |
| 467 | vnet/vcgn/cnat_ipv4_tcp_outside_input.c \ |
| 468 | vnet/vcgn/cnat_ipv4_icmp_query_inside_input.c \ |
| 469 | vnet/vcgn/cnat_ipv4_icmp_query_inside_input_exception.c \ |
| 470 | vnet/vcgn/cnat_ipv4_icmp_query_outside_input.c \ |
| 471 | vnet/vcgn/cnat_ipv4_icmp_error_inside_input.c \ |
| 472 | vnet/vcgn/cnat_ipv4_icmp_error_outside_input.c \ |
| 473 | vnet/vcgn/cnat_logging.c \ |
| 474 | vnet/vcgn/cnat_ports.c \ |
| 475 | vnet/vcgn/cnat_util.c \ |
| 476 | vnet/vcgn/cnat_show.c \ |
| 477 | vnet/vcgn/cnat_syslog.c \ |
| 478 | vnet/vcgn/cnat_v4_functions.c \ |
| 479 | vnet/vcgn/index_list.c \ |
| 480 | vnet/vcgn/spp_platform_trace_log.c \ |
| 481 | vnet/vcgn/vcgn_classify.c |
| 482 | |
| 483 | ######################################## |
| 484 | # DHCPv6 proxy |
| 485 | ######################################## |
| 486 | libvnet_la_SOURCES += \ |
| 487 | vnet/dhcpv6/proxy_node.c |
| 488 | |
| 489 | nobase_include_HEADERS += \ |
| 490 | vnet/dhcpv6/packet.h \ |
| 491 | vnet/dhcpv6/proxy.h \ |
| 492 | vnet/dhcpv6/proxy_error.def |
| 493 | |
| 494 | ######################################## |
| 495 | # IPFIX / netflow v10 |
| 496 | ######################################## |
| 497 | libvnet_la_SOURCES += \ |
| 498 | vnet/flow/flow_report.c |
| 499 | |
| 500 | nobase_include_HEADERS += \ |
| 501 | vnet/flow/flow_report.h \ |
| 502 | vnet/flow/ipfix_info_elements.h \ |
| 503 | vnet/flow/ipfix_packet.h |
| 504 | |
| 505 | ######################################## |
| 506 | # IPFIX sample code |
| 507 | ######################################## |
| 508 | |
| 509 | libvnet_la_SOURCES += \ |
| 510 | vnet/flow/flow_report_sample.c |
| 511 | |
| 512 | nobase_include_HEADERS += \ |
| 513 | vnet/flow/flow_report_sample.h |
| 514 | |
| 515 | ######################################## |
| 516 | # lawful intercept |
| 517 | ######################################## |
| 518 | |
| 519 | libvnet_la_SOURCES += \ |
| 520 | vnet/lawful-intercept/lawful_intercept.c \ |
| 521 | vnet/lawful-intercept/node.c |
| 522 | |
| 523 | nobase_include_HEADERS += \ |
| 524 | vnet/dpdk_replication.h \ |
| 525 | vnet/lawful-intercept/lawful_intercept.h |
| 526 | |
| 527 | ######################################## |
| 528 | # Packet generator |
| 529 | ######################################## |
| 530 | |
| 531 | libvnet_la_SOURCES += \ |
| 532 | vnet/pg/cli.c \ |
| 533 | vnet/pg/edit.c \ |
| 534 | vnet/pg/init.c \ |
| 535 | vnet/pg/input.c \ |
| 536 | vnet/pg/output.c \ |
| 537 | vnet/pg/stream.c |
| 538 | |
| 539 | nobase_include_HEADERS += \ |
| 540 | vnet/pg/pg.h \ |
| 541 | vnet/pg/edit.h |
| 542 | |
| 543 | ######################################## |
| 544 | # Intel DPDK |
| 545 | ######################################## |
| 546 | if WITH_DPDK |
| 547 | libvnet_la_SOURCES += \ |
| 548 | vnet/devices/dpdk/dpdk_priv.h \ |
| 549 | vnet/devices/dpdk/device.c \ |
| 550 | vnet/devices/dpdk/init.c \ |
| 551 | vnet/devices/dpdk/node.c \ |
| 552 | vnet/devices/dpdk/threads.c \ |
| 553 | vnet/devices/dpdk/vhost_user.c \ |
| 554 | vnet/devices/dpdk/cli.c |
| 555 | |
| 556 | nobase_include_HEADERS += \ |
| 557 | vnet/devices/dpdk/dpdk.h \ |
| 558 | vnet/devices/dpdk/threads.h |
| 559 | endif |
| 560 | |
| 561 | ######################################## |
| 562 | # virtio |
| 563 | ######################################## |
| 564 | |
| 565 | if WITH_DPDK |
| 566 | libvnet_la_SOURCES += \ |
| 567 | vnet/devices/virtio/vhost-user.c |
| 568 | |
| 569 | nobase_include_HEADERS += \ |
| 570 | vnet/devices/virtio/vhost-user.h |
| 571 | endif WITH_DPDK |
| 572 | |
| 573 | ######################################## |
| 574 | # ssvm ethernet |
| 575 | ######################################## |
| 576 | libvnet_la_SOURCES += \ |
| 577 | vnet/devices/ssvm/ssvm_eth.c \ |
| 578 | vnet/devices/ssvm/node.c |
| 579 | |
| 580 | nobase_include_HEADERS += \ |
| 581 | vnet/devices/ssvm/ssvm_eth.h |
| 582 | |
| 583 | ######################################## |
| 584 | # Unix kernel related |
| 585 | ######################################## |
| 586 | |
| 587 | # FIXME: vnet/unix/hgshm.c |
| 588 | |
| 589 | libvnet_la_SOURCES += \ |
| 590 | vnet/unix/gdb_funcs.c \ |
| 591 | vnet/unix/pcap.c \ |
| 592 | vnet/unix/tapcli.c \ |
| 593 | vnet/unix/tuntap.c |
| 594 | |
| 595 | nobase_include_HEADERS += \ |
| 596 | vnet/unix/pcap.h \ |
| 597 | vnet/unix/tuntap.h \ |
| 598 | vnet/unix/tapcli.h |
| 599 | |
| 600 | ######################################## |
| 601 | # Plugin client library |
| 602 | ######################################## |
| 603 | |
| 604 | libvnetplugin_la_SOURCES += \ |
| 605 | vnet/plugin/p1.c |
| 606 | |
| 607 | nobase_include_HEADERS += \ |
| 608 | vnet/plugin/plugin.h |
| 609 | |
| 610 | lib_LTLIBRARIES = libvnet.la libvnetplugin.la |
| 611 | |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 612 | dpdk_libs = |
| 613 | |
| 614 | if WITH_DPDK |
| 615 | dpdk_libs += -l:libdpdk.a |
| 616 | endif |
| 617 | |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 618 | pcap2pg_SOURCES = \ |
| 619 | vnet/unix/pcap2pg.c \ |
| 620 | vnet/unix/pcap.h |
| 621 | |
| 622 | pcap2pg_LDFLAGS = -static |
| 623 | pcap2pg_LDADD = libvnet.la -l:libvppinfra.a -lpthread -lm -ldl |
| 624 | |
| 625 | noinst_PROGRAMS += pcap2pg |