Add flag verbose for makefile.

This commit is contained in:
talregev 2020-06-09 12:49:44 +03:00 committed by Tal Regev
parent 4afb3086f8
commit 01192590c9
13 changed files with 146 additions and 36 deletions

View File

@ -6,6 +6,7 @@ set -e
#
# Script to compile everything BOINC needs for Android
export VERBOSE=false
cd ../
BUILD_DIR="$PWD/3rdParty/buildCache"
cd android/

View File

@ -38,7 +38,11 @@ if [ -n "$COMPILEBOINC" ]; then
cd "$BOINC"
echo "===== building BOINC for arm from $PWD ====="
if [ -n "$MAKECLEAN" ] && [ -f "Makefile" ]; then
make distclean 1>$STDOUT_TARGET 2>&1
if [ "$VERBOSE" = false ]; then
make distclean --silent
else
make distclean SHELL="/bin/bash -x"
fi
fi
if [ -n "$CONFIGURE" ]; then
./_autosetup
@ -46,8 +50,14 @@ if [ -n "$COMPILEBOINC" ]; then
sed -e "s%^CLIENTLIBS *= *.*$%CLIENTLIBS = -lm $STDCPPTC%g" client/Makefile > client/Makefile.out
mv client/Makefile.out client/Makefile
fi
make --silent
make stage --silent
if [ "$VERBOSE" = false ]; then
make --silent
make stage --silent
else
make SHELL="/bin/bash -x"
make stage SHELL="/bin/bash -x"
fi
echo "Stripping Binaries"
cd stage/usr/local/bin

View File

@ -38,7 +38,11 @@ if [ -n "$COMPILEBOINC" ]; then
cd "$BOINC"
echo "===== building BOINC for arm64 from $PWD ====="
if [ -n "$MAKECLEAN" ] && [ -f "Makefile" ]; then
make distclean 1>$STDOUT_TARGET 2>&1
if [ "$VERBOSE" = false ]; then
make distclean --silent
else
make distclean SHELL="/bin/bash -x"
fi
fi
if [ -n "$CONFIGURE" ]; then
./_autosetup
@ -46,8 +50,13 @@ if [ -n "$COMPILEBOINC" ]; then
sed -e "s%^CLIENTLIBS *= *.*$%CLIENTLIBS = -lm $STDCPPTC%g" client/Makefile > client/Makefile.out
mv client/Makefile.out client/Makefile
fi
make --silent
make stage --silent
if [ "$VERBOSE" = false ]; then
make --silent
make stage --silent
else
make SHELL="/bin/bash -x"
make stage SHELL="/bin/bash -x"
fi
echo "Stripping Binaries"
cd stage/usr/local/bin

View File

@ -38,7 +38,11 @@ if [ -n "$COMPILEBOINC" ]; then
cd "$BOINC"
echo "===== building BOINC for x86 from $PWD ====="
if [ -n "$MAKECLEAN" ] && [ -f "Makefile" ]; then
make distclean 1>$STDOUT_TARGET 2>&1
if [ "$VERBOSE" = false ]; then
make distclean --silent
else
make distclean SHELL="/bin/bash -x"
fi
fi
if [ -n "$CONFIGURE" ]; then
./_autosetup
@ -46,8 +50,13 @@ if [ -n "$COMPILEBOINC" ]; then
sed -e "s%^CLIENTLIBS *= *.*$%CLIENTLIBS = -lm $STDCPPTC%g" client/Makefile > client/Makefile.out
mv client/Makefile.out client/Makefile
fi
make --silent
make stage --silent
if [ "$VERBOSE" = false ]; then
make --silent
make stage --silent
else
make SHELL="/bin/bash -x"
make stage SHELL="/bin/bash -x"
fi
echo "Stripping Binaries"
cd stage/usr/local/bin

View File

@ -38,7 +38,11 @@ if [ -n "$COMPILEBOINC" ]; then
cd "$BOINC"
echo "===== building BOINC for x86-64 from $PWD ====="
if [ -n "$MAKECLEAN" ] && [ -f "Makefile" ]; then
make distclean 1>$STDOUT_TARGET 2>&1
if [ "$VERBOSE" = false ]; then
make distclean --silent
else
make distclean SHELL="/bin/bash -x"
fi
fi
if [ -n "$CONFIGURE" ]; then
./_autosetup
@ -46,8 +50,13 @@ if [ -n "$COMPILEBOINC" ]; then
sed -e "s%^CLIENTLIBS *= *.*$%CLIENTLIBS = -lm $STDCPPTC%g" client/Makefile > client/Makefile.out
mv client/Makefile.out client/Makefile
fi
make --silent
make stage --silent
if [ "$VERBOSE" = false ]; then
make --silent
make stage --silent
else
make SHELL="/bin/bash -x"
make stage SHELL="/bin/bash -x"
fi
echo "Stripping Binaries"
cd stage/usr/local/bin

