Next: Source File Naming Conventions, Previous: Main Subprograms, Up: Common Sources with Different Switches and Directories
By default, the executable file name corresponding to a main source is
deduced from the main source file name. Through the attributes
Executable and Executable_Suffix of package Builder,
it is possible to change this default.
In project Debug above, the executable file name
for main source proc.adb is
proc1.
Attribute Executable_Suffix, when specified, may change the suffix
of the the executable files, when no attribute Executable applies:
its value replace the platform-specific executable suffix.
Attributes Executable and Executable_Suffix are the only ways to
specify a non default executable file name when several mains are built at once
in a single gnatmake command.