From 3d931d2ffba848f4fb5ebda665301b1b67d0c0bc Mon Sep 17 00:00:00 2001 From: h_vogt Date: Mon, 20 Apr 2009 20:53:10 +0000 Subject: [PATCH] support for MINGW tclspice added --- src/Makefile.am | 7 ++++++- src/spice.def | 5 +++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 src/spice.def diff --git a/src/Makefile.am b/src/Makefile.am index a3d590e81..f7c86ed71 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -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 diff --git a/src/spice.def b/src/spice.def new file mode 100644 index 000000000..89384111d --- /dev/null +++ b/src/spice.def @@ -0,0 +1,5 @@ +LIBRARY spice +DESCRIPTION "tclspice" +EXPORTS + _Spice_Init + \ No newline at end of file