]> git.saurik.com Git - bison.git/blame - src/Makefile.am
# updates.
[bison.git] / src / Makefile.am
CommitLineData
8ebbae2a 1## Process this file with automake to produce Makefile.in -*-Makefile-*-
18539825 2AUTOMAKE_OPTIONS = 1.4 ../lib/ansi2knr
8ebbae2a
JT
3
4bin_PROGRAMS = bison
5
6bison_SOURCES = LR0.c allocate.c closure.c conflicts.c derives.c \
7 files.c getargs.c gram.c lalr.c lex.c main.c nullable.c output.c \
18539825 8 print.c reader.c reduce.c symtab.c warshall.c
8ebbae2a
JT
9
10EXTRA_bison_SOURCES = vmsgetargs.c
11
8c44d3ec
AD
12DEFS = @DEFS@ \
13 -DXPFILE=\"${datadir}/bison.simple\" \
14 -DXPFILE1=\"${datadir}/bison.hairy\" \
15 -DLOCALEDIR=\"${datadir}/locale\"
16INCLUDES = -I../intl -I$(top_srcdir)/intl -I..
18539825 17LDADD = @INTLLIBS@ ../lib/libbison.a
8ebbae2a
JT
18
19noinst_HEADERS = alloc.h files.h gram.h lex.h machine.h state.h \
18539825 20 symtab.h system.h types.h
8ebbae2a
JT
21
22data_DATA = bison.simple bison.hairy
23
24EXTRA_DIST = bison.s1 bison.hairy build.com bison.cld vmshlp.mar
25
26bison.simple: bison.s1 Makefile
8c44d3ec
AD
27 sed -e "s/@bison_version@/$(VERSION)/" $(srcdir)/bison.s1 | \
28 awk '\
dbe7f271 29 /^#line/ { printf "#line %d \"$(datadir)/bison.simple\"\n", NR+1; next }\
8c44d3ec
AD
30 { print }' >$@t
31 mv $@t $@
8ebbae2a
JT
32
33DISTCLEANFILES = bison.simple