3 ## -- Command line options
4 while [[ "$#" -gt 1 ]]; do
22 ## -- Check command line options
23 if [ -z "$prefix" ] ; then
24 (>&2 echo "Usage: $0 -prefix [dir] [-cores [n]]")
28 ## -- Complete optional parameters
29 if [ -z "$cores" ] ; then
36 git clone https://github.com/mxe/mxe.git
38 ## -- Create settings.mk
40 echo "MXE_TARGETS := x86_64-w64-mingw32.shared" > settings.mk
43 patch -s -p1 < $curr_dir/mxe.patch
46 make -j$cores -k qtbase vtk itk nsis