This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: where does libgcj_la_OBJECTS get defined in Makefile.am?


>>>>> "Adam" == Adam Megacz <gcj@lists.megacz.com> writes:

>> libgcj_la_OBJECTS is defined in Makefile.in.
>> It is created by automake.

Adam> I see... forgive me, my automake-fu is weak. How does automake
Adam> know how to generate libgcj_la_OBJECTS? Is XXX_OBJECTS a magic
Adam> identifier that generates itself from XXX_DEPENDANCIES? or
Adam> XXX_SOURCES?

It starts from the list of libraries (in this case, ltlibriares).
This list includes `libgcj.la'.  So then automake knows that
`libgcj_la_SOURCES' lists the sources for that library.  Automake has
a lot of code to convert _SOURCES into _OBJECTS (there are
surprisingly many cases).

Hope this helps.  What is the problem you are trying to solve?  Maybe
I can just answer that directly.

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]