Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
8e55a314
Commit
8e55a314
authored
May 06, 2022
by
Nicolas "Norswap" Laurent
Committed by
norswap
May 10, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
makefile improvements for MacOS
parent
8c3a89f6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
10 deletions
+14
-10
Makefile
Makefile
+14
-10
No files found.
Makefile
View file @
8e55a314
...
...
@@ -15,18 +15,22 @@ submodules:
unicorn/build
:
unicorn/CMakeLists.txt
mkdir
-p
unicorn/build
cd
unicorn/build
&&
cmake ..
-DUNICORN_ARCH
=
mips
-DCMAKE_BUILD_TYPE
=
Release
# Not sure why, but the second invocation is needed for fresh installs on MacOS.
if
[
"
$(uname)
"
==
"Darwin"
]
;
then
\
cd
unicorn/build
&&
cmake ..
-DUNICORN_ARCH
=
mips
-DCMAKE_BUILD_TYPE
=
Release
;
\
fi
# Rebuild whenever anything in the directory changes.
unicorn/build/libunicorn.so
unicorn/build/libunicorn.so.1
:
unicorn/build unicorn
# Rebuild whenever anything in the
unicorn/
directory changes.
unicorn/build/libunicorn.so
:
unicorn/build unicorn
cd
unicorn/build
&&
make
-j8
# The Go linker / runtime expects
these to be there!
cp
unicorn/build/libunicorn.so.1 unicorn
cp
unicorn/build/libunicorn.so unicorn
#
Update timestamp to make it more recent than the directory
touch
unicorn/build/libunicorn.so.1
# The Go linker / runtime expects
dynamic libraries in the unicorn/ dir.
find ./unicorn/build
-name
"libunicorn.*"
| xargs
-L
1
-I
{}
cp
{}
./unicorn/
# Update timestamp on libunicorn.so to make it more recent than the build/ dir.
#
On Mac this will create a new empty file
(
dyn libraries are .dylib
)
, but works
# fine for the purpose of avoiding recompilation.
touch
unicorn/build/libunicorn.so
libunicorn
:
unicorn/build/libunicorn.so
unicorn/build/libunicorn.so.1
libunicorn
:
unicorn/build/libunicorn.so
.PHONY
:
libunicorn
libunicorn_rebuild
:
...
...
@@ -51,7 +55,7 @@ contracts: nodejs
.PHONY
:
contracts
nodejs
:
if
[
-x
"
$
(command -v pnpm)"
]
;
then
\
if
[
-x
"
$
$
(command -v pnpm)"
]
;
then
\
pnpm
install
;
\
else
\
npm
install
;
\
...
...
@@ -114,7 +118,7 @@ clean:
rm
-f
mipigo/minigeth.bin
rm
-f
mipsevm/mipsevm
rm
-rf
artifacts
rm
-
r
rm
-
f
unicorn/libunicorn.
*
.PHONY
:
clean
mrproper
:
clean
...
...
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