View File

@ -37,12 +37,21 @@ if [ "$COMPILECURL" = "yes" ]; then
cd "$CURL"
echo "===== building curl for arm from $PWD ====="
if [ -n "$MAKECLEAN" ] && $(grep -q "^distclean:" "${CURL}/Makefile"); then
make distclean 1>$STDOUT_TARGET 2>&1
if [ "$VERBOSE" = false ]; then
make distclean --silent
else
make distclean SHELL="/bin/bash -x"
fi
fi
if [ -n "$CONFIGURE" ]; then
./configure --host=arm-linux --prefix="$TCINCLUDES" --libdir="$TCINCLUDES/lib" --disable-shared --enable-static --with-random=/dev/urandom --without-zlib 1>$STDOUT_TARGET
fi
make 1>$STDOUT_TARGET
make install 1>$STDOUT_TARGET
if [ "$VERBOSE" = false ]; then
make --silent
make install --silent
else
make SHELL="/bin/bash -x"
make install SHELL="/bin/bash -x"
fi
echo "===== curl for arm build done ====="
fi

View File

@ -37,12 +37,21 @@ if [ "$COMPILECURL" = "yes" ]; then
cd "$CURL"
echo "===== building curl for arm64 from $PWD ====="
if [ -n "$MAKECLEAN" ] && $(grep -q "^distclean:" "${CURL}/Makefile"); then
make distclean 1>$STDOUT_TARGET 2>&1
if [ "$VERBOSE" = false ]; then
make distclean --silent
else
make distclean SHELL="/bin/bash -x"
fi
fi
if [ -n "$CONFIGURE" ]; then
./configure --host=aarch64-linux --prefix="$TCINCLUDES" --libdir="$TCINCLUDES/lib" --disable-shared --enable-static --with-random=/dev/urandom 1>$STDOUT_TARGET
fi
make 1>$STDOUT_TARGET
make install 1>$STDOUT_TARGET
if [ "$VERBOSE" = false ]; then
make --silent
make install --silent
else
make SHELL="/bin/bash -x"
make install SHELL="/bin/bash -x"
fi
echo "===== curl for arm64 build done ====="
fi

View File

@ -37,12 +37,21 @@ if [ "$COMPILECURL" = "yes" ]; then
cd "$CURL"
echo "===== building curl for x86 from $PWD ====="
if [ -n "$MAKECLEAN" ] && $(grep -q "^distclean:" "${CURL}/Makefile"); then
make distclean 1>$STDOUT_TARGET 2>&1
if [ "$VERBOSE" = false ]; then
make distclean --silent
else
make distclean SHELL="/bin/bash -x"
fi
fi
if [ -n "$CONFIGURE" ]; then
./configure --host=i686-linux --prefix="$TCINCLUDES" --libdir="$TCINCLUDES/lib" --disable-shared --enable-static --with-random=/dev/urandom 1>$STDOUT_TARGET
fi
make 1>$STDOUT_TARGET
make install 1>$STDOUT_TARGET
if [ "$VERBOSE" = false ]; then
make --silent
make install --silent
else
make SHELL="/bin/bash -x"
make install SHELL="/bin/bash -x"
fi
echo "===== curl for x86 build done ====="
fi

View File

@ -37,12 +37,21 @@ if [ "$COMPILECURL" = "yes" ]; then
cd "$CURL"
echo "===== building curl for x86-64 from $PWD ====="
if [ -n "$MAKECLEAN" ] && $(grep -q "^distclean:" "${CURL}/Makefile"); then
make distclean 1>$STDOUT_TARGET 2>&1
if [ "$VERBOSE" = false ]; then
make distclean --silent
else
make distclean SHELL="/bin/bash -x"
fi
fi
if [ -n "$CONFIGURE" ]; then
./configure --host=x86_64-linux --prefix="$TCINCLUDES" --libdir="$TCINCLUDES/lib" --disable-shared --enable-static --with-random=/dev/urandom 1>$STDOUT_TARGET
fi
make 1>$STDOUT_TARGET
make install 1>$STDOUT_TARGET
if [ "$VERBOSE" = false ]; then
make --silent
make install --silent
else
make SHELL="/bin/bash -x"
make install SHELL="/bin/bash -x"
fi
echo "===== curl for x86-64 build done ====="
fi

View File

