compile_shared.sh, updates MINGW, CYGWIN and special MINGW dir KiCad

This commit is contained in:
h_vogt 2017-03-05 18:37:59 +01:00 committed by rlar
parent e9e023480a
commit db8d24da36
1 changed files with 18 additions and 5 deletions

View File

@ -60,18 +60,31 @@ if test "$1" = "64"; then
echo "configuring for 64 bit"
echo
# You may add --enable-adms to the following command for adding adms generated devices
# Set up for MINGW, for LINUX you might want to remove prefix="C:/Spice64"
../configure --with-ngshared --enable-xspice --enable-cider --enable-openmp --disable-debug prefix="C:/Spice64" CFLAGS="-m64 -O2" LDFLAGS="-m64 -s"
# Set up for MINGW
# ../configure --with-ngshared --enable-xspice --enable-cider --enable-openmp --disable-debug prefix="C:/Spice64" CFLAGS="-m64 -O2" LDFLAGS="-m64 -s"
#set up for Linux, CYGWIN
../configure --with-ngshared --enable-xspice --enable-cider --enable-openmp --disable-debug CFLAGS="-m64 -O2" LDFLAGS="-m64 -s"
# special configure for KiCad and MINGW
# ../configure --with-ngshared --enable-xspice --enable-cider --enable-openmp --enable-relpath --disable-debug prefix="C:/Progra~1/KiCad" CFLAGS="-m64 -O2" LDFLAGS="-m64 -s"
# prefix path is used for installing the dll and associated files to C:\Programs\kicad
# --enable-relpath defines the search path for spinit and the code model search path within spinit relativ to the dll
# For the following you have to start MSYS as admin:
# ../configure --with-ngshared --enable-xspice --enable-cider --enable-openmp --disable-debug --enable-relpath prefix="C:/Progra~1/KiCad" CFLAGS="-m64 -O2" LDFLAGS="-m64 -s"
# prefix path is used for assembling the dll, a path with writing permission is required (use forward slashes '/' !).
# Relative paths in prefix are not allowed.
# Installing is done by copying the dll and associated files to the final destination, e.g. C:\Programs\kicad (you will need admin rights).
# The following is o.k. for non-admin users (select a path of your choice where yo have write permission):
# ../configure --with-ngshared --enable-xspice --enable-cider --enable-openmp --enable-relpath --disable-debug prefix="D:/Spice_general/ng-kicad" CFLAGS="-m64 -O2" LDFLAGS="-m64 -s"
else
cd release-sh
if [ $? -ne 0 ]; then echo "cd release-sh failed"; exit 1 ; fi
echo "configuring for 32 bit"
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
# Set up for MINGW, for LINUX you might want to remove prefix="C:/Spice"
../configure --with-ngshared --enable-xspice --enable-cider --enable-openmp --enable-relpath --disable-debug prefix="C:/Spice" CFLAGS="-m32 -O2" LDFLAGS="-m32 -s"
../configure --with-ngshared --enable-xspice --enable-cider --enable-openmp --disable-debug --enable-relpath prefix="C:/Spice" CFLAGS="-m32 -O2" LDFLAGS="-m32 -s"
fi
if [ $? -ne 0 ]; then echo "../configure failed"; exit 1 ; fi