From d4574fe1effda2ab2fd76b15f7f1c1cf1aab4d73 Mon Sep 17 00:00:00 2001 From: Mikal Villa Date: Fri, 14 Sep 2018 20:30:07 +0200 Subject: [PATCH] Fixed makefile to work with Darwin/Mac OS X --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index c41be85..7b8b3ec 100644 --- a/Makefile +++ b/Makefile @@ -8,6 +8,8 @@ FLAGS = -Wall -std=c++11 -Wno-misleading-indentation ifeq ($(UNAME),Linux) FLAGS += -g +else ifeq ($(UNAME),Darwin) + FLAGS += -g else ifeq ($(UNAME),FreeBSD) FLAGS += -g else @@ -23,6 +25,10 @@ LIBS = $(I2PD_PATH)/libi2pd.a -lboost_system$(BOOST_SUFFIX) -lboost_date_time$(B ifeq ($(UNAME),Linux) LIBS += -lrt -lpthread +else ifeq ($(UNAME),Darwin) + LIBS += -lpthread + LDFLAGS += -L/usr/local/opt/openssl@1.1/lib -L/usr/local/lib + INCFLAGS += -I/usr/local/opt/openssl@1.1/include -I/usr/local/include else ifeq ($(UNAME),FreeBSD) LIBS += -lthr -lpthread LDFLAGS += -L/usr/local/lib