Sha256: 57966efd230cab9374749f220a1d64b5b5e61e22b1ac2a93754e6d015d410de7
Contents?: true
Size: 768 Bytes
Versions: 7
Compression:
Stored size: 768 Bytes
Contents
require 'mkmf' require 'numo/narray' $LOAD_PATH.each do |lp| if File.exist?(File.join(lp, 'numo/numo/narray.h')) $INCFLAGS = "-I#{lp}/numo #{$INCFLAGS}" break end end unless have_header('numo/narray.h') puts 'numo/narray.h not found.' exit(1) end if RUBY_PLATFORM =~ /mswin|cygwin|mingw/ $LOAD_PATH.each do |lp| if File.exist?(File.join(lp, 'numo/libnarray.a')) $LDFLAGS = "-L#{lp}/numo #{$LDFLAGS}" break end end unless have_library('narray', 'nary_new') puts 'libnarray.a not found.' exit(1) end end $srcs = Dir.glob("#{$srcdir}/*.c").map { |path| File.basename(path) } $srcs.concat(%w[blas.c linpack.c lbfgsb.c]) $INCFLAGS << " -I$(srcdir)/src" $VPATH << "$(srcdir)/src" create_makefile('lbfgsb/lbfgsbext')
Version data entries
7 entries across 7 versions & 1 rubygems