AmesimKnowledge

Special Files used by Simcenter Amesim Run

The AME.make file

AME.make file

The AME.make file specifies how Simcenter Amesim creates the executable for the systems you build. This executable is the one you run in Simulation mode. The executable is created using rules formed by reading and processing the AME.make files that are found in the directories of the Simcenter Amesim. These files usually contain four lines. An example of an AME.make file is given from the Cooling System library:

Copy

$(CC) -I$(AME)/lib -c
$(CC)
-L$(THISNODE)/lib/$(MACHINETYPE) -lAC
win32:$(THISNODE)\lib\$(MACHINETYPE)\AC.lib

The first line tells Simcenter Amesim how to compile the code generated for your system. The second line tells Simcenter Amesim what utility to use to create the executable after it has compiled the generated code. This is normally a C compiler, a Fortran compiler or a link-loader. The third and fourth lines tell Simcenter Amesim of any extra libraries that must be linked when the executable is formed. The third line is used by Linux systems whereas the fourth one is used by Windows systems.

Simcenter Amesim will take the first two lines of the first AME.make it finds in the path list and merge the third or fourth lines of all the AME.make files it finds.

Initially the only AME.make is in the Simcenter Amesim system area (specified by the AME environment variable). It can be useful to copy this file into your working area using:

Copy

cp $AME/AME.make .
copy %AME%\AME.make .

You can then edit it so that the executables are created in a different way. Equally well, an AME.make file can be placed in a special directory to allow a group of users to access it. If you develop your own libraries, you can specify a library you have created and wish to use.

Using Linux, the recommended name for a library starts with lib and ends with extension a, for instance libMyLib.a. You must specify the extra library/libraries and the pathname to where they are stored. An example of a third line is: -L/home/cwr/mylibs -lMyLib

Using the Microsoft Compiler, the recommended name for a library ends with extension lib, for instance MyLib.lib. The way of specifying the path to the library is: C:\home\cwr\mylibs\MyLib.lib

A fourth line looks like this: win32:C:\home\cwr\mylibs\MyLib.lib

If a third or fourth line already exists, it is probably better to add this text at the beginning of the line.

Source: https://docs.sw.siemens.com/en-US/doc/254352342/PL20250521841123434.amesim_collection.Reference_Run/The_AME_make_file · retrieved 2026-07-17