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