* re.c (unescape_nonascii): make regexp fixed_encoding if \p is used.
[ruby-svn.git] / common.mk
blob48ca2a718252d06ef566e30477234fbe07594a35
1 bin: $(PROGRAM) $(WPROGRAM)
2 lib: $(LIBRUBY)
3 dll: $(LIBRUBY_SO)
5 .SUFFIXES: .inc
7 RUBYLIB = -
8 RUBYOPT = -
10 STATIC_RUBY = static-ruby
12 EXTCONF = extconf.rb
13 RBCONFIG = ./.rbconfig.time
14 LIBRUBY_EXTS = ./.libruby-with-ext.time
15 RDOCOUT = $(EXTOUT)/rdoc
17 DMYEXT = dmyext.$(OBJEXT)
18 NORMALMAINOBJ = main.$(OBJEXT)
19 MAINOBJ = $(NORMALMAINOBJ)
20 EXTOBJS =
21 DLDOBJS = $(DMYEXT)
22 MINIOBJS = $(ARCHMINIOBJS) dmyencoding.$(OBJEXT) miniprelude.$(OBJEXT)
24 COMMONOBJS = array.$(OBJEXT) \
25 bignum.$(OBJEXT) \
26 class.$(OBJEXT) \
27 compar.$(OBJEXT) \
28 complex.$(OBJEXT) \
29 dir.$(OBJEXT) \
30 enum.$(OBJEXT) \
31 enumerator.$(OBJEXT) \
32 error.$(OBJEXT) \
33 eval.$(OBJEXT) \
34 load.$(OBJEXT) \
35 proc.$(OBJEXT) \
36 file.$(OBJEXT) \
37 gc.$(OBJEXT) \
38 hash.$(OBJEXT) \
39 inits.$(OBJEXT) \
40 io.$(OBJEXT) \
41 marshal.$(OBJEXT) \
42 math.$(OBJEXT) \
43 numeric.$(OBJEXT) \
44 object.$(OBJEXT) \
45 pack.$(OBJEXT) \
46 parse.$(OBJEXT) \
47 process.$(OBJEXT) \
48 prec.$(OBJEXT) \
49 random.$(OBJEXT) \
50 range.$(OBJEXT) \
51 rational.$(OBJEXT) \
52 re.$(OBJEXT) \
53 regcomp.$(OBJEXT) \
54 regenc.$(OBJEXT) \
55 regerror.$(OBJEXT) \
56 regexec.$(OBJEXT) \
57 regparse.$(OBJEXT) \
58 regsyntax.$(OBJEXT) \
59 ruby.$(OBJEXT) \
60 signal.$(OBJEXT) \
61 sprintf.$(OBJEXT) \
62 st.$(OBJEXT) \
63 string.$(OBJEXT) \
64 struct.$(OBJEXT) \
65 time.$(OBJEXT) \
66 transcode.$(OBJEXT) \
67 util.$(OBJEXT) \
68 variable.$(OBJEXT) \
69 version.$(OBJEXT) \
70 blockinlining.$(OBJEXT) \
71 compile.$(OBJEXT) \
72 debug.$(OBJEXT) \
73 iseq.$(OBJEXT) \
74 vm.$(OBJEXT) \
75 vm_dump.$(OBJEXT) \
76 thread.$(OBJEXT) \
77 cont.$(OBJEXT) \
78 id.$(OBJEXT) \
79 $(BUILTIN_ENCOBJS) \
80 $(MISSING)
82 OBJS = dln.$(OBJEXT) \
83 encoding.$(OBJEXT) \
84 prelude.$(OBJEXT) \
85 $(COMMONOBJS)
87 GOLFOBJS = goruby.$(OBJEXT) golf_prelude.$(OBJEXT)
89 PRELUDE_SCRIPTS = $(srcdir)/prelude.rb $(srcdir)/enc/prelude.rb $(srcdir)/gem_prelude.rb
90 PRELUDES = prelude.c miniprelude.c golf_prelude.c
92 SCRIPT_ARGS = --dest-dir="$(DESTDIR)" \
93 --extout="$(EXTOUT)" \
94 --mflags="$(MFLAGS)" \
95 --make-flags="$(MAKEFLAGS)"
96 EXTMK_ARGS = $(SCRIPT_ARGS) --extension $(EXTS) --extstatic $(EXTSTATIC) --
97 INSTRUBY_ARGS = $(SCRIPT_ARGS) \
98 --data-mode=$(INSTALL_DATA_MODE) \
99 --prog-mode=$(INSTALL_PROG_MODE) \
100 --installed-list $(INSTALLED_LIST)
101 INSTALL_PROG_MODE = 0755
102 INSTALL_DATA_MODE = 0644
104 PRE_LIBRUBY_UPDATE = $(MINIRUBY) -e 'ARGV[1] or File.unlink(ARGV[0]) rescue nil' -- \
105 $(LIBRUBY_EXTS) $(LIBRUBY_SO_UPDATE)
107 TESTSDIR = $(srcdir)/test
108 TESTWORKDIR = testwork
110 BOOTSTRAPRUBY = $(BASERUBY)
112 COMPILE_PRELUDE = $(MINIRUBY) -I$(srcdir) -rrbconfig $(srcdir)/tool/compile_prelude.rb
114 VCS = svn
116 all: $(MKFILES) incs $(PREP) $(RBCONFIG) $(LIBRUBY) encs
117 @$(MINIRUBY) $(srcdir)/ext/extmk.rb --make="$(MAKE)" $(EXTMK_ARGS)
118 prog: $(PROGRAM) $(WPROGRAM)
120 loadpath: $(PREP)
121 $(MINIRUBY) -e 'p $$:'
123 $(PREP): $(MKFILES)
125 miniruby$(EXEEXT): config.status $(NORMALMAINOBJ) $(MINIOBJS) $(COMMONOBJS) $(DMYEXT) $(ARCHFILE)
127 GORUBY = go$(RUBY_INSTALL_NAME)
128 golf: $(LIBRUBY) $(GOLFOBJS)
129 $(MAKE) $(MFLAGS) MAINOBJ="$(GOLFOBJS)" PROGRAM=$(GORUBY)$(EXEEXT) program
131 program: $(PROGRAM)
133 $(PROGRAM): $(LIBRUBY) $(MAINOBJ) $(OBJS) $(EXTOBJS) $(SETUP) $(PREP)
135 $(LIBRUBY_A): $(OBJS) $(DMYEXT) $(ARCHFILE)
137 $(LIBRUBY_SO): $(OBJS) $(DLDOBJS) $(LIBRUBY_A) $(PREP) $(LIBRUBY_SO_UPDATE) $(BUILTIN_ENCOBJS)
139 $(LIBRUBY_EXTS):
140 @exit > $@
142 $(STATIC_RUBY)$(EXEEXT): $(MAINOBJ) $(DLDOBJS) $(EXTOBJS) $(LIBRUBY_A)
143 @$(RM) $@
144 $(PURIFY) $(CC) $(MAINOBJ) $(DLDOBJS) $(EXTOBJS) $(LIBRUBY_A) $(MAINLIBS) $(EXTLIBS) $(LIBS) $(OUTFLAG)$@ $(LDFLAGS) $(XLDFLAGS)
146 ruby.imp: $(COMMONOBJS)
147 @$(NM) -Pgp $(COMMONOBJS) | awk 'BEGIN{print "#!"}; $$2~/^[BD]$$/{print $$1}' | sort -u -o $@
149 install: install-nodoc $(RDOCTARGET)
150 install-all: install-nodoc install-doc
152 install-nodoc: pre-install-nodoc do-install-nodoc post-install-nodoc
153 pre-install-nodoc:: pre-install-local pre-install-ext
154 do-install-nodoc: $(PREP)
155 $(MINIRUBY) $(srcdir)/instruby.rb --make="$(MAKE)" $(INSTRUBY_ARGS) --mantype="$(MANTYPE)"
156 post-install-nodoc:: post-install-local post-install-ext
158 install-local: pre-install-local do-install-local post-install-local
159 pre-install-local:: pre-install-bin pre-install-lib pre-install-man
160 do-install-local: $(PREP)
161 $(MINIRUBY) $(srcdir)/instruby.rb --make="$(MAKE)" $(INSTRUBY_ARGS) --install=local --mantype="$(MANTYPE)"
162 post-install-local:: post-install-bin post-install-lib post-install-man
164 install-ext: pre-install-ext do-install-ext post-install-ext
165 pre-install-ext:: pre-install-ext-arch pre-install-ext-comm
166 do-install-ext: $(PREP)
167 $(MINIRUBY) $(srcdir)/instruby.rb --make="$(MAKE)" $(INSTRUBY_ARGS) --install=ext
168 post-install-ext:: post-install-ext-arch post-install-ext-comm
170 install-arch: pre-install-arch do-install-arch post-install-arch
171 pre-install-arch:: pre-install-bin pre-install-ext-arch
172 do-install-arch: $(PREP)
173 $(MINIRUBY) $(srcdir)/instruby.rb --make="$(MAKE)" $(INSTRUBY_ARGS) --install=bin --install=ext-arch
174 post-install-arch:: post-install-bin post-install-ext-arch
176 install-comm: pre-install-comm do-install-comm post-install-comm
177 pre-install-comm:: pre-install-lib pre-install-ext-comm pre-install-man
178 do-install-comm: $(PREP)
179 $(MINIRUBY) $(srcdir)/instruby.rb --make="$(MAKE)" $(INSTRUBY_ARGS) --install=lib --install=ext-comm --install=man
180 post-install-comm:: post-install-lib post-install-ext-comm post-install-man
182 install-bin: pre-install-bin do-install-bin post-install-bin
183 pre-install-bin:: install-prereq
184 do-install-bin: $(PREP)
185 $(MINIRUBY) $(srcdir)/instruby.rb --make="$(MAKE)" $(INSTRUBY_ARGS) --install=bin
186 post-install-bin::
187 @$(NULLCMD)
189 install-lib: pre-install-lib do-install-lib post-install-lib
190 pre-install-lib:: install-prereq
191 do-install-lib: $(PREP)
192 $(MINIRUBY) $(srcdir)/instruby.rb --make="$(MAKE)" $(INSTRUBY_ARGS) --install=lib
193 post-install-lib::
194 @$(NULLCMD)
196 install-ext-comm: pre-install-ext-comm do-install-ext-comm post-install-ext-comm
197 pre-install-ext-comm:: install-prereq
198 do-install-ext-comm: $(PREP)
199 $(MINIRUBY) $(srcdir)/instruby.rb --make="$(MAKE)" $(INSTRUBY_ARGS) --install=ext-comm
200 post-install-ext-comm::
201 @$(NULLCMD)
203 install-ext-arch: pre-install-ext-arch do-install-ext-arch post-install-ext-arch
204 pre-install-ext-arch:: install-prereq
205 do-install-ext-arch: $(PREP)
206 $(MINIRUBY) $(srcdir)/instruby.rb --make="$(MAKE)" $(INSTRUBY_ARGS) --install=ext-arch
207 post-install-ext-arch::
208 @$(NULLCMD)
210 install-man: pre-install-man do-install-man post-install-man
211 pre-install-man:: install-prereq
212 do-install-man: $(PREP)
213 $(MINIRUBY) $(srcdir)/instruby.rb --make="$(MAKE)" $(INSTRUBY_ARGS) --install=man --mantype="$(MANTYPE)"
214 post-install-man::
215 @$(NULLCMD)
217 what-where: no-install
218 no-install: no-install-nodoc no-install-doc
219 what-where-all: no-install-all
220 no-install-all: no-install-nodoc
222 what-where-nodoc: no-install-nodoc
223 no-install-nodoc: pre-no-install-nodoc dont-install-nodoc post-no-install-nodoc
224 pre-no-install-nodoc:: pre-no-install-local pre-no-install-ext
225 dont-install-nodoc: $(PREP)
226 $(MINIRUBY) $(srcdir)/instruby.rb -n --make="$(MAKE)" $(INSTRUBY_ARGS) --mantype="$(MANTYPE)"
227 post-no-install-nodoc:: post-no-install-local post-no-install-ext
229 what-where-local: no-install-local
230 no-install-local: pre-no-install-local dont-install-local post-no-install-local
231 pre-no-install-local:: pre-no-install-bin pre-no-install-lib pre-no-install-man
232 dont-install-local: $(PREP)
233 $(MINIRUBY) $(srcdir)/instruby.rb -n --make="$(MAKE)" $(INSTRUBY_ARGS) --install=local --mantype="$(MANTYPE)"
234 post-no-install-local:: post-no-install-bin post-no-install-lib post-no-install-man
236 what-where-ext: no-install-ext
237 no-install-ext: pre-no-install-ext dont-install-ext post-no-install-ext
238 pre-no-install-ext:: pre-no-install-ext-arch pre-no-install-ext-comm
239 dont-install-ext: $(PREP)
240 $(MINIRUBY) $(srcdir)/instruby.rb -n --make="$(MAKE)" $(INSTRUBY_ARGS) --install=ext
241 post-no-install-ext:: post-no-install-ext-arch post-no-install-ext-comm
243 what-where-arch: no-install-arch
244 no-install-arch: pre-no-install-arch dont-install-arch post-no-install-arch
245 pre-no-install-arch:: pre-no-install-bin pre-no-install-ext-arch
246 dont-install-arch: $(PREP)
247 $(MINIRUBY) $(srcdir)/instruby.rb -n --make="$(MAKE)" $(INSTRUBY_ARGS) --install=bin --install=ext-arch
248 post-no-install-arch:: post-no-install-lib post-no-install-man post-no-install-ext-arch
250 what-where-comm: no-install-comm
251 no-install-comm: pre-no-install-comm dont-install-comm post-no-install-comm
252 pre-no-install-comm:: pre-no-install-lib pre-no-install-ext-comm pre-no-install-man
253 dont-install-comm: $(PREP)
254 $(MINIRUBY) $(srcdir)/instruby.rb -n --make="$(MAKE)" $(INSTRUBY_ARGS) --install=lib --install=ext-comm --install=man
255 post-no-install-comm:: post-no-install-lib post-no-install-ext-comm post-no-install-man
257 what-where-bin: no-install-bin
258 no-install-bin: pre-no-install-bin dont-install-bin post-no-install-bin
259 pre-no-install-bin:: install-prereq
260 dont-install-bin: $(PREP)
261 $(MINIRUBY) $(srcdir)/instruby.rb -n --make="$(MAKE)" $(INSTRUBY_ARGS) --install=bin
262 post-no-install-bin::
263 @$(NULLCMD)
265 what-where-lib: no-install-lib
266 no-install-lib: pre-no-install-lib dont-install-lib post-no-install-lib
267 pre-no-install-lib:: install-prereq
268 dont-install-lib: $(PREP)
269 $(MINIRUBY) $(srcdir)/instruby.rb -n --make="$(MAKE)" $(INSTRUBY_ARGS) --install=lib
270 post-no-install-lib::
271 @$(NULLCMD)
273 what-where-ext-comm: no-install-ext-comm
274 no-install-ext-comm: pre-no-install-ext-comm dont-install-ext-comm post-no-install-ext-comm
275 pre-no-install-ext-comm:: install-prereq
276 dont-install-ext-comm: $(PREP)
277 $(MINIRUBY) $(srcdir)/instruby.rb -n --make="$(MAKE)" $(INSTRUBY_ARGS) --install=ext-comm
278 post-no-install-ext-comm::
279 @$(NULLCMD)
281 what-where-ext-arch: no-install-ext-arch
282 no-install-ext-arch: pre-no-install-ext-arch dont-install-ext-arch post-no-install-ext-arch
283 pre-no-install-ext-arch:: install-prereq
284 dont-install-ext-arch: $(PREP)
285 $(MINIRUBY) $(srcdir)/instruby.rb -n --make="$(MAKE)" $(INSTRUBY_ARGS) --install=ext-arch
286 post-no-install-ext-arch::
287 @$(NULLCMD)
289 what-where-man: no-install-man
290 no-install-man: pre-no-install-man dont-install-man post-no-install-man
291 pre-no-install-man:: install-prereq
292 dont-install-man: $(PREP)
293 $(MINIRUBY) $(srcdir)/instruby.rb -n --make="$(MAKE)" $(INSTRUBY_ARGS) --install=man --mantype="$(MANTYPE)"
294 post-no-install-man::
295 @$(NULLCMD)
297 install-doc: rdoc pre-install-doc do-install-doc post-install-doc
298 pre-install-doc:: install-prereq
299 do-install-doc: $(PROGRAM)
300 $(MINIRUBY) $(srcdir)/instruby.rb --make="$(MAKE)" $(INSTRUBY_ARGS) --install=rdoc --rdoc-output="$(RDOCOUT)"
301 post-install-doc::
302 @$(NULLCMD)
304 rdoc: $(PROGRAM) PHONY
305 @echo Generating RDoc documentation
306 $(RUNRUBY) "$(srcdir)/bin/rdoc" --all --ri --op "$(RDOCOUT)" "$(srcdir)"
308 what-where-doc: no-install-doc
309 no-install-doc: pre-no-install-doc dont-install-doc post-no-install-doc
310 pre-no-install-doc:: install-prereq
311 dont-install-doc:: $(PREP)
312 $(MINIRUBY) $(srcdir)/instruby.rb -n --make="$(MAKE)" $(INSTRUBY_ARGS) --install=rdoc --rdoc-output="$(RDOCOUT)"
313 post-no-install-doc::
314 @$(NULLCMD)
316 CLEAR_INSTALLED_LIST = clear-installed-list
318 install-prereq: $(CLEAR_INSTALLED_LIST)
320 clear-installed-list:
321 @exit > $(INSTALLED_LIST)
323 clean: clean-ext clean-local clean-enc
324 clean-local::
325 @$(RM) $(OBJS) $(MINIOBJS) $(MAINOBJ) $(LIBRUBY_A) $(LIBRUBY_SO) $(LIBRUBY) $(LIBRUBY_ALIASES)
326 @$(RM) $(PROGRAM) $(WPROGRAM) miniruby$(EXEEXT) dmyext.$(OBJEXT) $(ARCHFILE) .*.time
327 @$(RM) *.inc $(GOLFOBJS) y.tab.c y.output encdb.h transdb.h
328 clean-ext: $(PREP)
329 @-$(MINIRUBY) $(srcdir)/ext/extmk.rb --make="$(MAKE)" $(EXTMK_ARGS) clean
330 clean-enc:
331 @-$(MAKE) -f enc.mk $(MFLAGS) clean
333 distclean: distclean-ext distclean-local distclean-enc
334 distclean-local:: clean-local
335 @$(RM) $(MKFILES) $(arch_hdrdir)/ruby/config.h rbconfig.rb yasmdata.rb encdb.h
336 @$(RM) config.cache config.log config.status config.status.lineno $(PRELUDES)
337 @$(RM) *~ *.bak *.stackdump core *.core gmon.out $(PREP)
338 distclean-ext: $(PREP)
339 @-$(MINIRUBY) $(srcdir)/ext/extmk.rb --make="$(MAKE)" $(EXTMK_ARGS) distclean
340 # -$(RM) $(INSTALLED_LIST) $(arch_hdrdir)/ruby/config.h
341 # -rmdir -p $(arch_hdrdir)/ruby
342 distclean-enc: clean-enc
343 @-$(MAKE) -f enc.mk $(MFLAGS) distclean
345 realclean:: realclean-ext realclean-local realclean-enc
346 realclean-local:: distclean-local
347 @$(RM) parse.c lex.c revision.h
348 realclean-ext:: $(PREP)
349 @-$(MINIRUBY) $(srcdir)/ext/extmk.rb --make="$(MAKE)" $(EXTMK_ARGS) realclean
350 realclean-enc:: distclean-enc
352 check: test test-all
354 btest: miniruby$(EXEEXT) PHONY
355 $(BOOTSTRAPRUBY) "$(srcdir)/bootstraptest/runner.rb" --ruby="$(MINIRUBY)" $(OPTS)
357 btest-miniruby: miniruby$(EXEEXT) $(RBCONFIG) $(PROGRAM) PHONY
358 @$(MINIRUBY) "$(srcdir)/bootstraptest/runner.rb" --ruby="$(MINIRUBY)" -q
360 test-sample: miniruby$(EXEEXT) $(RBCONFIG) $(PROGRAM) PHONY
361 @$(MINIRUBY) $(srcdir)/rubytest.rb
363 test-knownbug: miniruby$(EXEEXT) $(PROGRAM) PHONY
364 $(BOOTSTRAPRUBY) "$(srcdir)/bootstraptest/runner.rb" --ruby="$(PROGRAM)" $(OPTS) $(srcdir)/KNOWNBUGS.rb
366 test: test-sample btest-miniruby test-knownbug
368 test-all:
369 $(RUNRUBY) "$(srcdir)/test/runner.rb" --basedir="$(TESTSDIR)" --runner=$(TESTUI) $(TESTS)
371 extconf: $(PREP)
372 $(MINIRUBY) -run -e mkdir -- -p "$(EXTCONFDIR)"
373 $(RUNRUBY) -C "$(EXTCONFDIR)" $(EXTCONF) $(EXTCONFARGS)
375 $(RBCONFIG): $(srcdir)/mkconfig.rb config.status $(PREP)
376 @$(MINIRUBY) $(srcdir)/mkconfig.rb -timestamp=$@ \
377 -install_name=$(RUBY_INSTALL_NAME) \
378 -so_name=$(RUBY_SO_NAME) rbconfig.rb
380 encs: enc.mk $(LIBRUBY) $(PREP)
381 $(MINIRUBY) -run -e mkdir -- -p "$(EXTOUT)/$(arch)/enc/trans" enc/trans
382 $(MAKE) -f enc.mk RUBY="$(MINIRUBY)" $(MFLAGS)
384 enc.mk: $(srcdir)/enc/make_encmake.rb $(srcdir)/enc/Makefile.in $(srcdir)/enc/depend \
385 $(srcdir)/lib/mkmf.rb $(PREP)
386 $(MINIRUBY) $(srcdir)/enc/make_encmake.rb --builtin-encs="$(BUILTIN_ENCOBJS)" $@
388 .PRECIOUS: $(MKFILES)
390 .PHONY: test install install-nodoc install-doc dist
392 PHONY:
394 {$(VPATH)}parse.c: {$(VPATH)}parse.y $(srcdir)/tool/ytab.sed
396 {$(srcdir)}.y.c:
397 $(YACC) $(YFLAGS) -o y.tab.c $<
398 sed -f $(srcdir)/tool/ytab.sed -e "/^#/s!y\.tab\.c!$@!" y.tab.c > $@.new
399 @$(RM) $@ y.tab.c
400 @$(MV) $@.new $@
402 acosh.$(OBJEXT): {$(VPATH)}acosh.c
403 alloca.$(OBJEXT): {$(VPATH)}alloca.c {$(VPATH)}config.h
404 crypt.$(OBJEXT): {$(VPATH)}crypt.c
405 dup2.$(OBJEXT): {$(VPATH)}dup2.c
406 erf.$(OBJEXT): {$(VPATH)}erf.c
407 finite.$(OBJEXT): {$(VPATH)}finite.c
408 flock.$(OBJEXT): {$(VPATH)}flock.c
409 memcmp.$(OBJEXT): {$(VPATH)}memcmp.c
410 memmove.$(OBJEXT): {$(VPATH)}memmove.c
411 mkdir.$(OBJEXT): {$(VPATH)}mkdir.c
412 strchr.$(OBJEXT): {$(VPATH)}strchr.c
413 strdup.$(OBJEXT): {$(VPATH)}strdup.c
414 strerror.$(OBJEXT): {$(VPATH)}strerror.c
415 strftime.$(OBJEXT): {$(VPATH)}strftime.c
416 strstr.$(OBJEXT): {$(VPATH)}strstr.c
417 strtod.$(OBJEXT): {$(VPATH)}strtod.c
418 strtol.$(OBJEXT): {$(VPATH)}strtol.c
419 nt.$(OBJEXT): {$(VPATH)}nt.c
420 x68.$(OBJEXT): {$(VPATH)}x68.c
421 os2.$(OBJEXT): {$(VPATH)}os2.c
422 dl_os2.$(OBJEXT): {$(VPATH)}dl_os2.c
423 ia64.$(OBJEXT): {$(VPATH)}ia64.s
424 $(CC) $(CFLAGS) -c $<
426 # when I use -I., there is confliction at "OpenFile"
427 # so, set . into environment varible "include"
428 win32.$(OBJEXT): {$(VPATH)}win32.c
432 RUBY_H_INCLUDES = {$(VPATH)}ruby.h {$(VPATH)}config.h {$(VPATH)}defines.h \
433 {$(VPATH)}intern.h {$(VPATH)}missing.h
435 array.$(OBJEXT): {$(VPATH)}array.c $(RUBY_H_INCLUDES) \
436 {$(VPATH)}st.h {$(VPATH)}util.h
437 bignum.$(OBJEXT): {$(VPATH)}bignum.c $(RUBY_H_INCLUDES) \
438 {$(VPATH)}st.h
439 class.$(OBJEXT): {$(VPATH)}class.c $(RUBY_H_INCLUDES) \
440 {$(VPATH)}st.h {$(VPATH)}signal.h {$(VPATH)}node.h
441 compar.$(OBJEXT): {$(VPATH)}compar.c $(RUBY_H_INCLUDES) \
442 {$(VPATH)}st.h
443 complex.$(OBJEXT): {$(VPATH)}complex.c $(RUBY_H_INCLUDES) \
444 {$(VPATH)}st.h
445 dir.$(OBJEXT): {$(VPATH)}dir.c $(RUBY_H_INCLUDES) \
446 {$(VPATH)}st.h {$(VPATH)}util.h
447 dln.$(OBJEXT): {$(VPATH)}dln.c $(RUBY_H_INCLUDES) \
448 {$(VPATH)}st.h {$(VPATH)}dln.h
449 dmydln.$(OBJEXT): {$(VPATH)}dmydln.c dln.$(OBJEXT)
450 dmyext.$(OBJEXT): {$(VPATH)}dmyext.c
451 dmyencoding.$(OBJEXT): {$(VPATH)}dmyencoding.c \
452 {$(VPATH)}encoding.c $(RUBY_H_INCLUDES) {$(VPATH)}st.h \
453 {$(VPATH)}encoding.h {$(VPATH)}oniguruma.h {$(VPATH)}regenc.h
454 encoding.$(OBJEXT): dmyencoding.$(OBJEXT)
455 enum.$(OBJEXT): {$(VPATH)}enum.c $(RUBY_H_INCLUDES) \
456 {$(VPATH)}st.h {$(VPATH)}node.h {$(VPATH)}util.h
457 enumerator.$(OBJEXT): {$(VPATH)}enumerator.c $(RUBY_H_INCLUDES) \
458 {$(VPATH)}st.h {$(VPATH)}debug.h {$(VPATH)}node.h
459 error.$(OBJEXT): {$(VPATH)}error.c $(RUBY_H_INCLUDES) \
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 $(RUBY_H_INCLUDES) {$(VPATH)}st.h {$(VPATH)}node.h \
465 {$(VPATH)}util.h {$(VPATH)}signal.h {$(VPATH)}vm_core.h \
466 {$(VPATH)}debug.h {$(VPATH)}vm_opts.h {$(VPATH)}id.h \
467 {$(VPATH)}thread_$(THREAD_MODEL).h {$(VPATH)}dln.h \
468 {$(VPATH)}eval_error.c {$(VPATH)}eval_safe.c \
469 {$(VPATH)}eval_jump.c
470 load.$(OBJEXT): {$(VPATH)}load.c {$(VPATH)}eval_intern.h \
471 $(RUBY_H_INCLUDES) {$(VPATH)}st.h {$(VPATH)}node.h \
472 {$(VPATH)}util.h {$(VPATH)}signal.h {$(VPATH)}vm_core.h \
473 {$(VPATH)}debug.h {$(VPATH)}vm_opts.h {$(VPATH)}id.h \
474 {$(VPATH)}thread_$(THREAD_MODEL).h {$(VPATH)}dln.h
475 file.$(OBJEXT): {$(VPATH)}file.c $(RUBY_H_INCLUDES) \
476 {$(VPATH)}st.h {$(VPATH)}io.h {$(VPATH)}encoding.h {$(VPATH)}oniguruma.h \
477 {$(VPATH)}signal.h {$(VPATH)}util.h {$(VPATH)}dln.h
478 gc.$(OBJEXT): {$(VPATH)}gc.c $(RUBY_H_INCLUDES) \
479 {$(VPATH)}st.h {$(VPATH)}signal.h {$(VPATH)}node.h {$(VPATH)}re.h \
480 {$(VPATH)}regex.h {$(VPATH)}oniguruma.h {$(VPATH)}io.h \
481 {$(VPATH)}encoding.h {$(VPATH)}vm_core.h {$(VPATH)}debug.h \
482 {$(VPATH)}vm_opts.h {$(VPATH)}id.h {$(VPATH)}thread_$(THREAD_MODEL).h \
483 {$(VPATH)}gc.h {$(VPATH)}eval_intern.h
484 hash.$(OBJEXT): {$(VPATH)}hash.c $(RUBY_H_INCLUDES) \
485 {$(VPATH)}st.h {$(VPATH)}util.h {$(VPATH)}signal.h
486 inits.$(OBJEXT): {$(VPATH)}inits.c $(RUBY_H_INCLUDES) \
487 {$(VPATH)}st.h
488 io.$(OBJEXT): {$(VPATH)}io.c $(RUBY_H_INCLUDES) \
489 {$(VPATH)}st.h {$(VPATH)}io.h {$(VPATH)}encoding.h {$(VPATH)}oniguruma.h \
490 {$(VPATH)}signal.h {$(VPATH)}util.h
491 main.$(OBJEXT): {$(VPATH)}main.c $(RUBY_H_INCLUDES) \
492 {$(VPATH)}st.h
493 marshal.$(OBJEXT): {$(VPATH)}marshal.c $(RUBY_H_INCLUDES) \
494 {$(VPATH)}st.h {$(VPATH)}io.h {$(VPATH)}encoding.h \
495 {$(VPATH)}oniguruma.h {$(VPATH)}util.h
496 math.$(OBJEXT): {$(VPATH)}math.c $(RUBY_H_INCLUDES) {$(VPATH)}st.h
497 numeric.$(OBJEXT): {$(VPATH)}numeric.c $(RUBY_H_INCLUDES) \
498 {$(VPATH)}st.h {$(VPATH)}encoding.h {$(VPATH)}oniguruma.h
499 object.$(OBJEXT): {$(VPATH)}object.c $(RUBY_H_INCLUDES) \
500 {$(VPATH)}st.h {$(VPATH)}util.h {$(VPATH)}debug.h {$(VPATH)}node.h
501 pack.$(OBJEXT): {$(VPATH)}pack.c $(RUBY_H_INCLUDES) {$(VPATH)}st.h
502 parse.$(OBJEXT): {$(VPATH)}parse.c {$(VPATH)}parse.y $(RUBY_H_INCLUDES) \
503 {$(VPATH)}st.h {$(VPATH)}node.h {$(VPATH)}encoding.h \
504 {$(VPATH)}oniguruma.h {$(VPATH)}id.h {$(VPATH)}regenc.h \
505 {$(VPATH)}regex.h {$(VPATH)}util.h {$(VPATH)}lex.c {$(VPATH)}keywords \
506 {$(VPATH)}debug.h
507 prec.$(OBJEXT): {$(VPATH)}prec.c $(RUBY_H_INCLUDES) {$(VPATH)}st.h
508 proc.$(OBJEXT): {$(VPATH)}proc.c {$(VPATH)}eval_intern.h \
509 $(RUBY_H_INCLUDES) {$(VPATH)}st.h {$(VPATH)}node.h \
510 {$(VPATH)}util.h {$(VPATH)}signal.h {$(VPATH)}vm_core.h \
511 {$(VPATH)}debug.h {$(VPATH)}vm_opts.h {$(VPATH)}id.h \
512 {$(VPATH)}thread_$(THREAD_MODEL).h {$(VPATH)}dln.h {$(VPATH)}gc.h
513 process.$(OBJEXT): {$(VPATH)}process.c $(RUBY_H_INCLUDES) {$(VPATH)}st.h \
514 {$(VPATH)}signal.h {$(VPATH)}vm_core.h \
515 {$(VPATH)}node.h {$(VPATH)}debug.h {$(VPATH)}vm_opts.h {$(VPATH)}id.h \
516 {$(VPATH)}thread_$(THREAD_MODEL).h
517 random.$(OBJEXT): {$(VPATH)}random.c $(RUBY_H_INCLUDES) \
518 {$(VPATH)}st.h
519 range.$(OBJEXT): {$(VPATH)}range.c $(RUBY_H_INCLUDES) \
520 {$(VPATH)}st.h
521 rational.$(OBJEXT): {$(VPATH)}rational.c $(RUBY_H_INCLUDES) \
522 {$(VPATH)}st.h
523 re.$(OBJEXT): {$(VPATH)}re.c $(RUBY_H_INCLUDES) \
524 {$(VPATH)}st.h {$(VPATH)}re.h {$(VPATH)}regex.h {$(VPATH)}oniguruma.h \
525 {$(VPATH)}encoding.h {$(VPATH)}util.h {$(VPATH)}regint.h \
526 {$(VPATH)}regenc.h
527 regcomp.$(OBJEXT): {$(VPATH)}regcomp.c {$(VPATH)}regparse.h \
528 {$(VPATH)}regint.h {$(VPATH)}config.h {$(VPATH)}defines.h \
529 {$(VPATH)}regenc.h {$(VPATH)}oniguruma.h {$(VPATH)}st.h
530 regenc.$(OBJEXT): {$(VPATH)}regenc.c {$(VPATH)}regint.h \
531 {$(VPATH)}config.h {$(VPATH)}defines.h {$(VPATH)}regenc.h \
532 {$(VPATH)}oniguruma.h {$(VPATH)}st.h
533 regerror.$(OBJEXT): {$(VPATH)}regerror.c {$(VPATH)}regint.h \
534 {$(VPATH)}config.h {$(VPATH)}defines.h {$(VPATH)}regenc.h \
535 {$(VPATH)}oniguruma.h {$(VPATH)}st.h
536 regexec.$(OBJEXT): {$(VPATH)}regexec.c {$(VPATH)}regint.h \
537 {$(VPATH)}config.h {$(VPATH)}defines.h {$(VPATH)}regenc.h \
538 {$(VPATH)}oniguruma.h {$(VPATH)}st.h
539 regparse.$(OBJEXT): {$(VPATH)}regparse.c {$(VPATH)}regparse.h \
540 {$(VPATH)}regint.h {$(VPATH)}config.h {$(VPATH)}defines.h \
541 {$(VPATH)}regenc.h {$(VPATH)}oniguruma.h {$(VPATH)}st.h
542 regsyntax.$(OBJEXT): {$(VPATH)}regsyntax.c {$(VPATH)}regint.h \
543 {$(VPATH)}config.h {$(VPATH)}defines.h {$(VPATH)}regenc.h \
544 {$(VPATH)}oniguruma.h {$(VPATH)}st.h
545 ruby.$(OBJEXT): {$(VPATH)}ruby.c $(RUBY_H_INCLUDES) \
546 {$(VPATH)}st.h {$(VPATH)}node.h {$(VPATH)}encoding.h \
547 {$(VPATH)}oniguruma.h {$(VPATH)}eval_intern.h {$(VPATH)}util.h \
548 {$(VPATH)}signal.h {$(VPATH)}vm_core.h {$(VPATH)}debug.h \
549 {$(VPATH)}vm_opts.h {$(VPATH)}id.h {$(VPATH)}thread_$(THREAD_MODEL).h \
550 {$(VPATH)}dln.h
551 signal.$(OBJEXT): {$(VPATH)}signal.c $(RUBY_H_INCLUDES) \
552 {$(VPATH)}st.h {$(VPATH)}signal.h {$(VPATH)}node.h {$(VPATH)}vm_core.h \
553 {$(VPATH)}debug.h {$(VPATH)}vm_opts.h {$(VPATH)}id.h \
554 {$(VPATH)}thread_$(THREAD_MODEL).h
555 sprintf.$(OBJEXT): {$(VPATH)}sprintf.c $(RUBY_H_INCLUDES) {$(VPATH)}st.h \
556 {$(VPATH)}re.h {$(VPATH)}regex.h {$(VPATH)}oniguruma.h \
557 {$(VPATH)}encoding.h {$(VPATH)}vsnprintf.c
558 st.$(OBJEXT): {$(VPATH)}st.c {$(VPATH)}config.h {$(VPATH)}defines.h \
559 {$(VPATH)}st.h
560 string.$(OBJEXT): {$(VPATH)}string.c $(RUBY_H_INCLUDES) \
561 {$(VPATH)}st.h {$(VPATH)}re.h {$(VPATH)}regex.h {$(VPATH)}oniguruma.h \
562 {$(VPATH)}encoding.h
563 struct.$(OBJEXT): {$(VPATH)}struct.c $(RUBY_H_INCLUDES) \
564 {$(VPATH)}st.h
565 thread.$(OBJEXT): {$(VPATH)}thread.c {$(VPATH)}eval_intern.h \
566 $(RUBY_H_INCLUDES) {$(VPATH)}st.h {$(VPATH)}node.h \
567 {$(VPATH)}util.h {$(VPATH)}signal.h {$(VPATH)}vm_core.h \
568 {$(VPATH)}debug.h {$(VPATH)}vm_opts.h {$(VPATH)}id.h \
569 {$(VPATH)}thread_$(THREAD_MODEL).h {$(VPATH)}dln.h {$(VPATH)}vm.h \
570 {$(VPATH)}gc.h {$(VPATH)}thread_$(THREAD_MODEL).c
571 transcode.$(OBJEXT): {$(VPATH)}transcode.c $(RUBY_H_INCLUDES) {$(VPATH)}st.h \
572 {$(VPATH)}encoding.h {$(VPATH)}oniguruma.h {$(VPATH)}transcode_data.h
573 cont.$(OBJEXT): {$(VPATH)}cont.c $(RUBY_H_INCLUDES) \
574 {$(VPATH)}st.h {$(VPATH)}vm_core.h {$(VPATH)}signal.h {$(VPATH)}node.h \
575 {$(VPATH)}debug.h {$(VPATH)}vm_opts.h {$(VPATH)}id.h \
576 {$(VPATH)}thread_$(THREAD_MODEL).h {$(VPATH)}gc.h \
577 {$(VPATH)}eval_intern.h {$(VPATH)}util.h {$(VPATH)}dln.h
578 time.$(OBJEXT): {$(VPATH)}time.c $(RUBY_H_INCLUDES) \
579 {$(VPATH)}st.h {$(VPATH)}encoding.h
580 util.$(OBJEXT): {$(VPATH)}util.c $(RUBY_H_INCLUDES) \
581 {$(VPATH)}st.h {$(VPATH)}util.h
582 variable.$(OBJEXT): {$(VPATH)}variable.c $(RUBY_H_INCLUDES) {$(VPATH)}st.h \
583 {$(VPATH)}node.h {$(VPATH)}util.h
584 version.$(OBJEXT): {$(VPATH)}version.c $(RUBY_H_INCLUDES) {$(VPATH)}st.h \
585 {$(VPATH)}version.h $(srcdir)/revision.h
587 compile.$(OBJEXT): {$(VPATH)}compile.c $(RUBY_H_INCLUDES) {$(VPATH)}st.h \
588 {$(VPATH)}node.h {$(VPATH)}vm_core.h \
589 {$(VPATH)}signal.h {$(VPATH)}debug.h {$(VPATH)}vm_opts.h {$(VPATH)}id.h \
590 {$(VPATH)}thread_$(THREAD_MODEL).h {$(VPATH)}compile.h \
591 {$(VPATH)}insns.inc {$(VPATH)}insns_info.inc {$(VPATH)}optinsn.inc
592 iseq.$(OBJEXT): {$(VPATH)}iseq.c $(RUBY_H_INCLUDES) \
593 {$(VPATH)}st.h {$(VPATH)}node.h {$(VPATH)}gc.h {$(VPATH)}vm_core.h \
594 {$(VPATH)}signal.h {$(VPATH)}debug.h {$(VPATH)}vm_opts.h {$(VPATH)}id.h \
595 {$(VPATH)}thread_$(THREAD_MODEL).h {$(VPATH)}insns.inc \
596 {$(VPATH)}insns_info.inc {$(VPATH)}node_name.inc
597 vm.$(OBJEXT): {$(VPATH)}vm.c $(RUBY_H_INCLUDES) \
598 {$(VPATH)}st.h {$(VPATH)}node.h {$(VPATH)}encoding.h \
599 {$(VPATH)}oniguruma.h {$(VPATH)}gc.h {$(VPATH)}insnhelper.h \
600 {$(VPATH)}eval_intern.h {$(VPATH)}util.h {$(VPATH)}signal.h \
601 {$(VPATH)}vm_core.h {$(VPATH)}debug.h {$(VPATH)}vm_opts.h {$(VPATH)}id.h \
602 {$(VPATH)}thread_$(THREAD_MODEL).h {$(VPATH)}dln.h {$(VPATH)}vm.h \
603 {$(VPATH)}vm_insnhelper.c {$(VPATH)}insns.inc {$(VPATH)}vm_evalbody.c \
604 {$(VPATH)}vmtc.inc {$(VPATH)}vm.inc {$(VPATH)}insns.def \
605 {$(VPATH)}vm_method.c {$(VPATH)}vm_eval.c
606 vm_dump.$(OBJEXT): {$(VPATH)}vm_dump.c $(RUBY_H_INCLUDES) {$(VPATH)}st.h \
607 {$(VPATH)}node.h {$(VPATH)}vm_core.h \
608 {$(VPATH)}signal.h {$(VPATH)}debug.h {$(VPATH)}vm_opts.h {$(VPATH)}id.h \
609 {$(VPATH)}thread_$(THREAD_MODEL).h {$(VPATH)}vm.h
610 debug.$(OBJEXT): {$(VPATH)}debug.c $(RUBY_H_INCLUDES) \
611 {$(VPATH)}st.h {$(VPATH)}encoding.h {$(VPATH)}oniguruma.h \
612 {$(VPATH)}debug.h {$(VPATH)}node.h {$(VPATH)}vm_core.h \
613 {$(VPATH)}signal.h {$(VPATH)}vm_opts.h {$(VPATH)}id.h \
614 {$(VPATH)}thread_$(THREAD_MODEL).h
615 blockinlining.$(OBJEXT): {$(VPATH)}blockinlining.c $(RUBY_H_INCLUDES) \
616 {$(VPATH)}st.h {$(VPATH)}node.h {$(VPATH)}vm_core.h \
617 {$(VPATH)}signal.h {$(VPATH)}debug.h {$(VPATH)}vm_opts.h {$(VPATH)}id.h \
618 {$(VPATH)}thread_$(THREAD_MODEL).h
619 id.$(OBJEXT): {$(VPATH)}id.c $(RUBY_H_INCLUDES) \
620 {$(VPATH)}st.h {$(VPATH)}id.h
621 miniprelude.$(OBJEXT): {$(VPATH)}miniprelude.c $(RUBY_H_INCLUDES) \
622 {$(VPATH)}st.h {$(VPATH)}vm_core.h {$(VPATH)}signal.h \
623 {$(VPATH)}node.h {$(VPATH)}debug.h {$(VPATH)}vm_opts.h {$(VPATH)}id.h \
624 {$(VPATH)}thread_$(THREAD_MODEL).h
625 prelude.$(OBJEXT): {$(VPATH)}prelude.c $(RUBY_H_INCLUDES) {$(VPATH)}st.h \
626 {$(VPATH)}vm_core.h {$(VPATH)}signal.h \
627 {$(VPATH)}node.h {$(VPATH)}debug.h {$(VPATH)}vm_opts.h {$(VPATH)}id.h \
628 {$(VPATH)}thread_$(THREAD_MODEL).h
629 golf_prelude.$(OBJEXT): {$(VPATH)}golf_prelude.c $(RUBY_H_INCLUDES) \
630 {$(VPATH)}st.h {$(VPATH)}vm_core.h {$(VPATH)}signal.h \
631 {$(VPATH)}node.h {$(VPATH)}debug.h {$(VPATH)}vm_opts.h {$(VPATH)}id.h \
632 {$(VPATH)}thread_$(THREAD_MODEL).h
633 goruby.$(OBJEXT): {$(VPATH)}goruby.c {$(VPATH)}main.c $(RUBY_H_INCLUDES) {$(VPATH)}st.h
635 ascii.$(OBJEXT): {$(VPATH)}ascii.c {$(VPATH)}regenc.h {$(VPATH)}config.h \
636 {$(VPATH)}defines.h {$(VPATH)}oniguruma.h
637 us_ascii.$(OBJEXT): {$(VPATH)}us_ascii.c {$(VPATH)}regenc.h {$(VPATH)}config.h \
638 {$(VPATH)}defines.h {$(VPATH)}oniguruma.h
639 unicode.$(OBJEXT): {$(VPATH)}unicode.c {$(VPATH)}regint.h \
640 {$(VPATH)}config.h {$(VPATH)}defines.h {$(VPATH)}regenc.h \
641 {$(VPATH)}oniguruma.h {$(VPATH)}st.h
642 utf_8.$(OBJEXT): {$(VPATH)}utf_8.c {$(VPATH)}regenc.h {$(VPATH)}config.h \
643 {$(VPATH)}defines.h {$(VPATH)}oniguruma.h
645 INSNS = opt_sc.inc optinsn.inc optunifs.inc insns.inc insns_info.inc \
646 vmtc.inc vm.inc
648 INSNS2VMOPT = --srcdir="$(srcdir)"
650 $(INSNS): $(srcdir)/insns.def {$(VPATH)}vm_opts.h
651 $(RM) $(PROGRAM)
652 $(BASERUBY) -Ks $(srcdir)/tool/insns2vm.rb $(INSNS2VMOPT) $@
654 minsns.inc: $(srcdir)/template/minsns.inc.tmpl
656 opt_sc.inc: $(srcdir)/template/opt_sc.inc.tmpl
658 optinsn.inc: $(srcdir)/template/optinsn.inc.tmpl
660 optunifs.inc: $(srcdir)/template/optunifs.inc.tmpl
662 insns.inc: $(srcdir)/template/insns.inc.tmpl
664 insns_info.inc: $(srcdir)/template/insns_info.inc.tmpl
666 vmtc.inc: $(srcdir)/template/vmtc.inc.tmpl
668 vm.inc: $(srcdir)/template/vm.inc.tmpl
670 srcs: {$(VPATH)}parse.c {$(VPATH)}lex.c $(srcdir)/ext/ripper/ripper.c
672 incs: $(INSNS) {$(VPATH)}node_name.inc {$(VPATH)}encdb.h {$(VPATH)}transdb.h $(srcdir)/revision.h
674 insns: $(INSNS)
676 node_name.inc: {$(VPATH)}node.h
677 $(BASERUBY) -n $(srcdir)/tool/node_name.rb $? > $@
679 encdb.h: $(PREP)
680 $(MINIRUBY) $(srcdir)/enc/make_encdb.rb $(srcdir)/enc $@.new
681 $(IFCHANGE) "$@" "$@.new"
683 transdb.h: $(PREP)
684 $(MINIRUBY) $(srcdir)/enc/trans/make_transdb.rb $(srcdir)/enc/trans $@.new
685 $(IFCHANGE) "$@" "$@.new"
687 miniprelude.c: $(srcdir)/tool/compile_prelude.rb $(srcdir)/prelude.rb
688 $(BASERUBY) -I$(srcdir) $(srcdir)/tool/compile_prelude.rb $(srcdir)/prelude.rb $@
690 prelude.c: $(srcdir)/tool/compile_prelude.rb $(PRELUDE_SCRIPTS) $(PREP)
691 $(COMPILE_PRELUDE) $(PRELUDE_SCRIPTS) $@
693 golf_prelude.c: $(srcdir)/tool/compile_prelude.rb $(srcdir)/prelude.rb $(srcdir)/golf_prelude.rb $(PREP)
694 $(COMPILE_PRELUDE) $(srcdir)/golf_prelude.rb $@
696 prereq: incs srcs preludes
698 preludes: {$(VPATH)}miniprelude.c
699 preludes: {$(srcdir)}golf_prelude.c
701 docs:
702 $(BASERUBY) -I$(srcdir) $(srcdir)/tool/makedocs.rb $(INSNS2VMOPT)
704 $(srcdir)/revision.h: $(REVISION_FORCE)
705 @set LC_MESSAGES=C
706 -@$(SET_LC_MESSAGES) $(VCS) info "$(@D)" | \
707 sed -n "s/.*Rev:/#define RUBY_REVISION/p" > "$@.tmp"
708 @$(IFCHANGE) "$@" "$@.tmp"
710 $(srcdir)/ext/ripper/ripper.c:
711 cd $(srcdir)/ext/ripper && exec $(MAKE) -f depend $(MFLAGS) top_srcdir=../.. srcdir=.
715 run: miniruby$(EXEEXT) PHONY
716 $(MINIRUBY) $(srcdir)/test.rb $(RUNOPT)
718 runruby: $(PROGRAM) PHONY
719 $(RUNRUBY) $(srcdir)/test.rb
721 parse: miniruby$(EXEEXT) PHONY
722 $(MINIRUBY) $(srcdir)/tool/parse.rb $(srcdir)/test.rb
724 COMPARE_RUBY = $(BASERUBY)
725 ITEM =
726 OPTS =
728 benchmark: $(PROGRAM) PHONY
729 $(BASERUBY) $(srcdir)/benchmark/driver.rb -v \
730 --executables="$(COMPARE_RUBY); $(RUNRUBY)" \
731 --pattern='bm_' --directory=$(srcdir)/benchmark $(OPTS)
733 benchmark-each: $(PROGRAM) PHONY
734 $(BASERUBY) $(srcdir)/benchmark/driver.rb -v \
735 --executables="$(COMPARE_RUBY); $(RUNRUBY)" \
736 --pattern=$(ITEM) --directory=$(srcdir)/benchmark $(OPTS)
738 tbench: $(PROGRAM) PHONY
739 $(BASERUBY) $(srcdir)/benchmark/driver.rb -v \
740 --executables="$(COMPARE_RUBY); $(RUNRUBY)" \
741 --pattern='bmx_' --directory=$(srcdir)/benchmark $(OPTS)
743 aotc: $(PROGRAM) PHONY
744 ./$(PROGRAM) -I$(srcdir)/lib $(srcdir)/bin/ruby2cext $(srcdir)/test.rb
746 vmasm: vm.$(ASMEXT)
748 # vm.o : CFLAGS += -fno-crossjumping
750 run.gdb:
751 echo b ruby_debug_breakpoint > run.gdb
752 echo '# handle SIGINT nostop' >> run.gdb
753 echo '# handle SIGPIPE nostop' >> run.gdb
754 echo '# b rb_longjmp' >> run.gdb
755 echo source $(srcdir)/breakpoints.gdb >> run.gdb
756 echo source $(srcdir)/.gdbinit >> run.gdb
757 echo run >> run.gdb
759 gdb: miniruby$(EXEEXT) run.gdb PHONY
760 gdb -x run.gdb --quiet --args $(MINIRUBY) $(srcdir)/test.rb
762 # Intel VTune
764 vtune: miniruby$(EXEEXT)
765 vtl activity -c sampling -app ".\miniruby$(EXEEXT)","-I$(srcdir)/lib $(srcdir)/test.rb" run
766 vtl view -hf -mn miniruby$(EXEEXT) -sum -sort -cd
767 vtl view -ha -mn miniruby$(EXEEXT) -sum -sort -cd | $(RUNRUBY) $(srcdir)/tool/vtlh.rb > ha.lines
769 dist: $(PREP) $(PROGRAM)
770 $(SHELL) $(srcdir)/tool/make-snapshot . $(TARNAME)
773 @$(VCS) up "$(srcdir)"
774 -@$(MAKE) $(MFLAGS) REVISION_FORCE=PHONY "$(srcdir)/revision.h"
776 help: PHONY
777 @echo " Makefile of Ruby"
778 @echo ""
779 @echo "targets:"
780 @echo " all: compile ruby and extensions"
781 @echo " check: equals make test test-all"
782 @echo " test: ruby core tests"
783 @echo " test-all: all ruby tests"
784 @echo " install: install all ruby distributions"
785 @echo " install-nodoc: install without rdoc"
786 @echo " clean: clean built objects"
787 @echo " golf: for golfers"