1 ## Copyright (C) 2001-2011 Free Software Foundation, Inc.
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.
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.
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/>.
16 AUTOMAKE_OPTIONS = subdir-objects
18 AM_CPPFLAGS += -I$(top_srcdir)/lib
19 # Find builddir/src/scan-code.c etc.
20 AM_CPPFLAGS += -I$(top_builddir)
22 LDADD = lib/libbison.a $(LIBINTL)
24 # Use our own Bison to build the parser. Of course, you ought to
25 # keep a sane version of Bison nearby...
28 AM_YFLAGS = -dv --warnings=all,error --report=all
30 bin_PROGRAMS = src/bison
31 bin_SCRIPTS = $(YACC_SCRIPT)
32 EXTRA_SCRIPTS = src/yacc
34 src_bison_CFLAGS = $(AM_CFLAGS) $(WERROR_CFLAGS)
36 src/AnnotationList.c \
37 src/AnnotationList.h \
38 src/InadequacyList.c \
39 src/InadequacyList.h \
110 EXTRA_src_bison_SOURCES = \
122 MOSTLYCLEANFILES += src/yacc
126 echo '#! /bin/sh' >$@.tmp
127 echo "exec '$(bindir)/bison' -y "'"$$@"' >>$@.tmp