-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OpenDingux port, dual OPK, version bump, readme update
- Loading branch information
Showing
7 changed files
with
87 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,3 +13,4 @@ zlib1.dll | |
*.d | ||
yatka.opk | ||
yatka.zip | ||
release/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
.PHONY: all clean opk | ||
|
||
BIN_BASE = /opt/gcw0/bin/ | ||
PROJECT = yatka-gcw0 | ||
OPK_NAME = yatka.opk | ||
SRC = src/main.c src/data_persistence.c src/video.c src/sound.c \ | ||
src/state_gameover.c src/state_settings.c src/randomizer.c \ | ||
src/state_mainmenu.c src/skin.c | ||
OBJ = $(SRC:.c=.o) | ||
DEP = $(SRC:.c=.d) | ||
CFLAGS = -Iinc -D_RETROFW -Ofast | ||
LDFLAGS = -s $(shell $(BIN_BASE)pkg-config --libs sdl SDL_image SDL_ttf SDL_mixer) | ||
CC = mipsel-linux-gcc | ||
|
||
all: opk | ||
|
||
opk: $(OPK_NAME) | ||
|
||
$(PROJECT): $(OBJ) | ||
$(CC) -o $(PROJECT) $(OBJ) $(LDFLAGS) | ||
|
||
$(OPK_NAME): $(PROJECT) skins sfx music icon.png README.md LICENSE.md yatka.gcw0.desktop | ||
mksquashfs $^ $@ -noappend -no-xattrs | ||
|
||
src/%.o: src/%.c | ||
$(CC) $(CFLAGS) -c -o $@ $< | ||
|
||
src/%.d: src/%.c | ||
@set -e; \ | ||
rm -f $@; \ | ||
$(CC) -MM $(CFLAGS) $< > $@.$$$$; \ | ||
sed 's,\($*\)\.o[ :]*,src/\1.o $@ : ,g' < $@.$$$$ > $@; \ | ||
rm -f $@.$$$$ | ||
|
||
clean: | ||
rm -rf $(PROJECT) $(OBJ) $(DEP) src/*.d.* $(OPK_NAME) | ||
|
||
-include $(DEP) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/bin/env bash | ||
|
||
rm -rf release | ||
mkdir release | ||
TEMP=$PATH | ||
|
||
# Miyoo | ||
source path-miyoo | ||
make -f Makefile.bittboy zip | ||
mv yatka.zip release/yatka-bittboy.zip | ||
make -f Makefile.bittboy clean | ||
export PATH=$TEMP | ||
|
||
# RetroFW + OpenDingux (dual opk) | ||
source path-retrofw | ||
make -f Makefile.retrofw yatka-retrofw | ||
mv yatka-retrofw yatka | ||
make -f Makefile.retrofw clean | ||
mv yatka yatka-retrofw | ||
export PATH=$TEMP | ||
|
||
source path-gcw0 | ||
make -f Makefile.gcw0 yatka-gcw0 | ||
mv yatka-gcw0 yatka | ||
make -f Makefile.gcw0 clean | ||
mv yatka yatka-gcw0 | ||
export PATH=$TEMP | ||
|
||
mksquashfs skins sfx music icon.png README.md LICENSE.md yatka.gcw0.desktop yatka-gcw0 yatka.retrofw.desktop yatka-retrofw yatka-dual.opk -noappend -no-xattrs | ||
mv yatka-dual.opk release/ | ||
rm -f yatka-retrofw yatka-gcw0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[Desktop Entry] | ||
Name=YATKA | ||
Comment=Yet Another Tetris Klone in Action | ||
Exec=yatka-gcw0 | ||
Terminal=false | ||
Type=Game | ||
StartupNotify=true | ||
Icon=icon | ||
Categories=games; | ||
Version=20220421 | ||
X-OD-Manual=README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
[Desktop Entry] | ||
Name=YATKA | ||
Comment=Yet Another Tetris Klone in Action | ||
Exec=yatka | ||
Exec=yatka-retrofw | ||
Terminal=false | ||
Type=Game | ||
StartupNotify=true | ||
Icon=icon | ||
Categories=games; | ||
Version=20210906 | ||
Version=20220421 | ||
X-OD-Manual=README.md |