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
19 # Prettify Automake-computed names of compiled objects.
20 src_bison_SHORTNAME = bison
22 src_bison_CFLAGS = $(AM_CFLAGS) $(WERROR_CFLAGS)
24 src/AnnotationList.c \
25 src/AnnotationList.h \
26 src/InadequacyList.c \
27 src/InadequacyList.h \
97 EXTRA_src_bison_SOURCES = \
114 bin_SCRIPTS = $(YACC_SCRIPT)
115 EXTRA_SCRIPTS = src/yacc
116 MOSTLYCLEANFILES += src/yacc
119 $(AM_V_GEN)rm -f $@ $@.tmp
120 $(AM_V_at)echo '#! /bin/sh' >$@.tmp
121 $(AM_V_at)echo "exec '$(bindir)/bison' -y "'"$$@"' >>$@.tmp
122 $(AM_V_at)chmod a+x $@.tmp
123 $(AM_V_at)mv $@.tmp $@