cd filechars
  g++ -Wall filechars.cpp -o ../fch
cd ..
./fch *.txt
rm fch

echo linux

cd CExEv
  g++ -Wall CExEv.cpp Variant.cpp -c
cd ..

cd ui
  g++ -Wall -I../include/pngpp -I../include ui.cpp _ui.cpp ui_misc.cpp url_decode.cpp  -c
cd ..

g++ -Wall -I./include main.cpp grabpng.cpp CExEv/*.o ui/*.o -lfltk -lfltk_images -o grabpng
strip grabpng

cd CExEv
  rm *.o
cd ..

cd ui
  rm *.o
cd ..

echo windblows

export mswlibs="-lole32 -luuid -lwsock32 -lgdi32 -lcomdlg32"

cd CExEv
  i586-mingw32msvc-g++ -Wall CExEv.cpp Variant.cpp -c
cd ..

cd ui
  i586-mingw32msvc-g++ -DWIN32=1 -Wall \
  -I../include -I../include/libpng -I../include/zlib -I../include/pngpp \
  ui.cpp _ui.cpp ui_misc.cpp url_decode.cpp -c
cd ..

i586-mingw32msvc-g++ -I./include main.cpp grabpng.cpp CExEv/*.o ui/*.o ./lib/win/fl/*.a   $mswlibs -o grabpng.exe
i586-mingw32msvc-strip grabpng.exe 

cd CExEv
  rm *.o
cd ..

cd ui
  rm *.o
cd ..



rm *.txt.h
