1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2017 Intel Corporation
17 lib_execinfo = cc.find_library('execinfo', required: false)
19 default_cflags = machine_args
21 # specify -D_GNU_SOURCE unconditionally
22 default_cflags += '-D_GNU_SOURCE'
27 allow_experimental_apis = false
30 cflags = default_cflags
31 objs = [] # other object files to link against, used e.g. for
32 # instruction-set optimized versions of code
34 # use "deps" for internal DPDK dependencies, and "ext_deps" for
35 # external package/library requirements
37 deps = dpdk_app_link_libraries
44 dep_objs += get_variable(get_option('default_library')
47 dep_objs += lib_execinfo
50 if get_option('default_library') == 'static'
51 link_libs = dpdk_static_libraries + dpdk_drivers
54 if allow_experimental_apis
55 cflags += '-DALLOW_EXPERIMENTAL_API'
58 executable('dpdk-' + name,
61 link_whole: link_libs,
62 dependencies: dep_objs,
63 install_rpath: join_paths(get_option('prefix'),
69 # special case the autotests