1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2017 Intel Corporation
16 lib_execinfo = cc.find_library('execinfo', required: false)
18 default_cflags = machine_args
20 # specify -D_GNU_SOURCE unconditionally
21 default_cflags += '-D_GNU_SOURCE'
26 allow_experimental_apis = false
29 cflags = default_cflags
30 objs = [] # other object files to link against, used e.g. for
31 # instruction-set optimized versions of code
33 # use "deps" for internal DPDK dependencies, and "ext_deps" for
34 # external package/library requirements
36 deps = dpdk_app_link_libraries
43 dep_objs += get_variable(get_option('default_library')
46 dep_objs += lib_execinfo
49 if get_option('default_library') == 'static'
50 link_libs = dpdk_static_libraries + dpdk_drivers
53 if allow_experimental_apis
54 cflags += '-DALLOW_EXPERIMENTAL_API'
57 executable('dpdk-' + name,
60 link_whole: link_libs,
61 dependencies: dep_objs,
62 install_rpath: join_paths(get_option('prefix'),