[前][次][番号順一覧][スレッド一覧]

ruby-changes:8140

From: yugui <ko1@a...>
Date: Sat, 4 Oct 2008 00:50:00 +0900 (JST)
Subject: [ruby-changes:8140] Ruby:r19667 (trunk): * ext/dl/extconf.rb ($distcleanfiles): added callback-?.c into

yugui	2008-10-04 00:49:39 +0900 (Sat, 04 Oct 2008)

  New Revision: 19667

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=19667

  Log:
    * ext/dl/extconf.rb ($distcleanfiles): added callback-?.c into
      the distclean list.

  Modified files:
    trunk/ChangeLog
    trunk/ext/dl/extconf.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 19666)
+++ ChangeLog	(revision 19667)
@@ -1,3 +1,8 @@
+Fri Oct  3 22:43:04 2008  Yuki Sonoda (Yugui)  <yugui@y...>
+
+	* ext/dl/extconf.rb ($distcleanfiles): added callback-?.c into
+	  the distclean list.
+
 Fri Oct  3 19:33:21 2008  NARUSE, Yui  <naruse@r...>
 
 	* ext/json/lib/json/pure.rb (module JSON): remove Iconv dependency.
Index: ext/dl/extconf.rb
===================================================================
--- ext/dl/extconf.rb	(revision 19666)
+++ ext/dl/extconf.rb	(revision 19667)
@@ -4,10 +4,14 @@
   $CFLAGS << " -fno-defer-pop -fno-omit-frame-pointer"
 end
 
+CALLBACKS = (0..8).map{|i| "callback-#{i}"}
+CALLBACK_SRCS = CALLBACKS.map{|basename| "#{basename}.c"}
+CALLBACK_OBJS = CALLBACKS.map{|basename| "#{basename}.o"}
+
 $INSTALLFILES = [
   ["dl.h", "$(HDRDIR)"],
 ]
-$distcleanfiles << "callback.h"
+$distcleanfiles += [ "callback.h", *CALLBACK_SRCS ]
 
 
 check = true
@@ -25,12 +29,7 @@
   check = false
 end
 
-$objs = %w[
-  cfunc.o dl.o cptr.o handle.o
-  callback-0.o callback-1.o callback-2.o callback-3.o
-  callback-4.o callback-5.o callback-6.o callback-7.o
-  callback-8.o
-]
+$objs = %w[ cfunc.o dl.o cptr.o handle.o ] + CALLBACK_OBJS
 
 if check
   $defs << %[-DRUBY_VERSION=\\"#{RUBY_VERSION}\\"]

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]