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