blob: 3da0a3abbbb7d4d333a36c468ee9d73b80bfdb30 [file] [log] [blame]
Ed Warnickecb9cada2015-12-08 15:45:58 -07001# 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
14AUTOMAKE_OPTIONS = foreign subdir-objects
15
16AM_CFLAGS = -Wall @DPDK@
17
18PRE_DATA_SIZE=@PRE_DATA_SIZE@
19
20lib_LTLIBRARIES = libvlib.la
21
22BUILT_SOURCES = vlib/config.h
23
24vlib/config.h:
25 echo "#define __PRE_DATA_SIZE" $(PRE_DATA_SIZE) > $@
26
27libvlib_la_SOURCES = \
Damjan Marion1cd8f3c2016-11-24 02:07:32 +010028 vlib/buffer.c \
Ed Warnickecb9cada2015-12-08 15:45:58 -070029 vlib/cli.c \
30 vlib/cli.h \
31 vlib/config.h \
32 vlib/counter.c \
33 vlib/error.c \
34 vlib/format.c \
Damjan Marionb4d89272016-05-12 22:14:45 +020035 vlib/i2c.c \
Ed Warnickecb9cada2015-12-08 15:45:58 -070036 vlib/init.c \
37 vlib/main.c \
38 vlib/mc.c \
39 vlib/node.c \
40 vlib/node_cli.c \
41 vlib/node_format.c \
Damjan Marion5a206ea2016-05-12 22:11:03 +020042 vlib/pci/pci.c \
43 vlib/pci/linux_pci.c \
Ed Warnickecb9cada2015-12-08 15:45:58 -070044 vlib/threads.c \
Damjan Marion0f8ecf02016-06-27 08:30:30 +020045 vlib/threads_cli.c \
Ed Warnickecb9cada2015-12-08 15:45:58 -070046 vlib/trace.c
47
Ed Warnickecb9cada2015-12-08 15:45:58 -070048nobase_include_HEADERS = \
49 vlib/buffer_funcs.h \
50 vlib/buffer_node.h \
51 vlib/buffer.h \
52 vlib/cli.h \
53 vlib/cli_funcs.h \
54 vlib/config.h \
55 vlib/counter.h \
56 vlib/defs.h \
57 vlib/error_funcs.h \
58 vlib/error.h \
59 vlib/format_funcs.h \
60 vlib/global_funcs.h \
Damjan Marionb4d89272016-05-12 22:14:45 +020061 vlib/i2c.h \
Ed Warnickecb9cada2015-12-08 15:45:58 -070062 vlib/init.h \
63 vlib/main.h \
64 vlib/mc.h \
65 vlib/node_funcs.h \
66 vlib/node.h \
67 vlib/physmem.h \
Damjan Mariona42cd342016-04-13 18:03:20 +020068 vlib/pci/pci.h \
69 vlib/pci/pci_config.h \
Ed Warnickecb9cada2015-12-08 15:45:58 -070070 vlib/threads.h \
71 vlib/trace_funcs.h \
72 vlib/trace.h \
73 vlib/vlib.h
74
75lib_LTLIBRARIES += libvlib_unix.la
76
77libvlib_unix_la_SOURCES = \
78 vlib/unix/cj.c \
79 vlib/unix/cli.c \
80 vlib/unix/input.c \
81 vlib/unix/main.c \
82 vlib/unix/mc_socket.c \
83 vlib/unix/plugin.c \
84 vlib/unix/plugin.h \
85 vlib/unix/physmem.c \
Damjan Mariona42cd342016-04-13 18:03:20 +020086 vlib/unix/util.c
Ed Warnickecb9cada2015-12-08 15:45:58 -070087
88nobase_include_HEADERS += \
89 vlib/unix/cj.h \
90 vlib/unix/mc_socket.h \
91 vlib/unix/physmem.h \
92 vlib/unix/plugin.h \
93 vlib/unix/unix.h
94
Damjan Marion2c29d752015-12-18 10:26:56 +010095if !WITH_DPDK
Ed Warnickecb9cada2015-12-08 15:45:58 -070096noinst_PROGRAMS = vlib_unix
97
98vlib_unix_SOURCES = \
99 example/main_stub.c \
100 example/mc_test.c
101
102vlib_unix_LDADD = libvlib_unix.la libvlib.la \
103 -lvppinfra -lpthread -lm -ldl -lrt
Damjan Marion2c29d752015-12-18 10:26:56 +0100104endif