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:
6 # http://www.apache.org/licenses/LICENSE-2.0
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.
14 lib_LTLIBRARIES += libvlibmemory.la libvlibmemoryclient.la
16 libvlibmemory_la_DEPENDENCIES = libvppinfra.la libsvm.la libvlib.la
17 libvlibmemory_la_LIBADD = $(libvlibmemory_la_DEPENDENCIES) -lpthread
18 libvlibmemory_la_SOURCES = \
20 vlibapi/api_helper_macros.h \
21 vlibapi/api_shared.c \
22 vlibapi/node_serialize.c \
24 vlibmemory/memclnt.api \
25 vlibmemory/memory_api.c \
26 vlibmemory/memory_shared.c \
27 vlibmemory/socket_api.c \
28 vlibmemory/vlib_api.c \
29 vlibmemory/vlib_api_cli.c \
30 vlibmemory/vl_memory_api_h.h \
31 vlibmemory/vl_memory_msg_enum.h
33 nobase_include_HEADERS += \
35 vlibapi/api_common.h \
36 vlibapi/api_helper_macros.h \
37 vlibapi/vat_helper_macros.h
39 libvlibmemoryclient_la_DEPENDENCIES = libvppinfra.la libsvm.la
40 libvlibmemoryclient_la_LIBADD = $(libvlibmemoryclient_la_DEPENDENCIES) -lpthread
41 libvlibmemoryclient_la_SOURCES = \
42 vlibapi/api_helper_macros.h \
43 vlibapi/api_shared.c \
44 vlibapi/node_serialize.c \
45 vlibmemory/memclnt.api \
46 vlibmemory/memory_client.c \
47 vlibmemory/memory_shared.c \
48 vlibmemory/socket_client.c \
49 vlibmemory/vl_memory_api_h.h \
50 vlibmemory/vl_memory_msg_enum.h
52 nobase_include_HEADERS += \
54 vlibmemory/memory_api.h \
55 vlibmemory/memory_shared.h \
56 vlibmemory/memory_client.h \
57 vlibmemory/socket_api.h \
58 vlibmemory/socket_client.h \
59 vlibmemory/vl_memory_api_h.h \
60 vlibmemory/vl_memory_msg_enum.h \
61 vlibmemory/memclnt.api.h
64 vlibmemory/memclnt.api.h \
65 vlibmemory/memclnt.api.json
67 noinst_PROGRAMS += sock_test
69 sock_test_SOURCES = vlibsocket/sock_test.c
71 API_FILES += vlibmemory/memclnt.api