diff --git a/src/spicelib/devices/bsim3v32/Makefile.am b/src/spicelib/devices/bsim3v32/Makefile.am index 3b4b5ca1d..22cb60a0b 100644 --- a/src/spicelib/devices/bsim3v32/Makefile.am +++ b/src/spicelib/devices/bsim3v32/Makefile.am @@ -2,6 +2,7 @@ noinst_LTLIBRARIES = libbsim3v32.la + libbsim3v32_la_SOURCES = \ b3v32.c \ b3v32acld.c \ @@ -24,17 +25,21 @@ libbsim3v32_la_SOURCES = \ bsim3v32ext.h \ bsim3v32init.c \ bsim3v32init.h \ - bsim3v32itf.h \ + bsim3v32itf.h + +if WANT_MODSIMD +libbsim3v32_la_SOURCES += \ b3v32ldseq.c \ b3v32ldsel.c \ - b3v32ldsimd.c \ - vec4_exp.c \ - vec4_log.c + b3v32ldsimd.c +endif - -AM_CPPFLAGS = @AM_CPPFLAGS@ -I$(top_srcdir)/src/include -DBSIM3v32SIMD -AM_CFLAGS = $(STATIC) -Wall -fno-math-errno -ffast-math +AM_CPPFLAGS = @AM_CPPFLAGS@ -I$(top_srcdir)/src/include +AM_CFLAGS = $(STATIC) +if WANT_MODSIMD +AM_CFLAGS += -fno-math-errno -ffast-math -fopenmp-simd +endif MAINTAINERCLEANFILES = Makefile.in diff --git a/src/spicelib/devices/bsim3v32/bsim3v32ext.h b/src/spicelib/devices/bsim3v32/bsim3v32ext.h index a27ddaed4..b3525efdd 100644 --- a/src/spicelib/devices/bsim3v32/bsim3v32ext.h +++ b/src/spicelib/devices/bsim3v32/bsim3v32ext.h @@ -28,9 +28,6 @@ extern int BSIM3v32trunc(GENmodel*,CKTcircuit*,double*); extern int BSIM3v32noise(int,int,GENmodel*,CKTcircuit*,Ndata*,double*); extern int BSIM3v32unsetup(GENmodel*,CKTcircuit*); extern int BSIM3v32soaCheck(CKTcircuit *, GENmodel *); -#ifndef BSIM3v32SIMD -#define BSIM3v32SIMD -#endif #ifdef BSIM3v32SIMD extern int BSIM3v32loadSel(GENmodel*,CKTcircuit*); #endif