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
beetle-lynx-libretro
Commits
61855e58
Commit
61855e58
authored
Oct 14, 2020
by
negativeExponent
Browse files
Update Makefile
parent
12c75b6f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
61855e58
...
...
@@ -6,31 +6,23 @@ CORE_DIR := .
ifeq
($(platform),)
platform
=
unix
ifeq
($(shell uname -
a
),)
ifeq
($(shell uname -
s
),)
platform
=
win
else
ifneq
($(findstring MINGW,$(shell uname -a)),)
platform
=
win
else
ifneq
($(findstring Darwin,$(shell uname -a)),)
else
ifneq
($(findstring Darwin,$(shell uname -s)),)
platform
=
osx
else
ifneq
($(findstring win,$(shell uname -a)),)
platform
=
win
arch
=
intel
ifeq
($(shell uname -p),powerpc)
arch
=
ppc
endif
else
ifneq
($(findstring MINGW,$(shell uname -s)),)
platform
=
win
endif
# system platform
system_platform
=
unix
ifeq
($(shell uname -a),)
EXE_EXT
=
.exe
system_platform
=
win
else
ifneq
($(findstring Darwin,$(shell uname -a)),)
system_platform
=
osx
ifeq
($(shell uname -p),powerpc)
arch
=
ppc
else
arch
=
intel
else
ifneq
(,$(findstring armv,$(platform)))
ifeq
(,$(findstring classic_,$(platform)))
override
platform
+=
unix
endif
else
ifneq
($(findstring
MINGW,$(shell uname -a
))
,
)
system_
platform
=
win
else
ifneq
(
,
$(findstring
rpi,$(platform
)))
override
platform
+
=
unix
endif
core
=
lynx
...
...
@@ -60,12 +52,31 @@ filter_out2 = $(call filter_out1,$(call filter_out1,$1))
unixpath
=
$(
subst
\,
/,
$1
)
unixcygpath
=
/
$(
subst
:,,
$(
call
unixpath,
$1
))
ifeq
($(platform)
, unix
)
if
n
eq
(
,$(findstring unix,
$(platform)
)
)
TARGET
:=
$(TARGET_NAME)
_libretro.so
fpic
:=
-fPIC
SHARED
:=
-shared
-Wl
,--no-undefined
-Wl
,--version-script
=
link.T
ifneq
($(shell uname -p | grep -E '((i.|x)86|amd64)'),)
IS_X86
=
1
ifneq
(,$(findstring Haiku,$(shell uname -s)))
LDFLAGS
+=
-lroot
CXXFLAGS
+=
-fpermissive
else
LDFLAGS
+=
-lrt
endif
ifneq
($(findstring Linux,$(shell uname -s)),)
HAVE_CDROM
=
1
endif
# Raspberry Pi
ifneq
(,$(findstring rpi,$(platform)))
FLAGS
+=
-fomit-frame-pointer
-ffast-math
ifneq
(,$(findstring rpi1,$(platform)))
FLAGS
+=
-DARM
-marm
-march
=
armv6j
-mfpu
=
vfp
-mfloat-abi
=
hard
else
ifneq
(,$(findstring rpi2,$(platform)))
FLAGS
+=
-DARM
-marm
-mcpu
=
cortex-a7
-mfpu
=
neon-vfpv4
-mfloat-abi
=
hard
else
ifneq
(,$(findstring rpi3,$(platform)))
FLAGS
+=
-DARM
-marm
-mcpu
=
cortex-a53
-mfpu
=
neon-fp-armv8
-mfloat-abi
=
hard
endif
endif
FLAGS
+=
-DHAVE_MKDIR
else
ifeq
($(platform), osx)
...
...
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