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