]>
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... | |
76bf5102 AD |
27 | BISON = $(top_builddir)/tests/bison |
28 | YACC = $(BISON) -y | |
0305d25e AD |
29 | AM_YFLAGS = -dv --warnings=all,error --report=all |
30 | ||
31 | bin_PROGRAMS = src/bison | |
32 | bin_SCRIPTS = $(YACC_SCRIPT) | |
33 | EXTRA_SCRIPTS = src/yacc | |
34 | ||
e021191b | 35 | src_bison_CFLAGS = $(AM_CFLAGS) $(WERROR_CFLAGS) |
0305d25e | 36 | src_bison_SOURCES = \ |
db34f798 JD |
37 | src/AnnotationList.c \ |
38 | src/AnnotationList.h \ | |
39 | src/InadequacyList.c \ | |
40 | src/InadequacyList.h \ | |
0305d25e AD |
41 | src/LR0.c \ |
42 | src/LR0.h \ | |
db34f798 JD |
43 | src/Sbitset.c \ |
44 | src/Sbitset.h \ | |
0305d25e AD |
45 | src/assoc.c \ |
46 | src/assoc.h \ | |
47 | src/closure.c \ | |
48 | src/closure.h \ | |
49 | src/complain.c \ | |
50 | src/complain.h \ | |
51 | src/conflicts.c \ | |
52 | src/conflicts.h \ | |
53 | src/derives.c \ | |
54 | src/derives.h \ | |
55 | src/files.c \ | |
56 | src/files.h \ | |
57 | src/flex-scanner.h \ | |
58 | src/getargs.c \ | |
59 | src/getargs.h \ | |
60 | src/gram.c \ | |
61 | src/gram.h \ | |
62 | src/graphviz.c \ | |
63 | src/graphviz.h \ | |
64 | src/lalr.c \ | |
65 | src/lalr.h \ | |
db34f798 JD |
66 | src/ielr.c \ |
67 | src/ielr.h \ | |
0305d25e AD |
68 | src/location.c \ |
69 | src/location.h \ | |
70 | src/main.c \ | |
00f5d575 AD |
71 | src/muscle-tab.c \ |
72 | src/muscle-tab.h \ | |
0305d25e AD |
73 | src/nullable.c \ |
74 | src/nullable.h \ | |
75 | src/output.c \ | |
76 | src/output.h \ | |
77 | src/parse-gram.h \ | |
78 | src/parse-gram.y \ | |
79 | src/print-xml.c \ | |
80 | src/print-xml.h \ | |
81 | src/print.c \ | |
82 | src/print.h \ | |
83 | src/print_graph.c \ | |
84 | src/print_graph.h \ | |
85 | src/reader.c \ | |
86 | src/reader.h \ | |
87 | src/reduce.c \ | |
88 | src/reduce.h \ | |
89 | src/relation.c \ | |
90 | src/relation.h \ | |
91 | src/scan-code-c.c \ | |
92 | src/scan-code.h \ | |
93 | src/scan-gram-c.c \ | |
94 | src/scan-gram.h \ | |
95 | src/scan-skel-c.c \ | |
96 | src/scan-skel.h \ | |
97 | src/state.c \ | |
98 | src/state.h \ | |
99 | src/symlist.c \ | |
100 | src/symlist.h \ | |
101 | src/symtab.c \ | |
102 | src/symtab.h \ | |
103 | src/system.h \ | |
104 | src/tables.c \ | |
105 | src/tables.h \ | |
106 | src/uniqstr.c \ | |
b9f1d9a4 AR |
107 | src/uniqstr.h \ |
108 | src/named-ref.c \ | |
109 | src/named-ref.h | |
0305d25e AD |
110 | |
111 | EXTRA_src_bison_SOURCES = \ | |
112 | src/scan-code.l \ | |
113 | src/scan-gram.l \ | |
114 | src/scan-skel.l | |
115 | ||
116 | BUILT_SOURCES += \ | |
117 | src/parse-gram.c \ | |
118 | src/parse-gram.h \ | |
119 | src/scan-code.c \ | |
120 | src/scan-gram.c \ | |
121 | src/scan-skel.c | |
122 | ||
e2c2f696 | 123 | MOSTLYCLEANFILES += src/yacc |
0305d25e AD |
124 | |
125 | src/yacc: | |
126 | rm -f $@ $@.tmp | |
127 | echo '#! /bin/sh' >$@.tmp | |
128 | echo "exec '$(bindir)/bison' -y "'"$$@"' >>$@.tmp | |
129 | chmod a+x $@.tmp | |
130 | mv $@.tmp $@ |