Ole Troan | 3cc4971 | 2017-03-08 12:02:24 +0100 | [diff] [blame] | 1 | # 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 | |
| 14 | # |
| 15 | # VPP API C wrapper extension |
| 16 | # |
Damjan Marion | 5fec1e8 | 2017-04-13 19:13:47 +0200 | [diff] [blame] | 17 | lib_LTLIBRARIES += libvppapiclient.la |
Ole Troan | 2fee167 | 2018-08-23 13:00:53 +0200 | [diff] [blame] | 18 | libvppapiclient_la_SOURCES = \ |
| 19 | vpp-api/client/client.c \ |
| 20 | vpp-api/client/stat_client.c \ |
Damjan Marion | 5fec1e8 | 2017-04-13 19:13:47 +0200 | [diff] [blame] | 21 | vpp-api/client/libvppapiclient.map |
| 22 | |
| 23 | libvppapiclient_la_LIBADD = \ |
Ole Troan | 3cc4971 | 2017-03-08 12:02:24 +0100 | [diff] [blame] | 24 | -lpthread -lm -lrt |
| 25 | |
Damjan Marion | 5fec1e8 | 2017-04-13 19:13:47 +0200 | [diff] [blame] | 26 | libvppapiclient_la_LDFLAGS = \ |
| 27 | -Wl,-L$(top_builddir)/.libs,--whole-archive,-l:libsvm.a,-l:libvppinfra.a,-l:libvlibmemoryclient.a,--no-whole-archive \ |
| 28 | -Wl,--version-script=$(srcdir)/vpp-api/client/libvppapiclient.map,-lrt |
Ole Troan | 3cc4971 | 2017-03-08 12:02:24 +0100 | [diff] [blame] | 29 | |
Damjan Marion | 5fec1e8 | 2017-04-13 19:13:47 +0200 | [diff] [blame] | 30 | libvppapiclient_la_DEPENDENCIES = libvppinfra.la libvlibmemoryclient.la libsvm.la |
| 31 | |
| 32 | libvppapiclient_la_CPPFLAGS = |
| 33 | |
| 34 | nobase_include_HEADERS += vpp-api/client/vppapiclient.h |
Ole Troan | 3cc4971 | 2017-03-08 12:02:24 +0100 | [diff] [blame] | 35 | |
| 36 | # |
| 37 | # Test client |
| 38 | # |
| 39 | if ENABLE_TESTS |
Damjan Marion | 5fec1e8 | 2017-04-13 19:13:47 +0200 | [diff] [blame] | 40 | noinst_PROGRAMS += vac_test |
| 41 | vac_test_SOURCES = vpp-api/client/test.c |
| 42 | vac_test_LDADD = \ |
| 43 | $(builddir)/libvppapiclient.la \ |
Ole Troan | 3cc4971 | 2017-03-08 12:02:24 +0100 | [diff] [blame] | 44 | -lpthread -lm -lrt |
| 45 | endif |
| 46 | |
| 47 | # vi:syntax=automake |