xref: /aosp_15_r20/external/mtools/buildMingw.sh (revision d5c9a868b113e0ec0db2f27bc2ce8a253e77c4b0)
1*d5c9a868SElliott Hughes#!/bin/sh
2*d5c9a868SElliott Hughes
3*d5c9a868SElliott Hughes# Build Mingw (Windows) executable
4*d5c9a868SElliott Hughes#
5*d5c9a868SElliott Hughes# For this you meed the mingw cross-compiler to be installed
6*d5c9a868SElliott Hughes#
7*d5c9a868SElliott Hughes# You may download the RPMs from http://mirzam.it.vu.nl/mingw/
8*d5c9a868SElliott Hughes# All 4 RPM's are needed:
9*d5c9a868SElliott Hughes#  mingw-binutils
10*d5c9a868SElliott Hughes#  mingw-gcc-core
11*d5c9a868SElliott Hughes#  mingw-runtime
12*d5c9a868SElliott Hughes#  mingw-w32api
13*d5c9a868SElliott Hughes
14*d5c9a868SElliott Hughesdir=`dirname $0`
15*d5c9a868SElliott Hughes$dir/configure --srcdir $dir  --host i586-mingw32msvc --disable-floppyd
16*d5c9a868SElliott Hughesmake
17*d5c9a868SElliott Hughesmv mtools mtools.exe
18