1# SPDX-License-Identifier: BSD-3-Clause 2# Copyright 2020 Mellanox Technologies, Ltd 3 4if not is_linux 5 build = false 6 reason = 'only supported on Linux' 7 subdir_done() 8endif 9 10deps += ['common_mlx5', 'eal', 'regexdev'] 11sources = files( 12 'mlx5_regex.c', 13 'mlx5_rxp.c', 14 'mlx5_regex_devx.c', 15 'mlx5_regex_control.c', 16 'mlx5_regex_fastpath.c', 17) 18cflags_options = [ 19 '-std=c11', 20 '-Wno-strict-prototypes', 21 '-D_BSD_SOURCE', 22 '-D_DEFAULT_SOURCE', 23 '-D_XOPEN_SOURCE=600' 24] 25foreach option:cflags_options 26 if cc.has_argument(option) 27 cflags += option 28 endif 29endforeach 30