2018-06-08 22:20:40 +01:00
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
# Copyright(c) 2018 Intel Corporation
|
|
|
|
|
|
|
|
cflags += '-std=gnu99'
|
|
|
|
cflags += '-D_DEFAULT_SOURCE'
|
|
|
|
cflags += '-D_XOPEN_SOURCE=700'
|
|
|
|
cflags += '-pedantic'
|
2019-04-09 11:55:36 +01:00
|
|
|
if is_linux
|
2018-06-08 22:20:40 +01:00
|
|
|
cflags += '-DLINUX'
|
|
|
|
else
|
|
|
|
cflags += '-DBSD'
|
|
|
|
endif
|
|
|
|
|
|
|
|
sources = files('failsafe_args.c',
|
|
|
|
'failsafe.c',
|
|
|
|
'failsafe_eal.c',
|
|
|
|
'failsafe_ether.c',
|
|
|
|
'failsafe_flow.c',
|
|
|
|
'failsafe_intr.c',
|
|
|
|
'failsafe_ops.c',
|
|
|
|
'failsafe_rxtx.c')
|