mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
15 lines
372 B
Ruby
15 lines
372 B
Ruby
|
require 'mkmf'
|
||
|
|
||
|
if compiled?("dl")
|
||
|
callbacks = (0..8).map{|i| "callback-#{i}"}.unshift("callback")
|
||
|
callback_srcs = callbacks.map{|basename| "#{basename}.c"}
|
||
|
callback_objs = callbacks.map{|basename| "#{basename}.o"}
|
||
|
|
||
|
$distcleanfiles << '$(SRCS)'
|
||
|
$srcs = callback_srcs
|
||
|
$objs = callback_objs
|
||
|
$INCFLAGS << " -I$(srcdir)/.."
|
||
|
|
||
|
create_makefile("dl/callback")
|
||
|
end
|