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