]> git.saurik.com Git - bison.git/blob - src/Makefile.am
Regenerate.
[bison.git] / src / Makefile.am
1 ## Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
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
18 DEFS = @DEFS@ \
19 -DPKGDATADIR=\"$(pkgdatadir)\" \
20 -DLOCALEDIR=\"$(datadir)/locale\"
21
22 AM_CFLAGS = $(WARNING_CFLAGS) $(WERROR_CFLAGS)
23 AM_CPPFLAGS = -I$(top_srcdir)/lib -I../lib
24 AM_YFLAGS = "-dv"
25
26 LDADD = ../lib/libbison.a $(LIBINTL)
27
28 # Use our own Bison to build the parser. Of course, you ought to
29 # keep a sane version of Bison nearby...
30 YACC = ../tests/bison -y
31
32 bin_PROGRAMS = bison
33 bin_SCRIPTS = $(YACC_SCRIPT)
34 EXTRA_SCRIPTS = yacc
35
36 bison_SOURCES = \
37 LR0.c LR0.h \
38 assoc.c assoc.h \
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 \
47 location.c location.h \
48 main.c \
49 muscle_tab.c muscle_tab.h \
50 nullable.c nullable.h \
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 \
57 relation.c relation.h \
58 scan-gram.l \
59 scan-skel.l \
60 state.c state.h \
61 symlist.c symlist.h \
62 symtab.c symtab.h \
63 system.h \
64 tables.h tables.c \
65 uniqstr.c uniqstr.h \
66 vcg.c vcg.h \
67 vcg_defaults.h
68
69 BUILT_SOURCES = scan-skel.c scan-gram.c parse-gram.c parse-gram.h
70
71 MOSTLYCLEANFILES = yacc
72
73 yacc:
74 echo '#! /bin/sh' >$@
75 echo 'exec $(bindir)/bison -y "$$@"' >>$@
76 chmod a+x $@
77
78 echo:
79 echo $(bison_SOURCES) $(noinst_HEADERS)