New upstream version 18.02
[deb_dpdk.git] / drivers / net / sfc / base / meson.build
1 # Copyright (c) 2016-2018 Solarflare Communications Inc.
2 # All rights reserved.
3 #
4 # This software was jointly developed between OKTET Labs (under contract
5 # for Solarflare) and Solarflare Communications, Inc.
6
7 sources = [
8         'efx_bootcfg.c',
9         'efx_crc32.c',
10         'efx_ev.c',
11         'efx_filter.c',
12         'efx_hash.c',
13         'efx_intr.c',
14         'efx_lic.c',
15         'efx_mac.c',
16         'efx_mcdi.c',
17         'efx_mon.c',
18         'efx_nic.c',
19         'efx_nvram.c',
20         'efx_phy.c',
21         'efx_port.c',
22         'efx_rx.c',
23         'efx_sram.c',
24         'efx_tunnel.c',
25         'efx_tx.c',
26         'efx_vpd.c',
27         'mcdi_mon.c',
28         'siena_mac.c',
29         'siena_mcdi.c',
30         'siena_nic.c',
31         'siena_nvram.c',
32         'siena_phy.c',
33         'siena_sram.c',
34         'siena_vpd.c',
35         'ef10_ev.c',
36         'ef10_filter.c',
37         'ef10_intr.c',
38         'ef10_mac.c',
39         'ef10_mcdi.c',
40         'ef10_nic.c',
41         'ef10_nvram.c',
42         'ef10_phy.c',
43         'ef10_rx.c',
44         'ef10_tx.c',
45         'ef10_vpd.c',
46         'hunt_nic.c',
47         'medford_nic.c'
48 ]
49
50 extra_flags = [
51         '-Wno-sign-compare',
52         '-Wno-unused-parameter',
53         '-Wno-unused-variable',
54         '-Wno-empty-body',
55         '-Wno-unused-but-set-variable'
56 ]
57
58 c_args = cflags
59 foreach flag: extra_flags
60         if cc.has_argument(flag)
61                 c_args += flag
62         endif
63 endforeach
64
65 if build
66         base_lib = static_library('sfc_base', sources,
67                 include_directories: includes,
68                 dependencies: static_rte_eal,
69                 c_args: c_args)
70
71         base_objs = base_lib.extract_all_objects()
72 else
73         base_objs = []
74 endif