dpdk: be a plugin
[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 dpdk_plugin_la_LDFLAGS = $(AM_LDFLAGS) -Wl,--whole-archive,-l:libdpdk.a,--no-whole-archive,-lm,-ldl
18
19 dpdk_plugin_la_SOURCES =                                        \
20   dpdk/init.c                                                   \
21   dpdk/main.c                                                   \
22   dpdk/buffer.c                                                 \
23   dpdk/thread.c                                                 \
24   dpdk/device/cli.c                                             \
25   dpdk/device/dpdk_priv.h                                       \
26   dpdk/device/device.c                                          \
27   dpdk/device/format.c                                          \
28   dpdk/device/node.c                                            \
29   dpdk/hqos/hqos.c                                              \
30   dpdk/ipsec/esp_encrypt.c                                      \
31   dpdk/ipsec/esp_decrypt.c                                      \
32   dpdk/ipsec/crypto_node.c                                      \
33   dpdk/ipsec/cli.c                                              \
34   dpdk/ipsec/ipsec.c                                            \
35   dpdk/api/dpdk_plugin.api.h
36
37 API_FILES += dpdk/api/dpdk.api
38
39 nobase_include_HEADERS +=                                       \
40   dpdk/device/dpdk.h                                            \
41   dpdk/api/dpdk_all_api_h.h
42
43 nobase_include_HEADERS +=                       \
44  dpdk/ipsec/ipsec.h             \
45  dpdk/ipsec/esp.h
46
47 dpdk_test_plugin_la_SOURCES =                                   \
48   dpdk/api/dpdk_test.c dpdk/api/dpdk_plugin.api.h
49
50 # vi:syntax=automake