Time/PeriodClock: rename get_now() to GetNow()
[xcsoar.git] / build / detect.mk
blob351858df743d09b172c7409671eb83f2a5092360
1 # Make library that auto-detects the build environment.
3 UNAME_S := $(shell uname -s)
5 HOST_IS_LINUX := $(call string_equals,$(UNAME_S),Linux)
6 HOST_IS_DARWIN := $(call string_equals,$(UNAME_S),Darwin)
7 HOST_IS_CYGWIN := $(call string_equals,$(UNAME_S),Cygwin)
8 HOST_IS_MINGW := $(call string_contains,$(UNAME_S),MINGW)
9 HOST_IS_WIN32 := $(call bool_or,$(HOST_IS_CYGWIN),$(HOST_IS_MINGW))
10 HOST_IS_UNIX := $(call bool_not,$(HOST_IS_WIN32))
12 ifeq ($(HOST_IS_LINUX),y)
13 # Check for VideoCore headers present on a Raspberry Pi
14 HOST_IS_PI := $(call string_equals,$(shell test -f /opt/vc/include/interface/vmcs_host/vc_dispmanx.h && echo y),y)
15 else
16 HOST_IS_PI := n
17 endif