Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 1 | # 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 Marion | 0eca04d | 2017-01-03 20:11:35 +0100 | [diff] [blame] | 15 | lib_LTLIBRARIES += libvlib.la |
Damjan Marion | 01914ce | 2017-09-14 19:04:50 +0200 | [diff] [blame] | 16 | libvlib_la_LIBADD = libvppinfra.la -ldl -lpthread |
Damjan Marion | 8db1c76 | 2017-01-04 16:07:54 +0100 | [diff] [blame] | 17 | libvlib_la_DEPENDENCIES = libvppinfra.la |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 18 | |
| 19 | BUILT_SOURCES += vlib/config.h |
| 20 | |
| 21 | vlib/config.h: |
Damjan Marion | 0eca04d | 2017-01-03 20:11:35 +0100 | [diff] [blame] | 22 | @echo "#define __PRE_DATA_SIZE" @PRE_DATA_SIZE@ > $@ |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 23 | |
| 24 | libvlib_la_SOURCES = \ |
| 25 | vlib/buffer.c \ |
Damjan Marion | 878c609 | 2017-01-04 13:19:27 +0100 | [diff] [blame] | 26 | vlib/buffer_serialize.c \ |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 27 | 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 Marion | 3b64d63 | 2017-09-08 12:26:12 +0200 | [diff] [blame] | 35 | vlib/linux/pci.c \ |
| 36 | vlib/linux/physmem.c \ |
Damjan Marion | 1ba0fa4 | 2018-03-04 17:19:08 +0100 | [diff] [blame] | 37 | vlib/linux/vfio.c \ |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 38 | vlib/main.c \ |
| 39 | vlib/mc.c \ |
| 40 | vlib/node.c \ |
| 41 | vlib/node_cli.c \ |
| 42 | vlib/node_format.c \ |
| 43 | vlib/pci/pci.c \ |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 44 | vlib/threads.c \ |
| 45 | vlib/threads_cli.c \ |
| 46 | vlib/trace.c |
| 47 | |
| 48 | nobase_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 \ |
| 61 | vlib/i2c.h \ |
| 62 | vlib/init.h \ |
Damjan Marion | 1ba0fa4 | 2018-03-04 17:19:08 +0100 | [diff] [blame] | 63 | vlib/linux/vfio.h \ |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 64 | vlib/main.h \ |
| 65 | vlib/mc.h \ |
| 66 | vlib/node_funcs.h \ |
| 67 | vlib/node.h \ |
| 68 | vlib/physmem.h \ |
| 69 | vlib/pci/pci.h \ |
| 70 | vlib/pci/pci_config.h \ |
Damjan Marion | 49d66f1 | 2017-07-20 18:10:35 +0200 | [diff] [blame] | 71 | vlib/physmem_funcs.h \ |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 72 | vlib/threads.h \ |
| 73 | vlib/trace_funcs.h \ |
| 74 | vlib/trace.h \ |
| 75 | vlib/vlib.h |
| 76 | |
Damjan Marion | 0eca04d | 2017-01-03 20:11:35 +0100 | [diff] [blame] | 77 | libvlib_la_SOURCES += \ |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 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 \ |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 85 | vlib/unix/util.c |
| 86 | |
| 87 | nobase_include_HEADERS += \ |
| 88 | vlib/unix/cj.h \ |
| 89 | vlib/unix/mc_socket.h \ |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 90 | vlib/unix/plugin.h \ |
| 91 | vlib/unix/unix.h |
Damjan Marion | 0eca04d | 2017-01-03 20:11:35 +0100 | [diff] [blame] | 92 | |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 93 | noinst_PROGRAMS += vlib_unix |
| 94 | |
| 95 | vlib_unix_SOURCES = \ |
| 96 | examples/vlib/main_stub.c \ |
| 97 | examples/vlib/mc_test.c |
| 98 | |
Damjan Marion | 0eca04d | 2017-01-03 20:11:35 +0100 | [diff] [blame] | 99 | vlib_unix_LDADD = libvlib.la \ |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 100 | libvppinfra.la -lpthread -lm -ldl -lrt |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 101 | |
| 102 | # vi:syntax=automake |