]>
Commit | Line | Data |
---|---|---|
dd0e0635 | 1 | ## Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation, Inc. |
2c8a9dfa AD |
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 | |
18539825 | 17 | |
cd931d9b | 18 | AM_CFLAGS = $(WARNING_CFLAGS) |
2c8a9dfa | 19 | |
f0057011 | 20 | lib_LIBRARIES = $(YACC_LIBRARY) |
66abff15 | 21 | EXTRA_LIBRARIES = liby.a |
18539825 AD |
22 | noinst_LIBRARIES = libbison.a |
23 | ||
1f14d97a PE |
24 | liby_a_SOURCES = main.c yyerror.c |
25 | ||
18569462 | 26 | # Heck, we are still using an old version of Automake which does not |
842e8679 AD |
27 | # understand inner AC_LIBOBJ (i.e., from Autoconf itself, not from |
28 | # configure.in). | |
1930ac78 PE |
29 | EXTRA_DIST = malloc.c realloc.c stdbool_.h strnlen.c |
30 | MOSTLYCLEANFILES = stdbool.h stdbool.h-t | |
31 | ||
32 | # We need the following in order to create an <stdbool.h> when the system | |
33 | # doesn't have one that works. | |
34 | $(libbison_a_OBJECTS): $(STDBOOL_H) | |
35 | stdbool.h: stdbool_.h | |
36 | sed -e 's/@''HAVE__BOOL''@/$(HAVE__BOOL)/g' <$(srcdir)/stdbool_.h >$@-t | |
37 | mv $@-t $@ | |
18569462 | 38 | |
ff4a34be | 39 | libbison_a_SOURCES = \ |
9208d17f | 40 | gettext.h \ |
f61aad93 | 41 | argmatch.c argmatch.h \ |
22312b71 | 42 | basename.c dirname.h dirname.c \ |
f6a8ccf4 | 43 | get-errno.h get-errno.c \ |
ff4a34be | 44 | getopt.h getopt.c getopt1.c \ |
68bd3b6b | 45 | hash.h hash.c \ |
aad8382e | 46 | mbswidth.h mbswidth.c \ |
ff4a34be | 47 | quote.h quote.c quotearg.h quotearg.c \ |
6d55632c | 48 | subpipe.h subpipe.c unlocked-io.h \ |
be2a1a68 | 49 | xalloc.h xmalloc.c xstrdup.c xstrndup.c \ |
81fe8b23 | 50 | $(bitsets_sources) $(additional_bitsets_sources) $(timevars_sources) |
18539825 | 51 | |
7086e707 | 52 | # Implementation of bitsets |
81fe8b23 | 53 | bitsets_sources = \ |
94a23f96 PE |
54 | abitset.c abitset.h bbitset.h bitset.c bitset.h bitset_stats.c \ |
55 | bitset_stats.h bitsetv.c bitsetv.h ebitset.c ebitset.h lbitset.c \ | |
56 | lbitset.h libiberty.h vbitset.c vbitset.h | |
7086e707 | 57 | |
1565b720 | 58 | # Additional bitset operations. |
81fe8b23 | 59 | additional_bitsets_sources = \ |
1565b720 AD |
60 | bitsetv-print.h bitsetv-print.c |
61 | ||
1509d42f | 62 | # timevars, stolen from GCC. |
81fe8b23 | 63 | timevars_sources = \ |
1509d42f AD |
64 | timevar.h timevar.c timevar.def |
65 | ||
f0057011 | 66 | libbison_a_LIBADD = $(LIBOBJS) $(ALLOCA) |
18539825 | 67 | libbison_a_DEPENDENCIES = $(libbison_a_LIBADD) |