1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* ext/dl/callback/extconf.rb ($distcleanfiles): added callback.c.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22862 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2009-03-09 16:57:17 +00:00
parent 31d1d0a829
commit d3c4a4686a
2 changed files with 9 additions and 7 deletions

View file

@ -1,3 +1,7 @@
Tue Mar 10 01:57:15 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/dl/callback/extconf.rb ($distcleanfiles): added callback.c.
Tue Mar 10 00:06:21 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* configure.in (load_relative): new option to enable load path

View file

@ -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")