* Makefile.am (SUBDIRS): Adjust.
* configure.in: Adjust.
(LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
useless.
* src/alloca.c: Moved to lib/.
* src/getopt.c: Likewise.
* src/getopt1.c: Likewise.
* src/getopt.h: Likewise.
* src/ansi2knr.c: Likewise.
* src/ansi2knr.1: Likewise.
* src/Makefile.am: Adjust.
* lib/Makefile.am: New file.
2000-03-28 Akim Demaille <akim@epita.fr>
+ * lib/: New directory.
+ * Makefile.am (SUBDIRS): Adjust.
+ * configure.in: Adjust.
+ (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
+ useless.
+ * src/alloca.c: Moved to lib/.
+ * src/getopt.c: Likewise.
+ * src/getopt1.c: Likewise.
+ * src/getopt.h: Likewise.
+ * src/ansi2knr.c: Likewise.
+ * src/ansi2knr.1: Likewise.
+ * src/Makefile.am: Adjust.
+ * lib/Makefile.am: New file.
+
+2000-03-28 Akim Demaille <akim@epita.fr>
+
* src/getargs.c (usage): Refresh the help message.
2000-03-17 Akim Demaille <akim@epita.fr>
ACLOCAL_AMFLAGS = -I m4
-SUBDIRS = intl po src doc m4
+SUBDIRS = intl po lib src doc m4
EXTRA_DIST = REFERENCES configure.bat OChangeLog
# This is necessary so that .o files in LIBOBJS are also built via
# the ANSI2KNR-filtering rules.
LIBOBJS=`echo $LIBOBJS|sed 's/\.o /\$U.o /g;s/\.o$/\$U.o/'`
+AC_SUBST(LIBOBJS)
AC_OUTPUT([Makefile
intl/Makefile po/Makefile.in
- src/Makefile doc/Makefile m4/Makefile])
+ lib/Makefile src/Makefile doc/Makefile m4/Makefile])
--- /dev/null
+## Process this file with automake to produce Makefile.in -*-Makefile-*-
+
+AUTOMAKE_OPTIONS = ansi2knr
+
+noinst_LIBRARIES = libbison.a
+
+INCLUDES = -I.. -I$(srcdir) -I../intl
+
+libbison_a_SOURCES = getopt.c getopt1.c
+
+libbison_a_LIBADD = @LIBOBJS@ @ALLOCA@
+libbison_a_DEPENDENCIES = $(libbison_a_LIBADD)
+
+noinst_HEADERS = getopt.h
# src/symtab.c
# src/warshall.c
-src/getopt.c
-src/getopt1.c
+lib/getopt.c
+lib/getopt1.c
## Process this file with automake to produce Makefile.in -*-Makefile-*-
-AUTOMAKE_OPTIONS = 1.4 ansi2knr
+AUTOMAKE_OPTIONS = 1.4 ../lib/ansi2knr
bin_PROGRAMS = bison
bison_SOURCES = LR0.c allocate.c closure.c conflicts.c derives.c \
files.c getargs.c gram.c lalr.c lex.c main.c nullable.c output.c \
- print.c reader.c reduce.c symtab.c warshall.c getopt.c getopt1.c
+ print.c reader.c reduce.c symtab.c warshall.c
EXTRA_bison_SOURCES = vmsgetargs.c
-bison_LDADD = @INTLLIBS@ @ALLOCA@
-
DEFS = @DEFS@ \
-DXPFILE=\"${datadir}/bison.simple\" \
-DXPFILE1=\"${datadir}/bison.hairy\" \
-DLOCALEDIR=\"${datadir}/locale\"
INCLUDES = -I../intl -I$(top_srcdir)/intl -I..
+LDADD = @INTLLIBS@ ../lib/libbison.a
noinst_HEADERS = alloc.h files.h gram.h lex.h machine.h state.h \
- symtab.h system.h types.h getopt.h
+ symtab.h system.h types.h
data_DATA = bison.simple bison.hairy