acl-plugin: acl-as-a-service: VPP-1248: fix the error if exports.h included in more...
[vpp.git] / src / plugins / acl.am
1 # Copyright (c) 2016 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 vppapitestplugins_LTLIBRARIES += acl_test_plugin.la
15 vppplugins_LTLIBRARIES += acl_plugin.la
16
17 acl_plugin_la_LDFLAGS = $(AM_LDFLAGS)
18 acl_plugin_la_LDFLAGS += -Wl,-lm,-ldl
19
20
21
22 acl_plugin_la_LIBADD =
23
24 acl_plugin_la_SOURCES =                         \
25         acl/acl.c                               \
26         acl/hash_lookup.c                       \
27         acl/lookup_context.c                    \
28         acl/sess_mgmt_node.c                    \
29         acl/dataplane_node.c                    \
30         acl/public_inlines.h                    \
31         acl/exported_types.h                    \
32         acl/manual_fns.h                        \
33         acl/acl_plugin.api.h
34
35 API_FILES += acl/acl.api
36
37 if CPU_X86_64
38 acl_multiversioning_sources =                                    \
39         acl/dataplane_node.c
40
41
42 if CC_SUPPORTS_AVX2
43 ###############################################################
44 # AVX2
45 ###############################################################
46 libacl_plugin_avx2_la_SOURCES = $(acl_multiversioning_sources)
47 libacl_plugin_avx2_la_CFLAGS =                                 \
48         $(AM_CFLAGS)  @CPU_AVX2_FLAGS@                          \
49         -DCLIB_MARCH_VARIANT=avx2
50 noinst_LTLIBRARIES += libacl_plugin_avx2.la
51 acl_plugin_la_LIBADD += libacl_plugin_avx2.la
52 endif
53
54 if CC_SUPPORTS_AVX512
55 ###############################################################
56 # AVX512
57 ###############################################################
58 libacl_plugin_avx512_la_SOURCES = $(acl_multiversioning_sources)
59 libacl_plugin_avx512_la_CFLAGS =                               \
60         $(AM_CFLAGS) @CPU_AVX512_FLAGS@                         \
61         -DCLIB_MARCH_VARIANT=avx512
62 noinst_LTLIBRARIES += libacl_plugin_avx512.la
63 acl_plugin_la_LIBADD += libacl_plugin_avx512.la
64 endif
65 endif
66
67 nobase_apiinclude_HEADERS +=                    \
68   acl/acl_all_api_h.h                           \
69   acl/acl_msg_enum.h                            \
70   acl/manual_fns.h                              \
71   acl/acl.api.h
72
73 acl_test_plugin_la_SOURCES = acl/acl_test.c acl/acl_plugin.api.h acl/acl_all_api.h
74
75 # vi:syntax=automake