]> git.saurik.com Git - bison.git/blob - lib/Makefile.am
(operator<<(std::ostream&, const Position&)):
[bison.git] / lib / 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 AM_CFLAGS = $(WARNING_CFLAGS)
19
20 lib_LIBRARIES = $(YACC_LIBRARY)
21 EXTRA_LIBRARIES = liby.a
22 noinst_LIBRARIES = libbison.a
23
24 # config.h is in build/., and system.h is in src/src/.
25 INCLUDES = -I$(top_builddir) \
26 -I$(top_srcdir)/src \
27 -I$(top_srcdir)/lib
28
29 liby_a_SOURCES = main.c yyerror.c
30
31 # Heck, we are still using an old version of Automake which does not
32 # understand inner AC_LIBOBJ (i.e., from Autoconf itself, not from
33 # configure.in).
34 EXTRA_DIST = malloc.c realloc.c stdbool_.h strnlen.c
35 MOSTLYCLEANFILES = stdbool.h stdbool.h-t
36
37 # We need the following in order to create an <stdbool.h> when the system
38 # doesn't have one that works.
39 $(libbison_a_OBJECTS): $(STDBOOL_H)
40 stdbool.h: stdbool_.h
41 sed -e 's/@''HAVE__BOOL''@/$(HAVE__BOOL)/g' <$(srcdir)/stdbool_.h >$@-t
42 mv $@-t $@
43
44 libbison_a_SOURCES = \
45 gettext.h \
46 argmatch.c argmatch.h \
47 basename.c dirname.h dirname.c \
48 get-errno.h get-errno.c \
49 getopt.h getopt.c getopt1.c \
50 hash.h hash.c \
51 mbswidth.h mbswidth.c \
52 quote.h quote.c quotearg.h quotearg.c \
53 subpipe.h subpipe.c unlocked-io.h \
54 xalloc.h xmalloc.c xstrdup.c xstrndup.c \
55 $(bitsets_sources) $(additional_bitsets_sources) $(timevars_sources)
56
57 # Implementation of bitsets
58 bitsets_sources = \
59 abitset.c abitset.h bbitset.h bitset.c bitset.h bitset_stats.c \
60 bitset_stats.h bitsetv.c bitsetv.h ebitset.c ebitset.h lbitset.c \
61 lbitset.h libiberty.h vbitset.c vbitset.h
62
63 # Additional bitset operations.
64 additional_bitsets_sources = \
65 bitsetv-print.h bitsetv-print.c
66
67 # timevars, stolen from GCC.
68 timevars_sources = \
69 timevar.h timevar.c timevar.def
70
71 libbison_a_LIBADD = $(LIBOBJS) $(ALLOCA)
72 libbison_a_DEPENDENCIES = $(libbison_a_LIBADD)