cleanup OS detection

- the wrong variable was set for OpenBSD and Solaris
This commit is contained in:
Martin Nowak 2013-01-11 04:53:46 +01:00
parent bfb6d3d2f3
commit 39999fb8f9

View file

@ -22,33 +22,28 @@
# OS can be linux, win32, win32remote, win32wine, osx, or freebsd. If left # OS can be linux, win32, win32remote, win32wine, osx, or freebsd. If left
# blank, the system will be determined by using uname # blank, the system will be determined by using uname
ifeq (,$(OS)) OS:=
OS:=$(shell uname) uname_S:=$(shell uname -s)
ifeq (Darwin,$(OS)) ifeq (Darwin,$(uname_S))
OS:=osx OS:=osx
else endif
ifeq (Linux,$(OS)) ifeq (Linux,$(uname_S))
OS:=linux OS:=linux
else endif
ifeq (FreeBSD,$(OS)) ifeq (FreeBSD,$(uname_S))
OS:=freebsd OS:=freebsd
else endif
ifeq (OpenBSD,$(OS)) ifeq (OpenBSD,$(uname_S))
TARGET=OPENBSD OS:=openbsd
else endif
ifeq (Solaris,$(OS)) ifeq (Solaris,$(uname_S))
TARGET=SOLARIS OS:=solaris
else endif
ifeq (SunOS,$(OS)) ifeq (SunOS,$(uname_S))
TARGET=SOLARIS OS:=solaris
else endif
$(error Unrecognized or unsupported OS for uname: $(OS)) ifeq (,$(OS))
endif $(error Unrecognized or unsupported OS for uname: $(uname_S))
endif
endif
endif
endif
endif
endif endif
# For now, 32 bit is the default model # For now, 32 bit is the default model