Browse Source

Compile scripts MINGW with options alraedy included

pre-master-46
Holger Vogt 2 years ago
parent
commit
186086618c
  1. 23
      compile_min.sh
  2. 10
      compile_min_shared.sh

23
compile_min.sh

@ -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.
# --disable-debug will give O2 optimization (versus O0 for debug) and removes all debugging info.
# CIDER may be selected at will.
# 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:
# Replace --with-wingui by --with-ngshared in line ../configure ... .
# Add (optionally) --enable-relpath to avoid absolute paths when searching for code models.
# ngspice as console app:
# Install readline, ncurses
# 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

10
compile_min_shared.sh

@ -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.
# --disable-debug will give O2 optimization (versus O0 for debug) and removes all debugging info.
# To obtain a 32 bit executable, replace -m64 by -m32 ./configure lines.
# CIDER may be selected at will.
# XSPICE, KLU, and OpenMP may be deselected, if not required.
# 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

Loading…
Cancel
Save