#!/bin/sh

cd ..

dir=`pwd`

export CC=gcc
export CXX=g++

export LANG=C

export CXXFLAGS="-g -pg -fno-inline -fno-omit-frame-pointer"

autoreconf -i
./configure --prefix=$dir/run \
--datadir=$dir/run/share/games \
--bindir=$dir/run/bin \
--mandir=$dir/run/share/man

cd po
make -j8 update-gmo 2>../build/make1.log
cd ..
make -j8 2>build/make2.log