1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2017 Intel Corporation
12 lib_execinfo = cc.find_library('execinfo', required: false)
14 default_cflags = machine_args
16 # specify -D_GNU_SOURCE unconditionally
17 default_cflags += '-D_GNU_SOURCE'
22 allow_experimental_apis = false
25 cflags = default_cflags
26 objs = [] # other object files to link against, used e.g. for
27 # instruction-set optimized versions of code
29 # use "deps" for internal DPDK dependencies, and "ext_deps" for
30 # external package/library requirements
32 deps = dpdk_app_link_libraries
39 dep_objs += get_variable(get_option('default_library')
42 dep_objs += lib_execinfo
45 if get_option('default_library') == 'static'
46 link_libs = dpdk_static_libraries + dpdk_drivers
49 if allow_experimental_apis
50 cflags += '-DALLOW_EXPERIMENTAL_API'
53 executable('dpdk-' + name,
56 link_whole: link_libs,
57 dependencies: dep_objs,
58 install_rpath: join_paths(get_option('prefix'),