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:
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 vppapitestplugins_LTLIBRARIES += acl_test_plugin.la
15 vppplugins_LTLIBRARIES += acl_plugin.la
17 acl_plugin_la_LDFLAGS = $(AM_LDFLAGS)
18 acl_plugin_la_LDFLAGS += -Wl,-lm,-ldl
22 acl_plugin_la_LIBADD =
24 acl_plugin_la_SOURCES = \
27 acl/lookup_context.c \
28 acl/sess_mgmt_node.c \
29 acl/dataplane_node.c \
34 API_FILES += acl/acl.api
37 acl_multiversioning_files = \
42 ###############################################################
44 ###############################################################
45 libacl_plugin_avx2_la_SOURCES = $(acl_multiversioning_files)
46 libacl_plugin_avx2_la_CFLAGS = \
47 $(AM_CFLAGS) @CPU_AVX2_FLAGS@ \
48 -DCLIB_MULTIARCH_VARIANT=avx2
49 noinst_LTLIBRARIES += libacl_plugin_avx2.la
50 acl_plugin_la_LIBADD += libacl_plugin_avx2.la
54 ###############################################################
56 ###############################################################
57 libacl_plugin_avx512_la_SOURCES = $(acl_multiversioning_files)
58 libacl_plugin_avx512_la_CFLAGS = \
59 $(AM_CFLAGS) @CPU_AVX512_FLAGS@ \
60 -DCLIB_MULTIARCH_VARIANT=avx512
61 noinst_LTLIBRARIES += libacl_plugin_avx512.la
62 acl_plugin_la_LIBADD += libacl_plugin_avx512.la
66 nobase_apiinclude_HEADERS += \
72 acl_test_plugin_la_SOURCES = acl/acl_test.c acl/acl_plugin.api.h acl/acl_all_api.h