aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpingflood2020-01-15 17:30:05 -0300
committerpingflood2020-01-15 17:30:05 -0300
commita151af35091092b4d564b29c67773524502ad779 (patch)
tree1cbf9c38c1e0618f6afca093ec6d9ec1814c69ca
parent9576851f5037ab047f2c73722e182665794d116a (diff)
downloadhydracastlelabyrinth-a151af35091092b4d564b29c67773524502ad779.tar.gz
hydracastlelabyrinth-a151af35091092b4d564b29c67773524502ad779.tar.bz2
hydracastlelabyrinth-a151af35091092b4d564b29c67773524502ad779.zip
Make OPK
-rw-r--r--.gitignore4
-rw-r--r--Makefile24
-rw-r--r--hcl/default.gcw0.desktop (renamed from opk/default.gcw0.desktop)0
-rw-r--r--hcl/default.retrofw.desktop12
-rw-r--r--opk/icon.pngbin330 -> 0 bytes
-rw-r--r--screenshot.pngbin40604 -> 0 bytes
6 files changed, 30 insertions, 10 deletions
diff --git a/.gitignore b/.gitignore
index f94be4f..04dd777 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,7 +1,5 @@
*.elf
-./opk/data
-./opk/data/
-./opk/hcl.elf
*.o
*.opk
*.ipk
+*.dge
diff --git a/Makefile b/Makefile
index 0640de8..4a29756 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,5 @@
+TARGET = hcl/hcl.dge
+
CHAINPREFIX := /opt/mipsel-linux-uclibc
CROSS_COMPILE := $(CHAINPREFIX)/usr/bin/mipsel-linux-
@@ -13,7 +15,6 @@ CFLAGS = -D_SDL -DDINGUX -O2 -mips32 $(SDL_CFLAGS) -Isrc -std=c99
LDFLAGS = -lSDL -lm -lSDL_mixer $(SDL_LDFLAGS)
DEFINES = -Wall
-OUTPUT = hcl/hcl.elf
SOURCES = src/collision.c \
src/effect.c \
@@ -71,16 +72,16 @@ src/sdl/input.c \
src/sdl/system.c
OBJS = ${SOURCES:.c=.o}
-all: ${OUTPUT}
+all: $(TARGET)
+
+$(TARGET):${OBJS}
+ ${CC} -o $(TARGET) ${OBJS} ${CFLAGS} ${LDFLAGS} ${DEFINES}
-${OUTPUT}:${OBJS}
- ${CC} -o ${OUTPUT} ${OBJS} ${CFLAGS} ${LDFLAGS} ${DEFINES}
-
pack:
mksquashfs ./opk hydra.opk -all-root -noappend -no-exports -no-xattrs
-
+
clean:
- rm src/*.o src/sdl/*.o ${OUTPUT}
+ rm src/*.o src/sdl/*.o $(TARGET)
ipk: all
@rm -rf /tmp/.hcl-ipk/ && mkdir -p /tmp/.hcl-ipk/root/home/retrofw/games/hcl /tmp/.hcl-ipk/root/home/retrofw/apps/gmenu2x/sections/games
@@ -92,3 +93,12 @@ ipk: all
@tar --owner=0 --group=0 -czvf /tmp/.hcl-ipk/data.tar.gz -C /tmp/.hcl-ipk/root/ .
@echo 2.0 > /tmp/.hcl-ipk/debian-binary
@ar r hcl/hcl.ipk /tmp/.hcl-ipk/control.tar.gz /tmp/.hcl-ipk/data.tar.gz /tmp/.hcl-ipk/debian-binary
+
+opk: all
+ @mksquashfs \
+ hcl/default.retrofw.desktop \
+ hcl/hcl.dge \
+ hcl/hcl.png \
+ hcl/data \
+ hcl/hcl.opk \
+ -all-root -noappend -no-exports -no-xattrs
diff --git a/opk/default.gcw0.desktop b/hcl/default.gcw0.desktop
index 9575e0b..9575e0b 100644
--- a/opk/default.gcw0.desktop
+++ b/hcl/default.gcw0.desktop
diff --git a/hcl/default.retrofw.desktop b/hcl/default.retrofw.desktop
new file mode 100644
index 0000000..687b5ae
--- /dev/null
+++ b/hcl/default.retrofw.desktop
@@ -0,0 +1,12 @@
+[Desktop Entry]
+Name=Hydra C. L.
+Comment=Hydra Castle Labyrinth port
+Exec=hcl.dge
+Icon=hcl
+Categories=games;
+X-OD-Manual=hcl.man.txt
+X-OD-Selector=
+X-OD-Filter=
+Terminal=false
+Type=Application
+StartupNotify=true
diff --git a/opk/icon.png b/opk/icon.png
deleted file mode 100644
index 989e564..0000000
--- a/opk/icon.png
+++ /dev/null
Binary files differ
diff --git a/screenshot.png b/screenshot.png
deleted file mode 100644
index b5019d4..0000000
--- a/screenshot.png
+++ /dev/null
Binary files differ