Add maze for ps2

This commit is contained in:
Carlos Sanchez 2024-09-07 11:40:24 -04:00
parent 34333ada4d
commit cd74a29aba
4 changed files with 1416 additions and 1 deletions

1
.gitignore vendored
View File

@ -27,4 +27,5 @@ callgrind.*
# Binaries
*.exe
*.elf
a.out

@ -1 +1 @@
Subproject commit 599b88475b557b1b7e502872b87928dcaf64fe7c
Subproject commit 9fbc0948f182cd46c4aaff43b632f92f72fb4fb2

44
ps2/Makefile Normal file
View File

@ -0,0 +1,44 @@
# _____ ___ ____ ___ ____
# ____| | ____| | | |____|
# | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
#-----------------------------------------------------------------------
# Copyright 2001-2022, ps2dev - http://www.ps2dev.org
# Licenced under Academic Free License version 2.0
# Review ps2sdk README & LICENSE files for further details.
EE_BIN = maze.elf
# KERNEL_NOPATCH = 1
# NEWLIB_NANO = 1
EE_OBJS = maze.o
EE_CFLAGS += -fdata-sections -ffunction-sections -I$(PS2SDK)/ports/include -Wformat=0
EE_LDFLAGS += -L$(PS2SDK)/ports/lib -L$(GSKIT)/lib -lSDL2 -lgskit -ldmakit -lps2_drivers -lm -Wl,--gc-sections
ifeq ($(DUMMY_TIMEZONE), 1)
EE_CFLAGS += -DDUMMY_TIMEZONE
endif
ifeq ($(DUMMY_LIBC_INIT), 1)
EE_CFLAGS += -DDUMMY_LIBC_INIT
endif
ifeq ($(KERNEL_NOPATCH), 1)
EE_CFLAGS += -DKERNEL_NOPATCH
endif
ifeq ($(DEBUG), 1)
EE_CFLAGS += -DDEBUG -O0 -g
else
EE_CFLAGS += -Os
EE_LDFLAGS += -s
endif
all: $(EE_BIN)
clean:
rm -rf $(EE_OBJS) $(EE_BIN)
# Include makefiles
include $(PS2SDK)/samples/Makefile.pref
include $(PS2SDK)/samples/Makefile.eeglobal

1370
ps2/maze.c Normal file

File diff suppressed because it is too large Load Diff