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 10fmt_name = 'mlx5_regex' 11deps += ['common_mlx5', 'eal', 'regexdev'] 12sources = files( 13 'mlx5_regex.c', 14 'mlx5_rxp.c', 15 'mlx5_regex_devx.c', 16 'mlx5_regex_control.c', 17 'mlx5_regex_fastpath.c', 18) 19cflags_options = [ 20 '-std=c11', 21 '-Wno-strict-prototypes', 22 '-D_BSD_SOURCE', 23 '-D_DEFAULT_SOURCE', 24 '-D_XOPEN_SOURCE=600' 25] 26foreach option:cflags_options 27 if cc.has_argument(option) 28 cflags += option 29 endif 30endforeach 31