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
vitaquake3
Commits
7a633867
Commit
7a633867
authored
Jan 31, 2021
by
Libretro-Admin
Browse files
Updates
parent
45608790
Pipeline
#109484
passed with stages
in 1 minute and 44 seconds
Changes
2
Pipelines
461
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
7a633867
...
...
@@ -32,6 +32,9 @@ ifeq ($(shell uname -a),)
else
ifneq
($(findstring Darwin,$(shell uname -a)),)
system_platform
=
osx
arch
=
intel
ifeq
($(shell uname -p),arm)
arch
=
arm
endif
ifeq
($(shell uname -p),powerpc)
arch
=
ppc
endif
...
...
@@ -43,21 +46,6 @@ CORE_DIR += .
TARGET_NAME
:=
vitaquake3
LIBM
=
-lm
ifeq
($(ARCHFLAGS),)
ifeq
($(archs),ppc)
ARCHFLAGS
=
-arch
ppc
-arch
ppc64
else
ARCHFLAGS
=
-arch
i386
-arch
x86_64
endif
endif
ifeq
($(platform), osx)
ifndef
($(NOUNIVERSAL))
CXXFLAGS
+=
$(ARCHFLAGS)
LFLAGS
+=
$(ARCHFLAGS)
endif
endif
ifeq
($(STATIC_LINKING), 1)
EXT
:=
a
endif
...
...
@@ -81,6 +69,31 @@ else ifneq (,$(findstring osx,$(platform)))
TARGET
:=
$(TARGET_NAME)
_libretro.dylib
fpic
:=
-fPIC
SHARED
:=
-dynamiclib
ifeq
($(CROSS_COMPILE),1)
TARGET_RULE
=
-target
$(LIBRETRO_APPLE_PLATFORM)
-isysroot
$(LIBRETRO_APPLE_ISYSROOT)
CFLAGS
+=
$(TARGET_RULE)
CPPFLAGS
+=
$(TARGET_RULE)
CXXFLAGS
+=
$(TARGET_RULE)
LDFLAGS
+=
$(TARGET_RULE)
endif
ifeq
($(UNIVERSAL),1)
ifeq
($(ARCHFLAGS),)
ARCHFLAGS
=
-arch
i386
-arch
x86_64
ifeq
($(archs),arm)
ARCHFLAGS
=
-arch
arm64
endif
ifeq
($(archs),ppc)
ARCHFLAGS
=
-arch
ppc
-arch
ppc64
endif
endif
CXXFLAGS
+=
$(ARCHFLAGS)
LFLAGS
+=
$(ARCHFLAGS)
endif
else
ifneq
(,$(findstring ios,$(platform)))
TARGET
:=
$(TARGET_NAME)
_libretro_ios.dylib
fpic
:=
-fPIC
...
...
code/qcommon/q_platform.h
View file @
7a633867
...
...
@@ -156,6 +156,11 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#define idx64 1
#define ARCH_STRING "x86_64"
#define Q3_LITTLE_ENDIAN
#elif defined __aarch64__
#if 0
#define ARCH_STRING "aarch64"
#endif
#define Q3_LITTLE_ENDIAN
#endif
#define DLL_EXT ".dylib"
...
...
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