B
Brian Schröder
Hello Group,
does there exist a mkmf.rb documentation except for the page in the pickaxe? The code is not very readable and I have found nothing so far?
At the moment I am wondering if it is possible to generate Makefiles for the following task:
For an extension baz I have a directory structure like this:
baz/
baz/src/
baz/src/baz.rb
baz/src/baz.base.c
baz/src/foo/
baz/src/foo/foo.rb
baz/src/foo/foo.base.c
baz/src/bar/
baz/src/bar/bar.rb
baz/src/bar/bar.base.c
and I want mkmf to create makefiles that compile and copy the files to:
baz/lib/
baz/lib/baz.rb
baz/lib/baz.base.so
baz/lib/baz/foo.rb
baz/lib/baz/foo.base.so
baz/lib/baz/bar.rb
baz/lib/baz/bar.base.so
such that I can require my extensions as
require 'baz'
require 'baz/foo'
require 'baz/bar'
when I include the lib directory in the ruby search path.
thanks a lot,
Brian
does there exist a mkmf.rb documentation except for the page in the pickaxe? The code is not very readable and I have found nothing so far?
At the moment I am wondering if it is possible to generate Makefiles for the following task:
For an extension baz I have a directory structure like this:
baz/
baz/src/
baz/src/baz.rb
baz/src/baz.base.c
baz/src/foo/
baz/src/foo/foo.rb
baz/src/foo/foo.base.c
baz/src/bar/
baz/src/bar/bar.rb
baz/src/bar/bar.base.c
and I want mkmf to create makefiles that compile and copy the files to:
baz/lib/
baz/lib/baz.rb
baz/lib/baz.base.so
baz/lib/baz/foo.rb
baz/lib/baz/foo.base.so
baz/lib/baz/bar.rb
baz/lib/baz/bar.base.so
such that I can require my extensions as
require 'baz'
require 'baz/foo'
require 'baz/bar'
when I include the lib directory in the ruby search path.
thanks a lot,
Brian