2000-04-27 22:03:57 +02:00
|
|
|
## Process this file with automake to produce Makefile.in
|
2005-10-19 09:09:37 +02:00
|
|
|
# $Id$
|
2000-04-27 22:03:57 +02:00
|
|
|
|
2003-08-11 22:53:33 +02:00
|
|
|
SUBDIRS = misc maths frontend spicelib include @XSPICEDIR@ @CIDERDIR@
|
2004-02-14 20:19:23 +01:00
|
|
|
DIST_SUBDIRS = misc maths frontend spicelib include xspice ciderlib
|
2000-04-27 22:03:57 +02:00
|
|
|
|
2006-10-12 04:38:26 +02:00
|
|
|
bin_PROGRAMS = ngspice ngnutmeg nghelp ngmakeidx
|
2005-05-19 17:21:59 +02:00
|
|
|
|
|
|
|
|
if !WINDOWS
|
|
|
|
|
bin_PROGRAMS += ngsconvert ngproc2mod ngmultidec
|
|
|
|
|
endif
|
2000-04-27 22:03:57 +02:00
|
|
|
|
2004-02-14 20:19:23 +01:00
|
|
|
EXTRA_DIST = ngspice.txt ngspice.idx setplot spectrum \
|
|
|
|
|
devload devaxis ciderinit winmain.c
|
2000-04-27 22:03:57 +02:00
|
|
|
|
|
|
|
|
helpdatadir = $(pkgdatadir)/helpdir
|
|
|
|
|
|
2004-01-10 18:01:39 +01:00
|
|
|
helpdata_DATA = ngspice.txt ngspice.idx
|
2000-04-27 22:03:57 +02:00
|
|
|
|
2001-01-21 18:24:23 +01:00
|
|
|
initdatadir = $(pkgdatadir)/scripts
|
|
|
|
|
|
2003-08-11 22:53:33 +02:00
|
|
|
initdata_DATA = spinit setplot spectrum @CIDERSCRIPTS@
|
2000-04-27 22:03:57 +02:00
|
|
|
|
|
|
|
|
|
2003-08-05 19:20:17 +02:00
|
|
|
DYNAMIC_DEVICELIBS = \
|
|
|
|
|
spicelib/devices/asrc/libasrc.a \
|
|
|
|
|
spicelib/devices/bjt/libbjt.a \
|
2003-08-11 22:53:33 +02:00
|
|
|
spicelib/devices/bjt2/libbjt2.a \
|
2003-08-05 19:20:17 +02:00
|
|
|
spicelib/devices/bsim1/libbsim1.a \
|
|
|
|
|
spicelib/devices/bsim2/libbsim2.a \
|
|
|
|
|
spicelib/devices/bsim3/libbsim3.a \
|
2003-08-11 22:53:33 +02:00
|
|
|
spicelib/devices/bsim3v0/libbsim3v0.a \
|
2003-08-05 19:20:17 +02:00
|
|
|
spicelib/devices/bsim3v1/libbsim3v1.a \
|
2003-08-11 22:53:33 +02:00
|
|
|
spicelib/devices/bsim3v1s/libbsim3v1s.a \
|
|
|
|
|
spicelib/devices/bsim3v1a/libbsim3v1a.a \
|
2007-11-24 13:07:36 +01:00
|
|
|
spicelib/devices/bsim3v32/libbsim3v32.a \
|
2003-08-05 19:20:17 +02:00
|
|
|
spicelib/devices/bsim4/libbsim4.a \
|
2007-11-04 21:00:43 +01:00
|
|
|
spicelib/devices/bsim4v2/libbsim4v2.a \
|
|
|
|
|
spicelib/devices/bsim4v3/libbsim4v3.a \
|
2007-10-31 08:22:05 +01:00
|
|
|
spicelib/devices/bsim4v4/libbsim4v4.a \
|
2007-11-04 21:00:43 +01:00
|
|
|
spicelib/devices/bsim4v5/libbsim4v5.a \
|
2003-08-05 19:20:17 +02:00
|
|
|
spicelib/devices/cap/libcap.a \
|
2003-08-13 12:47:22 +02:00
|
|
|
spicelib/devices/bsim3soi/libbsim3soi.a \
|
2003-08-05 19:20:17 +02:00
|
|
|
spicelib/devices/bsim3soi_pd/libbsim3soipd.a \
|
|
|
|
|
spicelib/devices/bsim3soi_fd/libbsim3soifd.a \
|
|
|
|
|
spicelib/devices/bsim3soi_dd/libbsim3soidd.a \
|
|
|
|
|
spicelib/devices/cccs/libcccs.a \
|
|
|
|
|
spicelib/devices/ccvs/libccvs.a \
|
|
|
|
|
spicelib/devices/ccvs/libccvs.a \
|
|
|
|
|
spicelib/devices/cpl/libcpl.a \
|
|
|
|
|
spicelib/devices/csw/libcsw.a \
|
|
|
|
|
spicelib/devices/dio/libdio.a \
|
|
|
|
|
spicelib/devices/ind/libind.a \
|
|
|
|
|
spicelib/devices/isrc/libisrc.a \
|
|
|
|
|
spicelib/devices/hfet1/libhfet.a \
|
|
|
|
|
spicelib/devices/hfet2/libhfet2.a \
|
2003-08-11 22:53:33 +02:00
|
|
|
spicelib/devices/hisim/libhisim.a \
|
2003-08-05 19:20:17 +02:00
|
|
|
spicelib/devices/jfet/libjfet.a \
|
|
|
|
|
spicelib/devices/jfet2/libjfet2.a \
|
|
|
|
|
spicelib/devices/ltra/libltra.a \
|
|
|
|
|
spicelib/devices/mes/libmes.a \
|
|
|
|
|
spicelib/devices/mesa/libmesa.a \
|
|
|
|
|
spicelib/devices/mos1/libmos1.a \
|
|
|
|
|
spicelib/devices/mos2/libmos2.a \
|
|
|
|
|
spicelib/devices/mos3/libmos3.a \
|
|
|
|
|
spicelib/devices/mos6/libmos6.a \
|
|
|
|
|
spicelib/devices/mos9/libmos9.a \
|
|
|
|
|
spicelib/devices/res/libres.a \
|
|
|
|
|
spicelib/devices/soi3/libsoi3.a \
|
|
|
|
|
spicelib/devices/sw/libsw.a \
|
|
|
|
|
spicelib/devices/txl/libtxl.a \
|
|
|
|
|
spicelib/devices/tra/libtra.a \
|
|
|
|
|
spicelib/devices/urc/liburc.a \
|
2004-01-10 13:19:44 +01:00
|
|
|
spicelib/devices/vbic/libvbic.a \
|
2003-08-05 19:20:17 +02:00
|
|
|
spicelib/devices/vccs/libvccs.a \
|
|
|
|
|
spicelib/devices/vcvs/libvcvs.a \
|
2003-08-11 22:53:33 +02:00
|
|
|
spicelib/devices/vsrc/libvsrc.a \
|
2007-05-01 05:41:59 +02:00
|
|
|
@NDEV_LIB@ \
|
2006-02-20 12:12:43 +01:00
|
|
|
@VLADEV@ \
|
2003-08-11 22:53:33 +02:00
|
|
|
@NUMDEV@
|
|
|
|
|
|
|
|
|
|
|
2000-04-27 22:03:57 +02:00
|
|
|
## Build ngspice first:
|
|
|
|
|
|
|
|
|
|
ngspice_SOURCES = \
|
|
|
|
|
conf.c \
|
|
|
|
|
conf.h \
|
2004-01-10 13:19:44 +01:00
|
|
|
ngspice.c
|
2005-05-18 16:51:11 +02:00
|
|
|
|
|
|
|
|
if WINDOWS
|
|
|
|
|
ngspice_SOURCES += winmain.c
|
|
|
|
|
endif
|
2000-04-27 22:03:57 +02:00
|
|
|
|
|
|
|
|
ngspice_LDADD = \
|
|
|
|
|
spice.o \
|
|
|
|
|
frontend/libfte.a \
|
2005-04-29 09:06:39 +02:00
|
|
|
@WINDISPLIB@ \
|
2000-05-06 16:12:51 +02:00
|
|
|
frontend/plotting/libplotting.a \
|
2003-07-23 21:36:39 +02:00
|
|
|
@XSPICELIB1@ \
|
2002-01-03 23:44:21 +01:00
|
|
|
spicelib/devices/dev.o \
|
2004-01-10 13:19:44 +01:00
|
|
|
$(DYNAMIC_DEVICELIBS) \
|
2000-07-24 23:06:46 +02:00
|
|
|
spicelib/analysis/libckt.a \
|
2000-07-23 20:35:45 +02:00
|
|
|
spicelib/devices/libdev.a \
|
2003-07-23 21:36:39 +02:00
|
|
|
@XSPICELIB2@ \
|
2000-07-21 20:25:47 +02:00
|
|
|
frontend/parser/libparser.a \
|
2003-09-25 19:23:26 +02:00
|
|
|
@NUMPARAMLIB@ \
|
2000-07-20 22:33:26 +02:00
|
|
|
frontend/help/libhlp.a \
|
2000-07-25 08:03:06 +02:00
|
|
|
spicelib/parser/libinp.a \
|
2003-08-14 01:27:50 +02:00
|
|
|
@CIDERSIM@ \
|
2000-06-16 23:11:59 +02:00
|
|
|
maths/deriv/libderiv.a \
|
2000-04-27 22:03:57 +02:00
|
|
|
maths/cmaths/libcmaths.a \
|
2003-08-13 12:47:22 +02:00
|
|
|
@CIDERMATHDIR@ \
|
2000-05-13 12:56:58 +02:00
|
|
|
maths/poly/libpoly.a \
|
2000-04-27 22:03:57 +02:00
|
|
|
maths/ni/libni.a \
|
|
|
|
|
maths/sparse/libsparse.a \
|
2004-01-10 13:19:44 +01:00
|
|
|
misc/libmisc.a
|
2000-04-27 22:03:57 +02:00
|
|
|
|
|
|
|
|
|
2002-01-03 23:44:21 +01:00
|
|
|
winmain.o: winmain.c
|
|
|
|
|
$(COMPILE) -DSIMULATOR -o winmain.o -c $(srcdir)/winmain.c
|
|
|
|
|
|
|
|
|
|
spice.o: main.c
|
2000-04-27 22:03:57 +02:00
|
|
|
$(COMPILE) -DSIMULATOR -o spice.o -c $(srcdir)/main.c
|
|
|
|
|
|
|
|
|
|
## nutmeg:
|
|
|
|
|
|
2001-01-21 18:24:23 +01:00
|
|
|
ngnutmeg_SOURCES = \
|
2000-04-27 22:03:57 +02:00
|
|
|
main.c \
|
|
|
|
|
conf.c \
|
|
|
|
|
conf.h \
|
2001-01-21 18:24:23 +01:00
|
|
|
ngnutmeg.c
|
2000-04-27 22:03:57 +02:00
|
|
|
|
2005-05-18 16:51:11 +02:00
|
|
|
if WINDOWS
|
|
|
|
|
ngnutmeg_SOURCES += winmain.c
|
|
|
|
|
endif
|
|
|
|
|
|
2001-01-21 18:24:23 +01:00
|
|
|
ngnutmeg_LDADD = \
|
2000-04-27 22:03:57 +02:00
|
|
|
frontend/libfte.a \
|
2005-04-29 09:06:39 +02:00
|
|
|
@WINDISPLIB@ \
|
2000-05-06 16:12:51 +02:00
|
|
|
frontend/plotting/libplotting.a \
|
2000-07-21 20:25:47 +02:00
|
|
|
frontend/parser/libparser.a \
|
2003-09-25 19:23:26 +02:00
|
|
|
@NUMPARAMLIB@ \
|
2000-07-20 22:33:26 +02:00
|
|
|
frontend/help/libhlp.a \
|
2000-04-27 22:03:57 +02:00
|
|
|
maths/cmaths/libcmaths.a \
|
2000-05-13 12:56:58 +02:00
|
|
|
maths/poly/libpoly.a \
|
2007-10-09 17:18:35 +02:00
|
|
|
misc/libmisc.a \
|
|
|
|
|
spicelib/parser/libinp.a
|
2000-04-27 22:03:57 +02:00
|
|
|
|
|
|
|
|
## help:
|
|
|
|
|
|
2005-05-20 13:28:03 +02:00
|
|
|
nghelp_SOURCES = conf.c nghelp.c
|
2000-04-27 22:03:57 +02:00
|
|
|
|
2005-05-18 16:51:11 +02:00
|
|
|
if WINDOWS
|
|
|
|
|
nghelp_SOURCES += winmain.c
|
|
|
|
|
endif
|
|
|
|
|
|
2005-10-19 09:09:37 +02:00
|
|
|
# We keep the libraries to a minimum here and link against terminal.o
|
|
|
|
|
# rather than the full front-end library libfte.a to avoid link errors that
|
|
|
|
|
# that would otherwise occur (thanks to Andreas Unger for this fix).
|
|
|
|
|
nghelp_LDADD = \
|
|
|
|
|
frontend/terminal.o \
|
2000-07-23 20:46:48 +02:00
|
|
|
frontend/help/libhlp.a \
|
2005-10-19 09:09:37 +02:00
|
|
|
misc/libmisc.a
|
2000-04-27 22:03:57 +02:00
|
|
|
|
2005-05-18 16:51:11 +02:00
|
|
|
## These programs currently fail to build on Windows
|
|
|
|
|
if !WINDOWS
|
|
|
|
|
|
2000-04-27 22:03:57 +02:00
|
|
|
## sconvert:
|
|
|
|
|
|
2001-01-21 18:24:23 +01:00
|
|
|
ngsconvert_SOURCES = ngsconvert.c
|
2000-04-27 22:03:57 +02:00
|
|
|
|
|
|
|
|
|
2001-01-21 18:24:23 +01:00
|
|
|
ngsconvert_LDADD = \
|
2000-04-27 22:03:57 +02:00
|
|
|
frontend/libfte.a \
|
2000-07-21 20:25:47 +02:00
|
|
|
frontend/parser/libparser.a \
|
2004-01-10 13:19:44 +01:00
|
|
|
misc/libmisc.a
|
2004-01-27 22:57:20 +01:00
|
|
|
|
2000-04-27 22:03:57 +02:00
|
|
|
## proc2mod:
|
|
|
|
|
|
2001-01-21 18:24:23 +01:00
|
|
|
ngproc2mod_SOURCES = ngproc2mod.c
|
2000-04-27 22:03:57 +02:00
|
|
|
|
2001-01-21 18:24:23 +01:00
|
|
|
ngproc2mod_LDADD = \
|
2000-07-21 20:25:47 +02:00
|
|
|
frontend/parser/libparser.a \
|
2000-07-25 08:03:06 +02:00
|
|
|
spicelib/parser/libinp.a \
|
2000-04-27 22:03:57 +02:00
|
|
|
misc/libmisc.a
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## multidec:
|
|
|
|
|
|
2001-01-21 18:24:23 +01:00
|
|
|
ngmultidec_SOURCES = ngmultidec.c
|
2000-04-27 22:03:57 +02:00
|
|
|
|
2001-01-21 18:24:23 +01:00
|
|
|
ngmultidec_LDADD = \
|
2000-04-27 22:03:57 +02:00
|
|
|
maths/sparse/libsparse.a \
|
|
|
|
|
misc/libmisc.a
|
2005-05-19 17:21:59 +02:00
|
|
|
|
|
|
|
|
endif !WINDOWS
|
2000-04-27 22:03:57 +02:00
|
|
|
|
2006-10-12 04:38:26 +02:00
|
|
|
## ngmakeidx:
|
2000-04-27 22:03:57 +02:00
|
|
|
|
2006-10-12 04:38:26 +02:00
|
|
|
ngmakeidx_SOURCES = makeidx.c
|
2000-04-27 22:03:57 +02:00
|
|
|
|
|
|
|
|
## create index for online help:
|
|
|
|
|
|
2006-10-12 04:38:26 +02:00
|
|
|
ngspice.idx: ngmakeidx
|
|
|
|
|
./ngmakeidx $(srcdir)/ngspice.txt
|
2000-04-27 22:03:57 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
## General Includes and libraries:
|
|
|
|
|
|
|
|
|
|
|
2000-07-23 20:35:45 +02:00
|
|
|
INCLUDES = -I$(top_srcdir)/src/include -I$(top_srcdir)/src/spicelib/devices @X_CFLAGS@
|
2000-04-27 22:03:57 +02:00
|
|
|
|
|
|
|
|
LIBS = @LIBS@ @X_LIBS@ @X_PRE_LIBS@ @X_EXTRA_LIBS@
|
|
|
|
|
|
2005-10-19 09:09:37 +02:00
|
|
|
MAINTAINERCLEANFILES = Makefile.in ngspice.idx
|