blob: 85fbcd7e730b1ff256bd5c214c3167860634d9ca [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 =
Dave Wallacee4d5a652018-06-24 21:21:21 -040018libvppcom_la_DEPENDENCIES = \
19 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 \
Florin Coras697faea2018-06-27 17:10:49 -070026 vcl/vcl_bapi.c \
27 vcl/vcl_cfg.c \
Florin Coras0d427d82018-06-27 03:24:07 -070028 vcl/vcl_debug.h \
Florin Coras697faea2018-06-27 17:10:49 -070029 vcl/vcl_event.c \
30 vcl/vcl_private.h \
Dave Wallace6476b3c2017-10-25 12:30:37 -040031 $(libvppinfra_la_SOURCES) \
Dave Wallace6476b3c2017-10-25 12:30:37 -040032 $(libsvm_la_SOURCES) \
33 $(libvlibmemoryclient_la_SOURCES)
Dave Wallace5c7cf1c2017-10-24 04:12:18 -040034
35nobase_include_HEADERS += \
Dave Wallacee4d5a652018-06-24 21:21:21 -040036 vcl/vcl_event.h \
Keith Burns (alagalah)5a2946c2018-02-02 08:21:56 -080037 vcl/vppcom.h
38
39libvcl_ldpreload_la_LIBADD = $(libvppcom_la_DEPENDENCIES) -lpthread -lrt -ldl
40
41libvcl_ldpreload_la_SOURCES += \
Dave Wallace2a865272018-02-07 21:00:42 -050042 vcl/ldp_socket_wrapper.c \
43 vcl/ldp.c \
Keith Burns (alagalah)5a2946c2018-02-02 08:21:56 -080044 $(libvppcom_la_SOURCES)
45
46nobase_include_HEADERS += \
Dave Wallace2a865272018-02-07 21:00:42 -050047 vcl/ldp_socket_wrapper.h \
48 vcl/ldp_glibc_socket.h \
49 vcl/ldp.h
Dave Wallace5c7cf1c2017-10-24 04:12:18 -040050
51noinst_PROGRAMS += \
52 vcl_test_server \
53 vcl_test_client \
54 sock_test_server \
Dave Wallacee4d5a652018-06-24 21:21:21 -040055 sock_test_client \
56 test_vcl_listener_server \
Keith Burns (alagalah)0d2b0d52018-03-06 15:55:22 -080057 test_vcl_listener_client
58
59
60test_vcl_listener_server_SOURCES = vcl/test_vcl_listener_server.c
61test_vcl_listener_server_LDADD = libvppcom.la
62
63test_vcl_listener_client_SOURCES = vcl/test_vcl_listener_client.c
64test_vcl_listener_client_LDADD = libvppcom.la
Dave Wallace5c7cf1c2017-10-24 04:12:18 -040065
66vcl_test_server_SOURCES = vcl/vcl_test_server.c
67vcl_test_server_LDADD = libvppcom.la
68
Keith Burns (alagalah)0d2b0d52018-03-06 15:55:22 -080069
Dave Wallace5c7cf1c2017-10-24 04:12:18 -040070vcl_test_client_SOURCES = vcl/vcl_test_client.c
Dave Wallacee4d5a652018-06-24 21:21:21 -040071vcl_test_client_LDADD = libvppcom.la
Dave Wallace5c7cf1c2017-10-24 04:12:18 -040072
73sock_test_server_SOURCES = vcl/sock_test_server.c
74sock_test_client_SOURCES = vcl/sock_test_client.c
75
76nobase_include_HEADERS += \
Dave Wallacee4d5a652018-06-24 21:21:21 -040077 vcl/sock_test_common.h \
78 vcl/sock_test.h \
79 vcl/vcl_test.h
Florin Corasf8f516a2018-02-08 15:10:09 -080080
81# vi:syntax=automake