Add make option ZT_ENABLE_CLUSTER and disable it in default Linux build.
This commit is contained in:
@@ -13,6 +13,11 @@ ifeq ($(ZT_OFFICIAL_RELEASE),1)
|
|||||||
DEFS+=-DZT_OFFICIAL_RELEASE
|
DEFS+=-DZT_OFFICIAL_RELEASE
|
||||||
endif
|
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
|
# "make debug" is a shortcut for this
|
||||||
ifeq ($(ZT_DEBUG),1)
|
ifeq ($(ZT_DEBUG),1)
|
||||||
DEFS+=-DZT_TRACE
|
DEFS+=-DZT_TRACE
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ endif
|
|||||||
UNAME_M=$(shell $(CC) -dumpmachine | cut -d '-' -f 1)
|
UNAME_M=$(shell $(CC) -dumpmachine | cut -d '-' -f 1)
|
||||||
|
|
||||||
INCLUDES=
|
INCLUDES=
|
||||||
DEFS=-DZT_ENABLE_CLUSTER
|
DEFS=
|
||||||
LDLIBS?=
|
LDLIBS?=
|
||||||
|
|
||||||
include objects.mk
|
include objects.mk
|
||||||
@@ -70,6 +70,11 @@ ifeq ($(ZT_ENABLE_NETWORK_CONTROLLER),1)
|
|||||||
OBJS+=controller/SqliteNetworkController.o
|
OBJS+=controller/SqliteNetworkController.o
|
||||||
endif
|
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
|
# "make debug" is a shortcut for this
|
||||||
ifeq ($(ZT_DEBUG),1)
|
ifeq ($(ZT_DEBUG),1)
|
||||||
DEFS+=-DZT_TRACE
|
DEFS+=-DZT_TRACE
|
||||||
|
|||||||
@@ -32,6 +32,11 @@ ifeq ($(ZT_OFFICIAL_RELEASE),1)
|
|||||||
CODESIGN_INSTALLER_CERT="Developer ID Installer: ZeroTier Networks LLC (8ZD9JUCZ4V)"
|
CODESIGN_INSTALLER_CERT="Developer ID Installer: ZeroTier Networks LLC (8ZD9JUCZ4V)"
|
||||||
endif
|
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)
|
ifeq ($(ZT_AUTO_UPDATE),1)
|
||||||
DEFS+=-DZT_AUTO_UPDATE
|
DEFS+=-DZT_AUTO_UPDATE
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user