summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRyan 'Swingflip' Hamlin2018-06-24 19:44:02 +0100
committerRyan 'Swingflip' Hamlin2018-06-24 19:44:02 +0100
commitbda0b3ba05423f7b0d4ecce7f5ecc9d891276004 (patch)
tree5232cb2ef526f3081ee13d7564401cc2dede93eb /Makefile
parent39d8b168453556fe80905c51c8f38fdbade8fd13 (diff)
downloadsnes9x2002-bda0b3ba05423f7b0d4ecce7f5ecc9d891276004.tar.gz
snes9x2002-bda0b3ba05423f7b0d4ecce7f5ecc9d891276004.tar.bz2
snes9x2002-bda0b3ba05423f7b0d4ecce7f5ecc9d891276004.zip
Added Hakchi Platform (Nintendo Classics)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 17 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 82023cc..ea489fa 100644
--- a/Makefile
+++ b/Makefile
@@ -103,6 +103,13 @@ else ifeq ($(platform), wiiu)
CFLAGS += -U__INT32_TYPE__ -U __UINT32_TYPE__ -D__INT32_TYPE__=int
STATIC_LINKING := 1
+#Nintendo Classics (Hakchi)
+else ifeq ($(platform), nintendoc)
+ TARGET := $(TARGET_NAME)_libretro.so
+ fpic := -fPIC
+ SHARED := -shared -Wl,--version-script=libretro/link.T -Wl,--no-undefined
+ CFLAGS += -fno-builtin -fno-exceptions -DARM -marm -mcpu=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard
+
# Vita
else ifeq ($(platform), vita)
TARGET := $(TARGET_NAME)_libretro_$(platform).a
@@ -191,6 +198,15 @@ else
$(CC) $(fpic) $(SHARED) $(INCLUDES) -o $@ $(OBJS) -lm
endif
+ifeq ($(platform),nintendoc)
+ @echo "** BUILDING HAKCHI HMOD PACKAGE **"
+ mkdir -p libretro/hakchi/etc/libretro/core/ libretro/hakchi/etc/libretro/info/ libretro/hakchi/etc/preinit.d/
+ rm -f libretro/hakchi/etc/libretro/info/*
+ cp $(TARGET_NAME)_libretro.so libretro/hakchi/etc/libretro/core/
+ cd libretro/hakchi/etc/libretro/info/; wget https://buildbot.libretro.com/assets/frontend/info/$(TARGET_NAME)_libretro.info
+ cd libretro/hakchi/; tar -czvf "CORE_$(TARGET_NAME).hmod" *
+endif
+
%.o: %.c
$(CC) $(CFLAGS) -c -o $@ $<
@@ -198,7 +214,7 @@ endif
$(CC) $(CFLAGS) -Wa,-I./src/ -c -o $@ $<
clean:
- rm -f $(OBJS) $(TARGET)
+ rm -f $(OBJS) $(TARGET) hakchi/CORE_$(TARGET_NAME).hmod
.PHONY: clean