Patrick Hurley wrote:
> I keep getting lost in the mkmf code, so I was hoping to find a guide.
>
> I have an extension that under Windows will use an external dll, but
> under Unix the files are linked directly into the extension. So my
> question is:
>
> Can I explicitly exclude certain files in extconf.rb, that it has
> found (by extension in the current directory) or (even better) can I
> explicitly include source files in a different directory.

I might have misunderstood you, but you can do this:

# extconf.rb
dir_config('foo')
have_header('foo.h')

And then from the command line:

ruby extconf.rb --with-foo-include=c:/path/to/foo/include

Is that what you meant?

Regards,

Dan