2005-09-24 01:37:38 +04:00
|
|
|
GEN = $(srcdir)/tools/generate.rb
|
2007-06-10 07:06:15 +04:00
|
|
|
SRC1 = $(top_srcdir)/parse.y
|
2005-09-24 01:37:38 +04:00
|
|
|
SRC2 = $(srcdir)/eventids2.c
|
2005-10-08 13:58:25 +04:00
|
|
|
BISON = bison
|
2005-09-23 15:10:59 +04:00
|
|
|
|
2009-02-24 11:58:10 +03:00
|
|
|
.SUFFIXES: .y
|
|
|
|
|
2005-09-24 01:37:38 +04:00
|
|
|
src: ripper.c eventids1.c eventids2table.c
|
|
|
|
|
2014-11-15 08:15:49 +03:00
|
|
|
ripper.o: ripper.c
|
2004-09-12 21:34:30 +04:00
|
|
|
|
2005-06-02 18:43:10 +04:00
|
|
|
.y.c:
|
2010-11-11 15:46:23 +03:00
|
|
|
$(ECHO) compiling compiler $<
|
2010-11-12 14:51:42 +03:00
|
|
|
$(Q) $(BISON) -t -v -oy.tab.c $<
|
2014-11-19 18:19:33 +03:00
|
|
|
$(Q) sed -f $(top_srcdir)/tool/ytab.sed -e "/^#/s!y\.tab\.c!$@!" y.tab.c > $@
|
2007-11-13 15:41:41 +03:00
|
|
|
@$(RM) y.tab.c
|
2004-09-12 21:34:30 +04:00
|
|
|
|
2005-10-20 02:55:51 +04:00
|
|
|
all: check
|
|
|
|
static: check
|
2005-10-08 13:58:25 +04:00
|
|
|
|
2007-06-10 07:06:15 +04:00
|
|
|
ripper.y: $(srcdir)/tools/preproc.rb $(top_srcdir)/parse.y
|
2010-12-26 16:25:10 +03:00
|
|
|
$(ECHO) extracting $@ from $(top_srcdir)/parse.y
|
2013-01-20 17:24:31 +04:00
|
|
|
$(Q) $(RUBY) $(top_srcdir)/tool/id2token.rb --path-separator=.$(PATH_SEPARATOR)./ --vpath=$(VPATH) id.h $(top_srcdir)/parse.y > ripper.tmp.y
|
2012-08-31 09:31:20 +04:00
|
|
|
$(Q) $(RUBY) $(srcdir)/tools/preproc.rb ripper.tmp.y --output=$@
|
|
|
|
$(Q) $(RM) ripper.tmp.y
|
2004-09-23 14:49:11 +04:00
|
|
|
|
2016-01-07 15:28:32 +03:00
|
|
|
check: .eventids2-check
|
2016-01-07 06:06:58 +03:00
|
|
|
|
2016-01-07 15:28:32 +03:00
|
|
|
.eventids2-check: $(GEN) $(SRC1) $(SRC2)
|
2010-11-11 15:46:23 +03:00
|
|
|
$(ECHO) checking $(SRC1) and $(SRC2)
|
2010-11-12 14:51:42 +03:00
|
|
|
$(Q) $(RUBY) $(GEN) --mode=check --ids1src=$(SRC1) --ids2src=$(SRC2)
|
2016-01-07 06:06:58 +03:00
|
|
|
@exit > $@
|
2005-09-24 01:37:38 +04:00
|
|
|
|
|
|
|
eventids1.c: $(srcdir)/tools/generate.rb $(SRC1)
|
2010-11-11 15:46:23 +03:00
|
|
|
$(ECHO) generating $@ from $(SRC1)
|
2010-11-12 14:51:42 +03:00
|
|
|
$(Q) $(RUBY) $(GEN) --mode=eventids1 --ids1src=$(SRC1) --output=$@
|
2004-09-23 14:49:11 +04:00
|
|
|
|
2005-09-24 01:37:38 +04:00
|
|
|
eventids2table.c: $(srcdir)/tools/generate.rb $(SRC2)
|
2010-11-11 15:46:23 +03:00
|
|
|
$(ECHO) generating $@ from $(SRC2)
|
2010-11-12 14:51:42 +03:00
|
|
|
$(Q) $(RUBY) $(GEN) --mode=eventids2table --ids2src=$(SRC2) --output=$@
|
2005-09-19 10:12:35 +04:00
|
|
|
|
2005-09-23 00:58:10 +04:00
|
|
|
# Entries for Ripper maintainer
|
2004-09-23 14:49:11 +04:00
|
|
|
|
|
|
|
preproc: ripper.E
|
|
|
|
ripper.E: ripper.c
|
2010-12-26 16:25:10 +03:00
|
|
|
$(ECHO) preprocessing ripper.c
|
2010-11-12 14:51:42 +03:00
|
|
|
$(Q) $(CC) -E $(CPPFLAGS) ripper.c | $(RUBY) $(srcdir)/tools/strip.rb > $@
|
2014-11-15 08:15:49 +03:00
|
|
|
|
2014-11-15 14:14:08 +03:00
|
|
|
# AUTOGENERATED DEPENDENCIES START
|
2014-11-21 06:04:44 +03:00
|
|
|
ripper.o: $(RUBY_EXTCONF_H)
|
2014-11-15 13:28:25 +03:00
|
|
|
ripper.o: $(arch_hdrdir)/ruby/config.h
|
|
|
|
ripper.o: $(hdrdir)/ruby/defines.h
|
|
|
|
ripper.o: $(hdrdir)/ruby/encoding.h
|
|
|
|
ripper.o: $(hdrdir)/ruby/intern.h
|
2014-11-18 18:28:08 +03:00
|
|
|
ripper.o: $(hdrdir)/ruby/io.h
|
2014-11-15 13:28:25 +03:00
|
|
|
ripper.o: $(hdrdir)/ruby/missing.h
|
|
|
|
ripper.o: $(hdrdir)/ruby/oniguruma.h
|
|
|
|
ripper.o: $(hdrdir)/ruby/regex.h
|
2014-12-19 16:34:54 +03:00
|
|
|
ripper.o: $(hdrdir)/ruby/ruby.h
|
2014-11-15 13:28:25 +03:00
|
|
|
ripper.o: $(hdrdir)/ruby/st.h
|
|
|
|
ripper.o: $(hdrdir)/ruby/subst.h
|
|
|
|
ripper.o: $(hdrdir)/ruby/util.h
|
2014-11-15 14:49:06 +03:00
|
|
|
ripper.o: $(top_srcdir)/include/ruby.h
|
2014-11-18 18:28:08 +03:00
|
|
|
ripper.o: $(top_srcdir)/internal.h
|
|
|
|
ripper.o: $(top_srcdir)/node.h
|
|
|
|
ripper.o: $(top_srcdir)/regenc.h
|
|
|
|
ripper.o: $(top_srcdir)/symbol.h
|
|
|
|
ripper.o: $(top_srcdir)/vm_opts.h
|
2014-11-27 15:52:17 +03:00
|
|
|
ripper.o: ../../probes.h
|
2014-11-18 18:28:08 +03:00
|
|
|
ripper.o: eventids2.c
|
|
|
|
ripper.o: ripper.y
|
2014-11-27 15:52:17 +03:00
|
|
|
ripper.o: {$(VPATH)}eventids1.c
|
|
|
|
ripper.o: {$(VPATH)}eventids2table.c
|
2014-11-18 18:28:08 +03:00
|
|
|
ripper.o: {$(VPATH)}id.h
|
|
|
|
ripper.o: {$(VPATH)}lex.c
|
|
|
|
ripper.o: {$(VPATH)}parse.h
|
2014-11-27 15:52:17 +03:00
|
|
|
ripper.o: {$(VPATH)}ripper.c
|
2014-11-15 14:14:08 +03:00
|
|
|
# AUTOGENERATED DEPENDENCIES END
|