diff options
author | Benjamin Dobell <benjamin.dobell+github@glassechidna.com.au> | 2010-12-04 14:25:04 +0100 |
---|---|---|
committer | Benjamin Dobell <benjamin.dobell+github@glassechidna.com.au> | 2010-12-04 14:25:04 +0100 |
commit | 46f2c1134d276944fb74584a61d90cc363aee7eb (patch) | |
tree | 6fa14b7ef509a3fb84305dec013dd24bcae6c17d /libusb-1.0/_bm.sh | |
parent | Addresses: (diff) | |
download | Heimdall-46f2c1134d276944fb74584a61d90cc363aee7eb.tar Heimdall-46f2c1134d276944fb74584a61d90cc363aee7eb.tar.gz Heimdall-46f2c1134d276944fb74584a61d90cc363aee7eb.tar.bz2 Heimdall-46f2c1134d276944fb74584a61d90cc363aee7eb.tar.lz Heimdall-46f2c1134d276944fb74584a61d90cc363aee7eb.tar.xz Heimdall-46f2c1134d276944fb74584a61d90cc363aee7eb.tar.zst Heimdall-46f2c1134d276944fb74584a61d90cc363aee7eb.zip |
Diffstat (limited to '')
-rw-r--r-- | libusb-1.0/_bm.sh | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/libusb-1.0/_bm.sh b/libusb-1.0/_bm.sh new file mode 100644 index 0000000..346d58e --- /dev/null +++ b/libusb-1.0/_bm.sh @@ -0,0 +1,47 @@ +#!/bin/sh +# produce the MinGW binary files for snapshots +# !!!THIS SCRIPT IS FOR INTERNAL DEVELOPER USE ONLY!!! + +date=`date +%Y.%m.%d` + +# +# 32 bit binaries +# +target=e:/dailies/$date/MinGW32 +git clean -f -d -x +# Not using debug (-g) in CFLAGS DRAMATICALLY reduces the size of the binaries +export CFLAGS="-O2 -m32" +export LDFLAGS="-m32" +export RCFLAGS="--target=pe-i386" +export DLLTOOLFLAGS="-m i386 -f --32" +echo `pwd` +(glibtoolize --version) < /dev/null > /dev/null 2>&1 && LIBTOOLIZE=glibtoolize || LIBTOOLIZE=libtoolize +$LIBTOOLIZE --copy --force || exit 1 +aclocal || exit 1 +autoheader || exit 1 +autoconf || exit 1 +automake -a -c || exit 1 +./configure --enable-toggable-debug +make +mkdir -p $target/static +mkdir -p $target/dll +cp -v libusb/.libs/libusb-1.0.a $target/static +cp -v libusb/.libs/libusb-1.0.dll $target/dll +cp -v libusb/.libs/libusb-1.0.dll.a $target/dll +make clean + +# +# 64 bit binaries +# +target=e:/dailies/$date/MinGW64 +export CFLAGS="-O2" +export LDFLAGS="" +export RCFLAGS="" +export DLLTOOLFLAGS="" +./configure --enable-toggable-debug +make +mkdir -p $target/static +mkdir -p $target/dll +cp -v libusb/.libs/libusb-1.0.a $target/static +cp -v libusb/.libs/libusb-1.0.dll $target/dll +cp -v libusb/.libs/libusb-1.0.dll.a $target/dll
\ No newline at end of file |