aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTheCharlatan <seb.kung@gmail.com>2018-10-16 03:39:17 +0200
committerTheCharlatan <seb.kung@gmail.com>2018-10-16 03:39:17 +0200
commite623f2b225106933cf26330fc4814d50a5d72bfb (patch)
tree9c5b3f0537b66fce25e4fd0cf74c04c76c17ca12 /Makefile
parentMerge pull request #4502 (diff)
downloadmonero-e623f2b225106933cf26330fc4814d50a5d72bfb.tar.xz
Add building with depends to the Makefile
Depends can now be compiled with `make depends target=$triple`, where $triple is one of the supported build targets. Adapt the Makefile for this change, remove not needed windows deps from depends setup description.
Diffstat (limited to '')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 40b8839cc..c858412e6 100644
--- a/Makefile
+++ b/Makefile
@@ -41,6 +41,10 @@ endif
all: release-all
+depends:
+ cd contrib/depends && $(MAKE) HOST=$(target) && cd ../.. && mkdir -p build/$(target)/release
+ cd build/$(target)/release && cmake -DCMAKE_TOOLCHAIN_FILE=$(CURDIR)/contrib/depends/$(target)/share/toolchain.cmake ../../.. && $(MAKE)
+
cmake-debug:
mkdir -p $(builddir)/debug
cd $(builddir)/debug && cmake -D CMAKE_BUILD_TYPE=Debug $(topdir)