Add config option to use dlmalloc instead of mheap
[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 vppapitestplugins_LTLIBRARIES += avf_test_plugin.la
16
17 avf_plugin_la_LIBADD =
18 avf_plugin_la_SOURCES = \
19         avf/cli.c                       \
20         avf/device.c                    \
21         avf/format.c                    \
22         avf/input.c                     \
23         avf/output.c                    \
24         avf/plugin.c                    \
25         avf/avf_api.c                   \
26         avf/avf_plugin.api.h
27
28 avf_test_plugin_la_SOURCES = \
29         avf/avf_test.c avf/avf_plugin.api.h
30
31 noinst_HEADERS += avf/avf.h
32
33 nobase_apiinclude_HEADERS +=            \
34                   avf/avf_all_api_h.h   \
35                   avf/avf_msg_enum.h    \
36                   avf/avf.api.h
37
38 API_FILES += avf/avf.api
39
40 if CPU_X86_64
41 avf_multiversioning_sources =                                   \
42         avf/input.c                                             \
43         avf/output.c
44
45 if CC_SUPPORTS_AVX2
46 ###############################################################
47 # AVX2
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
55 endif
56
57 if CC_SUPPORTS_AVX512
58 ###############################################################
59 # AVX512
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
67 endif
68 endif
69
70 # vi:syntax=automake