xref: /dpdk/drivers/common/sfc_efx/meson.build (revision f4eb44f8)
1# SPDX-License-Identifier: BSD-3-Clause
2#
3# Copyright(c) 2019-2020 Xilinx, Inc.
4#
5# This software was jointly developed between OKTET Labs (under contract
6# for Solarflare) and Solarflare Communications, Inc.
7
8if arch_subdir != 'x86' or not dpdk_conf.get('RTE_ARCH_64')
9	build = false
10	reason = 'only supported on x86_64'
11endif
12
13extra_flags = []
14
15# Enable more warnings
16extra_flags += [
17	'-Wdisabled-optimization'
18]
19
20# Compiler and version dependent flags
21extra_flags += [
22	'-Waggregate-return',
23	'-Wbad-function-cast'
24]
25
26foreach flag: extra_flags
27	if cc.has_argument(flag)
28		cflags += flag
29	endif
30endforeach
31
32subdir('base')
33objs = [base_objs]
34
35sources = files(
36	'sfc_efx.c',
37	'sfc_efx_mcdi.c',
38)
39
40includes += include_directories('base')
41