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 + ['-DALLOW_EXPERIMENTAL_API']
32 cflags = default_cflags
33 objs = [] # other object files to link against, used e.g. for
34 # instruction-set optimized versions of code
36 # use "deps" for internal DPDK dependencies, and "ext_deps" for
37 # external package/library requirements
39 deps = dpdk_app_link_libraries
46 dep_objs += get_variable(get_option('default_library')
49 dep_objs += lib_execinfo
52 if get_option('default_library') == 'static'
53 link_libs = dpdk_static_libraries + dpdk_drivers
56 executable('dpdk-' + name,
59 link_whole: link_libs,
60 dependencies: dep_objs,
61 install_rpath: join_paths(get_option('prefix'),
67 # special case the autotests