This is a barebone application template demonstrating how to make use of the NM SDK.
All the application specific settings are located in the file application.mk. The instructions are listed inside the file. There are basically four steps:
- Define the SDK and libraries location.
- Specify the location of the board support package. You can choose from predefined BSPs from within the SDK bsp directory or create your own.
- Specify the output file names: one for debug and the other for release.
- Include other resources such as headers, sources, libraries or paths.
There are two build configurations: one for debug and another for release. The configuration to be build is defined by the variable DEBUG. When DEBUG is defined, the debug configuration is selected and if it is left undefined, then the release configuration is selected. The output target will be located in either the debug or the release directory.
- make DEBUG=1
- make DEBUG=1 clean
- make
- make clean