Conflicts:
libs/esl/Makefile.am
pymod-install: pymod
$(MAKE) -C python install
+rubymod-install: rubymod
+ $(MAKE) -C ruby install
+
everymod: perlmod phpmod luamod pymod rubymod javamod managedmod
-LOCAL_LDFLAGS=$(shell ruby -rrbconfig -e 'puts RbConfig::CONFIG["LIBRUBYARG"]')
-LOCAL_CFLAGS=$(shell ruby cflags.rb)
+RUBY:=ruby
+LOCAL_LDFLAGS=$(shell $(RUBY) -rrbconfig -e 'puts RbConfig::CONFIG["LIBRUBYARG"]')
+LOCAL_CFLAGS=$(shell $(RUBY) cflags.rb)
+RUBY_GEM_DIR=$(shell $(RUBY) -e 'puts Gem.dir')
all: ESL.so
ESL.so: esl_wrap.o
$(CXX) $(SOLINK) esl_wrap.o $(MYLIB) $(LOCAL_LDFLAGS) -o ESL.so -L. $(LIBS)
+
+install: ESL.so
+ install -m 755 ESL.so $(RUBY_GEM_DIR)
+
clean:
rm -f *.o *.so *~
cflags = if RUBY_VERSION =~ /1.9/ then
"-I#{RbConfig::CONFIG['rubyhdrdir']} -I#{RbConfig::CONFIG['rubyhdrdir']}/#{RbConfig::CONFIG['arch']}"
else
- "-I#{RbConfig::CONFIG["topdir"]}"
+ "-I#{RbConfig::CONFIG["topdir"]} -I#{RbConfig::CONFIG['rubyhdrdir']} -I#{RbConfig::CONFIG['rubyhdrdir']}/#{RbConfig::CONFIG['arch']}"
end
-puts cflags
\ No newline at end of file
+puts cflags