|
|
@ -8,11 +8,7 @@ |
|
|
# Declare 'compile_linux.sh' executable and start compiling with |
|
|
# Declare 'compile_linux.sh' executable and start compiling with |
|
|
# './compile_macos.sh' or './compile_macos.sh d' from the ngspice directory. |
|
|
# './compile_macos.sh' or './compile_macos.sh d' from the ngspice directory. |
|
|
# Options: |
|
|
# Options: |
|
|
# --adms and --enable-adms will install extra HICUM, EKV and MEXTRAM models via the |
|
|
|
|
|
# adms interface. You need to download and install the *.va files via ng-adms-va.tgz |
|
|
|
|
|
# Please see the ngspice manual, chapt. 13, for more info on adms. |
|
|
|
|
|
# CIDER, XSPICE, and OpenMP may be selected at will. |
|
|
# CIDER, XSPICE, and OpenMP may be selected at will. |
|
|
# --disable-debug will give O2 optimization (versus O0 for debug) and removes all debugging info. |
|
|
|
|
|
|
|
|
|
|
|
# ngspice as shared library: |
|
|
# ngspice as shared library: |
|
|
# Replace --with-x by --with-ngshared in line ../configure ... . |
|
|
# Replace --with-x by --with-ngshared in line ../configure ... . |
|
|
@ -37,29 +33,21 @@ fi |
|
|
./autogen.sh |
|
|
./autogen.sh |
|
|
if [ $? -ne 0 ]; then echo "./autogen.sh failed"; exit 1 ; fi |
|
|
if [ $? -ne 0 ]; then echo "./autogen.sh failed"; exit 1 ; fi |
|
|
|
|
|
|
|
|
# Alternatively, if compiling sources from git, and want to add adms created devices, |
|
|
|
|
|
# you may need to uncomment the following two lines (and don't forget to add adms option |
|
|
|
|
|
# to the ../configure statement): |
|
|
|
|
|
#./autogen.sh --adms |
|
|
|
|
|
#if [ $? -ne 0 ]; then echo "./autogen.sh failed"; exit 1 ; fi |
|
|
|
|
|
|
|
|
|
|
|
echo |
|
|
echo |
|
|
if test "$1" = "d"; then |
|
|
if test "$1" = "d"; then |
|
|
cd debug |
|
|
cd debug |
|
|
if [ $? -ne 0 ]; then echo "cd debug failed"; exit 1 ; fi |
|
|
if [ $? -ne 0 ]; then echo "cd debug failed"; exit 1 ; fi |
|
|
echo "configuring for 64 bit debug" |
|
|
echo "configuring for 64 bit debug" |
|
|
echo |
|
|
echo |
|
|
# You may add --enable-adms to the following command for adding adms generated devices |
|
|
|
|
|
# Builtin readline is not compatible (Big Sur), readline via Homebrew required (in /usr/local/opt) |
|
|
# Builtin readline is not compatible (Big Sur), readline via Homebrew required (in /usr/local/opt) |
|
|
# Standard clang does not support OpenMP |
|
|
# Standard clang does not support OpenMP |
|
|
../configure --with-x --enable-xspice --enable-cider --enable-predictor --enable-osdi --enable-klu --with-readline=/usr/local/opt/readline CFLAGS="-m64 -O0 -g -Wall -I/opt/X11/include/freetype2 -I/usr/local/opt/readline/include" LDFLAGS="-m64 -g -L/usr/local/opt/readline/lib -L/opt/X11/lib" |
|
|
|
|
|
|
|
|
../configure --with-x --enable-cider --with-readline=/usr/local/opt/readline CFLAGS="-m64 -O0 -g -Wall -I/opt/X11/include/freetype2 -I/usr/local/opt/readline/include" LDFLAGS="-m64 -g -L/usr/local/opt/readline/lib -L/opt/X11/lib" |
|
|
else |
|
|
else |
|
|
cd release |
|
|
cd release |
|
|
if [ $? -ne 0 ]; then echo "cd release failed"; exit 1 ; fi |
|
|
if [ $? -ne 0 ]; then echo "cd release failed"; exit 1 ; fi |
|
|
echo "configuring for 64 bit release" |
|
|
echo "configuring for 64 bit release" |
|
|
echo |
|
|
echo |
|
|
# You may add --enable-adms to the following command for adding adms generated devices |
|
|
|
|
|
../configure --with-x --enable-xspice --enable-cider --enable-predictor --enable-osdi --enable-klu --with-readline=/usr/local/opt/readline --disable-debug CFLAGS="-m64 -O2 -I/opt/X11/include/freetype2 -I/usr/local/opt/readline/include -I/usr/local/opt/ncurses/include" LDFLAGS="-m64 -L/usr/local/opt/readline/lib -L/usr/local/opt/ncurses/lib -L/opt/X11/lib" |
|
|
|
|
|
|
|
|
../configure --with-x --enable-cider --with-readline=/usr/local/opt/readline CFLAGS="-m64 -O2 -I/opt/X11/include/freetype2 -I/usr/local/opt/readline/include -I/usr/local/opt/ncurses/include" LDFLAGS="-m64 -L/usr/local/opt/readline/lib -L/usr/local/opt/ncurses/lib -L/opt/X11/lib" |
|
|
fi |
|
|
fi |
|
|
if [ $? -ne 0 ]; then echo "../configure failed"; exit 1 ; fi |
|
|
if [ $? -ne 0 ]; then echo "../configure failed"; exit 1 ; fi |
|
|
|
|
|
|
|
|
|