]>
Commit | Line | Data |
---|---|---|
a504e06d | 1 | ## Copyright (C) 2001, 2002, 2003 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 | 18 | DEFS = @DEFS@ \ |
be2a1a68 | 19 | -DPKGDATADIR=\"$(pkgdatadir)\" \ |
29092a57 | 20 | -DLOCALEDIR=\"$(datadir)/locale\" |
095a3fb5 | 21 | |
9abb46d5 PE |
22 | AM_CFLAGS = $(WARNING_CFLAGS) $(WERROR_CFLAGS) |
23 | AM_YFLAGS = "-dv" | |
2c8a9dfa | 24 | |
00a69308 PE |
25 | # config.h is in build/. |
26 | INCLUDES = -I$(top_builddir) \ | |
dbfb6dcd | 27 | -I$(top_srcdir)/lib |
e0327bc8 | 28 | |
be14ade5 | 29 | LDADD = ../lib/libbison.a $(LIBINTL) |
8ebbae2a | 30 | |
a0f6b076 | 31 | bin_PROGRAMS = bison |
f0057011 | 32 | bin_SCRIPTS = $(YACC_SCRIPT) |
a504e06d | 33 | EXTRA_SCRIPTS = yacc |
a0f6b076 | 34 | |
0c15323d AD |
35 | bison_SOURCES = \ |
36 | LR0.c LR0.h \ | |
a945ec39 | 37 | assoc.c assoc.h \ |
0c15323d AD |
38 | closure.c closure.h \ |
39 | complain.c complain.h \ | |
40 | conflicts.c conflicts.h \ | |
41 | derives.c derives.h \ | |
42 | files.c files.h \ | |
43 | getargs.c getargs.h \ | |
44 | gram.c gram.h \ | |
45 | lalr.h lalr.c \ | |
8efe435c | 46 | location.c location.h \ |
0c15323d AD |
47 | main.c \ |
48 | muscle_tab.c muscle_tab.h \ | |
49 | nullable.c nullable.h \ | |
0c15323d AD |
50 | output.c output.h \ |
51 | parse-gram.h parse-gram.y \ | |
52 | print.c print.h \ | |
53 | print_graph.c print_graph.h \ | |
54 | reader.c reader.h \ | |
55 | reduce.c reduce.h \ | |
0e4d5753 | 56 | relation.c relation.h \ |
0c15323d AD |
57 | scan-gram.l \ |
58 | scan-skel.l \ | |
59 | state.c state.h \ | |
56c47203 | 60 | symlist.c symlist.h \ |
0c15323d AD |
61 | symtab.c symtab.h \ |
62 | system.h \ | |
c6f1a33c | 63 | tables.h tables.c \ |
5bf3d7c1 | 64 | uniqstr.c uniqstr.h \ |
0c15323d AD |
65 | vcg.c vcg.h \ |
66 | vcg_defaults.h | |
a0f6b076 | 67 | |
e9955c83 | 68 | BUILT_SOURCES = scan-skel.c scan-gram.c parse-gram.c parse-gram.h |
a67cef01 | 69 | |
d8388d7a PE |
70 | MOSTLYCLEANFILES = yacc |
71 | ||
72 | yacc: | |
73 | echo '#! /bin/sh' >$@ | |
74 | echo 'exec $(bindir)/bison -y "$$@"' >>$@ | |
75 | chmod a+x $@ | |
76 | ||
0c15323d AD |
77 | echo: |
78 | echo $(bison_SOURCES) $(noinst_HEADERS) |