You can combine the two steps into one by using the <env>make.bat file with <env>build.mak as its argument. The batch file sets the environment before invoking the makefile. The following example is the msmake.bat file used to set the environment and then build files for the Microsoft environment:
@echo off if "%2"=="" set target=all if "%2"=="build" set target=all if "%2"=="rebuild" set target=clean all if "%2"=="clean" set target=clean call "D:\Rhapsody\Share\etc\Vcvars32.bat" x86 echo ''nmake.exe nmake /nologo /I /S /F %1 %target%
The <lang>_CG::<Environment>InvokeMake property uses the <env>make.bat batch file to build a IBM® Rational® Rhapsody® model for a specific target environment. You can use the same batch file to build the framework libraries for that environment. Thus, the command to build the C or C++ framework libraries (from the $OMROOT\Lang<lang> directory) for most environments becomes:
> ..\etc\<env>make.bat <env>build.mak
This command is the preferred method for building the framework libraries for all environments and operating systems except Solaris (see Building the framework for Solaris systems) and the JDK.