#!/bin/sh
make CC=i686-w64-mingw32-clang CXX=i686-w64-mingw32-clang++ \
     CFLAGS+="-I/usr/i686-w64-mingw32/include \
              -I/usr/local/i586-mingw-msvc/lame-3.100/include  \
              -I/usr/local/i586-mingw-msvc/libx264-158/include  \
              -I/usr/local/i586-mingw-msvc/libvorbis/include  \
              -I/usr/local/i586-mingw-msvc/libogg/include  \
	      -stdlib=libc++" \
     CXXFLAGS+="-stdlib=libc++ \
               -L/usr/local/i586-mingw-msvc/lame-3.100/lib  \
               -L/usr/local/i586-mingw-msvc/libx264-158/lib  \
               -L/usr/local/i586-mingw-msvc/libvorbis/lib  \
               -L/usr/local/i586-mingw-msvc/libogg/lib  \
               -L/usr/i686-w64-mingw32/lib" $@