]> git.saurik.com Git - bison.git/blob - src/Makefile.am
* src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
[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 -DBISON_SIMPLE=\"${datadir}/bison.simple\" \
6 -DBISON_HAIRY=\"${datadir}/bison.hairy\" \
7 -DLOCALEDIR=\"${datadir}/locale\"
8
9 INCLUDES = -I../intl -I$(top_srcdir)/lib -I..
10 LDADD = @INTLLIBS@ ../lib/libbison.a
11
12 bin_PROGRAMS = bison
13
14 bison_SOURCES = LR0.c closure.c complain.c conflicts.c \
15 derives.c \
16 files.c getargs.c gram.c lalr.c lex.c main.c nullable.c \
17 output.c \
18 print.c reader.c reduce.c symtab.c warshall.c
19
20 EXTRA_bison_SOURCES = vmsgetargs.c
21
22 noinst_HEADERS = LR0.h closure.h complain.h conflicts.h \
23 derives.h \
24 files.h getargs.h gram.h lalr.h lex.h nullable.h \
25 output.h state.h \
26 print.h reader.h reduce.h symtab.h warshall.h system.h types.h
27
28 data_DATA = bison.simple bison.hairy
29
30 EXTRA_DIST = bison.s1 bison.hairy build.com bison.cld vmshlp.mar
31
32 bison.simple: bison.s1 Makefile
33 sed -e "s/@bison_version@/$(VERSION)/" $(srcdir)/bison.s1 | \
34 awk '\
35 /^#line/ { printf "#line %d \"$(datadir)/bison.simple\"\n", NR+1; next }\
36 { print }' >$@t
37 mv $@t $@
38
39 DISTCLEANFILES = bison.simple