2013-12-03 22:11:43 +00:00
|
|
|
# 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
|
2014-11-04 19:20:38 +00:00
|
|
|
|
|
|
|
ifeq ($(OSTYPE),FreeBSD)
|
2017-03-16 11:58:04 +00:00
|
|
|
CC=clang
|
|
|
|
CXX=clang++
|
2017-01-19 23:05:26 +00:00
|
|
|
ZT_BUILD_PLATFORM=7
|
|
|
|
include make-bsd.mk
|
2014-11-04 19:20:38 +00:00
|
|
|
endif
|
2015-05-15 15:48:53 +00:00
|
|
|
ifeq ($(OSTYPE),OpenBSD)
|
2021-05-06 11:04:58 +00:00
|
|
|
CC=clang
|
|
|
|
CXX=clang++
|
2017-01-19 23:05:26 +00:00
|
|
|
ZT_BUILD_PLATFORM=9
|
|
|
|
include make-bsd.mk
|
2015-05-15 15:48:53 +00:00
|
|
|
endif
|
2016-12-25 19:59:12 +00:00
|
|
|
|
|
|
|
ifeq ($(OSTYPE),NetBSD)
|
|
|
|
include make-netbsd.mk
|
|
|
|
endif
|