From: Luis Lavena Date: 2012-02-14T06:10:44+09:00 Subject: Re: Ruby C-Extensions: Compile files in subdirectory? Marvin Gülker wrote in post #1045032: > Hi folks, > > I’m writing a C extension (it’s actually C++ but that doesn’t matter > for this problem) for Ruby that consists of many files that > are intended to be compiled into a _single_ C extension, not a dozen > ones. To structure the code, I’ve got some subdirectories under the ext/ > directory, i.e. my directory structure looks something like this: > > / > ext/ > - extconf.rb > - my_ext.c > - my_ext.h > thing1/ > - thing1.c > - thing1.h > - thing1_2.c > - thing1_2.h > thing2/ > - thing2.c > - thing2.h > thing2_1/ > - something.c > - something.h > https://github.com/ruby/ruby/blob/trunk/lib/mkmf.rb#L1880-1932 But only works with one directory. -- Luis Lavena -- Posted via http://www.ruby-forum.com/.