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
b36717c6
Unverified
Commit
b36717c6
authored
Jan 25, 2021
by
Libretro-Admin
Committed by
GitHub
Jan 25, 2021
Browse files
Update Makefile.libretro
parent
533cee3f
Pipeline
#12561
passed with stages
in 7 minutes and 25 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Makefile.libretro
View file @
b36717c6
...
...
@@ -22,15 +22,13 @@ ifeq ($(shell uname -a),)
system_platform
=
win
else
ifneq
($(findstring Darwin,$(shell uname -a)),)
system_platform
=
osx
ifeq
($(shell uname -p),powerpc)
arch
=
ppc
else
arch
=
intel
ifeq
($(shell uname -p),powerpc)
arch
=
ppc
endif
ifeq
($(shell uname -p),arm)
arch
=
arm64
else
arch
=
intel
endif
endif
else
ifneq
($(findstring MINGW,$(shell uname -a)),)
system_platform
=
win
endif
...
...
@@ -81,17 +79,19 @@ else ifeq ($(platform), osx)
TARGET
:=
$(TARGET_NAME)
_libretro.
$(EXT)
fpic
:=
-fPIC
SHARED
:=
-dynamiclib
OSXVER
=
`
sw_vers
-productVersion
|
cut
-d
.
-f
2
`
OSX_LT_MAVERICKS
=
`
((
$(OSXVER)
<
=
9
))
&&
echo
"YES"
`
MACSOSVER
=
`
sw_vers
-productVersion
|
cut
-d
.
-f
1
`
OSXVER
=
`
sw_vers
-productVersion
|
cut
-d
.
-f
2
`
OSX_LT_MAVERICKS
=
`
((
$(OSXVER)
<
=
9
))
&&
echo
"YES"
`
ifeq
($(OSX_LT_MAVERICKS),YES)
fpic
+=
-mmacosx-version-min
=
10.1
endif
ifeq
($(arch),arm64)
TARGET_RULE
=
-target
$(LIBRETRO_APPLE_PLATFORM)
-isysroot
$(LIBRETRO_APPLE_ISYSROOT)
TARGET_RULE
=
-target
$(LIBRETRO_APPLE_PLATFORM)
-isysroot
$(LIBRETRO_APPLE_ISYSROOT)
CFLAGS
+=
$(TARGET_RULE)
CPPFLAGS
+=
$(TARGET_RULE)
CXXFLAGS
+=
$(TARGET_RULE)
else
fpic
+=
-mmacosx-version-min
=
10.1
endif
endif
CFLAGS
+=
$(ARCHFLAGS)
LDFLAGS
+=
$(ARCHFLAGS)
...
...
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