The generated macros section of the makefile contains a variable that expands to the IBM® Rational® Rhapsody®-generated macros in the makefile. For example:
############### Generated macros #################
##################################################
$OMContextMacros
OBJ_DIR=$OMObjectsDir
!IF "$(OBJ_DIR)"!=""
CREATE_OBJ_DIR=if not exist $(OBJ_DIR) mkdir $(OBJ_DIR)
CLEAN_OBJ_DIR= if exist $(OBJ_DIR) $(RMDIR) $(OBJ_DIR)
!ELSE
CREATE_OBJ_DIR=
CLEAN_OBJ_DIR=
!ENDIF
The $OMContextMacros keyword expands several macros in the makefile. Each makefile macro has its own keyword. You can use these keywords separately to customize the makefile.
The $OMContextMacros variable enables you to modify target-specific variables. Replace the $OMContextMacros line in the MakeFileContent property with the following:
FLAGSFILE=$OMFlagsFile
RULESFILE=$OMRulesFile
OMROOT=$OMRoot
CPP_EXT=$OMImplExt
H_EXT=$OMSpecExt
OBJ_EXT=$OMObjExt
EXE_EXT=$OMExeExt
LIB_EXT=$OMLibExt
INSTRUMENTATION=$OMInstrumentation
TIME_MODEL=$OMTimeModel
TARGET_TYPE=$OMTargetType
TARGET_NAME=$OMTargetName
$OMAllDependencyRule
TARGET_MAIN=$OMTargetMain
LIBS=$OMLibs
INCLUDE_PATH=$OMIncludePath
ADDITIONAL_OBJS=$OMAdditionalObjs
OBJS= $OMObjs