Unneeded linking
[vpp.git] / src / plugins / dpdk.am
1 # Copyright (c) 2016 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 vppapitestplugins_LTLIBRARIES += dpdk_test_plugin.la
15 vppplugins_LTLIBRARIES += dpdk_plugin.la
16
17 if ENABLE_DPDK_SHARED
18 dpdk_plugin_la_LDFLAGS = $(AM_LDFLAGS) -ldpdk
19 else
20 dpdk_plugin_la_LDFLAGS = $(AM_LDFLAGS) -Wl,--whole-archive,-l:libdpdk.a,--no-whole-archive
21 endif
22 if WITH_DPDK_CRYPTO_SW
23 dpdk_plugin_la_LDFLAGS += -Wl,--exclude-libs,libIPSec_MB.a,-l:libIPSec_MB.a
24 dpdk_plugin_la_LDFLAGS += -Wl,--exclude-libs,libisal_crypto.a,-l:libisal_crypto.a
25 endif
26 dpdk_plugin_la_LDFLAGS += -Wl,-lm,-ldl
27 if WITH_DPDK_MLX5_PMD
28 dpdk_plugin_la_LDFLAGS += -Wl,-libverbs
29 endif
30
31 dpdk_plugin_la_SOURCES =                                        \
32   dpdk/main.c                                                   \
33   dpdk/buffer.c                                                 \
34   dpdk/thread.c                                                 \
35   dpdk/api/dpdk_api.c                                           \
36   dpdk/device/cli.c                                             \
37   dpdk/device/common.c                                          \
38   dpdk/device/dpdk_priv.h                                       \
39   dpdk/device/device.c                                          \
40   dpdk/device/format.c                                          \
41   dpdk/device/init.c                                            \
42   dpdk/device/node.c                                            \
43   dpdk/hqos/hqos.c                                              \
44   dpdk/ipsec/esp_encrypt.c                                      \
45   dpdk/ipsec/esp_decrypt.c                                      \
46   dpdk/ipsec/crypto_node.c                                      \
47   dpdk/ipsec/cli.c                                              \
48   dpdk/ipsec/ipsec.c                                            \
49   dpdk/api/dpdk_plugin.api.h
50
51 API_FILES += dpdk/api/dpdk.api
52
53 nobase_include_HEADERS +=                                       \
54   dpdk/device/dpdk.h                                            \
55   dpdk/api/dpdk_all_api_h.h
56
57 nobase_include_HEADERS +=                       \
58  dpdk/ipsec/ipsec.h             \
59  dpdk/ipsec/esp.h
60
61 dpdk_test_plugin_la_SOURCES =                                   \
62   dpdk/api/dpdk_test.c dpdk/api/dpdk_plugin.api.h
63
64 # vi:syntax=automake