]> git.saurik.com Git - bison.git/blame - src/local.mk
maint: run "make update-copyright"
[bison.git] / src / local.mk
CommitLineData
e141f4d4 1## Copyright (C) 2001-2010 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
16AUTOMAKE_OPTIONS = subdir-objects
17
feda5527 18AM_CPPFLAGS += -I$(top_srcdir)/lib
0305d25e
AD
19# Find builddir/src/scan-code.c etc.
20AM_CPPFLAGS += -I$(top_builddir)
21
838205d5 22LDADD = lib/libbison.a $(LIBINTL)
0305d25e
AD
23
24# Use our own Bison to build the parser. Of course, you ought to
25# keep a sane version of Bison nearby...
838205d5 26BISON = tests/bison
76bf5102 27YACC = $(BISON) -y
0305d25e
AD
28AM_YFLAGS = -dv --warnings=all,error --report=all
29
30bin_PROGRAMS = src/bison
31bin_SCRIPTS = $(YACC_SCRIPT)
32EXTRA_SCRIPTS = src/yacc
33
e021191b 34src_bison_CFLAGS = $(AM_CFLAGS) $(WERROR_CFLAGS)
0305d25e 35src_bison_SOURCES = \
db34f798
JD
36 src/AnnotationList.c \
37 src/AnnotationList.h \
38 src/InadequacyList.c \
39 src/InadequacyList.h \
0305d25e
AD
40 src/LR0.c \
41 src/LR0.h \
db34f798
JD
42 src/Sbitset.c \
43 src/Sbitset.h \
0305d25e
AD
44 src/assoc.c \
45 src/assoc.h \
46 src/closure.c \
47 src/closure.h \
48 src/complain.c \
49 src/complain.h \
50 src/conflicts.c \
51 src/conflicts.h \
52 src/derives.c \
53 src/derives.h \
54 src/files.c \
55 src/files.h \
56 src/flex-scanner.h \
57 src/getargs.c \
58 src/getargs.h \
59 src/gram.c \
60 src/gram.h \
61 src/graphviz.c \
62 src/graphviz.h \
63 src/lalr.c \
64 src/lalr.h \
db34f798
JD
65 src/ielr.c \
66 src/ielr.h \
0305d25e
AD
67 src/location.c \
68 src/location.h \
69 src/main.c \
00f5d575
AD
70 src/muscle-tab.c \
71 src/muscle-tab.h \
629e4def
AR
72 src/named-ref.c \
73 src/named-ref.h \
0305d25e
AD
74 src/nullable.c \
75 src/nullable.h \
76 src/output.c \
77 src/output.h \
78 src/parse-gram.h \
79 src/parse-gram.y \
80 src/print-xml.c \
81 src/print-xml.h \
82 src/print.c \
83 src/print.h \
84 src/print_graph.c \
85 src/print_graph.h \
86 src/reader.c \
87 src/reader.h \
88 src/reduce.c \
89 src/reduce.h \
90 src/relation.c \
91 src/relation.h \
92 src/scan-code-c.c \
93 src/scan-code.h \
94 src/scan-gram-c.c \
95 src/scan-gram.h \
96 src/scan-skel-c.c \
97 src/scan-skel.h \
98 src/state.c \
99 src/state.h \
100 src/symlist.c \
101 src/symlist.h \
102 src/symtab.c \
103 src/symtab.h \
104 src/system.h \
105 src/tables.c \
106 src/tables.h \
107 src/uniqstr.c \
629e4def 108 src/uniqstr.h
0305d25e
AD
109
110EXTRA_src_bison_SOURCES = \
111 src/scan-code.l \
112 src/scan-gram.l \
113 src/scan-skel.l
114
115BUILT_SOURCES += \
116 src/parse-gram.c \
117 src/parse-gram.h \
118 src/scan-code.c \
119 src/scan-gram.c \
120 src/scan-skel.c
121
e2c2f696 122MOSTLYCLEANFILES += src/yacc
0305d25e
AD
123
124src/yacc:
125 rm -f $@ $@.tmp
126 echo '#! /bin/sh' >$@.tmp
127 echo "exec '$(bindir)/bison' -y "'"$$@"' >>$@.tmp
128 chmod a+x $@.tmp
129 mv $@.tmp $@