[FLYWOOF411] disable current meter by default
[inav/snaewe.git] / make / system-id.mk
blobc4c2d817296917c5077cf91d6e967b06e08b7ae7
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))
5 X86-64 := 1
6 X86_64 := 1
7 AMD64 := 1
8 ARCHFAMILY := x86_64
9 else
10 ARCHFAMILY := $(ARCH)
11 endif
13 # configure some variables dependent upon what type of system this is
15 # Linux
16 ifeq ($(UNAME), Linux)
17 OSFAMILY := linux
18 LINUX := 1
19 endif
21 # FreeBSD
22 ifeq ($(UNAME), FreeBSD)
23 OSFAMILY := linux
24 LINUX := 1
25 endif
28 # Mac OSX
29 ifeq ($(UNAME), Darwin)
30 OSFAMILY := macosx
31 MACOSX := 1
32 endif
34 # Windows using MinGW shell
35 ifeq (MINGW, $(findstring MINGW,$(UNAME)))
36 OSFAMILY := windows
37 MINGW := 1
38 WINDOWS := 1
39 endif
41 # Windows using Cygwin shell
42 ifeq (CYGWIN ,$(findstring CYGWIN,$(UNAME)))
43 OSFAMILY := windows
44 WINDOWS := 1
45 CYGWIN := 1
46 endif
48 # report an error if we couldn't work out what OS this is running on
49 ifndef OSFAMILY
50 $(info uname reports $(UNAME))
51 $(info uname -m reports $(ARCH))
52 $(error failed to detect operating system)
53 endif