Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Libretro
libretro-2048
Commits
106c26aa
Commit
106c26aa
authored
Nov 04, 2018
by
Ryan 'Swingflip' Hamlin
Browse files
Added A7A7
parent
80d462ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Makefile.libretro
View file @
106c26aa
...
...
@@ -233,6 +233,37 @@ else ifeq ($(platform), libnx)
CFLAGS
+=
-std
=
gnu11
STATIC_LINKING
=
1
# Classic Platforms ####################
# Platform affix = classic_<ISA>_<µARCH>
# Help at https://modmyclassic.com/comp
# (armv7 a7, hard point, neon based) ###
# NESC, SNESC, C64 mini
else
ifeq
($(platform), classic_armv7_a7)
TARGET
:=
$(TARGET_NAME)
_libretro.so
fpic
:=
-fPIC
CFLAGS
+=
-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-a7
-mfpu
=
neon-vfpv4
-mfloat-abi
=
hard
CXXFLAGS
+=
$(CFLAGS)
CPPFLAGS
+=
$(CFLAGS)
ASFLAGS
+=
$(CFLAGS)
ifeq
($(shell echo `$(CC) -dumpversion` "< 4.9" | bc -l), 1)
CFLAGS
+=
-march
=
armv7-a
else
CFLAGS
+=
-march
=
armv7ve
# If gcc is 5.0 or later
ifeq
($(shell echo `$(CC) -dumpversion` ">= 5" | bc -l), 1)
LDFLAGS
+=
-static-libgcc
-static-libstdc
++
endif
endif
#######################################
# Nintendo WiiU
else
ifeq
($(platform), wiiu)
EXT
=
a
...
...
@@ -455,6 +486,7 @@ else
all
:
$(TARGET)
$(TARGET)
:
$(OBJECTS)
@
echo
"** BUILDING
$(TARGET)
FOR PLATFORM
$(platform)
**"
ifeq
($(STATIC_LINKING), 1)
ifneq
(,$(findstring msvc,$(platform)))
$(LD)
$(LINKOUT)$@
$(OBJECTS)
...
...
@@ -464,7 +496,8 @@ endif
else
$(LD)
$(fpic)
$(SHARED)
$(INCLUDES)
$(LFLAGS)
$(LINKOUT)$@
$(OBJECTS)
$(LDFLAGS)
$(LIBS)
endif
@
echo
"** BUILD SUCCESSFUL! GG NO RE **"
%.o
:
%.c
$(CC)
$(CFLAGS)
-c
$(OBJOUT)$@
$<
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment