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