Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
Olm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nheko Reborn
Olm
Commits
44f78cf4
Unverified
Commit
44f78cf4
authored
6 years ago
by
Hubert Chathi
Committed by
GitHub
6 years ago
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' into dbkr/wasm
parents
0a25ec13
713e9aeb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Makefile
+22
-14
22 additions, 14 deletions
Makefile
with
22 additions
and
14 deletions
Makefile
+
22
−
14
View file @
44f78cf4
...
...
@@ -14,9 +14,19 @@ AFL_CC = afl-gcc
AFL_CXX
=
afl-g++
AR
=
ar
RELEASE_TARGET
:=
$(
BUILD_DIR
)
/libolm.so.
$(
VERSION
)
UNAME
:=
$(
shell
uname
)
ifeq
($(UNAME),Darwin)
SO
:=
dylib
OLM_LDFLAGS
:=
else
SO
:=
so
OLM_LDFLAGS
:=
-Wl
,-soname,libolm.so.
$(
MAJOR
)
\
-Wl
,--version-script,version_script.ver
endif
RELEASE_TARGET
:=
$(
BUILD_DIR
)
/libolm.
$(
SO
)
.
$(
VERSION
)
STATIC_RELEASE_TARGET
:=
$(
BUILD_DIR
)
/libolm.a
DEBUG_TARGET
:=
$(
BUILD_DIR
)
/libolm_debug.
so
.
$(
VERSION
)
DEBUG_TARGET
:=
$(
BUILD_DIR
)
/libolm_debug.
$(
SO
)
.
$(
VERSION
)
JS_WASM_TARGET
:=
javascript/olm.js
JS_ASMJS_TARGET
:=
javascript/olm_legacy.js
...
...
@@ -148,20 +158,18 @@ lib: $(RELEASE_TARGET)
$(RELEASE_TARGET)
:
$(RELEASE_OBJECTS)
$(
CXX
)
$(
LDFLAGS
)
--shared
-fPIC
\
-Wl
,-soname,libolm.so.
$(
MAJOR
)
\
-Wl
,--version-script,version_script.ver
\
$(
OLM_LDFLAGS
)
\
$(
OUTPUT_OPTION
)
$(
RELEASE_OBJECTS
)
ln
-sf
libolm.
so
.
$(
VERSION
)
$(
BUILD_DIR
)
/libolm.
so
.
$(
MAJOR
)
ln
-sf
libolm.
$(
SO
)
.
$(
VERSION
)
$(
BUILD_DIR
)
/libolm.
$(
SO
)
.
$(
MAJOR
)
debug
:
$(DEBUG_TARGET)
.PHONY
:
debug
$(DEBUG_TARGET)
:
$(DEBUG_OBJECTS)
$(
CXX
)
$(
LDFLAGS
)
--shared
-fPIC
\
-Wl
,-soname,libolm_debug.so.
$(
MAJOR
)
\
-Wl
,--version-script,version_script.ver
\
$(
OLM_LDFLAGS
)
\
$(
OUTPUT_OPTION
)
$(
DEBUG_OBJECTS
)
ln
-sf
libolm_debug.
so
.
$(
VERSION
)
$(
BUILD_DIR
)
/libolm_debug.
so
.
$(
MAJOR
)
ln
-sf
libolm_debug.
$(
SO
)
.
$(
VERSION
)
$(
BUILD_DIR
)
/libolm_debug.
$(
SO
)
.
$(
MAJOR
)
static
:
$(STATIC_RELEASE_TARGET)
.PHONY
:
static
...
...
@@ -224,16 +232,16 @@ install-headers: $(PUBLIC_HEADERS)
install-debug
:
debug install-headers
test
-d
$(
DESTDIR
)$(
PREFIX
)
/lib
||
$(
call
mkdir
,
$(
DESTDIR
)$(
PREFIX
)
/lib
)
install
-Dm755
$(
DEBUG_TARGET
)
$(
DESTDIR
)$(
PREFIX
)
/lib/libolm_debug.
so
.
$(
VERSION
)
ln
-s
libolm_debug.
so
.
$(
VERSION
)
$(
DESTDIR
)$(
PREFIX
)
/lib/libolm_debug.
so
.
$(
MAJOR
)
ln
-s
libolm_debug.
so
.
$(
VERSION
)
$(
DESTDIR
)$(
PREFIX
)
/lib/libolm_debug.
so
install
-Dm755
$(
DEBUG_TARGET
)
$(
DESTDIR
)$(
PREFIX
)
/lib/libolm_debug.
$(
SO
)
.
$(
VERSION
)
ln
-s
libolm_debug.
$(
SO
)
.
$(
VERSION
)
$(
DESTDIR
)$(
PREFIX
)
/lib/libolm_debug.
$(
SO
)
.
$(
MAJOR
)
ln
-s
libolm_debug.
$(
SO
)
.
$(
VERSION
)
$(
DESTDIR
)$(
PREFIX
)
/lib/libolm_debug.
$(
SO
)
.PHONY
:
install-debug
install
:
lib install-headers
test
-d
$(
DESTDIR
)$(
PREFIX
)
/lib
||
$(
call
mkdir
,
$(
DESTDIR
)$(
PREFIX
)
/lib
)
install
-Dm755
$(
RELEASE_TARGET
)
$(
DESTDIR
)$(
PREFIX
)
/lib/libolm.
so
.
$(
VERSION
)
ln
-s
libolm.
so
.
$(
VERSION
)
$(
DESTDIR
)$(
PREFIX
)
/lib/libolm.
so
.
$(
MAJOR
)
ln
-s
libolm.
so
.
$(
VERSION
)
$(
DESTDIR
)$(
PREFIX
)
/lib/libolm.
so
install
-Dm755
$(
RELEASE_TARGET
)
$(
DESTDIR
)$(
PREFIX
)
/lib/libolm.
$(
SO
)
.
$(
VERSION
)
ln
-s
libolm.
$(
SO
)
.
$(
VERSION
)
$(
DESTDIR
)$(
PREFIX
)
/lib/libolm.
$(
SO
)
.
$(
MAJOR
)
ln
-s
libolm.
$(
SO
)
.
$(
VERSION
)
$(
DESTDIR
)$(
PREFIX
)
/lib/libolm.
$(
SO
)
.PHONY
:
install
clean
:
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment