]> git.saurik.com Git - bison.git/blame - src/Makefile.am
(output_graph): G_VIEW -> normal_view in case someone
[bison.git] / src / Makefile.am
CommitLineData
dd0e0635 1## Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
2c8a9dfa
AD
2
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 2 of the License, or
6## (at your option) any later version.
7
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.
12
13## You should have received a copy of the GNU General Public License
14## along with this program; if not, write to the Free Software
15## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
16## 02111-1307 USA
17
8c44d3ec 18DEFS = @DEFS@ \
be2a1a68 19 -DPKGDATADIR=\"$(pkgdatadir)\" \
29092a57 20 -DLOCALEDIR=\"$(datadir)/locale\"
095a3fb5 21
9abb46d5 22AM_CFLAGS = $(WARNING_CFLAGS) $(WERROR_CFLAGS)
dd0e0635 23AM_CPPFLAGS = -I$(top_srcdir)/lib -I../lib
9abb46d5 24AM_YFLAGS = "-dv"
2c8a9dfa 25
be14ade5 26LDADD = ../lib/libbison.a $(LIBINTL)
8ebbae2a 27
cd3684cf
AD
28# Use our own Bison to build the parser. Of course, you ought to
29# keep a sane version of Bison nearby...
30YACC = ../tests/bison -y
31
a0f6b076 32bin_PROGRAMS = bison
f0057011 33bin_SCRIPTS = $(YACC_SCRIPT)
a504e06d 34EXTRA_SCRIPTS = yacc
a0f6b076 35
0c15323d
AD
36bison_SOURCES = \
37 LR0.c LR0.h \
a945ec39 38 assoc.c assoc.h \
0c15323d
AD
39 closure.c closure.h \
40 complain.c complain.h \
41 conflicts.c conflicts.h \
42 derives.c derives.h \
43 files.c files.h \
44 getargs.c getargs.h \
45 gram.c gram.h \
46 lalr.h lalr.c \
8efe435c 47 location.c location.h \
0c15323d
AD
48 main.c \
49 muscle_tab.c muscle_tab.h \
50 nullable.c nullable.h \
0c15323d
AD
51 output.c output.h \
52 parse-gram.h parse-gram.y \
53 print.c print.h \
54 print_graph.c print_graph.h \
55 reader.c reader.h \
56 reduce.c reduce.h \
0e4d5753 57 relation.c relation.h \
0c15323d
AD
58 scan-gram.l \
59 scan-skel.l \
60 state.c state.h \
56c47203 61 symlist.c symlist.h \
0c15323d
AD
62 symtab.c symtab.h \
63 system.h \
c6f1a33c 64 tables.h tables.c \
5bf3d7c1 65 uniqstr.c uniqstr.h \
0c15323d
AD
66 vcg.c vcg.h \
67 vcg_defaults.h
a0f6b076 68
e9955c83 69BUILT_SOURCES = scan-skel.c scan-gram.c parse-gram.c parse-gram.h
a67cef01 70
d8388d7a
PE
71MOSTLYCLEANFILES = yacc
72
73yacc:
74 echo '#! /bin/sh' >$@
75 echo 'exec $(bindir)/bison -y "$$@"' >>$@
76 chmod a+x $@
77
0c15323d
AD
78echo:
79 echo $(bison_SOURCES) $(noinst_HEADERS)