33d0adf0d614659a2c9537b17cf375bdddba9796
[dpdk.git] / drivers / net / txgbe / base / meson.build
1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2015-2020
3
4 sources = [
5         'txgbe_dcb_hw.c',
6         'txgbe_dcb.c',
7         'txgbe_eeprom.c',
8         'txgbe_hw.c',
9         'txgbe_mbx.c',
10         'txgbe_mng.c',
11         'txgbe_phy.c',
12         'txgbe_vf.c',
13 ]
14
15 error_cflags = []
16
17 c_args = cflags
18 foreach flag: error_cflags
19         if cc.has_argument(flag)
20                 c_args += flag
21         endif
22 endforeach
23
24 base_lib = static_library('txgbe_base', sources,
25         dependencies: static_rte_eal,
26         c_args: c_args)
27 base_objs = base_lib.extract_all_objects()