Build notes:

Add --disable-ysse2 to configure if building for a target with SSE2 (SSE2
doesn't work in Phrot).

GCC 3.4 produces a faster executable than GCC 4.x.

The 32-bit executable is twice as fast as the 64-bit executable!


Build YEAFFT for Linux:

tar xzf glucas-2.9.2-20080916.tar.gz
cd glucas-2.9.2-20080916
./configure --enable-ybuild_yeafft --enable-ydefines_file --build=pentium3-linux CC="gcc -V3.4"
make
cd ..


Build phrot for Linux:

unzip phrot_069.zip
patch -p0 < phrot-patch.txt
cd phrot
make clean
make CC="gcc -V3.4 -s"
mv phrot.p3 ../phrot.p3-linux
make CC="gcc -V3.4 -s -static"
mv phrot.p3 ../phrot.p3-linux.static
cd ..


Build YEAFFT for Windows:

cd glucas-2.9.2-20080916
make clean
make CC=i586-mingw32msvc-gcc AR=i586-mingw32msvc-ar RANLIB=i586-mingw32msvc-ranlib
cd ..


Build phrot for Windows:

cd phrot
make CC="i586-mingw32msvc-gcc -s"
mv phrot.p3 ../phrot.p3-mingw32.exe
cd ..


zip -9 phrot-0.70-bin.zip BUILD.txt *-patch.txt phrot.p3-*
