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:
Now, as I said before I want a single C extension “my_ext.so”, but I
just can’t find out how to instruct mkmf to recognise subdiretories.
It just compiles the files residing in the toplevel directory into
object files, completely ignoring all the subdirectories. So, my
question is: How to tell mkmf about the subdirectories?
Valete,
Marvin
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
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:
Thanks Luis, but I already knew this option and the limitation to one
directory was what made me ask here, actually the extension consists
of many quite small parts grouped into bigger ones that I don’t wanted
to put all into one directory. However, if there isn’t another way I’m
going to create multiple C extensions, one per subdirectory. This
shouldn’t hurt I guess.
Thank you anyway!
Marvin
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/