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
5eab61b5
Commit
5eab61b5
authored
Mar 02, 2015
by
Libretro-Admin
Browse files
Create linux-portable target (works)
parent
1455fdd6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Makefile.libretro
View file @
5eab61b5
...
...
@@ -17,12 +17,20 @@ endif
endif
TARGET_NAME
:=
2048
LIBM
:=
-lm
fpic
=
ifeq
($(platform), unix)
TARGET
:=
$(TARGET_NAME)
_libretro.so
fpic
:=
-fPIC
SHARED
:=
-shared
-Wl
,--no-undefined
else
ifeq
($(platform), linux-portable)
TARGET
:=
$(TARGET_NAME)
_libretro.so
fpic
:=
-fPIC
-nostdlib
SHARED
:=
-shared
-Wl
,--no-undefined
LIBM
:=
LDFLAGS
+=
-L
.
-lmusl
else
ifeq
($(platform), osx)
TARGET
:=
$(TARGET_NAME)
_libretro.dylib
fpic
:=
-fPIC
...
...
@@ -83,7 +91,7 @@ CFLAGS += -Wall -pedantic $(fpic) $(PLATFORM_DEFINES)
CFLAGS
+=
LFLAGS
:=
L
IB
S
:
=
-lm
L
DFLAG
S
+
=
$(LIBM)
ifeq
($(platform), qnx)
CFLAGS
+=
-Wc
,-std
=
gnu99
...
...
@@ -115,7 +123,7 @@ $(TARGET): $(OBJECTS)
ifeq
($(STATIC_LINKING), 1)
$(AR)
rcs
$@
$(OBJECTS)
else
$(CC)
$(fpic)
$(SHARED)
$(INCLUDES)
$(LFLAGS)
-o
$@
$(OBJECTS)
$(L
IB
S)
$(CC)
$(fpic)
$(SHARED)
$(INCLUDES)
$(LFLAGS)
-o
$@
$(OBJECTS)
$(L
DFLAG
S)
endif
%.o
:
%.c
...
...
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