gbp: Add support for ACL
[vpp.git] / src / plugins / memif.am
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:
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 += memif_plugin.la
15 vppapitestplugins_LTLIBRARIES += memif_test_plugin.la
16
17 memif_plugin_la_LIBADD =
18 memif_plugin_la_SOURCES = memif/memif.c   \
19         memif/memif_api.c                 \
20         memif/cli.c                       \
21         memif/node.c                      \
22         memif/device.c                    \
23         memif/socket.c                    \
24         memif/memif_plugin.api.h
25
26 memif_test_plugin_la_SOURCES = \
27   memif/memif_test.c memif/memif_plugin.api.h
28
29 noinst_HEADERS += memif/memif.h
30
31 nobase_apiinclude_HEADERS +=              \
32                   memif/memif_all_api_h.h \
33                   memif/memif_msg_enum.h  \
34                   memif/memif.api.h
35
36 API_FILES += memif/memif.api
37
38 if CPU_X86_64
39 memif_multiversioning_sources =                                         \
40         memif/node.c                                            \
41         memif/device.c
42
43 if CC_SUPPORTS_AVX2
44 ###############################################################
45 # AVX2
46 ###############################################################
47 memif_plugin_avx2_la_SOURCES = $(memif_multiversioning_sources)
48 memif_plugin_avx2_la_CFLAGS =                                   \
49         $(AM_CFLAGS)  @CPU_AVX2_FLAGS@                          \
50         -DCLIB_MARCH_VARIANT=avx2
51 noinst_LTLIBRARIES += memif_plugin_avx2.la
52 memif_plugin_la_LIBADD += memif_plugin_avx2.la
53 endif
54
55 if CC_SUPPORTS_AVX512
56 ###############################################################
57 # AVX512
58 ###############################################################
59 memif_plugin_avx512_la_SOURCES = $(memif_multiversioning_sources)
60 memif_plugin_avx512_la_CFLAGS =                                 \
61         $(AM_CFLAGS) @CPU_AVX512_FLAGS@                         \
62         -DCLIB_MARCH_VARIANT=avx512
63 noinst_LTLIBRARIES += memif_plugin_avx512.la
64 memif_plugin_la_LIBADD += memif_plugin_avx512.la
65 endif
66 endif
67
68 # vi:syntax=automake