mkmf ignores files in sub-folders when it compiles the C extension
问题 I'd like to organize the C source code like this: + / | |___ + ext | | | |___ + native_extension | | | |___ + lib | | | | | |___ (Source files are kept in here - may contain sub-folders) | | | |___ native_extension.c | |___ native_extension.h | |___ extconf.rb | |___ + lib | | | |___ (Ruby source code) | |___ Rakefile I'm having trouble getting this setup to work correctly with mkmf . The files in native_extension/lib , which are included by native_extension.c , are being completely ignored.