Makefile.am revision 4c047107
1# Copyright (c) 2016 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
14AUTOMAKE_OPTIONS = foreign subdir-objects
15
16AM_CFLAGS = -Wall -I@TOOLKIT_INCLUDE@
17
18lib_LTLIBRARIES = librtnl.la
19
20librtnl_la_SOURCES =     \
21  librtnl/netns.c        \
22  librtnl/rtnl.c         \
23  librtnl/mapper.c
24
25nobase_include_HEADERS =	\
26  librtnl/netns.h           \
27  librtnl/rtnl.h            \
28  librtnl/mapper.h
29
30
31lib_LTLIBRARIES += testrtnl_plugin.la
32
33testrtnl_plugin_la_SOURCES = test/test.c
34testrtnl_plugin_la_LDFLAGS = -module
35
36
37if WITH_PLUGIN_TOOLKIT
38install-data-hook:
39	mkdir /usr/lib/vpp_plugins || true
40	cp $(prefix)/lib/testnl_plugin.so.*.*.* /usr/lib/vpp_plugins
41endif
42