support for MINGW tclspice added

This commit is contained in:
h_vogt 2009-04-20 20:53:10 +00:00
parent 3a17600e1d
commit 3d931d2ffb
2 changed files with 11 additions and 1 deletions

View File

@ -243,6 +243,10 @@ install: install-libLTLIBRARIES install-tcl-recursive install-tclspice install-d
EXTRA_DIST += tclspice.c
initdata_DATA += tclspinit
if TCLWIN
LIBS += -lpsapi -ltcl84 -lBLT24.dll
endif
libspice_la_SOURCES =
libspice_la_LIBADD = ngspice.lo conf.lo \
spice.lo \
@ -269,8 +273,9 @@ libspice_la_LIBADD = ngspice.lo conf.lo \
tclspice.lo $(LIBS)
libspice_la_CFLAGS = $(AM_CFLAGS)
libspice_la_LDFLAGS = -shared -Wl,--version-script=tclspice.map
if WINDOWS
if TCLWIN
libspice_la_LDFLAGS += -no-undefined
libspice_la_LDFLAGS += --def spice.def @TCL_LIB_SPEC@
endif
CLEANFILES = pkgIndex.tcl libspice.so

5
src/spice.def Normal file
View File

@ -0,0 +1,5 @@
LIBRARY spice
DESCRIPTION "tclspice"
EXPORTS
_Spice_Init