Adds support for USE_GIT_URLS environment variable

This commit is contained in:
Sven Steinbauer 2015-06-22 16:34:03 +01:00 committed by pancake
parent c6b0a5307f
commit 5767ac2e48
2 changed files with 8 additions and 1 deletions

View File

@ -14,6 +14,12 @@ else
SILENT=
endif
ifndef USE_GIT_URLS
GIT_PREFIX=https://www.
else
GIT_PREFIX=git://
endif
# verbose error messages everywhere
STATIC_DEBUG=0

View File

@ -1,3 +1,4 @@
include ../global.mk
include ../config-user.mk
include ../mk/${COMPILER}.mk
@ -5,7 +6,7 @@ WGET?=wget
CS_VER=3.0
CS_TAR=http://capstone-engine.org/download/$(CS_VER)/capstone-$(CS_VER).tgz
CS_TAR=
CS_URL=https://www.github.com/aquynh/capstone.git
CS_URL=$(GIT_PREFIX)github.com/aquynh/capstone.git
CS_UPD=20150619
CS_BRA=next
CS_TIP=a5540d843b71fdeb72a04acbb7c67bd7a3459f1a