mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-29 20:27:49 +02:00
Add support mac m1 and fix homebrew paths
In new Macbooks, homebrew has the /opt/homebrew patch, not /usr/local/
This commit is contained in:
parent
36eddd48c3
commit
3ddb370718
1 changed files with 15 additions and 3 deletions
|
@ -1,5 +1,13 @@
|
|||
ARCH_TARGET ?= $(shell uname -m)
|
||||
|
||||
# root directory holding homebrew
|
||||
BREWROOT = /usr/local
|
||||
ifeq ($(ARCH_TARGET),arm64)
|
||||
BREWROOT = /opt/homebrew
|
||||
endif
|
||||
ifeq ($(ARCH_TARGET),amd64)
|
||||
BREWROOT = /usr/local
|
||||
endif
|
||||
|
||||
BOOSTROOT = ${BREWROOT}/opt/boost
|
||||
SSLROOT = ${BREWROOT}/opt/openssl@1.1
|
||||
UPNPROOT = ${BREWROOT}/opt/miniupnpc
|
||||
|
@ -34,8 +42,12 @@ endif
|
|||
# http://www.hutsby.net/2011/08/macs-with-aes-ni.html
|
||||
# Seems like all recent Mac's have AES-NI, after firmware upgrade 2.2
|
||||
# Found no good way to detect it from command line. TODO: Might be some osx sysinfo magic
|
||||
ifeq ($(USE_AESNI),yes)
|
||||
CXXFLAGS += -D__AES__ -maes
|
||||
ifeq ($(ARCH_TARGET),amd64)
|
||||
ifeq ($(USE_AESNI),yes)
|
||||
CXXFLAGS += -D__AES__ -maes
|
||||
else
|
||||
CXXFLAGS += -msse
|
||||
endif
|
||||
endif
|
||||
|
||||
install: all
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue