prj_mmpfiles

prj_mmpfiles

mmp_file_1 [build_as_arm] [tidy]

makefile makefile_1 [build_as_arm] [tidy]

makefile makefile_n [build_as_arm] [tidy]

nmakefile makefile_1 [build_as_arm] [tidy]

nmakefile makefile_n [build_as_arm] [tidy]

gnumakefile makefile_1 [build_as_arm] [tidy]

gnumakefile makefile_n [build_as_arm] [tidy]

In the prj_mmpfiles section, list the .mmp files contained in your component.

Specify each .mmp file on a separate line.

Relative paths

If a relative path is specified with an .mmp file, the path will be considered relative to the directory containing the bld.inf file.

For example, if in the prj_mmpfiles section, a certain Hello.mmp file is specified as a relative path:

PRJ_MMPFILES
ProjSpec\Hello.mmp

and if the bld.inf file is in \MyComp\, then the full path for the location of Hello.mmp will be \MyComp\ProjSpec\Hello.mmp.

The tidy attribute

Specify the tidy attribute if the releasable that an .mmp file defines is purely internal to your component, and therefore not required either by other components or for your component to execute.

If the tidy attribute is specified in your component’s description file, then this will indicate to the abld tool when it is used to run the command abld tidy, to remove those releasables that are no longer required.

The build_as_arm attribute

Use the build_as_arm statement to instruct an ARMV5 build to not build the project for the THUMB instruction set, but for the ARM instruction set.

For details, see ARM/THUMB overrides.

Extension makefiles

Use the keyword makefile, nmakefile, and/or gnumakefile to specify extension makefiles for your component. Extension makefiles can be used where build activities need to be carried out which are not catered for by generated makefiles.

makefile and nmakefile invoke nmake on the specified file. gnumakefile invokes make.

Build activities relating to particular .mmp files or extension makefiles are carried out in the order in which the .mmp files and extension makefiles are listed in the bld.inf file. Extension makefiles can be interspersed among the .mmp files.

See Extension makefiles targets for more details.

Note that the extension makefiles are deprecated, use PRJ_EXTENSIONS instead.

Platform-specific use

The prj_mmpfiles section is preprocessed for each platform listed in the prj_platforms section.

If an .mmp file or extension makefile applies only to a particular platform, then place the item within

#if defined <identifier>
#endif

For example, if an .mmp file relates only to the WINS platform, specify the file as follows:

#if defined(WINS)
<mmp_file>
#endif