Only compiling objects, without creating a library

View: New views
3 Messages — Rating Filter:   Alert me  

Only compiling objects, without creating a library

by Martin Kalbfuß :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I want to create a library for the GNU-Modula compiler. But the
libraries are pure object files in a separate directory. Some kind of
package.

Is there a target for this?


Thanks




Re: Only compiling objects, without creating a library

by Ralf Wildenhues :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello Martin,

* Martin Kalbfuß wrote on Tue, Oct 13, 2009 at 11:21:13PM CEST:
> I want to create a library for the GNU-Modula compiler. But the
> libraries are pure object files in a separate directory. Some kind of
> package.
>
> Is there a target for this?

No.  But if you write the compile rules yourself, you will know the
names of the objects anyway, so you can make them a prerequisite of
some target.  If your question aims at getting them to be built by
`make all', then `all-local' is the target to be adding them to.

Another option, recalling that you asked about Modula before, is to
integrate support for this language in Automake (and probably Autoconf).
Since I don't know anything about this language's compile and link
semantics, for this I'd appreciate some good pointers (and of course
we appreciate patches too :-).

Cheers,
Ralf



Re: Only compiling objects, without creating a library

by Martin Kalbfuß :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I would like to. But I'm not sure where I should start. While there are
a lot of descriptions how to use the autotools with supported languages,
I haven't found much about extending them. Could you give me some links?
That would be helpfull. I had problems understanding the m4 macros while
I had a look at them.
GNU Modula-2 Compiler isn't that different from gcc. It supports most of
It's options(maybe all?). The biggest difference I found so far is the
option -fmakeall which creates a simple Makefile internally. And is
needed if you want to do the compilation and linking step in one go. So
most stuff should be already there.

Am Mittwoch, den 14.10.2009, 07:01 +0200 schrieb Ralf Wildenhues:

> Hello Martin,
>
> * Martin Kalbfuß wrote on Tue, Oct 13, 2009 at 11:21:13PM CEST:
> > I want to create a library for the GNU-Modula compiler. But the
> > libraries are pure object files in a separate directory. Some kind of
> > package.
> >
> > Is there a target for this?
>
> No.  But if you write the compile rules yourself, you will know the
> names of the objects anyway, so you can make them a prerequisite of
> some target.  If your question aims at getting them to be built by
> `make all', then `all-local' is the target to be adding them to.
>
> Another option, recalling that you asked about Modula before, is to
> integrate support for this language in Automake (and probably Autoconf).
> Since I don't know anything about this language's compile and link
> semantics, for this I'd appreciate some good pointers (and of course
> we appreciate patches too :-).
>
> Cheers,
> Ralf