|
| 1 | +SRC = converters/convert_bool_literal.cpp \ |
| 2 | + converters/convert_int_literal.cpp \ |
| 3 | + converters/convert_real_literal.cpp \ |
| 4 | + converters/convert_string_value.cpp \ |
| 5 | + converters/expr2statement_list.cpp \ |
| 6 | + statement_list_language.cpp \ |
| 7 | + statement_list_lex.yy.cpp \ |
| 8 | + statement_list_parse_tree.cpp \ |
| 9 | + statement_list_parser.cpp \ |
| 10 | + statement_list_typecheck.cpp \ |
| 11 | + statement_list_y.tab.cpp \ |
| 12 | + # Empty last line |
| 13 | + |
| 14 | +INCLUDES= -I .. |
| 15 | + |
| 16 | +include ../config.inc |
| 17 | +include ../common |
| 18 | + |
| 19 | +CLEANFILES = stl$(LIBEXT) \ |
| 20 | + statement_list_y.tab.h statement_list_y.tab.cpp \ |
| 21 | + statement_list_lex.yy.cpp statement_list_y.tab.cpp.output \ |
| 22 | + statement_list_y.output |
| 23 | + |
| 24 | +all: statement-list$(LIBEXT) |
| 25 | + |
| 26 | +############################################################################### |
| 27 | + |
| 28 | +statement_list_y.tab.cpp: parser.y |
| 29 | + $(YACC) $(YFLAGS) $$flags -pyystatement_list -d parser.y -o $@ |
| 30 | + |
| 31 | +statement_list_y.tab.h: statement_list_y.tab.cpp |
| 32 | + if [ -e statement_list_y.tab.hpp ] ; then mv statement_list_y.tab.hpp \ |
| 33 | + statement_list_y.tab.h ; else mv statement_list_y.tab.cpp.h \ |
| 34 | + statement_list_y.tab.h ; fi |
| 35 | + |
| 36 | +statement_list_lex.yy.cpp: scanner.l |
| 37 | + $(LEX) -Pyystatement_list -o$@ scanner.l |
| 38 | + |
| 39 | +# extra dependencies |
| 40 | +statement_list_y.tab$(OBJEXT): statement_list_y.tab.cpp \ |
| 41 | + statement_list_y.tab.h |
| 42 | +statement_list_lex.yy$(OBJEXT): statement_list_y.tab.cpp \ |
| 43 | + statement_list_lex.yy.cpp statement_list_y.tab.h |
| 44 | + |
| 45 | +############################################################################### |
| 46 | + |
| 47 | +generated_files: statement_list_y.tab.cpp statement_list_lex.yy.cpp \ |
| 48 | + statement_list_y.tab.h |
| 49 | + |
| 50 | +############################################################################### |
| 51 | + |
| 52 | +statement-list$(LIBEXT): $(OBJ) |
| 53 | + $(LINKLIB) |
| 54 | + |
0 commit comments