aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorneonloop2022-02-10 15:46:51 +0000
committerneonloop2022-02-10 15:46:51 +0000
commite506386fc683b18c2e25a27e8c3f7a220a92e5e1 (patch)
treef7da313b7a7cd43de4baf329c76490546cf8641c /Makefile
parentaf5f38f00f49ab0c60425270502a09a9fee5fd23 (diff)
downloadpicoarch-e506386fc683b18c2e25a27e8c3f7a220a92e5e1.tar.gz
picoarch-e506386fc683b18c2e25a27e8c3f7a220a92e5e1.tar.bz2
picoarch-e506386fc683b18c2e25a27e8c3f7a220a92e5e1.zip
Updates cores and moves to snes9x2005 fork
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 42f18e4..dcad83b 100644
--- a/Makefile
+++ b/Makefile
@@ -50,6 +50,9 @@ quicknes_REPO = https://github.com/libretro/QuickNES_Core
smsplus-gx_MAKEFILE = Makefile.libretro
smsplus-gx_CORE = smsplus_libretro.so
+snes9x2005_REPO = https://git.crowdedwood.com/snes9x2005
+snes9x2005_REVISION = performance
+
ifeq ($(platform), trimui)
OBJS += plat_trimui.o
CFLAGS += -mcpu=arm926ej-s -mtune=arm926ej-s -fno-PIC -DCONTENT_DIR='"/mnt/SDCARD/Roms"'
@@ -62,6 +65,7 @@ endif
ifeq ($(DEBUG), 1)
CFLAGS += -Og -g
+ LDFLAGS += -g
else
CFLAGS += -Ofast -DNDEBUG
@@ -125,8 +129,10 @@ $(1):
$(if $1_REVISION,cd $(1) && git checkout $($1_REVISION),)
(test ! -d patches/$(1)) || (cd $(1) && $(foreach patch, $(sort $(wildcard patches/$(1)/*.patch)), git apply -p1 < ../$(patch) &&) true)
-$(1)_libretro.so: $(1)
+$(1)/$(1)_libretro.so: $(1)
cd $$($1_BUILD_PATH) && $$($1_MAKE) $(PROCS)
+
+$(1)_libretro.so: $(1)/$(1)_libretro.so
cp $$($1_BUILD_PATH)/$(if $($(1)_CORE),$($(1)_CORE),$(1)_libretro.so) $(1)_libretro.so
clean-$(1):