summaryrefslogtreecommitdiff
path: root/ext/dl/callback
diff options
context:
space:
mode:
Diffstat (limited to 'ext/dl/callback')
-rw-r--r--ext/dl/callback/extconf.rb12
1 files changed, 5 insertions, 7 deletions
diff --git a/ext/dl/callback/extconf.rb b/ext/dl/callback/extconf.rb
index 46aba28397d..1e8e749e1f1 100644
--- a/ext/dl/callback/extconf.rb
+++ b/ext/dl/callback/extconf.rb
@@ -1,14 +1,12 @@
require 'mkmf'
if compiled?("dl")
- CALLBACKS = (0..8).map{|i| "callback-#{i}"}
- CALLBACK_SRCS = CALLBACKS.map{|basename| "#{basename}.c"}
- CALLBACK_OBJS = CALLBACKS.map{|basename| "#{basename}.o"}
-
- $distcleanfiles += [ "callback.h", *CALLBACK_SRCS ]
-
- $objs = %w[ callback.o ] + CALLBACK_OBJS
+ callbacks = (0..8).map{|i| "callback-#{i}"}.unshift("callback")
+ callback_srcs = callbacks.map{|basename| "#{basename}.c"}
+ callback_objs = callbacks.map{|basename| "#{basename}.o"}
+ $distcleanfiles += [ "callback.h", *callback_srcs ]
+ $objs = callback_objs
$INCFLAGS << " -I$(srcdir)/.."
create_makefile("dl/callback")