]> git.saurik.com Git - bison.git/blame_incremental - src/local.mk
regen
[bison.git] / src / local.mk
... / ...
CommitLineData
1# Copyright (C) 2001-2013 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.
12#
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/>.
15
16LDADD = lib/libbison.a $(LIBINTL)
17
18bin_PROGRAMS = src/bison
19# Prettify Automake-computed names of compiled objects.
20src_bison_SHORTNAME = bison
21
22src_bison_CFLAGS = $(AM_CFLAGS) $(WERROR_CFLAGS)
23src_bison_SOURCES = \
24 src/AnnotationList.c \
25 src/AnnotationList.h \
26 src/InadequacyList.c \
27 src/InadequacyList.h \
28 src/LR0.c \
29 src/LR0.h \
30 src/Sbitset.c \
31 src/Sbitset.h \
32 src/assoc.c \
33 src/assoc.h \
34 src/closure.c \
35 src/closure.h \
36 src/complain.c \
37 src/complain.h \
38 src/conflicts.c \
39 src/conflicts.h \
40 src/derives.c \
41 src/derives.h \
42 src/files.c \
43 src/files.h \
44 src/flex-scanner.h \
45 src/getargs.c \
46 src/getargs.h \
47 src/gram.c \
48 src/gram.h \
49 src/graphviz.c \
50 src/graphviz.h \
51 src/lalr.c \
52 src/lalr.h \
53 src/ielr.c \
54 src/ielr.h \
55 src/location.c \
56 src/location.h \
57 src/main.c \
58 src/muscle-tab.c \
59 src/muscle-tab.h \
60 src/named-ref.c \
61 src/named-ref.h \
62 src/nullable.c \
63 src/nullable.h \
64 src/output.c \
65 src/output.h \
66 src/parse-gram.y \
67 src/print-xml.c \
68 src/print-xml.h \
69 src/print.c \
70 src/print.h \
71 src/print_graph.c \
72 src/print_graph.h \
73 src/reader.c \
74 src/reader.h \
75 src/reduce.c \
76 src/reduce.h \
77 src/relation.c \
78 src/relation.h \
79 src/scan-code-c.c \
80 src/scan-code.h \
81 src/scan-gram-c.c \
82 src/scan-gram.h \
83 src/scan-skel-c.c \
84 src/scan-skel.h \
85 src/state.c \
86 src/state.h \
87 src/symlist.c \
88 src/symlist.h \
89 src/symtab.c \
90 src/symtab.h \
91 src/system.h \
92 src/tables.c \
93 src/tables.h \
94 src/uniqstr.c \
95 src/uniqstr.h
96
97EXTRA_src_bison_SOURCES = \
98 src/scan-code.l \
99 src/scan-gram.l \
100 src/scan-skel.l
101
102BUILT_SOURCES += \
103 src/parse-gram.c \
104 src/parse-gram.h \
105 src/scan-code.c \
106 src/scan-gram.c \
107 src/scan-skel.c
108
109
110## ------ ##
111## yacc. ##
112## ------ ##
113
114bin_SCRIPTS = $(YACC_SCRIPT)
115EXTRA_SCRIPTS = src/yacc
116MOSTLYCLEANFILES += src/yacc
117
118src/yacc:
119 $(AM_V_GEN)rm -f $@ $@.tmp
120 $(AM_V_at)echo '#! /bin/sh' >$@.tmp
121 $(AM_V_at)echo "exec '$(bindir)/bison' -y "'"$$@"' >>$@.tmp
122 $(AM_V_at)chmod a+x $@.tmp
123 $(AM_V_at)mv $@.tmp $@