1# SPDX-License-Identifier: BSD-3-Clause 2# Copyright(c) 2017 Intel Corporation 3 4sources = [ 5 'e1000_base.c', 6 'e1000_80003es2lan.c', 7 'e1000_82540.c', 8 'e1000_82541.c', 9 'e1000_82542.c', 10 'e1000_82543.c', 11 'e1000_82571.c', 12 'e1000_82575.c', 13 'e1000_api.c', 14 'e1000_i210.c', 15 'e1000_ich8lan.c', 16 'e1000_mac.c', 17 'e1000_manage.c', 18 'e1000_mbx.c', 19 'e1000_nvm.c', 20 'e1000_osdep.c', 21 'e1000_phy.c', 22 'e1000_vf.c' 23] 24 25error_cflags = ['-Wno-uninitialized', '-Wno-unused-parameter', 26 '-Wno-unused-variable', '-Wno-misleading-indentation', 27 '-Wno-implicit-fallthrough'] 28c_args = cflags 29foreach flag: error_cflags 30 if cc.has_argument(flag) 31 c_args += flag 32 endif 33endforeach 34 35base_lib = static_library('e1000_base', sources, 36 dependencies: static_rte_eal, 37 c_args: c_args) 38base_objs = base_lib.extract_all_objects() 39