]> git.saurik.com Git - bison.git/blob - src/Makefile.am
Add Makevars.template, stamp-po.
[bison.git] / src / Makefile.am
1 ## Copyright (C) 2001, 2002, 2003 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_YFLAGS = "-dv"
24
25 # config.h is in build/.
26 INCLUDES = -I$(top_builddir) \
27 -I$(top_srcdir)/lib
28
29 LDADD = ../lib/libbison.a $(LIBINTL)
30
31 # Use our own Bison to build the parser. Of course, you ought to
32 # keep a sane version of Bison nearby...
33 YACC = ../tests/bison -y
34
35 bin_PROGRAMS = bison
36 bin_SCRIPTS = $(YACC_SCRIPT)
37 EXTRA_SCRIPTS = yacc
38
39 bison_SOURCES = \
40 LR0.c LR0.h \
41 assoc.c assoc.h \
42 closure.c closure.h \
43 complain.c complain.h \
44 conflicts.c conflicts.h \
45 derives.c derives.h \
46 files.c files.h \
47 getargs.c getargs.h \
48 gram.c gram.h \
49 lalr.h lalr.c \
50 location.c location.h \
51 main.c \
52 muscle_tab.c muscle_tab.h \
53 nullable.c nullable.h \
54 output.c output.h \
55 parse-gram.h parse-gram.y \
56 print.c print.h \
57 print_graph.c print_graph.h \
58 reader.c reader.h \
59 reduce.c reduce.h \
60 relation.c relation.h \
61 scan-gram.l \
62 scan-skel.l \
63 state.c state.h \
64 symlist.c symlist.h \
65 symtab.c symtab.h \
66 system.h \
67 tables.h tables.c \
68 uniqstr.c uniqstr.h \
69 vcg.c vcg.h \
70 vcg_defaults.h
71
72 BUILT_SOURCES = scan-skel.c scan-gram.c parse-gram.c parse-gram.h
73
74 MOSTLYCLEANFILES = yacc
75
76 yacc:
77 echo '#! /bin/sh' >$@
78 echo 'exec $(bindir)/bison -y "$$@"' >>$@
79 chmod a+x $@
80
81 echo:
82 echo $(bison_SOURCES) $(noinst_HEADERS)