@ -37,7 +37,11 @@ if [ "$COMPILEOPENSSL" = "yes" ]; then
cd "$OPENSSL"
echo "===== building openssl for arm from $PWD ====="
if [ -n "$MAKECLEAN" ]; then
make clean 1>$STDOUT_TARGET 2>&1
if [ "$VERBOSE" = false ]; then
make clean --silent
else
make clean SHELL="/bin/bash -x"
fi
fi
if [ -n "$CONFIGURE" ]; then
./Configure linux-generic32 no-shared no-dso -DL_ENDIAN --openssldir="$TCINCLUDES/ssl" 1>$STDOUT_TARGET
@ -46,7 +50,12 @@ if [ "$COMPILEOPENSSL" = "yes" ]; then
s%^INSTALLTOP=.*%INSTALLTOP=$TCINCLUDES%g" Makefile > Makefile.out
mv Makefile.out Makefile
fi
make 1>$STDOUT_TARGET
make install_sw 1>$STDOUT_TARGET
if [ "$VERBOSE" = false ]; then
make --silent
make install_sw --silent
else
make SHELL="/bin/bash -x"
make install_sw SHELL="/bin/bash -x"
fi
echo "===== openssl for arm build done ====="
fi

View File

@ -37,7 +37,11 @@ if [ "$COMPILEOPENSSL" = "yes" ]; then
cd "$OPENSSL"
echo "===== building openssl for arm64 from $PWD ====="
if [ -n "$MAKECLEAN" ]; then
make clean 1>$STDOUT_TARGET 2>&1
if [ "$VERBOSE" = false ]; then
make clean --silent
else
make clean SHELL="/bin/bash -x"
fi
fi
if [ -n "$CONFIGURE" ]; then
./Configure linux-generic32 no-shared no-dso -DL_ENDIAN --openssldir="$TCINCLUDES/ssl" 1>$STDOUT_TARGET
@ -46,7 +50,12 @@ if [ "$COMPILEOPENSSL" = "yes" ]; then
s%^INSTALLTOP=.*%INSTALLTOP=$TCINCLUDES%g" Makefile > Makefile.out
mv Makefile.out Makefile
fi
make 1>$STDOUT_TARGET
make install_sw 1>$STDOUT_TARGET
if [ "$VERBOSE" = false ]; then
make --silent
make install_sw --silent
else
make SHELL="/bin/bash -x"
make install_sw SHELL="/bin/bash -x"
fi
echo "===== openssl for arm64 build done ====="
fi

View File

@ -37,7 +37,11 @@ if [ "$COMPILEOPENSSL" = "yes" ]; then
cd "$OPENSSL"
echo "===== building openssl for x86 from $PWD ====="
if [ -n "$MAKECLEAN" ]; then
make clean 1>$STDOUT_TARGET 2>&1
if [ "$VERBOSE" = false ]; then
make clean --silent
else
make clean SHELL="/bin/bash -x"
fi
fi
if [ -n "$CONFIGURE" ]; then
./Configure linux-generic32 no-shared no-dso -DL_ENDIAN --openssldir="$TCINCLUDES/ssl" 1>$STDOUT_TARGET
@ -46,7 +50,12 @@ if [ "$COMPILEOPENSSL" = "yes" ]; then
s%^INSTALLTOP=.*%INSTALLTOP=$TCINCLUDES%g" Makefile > Makefile.out
mv Makefile.out Makefile
fi
make 1>$STDOUT_TARGET
make install_sw 1>$STDOUT_TARGET
if [ "$VERBOSE" = false ]; then
make --silent
make install_sw --silent
else
make SHELL="/bin/bash -x"
make install_sw SHELL="/bin/bash -x"
fi
echo "===== openssl for x86 build done ====="
fi

View File

@ -37,7 +37,11 @@ if [ "$COMPILEOPENSSL" = "yes" ]; then
cd "$OPENSSL"
echo "===== building openssl for x86-64 from $PWD ====="
if [ -n "$MAKECLEAN" ]; then
make clean 1>$STDOUT_TARGET 2>&1
if [ "$VERBOSE" = false ]; then
make clean --silent
else
make clean SHELL="/bin/bash -x"
fi
fi
if [ -n "$CONFIGURE" ]; then
./Configure linux-x86_64 no-shared no-dso -DL_ENDIAN --openssldir="$TCINCLUDES/ssl" 1>$STDOUT_TARGET
@ -46,7 +50,12 @@ if [ "$COMPILEOPENSSL" = "yes" ]; then
s%^INSTALLTOP=.*%INSTALLTOP=$TCINCLUDES%g" Makefile > Makefile.out
mv Makefile.out Makefile
fi
make 1>$STDOUT_TARGET
make install_sw 1>$STDOUT_TARGET
if [ "$VERBOSE" = false ]; then
make --silent
make install_sw --silent
else
make SHELL="/bin/bash -x"
make install_sw SHELL="/bin/bash -x"
fi
echo "===== openssl for x86-64 build done ====="
fi