www.delorie.com/gnu/docs/gcc/gnat_ug_84.html   search  
 
Buy the book!


Untitled Document

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

6.6 Examples of gnatmake Usage

gnatmake hello.adb
Compile all files necessary to bind and link the main program `hello.adb' (containing unit Hello) and bind and link the resulting object files to generate an executable file `^hello^HELLO.EXE^'.

gnatmake main1 main2 main3
Compile all files necessary to bind and link the main programs `main1.adb' (containing unit Main1), `main2.adb' (containing unit Main2) and `main3.adb' (containing unit Main3) and bind and link the resulting object files to generate three executable files `^main1^MAIN1.EXE^', `^main2^MAIN2.EXE^' and `^main3^MAIN3.EXE^'.

gnatmake -q Main_Unit -cargs -O2 -bargs -l

Compile all files necessary to bind and link the main program unit Main_Unit (from file `main_unit.adb'). All compilations will be done with optimization level 2 and the order of elaboration will be listed by the binder. gnatmake will operate in quiet mode, not displaying commands it is executing.


  webmaster   donations   bookstore     delorie software   privacy  
  Copyright © 2003   by The Free Software Foundation     Updated Jun 2003