f9705d05d1cbece1d573936a2bb19d7a714d2eb8
[vpp.git] / plugins / vcgn-plugin / 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 -I@TOOLKIT_INCLUDE@
17
18 ########################################
19 # Virtual Carrier Grade NAT
20 ########################################
21
22 libvcgn_plugin_la_SOURCES =                                     \
23         vcgn/cnat_bulk_port.c                                   \
24         vcgn/cnat_config.c                                      \
25         vcgn/cnat_db_scanner.c                                  \
26         vcgn/cnat_db_v2.c                                       \
27         vcgn/cnat_debug_msg_handler.c                           \
28         vcgn/cnat_cli_handler.c                                 \
29         vcgn/cnat_global.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               \
41         vcgn/cnat_logging.c                                     \
42         vcgn/cnat_ports.c                                       \
43         vcgn/cnat_util.c                                        \
44         vcgn/cnat_show.c                                        \
45         vcgn/cnat_syslog.c                                      \
46         vcgn/cnat_v4_functions.c                                \
47         vcgn/index_list.c                                       \
48         vcgn/spp_platform_trace_log.c                           \
49         vcgn/vcgn_classify.c
50
51 nobase_include_HEADERS =                        \
52         vcgn/cgn_bitmap.h                       \
53         vcgn/cgse_defs.h                        \
54         vcgn/cnat_bulk_port_defs.h              \
55         vcgn/cnat_bulk_port.h                   \
56         vcgn/cnat_cli.h                         \
57         vcgn/cnat_common_api.h                  \
58         vcgn/cnat_config_api.h                  \
59         vcgn/cnat_config.h                      \
60         vcgn/cnat_db.h                          \
61         vcgn/cnat_global.h                      \
62         vcgn/cnat_ipv4_icmp.h                   \
63         vcgn/cnat_ipv4_udp.h                    \
64         vcgn/cnat_log_api.h                     \
65         vcgn/cnat_log_common.h                  \
66         vcgn/cnat_logging.h                     \
67         vcgn/cnat_pcp_server.h                  \
68         vcgn/cnat_ports.h                       \
69         vcgn/cnat_show_api.h                    \
70         vcgn/cnat_show_response.h               \
71         vcgn/cnat_syslog.h                      \
72         vcgn/cnat_v4_ftp_alg.h                  \
73         vcgn/cnat_v4_functions.h                \
74         vcgn/cnat_v4_pptp_alg.h                 \
75         vcgn/cnat_va_db.h                       \
76         vcgn/dslite_db.h                        \
77         vcgn/dslite_defs.h                      \
78         vcgn/index_list.h                       \
79         vcgn/nat64_db.h                         \
80         vcgn/nat64_defs.h                       \
81         vcgn/nat64_tcp_sm.h                     \
82         vcgn/platform_common.h                  \
83         vcgn/platform_common_override.h         \
84         vcgn/spp_ctx.h                          \
85         vcgn/spp_platform_trace_log.h           \
86         vcgn/spp_timers.h                       \
87         vcgn/tcp_header_definitions.h           \
88         vcgn/vcgn_db.h
89
90 libvcgn_plugin_la_LDFLAGS = -module
91
92 lib_LTLIBRARIES = libvcgn_plugin.la
93
94 if WITH_PLUGIN_TOOLKIT
95 install-data-hook:
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
99 endif