mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2024-12-22 22:32:22 +00:00
33 lines
527 B
Makefile
33 lines
527 B
Makefile
# 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
|