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
)
25 ifeq ($(UNAME
), Darwin
)
29 # Windows using MinGW shell
30 ifeq (MINGW
, $(findstring MINGW
,$(UNAME
)))
35 # Windows using Cygwin shell
36 ifeq (CYGWIN
,$(findstring CYGWIN
,$(UNAME
)))
41 # report an error if we couldn't work out what OS this is running on
43 $(info uname reports
$(UNAME
))
44 $(info uname
-m reports
$(ARCH
))
45 $(error failed to detect operating system
)