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
cdef3bbd
Commit
cdef3bbd
authored
May 05, 2022
by
Nicolas "Norswap" Laurent
Committed by
norswap
May 10, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avoiding re-running make in unicorn dir when nothing has changed
parent
9982d5ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
8 deletions
+16
-8
Makefile
Makefile
+16
-8
No files found.
Makefile
View file @
cdef3bbd
SHELL
:=
/bin/bash
build
:
submodules unicorn minigeth_mips minigeth_prefetch mipsevm contracts
build
:
submodules
lib
unicorn minigeth_mips minigeth_prefetch mipsevm contracts
.PHONY
:
build
submodules
:
...
...
@@ -11,22 +11,28 @@ submodules:
fi
.PHONY
:
submodules
# Approximation, use `make unicorn_rebuild` to force.
# Approximation, use `make
lib
unicorn_rebuild` to force.
unicorn/build
:
unicorn/CMakeLists.txt
mkdir
-p
unicorn/build
cd
unicorn/build
&&
cmake ..
-DUNICORN_ARCH
=
mips
-DCMAKE_BUILD_TYPE
=
Release
unicorn
:
unicorn/build
# Rebuild whenever anything in the directory changes.
unicorn/build/libunicorn.so.1 unicorn/build/libunicorn.so.2
:
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.2 unicorn
.PHONY
:
unicorn
cp
unicorn/build/libunicorn.so.1 unicorn
# Update timestamp to make them more recent than the directory
touch
unicorn/build/libunicorn.so.1
touch
unicorn/build/libunicorn.so.2
libunicorn
:
unicorn/build/libunicorn.so.1 unicorn/build/libunicorn.so.2
.PHONY
:
libunicorn
unicorn_rebuild
:
lib
unicorn_rebuild
:
touch
unicorn/CMakeLists.txt
make unicorn
.PHONY
:
unicorn_rebuild
make
lib
unicorn
.PHONY
:
lib
unicorn_rebuild
minigeth_mips
:
cd
mipigo
&&
./build.sh
...
...
@@ -108,10 +114,12 @@ clean:
rm
-f
mipigo/minigeth.bin
rm
-f
mipsevm/mipsevm
rm
-rf
artifacts
rm
-r
.PHONY
:
clean
mrproper
:
clean
rm
-rf
cache
rm
-rf
node_modules
rm
-rf
mipigo/venv
rm
-rf
unicorn/build
.PHONY
:
mrproper
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