Changeset 1100 for trunk/lang/ruby
- Timestamp:
- Aug 6, 2008 4:20:58 AM (16 years ago)
- Location:
- trunk/lang/ruby
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lang/ruby/Makefile.in
r1090 r1100 25 25 destdir = $(libdir)/ruby 26 26 rubydir = $$RAPPTURE_INSTALL_DIR/lib/ruby 27 envfile = _ruby.env28 27 29 28 CXX = @CXX@ 30 CC = @C C@29 CC = @CXX@ 31 30 CFLAGS_DEBUG = @CFLAGS_DEBUG@ 32 31 CFLAGS_OPTIMIZE = @CFLAGS_OPTIMIZE@ … … 58 57 $(RUBY_LDFLAGS) 59 58 60 CC_SWITCHES = $(CFLAGS) $(CFLAGS_DEBUG) $(INCLUDES) $(DEFINES)61 59 CXX_SWITCHES = $(CFLAGS) $(CFLAGS_DEBUG) $(INCLUDES) $(DEFINES) 62 60 … … 67 65 lib = Rappture$(SOEXT) 68 66 69 all: $(lib) $(envfile)67 all: $(lib) 70 68 71 69 $(lib): $(OBJS) 72 70 $(SHLIB_LD) $(SHLIB_LDFLAGS) -o $@ $(OBJS) \ 73 71 $(LIB_SEARCH_DIRS) $(LIBS) 74 install: $(lib) $(envfile)72 install: $(lib) 75 73 $(MKDIR_P) $(destdir) 76 74 $(INSTALL) -m 555 $(lib) $(destdir) 77 $(INSTALL) -m 555 $(envfile) $(bindir)78 75 79 76 clean: … … 81 78 82 79 distclean: clean 83 $(RM) Makefile *~ build.rb $(envfile)80 $(RM) Makefile *~ build.rb 84 81 85 82 Makefile.ruby: build.rb … … 88 85 .cc.o: 89 86 $(CXX) $(CXX_SWITCHES) -c $? 90 .c.o:91 $(CC) $(CC_SWITCHES)-c $?92 93 $(envfile):94 echo 'export RUBYLIB=$(rubydir):$$RUBYLIB' > $(envfile)95 87 96 88 old: Makefile.ruby -
trunk/lang/ruby/Ruby_Rappture.cc
r1081 r1100 396 396 strRetVal = RpUnits::convert(STR2CSTR(fromVal), STR2CSTR(toUnitsName), 397 397 NUM2INT(showUnits), &result); 398 399 398 /* Return value */ 400 399 if (0 == result) … … 409 408 #ifdef RAISE_EXCEPTIONS 410 409 else 411 rb_raise(rb_eRuntimeError, "Unable to convert %s to %s",410 rb_raise(rb_eRuntimeError, "Unable to convert \"%s\" to \"%s\"", 412 411 STR2CSTR(fromVal), STR2CSTR(toUnitsName)); 413 412 #endif
Note: See TracChangeset
for help on using the changeset viewer.