Intel Adaptive Virtual Function native device driver plugin
[vpp.git] / src / plugins / avf.am
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:
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 vppplugins_LTLIBRARIES += avf_plugin.la
15
16 avf_plugin_la_LIBADD =
17 avf_plugin_la_SOURCES = \
18         avf/cli.c                       \
19         avf/device.c                    \
20         avf/format.c                    \
21         avf/input.c                     \
22         avf/output.c                    \
23         avf/plugin.c
24
25 noinst_HEADERS += avf/avf.h
26
27 if CPU_X86_64
28 avf_multiversioning_files =                                     \
29         avf/input.c                                             \
30         avf/output.c
31
32 if CC_SUPPORTS_AVX2
33 ###############################################################
34 # AVX2
35 ###############################################################
36 libavf_plugin_avx2_la_SOURCES = $(avf_multiversioning_files)
37 libavf_plugin_avx2_la_CFLAGS =                          \
38         $(AM_CFLAGS)  @CPU_AVX2_FLAGS@                          \
39         -DCLIB_MULTIARCH_VARIANT=avx2
40 noinst_LTLIBRARIES += libavf_plugin_avx2.la
41 avf_plugin_la_LIBADD += libavf_plugin_avx2.la
42 endif
43
44 if CC_SUPPORTS_AVX512
45 ###############################################################
46 # AVX512
47 ###############################################################
48 libavf_plugin_avx512_la_SOURCES = $(avf_multiversioning_files)
49 libavf_plugin_avx512_la_CFLAGS =                                \
50         $(AM_CFLAGS) @CPU_AVX512_FLAGS@                         \
51         -DCLIB_MULTIARCH_VARIANT=avx512
52 noinst_LTLIBRARIES += libavf_plugin_avx512.la
53 avf_plugin_la_LIBADD += libavf_plugin_avx512.la
54 endif
55 endif
56
57 # vi:syntax=automake