1 # Make sure we know a few things about the architecture
2 UNAME
:= $(shell uname
)
3 ARCH
:= $(shell uname
-m
)
4 ifneq (,$(filter $(ARCH
), x86_64 amd64
))
13 # configure some variables dependent upon what type of system this is
16 ifeq ($(UNAME
), Linux
)
22 ifeq ($(UNAME
), FreeBSD
)
29 ifeq ($(UNAME
), Darwin
)
34 # Windows using MinGW shell
35 ifeq (MINGW
, $(findstring MINGW
,$(UNAME
)))
41 # Windows using Cygwin shell
42 ifeq (CYGWIN
,$(findstring CYGWIN
,$(UNAME
)))
48 # report an error if we couldn't work out what OS this is running on
50 $(info uname reports
$(UNAME
))
51 $(info uname
-m reports
$(ARCH
))
52 $(error failed to detect operating system
)