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