mirror of https://github.com/snes9xgit/snes9x.git
Added Classic Armv7 A7 and A8A35
This commit is contained in:
parent
1e96cc74e1
commit
78afba0581
|
@ -135,6 +135,35 @@ else ifeq ($(platform), classic_armv7_a7)
|
||||||
LDFLAGS += -static-libgcc -static-libstdc++
|
LDFLAGS += -static-libgcc -static-libstdc++
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# (armv8 a35, hard point, neon based) ###
|
||||||
|
# Playstation Classic
|
||||||
|
else ifeq ($(platform), classic_armv8_a35)
|
||||||
|
TARGET := $(TARGET_NAME)_libretro.so
|
||||||
|
fpic := -fPIC
|
||||||
|
SHARED := -shared -Wl,--version-script=link.T -Wl,--no-undefined
|
||||||
|
CXXFLAGS += -Ofast \
|
||||||
|
-flto=4 -fwhole-program -fuse-linker-plugin \
|
||||||
|
-fdata-sections -ffunction-sections -Wl,--gc-sections \
|
||||||
|
-fno-stack-protector -fno-ident -fomit-frame-pointer \
|
||||||
|
-falign-functions=1 -falign-jumps=1 -falign-loops=1 \
|
||||||
|
-fno-unwind-tables -fno-asynchronous-unwind-tables -fno-unroll-loops \
|
||||||
|
-fmerge-all-constants -fno-math-errno \
|
||||||
|
-marm -mtune=cortex-a8 -mfpu=neon-fp-armv8 -mfloat-abi=hard
|
||||||
|
CFLAGS += $(CXXFLAGS)
|
||||||
|
HAVE_NEON = 1
|
||||||
|
ARCH = arm
|
||||||
|
BUILTIN_GPU = neon
|
||||||
|
USE_DYNAREC = 1
|
||||||
|
ifeq ($(shell echo `$(CC) -dumpversion` "< 4.9" | bc -l), 1)
|
||||||
|
CFLAGS += -march=armv8-a
|
||||||
|
else
|
||||||
|
CFLAGS += -march=armv8-a
|
||||||
|
# If gcc is 5.0 or later
|
||||||
|
ifeq ($(shell echo `$(CC) -dumpversion` ">= 5" | bc -l), 1)
|
||||||
|
LDFLAGS += -static-libgcc -static-libstdc++
|
||||||
|
endif
|
||||||
|
endif
|
||||||
#######################################
|
#######################################
|
||||||
|
|
||||||
# iOS
|
# iOS
|
||||||
|
@ -628,11 +657,13 @@ else
|
||||||
all: $(TARGET)
|
all: $(TARGET)
|
||||||
|
|
||||||
$(TARGET): $(OBJECTS)
|
$(TARGET): $(OBJECTS)
|
||||||
|
@echo "** BUILDING $(TARGET) FOR PLATFORM $(platform) **"
|
||||||
ifeq ($(STATIC_LINKING), 1)
|
ifeq ($(STATIC_LINKING), 1)
|
||||||
$(AR) rcs $@ $(OBJECTS)
|
$(AR) rcs $@ $(OBJECTS)
|
||||||
else
|
else
|
||||||
+$(LD) $(fpic) $(SHARED) $(LINKOUT)$@ $(OBJECTS) $(LDFLAGS) $(LIBS)
|
+$(LD) $(fpic) $(SHARED) $(LINKOUT)$@ $(OBJECTS) $(LDFLAGS) $(LIBS)
|
||||||
endif
|
endif
|
||||||
|
@echo "** BUILD SUCCESSFUL! GG NO RE **"
|
||||||
|
|
||||||
%.o: %.cpp
|
%.o: %.cpp
|
||||||
$(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $(OBJOUT)$@ $<
|
$(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $(OBJOUT)$@ $<
|
||||||
|
|
Loading…
Reference in New Issue