Enable 64 bit release and debug compilation
32 bit compilation has to be enabled manually.
This commit is contained in:
parent
38f7bf31ef
commit
beb27f27a6
|
|
@ -1,16 +1,13 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# ngspice build script for MINGW-w64, release version, 32 or 64 bit
|
# ngspice build script for MINGW-w64, release or debug version, 64 bit
|
||||||
# compile_min.sh
|
# compile_min.sh
|
||||||
|
|
||||||
#Procedure:
|
#Procedure:
|
||||||
# Install MSYS, plus bison, flex, auto tools, perl, libiconv, libintl
|
# Install MSYS2, plus gcc 64 bit, libtool, autoconf, automake, bison, git, and make
|
||||||
# Install MINGW-w64, activate OpenMP support
|
# See either https://github.com/orlp/dev-on-windows/wiki/Installing-GCC--&-MSYS2
|
||||||
# See either http://mingw-w64.sourceforge.net/ or http://tdm-gcc.tdragon.net/
|
|
||||||
# (allows to generate either 32 or 64 bit executables by setting flag -m32 or -m64)
|
# (allows to generate either 32 or 64 bit executables by setting flag -m32 or -m64)
|
||||||
# set path to compiler in msys/xx/etc/fstab (e.g. c:/MinGW64 /mingw)
|
|
||||||
# start compiling with
|
# start compiling with
|
||||||
# './compile_min.sh 32' or './compile_min.sh'
|
# './compile_min.sh' for release or './compile_min.sh d' for debug version.
|
||||||
# As an (more recent) alternative install MSYS2 and the tools cited above.
|
|
||||||
|
|
||||||
# Options:
|
# Options:
|
||||||
# --adms and --enable-adms will install extra HICUM, EKV and MEXTRAM models via the
|
# --adms and --enable-adms will install extra HICUM, EKV and MEXTRAM models via the
|
||||||
|
|
@ -27,10 +24,10 @@
|
||||||
|
|
||||||
SECONDS=0
|
SECONDS=0
|
||||||
|
|
||||||
if test "$1" = "32"; then
|
if test "$1" = "d"; then
|
||||||
if [ ! -d "release32" ]; then
|
if [ ! -d "debug" ]; then
|
||||||
mkdir release32
|
mkdir debug
|
||||||
if [ $? -ne 0 ]; then echo "mkdir release32 failed"; exit 1 ; fi
|
if [ $? -ne 0 ]; then echo "mkdir debug failed"; exit 1 ; fi
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
if [ ! -d "release" ]; then
|
if [ ! -d "release" ]; then
|
||||||
|
|
@ -50,20 +47,20 @@ if [ $? -ne 0 ]; then echo "./autogen.sh failed"; exit 1 ; fi
|
||||||
#if [ $? -ne 0 ]; then echo "./autogen.sh failed"; exit 1 ; fi
|
#if [ $? -ne 0 ]; then echo "./autogen.sh failed"; exit 1 ; fi
|
||||||
|
|
||||||
echo
|
echo
|
||||||
if test "$1" = "32"; then
|
if test "$1" = "d"; then
|
||||||
cd release32
|
cd debug
|
||||||
if [ $? -ne 0 ]; then echo "cd release32 failed"; exit 1 ; fi
|
if [ $? -ne 0 ]; then echo "cd debug failed"; exit 1 ; fi
|
||||||
echo "configuring for 32 bit"
|
echo "configuring for 64 bit debug"
|
||||||
echo
|
echo
|
||||||
# You may add --enable-adms to the following command for adding adms generated devices
|
# You may add --enable-adms to the following command for adding adms generated devices
|
||||||
../configure --with-wingui --enable-xspice --enable-cider --enable-openmp --disable-debug prefix="C:/Spice" CFLAGS="-D__USE_MINGW_ANSI_STDIO=1 -m32 -O2" LDFLAGS="-m32 -s"
|
../configure --with-wingui --enable-xspice --enable-cider --enable-openmp 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"
|
echo "configuring for 64 bit release"
|
||||||
echo
|
echo
|
||||||
# You may add --enable-adms to the following command for adding adms generated devices
|
# You may add --enable-adms to the following command for adding adms generated devices
|
||||||
../configure --with-wingui --enable-xspice --enable-cider --enable-openmp --disable-debug prefix="C:/Spice64" CFLAGS="-D__USE_MINGW_ANSI_STDIO=1 -m64 -O2" LDFLAGS="-m64 -s"
|
../configure --with-wingui --enable-xspice --enable-cider --enable-openmp --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…
Reference in New Issue