Aye, that was what i thought. Jack misled me:) So i resume what we have started with. There is currently no easy method to use .pc.lo rule with intermediate files' removal. And if i leave them hanging i have to put into every Makefile a line adding them to CLEANFILES. Which is as ugly...
2009/12/1 Ralf Wildenhues <ralf.wildenh...@gmx.de>: > * Юрий Пухальский wrote on Mon, Nov 30, 2009 at 10:39:27PM CET: >> 2009/12/1 Ralf Wildenhues <ralf.wildenh...@gmx.de>: >> > * Юрий Пухальский wrote on Mon, Nov 30, 2009 at 09:15:23AM CET: >> >> I've tried using oldstyle libraries, to no avail... It has made a >> >> library like this (last lines of "ar t" output): >> >> foo.o >> >> libbar.a >> > >> > I don't follow the conversation, but the output looks bogus; so: >> > can you please submit a small example Makefile.am that shows the >> > problem? >> >> I've tried to use the library as i would have done with LTLIBRARIES, >> but apparently it doesn't support it (and from what i remember it >> didn't) >> Here's a small example from scratch. > > Thanks. This is the relevant part: > >> --- Makefile.am --- >> noinst_LIBRARIES=libfoo.a libbar.a >> >> libfoo_a_SOURCES=foo.c >> >> libbar_a_SOURCES=bar.c >> libbar_a_LIBADD=libfoo.a > > That doesn't work. You can use LIBADD only with libtool libraries. > It should work with libtool convenience archives (noinst_LTLIBRARIES), > however (in case you use libtool): > > noinst_LTLIBRARIES=libfoo.la libbar.la > libfoo_la_SOURCES=foo.c > libbar_la_SOURCES=bar.c > libbar_la_LIBADD=libfoo.la > > Cheers, > Ralf > -- «The good thing about standards is there are so many to choose from.»