blob: ccb323a033bc5f04a311d4efa731e4a1969ee76f [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)3cf2d642018-02-23 10:17:01 -080025 vcl/vcl_event.c \
Keith Burns (alagalah)5a2946c2018-02-02 08:21:56 -080026 vcl/vppcom.c \
Dave Wallace6476b3c2017-10-25 12:30:37 -040027 $(libvppinfra_la_SOURCES) \
Dave Wallace6476b3c2017-10-25 12:30:37 -040028 $(libsvm_la_SOURCES) \
29 $(libvlibmemoryclient_la_SOURCES)
Dave Wallace5c7cf1c2017-10-24 04:12:18 -040030
31nobase_include_HEADERS += \
Keith Burns (alagalah)3cf2d642018-02-23 10:17:01 -080032 vcl/vcl_event.h \
Keith Burns (alagalah)5a2946c2018-02-02 08:21:56 -080033 vcl/vppcom.h
34
35libvcl_ldpreload_la_LIBADD = $(libvppcom_la_DEPENDENCIES) -lpthread -lrt -ldl
36
37libvcl_ldpreload_la_SOURCES += \
Dave Wallace2a865272018-02-07 21:00:42 -050038 vcl/ldp_socket_wrapper.c \
39 vcl/ldp.c \
Keith Burns (alagalah)5a2946c2018-02-02 08:21:56 -080040 $(libvppcom_la_SOURCES)
41
42nobase_include_HEADERS += \
Dave Wallace2a865272018-02-07 21:00:42 -050043 vcl/ldp_socket_wrapper.h \
44 vcl/ldp_glibc_socket.h \
45 vcl/ldp.h
Dave Wallace5c7cf1c2017-10-24 04:12:18 -040046
47noinst_PROGRAMS += \
48 vcl_test_server \
49 vcl_test_client \
50 sock_test_server \
Keith Burns (alagalah)0d2b0d52018-03-06 15:55:22 -080051 sock_test_client \
52 test_vcl_listener_server \
53 test_vcl_listener_client
54
55
56test_vcl_listener_server_SOURCES = vcl/test_vcl_listener_server.c
57test_vcl_listener_server_LDADD = libvppcom.la
58
59test_vcl_listener_client_SOURCES = vcl/test_vcl_listener_client.c
60test_vcl_listener_client_LDADD = libvppcom.la
Dave Wallace5c7cf1c2017-10-24 04:12:18 -040061
62vcl_test_server_SOURCES = vcl/vcl_test_server.c
63vcl_test_server_LDADD = libvppcom.la
64
Keith Burns (alagalah)0d2b0d52018-03-06 15:55:22 -080065
Dave Wallace5c7cf1c2017-10-24 04:12:18 -040066vcl_test_client_SOURCES = vcl/vcl_test_client.c
Dave Wallace6476b3c2017-10-25 12:30:37 -040067
68# Link libvcl_ldpreload.la instead of vppcom.la
69# to validate that all symbols are included in
70# libvcl_ldpreload.la at build time.
71#
72# Not recommended for production VCL apps as
73# it includes extraneous code which will never
74# be executed.
75vcl_test_client_LDADD = libvcl_ldpreload.la
Dave Wallace5c7cf1c2017-10-24 04:12:18 -040076
77sock_test_server_SOURCES = vcl/sock_test_server.c
78sock_test_client_SOURCES = vcl/sock_test_client.c
79
80nobase_include_HEADERS += \
81 vcl/sock_test.h
Florin Corasf8f516a2018-02-08 15:10:09 -080082
83# vi:syntax=automake