blob: 9c3b4d5b8a39c70f0fff2ab8cd0ea13cb5e72e43 [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
16libvlib_la_LIBADD = libvppinfra.la -ldl -lpthread
Damjan Marion7cd468a2016-12-19 23:05:39 +010017
18BUILT_SOURCES += vlib/config.h
19
20vlib/config.h:
Damjan Marion0eca04d2017-01-03 20:11:35 +010021 @echo "#define __PRE_DATA_SIZE" @PRE_DATA_SIZE@ > $@
Damjan Marion7cd468a2016-12-19 23:05:39 +010022
23libvlib_la_SOURCES = \
24 vlib/buffer.c \
25 vlib/cli.c \
26 vlib/cli.h \
27 vlib/config.h \
28 vlib/counter.c \
29 vlib/error.c \
30 vlib/format.c \
31 vlib/i2c.c \
32 vlib/init.c \
33 vlib/main.c \
34 vlib/mc.c \
35 vlib/node.c \
36 vlib/node_cli.c \
37 vlib/node_format.c \
38 vlib/pci/pci.c \
39 vlib/pci/linux_pci.c \
40 vlib/threads.c \
41 vlib/threads_cli.c \
42 vlib/trace.c
43
44nobase_include_HEADERS += \
45 vlib/buffer_funcs.h \
46 vlib/buffer_node.h \
47 vlib/buffer.h \
48 vlib/cli.h \
49 vlib/cli_funcs.h \
50 vlib/config.h \
51 vlib/counter.h \
52 vlib/defs.h \
53 vlib/error_funcs.h \
54 vlib/error.h \
55 vlib/format_funcs.h \
56 vlib/global_funcs.h \
57 vlib/i2c.h \
58 vlib/init.h \
59 vlib/main.h \
60 vlib/mc.h \
61 vlib/node_funcs.h \
62 vlib/node.h \
63 vlib/physmem.h \
64 vlib/pci/pci.h \
65 vlib/pci/pci_config.h \
66 vlib/threads.h \
67 vlib/trace_funcs.h \
68 vlib/trace.h \
69 vlib/vlib.h
70
Damjan Marion0eca04d2017-01-03 20:11:35 +010071libvlib_la_SOURCES += \
Damjan Marion7cd468a2016-12-19 23:05:39 +010072 vlib/unix/cj.c \
73 vlib/unix/cli.c \
74 vlib/unix/input.c \
75 vlib/unix/main.c \
76 vlib/unix/mc_socket.c \
77 vlib/unix/plugin.c \
78 vlib/unix/plugin.h \
79 vlib/unix/physmem.c \
80 vlib/unix/util.c
81
82nobase_include_HEADERS += \
83 vlib/unix/cj.h \
84 vlib/unix/mc_socket.h \
85 vlib/unix/physmem.h \
86 vlib/unix/plugin.h \
87 vlib/unix/unix.h
Damjan Marion0eca04d2017-01-03 20:11:35 +010088
Damjan Marion7cd468a2016-12-19 23:05:39 +010089if !WITH_DPDK
90noinst_PROGRAMS += vlib_unix
91
92vlib_unix_SOURCES = \
93 examples/vlib/main_stub.c \
94 examples/vlib/mc_test.c
95
Damjan Marion0eca04d2017-01-03 20:11:35 +010096vlib_unix_LDADD = libvlib.la \
Damjan Marion7cd468a2016-12-19 23:05:39 +010097 libvppinfra.la -lpthread -lm -ldl -lrt
98endif
99
100# vi:syntax=automake