1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2017-2019 Intel Corporation
25 lib_execinfo = cc.find_library('execinfo', required: false)
27 default_cflags = machine_args + ['-DALLOW_EXPERIMENTAL_API']
29 if get_option('default_library') == 'static' and not is_windows
30 default_ldflags += ['-Wl,--export-dynamic']
38 cflags = default_cflags
39 ldflags = default_ldflags
40 objs = [] # other object files to link against, used e.g. for
41 # instruction-set optimized versions of code
43 # use "deps" for internal DPDK dependencies, and "ext_deps" for
44 # external package/library requirements
53 dep_objs += get_variable(get_option('default_library')
56 dep_objs += lib_execinfo
59 if get_option('default_library') == 'static'
60 link_libs = dpdk_static_libraries + dpdk_drivers
63 executable('dpdk-' + name,
67 link_whole: link_libs,
68 dependencies: dep_objs,
69 include_directories: includes,
70 install_rpath: join_paths(get_option('prefix'),
76 # special case the autotests