summaryrefslogtreecommitdiff
path: root/make-linux.mk
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2016-04-19 09:35:32 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2016-04-19 09:35:32 -0700
commitaffbca74b41a48e6a485d69409936d7c2bd12858 (patch)
treea016412226ab29a4ec6085cf44ba290f92d0962a /make-linux.mk
parent4c455876f92c629b015cbfc6d904dc8c2d12eca2 (diff)
downloadinfinitytier-affbca74b41a48e6a485d69409936d7c2bd12858.tar.gz
infinitytier-affbca74b41a48e6a485d69409936d7c2bd12858.zip
Clean up Linux makefile and remove doc target from default since it requires rst2man. Add doc target to official instead.
Diffstat (limited to 'make-linux.mk')
-rw-r--r--make-linux.mk13
1 files changed, 6 insertions, 7 deletions
diff --git a/make-linux.mk b/make-linux.mk
index 0b59b5b0..3ead1be2 100644
--- a/make-linux.mk
+++ b/make-linux.mk
@@ -9,11 +9,12 @@
#
# Targets
# one: zerotier-one and symlinks (cli and idtool)
+# doc: builds manpages, requires rst2man somewhere in PATH
# all: builds 'one'
# selftest: zerotier-selftest
# debug: builds 'one' and 'selftest' with tracing and debug flags
-# installer: ZeroTierOneInstaller-... and packages (if possible)
-# official: builds 'one' and 'installer'
+# installer: builds installers and packages (RPM/DEB/etc.) if possible
+# official: cleans and then builds 'one', 'installer', and 'doc'
# clean: removes all built files, objects, other trash
#
@@ -37,7 +38,6 @@ LDLIBS?=
include objects.mk
-# "make official" is a shortcut for this
ifeq ($(ZT_OFFICIAL_RELEASE),1)
DEFS+=-DZT_OFFICIAL_RELEASE
ZT_USE_MINIUPNPC=1
@@ -48,19 +48,16 @@ ifeq ($(ZT_USE_MINIUPNPC),1)
OBJS+=ext/libnatpmp/natpmp.o ext/libnatpmp/getgateway.o ext/miniupnpc/connecthostport.o ext/miniupnpc/igd_desc_parse.o ext/miniupnpc/minisoap.o ext/miniupnpc/minissdpc.o ext/miniupnpc/miniupnpc.o ext/miniupnpc/miniwget.o ext/miniupnpc/minixml.o ext/miniupnpc/portlistingparse.o ext/miniupnpc/receivedata.o ext/miniupnpc/upnpcommands.o ext/miniupnpc/upnpdev.o ext/miniupnpc/upnperrors.o ext/miniupnpc/upnpreplyparse.o osdep/PortMapper.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
LDLIBS+=-L/usr/local/lib -lsqlite3
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
CFLAGS+=-Wall -g -pthread $(INCLUDES) $(DEFS)
@@ -90,7 +87,7 @@ endif
#LDFLAGS=
#STRIP=echo
-all: one doc
+all: one
one: $(OBJS) service/OneService.o one.o osdep/LinuxEthernetTap.o
$(CXX) $(CXXFLAGS) $(LDFLAGS) -o zerotier-one $(OBJS) service/OneService.o one.o osdep/LinuxEthernetTap.o $(LDLIBS)
@@ -130,7 +127,9 @@ official: FORCE
make ZT_OFFICIAL_RELEASE=1 clean
make -j 4 ZT_OFFICIAL_RELEASE=1 one
make ZT_OFFICIAL_RELEASE=1 installer
+ make ZT_OFFICIAL_RELEASE=1 doc
+# Includes 'doc' target
include ${DOC_DIR}/module.mk
FORCE: