1 ## Copyright (C) 2001-2012 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 LDADD = lib/libbison.a $(LIBINTL)
18 bin_PROGRAMS = src/bison
20 src_bison_CFLAGS = $(AM_CFLAGS) $(WERROR_CFLAGS)
22 src/AnnotationList.c \
23 src/AnnotationList.h \
24 src/InadequacyList.c \
25 src/InadequacyList.h \
95 EXTRA_src_bison_SOURCES = \
112 bin_SCRIPTS = $(YACC_SCRIPT)
113 EXTRA_SCRIPTS = src/yacc
114 MOSTLYCLEANFILES += src/yacc
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 $@