* lib/: New directory.
authorAkim Demaille <akim@epita.fr>
Tue, 28 Mar 2000 13:30:57 +0000 (13:30 +0000)
committerAkim Demaille <akim@epita.fr>
Tue, 28 Mar 2000 13:30:57 +0000 (13:30 +0000)
* 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.

ChangeLog
Makefile.am
configure.in
lib/Makefile.am [new file with mode: 0644]
lib/alloca.c [moved from src/alloca.c with 100% similarity]
lib/getopt.c [moved from src/getopt.c with 100% similarity]
lib/getopt.h [moved from src/getopt.h with 100% similarity]
lib/getopt1.c [moved from src/getopt1.c with 100% similarity]
po/POTFILES.in
src/Makefile.am

index fec7f60..555795b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,21 @@
 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>
index a0e1531..93f0926 100644 (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
 
index e3fddff..d26f29d 100644 (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])
diff --git a/lib/Makefile.am b/lib/Makefile.am
new file mode 100644 (file)
index 0000000..e56419a
--- /dev/null
@@ -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
similarity index 100%
rename from src/alloca.c
rename to lib/alloca.c
similarity index 100%
rename from src/getopt.c
rename to lib/getopt.c
similarity index 100%
rename from src/getopt.h
rename to lib/getopt.h
similarity index 100%
rename from src/getopt1.c
rename to lib/getopt1.c
index 9ced0e6..7b8872e 100644 (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
index f325b72..e4fede4 100644 (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