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 | |
Shesha Sreenivasamurthy | d6b3850 | 2016-06-24 11:04:29 -0700 | [diff] [blame] | 16 | AM_CFLAGS = -Wall @DPDK@ @VIRL@ @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 | |
| 24 | ######################################## |
| 25 | # Generic stuff |
| 26 | ######################################## |
| 27 | libvnet_la_SOURCES += \ |
| 28 | vnet/config.c \ |
Damjan Marion | 0247b46 | 2016-06-08 01:37:11 +0200 | [diff] [blame] | 29 | vnet/handoff.c \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 30 | vnet/interface.c \ |
| 31 | vnet/interface_cli.c \ |
| 32 | vnet/interface_format.c \ |
| 33 | vnet/interface_output.c \ |
| 34 | vnet/misc.c \ |
| 35 | vnet/replication.c \ |
| 36 | vnet/rewrite.c |
| 37 | |
| 38 | nobase_include_HEADERS += \ |
| 39 | vnet/api_errno.h \ |
| 40 | vnet/buffer.h \ |
| 41 | vnet/config.h \ |
| 42 | vnet/global_funcs.h \ |
Damjan Marion | 0247b46 | 2016-06-08 01:37:11 +0200 | [diff] [blame] | 43 | vnet/handoff.h \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 44 | vnet/interface.h \ |
| 45 | vnet/interface_funcs.h \ |
| 46 | vnet/l3_types.h \ |
| 47 | vnet/pipeline.h \ |
| 48 | vnet/replication.h \ |
| 49 | vnet/rewrite.h \ |
| 50 | vnet/vnet.h |
| 51 | |
| 52 | ######################################## |
| 53 | # Policer infra |
| 54 | ######################################## |
| 55 | |
| 56 | libvnet_la_SOURCES += \ |
| 57 | vnet/policer/node_funcs.c \ |
| 58 | vnet/policer/policer.c \ |
| 59 | vnet/policer/xlate.c |
| 60 | |
| 61 | nobase_include_HEADERS += \ |
| 62 | vnet/policer/police.h \ |
Matus Fabian | 65fcd4d | 2016-05-13 05:44:48 -0700 | [diff] [blame] | 63 | vnet/policer/policer.h \ |
| 64 | vnet/policer/fix_types.h \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 65 | vnet/policer/xlate.h |
| 66 | |
Dave Barach | c07bf5d | 2016-02-17 17:52:26 -0500 | [diff] [blame] | 67 | ######################################## |
| 68 | # Cop - junk filter |
| 69 | ######################################## |
| 70 | |
| 71 | libvnet_la_SOURCES += \ |
| 72 | vnet/cop/cop.c \ |
| 73 | vnet/cop/node1.c \ |
| 74 | vnet/cop/ip4_whitelist.c \ |
| 75 | vnet/cop/ip6_whitelist.c |
| 76 | |
| 77 | nobase_include_HEADERS += \ |
| 78 | vnet/cop/cop.h |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 79 | |
| 80 | ######################################## |
| 81 | # Layer 2 protocols go here |
| 82 | ######################################## |
| 83 | |
| 84 | ######################################## |
| 85 | # Layer 2 protocol: Ethernet |
| 86 | ######################################## |
| 87 | libvnet_la_SOURCES += \ |
| 88 | vnet/ethernet/arp.c \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 89 | vnet/ethernet/format.c \ |
| 90 | vnet/ethernet/init.c \ |
| 91 | vnet/ethernet/interface.c \ |
| 92 | vnet/ethernet/node.c \ |
| 93 | vnet/ethernet/pg.c |
| 94 | |
| 95 | nobase_include_HEADERS += \ |
| 96 | vnet/ethernet/arp_packet.h \ |
| 97 | vnet/ethernet/error.def \ |
| 98 | vnet/ethernet/ethernet.h \ |
| 99 | vnet/ethernet/packet.h \ |
| 100 | vnet/ethernet/types.def |
| 101 | |
| 102 | ######################################## |
| 103 | # Layer 2 protocol: Ethernet bridging |
| 104 | ######################################## |
| 105 | libvnet_la_SOURCES += \ |
| 106 | vnet/l2/feat_bitmap.c \ |
| 107 | vnet/l2/l2_bd.c \ |
| 108 | vnet/l2/l2_bvi.c \ |
| 109 | vnet/l2/l2_classify.c \ |
| 110 | vnet/l2/l2_efp_filter.c \ |
| 111 | vnet/l2/l2_fib.c \ |
| 112 | vnet/l2/l2_flood.c \ |
| 113 | vnet/l2/l2_fwd.c \ |
| 114 | vnet/l2/l2_input_acl.c \ |
| 115 | vnet/l2/l2_input.c \ |
| 116 | vnet/l2/l2_input_vtr.c \ |
| 117 | vnet/l2/l2_learn.c \ |
| 118 | vnet/l2/l2_output_acl.c \ |
| 119 | vnet/l2/l2_output.c \ |
| 120 | vnet/l2/l2_patch.c \ |
Pierre Pfister | d6f5b96 | 2016-03-21 16:17:52 +0000 | [diff] [blame] | 121 | vnet/l2/l2_rw.c \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 122 | vnet/l2/l2_vtr.c \ |
| 123 | vnet/l2/l2_xcrw.c |
| 124 | |
| 125 | nobase_include_HEADERS += \ |
| 126 | vnet/l2/feat_bitmap.h \ |
| 127 | vnet/l2/l2_input.h \ |
| 128 | vnet/l2/l2_output.h \ |
| 129 | vnet/l2/l2_vtr.h \ |
| 130 | vnet/l2/l2_input_vtr.h \ |
| 131 | vnet/l2/l2_efp_filter.h \ |
| 132 | vnet/l2/l2_fwd.h \ |
| 133 | vnet/l2/l2_bd.h \ |
| 134 | vnet/l2/l2_bvi.h \ |
| 135 | vnet/l2/l2_flood.h \ |
| 136 | vnet/l2/l2_fib.h \ |
Pierre Pfister | d6f5b96 | 2016-03-21 16:17:52 +0000 | [diff] [blame] | 137 | vnet/l2/l2_rw.h \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 138 | vnet/l2/l2_xcrw.h \ |
| 139 | vnet/l2/l2_classify.h |
| 140 | |
| 141 | ######################################## |
| 142 | # Layer 2 protocol: SRP |
| 143 | ######################################## |
| 144 | libvnet_la_SOURCES += \ |
| 145 | vnet/srp/format.c \ |
| 146 | vnet/srp/interface.c \ |
| 147 | vnet/srp/node.c \ |
| 148 | vnet/srp/pg.c |
| 149 | |
| 150 | nobase_include_HEADERS += \ |
| 151 | vnet/srp/packet.h \ |
| 152 | vnet/srp/srp.h |
| 153 | |
| 154 | ######################################## |
| 155 | # Layer 2 protocol: PPP |
| 156 | ######################################## |
| 157 | libvnet_la_SOURCES += \ |
| 158 | vnet/ppp/node.c \ |
| 159 | vnet/ppp/pg.c \ |
| 160 | vnet/ppp/ppp.c |
| 161 | |
| 162 | nobase_include_HEADERS += \ |
| 163 | vnet/ppp/error.def \ |
| 164 | vnet/ppp/ppp.h \ |
| 165 | vnet/ppp/packet.h |
| 166 | |
| 167 | ######################################## |
| 168 | # Layer 2 protocol: HDLC |
| 169 | ######################################## |
| 170 | libvnet_la_SOURCES += \ |
| 171 | vnet/hdlc/node.c \ |
| 172 | vnet/hdlc/pg.c \ |
| 173 | vnet/hdlc/hdlc.c |
| 174 | |
| 175 | nobase_include_HEADERS += \ |
| 176 | vnet/hdlc/error.def \ |
| 177 | vnet/hdlc/hdlc.h \ |
| 178 | vnet/hdlc/packet.h |
| 179 | |
| 180 | ######################################## |
| 181 | # Layer 2 protocol: LLC |
| 182 | ######################################## |
| 183 | libvnet_la_SOURCES += \ |
| 184 | vnet/llc/llc.c \ |
| 185 | vnet/llc/node.c \ |
| 186 | vnet/llc/pg.c |
| 187 | |
| 188 | nobase_include_HEADERS += \ |
| 189 | vnet/llc/llc.h |
| 190 | |
| 191 | ######################################## |
| 192 | # Layer 2 protocol: SNAP |
| 193 | ######################################## |
| 194 | libvnet_la_SOURCES += \ |
| 195 | vnet/snap/snap.c \ |
| 196 | vnet/snap/node.c \ |
| 197 | vnet/snap/pg.c |
| 198 | |
| 199 | nobase_include_HEADERS += \ |
| 200 | vnet/snap/snap.h |
| 201 | |
| 202 | ######################################## |
| 203 | # Layer 2 / vxlan |
| 204 | ######################################## |
| 205 | libvnet_la_SOURCES += \ |
| 206 | vnet/vxlan/vxlan.c \ |
| 207 | vnet/vxlan/encap.c \ |
| 208 | vnet/vxlan/decap.c |
| 209 | |
| 210 | nobase_include_HEADERS += \ |
| 211 | vnet/vxlan/vxlan.h \ |
Dave Barach | ced48e7 | 2016-02-08 15:57:35 -0500 | [diff] [blame] | 212 | vnet/vxlan/vxlan_packet.h \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 213 | vnet/vxlan/vxlan_error.def |
| 214 | |
| 215 | ######################################## |
Dave Barach | ced48e7 | 2016-02-08 15:57:35 -0500 | [diff] [blame] | 216 | # Layer 2 / CDP |
| 217 | ######################################## |
| 218 | libvnet_la_SOURCES += \ |
| 219 | vnet/cdp/cdp_input.c \ |
| 220 | vnet/cdp/cdp_node.c \ |
| 221 | vnet/cdp/cdp_periodic.c |
| 222 | |
| 223 | nobase_include_HEADERS += \ |
| 224 | vnet/cdp/cdp_protocol.h |
| 225 | |
| 226 | ######################################## |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 227 | # Layer 2/3 "classify" |
| 228 | ######################################## |
| 229 | libvnet_la_SOURCES += \ |
| 230 | vnet/classify/vnet_classify.c \ |
| 231 | vnet/classify/ip_classify.c \ |
| 232 | vnet/classify/input_acl.c \ |
| 233 | vnet/classify/vnet_classify.h |
| 234 | |
| 235 | nobase_include_HEADERS += \ |
| 236 | vnet/classify/vnet_classify.h \ |
| 237 | vnet/classify/input_acl.h |
| 238 | |
| 239 | ######################################## |
| 240 | # Layer 3 protocols go here |
| 241 | ######################################## |
| 242 | |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 243 | ######################################## |
| 244 | # Layer 3 protocol: IP v4/v6 |
| 245 | ######################################## |
| 246 | libvnet_la_SOURCES += \ |
Dave Barach | b2ef4dd | 2016-03-23 08:56:01 -0400 | [diff] [blame] | 247 | vnet/ip/adj_alloc.c \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 248 | vnet/ip/format.c \ |
| 249 | vnet/ip/icmp4.c \ |
| 250 | vnet/ip/icmp6.c \ |
Dave Barach | d653460 | 2016-06-14 18:38:02 -0400 | [diff] [blame] | 251 | vnet/ip/ip_feature_registration.c \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 252 | vnet/ip/ip46_cli.c \ |
| 253 | vnet/ip/ip4_format.c \ |
| 254 | vnet/ip/ip4_forward.c \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 255 | vnet/ip/ip4_input.c \ |
| 256 | vnet/ip/ip4_mtrie.c \ |
| 257 | vnet/ip/ip4_pg.c \ |
| 258 | vnet/ip/ip4_source_check.c \ |
| 259 | vnet/ip/ip6_format.c \ |
| 260 | vnet/ip/ip6_forward.c \ |
| 261 | vnet/ip/ip6_hop_by_hop.c \ |
| 262 | vnet/ip/ip6_input.c \ |
| 263 | vnet/ip/ip6_neighbor.c \ |
| 264 | vnet/ip/ip6_pg.c \ |
| 265 | vnet/ip/ip_checksum.c \ |
| 266 | vnet/ip/ip.h \ |
| 267 | vnet/ip/ip_init.c \ |
| 268 | vnet/ip/lookup.c \ |
| 269 | vnet/ip/udp_format.c \ |
| 270 | vnet/ip/udp_init.c \ |
| 271 | vnet/ip/udp_local.c \ |
| 272 | vnet/ip/udp_pg.c \ |
| 273 | vnet/ip/ip_input_acl.c \ |
| 274 | vnet/ip/ip_frag.c |
| 275 | |
| 276 | nobase_include_HEADERS += \ |
Dave Barach | b2ef4dd | 2016-03-23 08:56:01 -0400 | [diff] [blame] | 277 | vnet/ip/adj_alloc.h \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 278 | vnet/ip/format.h \ |
| 279 | vnet/ip/icmp46_packet.h \ |
Ole Troan | 92eade1 | 2016-01-13 20:17:08 +0100 | [diff] [blame] | 280 | vnet/ip/icmp4.h \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 281 | vnet/ip/icmp6.h \ |
| 282 | vnet/ip/igmp_packet.h \ |
| 283 | vnet/ip/ip.h \ |
Dave Barach | d653460 | 2016-06-14 18:38:02 -0400 | [diff] [blame] | 284 | vnet/ip/ip_feature_registration.h \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 285 | vnet/ip/ip4.h \ |
| 286 | vnet/ip/ip4_mtrie.h \ |
| 287 | vnet/ip/ip4_error.h \ |
| 288 | vnet/ip/ip4_packet.h \ |
| 289 | vnet/ip/ip6.h \ |
| 290 | vnet/ip/ip6_error.h \ |
| 291 | vnet/ip/ip6_hop_by_hop.h \ |
| 292 | vnet/ip/ip6_hop_by_hop_packet.h \ |
| 293 | vnet/ip/ip6_packet.h \ |
| 294 | vnet/ip/lookup.h \ |
| 295 | vnet/ip/ip_packet.h \ |
| 296 | vnet/ip/ports.def \ |
| 297 | vnet/ip/protocols.def \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 298 | vnet/ip/tcp_packet.h \ |
| 299 | vnet/ip/udp.h \ |
| 300 | vnet/ip/udp_error.def \ |
| 301 | vnet/ip/udp_packet.h |
| 302 | |
| 303 | ######################################## |
| 304 | # Layer 3 protocol: IPSec |
| 305 | ######################################## |
Dave Barach | 61efa14 | 2016-01-22 08:23:09 -0500 | [diff] [blame] | 306 | if WITH_IPSEC |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 307 | libvnet_la_SOURCES += \ |
| 308 | vnet/ipsec/ipsec.c \ |
| 309 | vnet/ipsec/ipsec_cli.c \ |
| 310 | vnet/ipsec/ipsec_format.c \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 311 | vnet/ipsec/ipsec_input.c \ |
| 312 | vnet/ipsec/ipsec_if.c \ |
| 313 | vnet/ipsec/ipsec_if_in.c \ |
| 314 | vnet/ipsec/ipsec_if_out.c \ |
| 315 | vnet/ipsec/esp_encrypt.c \ |
| 316 | vnet/ipsec/esp_decrypt.c \ |
| 317 | vnet/ipsec/ikev2.c \ |
| 318 | vnet/ipsec/ikev2_crypto.c \ |
| 319 | vnet/ipsec/ikev2_cli.c \ |
| 320 | vnet/ipsec/ikev2_payload.c \ |
| 321 | vnet/ipsec/ikev2_format.c |
Dave Barach | 61efa14 | 2016-01-22 08:23:09 -0500 | [diff] [blame] | 322 | endif |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 323 | |
Damjan Marion | e936bbe | 2016-02-25 23:17:38 +0100 | [diff] [blame] | 324 | libvnet_la_SOURCES += \ |
| 325 | vnet/ipsec/ipsec_output.c |
| 326 | |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 327 | nobase_include_HEADERS += \ |
| 328 | vnet/ipsec/ipsec.h \ |
| 329 | vnet/ipsec/esp.h \ |
| 330 | vnet/ipsec/ikev2.h \ |
| 331 | vnet/ipsec/ikev2_priv.h |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 332 | |
| 333 | ######################################## |
| 334 | # Layer 3 protocol: osi |
| 335 | ######################################## |
| 336 | libvnet_la_SOURCES += \ |
| 337 | vnet/osi/node.c \ |
| 338 | vnet/osi/osi.c \ |
| 339 | vnet/osi/pg.c |
| 340 | |
| 341 | nobase_include_HEADERS += \ |
| 342 | vnet/osi/osi.h |
| 343 | |
| 344 | ######################################## |
| 345 | # Layer 3 protocol: MAP |
| 346 | ######################################## |
| 347 | libvnet_la_SOURCES += \ |
| 348 | vnet/map/map.c \ |
| 349 | vnet/map/ip4_map.c \ |
| 350 | vnet/map/ip6_map.c \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 351 | vnet/map/ip4_map_t.c \ |
| 352 | vnet/map/ip6_map_t.c |
| 353 | |
| 354 | nobase_include_HEADERS += \ |
Ole Troan | 3b3688f | 2016-06-15 14:29:08 +0200 | [diff] [blame] | 355 | vnet/map/map.h |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 356 | |
| 357 | ######################################## |
| 358 | # Tunnel protocol: gre |
| 359 | ######################################## |
| 360 | libvnet_la_SOURCES += \ |
| 361 | vnet/gre/gre.c \ |
| 362 | vnet/gre/node.c \ |
| 363 | vnet/gre/interface.c \ |
| 364 | vnet/gre/pg.c |
| 365 | |
| 366 | nobase_include_HEADERS += \ |
| 367 | vnet/gre/gre.h \ |
| 368 | vnet/gre/packet.h \ |
| 369 | vnet/gre/error.def |
| 370 | |
| 371 | ######################################## |
| 372 | # Tunnel protocol: l2tpv3 |
| 373 | ######################################## |
| 374 | libvnet_la_SOURCES += \ |
| 375 | vnet/l2tp/l2tp.c \ |
| 376 | vnet/l2tp/encap.c \ |
| 377 | vnet/l2tp/decap.c \ |
| 378 | vnet/l2tp/pg.c |
| 379 | |
| 380 | nobase_include_HEADERS += \ |
| 381 | vnet/l2tp/l2tp.h \ |
| 382 | vnet/l2tp/packet.h |
| 383 | |
| 384 | ######################################## |
| 385 | # Tunnel protocol: gre+mpls |
| 386 | ######################################## |
| 387 | libvnet_la_SOURCES += \ |
| 388 | vnet/mpls-gre/mpls.c \ |
| 389 | vnet/mpls-gre/node.c \ |
| 390 | vnet/mpls-gre/interface.c \ |
| 391 | vnet/mpls-gre/policy_encap.c \ |
| 392 | vnet/mpls-gre/pg.c |
| 393 | |
| 394 | nobase_include_HEADERS += \ |
| 395 | vnet/mpls-gre/mpls.h \ |
| 396 | vnet/mpls-gre/packet.h \ |
| 397 | vnet/mpls-gre/error.def |
| 398 | |
| 399 | |
| 400 | ######################################## |
Keith Burns (alagalah) | 94b1442 | 2016-05-05 18:16:50 -0700 | [diff] [blame] | 401 | # Tunnel protocol: vxlan-gpe |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 402 | ######################################## |
| 403 | |
| 404 | libvnet_la_SOURCES += \ |
Keith Burns (alagalah) | 94b1442 | 2016-05-05 18:16:50 -0700 | [diff] [blame] | 405 | vnet/vxlan-gpe/vxlan_gpe.c \ |
| 406 | vnet/vxlan-gpe/encap.c \ |
| 407 | vnet/vxlan-gpe/decap.c |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 408 | |
| 409 | nobase_include_HEADERS += \ |
Keith Burns (alagalah) | 94b1442 | 2016-05-05 18:16:50 -0700 | [diff] [blame] | 410 | vnet/vxlan-gpe/vxlan_gpe.h \ |
| 411 | vnet/vxlan-gpe/vxlan_gpe_packet.h \ |
| 412 | vnet/vxlan-gpe/vxlan_gpe_error.def |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 413 | |
| 414 | ######################################## |
Florin Coras | e127a7e | 2016-02-18 22:20:01 +0100 | [diff] [blame] | 415 | # LISP control plane: lisp-cp |
| 416 | ######################################## |
| 417 | |
| 418 | libvnet_la_SOURCES += \ |
| 419 | vnet/lisp-cp/lisp_types.c \ |
| 420 | vnet/lisp-cp/control.c \ |
| 421 | vnet/lisp-cp/gid_dictionary.c \ |
| 422 | vnet/lisp-cp/lisp_msg_serdes.c \ |
| 423 | vnet/lisp-cp/packets.c |
| 424 | |
| 425 | nobase_include_HEADERS += \ |
| 426 | vnet/lisp-cp/lisp_types.h \ |
| 427 | vnet/lisp-cp/packets.h \ |
| 428 | vnet/lisp-cp/gid_dictionary.h \ |
| 429 | vnet/lisp-cp/lisp_cp_messages.h \ |
| 430 | vnet/lisp-cp/lisp_msg_serdes.h \ |
| 431 | vnet/lisp-cp/control.h |
| 432 | |
Filip Tehlar | 254b036 | 2016-04-07 10:04:34 +0200 | [diff] [blame] | 433 | |
| 434 | if ENABLE_TESTS |
| 435 | LDS = -lvppinfra -l:libvlib.a -l:libdpdk.a -l:libvlibmemory.a \ |
| 436 | -l:libvlibapi.a -l:libsvm.a -lpthread -ldl -lrt -lm -l:libvlib_unix.a |
| 437 | |
| 438 | TESTS += test_cp_serdes test_lisp_types |
| 439 | |
| 440 | test_cp_serdes_SOURCES = \ |
| 441 | test/lisp-cp/test_cp_serdes.c \ |
| 442 | vnet/lisp-cp/lisp_msg_serdes.c \ |
| 443 | vnet/lisp-cp/lisp_types.c \ |
| 444 | vnet/lisp-cp/packets.c \ |
| 445 | vnet/ip/ip_checksum.c |
| 446 | |
| 447 | test_lisp_types_SOURCES = \ |
| 448 | test/lisp-cp/test_lisp_types.c \ |
| 449 | vnet/lisp-cp/lisp_types.c |
| 450 | |
| 451 | test_cp_serdes_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG |
| 452 | test_lisp_types_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG |
| 453 | |
| 454 | test_cp_serdes_LDADD = libvnet.la $(LDS) |
| 455 | test_lisp_types_LDADD = libvnet.la $(LDS) |
| 456 | |
| 457 | test_cp_serdes_LDFLAGS = -static |
| 458 | test_lisp_types_LDFLAGS = -static |
| 459 | endif |
| 460 | |
Florin Coras | e127a7e | 2016-02-18 22:20:01 +0100 | [diff] [blame] | 461 | ######################################## |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 462 | # Tunnel protocol: lisp-gpe |
| 463 | ######################################## |
| 464 | |
| 465 | libvnet_la_SOURCES += \ |
| 466 | vnet/lisp-gpe/lisp_gpe.c \ |
Florin Coras | 577c355 | 2016-04-21 00:45:40 +0200 | [diff] [blame] | 467 | vnet/lisp-gpe/interface.c \ |
Florin Coras | 02655bd | 2016-04-26 00:17:24 +0200 | [diff] [blame] | 468 | vnet/lisp-gpe/ip_forward.c \ |
Florin Coras | e127a7e | 2016-02-18 22:20:01 +0100 | [diff] [blame] | 469 | vnet/lisp-gpe/decap.c |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 470 | |
| 471 | nobase_include_HEADERS += \ |
| 472 | vnet/lisp-gpe/lisp_gpe.h \ |
| 473 | vnet/lisp-gpe/lisp_gpe_packet.h \ |
Florin Coras | e127a7e | 2016-02-18 22:20:01 +0100 | [diff] [blame] | 474 | vnet/lisp-gpe/lisp_gpe_error.def |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 475 | |
Filip Tehlar | 254b036 | 2016-04-07 10:04:34 +0200 | [diff] [blame] | 476 | if ENABLE_TESTS |
| 477 | TESTS += test_test |
| 478 | |
| 479 | test_test_SOURCES = test/lisp-gpe/test.c |
| 480 | |
| 481 | test_test_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG |
| 482 | |
| 483 | test_test_LDADD = $(LIBOBJS) |
| 484 | |
| 485 | noinst_PROGRAMS += $(TESTS) |
| 486 | check_PROGRAMS = $(TESTS) |
| 487 | endif |
| 488 | |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 489 | ######################################## |
| 490 | # DHCP client |
| 491 | ######################################## |
| 492 | libvnet_la_SOURCES += \ |
| 493 | vnet/dhcp/client.c \ |
| 494 | vnet/dhcp/client.h |
| 495 | |
| 496 | nobase_include_HEADERS += \ |
| 497 | vnet/dhcp/client.h |
| 498 | |
| 499 | ######################################## |
| 500 | # DHCP proxy |
| 501 | ######################################## |
| 502 | libvnet_la_SOURCES += \ |
| 503 | vnet/dhcp/proxy_node.c \ |
| 504 | vnet/dhcp/proxy.h |
| 505 | |
| 506 | nobase_include_HEADERS += \ |
| 507 | vnet/dhcp/packet.h \ |
| 508 | vnet/dhcp/proxy.h \ |
| 509 | vnet/dhcp/proxy_error.def |
| 510 | |
| 511 | ######################################## |
| 512 | # ipv6 segment routing |
| 513 | ######################################## |
Dave Barach | 61efa14 | 2016-01-22 08:23:09 -0500 | [diff] [blame] | 514 | |
| 515 | if WITH_IPV6SR |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 516 | libvnet_la_SOURCES += \ |
Keith Burns (alagalah) | 52fc44d | 2016-03-25 09:38:50 -0700 | [diff] [blame] | 517 | vnet/sr/sr.c \ |
| 518 | vnet/sr/sr_replicate.c |
Dave Barach | 61efa14 | 2016-01-22 08:23:09 -0500 | [diff] [blame] | 519 | endif |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 520 | |
| 521 | nobase_include_HEADERS += \ |
| 522 | vnet/sr/sr_packet.h \ |
| 523 | vnet/sr/sr_error.def \ |
| 524 | vnet/sr/sr.h |
| 525 | |
| 526 | ######################################## |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 527 | # DHCPv6 proxy |
| 528 | ######################################## |
| 529 | libvnet_la_SOURCES += \ |
| 530 | vnet/dhcpv6/proxy_node.c |
| 531 | |
| 532 | nobase_include_HEADERS += \ |
| 533 | vnet/dhcpv6/packet.h \ |
| 534 | vnet/dhcpv6/proxy.h \ |
| 535 | vnet/dhcpv6/proxy_error.def |
| 536 | |
| 537 | ######################################## |
| 538 | # IPFIX / netflow v10 |
| 539 | ######################################## |
| 540 | libvnet_la_SOURCES += \ |
| 541 | vnet/flow/flow_report.c |
| 542 | |
| 543 | nobase_include_HEADERS += \ |
| 544 | vnet/flow/flow_report.h \ |
| 545 | vnet/flow/ipfix_info_elements.h \ |
| 546 | vnet/flow/ipfix_packet.h |
| 547 | |
| 548 | ######################################## |
| 549 | # IPFIX sample code |
| 550 | ######################################## |
| 551 | |
| 552 | libvnet_la_SOURCES += \ |
| 553 | vnet/flow/flow_report_sample.c |
| 554 | |
| 555 | nobase_include_HEADERS += \ |
| 556 | vnet/flow/flow_report_sample.h |
| 557 | |
| 558 | ######################################## |
| 559 | # lawful intercept |
| 560 | ######################################## |
| 561 | |
| 562 | libvnet_la_SOURCES += \ |
| 563 | vnet/lawful-intercept/lawful_intercept.c \ |
| 564 | vnet/lawful-intercept/node.c |
| 565 | |
| 566 | nobase_include_HEADERS += \ |
| 567 | vnet/dpdk_replication.h \ |
| 568 | vnet/lawful-intercept/lawful_intercept.h |
| 569 | |
| 570 | ######################################## |
| 571 | # Packet generator |
| 572 | ######################################## |
| 573 | |
| 574 | libvnet_la_SOURCES += \ |
| 575 | vnet/pg/cli.c \ |
| 576 | vnet/pg/edit.c \ |
| 577 | vnet/pg/init.c \ |
| 578 | vnet/pg/input.c \ |
| 579 | vnet/pg/output.c \ |
| 580 | vnet/pg/stream.c |
| 581 | |
| 582 | nobase_include_HEADERS += \ |
| 583 | vnet/pg/pg.h \ |
| 584 | vnet/pg/edit.h |
| 585 | |
| 586 | ######################################## |
| 587 | # Intel DPDK |
| 588 | ######################################## |
| 589 | if WITH_DPDK |
| 590 | libvnet_la_SOURCES += \ |
| 591 | vnet/devices/dpdk/dpdk_priv.h \ |
| 592 | vnet/devices/dpdk/device.c \ |
Damjan Marion | 7f62097 | 2016-02-25 16:00:11 +0100 | [diff] [blame] | 593 | vnet/devices/dpdk/format.c \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 594 | vnet/devices/dpdk/init.c \ |
| 595 | vnet/devices/dpdk/node.c \ |
| 596 | vnet/devices/dpdk/threads.c \ |
| 597 | vnet/devices/dpdk/vhost_user.c \ |
| 598 | vnet/devices/dpdk/cli.c |
| 599 | |
| 600 | nobase_include_HEADERS += \ |
| 601 | vnet/devices/dpdk/dpdk.h \ |
| 602 | vnet/devices/dpdk/threads.h |
Damjan Marion | b4d8927 | 2016-05-12 22:14:45 +0200 | [diff] [blame] | 603 | else |
| 604 | libvnet_la_SOURCES += \ |
| 605 | vnet/devices/nic/ixge.c \ |
| 606 | vnet/devices/nic/ixge.h \ |
| 607 | vnet/devices/nic/sfp.c \ |
| 608 | vnet/devices/nic/sfp.h |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 609 | endif |
| 610 | |
| 611 | ######################################## |
| 612 | # virtio |
| 613 | ######################################## |
| 614 | |
| 615 | if WITH_DPDK |
| 616 | libvnet_la_SOURCES += \ |
| 617 | vnet/devices/virtio/vhost-user.c |
| 618 | |
| 619 | nobase_include_HEADERS += \ |
| 620 | vnet/devices/virtio/vhost-user.h |
| 621 | endif WITH_DPDK |
| 622 | |
| 623 | ######################################## |
| 624 | # ssvm ethernet |
| 625 | ######################################## |
| 626 | libvnet_la_SOURCES += \ |
| 627 | vnet/devices/ssvm/ssvm_eth.c \ |
| 628 | vnet/devices/ssvm/node.c |
| 629 | |
| 630 | nobase_include_HEADERS += \ |
| 631 | vnet/devices/ssvm/ssvm_eth.h |
| 632 | |
| 633 | ######################################## |
Damjan Marion | 83243a0 | 2016-02-29 13:09:30 +0100 | [diff] [blame] | 634 | # Linux packet interface |
| 635 | ######################################## |
| 636 | |
| 637 | libvnet_la_SOURCES += \ |
| 638 | vnet/devices/af_packet/af_packet.c \ |
| 639 | vnet/devices/af_packet/device.c \ |
| 640 | vnet/devices/af_packet/node.c \ |
| 641 | vnet/devices/af_packet/cli.c |
| 642 | |
| 643 | nobase_include_HEADERS += \ |
| 644 | vnet/devices/af_packet/af_packet.h |
| 645 | |
| 646 | ######################################## |
Damjan Marion | 108c731 | 2016-04-20 05:04:20 +0200 | [diff] [blame] | 647 | # NETMAP interface |
| 648 | ######################################## |
| 649 | |
| 650 | libvnet_la_SOURCES += \ |
| 651 | vnet/devices/netmap/netmap.c \ |
| 652 | vnet/devices/netmap/device.c \ |
| 653 | vnet/devices/netmap/node.c \ |
| 654 | vnet/devices/netmap/cli.c |
| 655 | |
| 656 | nobase_include_HEADERS += \ |
| 657 | vnet/devices/netmap/netmap.h |
| 658 | |
| 659 | |
| 660 | ######################################## |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 661 | # Unix kernel related |
| 662 | ######################################## |
| 663 | |
| 664 | # FIXME: vnet/unix/hgshm.c |
| 665 | |
| 666 | libvnet_la_SOURCES += \ |
| 667 | vnet/unix/gdb_funcs.c \ |
| 668 | vnet/unix/pcap.c \ |
| 669 | vnet/unix/tapcli.c \ |
| 670 | vnet/unix/tuntap.c |
| 671 | |
| 672 | nobase_include_HEADERS += \ |
| 673 | vnet/unix/pcap.h \ |
| 674 | vnet/unix/tuntap.h \ |
| 675 | vnet/unix/tapcli.h |
| 676 | |
Todd Foggoa | 4ea4ecd | 2016-03-17 14:22:34 -0400 | [diff] [blame] | 677 | ######################################## |
| 678 | # Plugin client library |
| 679 | ######################################## |
| 680 | |
| 681 | libvnetplugin_la_SOURCES += \ |
| 682 | vnet/plugin/p1.c |
| 683 | |
| 684 | nobase_include_HEADERS += \ |
| 685 | vnet/plugin/plugin.h |
| 686 | |
| 687 | lib_LTLIBRARIES = libvnet.la libvnetplugin.la |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 688 | |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 689 | dpdk_libs = |
| 690 | |
| 691 | if WITH_DPDK |
| 692 | dpdk_libs += -l:libdpdk.a |
| 693 | endif |
| 694 | |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 695 | pcap2pg_SOURCES = \ |
| 696 | vnet/unix/pcap2pg.c \ |
| 697 | vnet/unix/pcap.h |
| 698 | |
| 699 | pcap2pg_LDFLAGS = -static |
| 700 | pcap2pg_LDADD = libvnet.la -l:libvppinfra.a -lpthread -lm -ldl |
| 701 | |
| 702 | noinst_PROGRAMS += pcap2pg |
Filip Tehlar | 254b036 | 2016-04-07 10:04:34 +0200 | [diff] [blame] | 703 | |
| 704 | |