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
058f3cd2
Commit
058f3cd2
authored
Nov 18, 2012
by
Jari Helaakoski
Browse files
libump: introduce install target
parent
91370489
Changes
1
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
058f3cd2
...
...
@@ -19,6 +19,9 @@ UMP_LIB ?= libUMP
UDD_OS
?=
linux
TARGET_CC
?=
$(CROSS_COMPILE)
gcc
TARGET_AR
?=
$(CROSS_COMPILE)
ar
INSTALL
=
install
-m
644
includedir
?=
/usr/include
libdir
?=
/lib
CFLAGS
+=
-I
$(UMP_DIR)
/include
-I
$(UMP_DIR)
/include/ump
-Wall
-march
=
armv7-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
...
...
@@ -33,8 +36,19 @@ libUMP.so: $(UMP_OBJS)
libUMP.a
:
$(UMP_OBJS)
$(TARGET_AR)
rcs
$@
$(UMP_OBJS)
install
:
all
$(INSTALL)
libUMP.so
$(libdir)
/libUMP.so
$(INSTALL)
include/ump/ump.h
$(includedir)
/ump/ump.h
$(INSTALL)
include/ump/ump_platform.h
$(includedir)
/ump/ump_platform.h
$(INSTALL)
include/ump/ump_debug.h
$(includedir)
/ump/ump_debug.h
$(INSTALL)
include/ump/ump_osu.h
$(includedir)
/ump/ump_osu.h
$(INSTALL)
include/ump/ump_ref_drv.h
$(includedir)
/ump/ump_ref_drv.h
$(INSTALL)
include/ump/ump_uk_types.h
$(includedir)
/ump/ump_uk_types.h
.DEFAULT_GOAL
=
all
all
:
libUMP.so libUMP.a
clean
:
-
rm
-f
$(UMP_OBJS)
libUMP.so libUMP.a
.PHONY
:
all clean install
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