1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2017-2019 Intel Corporation
24 default_cflags = machine_args + ['-DALLOW_EXPERIMENTAL_API']
26 if get_option('default_library') == 'static' and not is_windows
27 default_ldflags += ['-Wl,--export-dynamic']
35 cflags = default_cflags
36 ldflags = default_ldflags
37 objs = [] # other object files to link against, used e.g. for
38 # instruction-set optimized versions of code
40 # use "deps" for internal DPDK dependencies, and "ext_deps" for
41 # external package/library requirements
50 dep_objs += get_variable(get_option('default_library')
55 if get_option('default_library') == 'static'
56 link_libs = dpdk_static_libraries + dpdk_drivers
59 executable('dpdk-' + name,
63 link_whole: link_libs,
64 dependencies: dep_objs,
65 include_directories: includes,
66 install_rpath: join_paths(get_option('prefix'),
72 # special case the autotests