ESL-66
This commit is contained in:
parent
66fa44d889
commit
fcbb664df9
|
@ -1,6 +1,5 @@
|
||||||
## no idea how to simply ask ruby which one to use
|
LOCAL_LDFLAGS=$(shell ruby -rrbconfig -e 'puts RbConfig::CONFIG["LIBRUBYARG"]')
|
||||||
LOCAL_CFLAGS=-I$(shell ruby -e 'require "rbconfig"; puts RbConfig::CONFIG["topdir"]')
|
LOCAL_CFLAGS=$(shell ruby cflags.rb)
|
||||||
LOCAL_LDFLAGS=$(shell ruby -e 'require "rbconfig"; puts RbConfig::CONFIG["LIBS"]')
|
|
||||||
|
|
||||||
all: ESL.so
|
all: ESL.so
|
||||||
|
|
||||||
|
@ -20,4 +19,3 @@ swigclean:
|
||||||
rm -f esl_wrap.* ESL.so
|
rm -f esl_wrap.* ESL.so
|
||||||
|
|
||||||
reswig: swigclean esl_wrap.cpp
|
reswig: swigclean esl_wrap.cpp
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
require 'rbconfig'
|
||||||
|
|
||||||
|
cflags = if RUBY_VERSION =~ /1.9/ then
|
||||||
|
"-I#{RbConfig::CONFIG['rubyhdrdir']} -I#{RbConfig::CONFIG['rubyhdrdir']}/#{RbConfig::CONFIG['arch']}"
|
||||||
|
else
|
||||||
|
"-I#{RbConfig::CONFIG["topdir"]}"
|
||||||
|
end
|
||||||
|
puts cflags
|
Loading…
Reference in New Issue