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)
|
2017-01-19 18:39:42 +00:00
|
|
|
CC=egcc
|
|
|
|
CXX=eg++
|
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
|