[Omake] Compiling Ada code

Dirk Heinrichs dirk.heinrichs at online.de
Thu Oct 19 11:21:36 PDT 2006


Hello,

I want to use omake to build Ada programs with gnat. The building rules are 
similar to compiling C code, like:

%.o: %.adb
	gnatgcc <options> $< -o $@

binary: $(OBJECTS)
	gnatbind ...
	gnatlink ...

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

Any ideas how I can achieve this?

Thanks...

	Dirk
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.metaprl.org/pipermail/omake/attachments/20061019/9579e477/attachment.bin


More information about the Omake mailing list