summaryrefslogtreecommitdiff
path: root/make-mac.mk
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2015-07-28 14:32:02 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2015-07-28 14:32:02 -0700
commitfe6d5b1402307e1be80e6d78b765cf5175288c1f (patch)
treec568c74a579f363a9bc2f7439d88173b06f00734 /make-mac.mk
parentd2bfdfa6e79e54ba1d5127a75a56f7ec57415cf9 (diff)
downloadinfinitytier-fe6d5b1402307e1be80e6d78b765cf5175288c1f.tar.gz
infinitytier-fe6d5b1402307e1be80e6d78b765cf5175288c1f.zip
UPNP/NAT-PMP support with libminiupnpc (if built with it) -- GitHub issue #64
Diffstat (limited to 'make-mac.mk')
-rw-r--r--make-mac.mk19
1 files changed, 13 insertions, 6 deletions
diff --git a/make-mac.mk b/make-mac.mk
index 02d42252..55b117e6 100644
--- a/make-mac.mk
+++ b/make-mac.mk
@@ -11,7 +11,7 @@ LIBS=
ARCH_FLAGS=-arch x86_64
include objects.mk
-OBJS+=osdep/OSXEthernetTap.o
+OBJS+=osdep/OSXEthernetTap.o
# Disable codesign since open source users will not have ZeroTier's certs
CODESIGN=echo
@@ -21,7 +21,8 @@ CODESIGN_INSTALLER_CERT=
# For internal use only -- signs everything with ZeroTier's developer cert
ifeq ($(ZT_OFFICIAL_RELEASE),1)
- DEFS+=-DZT_OFFICIAL_RELEASE -DZT_AUTO_UPDATE
+ DEFS+=-DZT_OFFICIAL_RELEASE -DZT_AUTO_UPDATE
+ ZT_USE_MINIUPNPC=1
CODESIGN=codesign
PRODUCTSIGN=productsign
CODESIGN_APP_CERT="Developer ID Application: ZeroTier Networks LLC (8ZD9JUCZ4V)"
@@ -29,19 +30,25 @@ ifeq ($(ZT_OFFICIAL_RELEASE),1)
endif
ifeq ($(ZT_AUTO_UPDATE),1)
- DEFS+=-DZT_AUTO_UPDATE
+ DEFS+=-DZT_AUTO_UPDATE
+endif
+
+ifeq ($(ZT_USE_MINIUPNPC),1)
+ DEFS+=-DZT_USE_MINIUPNPC
+ LIBS+=/usr/local/lib/libminiupnpc.a
+ OBJS+=osdep/UPNPClient.o
endif
# Build with ZT_ENABLE_NETWORK_CONTROLLER=1 to build with the Sqlite network controller
ifeq ($(ZT_ENABLE_NETWORK_CONTROLLER),1)
- DEFS+=-DZT_ENABLE_NETWORK_CONTROLLER
+ DEFS+=-DZT_ENABLE_NETWORK_CONTROLLER
LIBS+=-L/usr/local/lib -lsqlite3
- OBJS+=controller/SqliteNetworkController.o
+ OBJS+=controller/SqliteNetworkController.o
endif
# Debug mode -- dump trace output, build binary with -g
ifeq ($(ZT_DEBUG),1)
- DEFS+=-DZT_TRACE
+ DEFS+=-DZT_TRACE
CFLAGS+=-Wall -g -pthread $(INCLUDES) $(DEFS)
STRIP=echo
# The following line enables optimization for the crypto code, since