#!/bin/bash cd ~ git clone https://github.com/wareck/bfgminer.git cd bfgminer autoreconf -fi CFLAGS="-O2 -msse2" ./configure --host=i686-w64-mingw32.static --disable-shared --enable-scrypt make strip bfgminer.exe