1 # Copyright (c) 2018 Cisco Systems, Inc.
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 vppplugins_LTLIBRARIES += avf_plugin.la
15 vppapitestplugins_LTLIBRARIES += avf_test_plugin.la
17 avf_plugin_la_LIBADD =
18 avf_plugin_la_SOURCES = \
28 avf_test_plugin_la_SOURCES = \
29 avf/avf_test.c avf/avf_plugin.api.h
31 noinst_HEADERS += avf/avf.h
33 nobase_apiinclude_HEADERS += \
38 API_FILES += avf/avf.api
41 avf_multiversioning_sources = \
46 ###############################################################
48 ###############################################################
49 libavf_plugin_avx2_la_SOURCES = $(avf_multiversioning_sources)
50 libavf_plugin_avx2_la_CFLAGS = \
51 $(AM_CFLAGS) @CPU_AVX2_FLAGS@ \
52 -DCLIB_MARCH_VARIANT=avx2
53 noinst_LTLIBRARIES += libavf_plugin_avx2.la
54 avf_plugin_la_LIBADD += libavf_plugin_avx2.la
58 ###############################################################
60 ###############################################################
61 libavf_plugin_avx512_la_SOURCES = $(avf_multiversioning_sources)
62 libavf_plugin_avx512_la_CFLAGS = \
63 $(AM_CFLAGS) @CPU_AVX512_FLAGS@ \
64 -DCLIB_MARCH_VARIANT=avx512
65 noinst_LTLIBRARIES += libavf_plugin_avx512.la
66 avf_plugin_la_LIBADD += libavf_plugin_avx512.la