#!/bin/bash i686-w64-mingw32-gcc -c MD_Init.c i686-w64-mingw32-gcc -c MD_Printf.c i686-w64-mingw32-gcc -c MD_Getc.c i686-w64-mingw32-gcc -c MD_Sendfile.c i686-w64-mingw32-gcc -c MD_AnsiCons.c i686-w64-mingw32-gcc -shared -o mdoor.dll *.o -lws2_32 -Wl,--out-implib,libmdoor.a rm *.o