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
f928284f
Commit
f928284f
authored
Jul 04, 2017
by
Libretro-Admin
Browse files
Update Makefiles
parent
a639fe4c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Makefile.libretro
View file @
f928284f
...
...
@@ -202,6 +202,53 @@ else ifeq ($(platform), wiiu)
PLATFORM_DEFINES
+=
-DGEKKO
-DWIIU
-DHW_RVL
-mrvl
-mcpu
=
750
-meabi
-mhard-float
STATIC_LINKING
=
1
# Windows MSVC 2010 x64
else
ifeq
($(platform), windows_msvc2010_x64)
CC
=
cl.exe
CXX
=
cl.exe
PATH
:=
$(
shell
IFS
=
$$
'\n'
;
cygpath
"
$(VS100COMNTOOLS)
../../VC/bin/amd64"
)
:
$(PATH)
PATH
:=
$(PATH)
:
$(
shell
IFS
=
$$
'\n'
;
cygpath
"
$(VS100COMNTOOLS)
../IDE"
)
LIB
:=
$(
shell
IFS
=
$$
'\n'
;
cygpath
"
$(VS100COMNTOOLS)
../../VC/lib/amd64"
)
INCLUDE
:=
$(
shell
IFS
=
$$
'\n'
;
cygpath
"
$(VS100COMNTOOLS)
../../VC/include"
)
WindowsSdkDir
:=
$(
shell
reg query
"HKLM
\S
OFTWARE
\M
icrosoft
\M
icrosoft SDKs
\W
indows
\v
7.0A"
-v
"InstallationFolder"
|
grep
-o
'[A-Z]:\\.*'
)
lib/x64
WindowsSdkDir
?=
$(
shell
reg query
"HKLM
\S
OFTWARE
\M
icrosoft
\M
icrosoft SDKs
\W
indows
\v
7.1A"
-v
"InstallationFolder"
|
grep
-o
'[A-Z]:\\.*'
)
lib/x64
WindowsSdkDirInc
:=
$(
shell
reg query
"HKLM
\S
OFTWARE
\M
icrosoft
\M
icrosoft SDKs
\W
indows
\v
7.0A"
-v
"InstallationFolder"
|
grep
-o
'[A-Z]:\\.*'
)
Include
WindowsSdkDirInc
?=
$(
shell
reg query
"HKLM
\S
OFTWARE
\M
icrosoft
\M
icrosoft SDKs
\W
indows
\v
7.1A"
-v
"InstallationFolder"
|
grep
-o
'[A-Z]:\\.*'
)
Include
INCFLAGS_PLATFORM
=
-I
"
$(WindowsSdkDirInc)
"
export
INCLUDE
:=
$(INCLUDE)
export
LIB
:=
$(LIB)
;
$(WindowsSdkDir)
TARGET
:=
$(TARGET_NAME)
_libretro.dll
PSS_STYLE
:=
2
LDFLAGS
+=
-DLL
# Windows MSVC 2010 x86
else
ifeq
($(platform), windows_msvc2010_x86)
CC
=
cl.exe
CXX
=
cl.exe
PATH
:=
$(
shell
IFS
=
$$
'\n'
;
cygpath
"
$(VS100COMNTOOLS)
../../VC/bin"
)
:
$(PATH)
PATH
:=
$(PATH)
:
$(
shell
IFS
=
$$
'\n'
;
cygpath
"
$(VS100COMNTOOLS)
../IDE"
)
LIB
:=
$(
shell
IFS
=
$$
'\n'
;
cygpath
-w
"
$(VS100COMNTOOLS)
../../VC/lib"
)
INCLUDE
:=
$(
shell
IFS
=
$$
'\n'
;
cygpath
"
$(VS100COMNTOOLS)
../../VC/include"
)
WindowsSdkDir
:=
$(
shell
reg query
"HKLM
\S
OFTWARE
\M
icrosoft
\M
icrosoft SDKs
\W
indows
\v
7.0A"
-v
"InstallationFolder"
|
grep
-o
'[A-Z]:\\.*'
)
lib
WindowsSdkDir
?=
$(
shell
reg query
"HKLM
\S
OFTWARE
\M
icrosoft
\M
icrosoft SDKs
\W
indows
\v
7.1A"
-v
"InstallationFolder"
|
grep
-o
'[A-Z]:\\.*'
)
lib
WindowsSdkDirInc
:=
$(
shell
reg query
"HKLM
\S
OFTWARE
\M
icrosoft
\M
icrosoft SDKs
\W
indows
\v
7.0A"
-v
"InstallationFolder"
|
grep
-o
'[A-Z]:\\.*'
)
Include
WindowsSdkDirInc
?=
$(
shell
reg query
"HKLM
\S
OFTWARE
\M
icrosoft
\M
icrosoft SDKs
\W
indows
\v
7.1A"
-v
"InstallationFolder"
|
grep
-o
'[A-Z]:\\.*'
)
Include
INCFLAGS_PLATFORM
=
-I
"
$(WindowsSdkDirInc)
"
export
INCLUDE
:=
$(INCLUDE)
export
LIB
:=
$(LIB)
;
$(WindowsSdkDir)
TARGET
:=
$(TARGET_NAME)
_libretro.dll
PSS_STYLE
:=
2
LDFLAGS
+=
-DLL
else
EXT
?=
dll
TARGET
:=
$(TARGET_NAME)
_libretro.
$(EXT)
...
...
@@ -216,7 +263,7 @@ endif
ifeq
($(DEBUG), 1)
CFLAGS
+=
-O0
-g
else
CFLAGS
+=
-O
3
CFLAGS
+=
-O
2
-DNDEBUG
endif
CORE_DIR
:=
.
...
...
@@ -242,6 +289,17 @@ ifneq ($(fpic),)
with_fpic
:=
--with-pic
=
yes
endif
OBJOUT
=
-o
LINKOUT
=
-o
ifneq
(,$(findstring msvc,$(platform)))
OBJOUT
=
-Fo
LINKOUT
=
-out
:
LD
=
link.exe
else
LD
=
$(CC)
endif
ifeq
($(platform), theos_ios)
COMMON_FLAGS
:=
-DIOS
$(COMMON_DEFINES)
$(INCFLAGS)
-I
$(THEOS_INCLUDE_PATH)
-Wno-error
$(LIBRARY_NAME)_CFLAGS
+=
$(COMMON_FLAGS)
$(CFLAGS)
...
...
@@ -254,11 +312,11 @@ $(TARGET): $(OBJECTS)
ifeq
($(STATIC_LINKING), 1)
$(AR)
rcs
$@
$(OBJECTS)
else
$(
CC
)
$(fpic)
$(SHARED)
$(INCLUDES)
$(LFLAGS)
-o
$@
$(OBJECTS)
$(LDFLAGS)
$(
LD
)
$(fpic)
$(SHARED)
$(INCLUDES)
$(LFLAGS)
$(LINKOUT)
$@
$(OBJECTS)
$(LDFLAGS)
endif
%.o
:
%.c
$(CC)
$(CFLAGS)
-c
-o
$@
$<
$(CC)
$(CFLAGS)
-c
$(OBJOUT)
$@
$<
clean
:
rm
-f
$(OBJECTS)
$(TARGET)
...
...
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