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
49 var_name = get_option('default_library') + '_rte_' + d
50 if not is_variable(var_name)
52 message('Missing dependency "@0@" for app "@1@"'.format(d, name))
55 dep_objs += [get_variable(var_name)]
64 if get_option('default_library') == 'static'
65 link_libs = dpdk_static_libraries + dpdk_drivers
68 executable('dpdk-' + name,
72 link_whole: link_libs,
73 dependencies: ext_deps + dep_objs,
74 include_directories: includes,
75 install_rpath: join_paths(get_option('prefix'), driver_install_path),
79 # special case the autotests