]> git.saurik.com Git - bison.git/blob - src/local.mk
remove useless variable.
[bison.git] / src / local.mk
1 ## Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
2 ## Free Software Foundation, Inc.
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
19 AM_CPPFLAGS += -I$(top_srcdir)/lib
20 # Find builddir/src/scan-code.c etc.
21 AM_CPPFLAGS += -I$(top_builddir)
22
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...
27 BISON = $(top_builddir)/tests/bison
28 YACC = $(BISON) -y
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
35 src_bison_CFLAGS = $(AM_CFLAGS) $(WERROR_CFLAGS)
36 src_bison_SOURCES = \
37 src/AnnotationList.c \
38 src/AnnotationList.h \
39 src/InadequacyList.c \
40 src/InadequacyList.h \
41 src/LR0.c \
42 src/LR0.h \
43 src/Sbitset.c \
44 src/Sbitset.h \
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 \
66 src/ielr.c \
67 src/ielr.h \
68 src/location.c \
69 src/location.h \
70 src/main.c \
71 src/muscle-tab.c \
72 src/muscle-tab.h \
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 \
107 src/uniqstr.h
108
109 EXTRA_src_bison_SOURCES = \
110 src/scan-code.l \
111 src/scan-gram.l \
112 src/scan-skel.l
113
114 BUILT_SOURCES += \
115 src/parse-gram.c \
116 src/parse-gram.h \
117 src/scan-code.c \
118 src/scan-gram.c \
119 src/scan-skel.c
120
121 MOSTLYCLEANFILES += src/yacc
122
123 src/yacc:
124 rm -f $@ $@.tmp
125 echo '#! /bin/sh' >$@.tmp
126 echo "exec '$(bindir)/bison' -y "'"$$@"' >>$@.tmp
127 chmod a+x $@.tmp
128 mv $@.tmp $@