#!/bin/bash

mipsel-linux-gcc -D GCWZERO -O2 -I/opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include/SDL2 -D_GNU_SOURCE=1 -D_REENTRANT -lSDL2 -lSDL2_mixer -lstdc++ *.cpp -o pepe

mksquashfs ./default.gcw0.desktop ./icon.png ./pepe ./data.jrf pepe.opk -all-root -noappend -no-exports -no-xattrs

ftp -n -v 10.1.1.2 << EOT
ascii
user root ezahfm
pass
cd apps
put ./pepe.opk
bye
EOT

