diff --git a/Makefile b/Makefile index d9a7545..9f889af 100644 --- a/Makefile +++ b/Makefile @@ -6,4 +6,8 @@ macos: linux: mkdir -p bin g++ source/*.cpp -std=c++11 -Os -lSDL2 -ffunction-sections -fdata-sections -Wl,--gc-sections -o bin/$(executable)_linux - strip -s -R .comment -R .gnu.version bin/$(executable)_linux --strip-unneeded \ No newline at end of file + strip -s -R .comment -R .gnu.version bin/$(executable)_linux --strip-unneeded +opendingux: + mkdir -p bin + /opt/gcw0-toolchain/usr/bin/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++ source/*.cpp -o bin/$(executable)_opendingux + /opt/gcw0-toolchain/usr/bin/mksquashfs ./default.gcw0.desktop ./icon.png ./bin ./data ./media coffee_crisis.opk -all-root -noappend -no-exports -no-xattrs \ No newline at end of file diff --git a/default.gcw0.desktop b/default.gcw0.desktop new file mode 100644 index 0000000..dbe1bc4 --- /dev/null +++ b/default.gcw0.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Version=1.0 +Type=Application +Name=Coffee Crisis +Comment=Coffee Crisis +Icon=icon +Exec=bin/coffee_crisis_opendingux +Categories=games;Game;SDL; +Terminal=false diff --git a/icon.png b/icon.png new file mode 100644 index 0000000..0aae97a Binary files /dev/null and b/icon.png differ diff --git a/source/jail_audio_mipsel.cpp b/source/jail_audio_mipsel.cpp index 4544cdb..4019af5 100644 --- a/source/jail_audio_mipsel.cpp +++ b/source/jail_audio_mipsel.cpp @@ -1,6 +1,6 @@ #ifdef __MIPSEL__ #include "jail_audio.h" -#include "SDL_mixer.h" +#include struct JA_Sound_t { Mix_Chunk *mix_chunk;