* 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.
This commit is contained in:
Akim Demaille
2000-03-28 13:30:57 +00:00
parent 9f306f2a73
commit 1853982561
10 changed files with 39 additions and 9 deletions

View File

@@ -1,3 +1,19 @@
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.

View File

@@ -3,7 +3,7 @@ AUTOMAKE_OPTIONS = 1.4 check-news
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = intl po src doc m4
SUBDIRS = intl po lib src doc m4
EXTRA_DIST = REFERENCES configure.bat OChangeLog

View File

@@ -40,7 +40,8 @@ AM_GNU_GETTEXT
# 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])

14
lib/Makefile.am Normal file
View File

@@ -0,0 +1,14 @@
## 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

View File

@@ -17,5 +17,5 @@ src/reduce.c
# src/symtab.c
# src/warshall.c
src/getopt.c
src/getopt1.c
lib/getopt.c
lib/getopt1.c

View File

@@ -1,24 +1,23 @@
## 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