Next: , Previous: Specifying Switch Settings, Up: Common Sources with Different Switches and Directories

Main Subprograms

One of the specifiable properties of a project is a list of files that contain main subprograms. This property is captured in the Main attribute, whose value is a list of strings. If a project defines the Main attribute, it is not necessary to identify the main subprogram(s) when invoking gnatmake (see gnatmake and Project Files).