2005-03-03 04:44:33 -05:00
|
|
|
bin: $(PROGRAM) $(WPROGRAM)
|
2007-01-03 23:44:48 -05:00
|
|
|
lib: $(LIBRUBY)
|
|
|
|
dll: $(LIBRUBY_SO)
|
2004-03-25 00:01:15 -05:00
|
|
|
|
2009-03-15 20:29:00 -04:00
|
|
|
.SUFFIXES: .inc .h .c .y .i
|
2007-01-05 06:22:25 -05:00
|
|
|
|
2008-05-08 03:41:23 -04:00
|
|
|
RUBYLIB = -
|
2008-05-11 23:32:12 -04:00
|
|
|
RUBYOPT = -
|
2005-03-30 18:26:00 -05:00
|
|
|
|
2008-08-01 10:27:21 -04:00
|
|
|
SPEC_GIT_BASE = git://github.com/rubyspec
|
|
|
|
MSPEC_GIT_URL = $(SPEC_GIT_BASE)/mspec.git
|
2008-09-19 09:10:45 -04:00
|
|
|
RUBYSPEC_GIT_URL = $(SPEC_GIT_BASE)/rubyspec.git
|
2008-08-01 10:27:21 -04:00
|
|
|
|
2007-01-03 23:44:48 -05:00
|
|
|
STATIC_RUBY = static-ruby
|
|
|
|
|
2004-03-21 18:21:31 -05:00
|
|
|
EXTCONF = extconf.rb
|
|
|
|
RBCONFIG = ./.rbconfig.time
|
2007-01-03 23:44:48 -05:00
|
|
|
LIBRUBY_EXTS = ./.libruby-with-ext.time
|
2009-03-15 23:30:01 -04:00
|
|
|
REVISION_H = ./.revision.time
|
2007-01-03 23:44:48 -05:00
|
|
|
RDOCOUT = $(EXTOUT)/rdoc
|
2008-10-17 06:46:23 -04:00
|
|
|
ID_H_TARGET = -id.h-
|
2004-03-21 18:21:31 -05:00
|
|
|
|
|
|
|
DMYEXT = dmyext.$(OBJEXT)
|
2007-12-25 02:15:18 -05:00
|
|
|
NORMALMAINOBJ = main.$(OBJEXT)
|
2007-12-25 02:04:30 -05:00
|
|
|
MAINOBJ = $(NORMALMAINOBJ)
|
2007-11-10 05:22:38 -05:00
|
|
|
EXTOBJS =
|
2005-08-03 11:27:13 -04:00
|
|
|
DLDOBJS = $(DMYEXT)
|
2010-02-08 02:28:00 -05:00
|
|
|
MINIOBJS = $(ARCHMINIOBJS) dmyencoding.$(OBJEXT) dmyversion.$(OBJEXT) miniprelude.$(OBJEXT)
|
2008-09-26 04:06:59 -04:00
|
|
|
ENC_MK = enc.mk
|
2004-03-21 18:21:31 -05:00
|
|
|
|
2007-11-11 07:44:01 -05:00
|
|
|
COMMONOBJS = array.$(OBJEXT) \
|
2004-03-21 18:21:31 -05:00
|
|
|
bignum.$(OBJEXT) \
|
|
|
|
class.$(OBJEXT) \
|
|
|
|
compar.$(OBJEXT) \
|
2008-03-15 20:23:43 -04:00
|
|
|
complex.$(OBJEXT) \
|
2004-03-21 18:21:31 -05:00
|
|
|
dir.$(OBJEXT) \
|
|
|
|
enum.$(OBJEXT) \
|
2005-07-14 11:33:15 -04:00
|
|
|
enumerator.$(OBJEXT) \
|
2004-03-21 18:21:31 -05:00
|
|
|
error.$(OBJEXT) \
|
|
|
|
eval.$(OBJEXT) \
|
2007-12-20 04:29:46 -05:00
|
|
|
load.$(OBJEXT) \
|
2007-01-17 03:48:52 -05:00
|
|
|
proc.$(OBJEXT) \
|
2004-03-21 18:21:31 -05:00
|
|
|
file.$(OBJEXT) \
|
|
|
|
gc.$(OBJEXT) \
|
|
|
|
hash.$(OBJEXT) \
|
|
|
|
inits.$(OBJEXT) \
|
|
|
|
io.$(OBJEXT) \
|
|
|
|
marshal.$(OBJEXT) \
|
|
|
|
math.$(OBJEXT) \
|
2009-12-09 09:05:59 -05:00
|
|
|
node.$(OBJEXT) \
|
2004-03-21 18:21:31 -05:00
|
|
|
numeric.$(OBJEXT) \
|
|
|
|
object.$(OBJEXT) \
|
|
|
|
pack.$(OBJEXT) \
|
|
|
|
parse.$(OBJEXT) \
|
|
|
|
process.$(OBJEXT) \
|
|
|
|
random.$(OBJEXT) \
|
|
|
|
range.$(OBJEXT) \
|
2008-03-15 20:23:43 -04:00
|
|
|
rational.$(OBJEXT) \
|
2004-03-21 18:21:31 -05:00
|
|
|
re.$(OBJEXT) \
|
|
|
|
regcomp.$(OBJEXT) \
|
|
|
|
regenc.$(OBJEXT) \
|
|
|
|
regerror.$(OBJEXT) \
|
|
|
|
regexec.$(OBJEXT) \
|
|
|
|
regparse.$(OBJEXT) \
|
2007-05-23 02:38:46 -04:00
|
|
|
regsyntax.$(OBJEXT) \
|
2004-03-21 18:21:31 -05:00
|
|
|
ruby.$(OBJEXT) \
|
2008-09-22 21:10:02 -04:00
|
|
|
safe.$(OBJEXT) \
|
2004-03-21 18:21:31 -05:00
|
|
|
signal.$(OBJEXT) \
|
|
|
|
sprintf.$(OBJEXT) \
|
|
|
|
st.$(OBJEXT) \
|
2008-08-20 11:30:28 -04:00
|
|
|
strftime.$(OBJEXT) \
|
2004-03-21 18:21:31 -05:00
|
|
|
string.$(OBJEXT) \
|
|
|
|
struct.$(OBJEXT) \
|
|
|
|
time.$(OBJEXT) \
|
2008-04-07 02:51:33 -04:00
|
|
|
transcode.$(OBJEXT) \
|
2004-03-21 18:21:31 -05:00
|
|
|
util.$(OBJEXT) \
|
|
|
|
variable.$(OBJEXT) \
|
2006-12-31 10:02:22 -05:00
|
|
|
compile.$(OBJEXT) \
|
|
|
|
debug.$(OBJEXT) \
|
|
|
|
iseq.$(OBJEXT) \
|
|
|
|
vm.$(OBJEXT) \
|
|
|
|
vm_dump.$(OBJEXT) \
|
|
|
|
thread.$(OBJEXT) \
|
2007-05-23 18:52:19 -04:00
|
|
|
cont.$(OBJEXT) \
|
2007-12-15 04:56:59 -05:00
|
|
|
$(BUILTIN_ENCOBJS) \
|
2008-08-24 11:58:43 -04:00
|
|
|
$(BUILTIN_TRANSOBJS) \
|
2004-03-21 18:21:31 -05:00
|
|
|
$(MISSING)
|
|
|
|
|
2009-08-09 03:37:22 -04:00
|
|
|
EXPORTOBJS = dln.$(OBJEXT) \
|
2008-01-14 11:19:02 -05:00
|
|
|
encoding.$(OBJEXT) \
|
2010-02-08 02:28:00 -05:00
|
|
|
version.$(OBJEXT) \
|
2007-11-12 02:49:36 -05:00
|
|
|
$(COMMONOBJS)
|
|
|
|
|
2009-08-09 03:37:22 -04:00
|
|
|
OBJS = $(EXPORTOBJS) prelude.$(OBJEXT)
|
|
|
|
|
2007-12-25 02:04:30 -05:00
|
|
|
GOLFOBJS = goruby.$(OBJEXT) golf_prelude.$(OBJEXT)
|
|
|
|
|
2008-04-07 21:30:31 -04:00
|
|
|
PRELUDE_SCRIPTS = $(srcdir)/prelude.rb $(srcdir)/enc/prelude.rb $(srcdir)/gem_prelude.rb
|
2008-09-01 21:36:37 -04:00
|
|
|
PRELUDES = prelude.c miniprelude.c
|
|
|
|
GOLFPRELUDES = golf_prelude.c
|
2008-04-07 21:30:31 -04:00
|
|
|
|
2004-03-21 18:21:31 -05:00
|
|
|
SCRIPT_ARGS = --dest-dir="$(DESTDIR)" \
|
2007-01-03 23:44:48 -05:00
|
|
|
--extout="$(EXTOUT)" \
|
2004-03-21 18:21:31 -05:00
|
|
|
--mflags="$(MFLAGS)" \
|
|
|
|
--make-flags="$(MAKEFLAGS)"
|
2008-12-15 01:02:27 -05:00
|
|
|
EXTMK_ARGS = $(SCRIPT_ARGS) --extension $(EXTS) --extstatic $(EXTSTATIC) \
|
2008-12-15 06:18:14 -05:00
|
|
|
--make-flags="MINIRUBY='$(MINIRUBY)'" --
|
2009-06-30 03:57:11 -04:00
|
|
|
INSTRUBY = $(MINIRUBY) $(srcdir)/tool/rbinstall.rb
|
2008-02-13 10:49:56 -05:00
|
|
|
INSTRUBY_ARGS = $(SCRIPT_ARGS) \
|
|
|
|
--data-mode=$(INSTALL_DATA_MODE) \
|
|
|
|
--prog-mode=$(INSTALL_PROG_MODE) \
|
|
|
|
--installed-list $(INSTALLED_LIST)
|
|
|
|
INSTALL_PROG_MODE = 0755
|
|
|
|
INSTALL_DATA_MODE = 0644
|
2006-10-01 12:25:37 -04:00
|
|
|
|
2007-01-03 23:44:48 -05:00
|
|
|
PRE_LIBRUBY_UPDATE = $(MINIRUBY) -e 'ARGV[1] or File.unlink(ARGV[0]) rescue nil' -- \
|
|
|
|
$(LIBRUBY_EXTS) $(LIBRUBY_SO_UPDATE)
|
2006-12-31 10:02:22 -05:00
|
|
|
|
2007-01-03 23:44:48 -05:00
|
|
|
TESTSDIR = $(srcdir)/test
|
|
|
|
TESTWORKDIR = testwork
|
|
|
|
|
2008-12-12 05:35:31 -05:00
|
|
|
TESTRUN_SCRIPT = $(srcdir)/test.rb
|
|
|
|
|
2007-06-24 02:52:59 -04:00
|
|
|
BOOTSTRAPRUBY = $(BASERUBY)
|
2007-02-24 05:39:30 -05:00
|
|
|
|
2010-02-08 02:23:13 -05:00
|
|
|
COMPILE_PRELUDE = $(MINIRUBY) -I$(srcdir) $(srcdir)/tool/compile_prelude.rb
|
2008-05-29 23:18:45 -04:00
|
|
|
|
2010-01-28 19:50:13 -05:00
|
|
|
all: main docs
|
2009-02-24 05:01:08 -05:00
|
|
|
|
2009-09-15 21:12:58 -04:00
|
|
|
main: encs exts
|
2009-03-03 00:53:18 -05:00
|
|
|
@$(RUNCMD) $(MKMAIN_CMD) $(MAKE)
|
2009-02-24 05:01:08 -05:00
|
|
|
|
|
|
|
exts: $(MKMAIN_CMD)
|
|
|
|
|
2009-03-06 04:37:31 -05:00
|
|
|
$(MKMAIN_CMD): $(MKFILES) incs $(PREP) $(RBCONFIG) $(LIBRUBY)
|
2009-02-24 05:01:08 -05:00
|
|
|
@$(MINIRUBY) $(srcdir)/ext/extmk.rb --make="$(MAKE)" --command-output=$@ $(EXTMK_ARGS)
|
|
|
|
|
2005-03-03 04:44:33 -05:00
|
|
|
prog: $(PROGRAM) $(WPROGRAM)
|
2004-03-21 18:21:31 -05:00
|
|
|
|
2009-05-13 21:52:10 -04:00
|
|
|
loadpath: $(PREP) PHONY
|
2008-05-08 03:41:23 -04:00
|
|
|
$(MINIRUBY) -e 'p $$:'
|
|
|
|
|
2008-03-17 15:04:29 -04:00
|
|
|
$(PREP): $(MKFILES)
|
|
|
|
|
2010-01-05 00:59:23 -05:00
|
|
|
miniruby$(EXEEXT): config.status $(NORMALMAINOBJ) $(MINIOBJS) $(COMMONOBJS) $(DMYEXT) $(ARCHFILE)
|
2007-12-25 02:04:30 -05:00
|
|
|
|
|
|
|
GORUBY = go$(RUBY_INSTALL_NAME)
|
2010-01-05 00:59:23 -05:00
|
|
|
golf: $(LIBRUBY) $(GOLFOBJS) PHONY
|
|
|
|
$(MAKE) $(MFLAGS) MAINOBJ="$(GOLFOBJS)" PROGRAM=$(GORUBY)$(EXEEXT) program
|
2009-08-24 00:23:56 -04:00
|
|
|
capi: Doxyfile PHONY $(PREP)
|
2008-12-22 08:19:08 -05:00
|
|
|
@$(MAKEDIRS) doc/capi
|
2009-06-29 11:34:05 -04:00
|
|
|
@$(DOXYGEN)
|
2007-12-25 02:04:30 -05:00
|
|
|
|
2009-06-29 11:34:05 -04:00
|
|
|
Doxyfile: $(srcdir)/template/Doxyfile.tmpl $(PREP) $(srcdir)/tool/generic_erb.rb $(RBCONFIG)
|
2009-02-02 18:10:28 -05:00
|
|
|
$(MINIRUBY) $(srcdir)/tool/generic_erb.rb -o $@ $(srcdir)/template/Doxyfile.tmpl \
|
|
|
|
--srcdir="$(srcdir)" --miniruby="$(MINIRUBY)"
|
|
|
|
|
2007-12-25 02:04:30 -05:00
|
|
|
program: $(PROGRAM)
|
2004-03-21 18:21:31 -05:00
|
|
|
|
2010-01-05 00:59:23 -05:00
|
|
|
$(PROGRAM): $(LIBRUBY) $(MAINOBJ) $(OBJS) $(EXTOBJS) $(SETUP) $(PREP)
|
2004-03-21 18:21:31 -05:00
|
|
|
|
2010-01-05 00:59:23 -05:00
|
|
|
$(LIBRUBY_A): $(OBJS) $(DMYEXT) $(ARCHFILE)
|
2007-11-10 05:50:58 -05:00
|
|
|
|
2008-03-16 04:31:00 -04:00
|
|
|
$(LIBRUBY_SO): $(OBJS) $(DLDOBJS) $(LIBRUBY_A) $(PREP) $(LIBRUBY_SO_UPDATE) $(BUILTIN_ENCOBJS)
|
2006-10-01 11:00:45 -04:00
|
|
|
|
2007-01-03 23:44:48 -05:00
|
|
|
$(LIBRUBY_EXTS):
|
|
|
|
@exit > $@
|
|
|
|
|
|
|
|
$(STATIC_RUBY)$(EXEEXT): $(MAINOBJ) $(DLDOBJS) $(EXTOBJS) $(LIBRUBY_A)
|
2004-03-21 18:21:31 -05:00
|
|
|
@$(RM) $@
|
2007-01-03 23:44:48 -05:00
|
|
|
$(PURIFY) $(CC) $(MAINOBJ) $(DLDOBJS) $(EXTOBJS) $(LIBRUBY_A) $(MAINLIBS) $(EXTLIBS) $(LIBS) $(OUTFLAG)$@ $(LDFLAGS) $(XLDFLAGS)
|
2004-03-21 18:21:31 -05:00
|
|
|
|
2009-08-09 03:37:22 -04:00
|
|
|
ruby.imp: $(EXPORTOBJS)
|
2009-09-27 12:26:31 -04:00
|
|
|
@$(NM) -Pgp $(EXPORTOBJS) | \
|
2009-10-10 05:19:05 -04:00
|
|
|
awk 'BEGIN{print "#!"}; $$2~/^[BDT]$$/&&$$1!~/^(Init_|.*_threadptr_|\.)/{print $$1}' | \
|
2009-09-27 12:26:31 -04:00
|
|
|
sort -u -o $@
|
2004-03-21 18:21:31 -05:00
|
|
|
|
2009-09-16 03:20:19 -04:00
|
|
|
install: install-$(INSTALLDOC)
|
|
|
|
docs: $(DOCTARGETS)
|
2009-09-14 17:24:39 -04:00
|
|
|
|
2010-01-09 00:21:26 -05:00
|
|
|
install-all: docs pre-install-all do-install-all post-install-all
|
2009-09-16 03:20:19 -04:00
|
|
|
pre-install-all:: pre-install-local pre-install-ext pre-install-doc
|
2009-09-14 17:24:39 -04:00
|
|
|
do-install-all: $(PROGRAM)
|
|
|
|
$(INSTRUBY) --make="$(MAKE)" $(INSTRUBY_ARGS) --install=all --rdoc-output="$(RDOCOUT)"
|
2009-09-16 03:20:19 -04:00
|
|
|
post-install-all:: post-install-local post-install-ext post-install-doc
|
2009-09-14 17:24:39 -04:00
|
|
|
@$(NULLCMD)
|
2004-03-21 18:21:31 -05:00
|
|
|
|
2007-01-03 23:44:48 -05:00
|
|
|
install-nodoc: pre-install-nodoc do-install-nodoc post-install-nodoc
|
|
|
|
pre-install-nodoc:: pre-install-local pre-install-ext
|
2008-06-17 05:41:05 -04:00
|
|
|
do-install-nodoc: $(PREP)
|
2009-01-07 03:13:07 -05:00
|
|
|
$(INSTRUBY) --make="$(MAKE)" $(INSTRUBY_ARGS) --mantype="$(MANTYPE)"
|
2007-01-03 23:44:48 -05:00
|
|
|
post-install-nodoc:: post-install-local post-install-ext
|
2005-03-03 04:44:33 -05:00
|
|
|
|
2007-01-03 23:44:48 -05:00
|
|
|
install-local: pre-install-local do-install-local post-install-local
|
|
|
|
pre-install-local:: pre-install-bin pre-install-lib pre-install-man
|
2008-06-17 05:41:05 -04:00
|
|
|
do-install-local: $(PREP)
|
2009-01-07 03:13:07 -05:00
|
|
|
$(INSTRUBY) --make="$(MAKE)" $(INSTRUBY_ARGS) --install=local --mantype="$(MANTYPE)"
|
2007-01-03 23:44:48 -05:00
|
|
|
post-install-local:: post-install-bin post-install-lib post-install-man
|
2006-12-31 10:02:22 -05:00
|
|
|
|
2007-01-03 23:44:48 -05:00
|
|
|
install-ext: pre-install-ext do-install-ext post-install-ext
|
|
|
|
pre-install-ext:: pre-install-ext-arch pre-install-ext-comm
|
2008-06-17 05:41:05 -04:00
|
|
|
do-install-ext: $(PREP)
|
2009-01-07 03:13:07 -05:00
|
|
|
$(INSTRUBY) --make="$(MAKE)" $(INSTRUBY_ARGS) --install=ext
|
2007-01-03 23:44:48 -05:00
|
|
|
post-install-ext:: post-install-ext-arch post-install-ext-comm
|
|
|
|
|
|
|
|
install-arch: pre-install-arch do-install-arch post-install-arch
|
|
|
|
pre-install-arch:: pre-install-bin pre-install-ext-arch
|
2008-06-17 05:41:05 -04:00
|
|
|
do-install-arch: $(PREP)
|
2009-01-07 03:13:07 -05:00
|
|
|
$(INSTRUBY) --make="$(MAKE)" $(INSTRUBY_ARGS) --install=bin --install=ext-arch
|
2007-01-03 23:44:48 -05:00
|
|
|
post-install-arch:: post-install-bin post-install-ext-arch
|
|
|
|
|
|
|
|
install-comm: pre-install-comm do-install-comm post-install-comm
|
|
|
|
pre-install-comm:: pre-install-lib pre-install-ext-comm pre-install-man
|
2008-06-17 05:41:05 -04:00
|
|
|
do-install-comm: $(PREP)
|
2009-01-07 03:13:07 -05:00
|
|
|
$(INSTRUBY) --make="$(MAKE)" $(INSTRUBY_ARGS) --install=lib --install=ext-comm --install=man
|
2007-01-03 23:44:48 -05:00
|
|
|
post-install-comm:: post-install-lib post-install-ext-comm post-install-man
|
|
|
|
|
|
|
|
install-bin: pre-install-bin do-install-bin post-install-bin
|
|
|
|
pre-install-bin:: install-prereq
|
2008-06-17 05:41:05 -04:00
|
|
|
do-install-bin: $(PREP)
|
2009-01-07 03:13:07 -05:00
|
|
|
$(INSTRUBY) --make="$(MAKE)" $(INSTRUBY_ARGS) --install=bin
|
2007-01-03 23:44:48 -05:00
|
|
|
post-install-bin::
|
|
|
|
@$(NULLCMD)
|
|
|
|
|
|
|
|
install-lib: pre-install-lib do-install-lib post-install-lib
|
|
|
|
pre-install-lib:: install-prereq
|
2008-06-17 05:41:05 -04:00
|
|
|
do-install-lib: $(PREP)
|
2009-01-07 03:13:07 -05:00
|
|
|
$(INSTRUBY) --make="$(MAKE)" $(INSTRUBY_ARGS) --install=lib
|
2007-01-03 23:44:48 -05:00
|
|
|
post-install-lib::
|
|
|
|
@$(NULLCMD)
|
|
|
|
|
|
|
|
install-ext-comm: pre-install-ext-comm do-install-ext-comm post-install-ext-comm
|
|
|
|
pre-install-ext-comm:: install-prereq
|
2008-06-17 05:41:05 -04:00
|
|
|
do-install-ext-comm: $(PREP)
|
2009-01-07 03:13:07 -05:00
|
|
|
$(INSTRUBY) --make="$(MAKE)" $(INSTRUBY_ARGS) --install=ext-comm
|
2007-01-03 23:44:48 -05:00
|
|
|
post-install-ext-comm::
|
|
|
|
@$(NULLCMD)
|
|
|
|
|
|
|
|
install-ext-arch: pre-install-ext-arch do-install-ext-arch post-install-ext-arch
|
|
|
|
pre-install-ext-arch:: install-prereq
|
2008-06-17 05:41:05 -04:00
|
|
|
do-install-ext-arch: $(PREP)
|
2009-01-07 03:13:07 -05:00
|
|
|
$(INSTRUBY) --make="$(MAKE)" $(INSTRUBY_ARGS) --install=ext-arch
|
2007-01-03 23:44:48 -05:00
|
|
|
post-install-ext-arch::
|
|
|
|
@$(NULLCMD)
|
|
|
|
|
|
|
|
install-man: pre-install-man do-install-man post-install-man
|
|
|
|
pre-install-man:: install-prereq
|
2008-06-17 05:41:05 -04:00
|
|
|
do-install-man: $(PREP)
|
2009-01-07 03:13:07 -05:00
|
|
|
$(INSTRUBY) --make="$(MAKE)" $(INSTRUBY_ARGS) --install=man --mantype="$(MANTYPE)"
|
2007-01-03 23:44:48 -05:00
|
|
|
post-install-man::
|
|
|
|
@$(NULLCMD)
|
|
|
|
|
2008-12-22 08:19:08 -05:00
|
|
|
install-capi: capi pre-install-capi do-install-capi post-install-capi
|
|
|
|
pre-install-capi:: install-prereq
|
|
|
|
do-install-capi: $(PREP)
|
2009-01-07 03:13:07 -05:00
|
|
|
$(INSTRUBY) --make="$(MAKE)" $(INSTRUBY_ARGS) --install=capi
|
2008-12-22 08:19:08 -05:00
|
|
|
post-install-capi::
|
|
|
|
@$(NULLCMD)
|
|
|
|
|
2007-01-03 23:44:48 -05:00
|
|
|
what-where: no-install
|
2009-09-16 03:20:19 -04:00
|
|
|
no-install: no-install-$(INSTALLDOC)
|
2007-01-03 23:44:48 -05:00
|
|
|
what-where-all: no-install-all
|
2009-09-16 03:20:19 -04:00
|
|
|
no-install-all: pre-no-install-all dont-install-all post-no-install-all
|
|
|
|
pre-no-install-all:: pre-no-install-local pre-no-install-ext pre-no-install-doc
|
|
|
|
dont-install-all: $(PROGRAM)
|
|
|
|
$(INSTRUBY) -n --make="$(MAKE)" $(INSTRUBY_ARGS) --install=all --rdoc-output="$(RDOCOUT)"
|
|
|
|
post-no-install-all:: post-no-install-local post-no-install-ext post-no-install-doc
|
|
|
|
@$(NULLCMD)
|
2007-01-03 23:44:48 -05:00
|
|
|
|
|
|
|
what-where-nodoc: no-install-nodoc
|
|
|
|
no-install-nodoc: pre-no-install-nodoc dont-install-nodoc post-no-install-nodoc
|
|
|
|
pre-no-install-nodoc:: pre-no-install-local pre-no-install-ext
|
2008-06-17 05:41:05 -04:00
|
|
|
dont-install-nodoc: $(PREP)
|
2009-01-07 03:13:07 -05:00
|
|
|
$(INSTRUBY) -n --make="$(MAKE)" $(INSTRUBY_ARGS) --mantype="$(MANTYPE)"
|
2007-01-03 23:44:48 -05:00
|
|
|
post-no-install-nodoc:: post-no-install-local post-no-install-ext
|
2006-09-16 03:06:57 -04:00
|
|
|
|
2006-12-31 10:02:22 -05:00
|
|
|
what-where-local: no-install-local
|
2007-01-03 23:44:48 -05:00
|
|
|
no-install-local: pre-no-install-local dont-install-local post-no-install-local
|
|
|
|
pre-no-install-local:: pre-no-install-bin pre-no-install-lib pre-no-install-man
|
2008-06-17 05:41:05 -04:00
|
|
|
dont-install-local: $(PREP)
|
2009-01-07 03:13:07 -05:00
|
|
|
$(INSTRUBY) -n --make="$(MAKE)" $(INSTRUBY_ARGS) --install=local --mantype="$(MANTYPE)"
|
2007-01-03 23:44:48 -05:00
|
|
|
post-no-install-local:: post-no-install-bin post-no-install-lib post-no-install-man
|
2006-09-17 04:43:19 -04:00
|
|
|
|
2007-01-03 23:44:48 -05:00
|
|
|
what-where-ext: no-install-ext
|
|
|
|
no-install-ext: pre-no-install-ext dont-install-ext post-no-install-ext
|
|
|
|
pre-no-install-ext:: pre-no-install-ext-arch pre-no-install-ext-comm
|
2008-06-17 05:41:05 -04:00
|
|
|
dont-install-ext: $(PREP)
|
2009-01-07 03:13:07 -05:00
|
|
|
$(INSTRUBY) -n --make="$(MAKE)" $(INSTRUBY_ARGS) --install=ext
|
2007-01-03 23:44:48 -05:00
|
|
|
post-no-install-ext:: post-no-install-ext-arch post-no-install-ext-comm
|
|
|
|
|
|
|
|
what-where-arch: no-install-arch
|
|
|
|
no-install-arch: pre-no-install-arch dont-install-arch post-no-install-arch
|
|
|
|
pre-no-install-arch:: pre-no-install-bin pre-no-install-ext-arch
|
2008-06-17 05:41:05 -04:00
|
|
|
dont-install-arch: $(PREP)
|
2009-01-07 03:13:07 -05:00
|
|
|
$(INSTRUBY) -n --make="$(MAKE)" $(INSTRUBY_ARGS) --install=bin --install=ext-arch
|
2007-01-03 23:44:48 -05:00
|
|
|
post-no-install-arch:: post-no-install-lib post-no-install-man post-no-install-ext-arch
|
|
|
|
|
|
|
|
what-where-comm: no-install-comm
|
|
|
|
no-install-comm: pre-no-install-comm dont-install-comm post-no-install-comm
|
|
|
|
pre-no-install-comm:: pre-no-install-lib pre-no-install-ext-comm pre-no-install-man
|
2008-06-17 05:41:05 -04:00
|
|
|
dont-install-comm: $(PREP)
|
2009-01-07 03:13:07 -05:00
|
|
|
$(INSTRUBY) -n --make="$(MAKE)" $(INSTRUBY_ARGS) --install=lib --install=ext-comm --install=man
|
2007-01-03 23:44:48 -05:00
|
|
|
post-no-install-comm:: post-no-install-lib post-no-install-ext-comm post-no-install-man
|
|
|
|
|
|
|
|
what-where-bin: no-install-bin
|
|
|
|
no-install-bin: pre-no-install-bin dont-install-bin post-no-install-bin
|
|
|
|
pre-no-install-bin:: install-prereq
|
2008-06-17 05:41:05 -04:00
|
|
|
dont-install-bin: $(PREP)
|
2009-01-07 03:13:07 -05:00
|
|
|
$(INSTRUBY) -n --make="$(MAKE)" $(INSTRUBY_ARGS) --install=bin
|
2007-01-03 23:44:48 -05:00
|
|
|
post-no-install-bin::
|
|
|
|
@$(NULLCMD)
|
|
|
|
|
|
|
|
what-where-lib: no-install-lib
|
|
|
|
no-install-lib: pre-no-install-lib dont-install-lib post-no-install-lib
|
|
|
|
pre-no-install-lib:: install-prereq
|
2008-06-17 05:41:05 -04:00
|
|
|
dont-install-lib: $(PREP)
|
2009-01-07 03:13:07 -05:00
|
|
|
$(INSTRUBY) -n --make="$(MAKE)" $(INSTRUBY_ARGS) --install=lib
|
2007-01-03 23:44:48 -05:00
|
|
|
post-no-install-lib::
|
|
|
|
@$(NULLCMD)
|
|
|
|
|
|
|
|
what-where-ext-comm: no-install-ext-comm
|
|
|
|
no-install-ext-comm: pre-no-install-ext-comm dont-install-ext-comm post-no-install-ext-comm
|
|
|
|
pre-no-install-ext-comm:: install-prereq
|
2008-06-17 05:41:05 -04:00
|
|
|
dont-install-ext-comm: $(PREP)
|
2009-01-07 03:13:07 -05:00
|
|
|
$(INSTRUBY) -n --make="$(MAKE)" $(INSTRUBY_ARGS) --install=ext-comm
|
2007-01-03 23:44:48 -05:00
|
|
|
post-no-install-ext-comm::
|
|
|
|
@$(NULLCMD)
|
|
|
|
|
|
|
|
what-where-ext-arch: no-install-ext-arch
|
|
|
|
no-install-ext-arch: pre-no-install-ext-arch dont-install-ext-arch post-no-install-ext-arch
|
|
|
|
pre-no-install-ext-arch:: install-prereq
|
2008-06-17 05:41:05 -04:00
|
|
|
dont-install-ext-arch: $(PREP)
|
2009-01-07 03:13:07 -05:00
|
|
|
$(INSTRUBY) -n --make="$(MAKE)" $(INSTRUBY_ARGS) --install=ext-arch
|
2007-01-03 23:44:48 -05:00
|
|
|
post-no-install-ext-arch::
|
|
|
|
@$(NULLCMD)
|
|
|
|
|
|
|
|
what-where-man: no-install-man
|
|
|
|
no-install-man: pre-no-install-man dont-install-man post-no-install-man
|
|
|
|
pre-no-install-man:: install-prereq
|
2008-06-17 05:41:05 -04:00
|
|
|
dont-install-man: $(PREP)
|
2009-01-07 03:13:07 -05:00
|
|
|
$(INSTRUBY) -n --make="$(MAKE)" $(INSTRUBY_ARGS) --install=man --mantype="$(MANTYPE)"
|
2007-01-03 23:44:48 -05:00
|
|
|
post-no-install-man::
|
|
|
|
@$(NULLCMD)
|
|
|
|
|
|
|
|
install-doc: rdoc pre-install-doc do-install-doc post-install-doc
|
|
|
|
pre-install-doc:: install-prereq
|
2006-12-31 10:02:22 -05:00
|
|
|
do-install-doc: $(PROGRAM)
|
2009-01-07 03:13:07 -05:00
|
|
|
$(INSTRUBY) --make="$(MAKE)" $(INSTRUBY_ARGS) --install=rdoc --rdoc-output="$(RDOCOUT)"
|
2007-01-03 23:44:48 -05:00
|
|
|
post-install-doc::
|
|
|
|
@$(NULLCMD)
|
2006-12-31 10:02:22 -05:00
|
|
|
|
2010-01-22 00:26:38 -05:00
|
|
|
rdoc: main PHONY
|
2007-01-03 23:44:48 -05:00
|
|
|
@echo Generating RDoc documentation
|
2009-10-22 18:32:39 -04:00
|
|
|
$(XRUBY) "$(srcdir)/bin/rdoc" --all --ri --op "$(RDOCOUT)" "$(srcdir)"
|
2009-09-13 22:23:47 -04:00
|
|
|
nodoc: PHONY
|
2006-09-17 04:43:19 -04:00
|
|
|
|
2007-01-03 23:44:48 -05:00
|
|
|
what-where-doc: no-install-doc
|
|
|
|
no-install-doc: pre-no-install-doc dont-install-doc post-no-install-doc
|
|
|
|
pre-no-install-doc:: install-prereq
|
2008-06-17 05:41:05 -04:00
|
|
|
dont-install-doc:: $(PREP)
|
2009-01-07 03:13:07 -05:00
|
|
|
$(INSTRUBY) -n --make="$(MAKE)" $(INSTRUBY_ARGS) --install=rdoc --rdoc-output="$(RDOCOUT)"
|
2007-01-03 23:44:48 -05:00
|
|
|
post-no-install-doc::
|
|
|
|
@$(NULLCMD)
|
2006-09-17 04:43:19 -04:00
|
|
|
|
2007-03-12 20:24:58 -04:00
|
|
|
CLEAR_INSTALLED_LIST = clear-installed-list
|
|
|
|
|
2009-05-13 21:52:10 -04:00
|
|
|
install-prereq: $(CLEAR_INSTALLED_LIST) PHONY
|
2007-03-12 20:24:58 -04:00
|
|
|
|
2009-05-13 21:52:10 -04:00
|
|
|
clear-installed-list: PHONY
|
2009-09-16 03:20:19 -04:00
|
|
|
@set MAKE="$(MAKE)" > $(INSTALLED_LIST)
|
2005-03-03 04:44:33 -05:00
|
|
|
|
2009-01-24 21:23:47 -05:00
|
|
|
clean: clean-ext clean-local clean-enc clean-golf clean-rdoc clean-extout
|
2009-05-13 21:52:10 -04:00
|
|
|
clean-local:: PHONY
|
2008-03-10 23:39:55 -04:00
|
|
|
@$(RM) $(OBJS) $(MINIOBJS) $(MAINOBJ) $(LIBRUBY_A) $(LIBRUBY_SO) $(LIBRUBY) $(LIBRUBY_ALIASES)
|
2008-06-17 07:32:40 -04:00
|
|
|
@$(RM) $(PROGRAM) $(WPROGRAM) miniruby$(EXEEXT) dmyext.$(OBJEXT) $(ARCHFILE) .*.time
|
2008-09-01 12:51:06 -04:00
|
|
|
@$(RM) *.inc y.tab.c y.output encdb.h transdb.h
|
2009-05-13 21:52:10 -04:00
|
|
|
clean-ext:: PHONY
|
|
|
|
clean-golf: PHONY
|
2008-09-01 12:51:06 -04:00
|
|
|
@$(RM) $(GORUBY)$(EXEEXT) $(GOLFOBJS)
|
2009-05-13 21:52:10 -04:00
|
|
|
clean-rdoc: PHONY
|
|
|
|
clean-extout: PHONY
|
2009-01-24 21:23:47 -05:00
|
|
|
@-$(RMDIRS) $(EXTOUT)/$(arch)
|
2004-03-21 18:21:31 -05:00
|
|
|
|
2009-01-24 21:23:47 -05:00
|
|
|
distclean: distclean-ext distclean-local distclean-enc distclean-golf distclean-extout
|
2004-03-21 18:21:31 -05:00
|
|
|
distclean-local:: clean-local
|
2009-01-24 21:06:29 -05:00
|
|
|
@$(RM) $(MKFILES) rbconfig.rb yasmdata.rb encdb.h
|
2007-12-29 21:00:59 -05:00
|
|
|
@$(RM) config.cache config.log config.status config.status.lineno $(PRELUDES)
|
2008-02-24 09:29:51 -05:00
|
|
|
@$(RM) *~ *.bak *.stackdump core *.core gmon.out $(PREP)
|
2009-05-13 21:52:10 -04:00
|
|
|
distclean-ext:: PHONY
|
2008-09-01 12:51:06 -04:00
|
|
|
distclean-golf: clean-golf
|
2008-09-01 21:36:37 -04:00
|
|
|
@$(RM) $(GOLFPRELUDES)
|
2009-05-13 21:52:10 -04:00
|
|
|
distclean-rdoc: PHONY
|
2009-01-24 21:23:47 -05:00
|
|
|
distclean-extout: clean-extout
|
|
|
|
@-$(RMDIRS) $(EXTOUT)
|
2004-03-21 18:21:31 -05:00
|
|
|
|
2009-01-24 21:23:47 -05:00
|
|
|
realclean:: realclean-ext realclean-local realclean-enc realclean-golf realclean-extout
|
2007-06-15 09:31:54 -04:00
|
|
|
realclean-local:: distclean-local
|
2008-09-01 12:33:26 -04:00
|
|
|
@$(RM) parse.c parse.h lex.c newline.c revision.h
|
2008-08-07 03:28:56 -04:00
|
|
|
realclean-ext::
|
2008-09-01 12:51:06 -04:00
|
|
|
realclean-golf: distclean-golf
|
2009-01-24 21:23:47 -05:00
|
|
|
realclean-extout: distclean-extout
|
2004-03-21 18:21:31 -05:00
|
|
|
|
2009-01-26 21:03:54 -05:00
|
|
|
clean-enc distclean-enc realclean-enc:
|
|
|
|
@echo $(@:-enc=ing) encodings
|
|
|
|
@-$(MAKE) -f $(ENC_MK) $(MFLAGS) $(@:-enc=)
|
|
|
|
|
2005-03-30 18:26:00 -05:00
|
|
|
check: test test-all
|
2009-09-13 21:56:41 -04:00
|
|
|
check-ruby: test test-ruby
|
2005-03-30 18:26:00 -05:00
|
|
|
|
2009-07-19 22:13:00 -04:00
|
|
|
btest: miniruby$(EXEEXT) $(TEST_RUNNABLE)-btest
|
|
|
|
no-btest: PHONY
|
|
|
|
yes-btest: PHONY
|
2007-06-24 02:52:59 -04:00
|
|
|
$(BOOTSTRAPRUBY) "$(srcdir)/bootstraptest/runner.rb" --ruby="$(MINIRUBY)" $(OPTS)
|
2007-02-24 05:39:30 -05:00
|
|
|
|
2009-07-19 22:13:00 -04:00
|
|
|
btest-ruby: miniruby$(EXEEXT) $(RBCONFIG) $(PROGRAM) $(TEST_RUNNABLE)-btest-ruby
|
|
|
|
no-btest-ruby: PHONY
|
|
|
|
yes-btest-ruby: PHONY
|
2009-01-15 10:27:06 -05:00
|
|
|
@$(RUNRUBY) "$(srcdir)/bootstraptest/runner.rb" --ruby="$(PROGRAM) -I$(srcdir)/lib" -q $(OPTS)
|
2007-08-07 22:02:45 -04:00
|
|
|
|
2009-07-19 22:13:00 -04:00
|
|
|
test-sample: miniruby$(EXEEXT) $(RBCONFIG) $(PROGRAM) $(TEST_RUNNABLE)-test-sample
|
|
|
|
no-test-sample: PHONY
|
|
|
|
yes-test-sample: PHONY
|
2009-05-22 07:48:42 -04:00
|
|
|
@$(RUNRUBY) $(srcdir)/tool/rubytest.rb
|
2004-03-21 18:21:31 -05:00
|
|
|
|
2009-07-19 22:13:00 -04:00
|
|
|
test-knownbug: miniruby$(EXEEXT) $(PROGRAM) $(RBCONFIG) $(TEST_RUNNABLE)-test-knownbug
|
|
|
|
no-test-knownbug: PHONY
|
|
|
|
yes-test-knownbug: PHONY
|
2009-08-12 03:00:37 -04:00
|
|
|
$(RUNRUBY) "$(srcdir)/bootstraptest/runner.rb" --ruby="$(PROGRAM)" $(OPTS) $(srcdir)/KNOWNBUGS.rb
|
2008-06-09 08:10:43 -04:00
|
|
|
|
2008-09-25 08:04:34 -04:00
|
|
|
test: test-sample btest-ruby test-knownbug
|
2007-08-07 22:02:45 -04:00
|
|
|
|
2009-07-19 22:13:00 -04:00
|
|
|
test-all: $(TEST_RUNNABLE)-test-all
|
|
|
|
no-test-all: PHONY
|
|
|
|
yes-test-all: PHONY
|
2008-09-24 04:44:54 -04:00
|
|
|
$(RUNRUBY) "$(srcdir)/test/runner.rb" $(TESTS)
|
2004-03-21 18:21:31 -05:00
|
|
|
|
2009-09-13 21:56:41 -04:00
|
|
|
test-ruby: $(TEST_RUNNABLE)-test-ruby
|
|
|
|
no-test-ruby: PHONY
|
|
|
|
yes-test-ruby: PHONY
|
|
|
|
$(RUNRUBY) "$(srcdir)/test/runner.rb" ruby
|
|
|
|
|
2008-06-17 05:41:05 -04:00
|
|
|
extconf: $(PREP)
|
2008-08-09 22:03:01 -04:00
|
|
|
$(MAKEDIRS) "$(EXTCONFDIR)"
|
2004-03-21 18:21:31 -05:00
|
|
|
$(RUNRUBY) -C "$(EXTCONFDIR)" $(EXTCONF) $(EXTCONFARGS)
|
|
|
|
|
2009-05-22 07:48:42 -04:00
|
|
|
$(RBCONFIG): $(srcdir)/tool/mkconfig.rb config.status $(PREP)
|
|
|
|
@$(MINIRUBY) $(srcdir)/tool/mkconfig.rb -timestamp=$@ \
|
2004-03-21 18:21:31 -05:00
|
|
|
-install_name=$(RUBY_INSTALL_NAME) \
|
|
|
|
-so_name=$(RUBY_SO_NAME) rbconfig.rb
|
|
|
|
|
2008-10-24 01:13:18 -04:00
|
|
|
encs: enc trans
|
2008-10-16 01:34:25 -04:00
|
|
|
encs enc trans: $(ENC_MK) $(LIBRUBY) $(PREP)
|
|
|
|
$(MAKE) -f $(ENC_MK) RUBY="$(MINIRUBY)" MINIRUBY="$(MINIRUBY)" $(MFLAGS) $@
|
|
|
|
|
|
|
|
enc: {$(VPATH)}encdb.h
|
|
|
|
trans: {$(VPATH)}transdb.h
|
2007-12-17 03:47:28 -05:00
|
|
|
|
2008-09-26 04:06:59 -04:00
|
|
|
$(ENC_MK): $(srcdir)/enc/make_encmake.rb $(srcdir)/enc/Makefile.in $(srcdir)/enc/depend \
|
2008-08-08 03:52:57 -04:00
|
|
|
$(srcdir)/lib/mkmf.rb $(RBCONFIG)
|
2008-08-24 11:58:43 -04:00
|
|
|
$(MINIRUBY) $(srcdir)/enc/make_encmake.rb --builtin-encs="$(BUILTIN_ENCOBJS)" --builtin-transes="$(BUILTIN_TRANSOBJS)" $@ $(ENCS)
|
2007-12-17 03:47:28 -05:00
|
|
|
|
2004-03-21 18:21:31 -05:00
|
|
|
.PRECIOUS: $(MKFILES)
|
|
|
|
|
2009-05-13 21:52:10 -04:00
|
|
|
.PHONY: PHONY all fake prereq incs srcs preludes help
|
2007-02-27 10:12:18 -05:00
|
|
|
.PHONY: test install install-nodoc install-doc dist
|
2009-05-13 21:52:10 -04:00
|
|
|
.PHONY: loadpath golf capi rdoc install-prereq clear-installed-list
|
|
|
|
.PHONY: clean clean-ext clean-local clean-enc clean-golf clean-rdoc clean-extout
|
|
|
|
.PHONY: distclean distclean-ext distclean-local distclean-enc distclean-golf distclean-extout
|
|
|
|
.PHONY: realclean realclean-ext realclean-local realclean-enc realclean-golf realclean-extout
|
|
|
|
.PHONY: check test test-all btest btest-ruby test-sample test-knownbug
|
|
|
|
.PHONY: run runruby parse benchmark benchmark-each tbench gdb gdb-ruby
|
|
|
|
.PHONY: update-mspec update-rubyspec test-rubyspec
|
2004-03-21 18:21:31 -05:00
|
|
|
|
|
|
|
PHONY:
|
|
|
|
|
2007-12-25 07:26:11 -05:00
|
|
|
{$(VPATH)}parse.c: {$(VPATH)}parse.y $(srcdir)/tool/ytab.sed
|
2008-08-13 22:45:11 -04:00
|
|
|
parse.h {$(VPATH)}parse.h: {$(VPATH)}parse.c
|
2004-03-21 18:21:31 -05:00
|
|
|
|
2007-11-13 12:50:33 -05:00
|
|
|
{$(srcdir)}.y.c:
|
2009-03-14 20:17:21 -04:00
|
|
|
$(YACC) -d $(YFLAGS) -o y.tab.c $(SRC_FILE)
|
2008-08-13 10:42:55 -04:00
|
|
|
sed -f $(srcdir)/tool/ytab.sed -e "/^#/s!y\.tab\.c!$@!" y.tab.c > $@.new
|
|
|
|
@$(MV) $@.new $@
|
2008-10-01 06:21:02 -04:00
|
|
|
sed -e "/^#line.*y\.tab\.h/d;/^#line.*parse\.y/d" y.tab.h > $(@:.c=.h).new
|
2008-08-15 04:39:14 -04:00
|
|
|
@$(IFCHANGE) $(@:.c=.h) $(@:.c=.h).new
|
2008-08-13 01:00:26 -04:00
|
|
|
@$(RM) y.tab.c y.tab.h
|
2007-11-13 07:41:41 -05:00
|
|
|
|
2004-03-21 18:21:31 -05:00
|
|
|
acosh.$(OBJEXT): {$(VPATH)}acosh.c
|
2008-01-02 22:24:21 -05:00
|
|
|
alloca.$(OBJEXT): {$(VPATH)}alloca.c {$(VPATH)}config.h
|
2004-03-21 18:21:31 -05:00
|
|
|
crypt.$(OBJEXT): {$(VPATH)}crypt.c
|
|
|
|
dup2.$(OBJEXT): {$(VPATH)}dup2.c
|
|
|
|
erf.$(OBJEXT): {$(VPATH)}erf.c
|
|
|
|
finite.$(OBJEXT): {$(VPATH)}finite.c
|
|
|
|
flock.$(OBJEXT): {$(VPATH)}flock.c
|
|
|
|
memcmp.$(OBJEXT): {$(VPATH)}memcmp.c
|
|
|
|
memmove.$(OBJEXT): {$(VPATH)}memmove.c
|
|
|
|
mkdir.$(OBJEXT): {$(VPATH)}mkdir.c
|
|
|
|
strchr.$(OBJEXT): {$(VPATH)}strchr.c
|
|
|
|
strdup.$(OBJEXT): {$(VPATH)}strdup.c
|
|
|
|
strerror.$(OBJEXT): {$(VPATH)}strerror.c
|
|
|
|
strstr.$(OBJEXT): {$(VPATH)}strstr.c
|
|
|
|
strtod.$(OBJEXT): {$(VPATH)}strtod.c
|
|
|
|
strtol.$(OBJEXT): {$(VPATH)}strtol.c
|
|
|
|
nt.$(OBJEXT): {$(VPATH)}nt.c
|
|
|
|
os2.$(OBJEXT): {$(VPATH)}os2.c
|
|
|
|
dl_os2.$(OBJEXT): {$(VPATH)}dl_os2.c
|
2007-01-03 23:44:48 -05:00
|
|
|
ia64.$(OBJEXT): {$(VPATH)}ia64.s
|
|
|
|
$(CC) $(CFLAGS) -c $<
|
2004-03-21 18:21:31 -05:00
|
|
|
|
2008-12-09 11:29:08 -05:00
|
|
|
win32.$(OBJEXT): {$(VPATH)}win32.c $(RUBY_H_INCLUDES)
|
2004-03-21 18:21:31 -05:00
|
|
|
|
|
|
|
###
|
|
|
|
|
* common.mk: clean up
- remove blockinlining.$(OBJEXT) to built
- make ENCODING_H_INCLDUES variable (include/ruby/encoding.h)
- make VM_CORE_H_INCLUDES variable (vm_core.h)
- simplify rules.
- make depends rule to output depend status using gcc -MM.
* include/ruby/mvm.h, include/ruby/vm.h: rename mvm.h to vm.h.
* include/ruby.h: ditto.
* load.c: add inclusion explicitly.
* enumerator.c, object.c, parse.y, thread.c, vm_dump.c:
remove useless inclusion.
* eval_intern.h: cleanup inclusion.
* vm_core.h: rb_thread_t should be defined in this file.
* vm_evalbody.c, vm_exec.c: rename vm_evalbody.c to vm_exec.c.
* vm.h, vm_exec.h: rename vm.h to vm_exec.h.
* insnhelper.h, vm_insnhelper.h: rename insnhelper.h to vm_insnhelper.h.
* vm.c, vm_insnhelper.c, vm_insnhelper.h:
- rename vm_eval() to vm_exec_core().
- rename vm_eval_body() to vm_exec().
- cleanup include order.
* vm_method.c: fix comment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19466 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-22 20:20:28 -04:00
|
|
|
RUBY_H_INCLUDES = {$(VPATH)}ruby.h {$(VPATH)}config.h {$(VPATH)}defines.h \
|
2010-01-05 00:59:23 -05:00
|
|
|
{$(VPATH)}intern.h {$(VPATH)}missing.h {$(VPATH)}st.h
|
2008-09-23 03:02:45 -04:00
|
|
|
ENCODING_H_INCLUDES= {$(VPATH)}encoding.h {$(VPATH)}oniguruma.h
|
2008-10-17 06:46:23 -04:00
|
|
|
ID_H_INCLUDES = {$(VPATH)}id.h
|
* common.mk: clean up
- remove blockinlining.$(OBJEXT) to built
- make ENCODING_H_INCLDUES variable (include/ruby/encoding.h)
- make VM_CORE_H_INCLUDES variable (vm_core.h)
- simplify rules.
- make depends rule to output depend status using gcc -MM.
* include/ruby/mvm.h, include/ruby/vm.h: rename mvm.h to vm.h.
* include/ruby.h: ditto.
* load.c: add inclusion explicitly.
* enumerator.c, object.c, parse.y, thread.c, vm_dump.c:
remove useless inclusion.
* eval_intern.h: cleanup inclusion.
* vm_core.h: rb_thread_t should be defined in this file.
* vm_evalbody.c, vm_exec.c: rename vm_evalbody.c to vm_exec.c.
* vm.h, vm_exec.h: rename vm.h to vm_exec.h.
* insnhelper.h, vm_insnhelper.h: rename insnhelper.h to vm_insnhelper.h.
* vm.c, vm_insnhelper.c, vm_insnhelper.h:
- rename vm_eval() to vm_exec_core().
- rename vm_eval_body() to vm_exec().
- cleanup include order.
* vm_method.c: fix comment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19466 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-22 20:20:28 -04:00
|
|
|
VM_CORE_H_INCLUDES = {$(VPATH)}vm_core.h {$(VPATH)}vm_opts.h \
|
2008-10-21 16:59:23 -04:00
|
|
|
{$(VPATH)}thread_$(THREAD_MODEL).h \
|
2009-07-15 19:56:25 -04:00
|
|
|
{$(VPATH)}node.h {$(VPATH)}method.h $(ID_H_INCLUDES)
|
* common.mk: clean up
- remove blockinlining.$(OBJEXT) to built
- make ENCODING_H_INCLDUES variable (include/ruby/encoding.h)
- make VM_CORE_H_INCLUDES variable (vm_core.h)
- simplify rules.
- make depends rule to output depend status using gcc -MM.
* include/ruby/mvm.h, include/ruby/vm.h: rename mvm.h to vm.h.
* include/ruby.h: ditto.
* load.c: add inclusion explicitly.
* enumerator.c, object.c, parse.y, thread.c, vm_dump.c:
remove useless inclusion.
* eval_intern.h: cleanup inclusion.
* vm_core.h: rb_thread_t should be defined in this file.
* vm_evalbody.c, vm_exec.c: rename vm_evalbody.c to vm_exec.c.
* vm.h, vm_exec.h: rename vm.h to vm_exec.h.
* insnhelper.h, vm_insnhelper.h: rename insnhelper.h to vm_insnhelper.h.
* vm.c, vm_insnhelper.c, vm_insnhelper.h:
- rename vm_eval() to vm_exec_core().
- rename vm_eval_body() to vm_exec().
- cleanup include order.
* vm_method.c: fix comment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19466 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-22 20:20:28 -04:00
|
|
|
|
|
|
|
array.$(OBJEXT): {$(VPATH)}array.c $(RUBY_H_INCLUDES) {$(VPATH)}util.h
|
2009-05-26 00:58:15 -04:00
|
|
|
bignum.$(OBJEXT): {$(VPATH)}bignum.c $(RUBY_H_INCLUDES) {$(VPATH)}util.h
|
2009-08-30 01:13:42 -04:00
|
|
|
class.$(OBJEXT): {$(VPATH)}class.c $(RUBY_H_INCLUDES) \
|
|
|
|
$(VM_CORE_H_INCLUDES) {$(VPATH)}debug.h
|
* common.mk: clean up
- remove blockinlining.$(OBJEXT) to built
- make ENCODING_H_INCLDUES variable (include/ruby/encoding.h)
- make VM_CORE_H_INCLUDES variable (vm_core.h)
- simplify rules.
- make depends rule to output depend status using gcc -MM.
* include/ruby/mvm.h, include/ruby/vm.h: rename mvm.h to vm.h.
* include/ruby.h: ditto.
* load.c: add inclusion explicitly.
* enumerator.c, object.c, parse.y, thread.c, vm_dump.c:
remove useless inclusion.
* eval_intern.h: cleanup inclusion.
* vm_core.h: rb_thread_t should be defined in this file.
* vm_evalbody.c, vm_exec.c: rename vm_evalbody.c to vm_exec.c.
* vm.h, vm_exec.h: rename vm.h to vm_exec.h.
* insnhelper.h, vm_insnhelper.h: rename insnhelper.h to vm_insnhelper.h.
* vm.c, vm_insnhelper.c, vm_insnhelper.h:
- rename vm_eval() to vm_exec_core().
- rename vm_eval_body() to vm_exec().
- cleanup include order.
* vm_method.c: fix comment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19466 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-22 20:20:28 -04:00
|
|
|
compar.$(OBJEXT): {$(VPATH)}compar.c $(RUBY_H_INCLUDES)
|
2008-12-16 01:35:07 -05:00
|
|
|
complex.$(OBJEXT): {$(VPATH)}complex.c $(RUBY_H_INCLUDES)
|
* common.mk: clean up
- remove blockinlining.$(OBJEXT) to built
- make ENCODING_H_INCLDUES variable (include/ruby/encoding.h)
- make VM_CORE_H_INCLUDES variable (vm_core.h)
- simplify rules.
- make depends rule to output depend status using gcc -MM.
* include/ruby/mvm.h, include/ruby/vm.h: rename mvm.h to vm.h.
* include/ruby.h: ditto.
* load.c: add inclusion explicitly.
* enumerator.c, object.c, parse.y, thread.c, vm_dump.c:
remove useless inclusion.
* eval_intern.h: cleanup inclusion.
* vm_core.h: rb_thread_t should be defined in this file.
* vm_evalbody.c, vm_exec.c: rename vm_evalbody.c to vm_exec.c.
* vm.h, vm_exec.h: rename vm.h to vm_exec.h.
* insnhelper.h, vm_insnhelper.h: rename insnhelper.h to vm_insnhelper.h.
* vm.c, vm_insnhelper.c, vm_insnhelper.h:
- rename vm_eval() to vm_exec_core().
- rename vm_eval_body() to vm_exec().
- cleanup include order.
* vm_method.c: fix comment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19466 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-22 20:20:28 -04:00
|
|
|
dir.$(OBJEXT): {$(VPATH)}dir.c $(RUBY_H_INCLUDES) {$(VPATH)}util.h \
|
2008-09-23 03:02:45 -04:00
|
|
|
$(ENCODING_H_INCLUDES)
|
* common.mk: clean up
- remove blockinlining.$(OBJEXT) to built
- make ENCODING_H_INCLDUES variable (include/ruby/encoding.h)
- make VM_CORE_H_INCLUDES variable (vm_core.h)
- simplify rules.
- make depends rule to output depend status using gcc -MM.
* include/ruby/mvm.h, include/ruby/vm.h: rename mvm.h to vm.h.
* include/ruby.h: ditto.
* load.c: add inclusion explicitly.
* enumerator.c, object.c, parse.y, thread.c, vm_dump.c:
remove useless inclusion.
* eval_intern.h: cleanup inclusion.
* vm_core.h: rb_thread_t should be defined in this file.
* vm_evalbody.c, vm_exec.c: rename vm_evalbody.c to vm_exec.c.
* vm.h, vm_exec.h: rename vm.h to vm_exec.h.
* insnhelper.h, vm_insnhelper.h: rename insnhelper.h to vm_insnhelper.h.
* vm.c, vm_insnhelper.c, vm_insnhelper.h:
- rename vm_eval() to vm_exec_core().
- rename vm_eval_body() to vm_exec().
- cleanup include order.
* vm_method.c: fix comment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19466 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-22 20:20:28 -04:00
|
|
|
dln.$(OBJEXT): {$(VPATH)}dln.c {$(VPATH)}dln.h $(RUBY_H_INCLUDES)
|
2008-01-14 11:28:49 -05:00
|
|
|
dmydln.$(OBJEXT): {$(VPATH)}dmydln.c dln.$(OBJEXT)
|
2004-03-21 18:21:31 -05:00
|
|
|
dmyext.$(OBJEXT): {$(VPATH)}dmyext.c
|
* common.mk: clean up
- remove blockinlining.$(OBJEXT) to built
- make ENCODING_H_INCLDUES variable (include/ruby/encoding.h)
- make VM_CORE_H_INCLUDES variable (vm_core.h)
- simplify rules.
- make depends rule to output depend status using gcc -MM.
* include/ruby/mvm.h, include/ruby/vm.h: rename mvm.h to vm.h.
* include/ruby.h: ditto.
* load.c: add inclusion explicitly.
* enumerator.c, object.c, parse.y, thread.c, vm_dump.c:
remove useless inclusion.
* eval_intern.h: cleanup inclusion.
* vm_core.h: rb_thread_t should be defined in this file.
* vm_evalbody.c, vm_exec.c: rename vm_evalbody.c to vm_exec.c.
* vm.h, vm_exec.h: rename vm.h to vm_exec.h.
* insnhelper.h, vm_insnhelper.h: rename insnhelper.h to vm_insnhelper.h.
* vm.c, vm_insnhelper.c, vm_insnhelper.h:
- rename vm_eval() to vm_exec_core().
- rename vm_eval_body() to vm_exec().
- cleanup include order.
* vm_method.c: fix comment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19466 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-22 20:20:28 -04:00
|
|
|
dmyencoding.$(OBJEXT): {$(VPATH)}dmyencoding.c $(RUBY_H_INCLUDES) \
|
2008-09-25 11:00:39 -04:00
|
|
|
{$(VPATH)}regenc.h {$(VPATH)}util.h $(ENCODING_H_INCLUDES) \
|
|
|
|
{$(VPATH)}encoding.c
|
2008-08-28 10:36:52 -04:00
|
|
|
encoding.$(OBJEXT): {$(VPATH)}encoding.c $(RUBY_H_INCLUDES) \
|
2008-09-23 03:02:45 -04:00
|
|
|
$(ENCODING_H_INCLUDES) {$(VPATH)}regenc.h {$(VPATH)}util.h
|
2008-09-25 11:00:39 -04:00
|
|
|
enum.$(OBJEXT): {$(VPATH)}enum.c $(RUBY_H_INCLUDES) {$(VPATH)}node.h \
|
|
|
|
{$(VPATH)}util.h
|
|
|
|
enumerator.$(OBJEXT): {$(VPATH)}enumerator.c $(RUBY_H_INCLUDES)
|
2009-08-30 01:13:42 -04:00
|
|
|
error.$(OBJEXT): {$(VPATH)}error.c {$(VPATH)}known_errors.inc \
|
|
|
|
$(RUBY_H_INCLUDES) $(VM_CORE_H_INCLUDES) {$(VPATH)}debug.h
|
2009-09-18 03:29:17 -04:00
|
|
|
eval.$(OBJEXT): {$(VPATH)}eval.c {$(VPATH)}eval_intern.h {$(VPATH)}vm.h \
|
2008-09-25 11:00:39 -04:00
|
|
|
$(RUBY_H_INCLUDES) $(VM_CORE_H_INCLUDES) {$(VPATH)}eval_error.c \
|
2009-08-30 01:13:42 -04:00
|
|
|
{$(VPATH)}eval_jump.c {$(VPATH)}debug.h {$(VPATH)}gc.h {$(VPATH)}iseq.h
|
2007-12-20 04:29:46 -05:00
|
|
|
load.$(OBJEXT): {$(VPATH)}load.c {$(VPATH)}eval_intern.h \
|
2008-09-25 11:00:39 -04:00
|
|
|
{$(VPATH)}util.h $(RUBY_H_INCLUDES) $(VM_CORE_H_INCLUDES) \
|
2008-10-17 06:46:23 -04:00
|
|
|
{$(VPATH)}dln.h {$(VPATH)}debug.h
|
* common.mk: clean up
- remove blockinlining.$(OBJEXT) to built
- make ENCODING_H_INCLDUES variable (include/ruby/encoding.h)
- make VM_CORE_H_INCLUDES variable (vm_core.h)
- simplify rules.
- make depends rule to output depend status using gcc -MM.
* include/ruby/mvm.h, include/ruby/vm.h: rename mvm.h to vm.h.
* include/ruby.h: ditto.
* load.c: add inclusion explicitly.
* enumerator.c, object.c, parse.y, thread.c, vm_dump.c:
remove useless inclusion.
* eval_intern.h: cleanup inclusion.
* vm_core.h: rb_thread_t should be defined in this file.
* vm_evalbody.c, vm_exec.c: rename vm_evalbody.c to vm_exec.c.
* vm.h, vm_exec.h: rename vm.h to vm_exec.h.
* insnhelper.h, vm_insnhelper.h: rename insnhelper.h to vm_insnhelper.h.
* vm.c, vm_insnhelper.c, vm_insnhelper.h:
- rename vm_eval() to vm_exec_core().
- rename vm_eval_body() to vm_exec().
- cleanup include order.
* vm_method.c: fix comment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19466 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-22 20:20:28 -04:00
|
|
|
file.$(OBJEXT): {$(VPATH)}file.c $(RUBY_H_INCLUDES) {$(VPATH)}io.h \
|
2008-09-23 03:02:45 -04:00
|
|
|
$(ENCODING_H_INCLUDES) {$(VPATH)}util.h {$(VPATH)}dln.h
|
2008-09-25 11:00:39 -04:00
|
|
|
gc.$(OBJEXT): {$(VPATH)}gc.c $(RUBY_H_INCLUDES) {$(VPATH)}re.h \
|
|
|
|
{$(VPATH)}regex.h $(ENCODING_H_INCLUDES) $(VM_CORE_H_INCLUDES) \
|
|
|
|
{$(VPATH)}gc.h {$(VPATH)}io.h {$(VPATH)}eval_intern.h {$(VPATH)}util.h \
|
2008-10-17 06:46:23 -04:00
|
|
|
{$(VPATH)}debug.h
|
2008-09-23 02:34:33 -04:00
|
|
|
hash.$(OBJEXT): {$(VPATH)}hash.c $(RUBY_H_INCLUDES) {$(VPATH)}util.h
|
* common.mk: clean up
- remove blockinlining.$(OBJEXT) to built
- make ENCODING_H_INCLDUES variable (include/ruby/encoding.h)
- make VM_CORE_H_INCLUDES variable (vm_core.h)
- simplify rules.
- make depends rule to output depend status using gcc -MM.
* include/ruby/mvm.h, include/ruby/vm.h: rename mvm.h to vm.h.
* include/ruby.h: ditto.
* load.c: add inclusion explicitly.
* enumerator.c, object.c, parse.y, thread.c, vm_dump.c:
remove useless inclusion.
* eval_intern.h: cleanup inclusion.
* vm_core.h: rb_thread_t should be defined in this file.
* vm_evalbody.c, vm_exec.c: rename vm_evalbody.c to vm_exec.c.
* vm.h, vm_exec.h: rename vm.h to vm_exec.h.
* insnhelper.h, vm_insnhelper.h: rename insnhelper.h to vm_insnhelper.h.
* vm.c, vm_insnhelper.c, vm_insnhelper.h:
- rename vm_eval() to vm_exec_core().
- rename vm_eval_body() to vm_exec().
- cleanup include order.
* vm_method.c: fix comment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19466 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-22 20:20:28 -04:00
|
|
|
inits.$(OBJEXT): {$(VPATH)}inits.c $(RUBY_H_INCLUDES)
|
|
|
|
io.$(OBJEXT): {$(VPATH)}io.c $(RUBY_H_INCLUDES) {$(VPATH)}io.h \
|
2009-08-30 01:13:42 -04:00
|
|
|
{$(VPATH)}util.h $(ENCODING_H_INCLUDES) {$(VPATH)}dln.h
|
2008-09-25 11:00:39 -04:00
|
|
|
main.$(OBJEXT): {$(VPATH)}main.c $(RUBY_H_INCLUDES) {$(VPATH)}debug.h \
|
|
|
|
{$(VPATH)}node.h
|
|
|
|
marshal.$(OBJEXT): {$(VPATH)}marshal.c $(RUBY_H_INCLUDES) {$(VPATH)}io.h \
|
|
|
|
$(ENCODING_H_INCLUDES) {$(VPATH)}util.h
|
* common.mk: clean up
- remove blockinlining.$(OBJEXT) to built
- make ENCODING_H_INCLDUES variable (include/ruby/encoding.h)
- make VM_CORE_H_INCLUDES variable (vm_core.h)
- simplify rules.
- make depends rule to output depend status using gcc -MM.
* include/ruby/mvm.h, include/ruby/vm.h: rename mvm.h to vm.h.
* include/ruby.h: ditto.
* load.c: add inclusion explicitly.
* enumerator.c, object.c, parse.y, thread.c, vm_dump.c:
remove useless inclusion.
* eval_intern.h: cleanup inclusion.
* vm_core.h: rb_thread_t should be defined in this file.
* vm_evalbody.c, vm_exec.c: rename vm_evalbody.c to vm_exec.c.
* vm.h, vm_exec.h: rename vm.h to vm_exec.h.
* insnhelper.h, vm_insnhelper.h: rename insnhelper.h to vm_insnhelper.h.
* vm.c, vm_insnhelper.c, vm_insnhelper.h:
- rename vm_eval() to vm_exec_core().
- rename vm_eval_body() to vm_exec().
- cleanup include order.
* vm_method.c: fix comment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19466 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-22 20:20:28 -04:00
|
|
|
math.$(OBJEXT): {$(VPATH)}math.c $(RUBY_H_INCLUDES)
|
2009-12-09 09:05:59 -05:00
|
|
|
node.$(OBJEXT): {$(VPATH)}node.c $(RUBY_H_INCLUDES) \
|
|
|
|
$(VM_CORE_H_INCLUDES)
|
2009-08-30 01:13:42 -04:00
|
|
|
numeric.$(OBJEXT): {$(VPATH)}numeric.c $(RUBY_H_INCLUDES) \
|
|
|
|
{$(VPATH)}util.h $(ENCODING_H_INCLUDES)
|
* common.mk: clean up
- remove blockinlining.$(OBJEXT) to built
- make ENCODING_H_INCLDUES variable (include/ruby/encoding.h)
- make VM_CORE_H_INCLUDES variable (vm_core.h)
- simplify rules.
- make depends rule to output depend status using gcc -MM.
* include/ruby/mvm.h, include/ruby/vm.h: rename mvm.h to vm.h.
* include/ruby.h: ditto.
* load.c: add inclusion explicitly.
* enumerator.c, object.c, parse.y, thread.c, vm_dump.c:
remove useless inclusion.
* eval_intern.h: cleanup inclusion.
* vm_core.h: rb_thread_t should be defined in this file.
* vm_evalbody.c, vm_exec.c: rename vm_evalbody.c to vm_exec.c.
* vm.h, vm_exec.h: rename vm.h to vm_exec.h.
* insnhelper.h, vm_insnhelper.h: rename insnhelper.h to vm_insnhelper.h.
* vm.c, vm_insnhelper.c, vm_insnhelper.h:
- rename vm_eval() to vm_exec_core().
- rename vm_eval_body() to vm_exec().
- cleanup include order.
* vm_method.c: fix comment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19466 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-22 20:20:28 -04:00
|
|
|
object.$(OBJEXT): {$(VPATH)}object.c $(RUBY_H_INCLUDES) {$(VPATH)}util.h
|
2009-08-30 01:13:42 -04:00
|
|
|
pack.$(OBJEXT): {$(VPATH)}pack.c $(RUBY_H_INCLUDES) {$(VPATH)}encoding.h \
|
|
|
|
{$(VPATH)}oniguruma.h
|
|
|
|
parse.$(OBJEXT): {$(VPATH)}parse.c $(RUBY_H_INCLUDES) {$(VPATH)}node.h \
|
|
|
|
$(ENCODING_H_INCLUDES) $(ID_H_INCLUDES) {$(VPATH)}regenc.h \
|
|
|
|
{$(VPATH)}regex.h {$(VPATH)}util.h {$(VPATH)}lex.c \
|
|
|
|
{$(VPATH)}defs/keywords {$(VPATH)}id.c {$(VPATH)}parse.y \
|
|
|
|
{$(VPATH)}parse.h
|
2008-09-25 11:00:39 -04:00
|
|
|
proc.$(OBJEXT): {$(VPATH)}proc.c {$(VPATH)}eval_intern.h \
|
|
|
|
$(RUBY_H_INCLUDES) {$(VPATH)}gc.h $(VM_CORE_H_INCLUDES) \
|
2008-10-17 06:46:23 -04:00
|
|
|
{$(VPATH)}debug.h
|
* common.mk: clean up
- remove blockinlining.$(OBJEXT) to built
- make ENCODING_H_INCLDUES variable (include/ruby/encoding.h)
- make VM_CORE_H_INCLUDES variable (vm_core.h)
- simplify rules.
- make depends rule to output depend status using gcc -MM.
* include/ruby/mvm.h, include/ruby/vm.h: rename mvm.h to vm.h.
* include/ruby.h: ditto.
* load.c: add inclusion explicitly.
* enumerator.c, object.c, parse.y, thread.c, vm_dump.c:
remove useless inclusion.
* eval_intern.h: cleanup inclusion.
* vm_core.h: rb_thread_t should be defined in this file.
* vm_evalbody.c, vm_exec.c: rename vm_evalbody.c to vm_exec.c.
* vm.h, vm_exec.h: rename vm.h to vm_exec.h.
* insnhelper.h, vm_insnhelper.h: rename insnhelper.h to vm_insnhelper.h.
* vm.c, vm_insnhelper.c, vm_insnhelper.h:
- rename vm_eval() to vm_exec_core().
- rename vm_eval_body() to vm_exec().
- cleanup include order.
* vm_method.c: fix comment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19466 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-22 20:20:28 -04:00
|
|
|
process.$(OBJEXT): {$(VPATH)}process.c $(RUBY_H_INCLUDES) \
|
2008-09-25 11:00:39 -04:00
|
|
|
{$(VPATH)}util.h {$(VPATH)}io.h $(ENCODING_H_INCLUDES) {$(VPATH)}dln.h \
|
2008-10-17 06:46:23 -04:00
|
|
|
$(VM_CORE_H_INCLUDES) {$(VPATH)}debug.h
|
* common.mk: clean up
- remove blockinlining.$(OBJEXT) to built
- make ENCODING_H_INCLDUES variable (include/ruby/encoding.h)
- make VM_CORE_H_INCLUDES variable (vm_core.h)
- simplify rules.
- make depends rule to output depend status using gcc -MM.
* include/ruby/mvm.h, include/ruby/vm.h: rename mvm.h to vm.h.
* include/ruby.h: ditto.
* load.c: add inclusion explicitly.
* enumerator.c, object.c, parse.y, thread.c, vm_dump.c:
remove useless inclusion.
* eval_intern.h: cleanup inclusion.
* vm_core.h: rb_thread_t should be defined in this file.
* vm_evalbody.c, vm_exec.c: rename vm_evalbody.c to vm_exec.c.
* vm.h, vm_exec.h: rename vm.h to vm_exec.h.
* insnhelper.h, vm_insnhelper.h: rename insnhelper.h to vm_insnhelper.h.
* vm.c, vm_insnhelper.c, vm_insnhelper.h:
- rename vm_eval() to vm_exec_core().
- rename vm_eval_body() to vm_exec().
- cleanup include order.
* vm_method.c: fix comment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19466 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-22 20:20:28 -04:00
|
|
|
random.$(OBJEXT): {$(VPATH)}random.c $(RUBY_H_INCLUDES)
|
2008-09-25 11:00:39 -04:00
|
|
|
range.$(OBJEXT): {$(VPATH)}range.c $(RUBY_H_INCLUDES) \
|
|
|
|
$(ENCODING_H_INCLUDES)
|
2008-12-16 01:35:07 -05:00
|
|
|
rational.$(OBJEXT): {$(VPATH)}rational.c $(RUBY_H_INCLUDES)
|
2008-09-25 11:00:39 -04:00
|
|
|
re.$(OBJEXT): {$(VPATH)}re.c $(RUBY_H_INCLUDES) {$(VPATH)}re.h \
|
|
|
|
{$(VPATH)}regex.h $(ENCODING_H_INCLUDES) {$(VPATH)}util.h \
|
|
|
|
{$(VPATH)}regint.h {$(VPATH)}regenc.h
|
|
|
|
regcomp.$(OBJEXT): {$(VPATH)}regcomp.c {$(VPATH)}regparse.h \
|
|
|
|
{$(VPATH)}regint.h {$(VPATH)}regenc.h {$(VPATH)}oniguruma.h \
|
|
|
|
$(RUBY_H_INCLUDES)
|
|
|
|
regenc.$(OBJEXT): {$(VPATH)}regenc.c {$(VPATH)}regint.h \
|
|
|
|
{$(VPATH)}regenc.h {$(VPATH)}oniguruma.h $(RUBY_H_INCLUDES)
|
2008-08-13 04:30:21 -04:00
|
|
|
regerror.$(OBJEXT): {$(VPATH)}regerror.c {$(VPATH)}regint.h \
|
2008-09-25 11:00:39 -04:00
|
|
|
{$(VPATH)}regenc.h {$(VPATH)}oniguruma.h $(RUBY_H_INCLUDES)
|
2008-08-13 04:30:21 -04:00
|
|
|
regexec.$(OBJEXT): {$(VPATH)}regexec.c {$(VPATH)}regint.h \
|
2008-09-25 11:00:39 -04:00
|
|
|
{$(VPATH)}regenc.h {$(VPATH)}oniguruma.h $(RUBY_H_INCLUDES)
|
2008-01-01 09:17:37 -05:00
|
|
|
regparse.$(OBJEXT): {$(VPATH)}regparse.c {$(VPATH)}regparse.h \
|
2008-09-25 11:00:39 -04:00
|
|
|
{$(VPATH)}regint.h {$(VPATH)}regenc.h {$(VPATH)}oniguruma.h \
|
|
|
|
$(RUBY_H_INCLUDES)
|
2008-08-13 04:30:21 -04:00
|
|
|
regsyntax.$(OBJEXT): {$(VPATH)}regsyntax.c {$(VPATH)}regint.h \
|
2008-09-25 11:00:39 -04:00
|
|
|
{$(VPATH)}regenc.h {$(VPATH)}oniguruma.h $(RUBY_H_INCLUDES)
|
* common.mk: clean up
- remove blockinlining.$(OBJEXT) to built
- make ENCODING_H_INCLDUES variable (include/ruby/encoding.h)
- make VM_CORE_H_INCLUDES variable (vm_core.h)
- simplify rules.
- make depends rule to output depend status using gcc -MM.
* include/ruby/mvm.h, include/ruby/vm.h: rename mvm.h to vm.h.
* include/ruby.h: ditto.
* load.c: add inclusion explicitly.
* enumerator.c, object.c, parse.y, thread.c, vm_dump.c:
remove useless inclusion.
* eval_intern.h: cleanup inclusion.
* vm_core.h: rb_thread_t should be defined in this file.
* vm_evalbody.c, vm_exec.c: rename vm_evalbody.c to vm_exec.c.
* vm.h, vm_exec.h: rename vm.h to vm_exec.h.
* insnhelper.h, vm_insnhelper.h: rename insnhelper.h to vm_insnhelper.h.
* vm.c, vm_insnhelper.c, vm_insnhelper.h:
- rename vm_eval() to vm_exec_core().
- rename vm_eval_body() to vm_exec().
- cleanup include order.
* vm_method.c: fix comment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19466 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-22 20:20:28 -04:00
|
|
|
ruby.$(OBJEXT): {$(VPATH)}ruby.c $(RUBY_H_INCLUDES) {$(VPATH)}util.h \
|
2008-09-25 11:00:39 -04:00
|
|
|
$(ENCODING_H_INCLUDES) {$(VPATH)}eval_intern.h $(VM_CORE_H_INCLUDES) \
|
2008-10-17 06:46:23 -04:00
|
|
|
{$(VPATH)}dln.h {$(VPATH)}debug.h
|
2008-09-25 11:00:39 -04:00
|
|
|
safe.$(OBJEXT): {$(VPATH)}safe.c $(RUBY_H_INCLUDES) \
|
2008-10-17 06:46:23 -04:00
|
|
|
$(VM_CORE_H_INCLUDES) {$(VPATH)}debug.h
|
2008-09-25 11:00:39 -04:00
|
|
|
signal.$(OBJEXT): {$(VPATH)}signal.c $(RUBY_H_INCLUDES) \
|
2008-10-17 06:46:23 -04:00
|
|
|
$(VM_CORE_H_INCLUDES) {$(VPATH)}debug.h
|
* common.mk: clean up
- remove blockinlining.$(OBJEXT) to built
- make ENCODING_H_INCLDUES variable (include/ruby/encoding.h)
- make VM_CORE_H_INCLUDES variable (vm_core.h)
- simplify rules.
- make depends rule to output depend status using gcc -MM.
* include/ruby/mvm.h, include/ruby/vm.h: rename mvm.h to vm.h.
* include/ruby.h: ditto.
* load.c: add inclusion explicitly.
* enumerator.c, object.c, parse.y, thread.c, vm_dump.c:
remove useless inclusion.
* eval_intern.h: cleanup inclusion.
* vm_core.h: rb_thread_t should be defined in this file.
* vm_evalbody.c, vm_exec.c: rename vm_evalbody.c to vm_exec.c.
* vm.h, vm_exec.h: rename vm.h to vm_exec.h.
* insnhelper.h, vm_insnhelper.h: rename insnhelper.h to vm_insnhelper.h.
* vm.c, vm_insnhelper.c, vm_insnhelper.h:
- rename vm_eval() to vm_exec_core().
- rename vm_eval_body() to vm_exec().
- cleanup include order.
* vm_method.c: fix comment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19466 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-22 20:20:28 -04:00
|
|
|
sprintf.$(OBJEXT): {$(VPATH)}sprintf.c $(RUBY_H_INCLUDES) {$(VPATH)}re.h \
|
2008-09-23 03:02:45 -04:00
|
|
|
{$(VPATH)}regex.h {$(VPATH)}vsnprintf.c $(ENCODING_H_INCLUDES)
|
2008-01-01 12:31:28 -05:00
|
|
|
st.$(OBJEXT): {$(VPATH)}st.c {$(VPATH)}config.h {$(VPATH)}defines.h \
|
2008-09-25 11:00:39 -04:00
|
|
|
{$(VPATH)}st.h {$(VPATH)}ruby.h {$(VPATH)}missing.h {$(VPATH)}intern.h
|
|
|
|
strftime.$(OBJEXT): {$(VPATH)}strftime.c {$(VPATH)}ruby.h \
|
|
|
|
{$(VPATH)}config.h {$(VPATH)}defines.h {$(VPATH)}missing.h \
|
2009-08-30 01:13:42 -04:00
|
|
|
{$(VPATH)}intern.h {$(VPATH)}st.h {$(VPATH)}timev.h
|
2008-09-25 11:00:39 -04:00
|
|
|
string.$(OBJEXT): {$(VPATH)}string.c $(RUBY_H_INCLUDES) {$(VPATH)}re.h \
|
|
|
|
{$(VPATH)}regex.h $(ENCODING_H_INCLUDES)
|
* common.mk: clean up
- remove blockinlining.$(OBJEXT) to built
- make ENCODING_H_INCLDUES variable (include/ruby/encoding.h)
- make VM_CORE_H_INCLUDES variable (vm_core.h)
- simplify rules.
- make depends rule to output depend status using gcc -MM.
* include/ruby/mvm.h, include/ruby/vm.h: rename mvm.h to vm.h.
* include/ruby.h: ditto.
* load.c: add inclusion explicitly.
* enumerator.c, object.c, parse.y, thread.c, vm_dump.c:
remove useless inclusion.
* eval_intern.h: cleanup inclusion.
* vm_core.h: rb_thread_t should be defined in this file.
* vm_evalbody.c, vm_exec.c: rename vm_evalbody.c to vm_exec.c.
* vm.h, vm_exec.h: rename vm.h to vm_exec.h.
* insnhelper.h, vm_insnhelper.h: rename insnhelper.h to vm_insnhelper.h.
* vm.c, vm_insnhelper.c, vm_insnhelper.h:
- rename vm_eval() to vm_exec_core().
- rename vm_eval_body() to vm_exec().
- cleanup include order.
* vm_method.c: fix comment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19466 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-22 20:20:28 -04:00
|
|
|
struct.$(OBJEXT): {$(VPATH)}struct.c $(RUBY_H_INCLUDES)
|
2007-02-27 06:37:54 -05:00
|
|
|
thread.$(OBJEXT): {$(VPATH)}thread.c {$(VPATH)}eval_intern.h \
|
2008-09-25 11:00:39 -04:00
|
|
|
$(RUBY_H_INCLUDES) {$(VPATH)}gc.h $(VM_CORE_H_INCLUDES) \
|
2008-10-17 06:46:23 -04:00
|
|
|
{$(VPATH)}debug.h {$(VPATH)}thread_$(THREAD_MODEL).c
|
2008-08-28 10:36:52 -04:00
|
|
|
transcode.$(OBJEXT): {$(VPATH)}transcode.c $(RUBY_H_INCLUDES) \
|
2008-09-23 03:02:45 -04:00
|
|
|
$(ENCODING_H_INCLUDES) {$(VPATH)}transcode_data.h
|
* common.mk: clean up
- remove blockinlining.$(OBJEXT) to built
- make ENCODING_H_INCLDUES variable (include/ruby/encoding.h)
- make VM_CORE_H_INCLUDES variable (vm_core.h)
- simplify rules.
- make depends rule to output depend status using gcc -MM.
* include/ruby/mvm.h, include/ruby/vm.h: rename mvm.h to vm.h.
* include/ruby.h: ditto.
* load.c: add inclusion explicitly.
* enumerator.c, object.c, parse.y, thread.c, vm_dump.c:
remove useless inclusion.
* eval_intern.h: cleanup inclusion.
* vm_core.h: rb_thread_t should be defined in this file.
* vm_evalbody.c, vm_exec.c: rename vm_evalbody.c to vm_exec.c.
* vm.h, vm_exec.h: rename vm.h to vm_exec.h.
* insnhelper.h, vm_insnhelper.h: rename insnhelper.h to vm_insnhelper.h.
* vm.c, vm_insnhelper.c, vm_insnhelper.h:
- rename vm_eval() to vm_exec_core().
- rename vm_eval_body() to vm_exec().
- cleanup include order.
* vm_method.c: fix comment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19466 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-22 20:20:28 -04:00
|
|
|
cont.$(OBJEXT): {$(VPATH)}cont.c $(RUBY_H_INCLUDES) \
|
2008-09-25 11:00:39 -04:00
|
|
|
$(VM_CORE_H_INCLUDES) {$(VPATH)}gc.h {$(VPATH)}eval_intern.h \
|
2008-10-17 06:46:23 -04:00
|
|
|
{$(VPATH)}debug.h
|
2008-09-25 11:00:39 -04:00
|
|
|
time.$(OBJEXT): {$(VPATH)}time.c $(RUBY_H_INCLUDES) \
|
2009-08-30 01:13:42 -04:00
|
|
|
$(ENCODING_H_INCLUDES) {$(VPATH)}timev.h
|
* common.mk: clean up
- remove blockinlining.$(OBJEXT) to built
- make ENCODING_H_INCLDUES variable (include/ruby/encoding.h)
- make VM_CORE_H_INCLUDES variable (vm_core.h)
- simplify rules.
- make depends rule to output depend status using gcc -MM.
* include/ruby/mvm.h, include/ruby/vm.h: rename mvm.h to vm.h.
* include/ruby.h: ditto.
* load.c: add inclusion explicitly.
* enumerator.c, object.c, parse.y, thread.c, vm_dump.c:
remove useless inclusion.
* eval_intern.h: cleanup inclusion.
* vm_core.h: rb_thread_t should be defined in this file.
* vm_evalbody.c, vm_exec.c: rename vm_evalbody.c to vm_exec.c.
* vm.h, vm_exec.h: rename vm.h to vm_exec.h.
* insnhelper.h, vm_insnhelper.h: rename insnhelper.h to vm_insnhelper.h.
* vm.c, vm_insnhelper.c, vm_insnhelper.h:
- rename vm_eval() to vm_exec_core().
- rename vm_eval_body() to vm_exec().
- cleanup include order.
* vm_method.c: fix comment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19466 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-22 20:20:28 -04:00
|
|
|
util.$(OBJEXT): {$(VPATH)}util.c $(RUBY_H_INCLUDES) {$(VPATH)}util.h
|
2008-08-28 10:36:52 -04:00
|
|
|
variable.$(OBJEXT): {$(VPATH)}variable.c $(RUBY_H_INCLUDES) \
|
2009-08-30 01:13:42 -04:00
|
|
|
{$(VPATH)}node.h {$(VPATH)}util.h {$(VPATH)}encoding.h \
|
|
|
|
{$(VPATH)}oniguruma.h
|
* common.mk: clean up
- remove blockinlining.$(OBJEXT) to built
- make ENCODING_H_INCLDUES variable (include/ruby/encoding.h)
- make VM_CORE_H_INCLUDES variable (vm_core.h)
- simplify rules.
- make depends rule to output depend status using gcc -MM.
* include/ruby/mvm.h, include/ruby/vm.h: rename mvm.h to vm.h.
* include/ruby.h: ditto.
* load.c: add inclusion explicitly.
* enumerator.c, object.c, parse.y, thread.c, vm_dump.c:
remove useless inclusion.
* eval_intern.h: cleanup inclusion.
* vm_core.h: rb_thread_t should be defined in this file.
* vm_evalbody.c, vm_exec.c: rename vm_evalbody.c to vm_exec.c.
* vm.h, vm_exec.h: rename vm.h to vm_exec.h.
* insnhelper.h, vm_insnhelper.h: rename insnhelper.h to vm_insnhelper.h.
* vm.c, vm_insnhelper.c, vm_insnhelper.h:
- rename vm_eval() to vm_exec_core().
- rename vm_eval_body() to vm_exec().
- cleanup include order.
* vm_method.c: fix comment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19466 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-22 20:20:28 -04:00
|
|
|
version.$(OBJEXT): {$(VPATH)}version.c $(RUBY_H_INCLUDES) \
|
2009-10-26 14:45:34 -04:00
|
|
|
{$(VPATH)}version.h $(srcdir)/revision.h {$(VPATH)}config.h
|
2010-02-08 02:28:00 -05:00
|
|
|
dmyversion.$(OBJEXT): {$(VPATH)}dmyversion.c version.$(OBJEXT)
|
2008-06-30 10:01:53 -04:00
|
|
|
|
* include/ruby/node.h, vm_core.h: move definition of
RUBY_VM_METHOD_NODE to node.h.
* class.c, common.mk: remove useless inclusion.
* compile.h, iseq.h, vm_core.h: rename compile.h to iseq.h.
move some definitions from vm_core.h to iseq.h.
* compile.c, iseq.c, vm.c: ditto.
* eval.c, compile.c: move some functions for parser
from eval.c to compile.c.
* eval_intern.h, vm_core.h: move va_init_list() macro to
vm_core.h.
* iseq.c (rb_iseq_new_top, rb_iseq_first_lineno): added.
* load.c, ruby.c: use rb_iseq_new_top() instead of
rb_iseq_new() with ISEQ_TYPE_TOP constant directly.
* proc.c: use rb_iseq_first_lineno() instead of accessing
iseq structure.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19472 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-23 03:49:45 -04:00
|
|
|
compile.$(OBJEXT): {$(VPATH)}compile.c {$(VPATH)}iseq.h \
|
2008-09-25 11:00:39 -04:00
|
|
|
$(RUBY_H_INCLUDES) $(VM_CORE_H_INCLUDES) {$(VPATH)}insns.inc \
|
2010-01-20 02:12:16 -05:00
|
|
|
{$(VPATH)}insns_info.inc {$(VPATH)}optinsn.inc {$(VPATH)}debug.h \
|
|
|
|
{$(VPATH)}optunifs.inc {$(VPATH)}opt_sc.inc
|
* include/ruby/node.h, vm_core.h: move definition of
RUBY_VM_METHOD_NODE to node.h.
* class.c, common.mk: remove useless inclusion.
* compile.h, iseq.h, vm_core.h: rename compile.h to iseq.h.
move some definitions from vm_core.h to iseq.h.
* compile.c, iseq.c, vm.c: ditto.
* eval.c, compile.c: move some functions for parser
from eval.c to compile.c.
* eval_intern.h, vm_core.h: move va_init_list() macro to
vm_core.h.
* iseq.c (rb_iseq_new_top, rb_iseq_first_lineno): added.
* load.c, ruby.c: use rb_iseq_new_top() instead of
rb_iseq_new() with ISEQ_TYPE_TOP constant directly.
* proc.c: use rb_iseq_first_lineno() instead of accessing
iseq structure.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19472 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-23 03:49:45 -04:00
|
|
|
iseq.$(OBJEXT): {$(VPATH)}iseq.c {$(VPATH)}gc.h {$(VPATH)}iseq.h \
|
2008-09-25 11:00:39 -04:00
|
|
|
$(RUBY_H_INCLUDES) $(VM_CORE_H_INCLUDES) {$(VPATH)}insns.inc \
|
2008-10-17 06:46:23 -04:00
|
|
|
{$(VPATH)}insns_info.inc {$(VPATH)}node_name.inc {$(VPATH)}debug.h
|
2008-09-25 11:00:39 -04:00
|
|
|
vm.$(OBJEXT): {$(VPATH)}vm.c {$(VPATH)}gc.h {$(VPATH)}iseq.h \
|
|
|
|
{$(VPATH)}eval_intern.h $(RUBY_H_INCLUDES) $(ENCODING_H_INCLUDES) \
|
|
|
|
$(VM_CORE_H_INCLUDES) {$(VPATH)}vm_method.c {$(VPATH)}vm_eval.c \
|
|
|
|
{$(VPATH)}vm_insnhelper.c {$(VPATH)}vm_insnhelper.h {$(VPATH)}vm_exec.c \
|
|
|
|
{$(VPATH)}vm_exec.h {$(VPATH)}insns.def {$(VPATH)}vmtc.inc \
|
2008-10-17 06:46:23 -04:00
|
|
|
{$(VPATH)}vm.inc {$(VPATH)}insns.inc {$(VPATH)}debug.h
|
* common.mk: clean up
- remove blockinlining.$(OBJEXT) to built
- make ENCODING_H_INCLDUES variable (include/ruby/encoding.h)
- make VM_CORE_H_INCLUDES variable (vm_core.h)
- simplify rules.
- make depends rule to output depend status using gcc -MM.
* include/ruby/mvm.h, include/ruby/vm.h: rename mvm.h to vm.h.
* include/ruby.h: ditto.
* load.c: add inclusion explicitly.
* enumerator.c, object.c, parse.y, thread.c, vm_dump.c:
remove useless inclusion.
* eval_intern.h: cleanup inclusion.
* vm_core.h: rb_thread_t should be defined in this file.
* vm_evalbody.c, vm_exec.c: rename vm_evalbody.c to vm_exec.c.
* vm.h, vm_exec.h: rename vm.h to vm_exec.h.
* insnhelper.h, vm_insnhelper.h: rename insnhelper.h to vm_insnhelper.h.
* vm.c, vm_insnhelper.c, vm_insnhelper.h:
- rename vm_eval() to vm_exec_core().
- rename vm_eval_body() to vm_exec().
- cleanup include order.
* vm_method.c: fix comment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19466 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-22 20:20:28 -04:00
|
|
|
vm_dump.$(OBJEXT): {$(VPATH)}vm_dump.c $(RUBY_H_INCLUDES) \
|
2008-10-17 06:46:23 -04:00
|
|
|
$(VM_CORE_H_INCLUDES) {$(VPATH)}debug.h
|
2008-09-25 11:00:39 -04:00
|
|
|
debug.$(OBJEXT): {$(VPATH)}debug.c $(RUBY_H_INCLUDES) \
|
|
|
|
$(ENCODING_H_INCLUDES) $(VM_CORE_H_INCLUDES) {$(VPATH)}eval_intern.h \
|
2008-10-17 06:46:23 -04:00
|
|
|
{$(VPATH)}util.h {$(VPATH)}debug.h
|
* common.mk: clean up
- remove blockinlining.$(OBJEXT) to built
- make ENCODING_H_INCLDUES variable (include/ruby/encoding.h)
- make VM_CORE_H_INCLUDES variable (vm_core.h)
- simplify rules.
- make depends rule to output depend status using gcc -MM.
* include/ruby/mvm.h, include/ruby/vm.h: rename mvm.h to vm.h.
* include/ruby.h: ditto.
* load.c: add inclusion explicitly.
* enumerator.c, object.c, parse.y, thread.c, vm_dump.c:
remove useless inclusion.
* eval_intern.h: cleanup inclusion.
* vm_core.h: rb_thread_t should be defined in this file.
* vm_evalbody.c, vm_exec.c: rename vm_evalbody.c to vm_exec.c.
* vm.h, vm_exec.h: rename vm.h to vm_exec.h.
* insnhelper.h, vm_insnhelper.h: rename insnhelper.h to vm_insnhelper.h.
* vm.c, vm_insnhelper.c, vm_insnhelper.h:
- rename vm_eval() to vm_exec_core().
- rename vm_eval_body() to vm_exec().
- cleanup include order.
* vm_method.c: fix comment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19466 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-22 20:20:28 -04:00
|
|
|
id.$(OBJEXT): {$(VPATH)}id.c $(RUBY_H_INCLUDES) $(ID_H_INCLUDES)
|
2008-06-30 10:01:53 -04:00
|
|
|
miniprelude.$(OBJEXT): {$(VPATH)}miniprelude.c $(RUBY_H_INCLUDES) \
|
2008-10-17 06:46:23 -04:00
|
|
|
$(VM_CORE_H_INCLUDES) {$(VPATH)}debug.h
|
* common.mk: clean up
- remove blockinlining.$(OBJEXT) to built
- make ENCODING_H_INCLDUES variable (include/ruby/encoding.h)
- make VM_CORE_H_INCLUDES variable (vm_core.h)
- simplify rules.
- make depends rule to output depend status using gcc -MM.
* include/ruby/mvm.h, include/ruby/vm.h: rename mvm.h to vm.h.
* include/ruby.h: ditto.
* load.c: add inclusion explicitly.
* enumerator.c, object.c, parse.y, thread.c, vm_dump.c:
remove useless inclusion.
* eval_intern.h: cleanup inclusion.
* vm_core.h: rb_thread_t should be defined in this file.
* vm_evalbody.c, vm_exec.c: rename vm_evalbody.c to vm_exec.c.
* vm.h, vm_exec.h: rename vm.h to vm_exec.h.
* insnhelper.h, vm_insnhelper.h: rename insnhelper.h to vm_insnhelper.h.
* vm.c, vm_insnhelper.c, vm_insnhelper.h:
- rename vm_eval() to vm_exec_core().
- rename vm_eval_body() to vm_exec().
- cleanup include order.
* vm_method.c: fix comment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19466 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-22 20:20:28 -04:00
|
|
|
prelude.$(OBJEXT): {$(VPATH)}prelude.c $(RUBY_H_INCLUDES) \
|
2008-10-17 06:46:23 -04:00
|
|
|
$(VM_CORE_H_INCLUDES) {$(VPATH)}debug.h
|
2008-09-25 11:00:39 -04:00
|
|
|
golf_prelude.$(OBJEXT): {$(VPATH)}golf_prelude.c $(RUBY_H_INCLUDES) \
|
2008-10-17 06:46:23 -04:00
|
|
|
$(VM_CORE_H_INCLUDES) {$(VPATH)}debug.h
|
2008-08-28 10:36:52 -04:00
|
|
|
goruby.$(OBJEXT): {$(VPATH)}goruby.c {$(VPATH)}main.c $(RUBY_H_INCLUDES) \
|
2008-09-25 11:00:39 -04:00
|
|
|
{$(VPATH)}debug.h {$(VPATH)}node.h
|
2006-12-31 10:02:22 -05:00
|
|
|
|
2008-01-01 12:31:28 -05:00
|
|
|
ascii.$(OBJEXT): {$(VPATH)}ascii.c {$(VPATH)}regenc.h {$(VPATH)}config.h \
|
|
|
|
{$(VPATH)}defines.h {$(VPATH)}oniguruma.h
|
2008-08-28 10:36:52 -04:00
|
|
|
us_ascii.$(OBJEXT): {$(VPATH)}us_ascii.c {$(VPATH)}regenc.h \
|
|
|
|
{$(VPATH)}config.h {$(VPATH)}defines.h {$(VPATH)}oniguruma.h
|
2008-08-13 04:30:21 -04:00
|
|
|
unicode.$(OBJEXT): {$(VPATH)}unicode.c {$(VPATH)}regint.h \
|
2008-01-01 09:17:37 -05:00
|
|
|
{$(VPATH)}config.h {$(VPATH)}defines.h {$(VPATH)}regenc.h \
|
2008-08-28 10:36:52 -04:00
|
|
|
{$(VPATH)}oniguruma.h {$(VPATH)}st.h {$(VPATH)}ruby.h \
|
2009-08-30 01:13:42 -04:00
|
|
|
{$(VPATH)}missing.h {$(VPATH)}intern.h {$(VPATH)}enc/unicode/name2ctype.h
|
2009-08-21 04:01:09 -04:00
|
|
|
|
2008-01-15 03:26:54 -05:00
|
|
|
utf_8.$(OBJEXT): {$(VPATH)}utf_8.c {$(VPATH)}regenc.h {$(VPATH)}config.h \
|
2008-01-03 03:44:01 -05:00
|
|
|
{$(VPATH)}defines.h {$(VPATH)}oniguruma.h
|
2007-10-10 17:35:45 -04:00
|
|
|
|
2008-08-24 11:58:43 -04:00
|
|
|
newline.c: $(srcdir)/enc/trans/newline.trans $(srcdir)/tool/transcode-tblgen.rb
|
2009-02-26 04:36:13 -05:00
|
|
|
$(BASERUBY) "$(srcdir)/tool/transcode-tblgen.rb" -vo newline.c $(srcdir)/enc/trans/newline.trans
|
2008-08-28 10:36:52 -04:00
|
|
|
newline.$(OBJEXT): {$(VPATH)}newline.c {$(VPATH)}defines.h \
|
|
|
|
{$(VPATH)}intern.h {$(VPATH)}missing.h {$(VPATH)}st.h \
|
|
|
|
{$(VPATH)}transcode_data.h {$(VPATH)}ruby.h {$(VPATH)}config.h
|
2008-08-24 11:58:43 -04:00
|
|
|
|
* blockinlining.c, error.c, eval.c, eval_error.h, eval_intern.h,
eval_jump.h, eval_load.c, eval_safe.h, gc.c, proc.c, signal.c,
thread.c, thread_pthread.ci, thread_win32.ci, vm.c, vm.h,
vm_dump.c, vm_evalbody.ci, yarvcore.c, yarvcore.h:
fix typo (rb_thead_t -> rb_thread_t).
* eval_intern.h: remove unused definitions.
* common.mk: fix around vm_opts.h path
and remove harmful argument passed to insns2vm.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11658 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-08 01:37:46 -05:00
|
|
|
INSNS2VMOPT = --srcdir="$(srcdir)"
|
2006-12-31 10:02:22 -05:00
|
|
|
|
2009-03-04 21:52:21 -05:00
|
|
|
{$(VPATH)}minsns.inc: $(srcdir)/template/minsns.inc.tmpl
|
2007-07-21 04:48:29 -04:00
|
|
|
|
2009-03-04 21:52:21 -05:00
|
|
|
{$(VPATH)}opt_sc.inc: $(srcdir)/template/opt_sc.inc.tmpl
|
2006-12-31 10:02:22 -05:00
|
|
|
|
2009-03-04 21:52:21 -05:00
|
|
|
{$(VPATH)}optinsn.inc: $(srcdir)/template/optinsn.inc.tmpl
|
2006-12-31 10:02:22 -05:00
|
|
|
|
2009-03-04 21:52:21 -05:00
|
|
|
{$(VPATH)}optunifs.inc: $(srcdir)/template/optunifs.inc.tmpl
|
2006-12-31 10:02:22 -05:00
|
|
|
|
2009-03-04 21:52:21 -05:00
|
|
|
{$(VPATH)}insns.inc: $(srcdir)/template/insns.inc.tmpl
|
2006-12-31 10:02:22 -05:00
|
|
|
|
2009-03-04 21:52:21 -05:00
|
|
|
{$(VPATH)}insns_info.inc: $(srcdir)/template/insns_info.inc.tmpl
|
2007-02-04 14:15:38 -05:00
|
|
|
|
2009-03-04 21:52:21 -05:00
|
|
|
{$(VPATH)}vmtc.inc: $(srcdir)/template/vmtc.inc.tmpl
|
2006-12-31 10:02:22 -05:00
|
|
|
|
2009-03-04 21:52:21 -05:00
|
|
|
{$(VPATH)}vm.inc: $(srcdir)/template/vm.inc.tmpl
|
2006-12-31 10:02:22 -05:00
|
|
|
|
2009-03-14 19:26:11 -04:00
|
|
|
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)
|
2008-08-05 14:56:42 -04:00
|
|
|
|
2008-09-26 04:06:59 -04:00
|
|
|
srcs-enc: $(ENC_MK)
|
|
|
|
$(MAKE) -f $(ENC_MK) RUBY="$(MINIRUBY)" MINIRUBY="$(MINIRUBY)" $(MFLAGS) srcs
|
2007-08-06 00:09:56 -04:00
|
|
|
|
2009-03-15 23:30:01 -04:00
|
|
|
incs: $(INSNS) {$(VPATH)}node_name.inc {$(VPATH)}encdb.h {$(VPATH)}transdb.h {$(VPATH)}known_errors.inc \
|
2009-08-21 04:01:09 -04:00
|
|
|
$(srcdir)/revision.h $(REVISION_H) enc/unicode/name2ctype.h
|
2007-12-22 13:22:43 -05:00
|
|
|
|
2008-04-02 23:56:07 -04:00
|
|
|
insns: $(INSNS)
|
|
|
|
|
2009-09-06 16:22:18 -04:00
|
|
|
id.h: parse.h $(srcdir)/tool/generic_erb.rb $(srcdir)/template/id.h.tmpl
|
|
|
|
$(BASERUBY) $(srcdir)/tool/generic_erb.rb --output=$@ \
|
|
|
|
$(srcdir)/template/id.h.tmpl --vpath=$(VPATH) parse.h
|
|
|
|
|
2007-12-24 03:40:59 -05:00
|
|
|
node_name.inc: {$(VPATH)}node.h
|
2009-02-26 04:36:13 -05:00
|
|
|
$(BASERUBY) -n $(srcdir)/tool/node_name.rb $? > $@
|
2006-12-31 10:02:22 -05:00
|
|
|
|
2009-01-13 04:05:29 -05:00
|
|
|
encdb.h: $(PREP) $(srcdir)/tool/generic_erb.rb $(srcdir)/template/encdb.h.tmpl
|
|
|
|
$(MINIRUBY) $(srcdir)/tool/generic_erb.rb -c -o $@ $(srcdir)/template/encdb.h.tmpl $(srcdir)/enc enc
|
2008-01-12 11:03:51 -05:00
|
|
|
|
2009-01-13 04:05:29 -05:00
|
|
|
transdb.h: $(PREP) srcs-enc $(srcdir)/tool/generic_erb.rb $(srcdir)/template/transdb.h.tmpl
|
|
|
|
$(MINIRUBY) $(srcdir)/tool/generic_erb.rb -c -o $@ $(srcdir)/template/transdb.h.tmpl $(srcdir)/enc/trans enc/trans
|
2008-01-29 05:05:39 -05:00
|
|
|
|
2008-09-26 04:18:49 -04:00
|
|
|
known_errors.inc: $(srcdir)/template/known_errors.inc.tmpl $(srcdir)/defs/known_errors.def
|
2009-02-26 04:36:13 -05:00
|
|
|
$(BASERUBY) $(srcdir)/tool/generic_erb.rb -c -o $@ $(srcdir)/template/known_errors.inc.tmpl $(srcdir)/defs/known_errors.def
|
2008-09-26 04:18:49 -04:00
|
|
|
|
2007-12-24 03:40:59 -05:00
|
|
|
miniprelude.c: $(srcdir)/tool/compile_prelude.rb $(srcdir)/prelude.rb
|
2009-02-26 04:36:13 -05:00
|
|
|
$(BASERUBY) -I$(srcdir) $(srcdir)/tool/compile_prelude.rb $(srcdir)/prelude.rb $@
|
2007-08-24 21:20:30 -04:00
|
|
|
|
2009-07-30 10:12:25 -04:00
|
|
|
prelude.c: $(srcdir)/tool/compile_prelude.rb $(RBCONFIG) $(srcdir)/lib/rubygems/defaults.rb $(PRELUDE_SCRIPTS) $(PREP)
|
2008-05-29 23:18:45 -04:00
|
|
|
$(COMPILE_PRELUDE) $(PRELUDE_SCRIPTS) $@
|
2007-11-10 04:22:59 -05:00
|
|
|
|
2008-08-13 02:15:52 -04:00
|
|
|
golf_prelude.c: $(srcdir)/tool/compile_prelude.rb $(RBCONFIG) $(srcdir)/prelude.rb $(srcdir)/golf_prelude.rb $(PREP)
|
2008-05-29 23:18:45 -04:00
|
|
|
$(COMPILE_PRELUDE) $(srcdir)/golf_prelude.rb $@
|
2007-12-22 13:22:43 -05:00
|
|
|
|
|
|
|
prereq: incs srcs preludes
|
|
|
|
|
|
|
|
preludes: {$(VPATH)}miniprelude.c
|
2007-12-25 02:04:30 -05:00
|
|
|
preludes: {$(srcdir)}golf_prelude.c
|
2007-08-24 11:26:28 -04:00
|
|
|
|
2009-03-15 23:30:01 -04:00
|
|
|
$(srcdir)/revision.h:
|
|
|
|
@exit > $@
|
|
|
|
|
|
|
|
$(REVISION_H): $(srcdir)/version.h $(srcdir)/ChangeLog $(srcdir)/tool/file2lastrev.rb $(REVISION_FORCE)
|
|
|
|
@-$(BASERUBY) $(srcdir)/tool/file2lastrev.rb --revision.h "$(srcdir)" > "$(srcdir)/revision.tmp"
|
|
|
|
@$(IFCHANGE) "--timestamp=$@" "$(srcdir)/revision.h" "$(srcdir)/revision.tmp"
|
2007-12-22 01:14:50 -05:00
|
|
|
|
2009-03-14 19:26:11 -04:00
|
|
|
$(EXT_SRCS):
|
|
|
|
$(CHDIR) $(@D) && $(exec) $(MAKE) -f depend $(MFLAGS) top_srcdir=../.. srcdir=.
|
2007-11-15 00:29:58 -05:00
|
|
|
|
2007-01-05 08:52:16 -05:00
|
|
|
##
|
|
|
|
|
2008-06-17 07:32:40 -04:00
|
|
|
run: miniruby$(EXEEXT) PHONY
|
2008-12-12 05:35:31 -05:00
|
|
|
$(MINIRUBY) $(TESTRUN_SCRIPT) $(RUNOPT)
|
2006-12-31 10:02:22 -05:00
|
|
|
|
2007-02-02 13:35:40 -05:00
|
|
|
runruby: $(PROGRAM) PHONY
|
2008-12-12 05:35:31 -05:00
|
|
|
$(RUNRUBY) $(TESTRUN_SCRIPT)
|
2006-12-31 10:02:22 -05:00
|
|
|
|
2008-06-17 07:32:40 -04:00
|
|
|
parse: miniruby$(EXEEXT) PHONY
|
2008-12-12 05:35:31 -05:00
|
|
|
$(MINIRUBY) $(srcdir)/tool/parse.rb $(TESTRUN_SCRIPT)
|
2006-12-31 10:02:22 -05:00
|
|
|
|
2007-09-27 02:46:31 -04:00
|
|
|
COMPARE_RUBY = $(BASERUBY)
|
|
|
|
ITEM =
|
|
|
|
OPTS =
|
|
|
|
|
2007-02-02 13:35:40 -05:00
|
|
|
benchmark: $(PROGRAM) PHONY
|
2007-09-27 02:46:31 -04:00
|
|
|
$(BASERUBY) $(srcdir)/benchmark/driver.rb -v \
|
|
|
|
--executables="$(COMPARE_RUBY); $(RUNRUBY)" \
|
|
|
|
--pattern='bm_' --directory=$(srcdir)/benchmark $(OPTS)
|
2006-12-31 10:02:22 -05:00
|
|
|
|
2007-02-02 13:35:40 -05:00
|
|
|
benchmark-each: $(PROGRAM) PHONY
|
2007-09-27 02:46:31 -04:00
|
|
|
$(BASERUBY) $(srcdir)/benchmark/driver.rb -v \
|
|
|
|
--executables="$(COMPARE_RUBY); $(RUNRUBY)" \
|
|
|
|
--pattern=$(ITEM) --directory=$(srcdir)/benchmark $(OPTS)
|
2006-12-31 10:02:22 -05:00
|
|
|
|
2007-02-02 13:35:40 -05:00
|
|
|
tbench: $(PROGRAM) PHONY
|
2007-09-27 02:46:31 -04:00
|
|
|
$(BASERUBY) $(srcdir)/benchmark/driver.rb -v \
|
|
|
|
--executables="$(COMPARE_RUBY); $(RUNRUBY)" \
|
|
|
|
--pattern='bmx_' --directory=$(srcdir)/benchmark $(OPTS)
|
2006-12-31 10:02:22 -05:00
|
|
|
|
|
|
|
run.gdb:
|
2007-02-25 10:58:27 -05:00
|
|
|
echo b ruby_debug_breakpoint > run.gdb
|
|
|
|
echo '# handle SIGINT nostop' >> run.gdb
|
|
|
|
echo '# handle SIGPIPE nostop' >> run.gdb
|
|
|
|
echo '# b rb_longjmp' >> run.gdb
|
|
|
|
echo source $(srcdir)/breakpoints.gdb >> run.gdb
|
2007-06-27 16:03:53 -04:00
|
|
|
echo source $(srcdir)/.gdbinit >> run.gdb
|
2007-02-25 10:58:27 -05:00
|
|
|
echo run >> run.gdb
|
2006-12-31 10:02:22 -05:00
|
|
|
|
2008-06-17 07:32:40 -04:00
|
|
|
gdb: miniruby$(EXEEXT) run.gdb PHONY
|
2008-12-12 05:35:31 -05:00
|
|
|
gdb -x run.gdb --quiet --args $(MINIRUBY) $(TESTRUN_SCRIPT)
|
2006-12-31 10:02:22 -05:00
|
|
|
|
2008-10-04 02:36:20 -04:00
|
|
|
gdb-ruby: $(PROGRAM) run.gdb PHONY
|
2008-12-12 05:35:31 -05:00
|
|
|
gdb -x run.gdb --quiet --args $(PROGRAM) $(TESTRUN_SCRIPT)
|
2008-10-04 02:36:20 -04:00
|
|
|
|
2008-09-26 05:40:04 -04:00
|
|
|
dist:
|
2008-10-04 02:36:20 -04:00
|
|
|
$(BASERUBY) $(srcdir)/tool/make-snapshot tmp $(RELNAME)
|
2008-01-25 04:27:30 -05:00
|
|
|
|
2009-01-16 03:33:02 -05:00
|
|
|
up::
|
2009-04-09 22:32:15 -04:00
|
|
|
-@$(MAKE) $(MFLAGS) REVISION_FORCE=PHONY "$(REVISION_H)"
|
2008-01-27 04:19:00 -05:00
|
|
|
|
2009-04-07 00:35:24 -04:00
|
|
|
info: info-program info-libruby_a info-libruby_so info-arch
|
|
|
|
info-program:
|
|
|
|
@echo PROGRAM=$(PROGRAM)
|
|
|
|
info-libruby_a:
|
|
|
|
@echo LIBRUBY_A=$(LIBRUBY_A)
|
|
|
|
info-libruby_so:
|
|
|
|
@echo LIBRUBY_SO=$(LIBRUBY_SO)
|
|
|
|
info-arch:
|
|
|
|
@echo arch=$(arch)
|
|
|
|
|
2008-01-29 02:27:09 -05:00
|
|
|
help: PHONY
|
2008-01-27 19:35:48 -05:00
|
|
|
@echo " Makefile of Ruby"
|
|
|
|
@echo ""
|
|
|
|
@echo "targets:"
|
2010-01-28 19:50:13 -05:00
|
|
|
@echo " all (default): builds all of below"
|
2008-12-13 08:20:26 -05:00
|
|
|
@echo " miniruby: builds only miniruby"
|
2010-01-28 19:50:13 -05:00
|
|
|
@echo " encs: builds encodings"
|
|
|
|
@echo " exts: builds extensions"
|
|
|
|
@echo " main: builds encodings, extensions and ruby"
|
|
|
|
@echo " docs: builds documents"
|
2008-12-13 08:20:26 -05:00
|
|
|
@echo " run: runs test.rb by miniruby"
|
|
|
|
@echo " runruby: runs test.rb by ruby you just built"
|
|
|
|
@echo " gdb: runs test.rb by miniruby under gdb"
|
|
|
|
@echo " gdb-ruby: runs test.rb by ruby under gdb"
|
|
|
|
@echo " check: equals make test test-all"
|
|
|
|
@echo " test: ruby core tests"
|
|
|
|
@echo " test-all: all ruby tests"
|
|
|
|
@echo " test-rubyspec run RubySpec test suite"
|
|
|
|
@echo " update-rubyspec update local copy of RubySpec"
|
|
|
|
@echo " install: install all ruby distributions"
|
|
|
|
@echo " install-nodoc: install without rdoc"
|
|
|
|
@echo " clean: clean built objects"
|
|
|
|
@echo " golf: for golfers"
|
|
|
|
@echo
|
|
|
|
@echo "see DeveloperHowto for more detail: "
|
|
|
|
@echo " http://redmine.ruby-lang.org/wiki/ruby/DeveloperHowto"
|