diff options
author | Twinaphex | 2018-06-26 16:29:32 +0200 |
---|---|---|
committer | GitHub | 2018-06-26 16:29:32 +0200 |
commit | 4423de5973de2e1a243031ee59d997f5e6220a6c (patch) | |
tree | 3c4accc2257f3343bc3f67cf67e47680bd50d608 /Makefile | |
parent | b83a86f02139b7aae9dc22149ebd5cbeac32faf4 (diff) | |
parent | b650caa89c2e269b58307f548b89a39640c76dac (diff) | |
download | snesemu-4423de5973de2e1a243031ee59d997f5e6220a6c.tar.gz snesemu-4423de5973de2e1a243031ee59d997f5e6220a6c.tar.bz2 snesemu-4423de5973de2e1a243031ee59d997f5e6220a6c.zip |
Merge pull request #59 from HakchiCloud/master
Added Hakchi platform
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 18 |
1 files changed, 17 insertions, 1 deletions
@@ -223,6 +223,12 @@ else ifeq ($(platform), gcw0) LIBM := LOAD_FROM_MEMORY_TEST = 0 CFLAGS += -ffast-math -march=mips32 -mtune=mips32r2 -mhard-float +#Nintendo Classics (Hakchi) +else ifeq ($(platform), nintendoc) + TARGET := $(TARGET_NAME)_libretro.so + fpic := -fPIC + SHARED := -shared -Wl,--no-undefined -Wl,--version-script=link.T + CFLAGS += -fno-builtin -fno-exceptions -ffunction-sections -DARM -marm -mcpu=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard # Windows MSVC 2010 x86 else ifeq ($(platform), windows_msvc2010_x86) @@ -359,8 +365,18 @@ else $(CC) $(LINKOUT)$@ $(OBJECTS) $(LDFLAGS) $(LIBS) endif +ifeq ($(platform),nintendoc) + @echo "** BUILDING HAKCHI HMOD PACKAGE **" + mkdir -p hakchi/etc/libretro/core/ hakchi/etc/libretro/info/ hakchi/etc/preinit.d/ + rm -f hakchi/etc/libretro/info/* + cp $(TARGET_NAME)_libretro.so hakchi/etc/libretro/core/ + cd hakchi/etc/libretro/info/; wget https://buildbot.libretro.com/assets/frontend/info/$(TARGET_NAME)_libretro.info + cd hakchi/; tar -czvf "CORE_$(TARGET_NAME).hmod" * +endif + + clean: - rm -f $(TARGET) $(OBJECTS) + rm -f $(TARGET) $(OBJECTS) hakchi/CORE_$(TARGET_NAME).hmod .PHONY: clean endif |