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