]>
Commit | Line | Data |
---|---|---|
11c073b7 AD |
1 | ## Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 |
2 | ## Free Software Foundation, Inc. | |
0305d25e AD |
3 | |
4 | ## This program is free software: you can redistribute it and/or modify | |
5 | ## it under the terms of the GNU General Public License as published by | |
6 | ## the Free Software Foundation, either version 3 of the License, or | |
7 | ## (at your option) any later version. | |
8 | ## | |
9 | ## This program is distributed in the hope that it will be useful, | |
10 | ## but WITHOUT ANY WARRANTY; without even the implied warranty of | |
11 | ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
12 | ## GNU General Public License for more details. | |
13 | ## | |
14 | ## You should have received a copy of the GNU General Public License | |
15 | ## along with this program. If not, see <http://www.gnu.org/licenses/>. | |
16 | ||
17 | AUTOMAKE_OPTIONS = subdir-objects | |
18 | ||
feda5527 | 19 | AM_CPPFLAGS += -I$(top_srcdir)/lib |
0305d25e AD |
20 | # Find builddir/src/scan-code.c etc. |
21 | AM_CPPFLAGS += -I$(top_builddir) | |
22 | ||
0305d25e AD |
23 | LDADD = $(top_builddir)/lib/libbison.a $(LIBINTL) |
24 | ||
25 | # Use our own Bison to build the parser. Of course, you ought to | |
26 | # keep a sane version of Bison nearby... | |
27 | YACC = $(top_builddir)/tests/bison -y | |
28 | AM_YFLAGS = -dv --warnings=all,error --report=all | |
29 | ||
30 | bin_PROGRAMS = src/bison | |
31 | bin_SCRIPTS = $(YACC_SCRIPT) | |
32 | EXTRA_SCRIPTS = src/yacc | |
33 | ||
34 | src_bison_SOURCES = \ | |
35 | src/LR0.c \ | |
36 | src/LR0.h \ | |
37 | src/assoc.c \ | |
38 | src/assoc.h \ | |
39 | src/closure.c \ | |
40 | src/closure.h \ | |
41 | src/complain.c \ | |
42 | src/complain.h \ | |
43 | src/conflicts.c \ | |
44 | src/conflicts.h \ | |
45 | src/derives.c \ | |
46 | src/derives.h \ | |
47 | src/files.c \ | |
48 | src/files.h \ | |
49 | src/flex-scanner.h \ | |
50 | src/getargs.c \ | |
51 | src/getargs.h \ | |
52 | src/gram.c \ | |
53 | src/gram.h \ | |
54 | src/graphviz.c \ | |
55 | src/graphviz.h \ | |
56 | src/lalr.c \ | |
57 | src/lalr.h \ | |
58 | src/location.c \ | |
59 | src/location.h \ | |
60 | src/main.c \ | |
61 | src/muscle_tab.c \ | |
62 | src/muscle_tab.h \ | |
63 | src/nullable.c \ | |
64 | src/nullable.h \ | |
65 | src/output.c \ | |
66 | src/output.h \ | |
67 | src/parse-gram.h \ | |
68 | src/parse-gram.y \ | |
69 | src/print-xml.c \ | |
70 | src/print-xml.h \ | |
71 | src/print.c \ | |
72 | src/print.h \ | |
73 | src/print_graph.c \ | |
74 | src/print_graph.h \ | |
75 | src/reader.c \ | |
76 | src/reader.h \ | |
77 | src/reduce.c \ | |
78 | src/reduce.h \ | |
79 | src/relation.c \ | |
80 | src/relation.h \ | |
81 | src/scan-code-c.c \ | |
82 | src/scan-code.h \ | |
83 | src/scan-gram-c.c \ | |
84 | src/scan-gram.h \ | |
85 | src/scan-skel-c.c \ | |
86 | src/scan-skel.h \ | |
87 | src/state.c \ | |
88 | src/state.h \ | |
89 | src/symlist.c \ | |
90 | src/symlist.h \ | |
91 | src/symtab.c \ | |
92 | src/symtab.h \ | |
93 | src/system.h \ | |
94 | src/tables.c \ | |
95 | src/tables.h \ | |
96 | src/uniqstr.c \ | |
97 | src/uniqstr.h | |
98 | ||
99 | EXTRA_src_bison_SOURCES = \ | |
100 | src/scan-code.l \ | |
101 | src/scan-gram.l \ | |
102 | src/scan-skel.l | |
103 | ||
104 | BUILT_SOURCES += \ | |
105 | src/parse-gram.c \ | |
106 | src/parse-gram.h \ | |
107 | src/scan-code.c \ | |
108 | src/scan-gram.c \ | |
109 | src/scan-skel.c | |
110 | ||
e2c2f696 | 111 | MOSTLYCLEANFILES += src/yacc |
0305d25e AD |
112 | |
113 | src/yacc: | |
114 | rm -f $@ $@.tmp | |
115 | echo '#! /bin/sh' >$@.tmp | |
116 | echo "exec '$(bindir)/bison' -y "'"$$@"' >>$@.tmp | |
117 | chmod a+x $@.tmp | |
118 | mv $@.tmp $@ |