Reorganize source tree to use single autotools instance
[vpp.git] / src / vpp-api-test.am
1 # Copyright (c) 2015 Cisco and/or its affiliates.
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 libvatplugin_la_SOURCES = \
15   vat/plugin_api.c
16
17 lib_LTLIBRARIES += libvatplugin.la
18
19 bin_PROGRAMS += vpp_api_test vpp_json_test vpp_restart
20
21 vpp_api_test_SOURCES = \
22   vat/api_format.c      \
23   vat/main.c            \
24   vat/plugin.c          \
25   vat/vat.h             \
26   vat/json_format.h     \
27   vat/json_format.c
28
29 vpp_json_test_SOURCES = \
30   vat/json_format.h     \
31   vat/json_format.c     \
32   vat/json_test.c
33
34 vpp_api_test_LDFLAGS = $(DPDK_LD_FLAGS)
35 vpp_api_test_LDADD = \
36   libvlib.la \
37   libvlib_unix.la \
38   libvlibmemoryclient.la                \
39   libsvm.la                             \
40   libvatplugin.la                       \
41   libvppinfra.la                        \
42   libvlibapi.la                         \
43   libvlibmemory.la                      \
44   libvnet.la \
45   $(DPDK_LD_ADD)                        \
46   -lpthread -lm -lrt -ldl -lcrypto
47
48 vpp_json_test_LDADD = libvppinfra.la -lm
49
50 nobase_include_HEADERS += \
51   vat/vat.h             \
52   vat/json_format.h
53
54 vpp_restart_SOURCES =  \
55   vat/restart.c
56 vpp_restart_LDADD = \
57   libsvmdb.la                           \
58   libsvm.la                             \
59   libvppinfra.la                        \
60   -lpthread -lrt
61
62 dist_bin_SCRIPTS += scripts/vppctl
63
64 # vi:syntax=automake