summaryrefslogtreecommitdiff
path: root/make-mac.mk
diff options
context:
space:
mode:
authorGrant Limberg <grant.limberg@zerotier.com>2018-01-03 11:55:45 -0800
committerGrant Limberg <grant.limberg@zerotier.com>2018-01-03 11:56:20 -0800
commit381857ea492a04930eab12591e5618c951c7ba32 (patch)
tree106287e04f4c13fcd11589dbcf97583842b4d449 /make-mac.mk
parent77930607230eccdcb7011f6c70465bab3c32cc38 (diff)
downloadinfinitytier-381857ea492a04930eab12591e5618c951c7ba32.tar.gz
infinitytier-381857ea492a04930eab12591e5618c951c7ba32.zip
macOS: add libcurl to libraries when ZT_VAULT_SUPPORT=1 is specified on the make command line
Diffstat (limited to 'make-mac.mk')
-rw-r--r--make-mac.mk7
1 files changed, 6 insertions, 1 deletions
diff --git a/make-mac.mk b/make-mac.mk
index 60aa465a..1178437a 100644
--- a/make-mac.mk
+++ b/make-mac.mk
@@ -63,6 +63,11 @@ ifeq ($(ZT_TRACE),1)
DEFS+=-DZT_TRACE
endif
+ifeq ($(ZT_VAULT_SUPPORT),1)
+ DEFS+=-DZT_VAULT_SUPPORT=1
+ LIBS+=-lcurl
+endif
+
CXXFLAGS=$(CFLAGS) -std=c++11 -stdlib=libc++
all: one macui
@@ -70,7 +75,7 @@ all: one macui
ext/x64-salsa2012-asm/salsa2012.o:
$(CC) $(CFLAGS) -c ext/x64-salsa2012-asm/salsa2012.s -o ext/x64-salsa2012-asm/salsa2012.o
-one: $(CORE_OBJS) $(ONE_OBJS) one.o
+one: $(CORE_OBJS) $(ONE_OBJS) one.o
$(CXX) $(CXXFLAGS) -o zerotier-one $(CORE_OBJS) $(ONE_OBJS) one.o $(LIBS)
$(STRIP) zerotier-one
ln -sf zerotier-one zerotier-idtool