[Omake] Compiling Ada code
Dirk Heinrichs
dirk.heinrichs at online.de
Mon Nov 6 14:00:13 PST 2006
Am Montag, 6. November 2006 19:38 schrieb Aleksey Nogin:
> On 06.11.2006 09:59, Dirk Heinrichs wrote:
> > Having said that, my offer is still valid to give you my small build
> > system (which is also pretty generic, btw.) as a starting point. It
> > currently compiles C/C++ and Ada code and create shared libs and
> > executable programs from the resulting object files. It has a little perl
> > program to find out Ada dependencies and correctly handles sub units and
> > the spec only case. It can also find out wether an executable is built
> > from Ada or C source and creates the correct linker rule (rules are
> > created on the fly, btw.)
>
> This would be great - provided that there is somebody willing to try to
> clean it up (rewrite the little perl script in OMake, etc).
> Unfortunately, as none of the OMake developers uses Ada, most likely we
> would not be able to do this ourselves.
Maybe I can do this myself. The script doesn't do that much. It takes one
input and one output file and an arbitrary number of include paths and calls
gnatgcc with these options to get a dependency list. This list is then
reformated into a make rule. It's less than 60 lines.
> > Adding support for other languages should also be easy, I'm planning to
> > add LaTeX support soon.
>
> Note that OMake standard library already comes with LaTeX support (see
> the LaTeX.om file or the LaTeX section of the documentation -
> http://omake.metaprl.org/omake-doc.html#htoc438 )
I'll take a look at it.
But I'd guess our approaches are too different:
You have portability in mind, I don't care about Windows.
You require that users list which source files go into which lib/executable, I
determine this by directory structure.
You put object files into the source dir, I place them elsewhere.
...
I have assembled a little tarball with this build system and some Ada sample
code. It's 18k in size, can I send it to the list or should I upload it
somewhere?
Bye...
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/20061106/2f69635f/attachment.bin
More information about the Omake
mailing list