* gc.c (set_heaps_increment): fix memory allocation strategy by
[ruby-svn.git] / common.mk
blob6034547f5a35eccb245f828c91883e40006f6227
1 bin: $(PROGRAM) $(WPROGRAM)
2 lib: $(LIBRUBY)
3 dll: $(LIBRUBY_SO)
5 .SUFFIXES: .inc
7 RUBYOPT =
9 STATIC_RUBY = static-ruby
11 EXTCONF = extconf.rb
12 RBCONFIG = ./.rbconfig.time
13 LIBRUBY_EXTS = ./.libruby-with-ext.time
14 RDOCOUT = $(EXTOUT)/rdoc
16 DMYEXT = dmyext.$(OBJEXT)
17 NORMALMAINOBJ = main.$(OBJEXT)
18 MAINOBJ = $(NORMALMAINOBJ)
19 EXTOBJS =
20 DLDOBJS = $(DMYEXT)
21 MINIOBJS = $(ARCHMINIOBJS) dmyencoding.$(OBJEXT) miniprelude.$(OBJEXT)
23 COMMONOBJS = array.$(OBJEXT) \
24 bignum.$(OBJEXT) \
25 class.$(OBJEXT) \
26 compar.$(OBJEXT) \
27 complex.$(OBJEXT) \
28 dir.$(OBJEXT) \
29 enum.$(OBJEXT) \
30 enumerator.$(OBJEXT) \
31 error.$(OBJEXT) \
32 eval.$(OBJEXT) \
33 load.$(OBJEXT) \
34 proc.$(OBJEXT) \
35 file.$(OBJEXT) \
36 gc.$(OBJEXT) \
37 hash.$(OBJEXT) \
38 inits.$(OBJEXT) \
39 io.$(OBJEXT) \
40 marshal.$(OBJEXT) \
41 math.$(OBJEXT) \
42 numeric.$(OBJEXT) \
43 object.$(OBJEXT) \
44 pack.$(OBJEXT) \
45 parse.$(OBJEXT) \
46 process.$(OBJEXT) \
47 prec.$(OBJEXT) \
48 random.$(OBJEXT) \
49 range.$(OBJEXT) \
50 rational.$(OBJEXT) \
51 re.$(OBJEXT) \
52 regcomp.$(OBJEXT) \
53 regenc.$(OBJEXT) \
54 regerror.$(OBJEXT) \
55 regexec.$(OBJEXT) \
56 regparse.$(OBJEXT) \
57 regsyntax.$(OBJEXT) \
58 ruby.$(OBJEXT) \
59 signal.$(OBJEXT) \
60 sprintf.$(OBJEXT) \
61 st.$(OBJEXT) \
62 string.$(OBJEXT) \
63 struct.$(OBJEXT) \
64 time.$(OBJEXT) \
65 transcode.$(OBJEXT) \
66 util.$(OBJEXT) \
67 variable.$(OBJEXT) \
68 version.$(OBJEXT) \
69 blockinlining.$(OBJEXT) \
70 compile.$(OBJEXT) \
71 debug.$(OBJEXT) \
72 iseq.$(OBJEXT) \
73 vm.$(OBJEXT) \
74 vm_dump.$(OBJEXT) \
75 thread.$(OBJEXT) \
76 cont.$(OBJEXT) \
77 id.$(OBJEXT) \
78 $(BUILTIN_ENCOBJS) \
79 $(MISSING)
81 OBJS = dln.$(OBJEXT) \
82 encoding.$(OBJEXT) \
83 prelude.$(OBJEXT) \
84 $(COMMONOBJS)
86 GOLFOBJS = goruby.$(OBJEXT) golf_prelude.$(OBJEXT)
88 PRELUDE_SCRIPTS = $(srcdir)/prelude.rb $(srcdir)/enc/prelude.rb $(srcdir)/gem_prelude.rb
89 PRELUDES = prelude.c miniprelude.c golf_prelude.c
91 SCRIPT_ARGS = --dest-dir="$(DESTDIR)" \
92 --extout="$(EXTOUT)" \
93 --mflags="$(MFLAGS)" \
94 --make-flags="$(MAKEFLAGS)"
95 EXTMK_ARGS = $(SCRIPT_ARGS) --extension $(EXTS) --extstatic $(EXTSTATIC) --
96 INSTRUBY_ARGS = $(SCRIPT_ARGS) \
97 --data-mode=$(INSTALL_DATA_MODE) \
98 --prog-mode=$(INSTALL_PROG_MODE) \
99 --installed-list $(INSTALLED_LIST)
100 INSTALL_PROG_MODE = 0755
101 INSTALL_DATA_MODE = 0644
103 PRE_LIBRUBY_UPDATE = $(MINIRUBY) -e 'ARGV[1] or File.unlink(ARGV[0]) rescue nil' -- \
104 $(LIBRUBY_EXTS) $(LIBRUBY_SO_UPDATE)
106 TESTSDIR = $(srcdir)/test
107 TESTWORKDIR = testwork
109 BOOTSTRAPRUBY = $(BASERUBY)
111 VCS = svn
113 all: $(MKFILES) $(PREP) incs $(RBCONFIG) $(LIBRUBY) encs
114 @$(MINIRUBY) $(srcdir)/ext/extmk.rb --make="$(MAKE)" $(EXTMK_ARGS)
115 prog: $(PROGRAM) $(WPROGRAM)
117 $(PREP): $(MKFILES)
119 miniruby$(EXEEXT): config.status $(NORMALMAINOBJ) $(MINIOBJS) $(COMMONOBJS) $(DMYEXT) $(ARCHFILE)
121 GORUBY = go$(RUBY_INSTALL_NAME)
122 golf: $(LIBRUBY) $(GOLFOBJS)
123 $(MAKE) $(MFLAGS) MAINOBJ="$(GOLFOBJS)" PROGRAM=$(GORUBY)$(EXEEXT) program
125 program: $(PROGRAM)
127 $(PROGRAM): $(LIBRUBY) $(MAINOBJ) $(OBJS) $(EXTOBJS) $(SETUP) $(PREP)
129 $(LIBRUBY_A): $(OBJS) $(DMYEXT) $(ARCHFILE)
131 $(LIBRUBY_SO): $(OBJS) $(DLDOBJS) $(LIBRUBY_A) $(PREP) $(LIBRUBY_SO_UPDATE) $(BUILTIN_ENCOBJS)
133 $(LIBRUBY_EXTS):
134 @exit > $@
136 $(STATIC_RUBY)$(EXEEXT): $(MAINOBJ) $(DLDOBJS) $(EXTOBJS) $(LIBRUBY_A)
137 @$(RM) $@
138 $(PURIFY) $(CC) $(MAINOBJ) $(DLDOBJS) $(EXTOBJS) $(LIBRUBY_A) $(MAINLIBS) $(EXTLIBS) $(LIBS) $(OUTFLAG)$@ $(LDFLAGS) $(XLDFLAGS)
140 ruby.imp: $(COMMONOBJS)
141 @$(NM) -Pgp $(COMMONOBJS) | awk 'BEGIN{print "#!"}; $$2~/^[BD]$$/{print $$1}' | sort -u -o $@
143 install: install-nodoc $(RDOCTARGET)
144 install-all: install-nodoc install-doc
146 install-nodoc: pre-install-nodoc do-install-nodoc post-install-nodoc
147 pre-install-nodoc:: pre-install-local pre-install-ext
148 do-install-nodoc:
149 $(MINIRUBY) $(srcdir)/instruby.rb --make="$(MAKE)" $(INSTRUBY_ARGS) --mantype="$(MANTYPE)"
150 post-install-nodoc:: post-install-local post-install-ext
152 install-local: pre-install-local do-install-local post-install-local
153 pre-install-local:: pre-install-bin pre-install-lib pre-install-man
154 do-install-local:
155 $(MINIRUBY) $(srcdir)/instruby.rb --make="$(MAKE)" $(INSTRUBY_ARGS) --install=local --mantype="$(MANTYPE)"
156 post-install-local:: post-install-bin post-install-lib post-install-man
158 install-ext: pre-install-ext do-install-ext post-install-ext
159 pre-install-ext:: pre-install-ext-arch pre-install-ext-comm
160 do-install-ext:
161 $(MINIRUBY) $(srcdir)/instruby.rb --make="$(MAKE)" $(INSTRUBY_ARGS) --install=ext
162 post-install-ext:: post-install-ext-arch post-install-ext-comm
164 install-arch: pre-install-arch do-install-arch post-install-arch
165 pre-install-arch:: pre-install-bin pre-install-ext-arch
166 do-install-arch:
167 $(MINIRUBY) $(srcdir)/instruby.rb --make="$(MAKE)" $(INSTRUBY_ARGS) --install=bin --install=ext-arch
168 post-install-arch:: post-install-bin post-install-ext-arch
170 install-comm: pre-install-comm do-install-comm post-install-comm
171 pre-install-comm:: pre-install-lib pre-install-ext-comm pre-install-man
172 do-install-comm:
173 $(MINIRUBY) $(srcdir)/instruby.rb --make="$(MAKE)" $(INSTRUBY_ARGS) --install=lib --install=ext-comm --install=man
174 post-install-comm:: post-install-lib post-install-ext-comm post-install-man
176 install-bin: pre-install-bin do-install-bin post-install-bin
177 pre-install-bin:: install-prereq
178 do-install-bin:
179 $(MINIRUBY) $(srcdir)/instruby.rb --make="$(MAKE)" $(INSTRUBY_ARGS) --install=bin
180 post-install-bin::
181 @$(NULLCMD)
183 install-lib: pre-install-lib do-install-lib post-install-lib
184 pre-install-lib:: install-prereq
185 do-install-lib:
186 $(MINIRUBY) $(srcdir)/instruby.rb --make="$(MAKE)" $(INSTRUBY_ARGS) --install=lib
187 post-install-lib::
188 @$(NULLCMD)
190 install-ext-comm: pre-install-ext-comm do-install-ext-comm post-install-ext-comm
191 pre-install-ext-comm:: install-prereq
192 do-install-ext-comm:
193 $(MINIRUBY) $(srcdir)/instruby.rb --make="$(MAKE)" $(INSTRUBY_ARGS) --install=ext-comm
194 post-install-ext-comm::
195 @$(NULLCMD)
197 install-ext-arch: pre-install-ext-arch do-install-ext-arch post-install-ext-arch
198 pre-install-ext-arch:: install-prereq
199 do-install-ext-arch:
200 $(MINIRUBY) $(srcdir)/instruby.rb --make="$(MAKE)" $(INSTRUBY_ARGS) --install=ext-arch
201 post-install-ext-arch::
202 @$(NULLCMD)
204 install-man: pre-install-man do-install-man post-install-man
205 pre-install-man:: install-prereq
206 do-install-man:
207 $(MINIRUBY) $(srcdir)/instruby.rb --make="$(MAKE)" $(INSTRUBY_ARGS) --install=man --mantype="$(MANTYPE)"
208 post-install-man::
209 @$(NULLCMD)
211 what-where: no-install
212 no-install: no-install-nodoc no-install-doc
213 what-where-all: no-install-all
214 no-install-all: no-install-nodoc
216 what-where-nodoc: no-install-nodoc
217 no-install-nodoc: pre-no-install-nodoc dont-install-nodoc post-no-install-nodoc
218 pre-no-install-nodoc:: pre-no-install-local pre-no-install-ext
219 dont-install-nodoc:
220 $(MINIRUBY) $(srcdir)/instruby.rb -n --make="$(MAKE)" $(INSTRUBY_ARGS) --mantype="$(MANTYPE)"
221 post-no-install-nodoc:: post-no-install-local post-no-install-ext
223 what-where-local: no-install-local
224 no-install-local: pre-no-install-local dont-install-local post-no-install-local
225 pre-no-install-local:: pre-no-install-bin pre-no-install-lib pre-no-install-man
226 dont-install-local:
227 $(MINIRUBY) $(srcdir)/instruby.rb -n --make="$(MAKE)" $(INSTRUBY_ARGS) --install=local --mantype="$(MANTYPE)"
228 post-no-install-local:: post-no-install-bin post-no-install-lib post-no-install-man
230 what-where-ext: no-install-ext
231 no-install-ext: pre-no-install-ext dont-install-ext post-no-install-ext
232 pre-no-install-ext:: pre-no-install-ext-arch pre-no-install-ext-comm
233 dont-install-ext:
234 $(MINIRUBY) $(srcdir)/instruby.rb -n --make="$(MAKE)" $(INSTRUBY_ARGS) --install=ext
235 post-no-install-ext:: post-no-install-ext-arch post-no-install-ext-comm
237 what-where-arch: no-install-arch
238 no-install-arch: pre-no-install-arch dont-install-arch post-no-install-arch
239 pre-no-install-arch:: pre-no-install-bin pre-no-install-ext-arch
240 dont-install-arch:
241 $(MINIRUBY) $(srcdir)/instruby.rb -n --make="$(MAKE)" $(INSTRUBY_ARGS) --install=bin --install=ext-arch
242 post-no-install-arch:: post-no-install-lib post-no-install-man post-no-install-ext-arch
244 what-where-comm: no-install-comm
245 no-install-comm: pre-no-install-comm dont-install-comm post-no-install-comm
246 pre-no-install-comm:: pre-no-install-lib pre-no-install-ext-comm pre-no-install-man
247 dont-install-comm:
248 $(MINIRUBY) $(srcdir)/instruby.rb -n --make="$(MAKE)" $(INSTRUBY_ARGS) --install=lib --install=ext-comm --install=man
249 post-no-install-comm:: post-no-install-lib post-no-install-ext-comm post-no-install-man
251 what-where-bin: no-install-bin
252 no-install-bin: pre-no-install-bin dont-install-bin post-no-install-bin
253 pre-no-install-bin:: install-prereq
254 dont-install-bin:
255 $(MINIRUBY) $(srcdir)/instruby.rb -n --make="$(MAKE)" $(INSTRUBY_ARGS) --install=bin
256 post-no-install-bin::
257 @$(NULLCMD)
259 what-where-lib: no-install-lib
260 no-install-lib: pre-no-install-lib dont-install-lib post-no-install-lib
261 pre-no-install-lib:: install-prereq
262 dont-install-lib:
263 $(MINIRUBY) $(srcdir)/instruby.rb -n --make="$(MAKE)" $(INSTRUBY_ARGS) --install=lib
264 post-no-install-lib::
265 @$(NULLCMD)
267 what-where-ext-comm: no-install-ext-comm
268 no-install-ext-comm: pre-no-install-ext-comm dont-install-ext-comm post-no-install-ext-comm
269 pre-no-install-ext-comm:: install-prereq
270 dont-install-ext-comm:
271 $(MINIRUBY) $(srcdir)/instruby.rb -n --make="$(MAKE)" $(INSTRUBY_ARGS) --install=ext-comm
272 post-no-install-ext-comm::
273 @$(NULLCMD)
275 what-where-ext-arch: no-install-ext-arch
276 no-install-ext-arch: pre-no-install-ext-arch dont-install-ext-arch post-no-install-ext-arch
277 pre-no-install-ext-arch:: install-prereq
278 dont-install-ext-arch:
279 $(MINIRUBY) $(srcdir)/instruby.rb -n --make="$(MAKE)" $(INSTRUBY_ARGS) --install=ext-arch
280 post-no-install-ext-arch::
281 @$(NULLCMD)
283 what-where-man: no-install-man
284 no-install-man: pre-no-install-man dont-install-man post-no-install-man
285 pre-no-install-man:: install-prereq
286 dont-install-man:
287 $(MINIRUBY) $(srcdir)/instruby.rb -n --make="$(MAKE)" $(INSTRUBY_ARGS) --install=man --mantype="$(MANTYPE)"
288 post-no-install-man::
289 @$(NULLCMD)
291 install-doc: rdoc pre-install-doc do-install-doc post-install-doc
292 pre-install-doc:: install-prereq
293 do-install-doc: $(PROGRAM)
294 $(MINIRUBY) $(srcdir)/instruby.rb --make="$(MAKE)" $(INSTRUBY_ARGS) --install=rdoc --rdoc-output="$(RDOCOUT)"
295 post-install-doc::
296 @$(NULLCMD)
298 rdoc: $(PROGRAM) PHONY
299 @echo Generating RDoc documentation
300 $(RUNRUBY) "$(srcdir)/bin/rdoc" --all --ri --op "$(RDOCOUT)" "$(srcdir)"
302 what-where-doc: no-install-doc
303 no-install-doc: pre-no-install-doc dont-install-doc post-no-install-doc
304 pre-no-install-doc:: install-prereq
305 dont-install-doc::
306 $(MINIRUBY) $(srcdir)/instruby.rb -n --make="$(MAKE)" $(INSTRUBY_ARGS) --install=rdoc --rdoc-output="$(RDOCOUT)"
307 post-no-install-doc::
308 @$(NULLCMD)
310 CLEAR_INSTALLED_LIST = clear-installed-list
312 install-prereq: $(CLEAR_INSTALLED_LIST)
314 clear-installed-list:
315 @exit > $(INSTALLED_LIST)
317 clean: clean-ext clean-local clean-enc
318 clean-local::
319 @$(RM) $(OBJS) $(MINIOBJS) $(MAINOBJ) $(LIBRUBY_A) $(LIBRUBY_SO) $(LIBRUBY) $(LIBRUBY_ALIASES)
320 @$(RM) $(PROGRAM) $(WPROGRAM) miniruby$(EXEEXT) dmyext.$(OBJEXT) $(ARCHFILE) .*.time
321 @$(RM) *.inc $(GOLFOBJS) y.tab.c y.output encdb.h transdb.h
322 clean-ext:
323 @-$(MINIRUBY) $(srcdir)/ext/extmk.rb --make="$(MAKE)" $(EXTMK_ARGS) clean
324 clean-enc:
325 @-$(MAKE) -f enc.mk $(MFLAGS) clean
327 distclean: distclean-ext distclean-local distclean-enc
328 distclean-local:: clean-local
329 @$(RM) $(MKFILES) config.h rbconfig.rb yasmdata.rb encdb.h
330 @$(RM) config.cache config.log config.status config.status.lineno $(PRELUDES)
331 @$(RM) *~ *.bak *.stackdump core *.core gmon.out $(PREP)
332 distclean-ext:
333 @-$(MINIRUBY) $(srcdir)/ext/extmk.rb --make="$(MAKE)" $(EXTMK_ARGS) distclean
334 # -$(RM) $(INSTALLED_LIST) $(arch_hdrdir)/ruby/config.h
335 # -rmdir -p $(arch_hdrdir)/ruby
336 distclean-enc: clean-enc
337 @-$(MAKE) -f enc.mk $(MFLAGS) distclean
339 realclean:: realclean-ext realclean-local realclean-enc
340 realclean-local:: distclean-local
341 @$(RM) parse.c lex.c revision.h
342 realclean-ext::
343 @-$(MINIRUBY) $(srcdir)/ext/extmk.rb --make="$(MAKE)" $(EXTMK_ARGS) realclean
344 realclean-enc:: distclean-enc
346 check: test test-all
348 btest: miniruby$(EXEEXT) PHONY
349 $(BOOTSTRAPRUBY) "$(srcdir)/bootstraptest/runner.rb" --ruby="$(MINIRUBY)" $(OPTS)
351 btest-miniruby: miniruby$(EXEEXT) $(RBCONFIG) $(PROGRAM) PHONY
352 @$(MINIRUBY) "$(srcdir)/bootstraptest/runner.rb" --ruby="$(MINIRUBY)" -q
354 test-sample: miniruby$(EXEEXT) $(RBCONFIG) $(PROGRAM) PHONY
355 @$(MINIRUBY) $(srcdir)/rubytest.rb
357 test: test-sample btest-miniruby
359 test-all:
360 $(RUNRUBY) "$(srcdir)/test/runner.rb" --basedir="$(TESTSDIR)" --runner=$(TESTUI) $(TESTS)
362 extconf:
363 $(MINIRUBY) -run -e mkdir -- -p "$(EXTCONFDIR)"
364 $(RUNRUBY) -C "$(EXTCONFDIR)" $(EXTCONF) $(EXTCONFARGS)
366 $(RBCONFIG): $(srcdir)/mkconfig.rb config.status $(PREP)
367 @$(MINIRUBY) $(srcdir)/mkconfig.rb -timestamp=$@ \
368 -install_name=$(RUBY_INSTALL_NAME) \
369 -so_name=$(RUBY_SO_NAME) rbconfig.rb
371 encs: enc.mk
372 $(MINIRUBY) -run -e mkdir -- -p "$(EXTOUT)/$(arch)/enc/trans" enc/trans
373 $(MAKE) -f enc.mk $(MFLAGS)
375 enc.mk: $(srcdir)/enc/make_encmake.rb $(srcdir)/enc/Makefile.in $(srcdir)/enc/depend \
376 $(srcdir)/lib/mkmf.rb $(RBCONFIG)
377 $(MINIRUBY) $(srcdir)/enc/make_encmake.rb --builtin-encs="$(BUILTIN_ENCOBJS)" $@
379 .PRECIOUS: $(MKFILES)
381 .PHONY: test install install-nodoc install-doc dist
383 PHONY:
385 {$(VPATH)}parse.c: {$(VPATH)}parse.y $(srcdir)/tool/ytab.sed
387 {$(srcdir)}.y.c:
388 $(YACC) $(YFLAGS) -o y.tab.c $<
389 sed -f $(srcdir)/tool/ytab.sed -e "/^#/s!y\.tab\.c!$@!" y.tab.c > $@.new
390 @$(RM) $@ y.tab.c
391 @$(MV) $@.new $@
393 acosh.$(OBJEXT): {$(VPATH)}acosh.c
394 alloca.$(OBJEXT): {$(VPATH)}alloca.c {$(VPATH)}config.h
395 crypt.$(OBJEXT): {$(VPATH)}crypt.c
396 dup2.$(OBJEXT): {$(VPATH)}dup2.c
397 erf.$(OBJEXT): {$(VPATH)}erf.c
398 finite.$(OBJEXT): {$(VPATH)}finite.c
399 flock.$(OBJEXT): {$(VPATH)}flock.c
400 memcmp.$(OBJEXT): {$(VPATH)}memcmp.c
401 memmove.$(OBJEXT): {$(VPATH)}memmove.c
402 mkdir.$(OBJEXT): {$(VPATH)}mkdir.c
403 strchr.$(OBJEXT): {$(VPATH)}strchr.c
404 strdup.$(OBJEXT): {$(VPATH)}strdup.c
405 strerror.$(OBJEXT): {$(VPATH)}strerror.c
406 strftime.$(OBJEXT): {$(VPATH)}strftime.c
407 strstr.$(OBJEXT): {$(VPATH)}strstr.c
408 strtod.$(OBJEXT): {$(VPATH)}strtod.c
409 strtol.$(OBJEXT): {$(VPATH)}strtol.c
410 nt.$(OBJEXT): {$(VPATH)}nt.c
411 x68.$(OBJEXT): {$(VPATH)}x68.c
412 os2.$(OBJEXT): {$(VPATH)}os2.c
413 dl_os2.$(OBJEXT): {$(VPATH)}dl_os2.c
414 ia64.$(OBJEXT): {$(VPATH)}ia64.s
415 $(CC) $(CFLAGS) -c $<
417 # when I use -I., there is confliction at "OpenFile"
418 # so, set . into environment varible "include"
419 win32.$(OBJEXT): {$(VPATH)}win32.c
423 array.$(OBJEXT): {$(VPATH)}array.c {$(VPATH)}ruby.h {$(VPATH)}config.h \
424 {$(VPATH)}defines.h {$(VPATH)}missing.h {$(VPATH)}intern.h \
425 {$(VPATH)}st.h {$(VPATH)}util.h
426 bignum.$(OBJEXT): {$(VPATH)}bignum.c {$(VPATH)}ruby.h {$(VPATH)}config.h \
427 {$(VPATH)}defines.h {$(VPATH)}missing.h {$(VPATH)}intern.h \
428 {$(VPATH)}st.h
429 class.$(OBJEXT): {$(VPATH)}class.c {$(VPATH)}ruby.h {$(VPATH)}config.h \
430 {$(VPATH)}defines.h {$(VPATH)}missing.h {$(VPATH)}intern.h \
431 {$(VPATH)}st.h {$(VPATH)}signal.h {$(VPATH)}node.h
432 compar.$(OBJEXT): {$(VPATH)}compar.c {$(VPATH)}ruby.h {$(VPATH)}config.h \
433 {$(VPATH)}defines.h {$(VPATH)}missing.h {$(VPATH)}intern.h \
434 {$(VPATH)}st.h
435 complex.$(OBJEXT): {$(VPATH)}complex.c {$(VPATH)}ruby.h {$(VPATH)}config.h \
436 {$(VPATH)}defines.h {$(VPATH)}missing.h {$(VPATH)}intern.h \
437 {$(VPATH)}st.h
438 dir.$(OBJEXT): {$(VPATH)}dir.c {$(VPATH)}ruby.h {$(VPATH)}config.h \
439 {$(VPATH)}defines.h {$(VPATH)}missing.h {$(VPATH)}intern.h \
440 {$(VPATH)}st.h {$(VPATH)}util.h
441 dln.$(OBJEXT): {$(VPATH)}dln.c {$(VPATH)}ruby.h {$(VPATH)}config.h \
442 {$(VPATH)}defines.h {$(VPATH)}missing.h {$(VPATH)}intern.h \
443 {$(VPATH)}st.h {$(VPATH)}dln.h
444 dmydln.$(OBJEXT): {$(VPATH)}dmydln.c dln.$(OBJEXT)
445 dmyext.$(OBJEXT): {$(VPATH)}dmyext.c
446 dmyencoding.$(OBJEXT): {$(VPATH)}dmyencoding.c \
447 {$(VPATH)}encoding.c {$(VPATH)}ruby.h \
448 {$(VPATH)}config.h {$(VPATH)}defines.h {$(VPATH)}missing.h \
449 {$(VPATH)}intern.h {$(VPATH)}st.h {$(VPATH)}encoding.h \
450 {$(VPATH)}oniguruma.h {$(VPATH)}regenc.h
451 encoding.$(OBJEXT): dmyencoding.$(OBJEXT)
452 enum.$(OBJEXT): {$(VPATH)}enum.c {$(VPATH)}ruby.h {$(VPATH)}config.h \
453 {$(VPATH)}defines.h {$(VPATH)}missing.h {$(VPATH)}intern.h \
454 {$(VPATH)}st.h {$(VPATH)}node.h {$(VPATH)}util.h
455 enumerator.$(OBJEXT): {$(VPATH)}enumerator.c {$(VPATH)}ruby.h \
456 {$(VPATH)}config.h {$(VPATH)}defines.h {$(VPATH)}missing.h \
457 {$(VPATH)}intern.h {$(VPATH)}st.h {$(VPATH)}debug.h {$(VPATH)}node.h
458 error.$(OBJEXT): {$(VPATH)}error.c {$(VPATH)}ruby.h {$(VPATH)}config.h \
459 {$(VPATH)}defines.h {$(VPATH)}missing.h {$(VPATH)}intern.h \
460 {$(VPATH)}st.h {$(VPATH)}vm_core.h {$(VPATH)}signal.h {$(VPATH)}node.h \
461 {$(VPATH)}debug.h {$(VPATH)}vm_opts.h {$(VPATH)}id.h \
462 {$(VPATH)}thread_$(THREAD_MODEL).h
463 eval.$(OBJEXT): {$(VPATH)}eval.c {$(VPATH)}eval_intern.h \
464 {$(VPATH)}ruby.h {$(VPATH)}config.h {$(VPATH)}defines.h \
465 {$(VPATH)}missing.h {$(VPATH)}intern.h {$(VPATH)}st.h {$(VPATH)}node.h \
466 {$(VPATH)}util.h {$(VPATH)}signal.h {$(VPATH)}vm_core.h \
467 {$(VPATH)}debug.h {$(VPATH)}vm_opts.h {$(VPATH)}id.h \
468 {$(VPATH)}thread_$(THREAD_MODEL).h {$(VPATH)}dln.h \
469 {$(VPATH)}eval_error.c {$(VPATH)}eval_method.c {$(VPATH)}eval_safe.c \
470 {$(VPATH)}eval_jump.c
471 load.$(OBJEXT): {$(VPATH)}load.c {$(VPATH)}eval_intern.h \
472 {$(VPATH)}ruby.h {$(VPATH)}config.h {$(VPATH)}defines.h \
473 {$(VPATH)}missing.h {$(VPATH)}intern.h {$(VPATH)}st.h {$(VPATH)}node.h \
474 {$(VPATH)}util.h {$(VPATH)}signal.h {$(VPATH)}vm_core.h \
475 {$(VPATH)}debug.h {$(VPATH)}vm_opts.h {$(VPATH)}id.h \
476 {$(VPATH)}thread_$(THREAD_MODEL).h {$(VPATH)}dln.h
477 file.$(OBJEXT): {$(VPATH)}file.c {$(VPATH)}ruby.h {$(VPATH)}config.h \
478 {$(VPATH)}defines.h {$(VPATH)}missing.h {$(VPATH)}intern.h \
479 {$(VPATH)}st.h {$(VPATH)}io.h {$(VPATH)}encoding.h {$(VPATH)}oniguruma.h \
480 {$(VPATH)}signal.h {$(VPATH)}util.h {$(VPATH)}dln.h
481 gc.$(OBJEXT): {$(VPATH)}gc.c {$(VPATH)}ruby.h {$(VPATH)}config.h \
482 {$(VPATH)}defines.h {$(VPATH)}missing.h {$(VPATH)}intern.h \
483 {$(VPATH)}st.h {$(VPATH)}signal.h {$(VPATH)}node.h {$(VPATH)}re.h \
484 {$(VPATH)}regex.h {$(VPATH)}oniguruma.h {$(VPATH)}io.h \
485 {$(VPATH)}encoding.h {$(VPATH)}vm_core.h {$(VPATH)}debug.h \
486 {$(VPATH)}vm_opts.h {$(VPATH)}id.h {$(VPATH)}thread_$(THREAD_MODEL).h \
487 {$(VPATH)}gc.h {$(VPATH)}eval_intern.h
488 hash.$(OBJEXT): {$(VPATH)}hash.c {$(VPATH)}ruby.h {$(VPATH)}config.h \
489 {$(VPATH)}defines.h {$(VPATH)}missing.h {$(VPATH)}intern.h \
490 {$(VPATH)}st.h {$(VPATH)}util.h {$(VPATH)}signal.h
491 inits.$(OBJEXT): {$(VPATH)}inits.c {$(VPATH)}ruby.h {$(VPATH)}config.h \
492 {$(VPATH)}defines.h {$(VPATH)}missing.h {$(VPATH)}intern.h \
493 {$(VPATH)}st.h
494 io.$(OBJEXT): {$(VPATH)}io.c {$(VPATH)}ruby.h {$(VPATH)}config.h \
495 {$(VPATH)}defines.h {$(VPATH)}missing.h {$(VPATH)}intern.h \
496 {$(VPATH)}st.h {$(VPATH)}io.h {$(VPATH)}encoding.h {$(VPATH)}oniguruma.h \
497 {$(VPATH)}signal.h {$(VPATH)}util.h
498 main.$(OBJEXT): {$(VPATH)}main.c {$(VPATH)}ruby.h {$(VPATH)}config.h \
499 {$(VPATH)}defines.h {$(VPATH)}missing.h {$(VPATH)}intern.h \
500 {$(VPATH)}st.h
501 marshal.$(OBJEXT): {$(VPATH)}marshal.c {$(VPATH)}ruby.h \
502 {$(VPATH)}config.h {$(VPATH)}defines.h {$(VPATH)}missing.h \
503 {$(VPATH)}intern.h {$(VPATH)}st.h {$(VPATH)}io.h {$(VPATH)}encoding.h \
504 {$(VPATH)}oniguruma.h {$(VPATH)}util.h
505 math.$(OBJEXT): {$(VPATH)}math.c {$(VPATH)}ruby.h {$(VPATH)}config.h \
506 {$(VPATH)}defines.h {$(VPATH)}missing.h {$(VPATH)}intern.h \
507 {$(VPATH)}st.h
508 numeric.$(OBJEXT): {$(VPATH)}numeric.c {$(VPATH)}ruby.h \
509 {$(VPATH)}config.h {$(VPATH)}defines.h {$(VPATH)}missing.h \
510 {$(VPATH)}intern.h {$(VPATH)}st.h {$(VPATH)}encoding.h \
511 {$(VPATH)}oniguruma.h
512 object.$(OBJEXT): {$(VPATH)}object.c {$(VPATH)}ruby.h {$(VPATH)}config.h \
513 {$(VPATH)}defines.h {$(VPATH)}missing.h {$(VPATH)}intern.h \
514 {$(VPATH)}st.h {$(VPATH)}util.h {$(VPATH)}debug.h {$(VPATH)}node.h
515 pack.$(OBJEXT): {$(VPATH)}pack.c {$(VPATH)}ruby.h {$(VPATH)}config.h \
516 {$(VPATH)}defines.h {$(VPATH)}missing.h {$(VPATH)}intern.h \
517 {$(VPATH)}st.h
518 parse.$(OBJEXT): {$(VPATH)}parse.c {$(VPATH)}parse.y {$(VPATH)}ruby.h \
519 {$(VPATH)}config.h {$(VPATH)}defines.h {$(VPATH)}missing.h \
520 {$(VPATH)}intern.h {$(VPATH)}st.h {$(VPATH)}node.h {$(VPATH)}encoding.h \
521 {$(VPATH)}oniguruma.h {$(VPATH)}id.h {$(VPATH)}regenc.h \
522 {$(VPATH)}regex.h {$(VPATH)}util.h {$(VPATH)}lex.c {$(VPATH)}keywords \
523 {$(VPATH)}debug.h
524 prec.$(OBJEXT): {$(VPATH)}prec.c {$(VPATH)}ruby.h {$(VPATH)}config.h \
525 {$(VPATH)}defines.h {$(VPATH)}missing.h {$(VPATH)}intern.h \
526 {$(VPATH)}st.h
527 proc.$(OBJEXT): {$(VPATH)}proc.c {$(VPATH)}eval_intern.h \
528 {$(VPATH)}ruby.h {$(VPATH)}config.h {$(VPATH)}defines.h \
529 {$(VPATH)}missing.h {$(VPATH)}intern.h {$(VPATH)}st.h {$(VPATH)}node.h \
530 {$(VPATH)}util.h {$(VPATH)}signal.h {$(VPATH)}vm_core.h \
531 {$(VPATH)}debug.h {$(VPATH)}vm_opts.h {$(VPATH)}id.h \
532 {$(VPATH)}thread_$(THREAD_MODEL).h {$(VPATH)}dln.h {$(VPATH)}gc.h
533 process.$(OBJEXT): {$(VPATH)}process.c {$(VPATH)}ruby.h \
534 {$(VPATH)}config.h {$(VPATH)}defines.h {$(VPATH)}missing.h \
535 {$(VPATH)}intern.h {$(VPATH)}st.h {$(VPATH)}signal.h {$(VPATH)}vm_core.h \
536 {$(VPATH)}node.h {$(VPATH)}debug.h {$(VPATH)}vm_opts.h {$(VPATH)}id.h \
537 {$(VPATH)}thread_$(THREAD_MODEL).h
538 random.$(OBJEXT): {$(VPATH)}random.c {$(VPATH)}ruby.h {$(VPATH)}config.h \
539 {$(VPATH)}defines.h {$(VPATH)}missing.h {$(VPATH)}intern.h \
540 {$(VPATH)}st.h
541 range.$(OBJEXT): {$(VPATH)}range.c {$(VPATH)}ruby.h {$(VPATH)}config.h \
542 {$(VPATH)}defines.h {$(VPATH)}missing.h {$(VPATH)}intern.h \
543 {$(VPATH)}st.h
544 rational.$(OBJEXT): {$(VPATH)}rational.c {$(VPATH)}ruby.h {$(VPATH)}config.h \
545 {$(VPATH)}defines.h {$(VPATH)}missing.h {$(VPATH)}intern.h \
546 {$(VPATH)}st.h
547 re.$(OBJEXT): {$(VPATH)}re.c {$(VPATH)}ruby.h {$(VPATH)}config.h \
548 {$(VPATH)}defines.h {$(VPATH)}missing.h {$(VPATH)}intern.h \
549 {$(VPATH)}st.h {$(VPATH)}re.h {$(VPATH)}regex.h {$(VPATH)}oniguruma.h \
550 {$(VPATH)}encoding.h {$(VPATH)}util.h {$(VPATH)}regint.h \
551 {$(VPATH)}regenc.h
552 regcomp.$(OBJEXT): {$(VPATH)}regcomp.c {$(VPATH)}regparse.h \
553 {$(VPATH)}regint.h {$(VPATH)}config.h {$(VPATH)}defines.h \
554 {$(VPATH)}regenc.h {$(VPATH)}oniguruma.h {$(VPATH)}st.h
555 regenc.$(OBJEXT): {$(VPATH)}regenc.c {$(VPATH)}regint.h \
556 {$(VPATH)}config.h {$(VPATH)}defines.h {$(VPATH)}regenc.h \
557 {$(VPATH)}oniguruma.h {$(VPATH)}st.h
558 regerror.$(OBJEXT): {$(VPATH)}regerror.c {$(VPATH)}regint.h \
559 {$(VPATH)}config.h {$(VPATH)}defines.h {$(VPATH)}regenc.h \
560 {$(VPATH)}oniguruma.h {$(VPATH)}st.h
561 regexec.$(OBJEXT): {$(VPATH)}regexec.c {$(VPATH)}regint.h \
562 {$(VPATH)}config.h {$(VPATH)}defines.h {$(VPATH)}regenc.h \
563 {$(VPATH)}oniguruma.h {$(VPATH)}st.h
564 regparse.$(OBJEXT): {$(VPATH)}regparse.c {$(VPATH)}regparse.h \
565 {$(VPATH)}regint.h {$(VPATH)}config.h {$(VPATH)}defines.h \
566 {$(VPATH)}regenc.h {$(VPATH)}oniguruma.h {$(VPATH)}st.h
567 regsyntax.$(OBJEXT): {$(VPATH)}regsyntax.c {$(VPATH)}regint.h \
568 {$(VPATH)}config.h {$(VPATH)}defines.h {$(VPATH)}regenc.h \
569 {$(VPATH)}oniguruma.h {$(VPATH)}st.h
570 ruby.$(OBJEXT): {$(VPATH)}ruby.c {$(VPATH)}ruby.h {$(VPATH)}config.h \
571 {$(VPATH)}defines.h {$(VPATH)}missing.h {$(VPATH)}intern.h \
572 {$(VPATH)}st.h {$(VPATH)}node.h {$(VPATH)}encoding.h \
573 {$(VPATH)}oniguruma.h {$(VPATH)}eval_intern.h {$(VPATH)}util.h \
574 {$(VPATH)}signal.h {$(VPATH)}vm_core.h {$(VPATH)}debug.h \
575 {$(VPATH)}vm_opts.h {$(VPATH)}id.h {$(VPATH)}thread_$(THREAD_MODEL).h \
576 {$(VPATH)}dln.h
577 signal.$(OBJEXT): {$(VPATH)}signal.c {$(VPATH)}ruby.h {$(VPATH)}config.h \
578 {$(VPATH)}defines.h {$(VPATH)}missing.h {$(VPATH)}intern.h \
579 {$(VPATH)}st.h {$(VPATH)}signal.h {$(VPATH)}node.h {$(VPATH)}vm_core.h \
580 {$(VPATH)}debug.h {$(VPATH)}vm_opts.h {$(VPATH)}id.h \
581 {$(VPATH)}thread_$(THREAD_MODEL).h
582 sprintf.$(OBJEXT): {$(VPATH)}sprintf.c {$(VPATH)}ruby.h \
583 {$(VPATH)}config.h {$(VPATH)}defines.h {$(VPATH)}missing.h \
584 {$(VPATH)}intern.h {$(VPATH)}st.h {$(VPATH)}re.h {$(VPATH)}regex.h \
585 {$(VPATH)}oniguruma.h {$(VPATH)}encoding.h {$(VPATH)}vsnprintf.c
586 st.$(OBJEXT): {$(VPATH)}st.c {$(VPATH)}config.h {$(VPATH)}defines.h \
587 {$(VPATH)}st.h
588 string.$(OBJEXT): {$(VPATH)}string.c {$(VPATH)}ruby.h {$(VPATH)}config.h \
589 {$(VPATH)}defines.h {$(VPATH)}missing.h {$(VPATH)}intern.h \
590 {$(VPATH)}st.h {$(VPATH)}re.h {$(VPATH)}regex.h {$(VPATH)}oniguruma.h \
591 {$(VPATH)}encoding.h
592 struct.$(OBJEXT): {$(VPATH)}struct.c {$(VPATH)}ruby.h {$(VPATH)}config.h \
593 {$(VPATH)}defines.h {$(VPATH)}missing.h {$(VPATH)}intern.h \
594 {$(VPATH)}st.h
595 thread.$(OBJEXT): {$(VPATH)}thread.c {$(VPATH)}eval_intern.h \
596 {$(VPATH)}ruby.h {$(VPATH)}config.h {$(VPATH)}defines.h \
597 {$(VPATH)}missing.h {$(VPATH)}intern.h {$(VPATH)}st.h {$(VPATH)}node.h \
598 {$(VPATH)}util.h {$(VPATH)}signal.h {$(VPATH)}vm_core.h \
599 {$(VPATH)}debug.h {$(VPATH)}vm_opts.h {$(VPATH)}id.h \
600 {$(VPATH)}thread_$(THREAD_MODEL).h {$(VPATH)}dln.h {$(VPATH)}vm.h \
601 {$(VPATH)}gc.h {$(VPATH)}thread_$(THREAD_MODEL).c
602 transcode.$(OBJEXT): {$(VPATH)}transcode.c {$(VPATH)}ruby.h \
603 {$(VPATH)}config.h {$(VPATH)}defines.h {$(VPATH)}missing.h \
604 {$(VPATH)}intern.h {$(VPATH)}st.h {$(VPATH)}encoding.h \
605 {$(VPATH)}oniguruma.h {$(VPATH)}transcode_data.h
606 cont.$(OBJEXT): {$(VPATH)}cont.c {$(VPATH)}ruby.h {$(VPATH)}config.h \
607 {$(VPATH)}defines.h {$(VPATH)}missing.h {$(VPATH)}intern.h \
608 {$(VPATH)}st.h {$(VPATH)}vm_core.h {$(VPATH)}signal.h {$(VPATH)}node.h \
609 {$(VPATH)}debug.h {$(VPATH)}vm_opts.h {$(VPATH)}id.h \
610 {$(VPATH)}thread_$(THREAD_MODEL).h {$(VPATH)}gc.h \
611 {$(VPATH)}eval_intern.h {$(VPATH)}util.h {$(VPATH)}dln.h
612 time.$(OBJEXT): {$(VPATH)}time.c {$(VPATH)}ruby.h {$(VPATH)}config.h \
613 {$(VPATH)}defines.h {$(VPATH)}missing.h {$(VPATH)}intern.h \
614 {$(VPATH)}st.h
615 util.$(OBJEXT): {$(VPATH)}util.c {$(VPATH)}ruby.h {$(VPATH)}config.h \
616 {$(VPATH)}defines.h {$(VPATH)}missing.h {$(VPATH)}intern.h \
617 {$(VPATH)}st.h {$(VPATH)}util.h
618 variable.$(OBJEXT): {$(VPATH)}variable.c {$(VPATH)}ruby.h \
619 {$(VPATH)}config.h {$(VPATH)}defines.h {$(VPATH)}missing.h \
620 {$(VPATH)}intern.h {$(VPATH)}st.h {$(VPATH)}node.h {$(VPATH)}util.h
621 version.$(OBJEXT): {$(VPATH)}version.c {$(VPATH)}ruby.h \
622 {$(VPATH)}config.h {$(VPATH)}defines.h {$(VPATH)}missing.h \
623 {$(VPATH)}intern.h {$(VPATH)}st.h {$(VPATH)}version.h \
624 $(srcdir)/revision.h
626 compile.$(OBJEXT): {$(VPATH)}compile.c {$(VPATH)}ruby.h \
627 {$(VPATH)}config.h {$(VPATH)}defines.h {$(VPATH)}missing.h \
628 {$(VPATH)}intern.h {$(VPATH)}st.h {$(VPATH)}node.h {$(VPATH)}vm_core.h \
629 {$(VPATH)}signal.h {$(VPATH)}debug.h {$(VPATH)}vm_opts.h {$(VPATH)}id.h \
630 {$(VPATH)}thread_$(THREAD_MODEL).h {$(VPATH)}compile.h \
631 {$(VPATH)}insns.inc {$(VPATH)}insns_info.inc {$(VPATH)}optinsn.inc
632 iseq.$(OBJEXT): {$(VPATH)}iseq.c {$(VPATH)}ruby.h {$(VPATH)}config.h \
633 {$(VPATH)}defines.h {$(VPATH)}missing.h {$(VPATH)}intern.h \
634 {$(VPATH)}st.h {$(VPATH)}node.h {$(VPATH)}gc.h {$(VPATH)}vm_core.h \
635 {$(VPATH)}signal.h {$(VPATH)}debug.h {$(VPATH)}vm_opts.h {$(VPATH)}id.h \
636 {$(VPATH)}thread_$(THREAD_MODEL).h {$(VPATH)}insns.inc \
637 {$(VPATH)}insns_info.inc {$(VPATH)}node_name.inc
638 vm.$(OBJEXT): {$(VPATH)}vm.c {$(VPATH)}ruby.h {$(VPATH)}config.h \
639 {$(VPATH)}defines.h {$(VPATH)}missing.h {$(VPATH)}intern.h \
640 {$(VPATH)}st.h {$(VPATH)}node.h {$(VPATH)}encoding.h \
641 {$(VPATH)}oniguruma.h {$(VPATH)}gc.h {$(VPATH)}insnhelper.h \
642 {$(VPATH)}eval_intern.h {$(VPATH)}util.h {$(VPATH)}signal.h \
643 {$(VPATH)}vm_core.h {$(VPATH)}debug.h {$(VPATH)}vm_opts.h {$(VPATH)}id.h \
644 {$(VPATH)}thread_$(THREAD_MODEL).h {$(VPATH)}dln.h {$(VPATH)}vm.h \
645 {$(VPATH)}vm_insnhelper.c {$(VPATH)}insns.inc {$(VPATH)}vm_evalbody.c \
646 {$(VPATH)}vmtc.inc {$(VPATH)}vm.inc {$(VPATH)}insns.def
647 vm_dump.$(OBJEXT): {$(VPATH)}vm_dump.c {$(VPATH)}ruby.h \
648 {$(VPATH)}config.h {$(VPATH)}defines.h {$(VPATH)}missing.h \
649 {$(VPATH)}intern.h {$(VPATH)}st.h {$(VPATH)}node.h {$(VPATH)}vm_core.h \
650 {$(VPATH)}signal.h {$(VPATH)}debug.h {$(VPATH)}vm_opts.h {$(VPATH)}id.h \
651 {$(VPATH)}thread_$(THREAD_MODEL).h {$(VPATH)}vm.h
652 debug.$(OBJEXT): {$(VPATH)}debug.c {$(VPATH)}ruby.h {$(VPATH)}config.h \
653 {$(VPATH)}defines.h {$(VPATH)}missing.h {$(VPATH)}intern.h \
654 {$(VPATH)}st.h {$(VPATH)}encoding.h {$(VPATH)}oniguruma.h \
655 {$(VPATH)}debug.h {$(VPATH)}node.h {$(VPATH)}vm_core.h \
656 {$(VPATH)}signal.h {$(VPATH)}vm_opts.h {$(VPATH)}id.h \
657 {$(VPATH)}thread_$(THREAD_MODEL).h
658 blockinlining.$(OBJEXT): {$(VPATH)}blockinlining.c {$(VPATH)}ruby.h \
659 {$(VPATH)}config.h {$(VPATH)}defines.h {$(VPATH)}missing.h \
660 {$(VPATH)}intern.h {$(VPATH)}st.h {$(VPATH)}node.h {$(VPATH)}vm_core.h \
661 {$(VPATH)}signal.h {$(VPATH)}debug.h {$(VPATH)}vm_opts.h {$(VPATH)}id.h \
662 {$(VPATH)}thread_$(THREAD_MODEL).h
663 id.$(OBJEXT): {$(VPATH)}id.c {$(VPATH)}ruby.h {$(VPATH)}config.h \
664 {$(VPATH)}defines.h {$(VPATH)}missing.h {$(VPATH)}intern.h \
665 {$(VPATH)}st.h {$(VPATH)}id.h
666 miniprelude.$(OBJEXT): {$(VPATH)}miniprelude.c {$(VPATH)}ruby.h \
667 {$(VPATH)}config.h {$(VPATH)}defines.h {$(VPATH)}missing.h \
668 {$(VPATH)}intern.h {$(VPATH)}st.h {$(VPATH)}vm_core.h {$(VPATH)}signal.h \
669 {$(VPATH)}node.h {$(VPATH)}debug.h {$(VPATH)}vm_opts.h {$(VPATH)}id.h \
670 {$(VPATH)}thread_$(THREAD_MODEL).h
671 prelude.$(OBJEXT): {$(VPATH)}prelude.c {$(VPATH)}ruby.h \
672 {$(VPATH)}config.h {$(VPATH)}defines.h {$(VPATH)}missing.h \
673 {$(VPATH)}intern.h {$(VPATH)}st.h {$(VPATH)}vm_core.h {$(VPATH)}signal.h \
674 {$(VPATH)}node.h {$(VPATH)}debug.h {$(VPATH)}vm_opts.h {$(VPATH)}id.h \
675 {$(VPATH)}thread_$(THREAD_MODEL).h
676 golf_prelude.$(OBJEXT): {$(VPATH)}golf_prelude.c {$(VPATH)}ruby.h \
677 {$(VPATH)}config.h {$(VPATH)}defines.h {$(VPATH)}missing.h \
678 {$(VPATH)}intern.h {$(VPATH)}st.h {$(VPATH)}vm_core.h {$(VPATH)}signal.h \
679 {$(VPATH)}node.h {$(VPATH)}debug.h {$(VPATH)}vm_opts.h {$(VPATH)}id.h \
680 {$(VPATH)}thread_$(THREAD_MODEL).h
681 goruby.$(OBJEXT): {$(VPATH)}goruby.c {$(VPATH)}main.c {$(VPATH)}ruby.h \
682 {$(VPATH)}config.h {$(VPATH)}defines.h {$(VPATH)}missing.h \
683 {$(VPATH)}intern.h {$(VPATH)}st.h
685 ascii.$(OBJEXT): {$(VPATH)}ascii.c {$(VPATH)}regenc.h {$(VPATH)}config.h \
686 {$(VPATH)}defines.h {$(VPATH)}oniguruma.h
687 us_ascii.$(OBJEXT): {$(VPATH)}us_ascii.c {$(VPATH)}regenc.h {$(VPATH)}config.h \
688 {$(VPATH)}defines.h {$(VPATH)}oniguruma.h
689 unicode.$(OBJEXT): {$(VPATH)}unicode.c {$(VPATH)}regint.h \
690 {$(VPATH)}config.h {$(VPATH)}defines.h {$(VPATH)}regenc.h \
691 {$(VPATH)}oniguruma.h {$(VPATH)}st.h
692 utf_8.$(OBJEXT): {$(VPATH)}utf_8.c {$(VPATH)}regenc.h {$(VPATH)}config.h \
693 {$(VPATH)}defines.h {$(VPATH)}oniguruma.h
695 INSNS = opt_sc.inc optinsn.inc optunifs.inc insns.inc insns_info.inc \
696 vmtc.inc vm.inc
698 INSNS2VMOPT = --srcdir="$(srcdir)"
700 $(INSNS): $(srcdir)/insns.def {$(VPATH)}vm_opts.h
701 $(RM) $(PROGRAM)
702 $(BASERUBY) -Ks $(srcdir)/tool/insns2vm.rb $(INSNS2VMOPT) $@
704 minsns.inc: $(srcdir)/template/minsns.inc.tmpl
706 opt_sc.inc: $(srcdir)/template/opt_sc.inc.tmpl
708 optinsn.inc: $(srcdir)/template/optinsn.inc.tmpl
710 optunifs.inc: $(srcdir)/template/optunifs.inc.tmpl
712 insns.inc: $(srcdir)/template/insns.inc.tmpl
714 insns_info.inc: $(srcdir)/template/insns_info.inc.tmpl
716 vmtc.inc: $(srcdir)/template/vmtc.inc.tmpl
718 vm.inc: $(srcdir)/template/vm.inc.tmpl
720 srcs: {$(VPATH)}parse.c {$(VPATH)}lex.c $(srcdir)/ext/ripper/ripper.c
722 incs: $(INSNS) {$(VPATH)}node_name.inc {$(VPATH)}encdb.h {$(VPATH)}transdb.h $(srcdir)/revision.h
724 insns: $(INSNS)
726 node_name.inc: {$(VPATH)}node.h
727 $(BASERUBY) -n $(srcdir)/tool/node_name.rb $? > $@
729 encdb.h: $(PREP)
730 $(MINIRUBY) $(srcdir)/enc/make_encdb.rb $(srcdir)/enc $@.new
731 $(IFCHANGE) "$@" "$@.new"
733 transdb.h: $(PREP)
734 $(MINIRUBY) $(srcdir)/enc/trans/make_transdb.rb $(srcdir)/enc/trans $@.new
735 $(IFCHANGE) "$@" "$@.new"
737 miniprelude.c: $(srcdir)/tool/compile_prelude.rb $(srcdir)/prelude.rb
738 $(BASERUBY) -I$(srcdir) $(srcdir)/tool/compile_prelude.rb $(srcdir)/prelude.rb $@
740 prelude.c: $(srcdir)/tool/compile_prelude.rb $(PRELUDE_SCRIPTS) $(RBCONFIG) $(PREP)
741 $(MINIRUBY) -I$(srcdir) -rrbconfig $(srcdir)/tool/compile_prelude.rb \
742 $(PRELUDE_SCRIPTS) $@.new
743 $(IFCHANGE) "$@" "$@.new"
745 golf_prelude.c: $(srcdir)/tool/compile_prelude.rb $(srcdir)/prelude.rb $(srcdir)/golf_prelude.rb $(PREP)
746 $(MINIRUBY) -I$(srcdir) -rrbconfig $(srcdir)/tool/compile_prelude.rb $(srcdir)/golf_prelude.rb $@.new
747 $(IFCHANGE) "$@" "$@.new"
749 prereq: incs srcs preludes
751 preludes: {$(VPATH)}miniprelude.c
752 preludes: {$(srcdir)}golf_prelude.c
754 docs:
755 $(BASERUBY) -I$(srcdir) $(srcdir)/tool/makedocs.rb $(INSNS2VMOPT)
757 $(srcdir)/revision.h: $(REVISION_FORCE)
758 @set LC_MESSAGES=C
759 -@$(SET_LC_MESSAGES) $(VCS) info "$(@D)" | \
760 sed -n "s/.*Rev:/#define RUBY_REVISION/p" > "$@.tmp"
761 @$(IFCHANGE) "$@" "$@.tmp"
763 $(srcdir)/ext/ripper/ripper.c:
764 cd $(srcdir)/ext/ripper && exec $(MAKE) -f depend $(MFLAGS) top_srcdir=../.. srcdir=.
768 run: miniruby$(EXEEXT) PHONY
769 $(MINIRUBY) $(srcdir)/test.rb $(RUNOPT)
771 runruby: $(PROGRAM) PHONY
772 $(RUNRUBY) $(srcdir)/test.rb
774 parse: miniruby$(EXEEXT) PHONY
775 $(MINIRUBY) $(srcdir)/tool/parse.rb $(srcdir)/test.rb
777 COMPARE_RUBY = $(BASERUBY)
778 ITEM =
779 OPTS =
781 benchmark: $(PROGRAM) PHONY
782 $(BASERUBY) $(srcdir)/benchmark/driver.rb -v \
783 --executables="$(COMPARE_RUBY); $(RUNRUBY)" \
784 --pattern='bm_' --directory=$(srcdir)/benchmark $(OPTS)
786 benchmark-each: $(PROGRAM) PHONY
787 $(BASERUBY) $(srcdir)/benchmark/driver.rb -v \
788 --executables="$(COMPARE_RUBY); $(RUNRUBY)" \
789 --pattern=$(ITEM) --directory=$(srcdir)/benchmark $(OPTS)
791 tbench: $(PROGRAM) PHONY
792 $(BASERUBY) $(srcdir)/benchmark/driver.rb -v \
793 --executables="$(COMPARE_RUBY); $(RUNRUBY)" \
794 --pattern='bmx_' --directory=$(srcdir)/benchmark $(OPTS)
796 aotc: $(PROGRAM) PHONY
797 ./$(PROGRAM) -I$(srcdir)/lib $(srcdir)/bin/ruby2cext $(srcdir)/test.rb
799 vmasm: vm.$(ASMEXT)
801 # vm.o : CFLAGS += -fno-crossjumping
803 run.gdb:
804 echo b ruby_debug_breakpoint > run.gdb
805 echo '# handle SIGINT nostop' >> run.gdb
806 echo '# handle SIGPIPE nostop' >> run.gdb
807 echo '# b rb_longjmp' >> run.gdb
808 echo source $(srcdir)/breakpoints.gdb >> run.gdb
809 echo source $(srcdir)/.gdbinit >> run.gdb
810 echo run >> run.gdb
812 gdb: miniruby$(EXEEXT) run.gdb PHONY
813 gdb -x run.gdb --quiet --args $(MINIRUBY) $(srcdir)/test.rb
815 # Intel VTune
817 vtune: miniruby$(EXEEXT)
818 vtl activity -c sampling -app ".\miniruby$(EXEEXT)","-I$(srcdir)/lib $(srcdir)/test.rb" run
819 vtl view -hf -mn miniruby$(EXEEXT) -sum -sort -cd
820 vtl view -ha -mn miniruby$(EXEEXT) -sum -sort -cd | $(RUNRUBY) $(srcdir)/tool/vtlh.rb > ha.lines
822 dist: $(PROGRAM)
823 $(RUNRUBY) $(srcdir)/distruby.rb
826 @$(VCS) up "$(srcdir)"
827 -@$(MAKE) $(MFLAGS) REVISION_FORCE=PHONY "$(srcdir)/revision.h"
829 help: PHONY
830 @echo " Makefile of Ruby"
831 @echo ""
832 @echo "targets:"
833 @echo " all: compile ruby and extensions"
834 @echo " check: equals make test test-all"
835 @echo " test: ruby core tests"
836 @echo " test-all: all ruby tests"
837 @echo " install: install all ruby distributions"
838 @echo " install-nodoc: install without rdoc"
839 @echo " clean: clean built objects"
840 @echo " golf: for golfers"