summaryrefslogtreecommitdiff
path: root/make-mac.mk
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2014-10-24 08:48:44 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2014-10-24 08:48:44 -0700
commit5c7cd53f13650c5dc2ef117f0ae70d5760a2214e (patch)
treebf56fc0c994ed9bd4baec53c092650641cca35de /make-mac.mk
parent4fbb098daa349a663015426d1210f1b59d0478c4 (diff)
downloadinfinitytier-5c7cd53f13650c5dc2ef117f0ae70d5760a2214e.tar.gz
infinitytier-5c7cd53f13650c5dc2ef117f0ae70d5760a2214e.zip
Testnet sort of works! spins up supernodes.
Diffstat (limited to 'make-mac.mk')
-rw-r--r--make-mac.mk20
1 files changed, 9 insertions, 11 deletions
diff --git a/make-mac.mk b/make-mac.mk
index 2eced36f..0ca12c7b 100644
--- a/make-mac.mk
+++ b/make-mac.mk
@@ -5,24 +5,29 @@ INCLUDES=
DEFS=
LIBS=
+include objects.mk
+OBJS+=osnet/BSDRoutingTable.o osnet/OSXEthernetTap.o osnet/OSXEthernetTapFactory.o
+TESTNET_OBJS=testnet/SimNet.o testnet/SimNetSocketManager.o testnet/TestEthernetTap.o testnet/TestEthernetTapFactory.o testnet/TestRoutingTable.o
+
# Disable codesign since open source users will not have ZeroTier's certs
CODESIGN=echo
CODESIGN_CERT=
ifeq ($(ZT_OFFICIAL_RELEASE),1)
+ # For use by ZeroTier Networks -- sign with developer cert
ZT_AUTO_UPDATE=1
DEFS+=-DZT_OFFICIAL_RELEASE
CODESIGN=codesign
CODESIGN_CERT="Developer ID Application: ZeroTier Networks LLC (8ZD9JUCZ4V)"
endif
+
ifeq ($(ZT_AUTO_UPDATE),1)
DEFS+=-DZT_AUTO_UPDATE
endif
-# Enable SSE-optimized Salsa20
+# Enable SSE-optimized Salsa20 -- all Intel macs support SSE2
DEFS+=-DZT_SALSA20_SSE
-# "make debug" is a shortcut for this
ifeq ($(ZT_DEBUG),1)
# DEFS+=-DZT_TRACE -DZT_LOG_STDOUT
CFLAGS=-Wall -g -pthread $(INCLUDES) $(DEFS)
@@ -37,10 +42,6 @@ endif
CXXFLAGS=$(CFLAGS) -fno-rtti
-include objects.mk
-OBJS+=osnet/BSDRoutingTable.o osnet/OSXEthernetTap.o osnet/OSXEthernetTapFactory.o
-TESTNET_OBJS=testnet/SimNet.o testnet/SimNetSocketManager.o testnet/TestEthernetTap.o testnet/TestEthernetTapFactory.o testnet/TestRoutingTable.o
-
all: one
one: $(OBJS) main.o
@@ -53,7 +54,7 @@ selftest: $(OBJS) sefltest.o
$(CXX) $(CXXFLAGS) -o zerotier-selftest selftest.o $(OBJS) $(LIBS)
$(STRIP) zerotier-selftest
-testnet: $(OBJS) $(TESTNET_OBJS) testnet.o
+testnet: $(TESTNET_OBJS) $(OBJS) testnet.o
$(CXX) $(CXXFLAGS) -o zerotier-testnet testnet.o $(OBJS) $(TESTNET_OBJS) $(LIBS)
$(STRIP) zerotier-testnet
@@ -67,10 +68,7 @@ mac-ui: FORCE
$(CODESIGN) -vvv "build-ZeroTierUI-release/ZeroTier One.app"
clean:
- rm -rf *.dSYM testnet.o selftest.o build-* $(OBJS) $(TEST_OBJS) zerotier-* ZeroTierOneInstaller-* "ZeroTier One.zip" "ZeroTier One.dmg"
-
-debug: FORCE
- make -j 4 ZT_DEBUG=1
+ rm -rf *.dSYM testnet.o selftest.o build-* $(OBJS) $(TESTNET_OBJS) zerotier-* ZeroTierOneInstaller-* "ZeroTier One.zip" "ZeroTier One.dmg"
# For our use -- builds official signed binary, packages in installer and download DMG
official: FORCE