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 \
30 acl/public_inlines.h \
31 acl/exported_types.h \
35 API_FILES += acl/acl.api
38 acl_multiversioning_sources = \
43 ###############################################################
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
55 ###############################################################
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
67 nobase_apiinclude_HEADERS += \
73 acl_test_plugin_la_SOURCES = acl/acl_test.c acl/acl_plugin.api.h acl/acl_all_api.h