numam-dpdk/doc/guides/sample_app_ug/compiling.rst
Ciara Power e2a94f9ad3 doc: remove references to make from apps guide
While make has been deprecated for DPDK, it's still applicable for
some example apps to be built standalone, this patch adjusts the
guides to take that into consideration.

Signed-off-by: Ciara Power <ciara.power@intel.com>
Acked-by: Nicolas Chautru <nicolas.chautru@intel.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
2020-10-22 22:54:05 +02:00

84 lines
1.6 KiB
ReStructuredText

.. SPDX-License-Identifier: BSD-3-Clause
Copyright(c) 2015 Intel Corporation.
Compiling the Sample Applications
=================================
This section explains how to compile the DPDK sample applications.
To compile all the sample applications
--------------------------------------
Go to DPDK build directory:
.. code-block:: console
cd dpdk/<build_dir>
Enable examples compilation:
.. code-block:: console
meson configure -Dexamples=all
Build:
.. code-block:: console
ninja
For additional information on compiling see
:ref:`Compiling DPDK on Linux <linux_gsg_compiling_dpdk>` or
:ref:`Compiling DPDK on FreeBSD <building_from_source>`.
Applications are output to: ``dpdk/<build_dir>/examples``.
To compile a single application
-------------------------------
Using meson
~~~~~~~~~~~
Go to DPDK build directory:
.. code-block:: console
cd dpdk/<build_dir>
Enable example app compilation:
.. code-block:: console
meson configure -Dexamples=helloworld
Build:
.. code-block:: console
ninja
Using Make
~~~~~~~~~~
Pkg-config is used when building an example app standalone using make, please
see :ref:`building_app_using_installed_dpdk` for more information.
Go to the sample application directory. Unless otherwise specified the sample
applications are located in ``dpdk/examples/``.
Build the application:
.. code-block:: console
make
To build the application for debugging use the ``DEBUG`` option.
This option adds some extra flags, disables compiler optimizations and
sets verbose output.
.. code-block:: console
make DEBUG=1