conditional compilation CLUSTER
This commit is contained in:
parent
6f2038bbb4
commit
1a5da55280
|
|
@ -935,6 +935,7 @@ if test "x$enable_cluster" = xyes; then
|
||||||
AC_DEFINE([CLUSTER], [], [Spice cluster support])
|
AC_DEFINE([CLUSTER], [], [Spice cluster support])
|
||||||
LIBS="$LIBS -lpthread"
|
LIBS="$LIBS -lpthread"
|
||||||
fi
|
fi
|
||||||
|
AM_CONDITIONAL([HAVE_CLUSTER_WANTED], [test "x$enable_cluster" = xyes])
|
||||||
|
|
||||||
if test "x$enable_expdevices" = xyes; then
|
if test "x$enable_expdevices" = xyes; then
|
||||||
AC_DEFINE([EXP_DEV], [], [Define if we want to enable experimental devices])
|
AC_DEFINE([EXP_DEV], [], [Define if we want to enable experimental devices])
|
||||||
|
|
|
||||||
|
|
@ -94,8 +94,12 @@ libckt_la_SOURCES = \
|
||||||
tfsetp.c \
|
tfsetp.c \
|
||||||
tranaskq.c \
|
tranaskq.c \
|
||||||
traninit.c \
|
traninit.c \
|
||||||
transetp.c \
|
transetp.c
|
||||||
cluster.c
|
|
||||||
|
|
||||||
|
if HAVE_CLUSTER_WANTED
|
||||||
|
libckt_la_SOURCES += cluster.c
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
if PSS_WANTED
|
if PSS_WANTED
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,5 @@
|
||||||
/* Spice hooks */
|
/* Spice hooks */
|
||||||
#include "ngspice/ngspice.h"
|
#include "ngspice/ngspice.h"
|
||||||
#ifdef CLUSTER
|
|
||||||
#include "ngspice/inpdefs.h"
|
#include "ngspice/inpdefs.h"
|
||||||
#include "ngspice/cluster.h"
|
#include "ngspice/cluster.h"
|
||||||
#include "ngspice/cktdefs.h"
|
#include "ngspice/cktdefs.h"
|
||||||
|
|
@ -423,4 +422,3 @@ int CLUsync(double time,double *delta, int error){
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue