1# SPDX-License-Identifier: BSD-3-Clause 2# Copyright(c) 2023 Marvell. 3 4# override default name to drop the hyphen 5name = 'graph' 6build = cc.has_header('sys/epoll.h') 7if not build 8 reason = 'only supported on Linux' 9 subdir_done() 10endif 11 12deps += ['graph', 'eal', 'lpm', 'ethdev', 'node', 'cmdline', 'net'] 13sources = files( 14 'cli.c', 15 'conn.c', 16 'ethdev_rx.c', 17 'ethdev.c', 18 'graph.c', 19 'ip4_route.c', 20 'ip6_route.c', 21 'l2fwd.c', 22 'l3fwd.c', 23 'main.c', 24 'mempool.c', 25 'neigh.c', 26 'utils.c', 27) 28 29cmd_h = custom_target('commands_hdr', 30 output: 'commands.h', 31 input: files('commands.list'), 32 capture: true, 33 command: [cmdline_gen_cmd, '--context-name=modules_ctx', '@INPUT@'] 34) 35sources += cmd_h 36