1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2017-2019 Intel Corporation
23 lib_execinfo = cc.find_library('execinfo', required: false)
25 default_cflags = machine_args
30 allow_experimental_apis = false
33 cflags = default_cflags
34 objs = [] # other object files to link against, used e.g. for
35 # instruction-set optimized versions of code
37 # use "deps" for internal DPDK dependencies, and "ext_deps" for
38 # external package/library requirements
40 deps = dpdk_app_link_libraries
47 dep_objs += get_variable(get_option('default_library')
50 dep_objs += lib_execinfo
53 if get_option('default_library') == 'static'
54 link_libs = dpdk_static_libraries + dpdk_drivers
57 if allow_experimental_apis
58 cflags += '-DALLOW_EXPERIMENTAL_API'
61 executable('dpdk-' + name,
64 link_whole: link_libs,
65 dependencies: dep_objs,
66 install_rpath: join_paths(get_option('prefix'),
72 # special case the autotests