glr.c: reorder routines
[bison.git] / src / local.mk
blob08ff62be1f60f89aa0a73094e5f59d2d810cc0eb
1 ## Copyright (C) 2001-2015, 2018-2020 Free Software Foundation, Inc.
2 ##
3 ## This program is free software: you can redistribute it and/or modify
4 ## it under the terms of the GNU General Public License as published by
5 ## the Free Software Foundation, either version 3 of the License, or
6 ## (at your option) any later version.
7 ##
8 ## This program is distributed in the hope that it will be useful,
9 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
10 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 ## GNU General Public License for more details.
13 ## You should have received a copy of the GNU General Public License
14 ## along with this program. If not, see <http://www.gnu.org/licenses/>.
16 CLEANDIRS += %D%/*.dSYM
18 bin_PROGRAMS = src/bison
19 # Prettify Automake-computed names of compiled objects.
20 src_bison_SHORTNAME = bison
22 src_bison_CPPFLAGS = $(AM_CPPFLAGS) -DINSTALLDIR=\"$(bindir)\"
23 if RELOCATABLE_VIA_LD
24 src_bison_LDFLAGS = `$(RELOCATABLE_LDFLAGS) $(bindir)`
25 endif
27 src_bison_CFLAGS = $(AM_CFLAGS) $(WERROR_CFLAGS)
28 src_bison_SOURCES = \
29 src/AnnotationList.c \
30 src/AnnotationList.h \
31 src/InadequacyList.c \
32 src/InadequacyList.h \
33 src/Sbitset.c \
34 src/Sbitset.h \
35 src/assoc.c \
36 src/assoc.h \
37 src/closure.c \
38 src/closure.h \
39 src/complain.c \
40 src/complain.h \
41 src/conflicts.c \
42 src/conflicts.h \
43 src/counterexample.c \
44 src/counterexample.h \
45 src/derivation.c \
46 src/derivation.h \
47 src/derives.c \
48 src/derives.h \
49 src/files.c \
50 src/files.h \
51 src/fixits.c \
52 src/fixits.h \
53 src/flex-scanner.h \
54 src/getargs.c \
55 src/getargs.h \
56 src/glyphs.c \
57 src/glyphs.h \
58 src/gram.c \
59 src/gram.h \
60 src/graphviz.c \
61 src/graphviz.h \
62 src/ielr.c \
63 src/ielr.h \
64 src/lalr.c \
65 src/lalr.h \
66 src/location.c \
67 src/location.h \
68 src/lr0.c \
69 src/lr0.h \
70 src/lssi.c \
71 src/lssi.h \
72 src/main.c \
73 src/muscle-tab.c \
74 src/muscle-tab.h \
75 src/named-ref.c \
76 src/named-ref.h \
77 src/nullable.c \
78 src/nullable.h \
79 src/output.c \
80 src/output.h \
81 src/parse-gram.y \
82 src/parse-simulation.c \
83 src/parse-simulation.h \
84 src/print-graph.c \
85 src/print-graph.h \
86 src/print-xml.c \
87 src/print-xml.h \
88 src/print.c \
89 src/print.h \
90 src/reader.c \
91 src/reader.h \
92 src/reduce.c \
93 src/reduce.h \
94 src/relation.c \
95 src/relation.h \
96 src/scan-code-c.c \
97 src/scan-code.h \
98 src/scan-gram-c.c \
99 src/scan-gram.h \
100 src/scan-skel-c.c \
101 src/scan-skel.h \
102 src/state.c \
103 src/state.h \
104 src/state-item.c \
105 src/state-item.h \
106 src/strversion.c \
107 src/strversion.h \
108 src/symlist.c \
109 src/symlist.h \
110 src/symtab.c \
111 src/symtab.h \
112 src/system.h \
113 src/tables.c \
114 src/tables.h \
115 src/uniqstr.c \
116 src/uniqstr.h
118 EXTRA_src_bison_SOURCES = \
119 src/scan-code.l \
120 src/scan-gram.l \
121 src/scan-skel.l
123 BUILT_SOURCES += \
124 src/parse-gram.c \
125 src/parse-gram.h \
126 src/scan-code.c \
127 src/scan-gram.c \
128 src/scan-skel.c
130 # Although conceptually most of these guys would make more sense in the
131 # definition of libbison, beware that they might expand as flags such as
132 # `-lm`. Keep them here. Or use a Libtool convenience library.
133 src_bison_LDADD = \
134 lib/libbison.a \
135 $(ISNAND_LIBM) \
136 $(ISNANF_LIBM) \
137 $(ISNANL_LIBM) \
138 $(LDEXPL_LIBM) \
139 $(LDEXP_LIBM) \
140 $(LIBTHREAD) \
141 $(LIB_CLOCK_GETTIME) \
142 $(LIB_GETHRXTIME) \
143 $(LIB_HARD_LOCALE) \
144 $(LIB_MBRTOWC) \
145 $(LIB_SETLOCALE_NULL) \
146 $(LIBICONV) \
147 $(LIBINTL) \
148 $(LIBTEXTSTYLE)
151 EXTRA_DIST += %D%/i18n-strings.c
154 ## ------ ##
155 ## yacc. ##
156 ## ------ ##
158 if ENABLE_YACC
159 nodist_bin_SCRIPTS = src/yacc
160 endif
161 EXTRA_SCRIPTS = src/yacc
162 MOSTLYCLEANFILES += src/yacc