Simplify the test whether the architecture is supported.

This commit is contained in:
Christoph Mallon 2012-04-29 18:00:38 +02:00 committed by Yamagi Burmeister
parent 2867c00d61
commit 3c7539b417

View file

@ -65,13 +65,9 @@ ARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/amd64/x86_64/)
# Refuse all other platforms as a firewall against PEBKAC
# (You'll need some #ifdef for your unsupported plattform!)
ifneq ($(ARCH),i386)
ifneq ($(ARCH),x86_64)
ifneq ($(ARCH),sparc64)
ifeq ($(findstring $(ARCH), i386 x86_64 sparc64),)
$(error arch $(ARCH) is currently not supported)
endif
endif
endif
# ----------