summaryrefslogtreecommitdiff
path: root/ext/dl/callback/extconf.rb
blob: 1e8e749e1f1e5d4d5c5630a67b6c8b812c23b5df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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 += [ "callback.h", *callback_srcs ]
  $objs = callback_objs
  $INCFLAGS << " -I$(srcdir)/.."

  create_makefile("dl/callback")
end