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
25 # specify -D_GNU_SOURCE unconditionally
26 default_cflags += '-D_GNU_SOURCE'
31 allow_experimental_apis = false
34 cflags = default_cflags
35 objs = [] # other object files to link against, used e.g. for
36 # instruction-set optimized versions of code
38 # use "deps" for internal DPDK dependencies, and "ext_deps" for
39 # external package/library requirements
41 deps = dpdk_app_link_libraries
48 dep_objs += get_variable(get_option('default_library')
51 dep_objs += lib_execinfo
54 if get_option('default_library') == 'static'
55 link_libs = dpdk_static_libraries + dpdk_drivers
58 if allow_experimental_apis
59 cflags += '-DALLOW_EXPERIMENTAL_API'
62 executable('dpdk-' + name,
65 link_whole: link_libs,
66 dependencies: dep_objs,
67 install_rpath: join_paths(get_option('prefix'),
73 # special case the autotests