mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* win32/Makefile.sub (make_insns_rules): rule to make rules for insns.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22778 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a6c117a2b1
commit
11075c9332
4 changed files with 31 additions and 12 deletions
|
@ -1,3 +1,7 @@
|
|||
Thu Mar 5 11:52:16 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* win32/Makefile.sub (make_insns_rules): rule to make rules for insns.
|
||||
|
||||
Thu Mar 5 11:27:16 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* win32/Makefile.sub (miniruby.exe): workaround for a failure of
|
||||
|
|
|
@ -271,3 +271,6 @@ update-rubyspec:
|
|||
test-rubyspec:
|
||||
@if [ ! -d $(srcdir)/spec/rubyspec ]; then echo No rubyspec here. make update-rubyspec first.; exit 1; fi
|
||||
$(RUNRUBY) $(srcdir)/spec/mspec/bin/mspec -B $(srcdir)/spec/default.mspec $(MSPECOPT)
|
||||
|
||||
$(INSNS): $(srcdir)/insns.def vm_opts.h $(srcdir)/defs/opt_operand.def $(srcdir)/defs/opt_insn_unif.def
|
||||
$(BASERUBY) -Ks $(srcdir)/tool/insns2vm.rb $(INSNS2VMOPT) $@
|
||||
|
|
20
common.mk
20
common.mk
|
@ -637,25 +637,21 @@ INSNS2VMOPT = --srcdir="$(srcdir)"
|
|||
INSNS = opt_sc.inc optinsn.inc optunifs.inc insns.inc insns_info.inc \
|
||||
vmtc.inc vm.inc
|
||||
|
||||
$(INSNS): $(srcdir)/insns.def {$(VPATH)}vm_opts.h $(srcdir)/defs/opt_operand.def $(srcdir)/defs/opt_insn_unif.def
|
||||
@$(RM) $(PROGRAM)
|
||||
$(BASERUBY) -Ks $(srcdir)/tool/insns2vm.rb $(INSNS2VMOPT) $@
|
||||
{$(VPATH)}minsns.inc: $(srcdir)/template/minsns.inc.tmpl
|
||||
|
||||
minsns.inc: $(srcdir)/template/minsns.inc.tmpl
|
||||
{$(VPATH)}opt_sc.inc: $(srcdir)/template/opt_sc.inc.tmpl
|
||||
|
||||
opt_sc.inc: $(srcdir)/template/opt_sc.inc.tmpl
|
||||
{$(VPATH)}optinsn.inc: $(srcdir)/template/optinsn.inc.tmpl
|
||||
|
||||
optinsn.inc: $(srcdir)/template/optinsn.inc.tmpl
|
||||
{$(VPATH)}optunifs.inc: $(srcdir)/template/optunifs.inc.tmpl
|
||||
|
||||
optunifs.inc: $(srcdir)/template/optunifs.inc.tmpl
|
||||
{$(VPATH)}insns.inc: $(srcdir)/template/insns.inc.tmpl
|
||||
|
||||
insns.inc: $(srcdir)/template/insns.inc.tmpl
|
||||
{$(VPATH)}insns_info.inc: $(srcdir)/template/insns_info.inc.tmpl
|
||||
|
||||
insns_info.inc: $(srcdir)/template/insns_info.inc.tmpl
|
||||
{$(VPATH)}vmtc.inc: $(srcdir)/template/vmtc.inc.tmpl
|
||||
|
||||
vmtc.inc: $(srcdir)/template/vmtc.inc.tmpl
|
||||
|
||||
vm.inc: $(srcdir)/template/vm.inc.tmpl
|
||||
{$(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
|
||||
|
||||
|
|
|
@ -810,3 +810,19 @@ dir.$(OBJEXT) win32.$(OBJEXT): {$(srcdir)}win32/dir.h
|
|||
|
||||
ext/extinit.obj: ext/extinit.c $(SETUP)
|
||||
$(CC) $(CFLAGS) $(XCFLAGS) $(CPPFLAGS) $(COUTFLAG)$@ -c ext/extinit.c
|
||||
|
||||
!ifdef insns
|
||||
make_insns_rules:
|
||||
@type <<
|
||||
$(insns): $$(srcdir)/insns.def {$$(VPATH)}vm_opts.h $$(srcdir)/defs/opt_operand.def $$(srcdir)/defs/opt_insn_unif.def
|
||||
@$$(RM) $$(PROGRAM)
|
||||
$$(BASERUBY) -Ks $$(srcdir)/tool/insns2vm.rb $$(INSNS2VMOPT) $(insns)
|
||||
|
||||
<<
|
||||
!else if [exit > insns_rules.mk]
|
||||
!else if [for %I in ($(INSNS)) do @$(MAKE) -l insns=%I make_insns_rules >> insns_rules.mk]
|
||||
!else
|
||||
! include insns_rules.mk
|
||||
! if [del insns_rules.mk > nul]
|
||||
! endif
|
||||
!endif
|
||||
|
|
Loading…
Reference in a new issue