1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2017-2019 Intel Corporation
22 lib_execinfo = cc.find_library('execinfo', required: false)
24 default_cflags = machine_args
29 allow_experimental_apis = false
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 if allow_experimental_apis
57 cflags += '-DALLOW_EXPERIMENTAL_API'
60 executable('dpdk-' + name,
63 link_whole: link_libs,
64 dependencies: dep_objs,
65 install_rpath: join_paths(get_option('prefix'),
71 # special case the autotests