blob: 067e4afcc3c543e9649dca8540744bb53f0900a2 [file] [log] [blame]
Damjan Marion7cd468a2016-12-19 23:05:39 +01001# Copyright (c) 2015 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
Damjan Marion0eca04d2017-01-03 20:11:35 +010015lib_LTLIBRARIES += libvlib.la
Damjan Marion01914ce2017-09-14 19:04:50 +020016libvlib_la_LIBADD = libvppinfra.la -ldl -lpthread
Damjan Marion8db1c762017-01-04 16:07:54 +010017libvlib_la_DEPENDENCIES = libvppinfra.la
Damjan Marion7cd468a2016-12-19 23:05:39 +010018
19BUILT_SOURCES += vlib/config.h
20
21vlib/config.h:
Damjan Marion0eca04d2017-01-03 20:11:35 +010022 @echo "#define __PRE_DATA_SIZE" @PRE_DATA_SIZE@ > $@
Damjan Marion7cd468a2016-12-19 23:05:39 +010023
24libvlib_la_SOURCES = \
25 vlib/buffer.c \
Damjan Marion878c6092017-01-04 13:19:27 +010026 vlib/buffer_serialize.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +010027 vlib/cli.c \
28 vlib/cli.h \
29 vlib/config.h \
30 vlib/counter.c \
31 vlib/error.c \
32 vlib/format.c \
33 vlib/i2c.c \
34 vlib/init.c \
Damjan Marion3b64d632017-09-08 12:26:12 +020035 vlib/linux/pci.c \
36 vlib/linux/physmem.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +010037 vlib/main.c \
38 vlib/mc.c \
39 vlib/node.c \
40 vlib/node_cli.c \
41 vlib/node_format.c \
42 vlib/pci/pci.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +010043 vlib/threads.c \
44 vlib/threads_cli.c \
45 vlib/trace.c
46
47nobase_include_HEADERS += \
48 vlib/buffer_funcs.h \
49 vlib/buffer_node.h \
50 vlib/buffer.h \
51 vlib/cli.h \
52 vlib/cli_funcs.h \
53 vlib/config.h \
54 vlib/counter.h \
55 vlib/defs.h \
56 vlib/error_funcs.h \
57 vlib/error.h \
58 vlib/format_funcs.h \
59 vlib/global_funcs.h \
60 vlib/i2c.h \
61 vlib/init.h \
62 vlib/main.h \
63 vlib/mc.h \
64 vlib/node_funcs.h \
65 vlib/node.h \
66 vlib/physmem.h \
67 vlib/pci/pci.h \
68 vlib/pci/pci_config.h \
Damjan Marion49d66f12017-07-20 18:10:35 +020069 vlib/physmem_funcs.h \
Damjan Marion7cd468a2016-12-19 23:05:39 +010070 vlib/threads.h \
71 vlib/trace_funcs.h \
72 vlib/trace.h \
73 vlib/vlib.h
74
Damjan Marion0eca04d2017-01-03 20:11:35 +010075libvlib_la_SOURCES += \
Damjan Marion7cd468a2016-12-19 23:05:39 +010076 vlib/unix/cj.c \
77 vlib/unix/cli.c \
78 vlib/unix/input.c \
79 vlib/unix/main.c \
80 vlib/unix/mc_socket.c \
81 vlib/unix/plugin.c \
82 vlib/unix/plugin.h \
Damjan Marion7cd468a2016-12-19 23:05:39 +010083 vlib/unix/util.c
84
85nobase_include_HEADERS += \
86 vlib/unix/cj.h \
87 vlib/unix/mc_socket.h \
Damjan Marion7cd468a2016-12-19 23:05:39 +010088 vlib/unix/plugin.h \
89 vlib/unix/unix.h
Damjan Marion0eca04d2017-01-03 20:11:35 +010090
Damjan Marion7cd468a2016-12-19 23:05:39 +010091noinst_PROGRAMS += vlib_unix
92
93vlib_unix_SOURCES = \
94 examples/vlib/main_stub.c \
95 examples/vlib/mc_test.c
96
Damjan Marion0eca04d2017-01-03 20:11:35 +010097vlib_unix_LDADD = libvlib.la \
Damjan Marion7cd468a2016-12-19 23:05:39 +010098 libvppinfra.la -lpthread -lm -ldl -lrt
Damjan Marion7cd468a2016-12-19 23:05:39 +010099
100# vi:syntax=automake