mirror of
https://github.com/yquake2/ctf.git
synced 2024-11-10 06:31:34 +00:00
Switch from an arch whitelist to an "all archs are supported" approach.
This commit is contained in:
parent
8cef59c4c8
commit
adb307b197
1 changed files with 0 additions and 17 deletions
17
Makefile
17
Makefile
|
@ -28,23 +28,6 @@ endif
|
|||
ifneq (,$(findstring MINGW,$(OSTYPE)))
|
||||
OSTYPE := Windows
|
||||
endif
|
||||
|
||||
# Detect the architecture
|
||||
ifeq ($(OSTYPE), Windows)
|
||||
# At this time only i386 is supported on Windows
|
||||
ARCH := i386
|
||||
# seems like mingw doesn't set CC by default
|
||||
CC := gcc
|
||||
else
|
||||
# Some platforms call it "amd64" and some "x86_64"
|
||||
ARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/amd64/x86_64/)
|
||||
endif
|
||||
|
||||
# Refuse all other platforms as a firewall against PEBKAC
|
||||
# (You'll need some #ifdef for your unsupported plattform!)
|
||||
ifeq ($(findstring $(ARCH), i386 x86_64 sparc64),)
|
||||
$(error arch $(ARCH) is currently not supported)
|
||||
endif
|
||||
|
||||
# ----------
|
||||
|
||||
|
|
Loading…
Reference in a new issue