Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [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 | AUTOMAKE_OPTIONS = foreign subdir-objects |
| 15 | |
| 16 | AM_CFLAGS = -Wall @DPDK@ |
| 17 | |
| 18 | PRE_DATA_SIZE=@PRE_DATA_SIZE@ |
| 19 | |
| 20 | lib_LTLIBRARIES = libvlib.la |
| 21 | |
| 22 | BUILT_SOURCES = vlib/config.h |
| 23 | |
| 24 | vlib/config.h: |
| 25 | echo "#define __PRE_DATA_SIZE" $(PRE_DATA_SIZE) > $@ |
| 26 | |
| 27 | libvlib_la_SOURCES = \ |
| 28 | vlib/cli.c \ |
| 29 | vlib/cli.h \ |
| 30 | vlib/config.h \ |
| 31 | vlib/counter.c \ |
| 32 | vlib/error.c \ |
| 33 | vlib/format.c \ |
Damjan Marion | b4d8927 | 2016-05-12 22:14:45 +0200 | [diff] [blame] | 34 | vlib/i2c.c \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 35 | vlib/init.c \ |
| 36 | vlib/main.c \ |
| 37 | vlib/mc.c \ |
| 38 | vlib/node.c \ |
| 39 | vlib/node_cli.c \ |
| 40 | vlib/node_format.c \ |
Damjan Marion | 5a206ea | 2016-05-12 22:11:03 +0200 | [diff] [blame] | 41 | vlib/pci/pci.c \ |
| 42 | vlib/pci/linux_pci.c \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 43 | vlib/threads.c \ |
Damjan Marion | 0f8ecf0 | 2016-06-27 08:30:30 +0200 | [diff] [blame] | 44 | vlib/threads_cli.c \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 45 | vlib/trace.c |
| 46 | |
| 47 | if WITH_DPDK |
| 48 | libvlib_la_SOURCES += vlib/dpdk_buffer.c |
| 49 | else |
| 50 | libvlib_la_SOURCES += vlib/buffer.c |
| 51 | endif |
| 52 | |
| 53 | nobase_include_HEADERS = \ |
| 54 | vlib/buffer_funcs.h \ |
| 55 | vlib/buffer_node.h \ |
| 56 | vlib/buffer.h \ |
| 57 | vlib/cli.h \ |
| 58 | vlib/cli_funcs.h \ |
| 59 | vlib/config.h \ |
| 60 | vlib/counter.h \ |
| 61 | vlib/defs.h \ |
| 62 | vlib/error_funcs.h \ |
| 63 | vlib/error.h \ |
| 64 | vlib/format_funcs.h \ |
| 65 | vlib/global_funcs.h \ |
Damjan Marion | b4d8927 | 2016-05-12 22:14:45 +0200 | [diff] [blame] | 66 | vlib/i2c.h \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 67 | vlib/init.h \ |
| 68 | vlib/main.h \ |
| 69 | vlib/mc.h \ |
| 70 | vlib/node_funcs.h \ |
| 71 | vlib/node.h \ |
| 72 | vlib/physmem.h \ |
Damjan Marion | a42cd34 | 2016-04-13 18:03:20 +0200 | [diff] [blame] | 73 | vlib/pci/pci.h \ |
| 74 | vlib/pci/pci_config.h \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 75 | vlib/threads.h \ |
| 76 | vlib/trace_funcs.h \ |
| 77 | vlib/trace.h \ |
| 78 | vlib/vlib.h |
| 79 | |
| 80 | lib_LTLIBRARIES += libvlib_unix.la |
| 81 | |
| 82 | libvlib_unix_la_SOURCES = \ |
| 83 | vlib/unix/cj.c \ |
| 84 | vlib/unix/cli.c \ |
| 85 | vlib/unix/input.c \ |
| 86 | vlib/unix/main.c \ |
| 87 | vlib/unix/mc_socket.c \ |
| 88 | vlib/unix/plugin.c \ |
| 89 | vlib/unix/plugin.h \ |
| 90 | vlib/unix/physmem.c \ |
Damjan Marion | a42cd34 | 2016-04-13 18:03:20 +0200 | [diff] [blame] | 91 | vlib/unix/util.c |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 92 | |
| 93 | nobase_include_HEADERS += \ |
| 94 | vlib/unix/cj.h \ |
| 95 | vlib/unix/mc_socket.h \ |
| 96 | vlib/unix/physmem.h \ |
| 97 | vlib/unix/plugin.h \ |
| 98 | vlib/unix/unix.h |
| 99 | |
Damjan Marion | 2c29d75 | 2015-12-18 10:26:56 +0100 | [diff] [blame] | 100 | if !WITH_DPDK |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 101 | noinst_PROGRAMS = vlib_unix |
| 102 | |
| 103 | vlib_unix_SOURCES = \ |
| 104 | example/main_stub.c \ |
| 105 | example/mc_test.c |
| 106 | |
| 107 | vlib_unix_LDADD = libvlib_unix.la libvlib.la \ |
| 108 | -lvppinfra -lpthread -lm -ldl -lrt |
Damjan Marion | 2c29d75 | 2015-12-18 10:26:56 +0100 | [diff] [blame] | 109 | endif |