mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-30 20:52:30 +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
|
# 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
|
BOOSTROOT = ${BREWROOT}/opt/boost
|
||||||
SSLROOT = ${BREWROOT}/opt/openssl@1.1
|
SSLROOT = ${BREWROOT}/opt/openssl@1.1
|
||||||
UPNPROOT = ${BREWROOT}/opt/miniupnpc
|
UPNPROOT = ${BREWROOT}/opt/miniupnpc
|
||||||
|
@ -34,8 +42,12 @@ endif
|
||||||
# http://www.hutsby.net/2011/08/macs-with-aes-ni.html
|
# 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
|
# 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
|
# Found no good way to detect it from command line. TODO: Might be some osx sysinfo magic
|
||||||
ifeq ($(USE_AESNI),yes)
|
ifeq ($(ARCH_TARGET),amd64)
|
||||||
CXXFLAGS += -D__AES__ -maes
|
ifeq ($(USE_AESNI),yes)
|
||||||
|
CXXFLAGS += -D__AES__ -maes
|
||||||
|
else
|
||||||
|
CXXFLAGS += -msse
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
install: all
|
install: all
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue