1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2017-2019 Intel Corporation
22 default_cflags = machine_args + ['-DALLOW_EXPERIMENTAL_API']
24 if get_option('default_library') == 'static' and not is_windows
25 default_ldflags += ['-Wl,--export-dynamic']
33 cflags = default_cflags
34 ldflags = default_ldflags
35 objs = [] # other object files to link against, used e.g. for
36 # instruction-set optimized versions of code
38 # use "deps" for internal DPDK dependencies, and "ext_deps" for
39 # external package/library requirements
51 dep_objs += get_variable(get_option('default_library') + '_rte_' + d)
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'), driver_install_path),
70 # special case the autotests