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