github.com/0chain/gosdk@v1.17.11/_util/herumi_darwin.mk (about)

     1  ifndef PLATFORM
     2  $(error PLATFORM is not set. Unable to add platform specific targets)
     3  endif
     4  
     5  ifneq ($(PLATFORM), darwin)
     6  $(error PLATFORM doesn't match darwin)
     7  endif
     8  
     9  .PHONY: install-herumi-deps install-gmp install-openssl upgrade-gmp upgrade-openssl
    10  
    11  install-herumi-deps: install-openssl install-gmp
    12  
    13  install-openssl:
    14  	@echo "Installing openssl ..."
    15  	brew install openssl
    16  	$(shell sudo ln -sf /usr/local/opt/openssl/lib/libcrypto.dylib /usr/local/lib/)
    17  
    18  upgrade-openssl:
    19  	@echo "Upgrading openssl ..."
    20  	brew upgrade openssl
    21  	$(shell sudo ln -sf /usr/local/opt/openssl/lib/libcrypto.dylib /usr/local/lib/)
    22  
    23  install-gmp:
    24  	@echo "Installing gmp ..."
    25  	brew install gmp
    26  	$(shell sudo ln -sf /usr/local/Cellar/gmp/*/lib /usr/local/lib)
    27  
    28  upgrade-gmp:
    29  	@echo "Upgrading gmp ..."
    30  	brew upgrade gmp
    31  	$(shell sudo ln -sf /usr/local/Cellar/gmp/*/lib /usr/local/lib)
    32  
    33  ldload-herumi:
    34  	@echo "Loading herumi library - darwin"