1 # Copyright (c) 2017 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 += memif_plugin.la
15 vppapitestplugins_LTLIBRARIES += memif_test_plugin.la
17 memif_plugin_la_LIBADD =
18 memif_plugin_la_SOURCES = memif/memif.c \
24 memif/memif_plugin.api.h
26 memif_test_plugin_la_SOURCES = \
27 memif/memif_test.c memif/memif_plugin.api.h
29 noinst_HEADERS += memif/memif.h
31 nobase_apiinclude_HEADERS += \
32 memif/memif_all_api_h.h \
33 memif/memif_msg_enum.h \
36 API_FILES += memif/memif.api
39 memif_multiversioning_files = \
44 ###############################################################
46 ###############################################################
47 libmemif_plugin_avx2_la_SOURCES = $(memif_multiversioning_files)
48 libmemif_plugin_avx2_la_CFLAGS = \
49 $(AM_CFLAGS) @CPU_AVX2_FLAGS@ \
50 -DCLIB_MULTIARCH_VARIANT=avx2
51 noinst_LTLIBRARIES += libmemif_plugin_avx2.la
52 memif_plugin_la_LIBADD += libmemif_plugin_avx2.la
56 ###############################################################
58 ###############################################################
59 libmemif_plugin_avx512_la_SOURCES = $(memif_multiversioning_files)
60 libmemif_plugin_avx512_la_CFLAGS = \
61 $(AM_CFLAGS) @CPU_AVX512_FLAGS@ \
62 -DCLIB_MULTIARCH_VARIANT=avx512
63 noinst_LTLIBRARIES += libmemif_plugin_avx512.la
64 memif_plugin_la_LIBADD += libmemif_plugin_avx512.la