[Omake] Compiling Ada code

Aleksey Nogin nogin at metaprl.org
Thu Oct 19 11:51:06 PDT 2006


On 19.10.2006 11:21, Dirk Heinrichs wrote:

> The problem I have now is with dependency scanners. It seems that omake always 
> runs the scanner _before_ the actual compilation. This does not work with 
> Ada. Ada doesn't have the concept of header files, which are included into C 
> files. Instead, modules are pre-compiled units. This means that I can get at 
> the dependency information earliest _after_ a unit has been compiled, like
> 
> gnatmake -a -M -u <INCLUDES> file.o

Can you elaborate a bit - what kind of dependencies exist for Ada?

Normally the dependencies are the files that either:
1) Need to exist _before_ the target can be built, or
2) Affect what the target will turn out to be.

Most of the time, a dependency would belong to both classes 
simultaneously, and the scanning setup does not try to distinguish 
between the two (although it is possible to specify manually that a 
certain dependency belongs to one class only - the :exists: flag can be 
used to specify the dependencies that belong only to the first class and 
the :optional: flag can be used for dependencies that belong to the 
second class only).

Of course, for the dependencies of the first kind, scanning needs to go 
first - we need to know what those dependencies are before we can 
attempt building the file. So, are you saying that (other than the 
source file itself) there are no build prerequisites in Ada and all the 
dependencies are necessarily of the second kind only?

Aleksey


More information about the Omake mailing list