Hello,
I am trying to build a STAF extension for ruby (not made by me). It
comes with a very simple extconf.rb file:

require 'mkmf'

dir_config('staf')
have_library('STAF', 'STAFRegister')
create_makefile("STAFHandle")

However, no matter how I specify the directory (I've tried
-with-staf-dir=c:\STAF, -with-staf-lib=c:\STAF\lib, etc) it gives:

checking for STAFRegister() in STAF.lib... no
creating Makefile

I tried to make anyway, but unsuprisingly, it fails. It gives
"Makefile:126: *** target pattern contains no `%'.  Stop." The offending
line:
{$(topdir)}.cc{}.obj:
  $(CXX) $(INCFLAGS) $(CXXFLAGS) $(CPPFLAGS) -c -Tp$(<:\=/)

I'm running ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32],
whatever version of mkmf that comes with the windows one-click installer
and GNU make 3.79.1.

Thanks!
-- 
Posted via http://www.ruby-forum.com/.