You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
693 B
36 lines
693 B
# Common makefile -- loads make rules for each platform |
|
|
|
OSTYPE=$(shell uname -s) |
|
|
|
ifeq ($(OSTYPE),Darwin) |
|
include make-mac.mk |
|
endif |
|
|
|
ifeq ($(OSTYPE),Linux) |
|
include make-linux.mk |
|
endif |
|
|
|
ifeq ($(OSTYPE),FreeBSD) |
|
CC=clang |
|
CXX=clang++ |
|
ZT_BUILD_PLATFORM=7 |
|
include make-bsd.mk |
|
endif |
|
ifeq ($(OSTYPE),OpenBSD) |
|
CC=clang |
|
CXX=clang++ |
|
ZT_BUILD_PLATFORM=9 |
|
include make-bsd.mk |
|
endif |
|
|
|
ifeq ($(OSTYPE),NetBSD) |
|
include make-netbsd.mk |
|
endif |
|
|
|
drone: |
|
@echo "rendering .drone.yaml from .drone.jsonnet" |
|
drone jsonnet --format --stream |
|
drone sign zerotier/ZeroTierOne --save |
|
|
|
clang-format: |
|
find node osdep service tcp-proxy nonfree/controller -iname '*.cpp' -o -iname '*.hpp' | xargs clang-format -i
|
|
|