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
81-libretro
Commits
7d2720fc
Unverified
Commit
7d2720fc
authored
Nov 11, 2018
by
Libretro-Admin
Committed by
GitHub
Nov 11, 2018
Browse files
Merge pull request #14 from Classicmods/master
Added Classic Platform structure - ARMv7 Cortex A7 build
parents
089fcb1a
a0613a88
Changes
1
Hide whitespace changes
Inline
Side-by-side
Makefile.libretro
View file @
7d2720fc
...
...
@@ -270,6 +270,37 @@ else ifeq ($(platform), wiiu)
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
SHARED
:=
-shared
-Wl
,--version-script
=
build/link.T
-Wl
,--no-undefined
CFLAGS
+=
-DARM
-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
#######################################
# ARM
else
ifneq
(,$(findstring armv,$(platform)))
...
...
@@ -410,11 +441,13 @@ else
all
:
$(TARGET)
$(TARGET)
:
$(OBJS)
@
echo
"** BUILDING
$(TARGET)
FOR PLATFORM
$(platform)
**"
ifeq
($(STATIC_LINKING), 1)
$(AR)
rcs
$@
$(OBJS)
else
$(CXX)
-o
$@
$(SHARED)
$(OBJS)
$(LDXFLAGS)
$(LIBS)
$(CXX)
-o
$@
$(SHARED)
$(OBJS)
$(LDFLAGS)
$(LDXFLAGS)
$(LIBS)
endif
@echo
"** BUILD SUCCESSFUL! GG NO RE **"
$(CORE_DIR)/src/snap.o
:
$(CORE_DIR)/src/snap.c $(HEADERS)
...
...
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