Creating the batch file and makefiles

About this task

Each adapter must provide a set of makefiles and a batch file for building the new OXF libraries (including the OSAL), using its provided cross-compiler. The following table lists the makefile for each library.

Makefile Description Built With
oxf Run-time libraries <env>oxf.mak
aom Instrumentation libraries that support both tracing and animation <env>aom.mak
tom Instrumentation library that supports tracing <env>tom.mak
omcom Communication libraries that support communication between IBM® Rational® Rhapsody® and an instrumented application <env>omcom.mak

The compiled framework libraries are linked to the application generated from the Rational Rhapsody model, which has its own makefile. The application makefile is specified in the MakeFileContent property, which you modify in the site<lang>.prp file. See Creating new makefiles for more details.

Procedure

  1. Create a batch file to set the environment named <env>make.bat, call the makefile, and save it to $OMROOT\etc. This file can be used to build the framework as well as a Rational Rhapsody model (see also Building the C or C++ framework in one step).
  2. Create the following makefiles and save them to the specified locations.

Results

File Location Description
<env>build.mak $OMROOT\Lang<lang> Calls the other makefiles to build the Rational Rhapsody framework libraries (see Sample <env>build.mak file).
<env>aom.mak $OMROOT\Lang<lang>\aom Builds the instrumentation libraries:
  • <env>aomtrace
  • <env>aomanim
<env>omcom.mak $OMROOT\Lang<lang>\omcom Builds the communication library for instrumentation (<env>omcomappl)
<env>oxf.mak $OMROOT\Lang<lang>\oxf Builds the OXF libraries:
  • <env>oxf
  • <env>oxfinst

See OXF versions for descriptions of the different OXF libraries.

<env>tom.mak $OMROOT\tom Builds the tracing libraries:
  • <env>tomtrace
  • <env>tomtraceRiC
    (for Rational Rhapsody Developer for C)

You might also need to copy any RTOS-specific configuration files required to build the libraries to $OMROOT\MakeTempl. For example, pSOSystem requires drv_conf.c and sys_conf.h. In addition, you might need to copy the root.cpp file. Replace these files with any board-specific versions, if necessary.


Feedback