5bbd4599729a45b10a9711a72ba6d0531529f89f
[vpp.git] / src / vlib-api.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 lib_LTLIBRARIES += libvlibmemory.la libvlibmemoryclient.la
15
16 libvlibmemory_la_DEPENDENCIES = libvppinfra.la libsvm.la libvlib.la
17 libvlibmemory_la_LIBADD = $(libvlibmemory_la_DEPENDENCIES) -lpthread
18 libvlibmemory_la_SOURCES =                      \
19         vlibapi/api.h                           \
20         vlibapi/api_helper_macros.h             \
21         vlibapi/api_shared.c                    \
22         vlibapi/node_serialize.c                \
23         vlibmemory/api.h                        \
24         vlibmemory/memclnt.api                  \
25         vlibmemory/memory_shared.c              \
26         vlibmemory/memory_vlib.c                \
27         vlibmemory/socksvr_vlib.c               \
28         vlibmemory/unix_shared_memory_queue.c   \
29         vlibmemory/unix_shared_memory_queue.h   \
30         vlibmemory/vl_memory_api_h.h            \
31         vlibmemory/vl_memory_msg_enum.h
32
33 nobase_include_HEADERS += vlibapi/api.h         \
34         vlibapi/api_common.h                    \
35         vlibapi/api_helper_macros.h             \
36         vlibapi/vat_helper_macros.h
37
38 libvlibmemoryclient_la_DEPENDENCIES = libvppinfra.la libsvm.la
39 libvlibmemoryclient_la_LIBADD = $(libvlibmemoryclient_la_DEPENDENCIES) -lpthread
40 libvlibmemoryclient_la_SOURCES =                \
41         vlibapi/api_helper_macros.h             \
42         vlibapi/api_shared.c                    \
43         vlibapi/node_unserialize.c              \
44         vlibmemory/api.h                        \
45         vlibmemory/memclnt.api                  \
46         vlibmemory/memory_client.c              \
47         vlibmemory/memory_shared.c              \
48         vlibmemory/socket_client.c              \
49         vlibmemory/unix_shared_memory_queue.c   \
50         vlibmemory/unix_shared_memory_queue.h   \
51         vlibmemory/vl_memory_api_h.h            \
52         vlibmemory/vl_memory_msg_enum.h
53
54 nobase_include_HEADERS +=                       \
55         vlibmemory/api.h                        \
56         vlibmemory/api_common.h                 \
57         vlibmemory/vl_memory_api_h.h            \
58         vlibmemory/vl_memory_msg_enum.h         \
59         vlibmemory/unix_shared_memory_queue.h   \
60         vlibmemory/memclnt.api.h
61
62 BUILT_SOURCES +=                                \
63         vlibmemory/memclnt.api.h                \
64         vlibmemory/memclnt.api.json
65
66 noinst_PROGRAMS += sock_test
67
68 sock_test_SOURCES = vlibsocket/sock_test.c
69
70 API_FILES += vlibmemory/memclnt.api 
71
72 # vi:syntax=automake