From: Alex Katebi Date: 2009-02-04T22:34:18+09:00 Subject: Re: stupid mkmf --0016e644cde6cd96e4046217d9df Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: quoted-printable 2009/2/3 Rados=B3aw Bu=B3at > On Tue, Feb 3, 2009 at 11:54 PM, Alex Katebi > wrote: > > The mkmf gets the list of C source files to be used for the shared > library > > from the current directory only. > > Is this the only stupid way to list C source files for ruby extensions? > > > I remember doing something like this in extconf.rb: > > $srcs =3D [ > # c files listed here > ] > $objs =3D [ > # object files listed here > ] > I assume I should do something like $srcs =3D %w[../src/foo.c ../src/more.c= ] > > I looked at the mkmf sources and see that it use that global variables > but I don't know if there is better way. Btw. mkmf source is very > poor.. it would be nice to have better replacement for mkmf. If I have some time in the future I will write an autoconf & automake replacement for mkmf and give it to Matz. Ruby deserves better than this mkmf hack. Thanks for responding! -Alex > -- > Pozdrawiam > > Rados=B3aw Bu=B3at > http://radarek.jogger.pl - m=F3j blog > > --0016e644cde6cd96e4046217d9df--