The default makefile provided with the Hello World sample application is a good starting point. It includes:
-* $(RTE_SDK)/mk/DPDK.vars.mk at the beginning
+* $(RTE_SDK)/mk/rte.vars.mk at the beginning
-* $(RTE_SDK)/mk/DPDK.extapp.mk at the end
+* $(RTE_SDK)/mk/rte.extapp.mk at the end
The user must define several variables:
It is also possible to build a library in the same way:
-* Include $(RTE_SDK)/mk/DPDK.vars.mk at the beginning.
+* Include $(RTE_SDK)/mk/rte.vars.mk at the beginning.
-* Include $(RTE_SDK)/mk/DPDK.extlib.mk at the end.
+* Include $(RTE_SDK)/mk/rte.extlib.mk at the end.
The only difference is that APP should be replaced by LIB, which contains the name of the library. For example, libfoo.a.
cd /path/to/my_app
For a new application, the user must create their own Makefile that includes some .mk files, such as
-${RTE_SDK}/mk/DPDK.vars.mk, and ${RTE_SDK}/mk/ DPDK.app.mk.
+${RTE_SDK}/mk/rte.vars.mk, and ${RTE_SDK}/mk/ rte.app.mk.
This is described in
:ref:`Building Your Own Application <Building_Your_Own_Application>`.
In the DPDK, Makefiles always follow the same scheme:
-#. Include $(RTE_SDK)/mk/DPDK.vars.mk at the beginning.
+#. Include $(RTE_SDK)/mk/rte.vars.mk at the beginning.
#. Define specific variables for RTE build system.
-#. Include a specific $(RTE_SDK)/mk/DPDK.XYZ.mk, where XYZ can be app, lib, extapp, extlib, obj, gnuconfigure,
+#. Include a specific $(RTE_SDK)/mk/rte.XYZ.mk, where XYZ can be app, lib, extapp, extlib, obj, gnuconfigure,
and so on, depending on what kind of object you want to build.
:ref:`See Makefile Types <Makefile_Types>` below.
.. code-block:: make
- include $(RTE_SDK)/mk/DPDK.vars.mk
+ include $(RTE_SDK)/mk/rte.vars.mk
# binary name
APP = helloworld
CFLAGS += -O3
CFLAGS += $(WERROR_FLAGS)
- include $(RTE_SDK)/mk/DPDK.extapp.mk
+ include $(RTE_SDK)/mk/rte.extapp.mk
.. _Makefile_Types:
External applications or libraries should include specific Makefiles from RTE_SDK, located in mk directory.
These Makefiles are:
-* ${RTE_SDK}/mk/DPDK.extapp.mk: Build an application
+* ${RTE_SDK}/mk/rte.extapp.mk: Build an application
-* ${RTE_SDK}/mk/DPDK.extlib.mk: Build a static library
+* ${RTE_SDK}/mk/rte.extlib.mk: Build a static library
-* ${RTE_SDK}/mk/DPDK.extobj.mk: Build objects (.o)
+* ${RTE_SDK}/mk/rte.extobj.mk: Build objects (.o)
Prerequisites
-------------