1 ## Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
2 ## Free Software Foundation, Inc.
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.
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.
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/>.
17 AUTOMAKE_OPTIONS = subdir-objects
19 AM_CPPFLAGS += -I$(top_srcdir)/lib
20 # Find builddir/src/scan-code.c etc.
21 AM_CPPFLAGS += -I$(top_builddir)
23 LDADD = $(top_builddir)/lib/libbison.a $(LIBINTL)
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
29 AM_YFLAGS = -dv --warnings=all,error --report=all
31 bin_PROGRAMS = src/bison
32 bin_SCRIPTS = $(YACC_SCRIPT)
33 EXTRA_SCRIPTS = src/yacc
35 src_bison_CFLAGS = $(AM_CFLAGS) $(WERROR_CFLAGS)
37 src/AnnotationList.c \
38 src/AnnotationList.h \
39 src/InadequacyList.c \
40 src/InadequacyList.h \
109 EXTRA_src_bison_SOURCES = \
121 MOSTLYCLEANFILES += src/yacc
125 echo '#! /bin/sh' >$@.tmp
126 echo "exec '$(bindir)/bison' -y "'"$$@"' >>$@.tmp