#!/bin/sh.exe

# --- configure
../configure --with-gcc --with-gnu-ld --with-gnu-as --host=mingw32 --target=mingw32 --prefix=/mingw --enable-threads --disable-nls --enable-languages=pascal --disable-win32-registry --disable-shared --enable-sjlj-exceptions --without-x --enable-interpreter --enable-hash-synchronization --without-newlib

# --- build
make "CFLAGS=-s -O2 -march=i486 -mcpu=i686" "LDFLAGS=-s -Wl,--stack=0x00800000" 

# --- install
# cd gcc
# make "CFLAGS=-s -O2 -march=i486 -mcpu=i686" "LDFLAGS=-s -Wl,--stack=0x00800000" pascal.install

# --- prepare for distribution
# make "CFLAGS=-s -O2 -march=i486 -mcpu=i686" "LDFLAGS=-s -Wl,--stack=0x00800000" pascal.bindist

# --- move to TEMP
# mv *.gz /e/temp
# cd ..

