Analyzing makefiles

The Reverse Engineering window requires you to provide the list of files to reverse engineer. In addition, the Advanced Options window allows you to specify other settings for reverse engineering, such as include paths. To facilitate the entry of this information, if you have a makefile for your project, you can provide IBM® Rational® Rhapsody® with the location of the makefile and it will analyze the makefile in order to retrieve the list of source files and any other settings that are relevant for reverse engineering.

About this task

To have Rational Rhapsody analyze a makefile:

Procedure

  1. Open the Reverse Engineering window (choose Tools > Reverse Engineering).
  2. In the Select Files area, select the Makefiles radio button.
  3. Use the Browse button at the top of the window to locate the root directory to use for reverse engineering. The file list area then lists any makefiles located in this directory (based on the value of the <lang>_ReverseEngineering:Main:MakefileExtension property).
  4. Select the check box next to the filename of the makefile in the file list that appears in the Select Folders area.
  5. Use the Environment list to choose the correct environment.
  6. Click the Analyze Makefile button.

Results

After the analysis is complete, the source files referenced in the makefile will be displayed in the Select Files area of the window. If you go to the Reverse Engineering Advanced Options window, you will see that Rational Rhapsody has also brought in the other relevant settings from the makefile.

When using this feature, keep in mind the following points:


Feedback