Resources | developer.brewmp.com Resources | developer.brewmp.com

Developer

resources

Make.d Reference

The Brew® Mobile Platform (Brew MP) make.d system can be used to build modules from the command line using the GNU make utility. Make.d is located in the Brew MP Platform in the make.d directory.

The make utility requires a makefile, which contains definitions and rules. The makefile is created by the developer and resides in the directory with the source code. A makefile that is used with make.d typically includes two make.d files (make.d/defines.min and make.d/rules.min) and defines a number of variables that identify the targets and the source files, libraries, etc., required to build the targets.

Makefiles used with make.d are simplified because make.d defines the rules that specify how targets are built. Make.d also defines the variables that are used to identify the targets and the required files.

When you run the make command, you can specify the following on the command line:

  • A variant, which specifies the target platform (Windows, ADS, etc.).

    The make.d system defines a number of variants. See Variants and variant sets.

  • A goal, which specifies which of the targets in the makefile will be built.

This reference provides information on using make.d to create makefiles that use the variables, goals, variants, and rules defined by make.d.

Setup

The make.d system requires GNU make 3.81 or newer. The Brew MP website provides information on downloading the required software in the Setup for C/C++ Environment - Command-line section.

For more information on GNU make, see the http://www.gnu.org/software/make/manual/make.html.

Comments

muddflapps 15 Dec 2010 02:55pm

One might infer from the text of this introduction that the Makefile support provided by Qualcomm is only useful from the command line. In fact, using the Make.d framework allows great flexibility for team development projects and also works quite well with a number of IDE environments (including Eclipse).
Kudos to Qualcomm, this is a very nice piece of infrastructure!