Dynamic library support (partially working)


To ng-spice <ng-spice-devel@ieee.ing.uniroma1.it>
From Arno <A.W.Peters@ieee.org>
Date Wed, 8 Dec 1999 00:21:03 +0100
Delivered-To mailing list ng-spice-devel@ieee.ing.uniroma1.it
Mailing-List contact ng-spice-devel-help@ieee.ing.uniroma1.it; run by ezmlm
Reply-To ng-spice-devel@ieee.ing.uniroma1.it
User-Agent Mutt/1.0i

This is a preliminary patch to add dynamic library support to
ng-spice.  The patch is against ng-spice-rework-3.  This patch also
contains the MAINTAINERCLEAN patch for cleaning the source tree of all
automatically generated files.

Problems:

   o  compile with `make install' because the dynamic libraries need to
      be installed before they can be used.

   o  if the installation of the libraries is not in a place the
      dynamic linker expects, specify

      export LD_LIBRARY_PATH=/path/to/spice/libs

   o  only the ng-spice binary successfully builds and executes.  The
      other binaries require a little hacking to src/conf.c.


Advantages:

  Size on disk:

  ng-spice:  131kB
  libs:     5800kB


Enjoy,

-- 
Arno
diff -ruN ng-spice-rework-3/ChangeLog ng-spice-rework-3-dynamic/ChangeLog
--- ng-spice-rework-3/ChangeLog Mon Nov 15 11:35:07 1999
+++ ng-spice-rework-3-dynamic/ChangeLog Wed Dec  8 00:11:01 1999
@@ -1,3 +1,16 @@
+1999-12-08  Arno Peters  <A.W.Peters@ieee.org>
+
+       * source tree: converted to dynamic libraries.  As a result, only
+       the ng-spice binary builds.  Also compilation does not work if the
+       libraries are not installed first.
+
+1999-12-07  Arno Peters  <A.W.Peters@ieee.org>
+
+       * source tree: added MAINTAINERCLEANFILES to all Makefile.am to
+       eliminate automatically generated cruft from patches.  To create a
+       minimal patch between two trees, just do `make maintainer-clean'
+       on both trees and run `diff -ruN tree1 tree2'.
+
 1999-10-15  Emmanuel Rouat  <emmanuel.rouat@wanadoo.fr>
 
        * source tree: entirely modified by Arno Peters (after discussion
@@ -97,4 +110,4 @@
 
        - first attempt at autoconf/automake support
 
-       - based on spice3f5-chili, hardly anything touched on it.
\ No newline at end of file
+       - based on spice3f5-chili, hardly anything touched on it.
diff -ruN ng-spice-rework-3/Makefile.am ng-spice-rework-3-dynamic/Makefile.am
--- ng-spice-rework-3/Makefile.am       Mon Nov 15 11:35:07 1999
+++ ng-spice-rework-3-dynamic/Makefile.am       Tue Dec  7 23:59:39 1999
@@ -3,3 +3,8 @@
 SUBDIRS = doc src man tests
 
 EXTRA_DIST = FAQ acconfig.h notes contrib 
+
+MAINTAINERCLEANFILES = Makefile.in aclocal.m4 config.guess \
+                       config.h.in config.sub configure install-sh \
+                       missing mkinstalldirs stamp-h.in ltconfig \
+                       ltmain.sh
diff -ruN ng-spice-rework-3/autogen.sh ng-spice-rework-3-dynamic/autogen.sh
--- ng-spice-rework-3/autogen.sh        Thu Jan  1 01:00:00 1970
+++ ng-spice-rework-3-dynamic/autogen.sh        Tue Dec  7 23:59:39 1999
@@ -0,0 +1,73 @@
+#!/bin/sh
+# Run this to generate all the initial makefiles, etc.
+
+PROJECT=ng-spice
+TEST_TYPE=-d
+FILE=src/circuit
+
+DIE=0
+
+(autoconf --version) < /dev/null > /dev/null 2>&1 || {
+       echo
+       echo "You must have autoconf installed to compile $PROJECT."
+       echo "Download the appropriate package for your distribution,"
+       echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
+       DIE=1
+}
+
+(libtool --version) < /dev/null > /dev/null 2>&1 || {
+       echo
+       echo "You must have libtool installed to compile $PROJECT."
+       echo "Get ftp://alpha.gnu.org/gnu/libtool-1.0h.tar.gz"
+       echo "(or a newer version if it is available)"
+       DIE=1
+}
+
+(automake --version) < /dev/null > /dev/null 2>&1 || {
+       echo
+       echo "You must have automake installed to compile $PROJECT."
+       echo "Get ftp://ftp.cygnus.com/pub/home/tromey/automake-1.2d.tar.gz"
+       echo "(or a newer version if it is available)"
+       DIE=1
+}
+
+if test "$DIE" -eq 1; then
+       exit 1
+fi
+
+test $TEST_TYPE $FILE || {
+       echo "You must run this script in the top-level $PROJECT directory"
+       exit 1
+}
+
+if test -z "$*"; then
+       echo "I am going to run ./configure with no arguments - if you wish "
+        echo "to pass any to it, please specify them on the $0 command line."
+fi
+
+case $CC in
+*lcc | *lcc\ *) am_opt=--include-deps;;
+esac
+
+#echo "Running gettextize...  Ignore non-fatal messages."
+# Hmm, we specify --force here, since otherwise things don't
+# get added reliably, but we don't want to overwrite intl
+# while making dist.
+#echo "no" | gettextize --copy --force
+
+echo "Running libtoolize"
+libtoolize --copy --force
+
+aclocal $ACLOCAL_FLAGS
+
+# optionally feature autoheader
+(autoheader --version)  < /dev/null > /dev/null 2>&1 && autoheader
+
+automake -c -a $am_opt
+autoconf
+
+./configure "$@"
+
+echo 
+echo "Now type 'make' to compile $PROJECT."
+
diff -ruN ng-spice-rework-3/configure.in 
ng-spice-rework-3-dynamic/configure.in
--- ng-spice-rework-3/configure.in      Tue Dec  7 23:34:03 1999
+++ ng-spice-rework-3-dynamic/configure.in      Fri Dec  3 19:00:40 1999
@@ -85,8 +85,7 @@
 
 dnl Checks for programs
 
-AC_PROG_RANLIB
-
+AM_PROG_LIBTOOL
 
 
 
diff -ruN ng-spice-rework-3/doc/Makefile.am 
ng-spice-rework-3-dynamic/doc/Makefile.am
--- ng-spice-rework-3/doc/Makefile.am   Mon Nov 15 11:35:07 1999
+++ ng-spice-rework-3-dynamic/doc/Makefile.am   Tue Dec  7 23:59:39 1999
@@ -4,8 +4,8 @@
 
 info_TEXINFOS = ngspice.texi
 
-
-
-
 CLEANFILES = *.fns *.pg *.tp *.aux  *.cp *.ky *.vr *.fn *.log *.toc *.vrs 
+
 DISTCLEANFILES = $CLEANFILES *.ps *.dvi *.info*
+
+MAINTAINERCLEANFILES = $DISTCLEANFILES Makefile.in
diff -ruN ng-spice-rework-3/man/Makefile.am 
ng-spice-rework-3-dynamic/man/Makefile.am
--- ng-spice-rework-3/man/Makefile.am   Mon Nov 15 11:35:10 1999
+++ ng-spice-rework-3-dynamic/man/Makefile.am   Tue Dec  7 23:59:39 1999
@@ -2,3 +2,4 @@
 
 SUBDIRS = man1
 
+MAINTAINERCLEANFILES = Makefile.in
diff -ruN ng-spice-rework-3/man/man1/Makefile.am 
ng-spice-rework-3-dynamic/man/man1/Makefile.am
--- ng-spice-rework-3/man/man1/Makefile.am      Mon Nov 15 11:35:10 1999
+++ ng-spice-rework-3-dynamic/man/man1/Makefile.am      Tue Dec  7 23:59:39 
+1999
@@ -3,4 +3,6 @@
 
 man_MANS = spice.1 nutmeg.1 sconvert.1
 
-EXTRA_DIST = $(man_MANS)
\ No newline at end of file
+EXTRA_DIST = $(man_MANS)
+
+MAINTAINERCLEANFILES = Makefile.in
diff -ruN ng-spice-rework-3/src/Makefile.am 
ng-spice-rework-3-dynamic/src/Makefile.am
--- ng-spice-rework-3/src/Makefile.am   Wed Dec  1 01:03:24 1999
+++ ng-spice-rework-3-dynamic/src/Makefile.am   Tue Dec  7 23:59:39 1999
@@ -1,81 +1,122 @@
 ## Process this file with automake to produce Makefile.in
 
-SUBDIRS =  analysis circuit devices frontend hlp maths misc parser  include
+SUBDIRS = \
+       misc \
+       maths \
+       circuit \
+       hlp \
+       parser \
+       analysis \
+       devices \
+       frontend \
+       include
 
 bin_PROGRAMS =  ngspice nutmeg help sconvert proc2mod multidec makeidx
 
+DEVICELIBS = \
+       -lasrc \
+       -lbjt \
+       -lbsim1 \
+       -lbsim2 \
+       -lbsim3 \
+       -lcap \
+       -lcccs \
+       -lccvs \
+       -lcsw \
+       -ldevsup \
+       -ldio \
+       -ldisto \
+       -lind \
+       -lisrc \
+       -ljfet \
+       -ljfet2 \
+       -lltra \
+       -lmes \
+       -lmos1 \
+       -lmos2 \
+       -lmos3 \
+       -lmos6 \
+       -lres \
+       -lsw \
+       -ltra \
+       -lurc \
+       -lvccs \
+       -lvcvs \
+       -lvsrc
+
 
 ## Build ngspice first:
 
 ngspice_SOURCES = conf.c
 
-ngspice_LDADD =  ngspice.o \
-frontend/libfte.a \
-devices/libdev.a \
-analysis/libckt.a \
-parser/libparser.a \
-hlp/libhlp.a \
-circuit/libinp.a \
-maths/cmaths/libcmaths.a \
-maths/ni/libni.a \
-maths/sparse/libsparse.a \
-misc/libmisc.a 
+ngspice_LDFLAGS = -L$(libdir)
+
+ngspice_LDADD = \
+               ngspice.o \
+               -lfrontend \
+               $(DEVICELIBS) \
+               -lanalysis \
+               -lparser \
+               -lhlp \
+               -lcircuit \
+               -lcmaths \
+               -lni \
+               -lsparse \
+               -lmisc
 
 
 ngspice.o: main.c 
-       $(COMPILE) -DSIMULATOR -o ngspice.o  -c $(srcdir)/main.c
+               $(COMPILE) -DSIMULATOR -o ngspice.o  -c $(srcdir)/main.c
 
 ## nutmeg:
 
 nutmeg_SOURCES = main.c nconf.c
 
-nutmeg_LDADD = \
-frontend/libfte.a \
-parser/libparser.a \
-hlp/libhlp.a \
-maths/cmaths/libcmaths.a \
-misc/libmisc.a 
+nutmeg_LDFLAGS = -L$(libdir)
 
+nutmeg_LDADD = \
+               -lfrontend \
+               -lparser \
+               -lcircuit \
+               -lhlp \
+               -lcmaths \
+               -lmisc
 
 
 ## help:
 
 help_SOURCES = help.c
 
+help_LDFLAGS = -L$(libdir)
+
 help_LDADD =  \
-hlp/libhlp.a \
-parser/libparser.a \
-misc/libmisc.a 
+               -lhlp \
+               -lparser \
+               -lmisc
 
 
 ## sconvert:
 
 sconvert_SOURCES =  sconvert.c
 
+sconvert_LDFLAGS = -L$(libdir)
+
 sconvert_LDADD =  \
-frontend/rawfile.o \
-frontend/typesdef.o \
-frontend/error.o \
-frontend/dimens.o \
-parser/numparse.o \
-parser/quote.o \
-parser/std.o \
-parser/wlist.o \
-parser/input.o \
-parser/lexical.o \
-parser/variable.o \
-parser/var2.o \
-misc/libmisc.a 
+               -lfrontend \
+               -lparser \
+               -lmisc
 
 
 ## proc2mod:
 
 proc2mod_SOURCES = proc2mod.c
 
+proc2mod_LDFLAGS = -L$(libdir)
+
 proc2mod_LDADD =  \
-parser/libparser.a \
-circuit/libinp.a \
-misc/libmisc.a 
+               -lparser \
+               -lcircuit \
+               -lmisc
 
 
 
@@ -84,16 +125,20 @@
 
 multidec_SOURCES = multidec.c
 
+multidec_LDFLAGS = -L$(libdir)
+
 multidec_LDADD =  \
-maths/sparse/libsparse.a \
-misc/libmisc.a 
+               -lsparse \
+               -lmisc
 
 ## makeidx:
 
 makeidx_SOURCES = makeidx.c
 
+makeidx_LDFLAGS = -L$(libdir)
+
 makeidx_LDADD =  \
-misc/libmisc.a 
+               -lmisc
 
 
 ## General Includes and libraries:
@@ -103,3 +148,4 @@
 
 LIBS = @LIBS@ @X_LIBS@ @X_PRE_LIBS@ @X_EXTRA_LIBS@
 
+MAINTAINERCLEANFILES = Makefile.in
diff -ruN ng-spice-rework-3/src/analysis/Makefile.am 
ng-spice-rework-3-dynamic/src/analysis/Makefile.am
--- ng-spice-rework-3/src/analysis/Makefile.am  Mon Nov 15 11:35:08 1999
+++ ng-spice-rework-3-dynamic/src/analysis/Makefile.am  Tue Dec  7 23:59:39 
+1999
@@ -1,9 +1,10 @@
 ## Process this file with automake to produce Makefile.in
 
-noinst_LIBRARIES = libckt.a
 
-libckt_a_SOURCES = \
-               acan.c  \
+lib_LTLIBRARIES = libanalysis.la
+
+libanalysis_la_SOURCES = \
+               acan.c          \
                acaskq.c        \
                acsetp.c        \
                cktaccpt.c      \
@@ -103,3 +104,4 @@
 
 
 INCLUDES =  -I$(top_srcdir)/src/include -I$(top_srcdir)/src/devices
+MAINTAINERCLEANFILES = Makefile.in
diff -ruN ng-spice-rework-3/src/circuit/Makefile.am 
ng-spice-rework-3-dynamic/src/circuit/Makefile.am
--- ng-spice-rework-3/src/circuit/Makefile.am   Mon Nov 15 11:35:08 1999
+++ ng-spice-rework-3-dynamic/src/circuit/Makefile.am   Wed Dec  8 00:01:57 
+1999
@@ -1,8 +1,8 @@
 ## Process this file with automake to produce Makefile.in
 
-noinst_LIBRARIES = libinp.a
+lib_LTLIBRARIES = libcircuit.la
 
-libinp_a_SOURCES = \
+libcircuit_la_SOURCES = \
                ifeval.c        \
                ifnewuid.c      \
                inp2b.c         \
@@ -57,6 +57,9 @@
                sperror.c       \
                inp.h
 
+libcircuit_la_LIBADD = \
+               -lmisc
 
+INCLUDES = -I$(top_srcdir)/src/include
 
-INCLUDES = -I$(top_srcdir)/src/include
\ No newline at end of file
+MAINTAINERCLEANFILES = Makefile.in
diff -ruN ng-spice-rework-3/src/devices/Makefile.am 
ng-spice-rework-3-dynamic/src/devices/Makefile.am
--- ng-spice-rework-3/src/devices/Makefile.am   Mon Nov 15 11:35:08 1999
+++ ng-spice-rework-3-dynamic/src/devices/Makefile.am   Wed Dec  8 00:01:05 
+1999
@@ -1,7 +1,5 @@
 ## Process this file with automake to produce Makefile.in
 
-
-
 SUBDIRS = \
        asrc    \
        bjt     \
@@ -33,44 +31,4 @@
        vcvs    \
        vsrc
 
-noinst_LIBRARIES = libdev.a
-
-libdev_a_SOURCES=
-
-libdev_a_LIBADD=  */*.o
-
-libdev_a_DEPENDENCIES =\
-               asrc/libasrc.a  \
-               bjt/libbjt.a            \
-               bsim1/libbsim1.a        \
-               bsim2/libbsim2.a        \
-               bsim3/libbsim3.a        \
-               cap/libcap.a            \
-               cccs/libcccs.a          \
-               ccvs/libccvs.a          \
-               csw/libcsw.a            \
-               devsup/libdevsup.a      \
-               dio/libdio.a            \
-               disto/libdisto.a        \
-               ind/libind.a            \
-               isrc/libisrc.a          \
-               jfet/libjfet.a          \
-               jfet2/libjfet2.a        \
-               ltra/libltra.a          \
-               mes/libmes.a            \
-               mos1/libmos1.a          \
-               mos2/libmos2.a          \
-               mos3/libmos3.a          \
-               mos6/libmos6.a          \
-               res/libres.a            \
-               sw/libsw.a              \
-               tra/libtra.a            \
-               urc/liburc.a            \
-               vccs/libvccs.a          \
-               vcvs/libvcvs.a          \
-               vsrc/libvsrc.a
-
-
-
-## Have to do it this clumsy way because of a circular dependancy
-## in all the *.a file listed above !!
+MAINTAINERCLEANFILES = Makefile.in
diff -ruN ng-spice-rework-3/src/devices/asrc/Makefile.am 
ng-spice-rework-3-dynamic/src/devices/asrc/Makefile.am
--- ng-spice-rework-3/src/devices/asrc/Makefile.am      Mon Nov 15 11:35:08 
1999
+++ ng-spice-rework-3-dynamic/src/devices/asrc/Makefile.am      Tue Dec  7 
+23:59:39 1999
@@ -1,8 +1,8 @@
 ## Process this file with automake to produce Makefile.in
 
-noinst_LIBRARIES = libasrc.a
+lib_LTLIBRARIES = libasrc.la
 
-libasrc_a_SOURCES = \
+libasrc_la_SOURCES = \
                asrc.c  \
                asrcacld.c      \
                asrcask.c       \
@@ -22,3 +22,4 @@
 
 
 INCLUDES = -I$(top_srcdir)/src/include
+MAINTAINERCLEANFILES = Makefile.in
diff -ruN ng-spice-rework-3/src/devices/bjt/Makefile.am 
ng-spice-rework-3-dynamic/src/devices/bjt/Makefile.am
--- ng-spice-rework-3/src/devices/bjt/Makefile.am       Mon Nov 15 11:35:08 
1999
+++ ng-spice-rework-3-dynamic/src/devices/bjt/Makefile.am       Tue Dec  7 
+23:59:39 1999
@@ -1,8 +1,8 @@
 ## Process this file with automake to produce Makefile.in
 
-noinst_LIBRARIES = libbjt.a
+lib_LTLIBRARIES = libbjt.la
 
-libbjt_a_SOURCES = \
+libbjt_la_SOURCES = \
                bjt.c   \
                bjtacld.c       \
                bjtask.c        \
@@ -36,3 +36,4 @@
 
 INCLUDES = -I$(top_srcdir)/src/include
 
+MAINTAINERCLEANFILES = Makefile.in
diff -ruN ng-spice-rework-3/src/devices/bsim1/Makefile.am 
ng-spice-rework-3-dynamic/src/devices/bsim1/Makefile.am
--- ng-spice-rework-3/src/devices/bsim1/Makefile.am     Mon Nov 15 11:35:08 
1999
+++ ng-spice-rework-3-dynamic/src/devices/bsim1/Makefile.am     Tue Dec  7 
+23:59:39 1999
@@ -1,8 +1,8 @@
 ## Process this file with automake to produce Makefile.in
 
-noinst_LIBRARIES = libbsim1.a
+lib_LTLIBRARIES = libbsim1.la
 
-libbsim1_a_SOURCES = \
+libbsim1_la_SOURCES = \
                b1.c    \
                b1acld.c        \
                b1ask.c         \
@@ -30,3 +30,4 @@
 
 
 INCLUDES = -I$(top_srcdir)/src/include
+MAINTAINERCLEANFILES = Makefile.in
diff -ruN ng-spice-rework-3/src/devices/bsim2/Makefile.am 
ng-spice-rework-3-dynamic/src/devices/bsim2/Makefile.am
--- ng-spice-rework-3/src/devices/bsim2/Makefile.am     Mon Nov 15 11:35:08 
1999
+++ ng-spice-rework-3-dynamic/src/devices/bsim2/Makefile.am     Wed Dec  8 
+00:01:49 1999
@@ -1,8 +1,8 @@
 ## Process this file with automake to produce Makefile.in
 
-noinst_LIBRARIES = libbsim2.a
+lib_LTLIBRARIES = libbsim2.la
 
-libbsim2_a_SOURCES = \
+libbsim2_la_SOURCES = \
                b2.c    \
                b2acld.c        \
                b2ask.c         \
@@ -27,4 +27,6 @@
 
 
 
-INCLUDES = -I$(top_srcdir)/src/include
\ No newline at end of file
+INCLUDES = -I$(top_srcdir)/src/include
+
+MAINTAINERCLEANFILES = Makefile.in
diff -ruN ng-spice-rework-3/src/devices/bsim3/Makefile.am 
ng-spice-rework-3-dynamic/src/devices/bsim3/Makefile.am
--- ng-spice-rework-3/src/devices/bsim3/Makefile.am     Mon Nov 15 11:35:08 
1999
+++ ng-spice-rework-3-dynamic/src/devices/bsim3/Makefile.am     Wed Dec  8 
+00:01:39 1999
@@ -1,8 +1,8 @@
 ## Process this file with automake to produce Makefile.in
 
-noinst_LIBRARIES = libbsim3.a
+lib_LTLIBRARIES = libbsim3.la
 
-libbsim3_a_SOURCES = \
+libbsim3_la_SOURCES = \
                b3.c    \
                b3acld.c        \
                b3ask.c         \
@@ -27,4 +27,6 @@
 
 
 
-INCLUDES = -I$(top_srcdir)/src/include
\ No newline at end of file
+INCLUDES = -I$(top_srcdir)/src/include
+
+MAINTAINERCLEANFILES = Makefile.in
diff -ruN ng-spice-rework-3/src/devices/cap/Makefile.am 
ng-spice-rework-3-dynamic/src/devices/cap/Makefile.am
--- ng-spice-rework-3/src/devices/cap/Makefile.am       Mon Nov 15 11:35:08 
1999
+++ ng-spice-rework-3-dynamic/src/devices/cap/Makefile.am       Wed Dec  8 
+00:01:31 1999
@@ -1,8 +1,8 @@
 ## Process this file with automake to produce Makefile.in
 
-noinst_LIBRARIES = libcap.a
+lib_LTLIBRARIES = libcap.la
 
-libcap_a_SOURCES = \
+libcap_la_SOURCES = \
                cap.c   \
                capacld.c       \
                capask.c        \
@@ -29,4 +29,6 @@
 
 
 
-INCLUDES = -I$(top_srcdir)/src/include
\ No newline at end of file
+INCLUDES = -I$(top_srcdir)/src/include
+
+MAINTAINERCLEANFILES = Makefile.in
diff -ruN ng-spice-rework-3/src/devices/cccs/Makefile.am 
ng-spice-rework-3-dynamic/src/devices/cccs/Makefile.am
--- ng-spice-rework-3/src/devices/cccs/Makefile.am      Mon Nov 15 11:35:08 
1999
+++ ng-spice-rework-3-dynamic/src/devices/cccs/Makefile.am      Tue Dec  7 
+23:59:40 1999
@@ -1,8 +1,8 @@
 ## Process this file with automake to produce Makefile.in
 
-noinst_LIBRARIES = libcccs.a
+lib_LTLIBRARIES = libcccs.la
 
-libcccs_a_SOURCES = \
+libcccs_la_SOURCES = \
                cccs.c  \
                cccsask.c       \
                cccsdefs.h      \
@@ -23,3 +23,4 @@
 
 
 INCLUDES = -I$(top_srcdir)/src/include
+MAINTAINERCLEANFILES = Makefile.in
diff -ruN ng-spice-rework-3/src/devices/ccvs/Makefile.am 
ng-spice-rework-3-dynamic/src/devices/ccvs/Makefile.am
--- ng-spice-rework-3/src/devices/ccvs/Makefile.am      Mon Nov 15 11:35:08 
1999
+++ ng-spice-rework-3-dynamic/src/devices/ccvs/Makefile.am      Wed Dec  8 
+00:01:22 1999
@@ -1,8 +1,8 @@
 ## Process this file with automake to produce Makefile.in
 
-noinst_LIBRARIES = libccvs.a
+lib_LTLIBRARIES = libccvs.la
 
-libccvs_a_SOURCES = \
+libccvs_la_SOURCES = \
                ccvs.c  \
                ccvsask.c       \
                ccvsdefs.h      \
@@ -23,4 +23,6 @@
 
 
 
-INCLUDES = -I$(top_srcdir)/src/include
\ No newline at end of file
+INCLUDES = -I$(top_srcdir)/src/include
+
+MAINTAINERCLEANFILES = Makefile.in
diff -ruN ng-spice-rework-3/src/devices/csw/Makefile.am 
ng-spice-rework-3-dynamic/src/devices/csw/Makefile.am
--- ng-spice-rework-3/src/devices/csw/Makefile.am       Mon Nov 15 11:35:09 
1999
+++ ng-spice-rework-3-dynamic/src/devices/csw/Makefile.am       Tue Dec  7 
+23:59:40 1999
@@ -1,8 +1,8 @@
 ## Process this file with automake to produce Makefile.in
 
-noinst_LIBRARIES = libcsw.a
+lib_LTLIBRARIES = libcsw.la
 
-libcsw_a_SOURCES = \
+libcsw_la_SOURCES = \
                csw.c   \
                cswacld.c       \
                cswask.c        \
@@ -23,3 +23,4 @@
 
 
 INCLUDES = -I$(top_srcdir)/src/include
+MAINTAINERCLEANFILES = Makefile.in
diff -ruN ng-spice-rework-3/src/devices/devsup/Makefile.am 
ng-spice-rework-3-dynamic/src/devices/devsup/Makefile.am
--- ng-spice-rework-3/src/devices/devsup/Makefile.am    Mon Nov 15 11:35:09 
1999
+++ ng-spice-rework-3-dynamic/src/devices/devsup/Makefile.am    Tue Dec  7 
+23:59:40 1999
@@ -1,9 +1,10 @@
 ## Process this file with automake to produce Makefile.in
 
-noinst_LIBRARIES = libdevsup.a
+lib_LTLIBRARIES = libdevsup.la
 
-libdevsup_a_SOURCES = devsup.c
+libdevsup_la_SOURCES = devsup.c
 
 
 
 INCLUDES = -I$(top_srcdir)/src/include
+MAINTAINERCLEANFILES = Makefile.in
diff -ruN ng-spice-rework-3/src/devices/dio/Makefile.am 
ng-spice-rework-3-dynamic/src/devices/dio/Makefile.am
--- ng-spice-rework-3/src/devices/dio/Makefile.am       Mon Nov 15 11:35:09 
1999
+++ ng-spice-rework-3-dynamic/src/devices/dio/Makefile.am       Tue Dec  7 
+23:59:40 1999
@@ -1,8 +1,8 @@
 ## Process this file with automake to produce Makefile.in
 
-noinst_LIBRARIES = libdio.a
+lib_LTLIBRARIES = libdio.la
 
-libdio_a_SOURCES = \
+libdio_la_SOURCES = \
                dio.c   \
                dioacld.c       \
                dioask.c        \
@@ -33,3 +33,4 @@
 
 
 INCLUDES = -I$(top_srcdir)/src/include
+MAINTAINERCLEANFILES = Makefile.in
diff -ruN ng-spice-rework-3/src/devices/disto/Makefile.am 
ng-spice-rework-3-dynamic/src/devices/disto/Makefile.am
--- ng-spice-rework-3/src/devices/disto/Makefile.am     Mon Nov 15 11:35:09 
1999
+++ ng-spice-rework-3-dynamic/src/devices/disto/Makefile.am     Tue Dec  7 
+23:59:40 1999
@@ -1,8 +1,8 @@
 ## Process this file with automake to produce Makefile.in
 
-noinst_LIBRARIES = libdisto.a
+lib_LTLIBRARIES = libdisto.la
 
-libdisto_a_SOURCES = \
+libdisto_la_SOURCES = \
                atander.c       \
                cosderiv.c      \
                cubeder.c       \
@@ -20,3 +20,4 @@
 
 
 INCLUDES = -I$(top_srcdir)/src/include
+MAINTAINERCLEANFILES = Makefile.in
diff -ruN ng-spice-rework-3/src/devices/ind/Makefile.am 
ng-spice-rework-3-dynamic/src/devices/ind/Makefile.am
--- ng-spice-rework-3/src/devices/ind/Makefile.am       Mon Nov 15 11:35:09 
1999
+++ ng-spice-rework-3-dynamic/src/devices/ind/Makefile.am       Tue Dec  7 
+23:59:40 1999
@@ -1,8 +1,8 @@
 ## Process this file with automake to produce Makefile.in
 
-noinst_LIBRARIES = libind.a
+lib_LTLIBRARIES = libind.la
 
-libind_a_SOURCES = \
+libind_la_SOURCES = \
                ind.c   \
                indacld.c       \
                indask.c        \
@@ -36,3 +36,4 @@
 
 
 INCLUDES = -I$(top_srcdir)/src/include
+MAINTAINERCLEANFILES = Makefile.in
diff -ruN ng-spice-rework-3/src/devices/isrc/Makefile.am 
ng-spice-rework-3-dynamic/src/devices/isrc/Makefile.am
--- ng-spice-rework-3/src/devices/isrc/Makefile.am      Mon Nov 15 11:35:09 
1999
+++ ng-spice-rework-3-dynamic/src/devices/isrc/Makefile.am      Tue Dec  7 
+23:59:40 1999
@@ -1,8 +1,8 @@
 ## Process this file with automake to produce Makefile.in
 
-noinst_LIBRARIES = libisrc.a
+lib_LTLIBRARIES = libisrc.la
 
-libisrc_a_SOURCES = \
+libisrc_la_SOURCES = \
                isrc.c  \
                isrcacct.c      \
                isrcacld.c      \
@@ -20,3 +20,4 @@
 
 
 INCLUDES = -I$(top_srcdir)/src/include
+MAINTAINERCLEANFILES = Makefile.in
diff -ruN ng-spice-rework-3/src/devices/jfet/Makefile.am 
ng-spice-rework-3-dynamic/src/devices/jfet/Makefile.am
--- ng-spice-rework-3/src/devices/jfet/Makefile.am      Mon Nov 15 11:35:09 
1999
+++ ng-spice-rework-3-dynamic/src/devices/jfet/Makefile.am      Tue Dec  7 
+23:59:40 1999
@@ -1,8 +1,8 @@
 ## Process this file with automake to produce Makefile.in
 
-noinst_LIBRARIES = libjfet.a
+lib_LTLIBRARIES = libjfet.la
 
-libjfet_a_SOURCES = \
+libjfet_la_SOURCES = \
                jfet.c  \
                jfetacld.c      \
                jfetask.c       \
@@ -28,3 +28,4 @@
 
 
 INCLUDES = -I$(top_srcdir)/src/include
+MAINTAINERCLEANFILES = Makefile.in
diff -ruN ng-spice-rework-3/src/devices/jfet2/Makefile.am 
ng-spice-rework-3-dynamic/src/devices/jfet2/Makefile.am
--- ng-spice-rework-3/src/devices/jfet2/Makefile.am     Mon Nov 15 11:35:09 
1999
+++ ng-spice-rework-3-dynamic/src/devices/jfet2/Makefile.am     Tue Dec  7 
+23:59:40 1999
@@ -1,8 +1,8 @@
 ## Process this file with automake to produce Makefile.in
 
-noinst_LIBRARIES = libjfet2.a
+lib_LTLIBRARIES = libjfet2.la
 
-libjfet2_a_SOURCES = \
+libjfet2_la_SOURCES = \
                jfet2.c         \
                jfet2acld.c     \
                jfet2ask.c      \
@@ -29,3 +29,4 @@
 
 
 INCLUDES = -I$(top_srcdir)/src/include
+MAINTAINERCLEANFILES = Makefile.in
diff -ruN ng-spice-rework-3/src/devices/ltra/Makefile.am 
ng-spice-rework-3-dynamic/src/devices/ltra/Makefile.am
--- ng-spice-rework-3/src/devices/ltra/Makefile.am      Mon Nov 15 11:35:09 
1999
+++ ng-spice-rework-3-dynamic/src/devices/ltra/Makefile.am      Tue Dec  7 
+23:59:40 1999
@@ -1,8 +1,8 @@
 ## Process this file with automake to produce Makefile.in
 
-noinst_LIBRARIES = libltra.a
+lib_LTLIBRARIES = libltra.la
 
-libltra_a_SOURCES = \
+libltra_la_SOURCES = \
                ltra.c          \
                ltraacct.c      \
                ltraacld.c      \
@@ -25,3 +25,4 @@
 
 
 INCLUDES = -I$(top_srcdir)/src/include
+MAINTAINERCLEANFILES = Makefile.in
diff -ruN ng-spice-rework-3/src/devices/mes/Makefile.am 
ng-spice-rework-3-dynamic/src/devices/mes/Makefile.am
--- ng-spice-rework-3/src/devices/mes/Makefile.am       Mon Nov 15 11:35:09 
1999
+++ ng-spice-rework-3-dynamic/src/devices/mes/Makefile.am       Tue Dec  7 
+23:59:40 1999
@@ -1,8 +1,8 @@
 ## Process this file with automake to produce Makefile.in
 
-noinst_LIBRARIES = libmes.a
+lib_LTLIBRARIES = libmes.la
 
-libmes_a_SOURCES = \
+libmes_la_SOURCES = \
                mes.c   \
                mesacl.c        \
                mesask.c        \
@@ -28,3 +28,4 @@
 
 
 INCLUDES = -I$(top_srcdir)/src/include
+MAINTAINERCLEANFILES = Makefile.in
diff -ruN ng-spice-rework-3/src/devices/mos1/Makefile.am 
ng-spice-rework-3-dynamic/src/devices/mos1/Makefile.am
--- ng-spice-rework-3/src/devices/mos1/Makefile.am      Mon Nov 15 11:35:09 
1999
+++ ng-spice-rework-3-dynamic/src/devices/mos1/Makefile.am      Tue Dec  7 
+23:59:40 1999
@@ -1,8 +1,8 @@
 ## Process this file with automake to produce Makefile.in
 
-noinst_LIBRARIES = libmos1.a
+lib_LTLIBRARIES = libmos1.la
 
-libmos1_a_SOURCES = \
+libmos1_la_SOURCES = \
                mos1.c  \
                mos1acld.c      \
                mos1ask.c       \
@@ -34,3 +34,4 @@
 
 
 INCLUDES = -I$(top_srcdir)/src/include
+MAINTAINERCLEANFILES = Makefile.in
diff -ruN ng-spice-rework-3/src/devices/mos2/Makefile.am 
ng-spice-rework-3-dynamic/src/devices/mos2/Makefile.am
--- ng-spice-rework-3/src/devices/mos2/Makefile.am      Mon Nov 15 11:35:09 
1999
+++ ng-spice-rework-3-dynamic/src/devices/mos2/Makefile.am      Tue Dec  7 
+23:59:40 1999
@@ -1,8 +1,8 @@
 ## Process this file with automake to produce Makefile.in
 
-noinst_LIBRARIES = libmos2.a
+lib_LTLIBRARIES = libmos2.la
 
-libmos2_a_SOURCES = \
+libmos2_la_SOURCES = \
                mos2.c  \
                mos2acld.c      \
                mos2ask.c       \
@@ -34,3 +34,4 @@
 
 
 INCLUDES = -I$(top_srcdir)/src/include
+MAINTAINERCLEANFILES = Makefile.in
diff -ruN ng-spice-rework-3/src/devices/mos3/Makefile.am 
ng-spice-rework-3-dynamic/src/devices/mos3/Makefile.am
--- ng-spice-rework-3/src/devices/mos3/Makefile.am      Mon Nov 15 11:35:10 
1999
+++ ng-spice-rework-3-dynamic/src/devices/mos3/Makefile.am      Tue Dec  7 
+23:59:40 1999
@@ -1,8 +1,8 @@
 ## Process this file with automake to produce Makefile.in
 
-noinst_LIBRARIES = libmos3.a
+lib_LTLIBRARIES = libmos3.la
 
-libmos3_a_SOURCES = \
+libmos3_la_SOURCES = \
                mos3.c  \
                mos3acld.c      \
                mos3ask.c       \
@@ -34,3 +34,4 @@
 
 
 INCLUDES = -I$(top_srcdir)/src/include
+MAINTAINERCLEANFILES = Makefile.in
diff -ruN ng-spice-rework-3/src/devices/mos6/Makefile.am 
ng-spice-rework-3-dynamic/src/devices/mos6/Makefile.am
--- ng-spice-rework-3/src/devices/mos6/Makefile.am      Mon Nov 15 11:35:10 
1999
+++ ng-spice-rework-3-dynamic/src/devices/mos6/Makefile.am      Tue Dec  7 
+23:59:40 1999
@@ -1,8 +1,8 @@
 ## Process this file with automake to produce Makefile.in
 
-noinst_LIBRARIES = libmos6.a
+lib_LTLIBRARIES = libmos6.la
 
-libmos6_a_SOURCES = \
+libmos6_la_SOURCES = \
                mos6.c  \
                mos6ask.c       \
                mos6conv.c      \
@@ -22,3 +22,4 @@
 
 
 INCLUDES = -I$(top_srcdir)/src/include
+MAINTAINERCLEANFILES = Makefile.in
diff -ruN ng-spice-rework-3/src/devices/res/Makefile.am 
ng-spice-rework-3-dynamic/src/devices/res/Makefile.am
--- ng-spice-rework-3/src/devices/res/Makefile.am       Mon Nov 15 11:35:10 
1999
+++ ng-spice-rework-3-dynamic/src/devices/res/Makefile.am       Tue Dec  7 
+23:59:40 1999
@@ -1,8 +1,8 @@
 ## Process this file with automake to produce Makefile.in
 
-noinst_LIBRARIES = libres.a
+lib_LTLIBRARIES = libres.la
 
-libres_a_SOURCES = \
+libres_la_SOURCES = \
                res.c   \
                resask.c        \
                resdefs.h       \
@@ -27,3 +27,4 @@
 
 
 INCLUDES = -I$(top_srcdir)/src/include
+MAINTAINERCLEANFILES = Makefile.in
diff -ruN ng-spice-rework-3/src/devices/sw/Makefile.am 
ng-spice-rework-3-dynamic/src/devices/sw/Makefile.am
--- ng-spice-rework-3/src/devices/sw/Makefile.am        Mon Nov 15 11:35:10 
1999
+++ ng-spice-rework-3-dynamic/src/devices/sw/Makefile.am        Tue Dec  7 
+23:59:40 1999
@@ -1,8 +1,8 @@
 ## Process this file with automake to produce Makefile.in
 
-noinst_LIBRARIES = libsw.a
+lib_LTLIBRARIES = libsw.la
 
-libsw_a_SOURCES = \
+libsw_la_SOURCES = \
                sw.c    \
                swacload.c      \
                swask.c         \
@@ -23,3 +23,4 @@
 
 
 INCLUDES = -I$(top_srcdir)/src/include
+MAINTAINERCLEANFILES = Makefile.in
diff -ruN ng-spice-rework-3/src/devices/tests/asrctest.c 
ng-spice-rework-3-dynamic/src/devices/tests/asrctest.c
--- ng-spice-rework-3/src/devices/tests/asrctest.c      Thu Jan  1 01:00:00 
1970
+++ ng-spice-rework-3-dynamic/src/devices/tests/asrctest.c      Sat Nov 27 
+20:48:39 1999
@@ -0,0 +1,42 @@
+#include <stdio.h>
+
+#define DEV_asrc
+
+#include <ifsim.h>
+#include <devdefs.h>
+
+#include "asrcitf.h"
+#include "asrcdefs.h"
+
+int ARCHme;
+
+
+void print_IFparm(IFparm p)
+{
+    printf("Keyword: %s\n", p.keyword);
+    printf("ID: %d\n", p.id);
+    printf("DataType: %d\n", p.dataType);
+    printf("Description: %s\n", p.description);
+}
+
+
+void print_IFdevice(IFdevice p)
+{
+}
+
+
+void print_SPICEdev(SPICEdev p)
+{
+    print_IFdevice(p.DEVpublic);
+    printf ("Instance size: %d\n", *p.DEVinstSize);
+    printf ("Model size: %d\n", *p.DEVinstSize);
+
+}
+
+
+int main(void)
+{
+    print_SPICEdev(ASRCinfo);
+
+    return 0;
+}
diff -ruN ng-spice-rework-3/src/devices/tra/Makefile.am 
ng-spice-rework-3-dynamic/src/devices/tra/Makefile.am
--- ng-spice-rework-3/src/devices/tra/Makefile.am       Mon Nov 15 11:35:10 
1999
+++ ng-spice-rework-3-dynamic/src/devices/tra/Makefile.am       Tue Dec  7 
+23:59:40 1999
@@ -1,8 +1,8 @@
 ## Process this file with automake to produce Makefile.in
 
-noinst_LIBRARIES = libtra.a
+lib_LTLIBRARIES = libtra.la
 
-libtra_a_SOURCES = \
+libtra_la_SOURCES = \
                tra.c   \
                traacct.c       \
                traacld.c       \
@@ -22,3 +22,4 @@
 
 
 INCLUDES = -I$(top_srcdir)/src/include
+MAINTAINERCLEANFILES = Makefile.in
diff -ruN ng-spice-rework-3/src/devices/urc/Makefile.am 
ng-spice-rework-3-dynamic/src/devices/urc/Makefile.am
--- ng-spice-rework-3/src/devices/urc/Makefile.am       Mon Nov 15 11:35:10 
1999
+++ ng-spice-rework-3-dynamic/src/devices/urc/Makefile.am       Tue Dec  7 
+23:59:40 1999
@@ -1,8 +1,8 @@
 ## Process this file with automake to produce Makefile.in
 
-noinst_LIBRARIES = liburc.a
+lib_LTLIBRARIES = liburc.la
 
-liburc_a_SOURCES = \
+liburc_la_SOURCES = \
                urc.c   \
                urcask.c        \
                urcdefs.h       \
@@ -19,3 +19,4 @@
 
 
 INCLUDES = -I$(top_srcdir)/src/include
+MAINTAINERCLEANFILES = Makefile.in
diff -ruN ng-spice-rework-3/src/devices/vccs/Makefile.am 
ng-spice-rework-3-dynamic/src/devices/vccs/Makefile.am
--- ng-spice-rework-3/src/devices/vccs/Makefile.am      Mon Nov 15 11:35:10 
1999
+++ ng-spice-rework-3-dynamic/src/devices/vccs/Makefile.am      Tue Dec  7 
+23:59:40 1999
@@ -1,8 +1,8 @@
 ## Process this file with automake to produce Makefile.in
 
-noinst_LIBRARIES = libvccs.a
+lib_LTLIBRARIES = libvccs.la
 
-libvccs_a_SOURCES = \
+libvccs_la_SOURCES = \
                vccs.c          \
                vccsask.c       \
                vccsdefs.h      \
@@ -23,3 +23,4 @@
 
 
 INCLUDES = -I$(top_srcdir)/src/include
+MAINTAINERCLEANFILES = Makefile.in
diff -ruN ng-spice-rework-3/src/devices/vcvs/Makefile.am 
ng-spice-rework-3-dynamic/src/devices/vcvs/Makefile.am
--- ng-spice-rework-3/src/devices/vcvs/Makefile.am      Mon Nov 15 11:35:10 
1999
+++ ng-spice-rework-3-dynamic/src/devices/vcvs/Makefile.am      Tue Dec  7 
+23:59:40 1999
@@ -1,8 +1,8 @@
 ## Process this file with automake to produce Makefile.in
 
-noinst_LIBRARIES = libvcvs.a
+lib_LTLIBRARIES = libvcvs.la
 
-libvcvs_a_SOURCES = \
+libvcvs_la_SOURCES = \
                vcvs.c  \
                vcvsask.c       \
                vcvsdefs.h      \
@@ -24,3 +24,4 @@
 
 
 INCLUDES = -I$(top_srcdir)/src/include
+MAINTAINERCLEANFILES = Makefile.in
diff -ruN ng-spice-rework-3/src/devices/vsrc/Makefile.am 
ng-spice-rework-3-dynamic/src/devices/vsrc/Makefile.am
--- ng-spice-rework-3/src/devices/vsrc/Makefile.am      Mon Nov 15 11:35:10 
1999
+++ ng-spice-rework-3-dynamic/src/devices/vsrc/Makefile.am      Wed Dec  8 
+00:01:13 1999
@@ -1,8 +1,8 @@
 ## Process this file with automake to produce Makefile.in
 
-noinst_LIBRARIES = libvsrc.a
+lib_LTLIBRARIES = libvsrc.la
 
-libvsrc_a_SOURCES = \
+libvsrc_la_SOURCES = \
                vsrc.c          \
                vsrcacct.c      \
                vsrcacld.c      \
@@ -23,4 +23,6 @@
 
 
 
-INCLUDES = -I$(top_srcdir)/src/include
\ No newline at end of file
+INCLUDES = -I$(top_srcdir)/src/include
+
+MAINTAINERCLEANFILES = Makefile.in
diff -ruN ng-spice-rework-3/src/frontend/Makefile.am 
ng-spice-rework-3-dynamic/src/frontend/Makefile.am
--- ng-spice-rework-3/src/frontend/Makefile.am  Fri Nov 26 00:03:52 1999
+++ ng-spice-rework-3-dynamic/src/frontend/Makefile.am  Tue Dec  7 23:59:40 
+1999
@@ -1,8 +1,8 @@
 ## Process this file with automake to produce Makefile.in
 
-noinst_LIBRARIES = libfte.a
+lib_LTLIBRARIES = libfrontend.la
 
-libfte_a_SOURCES = \
+libfrontend_la_SOURCES = \
                agraf.c         \
                agraf.h         \
                arg.c           \
@@ -119,8 +119,10 @@
                xgraph.c        \
                xgraph.h
 
-
+libfrontend_la_LIBADD = \
+               -lcircuit
 
 
 INCLUDES = -I$(top_srcdir)/src/include @X_CFLAGS@ 
 
+MAINTAINERCLEANFILES = Makefile.in
diff -ruN ng-spice-rework-3/src/frontend/libfte.la 
ng-spice-rework-3-dynamic/src/frontend/libfte.la
--- ng-spice-rework-3/src/frontend/libfte.la    Thu Jan  1 01:00:00 1970
+++ ng-spice-rework-3-dynamic/src/frontend/libfte.la    Tue Dec  7 21:56:46 
+1999
@@ -0,0 +1,28 @@
+# libfte.la - a libtool library file
+# Generated by ltmain.sh - GNU libtool 1.3.3 (1.385.2.181 1999/07/02 
+15:49:11)
+#
+# Please DO NOT delete this file!
+# It is necessary for linking the library.
+
+# The name that we can dlopen(3).
+dlname=''
+
+# Names of this library.
+library_names='libfte.so.0.0.0 libfte.so.0 libfte.so'
+
+# The name of the static archive.
+old_library=''
+
+# Libraries that this one depends upon.
+dependency_libs=' -lm -lncurses'
+
+# Version information for libfte.
+current=0
+age=0
+revision=0
+
+# Is this an already installed library?
+installed=no
+
+# Directory that this library needs to be installed in:
+libdir='/home/arno/src/spice/ng-spice/inst/lib'
diff -ruN ng-spice-rework-3/src/hlp/Makefile.am 
ng-spice-rework-3-dynamic/src/hlp/Makefile.am
--- ng-spice-rework-3/src/hlp/Makefile.am       Mon Nov 15 11:35:10 1999
+++ ng-spice-rework-3-dynamic/src/hlp/Makefile.am       Tue Dec  7 23:59:40 
+1999
@@ -1,8 +1,8 @@
 ## Process this file with automake to produce Makefile.in
 
-noinst_LIBRARIES = libhlp.a
+lib_LTLIBRARIES = libhlp.la
 
-libhlp_a_SOURCES = \
+libhlp_la_SOURCES = \
                help.c  \
                provide.c       \
                readhelp.c      \
@@ -15,3 +15,4 @@
 INCLUDES = -I$(top_srcdir)/src/include @X_CFLAGS@
 
 
+MAINTAINERCLEANFILES = Makefile.in
diff -ruN ng-spice-rework-3/src/include/Makefile.am 
ng-spice-rework-3-dynamic/src/include/Makefile.am
--- ng-spice-rework-3/src/include/Makefile.am   Wed Dec  1 00:31:12 1999
+++ ng-spice-rework-3-dynamic/src/include/Makefile.am   Tue Dec  7 23:59:40 
+1999
@@ -56,3 +56,4 @@
        trcvdefs.h      \
        tskdefs.h       
 
+MAINTAINERCLEANFILES = Makefile.in
diff -ruN ng-spice-rework-3/src/maths/Makefile.am 
ng-spice-rework-3-dynamic/src/maths/Makefile.am
--- ng-spice-rework-3/src/maths/Makefile.am     Fri Nov 26 00:04:11 1999
+++ ng-spice-rework-3-dynamic/src/maths/Makefile.am     Tue Dec  7 23:59:41 
+1999
@@ -1,3 +1,4 @@
 # Process this file with automake
 
 SUBDIRS = cmaths ni sparse
+MAINTAINERCLEANFILES = Makefile.in
diff -ruN ng-spice-rework-3/src/maths/cmaths/Makefile.am 
ng-spice-rework-3-dynamic/src/maths/cmaths/Makefile.am
--- ng-spice-rework-3/src/maths/cmaths/Makefile.am      Fri Nov 26 00:14:31 
1999
+++ ng-spice-rework-3-dynamic/src/maths/cmaths/Makefile.am      Tue Dec  7 
+23:59:41 1999
@@ -1,8 +1,8 @@
 ## Process this file with automake to produce Makefile.in
 
-noinst_LIBRARIES = libcmaths.a
+lib_LTLIBRARIES = libcmaths.la
 
-libcmaths_a_SOURCES = \
+libcmaths_la_SOURCES = \
                cmath1.c        \
                cmath1.h        \
                cmath2.c        \
@@ -12,7 +12,10 @@
                cmath4.c        \
                cmath4.h
 
+libcmaths_la_LIBADD = \
+               -lmisc
 
 
 INCLUDES = -I$(top_srcdir)/src/include
 
+MAINTAINERCLEANFILES = Makefile.in
diff -ruN ng-spice-rework-3/src/maths/ni/Makefile.am 
ng-spice-rework-3-dynamic/src/maths/ni/Makefile.am
--- ng-spice-rework-3/src/maths/ni/Makefile.am  Mon Nov 15 11:35:08 1999
+++ ng-spice-rework-3-dynamic/src/maths/ni/Makefile.am  Tue Dec  7 23:59:41 
+1999
@@ -1,8 +1,8 @@
 ## Process this file with automake to produce Makefile.in
 
-noinst_LIBRARIES = libni.a
+lib_LTLIBRARIES = libni.la
 
-libni_a_SOURCES = \
+libni_la_SOURCES = \
                niaciter.c      \
                niaciter.h      \
                nicomcof.c      \
@@ -30,6 +30,9 @@
                nisenre.c       \
                nisenre.h
 
+libni_la_LIBADD = \
+               -lmisc -lsparse -lanalysis
 
 INCLUDES = -I$(top_srcdir)/src/include
 
+MAINTAINERCLEANFILES = Makefile.in
diff -ruN ng-spice-rework-3/src/maths/sparse/Makefile.am 
ng-spice-rework-3-dynamic/src/maths/sparse/Makefile.am
--- ng-spice-rework-3/src/maths/sparse/Makefile.am      Mon Nov 15 11:35:08 
1999
+++ ng-spice-rework-3-dynamic/src/maths/sparse/Makefile.am      Wed Dec  8 
+00:00:41 1999
@@ -1,8 +1,8 @@
 ## Process this file with automake to produce Makefile.in
 
-noinst_LIBRARIES = libsparse.a
+lib_LTLIBRARIES = libsparse.la
 
-libsparse_a_SOURCES = \
+libsparse_la_SOURCES = \
                spalloc.c       \
                spbuild.c       \
                spcombin.c      \
@@ -14,7 +14,9 @@
                spsolve.c       \
                sputils.c
 
+libsparse_la_LIBADD = \
+               -lmisc
 
+INCLUDES = -I$(top_srcdir)/src/include
 
-
-INCLUDES = -I$(top_srcdir)/src/include
\ No newline at end of file
+MAINTAINERCLEANFILES = Makefile.in
diff -ruN ng-spice-rework-3/src/misc/Makefile.am 
ng-spice-rework-3-dynamic/src/misc/Makefile.am
--- ng-spice-rework-3/src/misc/Makefile.am      Mon Nov 15 11:35:08 1999
+++ ng-spice-rework-3-dynamic/src/misc/Makefile.am      Tue Dec  7 23:59:41 
+1999
@@ -1,8 +1,8 @@
 ## Process this file with automake to produce Makefile.in
 
-noinst_LIBRARIES = libmisc.a
+lib_LTLIBRARIES = libmisc.la
 
-libmisc_a_SOURCES = \
+libmisc_la_SOURCES = \
                alloc.c         \
                alloc.h         \
                dup2.c          \
@@ -25,3 +25,4 @@
 
 
 INCLUDES = -I$(top_srcdir)/src/include
+MAINTAINERCLEANFILES = Makefile.in
diff -ruN ng-spice-rework-3/src/parser/Makefile.am 
ng-spice-rework-3-dynamic/src/parser/Makefile.am
--- ng-spice-rework-3/src/parser/Makefile.am    Mon Nov 15 11:35:08 1999
+++ ng-spice-rework-3-dynamic/src/parser/Makefile.am    Tue Dec  7 23:59:41 
+1999
@@ -1,8 +1,8 @@
 ## Process this file with automake to produce Makefile.in
 
-noinst_LIBRARIES = libparser.a
+lib_LTLIBRARIES = libparser.la
 
-libparser_a_SOURCES = \
+libparser_la_SOURCES = \
                alias.c         \
                alias.h         \
                backq.c         \
@@ -41,3 +41,4 @@
 
 
 INCLUDES = -I$(top_srcdir)/src/include
+MAINTAINERCLEANFILES = Makefile.in
diff -ruN ng-spice-rework-3/tests/Makefile.am 
ng-spice-rework-3-dynamic/tests/Makefile.am
--- ng-spice-rework-3/tests/Makefile.am Wed Dec  1 00:24:31 1999
+++ ng-spice-rework-3-dynamic/tests/Makefile.am Tue Dec  7 23:59:41 1999
@@ -8,3 +8,5 @@
 EXTRA_DIST =   README          \
                check1.cir      \
                check2.cir
+
+MAINTAINERCLEANFILES = Makefile.in

Partial thread listing: