1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2017-2019 Intel Corporation
21 lib_execinfo = cc.find_library('execinfo', required: false)
23 default_cflags = machine_args
28 allow_experimental_apis = false
31 cflags = default_cflags
32 objs = [] # other object files to link against, used e.g. for
33 # instruction-set optimized versions of code
35 # use "deps" for internal DPDK dependencies, and "ext_deps" for
36 # external package/library requirements
38 deps = dpdk_app_link_libraries
45 dep_objs += get_variable(get_option('default_library')
48 dep_objs += lib_execinfo
51 if get_option('default_library') == 'static'
52 link_libs = dpdk_static_libraries + dpdk_drivers
55 if allow_experimental_apis
56 cflags += '-DALLOW_EXPERIMENTAL_API'
59 executable('dpdk-' + name,
62 link_whole: link_libs,
63 dependencies: dep_objs,
64 install_rpath: join_paths(get_option('prefix'),
70 # special case the autotests