3 # environment variables common to all operating systems supported by the make system
5 # Make sure we know a few things about the architecture
6 UNAME
:= $(shell uname
)
7 ARCH
:= $(shell uname
-m
)
8 ifneq (,$(filter $(ARCH
), x86_64 amd64
))
17 # configure some variables dependent upon what type of system this is
20 ifeq ($(UNAME
), Linux
)
26 ifeq ($(UNAME
), Darwin
)
31 # Windows using MinGW shell
32 ifeq (MINGW
, $(findstring MINGW
,$(UNAME
)))
38 # Windows using Cygwin shell
39 ifeq (CYGWIN
,$(findstring CYGWIN
,$(UNAME
)))
45 # report an error if we couldn't work out what OS this is running on
47 $(info uname reports
$(UNAME
))
48 $(info uname
-m reports
$(ARCH
))
49 $(error failed to detect operating system
)