src/makefile.am /include/ngspice/makefile.am: add shared module
This commit is contained in:
parent
7755d02b4f
commit
6fe8f4edcf
118
src/Makefile.am
118
src/Makefile.am
|
|
@ -12,6 +12,7 @@ SUBDIRS += ciderlib
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if !TCL_MODULE
|
if !TCL_MODULE
|
||||||
|
if !SHARED_MODULE
|
||||||
bin_PROGRAMS = ngspice ngnutmeg
|
bin_PROGRAMS = ngspice ngnutmeg
|
||||||
|
|
||||||
if !WINGUI
|
if !WINGUI
|
||||||
|
|
@ -22,11 +23,13 @@ if !NO_HELP
|
||||||
bin_PROGRAMS += nghelp
|
bin_PROGRAMS += nghelp
|
||||||
endif !NO_HELP
|
endif !NO_HELP
|
||||||
endif !WINGUI
|
endif !WINGUI
|
||||||
|
endif !SHARED_MODULE
|
||||||
endif !TCL_MODULE
|
endif !TCL_MODULE
|
||||||
|
|
||||||
EXTRA_DIST = ngspice.txt setplot spectrum \
|
EXTRA_DIST = ngspice.txt setplot spectrum \
|
||||||
devload devaxis ciderinit winmain.c winmain.h unsupported \
|
devload devaxis ciderinit winmain.c winmain.h unsupported \
|
||||||
tclspice.c tclspice.map pkgIndex.tcl.in spinit.in tclspinit.in main.c
|
tclspice.c tclspice.map pkgIndex.tcl.in spinit.in tclspinit.in \
|
||||||
|
main.c sharedspice.c
|
||||||
|
|
||||||
|
|
||||||
initdatadir = $(pkgdatadir)/scripts
|
initdatadir = $(pkgdatadir)/scripts
|
||||||
|
|
@ -213,7 +216,7 @@ ngnutmeg_LDADD += \
|
||||||
|
|
||||||
## These programs are not required on Windows
|
## These programs are not required on Windows
|
||||||
if !WINGUI
|
if !WINGUI
|
||||||
|
if !SHWIN
|
||||||
if !NO_X
|
if !NO_X
|
||||||
ngnutmeg_LDADD += \
|
ngnutmeg_LDADD += \
|
||||||
frontend/help/libhlp.la
|
frontend/help/libhlp.la
|
||||||
|
|
@ -277,6 +280,7 @@ ngmakeidx_SOURCES = makeidx.c
|
||||||
ngspice.idx: ngmakeidx$(EXEEXT) $(srcdir)/ngspice.txt
|
ngspice.idx: ngmakeidx$(EXEEXT) $(srcdir)/ngspice.txt
|
||||||
./ngmakeidx$(EXEEXT) -o ngspice.idx $(srcdir)/ngspice.txt
|
./ngmakeidx$(EXEEXT) -o ngspice.idx $(srcdir)/ngspice.txt
|
||||||
|
|
||||||
|
endif !SHWIN
|
||||||
endif !WINGUI
|
endif !WINGUI
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -435,7 +439,115 @@ pkgIndex.tcl : Makefile
|
||||||
|
|
||||||
pkgIndex.tcl: $(srcdir)/pkgIndex.tcl.in
|
pkgIndex.tcl: $(srcdir)/pkgIndex.tcl.in
|
||||||
|
|
||||||
|
EXTRA_DIST += spice.def
|
||||||
|
|
||||||
endif TCL_MODULE
|
endif TCL_MODULE
|
||||||
|
|
||||||
EXTRA_DIST += spice.def
|
|
||||||
|
|
||||||
|
## ngspice as shared module:
|
||||||
|
|
||||||
|
if SHARED_MODULE
|
||||||
|
lib_LTLIBRARIES = libngspice.la
|
||||||
|
|
||||||
|
if SHWIN
|
||||||
|
LIBS += -lpsapi
|
||||||
|
endif
|
||||||
|
|
||||||
|
libngspice_la_SOURCES = \
|
||||||
|
main.c \
|
||||||
|
conf.c \
|
||||||
|
conf.h \
|
||||||
|
ngspice.c \
|
||||||
|
sharedspice.c
|
||||||
|
|
||||||
|
libngspice_la_CPPFLAGS = $(AM_CPPFLAGS) -DSIMULATOR \
|
||||||
|
-DSHAREDSPICE_version="\"$(SHAREDSPICE_VERSION)\""
|
||||||
|
|
||||||
|
libngspice_la_LIBADD = \
|
||||||
|
@X_LIBS@ \
|
||||||
|
frontend/libfte.la
|
||||||
|
|
||||||
|
libngspice_la_LIBADD += \
|
||||||
|
frontend/plotting/libplotting.la
|
||||||
|
|
||||||
|
if XSPICE_WANTED
|
||||||
|
libngspice_la_LIBADD += \
|
||||||
|
xspice/cm/libcmxsp.la \
|
||||||
|
xspice/mif/libmifxsp.la
|
||||||
|
endif
|
||||||
|
|
||||||
|
libngspice_la_LIBADD += \
|
||||||
|
$(DYNAMIC_DEVICELIBS)
|
||||||
|
|
||||||
|
if NDEV_WANTED
|
||||||
|
libngspice_la_LIBADD += \
|
||||||
|
spicelib/devices/ndev/libndev.la
|
||||||
|
endif
|
||||||
|
|
||||||
|
if NUMDEV_WANTED
|
||||||
|
libngspice_la_LIBADD += \
|
||||||
|
spicelib/devices/nbjt/libnbjt.la \
|
||||||
|
spicelib/devices/nbjt2/libnbjt2.la \
|
||||||
|
spicelib/devices/numd/libnumd.la \
|
||||||
|
spicelib/devices/numd2/libnumd2.la \
|
||||||
|
spicelib/devices/numos/libnumos.la
|
||||||
|
endif
|
||||||
|
|
||||||
|
libngspice_la_LIBADD += \
|
||||||
|
spicelib/analysis/libckt.la \
|
||||||
|
spicelib/devices/libdev.la
|
||||||
|
|
||||||
|
if XSPICE_WANTED
|
||||||
|
libngspice_la_LIBADD += \
|
||||||
|
xspice/evt/libevtxsp.la \
|
||||||
|
xspice/enh/libenhxsp.la \
|
||||||
|
xspice/ipc/libipcxsp.la \
|
||||||
|
xspice/idn/libidnxsp.la \
|
||||||
|
@XSPICEDLLIBS@
|
||||||
|
endif
|
||||||
|
|
||||||
|
libngspice_la_LIBADD += \
|
||||||
|
frontend/parser/libparser.la \
|
||||||
|
frontend/numparam/libnumparam.la \
|
||||||
|
frontend/trannoise/libtrannoise.la \
|
||||||
|
spicelib/parser/libinp.la
|
||||||
|
|
||||||
|
if CIDER_WANTED
|
||||||
|
libngspice_la_LIBADD += \
|
||||||
|
ciderlib/twod/libcidertwod.la \
|
||||||
|
ciderlib/oned/libcideroned.la \
|
||||||
|
ciderlib/input/libciderinput.la \
|
||||||
|
ciderlib/support/libcidersuprt.la
|
||||||
|
endif
|
||||||
|
|
||||||
|
libngspice_la_LIBADD += \
|
||||||
|
maths/deriv/libderiv.la \
|
||||||
|
maths/cmaths/libcmaths.la \
|
||||||
|
maths/misc/libmathmisc.la \
|
||||||
|
maths/fft/libmathfft.la \
|
||||||
|
maths/poly/libpoly.la \
|
||||||
|
maths/ni/libni.la \
|
||||||
|
maths/sparse/libsparse.la \
|
||||||
|
misc/libmisc.la \
|
||||||
|
$(LIBS) \
|
||||||
|
$(OPENMP_CFLAGS)
|
||||||
|
|
||||||
|
libngspice_la_CFLAGS = -shared
|
||||||
|
|
||||||
|
libngspice_la_LDFLAGS = -shared
|
||||||
|
|
||||||
|
if SHWIN
|
||||||
|
libngspice_la_LDFLAGS += -Wl,--output-def=ngspice.def -Wl,--out-implib=ngspice.dll.a
|
||||||
|
libngspice_la_LDFLAGS += -no-undefined
|
||||||
|
EXTRA_DIST += ngspice.def
|
||||||
|
endif
|
||||||
|
if SHCYG
|
||||||
|
libngspice_la_LDFLAGS += -Wl,--output-def=ngspice.def -Wl,--out-implib=ngspice.dll.a
|
||||||
|
libngspice_la_LDFLAGS += -no-undefined
|
||||||
|
EXTRA_DIST += ngspice.def
|
||||||
|
endif
|
||||||
|
|
||||||
|
SHAREDSPICE_VERSION = @VERSION@
|
||||||
|
|
||||||
|
endif SHARED_MODULE
|
||||||
|
|
|
||||||
|
|
@ -103,6 +103,7 @@ include_HEADERS = \
|
||||||
sen2defs.h \
|
sen2defs.h \
|
||||||
sensdefs.h \
|
sensdefs.h \
|
||||||
sensgen.h \
|
sensgen.h \
|
||||||
|
sharedspice.h \
|
||||||
sim.h \
|
sim.h \
|
||||||
smpdefs.h \
|
smpdefs.h \
|
||||||
sperror.h \
|
sperror.h \
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue