Mingw porting.

This commit is contained in:
pnenzi 2005-08-22 21:00:02 +00:00
parent 5bcb23d795
commit 9bb78c2d28
8 changed files with 11 additions and 8 deletions

View File

@ -544,13 +544,19 @@ if test "$enable_xspice" = "yes"; then
AC_PROG_YACC AC_PROG_YACC
AM_PROG_LEX AM_PROG_LEX
XSPICEDIR="xspice" XSPICEDIR="xspice"
case $host_os in
*mingw* | *cygwin* )
DLLIBS="";;
* )
DLLIBS="-ldl";;
esac
XSPICELIB1="$XSPICEDIR/cm/libcmxsp.a \ XSPICELIB1="$XSPICEDIR/cm/libcmxsp.a \
$XSPICEDIR/mif/libmifxsp.a" $XSPICEDIR/mif/libmifxsp.a"
XSPICELIB2="$XSPICEDIR/evt/libevtxsp.a \ XSPICELIB2="$XSPICEDIR/evt/libevtxsp.a \
$XSPICEDIR/enh/libenhxsp.a \ $XSPICEDIR/enh/libenhxsp.a \
$XSPICEDIR/ipc/libipcxsp.a \ $XSPICEDIR/ipc/libipcxsp.a \
$XSPICEDIR/idn/libidnxsp.a \ $XSPICEDIR/idn/libidnxsp.a \
-ldl" $DLLIBS"
XSPICEINIT="" XSPICEINIT=""
XSPICETESTS="" XSPICETESTS=""

View File

@ -15,4 +15,3 @@ square
summer summer
s_xfer s_xfer
triangle triangle

View File

@ -24,4 +24,3 @@ d_tff
d_tristate d_tristate
d_xnor d_xnor
d_xor d_xor

View File

@ -17,7 +17,11 @@ CC = @CC@
INCLUDES = -I$(TOPDIR)$(top_srcdir)/src/include -I$(TOPDIR)$(top_builddir) INCLUDES = -I$(TOPDIR)$(top_srcdir)/src/include -I$(TOPDIR)$(top_builddir)
# CFLAGS to use here # CFLAGS to use here
ifeq "$(strip $(uname))" "MINGW32_NT-5.0"
CFLAGS = @CFLAGS@ -DCM_WINDOWS
else
CFLAGS = @CFLAGS@ -fPIC -DCM_LINUX CFLAGS = @CFLAGS@ -fPIC -DCM_LINUX
endif
# Path to the cmpp utility # Path to the cmpp utility
CMPP = $(TOPDIR)$(top_builddir)/src/xspice/cmpp/cmpp CMPP = $(TOPDIR)$(top_builddir)/src/xspice/cmpp/cmpp

View File

@ -1,2 +1 @@
icm_spice2poly icm_spice2poly

View File

@ -7,4 +7,3 @@ lcouple
lmeter lmeter
potentiometer potentiometer
zener zener

View File

@ -2,5 +2,3 @@ d_to_real
real_delay real_delay
real_gain real_gain
real_to_v real_to_v

View File

@ -1,3 +1,2 @@
int int
real real