提交 fcbb664d authored 作者: Brian West's avatar Brian West

ESL-66

上级 66fa44d8
## no idea how to simply ask ruby which one to use
LOCAL_CFLAGS=-I$(shell ruby -e 'require "rbconfig"; puts RbConfig::CONFIG["topdir"]')
LOCAL_LDFLAGS=$(shell ruby -e 'require "rbconfig"; puts RbConfig::CONFIG["LIBS"]')
LOCAL_LDFLAGS=$(shell ruby -rrbconfig -e 'puts RbConfig::CONFIG["LIBRUBYARG"]')
LOCAL_CFLAGS=$(shell ruby cflags.rb)
all: ESL.so
......@@ -20,4 +19,3 @@ swigclean:
rm -f esl_wrap.* ESL.so
reswig: swigclean esl_wrap.cpp
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
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论