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 |
| 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 \ |
| 26 | vlib/cli.c \ |
| 27 | vlib/cli.h \ |
| 28 | vlib/config.h \ |
| 29 | vlib/counter.c \ |
| 30 | vlib/error.c \ |
| 31 | vlib/format.c \ |
| 32 | vlib/i2c.c \ |
| 33 | vlib/init.c \ |
| 34 | vlib/main.c \ |
| 35 | vlib/mc.c \ |
| 36 | vlib/node.c \ |
| 37 | vlib/node_cli.c \ |
| 38 | vlib/node_format.c \ |
| 39 | vlib/pci/pci.c \ |
| 40 | vlib/pci/linux_pci.c \ |
| 41 | vlib/threads.c \ |
| 42 | vlib/threads_cli.c \ |
| 43 | vlib/trace.c |
| 44 | |
| 45 | nobase_include_HEADERS += \ |
| 46 | vlib/buffer_funcs.h \ |
| 47 | vlib/buffer_node.h \ |
| 48 | vlib/buffer.h \ |
| 49 | vlib/cli.h \ |
| 50 | vlib/cli_funcs.h \ |
| 51 | vlib/config.h \ |
| 52 | vlib/counter.h \ |
| 53 | vlib/defs.h \ |
| 54 | vlib/error_funcs.h \ |
| 55 | vlib/error.h \ |
| 56 | vlib/format_funcs.h \ |
| 57 | vlib/global_funcs.h \ |
| 58 | vlib/i2c.h \ |
| 59 | vlib/init.h \ |
| 60 | vlib/main.h \ |
| 61 | vlib/mc.h \ |
| 62 | vlib/node_funcs.h \ |
| 63 | vlib/node.h \ |
| 64 | vlib/physmem.h \ |
| 65 | vlib/pci/pci.h \ |
| 66 | vlib/pci/pci_config.h \ |
| 67 | vlib/threads.h \ |
| 68 | vlib/trace_funcs.h \ |
| 69 | vlib/trace.h \ |
| 70 | vlib/vlib.h |
| 71 | |
Damjan Marion | 0eca04d | 2017-01-03 20:11:35 +0100 | [diff] [blame] | 72 | libvlib_la_SOURCES += \ |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 73 | vlib/unix/cj.c \ |
| 74 | vlib/unix/cli.c \ |
| 75 | vlib/unix/input.c \ |
| 76 | vlib/unix/main.c \ |
| 77 | vlib/unix/mc_socket.c \ |
| 78 | vlib/unix/plugin.c \ |
| 79 | vlib/unix/plugin.h \ |
| 80 | vlib/unix/physmem.c \ |
| 81 | vlib/unix/util.c |
| 82 | |
| 83 | nobase_include_HEADERS += \ |
| 84 | vlib/unix/cj.h \ |
| 85 | vlib/unix/mc_socket.h \ |
| 86 | vlib/unix/physmem.h \ |
| 87 | vlib/unix/plugin.h \ |
| 88 | vlib/unix/unix.h |
Damjan Marion | 0eca04d | 2017-01-03 20:11:35 +0100 | [diff] [blame] | 89 | |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 90 | if !WITH_DPDK |
| 91 | noinst_PROGRAMS += vlib_unix |
| 92 | |
| 93 | vlib_unix_SOURCES = \ |
| 94 | examples/vlib/main_stub.c \ |
| 95 | examples/vlib/mc_test.c |
| 96 | |
Damjan Marion | 0eca04d | 2017-01-03 20:11:35 +0100 | [diff] [blame] | 97 | vlib_unix_LDADD = libvlib.la \ |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 98 | libvppinfra.la -lpthread -lm -ldl -lrt |
| 99 | endif |
| 100 | |
| 101 | # vi:syntax=automake |