Add Ruby support contributed by Masaki Fukushima.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@518 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Thien-Thi Nguyen 2000-07-05 18:58:49 +00:00
commit 4d989f6796
39 changed files with 3754 additions and 10 deletions

View file

@ -13,7 +13,7 @@ VPATH = @srcdir@
CC = @CC@
LIBTOOL = ../Tools/libtool
SWIGLIB = ../Lib
LIBS = libswigpl.la libswigpy.la libswigtcl8.la
LIBS = libswigpl.la libswigpy.la libswigtcl8.la libswigrb.la
LIB_DIR = $(exec_prefix)/lib
all:
@ -80,3 +80,20 @@ libswigpl.la:
cat $(srcdir)/$(PERL5_RUNTIME) >> libperl.c
$(LIBTOOL) $(CC) -c $(PERL5_INCLUDE) -DSWIG_GLOBAL -Dbool=char -Dexplicit= libperl.c
$(LIBTOOL) $(CC) -o libswigpl.la libperl.lo -rpath $(LIB_DIR) -avoid-version
# ----------------------------------------------------------------------
# Ruby run-time library
# ----------------------------------------------------------------------
RUBY_INCLUDE = @RUBYINCLUDE@
RUBY_RUNTIME = $(SWIGLIB)/ruby/ruby.swg
# Ruby shared
ruby: libswigrb.la
libswigrb.la:
cp $(srcdir)/$(RUBY_RUNTIME) librb.c
cat $(SWIGLIB)/ruby/rubydef.swg >> librb.c
$(LIBTOOL) $(CC) -c $(RUBY_INCLUDE) -DSWIG_GLOBAL librb.c
$(LIBTOOL) $(CC) -o libswigrb.la librb.lo -rpath $(LIB_DIR) -avoid-version

View file

@ -15,7 +15,7 @@ necho() {
# Script that attempts to produce different run-time libraries
TARGET='perl5 python tcl'
TARGET='perl5 python tcl ruby'
echo "Building the SWIG runtime libraries."
echo ""