diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-11-16 16:22:41 -0800 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-11-16 16:22:41 -0800 |
| commit | 906e49ff7200f15d99d0bd2f9d87f484738929b0 (patch) | |
| tree | 49165baad348de39e1a901962d1db3ed7adc7c19 | |
| parent | e4d1aba3f82c1265579b0b9dfba22903e34ae7d1 (diff) | |
| download | infinitytier-906e49ff7200f15d99d0bd2f9d87f484738929b0.tar.gz infinitytier-906e49ff7200f15d99d0bd2f9d87f484738929b0.zip | |
Add make option ZT_ENABLE_CLUSTER and disable it in default Linux build.
| -rw-r--r-- | make-freebsd.mk | 5 | ||||
| -rw-r--r-- | make-linux.mk | 7 | ||||
| -rw-r--r-- | make-mac.mk | 5 |
3 files changed, 16 insertions, 1 deletions
diff --git a/make-freebsd.mk b/make-freebsd.mk index 1322dd53..022540d2 100644 --- a/make-freebsd.mk +++ b/make-freebsd.mk @@ -13,6 +13,11 @@ ifeq ($(ZT_OFFICIAL_RELEASE),1) DEFS+=-DZT_OFFICIAL_RELEASE endif +# Build with ZT_ENABLE_CLUSTER=1 to build with cluster support +ifeq ($(ZT_ENABLE_CLUSTER),1) + DEFS+=-DZT_ENABLE_CLUSTER +endif + # "make debug" is a shortcut for this ifeq ($(ZT_DEBUG),1) DEFS+=-DZT_TRACE diff --git a/make-linux.mk b/make-linux.mk index 37e7b7ef..339b548d 100644 --- a/make-linux.mk +++ b/make-linux.mk @@ -29,7 +29,7 @@ endif UNAME_M=$(shell $(CC) -dumpmachine | cut -d '-' -f 1) INCLUDES= -DEFS=-DZT_ENABLE_CLUSTER +DEFS= LDLIBS?= include objects.mk @@ -70,6 +70,11 @@ ifeq ($(ZT_ENABLE_NETWORK_CONTROLLER),1) OBJS+=controller/SqliteNetworkController.o endif +# Build with ZT_ENABLE_CLUSTER=1 to build with cluster support +ifeq ($(ZT_ENABLE_CLUSTER),1) + DEFS+=-DZT_ENABLE_CLUSTER +endif + # "make debug" is a shortcut for this ifeq ($(ZT_DEBUG),1) DEFS+=-DZT_TRACE diff --git a/make-mac.mk b/make-mac.mk index 174216fb..6ea23859 100644 --- a/make-mac.mk +++ b/make-mac.mk @@ -32,6 +32,11 @@ ifeq ($(ZT_OFFICIAL_RELEASE),1) CODESIGN_INSTALLER_CERT="Developer ID Installer: ZeroTier Networks LLC (8ZD9JUCZ4V)" endif +# Build with ZT_ENABLE_CLUSTER=1 to build with cluster support +ifeq ($(ZT_ENABLE_CLUSTER),1) + DEFS+=-DZT_ENABLE_CLUSTER +endif + ifeq ($(ZT_AUTO_UPDATE),1) DEFS+=-DZT_AUTO_UPDATE endif |
