1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2017 Intel Corporation
13 lib_execinfo = cc.find_library('execinfo', required: false)
15 default_cflags = machine_args
17 # specify -D_GNU_SOURCE unconditionally
18 default_cflags += '-D_GNU_SOURCE'
23 allow_experimental_apis = false
26 cflags = default_cflags
27 objs = [] # other object files to link against, used e.g. for
28 # instruction-set optimized versions of code
30 # use "deps" for internal DPDK dependencies, and "ext_deps" for
31 # external package/library requirements
33 deps = dpdk_app_link_libraries
40 dep_objs += get_variable(get_option('default_library')
43 dep_objs += lib_execinfo
46 if get_option('default_library') == 'static'
47 link_libs = dpdk_static_libraries + dpdk_drivers
50 if allow_experimental_apis
51 cflags += '-DALLOW_EXPERIMENTAL_API'
54 executable('dpdk-' + name,
57 link_whole: link_libs,
58 dependencies: dep_objs,
59 install_rpath: join_paths(get_option('prefix'),