Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Libump
Commits
91370489
Commit
91370489
authored
Oct 27, 2012
by
Dmitriy Beykun
Browse files
libump: modified makefile to link library with libdrm and libdri2.
parent
33f79c0e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
91370489
...
...
@@ -17,11 +17,10 @@
UMP_DIR
?=
.
UMP_LIB
?=
libUMP
UDD_OS
?=
linux
CROSS_COMPILE
?=
arm-none-linux-gnueabi-
TARGET_CC
?=
$(CROSS_COMPILE)
gcc
TARGET_AR
?=
$(CROSS_COMPILE)
ar
CFLAGS
+=
-I
$(UMP_DIR)
/include
-I
$(UMP_DIR)
/include/ump
-Wall
-march
=
armv
6
-mthumb-interwork
-fno-strict-aliasing
-Wno-strict-aliasing
-Wno-long-long
-O3
CFLAGS
+=
-I
$(UMP_DIR)
/include
-I
$(UMP_DIR)
/include/ump
-Wall
-march
=
armv
7-a
-mthumb-interwork
-fno-strict-aliasing
-fPIC
-Wno-strict-aliasing
-Wno-long-long
-O3
LDFLAGS
+=
-Wl
,--no-as-needed
-ldri2
-ldrm
-lXfixes
include
ump.mak
%.o
:
%.c
...
...
@@ -30,7 +29,7 @@ include ump.mak
UMP_OBJS
:=
$(UMP_SRCS:.c=.o)
libUMP.so
:
$(UMP_OBJS)
$(TARGET_CC)
-shared
-o
$@
$(UMP_OBJS)
$(CFLAGS)
$(TARGET_CC)
-shared
-o
$@
$(UMP_OBJS)
$(CFLAGS)
$(LDFLAGS)
libUMP.a
:
$(UMP_OBJS)
$(TARGET_AR)
rcs
$@
$(UMP_OBJS)
...
...
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