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:
6 # http://www.apache.org/licenses/LICENSE-2.0
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.
14 AUTOMAKE_OPTIONS = foreign subdir-objects
16 AM_CFLAGS = -Wall -I@TOOLKIT_INCLUDE@
18 ########################################
19 # Virtual Carrier Grade NAT
20 ########################################
22 libvcgn_plugin_la_SOURCES = \
23 vcgn/cnat_bulk_port.c \
25 vcgn/cnat_db_scanner.c \
27 vcgn/cnat_debug_msg_handler.c \
28 vcgn/cnat_cli_handler.c \
30 vcgn/cnat_ipv4_udp_inside_input.c \
31 vcgn/cnat_ipv4_udp_inside_input_exceptions.c \
32 vcgn/cnat_ipv4_udp_outside_input.c \
33 vcgn/cnat_ipv4_tcp_inside_input.c \
34 vcgn/cnat_ipv4_tcp_inside_input_exceptions.c \
35 vcgn/cnat_ipv4_tcp_outside_input.c \
36 vcgn/cnat_ipv4_icmp_query_inside_input.c \
37 vcgn/cnat_ipv4_icmp_query_inside_input_exception.c \
38 vcgn/cnat_ipv4_icmp_query_outside_input.c \
39 vcgn/cnat_ipv4_icmp_error_inside_input.c \
40 vcgn/cnat_ipv4_icmp_error_outside_input.c \
46 vcgn/cnat_v4_functions.c \
48 vcgn/spp_platform_trace_log.c \
51 nobase_include_HEADERS = \
54 vcgn/cnat_bulk_port_defs.h \
55 vcgn/cnat_bulk_port.h \
57 vcgn/cnat_common_api.h \
58 vcgn/cnat_config_api.h \
62 vcgn/cnat_ipv4_icmp.h \
63 vcgn/cnat_ipv4_udp.h \
65 vcgn/cnat_log_common.h \
67 vcgn/cnat_pcp_server.h \
69 vcgn/cnat_show_api.h \
70 vcgn/cnat_show_response.h \
72 vcgn/cnat_v4_ftp_alg.h \
73 vcgn/cnat_v4_functions.h \
74 vcgn/cnat_v4_pptp_alg.h \
82 vcgn/platform_common.h \
83 vcgn/platform_common_override.h \
85 vcgn/spp_platform_trace_log.h \
87 vcgn/tcp_header_definitions.h \
90 libvcgn_plugin_la_LDFLAGS = -module
92 lib_LTLIBRARIES = libvcgn_plugin.la
94 if WITH_PLUGIN_TOOLKIT
96 mkdir /usr/lib/vpp_plugins || true
97 mkdir /usr/lib/vpp_api_test_plugins || true
98 cp -L $(prefix)/lib/libvcgn_plugin.so /usr/lib/vpp_plugins