Compile scripts MINGW with options alraedy included

This commit is contained in:
Holger Vogt 2024-07-10 18:28:11 +02:00
parent cac21eb164
commit 186086618c
2 changed files with 21 additions and 12 deletions

View File

@ -10,15 +10,18 @@
# './compile_min.sh' for release or './compile_min.sh d' for debug version. # './compile_min.sh' for release or './compile_min.sh d' for debug version.
# Options: # Options:
# CIDER, XSPICE, OpenMP, OSDI, and KLU may be selected at will. # CIDER may be selected at will.
# --disable-debug will give O2 optimization (versus O0 for debug) and removes all debugging info. # XSPICE, OpenMP, OSDI, and KLU may be deselected. if not required.
# --enable-oldapps will make ngnutmeg ngsconvert ngproc2mod ngmultidec ngmakeidx in addition to ngspice # --enable-oldapps will make ngnutmeg ngsconvert ngproc2mod ngmultidec ngmakeidx in addition to ngspice
# ngspice as shared library: # ngspice as console app:
# Replace --with-wingui by --with-ngshared in line ../configure ... . # Install readline, ncurses
# Add (optionally) --enable-relpath to avoid absolute paths when searching for code models. # Remove --with-wingui in line ../configure ... .
# It might be necessary to uncomment and run ./autogen.sh . # It might be necessary to uncomment and run ./autogen.sh .
# ngspice as shared library:
# Use compile_min_shared.sh
SECONDS=0 SECONDS=0
if test "$1" = "d"; then if test "$1" = "d"; then
@ -43,13 +46,19 @@ if test "$1" = "d"; then
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
../configure --with-wingui --enable-xspice --enable-cider --enable-klu --enable-openmp --enable-osdi --enable-predictor prefix="C:/Spice64d" CFLAGS="-g -m64 -O0 -Wall -Wno-unused-but-set-variable" LDFLAGS="-g -m64" # executable with GUI
../configure --with-wingui --enable-cider prefix="C:/Spice64d" CFLAGS="-g -m64 -O0 -Wall -Wno-unused-but-set-variable" LDFLAGS="-g -m64"
# console executable
# ../configure --enable-cider prefix="C:/Spice64d" CFLAGS="-g -m64 -O0 -Wall -Wno-unused-but-set-variable" LDFLAGS="-g -m64"
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
../configure --with-wingui --enable-xspice --enable-cider --enable-klu --enable-openmp --enable-osdi --enable-predictor --disable-debug prefix="C:/Spice64" CFLAGS="-m64 -O2" LDFLAGS="-m64 -s" # executable with GUI
../configure --with-wingui --enable-cider prefix="C:/Spice64" CFLAGS="-m64 -O2" LDFLAGS="-m64 -s"
# console executable
# ../configure --with-wingui=no --enable-cider prefix="C:/Spice64" CFLAGS="-m64 -O2" LDFLAGS="-m64 -s"
fi fi
if [ $? -ne 0 ]; then echo "../configure failed"; exit 1 ; fi if [ $? -ne 0 ]; then echo "../configure failed"; exit 1 ; fi

View File

@ -11,9 +11,9 @@
# Options: # Options:
# Please see http://ngspice.sourceforge.net/admshowto.html for more info on adms. # Please see http://ngspice.sourceforge.net/admshowto.html for more info on adms.
# CIDER, XSPICE, KLU, and OpenMP may be selected at will. # CIDER may be selected at will.
# --disable-debug will give O2 optimization (versus O0 for debug) and removes all debugging info. # XSPICE, KLU, and OpenMP may be deselected, if not required.
# To obtain a 32 bit executable, replace -m64 by -m32 ./configure lines. # To obtain a 32 bit executable, replace -m64 by -m32 ./configure lines (not tested).
# Add (optionally) --enable-relpath to avoid absolute paths when searching for code models. # Add (optionally) --enable-relpath to avoid absolute paths when searching for code models.
# It might be necessary to uncomment and run ./autogen.sh . # It might be necessary to uncomment and run ./autogen.sh .
@ -42,13 +42,13 @@ if test "$1" = "d"; then
if [ $? -ne 0 ]; then echo "cd debug-sh failed"; exit 1 ; fi if [ $? -ne 0 ]; then echo "cd debug-sh failed"; exit 1 ; fi
echo "configuring for 64 bit debug" echo "configuring for 64 bit debug"
echo echo
../configure --with-ngshared --enable-xspice --enable-cider --enable-openmp --enable-osdi --enable-klu --enable-relpath prefix="C:/Spice64d" CFLAGS="-m64 -g -O0 -Wall" LDFLAGS="-m64" ../configure --with-ngshared --enable-cider --enable-relpath prefix="C:/Spice64d" CFLAGS="-m64 -g -O0 -Wall" LDFLAGS="-m64"
else else
cd release-sh cd release-sh
if [ $? -ne 0 ]; then echo "cd release-sh failed"; exit 1 ; fi if [ $? -ne 0 ]; then echo "cd release-sh failed"; exit 1 ; fi
echo "configuring for 64 bit release" echo "configuring for 64 bit release"
echo echo
../configure --with-ngshared --enable-xspice --enable-cider --enable-openmp --enable-osdi --enable-klu --enable-relpath --disable-debug prefix="C:/Spice64" CFLAGS="-m64 -O2" LDFLAGS="-m64 -s" ../configure --with-ngshared --enable-cider --enable-relpath --disable-debug prefix="C:/Spice64" CFLAGS="-m64 -O2" LDFLAGS="-m64 -s"
fi fi
if [ $? -ne 0 ]; then echo "../configure failed"; exit 1 ; fi if [ $? -ne 0 ]; then echo "../configure failed"; exit 1 ; fi