|
@@ -13,13 +13,15 @@ tag="$1"; shift
|
|
|
sw="$1"; shift || true
|
|
sw="$1"; shift || true
|
|
|
[ -n "$sw" ] || sw="$tag"
|
|
[ -n "$sw" ] || sw="$tag"
|
|
|
|
|
|
|
|
|
|
+test -n "$DEBUG_RELEASE" || DEBUG_RELEASE=1
|
|
|
|
|
+
|
|
|
builds=(win32 win64)
|
|
builds=(win32 win64)
|
|
|
|
|
|
|
|
win32_machine='i686-pc-mingw32'
|
|
win32_machine='i686-pc-mingw32'
|
|
|
-win32_CFLAGS='-g -march=i686'
|
|
|
|
|
|
|
+win32_CFLAGS='-march=i686'
|
|
|
|
|
|
|
|
win64_machine='x86_64-w64-mingw32'
|
|
win64_machine='x86_64-w64-mingw32'
|
|
|
-win64_CFLAGS='-g'
|
|
|
|
|
|
|
+win64_CFLAGS=''
|
|
|
|
|
|
|
|
IDIR="$PWD"
|
|
IDIR="$PWD"
|
|
|
OUTDIR="$PWD"
|
|
OUTDIR="$PWD"
|
|
@@ -77,6 +79,9 @@ for build in "${builds[@]}"; do
|
|
|
for v in machine CFLAGS; do
|
|
for v in machine CFLAGS; do
|
|
|
eval "${v}"="'$(eval echo "\${${build}_${v}}")'"
|
|
eval "${v}"="'$(eval echo "\${${build}_${v}}")'"
|
|
|
done
|
|
done
|
|
|
|
|
+ if test "x$DEBUG_RELEASE" = "x1"; then
|
|
|
|
|
+ CFLAGS="${CFLAGS} -g"
|
|
|
|
|
+ fi
|
|
|
libdir="/usr/$machine/usr/bin/$dll"
|
|
libdir="/usr/$machine/usr/bin/$dll"
|
|
|
for dll in $dlls; do
|
|
for dll in $dlls; do
|
|
|
libdir="/usr/$machine/usr/lib"
|
|
libdir="/usr/$machine/usr/lib"
|
|
@@ -104,9 +109,11 @@ for build in "${builds[@]}"; do
|
|
|
--enable-scrypt \
|
|
--enable-scrypt \
|
|
|
--host="$machine"
|
|
--host="$machine"
|
|
|
make $MAKEOPTS
|
|
make $MAKEOPTS
|
|
|
- "$machine"-strip \
|
|
|
|
|
- libblkmaker/.libs/*.dll \
|
|
|
|
|
- *.exe
|
|
|
|
|
|
|
+ if test "x$DEBUG_RELEASE" != "x1"; then
|
|
|
|
|
+ "$machine"-strip \
|
|
|
|
|
+ libblkmaker/.libs/*.dll \
|
|
|
|
|
+ *.exe
|
|
|
|
|
+ fi
|
|
|
cp -v \
|
|
cp -v \
|
|
|
*.exe \
|
|
*.exe \
|
|
|
libblkmaker/.libs/*.dll \
|
|
libblkmaker/.libs/*.dll \
|