Skip to content

Commit

Permalink
Changes to compile with xspice
Browse files Browse the repository at this point in the history
  • Loading branch information
Alberto-o committed Nov 15, 2024
1 parent b086b85 commit 3010b8d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 12 deletions.
9 changes: 5 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,12 @@ add_library(ngspice-maths
"./src/maths/KLU/colamd_global.c"
)
target_include_directories(ngspice-maths PUBLIC
"./src/maths/poly"
"./src/maths/KLU"
"./src/include/ngspice"
"./src/maths/poly/"
"./src/include/ngspice/"
)



add_library(ngspice-xspice
"./src/xspice/enh/enh.c"
"./src/xspice/enh/enhtrans.c"
Expand Down Expand Up @@ -1484,6 +1485,7 @@ target_include_directories(ngspice-spicelib PUBLIC

# -------- Shared spice -----
# target_link_libraries(ngspice-spicelib ngspice-maths)

target_link_libraries(ngspice-spicelib ngspice-maths ngspice-xspice)
add_library(ngspice
# "./src/nghelp.c"
Expand All @@ -1498,7 +1500,6 @@ target_link_libraries(ngspice ngspice-spicelib)
# )
# target_link_libraries(ngspice_main ngspice-spicelib)


# ------- Tests
if (NGSPICE_ENABLE_TESTS)
# TODO
Expand Down
12 changes: 6 additions & 6 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -4297,7 +4297,7 @@ kept only for historical reasons.
* src/include/ngspice/cidersupt.h,
* src/include/ngspice/cluster.h,
* src/include/ngspice/compatmode.h,
* src/include/ngspice/complex.h,
* src/include/ngspice/ngcomplex.h,
* src/include/ngspice/cpstd.h,
* src/include/ngspice/defines.h,
* src/include/ngspice/dllitf.h,
Expand Down Expand Up @@ -4328,7 +4328,7 @@ kept only for historical reasons.

2013-01-22 rlar <rlar>
* src/frontend/com_measure2.h,
* src/include/ngspice/complex.h,
* src/include/ngspice/ngcomplex.h,
* src/include/ngspice/cpstd.h,
* src/include/ngspice/defines.h,
* src/include/ngspice/fteinput.h,
Expand Down Expand Up @@ -9899,7 +9899,7 @@ kept only for historical reasons.
polish make maintainer-clean, make mrproper

2012-02-07 Robert Larice
* src/include/ngspice/complex.h :
* src/include/ngspice/ngcomplex.h :
#4/4 finish the switch from ngcomplex* args to ngcomplex

2012-02-07 Robert Larice
Expand All @@ -9922,7 +9922,7 @@ kept only for historical reasons.
* src/frontend/plotting/plotcurv.c ,
* src/frontend/plotting/plotit.c ,
* src/frontend/plotting/xgraph.c ,
* src/include/ngspice/complex.h ,
* src/include/ngspice/ngcomplex.h ,
* src/maths/cmaths/cmath1.c ,
* src/maths/cmaths/cmath2.c ,
* src/maths/cmaths/cmath3.c ,
Expand All @@ -9935,15 +9935,15 @@ kept only for historical reasons.

2012-02-07 Robert Larice
* src/frontend/diff.c ,
* src/include/ngspice/complex.h ,
* src/include/ngspice/ngcomplex.h ,
* src/maths/cmaths/cmath1.c ,
* src/maths/cmaths/cmath2.c ,
* src/maths/cmaths/cmath3.c ,
* src/maths/cmaths/cmath4.c :
#2/4 switch cph() and cmag() args from ngcomplex* to ngcomplex

2012-02-07 Robert Larice
* src/include/ngspice/complex.h :
* src/include/ngspice/ngcomplex.h :
#1/4 drop cast (enable compiler type check)

2012-02-07 Holger Vogt / Robert Larice
Expand Down
4 changes: 2 additions & 2 deletions src/include/ngspice/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/* #undef CAPBYPASS */

/* The CIDER enhancements */
// #define CIDER 1
#define CIDER 1

/* Define to 1 if the `closedir' function returns void instead of int. */
/* #undef CLOSEDIR_VOID */
Expand Down Expand Up @@ -442,7 +442,7 @@
#define IPC_UNIX_SOCKETS 1

/* Define if we want KLU linear systems solver */
// #define KLU /**/
#define KLU 1

/* Define to the sub-directory where libtool stores uninstalled libraries. */
#define LT_OBJDIR ".libs/"
Expand Down

0 comments on commit 3010b8d

Please sign in to comment.