summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-03-14 23:26:11 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-03-14 23:26:11 +0000
commit02136ebbb54e0cda1aa928a971d8ef59a4659735 (patch)
treee1f8ad4a58e2b1de6cea62d6fe95281e1b992322
parentdbb66effeffd8011a71cfb5fe617eb09a9574fdf (diff)
* common.mk (srcs-ext): creates ext/dl/callback/callback.c also.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22963 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--common.mk10
-rw-r--r--ext/dl/callback/depend5
3 files changed, 16 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 3bcb21e6a67..6563674569d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Sun Mar 15 08:26:16 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (srcs-ext): creates ext/dl/callback/callback.c also.
+
Sun Mar 15 03:29:51 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* process.c (SAVED_GROUP_ID, p_gid_switch): should be rb_gid_t.
diff --git a/common.mk b/common.mk
index 5d3aee52d57..a316d1e2f59 100644
--- a/common.mk
+++ b/common.mk
@@ -648,7 +648,11 @@ INSNS2VMOPT = --srcdir="$(srcdir)"
{$(VPATH)}vm.inc: $(srcdir)/template/vm.inc.tmpl
-srcs: {$(VPATH)}parse.c {$(VPATH)}lex.c {$(VPATH)}newline.c $(srcdir)/ext/ripper/ripper.c srcs-enc
+srcs: {$(VPATH)}parse.c {$(VPATH)}lex.c {$(VPATH)}newline.c srcs-ext srcs-enc
+
+EXT_SRCS = $(srcdir)/ext/ripper/ripper.c $(srcdir)/ext/dl/callback/callback.c
+
+srcs-ext: $(EXT_SRCS)
srcs-enc: $(ENC_MK)
$(MAKE) -f $(ENC_MK) RUBY="$(MINIRUBY)" MINIRUBY="$(MINIRUBY)" $(MFLAGS) srcs
@@ -687,8 +691,8 @@ $(srcdir)/revision.h: $(srcdir)/version.h $(srcdir)/ChangeLog $(srcdir)/tool/fil
@-$(BASERUBY) $(srcdir)/tool/file2lastrev.rb --revision.h "$(@D)" > "$@.tmp"
@$(IFCHANGE) "$@" "$@.tmp"
-$(srcdir)/ext/ripper/ripper.c:
- $(CHDIR) $(srcdir)/ext/ripper && $(exec) $(MAKE) -f depend $(MFLAGS) top_srcdir=../.. srcdir=.
+$(EXT_SRCS):
+ $(CHDIR) $(@D) && $(exec) $(MAKE) -f depend $(MFLAGS) top_srcdir=../.. srcdir=.
##
diff --git a/ext/dl/callback/depend b/ext/dl/callback/depend
index 63dfab6360d..7a1dc1ee62e 100644
--- a/ext/dl/callback/depend
+++ b/ext/dl/callback/depend
@@ -1,3 +1,8 @@
+src: callback.c \
+ callback-0.c callback-1.c callback-2.c \
+ callback-3.c callback-4.c callback-5.c \
+ callback-6.c callback-7.c callback-8.c
+
$(OBJS): $(hdrdir)/ruby.h
callback-0.c callback-1.c callback-2.c \