1 .. SPDX-License-Identifier: BSD-3-Clause
2 Copyright(c) 2010-2014 Intel Corporation.
4 .. _Building_Your_Own_Application:
6 Building Your Own Application
7 =============================
9 Compiling a Sample Application in the Development Kit Directory
10 ---------------------------------------------------------------
12 To compile a sample application with make (for example, hello world):
14 .. code-block:: console
16 ~/DPDK$ cd examples/helloworld/
17 ~/DPDK/examples/helloworld$ make
19 The binary is generated in the build directory by default:
21 .. code-block:: console
23 ~/DPDK/examples/helloworld$ ls build/app
24 helloworld helloworld.map
26 Please refer to :doc:`../linux_gsg/build_dpdk` for details on compiling with meson.
28 Build Your Own Application Outside the Development Kit
29 ------------------------------------------------------
31 The sample application (Hello World) can be duplicated in a new directory as a starting point for your development:
33 .. code-block:: console
35 ~$ cp -r DPDK/examples/helloworld my_rte_app
45 The default makefile provided with the Hello World sample application is a good starting point.
47 The user must define several variables:
49 * APP: Contains the name of the application.
51 * SRCS-y: List of source files (\*.c, \*.S).