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

Developer

resources

Target-specific variables

The target specific variables allow you to change definitions for a specific target. For example, _CC can be used to redefine the tool used to compile .

_C_SRCS

Specifies a list of .c source files required to build this target. Do not specify the .c extension.

_CPP_SRCS

Specifies a list of CPP source files required to build this target. Do not specify the .cpp extension.

_CXX_SRCS

Specifies a list of CXX source files required to build this target. Do not specify the .cxx extension.

_ASM_SRCS

Specifies a list of ASM source files required to build this target. Do not specify the .s extension.

_CIFS

Specifies a list of CIF files required to build the MIF for the target. Extensions should not be specified.

_CARS

Specifies a list of CAR resource files to convert to BAR files. The BAR files are handled like _DATA files in that they are installed into the module directory. If the CAR files are in subdirectories, they will be placed in the equivalent sub-directory in the module directory. For example, if the resource file name is res/file.car, the installed module will have a res/file.bar.

_INSTALL_DIR

Specifies a directory name to append to the associated install dir. For example, if is a LIB and _INSTALL_DIR = oem, then is installed in $(LIB_INSTALL_DIR)/oem. This works for LIBS, EXES, and DLLS, but not MODs.

_LIBS

Specifies a list of libraries to link with this target. When a variable _DIR is defined for any of these libraries, the make system will recurse to that directory to update the library dependency.

_DIR

Similar to _LIBS.

_DATA

Specifies a list of data files associated with the module. Note that this variable applies to modules but not libraries. The data files are installed into the module directory with install or data_install make targets. If the source data file names include the sub-directory, the data files are copied into the equivalent sub-directory of the module directory.

_DLLS

Specifies a list of DLLs from which symbols will be imported (similar to IMPLIB).

_CLIFS

Specifies a list of CLIF files.

_RCS

Specifies a list of resource (RES) files.

_CC_FLAGS

Used to specify additional compiler flags. Compiler flags may be compiler specific; this variable may need to be set conditionally.

_DEFS

Specifies DLL-specific DEF files.

_ZIP_SPEC

Specifies the files to include in the ZIP file. Paths should be specified relative to _ZIP_SRCHROOT. Wildcards are supported for directories and files.

_ZIP_SRCHROOT

Specifies the base path for files listed in _ZIP_SPEC. Paths in the ZIP file are relative to this base.

_HEADER_IDLS

Specifies the IDL files to be compiled into C/C++ headers prior to building the target. Headers will not be built for IDL files that already have corresponding headers (same name) in the same directory.

_IMPL_IDLS

Specifies the IDL files for which stubs and skels should be generated and included for the target.

_CIF_IDLS

Specifies the IDL files for which CIFs (with Interface Declarations) should be generated and included for the target.

_IDLS

Specifies the IDL files for which the target hosts the stub/skel. Implies HEADER_IDLS, IMPL_IDLS, and CIF_IDLS; the separate versions are for cases where only the header or only the implementation is needed.

_CC

Used to change the default tool used to compile this C object.

_CXX

Used to change the default tool used to compile this CPP or CXX object.

_DEFINES

Specifies additional defines that are added when building .

_UNDEFINES

Removes the specified defines when building .

_INCDIRS

Specifies additional include paths to use for .

DEFINES

Specifies #define names passed to the compiler. Always append to this variable when adding defines. When possible, use the alternate _DEFINES.

INCDIRS

Specifies additional include paths that are passed to the compiler. Always append to this variable when adding include paths. When possible, use the alternate _INCDIRS.

LIBDIRS

Specifies the paths to search for libraries, DLLS, CLIFS, and import libraries. Always append to this variable when adding paths.