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