Commit 5aff4170 authored by M4xw's avatar M4xw 🍗

Add switch target

parent bf4c03b5
......@@ -200,6 +200,22 @@ else ifeq ($(platform), wii)
AR = $(DEVKITPPC)/bin/powerpc-eabi-ar$(EXE_EXT)
PLATFORM_DEFINES += -DGEKKO -DHW_RVL -mrvl -mcpu=750 -meabi -mhard-float -DMSB_FIRST
STATIC_LINKING = 1
# Nintendo Switch (libnx)
else ifeq ($(platform), switch)
#include $(DEVKITPRO)/libnx/switch_rules
CC = $(DEVKITPRO)/devkitA64/bin/aarch64-none-elf-gcc
CXX = $(DEVKITPRO)/devkitA64/bin/aarch64-none-elf-g++
AR = $(DEVKITPRO)/devkitA64/bin/aarch64-none-elf-ar
TARGET := $(TARGET_NAME)_libretro_$(platform).a
ARCH := arm64
CFLAGS += -O3 -fomit-frame-pointer -ffast-math -I$(DEVKITPRO)/libnx/include/ -fPIE -Wl,--allow-multiple-definition
CFLAGS += -specs=$(DEVKITPRO)/libnx/switch.specs
CFLAGS += -D__SWITCH__
CFLAGS += -DARM -D__aarch64__=1 -march=armv8-a -mtune=cortex-a57 -mtp=soft -DINLINE=inline -ffast-math -mcpu=cortex-a57+crc+fp+simd -ffunction-sections
CFLAGS += -Ifrontend/switch -ftree-vectorize
STATIC_LINKING=1
else ifneq (,$(findstring armv,$(platform)))
TARGET := $(TARGET_NAME)_libretro.so
fpic := -fPIC
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment