blob: eac3d7e48cb29d2569a71e8f9ab9f154b84a04ad [file] [log] [blame]
Dave Wallace5c7cf1c2017-10-24 04:12:18 -04001# Copyright (c) 2017 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
14lib_LTLIBRARIES += libvppcom.la libvcl_ldpreload.la
15
16libvppcom_la_SOURCES =
17libvcl_ldpreload_la_SOURCES =
18libvppcom_la_DEPENDENCIES = \
Dave Wallace5c7cf1c2017-10-24 04:12:18 -040019 libsvm.la \
Dave Wallace5c7cf1c2017-10-24 04:12:18 -040020 libvlibmemoryclient.la
21
Keith Burns (alagalah)5a2946c2018-02-02 08:21:56 -080022libvppcom_la_LIBADD = $(libvppcom_la_DEPENDENCIES) -lpthread -lrt -ldl
Dave Wallace5c7cf1c2017-10-24 04:12:18 -040023
24libvppcom_la_SOURCES += \
Keith Burns (alagalah)5a2946c2018-02-02 08:21:56 -080025 vcl/vppcom.c \
Dave Wallace6476b3c2017-10-25 12:30:37 -040026 $(libvppinfra_la_SOURCES) \
27 $(libvlib_la_SOURCES) \
28 $(libsvm_la_SOURCES) \
29 $(libvlibmemoryclient_la_SOURCES)
Dave Wallace5c7cf1c2017-10-24 04:12:18 -040030
31nobase_include_HEADERS += \
Keith Burns (alagalah)5a2946c2018-02-02 08:21:56 -080032 vcl/vppcom.h
33
34libvcl_ldpreload_la_LIBADD = $(libvppcom_la_DEPENDENCIES) -lpthread -lrt -ldl
35
36libvcl_ldpreload_la_SOURCES += \
37 vcl/vcom_socket_wrapper.c \
38 vcl/vcom.c \
39 $(libvppcom_la_SOURCES)
40
41nobase_include_HEADERS += \
Dave Wallace5c7cf1c2017-10-24 04:12:18 -040042 vcl/vcom_socket_wrapper.h \
43 vcl/vcom_glibc_socket.h \
Dave Wallace048b1d62018-01-03 22:24:41 -050044 vcl/vcom.h
Dave Wallace5c7cf1c2017-10-24 04:12:18 -040045
46noinst_PROGRAMS += \
47 vcl_test_server \
48 vcl_test_client \
49 sock_test_server \
50 sock_test_client
51
52vcl_test_server_SOURCES = vcl/vcl_test_server.c
53vcl_test_server_LDADD = libvppcom.la
54
55vcl_test_client_SOURCES = vcl/vcl_test_client.c
Dave Wallace6476b3c2017-10-25 12:30:37 -040056
57# Link libvcl_ldpreload.la instead of vppcom.la
58# to validate that all symbols are included in
59# libvcl_ldpreload.la at build time.
60#
61# Not recommended for production VCL apps as
62# it includes extraneous code which will never
63# be executed.
64vcl_test_client_LDADD = libvcl_ldpreload.la
Dave Wallace5c7cf1c2017-10-24 04:12:18 -040065
66sock_test_server_SOURCES = vcl/sock_test_server.c
67sock_test_client_SOURCES = vcl/sock_test_client.c
68
69nobase_include_HEADERS += \
70 vcl/sock_test.h