diff options
| author | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-10-03 15:49:39 +0000 |
|---|---|---|
| committer | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-10-03 15:49:39 +0000 |
| commit | 3af458348ef7bb6d5bd0f16aac3c9ccedd9b4a3e (patch) | |
| tree | 67e9ac594b22787c08fcf242d6e3823c8501cdc5 /ext | |
| parent | 007976b09312425588f61449aa8a375eeebc9452 (diff) | |
| download | ruby-3af458348ef7bb6d5bd0f16aac3c9ccedd9b4a3e.tar.gz ruby-3af458348ef7bb6d5bd0f16aac3c9ccedd9b4a3e.tar.xz ruby-3af458348ef7bb6d5bd0f16aac3c9ccedd9b4a3e.zip | |
* ext/dl/extconf.rb ($distcleanfiles): added callback-?.c into
the distclean list.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19667 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/dl/extconf.rb | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/ext/dl/extconf.rb b/ext/dl/extconf.rb index 8ba6c53d0..c0b8ffd0a 100644 --- a/ext/dl/extconf.rb +++ b/ext/dl/extconf.rb @@ -4,10 +4,14 @@ if( RbConfig::CONFIG['CC'] =~ /gcc/ ) $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 @@ else 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}\\"] |
